@cntrl-site/sdk 1.25.9 → 1.25.11-components.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/Client/Client.d.ts +4 -0
- package/lib/Client/Client.js +30 -0
- package/lib/Rect/Rect.js +5 -3
- package/lib/index.d.ts +1 -0
- package/lib/schemas/article/FillLayer.schema.d.ts +0 -15
- package/lib/schemas/article/FillLayer.schema.js +3 -8
- package/lib/schemas/article/Item.schema.js +2 -1
- package/lib/schemas/article/ItemState.schema.d.ts +0 -210
- package/lib/schemas/keyframe/Keyframes.schema.d.ts +0 -100
- package/lib/types/article/Item.d.ts +1 -5
- package/lib/types/customComponent/CustomComponentMeta.d.ts +5 -0
- package/lib/types/customComponent/CustomComponentMeta.js +2 -0
- package/package.json +2 -1
|
@@ -89,6 +89,7 @@ interface YoutubeEmbedCommonParams extends CommonParamsBase {
|
|
|
89
89
|
interface ComponentCommonParams extends CommonParamsBase {
|
|
90
90
|
componentId: string;
|
|
91
91
|
content?: any;
|
|
92
|
+
parameters?: Record<string, any>;
|
|
92
93
|
}
|
|
93
94
|
interface MediaLayoutParams {
|
|
94
95
|
opacity: number;
|
|
@@ -189,7 +190,6 @@ export type SolidFillLayer = {
|
|
|
189
190
|
id: string;
|
|
190
191
|
type: 'solid';
|
|
191
192
|
value: string;
|
|
192
|
-
blendMode: string;
|
|
193
193
|
};
|
|
194
194
|
export type LinearGradientFillLayer = {
|
|
195
195
|
id: string;
|
|
@@ -198,7 +198,6 @@ export type LinearGradientFillLayer = {
|
|
|
198
198
|
start: [number, number];
|
|
199
199
|
end: [number, number];
|
|
200
200
|
angle: number;
|
|
201
|
-
blendMode: string;
|
|
202
201
|
};
|
|
203
202
|
export type RadialGradientFillLayer = {
|
|
204
203
|
id: string;
|
|
@@ -207,7 +206,6 @@ export type RadialGradientFillLayer = {
|
|
|
207
206
|
diameter: number;
|
|
208
207
|
center: [number, number];
|
|
209
208
|
angle: number;
|
|
210
|
-
blendMode: string;
|
|
211
209
|
};
|
|
212
210
|
export type ConicGradientFillLayer = {
|
|
213
211
|
id: string;
|
|
@@ -215,7 +213,6 @@ export type ConicGradientFillLayer = {
|
|
|
215
213
|
colors: ColorPoint[];
|
|
216
214
|
center: [number, number];
|
|
217
215
|
angle: number;
|
|
218
|
-
blendMode: string;
|
|
219
216
|
};
|
|
220
217
|
export type ImageLayer = {
|
|
221
218
|
id: string;
|
|
@@ -224,7 +221,6 @@ export type ImageLayer = {
|
|
|
224
221
|
behavior: string;
|
|
225
222
|
backgroundSize: number;
|
|
226
223
|
opacity: number;
|
|
227
|
-
blendMode: string;
|
|
228
224
|
rotation?: number;
|
|
229
225
|
};
|
|
230
226
|
export interface ScrollPlaybackParams {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cntrl-site/sdk",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.11-components.0",
|
|
4
4
|
"description": "Generic SDK for use in public websites.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"test": "jest",
|
|
9
9
|
"prebuild": "rimraf ./lib",
|
|
10
10
|
"build": "tsc --project tsconfig.build.json",
|
|
11
|
+
"build:watch": "tsc --watch --project tsconfig.build.json",
|
|
11
12
|
"prepublishOnly": "cross-env NODE_ENV=production npm run build"
|
|
12
13
|
},
|
|
13
14
|
"bin": {
|