@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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/dx-page-contents-lib",
3
- "version": "1.76.1",
3
+ "version": "1.77.0",
4
4
  "description": "",
5
5
  "author": "FEAAS Team",
6
6
  "homepage": "",