Skip to content

Add slate-yjs collaboration package#20

Open
felixfeng33 wants to merge 6 commits into
udecode:v2from
felixfeng33:codex/slate-yjs-collaboration
Open

Add slate-yjs collaboration package#20
felixfeng33 wants to merge 6 commits into
udecode:v2from
felixfeng33:codex/slate-yjs-collaboration

Conversation

@felixfeng33
Copy link
Copy Markdown

Summary

Adds the first-party @slate/yjs package and the Yjs collaboration example on top of v2.

The package covers structured Slate/Yjs serialization, relative selections, awareness/cursor projection, local/remote sync, undo/redo handling, disconnected edit merge behavior, and browser example controls. The example and tests cover append, replace, selection, reconnect, stale history, cursor presence, and the offline replace undo conflict that previously dropped a remote append.

Verification

  • bun check
  • bun test ./packages/slate-yjs/test/core-contract.ts
  • PLAYWRIGHT_BASE_URL=http://localhost:3100 PLAYWRIGHT_RETRIES=0 PLAYWRIGHT_WORKERS=1 bun playwright playwright/integration/examples/yjs-collaboration.test.ts --project=chromium
  • dev-browser --connect http://127.0.0.1:9222 manual collaboration sweeps

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 25, 2026

🦋 Changeset detected

Latest commit: 19eab35

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
slate Patch
slate-react Patch
@slate/yjs Minor
slate-history Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant