@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
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LayoutItem = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const omit_1 = tslib_1.__importDefault(require("lodash/omit.js"));
6
- const schema_1 = tslib_1.__importDefault(require("../../components/MetaInfo/schema.js"));
6
+ const schema_1 = require("../../blocks/Media/schema.js");
7
+ const schema_2 = tslib_1.__importDefault(require("../../components/MetaInfo/schema.js"));
7
8
  const common_1 = require("../../schema/validators/common.js");
8
9
  const event_1 = require("../../schema/validators/event.js");
9
- const schema_2 = require("../Content/schema.js");
10
+ const schema_3 = require("../Content/schema.js");
10
11
  exports.LayoutItem = {
11
12
  type: 'object',
12
13
  additionalProperties: false,
@@ -14,14 +15,14 @@ exports.LayoutItem = {
14
15
  properties: {
15
16
  ...common_1.BaseProps,
16
17
  ...common_1.CardLayoutProps,
17
- media: common_1.MediaProps,
18
- content: (0, omit_1.default)(schema_2.ContentBase, ['colSize', 'size', 'centered']),
18
+ media: schema_1.Media,
19
+ content: (0, omit_1.default)(schema_3.ContentBase, ['colSize', 'size', 'centered']),
19
20
  contentMargin: {
20
21
  type: 'string',
21
22
  enum: ['m', 'l'],
22
23
  default: 'm',
23
24
  },
24
- metaInfo: schema_1.default,
25
+ metaInfo: schema_2.default,
25
26
  border: {
26
27
  type: 'boolean',
27
28
  },
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/LayoutItem/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,yFAAwD;AACxD,8DAAsF;AACtF,4DAAmE;AACnE,iDAA4D;AAE/C,QAAA,UAAU,GAAG;IACtB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE;QACR,GAAG,kBAAS;QACZ,GAAG,wBAAe;QAClB,KAAK,EAAE,mBAAU;QACjB,OAAO,EAAE,IAAA,cAAI,EAAC,oBAAW,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QAC3D,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;YAChB,OAAO,EAAE,GAAG;SACf;QACD,QAAQ,EAAE,gBAAQ;QAClB,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;SAClB;QACD,eAAe,EAAE;YACb,KAAK,EAAE;gBACH;oBACI,GAAG,4BAAoB;oBACvB,UAAU,EAAE,QAAQ;iBACvB;gBACD;oBACI,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,4BAAoB;oBAC3B,UAAU,EAAE,MAAM;iBACrB;aACJ;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport metaInfo from '../../components/MetaInfo/schema';\nimport {BaseProps, CardLayoutProps, MediaProps} from '../../schema/validators/common';\nimport {AnalyticsEventSchema} from '../../schema/validators/event';\nimport {ContentBase} from '../../sub-blocks/Content/schema';\n\nexport const LayoutItem = {\n type: 'object',\n additionalProperties: false,\n required: ['content', 'media'],\n properties: {\n ...BaseProps,\n ...CardLayoutProps,\n media: MediaProps,\n content: omit(ContentBase, ['colSize', 'size', 'centered']),\n contentMargin: {\n type: 'string',\n enum: ['m', 'l'],\n default: 'm',\n },\n metaInfo: metaInfo,\n border: {\n type: 'boolean',\n },\n fullscreen: {\n type: 'boolean',\n },\n analyticsEvents: {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n },\n },\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["sub-blocks/LayoutItem/schema.ts"],"names":[],"mappings":";;;;AAAA,kEAA+B;AAE/B,yDAAgD;AAChD,yFAAwD;AACxD,8DAA0E;AAC1E,4DAAmE;AACnE,iDAA4D;AAE/C,QAAA,UAAU,GAAG;IACtB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE;QACR,GAAG,kBAAS;QACZ,GAAG,wBAAe;QAClB,KAAK,EAAE,cAAK;QACZ,OAAO,EAAE,IAAA,cAAI,EAAC,oBAAW,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QAC3D,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;YAChB,OAAO,EAAE,GAAG;SACf;QACD,QAAQ,EAAE,gBAAQ;QAClB,MAAM,EAAE;YACJ,IAAI,EAAE,SAAS;SAClB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;SAClB;QACD,eAAe,EAAE;YACb,KAAK,EAAE;gBACH;oBACI,GAAG,4BAAoB;oBACvB,UAAU,EAAE,QAAQ;iBACvB;gBACD;oBACI,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,4BAAoB;oBAC3B,UAAU,EAAE,MAAM;iBACrB;aACJ;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {Media} from '../../blocks/Media/schema';\nimport metaInfo from '../../components/MetaInfo/schema';\nimport {BaseProps, CardLayoutProps} from '../../schema/validators/common';\nimport {AnalyticsEventSchema} from '../../schema/validators/event';\nimport {ContentBase} from '../../sub-blocks/Content/schema';\n\nexport const LayoutItem = {\n type: 'object',\n additionalProperties: false,\n required: ['content', 'media'],\n properties: {\n ...BaseProps,\n ...CardLayoutProps,\n media: Media,\n content: omit(ContentBase, ['colSize', 'size', 'centered']),\n contentMargin: {\n type: 'string',\n enum: ['m', 'l'],\n default: 'm',\n },\n metaInfo: metaInfo,\n border: {\n type: 'boolean',\n },\n fullscreen: {\n type: 'boolean',\n },\n analyticsEvents: {\n oneOf: [\n {\n ...AnalyticsEventSchema,\n optionName: 'single',\n },\n {\n type: 'array',\n items: AnalyticsEventSchema,\n optionName: 'list',\n },\n ],\n },\n },\n};\n"]}
@@ -0,0 +1,3 @@
1
+ import { BlockData } from "../../constructor-items.js";
2
+ declare const MediaCardConfig: BlockData;
3
+ export default MediaCardConfig;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const form_generator_1 = require("../../utils/form-generator.js");
5
+ const MediaCard_1 = tslib_1.__importDefault(require("./MediaCard.js"));
6
+ const schema_1 = require("./schema.js");
7
+ const MediaCardConfig = {
8
+ component: MediaCard_1.default,
9
+ schema: {
10
+ name: 'Media Card',
11
+ group: 'cards',
12
+ inputs: (0, form_generator_1.generateFromAJV)(schema_1.MediaCardBlock['media-card']),
13
+ default: {
14
+ content: {
15
+ title: 'Media Card',
16
+ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
17
+ },
18
+ image: 'https://storage.yandexcloud.net/yc-www-community-images/event_ecaf1ef1-bc3a-40fa-adef-827b0959e6c3.jpg',
19
+ },
20
+ },
21
+ };
22
+ exports.default = MediaCardConfig;
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["sub-blocks/MediaCard/index.tsx"],"names":[],"mappings":";;;AAGA,kEAA2D;AAE3D,uEAAoC;AACpC,wCAA2D;AAE3D,MAAM,eAAe,GAAc;IAC/B,SAAS,EAAE,mBAAS;IACpB,MAAM,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,IAAA,gCAAe,EAAC,uBAAe,CAAC,YAAY,CAAkC,CAAC;QACvF,OAAO,EAAE;YACL,OAAO,EAAE;gBACL,KAAK,EAAE,YAAY;gBACnB,IAAI,EAAE,6HAA6H;aACtI;YACD,KAAK,EAAE,wGAAwG;SAClH;KACJ;CACJ,CAAC;AAEF,kBAAe,eAAe,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport MediaCard from './MediaCard';\nimport {MediaCardBlock as MediaCardSchema} from './schema';\n\nconst MediaCardConfig: BlockData = {\n component: MediaCard,\n schema: {\n name: 'Media Card',\n group: 'cards',\n inputs: generateFromAJV(MediaCardSchema['media-card'] as unknown as JSONSchemaType<{}>),\n default: {\n content: {\n title: 'Media Card',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n image: 'https://storage.yandexcloud.net/yc-www-community-images/event_ecaf1ef1-bc3a-40fa-adef-827b0959e6c3.jpg',\n },\n },\n};\n\nexport default MediaCardConfig;\n"]}
@@ -0,0 +1,3 @@
1
+ import { BlockData } from "../../constructor-items.js";
2
+ declare const PriceCardConfig: BlockData;
3
+ export default PriceCardConfig;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const form_generator_1 = require("../../utils/form-generator.js");
5
+ const PriceCard_1 = tslib_1.__importDefault(require("./PriceCard.js"));
6
+ const schema_1 = require("./schema.js");
7
+ const PriceCardConfig = {
8
+ component: PriceCard_1.default,
9
+ schema: {
10
+ name: 'Price Card',
11
+ group: 'cards',
12
+ inputs: (0, form_generator_1.generateFromAJV)(schema_1.PriceCardBlock['price-card']),
13
+ default: {
14
+ type: 'price-card',
15
+ border: 'line',
16
+ title: 'Basic',
17
+ price: '100 $',
18
+ pricePeriod: 'month',
19
+ priceDetails: '+ 5% from check',
20
+ description: 'For any purposes',
21
+ buttons: [
22
+ {
23
+ url: '/',
24
+ text: 'Read More',
25
+ width: 'max',
26
+ theme: 'action',
27
+ },
28
+ ],
29
+ },
30
+ },
31
+ };
32
+ exports.default = PriceCardConfig;
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceCard/index.tsx"],"names":[],"mappings":";;;AAGA,kEAA2D;AAE3D,uEAAoC;AACpC,wCAA2D;AAE3D,MAAM,eAAe,GAAc;IAC/B,SAAS,EAAE,mBAAS;IACpB,MAAM,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,IAAA,gCAAe,EAAC,uBAAe,CAAC,YAAY,CAAkC,CAAC;QACvF,OAAO,EAAE;YACL,IAAI,EAAE,YAAY;YAClB,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,OAAO;YACpB,YAAY,EAAE,iBAAiB;YAC/B,WAAW,EAAE,kBAAkB;YAC/B,OAAO,EAAE;gBACL;oBACI,GAAG,EAAE,GAAG;oBACR,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,KAAK;oBACZ,KAAK,EAAE,QAAQ;iBAClB;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,kBAAe,eAAe,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport PriceCard from './PriceCard';\nimport {PriceCardBlock as PriceCardSchema} from './schema';\n\nconst PriceCardConfig: BlockData = {\n component: PriceCard,\n schema: {\n name: 'Price Card',\n group: 'cards',\n inputs: generateFromAJV(PriceCardSchema['price-card'] as unknown as JSONSchemaType<{}>),\n default: {\n type: 'price-card',\n border: 'line',\n title: 'Basic',\n price: '100 $',\n pricePeriod: 'month',\n priceDetails: '+ 5% from check',\n description: 'For any purposes',\n buttons: [\n {\n url: '/',\n text: 'Read More',\n width: 'max',\n theme: 'action',\n },\n ],\n },\n },\n};\n\nexport default PriceCardConfig;\n"]}
@@ -11,7 +11,7 @@ const SeparatePriceDetailed_1 = tslib_1.__importDefault(require("./SeparatePrice
11
11
  // eslint-disable-next-line valid-jsdoc
12
12
  /** @deprecated */
13
13
  const PriceDetailed = (props) => {
14
- const { priceType = models_1.PriceDetailsType.SETTINGS, items, numberGroupItems = 1, description, details, foldable, labelsDefaultText, isCombined = false, useMixedView = false, border, } = props;
14
+ const { priceType = models_1.PriceDetailsType.SETTINGS, items = [], numberGroupItems = 1, description, details, foldable, labelsDefaultText, isCombined = false, useMixedView = false, border, } = props;
15
15
  const { titleSize: descriptionTitleSize = 'l', descriptionSize = 'm', titleColor: descriptionTitleColor = 'cornflower', } = description || {};
16
16
  const { titleSize: detailsTitleSize = 's', descriptionSize: detailsDescriptionSize = 'm' } = details || {};
17
17
  const getDescriptionComponent = (priceDescription) => {
@@ -1 +1 @@
1
- {"version":3,"file":"PriceDetailed.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceDetailed/PriceDetailed.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAE/B,kDAMsB;AAEtB,qHAAkF;AAClF,sGAAmE;AACnE,0FAAuD;AACvD,qHAAkF;AAElF,uCAAuC;AACvC,kBAAkB;AAClB,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IAChD,MAAM,EACF,SAAS,GAAG,yBAAgB,CAAC,QAAQ,EACrC,KAAK,EACL,gBAAgB,GAAG,CAAC,EACpB,WAAW,EACX,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,UAAU,GAAG,KAAK,EAClB,YAAY,GAAG,KAAK,EACpB,MAAM,GACT,GAAG,KAAK,CAAC;IAEV,MAAM,EACF,SAAS,EAAE,oBAAoB,GAAG,GAAG,EACrC,eAAe,GAAG,GAAG,EACrB,UAAU,EAAE,qBAAqB,GAAG,YAAY,GACnD,GAAG,WAAW,IAAI,EAAE,CAAC;IAEtB,MAAM,EAAC,SAAS,EAAE,gBAAgB,GAAG,GAAG,EAAE,eAAe,EAAE,sBAAsB,GAAG,GAAG,EAAC,GACpF,OAAO,IAAI,EAAE,CAAC;IAElB,MAAM,uBAAuB,GAAG,CAAC,gBAAuC,EAAE,EAAE;QACxE,OAAO,CACH,uBAAC,0BAAgB,OACT,gBAAgB,EACpB,SAAS,EAAE,oBAAoB,EAC/B,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,qBAAqB,EACjC,iBAAiB,EAAE,iBAAiB,GACtC,CACL,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,mBAAmB,GAAG,CACxB,YAAoE,EACtE,EAAE;QACA,OAAO,CACH,uBAAC,sBAAY,IACT,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,gBAAgB,EAC3B,eAAe,EAAE,sBAAsB,EACvC,YAAY,EAAE,YAAY,GAC5B,CACL,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,uBAAC,KAAK,CAAC,QAAQ,cACV,UAAU,CAAC,CAAC,CAAC,CACV,uBAAC,+BAAqB,IAClB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,uBAAuB,EAAE,uBAAuB,EAChD,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,CAAC,CAAC,CAAC,CACA,uBAAC,+BAAqB,IAClB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,uBAAuB,EAAE,uBAAuB,EAChD,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,GACY,CACpB,CAAC;AACN,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {\n PriceDescriptionProps,\n PriceDetailedProps,\n PriceDetailsListProps,\n PriceDetailsSettingsProps,\n PriceDetailsType,\n} from '../../models';\n\nimport CombinedPriceDetailed from './CombinedPriceDetailed/CombinedPriceDetailed';\nimport PriceDescription from './PriceDescription/PriceDescription';\nimport PriceDetails from './PriceDetails/PriceDetails';\nimport SeparatePriceDetailed from './SeparatePriceDetailed/SeparatePriceDetailed';\n\n// eslint-disable-next-line valid-jsdoc\n/** @deprecated */\nconst PriceDetailed = (props: PriceDetailedProps) => {\n const {\n priceType = PriceDetailsType.SETTINGS,\n items,\n numberGroupItems = 1,\n description,\n details,\n foldable,\n labelsDefaultText,\n isCombined = false,\n useMixedView = false,\n border,\n } = props;\n\n const {\n titleSize: descriptionTitleSize = 'l',\n descriptionSize = 'm',\n titleColor: descriptionTitleColor = 'cornflower',\n } = description || {};\n\n const {titleSize: detailsTitleSize = 's', descriptionSize: detailsDescriptionSize = 'm'} =\n details || {};\n\n const getDescriptionComponent = (priceDescription: PriceDescriptionProps) => {\n return (\n <PriceDescription\n {...priceDescription}\n titleSize={descriptionTitleSize}\n descriptionSize={descriptionSize}\n colorTitle={descriptionTitleColor}\n labelsDefaultText={labelsDefaultText}\n />\n );\n };\n\n const getDetailsComponent = (\n priceDetails?: PriceDetailsSettingsProps[] | PriceDetailsListProps[],\n ) => {\n return (\n <PriceDetails\n items={priceDetails}\n type={priceType}\n foldable={foldable}\n titleSize={detailsTitleSize}\n descriptionSize={detailsDescriptionSize}\n useMixedView={useMixedView}\n />\n );\n };\n\n return (\n <React.Fragment>\n {isCombined ? (\n <CombinedPriceDetailed\n items={items}\n numberGroupItems={numberGroupItems}\n border={border}\n useMixedView={useMixedView}\n getDescriptionComponent={getDescriptionComponent}\n getDetailsComponent={getDetailsComponent}\n />\n ) : (\n <SeparatePriceDetailed\n items={items}\n border={border}\n getDescriptionComponent={getDescriptionComponent}\n getDetailsComponent={getDetailsComponent}\n />\n )}\n </React.Fragment>\n );\n};\n\nexport default PriceDetailed;\n"]}
1
+ {"version":3,"file":"PriceDetailed.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceDetailed/PriceDetailed.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAE/B,kDAMsB;AAEtB,qHAAkF;AAClF,sGAAmE;AACnE,0FAAuD;AACvD,qHAAkF;AAElF,uCAAuC;AACvC,kBAAkB;AAClB,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IAChD,MAAM,EACF,SAAS,GAAG,yBAAgB,CAAC,QAAQ,EACrC,KAAK,GAAG,EAAE,EACV,gBAAgB,GAAG,CAAC,EACpB,WAAW,EACX,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,UAAU,GAAG,KAAK,EAClB,YAAY,GAAG,KAAK,EACpB,MAAM,GACT,GAAG,KAAK,CAAC;IAEV,MAAM,EACF,SAAS,EAAE,oBAAoB,GAAG,GAAG,EACrC,eAAe,GAAG,GAAG,EACrB,UAAU,EAAE,qBAAqB,GAAG,YAAY,GACnD,GAAG,WAAW,IAAI,EAAE,CAAC;IAEtB,MAAM,EAAC,SAAS,EAAE,gBAAgB,GAAG,GAAG,EAAE,eAAe,EAAE,sBAAsB,GAAG,GAAG,EAAC,GACpF,OAAO,IAAI,EAAE,CAAC;IAElB,MAAM,uBAAuB,GAAG,CAAC,gBAAuC,EAAE,EAAE;QACxE,OAAO,CACH,uBAAC,0BAAgB,OACT,gBAAgB,EACpB,SAAS,EAAE,oBAAoB,EAC/B,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,qBAAqB,EACjC,iBAAiB,EAAE,iBAAiB,GACtC,CACL,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,mBAAmB,GAAG,CACxB,YAAoE,EACtE,EAAE;QACA,OAAO,CACH,uBAAC,sBAAY,IACT,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,gBAAgB,EAC3B,eAAe,EAAE,sBAAsB,EACvC,YAAY,EAAE,YAAY,GAC5B,CACL,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,uBAAC,KAAK,CAAC,QAAQ,cACV,UAAU,CAAC,CAAC,CAAC,CACV,uBAAC,+BAAqB,IAClB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,uBAAuB,EAAE,uBAAuB,EAChD,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,CAAC,CAAC,CAAC,CACA,uBAAC,+BAAqB,IAClB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,uBAAuB,EAAE,uBAAuB,EAChD,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,GACY,CACpB,CAAC;AACN,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {\n PriceDescriptionProps,\n PriceDetailedProps,\n PriceDetailsListProps,\n PriceDetailsSettingsProps,\n PriceDetailsType,\n} from '../../models';\n\nimport CombinedPriceDetailed from './CombinedPriceDetailed/CombinedPriceDetailed';\nimport PriceDescription from './PriceDescription/PriceDescription';\nimport PriceDetails from './PriceDetails/PriceDetails';\nimport SeparatePriceDetailed from './SeparatePriceDetailed/SeparatePriceDetailed';\n\n// eslint-disable-next-line valid-jsdoc\n/** @deprecated */\nconst PriceDetailed = (props: PriceDetailedProps) => {\n const {\n priceType = PriceDetailsType.SETTINGS,\n items = [],\n numberGroupItems = 1,\n description,\n details,\n foldable,\n labelsDefaultText,\n isCombined = false,\n useMixedView = false,\n border,\n } = props;\n\n const {\n titleSize: descriptionTitleSize = 'l',\n descriptionSize = 'm',\n titleColor: descriptionTitleColor = 'cornflower',\n } = description || {};\n\n const {titleSize: detailsTitleSize = 's', descriptionSize: detailsDescriptionSize = 'm'} =\n details || {};\n\n const getDescriptionComponent = (priceDescription: PriceDescriptionProps) => {\n return (\n <PriceDescription\n {...priceDescription}\n titleSize={descriptionTitleSize}\n descriptionSize={descriptionSize}\n colorTitle={descriptionTitleColor}\n labelsDefaultText={labelsDefaultText}\n />\n );\n };\n\n const getDetailsComponent = (\n priceDetails?: PriceDetailsSettingsProps[] | PriceDetailsListProps[],\n ) => {\n return (\n <PriceDetails\n items={priceDetails}\n type={priceType}\n foldable={foldable}\n titleSize={detailsTitleSize}\n descriptionSize={detailsDescriptionSize}\n useMixedView={useMixedView}\n />\n );\n };\n\n return (\n <React.Fragment>\n {isCombined ? (\n <CombinedPriceDetailed\n items={items}\n numberGroupItems={numberGroupItems}\n border={border}\n useMixedView={useMixedView}\n getDescriptionComponent={getDescriptionComponent}\n getDetailsComponent={getDetailsComponent}\n />\n ) : (\n <SeparatePriceDetailed\n items={items}\n border={border}\n getDescriptionComponent={getDescriptionComponent}\n getDetailsComponent={getDetailsComponent}\n />\n )}\n </React.Fragment>\n );\n};\n\nexport default PriceDetailed;\n"]}
@@ -0,0 +1,4 @@
1
+ import { BlockData } from "../../constructor-items.js";
2
+ /** @deprecated */
3
+ declare const PriceDetailedConfig: BlockData;
4
+ export default PriceDetailedConfig;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const form_generator_1 = require("../../utils/form-generator.js");
5
+ const PriceDetailed_1 = tslib_1.__importDefault(require("./PriceDetailed.js"));
6
+ const schema_1 = require("./schema.js");
7
+ /** @deprecated */
8
+ const PriceDetailedConfig = {
9
+ component: PriceDetailed_1.default,
10
+ schema: {
11
+ name: 'Price Detailed',
12
+ group: 'cards',
13
+ inputs: (0, form_generator_1.generateFromAJV)(schema_1.PriceDetailedBlock['price-detailed']),
14
+ default: {
15
+ priceType: 'marked-list',
16
+ items: [
17
+ {
18
+ title: '100$',
19
+ description: 'Basic edition',
20
+ detailedTitle: 'per year',
21
+ items: [
22
+ {
23
+ text: 'First item',
24
+ },
25
+ {
26
+ text: 'Second item',
27
+ },
28
+ ],
29
+ },
30
+ ],
31
+ },
32
+ },
33
+ };
34
+ exports.default = PriceDetailedConfig;
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["sub-blocks/PriceDetailed/index.tsx"],"names":[],"mappings":";;;AAGA,kEAA2D;AAE3D,+EAA4C;AAC5C,wCAAmE;AAEnE,kBAAkB;AAClB,MAAM,mBAAmB,GAAc;IACnC,SAAS,EAAE,uBAAa;IACxB,MAAM,EAAE;QACJ,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,IAAA,gCAAe,EACnB,2BAAmB,CAAC,gBAAgB,CAAkC,CACzE;QACD,OAAO,EAAE;YACL,SAAS,EAAE,aAAa;YACxB,KAAK,EAAE;gBACH;oBACI,KAAK,EAAE,MAAM;oBACb,WAAW,EAAE,eAAe;oBAC5B,aAAa,EAAE,UAAU;oBACzB,KAAK,EAAE;wBACH;4BACI,IAAI,EAAE,YAAY;yBACrB;wBACD;4BACI,IAAI,EAAE,aAAa;yBACtB;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,kBAAe,mBAAmB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport PriceDetailed from './PriceDetailed';\nimport {PriceDetailedBlock as PriceDetailedSchema} from './schema';\n\n/** @deprecated */\nconst PriceDetailedConfig: BlockData = {\n component: PriceDetailed,\n schema: {\n name: 'Price Detailed',\n group: 'cards',\n inputs: generateFromAJV(\n PriceDetailedSchema['price-detailed'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n priceType: 'marked-list',\n items: [\n {\n title: '100$',\n description: 'Basic edition',\n detailedTitle: 'per year',\n items: [\n {\n text: 'First item',\n },\n {\n text: 'Second item',\n },\n ],\n },\n ],\n },\n },\n};\n\nexport default PriceDetailedConfig;\n"]}
@@ -0,0 +1,3 @@
1
+ import { BlockData } from "../../constructor-items.js";
2
+ declare const QuoteConfig: BlockData;
3
+ export default QuoteConfig;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const form_generator_1 = require("../../utils/form-generator.js");
5
+ const Quote_1 = tslib_1.__importDefault(require("./Quote.js"));
6
+ const schema_1 = require("./schema.js");
7
+ const QuoteConfig = {
8
+ component: Quote_1.default,
9
+ schema: {
10
+ name: 'Quote',
11
+ group: 'cards',
12
+ inputs: (0, form_generator_1.generateFromAJV)(schema_1.Quote['quote']),
13
+ default: {
14
+ text: 'A good decision is based on knowledge and not on numbers.',
15
+ author: {
16
+ firstName: ' Plato',
17
+ description: 'Greek philosopher',
18
+ },
19
+ },
20
+ },
21
+ };
22
+ exports.default = QuoteConfig;
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["sub-blocks/Quote/index.tsx"],"names":[],"mappings":";;;AAGA,kEAA2D;AAE3D,+DAA4B;AAC5B,wCAA8C;AAE9C,MAAM,WAAW,GAAc;IAC3B,SAAS,EAAE,eAAK;IAChB,MAAM,EAAE;QACJ,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,IAAA,gCAAe,EAAC,cAAW,CAAC,OAAO,CAAkC,CAAC;QAC9E,OAAO,EAAE;YACL,IAAI,EAAE,2DAA2D;YACjE,MAAM,EAAE;gBACJ,SAAS,EAAE,QAAQ;gBACnB,WAAW,EAAE,mBAAmB;aACnC;SACJ;KACJ;CACJ,CAAC;AAEF,kBAAe,WAAW,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport Quote from './Quote';\nimport {Quote as QuoteSchema} from './schema';\n\nconst QuoteConfig: BlockData = {\n component: Quote,\n schema: {\n name: 'Quote',\n group: 'cards',\n inputs: generateFromAJV(QuoteSchema['quote'] as unknown as JSONSchemaType<{}>),\n default: {\n text: 'A good decision is based on knowledge and not on numbers.',\n author: {\n firstName: ' Plato',\n description: 'Greek philosopher',\n },\n },\n },\n};\n\nexport default QuoteConfig;\n"]}
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const getCursorPositionOverElement: (elementRect: DOMRect, mouseEvent: React.MouseEvent) => "left" | "right" | "top" | "bottom";
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCursorPositionOverElement = void 0;
4
+ const getCursorPositionOverElement = (elementRect, mouseEvent) => {
5
+ const cursorPositionY = elementRect.height - (mouseEvent.clientY - elementRect.y);
6
+ const cursorPositionX = elementRect.width - (mouseEvent.clientX - elementRect.x);
7
+ const cursorRatioY = elementRect.height / 2 / cursorPositionY;
8
+ const cursorRatioX = elementRect.width / 2 / cursorPositionX;
9
+ if (cursorRatioY > cursorRatioX) {
10
+ if (cursorRatioY >= 1) {
11
+ return 'bottom';
12
+ }
13
+ else {
14
+ return 'left';
15
+ }
16
+ }
17
+ else if (cursorRatioX >= 1) {
18
+ return 'right';
19
+ }
20
+ else {
21
+ return 'top';
22
+ }
23
+ };
24
+ exports.getCursorPositionOverElement = getCursorPositionOverElement;
25
+ //# sourceMappingURL=editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.js","sourceRoot":"../../../src","sources":["utils/editor.ts"],"names":[],"mappings":";;;AAEO,MAAM,4BAA4B,GAAG,CACxC,WAAoB,EACpB,UAA4B,EAC9B,EAAE;IACA,MAAM,eAAe,GAAG,WAAW,CAAC,MAAM,GAAG,CAAC,UAAU,CAAC,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;IAClF,MAAM,eAAe,GAAG,WAAW,CAAC,KAAK,GAAG,CAAC,UAAU,CAAC,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;IACjF,MAAM,YAAY,GAAG,WAAW,CAAC,MAAM,GAAG,CAAC,GAAG,eAAe,CAAC;IAC9D,MAAM,YAAY,GAAG,WAAW,CAAC,KAAK,GAAG,CAAC,GAAG,eAAe,CAAC;IAE7D,IAAI,YAAY,GAAG,YAAY,EAAE,CAAC;QAC9B,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;YACpB,OAAO,QAAQ,CAAC;QACpB,CAAC;aAAM,CAAC;YACJ,OAAO,MAAM,CAAC;QAClB,CAAC;IACL,CAAC;SAAM,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;QAC3B,OAAO,OAAO,CAAC;IACnB,CAAC;SAAM,CAAC;QACJ,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC,CAAC;AApBW,QAAA,4BAA4B,gCAoBvC","sourcesContent":["import * as React from 'react';\n\nexport const getCursorPositionOverElement = (\n elementRect: DOMRect,\n mouseEvent: React.MouseEvent,\n) => {\n const cursorPositionY = elementRect.height - (mouseEvent.clientY - elementRect.y);\n const cursorPositionX = elementRect.width - (mouseEvent.clientX - elementRect.x);\n const cursorRatioY = elementRect.height / 2 / cursorPositionY;\n const cursorRatioX = elementRect.width / 2 / cursorPositionX;\n\n if (cursorRatioY > cursorRatioX) {\n if (cursorRatioY >= 1) {\n return 'bottom';\n } else {\n return 'left';\n }\n } else if (cursorRatioX >= 1) {\n return 'right';\n } else {\n return 'top';\n }\n};\n"]}
@@ -0,0 +1,9 @@
1
+ import { JSONSchemaType } from 'ajv';
2
+ import { ArrayBaseInput, BooleanInput, ConfigInput, NumberInput, ObjectInput, SelectBaseInput, TextAreaInput, TextInput } from "../../common/types/index.js";
3
+ export declare const generateFromAJV: (schema: JSONSchemaType<{}>) => ConfigInput[];
4
+ export declare const generateSingleEntity: (key: string, schema: JSONSchemaType<{}>) => TextInput | BooleanInput | NumberInput | TextAreaInput | SelectBaseInput | ObjectInput | ArrayBaseInput | {
5
+ type: string;
6
+ name: string;
7
+ title: string;
8
+ options: any;
9
+ } | undefined;
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateSingleEntity = exports.generateFromAJV = void 0;
4
+ const generateFromAJV = (schema) => {
5
+ if (schema && schema.properties) {
6
+ const obj = Object.entries(schema.properties).map(([key, value]) => {
7
+ const innerSchema = value;
8
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
9
+ return (0, exports.generateSingleEntity)(key, innerSchema);
10
+ });
11
+ return obj.filter(Boolean);
12
+ }
13
+ return [];
14
+ };
15
+ exports.generateFromAJV = generateFromAJV;
16
+ const generateSingleEntity = (key, schema) => {
17
+ const type = schema.type;
18
+ if (!type && schema.enum) {
19
+ return {
20
+ type: 'select',
21
+ view: 'select',
22
+ name: key,
23
+ title: key,
24
+ enum: schema.enum.map((enumValue) => ({
25
+ content: enumValue,
26
+ value: enumValue,
27
+ })),
28
+ };
29
+ }
30
+ if (schema.oneOf) {
31
+ return {
32
+ type: 'oneOf',
33
+ name: key,
34
+ title: key,
35
+ options: schema.oneOf.map((item) => {
36
+ let properties;
37
+ if (item.properties) {
38
+ properties = (0, exports.generateFromAJV)(item);
39
+ }
40
+ else {
41
+ properties = [
42
+ (0, exports.generateSingleEntity)('', {
43
+ ...item,
44
+ name: '',
45
+ title: item.optionName,
46
+ }),
47
+ ];
48
+ }
49
+ return {
50
+ value: item.optionName,
51
+ title: item.optionName,
52
+ properties: properties,
53
+ };
54
+ }),
55
+ };
56
+ }
57
+ switch (type) {
58
+ case 'string': {
59
+ if (schema.inputType === 'textarea') {
60
+ return {
61
+ type: 'textarea',
62
+ name: key,
63
+ title: key,
64
+ };
65
+ }
66
+ if (schema.enum) {
67
+ return {
68
+ type: 'select',
69
+ view: 'select',
70
+ name: key,
71
+ title: key,
72
+ enum: schema.enum.map((enumValue) => ({
73
+ content: enumValue,
74
+ value: enumValue,
75
+ })),
76
+ };
77
+ }
78
+ return {
79
+ type: 'text',
80
+ name: key,
81
+ title: key,
82
+ };
83
+ }
84
+ case 'number': {
85
+ return {
86
+ type: 'number',
87
+ name: key,
88
+ title: key,
89
+ };
90
+ }
91
+ case 'object': {
92
+ return {
93
+ type: 'object',
94
+ name: key,
95
+ title: key,
96
+ properties: (0, exports.generateFromAJV)(schema),
97
+ };
98
+ }
99
+ case 'boolean': {
100
+ return {
101
+ type: 'boolean',
102
+ name: key,
103
+ title: key,
104
+ properties: (0, exports.generateFromAJV)(schema),
105
+ };
106
+ }
107
+ case 'array': {
108
+ if (schema.items.type === 'string') {
109
+ return {
110
+ type: 'array',
111
+ name: key,
112
+ title: key,
113
+ properties: (0, exports.generateFromAJV)(schema.items),
114
+ buttonText: 'Add',
115
+ arrayType: 'text',
116
+ };
117
+ }
118
+ return {
119
+ type: 'array',
120
+ name: key,
121
+ title: key,
122
+ properties: (0, exports.generateFromAJV)(schema.items),
123
+ buttonText: 'Add',
124
+ arrayType: 'object',
125
+ };
126
+ }
127
+ }
128
+ return undefined;
129
+ };
130
+ exports.generateSingleEntity = generateSingleEntity;
131
+ //# sourceMappingURL=form-generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-generator.js","sourceRoot":"../../../src","sources":["utils/form-generator.ts"],"names":[],"mappings":";;;AAaO,MAAM,eAAe,GAAG,CAAC,MAA0B,EAAiB,EAAE;IACzE,IAAI,MAAM,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;QAC9B,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC/D,MAAM,WAAW,GAAG,KAA2B,CAAC;YAChD,mEAAmE;YACnE,OAAO,IAAA,4BAAoB,EAAC,GAAG,EAAE,WAAW,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC,MAAM,CAAC,OAAO,CAAkB,CAAC;IAChD,CAAC;IACD,OAAO,EAAE,CAAC;AACd,CAAC,CAAC;AAXW,QAAA,eAAe,mBAW1B;AAEK,MAAM,oBAAoB,GAAG,CAAC,GAAW,EAAE,MAA0B,EAAE,EAAE;IAC5E,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IAEzB,IAAI,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;QACvB,OAAO;YACH,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,GAAG;YACT,KAAK,EAAE,GAAG;YACV,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,CAAC;gBAC1C,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,SAAS;aACnB,CAAC,CAAC;SACa,CAAC;IACzB,CAAC;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,OAAO;YACH,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,GAAG;YACT,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAwB,EAAE,EAAE;gBACnD,IAAI,UAAU,CAAC;gBACf,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;oBAClB,UAAU,GAAG,IAAA,uBAAe,EAAC,IAAI,CAAC,CAAC;gBACvC,CAAC;qBAAM,CAAC;oBACJ,UAAU,GAAG;wBACT,IAAA,4BAAoB,EAAC,EAAE,EAAE;4BACrB,GAAG,IAAI;4BACP,IAAI,EAAE,EAAE;4BACR,KAAK,EAAE,IAAI,CAAC,UAAU;yBACzB,CAAC;qBACL,CAAC;gBACN,CAAC;gBAED,OAAO;oBACH,KAAK,EAAE,IAAI,CAAC,UAAU;oBACtB,KAAK,EAAE,IAAI,CAAC,UAAU;oBACtB,UAAU,EAAE,UAAU;iBACzB,CAAC;YACN,CAAC,CAAC;SACL,CAAC;IACN,CAAC;IAED,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,QAAQ,CAAC,CAAC,CAAC;YACZ,IAAI,MAAM,CAAC,SAAS,KAAK,UAAU,EAAE,CAAC;gBAClC,OAAO;oBACH,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,GAAG;oBACT,KAAK,EAAE,GAAG;iBACI,CAAC;YACvB,CAAC;YACD,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;gBACd,OAAO;oBACH,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,GAAG;oBACT,KAAK,EAAE,GAAG;oBACV,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,CAAC;wBAC1C,OAAO,EAAE,SAAS;wBAClB,KAAK,EAAE,SAAS;qBACnB,CAAC,CAAC;iBACa,CAAC;YACzB,CAAC;YACD,OAAO;gBACH,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;aACA,CAAC;QACnB,CAAC;QACD,KAAK,QAAQ,CAAC,CAAC,CAAC;YACZ,OAAO;gBACH,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;aACE,CAAC;QACrB,CAAC;QACD,KAAK,QAAQ,CAAC,CAAC,CAAC;YACZ,OAAO;gBACH,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;gBACV,UAAU,EAAE,IAAA,uBAAe,EAAC,MAAM,CAAC;aACvB,CAAC;QACrB,CAAC;QACD,KAAK,SAAS,CAAC,CAAC,CAAC;YACb,OAAO;gBACH,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;gBACV,UAAU,EAAE,IAAA,uBAAe,EAAC,MAAM,CAAC;aACtB,CAAC;QACtB,CAAC;QACD,KAAK,OAAO,CAAC,CAAC,CAAC;YACX,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACjC,OAAO;oBACH,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,GAAG;oBACT,KAAK,EAAE,GAAG;oBACV,UAAU,EAAE,IAAA,uBAAe,EAAC,MAAM,CAAC,KAAK,CAAC;oBACzC,UAAU,EAAE,KAAK;oBACjB,SAAS,EAAE,MAAM;iBACF,CAAC;YACxB,CAAC;YAED,OAAO;gBACH,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,GAAG;gBACT,KAAK,EAAE,GAAG;gBACV,UAAU,EAAE,IAAA,uBAAe,EAAC,MAAM,CAAC,KAAK,CAAC;gBACzC,UAAU,EAAE,KAAK;gBACjB,SAAS,EAAE,QAAQ;aACJ,CAAC;QACxB,CAAC;IACL,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC;AAtHW,QAAA,oBAAoB,wBAsH/B","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {\n ArrayBaseInput,\n BooleanInput,\n ConfigInput,\n NumberInput,\n ObjectInput,\n SelectBaseInput,\n TextAreaInput,\n TextInput,\n} from '../../common/types';\n\nexport const generateFromAJV = (schema: JSONSchemaType<{}>): ConfigInput[] => {\n if (schema && schema.properties) {\n const obj = Object.entries(schema.properties).map(([key, value]) => {\n const innerSchema = value as JSONSchemaType<{}>;\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n return generateSingleEntity(key, innerSchema);\n });\n\n return obj.filter(Boolean) as ConfigInput[];\n }\n return [];\n};\n\nexport const generateSingleEntity = (key: string, schema: JSONSchemaType<{}>) => {\n const type = schema.type;\n\n if (!type && schema.enum) {\n return {\n type: 'select',\n view: 'select',\n name: key,\n title: key,\n enum: schema.enum.map((enumValue: string) => ({\n content: enumValue,\n value: enumValue,\n })),\n } as SelectBaseInput;\n }\n\n if (schema.oneOf) {\n return {\n type: 'oneOf',\n name: key,\n title: key,\n options: schema.oneOf.map((item: JSONSchemaType<{}>) => {\n let properties;\n if (item.properties) {\n properties = generateFromAJV(item);\n } else {\n properties = [\n generateSingleEntity('', {\n ...item,\n name: '',\n title: item.optionName,\n }),\n ];\n }\n\n return {\n value: item.optionName,\n title: item.optionName,\n properties: properties,\n };\n }),\n };\n }\n\n switch (type) {\n case 'string': {\n if (schema.inputType === 'textarea') {\n return {\n type: 'textarea',\n name: key,\n title: key,\n } as TextAreaInput;\n }\n if (schema.enum) {\n return {\n type: 'select',\n view: 'select',\n name: key,\n title: key,\n enum: schema.enum.map((enumValue: string) => ({\n content: enumValue,\n value: enumValue,\n })),\n } as SelectBaseInput;\n }\n return {\n type: 'text',\n name: key,\n title: key,\n } as TextInput;\n }\n case 'number': {\n return {\n type: 'number',\n name: key,\n title: key,\n } as NumberInput;\n }\n case 'object': {\n return {\n type: 'object',\n name: key,\n title: key,\n properties: generateFromAJV(schema),\n } as ObjectInput;\n }\n case 'boolean': {\n return {\n type: 'boolean',\n name: key,\n title: key,\n properties: generateFromAJV(schema),\n } as BooleanInput;\n }\n case 'array': {\n if (schema.items.type === 'string') {\n return {\n type: 'array',\n name: key,\n title: key,\n properties: generateFromAJV(schema.items),\n buttonText: 'Add',\n arrayType: 'text',\n } as ArrayBaseInput;\n }\n\n return {\n type: 'array',\n name: key,\n title: key,\n properties: generateFromAJV(schema.items),\n buttonText: 'Add',\n arrayType: 'object',\n } as ArrayBaseInput;\n }\n }\n\n return undefined;\n};\n"]}
@@ -5,5 +5,6 @@ export * from "./url.js";
5
5
  export * from "./cn.js";
