@measured/puck 0.17.0-canary.fe9321f → 0.17.1-canary.3406b01

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.
Files changed (3) hide show
  1. package/dist/index.js +349 -281
  2. package/dist/index.mjs +173 -105
  3. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -289,7 +289,7 @@ init_react_import();
289
289
  var styles_module_default2 = { "InputWrapper": "_InputWrapper_1l5m8_1", "Input": "_Input_1l5m8_1", "Input-label": "_Input-label_1l5m8_26", "Input-labelIcon": "_Input-labelIcon_1l5m8_35", "Input-disabledIcon": "_Input-disabledIcon_1l5m8_42", "Input-input": "_Input-input_1l5m8_47", "Input--readOnly": "_Input--readOnly_1l5m8_91", "Input-radioGroupItems": "_Input-radioGroupItems_1l5m8_102", "Input-radio": "_Input-radio_1l5m8_102", "Input-radioInner": "_Input-radioInner_1l5m8_119", "Input-radioInput": "_Input-radioInput_1l5m8_164" };
290
290
 
291
291
  // components/AutoField/index.tsx
292
- var import_react15 = require("react");
292
+ var import_react16 = require("react");
293
293
 
294
294
  // components/AutoField/fields/index.tsx
295
295
  init_react_import();
@@ -306,6 +306,17 @@ init_react_import();
306
306
 
307
307
  // ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
308
308
  init_react_import();
309
+ var import_react3 = require("react");
310
+
311
+ // ../../node_modules/lucide-react/dist/esm/shared/src/utils.js
312
+ init_react_import();
313
+ var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
314
+ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
315
+ return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
316
+ }).join(" ").trim();
317
+
318
+ // ../../node_modules/lucide-react/dist/esm/Icon.js
319
+ init_react_import();
309
320
  var import_react2 = require("react");
310
321
 
311
322
  // ../../node_modules/lucide-react/dist/esm/defaultAttributes.js
@@ -322,41 +333,61 @@ var defaultAttributes = {
322
333
  strokeLinejoin: "round"
323
334
  };
324
335
 
336
+ // ../../node_modules/lucide-react/dist/esm/Icon.js
337
+ var Icon = (0, import_react2.forwardRef)(
338
+ (_a, ref) => {
339
+ var _b = _a, {
340
+ color = "currentColor",
341
+ size = 24,
342
+ strokeWidth = 2,
343
+ absoluteStrokeWidth,
344
+ className = "",
345
+ children,
346
+ iconNode
347
+ } = _b, rest = __objRest(_b, [
348
+ "color",
349
+ "size",
350
+ "strokeWidth",
351
+ "absoluteStrokeWidth",
352
+ "className",
353
+ "children",
354
+ "iconNode"
355
+ ]);
356
+ return (0, import_react2.createElement)(
357
+ "svg",
358
+ __spreadValues(__spreadProps(__spreadValues({
359
+ ref
360
+ }, defaultAttributes), {
361
+ width: size,
362
+ height: size,
363
+ stroke: color,
364
+ strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
365
+ className: mergeClasses("lucide", className)
366
+ }), rest),
367
+ [
368
+ ...iconNode.map(([tag, attrs]) => (0, import_react2.createElement)(tag, attrs)),
369
+ ...Array.isArray(children) ? children : [children]
370
+ ]
371
+ );
372
+ }
373
+ );
374
+
325
375
  // ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
326
- var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim();
327
376
  var createLucideIcon = (iconName, iconNode) => {
328
- const Component = (0, import_react2.forwardRef)(
377
+ const Component = (0, import_react3.forwardRef)(
329
378
  (_a, ref) => {
330
- var _b = _a, { color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = "", children } = _b, rest = __objRest(_b, ["color", "size", "strokeWidth", "absoluteStrokeWidth", "className", "children"]);
331
- return (0, import_react2.createElement)(
332
- "svg",
333
- __spreadValues(__spreadProps(__spreadValues({
334
- ref
335
- }, defaultAttributes), {
336
- width: size,
337
- height: size,
338
- stroke: color,
339
- strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
340
- className: ["lucide", `lucide-${toKebabCase(iconName)}`, className].join(" ")
341
- }), rest),
342
- [
343
- ...iconNode.map(([tag, attrs]) => (0, import_react2.createElement)(tag, attrs)),
344
- ...Array.isArray(children) ? children : [children]
345
- ]
346
- );
379
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
380
+ return (0, import_react3.createElement)(Icon, __spreadValues({
381
+ ref,
382
+ iconNode,
383
+ className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className)
384
+ }, props));
347
385
  }
348
386
  );
349
387
  Component.displayName = `${iconName}`;
350
388
  return Component;
351
389
  };
352
390
 
353
- // ../../node_modules/lucide-react/dist/esm/icons/check-circle.js
354
- init_react_import();
355
- var CheckCircle = createLucideIcon("CheckCircle", [
356
- ["path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14", key: "g774vq" }],
357
- ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
358
- ]);
359
-
360
391
  // ../../node_modules/lucide-react/dist/esm/icons/chevron-down.js
361
392
  init_react_import();
