@squiz/dx-page-contents-lib 1.76.1 → 1.77.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 +31 -0
- package/lib/formatted-text.js +11 -9
- package/lib/formatted-text.js.map +1 -1
- package/lib/layout-content.d.ts +52 -0
- package/lib/layouts/custom-layout.d.ts +63 -0
- package/lib/layouts/index.d.ts +280 -0
- package/lib/layouts/raw.layout.d.ts +56 -0
- package/lib/layouts/single-column.layout.d.ts +56 -0
- package/lib/layouts/two-column.layout.d.ts +112 -0
- package/lib/mocks/PageContentsHelpers.d.ts +378 -0
- package/lib/mocks/PageContentsMocks.d.ts +6 -0
- package/lib/page-contents-lib.d.ts +14 -0
- package/package.json +1 -1
package/lib/formatted-text.d.ts
CHANGED
|
@@ -82,12 +82,15 @@ export declare const TagNode: z.ZodObject<{
|
|
|
82
82
|
export declare const FragmentNode: z.ZodObject<{
|
|
83
83
|
nodeId: z.ZodDefault<z.ZodString>;
|
|
84
84
|
type: z.ZodLiteral<"fragment">;
|
|
85
|
+
i18n: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>>;
|
|
85
86
|
}, "strip", z.ZodTypeAny, {
|
|
86
87
|
type: "fragment";
|
|
87
88
|
nodeId: string;
|
|
89
|
+
i18n?: Record<string, {}> | undefined;
|
|
88
90
|
}, {
|
|
89
91
|
type: "fragment";
|
|
90
92
|
nodeId?: string | undefined;
|
|
93
|
+
i18n?: Record<string, {}> | undefined;
|
|
91
94
|
}>;
|
|
92
95
|
export declare const LinkToMatrixAssetNode: z.ZodObject<{
|
|
93
96
|
nodeId: z.ZodDefault<z.ZodString>;
|
|
@@ -333,11 +336,33 @@ export declare const ComponentNode: z.ZodObject<{
|
|
|
333
336
|
content: Record<string, unknown>;
|
|
334
337
|
schemaName: string;
|
|
335
338
|
}>]>>;
|
|
339
|
+
i18n: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
340
|
+
id: z.ZodString;
|
|
341
|
+
}, "strip", z.ZodTypeAny, {
|
|
342
|
+
id: string;
|
|
343
|
+
}, {
|
|
344
|
+
id: string;
|
|
345
|
+
}>, z.ZodObject<{
|
|
346
|
+
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
347
|
+
schemaName: z.ZodString;
|
|
348
|
+
}, "strip", z.ZodTypeAny, {
|
|
349
|
+
content: Record<string, unknown>;
|
|
350
|
+
schemaName: string;
|
|
351
|
+
}, {
|
|
352
|
+
content: Record<string, unknown>;
|
|
353
|
+
schemaName: string;
|
|
354
|
+
}>]>>>;
|
|
336
355
|
}, "strip", z.ZodTypeAny, {
|
|
337
356
|
type: "component";
|
|
338
357
|
nodeId: string;
|
|
339
358
|
componentId: string;
|
|
340
359
|
componentSet: string;
|
|
360
|
+
i18n?: Record<string, {
|
|
361
|
+
id: string;
|
|
362
|
+
} | {
|
|
363
|
+
content: Record<string, unknown>;
|
|
364
|
+
schemaName: string;
|
|
365
|
+
}> | undefined;
|
|
341
366
|
componentType?: "server" | "edge" | undefined;
|
|
342
367
|
contentItem?: {
|
|
343
368
|
id: string;
|
|
@@ -350,6 +375,12 @@ export declare const ComponentNode: z.ZodObject<{
|
|
|
350
375
|
componentId: string;
|
|
351
376
|
componentSet: string;
|
|
352
377
|
nodeId?: string | undefined;
|
|
378
|
+
i18n?: Record<string, {
|
|
379
|
+
id: string;
|
|
380
|
+
} | {
|
|
381
|
+
content: Record<string, unknown>;
|
|
382
|
+
schemaName: string;
|
|
383
|
+
}> | undefined;
|
|
353
384
|
componentType?: "server" | "edge" | undefined;
|
|
354
385
|
contentItem?: {
|
|
355
386
|
id: string;
|
package/lib/formatted-text.js
CHANGED
|
@@ -40,6 +40,7 @@ exports.FragmentNode = zod_1.z.object({
|
|
|
40
40
|
.uuid()
|
|
41
41
|
.default(() => (0, crypto_1.randomUUID)()),
|
|
42
42
|
type: zod_1.z.literal('fragment'),
|
|
43
|
+
i18n: zod_1.z.record(zod_1.z.string(), zod_1.z.object({})).optional(),
|
|
43
44
|
});
|
|
44
45
|
exports.LinkToMatrixAssetNode = zod_1.z.object({
|
|
45
46
|
nodeId: zod_1.z
|
|
@@ -123,6 +124,14 @@ exports.DamImageNode = zod_1.z.object({
|
|
|
123
124
|
}))
|
|
124
125
|
.optional(),
|
|
125
126
|
});
|
|
127
|
+
const ContentItem = zod_1.z
|
|
128
|
+
.object({
|
|
129
|
+
id: zod_1.z.string(),
|
|
130
|
+
})
|
|
131
|
+
.or(zod_1.z.object({
|
|
132
|
+
content: zod_1.z.record(zod_1.z.unknown()),
|
|
133
|
+
schemaName: zod_1.z.string(),
|
|
134
|
+
}));
|
|
126
135
|
exports.ComponentNode = zod_1.z.object({
|
|
127
136
|
nodeId: zod_1.z
|
|
128
137
|
.string()
|
|
@@ -132,15 +141,8 @@ exports.ComponentNode = zod_1.z.object({
|
|
|
132
141
|
componentType: zod_1.z.enum(['server', 'edge']).optional(),
|
|
133
142
|
componentId: zod_1.z.string(),
|
|
134
143
|
componentSet: zod_1.z.string(),
|
|
135
|
-
contentItem:
|
|
136
|
-
|
|
137
|
-
id: zod_1.z.string(),
|
|
138
|
-
})
|
|
139
|
-
.or(zod_1.z.object({
|
|
140
|
-
content: zod_1.z.record(zod_1.z.unknown()),
|
|
141
|
-
schemaName: zod_1.z.string(),
|
|
142
|
-
}))
|
|
143
|
-
.optional(),
|
|
144
|
+
contentItem: ContentItem.optional(),
|
|
145
|
+
i18n: zod_1.z.record(zod_1.z.string(), ContentItem).optional(),
|
|
144
146
|
});
|
|
145
147
|
exports.Variant = zod_1.z.object({
|
|
146
148
|
conditions: zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatted-text.js","sourceRoot":"","sources":["../src/formatted-text.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAoC;AAEpC,sEAAsE;AACtE,MAAM,iBAAiB,G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;CACJ,CAAC,CAAC"}
|
package/lib/layout-content.d.ts
CHANGED
|
@@ -26,11 +26,33 @@ declare const BaseLayoutContentNodes: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
26
26
|
content: Record<string, unknown>;
|
|
27
27
|
schemaName: string;
|
|
28
28
|
}>]>>;
|
|
29
|
+
i18n: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
id: string;
|
|
33
|
+
}, {
|
|
34
|
+
id: string;
|
|
35
|
+
}>, z.ZodObject<{
|
|
36
|
+
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
37
|
+
schemaName: z.ZodString;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
content: Record<string, unknown>;
|
|
40
|
+
schemaName: string;
|
|
41
|
+
}, {
|
|
42
|
+
content: Record<string, unknown>;
|
|
43
|
+
schemaName: string;
|
|
44
|
+
}>]>>>;
|
|
29
45
|
}, "strip", z.ZodTypeAny, {
|
|
30
46
|
type: "component";
|
|
31
47
|
nodeId: string;
|
|
32
48
|
componentId: string;
|
|
33
49
|
componentSet: string;
|
|
50
|
+
i18n?: Record<string, {
|
|
51
|
+
id: string;
|
|
52
|
+
} | {
|
|
53
|
+
content: Record<string, unknown>;
|
|
54
|
+
schemaName: string;
|
|
55
|
+
}> | undefined;
|
|
34
56
|
componentType?: "server" | "edge" | undefined;
|
|
35
57
|
contentItem?: {
|
|
36
58
|
id: string;
|
|
@@ -43,6 +65,12 @@ declare const BaseLayoutContentNodes: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
43
65
|
componentId: string;
|
|
44
66
|
componentSet: string;
|
|
45
67
|
nodeId?: string | undefined;
|
|
68
|
+
i18n?: Record<string, {
|
|
69
|
+
id: string;
|
|
70
|
+
} | {
|
|
71
|
+
content: Record<string, unknown>;
|
|
72
|
+
schemaName: string;
|
|
73
|
+
}> | undefined;
|
|
46
74
|
componentType?: "server" | "edge" | undefined;
|
|
47
75
|
contentItem?: {
|
|
48
76
|
id: string;
|
|
@@ -131,12 +159,15 @@ declare const BaseLayoutContentNodes: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
131
159
|
}>, z.ZodObject<{
|
|
132
160
|
nodeId: z.ZodDefault<z.ZodString>;
|
|
133
161
|
type: z.ZodLiteral<"fragment">;
|
|
162
|
+
i18n: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>>;
|
|
134
163
|
}, "strip", z.ZodTypeAny, {
|
|
135
164
|
type: "fragment";
|
|
136
165
|
nodeId: string;
|
|
166
|
+
i18n?: Record<string, {}> | undefined;
|
|
137
167
|
}, {
|
|
138
168
|
type: "fragment";
|
|
139
169
|
nodeId?: string | undefined;
|
|
170
|
+
i18n?: Record<string, {}> | undefined;
|
|
140
171
|
}>, z.ZodObject<{
|
|
141
172
|
nodeId: z.ZodDefault<z.ZodString>;
|
|
142
173
|
type: z.ZodLiteral<"link-to-matrix-asset">;
|
|
@@ -402,6 +433,7 @@ export declare const LayoutContentNodes: z.ZodUnion<[z.ZodType<SimpleContentNode
|
|
|
402
433
|
} | {
|
|
403
434
|
type: "fragment";
|
|
404
435
|
nodeId?: string | undefined;
|
|
436
|
+
i18n?: Record<string, {}> | undefined;
|
|
405
437
|
} | {
|
|
406
438
|
type: "link-to-matrix-asset";
|
|
407
439
|
matrixDomain: string;
|
|
@@ -465,6 +497,12 @@ export declare const LayoutContentNodes: z.ZodUnion<[z.ZodType<SimpleContentNode
|
|
|
465
497
|
componentId: string;
|
|
466
498
|
componentSet: string;
|
|
467
499
|
nodeId?: string | undefined;
|
|
500
|
+
i18n?: Record<string, {
|
|
501
|
+
id: string;
|
|
502
|
+
} | {
|
|
503
|
+
content: Record<string, unknown>;
|
|
504
|
+
schemaName: string;
|
|
505
|
+
}> | undefined;
|
|
468
506
|
componentType?: "server" | "edge" | undefined;
|
|
469
507
|
contentItem?: {
|
|
470
508
|
id: string;
|
|
@@ -531,6 +569,7 @@ export declare const PageLayoutContent: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.Zo
|
|
|
531
569
|
} | {
|
|
532
570
|
type: "fragment";
|
|
533
571
|
nodeId?: string | undefined;
|
|
572
|
+
i18n?: Record<string, {}> | undefined;
|
|
534
573
|
} | {
|
|
535
574
|
type: "link-to-matrix-asset";
|
|
536
575
|
matrixDomain: string;
|
|
@@ -594,6 +633,12 @@ export declare const PageLayoutContent: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.Zo
|
|
|
594
633
|
componentId: string;
|
|
595
634
|
componentSet: string;
|
|
596
635
|
nodeId?: string | undefined;
|
|
636
|
+
i18n?: Record<string, {
|
|
637
|
+
id: string;
|
|
638
|
+
} | {
|
|
639
|
+
content: Record<string, unknown>;
|
|
640
|
+
schemaName: string;
|
|
641
|
+
}> | undefined;
|
|
597
642
|
componentType?: "server" | "edge" | undefined;
|
|
598
643
|
contentItem?: {
|
|
599
644
|
id: string;
|
|
@@ -654,6 +699,7 @@ export declare const PageLayoutContent: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.Zo
|
|
|
654
699
|
} | {
|
|
655
700
|
type: "fragment";
|
|
656
701
|
nodeId?: string | undefined;
|
|
702
|
+
i18n?: Record<string, {}> | undefined;
|
|
657
703
|
} | {
|
|
658
704
|
type: "link-to-matrix-asset";
|
|
659
705
|
matrixDomain: string;
|
|
@@ -717,6 +763,12 @@ export declare const PageLayoutContent: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.Zo
|
|
|
717
763
|
componentId: string;
|
|
718
764
|
componentSet: string;
|
|
719
765
|
nodeId?: string | undefined;
|
|
766
|
+
i18n?: Record<string, {
|
|
767
|
+
id: string;
|
|
768
|
+
} | {
|
|
769
|
+
content: Record<string, unknown>;
|
|
770
|
+
schemaName: string;
|
|
771
|
+
}> | undefined;
|
|
720
772
|
componentType?: "server" | "edge" | undefined;
|
|
721
773
|
contentItem?: {
|
|
722
774
|
id: string;
|
|
@@ -175,6 +175,12 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
175
175
|
nodeId: string;
|
|
176
176
|
componentId: string;
|
|
177
177
|
componentSet: string;
|
|
178
|
+
i18n?: Record<string, {
|
|
179
|
+
id: string;
|
|
180
|
+
} | {
|
|
181
|
+
content: Record<string, unknown>;
|
|
182
|
+
schemaName: string;
|
|
183
|
+
}> | undefined;
|
|
178
184
|
componentType?: "server" | "edge" | undefined;
|
|
179
185
|
contentItem?: {
|
|
180
186
|
id: string;
|
|
@@ -201,6 +207,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
201
207
|
} | {
|
|
202
208
|
type: "fragment";
|
|
203
209
|
nodeId: string;
|
|
210
|
+
i18n?: Record<string, {}> | undefined;
|
|
204
211
|
} | {
|
|
205
212
|
type: "link-to-matrix-asset";
|
|
206
213
|
nodeId: string;
|
|
@@ -257,6 +264,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
257
264
|
} | {
|
|
258
265
|
type: "fragment";
|
|
259
266
|
nodeId?: string | undefined;
|
|
267
|
+
i18n?: Record<string, {}> | undefined;
|
|
260
268
|
} | {
|
|
261
269
|
type: "link-to-matrix-asset";
|
|
262
270
|
matrixDomain: string;
|
|
@@ -320,6 +328,12 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
320
328
|
componentId: string;
|
|
321
329
|
componentSet: string;
|
|
322
330
|
nodeId?: string | undefined;
|
|
331
|
+
i18n?: Record<string, {
|
|
332
|
+
id: string;
|
|
333
|
+
} | {
|
|
334
|
+
content: Record<string, unknown>;
|
|
335
|
+
schemaName: string;
|
|
336
|
+
}> | undefined;
|
|
323
337
|
componentType?: "server" | "edge" | undefined;
|
|
324
338
|
contentItem?: {
|
|
325
339
|
id: string;
|
|
@@ -393,6 +407,12 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
393
407
|
nodeId: string;
|
|
394
408
|
componentId: string;
|
|
395
409
|
componentSet: string;
|
|
410
|
+
i18n?: Record<string, {
|
|
411
|
+
id: string;
|
|
412
|
+
} | {
|
|
413
|
+
content: Record<string, unknown>;
|
|
414
|
+
schemaName: string;
|
|
415
|
+
}> | undefined;
|
|
396
416
|
componentType?: "server" | "edge" | undefined;
|
|
397
417
|
contentItem?: {
|
|
398
418
|
id: string;
|
|
@@ -419,6 +439,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
419
439
|
} | {
|
|
420
440
|
type: "fragment";
|
|
421
441
|
nodeId: string;
|
|
442
|
+
i18n?: Record<string, {}> | undefined;
|
|
422
443
|
} | {
|
|
423
444
|
type: "link-to-matrix-asset";
|
|
424
445
|
nodeId: string;
|
|
@@ -475,6 +496,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
475
496
|
} | {
|
|
476
497
|
type: "fragment";
|
|
477
498
|
nodeId?: string | undefined;
|
|
499
|
+
i18n?: Record<string, {}> | undefined;
|
|
478
500
|
} | {
|
|
479
501
|
type: "link-to-matrix-asset";
|
|
480
502
|
matrixDomain: string;
|
|
@@ -538,6 +560,12 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
538
560
|
componentId: string;
|
|
539
561
|
componentSet: string;
|
|
540
562
|
nodeId?: string | undefined;
|
|
563
|
+
i18n?: Record<string, {
|
|
564
|
+
id: string;
|
|
565
|
+
} | {
|
|
566
|
+
content: Record<string, unknown>;
|
|
567
|
+
schemaName: string;
|
|
568
|
+
}> | undefined;
|
|
541
569
|
componentType?: "server" | "edge" | undefined;
|
|
542
570
|
contentItem?: {
|
|
543
571
|
id: string;
|
|
@@ -613,6 +641,12 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
613
641
|
nodeId: string;
|
|
614
642
|
componentId: string;
|
|
615
643
|
componentSet: string;
|
|
644
|
+
i18n?: Record<string, {
|
|
645
|
+
id: string;
|
|
646
|
+
} | {
|
|
647
|
+
content: Record<string, unknown>;
|
|
648
|
+
schemaName: string;
|
|
649
|
+
}> | undefined;
|
|
616
650
|
componentType?: "server" | "edge" | undefined;
|
|
617
651
|
contentItem?: {
|
|
618
652
|
id: string;
|
|
@@ -639,6 +673,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
639
673
|
} | {
|
|
640
674
|
type: "fragment";
|
|
641
675
|
nodeId: string;
|
|
676
|
+
i18n?: Record<string, {}> | undefined;
|
|
642
677
|
} | {
|
|
643
678
|
type: "link-to-matrix-asset";
|
|
644
679
|
nodeId: string;
|
|
@@ -697,6 +732,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
697
732
|
} | {
|
|
698
733
|
type: "fragment";
|
|
699
734
|
nodeId?: string | undefined;
|
|
735
|
+
i18n?: Record<string, {}> | undefined;
|
|
700
736
|
} | {
|
|
701
737
|
type: "link-to-matrix-asset";
|
|
702
738
|
matrixDomain: string;
|
|
@@ -760,6 +796,12 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
760
796
|
componentId: string;
|
|
761
797
|
componentSet: string;
|
|
762
798
|
nodeId?: string | undefined;
|
|
799
|
+
i18n?: Record<string, {
|
|
800
|
+
id: string;
|
|
801
|
+
} | {
|
|
802
|
+
content: Record<string, unknown>;
|
|
803
|
+
schemaName: string;
|
|
804
|
+
}> | undefined;
|
|
763
805
|
componentType?: "server" | "edge" | undefined;
|
|
764
806
|
contentItem?: {
|
|
765
807
|
id: string;
|
|
@@ -837,6 +879,12 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
837
879
|
nodeId: string;
|
|
838
880
|
componentId: string;
|
|
839
881
|
componentSet: string;
|
|
882
|
+
i18n?: Record<string, {
|
|
883
|
+
id: string;
|
|
884
|
+
} | {
|
|
885
|
+
content: Record<string, unknown>;
|
|
886
|
+
schemaName: string;
|
|
887
|
+
}> | undefined;
|
|
840
888
|
componentType?: "server" | "edge" | undefined;
|
|
841
889
|
contentItem?: {
|
|
842
890
|
id: string;
|
|
@@ -863,6 +911,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
863
911
|
} | {
|
|
864
912
|
type: "fragment";
|
|
865
913
|
nodeId: string;
|
|
914
|
+
i18n?: Record<string, {}> | undefined;
|
|
866
915
|
} | {
|
|
867
916
|
type: "link-to-matrix-asset";
|
|
868
917
|
nodeId: string;
|
|
@@ -936,6 +985,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
936
985
|
} | {
|
|
937
986
|
type: "fragment";
|
|
938
987
|
nodeId?: string | undefined;
|
|
988
|
+
i18n?: Record<string, {}> | undefined;
|
|
939
989
|
} | {
|
|
940
990
|
type: "link-to-matrix-asset";
|
|
941
991
|
matrixDomain: string;
|
|
@@ -999,6 +1049,12 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
999
1049
|
componentId: string;
|
|
1000
1050
|
componentSet: string;
|
|
1001
1051
|
nodeId?: string | undefined;
|
|
1052
|
+
i18n?: Record<string, {
|
|
1053
|
+
id: string;
|
|
1054
|
+
} | {
|
|
1055
|
+
content: Record<string, unknown>;
|
|
1056
|
+
schemaName: string;
|
|
1057
|
+
}> | undefined;
|
|
1002
1058
|
componentType?: "server" | "edge" | undefined;
|
|
1003
1059
|
contentItem?: {
|
|
1004
1060
|
id: string;
|
|
@@ -1082,6 +1138,7 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
1082
1138
|
} | {
|
|
1083
1139
|
type: "fragment";
|
|
1084
1140
|
nodeId?: string | undefined;
|
|
1141
|
+
i18n?: Record<string, {}> | undefined;
|
|
1085
1142
|
} | {
|
|
1086
1143
|
type: "link-to-matrix-asset";
|
|
1087
1144
|
matrixDomain: string;
|
|
@@ -1145,6 +1202,12 @@ export declare const CustomLayout: z.ZodEffects<z.ZodObject<{
|
|
|
1145
1202
|
componentId: string;
|
|
1146
1203
|
componentSet: string;
|
|
1147
1204
|
nodeId?: string | undefined;
|
|
1205
|
+
i18n?: Record<string, {
|
|
1206
|
+
id: string;
|
|
1207
|
+
} | {
|
|
1208
|
+
content: Record<string, unknown>;
|
|
1209
|
+
schemaName: string;
|
|
1210
|
+
}> | undefined;
|
|
1148
1211
|
componentType?: "server" | "edge" | undefined;
|
|
1149
1212
|
contentItem?: {
|
|
1150
1213
|
id: string;
|