@assemora/pages 0.1.0

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.
@@ -0,0 +1,586 @@
1
+ import { type PageMeta } from './models.js';
2
+ declare module '@assemora/core' {
3
+ interface AssemoraEventPayloads {
4
+ 'page.created': {
5
+ readonly pageId: string;
6
+ };
7
+ 'page.updated': {
8
+ readonly pageId: string;
9
+ };
10
+ 'page.published': {
11
+ readonly pageId: string;
12
+ readonly slug: string;
13
+ };
14
+ 'page.translated': {
15
+ readonly pageId: string;
16
+ readonly translationOf: string;
17
+ readonly locale: string;
18
+ };
19
+ }
20
+ }
21
+ export declare const CreatePage: import("@assemora/core").CommandDefinition<{
22
+ slug: import("@assemora/schema").StringSchema;
23
+ title: import("@assemora/schema").StringSchema;
24
+ meta: import("@assemora/schema").OptionalSchema<PageMeta>;
25
+ }, {
26
+ readonly id: string;
27
+ readonly slug: string;
28
+ readonly version: number;
29
+ }>;
30
+ export declare const UpdatePage: import("@assemora/core").CommandDefinition<{
31
+ id: import("@assemora/schema").StringSchema;
32
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
33
+ title: import("@assemora/schema").OptionalSchema<string>;
34
+ slug: import("@assemora/schema").OptionalSchema<string>;
35
+ meta: import("@assemora/schema").OptionalSchema<PageMeta>;
36
+ }, {
37
+ readonly id: string;
38
+ readonly version: number;
39
+ }>;
40
+ export declare const PublishPage: import("@assemora/core").CommandDefinition<{
41
+ id: import("@assemora/schema").StringSchema;
42
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
43
+ }, {
44
+ readonly id: string;
45
+ readonly publishedAt: Date | null;
46
+ readonly version: number;
47
+ }>;
48
+ export declare const AddBlock: import("@assemora/core").CommandDefinition<{
49
+ id: import("@assemora/schema").StringSchema;
50
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
51
+ type: import("@assemora/schema").StringSchema;
52
+ props: import("@assemora/schema").OptionalSchema<Record<string, unknown>>;
53
+ parentId: import("@assemora/schema").OptionalSchema<string>;
54
+ index: import("@assemora/schema").OptionalSchema<number>;
55
+ }, {
56
+ readonly blockId?: string;
57
+ readonly id: string;
58
+ readonly tree: {
59
+ readonly blocks: readonly {
60
+ readonly id: string;
61
+ readonly type: string;
62
+ readonly version: number;
63
+ readonly props: {
64
+ readonly [x: string]: unknown;
65
+ };
66
+ readonly children: readonly /*elided*/ any[];
67
+ readonly hidden?: boolean;
68
+ readonly design?: {
69
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
70
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
71
+ readonly width?: import("@assemora/schema").BlockWidth;
72
+ readonly align?: import("@assemora/schema").BlockAlignment;
73
+ readonly background?: string;
74
+ readonly backgroundImage?: string;
75
+ readonly container?: import("@assemora/schema").ContainerWidth;
76
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
77
+ };
78
+ }[];
79
+ };
80
+ readonly version: number;
81
+ }>;
82
+ export declare const UpdateBlock: import("@assemora/core").CommandDefinition<{
83
+ id: import("@assemora/schema").StringSchema;
84
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
85
+ blockId: import("@assemora/schema").StringSchema;
86
+ props: import("@assemora/schema").JsonValueSchema<Record<string, unknown>>;
87
+ }, {
88
+ readonly id: string;
89
+ readonly tree: {
90
+ readonly blocks: readonly {
91
+ readonly id: string;
92
+ readonly type: string;
93
+ readonly version: number;
94
+ readonly props: {
95
+ readonly [x: string]: unknown;
96
+ };
97
+ readonly children: readonly /*elided*/ any[];
98
+ readonly hidden?: boolean;
99
+ readonly design?: {
100
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
101
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
102
+ readonly width?: import("@assemora/schema").BlockWidth;
103
+ readonly align?: import("@assemora/schema").BlockAlignment;
104
+ readonly background?: string;
105
+ readonly backgroundImage?: string;
106
+ readonly container?: import("@assemora/schema").ContainerWidth;
107
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
108
+ };
109
+ }[];
110
+ };
111
+ readonly version: number;
112
+ }>;
113
+ export declare const DesignBlock: import("@assemora/core").CommandDefinition<{
114
+ id: import("@assemora/schema").StringSchema;
115
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
116
+ blockId: import("@assemora/schema").StringSchema;
117
+ /** Merged into what is there. A control set to `null` goes back to the theme. */
118
+ design: import("@assemora/schema").ObjectSchema<{
119
+ spacingTop: import("@assemora/schema").OptionalSchema<"2xl" | "lg" | "md" | "none" | "sm" | "xl" | "xs" | null>;
120
+ spacingBottom: import("@assemora/schema").OptionalSchema<"2xl" | "lg" | "md" | "none" | "sm" | "xl" | "xs" | null>;
121
+ width: import("@assemora/schema").OptionalSchema<"full" | "narrow" | "normal" | "wide" | null>;
122
+ align: import("@assemora/schema").OptionalSchema<"center" | "end" | "start" | null>;
123
+ background: import("@assemora/schema").OptionalSchema<string | null>;
124
+ backgroundImage: import("@assemora/schema").OptionalSchema<string | null>;
125
+ container: import("@assemora/schema").OptionalSchema<"full" | "narrow" | "normal" | "wide" | null>;
126
+ hiddenOn: import("@assemora/schema").OptionalSchema<("desktop" | "mobile" | "tablet")[] | null>;
127
+ }>;
128
+ }, {
129
+ readonly id: string;
130
+ readonly tree: {
131
+ readonly blocks: readonly {
132
+ readonly id: string;
133
+ readonly type: string;
134
+ readonly version: number;
135
+ readonly props: {
136
+ readonly [x: string]: unknown;
137
+ };
138
+ readonly children: readonly /*elided*/ any[];
139
+ readonly hidden?: boolean;
140
+ readonly design?: {
141
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
142
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
143
+ readonly width?: import("@assemora/schema").BlockWidth;
144
+ readonly align?: import("@assemora/schema").BlockAlignment;
145
+ readonly background?: string;
146
+ readonly backgroundImage?: string;
147
+ readonly container?: import("@assemora/schema").ContainerWidth;
148
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
149
+ };
150
+ }[];
151
+ };
152
+ readonly version: number;
153
+ }>;
154
+ export declare const MoveBlock: import("@assemora/core").CommandDefinition<{
155
+ id: import("@assemora/schema").StringSchema;
156
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
157
+ blockId: import("@assemora/schema").StringSchema;
158
+ parentId: import("@assemora/schema").OptionalSchema<string>;
159
+ index: import("@assemora/schema").OptionalSchema<number>;
160
+ }, {
161
+ readonly id: string;
162
+ readonly tree: {
163
+ readonly blocks: readonly {
164
+ readonly id: string;
165
+ readonly type: string;
166
+ readonly version: number;
167
+ readonly props: {
168
+ readonly [x: string]: unknown;
169
+ };
170
+ readonly children: readonly /*elided*/ any[];
171
+ readonly hidden?: boolean;
172
+ readonly design?: {
173
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
174
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
175
+ readonly width?: import("@assemora/schema").BlockWidth;
176
+ readonly align?: import("@assemora/schema").BlockAlignment;
177
+ readonly background?: string;
178
+ readonly backgroundImage?: string;
179
+ readonly container?: import("@assemora/schema").ContainerWidth;
180
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
181
+ };
182
+ }[];
183
+ };
184
+ readonly version: number;
185
+ }>;
186
+ export declare const RemoveBlock: import("@assemora/core").CommandDefinition<{
187
+ id: import("@assemora/schema").StringSchema;
188
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
189
+ blockId: import("@assemora/schema").StringSchema;
190
+ }, {
191
+ readonly id: string;
192
+ readonly tree: {
193
+ readonly blocks: readonly {
194
+ readonly id: string;
195
+ readonly type: string;
196
+ readonly version: number;
197
+ readonly props: {
198
+ readonly [x: string]: unknown;
199
+ };
200
+ readonly children: readonly /*elided*/ any[];
201
+ readonly hidden?: boolean;
202
+ readonly design?: {
203
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
204
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
205
+ readonly width?: import("@assemora/schema").BlockWidth;
206
+ readonly align?: import("@assemora/schema").BlockAlignment;
207
+ readonly background?: string;
208
+ readonly backgroundImage?: string;
209
+ readonly container?: import("@assemora/schema").ContainerWidth;
210
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
211
+ };
212
+ }[];
213
+ };
214
+ readonly version: number;
215
+ }>;
216
+ export declare const DuplicateBlock: import("@assemora/core").CommandDefinition<{
217
+ id: import("@assemora/schema").StringSchema;
218
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
219
+ blockId: import("@assemora/schema").StringSchema;
220
+ }, {
221
+ readonly blockId?: string;
222
+ readonly id: string;
223
+ readonly tree: {
224
+ readonly blocks: readonly {
225
+ readonly id: string;
226
+ readonly type: string;
227
+ readonly version: number;
228
+ readonly props: {
229
+ readonly [x: string]: unknown;
230
+ };
231
+ readonly children: readonly /*elided*/ any[];
232
+ readonly hidden?: boolean;
233
+ readonly design?: {
234
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
235
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
236
+ readonly width?: import("@assemora/schema").BlockWidth;
237
+ readonly align?: import("@assemora/schema").BlockAlignment;
238
+ readonly background?: string;
239
+ readonly backgroundImage?: string;
240
+ readonly container?: import("@assemora/schema").ContainerWidth;
241
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
242
+ };
243
+ }[];
244
+ };
245
+ readonly version: number;
246
+ }>;
247
+ export declare const HideBlock: import("@assemora/core").CommandDefinition<{
248
+ id: import("@assemora/schema").StringSchema;
249
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
250
+ blockId: import("@assemora/schema").StringSchema;
251
+ hidden: import("@assemora/schema").BooleanSchema;
252
+ }, {
253
+ readonly id: string;
254
+ readonly tree: {
255
+ readonly blocks: readonly {
256
+ readonly id: string;
257
+ readonly type: string;
258
+ readonly version: number;
259
+ readonly props: {
260
+ readonly [x: string]: unknown;
261
+ };
262
+ readonly children: readonly /*elided*/ any[];
263
+ readonly hidden?: boolean;
264
+ readonly design?: {
265
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
266
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
267
+ readonly width?: import("@assemora/schema").BlockWidth;
268
+ readonly align?: import("@assemora/schema").BlockAlignment;
269
+ readonly background?: string;
270
+ readonly backgroundImage?: string;
271
+ readonly container?: import("@assemora/schema").ContainerWidth;
272
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
273
+ };
274
+ }[];
275
+ };
276
+ readonly version: number;
277
+ }>;
278
+ export declare const UnpublishPage: import("@assemora/core").CommandDefinition<{
279
+ id: import("@assemora/schema").StringSchema;
280
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
281
+ }, {
282
+ readonly id: string;
283
+ readonly version: number;
284
+ }>;
285
+ export declare const ArchivePage: import("@assemora/core").CommandDefinition<{
286
+ id: import("@assemora/schema").StringSchema;
287
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
288
+ }, {
289
+ readonly id: string;
290
+ readonly version: number;
291
+ }>;
292
+ export declare const DeletePage: import("@assemora/core").CommandDefinition<{
293
+ id: import("@assemora/schema").StringSchema;
294
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
295
+ }, {
296
+ readonly id: string;
297
+ }>;
298
+ export declare const TranslatePage: import("@assemora/core").CommandDefinition<{
299
+ id: import("@assemora/schema").StringSchema;
300
+ locale: import("@assemora/schema").StringSchema;
301
+ /** Its own address, where the translation wants one. Defaults to the original's. */
302
+ slug: import("@assemora/schema").OptionalSchema<string>;
303
+ title: import("@assemora/schema").OptionalSchema<string>;
304
+ }, {
305
+ readonly id: string;
306
+ readonly locale: string;
307
+ readonly slug: string;
308
+ readonly version: number;
309
+ }>;
310
+ export declare const pageCommands: readonly [import("@assemora/core").CommandDefinition<{
311
+ slug: import("@assemora/schema").StringSchema;
312
+ title: import("@assemora/schema").StringSchema;
313
+ meta: import("@assemora/schema").OptionalSchema<PageMeta>;
314
+ }, {
315
+ readonly id: string;
316
+ readonly slug: string;
317
+ readonly version: number;
318
+ }>, import("@assemora/core").CommandDefinition<{
319
+ id: import("@assemora/schema").StringSchema;
320
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
321
+ title: import("@assemora/schema").OptionalSchema<string>;
322
+ slug: import("@assemora/schema").OptionalSchema<string>;
323
+ meta: import("@assemora/schema").OptionalSchema<PageMeta>;
324
+ }, {
325
+ readonly id: string;
326
+ readonly version: number;
327
+ }>, import("@assemora/core").CommandDefinition<{
328
+ id: import("@assemora/schema").StringSchema;
329
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
330
+ }, {
331
+ readonly id: string;
332
+ readonly publishedAt: Date | null;
333
+ readonly version: number;
334
+ }>, import("@assemora/core").CommandDefinition<{
335
+ id: import("@assemora/schema").StringSchema;
336
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
337
+ }, {
338
+ readonly id: string;
339
+ readonly version: number;
340
+ }>, import("@assemora/core").CommandDefinition<{
341
+ id: import("@assemora/schema").StringSchema;
342
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
343
+ }, {
344
+ readonly id: string;
345
+ readonly version: number;
346
+ }>, import("@assemora/core").CommandDefinition<{
347
+ id: import("@assemora/schema").StringSchema;
348
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
349
+ }, {
350
+ readonly id: string;
351
+ }>, import("@assemora/core").CommandDefinition<{
352
+ id: import("@assemora/schema").StringSchema;
353
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
354
+ type: import("@assemora/schema").StringSchema;
355
+ props: import("@assemora/schema").OptionalSchema<Record<string, unknown>>;
356
+ parentId: import("@assemora/schema").OptionalSchema<string>;
357
+ index: import("@assemora/schema").OptionalSchema<number>;
358
+ }, {
359
+ readonly blockId?: string;
360
+ readonly id: string;
361
+ readonly tree: {
362
+ readonly blocks: readonly {
363
+ readonly id: string;
364
+ readonly type: string;
365
+ readonly version: number;
366
+ readonly props: {
367
+ readonly [x: string]: unknown;
368
+ };
369
+ readonly children: readonly /*elided*/ any[];
370
+ readonly hidden?: boolean;
371
+ readonly design?: {
372
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
373
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
374
+ readonly width?: import("@assemora/schema").BlockWidth;
375
+ readonly align?: import("@assemora/schema").BlockAlignment;
376
+ readonly background?: string;
377
+ readonly backgroundImage?: string;
378
+ readonly container?: import("@assemora/schema").ContainerWidth;
379
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
380
+ };
381
+ }[];
382
+ };
383
+ readonly version: number;
384
+ }>, import("@assemora/core").CommandDefinition<{
385
+ id: import("@assemora/schema").StringSchema;
386
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
387
+ blockId: import("@assemora/schema").StringSchema;
388
+ props: import("@assemora/schema").JsonValueSchema<Record<string, unknown>>;
389
+ }, {
390
+ readonly id: string;
391
+ readonly tree: {
392
+ readonly blocks: readonly {
393
+ readonly id: string;
394
+ readonly type: string;
395
+ readonly version: number;
396
+ readonly props: {
397
+ readonly [x: string]: unknown;
398
+ };
399
+ readonly children: readonly any[];
400
+ readonly hidden?: boolean;
401
+ readonly design?: {
402
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
403
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
404
+ readonly width?: import("@assemora/schema").BlockWidth;
405
+ readonly align?: import("@assemora/schema").BlockAlignment;
406
+ readonly background?: string;
407
+ readonly backgroundImage?: string;
408
+ readonly container?: import("@assemora/schema").ContainerWidth;
409
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
410
+ };
411
+ }[];
412
+ };
413
+ readonly version: number;
414
+ }>, import("@assemora/core").CommandDefinition<{
415
+ id: import("@assemora/schema").StringSchema;
416
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
417
+ blockId: import("@assemora/schema").StringSchema;
418
+ parentId: import("@assemora/schema").OptionalSchema<string>;
419
+ index: import("@assemora/schema").OptionalSchema<number>;
420
+ }, {
421
+ readonly id: string;
422
+ readonly tree: {
423
+ readonly blocks: readonly {
424
+ readonly id: string;
425
+ readonly type: string;
426
+ readonly version: number;
427
+ readonly props: {
428
+ readonly [x: string]: unknown;
429
+ };
430
+ readonly children: readonly any[];
431
+ readonly hidden?: boolean;
432
+ readonly design?: {
433
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
434
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
435
+ readonly width?: import("@assemora/schema").BlockWidth;
436
+ readonly align?: import("@assemora/schema").BlockAlignment;
437
+ readonly background?: string;
438
+ readonly backgroundImage?: string;
439
+ readonly container?: import("@assemora/schema").ContainerWidth;
440
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
441
+ };
442
+ }[];
443
+ };
444
+ readonly version: number;
445
+ }>, import("@assemora/core").CommandDefinition<{
446
+ id: import("@assemora/schema").StringSchema;
447
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
448
+ blockId: import("@assemora/schema").StringSchema;
449
+ }, {
450
+ readonly id: string;
451
+ readonly tree: {
452
+ readonly blocks: readonly {
453
+ readonly id: string;
454
+ readonly type: string;
455
+ readonly version: number;
456
+ readonly props: {
457
+ readonly [x: string]: unknown;
458
+ };
459
+ readonly children: readonly any[];
460
+ readonly hidden?: boolean;
461
+ readonly design?: {
462
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
463
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
464
+ readonly width?: import("@assemora/schema").BlockWidth;
465
+ readonly align?: import("@assemora/schema").BlockAlignment;
466
+ readonly background?: string;
467
+ readonly backgroundImage?: string;
468
+ readonly container?: import("@assemora/schema").ContainerWidth;
469
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
470
+ };
471
+ }[];
472
+ };
473
+ readonly version: number;
474
+ }>, import("@assemora/core").CommandDefinition<{
475
+ id: import("@assemora/schema").StringSchema;
476
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
477
+ blockId: import("@assemora/schema").StringSchema;
478
+ }, {
479
+ readonly blockId?: string;
480
+ readonly id: string;
481
+ readonly tree: {
482
+ readonly blocks: readonly {
483
+ readonly id: string;
484
+ readonly type: string;
485
+ readonly version: number;
486
+ readonly props: {
487
+ readonly [x: string]: unknown;
488
+ };
489
+ readonly children: readonly any[];
490
+ readonly hidden?: boolean;
491
+ readonly design?: {
492
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
493
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
494
+ readonly width?: import("@assemora/schema").BlockWidth;
495
+ readonly align?: import("@assemora/schema").BlockAlignment;
496
+ readonly background?: string;
497
+ readonly backgroundImage?: string;
498
+ readonly container?: import("@assemora/schema").ContainerWidth;
499
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
500
+ };
501
+ }[];
502
+ };
503
+ readonly version: number;
504
+ }>, import("@assemora/core").CommandDefinition<{
505
+ id: import("@assemora/schema").StringSchema;
506
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
507
+ blockId: import("@assemora/schema").StringSchema;
508
+ hidden: import("@assemora/schema").BooleanSchema;
509
+ }, {
510
+ readonly id: string;
511
+ readonly tree: {
512
+ readonly blocks: readonly {
513
+ readonly id: string;
514
+ readonly type: string;
515
+ readonly version: number;
516
+ readonly props: {
517
+ readonly [x: string]: unknown;
518
+ };
519
+ readonly children: readonly any[];
520
+ readonly hidden?: boolean;
521
+ readonly design?: {
522
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
523
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
524
+ readonly width?: import("@assemora/schema").BlockWidth;
525
+ readonly align?: import("@assemora/schema").BlockAlignment;
526
+ readonly background?: string;
527
+ readonly backgroundImage?: string;
528
+ readonly container?: import("@assemora/schema").ContainerWidth;
529
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
530
+ };
531
+ }[];
532
+ };
533
+ readonly version: number;
534
+ }>, import("@assemora/core").CommandDefinition<{
535
+ id: import("@assemora/schema").StringSchema;
536
+ expectedVersion: import("@assemora/schema").OptionalSchema<number>;
537
+ blockId: import("@assemora/schema").StringSchema;
538
+ /** Merged into what is there. A control set to `null` goes back to the theme. */
539
+ design: import("@assemora/schema").ObjectSchema<{
540
+ spacingTop: import("@assemora/schema").OptionalSchema<"2xl" | "lg" | "md" | "none" | "sm" | "xl" | "xs" | null>;
541
+ spacingBottom: import("@assemora/schema").OptionalSchema<"2xl" | "lg" | "md" | "none" | "sm" | "xl" | "xs" | null>;
542
+ width: import("@assemora/schema").OptionalSchema<"full" | "narrow" | "normal" | "wide" | null>;
543
+ align: import("@assemora/schema").OptionalSchema<"center" | "end" | "start" | null>;
544
+ background: import("@assemora/schema").OptionalSchema<string | null>;
545
+ backgroundImage: import("@assemora/schema").OptionalSchema<string | null>;
546
+ container: import("@assemora/schema").OptionalSchema<"full" | "narrow" | "normal" | "wide" | null>;
547
+ hiddenOn: import("@assemora/schema").OptionalSchema<("desktop" | "mobile" | "tablet")[] | null>;
548
+ }>;
549
+ }, {
550
+ readonly id: string;
551
+ readonly tree: {
552
+ readonly blocks: readonly {
553
+ readonly id: string;
554
+ readonly type: string;
555
+ readonly version: number;
556
+ readonly props: {
557
+ readonly [x: string]: unknown;
558
+ };
559
+ readonly children: readonly any[];
560
+ readonly hidden?: boolean;
561
+ readonly design?: {
562
+ readonly spacingTop?: import("@assemora/schema").SpacingScale;
563
+ readonly spacingBottom?: import("@assemora/schema").SpacingScale;
564
+ readonly width?: import("@assemora/schema").BlockWidth;
565
+ readonly align?: import("@assemora/schema").BlockAlignment;
566
+ readonly background?: string;
567
+ readonly backgroundImage?: string;
568
+ readonly container?: import("@assemora/schema").ContainerWidth;
569
+ readonly hiddenOn?: readonly ("desktop" | "mobile" | "tablet")[];
570
+ };
571
+ }[];
572
+ };
573
+ readonly version: number;
574
+ }>, import("@assemora/core").CommandDefinition<{
575
+ id: import("@assemora/schema").StringSchema;
576
+ locale: import("@assemora/schema").StringSchema;
577
+ /** Its own address, where the translation wants one. Defaults to the original's. */
578
+ slug: import("@assemora/schema").OptionalSchema<string>;
579
+ title: import("@assemora/schema").OptionalSchema<string>;
580
+ }, {
581
+ readonly id: string;
582
+ readonly locale: string;
583
+ readonly slug: string;
584
+ readonly version: number;
585
+ }>];
586
+ //# sourceMappingURL=commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAA;AAYjD,OAAO,QAAQ,gBAAgB,CAAC;IAC9B,UAAU,qBAAqB;QAC7B,cAAc,EAAE;YAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;QAC3C,cAAc,EAAE;YAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;QAC3C,gBAAgB,EAAE;YAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;QACpE,iBAAiB,EAAE;YACjB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;YACvB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;YAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;SACxB,CAAA;KACF;CACF;AA6BD,eAAO,MAAM,UAAU;;;;;;;;EAgCrB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;EA4BrB,CAAA;AAEF,eAAO,MAAM,WAAW;;;;;;;EA4BtB,CAAA;AA+CF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBnB,CAAA;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAetB,CAAA;AAEF,eAAO,MAAM,WAAW;;;;IAMpB,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcnF,CAAA;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBpB,CAAA;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUtB,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWzB,CAAA;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAepB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;EAuBxB,CAAA;AAEF,eAAO,MAAM,WAAW;;;;;;EAuBtB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;EAiBrB,CAAA;AAEF,eAAO,MAAM,aAAa;;;IAKtB,oFAAoF;;;;;;;;EAkFtF,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA9OrB,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0JjF,oFAAoF;;;;;;;;GAmG9E,CAAA"}