@squiz/dxp-page-content-types 1.6.2 → 1.6.4

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.
@@ -172,6 +172,7 @@ export interface LayoutPropertyBase {
172
172
  }
173
173
  export interface LayoutPropertyBoolean extends LayoutPropertyBase {
174
174
  type: 'boolean';
175
+ default?: boolean;
175
176
  selectedValue?: boolean;
176
177
  }
177
178
  export interface LayoutPropertyString extends LayoutPropertyBase {
@@ -181,6 +182,7 @@ export interface LayoutPropertyString extends LayoutPropertyBase {
181
182
  const: string;
182
183
  title: string;
183
184
  }>;
185
+ default?: string;
184
186
  selectedValue?: string;
185
187
  'ui:metadata'?: {
186
188
  enumWidget?: 'radio' | 'dropdown';
@@ -198,6 +200,25 @@ export interface LayoutData {
198
200
  zones?: LayoutZonesArray;
199
201
  properties?: LayoutProperties | LayoutPropertyValues;
200
202
  }
203
+ /**
204
+ * Resolved layout data — the normalized, runtime-ready format used throughout Page Builder.
205
+ *
206
+ * All structural fields (`version`, `template`, `zones`) are required. They are
207
+ * guaranteed present whether the data comes from a direct layout definition fetch,
208
+ * a page content node resolved server-side by `buildLayoutResolver`, or
209
+ * template content normalized client-side by `normalizeTemplateContent`.
210
+ *
211
+ * `properties` remains optional as some layouts define none.
212
+ */
213
+ export interface LayoutDataResolved {
214
+ name: string;
215
+ description: string;
216
+ displayName: string;
217
+ version: string;
218
+ template: string;
219
+ zones: LayoutZonesArray;
220
+ properties?: LayoutProperties;
221
+ }
201
222
  export interface LayoutNode {
202
223
  type: 'layout';
203
224
  layout: LayoutData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/dxp-page-content-types",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "repository": {