@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
@@ -7,8 +7,7 @@ export declare const Media: {
7
7
  type: string;
8
8
  };
9
9
  image: {
10
- oneOf: ({
11
- optionName: string;
10
+ anyOf: ({
12
11
  oneOf: ({
13
12
  type: string;
14
13
  properties: {
@@ -19,10 +18,7 @@ export declare const Media: {
19
18
  } | {
20
19
  type: string;
21
20
  pattern: string;
22
- optionName: string;
23
21
  })[];
24
- type?: undefined;
25
- items?: undefined;
26
22
  } | {
27
23
  type: string;
28
24
  items: {
@@ -36,10 +32,8 @@ export declare const Media: {
36
32
  } | {
37
33
  type: string;
38
34
  pattern: string;
39
- optionName: string;
40
35
  })[];
41
36
  };
42
- optionName: string;
43
37
  })[];
44
38
  };
45
39
  video: {
@@ -54,8 +48,7 @@ export declare const Media: {
54
48
  };
55
49
  };
56
50
  loop: {
57
- oneOf: ({
58
- optionName: string;
51
+ anyOf: ({
59
52
  type: string;
60
53
  additionalProperties: boolean;
61
54
  required: string[];
@@ -69,7 +62,6 @@ export declare const Media: {
69
62
  };
70
63
  } | {
71
64
  type: string;
72
- optionName: string;
73
65
  })[];
74
66
  };
75
67
  type: {
@@ -79,13 +71,13 @@ export declare const Media: {
79
71
  muted: {
80
72
  type: string;
81
73
  };
82
- autoplay: {
74
+ playing: {
83
75
  type: string;
84
76
  };
85
77
  elapsedTime: {
86
78
  type: string;
87
79
  };
88
- playButton: {
80
+ playIcon: {
89
81
  type: string;
90
82
  additionalProperties: boolean;
91
83
  properties: {
@@ -123,10 +115,6 @@ export declare const Media: {
123
115
  };
124
116
  dataLens: {
125
117
  oneOf: ({
126
- type: string;
127
- optionName: string;
128
- } | {
129
- optionName: string;
130
118
  type: string;
131
119
  additionalProperties: boolean;
132
120
  required: string[];
@@ -139,6 +127,8 @@ export declare const Media: {
139
127
  enum: string[];
140
128
  };
141
129
  };
130
+ } | {
131
+ type: string;
142
132
  })[];
143
133
  };
144
134
  fullscreen: {
@@ -269,9 +259,8 @@ export declare const MediaBlockBaseProps: {
269
259
  enum: string[];
270
260
  };
271
261
  img: {
272
- oneOf: ({
262
+ anyOf: ({
273
263
  type: string;
274
- optionName: string;
275
264
  additionalProperties?: undefined;
276
265
  required?: undefined;
277
266
  properties?: undefined;
@@ -292,13 +281,11 @@ export declare const MediaBlockBaseProps: {
292
281
  contentType: string;
293
282
  };
294
283
  };
295
- optionName: string;
296
284
  })[];
297
285
  };
298
286
  metrikaGoals: {
299
- oneOf: ({
287
+ anyOf: ({
300
288
  type: string;
301
- optionName: string;
302
289
  items?: undefined;
303
290
  } | {
304
291
  type: string;
@@ -308,7 +295,6 @@ export declare const MediaBlockBaseProps: {
308
295
  required?: undefined;
309
296
  properties?: undefined;
310
297
  };
311
- optionName: string;
312
298
  } | {
313
299
  type: string;
314
300
  items: {
@@ -324,7 +310,6 @@ export declare const MediaBlockBaseProps: {
324
310
  };
325
311
  };
326
312
  };
327
- optionName: string;
328
313
  })[];
329
314
  };
330
315
  pixelEvents: {
@@ -384,8 +369,7 @@ export declare const MediaBlockBaseProps: {
384
369
  };
385
370
  };
386
371
  analyticsEvents: {
387
- oneOf: ({
388
- optionName: string;
372
+ anyOf: ({
389
373
  type: string;
390
374
  additionalProperties: {
391
375
  type: string;
@@ -421,7 +405,6 @@ export declare const MediaBlockBaseProps: {
421
405
  type: string;
422
406
  };
423
407
  };
424
- items?: undefined;
425
408
  } | {
426
409
  type: string;
427
410
  items: {
@@ -461,7 +444,6 @@ export declare const MediaBlockBaseProps: {
461
444
  };
462
445
  };
463
446
  };
464
- optionName: string;
465
447
  })[];
466
448
  };
467
449
  target: {
@@ -485,11 +467,6 @@ export declare const MediaBlockBaseProps: {
485
467
  };
486
468
  title: {
487
469
  oneOf: ({
488
- type: string;
489
- contentType: string;
490
- optionName: string;
491
- } | {
492
- optionName: string;
493
470
  type: string;
494
471
  additionalProperties: boolean;
495
472
  required: string[];
@@ -509,7 +486,9 @@ export declare const MediaBlockBaseProps: {
509
486
  type: string;
510
487
  };
511
488
  };
512
- contentType?: undefined;
489
+ } | {
490
+ type: string;
491
+ contentType: string;
513
492
  })[];
514
493
  };
515
494
  size: {
@@ -578,17 +557,29 @@ export declare const MediaBlock: {
578
557
  required: string[];
579
558
  properties: {
580
559
  media: {
581
- oneOf: (({
582
- type: string;
583
- additionalProperties: boolean;
584
- required: never[];
585
- properties: {
586
- color: {
587
- type: string;
588
- };
589
- image: {
560
+ type: string;
561
+ additionalProperties: boolean;
562
+ required: never[];
563
+ properties: {
564
+ color: {
565
+ type: string;
566
+ };
567
+ image: {
568
+ anyOf: ({
590
569
  oneOf: ({
591
- optionName: string;
570
+ type: string;
571
+ properties: {
572
+ when: {
573
+ type: string;
574
+ };
575
+ };
576
+ } | {
577
+ type: string;
578
+ pattern: string;
579
+ })[];
580
+ } | {
581
+ type: string;
582
+ items: {
592
583
  oneOf: ({
593
584
  type: string;
594
585
  properties: {
@@ -599,133 +590,148 @@ export declare const MediaBlock: {
599
590
  } | {
600
591
  type: string;
601
592
  pattern: string;
602
- optionName: string;
603
593
  })[];
604
- type?: undefined;
605
- items?: undefined;
606
- } | {
594
+ };
595
+ })[];
596
+ };
597
+ video: {
598
+ type: string;
599
+ additionalProperties: boolean;
600
+ required: string[];
601
+ properties: {
602
+ src: {
607
603
  type: string;
608
604
  items: {
609
- oneOf: ({
610
- type: string;
611
- properties: {
612
- when: {
613
- type: string;
614
- };
605
+ type: string;
606
+ };
607
+ };
608
+ loop: {
609
+ anyOf: ({
610
+ type: string;
611
+ additionalProperties: boolean;
612
+ required: string[];
613
+ properties: {
614
+ start: {
615
+ type: string;
615
616
  };
616
- } | {
617
+ end: {
618
+ type: string;
619
+ };
620
+ };
621
+ } | {
622
+ type: string;
623
+ })[];
624
+ };
625
+ type: {
626
+ type: string;
627
+ enum: string[];
628
+ };
629
+ muted: {
630
+ type: string;
631
+ };
632
+ playing: {
633
+ type: string;
634
+ };
635
+ elapsedTime: {
636
+ type: string;
637
+ };
638
+ playIcon: {
639
+ type: string;
640
+ additionalProperties: boolean;
641
+ properties: {
642
+ type: {
643
+ type: string;
644
+ enum: string[];
645
+ };
646
+ theme: {
617
647
  type: string;
618
- pattern: string;
619
- optionName: string;
620
- })[];
648
+ enum: string[];
649
+ };
650
+ text: {
651
+ type: string;
652
+ contentType: string;
653
+ };
621
654
  };
622
- optionName: string;
623
- })[];
655
+ };
656
+ controls: {
657
+ type: string;
658
+ enum: string[];
659
+ };
624
660
  };
625
- video: {
661
+ };
662
+ youtube: {
663
+ type: string;
664
+ };
665
+ parallax: {
666
+ type: string;
667
+ };
668
+ height: {
669
+ type: string;
670
+ };
671
+ previewImg: {
672
+ type: string;
673
+ };
674
+ dataLens: {
675
+ oneOf: ({
626
676
  type: string;
627
677
  additionalProperties: boolean;
628
678
  required: string[];
629
679
  properties: {
630
- src: {
680
+ id: {
631
681
  type: string;
632
- items: {
633
- type: string;
634
- };
635
682
  };
636
- loop: {
637
- oneOf: ({
638
- optionName: string;
639
- type: string;
640
- additionalProperties: boolean;
641
- required: string[];
642
- properties: {
643
- start: {
644
- type: string;
645
- };
646
- end: {
647
- type: string;
648
- };
649
- };
650
- } | {
651
- type: string;
652
- optionName: string;
653
- })[];
654
- };
655
- type: {
683
+ theme: {
656
684
  type: string;
657
685
  enum: string[];
658
686
  };
659
- muted: {
660
- type: string;
661
- };
662
- autoplay: {
687
+ };
688
+ } | {
689
+ type: string;
690
+ })[];
691
+ };
692
+ fullscreen: {
693
+ type: string;
694
+ };
695
+ analyticsEvents: {
696
+ anyOf: ({
697
+ type: string;
698
+ additionalProperties: {
699
+ type: string;
700
+ };
701
+ required: string[];
702
+ properties: {
703
+ name: {
663
704
  type: string;
664
705
  };
665
- elapsedTime: {
706
+ type: {
666
707
  type: string;
667
708
  };
668
- playButton: {
709
+ counters: {
669
710
  type: string;
670
711
  additionalProperties: boolean;
712
+ required: never[];
671
713
  properties: {
672
- type: {
673
- type: string;
674
- enum: string[];
675
- };
676
- theme: {
714
+ include: {
677
715
  type: string;
678
- enum: string[];
716
+ items: {
717
+ type: string;
718
+ };
679
719
  };
680
- text: {
720
+ exclude: {
681
721
  type: string;
682
- contentType: string;
722
+ items: {
723
+ type: string;
724
+ };
683
725
  };
684
726
  };
685
727
  };
686
- controls: {
728
+ context: {
687
729
  type: string;
688
- enum: string[];
689
730
  };
690
731
  };
691
- };
692
- youtube: {
693
- type: string;
694
- };
695
- parallax: {
696
- type: string;
697
- };
698
- height: {
699
- type: string;
700
- };
701
- previewImg: {
702
- type: string;
703
- };
704
- dataLens: {
705
- oneOf: ({
706
- type: string;
707
- optionName: string;
708
- } | {
709
- optionName: string;
710
- type: string;
711
- additionalProperties: boolean;
712
- required: string[];
713
- properties: {
714
- id: {
715
- type: string;
716
- };
717
- theme: {
718
- type: string;
719
- enum: string[];
720
- };
721
- };
722
- })[];
723
- };
724
- fullscreen: {
732
+ } | {
725
733
  type: string;
726
- };
727
- analyticsEvents: {
728
- anyOf: ({
734
+ items: {
729
735
  type: string;
730
736
  additionalProperties: {
731
737
  type: string;
@@ -761,57 +767,10 @@ export declare const MediaBlock: {
761
767
  type: string;
762
768
  };
763
769
  };
764
- } | {
765
- type: string;
766
- items: {
767
- type: string;
768
- additionalProperties: {
769
- type: string;
770
- };
771
- required: string[];
772
- properties: {
773
- name: {
774
- type: string;
775
- };
776
- type: {
777
- type: string;
778
- };
779
- counters: {
780
- type: string;
781
- additionalProperties: boolean;
782
- required: never[];
783
- properties: {
784
- include: {
785
- type: string;
786
- items: {
787
- type: string;
788
- };
789
- };
790
- exclude: {
791
- type: string;
792
- items: {
793
- type: string;
794
- };
795
- };
796
- };
797
- };
798
- context: {
799
- type: string;
800
- };
801
- };
802
- };
803
- })[];
804
- };
770
+ };
771
+ })[];
805
772
  };
806
- } & {
807
- optionName: string;
808
- }) | {
809
- type: string;
810
- additionalProperties: boolean;
811
- required: import("../..").Theme[];
812
- properties: {};
813
- optionName: string;
814
- })[];
773
+ };
815
774
  };
816
775
  description: {
817
776
  type: string;
@@ -857,9 +816,8 @@ export declare const MediaBlock: {
857
816
  enum: string[];
858
817
  };
859
818
  img: {
860
- oneOf: ({
819
+ anyOf: ({
861
820
  type: string;
862
- optionName: string;
863
821
  additionalProperties?: undefined;
864
822
  required?: undefined;
865
823
  properties?: undefined;
@@ -880,13 +838,11 @@ export declare const MediaBlock: {
880
838
  contentType: string;
881
839
  };
882
840
  };
883
- optionName: string;
884
841
  })[];
885
842
  };
886
843
  metrikaGoals: {
887
- oneOf: ({
844
+ anyOf: ({
888
845
  type: string;
889
- optionName: string;
890
846
  items?: undefined;
891
847
  } | {
892
848
  type: string;
@@ -896,7 +852,6 @@ export declare const MediaBlock: {
896
852
  required?: undefined;
897
853
  properties?: undefined;
898
854
  };
899
- optionName: string;
900
855
  } | {
901
856
  type: string;
902
857
  items: {
@@ -912,7 +867,6 @@ export declare const MediaBlock: {
912
867
  };
913
868
  };
914
869
  };
915
- optionName: string;
916
870
  })[];
917
871
  };
918
872
  pixelEvents: {
@@ -972,8 +926,7 @@ export declare const MediaBlock: {
972
926
  };
973
927
  };
974
928
  analyticsEvents: {
975
- oneOf: ({
976
- optionName: string;
929
+ anyOf: ({
977
930
  type: string;
978
931
  additionalProperties: {
979
932
  type: string;
@@ -1009,7 +962,6 @@ export declare const MediaBlock: {
1009
962
  type: string;
1010
963
  };
1011
964
  };
1012
- items?: undefined;
1013
965
  } | {
1014
966
  type: string;
1015
967
  items: {
@@ -1049,7 +1001,6 @@ export declare const MediaBlock: {
1049
1001
  };
1050
1002
  };
1051
1003
  };
1052
- optionName: string;
1053
1004
  })[];
1054
1005
  };
1055
1006
  target: {
@@ -1073,11 +1024,6 @@ export declare const MediaBlock: {
1073
1024
  };
1074
1025
  title: {
1075
1026
  oneOf: ({
1076
- type: string;
1077
- contentType: string;
1078
- optionName: string;
1079
- } | {
1080
- optionName: string;
1081
1027
  type: string;
1082
1028
  additionalProperties: boolean;
1083
1029
  required: string[];
@@ -1097,7 +1043,9 @@ export declare const MediaBlock: {
1097
1043
  type: string;
1098
1044
  };
1099
1045
  };
1100
- contentType?: undefined;
1046
+ } | {
1047
+ type: string;
1048
+ contentType: string;
1101
1049
  })[];
1102
1050
  };
1103
1051
  size: {
@@ -1,5 +1,5 @@
1
1
  import { omit } from 'lodash';
2
- import { AnimatableProps, BlockBaseProps, ButtonBlock, MediaProps, mediaDirection, withTheme, } from '../../schema/validators/common';
2
+ import { AnimatableProps, BlockBaseProps, ButtonBlock, MediaProps, mediaDirection, } from '../../schema/validators/common';
3
3
  import { ContentBase } from '../../sub-blocks/Content/schema';
4
4
  export const Media = {
5
5
  type: 'object',
@@ -28,6 +28,6 @@ export const MediaBlock = {
28
28
  'media-block': {
29
29
  additionalProperties: false,
30
30
  required: ['title', 'media'],
31
- properties: Object.assign(Object.assign({}, MediaBlockBaseProps), { media: withTheme(Media) }),
31
+ properties: Object.assign(Object.assign({}, MediaBlockBaseProps), { media: Media }),
32
32
  },
33
33
  };