@lexical/table 0.3.9 → 0.4.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.
@@ -22,7 +22,12 @@ const TableCellHeaderStates = {
22
22
  NO_STATUS: 0,
23
23
  ROW: 1
24
24
  };
25
+
26
+ /** @noInheritDoc */
25
27
  class TableCellNode extends lexical.GridCellNode {
28
+ /** @internal */
29
+
30
+ /** @internal */
26
31
  static getType() {
27
32
  return 'tablecell';
28
33
  }
@@ -193,7 +198,10 @@ function $isTableCellNode(node) {
193
198
  * LICENSE file in the root directory of this source tree.
194
199
  *
195
200
  */
201
+
202
+ /** @noInheritDoc */
196
203
  class TableRowNode extends lexical.GridRowNode {
204
+ /** @internal */
197
205
  static getType() {
198
206
  return 'tablerow';
199
207
  }
@@ -1383,7 +1391,10 @@ function selectTableCellNode(tableCell) {
1383
1391
  * LICENSE file in the root directory of this source tree.
1384
1392
  *
1385
1393
  */
1394
+
1395
+ /** @noInheritDoc */
1386
1396
  class TableNode extends lexical.GridNode {
1397
+ /** @internal */
1387
1398
  static getType() {
1388
1399
  return 'table';
1389
1400
  }
@@ -1776,13 +1787,7 @@ function $deleteTableColumn(tableNode, targetIndex) {
1776
1787
  return tableNode;
1777
1788
  }
1778
1789
 
1779
- /**
1780
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1781
- *
1782
- * This source code is licensed under the MIT license found in the
1783
- * LICENSE file in the root directory of this source tree.
1784
- *
1785
- */
1790
+ /** @module @lexical/table */
1786
1791
  const INSERT_TABLE_COMMAND = lexical.createCommand();
1787
1792
 
1788
1793
  exports.$createTableCellNode = $createTableCellNode;
@@ -19,8 +19,11 @@ export declare type SerializedTableCellNode = Spread<{
19
19
  type: 'tablecell';
20
20
  width?: number;
21
21
  }, SerializedGridCellNode>;
22
+ /** @noInheritDoc */
22
23
  export declare class TableCellNode extends GridCellNode {
24
+ /** @internal */
23
25
  __headerState: TableCellHeaderState;
26
+ /** @internal */
24
27
  __width?: number;
25
28
  static getType(): 'tablecell';
26
29
  static clone(node: TableCellNode): TableCellNode;
@@ -13,7 +13,9 @@ export declare type SerializedTableNode = Spread<{
13
13
  type: 'table';
14
14
  version: 1;
15
15
  }, SerializedElementNode>;
16
+ /** @noInheritDoc */
16
17
  export declare class TableNode extends GridNode {
18
+ /** @internal */
17
19
  __grid?: Grid;
18
20
  static getType(): 'table';
19
21
  static clone(node: TableNode): TableNode;
@@ -12,7 +12,9 @@ export declare type SerializedTableRowNode = Spread<{
12
12
  type: 'tablerow';
13
13
  version: 1;
14
14
  }, SerializedElementNode>;
15
+ /** @noInheritDoc */
15
16
  export declare class TableRowNode extends GridRowNode {
17
+ /** @internal */
16
18
  __height?: number;
17
19
  static getType(): 'tablerow';
18
20
  static clone(node: TableRowNode): TableRowNode;
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /** @module @lexical/table */
1
2
  /**
2
3
  * Copyright (c) Meta Platforms, Inc. and affiliates.
3
4
  *
package/package.json CHANGED
@@ -8,13 +8,13 @@
8
8
  "table"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.3.9",
11
+ "version": "0.4.0",
12
12
  "main": "LexicalTable.js",
13
13
  "peerDependencies": {
14
- "lexical": "0.3.9"
14
+ "lexical": "0.4.0"
15
15
  },
16
16
  "dependencies": {
17
- "@lexical/utils": "0.3.9"
17
+ "@lexical/utils": "0.4.0"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",