@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.
Files changed (89) hide show
  1. package/lib/FontFaceGenerator/FontFaceGenerator.js +28 -0
  2. package/lib/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.js +221 -0
  3. package/lib/VideoDecoder/VideoDecoder.js +184 -0
  4. package/{dist → lib}/index.d.ts +0 -2
  5. package/lib/index.js +30 -0
  6. package/{dist → lib}/schemas/article/Article.schema.d.ts +12 -12
  7. package/{dist → lib}/schemas/article/ItemBase.schema.d.ts +10 -10
  8. package/{dist → lib}/schemas/article/RichTextItem.schema.d.ts +30 -30
  9. package/{dist → lib}/schemas/article/Section.schema.d.ts +3 -3
  10. package/{dist → lib}/types/keyframe/Keyframe.d.ts +1 -1
  11. package/lib/utils.js +30 -0
  12. package/package.json +9 -31
  13. package/dist/Client/Client.test.d.ts +0 -1
  14. package/dist/Client/__mock__/articleMock.d.ts +0 -2
  15. package/dist/Client/__mock__/keyframesMock.d.ts +0 -2
  16. package/dist/Client/__mock__/projectMock.d.ts +0 -2
  17. package/dist/Components/ControlSlider/ControlSlider.d.ts +0 -90
  18. package/dist/Components/ControlSlider/ControlSliderComponent.d.ts +0 -516
  19. package/dist/Components/ImageRevealSlider/ControlImageRevealSliderComponent.d.ts +0 -218
  20. package/dist/Components/ImageRevealSlider/ImageRevealSlider.d.ts +0 -38
  21. package/dist/Components/components.d.ts +0 -2
  22. package/dist/Components/helpers/RichTextRenderer/RichTextRenderer.d.ts +0 -6
  23. package/dist/Components/helpers/SvgImage/SvgImage.d.ts +0 -9
  24. package/dist/Components/utils/scalingValue.d.ts +0 -1
  25. package/dist/FontFaceGenerator/FontFaceGenerator.test.d.ts +0 -1
  26. package/dist/index.js +0 -2737
  27. package/dist/index.mjs +0 -2720
  28. package/dist/schemas/shared/FillLayer.schema.d.ts +0 -186
  29. package/dist/sdk.css +0 -1
  30. package/dist/types/component/Component.d.ts +0 -15
  31. /package/{dist → lib}/Client/Client.d.ts +0 -0
  32. /package/{dist → lib}/Client/Client.js +0 -0
  33. /package/{dist → lib}/FontFaceGenerator/FontFaceGenerator.d.ts +0 -0
  34. /package/{dist → lib}/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.d.ts +0 -0
  35. /package/{dist → lib}/VideoDecoder/VideoDecoder.d.ts +0 -0
  36. /package/{dist → lib}/cli.d.ts +0 -0
  37. /package/{dist → lib}/cli.js +0 -0
  38. /package/{dist → lib}/schemas/article/Article.schema.js +0 -0
  39. /package/{dist → lib}/schemas/article/FillLayer.schema.d.ts +0 -0
  40. /package/{dist → lib}/schemas/article/FillLayer.schema.js +0 -0
  41. /package/{dist → lib}/schemas/article/Interaction.schema.d.ts +0 -0
  42. /package/{dist → lib}/schemas/article/Interaction.schema.js +0 -0
  43. /package/{dist → lib}/schemas/article/Item.schema.d.ts +0 -0
  44. /package/{dist → lib}/schemas/article/Item.schema.js +0 -0
  45. /package/{dist → lib}/schemas/article/ItemArea.schema.d.ts +0 -0
  46. /package/{dist → lib}/schemas/article/ItemArea.schema.js +0 -0
  47. /package/{dist → lib}/schemas/article/ItemBase.schema.js +0 -0
  48. /package/{dist → lib}/schemas/article/ItemState.schema.d.ts +0 -0
  49. /package/{dist → lib}/schemas/article/ItemState.schema.js +0 -0
  50. /package/{dist → lib}/schemas/article/RichTextItem.schema.js +0 -0
  51. /package/{dist → lib}/schemas/article/Section.schema.js +0 -0
  52. /package/{dist → lib}/schemas/keyframe/Keyframes.schema.d.ts +0 -0
  53. /package/{dist → lib}/schemas/keyframe/Keyframes.schema.js +0 -0
  54. /package/{dist → lib}/schemas/project/Layout.schema.d.ts +0 -0
  55. /package/{dist → lib}/schemas/project/Layout.schema.js +0 -0
  56. /package/{dist → lib}/schemas/project/Project.schema.d.ts +0 -0
  57. /package/{dist → lib}/schemas/project/Project.schema.js +0 -0
  58. /package/{dist → lib}/types/article/Article.d.ts +0 -0
  59. /package/{dist → lib}/types/article/Article.js +0 -0
  60. /package/{dist → lib}/types/article/ArticleItemType.d.ts +0 -0
  61. /package/{dist → lib}/types/article/ArticleItemType.js +0 -0
  62. /package/{dist → lib}/types/article/CompoundSettings.d.ts +0 -0
  63. /package/{dist → lib}/types/article/CompoundSettings.js +0 -0
  64. /package/{dist → lib}/types/article/FX.d.ts +0 -0
  65. /package/{dist → lib}/types/article/FX.js +0 -0
  66. /package/{dist → lib}/types/article/Interaction.d.ts +0 -0
  67. /package/{dist → lib}/types/article/Interaction.js +0 -0
  68. /package/{dist → lib}/types/article/Item.d.ts +0 -0
  69. /package/{dist → lib}/types/article/Item.js +0 -0
  70. /package/{dist → lib}/types/article/ItemArea.d.ts +0 -0
  71. /package/{dist → lib}/types/article/ItemArea.js +0 -0
  72. /package/{dist → lib}/types/article/ItemState.d.ts +0 -0
  73. /package/{dist → lib}/types/article/ItemState.js +0 -0
  74. /package/{dist → lib}/types/article/RichText.d.ts +0 -0
  75. /package/{dist → lib}/types/article/RichText.js +0 -0
  76. /package/{dist → lib}/types/article/Section.d.ts +0 -0
  77. /package/{dist → lib}/types/article/Section.js +0 -0
  78. /package/{dist → lib}/types/keyframe/Keyframe.js +0 -0
  79. /package/{dist → lib}/types/project/Fonts.d.ts +0 -0
  80. /package/{dist → lib}/types/project/Fonts.js +0 -0
  81. /package/{dist → lib}/types/project/Layout.d.ts +0 -0
  82. /package/{dist → lib}/types/project/Layout.js +0 -0
  83. /package/{dist → lib}/types/project/Meta.d.ts +0 -0
  84. /package/{dist → lib}/types/project/Meta.js +0 -0
  85. /package/{dist → lib}/types/project/Page.d.ts +0 -0
  86. /package/{dist → lib}/types/project/Page.js +0 -0
  87. /package/{dist → lib}/types/project/Project.d.ts +0 -0
  88. /package/{dist → lib}/types/project/Project.js +0 -0
  89. /package/{dist → lib}/utils.d.ts +0 -0
