@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.
- package/lib/Nodes/Nodes.d.ts +3 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/lib/Zones/Zones.d.ts +0 -16
- package/lib/Zones/Zones.js +0 -14
- package/lib/Zones/Zones.js.map +0 -1
package/lib/Nodes/Nodes.d.ts
CHANGED
|
@@ -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
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
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,4DAA0C"}
|
package/package.json
CHANGED
package/lib/Zones/Zones.d.ts
DELETED
|
@@ -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
|
-
}
|
package/lib/Zones/Zones.js
DELETED
|
@@ -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
|
package/lib/Zones/Zones.js.map
DELETED
|
@@ -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"}
|