plate icon indicating copy to clipboard operation
plate copied to clipboard

[yjs] Add preliminary cursor rendering support

Open drewag opened this issue 1 year ago • 7 comments

Description This adds the ability to render custom cursors from Yjs. It does not provide a default rendering and it does not update active users.

drewag avatar Jul 18 '23 21:07 drewag

⚠️ No Changeset found

Latest commit: 953af1ecbbb061989dfb8efa43c38cc99bb0507b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

changeset-bot[bot] avatar Jul 18 '23 21:07 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2023 9:10pm

vercel[bot] avatar Jul 18 '23 21:07 vercel[bot]

AI-Generated Summary: This pull request provides preliminary support for rendering custom cursors within the yjs package. This update doesn't have any default rendering included yet, neither does it update active users. This patch specifically adds a new file, RemoteCursorOverlay.tsx, in the yjs package which contains logic for rendering the cursor overlay. Changes have also been made to package.json in yjs, providing an additional dependency for @slate-yjs/react. Lastly, the RemoteCursorOverlay was exported in the index file of the yjs package.

reviewpad[bot] avatar Jul 18 '23 21:07 reviewpad[bot]

Thank you @drewag for this first contribution!

reviewpad[bot] avatar Jul 18 '23 21:07 reviewpad[bot]

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

ghost avatar Jul 18 '23 21:07 ghost

Is there any progress? I think it's a good one.

natamox avatar Mar 31 '24 14:03 natamox

is there a example how to use the CursorOverlay

beeant0512 avatar Jul 10 '24 05:07 beeant0512