@gravity-ui/page-constructor 5.14.3 → 5.14.4-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 (390) hide show
  1. package/build/cjs/blocks/Banner/Banner.js +3 -1
  2. package/build/cjs/blocks/Banner/index.d.ts +3 -0
  3. package/build/cjs/blocks/Banner/index.js +22 -0
  4. package/build/cjs/blocks/CardLayout/CardLayout.css +1 -0
  5. package/build/cjs/blocks/CardLayout/CardLayout.js +11 -6
  6. package/build/cjs/blocks/CardLayout/index.d.ts +5 -0
  7. package/build/cjs/blocks/CardLayout/index.js +166 -0
  8. package/build/cjs/blocks/Companies/Companies.js +6 -4
  9. package/build/cjs/blocks/Companies/index.d.ts +3 -0
  10. package/build/cjs/blocks/Companies/index.js +18 -0
  11. package/build/cjs/blocks/ContentLayout/ContentLayout.js +6 -5
  12. package/build/cjs/blocks/ContentLayout/index.d.ts +11 -0
  13. package/build/cjs/blocks/ContentLayout/index.js +17 -0
  14. package/build/cjs/blocks/ContentLayout/schema.d.ts +1 -0
  15. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +22 -20
  16. package/build/cjs/blocks/ExtendedFeatures/index.d.ts +12 -0
  17. package/build/cjs/blocks/ExtendedFeatures/index.js +18 -0
  18. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +1 -0
  19. package/build/cjs/blocks/ExtendedFeatures/schema.js +1 -0
  20. package/build/cjs/blocks/FilterBlock/FilterBlock.js +11 -10
  21. package/build/cjs/blocks/FilterBlock/index.d.ts +11 -0
  22. package/build/cjs/blocks/FilterBlock/index.js +17 -0
  23. package/build/cjs/blocks/Form/index.d.ts +12 -0
  24. package/build/cjs/blocks/Form/index.js +18 -0
  25. package/build/cjs/blocks/Header/dynamic-form.d.ts +2 -0
  26. package/build/cjs/blocks/Header/dynamic-form.js +730 -0
  27. package/build/cjs/blocks/Header/index.d.ts +8 -0
  28. package/build/cjs/blocks/Header/index.js +14 -0
  29. package/build/cjs/blocks/HeaderSlider/HeaderSlider.js +3 -2
  30. package/build/cjs/blocks/HeaderSlider/index.d.ts +31 -0
  31. package/build/cjs/blocks/HeaderSlider/index.js +38 -0
  32. package/build/cjs/blocks/Icons/Icons.js +9 -6
  33. package/build/cjs/blocks/Icons/index.d.ts +13 -0
  34. package/build/cjs/blocks/Icons/index.js +19 -0
  35. package/build/cjs/blocks/Info/index.d.ts +21 -0
  36. package/build/cjs/blocks/Info/index.js +41 -0
  37. package/build/cjs/blocks/Map/index.d.ts +11 -0
  38. package/build/cjs/blocks/Map/index.js +17 -0
  39. package/build/cjs/blocks/Media/index.d.ts +14 -0
  40. package/build/cjs/blocks/Media/index.js +20 -0
  41. package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +19 -16
  42. package/build/cjs/blocks/PromoFeaturesBlock/index.d.ts +12 -0
  43. package/build/cjs/blocks/PromoFeaturesBlock/index.js +18 -0
  44. package/build/cjs/blocks/Questions/Questions.js +12 -10
  45. package/build/cjs/blocks/Questions/index.d.ts +29 -0
  46. package/build/cjs/blocks/Questions/index.js +47 -0
  47. package/build/cjs/blocks/Share/Share.js +11 -10
  48. package/build/cjs/blocks/Share/index.d.ts +12 -0
  49. package/build/cjs/blocks/Share/index.js +18 -0
  50. package/build/cjs/blocks/Slider/Slider.js +22 -17
  51. package/build/cjs/blocks/Slider/dynamic-form.d.ts +3 -0
  52. package/build/cjs/blocks/Slider/dynamic-form.js +225 -0
  53. package/build/cjs/blocks/Slider/index.d.ts +8 -0
  54. package/build/cjs/blocks/Slider/index.js +14 -0
  55. package/build/cjs/blocks/Table/index.d.ts +8 -0
  56. package/build/cjs/blocks/Table/index.js +14 -0
  57. package/build/cjs/blocks/Table/schema.d.ts +1 -0
  58. package/build/cjs/blocks/Table/schema.js +1 -0
  59. package/build/cjs/blocks/Tabs/Tabs.js +9 -8
  60. package/build/cjs/blocks/Tabs/index.d.ts +16 -0
  61. package/build/cjs/blocks/Tabs/index.js +29 -0
  62. package/build/cjs/blocks/TestEditorBlock/TestEditorBlock.d.ts +5 -0
  63. package/build/cjs/blocks/TestEditorBlock/TestEditorBlock.js +12 -0
  64. package/build/cjs/blocks/TestEditorBlock/form.d.ts +3 -0
  65. package/build/cjs/blocks/TestEditorBlock/form.js +80 -0
  66. package/build/cjs/blocks/TestEditorBlock/index.d.ts +11 -0
  67. package/build/cjs/blocks/TestEditorBlock/index.js +17 -0
  68. package/build/cjs/components/BlockBase/BlockBase.css +8 -16
  69. package/build/cjs/components/Image/dynamic-form.d.ts +2 -0
  70. package/build/cjs/components/Image/dynamic-form.js +84 -0
  71. package/build/cjs/components/editor/ChildrenWrap/ChildrenWrap.css +5 -0
  72. package/build/cjs/components/editor/ChildrenWrap/ChildrenWrap.d.ts +6 -0
  73. package/build/cjs/components/editor/ChildrenWrap/ChildrenWrap.js +15 -0
  74. package/build/cjs/components/editor/ItemWrap/ItemWrap.css +9 -0
  75. package/build/cjs/components/editor/ItemWrap/ItemWrap.d.ts +6 -0
  76. package/build/cjs/components/editor/ItemWrap/ItemWrap.js +15 -0
  77. package/build/cjs/constructor-items.d.ts +18 -6
  78. package/build/cjs/constructor-items.js +67 -1
  79. package/build/cjs/containers/PageConstructor/PageConstructor.js +16 -13
  80. package/build/cjs/containers/PageConstructor/Provider.js +4 -0
  81. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.css +10 -6
  82. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +5 -2
  83. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/hooks/useEditorBlockMouseEvents.d.ts +8 -0
  84. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/hooks/useEditorBlockMouseEvents.js +109 -0
  85. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -6
  86. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
  87. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
  88. package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +1 -1
  89. package/build/cjs/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +1 -3
  90. package/build/cjs/context/blockIdContext/blockIdContext.d.ts +2 -2
  91. package/build/cjs/context/blockIdContext/blockIdContext.js +1 -1
  92. package/build/cjs/context/editorContext/editorContext.d.ts +13 -0
  93. package/build/cjs/context/editorContext/editorContext.js +10 -0
  94. package/build/cjs/context/editorContext/editorProvider.d.ts +2 -0
  95. package/build/cjs/context/editorContext/editorProvider.js +20 -0
  96. package/build/cjs/context/editorContext/hooks/useEditorStore.d.ts +2 -0
  97. package/build/cjs/context/editorContext/hooks/useEditorStore.js +15 -0
  98. package/build/cjs/context/editorContext/index.d.ts +4 -0
  99. package/build/cjs/context/editorContext/index.js +7 -0
  100. package/build/cjs/context/editorContext/store.d.ts +24 -0
  101. package/build/cjs/context/editorContext/store.js +39 -0
  102. package/build/cjs/context/messagesContext/hooks/useMessageObserver.d.ts +4 -0
  103. package/build/cjs/context/messagesContext/hooks/useMessageObserver.js +16 -0
  104. package/build/cjs/context/messagesContext/hooks/useMessageSender.d.ts +2 -0
  105. package/build/cjs/context/messagesContext/hooks/useMessageSender.js +11 -0
  106. package/build/cjs/context/messagesContext/hooks/useMessagesStore.d.ts +2 -0
  107. package/build/cjs/context/messagesContext/hooks/useMessagesStore.js +15 -0
  108. package/build/cjs/context/messagesContext/index.d.ts +5 -0
  109. package/build/cjs/context/messagesContext/index.js +8 -0
  110. package/build/cjs/context/messagesContext/messagesContext.d.ts +14 -0
  111. package/build/cjs/context/messagesContext/messagesContext.js +12 -0
  112. package/build/cjs/context/messagesContext/messagesProvider.d.ts +2 -0
  113. package/build/cjs/context/messagesContext/messagesProvider.js +73 -0
  114. package/build/cjs/context/messagesContext/store.d.ts +25 -0
  115. package/build/cjs/context/messagesContext/store.js +17 -0
  116. package/build/cjs/context/messagesContext/types.d.ts +14 -0
  117. package/build/cjs/context/messagesContext/types.js +2 -0
  118. package/build/cjs/grid/Col/Col.d.ts +1 -1
  119. package/build/cjs/grid/Grid/Grid.css +2 -6
  120. package/build/cjs/hooks/useAnalytics.js +1 -1
  121. package/build/cjs/hooks/useEditorInitialize.d.ts +7 -0
  122. package/build/cjs/hooks/useEditorInitialize.js +90 -0
  123. package/build/cjs/models/constructor-items/blocks.d.ts +2 -1
  124. package/build/cjs/models/constructor-items/blocks.js +1 -0
  125. package/build/cjs/models/constructor-items/sub-blocks.d.ts +1 -1
  126. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +4 -1
  127. package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +4 -1
  128. package/build/cjs/navigation/containers/Layout/Layout.css +0 -1
  129. package/build/cjs/schema/constants.d.ts +1 -1
  130. package/build/cjs/schema/constants.js +2 -1
  131. package/build/cjs/schema/index.d.ts +227 -0
  132. package/build/cjs/schema/index.js +7 -3
  133. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.d.ts +2 -0
  134. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.js +81 -0
  135. package/build/cjs/sub-blocks/BackgroundCard/index.d.ts +3 -0
  136. package/build/cjs/sub-blocks/BackgroundCard/index.js +19 -0
  137. package/build/cjs/sub-blocks/BannerCard/BannerCard.js +4 -3
  138. package/build/cjs/sub-blocks/BannerCard/index.d.ts +3 -0
  139. package/build/cjs/sub-blocks/BannerCard/index.js +22 -0
  140. package/build/cjs/sub-blocks/BasicCard/index.d.ts +3 -0
  141. package/build/cjs/sub-blocks/BasicCard/index.js +18 -0
  142. package/build/cjs/sub-blocks/Content/index.d.ts +3 -0
  143. package/build/cjs/sub-blocks/Content/index.js +18 -0
  144. package/build/cjs/sub-blocks/Content/schema.d.ts +1 -0
  145. package/build/cjs/sub-blocks/Content/schema.js +1 -0
  146. package/build/cjs/sub-blocks/Divider/index.d.ts +3 -0
  147. package/build/cjs/sub-blocks/Divider/index.js +15 -0
  148. package/build/cjs/sub-blocks/ImageCard/ImageCard.js +2 -2
  149. package/build/cjs/sub-blocks/ImageCard/index.d.ts +3 -0
  150. package/build/cjs/sub-blocks/ImageCard/index.js +18 -0
  151. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +1 -1
  152. package/build/cjs/sub-blocks/LayoutItem/form.d.ts +8 -0
  153. package/build/cjs/sub-blocks/LayoutItem/form.js +14 -0
  154. package/build/cjs/sub-blocks/LayoutItem/index.d.ts +3 -0
  155. package/build/cjs/sub-blocks/LayoutItem/index.js +20 -0
  156. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +254 -246
  157. package/build/cjs/sub-blocks/LayoutItem/schema.js +7 -3
  158. package/build/cjs/sub-blocks/MediaCard/index.d.ts +3 -0
  159. package/build/cjs/sub-blocks/MediaCard/index.js +20 -0
  160. package/build/cjs/sub-blocks/PriceCard/index.d.ts +3 -0
  161. package/build/cjs/sub-blocks/PriceCard/index.js +31 -0
  162. package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
  163. package/build/cjs/sub-blocks/PriceDetailed/index.d.ts +4 -0
  164. package/build/cjs/sub-blocks/PriceDetailed/index.js +33 -0
  165. package/build/cjs/sub-blocks/Quote/index.d.ts +3 -0
  166. package/build/cjs/sub-blocks/Quote/index.js +21 -0
  167. package/build/cjs/types/actions/codes.d.ts +16 -0
  168. package/build/cjs/types/actions/codes.js +26 -0
  169. package/build/cjs/types/actions/index.d.ts +20 -0
  170. package/build/cjs/types/actions/index.js +10 -0
  171. package/build/cjs/types/actions/initial.d.ts +23 -0
  172. package/build/cjs/types/actions/initial.js +2 -0
  173. package/build/cjs/types/actions/insert.d.ts +19 -0
  174. package/build/cjs/types/actions/insert.js +2 -0
  175. package/build/cjs/types/actions/other.d.ts +16 -0
  176. package/build/cjs/types/actions/other.js +2 -0
  177. package/build/cjs/types/actions/overlay.d.ts +16 -0
  178. package/build/cjs/types/actions/overlay.js +2 -0
  179. package/build/cjs/types/actions/reorder.d.ts +17 -0
  180. package/build/cjs/types/actions/reorder.js +2 -0
  181. package/build/cjs/types/actions/select.d.ts +16 -0
  182. package/build/cjs/types/actions/select.js +2 -0
  183. package/build/cjs/types/dynamic-form.d.ts +92 -0
  184. package/build/cjs/types/dynamic-form.js +2 -0
  185. package/build/cjs/types/index.d.ts +14 -0
  186. package/build/cjs/types/index.js +2 -0
  187. package/build/cjs/utils/editor.d.ts +2 -0
  188. package/build/cjs/utils/editor.js +24 -0
  189. package/build/cjs/utils/form-generator.d.ts +9 -0
  190. package/build/cjs/utils/form-generator.js +126 -0
  191. package/build/cjs/utils/store.d.ts +16 -0
  192. package/build/cjs/utils/store.js +9 -0
  193. package/build/esm/blocks/Banner/Banner.js +3 -1
  194. package/build/esm/blocks/Banner/index.d.ts +3 -0
  195. package/build/esm/blocks/Banner/index.js +19 -0
  196. package/build/esm/blocks/CardLayout/CardLayout.css +1 -0
  197. package/build/esm/blocks/CardLayout/CardLayout.js +12 -7
  198. package/build/esm/blocks/CardLayout/index.d.ts +5 -0
  199. package/build/esm/blocks/CardLayout/index.js +162 -0
  200. package/build/esm/blocks/Companies/Companies.js +6 -4
  201. package/build/esm/blocks/Companies/index.d.ts +3 -0
  202. package/build/esm/blocks/Companies/index.js +15 -0
  203. package/build/esm/blocks/ContentLayout/ContentLayout.js +7 -6
  204. package/build/esm/blocks/ContentLayout/index.d.ts +11 -0
  205. package/build/esm/blocks/ContentLayout/index.js +14 -0
  206. package/build/esm/blocks/ContentLayout/schema.d.ts +1 -0
  207. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +23 -21
  208. package/build/esm/blocks/ExtendedFeatures/index.d.ts +12 -0
  209. package/build/esm/blocks/ExtendedFeatures/index.js +15 -0
  210. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +1 -0
  211. package/build/esm/blocks/ExtendedFeatures/schema.js +1 -0
  212. package/build/esm/blocks/FilterBlock/FilterBlock.js +12 -11
  213. package/build/esm/blocks/FilterBlock/index.d.ts +11 -0
  214. package/build/esm/blocks/FilterBlock/index.js +14 -0
  215. package/build/esm/blocks/Form/index.d.ts +12 -0
  216. package/build/esm/blocks/Form/index.js +15 -0
  217. package/build/esm/blocks/Header/dynamic-form.d.ts +2 -0
  218. package/build/esm/blocks/Header/dynamic-form.js +727 -0
  219. package/build/esm/blocks/Header/index.d.ts +8 -0
  220. package/build/esm/blocks/Header/index.js +11 -0
  221. package/build/esm/blocks/HeaderSlider/HeaderSlider.js +3 -2
  222. package/build/esm/blocks/HeaderSlider/index.d.ts +31 -0
  223. package/build/esm/blocks/HeaderSlider/index.js +35 -0
  224. package/build/esm/blocks/Icons/Icons.js +9 -6
  225. package/build/esm/blocks/Icons/index.d.ts +13 -0
  226. package/build/esm/blocks/Icons/index.js +16 -0
  227. package/build/esm/blocks/Info/index.d.ts +21 -0
  228. package/build/esm/blocks/Info/index.js +38 -0
  229. package/build/esm/blocks/Map/index.d.ts +11 -0
  230. package/build/esm/blocks/Map/index.js +14 -0
  231. package/build/esm/blocks/Media/index.d.ts +14 -0
  232. package/build/esm/blocks/Media/index.js +17 -0
  233. package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +19 -16
  234. package/build/esm/blocks/PromoFeaturesBlock/index.d.ts +12 -0
  235. package/build/esm/blocks/PromoFeaturesBlock/index.js +15 -0
  236. package/build/esm/blocks/Questions/Questions.js +13 -11
  237. package/build/esm/blocks/Questions/index.d.ts +29 -0
  238. package/build/esm/blocks/Questions/index.js +44 -0
  239. package/build/esm/blocks/Share/Share.js +11 -10
  240. package/build/esm/blocks/Share/index.d.ts +12 -0
  241. package/build/esm/blocks/Share/index.js +15 -0
  242. package/build/esm/blocks/Slider/Slider.js +22 -17
  243. package/build/esm/blocks/Slider/dynamic-form.d.ts +3 -0
  244. package/build/esm/blocks/Slider/dynamic-form.js +222 -0
  245. package/build/esm/blocks/Slider/index.d.ts +8 -0
  246. package/build/esm/blocks/Slider/index.js +11 -0
  247. package/build/esm/blocks/Table/index.d.ts +8 -0
  248. package/build/esm/blocks/Table/index.js +11 -0
  249. package/build/esm/blocks/Table/schema.d.ts +1 -0
  250. package/build/esm/blocks/Table/schema.js +1 -0
  251. package/build/esm/blocks/Tabs/Tabs.js +10 -9
  252. package/build/esm/blocks/Tabs/index.d.ts +16 -0
  253. package/build/esm/blocks/Tabs/index.js +26 -0
  254. package/build/esm/blocks/TestEditorBlock/TestEditorBlock.d.ts +5 -0
  255. package/build/esm/blocks/TestEditorBlock/TestEditorBlock.js +7 -0
  256. package/build/esm/blocks/TestEditorBlock/form.d.ts +3 -0
  257. package/build/esm/blocks/TestEditorBlock/form.js +78 -0
  258. package/build/esm/blocks/TestEditorBlock/index.d.ts +11 -0
  259. package/build/esm/blocks/TestEditorBlock/index.js +13 -0
  260. package/build/esm/components/BlockBase/BlockBase.css +8 -16
  261. package/build/esm/components/Image/dynamic-form.d.ts +2 -0
  262. package/build/esm/components/Image/dynamic-form.js +80 -0
  263. package/build/esm/components/editor/ChildrenWrap/ChildrenWrap.css +5 -0
  264. package/build/esm/components/editor/ChildrenWrap/ChildrenWrap.d.ts +7 -0
  265. package/build/esm/components/editor/ChildrenWrap/ChildrenWrap.js +13 -0
  266. package/build/esm/components/editor/ItemWrap/ItemWrap.css +9 -0
  267. package/build/esm/components/editor/ItemWrap/ItemWrap.d.ts +7 -0
  268. package/build/esm/components/editor/ItemWrap/ItemWrap.js +13 -0
  269. package/build/esm/constructor-items.d.ts +18 -6
  270. package/build/esm/constructor-items.js +66 -0
  271. package/build/esm/containers/PageConstructor/PageConstructor.js +19 -16
  272. package/build/esm/containers/PageConstructor/Provider.js +4 -0
  273. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.css +10 -6
  274. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +5 -2
  275. package/build/esm/containers/PageConstructor/components/ConstructorBlock/hooks/useEditorBlockMouseEvents.d.ts +8 -0
  276. package/build/esm/containers/PageConstructor/components/ConstructorBlock/hooks/useEditorBlockMouseEvents.js +107 -0
  277. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -6
  278. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
  279. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -1
  280. package/build/esm/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +1 -1
  281. package/build/esm/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +1 -3
  282. package/build/esm/context/blockIdContext/blockIdContext.d.ts +2 -2
  283. package/build/esm/context/blockIdContext/blockIdContext.js +1 -1
  284. package/build/esm/context/editorContext/editorContext.d.ts +13 -0
  285. package/build/esm/context/editorContext/editorContext.js +6 -0
  286. package/build/esm/context/editorContext/editorProvider.d.ts +2 -0
  287. package/build/esm/context/editorContext/editorProvider.js +15 -0
  288. package/build/esm/context/editorContext/hooks/useEditorStore.d.ts +2 -0
  289. package/build/esm/context/editorContext/hooks/useEditorStore.js +11 -0
  290. package/build/esm/context/editorContext/index.d.ts +4 -0
  291. package/build/esm/context/editorContext/index.js +4 -0
  292. package/build/esm/context/editorContext/store.d.ts +24 -0
  293. package/build/esm/context/editorContext/store.js +36 -0
  294. package/build/esm/context/messagesContext/hooks/useMessageObserver.d.ts +4 -0
  295. package/build/esm/context/messagesContext/hooks/useMessageObserver.js +12 -0
  296. package/build/esm/context/messagesContext/hooks/useMessageSender.d.ts +2 -0
  297. package/build/esm/context/messagesContext/hooks/useMessageSender.js +7 -0
  298. package/build/esm/context/messagesContext/hooks/useMessagesStore.d.ts +2 -0
  299. package/build/esm/context/messagesContext/hooks/useMessagesStore.js +11 -0
  300. package/build/esm/context/messagesContext/index.d.ts +5 -0
  301. package/build/esm/context/messagesContext/index.js +5 -0
  302. package/build/esm/context/messagesContext/messagesContext.d.ts +14 -0
  303. package/build/esm/context/messagesContext/messagesContext.js +8 -0
  304. package/build/esm/context/messagesContext/messagesProvider.d.ts +2 -0
  305. package/build/esm/context/messagesContext/messagesProvider.js +68 -0
  306. package/build/esm/context/messagesContext/store.d.ts +25 -0
  307. package/build/esm/context/messagesContext/store.js +14 -0
  308. package/build/esm/context/messagesContext/types.d.ts +14 -0
  309. package/build/esm/context/messagesContext/types.js +1 -0
  310. package/build/esm/grid/Col/Col.d.ts +1 -1
  311. package/build/esm/grid/Grid/Grid.css +2 -6
  312. package/build/esm/hooks/useAnalytics.js +1 -1
  313. package/build/esm/hooks/useEditorInitialize.d.ts +7 -0
  314. package/build/esm/hooks/useEditorInitialize.js +87 -0
  315. package/build/esm/models/constructor-items/blocks.d.ts +2 -1
  316. package/build/esm/models/constructor-items/blocks.js +1 -0
  317. package/build/esm/models/constructor-items/sub-blocks.d.ts +1 -1
  318. package/build/esm/navigation/components/NavigationItem/NavigationItem.js +4 -1
  319. package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +4 -1
  320. package/build/esm/navigation/containers/Layout/Layout.css +0 -1
  321. package/build/esm/schema/constants.d.ts +1 -1
  322. package/build/esm/schema/constants.js +2 -1
  323. package/build/esm/schema/index.d.ts +227 -0
  324. package/build/esm/schema/index.js +6 -2
  325. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.d.ts +2 -0
  326. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.js +78 -0
  327. package/build/esm/sub-blocks/BackgroundCard/index.d.ts +3 -0
  328. package/build/esm/sub-blocks/BackgroundCard/index.js +16 -0
  329. package/build/esm/sub-blocks/BannerCard/BannerCard.js +4 -3
  330. package/build/esm/sub-blocks/BannerCard/index.d.ts +3 -0
  331. package/build/esm/sub-blocks/BannerCard/index.js +19 -0
  332. package/build/esm/sub-blocks/BasicCard/index.d.ts +3 -0
  333. package/build/esm/sub-blocks/BasicCard/index.js +15 -0
  334. package/build/esm/sub-blocks/Content/index.d.ts +3 -0
  335. package/build/esm/sub-blocks/Content/index.js +15 -0
  336. package/build/esm/sub-blocks/Content/schema.d.ts +1 -0
  337. package/build/esm/sub-blocks/Content/schema.js +1 -0
  338. package/build/esm/sub-blocks/Divider/index.d.ts +3 -0
  339. package/build/esm/sub-blocks/Divider/index.js +12 -0
  340. package/build/esm/sub-blocks/ImageCard/ImageCard.js +2 -2
  341. package/build/esm/sub-blocks/ImageCard/index.d.ts +3 -0
  342. package/build/esm/sub-blocks/ImageCard/index.js +15 -0
  343. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +1 -1
  344. package/build/esm/sub-blocks/LayoutItem/form.d.ts +8 -0
  345. package/build/esm/sub-blocks/LayoutItem/form.js +11 -0
  346. package/build/esm/sub-blocks/LayoutItem/index.d.ts +3 -0
  347. package/build/esm/sub-blocks/LayoutItem/index.js +17 -0
  348. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +254 -246
  349. package/build/esm/sub-blocks/LayoutItem/schema.js +6 -2
  350. package/build/esm/sub-blocks/MediaCard/index.d.ts +3 -0
  351. package/build/esm/sub-blocks/MediaCard/index.js +17 -0
  352. package/build/esm/sub-blocks/PriceCard/index.d.ts +3 -0
  353. package/build/esm/sub-blocks/PriceCard/index.js +28 -0
  354. package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
  355. package/build/esm/sub-blocks/PriceDetailed/index.d.ts +4 -0
  356. package/build/esm/sub-blocks/PriceDetailed/index.js +30 -0
  357. package/build/esm/sub-blocks/Quote/index.d.ts +3 -0
  358. package/build/esm/sub-blocks/Quote/index.js +18 -0
  359. package/build/esm/types/actions/codes.d.ts +16 -0
  360. package/build/esm/types/actions/codes.js +23 -0
  361. package/build/esm/types/actions/index.d.ts +20 -0
  362. package/build/esm/types/actions/index.js +7 -0
  363. package/build/esm/types/actions/initial.d.ts +23 -0
  364. package/build/esm/types/actions/initial.js +1 -0
  365. package/build/esm/types/actions/insert.d.ts +19 -0
  366. package/build/esm/types/actions/insert.js +1 -0
  367. package/build/esm/types/actions/other.d.ts +16 -0
  368. package/build/esm/types/actions/other.js +1 -0
  369. package/build/esm/types/actions/overlay.d.ts +16 -0
  370. package/build/esm/types/actions/overlay.js +1 -0
  371. package/build/esm/types/actions/reorder.d.ts +17 -0
  372. package/build/esm/types/actions/reorder.js +1 -0
  373. package/build/esm/types/actions/select.d.ts +16 -0
  374. package/build/esm/types/actions/select.js +1 -0
  375. package/build/esm/types/dynamic-form.d.ts +92 -0
  376. package/build/esm/types/dynamic-form.js +1 -0
  377. package/build/esm/types/index.d.ts +14 -0
  378. package/build/esm/types/index.js +1 -0
  379. package/build/esm/utils/editor.d.ts +2 -0
  380. package/build/esm/utils/editor.js +20 -0
  381. package/build/esm/utils/form-generator.d.ts +9 -0
  382. package/build/esm/utils/form-generator.js +121 -0
  383. package/build/esm/utils/store.d.ts +16 -0
  384. package/build/esm/utils/store.js +5 -0
  385. package/package.json +5 -2
  386. package/server/models/constructor-items/blocks.d.ts +2 -1
  387. package/server/models/constructor-items/blocks.js +1 -0
  388. package/server/models/constructor-items/sub-blocks.d.ts +1 -1
  389. package/styles/mixins.scss +9 -9
  390. package/widget/index.js +1 -1