6
6
  export * from "./url.js";
7
7
  export * from "./theme.js";
8
+ export * from "./navigation.js";
8
9
  export type { HubspotEventData, HubspotEventHandlers, HubspotEventName } from "./hubspot.js";
9
10
  export { isHubspotEventData } from "./hubspot.js";
@@ -9,6 +9,7 @@ tslib_1.__exportStar(require("./url.js"), exports);
9
9
  tslib_1.__exportStar(require("./cn.js"), exports);
10
10
  tslib_1.__exportStar(require("./url.js"), exports);
11
11
  tslib_1.__exportStar(require("./theme.js"), exports);
12
+ tslib_1.__exportStar(require("./navigation.js"), exports);
12
13
  var hubspot_1 = require("./hubspot.js");
13
14
  Object.defineProperty(exports, "isHubspotEventData", { enumerable: true, get: function () { return hubspot_1.isHubspotEventData; } });
14
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../src","sources":["utils/index.ts"],"names":[],"mappings":";;;;AAAA,sDAAyB;AACzB,yDAA4B;AAC5B,sDAAyB;AACzB,mDAAsB;AACtB,kDAAqB;AACrB,mDAAsB;AACtB,qDAAwB;AAGxB,wCAA6C;AAArC,6GAAA,kBAAkB,OAAA","sourcesContent":["export * from './common';\nexport * from './analytics';\nexport * from './blocks';\nexport * from './url';\nexport * from './cn';\nexport * from './url';\nexport * from './theme';\n\nexport type {HubspotEventData, HubspotEventHandlers, HubspotEventName} from './hubspot';\nexport {isHubspotEventData} from './hubspot';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../src","sources":["utils/index.ts"],"names":[],"mappings":";;;;AAAA,sDAAyB;AACzB,yDAA4B;AAC5B,sDAAyB;AACzB,mDAAsB;AACtB,kDAAqB;AACrB,mDAAsB;AACtB,qDAAwB;AACxB,0DAA6B;AAG7B,wCAA6C;AAArC,6GAAA,kBAAkB,OAAA","sourcesContent":["export * from './common';\nexport * from './analytics';\nexport * from './blocks';\nexport * from './url';\nexport * from './cn';\nexport * from './url';\nexport * from './theme';\nexport * from './navigation';\n\nexport type {HubspotEventData, HubspotEventHandlers, HubspotEventName} from './hubspot';\nexport {isHubspotEventData} from './hubspot';\n"]}
@@ -0,0 +1,3 @@
1
+ import { HeaderData, ThemedNavigationLogoData } from "../models/index.js";
2
+ export declare function isLogoSet(logo?: ThemedNavigationLogoData): logo is ThemedNavigationLogoData;
3
+ export declare function isHeaderSet(header?: HeaderData): header is HeaderData;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isLogoSet = isLogoSet;
4
+ exports.isHeaderSet = isHeaderSet;
5
+ const tslib_1 = require("tslib");
6
+ const get_1 = tslib_1.__importDefault(require("lodash/get.js"));
7
+ const isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty.js"));
8
+ function isLogoSet(logo) {
9
+ return Boolean((0, get_1.default)(logo, 'icon') || (0, get_1.default)(logo, 'light.icon'));
10
+ }
11
+ function isHeaderSet(header) {
12
+ return !(0, isEmpty_1.default)(header?.leftItems);
13
+ }
14
+ //# sourceMappingURL=navigation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.js","sourceRoot":"../../../src","sources":["utils/navigation.ts"],"names":[],"mappings":";;AAKA,8BAEC;AAED,kCAEC;;AAXD,gEAA8B;AAC9B,wEAAsC;AAItC,SAAgB,SAAS,CAAC,IAA+B;IACrD,OAAO,OAAO,CAAC,IAAA,aAAI,EAAC,IAAI,EAAE,MAAM,CAAC,IAAI,IAAA,aAAI,EAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;AACnE,CAAC;AAED,SAAgB,WAAW,CAAC,MAAmB;IAC3C,OAAO,CAAC,IAAA,iBAAQ,EAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AACxC,CAAC","sourcesContent":["import _get from 'lodash/get';\nimport _isEmpty from 'lodash/isEmpty';\n\nimport {HeaderData, ThemedNavigationLogoData} from '../models';\n\nexport function isLogoSet(logo?: ThemedNavigationLogoData): logo is ThemedNavigationLogoData {\n return Boolean(_get(logo, 'icon') || _get(logo, 'light.icon'));\n}\n\nexport function isHeaderSet(header?: HeaderData): header is HeaderData {\n return !_isEmpty(header?.leftItems);\n}\n"]}
@@ -1,12 +1,13 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import AnimateBlock from "../../components/AnimateBlock/AnimateBlock.js";
3
+ import { Grid } from "../../grid/index.js";
3
4
  import { BannerCard } from "../../sub-blocks/index.js";
