@kopexa/tiptap 17.2.4 → 17.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.
- package/dist/chunk-4HO7BWDC.mjs +89 -0
- package/dist/chunk-552JLRNB.mjs +35 -0
- package/dist/chunk-5SMDMQDF.mjs +34 -0
- package/dist/{chunk-XKWTI3MA.mjs → chunk-DQK6PA4U.mjs} +11 -2
- package/dist/{chunk-3ZPLSXTZ.mjs → chunk-ERPGWXFK.mjs} +1 -1
- package/dist/{chunk-NJZK5DRT.mjs → chunk-GDDWW2IQ.mjs} +38 -13
- package/dist/{chunk-NSYSECKW.mjs → chunk-GL3RTIER.mjs} +1 -0
- package/dist/chunk-H7MS2UMO.mjs +168 -0
- package/dist/chunk-JVSH5T4B.mjs +72 -0
- package/dist/{chunk-ZYFCSR3E.mjs → chunk-L5RDMV3H.mjs} +3 -3
- package/dist/chunk-Q5FK7SFY.mjs +75 -0
- package/dist/chunk-QIELBKP3.mjs +104 -0
- package/dist/extensions/variable/extract-variables.d.mts +16 -0
- package/dist/extensions/variable/extract-variables.d.ts +16 -0
- package/dist/extensions/variable/extract-variables.js +58 -0
- package/dist/extensions/variable/extract-variables.mjs +7 -0
- package/dist/extensions/variable/index.d.mts +38 -0
- package/dist/extensions/variable/index.d.ts +38 -0
- package/dist/extensions/variable/index.js +190 -0
- package/dist/extensions/variable/index.mjs +11 -0
- package/dist/extensions/variable/messages.d.mts +69 -0
- package/dist/extensions/variable/messages.d.ts +69 -0
- package/dist/extensions/variable/messages.js +98 -0
- package/dist/extensions/variable/messages.mjs +7 -0
- package/dist/extensions/variable/variable-context.d.mts +56 -0
- package/dist/extensions/variable/variable-context.d.ts +56 -0
- package/dist/extensions/variable/variable-context.js +70 -0
- package/dist/extensions/variable/variable-context.mjs +12 -0
- package/dist/extensions/variable/variable-filler-dialog.d.mts +43 -0
- package/dist/extensions/variable/variable-filler-dialog.d.ts +43 -0
- package/dist/extensions/variable/variable-filler-dialog.js +207 -0
- package/dist/extensions/variable/variable-filler-dialog.mjs +9 -0
- package/dist/extensions/variable/variable-suggestion.d.mts +31 -0
- package/dist/extensions/variable/variable-suggestion.d.ts +31 -0
- package/dist/extensions/variable/variable-suggestion.js +615 -0
- package/dist/extensions/variable/variable-suggestion.mjs +14 -0
- package/dist/extensions/variable/variable-view.d.mts +13 -0
- package/dist/extensions/variable/variable-view.d.ts +13 -0
- package/dist/extensions/variable/variable-view.js +110 -0
- package/dist/extensions/variable/variable-view.mjs +11 -0
- package/dist/hooks/use-create-editor.d.mts +8 -2
- package/dist/hooks/use-create-editor.d.ts +8 -2
- package/dist/hooks/use-create-editor.js +163 -7
- package/dist/hooks/use-create-editor.mjs +4 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2733 -2164
- package/dist/index.mjs +37 -11
- package/dist/presets/basic/editor-header.mjs +3 -3
- package/dist/presets/basic/index.d.mts +12 -1
- package/dist/presets/basic/index.d.ts +12 -1
- package/dist/presets/basic/index.js +4203 -3853
- package/dist/presets/basic/index.mjs +14 -10
- package/dist/ui/bubble-menu/index.js +1 -0
- package/dist/ui/bubble-menu/index.mjs +1 -1
- package/dist/ui/slash-dropdown-menu/index.js +2 -2
- package/dist/ui/slash-dropdown-menu/index.mjs +2 -2
- package/dist/ui/slash-dropdown-menu/slash-dropdown-menu.js +2 -2
- package/dist/ui/slash-dropdown-menu/slash-dropdown-menu.mjs +2 -2
- package/dist/ui/suggestion-menu/index.js +2 -2
- package/dist/ui/suggestion-menu/index.mjs +1 -1
- package/dist/ui/suggestion-menu/suggestion-menu.js +2 -2
- package/dist/ui/suggestion-menu/suggestion-menu.mjs +1 -1
- package/package.json +24 -24
- package/dist/{chunk-FDPXD6VC.mjs → chunk-RFWNKE7D.mjs} +3 -3
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
BasicEditor
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-GDDWW2IQ.mjs";
|
|
6
6
|
import "../../chunk-MNTOOEHA.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-ERPGWXFK.mjs";
|
|
8
8
|
import "../../chunk-6552DQWB.mjs";
|
|
9
|
-
import "../../chunk-HLLA2HRV.mjs";
|
|
10
|
-
import "../../chunk-ZYFCSR3E.mjs";
|
|
11
|
-
import "../../chunk-CNVACBGT.mjs";
|
|
12
9
|
import "../../chunk-DZLGLP7R.mjs";
|
|
13
10
|
import "../../chunk-XNDXYI2N.mjs";
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-GL3RTIER.mjs";
|
|
12
|
+
import "../../chunk-H7MS2UMO.mjs";
|
|
13
|
+
import "../../chunk-HLLA2HRV.mjs";
|
|
14
|
+
import "../../chunk-L5RDMV3H.mjs";
|
|
15
|
+
import "../../chunk-CNVACBGT.mjs";
|
|
16
|
+
import "../../chunk-RFWNKE7D.mjs";
|
|
16
17
|
import "../../chunk-4ALV4UA5.mjs";
|
|
17
18
|
import "../../chunk-GYIYX2JH.mjs";
|
|
18
19
|
import "../../chunk-IQERE7KP.mjs";
|
|
@@ -20,11 +21,10 @@ import "../../chunk-Y2KSWMG5.mjs";
|
|
|
20
21
|
import "../../chunk-2SI7MRAE.mjs";
|
|
21
22
|
import "../../chunk-ZVTJ6XD7.mjs";
|
|
22
23
|
import "../../chunk-VX3HSJ76.mjs";
|
|
23
|
-
import "../../chunk-YJAHZXLG.mjs";
|
|
24
24
|
import "../../chunk-Q7DFJ5NI.mjs";
|
|
25
25
|
import "../../chunk-IOB3REX6.mjs";
|
|
26
|
+
import "../../chunk-YJAHZXLG.mjs";
|
|
26
27
|
import "../../chunk-TLM5ALHZ.mjs";
|
|
27
|
-
import "../../chunk-C5RQWJKE.mjs";
|
|
28
28
|
import "../../chunk-V6TAZMQN.mjs";
|
|
29
29
|
import "../../chunk-EHY2NAW7.mjs";
|
|
30
30
|
import "../../chunk-33QD5PYJ.mjs";
|
|
@@ -35,6 +35,7 @@ import "../../chunk-VTKJPVNM.mjs";
|
|
|
35
35
|
import "../../chunk-ATRHILCH.mjs";
|
|
36
36
|
import "../../chunk-OEVR5N7X.mjs";
|
|
37
37
|
import "../../chunk-BEV5U2DK.mjs";
|
|
38
|
+
import "../../chunk-C5RQWJKE.mjs";
|
|
38
39
|
import "../../chunk-2Z2QVW67.mjs";
|
|
39
40
|
import "../../chunk-B7WJOQ3X.mjs";
|
|
40
41
|
import "../../chunk-UJ4BNZ63.mjs";
|
|
@@ -45,8 +46,11 @@ import "../../chunk-P55PLOHR.mjs";
|
|
|
45
46
|
import "../../chunk-BXJYNSWQ.mjs";
|
|
46
47
|
import "../../chunk-TZQQ6C2Q.mjs";
|
|
47
48
|
import "../../chunk-REJEJXOZ.mjs";
|
|
48
|
-
import "../../chunk-
|
|
49
|
+
import "../../chunk-DQK6PA4U.mjs";
|
|
49
50
|
import "../../chunk-H6LC4LDQ.mjs";
|
|
51
|
+
import "../../chunk-4HO7BWDC.mjs";
|
|
52
|
+
import "../../chunk-JVSH5T4B.mjs";
|
|
53
|
+
import "../../chunk-5SMDMQDF.mjs";
|
|
50
54
|
import "../../chunk-2U5CQUZH.mjs";
|
|
51
55
|
import "../../chunk-7VW67NVL.mjs";
|
|
52
56
|
import "../../chunk-BXHPO3T7.mjs";
|
|
@@ -643,6 +643,7 @@ function BubbleMenu({ editor }) {
|
|
|
643
643
|
if (empty) return false;
|
|
644
644
|
if (e.isActive("codeBlock")) return false;
|
|
645
645
|
if (e.isActive("link")) return false;
|
|
646
|
+
if (e.isActive("variable")) return false;
|
|
646
647
|
if (!e.isEditable) return false;
|
|
647
648
|
return true;
|
|
648
649
|
},
|
|
@@ -468,7 +468,7 @@ var SuggestionMenu = ({
|
|
|
468
468
|
if (!isMounted || !show || !editor) {
|
|
469
469
|
return null;
|
|
470
470
|
}
|
|
471
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.FloatingPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
472
472
|
"div",
|
|
473
473
|
{
|
|
474
474
|
ref,
|
|
@@ -485,7 +485,7 @@ var SuggestionMenu = ({
|
|
|
485
485
|
onSelect
|
|
486
486
|
})
|
|
487
487
|
}
|
|
488
|
-
);
|
|
488
|
+
) });
|
|
489
489
|
};
|
|
490
490
|
|
|
491
491
|
// src/ui/slash-dropdown-menu/use-slash-dropdown-menu.ts
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import "../../chunk-MNTOOEHA.mjs";
|
|
3
3
|
import {
|
|
4
4
|
SlashDropdownMenu
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-ERPGWXFK.mjs";
|
|
6
6
|
import {
|
|
7
7
|
useSlashDropdownMenu
|
|
8
8
|
} from "../../chunk-6552DQWB.mjs";
|
|
9
9
|
import "../../chunk-HLLA2HRV.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-L5RDMV3H.mjs";
|
|
11
11
|
import "../../chunk-CNVACBGT.mjs";
|
|
12
12
|
import "../../chunk-YJAHZXLG.mjs";
|
|
13
13
|
import "../../chunk-P55PLOHR.mjs";
|
|
@@ -466,7 +466,7 @@ var SuggestionMenu = ({
|
|
|
466
466
|
if (!isMounted || !show || !editor) {
|
|
467
467
|
return null;
|
|
468
468
|
}
|
|
469
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.FloatingPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
470
470
|
"div",
|
|
471
471
|
{
|
|
472
472
|
ref,
|
|
@@ -483,7 +483,7 @@ var SuggestionMenu = ({
|
|
|
483
483
|
onSelect
|
|
484
484
|
})
|
|
485
485
|
}
|
|
486
|
-
);
|
|
486
|
+
) });
|
|
487
487
|
};
|
|
488
488
|
|
|
489
489
|
// src/ui/slash-dropdown-menu/use-slash-dropdown-menu.ts
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
SlashDropdownMenu
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-ERPGWXFK.mjs";
|
|
6
6
|
import "../../chunk-6552DQWB.mjs";
|
|
7
7
|
import "../../chunk-HLLA2HRV.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-L5RDMV3H.mjs";
|
|
9
9
|
import "../../chunk-CNVACBGT.mjs";
|
|
10
10
|
import "../../chunk-YJAHZXLG.mjs";
|
|
11
11
|
import "../../chunk-P55PLOHR.mjs";
|
|
@@ -462,7 +462,7 @@ var SuggestionMenu = ({
|
|
|
462
462
|
if (!isMounted || !show || !editor) {
|
|
463
463
|
return null;
|
|
464
464
|
}
|
|
465
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.FloatingPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
466
466
|
"div",
|
|
467
467
|
{
|
|
468
468
|
ref,
|
|
@@ -479,7 +479,7 @@ var SuggestionMenu = ({
|
|
|
479
479
|
onSelect
|
|
480
480
|
})
|
|
481
481
|
}
|
|
482
|
-
);
|
|
482
|
+
) });
|
|
483
483
|
};
|
|
484
484
|
// Annotate the CommonJS export names for ESM import in node:
|
|
485
485
|
0 && (module.exports = {
|
|
@@ -428,7 +428,7 @@ var SuggestionMenu = ({
|
|
|
428
428
|
if (!isMounted || !show || !editor) {
|
|
429
429
|
return null;
|
|
430
430
|
}
|
|
431
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react4.FloatingPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
432
432
|
"div",
|
|
433
433
|
{
|
|
434
434
|
ref,
|
|
@@ -445,7 +445,7 @@ var SuggestionMenu = ({
|
|
|
445
445
|
onSelect
|
|
446
446
|
})
|
|
447
447
|
}
|
|
448
|
-
);
|
|
448
|
+
) });
|
|
449
449
|
};
|
|
450
450
|
// Annotate the CommonJS export names for ESM import in node:
|
|
451
451
|
0 && (module.exports = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/tiptap",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.4.0",
|
|
4
4
|
"description": "our tiptap components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tiptap"
|
|
@@ -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.
|
|
31
|
+
"@kopexa/theme": "17.13.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@floating-ui/dom": "^1.7.4",
|
|
@@ -62,28 +62,28 @@
|
|
|
62
62
|
"markdown-it": "^14.1.0",
|
|
63
63
|
"react-hotkeys-hook": "^5.2.3",
|
|
64
64
|
"react-intl": "^7.1.14",
|
|
65
|
-
"@kopexa/
|
|
66
|
-
"@kopexa/callout": "17.0.
|
|
67
|
-
"@kopexa/
|
|
68
|
-
"@kopexa/
|
|
69
|
-
"@kopexa/
|
|
70
|
-
"@kopexa/
|
|
71
|
-
"@kopexa/extension-
|
|
72
|
-
"@kopexa/extension-
|
|
73
|
-
"@kopexa/
|
|
74
|
-
"@kopexa/
|
|
75
|
-
"@kopexa/
|
|
76
|
-
"@kopexa/label": "17.0.
|
|
77
|
-
"@kopexa/popover": "17.0.
|
|
78
|
-
"@kopexa/
|
|
79
|
-
"@kopexa/
|
|
80
|
-
"@kopexa/
|
|
81
|
-
"@kopexa/
|
|
82
|
-
"@kopexa/
|
|
83
|
-
"@kopexa/
|
|
84
|
-
"@kopexa/use-
|
|
85
|
-
"@kopexa/tabs": "17.0.
|
|
86
|
-
"@kopexa/
|
|
65
|
+
"@kopexa/chip": "17.1.22",
|
|
66
|
+
"@kopexa/callout": "17.0.25",
|
|
67
|
+
"@kopexa/dialog": "17.0.25",
|
|
68
|
+
"@kopexa/button": "17.0.25",
|
|
69
|
+
"@kopexa/dropdown-menu": "17.0.25",
|
|
70
|
+
"@kopexa/editor-utils": "17.0.25",
|
|
71
|
+
"@kopexa/extension-code": "17.0.25",
|
|
72
|
+
"@kopexa/extension-controlref": "17.1.7",
|
|
73
|
+
"@kopexa/extension-table": "17.0.25",
|
|
74
|
+
"@kopexa/icons": "17.3.7",
|
|
75
|
+
"@kopexa/input": "17.0.25",
|
|
76
|
+
"@kopexa/label": "17.0.25",
|
|
77
|
+
"@kopexa/popover": "17.0.25",
|
|
78
|
+
"@kopexa/select": "17.0.25",
|
|
79
|
+
"@kopexa/switch": "17.0.25",
|
|
80
|
+
"@kopexa/shared-utils": "17.0.25",
|
|
81
|
+
"@kopexa/separator": "17.0.25",
|
|
82
|
+
"@kopexa/toolbar": "17.0.25",
|
|
83
|
+
"@kopexa/use-composed-ref": "17.0.25",
|
|
84
|
+
"@kopexa/use-is-mobile": "17.0.25",
|
|
85
|
+
"@kopexa/tabs": "17.0.25",
|
|
86
|
+
"@kopexa/react-utils": "17.0.25"
|
|
87
87
|
},
|
|
88
88
|
"clean-package": "../../../clean-package.config.json",
|
|
89
89
|
"module": "dist/index.mjs",
|
|
@@ -14,9 +14,6 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
ListDropdownMenu
|
|
16
16
|
} from "./chunk-Q7DFJ5NI.mjs";
|
|
17
|
-
import {
|
|
18
|
-
ColorHighlightPopover
|
|
19
|
-
} from "./chunk-C5RQWJKE.mjs";
|
|
20
17
|
import {
|
|
21
18
|
HeadingDropdownMenu
|
|
22
19
|
} from "./chunk-V6TAZMQN.mjs";
|
|
@@ -30,6 +27,9 @@ import {
|
|
|
30
27
|
import {
|
|
31
28
|
CodeBlockButton
|
|
32
29
|
} from "./chunk-OEVR5N7X.mjs";
|
|
30
|
+
import {
|
|
31
|
+
ColorHighlightPopover
|
|
32
|
+
} from "./chunk-C5RQWJKE.mjs";
|
|
33
33
|
import {
|
|
34
34
|
BlockquoteButton
|
|
35
35
|
} from "./chunk-W2FLOOJ6.mjs";
|