loro-prosemirror
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "loro-prosemirror", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Prosemirror Binding for Loro", | ||
@@ -8,7 +8,2 @@ "main": "dist/index.js", | ||
"typings": "dist/loro.d.ts", | ||
"scripts": { | ||
"build": "rollup -c", | ||
"test": "vitest run", | ||
"coverage": "vitest run --coverage" | ||
}, | ||
"keywords": [ | ||
@@ -24,6 +19,6 @@ "rich-text", | ||
"dependencies": { | ||
"lib0": "^0.2.42", | ||
"loro-crdt": "^0.16.3" | ||
"lib0": "^0.2.42" | ||
}, | ||
"peerDependencies": { | ||
"loro-crdt": "^0.16.4", | ||
"prosemirror-model": "^1.18.1", | ||
@@ -37,2 +32,3 @@ "prosemirror-state": "^1.4.1", | ||
"@vitest/coverage-v8": "^1.4.0", | ||
"chromatic": "^11.5.3", | ||
"eslint": "^8.57.0", | ||
@@ -50,3 +46,8 @@ "lib0": "^0.2.93", | ||
"vitest": "^1.4.0" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c", | ||
"test": "vitest run", | ||
"coverage": "vitest run --coverage" | ||
} | ||
} | ||
} |
@@ -6,2 +6,3 @@ # Prosemirror Binding for Loro | ||
- Undo/Redo in collaborative editing | ||
- [🎨 Try it online](https://6661e86e215da40180d90507-ansgznbrmy.chromatic.com) | ||
@@ -26,5 +27,5 @@ ```ts | ||
keymap({ | ||
"Mod-z": state => undo(state, () => {}), | ||
"Mod-y": state => redo(state, () => {}), | ||
"Mod-Shift-z": state => redo(state, () => {}), | ||
"Mod-z": (state) => undo(state, () => {}), | ||
"Mod-y": (state) => redo(state, () => {}), | ||
"Mod-Shift-z": (state) => redo(state, () => {}), | ||
}), | ||
@@ -39,4 +40,1 @@ LoroCursorPlugin(awareness, {}), | ||
https://github.com/loro-dev/prosemirror/assets/18425020/d0f01760-b76c-43b5-b7f7-b0b224130d9d | ||
@@ -1,5 +0,27 @@ | ||
export { LoroSyncPlugin } from "./sync-plugin"; | ||
export { | ||
LoroSyncPlugin, | ||
loroSyncPluginKey, | ||
LoroSyncPluginProps, | ||
LoroSyncPluginState, | ||
} from "./sync-plugin"; | ||
export type { LoroDocType } from "./lib"; | ||
export { | ||
createNodeFromLoroObj, | ||
updateLoroOnPmChange, | ||
ROOT_DOC_KEY, | ||
NODE_NAME_KEY, | ||
CHILDREN_KEY, | ||
ATTRIBUTES_KEY, | ||
LoroNodeMapping, | ||
} from "./lib"; | ||
export { LoroCursorPlugin } from "./cursor-plugin"; | ||
export { CursorAwareness } from "./awareness"; | ||
export { LoroUndoPlugin, undo, redo, canUndo, canRedo } from "./undo-plugin"; | ||
export { | ||
LoroUndoPlugin, | ||
loroUndoPluginKey, | ||
LoroUndoPluginProps, | ||
undo, | ||
redo, | ||
canUndo, | ||
canRedo, | ||
} from "./undo-plugin"; |
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
293228
24
3942
16
38
- Removedloro-crdt@^0.16.3