@squiz/dxp-page-content-types 1.2.2 → 1.3.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.
@@ -51,6 +51,7 @@ export type ComponentNode<T extends ContentItemBody = ContentItemBody> = {
51
51
  * Translated content item for each language
52
52
  */
53
53
  i18n?: Record<string, ContentItem<T>>;
54
+ nodeId?: string;
54
55
  };
55
56
  /**
56
57
  * Variation node variant.
@@ -83,6 +84,7 @@ export type VariationNode = {
83
84
  node: LayoutContentNodes | null;
84
85
  };
85
86
  variants: Array<VariationNodeVariant>;
87
+ nodeId?: string;
86
88
  };
87
89
  /**
88
90
  * Structure of the resolved component's content item.
@@ -133,5 +135,6 @@ export interface LayoutNode {
133
135
  type: 'layout';
134
136
  layout: LayoutData;
135
137
  content: Record<string, LayoutContentNodes[]>;
138
+ nodeId?: string;
136
139
  }
137
140
  export {};
package/lib/index.d.ts CHANGED
@@ -4,4 +4,3 @@
4
4
  */
5
5
  export * from './Nodes/Nodes';
6
6
  export * from './PageContent/PageContent';
7
- export * from './Zones/Zones';
package/lib/index.js CHANGED
@@ -20,5 +20,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  __exportStar(require("./Nodes/Nodes"), exports);
22
22
  __exportStar(require("./PageContent/PageContent"), exports);
23
- __exportStar(require("./Zones/Zones"), exports);
24
23
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,4DAA0C;AAC1C,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,4DAA0C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/dxp-page-content-types",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "repository": {
@@ -1,16 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright Squiz Australia Pty Ltd. All Rights Reserved.
4
- */
5
- export declare const ZoneType: {
6
- readonly layout: "layout";
7
- readonly page: "page";
8
- readonly 'template-locked': "template-locked";
9
- readonly 'template-unlocked': "template-unlocked";
10
- };
11
- export type ZoneType = (typeof ZoneType)[keyof typeof ZoneType];
12
- export interface BaseZone<T> {
13
- zoneId: string;
14
- zoneName: string;
15
- zoneNodes: Array<T>;
16
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /*!
3
- * @license
4
- * Copyright Squiz Australia Pty Ltd. All Rights Reserved.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.ZoneType = void 0;
8
- exports.ZoneType = {
9
- layout: 'layout',
10
- page: 'page',
11
- 'template-locked': 'template-locked',
12
- 'template-unlocked': 'template-unlocked',
13
- };
14
- //# sourceMappingURL=Zones.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Zones.js","sourceRoot":"","sources":["../../src/Zones/Zones.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEU,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,iBAAiB;IACpC,mBAAmB,EAAE,mBAAmB;CAChC,CAAC"}