@squiz/dx-page-contents-lib 1.70.2 → 1.71.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,851 @@
1
+ import { z } from 'zod';
2
+ import { PageLayoutContent } from '../layout-content';
3
+ export declare const CustomLayoutConfig: z.ZodEffects<z.ZodObject<{
4
+ rootWrapper: z.ZodObject<{
5
+ tag: z.ZodString;
6
+ classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ tag: string;
9
+ classes?: string[] | undefined;
10
+ }, {
11
+ tag: string;
12
+ classes?: string[] | undefined;
13
+ }>;
14
+ nodeWrapper: z.ZodOptional<z.ZodObject<{
15
+ tag: z.ZodString;
16
+ classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ tag: string;
19
+ classes?: string[] | undefined;
20
+ }, {
21
+ tag: string;
22
+ classes?: string[] | undefined;
23
+ }>>;
24
+ minNodes: z.ZodDefault<z.ZodNumber>;
25
+ maxNodes: z.ZodOptional<z.ZodNumber>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ rootWrapper: {
28
+ tag: string;
29
+ classes?: string[] | undefined;
30
+ };
31
+ minNodes: number;
32
+ nodeWrapper?: {
33
+ tag: string;
34
+ classes?: string[] | undefined;
35
+ } | undefined;
36
+ maxNodes?: number | undefined;
37
+ }, {
38
+ rootWrapper: {
39
+ tag: string;
40
+ classes?: string[] | undefined;
41
+ };
42
+ nodeWrapper?: {
43
+ tag: string;
44
+ classes?: string[] | undefined;
45
+ } | undefined;
46
+ minNodes?: number | undefined;
47
+ maxNodes?: number | undefined;
48
+ }>, {
49
+ rootWrapper: {
50
+ tag: string;
51
+ classes?: string[] | undefined;
52
+ };
53
+ minNodes: number;
54
+ nodeWrapper?: {
55
+ tag: string;
56
+ classes?: string[] | undefined;
57
+ } | undefined;
58
+ maxNodes?: number | undefined;
59
+ }, {
60
+ rootWrapper: {
61
+ tag: string;
62
+ classes?: string[] | undefined;
63
+ };
64
+ nodeWrapper?: {
65
+ tag: string;
66
+ classes?: string[] | undefined;
67
+ } | undefined;
68
+ minNodes?: number | undefined;
69
+ maxNodes?: number | undefined;
70
+ }>;
71
+ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
72
+ name: z.ZodLiteral<"custom-layout">;
73
+ config: z.ZodEffects<z.ZodObject<{
74
+ rootWrapper: z.ZodObject<{
75
+ tag: z.ZodString;
76
+ classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ tag: string;
79
+ classes?: string[] | undefined;
80
+ }, {
81
+ tag: string;
82
+ classes?: string[] | undefined;
83
+ }>;
84
+ nodeWrapper: z.ZodOptional<z.ZodObject<{
85
+ tag: z.ZodString;
86
+ classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ tag: string;
89
+ classes?: string[] | undefined;
90
+ }, {
91
+ tag: string;
92
+ classes?: string[] | undefined;
93
+ }>>;
94
+ minNodes: z.ZodDefault<z.ZodNumber>;
95
+ maxNodes: z.ZodOptional<z.ZodNumber>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ rootWrapper: {
98
+ tag: string;
99
+ classes?: string[] | undefined;
100
+ };
101
+ minNodes: number;
102
+ nodeWrapper?: {
103
+ tag: string;
104
+ classes?: string[] | undefined;
105
+ } | undefined;
106
+ maxNodes?: number | undefined;
107
+ }, {
108
+ rootWrapper: {
109
+ tag: string;
110
+ classes?: string[] | undefined;
111
+ };
112
+ nodeWrapper?: {
113
+ tag: string;
114
+ classes?: string[] | undefined;
115
+ } | undefined;
116
+ minNodes?: number | undefined;
117
+ maxNodes?: number | undefined;
118
+ }>, {
119
+ rootWrapper: {
120
+ tag: string;
121
+ classes?: string[] | undefined;
122
+ };
123
+ minNodes: number;
124
+ nodeWrapper?: {
125
+ tag: string;
126
+ classes?: string[] | undefined;
127
+ } | undefined;
128
+ maxNodes?: number | undefined;
129
+ }, {
130
+ rootWrapper: {
131
+ tag: string;
132
+ classes?: string[] | undefined;
133
+ };
134
+ nodeWrapper?: {
135
+ tag: string;
136
+ classes?: string[] | undefined;
137
+ } | undefined;
138
+ minNodes?: number | undefined;
139
+ maxNodes?: number | undefined;
140
+ }>;
141
+ content: z.ZodObject<{
142
+ main: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodType<{
143
+ value: string;
144
+ type: "text";
145
+ } | {
146
+ type: "matrix-image";
147
+ matrixDomain: string;
148
+ matrixAssetId: string;
149
+ attributes?: (Record<string, string> & {
150
+ src?: undefined;
151
+ }) | undefined;
152
+ formattingOptions?: {
153
+ alignment: "left" | "center" | "right" | "justify";
154
+ } | undefined;
155
+ matrixIdentifier?: string | undefined;
156
+ } | {
157
+ type: "dam-image";
158
+ damSystemType: "bynder";
159
+ damSystemIdentifier: string;
160
+ damObjectId: string;
161
+ attributes?: (Record<string, string> & {
162
+ src?: undefined;
163
+ }) | undefined;
164
+ formattingOptions?: {
165
+ alignment: "left" | "center" | "right" | "justify";
166
+ } | undefined;
167
+ damAdditional?: {
168
+ variant?: string | undefined;
169
+ } | undefined;
170
+ } | {
171
+ type: "component";
172
+ componentId: string;
173
+ componentSet: string;
174
+ componentType?: "server" | "edge" | undefined;
175
+ contentItem?: {
176
+ id: string;
177
+ } | {
178
+ content: Record<string, unknown>;
179
+ schemaName: string;
180
+ } | undefined;
181
+ } | (({
182
+ type: "tag";
183
+ tag: string;
184
+ attributes?: Record<string, string> | undefined;
185
+ font?: {
186
+ bold?: boolean | undefined;
187
+ italics?: boolean | undefined;
188
+ underline?: boolean | undefined;
189
+ color?: string | undefined;
190
+ size?: string | undefined;
191
+ fontFamily?: string | undefined;
192
+ } | undefined;
193
+ formattingOptions?: {
194
+ alignment: "left" | "center" | "right" | "justify";
195
+ } | undefined;
196
+ } | {
197
+ type: "fragment";
198
+ } | {
199
+ type: "link-to-matrix-asset";
200
+ matrixDomain: string;
201
+ matrixAssetId: string;
202
+ target: "_blank" | "_self" | "_parent" | "_top";
203
+ attributes?: (Record<string, string> & {
204
+ target?: undefined;
205
+ href?: undefined;
206
+ }) | undefined;
207
+ formattingOptions?: {
208
+ alignment: "left" | "center" | "right" | "justify";
209
+ } | undefined;
210
+ matrixIdentifier?: string | undefined;
211
+ }) & {
212
+ children: import("../layout-content").LayoutContentNodes[];
213
+ }), z.ZodTypeDef, {
214
+ value: string;
215
+ type: "text";
216
+ } | {
217
+ type: "tag";
218
+ tag: string;
219
+ attributes?: Record<string, string> | undefined;
220
+ font?: {
221
+ bold?: boolean | undefined;
222
+ italics?: boolean | undefined;
223
+ underline?: boolean | undefined;
224
+ color?: string | undefined;
225
+ size?: string | undefined;
226
+ fontFamily?: string | undefined;
227
+ } | undefined;
228
+ formattingOptions?: {
229
+ alignment: "left" | "center" | "right" | "justify";
230
+ } | undefined;
231
+ } | {
232
+ type: "fragment";
233
+ } | {
234
+ type: "link-to-matrix-asset";
235
+ matrixDomain: string;
236
+ matrixAssetId: string;
237
+ target: "_blank" | "_self" | "_parent" | "_top";
238
+ attributes?: (Record<string, string> & {
239
+ target?: undefined;
240
+ href?: undefined;
241
+ }) | undefined;
242
+ formattingOptions?: {
243
+ alignment: "left" | "center" | "right" | "justify";
244
+ } | undefined;
245
+ matrixIdentifier?: string | undefined;
246
+ } | {
247
+ type: "matrix-image";
248
+ matrixDomain: string;
249
+ matrixAssetId: string;
250
+ attributes?: (Record<string, string> & {
251
+ src?: undefined;
252
+ }) | undefined;
253
+ formattingOptions?: {
254
+ alignment: "left" | "center" | "right" | "justify";
255
+ } | undefined;
256
+ matrixIdentifier?: string | undefined;
257
+ } | {
258
+ type: "dam-image";
259
+ damSystemType: "bynder";
260
+ damSystemIdentifier: string;
261
+ damObjectId: string;
262
+ attributes?: (Record<string, string> & {
263
+ src?: undefined;
264
+ }) | undefined;
265
+ formattingOptions?: {
266
+ alignment: "left" | "center" | "right" | "justify";
267
+ } | undefined;
268
+ damAdditional?: {
269
+ variant?: string | undefined;
270
+ } | undefined;
271
+ } | {
272
+ type: "component";
273
+ componentId: string;
274
+ componentSet: string;
275
+ componentType?: "server" | "edge" | undefined;
276
+ contentItem?: {
277
+ id: string;
278
+ } | {
279
+ content: Record<string, unknown>;
280
+ schemaName: string;
281
+ } | undefined;
282
+ }>, z.ZodType<import("../layout-content").LayoutVariationNode, z.ZodTypeDef, {
283
+ type: "variation";
284
+ default: {};
285
+ }>]>, "many">, (import("../layout-content").LayoutVariationNode | ({
286
+ value: string;
287
+ type: "text";
288
+ } | {
289
+ type: "matrix-image";
290
+ matrixDomain: string;
291
+ matrixAssetId: string;
292
+ attributes?: (Record<string, string> & {
293
+ src?: undefined;
294
+ }) | undefined;
295
+ formattingOptions?: {
296
+ alignment: "left" | "center" | "right" | "justify";
297
+ } | undefined;
298
+ matrixIdentifier?: string | undefined;
299
+ } | {
300
+ type: "dam-image";
301
+ damSystemType: "bynder";
302
+ damSystemIdentifier: string;
303
+ damObjectId: string;
304
+ attributes?: (Record<string, string> & {
305
+ src?: undefined;
306
+ }) | undefined;
307
+ formattingOptions?: {
308
+ alignment: "left" | "center" | "right" | "justify";
309
+ } | undefined;
310
+ damAdditional?: {
311
+ variant?: string | undefined;
312
+ } | undefined;
313
+ } | {
314
+ type: "component";
315
+ componentId: string;
316
+ componentSet: string;
317
+ componentType?: "server" | "edge" | undefined;
318
+ contentItem?: {
319
+ id: string;
320
+ } | {
321
+ content: Record<string, unknown>;
322
+ schemaName: string;
323
+ } | undefined;
324
+ } | (({
325
+ type: "tag";
326
+ tag: string;
327
+ attributes?: Record<string, string> | undefined;
328
+ font?: {
329
+ bold?: boolean | undefined;
330
+ italics?: boolean | undefined;
331
+ underline?: boolean | undefined;
332
+ color?: string | undefined;
333
+ size?: string | undefined;
334
+ fontFamily?: string | undefined;
335
+ } | undefined;
336
+ formattingOptions?: {
337
+ alignment: "left" | "center" | "right" | "justify";
338
+ } | undefined;
339
+ } | {
340
+ type: "fragment";
341
+ } | {
342
+ type: "link-to-matrix-asset";
343
+ matrixDomain: string;
344
+ matrixAssetId: string;
345
+ target: "_blank" | "_self" | "_parent" | "_top";
346
+ attributes?: (Record<string, string> & {
347
+ target?: undefined;
348
+ href?: undefined;
349
+ }) | undefined;
350
+ formattingOptions?: {
351
+ alignment: "left" | "center" | "right" | "justify";
352
+ } | undefined;
353
+ matrixIdentifier?: string | undefined;
354
+ }) & {
355
+ children: import("../layout-content").LayoutContentNodes[];
356
+ })))[], ({
357
+ value: string;
358
+ type: "text";
359
+ } | {
360
+ type: "tag";
361
+ tag: string;
362
+ attributes?: Record<string, string> | undefined;
363
+ font?: {
364
+ bold?: boolean | undefined;
365
+ italics?: boolean | undefined;
366
+ underline?: boolean | undefined;
367
+ color?: string | undefined;
368
+ size?: string | undefined;
369
+ fontFamily?: string | undefined;
370
+ } | undefined;
371
+ formattingOptions?: {
372
+ alignment: "left" | "center" | "right" | "justify";
373
+ } | undefined;
374
+ } | {
375
+ type: "fragment";
376
+ } | {
377
+ type: "link-to-matrix-asset";
378
+ matrixDomain: string;
379
+ matrixAssetId: string;
380
+ target: "_blank" | "_self" | "_parent" | "_top";
381
+ attributes?: (Record<string, string> & {
382
+ target?: undefined;
383
+ href?: undefined;
384
+ }) | undefined;
385
+ formattingOptions?: {
386
+ alignment: "left" | "center" | "right" | "justify";
387
+ } | undefined;
388
+ matrixIdentifier?: string | undefined;
389
+ } | {
390
+ type: "matrix-image";
391
+ matrixDomain: string;
392
+ matrixAssetId: string;
393
+ attributes?: (Record<string, string> & {
394
+ src?: undefined;
395
+ }) | undefined;
396
+ formattingOptions?: {
397
+ alignment: "left" | "center" | "right" | "justify";
398
+ } | undefined;
399
+ matrixIdentifier?: string | undefined;
400
+ } | {
401
+ type: "dam-image";
402
+ damSystemType: "bynder";
403
+ damSystemIdentifier: string;
404
+ damObjectId: string;
405
+ attributes?: (Record<string, string> & {
406
+ src?: undefined;
407
+ }) | undefined;
408
+ formattingOptions?: {
409
+ alignment: "left" | "center" | "right" | "justify";
410
+ } | undefined;
411
+ damAdditional?: {
412
+ variant?: string | undefined;
413
+ } | undefined;
414
+ } | {
415
+ type: "component";
416
+ componentId: string;
417
+ componentSet: string;
418
+ componentType?: "server" | "edge" | undefined;
419
+ contentItem?: {
420
+ id: string;
421
+ } | {
422
+ content: Record<string, unknown>;
423
+ schemaName: string;
424
+ } | undefined;
425
+ } | {
426
+ type: "variation";
427
+ default: {};
428
+ })[]>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ main: (import("../layout-content").LayoutVariationNode | ({
431
+ value: string;
432
+ type: "text";
433
+ } | {
434
+ type: "matrix-image";
435
+ matrixDomain: string;
436
+ matrixAssetId: string;
437
+ attributes?: (Record<string, string> & {
438
+ src?: undefined;
439
+ }) | undefined;
440
+ formattingOptions?: {
441
+ alignment: "left" | "center" | "right" | "justify";
442
+ } | undefined;
443
+ matrixIdentifier?: string | undefined;
444
+ } | {
445
+ type: "dam-image";
446
+ damSystemType: "bynder";
447
+ damSystemIdentifier: string;
448
+ damObjectId: string;
449
+ attributes?: (Record<string, string> & {
450
+ src?: undefined;
451
+ }) | undefined;
452
+ formattingOptions?: {
453
+ alignment: "left" | "center" | "right" | "justify";
454
+ } | undefined;
455
+ damAdditional?: {
456
+ variant?: string | undefined;
457
+ } | undefined;
458
+ } | {
459
+ type: "component";
460
+ componentId: string;
461
+ componentSet: string;
462
+ componentType?: "server" | "edge" | undefined;
463
+ contentItem?: {
464
+ id: string;
465
+ } | {
466
+ content: Record<string, unknown>;
467
+ schemaName: string;
468
+ } | undefined;
469
+ } | (({
470
+ type: "tag";
471
+ tag: string;
472
+ attributes?: Record<string, string> | undefined;
473
+ font?: {
474
+ bold?: boolean | undefined;
475
+ italics?: boolean | undefined;
476
+ underline?: boolean | undefined;
477
+ color?: string | undefined;
478
+ size?: string | undefined;
479
+ fontFamily?: string | undefined;
480
+ } | undefined;
481
+ formattingOptions?: {
482
+ alignment: "left" | "center" | "right" | "justify";
483
+ } | undefined;
484
+ } | {
485
+ type: "fragment";
486
+ } | {
487
+ type: "link-to-matrix-asset";
488
+ matrixDomain: string;
489
+ matrixAssetId: string;
490
+ target: "_blank" | "_self" | "_parent" | "_top";
491
+ attributes?: (Record<string, string> & {
492
+ target?: undefined;
493
+ href?: undefined;
494
+ }) | undefined;
495
+ formattingOptions?: {
496
+ alignment: "left" | "center" | "right" | "justify";
497
+ } | undefined;
498
+ matrixIdentifier?: string | undefined;
499
+ }) & {
500
+ children: import("../layout-content").LayoutContentNodes[];
501
+ })))[];
502
+ }, {
503
+ main: ({
504
+ value: string;
505
+ type: "text";
506
+ } | {
507
+ type: "tag";
508
+ tag: string;
509
+ attributes?: Record<string, string> | undefined;
510
+ font?: {
511
+ bold?: boolean | undefined;
512
+ italics?: boolean | undefined;
513
+ underline?: boolean | undefined;
514
+ color?: string | undefined;
515
+ size?: string | undefined;
516
+ fontFamily?: string | undefined;
517
+ } | undefined;
518
+ formattingOptions?: {
519
+ alignment: "left" | "center" | "right" | "justify";
520
+ } | undefined;
521
+ } | {
522
+ type: "fragment";
523
+ } | {
524
+ type: "link-to-matrix-asset";
525
+ matrixDomain: string;
526
+ matrixAssetId: string;
527
+ target: "_blank" | "_self" | "_parent" | "_top";
528
+ attributes?: (Record<string, string> & {
529
+ target?: undefined;
530
+ href?: undefined;
531
+ }) | undefined;
532
+ formattingOptions?: {
533
+ alignment: "left" | "center" | "right" | "justify";
534
+ } | undefined;
535
+ matrixIdentifier?: string | undefined;
536
+ } | {
537
+ type: "matrix-image";
538
+ matrixDomain: string;
539
+ matrixAssetId: string;
540
+ attributes?: (Record<string, string> & {
541
+ src?: undefined;
542
+ }) | undefined;
543
+ formattingOptions?: {
544
+ alignment: "left" | "center" | "right" | "justify";
545
+ } | undefined;
546
+ matrixIdentifier?: string | undefined;
547
+ } | {
548
+ type: "dam-image";
549
+ damSystemType: "bynder";
550
+ damSystemIdentifier: string;
551
+ damObjectId: string;
552
+ attributes?: (Record<string, string> & {
553
+ src?: undefined;
554
+ }) | undefined;
555
+ formattingOptions?: {
556
+ alignment: "left" | "center" | "right" | "justify";
557
+ } | undefined;
558
+ damAdditional?: {
559
+ variant?: string | undefined;
560
+ } | undefined;
561
+ } | {
562
+ type: "component";
563
+ componentId: string;
564
+ componentSet: string;
565
+ componentType?: "server" | "edge" | undefined;
566
+ contentItem?: {
567
+ id: string;
568
+ } | {
569
+ content: Record<string, unknown>;
570
+ schemaName: string;
571
+ } | undefined;
572
+ } | {
573
+ type: "variation";
574
+ default: {};
575
+ })[];
576
+ }>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ content: {
579
+ main: (import("../layout-content").LayoutVariationNode | ({
580
+ value: string;
581
+ type: "text";
582
+ } | {
583
+ type: "matrix-image";
584
+ matrixDomain: string;
585
+ matrixAssetId: string;
586
+ attributes?: (Record<string, string> & {
587
+ src?: undefined;
588
+ }) | undefined;
589
+ formattingOptions?: {
590
+ alignment: "left" | "center" | "right" | "justify";
591
+ } | undefined;
592
+ matrixIdentifier?: string | undefined;
593
+ } | {
594
+ type: "dam-image";
595
+ damSystemType: "bynder";
596
+ damSystemIdentifier: string;
597
+ damObjectId: string;
598
+ attributes?: (Record<string, string> & {
599
+ src?: undefined;
600
+ }) | undefined;
601
+ formattingOptions?: {
602
+ alignment: "left" | "center" | "right" | "justify";
603
+ } | undefined;
604
+ damAdditional?: {
605
+ variant?: string | undefined;
606
+ } | undefined;
607
+ } | {
608
+ type: "component";
609
+ componentId: string;
610
+ componentSet: string;
611
+ componentType?: "server" | "edge" | undefined;
612
+ contentItem?: {
613
+ id: string;
614
+ } | {
615
+ content: Record<string, unknown>;
616
+ schemaName: string;
617
+ } | undefined;
618
+ } | (({
619
+ type: "tag";
620
+ tag: string;
621
+ attributes?: Record<string, string> | undefined;
622
+ font?: {
623
+ bold?: boolean | undefined;
624
+ italics?: boolean | undefined;
625
+ underline?: boolean | undefined;
626
+ color?: string | undefined;
627
+ size?: string | undefined;
628
+ fontFamily?: string | undefined;
629
+ } | undefined;
630
+ formattingOptions?: {
631
+ alignment: "left" | "center" | "right" | "justify";
632
+ } | undefined;
633
+ } | {
634
+ type: "fragment";
635
+ } | {
636
+ type: "link-to-matrix-asset";
637
+ matrixDomain: string;
638
+ matrixAssetId: string;
639
+ target: "_blank" | "_self" | "_parent" | "_top";
640
+ attributes?: (Record<string, string> & {
641
+ target?: undefined;
642
+ href?: undefined;
643
+ }) | undefined;
644
+ formattingOptions?: {
645
+ alignment: "left" | "center" | "right" | "justify";
646
+ } | undefined;
647
+ matrixIdentifier?: string | undefined;
648
+ }) & {
649
+ children: import("../layout-content").LayoutContentNodes[];
650
+ })))[];
651
+ };
652
+ name: "custom-layout";
653
+ config: {
654
+ rootWrapper: {
655
+ tag: string;
656
+ classes?: string[] | undefined;
657
+ };
658
+ minNodes: number;
659
+ nodeWrapper?: {
660
+ tag: string;
661
+ classes?: string[] | undefined;
662
+ } | undefined;
663
+ maxNodes?: number | undefined;
664
+ };
665
+ }, {
666
+ content: {
667
+ main: ({
668
+ value: string;
669
+ type: "text";
670
+ } | {
671
+ type: "tag";
672
+ tag: string;
673
+ attributes?: Record<string, string> | undefined;
674
+ font?: {
675
+ bold?: boolean | undefined;
676
+ italics?: boolean | undefined;
677
+ underline?: boolean | undefined;
678
+ color?: string | undefined;
679
+ size?: string | undefined;
680
+ fontFamily?: string | undefined;
681
+ } | undefined;
682
+ formattingOptions?: {
683
+ alignment: "left" | "center" | "right" | "justify";
684
+ } | undefined;
685
+ } | {
686
+ type: "fragment";
687
+ } | {
688
+ type: "link-to-matrix-asset";
689
+ matrixDomain: string;
690
+ matrixAssetId: string;
691
+ target: "_blank" | "_self" | "_parent" | "_top";
692
+ attributes?: (Record<string, string> & {
693
+ target?: undefined;
694
+ href?: undefined;
695
+ }) | undefined;
696
+ formattingOptions?: {
697
+ alignment: "left" | "center" | "right" | "justify";
698
+ } | undefined;
699
+ matrixIdentifier?: string | undefined;
700
+ } | {
701
+ type: "matrix-image";
702
+ matrixDomain: string;
703
+ matrixAssetId: string;
704
+ attributes?: (Record<string, string> & {
705
+ src?: undefined;
706
+ }) | undefined;
707
+ formattingOptions?: {
708
+ alignment: "left" | "center" | "right" | "justify";
709
+ } | undefined;
710
+ matrixIdentifier?: string | undefined;
711
+ } | {
712
+ type: "dam-image";
713
+ damSystemType: "bynder";
714
+ damSystemIdentifier: string;
715
+ damObjectId: string;
716
+ attributes?: (Record<string, string> & {
717
+ src?: undefined;
718
+ }) | undefined;
719
+ formattingOptions?: {
720
+ alignment: "left" | "center" | "right" | "justify";
721
+ } | undefined;
722
+ damAdditional?: {
723
+ variant?: string | undefined;
724
+ } | undefined;
725
+ } | {
726
+ type: "component";
727
+ componentId: string;
728
+ componentSet: string;
729
+ componentType?: "server" | "edge" | undefined;
730
+ contentItem?: {
731
+ id: string;
732
+ } | {
733
+ content: Record<string, unknown>;
734
+ schemaName: string;
735
+ } | undefined;
736
+ } | {
737
+ type: "variation";
738
+ default: {};
739
+ })[];
740
+ };
741
+ name: "custom-layout";
742
+ config: {
743
+ rootWrapper: {
744
+ tag: string;
745
+ classes?: string[] | undefined;
746
+ };
747
+ nodeWrapper?: {
748
+ tag: string;
749
+ classes?: string[] | undefined;
750
+ } | undefined;
751
+ minNodes?: number | undefined;
752
+ maxNodes?: number | undefined;
753
+ };
754
+ }>, {
755
+ name: "custom-layout";
756
+ config: z.infer<typeof CustomLayoutConfig>;
757
+ content: {
758
+ main: PageLayoutContent;
759
+ };
760
+ }, {
761
+ content: {
762
+ main: ({
763
+ value: string;
764
+ type: "text";
765
+ } | {
766
+ type: "tag";
767
+ tag: string;
768
+ attributes?: Record<string, string> | undefined;
769
+ font?: {
770
+ bold?: boolean | undefined;
771
+ italics?: boolean | undefined;
772
+ underline?: boolean | undefined;
773
+ color?: string | undefined;
774
+ size?: string | undefined;
775
+ fontFamily?: string | undefined;
776
+ } | undefined;
777
+ formattingOptions?: {
778
+ alignment: "left" | "center" | "right" | "justify";
779
+ } | undefined;
780
+ } | {
781
+ type: "fragment";
782
+ } | {
783
+ type: "link-to-matrix-asset";
784
+ matrixDomain: string;
785
+ matrixAssetId: string;
786
+ target: "_blank" | "_self" | "_parent" | "_top";
787
+ attributes?: (Record<string, string> & {
788
+ target?: undefined;
789
+ href?: undefined;
790
+ }) | undefined;
791
+ formattingOptions?: {
792
+ alignment: "left" | "center" | "right" | "justify";
793
+ } | undefined;
794
+ matrixIdentifier?: string | undefined;
795
+ } | {
796
+ type: "matrix-image";
797
+ matrixDomain: string;
798
+ matrixAssetId: string;
799
+ attributes?: (Record<string, string> & {
800
+ src?: undefined;
801
+ }) | undefined;
802
+ formattingOptions?: {
803
+ alignment: "left" | "center" | "right" | "justify";
804
+ } | undefined;
805
+ matrixIdentifier?: string | undefined;
806
+ } | {
807
+ type: "dam-image";
808
+ damSystemType: "bynder";
809
+ damSystemIdentifier: string;
810
+ damObjectId: string;
811
+ attributes?: (Record<string, string> & {
812
+ src?: undefined;
813
+ }) | undefined;
814
+ formattingOptions?: {
815
+ alignment: "left" | "center" | "right" | "justify";
816
+ } | undefined;
817
+ damAdditional?: {
818
+ variant?: string | undefined;
819
+ } | undefined;
820
+ } | {
821
+ type: "component";
822
+ componentId: string;
823
+ componentSet: string;
824
+ componentType?: "server" | "edge" | undefined;
825
+ contentItem?: {
826
+ id: string;
827
+ } | {
828
+ content: Record<string, unknown>;
829
+ schemaName: string;
830
+ } | undefined;
831
+ } | {
832
+ type: "variation";
833
+ default: {};
834
+ })[];
835
+ };
836
+ name: "custom-layout";
837
+ config: {
838
+ rootWrapper: {
839
+ tag: string;
840
+ classes?: string[] | undefined;
841
+ };
842
+ nodeWrapper?: {
843
+ tag: string;
844
+ classes?: string[] | undefined;
845
+ } | undefined;
846
+ minNodes?: number | undefined;
847
+ maxNodes?: number | undefined;
848
+ };
849
+ }>;
850
+ export type CustomLayout = z.infer<typeof CustomLayout>;
851
+ export declare const CUSTOM_LAYOUT_TEMPLATE = "\n<{{rootTag}} class=\"{{joinClasses rootClasses}}\">\n {{#each main}}\n {{#if ../nodeTag}}\n <{{../nodeTag}} class=\"{{joinClasses ../nodeClasses}}\">{{{this}}}</{{../nodeTag}}>\n {{else}}\n {{{this}}}\n {{/if}}\n {{/each}}\n</{{rootTag}}>\n";