@puckeditor/core 0.21.1 → 0.21.2-canary.2fa198e1

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-BRYM0ifH.d.mts} +1 -1
  4. package/dist/{actions-BkBoKAc5.d.ts → actions-BRYM0ifH.d.ts} +1 -1
  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-MSZPUXZP.mjs → chunk-JGZBBNEW.mjs} +1 -1
  13. package/dist/{chunk-EBISZQTK.mjs → chunk-LBGOSTI5.mjs} +3642 -3627
  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-BVLGipsj.d.mts} +1 -1
  18. package/dist/{index-lt1zf5WR.d.ts → index-D_Idfrfb.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 +99 -74
  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 +97 -75
  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-C1Zdgx7d.d.mts} +1 -1
  40. package/dist/{walk-tree-CS7sEpfG.d.ts → walk-tree-DQyC1GA7.d.ts} +1 -1
  41. package/package.json +1 -1
@@ -1,4 +1,146 @@
1
- @import "https://rsms.me/inter/inter.css";
1
+ /* styles/color.css */
2
+ :root {
3
+ --puck-color-rose-01: #4a001c;
4
+ --puck-color-rose-02: #670833;
5
+ --puck-color-rose-03: #87114c;
6
+ --puck-color-rose-04: #a81a66;
7
+ --puck-color-rose-05: #bc5089;
8
+ --puck-color-rose-06: #cc7ca5;
9
+ --puck-color-rose-07: #d89aba;
10
+ --puck-color-rose-08: #e3b8cf;
11
+ --puck-color-rose-09: #efd6e3;
12
+ --puck-color-rose-10: #f6eaf1;
13
+ --puck-color-rose-11: #faf4f8;
14
+ --puck-color-rose-12: #fef8fc;
15
+ --puck-color-azure-01: #00175d;
16
+ --puck-color-azure-02: #002c77;
17
+ --puck-color-azure-03: #014292;
18
+ --puck-color-azure-04: #0158ad;
19
+ --puck-color-azure-05: #3479be;
20
+ --puck-color-azure-06: #6499cf;
21
+ --puck-color-azure-07: #88b0da;
22
+ --puck-color-azure-08: #abc7e5;
23
+ --puck-color-azure-09: #cfdff0;
24
+ --puck-color-azure-10: #e7eef7;
25
+ --puck-color-azure-11: #f3f6fb;
26
+ --puck-color-azure-12: #f7faff;
27
+ --puck-color-green-01: #002000;
28
+ --puck-color-green-02: #043604;
29
+ --puck-color-green-03: #084e08;
30
+ --puck-color-green-04: #0c680c;
31
+ --puck-color-green-05: #1d882f;
32
+ --puck-color-green-06: #2faa53;
33
+ --puck-color-green-07: #56c16f;
34
+ --puck-color-green-08: #7dd78b;
35
+ --puck-color-green-09: #b8e8bf;
36
+ --puck-color-green-10: #ddf3e0;
37
+ --puck-color-green-11: #eff8f0;
38
+ --puck-color-green-12: #f3fcf4;
39
+ --puck-color-yellow-01: #211000;
40
+ --puck-color-yellow-02: #362700;
41
+ --puck-color-yellow-03: #4c4000;
42
+ --puck-color-yellow-04: #645a00;
43
+ --puck-color-yellow-05: #877614;
44
+ --puck-color-yellow-06: #ab9429;
45
+ --puck-color-yellow-07: #bfac4e;
46
+ --puck-color-yellow-08: #d4c474;
47
+ --puck-color-yellow-09: #e6deb1;
48
+ --puck-color-yellow-10: #f3efd9;
49
+ --puck-color-yellow-11: #f9f7ed;
50
+ --puck-color-yellow-12: #fcfaf0;
51
+ --puck-color-red-01: #4c0000;
52
+ --puck-color-red-02: #6a0a10;
53
+ --puck-color-red-03: #8a1422;
54
+ --puck-color-red-04: #ac1f35;
55
+ --puck-color-red-05: #bf5366;
56
+ --puck-color-red-06: #ce7e8e;
57
+ --puck-color-red-07: #d99ca8;
58
+ --puck-color-red-08: #e4b9c2;
59
+ --puck-color-red-09: #efd7db;
60
+ --puck-color-red-10: #f6eaec;
61
+ --puck-color-red-11: #faf4f5;
62
+ --puck-color-red-12: #fff9fa;
63
+ --puck-color-grey-01: #181818;
64
+ --puck-color-grey-02: #292929;
65
+ --puck-color-grey-03: #404040;
66
+ --puck-color-grey-04: #5a5a5a;
67
+ --puck-color-grey-05: #767676;
68
+ --puck-color-grey-06: #949494;
69
+ --puck-color-grey-07: #ababab;
70
+ --puck-color-grey-08: #c3c3c3;
71
+ --puck-color-grey-09: #dcdcdc;
72
+ --puck-color-grey-10: #efefef;
73
+ --puck-color-grey-11: #f5f5f5;
74
+ --puck-color-grey-12: #fafafa;
75
+ --puck-color-black: #000000;
76
+ --puck-color-white: #ffffff;
77
+ }
78
+
79
+ /* styles/typography.css */
80
+ :root {
81
+ --puck-font-size-scale-base-unitless: 12;
82
+ --puck-font-size-xxxs-unitless: 12;
83
+ --puck-font-size-xxs-unitless: 14;
84
+ --puck-font-size-xs-unitless: 16;
85
+ --puck-font-size-s-unitless: 18;
86
+ --puck-font-size-m-unitless: 21;
87
+ --puck-font-size-l-unitless: 24;
88
+ --puck-font-size-xl-unitless: 28;
89
+ --puck-font-size-xxl-unitless: 36;
90
+ --puck-font-size-xxxl-unitless: 48;
91
+ --puck-font-size-xxxxl-unitless: 56;
92
+ --puck-font-size-xxxs: calc(1rem * var(--puck-font-size-xxxs-unitless) / 16);
93
+ --puck-font-size-xxs: calc(1rem * var(--puck-font-size-xxs-unitless) / 16);
94
+ --puck-font-size-xs: calc(1rem * var(--puck-font-size-xs-unitless) / 16);
95
+ --puck-font-size-s: calc(1rem * var(--puck-font-size-s-unitless) / 16);
96
+ --puck-font-size-m: calc(1rem * var(--puck-font-size-m-unitless) / 16);
97
+ --puck-font-size-l: calc(1rem * var(--puck-font-size-l-unitless) / 16);
98
+ --puck-font-size-xl: calc(1rem * var(--puck-font-size-xl-unitless) / 16);
99
+ --puck-font-size-xxl: calc(1rem * var(--puck-font-size-xxl-unitless) / 16);
100
+ --puck-font-size-xxxl: calc(1rem * var(--puck-font-size-xxxl-unitless) / 16);
101
+ --puck-font-size-xxxxl: calc( 1rem * var(--puck-font-size-xxxxl-unitless) / 16 );
102
+ --puck-font-size-base: var(--puck-font-size-xs);
103
+ --line-height-reset: 1;
104
+ --line-height-xs: calc( var(--space-m-unitless) / var(--puck-font-size-m-unitless) );
105
+ --line-height-s: calc( var(--space-m-unitless) / var(--puck-font-size-s-unitless) );
106
+ --line-height-m: calc( var(--space-m-unitless) / var(--puck-font-size-xs-unitless) );
107
+ --line-height-l: calc( var(--space-m-unitless) / var(--puck-font-size-xxs-unitless) );
108
+ --line-height-xl: calc( var(--space-m-unitless) / var(--puck-font-size-scale-base-unitless) );
109
+ --line-height-base: var(--line-height-m);
110
+ --fallback-font-stack:
111
+ -apple-system,
112
+ BlinkMacSystemFont,
113
+ Segoe UI,
114
+ Helvetica Neue,
115
+ sans-serif,
116
+ Apple Color Emoji,
117
+ Segoe UI Emoji,
118
+ Segoe UI Symbol;
119
+ --puck-font-family: Inter, var(--fallback-font-stack);
120
+ --puck-font-family-monospaced:
121
+ ui-monospace,
122
+ "Cascadia Code",
123
+ "Source Code Pro",
124
+ Menlo,
125
+ Consolas,
126
+ "DejaVu Sans Mono",
127
+ monospace;
128
+ }
129
+ @supports (font-variation-settings: normal) {
130
+ :root {
131
+ --puck-font-family: InterVariable, var(--fallback-font-stack);
132
+ }
133
+ }
134
+
135
+ /* bundle/core.css */
136
+ #frame-root {
137
+ height: 1px;
138
+ min-height: 100vh;
139
+ }
140
+ [data-puck-entry] {
141
+ position: relative;
142
+ z-index: 0;
143
+ }
2
144
 
