@gravity-ui/page-constructor 4.46.0 → 4.46.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.
Files changed (38) hide show
  1. package/build/cjs/blocks/CardLayout/CardLayout.css +277 -0
  2. package/build/cjs/blocks/CardLayout/CardLayout.js +2 -1
  3. package/build/cjs/blocks/CardLayout/schema.d.ts +134 -62
  4. package/build/cjs/blocks/CardLayout/schema.js +6 -1
  5. package/build/cjs/blocks/ContentLayout/schema.d.ts +123 -65
  6. package/build/cjs/blocks/ContentLayout/schema.js +1 -1
  7. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +270 -0
  8. package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +270 -0
  9. package/build/cjs/blocks/Slider/Slider.css +270 -0
  10. package/build/cjs/components/BalancedMasonry/BalancedMasonry.js +1 -1
  11. package/build/cjs/components/Image/schema.d.ts +102 -1
  12. package/build/cjs/components/Image/schema.js +9 -3
  13. package/build/cjs/models/constructor-items/blocks.d.ts +4 -2
  14. package/build/cjs/schema/constants.d.ts +1 -1
  15. package/build/cjs/schema/validators/common.d.ts +4 -0
  16. package/build/cjs/schema/validators/common.js +6 -5
  17. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +1 -1
  18. package/build/esm/blocks/CardLayout/CardLayout.css +277 -0
  19. package/build/esm/blocks/CardLayout/CardLayout.js +3 -1
  20. package/build/esm/blocks/CardLayout/schema.d.ts +134 -62
  21. package/build/esm/blocks/CardLayout/schema.js +8 -3
  22. package/build/esm/blocks/ContentLayout/schema.d.ts +123 -65
  23. package/build/esm/blocks/ContentLayout/schema.js +2 -2
  24. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +270 -0
  25. package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +270 -0
  26. package/build/esm/blocks/Slider/Slider.css +270 -0
  27. package/build/esm/components/BalancedMasonry/BalancedMasonry.js +1 -1
  28. package/build/esm/components/Image/schema.d.ts +102 -1
  29. package/build/esm/components/Image/schema.js +8 -2
  30. package/build/esm/models/constructor-items/blocks.d.ts +4 -2
  31. package/build/esm/schema/constants.d.ts +1 -1
  32. package/build/esm/schema/validators/common.d.ts +4 -0
  33. package/build/esm/schema/validators/common.js +5 -4
  34. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +1 -1
  35. package/package.json +1 -1
  36. package/server/models/constructor-items/blocks.d.ts +4 -2
  37. package/styles/mixins.scss +13 -10
  38. package/widget/index.js +1 -1
@@ -8,41 +8,77 @@ export declare const CardLayoutProps: {
8
8
  properties: {};
9
9
  };
