@kopexa/extension-table 17.0.21 → 17.0.23
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.
- package/dist/{chunk-D632IDM6.mjs → chunk-IMRHHVEF.mjs} +6 -4
- package/dist/{chunk-V2F3SWNW.mjs → chunk-OPDSKEZR.mjs} +1 -1
- package/dist/{chunk-IH5RTMND.mjs → chunk-SNJF4UW6.mjs} +1 -1
- package/dist/index.js +11 -9
- package/dist/index.mjs +3 -3
- package/dist/kit.js +11 -9
- package/dist/kit.mjs +3 -3
- package/dist/table/index.js +11 -9
- package/dist/table/index.mjs +2 -2
- package/dist/table/table-controls.d.mts +7 -2
- package/dist/table/table-controls.d.ts +7 -2
- package/dist/table/table-controls.js +11 -9
- package/dist/table/table-controls.mjs +1 -1
- package/dist/table/table.js +11 -9
- package/dist/table/table.mjs +2 -2
- package/package.json +5 -5
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
TextSelection
|
|
12
12
|
} from "@tiptap/pm/state";
|
|
13
13
|
import { Decoration, DecorationSet } from "@tiptap/pm/view";
|
|
14
|
-
var key = new PluginKey("tableControls");
|
|
15
14
|
function tableControls() {
|
|
15
|
+
const key = new PluginKey("tableControls");
|
|
16
16
|
return new Plugin({
|
|
17
17
|
key,
|
|
18
18
|
state: {
|
|
19
19
|
init() {
|
|
20
|
-
return new TableControlsState();
|
|
20
|
+
return new TableControlsState(key);
|
|
21
21
|
},
|
|
22
22
|
apply(tr, prev) {
|
|
23
23
|
return prev.apply(tr);
|
|
@@ -86,8 +86,10 @@ function tableControls() {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
var TableControlsState = class {
|
|
89
|
-
constructor(props = {}) {
|
|
89
|
+
constructor(key, props = {}) {
|
|
90
90
|
__publicField(this, "values");
|
|
91
|
+
__publicField(this, "key");
|
|
92
|
+
this.key = key;
|
|
91
93
|
this.values = {
|
|
92
94
|
hoveredTable: null,
|
|
93
95
|
hoveredCell: null,
|
|
@@ -95,7 +97,7 @@ var TableControlsState = class {
|
|
|
95
97
|
};
|
|
96
98
|
}
|
|
97
99
|
apply(tr) {
|
|
98
|
-
const actions = tr.getMeta(key);
|
|
100
|
+
const actions = tr.getMeta(this.key);
|
|
99
101
|
if ((actions == null ? void 0 : actions.setHoveredTable) !== void 0) {
|
|
100
102
|
this.values.hoveredTable = actions.setHoveredTable;
|
|
101
103
|
}
|
package/dist/index.js
CHANGED
|
@@ -4,21 +4,21 @@ var __defProp = Object.defineProperty;
|
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __defNormalProp = (obj,
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
12
|
var __copyProps = (to, from, except, desc) => {
|
|
13
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let
|
|
15
|
-
if (!__hasOwnProp.call(to,
|
|
16
|
-
__defProp(to,
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
-
var __publicField = (obj,
|
|
21
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
22
|
|
|
23
23
|
// src/index.ts
|
|
24
24
|
var index_exports = {};
|
|
@@ -42,13 +42,13 @@ var import_tables2 = require("@tiptap/pm/tables");
|
|
|
42
42
|
var import_core = require("@tiptap/core");
|
|
43
43
|
var import_state = require("@tiptap/pm/state");
|
|
44
44
|
var import_view = require("@tiptap/pm/view");
|
|
45
|
-
var key = new import_state.PluginKey("tableControls");
|
|
46
45
|
function tableControls() {
|
|
46
|
+
const key = new import_state.PluginKey("tableControls");
|
|
47
47
|
return new import_state.Plugin({
|
|
48
48
|
key,
|
|
49
49
|
state: {
|
|
50
50
|
init() {
|
|
51
|
-
return new TableControlsState();
|
|
51
|
+
return new TableControlsState(key);
|
|
52
52
|
},
|
|
53
53
|
apply(tr, prev) {
|
|
54
54
|
return prev.apply(tr);
|
|
@@ -117,8 +117,10 @@ function tableControls() {
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
var TableControlsState = class {
|
|
120
|
-
constructor(props = {}) {
|
|
120
|
+
constructor(key, props = {}) {
|
|
121
121
|
__publicField(this, "values");
|
|
122
|
+
__publicField(this, "key");
|
|
123
|
+
this.key = key;
|
|
122
124
|
this.values = {
|
|
123
125
|
hoveredTable: null,
|
|
124
126
|
hoveredCell: null,
|
|
@@ -126,7 +128,7 @@ var TableControlsState = class {
|
|
|
126
128
|
};
|
|
127
129
|
}
|
|
128
130
|
apply(tr) {
|
|
129
|
-
const actions = tr.getMeta(key);
|
|
131
|
+
const actions = tr.getMeta(this.key);
|
|
130
132
|
if ((actions == null ? void 0 : actions.setHoveredTable) !== void 0) {
|
|
131
133
|
this.values.hoveredTable = actions.setHoveredTable;
|
|
132
134
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
TableKit
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SNJF4UW6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
TableCell
|
|
7
7
|
} from "./chunk-ARSGMUXM.mjs";
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
import "./chunk-YSUOVRY4.mjs";
|
|
15
15
|
import {
|
|
16
16
|
Table
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OPDSKEZR.mjs";
|
|
18
18
|
import "./chunk-GMNNSVR3.mjs";
|
|
19
19
|
import "./chunk-NTWXQSW6.mjs";
|
|
20
20
|
import "./chunk-BAQU2YT5.mjs";
|
|
21
21
|
import "./chunk-DF6ZMJLL.mjs";
|
|
22
22
|
import "./chunk-7NEAULTF.mjs";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-IMRHHVEF.mjs";
|
|
24
24
|
import "./chunk-WKV76XOR.mjs";
|
|
25
25
|
export {
|
|
26
26
|
Table,
|
package/dist/kit.js
CHANGED
|
@@ -4,21 +4,21 @@ var __defProp = Object.defineProperty;
|
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __defNormalProp = (obj,
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
12
|
var __copyProps = (to, from, except, desc) => {
|
|
13
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let
|
|
15
|
-
if (!__hasOwnProp.call(to,
|
|
16
|
-
__defProp(to,
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
-
var __publicField = (obj,
|
|
21
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
22
|
|
|
23
23
|
// src/kit.ts
|
|
24
24
|
var kit_exports = {};
|
|
@@ -36,13 +36,13 @@ var import_tables2 = require("@tiptap/pm/tables");
|
|
|
36
36
|
var import_core = require("@tiptap/core");
|
|
37
37
|
var import_state = require("@tiptap/pm/state");
|
|
38
38
|
var import_view = require("@tiptap/pm/view");
|
|
39
|
-
var key = new import_state.PluginKey("tableControls");
|
|
40
39
|
function tableControls() {
|
|
40
|
+
const key = new import_state.PluginKey("tableControls");
|
|
41
41
|
return new import_state.Plugin({
|
|
42
42
|
key,
|
|
43
43
|
state: {
|
|
44
44
|
init() {
|
|
45
|
-
return new TableControlsState();
|
|
45
|
+
return new TableControlsState(key);
|
|
46
46
|
},
|
|
47
47
|
apply(tr, prev) {
|
|
48
48
|
return prev.apply(tr);
|
|
@@ -111,8 +111,10 @@ function tableControls() {
|
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
var TableControlsState = class {
|
|
114
|
-
constructor(props = {}) {
|
|
114
|
+
constructor(key, props = {}) {
|
|
115
115
|
__publicField(this, "values");
|
|
116
|
+
__publicField(this, "key");
|
|
117
|
+
this.key = key;
|
|
116
118
|
this.values = {
|
|
117
119
|
hoveredTable: null,
|
|
118
120
|
hoveredCell: null,
|
|
@@ -120,7 +122,7 @@ var TableControlsState = class {
|
|
|
120
122
|
};
|
|
121
123
|
}
|
|
122
124
|
apply(tr) {
|
|
123
|
-
const actions = tr.getMeta(key);
|
|
125
|
+
const actions = tr.getMeta(this.key);
|
|
124
126
|
if ((actions == null ? void 0 : actions.setHoveredTable) !== void 0) {
|
|
125
127
|
this.values.hoveredTable = actions.setHoveredTable;
|
|
126
128
|
}
|
package/dist/kit.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
TableKit
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SNJF4UW6.mjs";
|
|
5
5
|
import "./chunk-ARSGMUXM.mjs";
|
|
6
6
|
import "./chunk-74O2ORPO.mjs";
|
|
7
7
|
import "./chunk-6NY5XWR7.mjs";
|
|
8
8
|
import "./chunk-YSUOVRY4.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-OPDSKEZR.mjs";
|
|
10
10
|
import "./chunk-GMNNSVR3.mjs";
|
|
11
11
|
import "./chunk-NTWXQSW6.mjs";
|
|
12
12
|
import "./chunk-BAQU2YT5.mjs";
|
|
13
13
|
import "./chunk-DF6ZMJLL.mjs";
|
|
14
14
|
import "./chunk-7NEAULTF.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-IMRHHVEF.mjs";
|
|
16
16
|
import "./chunk-WKV76XOR.mjs";
|
|
17
17
|
export {
|
|
18
18
|
TableKit
|
package/dist/table/index.js
CHANGED
|
@@ -4,21 +4,21 @@ var __defProp = Object.defineProperty;
|
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __defNormalProp = (obj,
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
12
|
var __copyProps = (to, from, except, desc) => {
|
|
13
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let
|
|
15
|
-
if (!__hasOwnProp.call(to,
|
|
16
|
-
__defProp(to,
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
-
var __publicField = (obj,
|
|
21
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
22
|
|
|
23
23
|
// src/table/index.ts
|
|
24
24
|
var table_exports = {};
|
|
@@ -35,13 +35,13 @@ var import_tables2 = require("@tiptap/pm/tables");
|
|
|
35
35
|
var import_core = require("@tiptap/core");
|
|
36
36
|
var import_state = require("@tiptap/pm/state");
|
|
37
37
|
var import_view = require("@tiptap/pm/view");
|
|
38
|
-
var key = new import_state.PluginKey("tableControls");
|
|
39
38
|
function tableControls() {
|
|
39
|
+
const key = new import_state.PluginKey("tableControls");
|
|
40
40
|
return new import_state.Plugin({
|
|
41
41
|
key,
|
|
42
42
|
state: {
|
|
43
43
|
init() {
|
|
44
|
-
return new TableControlsState();
|
|
44
|
+
return new TableControlsState(key);
|
|
45
45
|
},
|
|
46
46
|
apply(tr, prev) {
|
|
47
47
|
return prev.apply(tr);
|
|
@@ -110,8 +110,10 @@ function tableControls() {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
var TableControlsState = class {
|
|
113
|
-
constructor(props = {}) {
|
|
113
|
+
constructor(key, props = {}) {
|
|
114
114
|
__publicField(this, "values");
|
|
115
|
+
__publicField(this, "key");
|
|
116
|
+
this.key = key;
|
|
115
117
|
this.values = {
|
|
116
118
|
hoveredTable: null,
|
|
117
119
|
hoveredCell: null,
|
|
@@ -119,7 +121,7 @@ var TableControlsState = class {
|
|
|
119
121
|
};
|
|
120
122
|
}
|
|
121
123
|
apply(tr) {
|
|
122
|
-
const actions = tr.getMeta(key);
|
|
124
|
+
const actions = tr.getMeta(this.key);
|
|
123
125
|
if ((actions == null ? void 0 : actions.setHoveredTable) !== void 0) {
|
|
124
126
|
this.values.hoveredTable = actions.setHoveredTable;
|
|
125
127
|
}
|
package/dist/table/index.mjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import "../chunk-YSUOVRY4.mjs";
|
|
3
3
|
import {
|
|
4
4
|
Table
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-OPDSKEZR.mjs";
|
|
6
6
|
import "../chunk-GMNNSVR3.mjs";
|
|
7
7
|
import "../chunk-NTWXQSW6.mjs";
|
|
8
8
|
import "../chunk-BAQU2YT5.mjs";
|
|
9
9
|
import "../chunk-DF6ZMJLL.mjs";
|
|
10
10
|
import "../chunk-7NEAULTF.mjs";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-IMRHHVEF.mjs";
|
|
12
12
|
import "../chunk-WKV76XOR.mjs";
|
|
13
13
|
export {
|
|
14
14
|
Table
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { Plugin, Transaction } from '@tiptap/pm/state';
|
|
1
|
+
import { Plugin, PluginKey, Transaction } from '@tiptap/pm/state';
|
|
2
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
|
+
*/
|
|
3
7
|
declare function tableControls(): Plugin<TableControlsState>;
|
|
4
8
|
declare class TableControlsState {
|
|
5
9
|
values: any;
|
|
6
|
-
|
|
10
|
+
private key;
|
|
11
|
+
constructor(key: PluginKey, props?: {});
|
|
7
12
|
apply(tr: Transaction): this;
|
|
8
13
|
}
|
|
9
14
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { Plugin, Transaction } from '@tiptap/pm/state';
|
|
1
|
+
import { Plugin, PluginKey, Transaction } from '@tiptap/pm/state';
|
|
2
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
|
+
*/
|
|
3
7
|
declare function tableControls(): Plugin<TableControlsState>;
|
|
4
8
|
declare class TableControlsState {
|
|
5
9
|
values: any;
|
|
6
|
-
|
|
10
|
+
private key;
|
|
11
|
+
constructor(key: PluginKey, props?: {});
|
|
7
12
|
apply(tr: Transaction): this;
|
|
8
13
|
}
|
|
9
14
|
|
|
@@ -4,21 +4,21 @@ var __defProp = Object.defineProperty;
|
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __defNormalProp = (obj,
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
12
|
var __copyProps = (to, from, except, desc) => {
|
|
13
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let
|
|
15
|
-
if (!__hasOwnProp.call(to,
|
|
16
|
-
__defProp(to,
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
-
var __publicField = (obj,
|
|
21
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
22
|
|
|
23
23
|
// src/table/table-controls.ts
|
|
24
24
|
var table_controls_exports = {};
|
|
@@ -29,13 +29,13 @@ module.exports = __toCommonJS(table_controls_exports);
|
|
|
29
29
|
var import_core = require("@tiptap/core");
|
|
30
30
|
var import_state = require("@tiptap/pm/state");
|
|
31
31
|
var import_view = require("@tiptap/pm/view");
|
|
32
|
-
var key = new import_state.PluginKey("tableControls");
|
|
33
32
|
function tableControls() {
|
|
33
|
+
const key = new import_state.PluginKey("tableControls");
|
|
34
34
|
return new import_state.Plugin({
|
|
35
35
|
key,
|
|
36
36
|
state: {
|
|
37
37
|
init() {
|
|
38
|
-
return new TableControlsState();
|
|
38
|
+
return new TableControlsState(key);
|
|
39
39
|
},
|
|
40
40
|
apply(tr, prev) {
|
|
41
41
|
return prev.apply(tr);
|
|
@@ -104,8 +104,10 @@ function tableControls() {
|
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
var TableControlsState = class {
|
|
107
|
-
constructor(props = {}) {
|
|
107
|
+
constructor(key, props = {}) {
|
|
108
108
|
__publicField(this, "values");
|
|
109
|
+
__publicField(this, "key");
|
|
110
|
+
this.key = key;
|
|
109
111
|
this.values = {
|
|
110
112
|
hoveredTable: null,
|
|
111
113
|
hoveredCell: null,
|
|
@@ -113,7 +115,7 @@ var TableControlsState = class {
|
|
|
113
115
|
};
|
|
114
116
|
}
|
|
115
117
|
apply(tr) {
|
|
116
|
-
const actions = tr.getMeta(key);
|
|
118
|
+
const actions = tr.getMeta(this.key);
|
|
117
119
|
if ((actions == null ? void 0 : actions.setHoveredTable) !== void 0) {
|
|
118
120
|
this.values.hoveredTable = actions.setHoveredTable;
|
|
119
121
|
}
|
package/dist/table/table.js
CHANGED
|
@@ -4,21 +4,21 @@ var __defProp = Object.defineProperty;
|
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __defNormalProp = (obj,
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
12
|
var __copyProps = (to, from, except, desc) => {
|
|
13
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let
|
|
15
|
-
if (!__hasOwnProp.call(to,
|
|
16
|
-
__defProp(to,
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
-
var __publicField = (obj,
|
|
21
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
22
|
|
|
23
23
|
// src/table/table.ts
|
|
24
24
|
var table_exports = {};
|
|
@@ -33,13 +33,13 @@ var import_tables2 = require("@tiptap/pm/tables");
|
|
|
33
33
|
var import_core = require("@tiptap/core");
|
|
34
34
|
var import_state = require("@tiptap/pm/state");
|
|
35
35
|
var import_view = require("@tiptap/pm/view");
|
|
36
|
-
var key = new import_state.PluginKey("tableControls");
|
|
37
36
|
function tableControls() {
|
|
37
|
+
const key = new import_state.PluginKey("tableControls");
|
|
38
38
|
return new import_state.Plugin({
|
|
39
39
|
key,
|
|
40
40
|
state: {
|
|
41
41
|
init() {
|
|
42
|
-
return new TableControlsState();
|
|
42
|
+
return new TableControlsState(key);
|
|
43
43
|
},
|
|
44
44
|
apply(tr, prev) {
|
|
45
45
|
return prev.apply(tr);
|
|
@@ -108,8 +108,10 @@ function tableControls() {
|
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
var TableControlsState = class {
|
|
111
|
-
constructor(props = {}) {
|
|
111
|
+
constructor(key, props = {}) {
|
|
112
112
|
__publicField(this, "values");
|
|
113
|
+
__publicField(this, "key");
|
|
114
|
+
this.key = key;
|
|
113
115
|
this.values = {
|
|
114
116
|
hoveredTable: null,
|
|
115
117
|
hoveredCell: null,
|
|
@@ -117,7 +119,7 @@ var TableControlsState = class {
|
|
|
117
119
|
};
|
|
118
120
|
}
|
|
119
121
|
apply(tr) {
|
|
120
|
-
const actions = tr.getMeta(key);
|
|
122
|
+
const actions = tr.getMeta(this.key);
|
|
121
123
|
if ((actions == null ? void 0 : actions.setHoveredTable) !== void 0) {
|
|
122
124
|
this.values.hoveredTable = actions.setHoveredTable;
|
|
123
125
|
}
|
package/dist/table/table.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Table
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-OPDSKEZR.mjs";
|
|
5
5
|
import "../chunk-GMNNSVR3.mjs";
|
|
6
6
|
import "../chunk-NTWXQSW6.mjs";
|
|
7
7
|
import "../chunk-BAQU2YT5.mjs";
|
|
8
8
|
import "../chunk-DF6ZMJLL.mjs";
|
|
9
9
|
import "../chunk-7NEAULTF.mjs";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-IMRHHVEF.mjs";
|
|
11
11
|
import "../chunk-WKV76XOR.mjs";
|
|
12
12
|
export {
|
|
13
13
|
Table
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/extension-table",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.23",
|
|
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.11.
|
|
31
|
+
"@kopexa/theme": "17.11.4"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@floating-ui/dom": "^1.7.4",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@tiptap/pm": "^3.17.0",
|
|
38
38
|
"@tiptap/react": "^3.17.0",
|
|
39
39
|
"jsx-dom-cjs": "^8.1.6",
|
|
40
|
-
"@kopexa/
|
|
41
|
-
"@kopexa/
|
|
42
|
-
"@kopexa/
|
|
40
|
+
"@kopexa/react-utils": "17.0.23",
|
|
41
|
+
"@kopexa/shared-utils": "17.0.23",
|
|
42
|
+
"@kopexa/editor-utils": "17.0.23"
|
|
43
43
|
},
|
|
44
44
|
"clean-package": "../../../clean-package.config.json",
|
|
45
45
|
"module": "dist/index.mjs",
|