@measured/puck 0.14.0-canary.f81931a → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -93,8 +93,7 @@ var init_react_import = __esm({
93
93
 
94
94
  // ../../node_modules/classnames/index.js
95
95
  var require_classnames = __commonJS({
96
- "../../node_modules/classnames/index.js"(exports2, module2) {
97
- "use strict";
96
+ "../../node_modules/classnames/index.js"(exports, module2) {
98
97
  init_react_import();
99
98
  (function() {
100
99
  "use strict";
@@ -146,7 +145,7 @@ var require_classnames = __commonJS({
146
145
 
147
146
  // ../../node_modules/scheduler/cjs/scheduler.production.min.js
148
147
  var require_scheduler_production_min = __commonJS({
149
- "../../node_modules/scheduler/cjs/scheduler.production.min.js"(exports2) {
148
+ "../../node_modules/scheduler/cjs/scheduler.production.min.js"(exports) {
150
149
  "use strict";
151
150
  init_react_import();
152
151
  function f(a, b) {
@@ -189,12 +188,12 @@ var require_scheduler_production_min = __commonJS({
189
188
  }
190
189
  if ("object" === typeof performance && "function" === typeof performance.now) {
191
190
  l = performance;
192
- exports2.unstable_now = function() {
191
+ exports.unstable_now = function() {
193
192
  return l.now();
194
193
  };
195
194
  } else {
196
195
  p = Date, q = p.now();
197
- exports2.unstable_now = function() {
196
+ exports.unstable_now = function() {
198
197
  return p.now() - q;
199
198
  };
200
199
  }
@@ -248,7 +247,7 @@ var require_scheduler_production_min = __commonJS({
248
247
  v.callback = null;
249
248
  y = v.priorityLevel;
250
249
  var e = d(v.expirationTime <= b);
251
- b = exports2.unstable_now();
250
+ b = exports.unstable_now();
252
251
  "function" === typeof e ? v.callback = e : v === h(r) && k(r);
253
252
  G(b);
254
253
  } else
@@ -273,11 +272,11 @@ var require_scheduler_production_min = __commonJS({
273
272
  var P = 5;
274
273
  var Q = -1;
275
274
  function M() {
276
- return exports2.unstable_now() - Q < P ? false : true;
275
+ return exports.unstable_now() - Q < P ? false : true;
277
276
  }
278
277
  function R() {
279
278
  if (null !== O) {
280
- var a = exports2.unstable_now();
279
+ var a = exports.unstable_now();
281
280
  Q = a;
282
281
  var b = true;
283
282
  try {
@@ -311,31 +310,31 @@ var require_scheduler_production_min = __commonJS({
311
310
  }
312
311
  function K(a, b) {
313
312
  L = D(function() {
314
- a(exports2.unstable_now());
313
+ a(exports.unstable_now());
315
314
  }, b);
316
315
  }
317
- exports2.unstable_IdlePriority = 5;
318
- exports2.unstable_ImmediatePriority = 1;
319
- exports2.unstable_LowPriority = 4;
320
- exports2.unstable_NormalPriority = 3;
321
- exports2.unstable_Profiling = null;
322
- exports2.unstable_UserBlockingPriority = 2;
323
- exports2.unstable_cancelCallback = function(a) {
316
+ exports.unstable_IdlePriority = 5;
317
+ exports.unstable_ImmediatePriority = 1;
318
+ exports.unstable_LowPriority = 4;
319
+ exports.unstable_NormalPriority = 3;
320
+ exports.unstable_Profiling = null;
321
+ exports.unstable_UserBlockingPriority = 2;
322
+ exports.unstable_cancelCallback = function(a) {
324
323
  a.callback = null;
325
324
  };
326
- exports2.unstable_continueExecution = function() {
325
+ exports.unstable_continueExecution = function() {
327
326
  A || z || (A = true, I(J));
328
327
  };
329
- exports2.unstable_forceFrameRate = function(a) {
328
+ exports.unstable_forceFrameRate = function(a) {
330
329
  0 > a || 125 < a ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P = 0 < a ? Math.floor(1e3 / a) : 5;
331
330
  };
332
- exports2.unstable_getCurrentPriorityLevel = function() {
331
+ exports.unstable_getCurrentPriorityLevel = function() {
333
332
  return y;
334
333
  };
335
- exports2.unstable_getFirstCallbackNode = function() {
334
+ exports.unstable_getFirstCallbackNode = function() {
336
335
  return h(r);
337
336
  };
338
- exports2.unstable_next = function(a) {
337
+ exports.unstable_next = function(a) {
339
338
  switch (y) {
340
339
  case 1:
341
340
  case 2:
@@ -353,11 +352,11 @@ var require_scheduler_production_min = __commonJS({
353
352
  y = c;
354
353
  }
355
354
  };
356
- exports2.unstable_pauseExecution = function() {
355
+ exports.unstable_pauseExecution = function() {
357
356
  };
358
- exports2.unstable_requestPaint = function() {
357
+ exports.unstable_requestPaint = function() {
359
358
  };
360
- exports2.unstable_runWithPriority = function(a, b) {
359
+ exports.unstable_runWithPriority = function(a, b) {
361
360
  switch (a) {
362
361
  case 1:
363
362
  case 2:
@@ -376,8 +375,8 @@ var require_scheduler_production_min = __commonJS({
376
375
  y = c;
377
376
  }
378
377
  };
379
- exports2.unstable_scheduleCallback = function(a, b, c) {
380
- var d = exports2.unstable_now();
378
+ exports.unstable_scheduleCallback = function(a, b, c) {
379
+ var d = exports.unstable_now();
381
380
  "object" === typeof c && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d;
382
381
  switch (a) {
383
382
  case 1:
@@ -400,8 +399,8 @@ var require_scheduler_production_min = __commonJS({
400
399
  c > d ? (a.sortIndex = c, f(t, a), null === h(r) && a === h(t) && (B ? (E(L), L = -1) : B = true, K(H, c - d))) : (a.sortIndex = e, f(r, a), A || z || (A = true, I(J)));
401
400
  return a;
402
401
  };
403
- exports2.unstable_shouldYield = M;
404
- exports2.unstable_wrapCallback = function(a) {
402
+ exports.unstable_shouldYield = M;
403
+ exports.unstable_wrapCallback = function(a) {
405
404
  var b = y;
406
405
  return function() {
407
406
  var c = y;
@@ -418,7 +417,7 @@ var require_scheduler_production_min = __commonJS({
418
417
 
419
418
  // ../../node_modules/scheduler/cjs/scheduler.development.js
420
419
  var require_scheduler_development = __commonJS({
421
- "../../node_modules/scheduler/cjs/scheduler.development.js"(exports2) {
420
+ "../../node_modules/scheduler/cjs/scheduler.development.js"(exports) {
422
421
  "use strict";
423
422
  init_react_import();
424
423
  if (process.env.NODE_ENV !== "production") {
@@ -506,13 +505,13 @@ var require_scheduler_development = __commonJS({
506
505
  var hasPerformanceNow = typeof performance === "object" && typeof performance.now === "function";
507
506
  if (hasPerformanceNow) {
508
507
  var localPerformance = performance;
509
- exports2.unstable_now = function() {
508
+ exports.unstable_now = function() {
510
509
  return localPerformance.now();
511
510
  };
512
511
  } else {
513
512
  var localDate = Date;
514
513
  var initialTime = localDate.now();
515
- exports2.unstable_now = function() {
514
+ exports.unstable_now = function() {
516
515
  return localDate.now() - initialTime;
517
516
  };
518
517
  }
@@ -578,7 +577,7 @@ var require_scheduler_development = __commonJS({
578
577
  return workLoop(hasTimeRemaining, initialTime2);
579
578
  } catch (error) {
580
579
  if (currentTask !== null) {
581
- var currentTime = exports2.unstable_now();
580
+ var currentTime = exports.unstable_now();
582
581
  markTaskErrored(currentTask, currentTime);
583
582
  currentTask.isQueued = false;
584
583
  }
@@ -607,7 +606,7 @@ var require_scheduler_development = __commonJS({
607
606
  currentPriorityLevel = currentTask.priorityLevel;
608
607
  var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
609
608
  var continuationCallback = callback(didUserCallbackTimeout);
610
- currentTime = exports2.unstable_now();
609
+ currentTime = exports.unstable_now();
611
610
  if (typeof continuationCallback === "function") {
612
611
  currentTask.callback = continuationCallback;
613
612
  } else {
@@ -683,7 +682,7 @@ var require_scheduler_development = __commonJS({
683
682
  };
684
683
  }
685
684
  function unstable_scheduleCallback(priorityLevel, callback, options) {
686
- var currentTime = exports2.unstable_now();
685
+ var currentTime = exports.unstable_now();
687
686
  var startTime2;
688
687
  if (typeof options === "object" && options !== null) {
689
688
  var delay = options.delay;
@@ -767,7 +766,7 @@ var require_scheduler_development = __commonJS({
767
766
  var frameInterval = frameYieldMs;
768
767
  var startTime = -1;
769
768
  function shouldYieldToHost() {
770
- var timeElapsed = exports2.unstable_now() - startTime;
769
+ var timeElapsed = exports.unstable_now() - startTime;
771
770
  if (timeElapsed < frameInterval) {
772
771
  return false;
773
772
  }
@@ -788,7 +787,7 @@ var require_scheduler_development = __commonJS({
788
787
  }
789
788
  var performWorkUntilDeadline = function() {
790
789
  if (scheduledHostCallback !== null) {
791
- var currentTime = exports2.unstable_now();
790
+ var currentTime = exports.unstable_now();
792
791
  startTime = currentTime;
793
792
  var hasTimeRemaining = true;
794
793
  var hasMoreWork = true;
@@ -832,7 +831,7 @@ var require_scheduler_development = __commonJS({
832
831
  }
833
832
  function requestHostTimeout(callback, ms) {
834
833
  taskTimeoutID = localSetTimeout(function() {
835
- callback(exports2.unstable_now());
834
+ callback(exports.unstable_now());
836
835
  }, ms);
837
836
  }
838
837
  function cancelHostTimeout() {
@@ -841,24 +840,24 @@ var require_scheduler_development = __commonJS({
841
840
  }
842
841
  var unstable_requestPaint = requestPaint;
843
842
  var unstable_Profiling = null;
844
- exports2.unstable_IdlePriority = IdlePriority;
845
- exports2.unstable_ImmediatePriority = ImmediatePriority;
846
- exports2.unstable_LowPriority = LowPriority;
847
- exports2.unstable_NormalPriority = NormalPriority;
848
- exports2.unstable_Profiling = unstable_Profiling;
849
- exports2.unstable_UserBlockingPriority = UserBlockingPriority;
850
- exports2.unstable_cancelCallback = unstable_cancelCallback;
851
- exports2.unstable_continueExecution = unstable_continueExecution;
852
- exports2.unstable_forceFrameRate = forceFrameRate;
853
- exports2.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
854
- exports2.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
855
- exports2.unstable_next = unstable_next;
856
- exports2.unstable_pauseExecution = unstable_pauseExecution;
857
- exports2.unstable_requestPaint = unstable_requestPaint;
858
- exports2.unstable_runWithPriority = unstable_runWithPriority;
859
- exports2.unstable_scheduleCallback = unstable_scheduleCallback;
860
- exports2.unstable_shouldYield = shouldYieldToHost;
861
- exports2.unstable_wrapCallback = unstable_wrapCallback;
843
+ exports.unstable_IdlePriority = IdlePriority;
844
+ exports.unstable_ImmediatePriority = ImmediatePriority;
845
+ exports.unstable_LowPriority = LowPriority;
846
+ exports.unstable_NormalPriority = NormalPriority;
847
+ exports.unstable_Profiling = unstable_Profiling;
848
+ exports.unstable_UserBlockingPriority = UserBlockingPriority;
849
+ exports.unstable_cancelCallback = unstable_cancelCallback;
850
+ exports.unstable_continueExecution = unstable_continueExecution;
851
+ exports.unstable_forceFrameRate = forceFrameRate;
852
+ exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
853
+ exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
854
+ exports.unstable_next = unstable_next;
855
+ exports.unstable_pauseExecution = unstable_pauseExecution;
856
+ exports.unstable_requestPaint = unstable_requestPaint;
857
+ exports.unstable_runWithPriority = unstable_runWithPriority;
858
+ exports.unstable_scheduleCallback = unstable_scheduleCallback;
859
+ exports.unstable_shouldYield = shouldYieldToHost;
860
+ exports.unstable_wrapCallback = unstable_wrapCallback;
862
861
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
863
862
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
864
863
  }
@@ -869,7 +868,7 @@ var require_scheduler_development = __commonJS({
869
868
 
870
869
  // ../../node_modules/scheduler/index.js
871
870
  var require_scheduler = __commonJS({
872
- "../../node_modules/scheduler/index.js"(exports2, module2) {
871
+ "../../node_modules/scheduler/index.js"(exports, module2) {
873
872
  "use strict";
874
873
  init_react_import();
875
874
  if (process.env.NODE_ENV === "production") {
@@ -882,7 +881,7 @@ var require_scheduler = __commonJS({
882
881
 
883
882
  // ../../node_modules/react-dom/cjs/react-dom.production.min.js
884
883
  var require_react_dom_production_min = __commonJS({
885
- "../../node_modules/react-dom/cjs/react-dom.production.min.js"(exports2) {
884
+ "../../node_modules/react-dom/cjs/react-dom.production.min.js"(exports) {
886
885
  "use strict";
887
886
  init_react_import();
888
887
  var aa = require("react");
@@ -7939,14 +7938,14 @@ var require_react_dom_production_min = __commonJS({
7939
7938
  }
7940
7939
  }
7941
7940
  var wl;
7942
- exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = tl;
7943
- exports2.createPortal = function(a, b) {
7941
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = tl;
7942
+ exports.createPortal = function(a, b) {
7944
7943
  var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
7945
7944
  if (!ol(b))
7946
7945
  throw Error(p(200));
7947
7946
  return dl(a, b, null, c);
7948
7947
  };
7949
- exports2.createRoot = function(a, b) {
7948
+ exports.createRoot = function(a, b) {
7950
7949
  if (!ol(a))
7951
7950
  throw Error(p(299));
7952
7951
  var c = false, d = "", e = ll;
@@ -7956,7 +7955,7 @@ var require_react_dom_production_min = __commonJS({
7956
7955
  sf(8 === a.nodeType ? a.parentNode : a);
7957
7956
  return new ml(b);
7958
7957
  };
7959
- exports2.findDOMNode = function(a) {
7958
+ exports.findDOMNode = function(a) {
7960
7959
  if (null == a)
7961
7960
  return null;
7962
7961
  if (1 === a.nodeType)
@@ -7972,15 +7971,15 @@ var require_react_dom_production_min = __commonJS({
7972
7971
  a = null === a ? null : a.stateNode;
7973
7972
  return a;
7974
7973
  };
7975
- exports2.flushSync = function(a) {
7974
+ exports.flushSync = function(a) {
7976
7975
  return Sk(a);
7977
7976
  };
7978
- exports2.hydrate = function(a, b, c) {
7977
+ exports.hydrate = function(a, b, c) {
7979
7978
  if (!pl(b))
7980
7979
  throw Error(p(200));
7981
7980
  return sl(null, a, b, true, c);
7982
7981
  };
7983
- exports2.hydrateRoot = function(a, b, c) {
7982
+ exports.hydrateRoot = function(a, b, c) {
7984
7983
  if (!ol(a))
7985
7984
  throw Error(p(405));
7986
7985
  var d = null != c && c.hydratedSources || null, e = false, f = "", g = ll;
@@ -7996,12 +7995,12 @@ var require_react_dom_production_min = __commonJS({
7996
7995
  );
7997
7996
  return new nl(b);
7998
7997
  };
7999
- exports2.render = function(a, b, c) {
7998
+ exports.render = function(a, b, c) {
8000
7999
  if (!pl(b))
8001
8000
  throw Error(p(200));
8002
8001
  return sl(null, a, b, false, c);
8003
8002
  };
8004
- exports2.unmountComponentAtNode = function(a) {
8003
+ exports.unmountComponentAtNode = function(a) {
8005
8004
  if (!pl(a))
8006
8005
  throw Error(p(40));
8007
8006
  return a._reactRootContainer ? (Sk(function() {
@@ -8011,21 +8010,21 @@ var require_react_dom_production_min = __commonJS({
8011
8010
  });
8012
8011
  }), true) : false;
8013
8012
  };
8014
- exports2.unstable_batchedUpdates = Rk;
8015
- exports2.unstable_renderSubtreeIntoContainer = function(a, b, c, d) {
8013
+ exports.unstable_batchedUpdates = Rk;
8014
+ exports.unstable_renderSubtreeIntoContainer = function(a, b, c, d) {
8016
8015
  if (!pl(c))
8017
8016
  throw Error(p(200));
8018
8017
  if (null == a || void 0 === a._reactInternals)
8019
8018
  throw Error(p(38));
8020
8019
  return sl(a, b, c, false, d);
8021
8020
  };
8022
- exports2.version = "18.2.0-next-9e3b772b8-20220608";
8021
+ exports.version = "18.2.0-next-9e3b772b8-20220608";
8023
8022
  }
8024
8023
  });
8025
8024
 
8026
8025
  // ../../node_modules/react-dom/cjs/react-dom.development.js
8027
8026
  var require_react_dom_development = __commonJS({
8028
- "../../node_modules/react-dom/cjs/react-dom.development.js"(exports2) {
8027
+ "../../node_modules/react-dom/cjs/react-dom.development.js"(exports) {
8029
8028
  "use strict";
8030
8029
  init_react_import();
8031
8030
  if (process.env.NODE_ENV !== "production") {
@@ -29095,18 +29094,18 @@ var require_react_dom_development = __commonJS({
29095
29094
  }
29096
29095
  }
29097
29096
  }
29098
- exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
29099
- exports2.createPortal = createPortal$1;
29100
- exports2.createRoot = createRoot$1;
29101
- exports2.findDOMNode = findDOMNode;
29102
- exports2.flushSync = flushSync$1;
29103
- exports2.hydrate = hydrate;
29104
- exports2.hydrateRoot = hydrateRoot$1;
29105
- exports2.render = render;
29106
- exports2.unmountComponentAtNode = unmountComponentAtNode;
29107
- exports2.unstable_batchedUpdates = batchedUpdates$1;
29108
- exports2.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
29109
- exports2.version = ReactVersion;
29097
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
29098
+ exports.createPortal = createPortal$1;
29099
+ exports.createRoot = createRoot$1;
29100
+ exports.findDOMNode = findDOMNode;
29101
+ exports.flushSync = flushSync$1;
29102
+ exports.hydrate = hydrate;
29103
+ exports.hydrateRoot = hydrateRoot$1;
29104
+ exports.render = render;
29105
+ exports.unmountComponentAtNode = unmountComponentAtNode;
29106
+ exports.unstable_batchedUpdates = batchedUpdates$1;
29107
+ exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
29108
+ exports.version = ReactVersion;
29110
29109
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
29111
29110
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
29112
29111
  }
@@ -29117,7 +29116,7 @@ var require_react_dom_development = __commonJS({
29117
29116
 
29118
29117
  // ../../node_modules/react-dom/index.js
29119
29118
  var require_react_dom = __commonJS({
29120
- "../../node_modules/react-dom/index.js"(exports2, module2) {
29119
+ "../../node_modules/react-dom/index.js"(exports, module2) {
29121
29120
  "use strict";
29122
29121
  init_react_import();
29123
29122
  function checkDCE() {
@@ -29172,19 +29171,9 @@ init_react_import();
29172
29171
  init_react_import();
29173
29172
  var import_react2 = require("react");
29174
29173
 
29175
- // components/Button/Button.module.css
29176
- var Button_default = {
29177
- Button: "Button_Button",
29178
- "Button--medium": "Button_Button--medium",
29179
- "Button--large": "Button_Button--large",
29180
- "Button-icon": "Button_Button-icon",
29181
- "Button--primary": "Button_Button--primary",
29182
- "Button--secondary": "Button_Button--secondary",
29183
- "Button--flush": "Button_Button--flush",
29184
- "Button--disabled": "Button_Button--disabled",
29185
- "Button--fullWidth": "Button_Button--fullWidth",
29186
- "Button-spinner": "Button_Button-spinner"
29187
- };
29174
+ // css-module:/home/runner/work/puck/puck/packages/core/components/Button/Button.module.css#css-module
29175
+ init_react_import();
29176
+ var Button_module_default = { "Button": "_Button_1t64k_1", "Button--medium": "_Button--medium_1t64k_29", "Button--large": "_Button--large_1t64k_37", "Button-icon": "_Button-icon_1t64k_44", "Button--primary": "_Button--primary_1t64k_48", "Button--secondary": "_Button--secondary_1t64k_67", "Button--flush": "_Button--flush_1t64k_84", "Button--disabled": "_Button--disabled_1t64k_88", "Button--fullWidth": "_Button--fullWidth_1t64k_95", "Button-spinner": "_Button-spinner_1t64k_100" };
29188
29177
 
29189
29178
  // lib/get-class-name-factory.ts
29190
29179
  init_react_import();
@@ -29221,7 +29210,7 @@ var get_class_name_factory_default = getClassNameFactory;
29221
29210
  // components/Button/Button.tsx
29222
29211
  var import_react_spinners = require("react-spinners");
29223
29212
  var import_jsx_runtime = require("react/jsx-runtime");
29224
- var getClassName = get_class_name_factory_default("Button", Button_default);
29213
+ var getClassName = get_class_name_factory_default("Button", Button_module_default);
29225
29214
  var Button = ({
29226
29215
  children,
29227
29216
  href,
@@ -29420,16 +29409,9 @@ var Droppable = (props) => {
29420
29409
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(El, __spreadValues({}, props));
29421
29410
  };
29422
29411
 
29423
- // components/Drawer/styles.module.css
29424
- var styles_default = {
29425
- Drawer: "styles_Drawer",
29426
- "DrawerItem-default": "styles_DrawerItem-default",
29427
- "DrawerItem-draggableWrapper": "styles_DrawerItem-draggableWrapper",
29428
- DrawerItem: "styles_DrawerItem",
29429
- "DrawerItem-draggable": "styles_DrawerItem-draggable",
29430
- "Drawer--isDraggingFrom": "styles_Drawer--isDraggingFrom",
29431
- "DrawerItem-name": "styles_DrawerItem-name"
29432
- };
29412
+ // css-module:/home/runner/work/puck/puck/packages/core/components/Drawer/styles.module.css#css-module
29413
+ init_react_import();
29414
+ var styles_module_default = { "Drawer": "_Drawer_6zh0b_1", "DrawerItem-default": "_DrawerItem-default_6zh0b_5", "DrawerItem-draggableWrapper": "_DrawerItem-draggableWrapper_6zh0b_5", "DrawerItem": "_DrawerItem_6zh0b_5", "DrawerItem-draggable": "_DrawerItem-draggable_6zh0b_5", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_6zh0b_31", "DrawerItem-name": "_DrawerItem-name_6zh0b_47" };
29433
29415
 
29434
29416
  // components/Draggable/index.tsx
29435
29417
  init_react_import();
@@ -29524,21 +29506,20 @@ var replace = (list, index, newItem) => {
29524
29506
  return result;
29525
29507
  };
29526
29508
 
29527
- // components/DragIcon/styles.module.css
29528
- var styles_default2 = {
29529
- DragIcon: "styles_DragIcon"
29530
- };
29509
+ // css-module:/home/runner/work/puck/puck/packages/core/components/DragIcon/styles.module.css#css-module
29510
+ init_react_import();
29511
+ var styles_module_default2 = { "DragIcon": "_DragIcon_1p5wn_1" };
29531
29512
 
29532
29513
  // components/DragIcon/index.tsx
29533
29514
  var import_jsx_runtime5 = require("react/jsx-runtime");
29534
- var getClassName2 = get_class_name_factory_default("DragIcon", styles_default2);
29515
+ var getClassName2 = get_class_name_factory_default("DragIcon", styles_module_default2);
29535
29516
  var DragIcon = () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: getClassName2(), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { viewBox: "0 0 20 20", width: "12", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z" }) }) });
29536
29517
 
29537
29518
  // components/Drawer/index.tsx
29538
29519
  var import_react4 = require("react");
29539
29520
  var import_jsx_runtime6 = require("react/jsx-runtime");
29540
- var getClassName3 = get_class_name_factory_default("Drawer", styles_default);
29541
- var getClassNameItem = get_class_name_factory_default("DrawerItem", styles_default);
29521
+ var getClassName3 = get_class_name_factory_default("Drawer", styles_module_default);
29522
+ var getClassNameItem = get_class_name_factory_default("DrawerItem", styles_module_default);
29542
29523
  var drawerContext = (0, import_react4.createContext)({
29543
29524
  droppableId: ""
29544
29525
  });
@@ -29606,22 +29587,9 @@ init_react_import();
29606
29587
  var import_react7 = require("react");
29607
29588
  var import_dnd3 = require("@measured/dnd");
29608
29589
 
29609
- // components/DraggableComponent/styles.module.css
29610
- var styles_default3 = {
29611
- DraggableComponent: "styles_DraggableComponent",
29612
- "DraggableComponent--isDragging": "styles_DraggableComponent--isDragging",
29613
- "DraggableComponent-contents": "styles_DraggableComponent-contents",
29614
- "DraggableComponent-overlay": "styles_DraggableComponent-overlay",
29615
- "DraggableComponent-loadingOverlay": "styles_DraggableComponent-loadingOverlay",
29616
- "DraggableComponent--isLocked": "styles_DraggableComponent--isLocked",
29617
- "DraggableComponent--forceHover": "styles_DraggableComponent--forceHover",
29618
- "DraggableComponent--isSelected": "styles_DraggableComponent--isSelected",
29619
- "DraggableComponent--indicativeHover": "styles_DraggableComponent--indicativeHover",
29620
- "DraggableComponent-actionsOverlay": "styles_DraggableComponent-actionsOverlay",
29621
- "DraggableComponent-actions": "styles_DraggableComponent-actions",
29622
- "DraggableComponent-actionsLabel": "styles_DraggableComponent-actionsLabel",
29623
- "DraggableComponent-action": "styles_DraggableComponent-action"
29624
- };
29590
+ // css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css#css-module
29591
+ init_react_import();
29592
+ var styles_module_default3 = { "DraggableComponent": "_DraggableComponent_1542z_1", "DraggableComponent--isDragging": "_DraggableComponent--isDragging_1542z_11", "DraggableComponent-contents": "_DraggableComponent-contents_1542z_16", "DraggableComponent-overlay": "_DraggableComponent-overlay_1542z_29", "DraggableComponent-loadingOverlay": "_DraggableComponent-loadingOverlay_1542z_49", "DraggableComponent--isLocked": "_DraggableComponent--isLocked_1542z_65", "DraggableComponent--forceHover": "_DraggableComponent--forceHover_1542z_71", "DraggableComponent--isSelected": "_DraggableComponent--isSelected_1542z_76", "DraggableComponent--indicativeHover": "_DraggableComponent--indicativeHover_1542z_81", "DraggableComponent-actionsOverlay": "_DraggableComponent-actionsOverlay_1542z_97", "DraggableComponent-actions": "_DraggableComponent-actions_1542z_97", "DraggableComponent-actionsLabel": "_DraggableComponent-actionsLabel_1542z_127", "DraggableComponent-action": "_DraggableComponent-action_1542z_97" };
29625
29593
 
29626
29594
  // ../../node_modules/lucide-react/dist/esm/lucide-react.js
29627
29595
  init_react_import();
@@ -29911,10 +29879,22 @@ var useModifierHeld = (modifier) => {
29911
29879
  return modifierHeld;
29912
29880
  };
29913
29881
 
29882
+ // lib/is-ios.ts
29883
+ init_react_import();
29884
+ var isIos = () => [
29885
+ "iPad Simulator",
29886
+ "iPhone Simulator",
29887
+ "iPod Simulator",
29888
+ "iPad",
29889
+ "iPhone",
29890
+ "iPod"
29891
+ ].includes(navigator.platform) || // iPad on iOS 13 detection
29892
+ navigator.userAgent.includes("Mac") && "ontouchend" in document;
29893
+
29914
29894
  // components/DraggableComponent/index.tsx
29915
29895
  var import_react_spinners2 = require("react-spinners");
29916
29896
  var import_jsx_runtime7 = require("react/jsx-runtime");
29917
- var getClassName4 = get_class_name_factory_default("DraggableComponent", styles_default3);
29897
+ var getClassName4 = get_class_name_factory_default("DraggableComponent", styles_module_default3);
29918
29898
  var space = 8;
29919
29899
  var actionsOverlayTop = space * 6.5;
29920
29900
  var actionsTop = -(actionsOverlayTop - 8);
@@ -29946,78 +29926,81 @@ var DraggableComponent = ({
29946
29926
  const { status } = useAppContext();
29947
29927
  const El = status !== "LOADING" ? import_dnd3.Draggable : DefaultDraggable;
29948
29928
  (0, import_react7.useEffect)(onMount, []);
29949
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(El, { draggableId: id, index, isDragDisabled, children: (provided, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
29950
- "div",
29951
- __spreadProps(__spreadValues(__spreadValues({
29952
- ref: provided.innerRef
29953
- }, provided.draggableProps), provided.dragHandleProps), {
29954
- className: getClassName4({
29955
- isSelected,
29956
- isModifierHeld,
29957
- isDragging: snapshot.isDragging,
29958
- isLocked,
29959
- forceHover,
29960
- indicativeHover
29961
- }),
29962
- style: __spreadProps(__spreadValues(__spreadValues({}, style), provided.draggableProps.style), {
29963
- cursor: isModifierHeld ? "initial" : "grab"
29964
- }),
29965
- onMouseOver,
29966
- onMouseOut,
29967
- onMouseDown,
29968
- onMouseUp,
29969
- onClick,
29970
- children: [
29971
- debug,
29972
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("loadingOverlay"), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_spinners2.ClipLoader, { "aria-label": "loading", size: 16, color: "inherit" }) }),
29973
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
29974
- "div",
29975
- {
29976
- className: getClassName4("actionsOverlay"),
29977
- style: {
29978
- top: actionsOverlayTop / zoomConfig.zoom
29979
- },
29980
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
29929
+ const [disableSecondaryAnimation, setDisableSecondaryAnimation] = (0, import_react7.useState)(false);
29930
+ (0, import_react7.useEffect)(() => {
29931
+ if (isIos()) {
29932
+ setDisableSecondaryAnimation(true);
29933
+ }
29934
+ }, []);
29935
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
29936
+ El,
29937
+ {
29938
+ draggableId: id,
29939
+ index,
29940
+ isDragDisabled,
29941
+ disableSecondaryAnimation,
29942
+ children: (provided, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
29943
+ "div",
29944
+ __spreadProps(__spreadValues(__spreadValues({
29945
+ ref: provided.innerRef
29946
+ }, provided.draggableProps), provided.dragHandleProps), {
29947
+ className: getClassName4({
29948
+ isSelected,
29949
+ isModifierHeld,
29950
+ isDragging: snapshot.isDragging,
29951
+ isLocked,
29952
+ forceHover,
29953
+ indicativeHover
29954
+ }),
29955
+ style: __spreadProps(__spreadValues(__spreadValues({}, style), provided.draggableProps.style), {
29956
+ cursor: isModifierHeld ? "initial" : "grab"
29957
+ }),
29958
+ onMouseOver,
29959
+ onMouseOut,
29960
+ onMouseDown,
29961
+ onMouseUp,
29962
+ onClick,
29963
+ children: [
29964
+ debug,
29965
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("loadingOverlay"), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_spinners2.ClipLoader, { "aria-label": "loading", size: 16, color: "inherit" }) }),
29966
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
29981
29967
  "div",
29982
29968
  {
29983
- className: getClassName4("actions"),
29969
+ className: getClassName4("actionsOverlay"),
29984
29970
  style: {
29985
- transform: `scale(${1 / zoomConfig.zoom}`,
29986
- top: actionsTop / zoomConfig.zoom,
29987
- right: actionsRight / zoomConfig.zoom
29971
+ top: actionsOverlayTop / zoomConfig.zoom
29988
29972
  },
29989
- children: [
29990
- label && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("actionsLabel"), children: label }),
29991
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { className: getClassName4("action"), onClick: onDuplicate, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Copy, { size: 16 }) }),
29992
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { className: getClassName4("action"), onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Trash, { size: 16 }) })
29993
- ]
29973
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
29974
+ "div",
29975
+ {
29976
+ className: getClassName4("actions"),
29977
+ style: {
29978
+ transform: `scale(${1 / zoomConfig.zoom}`,
29979
+ top: actionsTop / zoomConfig.zoom,
29980
+ right: actionsRight / zoomConfig.zoom
29981
+ },
29982
+ children: [
29983
+ label && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("actionsLabel"), children: label }),
29984
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { className: getClassName4("action"), onClick: onDuplicate, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Copy, { size: 16 }) }),
29985
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { className: getClassName4("action"), onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Trash, { size: 16 }) })
29986
+ ]
29987
+ }
29988
+ )
29994
29989
  }
29995
- )
29996
- }
29997
- ),
29998
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("overlay") }),
29999
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("contents"), children })
30000
- ]
30001
- })
30002
- ) }, id);
29990
+ ),
29991
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("overlay") }),
29992
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassName4("contents"), children })
29993
+ ]
29994
+ })
29995
+ )
29996
+ },
29997
+ id
29998
+ );
30003
29999
  };
30004
30000
 
30005
- // components/DropZone/styles.module.css
30006
- var styles_default4 = {
30007
- DropZone: "styles_DropZone",
30008
- "DropZone-content": "styles_DropZone-content",
30009
- "DropZone--userIsDragging": "styles_DropZone--userIsDragging",
30010
- "DropZone--draggingOverArea": "styles_DropZone--draggingOverArea",
30011
- "DropZone--draggingNewComponent": "styles_DropZone--draggingNewComponent",
30012
- "DropZone--isAreaSelected": "styles_DropZone--isAreaSelected",
30013
- "DropZone--hoveringOverArea": "styles_DropZone--hoveringOverArea",
30014
- "DropZone--isDisabled": "styles_DropZone--isDisabled",
30015
- "DropZone--isRootZone": "styles_DropZone--isRootZone",
30016
- "DropZone--hasChildren": "styles_DropZone--hasChildren",
30017
- "DropZone--isDestination": "styles_DropZone--isDestination",
30018
- "DropZone-item": "styles_DropZone-item",
30019
- "DropZone-hitbox": "styles_DropZone-hitbox"
30020
- };
30001
+ // css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css#css-module
30002
+ init_react_import();
30003
+ var styles_module_default4 = { "DropZone": "_DropZone_w4btq_1", "DropZone-content": "_DropZone-content_w4btq_10", "DropZone--userIsDragging": "_DropZone--userIsDragging_w4btq_15", "DropZone--draggingOverArea": "_DropZone--draggingOverArea_w4btq_19", "DropZone--draggingNewComponent": "_DropZone--draggingNewComponent_w4btq_20", "DropZone--isAreaSelected": "_DropZone--isAreaSelected_w4btq_26", "DropZone--hoveringOverArea": "_DropZone--hoveringOverArea_w4btq_27", "DropZone--isDisabled": "_DropZone--isDisabled_w4btq_28", "DropZone--isRootZone": "_DropZone--isRootZone_w4btq_29", "DropZone--hasChildren": "_DropZone--hasChildren_w4btq_30", "DropZone--isDestination": "_DropZone--isDestination_w4btq_40", "DropZone-item": "_DropZone-item_w4btq_52", "DropZone-hitbox": "_DropZone-hitbox_w4btq_56" };
30021
30004
 
30022
30005
  // components/DropZone/context.tsx
30023
30006
  init_react_import();
@@ -30142,7 +30125,7 @@ var DropZoneProvider = ({
30142
30125
 
30143
30126
  // components/DropZone/index.tsx
30144
30127
  var import_jsx_runtime9 = require("react/jsx-runtime");
30145
- var getClassName5 = get_class_name_factory_default("DropZone", styles_default4);
30128
+ var getClassName5 = get_class_name_factory_default("DropZone", styles_module_default4);
30146
30129
  function DropZoneEdit({ zone, allow, disallow, style }) {
30147
30130
  var _a;
30148
30131
  const appContext2 = useAppContext();
@@ -30454,17 +30437,14 @@ init_react_import();
30454
30437
  init_react_import();
30455
30438
  var import_react10 = require("react");
30456
30439
 
30457
- // components/IconButton/IconButton.module.css
30458
- var IconButton_default = {
30459
- IconButton: "IconButton_IconButton",
30460
- "IconButton--disabled": "IconButton_IconButton--disabled",
30461
- "IconButton-title": "IconButton_IconButton-title"
30462
- };
30440
+ // css-module:/home/runner/work/puck/puck/packages/core/components/IconButton/IconButton.module.css#css-module
30441
+ init_react_import();
30442
+ var IconButton_module_default = { "IconButton": "_IconButton_swpni_1", "IconButton--disabled": "_IconButton--disabled_swpni_20", "IconButton-title": "_IconButton-title_swpni_33" };
30463
30443
 
30464
30444
  // components/IconButton/IconButton.tsx
30465
30445
  var import_react_spinners3 = require("react-spinners");
30466
30446
  var import_jsx_runtime10 = require("react/jsx-runtime");
30467
- var getClassName6 = get_class_name_factory_default("IconButton", IconButton_default);
30447
+ var getClassName6 = get_class_name_factory_default("IconButton", IconButton_module_default);
30468
30448
  var IconButton = ({
30469
30449
  children,
30470
30450
  href,
@@ -30584,39 +30564,20 @@ var usePlaceholderStyle = () => {
30584
30564
  // components/SidebarSection/index.tsx
30585
30565
  init_react_import();
30586
30566
 
30587
- // components/SidebarSection/styles.module.css
30588
- var styles_default5 = {
30589
- SidebarSection: "styles_SidebarSection",
30590
- "SidebarSection-title": "styles_SidebarSection-title",
30591
- "SidebarSection--noBorderTop": "styles_SidebarSection--noBorderTop",
30592
- "SidebarSection-content": "styles_SidebarSection-content",
30593
- "SidebarSection--noPadding": "styles_SidebarSection--noPadding",
30594
- "SidebarSection-breadcrumbLabel": "styles_SidebarSection-breadcrumbLabel",
30595
- "SidebarSection-breadcrumbs": "styles_SidebarSection-breadcrumbs",
30596
- "SidebarSection-breadcrumb": "styles_SidebarSection-breadcrumb",
30597
- "SidebarSection-heading": "styles_SidebarSection-heading",
30598
- "SidebarSection-loadingOverlay": "styles_SidebarSection-loadingOverlay"
30599
- };
30567
+ // css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css#css-module
30568
+ init_react_import();
30569
+ var styles_module_default5 = { "SidebarSection": "_SidebarSection_125qe_1", "SidebarSection-title": "_SidebarSection-title_125qe_12", "SidebarSection--noBorderTop": "_SidebarSection--noBorderTop_125qe_20", "SidebarSection-content": "_SidebarSection-content_125qe_24", "SidebarSection--noPadding": "_SidebarSection--noPadding_125qe_28", "SidebarSection-breadcrumbLabel": "_SidebarSection-breadcrumbLabel_125qe_41", "SidebarSection-breadcrumbs": "_SidebarSection-breadcrumbs_125qe_70", "SidebarSection-breadcrumb": "_SidebarSection-breadcrumb_125qe_41", "SidebarSection-heading": "_SidebarSection-heading_125qe_82", "SidebarSection-loadingOverlay": "_SidebarSection-loadingOverlay_125qe_86" };
30600
30570
 
30601
30571
  // components/Heading/index.tsx
30602
30572
  init_react_import();
30603
30573
 
30604
- // components/Heading/styles.module.css
30605
- var styles_default6 = {
30606
- Heading: "styles_Heading",
30607
- "Heading--xxxxl": "styles_Heading--xxxxl",
30608
- "Heading--xxxl": "styles_Heading--xxxl",
30609
- "Heading--xxl": "styles_Heading--xxl",
30610
- "Heading--xl": "styles_Heading--xl",
30611
- "Heading--l": "styles_Heading--l",
30612
- "Heading--m": "styles_Heading--m",
30613
- "Heading--s": "styles_Heading--s",
30614
- "Heading--xs": "styles_Heading--xs"
30615
- };
30574
+ // css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css#css-module
30575
+ init_react_import();
30576
+ var styles_module_default6 = { "Heading": "_Heading_qxrry_1", "Heading--xxxxl": "_Heading--xxxxl_qxrry_12", "Heading--xxxl": "_Heading--xxxl_qxrry_18", "Heading--xxl": "_Heading--xxl_qxrry_22", "Heading--xl": "_Heading--xl_qxrry_26", "Heading--l": "_Heading--l_qxrry_30", "Heading--m": "_Heading--m_qxrry_34", "Heading--s": "_Heading--s_qxrry_38", "Heading--xs": "_Heading--xs_qxrry_42" };
30616
30577
 
30617
30578
  // components/Heading/index.tsx
30618
30579
  var import_jsx_runtime11 = require("react/jsx-runtime");
30619
- var getClassName7 = get_class_name_factory_default("Heading", styles_default6);
30580
+ var getClassName7 = get_class_name_factory_default("Heading", styles_module_default6);
30620
30581
  var Heading = ({ children, rank, size = "m" }) => {
30621
30582
  const Tag = rank ? `h${rank}` : "span";
30622
30583
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
@@ -30699,7 +30660,7 @@ var useBreadcrumbs = (renderCount) => {
30699
30660
  // components/SidebarSection/index.tsx
30700
30661
  var import_react_spinners4 = require("react-spinners");
30701
30662
  var import_jsx_runtime12 = require("react/jsx-runtime");
30702
- var getClassName8 = get_class_name_factory_default("SidebarSection", styles_default5);
30663
+ var getClassName8 = get_class_name_factory_default("SidebarSection", styles_module_default5);
30703
30664
  var SidebarSection = ({
30704
30665
  children,
30705
30666
  title,
@@ -31309,17 +31270,13 @@ var useResolvedData = (appState, config, dispatch) => {
31309
31270
  // components/MenuBar/index.tsx
31310
31271
  init_react_import();
31311
31272
 
31312
- // components/MenuBar/styles.module.css
31313
- var styles_default7 = {
31314
- MenuBar: "styles_MenuBar",
31315
- "MenuBar--menuOpen": "styles_MenuBar--menuOpen",
31316
- "MenuBar-inner": "styles_MenuBar-inner",
31317
- "MenuBar-history": "styles_MenuBar-history"
31318
- };
31273
+ // css-module:/home/runner/work/puck/puck/packages/core/components/MenuBar/styles.module.css#css-module
31274
+ init_react_import();
31275
+ var styles_module_default7 = { "MenuBar": "_MenuBar_8pf8c_1", "MenuBar--menuOpen": "_MenuBar--menuOpen_8pf8c_14", "MenuBar-inner": "_MenuBar-inner_8pf8c_29", "MenuBar-history": "_MenuBar-history_8pf8c_45" };
31319
31276
 
31320
31277
  // components/MenuBar/index.tsx
31321
31278
  var import_jsx_runtime13 = require("react/jsx-runtime");
31322
- var getClassName9 = get_class_name_factory_default("MenuBar", styles_default7);
31279
+ var getClassName9 = get_class_name_factory_default("MenuBar", styles_module_default7);
31323
31280
  var MenuBar = ({
31324
31281
  appState,
31325
31282
  data = { content: [], root: { props: { title: "" } } },
@@ -31383,24 +31340,9 @@ var MenuBar = ({
31383
31340
  );
31384
31341
  };
31385
31342
 
31386
- // components/Puck/styles.module.css
31387
- var styles_default8 = {
31388
- Puck: "styles_Puck",
31389
- "Puck--leftSideBarVisible": "styles_Puck--leftSideBarVisible",
31390
- "Puck--rightSideBarVisible": "styles_Puck--rightSideBarVisible",
31391
- "Puck-header": "styles_Puck-header",
31392
- "Puck-headerInner": "styles_Puck-headerInner",
31393
- "Puck-headerToggle": "styles_Puck-headerToggle",
31394
- "Puck-rightSideBarToggle": "styles_Puck-rightSideBarToggle",
31395
- "Puck-leftSideBarToggle": "styles_Puck-leftSideBarToggle",
31396
- "Puck-headerTitle": "styles_Puck-headerTitle",
31397
- "Puck-headerPath": "styles_Puck-headerPath",
31398
- "Puck-headerTools": "styles_Puck-headerTools",
31399
- "Puck-menuButton": "styles_Puck-menuButton",
31400
- "Puck--menuOpen": "styles_Puck--menuOpen",
31401
- "Puck-leftSideBar": "styles_Puck-leftSideBar",
31402
- "Puck-rightSideBar": "styles_Puck-rightSideBar"
31403
- };
31343
+ // css-module:/home/runner/work/puck/puck/packages/core/components/Puck/styles.module.css#css-module
31344
+ init_react_import();
31345
+ var styles_module_default8 = { "Puck": "_Puck_u70b9_19", "Puck--mounted": "_Puck--mounted_u70b9_36", "Puck--leftSideBarVisible": "_Puck--leftSideBarVisible_u70b9_40", "Puck--rightSideBarVisible": "_Puck--rightSideBarVisible_u70b9_46", "Puck-mounted": "_Puck-mounted_u70b9_59", "Puck-header": "_Puck-header_u70b9_100", "Puck-headerInner": "_Puck-headerInner_u70b9_109", "Puck-headerToggle": "_Puck-headerToggle_u70b9_119", "Puck-rightSideBarToggle": "_Puck-rightSideBarToggle_u70b9_126", "Puck-leftSideBarToggle": "_Puck-leftSideBarToggle_u70b9_127", "Puck-headerTitle": "_Puck-headerTitle_u70b9_131", "Puck-headerPath": "_Puck-headerPath_u70b9_135", "Puck-headerTools": "_Puck-headerTools_u70b9_142", "Puck-menuButton": "_Puck-menuButton_u70b9_148", "Puck--menuOpen": "_Puck--menuOpen_u70b9_153", "Puck-leftSideBar": "_Puck-leftSideBar_u70b9_127", "Puck-rightSideBar": "_Puck-rightSideBar_u70b9_126", "Puck-portal": "_Puck-portal_u70b9_181" };
31404
31346
 
31405
31347
  // components/Puck/components/Fields/index.tsx
31406
31348
  init_react_import();
@@ -31409,19 +31351,9 @@ var import_react_spinners6 = require("react-spinners");
31409
31351
  // components/InputOrGroup/index.tsx
31410
31352
  init_react_import();
31411
31353
 
31412
- // components/InputOrGroup/styles.module.css
31413
- var styles_default9 = {
31414
- Input: "styles_Input",
31415
- "Input-label": "styles_Input-label",
31416
- "Input-labelIcon": "styles_Input-labelIcon",
31417
- "Input-disabledIcon": "styles_Input-disabledIcon",
31418
- "Input-input": "styles_Input-input",
31419
- "Input--readOnly": "styles_Input--readOnly",
31420
- "Input-radioGroupItems": "styles_Input-radioGroupItems",
31421
- "Input-radio": "styles_Input-radio",
31422
- "Input-radioInner": "styles_Input-radioInner",
31423
- "Input-radioInput": "styles_Input-radioInput"
31424
- };
31354
+ // css-module:/home/runner/work/puck/puck/packages/core/components/InputOrGroup/styles.module.css#css-module
31355
+ init_react_import();
31356
+ var styles_module_default9 = { "Input": "_Input_1qi5b_1", "Input-label": "_Input-label_1qi5b_26", "Input-labelIcon": "_Input-labelIcon_1qi5b_34", "Input-disabledIcon": "_Input-disabledIcon_1qi5b_41", "Input-input": "_Input-input_1qi5b_46", "Input--readOnly": "_Input--readOnly_1qi5b_90", "Input-radioGroupItems": "_Input-radioGroupItems_1qi5b_101", "Input-radio": "_Input-radio_1qi5b_101", "Input-radioInner": "_Input-radioInner_1qi5b_118", "Input-radioInput": "_Input-radioInput_1qi5b_163" };
31425
31357
 
31426
31358
  // components/InputOrGroup/index.tsx
31427
31359
  var import_react18 = require("react");
@@ -31432,22 +31364,9 @@ init_react_import();
31432
31364
  // components/InputOrGroup/fields/ArrayField/index.tsx
31433
31365
  init_react_import();
31434
31366
 
31435
- // components/InputOrGroup/fields/ArrayField/styles.module.css
31436
- var styles_default10 = {
31437
- ArrayField: "styles_ArrayField",
31438
- "ArrayField--isDraggingFrom": "styles_ArrayField--isDraggingFrom",
31439
- "ArrayField-addButton": "styles_ArrayField-addButton",
31440
- "ArrayField--hasItems": "styles_ArrayField--hasItems",
31441
- ArrayFieldItem: "styles_ArrayFieldItem",
31442
- "ArrayFieldItem--isDragging": "styles_ArrayFieldItem--isDragging",
31443
- "ArrayFieldItem--isExpanded": "styles_ArrayFieldItem--isExpanded",
31444
- "ArrayFieldItem-summary": "styles_ArrayFieldItem-summary",
31445
- "ArrayField--addDisabled": "styles_ArrayField--addDisabled",
31446
- "ArrayFieldItem-body": "styles_ArrayFieldItem-body",
31447
- "ArrayFieldItem-fieldset": "styles_ArrayFieldItem-fieldset",
31448
- "ArrayFieldItem-rhs": "styles_ArrayFieldItem-rhs",
31449
- "ArrayFieldItem-actions": "styles_ArrayFieldItem-actions"
31450
- };
31367
+ // css-module:/home/runner/work/puck/puck/packages/core/components/InputOrGroup/fields/ArrayField/styles.module.css#css-module
31368
+ init_react_import();
31369
+ var styles_module_default10 = { "ArrayField": "_ArrayField_1lr58_5", "ArrayField--isDraggingFrom": "_ArrayField--isDraggingFrom_1lr58_13", "ArrayField-addButton": "_ArrayField-addButton_1lr58_18", "ArrayField--hasItems": "_ArrayField--hasItems_1lr58_33", "ArrayFieldItem": "_ArrayFieldItem_1lr58_63", "ArrayFieldItem--isDragging": "_ArrayFieldItem--isDragging_1lr58_71", "ArrayFieldItem--isExpanded": "_ArrayFieldItem--isExpanded_1lr58_81", "ArrayFieldItem-summary": "_ArrayFieldItem-summary_1lr58_97", "ArrayField--addDisabled": "_ArrayField--addDisabled_1lr58_128", "ArrayFieldItem-body": "_ArrayFieldItem-body_1lr58_164", "ArrayFieldItem-fieldset": "_ArrayFieldItem-fieldset_1lr58_173", "ArrayFieldItem-rhs": "_ArrayFieldItem-rhs_1lr58_180", "ArrayFieldItem-actions": "_ArrayFieldItem-actions_1lr58_186" };
31451
31370
 
31452
31371
  // components/InputOrGroup/fields/ArrayField/index.tsx
31453
31372
  var import_react14 = require("react");
@@ -31465,8 +31384,8 @@ var DragDropContext = (props) => {
31465
31384
 
31466
31385
  // components/InputOrGroup/fields/ArrayField/index.tsx
31467
31386
  var import_jsx_runtime15 = require("react/jsx-runtime");
31468
- var getClassName10 = get_class_name_factory_default("ArrayField", styles_default10);
31469
- var getClassNameItem2 = get_class_name_factory_default("ArrayFieldItem", styles_default10);
31387
+ var getClassName10 = get_class_name_factory_default("ArrayField", styles_module_default10);
31388
+ var getClassNameItem2 = get_class_name_factory_default("ArrayFieldItem", styles_module_default10);
31470
31389
  var ArrayField = ({
31471
31390
  field,
31472
31391
  onChange,
@@ -31722,7 +31641,7 @@ var ArrayField = ({
31722
31641
  // components/InputOrGroup/fields/DefaultField/index.tsx
31723
31642
  init_react_import();
31724
31643
  var import_jsx_runtime16 = require("react/jsx-runtime");
31725
- var getClassName11 = get_class_name_factory_default("Input", styles_default9);
31644
+ var getClassName11 = get_class_name_factory_default("Input", styles_module_default9);
31726
31645
  var DefaultField = ({
31727
31646
  field,
31728
31647
  onChange,
@@ -31775,52 +31694,22 @@ var import_react17 = require("react");
31775
31694
  init_react_import();
31776
31695
  var import_react16 = require("react");
31777
31696
 
31778
- // components/ExternalInput/styles.module.css
31779
- var styles_default11 = {
31780
- "ExternalInput-actions": "styles_ExternalInput-actions",
31781
- "ExternalInput-button": "styles_ExternalInput-button",
31782
- "ExternalInput--dataSelected": "styles_ExternalInput--dataSelected",
31783
- "ExternalInput-detachButton": "styles_ExternalInput-detachButton",
31784
- ExternalInputModal: "styles_ExternalInputModal",
31785
- "ExternalInputModal-grid": "styles_ExternalInputModal-grid",
31786
- "ExternalInputModal--filtersToggled": "styles_ExternalInputModal--filtersToggled",
31787
- "ExternalInputModal-filters": "styles_ExternalInputModal-filters",
31788
- "ExternalInputModal-masthead": "styles_ExternalInputModal-masthead",
31789
- "ExternalInputModal-tableWrapper": "styles_ExternalInputModal-tableWrapper",
31790
- "ExternalInputModal-table": "styles_ExternalInputModal-table",
31791
- "ExternalInputModal-thead": "styles_ExternalInputModal-thead",
31792
- "ExternalInputModal-th": "styles_ExternalInputModal-th",
31793
- "ExternalInputModal-td": "styles_ExternalInputModal-td",
31794
- "ExternalInputModal-tr": "styles_ExternalInputModal-tr",
31795
- "ExternalInputModal-tbody": "styles_ExternalInputModal-tbody",
31796
- "ExternalInputModal--hasData": "styles_ExternalInputModal--hasData",
31797
- "ExternalInputModal-loadingBanner": "styles_ExternalInputModal-loadingBanner",
31798
- "ExternalInputModal--isLoading": "styles_ExternalInputModal--isLoading",
31799
- "ExternalInputModal-searchForm": "styles_ExternalInputModal-searchForm",
31800
- "ExternalInputModal-search": "styles_ExternalInputModal-search",
31801
- "ExternalInputModal-searchIcon": "styles_ExternalInputModal-searchIcon",
31802
- "ExternalInputModal-searchIconText": "styles_ExternalInputModal-searchIconText",
31803
- "ExternalInputModal-searchInput": "styles_ExternalInputModal-searchInput",
31804
- "ExternalInputModal-searchActions": "styles_ExternalInputModal-searchActions",
31805
- "ExternalInputModal-searchActionIcon": "styles_ExternalInputModal-searchActionIcon",
31806
- "ExternalInputModal-footer": "styles_ExternalInputModal-footer"
31807
- };
31697
+ // css-module:/home/runner/work/puck/puck/packages/core/components/ExternalInput/styles.module.css#css-module
31698
+ init_react_import();
31699
+ var styles_module_default11 = { "ExternalInput-actions": "_ExternalInput-actions_19obq_1", "ExternalInput-button": "_ExternalInput-button_19obq_5", "ExternalInput--dataSelected": "_ExternalInput--dataSelected_19obq_25", "ExternalInput-detachButton": "_ExternalInput-detachButton_19obq_32", "ExternalInputModal": "_ExternalInputModal_19obq_74", "ExternalInputModal-grid": "_ExternalInputModal-grid_19obq_84", "ExternalInputModal--filtersToggled": "_ExternalInputModal--filtersToggled_19obq_95", "ExternalInputModal-filters": "_ExternalInputModal-filters_19obq_100", "ExternalInputModal-masthead": "_ExternalInputModal-masthead_19obq_119", "ExternalInputModal-tableWrapper": "_ExternalInputModal-tableWrapper_19obq_128", "ExternalInputModal-table": "_ExternalInputModal-table_19obq_128", "ExternalInputModal-thead": "_ExternalInputModal-thead_19obq_144", "ExternalInputModal-th": "_ExternalInputModal-th_19obq_144", "ExternalInputModal-td": "_ExternalInputModal-td_19obq_159", "ExternalInputModal-tr": "_ExternalInputModal-tr_19obq_164", "ExternalInputModal-tbody": "_ExternalInputModal-tbody_19obq_171", "ExternalInputModal--hasData": "_ExternalInputModal--hasData_19obq_197", "ExternalInputModal-loadingBanner": "_ExternalInputModal-loadingBanner_19obq_201", "ExternalInputModal--isLoading": "_ExternalInputModal--isLoading_19obq_218", "ExternalInputModal-searchForm": "_ExternalInputModal-searchForm_19obq_222", "ExternalInputModal-search": "_ExternalInputModal-search_19obq_222", "ExternalInputModal-searchIcon": "_ExternalInputModal-searchIcon_19obq_259", "ExternalInputModal-searchIconText": "_ExternalInputModal-searchIconText_19obq_284", "ExternalInputModal-searchInput": "_ExternalInputModal-searchInput_19obq_294", "ExternalInputModal-searchActions": "_ExternalInputModal-searchActions_19obq_308", "ExternalInputModal-searchActionIcon": "_ExternalInputModal-searchActionIcon_19obq_321", "ExternalInputModal-footer": "_ExternalInputModal-footer_19obq_325" };
31808
31700
 
31809
31701
  // components/Modal/index.tsx
31810
31702
  init_react_import();
31811
31703
  var import_react15 = require("react");
31812
31704
 
31813
- // components/Modal/styles.module.css
31814
- var styles_default12 = {
31815
- Modal: "styles_Modal",
31816
- "Modal--isOpen": "styles_Modal--isOpen",
31817
- "Modal-inner": "styles_Modal-inner"
31818
- };
31705
+ // css-module:/home/runner/work/puck/puck/packages/core/components/Modal/styles.module.css#css-module
31706
+ init_react_import();
31707
+ var styles_module_default12 = { "Modal": "_Modal_ikbaj_1", "Modal--isOpen": "_Modal--isOpen_ikbaj_15", "Modal-inner": "_Modal-inner_ikbaj_19" };
31819
31708
 
31820
31709
  // components/Modal/index.tsx
31821
31710
  var import_react_dom = __toESM(require_react_dom());
31822
31711
  var import_jsx_runtime17 = require("react/jsx-runtime");
31823
- var getClassName12 = get_class_name_factory_default("Modal", styles_default12);
31712
+ var getClassName12 = get_class_name_factory_default("Modal", styles_module_default12);
31824
31713
  var Modal = ({
31825
31714
  children,
31826
31715
  onClose,
@@ -31849,8 +31738,8 @@ var Modal = ({
31849
31738
  // components/ExternalInput/index.tsx
31850
31739
  var import_react_spinners5 = require("react-spinners");
31851
31740
  var import_jsx_runtime18 = require("react/jsx-runtime");
31852
- var getClassName13 = get_class_name_factory_default("ExternalInput", styles_default11);
31853
- var getClassNameModal = get_class_name_factory_default("ExternalInputModal", styles_default11);
31741
+ var getClassName13 = get_class_name_factory_default("ExternalInput", styles_module_default11);
31742
+ var getClassNameModal = get_class_name_factory_default("ExternalInputModal", styles_module_default11);
31854
31743
  var dataCache = {};
31855
31744
  var ExternalInput = ({
31856
31745
  field,
@@ -32102,7 +31991,7 @@ var ExternalField = ({
32102
31991
  // components/InputOrGroup/fields/RadioField/index.tsx
32103
31992
  init_react_import();
32104
31993
  var import_jsx_runtime20 = require("react/jsx-runtime");
32105
- var getClassName14 = get_class_name_factory_default("Input", styles_default9);
31994
+ var getClassName14 = get_class_name_factory_default("Input", styles_module_default9);
32106
31995
  var RadioField = ({
32107
31996
  field,
32108
31997
  onChange,
@@ -32157,7 +32046,7 @@ var RadioField = ({
32157
32046
  // components/InputOrGroup/fields/SelectField/index.tsx
32158
32047
  init_react_import();
32159
32048
  var import_jsx_runtime21 = require("react/jsx-runtime");
32160
- var getClassName15 = get_class_name_factory_default("Input", styles_default9);
32049
+ var getClassName15 = get_class_name_factory_default("Input", styles_module_default9);
32161
32050
  var SelectField = ({
32162
32051
  field,
32163
32052
  onChange,
@@ -32207,7 +32096,7 @@ var SelectField = ({
32207
32096
  // components/InputOrGroup/fields/TextareaField/index.tsx
32208
32097
  init_react_import();
32209
32098
  var import_jsx_runtime22 = require("react/jsx-runtime");
32210
- var getClassName16 = get_class_name_factory_default("Input", styles_default9);
32099
+ var getClassName16 = get_class_name_factory_default("Input", styles_module_default9);
32211
32100
  var TextareaField = ({
32212
32101
  onChange,
32213
32102
  readOnly,
@@ -32246,16 +32135,14 @@ var import_use_debounce2 = require("use-debounce");
32246
32135
  // components/InputOrGroup/fields/ObjectField/index.tsx
32247
32136
  init_react_import();
32248
32137
 
32249
- // components/InputOrGroup/fields/ObjectField/styles.module.css
32250
- var styles_default13 = {
32251
- ObjectField: "styles_ObjectField",
32252
- "ObjectField-fieldset": "styles_ObjectField-fieldset"
32253
- };
32138
+ // css-module:/home/runner/work/puck/puck/packages/core/components/InputOrGroup/fields/ObjectField/styles.module.css#css-module
32139
+ init_react_import();
32140
+ var styles_module_default13 = { "ObjectField": "_ObjectField_15j63_5", "ObjectField-fieldset": "_ObjectField-fieldset_15j63_13" };
32254
32141
 
32255
32142
  // components/InputOrGroup/fields/ObjectField/index.tsx
32256
32143
  var import_jsx_runtime23 = require("react/jsx-runtime");
32257
- var getClassName17 = get_class_name_factory_default("ObjectField", styles_default13);
32258
- var getClassNameItem3 = get_class_name_factory_default("ObjectFieldItem", styles_default13);
32144
+ var getClassName17 = get_class_name_factory_default("ObjectField", styles_module_default13);
32145
+ var getClassNameItem3 = get_class_name_factory_default("ObjectFieldItem", styles_module_default13);
32259
32146
  var ObjectField = ({
32260
32147
  field,
32261
32148
  onChange,
@@ -32309,7 +32196,7 @@ var ObjectField = ({
32309
32196
 
32310
32197
  // components/InputOrGroup/index.tsx
32311
32198
  var import_jsx_runtime24 = require("react/jsx-runtime");
32312
- var getClassName18 = get_class_name_factory_default("Input", styles_default9);
32199
+ var getClassName18 = get_class_name_factory_default("Input", styles_module_default9);
32313
32200
  var FieldLabel = ({
32314
32201
  children,
32315
32202
  icon,
@@ -32412,16 +32299,14 @@ var InputOrGroup = (_a) => {
32412
32299
  return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Render2, __spreadProps(__spreadValues({}, mergedProps), { children }));
32413
32300
  };
32414
32301
 
32415
- // components/Puck/components/Fields/styles.module.css
32416
- var styles_default14 = {
32417
- PuckFields: "styles_PuckFields",
32418
- "PuckFields-loadingOverlay": "styles_PuckFields-loadingOverlay"
32419
- };
32302
+ // css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css#css-module
32303
+ init_react_import();
32304
+ var styles_module_default14 = { "PuckFields": "_PuckFields_17k3p_1", "PuckFields-loadingOverlay": "_PuckFields-loadingOverlay_17k3p_6" };
32420
32305
 
32421
32306
  // components/Puck/components/Fields/index.tsx
32422
32307
  var import_react19 = require("react");
32423
32308
  var import_jsx_runtime25 = require("react/jsx-runtime");
32424
- var getClassName19 = get_class_name_factory_default("PuckFields", styles_default14);
32309
+ var getClassName19 = get_class_name_factory_default("PuckFields", styles_module_default14);
32425
32310
  var defaultPageFields = {
32426
32311
  title: { type: "text" }
32427
32312
  };
@@ -32571,18 +32456,13 @@ var import_react20 = require("react");
32571
32456
  // components/ComponentList/index.tsx
32572
32457
  init_react_import();
32573
32458
 
32574
- // components/ComponentList/styles.module.css
32575
- var styles_default15 = {
32576
- ComponentList: "styles_ComponentList",
32577
- "ComponentList--isExpanded": "styles_ComponentList--isExpanded",
32578
- "ComponentList-content": "styles_ComponentList-content",
32579
- "ComponentList-title": "styles_ComponentList-title",
32580
- "ComponentList-titleIcon": "styles_ComponentList-titleIcon"
32581
- };
32459
+ // css-module:/home/runner/work/puck/puck/packages/core/components/ComponentList/styles.module.css#css-module
32460
+ init_react_import();
32461
+ var styles_module_default15 = { "ComponentList": "_ComponentList_odh9d_1", "ComponentList--isExpanded": "_ComponentList--isExpanded_odh9d_5", "ComponentList-content": "_ComponentList-content_odh9d_9", "ComponentList-title": "_ComponentList-title_odh9d_17", "ComponentList-titleIcon": "_ComponentList-titleIcon_odh9d_53" };
32582
32462
 
32583
32463
  // components/ComponentList/index.tsx
32584
32464
  var import_jsx_runtime26 = require("react/jsx-runtime");
32585
- var getClassName20 = get_class_name_factory_default("ComponentList", styles_default15);
32465
+ var getClassName20 = get_class_name_factory_default("ComponentList", styles_module_default15);
32586
32466
  var ComponentListItem = ({
32587
32467
  name,
32588
32468
  label,
@@ -32718,15 +32598,13 @@ init_react_import();
32718
32598
  var import_react22 = require("react");
32719
32599
  var import_auto_frame_component = __toESM(require("@measured/auto-frame-component"));
32720
32600
 
32721
- // components/Puck/components/Preview/styles.module.css
32722
- var styles_default16 = {
32723
- PuckPreview: "styles_PuckPreview",
32724
- "PuckPreview-frame": "styles_PuckPreview-frame"
32725
- };
32601
+ // css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Preview/styles.module.css#css-module
32602
+ init_react_import();
32603
+ var styles_module_default16 = { "PuckPreview": "_PuckPreview_1mia0_1", "PuckPreview-frame": "_PuckPreview-frame_1mia0_5" };
32726
32604
 
32727
32605
  // components/Puck/components/Preview/index.tsx
32728
32606
  var import_jsx_runtime29 = require("react/jsx-runtime");
32729
- var getClassName21 = get_class_name_factory_default("PuckPreview", styles_default16);
32607
+ var getClassName21 = get_class_name_factory_default("PuckPreview", styles_module_default16);
32730
32608
  var Preview = ({ id = "puck-preview" }) => {
32731
32609
  const { config, dispatch, state, setStatus, iframe } = useAppContext();
32732
32610
  const Page = (0, import_react22.useCallback)(
@@ -32795,24 +32673,9 @@ var areaContainsZones = (data, area) => {
32795
32673
  // components/LayerTree/index.tsx
32796
32674
  init_react_import();
32797
32675
 
32798
- // components/LayerTree/styles.module.css
32799
- var styles_default17 = {
32800
- LayerTree: "styles_LayerTree",
32801
- "LayerTree-zoneTitle": "styles_LayerTree-zoneTitle",
32802
- "LayerTree-helper": "styles_LayerTree-helper",
32803
- Layer: "styles_Layer",
32804
- "Layer-inner": "styles_Layer-inner",
32805
- "Layer--containsZone": "styles_Layer--containsZone",
32806
- "Layer-clickable": "styles_Layer-clickable",
32807
- "Layer--isSelected": "styles_Layer--isSelected",
32808
- "Layer-chevron": "styles_Layer-chevron",
32809
- "Layer--childIsSelected": "styles_Layer--childIsSelected",
32810
- "Layer-zones": "styles_Layer-zones",
32811
- "Layer-title": "styles_Layer-title",
32812
- "Layer-name": "styles_Layer-name",
32813
- "Layer-icon": "styles_Layer-icon",
32814
- "Layer-zoneIcon": "styles_Layer-zoneIcon"
32815
- };
32676
+ // css-module:/home/runner/work/puck/puck/packages/core/components/LayerTree/styles.module.css#css-module
32677
+ init_react_import();
32678
+ var styles_module_default17 = { "LayerTree": "_LayerTree_1pgw8_1", "LayerTree-zoneTitle": "_LayerTree-zoneTitle_1pgw8_11", "LayerTree-helper": "_LayerTree-helper_1pgw8_17", "Layer": "_Layer_1pgw8_1", "Layer-inner": "_Layer-inner_1pgw8_29", "Layer--containsZone": "_Layer--containsZone_1pgw8_35", "Layer-clickable": "_Layer-clickable_1pgw8_39", "Layer--isSelected": "_Layer--isSelected_1pgw8_61", "Layer-chevron": "_Layer-chevron_1pgw8_77", "Layer--childIsSelected": "_Layer--childIsSelected_1pgw8_78", "Layer-zones": "_Layer-zones_1pgw8_82", "Layer-title": "_Layer-title_1pgw8_96", "Layer-name": "_Layer-name_1pgw8_105", "Layer-icon": "_Layer-icon_1pgw8_111", "Layer-zoneIcon": "_Layer-zoneIcon_1pgw8_116" };
32816
32679
 
32817
32680
  // lib/scroll-into-view.ts
32818
32681
  init_react_import();
@@ -32841,8 +32704,8 @@ var isChildOfZone = (item, maybeChild, ctx) => {
32841
32704
 
32842
32705
  // components/LayerTree/index.tsx
32843
32706
  var import_jsx_runtime30 = require("react/jsx-runtime");
32844
- var getClassName22 = get_class_name_factory_default("LayerTree", styles_default17);
32845
- var getClassNameLayer = get_class_name_factory_default("Layer", styles_default17);
32707
+ var getClassName22 = get_class_name_factory_default("LayerTree", styles_module_default17);
32708
+ var getClassNameLayer = get_class_name_factory_default("Layer", styles_module_default17);
32846
32709
  var LayerTree = ({
32847
32710
  data,
32848
32711
  config,
@@ -33242,14 +33105,9 @@ var import_react27 = require("react");
33242
33105
  init_react_import();
33243
33106
  var import_react26 = require("react");
33244
33107
 
33245
- // components/ViewportControls/styles.module.css
33246
- var styles_default18 = {
33247
- ViewportControls: "styles_ViewportControls",
33248
- "ViewportControls-divider": "styles_ViewportControls-divider",
33249
- "ViewportControls-zoomSelect": "styles_ViewportControls-zoomSelect",
33250
- "ViewportButton--isActive": "styles_ViewportButton--isActive",
33251
- "ViewportButton-inner": "styles_ViewportButton-inner"
33252
- };
33108
+ // css-module:/home/runner/work/puck/puck/packages/core/components/ViewportControls/styles.module.css#css-module
33109
+ init_react_import();
33110
+ var styles_module_default18 = { "ViewportControls": "_ViewportControls_3zdvn_1", "ViewportControls-divider": "_ViewportControls-divider_3zdvn_15", "ViewportControls-zoomSelect": "_ViewportControls-zoomSelect_3zdvn_21", "ViewportButton--isActive": "_ViewportButton--isActive_3zdvn_33", "ViewportButton-inner": "_ViewportButton-inner_3zdvn_33" };
33253
33111
 
33254
33112
  // components/ViewportControls/index.tsx
33255
33113
  var import_jsx_runtime32 = require("react/jsx-runtime");
@@ -33258,8 +33116,8 @@ var icons = {
33258
33116
  Tablet: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Tablet, { size: 16 }),
33259
33117
  Monitor: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Monitor, { size: 16 })
33260
33118
  };
33261
- var getClassName23 = get_class_name_factory_default("ViewportControls", styles_default18);
33262
- var getClassNameButton = get_class_name_factory_default("ViewportButton", styles_default18);
33119
+ var getClassName23 = get_class_name_factory_default("ViewportControls", styles_module_default18);
33120
+ var getClassNameButton = get_class_name_factory_default("ViewportButton", styles_module_default18);
33263
33121
  var ViewportButton = ({
33264
33122
  children,
33265
33123
  height = "auto",
@@ -33385,14 +33243,9 @@ var ViewportControls = ({
33385
33243
  ] });
33386
33244
  };
33387
33245
 
33388
- // components/Puck/components/Canvas/styles.module.css
33389
- var styles_default19 = {
33390
- PuckCanvas: "styles_PuckCanvas",
33391
- "PuckCanvas-controls": "styles_PuckCanvas-controls",
33392
- "PuckCanvas-inner": "styles_PuckCanvas-inner",
33393
- "PuckCanvas-root": "styles_PuckCanvas-root",
33394
- "PuckCanvas--ready": "styles_PuckCanvas--ready"
33395
- };
33246
+ // css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css#css-module
33247
+ init_react_import();
33248
+ var styles_module_default19 = { "PuckCanvas": "_PuckCanvas_6zd4y_1", "PuckCanvas-controls": "_PuckCanvas-controls_6zd4y_16", "PuckCanvas-inner": "_PuckCanvas-inner_6zd4y_21", "PuckCanvas-root": "_PuckCanvas-root_6zd4y_32", "PuckCanvas--ready": "_PuckCanvas--ready_6zd4y_56" };
33396
33249
 
33397
33250
  // lib/get-zoom-config.ts
33398
33251
  init_react_import();
@@ -33426,7 +33279,7 @@ var getZoomConfig = (uiViewport, frame, zoom) => {
33426
33279
 
33427
33280
  // components/Puck/components/Canvas/index.tsx
33428
33281
  var import_jsx_runtime33 = require("react/jsx-runtime");
33429
- var getClassName24 = get_class_name_factory_default("PuckCanvas", styles_default19);
33282
+ var getClassName24 = get_class_name_factory_default("PuckCanvas", styles_module_default19);
33430
33283
  var ZOOM_ON_CHANGE = true;
33431
33284
  var Canvas = () => {
33432
33285
  const { status, iframe } = useAppContext();
@@ -33532,6 +33385,7 @@ var Canvas = () => {
33532
33385
  transition: showTransition ? "width 150ms ease-out, height 150ms ease-out, transform 150ms ease-out" : "",
33533
33386
  overflow: iframe.enabled ? void 0 : "auto"
33534
33387
  },
33388
+ suppressHydrationWarning: true,
33535
33389
  children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CustomPreview, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Preview, {}) })
33536
33390
  }
33537
33391
  ) })
@@ -33542,7 +33396,7 @@ var Canvas = () => {
33542
33396
 
33543
33397
  // components/Puck/index.tsx
33544
33398
  var import_jsx_runtime34 = require("react/jsx-runtime");
33545
- var getClassName25 = get_class_name_factory_default("Puck", styles_default8);
33399
+ var getClassName25 = get_class_name_factory_default("Puck", styles_module_default8);
33546
33400
  function Puck({
33547
33401
  children,
33548
33402
  config,
@@ -33571,6 +33425,12 @@ function Puck({
33571
33425
  const initial = __spreadValues(__spreadValues({}, defaultAppState.ui), initialUi);
33572
33426
  let clientUiState = {};
33573
33427
  if (typeof window !== "undefined") {
33428
+ if (window.matchMedia("(max-width: 638px)").matches) {
33429
+ clientUiState = __spreadProps(__spreadValues({}, clientUiState), {
33430
+ leftSideBarVisible: false,
33431
+ rightSideBarVisible: false
33432
+ });
33433
+ }
33574
33434
  const viewportWidth = window.innerWidth;
33575
33435
  const viewportDifferences = Object.entries(viewports).map(([key, value]) => ({
33576
33436
  key,
@@ -33578,17 +33438,14 @@ function Puck({
33578
33438
  })).sort((a, b) => a.diff > b.diff ? 1 : -1);
33579
33439
  const closestViewport = viewportDifferences[0].key;
33580
33440
  if (iframe.enabled) {
33581
- clientUiState = __spreadProps(__spreadValues({}, window.matchMedia("(min-width: 638px)").matches ? {} : {
33582
- leftSideBarVisible: false,
33583
- rightSideBarVisible: false
33584
- }), {
33441
+ clientUiState = {
33585
33442
  viewports: __spreadProps(__spreadValues({}, initial.viewports), {
33586
33443
  current: __spreadProps(__spreadValues({}, initial.viewports.current), {
33587
33444
  height: ((_b = (_a2 = initialUi == null ? void 0 : initialUi.viewports) == null ? void 0 : _a2.current) == null ? void 0 : _b.height) || viewports[closestViewport].height || "auto",
33588
33445
  width: ((_d = (_c = initialUi == null ? void 0 : initialUi.viewports) == null ? void 0 : _c.current) == null ? void 0 : _d.width) || viewports[closestViewport].width
33589
33446
  })
33590
33447
  })
33591
- });
33448
+ };
33592
33449
  }
33593
33450
  }
33594
33451
  return __spreadProps(__spreadValues({}, defaultAppState), {
@@ -33734,199 +33591,208 @@ function Puck({
33734
33591
  () => loadedOverrides.headerActions || defaultHeaderActionsRender,
33735
33592
  [loadedOverrides]
33736
33593
  );
33737
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "Puck", children: [
33738
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33739
- AppProvider,
33740
- {
33741
- value: {
33742
- state: appState,
33743
- dispatch,
33744
- config,
33745
- componentState,
33746
- resolveData,
33747
- plugins,
33748
- overrides: loadedOverrides,
33749
- history,
33750
- viewports,
33751
- iframe
33752
- },
33753
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33754
- DragDropContext,
33755
- {
33756
- onDragUpdate: (update) => {
33757
- setDraggedItem(__spreadValues(__spreadValues({}, draggedItem), update));
33758
- onDragStartOrUpdate(update);
33759
- },
33760
- onBeforeDragStart: (start) => {
33761
- onDragStartOrUpdate(start);
33762
- setItemSelector(null);
33763
- dispatch({ type: "setUi", ui: { isDragging: true } });
33764
- },
33765
- onDragEnd: (droppedItem) => {
33766
- setDraggedItem(void 0);
33767
- dispatch({ type: "setUi", ui: { isDragging: false } });
33768
- if (!droppedItem.destination) {
33769
- return;
33770
- }
33771
- if (droppedItem.source.droppableId.startsWith("component-list") && droppedItem.destination) {
33772
- const [_, componentType] = droppedItem.draggableId.split("::");
33594
+ const [mounted, setMounted] = (0, import_react28.useState)(false);
33595
+ (0, import_react28.useEffect)(() => {
33596
+ setMounted(true);
33597
+ }, []);
33598
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "Puck", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33599
+ AppProvider,
33600
+ {
33601
+ value: {
33602
+ state: appState,
33603
+ dispatch,
33604
+ config,
33605
+ componentState,
33606
+ resolveData,
33607
+ plugins,
33608
+ overrides: loadedOverrides,
33609
+ history,
33610
+ viewports,
33611
+ iframe
33612
+ },
33613
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33614
+ DragDropContext,
33615
+ {
33616
+ onDragUpdate: (update) => {
33617
+ setDraggedItem(__spreadValues(__spreadValues({}, draggedItem), update));
33618
+ onDragStartOrUpdate(update);
33619
+ },
33620
+ onBeforeDragStart: (start) => {
33621
+ onDragStartOrUpdate(start);
33622
+ setItemSelector(null);
33623
+ dispatch({ type: "setUi", ui: { isDragging: true } });
33624
+ },
33625
+ onDragEnd: (droppedItem) => {
33626
+ setDraggedItem(void 0);
33627
+ dispatch({ type: "setUi", ui: { isDragging: false } });
33628
+ if (!droppedItem.destination) {
33629
+ return;
33630
+ }
33631
+ if (droppedItem.source.droppableId.startsWith("component-list") && droppedItem.destination) {
33632
+ const [_, componentType] = droppedItem.draggableId.split("::");
33633
+ dispatch({
33634
+ type: "insert",
33635
+ componentType: componentType || droppedItem.draggableId,
33636
+ destinationIndex: droppedItem.destination.index,
33637
+ destinationZone: droppedItem.destination.droppableId
33638
+ });
33639
+ setItemSelector({
33640
+ index: droppedItem.destination.index,
33641
+ zone: droppedItem.destination.droppableId
33642
+ });
33643
+ return;
33644
+ } else {
33645
+ const { source, destination } = droppedItem;
33646
+ if (source.droppableId === destination.droppableId) {
33773
33647
  dispatch({
33774
- type: "insert",
33775
- componentType: componentType || droppedItem.draggableId,
33776
- destinationIndex: droppedItem.destination.index,
33777
- destinationZone: droppedItem.destination.droppableId
33778
- });
33779
- setItemSelector({
33780
- index: droppedItem.destination.index,
33781
- zone: droppedItem.destination.droppableId
33648
+ type: "reorder",
33649
+ sourceIndex: source.index,
33650
+ destinationIndex: destination.index,
33651
+ destinationZone: destination.droppableId
33782
33652
  });
33783
- return;
33784
33653
  } else {
33785
- const { source, destination } = droppedItem;
33786
- if (source.droppableId === destination.droppableId) {
33787
- dispatch({
33788
- type: "reorder",
33789
- sourceIndex: source.index,
33790
- destinationIndex: destination.index,
33791
- destinationZone: destination.droppableId
33792
- });
33793
- } else {
33794
- dispatch({
33795
- type: "move",
33796
- sourceZone: source.droppableId,
33797
- sourceIndex: source.index,
33798
- destinationIndex: destination.index,
33799
- destinationZone: destination.droppableId
33800
- });
33801
- }
33802
- setItemSelector({
33803
- index: destination.index,
33804
- zone: destination.droppableId
33654
+ dispatch({
33655
+ type: "move",
33656
+ sourceZone: source.droppableId,
33657
+ sourceIndex: source.index,
33658
+ destinationIndex: destination.index,
33659
+ destinationZone: destination.droppableId
33805
33660
  });
33806
33661
  }
33807
- },
33808
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33809
- DropZoneProvider,
33810
- {
33811
- value: {
33812
- data,
33813
- itemSelector,
33814
- setItemSelector,
33815
- config,
33816
- dispatch,
33817
- draggedItem,
33818
- placeholderStyle,
33819
- mode: "edit",
33820
- areaId: "root"
33821
- },
33822
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomPuck, { children: children || /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
33823
- "div",
33824
- {
33825
- className: getClassName25({
33826
- leftSideBarVisible,
33827
- menuOpen,
33828
- rightSideBarVisible
33829
- }),
33830
- children: [
33831
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33832
- CustomHeader,
33833
- {
33834
- actions: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
33835
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomHeaderActions, {}),
33836
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33837
- Button,
33662
+ setItemSelector({
33663
+ index: destination.index,
33664
+ zone: destination.droppableId
33665
+ });
33666
+ }
33667
+ },
33668
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33669
+ DropZoneProvider,
33670
+ {
33671
+ value: {
33672
+ data,
33673
+ itemSelector,
33674
+ setItemSelector,
33675
+ config,
33676
+ dispatch,
33677
+ draggedItem,
33678
+ placeholderStyle,
33679
+ mode: "edit",
33680
+ areaId: "root"
33681
+ },
33682
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomPuck, { children: children || /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
33683
+ "div",
33684
+ {
33685
+ className: getClassName25({
33686
+ leftSideBarVisible,
33687
+ menuOpen,
33688
+ mounted,
33689
+ rightSideBarVisible
33690
+ }),
33691
+ children: [
33692
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33693
+ CustomHeader,
33694
+ {
33695
+ actions: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
33696
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomHeaderActions, {}),
33697
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33698
+ Button,
33699
+ {
33700
+ onClick: () => {
33701
+ onPublish && onPublish(data);
33702
+ },
33703
+ icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Globe, { size: "14px" }),
33704
+ children: "Publish"
33705
+ }
33706
+ )
33707
+ ] }),
33708
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("header", { className: getClassName25("header"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerInner"), children: [
33709
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerToggle"), children: [
33710
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("leftSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33711
+ IconButton,
33838
33712
  {
33839
33713
  onClick: () => {
33840
- onPublish && onPublish(data);
33714
+ toggleSidebars("left");
33841
33715
  },
33842
- icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Globe, { size: "14px" }),
33843
- children: "Publish"
33716
+ title: "Toggle left sidebar",
33717
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(PanelLeft, { focusable: "false" })
33844
33718
  }
33845
- )
33719
+ ) }),
33720
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("rightSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33721
+ IconButton,
33722
+ {
33723
+ onClick: () => {
33724
+ toggleSidebars("right");
33725
+ },
33726
+ title: "Toggle right sidebar",
33727
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(PanelRight, { focusable: "false" })
33728
+ }
33729
+ ) })
33846
33730
  ] }),
33847
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("header", { className: getClassName25("header"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerInner"), children: [
33848
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerToggle"), children: [
33849
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("leftSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33850
- IconButton,
33851
- {
33852
- onClick: () => {
33853
- toggleSidebars("left");
33854
- },
33855
- title: "Toggle left sidebar",
33856
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(PanelLeft, { focusable: "false" })
33857
- }
33858
- ) }),
33859
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("rightSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33860
- IconButton,
33861
- {
33862
- onClick: () => {
33863
- toggleSidebars("right");
33864
- },
33865
- title: "Toggle right sidebar",
33866
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(PanelRight, { focusable: "false" })
33867
- }
33868
- ) })
33869
- ] }),
33870
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("headerTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Heading, { rank: 2, size: "xs", children: [
33871
- headerTitle || rootProps.title || "Page",
33872
- headerPath && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
33873
- " ",
33874
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("code", { className: getClassName25("headerPath"), children: headerPath })
33875
- ] })
33876
- ] }) }),
33877
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerTools"), children: [
33878
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("menuButton"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33879
- IconButton,
33880
- {
33881
- onClick: () => {
33882
- return setMenuOpen(!menuOpen);
33883
- },
33884
- title: "Toggle menu bar",
33885
- children: menuOpen ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronUp, { focusable: "false" }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronDown, { focusable: "false" })
33886
- }
33887
- ) }),
33888
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33889
- MenuBar,
33890
- {
33891
- appState,
33892
- data,
33893
- dispatch,
33894
- onPublish,
33895
- menuOpen,
33896
- renderHeaderActions: () => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomHeaderActions, {}),
33897
- setMenuOpen
33898
- }
33899
- )
33731
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("headerTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Heading, { rank: 2, size: "xs", children: [
33732
+ headerTitle || rootProps.title || "Page",
33733
+ headerPath && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
33734
+ " ",
33735
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("code", { className: getClassName25("headerPath"), children: headerPath })
33900
33736
  ] })
33901
- ] }) })
33902
- }
33903
- ),
33904
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("leftSideBar"), children: [
33905
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SidebarSection, { title: "Components", noBorderTop: true, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Components, {}) }),
33906
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SidebarSection, { title: "Outline", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Outline, {}) })
33907
- ] }),
33908
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Canvas, {}),
33909
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("rightSideBar"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33910
- SidebarSection,
33911
- {
33912
- noPadding: true,
33913
- noBorderTop: true,
33914
- showBreadcrumbs: true,
33915
- title: selectedItem ? (_a = config.components[selectedItem.type]["label"]) != null ? _a : selectedItem.type : "Page",
33916
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Fields, {})
33917
- }
33918
- ) })
33919
- ]
33920
- }
33921
- ) })
33922
- }
33923
- )
33924
- }
33925
- )
33926
- }
33927
- ),
33928
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { id: "puck-portal-root" })
33929
- ] });
33737
+ ] }) }),
33738
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerTools"), children: [
33739
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("menuButton"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33740
+ IconButton,
33741
+ {
33742
+ onClick: () => {
33743
+ return setMenuOpen(!menuOpen);
33744
+ },
33745
+ title: "Toggle menu bar",
33746
+ children: menuOpen ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronUp, { focusable: "false" }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronDown, { focusable: "false" })
33747
+ }
33748
+ ) }),
33749
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33750
+ MenuBar,
33751
+ {
33752
+ appState,
33753
+ data,
33754
+ dispatch,
33755
+ onPublish,
33756
+ menuOpen,
33757
+ renderHeaderActions: () => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomHeaderActions, {}),
33758
+ setMenuOpen
33759
+ }
33760
+ )
33761
+ ] })
33762
+ ] }) })
33763
+ }
33764
+ ),
33765
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("leftSideBar"), children: [
33766
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SidebarSection, { title: "Components", noBorderTop: true, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Components, {}) }),
33767
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SidebarSection, { title: "Outline", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Outline, {}) })
33768
+ ] }),
33769
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Canvas, {}),
33770
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("rightSideBar"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33771
+ SidebarSection,
33772
+ {
33773
+ noPadding: true,
33774
+ noBorderTop: true,
33775
+ showBreadcrumbs: true,
33776
+ title: selectedItem ? (_a = config.components[selectedItem.type]["label"]) != null ? _a : selectedItem.type : "Page",
33777
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Fields, {})
33778
+ }
33779
+ ) }),
33780
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33781
+ "div",
33782
+ {
33783
+ id: "puck-portal-root",
33784
+ className: getClassName25("portal")
33785
+ }
33786
+ )
33787
+ ]
33788
+ }
33789
+ ) })
33790
+ }
33791
+ )
33792
+ }
33793
+ )
33794
+ }
33795
+ ) });
33930
33796
  }
33931
33797
  Puck.Components = Components;
33932
33798
  Puck.Fields = Fields;