@tiptap/extension-collaboration-cursor
Advanced tools
Comparing version 2.0.0-beta.34 to 2.0.0-beta.37
{ | ||
"name": "@tiptap/extension-collaboration-cursor", | ||
"description": "collaboration cursor extension for tiptap", | ||
"version": "2.0.0-beta.34", | ||
"version": "2.0.0-beta.37", | ||
"homepage": "https://tiptap.dev", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"dependencies": { | ||
"y-prosemirror": "^1.0.14" | ||
"y-prosemirror": "1.0.20" | ||
}, | ||
@@ -35,3 +35,3 @@ "repository": { | ||
}, | ||
"gitHead": "e550d3c69e06a1fb153c3faf17ab78c3081ae61b" | ||
"gitHead": "591c0807a2ab5c34b4b7fe12c12511fe4f493ebd" | ||
} |
@@ -106,19 +106,21 @@ import { Extension } from '@tiptap/core' | ||
return [ | ||
yCursorPlugin((() => { | ||
this.options.provider.awareness.setLocalStateField('user', this.options.user) | ||
yCursorPlugin( | ||
(() => { | ||
this.options.provider.awareness.setLocalStateField('user', this.options.user) | ||
this.storage.users = awarenessStatesToArray(this.options.provider.awareness.states) | ||
this.options.provider.awareness.on('update', () => { | ||
this.storage.users = awarenessStatesToArray(this.options.provider.awareness.states) | ||
}) | ||
return this.options.provider.awareness | ||
})(), | ||
// @ts-ignore | ||
{ | ||
cursorBuilder: this.options.render, | ||
}), | ||
this.options.provider.awareness.on('update', () => { | ||
this.storage.users = awarenessStatesToArray(this.options.provider.awareness.states) | ||
}) | ||
return this.options.provider.awareness | ||
})(), | ||
// @ts-ignore | ||
{ | ||
cursorBuilder: this.options.render, | ||
}, | ||
), | ||
] | ||
}, | ||
}) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38065
384
+ Addedy-prosemirror@1.0.20(transitive)
- Removedy-prosemirror@1.2.12(transitive)
Updatedy-prosemirror@1.0.20