@gravity-ui/page-constructor 3.4.0 → 3.5.0-alpha.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 (270) hide show
  1. package/CHANGELOG.md +0 -27
  2. package/README.md +0 -2
  3. package/build/cjs/blocks/Banner/schema.d.ts +21 -63
  4. package/build/cjs/blocks/CardLayout/schema.d.ts +4 -10
  5. package/build/cjs/blocks/Companies/schema.d.ts +2 -5
  6. package/build/cjs/blocks/ContentLayout/ContentLayout.js +2 -3
  7. package/build/cjs/blocks/ContentLayout/schema.d.ts +61 -107
  8. package/build/cjs/blocks/ContentLayout/schema.js +18 -23
  9. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +4 -31
  10. package/build/cjs/blocks/ExtendedFeatures/schema.js +3 -2
  11. package/build/cjs/blocks/FilterBlock/schema.d.ts +5 -13
  12. package/build/cjs/blocks/FilterBlock/schema.js +2 -13
  13. package/build/cjs/blocks/Header/Header.css +7 -6
  14. package/build/cjs/blocks/Header/schema.d.ts +36 -92
  15. package/build/cjs/blocks/Header/schema.js +0 -1
  16. package/build/cjs/blocks/HeaderSlider/schema.d.ts +53 -48
  17. package/build/cjs/blocks/HeaderSlider/schema.js +1 -3
  18. package/build/cjs/blocks/Icons/schema.d.ts +1 -3
  19. package/build/cjs/blocks/Icons/schema.js +1 -2
  20. package/build/cjs/blocks/Info/schema.d.ts +8 -19
  21. package/build/cjs/blocks/Map/schema.d.ts +6 -17
  22. package/build/cjs/blocks/Media/schema.d.ts +152 -204
  23. package/build/cjs/blocks/Media/schema.js +1 -1
  24. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +8 -22
  25. package/build/cjs/blocks/PromoFeaturesBlock/schema.js +0 -1
  26. package/build/cjs/blocks/Questions/schema.d.ts +3 -7
  27. package/build/cjs/blocks/Slider/schema.d.ts +18 -13
  28. package/build/cjs/blocks/Slider/schema.js +5 -4
  29. package/build/cjs/blocks/Table/schema.d.ts +2 -5
  30. package/build/cjs/blocks/Table/schema.js +2 -12
  31. package/build/cjs/blocks/Tabs/schema.d.ts +16 -43
  32. package/build/cjs/components/BlockBase/BlockBase.js +2 -2
  33. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
  34. package/build/cjs/components/Image/schema.d.ts +0 -1
  35. package/build/cjs/components/Image/schema.js +2 -3
  36. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -1
  37. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
  38. package/build/cjs/customization/BlockDecoration.d.ts +1 -1
  39. package/build/cjs/customization/BlockDecoration.js +6 -5
  40. package/build/cjs/editor/{components → Components}/AddBlock/AddBlock.css +1 -1
  41. package/build/cjs/editor/Components/AddBlock/AddBlock.d.ts +7 -0
  42. package/build/cjs/editor/{components → Components}/AddBlock/AddBlock.js +2 -2
  43. package/build/cjs/editor/Components/EditBlock/EditBlock.d.ts +4 -0
  44. package/build/cjs/editor/Components/EditBlock/EditBlock.js +32 -0
  45. package/build/cjs/editor/Containers/Editor.d.ts +2 -0
  46. package/build/cjs/editor/Containers/Editor.js +24 -0
  47. package/build/cjs/editor/index.d.ts +1 -1
  48. package/build/cjs/editor/index.js +1 -1
  49. package/build/cjs/editor/store/index.d.ts +11 -10
  50. package/build/cjs/editor/store/index.js +15 -66
  51. package/build/cjs/editor/store/reducer.d.ts +9 -24
  52. package/build/cjs/editor/store/reducer.js +31 -17
  53. package/build/cjs/editor/store/utils.d.ts +0 -1
  54. package/build/cjs/editor/store/utils.js +1 -3
  55. package/build/cjs/editor/types/index.d.ts +9 -15
  56. package/build/cjs/editor/types/index.js +0 -6
  57. package/build/cjs/editor/utils/index.d.ts +3 -4
  58. package/build/cjs/editor/utils/index.js +4 -6
  59. package/build/cjs/grid/Col/Col.d.ts +1 -1
  60. package/build/cjs/models/constructor-items/blocks.d.ts +8 -13
  61. package/build/cjs/models/constructor.d.ts +2 -2
  62. package/build/cjs/models/customization.d.ts +8 -3
  63. package/build/cjs/models/navigation.d.ts +0 -1
  64. package/build/cjs/navigation/components/Header/Header.css +0 -2
  65. package/build/cjs/navigation/components/Header/Header.js +4 -15
  66. package/build/cjs/navigation/schema.d.ts +0 -1
  67. package/build/cjs/schema/index.d.ts +228 -9
  68. package/build/cjs/schema/index.js +46 -8
  69. package/build/cjs/schema/validators/common.d.ts +27 -71
  70. package/build/cjs/schema/validators/common.js +17 -50
  71. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +5 -12
  72. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +3 -8
  73. package/build/cjs/sub-blocks/Content/schema.d.ts +6 -14
  74. package/build/cjs/sub-blocks/Content/schema.js +1 -9
  75. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +9 -23
  76. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +6 -16
  77. package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +0 -1
  78. package/build/cjs/sub-blocks/PriceDetailed/schema.js +1 -5
  79. package/build/cjs/sub-blocks/Quote/schema.d.ts +2 -6
  80. package/build/cjs/text-transform/utils.js +6 -1
  81. package/build/esm/blocks/Banner/schema.d.ts +21 -63
  82. package/build/esm/blocks/CardLayout/schema.d.ts +4 -10
  83. package/build/esm/blocks/Companies/schema.d.ts +2 -5
  84. package/build/esm/blocks/ContentLayout/ContentLayout.js +2 -3
  85. package/build/esm/blocks/ContentLayout/schema.d.ts +61 -107
  86. package/build/esm/blocks/ContentLayout/schema.js +18 -23
  87. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +4 -31
  88. package/build/esm/blocks/ExtendedFeatures/schema.js +4 -3
  89. package/build/esm/blocks/FilterBlock/schema.d.ts +5 -13
  90. package/build/esm/blocks/FilterBlock/schema.js +2 -13
  91. package/build/esm/blocks/Header/Header.css +7 -6
  92. package/build/esm/blocks/Header/schema.d.ts +36 -92
  93. package/build/esm/blocks/Header/schema.js +0 -1
  94. package/build/esm/blocks/HeaderSlider/schema.d.ts +53 -48
  95. package/build/esm/blocks/HeaderSlider/schema.js +1 -2
  96. package/build/esm/blocks/Icons/schema.d.ts +1 -3
  97. package/build/esm/blocks/Icons/schema.js +1 -2
  98. package/build/esm/blocks/Info/schema.d.ts +8 -19
  99. package/build/esm/blocks/Map/schema.d.ts +6 -17
  100. package/build/esm/blocks/Media/schema.d.ts +152 -204
  101. package/build/esm/blocks/Media/schema.js +2 -2
  102. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +8 -22
  103. package/build/esm/blocks/PromoFeaturesBlock/schema.js +0 -1
  104. package/build/esm/blocks/Questions/schema.d.ts +3 -7
  105. package/build/esm/blocks/Slider/schema.d.ts +18 -13
  106. package/build/esm/blocks/Slider/schema.js +5 -4
  107. package/build/esm/blocks/Table/schema.d.ts +2 -5
  108. package/build/esm/blocks/Table/schema.js +2 -12
  109. package/build/esm/blocks/Tabs/schema.d.ts +16 -43
  110. package/build/esm/components/BlockBase/BlockBase.js +2 -2
  111. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
  112. package/build/esm/components/Image/schema.d.ts +0 -1
  113. package/build/esm/components/Image/schema.js +2 -3
  114. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -1
  115. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
  116. package/build/esm/customization/BlockDecoration.d.ts +1 -1
  117. package/build/esm/customization/BlockDecoration.js +6 -6
  118. package/build/esm/editor/{components → Components}/AddBlock/AddBlock.css +1 -1
  119. package/build/esm/editor/Components/AddBlock/AddBlock.d.ts +8 -0
  120. package/build/esm/editor/{components → Components}/AddBlock/AddBlock.js +2 -2
  121. package/build/esm/editor/Components/EditBlock/EditBlock.d.ts +5 -0
  122. package/build/esm/editor/Components/EditBlock/EditBlock.js +30 -0
  123. package/build/esm/editor/Containers/Editor.d.ts +2 -0
  124. package/build/esm/editor/Containers/Editor.js +20 -0
  125. package/build/esm/editor/index.d.ts +1 -1
  126. package/build/esm/editor/index.js +1 -1
  127. package/build/esm/editor/store/index.d.ts +11 -10
  128. package/build/esm/editor/store/index.js +17 -68
  129. package/build/esm/editor/store/reducer.d.ts +9 -24
  130. package/build/esm/editor/store/reducer.js +29 -15
  131. package/build/esm/editor/store/utils.d.ts +0 -1
  132. package/build/esm/editor/store/utils.js +0 -1
  133. package/build/esm/editor/types/index.d.ts +9 -15
  134. package/build/esm/editor/types/index.js +1 -5
  135. package/build/esm/editor/utils/index.d.ts +3 -4
  136. package/build/esm/editor/utils/index.js +3 -4
  137. package/build/esm/grid/Col/Col.d.ts +1 -1
  138. package/build/esm/models/constructor-items/blocks.d.ts +8 -13
  139. package/build/esm/models/constructor.d.ts +2 -2
  140. package/build/esm/models/customization.d.ts +8 -3
  141. package/build/esm/models/navigation.d.ts +0 -1
  142. package/build/esm/navigation/components/Header/Header.css +0 -2
  143. package/build/esm/navigation/components/Header/Header.js +5 -16
  144. package/build/esm/navigation/schema.d.ts +0 -1
  145. package/build/esm/schema/index.d.ts +228 -9
  146. package/build/esm/schema/index.js +42 -4
  147. package/build/esm/schema/validators/common.d.ts +27 -71
  148. package/build/esm/schema/validators/common.js +16 -49
  149. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +5 -12
  150. package/build/esm/sub-blocks/BasicCard/schema.d.ts +3 -8
  151. package/build/esm/sub-blocks/Content/schema.d.ts +6 -14
  152. package/build/esm/sub-blocks/Content/schema.js +1 -9
  153. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +9 -23
  154. package/build/esm/sub-blocks/MediaCard/schema.d.ts +6 -16
  155. package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +0 -1
  156. package/build/esm/sub-blocks/PriceDetailed/schema.js +1 -5
  157. package/build/esm/sub-blocks/Quote/schema.d.ts +2 -6
  158. package/build/esm/text-transform/utils.js +6 -1
  159. package/package.json +4 -5
  160. package/server/models/constructor-items/blocks.d.ts +8 -13
  161. package/server/models/constructor.d.ts +2 -2
  162. package/server/models/customization.d.ts +8 -3
  163. package/server/models/navigation.d.ts +0 -1
  164. package/server/text-transform/utils.js +6 -1
  165. package/build/cjs/editor/components/AddBlock/AddBlock.d.ts +0 -7
  166. package/build/cjs/editor/components/BlockForm/BlockForm.d.ts +0 -12
  167. package/build/cjs/editor/components/BlockForm/BlockForm.js +0 -33
  168. package/build/cjs/editor/components/ControlPanel/ControlPanel.css +0 -26
  169. package/build/cjs/editor/components/ControlPanel/ControlPanel.d.ts +0 -8
  170. package/build/cjs/editor/components/ControlPanel/ControlPanel.js +0 -24
  171. package/build/cjs/editor/components/ControlPanel/i18n/en.json +0 -3
  172. package/build/cjs/editor/components/ControlPanel/i18n/index.d.ts +0 -2
  173. package/build/cjs/editor/components/ControlPanel/i18n/index.js +0 -8
  174. package/build/cjs/editor/components/ControlPanel/i18n/ru.json +0 -3
  175. package/build/cjs/editor/components/EditBlock/EditBlock.d.ts +0 -13
  176. package/build/cjs/editor/components/EditBlock/EditBlock.js +0 -44
  177. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.css +0 -27
  178. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.d.ts +0 -13
  179. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js +0 -35
  180. package/build/cjs/editor/components/ErrorBoundary/i18n/en.json +0 -4
  181. package/build/cjs/editor/components/ErrorBoundary/i18n/index.d.ts +0 -2
  182. package/build/cjs/editor/components/ErrorBoundary/i18n/index.js +0 -8
  183. package/build/cjs/editor/components/ErrorBoundary/i18n/ru.json +0 -4
  184. package/build/cjs/editor/components/Layout/Layout.css +0 -36
  185. package/build/cjs/editor/components/Layout/Layout.d.ts +0 -16
  186. package/build/cjs/editor/components/Layout/Layout.js +0 -34
  187. package/build/cjs/editor/components/PagePropsForm/PagePropsForm.d.ts +0 -10
  188. package/build/cjs/editor/components/PagePropsForm/PagePropsForm.js +0 -17
  189. package/build/cjs/editor/containers/Editor/Editor.d.ts +0 -2
  190. package/build/cjs/editor/containers/Editor/Editor.js +0 -40
  191. package/build/cjs/editor/containers/Form/Form.css +0 -94
  192. package/build/cjs/editor/containers/Form/Form.d.ts +0 -11
  193. package/build/cjs/editor/containers/Form/Form.js +0 -47
  194. package/build/cjs/editor/containers/Form/dynamic-form-custom.css +0 -0
  195. package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +0 -27
  196. package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +0 -19
  197. package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +0 -72
  198. package/build/cjs/editor/dynamic-forms-custom/config.d.ts +0 -2
  199. package/build/cjs/editor/dynamic-forms-custom/config.js +0 -13
  200. package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +0 -12
  201. package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.js +0 -75
  202. package/build/cjs/editor/dynamic-forms-custom/parser/detect.d.ts +0 -9
  203. package/build/cjs/editor/dynamic-forms-custom/parser/detect.js +0 -36
  204. package/build/cjs/editor/dynamic-forms-custom/parser/index.d.ts +0 -28
  205. package/build/cjs/editor/dynamic-forms-custom/parser/index.js +0 -188
  206. package/build/cjs/editor/dynamic-forms-custom/parser/types.d.ts +0 -29
  207. package/build/cjs/editor/dynamic-forms-custom/parser/types.js +0 -2
  208. package/build/cjs/editor/dynamic-forms-custom/parser/views.d.ts +0 -37
  209. package/build/cjs/editor/dynamic-forms-custom/parser/views.js +0 -46
  210. package/build/cjs/editor/hooks/useFormSpec.d.ts +0 -2
  211. package/build/cjs/editor/hooks/useFormSpec.js +0 -13
  212. package/build/cjs/editor/hooks/usePreviousValue.d.ts +0 -1
  213. package/build/cjs/editor/hooks/usePreviousValue.js +0 -11
  214. package/build/cjs/editor/styles/root.css +0 -5
  215. package/build/cjs/schema/constants.d.ts +0 -908
  216. package/build/cjs/schema/constants.js +0 -42
  217. package/build/esm/editor/components/AddBlock/AddBlock.d.ts +0 -8
  218. package/build/esm/editor/components/BlockForm/BlockForm.d.ts +0 -12
  219. package/build/esm/editor/components/BlockForm/BlockForm.js +0 -30
  220. package/build/esm/editor/components/ControlPanel/ControlPanel.css +0 -26
  221. package/build/esm/editor/components/ControlPanel/ControlPanel.d.ts +0 -9
  222. package/build/esm/editor/components/ControlPanel/ControlPanel.js +0 -22
  223. package/build/esm/editor/components/ControlPanel/i18n/en.json +0 -3
  224. package/build/esm/editor/components/ControlPanel/i18n/index.d.ts +0 -2
  225. package/build/esm/editor/components/ControlPanel/i18n/index.js +0 -5
  226. package/build/esm/editor/components/ControlPanel/i18n/ru.json +0 -3
  227. package/build/esm/editor/components/EditBlock/EditBlock.d.ts +0 -14
  228. package/build/esm/editor/components/EditBlock/EditBlock.js +0 -41
  229. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.css +0 -27
  230. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.d.ts +0 -14
  231. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +0 -31
  232. package/build/esm/editor/components/ErrorBoundary/i18n/en.json +0 -4
  233. package/build/esm/editor/components/ErrorBoundary/i18n/index.d.ts +0 -2
  234. package/build/esm/editor/components/ErrorBoundary/i18n/index.js +0 -5
  235. package/build/esm/editor/components/ErrorBoundary/i18n/ru.json +0 -4
  236. package/build/esm/editor/components/Layout/Layout.css +0 -36
  237. package/build/esm/editor/components/Layout/Layout.d.ts +0 -17
  238. package/build/esm/editor/components/Layout/Layout.js +0 -32
  239. package/build/esm/editor/components/PagePropsForm/PagePropsForm.d.ts +0 -10
  240. package/build/esm/editor/components/PagePropsForm/PagePropsForm.js +0 -13
  241. package/build/esm/editor/containers/Editor/Editor.d.ts +0 -2
  242. package/build/esm/editor/containers/Editor/Editor.js +0 -36
  243. package/build/esm/editor/containers/Form/Form.css +0 -94
  244. package/build/esm/editor/containers/Form/Form.d.ts +0 -12
  245. package/build/esm/editor/containers/Form/Form.js +0 -45
  246. package/build/esm/editor/containers/Form/dynamic-form-custom.css +0 -0
  247. package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +0 -27
  248. package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +0 -20
  249. package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +0 -68
  250. package/build/esm/editor/dynamic-forms-custom/config.d.ts +0 -2
  251. package/build/esm/editor/dynamic-forms-custom/config.js +0 -9
  252. package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +0 -12
  253. package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.js +0 -69
  254. package/build/esm/editor/dynamic-forms-custom/parser/detect.d.ts +0 -9
  255. package/build/esm/editor/dynamic-forms-custom/parser/detect.js +0 -32
  256. package/build/esm/editor/dynamic-forms-custom/parser/index.d.ts +0 -28
  257. package/build/esm/editor/dynamic-forms-custom/parser/index.js +0 -186
  258. package/build/esm/editor/dynamic-forms-custom/parser/types.d.ts +0 -29
  259. package/build/esm/editor/dynamic-forms-custom/parser/types.js +0 -1
  260. package/build/esm/editor/dynamic-forms-custom/parser/views.d.ts +0 -37
  261. package/build/esm/editor/dynamic-forms-custom/parser/views.js +0 -39
  262. package/build/esm/editor/hooks/useFormSpec.d.ts +0 -2
  263. package/build/esm/editor/hooks/useFormSpec.js +0 -9
  264. package/build/esm/editor/hooks/usePreviousValue.d.ts +0 -1
  265. package/build/esm/editor/hooks/usePreviousValue.js +0 -8
  266. package/build/esm/editor/styles/root.css +0 -5
  267. package/build/esm/schema/constants.d.ts +0 -908
  268. package/build/esm/schema/constants.js +0 -39
  269. /package/build/cjs/editor/{components → Components}/EditBlock/EditBlock.css +0 -0
  270. /package/build/esm/editor/{components → Components}/EditBlock/EditBlock.css +0 -0
