@gravity-ui/page-constructor 6.3.1 → 6.3.2-alpha.2

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 (874) hide show
  1. package/README.md +31 -1
  2. package/build/cjs/blocks/Banner/Banner.js +2 -1
  3. package/build/cjs/blocks/Banner/Banner.js.map +1 -1
  4. package/build/cjs/blocks/Banner/index.d.ts +3 -0
  5. package/build/cjs/blocks/Banner/index.js +24 -0
  6. package/build/cjs/blocks/Banner/index.js.map +1 -0
  7. package/build/cjs/blocks/CardLayout/CardLayout.css +1 -0
  8. package/build/cjs/blocks/CardLayout/CardLayout.js +4 -3
  9. package/build/cjs/blocks/CardLayout/CardLayout.js.map +1 -1
  10. package/build/cjs/blocks/CardLayout/index.d.ts +5 -0
  11. package/build/cjs/blocks/CardLayout/index.js +186 -0
  12. package/build/cjs/blocks/CardLayout/index.js.map +1 -0
  13. package/build/cjs/blocks/Companies/Companies.js +2 -1
  14. package/build/cjs/blocks/Companies/Companies.js.map +1 -1
  15. package/build/cjs/blocks/Companies/index.d.ts +3 -0
  16. package/build/cjs/blocks/Companies/index.js +20 -0
  17. package/build/cjs/blocks/Companies/index.js.map +1 -0
  18. package/build/cjs/blocks/ContentLayout/ContentLayout.js +1 -1
  19. package/build/cjs/blocks/ContentLayout/ContentLayout.js.map +1 -1
  20. package/build/cjs/blocks/ContentLayout/index.d.ts +41 -0
  21. package/build/cjs/blocks/ContentLayout/index.js +81 -0
  22. package/build/cjs/blocks/ContentLayout/index.js.map +1 -0
  23. package/build/cjs/blocks/ContentLayout/schema.d.ts +1 -0
  24. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +13 -12
  25. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
  26. package/build/cjs/blocks/ExtendedFeatures/index.d.ts +58 -0
  27. package/build/cjs/blocks/ExtendedFeatures/index.js +77 -0
  28. package/build/cjs/blocks/ExtendedFeatures/index.js.map +1 -0
  29. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +1 -0
  30. package/build/cjs/blocks/ExtendedFeatures/schema.js +1 -0
  31. package/build/cjs/blocks/ExtendedFeatures/schema.js.map +1 -1
  32. package/build/cjs/blocks/FilterBlock/FilterBlock.js +5 -5
  33. package/build/cjs/blocks/FilterBlock/FilterBlock.js.map +1 -1
  34. package/build/cjs/blocks/FilterBlock/index.d.ts +29 -0
  35. package/build/cjs/blocks/FilterBlock/index.js +98 -0
  36. package/build/cjs/blocks/FilterBlock/index.js.map +1 -0
  37. package/build/cjs/blocks/Form/index.d.ts +13 -0
  38. package/build/cjs/blocks/Form/index.js +20 -0
  39. package/build/cjs/blocks/Form/index.js.map +1 -0
  40. package/build/cjs/blocks/Header/dynamic-form.d.ts +2 -0
  41. package/build/cjs/blocks/Header/dynamic-form.js +731 -0
  42. package/build/cjs/blocks/Header/dynamic-form.js.map +1 -0
  43. package/build/cjs/blocks/Header/index.d.ts +20 -0
  44. package/build/cjs/blocks/Header/index.js +34 -0
  45. package/build/cjs/blocks/Header/index.js.map +1 -0
  46. package/build/cjs/blocks/HeaderSlider/HeaderSlider.js +2 -1
  47. package/build/cjs/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
  48. package/build/cjs/blocks/HeaderSlider/index.d.ts +32 -0
  49. package/build/cjs/blocks/HeaderSlider/index.js +40 -0
  50. package/build/cjs/blocks/HeaderSlider/index.js.map +1 -0
  51. package/build/cjs/blocks/Icons/Icons.js +8 -6
  52. package/build/cjs/blocks/Icons/Icons.js.map +1 -1
  53. package/build/cjs/blocks/Icons/index.d.ts +20 -0
  54. package/build/cjs/blocks/Icons/index.js +64 -0
  55. package/build/cjs/blocks/Icons/index.js.map +1 -0
  56. package/build/cjs/blocks/Info/index.d.ts +22 -0
  57. package/build/cjs/blocks/Info/index.js +43 -0
  58. package/build/cjs/blocks/Info/index.js.map +1 -0
  59. package/build/cjs/blocks/Map/index.d.ts +12 -0
  60. package/build/cjs/blocks/Map/index.js +19 -0
  61. package/build/cjs/blocks/Map/index.js.map +1 -0
  62. package/build/cjs/blocks/Media/index.d.ts +39 -0
  63. package/build/cjs/blocks/Media/index.js +57 -0
  64. package/build/cjs/blocks/Media/index.js.map +1 -0
  65. package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +15 -13
  66. package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js.map +1 -1
  67. package/build/cjs/blocks/PromoFeaturesBlock/index.d.ts +22 -0
  68. package/build/cjs/blocks/PromoFeaturesBlock/index.js +49 -0
  69. package/build/cjs/blocks/PromoFeaturesBlock/index.js.map +1 -0
  70. package/build/cjs/blocks/Questions/Questions.js +6 -5
  71. package/build/cjs/blocks/Questions/Questions.js.map +1 -1
  72. package/build/cjs/blocks/Questions/index.d.ts +30 -0
  73. package/build/cjs/blocks/Questions/index.js +49 -0
  74. package/build/cjs/blocks/Questions/index.js.map +1 -0
  75. package/build/cjs/blocks/Share/Share.js +11 -10
  76. package/build/cjs/blocks/Share/Share.js.map +1 -1
  77. package/build/cjs/blocks/Share/index.d.ts +13 -0
  78. package/build/cjs/blocks/Share/index.js +20 -0
  79. package/build/cjs/blocks/Share/index.js.map +1 -0
  80. package/build/cjs/blocks/Slider/Slider.js +12 -10
  81. package/build/cjs/blocks/Slider/Slider.js.map +1 -1
  82. package/build/cjs/blocks/Slider/dynamic-form.d.ts +3 -0
  83. package/build/cjs/blocks/Slider/dynamic-form.js +226 -0
  84. package/build/cjs/blocks/Slider/dynamic-form.js.map +1 -0
  85. package/build/cjs/blocks/Slider/index.d.ts +28 -0
  86. package/build/cjs/blocks/Slider/index.js +47 -0
  87. package/build/cjs/blocks/Slider/index.js.map +1 -0
  88. package/build/cjs/blocks/Table/index.d.ts +18 -0
  89. package/build/cjs/blocks/Table/index.js +32 -0
  90. package/build/cjs/blocks/Table/index.js.map +1 -0
  91. package/build/cjs/blocks/Table/schema.d.ts +1 -0
  92. package/build/cjs/blocks/Table/schema.js +1 -0
  93. package/build/cjs/blocks/Table/schema.js.map +1 -1
  94. package/build/cjs/blocks/Tabs/Tabs.js +4 -4
  95. package/build/cjs/blocks/Tabs/Tabs.js.map +1 -1
  96. package/build/cjs/blocks/Tabs/index.d.ts +17 -0
  97. package/build/cjs/blocks/Tabs/index.js +31 -0
  98. package/build/cjs/blocks/Tabs/index.js.map +1 -0
  99. package/build/cjs/blocks/TestEditorBlock/TestEditorBlock.d.ts +5 -0
  100. package/build/cjs/blocks/TestEditorBlock/TestEditorBlock.js +12 -0
  101. package/build/cjs/blocks/TestEditorBlock/TestEditorBlock.js.map +1 -0
  102. package/build/cjs/blocks/TestEditorBlock/form.d.ts +3 -0
  103. package/build/cjs/blocks/TestEditorBlock/form.js +91 -0
  104. package/build/cjs/blocks/TestEditorBlock/form.js.map +1 -0
  105. package/build/cjs/blocks/TestEditorBlock/index.d.ts +11 -0
  106. package/build/cjs/blocks/TestEditorBlock/index.js +18 -0
  107. package/build/cjs/blocks/TestEditorBlock/index.js.map +1 -0
  108. package/build/cjs/components/BlockBase/BlockBase.css +8 -16
  109. package/build/cjs/components/Image/dynamic-form.d.ts +2 -0
  110. package/build/cjs/components/Image/dynamic-form.js +85 -0
  111. package/build/cjs/components/Image/dynamic-form.js.map +1 -0
  112. package/build/cjs/components/editor/ItemWrap/ItemWrap.css +9 -0
  113. package/build/cjs/components/editor/ItemWrap/ItemWrap.d.ts +6 -0
  114. package/build/cjs/components/editor/ItemWrap/ItemWrap.js +12 -0
  115. package/build/cjs/components/editor/ItemWrap/ItemWrap.js.map +1 -0
  116. package/build/cjs/constructor-items.d.ts +22 -6
  117. package/build/cjs/constructor-items.js +80 -6
  118. package/build/cjs/constructor-items.js.map +1 -1
  119. package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +1 -1
  120. package/build/cjs/containers/PageConstructor/PageConstructor.js +18 -10
  121. package/build/cjs/containers/PageConstructor/PageConstructor.js.map +1 -1
  122. package/build/cjs/containers/PageConstructor/Provider.js +2 -0
  123. package/build/cjs/containers/PageConstructor/Provider.js.map +1 -1
  124. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.css +10 -6
  125. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +3 -1
  126. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js.map +1 -1
  127. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -6
  128. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js.map +1 -1
  129. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
  130. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +2 -1
  131. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js.map +1 -1
  132. package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +2 -1
  133. package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js.map +1 -1
  134. package/build/cjs/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +1 -2
  135. package/build/cjs/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js.map +1 -1
  136. package/build/cjs/context/blockIdContext/blockIdContext.d.ts +2 -2
  137. package/build/cjs/context/blockIdContext/blockIdContext.js +1 -1
  138. package/build/cjs/context/blockIdContext/blockIdContext.js.map +1 -1
  139. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.d.ts +7 -0
  140. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.js +10 -0
  141. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.js.map +1 -0
  142. package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.d.ts +5 -0
  143. package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.js +34 -0
  144. package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.js.map +1 -0
  145. package/build/cjs/context/editorStoreContext/index.d.ts +2 -0
  146. package/build/cjs/context/editorStoreContext/index.js +6 -0
  147. package/build/cjs/context/editorStoreContext/index.js.map +1 -0
  148. package/build/cjs/editor/components/CodeEditor/CodeEditor.d.ts +1 -2
  149. package/build/cjs/editor/components/CodeEditor/CodeEditor.js +5 -6
  150. package/build/cjs/editor/components/CodeEditor/CodeEditor.js.map +1 -1
  151. package/build/cjs/editor/data/templates/test-editor-block.json +18 -0
  152. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.css +0 -0
  153. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.d.ts +9 -0
  154. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.js +115 -0
  155. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.js.map +1 -0
  156. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +89 -0
  157. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +12 -0
  158. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +27 -0
  159. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.js.map +1 -0
  160. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.css +37 -0
  161. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +11 -0
  162. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.js +68 -0
  163. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.js.map +1 -0
  164. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +10 -0
  165. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +22 -0
  166. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js.map +1 -0
  167. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.css +3 -0
  168. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.d.ts +8 -0
  169. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js +13 -0
  170. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js.map +1 -0
  171. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +8 -0
  172. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.js +16 -0
  173. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.js.map +1 -0
  174. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +10 -0
  175. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.js +12 -0
  176. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.js.map +1 -0
  177. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +6 -0
  178. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +9 -0
  179. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +35 -0
  180. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js.map +1 -0
  181. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.css +3 -0
  182. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.d.ts +11 -0
  183. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.js +14 -0
  184. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.js.map +1 -0
  185. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +8 -0
  186. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.js +13 -0
  187. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.js.map +1 -0
  188. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +8 -0
  189. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +13 -0
  190. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js.map +1 -0
  191. package/build/cjs/editor-v2/components/DynamicForm/utils.d.ts +3 -0
  192. package/build/cjs/editor-v2/components/DynamicForm/utils.js +23 -0
  193. package/build/cjs/editor-v2/components/DynamicForm/utils.js.map +1 -0
  194. package/build/cjs/editor-v2/components/Panels/Panels.css +37 -0
  195. package/build/cjs/editor-v2/components/Panels/Panels.d.ts +8 -0
  196. package/build/cjs/editor-v2/components/Panels/Panels.js +28 -0
  197. package/build/cjs/editor-v2/components/Panels/Panels.js.map +1 -0
  198. package/build/cjs/editor-v2/components/Sidebar/Sidebar.css +24 -0
  199. package/build/cjs/editor-v2/components/Sidebar/Sidebar.d.ts +10 -0
  200. package/build/cjs/editor-v2/components/Sidebar/Sidebar.js +13 -0
  201. package/build/cjs/editor-v2/components/Sidebar/Sidebar.js.map +1 -0
  202. package/build/cjs/editor-v2/components/StoreViewer/StoreViewer.css +29 -0
  203. package/build/cjs/editor-v2/components/StoreViewer/StoreViewer.d.ts +6 -0
  204. package/build/cjs/editor-v2/components/StoreViewer/StoreViewer.js +17 -0
  205. package/build/cjs/editor-v2/components/StoreViewer/StoreViewer.js.map +1 -0
  206. package/build/cjs/editor-v2/components/Tabs/Tabs.css +26 -0
  207. package/build/cjs/editor-v2/components/Tabs/Tabs.d.ts +13 -0
  208. package/build/cjs/editor-v2/components/Tabs/Tabs.js +32 -0
  209. package/build/cjs/editor-v2/components/Tabs/Tabs.js.map +1 -0
  210. package/build/cjs/editor-v2/constants.d.ts +1 -0
  211. package/build/cjs/editor-v2/constants.js +5 -0
  212. package/build/cjs/editor-v2/constants.js.map +1 -0
  213. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.css +35 -0
  214. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.d.ts +4 -0
  215. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js +58 -0
  216. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js.map +1 -0
  217. package/build/cjs/editor-v2/containers/BlockConfig/BlockConfig.css +33 -0
  218. package/build/cjs/editor-v2/containers/BlockConfig/BlockConfig.d.ts +5 -0
  219. package/build/cjs/editor-v2/containers/BlockConfig/BlockConfig.js +28 -0
  220. package/build/cjs/editor-v2/containers/BlockConfig/BlockConfig.js.map +1 -0
  221. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.css +65 -0
  222. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.d.ts +2 -0
  223. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.js +43 -0
  224. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.js.map +1 -0
  225. package/build/cjs/editor-v2/containers/Editor/Editor.css +51 -0
  226. package/build/cjs/editor-v2/containers/Editor/Editor.d.ts +21 -0
  227. package/build/cjs/editor-v2/containers/Editor/Editor.js +40 -0
  228. package/build/cjs/editor-v2/containers/Editor/Editor.js.map +1 -0
  229. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.css +24 -0
  230. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.d.ts +5 -0
  231. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.js +17 -0
  232. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.js.map +1 -0
  233. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.css +62 -0
  234. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.d.ts +7 -0
  235. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.js +34 -0
  236. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.js.map +1 -0
  237. package/build/cjs/editor-v2/containers/Overlay/Overlay.css +60 -0
  238. package/build/cjs/editor-v2/containers/Overlay/Overlay.d.ts +6 -0
  239. package/build/cjs/editor-v2/containers/Overlay/Overlay.js +90 -0
  240. package/build/cjs/editor-v2/containers/Overlay/Overlay.js.map +1 -0
  241. package/build/cjs/editor-v2/containers/Source/Source.css +27 -0
  242. package/build/cjs/editor-v2/containers/Source/Source.d.ts +2 -0
  243. package/build/cjs/editor-v2/containers/Source/Source.js +28 -0
  244. package/build/cjs/editor-v2/containers/Source/Source.js.map +1 -0
  245. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.css +50 -0
  246. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.d.ts +6 -0
  247. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.js +41 -0
  248. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.js.map +1 -0
  249. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.css +3 -0
  250. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.d.ts +7 -0
  251. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js +18 -0
  252. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js.map +1 -0
  253. package/build/cjs/editor-v2/containers/Tree/DragContext.css +38 -0
  254. package/build/cjs/editor-v2/containers/Tree/DragContext.d.ts +14 -0
  255. package/build/cjs/editor-v2/containers/Tree/DragContext.js +49 -0
  256. package/build/cjs/editor-v2/containers/Tree/DragContext.js.map +1 -0
  257. package/build/cjs/editor-v2/containers/Tree/Tree.css +23 -0
  258. package/build/cjs/editor-v2/containers/Tree/Tree.d.ts +2 -0
  259. package/build/cjs/editor-v2/containers/Tree/Tree.js +36 -0
  260. package/build/cjs/editor-v2/containers/Tree/Tree.js.map +1 -0
  261. package/build/cjs/editor-v2/containers/Tree/TreeContent.css +28 -0
  262. package/build/cjs/editor-v2/containers/Tree/TreeContent.d.ts +16 -0
  263. package/build/cjs/editor-v2/containers/Tree/TreeContent.js +61 -0
  264. package/build/cjs/editor-v2/containers/Tree/TreeContent.js.map +1 -0
  265. package/build/cjs/editor-v2/containers/Tree/TreeItem.css +66 -0
  266. package/build/cjs/editor-v2/containers/Tree/TreeItem.d.ts +13 -0
  267. package/build/cjs/editor-v2/containers/Tree/TreeItem.js +144 -0
  268. package/build/cjs/editor-v2/containers/Tree/TreeItem.js.map +1 -0
  269. package/build/cjs/editor-v2/containers/Tree/index.d.ts +4 -0
  270. package/build/cjs/editor-v2/containers/Tree/index.js +10 -0
  271. package/build/cjs/editor-v2/containers/Tree/index.js.map +1 -0
  272. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.css +23 -0
  273. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.d.ts +3 -0
  274. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.js +54 -0
  275. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.js.map +1 -0
  276. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.d.ts +7 -0
  277. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.js +10 -0
  278. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.js.map +1 -0
  279. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.d.ts +5 -0
  280. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.js +35 -0
  281. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.js.map +1 -0
  282. package/build/cjs/editor-v2/context/editorStore/index.d.ts +2 -0
  283. package/build/cjs/editor-v2/context/editorStore/index.js +6 -0
  284. package/build/cjs/editor-v2/context/editorStore/index.js.map +1 -0
  285. package/build/cjs/editor-v2/context/iframeContext/IframeContext.d.ts +12 -0
  286. package/build/cjs/editor-v2/context/iframeContext/IframeContext.js +14 -0
  287. package/build/cjs/editor-v2/context/iframeContext/IframeContext.js.map +1 -0
  288. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.d.ts +7 -0
  289. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.js +21 -0
  290. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.js.map +1 -0
  291. package/build/cjs/editor-v2/context/iframeContext/index.d.ts +2 -0
  292. package/build/cjs/editor-v2/context/iframeContext/index.js +6 -0
  293. package/build/cjs/editor-v2/context/iframeContext/index.js.map +1 -0
  294. package/build/cjs/editor-v2/hooks/useEditorTabs.d.ts +16 -0
  295. package/build/cjs/editor-v2/hooks/useEditorTabs.js +77 -0
  296. package/build/cjs/editor-v2/hooks/useEditorTabs.js.map +1 -0
  297. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.d.ts +2 -0
  298. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js +31 -0
  299. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js.map +1 -0
  300. package/build/cjs/editor-v2/hooks/useMainEditorStore.d.ts +1 -0
  301. package/build/cjs/editor-v2/hooks/useMainEditorStore.js +13 -0
  302. package/build/cjs/editor-v2/hooks/useMainEditorStore.js.map +1 -0
  303. package/build/cjs/editor-v2/hooks/usePostMessageEvents.d.ts +6 -0
  304. package/build/cjs/editor-v2/hooks/usePostMessageEvents.js +19 -0
  305. package/build/cjs/editor-v2/hooks/usePostMessageEvents.js.map +1 -0
  306. package/build/cjs/editor-v2/index.d.ts +2 -0
  307. package/build/cjs/editor-v2/index.js +8 -0
  308. package/build/cjs/editor-v2/index.js.map +1 -0
  309. package/build/cjs/editor-v2/store.d.ts +48 -0
  310. package/build/cjs/editor-v2/store.js +181 -0
  311. package/build/cjs/editor-v2/store.js.map +1 -0
  312. package/build/cjs/editor-v2/styles/mixins.css +0 -0
  313. package/build/cjs/editor-v2/styles/root.css +12 -0
  314. package/build/cjs/editor-v2/styles/variables.css +0 -0
  315. package/build/cjs/editor-v2/utils/cn.d.ts +2 -0
  316. package/build/cjs/editor-v2/utils/cn.js +7 -0
  317. package/build/cjs/editor-v2/utils/cn.js.map +1 -0
  318. package/build/cjs/editor-v2/utils/code.d.ts +6 -0
  319. package/build/cjs/editor-v2/utils/code.js +13 -0
  320. package/build/cjs/editor-v2/utils/code.js.map +1 -0
  321. package/build/cjs/editor-v2/utils/index.d.ts +18 -0
  322. package/build/cjs/editor-v2/utils/index.js +159 -0
  323. package/build/cjs/editor-v2/utils/index.js.map +1 -0
  324. package/build/cjs/grid/Grid/Grid.css +2 -6
  325. package/build/cjs/hooks/useAnalytics.js +1 -1
  326. package/build/cjs/hooks/useAnalytics.js.map +1 -1
  327. package/build/cjs/hooks/usePCEditorBlockMouseEvents.d.ts +8 -0
  328. package/build/cjs/hooks/usePCEditorBlockMouseEvents.js +50 -0
  329. package/build/cjs/hooks/usePCEditorBlockMouseEvents.js.map +1 -0
  330. package/build/cjs/hooks/usePCEditorBlockSelection.d.ts +2 -0
  331. package/build/cjs/hooks/usePCEditorBlockSelection.js +30 -0
  332. package/build/cjs/hooks/usePCEditorBlockSelection.js.map +1 -0
  333. package/build/cjs/hooks/usePCEditorInitializeEvents.d.ts +7 -0
  334. package/build/cjs/hooks/usePCEditorInitializeEvents.js +63 -0
  335. package/build/cjs/hooks/usePCEditorInitializeEvents.js.map +1 -0
  336. package/build/cjs/hooks/usePCEditorItemWrap.d.ts +10 -0
  337. package/build/cjs/hooks/usePCEditorItemWrap.js +21 -0
  338. package/build/cjs/hooks/usePCEditorItemWrap.js.map +1 -0
  339. package/build/cjs/hooks/usePCEditorStore.d.ts +1 -0
  340. package/build/cjs/hooks/usePCEditorStore.js +13 -0
  341. package/build/cjs/hooks/usePCEditorStore.js.map +1 -0
  342. package/build/cjs/hooks/usePostMessageAPI.d.ts +4 -0
  343. package/build/cjs/hooks/usePostMessageAPI.js +30 -0
  344. package/build/cjs/hooks/usePostMessageAPI.js.map +1 -0
  345. package/build/cjs/models/constructor-items/blocks.d.ts +1 -0
  346. package/build/cjs/models/constructor-items/blocks.js +1 -0
  347. package/build/cjs/models/constructor-items/blocks.js.map +1 -1
  348. package/build/cjs/models/constructor.d.ts +4 -1
  349. package/build/cjs/models/constructor.js.map +1 -1
  350. package/build/cjs/models/navigation.d.ts +2 -2
  351. package/build/cjs/models/navigation.js.map +1 -1
  352. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js +1 -1
  353. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js.map +1 -1
  354. package/build/cjs/navigation/components/Navigation/Navigation.d.ts +2 -2
  355. package/build/cjs/navigation/components/Navigation/Navigation.js +1 -1
  356. package/build/cjs/navigation/components/Navigation/Navigation.js.map +1 -1
  357. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +4 -1
  358. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
  359. package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +4 -1
  360. package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js.map +1 -1
  361. package/build/cjs/navigation/containers/Layout/Layout.css +0 -1
  362. package/build/cjs/navigation/containers/Layout/Layout.js +1 -0
  363. package/build/cjs/navigation/containers/Layout/Layout.js.map +1 -1
  364. package/build/cjs/navigation/models.d.ts +1 -1
  365. package/build/cjs/navigation/models.js.map +1 -1
  366. package/build/cjs/schema/constants.js +2 -0
  367. package/build/cjs/schema/constants.js.map +1 -1
  368. package/build/cjs/schema/index.d.ts +256 -0
  369. package/build/cjs/schema/index.js +12 -6
  370. package/build/cjs/schema/index.js.map +1 -1
  371. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.d.ts +2 -0
  372. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.js +82 -0
  373. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.js.map +1 -0
  374. package/build/cjs/sub-blocks/BackgroundCard/index.d.ts +3 -0
  375. package/build/cjs/sub-blocks/BackgroundCard/index.js +22 -0
  376. package/build/cjs/sub-blocks/BackgroundCard/index.js.map +1 -0
  377. package/build/cjs/sub-blocks/BannerCard/BannerCard.js +2 -1
  378. package/build/cjs/sub-blocks/BannerCard/BannerCard.js.map +1 -1
  379. package/build/cjs/sub-blocks/BannerCard/index.d.ts +3 -0
  380. package/build/cjs/sub-blocks/BannerCard/index.js +24 -0
  381. package/build/cjs/sub-blocks/BannerCard/index.js.map +1 -0
  382. package/build/cjs/sub-blocks/BasicCard/index.d.ts +3 -0
  383. package/build/cjs/sub-blocks/BasicCard/index.js +20 -0
  384. package/build/cjs/sub-blocks/BasicCard/index.js.map +1 -0
  385. package/build/cjs/sub-blocks/Content/index.d.ts +3 -0
  386. package/build/cjs/sub-blocks/Content/index.js +20 -0
  387. package/build/cjs/sub-blocks/Content/index.js.map +1 -0
  388. package/build/cjs/sub-blocks/Content/schema.d.ts +1 -0
  389. package/build/cjs/sub-blocks/Content/schema.js +1 -0
  390. package/build/cjs/sub-blocks/Content/schema.js.map +1 -1
  391. package/build/cjs/sub-blocks/Divider/index.d.ts +3 -0
  392. package/build/cjs/sub-blocks/Divider/index.js +16 -0
  393. package/build/cjs/sub-blocks/Divider/index.js.map +1 -0
  394. package/build/cjs/sub-blocks/ImageCard/ImageCard.js +1 -1
  395. package/build/cjs/sub-blocks/ImageCard/ImageCard.js.map +1 -1
  396. package/build/cjs/sub-blocks/ImageCard/index.d.ts +3 -0
  397. package/build/cjs/sub-blocks/ImageCard/index.js +20 -0
  398. package/build/cjs/sub-blocks/ImageCard/index.js.map +1 -0
  399. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +1 -1
  400. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js.map +1 -1
  401. package/build/cjs/sub-blocks/LayoutItem/index.d.ts +3 -0
  402. package/build/cjs/sub-blocks/LayoutItem/index.js +26 -0
  403. package/build/cjs/sub-blocks/LayoutItem/index.js.map +1 -0
  404. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +211 -206
  405. package/build/cjs/sub-blocks/LayoutItem/schema.js +6 -5
  406. package/build/cjs/sub-blocks/LayoutItem/schema.js.map +1 -1
  407. package/build/cjs/sub-blocks/MediaCard/index.d.ts +3 -0
  408. package/build/cjs/sub-blocks/MediaCard/index.js +23 -0
  409. package/build/cjs/sub-blocks/MediaCard/index.js.map +1 -0
  410. package/build/cjs/sub-blocks/PriceCard/index.d.ts +3 -0
  411. package/build/cjs/sub-blocks/PriceCard/index.js +33 -0
  412. package/build/cjs/sub-blocks/PriceCard/index.js.map +1 -0
  413. package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
  414. package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js.map +1 -1
  415. package/build/cjs/sub-blocks/PriceDetailed/index.d.ts +4 -0
  416. package/build/cjs/sub-blocks/PriceDetailed/index.js +35 -0
  417. package/build/cjs/sub-blocks/PriceDetailed/index.js.map +1 -0
  418. package/build/cjs/sub-blocks/Quote/index.d.ts +3 -0
  419. package/build/cjs/sub-blocks/Quote/index.js +23 -0
  420. package/build/cjs/sub-blocks/Quote/index.js.map +1 -0
  421. package/build/cjs/utils/editor.d.ts +2 -0
  422. package/build/cjs/utils/editor.js +25 -0
  423. package/build/cjs/utils/editor.js.map +1 -0
  424. package/build/cjs/utils/form-generator.d.ts +9 -0
  425. package/build/cjs/utils/form-generator.js +131 -0
  426. package/build/cjs/utils/form-generator.js.map +1 -0
  427. package/build/cjs/utils/index.d.ts +1 -0
  428. package/build/cjs/utils/index.js +1 -0
  429. package/build/cjs/utils/index.js.map +1 -1
  430. package/build/cjs/utils/navigation.d.ts +3 -0
  431. package/build/cjs/utils/navigation.js +14 -0
  432. package/build/cjs/utils/navigation.js.map +1 -0
  433. package/build/esm/blocks/Banner/Banner.js +2 -1
  434. package/build/esm/blocks/Banner/Banner.js.map +1 -1
  435. package/build/esm/blocks/Banner/index.d.ts +3 -0
  436. package/build/esm/blocks/Banner/index.js +21 -0
  437. package/build/esm/blocks/Banner/index.js.map +1 -0
  438. package/build/esm/blocks/CardLayout/CardLayout.css +1 -0
  439. package/build/esm/blocks/CardLayout/CardLayout.js +5 -4
  440. package/build/esm/blocks/CardLayout/CardLayout.js.map +1 -1
  441. package/build/esm/blocks/CardLayout/index.d.ts +5 -0
  442. package/build/esm/blocks/CardLayout/index.js +182 -0
  443. package/build/esm/blocks/CardLayout/index.js.map +1 -0
  444. package/build/esm/blocks/Companies/Companies.js +2 -1
  445. package/build/esm/blocks/Companies/Companies.js.map +1 -1
  446. package/build/esm/blocks/Companies/index.d.ts +3 -0
  447. package/build/esm/blocks/Companies/index.js +17 -0
  448. package/build/esm/blocks/Companies/index.js.map +1 -0
  449. package/build/esm/blocks/ContentLayout/ContentLayout.js +2 -2
  450. package/build/esm/blocks/ContentLayout/ContentLayout.js.map +1 -1
  451. package/build/esm/blocks/ContentLayout/index.d.ts +41 -0
  452. package/build/esm/blocks/ContentLayout/index.js +78 -0
  453. package/build/esm/blocks/ContentLayout/index.js.map +1 -0
  454. package/build/esm/blocks/ContentLayout/schema.d.ts +1 -0
  455. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +14 -13
  456. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
  457. package/build/esm/blocks/ExtendedFeatures/index.d.ts +58 -0
  458. package/build/esm/blocks/ExtendedFeatures/index.js +74 -0
  459. package/build/esm/blocks/ExtendedFeatures/index.js.map +1 -0
  460. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +1 -0
  461. package/build/esm/blocks/ExtendedFeatures/schema.js +1 -0
  462. package/build/esm/blocks/ExtendedFeatures/schema.js.map +1 -1
  463. package/build/esm/blocks/FilterBlock/FilterBlock.js +6 -6
  464. package/build/esm/blocks/FilterBlock/FilterBlock.js.map +1 -1
  465. package/build/esm/blocks/FilterBlock/index.d.ts +29 -0
  466. package/build/esm/blocks/FilterBlock/index.js +95 -0
  467. package/build/esm/blocks/FilterBlock/index.js.map +1 -0
  468. package/build/esm/blocks/Form/index.d.ts +13 -0
  469. package/build/esm/blocks/Form/index.js +17 -0
  470. package/build/esm/blocks/Form/index.js.map +1 -0
  471. package/build/esm/blocks/Header/dynamic-form.d.ts +2 -0
  472. package/build/esm/blocks/Header/dynamic-form.js +728 -0
  473. package/build/esm/blocks/Header/dynamic-form.js.map +1 -0
  474. package/build/esm/blocks/Header/index.d.ts +20 -0
  475. package/build/esm/blocks/Header/index.js +31 -0
  476. package/build/esm/blocks/Header/index.js.map +1 -0
  477. package/build/esm/blocks/HeaderSlider/HeaderSlider.js +2 -1
  478. package/build/esm/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
  479. package/build/esm/blocks/HeaderSlider/index.d.ts +32 -0
  480. package/build/esm/blocks/HeaderSlider/index.js +37 -0
  481. package/build/esm/blocks/HeaderSlider/index.js.map +1 -0
  482. package/build/esm/blocks/Icons/Icons.js +8 -6
  483. package/build/esm/blocks/Icons/Icons.js.map +1 -1
  484. package/build/esm/blocks/Icons/index.d.ts +20 -0
  485. package/build/esm/blocks/Icons/index.js +61 -0
  486. package/build/esm/blocks/Icons/index.js.map +1 -0
  487. package/build/esm/blocks/Info/index.d.ts +22 -0
  488. package/build/esm/blocks/Info/index.js +40 -0
  489. package/build/esm/blocks/Info/index.js.map +1 -0
  490. package/build/esm/blocks/Map/index.d.ts +12 -0
  491. package/build/esm/blocks/Map/index.js +16 -0
  492. package/build/esm/blocks/Map/index.js.map +1 -0
  493. package/build/esm/blocks/Media/index.d.ts +39 -0
  494. package/build/esm/blocks/Media/index.js +54 -0
  495. package/build/esm/blocks/Media/index.js.map +1 -0
  496. package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +15 -13
  497. package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js.map +1 -1
  498. package/build/esm/blocks/PromoFeaturesBlock/index.d.ts +22 -0
  499. package/build/esm/blocks/PromoFeaturesBlock/index.js +46 -0
  500. package/build/esm/blocks/PromoFeaturesBlock/index.js.map +1 -0
  501. package/build/esm/blocks/Questions/Questions.js +7 -6
  502. package/build/esm/blocks/Questions/Questions.js.map +1 -1
  503. package/build/esm/blocks/Questions/index.d.ts +30 -0
  504. package/build/esm/blocks/Questions/index.js +46 -0
  505. package/build/esm/blocks/Questions/index.js.map +1 -0
  506. package/build/esm/blocks/Share/Share.js +11 -10
  507. package/build/esm/blocks/Share/Share.js.map +1 -1
  508. package/build/esm/blocks/Share/index.d.ts +13 -0
  509. package/build/esm/blocks/Share/index.js +17 -0
  510. package/build/esm/blocks/Share/index.js.map +1 -0
  511. package/build/esm/blocks/Slider/Slider.js +12 -10
  512. package/build/esm/blocks/Slider/Slider.js.map +1 -1
  513. package/build/esm/blocks/Slider/dynamic-form.d.ts +3 -0
  514. package/build/esm/blocks/Slider/dynamic-form.js +223 -0
  515. package/build/esm/blocks/Slider/dynamic-form.js.map +1 -0
  516. package/build/esm/blocks/Slider/index.d.ts +28 -0
  517. package/build/esm/blocks/Slider/index.js +44 -0
  518. package/build/esm/blocks/Slider/index.js.map +1 -0
  519. package/build/esm/blocks/Table/index.d.ts +18 -0
  520. package/build/esm/blocks/Table/index.js +29 -0
  521. package/build/esm/blocks/Table/index.js.map +1 -0
  522. package/build/esm/blocks/Table/schema.d.ts +1 -0
  523. package/build/esm/blocks/Table/schema.js +1 -0
  524. package/build/esm/blocks/Table/schema.js.map +1 -1
  525. package/build/esm/blocks/Tabs/Tabs.js +5 -5
  526. package/build/esm/blocks/Tabs/Tabs.js.map +1 -1
  527. package/build/esm/blocks/Tabs/index.d.ts +17 -0
  528. package/build/esm/blocks/Tabs/index.js +28 -0
  529. package/build/esm/blocks/Tabs/index.js.map +1 -0
  530. package/build/esm/blocks/TestEditorBlock/TestEditorBlock.d.ts +5 -0
  531. package/build/esm/blocks/TestEditorBlock/TestEditorBlock.js +8 -0
  532. package/build/esm/blocks/TestEditorBlock/TestEditorBlock.js.map +1 -0
  533. package/build/esm/blocks/TestEditorBlock/form.d.ts +3 -0
  534. package/build/esm/blocks/TestEditorBlock/form.js +89 -0
  535. package/build/esm/blocks/TestEditorBlock/form.js.map +1 -0
  536. package/build/esm/blocks/TestEditorBlock/index.d.ts +11 -0
  537. package/build/esm/blocks/TestEditorBlock/index.js +14 -0
  538. package/build/esm/blocks/TestEditorBlock/index.js.map +1 -0
  539. package/build/esm/components/BlockBase/BlockBase.css +8 -16
  540. package/build/esm/components/Image/dynamic-form.d.ts +2 -0
  541. package/build/esm/components/Image/dynamic-form.js +81 -0
  542. package/build/esm/components/Image/dynamic-form.js.map +1 -0
  543. package/build/esm/components/editor/ItemWrap/ItemWrap.css +9 -0
  544. package/build/esm/components/editor/ItemWrap/ItemWrap.d.ts +7 -0
  545. package/build/esm/components/editor/ItemWrap/ItemWrap.js +11 -0
  546. package/build/esm/components/editor/ItemWrap/ItemWrap.js.map +1 -0
  547. package/build/esm/constructor-items.d.ts +22 -6
  548. package/build/esm/constructor-items.js +75 -1
  549. package/build/esm/constructor-items.js.map +1 -1
  550. package/build/esm/containers/PageConstructor/PageConstructor.d.ts +1 -1
  551. package/build/esm/containers/PageConstructor/PageConstructor.js +20 -12
  552. package/build/esm/containers/PageConstructor/PageConstructor.js.map +1 -1
  553. package/build/esm/containers/PageConstructor/Provider.js +2 -0
  554. package/build/esm/containers/PageConstructor/Provider.js.map +1 -1
  555. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.css +10 -6
  556. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +3 -1
  557. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js.map +1 -1
  558. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -6
  559. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js.map +1 -1
  560. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
  561. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +2 -1
  562. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js.map +1 -1
  563. package/build/esm/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +2 -1
  564. package/build/esm/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js.map +1 -1
  565. package/build/esm/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +1 -2
  566. package/build/esm/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js.map +1 -1
  567. package/build/esm/context/blockIdContext/blockIdContext.d.ts +2 -2
  568. package/build/esm/context/blockIdContext/blockIdContext.js +1 -1
  569. package/build/esm/context/blockIdContext/blockIdContext.js.map +1 -1
  570. package/build/esm/context/editorStoreContext/PCEditorStoreContext.d.ts +7 -0
  571. package/build/esm/context/editorStoreContext/PCEditorStoreContext.js +6 -0
  572. package/build/esm/context/editorStoreContext/PCEditorStoreContext.js.map +1 -0
  573. package/build/esm/context/editorStoreContext/PCEditorStoreProvider.d.ts +5 -0
  574. package/build/esm/context/editorStoreContext/PCEditorStoreProvider.js +29 -0
  575. package/build/esm/context/editorStoreContext/PCEditorStoreProvider.js.map +1 -0
  576. package/build/esm/context/editorStoreContext/index.d.ts +2 -0
  577. package/build/esm/context/editorStoreContext/index.js +3 -0
  578. package/build/esm/context/editorStoreContext/index.js.map +1 -0
  579. package/build/esm/editor/components/CodeEditor/CodeEditor.d.ts +1 -2
  580. package/build/esm/editor/components/CodeEditor/CodeEditor.js +4 -6
  581. package/build/esm/editor/components/CodeEditor/CodeEditor.js.map +1 -1
  582. package/build/esm/editor/data/templates/test-editor-block.json +18 -0
  583. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.css +0 -0
  584. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.d.ts +10 -0
  585. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.js +113 -0
  586. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.js.map +1 -0
  587. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +89 -0
  588. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +13 -0
  589. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +25 -0
  590. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.js.map +1 -0
  591. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.css +37 -0
  592. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +12 -0
  593. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.js +66 -0
  594. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.js.map +1 -0
  595. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +10 -0
  596. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +19 -0
  597. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js.map +1 -0
  598. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.css +3 -0
  599. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.d.ts +9 -0
  600. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js +11 -0
  601. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js.map +1 -0
  602. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +8 -0
  603. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.js +13 -0
  604. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.js.map +1 -0
  605. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +10 -0
  606. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.js +9 -0
  607. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.js.map +1 -0
  608. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +6 -0
  609. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +10 -0
  610. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +33 -0
  611. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js.map +1 -0
  612. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.css +3 -0
  613. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.d.ts +12 -0
  614. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.js +12 -0
  615. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.js.map +1 -0
  616. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +8 -0
  617. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.js +10 -0
  618. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.js.map +1 -0
  619. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +8 -0
  620. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +10 -0
  621. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js.map +1 -0
  622. package/build/esm/editor-v2/components/DynamicForm/utils.d.ts +3 -0
  623. package/build/esm/editor-v2/components/DynamicForm/utils.js +17 -0
  624. package/build/esm/editor-v2/components/DynamicForm/utils.js.map +1 -0
  625. package/build/esm/editor-v2/components/Panels/Panels.css +37 -0
  626. package/build/esm/editor-v2/components/Panels/Panels.d.ts +9 -0
  627. package/build/esm/editor-v2/components/Panels/Panels.js +24 -0
  628. package/build/esm/editor-v2/components/Panels/Panels.js.map +1 -0
  629. package/build/esm/editor-v2/components/Sidebar/Sidebar.css +24 -0
  630. package/build/esm/editor-v2/components/Sidebar/Sidebar.d.ts +11 -0
  631. package/build/esm/editor-v2/components/Sidebar/Sidebar.js +9 -0
  632. package/build/esm/editor-v2/components/Sidebar/Sidebar.js.map +1 -0
  633. package/build/esm/editor-v2/components/StoreViewer/StoreViewer.css +29 -0
  634. package/build/esm/editor-v2/components/StoreViewer/StoreViewer.d.ts +7 -0
  635. package/build/esm/editor-v2/components/StoreViewer/StoreViewer.js +15 -0
  636. package/build/esm/editor-v2/components/StoreViewer/StoreViewer.js.map +1 -0
  637. package/build/esm/editor-v2/components/Tabs/Tabs.css +26 -0
  638. package/build/esm/editor-v2/components/Tabs/Tabs.d.ts +14 -0
  639. package/build/esm/editor-v2/components/Tabs/Tabs.js +30 -0
  640. package/build/esm/editor-v2/components/Tabs/Tabs.js.map +1 -0
  641. package/build/esm/editor-v2/constants.d.ts +1 -0
  642. package/build/esm/editor-v2/constants.js +2 -0
  643. package/build/esm/editor-v2/constants.js.map +1 -0
  644. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.css +35 -0
  645. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.d.ts +5 -0
  646. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js +56 -0
  647. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js.map +1 -0
  648. package/build/esm/editor-v2/containers/BlockConfig/BlockConfig.css +33 -0
  649. package/build/esm/editor-v2/containers/BlockConfig/BlockConfig.d.ts +6 -0
  650. package/build/esm/editor-v2/containers/BlockConfig/BlockConfig.js +26 -0
  651. package/build/esm/editor-v2/containers/BlockConfig/BlockConfig.js.map +1 -0
  652. package/build/esm/editor-v2/containers/BlocksList/BlocksList.css +65 -0
  653. package/build/esm/editor-v2/containers/BlocksList/BlocksList.d.ts +3 -0
  654. package/build/esm/editor-v2/containers/BlocksList/BlocksList.js +41 -0
  655. package/build/esm/editor-v2/containers/BlocksList/BlocksList.js.map +1 -0
  656. package/build/esm/editor-v2/containers/Editor/Editor.css +51 -0
  657. package/build/esm/editor-v2/containers/Editor/Editor.d.ts +22 -0
  658. package/build/esm/editor-v2/containers/Editor/Editor.js +36 -0
  659. package/build/esm/editor-v2/containers/Editor/Editor.js.map +1 -0
  660. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.css +24 -0
  661. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.d.ts +6 -0
  662. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.js +15 -0
  663. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.js.map +1 -0
  664. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.css +62 -0
  665. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.d.ts +8 -0
  666. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.js +32 -0
  667. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.js.map +1 -0
  668. package/build/esm/editor-v2/containers/Overlay/Overlay.css +60 -0
  669. package/build/esm/editor-v2/containers/Overlay/Overlay.d.ts +7 -0
  670. package/build/esm/editor-v2/containers/Overlay/Overlay.js +88 -0
  671. package/build/esm/editor-v2/containers/Overlay/Overlay.js.map +1 -0
  672. package/build/esm/editor-v2/containers/Source/Source.css +27 -0
  673. package/build/esm/editor-v2/containers/Source/Source.d.ts +3 -0
  674. package/build/esm/editor-v2/containers/Source/Source.js +26 -0
  675. package/build/esm/editor-v2/containers/Source/Source.js.map +1 -0
  676. package/build/esm/editor-v2/containers/SourceCode/SourceCode.css +50 -0
  677. package/build/esm/editor-v2/containers/SourceCode/SourceCode.d.ts +7 -0
  678. package/build/esm/editor-v2/containers/SourceCode/SourceCode.js +39 -0
  679. package/build/esm/editor-v2/containers/SourceCode/SourceCode.js.map +1 -0
  680. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.css +3 -0
  681. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.d.ts +8 -0
  682. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js +14 -0
  683. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js.map +1 -0
  684. package/build/esm/editor-v2/containers/Tree/DragContext.css +38 -0
  685. package/build/esm/editor-v2/containers/Tree/DragContext.d.ts +15 -0
  686. package/build/esm/editor-v2/containers/Tree/DragContext.js +45 -0
  687. package/build/esm/editor-v2/containers/Tree/DragContext.js.map +1 -0
  688. package/build/esm/editor-v2/containers/Tree/Tree.css +23 -0
  689. package/build/esm/editor-v2/containers/Tree/Tree.d.ts +3 -0
  690. package/build/esm/editor-v2/containers/Tree/Tree.js +34 -0
  691. package/build/esm/editor-v2/containers/Tree/Tree.js.map +1 -0
  692. package/build/esm/editor-v2/containers/Tree/TreeContent.css +28 -0
  693. package/build/esm/editor-v2/containers/Tree/TreeContent.d.ts +17 -0
  694. package/build/esm/editor-v2/containers/Tree/TreeContent.js +57 -0
  695. package/build/esm/editor-v2/containers/Tree/TreeContent.js.map +1 -0
  696. package/build/esm/editor-v2/containers/Tree/TreeItem.css +66 -0
  697. package/build/esm/editor-v2/containers/Tree/TreeItem.d.ts +14 -0
  698. package/build/esm/editor-v2/containers/Tree/TreeItem.js +140 -0
  699. package/build/esm/editor-v2/containers/Tree/TreeItem.js.map +1 -0
  700. package/build/esm/editor-v2/containers/Tree/index.d.ts +4 -0
  701. package/build/esm/editor-v2/containers/Tree/index.js +5 -0
  702. package/build/esm/editor-v2/containers/Tree/index.js.map +1 -0
  703. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.css +23 -0
  704. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.d.ts +4 -0
  705. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.js +52 -0
  706. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.js.map +1 -0
  707. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.d.ts +7 -0
  708. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.js +6 -0
  709. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.js.map +1 -0
  710. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.d.ts +5 -0
  711. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.js +30 -0
  712. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.js.map +1 -0
  713. package/build/esm/editor-v2/context/editorStore/index.d.ts +2 -0
  714. package/build/esm/editor-v2/context/editorStore/index.js +3 -0
  715. package/build/esm/editor-v2/context/editorStore/index.js.map +1 -0
  716. package/build/esm/editor-v2/context/iframeContext/IframeContext.d.ts +12 -0
  717. package/build/esm/editor-v2/context/iframeContext/IframeContext.js +10 -0
  718. package/build/esm/editor-v2/context/iframeContext/IframeContext.js.map +1 -0
  719. package/build/esm/editor-v2/context/iframeContext/IframeProvider.d.ts +7 -0
  720. package/build/esm/editor-v2/context/iframeContext/IframeProvider.js +16 -0
  721. package/build/esm/editor-v2/context/iframeContext/IframeProvider.js.map +1 -0
  722. package/build/esm/editor-v2/context/iframeContext/index.d.ts +2 -0
  723. package/build/esm/editor-v2/context/iframeContext/index.js +3 -0
  724. package/build/esm/editor-v2/context/iframeContext/index.js.map +1 -0
  725. package/build/esm/editor-v2/hooks/useEditorTabs.d.ts +16 -0
  726. package/build/esm/editor-v2/hooks/useEditorTabs.js +72 -0
  727. package/build/esm/editor-v2/hooks/useEditorTabs.js.map +1 -0
  728. package/build/esm/editor-v2/hooks/useMainEditorInitialize.d.ts +2 -0
  729. package/build/esm/editor-v2/hooks/useMainEditorInitialize.js +29 -0
  730. package/build/esm/editor-v2/hooks/useMainEditorInitialize.js.map +1 -0
  731. package/build/esm/editor-v2/hooks/useMainEditorStore.d.ts +1 -0
  732. package/build/esm/editor-v2/hooks/useMainEditorStore.js +8 -0
  733. package/build/esm/editor-v2/hooks/useMainEditorStore.js.map +1 -0
  734. package/build/esm/editor-v2/hooks/usePostMessageEvents.d.ts +6 -0
  735. package/build/esm/editor-v2/hooks/usePostMessageEvents.js +15 -0
  736. package/build/esm/editor-v2/hooks/usePostMessageEvents.js.map +1 -0
  737. package/build/esm/editor-v2/index.d.ts +2 -0
  738. package/build/esm/editor-v2/index.js +3 -0
  739. package/build/esm/editor-v2/index.js.map +1 -0
  740. package/build/esm/editor-v2/store.d.ts +48 -0
  741. package/build/esm/editor-v2/store.js +177 -0
  742. package/build/esm/editor-v2/store.js.map +1 -0
  743. package/build/esm/editor-v2/styles/mixins.css +0 -0
  744. package/build/esm/editor-v2/styles/root.css +12 -0
  745. package/build/esm/editor-v2/styles/variables.css +0 -0
  746. package/build/esm/editor-v2/utils/cn.d.ts +2 -0
  747. package/build/esm/editor-v2/utils/cn.js +4 -0
  748. package/build/esm/editor-v2/utils/cn.js.map +1 -0
  749. package/build/esm/editor-v2/utils/code.d.ts +6 -0
  750. package/build/esm/editor-v2/utils/code.js +9 -0
  751. package/build/esm/editor-v2/utils/code.js.map +1 -0
  752. package/build/esm/editor-v2/utils/index.d.ts +18 -0
  753. package/build/esm/editor-v2/utils/index.js +141 -0
  754. package/build/esm/editor-v2/utils/index.js.map +1 -0
  755. package/build/esm/grid/Grid/Grid.css +2 -6
  756. package/build/esm/hooks/useAnalytics.js +1 -1
  757. package/build/esm/hooks/useAnalytics.js.map +1 -1
  758. package/build/esm/hooks/usePCEditorBlockMouseEvents.d.ts +8 -0
  759. package/build/esm/hooks/usePCEditorBlockMouseEvents.js +47 -0
  760. package/build/esm/hooks/usePCEditorBlockMouseEvents.js.map +1 -0
  761. package/build/esm/hooks/usePCEditorBlockSelection.d.ts +2 -0
  762. package/build/esm/hooks/usePCEditorBlockSelection.js +27 -0
  763. package/build/esm/hooks/usePCEditorBlockSelection.js.map +1 -0
  764. package/build/esm/hooks/usePCEditorInitializeEvents.d.ts +7 -0
  765. package/build/esm/hooks/usePCEditorInitializeEvents.js +58 -0
  766. package/build/esm/hooks/usePCEditorInitializeEvents.js.map +1 -0
  767. package/build/esm/hooks/usePCEditorItemWrap.d.ts +10 -0
  768. package/build/esm/hooks/usePCEditorItemWrap.js +17 -0
  769. package/build/esm/hooks/usePCEditorItemWrap.js.map +1 -0
  770. package/build/esm/hooks/usePCEditorStore.d.ts +1 -0
  771. package/build/esm/hooks/usePCEditorStore.js +8 -0
  772. package/build/esm/hooks/usePCEditorStore.js.map +1 -0
  773. package/build/esm/hooks/usePostMessageAPI.d.ts +4 -0
  774. package/build/esm/hooks/usePostMessageAPI.js +24 -0
  775. package/build/esm/hooks/usePostMessageAPI.js.map +1 -0
  776. package/build/esm/models/constructor-items/blocks.d.ts +1 -0
  777. package/build/esm/models/constructor-items/blocks.js +1 -0
  778. package/build/esm/models/constructor-items/blocks.js.map +1 -1
  779. package/build/esm/models/constructor.d.ts +4 -1
  780. package/build/esm/models/constructor.js.map +1 -1
  781. package/build/esm/models/navigation.d.ts +2 -2
  782. package/build/esm/models/navigation.js.map +1 -1
  783. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js +2 -2
  784. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js.map +1 -1
  785. package/build/esm/navigation/components/Navigation/Navigation.d.ts +2 -2
  786. package/build/esm/navigation/components/Navigation/Navigation.js +1 -1
  787. package/build/esm/navigation/components/Navigation/Navigation.js.map +1 -1
  788. package/build/esm/navigation/components/NavigationItem/NavigationItem.js +4 -1
  789. package/build/esm/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
  790. package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +4 -1
  791. package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js.map +1 -1
  792. package/build/esm/navigation/containers/Layout/Layout.css +0 -1
  793. package/build/esm/navigation/containers/Layout/Layout.js +2 -1
  794. package/build/esm/navigation/containers/Layout/Layout.js.map +1 -1
  795. package/build/esm/navigation/models.d.ts +1 -1
  796. package/build/esm/navigation/models.js.map +1 -1
  797. package/build/esm/schema/constants.js +2 -0
  798. package/build/esm/schema/constants.js.map +1 -1
  799. package/build/esm/schema/index.d.ts +256 -0
  800. package/build/esm/schema/index.js +11 -5
  801. package/build/esm/schema/index.js.map +1 -1
  802. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.d.ts +2 -0
  803. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.js +79 -0
  804. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.js.map +1 -0
  805. package/build/esm/sub-blocks/BackgroundCard/index.d.ts +3 -0
  806. package/build/esm/sub-blocks/BackgroundCard/index.js +19 -0
  807. package/build/esm/sub-blocks/BackgroundCard/index.js.map +1 -0
  808. package/build/esm/sub-blocks/BannerCard/BannerCard.js +2 -1
  809. package/build/esm/sub-blocks/BannerCard/BannerCard.js.map +1 -1
  810. package/build/esm/sub-blocks/BannerCard/index.d.ts +3 -0
  811. package/build/esm/sub-blocks/BannerCard/index.js +21 -0
  812. package/build/esm/sub-blocks/BannerCard/index.js.map +1 -0
  813. package/build/esm/sub-blocks/BasicCard/index.d.ts +3 -0
  814. package/build/esm/sub-blocks/BasicCard/index.js +17 -0
  815. package/build/esm/sub-blocks/BasicCard/index.js.map +1 -0
  816. package/build/esm/sub-blocks/Content/index.d.ts +3 -0
  817. package/build/esm/sub-blocks/Content/index.js +17 -0
  818. package/build/esm/sub-blocks/Content/index.js.map +1 -0
  819. package/build/esm/sub-blocks/Content/schema.d.ts +1 -0
  820. package/build/esm/sub-blocks/Content/schema.js +1 -0
  821. package/build/esm/sub-blocks/Content/schema.js.map +1 -1
  822. package/build/esm/sub-blocks/Divider/index.d.ts +3 -0
  823. package/build/esm/sub-blocks/Divider/index.js +13 -0
  824. package/build/esm/sub-blocks/Divider/index.js.map +1 -0
  825. package/build/esm/sub-blocks/ImageCard/ImageCard.js +1 -1
  826. package/build/esm/sub-blocks/ImageCard/ImageCard.js.map +1 -1
  827. package/build/esm/sub-blocks/ImageCard/index.d.ts +3 -0
  828. package/build/esm/sub-blocks/ImageCard/index.js +17 -0
  829. package/build/esm/sub-blocks/ImageCard/index.js.map +1 -0
  830. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +1 -1
  831. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js.map +1 -1
  832. package/build/esm/sub-blocks/LayoutItem/index.d.ts +3 -0
  833. package/build/esm/sub-blocks/LayoutItem/index.js +23 -0
  834. package/build/esm/sub-blocks/LayoutItem/index.js.map +1 -0
  835. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +211 -206
  836. package/build/esm/sub-blocks/LayoutItem/schema.js +3 -2
  837. package/build/esm/sub-blocks/LayoutItem/schema.js.map +1 -1
  838. package/build/esm/sub-blocks/MediaCard/index.d.ts +3 -0
  839. package/build/esm/sub-blocks/MediaCard/index.js +20 -0
  840. package/build/esm/sub-blocks/MediaCard/index.js.map +1 -0
  841. package/build/esm/sub-blocks/PriceCard/index.d.ts +3 -0
  842. package/build/esm/sub-blocks/PriceCard/index.js +30 -0
  843. package/build/esm/sub-blocks/PriceCard/index.js.map +1 -0
  844. package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
  845. package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js.map +1 -1
  846. package/build/esm/sub-blocks/PriceDetailed/index.d.ts +4 -0
  847. package/build/esm/sub-blocks/PriceDetailed/index.js +32 -0
  848. package/build/esm/sub-blocks/PriceDetailed/index.js.map +1 -0
  849. package/build/esm/sub-blocks/Quote/index.d.ts +3 -0
  850. package/build/esm/sub-blocks/Quote/index.js +20 -0
  851. package/build/esm/sub-blocks/Quote/index.js.map +1 -0
  852. package/build/esm/utils/editor.d.ts +2 -0
  853. package/build/esm/utils/editor.js +21 -0
  854. package/build/esm/utils/editor.js.map +1 -0
  855. package/build/esm/utils/form-generator.d.ts +9 -0
  856. package/build/esm/utils/form-generator.js +126 -0
  857. package/build/esm/utils/form-generator.js.map +1 -0
  858. package/build/esm/utils/index.d.ts +1 -0
  859. package/build/esm/utils/index.js +1 -0
  860. package/build/esm/utils/index.js.map +1 -1
  861. package/build/esm/utils/navigation.d.ts +3 -0
  862. package/build/esm/utils/navigation.js +9 -0
  863. package/build/esm/utils/navigation.js.map +1 -0
  864. package/package.json +15 -3
  865. package/schema/index.js +1 -1
  866. package/server/models/constructor-items/blocks.d.ts +1 -0
  867. package/server/models/constructor-items/blocks.js +1 -0
  868. package/server/models/constructor.d.ts +4 -1
  869. package/server/models/navigation.d.ts +2 -2
  870. package/server/utils/index.d.ts +1 -0
  871. package/server/utils/index.js +1 -0
  872. package/server/utils/navigation.d.ts +3 -0
  873. package/server/utils/navigation.js +15 -0
  874. package/styles/mixins.scss +9 -9
