@lexical/table 0.29.1-nightly.20250401.0 → 0.29.1-nightly.20250403.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,24 +27,63 @@ export type TableCellSiblings = {
27
27
  };
28
28
  export declare function $getTableCellSiblingsFromTableCellNode(tableCellNode: TableCellNode, table: TableDOMTable): TableCellSiblings;
29
29
  export declare function $removeTableRowAtIndex(tableNode: TableNode, indexToDelete: number): TableNode;
30
+ /**
31
+ * @deprecated This function does not support merged cells. Use {@link $insertTableRowAtSelection} or {@link $insertTableRowAtNode} instead.
32
+ */
30
33
  export declare function $insertTableRow(tableNode: TableNode, targetIndex: number, shouldInsertAfter: boolean | undefined, rowCount: number, table: TableDOMTable): TableNode;
31
34
  /**
32
35
  * Inserts a table row before or after the current focus cell node,
33
36
  * taking into account any spans. If successful, returns the
34
37
  * inserted table row node.
35
38
  */
36
- export declare function $insertTableRow__EXPERIMENTAL(insertAfter?: boolean): TableRowNode | null;
39
+ export declare function $insertTableRowAtSelection(insertAfter?: boolean): TableRowNode | null;
40
+ /**
41
+ * @deprecated renamed to {@link $insertTableRowAtSelection}
42
+ */
43
+ export declare const $insertTableRow__EXPERIMENTAL: typeof $insertTableRowAtSelection;
44
+ /**
45
+ * Inserts a table row before or after the given cell node,
46
+ * taking into account any spans. If successful, returns the
47
+ * inserted table row node.
48
+ */
49
+ export declare function $insertTableRowAtNode(cellNode: TableCellNode, insertAfter?: boolean): TableRowNode | null;
50
+ /**
51
+ * @deprecated This function does not support merged cells. Use {@link $insertTableColumnAtSelection} or {@link $insertTableColumnAtNode} instead.
52
+ */
37
53
  export declare function $insertTableColumn(tableNode: TableNode, targetIndex: number, shouldInsertAfter: boolean | undefined, columnCount: number, table: TableDOMTable): TableNode;
38
54
  /**
39
55
  * Inserts a column before or after the current focus cell node,
40
56
  * taking into account any spans. If successful, returns the
41
57
  * first inserted cell node.
42
58
  */
43
- export declare function $insertTableColumn__EXPERIMENTAL(insertAfter?: boolean): TableCellNode | null;
59
+ export declare function $insertTableColumnAtSelection(insertAfter?: boolean): TableCellNode | null;
60
+ /**
61
+ * @deprecated renamed to {@link $insertTableColumnAtSelection}
62
+ */
63
+ export declare const $insertTableColumn__EXPERIMENTAL: typeof $insertTableColumnAtSelection;
64
+ /**
65
+ * Inserts a column before or after the given cell node,
66
+ * taking into account any spans. If successful, returns the
67
+ * first inserted cell node.
68
+ */
69
+ export declare function $insertTableColumnAtNode(cellNode: TableCellNode, insertAfter?: boolean, shouldSetSelection?: boolean): TableCellNode | null;
70
+ /**
71
+ * @deprecated This function does not support merged cells. Use {@link $deleteTableColumnAtSelection} instead.
72
+ */
44
73
  export declare function $deleteTableColumn(tableNode: TableNode, targetIndex: number): TableNode;
45
- export declare function $deleteTableRow__EXPERIMENTAL(): void;
46
- export declare function $deleteTableColumn__EXPERIMENTAL(): void;
74
+ export declare function $deleteTableRowAtSelection(): void;
75
+ /**
76
+ * @deprecated renamed to {@link $deleteTableRowAtSelection}
77
+ */
78
+ export declare const $deleteTableRow__EXPERIMENTAL: typeof $deleteTableRowAtSelection;
79
+ export declare function $deleteTableColumnAtSelection(): void;
80
+ /**
81
+ * @deprecated renamed to {@link $deleteTableColumnAtSelection}
82
+ */
83
+ export declare const $deleteTableColumn__EXPERIMENTAL: typeof $deleteTableColumnAtSelection;
84
+ export declare function $mergeCells(cellNodes: TableCellNode[]): TableCellNode | null;
47
85
  export declare function $unmergeCell(): void;
