@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.
@@ -50,7 +50,6 @@ var ControlBlockView = (props) => {
50
50
  Chip,
51
51
  {
52
52
  size: "sm",
53
- "data-active": open,
54
53
  contentEditable: false,
55
54
  indicator: ind.indicator,
56
55
  indicatorColor: ind.indicatorColor,
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-JM66CQVD.mjs";
14
14
  import {
15
15
  ControlBlockView
16
- } from "./chunk-GYDJVHHG.mjs";
16
+ } from "./chunk-2ZDEIGMM.mjs";
17
17
 
18
18
  // src/control-block.ts
19
19
  import { mergeAttributes, Node } from "@tiptap/core";
@@ -589,7 +589,6 @@ var ControlBlockView = (props) => {
589
589
  import_sight2.Chip,
590
590
  {
591
591
  size: "sm",
592
- "data-active": open,
593
592
  contentEditable: false,
594
593
  indicator: ind.indicator,
595
594
  indicatorColor: ind.indicatorColor,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  ControlBlockView
4
- } from "../chunk-GYDJVHHG.mjs";
4
+ } from "../chunk-2ZDEIGMM.mjs";
5
5
  import "../chunk-A7FWOQDN.mjs";
6
6
  import "../chunk-4C72VBLP.mjs";
7
7
  import "../chunk-AQTNFDGA.mjs";
@@ -594,7 +594,6 @@ var ControlBlockView = (props) => {
594
594
  import_sight2.Chip,
595
595
  {
596
596
  size: "sm",
597
- "data-active": open,
598
597
  contentEditable: false,
599
598
  indicator: ind.indicator,
600
599
  indicatorColor: ind.indicatorColor,
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  ControlBlock
4
- } from "./chunk-RTBFRPB3.mjs";
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-GYDJVHHG.mjs";
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 [open2, setOpen] = (0, import_react4.useState)(false);
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": open2,
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: open2,
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: open2,
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: open2, onOpenChange, size: "2xl", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_sight2.Dialog.Content, { "aria-label": "Map Control", children: [
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-RTBFRPB3.mjs";
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-GYDJVHHG.mjs";
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.16",
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.3.2",
32
- "@kopexa/icons": "17.2.4",
33
- "@kopexa/sight": "17.3.0",
34
- "@kopexa/theme": "17.8.2"
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.15.3",
38
- "@tiptap/pm": "^3.15.3",
39
- "@tiptap/react": "^3.15.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/shared-utils": "17.0.16",
42
- "@kopexa/react-utils": "17.0.16"
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",