4
5
  import { block } from "../../utils/index.js";
5
6
  import './Banner.css';
6
7
  const b = block('banner-block');
7
8
  export const BannerBlock = (props) => {
8
9
  const { animated, className, ...bannerProps } = props;
9
- return (_jsx(AnimateBlock, { className: b(null, className), animate: animated, children: _jsx(BannerCard, { ...bannerProps }) }));
10
+ return (_jsx(AnimateBlock, { className: b(null, className), animate: animated, children: _jsx(Grid, { children: _jsx(BannerCard, { ...bannerProps }) }) }));
10
11
  };
11
12
  export default BannerBlock;
12
13
  //# sourceMappingURL=Banner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.js","sourceRoot":"../../../../src","sources":["blocks/Banner/Banner.tsx"],"names":[],"mappings":";AAAA,OAAO,YAAY,sDAAmD;AAEtE,OAAO,EAAC,UAAU,EAAC,kCAAyB;AAC5C,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAElC,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;AAEhC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IACnD,MAAM,EAAC,QAAQ,EAAE,SAAS,EAAE,GAAG,WAAW,EAAC,GAAG,KAAK,CAAC;IAEpD,OAAO,CACH,KAAC,YAAY,IAAC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,YAC1D,KAAC,UAAU,OAAK,WAAW,GAAI,GACpB,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';\nimport {BannerBlockProps} from '../../models';\nimport {BannerCard} from '../../sub-blocks';\nimport {block} from '../../utils';\n\nimport './Banner.scss';\n\nconst b = block('banner-block');\n\nexport const BannerBlock = (props: BannerBlockProps) => {\n const {animated, className, ...bannerProps} = props;\n\n return (\n <AnimateBlock className={b(null, className)} animate={animated}>\n <BannerCard {...bannerProps} />\n </AnimateBlock>\n );\n};\n\nexport default BannerBlock;\n"]}