@@ -0,0 +1,5 @@
1
+ import { ConfigInput } from "../../../common/types/index.js";
2
+ import { BlockData } from "../../constructor-items.js";
3
+ export declare const blockConfig: ConfigInput[];
4
+ declare const CardLayoutBlockConfig: BlockData;
5
+ export default CardLayoutBlockConfig;
@@ -0,0 +1,182 @@
1
+ import { sliderSizesArray, textSize } from "../../schema/validators/common.js";
2
+ import { generateFromAJV } from "../../utils/form-generator.js";
3
+ import CardLayout from "./CardLayout.js";
4
+ import { CardLayoutProps } from "./schema.js";
5
+ const textSizeEnum = textSize.map((size) => ({ value: size, content: size }));
6
+ export const blockConfig = [
7
+ {
8
+ type: 'oneOf',
9
+ name: 'title',
10
+ title: 'Title Object',
11
+ options: [
12
+ {
13
+ title: 'Simple',
14
+ value: 'simple',
15
+ properties: [
16
+ {
17
+ type: 'text',
18
+ name: '',
19
+ title: 'Title',
20
+ },
21
+ ],
22
+ },
23
+ {
24
+ title: 'Complex',
25
+ value: 'complex',
26
+ properties: [
27
+ {
28
+ type: 'text',
29
+ name: 'text',
30
+ title: 'Title',
31
+ },
32
+ {
33
+ type: 'select',
34
+ name: 'textSize',
35
+ title: 'Text Size',
36
+ enum: textSizeEnum,
37
+ view: 'select',
38
+ mode: 'single',
39
+ },
40
+ {
41
+ type: 'text',
42
+ name: 'url',
43
+ title: 'Url',
44
+ },
45
+ {
46
+ type: 'text',
47
+ name: 'urlTitle',
48
+ title: 'Url',
49
+ },
50
+ {
51
+ type: 'boolean',
52
+ name: 'resetMargin',
53
+ title: 'Reset Margin',
54
+ },
55
+ ],
56
+ },
57
+ ],
58
+ },
59
+ {
60
+ type: 'textarea',
61
+ name: 'description',
62
+ title: 'Description',
63
+ },
64
+ {
65
+ type: 'boolean',
66
+ name: 'dots',
67
+ title: 'With dots',
68
+ },
69
+ {
70
+ type: 'boolean',
71
+ name: 'arrows',
72
+ title: 'With Arrows',
73
+ },
74
+ {
75
+ type: 'boolean',
76
+ name: 'randomOrder',
77
+ title: 'Random Order',
78
+ },
79
+ {
80
+ type: 'number',
81
+ name: 'autoplay',
82
+ title: 'Autoplay',
83
+ },
84
+ {
85
+ type: 'object',
86
+ name: 'disclaimer',
87
+ title: 'Disclaimer',
88
+ properties: [
89
+ {
90
+ type: 'text',
91
+ name: 'text',
92
+ title: 'Text',
93
+ },
94
+ {
95
+ type: 'select',
96
+ name: 'size',
97
+ title: 'Size',
98
+ enum: textSizeEnum,
99
+ view: 'select',
100
+ mode: 'single',
101
+ },
102
+ ],
103
+ },
104
+ {
105
+ type: 'oneOf',
106
+ name: 'slidesToShow',
107
+ title: 'Slides to Show',
108
+ options: [
109
+ {
110
+ title: 'Simple',
111
+ value: 'simple',
112
+ properties: [
113
+ {
114
+ type: 'number',
115
+ name: '',
116
+ title: 'Slides',
117
+ },
118
+ ],
119
+ },
120
+ {
121
+ title: 'Complex',
122
+ value: 'complex',
123
+ properties: sliderSizesArray.reduce((acc, size) => {
124
+ acc.push({ type: 'number', name: size, title: size });
125
+ return acc;
126
+ }, []),
127
+ },
128
+ ],
129
+ },
130
+ {
131
+ type: 'array',
132
+ name: 'array',
133
+ title: 'Array Properties',
134
+ buttonText: 'Add new',
135
+ arrayType: 'object',
136
+ properties: [
137
+ {
138
+ type: 'text',
139
+ name: 'text',
140
+ title: 'Property',
141
+ },
142
+ {
143
+ type: 'boolean',
144
+ name: 'boolean',
145
+ title: 'Property',
146
+ },
147
+ ],
148
+ },
149
+ ];
150
+ const CardLayoutBlockConfig = {
151
+ component: CardLayout,
152
+ schema: {
153
+ name: 'Card Layout Block',
154
+ group: 'card-containers',
155
+ inputs: generateFromAJV(CardLayoutProps),
156
+ default: {
157
+ type: 'card-layout-block',
158
+ children: [
159
+ {
160
+ type: 'background-card',
161
+ title: 'Tell a story and build a narrative',
162
+ text: 'We are all storytellers. Stories are a powerful way to communicate ideas and share information. The right story can lead to a better understanding of a situation, make us laugh, or even inspire us to do something in the future.',
163
+ },
164
+ {
165
+ type: 'background-card',
166
+ title: 'Tell a story and build a narrative',
167
+ text: 'We are all storytellers. Stories are a powerful way to communicate ideas and share information. The right story can lead to a better understanding of a situation, make us laugh, or even inspire us to do something in the future.',
168
+ },
169
+ {
170
+ type: 'background-card',
171
+ title: 'Tell a story and build a narrative',
172
+ text: 'We are all storytellers. Stories are a powerful way to communicate ideas and share information. The right story can lead to a better understanding of a situation, make us laugh, or even inspire us to do something in the future.',
173
+ },
174
+ ],
175
+ title: 'Card Layout Block',
176
+ description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
177
+ },
178
+ previewImg: 'https://storage.cloud-preprod.yandex.net/qradle-test/card-layout-block.svg',
179
+ },
180
+ };
181
+ export default CardLayoutBlockConfig;
182
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/CardLayout/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,gBAAgB,EAAE,QAAQ,EAAC,0CAAuC;AAC1E,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,UAAU,wBAAqB;AACtC,OAAO,EAAC,eAAe,EAAC,oBAAiB;AAEzC,MAAM,YAAY,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,WAAW,GAAkB;IACtC;QACI,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE;YACL;gBACI,KAAK,EAAE,QAAQ;gBACf,KAAK,EAAE,QAAQ;gBACf,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,EAAE;wBACR,KAAK,EAAE,OAAO;qBACjB;iBACJ;aACJ;YACD;gBACI,KAAK,EAAE,SAAS;gBAChB,KAAK,EAAE,SAAS;gBAChB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,OAAO;qBACjB;oBACD;wBACI,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,UAAU;wBAChB,KAAK,EAAE,WAAW;wBAClB,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,KAAK;wBACX,KAAK,EAAE,KAAK;qBACf;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,UAAU;wBAChB,KAAK,EA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e,qBAAqB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {ConfigInput} from '../../../common/types';\nimport {BlockData} from '../../constructor-items';\nimport {sliderSizesArray, textSize} from '../../schema/validators/common';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport CardLayout from './CardLayout';\nimport {CardLayoutProps} from './schema';\n\nconst textSizeEnum = textSize.map((size) => ({value: size, content: size}));\n\nexport const blockConfig: ConfigInput[] = [\n {\n type: 'oneOf',\n name: 'title',\n title: 'Title Object',\n options: [\n {\n title: 'Simple',\n value: 'simple',\n properties: [\n {\n type: 'text',\n name: '',\n title: 'Title',\n },\n ],\n },\n {\n title: 'Complex',\n value: 'complex',\n properties: [\n {\n type: 'text',\n name: 'text',\n title: 'Title',\n },\n {\n type: 'select',\n name: 'textSize',\n title: 'Text Size',\n enum: textSizeEnum,\n view: 'select',\n mode: 'single',\n },\n {\n type: 'text',\n name: 'url',\n title: 'Url',\n },\n {\n type: 'text',\n name: 'urlTitle',\n title: 'Url',\n },\n {\n type: 'boolean',\n name: 'resetMargin',\n title: 'Reset Margin',\n },\n ],\n },\n ],\n },\n {\n type: 'textarea',\n name: 'description',\n title: 'Description',\n },\n {\n type: 'boolean',\n name: 'dots',\n title: 'With dots',\n },\n {\n type: 'boolean',\n name: 'arrows',\n title: 'With Arrows',\n },\n {\n type: 'boolean',\n name: 'randomOrder',\n title: 'Random Order',\n },\n {\n type: 'number',\n name: 'autoplay',\n title: 'Autoplay',\n },\n {\n type: 'object',\n name: 'disclaimer',\n title: 'Disclaimer',\n properties: [\n {\n type: 'text',\n name: 'text',\n title: 'Text',\n },\n {\n type: 'select',\n name: 'size',\n title: 'Size',\n enum: textSizeEnum,\n view: 'select',\n mode: 'single',\n },\n ],\n },\n {\n type: 'oneOf',\n name: 'slidesToShow',\n title: 'Slides to Show',\n options: [\n {\n title: 'Simple',\n value: 'simple',\n properties: [\n {\n type: 'number',\n name: '',\n title: 'Slides',\n },\n ],\n },\n {\n title: 'Complex',\n value: 'complex',\n properties: sliderSizesArray.reduce((acc, size) => {\n acc.push({type: 'number', name: size, title: size});\n return acc;\n }, [] as Array<ConfigInput>),\n },\n ],\n },\n {\n type: 'array',\n name: 'array',\n title: 'Array Properties',\n buttonText: 'Add new',\n arrayType: 'object',\n properties: [\n {\n type: 'text',\n name: 'text',\n title: 'Property',\n },\n {\n type: 'boolean',\n name: 'boolean',\n title: 'Property',\n },\n ],\n },\n];\n\nconst CardLayoutBlockConfig: BlockData = {\n component: CardLayout,\n schema: {\n name: 'Card Layout Block',\n group: 'card-containers',\n inputs: generateFromAJV(CardLayoutProps as unknown as JSONSchemaType<{}>),\n default: {\n type: 'card-layout-block',\n children: [\n {\n type: 'background-card',\n title: 'Tell a story and build a narrative',\n text: 'We are all storytellers. Stories are a powerful way to communicate ideas and share information. The right story can lead to a better understanding of a situation, make us laugh, or even inspire us to do something in the future.',\n },\n {\n type: 'background-card',\n title: 'Tell a story and build a narrative',\n text: 'We are all storytellers. Stories are a powerful way to communicate ideas and share information. The right story can lead to a better understanding of a situation, make us laugh, or even inspire us to do something in the future.',\n },\n {\n type: 'background-card',\n title: 'Tell a story and build a narrative',\n text: 'We are all storytellers. Stories are a powerful way to communicate ideas and share information. The right story can lead to a better understanding of a situation, make us laugh, or even inspire us to do something in the future.',\n },\n ],\n title: 'Card Layout Block',\n description:\n 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n previewImg: 'https://storage.cloud-preprod.yandex.net/qradle-test/card-layout-block.svg',\n },\n};\n\nexport default CardLayoutBlockConfig;\n"]}
@@ -2,13 +2,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Image, Title } from "../../components/index.js";
3
3
  import AnimateBlock from "../../components/AnimateBlock/AnimateBlock.js";
