@squiz/dx-page-contents-lib 1.68.1 → 1.70.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.
- package/lib/formatted-text.d.ts +63 -6
- package/lib/formatted-text.js +25 -1
- package/lib/formatted-text.js.map +1 -1
- package/lib/formatted-text.spec.d.ts +1 -0
- package/lib/formatted-text.spec.js +109 -0
- package/lib/formatted-text.spec.js.map +1 -0
- package/lib/layout-content.d.ts +98 -2
- package/lib/layout-content.js +12 -2
- package/lib/layout-content.js.map +1 -1
- package/lib/layouts/index.d.ts +624 -0
- package/lib/layouts/raw.layout.d.ts +156 -0
- package/lib/layouts/single-column.layout.d.ts +156 -0
- package/lib/layouts/two-column.layout.d.ts +312 -0
- package/lib/mocks/PageContentsHelpers.d.ts +780 -0
- package/lib/page-contents-lib.js +1 -33
- package/lib/page-contents-lib.js.map +1 -1
- package/package.json +2 -3
|
@@ -13,14 +13,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
13
13
|
formattingOptions?: {
|
|
14
14
|
alignment: "left" | "center" | "right" | "justify";
|
|
15
15
|
} | undefined;
|
|
16
|
+
attributes?: (Record<string, string> & {
|
|
17
|
+
src?: undefined;
|
|
18
|
+
}) | undefined;
|
|
16
19
|
} | {
|
|
17
20
|
type: "dam-image";
|
|
18
21
|
damSystemType: "bynder";
|
|
19
22
|
damSystemIdentifier: string;
|
|
20
23
|
damObjectId: string;
|
|
21
24
|
damAdditional?: {
|
|
25
|
+
variant?: string | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
formattingOptions?: {
|
|
22
28
|
alignment: "left" | "center" | "right" | "justify";
|
|
23
29
|
} | undefined;
|
|
30
|
+
attributes?: (Record<string, string> & {
|
|
31
|
+
src?: undefined;
|
|
32
|
+
}) | undefined;
|
|
24
33
|
} | {
|
|
25
34
|
type: "component";
|
|
26
35
|
componentId: string;
|
|
@@ -58,6 +67,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
58
67
|
formattingOptions?: {
|
|
59
68
|
alignment: "left" | "center" | "right" | "justify";
|
|
60
69
|
} | undefined;
|
|
70
|
+
attributes?: (Record<string, string> & {
|
|
71
|
+
href?: undefined;
|
|
72
|
+
target?: undefined;
|
|
73
|
+
}) | undefined;
|
|
61
74
|
}) & {
|
|
62
75
|
children: (import("../layout-content").LayoutVariationNode | ({
|
|
63
76
|
value: string;
|
|
@@ -70,14 +83,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
70
83
|
formattingOptions?: {
|
|
71
84
|
alignment: "left" | "center" | "right" | "justify";
|
|
72
85
|
} | undefined;
|
|
86
|
+
attributes?: (Record<string, string> & {
|
|
87
|
+
src?: undefined;
|
|
88
|
+
}) | undefined;
|
|
73
89
|
} | {
|
|
74
90
|
type: "dam-image";
|
|
75
91
|
damSystemType: "bynder";
|
|
76
92
|
damSystemIdentifier: string;
|
|
77
93
|
damObjectId: string;
|
|
78
94
|
damAdditional?: {
|
|
95
|
+
variant?: string | undefined;
|
|
96
|
+
} | undefined;
|
|
97
|
+
formattingOptions?: {
|
|
79
98
|
alignment: "left" | "center" | "right" | "justify";
|
|
80
99
|
} | undefined;
|
|
100
|
+
attributes?: (Record<string, string> & {
|
|
101
|
+
src?: undefined;
|
|
102
|
+
}) | undefined;
|
|
81
103
|
} | {
|
|
82
104
|
type: "component";
|
|
83
105
|
componentId: string;
|
|
@@ -115,6 +137,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
115
137
|
formattingOptions?: {
|
|
116
138
|
alignment: "left" | "center" | "right" | "justify";
|
|
117
139
|
} | undefined;
|
|
140
|
+
attributes?: (Record<string, string> & {
|
|
141
|
+
href?: undefined;
|
|
142
|
+
target?: undefined;
|
|
143
|
+
}) | undefined;
|
|
118
144
|
}) & any)))[];
|
|
119
145
|
}), z.ZodTypeDef, {
|
|
120
146
|
value: string;
|
|
@@ -145,6 +171,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
145
171
|
formattingOptions?: {
|
|
146
172
|
alignment: "left" | "center" | "right" | "justify";
|
|
147
173
|
} | undefined;
|
|
174
|
+
attributes?: (Record<string, string> & {
|
|
175
|
+
href?: undefined;
|
|
176
|
+
target?: undefined;
|
|
177
|
+
}) | undefined;
|
|
148
178
|
} | {
|
|
149
179
|
type: "matrix-image";
|
|
150
180
|
matrixDomain: string;
|
|
@@ -153,14 +183,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
153
183
|
formattingOptions?: {
|
|
154
184
|
alignment: "left" | "center" | "right" | "justify";
|
|
155
185
|
} | undefined;
|
|
186
|
+
attributes?: (Record<string, string> & {
|
|
187
|
+
src?: undefined;
|
|
188
|
+
}) | undefined;
|
|
156
189
|
} | {
|
|
157
190
|
type: "dam-image";
|
|
158
191
|
damSystemType: "bynder";
|
|
159
192
|
damSystemIdentifier: string;
|
|
160
193
|
damObjectId: string;
|
|
161
194
|
damAdditional?: {
|
|
195
|
+
variant?: string | undefined;
|
|
196
|
+
} | undefined;
|
|
197
|
+
formattingOptions?: {
|
|
162
198
|
alignment: "left" | "center" | "right" | "justify";
|
|
163
199
|
} | undefined;
|
|
200
|
+
attributes?: (Record<string, string> & {
|
|
201
|
+
src?: undefined;
|
|
202
|
+
}) | undefined;
|
|
164
203
|
} | {
|
|
165
204
|
type: "component";
|
|
166
205
|
componentId: string;
|
|
@@ -186,14 +225,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
186
225
|
formattingOptions?: {
|
|
187
226
|
alignment: "left" | "center" | "right" | "justify";
|
|
188
227
|
} | undefined;
|
|
228
|
+
attributes?: (Record<string, string> & {
|
|
229
|
+
src?: undefined;
|
|
230
|
+
}) | undefined;
|
|
189
231
|
} | {
|
|
190
232
|
type: "dam-image";
|
|
191
233
|
damSystemType: "bynder";
|
|
192
234
|
damSystemIdentifier: string;
|
|
193
235
|
damObjectId: string;
|
|
194
236
|
damAdditional?: {
|
|
237
|
+
variant?: string | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
formattingOptions?: {
|
|
195
240
|
alignment: "left" | "center" | "right" | "justify";
|
|
196
241
|
} | undefined;
|
|
242
|
+
attributes?: (Record<string, string> & {
|
|
243
|
+
src?: undefined;
|
|
244
|
+
}) | undefined;
|
|
197
245
|
} | {
|
|
198
246
|
type: "component";
|
|
199
247
|
componentId: string;
|
|
@@ -231,6 +279,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
231
279
|
formattingOptions?: {
|
|
232
280
|
alignment: "left" | "center" | "right" | "justify";
|
|
233
281
|
} | undefined;
|
|
282
|
+
attributes?: (Record<string, string> & {
|
|
283
|
+
href?: undefined;
|
|
284
|
+
target?: undefined;
|
|
285
|
+
}) | undefined;
|
|
234
286
|
}) & {
|
|
235
287
|
children: (import("../layout-content").LayoutVariationNode | ({
|
|
236
288
|
value: string;
|
|
@@ -243,14 +295,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
243
295
|
formattingOptions?: {
|
|
244
296
|
alignment: "left" | "center" | "right" | "justify";
|
|
245
297
|
} | undefined;
|
|
298
|
+
attributes?: (Record<string, string> & {
|
|
299
|
+
src?: undefined;
|
|
300
|
+
}) | undefined;
|
|
246
301
|
} | {
|
|
247
302
|
type: "dam-image";
|
|
248
303
|
damSystemType: "bynder";
|
|
249
304
|
damSystemIdentifier: string;
|
|
250
305
|
damObjectId: string;
|
|
251
306
|
damAdditional?: {
|
|
307
|
+
variant?: string | undefined;
|
|
308
|
+
} | undefined;
|
|
309
|
+
formattingOptions?: {
|
|
252
310
|
alignment: "left" | "center" | "right" | "justify";
|
|
253
311
|
} | undefined;
|
|
312
|
+
attributes?: (Record<string, string> & {
|
|
313
|
+
src?: undefined;
|
|
314
|
+
}) | undefined;
|
|
254
315
|
} | {
|
|
255
316
|
type: "component";
|
|
256
317
|
componentId: string;
|
|
@@ -288,6 +349,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
288
349
|
formattingOptions?: {
|
|
289
350
|
alignment: "left" | "center" | "right" | "justify";
|
|
290
351
|
} | undefined;
|
|
352
|
+
attributes?: (Record<string, string> & {
|
|
353
|
+
href?: undefined;
|
|
354
|
+
target?: undefined;
|
|
355
|
+
}) | undefined;
|
|
291
356
|
}) & any)))[];
|
|
292
357
|
})))[], ({
|
|
293
358
|
value: string;
|
|
@@ -318,6 +383,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
318
383
|
formattingOptions?: {
|
|
319
384
|
alignment: "left" | "center" | "right" | "justify";
|
|
320
385
|
} | undefined;
|
|
386
|
+
attributes?: (Record<string, string> & {
|
|
387
|
+
href?: undefined;
|
|
388
|
+
target?: undefined;
|
|
389
|
+
}) | undefined;
|
|
321
390
|
} | {
|
|
322
391
|
type: "matrix-image";
|
|
323
392
|
matrixDomain: string;
|
|
@@ -326,14 +395,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
326
395
|
formattingOptions?: {
|
|
327
396
|
alignment: "left" | "center" | "right" | "justify";
|
|
328
397
|
} | undefined;
|
|
398
|
+
attributes?: (Record<string, string> & {
|
|
399
|
+
src?: undefined;
|
|
400
|
+
}) | undefined;
|
|
329
401
|
} | {
|
|
330
402
|
type: "dam-image";
|
|
331
403
|
damSystemType: "bynder";
|
|
332
404
|
damSystemIdentifier: string;
|
|
333
405
|
damObjectId: string;
|
|
334
406
|
damAdditional?: {
|
|
407
|
+
variant?: string | undefined;
|
|
408
|
+
} | undefined;
|
|
409
|
+
formattingOptions?: {
|
|
335
410
|
alignment: "left" | "center" | "right" | "justify";
|
|
336
411
|
} | undefined;
|
|
412
|
+
attributes?: (Record<string, string> & {
|
|
413
|
+
src?: undefined;
|
|
414
|
+
}) | undefined;
|
|
337
415
|
} | {
|
|
338
416
|
type: "component";
|
|
339
417
|
componentId: string;
|
|
@@ -361,14 +439,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
361
439
|
formattingOptions?: {
|
|
362
440
|
alignment: "left" | "center" | "right" | "justify";
|
|
363
441
|
} | undefined;
|
|
442
|
+
attributes?: (Record<string, string> & {
|
|
443
|
+
src?: undefined;
|
|
444
|
+
}) | undefined;
|
|
364
445
|
} | {
|
|
365
446
|
type: "dam-image";
|
|
366
447
|
damSystemType: "bynder";
|
|
367
448
|
damSystemIdentifier: string;
|
|
368
449
|
damObjectId: string;
|
|
369
450
|
damAdditional?: {
|
|
451
|
+
variant?: string | undefined;
|
|
452
|
+
} | undefined;
|
|
453
|
+
formattingOptions?: {
|
|
370
454
|
alignment: "left" | "center" | "right" | "justify";
|
|
371
455
|
} | undefined;
|
|
456
|
+
attributes?: (Record<string, string> & {
|
|
457
|
+
src?: undefined;
|
|
458
|
+
}) | undefined;
|
|
372
459
|
} | {
|
|
373
460
|
type: "component";
|
|
374
461
|
componentId: string;
|
|
@@ -406,6 +493,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
406
493
|
formattingOptions?: {
|
|
407
494
|
alignment: "left" | "center" | "right" | "justify";
|
|
408
495
|
} | undefined;
|
|
496
|
+
attributes?: (Record<string, string> & {
|
|
497
|
+
href?: undefined;
|
|
498
|
+
target?: undefined;
|
|
499
|
+
}) | undefined;
|
|
409
500
|
}) & {
|
|
410
501
|
children: (import("../layout-content").LayoutVariationNode | ({
|
|
411
502
|
value: string;
|
|
@@ -418,14 +509,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
418
509
|
formattingOptions?: {
|
|
419
510
|
alignment: "left" | "center" | "right" | "justify";
|
|
420
511
|
} | undefined;
|
|
512
|
+
attributes?: (Record<string, string> & {
|
|
513
|
+
src?: undefined;
|
|
514
|
+
}) | undefined;
|
|
421
515
|
} | {
|
|
422
516
|
type: "dam-image";
|
|
423
517
|
damSystemType: "bynder";
|
|
424
518
|
damSystemIdentifier: string;
|
|
425
519
|
damObjectId: string;
|
|
426
520
|
damAdditional?: {
|
|
521
|
+
variant?: string | undefined;
|
|
522
|
+
} | undefined;
|
|
523
|
+
formattingOptions?: {
|
|
427
524
|
alignment: "left" | "center" | "right" | "justify";
|
|
428
525
|
} | undefined;
|
|
526
|
+
attributes?: (Record<string, string> & {
|
|
527
|
+
src?: undefined;
|
|
528
|
+
}) | undefined;
|
|
429
529
|
} | {
|
|
430
530
|
type: "component";
|
|
431
531
|
componentId: string;
|
|
@@ -463,6 +563,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
463
563
|
formattingOptions?: {
|
|
464
564
|
alignment: "left" | "center" | "right" | "justify";
|
|
465
565
|
} | undefined;
|
|
566
|
+
attributes?: (Record<string, string> & {
|
|
567
|
+
href?: undefined;
|
|
568
|
+
target?: undefined;
|
|
569
|
+
}) | undefined;
|
|
466
570
|
}) & any)))[];
|
|
467
571
|
})))[];
|
|
468
572
|
}, {
|
|
@@ -495,6 +599,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
495
599
|
formattingOptions?: {
|
|
496
600
|
alignment: "left" | "center" | "right" | "justify";
|
|
497
601
|
} | undefined;
|
|
602
|
+
attributes?: (Record<string, string> & {
|
|
603
|
+
href?: undefined;
|
|
604
|
+
target?: undefined;
|
|
605
|
+
}) | undefined;
|
|
498
606
|
} | {
|
|
499
607
|
type: "matrix-image";
|
|
500
608
|
matrixDomain: string;
|
|
@@ -503,14 +611,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
503
611
|
formattingOptions?: {
|
|
504
612
|
alignment: "left" | "center" | "right" | "justify";
|
|
505
613
|
} | undefined;
|
|
614
|
+
attributes?: (Record<string, string> & {
|
|
615
|
+
src?: undefined;
|
|
616
|
+
}) | undefined;
|
|
506
617
|
} | {
|
|
507
618
|
type: "dam-image";
|
|
508
619
|
damSystemType: "bynder";
|
|
509
620
|
damSystemIdentifier: string;
|
|
510
621
|
damObjectId: string;
|
|
511
622
|
damAdditional?: {
|
|
623
|
+
variant?: string | undefined;
|
|
624
|
+
} | undefined;
|
|
625
|
+
formattingOptions?: {
|
|
512
626
|
alignment: "left" | "center" | "right" | "justify";
|
|
513
627
|
} | undefined;
|
|
628
|
+
attributes?: (Record<string, string> & {
|
|
629
|
+
src?: undefined;
|
|
630
|
+
}) | undefined;
|
|
514
631
|
} | {
|
|
515
632
|
type: "component";
|
|
516
633
|
componentId: string;
|
|
@@ -540,14 +657,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
540
657
|
formattingOptions?: {
|
|
541
658
|
alignment: "left" | "center" | "right" | "justify";
|
|
542
659
|
} | undefined;
|
|
660
|
+
attributes?: (Record<string, string> & {
|
|
661
|
+
src?: undefined;
|
|
662
|
+
}) | undefined;
|
|
543
663
|
} | {
|
|
544
664
|
type: "dam-image";
|
|
545
665
|
damSystemType: "bynder";
|
|
546
666
|
damSystemIdentifier: string;
|
|
547
667
|
damObjectId: string;
|
|
548
668
|
damAdditional?: {
|
|
669
|
+
variant?: string | undefined;
|
|
670
|
+
} | undefined;
|
|
671
|
+
formattingOptions?: {
|
|
549
672
|
alignment: "left" | "center" | "right" | "justify";
|
|
550
673
|
} | undefined;
|
|
674
|
+
attributes?: (Record<string, string> & {
|
|
675
|
+
src?: undefined;
|
|
676
|
+
}) | undefined;
|
|
551
677
|
} | {
|
|
552
678
|
type: "component";
|
|
553
679
|
componentId: string;
|
|
@@ -585,6 +711,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
585
711
|
formattingOptions?: {
|
|
586
712
|
alignment: "left" | "center" | "right" | "justify";
|
|
587
713
|
} | undefined;
|
|
714
|
+
attributes?: (Record<string, string> & {
|
|
715
|
+
href?: undefined;
|
|
716
|
+
target?: undefined;
|
|
717
|
+
}) | undefined;
|
|
588
718
|
}) & {
|
|
589
719
|
children: (import("../layout-content").LayoutVariationNode | ({
|
|
590
720
|
value: string;
|
|
@@ -597,14 +727,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
597
727
|
formattingOptions?: {
|
|
598
728
|
alignment: "left" | "center" | "right" | "justify";
|
|
599
729
|
} | undefined;
|
|
730
|
+
attributes?: (Record<string, string> & {
|
|
731
|
+
src?: undefined;
|
|
732
|
+
}) | undefined;
|
|
600
733
|
} | {
|
|
601
734
|
type: "dam-image";
|
|
602
735
|
damSystemType: "bynder";
|
|
603
736
|
damSystemIdentifier: string;
|
|
604
737
|
damObjectId: string;
|
|
605
738
|
damAdditional?: {
|
|
739
|
+
variant?: string | undefined;
|
|
740
|
+
} | undefined;
|
|
741
|
+
formattingOptions?: {
|
|
606
742
|
alignment: "left" | "center" | "right" | "justify";
|
|
607
743
|
} | undefined;
|
|
744
|
+
attributes?: (Record<string, string> & {
|
|
745
|
+
src?: undefined;
|
|
746
|
+
}) | undefined;
|
|
608
747
|
} | {
|
|
609
748
|
type: "component";
|
|
610
749
|
componentId: string;
|
|
@@ -642,6 +781,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
642
781
|
formattingOptions?: {
|
|
643
782
|
alignment: "left" | "center" | "right" | "justify";
|
|
644
783
|
} | undefined;
|
|
784
|
+
attributes?: (Record<string, string> & {
|
|
785
|
+
href?: undefined;
|
|
786
|
+
target?: undefined;
|
|
787
|
+
}) | undefined;
|
|
645
788
|
}) & any)))[];
|
|
646
789
|
})))[];
|
|
647
790
|
};
|
|
@@ -677,6 +820,10 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
677
820
|
formattingOptions?: {
|
|
678
821
|
alignment: "left" | "center" | "right" | "justify";
|
|
679
822
|
} | undefined;
|
|
823
|
+
attributes?: (Record<string, string> & {
|
|
824
|
+
href?: undefined;
|
|
825
|
+
target?: undefined;
|
|
826
|
+
}) | undefined;
|
|
680
827
|
} | {
|
|
681
828
|
type: "matrix-image";
|
|
682
829
|
matrixDomain: string;
|
|
@@ -685,14 +832,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
685
832
|
formattingOptions?: {
|
|
686
833
|
alignment: "left" | "center" | "right" | "justify";
|
|
687
834
|
} | undefined;
|
|
835
|
+
attributes?: (Record<string, string> & {
|
|
836
|
+
src?: undefined;
|
|
837
|
+
}) | undefined;
|
|
688
838
|
} | {
|
|
689
839
|
type: "dam-image";
|
|
690
840
|
damSystemType: "bynder";
|
|
691
841
|
damSystemIdentifier: string;
|
|
692
842
|
damObjectId: string;
|
|
693
843
|
damAdditional?: {
|
|
844
|
+
variant?: string | undefined;
|
|
845
|
+
} | undefined;
|
|
846
|
+
formattingOptions?: {
|
|
694
847
|
alignment: "left" | "center" | "right" | "justify";
|
|
695
848
|
} | undefined;
|
|
849
|
+
attributes?: (Record<string, string> & {
|
|
850
|
+
src?: undefined;
|
|
851
|
+
}) | undefined;
|
|
696
852
|
} | {
|
|
697
853
|
type: "component";
|
|
698
854
|
componentId: string;
|