@gravity-ui/page-constructor 2.3.0 → 2.3.2-alpha.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 (32) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/cjs/blocks/FilterBlock/schema.js +1 -1
  3. package/build/cjs/blocks/Header/schema.d.ts +390 -0
  4. package/build/cjs/blocks/HeaderSlider/schema.d.ts +156 -0
  5. package/build/cjs/blocks/Media/schema.d.ts +156 -0
  6. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
  7. package/build/cjs/blocks/Security/schema.d.ts +78 -0
  8. package/build/cjs/blocks/Tabs/schema.d.ts +78 -0
  9. package/build/cjs/schema/index.d.ts +78 -0
  10. package/build/cjs/schema/index.js +2 -1
  11. package/build/cjs/schema/validators/blocks.d.ts +1 -0
  12. package/build/cjs/schema/validators/blocks.js +1 -0
  13. package/build/cjs/schema/validators/common.d.ts +234 -0
  14. package/build/cjs/schema/validators/common.js +5 -2
  15. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +78 -0
  16. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +78 -0
  17. package/build/esm/blocks/FilterBlock/schema.js +1 -1
  18. package/build/esm/blocks/Header/schema.d.ts +390 -0
  19. package/build/esm/blocks/HeaderSlider/schema.d.ts +156 -0
  20. package/build/esm/blocks/Media/schema.d.ts +156 -0
  21. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
  22. package/build/esm/blocks/Security/schema.d.ts +78 -0
  23. package/build/esm/blocks/Tabs/schema.d.ts +78 -0
  24. package/build/esm/schema/index.d.ts +78 -0
  25. package/build/esm/schema/index.js +3 -2
  26. package/build/esm/schema/validators/blocks.d.ts +1 -0
  27. package/build/esm/schema/validators/blocks.js +1 -0
  28. package/build/esm/schema/validators/common.d.ts +234 -0
  29. package/build/esm/schema/validators/common.js +5 -2
  30. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +78 -0
  31. package/build/esm/sub-blocks/MediaCard/schema.d.ts +78 -0
  32. package/package.json +4 -1
@@ -99,6 +99,84 @@ export declare const Media: {
99
99
  type: string;
100
100
  enum: string[];
101
101
  };
102
+ analyticsEvents: {
103
+ anyOf: ({
104
+ type: string;
105
+ additionalProperties: {
106
+ type: string;
107
+ };
108
+ required: string[];
109
+ properties: {
110
+ name: {
111
+ type: string;
112
+ };
113
+ type: {
114
+ type: string;
115
+ };
116
+ counters: {
117
+ type: string;
118
+ additionalProperties: boolean;
119
+ required: never[];
120
+ properties: {
121
+ include: {
122
+ type: string;
123
+ items: {
124
+ type: string;
125
+ };
126
+ };
127
+ exclude: {
128
+ type: string;
129
+ items: {
130
+ type: string;
131
+ };
132
+ };
133
+ };
134
+ };
135
+ context: {
136
+ type: string;
137
+ };
138
+ };
139
+ } | {
140
+ type: string;
141
+ items: {
142
+ type: string;
143
+ additionalProperties: {
144
+ type: string;
145
+ };
146
+ required: string[];
147
+ properties: {
148
+ name: {
149
+ type: string;
150
+ };
151
+ type: {
152
+ type: string;
153
+ };
154
+ counters: {
155
+ type: string;
156
+ additionalProperties: boolean;
157
+ required: never[];
158
+ properties: {
159
+ include: {
160
+ type: string;
161
+ items: {
162
+ type: string;
163
+ };
164
+ };
165
+ exclude: {
166
+ type: string;
167
+ items: {
168
+ type: string;
169
+ };
170
+ };
171
+ };
172
+ };
173
+ context: {
174
+ type: string;
175
+ };
176
+ };
177
+ };
178
+ })[];
179
+ };
102
180
  };
103
181
  };
