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

prosemirror-tables

Package Overview
Dependencies
Maintainers
1
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 0.7.3 to 0.7.4

2

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

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

@@ -297,3 +297,3 @@ // This file defines a number of table-related commands.

attrs.push(colwidth ? setAttr(baseAttrs, "colwidth", colwidth && colwidth[i] ? [colwidth[i]] : null) : baseAttrs)
let lastCell, cellType = tableNodeTypes(state.schema).cell
let lastCell, cellType = tableNodeTypes(state.schema)[cellNode.type.spec.tableRole];
for (let row = 0; row < rect.bottom; row++) {

@@ -300,0 +300,0 @@ if (row >= rect.top) {

@@ -16,4 +16,6 @@ // Various helper function for working with tables

export function cellWrapping($pos) {
for (var d = $pos.depth - 1; d > 0; d--)
if ($pos.node(d).type.spec.tableRole == "cell") return $pos.node(d)
for (let d = $pos.depth - 1; d > 0; d--) {
const role = $pos.node(d).type.spec.tableRole;
if (role === "cell" || role === 'header_cell') return $pos.node(d)
}
return null

@@ -20,0 +22,0 @@ }

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