@cntrl-site/components 0.0.1

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 (155) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/dist/cli.d.ts +10 -0
  4. package/dist/components.css +1 -0
  5. package/dist/index.d.ts +33 -0
  6. package/dist/index.js +7765 -0
  7. package/dist/index.mjs +7748 -0
  8. package/dist/sdk/Client/Client.d.ts +32 -0
  9. package/dist/sdk/Client/Client.test.d.ts +1 -0
  10. package/dist/sdk/Client/__mock__/articleMock.d.ts +2 -0
  11. package/dist/sdk/Client/__mock__/keyframesMock.d.ts +2 -0
  12. package/dist/sdk/Client/__mock__/projectMock.d.ts +2 -0
  13. package/dist/sdk/Components/ControlSlider/ControlSlider.d.ts +90 -0
  14. package/dist/sdk/Components/ControlSlider/ControlSliderComponent.d.ts +519 -0
  15. package/dist/sdk/Components/ImageRevealSlider/ControlImageRevealSliderComponent.d.ts +209 -0
  16. package/dist/sdk/Components/ImageRevealSlider/ImageRevealSlider.d.ts +38 -0
  17. package/dist/sdk/Components/components.d.ts +2 -0
  18. package/dist/sdk/Components/helpers/RichTextRenderer/RichTextRenderer.d.ts +6 -0
  19. package/dist/sdk/Components/helpers/SvgImage/SvgImage.d.ts +9 -0
  20. package/dist/sdk/Components/utils/scalingValue.d.ts +1 -0
  21. package/dist/sdk/FontFaceGenerator/FontFaceGenerator.d.ts +6 -0
  22. package/dist/sdk/FontFaceGenerator/FontFaceGenerator.test.d.ts +1 -0
  23. package/dist/sdk/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.d.ts +31 -0
  24. package/dist/sdk/VideoDecoder/VideoDecoder.d.ts +12 -0
  25. package/dist/sdk/schemas/article/Article.schema.d.ts +328 -0
  26. package/dist/sdk/schemas/article/FillLayer.schema.d.ts +186 -0
  27. package/dist/sdk/schemas/article/Interaction.schema.d.ts +103 -0
  28. package/dist/sdk/schemas/article/Item.schema.d.ts +40 -0
  29. package/dist/sdk/schemas/article/ItemArea.schema.d.ts +36 -0
  30. package/dist/sdk/schemas/article/ItemBase.schema.d.ts +137 -0
  31. package/dist/sdk/schemas/article/ItemState.schema.d.ts +15723 -0
  32. package/dist/sdk/schemas/article/RichTextItem.schema.d.ts +1372 -0
  33. package/dist/sdk/schemas/article/Section.schema.d.ts +176 -0
  34. package/dist/sdk/schemas/keyframe/Keyframes.schema.d.ts +2000 -0
  35. package/dist/sdk/schemas/project/Layout.schema.d.ts +17 -0
  36. package/dist/sdk/schemas/project/Project.schema.d.ts +253 -0
  37. package/dist/sdk/schemas/shared/FillLayer.schema.d.ts +186 -0
  38. package/dist/sdk/types/article/Article.d.ts +7 -0
  39. package/dist/sdk/types/article/ArticleItemType.d.ts +13 -0
  40. package/dist/sdk/types/article/CompoundSettings.d.ts +6 -0
  41. package/dist/sdk/types/article/FX.d.ts +23 -0
  42. package/dist/sdk/types/article/Interaction.d.ts +28 -0
  43. package/dist/sdk/types/article/Item.d.ts +250 -0
  44. package/dist/sdk/types/article/ItemArea.d.ts +36 -0
  45. package/dist/sdk/types/article/ItemState.d.ts +78 -0
  46. package/dist/sdk/types/article/RichText.d.ts +40 -0
  47. package/dist/sdk/types/article/Section.d.ts +37 -0
  48. package/dist/sdk/types/component/Component.d.ts +15 -0
  49. package/dist/sdk/types/keyframe/Keyframe.d.ts +86 -0
  50. package/dist/sdk/types/project/Fonts.d.ts +22 -0
  51. package/dist/sdk/types/project/Layout.d.ts +6 -0
  52. package/dist/sdk/types/project/Meta.d.ts +9 -0
  53. package/dist/sdk/types/project/Page.d.ts +11 -0
  54. package/dist/sdk/types/project/Project.d.ts +17 -0
  55. package/dist/sdk-nextjs/common/useCurrentLayout.d.ts +6 -0
  56. package/dist/sdk-nextjs/common/useExemplary.d.ts +1 -0
  57. package/dist/sdk-nextjs/common/useItemFXData.d.ts +8 -0
  58. package/dist/sdk-nextjs/common/useKeyframeValue.d.ts +8 -0
  59. package/dist/sdk-nextjs/common/useRegisterResize.d.ts +1 -0
  60. package/dist/sdk-nextjs/components/Article.d.ts +9 -0
  61. package/dist/sdk-nextjs/components/ArticleWrapper.d.ts +2 -0
  62. package/dist/sdk-nextjs/components/Head.d.ts +9 -0
  63. package/dist/sdk-nextjs/components/LayoutStyle.d.ts +9 -0
  64. package/dist/sdk-nextjs/components/Page.d.ts +15 -0
  65. package/dist/sdk-nextjs/components/ScrollPlaybackVideo.d.ts +14 -0
  66. package/dist/sdk-nextjs/components/Section/Section.d.ts +11 -0
  67. package/dist/sdk-nextjs/components/Section/SectionImage.d.ts +14 -0
  68. package/dist/sdk-nextjs/components/Section/SectionVideo.d.ts +17 -0
  69. package/dist/sdk-nextjs/components/Section/useSectionColor.d.ts +4 -0
  70. package/dist/sdk-nextjs/components/Section/useSectionHeightMap.d.ts +3 -0
  71. package/dist/sdk-nextjs/components/items/CodeEmbedItem/CodeEmbedItem.d.ts +5 -0
  72. package/dist/sdk-nextjs/components/items/CodeEmbedItem/useCodeEmbedItem.d.ts +7 -0
  73. package/dist/sdk-nextjs/components/items/ComponentItem/ComponentItem.d.ts +4 -0
  74. package/dist/sdk-nextjs/components/items/ComponentItem/useComponentItem.d.ts +5 -0
  75. package/dist/sdk-nextjs/components/items/CompoundItem/CompoundChild.d.ts +9 -0
  76. package/dist/sdk-nextjs/components/items/CompoundItem/CompoundItem.d.ts +4 -0
  77. package/dist/sdk-nextjs/components/items/CompoundItem/useCompoundItem.d.ts +4 -0
  78. package/dist/sdk-nextjs/components/items/CustomItem/CustomItem.d.ts +4 -0
  79. package/dist/sdk-nextjs/components/items/EmbedVideoItem/VimeoEmbed.d.ts +4 -0
  80. package/dist/sdk-nextjs/components/items/EmbedVideoItem/YoutubeEmbed.d.ts +4 -0
  81. package/dist/sdk-nextjs/components/items/EmbedVideoItem/useEmbedVideoItem.d.ts +6 -0
  82. package/dist/sdk-nextjs/components/items/FileItem/ImageItem.d.ts +4 -0
  83. package/dist/sdk-nextjs/components/items/FileItem/VideoItem.d.ts +4 -0
  84. package/dist/sdk-nextjs/components/items/FileItem/useFileItem.d.ts +8 -0
  85. package/dist/sdk-nextjs/components/items/GroupItem/GroupItem.d.ts +4 -0
  86. package/dist/sdk-nextjs/components/items/GroupItem/useGroupItem.d.ts +5 -0
  87. package/dist/sdk-nextjs/components/items/Item.d.ts +20 -0
  88. package/dist/sdk-nextjs/components/items/LinkWrapper.d.ts +8 -0
  89. package/dist/sdk-nextjs/components/items/RectangleItem/RectangleItem.d.ts +4 -0
  90. package/dist/sdk-nextjs/components/items/RectangleItem/useRectangleItem.d.ts +9 -0
  91. package/dist/sdk-nextjs/components/items/RichTextItem/RichTextItem.d.ts +4 -0
  92. package/dist/sdk-nextjs/components/items/RichTextItem/useRichTextItem.d.ts +3 -0
  93. package/dist/sdk-nextjs/components/items/RichTextWrapper.d.ts +7 -0
  94. package/dist/sdk-nextjs/components/items/itemsMap.d.ts +4 -0
  95. package/dist/sdk-nextjs/components/items/useDraggable.d.ts +17 -0
  96. package/dist/sdk-nextjs/components/items/useItemAngle.d.ts +2 -0
  97. package/dist/sdk-nextjs/components/items/useItemArea.d.ts +12 -0
  98. package/dist/sdk-nextjs/components/items/useItemPointerEvents.d.ts +4 -0
  99. package/dist/sdk-nextjs/components/items/useItemScale.d.ts +2 -0
  100. package/dist/sdk-nextjs/components/items/useItemTriggers.d.ts +6 -0
  101. package/dist/sdk-nextjs/components/items/useRichTextItemValues.d.ts +9 -0
  102. package/dist/sdk-nextjs/components/items/useSizing.d.ts +8 -0
  103. package/dist/sdk-nextjs/components/items/useStickyItemTop.d.ts +2 -0
  104. package/dist/sdk-nextjs/components/useLayoutContext.d.ts +1 -0
  105. package/dist/sdk-nextjs/interactions/CSSPropertyNameMap.d.ts +4 -0
  106. package/dist/sdk-nextjs/interactions/InteractionsRegistry.d.ts +39 -0
  107. package/dist/sdk-nextjs/interactions/ItemInteractionCtrl.d.ts +21 -0
  108. package/dist/sdk-nextjs/interactions/getTransition.d.ts +9 -0
  109. package/dist/sdk-nextjs/interactions/types.d.ts +34 -0
  110. package/dist/sdk-nextjs/interactions/useItemInteractionCtrl.d.ts +2 -0
  111. package/dist/sdk-nextjs/provider/ArticleRectContext.d.ts +2 -0
  112. package/dist/sdk-nextjs/provider/CntrlContext.d.ts +2 -0
  113. package/dist/sdk-nextjs/provider/CntrlProvider.d.ts +2 -0
  114. package/dist/sdk-nextjs/provider/CntrlSdkContext.d.ts +31 -0
  115. package/dist/sdk-nextjs/provider/CustomItemRegistry.d.ts +6 -0
  116. package/dist/sdk-nextjs/provider/CustomItemTypes.d.ts +2 -0
  117. package/dist/sdk-nextjs/provider/CustomSectionRegistry.d.ts +15 -0
  118. package/dist/sdk-nextjs/provider/InteractionsContext.d.ts +10 -0
  119. package/dist/sdk-nextjs/provider/Keyframes.d.ts +6 -0
  120. package/dist/sdk-nextjs/provider/KeyframesContext.d.ts +2 -0
  121. package/dist/sdk-nextjs/provider/LayoutContext.d.ts +1 -0
  122. package/dist/sdk-nextjs/provider/WebGLContextManagerContext.d.ts +2 -0
  123. package/dist/sdk-nextjs/provider/defaultContext.d.ts +2 -0
  124. package/dist/sdk-nextjs/provider/useCntrlContext.d.ts +2 -0
  125. package/dist/sdk-nextjs/utils/Animator/Animator.d.ts +43 -0
  126. package/dist/sdk-nextjs/utils/ArticleRectManager/ArticleRectObserver.d.ts +25 -0
  127. package/dist/sdk-nextjs/utils/ArticleRectManager/useArticleRectObserver.d.ts +2 -0
  128. package/dist/sdk-nextjs/utils/ArticleRectManager/useSectionRegistry.d.ts +1 -0
  129. package/dist/sdk-nextjs/utils/EventEmitter.d.ts +11 -0
  130. package/dist/sdk-nextjs/utils/RichTextConverter/RichTextConverter.d.ts +11 -0
  131. package/dist/sdk-nextjs/utils/ScaleAnchorMap.d.ts +11 -0
  132. package/dist/sdk-nextjs/utils/StickyManager/StickyManager.d.ts +10 -0
  133. package/dist/sdk-nextjs/utils/Youtube/YouTubeIframeApiLoader.d.ts +10 -0
  134. package/dist/sdk-nextjs/utils/Youtube/YoutubeIframeApi.d.ts +89 -0
  135. package/dist/sdk-nextjs/utils/Youtube/useYouTubeIframeApi.d.ts +2 -0
  136. package/dist/sdk-nextjs/utils/areFillsVisible/areFillsVisible.d.ts +23 -0
  137. package/dist/sdk-nextjs/utils/areFillsVisible/areFillsVisible.test.d.ts +1 -0
  138. package/dist/sdk-nextjs/utils/binSearchInsertAt.d.ts +5 -0
  139. package/dist/sdk-nextjs/utils/castObject.d.ts +5 -0
  140. package/dist/sdk-nextjs/utils/checkOverflowClipSupport.d.ts +1 -0
  141. package/dist/sdk-nextjs/utils/effects/useImageFx.d.ts +7 -0
  142. package/dist/sdk-nextjs/utils/effects/useVideoFx.d.ts +7 -0
  143. package/dist/sdk-nextjs/utils/getAnchoredItemTop.d.ts +2 -0
  144. package/dist/sdk-nextjs/utils/getCompoundBoundaryStyles.d.ts +12 -0
  145. package/dist/sdk-nextjs/utils/getFill.d.ts +2 -0
  146. package/dist/sdk-nextjs/utils/getFontFamilyValue.d.ts +1 -0
  147. package/dist/sdk-nextjs/utils/getInvertedRanges.d.ts +10 -0
  148. package/dist/sdk-nextjs/utils/getItemTopStyle.d.ts +2 -0
  149. package/dist/sdk-nextjs/utils/getStyleFromItemStateAndParams.d.ts +1 -0
  150. package/dist/sdk-nextjs/utils/getValidYoutubeUrl.d.ts +1 -0
  151. package/dist/sdk-nextjs/utils/isItemType.d.ts +3 -0
  152. package/dist/sdk-nextjs/utils/rangeMap.d.ts +1 -0
  153. package/dist/sdk-nextjs/utils/useElementRect.d.ts +1 -0
  154. package/dist/utils.d.ts +3 -0
  155. package/package.json +92 -0
