@measured/puck 0.21.0-canary.ece26d91 → 0.21.0-canary.ed351ce5
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/{Editor-O447AVCX.mjs → Editor-CYTATURR.mjs} +7 -7
- package/dist/{actions-ONhOkrvf.d.mts → actions-tsxxcX1z.d.mts} +24 -9
- package/dist/{actions-ONhOkrvf.d.ts → actions-tsxxcX1z.d.ts} +24 -9
- package/dist/{chunk-T3WX7XJ6.mjs → chunk-72SA22GI.mjs} +4 -2
- package/dist/{chunk-2Q4PACDA.mjs → chunk-M4QBB3JM.mjs} +3 -3
- package/dist/{chunk-62AAYNXG.mjs → chunk-MLTVJA2A.mjs} +1 -1
- package/dist/{chunk-Y656T6AQ.mjs → chunk-MVJKIFF6.mjs} +1 -1
- package/dist/{chunk-QAWJTCV5.mjs → chunk-NOJQSXRU.mjs} +1 -1
- package/dist/{chunk-QBJ2LDJB.mjs → chunk-RVZLI2KP.mjs} +5109 -4487
- package/dist/{chunk-PLXSMBAA.mjs → chunk-UNQOU2OI.mjs} +1 -1
- package/dist/{chunk-DAQLMM2T.mjs → chunk-UUOBSXZR.mjs} +87 -2
- package/dist/{chunk-BSDEIOEK.mjs → chunk-V7333LON.mjs} +10 -8
- package/dist/{full-BEMDJKDS.mjs → full-GZ4L3XCF.mjs} +6 -6
- package/dist/{index-BEoNHRI1.d.ts → index-Ca6V6NQD.d.ts} +3 -1
- package/dist/{index-DfxZ7tZF.d.mts → index-mQvUCH3C.d.mts} +3 -1
- package/dist/index.css +696 -306
- package/dist/index.d.mts +28 -9
- package/dist/index.d.ts +28 -9
- package/dist/index.js +2910 -2143
- package/dist/index.mjs +18 -15
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/{loaded-N3FYGF2Y.mjs → loaded-2MNXXPJP.mjs} +3 -3
- package/dist/{loaded-JU3A7Y4L.mjs → loaded-6QT4HD2O.mjs} +3 -3
- package/dist/{loaded-OBY7OMS6.mjs → loaded-ZVPBQVNE.mjs} +3 -3
- package/dist/no-external.css +841 -447
- package/dist/no-external.d.mts +4 -4
- package/dist/no-external.d.ts +4 -4
- package/dist/no-external.js +2912 -2142
- package/dist/no-external.mjs +17 -9
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +4 -2
- package/dist/rsc.mjs +2 -2
- package/dist/{walk-tree-DHbAZ4wF.d.ts → walk-tree-Bh85NMeo.d.ts} +1 -1
- package/dist/{walk-tree-CdriEzFJ.d.mts → walk-tree-CDA3K5S3.d.mts} +1 -1
- package/package.json +3 -3
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
defaultViewports,
|
|
10
10
|
getChanged,
|
|
11
11
|
resolveComponentData
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-72SA22GI.mjs";
|
|
13
13
|
import {
|
|
14
14
|
get_class_name_factory_default
|
|
15
15
|
} from "./chunk-Y2EFNT5P.mjs";
|
|
@@ -225,6 +225,15 @@ var EllipsisVertical = createLucideIcon("EllipsisVertical", [
|
|
|
225
225
|
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
226
226
|
]);
|
|
227
227
|
|
|
228
|
+
// ../../node_modules/lucide-react/dist/esm/icons/expand.js
|
|
229
|
+
init_react_import();
|
|
230
|
+
var Expand = createLucideIcon("Expand", [
|
|
231
|
+
["path", { d: "m21 21-6-6m6 6v-4.8m0 4.8h-4.8", key: "1c15vz" }],
|
|
232
|
+
["path", { d: "M3 16.2V21m0 0h4.8M3 21l6-6", key: "1fsnz2" }],
|
|
233
|
+
["path", { d: "M21 7.8V3m0 0h-4.8M21 3l-6 6", key: "hawz9i" }],
|
|
234
|
+
["path", { d: "M3 7.8V3m0 0h4.8M3 3l6 6", key: "u9ee12" }]
|
|
235
|
+
]);
|
|
236
|
+
|
|
228
237
|
// ../../node_modules/lucide-react/dist/esm/icons/globe.js
|
|
229
238
|
init_react_import();
|
|
230
239
|
var Globe = createLucideIcon("Globe", [
|
|
@@ -233,6 +242,20 @@ var Globe = createLucideIcon("Globe", [
|
|
|
233
242
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
234
243
|
]);
|
|
235
244
|
|
|
245
|
+
// ../../node_modules/lucide-react/dist/esm/icons/hammer.js
|
|
246
|
+
init_react_import();
|
|
247
|
+
var Hammer = createLucideIcon("Hammer", [
|
|
248
|
+
["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
|
|
249
|
+
["path", { d: "m18 15 4-4", key: "16gjal" }],
|
|
250
|
+
[
|
|
251
|
+
"path",
|
|
252
|
+
{
|
|
253
|
+
d: "m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",
|
|
254
|
+
key: "b7pghm"
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
]);
|
|
258
|
+
|
|
236
259
|
// ../../node_modules/lucide-react/dist/esm/icons/hash.js
|
|
237
260
|
init_react_import();
|
|
238
261
|
var Hash = createLucideIcon("Hash", [
|
|
@@ -378,6 +401,24 @@ var Lock = createLucideIcon("Lock", [
|
|
|
378
401
|
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
379
402
|
]);
|
|
380
403
|
|
|
404
|
+
// ../../node_modules/lucide-react/dist/esm/icons/maximize-2.js
|
|
405
|
+
init_react_import();
|
|
406
|
+
var Maximize2 = createLucideIcon("Maximize2", [
|
|
407
|
+
["polyline", { points: "15 3 21 3 21 9", key: "mznyad" }],
|
|
408
|
+
["polyline", { points: "9 21 3 21 3 15", key: "1avn1i" }],
|
|
409
|
+
["line", { x1: "21", x2: "14", y1: "3", y2: "10", key: "ota7mn" }],
|
|
410
|
+
["line", { x1: "3", x2: "10", y1: "21", y2: "14", key: "1atl0r" }]
|
|
411
|
+
]);
|
|
412
|
+
|
|
413
|
+
// ../../node_modules/lucide-react/dist/esm/icons/minimize-2.js
|
|
414
|
+
init_react_import();
|
|
415
|
+
var Minimize2 = createLucideIcon("Minimize2", [
|
|
416
|
+
["polyline", { points: "4 14 10 14 10 20", key: "11kfnr" }],
|
|
417
|
+
["polyline", { points: "20 10 14 10 14 4", key: "rlmsce" }],
|
|
418
|
+
["line", { x1: "14", x2: "21", y1: "10", y2: "3", key: "o5lafz" }],
|
|
419
|
+
["line", { x1: "3", x2: "10", y1: "21", y2: "14", key: "1atl0r" }]
|
|
420
|
+
]);
|
|
421
|
+
|
|
381
422
|
// ../../node_modules/lucide-react/dist/esm/icons/minus.js
|
|
382
423
|
init_react_import();
|
|
383
424
|
var Minus = createLucideIcon("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]);
|
|
@@ -430,6 +471,15 @@ var Quote = createLucideIcon("Quote", [
|
|
|
430
471
|
]
|
|
431
472
|
]);
|
|
432
473
|
|
|
474
|
+
// ../../node_modules/lucide-react/dist/esm/icons/rectangle-ellipsis.js
|
|
475
|
+
init_react_import();
|
|
476
|
+
var RectangleEllipsis = createLucideIcon("RectangleEllipsis", [
|
|
477
|
+
["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }],
|
|
478
|
+
["path", { d: "M12 12h.01", key: "1mp3jc" }],
|
|
479
|
+
["path", { d: "M17 12h.01", key: "1m0b6t" }],
|
|
480
|
+
["path", { d: "M7 12h.01", key: "eqddd0" }]
|
|
481
|
+
]);
|
|
482
|
+
|
|
433
483
|
// ../../node_modules/lucide-react/dist/esm/icons/redo-2.js
|
|
434
484
|
init_react_import();
|
|
435
485
|
var Redo2 = createLucideIcon("Redo2", [
|
|
@@ -488,6 +538,14 @@ var Tablet = createLucideIcon("Tablet", [
|
|
|
488
538
|
["line", { x1: "12", x2: "12.01", y1: "18", y2: "18", key: "1dp563" }]
|
|
489
539
|
]);
|
|
490
540
|
|
|
541
|
+
// ../../node_modules/lucide-react/dist/esm/icons/toy-brick.js
|
|
542
|
+
init_react_import();
|
|
543
|
+
var ToyBrick = createLucideIcon("ToyBrick", [
|
|
544
|
+
["rect", { width: "18", height: "12", x: "3", y: "8", rx: "1", key: "158fvp" }],
|
|
545
|
+
["path", { d: "M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3", key: "s0042v" }],
|
|
546
|
+
["path", { d: "M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3", key: "9wmeh2" }]
|
|
547
|
+
]);
|
|
548
|
+
|
|
491
549
|
// ../../node_modules/lucide-react/dist/esm/icons/trash.js
|
|
492
550
|
init_react_import();
|
|
493
551
|
var Trash = createLucideIcon("Trash", [
|
|
@@ -518,6 +576,13 @@ var Undo2 = createLucideIcon("Undo2", [
|
|
|
518
576
|
["path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11", key: "f3b9sd" }]
|
|
519
577
|
]);
|
|
520
578
|
|
|
579
|
+
// ../../node_modules/lucide-react/dist/esm/icons/x.js
|
|
580
|
+
init_react_import();
|
|
581
|
+
var X = createLucideIcon("X", [
|
|
582
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
583
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
584
|
+
]);
|
|
585
|
+
|
|
521
586
|
// ../../node_modules/lucide-react/dist/esm/icons/zoom-in.js
|
|
522
587
|
init_react_import();
|
|
523
588
|
var ZoomIn = createLucideIcon("ZoomIn", [
|
|
@@ -1094,6 +1159,7 @@ var createAppStore = (initialAppStore) => create2()(
|
|
|
1094
1159
|
subscribeWithSelector2((set, get) => {
|
|
1095
1160
|
var _a, _b;
|
|
1096
1161
|
return __spreadProps(__spreadValues({
|
|
1162
|
+
instanceId: generateId(),
|
|
1097
1163
|
state: defaultAppState,
|
|
1098
1164
|
config: { components: {} },
|
|
1099
1165
|
componentState: {},
|
|
@@ -1114,6 +1180,11 @@ var createAppStore = (initialAppStore) => create2()(
|
|
|
1114
1180
|
history: createHistorySlice(set, get),
|
|
1115
1181
|
nodes: createNodesSlice(set, get),
|
|
1116
1182
|
permissions: createPermissionsSlice(set, get),
|
|
1183
|
+
getCurrentData: () => {
|
|
1184
|
+
var _a2;
|
|
1185
|
+
const s = get();
|
|
1186
|
+
return (_a2 = s.selectedItem) != null ? _a2 : s.state.data.root;
|
|
1187
|
+
},
|
|
1117
1188
|
getComponentConfig: (type) => {
|
|
1118
1189
|
var _a2;
|
|
1119
1190
|
const { config, selectedItem } = get();
|
|
@@ -1457,7 +1528,7 @@ var getZoomConfig = (uiViewport, frame, zoom) => {
|
|
|
1457
1528
|
const viewportHeight = uiViewport.height === "auto" ? frameHeight : uiViewport.height;
|
|
1458
1529
|
let rootHeight = 0;
|
|
1459
1530
|
let autoZoom = 1;
|
|
1460
|
-
if (uiViewport.width > frameWidth || viewportHeight > frameHeight) {
|
|
1531
|
+
if (typeof uiViewport.width === "number" && (uiViewport.width > frameWidth || viewportHeight > frameHeight)) {
|
|
1461
1532
|
const widthZoom = Math.min(frameWidth / uiViewport.width, 1);
|
|
1462
1533
|
const heightZoom = Math.min(frameHeight / viewportHeight, 1);
|
|
1463
1534
|
zoom = widthZoom;
|
|
@@ -1603,7 +1674,9 @@ export {
|
|
|
1603
1674
|
Copy,
|
|
1604
1675
|
CornerLeftUp,
|
|
1605
1676
|
EllipsisVertical,
|
|
1677
|
+
Expand,
|
|
1606
1678
|
Globe,
|
|
1679
|
+
Hammer,
|
|
1607
1680
|
Hash,
|
|
1608
1681
|
Heading1,
|
|
1609
1682
|
Heading2,
|
|
@@ -1620,12 +1693,15 @@ export {
|
|
|
1620
1693
|
List,
|
|
1621
1694
|
LockOpen,
|
|
1622
1695
|
Lock,
|
|
1696
|
+
Maximize2,
|
|
1697
|
+
Minimize2,
|
|
1623
1698
|
Minus,
|
|
1624
1699
|
Monitor,
|
|
1625
1700
|
PanelLeft,
|
|
1626
1701
|
PanelRight,
|
|
1627
1702
|
Plus,
|
|
1628
1703
|
Quote,
|
|
1704
|
+
RectangleEllipsis,
|
|
1629
1705
|
Redo2,
|
|
1630
1706
|
Search,
|
|
1631
1707
|
SlidersHorizontal,
|
|
@@ -1633,10 +1709,12 @@ export {
|
|
|
1633
1709
|
SquareCode,
|
|
1634
1710
|
Strikethrough,
|
|
1635
1711
|
Tablet,
|
|
1712
|
+
ToyBrick,
|
|
1636
1713
|
Trash,
|
|
1637
1714
|
Type,
|
|
1638
1715
|
Underline,
|
|
1639
1716
|
Undo2,
|
|
1717
|
+
X,
|
|
1640
1718
|
ZoomIn,
|
|
1641
1719
|
ZoomOut,
|
|
1642
1720
|
reorder,
|
|
@@ -1678,7 +1756,9 @@ lucide-react/dist/esm/icons/code.js:
|
|
|
1678
1756
|
lucide-react/dist/esm/icons/copy.js:
|
|
1679
1757
|
lucide-react/dist/esm/icons/corner-left-up.js:
|
|
1680
1758
|
lucide-react/dist/esm/icons/ellipsis-vertical.js:
|
|
1759
|
+
lucide-react/dist/esm/icons/expand.js:
|
|
1681
1760
|
lucide-react/dist/esm/icons/globe.js:
|
|
1761
|
+
lucide-react/dist/esm/icons/hammer.js:
|
|
1682
1762
|
lucide-react/dist/esm/icons/hash.js:
|
|
1683
1763
|
lucide-react/dist/esm/icons/heading-1.js:
|
|
1684
1764
|
lucide-react/dist/esm/icons/heading-2.js:
|
|
@@ -1693,12 +1773,15 @@ lucide-react/dist/esm/icons/link.js:
|
|
|
1693
1773
|
lucide-react/dist/esm/icons/list-ordered.js:
|
|
1694
1774
|
lucide-react/dist/esm/icons/lock-open.js:
|
|
1695
1775
|
lucide-react/dist/esm/icons/lock.js:
|
|
1776
|
+
lucide-react/dist/esm/icons/maximize-2.js:
|
|
1777
|
+
lucide-react/dist/esm/icons/minimize-2.js:
|
|
1696
1778
|
lucide-react/dist/esm/icons/minus.js:
|
|
1697
1779
|
lucide-react/dist/esm/icons/monitor.js:
|
|
1698
1780
|
lucide-react/dist/esm/icons/panel-left.js:
|
|
1699
1781
|
lucide-react/dist/esm/icons/panel-right.js:
|
|
1700
1782
|
lucide-react/dist/esm/icons/plus.js:
|
|
1701
1783
|
lucide-react/dist/esm/icons/quote.js:
|
|
1784
|
+
lucide-react/dist/esm/icons/rectangle-ellipsis.js:
|
|
1702
1785
|
lucide-react/dist/esm/icons/redo-2.js:
|
|
1703
1786
|
lucide-react/dist/esm/icons/search.js:
|
|
1704
1787
|
lucide-react/dist/esm/icons/sliders-horizontal.js:
|
|
@@ -1706,10 +1789,12 @@ lucide-react/dist/esm/icons/smartphone.js:
|
|
|
1706
1789
|
lucide-react/dist/esm/icons/square-code.js:
|
|
1707
1790
|
lucide-react/dist/esm/icons/strikethrough.js:
|
|
1708
1791
|
lucide-react/dist/esm/icons/tablet.js:
|
|
1792
|
+
lucide-react/dist/esm/icons/toy-brick.js:
|
|
1709
1793
|
lucide-react/dist/esm/icons/trash.js:
|
|
1710
1794
|
lucide-react/dist/esm/icons/type.js:
|
|
1711
1795
|
lucide-react/dist/esm/icons/underline.js:
|
|
1712
1796
|
lucide-react/dist/esm/icons/undo-2.js:
|
|
1797
|
+
lucide-react/dist/esm/icons/x.js:
|
|
1713
1798
|
lucide-react/dist/esm/icons/zoom-in.js:
|
|
1714
1799
|
lucide-react/dist/esm/icons/zoom-out.js:
|
|
1715
1800
|
lucide-react/dist/esm/lucide-react.js:
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAlignOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UNQOU2OI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
useHeadingOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MLTVJA2A.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useListOptions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NOJQSXRU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
AlignCenter,
|
|
12
12
|
AlignJustify,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
Strikethrough,
|
|
27
27
|
Underline,
|
|
28
28
|
useControlContext
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UUOBSXZR.mjs";
|
|
30
30
|
import {
|
|
31
31
|
get_class_name_factory_default
|
|
32
32
|
} from "./chunk-Y2EFNT5P.mjs";
|
|
@@ -142,7 +142,8 @@ var IconButton = ({
|
|
|
142
142
|
tabIndex,
|
|
143
143
|
newTab,
|
|
144
144
|
fullWidth,
|
|
145
|
-
title
|
|
145
|
+
title,
|
|
146
|
+
suppressHydrationWarning
|
|
146
147
|
}) => {
|
|
147
148
|
const [loading, setLoading] = useState(false);
|
|
148
149
|
const ElementType = href ? "a" : "button";
|
|
@@ -168,6 +169,7 @@ var IconButton = ({
|
|
|
168
169
|
rel: newTab ? "noreferrer" : void 0,
|
|
169
170
|
href,
|
|
170
171
|
title,
|
|
172
|
+
suppressHydrationWarning,
|
|
171
173
|
children: [
|
|
172
174
|
/* @__PURE__ */ jsx3("span", { className: getClassName3("title"), children: title }),
|
|
173
175
|
children,
|
|
@@ -347,7 +349,7 @@ function AlignSelectFallback() {
|
|
|
347
349
|
// components/RichTextMenu/controls/AlignSelect/index.tsx
|
|
348
350
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
349
351
|
var AlignSelectLoaded = lazy(
|
|
350
|
-
() => import("./loaded-
|
|
352
|
+
() => import("./loaded-6QT4HD2O.mjs").then((m) => ({
|
|
351
353
|
default: m.AlignSelectLoaded
|
|
352
354
|
}))
|
|
353
355
|
);
|
|
@@ -578,7 +580,7 @@ function HeadingSelectFallback() {
|
|
|
578
580
|
// components/RichTextMenu/controls/HeadingSelect/index.tsx
|
|
579
581
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
580
582
|
var HeadingSelectLoaded = lazy2(
|
|
581
|
-
() => import("./loaded-
|
|
583
|
+
() => import("./loaded-ZVPBQVNE.mjs").then((m) => ({
|
|
582
584
|
default: m.HeadingSelectLoaded
|
|
583
585
|
}))
|
|
584
586
|
);
|
|
@@ -610,7 +612,7 @@ function ListSelectFallback() {
|
|
|
610
612
|
// components/RichTextMenu/controls/ListSelect/index.tsx
|
|
611
613
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
612
614
|
var ListSelectLoaded = lazy3(
|
|
613
|
-
() => import("./loaded-
|
|
615
|
+
() => import("./loaded-2MNXXPJP.mjs").then((m) => ({
|
|
614
616
|
default: m.ListSelectLoaded
|
|
615
617
|
}))
|
|
616
618
|
);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LoadedRichTextMenuInner
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-V7333LON.mjs";
|
|
4
|
+
import "./chunk-UNQOU2OI.mjs";
|
|
5
|
+
import "./chunk-MLTVJA2A.mjs";
|
|
6
|
+
import "./chunk-NOJQSXRU.mjs";
|
|
7
|
+
import "./chunk-UUOBSXZR.mjs";
|
|
8
8
|
import "./chunk-QBGM4ELA.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-72SA22GI.mjs";
|
|
10
10
|
import "./chunk-Y2EFNT5P.mjs";
|
|
11
11
|
import "./chunk-NLUHDYVR.mjs";
|
|
12
12
|
import {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as History, g as Permissions, c as ComponentData, C as Config, U as UserGenerics, F as Fields, a as PuckAction, h as RootDataWithProps, i as ResolveDataTrigger, j as Plugin, k as Overrides, V as Viewports, I as IframeConfig, l as UiState, m as ComponentConfig, A as AppState, M as Metadata, n as FieldTransforms, o as RichtextField } from './actions-
|
|
1
|
+
import { H as History, g as Permissions, c as ComponentData, C as Config, U as UserGenerics, F as Fields, a as PuckAction, h as RootDataWithProps, i as ResolveDataTrigger, j as Plugin, k as Overrides, V as Viewports, I as IframeConfig, l as UiState, m as ComponentConfig, A as AppState, M as Metadata, n as FieldTransforms, o as RichtextField } from './actions-tsxxcX1z.js';
|
|
2
2
|
import { Editor } from '@tiptap/react';
|
|
3
3
|
|
|
4
4
|
type HistorySlice<D = any> = {
|
|
@@ -73,6 +73,7 @@ type ComponentState = Record<string, {
|
|
|
73
73
|
loadingCount: number;
|
|
74
74
|
}>;
|
|
75
75
|
type AppStore<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
76
|
+
instanceId: string;
|
|
76
77
|
state: G["UserAppState"];
|
|
77
78
|
dispatch: (action: PuckAction) => void;
|
|
78
79
|
config: UserConfig;
|
|
@@ -95,6 +96,7 @@ type AppStore<UserConfig extends Config = Config, G extends UserGenerics<UserCon
|
|
|
95
96
|
setStatus: (status: Status) => void;
|
|
96
97
|
iframe: IframeConfig;
|
|
97
98
|
selectedItem?: G["UserData"]["content"][0] | null;
|
|
99
|
+
getCurrentData: () => G["UserData"]["content"][0] | G["UserData"]["root"];
|
|
98
100
|
setUi: (ui: Partial<UiState>, recordHistory?: boolean) => void;
|
|
99
101
|
getComponentConfig: (type?: string) => ComponentConfig | null | undefined;
|
|
100
102
|
onAction?: (action: PuckAction, newState: AppState, state: AppState) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as History, g as Permissions, c as ComponentData, C as Config, U as UserGenerics, F as Fields, a as PuckAction, h as RootDataWithProps, i as ResolveDataTrigger, j as Plugin, k as Overrides, V as Viewports, I as IframeConfig, l as UiState, m as ComponentConfig, A as AppState, M as Metadata, n as FieldTransforms, o as RichtextField } from './actions-
|
|
1
|
+
import { H as History, g as Permissions, c as ComponentData, C as Config, U as UserGenerics, F as Fields, a as PuckAction, h as RootDataWithProps, i as ResolveDataTrigger, j as Plugin, k as Overrides, V as Viewports, I as IframeConfig, l as UiState, m as ComponentConfig, A as AppState, M as Metadata, n as FieldTransforms, o as RichtextField } from './actions-tsxxcX1z.mjs';
|
|
2
2
|
import { Editor } from '@tiptap/react';
|
|
3
3
|
|
|
4
4
|
type HistorySlice<D = any> = {
|
|
@@ -73,6 +73,7 @@ type ComponentState = Record<string, {
|
|
|
73
73
|
loadingCount: number;
|
|
74
74
|
}>;
|
|
75
75
|
type AppStore<UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>> = {
|
|
76
|
+
instanceId: string;
|
|
76
77
|
state: G["UserAppState"];
|
|
77
78
|
dispatch: (action: PuckAction) => void;
|
|
78
79
|
config: UserConfig;
|
|
@@ -95,6 +96,7 @@ type AppStore<UserConfig extends Config = Config, G extends UserGenerics<UserCon
|
|
|
95
96
|
setStatus: (status: Status) => void;
|
|
96
97
|
iframe: IframeConfig;
|
|
97
98
|
selectedItem?: G["UserData"]["content"][0] | null;
|
|
99
|
+
getCurrentData: () => G["UserData"]["content"][0] | G["UserData"]["root"];
|
|
98
100
|
setUi: (ui: Partial<UiState>, recordHistory?: boolean) => void;
|
|
99
101
|
getComponentConfig: (type?: string) => ComponentConfig | null | undefined;
|
|
100
102
|
onAction?: (action: PuckAction, newState: AppState, state: AppState) => void;
|