@puckeditor/core 0.21.2-canary.72cdad9d → 0.21.2-canary.8c1905e6

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 (41) hide show
  1. package/README.md +1 -1
  2. package/dist/{Editor-NK3TZSR6.mjs → Editor-JHS34JLP.mjs} +9 -9
  3. package/dist/{actions-BkBoKAc5.d.mts → actions-C3e2nJ9v.d.mts} +2 -2
  4. package/dist/{actions-BkBoKAc5.d.ts → actions-C3e2nJ9v.d.ts} +2 -2
  5. package/dist/{chunk-5V242HXR.mjs → chunk-46RDHJGL.mjs} +7 -7
  6. package/dist/{chunk-PMXRXC2B.mjs → chunk-754HNMU2.mjs} +18 -11
  7. package/dist/{chunk-UMTU6EA7.mjs → chunk-AFOEZCNE.mjs} +19 -10
  8. package/dist/{chunk-MDUBGHWF.mjs → chunk-BOKX3EBR.mjs} +3 -12
  9. package/dist/{chunk-KOUWDQ4Q.mjs → chunk-BSAENBPL.mjs} +1 -1
  10. package/dist/{chunk-TNORMHZU.mjs → chunk-FOGDNETJ.mjs} +4 -4
  11. package/dist/{chunk-RHVK562Z.mjs → chunk-GYDP2UKB.mjs} +3 -3
  12. package/dist/{chunk-SAWVRSPE.mjs → chunk-JAHAUWWQ.mjs} +3647 -3630
  13. package/dist/{chunk-MSZPUXZP.mjs → chunk-JGZBBNEW.mjs} +1 -1
  14. package/dist/{chunk-SKJTJUWU.mjs → chunk-TVE6QYBR.mjs} +1 -1
  15. package/dist/{chunk-37HTE4KO.mjs → chunk-YLLE6KXH.mjs} +1 -1
  16. package/dist/{full-KLPRWVS4.mjs → full-ATSD2DNB.mjs} +8 -8
  17. package/dist/{index-bqD1SEOb.d.mts → index-CMP1bTUS.d.mts} +1 -1
  18. package/dist/{index-lt1zf5WR.d.ts → index-DnAz_ZaB.d.ts} +1 -1
  19. package/dist/index.d.mts +4 -4
  20. package/dist/index.d.ts +4 -4
  21. package/dist/index.js +104 -77
  22. package/dist/index.mjs +17 -12
  23. package/dist/internal.d.mts +2 -2
  24. package/dist/internal.d.ts +2 -2
  25. package/dist/internal.js +16 -11
  26. package/dist/internal.mjs +2 -2
  27. package/dist/{loaded-SJJ63OY2.mjs → loaded-2765LE3N.mjs} +5 -5
  28. package/dist/{loaded-362ACKSQ.mjs → loaded-ANEJLSYJ.mjs} +5 -5
  29. package/dist/{loaded-DIHUQBWF.mjs → loaded-BKAMJ2FS.mjs} +5 -5
  30. package/dist/no-external.css +143 -147
  31. package/dist/no-external.d.mts +3 -3
  32. package/dist/no-external.d.ts +3 -3
  33. package/dist/no-external.js +102 -78
  34. package/dist/no-external.mjs +11 -11
  35. package/dist/rsc.d.mts +2 -2
  36. package/dist/rsc.d.ts +2 -2
  37. package/dist/rsc.js +8 -11
  38. package/dist/rsc.mjs +3 -3
  39. package/dist/{walk-tree-CRRDqx6_.d.mts → walk-tree-BJoNgZ0l.d.mts} +1 -1
  40. package/dist/{walk-tree-CS7sEpfG.d.ts → walk-tree-f8Yzs5o3.d.ts} +1 -1
  41. package/package.json +1 -1
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  </picture>
10
10
  </a>
11
11
 
12
- _The visual editor for React_
12
+ _Create your own AI page builder_
13
13
 
