@squiz/dx-page-contents-lib 1.75.1 → 1.76.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 +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 RawLayout: 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 RawLayout: 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 RawLayout: 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 RawLayout: 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;
|
|
@@ -448,6 +516,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
448
516
|
alignment: "left" | "center" | "right" | "justify";
|
|
449
517
|
} | undefined;
|
|
450
518
|
matrixIdentifier?: string | undefined;
|
|
519
|
+
} | {
|
|
520
|
+
type: "link-to-dam-asset";
|
|
521
|
+
nodeId: string;
|
|
522
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
523
|
+
damSystemType: "bynder";
|
|
524
|
+
damSystemIdentifier: string;
|
|
525
|
+
damObjectId: string;
|
|
526
|
+
attributes?: (Record<string, string> & {
|
|
527
|
+
target?: undefined;
|
|
528
|
+
href?: undefined;
|
|
529
|
+
}) | undefined;
|
|
530
|
+
formattingOptions?: {
|
|
531
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
532
|
+
} | undefined;
|
|
533
|
+
damAdditional?: {
|
|
534
|
+
variant?: string | undefined;
|
|
535
|
+
} | undefined;
|
|
451
536
|
}) & {
|
|
452
537
|
children: import("../layout-content").LayoutContentNodes[];
|
|
453
538
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[];
|
|
@@ -489,6 +574,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
489
574
|
alignment: "left" | "center" | "right" | "justify";
|
|
490
575
|
} | undefined;
|
|
491
576
|
matrixIdentifier?: string | undefined;
|
|
577
|
+
} | {
|
|
578
|
+
type: "link-to-dam-asset";
|
|
579
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
580
|
+
damSystemType: "bynder";
|
|
581
|
+
damSystemIdentifier: string;
|
|
582
|
+
damObjectId: string;
|
|
583
|
+
nodeId?: string | undefined;
|
|
584
|
+
attributes?: (Record<string, string> & {
|
|
585
|
+
target?: undefined;
|
|
586
|
+
href?: undefined;
|
|
587
|
+
}) | undefined;
|
|
588
|
+
formattingOptions?: {
|
|
589
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
590
|
+
} | undefined;
|
|
591
|
+
damAdditional?: {
|
|
592
|
+
variant?: string | undefined;
|
|
593
|
+
} | undefined;
|
|
492
594
|
} | {
|
|
493
595
|
type: "matrix-image";
|
|
494
596
|
matrixDomain: string;
|
|
@@ -638,6 +740,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
638
740
|
alignment: "left" | "center" | "right" | "justify";
|
|
639
741
|
} | undefined;
|
|
640
742
|
matrixIdentifier?: string | undefined;
|
|
743
|
+
} | {
|
|
744
|
+
type: "link-to-dam-asset";
|
|
745
|
+
nodeId: string;
|
|
746
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
747
|
+
damSystemType: "bynder";
|
|
748
|
+
damSystemIdentifier: string;
|
|
749
|
+
damObjectId: string;
|
|
750
|
+
attributes?: (Record<string, string> & {
|
|
751
|
+
target?: undefined;
|
|
752
|
+
href?: undefined;
|
|
753
|
+
}) | undefined;
|
|
754
|
+
formattingOptions?: {
|
|
755
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
756
|
+
} | undefined;
|
|
757
|
+
damAdditional?: {
|
|
758
|
+
variant?: string | undefined;
|
|
759
|
+
} | undefined;
|
|
641
760
|
}) & {
|
|
642
761
|
children: import("../layout-content").LayoutContentNodes[];
|
|
643
762
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[];
|
|
@@ -682,6 +801,23 @@ export declare const RawLayout: z.ZodObject<{
|
|
|
682
801
|
alignment: "left" | "center" | "right" | "justify";
|
|
683
802
|
} | undefined;
|
|
684
803
|
matrixIdentifier?: string | undefined;
|
|
804
|
+
} | {
|
|
805
|
+
type: "link-to-dam-asset";
|
|
806
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
807
|
+
damSystemType: "bynder";
|
|
808
|
+
damSystemIdentifier: string;
|
|
809
|
+
damObjectId: string;
|
|
810
|
+
nodeId?: string | undefined;
|
|
811
|
+
attributes?: (Record<string, string> & {
|
|
812
|
+
target?: undefined;
|
|
813
|
+
href?: undefined;
|
|
814
|
+
}) | undefined;
|
|
815
|
+
formattingOptions?: {
|
|
816
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
817
|
+
} | undefined;
|
|
818
|
+
damAdditional?: {
|
|
819
|
+
variant?: string | undefined;
|
|
820
|
+
} | undefined;
|
|
685
821
|
} | {
|
|
686
822
|
type: "matrix-image";
|
|
687
823
|
matrixDomain: string;
|
|
@@ -78,6 +78,23 @@ export declare const SingleColumnLayout: 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 SingleColumnLayout: 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 SingleColumnLayout: 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 SingleColumnLayout: 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;
|
|
@@ -448,6 +516,23 @@ export declare const SingleColumnLayout: z.ZodObject<{
|
|
|
448
516
|
alignment: "left" | "center" | "right" | "justify";
|
|
449
517
|
} | undefined;
|
|
450
518
|
matrixIdentifier?: string | undefined;
|
|
519
|
+
} | {
|
|
520
|
+
type: "link-to-dam-asset";
|
|
521
|
+
nodeId: string;
|
|
522
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
523
|
+
damSystemType: "bynder";
|
|
524
|
+
damSystemIdentifier: string;
|
|
525
|
+
damObjectId: string;
|
|
526
|
+
attributes?: (Record<string, string> & {
|
|
527
|
+
target?: undefined;
|
|
528
|
+
href?: undefined;
|
|
529
|
+
}) | undefined;
|
|
530
|
+
formattingOptions?: {
|
|
531
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
532
|
+
} | undefined;
|
|
533
|
+
damAdditional?: {
|
|
534
|
+
variant?: string | undefined;
|
|
535
|
+
} | undefined;
|
|
451
536
|
}) & {
|
|
452
537
|
children: import("../layout-content").LayoutContentNodes[];
|
|
453
538
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[];
|
|
@@ -489,6 +574,23 @@ export declare const SingleColumnLayout: z.ZodObject<{
|
|
|
489
574
|
alignment: "left" | "center" | "right" | "justify";
|
|
490
575
|
} | undefined;
|
|
491
576
|
matrixIdentifier?: string | undefined;
|
|
577
|
+
} | {
|
|
578
|
+
type: "link-to-dam-asset";
|
|
579
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
580
|
+
damSystemType: "bynder";
|
|
581
|
+
damSystemIdentifier: string;
|
|
582
|
+
damObjectId: string;
|
|
583
|
+
nodeId?: string | undefined;
|
|
584
|
+
attributes?: (Record<string, string> & {
|
|
585
|
+
target?: undefined;
|
|
586
|
+
href?: undefined;
|
|
587
|
+
}) | undefined;
|
|
588
|
+
formattingOptions?: {
|
|
589
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
590
|
+
} | undefined;
|
|
591
|
+
damAdditional?: {
|
|
592
|
+
variant?: string | undefined;
|
|
593
|
+
} | undefined;
|
|
492
594
|
} | {
|
|
493
595
|
type: "matrix-image";
|
|
494
596
|
matrixDomain: string;
|
|
@@ -638,6 +740,23 @@ export declare const SingleColumnLayout: z.ZodObject<{
|
|
|
638
740
|
alignment: "left" | "center" | "right" | "justify";
|
|
639
741
|
} | undefined;
|
|
640
742
|
matrixIdentifier?: string | undefined;
|
|
743
|
+
} | {
|
|
744
|
+
type: "link-to-dam-asset";
|
|
745
|
+
nodeId: string;
|
|
746
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
747
|
+
damSystemType: "bynder";
|
|
748
|
+
damSystemIdentifier: string;
|
|
749
|
+
damObjectId: string;
|
|
750
|
+
attributes?: (Record<string, string> & {
|
|
751
|
+
target?: undefined;
|
|
752
|
+
href?: undefined;
|
|
753
|
+
}) | undefined;
|
|
754
|
+
formattingOptions?: {
|
|
755
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
756
|
+
} | undefined;
|
|
757
|
+
damAdditional?: {
|
|
758
|
+
variant?: string | undefined;
|
|
759
|
+
} | undefined;
|
|
641
760
|
}) & {
|
|
642
761
|
children: import("../layout-content").LayoutContentNodes[];
|
|
643
762
|
})) | import("../layout-content").DeveloperDefinedLayoutNode)[];
|
|
@@ -682,6 +801,23 @@ export declare const SingleColumnLayout: z.ZodObject<{
|
|
|
682
801
|
alignment: "left" | "center" | "right" | "justify";
|
|
683
802
|
} | undefined;
|
|
684
803
|
matrixIdentifier?: string | undefined;
|
|
804
|
+
} | {
|
|
805
|
+
type: "link-to-dam-asset";
|
|
806
|
+
target: "_blank" | "_self" | "_parent" | "_top";
|
|
807
|
+
damSystemType: "bynder";
|
|
808
|
+
damSystemIdentifier: string;
|
|
809
|
+
damObjectId: string;
|
|
810
|
+
nodeId?: string | undefined;
|
|
811
|
+
attributes?: (Record<string, string> & {
|
|
812
|
+
target?: undefined;
|
|
813
|
+
href?: undefined;
|
|
814
|
+
}) | undefined;
|
|
815
|
+
formattingOptions?: {
|
|
816
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
817
|
+
} | undefined;
|
|
818
|
+
damAdditional?: {
|
|
819
|
+
variant?: string | undefined;
|
|
820
|
+
} | undefined;
|
|
685
821
|
} | {
|
|
686
822
|
type: "matrix-image";
|
|
687
823
|
matrixDomain: string;
|