104
182
  youtube: {
@@ -576,6 +654,84 @@ export declare const MediaBlock: {
576
654
  type: string;
577
655
  enum: string[];
578
656
  };
657
+ analyticsEvents: {
658
+ anyOf: ({
659
+ type: string;
660
+ additionalProperties: {
661
+ type: string;
662
+ };
663
+ required: string[];
664
+ properties: {
665
+ name: {
666
+ type: string;
667
+ };
668
+ type: {
669
+ type: string;
670
+ };
671
+ counters: {
672
+ type: string;
673
+ additionalProperties: boolean;
674
+ required: never[];
675
+ properties: {
676
+ include: {
677
+ type: string;
678
+ items: {
679
+ type: string;
680
+ };
681
+ };
682
+ exclude: {
683
+ type: string;
684
+ items: {
685
+ type: string;
686
+ };
687
+ };
688
+ };
689
+ };
690
+ context: {
691
+ type: string;
692
+ };
693
+ };
694
+ } | {
695
+ type: string;
696
+ items: {
697
+ type: string;
698
+ additionalProperties: {
699
+ type: string;
700
+ };
701
+ required: string[];
702
+ properties: {
703
+ name: {
704
+ type: string;
705
+ };
706
+ type: {
707
+ type: string;
708
+ };
709
+ counters: {
710
+ type: string;
711
+ additionalProperties: boolean;
712
+ required: never[];
713
+ properties: {
714
+ include: {
715
+ type: string;
716
+ items: {
717
+ type: string;
718
+ };
719
+ };
720
+ exclude: {
721
+ type: string;
722
+ items: {
723
+ type: string;
724
+ };
725
+ };
726
+ };
727
+ };
728
+ context: {
729
+ type: string;
730
+ };
731
+ };
732
+ };
733
+ })[];
734
+ };
579
735
  };
580
736
  };
581
737
  youtube: {
@@ -114,6 +114,84 @@ export declare const PromoFeaturesItem: {
114
114
  type: string;
115
115
  enum: string[];
116
116
  };
117
+ analyticsEvents: {
118
+ anyOf: ({
119
+ type: string;
120
+ additionalProperties: {
121
+ type: string;
122
+ };
123
+ required: string[];
124
+ properties: {
125
+ name: {
126
+ type: string;
127
+ };
128
+ type: {
129
+ type: string;
130
+ };
131
+ counters: {
132
+ type: string;
133
+ additionalProperties: boolean;
134
+ required: never[];
135
+ properties: {
136
+ include: {
137
+ type: string;
138
+ items: {
139
+ type: string;
140
+ };
141
+ };
142
+ exclude: {
143
+ type: string;
144
+ items: {
145
+ type: string;
146
+ };
147
+ };
148
+ };
149
+ };
150
+ context: {
151
+ type: string;
152
+ };
153
+ };
154
+ } | {
155
+ type: string;
156
+ items: {
157
+ type: string;
158
+ additionalProperties: {
159
+ type: string;
160
+ };
161
+ required: string[];
162
+ properties: {
163
+ name: {
164
+ type: string;
165
+ };
166
+ type: {
167
+ type: string;
168
+ };
169
+ counters: {
170
+ type: string;
171
+ additionalProperties: boolean;
172
+ required: never[];
173
+ properties: {
174
+ include: {
175
+ type: string;
176
+ items: {
177
+ type: string;
178
+ };
179
+ };
180
+ exclude: {
181
+ type: string;
182
+ items: {
183
+ type: string;
184
+ };
185
+ };
186
+ };
187
+ };
188
+ context: {
189
+ type: string;
190
+ };
191
+ };
192
+ };
193
+ })[];
194
+ };
117
195
  };
118
196
  };
