@gravity-ui/page-constructor 8.1.2-alpha.1 → 8.2.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 (120) hide show
  1. package/build/cjs/blocks/CardLayout/schema.d.ts +156 -0
  2. package/build/cjs/blocks/ContentLayout/schema.d.ts +78 -0
  3. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +78 -0
  4. package/build/cjs/blocks/FilterBlock/schema.d.ts +156 -0
  5. package/build/cjs/blocks/FoldableList/schema.d.ts +78 -0
  6. package/build/cjs/blocks/Form/schema.d.ts +78 -0
  7. package/build/cjs/blocks/Info/schema.d.ts +156 -0
  8. package/build/cjs/blocks/Map/schema.d.ts +78 -0
  9. package/build/cjs/blocks/Media/schema.d.ts +156 -0
  10. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
  11. package/build/cjs/blocks/Questions/schema.d.ts +78 -0
  12. package/build/cjs/blocks/Slider/Slider.d.ts +1 -1
  13. package/build/cjs/blocks/Slider/Slider.js +2 -2
  14. package/build/cjs/blocks/Slider/Slider.js.map +1 -1
  15. package/build/cjs/blocks/Slider/schema.d.ts +78 -0
  16. package/build/cjs/blocks/SliderOld/schema.d.ts +78 -0
  17. package/build/cjs/blocks/Tabs/schema.d.ts +156 -0
  18. package/build/cjs/components/Title/TitleItem.d.ts +2 -2
  19. package/build/cjs/components/Title/TitleItem.js +13 -3
  20. package/build/cjs/components/Title/TitleItem.js.map +1 -1
  21. package/build/cjs/constructor-items.d.ts +1 -1
  22. package/build/cjs/demo/ComponentsControls.stories.d.ts +4 -0
  23. package/build/cjs/demo/ComponentsControls.stories.js +34 -0
  24. package/build/cjs/demo/ComponentsControls.stories.js.map +1 -0
  25. package/build/cjs/demo/ComponentsLayout.stories.css +13 -0
  26. package/build/cjs/demo/ComponentsLayout.stories.d.ts +4 -0
  27. package/build/cjs/demo/ComponentsLayout.stories.js +28 -0
  28. package/build/cjs/demo/ComponentsLayout.stories.js.map +1 -0
  29. package/build/cjs/demo/ComponentsText.stories.d.ts +4 -0
  30. package/build/cjs/demo/ComponentsText.stories.js +26 -0
  31. package/build/cjs/demo/ComponentsText.stories.js.map +1 -0
  32. package/build/cjs/demo/ContentAndData.stories.d.ts +8 -0
  33. package/build/cjs/demo/ContentAndData.stories.js +73 -0
  34. package/build/cjs/demo/ContentAndData.stories.js.map +1 -0
  35. package/build/cjs/demo/FeaturesAndCards.stories.d.ts +8 -0
  36. package/build/cjs/demo/FeaturesAndCards.stories.js +112 -0
  37. package/build/cjs/demo/FeaturesAndCards.stories.js.map +1 -0
  38. package/build/cjs/demo/HeroAndMedia.stories.d.ts +8 -0
  39. package/build/cjs/demo/HeroAndMedia.stories.js +58 -0
  40. package/build/cjs/demo/HeroAndMedia.stories.js.map +1 -0
  41. package/build/cjs/demo/InteractiveAndForms.stories.d.ts +8 -0
  42. package/build/cjs/demo/InteractiveAndForms.stories.js +83 -0
  43. package/build/cjs/demo/InteractiveAndForms.stories.js.map +1 -0
  44. package/build/cjs/models/constructor-items/blocks.d.ts +0 -1
  45. package/build/cjs/models/constructor-items/blocks.js.map +1 -1
  46. package/build/cjs/models/constructor-items/common.d.ts +1 -1
  47. package/build/cjs/models/constructor-items/common.js.map +1 -1
  48. package/build/cjs/schema/constants.d.ts +234 -0
  49. package/build/cjs/schema/validators/common.d.ts +156 -0
  50. package/build/cjs/schema/validators/common.js +3 -0
  51. package/build/cjs/schema/validators/common.js.map +1 -1
  52. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +78 -0
  53. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +78 -0
  54. package/build/cjs/sub-blocks/Content/schema.d.ts +156 -0
  55. package/build/cjs/sub-blocks/ImageCard/schema.d.ts +78 -0
  56. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +78 -0
  57. package/build/cjs/text-transform/config.d.ts +1 -0
  58. package/build/esm/blocks/CardLayout/schema.d.ts +156 -0
  59. package/build/esm/blocks/ContentLayout/schema.d.ts +78 -0
  60. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +78 -0
  61. package/build/esm/blocks/FilterBlock/schema.d.ts +156 -0
  62. package/build/esm/blocks/FoldableList/schema.d.ts +78 -0
  63. package/build/esm/blocks/Form/schema.d.ts +78 -0
  64. package/build/esm/blocks/Info/schema.d.ts +156 -0
  65. package/build/esm/blocks/Map/schema.d.ts +78 -0
  66. package/build/esm/blocks/Media/schema.d.ts +156 -0
  67. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +78 -0
  68. package/build/esm/blocks/Questions/schema.d.ts +78 -0
  69. package/build/esm/blocks/Slider/Slider.d.ts +1 -1
  70. package/build/esm/blocks/Slider/Slider.js +2 -2
  71. package/build/esm/blocks/Slider/Slider.js.map +1 -1
  72. package/build/esm/blocks/Slider/schema.d.ts +78 -0
  73. package/build/esm/blocks/SliderOld/schema.d.ts +78 -0
  74. package/build/esm/blocks/Tabs/schema.d.ts +156 -0
  75. package/build/esm/components/Title/TitleItem.d.ts +2 -2
  76. package/build/esm/components/Title/TitleItem.js +13 -3
  77. package/build/esm/components/Title/TitleItem.js.map +1 -1
  78. package/build/esm/constructor-items.d.ts +1 -1
  79. package/build/esm/demo/ComponentsControls.stories.d.ts +4 -0
  80. package/build/esm/demo/ComponentsControls.stories.js +29 -0
  81. package/build/esm/demo/ComponentsControls.stories.js.map +1 -0
  82. package/build/esm/demo/ComponentsLayout.stories.css +13 -0
  83. package/build/esm/demo/ComponentsLayout.stories.d.ts +5 -0
  84. package/build/esm/demo/ComponentsLayout.stories.js +24 -0
  85. package/build/esm/demo/ComponentsLayout.stories.js.map +1 -0
  86. package/build/esm/demo/ComponentsText.stories.d.ts +4 -0
  87. package/build/esm/demo/ComponentsText.stories.js +21 -0
  88. package/build/esm/demo/ComponentsText.stories.js.map +1 -0
  89. package/build/esm/demo/ContentAndData.stories.d.ts +8 -0
  90. package/build/esm/demo/ContentAndData.stories.js +69 -0
  91. package/build/esm/demo/ContentAndData.stories.js.map +1 -0
  92. package/build/esm/demo/FeaturesAndCards.stories.d.ts +8 -0
  93. package/build/esm/demo/FeaturesAndCards.stories.js +108 -0
  94. package/build/esm/demo/FeaturesAndCards.stories.js.map +1 -0
  95. package/build/esm/demo/HeroAndMedia.stories.d.ts +8 -0
  96. package/build/esm/demo/HeroAndMedia.stories.js +54 -0
  97. package/build/esm/demo/HeroAndMedia.stories.js.map +1 -0
  98. package/build/esm/demo/InteractiveAndForms.stories.d.ts +8 -0
  99. package/build/esm/demo/InteractiveAndForms.stories.js +79 -0
  100. package/build/esm/demo/InteractiveAndForms.stories.js.map +1 -0
  101. package/build/esm/models/constructor-items/blocks.d.ts +0 -1
  102. package/build/esm/models/constructor-items/blocks.js.map +1 -1
  103. package/build/esm/models/constructor-items/common.d.ts +1 -1
  104. package/build/esm/models/constructor-items/common.js.map +1 -1
  105. package/build/esm/schema/constants.d.ts +234 -0
  106. package/build/esm/schema/validators/common.d.ts +156 -0
  107. package/build/esm/schema/validators/common.js +3 -0
  108. package/build/esm/schema/validators/common.js.map +1 -1
  109. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +78 -0
  110. package/build/esm/sub-blocks/BasicCard/schema.d.ts +78 -0
  111. package/build/esm/sub-blocks/Content/schema.d.ts +156 -0
  112. package/build/esm/sub-blocks/ImageCard/schema.d.ts +78 -0
  113. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +78 -0
  114. package/build/esm/text-transform/config.d.ts +1 -0
  115. package/package.json +1 -1
  116. package/schema/index.js +1 -1
  117. package/server/models/constructor-items/blocks.d.ts +0 -1
  118. package/server/models/constructor-items/common.d.ts +1 -1
  119. package/server/text-transform/config.d.ts +1 -0
  120. package/widget/index.js +1 -1
