y-prosemirror
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -45,3 +45,7 @@ /** | ||
export function relativePositionToAbsolutePosition(y: any, documentType: any, relPos: any, mapping: Map<any, Node<any> | Node<any>[]>): null | number; | ||
/** | ||
* Either a node if type is YXmlElement or an Array of text nodes if YXmlText | ||
*/ | ||
export type ProsemirrorMapping = Map<any, Node<any> | Node<any>[]>; | ||
import { Node } from "prosemirror-model"; | ||
import { Schema } from "prosemirror-model"; |
{ | ||
"name": "y-prosemirror", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Prosemirror bindings for Yjs", | ||
@@ -16,3 +16,3 @@ "main": "./dist/y-prosemirror.cjs", | ||
"test": "npm run lint && rollup -c && node dist/test.cjs", | ||
"lint": "standard", | ||
"lint": "standard && tsc", | ||
"watch": "rollup -wc", | ||
@@ -19,0 +19,0 @@ "debug": "concurrently 'http-server -o test.html' 'npm run watch'", |
@@ -1,2 +0,2 @@ | ||
import { updateYFragment, ProsemirrorMapping } from './plugins/sync-plugin.js' // eslint-disable-line | ||
import { updateYFragment} from './plugins/sync-plugin.js' // eslint-disable-line | ||
import * as Y from 'yjs' | ||
@@ -10,2 +10,7 @@ import { EditorView } from 'prosemirror-view' // eslint-disable-line | ||
/** | ||
* Either a node if type is YXmlElement or an Array of text nodes if YXmlText | ||
* @typedef {Map<Y.AbstractType, Node | Array<Node>>} ProsemirrorMapping | ||
*/ | ||
/** | ||
* Is null if no timeout is in progress. | ||
@@ -12,0 +17,0 @@ * Is defined if a timeout is in progress. |
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
Sorry, the diff of this file is not supported yet
3751766
36653