@kopexa/extension-controlref 17.0.16 → 17.1.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-GYDJVHHG.mjs → chunk-2ZDEIGMM.mjs} +0 -1
- package/dist/{chunk-RTBFRPB3.mjs → chunk-KUW3BMAS.mjs} +1 -1
- package/dist/components/control-block-view.js +0 -1
- package/dist/components/control-block-view.mjs +1 -1
- package/dist/control-block.js +0 -1
- package/dist/control-block.mjs +2 -2
- package/dist/index.js +5 -6
- package/dist/index.mjs +2 -2
- package/package.json +10 -10
package/dist/control-block.js
CHANGED
package/dist/control-block.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
ControlBlock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KUW3BMAS.mjs";
|
|
5
5
|
import "./chunk-FTEE5U3H.mjs";
|
|
6
6
|
import "./chunk-XHD2KFKQ.mjs";
|
|
7
7
|
import "./chunk-ZUR6XKMG.mjs";
|
|
8
8
|
import "./chunk-JM66CQVD.mjs";
|
|
9
9
|
import "./chunk-WIS7ZNTO.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-2ZDEIGMM.mjs";
|
|
11
11
|
import "./chunk-A7FWOQDN.mjs";
|
|
12
12
|
import "./chunk-4C72VBLP.mjs";
|
|
13
13
|
import "./chunk-AQTNFDGA.mjs";
|
package/dist/index.js
CHANGED
|
@@ -588,13 +588,13 @@ var ControlView = (props) => {
|
|
|
588
588
|
resolver,
|
|
589
589
|
editor
|
|
590
590
|
});
|
|
591
|
-
const [
|
|
591
|
+
const [open, setOpen] = (0, import_react4.useState)(false);
|
|
592
592
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react3.NodeViewWrapper, { as: "span", "data-kpx-control": true, "data-id": (_a = attrs.id) != null ? _a : "", children: [
|
|
593
593
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
594
594
|
import_sight2.Chip,
|
|
595
595
|
{
|
|
596
596
|
size: "sm",
|
|
597
|
-
"data-active":
|
|
597
|
+
"data-active": open,
|
|
598
598
|
contentEditable: false,
|
|
599
599
|
indicator: ind.indicator,
|
|
600
600
|
indicatorColor: ind.indicatorColor,
|
|
@@ -624,7 +624,7 @@ var ControlView = (props) => {
|
|
|
624
624
|
interactive && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
625
625
|
EditControlDialog,
|
|
626
626
|
{
|
|
627
|
-
open
|
|
627
|
+
open,
|
|
628
628
|
onOpenChange: setOpen,
|
|
629
629
|
resolver,
|
|
630
630
|
isMissing,
|
|
@@ -650,7 +650,7 @@ var ControlView = (props) => {
|
|
|
650
650
|
] });
|
|
651
651
|
};
|
|
652
652
|
var EditControlDialog = ({
|
|
653
|
-
open
|
|
653
|
+
open,
|
|
654
654
|
onOpenChange,
|
|
655
655
|
resolver,
|
|
656
656
|
initialSelection,
|
|
@@ -666,7 +666,7 @@ var EditControlDialog = ({
|
|
|
666
666
|
const [options, setOptions] = (0, import_react4.useState)(initialOptions);
|
|
667
667
|
const isDirty = JSON.stringify(selection) !== JSON.stringify(initialSelection) || JSON.stringify(options) !== JSON.stringify(initialOptions);
|
|
668
668
|
if (!resolver) return null;
|
|
669
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_sight2.Dialog, { open
|
|
669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_sight2.Dialog, { open, onOpenChange, size: "2xl", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_sight2.Dialog.Content, { "aria-label": "Map Control", children: [
|
|
670
670
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_sight2.Dialog.Header, { children: [
|
|
671
671
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_sight2.Dialog.Title, { children: (selection == null ? void 0 : selection.title) ? intl.formatMessage(messages.control_with_title, {
|
|
672
672
|
title: selection.title
|
|
@@ -933,7 +933,6 @@ var ControlBlockView = (props) => {
|
|
|
933
933
|
import_sight3.Chip,
|
|
934
934
|
{
|
|
935
935
|
size: "sm",
|
|
936
|
-
"data-active": open,
|
|
937
936
|
contentEditable: false,
|
|
938
937
|
indicator: ind.indicator,
|
|
939
938
|
indicatorColor: ind.indicatorColor,
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
ControlBlock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KUW3BMAS.mjs";
|
|
5
5
|
import "./chunk-FTEE5U3H.mjs";
|
|
6
6
|
import "./chunk-XHD2KFKQ.mjs";
|
|
7
7
|
import "./chunk-ZUR6XKMG.mjs";
|
|
@@ -16,7 +16,7 @@ import "./chunk-TEDXYIGO.mjs";
|
|
|
16
16
|
import "./chunk-LMKP3DDN.mjs";
|
|
17
17
|
import "./chunk-JM66CQVD.mjs";
|
|
18
18
|
import "./chunk-WIS7ZNTO.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-2ZDEIGMM.mjs";
|
|
20
20
|
import "./chunk-A7FWOQDN.mjs";
|
|
21
21
|
import "./chunk-4C72VBLP.mjs";
|
|
22
22
|
import "./chunk-AQTNFDGA.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/extension-controlref",
|
|
3
|
-
"version": "17.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
4
|
"description": "A extension to show controls within our editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"extension-controlref"
|
|
@@ -28,18 +28,18 @@
|
|
|
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/i18n": "17.
|
|
32
|
-
"@kopexa/icons": "17.
|
|
33
|
-
"@kopexa/sight": "17.
|
|
34
|
-
"@kopexa/theme": "17.
|
|
31
|
+
"@kopexa/i18n": "17.4.0",
|
|
32
|
+
"@kopexa/icons": "17.3.0",
|
|
33
|
+
"@kopexa/sight": "17.4.1",
|
|
34
|
+
"@kopexa/theme": "17.10.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@tiptap/core": "^3.
|
|
38
|
-
"@tiptap/pm": "^3.
|
|
39
|
-
"@tiptap/react": "^3.
|
|
37
|
+
"@tiptap/core": "^3.17.0",
|
|
38
|
+
"@tiptap/pm": "^3.17.0",
|
|
39
|
+
"@tiptap/react": "^3.17.0",
|
|
40
40
|
"react-intl": "^7.1.14",
|
|
41
|
-
"@kopexa/
|
|
42
|
-
"@kopexa/
|
|
41
|
+
"@kopexa/react-utils": "17.0.18",
|
|
42
|
+
"@kopexa/shared-utils": "17.0.18"
|
|
43
43
|
},
|
|
44
44
|
"clean-package": "../../../clean-package.config.json",
|
|
45
45
|
"module": "dist/index.mjs",
|