3
145
  /* bundle/no-external.css */
4
146
 
@@ -511,152 +653,6 @@ textarea._Input-input_bsxfo_26 {
511
653
  transition: none !important;
512
654
  }
513
655
 
514
- /* styles/color.css */
515
- :root {
516
- --puck-color-rose-01: #4a001c;
517
- --puck-color-rose-02: #670833;
518
- --puck-color-rose-03: #87114c;
519
- --puck-color-rose-04: #a81a66;
520
- --puck-color-rose-05: #bc5089;
521
- --puck-color-rose-06: #cc7ca5;
522
- --puck-color-rose-07: #d89aba;
523
- --puck-color-rose-08: #e3b8cf;
524
- --puck-color-rose-09: #efd6e3;
525
- --puck-color-rose-10: #f6eaf1;
526
- --puck-color-rose-11: #faf4f8;
527
- --puck-color-rose-12: #fef8fc;
528
- --puck-color-azure-01: #00175d;
529
- --puck-color-azure-02: #002c77;
530
- --puck-color-azure-03: #014292;
531
- --puck-color-azure-04: #0158ad;
532
- --puck-color-azure-05: #3479be;
533
- --puck-color-azure-06: #6499cf;
534
- --puck-color-azure-07: #88b0da;
535
- --puck-color-azure-08: #abc7e5;
536
- --puck-color-azure-09: #cfdff0;
537
- --puck-color-azure-10: #e7eef7;
538
- --puck-color-azure-11: #f3f6fb;
539
- --puck-color-azure-12: #f7faff;
540
- --puck-color-green-01: #002000;
541
- --puck-color-green-02: #043604;
542
- --puck-color-green-03: #084e08;
543
- --puck-color-green-04: #0c680c;
544
- --puck-color-green-05: #1d882f;
545
- --puck-color-green-06: #2faa53;
546
- --puck-color-green-07: #56c16f;
547
- --puck-color-green-08: #7dd78b;
548
- --puck-color-green-09: #b8e8bf;
549
- --puck-color-green-10: #ddf3e0;
550
- --puck-color-green-11: #eff8f0;
551
- --puck-color-green-12: #f3fcf4;
552
- --puck-color-yellow-01: #211000;
553
- --puck-color-yellow-02: #362700;
554
- --puck-color-yellow-03: #4c4000;
555
- --puck-color-yellow-04: #645a00;
556
- --puck-color-yellow-05: #877614;
557
- --puck-color-yellow-06: #ab9429;
558
- --puck-color-yellow-07: #bfac4e;
559
- --puck-color-yellow-08: #d4c474;
560
- --puck-color-yellow-09: #e6deb1;
561
- --puck-color-yellow-10: #f3efd9;
562
- --puck-color-yellow-11: #f9f7ed;
563
- --puck-color-yellow-12: #fcfaf0;
564
- --puck-color-red-01: #4c0000;
565
- --puck-color-red-02: #6a0a10;
566
- --puck-color-red-03: #8a1422;
567
- --puck-color-red-04: #ac1f35;
568
- --puck-color-red-05: #bf5366;
569
- --puck-color-red-06: #ce7e8e;
570
- --puck-color-red-07: #d99ca8;
571
- --puck-color-red-08: #e4b9c2;
572
- --puck-color-red-09: #efd7db;
573
- --puck-color-red-10: #f6eaec;
574
- --puck-color-red-11: #faf4f5;
575
- --puck-color-red-12: #fff9fa;
576
- --puck-color-grey-01: #181818;
577
- --puck-color-grey-02: #292929;
578
- --puck-color-grey-03: #404040;
579
- --puck-color-grey-04: #5a5a5a;
580
- --puck-color-grey-05: #767676;
581
- --puck-color-grey-06: #949494;
582
- --puck-color-grey-07: #ababab;
583
- --puck-color-grey-08: #c3c3c3;
584
- --puck-color-grey-09: #dcdcdc;
585
- --puck-color-grey-10: #efefef;
586
- --puck-color-grey-11: #f5f5f5;
587
- --puck-color-grey-12: #fafafa;
588
- --puck-color-black: #000000;
589
- --puck-color-white: #ffffff;
590
- }
591
-
592
- /* styles/typography.css */
593
- :root {
594
- --puck-font-size-scale-base-unitless: 12;
595
- --puck-font-size-xxxs-unitless: 12;
596
- --puck-font-size-xxs-unitless: 14;
597
- --puck-font-size-xs-unitless: 16;
598
- --puck-font-size-s-unitless: 18;
599
- --puck-font-size-m-unitless: 21;
600
- --puck-font-size-l-unitless: 24;
601
- --puck-font-size-xl-unitless: 28;
602
- --puck-font-size-xxl-unitless: 36;
603
- --puck-font-size-xxxl-unitless: 48;
604
- --puck-font-size-xxxxl-unitless: 56;
605
- --puck-font-size-xxxs: calc(1rem * var(--puck-font-size-xxxs-unitless) / 16);
606
- --puck-font-size-xxs: calc(1rem * var(--puck-font-size-xxs-unitless) / 16);
607
- --puck-font-size-xs: calc(1rem * var(--puck-font-size-xs-unitless) / 16);
608
- --puck-font-size-s: calc(1rem * var(--puck-font-size-s-unitless) / 16);
609
- --puck-font-size-m: calc(1rem * var(--puck-font-size-m-unitless) / 16);
610
- --puck-font-size-l: calc(1rem * var(--puck-font-size-l-unitless) / 16);
611
- --puck-font-size-xl: calc(1rem * var(--puck-font-size-xl-unitless) / 16);
612
- --puck-font-size-xxl: calc(1rem * var(--puck-font-size-xxl-unitless) / 16);
613
- --puck-font-size-xxxl: calc(1rem * var(--puck-font-size-xxxl-unitless) / 16);
614
- --puck-font-size-xxxxl: calc( 1rem * var(--puck-font-size-xxxxl-unitless) / 16 );
615
- --puck-font-size-base: var(--puck-font-size-xs);
616
- --line-height-reset: 1;
617
- --line-height-xs: calc( var(--space-m-unitless) / var(--puck-font-size-m-unitless) );
618
- --line-height-s: calc( var(--space-m-unitless) / var(--puck-font-size-s-unitless) );
619
- --line-height-m: calc( var(--space-m-unitless) / var(--puck-font-size-xs-unitless) );
620
- --line-height-l: calc( var(--space-m-unitless) / var(--puck-font-size-xxs-unitless) );
621
- --line-height-xl: calc( var(--space-m-unitless) / var(--puck-font-size-scale-base-unitless) );
622
- --line-height-base: var(--line-height-m);
623
- --fallback-font-stack:
624
- -apple-system,
625
- BlinkMacSystemFont,
626
- Segoe UI,
627
- Helvetica Neue,
628
- sans-serif,
629
- Apple Color Emoji,
630
- Segoe UI Emoji,
631
- Segoe UI Symbol;
632
- --puck-font-family: Inter, var(--fallback-font-stack);
633
- --puck-font-family-monospaced:
634
- ui-monospace,
635
- "Cascadia Code",
636
- "Source Code Pro",
637
- Menlo,
638
- Consolas,
639
- "DejaVu Sans Mono",
640
- monospace;
641
- }
642
- @supports (font-variation-settings: normal) {
643
- :root {
644
- --puck-font-family: InterVariable, var(--fallback-font-stack);
645
- }
646
- }
647
-
648
- /* bundle/core.css */
649
- #frame-root {
650
- height: 1px;
651
- min-height: 100vh;
652
- }
653
- [data-puck-entry] {
654
- position: relative;
655
- z-index: 0;
656
- }
657
-
658
- /* bundle/index.css */
659
-
660
656
  /* css-module:/home/runner/work/puck/puck/packages/core/components/ExternalInput/styles.module.css/#css-module-data */