14
14
  [Documentation](https://puckeditor.com/docs?utm_source=readme&utm_medium=code&utm_campaign=repo&utm_contents=docs_link) • [Demo](https://demo.puckeditor.com/edit?utm_source=readme&utm_medium=code&utm_campaign=repo&utm_contents=demo_link) • [Discord](https://discord.gg/V9mDAhuxyZ) • [Contributing](https://github.com/puckeditor/puck/blob/main/CONTRIBUTING.md)
15
15
 
@@ -4,20 +4,20 @@ import {
4
4
  import {
5
5
  EditorInner,
6
6
  LoadedRichTextMenu
7
- } from "./chunk-RHVK562Z.mjs";
7
+ } from "./chunk-GYDP2UKB.mjs";
8
8
  import "./chunk-AOEDIUVK.mjs";
9
- import "./chunk-5V242HXR.mjs";
10
- import "./chunk-MSZPUXZP.mjs";
11
- import "./chunk-KOUWDQ4Q.mjs";
12
- import "./chunk-SKJTJUWU.mjs";
9
+ import "./chunk-46RDHJGL.mjs";
10
+ import "./chunk-JGZBBNEW.mjs";
11
+ import "./chunk-BSAENBPL.mjs";
12
+ import "./chunk-TVE6QYBR.mjs";
13
13
  import {
14
14
  useAppStore,
15
15
  useAppStoreApi
16
- } from "./chunk-UMTU6EA7.mjs";
17
- import "./chunk-37HTE4KO.mjs";
18
- import "./chunk-MDUBGHWF.mjs";
16
+ } from "./chunk-AFOEZCNE.mjs";
17
+ import "./chunk-YLLE6KXH.mjs";
18
+ import "./chunk-BOKX3EBR.mjs";
19
19
  import "./chunk-Y2EFNT5P.mjs";
