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
282
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.31.8 to 1.32.0

5

dist/index.d.ts

@@ -495,2 +495,7 @@ import { EditorState, Transaction, Selection, Plugin } from 'prosemirror-state';

/**
When an existing editor view is moved to a new document or
shadow tree, call this to make it recompute its root.
*/
updateRoot(): void;
/**
Given a pair of viewport coordinates, return the document

@@ -497,0 +502,0 @@ position that corresponds to them. May return null if the given

2

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

@@ -5,0 +5,0 @@ "type": "module",

@@ -297,2 +297,7 @@ import {EditorState} from "prosemirror-state"

}
let prev
// When clicking above the right side of an uneditable node, Chrome will report a cursor position after that node.
if (browser.webkit && offset && node.nodeType == 1 && (prev = node.childNodes[offset - 1]).nodeType == 1 &&
(prev as HTMLElement).contentEditable == "false" && (prev as HTMLElement).getBoundingClientRect().top >= coords.top)
offset--
// Suspiciously specific kludge to work around caret*FromPoint

@@ -299,0 +304,0 @@ // never returning a position at the end of the document

@@ -342,2 +342,8 @@ import {NodeSelection, EditorState, Plugin, PluginView, Transaction, Selection} from "prosemirror-state"

/// When an existing editor view is moved to a new document or
/// shadow tree, call this to make it recompute its root.
updateRoot() {
this._root = null
}
/// Given a pair of viewport coordinates, return the document

@@ -344,0 +350,0 @@ /// position that corresponds to them. May return null if the given

@@ -1502,2 +1502,4 @@ import {DOMSerializer, Fragment, Mark, Node, ParseRule} from "prosemirror-model"

if (pos >= from) {
if (pos >= to && str.slice(to - text.length - childStart, to - childStart) == text)
return to - text.length
let found = childStart < to ? str.lastIndexOf(text, to - childStart - 1) : -1

@@ -1504,0 +1506,0 @@ if (found >= 0 && found + text.length + childStart >= from)

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 not supported yet

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

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