y-prosemirror
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -106,5 +106,5 @@ /** | ||
export type ProsemirrorMapping = Map<Y.AbstractType<any>, Node | Array<Node>>; | ||
import { Node } from "prosemirror-model"; | ||
import * as Y from "yjs"; | ||
import { Schema } from "prosemirror-model"; | ||
import { Fragment } from "prosemirror-model"; | ||
import { Node } from 'prosemirror-model'; | ||
import * as Y from 'yjs'; | ||
import { Schema } from 'prosemirror-model'; | ||
import { Fragment } from 'prosemirror-model'; |
@@ -19,2 +19,2 @@ /** | ||
export const yCursorPluginKey: PluginKey<any>; | ||
import { PluginKey } from "prosemirror-state"; | ||
import { PluginKey } from 'prosemirror-state'; |
@@ -92,3 +92,3 @@ export function isVisible(item: Y.Item, snapshot?: Y.Snapshot): boolean; | ||
export type NormalizedPNodeContent = Array<Array<PModel.Node> | PModel.Node>; | ||
import * as Y from "yjs"; | ||
import * as PModel from "prosemirror-model"; | ||
import * as Y from 'yjs'; | ||
import * as PModel from 'prosemirror-model'; |
@@ -15,2 +15,2 @@ export function undo(state: any): boolean; | ||
}>; | ||
import { Plugin } from "prosemirror-state"; | ||
import { Plugin } from 'prosemirror-state'; |
{ | ||
"name": "y-prosemirror", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "Prosemirror bindings for Yjs", | ||
@@ -80,3 +80,3 @@ "main": "./dist/y-prosemirror.cjs", | ||
"standard": "^17.0.0", | ||
"typescript": "^4.8.4", | ||
"typescript": "^5.4.5", | ||
"y-protocols": "^1.0.5", | ||
@@ -83,0 +83,0 @@ "y-webrtc": "^10.2.0", |
@@ -92,3 +92,2 @@ /** | ||
} = {}) => { | ||
let rerenderTimeout | ||
let initialContentChanged = false | ||
@@ -177,5 +176,2 @@ const plugin = new Plugin({ | ||
const binding = new ProsemirrorBinding(yXmlFragment, view) | ||
if (rerenderTimeout != null) { | ||
rerenderTimeout.destroy() | ||
} | ||
binding._forceRerender() | ||
@@ -222,3 +218,2 @@ onFirstRender() | ||
destroy: () => { | ||
rerenderTimeout.destroy() | ||
binding.destroy() | ||
@@ -225,0 +220,0 @@ } |
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
257182
4003