@gravity-ui/page-constructor 8.19.0 → 8.20.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 (166) hide show
  1. package/build/cjs/blocks/Banner/schema.d.ts +3 -0
  2. package/build/cjs/blocks/CardLayout/schema.d.ts +529 -195
  3. package/build/cjs/blocks/CardLayout/schema.js +12 -13
  4. package/build/cjs/blocks/CardLayout/schema.js.map +1 -1
  5. package/build/cjs/blocks/Companies/schema.d.ts +88 -3
  6. package/build/cjs/blocks/Companies/schema.js +5 -20
  7. package/build/cjs/blocks/Companies/schema.js.map +1 -1
  8. package/build/cjs/blocks/ContentLayout/schema.d.ts +258 -194
  9. package/build/cjs/blocks/ContentLayout/schema.js +1 -1
  10. package/build/cjs/blocks/ContentLayout/schema.js.map +1 -1
  11. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +311 -39
  12. package/build/cjs/blocks/ExtendedFeatures/schema.js +18 -19
  13. package/build/cjs/blocks/ExtendedFeatures/schema.js.map +1 -1
  14. package/build/cjs/blocks/Footer/schema.d.ts +3 -6
  15. package/build/cjs/blocks/Form/schema.d.ts +197 -15
  16. package/build/cjs/blocks/Form/schema.js +15 -3
  17. package/build/cjs/blocks/Form/schema.js.map +1 -1
  18. package/build/cjs/blocks/Header/schema.d.ts +461 -206
  19. package/build/cjs/blocks/Header/schema.js +18 -2
  20. package/build/cjs/blocks/Header/schema.js.map +1 -1
  21. package/build/cjs/blocks/HeaderSlider/schema.d.ts +150 -71
  22. package/build/cjs/blocks/Hero/schema.d.ts +19 -437
  23. package/build/cjs/blocks/Hero/schema.js +12 -3
  24. package/build/cjs/blocks/Hero/schema.js.map +1 -1
  25. package/build/cjs/blocks/Icons/Icons.js.map +1 -1
  26. package/build/cjs/blocks/Icons/schema.js +1 -1
  27. package/build/cjs/blocks/Icons/schema.js.map +1 -1
  28. package/build/cjs/blocks/Info/schema.d.ts +49 -1
  29. package/build/cjs/blocks/Info/schema.js +2 -2
  30. package/build/cjs/blocks/Info/schema.js.map +1 -1
  31. package/build/cjs/blocks/Map/schema.d.ts +7 -2
  32. package/build/cjs/blocks/Map/schema.js +1 -1
  33. package/build/cjs/blocks/Map/schema.js.map +1 -1
  34. package/build/cjs/blocks/Media/schema.d.ts +20 -9
  35. package/build/cjs/blocks/Media/schema.js +15 -2
  36. package/build/cjs/blocks/Media/schema.js.map +1 -1
  37. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +2 -4
  38. package/build/cjs/blocks/Table/schema.d.ts +1 -0
  39. package/build/cjs/blocks/Table/schema.js +1 -0
  40. package/build/cjs/blocks/Table/schema.js.map +1 -1
  41. package/build/cjs/blocks/Tabs/schema.d.ts +7 -6
  42. package/build/cjs/blocks/Tabs/schema.js +1 -1
  43. package/build/cjs/blocks/Tabs/schema.js.map +1 -1
  44. package/build/cjs/components/Author/schema.d.ts +1 -2
  45. package/build/cjs/components/Image/schema.d.ts +33 -8
  46. package/build/cjs/components/Image/schema.js +22 -22
  47. package/build/cjs/components/Image/schema.js.map +1 -1
  48. package/build/cjs/models/constructor-items/blocks.d.ts +6 -5
  49. package/build/cjs/models/constructor-items/blocks.js.map +1 -1
  50. package/build/cjs/models/constructor-items/common.d.ts +1 -1
  51. package/build/cjs/models/constructor-items/common.js.map +1 -1
  52. package/build/cjs/navigation/schema.d.ts +1 -2
  53. package/build/cjs/navigation/schema.js +1 -0
  54. package/build/cjs/navigation/schema.js.map +1 -1
  55. package/build/cjs/schema/constants.d.ts +940 -29
  56. package/build/cjs/schema/constants.js +36 -40
  57. package/build/cjs/schema/constants.js.map +1 -1
  58. package/build/cjs/schema/validators/common.d.ts +11 -8
  59. package/build/cjs/schema/validators/common.js +10 -6
  60. package/build/cjs/schema/validators/common.js.map +1 -1
  61. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +82 -2
  62. package/build/cjs/sub-blocks/BasicCard/schema.js +15 -1
  63. package/build/cjs/sub-blocks/BasicCard/schema.js.map +1 -1
  64. package/build/cjs/sub-blocks/Content/schema.d.ts +2 -5
  65. package/build/cjs/sub-blocks/Content/schema.js +1 -8
  66. package/build/cjs/sub-blocks/Content/schema.js.map +1 -1
  67. package/build/cjs/sub-blocks/ImageCard/schema.d.ts +33 -17
  68. package/build/cjs/sub-blocks/ImageCard/schema.js +8 -1
  69. package/build/cjs/sub-blocks/ImageCard/schema.js.map +1 -1
  70. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +1023 -312
  71. package/build/cjs/sub-blocks/LayoutItem/schema.js +40 -9
  72. package/build/cjs/sub-blocks/LayoutItem/schema.js.map +1 -1
  73. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +2 -4
  74. package/build/cjs/sub-blocks/PriceCard/schema.d.ts +5 -0
  75. package/build/cjs/sub-blocks/PriceDetailed/schema.js +1 -0
  76. package/build/cjs/sub-blocks/PriceDetailed/schema.js.map +1 -1
  77. package/build/cjs/sub-blocks/Quote/schema.d.ts +164 -6
  78. package/build/cjs/sub-blocks/Quote/schema.js +2 -0
  79. package/build/cjs/sub-blocks/Quote/schema.js.map +1 -1
  80. package/build/docs/blocks/Hero.md +15 -15
  81. package/build/docs/blocks/Icons.md +2 -2
  82. package/build/docs/blocks/Media.md +1 -1
  83. package/build/esm/blocks/Banner/schema.d.ts +3 -0
  84. package/build/esm/blocks/CardLayout/schema.d.ts +529 -195
  85. package/build/esm/blocks/CardLayout/schema.js +14 -15
  86. package/build/esm/blocks/CardLayout/schema.js.map +1 -1
  87. package/build/esm/blocks/Companies/schema.d.ts +88 -3
  88. package/build/esm/blocks/Companies/schema.js +5 -21
  89. package/build/esm/blocks/Companies/schema.js.map +1 -1
  90. package/build/esm/blocks/ContentLayout/schema.d.ts +258 -194
  91. package/build/esm/blocks/ContentLayout/schema.js +2 -2
  92. package/build/esm/blocks/ContentLayout/schema.js.map +1 -1
  93. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +311 -39
  94. package/build/esm/blocks/ExtendedFeatures/schema.js +17 -18
  95. package/build/esm/blocks/ExtendedFeatures/schema.js.map +1 -1
  96. package/build/esm/blocks/Footer/schema.d.ts +3 -6
  97. package/build/esm/blocks/Form/schema.d.ts +197 -15
  98. package/build/esm/blocks/Form/schema.js +17 -5
  99. package/build/esm/blocks/Form/schema.js.map +1 -1
  100. package/build/esm/blocks/Header/schema.d.ts +446 -191
  101. package/build/esm/blocks/Header/schema.js +19 -3
  102. package/build/esm/blocks/Header/schema.js.map +1 -1
  103. package/build/esm/blocks/HeaderSlider/schema.d.ts +150 -71
  104. package/build/esm/blocks/Hero/schema.d.ts +19 -437
  105. package/build/esm/blocks/Hero/schema.js +12 -3
  106. package/build/esm/blocks/Hero/schema.js.map +1 -1
  107. package/build/esm/blocks/Icons/Icons.js.map +1 -1
  108. package/build/esm/blocks/Icons/schema.js +1 -1
  109. package/build/esm/blocks/Icons/schema.js.map +1 -1
  110. package/build/esm/blocks/Info/schema.d.ts +49 -1
  111. package/build/esm/blocks/Info/schema.js +3 -3
  112. package/build/esm/blocks/Info/schema.js.map +1 -1
  113. package/build/esm/blocks/Map/schema.d.ts +7 -2
  114. package/build/esm/blocks/Map/schema.js +1 -1
  115. package/build/esm/blocks/Map/schema.js.map +1 -1
  116. package/build/esm/blocks/Media/schema.d.ts +20 -9
  117. package/build/esm/blocks/Media/schema.js +16 -3
  118. package/build/esm/blocks/Media/schema.js.map +1 -1
  119. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +2 -4
  120. package/build/esm/blocks/Table/schema.d.ts +1 -0
  121. package/build/esm/blocks/Table/schema.js +1 -0
  122. package/build/esm/blocks/Table/schema.js.map +1 -1
  123. package/build/esm/blocks/Tabs/schema.d.ts +7 -6
  124. package/build/esm/blocks/Tabs/schema.js +2 -2
  125. package/build/esm/blocks/Tabs/schema.js.map +1 -1
  126. package/build/esm/components/Author/schema.d.ts +1 -2
  127. package/build/esm/components/Image/schema.d.ts +33 -8
  128. package/build/esm/components/Image/schema.js +22 -22
  129. package/build/esm/components/Image/schema.js.map +1 -1
  130. package/build/esm/models/constructor-items/blocks.d.ts +6 -5
  131. package/build/esm/models/constructor-items/blocks.js.map +1 -1
  132. package/build/esm/models/constructor-items/common.d.ts +1 -1
  133. package/build/esm/models/constructor-items/common.js.map +1 -1
  134. package/build/esm/navigation/schema.d.ts +1 -2
  135. package/build/esm/navigation/schema.js +2 -1
  136. package/build/esm/navigation/schema.js.map +1 -1
  137. package/build/esm/schema/constants.d.ts +940 -29
  138. package/build/esm/schema/constants.js +37 -41
  139. package/build/esm/schema/constants.js.map +1 -1
  140. package/build/esm/schema/validators/common.d.ts +11 -8
  141. package/build/esm/schema/validators/common.js +8 -4
  142. package/build/esm/schema/validators/common.js.map +1 -1
  143. package/build/esm/sub-blocks/BasicCard/schema.d.ts +82 -2
  144. package/build/esm/sub-blocks/BasicCard/schema.js +16 -2
  145. package/build/esm/sub-blocks/BasicCard/schema.js.map +1 -1
  146. package/build/esm/sub-blocks/Content/schema.d.ts +2 -5
  147. package/build/esm/sub-blocks/Content/schema.js +1 -8
  148. package/build/esm/sub-blocks/Content/schema.js.map +1 -1
  149. package/build/esm/sub-blocks/ImageCard/schema.d.ts +33 -17
  150. package/build/esm/sub-blocks/ImageCard/schema.js +9 -2
  151. package/build/esm/sub-blocks/ImageCard/schema.js.map +1 -1
  152. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +1023 -312
  153. package/build/esm/sub-blocks/LayoutItem/schema.js +37 -6
  154. package/build/esm/sub-blocks/LayoutItem/schema.js.map +1 -1
  155. package/build/esm/sub-blocks/MediaCard/schema.d.ts +2 -4
  156. package/build/esm/sub-blocks/PriceCard/schema.d.ts +5 -0
  157. package/build/esm/sub-blocks/PriceDetailed/schema.js +2 -1
  158. package/build/esm/sub-blocks/PriceDetailed/schema.js.map +1 -1
  159. package/build/esm/sub-blocks/Quote/schema.d.ts +164 -6
  160. package/build/esm/sub-blocks/Quote/schema.js +3 -1
  161. package/build/esm/sub-blocks/Quote/schema.js.map +1 -1
  162. package/package.json +1 -1
  163. package/schema/index.js +1 -1
  164. package/server/models/constructor-items/blocks.d.ts +6 -5
  165. package/server/models/constructor-items/common.d.ts +1 -1
  166. package/widget/index.js +1 -1