4
4
  import { useTheme } from "../../context/theme/index.js";
5
+ import { Grid } from "../../grid/index.js";
5
6
  import { block, getThemedValue } from "../../utils/index.js";
6
7
  import './Companies.css';
7
8
  const b = block('companies-block');
8
9
  export const CompaniesBlock = ({ title, description, images, animated }) => {
9
10
  const theme = useTheme();
10
11
  const themedImages = getThemedValue(images, theme) || {};
11
- return (_jsx(AnimateBlock, { className: b(), offset: 150, animate: animated, children: _jsxs("div", { className: b('content'), children: [_jsx(Title, { title: title, subtitle: description, colSizes: { all: 12, sm: 12 } }), _jsx("div", { className: b('images'), children: _jsx(Image, { ...themedImages, className: b('image') }) })] }) }));
12
+ return (_jsx(AnimateBlock, { className: b(), offset: 150, animate: animated, children: _jsx(Grid, { children: _jsxs("div", { className: b('content'), children: [_jsx(Title, { title: title, subtitle: description, colSizes: { all: 12, sm: 12 } }), _jsx("div", { className: b('images'), children: _jsx(Image, { ...themedImages, className: b('image') }) })] }) }) }));
12
13
  };
13
14
  export default CompaniesBlock;
14
15
  //# sourceMappingURL=Companies.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Companies.js","sourceRoot":"../../../../src","sources":["blocks/Companies/Companies.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,kCAAyB;AAC9C,OAAO,YAAY,sDAAmD;AACtE,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAE7C,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,iBAAiB,CAAC;AAEzB,MAAM,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAsB,EAAE,EAAE;IAC1F,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,YAAY,GAAG,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAEzD,OAAO,CACH,KAAC,YAAY,IAAC,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,YACxD,eAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,aACxB,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,GAAU,EACjF,cAAK,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,YACvB,KAAC,KAAK,OAAK,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GAAI,GAChD,IACJ,GACK,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import {Image, Title} from '../../components';\nimport AnimateBlock from '../../components/AnimateBlock/AnimateBlock';\nimport {useTheme} from '../../context/theme';\nimport {CompaniesBlockProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './Companies.scss';\n\nconst b = block('companies-block');\n\nexport const CompaniesBlock = ({title, description, images, animated}: CompaniesBlockProps) => {\n const theme = useTheme();\n const themedImages = getThemedValue(images, theme) || {};\n\n return (\n <AnimateBlock className={b()} offset={150} animate={animated}>\n <div className={b('content')}>\n <Title title={title} subtitle={description} colSizes={{all: 12, sm: 12}}></Title>\n <div className={b('images')}>\n <Image {...themedImages} className={b('image')} />\n </div>\n </div>\n </AnimateBlock>\n );\n};\n\nexport default CompaniesBlock;\n"]}
