@squiz/dx-page-contents-lib 1.69.0 → 1.70.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,18 +9,27 @@ export declare const RawLayout: z.ZodObject<{
9
9
  type: "matrix-image";
10
10
  matrixDomain: string;
11
11
  matrixAssetId: string;
12
- matrixIdentifier?: string | undefined;
12
+ attributes?: (Record<string, string> & {
13
+ src?: undefined;
14
+ }) | undefined;
13
15
  formattingOptions?: {
14
16
  alignment: "left" | "center" | "right" | "justify";
15
17
  } | undefined;
18
+ matrixIdentifier?: string | undefined;
16
19
  } | {
17
20
  type: "dam-image";
18
21
  damSystemType: "bynder";
19
22
  damSystemIdentifier: string;
20
23
  damObjectId: string;
21
- damAdditional?: {
24
+ attributes?: (Record<string, string> & {
25
+ src?: undefined;
26
+ }) | undefined;
27
+ formattingOptions?: {
22
28
  alignment: "left" | "center" | "right" | "justify";
23
29
  } | undefined;
30
+ damAdditional?: {
31
+ variant?: string | undefined;
32
+ } | undefined;
24
33
  } | {
25
34
  type: "component";
26
35
  componentId: string;
@@ -54,68 +63,16 @@ export declare const RawLayout: z.ZodObject<{
54
63
  matrixDomain: string;
55
64
  matrixAssetId: string;
56
65
  target: "_blank" | "_self" | "_parent" | "_top";
57
- matrixIdentifier?: string | undefined;
66
+ attributes?: (Record<string, string> & {
67
+ target?: undefined;
68
+ href?: undefined;
69
+ }) | undefined;
58
70
  formattingOptions?: {
59
71
  alignment: "left" | "center" | "right" | "justify";
60
72
  } | undefined;
73
+ matrixIdentifier?: string | undefined;
61
74
  }) & {
62
- children: (import("../layout-content").LayoutVariationNode | ({
63
- value: string;
64
- type: "text";
65
- } | {
66
- type: "matrix-image";
67
- matrixDomain: string;
68
- matrixAssetId: string;
69
- matrixIdentifier?: string | undefined;
70
- formattingOptions?: {
71
- alignment: "left" | "center" | "right" | "justify";
72
- } | undefined;
73
- } | {
74
- type: "dam-image";
75
- damSystemType: "bynder";
76
- damSystemIdentifier: string;
77
- damObjectId: string;
78
- damAdditional?: {
79
- alignment: "left" | "center" | "right" | "justify";
80
- } | undefined;
81
- } | {
82
- type: "component";
83
- componentId: string;
84
- componentSet: string;
85
- componentType?: "server" | "edge" | undefined;
86
- contentItem?: {
87
- id: string;
88
- } | {
89
- content: Record<string, unknown>;
90
- schemaName: string;
91
- } | undefined;
92
- } | (({
93
- type: "tag";
94
- tag: string;
95
- attributes?: Record<string, string> | undefined;
96
- font?: {
97
- bold?: boolean | undefined;
98
- italics?: boolean | undefined;
99
- underline?: boolean | undefined;
100
- color?: string | undefined;
101
- size?: string | undefined;
102
- fontFamily?: string | undefined;
103
- } | undefined;
104
- formattingOptions?: {
105
- alignment: "left" | "center" | "right" | "justify";
106
- } | undefined;
107
- } | {
108
- type: "fragment";
109
- } | {
110
- type: "link-to-matrix-asset";
111
- matrixDomain: string;
112
- matrixAssetId: string;
113
- target: "_blank" | "_self" | "_parent" | "_top";
114
- matrixIdentifier?: string | undefined;
115
- formattingOptions?: {
116
- alignment: "left" | "center" | "right" | "justify";
117
- } | undefined;
118
- }) & any)))[];
75
+ children: import("../layout-content").LayoutContentNodes[];
119
76
  }), z.ZodTypeDef, {
120
77
  value: string;
121
78
  type: "text";
@@ -141,26 +98,39 @@ export declare const RawLayout: z.ZodObject<{
141
98
  matrixDomain: string;
142
99
  matrixAssetId: string;
143
100
  target: "_blank" | "_self" | "_parent" | "_top";
144
- matrixIdentifier?: string | undefined;
101
+ attributes?: (Record<string, string> & {
102
+ target?: undefined;
103
+ href?: undefined;
104
+ }) | undefined;
145
105
  formattingOptions?: {
146
106
  alignment: "left" | "center" | "right" | "justify";
147
107
  } | undefined;
108
+ matrixIdentifier?: string | undefined;
148
109
  } | {
149
110
  type: "matrix-image";
150
111
  matrixDomain: string;
151
112
  matrixAssetId: string;
152
- matrixIdentifier?: string | undefined;
113
+ attributes?: (Record<string, string> & {
114
+ src?: undefined;
115
+ }) | undefined;
153
116
  formattingOptions?: {
154
117
  alignment: "left" | "center" | "right" | "justify";
155
118
  } | undefined;
119
+ matrixIdentifier?: string | undefined;
156
120
  } | {
157
121
  type: "dam-image";
158
122
  damSystemType: "bynder";
159
123
  damSystemIdentifier: string;
160
124
  damObjectId: string;
161
- damAdditional?: {
125
+ attributes?: (Record<string, string> & {
126
+ src?: undefined;
127
+ }) | undefined;
128
+ formattingOptions?: {
162
129
  alignment: "left" | "center" | "right" | "justify";
163
130
  } | undefined;
131
+ damAdditional?: {
132
+ variant?: string | undefined;
133
+ } | undefined;
164
134
  } | {
165
135
  type: "component";
166
136
  componentId: string;
@@ -182,18 +152,27 @@ export declare const RawLayout: z.ZodObject<{
182
152
  type: "matrix-image";
183
153
  matrixDomain: string;
184
154
  matrixAssetId: string;
185
- matrixIdentifier?: string | undefined;
155
+ attributes?: (Record<string, string> & {
156
+ src?: undefined;
157
+ }) | undefined;
186
158
  formattingOptions?: {
187
159
  alignment: "left" | "center" | "right" | "justify";
188
160
  } | undefined;
161
+ matrixIdentifier?: string | undefined;
189
162
  } | {
190
163
  type: "dam-image";
191
164
  damSystemType: "bynder";
192
165
  damSystemIdentifier: string;
193
166
  damObjectId: string;
194
- damAdditional?: {
167
+ attributes?: (Record<string, string> & {
168
+ src?: undefined;
169
+ }) | undefined;
170
+ formattingOptions?: {
195
171
  alignment: "left" | "center" | "right" | "justify";
196
172
  } | undefined;
173
+ damAdditional?: {
174
+ variant?: string | undefined;
175
+ } | undefined;
197
176
  } | {
198
177
  type: "component";
199
178
  componentId: string;
@@ -227,68 +206,16 @@ export declare const RawLayout: z.ZodObject<{
227
206
  matrixDomain: string;
228
207
  matrixAssetId: string;
229
208
  target: "_blank" | "_self" | "_parent" | "_top";
230
- matrixIdentifier?: string | undefined;
209
+ attributes?: (Record<string, string> & {
210
+ target?: undefined;
211
+ href?: undefined;
212
+ }) | undefined;
231
213
  formattingOptions?: {
232
214
  alignment: "left" | "center" | "right" | "justify";
233
215
  } | undefined;
216
+ matrixIdentifier?: string | undefined;
234
217
  }) & {
235
- children: (import("../layout-content").LayoutVariationNode | ({
236
- value: string;
237
- type: "text";
238
- } | {
239
- type: "matrix-image";
240
- matrixDomain: string;
241
- matrixAssetId: string;
242
- matrixIdentifier?: string | undefined;
243
- formattingOptions?: {
244
- alignment: "left" | "center" | "right" | "justify";
245
- } | undefined;
246
- } | {
247
- type: "dam-image";
248
- damSystemType: "bynder";
249
- damSystemIdentifier: string;
250
- damObjectId: string;
251
- damAdditional?: {
252
- alignment: "left" | "center" | "right" | "justify";
253
- } | undefined;
254
- } | {
255
- type: "component";
256
- componentId: string;
257
- componentSet: string;
258
- componentType?: "server" | "edge" | undefined;
259
- contentItem?: {
260
- id: string;
261
- } | {
262
- content: Record<string, unknown>;
263
- schemaName: string;
264
- } | undefined;
265
- } | (({
266
- type: "tag";
267
- tag: string;
268
- attributes?: Record<string, string> | undefined;
269
- font?: {
270
- bold?: boolean | undefined;
271
- italics?: boolean | undefined;
272
- underline?: boolean | undefined;
273
- color?: string | undefined;
274
- size?: string | undefined;
275
- fontFamily?: string | undefined;
276
- } | undefined;
277
- formattingOptions?: {
278
- alignment: "left" | "center" | "right" | "justify";
279
- } | undefined;
280
- } | {
281
- type: "fragment";
282
- } | {
283
- type: "link-to-matrix-asset";
284
- matrixDomain: string;
285
- matrixAssetId: string;
286
- target: "_blank" | "_self" | "_parent" | "_top";
287
- matrixIdentifier?: string | undefined;
288
- formattingOptions?: {
289
- alignment: "left" | "center" | "right" | "justify";
290
- } | undefined;
291
- }) & any)))[];
218
+ children: import("../layout-content").LayoutContentNodes[];
292
219
  })))[], ({
293
220
  value: string;
294
221
  type: "text";
@@ -314,26 +241,39 @@ export declare const RawLayout: z.ZodObject<{
314
241
  matrixDomain: string;
315
242
  matrixAssetId: string;
316
243
  target: "_blank" | "_self" | "_parent" | "_top";
317
- matrixIdentifier?: string | undefined;
244
+ attributes?: (Record<string, string> & {
245
+ target?: undefined;
246
+ href?: undefined;
247
+ }) | undefined;
318
248
  formattingOptions?: {
319
249
  alignment: "left" | "center" | "right" | "justify";
320
250
  } | undefined;
251
+ matrixIdentifier?: string | undefined;
321
252
  } | {
322
253
  type: "matrix-image";
323
254
  matrixDomain: string;
324
255
  matrixAssetId: string;
325
- matrixIdentifier?: string | undefined;
256
+ attributes?: (Record<string, string> & {
257
+ src?: undefined;
258
+ }) | undefined;
326
259
  formattingOptions?: {
327
260
  alignment: "left" | "center" | "right" | "justify";
328
261
  } | undefined;
262
+ matrixIdentifier?: string | undefined;
329
263
  } | {
330
264
  type: "dam-image";
331
265
  damSystemType: "bynder";
332
266
  damSystemIdentifier: string;
333
267
  damObjectId: string;
334
- damAdditional?: {
268
+ attributes?: (Record<string, string> & {
269
+ src?: undefined;
270
+ }) | undefined;
271
+ formattingOptions?: {
335
272
  alignment: "left" | "center" | "right" | "justify";
336
273
  } | undefined;
274
+ damAdditional?: {
275
+ variant?: string | undefined;
276
+ } | undefined;
337
277
  } | {
338
278
  type: "component";
339
279
  componentId: string;
@@ -357,18 +297,27 @@ export declare const RawLayout: z.ZodObject<{
357
297
  type: "matrix-image";
358
298
  matrixDomain: string;
359
299
  matrixAssetId: string;
360
- matrixIdentifier?: string | undefined;
300
+ attributes?: (Record<string, string> & {
301
+ src?: undefined;
302
+ }) | undefined;
361
303
  formattingOptions?: {
362
304
  alignment: "left" | "center" | "right" | "justify";
363
305
  } | undefined;
306
+ matrixIdentifier?: string | undefined;
364
307
  } | {
365
308
  type: "dam-image";
366
309
  damSystemType: "bynder";
367
310
  damSystemIdentifier: string;
368
311
  damObjectId: string;
369
- damAdditional?: {
312
+ attributes?: (Record<string, string> & {
313
+ src?: undefined;
314
+ }) | undefined;
315
+ formattingOptions?: {
370
316
  alignment: "left" | "center" | "right" | "justify";
371
317
  } | undefined;
318
+ damAdditional?: {
319
+ variant?: string | undefined;
320
+ } | undefined;
372
321
  } | {
373
322
  type: "component";
374
323
  componentId: string;
@@ -402,68 +351,16 @@ export declare const RawLayout: z.ZodObject<{
402
351
  matrixDomain: string;
403
352
  matrixAssetId: string;
404
353
  target: "_blank" | "_self" | "_parent" | "_top";
405
- matrixIdentifier?: string | undefined;
354
+ attributes?: (Record<string, string> & {
355
+ target?: undefined;
356
+ href?: undefined;
357
+ }) | undefined;
406
358
  formattingOptions?: {
407
359
  alignment: "left" | "center" | "right" | "justify";
408
360
  } | undefined;
361
+ matrixIdentifier?: string | undefined;
409
362
  }) & {
410
- children: (import("../layout-content").LayoutVariationNode | ({
411
- value: string;
412
- type: "text";
413
- } | {
414
- type: "matrix-image";
415
- matrixDomain: string;
416
- matrixAssetId: string;
417
- matrixIdentifier?: string | undefined;
418
- formattingOptions?: {
419
- alignment: "left" | "center" | "right" | "justify";
420
- } | undefined;
421
- } | {
422
- type: "dam-image";
423
- damSystemType: "bynder";
424
- damSystemIdentifier: string;
425
- damObjectId: string;
426
- damAdditional?: {
427
- alignment: "left" | "center" | "right" | "justify";
428
- } | undefined;
429
- } | {
430
- type: "component";
431
- componentId: string;
432
- componentSet: string;
433
- componentType?: "server" | "edge" | undefined;
434
- contentItem?: {
435
- id: string;
436
- } | {
437
- content: Record<string, unknown>;
438
- schemaName: string;
439
- } | undefined;
440
- } | (({
441
- type: "tag";
442
- tag: string;
443
- attributes?: Record<string, string> | undefined;
444
- font?: {
445
- bold?: boolean | undefined;
446
- italics?: boolean | undefined;
447
- underline?: boolean | undefined;
448
- color?: string | undefined;
449
- size?: string | undefined;
450
- fontFamily?: string | undefined;
451
- } | undefined;
452
- formattingOptions?: {
453
- alignment: "left" | "center" | "right" | "justify";
454
- } | undefined;
455
- } | {
456
- type: "fragment";
457
- } | {
458
- type: "link-to-matrix-asset";
459
- matrixDomain: string;
460
- matrixAssetId: string;
461
- target: "_blank" | "_self" | "_parent" | "_top";
462
- matrixIdentifier?: string | undefined;
463
- formattingOptions?: {
464
- alignment: "left" | "center" | "right" | "justify";
465
- } | undefined;
466
- }) & any)))[];
363
+ children: import("../layout-content").LayoutContentNodes[];
467
364
  })))[];
468
365
  }, {
469
366
  main: ({
@@ -491,26 +388,39 @@ export declare const RawLayout: z.ZodObject<{
491
388
  matrixDomain: string;
492
389
  matrixAssetId: string;
493
390
  target: "_blank" | "_self" | "_parent" | "_top";
494
- matrixIdentifier?: string | undefined;
391
+ attributes?: (Record<string, string> & {
392
+ target?: undefined;
393
+ href?: undefined;
394
+ }) | undefined;
495
395
  formattingOptions?: {
496
396
  alignment: "left" | "center" | "right" | "justify";
497
397
  } | undefined;
398
+ matrixIdentifier?: string | undefined;
498
399
  } | {
499
400
  type: "matrix-image";
500
401
  matrixDomain: string;
501
402
  matrixAssetId: string;
502
- matrixIdentifier?: string | undefined;
403
+ attributes?: (Record<string, string> & {
404
+ src?: undefined;
405
+ }) | undefined;
503
406
  formattingOptions?: {
504
407
  alignment: "left" | "center" | "right" | "justify";
505
408
  } | undefined;
409
+ matrixIdentifier?: string | undefined;
506
410
  } | {
507
411
  type: "dam-image";
508
412
  damSystemType: "bynder";
509
413
  damSystemIdentifier: string;
510
414
  damObjectId: string;
511
- damAdditional?: {
415
+ attributes?: (Record<string, string> & {
416
+ src?: undefined;
417
+ }) | undefined;
418
+ formattingOptions?: {
512
419
  alignment: "left" | "center" | "right" | "justify";
513
420
  } | undefined;
421
+ damAdditional?: {
422
+ variant?: string | undefined;
423
+ } | undefined;
514
424
  } | {
515
425
  type: "component";
516
426
  componentId: string;
@@ -536,18 +446,27 @@ export declare const RawLayout: z.ZodObject<{
536
446
  type: "matrix-image";
537
447
  matrixDomain: string;
538
448
  matrixAssetId: string;
539
- matrixIdentifier?: string | undefined;
449
+ attributes?: (Record<string, string> & {
450
+ src?: undefined;
451
+ }) | undefined;
540
452
  formattingOptions?: {
541
453
  alignment: "left" | "center" | "right" | "justify";
542
454
  } | undefined;
455
+ matrixIdentifier?: string | undefined;
543
456
  } | {
544
457
  type: "dam-image";
545
458
  damSystemType: "bynder";
546
459
  damSystemIdentifier: string;
547
460
  damObjectId: string;
548
- damAdditional?: {
461
+ attributes?: (Record<string, string> & {
462
+ src?: undefined;
463
+ }) | undefined;
464
+ formattingOptions?: {
549
465
  alignment: "left" | "center" | "right" | "justify";
550
466
  } | undefined;
467
+ damAdditional?: {
468
+ variant?: string | undefined;
469
+ } | undefined;
551
470
  } | {
552
471
  type: "component";
553
472
  componentId: string;
@@ -581,68 +500,16 @@ export declare const RawLayout: z.ZodObject<{
581
500
  matrixDomain: string;
582
501
  matrixAssetId: string;
583
502
  target: "_blank" | "_self" | "_parent" | "_top";
584
- matrixIdentifier?: string | undefined;
503
+ attributes?: (Record<string, string> & {
504
+ target?: undefined;
505
+ href?: undefined;
506
+ }) | undefined;
585
507
  formattingOptions?: {
586
508
  alignment: "left" | "center" | "right" | "justify";
587
509
  } | undefined;
510
+ matrixIdentifier?: string | undefined;
588
511
  }) & {
589
- children: (import("../layout-content").LayoutVariationNode | ({
590
- value: string;
591
- type: "text";
592
- } | {
593
- type: "matrix-image";
594
- matrixDomain: string;
595
- matrixAssetId: string;
596
- matrixIdentifier?: string | undefined;
597
- formattingOptions?: {
598
- alignment: "left" | "center" | "right" | "justify";
599
- } | undefined;
600
- } | {
601
- type: "dam-image";
602
- damSystemType: "bynder";
603
- damSystemIdentifier: string;
604
- damObjectId: string;
605
- damAdditional?: {
606
- alignment: "left" | "center" | "right" | "justify";
607
- } | undefined;
608
- } | {
609
- type: "component";
610
- componentId: string;
611
- componentSet: string;
612
- componentType?: "server" | "edge" | undefined;
613
- contentItem?: {
614
- id: string;
615
- } | {
616
- content: Record<string, unknown>;
617
- schemaName: string;
618
- } | undefined;
619
- } | (({
620
- type: "tag";
621
- tag: string;
622
- attributes?: Record<string, string> | undefined;
623
- font?: {
624
- bold?: boolean | undefined;
625
- italics?: boolean | undefined;
626
- underline?: boolean | undefined;
627
- color?: string | undefined;
628
- size?: string | undefined;
629
- fontFamily?: string | undefined;
630
- } | undefined;
631
- formattingOptions?: {
632
- alignment: "left" | "center" | "right" | "justify";
633
- } | undefined;
634
- } | {
635
- type: "fragment";
636
- } | {
637
- type: "link-to-matrix-asset";
638
- matrixDomain: string;
639
- matrixAssetId: string;
640
- target: "_blank" | "_self" | "_parent" | "_top";
641
- matrixIdentifier?: string | undefined;
642
- formattingOptions?: {
643
- alignment: "left" | "center" | "right" | "justify";
644
- } | undefined;
645
- }) & any)))[];
512
+ children: import("../layout-content").LayoutContentNodes[];
646
513
  })))[];
647
514
  };
648
515
  name: "layout-raw";
@@ -673,26 +540,39 @@ export declare const RawLayout: z.ZodObject<{
673
540
  matrixDomain: string;
674
541
  matrixAssetId: string;
675
542
  target: "_blank" | "_self" | "_parent" | "_top";
676
- matrixIdentifier?: string | undefined;
543
+ attributes?: (Record<string, string> & {
544
+ target?: undefined;
545
+ href?: undefined;
546
+ }) | undefined;
677
547
  formattingOptions?: {
678
548
  alignment: "left" | "center" | "right" | "justify";
679
549
  } | undefined;
550
+ matrixIdentifier?: string | undefined;
680
551
  } | {
681
552
  type: "matrix-image";
682
553
  matrixDomain: string;
683
554
  matrixAssetId: string;
684
- matrixIdentifier?: string | undefined;
555
+ attributes?: (Record<string, string> & {
556
+ src?: undefined;
557
+ }) | undefined;
685
558
  formattingOptions?: {
686
559
  alignment: "left" | "center" | "right" | "justify";
687
560
  } | undefined;
561
+ matrixIdentifier?: string | undefined;
688
562
  } | {
689
563
  type: "dam-image";
690
564
  damSystemType: "bynder";
691
565
  damSystemIdentifier: string;
692
566
  damObjectId: string;
693
- damAdditional?: {
567
+ attributes?: (Record<string, string> & {
568
+ src?: undefined;
569
+ }) | undefined;
570
+ formattingOptions?: {
694
571
  alignment: "left" | "center" | "right" | "justify";
695
572
  } | undefined;
573
+ damAdditional?: {
574
+ variant?: string | undefined;
575
+ } | undefined;
696
576
  } | {
697
577
  type: "component";
698
578
  componentId: string;