@@ -189,6 +189,84 @@ export declare const ContentBase: {
189
189
  resetMargin: {
190
190
  type: string;
191
191
  };
192
+ analyticsEvents: {
193
+ anyOf: ({
194
+ type: string;
195
+ additionalProperties: {
196
+ type: string;
197
+ };
198
+ required: string[];
199
+ properties: {
200
+ name: {
201
+ type: string;
202
+ };
203
+ type: {
204
+ type: string;
205
+ };
206
+ counters: {
207
+ type: string;
208
+ additionalProperties: boolean;
209
+ required: never[];
210
+ properties: {
211
+ include: {
212
+ type: string;
213
+ items: {
214
+ type: string;
215
+ };
216
+ };
217
+ exclude: {
218
+ type: string;
219
+ items: {
220
+ type: string;
221
+ };
222
+ };
223
+ };
224
+ };
225
+ context: {
226
+ type: string;
227
+ };
228
+ };
229
+ } | {
230
+ type: string;
231
+ items: {
232
+ type: string;
233
+ additionalProperties: {
234
+ type: string;
235
+ };
236
+ required: string[];
237
+ properties: {
238
+ name: {
239
+ type: string;
240
+ };
241
+ type: {
242
+ type: string;
243
+ };
244
+ counters: {
245
+ type: string;
246
+ additionalProperties: boolean;
247
+ required: never[];
248
+ properties: {
249
+ include: {
250
+ type: string;
251
+ items: {
252
+ type: string;
253
+ };
254
+ };
255
+ exclude: {
256
+ type: string;
257
+ items: {
258
+ type: string;
259
+ };
260
+ };
261
+ };
262
+ };
263
+ context: {
264
+ type: string;
265
+ };
266
+ };
267
+ };
268
+ })[];
269
+ };
192
270
  };
