@squiz/dx-page-contents-lib 1.53.1-alpha.20 → 1.53.1-alpha.21

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.
@@ -93,57 +93,7 @@ export declare const SingleColumnLayout: z.ZodObject<{
93
93
  formattingOptions?: {
94
94
  alignment: "left" | "center" | "right" | "justify";
95
95
  } | undefined;
96
- }) & any)) | ({
97
- type: "experiment";
98
- experimentId: string;
99
- } & {
100
- variants: Record<string, ({
101
- value: string;
102
- type: "text";
103
- } | {
104
- type: "matrix-image";
105
- matrixDomain: string;
106
- matrixAssetId: string;
107
- matrixIdentifier?: string | undefined;
108
- formattingOptions?: {
109
- alignment: "left" | "center" | "right" | "justify";
110
- } | undefined;
111
- } | {
112
- type: "component";
113
- componentId: string;
114
- componentSet: string;
115
- contentItem?: {
116
- id: string;
117
- } | {
118
- content: Record<string, unknown>;
119
- schemaName: string;
120
- } | undefined;
121
- } | (({
122
- type: "tag";
123
- tag: string;
124
- attributes?: Record<string, string> | undefined;
125
- font?: {
126
- bold?: boolean | undefined;
127
- italics?: boolean | undefined;
128
- underline?: boolean | undefined;
129
- color?: string | undefined;
130
- size?: string | undefined;
131
- fontFamily?: string | undefined;
132
- } | undefined;
133
- formattingOptions?: {
134
- alignment: "left" | "center" | "right" | "justify";
135
- } | undefined;
136
- } | {
137
- type: "link-to-matrix-asset";
138
- matrixDomain: string;
139
- matrixAssetId: string;
140
- target: "_blank" | "_self" | "_parent" | "_top";
141
- matrixIdentifier?: string | undefined;
142
- formattingOptions?: {
143
- alignment: "left" | "center" | "right" | "justify";
144
- } | undefined;
145
- }) & any))[]>;
146
- }))[];
96
+ }) & any)))[];
147
97
  }), z.ZodTypeDef, {
148
98
  value: string;
149
99
  type: "text";
@@ -192,106 +142,6 @@ export declare const SingleColumnLayout: z.ZodObject<{
192
142
  }>, z.ZodType<import("../layout-content").LayoutVariationNode, z.ZodTypeDef, {
193
143
  type: "variation";
194
144
  default: {};
195
- }>, z.ZodType<{
196
- type: "experiment";
197
- experimentId: string;
198
- } & {
199
- variants: Record<string, ({
200
- value: string;
201
- type: "text";
202
- } | {
203
- type: "matrix-image";
204
- matrixDomain: string;
205
- matrixAssetId: string;
206
- matrixIdentifier?: string | undefined;
207
- formattingOptions?: {
208
- alignment: "left" | "center" | "right" | "justify";
209
- } | undefined;
210
- } | {
211
- type: "component";
212
- componentId: string;
213
- componentSet: string;
214
- contentItem?: {
215
- id: string;
216
- } | {
217
- content: Record<string, unknown>;
218
- schemaName: string;
219
- } | undefined;
220
- } | (({
221
- type: "tag";
222
- tag: string;
223
- attributes?: Record<string, string> | undefined;
224
- font?: {
225
- bold?: boolean | undefined;
226
- italics?: boolean | undefined;
227
- underline?: boolean | undefined;
228
- color?: string | undefined;
229
- size?: string | undefined;
230
- fontFamily?: string | undefined;
231
- } | undefined;
232
- formattingOptions?: {
233
- alignment: "left" | "center" | "right" | "justify";
234
- } | undefined;
235
- } | {
236
- type: "link-to-matrix-asset";
237
- matrixDomain: string;
238
- matrixAssetId: string;
239
- target: "_blank" | "_self" | "_parent" | "_top";
240
- matrixIdentifier?: string | undefined;
241
- formattingOptions?: {
242
- alignment: "left" | "center" | "right" | "justify";
243
- } | undefined;
244
- }) & any))[]>;
245
- }, z.ZodTypeDef, {
246
- type: "experiment";
247
- experimentId: string;
248
- } & {
249
- variants: Record<string, ({
250
- value: string;
251
- type: "text";
252
- } | {
253
- type: "tag";
254
- tag: string;
255
- attributes?: Record<string, string> | undefined;
256
- font?: {
257
- bold?: boolean | undefined;
258
- italics?: boolean | undefined;
259
- underline?: boolean | undefined;
260
- color?: string | undefined;
261
- size?: string | undefined;
262
- fontFamily?: string | undefined;
263
- } | undefined;
264
- formattingOptions?: {
265
- alignment: "left" | "center" | "right" | "justify";
266
- } | undefined;
267
- } | {
268
- type: "link-to-matrix-asset";
269
- matrixDomain: string;
270
- matrixAssetId: string;
271
- target: "_blank" | "_self" | "_parent" | "_top";
272
- matrixIdentifier?: string | undefined;
273
- formattingOptions?: {
274
- alignment: "left" | "center" | "right" | "justify";
275
- } | undefined;
276
- } | {
277
- type: "matrix-image";
278
- matrixDomain: string;
279
- matrixAssetId: string;
280
- matrixIdentifier?: string | undefined;
281
- formattingOptions?: {
282
- alignment: "left" | "center" | "right" | "justify";
283
- } | undefined;
284
- } | {
285
- type: "component";
286
- componentId: string;
287
- componentSet: string;
288
- contentItem?: {
289
- id: string;
290
- } | {
291
- content: Record<string, unknown>;
292
- schemaName: string;
293
- } | undefined;
294
- })[]>;
295
145
  }>]>, "many">, (import("../layout-content").LayoutVariationNode | ({
296
146
  value: string;
297
147
  type: "text";
@@ -383,108 +233,8 @@ export declare const SingleColumnLayout: z.ZodObject<{
383
233
  formattingOptions?: {
384
234
  alignment: "left" | "center" | "right" | "justify";
385
235
  } | undefined;
386
- }) & any)) | ({
387
- type: "experiment";
388
- experimentId: string;
389
- } & {
390
- variants: Record<string, ({
391
- value: string;
392
- type: "text";
393
- } | {
394
- type: "matrix-image";
395
- matrixDomain: string;
396
- matrixAssetId: string;
397
- matrixIdentifier?: string | undefined;
398
- formattingOptions?: {
399
- alignment: "left" | "center" | "right" | "justify";
400
- } | undefined;
401
- } | {
402
- type: "component";
403
- componentId: string;
404
- componentSet: string;
405
- contentItem?: {
406
- id: string;
407
- } | {
408
- content: Record<string, unknown>;
409
- schemaName: string;
410
- } | undefined;
411
- } | (({
412
- type: "tag";
413
- tag: string;
414
- attributes?: Record<string, string> | undefined;
415
- font?: {
416
- bold?: boolean | undefined;
417
- italics?: boolean | undefined;
418
- underline?: boolean | undefined;
419
- color?: string | undefined;
420
- size?: string | undefined;
421
- fontFamily?: string | undefined;
422
- } | undefined;
423
- formattingOptions?: {
424
- alignment: "left" | "center" | "right" | "justify";
425
- } | undefined;
426
- } | {
427
- type: "link-to-matrix-asset";
428
- matrixDomain: string;
429
- matrixAssetId: string;
430
- target: "_blank" | "_self" | "_parent" | "_top";
431
- matrixIdentifier?: string | undefined;
432
- formattingOptions?: {
433
- alignment: "left" | "center" | "right" | "justify";
434
- } | undefined;
435
- }) & any))[]>;
436
- }))[];
437
- })) | ({
438
- type: "experiment";
439
- experimentId: string;
440
- } & {
441
- variants: Record<string, ({
442
- value: string;
443
- type: "text";
444
- } | {
445
- type: "matrix-image";
446
- matrixDomain: string;
447
- matrixAssetId: string;
448
- matrixIdentifier?: string | undefined;
449
- formattingOptions?: {
450
- alignment: "left" | "center" | "right" | "justify";
451
- } | undefined;
452
- } | {
453
- type: "component";
454
- componentId: string;
455
- componentSet: string;
456
- contentItem?: {
457
- id: string;
458
- } | {
459
- content: Record<string, unknown>;
460
- schemaName: string;
461
- } | undefined;
462
- } | (({
463
- type: "tag";
464
- tag: string;
465
- attributes?: Record<string, string> | undefined;
466
- font?: {
467
- bold?: boolean | undefined;
468
- italics?: boolean | undefined;
469
- underline?: boolean | undefined;
470
- color?: string | undefined;
471
- size?: string | undefined;
472
- fontFamily?: string | undefined;
473
- } | undefined;
474
- formattingOptions?: {
475
- alignment: "left" | "center" | "right" | "justify";
476
- } | undefined;
477
- } | {
478
- type: "link-to-matrix-asset";
479
- matrixDomain: string;
480
- matrixAssetId: string;
481
- target: "_blank" | "_self" | "_parent" | "_top";
482
- matrixIdentifier?: string | undefined;
483
- formattingOptions?: {
484
- alignment: "left" | "center" | "right" | "justify";
485
- } | undefined;
486
- }) & any))[]>;
487
- }))[], ({
236
+ }) & any)))[];
237
+ })))[], ({
488
238
  value: string;
489
239
  type: "text";
490
240
  } | {
@@ -532,57 +282,7 @@ export declare const SingleColumnLayout: z.ZodObject<{
532
282
  } | {
533
283
  type: "variation";
534
284
  default: {};
535
- } | ({
536
- type: "experiment";
537
- experimentId: string;
538
- } & {
539
- variants: Record<string, ({
540
- value: string;
541
- type: "text";
542
- } | {
543
- type: "tag";
544
- tag: string;
545
- attributes?: Record<string, string> | undefined;
546
- font?: {
547
- bold?: boolean | undefined;
548
- italics?: boolean | undefined;
549
- underline?: boolean | undefined;
550
- color?: string | undefined;
551
- size?: string | undefined;
552
- fontFamily?: string | undefined;
553
- } | undefined;
554
- formattingOptions?: {
555
- alignment: "left" | "center" | "right" | "justify";
556
- } | undefined;
557
- } | {
558
- type: "link-to-matrix-asset";
559
- matrixDomain: string;
560
- matrixAssetId: string;
561
- target: "_blank" | "_self" | "_parent" | "_top";
562
- matrixIdentifier?: string | undefined;
563
- formattingOptions?: {
564
- alignment: "left" | "center" | "right" | "justify";
565
- } | undefined;
566
- } | {
567
- type: "matrix-image";
568
- matrixDomain: string;
569
- matrixAssetId: string;
570
- matrixIdentifier?: string | undefined;
571
- formattingOptions?: {
572
- alignment: "left" | "center" | "right" | "justify";
573
- } | undefined;
574
- } | {
575
- type: "component";
576
- componentId: string;
577
- componentSet: string;
578
- contentItem?: {
579
- id: string;
580
- } | {
581
- content: Record<string, unknown>;
582
- schemaName: string;
583
- } | undefined;
584
- })[]>;
585
- }))[]>;
285
+ })[]>;
586
286
  }, "strip", z.ZodTypeAny, {
587
287
  main: (import("../layout-content").LayoutVariationNode | ({
588
288
  value: string;
@@ -675,108 +375,8 @@ export declare const SingleColumnLayout: z.ZodObject<{
675
375
  formattingOptions?: {
676
376
  alignment: "left" | "center" | "right" | "justify";
677
377
  } | undefined;
678
- }) & any)) | ({
679
- type: "experiment";
680
- experimentId: string;
681
- } & {
682
- variants: Record<string, ({
683
- value: string;
684
- type: "text";
685
- } | {
686
- type: "matrix-image";
687
- matrixDomain: string;
688
- matrixAssetId: string;
689
- matrixIdentifier?: string | undefined;
690
- formattingOptions?: {
691
- alignment: "left" | "center" | "right" | "justify";
692
- } | undefined;
693
- } | {
694
- type: "component";
695
- componentId: string;
696
- componentSet: string;
697
- contentItem?: {
698
- id: string;
699
- } | {
700
- content: Record<string, unknown>;
701
- schemaName: string;
702
- } | undefined;
703
- } | (({
704
- type: "tag";
705
- tag: string;
706
- attributes?: Record<string, string> | undefined;
707
- font?: {
708
- bold?: boolean | undefined;
709
- italics?: boolean | undefined;
710
- underline?: boolean | undefined;
711
- color?: string | undefined;
712
- size?: string | undefined;
713
- fontFamily?: string | undefined;
714
- } | undefined;
715
- formattingOptions?: {
716
- alignment: "left" | "center" | "right" | "justify";
717
- } | undefined;
718
- } | {
719
- type: "link-to-matrix-asset";
720
- matrixDomain: string;
721
- matrixAssetId: string;
722
- target: "_blank" | "_self" | "_parent" | "_top";
723
- matrixIdentifier?: string | undefined;
724
- formattingOptions?: {
725
- alignment: "left" | "center" | "right" | "justify";
726
- } | undefined;
727
- }) & any))[]>;
728
- }))[];
729
- })) | ({
730
- type: "experiment";
731
- experimentId: string;
732
- } & {
733
- variants: Record<string, ({
734
- value: string;
735
- type: "text";
736
- } | {
737
- type: "matrix-image";
738
- matrixDomain: string;
739
- matrixAssetId: string;
740
- matrixIdentifier?: string | undefined;
741
- formattingOptions?: {
742
- alignment: "left" | "center" | "right" | "justify";
743
- } | undefined;
744
- } | {
745
- type: "component";
746
- componentId: string;
747
- componentSet: string;
748
- contentItem?: {
749
- id: string;
750
- } | {
751
- content: Record<string, unknown>;
752
- schemaName: string;
753
- } | undefined;
754
- } | (({
755
- type: "tag";
756
- tag: string;
757
- attributes?: Record<string, string> | undefined;
758
- font?: {
759
- bold?: boolean | undefined;
760
- italics?: boolean | undefined;
761
- underline?: boolean | undefined;
762
- color?: string | undefined;
763
- size?: string | undefined;
764
- fontFamily?: string | undefined;
765
- } | undefined;
766
- formattingOptions?: {
767
- alignment: "left" | "center" | "right" | "justify";
768
- } | undefined;
769
- } | {
770
- type: "link-to-matrix-asset";
771
- matrixDomain: string;
772
- matrixAssetId: string;
773
- target: "_blank" | "_self" | "_parent" | "_top";
774
- matrixIdentifier?: string | undefined;
775
- formattingOptions?: {
776
- alignment: "left" | "center" | "right" | "justify";
777
- } | undefined;
778
- }) & any))[]>;
779
- }))[];
378
+ }) & any)))[];
379
+ })))[];
780
380
  }, {
781
381
  main: ({
782
382
  value: string;
@@ -826,57 +426,7 @@ export declare const SingleColumnLayout: z.ZodObject<{
826
426
  } | {
827
427
  type: "variation";
828
428
  default: {};
829
- } | ({
830
- type: "experiment";
831
- experimentId: string;
832
- } & {
833
- variants: Record<string, ({
834
- value: string;
835
- type: "text";
836
- } | {
837
- type: "tag";
838
- tag: string;
839
- attributes?: Record<string, string> | undefined;
840
- font?: {
841
- bold?: boolean | undefined;
842
- italics?: boolean | undefined;
843
- underline?: boolean | undefined;
844
- color?: string | undefined;
845
- size?: string | undefined;
846
- fontFamily?: string | undefined;
847
- } | undefined;
848
- formattingOptions?: {
849
- alignment: "left" | "center" | "right" | "justify";
850
- } | undefined;
851
- } | {
852
- type: "link-to-matrix-asset";
853
- matrixDomain: string;
854
- matrixAssetId: string;
855
- target: "_blank" | "_self" | "_parent" | "_top";
856
- matrixIdentifier?: string | undefined;
857
- formattingOptions?: {
858
- alignment: "left" | "center" | "right" | "justify";
859
- } | undefined;
860
- } | {
861
- type: "matrix-image";
862
- matrixDomain: string;
863
- matrixAssetId: string;
864
- matrixIdentifier?: string | undefined;
865
- formattingOptions?: {
866
- alignment: "left" | "center" | "right" | "justify";
867
- } | undefined;
868
- } | {
869
- type: "component";
870
- componentId: string;
871
- componentSet: string;
872
- contentItem?: {
873
- id: string;
874
- } | {
875
- content: Record<string, unknown>;
876
- schemaName: string;
877
- } | undefined;
878
- })[]>;
879
- }))[];
429
+ })[];
880
430
  }>;
