Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loro-prosemirror

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loro-prosemirror - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

.github/workflows/chromatic.yaml

19

package.json
{
"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";
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc