@morphika/andami 0.5.1 → 0.5.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.
- package/README.md +27 -2
- package/app/admin/assets/page.tsx +6 -6
- package/app/admin/database/page.tsx +302 -302
- package/app/admin/error.tsx +53 -53
- package/app/admin/layout.tsx +332 -320
- package/app/admin/navigation/page.tsx +255 -255
- package/app/admin/pages/[slug]/page.tsx +44 -27
- package/app/admin/pages/page.tsx +24 -19
- package/app/admin/projects/page.tsx +30 -21
- package/app/admin/setup/page.tsx +1 -1
- package/app/admin/styles/page.tsx +1 -1
- package/app/api/admin/assets/register/route.ts +51 -14
- package/app/api/admin/assets/registry/route.ts +4 -1
- package/app/api/admin/assets/relink/confirm/route.ts +4 -1
- package/app/api/admin/assets/relink/route.ts +4 -1
- package/app/api/admin/assets/scan/route.ts +4 -1
- package/app/api/admin/backups/restore-data/route.ts +4 -1
- package/app/api/admin/r2/connect/route.ts +4 -1
- package/app/api/admin/r2/delete/route.ts +4 -1
- package/app/api/admin/r2/rename/route.ts +4 -1
- package/app/api/admin/r2/upload-url/route.ts +4 -1
- package/app/api/admin/revalidate/route.ts +4 -1
- package/app/api/admin/storage/switch/route.ts +4 -1
- package/app/api/custom-sections/[id]/route.ts +5 -6
- package/components/admin/MetadataEditor.tsx +6 -6
- package/components/admin/PublishToggle.tsx +2 -2
- package/components/admin/nav-builder/NavBuilder.tsx +1 -1
- package/components/admin/nav-builder/NavBuilderGrid.tsx +3 -3
- package/components/admin/nav-builder/NavGridCell.tsx +48 -48
- package/components/admin/nav-builder/NavGridItem.tsx +8 -6
- package/components/admin/nav-builder/NavItemSettings.tsx +331 -331
- package/components/admin/nav-builder/NavItemTypePicker.tsx +102 -102
- package/components/admin/nav-builder/NavLivePreview.tsx +1 -1
- package/components/admin/nav-builder/NavMobileLivePreview.tsx +226 -226
- package/components/admin/nav-builder/NavMobileSettings.tsx +242 -242
- package/components/admin/nav-builder/NavSettingsFields.tsx +518 -514
- package/components/admin/setup-wizard/BrandingStep.tsx +3 -3
- package/components/admin/setup-wizard/DatabaseStep.tsx +2 -2
- package/components/admin/setup-wizard/DoneStep.tsx +1 -1
- package/components/admin/setup-wizard/SetupWizard.tsx +4 -4
- package/components/admin/setup-wizard/StorageStep.tsx +2 -2
- package/components/admin/setup-wizard/WelcomeStep.tsx +2 -2
- package/components/admin/styles/ColorsEditor.tsx +9 -8
- package/components/admin/styles/FontsEditor.tsx +9 -7
- package/components/admin/styles/GridLayoutEditor.tsx +9 -9
- package/components/admin/styles/LinksButtonsEditor.tsx +5 -5
- package/components/admin/styles/TypographyEditor.tsx +6 -6
- package/components/admin/styles/shared.tsx +68 -68
- package/components/blocks/AudioBlockRenderer.tsx +286 -286
- package/components/blocks/CoverSectionRenderer.tsx +7 -1
- package/components/blocks/MarqueeBlockRenderer.tsx +316 -0
- package/components/blocks/ProjectCarouselBlockRenderer.tsx +1 -1
- package/components/blocks/SectionV2Renderer.tsx +8 -1
- package/components/builder/BlockCardIcons.tsx +316 -316
- package/components/builder/BlockTypePicker.tsx +1 -1
- package/components/builder/BubbleIcons.tsx +104 -0
- package/components/builder/BuilderCanvas.tsx +2 -0
- package/components/builder/CanvasMinimap.tsx +66 -49
- package/components/builder/CanvasToolbar.tsx +31 -41
- package/components/builder/CoverSectionCanvas.tsx +363 -363
- package/components/builder/DeviceFrame.tsx +1 -1
- package/components/builder/DndWrapper.tsx +3 -3
- package/components/builder/InsertionLines.tsx +1 -1
- package/components/builder/SectionCardIcons.tsx +421 -320
- package/components/builder/SectionEditorBar.tsx +5 -3
- package/components/builder/SectionTypePicker.tsx +7 -5
- package/components/builder/SectionV2Canvas.tsx +1 -1
- package/components/builder/SectionV2Column.tsx +82 -68
- package/components/builder/SettingsPanel.tsx +21 -17
- package/components/builder/SortableBlock.tsx +93 -73
- package/components/builder/SortableRow.tsx +33 -35
- package/components/builder/VirtualAssetGrid.tsx +10 -4
- package/components/builder/asset-browser/R2BrowserContent.tsx +18 -14
- package/components/builder/blockStyles.tsx +192 -185
- package/components/builder/color-picker/AlphaSlider.tsx +141 -141
- package/components/builder/color-picker/ColorInputs.tsx +105 -105
- package/components/builder/color-picker/EyedropperButton.tsx +75 -74
- package/components/builder/color-picker/HueSlider.tsx +124 -124
- package/components/builder/color-picker/SaturationCanvas.tsx +142 -142
- package/components/builder/color-picker/SwatchBar.tsx +98 -93
- package/components/builder/color-picker/UnifiedColorPicker.tsx +11 -6
- package/components/builder/editors/AudioBlockEditor.tsx +242 -242
- package/components/builder/editors/BeforeAfterBlockEditor.tsx +360 -360
- package/components/builder/editors/ButtonBlockEditor.tsx +4 -4
- package/components/builder/editors/EnterAnimationPicker.tsx +2 -2
- package/components/builder/editors/HoverEffectPicker.tsx +2 -2
- package/components/builder/editors/ImageBlockEditor.tsx +2 -2
- package/components/builder/editors/ImageGridBlockEditor.tsx +8 -6
- package/components/builder/editors/MarqueeBlockEditor.tsx +622 -0
- package/components/builder/editors/ProjectCarouselBlockEditor.tsx +443 -443
- package/components/builder/editors/ProjectGridEditor.tsx +21 -16
- package/components/builder/editors/SpacerBlockEditor.tsx +29 -27
- package/components/builder/editors/StaggerSettings.tsx +109 -109
- package/components/builder/editors/TextBlockEditor.tsx +22 -17
- package/components/builder/editors/TextStylePicker.tsx +1 -1
- package/components/builder/editors/VideoBlockEditor.tsx +2 -2
- package/components/builder/editors/index.ts +11 -10
- package/components/builder/editors/shared.tsx +10 -8
- package/components/builder/live-preview/LiveAudioPreview.tsx +120 -120
- package/components/builder/live-preview/LiveBeforeAfterPreview.tsx +1 -1
- package/components/builder/live-preview/LiveImageGridPreview.tsx +10 -2
- package/components/builder/live-preview/LiveImagePreview.tsx +4 -2
- package/components/builder/live-preview/LiveMarqueePreview.tsx +39 -0
- package/components/builder/live-preview/LiveProjectCarouselPreview.tsx +1 -1
- package/components/builder/live-preview/LiveVideoPreview.tsx +1 -1
- package/components/builder/live-preview/ProjectCardWrapper.tsx +293 -291
- package/components/builder/live-preview/RichTextBubbleMenu.tsx +10 -6
- package/components/builder/live-preview/shared.tsx +5 -2
- package/components/builder/settings-panel/AnimationTab.tsx +138 -138
- package/components/builder/settings-panel/BlockLayoutTab.tsx +11 -9
- package/components/builder/settings-panel/CardEntranceSection.tsx +114 -114
- package/components/builder/settings-panel/ColumnV2LayoutTab.tsx +242 -0
- package/components/builder/settings-panel/ColumnV2Settings.tsx +5 -5
- package/components/builder/settings-panel/CoverSectionLayoutTab.tsx +71 -71
- package/components/builder/settings-panel/CoverSectionSettings.tsx +337 -335
- package/components/builder/settings-panel/PageSettings.tsx +3 -3
- package/components/builder/settings-panel/ParallaxSlideSettings.tsx +2 -2
- package/components/builder/settings-panel/SectionV2AnimationTab.tsx +4 -4
- package/components/builder/settings-panel/SectionV2LayoutTab.tsx +356 -356
- package/components/builder/settings-panel/SectionV2Settings.tsx +25 -20
- package/components/builder/settings-panel/TRBLInputs.tsx +1 -1
- package/components/builder/settings-panel/index.ts +1 -0
- package/lib/animation/enter-types.ts +1 -0
- package/lib/animation/hover-effect-presets.ts +210 -210
- package/lib/animation/hover-effect-types.ts +1 -0
- package/lib/builder/block-registrations.ts +468 -417
- package/lib/builder/constants.ts +111 -111
- package/lib/builder/serializer/normalizers.ts +14 -0
- package/lib/builder/serializer/serializers.ts +27 -0
- package/lib/builder/store-sections.ts +23 -2
- package/lib/builder/types-slices.ts +428 -414
- package/lib/builder/types.ts +4 -1
- package/lib/config/index.ts +27 -27
- package/lib/sanity/queries.ts +48 -0
- package/lib/sanity/types.ts +112 -1
- package/lib/version.ts +1 -1
- package/package.json +7 -5
- package/sanity/schemas/blocks/audioBlock.ts +69 -69
- package/sanity/schemas/blocks/index.ts +12 -11
- package/sanity/schemas/blocks/marqueeBlock.ts +292 -0
- package/sanity/schemas/index.ts +120 -117
- package/sanity/schemas/objects/coverSection.ts +32 -0
- package/sanity/schemas/objects/parallaxSlide.ts +32 -0
- package/sanity/schemas/pageSectionV2.ts +32 -0
- package/styles/admin.css +85 -85
- package/styles/animations.css +237 -237
- package/styles/base.css +114 -114
|
@@ -1,417 +1,468 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Block registrations — fills the registry defined in `./block-registry.ts`
|
|
5
|
-
* with the 10 built-in block types shipped by the framework.
|
|
6
|
-
*
|
|
7
|
-
* Importing this module has a side effect: every `registerBlockType()`
|
|
8
|
-
* call below runs synchronously and populates the module-level registry.
|
|
9
|
-
* Most of the codebase currently does NOT import this — the existing
|
|
10
|
-
* dispatch tables in `components/blocks/BlockRenderer.tsx`,
|
|
11
|
-
* `components/builder/BlockLivePreview.tsx`, etc. are still the source
|
|
12
|
-
* of truth at runtime. This file is the parallel structure we'll migrate
|
|
13
|
-
* to in a later session, behind the existing public API so instances
|
|
14
|
-
* don't break.
|
|
15
|
-
*
|
|
16
|
-
* Session A (2026-04-19): all 8 blocks registered; nothing consumes
|
|
17
|
-
* the registry yet.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
import { registerBlockType } from "./block-registry";
|
|
21
|
-
|
|
22
|
-
import type {
|
|
23
|
-
TextBlock,
|
|
24
|
-
ImageBlock,
|
|
25
|
-
ImageGridBlock,
|
|
26
|
-
VideoBlock,
|
|
27
|
-
SpacerBlock,
|
|
28
|
-
ButtonBlock,
|
|
29
|
-
BeforeAfterBlock,
|
|
30
|
-
AudioBlock,
|
|
31
|
-
ProjectGridBlock,
|
|
32
|
-
ProjectCarouselBlock,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
import
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
import
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
//
|
|
129
|
-
//
|
|
130
|
-
//
|
|
131
|
-
//
|
|
132
|
-
|
|
133
|
-
//
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
}
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Block registrations — fills the registry defined in `./block-registry.ts`
|
|
5
|
+
* with the 10 built-in block types shipped by the framework.
|
|
6
|
+
*
|
|
7
|
+
* Importing this module has a side effect: every `registerBlockType()`
|
|
8
|
+
* call below runs synchronously and populates the module-level registry.
|
|
9
|
+
* Most of the codebase currently does NOT import this — the existing
|
|
10
|
+
* dispatch tables in `components/blocks/BlockRenderer.tsx`,
|
|
11
|
+
* `components/builder/BlockLivePreview.tsx`, etc. are still the source
|
|
12
|
+
* of truth at runtime. This file is the parallel structure we'll migrate
|
|
13
|
+
* to in a later session, behind the existing public API so instances
|
|
14
|
+
* don't break.
|
|
15
|
+
*
|
|
16
|
+
* Session A (2026-04-19): all 8 blocks registered; nothing consumes
|
|
17
|
+
* the registry yet.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import { registerBlockType } from "./block-registry";
|
|
21
|
+
|
|
22
|
+
import type {
|
|
23
|
+
TextBlock,
|
|
24
|
+
ImageBlock,
|
|
25
|
+
ImageGridBlock,
|
|
26
|
+
VideoBlock,
|
|
27
|
+
SpacerBlock,
|
|
28
|
+
ButtonBlock,
|
|
29
|
+
BeforeAfterBlock,
|
|
30
|
+
AudioBlock,
|
|
31
|
+
ProjectGridBlock,
|
|
32
|
+
ProjectCarouselBlock,
|
|
33
|
+
MarqueeBlock,
|
|
34
|
+
} from "../sanity/types";
|
|
35
|
+
|
|
36
|
+
// ── Sanity schemas ────────────────────────────────────────────────
|
|
37
|
+
|
|
38
|
+
import {
|
|
39
|
+
textBlock,
|
|
40
|
+
imageBlock,
|
|
41
|
+
imageGridBlock,
|
|
42
|
+
videoBlock,
|
|
43
|
+
spacerBlock,
|
|
44
|
+
buttonBlock,
|
|
45
|
+
beforeAfterBlock,
|
|
46
|
+
audioBlock,
|
|
47
|
+
projectGridBlock,
|
|
48
|
+
projectCarouselBlock,
|
|
49
|
+
marqueeBlock,
|
|
50
|
+
} from "../../sanity/schemas/blocks";
|
|
51
|
+
|
|
52
|
+
// ── Public renderers ──────────────────────────────────────────────
|
|
53
|
+
|
|
54
|
+
import TextBlockRenderer from "../../components/blocks/TextBlockRenderer";
|
|
55
|
+
import ImageBlockRenderer from "../../components/blocks/ImageBlockRenderer";
|
|
56
|
+
import ImageGridBlockRenderer from "../../components/blocks/ImageGridBlockRenderer";
|
|
57
|
+
import VideoBlockRenderer from "../../components/blocks/VideoBlockRenderer";
|
|
58
|
+
import SpacerBlockRenderer from "../../components/blocks/SpacerBlockRenderer";
|
|
59
|
+
import ButtonBlockRenderer from "../../components/blocks/ButtonBlockRenderer";
|
|
60
|
+
import BeforeAfterBlockRenderer from "../../components/blocks/BeforeAfterBlockRenderer";
|
|
61
|
+
import AudioBlockRenderer from "../../components/blocks/AudioBlockRenderer";
|
|
62
|
+
import ProjectGridBlockRenderer from "../../components/blocks/ProjectGridBlockRenderer";
|
|
63
|
+
import ProjectCarouselBlockRenderer from "../../components/blocks/ProjectCarouselBlockRenderer";
|
|
64
|
+
import MarqueeBlockRenderer from "../../components/blocks/MarqueeBlockRenderer";
|
|
65
|
+
|
|
66
|
+
// ── Builder live previews ─────────────────────────────────────────
|
|
67
|
+
|
|
68
|
+
import LiveTextEditor from "../../components/builder/live-preview/LiveTextEditor";
|
|
69
|
+
import LiveImagePreview from "../../components/builder/live-preview/LiveImagePreview";
|
|
70
|
+
import LiveImageGridPreview from "../../components/builder/live-preview/LiveImageGridPreview";
|
|
71
|
+
import LiveVideoPreview from "../../components/builder/live-preview/LiveVideoPreview";
|
|
72
|
+
import LiveSpacerPreview from "../../components/builder/live-preview/LiveSpacerPreview";
|
|
73
|
+
import LiveButtonPreview from "../../components/builder/live-preview/LiveButtonPreview";
|
|
74
|
+
import LiveBeforeAfterPreview from "../../components/builder/live-preview/LiveBeforeAfterPreview";
|
|
75
|
+
import LiveAudioPreview from "../../components/builder/live-preview/LiveAudioPreview";
|
|
76
|
+
import LiveProjectGridPreview from "../../components/builder/live-preview/LiveProjectGridPreview";
|
|
77
|
+
import LiveProjectCarouselPreview from "../../components/builder/live-preview/LiveProjectCarouselPreview";
|
|
78
|
+
import LiveMarqueePreview from "../../components/builder/live-preview/LiveMarqueePreview";
|
|
79
|
+
|
|
80
|
+
// ── Settings-panel editors ────────────────────────────────────────
|
|
81
|
+
|
|
82
|
+
import TextBlockEditor from "../../components/builder/editors/TextBlockEditor";
|
|
83
|
+
import ImageBlockEditor from "../../components/builder/editors/ImageBlockEditor";
|
|
84
|
+
import ImageGridBlockEditor from "../../components/builder/editors/ImageGridBlockEditor";
|
|
85
|
+
import VideoBlockEditor from "../../components/builder/editors/VideoBlockEditor";
|
|
86
|
+
import SpacerBlockEditor from "../../components/builder/editors/SpacerBlockEditor";
|
|
87
|
+
import ButtonBlockEditor from "../../components/builder/editors/ButtonBlockEditor";
|
|
88
|
+
import BeforeAfterBlockEditor from "../../components/builder/editors/BeforeAfterBlockEditor";
|
|
89
|
+
import AudioBlockEditor from "../../components/builder/editors/AudioBlockEditor";
|
|
90
|
+
import ProjectGridEditor from "../../components/builder/editors/ProjectGridEditor";
|
|
91
|
+
import ProjectCarouselBlockEditor from "../../components/builder/editors/ProjectCarouselBlockEditor";
|
|
92
|
+
import MarqueeBlockEditor from "../../components/builder/editors/MarqueeBlockEditor";
|
|
93
|
+
|
|
94
|
+
// ── Card icons (picker modal) ─────────────────────────────────────
|
|
95
|
+
|
|
96
|
+
import {
|
|
97
|
+
TextBlockCardIcon,
|
|
98
|
+
ImageBlockCardIcon,
|
|
99
|
+
ImageGridBlockCardIcon,
|
|
100
|
+
VideoBlockCardIcon,
|
|
101
|
+
SpacerBlockCardIcon,
|
|
102
|
+
ButtonBlockCardIcon,
|
|
103
|
+
BeforeAfterBlockCardIcon,
|
|
104
|
+
AudioBlockCardIcon,
|
|
105
|
+
} from "../../components/builder/BlockCardIcons";
|
|
106
|
+
import {
|
|
107
|
+
ProjectGridCardIcon,
|
|
108
|
+
ProjectCarouselCardIcon,
|
|
109
|
+
MarqueeCardIcon,
|
|
110
|
+
} from "../../components/builder/SectionCardIcons";
|
|
111
|
+
|
|
112
|
+
// ── Compact icons (settings panel header) ─────────────────────────
|
|
113
|
+
|
|
114
|
+
import {
|
|
115
|
+
TextBlockIcon,
|
|
116
|
+
ImageBlockIcon,
|
|
117
|
+
ImageGridBlockIcon,
|
|
118
|
+
VideoBlockIcon,
|
|
119
|
+
SpacerBlockIcon,
|
|
120
|
+
ButtonBlockIcon,
|
|
121
|
+
BeforeAfterBlockIcon,
|
|
122
|
+
AudioBlockIcon,
|
|
123
|
+
ProjectGridBlockIcon,
|
|
124
|
+
ProjectCarouselBlockIcon,
|
|
125
|
+
MarqueeBlockIcon,
|
|
126
|
+
} from "../../components/builder/blockStyles";
|
|
127
|
+
|
|
128
|
+
// ────────────────────────────────────────────────────────────────────
|
|
129
|
+
// Registrations.
|
|
130
|
+
//
|
|
131
|
+
// Each `defaultFactory` is inlined here (rather than delegating to
|
|
132
|
+
// `createDefaultBlock` in `./defaults.ts`) to avoid a circular dependency:
|
|
133
|
+
// defaults.ts -> block-registry.getBlockRegistration
|
|
134
|
+
// defaults.ts -> side-effect: ./block-registrations
|
|
135
|
+
// block-registrations.ts -> (no longer imports ./defaults)
|
|
136
|
+
// Order matches the existing BLOCK_TYPE_REGISTRY + section blocks appended
|
|
137
|
+
// at the end, so iteration order is stable.
|
|
138
|
+
// ────────────────────────────────────────────────────────────────────
|
|
139
|
+
|
|
140
|
+
// ── Content blocks ──
|
|
141
|
+
|
|
142
|
+
registerBlockType<TextBlock>({
|
|
143
|
+
type: "textBlock",
|
|
144
|
+
label: "Text",
|
|
145
|
+
description: "Rich text content",
|
|
146
|
+
category: "content",
|
|
147
|
+
iconGlyph: "T",
|
|
148
|
+
schema: textBlock,
|
|
149
|
+
defaultFactory: (key) => ({
|
|
150
|
+
_type: "textBlock",
|
|
151
|
+
_key: key,
|
|
152
|
+
text: [],
|
|
153
|
+
style: { fontSize: 14, alignment: "left", fontWeight: "400" },
|
|
154
|
+
}),
|
|
155
|
+
renderer: TextBlockRenderer as React.ComponentType<{ block: TextBlock }>,
|
|
156
|
+
livePreview: LiveTextEditor as unknown as React.ComponentType<{ block: TextBlock; viewport?: import("./types").DeviceViewport; editable?: boolean }>,
|
|
157
|
+
editor: TextBlockEditor as React.ComponentType<{ block: TextBlock }>,
|
|
158
|
+
cardIcon: TextBlockCardIcon,
|
|
159
|
+
compactIcon: TextBlockIcon,
|
|
160
|
+
enterPresets: ["typewriter", "fade", "blur-in", "slide-up"],
|
|
161
|
+
hoverPresets: [],
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
registerBlockType<ImageBlock>({
|
|
165
|
+
type: "imageBlock",
|
|
166
|
+
label: "Image",
|
|
167
|
+
description: "Single image with caption",
|
|
168
|
+
category: "content",
|
|
169
|
+
iconGlyph: "🖼",
|
|
170
|
+
schema: imageBlock,
|
|
171
|
+
defaultFactory: (key) => ({
|
|
172
|
+
_type: "imageBlock",
|
|
173
|
+
_key: key,
|
|
174
|
+
asset_path: "",
|
|
175
|
+
alt: "",
|
|
176
|
+
width: "full",
|
|
177
|
+
aspect_ratio: "auto",
|
|
178
|
+
lazy: true,
|
|
179
|
+
shadow: false,
|
|
180
|
+
border_radius: "",
|
|
181
|
+
}),
|
|
182
|
+
renderer: ImageBlockRenderer as React.ComponentType<{ block: ImageBlock }>,
|
|
183
|
+
livePreview: LiveImagePreview as unknown as React.ComponentType<{ block: ImageBlock; viewport?: import("./types").DeviceViewport; editable?: boolean }>,
|
|
184
|
+
editor: ImageBlockEditor as React.ComponentType<{ block: ImageBlock }>,
|
|
185
|
+
cardIcon: ImageBlockCardIcon,
|
|
186
|
+
compactIcon: ImageBlockIcon,
|
|
187
|
+
enterPresets: ["fade", "blur", "reveal", "scale", "slide-up"],
|
|
188
|
+
hoverPresets: ["scale-up", "lift", "tilt-3d", "ripple", "rgb-shift", "pixelate"],
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
registerBlockType<ImageGridBlock>({
|
|
192
|
+
type: "imageGridBlock",
|
|
193
|
+
label: "Image Grid",
|
|
194
|
+
description: "Multiple images in grid",
|
|
195
|
+
category: "content",
|
|
196
|
+
iconGlyph: "⊞",
|
|
197
|
+
schema: imageGridBlock,
|
|
198
|
+
defaultFactory: (key) => ({
|
|
199
|
+
_type: "imageGridBlock",
|
|
200
|
+
_key: key,
|
|
201
|
+
images: [],
|
|
202
|
+
h_gutter: 10,
|
|
203
|
+
v_gutter: 10,
|
|
204
|
+
images_per_row: 2,
|
|
205
|
+
random_grid: "disabled",
|
|
206
|
+
random_seed: 1,
|
|
207
|
+
lightbox: false,
|
|
208
|
+
object_fit: "cover",
|
|
209
|
+
}),
|
|
210
|
+
renderer: ImageGridBlockRenderer as React.ComponentType<{ block: ImageGridBlock }>,
|
|
211
|
+
livePreview: LiveImageGridPreview as unknown as React.ComponentType<{ block: ImageGridBlock; viewport?: import("./types").DeviceViewport; editable?: boolean }>,
|
|
212
|
+
editor: ImageGridBlockEditor as React.ComponentType<{ block: ImageGridBlock }>,
|
|
213
|
+
cardIcon: ImageGridBlockCardIcon,
|
|
214
|
+
compactIcon: ImageGridBlockIcon,
|
|
215
|
+
enterPresets: ["fade", "scale", "slide-up"],
|
|
216
|
+
hoverPresets: ["tilt-3d"],
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
registerBlockType<VideoBlock>({
|
|
220
|
+
type: "videoBlock",
|
|
221
|
+
label: "Video",
|
|
222
|
+
description: "Vimeo, YouTube, or MP4",
|
|
223
|
+
category: "content",
|
|
224
|
+
iconGlyph: "▶",
|
|
225
|
+
schema: videoBlock,
|
|
226
|
+
defaultFactory: (key) => ({
|
|
227
|
+
_type: "videoBlock",
|
|
228
|
+
_key: key,
|
|
229
|
+
video_type: "vimeo",
|
|
230
|
+
url_or_path: "",
|
|
231
|
+
autoplay: false,
|
|
232
|
+
loop: false,
|
|
233
|
+
muted: true,
|
|
234
|
+
controls: true,
|
|
235
|
+
aspect_ratio: "16:9",
|
|
236
|
+
}),
|
|
237
|
+
renderer: VideoBlockRenderer as React.ComponentType<{ block: VideoBlock }>,
|
|
238
|
+
livePreview: LiveVideoPreview as unknown as React.ComponentType<{ block: VideoBlock; viewport?: import("./types").DeviceViewport; editable?: boolean }>,
|
|
239
|
+
editor: VideoBlockEditor as React.ComponentType<{ block: VideoBlock }>,
|
|
240
|
+
cardIcon: VideoBlockCardIcon,
|
|
241
|
+
compactIcon: VideoBlockIcon,
|
|
242
|
+
enterPresets: ["fade", "slide-up"],
|
|
243
|
+
hoverPresets: [],
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
registerBlockType<SpacerBlock>({
|
|
247
|
+
type: "spacerBlock",
|
|
248
|
+
label: "Spacer",
|
|
249
|
+
description: "Vertical spacing",
|
|
250
|
+
category: "content",
|
|
251
|
+
iconGlyph: "↕",
|
|
252
|
+
schema: spacerBlock,
|
|
253
|
+
defaultFactory: (key) => ({
|
|
254
|
+
_type: "spacerBlock",
|
|
255
|
+
_key: key,
|
|
256
|
+
height: "medium",
|
|
257
|
+
}),
|
|
258
|
+
renderer: SpacerBlockRenderer as React.ComponentType<{ block: SpacerBlock }>,
|
|
259
|
+
livePreview: LiveSpacerPreview as unknown as React.ComponentType<{ block: SpacerBlock; viewport?: import("./types").DeviceViewport; editable?: boolean }>,
|
|
260
|
+
editor: SpacerBlockEditor as React.ComponentType<{ block: SpacerBlock }>,
|
|
261
|
+
cardIcon: SpacerBlockCardIcon,
|
|
262
|
+
compactIcon: SpacerBlockIcon,
|
|
263
|
+
enterPresets: [],
|
|
264
|
+
hoverPresets: [],
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
registerBlockType<ButtonBlock>({
|
|
268
|
+
type: "buttonBlock",
|
|
269
|
+
label: "Button",
|
|
270
|
+
description: "Call-to-action button",
|
|
271
|
+
category: "content",
|
|
272
|
+
iconGlyph: "▣",
|
|
273
|
+
schema: buttonBlock,
|
|
274
|
+
defaultFactory: (key) => ({
|
|
275
|
+
_type: "buttonBlock",
|
|
276
|
+
_key: key,
|
|
277
|
+
text: "Button",
|
|
278
|
+
url: "#",
|
|
279
|
+
style: "primary",
|
|
280
|
+
size: "medium",
|
|
281
|
+
}),
|
|
282
|
+
renderer: ButtonBlockRenderer as React.ComponentType<{ block: ButtonBlock }>,
|
|
283
|
+
livePreview: LiveButtonPreview as unknown as React.ComponentType<{ block: ButtonBlock; viewport?: import("./types").DeviceViewport; editable?: boolean }>,
|
|
284
|
+
editor: ButtonBlockEditor as React.ComponentType<{ block: ButtonBlock }>,
|
|
285
|
+
cardIcon: ButtonBlockCardIcon,
|
|
286
|
+
compactIcon: ButtonBlockIcon,
|
|
287
|
+
enterPresets: ["fade", "slide-up", "scale"],
|
|
288
|
+
hoverPresets: ["scale-up", "lift", "border-glow"],
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
registerBlockType<BeforeAfterBlock>({
|
|
292
|
+
type: "beforeAfterBlock",
|
|
293
|
+
label: "Before / After",
|
|
294
|
+
description: "Drag-slider comparison between two images or videos",
|
|
295
|
+
category: "content",
|
|
296
|
+
iconGlyph: "◫",
|
|
297
|
+
schema: beforeAfterBlock,
|
|
298
|
+
defaultFactory: (key) => ({
|
|
299
|
+
_type: "beforeAfterBlock",
|
|
300
|
+
_key: key,
|
|
301
|
+
before_media_type: "image",
|
|
302
|
+
before_asset_path: "",
|
|
303
|
+
before_alt: "",
|
|
304
|
+
after_media_type: "image",
|
|
305
|
+
after_asset_path: "",
|
|
306
|
+
after_alt: "",
|
|
307
|
+
orientation: "horizontal",
|
|
308
|
+
initial_position: 50,
|
|
309
|
+
handle_color: "#FFFFFF",
|
|
310
|
+
width: "full",
|
|
311
|
+
aspect_ratio: "16:9",
|
|
312
|
+
video_autoplay: true,
|
|
313
|
+
video_loop: true,
|
|
314
|
+
video_muted: true,
|
|
315
|
+
border_radius: "",
|
|
316
|
+
shadow: false,
|
|
317
|
+
}),
|
|
318
|
+
renderer: BeforeAfterBlockRenderer as React.ComponentType<{ block: BeforeAfterBlock }>,
|
|
319
|
+
livePreview: LiveBeforeAfterPreview as unknown as React.ComponentType<{ block: BeforeAfterBlock; viewport?: import("./types").DeviceViewport; editable?: boolean }>,
|
|
320
|
+
editor: BeforeAfterBlockEditor as React.ComponentType<{ block: BeforeAfterBlock }>,
|
|
321
|
+
cardIcon: BeforeAfterBlockCardIcon,
|
|
322
|
+
compactIcon: BeforeAfterBlockIcon,
|
|
323
|
+
enterPresets: ["fade", "slide-up", "scale"],
|
|
324
|
+
hoverPresets: [],
|
|
325
|
+
});
|
|
326
|
+
|
|
327
|
+
registerBlockType<AudioBlock>({
|
|
328
|
+
type: "audioBlock",
|
|
329
|
+
label: "Audio",
|
|
330
|
+
description: "Minimal audio player with cover art and metadata",
|
|
331
|
+
category: "content",
|
|
332
|
+
iconGlyph: "♪",
|
|
333
|
+
schema: audioBlock,
|
|
334
|
+
defaultFactory: (key) => ({
|
|
335
|
+
_type: "audioBlock",
|
|
336
|
+
_key: key,
|
|
337
|
+
asset_path: "",
|
|
338
|
+
alt: "",
|
|
339
|
+
title: "",
|
|
340
|
+
artist: "",
|
|
341
|
+
cover_path: "",
|
|
342
|
+
accent_color: "#3580f9",
|
|
343
|
+
width: "contained",
|
|
344
|
+
border_radius: "",
|
|
345
|
+
shadow: false,
|
|
346
|
+
autoplay: false,
|
|
347
|
+
loop: false,
|
|
348
|
+
muted: false,
|
|
349
|
+
}),
|
|
350
|
+
renderer: AudioBlockRenderer as React.ComponentType<{ block: AudioBlock }>,
|
|
351
|
+
livePreview: LiveAudioPreview as unknown as React.ComponentType<{ block: AudioBlock; viewport?: import("./types").DeviceViewport; editable?: boolean }>,
|
|
352
|
+
editor: AudioBlockEditor as React.ComponentType<{ block: AudioBlock }>,
|
|
353
|
+
cardIcon: AudioBlockCardIcon,
|
|
354
|
+
compactIcon: AudioBlockIcon,
|
|
355
|
+
enterPresets: ["fade", "slide-up", "scale"],
|
|
356
|
+
hoverPresets: [],
|
|
357
|
+
});
|
|
358
|
+
|
|
359
|
+
// ── Section-level blocks ──
|
|
360
|
+
|
|
361
|
+
registerBlockType<ProjectGridBlock>({
|
|
362
|
+
type: "projectGridBlock",
|
|
363
|
+
label: "Project Grid",
|
|
364
|
+
description: "Staggered project showcase grid",
|
|
365
|
+
category: "section",
|
|
366
|
+
iconGlyph: "⬡",
|
|
367
|
+
schema: projectGridBlock,
|
|
368
|
+
defaultFactory: (key) => ({
|
|
369
|
+
_type: "projectGridBlock",
|
|
370
|
+
_key: key,
|
|
371
|
+
columns: 3,
|
|
372
|
+
aspect_ratios: ["16/9"],
|
|
373
|
+
gap_v: 16,
|
|
374
|
+
gap_h: 16,
|
|
375
|
+
hover_effect: "scale",
|
|
376
|
+
show_subtitle: true,
|
|
377
|
+
border_radius: 0,
|
|
378
|
+
video_mode: "off",
|
|
379
|
+
projects: [],
|
|
380
|
+
}),
|
|
381
|
+
renderer: ProjectGridBlockRenderer as React.ComponentType<{ block: ProjectGridBlock }>,
|
|
382
|
+
livePreview: LiveProjectGridPreview as unknown as React.ComponentType<{ block: ProjectGridBlock; viewport?: import("./types").DeviceViewport; editable?: boolean }>,
|
|
383
|
+
editor: ProjectGridEditor as React.ComponentType<{ block: ProjectGridBlock }>,
|
|
384
|
+
cardIcon: ProjectGridCardIcon,
|
|
385
|
+
compactIcon: ProjectGridBlockIcon,
|
|
386
|
+
enterPresets: [],
|
|
387
|
+
hoverPresets: ["scale-up", "lift"],
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
registerBlockType<ProjectCarouselBlock>({
|
|
391
|
+
type: "projectCarouselBlock",
|
|
392
|
+
label: "Project Carousel",
|
|
393
|
+
description: "Horizontal carousel of projects — great for end-of-page 'keep browsing'",
|
|
394
|
+
category: "section",
|
|
395
|
+
iconGlyph: "▸",
|
|
396
|
+
schema: projectCarouselBlock,
|
|
397
|
+
defaultFactory: (key) => ({
|
|
398
|
+
_type: "projectCarouselBlock",
|
|
399
|
+
_key: key,
|
|
400
|
+
source_mode: "auto_latest",
|
|
401
|
+
max_projects: 8,
|
|
402
|
+
exclude_current: true,
|
|
403
|
+
cards_per_view_desktop: 3.5,
|
|
404
|
+
cards_per_view_tablet: 2.2,
|
|
405
|
+
cards_per_view_phone: 1.2,
|
|
406
|
+
gap: 16,
|
|
407
|
+
aspect_ratio: "4/3",
|
|
408
|
+
show_title: true,
|
|
409
|
+
show_subtitle: false,
|
|
410
|
+
border_radius: 0,
|
|
411
|
+
hover_effect: "scale",
|
|
412
|
+
video_mode: "off",
|
|
413
|
+
show_arrows: true,
|
|
414
|
+
show_dots: false,
|
|
415
|
+
snap_scroll: true,
|
|
416
|
+
}),
|
|
417
|
+
renderer: ProjectCarouselBlockRenderer as React.ComponentType<{ block: ProjectCarouselBlock }>,
|
|
418
|
+
livePreview: LiveProjectCarouselPreview as unknown as React.ComponentType<{ block: ProjectCarouselBlock; viewport?: import("./types").DeviceViewport; editable?: boolean }>,
|
|
419
|
+
editor: ProjectCarouselBlockEditor as React.ComponentType<{ block: ProjectCarouselBlock }>,
|
|
420
|
+
cardIcon: ProjectCarouselCardIcon,
|
|
421
|
+
compactIcon: ProjectCarouselBlockIcon,
|
|
422
|
+
enterPresets: [],
|
|
423
|
+
hoverPresets: [],
|
|
424
|
+
});
|
|
425
|
+
|
|
426
|
+
registerBlockType<MarqueeBlock>({
|
|
427
|
+
type: "marqueeBlock",
|
|
428
|
+
label: "Marquee",
|
|
429
|
+
description: "Horizontal scrolling ticker of text and images",
|
|
430
|
+
category: "section",
|
|
431
|
+
iconGlyph: "⇄",
|
|
432
|
+
schema: marqueeBlock,
|
|
433
|
+
defaultFactory: (key) => ({
|
|
434
|
+
_type: "marqueeBlock",
|
|
435
|
+
_key: key,
|
|
436
|
+
items: [
|
|
437
|
+
{ _type: "marqueeText", _key: `${key}-t1`, text: "Selected Work" },
|
|
438
|
+
{ _type: "marqueeSeparator", _key: `${key}-s1`, character: "•" },
|
|
439
|
+
{ _type: "marqueeText", _key: `${key}-t2`, text: "2024" },
|
|
440
|
+
{ _type: "marqueeSeparator", _key: `${key}-s2`, character: "•" },
|
|
441
|
+
{ _type: "marqueeText", _key: `${key}-t3`, text: "Get in touch" },
|
|
442
|
+
{ _type: "marqueeSeparator", _key: `${key}-s3`, character: "•" },
|
|
443
|
+
],
|
|
444
|
+
direction: "left",
|
|
445
|
+
speed: 60,
|
|
446
|
+
pause_on_hover: true,
|
|
447
|
+
font_size: "3xl",
|
|
448
|
+
font_weight: "700",
|
|
449
|
+
color: "#111111",
|
|
450
|
+
text_style: "solid",
|
|
451
|
+
letter_spacing: 0,
|
|
452
|
+
text_transform: "uppercase",
|
|
453
|
+
gap: 48,
|
|
454
|
+
row_height: 120,
|
|
455
|
+
padding_y: 16,
|
|
456
|
+
background_color: "",
|
|
457
|
+
}),
|
|
458
|
+
renderer: MarqueeBlockRenderer as React.ComponentType<{ block: MarqueeBlock }>,
|
|
459
|
+
livePreview: LiveMarqueePreview as unknown as React.ComponentType<{ block: MarqueeBlock; viewport?: import("./types").DeviceViewport; editable?: boolean }>,
|
|
460
|
+
editor: MarqueeBlockEditor as React.ComponentType<{ block: MarqueeBlock }>,
|
|
461
|
+
cardIcon: MarqueeCardIcon,
|
|
462
|
+
compactIcon: MarqueeBlockIcon,
|
|
463
|
+
// The marquee is already animating; stick to entrance presets that won't
|
|
464
|
+
// conflict with its own horizontal motion.
|
|
465
|
+
enterPresets: ["fade", "slide-up", "scale"],
|
|
466
|
+
// No hover presets — scale/tilt/etc. fight an already-animating block.
|
|
467
|
+
hoverPresets: [],
|
|
468
|
+
});
|