Skip to content

v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Nov 04:35
· 12 commits to main since this release
f0a7a84

A JavaScript API in the style of Livewire and Alpine, and a page on how the package works with Filament.

Added

  • FilamentCollaboration.adapter(name, definition) registers an adapter, the way Alpine.data() registers a component. window.FilamentCollaboration is defined in the panel's <head> before any script, so an adapter's script no longer needs to wait for the package: an adapter registered early is queued and registered when the package starts. adapter() returns FilamentCollaboration, so calls chain.
  • How it works with Filament, a new documentation page: how the browser script works with Filament's fields and Livewire, why the package has its own merge engine instead of Yjs, and which parts would work without Filament.

Changed

  • The package's global is now window.FilamentCollaboration, like Livewire and Alpine. window.filamentCollaboration, registerAdapter() and the filament-collaboration:init event still work, so existing adapters need no change.
  • The demo's TinyMCE, CKEditor, Quill, Trix and custom component adapters, the guide, the custom component tutorial and the Laravel Boost skill use FilamentCollaboration.adapter().

Fixed

  • Diagrams on the documentation website are drawn as pictures, in light and dark, instead of showing their Mermaid code.