1
+ {"version":3,"file":"Banner.js","sourceRoot":"../../../../src","sources":["blocks/Banner/Banner.tsx"],"names":[],"mappings":";AAAA,OAAO,YAAY,sDAAmD;AACtE,OAAO,EAAC,IAAI,EAAC,4BAAmB;AAEhC,OAAO,EAAC,UAAU,EAAC,kCAAyB;AAC5C,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAElC,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;AAEhC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IACnD,MAAM,EAAC,QAAQ,EAAE,SAAS,EAAE,GAAG,WAAW,EAAC,GAAG,KAAK,CAAC;IAEpD,OAAO,CACH,KAAC,YAAY,IAAC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,YAC1D,KAAC,IAAI,cACD,KAAC,UAAU,OAAK,WAAW,GAAI,GAC5B,GACI,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';\nimport {Grid} from '../../grid';\nimport {BannerBlockProps} from '../../models';\nimport {BannerCard} from '../../sub-blocks';\nimport {block} from '../../utils';\n\nimport './Banner.scss';\n\nconst b = block('banner-block');\n\nexport const BannerBlock = (props: BannerBlockProps) => {\n const {animated, className, ...bannerProps} = props;\n\n return (\n <AnimateBlock className={b(null, className)} animate={animated}>\n <Grid>\n <BannerCard {...bannerProps} />\n </Grid>\n </AnimateBlock>\n );\n};\n\nexport default BannerBlock;\n"]}
@@ -0,0 +1,3 @@
1
+ import { BlockData } from "../../constructor-items.js";
2
+ declare const BannerBlockConfig: BlockData;
3
+ export default BannerBlockConfig;
@@ -0,0 +1,21 @@
1
+ import { generateFromAJV } from "../../utils/form-generator.js";
2
+ import BannerBlock from "./Banner.js";
3
+ import { BannerCardProps } from "./schema.js";
4
+ const BannerBlockConfig = {
5
+ component: BannerBlock,
6
+ schema: {
7
+ name: 'Banner Block',
8
+ group: 'block',
9
+ inputs: generateFromAJV(BannerCardProps),
10
+ default: {
11
+ color: 'rgba(54, 151, 241, 0.4)',
12
+ title: 'Banner Block',
13
+ subtitle: 'Some sort of description.',
14
+ button: {
15
+ text: 'Read more',
16
+ },
17
+ },
18
+ },
19
+ };
20
+ export default BannerBlockConfig;
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/Banner/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,WAAW,oBAAiB;AACnC,OAAO,EAAC,eAAe,EAAC,oBAAiB;AAEzC,MAAM,iBAAiB,GAAc;IACjC,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE;QACJ,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,eAAe,CAAC,eAAgD,CAAC;QACzE,OAAO,EAAE;YACL,KAAK,EAAE,yBAAyB;YAChC,KAAK,EAAE,cAAc;YACrB,QAAQ,EAAE,2BAA2B;YACrC,MAAM,EAAE;gBACJ,IAAI,EAAE,WAAW;aACpB;SACJ;KACJ;CACJ,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport BannerBlock from './Banner';\nimport {BannerCardProps} from './schema';\n\nconst BannerBlockConfig: BlockData = {\n component: BannerBlock,\n schema: {\n name: 'Banner Block',\n group: 'block',\n inputs: generateFromAJV(BannerCardProps as unknown as JSONSchemaType<{}>),\n default: {\n color: 'rgba(54, 151, 241, 0.4)',\n title: 'Banner Block',\n subtitle: 'Some sort of description.',\n button: {\n text: 'Read more',\n },\n },\n },\n};\n\nexport default BannerBlockConfig;\n"]}
@@ -21,6 +21,7 @@ unpredictable css rules order in build */
21
21
  width: 100%;