362
393
  var ChevronDown = createLucideIcon("ChevronDown", [
@@ -373,6 +404,13 @@ var ChevronRight = createLucideIcon("ChevronRight", [
373
404
  init_react_import();
374
405
  var ChevronUp = createLucideIcon("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
375
406
 
407
+ // ../../node_modules/lucide-react/dist/esm/icons/circle-check-big.js
408
+ init_react_import();
409
+ var CircleCheckBig = createLucideIcon("CircleCheckBig", [
410
+ ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
411
+ ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
412
+ ]);
413
+
376
414
  // ../../node_modules/lucide-react/dist/esm/icons/copy.js
377
415
  init_react_import();
378
416
  var Copy = createLucideIcon("Copy", [
@@ -380,6 +418,14 @@ var Copy = createLucideIcon("Copy", [
380
418
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
381
419
  ]);
382
420
 
421
+ // ../../node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.js
422
+ init_react_import();
423
+ var EllipsisVertical = createLucideIcon("EllipsisVertical", [
424
+ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
425
+ ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
426
+ ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
427
+ ]);
428
+
383
429
  // ../../node_modules/lucide-react/dist/esm/icons/globe.js
384
430
  init_react_import();
385
431
  var Globe = createLucideIcon("Globe", [
@@ -403,12 +449,24 @@ var Layers = createLucideIcon("Layers", [
403
449
  [
404
450
  "path",
405
451
  {
406
- d: "m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",
407
- key: "8b97xw"
452
+ d: "M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",
453
+ key: "zw3jo"
408
454
  }
409
455
  ],
410
- ["path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65", key: "dd6zsq" }],
411
- ["path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65", key: "ep9fru" }]
456
+ [
457
+ "path",
458
+ {
459
+ d: "M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",
460
+ key: "1wduqc"
461
+ }
462
+ ],
463
+ [
464
+ "path",
465
+ {
466
+ d: "M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",
467
+ key: "kqbvx6"
468
+ }
469
+ ]
412
470
  ]);
413
471
 
414
472
  // ../../node_modules/lucide-react/dist/esm/icons/layout-grid.js
@@ -430,12 +488,19 @@ var Link = createLucideIcon("Link", [
430
488
  // ../../node_modules/lucide-react/dist/esm/icons/list.js
431
489
  init_react_import();
432
490
  var List = createLucideIcon("List", [
433
- ["line", { x1: "8", x2: "21", y1: "6", y2: "6", key: "7ey8pc" }],
434
- ["line", { x1: "8", x2: "21", y1: "12", y2: "12", key: "rjfblc" }],
435
- ["line", { x1: "8", x2: "21", y1: "18", y2: "18", key: "c3b1m8" }],
436
- ["line", { x1: "3", x2: "3.01", y1: "6", y2: "6", key: "1g7gq3" }],
437
- ["line", { x1: "3", x2: "3.01", y1: "12", y2: "12", key: "1pjlvk" }],
438
- ["line", { x1: "3", x2: "3.01", y1: "18", y2: "18", key: "28t2mc" }]
491
+ ["path", { d: "M3 12h.01", key: "nlz23k" }],
492
+ ["path", { d: "M3 18h.01", key: "1tta3j" }],
493
+ ["path", { d: "M3 6h.01", key: "1rqtza" }],
494
+ ["path", { d: "M8 12h13", key: "1za7za" }],
495
+ ["path", { d: "M8 18h13", key: "1lx6n3" }],
496
+ ["path", { d: "M8 6h13", key: "ik3vkj" }]
497
+ ]);
498
+
499
+ // ../../node_modules/lucide-react/dist/esm/icons/lock-open.js
500
+ init_react_import();
501
+ var LockOpen = createLucideIcon("LockOpen", [
502
+ ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
503
+ ["path", { d: "M7 11V7a5 5 0 0 1 9.9-1", key: "1mm8w8" }]
439
504
  ]);
440
505
 
441
506
  // ../../node_modules/lucide-react/dist/esm/icons/lock.js
@@ -453,26 +518,18 @@ var Monitor = createLucideIcon("Monitor", [
453
518
  ["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
454
519
  ]);
455
520
 
456
- // ../../node_modules/lucide-react/dist/esm/icons/more-vertical.js
457
- init_react_import();
458
- var MoreVertical = createLucideIcon("MoreVertical", [
459
- ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
460
- ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
461
- ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
462
- ]);
463
-
464
521
  // ../../node_modules/lucide-react/dist/esm/icons/panel-left.js
465
522
  init_react_import();
466
523
  var PanelLeft = createLucideIcon("PanelLeft", [
467
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
468
- ["line", { x1: "9", x2: "9", y1: "3", y2: "21", key: "13tij5" }]
524
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
525
+ ["path", { d: "M9 3v18", key: "fh3hqa" }]
469
526
  ]);
470
527
 
471
528
  // ../../node_modules/lucide-react/dist/esm/icons/panel-right.js
472
529
  init_react_import();
473
530
  var PanelRight = createLucideIcon("PanelRight", [
474
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
475
- ["line", { x1: "15", x2: "15", y1: "3", y2: "21", key: "1hpv9i" }]
531
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
532
+ ["path", { d: "M15 3v18", key: "14nvp0" }]
476
533
  ]);
477
534
 
478
535
  // ../../node_modules/lucide-react/dist/esm/icons/plus.js
@@ -486,7 +543,7 @@ var Plus = createLucideIcon("Plus", [
486
543
  init_react_import();
487
544
  var Redo2 = createLucideIcon("Redo2", [
488
545
  ["path", { d: "m15 14 5-5-5-5", key: "12vg1m" }],
489
- ["path", { d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13", key: "19mnr4" }]
546
+ ["path", { d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13", key: "6uklza" }]
490
547
  ]);
491
548
 
492
549
  // ../../node_modules/lucide-react/dist/esm/icons/search.js
@@ -544,14 +601,7 @@ var Type = createLucideIcon("Type", [
544
601
  init_react_import();
545
602
  var Undo2 = createLucideIcon("Undo2", [
546
603
  ["path", { d: "M9 14 4 9l5-5", key: "102s5s" }],
547
- ["path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11", key: "llx8ln" }]
548
- ]);
549
-
550
- // ../../node_modules/lucide-react/dist/esm/icons/unlock.js
551
- init_react_import();
552
- var Unlock = createLucideIcon("Unlock", [
553
- ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
554
- ["path", { d: "M7 11V7a5 5 0 0 1 9.9-1", key: "1mm8w8" }]
604
+ ["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" }]
555
605
  ]);
556
606
 
557
607
  // ../../node_modules/lucide-react/dist/esm/icons/zoom-in.js
@@ -576,7 +626,7 @@ init_react_import();
576
626
 
577
627
  // components/IconButton/IconButton.tsx
578
628
  init_react_import();
579
- var import_react3 = require("react");
629
+ var import_react4 = require("react");
580
630
 
581
631
  // css-module:/home/runner/work/puck/puck/packages/core/components/IconButton/IconButton.module.css#css-module
582
632
  init_react_import();
@@ -653,7 +703,7 @@ var IconButton = ({
653
703
  fullWidth,
654
704
  title
655
705
  }) => {
656
- const [loading, setLoading] = (0, import_react3.useState)(false);
706
+ const [loading, setLoading] = (0, import_react4.useState)(false);
657
707
  const ElementType = href ? "a" : "button";
658
708
  const el = /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
659
709
  ElementType,
@@ -697,7 +747,7 @@ var import_dnd = require("@measured/dnd");
697
747
 
698
748
  // components/Puck/context.tsx
699
749
  init_react_import();
700
- var import_react6 = require("react");
750
+ var import_react7 = require("react");
701
751
 
702
752
  // lib/get-item.ts
703
753
  init_react_import();
@@ -742,7 +792,7 @@ var import_ua_parser_js = require("ua-parser-js");
742
792
 
743
793
  // lib/use-resolved-permissions.ts
744
794
  init_react_import();
745
- var import_react4 = require("react");
795
+ var import_react5 = require("react");
746
796
 
747
797
  // lib/flatten-data.ts
748
798
  init_react_import();
@@ -767,9 +817,9 @@ var getChanged = (newItem, oldItem) => {
767
817
 
768
818
  // lib/use-resolved-permissions.ts
769
819
  var useResolvedPermissions = (config, appState, globalPermissions, setComponentLoading, unsetComponentLoading) => {
770
- const [cache3, setCache] = (0, import_react4.useState)({});
771
- const [resolvedPermissions, setResolvedPermissions] = (0, import_react4.useState)({});
772
- const resolveDataForItem = (0, import_react4.useCallback)(
820
+ const [cache3, setCache] = (0, import_react5.useState)({});
821
+ const [resolvedPermissions, setResolvedPermissions] = (0, import_react5.useState)({});
822
+ const resolveDataForItem = (0, import_react5.useCallback)(
773
823
  (item, force = false) => __async(void 0, null, function* () {
774
824
  var _a, _b, _c;
775
825
  const componentConfig = item.type === "root" ? config.root : config.components[item.type];
@@ -816,7 +866,7 @@ var useResolvedPermissions = (config, appState, globalPermissions, setComponentL
816
866
  force
817
867
  );
818
868
  };
819
- const resolvePermissions = (0, import_react4.useCallback)(
869
+ const resolvePermissions = (0, import_react5.useCallback)(
820
870
  (..._0) => __async(void 0, [..._0], function* ({ item, type, root } = {}, force = false) {
821
871
  if (item) {
822
872
  yield resolveDataForItem(item, force);
@@ -835,16 +885,16 @@ var useResolvedPermissions = (config, appState, globalPermissions, setComponentL
835
885
  }),
836
886
  [config, appState]
837
887
  );
838
- const refreshPermissions = (0, import_react4.useCallback)(
888
+ const refreshPermissions = (0, import_react5.useCallback)(
839
889
  (params) => __async(void 0, null, function* () {
840
890
  resolvePermissions(params, true);
841
891
  }),
842
892
  [config, appState]
843
893
  );
844
- (0, import_react4.useEffect)(() => {
894
+ (0, import_react5.useEffect)(() => {
845
895
  resolvePermissions();
846
896
  }, [config, appState.data]);
847
- const getPermissions = (0, import_react4.useCallback)(
897
+ const getPermissions = (0, import_react5.useCallback)(
848
898
  ({ item, type, root } = {}) => {
849
899
  if (item) {
850
900
  const componentConfig = config.components[item.type];
@@ -872,7 +922,7 @@ var useResolvedPermissions = (config, appState, globalPermissions, setComponentL
872
922
 
873
923
  // lib/use-resolved-data.ts
874
924
  init_react_import();
875
- var import_react5 = require("react");
925
+ var import_react6 = require("react");
876
926
 
877
927
  // lib/resolve-component-data.ts
878
928
  init_react_import();
@@ -969,12 +1019,12 @@ function resolveRootData(data, config) {
969
1019
 
970
1020
  // lib/use-resolved-data.ts
971
1021
  var useResolvedData = (appState, config, dispatch, setComponentLoading, unsetComponentLoading, refreshPermissions) => {
972
- const [{ resolverKey, newAppState }, setResolverState] = (0, import_react5.useState)({
1022
+ const [{ resolverKey, newAppState }, setResolverState] = (0, import_react6.useState)({
973
1023
  resolverKey: 0,
974
1024
  newAppState: appState
975
1025
  });
976
1026
  const deferredSetStates = {};
977
- const _setComponentLoading = (0, import_react5.useCallback)(
1027
+ const _setComponentLoading = (0, import_react6.useCallback)(
978
1028
  (id, loading, defer2 = 0) => {
979
1029
  if (deferredSetStates[id]) {
980
1030
  clearTimeout(deferredSetStates[id]);
@@ -1049,10 +1099,10 @@ var useResolvedData = (appState, config, dispatch, setComponentLoading, unsetCom
1049
1099
  });
1050
1100
  yield Promise.all(promises);
1051
1101
  });
1052
- (0, import_react5.useEffect)(() => {
1102
+ (0, import_react6.useEffect)(() => {
1053
1103
  runResolvers();
1054
1104
  }, [resolverKey]);
1055
- const resolveData = (0, import_react5.useCallback)((newAppState2 = appState) => {
1105
+ const resolveData = (0, import_react6.useCallback)((newAppState2 = appState) => {
1056
1106
  setResolverState((curr) => ({
1057
1107
  resolverKey: curr.resolverKey + 1,
1058
1108
  newAppState: newAppState2
@@ -1112,18 +1162,18 @@ var defaultContext = {
1112
1162
  getPermissions: () => ({}),
1113
1163
  refreshPermissions: () => null
1114
1164
  };
1115
- var appContext = (0, import_react6.createContext)(defaultContext);
1165
+ var appContext = (0, import_react7.createContext)(defaultContext);
1116
1166
  var AppProvider = ({
1117
1167
  children,
1118
1168
  value
1119
1169
  }) => {
1120
- const [zoomConfig, setZoomConfig] = (0, import_react6.useState)(defaultContext.zoomConfig);
1121
- const [status, setStatus] = (0, import_react6.useState)("LOADING");
1122
- (0, import_react6.useEffect)(() => {
1170
+ const [zoomConfig, setZoomConfig] = (0, import_react7.useState)(defaultContext.zoomConfig);
1171
+ const [status, setStatus] = (0, import_react7.useState)("LOADING");
1172
+ (0, import_react7.useEffect)(() => {
1123
1173
  setStatus("MOUNTED");
1124
1174
  }, []);
1125
- const [safariFallbackMode, setSafariFallbackMode] = (0, import_react6.useState)(false);
1126
- (0, import_react6.useEffect)(() => {
1175
+ const [safariFallbackMode, setSafariFallbackMode] = (0, import_react7.useState)(false);
1176
+ (0, import_react7.useEffect)(() => {
1127
1177
  var _a, _b, _c;
1128
1178
  const ua = new import_ua_parser_js.UAParser(navigator.userAgent);
1129
1179
  const { browser } = ua.getResult();
@@ -1141,7 +1191,7 @@ See https://github.com/measuredco/puck/issues/411 for more information. This mes
1141
1191
  }
1142
1192
  }, []);
1143
1193
  const selectedItem = value.state.ui.itemSelector ? getItem(value.state.ui.itemSelector, value.state.data) : void 0;
1144
- const [componentState, setComponentState] = (0, import_react6.useState)({});
1194
+ const [componentState, setComponentState] = (0, import_react7.useState)({});
1145
1195
  const setComponentLoading = (id) => {
1146
1196
  setComponentState((prev) => {
1147
1197
  var _a;
@@ -1198,7 +1248,7 @@ See https://github.com/measuredco/puck/issues/411 for more information. This mes
1198
1248
  );
1199
1249
  };
1200
1250
  function useAppContext() {
1201
- const mainContext = (0, import_react6.useContext)(appContext);
1251
+ const mainContext = (0, import_react7.useContext)(appContext);
1202
1252
  return __spreadProps(__spreadValues({}, mainContext), {
1203
1253
  // Helpers
1204
1254
  setUi: (ui, recordHistory) => {
@@ -1302,7 +1352,7 @@ var Draggable = ({
1302
1352
  };
1303
1353
 
1304
1354
  // components/AutoField/fields/ArrayField/index.tsx
1305
- var import_react7 = require("react");
1355
+ var import_react8 = require("react");
1306
1356
 
1307
1357
  // components/DragIcon/index.tsx
1308
1358
  init_react_import();
@@ -1353,11 +1403,11 @@ var ArrayField = ({
1353
1403
  }),
1354
1404
  openId: ""
1355
1405
  };
1356
- const [localState, setLocalState] = (0, import_react7.useState)({ arrayState, value });
1357
- (0, import_react7.useEffect)(() => {
1406
+ const [localState, setLocalState] = (0, import_react8.useState)({ arrayState, value });
1407
+ (0, import_react8.useEffect)(() => {
1358
1408
  setLocalState({ arrayState, value });
1359
1409
  }, [value, state.ui.arrayState[id]]);
1360
- const mapArrayStateToUi = (0, import_react7.useCallback)(
1410
+ const mapArrayStateToUi = (0, import_react8.useCallback)(
1361
1411
  (partialArrayState) => {
1362
1412
  return {
1363
1413
  arrayState: __spreadProps(__spreadValues({}, state.ui.arrayState), {
@@ -1367,13 +1417,13 @@ var ArrayField = ({
1367
1417
  },
1368
1418
  [arrayState]
1369
1419
  );
1370
- const getHighestIndex = (0, import_react7.useCallback)(() => {
1420
+ const getHighestIndex = (0, import_react8.useCallback)(() => {
1371
1421
  return arrayState.items.reduce(
1372
1422
  (acc, item) => item._originalIndex > acc ? item._originalIndex : acc,
1373
1423
  -1
1374
1424
  );
1375
1425
  }, [arrayState]);
1376
- const regenerateArrayState = (0, import_react7.useCallback)(
1426
+ const regenerateArrayState = (0, import_react8.useCallback)(
1377
1427
  (value2) => {
1378
1428
  let highestIndex = getHighestIndex();
1379
1429
  const newItems = Array.from(value2 || []).map((item, idx) => {
@@ -1392,12 +1442,12 @@ var ArrayField = ({
1392
1442
  },
1393
1443
  [arrayState]
1394
1444
  );
1395
- (0, import_react7.useEffect)(() => {
1445
+ (0, import_react8.useEffect)(() => {
1396
1446
  if (arrayState.items.length > 0) {
1397
1447
  setUi(mapArrayStateToUi(arrayState));
1398
1448
  }
1399
1449
  }, []);
1400
- const [hovering, setHovering] = (0, import_react7.useState)(false);
1450
+ const [hovering, setHovering] = (0, import_react8.useState)(false);
1401
1451
  const forceReadOnly = getPermissions({ item: selectedItem }).edit === false;
1402
1452
  if (field.type !== "array" || !field.arrayFields) {
1403
1453
  return null;
@@ -1670,11 +1720,11 @@ var DefaultField = ({
1670
1720
 
1671
1721
  // components/AutoField/fields/ExternalField/index.tsx
1672
1722
  init_react_import();
1673
- var import_react11 = require("react");
1723
+ var import_react12 = require("react");
1674
1724
 
1675
1725
  // components/ExternalInput/index.tsx
1676
1726
  init_react_import();
1677
- var import_react10 = require("react");
1727
+ var import_react11 = require("react");
1678
1728
 
1679
1729
  // css-module:/home/runner/work/puck/puck/packages/core/components/ExternalInput/styles.module.css#css-module
1680
1730
  init_react_import();
@@ -1682,7 +1732,7 @@ var styles_module_default6 = { "ExternalInput-actions": "_ExternalInput-actions_
1682
1732
 
1683
1733
  // components/Modal/index.tsx
1684
1734
  init_react_import();
1685
- var import_react8 = require("react");
1735
+ var import_react9 = require("react");
1686
1736
 
1687
1737
  // css-module:/home/runner/work/puck/puck/packages/core/components/Modal/styles.module.css#css-module
1688
1738
  init_react_import();
@@ -1697,8 +1747,8 @@ var Modal = ({
1697
1747
  onClose,
1698
1748
  isOpen
1699
1749
  }) => {
1700
- const [rootEl, setRootEl] = (0, import_react8.useState)(null);
1701
- (0, import_react8.useEffect)(() => {
1750
+ const [rootEl, setRootEl] = (0, import_react9.useState)(null);
1751
+ (0, import_react9.useEffect)(() => {
1702
1752
  setRootEl(document.getElementById("puck-portal-root"));
1703
1753
  }, []);
1704
1754
  if (!rootEl) {
@@ -1745,7 +1795,7 @@ init_react_import();
1745
1795
 
1746
1796
  // components/Button/Button.tsx
1747
1797
  init_react_import();
1748
- var import_react9 = require("react");
1798
+ var import_react10 = require("react");
1749
1799
 
1750
1800
  // css-module:/home/runner/work/puck/puck/packages/core/components/Button/Button.module.css#css-module
1751
1801
  init_react_import();
@@ -1768,8 +1818,8 @@ var Button = ({
1768
1818
  size = "medium",
1769
1819
  loading: loadingProp = false
1770
1820
  }) => {
1771
- const [loading, setLoading] = (0, import_react9.useState)(loadingProp);
1772
- (0, import_react9.useEffect)(() => setLoading(loadingProp), [loadingProp]);
1821
+ const [loading, setLoading] = (0, import_react10.useState)(loadingProp);
1822
+ (0, import_react10.useEffect)(() => setLoading(loadingProp), [loadingProp]);
1773
1823
  const ElementType = href ? "a" : type ? "button" : "span";
1774
1824
  const el = /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1775
1825
  ElementType,
@@ -1822,28 +1872,28 @@ var ExternalInput = ({
1822
1872
  mapRow = (val) => val,
1823
1873
  filterFields
1824
1874
  } = field || {};
1825
- const [data, setData] = (0, import_react10.useState)([]);
1826
- const [isOpen, setOpen] = (0, import_react10.useState)(false);
1827
- const [isLoading, setIsLoading] = (0, import_react10.useState)(true);
1875
+ const [data, setData] = (0, import_react11.useState)([]);
1876
+ const [isOpen, setOpen] = (0, import_react11.useState)(false);
1877
+ const [isLoading, setIsLoading] = (0, import_react11.useState)(true);
1828
1878
  const hasFilterFields = !!filterFields;
1829
- const [filters, setFilters] = (0, import_react10.useState)(field.initialFilters || {});
1830
- const [filtersToggled, setFiltersToggled] = (0, import_react10.useState)(hasFilterFields);
1831
- const mappedData = (0, import_react10.useMemo)(() => {
1879
+ const [filters, setFilters] = (0, import_react11.useState)(field.initialFilters || {});
1880
+ const [filtersToggled, setFiltersToggled] = (0, import_react11.useState)(hasFilterFields);
1881
+ const mappedData = (0, import_react11.useMemo)(() => {
1832
1882
  return data.map(mapRow);
1833
1883
  }, [data]);
1834
- const keys = (0, import_react10.useMemo)(() => {
1884
+ const keys = (0, import_react11.useMemo)(() => {
1835
1885
  const validKeys = /* @__PURE__ */ new Set();
1836
1886
  for (const item of mappedData) {
1837
1887
  for (const key of Object.keys(item)) {
1838
- if (typeof item[key] === "string" || typeof item[key] === "number" || (0, import_react10.isValidElement)(item[key])) {
1888
+ if (typeof item[key] === "string" || typeof item[key] === "number" || (0, import_react11.isValidElement)(item[key])) {
1839
1889
  validKeys.add(key);
1840
1890
  }
1841
1891
  }
1842
1892
  }
1843
1893
  return Array.from(validKeys);
1844
1894
  }, [mappedData]);
1845
- const [searchQuery, setSearchQuery] = (0, import_react10.useState)(field.initialQuery || "");
1846
- const search = (0, import_react10.useCallback)(
1895
+ const [searchQuery, setSearchQuery] = (0, import_react11.useState)(field.initialQuery || "");
1896
+ const search = (0, import_react11.useCallback)(
1847
1897
  (query, filters2) => __async(void 0, null, function* () {
1848
1898
  setIsLoading(true);
1849
1899
  const cacheKey = `${id}-${query}-${JSON.stringify(filters2)}`;
@@ -1856,7 +1906,7 @@ var ExternalInput = ({
1856
1906
  }),
1857
1907
  [id, field]
1858
1908
  );
1859
- const Footer = (0, import_react10.useCallback)(
1909
+ const Footer = (0, import_react11.useCallback)(
1860
1910
  (props) => field.renderFooter ? field.renderFooter(props) : /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { className: getClassNameModal("footer"), children: [
1861
1911
  props.items.length,
1862
1912
  " result",
@@ -1864,7 +1914,7 @@ var ExternalInput = ({
1864
1914
  ] }),
1865
1915
  [field.renderFooter]
1866
1916
  );
1867
- (0, import_react10.useEffect)(() => {
1917
+ (0, import_react11.useEffect)(() => {
1868
1918
  search(searchQuery, filters);
1869
1919
  }, []);
1870
1920
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
@@ -1900,7 +1950,7 @@ var ExternalInput = ({
1900
1950
  onChange(null);
1901
1951
  },
1902
1952
  disabled: readOnly,
1903
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Unlock, { size: 16 })
1953
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(LockOpen, { size: 16 })
1904
1954
  }
1905
1955
  )
1906
1956
  ] }),
@@ -2027,7 +2077,7 @@ var ExternalField = ({
2027
2077
  var _a, _b, _c;
2028
2078
  const validField = field;
2029
2079
  const deprecatedField = field;
2030
- (0, import_react11.useEffect)(() => {
2080
+ (0, import_react12.useEffect)(() => {
2031
2081
  if (deprecatedField.adaptor) {
2032
2082
  console.error(
2033
2083
  "Warning: The `adaptor` API is deprecated. Please use updated APIs on the `external` field instead. This will be a breaking change in a future release."
@@ -2062,7 +2112,7 @@ var ExternalField = ({
2062
2112
 
2063
2113
  // components/AutoField/fields/RadioField/index.tsx
2064
2114
  init_react_import();
2065
- var import_react12 = require("react");
2115
+ var import_react13 = require("react");
2066
2116
 
2067
2117
  // lib/safe-json-parse.ts
2068
2118
  init_react_import();
@@ -2088,7 +2138,7 @@ var RadioField = ({
2088
2138
  label,
2089
2139
  Label
2090
2140
  }) => {
2091
- const flatOptions = (0, import_react12.useMemo)(
2141
+ const flatOptions = (0, import_react13.useMemo)(
2092
2142
  () => field.type === "radio" ? field.options.map(({ value: value2 }) => value2) : [],
2093
2143
  [field]
2094
2144
  );
@@ -2098,7 +2148,7 @@ var RadioField = ({
2098
2148
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2099
2149
  Label,
2100
2150
  {
2101
- icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CheckCircle, { size: 16 }),
2151
+ icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CircleCheckBig, { size: 16 }),
2102
2152
  label: label || name,
2103
2153
  readOnly,
2104
2154
  el: "div",
@@ -2115,7 +2165,8 @@ var RadioField = ({
2115
2165
  value: option.value,
2116
2166
  name,
2117
2167
  onChange: (e) => {
2118
- const jsonValue = safeJsonParse(e.target.value) || e.target.value;
2168
+ var _a;
2169
+ const jsonValue = (_a = safeJsonParse(e.target.value)) != null ? _a : e.target.value;
2119
2170
  if (flatOptions.indexOf(jsonValue) > -1) {
2120
2171
  onChange(jsonValue);
2121
2172
  } else {
@@ -2137,7 +2188,7 @@ var RadioField = ({
2137
2188
 
2138
2189
  // components/AutoField/fields/SelectField/index.tsx
2139
2190
  init_react_import();
2140
- var import_react13 = require("react");
2191
+ var import_react14 = require("react");
2141
2192
  var import_jsx_runtime17 = require("react/jsx-runtime");
2142
2193
  var getClassName12 = get_class_name_factory_default("Input", styles_module_default2);
2143
2194
  var SelectField = ({
@@ -2150,7 +2201,7 @@ var SelectField = ({
2150
2201
  readOnly,
2151
2202
  id
2152
2203
  }) => {
2153
- const flatOptions = (0, import_react13.useMemo)(
2204
+ const flatOptions = (0, import_react14.useMemo)(
2154
2205
  () => field.type === "select" ? field.options.map(({ value: value2 }) => value2) : [],
2155
2206
  [field]
2156
2207
  );
@@ -2171,7 +2222,8 @@ var SelectField = ({
2171
2222
  className: getClassName12("input"),
2172
2223
  disabled: readOnly,
2173
2224
  onChange: (e) => {
2174
- const jsonValue = safeJsonParse(e.target.value) || e.target.value;
2225
+ var _a;
2226
+ const jsonValue = (_a = safeJsonParse(e.target.value)) != null ? _a : e.target.value;
2175
2227
  if (flatOptions.indexOf(jsonValue) > -1) {
2176
2228
  onChange(jsonValue);
2177
2229
  } else {
@@ -2255,7 +2307,7 @@ var ObjectField = ({
2255
2307
  Label,
2256
2308
  {
2257
2309
  label: label || name,
2258
- icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(MoreVertical, { size: 16 }),
2310
+ icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(EllipsisVertical, { size: 16 }),
2259
2311
  el: "div",
2260
2312
  readOnly,
2261
2313
  children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: getClassName14(), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("fieldset", { className: getClassName14("fieldset"), children: Object.keys(field.objectFields).map((fieldName) => {
@@ -2290,7 +2342,7 @@ var ObjectField = ({
2290
2342
 
2291
2343
  // lib/use-safe-id.ts
2292
2344
  init_react_import();
2293
- var import_react14 = __toESM(require("react"));
2345
+ var import_react15 = __toESM(require("react"));
2294
2346
 
2295
2347
  // lib/generate-id.ts
2296
2348
  init_react_import();
@@ -2299,10 +2351,10 @@ var generateId = (type) => type ? `${type}-${(0, import_uuid.v4)()}` : (0, impor
2299
2351
 
2300
2352
  // lib/use-safe-id.ts
2301
2353
  var useSafeId = () => {
2302
- if (typeof import_react14.default.useId !== "undefined") {
2303
- return import_react14.default.useId();
2354
+ if (typeof import_react15.default.useId !== "undefined") {
2355
+ return import_react15.default.useId();
2304
2356
  }
2305
- const [id] = (0, import_react14.useState)(generateId());
2357
+ const [id] = (0, import_react15.useState)(generateId());
2306
2358
  return id;
2307
2359
  };
2308
2360
 
@@ -2336,7 +2388,7 @@ var FieldLabelInternal2 = ({
2336
2388
  readOnly
2337
2389
  }) => {
2338
2390
  const { overrides } = useAppContext();
2339
- const Wrapper = (0, import_react15.useMemo)(
2391
+ const Wrapper = (0, import_react16.useMemo)(
2340
2392
  () => overrides.fieldLabel || FieldLabel,
2341
2393
  [overrides]
2342
2394
  );
@@ -2389,7 +2441,7 @@ function AutoFieldInternal(props) {
2389
2441
  Label,
2390
2442
  id: resolvedId
2391
2443
  });
2392
- const onFocus = (0, import_react15.useCallback)(
2444
+ const onFocus = (0, import_react16.useCallback)(
2393
2445
  (e) => {
2394
2446
  if (mergedProps.name && e.target.nodeName === "INPUT") {
2395
2447
  e.stopPropagation();
@@ -2403,7 +2455,7 @@ function AutoFieldInternal(props) {
2403
2455
  },
2404
2456
  [mergedProps.name]
2405
2457
  );
2406
- const onBlur = (0, import_react15.useCallback)((e) => {
2458
+ const onBlur = (0, import_react16.useCallback)((e) => {
2407
2459
  if ("name" in e.target) {
2408
2460
  dispatch({
2409
2461
  type: "setUi",
@@ -2438,7 +2490,7 @@ function AutoFieldInternal(props) {
2438
2490
  function AutoFieldPrivate(props) {
2439
2491
  const { state } = useAppContext();
2440
2492
  const { value, onChange } = props;
2441
- const [localValue, setLocalValue] = (0, import_react15.useState)(value);
2493
+ const [localValue, setLocalValue] = (0, import_react16.useState)(value);
2442
2494
  const onChangeDb = (0, import_use_debounce.useDebouncedCallback)(
2443
2495
  (val, ui) => {
2444
2496
  onChange(val, ui);
@@ -2446,11 +2498,11 @@ function AutoFieldPrivate(props) {
2446
2498
  50,
2447
2499
  { leading: true }
2448
2500
  );
2449
- const onChangeLocal = (0, import_react15.useCallback)((val, ui) => {
2501
+ const onChangeLocal = (0, import_react16.useCallback)((val, ui) => {
2450
2502
  setLocalValue(val);
2451
2503
  onChangeDb(val, ui);
2452
2504
  }, []);
2453
- (0, import_react15.useEffect)(() => {
2505
+ (0, import_react16.useEffect)(() => {
2454
2506
  if (state.ui.field.focus !== props.name) {
2455
2507
  setLocalValue(value);
2456
2508
  }
@@ -2462,7 +2514,7 @@ function AutoFieldPrivate(props) {
2462
2514
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(AutoFieldInternal, __spreadValues(__spreadValues({}, props), localProps));
2463
2515
  }
2464
2516
  function AutoField(props) {
2465
- const DefaultLabel = (0, import_react15.useMemo)(() => {
2517
+ const DefaultLabel = (0, import_react16.useMemo)(() => {
2466
2518
  const DefaultLabel2 = (labelProps) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2467
2519
  "div",
2468
2520
  __spreadProps(__spreadValues({}, labelProps), {
@@ -2482,11 +2534,11 @@ init_react_import();
2482
2534
  var styles_module_default10 = { "Drawer": "_Drawer_1oa7v_1", "DrawerItem--disabled": "_DrawerItem--disabled_1oa7v_5", "DrawerItem-draggable": "_DrawerItem-draggable_1oa7v_5", "DrawerItem-default": "_DrawerItem-default_1oa7v_11", "DrawerItem-draggableWrapper": "_DrawerItem-draggableWrapper_1oa7v_11", "DrawerItem": "_DrawerItem_1oa7v_5", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_1oa7v_36", "DrawerItem-name": "_DrawerItem-name_1oa7v_54" };
2483
2535
 
2484
2536
  // components/Drawer/index.tsx
2485
- var import_react16 = require("react");
2537
+ var import_react17 = require("react");
2486
2538
  var import_jsx_runtime21 = require("react/jsx-runtime");
2487
2539
  var getClassName16 = get_class_name_factory_default("Drawer", styles_module_default10);
2488
2540
  var getClassNameItem2 = get_class_name_factory_default("DrawerItem", styles_module_default10);
2489
- var drawerContext = (0, import_react16.createContext)({
2541
+ var drawerContext = (0, import_react17.createContext)({
2490
2542
  droppableId: ""
2491
2543
  });
2492
2544
  var DrawerDraggable = ({
@@ -2517,9 +2569,9 @@ var DrawerItem = ({
2517
2569
  index,
2518
2570
  isDragDisabled
2519
2571
  }) => {
2520
- const ctx = (0, import_react16.useContext)(drawerContext);
2572
+ const ctx = (0, import_react17.useContext)(drawerContext);
2521
2573
  const resolvedId = `${ctx.droppableId}::${id || name}`;
2522
- const CustomInner = (0, import_react16.useMemo)(
2574
+ const CustomInner = (0, import_react17.useMemo)(
2523
2575
  () => children || (({ children: children2, name: name2 }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: getClassNameItem2("default"), children: children2 })),
2524
2576
  [children]
2525
2577
  );
@@ -2560,11 +2612,11 @@ Drawer.Item = DrawerItem;
2560
2612
 
2561
2613
  // components/DropZone/index.tsx
2562
2614
  init_react_import();
2563
- var import_react20 = require("react");
2615
+ var import_react21 = require("react");
2564
2616
 
2565
2617
  // components/DraggableComponent/index.tsx
2566
2618
  init_react_import();
2567
- var import_react18 = require("react");
2619
+ var import_react19 = require("react");
2568
2620
  var import_dnd4 = require("@measured/dnd");
2569
2621
 
2570
2622
  // css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css#css-module
@@ -2573,10 +2625,10 @@ var styles_module_default11 = { "DraggableComponent": "_DraggableComponent_1bhad
2573
2625
 
2574
2626
  // lib/use-modifier-held.ts
2575
2627
  init_react_import();
2576
- var import_react17 = require("react");
2628
+ var import_react18 = require("react");
2577
2629
  var useModifierHeld = (modifier) => {
2578
- const [modifierHeld, setModifierHeld] = (0, import_react17.useState)(false);
2579
- (0, import_react17.useEffect)(() => {
2630
+ const [modifierHeld, setModifierHeld] = (0, import_react18.useState)(false);
2631
+ (0, import_react18.useEffect)(() => {
2580
2632
  function downHandler({ key }) {
2581
2633
  if (key === modifier) {
2582
2634
  setModifierHeld(true);
@@ -2645,14 +2697,14 @@ var DraggableComponent = ({
2645
2697
  const { zoomConfig, status, overrides, selectedItem, getPermissions } = useAppContext();
2646
2698
  const isModifierHeld = useModifierHeld("Alt");
2647
2699
  const El = status !== "LOADING" ? import_dnd4.Draggable : DefaultDraggable;
2648
- (0, import_react18.useEffect)(onMount, []);
2649
- const [disableSecondaryAnimation, setDisableSecondaryAnimation] = (0, import_react18.useState)(false);
2650
- (0, import_react18.useEffect)(() => {
2700
+ (0, import_react19.useEffect)(onMount, []);
2701
+ const [disableSecondaryAnimation, setDisableSecondaryAnimation] = (0, import_react19.useState)(false);
2702
+ (0, import_react19.useEffect)(() => {
2651
2703
  if (isIos()) {
2652
2704
  setDisableSecondaryAnimation(true);
2653
2705
  }
2654
2706
  }, []);
2655
- const CustomActionBar = (0, import_react18.useMemo)(
2707
+ const CustomActionBar = (0, import_react19.useMemo)(
2656
2708
  () => overrides.actionBar || DefaultActionBar,
2657
2709
  [overrides.actionBar]
2658
2710
  );
@@ -2730,7 +2782,7 @@ var styles_module_default12 = { "DropZone": "_DropZone_djoti_1", "DropZone-conte
2730
2782
 
2731
2783
  // components/DropZone/context.tsx
2732
2784
  init_react_import();
2733
- var import_react19 = require("react");
2785
+ var import_react20 = require("react");
2734
2786
  var import_use_debounce2 = require("use-debounce");
2735
2787
 
2736
2788
  // lib/get-zone-id.ts
@@ -2747,29 +2799,29 @@ var getZoneId = (zoneCompound) => {
2747
2799
 
2748
2800
  // components/DropZone/context.tsx
2749
2801
  var import_jsx_runtime23 = require("react/jsx-runtime");
2750
- var dropZoneContext = (0, import_react19.createContext)(null);
2802
+ var dropZoneContext = (0, import_react20.createContext)(null);
2751
2803
  var DropZoneProvider = ({
2752
2804
  children,
2753
2805
  value
2754
2806
  }) => {
2755
- const [hoveringArea, setHoveringArea] = (0, import_react19.useState)(null);
2756
- const [hoveringZone, setHoveringZone] = (0, import_react19.useState)(
2807
+ const [hoveringArea, setHoveringArea] = (0, import_react20.useState)(null);
2808
+ const [hoveringZone, setHoveringZone] = (0, import_react20.useState)(
2757
2809
  rootDroppableId
2758
2810
  );
2759
- const [hoveringComponent, setHoveringComponent] = (0, import_react19.useState)();
2811
+ const [hoveringComponent, setHoveringComponent] = (0, import_react20.useState)();
2760
2812
  const [hoveringAreaDb] = (0, import_use_debounce2.useDebounce)(hoveringArea, 75, { leading: false });
2761
- const [areasWithZones, setAreasWithZones] = (0, import_react19.useState)(
2813
+ const [areasWithZones, setAreasWithZones] = (0, import_react20.useState)(
2762
2814
  {}
2763
2815
  );
2764
- const [activeZones, setActiveZones] = (0, import_react19.useState)({});
2816
+ const [activeZones, setActiveZones] = (0, import_react20.useState)({});
2765
2817
  const { dispatch = null } = value ? value : {};
2766
- const registerZoneArea = (0, import_react19.useCallback)(
2818
+ const registerZoneArea = (0, import_react20.useCallback)(
2767
2819
  (area) => {
2768
2820
  setAreasWithZones((latest) => __spreadProps(__spreadValues({}, latest), { [area]: true }));
2769
2821
  },
2770
2822
  [setAreasWithZones]
2771
2823
  );
2772
- const registerZone = (0, import_react19.useCallback)(
2824
+ const registerZone = (0, import_react20.useCallback)(
2773
2825
  (zoneCompound) => {
2774
2826
  if (!dispatch) {
2775
2827
  return;
@@ -2782,7 +2834,7 @@ var DropZoneProvider = ({
2782
2834
  },
2783
2835
  [setActiveZones, dispatch]
2784
2836
  );
2785
- const unregisterZone = (0, import_react19.useCallback)(
2837
+ const unregisterZone = (0, import_react20.useCallback)(
2786
2838
  (zoneCompound) => {
2787
2839
  if (!dispatch) {
2788
2840
  return;
@@ -2797,8 +2849,8 @@ var DropZoneProvider = ({
2797
2849
  },
2798
2850
  [setActiveZones, dispatch]
2799
2851
  );
2800
- const [pathData, setPathData] = (0, import_react19.useState)();
2801
- const registerPath = (0, import_react19.useCallback)(
2852
+ const [pathData, setPathData] = (0, import_react20.useState)();
2853
+ const registerPath = (0, import_react20.useCallback)(
2802
2854
  (selector) => {
2803
2855
  if (!(value == null ? void 0 : value.data)) {
2804
2856
  return;
@@ -2823,7 +2875,7 @@ var DropZoneProvider = ({
2823
2875
  },
2824
2876
  [value, setPathData]
2825
2877
  );
2826
- const [zoneWillDrag, setZoneWillDrag] = (0, import_react19.useState)("");
2878
+ const [zoneWillDrag, setZoneWillDrag] = (0, import_react20.useState)("");
2827
2879
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children: value && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2828
2880
  dropZoneContext.Provider,
2829
2881
  {
@@ -2855,7 +2907,7 @@ var getClassName18 = get_class_name_factory_default("DropZone", styles_module_de
2855
2907
  function DropZoneEdit({ zone, allow, disallow, style }) {
2856
2908
  var _a;
2857
2909
  const appContext2 = useAppContext();
2858
- const ctx = (0, import_react20.useContext)(dropZoneContext);
2910
+ const ctx = (0, import_react21.useContext)(dropZoneContext);
2859
2911
  const {
2860
2912
  // These all need setting via context
2861
2913
  data,
@@ -2874,12 +2926,12 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
2874
2926
  } = ctx || {};
2875
2927
  let content = data.content || [];
2876
2928
  let zoneCompound = rootDroppableId;
2877
- (0, import_react20.useEffect)(() => {
2929
+ (0, import_react21.useEffect)(() => {
2878
2930
  if (areaId && registerZoneArea) {
2879
2931
  registerZoneArea(areaId);
2880
2932
  }
2881
2933
  }, [areaId]);
2882
- (0, import_react20.useEffect)(() => {
2934
+ (0, import_react21.useEffect)(() => {
2883
2935
  if (ctx == null ? void 0 : ctx.registerZone) {
2884
2936
  ctx == null ? void 0 : ctx.registerZone(zoneCompound);
2885
2937
  }
@@ -3135,7 +3187,7 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
3135
3187
  );
3136
3188
  }
3137
3189
  function DropZoneRender({ zone }) {
3138
- const ctx = (0, import_react20.useContext)(dropZoneContext);
3190
+ const ctx = (0, import_react21.useContext)(dropZoneContext);
3139
3191
  const { data, areaId = "root", config } = ctx || {};
3140
3192
  let zoneCompound = rootDroppableId;
3141
3193
  let content = (data == null ? void 0 : data.content) || [];
@@ -3167,7 +3219,7 @@ function DropZoneRender({ zone }) {
3167
3219
  }) });
3168
3220
  }
3169
3221
  function DropZone(props) {
3170
- const ctx = (0, import_react20.useContext)(dropZoneContext);
3222
+ const ctx = (0, import_react21.useContext)(dropZoneContext);
3171
3223
  if ((ctx == null ? void 0 : ctx.mode) === "edit") {
3172
3224
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DropZoneEdit, __spreadValues({}, props));
3173
3225
  }
@@ -3176,11 +3228,11 @@ function DropZone(props) {
3176
3228
 
3177
3229
  // components/Puck/index.tsx
3178
3230
  init_react_import();
3179
- var import_react35 = require("react");
3231
+ var import_react36 = require("react");
3180
3232
 
3181
3233
  // lib/use-placeholder-style.ts
3182
3234
  init_react_import();
3183
- var import_react21 = require("react");
3235
+ var import_react22 = require("react");
3184
3236
 
3185
3237
  // lib/get-frame.ts
3186
3238
  init_react_import();
@@ -3195,7 +3247,7 @@ var getFrame = () => {
3195
3247
  // lib/use-placeholder-style.ts
3196
3248
  var usePlaceholderStyle = () => {
3197
3249
  const queryAttr = "data-rfd-drag-handle-draggable-id";
3198
- const [placeholderStyle, setPlaceholderStyle] = (0, import_react21.useState)();
3250
+ const [placeholderStyle, setPlaceholderStyle] = (0, import_react22.useState)();
3199
3251
  const onDragStartOrUpdate = (draggedItem) => {
3200
3252
  var _a;
3201
3253
  const draggableId = draggedItem.draggableId;
@@ -3248,7 +3300,7 @@ var styles_module_default13 = { "SidebarSection": "_SidebarSection_125qe_1", "Si
3248
3300
 
3249
3301
  // lib/use-breadcrumbs.ts
3250
3302
  init_react_import();
3251
- var import_react22 = require("react");
3303
+ var import_react23 = require("react");
3252
3304
  var convertPathDataToBreadcrumbs = (selectedItem, pathData, data) => {
3253
3305
  const id = selectedItem ? selectedItem == null ? void 0 : selectedItem.props.id : "";
3254
3306
  const currentPathData = pathData && id && pathData[id] ? __spreadValues({}, pathData[id]) : { label: "Page", path: [] };
@@ -3298,8 +3350,8 @@ var useBreadcrumbs = (renderCount) => {
3298
3350
  state: { data },
3299
3351
  selectedItem
3300
3352
  } = useAppContext();
3301
- const dzContext = (0, import_react22.useContext)(dropZoneContext);
3302
- return (0, import_react22.useMemo)(() => {
3353
+ const dzContext = (0, import_react23.useContext)(dropZoneContext);
3354
+ return (0, import_react23.useMemo)(() => {
3303
3355
  const breadcrumbs = convertPathDataToBreadcrumbs(
3304
3356
  selectedItem,
3305
3357
  dzContext == null ? void 0 : dzContext.pathData,
@@ -3783,15 +3835,15 @@ init_react_import();
3783
3835
  var styles_module_default16 = { "PuckFields": "_PuckFields_jp3lw_1", "PuckFields--isLoading": "_PuckFields--isLoading_jp3lw_6", "PuckFields-loadingOverlay": "_PuckFields-loadingOverlay_jp3lw_10", "PuckFields-loadingOverlayInner": "_PuckFields-loadingOverlayInner_jp3lw_25" };
3784
3836
 
3785
3837
  // components/Puck/components/Fields/index.tsx
3786
- var import_react24 = require("react");
3838
+ var import_react25 = require("react");
3787
3839
 
3788
3840
  // lib/use-parent.ts
3789
3841
  init_react_import();
3790
- var import_react23 = require("react");
3842
+ var import_react24 = require("react");
3791
3843
  var useParent = (itemSelector) => {
3792
3844
  var _a;
3793
3845
  const { selectedItem, state } = useAppContext();
3794
- const { pathData } = (0, import_react23.useContext)(dropZoneContext) || {};
3846
+ const { pathData } = (0, import_react24.useContext)(dropZoneContext) || {};
3795
3847
  const item = itemSelector ? getItem(itemSelector, state.data) : selectedItem;
3796
3848
  const breadcrumbs = convertPathDataToBreadcrumbs(item, pathData, state.data);
3797
3849
  const lastItem = breadcrumbs[breadcrumbs.length - 1];
@@ -3817,20 +3869,20 @@ var useResolvedFields = () => {
3817
3869
  const { data } = state;
3818
3870
  const rootFields = ((_a = config.root) == null ? void 0 : _a.fields) || defaultPageFields;
3819
3871
  const componentConfig = selectedItem ? config.components[selectedItem.type] : null;
3820
- const defaultFields = (0, import_react24.useMemo)(
3872
+ const defaultFields = (0, import_react25.useMemo)(
3821
3873
  () => (selectedItem ? componentConfig == null ? void 0 : componentConfig.fields : rootFields) || {},
3822
3874
  [selectedItem, rootFields, componentConfig == null ? void 0 : componentConfig.fields]
3823
3875
  );
3824
3876
  const rootProps = data.root.props || data.root;
3825
- const [lastSelectedData, setLastSelectedData] = (0, import_react24.useState)({});
3826
- const [resolvedFields, setResolvedFields] = (0, import_react24.useState)(defaultFields);
3827
- const [fieldsLoading, setFieldsLoading] = (0, import_react24.useState)(false);
3877
+ const [lastSelectedData, setLastSelectedData] = (0, import_react25.useState)({});
3878
+ const [resolvedFields, setResolvedFields] = (0, import_react25.useState)(defaultFields);
3879
+ const [fieldsLoading, setFieldsLoading] = (0, import_react25.useState)(false);
3828
3880
  const defaultResolveFields = (_componentData, _params) => defaultFields;
3829
3881
  const componentData = selectedItem ? selectedItem : { props: rootProps, readOnly: data.root.readOnly };
3830
3882
  const hasComponentResolver = selectedItem && (componentConfig == null ? void 0 : componentConfig.resolveFields);
3831
3883
  const hasRootResolver = !selectedItem && ((_b = config.root) == null ? void 0 : _b.resolveFields);
3832
3884
  const hasResolver = hasComponentResolver || hasRootResolver;
3833
- const resolveFields = (0, import_react24.useCallback)(
3885
+ const resolveFields = (0, import_react25.useCallback)(
3834
3886
  (..._0) => __async(void 0, [..._0], function* (fields = {}) {
3835
3887
  var _a2;
3836
3888
  const lastData = ((_a2 = lastSelectedData.props) == null ? void 0 : _a2.id) === componentData.props.id ? lastSelectedData : null;
@@ -3868,7 +3920,7 @@ var useResolvedFields = () => {
3868
3920
  }),
3869
3921
  [data, config, componentData, selectedItem, resolvedFields, state]
3870
3922
  );
3871
- (0, import_react24.useEffect)(() => {
3923
+ (0, import_react25.useEffect)(() => {
3872
3924
  if (hasResolver) {
3873
3925
  setFieldsLoading(true);
3874
3926
  resolveFields(defaultFields).then((fields) => {
@@ -3899,7 +3951,7 @@ var Fields = () => {
3899
3951
  const componentResolving = selectedItem ? ((_a = componentState[selectedItem == null ? void 0 : selectedItem.props.id]) == null ? void 0 : _a.loadingCount) > 0 : ((_b = componentState["puck-root"]) == null ? void 0 : _b.loadingCount) > 0;
3900
3952
  const isLoading = fieldsResolving || componentResolving;
3901
3953
  const rootProps = data.root.props || data.root;
3902
- const Wrapper = (0, import_react24.useMemo)(() => overrides.fields || DefaultFields, [overrides]);
3954
+ const Wrapper = (0, import_react25.useMemo)(() => overrides.fields || DefaultFields, [overrides]);
3903
3955
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3904
3956
  "form",
3905
3957
  {
@@ -4022,7 +4074,7 @@ init_react_import();
4022
4074
 
4023
4075
  // lib/use-component-list.tsx
4024
4076
  init_react_import();
4025
- var import_react25 = require("react");
4077
+ var import_react26 = require("react");
4026
4078
 
4027
4079
  // components/ComponentList/index.tsx
4028
4080
  init_react_import();
@@ -4100,8 +4152,8 @@ ComponentList.Item = ComponentListItem;
4100
4152
  // lib/use-component-list.tsx
4101
4153
  var import_jsx_runtime29 = require("react/jsx-runtime");
4102
4154
  var useComponentList = (config, ui) => {
4103
- const [componentList, setComponentList] = (0, import_react25.useState)();
4104
- (0, import_react25.useEffect)(() => {
4155
+ const [componentList, setComponentList] = (0, import_react26.useState)();
4156
+ (0, import_react26.useEffect)(() => {
4105
4157
  var _a, _b, _c;
4106
4158
  if (Object.keys(ui.componentList).length > 0) {
4107
4159
  const matchedComponents = [];
@@ -4170,22 +4222,22 @@ var useComponentList = (config, ui) => {
4170
4222
  };
4171
4223
 
4172
4224
  // components/Puck/components/Components/index.tsx
4173
- var import_react26 = require("react");
4225
+ var import_react27 = require("react");
4174
4226
  var import_jsx_runtime30 = require("react/jsx-runtime");
4175
4227
  var Components = () => {
4176
4228
  const { config, state, overrides } = useAppContext();
4177
4229
  const componentList = useComponentList(config, state.ui);
4178
- const Wrapper = (0, import_react26.useMemo)(() => overrides.components || "div", [overrides]);
4230
+ const Wrapper = (0, import_react27.useMemo)(() => overrides.components || "div", [overrides]);
4179
4231
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Wrapper, { children: componentList ? componentList : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ComponentList, { id: "all" }) });
4180
4232
  };
4181
4233
 
4182
4234
  // components/Puck/components/Preview/index.tsx
4183
4235
  init_react_import();
4184
- var import_react28 = require("react");
4236
+ var import_react29 = require("react");
4185
4237
 
4186
4238
  // components/AutoFrame/index.tsx
4187
4239
  init_react_import();
4188
- var import_react27 = require("react");
4240
+ var import_react28 = require("react");
4189
4241
  var import_object_hash = __toESM(require("object-hash"));
4190
4242
  var import_react_dom2 = require("react-dom");
4191
4243
  var import_jsx_runtime31 = require("react/jsx-runtime");
@@ -4231,7 +4283,7 @@ var CopyHostStyles = ({
4231
4283
  onStylesLoaded = () => null
4232
4284
  }) => {
4233
4285
  const { document: doc, window: win } = useFrame();
4234
- (0, import_react27.useEffect)(() => {
4286
+ (0, import_react28.useEffect)(() => {
4235
4287
  if (!win || !doc) {
4236
4288
  return () => {
4237
4289
  };
@@ -4390,8 +4442,8 @@ var CopyHostStyles = ({
4390
4442
  }, []);
4391
4443
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children });
4392
4444
  };
4393
- var autoFrameContext = (0, import_react27.createContext)({});
4394
- var useFrame = () => (0, import_react27.useContext)(autoFrameContext);
4445
+ var autoFrameContext = (0, import_react28.createContext)({});
4446
+ var useFrame = () => (0, import_react28.useContext)(autoFrameContext);
4395
4447
  function AutoFrame(_a) {
4396
4448
  var _b = _a, {
4397
4449
  children,
@@ -4406,11 +4458,11 @@ function AutoFrame(_a) {
4406
4458
  "id",
4407
4459
  "onStylesLoaded"
4408
4460
  ]);
4409
- const [loaded, setLoaded] = (0, import_react27.useState)(false);
4410
- const [ctx, setCtx] = (0, import_react27.useState)({});
4411
- const ref = (0, import_react27.useRef)(null);
4412
- const [mountTarget, setMountTarget] = (0, import_react27.useState)();
4413
- (0, import_react27.useEffect)(() => {
4461
+ const [loaded, setLoaded] = (0, import_react28.useState)(false);
4462
+ const [ctx, setCtx] = (0, import_react28.useState)({});
4463
+ const ref = (0, import_react28.useRef)(null);
4464
+ const [mountTarget, setMountTarget] = (0, import_react28.useState)();
4465
+ (0, import_react28.useEffect)(() => {
4414
4466
  var _a2;
4415
4467
  if (ref.current) {
4416
4468
  setCtx({
@@ -4446,7 +4498,7 @@ var import_jsx_runtime32 = require("react/jsx-runtime");
4446
4498
  var getClassName23 = get_class_name_factory_default("PuckPreview", styles_module_default18);
4447
4499
  var Preview = ({ id = "puck-preview" }) => {
4448
4500
  const { config, dispatch, state, setStatus, iframe, overrides } = useAppContext();
4449
- const Page = (0, import_react28.useCallback)(
4501
+ const Page = (0, import_react29.useCallback)(
4450
4502
  (pageProps) => {
4451
4503
  var _a, _b;
4452
4504
  return ((_a = config.root) == null ? void 0 : _a.render) ? (_b = config.root) == null ? void 0 : _b.render(__spreadValues({
@@ -4455,7 +4507,7 @@ var Preview = ({ id = "puck-preview" }) => {
4455
4507
  },
4456
4508
  [config.root]
4457
4509
  );
4458
- const Frame = (0, import_react28.useMemo)(() => overrides.iframe, [overrides]);
4510
+ const Frame = (0, import_react29.useMemo)(() => overrides.iframe, [overrides]);
4459
4511
  const rootProps = state.data.root.props || state.data.root;
4460
4512
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4461
4513
  "div",
@@ -4544,7 +4596,7 @@ var scrollIntoView = (el) => {
4544
4596
  };
4545
4597
 
4546
4598
  // components/LayerTree/index.tsx
4547
- var import_react29 = require("react");
4599
+ var import_react30 = require("react");
4548
4600
 
4549
4601
  // lib/is-child-of-zone.ts
4550
4602
  init_react_import();
@@ -4571,7 +4623,7 @@ var LayerTree = ({
4571
4623
  label
4572
4624
  }) => {
4573
4625
  const zones = data.zones || {};
4574
- const ctx = (0, import_react29.useContext)(dropZoneContext);
4626
+ const ctx = (0, import_react30.useContext)(dropZoneContext);
4575
4627
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
4576
4628
  label && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: getClassName24("zoneTitle"), children: [
4577
4629
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: getClassName24("zoneIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Layers, { size: "16" }) }),
@@ -4677,13 +4729,13 @@ var LayerTree = ({
4677
4729
  };
4678
4730
 
4679
4731
  // components/Puck/components/Outline/index.tsx
4680
- var import_react30 = require("react");
4732
+ var import_react31 = require("react");
4681
4733
  var import_jsx_runtime34 = require("react/jsx-runtime");
4682
4734
  var Outline = () => {
4683
4735
  const { dispatch, state, overrides, config } = useAppContext();
4684
4736
  const { data, ui } = state;
4685
4737
  const { itemSelector } = ui;
4686
- const setItemSelector = (0, import_react30.useCallback)(
4738
+ const setItemSelector = (0, import_react31.useCallback)(
4687
4739
  (newItemSelector) => {
4688
4740
  dispatch({
4689
4741
  type: "setUi",
@@ -4692,7 +4744,7 @@ var Outline = () => {
4692
4744
  },
4693
4745
  []
4694
4746
  );
4695
- const Wrapper = (0, import_react30.useMemo)(() => overrides.outline || "div", [overrides]);
4747
+ const Wrapper = (0, import_react31.useMemo)(() => overrides.outline || "div", [overrides]);
4696
4748
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(dropZoneContext.Consumer, { children: (ctx) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
4697
4749
  (ctx == null ? void 0 : ctx.activeZones) && (ctx == null ? void 0 : ctx.activeZones[rootDroppableId]) && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4698
4750
  LayerTree,
@@ -4781,19 +4833,19 @@ function usePuckHistory({
4781
4833
 
4782
4834
  // lib/use-history-store.ts
4783
4835
  init_react_import();
4784
- var import_react31 = require("react");
4836
+ var import_react32 = require("react");
4785
4837
  var import_use_debounce3 = require("use-debounce");
4786
4838
  var EMPTY_HISTORY_INDEX = 0;
4787
4839
  function useHistoryStore(initialHistory) {
4788
4840
  var _a, _b;
4789
- const [histories, setHistories] = (0, import_react31.useState)(
4841
+ const [histories, setHistories] = (0, import_react32.useState)(
4790
4842
  (_a = initialHistory == null ? void 0 : initialHistory.histories) != null ? _a : []
4791
4843
  );
4792
4844
  const updateHistories = (histories2) => {
4793
4845
  setHistories(histories2);
4794
4846
  setIndex(histories2.length - 1);
4795
4847
  };
4796
- const [index, setIndex] = (0, import_react31.useState)(
4848
+ const [index, setIndex] = (0, import_react32.useState)(
4797
4849
  (_b = initialHistory == null ? void 0 : initialHistory.index) != null ? _b : EMPTY_HISTORY_INDEX
4798
4850
  );
4799
4851
  const hasPast = index > EMPTY_HISTORY_INDEX;
@@ -4953,11 +5005,11 @@ var getBox = function getBox2(el) {
4953
5005
  };
4954
5006
 
4955
5007
  // components/Puck/components/Canvas/index.tsx
4956
- var import_react33 = require("react");
5008
+ var import_react34 = require("react");
4957
5009
 
4958
5010
  // components/ViewportControls/index.tsx
4959
5011
  init_react_import();
4960
- var import_react32 = require("react");
5012
+ var import_react33 = require("react");
4961
5013
 
4962
5014
  // css-module:/home/runner/work/puck/puck/packages/core/components/ViewportControls/styles.module.css#css-module
4963
5015
  init_react_import();
@@ -4980,8 +5032,8 @@ var ViewportButton = ({
4980
5032
  onClick
4981
5033
  }) => {
4982
5034
  const { state } = useAppContext();
4983
- const [isActive, setIsActive] = (0, import_react32.useState)(false);
4984
- (0, import_react32.useEffect)(() => {
5035
+ const [isActive, setIsActive] = (0, import_react33.useState)(false);
5036
+ (0, import_react33.useEffect)(() => {
4985
5037
  setIsActive(width === state.ui.viewports.current.width);
4986
5038
  }, [width, state.ui.viewports.current.width]);
4987
5039
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: getClassNameButton({ isActive }), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
@@ -5017,7 +5069,7 @@ var ViewportControls = ({
5017
5069
  const defaultsContainAutoZoom = defaultZoomOptions.find(
5018
5070
  (option) => option.value === autoZoom
5019
5071
  );
5020
- const zoomOptions = (0, import_react32.useMemo)(
5072
+ const zoomOptions = (0, import_react33.useMemo)(
5021
5073
  () => [
5022
5074
  ...defaultZoomOptions,
5023
5075
  ...defaultsContainAutoZoom ? [] : [
@@ -5140,17 +5192,17 @@ var Canvas = () => {
5140
5192
  const { status, iframe } = useAppContext();
5141
5193
  const { dispatch, state, overrides, setUi, zoomConfig, setZoomConfig } = useAppContext();
5142
5194
  const { ui } = state;
5143
- const frameRef = (0, import_react33.useRef)(null);
5144
- const [showTransition, setShowTransition] = (0, import_react33.useState)(false);
5145
- const defaultRender = (0, import_react33.useMemo)(() => {
5195
+ const frameRef = (0, import_react34.useRef)(null);
5196
+ const [showTransition, setShowTransition] = (0, import_react34.useState)(false);
5197
+ const defaultRender = (0, import_react34.useMemo)(() => {
5146
5198
  const PuckDefault = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children });
5147
5199
  return PuckDefault;
5148
5200
  }, []);
5149
- const CustomPreview = (0, import_react33.useMemo)(
5201
+ const CustomPreview = (0, import_react34.useMemo)(
5150
5202
  () => overrides.preview || defaultRender,
5151
5203
  [overrides]
5152
5204
  );
5153
- const getFrameDimensions = (0, import_react33.useCallback)(() => {
5205
+ const getFrameDimensions = (0, import_react34.useCallback)(() => {
5154
5206
  if (frameRef.current) {
5155
5207
  const frame = frameRef.current;
5156
5208
  const box = getBox(frame);
@@ -5158,7 +5210,7 @@ var Canvas = () => {
5158
5210
  }
5159
5211
  return { width: 0, height: 0 };
5160
5212
  }, [frameRef]);
5161
- const resetAutoZoom = (0, import_react33.useCallback)(
5213
+ const resetAutoZoom = (0, import_react34.useCallback)(
5162
5214
  (ui2 = state.ui) => {
5163
5215
  if (frameRef.current) {
5164
5216
  setZoomConfig(
@@ -5168,11 +5220,11 @@ var Canvas = () => {
5168
5220
  },
5169
5221
  [frameRef, zoomConfig, state.ui]
5170
5222
  );
5171
- (0, import_react33.useEffect)(() => {
5223
+ (0, import_react34.useEffect)(() => {
5172
5224
  setShowTransition(false);
5173
5225
  resetAutoZoom();
5174
5226
  }, [frameRef, ui.leftSideBarVisible, ui.rightSideBarVisible]);
5175
- (0, import_react33.useEffect)(() => {
5227
+ (0, import_react34.useEffect)(() => {
5176
5228
  const { height: frameHeight } = getFrameDimensions();
5177
5229
  if (ui.viewports.current.height === "auto") {
5178
5230
  setZoomConfig(__spreadProps(__spreadValues({}, zoomConfig), {
@@ -5180,13 +5232,13 @@ var Canvas = () => {
5180
5232
  }));
5181
5233
  }
5182
5234
  }, [zoomConfig.zoom]);
5183
- (0, import_react33.useEffect)(() => {
5235
+ (0, import_react34.useEffect)(() => {
5184
5236
  if (ZOOM_ON_CHANGE) {
5185
5237
  setShowTransition(true);
5186
5238
  resetAutoZoom(ui);
5187
5239
  }
5188
5240
  }, [ui.viewports.current.width]);
5189
- (0, import_react33.useEffect)(() => {
5241
+ (0, import_react34.useEffect)(() => {
5190
5242
  const observer = new ResizeObserver(() => {
5191
5243
  setShowTransition(false);
5192
5244
  resetAutoZoom();
@@ -5198,8 +5250,8 @@ var Canvas = () => {
5198
5250
  observer.disconnect();
5199
5251
  };
5200
5252
  }, []);
5201
- const [showLoader, setShowLoader] = (0, import_react33.useState)(false);
5202
- (0, import_react33.useEffect)(() => {
5253
+ const [showLoader, setShowLoader] = (0, import_react34.useState)(false);
5254
+ (0, import_react34.useEffect)(() => {
5203
5255
  setTimeout(() => {
5204
5256
  setShowLoader(true);
5205
5257
  }, 500);
@@ -5302,7 +5354,7 @@ var insertComponent = (componentType, zone, index, {
5302
5354
 
5303
5355
  // lib/use-loaded-overrides.ts
5304
5356
  init_react_import();
5305
- var import_react34 = require("react");
5357
+ var import_react35 = require("react");
5306
5358
 
5307
5359
  // lib/load-overrides.ts
5308
5360
  init_react_import();
@@ -5341,7 +5393,7 @@ var useLoadedOverrides = ({
5341
5393
  overrides,
5342
5394
  plugins
5343
5395
  }) => {
5344
- return (0, import_react34.useMemo)(() => {
5396
+ return (0, import_react35.useMemo)(() => {
5345
5397
  return loadOverrides({ overrides, plugins });
5346
5398
  }, [plugins, overrides]);
5347
5399
  };
@@ -5380,7 +5432,7 @@ function Puck({
5380
5432
  enabled: true,
5381
5433
  waitForStyles: true
5382
5434
  }, _iframe);
5383
- const [generatedAppState] = (0, import_react35.useState)(() => {
5435
+ const [generatedAppState] = (0, import_react36.useState)(() => {
5384
5436
  var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
5385
5437
  const initial = __spreadValues(__spreadValues({}, defaultAppState.ui), initialUi);
5386
5438
  let clientUiState = {};
@@ -5452,22 +5504,22 @@ function Puck({
5452
5504
  histories,
5453
5505
  index: initialHistoryIndex
5454
5506
  });
5455
- const [reducer] = (0, import_react35.useState)(
5507
+ const [reducer] = (0, import_react36.useState)(
5456
5508
  () => createReducer({
5457
5509
  config,
5458
5510
  record: historyStore.record,
5459
5511
  onAction
5460
5512
  })
5461
5513
  );
5462
- const [appState, dispatch] = (0, import_react35.useReducer)(
5514
+ const [appState, dispatch] = (0, import_react36.useReducer)(
5463
5515
  reducer,
5464
5516
  flushZones(initialAppState)
5465
5517
  );
5466
5518
  const { data, ui } = appState;
5467
5519
  const history = usePuckHistory({ dispatch, initialAppState, historyStore });
5468
- const [menuOpen, setMenuOpen] = (0, import_react35.useState)(false);
5520
+ const [menuOpen, setMenuOpen] = (0, import_react36.useState)(false);
5469
5521
  const { itemSelector, leftSideBarVisible, rightSideBarVisible } = ui;
5470
- const setItemSelector = (0, import_react35.useCallback)(
5522
+ const setItemSelector = (0, import_react36.useCallback)(
5471
5523
  (newItemSelector) => {
5472
5524
  if (newItemSelector === itemSelector) return;
5473
5525
  dispatch({
@@ -5479,13 +5531,13 @@ function Puck({
5479
5531
  [itemSelector]
5480
5532
  );
5481
5533
  const selectedItem = itemSelector ? getItem(itemSelector, data) : null;
5482
- (0, import_react35.useEffect)(() => {
5534
+ (0, import_react36.useEffect)(() => {
5483
5535
  if (onChange) onChange(data);
5484
5536
  }, [data]);
5485
5537
  const { onDragStartOrUpdate, placeholderStyle } = usePlaceholderStyle();
5486
- const [draggedItem, setDraggedItem] = (0, import_react35.useState)();
5538
+ const [draggedItem, setDraggedItem] = (0, import_react36.useState)();
5487
5539
  const rootProps = data.root.props || data.root;
5488
- const toggleSidebars = (0, import_react35.useCallback)(
5540
+ const toggleSidebars = (0, import_react36.useCallback)(
5489
5541
  (sidebar) => {
5490
5542
  const widerViewport = window.matchMedia("(min-width: 638px)").matches;
5491
5543
  const sideBarVisible = sidebar === "left" ? leftSideBarVisible : rightSideBarVisible;
@@ -5499,7 +5551,7 @@ function Puck({
5499
5551
  },
5500
5552
  [dispatch, leftSideBarVisible, rightSideBarVisible]
5501
5553
  );
5502
- (0, import_react35.useEffect)(() => {
5554
+ (0, import_react36.useEffect)(() => {
5503
5555
  if (!window.matchMedia("(min-width: 638px)").matches) {
5504
5556
  dispatch({
5505
5557
  type: "setUi",
@@ -5522,7 +5574,7 @@ function Puck({
5522
5574
  window.removeEventListener("resize", handleResize);
5523
5575
  };
5524
5576
  }, []);
5525
- const defaultHeaderRender = (0, import_react35.useMemo)(() => {
5577
+ const defaultHeaderRender = (0, import_react36.useMemo)(() => {
5526
5578
  if (renderHeader) {
5527
5579
  console.warn(
5528
5580
  "`renderHeader` is deprecated. Please use `overrides.header` and the `usePuck` hook instead"
@@ -5536,7 +5588,7 @@ function Puck({
5536
5588
  }
5537
5589
  return DefaultOverride;
5538
5590
  }, [renderHeader]);
5539
- const defaultHeaderActionsRender = (0, import_react35.useMemo)(() => {
5591
+ const defaultHeaderActionsRender = (0, import_react36.useMemo)(() => {
5540
5592
  if (renderHeaderActions) {
5541
5593
  console.warn(
5542
5594
  "`renderHeaderActions` is deprecated. Please use `overrides.headerActions` and the `usePuck` hook instead."
@@ -5553,20 +5605,20 @@ function Puck({
5553
5605
  overrides,
5554
5606
  plugins
5555
5607
  });
5556
- const CustomPuck = (0, import_react35.useMemo)(
5608
+ const CustomPuck = (0, import_react36.useMemo)(
5557
5609
  () => loadedOverrides.puck || DefaultOverride,
5558
5610
  [loadedOverrides]
5559
5611
  );
5560
- const CustomHeader = (0, import_react35.useMemo)(
5612
+ const CustomHeader = (0, import_react36.useMemo)(
5561
5613
  () => loadedOverrides.header || defaultHeaderRender,
5562
5614
  [loadedOverrides]
5563
5615
  );
5564
- const CustomHeaderActions = (0, import_react35.useMemo)(
5616
+ const CustomHeaderActions = (0, import_react36.useMemo)(
5565
5617
  () => loadedOverrides.headerActions || defaultHeaderActionsRender,
5566
5618
  [loadedOverrides]
5567
5619
  );
5568
- const [mounted, setMounted] = (0, import_react35.useState)(false);
5569
- (0, import_react35.useEffect)(() => {
5620
+ const [mounted, setMounted] = (0, import_react36.useState)(false);
5621
+ (0, import_react36.useEffect)(() => {
5570
5622
  setMounted(true);
5571
5623
  }, []);
5572
5624
  const selectedComponentConfig = selectedItem && config.components[selectedItem.type];
@@ -6024,25 +6076,33 @@ classnames/index.js:
6024
6076
  http://jedwatson.github.io/classnames
6025
6077
  *)
6026
6078
 
6079
+ lucide-react/dist/esm/shared/src/utils.js:
6080
+ (**
6081
+ * @license lucide-react v0.468.0 - ISC
6082
+ *
6083
+ * This source code is licensed under the ISC license.
6084
+ * See the LICENSE file in the root directory of this source tree.
6085
+ *)
6086
+
6027
6087
  lucide-react/dist/esm/defaultAttributes.js:
6028
6088
  (**
6029
- * @license lucide-react v0.298.0 - ISC
6089
+ * @license lucide-react v0.468.0 - ISC
6030
6090
  *
6031
6091
  * This source code is licensed under the ISC license.
6032
6092
  * See the LICENSE file in the root directory of this source tree.
6033
6093
  *)
6034
6094
 
6035
- lucide-react/dist/esm/createLucideIcon.js:
6095
+ lucide-react/dist/esm/Icon.js:
6036
6096
  (**
6037
- * @license lucide-react v0.298.0 - ISC
6097
+ * @license lucide-react v0.468.0 - ISC
6038
6098
  *
6039
6099
  * This source code is licensed under the ISC license.
6040
6100
  * See the LICENSE file in the root directory of this source tree.
6041
6101
  *)
6042
6102
 
6043
- lucide-react/dist/esm/icons/check-circle.js:
6103
+ lucide-react/dist/esm/createLucideIcon.js:
6044
6104
  (**
6045
- * @license lucide-react v0.298.0 - ISC
6105
+ * @license lucide-react v0.468.0 - ISC
6046
6106
  *
6047
6107
  * This source code is licensed under the ISC license.
6048
6108
  * See the LICENSE file in the root directory of this source tree.
@@ -6050,7 +6110,7 @@ lucide-react/dist/esm/icons/check-circle.js:
6050
6110
 
6051
6111
  lucide-react/dist/esm/icons/chevron-down.js:
6052
6112
  (**
6053
- * @license lucide-react v0.298.0 - ISC
6113
+ * @license lucide-react v0.468.0 - ISC
6054
6114
  *
6055
6115
  * This source code is licensed under the ISC license.
6056
6116
  * See the LICENSE file in the root directory of this source tree.
@@ -6058,7 +6118,7 @@ lucide-react/dist/esm/icons/chevron-down.js:
6058
6118
 
6059
6119
  lucide-react/dist/esm/icons/chevron-right.js:
6060
6120
  (**
6061
- * @license lucide-react v0.298.0 - ISC
6121
+ * @license lucide-react v0.468.0 - ISC
6062
6122
  *
6063
6123
  * This source code is licensed under the ISC license.
6064
6124
  * See the LICENSE file in the root directory of this source tree.
@@ -6066,7 +6126,15 @@ lucide-react/dist/esm/icons/chevron-right.js:
6066
6126
 
6067
6127
  lucide-react/dist/esm/icons/chevron-up.js:
6068
6128
  (**
6069
- * @license lucide-react v0.298.0 - ISC
6129
+ * @license lucide-react v0.468.0 - ISC
6130
+ *
6131
+ * This source code is licensed under the ISC license.
6132
+ * See the LICENSE file in the root directory of this source tree.
6133
+ *)
6134
+
6135
+ lucide-react/dist/esm/icons/circle-check-big.js:
6136
+ (**
6137
+ * @license lucide-react v0.468.0 - ISC
6070
6138
  *
6071
6139
  * This source code is licensed under the ISC license.
6072
6140
  * See the LICENSE file in the root directory of this source tree.
@@ -6074,7 +6142,15 @@ lucide-react/dist/esm/icons/chevron-up.js:
6074
6142
 
6075
6143
  lucide-react/dist/esm/icons/copy.js:
6076
6144
  (**
6077
- * @license lucide-react v0.298.0 - ISC
6145
+ * @license lucide-react v0.468.0 - ISC
6146
+ *
6147
+ * This source code is licensed under the ISC license.
6148
+ * See the LICENSE file in the root directory of this source tree.
6149
+ *)
6150
+
6151
+ lucide-react/dist/esm/icons/ellipsis-vertical.js:
6152
+ (**
6153
+ * @license lucide-react v0.468.0 - ISC
6078
6154
  *
6079
6155
  * This source code is licensed under the ISC license.
6080
6156
  * See the LICENSE file in the root directory of this source tree.
@@ -6082,7 +6158,7 @@ lucide-react/dist/esm/icons/copy.js:
6082
6158
 
6083
6159
  lucide-react/dist/esm/icons/globe.js:
6084
6160
  (**
6085
- * @license lucide-react v0.298.0 - ISC
6161
+ * @license lucide-react v0.468.0 - ISC
6086
6162
  *
6087
6163
  * This source code is licensed under the ISC license.
6088
6164
  * See the LICENSE file in the root directory of this source tree.
@@ -6090,7 +6166,7 @@ lucide-react/dist/esm/icons/globe.js:
6090
6166
 
6091
6167
  lucide-react/dist/esm/icons/hash.js:
6092
6168
  (**
6093
- * @license lucide-react v0.298.0 - ISC
6169
+ * @license lucide-react v0.468.0 - ISC
6094
6170
  *
6095
6171
  * This source code is licensed under the ISC license.
6096
6172
  * See the LICENSE file in the root directory of this source tree.
@@ -6098,7 +6174,7 @@ lucide-react/dist/esm/icons/hash.js:
6098
6174
 
6099
6175
  lucide-react/dist/esm/icons/layers.js:
6100
6176
  (**
6101
- * @license lucide-react v0.298.0 - ISC
6177
+ * @license lucide-react v0.468.0 - ISC
6102
6178
  *
6103
6179
  * This source code is licensed under the ISC license.
6104
6180
  * See the LICENSE file in the root directory of this source tree.
@@ -6106,7 +6182,7 @@ lucide-react/dist/esm/icons/layers.js:
6106
6182
 
6107
6183
  lucide-react/dist/esm/icons/layout-grid.js:
6108
6184
  (**
6109
- * @license lucide-react v0.298.0 - ISC
6185
+ * @license lucide-react v0.468.0 - ISC
6110
6186
  *
6111
6187
  * This source code is licensed under the ISC license.
6112
6188
  * See the LICENSE file in the root directory of this source tree.
@@ -6114,7 +6190,7 @@ lucide-react/dist/esm/icons/layout-grid.js:
6114
6190
 
6115
6191
  lucide-react/dist/esm/icons/link.js:
6116
6192
  (**
6117
- * @license lucide-react v0.298.0 - ISC
6193
+ * @license lucide-react v0.468.0 - ISC
6118
6194
  *
6119
6195
  * This source code is licensed under the ISC license.
6120
6196
  * See the LICENSE file in the root directory of this source tree.
@@ -6122,31 +6198,31 @@ lucide-react/dist/esm/icons/link.js:
6122
6198
 
6123
6199
  lucide-react/dist/esm/icons/list.js:
6124
6200
  (**
6125
- * @license lucide-react v0.298.0 - ISC
6201
+ * @license lucide-react v0.468.0 - ISC
6126
6202
  *
6127
6203
  * This source code is licensed under the ISC license.
6128
6204
  * See the LICENSE file in the root directory of this source tree.
6129
6205
  *)
6130
6206
 
6131
- lucide-react/dist/esm/icons/lock.js:
6207
+ lucide-react/dist/esm/icons/lock-open.js:
6132
6208
  (**
6133
- * @license lucide-react v0.298.0 - ISC
6209
+ * @license lucide-react v0.468.0 - ISC
6134
6210
  *
6135
6211
  * This source code is licensed under the ISC license.
6136
6212
  * See the LICENSE file in the root directory of this source tree.
6137
6213
  *)
6138
6214
 
6139
- lucide-react/dist/esm/icons/monitor.js:
6215
+ lucide-react/dist/esm/icons/lock.js:
6140
6216
  (**
6141
- * @license lucide-react v0.298.0 - ISC
6217
+ * @license lucide-react v0.468.0 - ISC
6142
6218
  *
6143
6219
  * This source code is licensed under the ISC license.
6144
6220
  * See the LICENSE file in the root directory of this source tree.
6145
6221
  *)
6146
6222
 
6147
- lucide-react/dist/esm/icons/more-vertical.js:
6223
+ lucide-react/dist/esm/icons/monitor.js:
6148
6224
  (**
6149
- * @license lucide-react v0.298.0 - ISC
6225
+ * @license lucide-react v0.468.0 - ISC
6150
6226
  *
6151
6227
  * This source code is licensed under the ISC license.
6152
6228
  * See the LICENSE file in the root directory of this source tree.
@@ -6154,7 +6230,7 @@ lucide-react/dist/esm/icons/more-vertical.js:
6154
6230
 
6155
6231
  lucide-react/dist/esm/icons/panel-left.js:
6156
6232
  (**
6157
- * @license lucide-react v0.298.0 - ISC
6233
+ * @license lucide-react v0.468.0 - ISC
6158
6234
  *
6159
6235
  * This source code is licensed under the ISC license.
6160
6236
  * See the LICENSE file in the root directory of this source tree.
@@ -6162,7 +6238,7 @@ lucide-react/dist/esm/icons/panel-left.js:
6162
6238
 
6163
6239
  lucide-react/dist/esm/icons/panel-right.js:
6164
6240
  (**
6165
- * @license lucide-react v0.298.0 - ISC
6241
+ * @license lucide-react v0.468.0 - ISC
6166
6242
  *
6167
6243
  * This source code is licensed under the ISC license.
6168
6244
  * See the LICENSE file in the root directory of this source tree.
@@ -6170,7 +6246,7 @@ lucide-react/dist/esm/icons/panel-right.js:
6170
6246
 
6171
6247
  lucide-react/dist/esm/icons/plus.js:
6172
6248
  (**
6173
- * @license lucide-react v0.298.0 - ISC
6249
+ * @license lucide-react v0.468.0 - ISC
6174
6250
  *
6175
6251
  * This source code is licensed under the ISC license.
6176
6252
  * See the LICENSE file in the root directory of this source tree.
@@ -6178,7 +6254,7 @@ lucide-react/dist/esm/icons/plus.js:
6178
6254
 
6179
6255
  lucide-react/dist/esm/icons/redo-2.js:
6180
6256
  (**
6181
- * @license lucide-react v0.298.0 - ISC
6257
+ * @license lucide-react v0.468.0 - ISC
6182
6258
  *
6183
6259
  * This source code is licensed under the ISC license.
6184
6260
  * See the LICENSE file in the root directory of this source tree.
@@ -6186,7 +6262,7 @@ lucide-react/dist/esm/icons/redo-2.js:
6186
6262
 
6187
6263
  lucide-react/dist/esm/icons/search.js:
6188
6264
  (**
6189
- * @license lucide-react v0.298.0 - ISC
6265
+ * @license lucide-react v0.468.0 - ISC
6190
6266
  *
6191
6267
  * This source code is licensed under the ISC license.
6192
6268
  * See the LICENSE file in the root directory of this source tree.
@@ -6194,7 +6270,7 @@ lucide-react/dist/esm/icons/search.js:
6194
6270
 
6195
6271
  lucide-react/dist/esm/icons/sliders-horizontal.js:
6196
6272
  (**
6197
- * @license lucide-react v0.298.0 - ISC
6273
+ * @license lucide-react v0.468.0 - ISC
6198
6274
  *
6199
6275
  * This source code is licensed under the ISC license.
6200
6276
  * See the LICENSE file in the root directory of this source tree.
@@ -6202,7 +6278,7 @@ lucide-react/dist/esm/icons/sliders-horizontal.js:
6202
6278
 
6203
6279
  lucide-react/dist/esm/icons/smartphone.js:
6204
6280
  (**
6205
- * @license lucide-react v0.298.0 - ISC
6281
+ * @license lucide-react v0.468.0 - ISC
6206
6282
  *
6207
6283
  * This source code is licensed under the ISC license.
6208
6284
  * See the LICENSE file in the root directory of this source tree.
@@ -6210,7 +6286,7 @@ lucide-react/dist/esm/icons/smartphone.js:
6210
6286
 
6211
6287
  lucide-react/dist/esm/icons/tablet.js:
6212
6288
  (**
6213
- * @license lucide-react v0.298.0 - ISC
6289
+ * @license lucide-react v0.468.0 - ISC
6214
6290
  *
6215
6291
  * This source code is licensed under the ISC license.
6216
6292
  * See the LICENSE file in the root directory of this source tree.
@@ -6218,7 +6294,7 @@ lucide-react/dist/esm/icons/tablet.js:
6218
6294
 
6219
6295
  lucide-react/dist/esm/icons/trash.js:
6220
6296
  (**
6221
- * @license lucide-react v0.298.0 - ISC
6297
+ * @license lucide-react v0.468.0 - ISC
6222
6298
  *
6223
6299
  * This source code is licensed under the ISC license.
6224
6300
  * See the LICENSE file in the root directory of this source tree.
@@ -6226,7 +6302,7 @@ lucide-react/dist/esm/icons/trash.js:
6226
6302
 
6227
6303
  lucide-react/dist/esm/icons/type.js:
6228
6304
  (**
6229
- * @license lucide-react v0.298.0 - ISC
6305
+ * @license lucide-react v0.468.0 - ISC
6230
6306
  *
6231
6307
  * This source code is licensed under the ISC license.
6232
6308
  * See the LICENSE file in the root directory of this source tree.
@@ -6234,15 +6310,7 @@ lucide-react/dist/esm/icons/type.js:
6234
6310
 
6235
6311
  lucide-react/dist/esm/icons/undo-2.js:
6236
6312
  (**
6237
- * @license lucide-react v0.298.0 - ISC
6238
- *
6239
- * This source code is licensed under the ISC license.
6240
- * See the LICENSE file in the root directory of this source tree.
6241
- *)
6242
-
6243
- lucide-react/dist/esm/icons/unlock.js:
6244
- (**
6245
- * @license lucide-react v0.298.0 - ISC
6313
+ * @license lucide-react v0.468.0 - ISC
6246
6314
  *
6247
6315
  * This source code is licensed under the ISC license.
6248
6316
  * See the LICENSE file in the root directory of this source tree.
@@ -6250,7 +6318,7 @@ lucide-react/dist/esm/icons/unlock.js:
6250
6318
 
6251
6319
  lucide-react/dist/esm/icons/zoom-in.js:
6252
6320
  (**
6253
- * @license lucide-react v0.298.0 - ISC
6321
+ * @license lucide-react v0.468.0 - ISC
6254
6322
  *
6255
6323
  * This source code is licensed under the ISC license.
6256
6324
  * See the LICENSE file in the root directory of this source tree.
@@ -6258,7 +6326,7 @@ lucide-react/dist/esm/icons/zoom-in.js:
6258
6326
 
6259
6327
  lucide-react/dist/esm/icons/zoom-out.js:
6260
6328
  (**
6261
- * @license lucide-react v0.298.0 - ISC
6329
+ * @license lucide-react v0.468.0 - ISC
6262
6330
  *
6263
6331
  * This source code is licensed under the ISC license.
6264
6332
  * See the LICENSE file in the root directory of this source tree.
@@ -6266,7 +6334,7 @@ lucide-react/dist/esm/icons/zoom-out.js:
6266
6334
 
6267
6335
  lucide-react/dist/esm/lucide-react.js:
6268
6336
  (**
6269
- * @license lucide-react v0.298.0 - ISC
6337
+ * @license lucide-react v0.468.0 - ISC
6270
6338
  *
6271
6339
  * This source code is licensed under the ISC license.
6272
6340
  * See the LICENSE file in the root directory of this source tree.