193
271
  contentType?: undefined;
194
272
  })[];
@@ -295,6 +373,84 @@ export declare const ContentBlock: {
295
373
  resetMargin: {
296
374
  type: string;
297
375
  };
376
+ analyticsEvents: {
377
+ anyOf: ({
378
+ type: string;
379
+ additionalProperties: {
380
+ type: string;
381
+ };
382
+ required: string[];
383
+ properties: {
384
+ name: {
385
+ type: string;
386
+ };
387
+ type: {
388
+ type: string;
389
+ };
390
+ counters: {
391
+ type: string;
392
+ additionalProperties: boolean;
393
+ required: never[];
394
+ properties: {
395
+ include: {
396
+ type: string;
397
+ items: {
398
+ type: string;
399
+ };
400
+ };
401
+ exclude: {
402
+ type: string;
403
+ items: {
404
+ type: string;
405
+ };
406
+ };
407
+ };
408
+ };
409
+ context: {
410
+ type: string;
411
+ };
412
+ };
413
+ } | {
414
+ type: string;
415
+ items: {
416
+ type: string;
417
+ additionalProperties: {
418
+ type: string;
419
+ };
420
+ required: string[];
421
+ properties: {
422
+ name: {
423
+ type: string;
424
+ };
425
+ type: {
426
+ type: string;
427
+ };
428
+ counters: {
429
+ type: string;
430
+ additionalProperties: boolean;
431
+ required: never[];
432
+ properties: {
433
+ include: {
434
+ type: string;
435
+ items: {
436
+ type: string;
437
+ };
438
+ };
439
+ exclude: {
440
+ type: string;
441
+ items: {
442
+ type: string;
443
+ };
444
+ };
445
+ };
446
+ };
447
+ context: {
448
+ type: string;
449
+ };
450
+ };
451
+ };
452
+ })[];
453
+ };
298
454
  };
