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

prosemirror-tables

Package Overview
Dependencies
Maintainers
6
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-tables - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

34

package.json
{
"name": "prosemirror-tables",
"version": "1.3.2",
"version": "1.3.3",
"description": "ProseMirror's rowspan/colspan tables component",

@@ -40,18 +40,18 @@ "type": "module",

"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"builddocs": "^1.0.3",
"eslint": "^8.16.0",
"eslint-plugin-jest": "^26.2.2",
"ist": "^1.1.1",
"prettier": "^2.6.2",
"prosemirror-commands": "^1.5.0",
"prosemirror-example-setup": "^1.2.1",
"prosemirror-menu": "^1.2.1",
"prosemirror-schema-basic": "^1.2.0",
"prosemirror-test-builder": "^1.1.0",
"tsup": "^6.5.0",
"typescript": "^4.0.0",
"vite": "^3.2.4",
"vitest": "^0.25.3"
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"builddocs": "^1.0.7",
"eslint": "^8.42.0",
"eslint-plugin-jest": "^26.9.0",
"ist": "^1.1.7",
"prettier": "^2.8.8",
"prosemirror-commands": "^1.5.2",
"prosemirror-example-setup": "^1.2.2",
"prosemirror-menu": "^1.2.2",
"prosemirror-schema-basic": "^1.2.2",
"prosemirror-test-builder": "^1.1.1",
"tsup": "^6.7.0",
"typescript": "^4.9.5",
"vite": "^4.3.9",
"vitest": "^0.32.0"
},

@@ -58,0 +58,0 @@ "scripts": {

@@ -142,5 +142,5 @@ import { Attrs, Node as ProsemirrorNode } from 'prosemirror-model';

if (event.clientX - left <= handleWidth)
cell = edgeCell(view, event, 'left');
cell = edgeCell(view, event, 'left', handleWidth);
else if (right - event.clientX <= handleWidth)
cell = edgeCell(view, event, 'right');
cell = edgeCell(view, event, 'right', handleWidth);
}

@@ -257,4 +257,12 @@

side: 'left' | 'right',
handleWidth: number,
): number {
const found = view.posAtCoords({ left: event.clientX, top: event.clientY });
// posAtCoords returns inconsistent positions when cursor is moving
// across a collapsed table border. Use an offset to adjust the
// target viewport coordinates away from the table border.
const offset = side == 'right' ? -handleWidth : handleWidth;
const found = view.posAtCoords({
left: event.clientX + offset,
top: event.clientY,
});
if (!found) return -1;

@@ -261,0 +269,0 @@ const { pos } = found;

@@ -12,2 +12,3 @@ {

"declarationMap": true,
"allowSyntheticDefaultImports": true,
"declarationDir": ".",

@@ -14,0 +15,0 @@ "noEmitOnError": false,

import { defineConfig } from 'tsup';
export default defineConfig({
target: 'ES2018',
target: 'es2018',
entry: ['src/index.ts'],

@@ -6,0 +6,0 @@ format: ['esm', 'cjs'],

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