661
657
  ._ExternalInput-actions_91ls0_1 {
662
658
  display: flex;
@@ -1,6 +1,6 @@
1
- export { ag as Adaptor, A as AppState, ae as ArrayField, N as ArrayState, ar as AsFieldProps, a0 as BaseData, a8 as BaseField, ai as CacheOpts, m as ComponentConfig, X as ComponentConfigExtensions, $ as ComponentConfigParams, c as ComponentData, a4 as ComponentDataMap, a2 as ComponentDataOptionalId, a6 as ComponentMetadata, C as Config, _ as ConfigParams, b as Content, al as CustomField, ak as CustomFieldRender, D as Data, e as DefaultComponentProps, d as DefaultComponents, f as DefaultRootFieldProps, ap as DefaultRootProps, ao as DefaultRootRenderProps, x as Direction, y as DragAxis, aj as ExternalField, ah as ExternalFieldWithAdaptor, Z as ExtractConfigParams, at as ExtractField, p as Field, a7 as FieldMetadata, q as FieldProps, K as FieldRenderFunctions, E as FieldTransformFn, B as FieldTransformFnParams, n as FieldTransforms, F as Fields, H as History, I as IframeConfig, s as InitialHistory, L as ItemWithId, a3 as MappedItem, M as Metadata, aa as NumberField, af as ObjectField, O as OnAction, J as OverrideKey, k as Overrides, g as Permissions, j as Plugin, a as PuckAction, T as PuckComponent, an as PuckContext, a5 as PuckMetadata, ad as RadioField, i as ResolveDataTrigger, w as RichText, o as RichtextField, Y as RootConfig, R as RootData, h as RootDataWithProps, a1 as RootDataWithoutProps, ac as SelectField, S as Slot, Q as SlotComponent, am as SlotField, a9 as TextField, ab as TextareaField, l as UiState, U as UserGenerics, z as Viewport, V as Viewports, as as WithChildren, W as WithId, aq as WithPuckProps, v as WithSlotProps, G as overrideKeys } from './actions-BkBoKAc5.mjs';
1
+ export { v as Adaptor, A as AppState, w as ArrayField, x as ArrayState, y as AsFieldProps, B as BaseData, z as BaseField, E as CacheOpts, m as ComponentConfig, G as ComponentConfigExtensions, J as ComponentConfigParams, c as ComponentData, K as ComponentDataMap, L as ComponentDataOptionalId, N as ComponentMetadata, C as Config, Q as ConfigParams, b as Content, S as CustomField, T as CustomFieldRender, D as Data, e as DefaultComponentProps, d as DefaultComponents, f as DefaultRootFieldProps, X as DefaultRootProps, Y as DefaultRootRenderProps, Z as Direction, _ as DragAxis, $ as ExternalField, a0 as ExternalFieldWithAdaptor, a1 as ExtractConfigParams, a2 as ExtractField, p as Field, a3 as FieldMetadata, q as FieldProps, a4 as FieldRenderFunctions, a5 as FieldTransformFn, a6 as FieldTransformFnParams, n as FieldTransforms, F as Fields, H as History, I as IframeConfig, s as InitialHistory, a7 as ItemWithId, a8 as MappedItem, M as Metadata, a9 as NumberField, aa as ObjectField, O as OnAction, ab as OverrideKey, k as Overrides, g as Permissions, j as Plugin, a as PuckAction, ac as PuckComponent, ad as PuckContext, ae as PuckMetadata, af as RadioField, i as ResolveDataTrigger, ag as RichText, o as RichtextField, ah as RootConfig, R as RootData, h as RootDataWithProps, ai as RootDataWithoutProps, aj as SelectField, ak as Slot, al as SlotComponent, am as SlotField, an as TextField, ao as TextareaField, l as UiState, U as UserGenerics, ap as Viewport, V as Viewports, aq as WithChildren, W as WithId, ar as WithPuckProps, as as WithSlotProps, at as overrideKeys } from './actions-BRYM0ifH.mjs';
2
2
  export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, RichTextMenu, Separator, UsePuckData, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.mjs';
3
- export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CRRDqx6_.mjs';
3
+ export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-C1Zdgx7d.mjs';
4
4
  import 'react';
5
5
  import '@tiptap/react';
6
6
  import '@tiptap/extension-blockquote';
@@ -18,4 +18,4 @@ import '@tiptap/extension-strike';
18
18
  import '@tiptap/extension-text-align';
19
19
  import '@tiptap/extension-underline';
20
20
  import 'react/jsx-runtime';
21
- import './index-bqD1SEOb.mjs';
21
+ import './index-BVLGipsj.mjs';
@@ -1,6 +1,6 @@
1
- export { ag as Adaptor, A as AppState, ae as ArrayField, N as ArrayState, ar as AsFieldProps, a0 as BaseData, a8 as BaseField, ai as CacheOpts, m as ComponentConfig, X as ComponentConfigExtensions, $ as ComponentConfigParams, c as ComponentData, a4 as ComponentDataMap, a2 as ComponentDataOptionalId, a6 as ComponentMetadata, C as Config, _ as ConfigParams, b as Content, al as CustomField, ak as CustomFieldRender, D as Data, e as DefaultComponentProps, d as DefaultComponents, f as DefaultRootFieldProps, ap as DefaultRootProps, ao as DefaultRootRenderProps, x as Direction, y as DragAxis, aj as ExternalField, ah as ExternalFieldWithAdaptor, Z as ExtractConfigParams, at as ExtractField, p as Field, a7 as FieldMetadata, q as FieldProps, K as FieldRenderFunctions, E as FieldTransformFn, B as FieldTransformFnParams, n as FieldTransforms, F as Fields, H as History, I as IframeConfig, s as InitialHistory, L as ItemWithId, a3 as MappedItem, M as Metadata, aa as NumberField, af as ObjectField, O as OnAction, J as OverrideKey, k as Overrides, g as Permissions, j as Plugin, a as PuckAction, T as PuckComponent, an as PuckContext, a5 as PuckMetadata, ad as RadioField, i as ResolveDataTrigger, w as RichText, o as RichtextField, Y as RootConfig, R as RootData, h as RootDataWithProps, a1 as RootDataWithoutProps, ac as SelectField, S as Slot, Q as SlotComponent, am as SlotField, a9 as TextField, ab as TextareaField, l as UiState, U as UserGenerics, z as Viewport, V as Viewports, as as WithChildren, W as WithId, aq as WithPuckProps, v as WithSlotProps, G as overrideKeys } from './actions-BkBoKAc5.js';
1
+ export { v as Adaptor, A as AppState, w as ArrayField, x as ArrayState, y as AsFieldProps, B as BaseData, z as BaseField, E as CacheOpts, m as ComponentConfig, G as ComponentConfigExtensions, J as ComponentConfigParams, c as ComponentData, K as ComponentDataMap, L as ComponentDataOptionalId, N as ComponentMetadata, C as Config, Q as ConfigParams, b as Content, S as CustomField, T as CustomFieldRender, D as Data, e as DefaultComponentProps, d as DefaultComponents, f as DefaultRootFieldProps, X as DefaultRootProps, Y as DefaultRootRenderProps, Z as Direction, _ as DragAxis, $ as ExternalField, a0 as ExternalFieldWithAdaptor, a1 as ExtractConfigParams, a2 as ExtractField, p as Field, a3 as FieldMetadata, q as FieldProps, a4 as FieldRenderFunctions, a5 as FieldTransformFn, a6 as FieldTransformFnParams, n as FieldTransforms, F as Fields, H as History, I as IframeConfig, s as InitialHistory, a7 as ItemWithId, a8 as MappedItem, M as Metadata, a9 as NumberField, aa as ObjectField, O as OnAction, ab as OverrideKey, k as Overrides, g as Permissions, j as Plugin, a as PuckAction, ac as PuckComponent, ad as PuckContext, ae as PuckMetadata, af as RadioField, i as ResolveDataTrigger, ag as RichText, o as RichtextField, ah as RootConfig, R as RootData, h as RootDataWithProps, ai as RootDataWithoutProps, aj as SelectField, ak as Slot, al as SlotComponent, am as SlotField, an as TextField, ao as TextareaField, l as UiState, U as UserGenerics, ap as Viewport, V as Viewports, aq as WithChildren, W as WithId, ar as WithPuckProps, as as WithSlotProps, at as overrideKeys } from './actions-BRYM0ifH.js';
2
2
  export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, RichTextMenu, Separator, UsePuckData, blocksPlugin, createUsePuck, fieldsPlugin, legacySideBarPlugin, outlinePlugin, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.js';
3
- export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-CS7sEpfG.js';
3
+ export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-DQyC1GA7.js';
4
4
  import 'react';
5
5
  import '@tiptap/react';
6
6
  import '@tiptap/extension-blockquote';
@@ -18,4 +18,4 @@ import '@tiptap/extension-strike';
18
18
  import '@tiptap/extension-text-align';
19
19
  import '@tiptap/extension-underline';
20
20
  import 'react/jsx-runtime';
21
- import './index-lt1zf5WR.js';
21
+ import './index-D_Idfrfb.js';
@@ -1651,6 +1651,21 @@ var init_flatten_node = __esm({
1651
1651
  }
1652
1652
  });