@@ -0,0 +1,32 @@
1
+ import { Meta } from '../types/project/Meta';
2
+ import { Project } from '../types/project/Project';
3
+ import { Layout } from '../types/project/Layout';
4
+ import { Article } from '../types/article/Article';
5
+ import { KeyframeAny } from '../types/keyframe/Keyframe';
6
+ export declare class Client {
7
+ private fetchImpl;
8
+ private url;
9
+ constructor(APIUrl: string, fetchImpl?: FetchImpl);
10
+ private static getPageMeta;
11
+ getPageData(pageSlug: string, buildMode?: 'default' | 'self-hosted'): Promise<CntrlPageData>;
12
+ getProjectPagesPaths(): Promise<string[]>;
13
+ getLayouts(): Promise<Layout[]>;
14
+ private fetchProject;
15
+ private fetchArticle;
16
+ private findArticleIdByPageSlug;
17
+ }
18
+ interface FetchImplResponse {
19
+ ok: boolean;
20
+ json(): Promise<any>;
21
+ statusText: string;
22
+ }
23
+ type FetchImpl = (url: string, init?: RequestInit) => Promise<FetchImplResponse>;
24
+ interface ArticleData {
25
+ article: Article;
26
+ keyframes: KeyframeAny[];
27
+ }
28
+ interface CntrlPageData extends ArticleData {
29
+ project: Project;
30
+ meta: Meta;
31
+ }
32
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Article } from '../../types/article/Article';
2
+ export declare const articleMock: Article;
@@ -0,0 +1,2 @@
1
+ import { KeyframeAny } from '../../types/keyframe/Keyframe';
2
+ export declare const keyframesMock: KeyframeAny[];
@@ -0,0 +1,2 @@
1
+ import { Project } from '../../types/project/Project';
2
+ export declare const projectMock: Project;
@@ -0,0 +1,90 @@
1
+ interface SliderProps {
2
+ settings: SliderSettings;
3
+ content: SliderItem[];
4
+ styles: SliderStyles;
5
+ isEditor?: boolean;
6
+ }
7
+ export declare function ControlSlider({ settings, content, styles: sliderStyles, isEditor }: SliderProps): JSX.Element;
8
+ type SliderItem = {
9
+ image: {
10
+ url: string;
11
+ name?: string;
12
+ objectFit?: 'cover' | 'contain';
13
+ };
14
+ imageCaption: any[];
15
+ };
16
+ type Offset = {
17
+ x: number;
18
+ y: number;
19
+ };
20
+ type SliderControls = {
21
+ arrowsImgUrl: string | null;
22
+ isActive: boolean;
23
+ color: string;
24
+ hover: string;
25
+ offset: Offset;
26
+ scale: number;
27
+ };
28
+ type SliderPagination = {
29
+ position: 'outside-1' | 'outside-2' | 'inside-1' | 'inside-2';
30
+ isActive: boolean;
31
+ scale: number;
32
+ offset: Offset;
33
+ colors: string[];
34
+ hover: string;
35
+ };
36
+ type Alignment = 'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'middle-center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
37
+ type SliderCaption = {
38
+ alignment: Alignment;
39
+ isActive: boolean;
40
+ color: string;
41
+ offset: Offset;
42
+ hover: string;
43
+ };
44
+ type Triggers = {
45
+ triggersList: {
46
+ click: boolean;
47
+ drag: boolean;
48
+ };
49
+ autoPlay: string | null;
50
+ };
51
+ type SliderSettings = {
52
+ controls: SliderControls;
53
+ pagination: SliderPagination;
54
+ direction: 'horiz' | 'vert';
55
+ transition: {
56
+ type: 'slide' | 'fade in';
57
+ duration: string;
58
+ backgroundColor: string | null;
59
+ };
60
+ caption: SliderCaption;
61
+ triggers: Triggers;
62
+ };
63
+ type CaptionStyles = {
64
+ fontSettings: {
65
+ fontFamily: string;
66
+ fontWeight: number;
67
+ fontStyle: string;
68
+ };
69
+ widthSettings: {
70
+ width: number;
71
+ sizing: 'auto' | 'manual';
72
+ };
73
+ letterSpacing: number;
74
+ textAlign: 'left' | 'center' | 'right';
75
+ wordSpacing: number;
76
+ fontSizeLineHeight: {
77
+ fontSize: number;
78
+ lineHeight: number;
79
+ };
80
+ textAppearance: {
81
+ textTransform: 'none' | 'uppercase' | 'lowercase';
82
+ textDecoration: 'none' | 'underline';
83
+ fontVariant: 'normal' | 'small-caps';
84
+ };
85
+ color: string;
86
+ };
87
+ type SliderStyles = {
88
+ caption: CaptionStyles;
89
+ };
90
+ export {};
@@ -0,0 +1,519 @@
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
+ items: {
332
+ type: string;
333
+ properties: {
334
+ image: {
335
+ type: string;
336
+ display: {
337
+ type: string;
338
+ };
339
+ properties: {
340
+ url: {
341
+ type: string;
342
+ };
343
+ name: {
344
+ type: string;
345
+ };
346
+ objectFit: {
347
+ type: string;
348
+ enum: string[];
349
+ };
350
+ };
351
+ required: string[];
352
+ };
353
+ imageCaption: {
354
+ display: {
355
+ type: string;
356
+ placeholder: string;
357
+ };
358
+ };
359
+ link: {
360
+ type: string;
361
+ display: {
362
+ type: string;
363
+ placeholder: string;
364
+ };
365
+ properties: {
366
+ text: {
367
+ type: string;
368
+ };
369
+ };
370
+ };
371
+ };
372
+ required: string[];
373
+ };
374
+ default: {
375
+ image: {
376
+ objectFit: string;
377
+ url: string;
378
+ name: string;
379
+ };
380
+ imageCaption: {
381
+ type: string;
382
+ children: {
383
+ text: string;
384
+ }[];
385
+ }[];
386
+ }[];
387
+ };
388
+ styles: {
389
+ layoutBased: boolean;
390
+ type: string;
391
+ properties: {
392
+ caption: {
393
+ dataName: string;
394
+ type: string;
395
+ properties: {
396
+ fontSettings: {
397
+ type: string;
398
+ display: {
399
+ type: string;
400
+ };
401
+ properties: {
402
+ fontFamily: {
403
+ type: string;
404
+ };
405
+ fontWeight: {
406
+ type: string;
407
+ };
408
+ fontStyle: {
409
+ type: string;
410
+ };
411
+ };
412
+ };
413
+ widthSettings: {
414
+ display: {
415
+ type: string;
416
+ };
417
+ type: string;
418
+ properties: {
419
+ width: {
420
+ type: string;
421
+ };
422
+ sizing: {
423
+ type: string;
424
+ enum: string[];
425
+ };
426
+ };
427
+ };
428
+ fontSizeLineHeight: {
429
+ type: string;
430
+ display: {
431
+ type: string;
432
+ };
433
+ properties: {
434
+ fontSize: {
435
+ type: string;
436
+ };
437
+ lineHeight: {
438
+ type: string;
439
+ };
440
+ };
441
+ };
442
+ letterSpacing: {
443
+ display: {
444
+ type: string;
445
+ };
446
+ type: string;
447
+ };
448
+ wordSpacing: {
449
+ display: {
450
+ type: string;
451
+ };
452
+ type: string;
453
+ };
454
+ textAlign: {
455
+ display: {
456
+ type: string;
457
+ };
458
+ type: string;
459
+ enum: string[];
460
+ };
461
+ textAppearance: {
462
+ display: {
463
+ type: string;
464
+ };
465
+ properties: {
466
+ textTransform: {
467
+ type: string;
468
+ enum: string[];
469
+ };
470
+ textDecoration: {
471
+ type: string;
472
+ enum: string[];
473
+ };
474
+ fontVariant: {
475
+ type: string;
476
+ enum: string[];
477
+ };
478
+ };
479
+ };
480
+ color: {
481
+ display: {
482
+ type: string;
483
+ };
484
+ type: string;
485
+ };
486
+ };
487
+ };
488
+ };
489
+ default: {
490
+ caption: {
491
+ widthSettings: {
492
+ width: number;
493
+ sizing: string;
494
+ };
495
+ fontSettings: {
496
+ fontFamily: string;
497
+ fontWeight: number;
498
+ fontStyle: string;
499
+ };
500
+ fontSizeLineHeight: {
501
+ fontSize: number;
502
+ lineHeight: number;
503
+ };
504
+ letterSpacing: number;
505
+ wordSpacing: number;
506
+ textAlign: string;
507
+ textAppearance: {
508
+ textTransform: string;
509
+ textDecoration: string;
510
+ fontVariant: string;
511
+ };
512
+ color: string;
513
+ };
514
+ };
515
+ };
516
+ };
517
+ required: string[];
518
+ };
519
+ };