22
22
  height: 100%;
23
23
  border-radius: 32px;
24
+ pointer-events: none;
24
25
  }
25
26
  .pc-card-layout-block__image img {
26
27
  object-fit: cover;
@@ -2,8 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import isEmpty from "lodash/isEmpty.js";
4
4
  import { AnimateBlock, BackgroundImage, Title } from "../../components/index.js";
5
+ import ItemWrap from "../../components/editor/ItemWrap/ItemWrap.js";
5
6
  import { useTheme } from "../../context/theme/index.js";
6
- import { Col, Row } from "../../grid/index.js";
7
+ import { Col, Grid, Row } from "../../grid/index.js";
7
8
  import { block, getThemedValue } from "../../utils/index.js";
8
9
  import './CardLayout.css';
9
10
  const DEFAULT_SIZES = {
@@ -15,9 +16,9 @@ const b = block('card-layout-block');
15
16
  const CardLayout = ({ title, description, animated, colSizes = DEFAULT_SIZES, children, className, titleClassName, background, }) => {
16
17
  const theme = useTheme();
17
18
  const { border, ...backgroundImageProps } = getThemedValue(background || {}, theme);
18
- return (_jsxs(AnimateBlock, { className: b(null, className), animate: animated, children: [(title || description) && (_jsx(Title, { title: title, subtitle: description, className: titleClassName })), _jsxs("div", { className: b('content', {
19
- 'with-background': !isEmpty(background),
20
- }), children: [_jsx(BackgroundImage, { className: b('image', { border }), ...backgroundImageProps }), _jsx(Row, { children: React.Children.map(children, (child, index) => (_jsx(Col, { sizes: colSizes, className: b('item'), children: child }, index))) })] })] }));
19
+ return (_jsx(AnimateBlock, { className: b(null, className), animate: animated, children: _jsxs(Grid, { children: [(title || description) && (_jsx(Title, { title: title, subtitle: description, className: titleClassName })), _jsxs("div", { className: b('content', {
20
+ 'with-background': !isEmpty(background),
21
+ }), children: [_jsx(BackgroundImage, { className: b('image', { border }), ...backgroundImageProps }), _jsx(Row, { children: React.Children.map(children, (child, index) => (_jsx(Col, { sizes: colSizes, className: b('item'), children: _jsx(ItemWrap, { index: index, children: child }) }, index))) })] })] }) }));
21
22
  };
22
23
  export default CardLayout;
23
24
  //# sourceMappingURL=CardLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardLayout.js","sourceRoot":"../../../../src","sources":["blocks/CardLayout/CardLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,OAAO,0BAAuB;AAErC,OAAO,EAAC,YAAY,EAAE,eAAe,EAAE,KAAK,EAAC,kCAAyB;AACtE,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAC7C,OAAO,EAAC,GAAG,EAAuB,GAAG,EAAC,4BAAmB;AAEzD,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,aAAa,GAAwB;IACvC,GAAG,EAAE,EAAE;IACP,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;CACR,CAAC;AAMF,MAAM,CAAC,GAAG,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAErC,MAAM,UAAU,GAAmC,CAAC,EAChD,KAAK,EACL,WAAW,EACX,QAAQ,EACR,QAAQ,GAAG,aAAa,EACxB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,UAAU,GACb,EAAE,EAAE;IACD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,EAAC,MAAM,EAAE,GAAG,oBAAoB,EAAC,GAAG,cAAc,CAAC,UAAU,IAAI,EAAE,EAAE,KAAK,CAAC,CAAC;IAClF,OAAO,CACH,MAAC,YAAY,IAAC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,aACzD,CAAC,KAAK,IAAI,WAAW,CAAC,IAAI,CACvB,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,GAAI,CAC5E,EACD,eACI,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE;oBACpB,iBAAiB,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;iBAC1C,CAAC,aAEF,KAAC,eAAe,IAAC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,EAAC,MAAM,EAAC,CAAC,KAAM,oBAAoB,GAAI,EAC9E,KAAC,GAAG,cACC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,KAAC,GAAG,IAAa,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YACjD,KAAK,IADA,KAAK,CAET,CACT,CAAC,GACA,IACJ,IACK,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import * as React from 'react';\nimport isEmpty from 'lodash/isEmpty';\n\nimport {AnimateBlock, BackgroundImage, Title} from '../../components';\nimport {useTheme} from '../../context/theme';\nimport {Col, GridColumnSizesType, Row} from '../../grid';\nimport {CardLayoutBlockProps as CardLayoutBlockParams, ClassNameProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './CardLayout.scss';\n\nconst DEFAULT_SIZES: GridColumnSizesType = {\n all: 12,\n sm: 6,\n md: 4,\n};\nexport type CardLayoutBlockProps = React.PropsWithChildren<\n Omit<CardLayoutBlockParams, 'children'>\n> &\n ClassNameProps;\n\nconst b = block('card-layout-block');\n\nconst CardLayout: React.FC<CardLayoutBlockProps> = ({\n title,\n description,\n animated,\n colSizes = DEFAULT_SIZES,\n children,\n className,\n titleClassName,\n background,\n}) => {\n const theme = useTheme();\n const {border, ...backgroundImageProps} = getThemedValue(background || {}, theme);\n return (\n <AnimateBlock className={b(null, className)} animate={animated}>\n {(title || description) && (\n <Title title={title} subtitle={description} className={titleClassName} />\n )}\n <div\n className={b('content', {\n 'with-background': !isEmpty(background),\n })}\n >\n <BackgroundImage className={b('image', {border})} {...backgroundImageProps} />\n <Row>\n {React.Children.map(children, (child, index) => (\n <Col key={index} sizes={colSizes} className={b('item')}>\n {child}\n </Col>\n ))}\n </Row>\n </div>\n </AnimateBlock>\n );\n};\n\nexport default CardLayout;\n"]}
1
+ {"version":3,"file":"CardLayout.js","sourceRoot":"../../../../src","sources":["blocks/CardLayout/CardLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,OAAO,0BAAuB;AAErC,OAAO,EAAC,YAAY,EAAE,eAAe,EAAE,KAAK,EAAC,kCAAyB;AACtE,OAAO,QAAQ,qDAAkD;AACjE,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAC7C,OAAO,EAAC,GAAG,EAAE,IAAI,EAAuB,GAAG,EAAC,4BAAmB;AAE/D,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,aAAa,GAAwB;IACvC,GAAG,EAAE,EAAE;IACP,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;CACR,CAAC;AAMF,MAAM,CAAC,GAAG,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAErC,MAAM,UAAU,GAAmC,CAAC,EAChD,KAAK,EACL,WAAW,EACX,QAAQ,EACR,QAAQ,GAAG,aAAa,EACxB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,UAAU,GACb,EAAE,EAAE;IACD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,EAAC,MAAM,EAAE,GAAG,oBAAoB,EAAC,GAAG,cAAc,CAAC,UAAU,IAAI,EAAE,EAAE,KAAK,CAAC,CAAC;IAClF,OAAO,CACH,KAAC,YAAY,IAAC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,YAC1D,MAAC,IAAI,eACA,CAAC,KAAK,IAAI,WAAW,CAAC,IAAI,CACvB,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,GAAI,CAC5E,EACD,eACI,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE;wBACpB,iBAAiB,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;qBAC1C,CAAC,aAEF,KAAC,eAAe,IAAC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,EAAC,MAAM,EAAC,CAAC,KAAM,oBAAoB,GAAI,EAE9E,KAAC,GAAG,cACC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,KAAC,GAAG,IAAa,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YAClD,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,KAAK,GAAY,IADpC,KAAK,CAET,CACT,CAAC,GACA,IACJ,IACH,GACI,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import * as React from 'react';\nimport isEmpty from 'lodash/isEmpty';\n\nimport {AnimateBlock, BackgroundImage, Title} from '../../components';\nimport ItemWrap from '../../components/editor/ItemWrap/ItemWrap';\nimport {useTheme} from '../../context/theme';\nimport {Col, Grid, GridColumnSizesType, Row} from '../../grid';\nimport {CardLayoutBlockProps as CardLayoutBlockParams, ClassNameProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './CardLayout.scss';\n\nconst DEFAULT_SIZES: GridColumnSizesType = {\n all: 12,\n sm: 6,\n md: 4,\n};\nexport type CardLayoutBlockProps = React.PropsWithChildren<\n Omit<CardLayoutBlockParams, 'children'>\n> &\n ClassNameProps;\n\nconst b = block('card-layout-block');\n\nconst CardLayout: React.FC<CardLayoutBlockProps> = ({\n title,\n description,\n animated,\n colSizes = DEFAULT_SIZES,\n children,\n className,\n titleClassName,\n background,\n}) => {\n const theme = useTheme();\n const {border, ...backgroundImageProps} = getThemedValue(background || {}, theme);\n return (\n <AnimateBlock className={b(null, className)} animate={animated}>\n <Grid>\n {(title || description) && (\n <Title title={title} subtitle={description} className={titleClassName} />\n )}\n <div\n className={b('content', {\n 'with-background': !isEmpty(background),\n })}\n >\n <BackgroundImage className={b('image', {border})} {...backgroundImageProps} />\n\n <Row>\n {React.Children.map(children, (child, index) => (\n <Col key={index} sizes={colSizes} className={b('item')}>\n <ItemWrap index={index}>{child}</ItemWrap>\n </Col>\n ))}\n </Row>\n </div>\n </Grid>\n </AnimateBlock>\n );\n};\n\nexport default CardLayout;\n"]}