@gravity-ui/page-constructor 2.3.2-alpha.0 → 2.4.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 (40) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/build/cjs/blocks/Header/schema.d.ts +0 -390
  3. package/build/cjs/blocks/HeaderSlider/schema.d.ts +0 -156
  4. package/build/cjs/blocks/Media/schema.d.ts +0 -156
  5. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +0 -78
  6. package/build/cjs/blocks/Security/schema.d.ts +0 -78
  7. package/build/cjs/blocks/Tabs/schema.d.ts +0 -78
  8. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +7 -3
  9. package/build/cjs/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.d.ts +5 -0
  10. package/build/cjs/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.js +5 -0
  11. package/build/cjs/index.d.ts +1 -0
  12. package/build/cjs/index.js +1 -0
  13. package/build/cjs/models/common.d.ts +2 -1
  14. package/build/cjs/models/common.js +1 -0
  15. package/build/cjs/schema/index.d.ts +0 -78
  16. package/build/cjs/schema/validators/common.d.ts +0 -234
  17. package/build/cjs/schema/validators/common.js +2 -5
  18. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +0 -78
  19. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +0 -78
  20. package/build/esm/blocks/Header/schema.d.ts +0 -390
  21. package/build/esm/blocks/HeaderSlider/schema.d.ts +0 -156
  22. package/build/esm/blocks/Media/schema.d.ts +0 -156
  23. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +0 -78
  24. package/build/esm/blocks/Security/schema.d.ts +0 -78
  25. package/build/esm/blocks/Tabs/schema.d.ts +0 -78
  26. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +7 -3
  27. package/build/esm/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.d.ts +5 -0
  28. package/build/esm/containers/PageConstructor/components/ConstructorFootnotes/ConstructorFootnotes.js +5 -0
  29. package/build/esm/index.d.ts +1 -0
  30. package/build/esm/index.js +1 -0
  31. package/build/esm/models/common.d.ts +2 -1
  32. package/build/esm/models/common.js +1 -0
  33. package/build/esm/schema/index.d.ts +0 -78
  34. package/build/esm/schema/validators/common.d.ts +0 -234
  35. package/build/esm/schema/validators/common.js +2 -5
  36. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +0 -78
  37. package/build/esm/sub-blocks/MediaCard/schema.d.ts +0 -78
  38. package/package.json +1 -4
  39. package/server/models/common.d.ts +2 -1
  40. package/server/models/common.js +1 -0
@@ -150,84 +150,6 @@ export declare const VideoProps: {
150
150
  type: string;
151
151
  enum: string[];
152
152
  };
153
- analyticsEvents: {
154
- anyOf: ({
155
- type: string;
156
- additionalProperties: {
157
- type: string;
158
- };
159
- required: string[];
160
- properties: {
161
- name: {
162
- type: string;
163
- };
164
- type: {
165
- type: string;
166
- };
167
- counters: {
168
- type: string;
169
- additionalProperties: boolean;
170
- required: never[];
171
- properties: {
172
- include: {
173
- type: string;
174
- items: {
175
- type: string;
176
- };
177
- };
178
- exclude: {
179
- type: string;
180
- items: {
181
- type: string;
182
- };
183
- };
184
- };
185
- };
186
- context: {
187
- type: string;
188
- };
189
- };
190
- } | {
191
- type: string;
192
- items: {
193
- type: string;
194
- additionalProperties: {
195
- type: string;
196
- };
197
- required: string[];
198
- properties: {
199
- name: {
200
- type: string;
201
- };
202
- type: {
203
- type: string;
204
- };
205
- counters: {
206
- type: string;
207
- additionalProperties: boolean;
208
- required: never[];
209
- properties: {
210
- include: {
211
- type: string;
212
- items: {
213
- type: string;
214
- };
215
- };
216
- exclude: {
217
- type: string;
218
- items: {
219
- type: string;
220
- };
221
- };
222
- };
223
- };
224
- context: {
225
- type: string;
226
- };
227
- };
228
- };
229
- })[];
230
- };
231
153
  };