20
- import "./chunk-PMXRXC2B.mjs";
20
+ import "./chunk-754HNMU2.mjs";
21
21
  import {
22
22
  __spreadProps,
23
23
  __spreadValues,
@@ -308,7 +308,7 @@ type CustomFieldRender<Value extends any> = (props: {
308
308
  name: string;
309
309
  id: string;
310
310
  value: Value;
311
- onChange: (value: Value) => void;
311
+ onChange: (value: Value, uiState?: Partial<UiState>) => void;
312
312
  readOnly?: boolean;
313
313
  }) => ReactElement;
314
314
  interface CustomField<Value extends any> extends BaseField {
@@ -835,4 +835,4 @@ type PuckAction = {
835
835
  recordHistory?: boolean;
836
836
  } & (ReorderAction | InsertAction | MoveAction | ReplaceAction | ReplaceRootAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
837
837
 
838
- export { type ComponentConfigParams as $, type AppState as A, type FieldTransformFnParams as B, type Config as C, type Data as D, type FieldTransformFn as E, type Fields as F, overrideKeys as G, type History as H, type IframeConfig as I, type OverrideKey as J, type FieldRenderFunctions as K, type ItemWithId as L, type Metadata as M, type ArrayState as N, type OnAction as O, type PrivateAppState as P, type SlotComponent as Q, type RootData as R, type Slot as S, type PuckComponent as T, type UserGenerics as U, type Viewports as V, type WithId as W, type ComponentConfigExtensions as X, type RootConfig as Y, type ExtractConfigParams as Z, type ConfigParams as _, type PuckAction as a, type BaseData as a0, type RootDataWithoutProps as a1, type ComponentDataOptionalId as a2, type MappedItem as a3, type ComponentDataMap as a4, type PuckMetadata as a5, type ComponentMetadata as a6, type FieldMetadata as a7, type BaseField as a8, type TextField as a9, type NumberField as aa, type TextareaField as ab, type SelectField as ac, type RadioField as ad, type ArrayField as ae, type ObjectField as af, type Adaptor as ag, type ExternalFieldWithAdaptor as ah, type CacheOpts as ai, type ExternalField as aj, type CustomFieldRender as ak, type CustomField as al, type SlotField as am, type PuckContext as an, type DefaultRootRenderProps as ao, type DefaultRootProps as ap, type WithPuckProps as aq, type AsFieldProps as ar, type WithChildren as as, type ExtractField as at, type Content as b, type ComponentData as c, type DefaultComponents as d, type DefaultComponentProps as e, type DefaultRootFieldProps as f, type Permissions as g, type RootDataWithProps as h, type ResolveDataTrigger as i, type Plugin as j, type Overrides as k, type UiState as l, type ComponentConfig as m, type FieldTransforms as n, type RichtextField as o, type Field as p, type FieldProps as q, type DropZoneProps as r, type InitialHistory as s, type ItemSelector as t, type PluginInternal as u, type WithSlotProps as v, type RichText as w, type Direction as x, type DragAxis as y, type Viewport as z };
838
+ export { type ExternalField as $, type AppState as A, type BaseData as B, type Config as C, type Data as D, type CacheOpts as E, type Fields as F, type ComponentConfigExtensions as G, type History as H, type IframeConfig as I, type ComponentConfigParams as J, type ComponentDataMap as K, type ComponentDataOptionalId as L, type Metadata as M, type ComponentMetadata as N, type OnAction as O, type PrivateAppState as P, type ConfigParams as Q, type RootData as R, type CustomField as S, type CustomFieldRender as T, type UserGenerics as U, type Viewports as V, type WithId as W, type DefaultRootProps as X, type DefaultRootRenderProps as Y, type Direction as Z, type DragAxis as _, type PuckAction as a, type ExternalFieldWithAdaptor as a0, type ExtractConfigParams as a1, type ExtractField as a2, type FieldMetadata as a3, type FieldRenderFunctions as a4, type FieldTransformFn as a5, type FieldTransformFnParams as a6, type ItemWithId as a7, type MappedItem as a8, type NumberField as a9, type ObjectField as aa, type OverrideKey as ab, type PuckComponent as ac, type PuckContext as ad, type PuckMetadata as ae, type RadioField as af, type RichText as ag, type RootConfig as ah, type RootDataWithoutProps as ai, type SelectField as aj, type Slot as ak, type SlotComponent as al, type SlotField as am, type TextField as an, type TextareaField as ao, type Viewport as ap, type WithChildren as aq, type WithPuckProps as ar, type WithSlotProps as as, overrideKeys as at, type Content as b, type ComponentData as c, type DefaultComponents as d, type DefaultComponentProps as e, type DefaultRootFieldProps as f, type Permissions as g, type RootDataWithProps as h, type ResolveDataTrigger as i, type Plugin as j, type Overrides as k, type UiState as l, type ComponentConfig as m, type FieldTransforms as n, type RichtextField as o, type Field as p, type FieldProps as q, type DropZoneProps as r, type InitialHistory as s, type ItemSelector as t, type PluginInternal as u, type Adaptor as v, type ArrayField as w, type ArrayState as x, type AsFieldProps as y, type BaseField as z };
@@ -308,7 +308,7 @@ type CustomFieldRender<Value extends any> = (props: {
308
308
  name: string;
309
309
  id: string;
310
310
  value: Value;
311
- onChange: (value: Value) => void;
311
+ onChange: (value: Value, uiState?: Partial<UiState>) => void;
312
312
  readOnly?: boolean;
313
313
  }) => ReactElement;
314
314
  interface CustomField<Value extends any> extends BaseField {
@@ -835,4 +835,4 @@ type PuckAction = {
835
835
  recordHistory?: boolean;
836
836
  } & (ReorderAction | InsertAction | MoveAction | ReplaceAction | ReplaceRootAction | RemoveAction | DuplicateAction | SetAction | SetDataAction | SetUiAction | RegisterZoneAction | UnregisterZoneAction);
837
837
 
838
- export { type ComponentConfigParams as $, type AppState as A, type FieldTransformFnParams as B, type Config as C, type Data as D, type FieldTransformFn as E, type Fields as F, overrideKeys as G, type History as H, type IframeConfig as I, type OverrideKey as J, type FieldRenderFunctions as K, type ItemWithId as L, type Metadata as M, type ArrayState as N, type OnAction as O, type PrivateAppState as P, type SlotComponent as Q, type RootData as R, type Slot as S, type PuckComponent as T, type UserGenerics as U, type Viewports as V, type WithId as W, type ComponentConfigExtensions as X, type RootConfig as Y, type ExtractConfigParams as Z, type ConfigParams as _, type PuckAction as a, type BaseData as a0, type RootDataWithoutProps as a1, type ComponentDataOptionalId as a2, type MappedItem as a3, type ComponentDataMap as a4, type PuckMetadata as a5, type ComponentMetadata as a6, type FieldMetadata as a7, type BaseField as a8, type TextField as a9, type NumberField as aa, type TextareaField as ab, type SelectField as ac, type RadioField as ad, type ArrayField as ae, type ObjectField as af, type Adaptor as ag, type ExternalFieldWithAdaptor as ah, type CacheOpts as ai, type ExternalField as aj, type CustomFieldRender as ak, type CustomField as al, type SlotField as am, type PuckContext as an, type DefaultRootRenderProps as ao, type DefaultRootProps as ap, type WithPuckProps as aq, type AsFieldProps as ar, type WithChildren as as, type ExtractField as at, type Content as b, type ComponentData as c, type DefaultComponents as d, type DefaultComponentProps as e, type DefaultRootFieldProps as f, type Permissions as g, type RootDataWithProps as h, type ResolveDataTrigger as i, type Plugin as j, type Overrides as k, type UiState as l, type ComponentConfig as m, type FieldTransforms as n, type RichtextField as o, type Field as p, type FieldProps as q, type DropZoneProps as r, type InitialHistory as s, type ItemSelector as t, type PluginInternal as u, type WithSlotProps as v, type RichText as w, type Direction as x, type DragAxis as y, type Viewport as z };
838
+ export { type ExternalField as $, type AppState as A, type BaseData as B, type Config as C, type Data as D, type CacheOpts as E, type Fields as F, type ComponentConfigExtensions as G, type History as H, type IframeConfig as I, type ComponentConfigParams as J, type ComponentDataMap as K, type ComponentDataOptionalId as L, type Metadata as M, type ComponentMetadata as N, type OnAction as O, type PrivateAppState as P, type ConfigParams as Q, type RootData as R, type CustomField as S, type CustomFieldRender as T, type UserGenerics as U, type Viewports as V, type WithId as W, type DefaultRootProps as X, type DefaultRootRenderProps as Y, type Direction as Z, type DragAxis as _, type PuckAction as a, type ExternalFieldWithAdaptor as a0, type ExtractConfigParams as a1, type ExtractField as a2, type FieldMetadata as a3, type FieldRenderFunctions as a4, type FieldTransformFn as a5, type FieldTransformFnParams as a6, type ItemWithId as a7, type MappedItem as a8, type NumberField as a9, type ObjectField as aa, type OverrideKey as ab, type PuckComponent as ac, type PuckContext as ad, type PuckMetadata as ae, type RadioField as af, type RichText as ag, type RootConfig as ah, type RootDataWithoutProps as ai, type SelectField as aj, type Slot as ak, type SlotComponent as al, type SlotField as am, type TextField as an, type TextareaField as ao, type Viewport as ap, type WithChildren as aq, type WithPuckProps as ar, type WithSlotProps as as, overrideKeys as at, type Content as b, type ComponentData as c, type DefaultComponents as d, type DefaultComponentProps as e, type DefaultRootFieldProps as f, type Permissions as g, type RootDataWithProps as h, type ResolveDataTrigger as i, type Plugin as j, type Overrides as k, type UiState as l, type ComponentConfig as m, type FieldTransforms as n, type RichtextField as o, type Field as p, type FieldProps as q, type DropZoneProps as r, type InitialHistory as s, type ItemSelector as t, type PluginInternal as u, type Adaptor as v, type ArrayField as w, type ArrayState as x, type AsFieldProps as y, type BaseField as z };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  useAlignOptions
3
- } from "./chunk-MSZPUXZP.mjs";
3
+ } from "./chunk-JGZBBNEW.mjs";
4
4
  import {
5
5
  useHeadingOptions
6
- } from "./chunk-KOUWDQ4Q.mjs";
6
+ } from "./chunk-BSAENBPL.mjs";
7
7
  import {
8
8
  useListOptions
9
- } from "./chunk-SKJTJUWU.mjs";
9
+ } from "./chunk-TVE6QYBR.mjs";
10
10
  import {
11
11
  AlignCenter,
12
12
  AlignJustify,
@@ -26,7 +26,7 @@ import {
26
26
  Strikethrough,
27
27
  Underline,
28
28
  useControlContext
29
- } from "./chunk-UMTU6EA7.mjs";
29
+ } from "./chunk-AFOEZCNE.mjs";
30
30
  import {
31
31
  get_class_name_factory_default
32
32
  } from "./chunk-Y2EFNT5P.mjs";