119
197
  youtube: {
@@ -115,6 +115,84 @@ export declare const SecurityBlock: {
115
115
  type: string;
116
116
  enum: string[];
117
117
  };
118
+ analyticsEvents: {
119
+ anyOf: ({
120
+ type: string;
121
+ additionalProperties: {
122
+ type: string;
123
+ };
124
+ required: string[];
125
+ properties: {
126
+ name: {
127
+ type: string;
128
+ };
129
+ type: {
130
+ type: string;
131
+ };
132
+ counters: {
133
+ type: string;
134
+ additionalProperties: boolean;
135
+ required: never[];
136
+ properties: {
137
+ include: {
138
+ type: string;
139
+ items: {
140
+ type: string;
141
+ };
142
+ };
143
+ exclude: {
144
+ type: string;
145
+ items: {
146
+ type: string;
147
+ };
148
+ };
149
+ };
150
+ };
151
+ context: {
152
+ type: string;
153
+ };
154
+ };
155
+ } | {
156
+ type: string;
157
+ items: {
158
+ type: string;
159
+ additionalProperties: {
160
+ type: string;
161
+ };
162
+ required: string[];
163
+ properties: {
164
+ name: {
165
+ type: string;
166
+ };
167
+ type: {
168
+ type: string;
169
+ };
170
+ counters: {
171
+ type: string;
172
+ additionalProperties: boolean;
173
+ required: never[];
174
+ properties: {
175
+ include: {
176
+ type: string;
177
+ items: {
178
+ type: string;
179
+ };
180
+ };
181
+ exclude: {
182
+ type: string;
183
+ items: {
184
+ type: string;
185
+ };
186
+ };
187
+ };
188
+ };
189
+ context: {
190
+ type: string;
191
+ };
192
+ };
193
+ };
194
+ })[];
195
+ };
118
196
  };
119
197
  };
120
198
  youtube: {
@@ -110,6 +110,84 @@ export declare const tabsItem: {
110
110
  type: string;
111
111
  enum: string[];
112
112
  };
113
+ analyticsEvents: {
114
+ anyOf: ({
115
+ type: string;
116
+ additionalProperties: {
117
+ type: string;
118
+ };
119
+ required: string[];
120
+ properties: {
121
+ name: {
122
+ type: string;
123
+ };
124
+ type: {
125
+ type: string;
126
+ };
127
+ counters: {
128
+ type: string;
129
+ additionalProperties: boolean;
130
+ required: never[];
131
+ properties: {
132
+ include: {
133
+ type: string;
134
+ items: {
135
+ type: string;
136
+ };
137
+ };
138
+ exclude: {
139
+ type: string;
140
+ items: {
141
+ type: string;
142
+ };
143
+ };
144
+ };
145
+ };
146
+ context: {
147
+ type: string;
148
+ };
149
+ };
150
+ } | {
151
+ type: string;
152
+ items: {
153
+ type: string;
154
+ additionalProperties: {
155
+ type: string;
156
+ };
157
+ required: string[];
158
+ properties: {
159
+ name: {
160
+ type: string;
161
+ };
162
+ type: {
163
+ type: string;
164
+ };
165
+ counters: {
166
+ type: string;
167
+ additionalProperties: boolean;
168
+ required: never[];
169
+ properties: {
170
+ include: {
171
+ type: string;
172
+ items: {
173
+ type: string;
174
+ };
175
+ };
176
+ exclude: {
177
+ type: string;
178
+ items: {
179
+ type: string;
180
+ };
181
+ };
182
+ };
183
+ };
184
+ context: {
185
+ type: string;
186
+ };
187
+ };
188
+ };
189
+ })[];
190
+ };
113
191
  };
114
192
  };
115
193
  youtube: {
@@ -197,6 +197,84 @@ export declare function generateDefaultSchema(config?: SchemaCustomConfig): {
197
197
  type: string;
198
198
  enum: string[];
199
199
  };
200
+ analyticsEvents: {
201
+ anyOf: ({
202
+ type: string;
203
+ additionalProperties: {
204
+ type: string;
205
+ };
206
+ required: string[];
207
+ properties: {
208
+ name: {
209
+ type: string;
210
+ };
211
+ type: {
212
+ type: string;
213
+ };
214
+ counters: {
215
+ type: string;
216
+ additionalProperties: boolean;
217
+ required: never[];
218
+ properties: {
219
+ include: {
220
+ type: string;
221
+ items: {
222
+ type: string;
223
+ };
224
+ };
225
+ exclude: {
226
+ type: string;
227
+ items: {
228
+ type: string;
229
+ };
230
+ };
231
+ };
232
+ };
233
+ context: {
234
+ type: string;
235
+ };
236
+ };
237
+ } | {
238
+ type: string;
239
+ items: {
240
+ type: string;
241
+ additionalProperties: {
242
+ type: string;
243
+ };
244
+ required: string[];
245
+ properties: {
246
+ name: {
247
+ type: string;
248
+ };
249
+ type: {
250
+ type: string;
251
+ };
252
+ counters: {
253
+ type: string;
254
+ additionalProperties: boolean;
255
+ required: never[];
256
+ properties: {
257
+ include: {
258
+ type: string;
259
+ items: {
260
+ type: string;
261
+ };
262
+ };
263
+ exclude: {
264
+ type: string;
265
+ items: {
266
+ type: string;
267
+ };
268
+ };
269
+ };
270
+ };
271
+ context: {
272
+ type: string;
273
+ };
274
+ };
275
+ };
276
+ })[];
277
+ };
200
278
  };
