@squiz/dx-page-contents-lib 1.72.0 → 1.74.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 +0 -10
- package/lib/formatted-text.js +0 -2
- package/lib/formatted-text.js.map +1 -1
- package/lib/layout-content.d.ts +0 -6
- package/lib/layout-content.js +1 -0
- package/lib/layout-content.js.map +1 -1
- package/lib/layouts/custom-layout.d.ts +0 -10
- package/lib/layouts/index.d.ts +0 -40
- package/lib/layouts/raw.layout.d.ts +0 -8
- package/lib/layouts/single-column.layout.d.ts +0 -8
- package/lib/layouts/two-column.layout.d.ts +0 -16
- package/lib/mocks/PageContentsHelpers.d.ts +15 -50
- package/lib/mocks/PageContentsHelpers.js +44 -1
- package/lib/mocks/PageContentsHelpers.js.map +1 -1
- package/lib/mocks/PageContentsMocks.d.ts +3 -1
- package/lib/mocks/PageContentsMocks.js +83 -1
- package/lib/mocks/PageContentsMocks.js.map +1 -1
- package/lib/page-contents-lib.d.ts +189 -1
- package/lib/page-contents-lib.js +124 -12
- package/lib/page-contents-lib.js.map +1 -1
- package/lib/page-contents-lib.spec.js +422 -0
- package/lib/page-contents-lib.spec.js.map +1 -1
- package/lib/resolvers/default-layout-resolver.d.ts +5 -0
- package/lib/resolvers/default-layout-resolver.js +14 -0
- package/lib/resolvers/default-layout-resolver.js.map +1 -0
- package/lib/resolvers/index.d.ts +1 -0
- package/lib/resolvers/index.js +1 -0
- package/lib/resolvers/index.js.map +1 -1
- package/package.json +2 -1
|
@@ -155,7 +155,6 @@ export declare const SingleColumnLayout: z.ZodObject<{
|
|
|
155
155
|
selectedValue: string;
|
|
156
156
|
}>;
|
|
157
157
|
name: string;
|
|
158
|
-
version: string;
|
|
159
158
|
displayName: string;
|
|
160
159
|
description: string;
|
|
161
160
|
template: string;
|
|
@@ -170,7 +169,6 @@ export declare const SingleColumnLayout: z.ZodObject<{
|
|
|
170
169
|
selectedValue: string;
|
|
171
170
|
}>;
|
|
172
171
|
name: string;
|
|
173
|
-
version: string;
|
|
174
172
|
};
|
|
175
173
|
}>]>, "many">, (import("../layout-content").LayoutVariationNode | ({
|
|
176
174
|
value: string;
|
|
@@ -325,7 +323,6 @@ export declare const SingleColumnLayout: z.ZodObject<{
|
|
|
325
323
|
selectedValue: string;
|
|
326
324
|
}>;
|
|
327
325
|
name: string;
|
|
328
|
-
version: string;
|
|
329
326
|
displayName: string;
|
|
330
327
|
description: string;
|
|
331
328
|
template: string;
|
|
@@ -340,7 +337,6 @@ export declare const SingleColumnLayout: z.ZodObject<{
|
|
|
340
337
|
selectedValue: string;
|
|
341
338
|
}>;
|
|
342
339
|
name: string;
|
|
343
|
-
version: string;
|
|
344
340
|
};
|
|
345
341
|
})[]>;
|
|
346
342
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -499,7 +495,6 @@ export declare const SingleColumnLayout: z.ZodObject<{
|
|
|
499
495
|
selectedValue: string;
|
|
500
496
|
}>;
|
|
501
497
|
name: string;
|
|
502
|
-
version: string;
|
|
503
498
|
displayName: string;
|
|
504
499
|
description: string;
|
|
505
500
|
template: string;
|
|
@@ -514,7 +509,6 @@ export declare const SingleColumnLayout: z.ZodObject<{
|
|
|
514
509
|
selectedValue: string;
|
|
515
510
|
}>;
|
|
516
511
|
name: string;
|
|
517
|
-
version: string;
|
|
518
512
|
};
|
|
519
513
|
})[];
|
|
520
514
|
}>;
|
|
@@ -678,7 +672,6 @@ export declare const SingleColumnLayout: z.ZodObject<{
|
|
|
678
672
|
selectedValue: string;
|
|
679
673
|
}>;
|
|
680
674
|
name: string;
|
|
681
|
-
version: string;
|
|
682
675
|
displayName: string;
|
|
683
676
|
description: string;
|
|
684
677
|
template: string;
|
|
@@ -693,7 +686,6 @@ export declare const SingleColumnLayout: z.ZodObject<{
|
|
|
693
686
|
selectedValue: string;
|
|
694
687
|
}>;
|
|
695
688
|
name: string;
|
|
696
|
-
version: string;
|
|
697
689
|
};
|
|
698
690
|
})[];
|
|
699
691
|
};
|
|
@@ -155,7 +155,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
155
155
|
selectedValue: string;
|
|
156
156
|
}>;
|
|
157
157
|
name: string;
|
|
158
|
-
version: string;
|
|
159
158
|
displayName: string;
|
|
160
159
|
description: string;
|
|
161
160
|
template: string;
|
|
@@ -170,7 +169,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
170
169
|
selectedValue: string;
|
|
171
170
|
}>;
|
|
172
171
|
name: string;
|
|
173
|
-
version: string;
|
|
174
172
|
};
|
|
175
173
|
}>]>, "many">, (import("../layout-content").LayoutVariationNode | ({
|
|
176
174
|
value: string;
|
|
@@ -325,7 +323,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
325
323
|
selectedValue: string;
|
|
326
324
|
}>;
|
|
327
325
|
name: string;
|
|
328
|
-
version: string;
|
|
329
326
|
displayName: string;
|
|
330
327
|
description: string;
|
|
331
328
|
template: string;
|
|
@@ -340,7 +337,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
340
337
|
selectedValue: string;
|
|
341
338
|
}>;
|
|
342
339
|
name: string;
|
|
343
|
-
version: string;
|
|
344
340
|
};
|
|
345
341
|
})[]>;
|
|
346
342
|
right: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodType<{
|
|
@@ -496,7 +492,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
496
492
|
selectedValue: string;
|
|
497
493
|
}>;
|
|
498
494
|
name: string;
|
|
499
|
-
version: string;
|
|
500
495
|
displayName: string;
|
|
501
496
|
description: string;
|
|
502
497
|
template: string;
|
|
@@ -511,7 +506,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
511
506
|
selectedValue: string;
|
|
512
507
|
}>;
|
|
513
508
|
name: string;
|
|
514
|
-
version: string;
|
|
515
509
|
};
|
|
516
510
|
}>]>, "many">, (import("../layout-content").LayoutVariationNode | ({
|
|
517
511
|
value: string;
|
|
@@ -666,7 +660,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
666
660
|
selectedValue: string;
|
|
667
661
|
}>;
|
|
668
662
|
name: string;
|
|
669
|
-
version: string;
|
|
670
663
|
displayName: string;
|
|
671
664
|
description: string;
|
|
672
665
|
template: string;
|
|
@@ -681,7 +674,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
681
674
|
selectedValue: string;
|
|
682
675
|
}>;
|
|
683
676
|
name: string;
|
|
684
|
-
version: string;
|
|
685
677
|
};
|
|
686
678
|
})[]>;
|
|
687
679
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -912,7 +904,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
912
904
|
selectedValue: string;
|
|
913
905
|
}>;
|
|
914
906
|
name: string;
|
|
915
|
-
version: string;
|
|
916
907
|
displayName: string;
|
|
917
908
|
description: string;
|
|
918
909
|
template: string;
|
|
@@ -927,7 +918,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
927
918
|
selectedValue: string;
|
|
928
919
|
}>;
|
|
929
920
|
name: string;
|
|
930
|
-
version: string;
|
|
931
921
|
};
|
|
932
922
|
})[];
|
|
933
923
|
right: ({
|
|
@@ -1012,7 +1002,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
1012
1002
|
selectedValue: string;
|
|
1013
1003
|
}>;
|
|
1014
1004
|
name: string;
|
|
1015
|
-
version: string;
|
|
1016
1005
|
displayName: string;
|
|
1017
1006
|
description: string;
|
|
1018
1007
|
template: string;
|
|
@@ -1027,7 +1016,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
1027
1016
|
selectedValue: string;
|
|
1028
1017
|
}>;
|
|
1029
1018
|
name: string;
|
|
1030
|
-
version: string;
|
|
1031
1019
|
};
|
|
1032
1020
|
})[];
|
|
1033
1021
|
}>;
|
|
@@ -1263,7 +1251,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
1263
1251
|
selectedValue: string;
|
|
1264
1252
|
}>;
|
|
1265
1253
|
name: string;
|
|
1266
|
-
version: string;
|
|
1267
1254
|
displayName: string;
|
|
1268
1255
|
description: string;
|
|
1269
1256
|
template: string;
|
|
@@ -1278,7 +1265,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
1278
1265
|
selectedValue: string;
|
|
1279
1266
|
}>;
|
|
1280
1267
|
name: string;
|
|
1281
|
-
version: string;
|
|
1282
1268
|
};
|
|
1283
1269
|
})[];
|
|
1284
1270
|
right: ({
|
|
@@ -1363,7 +1349,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
1363
1349
|
selectedValue: string;
|
|
1364
1350
|
}>;
|
|
1365
1351
|
name: string;
|
|
1366
|
-
version: string;
|
|
1367
1352
|
displayName: string;
|
|
1368
1353
|
description: string;
|
|
1369
1354
|
template: string;
|
|
@@ -1378,7 +1363,6 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
1378
1363
|
selectedValue: string;
|
|
1379
1364
|
}>;
|
|
1380
1365
|
name: string;
|
|
1381
|
-
version: string;
|
|
1382
1366
|
};
|
|
1383
1367
|
})[];
|
|
1384
1368
|
};
|
|
@@ -162,7 +162,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
162
162
|
selectedValue: string;
|
|
163
163
|
}>;
|
|
164
164
|
name: string;
|
|
165
|
-
version: string;
|
|
166
165
|
displayName: string;
|
|
167
166
|
description: string;
|
|
168
167
|
template: string;
|
|
@@ -177,7 +176,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
177
176
|
selectedValue: string;
|
|
178
177
|
}>;
|
|
179
178
|
name: string;
|
|
180
|
-
version: string;
|
|
181
179
|
};
|
|
182
180
|
}>]>, "many">, (LayoutVariationNode | ({
|
|
183
181
|
value: string;
|
|
@@ -332,7 +330,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
332
330
|
selectedValue: string;
|
|
333
331
|
}>;
|
|
334
332
|
name: string;
|
|
335
|
-
version: string;
|
|
336
333
|
displayName: string;
|
|
337
334
|
description: string;
|
|
338
335
|
template: string;
|
|
@@ -347,7 +344,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
347
344
|
selectedValue: string;
|
|
348
345
|
}>;
|
|
349
346
|
name: string;
|
|
350
|
-
version: string;
|
|
351
347
|
};
|
|
352
348
|
})[]>;
|
|
353
349
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -506,7 +502,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
506
502
|
selectedValue: string;
|
|
507
503
|
}>;
|
|
508
504
|
name: string;
|
|
509
|
-
version: string;
|
|
510
505
|
displayName: string;
|
|
511
506
|
description: string;
|
|
512
507
|
template: string;
|
|
@@ -521,7 +516,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
521
516
|
selectedValue: string;
|
|
522
517
|
}>;
|
|
523
518
|
name: string;
|
|
524
|
-
version: string;
|
|
525
519
|
};
|
|
526
520
|
})[];
|
|
527
521
|
}>;
|
|
@@ -685,7 +679,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
685
679
|
selectedValue: string;
|
|
686
680
|
}>;
|
|
687
681
|
name: string;
|
|
688
|
-
version: string;
|
|
689
682
|
displayName: string;
|
|
690
683
|
description: string;
|
|
691
684
|
template: string;
|
|
@@ -700,7 +693,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
700
693
|
selectedValue: string;
|
|
701
694
|
}>;
|
|
702
695
|
name: string;
|
|
703
|
-
version: string;
|
|
704
696
|
};
|
|
705
697
|
})[];
|
|
706
698
|
};
|
|
@@ -861,7 +853,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
861
853
|
selectedValue: string;
|
|
862
854
|
}>;
|
|
863
855
|
name: string;
|
|
864
|
-
version: string;
|
|
865
856
|
displayName: string;
|
|
866
857
|
description: string;
|
|
867
858
|
template: string;
|
|
@@ -876,7 +867,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
876
867
|
selectedValue: string;
|
|
877
868
|
}>;
|
|
878
869
|
name: string;
|
|
879
|
-
version: string;
|
|
880
870
|
};
|
|
881
871
|
}>]>, "many">, (LayoutVariationNode | ({
|
|
882
872
|
value: string;
|
|
@@ -1031,7 +1021,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
1031
1021
|
selectedValue: string;
|
|
1032
1022
|
}>;
|
|
1033
1023
|
name: string;
|
|
1034
|
-
version: string;
|
|
1035
1024
|
displayName: string;
|
|
1036
1025
|
description: string;
|
|
1037
1026
|
template: string;
|
|
@@ -1046,7 +1035,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
1046
1035
|
selectedValue: string;
|
|
1047
1036
|
}>;
|
|
1048
1037
|
name: string;
|
|
1049
|
-
version: string;
|
|
1050
1038
|
};
|
|
1051
1039
|
})[]>;
|
|
1052
1040
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1205,7 +1193,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
1205
1193
|
selectedValue: string;
|
|
1206
1194
|
}>;
|
|
1207
1195
|
name: string;
|
|
1208
|
-
version: string;
|
|
1209
1196
|
displayName: string;
|
|
1210
1197
|
description: string;
|
|
1211
1198
|
template: string;
|
|
@@ -1220,7 +1207,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
1220
1207
|
selectedValue: string;
|
|
1221
1208
|
}>;
|
|
1222
1209
|
name: string;
|
|
1223
|
-
version: string;
|
|
1224
1210
|
};
|
|
1225
1211
|
})[];
|
|
1226
1212
|
}>;
|
|
@@ -1384,7 +1370,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
1384
1370
|
selectedValue: string;
|
|
1385
1371
|
}>;
|
|
1386
1372
|
name: string;
|
|
1387
|
-
version: string;
|
|
1388
1373
|
displayName: string;
|
|
1389
1374
|
description: string;
|
|
1390
1375
|
template: string;
|
|
@@ -1399,7 +1384,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
1399
1384
|
selectedValue: string;
|
|
1400
1385
|
}>;
|
|
1401
1386
|
name: string;
|
|
1402
|
-
version: string;
|
|
1403
1387
|
};
|
|
1404
1388
|
})[];
|
|
1405
1389
|
};
|
|
@@ -1560,7 +1544,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
1560
1544
|
selectedValue: string;
|
|
1561
1545
|
}>;
|
|
1562
1546
|
name: string;
|
|
1563
|
-
version: string;
|
|
1564
1547
|
displayName: string;
|
|
1565
1548
|
description: string;
|
|
1566
1549
|
template: string;
|
|
@@ -1575,7 +1558,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
1575
1558
|
selectedValue: string;
|
|
1576
1559
|
}>;
|
|
1577
1560
|
name: string;
|
|
1578
|
-
version: string;
|
|
1579
1561
|
};
|
|
1580
1562
|
}>]>, "many">, (LayoutVariationNode | ({
|
|
1581
1563
|
value: string;
|
|
@@ -1730,7 +1712,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
1730
1712
|
selectedValue: string;
|
|
1731
1713
|
}>;
|
|
1732
1714
|
name: string;
|
|
1733
|
-
version: string;
|
|
1734
1715
|
displayName: string;
|
|
1735
1716
|
description: string;
|
|
1736
1717
|
template: string;
|
|
@@ -1745,7 +1726,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
1745
1726
|
selectedValue: string;
|
|
1746
1727
|
}>;
|
|
1747
1728
|
name: string;
|
|
1748
|
-
version: string;
|
|
1749
1729
|
};
|
|
1750
1730
|
})[]>;
|
|
1751
1731
|
right: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodType<{
|
|
@@ -1901,7 +1881,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
1901
1881
|
selectedValue: string;
|
|
1902
1882
|
}>;
|
|
1903
1883
|
name: string;
|
|
1904
|
-
version: string;
|
|
1905
1884
|
displayName: string;
|
|
1906
1885
|
description: string;
|
|
1907
1886
|
template: string;
|
|
@@ -1916,7 +1895,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
1916
1895
|
selectedValue: string;
|
|
1917
1896
|
}>;
|
|
1918
1897
|
name: string;
|
|
1919
|
-
version: string;
|
|
1920
1898
|
};
|
|
1921
1899
|
}>]>, "many">, (LayoutVariationNode | ({
|
|
1922
1900
|
value: string;
|
|
@@ -2071,7 +2049,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
2071
2049
|
selectedValue: string;
|
|
2072
2050
|
}>;
|
|
2073
2051
|
name: string;
|
|
2074
|
-
version: string;
|
|
2075
2052
|
displayName: string;
|
|
2076
2053
|
description: string;
|
|
2077
2054
|
template: string;
|
|
@@ -2086,7 +2063,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
2086
2063
|
selectedValue: string;
|
|
2087
2064
|
}>;
|
|
2088
2065
|
name: string;
|
|
2089
|
-
version: string;
|
|
2090
2066
|
};
|
|
2091
2067
|
})[]>;
|
|
2092
2068
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2317,7 +2293,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
2317
2293
|
selectedValue: string;
|
|
2318
2294
|
}>;
|
|
2319
2295
|
name: string;
|
|
2320
|
-
version: string;
|
|
2321
2296
|
displayName: string;
|
|
2322
2297
|
description: string;
|
|
2323
2298
|
template: string;
|
|
@@ -2332,7 +2307,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
2332
2307
|
selectedValue: string;
|
|
2333
2308
|
}>;
|
|
2334
2309
|
name: string;
|
|
2335
|
-
version: string;
|
|
2336
2310
|
};
|
|
2337
2311
|
})[];
|
|
2338
2312
|
right: ({
|
|
@@ -2417,7 +2391,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
2417
2391
|
selectedValue: string;
|
|
2418
2392
|
}>;
|
|
2419
2393
|
name: string;
|
|
2420
|
-
version: string;
|
|
2421
2394
|
displayName: string;
|
|
2422
2395
|
description: string;
|
|
2423
2396
|
template: string;
|
|
@@ -2432,7 +2405,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
2432
2405
|
selectedValue: string;
|
|
2433
2406
|
}>;
|
|
2434
2407
|
name: string;
|
|
2435
|
-
version: string;
|
|
2436
2408
|
};
|
|
2437
2409
|
})[];
|
|
2438
2410
|
}>;
|
|
@@ -2668,7 +2640,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
2668
2640
|
selectedValue: string;
|
|
2669
2641
|
}>;
|
|
2670
2642
|
name: string;
|
|
2671
|
-
version: string;
|
|
2672
2643
|
displayName: string;
|
|
2673
2644
|
description: string;
|
|
2674
2645
|
template: string;
|
|
@@ -2683,7 +2654,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
2683
2654
|
selectedValue: string;
|
|
2684
2655
|
}>;
|
|
2685
2656
|
name: string;
|
|
2686
|
-
version: string;
|
|
2687
2657
|
};
|
|
2688
2658
|
})[];
|
|
2689
2659
|
right: ({
|
|
@@ -2768,7 +2738,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
2768
2738
|
selectedValue: string;
|
|
2769
2739
|
}>;
|
|
2770
2740
|
name: string;
|
|
2771
|
-
version: string;
|
|
2772
2741
|
displayName: string;
|
|
2773
2742
|
description: string;
|
|
2774
2743
|
template: string;
|
|
@@ -2783,7 +2752,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
2783
2752
|
selectedValue: string;
|
|
2784
2753
|
}>;
|
|
2785
2754
|
name: string;
|
|
2786
|
-
version: string;
|
|
2787
2755
|
};
|
|
2788
2756
|
})[];
|
|
2789
2757
|
};
|
|
@@ -3012,7 +2980,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
3012
2980
|
selectedValue: string;
|
|
3013
2981
|
}>;
|
|
3014
2982
|
name: string;
|
|
3015
|
-
version: string;
|
|
3016
2983
|
displayName: string;
|
|
3017
2984
|
description: string;
|
|
3018
2985
|
template: string;
|
|
@@ -3027,7 +2994,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
3027
2994
|
selectedValue: string;
|
|
3028
2995
|
}>;
|
|
3029
2996
|
name: string;
|
|
3030
|
-
version: string;
|
|
3031
2997
|
};
|
|
3032
2998
|
}>]>, "many">, (LayoutVariationNode | ({
|
|
3033
2999
|
value: string;
|
|
@@ -3182,7 +3148,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
3182
3148
|
selectedValue: string;
|
|
3183
3149
|
}>;
|
|
3184
3150
|
name: string;
|
|
3185
|
-
version: string;
|
|
3186
3151
|
displayName: string;
|
|
3187
3152
|
description: string;
|
|
3188
3153
|
template: string;
|
|
@@ -3197,7 +3162,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
3197
3162
|
selectedValue: string;
|
|
3198
3163
|
}>;
|
|
3199
3164
|
name: string;
|
|
3200
|
-
version: string;
|
|
3201
3165
|
};
|
|
3202
3166
|
})[]>;
|
|
3203
3167
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3356,7 +3320,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
3356
3320
|
selectedValue: string;
|
|
3357
3321
|
}>;
|
|
3358
3322
|
name: string;
|
|
3359
|
-
version: string;
|
|
3360
3323
|
displayName: string;
|
|
3361
3324
|
description: string;
|
|
3362
3325
|
template: string;
|
|
@@ -3371,7 +3334,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
3371
3334
|
selectedValue: string;
|
|
3372
3335
|
}>;
|
|
3373
3336
|
name: string;
|
|
3374
|
-
version: string;
|
|
3375
3337
|
};
|
|
3376
3338
|
})[];
|
|
3377
3339
|
}>;
|
|
@@ -3547,7 +3509,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
3547
3509
|
selectedValue: string;
|
|
3548
3510
|
}>;
|
|
3549
3511
|
name: string;
|
|
3550
|
-
version: string;
|
|
3551
3512
|
displayName: string;
|
|
3552
3513
|
description: string;
|
|
3553
3514
|
template: string;
|
|
@@ -3562,7 +3523,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
3562
3523
|
selectedValue: string;
|
|
3563
3524
|
}>;
|
|
3564
3525
|
name: string;
|
|
3565
|
-
version: string;
|
|
3566
3526
|
};
|
|
3567
3527
|
})[];
|
|
3568
3528
|
};
|
|
@@ -4059,7 +4019,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
4059
4019
|
selectedValue: string;
|
|
4060
4020
|
}>;
|
|
4061
4021
|
name: string;
|
|
4062
|
-
version: string;
|
|
4063
4022
|
displayName: string;
|
|
4064
4023
|
description: string;
|
|
4065
4024
|
template: string;
|
|
@@ -4074,7 +4033,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
4074
4033
|
selectedValue: string;
|
|
4075
4034
|
}>;
|
|
4076
4035
|
name: string;
|
|
4077
|
-
version: string;
|
|
4078
4036
|
};
|
|
4079
4037
|
})[];
|
|
4080
4038
|
};
|
|
@@ -4163,7 +4121,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
4163
4121
|
selectedValue: string;
|
|
4164
4122
|
}>;
|
|
4165
4123
|
name: string;
|
|
4166
|
-
version: string;
|
|
4167
4124
|
displayName: string;
|
|
4168
4125
|
description: string;
|
|
4169
4126
|
template: string;
|
|
@@ -4178,7 +4135,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
4178
4135
|
selectedValue: string;
|
|
4179
4136
|
}>;
|
|
4180
4137
|
name: string;
|
|
4181
|
-
version: string;
|
|
4182
4138
|
};
|
|
4183
4139
|
})[];
|
|
4184
4140
|
};
|
|
@@ -4267,7 +4223,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
4267
4223
|
selectedValue: string;
|
|
4268
4224
|
}>;
|
|
4269
4225
|
name: string;
|
|
4270
|
-
version: string;
|
|
4271
4226
|
displayName: string;
|
|
4272
4227
|
description: string;
|
|
4273
4228
|
template: string;
|
|
@@ -4282,7 +4237,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
4282
4237
|
selectedValue: string;
|
|
4283
4238
|
}>;
|
|
4284
4239
|
name: string;
|
|
4285
|
-
version: string;
|
|
4286
4240
|
};
|
|
4287
4241
|
})[];
|
|
4288
4242
|
right: ({
|
|
@@ -4367,7 +4321,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
4367
4321
|
selectedValue: string;
|
|
4368
4322
|
}>;
|
|
4369
4323
|
name: string;
|
|
4370
|
-
version: string;
|
|
4371
4324
|
displayName: string;
|
|
4372
4325
|
description: string;
|
|
4373
4326
|
template: string;
|
|
@@ -4382,7 +4335,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
4382
4335
|
selectedValue: string;
|
|
4383
4336
|
}>;
|
|
4384
4337
|
name: string;
|
|
4385
|
-
version: string;
|
|
4386
4338
|
};
|
|
4387
4339
|
})[];
|
|
4388
4340
|
};
|
|
@@ -4471,7 +4423,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
4471
4423
|
selectedValue: string;
|
|
4472
4424
|
}>;
|
|
4473
4425
|
name: string;
|
|
4474
|
-
version: string;
|
|
4475
4426
|
displayName: string;
|
|
4476
4427
|
description: string;
|
|
4477
4428
|
template: string;
|
|
@@ -4486,7 +4437,6 @@ declare const PageContentsResolved: z.ZodObject<{
|
|
|
4486
4437
|
selectedValue: string;
|
|
4487
4438
|
}>;
|
|
4488
4439
|
name: string;
|
|
4489
|
-
version: string;
|
|
4490
4440
|
};
|
|
4491
4441
|
})[];
|
|
4492
4442
|
};
|
|
@@ -4533,6 +4483,18 @@ export declare class PageSingleColumLayoutBuilder {
|
|
|
4533
4483
|
reset(): PageSingleColumLayoutBuilder;
|
|
4534
4484
|
build(): PageLayout;
|
|
4535
4485
|
}
|
|
4486
|
+
/**
|
|
4487
|
+
* Use this builder for creating mock two-column layouts for tests.
|
|
4488
|
+
* @export
|
|
4489
|
+
* @class PageTwoColumnLayoutBuilder
|
|
4490
|
+
*/
|
|
4491
|
+
export declare class PageTwoColumnLayoutBuilder {
|
|
4492
|
+
private layout;
|
|
4493
|
+
addLeftNode(node: LayoutContentNodes): PageTwoColumnLayoutBuilder;
|
|
4494
|
+
addRightNode(node: LayoutContentNodes): PageTwoColumnLayoutBuilder;
|
|
4495
|
+
reset(): PageTwoColumnLayoutBuilder;
|
|
4496
|
+
build(): PageLayout;
|
|
4497
|
+
}
|
|
4536
4498
|
export declare class CustomLayoutBuilder {
|
|
4537
4499
|
private layout;
|
|
4538
4500
|
constructor(config: z.input<typeof CustomLayoutConfig>);
|
|
@@ -4554,6 +4516,8 @@ export declare class PageContentResolvedMockBuilder {
|
|
|
4554
4516
|
setLayouts(layouts: PageLayout[]): PageContentResolvedMockBuilder;
|
|
4555
4517
|
createLayout(): PageRawLayoutBuilder;
|
|
4556
4518
|
createCustomLayout(config: CustomLayoutConfig): CustomLayoutBuilder;
|
|
4519
|
+
createTwoColumnLayout(): PageTwoColumnLayoutBuilder;
|
|
4520
|
+
createRawLayout(): PageRawLayoutBuilder;
|
|
4557
4521
|
addLayout(layout: PageLayout): PageContentResolvedMockBuilder;
|
|
4558
4522
|
nodeFactory(): MockNodeFactory;
|
|
4559
4523
|
reset(): PageContentResolvedMockBuilder;
|
|
@@ -4568,6 +4532,7 @@ export declare class MockNodeFactory {
|
|
|
4568
4532
|
private variationBuilder;
|
|
4569
4533
|
constructor();
|
|
4570
4534
|
createNode(nodeType: ContentNodeTypes): LayoutContentNodes;
|
|
4535
|
+
createNodeWithId(nodeType: ContentNodeTypes, id: string): LayoutContentNodes;
|
|
4571
4536
|
createInvalidNode(nodeType: InvalidContentNodeTypes): LayoutContentNodes;
|
|
4572
4537
|
variationNodeBuilder(): VariationNodeBuilder;
|
|
4573
4538
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VariationNodeBuilder = exports.MockNodeFactory = exports.PageContentResolvedMockBuilder = exports.CustomLayoutBuilder = exports.PageSingleColumLayoutBuilder = exports.PageRawLayoutBuilder = void 0;
|
|
3
|
+
exports.VariationNodeBuilder = exports.MockNodeFactory = exports.PageContentResolvedMockBuilder = exports.CustomLayoutBuilder = exports.PageTwoColumnLayoutBuilder = exports.PageSingleColumLayoutBuilder = exports.PageRawLayoutBuilder = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const layouts_1 = require("../layouts");
|
|
6
6
|
const PageContentsMocks_1 = require("./PageContentsMocks");
|
|
@@ -64,6 +64,39 @@ class PageSingleColumLayoutBuilder {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
exports.PageSingleColumLayoutBuilder = PageSingleColumLayoutBuilder;
|
|
67
|
+
/**
|
|
68
|
+
* Use this builder for creating mock two-column layouts for tests.
|
|
69
|
+
* @export
|
|
70
|
+
* @class PageTwoColumnLayoutBuilder
|
|
71
|
+
*/
|
|
72
|
+
class PageTwoColumnLayoutBuilder {
|
|
73
|
+
constructor() {
|
|
74
|
+
this.layout = {
|
|
75
|
+
name: 'two-column',
|
|
76
|
+
content: {
|
|
77
|
+
left: [],
|
|
78
|
+
right: [],
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
addLeftNode(node) {
|
|
83
|
+
this.layout.content.left.push(node);
|
|
84
|
+
return this;
|
|
85
|
+
}
|
|
86
|
+
addRightNode(node) {
|
|
87
|
+
this.layout.content.right.push(node);
|
|
88
|
+
return this;
|
|
89
|
+
}
|
|
90
|
+
reset() {
|
|
91
|
+
this.layout.content.left = [];
|
|
92
|
+
this.layout.content.right = [];
|
|
93
|
+
return this;
|
|
94
|
+
}
|
|
95
|
+
build() {
|
|
96
|
+
return this.layout;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.PageTwoColumnLayoutBuilder = PageTwoColumnLayoutBuilder;
|
|
67
100
|
class PageContentResolvedMock {
|
|
68
101
|
constructor(pageContentsResolved) {
|
|
69
102
|
this.pageContentsResolved = pageContentsResolved;
|
|
@@ -139,6 +172,12 @@ class PageContentResolvedMockBuilder {
|
|
|
139
172
|
createCustomLayout(config) {
|
|
140
173
|
return new CustomLayoutBuilder(config);
|
|
141
174
|
}
|
|
175
|
+
createTwoColumnLayout() {
|
|
176
|
+
return new PageTwoColumnLayoutBuilder();
|
|
177
|
+
}
|
|
178
|
+
createRawLayout() {
|
|
179
|
+
return new PageRawLayoutBuilder();
|
|
180
|
+
}
|
|
142
181
|
addLayout(layout) {
|
|
143
182
|
this.pageContentsResolved.layouts.push(layout);
|
|
144
183
|
return this;
|
|
@@ -172,6 +211,10 @@ class MockNodeFactory {
|
|
|
172
211
|
const node = PageContentsMocks_1.VALID_CONTENT_NODES[nodeType];
|
|
173
212
|
return node;
|
|
174
213
|
}
|
|
214
|
+
createNodeWithId(nodeType, id) {
|
|
215
|
+
const node = { ...PageContentsMocks_1.VALID_CONTENT_NODES[nodeType], componentId: id };
|
|
216
|
+
return node;
|
|
217
|
+
}
|
|
175
218
|
createInvalidNode(nodeType) {
|
|
176
219
|
const node = PageContentsMocks_1.INVALID_CONTENT_NODES[nodeType];
|
|
177
220
|
return node;
|