881
431
  }, "strip", z.ZodTypeAny, {
882
432
  content: {
@@ -971,108 +521,8 @@ export declare const SingleColumnLayout: z.ZodObject<{
971
521
  formattingOptions?: {
972
522
  alignment: "left" | "center" | "right" | "justify";
973
523
  } | undefined;
974
- }) & any)) | ({
975
- type: "experiment";
976
- experimentId: string;
977
- } & {
978
- variants: Record<string, ({
979
- value: string;
980
- type: "text";
981
- } | {
982
- type: "matrix-image";
983
- matrixDomain: string;
984
- matrixAssetId: string;
985
- matrixIdentifier?: string | undefined;
986
- formattingOptions?: {
987
- alignment: "left" | "center" | "right" | "justify";
988
- } | undefined;
989
- } | {
990
- type: "component";
991
- componentId: string;
992
- componentSet: string;
993
- contentItem?: {
994
- id: string;
995
- } | {
996
- content: Record<string, unknown>;
997
- schemaName: string;
998
- } | undefined;
999
- } | (({
1000
- type: "tag";
1001
- tag: string;
1002
- attributes?: Record<string, string> | undefined;
1003
- font?: {
1004
- bold?: boolean | undefined;
1005
- italics?: boolean | undefined;
1006
- underline?: boolean | undefined;
1007
- color?: string | undefined;
1008
- size?: string | undefined;
1009
- fontFamily?: string | undefined;
1010
- } | undefined;
1011
- formattingOptions?: {
1012
- alignment: "left" | "center" | "right" | "justify";
1013
- } | undefined;
1014
- } | {
1015
- type: "link-to-matrix-asset";
1016
- matrixDomain: string;
1017
- matrixAssetId: string;
1018
- target: "_blank" | "_self" | "_parent" | "_top";
1019
- matrixIdentifier?: string | undefined;
1020
- formattingOptions?: {
1021
- alignment: "left" | "center" | "right" | "justify";
1022
- } | undefined;
1023
- }) & any))[]>;
1024
- }))[];
1025
- })) | ({
1026
- type: "experiment";
1027
- experimentId: string;
1028
- } & {
1029
- variants: Record<string, ({
1030
- value: string;
1031
- type: "text";
1032
- } | {
1033
- type: "matrix-image";
1034
- matrixDomain: string;
1035
- matrixAssetId: string;
1036
- matrixIdentifier?: string | undefined;
1037
- formattingOptions?: {
1038
- alignment: "left" | "center" | "right" | "justify";
1039
- } | undefined;
1040
- } | {
1041
- type: "component";
1042
- componentId: string;
1043
- componentSet: string;
1044
- contentItem?: {
1045
- id: string;
1046
- } | {
1047
- content: Record<string, unknown>;
1048
- schemaName: string;
1049
- } | undefined;
1050
- } | (({
1051
- type: "tag";
1052
- tag: string;
1053
- attributes?: Record<string, string> | undefined;
1054
- font?: {
1055
- bold?: boolean | undefined;
1056
- italics?: boolean | undefined;
1057
- underline?: boolean | undefined;
1058
- color?: string | undefined;
1059
- size?: string | undefined;
1060
- fontFamily?: string | undefined;
1061
- } | undefined;
1062
- formattingOptions?: {
1063
- alignment: "left" | "center" | "right" | "justify";
1064
- } | undefined;
1065
- } | {
1066
- type: "link-to-matrix-asset";
1067
- matrixDomain: string;
1068
- matrixAssetId: string;
1069
- target: "_blank" | "_self" | "_parent" | "_top";
1070
- matrixIdentifier?: string | undefined;
1071
- formattingOptions?: {
1072
- alignment: "left" | "center" | "right" | "justify";
1073
- } | undefined;
1074
- }) & any))[]>;
1075
- }))[];
524
+ }) & any)))[];
525
+ })))[];
1076
526
  };
