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

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 0.2.4 to 0.2.5

2

package.json
{
"name": "y-prosemirror",
"version": "0.2.4",
"version": "0.2.5",
"description": "Prosemirror bindings for Yjs",

@@ -5,0 +5,0 @@ "main": "./dist/y-prosemirror.cjs",

@@ -25,3 +25,3 @@

export const yUndoPlugin = ({ protectedNodes = new Set(['paragraph']) } = {}) => new Plugin({
export const yUndoPlugin = ({ protectedNodes = new Set(['paragraph']), trackedOrigins = [] } = {}) => new Plugin({
key: yUndoPluginKey,

@@ -33,3 +33,3 @@ state: {

const undoManager = new UndoManager(ystate.type, {
trackedOrigins: new Set([null, ySyncPluginKey]),
trackedOrigins: new Set([null, ySyncPluginKey].concat(trackedOrigins)),
deleteFilter: item => !(item instanceof Item) ||

@@ -36,0 +36,0 @@ !(item.content instanceof ContentType) ||

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