@gravity-ui/page-constructor 4.37.3 → 4.38.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 (52) hide show
  1. package/build/cjs/{sub-blocks/Content → components}/ContentList/ContentList.css +13 -0
  2. package/build/cjs/components/ContentList/ContentList.d.ts +4 -0
  3. package/build/cjs/{sub-blocks/Content → components}/ContentList/ContentList.js +8 -13
  4. package/build/cjs/components/ContentList/ContentListItemIcon.d.ts +7 -0
  5. package/build/cjs/components/ContentList/ContentListItemIcon.js +23 -0
  6. package/build/cjs/components/FileLink/FileLink.js +1 -1
  7. package/build/cjs/components/index.d.ts +1 -0
  8. package/build/cjs/components/index.js +3 -1
  9. package/build/cjs/models/constructor-items/blocks.d.ts +7 -2
  10. package/build/cjs/models/constructor-items/sub-blocks.d.ts +14 -2
  11. package/build/cjs/models/constructor-items/sub-blocks.js +1 -0
  12. package/build/cjs/schema/validators/sub-blocks.d.ts +1 -0
  13. package/build/cjs/schema/validators/sub-blocks.js +1 -0
  14. package/build/cjs/sub-blocks/Content/Content.js +2 -4
  15. package/build/cjs/sub-blocks/PriceCard/PriceCard.css +80 -0
  16. package/build/cjs/sub-blocks/PriceCard/PriceCard.d.ts +3 -0
  17. package/build/cjs/sub-blocks/PriceCard/PriceCard.js +33 -0
  18. package/build/cjs/sub-blocks/PriceCard/schema.d.ts +648 -0
  19. package/build/cjs/sub-blocks/PriceCard/schema.js +34 -0
  20. package/build/cjs/sub-blocks/index.d.ts +1 -0
  21. package/build/cjs/sub-blocks/index.js +3 -1
  22. package/build/cjs/text-transform/config.js +12 -0
  23. package/build/esm/{sub-blocks/Content → components}/ContentList/ContentList.css +13 -0
  24. package/build/esm/components/ContentList/ContentList.d.ts +5 -0
  25. package/build/esm/{sub-blocks/Content → components}/ContentList/ContentList.js +6 -11
  26. package/build/esm/components/ContentList/ContentListItemIcon.d.ts +7 -0
  27. package/build/esm/components/ContentList/ContentListItemIcon.js +20 -0
  28. package/build/esm/components/FileLink/FileLink.js +1 -1
  29. package/build/esm/components/index.d.ts +1 -0
  30. package/build/esm/components/index.js +1 -0
  31. package/build/esm/models/constructor-items/blocks.d.ts +7 -2
  32. package/build/esm/models/constructor-items/sub-blocks.d.ts +14 -2
  33. package/build/esm/models/constructor-items/sub-blocks.js +1 -0
  34. package/build/esm/schema/validators/sub-blocks.d.ts +1 -0
  35. package/build/esm/schema/validators/sub-blocks.js +1 -0
  36. package/build/esm/sub-blocks/Content/Content.js +1 -3
  37. package/build/esm/sub-blocks/PriceCard/PriceCard.css +80 -0
  38. package/build/esm/sub-blocks/PriceCard/PriceCard.d.ts +4 -0
  39. package/build/esm/sub-blocks/PriceCard/PriceCard.js +31 -0
  40. package/build/esm/sub-blocks/PriceCard/schema.d.ts +648 -0
  41. package/build/esm/sub-blocks/PriceCard/schema.js +31 -0
  42. package/build/esm/sub-blocks/index.d.ts +1 -0
  43. package/build/esm/sub-blocks/index.js +1 -0
  44. package/build/esm/text-transform/config.js +12 -0
  45. package/package.json +1 -1
  46. package/server/models/constructor-items/blocks.d.ts +7 -2
  47. package/server/models/constructor-items/sub-blocks.d.ts +14 -2
  48. package/server/models/constructor-items/sub-blocks.js +1 -0
  49. package/server/text-transform/config.js +12 -0
  50. package/widget/index.js +1 -1
  51. package/build/cjs/sub-blocks/Content/ContentList/ContentList.d.ts +0 -8
  52. package/build/esm/sub-blocks/Content/ContentList/ContentList.d.ts +0 -9
