@kopexa/extension-table 17.1.0 → 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.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  TableHandleMenu
4
- } from "./chunk-62B2LU2Q.mjs";
4
+ } from "./chunk-LULO6UOC.mjs";
5
5
  import {
6
6
  useTableHandlePositioning
7
7
  } from "./chunk-GBTQVIN5.mjs";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-LUA32VH4.mjs";
8
8
  import {
9
9
  Table
10
- } from "./chunk-IRJ6RAVQ.mjs";
10
+ } from "./chunk-JSUVBKCI.mjs";
11
11
 
12
12
  // src/extensions/kit.ts
13
13
  import { TableHeader, TableRow } from "@tiptap/extension-table";
@@ -98,8 +98,8 @@ var Table = TiptapTable.configure({
98
98
  this.dom = this.blockContainer;
99
99
  }
100
100
  ignoreMutation(mutation) {
101
- const target = mutation.target;
102
- if (!target.closest(".table-container")) {
101
+ const target = mutation.target instanceof HTMLElement ? mutation.target : mutation.target.parentElement;
102
+ if (!(target == null ? void 0 : target.closest(".table-container"))) {
103
103
  return true;
104
104
  }
105
105
  return super.ignoreMutation(mutation);
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-VIBVRWS4.mjs";
11
11
  import {
12
12
  useTableClearRowColumnContent
13
- } from "./chunk-4QSZXHZO.mjs";
13
+ } from "./chunk-JQEUL3LT.mjs";
14
14
  import {
15
15
  useTableDeleteRowColumn
16
16
  } from "./chunk-ZVPJDJBO.mjs";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-VQV757EG.mjs";
8
8
  import {
9
9
  useTableClearRowColumnContent
10
- } from "./chunk-4QSZXHZO.mjs";
10
+ } from "./chunk-JQEUL3LT.mjs";
11
11
  import {
12
12
  messages
13
13
  } from "./chunk-CN73TYHV.mjs";
@@ -124,8 +124,8 @@ var Table = import_extension_table.Table.configure({
124
124
  this.dom = this.blockContainer;
125
125
  }
126
126
  ignoreMutation(mutation) {
127
- const target = mutation.target;
128
- if (!target.closest(".table-container")) {
127
+ const target = mutation.target instanceof HTMLElement ? mutation.target : mutation.target.parentElement;
128
+ if (!(target == null ? void 0 : target.closest(".table-container"))) {
129
129
  return true;
130
130
  }
131
131
  return super.ignoreMutation(mutation);
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  TableKit
4
- } from "../chunk-MB52MZQ4.mjs";
4
+ } from "../chunk-4XRAUUXQ.mjs";
5
5
  import "../chunk-E7W2KRZG.mjs";
6
6
  import "../chunk-LUA32VH4.mjs";
7
7
  import "../chunk-3SWV7BGP.mjs";
8
8
  import "../chunk-GQLZBIWF.mjs";
9
9
  import "../chunk-5B5XIL2G.mjs";
10
- import "../chunk-IRJ6RAVQ.mjs";
10
+ import "../chunk-JSUVBKCI.mjs";
11
11
  import "../chunk-PTX5UYV6.mjs";
12
12
  import "../chunk-WKV76XOR.mjs";
13
13
  export {
@@ -120,8 +120,8 @@ var Table = import_extension_table.Table.configure({
120
120
  this.dom = this.blockContainer;
121
121
  }
122
122
  ignoreMutation(mutation) {
123
- const target = mutation.target;
124
- if (!target.closest(".table-container")) {
123
+ const target = mutation.target instanceof HTMLElement ? mutation.target : mutation.target.parentElement;
124
+ if (!(target == null ? void 0 : target.closest(".table-container"))) {
125
125
  return true;
126
126
  }
127
127
  return super.ignoreMutation(mutation);
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Table
4
- } from "../chunk-IRJ6RAVQ.mjs";
4
+ } from "../chunk-JSUVBKCI.mjs";
5
5
  import "../chunk-PTX5UYV6.mjs";
6
6
  import "../chunk-WKV76XOR.mjs";
7
7
  export {
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  import {
4
4
  useTableClearRowColumnContent
5
- } from "../chunk-4QSZXHZO.mjs";
5
+ } from "../chunk-JQEUL3LT.mjs";
6
6
  import "../chunk-CN73TYHV.mjs";
7
7
  import "../chunk-5B5XIL2G.mjs";
8
8
  import "../chunk-WKV76XOR.mjs";
package/dist/index.js CHANGED
@@ -134,8 +134,8 @@ var Table = import_extension_table.Table.configure({
134
134
  this.dom = this.blockContainer;
135
135
  }
136
136
  ignoreMutation(mutation) {
137
- const target = mutation.target;
138
- if (!target.closest(".table-container")) {
137
+ const target = mutation.target instanceof HTMLElement ? mutation.target : mutation.target.parentElement;
138
+ if (!(target == null ? void 0 : target.closest(".table-container"))) {
139
139
  return true;
140
140
  }
141
141
  return super.ignoreMutation(mutation);
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  TableHandle
4
- } from "./chunk-TEGO6KUS.mjs";
5
- import "./chunk-62B2LU2Q.mjs";
4
+ } from "./chunk-4JC7NB5Y.mjs";
5
+ import "./chunk-LULO6UOC.mjs";
6
6
  import {
7
7
  TableSelectionOverlay
8
8
  } from "./chunk-2NBDRVYL.mjs";
@@ -10,7 +10,7 @@ import "./chunk-G6GHC2WO.mjs";
10
10
  import "./chunk-6FHFDGJO.mjs";
11
11
  import {
12
12
  TableCellHandleMenu
13
- } from "./chunk-XRNQXADK.mjs";
13
+ } from "./chunk-QI7CA4YV.mjs";
14
14
  import "./chunk-KIYFW7MP.mjs";
15
15
  import {
16
16
  TableAlignMenuItems,
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-VQV757EG.mjs";
19
19
  import "./chunk-VIBVRWS4.mjs";
20
20
  import "./chunk-KTRZVXJC.mjs";
21
- import "./chunk-4QSZXHZO.mjs";
21
+ import "./chunk-JQEUL3LT.mjs";
22
22
  import "./chunk-ZVPJDJBO.mjs";
23
23
  import "./chunk-CPDSPBS6.mjs";
24
24
  import "./chunk-GBTQVIN5.mjs";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-CN73TYHV.mjs";
30
30
  import {
31
31
  TableKit
32
- } from "./chunk-MB52MZQ4.mjs";
32
+ } from "./chunk-4XRAUUXQ.mjs";
33
33
  import {
34
34
  TableCell
35
35
  } from "./chunk-E7W2KRZG.mjs";
@@ -39,7 +39,7 @@ import "./chunk-GQLZBIWF.mjs";
39
39
  import "./chunk-5B5XIL2G.mjs";
40
40
  import {
41
41
  Table
42
- } from "./chunk-IRJ6RAVQ.mjs";
42
+ } from "./chunk-JSUVBKCI.mjs";
43
43
  import "./chunk-PTX5UYV6.mjs";
44
44
  import "./chunk-J4VOSZCZ.mjs";
45
45
  import "./chunk-WKV76XOR.mjs";
@@ -3,11 +3,11 @@
3
3
  import {
4
4
  TableActionMenu,
5
5
  TableCellHandleMenu
6
- } from "../chunk-XRNQXADK.mjs";
6
+ } from "../chunk-QI7CA4YV.mjs";
7
7
  import "../chunk-KIYFW7MP.mjs";
8
8
  import "../chunk-VQV757EG.mjs";
9
9
  import "../chunk-KTRZVXJC.mjs";
10
- import "../chunk-4QSZXHZO.mjs";
10
+ import "../chunk-JQEUL3LT.mjs";
11
11
  import "../chunk-CN73TYHV.mjs";
12
12
  import "../chunk-5B5XIL2G.mjs";
13
13
  import "../chunk-WKV76XOR.mjs";
@@ -2,11 +2,11 @@
2
2
  import {
3
3
  TableActionGroup,
4
4
  TableHandleMenu
5
- } from "../chunk-62B2LU2Q.mjs";
5
+ } from "../chunk-LULO6UOC.mjs";
6
6
  import "../chunk-G6GHC2WO.mjs";
7
7
  import "../chunk-6FHFDGJO.mjs";
8
8
  import "../chunk-VIBVRWS4.mjs";
9
- import "../chunk-4QSZXHZO.mjs";
9
+ import "../chunk-JQEUL3LT.mjs";
10
10
  import "../chunk-ZVPJDJBO.mjs";
11
11
  import "../chunk-CPDSPBS6.mjs";
12
12
  import "../chunk-CD62W5C3.mjs";
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  TableHandle
4
- } from "../chunk-TEGO6KUS.mjs";
5
- import "../chunk-62B2LU2Q.mjs";
4
+ } from "../chunk-4JC7NB5Y.mjs";
5
+ import "../chunk-LULO6UOC.mjs";
6
6
  import "../chunk-G6GHC2WO.mjs";
