@squiz/dx-page-contents-lib 1.63.3 → 1.65.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.
@@ -6,6 +6,585 @@ declare const PageContentsResolved: z.ZodObject<{
6
6
  id: z.ZodString;
7
7
  name: z.ZodString;
8
8
  layouts: z.ZodArray<z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
9
+ name: z.ZodLiteral<"layout-raw">;
10
+ content: z.ZodObject<{
11
+ main: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodType<{
12
+ value: string;
13
+ type: "text";
14
+ } | {
15
+ type: "matrix-image";
16
+ matrixDomain: string;
17
+ matrixAssetId: string;
18
+ matrixIdentifier?: string | undefined;
19
+ formattingOptions?: {
20
+ alignment: "left" | "center" | "right" | "justify";
21
+ } | undefined;
22
+ } | {
23
+ type: "component";
24
+ componentId: string;
25
+ componentSet: string;
26
+ contentItem?: {
27
+ id: string;
28
+ } | {
29
+ content: Record<string, unknown>;
30
+ schemaName: string;
31
+ } | undefined;
32
+ } | (({
33
+ type: "tag";
34
+ tag: string;
35
+ attributes?: Record<string, string> | undefined;
36
+ font?: {
37
+ bold?: boolean | undefined;
38
+ italics?: boolean | undefined;
39
+ underline?: boolean | undefined;
40
+ color?: string | undefined;
41
+ size?: string | undefined;
42
+ fontFamily?: string | undefined;
43
+ } | undefined;
44
+ formattingOptions?: {
45
+ alignment: "left" | "center" | "right" | "justify";
46
+ } | undefined;
47
+ } | {
48
+ type: "link-to-matrix-asset";
49
+ matrixDomain: string;
50
+ matrixAssetId: string;
51
+ target: "_blank" | "_self" | "_parent" | "_top";
52
+ matrixIdentifier?: string | undefined;
53
+ formattingOptions?: {
54
+ alignment: "left" | "center" | "right" | "justify";
55
+ } | undefined;
56
+ }) & {
57
+ children: (LayoutVariationNode | ({
58
+ value: string;
59
+ type: "text";
60
+ } | {
61
+ type: "matrix-image";
62
+ matrixDomain: string;
63
+ matrixAssetId: string;
64
+ matrixIdentifier?: string | undefined;
65
+ formattingOptions?: {
66
+ alignment: "left" | "center" | "right" | "justify";
67
+ } | undefined;
68
+ } | {
69
+ type: "component";
70
+ componentId: string;
71
+ componentSet: string;
72
+ contentItem?: {
73
+ id: string;
74
+ } | {
75
+ content: Record<string, unknown>;
76
+ schemaName: string;
77
+ } | undefined;
78
+ } | (({
79
+ type: "tag";
80
+ tag: string;
81
+ attributes?: Record<string, string> | undefined;
82
+ font?: {
83
+ bold?: boolean | undefined;
84
+ italics?: boolean | undefined;
85
+ underline?: boolean | undefined;
86
+ color?: string | undefined;
87
+ size?: string | undefined;
88
+ fontFamily?: string | undefined;
89
+ } | undefined;
90
+ formattingOptions?: {
91
+ alignment: "left" | "center" | "right" | "justify";
92
+ } | undefined;
93
+ } | {
94
+ type: "link-to-matrix-asset";
95
+ matrixDomain: string;
96
+ matrixAssetId: string;
97
+ target: "_blank" | "_self" | "_parent" | "_top";
98
+ matrixIdentifier?: string | undefined;
99
+ formattingOptions?: {
100
+ alignment: "left" | "center" | "right" | "justify";
101
+ } | undefined;
102
+ }) & any)))[];
103
+ }), z.ZodTypeDef, {
104
+ value: string;
105
+ type: "text";
106
+ } | {
107
+ type: "tag";
108
+ tag: string;
109
+ attributes?: Record<string, string> | undefined;
110
+ font?: {
111
+ bold?: boolean | undefined;
112
+ italics?: boolean | undefined;
113
+ underline?: boolean | undefined;
114
+ color?: string | undefined;
115
+ size?: string | undefined;
116
+ fontFamily?: string | undefined;
117
+ } | undefined;
118
+ formattingOptions?: {
119
+ alignment: "left" | "center" | "right" | "justify";
120
+ } | undefined;
121
+ } | {
122
+ type: "link-to-matrix-asset";
123
+ matrixDomain: string;
124
+ matrixAssetId: string;
125
+ target: "_blank" | "_self" | "_parent" | "_top";
126
+ matrixIdentifier?: string | undefined;
127
+ formattingOptions?: {
128
+ alignment: "left" | "center" | "right" | "justify";
129
+ } | undefined;
130
+ } | {
131
+ type: "matrix-image";
132
+ matrixDomain: string;
133
+ matrixAssetId: string;
134
+ matrixIdentifier?: string | undefined;
135
+ formattingOptions?: {
136
+ alignment: "left" | "center" | "right" | "justify";
137
+ } | undefined;
138
+ } | {
139
+ type: "component";
140
+ componentId: string;
141
+ componentSet: string;
142
+ contentItem?: {
143
+ id: string;
144
+ } | {
145
+ content: Record<string, unknown>;
146
+ schemaName: string;
147
+ } | undefined;
148
+ }>, z.ZodType<LayoutVariationNode, z.ZodTypeDef, {
149
+ type: "variation";
150
+ default: {};
151
+ }>]>, "many">, (LayoutVariationNode | ({
152
+ value: string;
153
+ type: "text";
154
+ } | {
155
+ type: "matrix-image";
156
+ matrixDomain: string;
157
+ matrixAssetId: string;
158
+ matrixIdentifier?: string | undefined;
159
+ formattingOptions?: {
160
+ alignment: "left" | "center" | "right" | "justify";
161
+ } | undefined;
162
+ } | {
163
+ type: "component";
164
+ componentId: string;
165
+ componentSet: string;
166
+ contentItem?: {
167
+ id: string;
168
+ } | {
169
+ content: Record<string, unknown>;
170
+ schemaName: string;
171
+ } | undefined;
172
+ } | (({
173
+ type: "tag";
174
+ tag: string;
175
+ attributes?: Record<string, string> | undefined;
176
+ font?: {
177
+ bold?: boolean | undefined;
178
+ italics?: boolean | undefined;
179
+ underline?: boolean | undefined;
180
+ color?: string | undefined;
181
+ size?: string | undefined;
182
+ fontFamily?: string | undefined;
183
+ } | undefined;
184
+ formattingOptions?: {
185
+ alignment: "left" | "center" | "right" | "justify";
186
+ } | undefined;
187
+ } | {
188
+ type: "link-to-matrix-asset";
189
+ matrixDomain: string;
190
+ matrixAssetId: string;
191
+ target: "_blank" | "_self" | "_parent" | "_top";
192
+ matrixIdentifier?: string | undefined;
193
+ formattingOptions?: {
194
+ alignment: "left" | "center" | "right" | "justify";
195
+ } | undefined;
196
+ }) & {
197
+ children: (LayoutVariationNode | ({
198
+ value: string;
199
+ type: "text";
200
+ } | {
201
+ type: "matrix-image";
202
+ matrixDomain: string;
203
+ matrixAssetId: string;
204
+ matrixIdentifier?: string | undefined;
205
+ formattingOptions?: {
206
+ alignment: "left" | "center" | "right" | "justify";
207
+ } | undefined;
208
+ } | {
209
+ type: "component";
210
+ componentId: string;
211
+ componentSet: string;
212
+ contentItem?: {
213
+ id: string;
214
+ } | {
215
+ content: Record<string, unknown>;
216
+ schemaName: string;
217
+ } | undefined;
218
+ } | (({
219
+ type: "tag";
220
+ tag: string;
221
+ attributes?: Record<string, string> | undefined;
222
+ font?: {
223
+ bold?: boolean | undefined;
224
+ italics?: boolean | undefined;
225
+ underline?: boolean | undefined;
226
+ color?: string | undefined;
227
+ size?: string | undefined;
228
+ fontFamily?: string | undefined;
229
+ } | undefined;
230
+ formattingOptions?: {
231
+ alignment: "left" | "center" | "right" | "justify";
232
+ } | undefined;
233
+ } | {
234
+ type: "link-to-matrix-asset";
235
+ matrixDomain: string;
236
+ matrixAssetId: string;
237
+ target: "_blank" | "_self" | "_parent" | "_top";
238
+ matrixIdentifier?: string | undefined;
239
+ formattingOptions?: {
240
+ alignment: "left" | "center" | "right" | "justify";
241
+ } | undefined;
242
+ }) & any)))[];
243
+ })))[], ({
244
+ value: string;
245
+ type: "text";
246
+ } | {
247
+ type: "tag";
248
+ tag: string;
249
+ attributes?: Record<string, string> | undefined;
250
+ font?: {
251
+ bold?: boolean | undefined;
252
+ italics?: boolean | undefined;
253
+ underline?: boolean | undefined;
254
+ color?: string | undefined;
255
+ size?: string | undefined;
256
+ fontFamily?: string | undefined;
257
+ } | undefined;
258
+ formattingOptions?: {
259
+ alignment: "left" | "center" | "right" | "justify";
260
+ } | undefined;
261
+ } | {
262
+ type: "link-to-matrix-asset";
263
+ matrixDomain: string;
264
+ matrixAssetId: string;
265
+ target: "_blank" | "_self" | "_parent" | "_top";
266
+ matrixIdentifier?: string | undefined;
267
+ formattingOptions?: {
268
+ alignment: "left" | "center" | "right" | "justify";
269
+ } | undefined;
270
+ } | {
271
+ type: "matrix-image";
272
+ matrixDomain: string;
273
+ matrixAssetId: string;
274
+ matrixIdentifier?: string | undefined;
275
+ formattingOptions?: {
276
+ alignment: "left" | "center" | "right" | "justify";
277
+ } | undefined;
278
+ } | {
279
+ type: "component";
280
+ componentId: string;
281
+ componentSet: string;
282
+ contentItem?: {
283
+ id: string;
284
+ } | {
285
+ content: Record<string, unknown>;
286
+ schemaName: string;
287
+ } | undefined;
288
+ } | {
289
+ type: "variation";
290
+ default: {};
291
+ })[]>;
292
+ }, "strip", z.ZodTypeAny, {
293
+ main: (LayoutVariationNode | ({
294
+ value: string;
295
+ type: "text";
296
+ } | {
297
+ type: "matrix-image";
298
+ matrixDomain: string;
299
+ matrixAssetId: string;
300
+ matrixIdentifier?: string | undefined;
301
+ formattingOptions?: {
302
+ alignment: "left" | "center" | "right" | "justify";
303
+ } | undefined;
304
+ } | {
305
+ type: "component";
306
+ componentId: string;
307
+ componentSet: string;
308
+ contentItem?: {
309
+ id: string;
310
+ } | {
311
+ content: Record<string, unknown>;
312
+ schemaName: string;
313
+ } | undefined;
314
+ } | (({
315
+ type: "tag";
316
+ tag: string;
317
+ attributes?: Record<string, string> | undefined;
318
+ font?: {
319
+ bold?: boolean | undefined;
320
+ italics?: boolean | undefined;
321
+ underline?: boolean | undefined;
322
+ color?: string | undefined;
323
+ size?: string | undefined;
324
+ fontFamily?: string | undefined;
325
+ } | undefined;
326
+ formattingOptions?: {
327
+ alignment: "left" | "center" | "right" | "justify";
328
+ } | undefined;
329
+ } | {
330
+ type: "link-to-matrix-asset";
331
+ matrixDomain: string;
332
+ matrixAssetId: string;
333
+ target: "_blank" | "_self" | "_parent" | "_top";
334
+ matrixIdentifier?: string | undefined;
335
+ formattingOptions?: {
336
+ alignment: "left" | "center" | "right" | "justify";
337
+ } | undefined;
338
+ }) & {
339
+ children: (LayoutVariationNode | ({
340
+ value: string;
341
+ type: "text";
342
+ } | {
343
+ type: "matrix-image";
344
+ matrixDomain: string;
345
+ matrixAssetId: string;
346
+ matrixIdentifier?: string | undefined;
347
+ formattingOptions?: {
348
+ alignment: "left" | "center" | "right" | "justify";
349
+ } | undefined;
350
+ } | {
351
+ type: "component";
352
+ componentId: string;
353
+ componentSet: string;
354
+ contentItem?: {
355
+ id: string;
356
+ } | {
357
+ content: Record<string, unknown>;
358
+ schemaName: string;
359
+ } | undefined;
360
+ } | (({
361
+ type: "tag";
362
+ tag: string;
363
+ attributes?: Record<string, string> | undefined;
364
+ font?: {
365
+ bold?: boolean | undefined;
366
+ italics?: boolean | undefined;
367
+ underline?: boolean | undefined;
368
+ color?: string | undefined;
369
+ size?: string | undefined;
370
+ fontFamily?: string | undefined;
371
+ } | undefined;
372
+ formattingOptions?: {
373
+ alignment: "left" | "center" | "right" | "justify";
374
+ } | undefined;
375
+ } | {
376
+ type: "link-to-matrix-asset";
377
+ matrixDomain: string;
378
+ matrixAssetId: string;
379
+ target: "_blank" | "_self" | "_parent" | "_top";
380
+ matrixIdentifier?: string | undefined;
381
+ formattingOptions?: {
382
+ alignment: "left" | "center" | "right" | "justify";
383
+ } | undefined;
384
+ }) & any)))[];
385
+ })))[];
386
+ }, {
387
+ main: ({
388
+ value: string;
389
+ type: "text";
390
+ } | {
391
+ type: "tag";
392
+ tag: string;
393
+ attributes?: Record<string, string> | undefined;
394
+ font?: {
395
+ bold?: boolean | undefined;
396
+ italics?: boolean | undefined;
397
+ underline?: boolean | undefined;
398
+ color?: string | undefined;
399
+ size?: string | undefined;
400
+ fontFamily?: string | undefined;
401
+ } | undefined;
402
+ formattingOptions?: {
403
+ alignment: "left" | "center" | "right" | "justify";
404
+ } | undefined;
405
+ } | {
406
+ type: "link-to-matrix-asset";
407
+ matrixDomain: string;
408
+ matrixAssetId: string;
409
+ target: "_blank" | "_self" | "_parent" | "_top";
410
+ matrixIdentifier?: string | undefined;
411
+ formattingOptions?: {
412
+ alignment: "left" | "center" | "right" | "justify";
413
+ } | undefined;
414
+ } | {
415
+ type: "matrix-image";
416
+ matrixDomain: string;
417
+ matrixAssetId: string;
418
+ matrixIdentifier?: string | undefined;
419
+ formattingOptions?: {
420
+ alignment: "left" | "center" | "right" | "justify";
421
+ } | undefined;
422
+ } | {
423
+ type: "component";
424
+ componentId: string;
425
+ componentSet: string;
426
+ contentItem?: {
427
+ id: string;
428
+ } | {
429
+ content: Record<string, unknown>;
430
+ schemaName: string;
431
+ } | undefined;
432
+ } | {
433
+ type: "variation";
434
+ default: {};
435
+ })[];
436
+ }>;
437
+ }, "strip", z.ZodTypeAny, {
438
+ content: {
439
+ main: (LayoutVariationNode | ({
440
+ value: string;
441
+ type: "text";
442
+ } | {
443
+ type: "matrix-image";
444
+ matrixDomain: string;
445
+ matrixAssetId: string;
446
+ matrixIdentifier?: string | undefined;
447
+ formattingOptions?: {
448
+ alignment: "left" | "center" | "right" | "justify";
449
+ } | undefined;
450
+ } | {
451
+ type: "component";
452
+ componentId: string;
453
+ componentSet: string;
454
+ contentItem?: {
455
+ id: string;
456
+ } | {
457
+ content: Record<string, unknown>;
458
+ schemaName: string;
459
+ } | undefined;
460
+ } | (({
461
+ type: "tag";
462
+ tag: string;
463
+ attributes?: Record<string, string> | undefined;
464
+ font?: {
465
+ bold?: boolean | undefined;
466
+ italics?: boolean | undefined;
467
+ underline?: boolean | undefined;
468
+ color?: string | undefined;
469
+ size?: string | undefined;
470
+ fontFamily?: string | undefined;
471
+ } | undefined;
472
+ formattingOptions?: {
473
+ alignment: "left" | "center" | "right" | "justify";
474
+ } | undefined;
475
+ } | {
476
+ type: "link-to-matrix-asset";
477
+ matrixDomain: string;
478
+ matrixAssetId: string;
479
+ target: "_blank" | "_self" | "_parent" | "_top";
480
+ matrixIdentifier?: string | undefined;
481
+ formattingOptions?: {
482
+ alignment: "left" | "center" | "right" | "justify";
483
+ } | undefined;
484
+ }) & {
485
+ children: (LayoutVariationNode | ({
486
+ value: string;
487
+ type: "text";
488
+ } | {
489
+ type: "matrix-image";
490
+ matrixDomain: string;
491
+ matrixAssetId: string;
492
+ matrixIdentifier?: string | undefined;
493
+ formattingOptions?: {
494
+ alignment: "left" | "center" | "right" | "justify";
495
+ } | undefined;
496
+ } | {
497
+ type: "component";
498
+ componentId: string;
499
+ componentSet: string;
500
+ contentItem?: {
501
+ id: string;
502
+ } | {
503
+ content: Record<string, unknown>;
504
+ schemaName: string;
505
+ } | undefined;
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: "link-to-matrix-asset";
523
+ matrixDomain: string;
524
+ matrixAssetId: string;
525
+ target: "_blank" | "_self" | "_parent" | "_top";
526
+ matrixIdentifier?: string | undefined;
527
+ formattingOptions?: {
528
+ alignment: "left" | "center" | "right" | "justify";
529
+ } | undefined;
530
+ }) & any)))[];
531
+ })))[];
532
+ };
533
+ name: "layout-raw";
534
+ }, {
535
+ content: {
536
+ main: ({
537
+ value: string;
538
+ type: "text";
539
+ } | {
540
+ type: "tag";
541
+ tag: string;
542
+ attributes?: Record<string, string> | undefined;
543
+ font?: {
544
+ bold?: boolean | undefined;
545
+ italics?: boolean | undefined;
546
+ underline?: boolean | undefined;
547
+ color?: string | undefined;
548
+ size?: string | undefined;
549
+ fontFamily?: string | undefined;
550
+ } | undefined;
551
+ formattingOptions?: {
552
+ alignment: "left" | "center" | "right" | "justify";
553
+ } | undefined;
554
+ } | {
555
+ type: "link-to-matrix-asset";
556
+ matrixDomain: string;
557
+ matrixAssetId: string;
558
+ target: "_blank" | "_self" | "_parent" | "_top";
559
+ matrixIdentifier?: string | undefined;
560
+ formattingOptions?: {
561
+ alignment: "left" | "center" | "right" | "justify";
562
+ } | undefined;
563
+ } | {
564
+ type: "matrix-image";
565
+ matrixDomain: string;
566
+ matrixAssetId: string;
567
+ matrixIdentifier?: string | undefined;
568
+ formattingOptions?: {
569
+ alignment: "left" | "center" | "right" | "justify";
570
+ } | undefined;
571
+ } | {
572
+ type: "component";
573
+ componentId: string;
574
+ componentSet: string;
575
+ contentItem?: {
576
+ id: string;
577
+ } | {
578
+ content: Record<string, unknown>;
579
+ schemaName: string;
580
+ } | undefined;
581
+ } | {
582
+ type: "variation";
583
+ default: {};
584
+ })[];
585
+ };
586
+ name: "layout-raw";
587
+ }>, z.ZodObject<{
9
588
  name: z.ZodLiteral<"single-column">;
10
589
  content: z.ZodObject<{
11
590
  main: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodType<{
@@ -1733,6 +2312,103 @@ declare const PageContentsResolved: z.ZodObject<{
1733
2312
  id: string;
1734
2313
  name: string;
1735
2314
  layouts: ({
2315
+ content: {
2316
+ main: (LayoutVariationNode | ({
2317
+ value: string;
2318
+ type: "text";
2319
+ } | {
2320
+ type: "matrix-image";
2321
+ matrixDomain: string;
2322
+ matrixAssetId: string;
2323
+ matrixIdentifier?: string | undefined;
2324
+ formattingOptions?: {
2325
+ alignment: "left" | "center" | "right" | "justify";
2326
+ } | undefined;
2327
+ } | {
2328
+ type: "component";
2329
+ componentId: string;
2330
+ componentSet: string;
2331
+ contentItem?: {
2332
+ id: string;
2333
+ } | {
2334
+ content: Record<string, unknown>;
2335
+ schemaName: string;
2336
+ } | undefined;
2337
+ } | (({
2338
+ type: "tag";
2339
+ tag: string;
2340
+ attributes?: Record<string, string> | undefined;
2341
+ font?: {
2342
+ bold?: boolean | undefined;
2343
+ italics?: boolean | undefined;
2344
+ underline?: boolean | undefined;
2345
+ color?: string | undefined;
2346
+ size?: string | undefined;
2347
+ fontFamily?: string | undefined;
2348
+ } | undefined;
2349
+ formattingOptions?: {
2350
+ alignment: "left" | "center" | "right" | "justify";
2351
+ } | undefined;
2352
+ } | {
2353
+ type: "link-to-matrix-asset";
2354
+ matrixDomain: string;
2355
+ matrixAssetId: string;
2356
+ target: "_blank" | "_self" | "_parent" | "_top";
2357
+ matrixIdentifier?: string | undefined;
2358
+ formattingOptions?: {
2359
+ alignment: "left" | "center" | "right" | "justify";
2360
+ } | undefined;
2361
+ }) & {
2362
+ children: (LayoutVariationNode | ({
2363
+ value: string;
2364
+ type: "text";
2365
+ } | {
2366
+ type: "matrix-image";
2367
+ matrixDomain: string;
2368
+ matrixAssetId: string;
2369
+ matrixIdentifier?: string | undefined;
2370
+ formattingOptions?: {
2371
+ alignment: "left" | "center" | "right" | "justify";
2372
+ } | undefined;
2373
+ } | {
2374
+ type: "component";
2375
+ componentId: string;
2376
+ componentSet: string;
2377
+ contentItem?: {
2378
+ id: string;
2379
+ } | {
2380
+ content: Record<string, unknown>;
2381
+ schemaName: string;
2382
+ } | undefined;
2383
+ } | (({
2384
+ type: "tag";
2385
+ tag: string;
2386
+ attributes?: Record<string, string> | undefined;
2387
+ font?: {
2388
+ bold?: boolean | undefined;
2389
+ italics?: boolean | undefined;
2390
+ underline?: boolean | undefined;
2391
+ color?: string | undefined;
2392
+ size?: string | undefined;
2393
+ fontFamily?: string | undefined;
2394
+ } | undefined;
2395
+ formattingOptions?: {
2396
+ alignment: "left" | "center" | "right" | "justify";
2397
+ } | undefined;
2398
+ } | {
2399
+ type: "link-to-matrix-asset";
2400
+ matrixDomain: string;
2401
+ matrixAssetId: string;
2402
+ target: "_blank" | "_self" | "_parent" | "_top";
2403
+ matrixIdentifier?: string | undefined;
2404
+ formattingOptions?: {
2405
+ alignment: "left" | "center" | "right" | "justify";
2406
+ } | undefined;
2407
+ }) & any)))[];
2408
+ })))[];
2409
+ };
2410
+ name: "layout-raw";
2411
+ } | {
1736
2412
  content: {
1737
2413
  main: (LayoutVariationNode | ({
1738
2414
  value: string;
@@ -2024,6 +2700,59 @@ declare const PageContentsResolved: z.ZodObject<{
2024
2700
  id: string;
2025
2701
  name: string;
2026
2702
  layouts: ({
2703
+ content: {
2704
+ main: ({
2705
+ value: string;
2706
+ type: "text";
2707
+ } | {
2708
+ type: "tag";
2709
+ tag: string;
2710
+ attributes?: Record<string, string> | undefined;
2711
+ font?: {
2712
+ bold?: boolean | undefined;
2713
+ italics?: boolean | undefined;
2714
+ underline?: boolean | undefined;
2715
+ color?: string | undefined;
2716
+ size?: string | undefined;
2717
+ fontFamily?: string | undefined;
2718
+ } | undefined;
2719
+ formattingOptions?: {
2720
+ alignment: "left" | "center" | "right" | "justify";
2721
+ } | undefined;
2722
+ } | {
2723
+ type: "link-to-matrix-asset";
2724
+ matrixDomain: string;
2725
+ matrixAssetId: string;
2726
+ target: "_blank" | "_self" | "_parent" | "_top";
2727
+ matrixIdentifier?: string | undefined;
2728
+ formattingOptions?: {
2729
+ alignment: "left" | "center" | "right" | "justify";
2730
+ } | undefined;
2731
+ } | {
2732
+ type: "matrix-image";
2733
+ matrixDomain: string;
2734
+ matrixAssetId: string;
2735
+ matrixIdentifier?: string | undefined;
2736
+ formattingOptions?: {
2737
+ alignment: "left" | "center" | "right" | "justify";
2738
+ } | undefined;
2739
+ } | {
2740
+ type: "component";
2741
+ componentId: string;
2742
+ componentSet: string;
2743
+ contentItem?: {
2744
+ id: string;
2745
+ } | {
2746
+ content: Record<string, unknown>;
2747
+ schemaName: string;
2748
+ } | undefined;
2749
+ } | {
2750
+ type: "variation";
2751
+ default: {};
2752
+ })[];
2753
+ };
2754
+ name: "layout-raw";
2755
+ } | {
2027
2756
  content: {
2028
2757
  main: ({
2029
2758
  value: string;
@@ -2181,6 +2910,17 @@ declare const PageContentsResolved: z.ZodObject<{
2181
2910
  })[];
2182
2911
  }>;
2183
2912
  type MockPageContentsResolved = z.infer<typeof PageContentsResolved>;
2913
+ /**
2914
+ * Use this builder for creating mock raw layouts for tests.
2915
+ * @export
2916
+ * @class PageRawLayoutBuilder
2917
+ */
2918
+ export declare class PageRawLayoutBuilder {
2919
+ private layout;
2920
+ addNode(node: LayoutContentNodes): PageRawLayoutBuilder;
2921
+ reset(): PageRawLayoutBuilder;
2922
+ build(): PageLayout;
2923
+ }
2184
2924
  /**
2185
2925
  * Use this builder for creating mock single column layouts for tests.
2186
2926
  * @export
@@ -2204,7 +2944,7 @@ export declare class PageContentResolvedMockBuilder {
2204
2944
  setId(id: string): this;
2205
2945
  setName(name: string): PageContentResolvedMockBuilder;
2206
2946
  setLayouts(layouts: PageLayout[]): PageContentResolvedMockBuilder;
2207
- createLayout(): PageSingleColumLayoutBuilder;
2947
+ createLayout(): PageRawLayoutBuilder;
2208
2948
  addLayout(layout: PageLayout): PageContentResolvedMockBuilder;
2209
2949
  nodeFactory(): MockNodeFactory;
2210
2950
  reset(): PageContentResolvedMockBuilder;