-
Notifications
You must be signed in to change notification settings - Fork 806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(yjs): add WebRTC provider support alongside Hocuspocus #4142
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@udecode/plate-yjs': major | ||
--- | ||
|
||
- Added WebRTC provider support to plate-yjs plugin | ||
- Created unified provider interface for consistent API | ||
- Maintained backward compatibility with Hocuspocus | ||
- Added configuration options for both providers |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,43 @@ Since Plate UI is not a component library, a changelog is maintained here. | |
|
||
Use the [CLI](https://platejs.org/docs/components/cli) to install the latest version of the components. | ||
|
||
## April 2025 #21 | ||
|
||
### April 1 #21.1 | ||
|
||
Plate 47 - WebRTC collaboration | ||
|
||
- `plate-yjs`: Major update with WebRTC provider support | ||
- Added WebRTC provider support for peer-to-peer collaboration | ||
- Created unified provider interface for consistent API | ||
- Maintained backward compatibility with Hocuspocus | ||
- Added configuration options for both providers | ||
|
||
```tsx | ||
// WebRTC provider configuration | ||
YjsPlugin.configure({ | ||
options: { | ||
providerType: 'webrtc', | ||
webrtcOptions: { | ||
// WebRTC specific options | ||
signaling: ['wss://your-signaling-server'], | ||
password: 'optional-room-password', | ||
}, | ||
}, | ||
}); | ||
|
||
// Hocuspocus provider (existing approach) | ||
YjsPlugin.configure({ | ||
options: { | ||
providerType: 'hocuspocus', // or undefined for backward compatibility | ||
hocuspocusOptions: { | ||
// Hocuspocus specific options | ||
url: 'wss://your-hocuspocus-server', | ||
}, | ||
}, | ||
}); | ||
``` | ||
Comment on lines
+11
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No problem I will do that. |
||
|
||
## March 2025 #20 | ||
|
||
### March 2 #20.2 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
/** @file Automatically generated by barrelsby. */ | ||
/** | ||
* @file Automatically generated by barrelsby. | ||
*/ | ||
|
||
export * from './useCellIndices'; | ||
export * from './useTableMergeState'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you just write down a short migration snippet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like no migration is necessary, since the
providerType
defaults tohocuspocus
andhocuspocusProviderOptions
hasn't been changed.This should probably be a minor changeset rather than major.