@kopexa/extension-table 17.0.46 → 17.1.1

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.
Files changed (209) hide show
  1. package/dist/chunk-2NBDRVYL.mjs +428 -0
  2. package/dist/chunk-3SWV7BGP.mjs +638 -0
  3. package/dist/chunk-4JC7NB5Y.mjs +96 -0
  4. package/dist/{chunk-2L3HZWWG.mjs → chunk-4XRAUUXQ.mjs} +7 -8
  5. package/dist/chunk-5B5XIL2G.mjs +457 -0
  6. package/dist/chunk-6FHFDGJO.mjs +251 -0
  7. package/dist/chunk-CD62W5C3.mjs +165 -0
  8. package/dist/chunk-CN73TYHV.mjs +190 -0
  9. package/dist/chunk-CPDSPBS6.mjs +276 -0
  10. package/dist/chunk-E7W2KRZG.mjs +49 -0
  11. package/dist/chunk-G6GHC2WO.mjs +276 -0
  12. package/dist/chunk-GBTQVIN5.mjs +174 -0
  13. package/dist/chunk-GDEXPEW5.mjs +52 -0
  14. package/dist/chunk-GQLZBIWF.mjs +198 -0
  15. package/dist/chunk-J4VOSZCZ.mjs +59 -0
  16. package/dist/chunk-JQEUL3LT.mjs +276 -0
  17. package/dist/chunk-JSUVBKCI.mjs +116 -0
  18. package/dist/chunk-KIYFW7MP.mjs +122 -0
  19. package/dist/chunk-KTRZVXJC.mjs +306 -0
  20. package/dist/chunk-LUA32VH4.mjs +35 -0
  21. package/dist/chunk-LULO6UOC.mjs +603 -0
  22. package/dist/chunk-PTX5UYV6.mjs +10 -0
  23. package/dist/chunk-QI7CA4YV.mjs +149 -0
  24. package/dist/chunk-VIBVRWS4.mjs +197 -0
  25. package/dist/chunk-VQV757EG.mjs +113 -0
  26. package/dist/chunk-ZVPJDJBO.mjs +134 -0
  27. package/dist/{kit.d.mts → extensions/kit.d.mts} +1 -3
  28. package/dist/{kit.d.ts → extensions/kit.d.ts} +1 -3
  29. package/dist/extensions/kit.js +1041 -0
  30. package/dist/extensions/kit.mjs +15 -0
  31. package/dist/extensions/table-cell.d.mts +6 -0
  32. package/dist/extensions/table-cell.d.ts +6 -0
  33. package/dist/extensions/table-cell.js +70 -0
  34. package/dist/extensions/table-cell.mjs +8 -0
  35. package/dist/extensions/table-handle-plugin.d.mts +46 -0
  36. package/dist/extensions/table-handle-plugin.d.ts +46 -0
  37. package/dist/extensions/table-handle-plugin.js +1100 -0
  38. package/dist/extensions/table-handle-plugin.mjs +18 -0
  39. package/dist/extensions/table-handle.d.mts +19 -0
  40. package/dist/extensions/table-handle.d.ts +19 -0
  41. package/dist/extensions/table-handle.js +865 -0
  42. package/dist/extensions/table-handle.mjs +11 -0
  43. package/dist/{table → extensions}/table.d.mts +2 -2
  44. package/dist/{table → extensions}/table.d.ts +2 -2
  45. package/dist/extensions/table.js +138 -0
  46. package/dist/extensions/table.mjs +9 -0
  47. package/dist/hooks/use-resize-overlay.d.mts +5 -0
  48. package/dist/hooks/use-resize-overlay.d.ts +5 -0
  49. package/dist/hooks/use-resize-overlay.js +83 -0
  50. package/dist/hooks/use-resize-overlay.mjs +9 -0
  51. package/dist/hooks/use-table-add-row-column.d.mts +57 -0
  52. package/dist/hooks/use-table-add-row-column.d.ts +57 -0
  53. package/dist/hooks/use-table-add-row-column.js +551 -0
  54. package/dist/hooks/use-table-add-row-column.mjs +11 -0
  55. package/dist/hooks/use-table-align-cell.d.mts +148 -0
  56. package/dist/hooks/use-table-align-cell.d.ts +148 -0
  57. package/dist/hooks/use-table-align-cell.js +655 -0
  58. package/dist/hooks/use-table-align-cell.mjs +13 -0
  59. package/dist/hooks/use-table-clear-row-column-content.d.mts +103 -0
  60. package/dist/hooks/use-table-clear-row-column-content.d.ts +103 -0
  61. package/dist/hooks/use-table-clear-row-column-content.js +681 -0
  62. package/dist/hooks/use-table-clear-row-column-content.mjs +11 -0
  63. package/dist/hooks/use-table-delete-row-column.d.mts +87 -0
  64. package/dist/hooks/use-table-delete-row-column.d.ts +87 -0
  65. package/dist/hooks/use-table-delete-row-column.js +459 -0
  66. package/dist/hooks/use-table-delete-row-column.mjs +11 -0
  67. package/dist/hooks/use-table-duplicate-row-column.d.mts +49 -0
  68. package/dist/hooks/use-table-duplicate-row-column.d.ts +49 -0
  69. package/dist/hooks/use-table-duplicate-row-column.js +758 -0
  70. package/dist/hooks/use-table-duplicate-row-column.mjs +11 -0
  71. package/dist/hooks/use-table-handle-positioning.d.mts +42 -0
  72. package/dist/hooks/use-table-handle-positioning.d.ts +42 -0
  73. package/dist/hooks/use-table-handle-positioning.js +190 -0
  74. package/dist/hooks/use-table-handle-positioning.mjs +10 -0
  75. package/dist/hooks/use-table-handle-state.d.mts +28 -0
  76. package/dist/hooks/use-table-handle-state.d.ts +28 -0
  77. package/dist/hooks/use-table-handle-state.js +76 -0
  78. package/dist/hooks/use-table-handle-state.mjs +9 -0
  79. package/dist/hooks/use-table-header-row-column.d.mts +58 -0
  80. package/dist/hooks/use-table-header-row-column.d.ts +58 -0
  81. package/dist/hooks/use-table-header-row-column.js +603 -0
  82. package/dist/hooks/use-table-header-row-column.mjs +13 -0
  83. package/dist/hooks/use-table-merge-split-cell.d.mts +123 -0
  84. package/dist/hooks/use-table-merge-split-cell.d.ts +123 -0
  85. package/dist/hooks/use-table-merge-split-cell.js +331 -0
  86. package/dist/hooks/use-table-merge-split-cell.mjs +12 -0
  87. package/dist/hooks/use-table-move-row-column.d.mts +101 -0
  88. package/dist/hooks/use-table-move-row-column.d.ts +101 -0
  89. package/dist/hooks/use-table-move-row-column.js +621 -0
  90. package/dist/hooks/use-table-move-row-column.mjs +13 -0
  91. package/dist/hooks/use-table-sort-row-column.d.mts +118 -0
  92. package/dist/hooks/use-table-sort-row-column.d.ts +118 -0
  93. package/dist/hooks/use-table-sort-row-column.js +623 -0
  94. package/dist/hooks/use-table-sort-row-column.mjs +13 -0
  95. package/dist/index.d.mts +17 -6
  96. package/dist/index.d.ts +17 -6
  97. package/dist/index.js +4947 -660
  98. package/dist/index.mjs +43 -21
  99. package/dist/lib/constants.d.mts +4 -0
  100. package/dist/lib/constants.d.ts +4 -0
  101. package/dist/{table/lib/is-cell-selection.js → lib/constants.js} +10 -10
  102. package/dist/lib/constants.mjs +10 -0
  103. package/dist/lib/create-image.d.mts +12 -0
  104. package/dist/lib/create-image.d.ts +12 -0
  105. package/dist/lib/create-image.js +221 -0
  106. package/dist/lib/create-image.mjs +8 -0
  107. package/dist/lib/table-utils.d.mts +263 -0
  108. package/dist/lib/table-utils.d.ts +263 -0
  109. package/dist/lib/table-utils.js +488 -0
  110. package/dist/lib/table-utils.mjs +40 -0
  111. package/dist/messages.d.mts +174 -0
  112. package/dist/messages.d.ts +174 -0
  113. package/dist/messages.js +213 -0
  114. package/dist/{table-row.mjs → messages.mjs} +3 -3
  115. package/dist/ui/table-alignment-menu.d.mts +25 -0
  116. package/dist/ui/table-alignment-menu.d.ts +25 -0
  117. package/dist/ui/table-alignment-menu.js +758 -0
  118. package/dist/ui/table-alignment-menu.mjs +14 -0
  119. package/dist/ui/table-cell-handle-menu.d.mts +12 -0
  120. package/dist/ui/table-cell-handle-menu.d.ts +12 -0
  121. package/dist/ui/table-cell-handle-menu.js +1317 -0
  122. package/dist/ui/table-cell-handle-menu.mjs +17 -0
  123. package/dist/ui/table-handle-menu.d.mts +23 -0
  124. package/dist/ui/table-handle-menu.d.ts +23 -0
  125. package/dist/ui/table-handle-menu.js +2598 -0
  126. package/dist/ui/table-handle-menu.mjs +21 -0
  127. package/dist/ui/table-handle.d.mts +48 -0
  128. package/dist/ui/table-handle.d.ts +48 -0
  129. package/dist/ui/table-handle.js +3126 -0
  130. package/dist/ui/table-handle.mjs +22 -0
  131. package/dist/ui/table-selection-overlay.d.mts +14 -0
  132. package/dist/ui/table-selection-overlay.d.ts +14 -0
  133. package/dist/ui/table-selection-overlay.js +553 -0
  134. package/dist/ui/table-selection-overlay.mjs +11 -0
  135. package/package.json +12 -7
  136. package/dist/chunk-3XEOCAHB.mjs +0 -41
  137. package/dist/chunk-5W5ARI64.mjs +0 -11
  138. package/dist/chunk-BTJ3DCGC.mjs +0 -113
  139. package/dist/chunk-DR2GZJH6.mjs +0 -70
  140. package/dist/chunk-GHOJLOCF.mjs +0 -247
  141. package/dist/chunk-HWVA6DOK.mjs +0 -20
  142. package/dist/chunk-KLUH6EZS.mjs +0 -40
  143. package/dist/chunk-KNOMCS6F.mjs +0 -57
  144. package/dist/chunk-LPHCE6EI.mjs +0 -92
  145. package/dist/chunk-POJFNXG7.mjs +0 -44
  146. package/dist/chunk-QHD3QTD2.mjs +0 -61
  147. package/dist/chunk-RPPUD4R5.mjs +0 -1
  148. package/dist/kit.js +0 -764
  149. package/dist/kit.mjs +0 -19
  150. package/dist/table/index.d.mts +0 -6
  151. package/dist/table/index.d.ts +0 -6
  152. package/dist/table/index.js +0 -625
  153. package/dist/table/index.mjs +0 -18
  154. package/dist/table/lib/col-style.d.mts +0 -3
  155. package/dist/table/lib/col-style.d.ts +0 -3
  156. package/dist/table/lib/col-style.js +0 -36
  157. package/dist/table/lib/col-style.mjs +0 -13
  158. package/dist/table/lib/delete-table-when-all-cells-selected.d.mts +0 -5
  159. package/dist/table/lib/delete-table-when-all-cells-selected.d.ts +0 -5
  160. package/dist/table/lib/delete-table-when-all-cells-selected.js +0 -66
  161. package/dist/table/lib/delete-table-when-all-cells-selected.mjs +0 -40
  162. package/dist/table/lib/get-table-node-types.d.mts +0 -7
  163. package/dist/table/lib/get-table-node-types.d.ts +0 -7
  164. package/dist/table/lib/get-table-node-types.js +0 -44
  165. package/dist/table/lib/get-table-node-types.mjs +0 -21
  166. package/dist/table/lib/icons.d.mts +0 -13
  167. package/dist/table/lib/icons.d.ts +0 -13
  168. package/dist/table/lib/icons.js +0 -81
  169. package/dist/table/lib/icons.mjs +0 -58
  170. package/dist/table/lib/insert-line-above-table-action.d.mts +0 -5
  171. package/dist/table/lib/insert-line-above-table-action.d.ts +0 -5
  172. package/dist/table/lib/insert-line-above-table-action.js +0 -64
  173. package/dist/table/lib/insert-line-above-table-action.mjs +0 -8
  174. package/dist/table/lib/insert-line-below-table-action.d.mts +0 -5
  175. package/dist/table/lib/insert-line-below-table-action.d.ts +0 -5
  176. package/dist/table/lib/insert-line-below-table-action.js +0 -63
  177. package/dist/table/lib/insert-line-below-table-action.mjs +0 -8
  178. package/dist/table/lib/is-cell-selection.d.mts +0 -5
  179. package/dist/table/lib/is-cell-selection.d.ts +0 -5
  180. package/dist/table/lib/is-cell-selection.mjs +0 -8
  181. package/dist/table/lib/table-controls.d.mts +0 -15
  182. package/dist/table/lib/table-controls.d.ts +0 -15
  183. package/dist/table/lib/table-controls.js +0 -131
  184. package/dist/table/lib/table-controls.mjs +0 -8
  185. package/dist/table/table.js +0 -621
  186. package/dist/table/table.mjs +0 -14
  187. package/dist/table/views/table-column-menu.d.mts +0 -11
  188. package/dist/table/views/table-column-menu.d.ts +0 -11
  189. package/dist/table/views/table-column-menu.js +0 -84
  190. package/dist/table/views/table-column-menu.mjs +0 -8
  191. package/dist/table/views/table-node-view.d.mts +0 -25
  192. package/dist/table/views/table-node-view.d.ts +0 -25
  193. package/dist/table/views/table-node-view.js +0 -370
  194. package/dist/table/views/table-node-view.mjs +0 -10
  195. package/dist/table/views/table-row-menu.d.mts +0 -11
  196. package/dist/table/views/table-row-menu.d.ts +0 -11
  197. package/dist/table/views/table-row-menu.js +0 -80
  198. package/dist/table/views/table-row-menu.mjs +0 -8
  199. package/dist/table-cell.d.mts +0 -8
  200. package/dist/table-cell.d.ts +0 -8
  201. package/dist/table-cell.js +0 -93
  202. package/dist/table-cell.mjs +0 -8
  203. package/dist/table-header.d.mts +0 -6
  204. package/dist/table-header.d.ts +0 -6
  205. package/dist/table-header.js +0 -67
  206. package/dist/table-header.mjs +0 -8
  207. package/dist/table-row.d.mts +0 -6
  208. package/dist/table-row.d.ts +0 -6
  209. package/dist/table-row.js +0 -43
