@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
|
@@ -19,6 +19,12 @@ export declare const mockComponentResolver: (node: Extract<PageLayoutContent[0],
|
|
|
19
19
|
nodeId: string;
|
|
20
20
|
componentId: string;
|
|
21
21
|
componentSet: string;
|
|
22
|
+
i18n?: Record<string, {
|
|
23
|
+
id: string;
|
|
24
|
+
} | {
|
|
25
|
+
content: Record<string, unknown>;
|
|
26
|
+
schemaName: string;
|
|
27
|
+
}> | undefined;
|
|
22
28
|
componentType?: "server" | "edge" | undefined;
|
|
23
29
|
}>;
|
|
24
30
|
export type ContentNodeTypes = PageLayoutContent[0]['type'];
|
|
@@ -58,6 +58,12 @@ export declare const ContentStructure: z.ZodRecord<z.ZodString, z.ZodArray<z.Zod
|
|
|
58
58
|
nodeId: string;
|
|
59
59
|
componentId: string;
|
|
60
60
|
componentSet: string;
|
|
61
|
+
i18n?: Record<string, {
|
|
62
|
+
id: string;
|
|
63
|
+
} | {
|
|
64
|
+
content: Record<string, unknown>;
|
|
65
|
+
schemaName: string;
|
|
66
|
+
}> | undefined;
|
|
61
67
|
componentType?: "server" | "edge" | undefined;
|
|
62
68
|
contentItem?: {
|
|
63
69
|
id: string;
|
|
@@ -84,6 +90,7 @@ export declare const ContentStructure: z.ZodRecord<z.ZodString, z.ZodArray<z.Zod
|
|
|
84
90
|
} | {
|
|
85
91
|
type: "fragment";
|
|
86
92
|
nodeId: string;
|
|
93
|
+
i18n?: Record<string, {}> | undefined;
|
|
87
94
|
} | {
|
|
88
95
|
type: "link-to-matrix-asset";
|
|
89
96
|
nodeId: string;
|
|
@@ -140,6 +147,7 @@ export declare const ContentStructure: z.ZodRecord<z.ZodString, z.ZodArray<z.Zod
|
|
|
140
147
|
} | {
|
|
141
148
|
type: "fragment";
|
|
142
149
|
nodeId?: string | undefined;
|
|
150
|
+
i18n?: Record<string, {}> | undefined;
|
|
143
151
|
} | {
|
|
144
152
|
type: "link-to-matrix-asset";
|
|
145
153
|
matrixDomain: string;
|
|
@@ -203,6 +211,12 @@ export declare const ContentStructure: z.ZodRecord<z.ZodString, z.ZodArray<z.Zod
|
|
|
203
211
|
componentId: string;
|
|
204
212
|
componentSet: string;
|
|
205
213
|
nodeId?: string | undefined;
|
|
214
|
+
i18n?: Record<string, {
|
|
215
|
+
id: string;
|
|
216
|
+
} | {
|
|
217
|
+
content: Record<string, unknown>;
|
|
218
|
+
schemaName: string;
|
|
219
|
+
}> | undefined;
|
|
206
220
|
componentType?: "server" | "edge" | undefined;
|
|
207
221
|
contentItem?: {
|
|
208
222
|
id: string;
|