Socket
Socket
Sign inDemoInstall

y-prosemirror

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

y-prosemirror - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

8

dist/src/lib.d.ts

@@ -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

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