7
7
  import "../chunk-6FHFDGJO.mjs";
8
8
  import "../chunk-VIBVRWS4.mjs";
9
- import "../chunk-4QSZXHZO.mjs";
9
+ import "../chunk-JQEUL3LT.mjs";
10
10
  import "../chunk-ZVPJDJBO.mjs";
11
11
  import "../chunk-CPDSPBS6.mjs";
12
12
  import "../chunk-GBTQVIN5.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopexa/extension-table",
3
- "version": "17.1.0",
3
+ "version": "17.1.1",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "extension-table"
@@ -28,7 +28,7 @@
28
28
  "motion": ">=12.23.6",
29
29
  "react": ">=19.0.0-rc.0",
30
30
  "react-dom": ">=19.0.0-rc.0",
31
- "@kopexa/theme": "17.22.9"
31
+ "@kopexa/theme": "17.23.0"
32
32
  },
33
33
  "dependencies": {
34
34
  "@floating-ui/react": "^0.27.18",
@@ -36,13 +36,13 @@
36
36
  "@tiptap/extension-table": "^3.20.0",
37
37
  "@tiptap/pm": "^3.20.0",
38
38
  "@tiptap/react": "^3.20.0",
39
- "@kopexa/editor-utils": "17.0.48",
40
- "@kopexa/dropdown-menu": "17.0.48",
41
- "@kopexa/react-utils": "17.0.48",
42
- "@kopexa/shared-utils": "17.0.48",
43
- "@kopexa/icons": "17.7.13",
44
- "@kopexa/theme": "17.22.9",
45
- "@kopexa/i18n": "17.8.0"
39
+ "@kopexa/dropdown-menu": "17.0.49",
40
+ "@kopexa/editor-utils": "17.1.0",
41
+ "@kopexa/react-utils": "17.0.49",
42
+ "@kopexa/shared-utils": "17.0.49",
43
+ "@kopexa/icons": "17.7.14",
44
+ "@kopexa/theme": "17.23.0",
45
+ "@kopexa/i18n": "17.8.1"
46
46
  },
47
47
  "clean-package": "../../../clean-package.config.json",
48
48
  "module": "dist/index.mjs",
File without changes