payload-canvas 0.2.0 → 0.3.0-next.1

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 (95) hide show
  1. package/README.md +14 -22
  2. package/dist/admin/BuilderTab.js +1 -1
  3. package/dist/admin/diff/LayoutDiff.js +3 -3
  4. package/dist/admin/diff/layoutDiff.scss +48 -48
  5. package/dist/admin/editor/DragLayer.js +1 -1
  6. package/dist/admin/editor/InlineToolbar.js +1 -1
  7. package/dist/admin/editor/Inspector.js +1 -1
  8. package/dist/admin/editor/Outline.js +1 -1
  9. package/dist/admin/editor/Overlay.js +1 -1
  10. package/dist/admin/editor/assistant/AssistantPanel.js +1 -1
  11. package/dist/admin/editor/assistant/ConnectAgents.js +1 -1
  12. package/dist/admin/editor/assistant/assistant.scss +65 -65
  13. package/dist/admin/editor/dnd/dnd.scss +2 -2
  14. package/dist/admin/editor/editor.scss +134 -134
  15. package/dist/admin/editor/empty/EmptyStart.js +3 -3
  16. package/dist/admin/editor/empty/empty.scss +3 -3
  17. package/dist/admin/editor/fields/ArrayField.js +2 -2
  18. package/dist/admin/editor/fields/access.d.ts +1 -1
  19. package/dist/admin/editor/fields/fields.scss +33 -33
  20. package/dist/admin/editor/generate/GenerateImage.js +1 -1
  21. package/dist/admin/editor/generate/generate.scss +48 -48
  22. package/dist/admin/editor/icons.js +1 -1
  23. package/dist/admin/editor/insert/InsertHandle.js +1 -1
  24. package/dist/admin/editor/layout/FrameResize.js +1 -1
  25. package/dist/admin/editor/layout/LeftPanel.js +1 -1
  26. package/dist/admin/editor/layout/layout.scss +4 -4
  27. package/dist/admin/editor/live/PresenceUI.js +1 -1
  28. package/dist/admin/editor/live/presence.scss +1 -1
  29. package/dist/admin/editor/locale/LocaleField.d.ts +1 -1
  30. package/dist/admin/editor/locale/LocaleField.js +1 -1
  31. package/dist/admin/editor/locale/locale.scss +12 -12
  32. package/dist/admin/editor/media/ImageEditor.js +1 -1
  33. package/dist/admin/editor/media/media.scss +23 -23
  34. package/dist/admin/editor/menu/Menu.js +1 -1
  35. package/dist/admin/editor/menu/menu.scss +16 -16
  36. package/dist/admin/editor/motion/MotionPanel.js +1 -1
  37. package/dist/admin/editor/motion/model.d.ts +2 -2
  38. package/dist/admin/editor/motion/motion.scss +2 -2
  39. package/dist/admin/editor/regions/RegionOverlay.js +1 -1
  40. package/dist/admin/editor/regions/RegionPane.js +1 -1
  41. package/dist/admin/editor/renderField.js +1 -1
  42. package/dist/admin/editor/styles/ColorPicker.js +1 -1
  43. package/dist/admin/editor/styles/VariantBar.js +1 -1
  44. package/dist/admin/editor/styles/controls.js +1 -1
  45. package/dist/admin/editor/styles/sections.js +1 -1
  46. package/dist/admin/editor/styles/styles.scss +93 -93
  47. package/dist/admin/editor/templates/Bindable.d.ts +1 -1
  48. package/dist/admin/editor/templates/Bindable.js +1 -1
  49. package/dist/admin/editor/templates/SamplePicker.js +1 -1
  50. package/dist/admin/editor/templates/templates.scss +90 -90
  51. package/dist/admin/editor/tooltip/tooltip.scss +4 -4
  52. package/dist/admin/editor/topbar/DocumentActions.js +1 -1
  53. package/dist/admin/editor/topbar/DocumentTitle.js +1 -1
  54. package/dist/admin/editor/topbar/screens/DrawerRouter.d.ts +1 -1
  55. package/dist/admin/editor/topbar/screens/ScreenDrawer.js +1 -1
  56. package/dist/admin/editor/topbar/screens/drawerRouterSupport.d.ts +1 -1
  57. package/dist/admin/editor/topbar/screens/screens.scss +20 -20
  58. package/dist/admin/editor/topbar/settingsDrawer.js +3 -3
  59. package/dist/admin/editor/topbar/settingsDrawer.scss +7 -7
  60. package/dist/admin/editor/topbar/topbar.scss +47 -47
  61. package/dist/admin/editor/ui/Select.js +1 -1
  62. package/dist/admin/editor/ui/controls.scss +26 -26
  63. package/dist/admin/screen/BuilderScreen.js +1 -1
  64. package/dist/ai/adapters/anthropic.d.ts +2 -2
  65. package/dist/ai/images/service.js +1 -1
  66. package/dist/ai/loop.d.ts +5 -5
  67. package/dist/blocks/defaults.d.ts +9 -9
  68. package/dist/core/bindings.d.ts +1 -1
  69. package/dist/core/fieldAccess.js +1 -1
  70. package/dist/core/fieldHooks.d.ts +1 -1
  71. package/dist/core/motion.d.ts +7 -7
  72. package/dist/live/draftAccess.js +1 -1
  73. package/dist/live/session.d.ts +1 -1
  74. package/dist/live/storage.js +2 -4
  75. package/dist/mcp/shared.d.ts +31 -31
  76. package/dist/plugin/index.js +4 -4
  77. package/dist/plugin/templates.js +5 -1
  78. package/dist/protocol/index.d.ts +1 -1
  79. package/dist/react/canvas/BuilderCanvas.js +1 -1
  80. package/dist/react/canvas/inline/rich/editor.js +6 -1
  81. package/dist/react/canvas/thumbnail/ThumbnailCanvas.js +1 -1
  82. package/dist/react/motion/style.js +1 -1
  83. package/dist/react/render/PayloadRoot.js +1 -1
  84. package/dist/react/render/RenderLayout.js +1 -1
  85. package/dist/react/render/resolve.js +2 -0
  86. package/dist/react/server.d.ts +3 -1
  87. package/dist/react/server.js +5 -2
  88. package/dist/react/theme/ThemeStyle.js +1 -1
  89. package/dist/theme/admin/ColorField.d.ts +2 -2
  90. package/dist/theme/admin/ColorField.js +2 -2
  91. package/dist/theme/admin/FontField.d.ts +2 -2
  92. package/dist/theme/admin/FontField.js +2 -2
  93. package/dist/theme/admin/SaveSignal.js +2 -2
  94. package/dist/theme/admin/fields.scss +48 -48
  95. package/package.json +28 -23