299
455
  contentType?: undefined;
300
456
  })[];
@@ -75,6 +75,84 @@ export declare const ImageCard: {
75
75
  resetMargin: {
76
76
  type: string;
77
77
  };
78
+ analyticsEvents: {
79
+ anyOf: ({
80
+ type: string;
81
+ additionalProperties: {
82
+ type: string;
83
+ };
84
+ required: string[];
85
+ properties: {
86
+ name: {
87
+ type: string;
88
+ };
89
+ type: {
90
+ type: string;
91
+ };
92
+ counters: {
93
+ type: string;
94
+ additionalProperties: boolean;
95
+ required: never[];
96
+ properties: {
97
+ include: {
98
+ type: string;
99
+ items: {
100
+ type: string;
101
+ };
102
+ };
103
+ exclude: {
104
+ type: string;
105
+ items: {
106
+ type: string;
107
+ };
108
+ };
109
+ };
110
+ };
111
+ context: {
112
+ type: string;
113
+ };
114
+ };
115
+ } | {
116
+ type: string;
117
+ items: {
118
+ type: string;
119
+ additionalProperties: {
120
+ type: string;
121
+ };
122
+ required: string[];
123
+ properties: {
124
+ name: {
125
+ type: string;
126
+ };
127
+ type: {
128
+ type: string;
129
+ };
130
+ counters: {
131
+ type: string;
132
+ additionalProperties: boolean;
133
+ required: never[];
134
+ properties: {
135
+ include: {
136
+ type: string;
137
+ items: {
138
+ type: string;
139
+ };
140
+ };
141
+ exclude: {
142
+ type: string;
143
+ items: {
144
+ type: string;
145
+ };
146
+ };
147
+ };
148
+ };
149
+ context: {
150
+ type: string;
151
+ };
152
+ };
153
+ };
154
+ })[];
155
+ };
78
156
  };
79
157
  contentType?: undefined;
80
158
  })[];
@@ -340,6 +340,84 @@ export declare const LayoutItem: {
340
340
  resetMargin: {
341
341
  type: string;
342
342
  };
343
+ analyticsEvents: {
344
+ anyOf: ({
345
+ type: string;
346
+ additionalProperties: {
347
+ type: string;
348
+ };
349
+ required: string[];
350
+ properties: {
351
+ name: {
352
+ type: string;
353
+ };
354
+ type: {
355
+ type: string;
356
+ };
357
+ counters: {
358
+ type: string;
359
+ additionalProperties: boolean;
360
+ required: never[];
361
+ properties: {
362
+ include: {
363
+ type: string;
364
+ items: {
365
+ type: string;
366
+ };
367
+ };
368
+ exclude: {
369
+ type: string;
370
+ items: {
371
+ type: string;
372
+ };
373
+ };
374
+ };
375
+ };
376
+ context: {
377
+ type: string;
378
+ };
379
+ };
380
+ } | {
381
+ type: string;
382
+ items: {
383
+ type: string;
384
+ additionalProperties: {
385
+ type: string;
386
+ };
387
+ required: string[];
388
+ properties: {
389
+ name: {
390
+ type: string;
391
+ };
392
+ type: {
393
+ type: string;
394
+ };
395
+ counters: {
396
+ type: string;
397
+ additionalProperties: boolean;
398
+ required: never[];
399
+ properties: {
400
+ include: {
401
+ type: string;
402
+ items: {
403
+ type: string;
404
+ };
405
+ };
406
+ exclude: {
407
+ type: string;
408
+ items: {
409
+ type: string;
410
+ };
411
+ };
412
+ };
413
+ };
414
+ context: {
415
+ type: string;
416
+ };
417
+ };
418
+ };
419
+ })[];
420
+ };
343
421
  };
344
422
  contentType?: undefined;
345
423
  })[];
@@ -13,6 +13,7 @@ export declare const blockHeaderTransformer: ({
13
13
  urlTitle?: string;
14
14
  custom?: string | React.ReactNode;
15
15
  onClick?: () => void;
16
+ analyticsEvents?: import("../index.js").AnalyticsEventsProp;
16
17
  };
17
18
  renderInline: boolean;
18
19
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "8.1.2-alpha.1",
3
+ "version": "8.2.0",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",