@@ -7,122 +7,154 @@ export declare const ContentLayoutBlock: {
7
7
  enum: string[];
8
8
  };
9
9
  background: {
10
- anyOf: ({
11
- optionName: string;
12
- type: string;
13
- additionalProperties: boolean;
14
- properties: {
15
- src: {
16
- type: string;
17
- pattern: string;
18
- };
19
- style: {
20
- type: string;
21
- additionalProperties: boolean;
22
- required: never[];
23
- properties: {
24
- backgroundColor: {
25
- type: string;
26
- };
27
- height: {
28
- type: string[];
29
- };
30
- width: {
31
- type: string[];
32
- };
33
- color: {
34
- type: string;
35
- };
36
- };
37
- };
38
- alt: {
39
- type: string;
40
- contentType: string;
41
- };
42
- disableCompress: {
43
- type: string;
44
- };
45
- loading: {
46
- type: string;
47
- enum: string[];
48
- };
49
- fetchPriority: {
50
- type: string;
51
- enum: string[];
52
- };
53
- hide: {
54
- oneOf: ({
10
+ oneOf: (({
11
+ oneOf: ({
12
+ optionName: string;
13
+ type: string;
14
+ additionalProperties: boolean;
15
+ properties: {
16
+ src: {
55
17
  type: string;
56
- properties?: undefined;
57
- } | {
18
+ pattern: string;
19
+ };
20
+ style: {
58
21
  type: string;
22
+ additionalProperties: boolean;
23
+ required: never[];
59
24
  properties: {
60
- mobile: {
25
+ backgroundColor: {
61
26
  type: string;
62
27
  };
63
- tablet: {
64
- type: string;
28
+ height: {
29
+ type: string[];
30
+ };
31
+ width: {
32
+ type: string[];
65
33
  };
66
- desktop: {
34
+ color: {
67
35
  type: string;
68
36
  };
69
37
  };
70
- })[];
71
- };
72
- };
73
- } | {
74
- optionName: string;
75
- type: string;
76
- additionalProperties: boolean;
77
- required: string[];
78
- properties: {
79
- desktop: {
80
- type: string;
81
- pattern: string;
82
- };
83
- tablet: {
84
- type: string;
85
- pattern: string;
86
- };
87
- mobile: {
88
- type: string;
89
- pattern: string;
90
- };
91
- alt: {
92
- type: string;
93
- contentType: string;
94
- };
95
- disableCompress: {
96
- type: string;
97
- };
98
- loading: {
99
- type: string;
100
- enum: string[];
101
- };
102
- fetchPriority: {
103
- type: string;
104
- enum: string[];
105
- };
106
- hide: {
107
- oneOf: ({
38
+ };
39
+ alt: {
40
+ type: string;
41
+ contentType: string;
42
+ };
43
+ disableCompress: {
44
+ type: string;
45
+ };
46
+ loading: {
108
47
  type: string;
109
- properties?: undefined;
110
- } | {
48
+ enum: string[];
49
+ };
50
+ fetchPriority: {
51
+ type: string;
52
+ enum: string[];
53
+ };
54
+ hide: {
55
+ oneOf: ({
56
+ type: string;
57
+ properties?: undefined;
58
+ } | {
59
+ type: string;
60
+ properties: {
61
+ mobile: {
62
+ type: string;
63
+ };
64
+ tablet: {
65
+ type: string;
66
+ };
67
+ desktop: {
68
+ type: string;
69
+ };
70
+ };
71
+ })[];
72
+ };
73
+ };
74
+ } | {
75
+ properties: {
76
+ style: {
111
77
  type: string;
78
+ additionalProperties: boolean;
79
+ required: never[];
112
80
  properties: {
113
- mobile: {
81
+ backgroundColor: {
114
82
  type: string;
115
83
  };
116
- tablet: {
117
- type: string;
84
+ height: {
85
+ type: string[];
86
+ };
87
+ width: {
88
+ type: string[];
118
89
  };
119
- desktop: {
90
+ color: {
120
91
  type: string;
121
92
  };
122
93
  };
123
- })[];
94
+ };
95
+ desktop: {
96
+ type: string;
97
+ pattern: string;
98
+ };
99
+ tablet: {
100
+ type: string;
101
+ pattern: string;
102
+ };
103
+ mobile: {
104
+ type: string;
105
+ pattern: string;
106
+ };
107
+ alt: {
108
+ type: string;
109
+ contentType: string;
110
+ };
111
+ disableCompress: {
112
+ type: string;
113
+ };
114
+ loading: {
115
+ type: string;
116
+ enum: string[];
117
+ };
118
+ fetchPriority: {
119
+ type: string;
120
+ enum: string[];
121
+ };
122
+ hide: {
123
+ oneOf: ({
124
+ type: string;
125
+ properties?: undefined;
126
+ } | {
127
+ type: string;
128
+ properties: {
129
+ mobile: {
130
+ type: string;
131
+ };
132
+ tablet: {
133
+ type: string;
134
+ };
135
+ desktop: {
136
+ type: string;
137
+ };
138
+ };
139
+ })[];
140
+ };
124
141
  };
125
- };
142
+ optionName: string;
143
+ type: string;
144
+ additionalProperties: boolean;
145
+ required: import("../../index.js").Device[];
146
+ anyOf: {
147
+ required: import("../../index.js").Device[];
148
+ }[];
149
+ })[];
150
+ } & {
151
+ optionName: string;
152
+ }) | {
153
+ type: string;
154
+ additionalProperties: boolean;
155
+ required: import("../../index.js").Theme[];
156
+ properties: {};
157
+ optionName: string;
126
158
  })[];
127
159
  };
128
160
  centered: {
@@ -329,122 +361,154 @@ export declare const ContentLayoutBlock: {
329
361
  enum: string[];
330
362
  };
331
363
  background: {
332
- anyOf: ({
333
- optionName: string;
334
- type: string;
335
- additionalProperties: boolean;
336
- properties: {
337
- src: {
338
- type: string;
339
- pattern: string;
340
- };
341
- style: {
342
- type: string;
343
- additionalProperties: boolean;
344
- required: never[];
345
- properties: {
346
- backgroundColor: {
347
- type: string;
348
- };
349
- height: {
350
- type: string[];
351
- };
352
- width: {
353
- type: string[];
354
- };
355
- color: {
356
- type: string;
357
- };
358
- };
359
- };
360
- alt: {
361
- type: string;
362
- contentType: string;
363
- };
364
- disableCompress: {
365
- type: string;
366
- };
367
- loading: {
368
- type: string;
369
- enum: string[];
370
- };
371
- fetchPriority: {
372
- type: string;
373
- enum: string[];
374
- };
375
- hide: {
376
- oneOf: ({
364
+ oneOf: (({
365
+ oneOf: ({
366
+ optionName: string;
367
+ type: string;
368
+ additionalProperties: boolean;
369
+ properties: {
370
+ src: {
377
371
  type: string;
378
- properties?: undefined;
379
- } | {
372
+ pattern: string;
373
+ };
374
+ style: {
380
375
  type: string;
376
+ additionalProperties: boolean;
377
+ required: never[];
381
378
  properties: {
382
- mobile: {
379
+ backgroundColor: {
383
380
  type: string;
384
381
  };
385
- tablet: {
386
- type: string;
382
+ height: {
383
+ type: string[];
387
384
  };
388
- desktop: {
385
+ width: {
386
+ type: string[];
387
+ };
388
+ color: {
389
389
  type: string;
390
390
  };
391
391
  };
392
- })[];
393
- };
394
- };
395
- } | {
396
- optionName: string;
397
- type: string;
398
- additionalProperties: boolean;
399
- required: string[];
400
- properties: {
401
- desktop: {
402
- type: string;
403
- pattern: string;
404
- };
405
- tablet: {
406
- type: string;
407
- pattern: string;
408
- };
409
- mobile: {
410
- type: string;
411
- pattern: string;
412
- };
413
- alt: {
414
- type: string;
415
- contentType: string;
416
- };
417
- disableCompress: {
418
- type: string;
419
- };
420
- loading: {
421
- type: string;
422
- enum: string[];
423
- };
424
- fetchPriority: {
425
- type: string;
426
- enum: string[];
427
- };
428
- hide: {
429
- oneOf: ({
392
+ };
393
+ alt: {
430
394
  type: string;
431
- properties?: undefined;
432
- } | {
395
+ contentType: string;
396
+ };
397
+ disableCompress: {
398
+ type: string;
399
+ };
400
+ loading: {
433
401
  type: string;
402
+ enum: string[];
403
+ };
404
+ fetchPriority: {
405
+ type: string;
406
+ enum: string[];
407
+ };
408
+ hide: {
409
+ oneOf: ({
410
+ type: string;
411
+ properties?: undefined;
412
+ } | {
413
+ type: string;
414
+ properties: {
415
+ mobile: {
416
+ type: string;
417
+ };
418
+ tablet: {
419
+ type: string;
420
+ };
421
+ desktop: {
422
+ type: string;
423
+ };
424
+ };
425
+ })[];
426
+ };
427
+ };
428
+ } | {
429
+ properties: {
430
+ style: {
431
+ type: string;
432
+ additionalProperties: boolean;
433
+ required: never[];
434
434
  properties: {
435
- mobile: {
435
+ backgroundColor: {
436
436
  type: string;
437
437
  };
438
- tablet: {
439
- type: string;
438
+ height: {
439
+ type: string[];
440
440
  };
441
- desktop: {
441
+ width: {
442
+ type: string[];
443
+ };
444
+ color: {
442
445
  type: string;
443
446
  };
444
447
  };
445
- })[];
448
+ };
449
+ desktop: {
450
+ type: string;
451
+ pattern: string;
452
+ };
453
+ tablet: {
454
+ type: string;
455
+ pattern: string;
456
+ };
457
+ mobile: {
458
+ type: string;
459
+ pattern: string;
460
+ };
461
+ alt: {
462
+ type: string;
463
+ contentType: string;
464
+ };
465
+ disableCompress: {
466
+ type: string;
467
+ };
468
+ loading: {
469
+ type: string;
470
+ enum: string[];
471
+ };
472
+ fetchPriority: {
473
+ type: string;
474
+ enum: string[];
475
+ };
476
+ hide: {
477
+ oneOf: ({
478
+ type: string;
479
+ properties?: undefined;
480
+ } | {
481
+ type: string;
482
+ properties: {
483
+ mobile: {
484
+ type: string;
485
+ };
486
+ tablet: {
487
+ type: string;
488
+ };
489
+ desktop: {
490
+ type: string;
491
+ };
492
+ };
493
+ })[];
494
+ };
446
495
  };
447
- };
496
+ optionName: string;
497
+ type: string;
498
+ additionalProperties: boolean;
499
+ required: import("../../index.js").Device[];
500
+ anyOf: {
501
+ required: import("../../index.js").Device[];
502
+ }[];
503
+ })[];
504
+ } & {
505
+ optionName: string;
506
+ }) | {
507
+ type: string;
508
+ additionalProperties: boolean;
509
+ required: import("../../index.js").Theme[];
510
+ properties: {};
511
+ optionName: string;
448
512
  })[];
449
513
  };
450
514
  centered: {
@@ -1,5 +1,5 @@
1
1
  import { BackgroundImageProps } from "../../components/Image/schema.js";
2
- import { BlockBaseProps, FileLinkProps, contentSizes, contentTextWidth, contentThemes, } from "../../schema/validators/common.js";
2
+ import { BlockBaseProps, FileLinkProps, contentSizes, contentTextWidth, contentThemes, withTheme, } from "../../schema/validators/common.js";
3
3
  import { filteredArray } from "../../schema/validators/utils.js";
4
4
  import { ContentBlock } from "../../sub-blocks/Content/schema.js";
5
5
  const ContentLayoutBlockProperties = {
@@ -7,7 +7,7 @@ const ContentLayoutBlockProperties = {
7
7
  type: 'string',
8
8
  enum: contentSizes,
9
9
  },
10
- background: BackgroundImageProps,
10
+ background: withTheme(BackgroundImageProps),
11
11
  centered: {
12
12
  type: 'boolean',
13
13
  },
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/ContentLayout/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,yCAAsC;AACnE,OAAO,EACH,cAAc,EACd,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,aAAa,GAChB,0CAAuC;AACxC,OAAO,EAAC,aAAa,EAAC,yCAAsC;AAC5D,OAAO,EAAC,YAAY,EAAC,2CAAwC;AAE7D,MAAM,4BAA4B,GAAG;IACjC,IAAI,EAAE;QACF,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,YAAY;KACrB;IACD,UAAU,EAAE,oBAAoB;IAChC,QAAQ,EAAE;QACN,IAAI,EAAE,SAAS;KAClB;IACD,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,aAAa;KACtB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,gBAAgB;KACzB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,sBAAsB,EAAE;QACpB,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACR,GAAG,cAAc;YACjB,WAAW,EAAE,YAAY,EAAE,OAAO;YAClC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC;YACzC;;eAEG;YACH,UAAU,EAAE,4BAA4B;YACxC,GAAG,4BAA4B;SAClC;KACJ;CACJ,CAAC","sourcesContent":["import {BackgroundImageProps} from '../../components/Image/schema';\nimport {\n BlockBaseProps,\n FileLinkProps,\n contentSizes,\n contentTextWidth,\n contentThemes,\n} from '../../schema/validators/common';\nimport {filteredArray} from '../../schema/validators/utils';\nimport {ContentBlock} from '../../sub-blocks/Content/schema';\n\nconst ContentLayoutBlockProperties = {\n size: {\n type: 'string',\n enum: contentSizes,\n },\n background: BackgroundImageProps,\n centered: {\n type: 'boolean',\n },\n theme: {\n type: 'string',\n enum: contentThemes,\n },\n textWidth: {\n type: 'string',\n enum: contentTextWidth,\n },\n};\n\nexport const ContentLayoutBlock = {\n 'content-layout-block': {\n additionalProperties: false,\n properties: {\n ...BlockBaseProps,\n textContent: ContentBlock?.content,\n fileContent: filteredArray(FileLinkProps),\n /**\n * @deprecated Use params on top level instead\n */\n properties: ContentLayoutBlockProperties,\n ...ContentLayoutBlockProperties,\n },\n },\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/ContentLayout/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,yCAAsC;AACnE,OAAO,EACH,cAAc,EACd,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,aAAa,EAAC,yCAAsC;AAC5D,OAAO,EAAC,YAAY,EAAC,2CAAwC;AAE7D,MAAM,4BAA4B,GAAG;IACjC,IAAI,EAAE;QACF,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,YAAY;KACrB;IACD,UAAU,EAAE,SAAS,CAAC,oBAAoB,CAAC;IAC3C,QAAQ,EAAE;QACN,IAAI,EAAE,SAAS;KAClB;IACD,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,aAAa;KACtB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,gBAAgB;KACzB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,sBAAsB,EAAE;QACpB,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACR,GAAG,cAAc;YACjB,WAAW,EAAE,YAAY,EAAE,OAAO;YAClC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC;YACzC;;eAEG;YACH,UAAU,EAAE,4BAA4B;YACxC,GAAG,4BAA4B;SAClC;KACJ;CACJ,CAAC","sourcesContent":["import {BackgroundImageProps} from '../../components/Image/schema';\nimport {\n BlockBaseProps,\n FileLinkProps,\n contentSizes,\n contentTextWidth,\n contentThemes,\n withTheme,\n} from '../../schema/validators/common';\nimport {filteredArray} from '../../schema/validators/utils';\nimport {ContentBlock} from '../../sub-blocks/Content/schema';\n\nconst ContentLayoutBlockProperties = {\n size: {\n type: 'string',\n enum: contentSizes,\n },\n background: withTheme(BackgroundImageProps),\n centered: {\n type: 'boolean',\n },\n theme: {\n type: 'string',\n enum: contentThemes,\n },\n textWidth: {\n type: 'string',\n enum: contentTextWidth,\n },\n};\n\nexport const ContentLayoutBlock = {\n 'content-layout-block': {\n additionalProperties: false,\n properties: {\n ...BlockBaseProps,\n textContent: ContentBlock?.content,\n fileContent: filteredArray(FileLinkProps),\n /**\n * @deprecated Use params on top level instead\n */\n properties: ContentLayoutBlockProperties,\n ...ContentLayoutBlockProperties,\n },\n },\n};\n"]}