New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prosemirror-view

Package Overview
Dependencies
Maintainers
1
Versions
287
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

to
1.17.8

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 1.17.8 (2021-02-26)
### Bug fixes
Fix an issue where some user actions (such as enter on iOS) in a node whose content DOM element isn't it's top element could leave the DOM in a damaged state.
## 1.17.7 (2021-02-22)

@@ -2,0 +8,0 @@

2

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

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

@@ -195,2 +195,4 @@ import browser from "./browser"

if (mut.type == "childList") {
if (desc.contentDOM && desc.contentDOM != desc.dom && !desc.contentDOM.contains(mut.target))
return {from: desc.posBefore, to: desc.posAfter}
let prev = mut.previousSibling, next = mut.nextSibling

@@ -197,0 +199,0 @@ if (browser.ie && browser.ie_version <= 11 && mut.addedNodes.length) {

@@ -202,3 +202,5 @@ import {DOMSerializer, Fragment, Mark} from "prosemirror-model"

let atEnd
if (this.contentDOM && this.contentDOM != this.dom && this.dom.contains(this.contentDOM)) {
if (dom == this.dom) {
atEnd = offset > domIndex(this.contentDOM)
} else if (this.contentDOM && this.contentDOM != this.dom && this.dom.contains(this.contentDOM)) {
atEnd = dom.compareDocumentPosition(this.contentDOM) & 2

@@ -205,0 +207,0 @@ } else if (this.dom.firstChild) {

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