camox 0.16.0 → 0.17.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/core/components/lexical/InlineLexicalEditor.js +12 -10
- package/dist/core/components/lexical/SidebarLexicalEditor.js +8 -6
- package/dist/core/createBlock.js +19 -19
- package/dist/core/hooks/useFieldSelection.js +3 -3
- package/dist/core/hooks/useIsEditable.js +3 -3
- package/dist/features/preview/CamoxPreview.js +9 -9
- package/dist/features/preview/components/AddBlockSheet.js +6 -15
- package/dist/features/preview/components/AgentChatSheet.js +3 -3
- package/dist/features/preview/components/BlockActionsPopover.js +3 -3
- package/dist/features/preview/components/CreatePageModal.js +1 -1
- package/dist/features/preview/components/EditPageModal.js +9 -9
- package/dist/features/preview/components/FieldToolbar.js +3 -3
- package/dist/features/preview/components/OverlayTracker.js +3 -3
- package/dist/features/preview/components/Overlays.js +3 -3
- package/dist/features/preview/components/PageContentSheet.js +1 -1
- package/dist/features/preview/components/PagePicker.js +1 -1
- package/dist/features/preview/components/PageTree.js +23 -23
- package/dist/features/preview/components/PeekedBlock.js +3 -3
- package/dist/features/preview/components/PreviewPanel.js +7 -7
- package/dist/features/preview/components/PreviewSideSheet.js +5 -5
- package/dist/features/preview/components/PreviewToolbar.js +3 -3
- package/dist/features/preview/components/RepeatableItemsList.js +5 -5
- package/dist/features/preview/components/useUpdateBlockPosition.js +3 -3
- package/dist/features/preview/previewStore.js +1 -1
- package/dist/features/provider/actionsStore.js +1 -1
- package/dist/features/provider/components/CommandPalette.js +5 -5
- package/dist/features/provider/useAdminShortcuts.js +3 -3
- package/dist/features/studio/studioStore.js +1 -1
- package/dist/features/vite/vite.js +1 -2
- package/dist/studio.css +1 -1
- package/package.json +5 -5
|
@@ -9,7 +9,7 @@ import { BlockActionsPopover } from "./BlockActionsPopover.js";
|
|
|
9
9
|
import { usePreviewedPage } from "../CamoxPreview.js";
|
|
10
10
|
import { c } from "react/compiler-runtime";
|
|
11
11
|
import { useQuery } from "@tanstack/react-query";
|
|
12
|
-
import { useSelector } from "@xstate/store
|
|
12
|
+
import { useSelector } from "@xstate/store-react";
|
|
13
13
|
import * as React from "react";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
import { Button } from "@camox/ui/button";
|
|
@@ -24,9 +24,9 @@ import { Accordion } from "@base-ui/react/accordion";
|
|
|
24
24
|
//#region src/features/preview/components/PageTree.tsx
|
|
25
25
|
function useEmbedTitle(url) {
|
|
26
26
|
const $ = c(4);
|
|
27
|
-
if ($[0] !== "
|
|
27
|
+
if ($[0] !== "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903") {
|
|
28
28
|
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
29
|
-
$[0] = "
|
|
29
|
+
$[0] = "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903";
|
|
30
30
|
}
|
|
31
31
|
const [title, setTitle] = React.useState(null);
|
|
32
32
|
let t0;
|
|
@@ -59,9 +59,9 @@ function _temp(res) {
|
|
|
59
59
|
}
|
|
60
60
|
const FieldItem = (t0) => {
|
|
61
61
|
const $ = c(30);
|
|
62
|
-
if ($[0] !== "
|
|
62
|
+
if ($[0] !== "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903") {
|
|
63
63
|
for (let $i = 0; $i < 30; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
64
|
-
$[0] = "
|
|
64
|
+
$[0] = "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903";
|
|
65
65
|
}
|
|
66
66
|
const { fieldName, value, fieldType, schemaTitle, arrayItemType, isSelected, onFieldClick, onFieldDoubleClick, onMouseEnter, onMouseLeave } = t0;
|
|
67
67
|
const fetchedEmbedTitle = useEmbedTitle(fieldType === "Embed" ? value : null);
|
|
@@ -148,9 +148,9 @@ const FieldItem = (t0) => {
|
|
|
148
148
|
};
|
|
149
149
|
const BlockFields = (t0) => {
|
|
150
150
|
const $ = c(5);
|
|
151
|
-
if ($[0] !== "
|
|
151
|
+
if ($[0] !== "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903") {
|
|
152
152
|
for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
153
|
-
$[0] = "
|
|
153
|
+
$[0] = "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903";
|
|
154
154
|
}
|
|
155
155
|
const { block } = t0;
|
|
156
156
|
const schemaProperties = useCamoxApp().getBlockById(block.type)?._internal.contentSchema.properties;
|
|
@@ -252,9 +252,9 @@ const BlockFields = (t0) => {
|
|
|
252
252
|
};
|
|
253
253
|
function useBlockTreeItem(block, t0) {
|
|
254
254
|
const $ = c(17);
|
|
255
|
-
if ($[0] !== "
|
|
255
|
+
if ($[0] !== "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903") {
|
|
256
256
|
for (let $i = 0; $i < 17; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
257
|
-
$[0] = "
|
|
257
|
+
$[0] = "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903";
|
|
258
258
|
}
|
|
259
259
|
const isDragging = t0 === void 0 ? false : t0;
|
|
260
260
|
const [ellipsisPopoverOpen, setEllipsisPopoverOpen] = React.useState(false);
|
|
@@ -336,9 +336,9 @@ function _temp6(state) {
|
|
|
336
336
|
}
|
|
337
337
|
const BlockTreeItemHeader = (t0) => {
|
|
338
338
|
const $ = c(17);
|
|
339
|
-
if ($[0] !== "
|
|
339
|
+
if ($[0] !== "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903") {
|
|
340
340
|
for (let $i = 0; $i < 17; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
341
|
-
$[0] = "
|
|
341
|
+
$[0] = "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903";
|
|
342
342
|
}
|
|
343
343
|
let children;
|
|
344
344
|
let className;
|
|
@@ -391,9 +391,9 @@ const BlockTreeItemHeader = (t0) => {
|
|
|
391
391
|
};
|
|
392
392
|
const BlockTreeItemTrigger = (t0) => {
|
|
393
393
|
const $ = c(5);
|
|
394
|
-
if ($[0] !== "
|
|
394
|
+
if ($[0] !== "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903") {
|
|
395
395
|
for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
396
|
-
$[0] = "
|
|
396
|
+
$[0] = "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903";
|
|
397
397
|
}
|
|
398
398
|
const { displayText, onClick } = t0;
|
|
399
399
|
let t1;
|
|
@@ -420,9 +420,9 @@ const BlockTreeItemTrigger = (t0) => {
|
|
|
420
420
|
};
|
|
421
421
|
const BlockTreeItemEllipsis = (t0) => {
|
|
422
422
|
const $ = c(12);
|
|
423
|
-
if ($[0] !== "
|
|
423
|
+
if ($[0] !== "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903") {
|
|
424
424
|
for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
425
|
-
$[0] = "
|
|
425
|
+
$[0] = "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903";
|
|
426
426
|
}
|
|
427
427
|
let className;
|
|
428
428
|
let open;
|
|
@@ -468,9 +468,9 @@ const BlockTreeItemEllipsis = (t0) => {
|
|
|
468
468
|
};
|
|
469
469
|
const BlockTreeItemContent = (t0) => {
|
|
470
470
|
const $ = c(3);
|
|
471
|
-
if ($[0] !== "
|
|
471
|
+
if ($[0] !== "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903") {
|
|
472
472
|
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
473
|
-
$[0] = "
|
|
473
|
+
$[0] = "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903";
|
|
474
474
|
}
|
|
475
475
|
const { block } = t0;
|
|
476
476
|
let t1;
|
|
@@ -491,9 +491,9 @@ const animateLayoutChanges = (args) => {
|
|
|
491
491
|
};
|
|
492
492
|
const SortableBlock = (t0) => {
|
|
493
493
|
const $ = c(53);
|
|
494
|
-
if ($[0] !== "
|
|
494
|
+
if ($[0] !== "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903") {
|
|
495
495
|
for (let $i = 0; $i < 53; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
496
|
-
$[0] = "
|
|
496
|
+
$[0] = "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903";
|
|
497
497
|
}
|
|
498
498
|
const { block } = t0;
|
|
499
499
|
const [gripPopoverOpen, setGripPopoverOpen] = React.useState(false);
|
|
@@ -682,9 +682,9 @@ const SortableBlock = (t0) => {
|
|
|
682
682
|
};
|
|
683
683
|
const LayoutBlockItem = (t0) => {
|
|
684
684
|
const $ = c(44);
|
|
685
|
-
if ($[0] !== "
|
|
685
|
+
if ($[0] !== "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903") {
|
|
686
686
|
for (let $i = 0; $i < 44; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
687
|
-
$[0] = "
|
|
687
|
+
$[0] = "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903";
|
|
688
688
|
}
|
|
689
689
|
const { block, layoutName } = t0;
|
|
690
690
|
const camoxApp = useCamoxApp();
|
|
@@ -843,9 +843,9 @@ const LayoutBlockItem = (t0) => {
|
|
|
843
843
|
};
|
|
844
844
|
const PageTree = () => {
|
|
845
845
|
const $ = c(47);
|
|
846
|
-
if ($[0] !== "
|
|
846
|
+
if ($[0] !== "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903") {
|
|
847
847
|
for (let $i = 0; $i < 47; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
848
|
-
$[0] = "
|
|
848
|
+
$[0] = "79ab6b120b2bb787a1048ac6df2d27952726deab51bb8be3775e9053c83d0903";
|
|
849
849
|
}
|
|
850
850
|
const page = usePreviewedPage();
|
|
851
851
|
const { pageBlocks, beforeBlocks: layoutBeforeBlocks, afterBlocks: layoutAfterBlocks } = usePageBlocks(page);
|
|
@@ -2,16 +2,16 @@ import { previewStore } from "../previewStore.js";
|
|
|
2
2
|
import { NormalizedDataProvider } from "../../../lib/normalized-data.js";
|
|
3
3
|
import { BlockErrorBoundary } from "./BlockErrorBoundary.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
|
-
import { useSelector } from "@xstate/store
|
|
5
|
+
import { useSelector } from "@xstate/store-react";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/features/preview/components/PeekedBlock.tsx
|
|
10
10
|
const PeekedBlock = (t0) => {
|
|
11
11
|
const $ = c(38);
|
|
12
|
-
if ($[0] !== "
|
|
12
|
+
if ($[0] !== "d06a0d1e44a842e15e76eed856e723e3d0d83c1a0085743d97152ca90675d851") {
|
|
13
13
|
for (let $i = 0; $i < 38; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
14
|
-
$[0] = "
|
|
14
|
+
$[0] = "d06a0d1e44a842e15e76eed856e723e3d0d83c1a0085743d97152ca90675d851";
|
|
15
15
|
}
|
|
16
16
|
const { onExitComplete } = t0;
|
|
17
17
|
const peekedBlock = useSelector(previewStore, _temp);
|
|
@@ -10,7 +10,7 @@ import { Overlays } from "./Overlays.js";
|
|
|
10
10
|
import { OverlayTracker } from "./OverlayTracker.js";
|
|
11
11
|
import { PreviewToolbar } from "./PreviewToolbar.js";
|
|
12
12
|
import { c } from "react/compiler-runtime";
|
|
13
|
-
import { useSelector } from "@xstate/store
|
|
13
|
+
import { useSelector } from "@xstate/store-react";
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { PanelContent } from "@camox/ui/panel";
|
|
@@ -18,9 +18,9 @@ import { PanelContent } from "@camox/ui/panel";
|
|
|
18
18
|
//#region src/features/preview/components/PreviewPanel.tsx
|
|
19
19
|
const PreviewFrame = (t0) => {
|
|
20
20
|
const $ = c(9);
|
|
21
|
-
if ($[0] !== "
|
|
21
|
+
if ($[0] !== "0ff00f7e0a48a9512a0a40e1f9f3e978f0fd159929e643b5036b8a98b2f79fe4") {
|
|
22
22
|
for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
23
|
-
$[0] = "
|
|
23
|
+
$[0] = "0ff00f7e0a48a9512a0a40e1f9f3e978f0fd159929e643b5036b8a98b2f79fe4";
|
|
24
24
|
}
|
|
25
25
|
const { children, style, className, onIframeReady } = t0;
|
|
26
26
|
let t1;
|
|
@@ -61,9 +61,9 @@ const PreviewFrame = (t0) => {
|
|
|
61
61
|
};
|
|
62
62
|
const KeyDownForwarder = () => {
|
|
63
63
|
const $ = c(5);
|
|
64
|
-
if ($[0] !== "
|
|
64
|
+
if ($[0] !== "0ff00f7e0a48a9512a0a40e1f9f3e978f0fd159929e643b5036b8a98b2f79fe4") {
|
|
65
65
|
for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
66
|
-
$[0] = "
|
|
66
|
+
$[0] = "0ff00f7e0a48a9512a0a40e1f9f3e978f0fd159929e643b5036b8a98b2f79fe4";
|
|
67
67
|
}
|
|
68
68
|
const { window: iframeWindow } = useFrame();
|
|
69
69
|
const actions = useSelector(actionsStore, _temp);
|
|
@@ -120,9 +120,9 @@ const KeyDownForwarder = () => {
|
|
|
120
120
|
};
|
|
121
121
|
const PreviewPanel = (t0) => {
|
|
122
122
|
const $ = c(16);
|
|
123
|
-
if ($[0] !== "
|
|
123
|
+
if ($[0] !== "0ff00f7e0a48a9512a0a40e1f9f3e978f0fd159929e643b5036b8a98b2f79fe4") {
|
|
124
124
|
for (let $i = 0; $i < 16; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
125
|
-
$[0] = "
|
|
125
|
+
$[0] = "0ff00f7e0a48a9512a0a40e1f9f3e978f0fd159929e643b5036b8a98b2f79fe4";
|
|
126
126
|
}
|
|
127
127
|
const { children } = t0;
|
|
128
128
|
useBlockActionsShortcuts();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { previewStore } from "../previewStore.js";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { useSelector } from "@xstate/store
|
|
3
|
+
import { useSelector } from "@xstate/store-react";
|
|
4
4
|
import "react";
|
|
5
5
|
import * as Sheet from "@camox/ui/sheet";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -8,9 +8,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
8
8
|
//#region src/features/preview/components/PreviewSideSheet.tsx
|
|
9
9
|
const PreviewSideSheet = (t0) => {
|
|
10
10
|
const $ = c(10);
|
|
11
|
-
if ($[0] !== "
|
|
11
|
+
if ($[0] !== "edcf461507a0169fc758cf476038888d810edc90248a7b31a8d3c5e352a79c23") {
|
|
12
12
|
for (let $i = 0; $i < 10; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
13
|
-
$[0] = "
|
|
13
|
+
$[0] = "edcf461507a0169fc758cf476038888d810edc90248a7b31a8d3c5e352a79c23";
|
|
14
14
|
}
|
|
15
15
|
const { open, onOpenChange, initialFocus, children, className } = t0;
|
|
16
16
|
let t1;
|
|
@@ -49,9 +49,9 @@ const PreviewSideSheet = (t0) => {
|
|
|
49
49
|
};
|
|
50
50
|
function useIsPreviewSheetOpen() {
|
|
51
51
|
const $ = c(1);
|
|
52
|
-
if ($[0] !== "
|
|
52
|
+
if ($[0] !== "edcf461507a0169fc758cf476038888d810edc90248a7b31a8d3c5e352a79c23") {
|
|
53
53
|
for (let $i = 0; $i < 1; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
54
|
-
$[0] = "
|
|
54
|
+
$[0] = "edcf461507a0169fc758cf476038888d810edc90248a7b31a8d3c5e352a79c23";
|
|
55
55
|
}
|
|
56
56
|
const isPageContentSheetOpen = useSelector(previewStore, _temp);
|
|
57
57
|
const isPeekingBlock = useSelector(previewStore, _temp2);
|
|
@@ -3,7 +3,7 @@ import { actionsStore } from "../../provider/actionsStore.js";
|
|
|
3
3
|
import { cn, getActionShortcut } from "../../../lib/utils.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { Kbd } from "@camox/ui/kbd";
|
|
6
|
-
import { useSelector } from "@xstate/store
|
|
6
|
+
import { useSelector } from "@xstate/store-react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { Button } from "@camox/ui/button";
|
|
9
9
|
import * as Tooltip$1 from "@camox/ui/tooltip";
|
|
@@ -15,9 +15,9 @@ import { Toggle } from "@camox/ui/toggle";
|
|
|
15
15
|
//#region src/features/preview/components/PreviewToolbar.tsx
|
|
16
16
|
const PreviewToolbar = () => {
|
|
17
17
|
const $ = c(65);
|
|
18
|
-
if ($[0] !== "
|
|
18
|
+
if ($[0] !== "b452b7baa4fb4cb149824bb550df61b39b24db4bcb84791dcb480b6a06e8b4f5") {
|
|
19
19
|
for (let $i = 0; $i < 65; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
20
|
-
$[0] = "
|
|
20
|
+
$[0] = "b452b7baa4fb4cb149824bb550df61b39b24db4bcb84791dcb480b6a06e8b4f5";
|
|
21
21
|
}
|
|
22
22
|
const isEditingLocked = useSelector(previewStore, _temp);
|
|
23
23
|
const isEditingPanelOpen = useSelector(previewStore, _temp2);
|
|
@@ -4,7 +4,7 @@ import { cn } from "../../../lib/utils.js";
|
|
|
4
4
|
import { useRepeatableItemActions } from "./useRepeatableItemActions.js";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
6
|
import { useMutation } from "@tanstack/react-query";
|
|
7
|
-
import { useSelector } from "@xstate/store
|
|
7
|
+
import { useSelector } from "@xstate/store-react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Button } from "@camox/ui/button";
|
|
10
10
|
import { Tooltip, TooltipContent, TooltipTrigger } from "@camox/ui/tooltip";
|
|
@@ -17,9 +17,9 @@ import { CSS } from "@dnd-kit/utilities";
|
|
|
17
17
|
//#region src/features/preview/components/RepeatableItemsList.tsx
|
|
18
18
|
const SortableRepeatableItem = (t0) => {
|
|
19
19
|
const $ = c(47);
|
|
20
|
-
if ($[0] !== "
|
|
20
|
+
if ($[0] !== "1ee75e44cc1535553f2a0db7a9c51ae835ec57f2adce6c4034b28916cd743097") {
|
|
21
21
|
for (let $i = 0; $i < 47; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
22
|
-
$[0] = "
|
|
22
|
+
$[0] = "1ee75e44cc1535553f2a0db7a9c51ae835ec57f2adce6c4034b28916cd743097";
|
|
23
23
|
}
|
|
24
24
|
const { item, fieldName, blockId, canRemove, onRemove } = t0;
|
|
25
25
|
const t1 = String(item.id);
|
|
@@ -205,9 +205,9 @@ const SortableRepeatableItem = (t0) => {
|
|
|
205
205
|
};
|
|
206
206
|
const RepeatableItemsList = (t0) => {
|
|
207
207
|
const $ = c(25);
|
|
208
|
-
if ($[0] !== "
|
|
208
|
+
if ($[0] !== "1ee75e44cc1535553f2a0db7a9c51ae835ec57f2adce6c4034b28916cd743097") {
|
|
209
209
|
for (let $i = 0; $i < 25; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
210
|
-
$[0] = "
|
|
210
|
+
$[0] = "1ee75e44cc1535553f2a0db7a9c51ae835ec57f2adce6c4034b28916cd743097";
|
|
211
211
|
}
|
|
212
212
|
const { items, blockId, fieldName, schema } = t0;
|
|
213
213
|
let t1;
|
|
@@ -3,16 +3,16 @@ import { blockMutations } from "../../../lib/queries.js";
|
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
5
5
|
import { useLocation } from "@tanstack/react-router";
|
|
6
|
-
import { useSelector } from "@xstate/store
|
|
6
|
+
import { useSelector } from "@xstate/store-react";
|
|
7
7
|
import { generateKeyBetween } from "fractional-indexing";
|
|
8
8
|
import { queryKeys } from "@camox/api-contract/query-keys";
|
|
9
9
|
|
|
10
10
|
//#region src/features/preview/components/useUpdateBlockPosition.ts
|
|
11
11
|
function useUpdateBlockPosition() {
|
|
12
12
|
const $ = c(5);
|
|
13
|
-
if ($[0] !== "
|
|
13
|
+
if ($[0] !== "5a96eb36dc11e719c3b59bd9e9b0341b45aea01f26dbb80c97c8a13ec4179126") {
|
|
14
14
|
for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
15
|
-
$[0] = "
|
|
15
|
+
$[0] = "5a96eb36dc11e719c3b59bd9e9b0341b45aea01f26dbb80c97c8a13ec4179126";
|
|
16
16
|
}
|
|
17
17
|
const queryClient = useQueryClient();
|
|
18
18
|
const { pathname } = useLocation();
|
|
@@ -2,7 +2,7 @@ import { actionsStore } from "../actionsStore.js";
|
|
|
2
2
|
import { formatShortcut } from "../../../lib/utils.js";
|
|
3
3
|
import { studioStore } from "../../studio/studioStore.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
|
-
import { useSelector } from "@xstate/store
|
|
5
|
+
import { useSelector } from "@xstate/store-react";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandShortcut } from "@camox/ui/command";
|
|
@@ -10,9 +10,9 @@ import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, Comma
|
|
|
10
10
|
//#region src/features/provider/components/CommandPalette.tsx
|
|
11
11
|
function CommandPalette() {
|
|
12
12
|
const $ = c(36);
|
|
13
|
-
if ($[0] !== "
|
|
13
|
+
if ($[0] !== "5f1e8a1c01d480f9776b22a64c8ade21ccf8399f3ce44325bad21e192e883016") {
|
|
14
14
|
for (let $i = 0; $i < 36; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
15
|
-
$[0] = "
|
|
15
|
+
$[0] = "5f1e8a1c01d480f9776b22a64c8ade21ccf8399f3ce44325bad21e192e883016";
|
|
16
16
|
}
|
|
17
17
|
const isOpen = useSelector(studioStore, _temp);
|
|
18
18
|
const [search, setSearch] = React.useState("");
|
|
@@ -199,9 +199,9 @@ function _temp(state) {
|
|
|
199
199
|
}
|
|
200
200
|
function useCommandPaletteActions() {
|
|
201
201
|
const $ = c(2);
|
|
202
|
-
if ($[0] !== "
|
|
202
|
+
if ($[0] !== "5f1e8a1c01d480f9776b22a64c8ade21ccf8399f3ce44325bad21e192e883016") {
|
|
203
203
|
for (let $i = 0; $i < 2; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
204
|
-
$[0] = "
|
|
204
|
+
$[0] = "5f1e8a1c01d480f9776b22a64c8ade21ccf8399f3ce44325bad21e192e883016";
|
|
205
205
|
}
|
|
206
206
|
let t0;
|
|
207
207
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -2,7 +2,7 @@ import { previewStore } from "../preview/previewStore.js";
|
|
|
2
2
|
import { actionsStore } from "./actionsStore.js";
|
|
3
3
|
import { checkIfInputFocused } from "../../lib/utils.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
|
-
import { useSelector } from "@xstate/store
|
|
5
|
+
import { useSelector } from "@xstate/store-react";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/features/provider/useAdminShortcuts.tsx
|
|
@@ -11,9 +11,9 @@ import * as React from "react";
|
|
|
11
11
|
*/
|
|
12
12
|
function useAdminShortcuts() {
|
|
13
13
|
const $ = c(4);
|
|
14
|
-
if ($[0] !== "
|
|
14
|
+
if ($[0] !== "8aa9f7b5d024a727491a97f8449b1e7300ebf32446cf1094a0f4557cc8d754f4") {
|
|
15
15
|
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
16
|
-
$[0] = "
|
|
16
|
+
$[0] = "8aa9f7b5d024a727491a97f8449b1e7300ebf32446cf1094a0f4557cc8d754f4";
|
|
17
17
|
}
|
|
18
18
|
const actions = useSelector(actionsStore, _temp);
|
|
19
19
|
const previousLockState = React.useRef(null);
|
|
@@ -138,8 +138,7 @@ function camox(options) {
|
|
|
138
138
|
"camox > @sinclair/typebox",
|
|
139
139
|
"camox > @takumi-rs/image-response",
|
|
140
140
|
"camox > @tanstack/react-form",
|
|
141
|
-
"camox > @xstate/store",
|
|
142
|
-
"camox > @xstate/store/react",
|
|
141
|
+
"camox > @xstate/store-react",
|
|
143
142
|
"camox > @camox/ui > cmdk",
|
|
144
143
|
"camox > fractional-indexing",
|
|
145
144
|
"camox > lexical",
|