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