@@ -1,516 +0,0 @@
1
- import { ControlSlider } from './ControlSlider';
2
- export declare const ControlSliderComponent: {
3
- element: typeof ControlSlider;
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
- triggers: {
22
- name: string;
23
- icon: string;
24
- tooltip: string;
25
- type: string;
26
- properties: {
27
- triggersList: {
28
- type: string;
29
- display: {
30
- type: string;
31
- };
32
- properties: {
33
- click: {
34
- type: string;
35
- };
36
- drag: {
37
- type: string;
38
- };
39
- };
40
- };
41
- autoPlay: {
42
- type: string[];
43
- label: string;
44
- display: {
45
- type: string;
46
- };
47
- enum: (string | null)[];
48
- };
49
- };
50
- };
51
- direction: {
52
- name: string;
53
- icon: string;
54
- tooltip: string;
55
- type: string;
56
- display: {
57
- type: string;
58
- };
59
- enum: string[];
60
- };
61
- transition: {
62
- name: string;
63
- icon: string;
64
- tooltip: string;
65
- type: string;
66
- properties: {
67
- type: {
68
- type: string;
69
- display: {
70
- type: string;
71
- };
72
- enum: string[];
73
- };
74
- backgroundColor: {
75
- type: string[];
76
- name: string;
77
- display: {
78
- visible: boolean;
79
- type: string;
80
- format: string;
81
- };
82
- };
83
- duration: {
84
- type: string;
85
- label: string;
86
- display: {
87
- type: string;
88
- };
89
- enum: string[];
90
- };
91
- };
92
- };
93
- controls: {
94
- name: string;
95
- icon: string;
96
- tooltip: string;
97
- type: string;
98
- properties: {
99
- isActive: {
100
- type: string;
101
- display: {
102
- type: string;
103
- };
104
- };
105
- arrowsImgUrl: {
106
- type: string[];
107
- display: {
108
- type: string;
109
- };
110
- };
111
- offset: {
112
- type: string;
113
- display: {
114
- type: string;
115
- };
116
- properties: {
117
- x: {
118
- type: string;
119
- };
120
- y: {
121
- type: string;
122
- };
123
- };
124
- };
125
- scale: {
126
- type: string;
127
- name: string;
128
- min: number;
129
- max: number;
130
- display: {
131
- type: string;
132
- };
133
- };
134
- color: {
135
- name: string;
136
- type: string;
137
- display: {
138
- type: string;
139
- format: string;
140
- };
141
- };
142
- hover: {
143
- name: string;
144
- type: string;
145
- display: {
146
- type: string;
147
- format: string;
148
- };
149
- };
150
- };
151
- };
152
- pagination: {
153
- name: string;
154
- icon: string;
155
- tooltip: string;
156
- type: string;
157
- properties: {
158
- isActive: {
159
- type: string;
160
- display: {
161
- type: string;
162
- };
163
- };
164
- position: {
165
- name: string;
166
- display: {
167
- type: string;
168
- direction: string;
169
- };
170
- type: string;
171
- enum: string[];
172
- };
173
- offset: {
174
- type: string;
175
- display: {
176
- type: string;
177
- };
178
- properties: {
179
- x: {
180
- type: string;
181
- };
182
- y: {
183
- type: string;
184
- };
185
- };
186
- };
187
- scale: {
188
- type: string;
189
- name: string;
190
- min: number;
191
- max: number;
192
- display: {
193
- type: string;
194
- };
195
- };
196
- colors: {
197
- display: {
198
- type: string;
199
- format: string;
200
- };
201
- name: string;
202
- type: string;
203
- items: {
204
- type: string;
205
- };
206
- };
207
- hover: {
208
- name: string;
209
- type: string;
210
- display: {
211
- type: string;
212
- format: string;
213
- };
214
- };
215
- };
216
- };
217
- caption: {
218
- name: string;
219
- icon: string;
220
- tooltip: string;
221
- type: string;
222
- properties: {
223
- isActive: {
224
- type: string;
225
- display: {
226
- type: string;
227
- };
228
- };
229
- alignment: {
230
- name: string;
231
- type: string;
232
- display: {
233
- type: string;
234
- };
235
- enum: string[];
236
- };
237
- offset: {
238
- type: string;
239
- display: {
240
- type: string;
241
- };
242
- properties: {
243
- x: {
244
- type: string;
245
- };
246
- y: {
247
- type: string;
248
- };
249
- };
250
- };
251
- hover: {
252
- name: string;
253
- type: string;
254
- display: {
255
- type: string;
256
- format: string;
257
- };
258
- };
259
- };
260
- };
261
- };
262
- default: {
263
- triggers: {
264
- triggersList: {
265
- click: boolean;
266
- drag: boolean;
267
- };
268
- autoPlay: null;
269
- };
270
- controls: {
271
- isActive: boolean;
272
- arrowsImgUrl: null;
273
- offset: {
274
- x: number;
275
- y: number;
276
- };
277
- scale: number;
278
- color: string;
279
- hover: string;
280
- };
281
- transition: {
282
- type: string;
283
- duration: string;
284
- backgroundColor: null;
285
- };
286
- pagination: {
287
- isActive: boolean;
288
- scale: number;
289
- position: string;
290
- offset: {
291
- x: number;
292
- y: number;
293
- };
294
- colors: string[];
295
- hover: string;
296
- };
297
- direction: string;
298
- caption: {
299
- offset: {
300
- x: number;
301
- y: number;
302
- };
303
- isActive: boolean;
304
- alignment: string;
305
- hover: string;
306
- };
307
- };
308
- displayRules: ({
309
- if: {
310
- name: string;
311
- value: string;
312
- };
313
- then: {
314
- name: string;
315
- value: string;
316
- };
317
- } | {
318
- if: {
319
- name: string;
320
- value: string;
321
- };
322
- then: {
323
- name: string;
324
- value: boolean;
325
- };
326
- })[];
327
- };
328
- content: {
329
- layoutBased: boolean;
330
- type: string;
331
- settings: {
332
- addItemFromFileExplorer: boolean;
333
- };
334
- items: {
335
- type: string;
336
- properties: {
337
- image: {
338
- type: string;
339
- display: {
340
- type: string;
341
- minWidth: number;
342
- defaultWidth: number;
343
- maxWidth: number;
344
- };
345
- properties: {
346
- url: {
347
- type: string;
348
- };
349
- name: {
350
- type: string;
351
- };
352
- objectFit: {
353
- type: string;
354
- enum: string[];
355
- };
356
- };
357
- required: string[];
358
- };
359
- imageCaption: {
360
- display: {
361
- type: string;
362
- placeholder: string;
363
- minWidth: number;
364
- defaultWidth: number;
365
- maxWidth: number;
366
- };
367
- };
368
- };
369
- required: string[];
370
- };
371
- default: {
372
- image: {
373
- objectFit: string;
374
- url: string;
375
- name: string;
376
- };
377
- imageCaption: {
378
- type: string;
379
- children: {
380
- text: string;
381
- }[];
382
- }[];
383
- }[];
384
- };
385
- styles: {
386
- layoutBased: boolean;
387
- type: string;
388
- properties: {
389
- caption: {
390
- dataName: string;
391
- type: string;
392
- properties: {
393
- fontSettings: {
394
- type: string;
395
- display: {
396
- type: string;
397
- };
398
- properties: {
399
- fontFamily: {
400
- type: string;
401
- };
402
- fontWeight: {
403
- type: string;
404
- };
405
- fontStyle: {
406
- type: string;
407
- };
408
- };
409
- };
410
- widthSettings: {
411
- display: {
412
- type: string;
413
- };
414
- type: string;
415
- properties: {
416
- width: {
417
- type: string;
418
- };
419
- sizing: {
420
- type: string;
421
- enum: string[];
422
- };
423
- };
424
- };
425
- fontSizeLineHeight: {
426
- type: string;
427
- display: {
428
- type: string;
429
- };
430
- properties: {
431
- fontSize: {
432
- type: string;
433
- };
434
- lineHeight: {
435
- type: string;
436
- };
437
- };
438
- };
439
- letterSpacing: {
440
- display: {
441
- type: string;
442
- };
443
- type: string;
444
- };
445
- wordSpacing: {
446
- display: {
447
- type: string;
448
- };
449
- type: string;
450
- };
451
- textAlign: {
452
- display: {
453
- type: string;
454
- };
455
- type: string;
456
- enum: string[];
457
- };
458
- textAppearance: {
459
- display: {
460
- type: string;
461
- };
462
- properties: {
463
- textTransform: {
464
- type: string;
465
- enum: string[];
466
- };
467
- textDecoration: {
468
- type: string;
469
- enum: string[];
470
- };
471
- fontVariant: {
472
- type: string;
473
- enum: string[];
474
- };
475
- };
476
- };
477
- color: {
478
- display: {
479
- type: string;
480
- };
481
- type: string;
482
- };
483
- };
484
- };
485
- };
486
- default: {
487
- caption: {
488
- widthSettings: {
489
- width: number;
490
- sizing: string;
491
- };
492
- fontSettings: {
493
- fontFamily: string;
494
- fontWeight: number;
495
- fontStyle: string;
496
- };
497
- fontSizeLineHeight: {
498
- fontSize: number;
499
- lineHeight: number;
500
- };
501
- letterSpacing: number;
502
- wordSpacing: number;
503
- textAlign: string;
504
- textAppearance: {
505
- textTransform: string;
506
- textDecoration: string;
507
- fontVariant: string;
508
- };
509
- color: string;
510
- };
511
- };
512
- };
513
- };
514
- required: string[];
515
- };
516
- };