@@ -29,14 +29,12 @@ export declare const containerSizesObject: {
29
29
  properties: {};
30
30
  };
31
31
  export declare const sliderSizesObject: {
32
- oneOf: ({
32
+ anyOf: ({
33
33
  type: string;
34
34
  additionalProperties: boolean;
35
35
  properties: {};
36
- optionName: string;
37
36
  } | {
38
37
  type: string;
39
- optionName: string;
40
38
  additionalProperties?: undefined;
41
39
  properties?: undefined;
42
40
  })[];
@@ -71,7 +69,7 @@ export declare const LoopProps: {
71
69
  };
72
70
  };
73
71
  };
74
- export declare const PlayButtonProps: {
72
+ export declare const PlayIconProps: {
75
73
  type: string;
76
74
  additionalProperties: boolean;
77
75
  properties: {
@@ -101,8 +99,7 @@ export declare const VideoProps: {
101
99
  };
102
100
  };
103
101
  loop: {
104
- oneOf: ({
105
- optionName: string;
102
+ anyOf: ({
106
103
  type: string;
107
104
  additionalProperties: boolean;
108
105
  required: string[];
@@ -116,7 +113,6 @@ export declare const VideoProps: {
116
113
  };
117
114
  } | {
118
115
  type: string;
119
- optionName: string;
120
116
  })[];
121
117
  };
122
118
  type: {
@@ -126,13 +122,13 @@ export declare const VideoProps: {
126
122
  muted: {
127
123
  type: string;
128
124
  };
129
- autoplay: {
125
+ playing: {
130
126
  type: string;
131
127
  };
132
128
  elapsedTime: {
133
129
  type: string;
134
130
  };
135
- playButton: {
131
+ playIcon: {
136
132
  type: string;
137
133
  additionalProperties: boolean;
138
134
  properties: {
@@ -180,10 +176,6 @@ export declare const DataLensObjectProps: {
180
176
  };
181
177
  export declare const DataLensProps: {
182
178
  oneOf: ({
183
- type: string;
184
- optionName: string;
185
- } | {
186
- optionName: string;
187
179
  type: string;
188
180
  additionalProperties: boolean;
189
181
  required: string[];
@@ -196,6 +188,8 @@ export declare const DataLensProps: {
196
188
  enum: string[];
197
189
  };
198
190
  };
191
+ } | {
192
+ type: string;
199
193
  })[];
200
194
  };
201
195
  export declare const BackgroundProps: {
@@ -212,7 +206,6 @@ export declare const BackgroundProps: {
212
206
  } | {
213
207
  type: string;
214
208
  pattern: string;
215
- optionName: string;
216
209
  })[];
217
210
  };
218
211
  color: {
@@ -230,8 +223,7 @@ export declare const BackgroundProps: {
230
223
  };
231
224
  };
232
225
  loop: {
233
- oneOf: ({
234
- optionName: string;
226
+ anyOf: ({
235
227
  type: string;
236
228
  additionalProperties: boolean;
237
229
  required: string[];
@@ -245,7 +237,6 @@ export declare const BackgroundProps: {
245
237
  };
246
238
  } | {
247
239
  type: string;
248
- optionName: string;
249
240
  })[];
250
241
  };
251
242
  type: {
@@ -255,13 +246,13 @@ export declare const BackgroundProps: {
255
246
  muted: {
256
247
  type: string;
257
248
  };
258
- autoplay: {
249
+ playing: {
259
250
  type: string;
260
251
  };
261
252
  elapsedTime: {
262
253
  type: string;
263
254
  };
264
- playButton: {
255
+ playIcon: {
265
256
  type: string;
266
257
  additionalProperties: boolean;
267
258
  properties: {
@@ -331,8 +322,7 @@ export declare const LinkProps: {
331
322
  enum: string[];
332
323
  };
333
324
  analyticsEvents: {
334
- oneOf: ({
335
- optionName: string;
325
+ anyOf: ({
336
326
  type: string;
337
327
  additionalProperties: {
338
328
  type: string;
@@ -368,7 +358,6 @@ export declare const LinkProps: {
368
358
  type: string;
369
359
  };
370
360
  };
371
- items?: undefined;
372
361
  } | {
373
362
  type: string;
374
363
  items: {
@@ -408,7 +397,6 @@ export declare const LinkProps: {
408
397
  };
409
398
  };
410
399
  };
411
- optionName: string;
412
400
  })[];
413
401
  };
414
402
  type: {};
@@ -483,9 +471,8 @@ export declare const ButtonProps: {
483
471
  enum: string[];
484
472
  };
485
473
  img: {
486
- oneOf: ({
474
+ anyOf: ({
487
475
  type: string;
488
- optionName: string;
489
476
  additionalProperties?: undefined;
490
477
  required?: undefined;
491
478
  properties?: undefined;
@@ -506,16 +493,14 @@ export declare const ButtonProps: {
506
493
  contentType: string;
507
494
  };
508
495
  };
509
- optionName: string;
510
496
  })[];
511
497
  };
512
498
  /**
513
499
  * @deprecated Metrika will be deleted
514
500
  */
515
501
  metrikaGoals: {
516
- oneOf: ({
502
+ anyOf: ({
517
503
  type: string;
518
- optionName: string;
519
504
  items?: undefined;
520
505
  } | {
521
506
  type: string;
@@ -525,7 +510,6 @@ export declare const ButtonProps: {
525
510
  required?: undefined;
526
511
  properties?: undefined;
527
512
  };
528
- optionName: string;
529
513
  } | {
530
514
  type: string;
531
515
  items: {
@@ -541,7 +525,6 @@ export declare const ButtonProps: {
541
525
  };
542
526
  };
543
527
  };
544
- optionName: string;
545
528
  })[];
546
529
  };
547
530
  /**
@@ -604,8 +587,7 @@ export declare const ButtonProps: {
604
587
  };
605
588
  };
606
589
  analyticsEvents: {
607
- oneOf: ({
608
- optionName: string;
590
+ anyOf: ({
609
591
  type: string;
610
592
  additionalProperties: {
611
593
  type: string;
@@ -641,7 +623,6 @@ export declare const ButtonProps: {
641
623
  type: string;
642
624
  };
643
625
  };
644
- items?: undefined;
645
626
  } | {
646
627
  type: string;
647
628
  items: {
@@ -681,7 +662,6 @@ export declare const ButtonProps: {
681
662
  };
682
663
  };
683
664
  };
684
- optionName: string;
685
665
  })[];
686
666
  };
687
667
  target: {
@@ -699,15 +679,12 @@ export declare const MenuProps: {
699
679
  };
700
680
  };
701
681
  };
702
- export declare function withTheme<T extends object>(value: T): {
703
- oneOf: ((T & {
704
- optionName: string;
705
- }) | {
682
+ export declare function withTheme<T>(value: T): {
683
+ oneOf: (T | {
706
684
  type: string;
707
685
  additionalProperties: boolean;
708
686
  required: Theme[];
709
687
  properties: {};
710
- optionName: string;
711
688
  })[];
712
689
  };
713
690
  export declare const AnchorProps: {
@@ -796,9 +773,8 @@ export declare const ButtonBlock: {
796
773
  enum: string[];
797
774
  };
798
775
  img: {
799
- oneOf: ({
776
+ anyOf: ({
800
777
  type: string;
801
- optionName: string;
802
778
  additionalProperties?: undefined;
803
779
  required?: undefined;
804
780
  properties?: undefined;
@@ -819,16 +795,14 @@ export declare const ButtonBlock: {
819
795
  contentType: string;
820
796
  };
821
797
  };
822
- optionName: string;
823
798
  })[];
824
799
  };
825
800
  /**
826
801
  * @deprecated Metrika will be deleted
827
802
  */
828
803
  metrikaGoals: {
829
- oneOf: ({
804
+ anyOf: ({
830
805
  type: string;
831
- optionName: string;
832
806
  items?: undefined;
833
807
  } | {
834
808
  type: string;
@@ -838,7 +812,6 @@ export declare const ButtonBlock: {
838
812
  required?: undefined;
839
813
  properties?: undefined;
840
814
  };
841
- optionName: string;
842
815
  } | {
843
816
  type: string;
844
817
  items: {
@@ -854,7 +827,6 @@ export declare const ButtonBlock: {
854
827
  };
855
828
  };
856
829
  };
857
- optionName: string;
858
830
  })[];
859
831
  };
860
832
  /**
@@ -917,8 +889,7 @@ export declare const ButtonBlock: {
917
889
  };
918
890
  };
919
891
  analyticsEvents: {
920
- oneOf: ({
921
- optionName: string;
892
+ anyOf: ({
922
893
  type: string;
923
894
  additionalProperties: {
924
895
  type: string;
@@ -954,7 +925,6 @@ export declare const ButtonBlock: {
954
925
  type: string;
955
926
  };
956
927
  };
957
- items?: undefined;
958
928
  } | {
959
929
  type: string;
960
930
  items: {
@@ -994,7 +964,6 @@ export declare const ButtonBlock: {
994
964
  };
995
965
  };
996
966
  };
997
- optionName: string;
998
967
  })[];
999
968
  };
1000
969
  target: {
@@ -1021,8 +990,7 @@ export declare const MediaProps: {
1021
990
  type: string;
1022
991
  };
1023
992
  image: {
1024
- oneOf: ({
1025
- optionName: string;
993
+ anyOf: ({
1026
994
  oneOf: ({
1027
995
  type: string;
1028
996
  properties: {
@@ -1033,10 +1001,7 @@ export declare const MediaProps: {
1033
1001
  } | {
1034
1002
  type: string;
1035
1003
  pattern: string;
1036
- optionName: string;
1037
1004
  })[];
1038
- type?: undefined;
1039
- items?: undefined;
1040
1005
  } | {
1041
1006
  type: string;
1042
1007
  items: {
@@ -1050,10 +1015,8 @@ export declare const MediaProps: {
1050
1015
  } | {
1051
1016
  type: string;
1052
1017
  pattern: string;
1053
- optionName: string;
1054
1018
  })[];
1055
1019
  };
1056
- optionName: string;
1057
1020
  })[];
1058
1021
  };
1059
1022
  video: {
@@ -1068,8 +1031,7 @@ export declare const MediaProps: {
1068
1031
  };
1069
1032
  };
1070
1033
  loop: {
1071
- oneOf: ({
1072
- optionName: string;
1034
+ anyOf: ({
1073
1035
  type: string;
1074
1036
  additionalProperties: boolean;
1075
1037
  required: string[];
@@ -1083,7 +1045,6 @@ export declare const MediaProps: {
1083
1045
  };
1084
1046
  } | {
1085
1047
  type: string;
1086
- optionName: string;
1087
1048
  })[];
1088
1049
  };
1089
1050
  type: {
@@ -1093,13 +1054,13 @@ export declare const MediaProps: {
1093
1054
  muted: {
1094
1055
  type: string;
1095
1056
  };
1096
- autoplay: {
1057
+ playing: {
1097
1058
  type: string;
1098
1059
  };
1099
1060
  elapsedTime: {
1100
1061
  type: string;
1101
1062
  };
1102
- playButton: {
1063
+ playIcon: {
1103
1064
  type: string;
1104
1065
  additionalProperties: boolean;
1105
1066
  properties: {
@@ -1137,10 +1098,6 @@ export declare const MediaProps: {
1137
1098
  };
1138
1099
  dataLens: {
1139
1100
  oneOf: ({
1140
- type: string;
1141
- optionName: string;
1142
- } | {
1143
- optionName: string;
1144
1101
  type: string;
1145
1102
  additionalProperties: boolean;
1146
1103
  required: string[];
@@ -1153,6 +1110,8 @@ export declare const MediaProps: {
1153
1110
  enum: string[];
1154
1111
  };
1155
1112
  };
1113
+ } | {
1114
+ type: string;
1156
1115
  })[];
1157
1116
  };
1158
1117
  fullscreen: {
@@ -1346,10 +1305,6 @@ export declare const CardBase: {
1346
1305
  export declare const BlockHeaderProps: {
1347
1306
  title: {
1348
1307
  oneOf: ({
1349
- type: string;
1350
- optionName: string;
1351
- } | {
1352
- optionName: string;
1353
1308
  type: string;
1354
1309
  additionalProperties: boolean;
1355
1310
  required: string[];
@@ -1369,11 +1324,12 @@ export declare const BlockHeaderProps: {
1369
1324
  type: string;
1370
1325
  };
1371
1326
  };
1327
+ } | {
1328
+ type: string;
1372
1329
  })[];
1373
1330
  };
1374
1331
  description: {
1375
1332
  type: string;
1376
1333
  contentType: string;
1377
- inputType: string;
1378
1334
  };
1379
1335
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BlockHeaderProps = exports.CardBase = exports.MapProps = exports.YMapMarker = exports.YMapMarkerLabel = exports.MediaProps = exports.ButtonBlock = exports.TitleProps = exports.BlockBaseProps = exports.AnchorProps = exports.withTheme = exports.MenuProps = exports.ButtonProps = exports.authorItem = exports.FileLinkProps = exports.LinkProps = exports.BackgroundProps = exports.DataLensProps = exports.DataLensObjectProps = exports.JustifyProps = exports.ThemeProps = exports.VideoProps = exports.PlayButtonProps = exports.LoopProps = exports.ChildrenCardsProps = exports.ChildrenProps = exports.AnimatableProps = exports.sliderSizesObject = exports.containerSizesObject = exports.BaseProps = exports.contentThemes = exports.sizeNumber = exports.dividerEnum = exports.fileLinkTypes = exports.videoControlsTypes = exports.playIconThemes = exports.playIconTypes = exports.videoTypes = exports.contentTextWidth = exports.contentSizes = exports.sliderSizesArray = exports.containerSizesArray = exports.textSize = exports.mediaDirection = void 0;
3
+ exports.BlockHeaderProps = exports.CardBase = exports.MapProps = exports.YMapMarker = exports.YMapMarkerLabel = exports.MediaProps = exports.ButtonBlock = exports.TitleProps = exports.BlockBaseProps = exports.AnchorProps = exports.withTheme = exports.MenuProps = exports.ButtonProps = exports.authorItem = exports.FileLinkProps = exports.LinkProps = exports.BackgroundProps = exports.DataLensProps = exports.DataLensObjectProps = exports.JustifyProps = exports.ThemeProps = exports.VideoProps = exports.PlayIconProps = exports.LoopProps = exports.ChildrenCardsProps = exports.ChildrenProps = exports.AnimatableProps = exports.sliderSizesObject = exports.containerSizesObject = exports.BaseProps = exports.contentThemes = exports.sizeNumber = exports.dividerEnum = exports.fileLinkTypes = exports.videoControlsTypes = exports.playIconThemes = exports.playIconTypes = exports.videoTypes = exports.contentTextWidth = exports.contentSizes = exports.sliderSizesArray = exports.containerSizesArray = exports.textSize = exports.mediaDirection = void 0;
4
4
  const schema_1 = require("../../components/Image/schema");
5
5
  const models_1 = require("../../models");
6
6
  const event_1 = require("./event");
@@ -29,16 +29,14 @@ exports.containerSizesObject = {
29
29
  properties: exports.containerSizesArray.reduce((acc, size) => (Object.assign(Object.assign({}, acc), { [size]: exports.sizeNumber })), {}),
30
30
  };
31
31
  exports.sliderSizesObject = {
32
- oneOf: [
32
+ anyOf: [
33
33
  {
34
34
  type: 'object',
35
35
  additionalProperties: false,
36
36
  properties: exports.sliderSizesArray.reduce((acc, size) => (Object.assign(Object.assign({}, acc), { [size]: exports.sizeNumber })), {}),
37
- optionName: 'custom',
38
37
  },
39
38
  {
40
39
  type: 'number',
41
- optionName: 'constant',
42
40
  },
43
41
  ],
44
42
  };
@@ -68,7 +66,7 @@ exports.LoopProps = {
68
66
  },
69
67
  },
70
68
  };
71
- exports.PlayButtonProps = {
69
+ exports.PlayIconProps = {
72
70
  type: 'object',
73
71
  additionalProperties: false,
74
72
  properties: {
@@ -98,11 +96,10 @@ exports.VideoProps = {
98
96
  },
99
97
  },
100
98
  loop: {
101
- oneOf: [
102
- Object.assign(Object.assign({}, exports.LoopProps), { optionName: 'options' }),
99
+ anyOf: [
100
+ exports.LoopProps,
103
101
  {
104
102
  type: 'boolean',
105
- optionName: 'enabled',
106
103
  },
107
104
  ],
108
105
  },
@@ -113,13 +110,13 @@ exports.VideoProps = {
113
110
  muted: {
114
111
  type: 'boolean',
115
112
  },
116
- autoplay: {
113
+ playing: {
117
114
  type: 'boolean',
118
115
  },
119
116
  elapsedTime: {
120
117
  type: 'number',
121
118
  },
122
- playButton: exports.PlayButtonProps,
119
+ playIcon: exports.PlayIconProps,
123
120
  controls: {
124
121
  type: 'string',
125
122
  enum: exports.videoControlsTypes,
@@ -146,13 +143,7 @@ exports.DataLensObjectProps = {
146
143
  },
147
144
  };
148
145
  exports.DataLensProps = {
149
- oneOf: [
150
- {
151
- type: 'string',
152
- optionName: 'id',
153
- },
154
- Object.assign(Object.assign({}, exports.DataLensObjectProps), { optionName: 'options' }),
155
- ],
146
+ oneOf: [{ type: 'string' }, exports.DataLensObjectProps],
156
147
  };
157
148
  exports.BackgroundProps = {
158
149
  additionalProperties: false,
@@ -190,14 +181,7 @@ exports.LinkProps = {
190
181
  type: 'string',
191
182
  enum: ['_blank', '_parent', '_top', '_self'],
192
183
  }, analyticsEvents: {
193
- oneOf: [
194
- Object.assign(Object.assign({}, event_1.AnalyticsEventSchema), { optionName: 'single' }),
195
- {
196
- type: 'array',
197
- items: event_1.AnalyticsEventSchema,
198
- optionName: 'list',
199
- },
200
- ],
184
+ anyOf: [event_1.AnalyticsEventSchema, { type: 'array', items: event_1.AnalyticsEventSchema }],
201
185
  } }),
202
186
  };
203
187
  exports.FileLinkProps = {
@@ -306,10 +290,9 @@ exports.ButtonProps = {
306
290
  ],
307
291
  },
308
292
  img: {
309
- oneOf: [
293
+ anyOf: [
310
294
  {
311
295
  type: 'string',
312
- optionName: 'url',
313
296
  },
314
297
  {
315
298
  type: 'object',
@@ -328,7 +311,6 @@ exports.ButtonProps = {
328
311
  contentType: 'text',
329
312
  },
330
313
  },
331
- optionName: 'options',
332
314
  },
333
315
  ],
334
316
  },
@@ -336,9 +318,9 @@ exports.ButtonProps = {
336
318
  * @deprecated Metrika will be deleted
337
319
  */
338
320
  metrikaGoals: {
339
- oneOf: [
340
- { type: 'string', optionName: 'single' },
341
- { type: 'array', items: { type: 'string' }, optionName: 'list' },
321
+ anyOf: [
322
+ { type: 'string' },
323
+ { type: 'array', items: { type: 'string' } },
342
324
  {
343
325
  type: 'array',
344
326
  items: {
@@ -354,7 +336,6 @@ exports.ButtonProps = {
354
336
  },
355
337
  },
356
338
  },
357
- optionName: 'list-extended',
358
339
  },
359
340
  ],
360
341
  },
@@ -363,10 +344,7 @@ exports.ButtonProps = {
363
344
  */
364
345
  pixelEvents: pixel_1.pixelEvents,
365
346
  analyticsEvents: {
366
- oneOf: [
367
- Object.assign(Object.assign({}, event_1.AnalyticsEventSchema), { optionName: 'single' }),
368
- { type: 'array', items: event_1.AnalyticsEventSchema, optionName: 'list' },
369
- ],
347
+ anyOf: [event_1.AnalyticsEventSchema, { type: 'array', items: event_1.AnalyticsEventSchema }],
370
348
  },
371
349
  target: {
372
350
  type: 'string',
@@ -386,13 +364,12 @@ exports.MenuProps = {
386
364
  function withTheme(value) {
387
365
  return {
388
366
  oneOf: [
389
- Object.assign(Object.assign({}, value), { optionName: 'no theme' }),
367
+ value,
390
368
  {
391
369
  type: 'object',
392
370
  additionalProperties: false,
393
371
  required: [models_1.Theme.Light],
394
372
  properties: Object.values(models_1.Theme).reduce((result, themeName) => (Object.assign(Object.assign({}, result), { [themeName]: value })), {}),
395
- optionName: 'themes',
396
373
  },
397
374
  ],
398
375
  };
@@ -464,10 +441,7 @@ exports.MediaProps = {
464
441
  type: 'string',
465
442
  },
466
443
  image: {
467
- oneOf: [
468
- Object.assign(Object.assign({}, schema_1.ImageProps), { optionName: 'single' }),
469
- { type: 'array', items: schema_1.ImageProps, optionName: 'list' },
470
- ],
444
+ anyOf: [schema_1.ImageProps, { type: 'array', items: schema_1.ImageProps }],
471
445
  },
472
446
  video: exports.VideoProps,
473
447
  youtube: {
@@ -546,17 +520,10 @@ exports.CardBase = {
546
520
  };
547
521
  exports.BlockHeaderProps = {
548
522
  title: {
549
- oneOf: [
550
- {
551
- type: 'string',
552
- optionName: 'text',
553
- },
554
- Object.assign(Object.assign({}, exports.TitleProps), { optionName: 'options' }),
555
- ],
523
+ oneOf: [{ type: 'string' }, exports.TitleProps],
556
524
  },
557
525
  description: {
558
526
  type: 'string',
559
527
  contentType: 'yfm',
560
- inputType: 'textarea',
561
528
  },
562
529
  };
@@ -7,7 +7,7 @@ export declare const BackgroundCard: {
7
7
  type: string;
8
8
  };
9
9
  background: {
10
- oneOf: (({
10
+ oneOf: ({
11
11
  type: string;
12
12
  additionalProperties: boolean;
13
13
  required: string[];
@@ -24,14 +24,11 @@ export declare const BackgroundCard: {
24
24
  type: string;
25
25
  };
26
26
  };
27
- } & {
28
- optionName: string;
29
- }) | {
27
+ } | {
30
28
  type: string;
31
29
  additionalProperties: boolean;
32
30
  required: import("../..").Theme[];
33
31
  properties: {};
34
- optionName: string;
35
32
  })[];
36
33
  };
37
34
  backgroundColor: {
@@ -43,11 +40,6 @@ export declare const BackgroundCard: {
43
40
  };
44
41
  title: {
45
42
  oneOf: ({
46
- type: string;
47
- contentType: string;
48
- optionName: string;
49
- } | {
50
- optionName: string;
51
43
  type: string;
52
44
  additionalProperties: boolean;
53
45
  required: string[];
@@ -67,13 +59,14 @@ export declare const BackgroundCard: {
67
59
  type: string;
68
60
  };
69
61
  };
70
- contentType?: undefined;
62
+ } | {
63
+ type: string;
64
+ contentType: string;
71
65
  })[];
72
66
  };
73
67
  text: {
74
68
  type: string;
75
69
  contentType: string;
76
- inputType: string;
77
70
  };
78
71
  theme: {
79
72
  type: string;
@@ -17,7 +17,6 @@ export declare const BasicCard: {
17
17
  } | {
18
18
  type: string;
19
19
  pattern: string;
20
- optionName: string;
21
20
  })[];
22
21
  };
23
22
  target: {
@@ -26,11 +25,6 @@ export declare const BasicCard: {
26
25
  };
27
26
  title: {
28
27
  oneOf: ({
29
- type: string;
30
- contentType: string;
31
- optionName: string;
32
- } | {
33
- optionName: string;
34
28
  type: string;
35
29
  additionalProperties: boolean;
36
30
  required: string[];
@@ -50,13 +44,14 @@ export declare const BasicCard: {
50
44
  type: string;
51
45
  };
52
46
  };
53
- contentType?: undefined;
47
+ } | {
48
+ type: string;
49
+ contentType: string;
54
50
  })[];
55
51
  };
56
52
  text: {
57
53
  type: string;
58
54
  contentType: string;
59
- inputType: string;
60
55
  };
61
56
  additionalInfo: {
62
57
  type: string;