@cntrl-site/sdk 1.24.5 → 1.25.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/FontFaceGenerator/FontFaceGenerator.js +28 -0
- package/lib/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.js +221 -0
- package/lib/VideoDecoder/VideoDecoder.js +184 -0
- package/{dist → lib}/index.d.ts +0 -2
- package/lib/index.js +30 -0
- package/{dist → lib}/schemas/article/Article.schema.d.ts +12 -12
- package/{dist → lib}/schemas/article/ItemBase.schema.d.ts +10 -10
- package/{dist → lib}/schemas/article/RichTextItem.schema.d.ts +30 -30
- package/{dist → lib}/schemas/article/Section.schema.d.ts +3 -3
- package/{dist → lib}/types/keyframe/Keyframe.d.ts +1 -1
- package/lib/utils.js +30 -0
- package/package.json +9 -31
- package/dist/Client/Client.test.d.ts +0 -1
- package/dist/Client/__mock__/articleMock.d.ts +0 -2
- package/dist/Client/__mock__/keyframesMock.d.ts +0 -2
- package/dist/Client/__mock__/projectMock.d.ts +0 -2
- package/dist/Components/ControlSlider/ControlSlider.d.ts +0 -90
- package/dist/Components/ControlSlider/ControlSliderComponent.d.ts +0 -516
- package/dist/Components/ImageRevealSlider/ControlImageRevealSliderComponent.d.ts +0 -218
- package/dist/Components/ImageRevealSlider/ImageRevealSlider.d.ts +0 -38
- package/dist/Components/components.d.ts +0 -2
- package/dist/Components/helpers/RichTextRenderer/RichTextRenderer.d.ts +0 -6
- package/dist/Components/helpers/SvgImage/SvgImage.d.ts +0 -9
- package/dist/Components/utils/scalingValue.d.ts +0 -1
- package/dist/FontFaceGenerator/FontFaceGenerator.test.d.ts +0 -1
- package/dist/index.js +0 -2737
- package/dist/index.mjs +0 -2720
- package/dist/schemas/shared/FillLayer.schema.d.ts +0 -186
- package/dist/sdk.css +0 -1
- package/dist/types/component/Component.d.ts +0 -15
- /package/{dist → lib}/Client/Client.d.ts +0 -0
- /package/{dist → lib}/Client/Client.js +0 -0
- /package/{dist → lib}/FontFaceGenerator/FontFaceGenerator.d.ts +0 -0
- /package/{dist → lib}/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.d.ts +0 -0
- /package/{dist → lib}/VideoDecoder/VideoDecoder.d.ts +0 -0
- /package/{dist → lib}/cli.d.ts +0 -0
- /package/{dist → lib}/cli.js +0 -0
- /package/{dist → lib}/schemas/article/Article.schema.js +0 -0
- /package/{dist → lib}/schemas/article/FillLayer.schema.d.ts +0 -0
- /package/{dist → lib}/schemas/article/FillLayer.schema.js +0 -0
- /package/{dist → lib}/schemas/article/Interaction.schema.d.ts +0 -0
- /package/{dist → lib}/schemas/article/Interaction.schema.js +0 -0
- /package/{dist → lib}/schemas/article/Item.schema.d.ts +0 -0
- /package/{dist → lib}/schemas/article/Item.schema.js +0 -0
- /package/{dist → lib}/schemas/article/ItemArea.schema.d.ts +0 -0
- /package/{dist → lib}/schemas/article/ItemArea.schema.js +0 -0
- /package/{dist → lib}/schemas/article/ItemBase.schema.js +0 -0
- /package/{dist → lib}/schemas/article/ItemState.schema.d.ts +0 -0
- /package/{dist → lib}/schemas/article/ItemState.schema.js +0 -0
- /package/{dist → lib}/schemas/article/RichTextItem.schema.js +0 -0
- /package/{dist → lib}/schemas/article/Section.schema.js +0 -0
- /package/{dist → lib}/schemas/keyframe/Keyframes.schema.d.ts +0 -0
- /package/{dist → lib}/schemas/keyframe/Keyframes.schema.js +0 -0
- /package/{dist → lib}/schemas/project/Layout.schema.d.ts +0 -0
- /package/{dist → lib}/schemas/project/Layout.schema.js +0 -0
- /package/{dist → lib}/schemas/project/Project.schema.d.ts +0 -0
- /package/{dist → lib}/schemas/project/Project.schema.js +0 -0
- /package/{dist → lib}/types/article/Article.d.ts +0 -0
- /package/{dist → lib}/types/article/Article.js +0 -0
- /package/{dist → lib}/types/article/ArticleItemType.d.ts +0 -0
- /package/{dist → lib}/types/article/ArticleItemType.js +0 -0
- /package/{dist → lib}/types/article/CompoundSettings.d.ts +0 -0
- /package/{dist → lib}/types/article/CompoundSettings.js +0 -0
- /package/{dist → lib}/types/article/FX.d.ts +0 -0
- /package/{dist → lib}/types/article/FX.js +0 -0
- /package/{dist → lib}/types/article/Interaction.d.ts +0 -0
- /package/{dist → lib}/types/article/Interaction.js +0 -0
- /package/{dist → lib}/types/article/Item.d.ts +0 -0
- /package/{dist → lib}/types/article/Item.js +0 -0
- /package/{dist → lib}/types/article/ItemArea.d.ts +0 -0
- /package/{dist → lib}/types/article/ItemArea.js +0 -0
- /package/{dist → lib}/types/article/ItemState.d.ts +0 -0
- /package/{dist → lib}/types/article/ItemState.js +0 -0
- /package/{dist → lib}/types/article/RichText.d.ts +0 -0
- /package/{dist → lib}/types/article/RichText.js +0 -0
- /package/{dist → lib}/types/article/Section.d.ts +0 -0
- /package/{dist → lib}/types/article/Section.js +0 -0
- /package/{dist → lib}/types/keyframe/Keyframe.js +0 -0
- /package/{dist → lib}/types/project/Fonts.d.ts +0 -0
- /package/{dist → lib}/types/project/Fonts.js +0 -0
- /package/{dist → lib}/types/project/Layout.d.ts +0 -0
- /package/{dist → lib}/types/project/Layout.js +0 -0
- /package/{dist → lib}/types/project/Meta.d.ts +0 -0
- /package/{dist → lib}/types/project/Meta.js +0 -0
- /package/{dist → lib}/types/project/Page.d.ts +0 -0
- /package/{dist → lib}/types/project/Page.js +0 -0
- /package/{dist → lib}/types/project/Project.d.ts +0 -0
- /package/{dist → lib}/types/project/Project.js +0 -0
- /package/{dist → lib}/utils.d.ts +0 -0
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
import { ImageRevealSlider } from './ImageRevealSlider';
|
|
2
|
-
export declare const ControlImageRevealSliderComponent: {
|
|
3
|
-
element: typeof ImageRevealSlider;
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
preview: {
|
|
7
|
-
type: "video";
|
|
8
|
-
url: string;
|
|
9
|
-
};
|
|
10
|
-
defaultSize: {
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
};
|
|
14
|
-
schema: {
|
|
15
|
-
type: string;
|
|
16
|
-
properties: {
|
|
17
|
-
settings: {
|
|
18
|
-
layoutBased: boolean;
|
|
19
|
-
type: string;
|
|
20
|
-
properties: {
|
|
21
|
-
imageSize: {
|
|
22
|
-
name: string;
|
|
23
|
-
icon: string;
|
|
24
|
-
tooltip: string;
|
|
25
|
-
type: string;
|
|
26
|
-
properties: {
|
|
27
|
-
sizeType: {
|
|
28
|
-
name: string;
|
|
29
|
-
type: string;
|
|
30
|
-
display: {
|
|
31
|
-
type: string;
|
|
32
|
-
};
|
|
33
|
-
enum: string[];
|
|
34
|
-
};
|
|
35
|
-
imageWidth: {
|
|
36
|
-
type: string;
|
|
37
|
-
label: string;
|
|
38
|
-
display: {
|
|
39
|
-
type: string;
|
|
40
|
-
visible: boolean;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
randomRangeImageWidth: {
|
|
44
|
-
type: string;
|
|
45
|
-
display: {
|
|
46
|
-
type: string;
|
|
47
|
-
visible: boolean;
|
|
48
|
-
};
|
|
49
|
-
properties: {
|
|
50
|
-
min: {
|
|
51
|
-
type: string;
|
|
52
|
-
};
|
|
53
|
-
max: {
|
|
54
|
-
type: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
cursor: {
|
|
61
|
-
name: string;
|
|
62
|
-
icon: string;
|
|
63
|
-
tooltip: string;
|
|
64
|
-
type: string;
|
|
65
|
-
properties: {
|
|
66
|
-
cursorType: {
|
|
67
|
-
name: string;
|
|
68
|
-
type: string;
|
|
69
|
-
display: {
|
|
70
|
-
type: string;
|
|
71
|
-
};
|
|
72
|
-
enum: string[];
|
|
73
|
-
};
|
|
74
|
-
defaultCursor: {
|
|
75
|
-
type: string[];
|
|
76
|
-
display: {
|
|
77
|
-
type: string;
|
|
78
|
-
title: string;
|
|
79
|
-
visible: boolean;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
hoverCursor: {
|
|
83
|
-
type: string[];
|
|
84
|
-
display: {
|
|
85
|
-
type: string;
|
|
86
|
-
title: string;
|
|
87
|
-
visible: boolean;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
position: {
|
|
93
|
-
name: string;
|
|
94
|
-
icon: string;
|
|
95
|
-
tooltip: string;
|
|
96
|
-
type: string;
|
|
97
|
-
properties: {
|
|
98
|
-
revealPosition: {
|
|
99
|
-
type: string;
|
|
100
|
-
display: {
|
|
101
|
-
type: string;
|
|
102
|
-
};
|
|
103
|
-
enum: string[];
|
|
104
|
-
};
|
|
105
|
-
visible: {
|
|
106
|
-
type: string;
|
|
107
|
-
display: {
|
|
108
|
-
type: string;
|
|
109
|
-
};
|
|
110
|
-
enum: string[];
|
|
111
|
-
};
|
|
112
|
-
target: {
|
|
113
|
-
type: string;
|
|
114
|
-
display: {
|
|
115
|
-
type: string;
|
|
116
|
-
};
|
|
117
|
-
enum: string[];
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
default: {
|
|
123
|
-
imageSize: {
|
|
124
|
-
sizeType: string;
|
|
125
|
-
imageWidth: number;
|
|
126
|
-
randomRangeImageWidth: {
|
|
127
|
-
min: number;
|
|
128
|
-
max: number;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
cursor: {
|
|
132
|
-
cursorType: string;
|
|
133
|
-
defaultCursor: null;
|
|
134
|
-
hoverCursor: null;
|
|
135
|
-
};
|
|
136
|
-
position: {
|
|
137
|
-
revealPosition: string;
|
|
138
|
-
visible: string;
|
|
139
|
-
target: string;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
displayRules: ({
|
|
143
|
-
if: {
|
|
144
|
-
name: string;
|
|
145
|
-
value: string;
|
|
146
|
-
};
|
|
147
|
-
then: {
|
|
148
|
-
name: string;
|
|
149
|
-
value: boolean;
|
|
150
|
-
};
|
|
151
|
-
} | {
|
|
152
|
-
if: {
|
|
153
|
-
name: string;
|
|
154
|
-
value: string;
|
|
155
|
-
}[];
|
|
156
|
-
then: {
|
|
157
|
-
name: string;
|
|
158
|
-
value: boolean;
|
|
159
|
-
};
|
|
160
|
-
})[];
|
|
161
|
-
};
|
|
162
|
-
content: {
|
|
163
|
-
layoutBased: boolean;
|
|
164
|
-
type: string;
|
|
165
|
-
settings: {
|
|
166
|
-
addItemFromFileExplorer: boolean;
|
|
167
|
-
};
|
|
168
|
-
items: {
|
|
169
|
-
type: string;
|
|
170
|
-
properties: {
|
|
171
|
-
image: {
|
|
172
|
-
type: string;
|
|
173
|
-
display: {
|
|
174
|
-
type: string;
|
|
175
|
-
isObjectFitEditable: boolean;
|
|
176
|
-
minWidth: number;
|
|
177
|
-
defaultWidth: number;
|
|
178
|
-
maxWidth: number;
|
|
179
|
-
};
|
|
180
|
-
properties: {
|
|
181
|
-
url: {
|
|
182
|
-
type: string;
|
|
183
|
-
};
|
|
184
|
-
name: {
|
|
185
|
-
type: string;
|
|
186
|
-
};
|
|
187
|
-
objectFit: {
|
|
188
|
-
type: string;
|
|
189
|
-
enum: string[];
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
required: string[];
|
|
193
|
-
};
|
|
194
|
-
link: {
|
|
195
|
-
type: string;
|
|
196
|
-
display: {
|
|
197
|
-
type: string;
|
|
198
|
-
placeholder: string;
|
|
199
|
-
minWidth: number;
|
|
200
|
-
defaultWidth: number;
|
|
201
|
-
maxWidth: number;
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
required: string[];
|
|
206
|
-
};
|
|
207
|
-
default: {
|
|
208
|
-
image: {
|
|
209
|
-
objectFit: string;
|
|
210
|
-
url: string;
|
|
211
|
-
name: string;
|
|
212
|
-
};
|
|
213
|
-
link: string;
|
|
214
|
-
}[];
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
interface ImageRevealSliderProps {
|
|
2
|
-
settings: ImageRevealSliderSettings;
|
|
3
|
-
content: ImageRevealSliderItem[];
|
|
4
|
-
isEditor?: boolean;
|
|
5
|
-
}
|
|
6
|
-
type RandomRange = {
|
|
7
|
-
min: number;
|
|
8
|
-
max: number;
|
|
9
|
-
};
|
|
10
|
-
type ImageRevealSliderImageSize = {
|
|
11
|
-
sizeType: 'as Is' | 'custom' | 'random';
|
|
12
|
-
imageWidth: number;
|
|
13
|
-
randomRangeImageWidth: RandomRange;
|
|
14
|
-
};
|
|
15
|
-
type ImageRevealSliderCursor = {
|
|
16
|
-
cursorType: 'system' | 'custom';
|
|
17
|
-
defaultCursor: string | null;
|
|
18
|
-
hoverCursor: string | null;
|
|
19
|
-
};
|
|
20
|
-
type ImageRevealSliderPosition = {
|
|
21
|
-
revealPosition: 'random' | 'same' | 'on Click';
|
|
22
|
-
visible: 'all' | 'last One';
|
|
23
|
-
target: 'area' | 'image';
|
|
24
|
-
};
|
|
25
|
-
type ImageRevealSliderSettings = {
|
|
26
|
-
imageSize: ImageRevealSliderImageSize;
|
|
27
|
-
cursor: ImageRevealSliderCursor;
|
|
28
|
-
position: ImageRevealSliderPosition;
|
|
29
|
-
};
|
|
30
|
-
type ImageRevealSliderItem = {
|
|
31
|
-
image: {
|
|
32
|
-
url: string;
|
|
33
|
-
name: string;
|
|
34
|
-
};
|
|
35
|
-
link: string;
|
|
36
|
-
};
|
|
37
|
-
export declare function ImageRevealSlider({ settings, content, isEditor }: ImageRevealSliderProps): JSX.Element;
|
|
38
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function scalingValue(value: number, isEditor?: boolean): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|