10
10
  background: {
11
- type: string;
12
- additionalProperties: boolean;
13
- required: string[];
14
- properties: {
15
- src: {
16
- type: string;
17
- pattern: string;
18
- };
19
- style: {
20
- type: string;
21
- additionalProperties: boolean;
22
- required: never[];
23
- properties: {
24
- backgroundColor: {
25
- type: string;
26
- };
27
- height: {
28
- type: string[];
29
- };
30
- width: {
31
- type: string[];
32
- };
33
- color: {
34
- type: string;
11
+ anyOf: ({
12
+ properties: {
13
+ border: {
14
+ type: string;
15
+ enum: string[];
16
+ };
17
+ src: {
18
+ type: string;
19
+ pattern: string;
20
+ };
21
+ style: {
22
+ type: string;
23
+ additionalProperties: boolean;
24
+ required: never[];
25
+ properties: {
26
+ backgroundColor: {
27
+ type: string;
28
+ };
29
+ height: {
30
+ type: string[];
31
+ };
32
+ width: {
33
+ type: string[];
34
+ };
35
+ color: {
36
+ type: string;
37
+ };
35
38
  };
36
39
  };
40
+ alt: {
41
+ type: string;
42
+ contentType: string;
43
+ };
44
+ disableCompress: {
45
+ type: string;
46
+ };
37
47
  };
38
- alt: {
39
- type: string;
40
- contentType: string;
41
- };
42
- disableCompress: {
43
- type: string;
48
+ optionName: string;
49
+ type: string;
50
+ additionalProperties: boolean;
51
+ } | {
52
+ properties: {
53
+ border: {
54
+ type: string;
55
+ enum: string[];
56
+ };
57
+ desktop: {
58
+ type: string;
59
+ pattern: string;
60
+ };
61
+ tablet: {
62
+ type: string;
63
+ pattern: string;
64
+ };
65
+ mobile: {
66
+ type: string;
67
+ pattern: string;
68
+ };
69
+ alt: {
70
+ type: string;
71
+ contentType: string;
72
+ };
73
+ disableCompress: {
74
+ type: string;
75
+ };
44
76
  };
45
- };
77
+ optionName: string;
78
+ type: string;
79
+ additionalProperties: boolean;
80
+ required: string[];
81
+ })[];
46
82
  };
47
83
  children: {
48
84
  type: string;
@@ -144,41 +180,77 @@ export declare const CardLayoutBlock: {
144
180
  properties: {};
145
181
  };
146
182
  background: {
147
- type: string;
148
- additionalProperties: boolean;
149
- required: string[];
150
- properties: {
151
- src: {
152
- type: string;
153
- pattern: string;
154
- };
155
- style: {
156
- type: string;
157
- additionalProperties: boolean;
158
- required: never[];
159
- properties: {
160
- backgroundColor: {
161
- type: string;
162
- };
163
- height: {
164
- type: string[];
165
- };
166
- width: {
167
- type: string[];
168
- };
169
- color: {
170
- type: string;
183
+ anyOf: ({
184
+ properties: {
185
+ border: {
186
+ type: string;
187
+ enum: string[];
188
+ };
189
+ src: {
190
+ type: string;
191
+ pattern: string;
192
+ };
193
+ style: {
194
+ type: string;
195
+ additionalProperties: boolean;
196
+ required: never[];
197
+ properties: {
198
+ backgroundColor: {
199
+ type: string;
200
+ };
201
+ height: {
202
+ type: string[];
203
+ };
204
+ width: {
205
+ type: string[];
206
+ };
207
+ color: {
208
+ type: string;
209
+ };
171
210
  };
172
211
  };
212
+ alt: {
213
+ type: string;
214
+ contentType: string;
215
+ };
216
+ disableCompress: {
217
+ type: string;
218
+ };
173
219
  };
174
- alt: {
175
- type: string;
176
- contentType: string;
177
- };
178
- disableCompress: {
179
- type: string;
220
+ optionName: string;
221
+ type: string;
222
+ additionalProperties: boolean;
223
+ } | {
224
+ properties: {
225
+ border: {
226
+ type: string;
227
+ enum: string[];
228
+ };
229
+ desktop: {
230
+ type: string;
231
+ pattern: string;
232
+ };
233
+ tablet: {
234
+ type: string;
235
+ pattern: string;
236
+ };
237
+ mobile: {
238
+ type: string;
239
+ pattern: string;
240
+ };
241
+ alt: {
242
+ type: string;
243
+ contentType: string;
244
+ };
245
+ disableCompress: {
246
+ type: string;
247
+ };
180
248
  };
181
- };
249
+ optionName: string;
250
+ type: string;
251
+ additionalProperties: boolean;
252
+ required: string[];
253
+ })[];
182
254
  };
183
255
  children: {
184
256
  type: string;
@@ -1,9 +1,14 @@
1
- import { ImageObjectProps } from '../../components/Image/schema';
2
- import { AnimatableProps, BlockBaseProps, BlockHeaderProps, ChildrenCardsProps, containerSizesObject, } from '../../schema/validators/common';
1
+ import { ImageBaseObjectProps, ImageDeviceProps } from '../../components/Image/schema';
2
+ import { AnimatableProps, BlockBaseProps, BlockHeaderProps, BorderProps, ChildrenCardsProps, containerSizesObject, } from '../../schema/validators/common';
3
3
  export const CardLayoutProps = {
4
4
  additionalProperties: false,
5
5
  required: [],
6
- properties: Object.assign(Object.assign(Object.assign(Object.assign({}, BlockBaseProps), AnimatableProps), BlockHeaderProps), { colSizes: containerSizesObject, background: ImageObjectProps, children: ChildrenCardsProps }),
6
+ properties: Object.assign(Object.assign(Object.assign(Object.assign({}, BlockBaseProps), AnimatableProps), BlockHeaderProps), { colSizes: containerSizesObject, background: {
7
+ anyOf: [
8
+ Object.assign(Object.assign({}, ImageBaseObjectProps), { properties: Object.assign(Object.assign({}, ImageBaseObjectProps.properties), { border: BorderProps }), optionName: 'options' }),
9
+ Object.assign(Object.assign({}, ImageDeviceProps), { properties: Object.assign(Object.assign({}, ImageDeviceProps.properties), { border: BorderProps }), optionName: 'device options' }),
10
+ ],
11
+ }, children: ChildrenCardsProps }),
7
12
  };
8
13
  export const CardLayoutBlock = {
9
14
  'card-layout-block': CardLayoutProps,
@@ -7,41 +7,71 @@ export declare const ContentLayoutBlock: {
7
7
  enum: string[];
8
8
  };
9
9
  background: {
10
- type: string;
11
- additionalProperties: boolean;
12
- required: string[];
13
- properties: {
14
- src: {
15
- type: string;
16
- pattern: string;
17
- };
18
- style: {
19
- type: string;
20
- additionalProperties: boolean;
21
- required: never[];
22
- properties: {
23
- backgroundColor: {
24
- type: string;
25
- };
26
- height: {
27
- type: string[];
28
- };
29
- width: {
30
- type: string[];
31
- };
32
- color: {
33
- type: string;
10
+ anyOf: ({
11
+ optionName: string;
12
+ type: string;
13
+ additionalProperties: boolean;
14
+ properties: {
15
+ src: {
16
+ type: string;
17
+ pattern: string;
18
+ };
19
+ style: {
20
+ type: string;
21
+ additionalProperties: boolean;
22
+ required: never[];
23
+ properties: {
24
+ backgroundColor: {
25
+ type: string;
26
+ };
27
+ height: {
28
+ type: string[];
29
+ };
30
+ width: {
31
+ type: string[];
32
+ };
33
+ color: {
34
+ type: string;
35
+ };
34
36
  };
35
37
  };
38
+ alt: {
39
+ type: string;
40
+ contentType: string;
41
+ };
42
+ disableCompress: {
43
+ type: string;
44
+ };
36
45
  };
37
- alt: {
38
- type: string;
39
- contentType: string;
40
- };
41
- disableCompress: {
42
- type: string;
46
+ } | {
47
+ optionName: string;
48
+ type: string;
49
+ additionalProperties: boolean;
50
+ required: string[];
51
+ properties: {
52
+ desktop: {
53
+ type: string;
54
+ pattern: string;
55
+ };
56
+ tablet: {
57
+ type: string;
58
+ pattern: string;
59
+ }; /**
60
+ * @deprecated Use params on top level instead
61
+ */
62
+ mobile: {
63
+ type: string;
64
+ pattern: string;
65
+ };
66
+ alt: {
67
+ type: string;
68
+ contentType: string;
69
+ };
70
+ disableCompress: {
71
+ type: string;
72
+ };
43
73
  };
44
- };
74
+ })[];
45
75
  };
46
76
  centered: {
47
77
  type: string;
@@ -92,9 +122,7 @@ export declare const ContentLayoutBlock: {
92
122
  };
93
123
  contentType?: undefined;
94
124
  })[];
95
- }; /**
96
- * @deprecated Use params on top level instead
97
- */
125
+ };
98
126
  text: {
99
127
  type: string;
100
128
  contentType: string;
@@ -167,41 +195,71 @@ export declare const ContentLayoutBlock: {
167
195
  enum: string[];
168
196
  };
169
197
  background: {
170
- type: string;
171
- additionalProperties: boolean;
172
- required: string[];
173
- properties: {
174
- src: {
175
- type: string;
176
- pattern: string;
177
- };
178
- style: {
179
- type: string;
180
- additionalProperties: boolean;
181
- required: never[];
182
- properties: {
183
- backgroundColor: {
184
- type: string;
185
- };
186
- height: {
187
- type: string[];
188
- };
189
- width: {
190
- type: string[];
191
- };
192
- color: {
193
- type: string;
198
+ anyOf: ({
199
+ optionName: string;
200
+ type: string;
201
+ additionalProperties: boolean;
202
+ properties: {
203
+ src: {
204
+ type: string;
205
+ pattern: string;
206
+ };
207
+ style: {
208
+ type: string;
209
+ additionalProperties: boolean;
210
+ required: never[];
211
+ properties: {
212
+ backgroundColor: {
213
+ type: string;
214
+ };
215
+ height: {
216
+ type: string[];
217
+ };
218
+ width: {
219
+ type: string[];
220
+ };
221
+ color: {
222
+ type: string;
223
+ };
194
224
  };
195
225
  };
226
+ alt: {
227
+ type: string;
228
+ contentType: string;
229
+ };
230
+ disableCompress: {
231
+ type: string;
232
+ };
196
233
  };
197
- alt: {
198
- type: string;
199
- contentType: string;
200
- };
201
- disableCompress: {
202
- type: string;
234
+ } | {
235
+ optionName: string;
236
+ type: string;
237
+ additionalProperties: boolean;
238
+ required: string[];
239
+ properties: {
240
+ desktop: {
241
+ type: string;
242
+ pattern: string;
243
+ };
244
+ tablet: {
245
+ type: string;
246
+ pattern: string;
247
+ }; /**
248
+ * @deprecated Use params on top level instead
249
+ */
250
+ mobile: {
251
+ type: string;
252
+ pattern: string;
253
+ };
254
+ alt: {
255
+ type: string;
256
+ contentType: string;
257
+ };
258
+ disableCompress: {
259
+ type: string;
260
+ };
203
261
  };
204
- };
262
+ })[];
205
263
  };
206
264
  centered: {
207
265
  type: string;
@@ -1,4 +1,4 @@
1
- import { ImageObjectProps } from '../../components/Image/schema';
1
+ import { BackgroundImageProps } from '../../components/Image/schema';
2
2
  import { BlockBaseProps, FileLinkProps, contentSizes, contentTextWidth, contentThemes, } from '../../schema/validators/common';
3
3
  import { filteredArray } from '../../schema/validators/utils';
4
4
  import { ContentBlock } from '../../sub-blocks/Content/schema';
@@ -7,7 +7,7 @@ const ContentLayoutBlockProperties = {
7
7
  type: 'string',
8
8
  enum: contentSizes,
9
9
  },
10
- background: ImageObjectProps,
10
+ background: BackgroundImageProps,
11
11
  centered: {
12
12
  type: 'boolean',
13
13
  },