@@ -1,36 +0,0 @@
1
- "use client";
2
- "use strict";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/table/lib/col-style.ts
22
- var col_style_exports = {};
23
- __export(col_style_exports, {
24
- getColStyleDeclaration: () => getColStyleDeclaration
25
- });
26
- module.exports = __toCommonJS(col_style_exports);
27
- function getColStyleDeclaration(minWidth, width) {
28
- if (width) {
29
- return ["width", `${Math.max(width, minWidth)}px`];
30
- }
31
- return ["min-width", `${minWidth}px`];
32
- }
33
- // Annotate the CommonJS export names for ESM import in node:
34
- 0 && (module.exports = {
35
- getColStyleDeclaration
36
- });
@@ -1,13 +0,0 @@
1
- "use client";
2
- import "../../chunk-WKV76XOR.mjs";
3
-
4
- // src/table/lib/col-style.ts
5
- function getColStyleDeclaration(minWidth, width) {
6
- if (width) {
7
- return ["width", `${Math.max(width, minWidth)}px`];
8
- }
9
- return ["min-width", `${minWidth}px`];
10
- }
11
- export {
12
- getColStyleDeclaration
13
- };
@@ -1,5 +0,0 @@
1
- import { KeyboardShortcutCommand } from '@tiptap/core';
2
-
3
- declare const deleteTableWhenAllCellsSelected: KeyboardShortcutCommand;
4
-
5
- export { deleteTableWhenAllCellsSelected };
@@ -1,5 +0,0 @@
1
- import { KeyboardShortcutCommand } from '@tiptap/core';
2
-
3
- declare const deleteTableWhenAllCellsSelected: KeyboardShortcutCommand;
4
-
5
- export { deleteTableWhenAllCellsSelected };
@@ -1,66 +0,0 @@
1
- "use client";
2
- "use strict";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/table/lib/delete-table-when-all-cells-selected.ts
22
- var delete_table_when_all_cells_selected_exports = {};
23
- __export(delete_table_when_all_cells_selected_exports, {
24
- deleteTableWhenAllCellsSelected: () => deleteTableWhenAllCellsSelected
25
- });
26
- module.exports = __toCommonJS(delete_table_when_all_cells_selected_exports);
27
- var import_core = require("@tiptap/core");
28
-
29
- // src/table/lib/is-cell-selection.ts
30
- var import_tables = require("@tiptap/pm/tables");
31
- function isCellSelection(value) {
32
- return value instanceof import_tables.CellSelection;
33
- }
34
-
35
- // src/table/lib/delete-table-when-all-cells-selected.ts
36
- var deleteTableWhenAllCellsSelected = ({
37
- editor
38
- }) => {
39
- const { selection } = editor.state;
40
- if (!isCellSelection(selection)) {
41
- return false;
42
- }
43
- let cellCount = 0;
44
- const table = (0, import_core.findParentNodeClosestToPos)(
45
- selection.ranges[0].$from,
46
- (node) => node.type.name === "table"
47
- );
48
- table == null ? void 0 : table.node.descendants((node) => {
49
- if (node.type.name === "table") {
50
- return false;
51
- }
52
- if (["tableCell", "tableHeader"].includes(node.type.name)) {
53
- cellCount += 1;
54
- }
55
- });
56
- const allCellsSelected = cellCount === selection.ranges.length;
57
- if (!allCellsSelected) {
58
- return false;
59
- }
60
- editor.commands.deleteTable();
61
- return true;
62
- };
63
- // Annotate the CommonJS export names for ESM import in node:
64
- 0 && (module.exports = {
65
- deleteTableWhenAllCellsSelected
66
- });
@@ -1,40 +0,0 @@
1
- "use client";
2
- import {
3
- isCellSelection
4
- } from "../../chunk-5W5ARI64.mjs";
5
- import "../../chunk-WKV76XOR.mjs";
6
-
7
- // src/table/lib/delete-table-when-all-cells-selected.ts
8
- import {
9
- findParentNodeClosestToPos
10
- } from "@tiptap/core";
11
- var deleteTableWhenAllCellsSelected = ({
12
- editor
13
- }) => {
14
- const { selection } = editor.state;
15
- if (!isCellSelection(selection)) {
16
- return false;
17
- }
18
- let cellCount = 0;
19
- const table = findParentNodeClosestToPos(
20
- selection.ranges[0].$from,
21
- (node) => node.type.name === "table"
22
- );
23
- table == null ? void 0 : table.node.descendants((node) => {
24
- if (node.type.name === "table") {
25
- return false;
26
- }
27
- if (["tableCell", "tableHeader"].includes(node.type.name)) {
28
- cellCount += 1;
29
- }
30
- });
31
- const allCellsSelected = cellCount === selection.ranges.length;
32
- if (!allCellsSelected) {
33
- return false;
34
- }
35
- editor.commands.deleteTable();
36
- return true;
37
- };
38
- export {
39
- deleteTableWhenAllCellsSelected
40
- };
@@ -1,7 +0,0 @@
1
- import { Schema, NodeType } from '@tiptap/pm/model';
2
-
3
- declare function getTableNodeTypes(schema: Schema): {
4
- [key: string]: NodeType;
5
- };
6
-
7
- export { getTableNodeTypes };
@@ -1,7 +0,0 @@
1
- import { Schema, NodeType } from '@tiptap/pm/model';
2
-
3
- declare function getTableNodeTypes(schema: Schema): {
4
- [key: string]: NodeType;
5
- };
6
-
7
- export { getTableNodeTypes };
@@ -1,44 +0,0 @@
1
- "use client";
2
- "use strict";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/table/lib/get-table-node-types.ts
22
- var get_table_node_types_exports = {};
23
- __export(get_table_node_types_exports, {
24
- getTableNodeTypes: () => getTableNodeTypes
25
- });
26
- module.exports = __toCommonJS(get_table_node_types_exports);
27
- function getTableNodeTypes(schema) {
28
- if (schema.cached.tableNodeTypes) {
29
- return schema.cached.tableNodeTypes;
30
- }
31
- const roles = {};
32
- for (const type of Object.keys(schema.nodes)) {
33
- const nodeType = schema.nodes[type];
34
- if (nodeType.spec.tableRole) {
35
- roles[nodeType.spec.tableRole] = nodeType;
36
- }
37
- }
38
- schema.cached.tableNodeTypes = roles;
39
- return roles;
40
- }
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
43
- getTableNodeTypes
44
- });
@@ -1,21 +0,0 @@
1
- "use client";
2
- import "../../chunk-WKV76XOR.mjs";
3
-
4
- // src/table/lib/get-table-node-types.ts
5
- function getTableNodeTypes(schema) {
6
- if (schema.cached.tableNodeTypes) {
7
- return schema.cached.tableNodeTypes;
8
- }
9
- const roles = {};
10
- for (const type of Object.keys(schema.nodes)) {
11
- const nodeType = schema.nodes[type];
12
- if (nodeType.spec.tableRole) {
13
- roles[nodeType.spec.tableRole] = nodeType;
14
- }
15
- }
16
- schema.cached.tableNodeTypes = roles;
17
- return roles;
18
- }
19
- export {
20
- getTableNodeTypes
21
- };
@@ -1,13 +0,0 @@
1
- declare const icons: {
2
- colorPicker: string;
3
- deleteColumn: string;
4
- deleteRow: string;
5
- insertLeftTableIcon: string;
6
- insertRightTableIcon: string;
7
- insertTopTableIcon: string;
8
- toggleColumnHeader: string;
9
- toggleRowHeader: string;
10
- insertBottomTableIcon: string;
11
- };
12
-
13
- export { icons };
@@ -1,13 +0,0 @@
1
- declare const icons: {
2
- colorPicker: string;
3
- deleteColumn: string;
4
- deleteRow: string;
5
- insertLeftTableIcon: string;
6
- insertRightTableIcon: string;
7
- insertTopTableIcon: string;
8
- toggleColumnHeader: string;
9
- toggleRowHeader: string;
10
- insertBottomTableIcon: string;
11
- };
12
-
13
- export { icons };
@@ -1,81 +0,0 @@
1
- "use client";
2
- "use strict";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/table/lib/icons.ts
22
- var icons_exports = {};
23
- __export(icons_exports, {
24
- icons: () => icons
25
- });
26
- module.exports = __toCommonJS(icons_exports);
27
- var icons = {
28
- colorPicker: `<svg xmlns="http://www.w3.org/2000/svg" length="24" viewBox="0 0 24 24" style="transform: ;msFilter:;"><path fill="rgb(var(--color-text-300))" d="M20 14c-.092.064-2 2.083-2 3.5 0 1.494.949 2.448 2 2.5.906.044 2-.891 2-2.5 0-1.5-1.908-3.436-2-3.5zM9.586 20c.378.378.88.586 1.414.586s1.036-.208 1.414-.586l7-7-.707-.707L11 4.586 8.707 2.293 7.293 3.707 9.586 6 4 11.586c-.378.378-.586.88-.586 1.414s.208 1.036.586 1.414L9.586 20zM11 7.414 16.586 13H5.414L11 7.414z"></path></svg>`,
29
- deleteColumn: `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trash-2"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`,
30
- deleteRow: `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trash-2"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`,
31
- insertLeftTableIcon: `<svg
32
- xmlns="http://www.w3.org/2000/svg"
33
- length={12}
34
- viewBox="0 -960 960 960"
35
- >
36
- <path
37
- d="M224.617-140.001q-30.307 0-51.307-21-21-21-21-51.308v-535.382q0-30.308 21-51.308t51.307-21H360q30.307 0 51.307 21 21 21 21 51.308v535.382q0 30.308-21 51.308t-51.307 21H224.617Zm375.383 0q-30.307 0-51.307-21-21-21-21-51.308v-535.382q0-30.308 21-51.308t51.307-21h135.383q30.307 0 51.307 21 21 21 21 51.308v535.382q0 30.308-21 51.308t-51.307 21H600Zm147.691-607.69q0-4.616-3.846-8.463-3.846-3.846-8.462-3.846H600q-4.616 0-8.462 3.846-3.847 3.847-3.847 8.463v535.382q0 4.616 3.847 8.463Q595.384-200 600-200h135.383q4.616 0 8.462-3.846 3.846-3.847 3.846-8.463v-535.382ZM587.691-200h160-160Z"
38
- fill="rgb(var(--color-text-300))"
39
- />
40
- </svg>
41
- `,
42
- insertRightTableIcon: `<svg
43
- xmlns="http://www.w3.org/2000/svg"
44
- length={12}
45
- viewBox="0 -960 960 960"
46
- >
47
- <path
48
- d="M600-140.001q-30.307 0-51.307-21-21-21-21-51.308v-535.382q0-30.308 21-51.308t51.307-21h135.383q30.307 0 51.307 21 21 21 21 51.308v535.382q0 30.308-21 51.308t-51.307 21H600Zm-375.383 0q-30.307 0-51.307-21-21-21-21-51.308v-535.382q0-30.308 21-51.308t51.307-21H360q30.307 0 51.307 21 21 21 21 51.308v535.382q0 30.308-21 51.308t-51.307 21H224.617Zm-12.308-607.69v535.382q0 4.616 3.846 8.463 3.846 3.846 8.462 3.846H360q4.616 0 8.462-3.846 3.847-3.847 3.847-8.463v-535.382q0-4.616-3.847-8.463Q364.616-760 360-760H224.617q-4.616 0-8.462 3.846-3.846 3.847-3.846 8.463Zm160 547.691h-160 160Z"
49
- fill="rgb(var(--color-text-300))"
50
- />
51
- </svg>
52
- `,
53
- insertTopTableIcon: `<svg
54
- xmlns="http://www.w3.org/2000/svg"
55
- length={24}
56
- viewBox="0 -960 960 960"
57
- >
58
- <path
59
- d="M212.309-527.693q-30.308 0-51.308-21t-21-51.307v-135.383q0-30.307 21-51.307 21-21 51.308-21h535.382q30.308 0 51.308 21t21 51.307V-600q0 30.307-21 51.307-21 21-51.308 21H212.309Zm0 375.383q-30.308 0-51.308-21t-21-51.307V-360q0-30.307 21-51.307 21-21 51.308-21h535.382q30.308 0 51.308 21t21 51.307v135.383q0 30.307-21 51.307-21 21-51.308 21H212.309Zm0-59.999h535.382q4.616 0 8.463-3.846 3.846-3.846 3.846-8.462V-360q0-4.616-3.846-8.462-3.847-3.847-8.463-3.847H212.309q-4.616 0-8.463 3.847Q200-364.616 200-360v135.383q0 4.616 3.846 8.462 3.847 3.846 8.463 3.846Zm-12.309-160v160-160Z"
60
- fill="rgb(var(--color-text-300))"
61
- />
62
- </svg>
63
- `,
64
- toggleColumnHeader: `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-toggle-right"><rect width="20" height="12" x="2" y="6" rx="6" ry="6"/><circle cx="16" cy="12" r="2"/></svg>`,
65
- toggleRowHeader: `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-toggle-right"><rect width="20" height="12" x="2" y="6" rx="6" ry="6"/><circle cx="16" cy="12" r="2"/></svg>`,
66
- insertBottomTableIcon: `<svg
67
- xmlns="http://www.w3.org/2000/svg"
68
- length={24}
69
- viewBox="0 -960 960 960"
70
- >
71
- <path
72
- d="M212.309-152.31q-30.308 0-51.308-21t-21-51.307V-360q0-30.307 21-51.307 21-21 51.308-21h535.382q30.308 0 51.308 21t21 51.307v135.383q0 30.307-21 51.307-21 21-51.308 21H212.309Zm0-375.383q-30.308 0-51.308-21t-21-51.307v-135.383q0-30.307 21-51.307 21-21 51.308-21h535.382q30.308 0 51.308 21t21 51.307V-600q0 30.307-21 51.307-21 21-51.308 21H212.309Zm535.382-219.998H212.309q-4.616 0-8.463 3.846-3.846 3.846-3.846 8.462V-600q0 4.616 3.846 8.462 3.847 3.847 8.463 3.847h535.382q4.616 0 8.463-3.847Q760-595.384 760-600v-135.383q0-4.616-3.846-8.462-3.847-3.846-8.463-3.846ZM200-587.691v-160 160Z"
73
- fill="rgb(var(--color-text-300))"
74
- />
75
- </svg>
76
- `
77
- };
78
- // Annotate the CommonJS export names for ESM import in node:
79
- 0 && (module.exports = {
80
- icons
81
- });
@@ -1,58 +0,0 @@
1
- "use client";
2
- import "../../chunk-WKV76XOR.mjs";
3
-
4
- // src/table/lib/icons.ts
5
- var icons = {
6
- colorPicker: `<svg xmlns="http://www.w3.org/2000/svg" length="24" viewBox="0 0 24 24" style="transform: ;msFilter:;"><path fill="rgb(var(--color-text-300))" d="M20 14c-.092.064-2 2.083-2 3.5 0 1.494.949 2.448 2 2.5.906.044 2-.891 2-2.5 0-1.5-1.908-3.436-2-3.5zM9.586 20c.378.378.88.586 1.414.586s1.036-.208 1.414-.586l7-7-.707-.707L11 4.586 8.707 2.293 7.293 3.707 9.586 6 4 11.586c-.378.378-.586.88-.586 1.414s.208 1.036.586 1.414L9.586 20zM11 7.414 16.586 13H5.414L11 7.414z"></path></svg>`,
7
- deleteColumn: `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trash-2"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`,
8
- deleteRow: `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trash-2"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`,
9
- insertLeftTableIcon: `<svg
10
- xmlns="http://www.w3.org/2000/svg"
11
- length={12}
12
- viewBox="0 -960 960 960"
13
- >
14
- <path
15
- d="M224.617-140.001q-30.307 0-51.307-21-21-21-21-51.308v-535.382q0-30.308 21-51.308t51.307-21H360q30.307 0 51.307 21 21 21 21 51.308v535.382q0 30.308-21 51.308t-51.307 21H224.617Zm375.383 0q-30.307 0-51.307-21-21-21-21-51.308v-535.382q0-30.308 21-51.308t51.307-21h135.383q30.307 0 51.307 21 21 21 21 51.308v535.382q0 30.308-21 51.308t-51.307 21H600Zm147.691-607.69q0-4.616-3.846-8.463-3.846-3.846-8.462-3.846H600q-4.616 0-8.462 3.846-3.847 3.847-3.847 8.463v535.382q0 4.616 3.847 8.463Q595.384-200 600-200h135.383q4.616 0 8.462-3.846 3.846-3.847 3.846-8.463v-535.382ZM587.691-200h160-160Z"
16
- fill="rgb(var(--color-text-300))"
17
- />
18
- </svg>
19
- `,
20
- insertRightTableIcon: `<svg
21
- xmlns="http://www.w3.org/2000/svg"
22
- length={12}
23
- viewBox="0 -960 960 960"
24
- >
25
- <path
26
- d="M600-140.001q-30.307 0-51.307-21-21-21-21-51.308v-535.382q0-30.308 21-51.308t51.307-21h135.383q30.307 0 51.307 21 21 21 21 51.308v535.382q0 30.308-21 51.308t-51.307 21H600Zm-375.383 0q-30.307 0-51.307-21-21-21-21-51.308v-535.382q0-30.308 21-51.308t51.307-21H360q30.307 0 51.307 21 21 21 21 51.308v535.382q0 30.308-21 51.308t-51.307 21H224.617Zm-12.308-607.69v535.382q0 4.616 3.846 8.463 3.846 3.846 8.462 3.846H360q4.616 0 8.462-3.846 3.847-3.847 3.847-8.463v-535.382q0-4.616-3.847-8.463Q364.616-760 360-760H224.617q-4.616 0-8.462 3.846-3.846 3.847-3.846 8.463Zm160 547.691h-160 160Z"
27
- fill="rgb(var(--color-text-300))"
28
- />
29
- </svg>
30
- `,
31
- insertTopTableIcon: `<svg
32
- xmlns="http://www.w3.org/2000/svg"
33
- length={24}
34
- viewBox="0 -960 960 960"
35
- >
36
- <path
37
- d="M212.309-527.693q-30.308 0-51.308-21t-21-51.307v-135.383q0-30.307 21-51.307 21-21 51.308-21h535.382q30.308 0 51.308 21t21 51.307V-600q0 30.307-21 51.307-21 21-51.308 21H212.309Zm0 375.383q-30.308 0-51.308-21t-21-51.307V-360q0-30.307 21-51.307 21-21 51.308-21h535.382q30.308 0 51.308 21t21 51.307v135.383q0 30.307-21 51.307-21 21-51.308 21H212.309Zm0-59.999h535.382q4.616 0 8.463-3.846 3.846-3.846 3.846-8.462V-360q0-4.616-3.846-8.462-3.847-3.847-8.463-3.847H212.309q-4.616 0-8.463 3.847Q200-364.616 200-360v135.383q0 4.616 3.846 8.462 3.847 3.846 8.463 3.846Zm-12.309-160v160-160Z"
38
- fill="rgb(var(--color-text-300))"
39
- />
40
- </svg>
41
- `,
42
- toggleColumnHeader: `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-toggle-right"><rect width="20" height="12" x="2" y="6" rx="6" ry="6"/><circle cx="16" cy="12" r="2"/></svg>`,
43
- toggleRowHeader: `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-toggle-right"><rect width="20" height="12" x="2" y="6" rx="6" ry="6"/><circle cx="16" cy="12" r="2"/></svg>`,
44
- insertBottomTableIcon: `<svg
45
- xmlns="http://www.w3.org/2000/svg"
46
- length={24}
47
- viewBox="0 -960 960 960"
48
- >
49
- <path
50
- d="M212.309-152.31q-30.308 0-51.308-21t-21-51.307V-360q0-30.307 21-51.307 21-21 51.308-21h535.382q30.308 0 51.308 21t21 51.307v135.383q0 30.307-21 51.307-21 21-51.308 21H212.309Zm0-375.383q-30.308 0-51.308-21t-21-51.307v-135.383q0-30.307 21-51.307 21-21 51.308-21h535.382q30.308 0 51.308 21t21 51.307V-600q0 30.307-21 51.307-21 21-51.308 21H212.309Zm535.382-219.998H212.309q-4.616 0-8.463 3.846-3.846 3.846-3.846 8.462V-600q0 4.616 3.846 8.462 3.847 3.847 8.463 3.847h535.382q4.616 0 8.463-3.847Q760-595.384 760-600v-135.383q0-4.616-3.846-8.462-3.847-3.846-8.463-3.846ZM200-587.691v-160 160Z"
51
- fill="rgb(var(--color-text-300))"
52
- />
53
- </svg>
54
- `
55
- };
56
- export {
57
- icons
58
- };
@@ -1,5 +0,0 @@
1
- import { KeyboardShortcutCommand } from '@tiptap/core';
2
-
3
- declare const insertLineAboveTableAction: KeyboardShortcutCommand;
4
-
5
- export { insertLineAboveTableAction };
@@ -1,5 +0,0 @@
1
- import { KeyboardShortcutCommand } from '@tiptap/core';
2
-
3
- declare const insertLineAboveTableAction: KeyboardShortcutCommand;
4
-
5
- export { insertLineAboveTableAction };
@@ -1,64 +0,0 @@
1
- "use client";
2
- "use strict";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/table/lib/insert-line-above-table-action.ts
22
- var insert_line_above_table_action_exports = {};
23
- __export(insert_line_above_table_action_exports, {
24
- insertLineAboveTableAction: () => insertLineAboveTableAction
25
- });
26
- module.exports = __toCommonJS(insert_line_above_table_action_exports);
27
- var import_editor_utils = require("@kopexa/editor-utils");
28
- var insertLineAboveTableAction = ({
29
- editor
30
- }) => {
31
- if (!editor.isActive("table")) return false;
32
- try {
33
- const { selection } = editor.state;
34
- const tableNode = (0, import_editor_utils.findParentNodeOfType)(selection, "table");
35
- if (!tableNode) return false;
36
- const tablePos = tableNode.pos;
37
- const firstRow = tableNode.node.child(0);
38
- const selectionPath = selection.$anchor.path;
39
- const selectionInFirstRow = selectionPath.includes(firstRow);
40
- if (!selectionInFirstRow) return false;
41
- if (tablePos === 0) {
42
- editor.chain().insertContentAt(tablePos, { type: "paragraph" }).run();
43
- editor.chain().setTextSelection(tablePos + 1).run();
44
- } else {
45
- const prevNodePos = tablePos - 1;
46
- if (prevNodePos <= 0) return false;
47
- const prevNode = editor.state.doc.nodeAt(prevNodePos - 1);
48
- if (prevNode && prevNode.type.name === "paragraph") {
49
- const endOfParagraphPos = tablePos - prevNode.nodeSize;
50
- editor.chain().setTextSelection(endOfParagraphPos).run();
51
- } else {
52
- return false;
53
- }
54
- }
55
- return true;
56
- } catch (e) {
57
- console.error("failed to insert line above table", e);
58
- return false;
59
- }
60
- };
61
- // Annotate the CommonJS export names for ESM import in node:
62
- 0 && (module.exports = {
63
- insertLineAboveTableAction
64
- });
@@ -1,8 +0,0 @@
1
- "use client";
2
- import {
3
- insertLineAboveTableAction
4
- } from "../../chunk-3XEOCAHB.mjs";
5
- import "../../chunk-WKV76XOR.mjs";
6
- export {
7
- insertLineAboveTableAction
8
- };
@@ -1,5 +0,0 @@
1
- import { KeyboardShortcutCommand } from '@tiptap/core';
2
-
3
- declare const insertLineBelowTableAction: KeyboardShortcutCommand;
4
-
5
- export { insertLineBelowTableAction };
@@ -1,5 +0,0 @@
1
- import { KeyboardShortcutCommand } from '@tiptap/core';
2
-
3
- declare const insertLineBelowTableAction: KeyboardShortcutCommand;
4
-
5
- export { insertLineBelowTableAction };
@@ -1,63 +0,0 @@
1
- "use client";
2
- "use strict";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/table/lib/insert-line-below-table-action.ts
22
- var insert_line_below_table_action_exports = {};
23
- __export(insert_line_below_table_action_exports, {
24
- insertLineBelowTableAction: () => insertLineBelowTableAction
25
- });
26
- module.exports = __toCommonJS(insert_line_below_table_action_exports);
27
- var import_editor_utils = require("@kopexa/editor-utils");
28
- var insertLineBelowTableAction = ({
29
- editor
30
- }) => {
31
- if (!editor.isActive("table")) return false;
32
- try {
33
- const { selection } = editor.state;
34
- const tableNode = (0, import_editor_utils.findParentNodeOfType)(selection, "table");
35
- if (!tableNode) return false;
36
- const tablePos = tableNode.pos;
37
- const table = tableNode.node;
38
- const rowCount = table.childCount;
39
- const lastRow = table.child(rowCount - 1);
40
- const selectionPath = selection.$anchor.path;
41
- const selectionInLastRow = selectionPath.includes(lastRow);
42
- if (!selectionInLastRow) return false;
43
- const nextNodePos = tablePos + table.nodeSize;
44
- const nextNode = editor.state.doc.nodeAt(nextNodePos);
45
- if (nextNode && nextNode.type.name === "paragraph") {
46
- const endOfParagraphPos = nextNodePos + nextNode.nodeSize - 1;
47
- editor.chain().setTextSelection(endOfParagraphPos).run();
48
- } else if (!nextNode) {
49
- editor.chain().insertContentAt(nextNodePos, { type: "paragraph" }).run();
50
- editor.chain().setTextSelection(nextNodePos + 1).run();
51
- } else {
52
- return false;
53
- }
54
- return true;
55
- } catch (e) {
56
- console.error("failed to insert line above table", e);
57
- return false;
58
- }
59
- };
60
- // Annotate the CommonJS export names for ESM import in node:
61
- 0 && (module.exports = {
62
- insertLineBelowTableAction
63
- });
@@ -1,8 +0,0 @@
1
- "use client";
2
- import {
3
- insertLineBelowTableAction
4
- } from "../../chunk-KLUH6EZS.mjs";
5
- import "../../chunk-WKV76XOR.mjs";
6
- export {
7
- insertLineBelowTableAction
8
- };
@@ -1,5 +0,0 @@
1
- import { CellSelection } from '@tiptap/pm/tables';
2
-
3
- declare function isCellSelection(value: unknown): value is CellSelection;
4
-
5
- export { isCellSelection };
@@ -1,5 +0,0 @@
1
- import { CellSelection } from '@tiptap/pm/tables';
2
-
3
- declare function isCellSelection(value: unknown): value is CellSelection;
4
-
5
- export { isCellSelection };
@@ -1,8 +0,0 @@
1
- "use client";
2
- import {
3
- isCellSelection
4
- } from "../../chunk-5W5ARI64.mjs";
5
- import "../../chunk-WKV76XOR.mjs";
6
- export {
7
- isCellSelection
8
- };
@@ -1,15 +0,0 @@
1
- import { Plugin, PluginKey, Transaction } from '@tiptap/pm/state';
2
-
3
- /**
4
- * Creates a table controls plugin with a unique key per instance.
5
- * This prevents "duplicate plugin key" errors when multiple editors are mounted.
6
- */
7
- declare function tableControls(): Plugin<TableControlsState>;
8
- declare class TableControlsState {
9
- values: any;
10
- private key;
11
- constructor(key: PluginKey, props?: {});
12
- apply(tr: Transaction): this;
13
- }
14
-
15
- export { tableControls };