@@ -0,0 +1,648 @@
1
+ export declare const PriceCardBlock: {
2
+ 'price-card': {
3
+ additionalProperties: boolean;
4
+ required: string[];
5
+ properties: {
6
+ title: {
7
+ type: string;
8
+ };
9
+ price: {
10
+ type: string;
11
+ };
12
+ pricePeriod: {
13
+ type: string;
14
+ };
15
+ priceDetails: {
16
+ type: string;
17
+ };
18
+ description: {
19
+ type: string;
20
+ };
21
+ buttons: {
22
+ type: string;
23
+ items: {
24
+ type: string;
25
+ additionalProperties: boolean;
26
+ properties: {
27
+ text: {
28
+ type: string;
29
+ contentType: string;
30
+ };
31
+ url: {
32
+ type: string;
33
+ };
34
+ urlTitle: {
35
+ type: string;
36
+ };
37
+ primary: {
38
+ type: string;
39
+ };
40
+ size: {
41
+ type: string;
42
+ enum: string[];
43
+ };
44
+ theme: {
45
+ type: string;
46
+ enum: string[];
47
+ };
48
+ img: {
49
+ oneOf: ({
50
+ type: string;
51
+ optionName: string;
52
+ additionalProperties?: undefined;
53
+ required?: undefined;
54
+ properties?: undefined;
55
+ } | {
56
+ type: string;
57
+ additionalProperties: boolean;
58
+ required: string[];
59
+ properties: {
60
+ data: {
61
+ type: string;
62
+ };
63
+ position: {
64
+ type: string;
65
+ enum: string[];
66
+ };
67
+ alt: {
68
+ type: string;
69
+ contentType: string;
70
+ };
71
+ };
72
+ optionName: string;
73
+ })[];
74
+ };
75
+ metrikaGoals: {
76
+ oneOf: ({
77
+ type: string;
78
+ optionName: string;
79
+ items?: undefined;
80
+ } | {
81
+ type: string;
82
+ items: {
83
+ type: string;
84
+ additionalProperties?: undefined;
85
+ required?: undefined;
86
+ properties?: undefined;
87
+ };
88
+ optionName: string;
89
+ } | {
90
+ type: string;
91
+ items: {
92
+ type: string;
93
+ additionalProperties: boolean;
94
+ required: string[];
95
+ properties: {
96
+ name: {
97
+ type: string;
98
+ };
99
+ isCrossSite: {
100
+ type: string;
101
+ };
102
+ };
103
+ };
104
+ optionName: string;
105
+ })[];
106
+ };
107
+ pixelEvents: {
108
+ type: string;
109
+ items: {
110
+ type: string;
111
+ required: string[];
112
+ additionalProperties: boolean;
113
+ properties: {
114
+ name: {
115
+ type: string;
116
+ enum: import("../..").PixelEventType[];
117
+ };
118
+ data: {};
119
+ };
120
+ select: {
121
+ $data: string;
122
+ };
123
+ selectCases: {
124
+ SubmitApplication: {
125
+ additionalProperties: boolean;
126
+ properties: {
127
+ name: {};
128
+ };
129
+ };
130
+ Contact: {
131
+ additionalProperties: boolean;
132
+ properties: {
133
+ name: {};
134
+ };
135
+ };
136
+ Lead: {
137
+ additionalProperties: boolean;
138
+ properties: {
139
+ name: {};
140
+ data: {
141
+ type: string;
142
+ additionalProperties: boolean;
143
+ properties: {
144
+ content_category: {
145
+ type: string;
146
+ };
147
+ content_name: {
148
+ type: string;
149
+ };
150
+ currency: {
151
+ type: string;
152
+ };
153
+ value: {
154
+ type: string;
155
+ };
156
+ };
157
+ };
158
+ };
159
+ };
160
+ };
161
+ };
162
+ };
163
+ analyticsEvents: {
164
+ oneOf: ({
165
+ optionName: string;
166
+ type: string;
167
+ additionalProperties: {
168
+ type: string;
169
+ };
170
+ required: string[];
171
+ properties: {
172
+ name: {
173
+ type: string;
174
+ };
175
+ type: {
176
+ type: string;
177
+ };
178
+ counters: {
179
+ type: string;
180
+ additionalProperties: boolean;
181
+ required: never[];
182
+ properties: {
183
+ include: {
184
+ type: string;
185
+ items: {
186
+ type: string;
187
+ };
188
+ };
189
+ exclude: {
190
+ type: string;
191
+ items: {
192
+ type: string;
193
+ };
194
+ };
195
+ };
196
+ };
197
+ context: {
198
+ type: string;
199
+ };
200
+ };
201
+ items?: undefined;
202
+ } | {
203
+ type: string;
204
+ items: {
205
+ type: string;
206
+ additionalProperties: {
207
+ type: string;
208
+ };
209
+ required: string[];
210
+ properties: {
211
+ name: {
212
+ type: string;
213
+ };
214
+ type: {
215
+ type: string;
216
+ };
217
+ counters: {
218
+ type: string;
219
+ additionalProperties: boolean;
220
+ required: never[];
221
+ properties: {
222
+ include: {
223
+ type: string;
224
+ items: {
225
+ type: string;
226
+ };
227
+ };
228
+ exclude: {
229
+ type: string;
230
+ items: {
231
+ type: string;
232
+ };
233
+ };
234
+ };
235
+ };
236
+ context: {
237
+ type: string;
238
+ };
239
+ };
240
+ };
241
+ optionName: string;
242
+ })[];
243
+ };
244
+ target: {
245
+ type: string;
246
+ enum: string[];
247
+ };
248
+ };
249
+ if: {
250
+ properties: {
251
+ theme: {
252
+ enum: string[];
253
+ };
254
+ };
255
+ };
256
+ then: {
257
+ required: string[];
258
+ };
259
+ else: {
260
+ required: string[];
261
+ };
262
+ };
263
+ };
264
+ links: {
265
+ type: string;
266
+ items: {
267
+ type: string;
268
+ additionalProperties: boolean;
269
+ required: string[];
270
+ properties: {
271
+ text: {
272
+ type: string;
273
+ contentType: string;
274
+ };
275
+ url: {
276
+ type: string;
277
+ };
278
+ urlTitle: {
279
+ type: string;
280
+ };
281
+ arrow: {
282
+ type: string;
283
+ };
284
+ theme: {
285
+ type: string;
286
+ enum: string[];
287
+ };
288
+ textSize: {
289
+ type: string;
290
+ enum: string[];
291
+ };
292
+ target: {
293
+ type: string;
294
+ enum: string[];
295
+ };
296
+ analyticsEvents: {
297
+ oneOf: ({
298
+ optionName: string;
299
+ type: string;
300
+ additionalProperties: {
301
+ type: string;
302
+ };
303
+ required: string[];
304
+ properties: {
305
+ name: {
306
+ type: string;
307
+ };
308
+ type: {
309
+ type: string;
310
+ };
311
+ counters: {
312
+ type: string;
313
+ additionalProperties: boolean;
314
+ required: never[];
315
+ properties: {
316
+ include: {
317
+ type: string;
318
+ items: {
319
+ type: string;
320
+ };
321
+ };
322
+ exclude: {
323
+ type: string;
324
+ items: {
325
+ type: string;
326
+ };
327
+ };
328
+ };
329
+ };
330
+ context: {
331
+ type: string;
332
+ };
333
+ };
334
+ items?: undefined;
335
+ } | {
336
+ type: string;
337
+ items: {
338
+ type: string;
339
+ additionalProperties: {
340
+ type: string;
341
+ };
342
+ required: string[];
343
+ properties: {
344
+ name: {
345
+ type: string;
346
+ };
347
+ type: {
348
+ type: string;
349
+ };
350
+ counters: {
351
+ type: string;
352
+ additionalProperties: boolean;
353
+ required: never[];
354
+ properties: {
355
+ include: {
356
+ type: string;
357
+ items: {
358
+ type: string;
359
+ };
360
+ };
361
+ exclude: {
362
+ type: string;
363
+ items: {
364
+ type: string;
365
+ };
366
+ };
367
+ };
368
+ };
369
+ context: {
370
+ type: string;
371
+ };
372
+ };
373
+ };
374
+ optionName: string;
375
+ })[];
376
+ };
377
+ type: {};
378
+ when: {
379
+ type: string;
380
+ };
381
+ };
382
+ };
383
+ };
384
+ backgroundColor: {
385
+ type: string;
386
+ };
387
+ list: {
388
+ type: string;
389
+ items: {
390
+ type: string;
391
+ };
392
+ };
393
+ animated: {
394
+ type: string;
395
+ };
396
+ color: {
397
+ type: string;
398
+ };
399
+ image: {
400
+ oneOf: ({
401
+ optionName: string;
402
+ oneOf: ({
403
+ type: string;
404
+ properties: {
405
+ when: {
406
+ type: string;
407
+ };
408
+ };
409
+ } | {
410
+ type: string;
411
+ pattern: string;
412
+ optionName: string;
413
+ })[];
414
+ type?: undefined;
415
+ items?: undefined;
416
+ } | {
417
+ type: string;
418
+ items: {
419
+ oneOf: ({
420
+ type: string;
421
+ properties: {
422
+ when: {
423
+ type: string;
424
+ };
425
+ };
426
+ } | {
427
+ type: string;
428
+ pattern: string;
429
+ optionName: string;
430
+ })[];
431
+ };
432
+ optionName: string;
433
+ })[];
434
+ };
435
+ video: {
436
+ type: string;
437
+ additionalProperties: boolean;
438
+ required: string[];
439
+ properties: {
440
+ src: {
441
+ type: string;
442
+ items: {
443
+ type: string;
444
+ };
445
+ };
446
+ loop: {
447
+ oneOf: ({
448
+ optionName: string;
449
+ type: string;
450
+ additionalProperties: boolean;
451
+ required: string[];
452
+ properties: {
453
+ start: {
454
+ type: string;
455
+ };
456
+ end: {
457
+ type: string;
458
+ };
459
+ };
460
+ } | {
461
+ type: string;
462
+ optionName: string;
463
+ })[];
464
+ };
465
+ type: {
466
+ type: string;
467
+ enum: string[];
468
+ };
469
+ muted: {
470
+ type: string;
471
+ };
472
+ autoplay: {
473
+ type: string;
474
+ };
475
+ elapsedTime: {
476
+ type: string;
477
+ };
478
+ playButton: {
479
+ type: string;
480
+ additionalProperties: boolean;
481
+ properties: {
482
+ type: {
483
+ type: string;
484
+ enum: string[];
485
+ };
486
+ theme: {
487
+ type: string;
488
+ enum: string[];
489
+ };
490
+ text: {
491
+ type: string;
492
+ contentType: string;
493
+ };
494
+ };
495
+ };
496
+ controls: {
497
+ type: string;
498
+ enum: import("../..").MediaVideoControlsType[];
499
+ };
500
+ customControlsOptions: {
501
+ type: string;
502
+ additionalProperties: boolean;
503
+ properties: {
504
+ type: {
505
+ type: string;
506
+ enum: import("../..").CustomControlsType[];
507
+ };
508
+ muteButtonShown: {
509
+ type: string;
510
+ };
511
+ positioning: {
512
+ type: string;
513
+ enum: import("../..").CustomControlsButtonPositioning[];
514
+ };
515
+ };
516
+ };
517
+ ariaLabel: {
518
+ type: string;
519
+ };
520
+ };
521
+ };
522
+ youtube: {
523
+ type: string;
524
+ };
525
+ parallax: {
526
+ type: string;
527
+ };
528
+ height: {
529
+ type: string;
530
+ };
531
+ previewImg: {
532
+ type: string;
533
+ };
534
+ dataLens: {
535
+ oneOf: ({
536
+ type: string;
537
+ optionName: string;
538
+ } | {
539
+ optionName: string;
540
+ type: string;
541
+ additionalProperties: boolean;
542
+ required: string[];
543
+ properties: {
544
+ id: {
545
+ type: string;
546
+ };
547
+ theme: {
548
+ type: string;
549
+ enum: string[];
550
+ };
551
+ };
552
+ })[];
553
+ };
554
+ fullscreen: {
555
+ type: string;
556
+ };
557
+ analyticsEvents: {
558
+ anyOf: ({
559
+ type: string;
560
+ additionalProperties: {
561
+ type: string;
562
+ };
563
+ required: string[];
564
+ properties: {
565
+ name: {
566
+ type: string;
567
+ };
568
+ type: {
569
+ type: string;
570
+ };
571
+ counters: {
572
+ type: string;
573
+ additionalProperties: boolean;
574
+ required: never[];
575
+ properties: {
576
+ include: {
577
+ type: string;
578
+ items: {
579
+ type: string;
580
+ };
581
+ };
582
+ exclude: {
583
+ type: string;
584
+ items: {
585
+ type: string;
586
+ };
587
+ };
588
+ };
589
+ };
590
+ context: {
591
+ type: string;
592
+ };
593
+ };
594
+ } | {
595
+ type: string;
596
+ items: {
597
+ type: string;
598
+ additionalProperties: {
599
+ type: string;
600
+ };
601
+ required: string[];
602
+ properties: {
603
+ name: {
604
+ type: string;
605
+ };
606
+ type: {
607
+ type: string;
608
+ };
609
+ counters: {
610
+ type: string;
611
+ additionalProperties: boolean;
612
+ required: never[];
613
+ properties: {
614
+ include: {
615
+ type: string;
616
+ items: {
617
+ type: string;
618
+ };
619
+ };
620
+ exclude: {
621
+ type: string;
622
+ items: {
623
+ type: string;
624
+ };
625
+ };
626
+ };
627
+ };
628
+ context: {
629
+ type: string;
630
+ };
631
+ };
632
+ };
633
+ })[];
634
+ };
635
+ ratio: {
636
+ type: string;
637
+ };
638
+ border: {
639
+ type: string;
640
+ enum: string[];
641
+ };
642
+ type: {};
643
+ when: {
644
+ type: string;
645
+ };
646
+ };
647
+ };
648
+ };
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PriceCardBlock = void 0;
4
+ const common_1 = require("../../schema/validators/common");
5
+ exports.PriceCardBlock = {
6
+ 'price-card': {
7
+ additionalProperties: false,
8
+ required: ['title', 'price'],
9
+ properties: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, common_1.BaseProps), common_1.CardBase), common_1.MediaProps), common_1.AnimatableProps), { title: {
10
+ type: 'string',
11
+ }, price: {
12
+ type: 'string',
13
+ }, pricePeriod: {
14
+ type: 'string',
15
+ }, priceDetails: {
16
+ type: 'string',
17
+ }, description: {
18
+ type: 'string',
19
+ }, buttons: {
20
+ type: 'array',
21
+ items: common_1.ButtonBlock,
22
+ }, links: {
23
+ type: 'array',
24
+ items: common_1.LinkProps,
25
+ }, backgroundColor: {
26
+ type: 'string',
27
+ }, list: {
28
+ type: 'array',
29
+ items: {
30
+ type: 'string',
31
+ },
32
+ } }),
33
+ },
34
+ };
@@ -8,3 +8,4 @@ export { default as BackgroundCard } from './BackgroundCard/BackgroundCard';
8
8
  export { default as BasicCard } from './BasicCard/BasicCard';
9
9
  export { default as Content } from './Content/Content';
10
10
  export { default as HubspotForm } from './HubspotForm';
11
+ export { default as PriceCard } from './PriceCard/PriceCard';