1077
527
  name: "single-column";
1078
528
  }, {
@@ -1125,57 +575,7 @@ export declare const SingleColumnLayout: z.ZodObject<{
1125
575
  } | {
1126
576
  type: "variation";
1127
577
  default: {};
1128
- } | ({
1129
- type: "experiment";
1130
- experimentId: string;
1131
- } & {
1132
- variants: Record<string, ({
1133
- value: string;
1134
- type: "text";
1135
- } | {
1136
- type: "tag";
1137
- tag: string;
1138
- attributes?: Record<string, string> | undefined;
1139
- font?: {
1140
- bold?: boolean | undefined;
1141
- italics?: boolean | undefined;
1142
- underline?: boolean | undefined;
1143
- color?: string | undefined;
1144
- size?: string | undefined;
1145
- fontFamily?: string | undefined;
1146
- } | undefined;
1147
- formattingOptions?: {
1148
- alignment: "left" | "center" | "right" | "justify";
1149
- } | undefined;
1150
- } | {
1151
- type: "link-to-matrix-asset";
1152
- matrixDomain: string;
1153
- matrixAssetId: string;
1154
- target: "_blank" | "_self" | "_parent" | "_top";
1155
- matrixIdentifier?: string | undefined;
1156
- formattingOptions?: {
1157
- alignment: "left" | "center" | "right" | "justify";
1158
- } | undefined;
1159
- } | {
1160
- type: "matrix-image";
1161
- matrixDomain: string;
1162
- matrixAssetId: string;
1163
- matrixIdentifier?: string | undefined;
1164
- formattingOptions?: {
1165
- alignment: "left" | "center" | "right" | "justify";
1166
- } | undefined;
1167
- } | {
1168
- type: "component";
1169
- componentId: string;
1170
- componentSet: string;
1171
- contentItem?: {
1172
- id: string;
1173
- } | {
1174
- content: Record<string, unknown>;
1175
- schemaName: string;
1176
- } | undefined;
1177
- })[]>;
1178
- }))[];
578
+ })[];
1179
579
  };
1180
580
  name: "single-column";
1181
581
  }>;