@gravity-ui/page-constructor 2.22.2 → 2.23.0-alpha.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 (33) hide show
  1. package/build/cjs/blocks/Header/schema.d.ts +234 -0
  2. package/build/cjs/blocks/HeaderSlider/schema.d.ts +78 -0
  3. package/build/cjs/blocks/Media/schema.d.ts +156 -0
  4. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
  5. package/build/cjs/blocks/Security/schema.d.ts +78 -0
  6. package/build/cjs/blocks/Tabs/schema.d.ts +78 -0
  7. package/build/cjs/components/Media/Media.js +1 -1
  8. package/build/cjs/components/VideoBlock/VideoBlock.d.ts +2 -1
  9. package/build/cjs/components/VideoBlock/VideoBlock.js +6 -2
  10. package/build/cjs/models/common.d.ts +2 -1
  11. package/build/cjs/models/common.js +1 -0
  12. package/build/cjs/schema/validators/common.d.ts +78 -0
  13. package/build/cjs/schema/validators/common.js +3 -0
  14. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +78 -0
  15. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +78 -0
  16. package/build/esm/blocks/Header/schema.d.ts +234 -0
  17. package/build/esm/blocks/HeaderSlider/schema.d.ts +78 -0
  18. package/build/esm/blocks/Media/schema.d.ts +156 -0
  19. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
  20. package/build/esm/blocks/Security/schema.d.ts +78 -0
  21. package/build/esm/blocks/Tabs/schema.d.ts +78 -0
  22. package/build/esm/components/Media/Media.js +1 -1
  23. package/build/esm/components/VideoBlock/VideoBlock.d.ts +2 -1
  24. package/build/esm/components/VideoBlock/VideoBlock.js +6 -2
  25. package/build/esm/models/common.d.ts +2 -1
  26. package/build/esm/models/common.js +1 -0
  27. package/build/esm/schema/validators/common.d.ts +78 -0
  28. package/build/esm/schema/validators/common.js +3 -0
  29. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +78 -0
  30. package/build/esm/sub-blocks/MediaCard/schema.d.ts +78 -0
  31. package/package.json +4 -1
  32. package/server/models/common.d.ts +2 -1
  33. package/server/models/common.js +1 -0
@@ -459,6 +459,9 @@ export const MediaProps = {
459
459
  fullscreen: {
460
460
  type: 'boolean',
461
461
  },
462
+ analyticsEvents: {
463
+ anyOf: [AnalyticsEventSchema, { type: 'array', items: AnalyticsEventSchema }],
464
+ },
462
465
  };
463
466
  export const YMapMarkerLabel = {
464
467
  type: 'object',
@@ -138,6 +138,84 @@ export declare const LayoutItem: {
138
138
  fullscreen: {
139
139
  type: string;
140
140
  };
141
+ analyticsEvents: {
142
+ anyOf: ({
143
+ type: string;
144
+ additionalProperties: {
145
+ type: string;
146
+ };
147
+ required: string[];
148
+ properties: {
149
+ name: {
150
+ type: string;
151
+ };
152
+ type: {
153
+ type: string;
154
+ };
155
+ counters: {
156
+ type: string;
157
+ additionalProperties: boolean;
158
+ required: never[];
159
+ properties: {
160
+ include: {
161
+ type: string;
162
+ items: {
163
+ type: string;
164
+ };
165
+ };
166
+ exclude: {
167
+ type: string;
168
+ items: {
169
+ type: string;
170
+ };
171
+ };
172
+ };
173
+ };
174
+ context: {
175
+ type: string;
176
+ };
177
+ };
178
+ } | {
179
+ type: string;
180
+ items: {
181
+ type: string;
182
+ additionalProperties: {
183
+ type: string;
184
+ };
185
+ required: string[];
186
+ properties: {
187
+ name: {
188
+ type: string;
189
+ };
190
+ type: {
191
+ type: string;
192
+ };
193
+ counters: {
194
+ type: string;
195
+ additionalProperties: boolean;
196
+ required: never[];
197
+ properties: {
198
+ include: {
199
+ type: string;
200
+ items: {
201
+ type: string;
202
+ };
203
+ };
204
+ exclude: {
205
+ type: string;
206
+ items: {
207
+ type: string;
208
+ };
209
+ };
210
+ };
211
+ };
212
+ context: {
213
+ type: string;
214
+ };
215
+ };
216
+ };
217
+ })[];
218
+ };
141
219
  };
142
220
  content: Partial<{
143
221
  title: {
@@ -140,6 +140,84 @@ export declare const MediaCardBlock: {
140
140
  fullscreen: {
141
141
  type: string;
142
142
  };
143
+ analyticsEvents: {
144
+ anyOf: ({
145
+ type: string;
146
+ additionalProperties: {
147
+ type: string;
148
+ };
149
+ required: string[];
150
+ properties: {
151
+ name: {
152
+ type: string;
153
+ };
154
+ type: {
155
+ type: string;
156
+ };
157
+ counters: {
158
+ type: string;
159
+ additionalProperties: boolean;
160
+ required: never[];
161
+ properties: {
162
+ include: {
163
+ type: string;
164
+ items: {
165
+ type: string;
166
+ };
167
+ };
168
+ exclude: {
169
+ type: string;
170
+ items: {
171
+ type: string;
172
+ };
173
+ };
174
+ };
175
+ };
176
+ context: {
177
+ type: string;
178
+ };
179
+ };
180
+ } | {
181
+ type: string;
182
+ items: {
183
+ type: string;
184
+ additionalProperties: {
185
+ type: string;
186
+ };
187
+ required: string[];
188
+ properties: {
189
+ name: {
190
+ type: string;
191
+ };
192
+ type: {
193
+ type: string;
194
+ };
195
+ counters: {
196
+ type: string;
197
+ additionalProperties: boolean;
198
+ required: never[];
199
+ properties: {
200
+ include: {
201
+ type: string;
202
+ items: {
203
+ type: string;
204
+ };
205
+ };
206
+ exclude: {
207
+ type: string;
208
+ items: {
209
+ type: string;
210
+ };
211
+ };
212
+ };
213
+ };
214
+ context: {
215
+ type: string;
216
+ };
217
+ };
218
+ };
219
+ })[];
220
+ };
143
221
  border: {
144
222
  type: string;
145
223
  enum: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "2.22.2",
3
+ "version": "2.23.0-alpha.1",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -139,5 +139,8 @@
139
139
  "*.{json,yaml,yml,md}": [
140
140
  "prettier --write"
141
141
  ]
142
+ },
143
+ "publishConfig": {
144
+ "tag": "alpha"
142
145
  }
143
146
  }
@@ -79,7 +79,8 @@ export declare enum DefaultEventNames {
79
79
  HubspotFormSubmit = "hubspot-form-submit",
80
80
  QuoteButton = "quote-button-click",
81
81
  BackLink = "back-link-click",
82
- Breadcrumb = "breadcrumb-click"
82
+ Breadcrumb = "breadcrumb-click",
83
+ VideoPreview = "video-preview-click"
83
84
  }
84
85
  export type AnalyticsCounters = {
85
86
  include?: string[];
@@ -48,4 +48,5 @@ var DefaultEventNames;
48
48
  DefaultEventNames["QuoteButton"] = "quote-button-click";
49
49
  DefaultEventNames["BackLink"] = "back-link-click";
50
50
  DefaultEventNames["Breadcrumb"] = "breadcrumb-click";
51
+ DefaultEventNames["VideoPreview"] = "video-preview-click";
51
52
  })(DefaultEventNames = exports.DefaultEventNames || (exports.DefaultEventNames = {}));