@puckeditor/core 0.21.3-canary.f99b9413 → 0.21.3

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 (31) hide show
  1. package/README.md +1 -1
  2. package/dist/{Editor-EPSED64A.mjs → Editor-MCVDFQH6.mjs} +9 -9
  3. package/dist/{Editor-IQP25PUX.css → Editor-SWYBDXGU.css} +6 -15
  4. package/dist/{Render-CU35UAWV.mjs → Render-MJ563JES.mjs} +3 -0
  5. package/dist/{chunk-BOKX3EBR.mjs → chunk-4HOGLOEA.mjs} +1 -1
  6. package/dist/{chunk-YLLE6KXH.mjs → chunk-6XCJ3Y7O.mjs} +7 -2
  7. package/dist/{chunk-BCL7VBTL.mjs → chunk-DPDJ67KA.mjs} +1 -1
  8. package/dist/{chunk-G74MZKKD.mjs → chunk-HGJWUFLT.mjs} +9 -9
  9. package/dist/{chunk-U6THAD4G.mjs → chunk-LODTL5KW.mjs} +1 -1
  10. package/dist/{chunk-22UJFAFA.mjs → chunk-O7FT3KAM.mjs} +4 -4
  11. package/dist/{chunk-754HNMU2.mjs → chunk-SHVCBQDY.mjs} +2 -18
  12. package/dist/{chunk-WCC2G7U7.mjs → chunk-TDQEUXB2.mjs} +3 -3
  13. package/dist/{chunk-FOGDNETJ.mjs → chunk-X2ZFWNCU.mjs} +4 -5
  14. package/dist/{chunk-Y72HCWJK.mjs → chunk-YXFTA2VL.mjs} +24 -18
  15. package/dist/{chunk-K23YHISE.mjs → chunk-ZMTK7SMX.mjs} +1 -1
  16. package/dist/{full-N67EAB2Q.mjs → full-5QCBHXRC.mjs} +9 -9
  17. package/dist/{full-2GJTAAZE.css → full-FFFM5OTN.css} +6 -15
  18. package/dist/index.css +22 -30
  19. package/dist/index.js +22 -26
  20. package/dist/index.mjs +11 -11
  21. package/dist/internal.js +2 -12
  22. package/dist/internal.mjs +2 -2
  23. package/dist/{loaded-MIY725CK.mjs → loaded-54625GTL.mjs} +5 -5
  24. package/dist/{loaded-F37CNCVG.mjs → loaded-OMRIYZIQ.mjs} +5 -5
  25. package/dist/{loaded-H325ZSK5.mjs → loaded-Y4ZWZC55.mjs} +5 -5
  26. package/dist/no-external.css +22 -30
  27. package/dist/no-external.js +22 -26
  28. package/dist/no-external.mjs +11 -11
  29. package/dist/rsc.js +6 -18
  30. package/dist/rsc.mjs +3 -3
  31. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -559,7 +559,7 @@ textarea._Input-input_bsxfo_26 {
559
559
  }
560
560
 
561
561
  /* css-module:/home/runner/work/puck/puck/packages/core/components/IconButton/IconButton.module.css/#css-module-data */
