@cntrl-site/sdk 1.24.0 → 1.24.2
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/dist/Components/ControlSlider/ControlSlider.d.ts +1 -2
- package/dist/Components/ImageRevealSlider/ControlImageRevealSliderComponent.d.ts +210 -0
- package/dist/Components/ImageRevealSlider/ImageRevealSlider.d.ts +38 -0
- package/dist/index.js +518 -56
- package/dist/index.mjs +519 -57
- package/dist/sdk.css +1 -1
- package/dist/types/component/Component.d.ts +1 -2
- package/package.json +7 -3
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
interface SliderProps {
|
|
3
2
|
settings: SliderSettings;
|
|
4
3
|
content: SliderItem[];
|
|
5
4
|
styles: SliderStyles;
|
|
6
5
|
isEditor?: boolean;
|
|
7
6
|
}
|
|
8
|
-
export declare function ControlSlider({ settings, content, styles: sliderStyles, isEditor }: SliderProps):
|
|
7
|
+
export declare function ControlSlider({ settings, content, styles: sliderStyles, isEditor }: SliderProps): JSX.Element;
|
|
9
8
|
type SliderItem = {
|
|
10
9
|
image: {
|
|
11
10
|
url: string;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { Component } from '../../types/component/Component';
|
|
2
|
+
import { ImageRevealSlider } from './ImageRevealSlider';
|
|
3
|
+
export declare const ControlImageRevealSliderComponent: {
|
|
4
|
+
element: typeof ImageRevealSlider;
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
preview: {
|
|
8
|
+
type: "video";
|
|
9
|
+
url: string;
|
|
10
|
+
};
|
|
11
|
+
defaultSize: {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
schema: {
|
|
16
|
+
type: string;
|
|
17
|
+
properties: {
|
|
18
|
+
settings: {
|
|
19
|
+
layoutBased: boolean;
|
|
20
|
+
type: string;
|
|
21
|
+
properties: {
|
|
22
|
+
imageSize: {
|
|
23
|
+
name: string;
|
|
24
|
+
icon: string;
|
|
25
|
+
tooltip: string;
|
|
26
|
+
type: string;
|
|
27
|
+
properties: {
|
|
28
|
+
sizeType: {
|
|
29
|
+
name: string;
|
|
30
|
+
type: string;
|
|
31
|
+
display: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
enum: string[];
|
|
35
|
+
};
|
|
36
|
+
imageWidth: {
|
|
37
|
+
type: string;
|
|
38
|
+
label: string;
|
|
39
|
+
display: {
|
|
40
|
+
type: string;
|
|
41
|
+
visible: boolean;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
randomRangeImageWidth: {
|
|
45
|
+
type: string;
|
|
46
|
+
display: {
|
|
47
|
+
type: string;
|
|
48
|
+
visible: boolean;
|
|
49
|
+
};
|
|
50
|
+
properties: {
|
|
51
|
+
min: {
|
|
52
|
+
type: string;
|
|
53
|
+
};
|
|
54
|
+
max: {
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
cursor: {
|
|
62
|
+
name: string;
|
|
63
|
+
icon: string;
|
|
64
|
+
tooltip: string;
|
|
65
|
+
type: string;
|
|
66
|
+
properties: {
|
|
67
|
+
cursorType: {
|
|
68
|
+
name: string;
|
|
69
|
+
type: string;
|
|
70
|
+
display: {
|
|
71
|
+
type: string;
|
|
72
|
+
};
|
|
73
|
+
enum: string[];
|
|
74
|
+
};
|
|
75
|
+
defaultCursor: {
|
|
76
|
+
type: string[];
|
|
77
|
+
display: {
|
|
78
|
+
type: string;
|
|
79
|
+
title: string;
|
|
80
|
+
visible: boolean;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
hoverCursor: {
|
|
84
|
+
type: string[];
|
|
85
|
+
display: {
|
|
86
|
+
type: string;
|
|
87
|
+
title: string;
|
|
88
|
+
visible: boolean;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
position: {
|
|
94
|
+
name: string;
|
|
95
|
+
icon: string;
|
|
96
|
+
tooltip: string;
|
|
97
|
+
type: string;
|
|
98
|
+
properties: {
|
|
99
|
+
revealPosition: {
|
|
100
|
+
type: string;
|
|
101
|
+
display: {
|
|
102
|
+
type: string;
|
|
103
|
+
};
|
|
104
|
+
enum: string[];
|
|
105
|
+
};
|
|
106
|
+
visible: {
|
|
107
|
+
type: string;
|
|
108
|
+
display: {
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
enum: string[];
|
|
112
|
+
};
|
|
113
|
+
target: {
|
|
114
|
+
type: string;
|
|
115
|
+
display: {
|
|
116
|
+
type: string;
|
|
117
|
+
};
|
|
118
|
+
enum: string[];
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
default: {
|
|
124
|
+
imageSize: {
|
|
125
|
+
sizeType: string;
|
|
126
|
+
imageWidth: number;
|
|
127
|
+
randomRangeImageWidth: {
|
|
128
|
+
min: number;
|
|
129
|
+
max: number;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
cursor: {
|
|
133
|
+
cursorType: string;
|
|
134
|
+
defaultCursor: null;
|
|
135
|
+
hoverCursor: null;
|
|
136
|
+
};
|
|
137
|
+
position: {
|
|
138
|
+
revealPosition: string;
|
|
139
|
+
visible: string;
|
|
140
|
+
target: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
displayRules: ({
|
|
144
|
+
if: {
|
|
145
|
+
name: string;
|
|
146
|
+
value: string;
|
|
147
|
+
};
|
|
148
|
+
then: {
|
|
149
|
+
name: string;
|
|
150
|
+
value: boolean;
|
|
151
|
+
};
|
|
152
|
+
} | {
|
|
153
|
+
if: {
|
|
154
|
+
name: string;
|
|
155
|
+
value: string;
|
|
156
|
+
}[];
|
|
157
|
+
then: {
|
|
158
|
+
name: string;
|
|
159
|
+
value: boolean;
|
|
160
|
+
};
|
|
161
|
+
})[];
|
|
162
|
+
};
|
|
163
|
+
content: {
|
|
164
|
+
layoutBased: boolean;
|
|
165
|
+
type: string;
|
|
166
|
+
items: {
|
|
167
|
+
type: string;
|
|
168
|
+
properties: {
|
|
169
|
+
image: {
|
|
170
|
+
type: string;
|
|
171
|
+
display: {
|
|
172
|
+
type: string;
|
|
173
|
+
};
|
|
174
|
+
properties: {
|
|
175
|
+
url: {
|
|
176
|
+
type: string;
|
|
177
|
+
};
|
|
178
|
+
name: {
|
|
179
|
+
type: string;
|
|
180
|
+
};
|
|
181
|
+
objectFit: {
|
|
182
|
+
type: string;
|
|
183
|
+
enum: string[];
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
required: string[];
|
|
187
|
+
};
|
|
188
|
+
link: {
|
|
189
|
+
type: string;
|
|
190
|
+
display: {
|
|
191
|
+
type: string;
|
|
192
|
+
placeholder: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
required: string[];
|
|
197
|
+
};
|
|
198
|
+
default: {
|
|
199
|
+
image: {
|
|
200
|
+
objectFit: string;
|
|
201
|
+
url: string;
|
|
202
|
+
name: string;
|
|
203
|
+
};
|
|
204
|
+
link: string;
|
|
205
|
+
}[];
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
export declare const components: Component[];
|
|
@@ -0,0 +1,38 @@
|
|
|
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' | 'onClick';
|
|
22
|
+
visible: 'all' | 'lastOne';
|
|
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 {};
|