1
+ {"version":3,"file":"Companies.js","sourceRoot":"../../../../src","sources":["blocks/Companies/Companies.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,kCAAyB;AAC9C,OAAO,YAAY,sDAAmD;AACtE,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAC7C,OAAO,EAAC,IAAI,EAAC,4BAAmB;AAEhC,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,iBAAiB,CAAC;AAEzB,MAAM,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAsB,EAAE,EAAE;IAC1F,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,YAAY,GAAG,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAEzD,OAAO,CACH,KAAC,YAAY,IAAC,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,YACxD,KAAC,IAAI,cACD,eAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,aACxB,KAAC,KAAK,IACF,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,GACtB,EACT,cAAK,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,YACvB,KAAC,KAAK,OAAK,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GAAI,GAChD,IACJ,GACH,GACI,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import {Image, Title} from '../../components';\nimport AnimateBlock from '../../components/AnimateBlock/AnimateBlock';\nimport {useTheme} from '../../context/theme';\nimport {Grid} from '../../grid';\nimport {CompaniesBlockProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './Companies.scss';\n\nconst b = block('companies-block');\n\nexport const CompaniesBlock = ({title, description, images, animated}: CompaniesBlockProps) => {\n const theme = useTheme();\n const themedImages = getThemedValue(images, theme) || {};\n\n return (\n <AnimateBlock className={b()} offset={150} animate={animated}>\n <Grid>\n <div className={b('content')}>\n <Title\n title={title}\n subtitle={description}\n colSizes={{all: 12, sm: 12}}\n ></Title>\n <div className={b('images')}>\n <Image {...themedImages} className={b('image')} />\n </div>\n </div>\n </Grid>\n </AnimateBlock>\n );\n};\n\nexport default CompaniesBlock;\n"]}
@@ -0,0 +1,3 @@
1
+ import { BlockData } from "../../constructor-items.js";
2
+ declare const CompaniesBlockConfig: BlockData;
3
+ export default CompaniesBlockConfig;
@@ -0,0 +1,17 @@
1
+ import { generateFromAJV } from "../../utils/form-generator.js";
2
+ import CompaniesBlock from "./Companies.js";
3
+ import { CompaniesBlock as CompaniesBlockSchema } from "./schema.js";
4
+ const CompaniesBlockConfig = {
5
+ component: CompaniesBlock,
6
+ schema: {
7
+ name: 'Companies Block',
8
+ group: 'block',
9
+ inputs: generateFromAJV(CompaniesBlockSchema['companies-block']),
10
+ default: {
11
+ title: 'Companies Block',
12
+ description: 'Here is the list',
13
+ },
14
+ },
15
+ };
16
+ export default CompaniesBlockConfig;
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/Companies/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,cAAc,uBAAoB;AACzC,OAAO,EAAC,cAAc,IAAI,oBAAoB,EAAC,oBAAiB;AAEhE,MAAM,oBAAoB,GAAc;IACpC,SAAS,EAAE,cAAc;IACzB,MAAM,EAAE;QACJ,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,eAAe,CACnB,oBAAoB,CAAC,iBAAiB,CAAkC,CAC3E;QACD,OAAO,EAAE;YACL,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,kBAAkB;SAClC;KACJ;CACJ,CAAC;AAEF,eAAe,oBAAoB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport CompaniesBlock from './Companies';\nimport {CompaniesBlock as CompaniesBlockSchema} from './schema';\n\nconst CompaniesBlockConfig: BlockData = {\n component: CompaniesBlock,\n schema: {\n name: 'Companies Block',\n group: 'block',\n inputs: generateFromAJV(\n CompaniesBlockSchema['companies-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n title: 'Companies Block',\n description: 'Here is the list',\n },\n },\n};\n\nexport default CompaniesBlockConfig;\n"]}
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { BackgroundImage, FileLink } from "../../components/index.js";
5
5
  import { MobileContext } from "../../context/mobileContext/index.js";
6
6
  import { useTheme } from "../../context/theme/index.js";
7
- import { Col } from "../../grid/index.js";
7
+ import { Col, Grid } from "../../grid/index.js";
8
8
  import { Content } from "../../sub-blocks/index.js";
9
9
  import { block, getThemedValue } from "../../utils/index.js";
10
10
  import './ContentLayout.css';
@@ -35,7 +35,7 @@ export const ContentLayoutBlock = (props) => {
35
35
  const colSizes = React.useMemo(() => getTextWidth(textWidth), [textWidth]);
36
36
  const globalTheme = useTheme();
37
37
  const themedBackground = getThemedValue(background, globalTheme);
38
- return (_jsxs("div", { className: b({ size, theme, background: Boolean(background) }), children: [_jsx(Content, { className: b('content'), ...textContent, size: size, centered: centered, colSizes: colSizes, theme: theme }), fileContent && (_jsx(Col, { className: b('files', { size, centered }), reset: true, sizes: colSizes, children: fileContent.map((file) => (_createElement(FileLink, { className: b('file'), ...file, key: file.href, type: "horizontal", textSize: getFileTextSize(size), theme: theme }))) })), background && (_jsx("div", { className: b('background'), children: _jsx(BackgroundImage, { className: b('background-item'), ...themedBackground, hide: isMobile }) }))] }));
38
+ return (_jsx(Grid, { children: _jsxs("div", { className: b({ size, theme, background: Boolean(background) }), children: [_jsx(Content, { className: b('content'), ...textContent, size: size, centered: centered, colSizes: colSizes, theme: theme }), fileContent && (_jsx(Col, { className: b('files', { size, centered }), reset: true, sizes: colSizes, children: fileContent.map((file) => (_createElement(FileLink, { className: b('file'), ...file, key: file.href, type: "horizontal", textSize: getFileTextSize(size), theme: theme }))) })), background && (_jsx("div", { className: b('background'), children: _jsx(BackgroundImage, { className: b('background-item'), ...themedBackground, hide: isMobile }) }))] }) }));
39
39
  };
40
40
  export default ContentLayoutBlock;
41
41
  //# sourceMappingURL=ContentLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentLayout.js","sourceRoot":"../../../../src","sources":["blocks/ContentLayout/ContentLayout.tsx"],"names":[],"mappings":";;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,eAAe,EAAE,QAAQ,EAAC,kCAAyB;AAC3D,OAAO,EAAC,aAAa,EAAC,6CAAoC;AAC1D,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAC7C,OAAO,EAAC,GAAG,EAAC,4BAAmB;AAE/B,OAAO,EAAC,OAAO,EAAC,kCAAyB;AACzC,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,qBAAqB,CAAC;AAE7B,MAAM,CAAC,GAAG,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAExC,SAAS,eAAe,CAAC,IAAiB;IACtC,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,GAAG;YACJ,OAAO,GAAG,CAAC;QACf,KAAK,GAAG,CAAC;QACT;YACI,OAAO,GAAG,CAAC;IACnB,CAAC;AACL,CAAC;AAED,SAAS,YAAY,CAAC,IAAqB;IACvC,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,GAAG;YACJ,OAAO,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAC,CAAC;QAC5B,KAAK,GAAG;YACJ,OAAO,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,CAAC;QAC7B,KAAK,GAAG,CAAC;QACT;YACI,OAAO,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAC,CAAC;IAChC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAA8B,EAAE,EAAE;IACjE,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,aAAa,CA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AAS,EAAE,CAAC,CAAC,iBAAiB,CAAC,KAC3B,gBAAgB,EACpB,IAAI,EAAE,QAAQ,GAChB,GACA,CACT,IACC,CACT,CAAC;AACN,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {BackgroundImage, FileLink} from '../../components';\nimport {MobileContext} from '../../context/mobileContext';\nimport {useTheme} from '../../context/theme';\nimport {Col} from '../../grid';\nimport {ContentLayoutBlockProps, ContentSize, ContentTextSize} from '../../models';\nimport {Content} from '../../sub-blocks';\nimport {block, getThemedValue} from '../../utils';\n\nimport './ContentLayout.scss';\n\nconst b = block('content-layout-block');\n\nfunction getFileTextSize(size: ContentSize) {\n switch (size) {\n case 's':\n return 's';\n case 'l':\n default:\n return 'l';\n }\n}\n\nfunction getTextWidth(size: ContentTextSize) {\n switch (size) {\n case 's':\n return {all: 12, md: 6};\n case 'l':\n return {all: 12, md: 12};\n case 'm':\n default:\n return {all: 12, md: 8};\n }\n}\n\nexport const ContentLayoutBlock = (props: ContentLayoutBlockProps) => {\n const isMobile = React.useContext(MobileContext);\n const {\n textContent,\n fileContent,\n size = 'l',\n background,\n centered,\n theme = 'default',\n textWidth = 'm',\n } = props;\n\n const colSizes = React.useMemo(() => getTextWidth(textWidth), [textWidth]);\n const globalTheme = useTheme();\n const themedBackground = getThemedValue(background, globalTheme);\n\n return (\n <div className={b({size, theme, background: Boolean(background)})}>\n <Content\n className={b('content')}\n {...textContent}\n size={size}\n centered={centered}\n colSizes={colSizes}\n theme={theme}\n />\n {fileContent && (\n <Col className={b('files', {size, centered})} reset sizes={colSizes}>\n {fileContent.map((file) => (\n <FileLink\n className={b('file')}\n {...file}\n key={file.href}\n type=\"horizontal\"\n textSize={getFileTextSize(size)}\n theme={theme}\n />\n ))}\n </Col>\n )}\n {background && (\n <div className={b('background')}>\n <BackgroundImage\n className={b('background-item')}\n {...themedBackground}\n hide={isMobile}\n />\n </div>\n )}\n </div>\n );\n};\nexport default ContentLayo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AAgB,EACpB,IAAI,EAAE,QAAQ,GAChB,GACA,CACT,IACC,GACH,CACV,CAAC;AACN,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {BackgroundImage, FileLink} from '../../components';\nimport {MobileContext} from '../../context/mobileContext';\nimport {useTheme} from '../../context/theme';\nimport {Col, Grid} from '../../grid';\nimport {ContentLayoutBlockProps, ContentSize, ContentTextSize} from '../../models';\nimport {Content} from '../../sub-blocks';\nimport {block, getThemedValue} from '../../utils';\n\nimport './ContentLayout.scss';\n\nconst b = block('content-layout-block');\n\nfunction getFileTextSize(size: ContentSize) {\n switch (size) {\n case 's':\n return 's';\n case 'l':\n default:\n return 'l';\n }\n}\n\nfunction getTextWidth(size: ContentTextSize) {\n switch (size) {\n case 's':\n return {all: 12, md: 6};\n case 'l':\n return {all: 12, md: 12};\n case 'm':\n default:\n return {all: 12, md: 8};\n }\n}\n\nexport const ContentLayoutBlock = (props: ContentLayoutBlockProps) => {\n const isMobile = React.useContext(MobileContext);\n const {\n textContent,\n fileContent,\n size = 'l',\n background,\n centered,\n theme = 'default',\n textWidth = 'm',\n } = props;\n\n const colSizes = React.useMemo(() => getTextWidth(textWidth), [textWidth]);\n const globalTheme = useTheme();\n const themedBackground = getThemedValue(background, globalTheme);\n\n return (\n <Grid>\n <div className={b({size, theme, background: Boolean(background)})}>\n <Content\n className={b('content')}\n {...textContent}\n size={size}\n centered={centered}\n colSizes={colSizes}\n theme={theme}\n />\n {fileContent && (\n <Col className={b('files', {size, centered})} reset sizes={colSizes}>\n {fileContent.map((file) => (\n <FileLink\n className={b('file')}\n {...file}\n key={file.href}\n type=\"horizontal\"\n textSize={getFileTextSize(size)}\n theme={theme}\n />\n ))}\n </Col>\n )}\n {background && (\n <div className={b('background')}>\n <BackgroundImage\n className={b('background-item')}\n {...themedBackground}\n hide={isMobile}\n />\n </div>\n )}\n </div>\n </Grid>\n );\n};\nexport default ContentLayoutBlock;\n"]}
@@ -0,0 +1,41 @@
1
+ declare const ContentLayoutBlockConfig: {
2
+ component: (props: import("../../index.js").ContentLayoutBlockProps) => import("react/jsx-runtime").JSX.Element;
3
+ schema: {
4
+ name: string;
5
+ group: string;
6
+ inputs: import("../../editor-v2/index.js").ConfigInput[];
7
+ default: {
8
+ textContent: {
9
+ title: string;
10
+ text: string;
11
+ };
12
+ additionalInfo: string;
13
+ buttons: {
14
+ text: string;
15
+ theme: string;
16
+ url: string;
17
+ }[];
18
+ links: {
19
+ url: string;
20
+ text: string;
21
+ theme: string;
22
+ arrow: boolean;
23
+ }[];
24
+ fileContent: {
25
+ href: string;
26
+ text: string;
27
+ }[];
28
+ list: ({
29
+ title: string;
30
+ text: string;
31
+ } | {
32
+ text: string;
33
+ title?: undefined;
34
+ } | {
35
+ title: string;
36
+ text?: undefined;
37
+ })[];
38
+ };
39
+ };
40
+ };
41
+ export default ContentLayoutBlockConfig;
@@ -0,0 +1,78 @@
1
+ import { generateFromAJV } from "../../utils/form-generator.js";
2
+ import ContentLayoutBlock from "./ContentLayout.js";
3
+ import { ContentLayoutBlock as ContentLayoutBlockSchema } from "./schema.js";
4
+ const ContentLayoutBlockConfig = {
5
+ component: ContentLayoutBlock,
6
+ schema: {
7
+ name: 'Content Layout Block',
8
+ group: 'block',
9
+ inputs: generateFromAJV(ContentLayoutBlockSchema['content-layout-block']),
10
+ default: {
11
+ textContent: {
12
+ title: 'Lorem ipsum dolor sit amet',
13
+ text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
14
+ },
15
+ additionalInfo: 'Duis aute irure dolor in reprehenderit n voluptate velit esse cillum dolore eu fugiat nulla pariatur.',
16
+ buttons: [
17
+ {
18
+ text: 'Button',
19
+ theme: 'action',
20
+ url: 'https://example.com',
21
+ },
22
+ {
23
+ text: 'Button',
24
+ theme: 'outlined',
25
+ url: 'https://example.com',
26
+ },
27
+ ],
28
+ links: [
29
+ {
30
+ url: 'https://example.com',
31
+ text: 'Link',
32
+ theme: 'normal',
33
+ arrow: true,
34
+ },
35
+ ],
36
+ fileContent: [
37
+ {
38
+ href: 'https://example.xls',
39
+ text: 'File xls',
40
+ },
41
+ {
42
+ href: 'https://example.fig',
43
+ text: 'File PNG, JPG, and SVG format',
44
+ },
45
+ {
46
+ href: 'https://example.pdf',
47
+ text: 'Pdf file',
48
+ },
49
+ {
50
+ href: 'https://example.zip',
51
+ text: 'Archive file',
52
+ },
53
+ {
54
+ href: 'https://example.doc',
55
+ text: 'Microsoft Word document',
56
+ },
57
+ {
58
+ href: 'https://example.ppt',
59
+ text: 'PPT file',
60
+ },
61
+ ],
62
+ list: [
63
+ {
64
+ title: 'Lorem ipsum',
65
+ text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
66
+ },
67
+ {
68
+ text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
69
+ },
70
+ {
71
+ title: 'Lorem ipsum ipsum',
72
+ },
73
+ ],
74
+ },
75
+ },
76
+ };
77
+ export default ContentLayoutBlockConfig;
78
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/ContentLayout/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,kBAAkB,2BAAwB;AACjD,OAAO,EAAC,k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iBAC3U;gBACD;oBACI,KAAK,EAAE,mBAAmB;iBAC7B;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,eAAe,wBAAwB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport ContentLayoutBlock from './ContentLayout';\nimport {ContentLayoutBlock as ContentLayoutBlockSchema} from './schema';\n\nconst ContentLayoutBlockConfig = {\n component: ContentLayoutBlock,\n schema: {\n name: 'Content Layout Block',\n group: 'block',\n inputs: generateFromAJV(\n ContentLayoutBlockSchema['content-layout-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n textContent: {\n title: 'Lorem ipsum dolor sit amet',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n additionalInfo:\n 'Duis aute irure dolor in reprehenderit n voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n buttons: [\n {\n text: 'Button',\n theme: 'action',\n url: 'https://example.com',\n },\n {\n text: 'Button',\n theme: 'outlined',\n url: 'https://example.com',\n },\n ],\n links: [\n {\n url: 'https://example.com',\n text: 'Link',\n theme: 'normal',\n arrow: true,\n },\n ],\n fileContent: [\n {\n href: 'https://example.xls',\n text: 'File xls',\n },\n {\n href: 'https://example.fig',\n text: 'File PNG, JPG, and SVG format',\n },\n {\n href: 'https://example.pdf',\n text: 'Pdf file',\n },\n {\n href: 'https://example.zip',\n text: 'Archive file',\n },\n {\n href: 'https://example.doc',\n text: 'Microsoft Word document',\n },\n {\n href: 'https://example.ppt',\n text: 'PPT file',\n },\n ],\n list: [\n {\n title: 'Lorem ipsum',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n title: 'Lorem ipsum ipsum',\n },\n ],\n },\n },\n};\n\nexport default ContentLayoutBlockConfig;\n"]}
@@ -99,6 +99,7 @@ export declare const ContentLayoutBlock: {
99
99
  enum: string[];
100
100
  };
101
101
  textContent: {
102
+ type: string;
102
103
  additionalProperties: boolean;
103
104
  properties: {
104
105
  colSizes: {};
@@ -4,7 +4,7 @@ import { AnimateBlock, HTML, Title } from "../../components/index.js";
4
4
  import Image from "../../components/Image/Image.js";
5
5
  import { getMediaImage } from "../../components/Media/Image/utils.js";
6
6
  import { useTheme } from "../../context/theme/index.js";
7
- import { Col, Row } from "../../grid/index.js";
7
+ import { Col, Grid, Row } from "../../grid/index.js";
8
8
  import { Content } from "../../sub-blocks/index.js";
9
9
  import { block, getThemedValue } from "../../utils/index.js";
10
10
  import './ExtendedFeatures.css';
@@ -17,18 +17,19 @@ const DEFAULT_SIZES = {
17
17
  export const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DEFAULT_SIZES, animated, }) => {
18
18
  const theme = useTheme();
19
19
  const itemTitleHeadingTag = title ? 'h3' : 'h2';
20
- return (_jsxs(AnimateBlock, { className: b(), animate: animated, children: [_jsx(Title, { title: title, subtitle: description, className: b('header') }), _jsx("div", { className: b('items'), children: _jsx(Row, { children: items.map(({ title: itemTitle, text, list, link, links, label, icon, buttons, additionalInfo, }) => {
21
- const itemLinks = links || [];
22
- const iconThemed = icon && getThemedValue(icon, theme);
23
- const iconData = iconThemed && getMediaImage(iconThemed);
24
- if (link) {
25
- itemLinks.push(link);
26
- }
27
- return (_jsxs(Col, { className: b('item'), sizes: colSizes, children: [iconData && (_jsx("div", { className: b('icon-wrap'), "aria-hidden": true, children: _jsx(Image, { ...iconData, className: b('icon') }) })), _jsxs("div", { className: b('container'), children: [itemTitle &&
28
- React.createElement(itemTitleHeadingTag, {
29
- className: b('item-title'),
30
- }, _jsxs(React.Fragment, { children: [_jsx(HTML, { children: itemTitle }), label && (_jsx("span", { className: b('item-label'), children: label }))] })), _jsx(Content, { text: text, links: itemLinks, size: "s", list: list, colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo })] })] }, text || itemTitle));
31
- }) }) })] }));
20
+ return (_jsx(AnimateBlock, { className: b(), animate: animated, children: _jsxs(Grid, { children: [_jsx(Title, { title: title, subtitle: description, className: b('header') }), _jsx("div", { className: b('items'), children: _jsx(Row, { children: items &&
21
+ items.map(({ title: itemTitle, text, list, link, links, label, icon, buttons, additionalInfo, }, index) => {
22
+ const itemLinks = links || [];
23
+ const iconThemed = icon && getThemedValue(icon, theme);
24
+ const iconData = iconThemed && getMediaImage(iconThemed);
25
+ if (link) {
26
+ itemLinks.push(link);
27
+ }
28
+ return (_jsxs(Col, { className: b('item'), sizes: colSizes, children: [iconData && (_jsx("div", { className: b('icon-wrap'), "aria-hidden": true, children: _jsx(Image, { ...iconData, className: b('icon') }) })), _jsxs("div", { className: b('container'), children: [itemTitle &&
29
+ React.createElement(itemTitleHeadingTag, {
30
+ className: b('item-title'),
31
+ }, _jsxs(React.Fragment, { children: [_jsx(HTML, { children: itemTitle }), label && (_jsx("span", { className: b('item-label'), children: label }))] })), _jsx(Content, { text: text, links: itemLinks, size: "s", list: list, colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo })] })] }, index));
32
+ }) }) })] }) }));
32
33
  };
33
34
  export default ExtendedFeaturesBlock;
34
35
  //# sourceMappingURL=ExtendedFeatures.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExtendedFeatures.js","sourceRoot":"../../../../src","sources":["blocks/ExtendedF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IACK,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {AnimateBlock, HTML, Title} from '../../components/';\nimport Image from '../../components/Image/Image';\nimport {getMediaImage} from '../../components/Media/Image/utils';\nimport {useTheme} from '../../context/theme';\nimport {Col, Row} from '../../grid';\nimport {ExtendedFeaturesProps} from '../../models';\nimport {Content} from '../../sub-blocks';\nimport {block, getThemedValue} from '../../utils';\n\nimport './ExtendedFeatures.scss';\n\nconst b = block('ExtendedFeaturesBlock');\n\nconst DEFAULT_SIZES = {\n all: 12,\n sm: 6,\n md: 4,\n};\n\nexport const ExtendedFeaturesBlock = ({\n title,\n description,\n items,\n colSizes = DEFAULT_SIZES,\n animated,\n}: ExtendedFeaturesProps) => {\n const theme = useTheme();\n const itemTitleHeadingTag = title ? 'h3' : 'h2';\n\n return (\n <AnimateBlock className={b()} animate={animated}>\n <Title title={title} subtitle={description} className={b('header')} />\n <div className={b('items')}>\n <Row>\n {items.map(\n ({\n title: itemTitle,\n text,\n list,\n link,\n links,\n label,\n icon,\n buttons,\n additionalInfo,\n }) => {\n const itemLinks = links || [];\n\n const iconThemed = icon && getThemedValue(icon, theme);\n const iconData = iconThemed && getMediaImage(iconThemed);\n\n if (link) {\n itemLinks.push(link);\n }\n\n return (\n <Col className={b('item')} key={text || itemTitle} sizes={colSizes}>\n {iconData && (\n <div className={b('icon-wrap')} aria-hidden>\n <Image {...iconData} className={b('icon')} />\n </div>\n )}\n <div className={b('container')}>\n {itemTitle &&\n React.createElement(\n itemTitleHeadingTag,\n {\n className: b('item-title'),\n },\n <React.Fragment>\n <HTML>{itemTitle}</HTML>\n {label && (\n <span className={b('item-label')}>\n {label}\n </span>\n )}\n </React.Fragment>,\n )}\n <Content\n text={text}\n links={itemLinks}\n size=\"s\"\n list={list}\n colSizes={{all: 12, md: 12}}\n buttons={buttons}\n additionalInfo={additionalInfo}\n />\n </div>\n </Col>\n );\n },\n )}\n </Row>\n </div>\n </AnimateBlock>\n );\n};\n\nexport default ExtendedFeaturesBlock;\n"]}
1
+ {"version":3,"file":"ExtendedFeatures.js","sourceRoot":"../../../../src","sources":["blocks/ExtendedFeatures/ExtendedFeatures.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,YAAY,EAAE,IAAI,EAAE,KAAK,EAAC,kCAA0B;AAC5D,OAAO,KAAK,wCAAqC;AACjD,OAAO,EAAC,aAAa,EAAC,8CAA2C;AACjE,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAC7C,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAC,4BAAmB;AAE1C,OAAO,EAAC,OAAO,EAAC,kCAAyB;AACzC,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,wBAAwB,CAAC;AAEhC,MAAM,CAAC,GAAG,KAAK,CAAC,uBAAuB,CAAC,CAAC;AAEzC,MAAM,aAAa,GAAG;IAClB,GAAG,EAAE,EAAE;IACP,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;CACR,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAClC,KAAK,EACL,WAAW,EACX,KAAK,EACL,QAAQ,GAAG,aAAa,EACxB,QAAQ,GACY,EAAE,EAAE;IACxB,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,mBAAmB,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAEhD,OAAO,CACH,KAAC,YAAY,IAAC,SAAS,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,QAAQ,YAC3C,MAAC,IAAI,eACD,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAI,EACtE,cAAK,SAAS,EAAE,CAAC,CAAC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AAE,EAAE,EAAE,EAAE,EAAE,EAAC,EAC3B,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,GAChC,IACA,KA/BsB,KAAK,CAgC/B,CACT,CAAC;4BACN,CAAC,CACJ,GACH,GACJ,IACH,GACI,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {AnimateBlock, HTML, Title} from '../../components/';\nimport Image from '../../components/Image/Image';\nimport {getMediaImage} from '../../components/Media/Image/utils';\nimport {useTheme} from '../../context/theme';\nimport {Col, Grid, Row} from '../../grid';\nimport {ExtendedFeaturesProps} from '../../models';\nimport {Content} from '../../sub-blocks';\nimport {block, getThemedValue} from '../../utils';\n\nimport './ExtendedFeatures.scss';\n\nconst b = block('ExtendedFeaturesBlock');\n\nconst DEFAULT_SIZES = {\n all: 12,\n sm: 6,\n md: 4,\n};\n\nexport const ExtendedFeaturesBlock = ({\n title,\n description,\n items,\n colSizes = DEFAULT_SIZES,\n animated,\n}: ExtendedFeaturesProps) => {\n const theme = useTheme();\n const itemTitleHeadingTag = title ? 'h3' : 'h2';\n\n return (\n <AnimateBlock className={b()} animate={animated}>\n <Grid>\n <Title title={title} subtitle={description} className={b('header')} />\n <div className={b('items')}>\n <Row>\n {items &&\n items.map(\n (\n {\n title: itemTitle,\n text,\n list,\n link,\n links,\n label,\n icon,\n buttons,\n additionalInfo,\n },\n index,\n ) => {\n const itemLinks = links || [];\n\n const iconThemed = icon && getThemedValue(icon, theme);\n const iconData = iconThemed && getMediaImage(iconThemed);\n\n if (link) {\n itemLinks.push(link);\n }\n\n return (\n <Col className={b('item')} key={index} sizes={colSizes}>\n {iconData && (\n <div className={b('icon-wrap')} aria-hidden>\n <Image {...iconData} className={b('icon')} />\n </div>\n )}\n <div className={b('container')}>\n {itemTitle &&\n React.createElement(\n itemTitleHeadingTag,\n {\n className: b('item-title'),\n },\n <React.Fragment>\n <HTML>{itemTitle}</HTML>\n {label && (\n <span className={b('item-label')}>\n {label}\n </span>\n )}\n </React.Fragment>,\n )}\n <Content\n text={text}\n links={itemLinks}\n size=\"s\"\n list={list}\n colSizes={{all: 12, md: 12}}\n buttons={buttons}\n additionalInfo={additionalInfo}\n />\n </div>\n </Col>\n );\n },\n )}\n </Row>\n </div>\n </Grid>\n </AnimateBlock>\n );\n};\n\nexport default ExtendedFeaturesBlock;\n"]}
@@ -0,0 +1,58 @@
1
+ declare const ExtendedFeaturesBlockConfig: {
2
+ component: ({ title, description, items, colSizes, animated, }: import("../../index.js").ExtendedFeaturesProps) => import("react/jsx-runtime").JSX.Element;
3
+ schema: {
4
+ name: string;
5
+ group: string;
6
+ inputs: import("../../editor-v2/index.js").ConfigInput[];
7
+ default: {
8
+ type: string;
9
+ title: {
10
+ text: string;
11
+ textSize: string;
12
+ };
13
+ description: string;
14
+ items: ({
15
+ title: string;
16
+ text: string;
17
+ additionalInfo: string;
18
+ buttons?: undefined;
19
+ links?: undefined;
20
+ list?: undefined;
21
+ } | {
22
+ title: string;
23
+ text: string;
24
+ buttons: {
25
+ text: string;
26
+ theme: string;
27
+ url: string;
28
+ }[];
29
+ additionalInfo?: undefined;
30
+ links?: undefined;
31
+ list?: undefined;
32
+ } | {
33
+ title: string;
34
+ text: string;
35
+ links: {
36
+ text: string;
37
+ url: string;
38
+ arrow: boolean;
39
+ theme: string;
40
+ }[];
41
+ additionalInfo?: undefined;
42
+ buttons?: undefined;
43
+ list?: undefined;
44
+ } | {
45
+ title: string;
46
+ text: string;
47
+ list: {
48
+ title: string;
49
+ text: string;
50
+ }[];
51
+ additionalInfo?: undefined;
52
+ buttons?: undefined;
53
+ links?: undefined;
54
+ })[];
55
+ };
56
+ };
57
+ };
58
+ export default ExtendedFeaturesBlockConfig;