562
- ._IconButton_ffob9_1 {
562
+ ._IconButton_1c68y_1 {
563
563
  align-items: center;
564
564
  background: transparent;
565
565
  border: none;
@@ -571,35 +571,26 @@ textarea._Input-input_bsxfo_26 {
571
571
  padding: 4px;
572
572
  transition: background-color 50ms ease-in, color 50ms ease-in;
573
573
  }
574
- ._IconButton--active_ffob9_14 {
574
+ ._IconButton--active_1c68y_14 {
575
575
  color: var(--puck-color-azure-04);
576
576
  }
577
- ._IconButton_ffob9_1:focus-visible {
577
+ ._IconButton_1c68y_1:focus-visible {
578
578
  outline: 2px solid var(--puck-color-azure-05);
579
579
  outline-offset: -2px;
580
580
  }
581
581
  @media (hover: hover) and (pointer: fine) {
582
- ._IconButton_ffob9_1:hover:not(._IconButton--disabled_ffob9_24) {
582
+ ._IconButton_1c68y_1:hover:not(._IconButton--disabled_1c68y_24) {
583
583
  background: var(--puck-color-grey-10);
584
584
  color: var(--puck-color-azure-04);
585
585
  cursor: pointer;
586
586
  transition: none;
587
587
  }
588
588
  }
589
- ._IconButton_ffob9_1:active {
589
+ ._IconButton_1c68y_1:active {
590
590
  background: var(--puck-color-azure-11);
591
591
  transition: none;
592
592
  }
593
- ._IconButton-title_ffob9_37 {
594
- clip: rect(0 0 0 0);
595
- clip-path: inset(100%);
596
- height: 1px;
597
- overflow: hidden;
598
- position: absolute;
599
- white-space: nowrap;
600
- width: 1px;
601
- }
602
- ._IconButton--disabled_ffob9_24 {
593
+ ._IconButton--disabled_1c68y_24 {
603
594
  color: var(--puck-color-grey-07);
604
595
  }
605
596
 
@@ -2315,7 +2306,7 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
2315
2306
  }
2316
2307
 
2317
2308
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css/#css-module-data */
2318
- ._PuckCanvas_t6s9b_1 {
2309
+ ._PuckCanvas_ur8dl_1 {
2319
2310
  background: var(--puck-color-grey-11);
2320
2311
  display: flex;
2321
2312
  grid-area: editor;
@@ -2325,24 +2316,24 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
2325
2316
  overflow: auto;
2326
2317
  }
2327
2318
  @media (min-width: 1198px) {
2328
- ._PuckCanvas_t6s9b_1 {
2319
+ ._PuckCanvas_ur8dl_1 {
2329
2320
  padding: calc(var(--puck-space-px) * 1.5);
2330
2321
  padding-top: calc(var(--puck-space-px) * 0.5);
2331
2322
  }
2332
- ._PuckCanvas_t6s9b_1:not(._PuckCanvas_t6s9b_1:has(._PuckCanvas-controls_t6s9b_17)) {
2323
+ ._PuckCanvas_ur8dl_1:not(._PuckCanvas_ur8dl_1:has(._PuckCanvas-controls_ur8dl_17)) {
2333
2324
  padding-top: calc(var(--puck-space-px) * 1.5);
2334
2325
  }
2335
2326
  }
2336
- ._PuckCanvas--fullScreen_t6s9b_22 {
2327
+ ._PuckCanvas--fullScreen_ur8dl_22 {
2337
2328
  padding: 0;
2338
2329
  overflow: hidden;
2339
2330
  }
2340
2331
  @media (min-width: 1198px) {
2341
- ._PuckCanvas--fullScreen_t6s9b_22 {
2332
+ ._PuckCanvas--fullScreen_ur8dl_22 {
2342
2333
  padding: 0;
2343
2334
  }
2344
2335
  }
2345
- ._PuckCanvas-inner_t6s9b_33 {
2336
+ ._PuckCanvas-inner_ur8dl_33 {
2346
2337
  display: flex;
2347
2338
  height: 100%;
2348
2339
  justify-content: center;
@@ -2350,7 +2341,7 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
2350
2341
  position: relative;
2351
2342
  width: 100%;
2352
2343
  }
2353
- ._PuckCanvas-root_t6s9b_42 {
2344
+ ._PuckCanvas-root_ur8dl_42 {
2354
2345
  background: white;
2355
2346
  outline: 1px solid var(--puck-color-grey-09);
2356
2347
  box-sizing: content-box;
@@ -2363,20 +2354,20 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
2363
2354
  opacity: 0;
2364
2355
  }
2365
2356
  @media (min-width: 1198px) {
2366
- ._PuckCanvas-root_t6s9b_42 {
2357
+ ._PuckCanvas-root_ur8dl_42 {
2367
2358
  min-width: unset;
2368
2359
  }
2369
2360
  }
2370
2361
  @media (prefers-reduced-motion: reduce) {
2371
- ._PuckCanvas-root_t6s9b_42 {
2362
+ ._PuckCanvas-root_ur8dl_42 {
2372
2363
  transition: none !important;
2373
2364
  }
2374
2365
  }
2375
- ._PuckCanvas--ready_t6s9b_67 ._PuckCanvas-root_t6s9b_42 {
2366
+ ._PuckCanvas--ready_ur8dl_67 ._PuckCanvas-root_ur8dl_42 {
2376
2367
  pointer-events: unset;
2377
2368
  opacity: 1;
2378
2369
  }
2379
- ._PuckCanvas-loader_t6s9b_72 {
2370
+ ._PuckCanvas-loader_ur8dl_72 {
2380
2371
  align-items: center;
2381
2372
  color: var(--puck-color-grey-06);
2382
2373
  display: flex;
@@ -2384,19 +2375,20 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
2384
2375
  justify-content: center;
2385
2376
  transition: opacity 250ms ease-out;
2386
2377
  opacity: 0;
2378
+ pointer-events: none;
2387
2379
  }
2388
- ._PuckCanvas--showLoader_t6s9b_82 ._PuckCanvas-loader_t6s9b_72 {
2380
+ ._PuckCanvas--showLoader_ur8dl_83 ._PuckCanvas-loader_ur8dl_72 {
2389
2381
  opacity: 1;
2390
2382
  }
2391
- ._PuckCanvas--showLoader_t6s9b_82._PuckCanvas--ready_t6s9b_67 ._PuckCanvas-loader_t6s9b_72 {
2383
+ ._PuckCanvas--showLoader_ur8dl_83._PuckCanvas--ready_ur8dl_67 ._PuckCanvas-loader_ur8dl_72 {
2392
2384
  opacity: 0;
2393
2385
  height: 0;
2394
2386
  transition: none;
2395
2387
  }
2396
- ._PuckCanvas-controls_t6s9b_17 {
2388
+ ._PuckCanvas-controls_ur8dl_17 {
2397
2389
  padding-bottom: calc(var(--puck-space-px) * 0.5);
2398
2390
  }
2399
- ._PuckCanvas--fullScreen_t6s9b_22 ._PuckCanvas-controls_t6s9b_17 {
2391
+ ._PuckCanvas--fullScreen_ur8dl_22 ._PuckCanvas-controls_ur8dl_17 {
2400
2392
  padding-bottom: 0;
2401
2393
  z-index: 1;
2402
2394
  }
package/dist/index.js CHANGED
@@ -1322,7 +1322,7 @@ var init_IconButton_module = __esm({
1322
1322
  "use strict";
1323
1323
  init_react_import();
1324
1324
  init_css_module_data2();
1325
- IconButton_module_default = { "IconButton": "_IconButton_ffob9_1", "IconButton--active": "_IconButton--active_ffob9_14", "IconButton--disabled": "_IconButton--disabled_ffob9_24", "IconButton-title": "_IconButton-title_ffob9_37" };
1325
+ IconButton_module_default = { "IconButton": "_IconButton_1c68y_1", "IconButton--active": "_IconButton--active_1c68y_14", "IconButton--disabled": "_IconButton--disabled_1c68y_24" };
1326
1326
  }
1327
1327
  });
1328
1328
 
@@ -1473,20 +1473,10 @@ var init_map_fields = __esm({
1473
1473
  if (map && fieldType === "slot") {
1474
1474
  const content = value || [];
1475
1475
  const mappedContent = recurseSlots ? content.map((el) => {
1476
- var _a2;
1477
- const componentConfig = config.components[el.type];
1478
- if (!componentConfig) {
1476
+ if (!config.components[el.type]) {
1479
1477
  throw new Error(`Could not find component config for ${el.type}`);
1480
1478
  }
1481
- const fields2 = (_a2 = componentConfig.fields) != null ? _a2 : {};
1482
- return walkField({
1483
- value: __spreadProps(__spreadValues({}, el), { props: defaultSlots(el.props, fields2) }),
1484
- fields: fields2,
1485
- mappers,
1486
- id: el.props.id,
1487
- config,
1488
- recurseSlots
1489
- });
1479
+ return mapFields(el, mappers, config, recurseSlots);
1490
1480
  }) : content;
1491
1481
  if (containsPromise(mappedContent)) {
1492
1482
  return Promise.all(mappedContent);
@@ -3801,9 +3791,9 @@ var init_IconButton = __esm({
3801
3791
  rel: newTab ? "noreferrer" : void 0,
3802
3792
  href,
3803
3793
  title,
3794
+ "aria-label": title,
3804
3795
  suppressHydrationWarning,
3805
3796
  children: [
3806
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: getClassName3("title"), children: title }),
3807
3797
  children,
3808
3798
  loading && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
3809
3799
  "\xA0\xA0",
@@ -5321,7 +5311,7 @@ var init_selector = __esm({
5321
5311
  defaultEditorState = (ctx, readOnly) => {
5322
5312
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
5323
5313
  const editor = ctx.editor;
5324
- if (!editor) return {};
5314
+ if (!editor || editor.isDestroyed) return {};
5325
5315
  const canChain = () => editor.can().chain();
5326
5316
  return {
5327
5317
  isAlignLeft: editor.isActive({ textAlign: "left" }),
@@ -5536,6 +5526,9 @@ function RichTextRender({
5536
5526
  return content;
5537
5527
  }
5538
5528
  if (typeof content === "string") {
5529
+ if (!content) {
5530
+ return { type: "doc", content: [] };
5531
+ }
5539
5532
  const isHtml = /<\/?[a-z][\s\S]*>/i.test(content);
5540
5533
  if (isHtml) {
5541
5534
  return (0, import_html.generateJSON)(content, loadedExtensions);
@@ -8494,6 +8487,10 @@ var DraggableComponent = ({
8494
8487
  },
8495
8488
  [zoom]
8496
8489
  );
8490
+ const actionBarRef = (0, import_react51.useRef)(null);
8491
+ (0, import_react51.useEffect)(() => {
8492
+ syncActionsPosition(actionBarRef.current);
8493
+ }, [actionBarRef.current, syncActionsPosition]);
8497
8494
  (0, import_react51.useEffect)(() => {
8498
8495
  if (userDragAxis) {
8499
8496
  setDragAxis(userDragAxis);
@@ -8571,7 +8568,7 @@ var DraggableComponent = ({
8571
8568
  paddingLeft: actionsSide,
8572
8569
  paddingRight: actionsSide
8573
8570
  },
8574
- ref: syncActionsPosition,
8571
+ ref: actionBarRef,
8575
8572
  children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8576
8573
  CustomActionBar,
8577
8574
  {
@@ -8928,9 +8925,6 @@ function RichTextRenderFallback({ content }) {
8928
8925
  ) });
8929
8926
  }
8930
8927
 
8931
- // components/RichTextEditor/lib/use-richtext-props.tsx
8932
- init_generate_id();
8933
-
8934
8928
  // components/RichTextEditor/lib/mapDeep.ts
8935
8929
  init_react_import();
8936
8930
  var mapDeep = (source, path, render) => {
@@ -8988,7 +8982,7 @@ function useRichtextProps(fields, props) {
8988
8982
  fallback: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(RichTextRenderFallback, { content }),
8989
8983
  children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(RichTextRender3, { content, field })
8990
8984
  },
8991
- generateId()
8985
+ path.join(".")
8992
8986
  ));
8993
8987
  }
8994
8988
  return result;
@@ -9258,8 +9252,9 @@ var InlineTextFieldInternal = ({
9258
9252
  );
9259
9253
  }
9260
9254
  if (ref.current) {
9261
- if (value !== ref.current.innerText) {
9262
- ref.current.replaceChildren(value);
9255
+ const safeValue = value != null ? value : "";
9256
+ if (safeValue !== ref.current.innerText) {
9257
+ ref.current.replaceChildren(safeValue);
9263
9258
  }
9264
9259
  const cleanupPortal = registerOverlayPortal(ref.current);
9265
9260
  const handleInput = (e) => __async(null, null, function* () {
@@ -10812,7 +10807,7 @@ var DragDropContextClient = ({
10812
10807
  const { previewIndex = {} } = zoneStore.getState() || {};
10813
10808
  const thisPreview = ((_b = previewIndex[zone]) == null ? void 0 : _b.props.id) === source.id ? previewIndex[zone] : null;
10814
10809
  const onAnimationEnd = () => {
10815
- var _a2, _b2;
10810
+ var _a2, _b2, _c, _d;
10816
10811
  zoneStore.setState({ draggedItem: null });
10817
10812
  if (event.canceled || (target == null ? void 0 : target.type) === "void") {
10818
10813
  zoneStore.setState({ previewIndex: {} });
@@ -10846,15 +10841,16 @@ var DragDropContextClient = ({
10846
10841
  );
10847
10842
  }
10848
10843
  }
10844
+ const movedToNewPosition = ((_b2 = initialSelector.current) == null ? void 0 : _b2.zone) !== (thisPreview == null ? void 0 : thisPreview.zone) || ((_c = initialSelector.current) == null ? void 0 : _c.index) !== (thisPreview == null ? void 0 : thisPreview.index);
10849
10845
  dispatch({
10850
10846
  type: "setUi",
10851
10847
  ui: {
10852
10848
  itemSelector: { index, zone },
10853
10849
  isDragging: false
10854
10850
  },
10855
- recordHistory: false
10851
+ recordHistory: movedToNewPosition
10856
10852
  });
10857
- (_b2 = dragListeners.dragend) == null ? void 0 : _b2.forEach((fn) => {
10853
+ (_d = dragListeners.dragend) == null ? void 0 : _d.forEach((fn) => {
10858
10854
  fn(event, manager);
10859
10855
  });
10860
10856
  };
@@ -13223,7 +13219,7 @@ var ViewportControls = ({
13223
13219
 
13224
13220
  // css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css#css-module
13225
13221
  init_react_import();
13226
- var styles_module_default28 = { "PuckCanvas": "_PuckCanvas_t6s9b_1", "PuckCanvas-controls": "_PuckCanvas-controls_t6s9b_17", "PuckCanvas--fullScreen": "_PuckCanvas--fullScreen_t6s9b_22", "PuckCanvas-inner": "_PuckCanvas-inner_t6s9b_33", "PuckCanvas-root": "_PuckCanvas-root_t6s9b_42", "PuckCanvas--ready": "_PuckCanvas--ready_t6s9b_67", "PuckCanvas-loader": "_PuckCanvas-loader_t6s9b_72", "PuckCanvas--showLoader": "_PuckCanvas--showLoader_t6s9b_82" };
13222
+ var styles_module_default28 = { "PuckCanvas": "_PuckCanvas_ur8dl_1", "PuckCanvas-controls": "_PuckCanvas-controls_ur8dl_17", "PuckCanvas--fullScreen": "_PuckCanvas--fullScreen_ur8dl_22", "PuckCanvas-inner": "_PuckCanvas-inner_ur8dl_33", "PuckCanvas-root": "_PuckCanvas-root_ur8dl_42", "PuckCanvas--ready": "_PuckCanvas--ready_ur8dl_67", "PuckCanvas-loader": "_PuckCanvas-loader_ur8dl_72", "PuckCanvas--showLoader": "_PuckCanvas--showLoader_ur8dl_83" };
13227
13223
 
13228
13224
  // components/Puck/components/Canvas/index.tsx
13229
13225
  init_lib();
package/dist/index.mjs CHANGED
@@ -17,13 +17,13 @@ import {
17
17
  setDeep,
18
18
  useGetPuck,
19
19
  usePuck
20
- } from "./chunk-Y72HCWJK.mjs";
21
- import "./chunk-WCC2G7U7.mjs";
20
+ } from "./chunk-YXFTA2VL.mjs";
21
+ import "./chunk-TDQEUXB2.mjs";
22
22
  import {
23
23
  migrate,
24
24
  resolveAllData,
25
25
  transformProps
26
- } from "./chunk-FOGDNETJ.mjs";
26
+ } from "./chunk-X2ZFWNCU.mjs";
27
27
  import "./chunk-AOEDIUVK.mjs";
28
28
  import {
29
29
  Action,
@@ -33,17 +33,17 @@ import {
33
33
  Label,
34
34
  RichTextMenu,
35
35
  Separator
36
- } from "./chunk-G74MZKKD.mjs";
37
- import "./chunk-BCL7VBTL.mjs";
38
- import "./chunk-K23YHISE.mjs";
39
- import "./chunk-U6THAD4G.mjs";
40
- import "./chunk-22UJFAFA.mjs";
41
- import "./chunk-YLLE6KXH.mjs";
42
- import "./chunk-BOKX3EBR.mjs";
36
+ } from "./chunk-HGJWUFLT.mjs";
37
+ import "./chunk-DPDJ67KA.mjs";
38
+ import "./chunk-ZMTK7SMX.mjs";
39
+ import "./chunk-LODTL5KW.mjs";
40
+ import "./chunk-O7FT3KAM.mjs";
41
+ import "./chunk-6XCJ3Y7O.mjs";
42
+ import "./chunk-4HOGLOEA.mjs";
43
43
  import "./chunk-Y2EFNT5P.mjs";
44
44
  import {
45
45
  walkTree
46
- } from "./chunk-754HNMU2.mjs";
46
+ } from "./chunk-SHVCBQDY.mjs";
47
47
  import {
48
48
  init_react_import
49
49
  } from "./chunk-M6W7YEVX.mjs";
package/dist/internal.js CHANGED
@@ -106,20 +106,10 @@ var walkField = ({
106
106
  if (map && fieldType === "slot") {
107
107
  const content = value || [];
108
108
  const mappedContent = recurseSlots ? content.map((el) => {
109
- var _a2;
110
- const componentConfig = config.components[el.type];
111
- if (!componentConfig) {
109
+ if (!config.components[el.type]) {
112
110
  throw new Error(`Could not find component config for ${el.type}`);
113
111
  }
114
- const fields2 = (_a2 = componentConfig.fields) != null ? _a2 : {};
115
- return walkField({
116
- value: __spreadProps(__spreadValues({}, el), { props: defaultSlots(el.props, fields2) }),
117
- fields: fields2,
118
- mappers,
119
- id: el.props.id,
120
- config,
121
- recurseSlots
122
- });
112
+ return mapFields(el, mappers, config, recurseSlots);
123
113
  }) : content;
124
114
  if (containsPromise(mappedContent)) {
125
115
  return Promise.all(mappedContent);
package/dist/internal.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createReducer
3
- } from "./chunk-YLLE6KXH.mjs";
4
- import "./chunk-754HNMU2.mjs";
3
+ } from "./chunk-6XCJ3Y7O.mjs";
4
+ import "./chunk-SHVCBQDY.mjs";
5
5
  import {
6
6
  init_react_import
7
7
  } from "./chunk-M6W7YEVX.mjs";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  useAlignOptions
3
- } from "./chunk-BCL7VBTL.mjs";
3
+ } from "./chunk-DPDJ67KA.mjs";
4
4
  import {
5
5
  AlignLeft,
6
6
  SelectControl,
7
7
  useControlContext
8
- } from "./chunk-22UJFAFA.mjs";
9
- import "./chunk-YLLE6KXH.mjs";
10
- import "./chunk-BOKX3EBR.mjs";
8
+ } from "./chunk-O7FT3KAM.mjs";
9
+ import "./chunk-6XCJ3Y7O.mjs";
10
+ import "./chunk-4HOGLOEA.mjs";
11
11
  import "./chunk-Y2EFNT5P.mjs";
12
- import "./chunk-754HNMU2.mjs";
12
+ import "./chunk-SHVCBQDY.mjs";
13
13
  import {
14
14
  init_react_import
15
15
  } from "./chunk-M6W7YEVX.mjs";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  useHeadingOptions
3
- } from "./chunk-K23YHISE.mjs";
3
+ } from "./chunk-ZMTK7SMX.mjs";
4
4
  import {
5
5
  Heading,
6
6
  SelectControl,
7
7
  useControlContext
8
- } from "./chunk-22UJFAFA.mjs";
9
- import "./chunk-YLLE6KXH.mjs";
10
- import "./chunk-BOKX3EBR.mjs";
8
+ } from "./chunk-O7FT3KAM.mjs";
9
+ import "./chunk-6XCJ3Y7O.mjs";
10
+ import "./chunk-4HOGLOEA.mjs";
11
11
  import "./chunk-Y2EFNT5P.mjs";
12
- import "./chunk-754HNMU2.mjs";
12
+ import "./chunk-SHVCBQDY.mjs";
13
13
  import {
14
14
  init_react_import
15
15
  } from "./chunk-M6W7YEVX.mjs";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  useListOptions
3
- } from "./chunk-U6THAD4G.mjs";
3
+ } from "./chunk-LODTL5KW.mjs";
4
4
  import {
5
5
  List,
6
6
  SelectControl,
7
7
  useControlContext
8
- } from "./chunk-22UJFAFA.mjs";
9
- import "./chunk-YLLE6KXH.mjs";
10
- import "./chunk-BOKX3EBR.mjs";
8
+ } from "./chunk-O7FT3KAM.mjs";
9
+ import "./chunk-6XCJ3Y7O.mjs";
10
+ import "./chunk-4HOGLOEA.mjs";
11
11
  import "./chunk-Y2EFNT5P.mjs";
12
- import "./chunk-754HNMU2.mjs";
12
+ import "./chunk-SHVCBQDY.mjs";
13
13
  import {
14
14
  init_react_import
15
15
  } from "./chunk-M6W7YEVX.mjs";
@@ -557,7 +557,7 @@ textarea._Input-input_bsxfo_26 {
557
557
  }
558
558
 
559
559
  /* css-module:/home/runner/work/puck/puck/packages/core/components/IconButton/IconButton.module.css/#css-module-data */
560
- ._IconButton_ffob9_1 {
560
+ ._IconButton_1c68y_1 {
561
561
  align-items: center;
562
562
  background: transparent;
563
563
  border: none;
@@ -569,35 +569,26 @@ textarea._Input-input_bsxfo_26 {
569
569
  padding: 4px;
570
570
  transition: background-color 50ms ease-in, color 50ms ease-in;
571
571
  }
572
- ._IconButton--active_ffob9_14 {
572
+ ._IconButton--active_1c68y_14 {
573
573
  color: var(--puck-color-azure-04);
574
574
  }
575
- ._IconButton_ffob9_1:focus-visible {
575
+ ._IconButton_1c68y_1:focus-visible {
576
576
  outline: 2px solid var(--puck-color-azure-05);
577
577
  outline-offset: -2px;
578
578
  }
579
579
  @media (hover: hover) and (pointer: fine) {
580
- ._IconButton_ffob9_1:hover:not(._IconButton--disabled_ffob9_24) {
580
+ ._IconButton_1c68y_1:hover:not(._IconButton--disabled_1c68y_24) {
581
581
  background: var(--puck-color-grey-10);
582
582
  color: var(--puck-color-azure-04);
583
583
  cursor: pointer;
584
584
  transition: none;
585
585
  }
586
586
  }
587
- ._IconButton_ffob9_1:active {
587
+ ._IconButton_1c68y_1:active {
588
588
  background: var(--puck-color-azure-11);
589
589
  transition: none;
590
590
  }
591
- ._IconButton-title_ffob9_37 {
592
- clip: rect(0 0 0 0);
593
- clip-path: inset(100%);
594
- height: 1px;
595
- overflow: hidden;
596
- position: absolute;
597
- white-space: nowrap;
598
- width: 1px;
599
- }
600
- ._IconButton--disabled_ffob9_24 {
591
+ ._IconButton--disabled_1c68y_24 {
601
592
  color: var(--puck-color-grey-07);
602
593
  }
603
594
 
@@ -2313,7 +2304,7 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
2313
2304
  }
2314
2305
 
2315
2306
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css/#css-module-data */
2316
- ._PuckCanvas_t6s9b_1 {
2307
+ ._PuckCanvas_ur8dl_1 {
2317
2308
  background: var(--puck-color-grey-11);
2318
2309
  display: flex;
2319
2310
  grid-area: editor;
@@ -2323,24 +2314,24 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
2323
2314
  overflow: auto;
2324
2315
  }
2325
2316
  @media (min-width: 1198px) {
2326
- ._PuckCanvas_t6s9b_1 {
2317
+ ._PuckCanvas_ur8dl_1 {
2327
2318
  padding: calc(var(--puck-space-px) * 1.5);
2328
2319
  padding-top: calc(var(--puck-space-px) * 0.5);
2329
2320
  }
2330
- ._PuckCanvas_t6s9b_1:not(._PuckCanvas_t6s9b_1:has(._PuckCanvas-controls_t6s9b_17)) {
2321
+ ._PuckCanvas_ur8dl_1:not(._PuckCanvas_ur8dl_1:has(._PuckCanvas-controls_ur8dl_17)) {
2331
2322
  padding-top: calc(var(--puck-space-px) * 1.5);
2332
2323
  }
2333
2324
  }
2334
- ._PuckCanvas--fullScreen_t6s9b_22 {
2325
+ ._PuckCanvas--fullScreen_ur8dl_22 {
2335
2326
  padding: 0;
2336
2327
  overflow: hidden;
2337
2328
  }
2338
2329
  @media (min-width: 1198px) {
2339
- ._PuckCanvas--fullScreen_t6s9b_22 {
2330
+ ._PuckCanvas--fullScreen_ur8dl_22 {
2340
2331
  padding: 0;
2341
2332
  }
2342
2333
  }
2343
- ._PuckCanvas-inner_t6s9b_33 {
2334
+ ._PuckCanvas-inner_ur8dl_33 {
2344
2335
  display: flex;
2345
2336
  height: 100%;
2346
2337
  justify-content: center;
@@ -2348,7 +2339,7 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
2348
2339
  position: relative;
2349
2340
  width: 100%;
2350
2341
  }
2351
- ._PuckCanvas-root_t6s9b_42 {
2342
+ ._PuckCanvas-root_ur8dl_42 {
2352
2343
  background: white;
2353
2344
  outline: 1px solid var(--puck-color-grey-09);
2354
2345
  box-sizing: content-box;
@@ -2361,20 +2352,20 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
2361
2352
  opacity: 0;
2362
2353
  }
2363
2354
  @media (min-width: 1198px) {
2364
- ._PuckCanvas-root_t6s9b_42 {
2355
+ ._PuckCanvas-root_ur8dl_42 {
2365
2356
  min-width: unset;
2366
2357
  }
2367
2358
  }
2368
2359
  @media (prefers-reduced-motion: reduce) {
2369
- ._PuckCanvas-root_t6s9b_42 {
2360
+ ._PuckCanvas-root_ur8dl_42 {
2370
2361
  transition: none !important;
2371
2362
  }
2372
2363
  }
2373
- ._PuckCanvas--ready_t6s9b_67 ._PuckCanvas-root_t6s9b_42 {
2364
+ ._PuckCanvas--ready_ur8dl_67 ._PuckCanvas-root_ur8dl_42 {
2374
2365
  pointer-events: unset;
2375
2366
  opacity: 1;
2376
2367
  }
2377
- ._PuckCanvas-loader_t6s9b_72 {
2368
+ ._PuckCanvas-loader_ur8dl_72 {
2378
2369
  align-items: center;
2379
2370
  color: var(--puck-color-grey-06);
2380
2371
  display: flex;
@@ -2382,19 +2373,20 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
2382
2373
  justify-content: center;
2383
2374
  transition: opacity 250ms ease-out;
2384
2375
  opacity: 0;
2376
+ pointer-events: none;
2385
2377
  }
2386
- ._PuckCanvas--showLoader_t6s9b_82 ._PuckCanvas-loader_t6s9b_72 {
2378
+ ._PuckCanvas--showLoader_ur8dl_83 ._PuckCanvas-loader_ur8dl_72 {
2387
2379
  opacity: 1;
2388
2380
  }
2389
- ._PuckCanvas--showLoader_t6s9b_82._PuckCanvas--ready_t6s9b_67 ._PuckCanvas-loader_t6s9b_72 {
2381
+ ._PuckCanvas--showLoader_ur8dl_83._PuckCanvas--ready_ur8dl_67 ._PuckCanvas-loader_ur8dl_72 {
2390
2382
  opacity: 0;
2391
2383
  height: 0;
2392
2384
  transition: none;
2393
2385
  }
2394
- ._PuckCanvas-controls_t6s9b_17 {
2386
+ ._PuckCanvas-controls_ur8dl_17 {
2395
2387
  padding-bottom: calc(var(--puck-space-px) * 0.5);
2396
2388
  }
2397
- ._PuckCanvas--fullScreen_t6s9b_22 ._PuckCanvas-controls_t6s9b_17 {
2389
+ ._PuckCanvas--fullScreen_ur8dl_22 ._PuckCanvas-controls_ur8dl_17 {
2398
2390
  padding-bottom: 0;
2399
2391
  z-index: 1;
2400
2392
  }