1653
1653
 
1654
+ // lib/data/to-component.ts
1655
+ var toComponent;
1656
+ var init_to_component = __esm({
1657
+ "lib/data/to-component.ts"() {
1658
+ "use strict";
1659
+ init_react_import();
1660
+ toComponent = (item) => {
1661
+ return "type" in item ? item : __spreadProps(__spreadValues({}, item), {
1662
+ props: __spreadProps(__spreadValues({}, item.props), { id: "root" }),
1663
+ type: "root"
1664
+ });
1665
+ };
1666
+ }
1667
+ });
1668
+
1654
1669
  // lib/data/walk-app-state.ts
1655
1670
  function walkAppState(state, config, mapContent = (content) => content, mapNodeOrSkip = (item) => item) {
1656
1671
  var _a;
@@ -1714,7 +1729,7 @@ function walkAppState(state, config, mapContent = (content) => content, mapNodeO
1714
1729
  id
1715
1730
  });
1716
1731
  processRelatedZones(item, id, path);
1717
- const newItem = __spreadProps(__spreadValues({}, item), { props: newProps });
1732
+ const newItem = __spreadProps(__spreadValues({}, mappedItem), { props: newProps });
1718
1733
  const thisZoneCompound = path[path.length - 1];
1719
1734
  const [parentId, zone] = thisZoneCompound ? thisZoneCompound.split(":") : [null, ""];