232
154
  };
233
155
  export declare const ThemeProps: {
@@ -352,84 +274,6 @@ export declare const BackgroundProps: {
352
274
  type: string;
353
275
  enum: string[];
354
276
  };
355
- analyticsEvents: {
356
- anyOf: ({
357
- type: string;
358
- additionalProperties: {
359
- type: string;
360
- };
361
- required: string[];
362
- properties: {
363
- name: {
364
- type: string;
365
- };
366
- type: {
367
- type: string;
368
- };
369
- counters: {
370
- type: string;
371
- additionalProperties: boolean;
372
- required: never[];
373
- properties: {
374
- include: {
375
- type: string;
376
- items: {
377
- type: string;
378
- };
379
- };
380
- exclude: {
381
- type: string;
382
- items: {
383
- type: string;
384
- };
385
- };
386
- };
387
- };
388
- context: {
389
- type: string;
390
- };
391
- };
392
- } | {
393
- type: string;
394
- items: {
395
- type: string;
396
- additionalProperties: {
397
- type: string;
398
- };
399
- required: string[];
400
- properties: {
401
- name: {
402
- type: string;
403
- };
404
- type: {
405
- type: string;
406
- };
407
- counters: {
408
- type: string;
409
- additionalProperties: boolean;
410
- required: never[];
411
- properties: {
412
- include: {
413
- type: string;
414
- items: {
415
- type: string;
416
- };
417
- };
418
- exclude: {
419
- type: string;
420
- items: {
421
- type: string;
422
- };
423
- };
424
- };
425
- };
426
- context: {
427
- type: string;
428
- };
429
- };
430
- };
431
- })[];
432
- };
433
277
  };
434
278
  };
435
279
  height: {
@@ -1235,84 +1079,6 @@ export declare const MediaProps: {
1235
1079
  type: string;
1236
1080
  enum: string[];
1237
1081
  };
1238
- analyticsEvents: {
1239
- anyOf: ({
1240
- type: string;
1241
- additionalProperties: {
1242
- type: string;
1243
- };
1244
- required: string[];
1245
- properties: {
1246
- name: {
1247
- type: string;
1248
- };
1249
- type: {
1250
- type: string;
1251
- };
1252
- counters: {
1253
- type: string;
1254
- additionalProperties: boolean;
1255
- required: never[];
1256
- properties: {
1257
- include: {
1258
- type: string;
1259
- items: {
1260
- type: string;
1261
- };
1262
- };
1263
- exclude: {
1264
- type: string;
1265
- items: {
1266
- type: string;
1267
- };
1268
- };
1269
- };
1270
- };
1271
- context: {
1272
- type: string;
1273
- };
1274
- };
1275
- } | {
1276
- type: string;
1277
- items: {
1278
- type: string;
1279
- additionalProperties: {
1280
- type: string;
1281
- };
1282
- required: string[];
1283
- properties: {
1284
- name: {
1285
- type: string;
1286
- };
1287
- type: {
1288
- type: string;
1289
- };
1290
- counters: {
1291
- type: string;
1292
- additionalProperties: boolean;
1293
- required: never[];
1294
- properties: {
1295
- include: {
1296
- type: string;
1297
- items: {
1298
- type: string;
1299
- };
1300
- };
1301
- exclude: {
1302
- type: string;
1303
- items: {
1304
- type: string;
1305
- };
1306
- };
1307
- };
1308
- };
1309
- context: {
1310
- type: string;
1311
- };
1312
- };
1313
- };
1314
- })[];
1315
- };
1316
1082
  };
1317
1083
  };