@@ -4,29 +4,16 @@ export declare const LayoutItem: {
4
4
  required: string[];
5
5
  properties: {
6
6
  media: {
7
- color: {
8
- type: string;
9
- };
10
- image: {
11
- oneOf: ({
12
- optionName: string;
7
+ type: string;
8
+ additionalProperties: boolean;
9
+ required: never[];
10
+ properties: {
11
+ color: {
12
+ type: string;
13
+ };
14
+ image: {
13
15
  oneOf: ({
14
- type: string;
15
- properties: {
16
- when: {
17
- type: string;
18
- };
19
- };
20
- } | {
21
- type: string;
22
- pattern: string;
23
16
  optionName: string;
24
- })[];
25
- type?: undefined;
26
- items?: undefined;
27
- } | {
28
- type: string;
29
- items: {
30
17
  oneOf: ({
31
18
  type: string;
32
19
  properties: {
@@ -39,175 +26,154 @@ export declare const LayoutItem: {
39
26
  pattern: string;
40
27
  optionName: string;
41
28
  })[];
42
- };
43
- optionName: string;
44
- })[];
45
- };
46
- disableImageSliderForArrayInput: {
47
- type: string;
48
- };
49
- video: {
50
- type: string;
51
- additionalProperties: boolean;
52
- required: string[];
53
- properties: {
54
- src: {
29
+ type?: undefined;
30
+ items?: undefined;
31
+ } | {
55
32
  type: string;
56
33
  items: {
57
- type: string;
58
- };
59
- };
60
- loop: {
61
- oneOf: ({
62
- optionName: string;
63
- type: string;
64
- additionalProperties: boolean;
65
- required: string[];
66
- properties: {
67
- start: {
68
- type: string;
69
- };
70
- end: {
71
- type: string;
72
- };
73
- };
74
- } | {
75
- type: string;
76
- optionName: string;
77
- })[];
78
- };
79
- type: {
80
- type: string;
81
- enum: string[];
82
- };
83
- muted: {
84
- type: string;
85
- };
86
- autoplay: {
87
- type: string;
88
- };
89
- elapsedTime: {
90
- type: string;
91
- };
92
- playButton: {
93
- type: string;
94
- additionalProperties: boolean;
95
- properties: {
96
- type: {
97
- type: string;
98
- enum: string[];
99
- };
100
- theme: {
34
+ oneOf: ({
101
35
  type: string;
102
- enum: string[];
103
- };
104
- text: {
105
- type: string;
106
- contentType: string;
107
- };
108
- };
109
- };
110
- controls: {
111
- type: string;
112
- enum: import("../..").MediaVideoControlsType[];
113
- };
114
- customControlsOptions: {
115
- type: string;
116
- additionalProperties: boolean;
117
- properties: {
118
- type: {
119
- type: string;
120
- enum: import("../..").CustomControlsType[];
121
- };
122
- muteButtonShown: {
123
- type: string;
124
- };
125
- positioning: {
36
+ properties: {
37
+ when: {
38
+ type: string;
39
+ };
40
+ };
41
+ } | {
126
42
  type: string;
127
- enum: import("../..").CustomControlsButtonPositioning[];
128
- };
43
+ pattern: string;
44
+ optionName: string;
45
+ })[];
129
46
  };
130
- };
131
- ariaLabel: {
132
- type: string;
133
- };
47
+ optionName: string;
48
+ })[];
134
49
  };
135
- };
136
- youtube: {
137
- type: string;
138
- };
139
- parallax: {
140
- type: string;
141
- };
142
- height: {
143
- type: string;
144
- };
145
- previewImg: {
146
- type: string;
147
- };
148
- dataLens: {
149
- oneOf: ({
50
+ disableImageSliderForArrayInput: {
150
51
  type: string;
151
- optionName: string;
152
- } | {
153
- optionName: string;
52
+ };
53
+ video: {
154
54
  type: string;
155
55
  additionalProperties: boolean;
156
56
  required: string[];
157
57
  properties: {
158
- id: {
58
+ src: {
159
59
  type: string;
60
+ items: {
61
+ type: string;
62
+ };
63
+ };
64
+ loop: {
65
+ oneOf: ({
66
+ optionName: string;
67
+ type: string;
68
+ additionalProperties: boolean;
69
+ required: string[];
70
+ properties: {
71
+ start: {
72
+ type: string;
73
+ };
74
+ end: {
75
+ type: string;
76
+ };
77
+ };
78
+ } | {
79
+ type: string;
80
+ optionName: string;
81
+ })[];
160
82
  };
161
- theme: {
83
+ type: {
162
84
  type: string;
163
85
  enum: string[];
164
86
  };
165
- };
166
- })[];
167
- };
168
- fullscreen: {
169
- type: string;
170
- };
171
- analyticsEvents: {
172
- anyOf: ({
173
- type: string;
174
- additionalProperties: {
175
- type: string;
176
- };
177
- required: string[];
178
- properties: {
179
- name: {
87
+ muted: {
180
88
  type: string;
181
89
  };
182
- type: {
90
+ autoplay: {
183
91
  type: string;
184
92
  };
185
- counters: {
93
+ elapsedTime: {
94
+ type: string;
95
+ };
96
+ playButton: {
186
97
  type: string;
187
98
  additionalProperties: boolean;
188
- required: never[];
189
99
  properties: {
190
- include: {
100
+ type: {
191
101
  type: string;
192
- items: {
193
- type: string;
194
- };
102
+ enum: string[];
195
103
  };
196
- exclude: {
104
+ theme: {
197
105
  type: string;
198
- items: {
199
- type: string;
200
- };
106
+ enum: string[];
107
+ };
108
+ text: {
109
+ type: string;
110
+ contentType: string;
201
111
  };
202
112
  };
203
113
  };
204
- context: {
114
+ controls: {
115
+ type: string;
116
+ enum: import("../..").MediaVideoControlsType[];
117
+ };
118
+ customControlsOptions: {
119
+ type: string;
120
+ additionalProperties: boolean;
121
+ properties: {
122
+ type: {
123
+ type: string;
124
+ enum: import("../..").CustomControlsType[];
125
+ };
126
+ muteButtonShown: {
127
+ type: string;
128
+ };
129
+ positioning: {
130
+ type: string;
131
+ enum: import("../..").CustomControlsButtonPositioning[];
132
+ };
133
+ };
134
+ };
135
+ ariaLabel: {
205
136
  type: string;
206
137
  };
207
138
  };
208
- } | {
139
+ };
140
+ youtube: {
209
141
  type: string;
210
- items: {
142
+ };
143
+ parallax: {
144
+ type: string;
145
+ };
146
+ height: {
147
+ type: string;
148
+ };
149
+ previewImg: {
150
+ type: string;
151
+ };
152
+ dataLens: {
153
+ oneOf: ({
154
+ type: string;
155
+ optionName: string;
156
+ } | {
157
+ optionName: string;
158
+ type: string;
159
+ additionalProperties: boolean;
160
+ required: string[];
161
+ properties: {
162
+ id: {
163
+ type: string;
164
+ };
165
+ theme: {
166
+ type: string;
167
+ enum: string[];
168
+ };
169
+ };
170
+ })[];
171
+ };
172
+ fullscreen: {
173
+ type: string;
174
+ };
175
+ analyticsEvents: {
176
+ anyOf: ({
211
177
  type: string;
212
178
  additionalProperties: {
213
179
  type: string;
@@ -243,126 +209,168 @@ export declare const LayoutItem: {
243
209
  type: string;
244
210
  };
245
211
  };
246
- };
247
- })[];
248
- };
249
- ratio: {
250
- type: string;
251
- };
252
- iframe: {
253
- type: string;
254
- additionalProperties: boolean;
255
- required: string[];
256
- properties: {
257
- src: {
258
- type: string;
259
- };
260
- name: {
261
- type: string;
262
- };
263
- title: {
264
- type: string;
265
- };
266
- height: {
267
- type: string;
268
- };
269
- width: {
212
+ } | {
270
213
  type: string;
271
- };
214
+ items: {
215
+ type: string;
216
+ additionalProperties: {
217
+ type: string;
218
+ };
219
+ required: string[];
220
+ properties: {
221
+ name: {
222
+ type: string;
223
+ };
224
+ type: {
225
+ type: string;
226
+ };
227
+ counters: {
228
+ type: string;
229
+ additionalProperties: boolean;
230
+ required: never[];
231
+ properties: {
232
+ include: {
233
+ type: string;
234
+ items: {
235
+ type: string;
236
+ };
237
+ };
238
+ exclude: {
239
+ type: string;
240
+ items: {
241
+ type: string;
242
+ };
243
+ };
244
+ };
245
+ };
246
+ context: {
247
+ type: string;
248
+ };
249
+ };
250
+ };
251
+ })[];
272
252
  };
273
- };
274
- margins: {
275
- type: string;
276
- };
277
- };
278
- content: Partial<{
279
- title: {
280
- oneOf: ({
253
+ ratio: {
281
254
  type: string;
282
- contentType: string;
283
- optionName: string;
284
- } | {
285
- optionName: string;
255
+ };
256
+ iframe: {
286
257
  type: string;
287
258
  additionalProperties: boolean;
288
259
  required: string[];
289
260
  properties: {
290
- text: {
261
+ src: {
291
262
  type: string;
292
- contentType: string;
293
263
  };
294
- textSize: {
264
+ name: {
295
265
  type: string;
296
- enum: string[];
297
266
  };
298
- url: {
267
+ title: {
299
268
  type: string;
300
269
  };
301
- urlTitle: {
270
+ height: {
302
271
  type: string;
303
272
  };
304
- resetMargin: {
273
+ width: {
305
274
  type: string;
306
275
  };
307
276
  };
308
- contentType?: undefined;
309
- })[];
310
- };
311
- text: {
312
- type: string;
313
- contentType: string;
314
- inputType: string;
315
- };
316
- additionalInfo: {
317
- type: string;
318
- contentType: string;
319
- };
320
- size: {
321
- type: string;
322
- enum: string[];
277
+ };
278
+ margins: {
279
+ type: string;
280
+ };
323
281
  };
324
- links: {
325
- type: string;
326
- items: {
282
+ };
283
+ content: {
284
+ type: string;
285
+ properties: Partial<{
286
+ title: {
287
+ oneOf: ({
288
+ type: string;
289
+ contentType: string;
290
+ optionName: string;
291
+ } | {
292
+ optionName: string;
293
+ type: string;
294
+ additionalProperties: boolean;
295
+ required: string[];
296
+ properties: {
297
+ text: {
298
+ type: string;
299
+ contentType: string;
300
+ };
301
+ textSize: {
302
+ type: string;
303
+ enum: string[];
304
+ };
305
+ url: {
306
+ type: string;
307
+ };
308
+ urlTitle: {
309
+ type: string;
310
+ };
311
+ resetMargin: {
312
+ type: string;
313
+ };
314
+ };
315
+ contentType?: undefined;
316
+ })[];
317
+ };
318
+ text: {
327
319
  type: string;
328
- properties: {
329
- when: {
330
- type: string;
320
+ contentType: string;
321
+ inputType: string;
322
+ };
323
+ additionalInfo: {
324
+ type: string;
325
+ contentType: string;
326
+ };
327
+ size: {
328
+ type: string;
329
+ enum: string[];
330
+ };
331
+ links: {
332
+ type: string;
333
+ items: {
334
+ type: string;
335
+ properties: {
336
+ when: {
337
+ type: string;
338
+ };
331
339
  };
332
340
  };
333
341
  };
334
- };
335
- buttons: {
336
- type: string;
337
- items: {
342
+ buttons: {
338
343
  type: string;
339
- properties: {
340
- when: {
341
- type: string;
344
+ items: {
345
+ type: string;
346
+ properties: {
347
+ when: {
348
+ type: string;
349
+ };
342
350
  };
343
351
  };
344
352
  };
345
- };
346
- theme: {
347
- type: string;
348
- enum: string[];
349
- };
350
- list: {
351
- type: string;
352
- items: {
353
+ theme: {
353
354
  type: string;
354
- properties: {
355
- when: {
356
- type: string;
355
+ enum: string[];
356
+ };
357
+ list: {
358
+ type: string;
359
+ items: {
360
+ type: string;
361
+ properties: {
362
+ when: {
363
+ type: string;
364
+ };
357
365
  };
358
366
  };
359
367
  };
360
- };
361
- controlPosition: {
362
- type: string;
363
- enum: string[];
364
- };
365
- }>;
368
+ controlPosition: {
369
+ type: string;
370
+ enum: string[];
371
+ };
372
+ }>;
373
+ };
366
374
  metaInfo: {
367
375
  type: string;
368
376
  items: {
@@ -1,13 +1,17 @@
1
1
  import omit from 'lodash/omit';
2
+ import { Media } from '../../blocks/Media/schema';
2
3
  import metaInfo from '../../components/MetaInfo/schema';
3
- import { BaseProps, CardLayoutProps, MediaProps } from '../../schema/validators/common';
4
+ import { BaseProps, CardLayoutProps } from '../../schema/validators/common';
4
5
  import { AnalyticsEventSchema } from '../../schema/validators/event';
5
6
  import { ContentBase } from '../../sub-blocks/Content/schema';
6
7
  export const LayoutItem = {
7
8
  type: 'object',
8
9
  additionalProperties: false,
9
10
  required: ['content', 'media'],
10
- properties: Object.assign(Object.assign(Object.assign({}, BaseProps), CardLayoutProps), { media: MediaProps, content: omit(ContentBase, ['colSize', 'size', 'centered']), metaInfo: metaInfo, border: {
11
+ properties: Object.assign(Object.assign(Object.assign({}, BaseProps), CardLayoutProps), { media: Media, content: {
12
+ type: 'object',
13
+ properties: omit(ContentBase, ['colSize', 'size', 'centered']),
14
+ }, metaInfo: metaInfo, border: {
11
15
  type: 'boolean',
12
16
  }, fullscreen: {
13
17
  type: 'boolean',
@@ -0,0 +1,3 @@
1
+ import { BlockData } from '../../constructor-items';
2
+ declare const MediaCardConfig: BlockData;
3
+ export default MediaCardConfig;
@@ -0,0 +1,17 @@
1
+ import { generateFromAJV } from '../../utils/form-generator';
2
+ import MediaCard from './MediaCard';
3
+ import { MediaCardBlock as MediaCardSchema } from './schema';
4
+ const MediaCardConfig = {
5
+ component: MediaCard,
6
+ schema: {
7
+ name: 'Media Card',
8
+ inputs: generateFromAJV(MediaCardSchema['media-card']),
9
+ default: {
10
+ content: {
11
+ title: 'Media Card',
12
+ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
13
+ },
14
+ },
15
+ },
16
+ };
17
+ export default MediaCardConfig;
@@ -0,0 +1,3 @@
1
+ import { BlockData } from '../../constructor-items';
2
+ declare const PriceCardConfig: BlockData;
3
+ export default PriceCardConfig;
@@ -0,0 +1,28 @@
1
+ import { generateFromAJV } from '../../utils/form-generator';
2
+ import PriceCard from './PriceCard';
3
+ import { PriceCardBlock as PriceCardSchema } from './schema';
4
+ const PriceCardConfig = {
5
+ component: PriceCard,
6
+ schema: {
7
+ name: 'Price Card',
8
+ inputs: generateFromAJV(PriceCardSchema['price-card']),
9
+ default: {
10
+ type: 'price-card',
11
+ border: 'line',
12
+ title: 'Basic',
13
+ price: '100 $',
14
+ pricePeriod: 'month',
15
+ priceDetails: '+ 5% from check',
16
+ description: 'For any purposes',
17
+ buttons: [
18
+ {
19
+ url: '/',
20
+ text: 'Read More',
21
+ width: 'max',
22
+ theme: 'action',
23
+ },
24
+ ],
25
+ },
26
+ },
27
+ };
28
+ export default PriceCardConfig;
@@ -7,7 +7,7 @@ import SeparatePriceDetailed from './SeparatePriceDetailed/SeparatePriceDetailed
7
7
  // eslint-disable-next-line valid-jsdoc
8
8
  /** @deprecated */
9
9
  const PriceDetailed = (props) => {
10
- const { priceType = PriceDetailsType.SETTINGS, items, numberGroupItems = 1, description, details, foldable, labelsDefaultText, isCombined = false, useMixedView = false, border, } = props;
10
+ const { priceType = PriceDetailsType.SETTINGS, items = [], numberGroupItems = 1, description, details, foldable, labelsDefaultText, isCombined = false, useMixedView = false, border, } = props;
11
11
  const { titleSize: descriptionTitleSize = 'l', descriptionSize = 'm', titleColor: descriptionTitleColor = 'cornflower', } = description || {};
12
12
  const { titleSize: detailsTitleSize = 's', descriptionSize: detailsDescriptionSize = 'm' } = details || {};
13
13
  const getDescriptionComponent = (priceDescription) => {
@@ -0,0 +1,4 @@
1
+ import { BlockData } from '../../constructor-items';
2
+ /** @deprecated */
3
+ declare const PriceDetailedConfig: BlockData;
4
+ export default PriceDetailedConfig;