201
279
  };
202
280
  height: {
@@ -14,7 +14,7 @@ const getBlocksCases = (blocks) => {
14
14
  exports.getBlocksCases = getBlocksCases;
15
15
  function generateDefaultSchema(config) {
16
16
  const { cards = {}, blocks = {}, extensions = {} } = config !== null && config !== void 0 ? config : {};
17
- const blockValidators = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.Divider), blocks_1.ExtendedFeaturesBlock), blocks_1.PromoFeaturesBlock), blocks_1.SliderBlock), blocks_1.QuestionsBlock), blocks_1.HeaderBlock), blocks_1.BannerBlock), blocks_1.CompaniesBlock), blocks_1.MediaBlock), blocks_1.MapBlock), blocks_1.InfoBlock), blocks_1.SecurityBlock), blocks_1.TableBlock), blocks_1.TabsBlock), blocks_1.SimpleBlock), blocks_1.LinkTableBlock), blocks_1.PreviewBlock), blocks_1.HeaderSliderBlock), blocks_1.IconsBlock), blocks_1.CardLayoutBlock), blocks_1.ContentLayoutBlock), blocks_1.ShareBlock);
17
+ const blockValidators = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.Divider), blocks_1.ExtendedFeaturesBlock), blocks_1.PromoFeaturesBlock), blocks_1.SliderBlock), blocks_1.QuestionsBlock), blocks_1.HeaderBlock), blocks_1.BannerBlock), blocks_1.CompaniesBlock), blocks_1.MediaBlock), blocks_1.MapBlock), blocks_1.InfoBlock), blocks_1.SecurityBlock), blocks_1.TableBlock), blocks_1.TabsBlock), blocks_1.SimpleBlock), blocks_1.LinkTableBlock), blocks_1.PreviewBlock), blocks_1.HeaderSliderBlock), blocks_1.IconsBlock), blocks_1.CardLayoutBlock), blocks_1.ContentLayoutBlock), blocks_1.ShareBlock), blocks_1.FilterBlock);
18
18
  const cardValidators = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.PartnerBlock), sub_blocks_1.MediaCardBlock), blocks_1.BannerCard), sub_blocks_1.PriceDetailedBlock), sub_blocks_1.TutorialCard), sub_blocks_1.BackgroundCard), sub_blocks_1.NewsCard), sub_blocks_1.CardWithImage), sub_blocks_1.Quote), sub_blocks_1.BasicCard);
19
19
  const constructorBlockSchemaNames = [
20
20
  'divider',
@@ -44,6 +44,7 @@ function generateDefaultSchema(config) {
44
44
  'card-layout-block',
45
45
  'content-layout-block',
46
46
  'share-block',
47
+ 'filter-block',
47
48
  ];
48
49
  const constructorCardSchemaNames = [
49
50
  'partner',
@@ -19,3 +19,4 @@ export * from '../../blocks/Icons/schema';
19
19
  export * from '../../blocks/CardLayout/schema';
20
20
  export * from '../../blocks/ContentLayout/schema';
21
21
  export * from '../../blocks/Share/schema';
22
+ export * from '../../blocks/FilterBlock/schema';
@@ -22,3 +22,4 @@ tslib_1.__exportStar(require("../../blocks/Icons/schema"), exports);
22
22
  tslib_1.__exportStar(require("../../blocks/CardLayout/schema"), exports);
23
23
  tslib_1.__exportStar(require("../../blocks/ContentLayout/schema"), exports);
24
24
  tslib_1.__exportStar(require("../../blocks/Share/schema"), exports);
25
+ tslib_1.__exportStar(require("../../blocks/FilterBlock/schema"), exports);