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

@guardian/prosemirror-noting

Package Overview
Dependencies
Maintainers
30
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/prosemirror-noting - npm Package Compare versions

Comparing version 3.1.4-alpha.2 to 3.1.4

8

dist/noting.js

@@ -1062,3 +1062,6 @@ 'use strict';

var sideToRender = cursorAtWidgetAndInsideNote ? side - Math.sign(side) / 2 : 0 - side;
var sideToRender = cursorAtWidgetAndInsideNote ? side - Math.sign(side) / 2 : 0 - side; // To make the order of widgets from different noting plugins stable as the caret
// moves, we adjust the side properties by a constant derived from the plugin priority
// (which is effectively an id).
var sideAdjustedForPluginPriority = sideToRender + pluginPriority / Number.MAX_SAFE_INTEGER * Math.sign(side); // A unique key for the widget. It must change to force a render

@@ -1086,5 +1089,2 @@ // every time we'd like the cursor behaviour to change.

return prosemirrorView.Decoration.widget(notePos, toDom, {
// MAX_SAFE_INTEGER is here to order note decorations consistently across
// plugins without imposing a (realistic) limit on the number of noting
// plugins that can run concurrently.
key: key,

@@ -1091,0 +1091,0 @@ side: sideAdjustedForPluginPriority,

{
"name": "@guardian/prosemirror-noting",
"version": "3.1.4-alpha.2",
"version": "3.1.4",
"description": "A plugin to allow noting in prosemirror",

@@ -41,4 +41,2 @@ "main": "dist/noting.js",

"prosemirror-test-builder": "^1.0.3",
"prosemirror-state": "^1.3.3",
"prosemirror-view": "^1.14.11",
"rollup": "^2.7.6",

@@ -52,2 +50,4 @@ "rollup-plugin-babel": "^4.0.0-beta.4",

"dependencies": {
"prosemirror-state": "^1.3.3",
"prosemirror-view": "^1.14.7",
"uuid": "^3.1.0"

@@ -54,0 +54,0 @@ },

@@ -18,2 +18,6 @@ import { DecorationSet, Decoration } from "prosemirror-view";

: 0 - side;
// To make the order of widgets from different noting plugins stable as the caret
// moves, we adjust the side properties by a constant derived from the plugin priority
// (which is effectively an id).
const sideAdjustedForPluginPriority =

@@ -49,5 +53,2 @@ sideToRender + (pluginPriority / Number.MAX_SAFE_INTEGER) * Math.sign(side);

return Decoration.widget(notePos, toDom, {
// MAX_SAFE_INTEGER is here to order note decorations consistently across
// plugins without imposing a (realistic) limit on the number of noting
// plugins that can run concurrently.
key,

@@ -54,0 +55,0 @@ side: sideAdjustedForPluginPriority,

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