1720
1735
  newNodeIndex[id] = {
@@ -1754,17 +1769,14 @@ function walkAppState(state, config, mapContent = (content) => content, mapNodeO
1754
1769
  );
1755
1770
  newZones[zoneCompound] = newContent2;
1756
1771
  }, newZones);
1757
- const processedRoot = processItem(
1758
- {
1759
- type: "root",
1760
- props: __spreadProps(__spreadValues({}, (_a = state.data.root.props) != null ? _a : state.data.root), { id: "root" })
1761
- },
1762
- [],
1763
- -1
1764
- );
1765
- const root = __spreadProps(__spreadValues({}, state.data.root), {
1766
- props: processedRoot.props
1772
+ let rootAsComponent = toComponent({
1773
+ props: __spreadValues({}, (_a = state.data.root.props) != null ? _a : state.data.root)
1767
1774
  });
1775
+ if (state.data.root.readOnly) {
1776
+ rootAsComponent.readOnly = state.data.root.readOnly;
1777
+ }
1778
+ const processedRoot = processItem(rootAsComponent, [], -1);
1779
+ const root = __spreadValues(__spreadValues({}, state.data.root), processedRoot);
1768
1780
  return __spreadProps(__spreadValues({}, state), {
1769
1781
  data: {
1770
1782
  root,
@@ -1785,6 +1797,7 @@ var init_walk_app_state = __esm({
1785
1797
  init_root_droppable_id();
1786
1798
  init_map_fields();
1787
1799
  init_flatten_node();
1800
+ init_to_component();
1788
1801
  }
1789
1802
  });
1790
1803
 
@@ -2566,7 +2579,8 @@ var init_use_hotkey = __esm({
2566
2579
  KeyY: "y",
2567
2580
  KeyZ: "z",
2568
2581
  Delete: "delete",
2569
- Backspace: "backspace"
2582
+ Backspace: "backspace",
2583
+ AltRight: "altRight"
2570
2584
  };
2571
2585
  useHotkeyStore = (0, import_zustand3.create)()(
2572
2586
  (0, import_middleware2.subscribeWithSelector)((set) => ({
@@ -2579,6 +2593,10 @@ var init_use_hotkey = __esm({
2579
2593
  );
2580
2594
  monitorHotkeys = (doc) => {
2581
2595
  const onKeyDown = (e) => {
2596
+ if (e.getModifierState("AltGraph")) {
2597
+ useHotkeyStore.getState().hold("altRight");
2598
+ return;
2599
+ }
2582
2600
  const key = keyCodeMap[e.code];
2583
2601
  if (key) {
2584
2602
  useHotkeyStore.getState().hold(key);
@@ -2602,6 +2620,10 @@ var init_use_hotkey = __esm({
2602
2620
  }
2603
2621
  };
2604
2622
  const onKeyUp = (e) => {
2623
+ if (!e.getModifierState("AltGraph") && e.code === "ControlRight") {
2624
+ useHotkeyStore.getState().release("altRight");
2625
+ return;
2626
+ }
2605
2627
  const key = keyCodeMap[e.code];
2606
2628
  if (key) {
2607
2629
  if (key === "meta") {
@@ -2677,12 +2699,12 @@ function useRegisterHistorySlice(appStore, {
2677
2699
  const forward = () => {
2678
2700
  appStore.getState().history.forward();
2679
2701
  };
2680
- useHotkey({ meta: true, z: true }, back);
2681
- useHotkey({ meta: true, shift: true, z: true }, forward);
2682
- useHotkey({ meta: true, y: true }, forward);
2683
- useHotkey({ ctrl: true, z: true }, back);
2684
- useHotkey({ ctrl: true, shift: true, z: true }, forward);
2685
- useHotkey({ ctrl: true, y: true }, forward);
2702
+ useHotkey({ altRight: false, meta: true, z: true }, back);
2703
+ useHotkey({ altRight: false, meta: true, shift: true, z: true }, forward);
2704
+ useHotkey({ altRight: false, meta: true, y: true }, forward);
2705
+ useHotkey({ altRight: false, ctrl: true, z: true }, back);
2706
+ useHotkey({ altRight: false, ctrl: true, shift: true, z: true }, forward);
2707
+ useHotkey({ altRight: false, ctrl: true, y: true }, forward);
2686
2708
  }
2687
2709
  var import_react7, EMPTY_HISTORY_INDEX, tidyState, createHistorySlice;
2688
2710
  var init_history = __esm({
@@ -3110,21 +3132,6 @@ var init_fields = __esm({
3110
3132
  }
3111
3133
  });
3112
3134
 
3113
- // lib/data/to-component.ts
3114
- var toComponent;
3115
- var init_to_component = __esm({
3116
- "lib/data/to-component.ts"() {
3117
- "use strict";
3118
- init_react_import();
3119
- toComponent = (item) => {
3120
- return "type" in item ? item : __spreadProps(__spreadValues({}, item), {
3121
- props: __spreadProps(__spreadValues({}, item.props), { id: "root" }),
3122
- type: "root"
3123
- });
3124
- };
3125
- }
3126
- });
3127
-
3128
3135
  // lib/resolve-component-data.ts
3129
3136
  var import_fast_equals2, cache, resolveComponentData;
3130
3137
  var init_resolve_component_data = __esm({
@@ -6298,8 +6305,39 @@ var SubFieldInternal = ({
6298
6305
  };
6299
6306
  var SubField = (0, import_react16.memo)(SubFieldInternal);
6300
6307
 
6301
- // bundle/index.ts
6308
+ // lib/data/set-deep.ts
6302
6309
  init_react_import();
6310
+ function setDeep(node, path, newVal) {
6311
+ const parts = path.split(".");
6312
+ const newNode = __spreadValues({}, node);
6313
+ let cur = newNode;
6314
+ for (let i = 0; i < parts.length; i++) {
6315
+ const [prop, idxStr] = parts[i].replace("]", "").split("[");
6316
+ const isLast = i === parts.length - 1;
6317
+ if (idxStr !== void 0) {
6318
+ if (!Array.isArray(cur[prop])) {
6319
+ cur[prop] = [];
6320
+ }
6321
+ const idx = Number(idxStr);
6322
+ if (isLast) {
6323
+ cur[prop][idx] = newVal;
6324
+ continue;
6325
+ }
6326
+ if (cur[prop][idx] === void 0) cur[prop][idx] = {};
6327
+ cur = cur[prop][idx];
6328
+ continue;
6329
+ }
6330
+ if (isLast) {
6331
+ cur[prop] = newVal;
6332
+ continue;
6333
+ }
6334
+ if (cur[prop] === void 0) {
6335
+ cur[prop] = {};
6336
+ }
6337
+ cur = cur[prop];
6338
+ }
6339
+ return __spreadValues(__spreadValues({}, node), newNode);
6340
+ }
6303
6341
 
6304
6342
  // components/AutoField/fields/ArrayField/index.tsx
6305
6343
  var import_jsx_runtime9 = require("react/jsx-runtime");
@@ -6368,9 +6406,10 @@ var ArrayFieldItemInternal = ({
6368
6406
  {
6369
6407
  ref: handleRef,
6370
6408
  onClick: (e) => {
6371
- if (isDragging || !hasVisibleFields) return;
6409
+ if (isDragging) return;
6372
6410
  e.preventDefault();
6373
6411
  e.stopPropagation();
6412
+ if (!hasVisibleFields) return;
6374
6413
  onToggleExpand(id, isExpanded);
6375
6414
  },
6376
6415
  className: getClassNameItem("summary"),
@@ -9118,40 +9157,6 @@ var styles_module_default17 = { "InlineTextField": "_InlineTextField_104qp_1" };
9118
9157
  // components/InlineTextField/index.tsx
9119
9158
  init_lib();
9120
9159
 
9121
- // lib/data/set-deep.ts
9122
- init_react_import();
9123
- function setDeep(node, path, newVal) {
9124
- const parts = path.split(".");
9125
- const newNode = __spreadValues({}, node);
9126
- let cur = newNode;
9127
- for (let i = 0; i < parts.length; i++) {
9128
- const [prop, idxStr] = parts[i].replace("]", "").split("[");
9129
- const isLast = i === parts.length - 1;
9130
- if (idxStr !== void 0) {
9131
- if (!Array.isArray(cur[prop])) {
9132
- cur[prop] = [];
9133
- }
9134
- const idx = Number(idxStr);
9135
- if (isLast) {
9136
- cur[prop][idx] = newVal;
9137
- continue;
9138
- }
9139
- if (cur[prop][idx] === void 0) cur[prop][idx] = {};
9140
- cur = cur[prop][idx];
9141
- continue;
9142
- }
9143
- if (isLast) {
9144
- cur[prop] = newVal;
9145
- continue;
9146
- }
9147
- if (cur[prop] === void 0) {
9148
- cur[prop] = {};
9149
- }
9150
- cur = cur[prop];
9151
- }
9152
- return __spreadValues(__spreadValues({}, node), newNode);
9153
- }
9154
-
9155
9160
  // lib/get-selector-for-id.ts
9156
9161
  init_react_import();
9157
9162
  var getSelectorForId = (state, id) => {
@@ -11406,20 +11411,28 @@ var CopyHostStyles = ({
11406
11411
  filtered.forEach((mirror) => {
11407
11412
  mirror.onload = () => {
11408
11413
  stylesLoaded = stylesLoaded + 1;
11409
- if (stylesLoaded >= elements.length) {
11414
+ if (stylesLoaded >= filtered.length) {
11410
11415
  onStylesLoaded();
11411
11416
  }
11412
11417
  };
11413
11418
  mirror.onerror = () => {
11414
11419
  console.warn(`AutoFrame couldn't load a stylesheet`);
11415
11420
  stylesLoaded = stylesLoaded + 1;
11416
- if (stylesLoaded >= elements.length) {
11421
+ if (stylesLoaded >= filtered.length) {
11417
11422
  onStylesLoaded();
11418
11423
  }
11419
11424
  };
11420
11425
  });
11421
11426
  doc.head.innerHTML = "";
11422
11427
  doc.head.append(...filtered);
11428
+ filtered.forEach((mirror) => {
11429
+ if (mirror.nodeName === "STYLE") {
11430
+ stylesLoaded = stylesLoaded + 1;
11431
+ }
11432
+ });
11433
+ if (stylesLoaded >= filtered.length) {
11434
+ onStylesLoaded();
11435
+ }
11423
11436
  observer.observe(parentDocument.head, { childList: true, subtree: true });
11424
11437
  filtered.forEach((el) => {
11425
11438
  const elHash = (0, import_object_hash.default)(el.outerHTML);
@@ -12776,11 +12789,13 @@ var getClassName36 = get_class_name_factory_default("PuckCanvas", styles_module_
12776
12789
  var ZOOM_ON_CHANGE = true;
12777
12790
  var TRANSITION_DURATION = 150;
12778
12791
  var Canvas = () => {
12792
+ var _a;
12779
12793
  const { frameRef } = useCanvasFrame();
12780
12794
  const resetAutoZoom = useResetAutoZoom(frameRef);
12781
12795
  const {
12782
12796
  _experimentalFullScreenCanvas,
12783
- viewports: viewportOptions = defaultViewports
12797
+ viewports: viewportOptions = defaultViewports,
12798
+ ui: uiProp
12784
12799
  } = usePropsContext();
12785
12800
  const {
12786
12801
  dispatch,
@@ -12877,10 +12892,11 @@ var Canvas = () => {
12877
12892
  }, []);
12878
12893
  const appStoreApi = useAppStoreApi();
12879
12894
  (0, import_react88.useEffect)(() => {
12880
- var _a;
12895
+ var _a2, _b;
12881
12896
  if (typeof window === "undefined") return;
12897
+ if ((_a2 = uiProp == null ? void 0 : uiProp.viewports) == null ? void 0 : _a2.current) return;
12882
12898
  const viewportWidth = window.innerWidth;
12883
- const frameWidth = (_a = frameRef.current) == null ? void 0 : _a.getBoundingClientRect().width;
12899
+ const frameWidth = (_b = frameRef.current) == null ? void 0 : _b.getBoundingClientRect().width;
12884
12900
  if (!viewportWidth) return;
12885
12901
  if (!frameWidth) return;
12886
12902
  if (viewportOptions.length === 0) return;
@@ -12919,7 +12935,13 @@ var Canvas = () => {
12919
12935
  }
12920
12936
  appStoreApi.setState(__spreadProps(__spreadValues({}, appState), { history }));
12921
12937
  }
12922
- }, [viewportOptions, frameRef.current, iframe, appStoreApi]);
12938
+ }, [
12939
+ viewportOptions,
12940
+ frameRef.current,
12941
+ iframe,
12942
+ appStoreApi,
12943
+ (_a = uiProp == null ? void 0 : uiProp.viewports) == null ? void 0 : _a.current
12944
+ ]);
12923
12945
  return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
12924
12946
  "div",
12925
12947
  {
@@ -17,13 +17,13 @@ import {
17
17
  setDeep,
18
18
  useGetPuck,
19
19
  usePuck
20
- } from "./chunk-EBISZQTK.mjs";
21
- import "./chunk-RHVK562Z.mjs";
20
+ } from "./chunk-LBGOSTI5.mjs";
21
+ import "./chunk-GYDP2UKB.mjs";
22
22
  import {
23
23
  migrate,
24
24
  resolveAllData,
25
25
  transformProps
26
- } from "./chunk-TNORMHZU.mjs";
26
+ } from "./chunk-FOGDNETJ.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-5V242HXR.mjs";
37
- import "./chunk-MSZPUXZP.mjs";
38
- import "./chunk-KOUWDQ4Q.mjs";
39
- import "./chunk-SKJTJUWU.mjs";
40
- import "./chunk-UMTU6EA7.mjs";
41
- import "./chunk-37HTE4KO.mjs";
42
- import "./chunk-MDUBGHWF.mjs";
36
+ } from "./chunk-46RDHJGL.mjs";
37
+ import "./chunk-JGZBBNEW.mjs";
38
+ import "./chunk-BSAENBPL.mjs";
39
+ import "./chunk-TVE6QYBR.mjs";
40
+ import "./chunk-AFOEZCNE.mjs";
41
+ import "./chunk-YLLE6KXH.mjs";
42
+ import "./chunk-BOKX3EBR.mjs";
43
43
  import "./chunk-Y2EFNT5P.mjs";
44
44
  import {
45
45
  walkTree
46
- } from "./chunk-PMXRXC2B.mjs";
46
+ } from "./chunk-754HNMU2.mjs";
47
47
  import {
48
48
  init_react_import
49
49
  } from "./chunk-M6W7YEVX.mjs";