@axure/y-prosemirror 1.3.7-fork.2
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/LICENSE +21 -0
- package/README.md +205 -0
- package/dist/src/lib.d.ts +114 -0
- package/dist/src/plugins/cursor-plugin.d.ts +17 -0
- package/dist/src/plugins/keys.d.ts +20 -0
- package/dist/src/plugins/sync-plugin.d.ts +148 -0
- package/dist/src/plugins/undo-plugin.d.ts +33 -0
- package/dist/src/utils.d.ts +1 -0
- package/dist/src/y-prosemirror.d.ts +5 -0
- package/dist/y-prosemirror.cjs +2268 -0
- package/dist/y-prosemirror.cjs.map +1 -0
- package/package.json +89 -0
- package/src/lib.js +440 -0
- package/src/plugins/cursor-plugin.js +267 -0
- package/src/plugins/keys.js +23 -0
- package/src/plugins/sync-plugin.js +1350 -0
- package/src/plugins/undo-plugin.js +126 -0
- package/src/utils.js +20 -0
- package/src/y-prosemirror.js +11 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PluginKey } from 'prosemirror-state' // eslint-disable-line
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The unique prosemirror plugin key for syncPlugin
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export const ySyncPluginKey = new PluginKey('y-sync')
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The unique prosemirror plugin key for undoPlugin
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
* @type {PluginKey<import('./undo-plugin').UndoPluginState>}
|
|
15
|
+
*/
|
|
16
|
+
export const yUndoPluginKey = new PluginKey('y-undo')
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The unique prosemirror plugin key for cursorPlugin
|
|
20
|
+
*
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export const yCursorPluginKey = new PluginKey('yjs-cursor')
|