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

prosemirror-view

Package Overview
Dependencies
Maintainers
1
Versions
284
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-view - npm Package Compare versions

Comparing version 1.23.5 to 1.23.6

2

package.json
{
"name": "prosemirror-view",
"version": "1.23.5",
"version": "1.23.6",
"description": "ProseMirror's view component",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -45,3 +45,6 @@ import {TextSelection, NodeSelection} from "prosemirror-state"

if (!force && view.mouseDown && view.mouseDown.allowDefault) {
// The delayed drag selection causes issues with Cell Selections
// in Safari. And the drag selection delay is to workarond issues
// which only present in Chrome.
if (!force && view.mouseDown && view.mouseDown.allowDefault && browser.chrome) {
let domSel = view.root.getSelection(), curSel = view.domObserver.currentSelection

@@ -48,0 +51,0 @@ if (domSel.anchorNode && isEquivalentPosition(domSel.anchorNode, domSel.anchorOffset,

@@ -465,3 +465,4 @@ import {DOMSerializer, Fragment, Mark} from "prosemirror-model"

} else {
child.dirty = child.dom == child.contentDOM && child.dom.parentNode == this.contentDOM ? CONTENT_DIRTY : NODE_DIRTY
child.dirty = child.dom == child.contentDOM && child.dom.parentNode == this.contentDOM && !child.children.length
? CONTENT_DIRTY : NODE_DIRTY
}

@@ -581,3 +582,6 @@ }

parseRule() { return {mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM} }
parseRule() {
if ((this.dirty & NODE_DIRTY) || this.mark.type.spec.reparseInView) return null
return {mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM}
}

@@ -584,0 +588,0 @@ matchesMark(mark) { return this.dirty != NODE_DIRTY && this.mark.eq(mark) }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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