86
+ export declare function $unmergeCellNode(cellNode: TableCellNode): void;
48
87
  export declare function $computeTableMap(tableNode: TableNode, cellA: TableCellNode, cellB: TableCellNode): [TableMapType, TableMapValueType, TableMapValueType];
49
88
  export declare function $computeTableMapSkipCellCheck(tableNode: TableNode, cellA: null | TableCellNode, cellB: null | TableCellNode): [
50
89
  tableMap: TableMapType,
package/index.d.ts CHANGED
@@ -20,4 +20,4 @@ export type { TableMapType, TableMapValueType, TableSelection, TableSelectionSha
20
20
  export { $createTableSelection, $createTableSelectionFrom, $isTableSelection, } from './LexicalTableSelection';
21
21
  export type { HTMLTableElementWithWithTableSelectionState } from './LexicalTableSelectionHelpers';
22
22
  export { $findCellNode, $findTableNode, applyTableHandlers, getDOMCellFromTarget, getTableElement, getTableObserverFromTableElement, } from './LexicalTableSelectionHelpers';
23
- export { $computeTableMap, $computeTableMapSkipCellCheck, $createTableNodeWithDimensions, $deleteTableColumn, $deleteTableColumn__EXPERIMENTAL, $deleteTableRow__EXPERIMENTAL, $getNodeTriplet, $getTableCellNodeFromLexicalNode, $getTableCellNodeRect, $getTableColumnIndexFromTableCellNode, $getTableNodeFromLexicalNodeOrThrow, $getTableRowIndexFromTableCellNode, $getTableRowNodeFromTableCellNodeOrThrow, $insertTableColumn, $insertTableColumn__EXPERIMENTAL, $insertTableRow, $insertTableRow__EXPERIMENTAL, $removeTableRowAtIndex, $unmergeCell, } from './LexicalTableUtils';
23
+ export { $computeTableMap, $computeTableMapSkipCellCheck, $createTableNodeWithDimensions, $deleteTableColumn, $deleteTableColumn__EXPERIMENTAL, $deleteTableColumnAtSelection, $deleteTableRow__EXPERIMENTAL, $deleteTableRowAtSelection, $getNodeTriplet, $getTableCellNodeFromLexicalNode, $getTableCellNodeRect, $getTableColumnIndexFromTableCellNode, $getTableNodeFromLexicalNodeOrThrow, $getTableRowIndexFromTableCellNode, $getTableRowNodeFromTableCellNodeOrThrow, $insertTableColumn, $insertTableColumn__EXPERIMENTAL, $insertTableColumnAtSelection, $insertTableRow, $insertTableRow__EXPERIMENTAL, $insertTableRowAtSelection, $mergeCells, $removeTableRowAtIndex, $unmergeCell, } from './LexicalTableUtils';
package/package.json CHANGED
@@ -8,13 +8,13 @@
8
8
  "table"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.29.1-nightly.20250401.0",
11
+ "version": "0.29.1-nightly.20250403.0",
12
12
  "main": "LexicalTable.js",
13
13
  "types": "index.d.ts",
14
14
  "dependencies": {
15
- "@lexical/clipboard": "0.29.1-nightly.20250401.0",
16
- "@lexical/utils": "0.29.1-nightly.20250401.0",
17
- "lexical": "0.29.1-nightly.20250401.0"
15
+ "@lexical/clipboard": "0.29.1-nightly.20250403.0",
16
+ "@lexical/utils": "0.29.1-nightly.20250403.0",
17
+ "lexical": "0.29.1-nightly.20250403.0"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",