Skip to content

v0.2.0

Choose a tag to compare

@lam0819 lam0819 released this 26 Nov 08:16
· 7 commits to main since this release
2bfee62

Everything filament-collaboration offers, now for Livewire, React and Vue too, plus developer conveniences.

New

  • Repeaters: ->items('lines', text: ['description']), with form.items() in React/Vue and wire:model="lines.0.title" in Livewire.
  • Saves that respect each other:
    • Fields you didn't touch take the values somebody else saved.
    • A field you both changed asks which version to keep (<Conflicts>, <x-collaboration::conflicts>).
  • Presence: create pages (Collaboration::creating(Post::class)), who is on each record of a list (Collaboration::presence($posts)), and following a colleague from field to field.
  • Optional features, off until you turn them on:
    Collaboration::features([Features::comments(), Features::history(), Features::uploads()]);
    These cover comments with @mentions, version history with restore, and images uploaded into rich text. Their UI has its own imports (/react/comments, /vue/history, …), and in Livewire its own script.
  • Livewire:
    • <x-collaboration::editor field="body" /> (rich text, no build step)
    • <x-collaboration::field-people field="title" />
    • Collaboration.items() for repeaters
  • Your own design: Collaboration::withoutStyles(), plus render functions and slots for the faces.
  • php artisan collaboration:install, and a VitePress docs site built from the README (website/).

Upgrading from 0.1

  • Comments: they're optional now. Call Collaboration::features([Features::comments()]) to keep them. The comments table already exists from 0.1 and its new migration skips it.
  • Comment and history imports: the components moved to /react/comments, /react/history, /vue/comments and /vue/history.

Quality

  • This package: 150 PHP tests and 40 JS tests pass.
  • Browsers: a three-browser run with Livewire, React and Vue on one article passes 17 of 17.
  • filament-collaboration: its full suite passes against this release (378 of 378).
  • PHPStan: level 10, covering the package and its test classes.