1318
1084
  youtube: {
@@ -1,7 +1,7 @@
1
- import { ImageProps, urlPattern } from '../../components/Image/schema';
1
+ import { pixelEvents } from './pixel';
2
2
  import { Theme } from '../../models';
3
+ import { ImageProps, urlPattern } from '../../components/Image/schema';
3
4
  import { AnalyticsEventSchema } from './event';
4
- import { pixelEvents } from './pixel';
5
5
  export const mediaDirection = ['media-content', 'content-media'];
6
6
  export const textSize = ['s', 'm', 'l'];
7
7
  export const containerSizesArray = ['sm', 'md', 'lg', 'xl', 'all'];
@@ -118,9 +118,6 @@ export const VideoProps = {
118
118
  type: 'string',
119
119
  enum: videoControlsTypes,
120
120
  },
121
- analyticsEvents: {
122
- anyOf: [AnalyticsEventSchema, { type: 'array', items: AnalyticsEventSchema }],
123
- },
124
121
  },
125
122
  };
126
123
  export const ThemeProps = {
@@ -100,84 +100,6 @@ export declare const LayoutItem: {
100
100
  type: string;
101
101
  enum: string[];
102
102
  };
103
- analyticsEvents: {
104
- anyOf: ({
105
- type: string;
106
- additionalProperties: {
107
- type: string;
108
- };
109
- required: string[];
110
- properties: {
111
- name: {
112
- type: string;
113
- };
114
- type: {
115
- type: string;
116
- };
117
- counters: {
118
- type: string;
119
- additionalProperties: boolean;
120
- required: never[];
121
- properties: {
122
- include: {
123
- type: string;
124
- items: {
125
- type: string;
126
- };
127
- };
128
- exclude: {
129
- type: string;
130
- items: {
131
- type: string;
132
- };
133
- };
134
- };
135
- };
136
- context: {
137
- type: string;
138
- };
139
- };
140
- } | {
141
- type: string;
142
- items: {
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
- })[];
180
- };
181
103
  };
182
104
  };
183
105
  youtube: {
@@ -102,84 +102,6 @@ export declare const MediaCardBlock: {
102
102
  type: string;
103
103
  enum: string[];
104
104
  };
105
- analyticsEvents: {
106
- anyOf: ({
107
- type: string;
108
- additionalProperties: {
109
- type: string;
110
- };
111
- required: string[];
112
- properties: {
113
- name: {
114
- type: string;
115
- };
116
- type: {
117
- type: string;
118
- };
119
- counters: {
120
- type: string;
121
- additionalProperties: boolean;
122
- required: never[];
123
- properties: {
124
- include: {
125
- type: string;
126
- items: {
127
- type: string;
128
- };
129
- };
130
- exclude: {
131
- type: string;
132
- items: {
133
- type: string;
134
- };
135
- };
136
- };
137
- };
138
- context: {
139
- type: string;
140
- };
141
- };
142
- } | {
143
- type: string;
144
- items: {
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
- })[];
182
- };
183
105
  };
184
106
  };
185
107
  youtube: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "2.3.2-alpha.0",
3
+ "version": "2.4.0",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -137,8 +137,5 @@
137
137
  "*.{json,yaml,yml,md}": [
138
138
  "prettier --write"
139
139
  ]
140
- },
141
- "publishConfig": {
142
- "tag": "alpha"
143
140
  }
144
141
  }
@@ -78,7 +78,8 @@ export declare enum DefaultEventNames {
78
78
  YandexFormSubmit = "yandex-form-submit",
79
79
  HubspotFormSubmit = "hubspot-form-submit",
80
80
  QuoteButton = "quote-button-click",
81
- BackLink = "back-link-click"
81
+ BackLink = "back-link-click",
82
+ Breadcrumb = "breadcrumb-click"
82
83
  }
83
84
  export type AnalyticsCounters = {
84
85
  include?: string[];
@@ -47,4 +47,5 @@ var DefaultEventNames;
47
47
  DefaultEventNames["HubspotFormSubmit"] = "hubspot-form-submit";
48
48
  DefaultEventNames["QuoteButton"] = "quote-button-click";
49
49
  DefaultEventNames["BackLink"] = "back-link-click";
50
+ DefaultEventNames["Breadcrumb"] = "breadcrumb-click";
50
51
  })(DefaultEventNames = exports.DefaultEventNames || (exports.DefaultEventNames = {}));