@toast-ui/editor-plugin-table-merged-cell
Advanced tools
Comparing version 3.0.0 to 3.0.1
/*! | ||
* TOAST UI Editor : Table Merged Cell Plugin | ||
* @version 3.0.0 | Thu Jun 17 2021 | ||
* @version 3.0.1 | Wed Oct 27 2021 | ||
* @author NHN FE Development Lab <dl_javascript@nhn.com> | ||
@@ -34,8 +34,12 @@ * @license MIT | ||
* @example | ||
* var forEachArray = require('tui-code-snippet/collection/forEachArray'); // node, commonjs | ||
* // ES6 | ||
* import forEachArray from 'tui-code-snippet/collection/forEachArray'; | ||
* | ||
* // CommonJS | ||
* const forEachArray = require('tui-code-snippet/collection/forEachArray'); | ||
* | ||
* var sum = 0; | ||
* let sum = 0; | ||
* | ||
* forEachArray([1,2,3], function(value){ | ||
* sum += value; | ||
* sum += value; | ||
* }); | ||
@@ -81,12 +85,16 @@ * alert(sum); // 6 | ||
* @example | ||
* var toArray = require('tui-code-snippet/collection/toArray'); // node, commonjs | ||
* // ES6 | ||
* import toArray from 'tui-code-snippet/collection/toArray'; | ||
* | ||
* // CommonJS | ||
* const toArray = require('tui-code-snippet/collection/toArray'); | ||
* | ||
* var arrayLike = { | ||
* 0: 'one', | ||
* 1: 'two', | ||
* 2: 'three', | ||
* 3: 'four', | ||
* length: 4 | ||
* const arrayLike = { | ||
* 0: 'one', | ||
* 1: 'two', | ||
* 2: 'three', | ||
* 3: 'four', | ||
* length: 4 | ||
* }; | ||
* var result = toArray(arrayLike); | ||
* const result = toArray(arrayLike); | ||
* | ||
@@ -93,0 +101,0 @@ * alert(result instanceof Array); // true |
{ | ||
"name": "@toast-ui/editor-plugin-table-merged-cell", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "TOAST UI Editor : Table Merged Cell Plugin", | ||
@@ -38,2 +38,3 @@ "keywords": [ | ||
"test": "jest --watch", | ||
"test:ci": "jest", | ||
"serve": "snowpack dev", | ||
@@ -40,0 +41,0 @@ "serve:ie": "webpack serve", |
@@ -1,3 +0,9 @@ | ||
import type { PluginCommandMap } from '@toast-ui/editor'; | ||
import type { TableCellMdNode, TableMdNode } from '@toast-ui/toastmark'; | ||
import type { | ||
PluginCommandMap, | ||
TableMdNode, | ||
TableCellMdNode, | ||
MdNode, | ||
PluginContext, | ||
PluginInfo, | ||
} from '@toast-ui/editor'; | ||
import type { Selection } from 'prosemirror-state'; | ||
@@ -20,7 +26,7 @@ import type { Node, ResolvedPos } from 'prosemirror-model'; | ||
export interface MergedTableRowMdNode extends MdNode { | ||
firstChild: MergedTableCell | null; | ||
lastChild: MergedTableCell | null; | ||
firstChild: MergedTableCellMdNode | null; | ||
lastChild: MergedTableCellMdNode | null; | ||
parent: TableBodyMdNode | TableHeadMdNode; | ||
prev: MergedTableRow | null; | ||
next: MergedTableRow | null; | ||
prev: MergedTableRowMdNode | null; | ||
next: MergedTableRowMdNode | null; | ||
rowspanMap: { [key: string]: number }; | ||
@@ -30,5 +36,5 @@ } | ||
export interface MergedTableCellMdNode extends TableCellMdNode { | ||
prev: MergedTableCell | null; | ||
next: MergedTableCell | null; | ||
parent: MergedTableRow; | ||
prev: MergedTableCellMdNode | null; | ||
next: MergedTableCellMdNode | null; | ||
parent: MergedTableRowMdNode; | ||
} | ||
@@ -100,1 +106,3 @@ | ||
export type CommandFn = PluginCommandMap[keyof PluginCommandMap]; | ||
export default function tableMergedCellPlugin(context: PluginContext): PluginInfo; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67533
1305