@squiz/dx-page-contents-lib 1.75.1 → 1.75.2
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 +66 -0
- package/lib/formatted-text.js +25 -1
- package/lib/formatted-text.js.map +1 -1
- package/lib/formatted-text.spec.js +48 -0
- package/lib/formatted-text.spec.js.map +1 -1
- package/lib/layout-content.d.ts +117 -1
- package/lib/layout-content.js +2 -1
- package/lib/layout-content.js.map +1 -1
- package/lib/layouts/custom-layout.d.ts +153 -0
- package/lib/layouts/index.d.ts +680 -0
- package/lib/layouts/raw.layout.d.ts +136 -0
- package/lib/layouts/single-column.layout.d.ts +136 -0
- package/lib/layouts/two-column.layout.d.ts +272 -0
- package/lib/mocks/PageContentsHelpers.d.ts +918 -0
- package/lib/mocks/PageContentsMocks.js +9 -0
- package/lib/mocks/PageContentsMocks.js.map +1 -1
- package/lib/page-contents-lib.d.ts +34 -0
- package/package.json +1 -1
|
@@ -78,6 +78,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
78
78
|
alignment: "left" | "center" | "right" | "justify";
|
|
79
79
|
} | undefined;
|
|
80
80
|
matrixIdentifier?: string | undefined;
|
|
81
|
+
} | {
|
|
82
|
+
type: "link-to-dam-asset";
|
|
83
|
+
nodeId: string;
|
|
84
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
85
|
+
damSystemType: "bynder";
|
|
86
|
+
damSystemIdentifier: string;
|
|
87
|
+
damObjectId: string;
|
|
88
|
+
attributes?: (Record<string, string> & {
|
|
89
|
+
target?: undefined;
|
|
90
|
+
href?: undefined;
|
|
91
|
+
}) | undefined;
|
|
92
|
+
formattingOptions?: {
|
|
93
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
94
|
+
} | undefined;
|
|
95
|
+
damAdditional?: {
|
|
96
|
+
variant?: string | undefined;
|
|
97
|
+
} | undefined;
|
|
81
98
|
}) & {
|
|
82
99
|
children: import("../layout-content").LayoutContentNodes[];
|
|
83
100
|
}), z.ZodTypeDef, {
|
|
@@ -117,6 +134,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
117
134
|
alignment: "left" | "center" | "right" | "justify";
|
|
118
135
|
} | undefined;
|
|
119
136
|
matrixIdentifier?: string | undefined;
|
|
137
|
+
} | {
|
|
138
|
+
type: "link-to-dam-asset";
|
|
139
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
140
|
+
damSystemType: "bynder";
|
|
141
|
+
damSystemIdentifier: string;
|
|
142
|
+
damObjectId: string;
|
|
143
|
+
nodeId?: string | undefined;
|
|
144
|
+
attributes?: (Record<string, string> & {
|
|
145
|
+
target?: undefined;
|
|
146
|
+
href?: undefined;
|
|
147
|
+
}) | undefined;
|
|
148
|
+
formattingOptions?: {
|
|
149
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
150
|
+
} | undefined;
|
|
151
|
+
damAdditional?: {
|
|
152
|
+
variant?: string | undefined;
|
|
153
|
+
} | undefined;
|
|
120
154
|
} | {
|
|
121
155
|
type: "matrix-image";
|
|
122
156
|
matrixDomain: string;
|
|
@@ -262,6 +296,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
262
296
|
alignment: "left" | "center" | "right" | "justify";
|
|
263
297
|
} | undefined;
|
|
264
298
|
matrixIdentifier?: string | undefined;
|
|
299
|
+
} | {
|
|
300
|
+
type: "link-to-dam-asset";
|
|
301
|
+
nodeId: string;
|
|
302
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
303
|
+
damSystemType: "bynder";
|
|
304
|
+
damSystemIdentifier: string;
|
|
305
|
+
damObjectId: string;
|
|
306
|
+
attributes?: (Record<string, string> & {
|
|
307
|
+
target?: undefined;
|
|
308
|
+
href?: undefined;
|
|
309
|
+
}) | undefined;
|
|
310
|
+
formattingOptions?: {
|
|
311
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
312
|
+
} | undefined;
|
|
313
|
+
damAdditional?: {
|
|
314
|
+
variant?: string | undefined;
|
|
315
|
+
} | undefined;
|
|
265
316
|
}) & {
|
|
266
317
|
children: import("../layout-content").LayoutContentNodes[];
|
|
267
318
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[], ({
|
|
@@ -301,6 +352,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
301
352
|
alignment: "left" | "center" | "right" | "justify";
|
|
302
353
|
} | undefined;
|
|
303
354
|
matrixIdentifier?: string | undefined;
|
|
355
|
+
} | {
|
|
356
|
+
type: "link-to-dam-asset";
|
|
357
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
358
|
+
damSystemType: "bynder";
|
|
359
|
+
damSystemIdentifier: string;
|
|
360
|
+
damObjectId: string;
|
|
361
|
+
nodeId?: string | undefined;
|
|
362
|
+
attributes?: (Record<string, string> & {
|
|
363
|
+
target?: undefined;
|
|
364
|
+
href?: undefined;
|
|
365
|
+
}) | undefined;
|
|
366
|
+
formattingOptions?: {
|
|
367
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
368
|
+
} | undefined;
|
|
369
|
+
damAdditional?: {
|
|
370
|
+
variant?: string | undefined;
|
|
371
|
+
} | undefined;
|
|
304
372
|
} | {
|
|
305
373
|
type: "matrix-image";
|
|
306
374
|
matrixDomain: string;
|
|
@@ -447,6 +515,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
447
515
|
alignment: "left" | "center" | "right" | "justify";
|
|
448
516
|
} | undefined;
|
|
449
517
|
matrixIdentifier?: string | undefined;
|
|
518
|
+
} | {
|
|
519
|
+
type: "link-to-dam-asset";
|
|
520
|
+
nodeId: string;
|
|
521
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
522
|
+
damSystemType: "bynder";
|
|
523
|
+
damSystemIdentifier: string;
|
|
524
|
+
damObjectId: string;
|
|
525
|
+
attributes?: (Record<string, string> & {
|
|
526
|
+
target?: undefined;
|
|
527
|
+
href?: undefined;
|
|
528
|
+
}) | undefined;
|
|
529
|
+
formattingOptions?: {
|
|
530
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
531
|
+
} | undefined;
|
|
532
|
+
damAdditional?: {
|
|
533
|
+
variant?: string | undefined;
|
|
534
|
+
} | undefined;
|
|
450
535
|
}) & {
|
|
451
536
|
children: import("../layout-content").LayoutContentNodes[];
|
|
452
537
|
}), z.ZodTypeDef, {
|
|
@@ -486,6 +571,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
486
571
|
alignment: "left" | "center" | "right" | "justify";
|
|
487
572
|
} | undefined;
|
|
488
573
|
matrixIdentifier?: string | undefined;
|
|
574
|
+
} | {
|
|
575
|
+
type: "link-to-dam-asset";
|
|
576
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
577
|
+
damSystemType: "bynder";
|
|
578
|
+
damSystemIdentifier: string;
|
|
579
|
+
damObjectId: string;
|
|
580
|
+
nodeId?: string | undefined;
|
|
581
|
+
attributes?: (Record<string, string> & {
|
|
582
|
+
target?: undefined;
|
|
583
|
+
href?: undefined;
|
|
584
|
+
}) | undefined;
|
|
585
|
+
formattingOptions?: {
|
|
586
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
587
|
+
} | undefined;
|
|
588
|
+
damAdditional?: {
|
|
589
|
+
variant?: string | undefined;
|
|
590
|
+
} | undefined;
|
|
489
591
|
} | {
|
|
490
592
|
type: "matrix-image";
|
|
491
593
|
matrixDomain: string;
|
|
@@ -631,6 +733,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
631
733
|
alignment: "left" | "center" | "right" | "justify";
|
|
632
734
|
} | undefined;
|
|
633
735
|
matrixIdentifier?: string | undefined;
|
|
736
|
+
} | {
|
|
737
|
+
type: "link-to-dam-asset";
|
|
738
|
+
nodeId: string;
|
|
739
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
740
|
+
damSystemType: "bynder";
|
|
741
|
+
damSystemIdentifier: string;
|
|
742
|
+
damObjectId: string;
|
|
743
|
+
attributes?: (Record<string, string> & {
|
|
744
|
+
target?: undefined;
|
|
745
|
+
href?: undefined;
|
|
746
|
+
}) | undefined;
|
|
747
|
+
formattingOptions?: {
|
|
748
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
749
|
+
} | undefined;
|
|
750
|
+
damAdditional?: {
|
|
751
|
+
variant?: string | undefined;
|
|
752
|
+
} | undefined;
|
|
634
753
|
}) & {
|
|
635
754
|
children: import("../layout-content").LayoutContentNodes[];
|
|
636
755
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[], ({
|
|
@@ -670,6 +789,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
670
789
|
alignment: "left" | "center" | "right" | "justify";
|
|
671
790
|
} | undefined;
|
|
672
791
|
matrixIdentifier?: string | undefined;
|
|
792
|
+
} | {
|
|
793
|
+
type: "link-to-dam-asset";
|
|
794
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
795
|
+
damSystemType: "bynder";
|
|
796
|
+
damSystemIdentifier: string;
|
|
797
|
+
damObjectId: string;
|
|
798
|
+
nodeId?: string | undefined;
|
|
799
|
+
attributes?: (Record<string, string> & {
|
|
800
|
+
target?: undefined;
|
|
801
|
+
href?: undefined;
|
|
802
|
+
}) | undefined;
|
|
803
|
+
formattingOptions?: {
|
|
804
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
805
|
+
} | undefined;
|
|
806
|
+
damAdditional?: {
|
|
807
|
+
variant?: string | undefined;
|
|
808
|
+
} | undefined;
|
|
673
809
|
} | {
|
|
674
810
|
type: "matrix-image";
|
|
675
811
|
matrixDomain: string;
|
|
@@ -817,6 +953,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
817
953
|
alignment: "left" | "center" | "right" | "justify";
|
|
818
954
|
} | undefined;
|
|
819
955
|
matrixIdentifier?: string | undefined;
|
|
956
|
+
} | {
|
|
957
|
+
type: "link-to-dam-asset";
|
|
958
|
+
nodeId: string;
|
|
959
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
960
|
+
damSystemType: "bynder";
|
|
961
|
+
damSystemIdentifier: string;
|
|
962
|
+
damObjectId: string;
|
|
963
|
+
attributes?: (Record<string, string> & {
|
|
964
|
+
target?: undefined;
|
|
965
|
+
href?: undefined;
|
|
966
|
+
}) | undefined;
|
|
967
|
+
formattingOptions?: {
|
|
968
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
969
|
+
} | undefined;
|
|
970
|
+
damAdditional?: {
|
|
971
|
+
variant?: string | undefined;
|
|
972
|
+
} | undefined;
|
|
820
973
|
}) & {
|
|
821
974
|
children: import("../layout-content").LayoutContentNodes[];
|
|
822
975
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[];
|
|
@@ -896,6 +1049,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
896
1049
|
alignment: "left" | "center" | "right" | "justify";
|
|
897
1050
|
} | undefined;
|
|
898
1051
|
matrixIdentifier?: string | undefined;
|
|
1052
|
+
} | {
|
|
1053
|
+
type: "link-to-dam-asset";
|
|
1054
|
+
nodeId: string;
|
|
1055
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
1056
|
+
damSystemType: "bynder";
|
|
1057
|
+
damSystemIdentifier: string;
|
|
1058
|
+
damObjectId: string;
|
|
1059
|
+
attributes?: (Record<string, string> & {
|
|
1060
|
+
target?: undefined;
|
|
1061
|
+
href?: undefined;
|
|
1062
|
+
}) | undefined;
|
|
1063
|
+
formattingOptions?: {
|
|
1064
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
1065
|
+
} | undefined;
|
|
1066
|
+
damAdditional?: {
|
|
1067
|
+
variant?: string | undefined;
|
|
1068
|
+
} | undefined;
|
|
899
1069
|
}) & {
|
|
900
1070
|
children: import("../layout-content").LayoutContentNodes[];
|
|
901
1071
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[];
|
|
@@ -937,6 +1107,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
937
1107
|
alignment: "left" | "center" | "right" | "justify";
|
|
938
1108
|
} | undefined;
|
|
939
1109
|
matrixIdentifier?: string | undefined;
|
|
1110
|
+
} | {
|
|
1111
|
+
type: "link-to-dam-asset";
|
|
1112
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
1113
|
+
damSystemType: "bynder";
|
|
1114
|
+
damSystemIdentifier: string;
|
|
1115
|
+
damObjectId: string;
|
|
1116
|
+
nodeId?: string | undefined;
|
|
1117
|
+
attributes?: (Record<string, string> & {
|
|
1118
|
+
target?: undefined;
|
|
1119
|
+
href?: undefined;
|
|
1120
|
+
}) | undefined;
|
|
1121
|
+
formattingOptions?: {
|
|
1122
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
1123
|
+
} | undefined;
|
|
1124
|
+
damAdditional?: {
|
|
1125
|
+
variant?: string | undefined;
|
|
1126
|
+
} | undefined;
|
|
940
1127
|
} | {
|
|
941
1128
|
type: "matrix-image";
|
|
942
1129
|
matrixDomain: string;
|
|
@@ -1044,6 +1231,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
1044
1231
|
alignment: "left" | "center" | "right" | "justify";
|
|
1045
1232
|
} | undefined;
|
|
1046
1233
|
matrixIdentifier?: string | undefined;
|
|
1234
|
+
} | {
|
|
1235
|
+
type: "link-to-dam-asset";
|
|
1236
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
1237
|
+
damSystemType: "bynder";
|
|
1238
|
+
damSystemIdentifier: string;
|
|
1239
|
+
damObjectId: string;
|
|
1240
|
+
nodeId?: string | undefined;
|
|
1241
|
+
attributes?: (Record<string, string> & {
|
|
1242
|
+
target?: undefined;
|
|
1243
|
+
href?: undefined;
|
|
1244
|
+
}) | undefined;
|
|
1245
|
+
formattingOptions?: {
|
|
1246
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
1247
|
+
} | undefined;
|
|
1248
|
+
damAdditional?: {
|
|
1249
|
+
variant?: string | undefined;
|
|
1250
|
+
} | undefined;
|
|
1047
1251
|
} | {
|
|
1048
1252
|
type: "matrix-image";
|
|
1049
1253
|
matrixDomain: string;
|
|
@@ -1193,6 +1397,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
1193
1397
|
alignment: "left" | "center" | "right" | "justify";
|
|
1194
1398
|
} | undefined;
|
|
1195
1399
|
matrixIdentifier?: string | undefined;
|
|
1400
|
+
} | {
|
|
1401
|
+
type: "link-to-dam-asset";
|
|
1402
|
+
nodeId: string;
|
|
1403
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
1404
|
+
damSystemType: "bynder";
|
|
1405
|
+
damSystemIdentifier: string;
|
|
1406
|
+
damObjectId: string;
|
|
1407
|
+
attributes?: (Record<string, string> & {
|
|
1408
|
+
target?: undefined;
|
|
1409
|
+
href?: undefined;
|
|
1410
|
+
}) | undefined;
|
|
1411
|
+
formattingOptions?: {
|
|
1412
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
1413
|
+
} | undefined;
|
|
1414
|
+
damAdditional?: {
|
|
1415
|
+
variant?: string | undefined;
|
|
1416
|
+
} | undefined;
|
|
1196
1417
|
}) & {
|
|
1197
1418
|
children: import("../layout-content").LayoutContentNodes[];
|
|
1198
1419
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[];
|
|
@@ -1272,6 +1493,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
1272
1493
|
alignment: "left" | "center" | "right" | "justify";
|
|
1273
1494
|
} | undefined;
|
|
1274
1495
|
matrixIdentifier?: string | undefined;
|
|
1496
|
+
} | {
|
|
1497
|
+
type: "link-to-dam-asset";
|
|
1498
|
+
nodeId: string;
|
|
1499
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
1500
|
+
damSystemType: "bynder";
|
|
1501
|
+
damSystemIdentifier: string;
|
|
1502
|
+
damObjectId: string;
|
|
1503
|
+
attributes?: (Record<string, string> & {
|
|
1504
|
+
target?: undefined;
|
|
1505
|
+
href?: undefined;
|
|
1506
|
+
}) | undefined;
|
|
1507
|
+
formattingOptions?: {
|
|
1508
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
1509
|
+
} | undefined;
|
|
1510
|
+
damAdditional?: {
|
|
1511
|
+
variant?: string | undefined;
|
|
1512
|
+
} | undefined;
|
|
1275
1513
|
}) & {
|
|
1276
1514
|
children: import("../layout-content").LayoutContentNodes[];
|
|
1277
1515
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[];
|
|
@@ -1316,6 +1554,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
1316
1554
|
alignment: "left" | "center" | "right" | "justify";
|
|
1317
1555
|
} | undefined;
|
|
1318
1556
|
matrixIdentifier?: string | undefined;
|
|
1557
|
+
} | {
|
|
1558
|
+
type: "link-to-dam-asset";
|
|
1559
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
1560
|
+
damSystemType: "bynder";
|
|
1561
|
+
damSystemIdentifier: string;
|
|
1562
|
+
damObjectId: string;
|
|
1563
|
+
nodeId?: string | undefined;
|
|
1564
|
+
attributes?: (Record<string, string> & {
|
|
1565
|
+
target?: undefined;
|
|
1566
|
+
href?: undefined;
|
|
1567
|
+
}) | undefined;
|
|
1568
|
+
formattingOptions?: {
|
|
1569
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
1570
|
+
} | undefined;
|
|
1571
|
+
damAdditional?: {
|
|
1572
|
+
variant?: string | undefined;
|
|
1573
|
+
} | undefined;
|
|
1319
1574
|
} | {
|
|
1320
1575
|
type: "matrix-image";
|
|
1321
1576
|
matrixDomain: string;
|
|
@@ -1423,6 +1678,23 @@ export declare const TwoColumnLayout: z.ZodObject<{
|
|
|
1423
1678
|
alignment: "left" | "center" | "right" | "justify";
|
|
1424
1679
|
} | undefined;
|
|
1425
1680
|
matrixIdentifier?: string | undefined;
|
|
1681
|
+
} | {
|
|
1682
|
+
type: "link-to-dam-asset";
|
|
1683
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
1684
|
+
damSystemType: "bynder";
|
|
1685
|
+
damSystemIdentifier: string;
|
|
1686
|
+
damObjectId: string;
|
|
1687
|
+
nodeId?: string | undefined;
|
|
1688
|
+
attributes?: (Record<string, string> & {
|
|
1689
|
+
target?: undefined;
|
|
1690
|
+
href?: undefined;
|
|
1691
|
+
}) | undefined;
|
|
1692
|
+
formattingOptions?: {
|
|
1693
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
1694
|
+
} | undefined;
|
|
1695
|
+
damAdditional?: {
|
|
1696
|
+
variant?: string | undefined;
|
|
1697
|
+
} | undefined;
|
|
1426
1698
|
} | {
|
|
1427
1699
|
type: "matrix-image";
|
|
1428
1700
|
matrixDomain: string;
|