@@ -349,7 +349,7 @@ function AlignSelectFallback() {
349
349
  // components/RichTextMenu/controls/AlignSelect/index.tsx
350
350
  import { jsx as jsx10 } from "react/jsx-runtime";
351
351
  var AlignSelectLoaded = lazy(
352
- () => import("./loaded-362ACKSQ.mjs").then((m) => ({
352
+ () => import("./loaded-ANEJLSYJ.mjs").then((m) => ({
353
353
  default: m.AlignSelectLoaded
354
354
  }))
355
355
  );
@@ -580,7 +580,7 @@ function HeadingSelectFallback() {
580
580
  // components/RichTextMenu/controls/HeadingSelect/index.tsx
581
581
  import { jsx as jsx22 } from "react/jsx-runtime";
582
582
  var HeadingSelectLoaded = lazy2(
583
- () => import("./loaded-DIHUQBWF.mjs").then((m) => ({
583
+ () => import("./loaded-BKAMJ2FS.mjs").then((m) => ({
584
584
  default: m.HeadingSelectLoaded
585
585
  }))
586
586
  );
@@ -612,7 +612,7 @@ function ListSelectFallback() {
612
612
  // components/RichTextMenu/controls/ListSelect/index.tsx
613
613
  import { jsx as jsx24 } from "react/jsx-runtime";
614
614
  var ListSelectLoaded = lazy3(
615
- () => import("./loaded-SJJ63OY2.mjs").then((m) => ({
615
+ () => import("./loaded-2765LE3N.mjs").then((m) => ({
616
616
  default: m.ListSelectLoaded
617
617
  }))
618
618
  );
@@ -267,6 +267,15 @@ var expandNode = (node) => {
267
267
  });
268
268
  };
269
269
 
270
+ // lib/data/to-component.ts
271
+ init_react_import();
272
+ var toComponent = (item) => {
273
+ return "type" in item ? item : __spreadProps(__spreadValues({}, item), {
274
+ props: __spreadProps(__spreadValues({}, item.props), { id: "root" }),
275
+ type: "root"
276
+ });
277
+ };
278
+
270
279
  // lib/data/walk-app-state.ts
271
280
  init_react_import();
272
281
 
@@ -358,7 +367,7 @@ function walkAppState(state, config, mapContent = (content) => content, mapNodeO
358
367
  id
359
368
  });
360
369
  processRelatedZones(item, id, path);
361
- const newItem = __spreadProps(__spreadValues({}, item), { props: newProps });
370
+ const newItem = __spreadProps(__spreadValues({}, mappedItem), { props: newProps });
362
371
  const thisZoneCompound = path[path.length - 1];
363
372
  const [parentId, zone] = thisZoneCompound ? thisZoneCompound.split(":") : [null, ""];
364
373
  newNodeIndex[id] = {
@@ -398,17 +407,14 @@ function walkAppState(state, config, mapContent = (content) => content, mapNodeO
398
407
  );
399
408
  newZones[zoneCompound] = newContent2;
400
409
  }, newZones);
401
- const processedRoot = processItem(
402
- {
403
- type: "root",
404
- props: __spreadProps(__spreadValues({}, (_a = state.data.root.props) != null ? _a : state.data.root), { id: "root" })
405
- },
406
- [],
407
- -1
408
- );
409
- const root = __spreadProps(__spreadValues({}, state.data.root), {
410
- props: processedRoot.props
410
+ let rootAsComponent = toComponent({
411
+ props: __spreadValues({}, (_a = state.data.root.props) != null ? _a : state.data.root)
411
412
  });
413
+ if (state.data.root.readOnly) {
414
+ rootAsComponent.readOnly = state.data.root.readOnly;
415
+ }
416
+ const processedRoot = processItem(rootAsComponent, [], -1);
417
+ const root = __spreadValues(__spreadValues({}, state.data.root), processedRoot);
412
418
  return __spreadProps(__spreadValues({}, state), {
413
419
  data: {
414
420
  root,
@@ -449,6 +455,7 @@ export {
449
455
  walkField,
450
456
  mapFields,
451
457
  expandNode,
458
+ toComponent,
452
459
  walkAppState,
453
460
  generateId,
454
461
  walkTree,
@@ -2,20 +2,20 @@ import {
2
2
  createReducer,
3
3
  getItem,
4
4
  makeStatePublic
5
- } from "./chunk-37HTE4KO.mjs";
5
+ } from "./chunk-YLLE6KXH.mjs";
6
6
  import {
7
7
  defaultAppState,
8
8
  defaultViewports,
9
9
  getChanged,
10
10
  resolveComponentData
11
- } from "./chunk-MDUBGHWF.mjs";
11
+ } from "./chunk-BOKX3EBR.mjs";
12
12
  import {
13
13
  get_class_name_factory_default
14
14
  } from "./chunk-Y2EFNT5P.mjs";
15
15
  import {
16
16
  generateId,
17
17
  walkAppState
18
- } from "./chunk-PMXRXC2B.mjs";
18
+ } from "./chunk-754HNMU2.mjs";
19
19
  import {
20
20
  __async,
21
21
  __objRest,
@@ -649,7 +649,8 @@ var keyCodeMap = {
649
649
  KeyY: "y",
650
650
  KeyZ: "z",
651
651
  Delete: "delete",
652
- Backspace: "backspace"
652
+ Backspace: "backspace",
653
+ AltRight: "altRight"
653
654
  };
654
655
  var useHotkeyStore = create()(
655
656
  subscribeWithSelector((set) => ({
@@ -662,6 +663,10 @@ var useHotkeyStore = create()(
662
663
  );
663
664
  var monitorHotkeys = (doc) => {
664
665
  const onKeyDown = (e) => {
666
+ if (e.getModifierState("AltGraph")) {
667
+ useHotkeyStore.getState().hold("altRight");
668
+ return;
669
+ }
665
670
  const key = keyCodeMap[e.code];
666
671
  if (key) {
667
672
  useHotkeyStore.getState().hold(key);
@@ -685,6 +690,10 @@ var monitorHotkeys = (doc) => {
685
690
  }
686
691
  };
687
692
  const onKeyUp = (e) => {
693
+ if (!e.getModifierState("AltGraph") && e.code === "ControlRight") {
694
+ useHotkeyStore.getState().release("altRight");
695
+ return;
696
+ }
688
697
  const key = keyCodeMap[e.code];
689
698
  if (key) {
690
699
  if (key === "meta") {
@@ -842,12 +851,12 @@ function useRegisterHistorySlice(appStore, {
842
851
  const forward = () => {
843
852
  appStore.getState().history.forward();
844
853
  };
845
- useHotkey({ meta: true, z: true }, back);
846
- useHotkey({ meta: true, shift: true, z: true }, forward);
847
- useHotkey({ meta: true, y: true }, forward);
848
- useHotkey({ ctrl: true, z: true }, back);
849
- useHotkey({ ctrl: true, shift: true, z: true }, forward);
850
- useHotkey({ ctrl: true, y: true }, forward);
854
+ useHotkey({ altRight: false, meta: true, z: true }, back);
855
+ useHotkey({ altRight: false, meta: true, shift: true, z: true }, forward);
856
+ useHotkey({ altRight: false, meta: true, y: true }, forward);
857
+ useHotkey({ altRight: false, ctrl: true, z: true }, back);
858
+ useHotkey({ altRight: false, ctrl: true, shift: true, z: true }, forward);
859
+ useHotkey({ altRight: false, ctrl: true, y: true }, forward);
851
860
  }
852
861
 
853
862
  // store/slices/nodes.ts
@@ -1,6 +1,7 @@
1
1
  import {
2
- mapFields
3
- } from "./chunk-PMXRXC2B.mjs";
2
+ mapFields,
3
+ toComponent
4
+ } from "./chunk-754HNMU2.mjs";
4
5
  import {
5
6
  __async,
6
7
  __spreadProps,
@@ -17,15 +18,6 @@ var defaultViewports = [
17
18
  { width: "100%", height: "auto", icon: "FullWidth", label: "Full-width" }
18
19
  ];
19
20
 
20
- // lib/data/to-component.ts
21
- init_react_import();
22
- var toComponent = (item) => {
23
- return "type" in item ? item : __spreadProps(__spreadValues({}, item), {
24
- props: __spreadProps(__spreadValues({}, item.props), { id: "root" }),
25
- type: "root"
26
- });
27
- };
28
-
29
21
  // lib/resolve-component-data.ts
30
22
  init_react_import();
31
23
 
@@ -150,7 +142,6 @@ var defaultAppState = {
150
142
  export {
151
143
  defaultViewports,
152
144
  getChanged,
153
- toComponent,
154
145
  resolveComponentData,
155
146
  defaultAppState
156
147
  };
@@ -5,7 +5,7 @@ import {
5
5
  Heading4,
6
6
  Heading5,
7
7
  Heading6
8
- } from "./chunk-UMTU6EA7.mjs";
8
+ } from "./chunk-AFOEZCNE.mjs";
9
9
  import {
10
10
  init_react_import
11
11
  } from "./chunk-M6W7YEVX.mjs";
@@ -3,9 +3,8 @@ import {
3
3
  } from "./chunk-AOEDIUVK.mjs";
4
4
  import {
5
5
  defaultAppState,
6
- resolveComponentData,
7
- toComponent
8
- } from "./chunk-MDUBGHWF.mjs";
6
+ resolveComponentData
7
+ } from "./chunk-BOKX3EBR.mjs";
9
8
  import {
10
9
  get_class_name_factory_default
11
10
  } from "./chunk-Y2EFNT5P.mjs";
@@ -13,9 +12,10 @@ import {
13
12
  generateId,
14
13
  getZoneId,
15
14
  mapFields,
15
+ toComponent,
16
16
  walkAppState,
17
17
  walkTree
18
- } from "./chunk-PMXRXC2B.mjs";
18
+ } from "./chunk-754HNMU2.mjs";
19
19
  import {
20
20
  __async,
21
21
  __objRest,
@@ -3,11 +3,11 @@ import {
3
3
  } from "./chunk-AOEDIUVK.mjs";
4
4
  import {
5
5
  LoadedRichTextMenuInner
6
- } from "./chunk-5V242HXR.mjs";
6
+ } from "./chunk-46RDHJGL.mjs";
7
7
  import {
8
8
  useAppStore,
9
9
  useAppStoreApi
10
- } from "./chunk-UMTU6EA7.mjs";
10
+ } from "./chunk-AFOEZCNE.mjs";
11
11
  import {
12
12
  get_class_name_factory_default
13
13
  } from "./chunk-Y2EFNT5P.mjs";
@@ -100,7 +100,7 @@ init_react_import();
100
100
  import { lazy, Suspense } from "react";
101
101
  import { jsx as jsx2 } from "react/jsx-runtime";
102
102
  var LoadedRichTextMenuFull = lazy(
103
- () => import("./full-KLPRWVS4.mjs").then((m) => ({
103
+ () => import("./full-ATSD2DNB.mjs").then((m) => ({
104
104
  default: m.LoadedRichTextMenuFull
105
105
  }))
106
106
  );