@hocuspocus/provider 2.12.1-rc.0 → 2.12.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hocuspocus-provider.cjs +4 -0
- package/dist/hocuspocus-provider.cjs.map +1 -1
- package/dist/hocuspocus-provider.esm.js +4 -0
- package/dist/hocuspocus-provider.esm.js.map +1 -1
- package/dist/packages/provider/src/TiptapCollabProvider.d.ts +4 -1
- package/package.json +2 -2
- package/src/TiptapCollabProvider.ts +11 -1
|
@@ -2841,6 +2841,10 @@ class TiptapCollabProvider extends HocuspocusProvider {
|
|
|
2841
2841
|
}
|
|
2842
2842
|
super(configuration);
|
|
2843
2843
|
this.tiptapCollabConfigurationPrefix = '__tiptapcollab__';
|
|
2844
|
+
if (configuration.user) {
|
|
2845
|
+
this.userData = new Y__namespace.PermanentUserData(this.document, this.document.getMap('__tiptapcollab__users'));
|
|
2846
|
+
this.userData.setUserMapping(this.document, this.document.clientID, configuration.user);
|
|
2847
|
+
}
|
|
2844
2848
|
}
|
|
2845
2849
|
/**
|
|
2846
2850
|
* note: this will only work if your server loaded @hocuspocus-pro/extension-history, or if you are on a Tiptap business plan.
|