@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
@@ -0,0 +1,908 @@
1
+ import { BlockType } from '../models';
2
+ export declare const blockSchemas: Record<BlockType, object>;
3
+ export declare const cardSchemas: {
4
+ 'basic-card': {
5
+ additionalProperties: boolean;
6
+ required: never[];
7
+ properties: {
8
+ url: {
9
+ type: string;
10
+ };
11
+ icon: {
12
+ oneOf: ({
13
+ type: string;
14
+ properties: {
15
+ when: {
16
+ type: string;
17
+ };
18
+ };
19
+ } | {
20
+ type: string;
21
+ pattern: string;
22
+ optionName: string;
23
+ })[];
24
+ };
25
+ target: {
26
+ type: string;
27
+ enum: string[];
28
+ };
29
+ title: {
30
+ oneOf: ({
31
+ type: string;
32
+ contentType: string;
33
+ optionName: string;
34
+ } | {
35
+ optionName: string;
36
+ type: string;
37
+ additionalProperties: boolean;
38
+ required: string[];
39
+ properties: {
40
+ text: {
41
+ type: string;
42
+ contentType: string;
43
+ };
44
+ textSize: {
45
+ type: string;
46
+ enum: string[];
47
+ };
48
+ url: {
49
+ type: string;
50
+ };
51
+ resetMargin: {
52
+ type: string;
53
+ };
54
+ };
55
+ contentType?: undefined;
56
+ })[];
57
+ };
58
+ text: {
59
+ type: string;
60
+ contentType: string;
61
+ inputType: string;
62
+ };
63
+ additionalInfo: {
64
+ type: string;
65
+ contentType: string;
66
+ };
67
+ links: {
68
+ type: string;
69
+ items: {
70
+ type: string;
71
+ properties: {
72
+ when: {
73
+ type: string;
74
+ };
75
+ };
76
+ };
77
+ };
78
+ buttons: {
79
+ type: string;
80
+ items: {
81
+ type: string;
82
+ properties: {
83
+ when: {
84
+ type: string;
85
+ };
86
+ };
87
+ };
88
+ };
89
+ border: {
90
+ type: string;
91
+ enum: string[];
92
+ };
93
+ type: {};
94
+ when: {};
95
+ };
96
+ };
97
+ quote: {
98
+ additionalProperties: boolean;
99
+ required: string[];
100
+ properties: {
101
+ text: {
102
+ type: string;
103
+ contentType: string;
104
+ };
105
+ image: {
106
+ oneOf: (({
107
+ oneOf: ({
108
+ type: string;
109
+ properties: {
110
+ when: {
111
+ type: string;
112
+ };
113
+ };
114
+ } | {
115
+ type: string;
116
+ pattern: string;
117
+ optionName: string;
118
+ })[];
119
+ } & {
120
+ optionName: string;
121
+ }) | {
122
+ type: string;
123
+ additionalProperties: boolean;
124
+ required: import("../models").Theme[];
125
+ properties: {};
126
+ optionName: string;
127
+ })[];
128
+ };
129
+ logo: {
130
+ type: string;
131
+ pattern: string;
132
+ };
133
+ color: {
134
+ type: string;
135
+ };
136
+ url: {
137
+ type: string;
138
+ pattern: string;
139
+ };
140
+ buttonText: {
141
+ type: string;
142
+ };
143
+ theme: {
144
+ type: string;
145
+ enum: string[];
146
+ };
147
+ author: {
148
+ type: string;
149
+ required: string[];
150
+ properties: {
151
+ firstName: {
152
+ type: string;
153
+ contentType: string;
154
+ };
155
+ secondName: {
156
+ type: string;
157
+ contentType: string;
158
+ };
159
+ avatar: {
160
+ type: string;
161
+ pattern: string;
162
+ };
163
+ description: {
164
+ type: string;
165
+ contentType: string;
166
+ };
167
+ };
168
+ };
169
+ type: {};
170
+ when: {};
171
+ };
172
+ };
173
+ 'background-card': {
174
+ additionalProperties: boolean;
175
+ required: string[];
176
+ properties: {
177
+ url: {
178
+ type: string;
179
+ };
180
+ background: {
181
+ oneOf: (({
182
+ type: string;
183
+ additionalProperties: boolean;
184
+ required: string[];
185
+ properties: {
186
+ src: {
187
+ type: string;
188
+ pattern: string;
189
+ };
190
+ alt: {
191
+ type: string;
192
+ contentType: string;
193
+ };
194
+ disableCompress: {
195
+ type: string;
196
+ };
197
+ };
198
+ } & {
199
+ optionName: string;
200
+ }) | {
201
+ type: string;
202
+ additionalProperties: boolean;
203
+ required: import("../models").Theme[];
204
+ properties: {};
205
+ optionName: string;
206
+ })[];
207
+ };
208
+ backgroundColor: {
209
+ type: string;
210
+ };
211
+ paddingBottom: {
212
+ type: string;
213
+ enum: string[];
214
+ };
215
+ title: {
216
+ oneOf: ({
217
+ type: string;
218
+ contentType: string;
219
+ optionName: string;
220
+ } | {
221
+ optionName: string;
222
+ type: string;
223
+ additionalProperties: boolean;
224
+ required: string[];
225
+ properties: {
226
+ text: {
227
+ type: string;
228
+ contentType: string;
229
+ };
230
+ textSize: {
231
+ type: string;
232
+ enum: string[];
233
+ };
234
+ url: {
235
+ type: string;
236
+ };
237
+ resetMargin: {
238
+ type: string;
239
+ };
240
+ };
241
+ contentType?: undefined;
242
+ })[];
243
+ };
244
+ text: {
245
+ type: string;
246
+ contentType: string;
247
+ inputType: string;
248
+ };
249
+ theme: {
250
+ type: string;
251
+ enum: string[];
252
+ };
253
+ additionalInfo: {
254
+ type: string;
255
+ contentType: string;
256
+ };
257
+ links: {
258
+ type: string;
259
+ items: {
260
+ type: string;
261
+ properties: {
262
+ when: {
263
+ type: string;
264
+ };
265
+ };
266
+ };
267
+ };
268
+ buttons: {
269
+ type: string;
270
+ items: {
271
+ type: string;
272
+ properties: {
273
+ when: {
274
+ type: string;
275
+ };
276
+ };
277
+ };
278
+ };
279
+ border: {
280
+ type: string;
281
+ enum: string[];
282
+ };
283
+ type: {};
284
+ when: {};
285
+ };
286
+ };
287
+ 'price-detailed': {
288
+ additionalProperties: boolean;
289
+ required: string[];
290
+ properties: {
291
+ items: {
292
+ type: string;
293
+ items: {
294
+ type: string;
295
+ properties: {
296
+ when: {
297
+ type: string;
298
+ };
299
+ };
300
+ };
301
+ };
302
+ description: {
303
+ additionalProperties: boolean;
304
+ required: never[];
305
+ properties: {
306
+ titleSize: {
307
+ type: string;
308
+ enum: string[];
309
+ };
310
+ descriptionSize: {
311
+ type: string;
312
+ enum: string[];
313
+ };
314
+ titleColor: {
315
+ type: string;
316
+ enum: string[];
317
+ };
318
+ };
319
+ };
320
+ details: {
321
+ additionalProperties: boolean;
322
+ required: never[];
323
+ properties: {
324
+ titleSize: {
325
+ type: string;
326
+ enum: string[];
327
+ };
328
+ descriptionSize: {
329
+ type: string;
330
+ enum: string[];
331
+ };
332
+ };
333
+ };
334
+ priceType: {
335
+ type: string;
336
+ enum: string[];
337
+ default: string;
338
+ };
339
+ numberGroupItems: {
340
+ type: string;
341
+ enum: number[];
342
+ };
343
+ isCombined: {
344
+ type: string;
345
+ };
346
+ useMixedView: {
347
+ type: string;
348
+ };
349
+ foldable: {
350
+ additionalProperties: boolean;
351
+ required: string[];
352
+ properties: {
353
+ title: {
354
+ type: string;
355
+ contentType: string;
356
+ };
357
+ size: {
358
+ type: string;
359
+ enum: string[];
360
+ };
361
+ titleColor: {
362
+ type: string;
363
+ enum: string[];
364
+ };
365
+ };
366
+ };
367
+ labelsDefaultText: {
368
+ additionalProperties: boolean;
369
+ required: never[];
370
+ properties: {};
371
+ };
372
+ animated: {
373
+ type: string;
374
+ };
375
+ type: {};
376
+ when: {};
377
+ };
378
+ };
379
+ 'banner-card': {
380
+ additionalProperties: boolean;
381
+ required: string[];
382
+ properties: {
383
+ title: {
384
+ type: string;
385
+ contentType: string;
386
+ };
387
+ subtitle: {
388
+ type: string;
389
+ contentType: string;
390
+ };
391
+ image: {
392
+ oneOf: (({
393
+ type: string;
394
+ } & {
395
+ optionName: string;
396
+ }) | {
397
+ type: string;
398
+ additionalProperties: boolean;
399
+ required: import("../models").Theme[];
400
+ properties: {};
401
+ optionName: string;
402
+ })[];
403
+ };
404
+ disableCompress: {
405
+ type: string;
406
+ };
407
+ color: {
408
+ oneOf: (({
409
+ type: string;
410
+ } & {
411
+ optionName: string;
412
+ }) | {
413
+ type: string;
414
+ additionalProperties: boolean;
415
+ required: import("../models").Theme[];
416
+ properties: {};
417
+ optionName: string;
418
+ })[];
419
+ };
420
+ theme: {
421
+ type: string;
422
+ enum: string[];
423
+ };
424
+ width: {
425
+ type: string;
426
+ enum: string[];
427
+ };
428
+ button: {
429
+ type: string;
430
+ additionalProperties: boolean;
431
+ properties: {
432
+ text: {
433
+ type: string;
434
+ contentType: string;
435
+ };
436
+ url: {
437
+ type: string;
438
+ };
439
+ primary: {
440
+ type: string;
441
+ };
442
+ size: {
443
+ type: string;
444
+ enum: string[];
445
+ };
446
+ theme: {
447
+ type: string;
448
+ enum: string[];
449
+ };
450
+ img: {
451
+ oneOf: ({
452
+ type: string;
453
+ optionName: string;
454
+ additionalProperties?: undefined;
455
+ required?: undefined;
456
+ properties?: undefined;
457
+ } | {
458
+ type: string;
459
+ additionalProperties: boolean;
460
+ required: string[];
461
+ properties: {
462
+ data: {
463
+ type: string;
464
+ };
465
+ position: {
466
+ type: string;
467
+ enum: string[];
468
+ };
469
+ alt: {
470
+ type: string;
471
+ contentType: string;
472
+ };
473
+ };
474
+ optionName: string;
475
+ })[];
476
+ };
477
+ metrikaGoals: {
478
+ oneOf: ({
479
+ type: string;
480
+ optionName: string;
481
+ items?: undefined;
482
+ } | {
483
+ type: string;
484
+ items: {
485
+ type: string;
486
+ additionalProperties?: undefined;
487
+ required?: undefined;
488
+ properties?: undefined;
489
+ };
490
+ optionName: string;
491
+ } | {
492
+ type: string;
493
+ items: {
494
+ type: string;
495
+ additionalProperties: boolean;
496
+ required: string[];
497
+ properties: {
498
+ name: {
499
+ type: string;
500
+ };
501
+ isCrossSite: {
502
+ type: string;
503
+ };
504
+ };
505
+ };
506
+ optionName: string;
507
+ })[];
508
+ };
509
+ pixelEvents: {
510
+ type: string;
511
+ items: {
512
+ type: string;
513
+ required: string[];
514
+ additionalProperties: boolean;
515
+ properties: {
516
+ name: {
517
+ type: string;
518
+ enum: import("../models").PixelEventType[];
519
+ };
520
+ data: {};
521
+ };
522
+ select: {
523
+ $data: string;
524
+ };
525
+ selectCases: {
526
+ SubmitApplication: {
527
+ additionalProperties: boolean;
528
+ properties: {
529
+ name: {};
530
+ };
531
+ };
532
+ Contact: {
533
+ additionalProperties: boolean;
534
+ properties: {
535
+ name: {};
536
+ };
537
+ };
538
+ Lead: {
539
+ additionalProperties: boolean;
540
+ properties: {
541
+ name: {};
542
+ data: {
543
+ type: string;
544
+ additionalProperties: boolean;
545
+ properties: {
546
+ content_category: {
547
+ type: string;
548
+ };
549
+ content_name: {
550
+ type: string;
551
+ };
552
+ currency: {
553
+ type: string;
554
+ };
555
+ value: {
556
+ type: string;
557
+ };
558
+ };
559
+ };
560
+ };
561
+ };
562
+ };
563
+ };
564
+ };
565
+ analyticsEvents: {
566
+ oneOf: ({
567
+ optionName: string;
568
+ type: string;
569
+ additionalProperties: {
570
+ type: string;
571
+ };
572
+ required: string[];
573
+ properties: {
574
+ name: {
575
+ type: string;
576
+ };
577
+ type: {
578
+ type: string;
579
+ };
580
+ counters: {
581
+ type: string;
582
+ additionalProperties: boolean;
583
+ required: never[];
584
+ properties: {
585
+ include: {
586
+ type: string;
587
+ items: {
588
+ type: string;
589
+ };
590
+ };
591
+ exclude: {
592
+ type: string;
593
+ items: {
594
+ type: string;
595
+ };
596
+ };
597
+ };
598
+ };
599
+ context: {
600
+ type: string;
601
+ };
602
+ };
603
+ items?: undefined;
604
+ } | {
605
+ type: string;
606
+ items: {
607
+ type: string;
608
+ additionalProperties: {
609
+ type: string;
610
+ };
611
+ required: string[];
612
+ properties: {
613
+ name: {
614
+ type: string;
615
+ };
616
+ type: {
617
+ type: string;
618
+ };
619
+ counters: {
620
+ type: string;
621
+ additionalProperties: boolean;
622
+ required: never[];
623
+ properties: {
624
+ include: {
625
+ type: string;
626
+ items: {
627
+ type: string;
628
+ };
629
+ };
630
+ exclude: {
631
+ type: string;
632
+ items: {
633
+ type: string;
634
+ };
635
+ };
636
+ };
637
+ };
638
+ context: {
639
+ type: string;
640
+ };
641
+ };
642
+ };
643
+ optionName: string;
644
+ })[];
645
+ };
646
+ target: {
647
+ type: string;
648
+ enum: string[];
649
+ };
650
+ };
651
+ if: {
652
+ properties: {
653
+ theme: {
654
+ enum: string[];
655
+ };
656
+ };
657
+ };
658
+ then: {
659
+ required: string[];
660
+ };
661
+ else: {
662
+ required: string[];
663
+ };
664
+ };
665
+ animated: {
666
+ type: string;
667
+ };
668
+ type: {};
669
+ when: {};
670
+ };
671
+ };
672
+ 'media-card': {
673
+ additionalProperties: boolean;
674
+ required: never[];
675
+ properties: {
676
+ animated: {
677
+ type: string;
678
+ };
679
+ color: {
680
+ type: string;
681
+ };
682
+ image: {
683
+ oneOf: ({
684
+ optionName: string;
685
+ oneOf: ({
686
+ type: string;
687
+ properties: {
688
+ when: {
689
+ type: string;
690
+ };
691
+ };
692
+ } | {
693
+ type: string;
694
+ pattern: string;
695
+ optionName: string;
696
+ })[];
697
+ type?: undefined;
698
+ items?: undefined;
699
+ } | {
700
+ type: string;
701
+ items: {
702
+ oneOf: ({
703
+ type: string;
704
+ properties: {
705
+ when: {
706
+ type: string;
707
+ };
708
+ };
709
+ } | {
710
+ type: string;
711
+ pattern: string;
712
+ optionName: string;
713
+ })[];
714
+ };
715
+ optionName: string;
716
+ })[];
717
+ };
718
+ video: {
719
+ type: string;
720
+ additionalProperties: boolean;
721
+ required: string[];
722
+ properties: {
723
+ src: {
724
+ type: string;
725
+ items: {
726
+ type: string;
727
+ };
728
+ };
729
+ loop: {
730
+ oneOf: ({
731
+ optionName: string;
732
+ type: string;
733
+ additionalProperties: boolean;
734
+ required: string[];
735
+ properties: {
736
+ start: {
737
+ type: string;
738
+ };
739
+ end: {
740
+ type: string;
741
+ };
742
+ };
743
+ } | {
744
+ type: string;
745
+ optionName: string;
746
+ })[];
747
+ };
748
+ type: {
749
+ type: string;
750
+ enum: string[];
751
+ };
752
+ muted: {
753
+ type: string;
754
+ };
755
+ autoplay: {
756
+ type: string;
757
+ };
758
+ elapsedTime: {
759
+ type: string;
760
+ };
761
+ playButton: {
762
+ type: string;
763
+ additionalProperties: boolean;
764
+ properties: {
765
+ type: {
766
+ type: string;
767
+ enum: string[];
768
+ };
769
+ theme: {
770
+ type: string;
771
+ enum: string[];
772
+ };
773
+ text: {
774
+ type: string;
775
+ contentType: string;
776
+ };
777
+ };
778
+ };
779
+ controls: {
780
+ type: string;
781
+ enum: string[];
782
+ };
783
+ };
784
+ };
785
+ youtube: {
786
+ type: string;
787
+ };
788
+ parallax: {
789
+ type: string;
790
+ };
791
+ height: {
792
+ type: string;
793
+ };
794
+ previewImg: {
795
+ type: string;
796
+ };
797
+ dataLens: {
798
+ oneOf: ({
799
+ type: string;
800
+ optionName: string;
801
+ } | {
802
+ optionName: string;
803
+ type: string;
804
+ additionalProperties: boolean;
805
+ required: string[];
806
+ properties: {
807
+ id: {
808
+ type: string;
809
+ };
810
+ theme: {
811
+ type: string;
812
+ enum: string[];
813
+ };
814
+ };
815
+ })[];
816
+ };
817
+ fullscreen: {
818
+ type: string;
819
+ };
820
+ analyticsEvents: {
821
+ anyOf: ({
822
+ type: string;
823
+ additionalProperties: {
824
+ type: string;
825
+ };
826
+ required: string[];
827
+ properties: {
828
+ name: {
829
+ type: string;
830
+ };
831
+ type: {
832
+ type: string;
833
+ };
834
+ counters: {
835
+ type: string;
836
+ additionalProperties: boolean;
837
+ required: never[];
838
+ properties: {
839
+ include: {
840
+ type: string;
841
+ items: {
842
+ type: string;
843
+ };
844
+ };
845
+ exclude: {
846
+ type: string;
847
+ items: {
848
+ type: string;
849
+ };
850
+ };
851
+ };
852
+ };
853
+ context: {
854
+ type: string;
855
+ };
856
+ };
857
+ } | {
858
+ type: string;
859
+ items: {
860
+ type: string;
861
+ additionalProperties: {
862
+ type: string;
863
+ };
864
+ required: string[];
865
+ properties: {
866
+ name: {
867
+ type: string;
868
+ };
869
+ type: {
870
+ type: string;
871
+ };
872
+ counters: {
873
+ type: string;
874
+ additionalProperties: boolean;
875
+ required: never[];
876
+ properties: {
877
+ include: {
878
+ type: string;
879
+ items: {
880
+ type: string;
881
+ };
882
+ };
883
+ exclude: {
884
+ type: string;
885
+ items: {
886
+ type: string;
887
+ };
888
+ };
889
+ };
890
+ };
891
+ context: {
892
+ type: string;
893
+ };
894
+ };
895
+ };
896
+ })[];
897
+ };
898
+ border: {
899
+ type: string;
900
+ enum: string[];
901
+ };
902
+ type: {};
903
+ when: {};
904
+ };
905
+ };
906
+ };
907
+ export declare const constructorBlockSchemaNames: string[];
908
+ export declare const constructorCardSchemaNames: string[];