@squiz/dxp-page-content-types 1.6.3 → 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.
- package/lib/Nodes/Nodes.d.ts +19 -0
- package/package.json +1 -1
package/lib/Nodes/Nodes.d.ts
CHANGED
|
@@ -200,6 +200,25 @@ export interface LayoutData {
|
|
|
200
200
|
zones?: LayoutZonesArray;
|
|
201
201
|
properties?: LayoutProperties | LayoutPropertyValues;
|
|
202
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
|
+
}
|
|
203
222
|
export interface LayoutNode {
|
|
204
223
|
type: 'layout';
|
|
205
224
|
layout: LayoutData;
|