@squiz/dxp-page-content-types 1.6.3 → 1.6.5

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.
@@ -129,6 +129,10 @@ export type ContentItem<T extends ContentItemBody> = {
129
129
  * Schema which the content is validated against.
130
130
  */
131
131
  schemaName?: string;
132
+ /**
133
+ * Schema version for tagged component content items.
134
+ */
135
+ schemaVersion?: string;
132
136
  /**
133
137
  * Content of the content item.
134
138
  */
@@ -200,6 +204,25 @@ export interface LayoutData {
200
204
  zones?: LayoutZonesArray;
201
205
  properties?: LayoutProperties | LayoutPropertyValues;
202
206
  }
207
+ /**
208
+ * Resolved layout data — the normalized, runtime-ready format used throughout Page Builder.
209
+ *
210
+ * All structural fields (`version`, `template`, `zones`) are required. They are
211
+ * guaranteed present whether the data comes from a direct layout definition fetch,
212
+ * a page content node resolved server-side by `buildLayoutResolver`, or
213
+ * template content normalized client-side by `normalizeTemplateContent`.
214
+ *
215
+ * `properties` remains optional as some layouts define none.
216
+ */
217
+ export interface LayoutDataResolved {
218
+ name: string;
219
+ description: string;
220
+ displayName: string;
221
+ version: string;
222
+ template: string;
223
+ zones: LayoutZonesArray;
224
+ properties?: LayoutProperties;
225
+ }
203
226
  export interface LayoutNode {
204
227
  type: 'layout';
205
228
  layout: LayoutData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/dxp-page-content-types",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "repository": {