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

@prosekit/extensions

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prosekit/extensions - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

dist/prosekit-extensions-table.d.ts

91

dist/_tsup-dts-rollup.d.ts

@@ -8,2 +8,3 @@ import { Attrs } from '@prosekit/pm/model';

import { bundledThemesInfo } from 'shiki';
import { Command } from '@prosekit/pm/state';
import { CommandArgs } from '@prosekit/core';

@@ -68,2 +69,8 @@ import { DedentListOptions } from 'prosemirror-flat-list';

export declare interface CellAttrs {
colspan: number;
rowspan: number;
colwidth: number[] | null;
}
/**

@@ -522,2 +529,66 @@ * The attributes for the `codeBlock` node.

/**
* @public
*/
export declare function defineTable(): Extension< {
NODES: "table" | "tableRow" | "tableCell" | "tableHeaderCell";
COMMAND_ARGS: {
insertTable: [{
row: number;
col: number;
header: boolean;
}];
exitTable: [];
};
}>;
declare function defineTableCellSpec(): Extension< {
NODES: "tableCell";
}>;
export { defineTableCellSpec }
export { defineTableCellSpec as defineTableCellSpec_alias_1 }
/**
* Adds commands for working with `table` nodes.
*
* @public
*/
declare function defineTableCommands(): Extension< {
COMMAND_ARGS: {
insertTable: [{
row: number;
col: number;
header: boolean;
}];
exitTable: [];
};
}>;
export { defineTableCommands }
export { defineTableCommands as defineTableCommands_alias_1 }
declare function defineTableHeaderCellSpec(): Extension< {
NODES: "tableHeaderCell";
}>;
export { defineTableHeaderCellSpec }
export { defineTableHeaderCellSpec as defineTableHeaderCellSpec_alias_1 }
/**
* @public
*/
declare function defineTablePlugins(): Extension<ExtensionTyping<string, string, CommandArgs>>;
export { defineTablePlugins }
export { defineTablePlugins as defineTablePlugins_alias_1 }
declare function defineTableRowSpec(): Extension< {
NODES: "tableRow";
}>;
export { defineTableRowSpec }
export { defineTableRowSpec as defineTableRowSpec_alias_1 }
declare function defineTableSpec(): Extension< {
NODES: "table";
}>;
export { defineTableSpec }
export { defineTableSpec as defineTableSpec_alias_1 }
/**
* Defines an enter rule that replaces the matched text with a block node.

@@ -685,2 +756,10 @@ *

/**
* When the selection is in a table node, create a default block after the table
* table, and move the cursor there.
*
* @public
*/
export declare const exitTable: Command;
export { getHighlighter }

@@ -715,2 +794,14 @@

/**
* Insert a table node with the given number of rows and columns, and optionally
* a header row.
*
* @public
*/
export declare function insertTable({ row, col, header, }: {
row: number;
col: number;
header: boolean;
}): Command;
export declare const LINK_RE: RegExp;

@@ -717,0 +808,0 @@

18

package.json
{
"name": "@prosekit/extensions",
"type": "module",
"version": "0.4.1",
"version": "0.4.2",
"private": false,

@@ -124,2 +124,10 @@ "author": {

},
"./table": {
"types": "./dist/prosekit-extensions-table.d.ts",
"import": "./dist/prosekit-extensions-table.js",
"default": "./dist/prosekit-extensions-table.js"
},
"./table/style.css": {
"default": "./dist/table/style.css"
},
"./underline": {

@@ -148,3 +156,4 @@ "types": "./dist/prosekit-extensions-underline.d.ts",

"prosemirror-highlight": "^0.5.0",
"shiki": "^1.1.2"
"prosemirror-tables": "^1.3.7",
"shiki": "^1.1.7"
},

@@ -155,3 +164,3 @@ "devDependencies": {

"typescript": "^5.3.3",
"vitest": "^1.2.2"
"vitest": "^1.3.1"
},

@@ -219,2 +228,5 @@ "scripts": {

],
"table": [
"./dist/prosekit-extensions-table.d.ts"
],
"underline": [

@@ -221,0 +233,0 @@ "./dist/prosekit-extensions-underline.d.ts"

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