@@ -12,7 +12,7 @@
12
12
  border: 1px solid var(--be-border);
13
13
  border-radius: var(--be-radius);
14
14
  background: transparent;
15
- color: var(--theme-text);
15
+ color: var(--color-text);
16
16
  font: inherit;
17
17
  font-size: var(--be-text-m);
18
18
  font-weight: var(--be-weight-strong);
@@ -34,8 +34,8 @@
34
34
 
35
35
  // Editing another language than the default: the switcher stands out a little.
36
36
  .builder-locale-switch--other {
37
- border-color: color-mix(in srgb, var(--theme-warning-500, #f59e0b) 55%, transparent);
38
- background: color-mix(in srgb, var(--theme-warning-500, #f59e0b) 10%, transparent);
37
+ border-color: color-mix(in srgb, var(--color-bg-warning, #f59e0b) 55%, transparent);
38
+ background: color-mix(in srgb, var(--color-bg-warning, #f59e0b) 10%, transparent);
39
39
  }
40
40
 
41
41
  .builder-locale-switch__code {
@@ -47,17 +47,17 @@
47
47
  gap: 8px;
48
48
  margin: 0 0 12px;
49
49
  padding: 8px 10px;
50
- border: 1px solid color-mix(in srgb, var(--theme-warning-500, #f59e0b) 40%, transparent);
50
+ border: 1px solid color-mix(in srgb, var(--color-bg-warning, #f59e0b) 40%, transparent);
51
51
  border-radius: var(--be-radius-m);
52
- background: color-mix(in srgb, var(--theme-warning-500, #f59e0b) 8%, transparent);
53
- color: var(--theme-text);
52
+ background: color-mix(in srgb, var(--color-bg-warning, #f59e0b) 8%, transparent);
53
+ color: var(--color-text);
54
54
  font-size: var(--be-text-m);
55
55
  line-height: 1.4;
56
56
 
57
57
  > svg {
58
58
  flex: none;
59
59
  margin-top: 2px;
60
- color: var(--theme-warning-500, #f59e0b);
60
+ color: var(--color-bg-warning, #f59e0b);
61
61
  }
62
62
 
63
63
  p {
@@ -99,14 +99,14 @@
99
99
 
100
100
  .builder-locale-field[data-locale-status='untranslated'] .builder-locale-field__state,
101
101
  .builder-locale-field[data-locale-status='missing'] .builder-locale-field__state {
102
- color: var(--theme-warning-500, #f59e0b);
102
+ color: var(--color-bg-warning, #f59e0b);
103
103
  }
104
104
 
105
105
  .builder-locale-field__action {
106
106
  padding: 0;
107
107
  border: 0;
108
108
  background: none;
109
- color: var(--theme-text);
109
+ color: var(--color-text);
110
110
  font: inherit;
111
111
  font-size: var(--be-text-s);
112
112
  text-decoration: underline;
@@ -130,7 +130,7 @@
130
130
  height: 6px;
131
131
  margin-left: auto;
132
132
  border-radius: 50%;
133
- background: var(--theme-warning-500, #f59e0b);
133
+ background: var(--color-bg-warning, #f59e0b);
134
134
  }
135
135
 
136
136
  .builder-editor__row-untranslated + .builder-editor__row-problem {
@@ -144,8 +144,8 @@
144
144
  bottom: -5px;
145
145
  padding: 0 3px;
146
146
  border-radius: 3px;
147
- background: var(--theme-elevation-800);
148
- color: var(--theme-elevation-0);
147
+ background: var(--color-text);
148
+ color: var(--color-bg);
149
149
  font-size: 8px;
150
150
  font-weight: 700;
151
151
  line-height: 11px;
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  // Images on the canvas, admin side: a "Replace" chip on the image under the pointer, and a media
4
4
  // popover (double-click or a click on the chip) with Choose from library, Upload, Generate, Remove
5
5
  // and the alt text. The chip and the image box live in the overlay (iframe coordinates); the
@@ -27,10 +27,10 @@
27
27
  height: 24px;
28
28
  margin: 0;
29
29
  padding: 0 9px 0 7px;
30
- border: 1px solid var(--theme-elevation-150);
31
- border-radius: var(--style-radius-s, 4px);
32
- background: var(--theme-bg);
33
- color: var(--theme-text);
30
+ border: 1px solid var(--color-border);
31
+ border-radius: var(--radius-medium, 4px);
32
+ background: var(--color-bg);
33
+ color: var(--color-text);
34
34
  font: inherit;
35
35
  font-size: var(--be-text-s);
36
36
  font-weight: var(--be-weight-medium);
@@ -61,7 +61,7 @@
61
61
  .builder-media__spinner {
62
62
  width: 10px;
63
63
  height: 10px;
64
- border: 2px solid var(--theme-elevation-200);
64
+ border: 2px solid var(--color-border);
65
65
  border-top-color: var(--be-accent);
66
66
  border-radius: 50%;
67
67
  animation: builder-media-spin 0.8s linear infinite;
@@ -80,7 +80,7 @@
80
80
  }
81
81
 
82
82
  .builder-styles__popover.builder-media__popover {
83
- --bs-border: var(--be-border, var(--theme-elevation-150));
83
+ --bs-border: var(--be-border, var(--color-border));
84
84
 
85
85
  width: 300px;
86
86
  max-height: min(560px, calc(100vh - 16px));
@@ -115,7 +115,7 @@
115
115
  gap: 6px;
116
116
  min-width: 0;
117
117
  overflow: hidden;
118
- color: var(--theme-text);
118
+ color: var(--color-text);
119
119
  font-size: var(--be-text-m);
120
120
  font-weight: var(--be-weight-strong);
121
121
  white-space: nowrap;
@@ -130,14 +130,14 @@
130
130
  height: 22px;
131
131
  padding: 0;
132
132
  border: 0;
133
- border-radius: var(--style-radius-s, 4px);
133
+ border-radius: var(--radius-medium, 4px);
134
134
  background: none;
135
- color: var(--theme-elevation-600);
135
+ color: var(--color-text-secondary);
136
136
  cursor: pointer;
137
137
 
138
138
  &:hover {
139
- background: var(--theme-elevation-100);
140
- color: var(--theme-text);
139
+ background: var(--color-bg-hover);
140
+ color: var(--color-text);
141
141
  }
142
142
  }
143
143
 
@@ -152,8 +152,8 @@
152
152
  flex: none;
153
153
  width: 40px;
154
154
  height: 40px;
155
- border-radius: var(--style-radius-s, 4px);
156
- background: var(--theme-elevation-100);
155
+ border-radius: var(--radius-medium, 4px);
156
+ background: var(--color-bg-hover);
157
157
  object-fit: cover;
158
158
  }
159
159
 
@@ -166,7 +166,7 @@
166
166
  .builder-media__file {
167
167
  min-width: 0;
168
168
  overflow: hidden;
169
- color: var(--theme-elevation-700);
169
+ color: var(--color-text);
170
170
  font-size: var(--be-text-s);
171
171
  white-space: nowrap;
172
172
  text-overflow: ellipsis;
@@ -183,11 +183,11 @@
183
183
  flex-direction: column;
184
184
  gap: 4px;
185
185
  padding-top: 8px;
186
- border-top: 1px solid var(--theme-elevation-100);
186
+ border-top: 1px solid var(--color-bg-hover);
187
187
  }
188
188
 
189
189
  .builder-media__label {
190
- color: var(--theme-elevation-600);
190
+ color: var(--color-text-secondary);
191
191
  font-size: var(--be-text-s);
192
192
  font-weight: var(--be-weight-medium);
193
193
  }
@@ -196,28 +196,28 @@
196
196
  width: 100%;
197
197
  height: 30px;
198
198
  padding: 0 8px;
199
- border: 1px solid var(--theme-elevation-150);
200
- border-radius: var(--style-radius-s, 4px);
201
- background: var(--theme-input-bg, var(--theme-elevation-0));
202
- color: var(--theme-text);
199
+ border: 1px solid var(--color-border);
200
+ border-radius: var(--radius-medium, 4px);
201
+ background: var(--color-bg, var(--color-bg));
202
+ color: var(--color-text);
203
203
  font: inherit;
204
204
  font-size: var(--be-text-m);
205
205
 
206
206
  &:focus {
207
- border-color: var(--theme-elevation-400);
207
+ border-color: var(--color-text-tertiary);
208
208
  outline: none;
209
209
  }
210
210
  }
211
211
 
212
212
  .builder-media__note {
213
213
  margin: 0;
214
- color: var(--theme-elevation-500);
214
+ color: var(--color-text-secondary);
215
215
  font-size: var(--be-text-s);
216
216
  }
217
217
 
218
218
  .builder-media__error {
219
219
  margin: 0;
220
- color: var(--theme-error-500);
220
+ color: var(--color-bg-danger);
221
221
  font-size: var(--be-text-s);
222
222
  }
223
223
  }
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  // The editor's one menu primitive, on Base UI `Menu`. Use it for every "…" menu and context menu,
4
4
  // so they all behave the same:
5
5
  //
@@ -14,11 +14,11 @@
14
14
  max-height: var(--available-height, 480px);
15
15
  overflow: auto;
16
16
  padding: 4px;
17
- border: 1px solid var(--be-border, var(--theme-elevation-150));
18
- border-radius: var(--be-radius-m, var(--style-radius-m, 6px));
19
- background: var(--theme-bg);
20
- color: var(--theme-text);
21
- font-family: var(--font-body);
17
+ border: 1px solid var(--be-border, var(--color-border));
18
+ border-radius: var(--be-radius-m, var(--radius-large, 6px));
19
+ background: var(--color-bg);
20
+ color: var(--color-text);
21
+ font-family: var(--text-body-family);
22
22
  font-size: var(--be-text-m);
23
23
  line-height: 1.3;
24
24
  box-shadow: var(--be-shadow);
@@ -44,8 +44,8 @@
44
44
  gap: 8px;
45
45
  height: 30px;
46
46
  padding: 0 8px;
47
- border-radius: var(--be-radius, var(--style-radius-s, 4px));
48
- color: var(--theme-text);
47
+ border-radius: var(--be-radius, var(--radius-medium, 4px));
48
+ color: var(--color-text);
49
49
  text-decoration: none;
50
50
  white-space: nowrap;
51
51
  cursor: default;
@@ -54,11 +54,11 @@
54
54
 
55
55
  svg {
56
56
  flex: none;
57
- color: var(--be-muted, var(--theme-elevation-500));
57
+ color: var(--be-muted, var(--color-text-secondary));
58
58
  }
59
59
 
60
60
  &[data-highlighted] {
61
- background: var(--be-hover, var(--theme-elevation-100));
61
+ background: var(--be-hover, var(--color-bg-hover));
62
62
  }
63
63
 
64
64
  &[data-disabled] {
@@ -68,14 +68,14 @@
68
68
 
69
69
  // A disabled destructive item is neutral: red says "this acts", and it cannot act.
70
70
  .builder-menu__item--danger:not([data-disabled]) {
71
- color: var(--theme-error-500);
71
+ color: var(--color-bg-danger);
72
72
 
73
73
  svg {
74
74
  color: currentColor;
75
75
  }
76
76
 
77
77
  &[data-highlighted] {
78
- background: color-mix(in srgb, var(--theme-error-500) 12%, transparent);
78
+ background: color-mix(in srgb, var(--color-bg-danger) 12%, transparent);
79
79
  }
80
80
  }
81
81
 
@@ -100,27 +100,27 @@
100
100
  padding: 0 0 0 16px;
101
101
  border: 0;
102
102
  background: none;
103
- color: var(--be-subtle, var(--theme-elevation-400));
103
+ color: var(--be-subtle, var(--color-text-tertiary));
104
104
  font: inherit;
105
105
  font-size: var(--be-text-s);
106
106
  }
107
107
 
108
108
  .builder-menu .builder-menu__check {
109
- color: var(--be-accent, var(--theme-success-500));
109
+ color: var(--be-accent, var(--color-bg-success));
110
110
  }
111
111
 
112
112
  .builder-menu__sep {
113
113
  height: 1px;
114
114
  margin: 4px 0;
115
115
  border: 0;
116
- background: var(--be-border-soft, var(--theme-elevation-100));
116
+ background: var(--be-border-soft, var(--color-bg-hover));
117
117
  }
118
118
 
119
119
  .builder-menu__note {
120
120
  margin: 4px 0 0;
121
121
  padding: 6px 8px 4px;
122
- border-top: 1px solid var(--be-border-soft, var(--theme-elevation-100));
123
- color: var(--be-muted, var(--theme-elevation-500));
122
+ border-top: 1px solid var(--be-border-soft, var(--color-bg-hover));
123
+ color: var(--be-muted, var(--color-text-secondary));
124
124
  font-size: var(--be-text-s);
125
125
  }
126
126
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  // The Motion tab: a block's animations (`block.motion`). One section per kind, in the Styles
4
4
  // panel's look. Every edit is an `update` operation that sends the whole kind (it replaces the
5
5
  // kind), so undo, multiplayer and the AI see the same data. A slider drag is one undo step.
@@ -12,9 +12,9 @@ export declare function replaceMotionPatch(motion: BlockMotion | undefined): Mot
12
12
  export declare function enterValues(enter: EnterMotion): {
13
13
  duration: number;
14
14
  delay: number;
15
- easing: "bouncy" | "ease-in-out" | "ease-out" | "linear" | "spring";
15
+ easing: "ease-out" | "ease-in-out" | "linear" | "spring" | "bouncy";
16
16
  distance: number;
17
- trigger: "load" | "view";
17
+ trigger: "view" | "load";
18
18
  amount: number;
19
19
  repeat: boolean;
20
20
  stagger: number;
@@ -8,13 +8,13 @@
8
8
  justify-content: space-between;
9
9
  gap: 8px;
10
10
  padding: 0 0 8px;
11
- border-bottom: 1px solid var(--theme-elevation-100);
11
+ border-bottom: 1px solid var(--color-bg-hover);
12
12
  }
13
13
 
14
14
  .builder-motion__summary {
15
15
  min-width: 0;
16
16
  margin: 0;
17
- color: var(--theme-text);
17
+ color: var(--color-text);
18
18
  font-size: var(--be-text-m);
19
19
  line-height: 1.35;
20
20
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { Icon } from '../icons.js';
4
4
  import { inlineEditing } from '../inline.js';
5
5
  import { InlineToolbar } from '../InlineToolbar.js';
@@ -22,5 +22,5 @@ export function RegionPane({ regions, name }) {
22
22
  const right = state.access ? regionAccessAt(state.access, field.path) : null;
23
23
  const locked = right !== null && !right.update;
24
24
  return (_jsx("li", { children: _jsxs("button", { type: "button", className: "builder-editor__menu-item", onClick: () => runtime.doc.openSettings({ path: field.path, tabs: field.tabs }), "data-tooltip": locked ? 'You may not change this field' : 'Edit in the settings', children: [_jsx(Icon, { name: locked ? 'lock' : 'rename', size: 14 }), field.label] }) }, field.path));
25
- }) })) : (_jsx("p", { className: "builder-editor__hint", children: "It has no fields to edit." })), _jsx(Button, { buttonStyle: "secondary", size: "small", margin: false, onClick: () => editRegionFields(runtime, regions, region.name), children: "Edit fields in the settings" })] })] }));
25
+ }) })) : (_jsx("p", { className: "builder-editor__hint", children: "It has no fields to edit." })), _jsx(Button, { buttonStyle: "secondary", size: "medium", margin: false, onClick: () => editRegionFields(runtime, regions, region.name), children: "Edit fields in the settings" })] })] }));
26
26
  }
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { CheckboxInput, DatePicker, FieldLabel, RelationshipInput, SelectInput, TextareaInput, TextInput, UploadInput, useConfig, } from '@payloadcms/ui';
4
4
  import { Fragment, useEffect } from 'react';
5
5
  import { getBlockDefinition, hasStaticDefault } from '../../core/index.js';
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  // Color control and its picker popover: theme colors, the palette grid, an opacity modifier
4
4
  // and an arbitrary hex value. No color picker dependency.
5
5
  import { useState } from 'react';
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  // Breakpoint chips and the state select. Dots mark variants that already have classes.
4
4
  // The breakpoint here is independent of the canvas width. Edits at "all sizes" reach every
5
5
  // screen; a control whose value a larger breakpoint overrides on the canvas says so and offers
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  // Small controls shared by every section. Each one reads a property at the current variant
4
4
  // and writes it through the editor store, so undo and redo work.
5
5
  import { useId, useMemo, useRef, useState } from 'react';
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  // One collapsible section per style group. Only the groups that matter for the block start open.
4
4
  import { useState } from 'react';
5
5
  import { BoxModel, MiniField, MiniRow } from './BoxModel.js';