@gravity-ui/page-constructor 6.3.2-alpha.0 → 6.3.2-alpha.10

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 (1068) hide show
  1. package/README.md +98 -10
  2. package/build/cjs/blocks/Banner/index.js +1 -1
  3. package/build/cjs/blocks/Banner/index.js.map +1 -1
  4. package/build/cjs/blocks/CardLayout/index.d.ts +1 -1
  5. package/build/cjs/blocks/CardLayout/index.js +1 -1
  6. package/build/cjs/blocks/CardLayout/index.js.map +1 -1
  7. package/build/cjs/blocks/Companies/index.js +1 -1
  8. package/build/cjs/blocks/Companies/index.js.map +1 -1
  9. package/build/cjs/blocks/ContentLayout/index.d.ts +1 -1
  10. package/build/cjs/blocks/ContentLayout/index.js +1 -1
  11. package/build/cjs/blocks/ContentLayout/index.js.map +1 -1
  12. package/build/cjs/blocks/ExtendedFeatures/index.d.ts +1 -1
  13. package/build/cjs/blocks/ExtendedFeatures/index.js +1 -1
  14. package/build/cjs/blocks/ExtendedFeatures/index.js.map +1 -1
  15. package/build/cjs/blocks/FilterBlock/index.d.ts +1 -1
  16. package/build/cjs/blocks/FilterBlock/index.js +1 -1
  17. package/build/cjs/blocks/FilterBlock/index.js.map +1 -1
  18. package/build/cjs/blocks/FoldableList/FoldableList.css +13 -0
  19. package/build/cjs/blocks/FoldableList/FoldableList.d.ts +3 -0
  20. package/build/cjs/blocks/FoldableList/FoldableList.js +31 -0
  21. package/build/cjs/blocks/FoldableList/FoldableList.js.map +1 -0
  22. package/build/cjs/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.css +78 -0
  23. package/build/cjs/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.d.ts +2 -0
  24. package/build/cjs/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.js +20 -0
  25. package/build/cjs/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.js.map +1 -0
  26. package/build/cjs/blocks/FoldableList/schema.d.ts +140 -0
  27. package/build/cjs/blocks/FoldableList/schema.js +39 -0
  28. package/build/cjs/blocks/FoldableList/schema.js.map +1 -0
  29. package/build/cjs/blocks/Form/index.d.ts +1 -1
  30. package/build/cjs/blocks/Form/index.js +1 -1
  31. package/build/cjs/blocks/Form/index.js.map +1 -1
  32. package/build/cjs/blocks/Header/Header.css +12 -1
  33. package/build/cjs/blocks/Header/Header.js +4 -1
  34. package/build/cjs/blocks/Header/Header.js.map +1 -1
  35. package/build/cjs/blocks/Header/dynamic-form.d.ts +1 -1
  36. package/build/cjs/blocks/Header/dynamic-form.js.map +1 -1
  37. package/build/cjs/blocks/Header/index.d.ts +1 -1
  38. package/build/cjs/blocks/Header/index.js +1 -1
  39. package/build/cjs/blocks/Header/index.js.map +1 -1
  40. package/build/cjs/blocks/Header/schema.d.ts +10 -0
  41. package/build/cjs/blocks/Header/schema.js +5 -0
  42. package/build/cjs/blocks/Header/schema.js.map +1 -1
  43. package/build/cjs/blocks/HeaderSlider/index.d.ts +1 -1
  44. package/build/cjs/blocks/HeaderSlider/index.js +1 -1
  45. package/build/cjs/blocks/HeaderSlider/index.js.map +1 -1
  46. package/build/cjs/blocks/HeaderSlider/schema.d.ts +5 -0
  47. package/build/cjs/blocks/Icons/index.d.ts +1 -1
  48. package/build/cjs/blocks/Icons/index.js +1 -1
  49. package/build/cjs/blocks/Icons/index.js.map +1 -1
  50. package/build/cjs/blocks/Info/index.d.ts +1 -1
  51. package/build/cjs/blocks/Info/index.js +1 -1
  52. package/build/cjs/blocks/Info/index.js.map +1 -1
  53. package/build/cjs/blocks/Map/index.d.ts +1 -1
  54. package/build/cjs/blocks/Map/index.js +1 -1
  55. package/build/cjs/blocks/Map/index.js.map +1 -1
  56. package/build/cjs/blocks/Media/index.d.ts +1 -1
  57. package/build/cjs/blocks/Media/index.js +1 -1
  58. package/build/cjs/blocks/Media/index.js.map +1 -1
  59. package/build/cjs/blocks/PromoFeaturesBlock/index.d.ts +1 -1
  60. package/build/cjs/blocks/PromoFeaturesBlock/index.js +1 -1
  61. package/build/cjs/blocks/PromoFeaturesBlock/index.js.map +1 -1
  62. package/build/cjs/blocks/Questions/index.d.ts +1 -1
  63. package/build/cjs/blocks/Questions/index.js +1 -1
  64. package/build/cjs/blocks/Questions/index.js.map +1 -1
  65. package/build/cjs/blocks/Share/index.d.ts +1 -1
  66. package/build/cjs/blocks/Share/index.js +1 -1
  67. package/build/cjs/blocks/Share/index.js.map +1 -1
  68. package/build/cjs/blocks/Slider/Slider.js +4 -1
  69. package/build/cjs/blocks/Slider/Slider.js.map +1 -1
  70. package/build/cjs/blocks/Slider/dynamic-form.d.ts +1 -1
  71. package/build/cjs/blocks/Slider/dynamic-form.js.map +1 -1
  72. package/build/cjs/blocks/Slider/index.d.ts +1 -1
  73. package/build/cjs/blocks/Slider/index.js +1 -1
  74. package/build/cjs/blocks/Slider/index.js.map +1 -1
  75. package/build/cjs/blocks/Table/index.d.ts +1 -1
  76. package/build/cjs/blocks/Table/index.js +1 -1
  77. package/build/cjs/blocks/Table/index.js.map +1 -1
  78. package/build/cjs/blocks/Tabs/index.d.ts +1 -1
  79. package/build/cjs/blocks/Tabs/index.js +1 -1
  80. package/build/cjs/blocks/Tabs/index.js.map +1 -1
  81. package/build/cjs/blocks/TestEditorBlock/form.d.ts +1 -1
  82. package/build/cjs/blocks/TestEditorBlock/form.js.map +1 -1
  83. package/build/cjs/blocks/TestEditorBlock/index.d.ts +1 -1
  84. package/build/cjs/blocks/index.d.ts +1 -0
  85. package/build/cjs/blocks/index.js +3 -1
  86. package/build/cjs/blocks/index.js.map +1 -1
  87. package/build/cjs/common/postMessage.d.ts +4 -0
  88. package/build/cjs/common/postMessage.js +31 -0
  89. package/build/cjs/common/postMessage.js.map +1 -0
  90. package/build/cjs/common/store.d.ts +41 -0
  91. package/build/cjs/common/store.js +21 -0
  92. package/build/cjs/common/store.js.map +1 -0
  93. package/build/cjs/common/types/actions.d.ts +36 -0
  94. package/build/cjs/common/types/actions.js +3 -0
  95. package/build/cjs/common/types/actions.js.map +1 -0
  96. package/build/cjs/common/types/common.d.ts +5 -0
  97. package/build/cjs/common/types/common.js +3 -0
  98. package/build/cjs/common/types/common.js.map +1 -0
  99. package/build/cjs/common/types/forms.d.ts +108 -0
  100. package/build/cjs/common/types/forms.js +3 -0
  101. package/build/cjs/common/types/forms.js.map +1 -0
  102. package/build/cjs/common/types/index.d.ts +4 -0
  103. package/build/cjs/common/types/index.js +8 -0
  104. package/build/cjs/common/types/index.js.map +1 -0
  105. package/build/cjs/common/types/messages.d.ts +9 -0
  106. package/build/cjs/common/types/messages.js +3 -0
  107. package/build/cjs/common/types/messages.js.map +1 -0
  108. package/build/cjs/common/utils.d.ts +25 -0
  109. package/build/cjs/common/utils.js +22 -0
  110. package/build/cjs/common/utils.js.map +1 -0
  111. package/build/cjs/components/FullscreenImage/FullscreenImage.css +1 -1
  112. package/build/cjs/components/FullscreenMedia/FullscreenMedia.css +1 -3
  113. package/build/cjs/components/Image/dynamic-form.d.ts +1 -1
  114. package/build/cjs/components/Image/dynamic-form.js.map +1 -1
  115. package/build/cjs/components/ReactPlayer/ReactPlayer.js +4 -1
  116. package/build/cjs/components/ReactPlayer/ReactPlayer.js.map +1 -1
  117. package/build/cjs/constructor-items.d.ts +2 -1
  118. package/build/cjs/constructor-items.js +4 -4
  119. package/build/cjs/constructor-items.js.map +1 -1
  120. package/build/cjs/containers/PageConstructor/PageConstructor.css +1 -1
  121. package/build/cjs/containers/PageConstructor/PageConstructor.js +18 -1
  122. package/build/cjs/containers/PageConstructor/PageConstructor.js.map +1 -1
  123. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.d.ts +1 -1
  124. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.js +1 -1
  125. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.js.map +1 -1
  126. package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.js +1 -1
  127. package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.js.map +1 -1
  128. package/build/cjs/editor-v2/components/BlockCard/BlockCard.css +27 -0
  129. package/build/cjs/editor-v2/components/BlockCard/BlockCard.d.ts +9 -0
  130. package/build/cjs/editor-v2/components/BlockCard/BlockCard.js +17 -0
  131. package/build/cjs/editor-v2/components/BlockCard/BlockCard.js.map +1 -0
  132. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.css +5 -0
  133. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.d.ts +10 -0
  134. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.js +132 -0
  135. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.js.map +1 -0
  136. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +87 -0
  137. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +12 -0
  138. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +31 -0
  139. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.js.map +1 -0
  140. package/build/cjs/editor-v2/components/DynamicForm/Fields/AnyOf/AnyOf.css +6 -0
  141. package/build/cjs/editor-v2/components/DynamicForm/Fields/AnyOf/AnyOf.d.ts +9 -0
  142. package/build/cjs/editor-v2/components/DynamicForm/Fields/AnyOf/AnyOf.js +35 -0
  143. package/build/cjs/editor-v2/components/DynamicForm/Fields/AnyOf/AnyOf.js.map +1 -0
  144. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.css +38 -0
  145. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +11 -0
  146. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.js +68 -0
  147. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.js.map +1 -0
  148. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +10 -0
  149. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +22 -0
  150. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js.map +1 -0
  151. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.css +3 -0
  152. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.d.ts +8 -0
  153. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js +13 -0
  154. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js.map +1 -0
  155. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +8 -0
  156. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.js +16 -0
  157. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.js.map +1 -0
  158. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +10 -0
  159. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.js +11 -0
  160. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.js.map +1 -0
  161. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +6 -0
  162. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +9 -0
  163. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +35 -0
  164. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js.map +1 -0
  165. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.css +3 -0
  166. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.d.ts +11 -0
  167. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.js +16 -0
  168. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.js.map +1 -0
  169. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +8 -0
  170. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.js +13 -0
  171. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.js.map +1 -0
  172. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +8 -0
  173. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +13 -0
  174. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js.map +1 -0
  175. package/build/cjs/editor-v2/components/DynamicForm/utils.d.ts +3 -0
  176. package/build/cjs/editor-v2/components/DynamicForm/utils.js +23 -0
  177. package/build/cjs/editor-v2/components/DynamicForm/utils.js.map +1 -0
  178. package/build/cjs/editor-v2/components/MessageCard/MessageCard.css +51 -0
  179. package/build/cjs/editor-v2/components/MessageCard/MessageCard.d.ts +10 -0
  180. package/build/cjs/editor-v2/components/MessageCard/MessageCard.js +20 -0
  181. package/build/cjs/editor-v2/components/MessageCard/MessageCard.js.map +1 -0
  182. package/build/cjs/editor-v2/components/MessageCard/index.d.ts +2 -0
  183. package/build/cjs/editor-v2/components/MessageCard/index.js +6 -0
  184. package/build/cjs/editor-v2/components/MessageCard/index.js.map +1 -0
  185. package/build/cjs/editor-v2/components/Panels/Panels.css +24 -0
  186. package/build/cjs/editor-v2/components/Panels/Panels.d.ts +8 -0
  187. package/build/cjs/editor-v2/components/Panels/Panels.js +28 -0
  188. package/build/cjs/editor-v2/components/Panels/Panels.js.map +1 -0
  189. package/build/cjs/editor-v2/components/Sidebar/Sidebar.css +48 -0
  190. package/build/cjs/editor-v2/components/Sidebar/Sidebar.d.ts +10 -0
  191. package/build/cjs/editor-v2/components/Sidebar/Sidebar.js +13 -0
  192. package/build/cjs/editor-v2/components/Sidebar/Sidebar.js.map +1 -0
  193. package/build/cjs/editor-v2/components/Tabs/Tabs.css +95 -0
  194. package/build/cjs/editor-v2/components/Tabs/Tabs.d.ts +14 -0
  195. package/build/cjs/editor-v2/components/Tabs/Tabs.js +36 -0
  196. package/build/cjs/editor-v2/components/Tabs/Tabs.js.map +1 -0
  197. package/build/cjs/editor-v2/constants/messages.d.ts +10 -0
  198. package/build/cjs/editor-v2/constants/messages.js +14 -0
  199. package/build/cjs/editor-v2/constants/messages.js.map +1 -0
  200. package/build/cjs/editor-v2/constants.d.ts +1 -0
  201. package/build/cjs/editor-v2/constants.js +5 -0
  202. package/build/cjs/editor-v2/constants.js.map +1 -0
  203. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.css +22 -0
  204. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.d.ts +4 -0
  205. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js +58 -0
  206. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js.map +1 -0
  207. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.css +21 -0
  208. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.d.ts +5 -0
  209. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.js +30 -0
  210. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.js.map +1 -0
  211. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.css +62 -0
  212. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.d.ts +5 -0
  213. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.js +83 -0
  214. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.js.map +1 -0
  215. package/build/cjs/editor-v2/containers/Editor/Editor.css +38 -0
  216. package/build/cjs/editor-v2/containers/Editor/Editor.d.ts +22 -0
  217. package/build/cjs/editor-v2/containers/Editor/Editor.js +41 -0
  218. package/build/cjs/editor-v2/containers/Editor/Editor.js.map +1 -0
  219. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.css +6 -0
  220. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.d.ts +5 -0
  221. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.js +17 -0
  222. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.js.map +1 -0
  223. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.css +125 -0
  224. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.d.ts +7 -0
  225. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.js +41 -0
  226. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.js.map +1 -0
  227. package/build/cjs/editor-v2/containers/Overlay/Overlay.css +67 -0
  228. package/build/cjs/editor-v2/containers/Overlay/Overlay.d.ts +6 -0
  229. package/build/cjs/editor-v2/containers/Overlay/Overlay.js +100 -0
  230. package/build/cjs/editor-v2/containers/Overlay/Overlay.js.map +1 -0
  231. package/build/cjs/editor-v2/containers/Source/Source.css +15 -0
  232. package/build/cjs/editor-v2/containers/Source/Source.d.ts +2 -0
  233. package/build/cjs/editor-v2/containers/Source/Source.js +28 -0
  234. package/build/cjs/editor-v2/containers/Source/Source.js.map +1 -0
  235. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.css +86 -0
  236. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.d.ts +6 -0
  237. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.js +73 -0
  238. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.js.map +1 -0
  239. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.css +9 -0
  240. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.d.ts +8 -0
  241. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js +23 -0
  242. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js.map +1 -0
  243. package/build/cjs/editor-v2/containers/Tree/DragContext.css +25 -0
  244. package/build/cjs/editor-v2/containers/Tree/DragContext.d.ts +14 -0
  245. package/build/cjs/editor-v2/containers/Tree/DragContext.js +49 -0
  246. package/build/cjs/editor-v2/containers/Tree/DragContext.js.map +1 -0
  247. package/build/cjs/editor-v2/containers/Tree/Tree.css +10 -0
  248. package/build/cjs/editor-v2/containers/Tree/Tree.d.ts +5 -0
  249. package/build/cjs/editor-v2/containers/Tree/Tree.js +35 -0
  250. package/build/cjs/editor-v2/containers/Tree/Tree.js.map +1 -0
  251. package/build/cjs/editor-v2/containers/Tree/TreeContent.css +12 -0
  252. package/build/cjs/editor-v2/containers/Tree/TreeContent.d.ts +16 -0
  253. package/build/cjs/editor-v2/containers/Tree/TreeContent.js +61 -0
  254. package/build/cjs/editor-v2/containers/Tree/TreeContent.js.map +1 -0
  255. package/build/cjs/editor-v2/containers/Tree/TreeItem.css +50 -0
  256. package/build/cjs/editor-v2/containers/Tree/TreeItem.d.ts +13 -0
  257. package/build/cjs/editor-v2/containers/Tree/TreeItem.js +144 -0
  258. package/build/cjs/editor-v2/containers/Tree/TreeItem.js.map +1 -0
  259. package/build/cjs/editor-v2/containers/Tree/index.d.ts +4 -0
  260. package/build/cjs/editor-v2/containers/Tree/index.js +10 -0
  261. package/build/cjs/editor-v2/containers/Tree/index.js.map +1 -0
  262. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.css +13 -0
  263. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.d.ts +3 -0
  264. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.js +54 -0
  265. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.js.map +1 -0
  266. package/build/cjs/editor-v2/containers/index.d.ts +7 -0
  267. package/build/cjs/editor-v2/containers/index.js +19 -0
  268. package/build/cjs/editor-v2/containers/index.js.map +1 -0
  269. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.d.ts +7 -0
  270. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.js +10 -0
  271. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.js.map +1 -0
  272. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.d.ts +5 -0
  273. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.js +35 -0
  274. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.js.map +1 -0
  275. package/build/cjs/editor-v2/context/editorStore/index.d.ts +2 -0
  276. package/build/cjs/editor-v2/context/editorStore/index.js +6 -0
  277. package/build/cjs/editor-v2/context/editorStore/index.js.map +1 -0
  278. package/build/cjs/editor-v2/context/iframeContext/IframeContext.d.ts +12 -0
  279. package/build/cjs/editor-v2/context/iframeContext/IframeContext.js +14 -0
  280. package/build/cjs/editor-v2/context/iframeContext/IframeContext.js.map +1 -0
  281. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.d.ts +7 -0
  282. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.js +21 -0
  283. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.js.map +1 -0
  284. package/build/cjs/editor-v2/context/iframeContext/index.d.ts +2 -0
  285. package/build/cjs/editor-v2/context/iframeContext/index.js +6 -0
  286. package/build/cjs/editor-v2/context/iframeContext/index.js.map +1 -0
  287. package/build/cjs/editor-v2/hooks/index.d.ts +2 -0
  288. package/build/cjs/editor-v2/hooks/index.js +8 -0
  289. package/build/cjs/editor-v2/hooks/index.js.map +1 -0
  290. package/build/cjs/editor-v2/hooks/useEditorTabs.d.ts +22 -0
  291. package/build/cjs/editor-v2/hooks/useEditorTabs.js +73 -0
  292. package/build/cjs/editor-v2/hooks/useEditorTabs.js.map +1 -0
  293. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.d.ts +3 -0
  294. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js +41 -0
  295. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js.map +1 -0
  296. package/build/cjs/editor-v2/hooks/useMainEditorStore.d.ts +1 -0
  297. package/build/cjs/editor-v2/hooks/useMainEditorStore.js +13 -0
  298. package/build/cjs/editor-v2/hooks/useMainEditorStore.js.map +1 -0
  299. package/build/cjs/editor-v2/hooks/usePostMessageEvents.d.ts +6 -0
  300. package/build/cjs/editor-v2/hooks/usePostMessageEvents.js +19 -0
  301. package/build/cjs/editor-v2/hooks/usePostMessageEvents.js.map +1 -0
  302. package/build/cjs/editor-v2/index.d.ts +5 -0
  303. package/build/cjs/editor-v2/index.js +9 -0
  304. package/build/cjs/editor-v2/index.js.map +1 -0
  305. package/build/cjs/editor-v2/store.d.ts +49 -0
  306. package/build/cjs/editor-v2/store.js +184 -0
  307. package/build/cjs/editor-v2/store.js.map +1 -0
  308. package/build/cjs/editor-v2/styles/mixins.css +0 -0
  309. package/build/cjs/editor-v2/styles/root.css +9 -0
  310. package/build/cjs/editor-v2/styles/variables.css +0 -0
  311. package/build/cjs/editor-v2/utils/cn.d.ts +2 -0
  312. package/build/cjs/editor-v2/utils/cn.js +7 -0
  313. package/build/cjs/editor-v2/utils/cn.js.map +1 -0
  314. package/build/cjs/editor-v2/utils/code.d.ts +6 -0
  315. package/build/cjs/editor-v2/utils/code.js +13 -0
  316. package/build/cjs/editor-v2/utils/code.js.map +1 -0
  317. package/build/cjs/editor-v2/utils/index.d.ts +20 -0
  318. package/build/cjs/editor-v2/utils/index.js +161 -0
  319. package/build/cjs/editor-v2/utils/index.js.map +1 -0
  320. package/build/cjs/form-generator/components/AddPropertyButton/AddPropertyButton.css +3 -0
  321. package/build/cjs/form-generator/components/AddPropertyButton/AddPropertyButton.d.ts +13 -0
  322. package/build/cjs/form-generator/components/AddPropertyButton/AddPropertyButton.js +16 -0
  323. package/build/cjs/form-generator/components/AddPropertyButton/AddPropertyButton.js.map +1 -0
  324. package/build/cjs/form-generator/components/ArrayFieldRenderer/ArrayFieldRenderer.css +23 -0
  325. package/build/cjs/form-generator/components/ArrayFieldRenderer/ArrayFieldRenderer.d.ts +11 -0
  326. package/build/cjs/form-generator/components/ArrayFieldRenderer/ArrayFieldRenderer.js +27 -0
  327. package/build/cjs/form-generator/components/ArrayFieldRenderer/ArrayFieldRenderer.js.map +1 -0
  328. package/build/cjs/form-generator/components/ConfigRow/ConfigRow.css +12 -0
  329. package/build/cjs/form-generator/components/ConfigRow/ConfigRow.d.ts +8 -0
  330. package/build/cjs/form-generator/components/ConfigRow/ConfigRow.js +17 -0
  331. package/build/cjs/form-generator/components/ConfigRow/ConfigRow.js.map +1 -0
  332. package/build/cjs/form-generator/components/FieldCard/FieldCard.css +15 -0
  333. package/build/cjs/form-generator/components/FieldCard/FieldCard.d.ts +8 -0
  334. package/build/cjs/form-generator/components/FieldCard/FieldCard.js +57 -0
  335. package/build/cjs/form-generator/components/FieldCard/FieldCard.js.map +1 -0
  336. package/build/cjs/form-generator/components/FieldHeader/FieldHeader.css +6 -0
  337. package/build/cjs/form-generator/components/FieldHeader/FieldHeader.d.ts +9 -0
  338. package/build/cjs/form-generator/components/FieldHeader/FieldHeader.js +11 -0
  339. package/build/cjs/form-generator/components/FieldHeader/FieldHeader.js.map +1 -0
  340. package/build/cjs/form-generator/components/FormBuilder/FormBuilder.css +93 -0
  341. package/build/cjs/form-generator/components/FormBuilder/FormBuilder.d.ts +8 -0
  342. package/build/cjs/form-generator/components/FormBuilder/FormBuilder.js +64 -0
  343. package/build/cjs/form-generator/components/FormBuilder/FormBuilder.js.map +1 -0
  344. package/build/cjs/form-generator/components/ObjectFieldRenderer/ObjectFieldRenderer.css +6 -0
  345. package/build/cjs/form-generator/components/ObjectFieldRenderer/ObjectFieldRenderer.d.ts +11 -0
  346. package/build/cjs/form-generator/components/ObjectFieldRenderer/ObjectFieldRenderer.js +16 -0
  347. package/build/cjs/form-generator/components/ObjectFieldRenderer/ObjectFieldRenderer.js.map +1 -0
  348. package/build/cjs/form-generator/components/OptionHeader/OptionHeader.css +6 -0
  349. package/build/cjs/form-generator/components/OptionHeader/OptionHeader.d.ts +6 -0
  350. package/build/cjs/form-generator/components/OptionHeader/OptionHeader.js +11 -0
  351. package/build/cjs/form-generator/components/OptionHeader/OptionHeader.js.map +1 -0
  352. package/build/cjs/form-generator/components/OptionsRenderer/OptionsRenderer.css +31 -0
  353. package/build/cjs/form-generator/components/OptionsRenderer/OptionsRenderer.d.ts +11 -0
  354. package/build/cjs/form-generator/components/OptionsRenderer/OptionsRenderer.js +24 -0
  355. package/build/cjs/form-generator/components/OptionsRenderer/OptionsRenderer.js.map +1 -0
  356. package/build/cjs/form-generator/components/SectionHeader/SectionHeader.css +3 -0
  357. package/build/cjs/form-generator/components/SectionHeader/SectionHeader.d.ts +7 -0
  358. package/build/cjs/form-generator/components/SectionHeader/SectionHeader.js +11 -0
  359. package/build/cjs/form-generator/components/SectionHeader/SectionHeader.js.map +1 -0
  360. package/build/cjs/form-generator/components/SelectFieldRenderer/SelectFieldRenderer.css +36 -0
  361. package/build/cjs/form-generator/components/SelectFieldRenderer/SelectFieldRenderer.d.ts +7 -0
  362. package/build/cjs/form-generator/components/SelectFieldRenderer/SelectFieldRenderer.js +65 -0
  363. package/build/cjs/form-generator/components/SelectFieldRenderer/SelectFieldRenderer.js.map +1 -0
  364. package/build/cjs/form-generator/hooks/FormContext.d.ts +7 -0
  365. package/build/cjs/form-generator/hooks/FormContext.js +22 -0
  366. package/build/cjs/form-generator/hooks/FormContext.js.map +1 -0
  367. package/build/cjs/form-generator/hooks/types.d.ts +48 -0
  368. package/build/cjs/form-generator/hooks/types.js +3 -0
  369. package/build/cjs/form-generator/hooks/types.js.map +1 -0
  370. package/build/cjs/form-generator/hooks/useFormFields.d.ts +18 -0
  371. package/build/cjs/form-generator/hooks/useFormFields.js +570 -0
  372. package/build/cjs/form-generator/hooks/useFormFields.js.map +1 -0
  373. package/build/cjs/form-generator/index.d.ts +7 -0
  374. package/build/cjs/form-generator/index.js +11 -0
  375. package/build/cjs/form-generator/index.js.map +1 -0
  376. package/build/cjs/hooks/usePCEditorBlockMouseEvents.d.ts +1 -0
  377. package/build/cjs/hooks/usePCEditorBlockMouseEvents.js +2 -0
  378. package/build/cjs/hooks/usePCEditorBlockMouseEvents.js.map +1 -1
  379. package/build/cjs/hooks/usePCEditorInitializeEvents.js.map +1 -1
  380. package/build/cjs/hooks/usePCEditorItemWrap.d.ts +1 -0
  381. package/build/cjs/hooks/usePCEditorStore.d.ts +1 -1
  382. package/build/cjs/hooks/usePostMessageAPI.d.ts +1 -1
  383. package/build/cjs/hooks/usePostMessageAPI.js.map +1 -1
  384. package/build/cjs/internal-typings/global.d.ts +1 -0
  385. package/build/cjs/models/constructor-items/blocks.d.ts +19 -1
  386. package/build/cjs/models/constructor-items/blocks.js +1 -0
  387. package/build/cjs/models/constructor-items/blocks.js.map +1 -1
  388. package/build/cjs/models/constructor-items/sub-blocks.d.ts +2 -1
  389. package/build/cjs/models/constructor-items/sub-blocks.js.map +1 -1
  390. package/build/cjs/navigation/schema.d.ts +2 -0
  391. package/build/cjs/navigation/schema.js +12 -3
  392. package/build/cjs/navigation/schema.js.map +1 -1
  393. package/build/cjs/schema/constants.js +1 -0
  394. package/build/cjs/schema/constants.js.map +1 -1
  395. package/build/cjs/schema/index.d.ts +2 -0
  396. package/build/cjs/schema/validators/blocks.d.ts +1 -0
  397. package/build/cjs/schema/validators/blocks.js +1 -0
  398. package/build/cjs/schema/validators/blocks.js.map +1 -1
  399. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.d.ts +1 -1
  400. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.js.map +1 -1
  401. package/build/cjs/sub-blocks/BackgroundCard/index.js +1 -1
  402. package/build/cjs/sub-blocks/BackgroundCard/index.js.map +1 -1
  403. package/build/cjs/sub-blocks/BannerCard/index.js +1 -1
  404. package/build/cjs/sub-blocks/BannerCard/index.js.map +1 -1
  405. package/build/cjs/sub-blocks/BasicCard/index.js +1 -1
  406. package/build/cjs/sub-blocks/BasicCard/index.js.map +1 -1
  407. package/build/cjs/sub-blocks/Content/index.js +1 -1
  408. package/build/cjs/sub-blocks/Content/index.js.map +1 -1
  409. package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.d.ts +1 -1
  410. package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.js +5 -1
  411. package/build/cjs/sub-blocks/HubspotForm/HubspotFormContainer.js.map +1 -1
  412. package/build/cjs/sub-blocks/HubspotForm/index.js +2 -2
  413. package/build/cjs/sub-blocks/HubspotForm/index.js.map +1 -1
  414. package/build/cjs/sub-blocks/HubspotForm/setHubspotDefaultValues.d.ts +2 -0
  415. package/build/cjs/sub-blocks/HubspotForm/setHubspotDefaultValues.js +51 -0
  416. package/build/cjs/sub-blocks/HubspotForm/setHubspotDefaultValues.js.map +1 -0
  417. package/build/cjs/sub-blocks/ImageCard/index.js +1 -1
  418. package/build/cjs/sub-blocks/ImageCard/index.js.map +1 -1
  419. package/build/cjs/sub-blocks/LayoutItem/index.js +1 -1
  420. package/build/cjs/sub-blocks/LayoutItem/index.js.map +1 -1
  421. package/build/cjs/sub-blocks/MediaCard/index.js +1 -1
  422. package/build/cjs/sub-blocks/MediaCard/index.js.map +1 -1
  423. package/build/cjs/sub-blocks/PriceCard/index.js +1 -1
  424. package/build/cjs/sub-blocks/PriceCard/index.js.map +1 -1
  425. package/build/cjs/sub-blocks/PriceDetailed/index.js +1 -1
  426. package/build/cjs/sub-blocks/PriceDetailed/index.js.map +1 -1
  427. package/build/cjs/sub-blocks/Quote/index.js +1 -1
  428. package/build/cjs/sub-blocks/Quote/index.js.map +1 -1
  429. package/build/cjs/text-transform/config.js +25 -1
  430. package/build/cjs/text-transform/config.js.map +1 -1
  431. package/build/cjs/utils/form-generator.d.ts +1 -1
  432. package/build/cjs/utils/form-generator.js +27 -0
  433. package/build/cjs/utils/form-generator.js.map +1 -1
  434. package/build/cjs/utils/hubspot.d.ts +1 -0
  435. package/build/cjs/utils/hubspot.js.map +1 -1
  436. package/build/esm/blocks/Banner/index.js +1 -1
  437. package/build/esm/blocks/Banner/index.js.map +1 -1
  438. package/build/esm/blocks/CardLayout/index.d.ts +1 -1
  439. package/build/esm/blocks/CardLayout/index.js +1 -1
  440. package/build/esm/blocks/CardLayout/index.js.map +1 -1
  441. package/build/esm/blocks/Companies/index.js +1 -1
  442. package/build/esm/blocks/Companies/index.js.map +1 -1
  443. package/build/esm/blocks/ContentLayout/index.d.ts +1 -1
  444. package/build/esm/blocks/ContentLayout/index.js +1 -1
  445. package/build/esm/blocks/ContentLayout/index.js.map +1 -1
  446. package/build/esm/blocks/ExtendedFeatures/index.d.ts +1 -1
  447. package/build/esm/blocks/ExtendedFeatures/index.js +1 -1
  448. package/build/esm/blocks/ExtendedFeatures/index.js.map +1 -1
  449. package/build/esm/blocks/FilterBlock/index.d.ts +1 -1
  450. package/build/esm/blocks/FilterBlock/index.js +1 -1
  451. package/build/esm/blocks/FilterBlock/index.js.map +1 -1
  452. package/build/esm/blocks/FoldableList/FoldableList.css +13 -0
  453. package/build/esm/blocks/FoldableList/FoldableList.d.ts +4 -0
  454. package/build/esm/blocks/FoldableList/FoldableList.js +29 -0
  455. package/build/esm/blocks/FoldableList/FoldableList.js.map +1 -0
  456. package/build/esm/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.css +78 -0
  457. package/build/esm/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.d.ts +3 -0
  458. package/build/esm/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.js +16 -0
  459. package/build/esm/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.js.map +1 -0
  460. package/build/esm/blocks/FoldableList/schema.d.ts +140 -0
  461. package/build/esm/blocks/FoldableList/schema.js +35 -0
  462. package/build/esm/blocks/FoldableList/schema.js.map +1 -0
  463. package/build/esm/blocks/Form/index.d.ts +1 -1
  464. package/build/esm/blocks/Form/index.js +1 -1
  465. package/build/esm/blocks/Form/index.js.map +1 -1
  466. package/build/esm/blocks/Header/Header.css +12 -1
  467. package/build/esm/blocks/Header/Header.js +4 -1
  468. package/build/esm/blocks/Header/Header.js.map +1 -1
  469. package/build/esm/blocks/Header/dynamic-form.d.ts +1 -1
  470. package/build/esm/blocks/Header/dynamic-form.js.map +1 -1
  471. package/build/esm/blocks/Header/index.d.ts +1 -1
  472. package/build/esm/blocks/Header/index.js +1 -1
  473. package/build/esm/blocks/Header/index.js.map +1 -1
  474. package/build/esm/blocks/Header/schema.d.ts +10 -0
  475. package/build/esm/blocks/Header/schema.js +5 -0
  476. package/build/esm/blocks/Header/schema.js.map +1 -1
  477. package/build/esm/blocks/HeaderSlider/index.d.ts +1 -1
  478. package/build/esm/blocks/HeaderSlider/index.js +1 -1
  479. package/build/esm/blocks/HeaderSlider/index.js.map +1 -1
  480. package/build/esm/blocks/HeaderSlider/schema.d.ts +5 -0
  481. package/build/esm/blocks/Icons/index.d.ts +1 -1
  482. package/build/esm/blocks/Icons/index.js +1 -1
  483. package/build/esm/blocks/Icons/index.js.map +1 -1
  484. package/build/esm/blocks/Info/index.d.ts +1 -1
  485. package/build/esm/blocks/Info/index.js +1 -1
  486. package/build/esm/blocks/Info/index.js.map +1 -1
  487. package/build/esm/blocks/Map/index.d.ts +1 -1
  488. package/build/esm/blocks/Map/index.js +1 -1
  489. package/build/esm/blocks/Map/index.js.map +1 -1
  490. package/build/esm/blocks/Media/index.d.ts +1 -1
  491. package/build/esm/blocks/Media/index.js +1 -1
  492. package/build/esm/blocks/Media/index.js.map +1 -1
  493. package/build/esm/blocks/PromoFeaturesBlock/index.d.ts +1 -1
  494. package/build/esm/blocks/PromoFeaturesBlock/index.js +1 -1
  495. package/build/esm/blocks/PromoFeaturesBlock/index.js.map +1 -1
  496. package/build/esm/blocks/Questions/index.d.ts +1 -1
  497. package/build/esm/blocks/Questions/index.js +1 -1
  498. package/build/esm/blocks/Questions/index.js.map +1 -1
  499. package/build/esm/blocks/Share/index.d.ts +1 -1
  500. package/build/esm/blocks/Share/index.js +1 -1
  501. package/build/esm/blocks/Share/index.js.map +1 -1
  502. package/build/esm/blocks/Slider/Slider.js +4 -1
  503. package/build/esm/blocks/Slider/Slider.js.map +1 -1
  504. package/build/esm/blocks/Slider/dynamic-form.d.ts +1 -1
  505. package/build/esm/blocks/Slider/dynamic-form.js.map +1 -1
  506. package/build/esm/blocks/Slider/index.d.ts +1 -1
  507. package/build/esm/blocks/Slider/index.js +1 -1
  508. package/build/esm/blocks/Slider/index.js.map +1 -1
  509. package/build/esm/blocks/Table/index.d.ts +1 -1
  510. package/build/esm/blocks/Table/index.js +1 -1
  511. package/build/esm/blocks/Table/index.js.map +1 -1
  512. package/build/esm/blocks/Tabs/index.d.ts +1 -1
  513. package/build/esm/blocks/Tabs/index.js +1 -1
  514. package/build/esm/blocks/Tabs/index.js.map +1 -1
  515. package/build/esm/blocks/TestEditorBlock/form.d.ts +1 -1
  516. package/build/esm/blocks/TestEditorBlock/form.js.map +1 -1
  517. package/build/esm/blocks/TestEditorBlock/index.d.ts +1 -1
  518. package/build/esm/blocks/index.d.ts +1 -0
  519. package/build/esm/blocks/index.js +1 -0
  520. package/build/esm/blocks/index.js.map +1 -1
  521. package/build/esm/common/postMessage.d.ts +4 -0
  522. package/build/esm/common/postMessage.js +25 -0
  523. package/build/esm/common/postMessage.js.map +1 -0
  524. package/build/esm/common/store.d.ts +41 -0
  525. package/build/esm/common/store.js +18 -0
  526. package/build/esm/common/store.js.map +1 -0
  527. package/build/esm/common/types/actions.d.ts +36 -0
  528. package/build/esm/common/types/actions.js +2 -0
  529. package/build/esm/common/types/actions.js.map +1 -0
  530. package/build/esm/common/types/common.d.ts +5 -0
  531. package/build/esm/common/types/common.js +2 -0
  532. package/build/esm/common/types/common.js.map +1 -0
  533. package/build/esm/common/types/forms.d.ts +108 -0
  534. package/build/esm/common/types/forms.js +2 -0
  535. package/build/esm/common/types/forms.js.map +1 -0
  536. package/build/esm/common/types/index.d.ts +4 -0
  537. package/build/esm/common/types/index.js +5 -0
  538. package/build/esm/common/types/index.js.map +1 -0
  539. package/build/esm/common/types/messages.d.ts +9 -0
  540. package/build/esm/common/types/messages.js +2 -0
  541. package/build/esm/common/types/messages.js.map +1 -0
  542. package/build/esm/common/utils.d.ts +25 -0
  543. package/build/esm/common/utils.js +17 -0
  544. package/build/esm/common/utils.js.map +1 -0
  545. package/build/esm/components/FullscreenImage/FullscreenImage.css +1 -1
  546. package/build/esm/components/FullscreenMedia/FullscreenMedia.css +1 -3
  547. package/build/esm/components/Image/dynamic-form.d.ts +1 -1
  548. package/build/esm/components/Image/dynamic-form.js.map +1 -1
  549. package/build/esm/components/ReactPlayer/ReactPlayer.js +4 -1
  550. package/build/esm/components/ReactPlayer/ReactPlayer.js.map +1 -1
  551. package/build/esm/constructor-items.d.ts +2 -1
  552. package/build/esm/constructor-items.js +5 -5
  553. package/build/esm/constructor-items.js.map +1 -1
  554. package/build/esm/containers/PageConstructor/PageConstructor.css +1 -1
  555. package/build/esm/containers/PageConstructor/PageConstructor.js +18 -1
  556. package/build/esm/containers/PageConstructor/PageConstructor.js.map +1 -1
  557. package/build/esm/context/editorStoreContext/PCEditorStoreContext.d.ts +1 -1
  558. package/build/esm/context/editorStoreContext/PCEditorStoreContext.js +1 -1
  559. package/build/esm/context/editorStoreContext/PCEditorStoreContext.js.map +1 -1
  560. package/build/esm/context/editorStoreContext/PCEditorStoreProvider.js +1 -1
  561. package/build/esm/context/editorStoreContext/PCEditorStoreProvider.js.map +1 -1
  562. package/build/esm/editor-v2/components/BlockCard/BlockCard.css +27 -0
  563. package/build/esm/editor-v2/components/BlockCard/BlockCard.d.ts +10 -0
  564. package/build/esm/editor-v2/components/BlockCard/BlockCard.js +15 -0
  565. package/build/esm/editor-v2/components/BlockCard/BlockCard.js.map +1 -0
  566. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.css +5 -0
  567. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.d.ts +11 -0
  568. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.js +130 -0
  569. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.js.map +1 -0
  570. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +87 -0
  571. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +13 -0
  572. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +29 -0
  573. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.js.map +1 -0
  574. package/build/esm/editor-v2/components/DynamicForm/Fields/AnyOf/AnyOf.css +6 -0
  575. package/build/esm/editor-v2/components/DynamicForm/Fields/AnyOf/AnyOf.d.ts +10 -0
  576. package/build/esm/editor-v2/components/DynamicForm/Fields/AnyOf/AnyOf.js +33 -0
  577. package/build/esm/editor-v2/components/DynamicForm/Fields/AnyOf/AnyOf.js.map +1 -0
  578. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.css +38 -0
  579. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +12 -0
  580. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.js +66 -0
  581. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.js.map +1 -0
  582. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +10 -0
  583. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +19 -0
  584. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js.map +1 -0
  585. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.css +3 -0
  586. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.d.ts +9 -0
  587. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js +11 -0
  588. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js.map +1 -0
  589. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +8 -0
  590. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.js +13 -0
  591. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.js.map +1 -0
  592. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +10 -0
  593. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.js +8 -0
  594. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.js.map +1 -0
  595. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +6 -0
  596. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +10 -0
  597. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +33 -0
  598. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js.map +1 -0
  599. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.css +3 -0
  600. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.d.ts +12 -0
  601. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.js +14 -0
  602. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.js.map +1 -0
  603. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +8 -0
  604. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.js +10 -0
  605. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.js.map +1 -0
  606. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +8 -0
  607. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +10 -0
  608. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js.map +1 -0
  609. package/build/esm/editor-v2/components/DynamicForm/utils.d.ts +3 -0
  610. package/build/esm/editor-v2/components/DynamicForm/utils.js +17 -0
  611. package/build/esm/editor-v2/components/DynamicForm/utils.js.map +1 -0
  612. package/build/esm/editor-v2/components/MessageCard/MessageCard.css +51 -0
  613. package/build/esm/editor-v2/components/MessageCard/MessageCard.d.ts +11 -0
  614. package/build/esm/editor-v2/components/MessageCard/MessageCard.js +17 -0
  615. package/build/esm/editor-v2/components/MessageCard/MessageCard.js.map +1 -0
  616. package/build/esm/editor-v2/components/MessageCard/index.d.ts +2 -0
  617. package/build/esm/editor-v2/components/MessageCard/index.js +2 -0
  618. package/build/esm/editor-v2/components/MessageCard/index.js.map +1 -0
  619. package/build/esm/editor-v2/components/Panels/Panels.css +24 -0
  620. package/build/esm/editor-v2/components/Panels/Panels.d.ts +9 -0
  621. package/build/esm/editor-v2/components/Panels/Panels.js +24 -0
  622. package/build/esm/editor-v2/components/Panels/Panels.js.map +1 -0
  623. package/build/esm/editor-v2/components/Sidebar/Sidebar.css +48 -0
  624. package/build/esm/editor-v2/components/Sidebar/Sidebar.d.ts +11 -0
  625. package/build/esm/editor-v2/components/Sidebar/Sidebar.js +9 -0
  626. package/build/esm/editor-v2/components/Sidebar/Sidebar.js.map +1 -0
  627. package/build/esm/editor-v2/components/Tabs/Tabs.css +95 -0
  628. package/build/esm/editor-v2/components/Tabs/Tabs.d.ts +15 -0
  629. package/build/esm/editor-v2/components/Tabs/Tabs.js +34 -0
  630. package/build/esm/editor-v2/components/Tabs/Tabs.js.map +1 -0
  631. package/build/esm/editor-v2/constants/messages.d.ts +10 -0
  632. package/build/esm/editor-v2/constants/messages.js +11 -0
  633. package/build/esm/editor-v2/constants/messages.js.map +1 -0
  634. package/build/esm/editor-v2/constants.d.ts +1 -0
  635. package/build/esm/editor-v2/constants.js +2 -0
  636. package/build/esm/editor-v2/constants.js.map +1 -0
  637. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.css +22 -0
  638. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.d.ts +5 -0
  639. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js +56 -0
  640. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js.map +1 -0
  641. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.css +21 -0
  642. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.d.ts +6 -0
  643. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.js +28 -0
  644. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.js.map +1 -0
  645. package/build/esm/editor-v2/containers/BlocksList/BlocksList.css +62 -0
  646. package/build/esm/editor-v2/containers/BlocksList/BlocksList.d.ts +6 -0
  647. package/build/esm/editor-v2/containers/BlocksList/BlocksList.js +81 -0
  648. package/build/esm/editor-v2/containers/BlocksList/BlocksList.js.map +1 -0
  649. package/build/esm/editor-v2/containers/Editor/Editor.css +38 -0
  650. package/build/esm/editor-v2/containers/Editor/Editor.d.ts +23 -0
  651. package/build/esm/editor-v2/containers/Editor/Editor.js +37 -0
  652. package/build/esm/editor-v2/containers/Editor/Editor.js.map +1 -0
  653. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.css +6 -0
  654. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.d.ts +6 -0
  655. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.js +15 -0
  656. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.js.map +1 -0
  657. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.css +125 -0
  658. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.d.ts +8 -0
  659. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.js +39 -0
  660. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.js.map +1 -0
  661. package/build/esm/editor-v2/containers/Overlay/Overlay.css +67 -0
  662. package/build/esm/editor-v2/containers/Overlay/Overlay.d.ts +7 -0
  663. package/build/esm/editor-v2/containers/Overlay/Overlay.js +98 -0
  664. package/build/esm/editor-v2/containers/Overlay/Overlay.js.map +1 -0
  665. package/build/esm/editor-v2/containers/Source/Source.css +15 -0
  666. package/build/esm/editor-v2/containers/Source/Source.d.ts +3 -0
  667. package/build/esm/editor-v2/containers/Source/Source.js +26 -0
  668. package/build/esm/editor-v2/containers/Source/Source.js.map +1 -0
  669. package/build/esm/editor-v2/containers/SourceCode/SourceCode.css +86 -0
  670. package/build/esm/editor-v2/containers/SourceCode/SourceCode.d.ts +7 -0
  671. package/build/esm/editor-v2/containers/SourceCode/SourceCode.js +71 -0
  672. package/build/esm/editor-v2/containers/SourceCode/SourceCode.js.map +1 -0
  673. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.css +9 -0
  674. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.d.ts +9 -0
  675. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js +19 -0
  676. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js.map +1 -0
  677. package/build/esm/editor-v2/containers/Tree/DragContext.css +25 -0
  678. package/build/esm/editor-v2/containers/Tree/DragContext.d.ts +15 -0
  679. package/build/esm/editor-v2/containers/Tree/DragContext.js +45 -0
  680. package/build/esm/editor-v2/containers/Tree/DragContext.js.map +1 -0
  681. package/build/esm/editor-v2/containers/Tree/Tree.css +10 -0
  682. package/build/esm/editor-v2/containers/Tree/Tree.d.ts +6 -0
  683. package/build/esm/editor-v2/containers/Tree/Tree.js +33 -0
  684. package/build/esm/editor-v2/containers/Tree/Tree.js.map +1 -0
  685. package/build/esm/editor-v2/containers/Tree/TreeContent.css +12 -0
  686. package/build/esm/editor-v2/containers/Tree/TreeContent.d.ts +17 -0
  687. package/build/esm/editor-v2/containers/Tree/TreeContent.js +57 -0
  688. package/build/esm/editor-v2/containers/Tree/TreeContent.js.map +1 -0
  689. package/build/esm/editor-v2/containers/Tree/TreeItem.css +50 -0
  690. package/build/esm/editor-v2/containers/Tree/TreeItem.d.ts +14 -0
  691. package/build/esm/editor-v2/containers/Tree/TreeItem.js +140 -0
  692. package/build/esm/editor-v2/containers/Tree/TreeItem.js.map +1 -0
  693. package/build/esm/editor-v2/containers/Tree/index.d.ts +4 -0
  694. package/build/esm/editor-v2/containers/Tree/index.js +5 -0
  695. package/build/esm/editor-v2/containers/Tree/index.js.map +1 -0
  696. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.css +13 -0
  697. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.d.ts +4 -0
  698. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.js +52 -0
  699. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.js.map +1 -0
  700. package/build/esm/editor-v2/containers/index.d.ts +7 -0
  701. package/build/esm/editor-v2/containers/index.js +8 -0
  702. package/build/esm/editor-v2/containers/index.js.map +1 -0
  703. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.d.ts +7 -0
  704. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.js +6 -0
  705. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.js.map +1 -0
  706. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.d.ts +5 -0
  707. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.js +30 -0
  708. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.js.map +1 -0
  709. package/build/esm/editor-v2/context/editorStore/index.d.ts +2 -0
  710. package/build/esm/editor-v2/context/editorStore/index.js +3 -0
  711. package/build/esm/editor-v2/context/editorStore/index.js.map +1 -0
  712. package/build/esm/editor-v2/context/iframeContext/IframeContext.d.ts +12 -0
  713. package/build/esm/editor-v2/context/iframeContext/IframeContext.js +10 -0
  714. package/build/esm/editor-v2/context/iframeContext/IframeContext.js.map +1 -0
  715. package/build/esm/editor-v2/context/iframeContext/IframeProvider.d.ts +7 -0
  716. package/build/esm/editor-v2/context/iframeContext/IframeProvider.js +16 -0
  717. package/build/esm/editor-v2/context/iframeContext/IframeProvider.js.map +1 -0
  718. package/build/esm/editor-v2/context/iframeContext/index.d.ts +2 -0
  719. package/build/esm/editor-v2/context/iframeContext/index.js +3 -0
  720. package/build/esm/editor-v2/context/iframeContext/index.js.map +1 -0
  721. package/build/esm/editor-v2/hooks/index.d.ts +2 -0
  722. package/build/esm/editor-v2/hooks/index.js +3 -0
  723. package/build/esm/editor-v2/hooks/index.js.map +1 -0
  724. package/build/esm/editor-v2/hooks/useEditorTabs.d.ts +22 -0
  725. package/build/esm/editor-v2/hooks/useEditorTabs.js +68 -0
  726. package/build/esm/editor-v2/hooks/useEditorTabs.js.map +1 -0
  727. package/build/esm/editor-v2/hooks/useMainEditorInitialize.d.ts +3 -0
  728. package/build/esm/editor-v2/hooks/useMainEditorInitialize.js +38 -0
  729. package/build/esm/editor-v2/hooks/useMainEditorInitialize.js.map +1 -0
  730. package/build/esm/editor-v2/hooks/useMainEditorStore.d.ts +1 -0
  731. package/build/esm/editor-v2/hooks/useMainEditorStore.js +8 -0
  732. package/build/esm/editor-v2/hooks/useMainEditorStore.js.map +1 -0
  733. package/build/esm/editor-v2/hooks/usePostMessageEvents.d.ts +6 -0
  734. package/build/esm/editor-v2/hooks/usePostMessageEvents.js +15 -0
  735. package/build/esm/editor-v2/hooks/usePostMessageEvents.js.map +1 -0
  736. package/build/esm/editor-v2/index.d.ts +5 -0
  737. package/build/esm/editor-v2/index.js +6 -0
  738. package/build/esm/editor-v2/index.js.map +1 -0
  739. package/build/esm/editor-v2/store.d.ts +49 -0
  740. package/build/esm/editor-v2/store.js +180 -0
  741. package/build/esm/editor-v2/store.js.map +1 -0
  742. package/build/esm/editor-v2/styles/mixins.css +0 -0
  743. package/build/esm/editor-v2/styles/root.css +9 -0
  744. package/build/esm/editor-v2/styles/variables.css +0 -0
  745. package/build/esm/editor-v2/utils/cn.d.ts +2 -0
  746. package/build/esm/editor-v2/utils/cn.js +4 -0
  747. package/build/esm/editor-v2/utils/cn.js.map +1 -0
  748. package/build/esm/editor-v2/utils/code.d.ts +6 -0
  749. package/build/esm/editor-v2/utils/code.js +9 -0
  750. package/build/esm/editor-v2/utils/code.js.map +1 -0
  751. package/build/esm/editor-v2/utils/index.d.ts +20 -0
  752. package/build/esm/editor-v2/utils/index.js +143 -0
  753. package/build/esm/editor-v2/utils/index.js.map +1 -0
  754. package/build/esm/form-generator/components/AddPropertyButton/AddPropertyButton.css +3 -0
  755. package/build/esm/form-generator/components/AddPropertyButton/AddPropertyButton.d.ts +14 -0
  756. package/build/esm/form-generator/components/AddPropertyButton/AddPropertyButton.js +12 -0
  757. package/build/esm/form-generator/components/AddPropertyButton/AddPropertyButton.js.map +1 -0
  758. package/build/esm/form-generator/components/ArrayFieldRenderer/ArrayFieldRenderer.css +23 -0
  759. package/build/esm/form-generator/components/ArrayFieldRenderer/ArrayFieldRenderer.d.ts +12 -0
  760. package/build/esm/form-generator/components/ArrayFieldRenderer/ArrayFieldRenderer.js +23 -0
  761. package/build/esm/form-generator/components/ArrayFieldRenderer/ArrayFieldRenderer.js.map +1 -0
  762. package/build/esm/form-generator/components/ConfigRow/ConfigRow.css +12 -0
  763. package/build/esm/form-generator/components/ConfigRow/ConfigRow.d.ts +9 -0
  764. package/build/esm/form-generator/components/ConfigRow/ConfigRow.js +14 -0
  765. package/build/esm/form-generator/components/ConfigRow/ConfigRow.js.map +1 -0
  766. package/build/esm/form-generator/components/FieldCard/FieldCard.css +15 -0
  767. package/build/esm/form-generator/components/FieldCard/FieldCard.d.ts +9 -0
  768. package/build/esm/form-generator/components/FieldCard/FieldCard.js +53 -0
  769. package/build/esm/form-generator/components/FieldCard/FieldCard.js.map +1 -0
  770. package/build/esm/form-generator/components/FieldHeader/FieldHeader.css +6 -0
  771. package/build/esm/form-generator/components/FieldHeader/FieldHeader.d.ts +10 -0
  772. package/build/esm/form-generator/components/FieldHeader/FieldHeader.js +7 -0
  773. package/build/esm/form-generator/components/FieldHeader/FieldHeader.js.map +1 -0
  774. package/build/esm/form-generator/components/FormBuilder/FormBuilder.css +93 -0
  775. package/build/esm/form-generator/components/FormBuilder/FormBuilder.d.ts +9 -0
  776. package/build/esm/form-generator/components/FormBuilder/FormBuilder.js +60 -0
  777. package/build/esm/form-generator/components/FormBuilder/FormBuilder.js.map +1 -0
  778. package/build/esm/form-generator/components/ObjectFieldRenderer/ObjectFieldRenderer.css +6 -0
  779. package/build/esm/form-generator/components/ObjectFieldRenderer/ObjectFieldRenderer.d.ts +12 -0
  780. package/build/esm/form-generator/components/ObjectFieldRenderer/ObjectFieldRenderer.js +12 -0
  781. package/build/esm/form-generator/components/ObjectFieldRenderer/ObjectFieldRenderer.js.map +1 -0
  782. package/build/esm/form-generator/components/OptionHeader/OptionHeader.css +6 -0
  783. package/build/esm/form-generator/components/OptionHeader/OptionHeader.d.ts +7 -0
  784. package/build/esm/form-generator/components/OptionHeader/OptionHeader.js +7 -0
  785. package/build/esm/form-generator/components/OptionHeader/OptionHeader.js.map +1 -0
  786. package/build/esm/form-generator/components/OptionsRenderer/OptionsRenderer.css +31 -0
  787. package/build/esm/form-generator/components/OptionsRenderer/OptionsRenderer.d.ts +12 -0
  788. package/build/esm/form-generator/components/OptionsRenderer/OptionsRenderer.js +20 -0
  789. package/build/esm/form-generator/components/OptionsRenderer/OptionsRenderer.js.map +1 -0
  790. package/build/esm/form-generator/components/SectionHeader/SectionHeader.css +3 -0
  791. package/build/esm/form-generator/components/SectionHeader/SectionHeader.d.ts +8 -0
  792. package/build/esm/form-generator/components/SectionHeader/SectionHeader.js +7 -0
  793. package/build/esm/form-generator/components/SectionHeader/SectionHeader.js.map +1 -0
  794. package/build/esm/form-generator/components/SelectFieldRenderer/SelectFieldRenderer.css +36 -0
  795. package/build/esm/form-generator/components/SelectFieldRenderer/SelectFieldRenderer.d.ts +8 -0
  796. package/build/esm/form-generator/components/SelectFieldRenderer/SelectFieldRenderer.js +61 -0
  797. package/build/esm/form-generator/components/SelectFieldRenderer/SelectFieldRenderer.js.map +1 -0
  798. package/build/esm/form-generator/hooks/FormContext.d.ts +7 -0
  799. package/build/esm/form-generator/hooks/FormContext.js +16 -0
  800. package/build/esm/form-generator/hooks/FormContext.js.map +1 -0
  801. package/build/esm/form-generator/hooks/types.d.ts +48 -0
  802. package/build/esm/form-generator/hooks/types.js +2 -0
  803. package/build/esm/form-generator/hooks/types.js.map +1 -0
  804. package/build/esm/form-generator/hooks/useFormFields.d.ts +18 -0
  805. package/build/esm/form-generator/hooks/useFormFields.js +565 -0
  806. package/build/esm/form-generator/hooks/useFormFields.js.map +1 -0
  807. package/build/esm/form-generator/index.d.ts +7 -0
  808. package/build/esm/form-generator/index.js +8 -0
  809. package/build/esm/form-generator/index.js.map +1 -0
  810. package/build/esm/hooks/usePCEditorBlockMouseEvents.d.ts +1 -0
  811. package/build/esm/hooks/usePCEditorBlockMouseEvents.js +2 -0
  812. package/build/esm/hooks/usePCEditorBlockMouseEvents.js.map +1 -1
  813. package/build/esm/hooks/usePCEditorInitializeEvents.js.map +1 -1
  814. package/build/esm/hooks/usePCEditorItemWrap.d.ts +1 -0
  815. package/build/esm/hooks/usePCEditorStore.d.ts +1 -1
  816. package/build/esm/hooks/usePostMessageAPI.d.ts +1 -1
  817. package/build/esm/hooks/usePostMessageAPI.js.map +1 -1
  818. package/build/esm/internal-typings/global.d.ts +1 -0
  819. package/build/esm/models/constructor-items/blocks.d.ts +19 -1
  820. package/build/esm/models/constructor-items/blocks.js +1 -0
  821. package/build/esm/models/constructor-items/blocks.js.map +1 -1
  822. package/build/esm/models/constructor-items/sub-blocks.d.ts +2 -1
  823. package/build/esm/models/constructor-items/sub-blocks.js.map +1 -1
  824. package/build/esm/navigation/schema.d.ts +2 -0
  825. package/build/esm/navigation/schema.js +12 -3
  826. package/build/esm/navigation/schema.js.map +1 -1
  827. package/build/esm/schema/constants.js +2 -1
  828. package/build/esm/schema/constants.js.map +1 -1
  829. package/build/esm/schema/index.d.ts +2 -0
  830. package/build/esm/schema/validators/blocks.d.ts +1 -0
  831. package/build/esm/schema/validators/blocks.js +1 -0
  832. package/build/esm/schema/validators/blocks.js.map +1 -1
  833. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.d.ts +1 -1
  834. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.js.map +1 -1
  835. package/build/esm/sub-blocks/BackgroundCard/index.js +1 -1
  836. package/build/esm/sub-blocks/BackgroundCard/index.js.map +1 -1
  837. package/build/esm/sub-blocks/BannerCard/index.js +1 -1
  838. package/build/esm/sub-blocks/BannerCard/index.js.map +1 -1
  839. package/build/esm/sub-blocks/BasicCard/index.js +1 -1
  840. package/build/esm/sub-blocks/BasicCard/index.js.map +1 -1
  841. package/build/esm/sub-blocks/Content/index.js +1 -1
  842. package/build/esm/sub-blocks/Content/index.js.map +1 -1
  843. package/build/esm/sub-blocks/HubspotForm/HubspotFormContainer.d.ts +1 -1
  844. package/build/esm/sub-blocks/HubspotForm/HubspotFormContainer.js +5 -1
  845. package/build/esm/sub-blocks/HubspotForm/HubspotFormContainer.js.map +1 -1
  846. package/build/esm/sub-blocks/HubspotForm/index.js +2 -2
  847. package/build/esm/sub-blocks/HubspotForm/index.js.map +1 -1
  848. package/build/esm/sub-blocks/HubspotForm/setHubspotDefaultValues.d.ts +2 -0
  849. package/build/esm/sub-blocks/HubspotForm/setHubspotDefaultValues.js +47 -0
  850. package/build/esm/sub-blocks/HubspotForm/setHubspotDefaultValues.js.map +1 -0
  851. package/build/esm/sub-blocks/ImageCard/index.js +1 -1
  852. package/build/esm/sub-blocks/ImageCard/index.js.map +1 -1
  853. package/build/esm/sub-blocks/LayoutItem/index.js +1 -1
  854. package/build/esm/sub-blocks/LayoutItem/index.js.map +1 -1
  855. package/build/esm/sub-blocks/MediaCard/index.js +1 -1
  856. package/build/esm/sub-blocks/MediaCard/index.js.map +1 -1
  857. package/build/esm/sub-blocks/PriceCard/index.js +1 -1
  858. package/build/esm/sub-blocks/PriceCard/index.js.map +1 -1
  859. package/build/esm/sub-blocks/PriceDetailed/index.js +1 -1
  860. package/build/esm/sub-blocks/PriceDetailed/index.js.map +1 -1
  861. package/build/esm/sub-blocks/Quote/index.js +1 -1
  862. package/build/esm/sub-blocks/Quote/index.js.map +1 -1
  863. package/build/esm/text-transform/config.js +25 -1
  864. package/build/esm/text-transform/config.js.map +1 -1
  865. package/build/esm/utils/form-generator.d.ts +1 -1
  866. package/build/esm/utils/form-generator.js +27 -0
  867. package/build/esm/utils/form-generator.js.map +1 -1
  868. package/build/esm/utils/hubspot.d.ts +1 -0
  869. package/build/esm/utils/hubspot.js.map +1 -1
  870. package/package.json +33 -20
  871. package/schema/index.js +1 -1
  872. package/server/models/constructor-items/blocks.d.ts +19 -1
  873. package/server/models/constructor-items/blocks.js +1 -0
  874. package/server/models/constructor-items/sub-blocks.d.ts +2 -1
  875. package/server/text-transform/config.js +25 -1
  876. package/server/utils/hubspot.d.ts +1 -0
  877. package/styles/styles.css +1 -1
  878. package/styles/yfm.scss +1 -1
  879. package/widget/{5287.index.js → 1092.index.js} +1 -1
  880. package/widget/{8092.index.js → 1130.index.js} +1 -1
  881. package/widget/1219.index.js +1 -0
  882. package/widget/{2390.index.js → 122.index.js} +1 -1
  883. package/widget/{6817.index.js → 1289.index.js} +1 -1
  884. package/widget/{2921.index.js → 1335.index.js} +1 -1
  885. package/widget/{1876.index.js → 1340.index.js} +1 -1
  886. package/widget/{3901.index.js → 1349.index.js} +1 -1
  887. package/widget/1532.index.js +1 -0
  888. package/widget/{2957.index.js → 1750.index.js} +1 -1
  889. package/widget/{5105.index.js → 1995.index.js} +1 -1
  890. package/widget/{5418.index.js → 2010.index.js} +1 -1
  891. package/widget/{9517.index.js → 2026.index.js} +1 -1
  892. package/widget/{1794.index.js → 2187.index.js} +1 -1
  893. package/widget/{7548.index.js → 2218.index.js} +1 -1
  894. package/widget/225.index.js +1 -0
  895. package/widget/2338.index.js +1 -0
  896. package/widget/{4653.index.js → 2355.index.js} +1 -1
  897. package/widget/{5001.index.js → 2369.index.js} +1 -1
  898. package/widget/{4127.index.js → 2487.index.js} +1 -1
  899. package/widget/{6165.index.js → 2498.index.js} +1 -1
  900. package/widget/{5254.index.js → 2509.index.js} +1 -1
  901. package/widget/2544.index.js +1 -1
  902. package/widget/2619.index.js +1 -0
  903. package/widget/{5941.index.js → 2673.index.js} +1 -1
  904. package/widget/{4717.index.js → 2698.index.js} +1 -1
  905. package/widget/{7427.index.js → 2706.index.js} +1 -1
  906. package/widget/{8602.index.js → 2739.index.js} +1 -1
  907. package/widget/2745.index.js +1 -0
  908. package/widget/2796.index.js +1 -0
  909. package/widget/{7573.index.js → 2830.index.js} +1 -1
  910. package/widget/{3237.index.js → 2878.index.js} +1 -1
  911. package/widget/292.index.js +1 -0
  912. package/widget/2979.index.js +1 -0
  913. package/widget/3187.index.js +1 -0
  914. package/widget/321.index.js +1 -0
  915. package/widget/{5437.index.js → 3222.index.js} +1 -1
  916. package/widget/{1987.index.js → 3225.index.js} +1 -1
  917. package/widget/{7719.index.js → 3309.index.js} +1 -1
  918. package/widget/{4254.index.js → 3433.index.js} +1 -1
  919. package/widget/{2722.index.js → 3473.index.js} +1 -1
  920. package/widget/3532.index.js +1 -0
  921. package/widget/3562.index.js +1 -0
  922. package/widget/{6148.index.js → 3672.index.js} +1 -1
  923. package/widget/{4990.index.js → 3713.index.js} +1 -1
  924. package/widget/{8894.index.js → 3860.index.js} +1 -1
  925. package/widget/{5551.index.js → 3900.index.js} +1 -1
  926. package/widget/{6629.index.js → 4007.index.js} +1 -1
  927. package/widget/{7467.index.js → 4061.index.js} +1 -1
  928. package/widget/{5423.index.js → 4072.index.js} +1 -1
  929. package/widget/{4144.index.js → 4173.index.js} +1 -1
  930. package/widget/4288.index.js +1 -0
  931. package/widget/{8242.index.js → 4309.index.js} +1 -1
  932. package/widget/{8146.index.js → 4334.index.js} +1 -1
  933. package/widget/{9339.index.js → 4405.index.js} +1 -1
  934. package/widget/4457.index.js +1 -0
  935. package/widget/{8768.index.js → 4485.index.js} +1 -1
  936. package/widget/4509.index.js +1 -0
  937. package/widget/{4067.index.js → 4608.index.js} +1 -1
  938. package/widget/465.index.js +1 -0
  939. package/widget/{7118.index.js → 4719.index.js} +1 -1
  940. package/widget/4734.index.js +1 -0
  941. package/widget/4780.index.js +1 -0
  942. package/widget/4895.index.js +1 -0
  943. package/widget/{790.index.js → 494.index.js} +1 -1
  944. package/widget/5012.index.js +1 -0
  945. package/widget/{4722.index.js → 5084.index.js} +1 -1
  946. package/widget/5285.index.js +1 -0
  947. package/widget/5376.index.js +1 -0
  948. package/widget/539.index.js +1 -0
  949. package/widget/5414.index.js +1 -0
  950. package/widget/{8980.index.js → 5513.index.js} +1 -1
  951. package/widget/5530.index.js +1 -0
  952. package/widget/5571.index.js +1 -0
  953. package/widget/{8540.index.js → 5592.index.js} +1 -1
  954. package/widget/5616.index.js +1 -0
  955. package/widget/{5903.index.js → 5662.index.js} +1 -1
  956. package/widget/{7109.index.js → 5665.index.js} +1 -1
  957. package/widget/{8792.index.js → 5681.index.js} +1 -1
  958. package/widget/5760.index.js +1 -0
  959. package/widget/{6257.index.js → 5811.index.js} +1 -1
  960. package/widget/{5054.index.js → 5826.index.js} +1 -1
  961. package/widget/{1560.index.js → 5877.index.js} +1 -1
  962. package/widget/{9149.index.js → 5944.index.js} +1 -1
  963. package/widget/{8341.index.js → 5977.index.js} +1 -1
  964. package/widget/{3646.index.js → 5993.index.js} +1 -1
  965. package/widget/{2009.index.js → 6007.index.js} +1 -1
  966. package/widget/{3852.index.js → 6033.index.js} +1 -1
  967. package/widget/{5567.index.js → 6101.index.js} +1 -1
  968. package/widget/623.index.js +1 -0
  969. package/widget/{7989.index.js → 6290.index.js} +1 -1
  970. package/widget/6364.index.js +1 -0
  971. package/widget/{7387.index.js → 6400.index.js} +1 -1
  972. package/widget/{5473.index.js → 6462.index.js} +1 -1
  973. package/widget/6467.index.js +1 -0
  974. package/widget/{6622.index.js → 6481.index.js} +1 -1
  975. package/widget/{4888.index.js → 6605.index.js} +1 -1
  976. package/widget/{2966.index.js → 6803.index.js} +1 -1
  977. package/widget/{5627.index.js → 6847.index.js} +1 -1
  978. package/widget/{2019.index.js → 7081.index.js} +1 -1
  979. package/widget/7205.index.js +1 -0
  980. package/widget/{5596.index.js → 7250.index.js} +1 -1
  981. package/widget/{7763.index.js → 7317.index.js} +1 -1
  982. package/widget/7329.index.js +1 -0
  983. package/widget/{5159.index.js → 7406.index.js} +1 -1
  984. package/widget/{7632.index.js → 7409.index.js} +1 -1
  985. package/widget/{3783.index.js → 7420.index.js} +1 -1
  986. package/widget/{7101.index.js → 7439.index.js} +1 -1
  987. package/widget/{9197.index.js → 7674.index.js} +1 -1
  988. package/widget/{5805.index.js → 7690.index.js} +1 -1
  989. package/widget/{2641.index.js → 7741.index.js} +1 -1
  990. package/widget/{4724.index.js → 7933.index.js} +1 -1
  991. package/widget/{9132.index.js → 8003.index.js} +1 -1
  992. package/widget/813.index.js +1 -0
  993. package/widget/{6513.index.js → 8142.index.js} +1 -1
  994. package/widget/{8562.index.js → 8298.index.js} +1 -1
  995. package/widget/{7200.index.js → 8361.index.js} +1 -1
  996. package/widget/{4855.index.js → 8418.index.js} +1 -1
  997. package/widget/860.index.js +1 -0
  998. package/widget/{1796.index.js → 8615.index.js} +1 -1
  999. package/widget/{6312.index.js → 8660.index.js} +1 -1
  1000. package/widget/880.index.js +1 -0
  1001. package/widget/8804.index.js +1 -0
  1002. package/widget/8809.index.js +1 -0
  1003. package/widget/{9157.index.js → 8928.index.js} +1 -1
  1004. package/widget/912.index.js +1 -0
  1005. package/widget/9160.index.js +1 -0
  1006. package/widget/{5914.index.js → 9252.index.js} +1 -1
  1007. package/widget/{3706.index.js → 9286.index.js} +1 -1
  1008. package/widget/{2502.index.js → 9294.index.js} +1 -1
  1009. package/widget/{9182.index.js → 9423.index.js} +1 -1
  1010. package/widget/{8477.index.js → 9464.index.js} +1 -1
  1011. package/widget/950.index.js +1 -0
  1012. package/widget/952.index.js +1 -0
  1013. package/widget/9677.index.js +1 -0
  1014. package/widget/9751.index.js +1 -0
  1015. package/widget/{3220.index.js → 9836.index.js} +1 -1
  1016. package/widget/{2376.index.js → 9865.index.js} +1 -1
  1017. package/widget/{5109.index.js → 9881.index.js} +1 -1
  1018. package/widget/9911.index.js +1 -1
  1019. package/widget/{7822.index.js → 9964.index.js} +1 -1
  1020. package/widget/{9091.index.js → 9990.index.js} +1 -1
  1021. package/widget/9998.index.js +1 -0
  1022. package/widget/index.js +1 -1
  1023. package/widget/1113.index.js +0 -1
  1024. package/widget/123.index.js +0 -1
  1025. package/widget/1573.index.js +0 -1
  1026. package/widget/2030.index.js +0 -1
  1027. package/widget/229.index.js +0 -1
  1028. package/widget/261.index.js +0 -1
  1029. package/widget/302.index.js +0 -1
  1030. package/widget/3035.index.js +0 -1
  1031. package/widget/313.index.js +0 -1
  1032. package/widget/3521.index.js +0 -1
  1033. package/widget/3864.index.js +0 -1
  1034. package/widget/3939.index.js +0 -1
  1035. package/widget/4017.index.js +0 -1
  1036. package/widget/4149.index.js +0 -1
  1037. package/widget/4502.index.js +0 -1
  1038. package/widget/466.index.js +0 -1
  1039. package/widget/504.index.js +0 -1
  1040. package/widget/5321.index.js +0 -1
  1041. package/widget/5742.index.js +0 -1
  1042. package/widget/5817.index.js +0 -1
  1043. package/widget/600.index.js +0 -1
  1044. package/widget/6023.index.js +0 -1
  1045. package/widget/6159.index.js +0 -1
  1046. package/widget/617.index.js +0 -1
  1047. package/widget/6183.index.js +0 -1
  1048. package/widget/6509.index.js +0 -1
  1049. package/widget/6636.index.js +0 -1
  1050. package/widget/6831.index.js +0 -1
  1051. package/widget/6953.index.js +0 -1
  1052. package/widget/7296.index.js +0 -1
  1053. package/widget/7486.index.js +0 -1
  1054. package/widget/7496.index.js +0 -1
  1055. package/widget/7553.index.js +0 -1
  1056. package/widget/758.index.js +0 -1
  1057. package/widget/772.index.js +0 -1
  1058. package/widget/7797.index.js +0 -1
  1059. package/widget/8066.index.js +0 -1
  1060. package/widget/8507.index.js +0 -1
  1061. package/widget/8529.index.js +0 -1
  1062. package/widget/8727.index.js +0 -1
  1063. package/widget/8864.index.js +0 -1
  1064. package/widget/8889.index.js +0 -1
  1065. package/widget/953.index.js +0 -1
  1066. package/widget/9670.index.js +0 -1
  1067. package/widget/9682.index.js +0 -1
  1068. package/widget/9928.index.js +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"../../../src","sources":["text-transform/config.ts"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,4EAA4E;;;AAE5E,+CAWmB;AAEnB,wCAOkB;AAElB,SAAS,eAAe,CAAC,WAAwB,EAAE,OAAmB;IAClE,MAAM,MAAM,GAAG,OAAO,EAAE,MAAM,CAAC;IAE/B,OAAO;QACH,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC;QAClB,MAAM,EAAE,MAAM,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAS,aAAa,CAAC,WAAwB,EAAE,KAA6B;IAC1E,OAAO,KAAK,CAAC,GAAG,CA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AM,EAAE,CAAC,MAAM,CAAC;YAChB,WAAW,EAAE,uBAAc;YAC3B,MAAM,EAAE,IAAA,0BAAiB,EAAC,CAAC,MAAM,CAAC,CAAC;SACtC;KACJ;IACD,CAAC,kBAAS,CAAC,SAAS,CAAC,EAAE;QACnB;YACI,MAAM,EAAE,CAAC,aAAa,CAAC;YACvB,WAAW,EAAE,uBAAc;YAC3B,MAAM,EAAE,kBAAkB;SAC7B;QACD;YACI,MAAM,EAAE,CAAC,aAAa,CAAC;YACvB,WAAW,EAAE,4BAAmB;YAChC,MAAM,EAAE,uBAAuB;SAClC;KACJ;CACJ,CAAC","sourcesContent":["/* eslint-disable no-param-reassign */\n/* eslint-disable no-not-accumulator-reassign/no-not-accumulator-reassign */\n\nimport {\n BlockType,\n ContentBlockProps,\n ExtendedFeaturesItem,\n PriceDetailedProps,\n PriceDetailsListProps,\n PriceDetailsSettingsProps,\n PromoFeaturesItem,\n SubBlockType,\n TableProps,\n TitleItemProps,\n} from '../models';\n\nimport {\n Parser,\n Transformer,\n TransformerRaw,\n createItemsParser,\n typografTransformer,\n yfmTransformer,\n} from './common';\n\nfunction parseTableBlock(transformer: Transformer, content: TableProps) {\n const legend = content?.legend;\n\n return {\n ...(content || {}),\n legend: legend && legend.map((string) => transformer(string)),\n };\n}\n\nfunction parseFeatures(transformer: Transformer, items: ExtendedFeaturesItem[]) {\n return items.map(({title, text, ...rest}) => ({\n title: title && transformer(title),\n text: text && transformer(text),\n ...rest,\n }));\n}\n\nfunction parsePromoFeatures(transformer: Transformer, items: PromoFeaturesItem[]) {\n return items.map(({text, ...rest}) => ({\n text: transformer(text),\n ...rest,\n }));\n}\n\nconst parseTitle = (transformer: Transformer, title: TitleItemProps | string) =>\n typeof title === 'object' && 'text' in title\n ? {...title, text: transformer(title.text)}\n : title && transformer(title);\n\nconst parseItemsTitle = (transformer: Transformer, items: ExtendedFeaturesItem[]) =>\n items.map(({title, ...rest}) => ({\n title: title && parseTitle(transformer, title),\n ...rest,\n }));\n\nfunction parsePriceDetailedBlock(transformer: Transformer, block: PriceDetailedProps) {\n const {priceType} = block;\n\n /* eslint-disable no-not-accumulator-reassign/no-not-accumulator-reassign */\n block.items = block.items.map((item) => {\n const {description, items: details = []} = item;\n\n if (priceType === 'marked-list') {\n item.items = (details as PriceDetailsListProps[]).map((detail) => {\n detail.text = detail.text && transformer(detail.text);\n\n return detail;\n });\n } else {\n item.items = (details as PriceDetailsSettingsProps[]).map((detail) => {\n detail.description = detail.description && transformer(detail.description);\n\n return detail;\n });\n }\n\n item.description = transformer(description);\n\n return item;\n });\n /* eslint-enable no-not-accumulator-reassign/no-not-accumulator-reassign */\n\n return block;\n}\n\nconst parseContentLayout = (transformer: Transformer, content: ContentBlockProps) => {\n if (content) {\n const {text, additionalInfo, list} = content;\n\n /* eslint-disable no-not-accumulator-reassign/no-not-accumulator-reassign */\n if (text) {\n content.text = transformer(text);\n }\n\n if (additionalInfo) {\n content.additionalInfo = transformer(additionalInfo);\n }\n\n if (list) {\n content.list = list.map((item) => {\n if (item?.text) {\n return {\n ...item,\n text: transformer(item.text),\n };\n }\n\n return item;\n });\n }\n /* eslint-enable no-not-accumulator-reassign/no-not-accumulator-reassign */\n }\n\n return content;\n};\n\nfunction parseContentLayoutTitle(transformer: Transformer, content: ContentBlockProps) {\n if (content?.title) {\n const {title} = content;\n\n // eslint-disable-next-line no-not-accumulator-reassign/no-not-accumulator-reassign\n content.title = title && parseTitle(transformer, title);\n }\n\n return content;\n}\n\nexport const blockHeaderTransformer = [\n {\n fields: ['title'],\n transformer: typografTransformer,\n parser: parseTitle,\n },\n {\n fields: ['description'],\n transformer: yfmTransformer,\n },\n];\n\ninterface BlockConfig {\n transformer: TransformerRaw;\n fields?: string[];\n parser?: Parser;\n}\n\nexport type BlocksConfig = Record<string, BlockConfig | BlockConfig[]>;\n\nexport const config: BlocksConfig = {\n [SubBlockType.BasicCard]: [\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n {\n fields: ['text', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n ],\n [SubBlockType.BackgroundCard]: [\n {\n fields: ['text', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n ],\n [SubBlockType.ImageCard]: [\n {\n fields: ['text', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n ],\n [SubBlockType.LayoutItem]: [\n {\n fields: ['content'],\n parser: parseContentLayout,\n transformer: yfmTransformer,\n },\n {\n fields: ['content'],\n parser: parseContentLayoutTitle,\n transformer: typografTransformer,\n },\n {\n fields: ['metaInfo'],\n parser: createItemsParser([]),\n transformer: yfmTransformer,\n },\n ],\n [SubBlockType.Quote]: [\n {\n fields: ['text'],\n transformer: typografTransformer,\n },\n {\n fields: ['yfmText'],\n transformer: yfmTransformer,\n },\n ],\n [BlockType.ExtendedFeaturesBlock]: [\n ...blockHeaderTransformer,\n {\n fields: ['items'],\n transformer: typografTransformer,\n parser: createItemsParser(['title']),\n },\n {\n fields: ['items'],\n transformer: yfmTransformer,\n parser: createItemsParser(['text', 'additionalInfo']),\n },\n ],\n [BlockType.PromoFeaturesBlock]: [\n ...blockHeaderTransformer,\n {\n fields: ['items'],\n transformer: yfmTransformer,\n parser: parsePromoFeatures,\n },\n ],\n [BlockType.SliderBlock]: blockHeaderTransformer,\n [BlockType.CompaniesBlock]: blockHeaderTransformer,\n [BlockType.QuestionsBlock]: [\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n {\n fields: ['text', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n {\n fields: ['items'],\n transformer: yfmTransformer,\n parser: parseFeatures,\n },\n ],\n\n [BlockType.BannerBlock]: [\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n {\n fields: ['subtitle'],\n transformer: yfmTransformer,\n },\n ],\n [SubBlockType.BannerCard]: [\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n {\n fields: ['subtitle'],\n transformer: yfmTransformer,\n },\n ],\n [BlockType.MediaBlock]: [\n ...blockHeaderTransformer,\n {\n fields: ['title', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n {\n fields: ['list'],\n transformer: yfmTransformer,\n parser: createItemsParser(['text']),\n },\n ],\n [BlockType.MapBlock]: [\n ...blockHeaderTransformer,\n {\n fields: ['title', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n ],\n [BlockType.TabsBlock]: [\n ...blockHeaderTransformer,\n {\n fields: ['items'],\n transformer: yfmTransformer,\n parser: createItemsParser(['text', 'additionalInfo', 'caption']),\n },\n {\n fields: ['items'],\n transformer: typografTransformer,\n parser: parseItemsTitle,\n },\n ],\n [BlockType.TableBlock]: [\n {\n fields: ['table'],\n transformer: yfmTransformer,\n parser: parseTableBlock,\n },\n ],\n [BlockType.HeaderSliderBlock]: [\n {\n fields: ['items'],\n transformer: typografTransformer,\n parser: createItemsParser(['title', 'overtitle']),\n },\n {\n fields: ['items'],\n transformer: yfmTransformer,\n parser: createItemsParser(['description']),\n },\n ],\n [SubBlockType.PriceDetailed]: [\n {\n transformer: yfmTransformer,\n parser: parsePriceDetailedBlock,\n },\n ],\n [BlockType.HeaderBlock]: [\n {\n fields: ['description'],\n transformer: yfmTransformer,\n },\n ],\n [BlockType.ContentLayoutBlock]: [\n {\n fields: ['textContent'],\n transformer: yfmTransformer,\n parser: parseContentLayout,\n },\n {\n fields: ['textContent'],\n transformer: typografTransformer,\n parser: parseContentLayoutTitle,\n },\n ],\n [SubBlockType.Content]: [\n {\n fields: ['text', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n {\n fields: ['title'],\n transformer: typografTransformer,\n parser: parseTitle,\n },\n {\n fields: ['list'],\n transformer: yfmTransformer,\n parser: createItemsParser(['title', 'text']),\n },\n ],\n [BlockType.InfoBlock]: [\n {\n fields: ['rightContent', 'leftContent'],\n transformer: yfmTransformer,\n parser: parseContentLayout,\n },\n {\n fields: ['rightContent', 'leftContent'],\n transformer: typografTransformer,\n parser: parseContentLayoutTitle,\n },\n ],\n [BlockType.ShareBlock]: [\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n ],\n [BlockType.CardLayoutBlock]: blockHeaderTransformer,\n [BlockType.FilterBlock]: blockHeaderTransformer,\n [BlockType.IconsBlock]: blockHeaderTransformer,\n [SubBlockType.PriceCard]: [\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n {\n fields: ['list'],\n transformer: yfmTransformer,\n parser: createItemsParser(['text']),\n },\n ],\n [BlockType.FormBlock]: [\n {\n fields: ['textContent'],\n transformer: yfmTransformer,\n parser: parseContentLayout,\n },\n {\n fields: ['textContent'],\n transformer: typografTransformer,\n parser: parseContentLayoutTitle,\n },\n ],\n};\n"]}
1
+ {"version":3,"file":"config.js","sourceRoot":"../../../src","sources":["text-transform/config.ts"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,4EAA4E;;;AAE5E,+CAYmB;AAEnB,wCAOkB;AAElB,SAAS,eAAe,CAAC,WAAwB,EAAE,OAAmB;IAClE,MAAM,MAAM,GAAG,OAAO,EAAE,MAAM,CAAC;IAE/B,OAAO;QACH,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC;QAClB,MAAM,EAAE,MAAM,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAS,aAAa,CAAC,WAAwB,EAAE,KAA6B;IAC1E,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,EAAC,EAAE,EAAE,CAAC,CAAC;QAC1C,KAAK,EAAE,KAAK,IAAI,WAAW,CAAC,KAAK,CAAC;QAClC,IAAI,EAAE,IAAI,IAAI,WAAW,CAAC,IAAI,CAAC;QAC/B,GAAG,IAAI;KACV,CAAC,CAAC,CAAC;AACR,CAAC;AAED,SAAS,kBAAkB,CAAC,WAAwB,EAAE,KAA0B;IAC5E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BAAS,CAAC,UAAU,CAAC,EAAE;QACpB;YACI,MAAM,EAAE,CAAC,OAAO,CAAC;YACjB,WAAW,EAAE,4BAAmB;SACnC;KACJ;IACD,CAAC,kBAAS,CAAC,eAAe,CAAC,EAAE,8BAAsB;IACnD,CAAC,kBAAS,CAAC,WAAW,CAAC,EAAE,8BAAsB;IAC/C,CAAC,kBAAS,CAAC,UAAU,CAAC,EAAE,8BAAsB;IAC9C,CAAC,qBAAY,CAAC,SAAS,CAAC,EAAE;QACtB;YACI,MAAM,EAAE,CAAC,OAAO,CAAC;YACjB,WAAW,EAAE,4BAAmB;SACnC;QACD;YACI,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,WAAW,EAAE,uBAAc;YAC3B,MAAM,EAAE,IAAA,0BAAiB,EAAC,CAAC,MAAM,CAAC,CAAC;SACtC;KACJ;IACD,CAAC,kBAAS,CAAC,SAAS,CAAC,EAAE;QACnB;YACI,MAAM,EAAE,CAAC,aAAa,CAAC;YACvB,WAAW,EAAE,uBAAc;YAC3B,MAAM,EAAE,kBAAkB;SAC7B;QACD;YACI,MAAM,EAAE,CAAC,aAAa,CAAC;YACvB,WAAW,EAAE,4BAAmB;YAChC,MAAM,EAAE,uBAAuB;SAClC;KACJ;CACJ,CAAC","sourcesContent":["/* eslint-disable no-param-reassign */\n/* eslint-disable no-not-accumulator-reassign/no-not-accumulator-reassign */\n\nimport {\n BlockType,\n ContentBlockProps,\n ContentItemProps,\n ExtendedFeaturesItem,\n PriceDetailedProps,\n PriceDetailsListProps,\n PriceDetailsSettingsProps,\n PromoFeaturesItem,\n SubBlockType,\n TableProps,\n TitleItemProps,\n} from '../models';\n\nimport {\n Parser,\n Transformer,\n TransformerRaw,\n createItemsParser,\n typografTransformer,\n yfmTransformer,\n} from './common';\n\nfunction parseTableBlock(transformer: Transformer, content: TableProps) {\n const legend = content?.legend;\n\n return {\n ...(content || {}),\n legend: legend && legend.map((string) => transformer(string)),\n };\n}\n\nfunction parseFeatures(transformer: Transformer, items: ExtendedFeaturesItem[]) {\n return items.map(({title, text, ...rest}) => ({\n title: title && transformer(title),\n text: text && transformer(text),\n ...rest,\n }));\n}\n\nfunction parsePromoFeatures(transformer: Transformer, items: PromoFeaturesItem[]) {\n return items.map(({text, ...rest}) => ({\n text: transformer(text),\n ...rest,\n }));\n}\n\nconst parseTitle = (transformer: Transformer, title: TitleItemProps | string) =>\n typeof title === 'object' && 'text' in title\n ? {...title, text: transformer(title.text)}\n : title && transformer(title);\n\nconst parseItemsTitle = (transformer: Transformer, items: ExtendedFeaturesItem[]) =>\n items.map(({title, ...rest}) => ({\n title: title && parseTitle(transformer, title),\n ...rest,\n }));\n\nfunction parsePriceDetailedBlock(transformer: Transformer, block: PriceDetailedProps) {\n const {priceType} = block;\n\n /* eslint-disable no-not-accumulator-reassign/no-not-accumulator-reassign */\n block.items = block.items.map((item) => {\n const {description, items: details = []} = item;\n\n if (priceType === 'marked-list') {\n item.items = (details as PriceDetailsListProps[]).map((detail) => {\n detail.text = detail.text && transformer(detail.text);\n\n return detail;\n });\n } else {\n item.items = (details as PriceDetailsSettingsProps[]).map((detail) => {\n detail.description = detail.description && transformer(detail.description);\n\n return detail;\n });\n }\n\n item.description = transformer(description);\n\n return item;\n });\n /* eslint-enable no-not-accumulator-reassign/no-not-accumulator-reassign */\n\n return block;\n}\n\nconst parseContentLayout = (transformer: Transformer, content: ContentBlockProps) => {\n if (content) {\n const {text, additionalInfo, list} = content;\n\n /* eslint-disable no-not-accumulator-reassign/no-not-accumulator-reassign */\n if (text) {\n content.text = transformer(text);\n }\n\n if (additionalInfo) {\n content.additionalInfo = transformer(additionalInfo);\n }\n\n if (list) {\n content.list = list.map((item) => {\n if (item?.text) {\n return {\n ...item,\n text: transformer(item.text),\n };\n }\n\n return item;\n });\n }\n /* eslint-enable no-not-accumulator-reassign/no-not-accumulator-reassign */\n }\n\n return content;\n};\n\nfunction parseContentLayoutTitle(transformer: Transformer, content: ContentBlockProps) {\n if (content?.title) {\n const {title} = content;\n\n // eslint-disable-next-line no-not-accumulator-reassign/no-not-accumulator-reassign\n content.title = title && parseTitle(transformer, title);\n }\n\n return content;\n}\n\nconst parseBackgroundCardItems = (transformer: Transformer, items: ContentItemProps[]) =>\n items.map(({text, ...rest}) => ({\n text: text && parseTitle(transformer, text),\n ...rest,\n }));\n\nexport const blockHeaderTransformer = [\n {\n fields: ['title'],\n transformer: typografTransformer,\n parser: parseTitle,\n },\n {\n fields: ['description'],\n transformer: yfmTransformer,\n },\n];\n\ninterface BlockConfig {\n transformer: TransformerRaw;\n fields?: string[];\n parser?: Parser;\n}\n\nexport type BlocksConfig = Record<string, BlockConfig | BlockConfig[]>;\n\nexport const config: BlocksConfig = {\n [SubBlockType.BasicCard]: [\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n {\n fields: ['text', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n ],\n [SubBlockType.BackgroundCard]: [\n {\n fields: ['text', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n {\n fields: ['list'],\n parser: parseBackgroundCardItems,\n transformer: typografTransformer,\n },\n ],\n [SubBlockType.ImageCard]: [\n {\n fields: ['text', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n ],\n [SubBlockType.LayoutItem]: [\n {\n fields: ['content'],\n parser: parseContentLayout,\n transformer: yfmTransformer,\n },\n {\n fields: ['content'],\n parser: parseContentLayoutTitle,\n transformer: typografTransformer,\n },\n {\n fields: ['metaInfo'],\n parser: createItemsParser([]),\n transformer: yfmTransformer,\n },\n ],\n [SubBlockType.Quote]: [\n {\n fields: ['text'],\n transformer: typografTransformer,\n },\n {\n fields: ['yfmText'],\n transformer: yfmTransformer,\n },\n ],\n [BlockType.ExtendedFeaturesBlock]: [\n ...blockHeaderTransformer,\n {\n fields: ['items'],\n transformer: typografTransformer,\n parser: createItemsParser(['title']),\n },\n {\n fields: ['items'],\n transformer: yfmTransformer,\n parser: createItemsParser(['text', 'additionalInfo']),\n },\n ],\n [BlockType.PromoFeaturesBlock]: [\n ...blockHeaderTransformer,\n {\n fields: ['items'],\n transformer: yfmTransformer,\n parser: parsePromoFeatures,\n },\n ],\n [BlockType.SliderBlock]: blockHeaderTransformer,\n [BlockType.CompaniesBlock]: blockHeaderTransformer,\n [BlockType.QuestionsBlock]: [\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n {\n fields: ['text', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n {\n fields: ['items'],\n transformer: yfmTransformer,\n parser: parseFeatures,\n },\n ],\n [BlockType.FoldableListBlock]: [\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n {\n fields: ['text', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n {\n fields: ['items'],\n transformer: yfmTransformer,\n parser: parseFeatures,\n },\n ],\n\n [BlockType.BannerBlock]: [\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n {\n fields: ['subtitle'],\n transformer: yfmTransformer,\n },\n ],\n [SubBlockType.BannerCard]: [\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n {\n fields: ['subtitle'],\n transformer: yfmTransformer,\n },\n ],\n [BlockType.MediaBlock]: [\n ...blockHeaderTransformer,\n {\n fields: ['title', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n {\n fields: ['list'],\n transformer: yfmTransformer,\n parser: createItemsParser(['text']),\n },\n ],\n [BlockType.MapBlock]: [\n ...blockHeaderTransformer,\n {\n fields: ['title', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n ],\n [BlockType.TabsBlock]: [\n ...blockHeaderTransformer,\n {\n fields: ['items'],\n transformer: yfmTransformer,\n parser: createItemsParser(['text', 'additionalInfo', 'caption']),\n },\n {\n fields: ['items'],\n transformer: typografTransformer,\n parser: parseItemsTitle,\n },\n ],\n [BlockType.TableBlock]: [\n {\n fields: ['table'],\n transformer: yfmTransformer,\n parser: parseTableBlock,\n },\n ],\n [BlockType.HeaderSliderBlock]: [\n {\n fields: ['items'],\n transformer: typografTransformer,\n parser: createItemsParser(['title', 'overtitle']),\n },\n {\n fields: ['items'],\n transformer: yfmTransformer,\n parser: createItemsParser(['description']),\n },\n ],\n [SubBlockType.PriceDetailed]: [\n {\n transformer: yfmTransformer,\n parser: parsePriceDetailedBlock,\n },\n ],\n [BlockType.HeaderBlock]: [\n {\n fields: ['description', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n ],\n [BlockType.ContentLayoutBlock]: [\n {\n fields: ['textContent'],\n transformer: yfmTransformer,\n parser: parseContentLayout,\n },\n {\n fields: ['textContent'],\n transformer: typografTransformer,\n parser: parseContentLayoutTitle,\n },\n ],\n [SubBlockType.Content]: [\n {\n fields: ['text', 'additionalInfo'],\n transformer: yfmTransformer,\n },\n {\n fields: ['title'],\n transformer: typografTransformer,\n parser: parseTitle,\n },\n {\n fields: ['list'],\n transformer: yfmTransformer,\n parser: createItemsParser(['title', 'text']),\n },\n ],\n [BlockType.InfoBlock]: [\n {\n fields: ['rightContent', 'leftContent'],\n transformer: yfmTransformer,\n parser: parseContentLayout,\n },\n {\n fields: ['rightContent', 'leftContent'],\n transformer: typografTransformer,\n parser: parseContentLayoutTitle,\n },\n ],\n [BlockType.ShareBlock]: [\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n ],\n [BlockType.CardLayoutBlock]: blockHeaderTransformer,\n [BlockType.FilterBlock]: blockHeaderTransformer,\n [BlockType.IconsBlock]: blockHeaderTransformer,\n [SubBlockType.PriceCard]: [\n {\n fields: ['title'],\n transformer: typografTransformer,\n },\n {\n fields: ['list'],\n transformer: yfmTransformer,\n parser: createItemsParser(['text']),\n },\n ],\n [BlockType.FormBlock]: [\n {\n fields: ['textContent'],\n transformer: yfmTransformer,\n parser: parseContentLayout,\n },\n {\n fields: ['textContent'],\n transformer: typografTransformer,\n parser: parseContentLayoutTitle,\n },\n ],\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  import { JSONSchemaType } from 'ajv';
2
- import { ArrayBaseInput, BooleanInput, ConfigInput, NumberInput, ObjectInput, SelectBaseInput, TextAreaInput, TextInput } from "../../common/types/index.js";
2
+ import { ArrayBaseInput, BooleanInput, ConfigInput, NumberInput, ObjectInput, SelectBaseInput, TextAreaInput, TextInput } from "../common/types/index.js";
3
3
  export declare const generateFromAJV: (schema: JSONSchemaType<{}>) => ConfigInput[];
4
4
  export declare const generateSingleEntity: (key: string, schema: JSONSchemaType<{}>) => TextInput | BooleanInput | NumberInput | TextAreaInput | SelectBaseInput | ObjectInput | ArrayBaseInput | {
5
5
  type: string;
@@ -54,6 +54,33 @@ const generateSingleEntity = (key, schema) => {
54
54
  }),
55
55
  };
56
56
  }
57
+ if (schema.anyOf) {
58
+ return {
59
+ type: 'anyOf',
60
+ name: key,
61
+ title: key,
62
+ options: schema.anyOf.map((item) => {
63
+ let properties;
64
+ if (item.properties) {
65
+ properties = (0, exports.generateFromAJV)(item);
66
+ }
67
+ else {
68
+ properties = [
69
+ (0, exports.generateSingleEntity)('', {
70
+ ...item,
71
+ name: '',
72
+ title: item.optionName,
73
+ }),
74
+ ];
75
+ }
76
+ return {
77
+ value: item.optionName,
78
+ title: item.optionName,
79
+ properties: properties,
80
+ };
81
+ }),
82
+ };
83
+ }
57
84
  switch (type) {
58
85
  case 'string': {
59
86
  if (schema.inputType === 'textarea') {
@@ -1 +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,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G;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"]}
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,GA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AU,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;AAlJW,QAAA,oBAAoB,wBAkJ/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 if (schema.anyOf) {\n return {\n type: 'anyOf',\n name: key,\n title: key,\n options: schema.anyOf.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,6 +5,7 @@ export interface HubspotEventData {
5
5
  id: string;
6
6
  data?: unknown;
7
7
  }
8
+ export type HubspotFormDefaultValues = Record<string, string | number | boolean>;
8
9
  export declare function isHubspotEventData(maybeData: unknown): maybeData is HubspotEventData;
9
10
  export interface HubspotEventHandlers {
10
11
  onBeforeLoad?: (arg: HubspotEventData) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"hubspot.js","sourceRoot":"../../../src","sources":["utils/hubspot.ts"],"names":[],"m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QAAQ,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,CAAC;gBAChC,MAAM;YACV,CAAC;YACD,KAAK,iBAAiB,CAAC,CAAC,CAAC;gBACrB,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC;gBAC1B,MAAM;YACV,CAAC;YACD,KAAK,aAAa,CAAC,CAAC,CAAC;gBACjB,QAAQ,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC;gBAC/B,MAAM;YACV,CAAC;YACD;gBACI,MAAM;QACd,CAAC;IACL,CAAC,CAAC;AACN,CAAC","sourcesContent":["export type HubspotEventName =\n | 'onBeforeFormInit'\n | 'onFormReady'\n | 'onFormSubmit'\n | 'onFormSubmitted'\n | 'onFormError'\n | `_${string}`;\n\nexport interface HubspotEventData {\n type: HubspotEventName | string;\n eventName: HubspotEventName;\n id: string;\n data?: unknown;\n}\n\nexport function isHubspotEventData(maybeData: unknown): maybeData is HubspotEventData {\n return (\n typeof maybeData === 'object' &&\n maybeData !== null &&\n 'type' in maybeData &&\n (maybeData as Record<string, unknown>)['type'] === 'hsFormCallback'\n );\n}\n\nexport interface HubspotEventHandlers {\n onBeforeLoad?: (arg: HubspotEventData) => void;\n onBeforeSubmit?: (arg: HubspotEventData) => void;\n onSubmit?: (arg: HubspotEventData) => void;\n onLoad?: (arg: HubspotEventData) => void;\n onSubmitError?: (arg: HubspotEventData) => void;\n}\n\nexport function loopBackHabspotEvents(formId: string) {\n return ({data, source, origin}: MessageEvent): void => {\n if (!isHubspotEventData(data)) {\n return;\n }\n\n if (data.id !== formId) {\n return;\n }\n\n if (source === window) {\n return;\n }\n\n (source as Window | null)?.postMessage(data, origin);\n };\n}\n\nexport function handleHubspotEvents(handlers: HubspotEventHandlers, formId: string) {\n return ({data}: MessageEvent): void => {\n if (!isHubspotEventData(data)) {\n return;\n }\n\n if (data.id !== formId) {\n return;\n }\n\n switch (data.eventName) {\n case 'onBeforeFormInit': {\n handlers.onBeforeLoad?.(data);\n break;\n }\n case 'onFormReady': {\n handlers.onLoad?.(data);\n break;\n }\n case 'onFormSubmit': {\n handlers.onBeforeSubmit?.(data);\n break;\n }\n case 'onFormSubmitted': {\n handlers.onSubmit?.(data);\n break;\n }\n case 'onFormError': {\n handlers.onSubmitError?.(data);\n break;\n }\n default:\n break;\n }\n };\n}\n"]}
1
+ {"version":3,"file":"hubspot.js","sourceRoot":"../../../src","sources":["utils/hubspot.ts"],"names":[],"mappings":";;AAiBA,gDAOC;AAUD,sDAgBC;AAED,kDAmCC;AAtED,SAAgB,kBAAkB,CAAC,SAAkB;IACjD,OAAO,CACH,OAAO,SAAS,KAAK,QAAQ;QAC7B,SAAS,KAAK,IAAI;QAClB,MAAM,IAAI,SAAS;QAClB,SAAqC,CAAC,MAAM,CAAC,KAAK,gBAAgB,CACtE,CAAC;AACN,CAAC;AAUD,SAAgB,qBAAqB,CAAC,MAAc;IAChD,OAAO,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAe,EAAQ,EAAE;QAClD,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,OAAO;QACX,CAAC;QAED,IAAI,IAAI,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;YACrB,OAAO;QACX,CAAC;QAED,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;YACpB,OAAO;QACX,CAAC;QAEA,MAAwB,EAAE,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACzD,CAAC,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,QAA8B,EAAE,MAAc;IAC9E,OAAO,CAAC,EAAC,IAAI,EAAe,EAAQ,EAAE;QAClC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,OAAO;QACX,CAAC;QAED,IAAI,IAAI,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;YACrB,OAAO;QACX,CAAC;QAED,QAAQ,IAAI,CAAC,SAAS,EAAE,CAAC;YACrB,KAAK,kBAAkB,CAAC,CAAC,CAAC;gBACtB,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC;gBAC9B,MAAM;YACV,CAAC;YACD,KAAK,aAAa,CAAC,CAAC,CAAC;gBACjB,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC;gBACxB,MAAM;YACV,CAAC;YACD,KAAK,cAAc,CAAC,CAAC,CAAC;gBAClB,QAAQ,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,CAAC;gBAChC,MAAM;YACV,CAAC;YACD,KAAK,iBAAiB,CAAC,CAAC,CAAC;gBACrB,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC;gBAC1B,MAAM;YACV,CAAC;YACD,KAAK,aAAa,CAAC,CAAC,CAAC;gBACjB,QAAQ,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC;gBAC/B,MAAM;YACV,CAAC;YACD;gBACI,MAAM;QACd,CAAC;IACL,CAAC,CAAC;AACN,CAAC","sourcesContent":["export type HubspotEventName =\n | 'onBeforeFormInit'\n | 'onFormReady'\n | 'onFormSubmit'\n | 'onFormSubmitted'\n | 'onFormError'\n | `_${string}`;\n\nexport interface HubspotEventData {\n type: HubspotEventName | string;\n eventName: HubspotEventName;\n id: string;\n data?: unknown;\n}\n\nexport type HubspotFormDefaultValues = Record<string, string | number | boolean>;\n\nexport function isHubspotEventData(maybeData: unknown): maybeData is HubspotEventData {\n return (\n typeof maybeData === 'object' &&\n maybeData !== null &&\n 'type' in maybeData &&\n (maybeData as Record<string, unknown>)['type'] === 'hsFormCallback'\n );\n}\n\nexport interface HubspotEventHandlers {\n onBeforeLoad?: (arg: HubspotEventData) => void;\n onBeforeSubmit?: (arg: HubspotEventData) => void;\n onSubmit?: (arg: HubspotEventData) => void;\n onLoad?: (arg: HubspotEventData) => void;\n onSubmitError?: (arg: HubspotEventData) => void;\n}\n\nexport function loopBackHabspotEvents(formId: string) {\n return ({data, source, origin}: MessageEvent): void => {\n if (!isHubspotEventData(data)) {\n return;\n }\n\n if (data.id !== formId) {\n return;\n }\n\n if (source === window) {\n return;\n }\n\n (source as Window | null)?.postMessage(data, origin);\n };\n}\n\nexport function handleHubspotEvents(handlers: HubspotEventHandlers, formId: string) {\n return ({data}: MessageEvent): void => {\n if (!isHubspotEventData(data)) {\n return;\n }\n\n if (data.id !== formId) {\n return;\n }\n\n switch (data.eventName) {\n case 'onBeforeFormInit': {\n handlers.onBeforeLoad?.(data);\n break;\n }\n case 'onFormReady': {\n handlers.onLoad?.(data);\n break;\n }\n case 'onFormSubmit': {\n handlers.onBeforeSubmit?.(data);\n break;\n }\n case 'onFormSubmitted': {\n handlers.onSubmit?.(data);\n break;\n }\n case 'onFormError': {\n handlers.onSubmitError?.(data);\n break;\n }\n default:\n break;\n }\n };\n}\n"]}
@@ -5,7 +5,7 @@ const BannerBlockConfig = {
5
5
  component: BannerBlock,
6
6
  schema: {
7
7
  name: 'Banner Block',
8
- group: 'block',
8
+ group: '@gravity-ui/page-constructor/Blocks',
9
9
  inputs: generateFromAJV(BannerCardProps),
10
10
  default: {
11
11
  color: 'rgba(54, 151, 241, 0.4)',
@@ -1 +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"]}
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,qCAAqC;QAC5C,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: '@gravity-ui/page-constructor/Blocks',\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"]}
@@ -1,4 +1,4 @@
1
- import { ConfigInput } from "../../../common/types/index.js";
1
+ import { ConfigInput } from "../../common/types/index.js";
2
2
  import { BlockData } from "../../constructor-items.js";
3
3
  export declare const blockConfig: ConfigInput[];
4
4
  declare const CardLayoutBlockConfig: BlockData;
@@ -151,7 +151,7 @@ const CardLayoutBlockConfig = {
151
151
  component: CardLayout,
152
152
  schema: {
153
153
  name: 'Card Layout Block',
154
- group: 'card-containers',
154
+ group: '@gravity-ui/page-constructor/Card Containers',
155
155
  inputs: generateFromAJV(CardLayoutProps),
156
156
  default: {
157
157
  type: 'card-layout-block',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/CardLayout/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,gBAAgB,EAAE,QAAQ,EAAC,0CAAuC;AAC1E,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,UAAU,wBAAqB;AACtC,OAAO,EAAC,eAAe,EAAC,oBAAiB;AAEzC,MAAM,YAAY,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,WAAW,GAAkB;IACtC;QACI,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE;YACL;gBACI,KAAK,EAAE,QAAQ;gBACf,KAAK,EAAE,QAAQ;gBACf,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,EAAE;wBACR,KAAK,EAAE,OAAO;qBACjB;iBACJ;aACJ;YACD;g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AC;QACzE,OAAO,EAAE;YACL,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE;gBACN;oBACI,IAAI,EAAE,iBAAiB;oBACvB,KAAK,EAAE,oCAAoC;oBAC3C,IAAI,EAAE,qOAAqO;iBAC9O;gBACD;oBACI,IAAI,EAAE,iBAAiB;oBACvB,KAAK,EAAE,oCAAoC;oBAC3C,IAAI,EAAE,qOAAqO;iBAC9O;gBACD;oBACI,IAAI,EAAE,iBAAiB;oBACvB,KAAK,EAAE,oCAAoC;oBAC3C,IAAI,EAAE,qOAAqO;iBAC9O;aACJ;YACD,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EACP,6HAA6H;SACpI;QACD,UAAU,EAAE,4EAA4E;KAC3F;CACJ,CAAC;AAEF,eAAe,qBAAqB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {ConfigInput} from '../../../common/types';\nimport {BlockData} from '../../constructor-items';\nimport {sliderSizesArray, textSize} from '../../schema/validators/common';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport CardLayout from './CardLayout';\nimport {CardLayoutProps} from './schema';\n\nconst textSizeEnum = textSize.map((size) => ({value: size, content: size}));\n\nexport const blockConfig: ConfigInput[] = [\n {\n type: 'oneOf',\n name: 'title',\n title: 'Title Object',\n options: [\n {\n title: 'Simple',\n value: 'simple',\n properties: [\n {\n type: 'text',\n name: '',\n title: 'Title',\n },\n ],\n },\n {\n title: 'Complex',\n value: 'complex',\n properties: [\n {\n type: 'text',\n name: 'text',\n title: 'Title',\n },\n {\n type: 'select',\n name: 'textSize',\n title: 'Text Size',\n enum: textSizeEnum,\n view: 'select',\n mode: 'single',\n },\n {\n type: 'text',\n name: 'url',\n title: 'Url',\n },\n {\n type: 'text',\n name: 'urlTitle',\n title: 'Url',\n },\n {\n type: 'boolean',\n name: 'resetMargin',\n title: 'Reset Margin',\n },\n ],\n },\n ],\n },\n {\n type: 'textarea',\n name: 'description',\n title: 'Description',\n },\n {\n type: 'boolean',\n name: 'dots',\n title: 'With dots',\n },\n {\n type: 'boolean',\n name: 'arrows',\n title: 'With Arrows',\n },\n {\n type: 'boolean',\n name: 'randomOrder',\n title: 'Random Order',\n },\n {\n type: 'number',\n name: 'autoplay',\n title: 'Autoplay',\n },\n {\n type: 'object',\n name: 'disclaimer',\n title: 'Disclaimer',\n properties: [\n {\n type: 'text',\n name: 'text',\n title: 'Text',\n },\n {\n type: 'select',\n name: 'size',\n title: 'Size',\n enum: textSizeEnum,\n view: 'select',\n mode: 'single',\n },\n ],\n },\n {\n type: 'oneOf',\n name: 'slidesToShow',\n title: 'Slides to Show',\n options: [\n {\n title: 'Simple',\n value: 'simple',\n properties: [\n {\n type: 'number',\n name: '',\n title: 'Slides',\n },\n ],\n },\n {\n title: 'Complex',\n value: 'complex',\n properties: sliderSizesArray.reduce((acc, size) => {\n acc.push({type: 'number', name: size, title: size});\n return acc;\n }, [] as Array<ConfigInput>),\n },\n ],\n },\n {\n type: 'array',\n name: 'array',\n title: 'Array Properties',\n buttonText: 'Add new',\n arrayType: 'object',\n properties: [\n {\n type: 'text',\n name: 'text',\n title: 'Property',\n },\n {\n type: 'boolean',\n name: 'boolean',\n title: 'Property',\n },\n ],\n },\n];\n\nconst CardLayoutBlockConfig: BlockData = {\n component: CardLayout,\n schema: {\n name: 'Card Layout Block',\n group: 'card-containers',\n inputs: generateFromAJV(CardLayoutProps as unknown as JSONSchemaType<{}>),\n default: {\n type: 'card-layout-block',\n children: [\n {\n type: 'background-card',\n title: 'Tell a story and build a narrative',\n text: 'We are all storytellers. Stories are a powerful way to communicate ideas and share information. The right story can lead to a better understanding of a situation, make us laugh, or even inspire us to do something in the future.',\n },\n {\n type: 'background-card',\n title: 'Tell a story and build a narrative',\n text: 'We are all storytellers. Stories are a powerful way to communicate ideas and share information. The right story can lead to a better understanding of a situation, make us laugh, or even inspire us to do something in the future.',\n },\n {\n type: 'background-card',\n title: 'Tell a story and build a narrative',\n text: 'We are all storytellers. Stories are a powerful way to communicate ideas and share information. The right story can lead to a better understanding of a situation, make us laugh, or even inspire us to do something in the future.',\n },\n ],\n title: 'Card Layout Block',\n description:\n 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n previewImg: 'https://storage.cloud-preprod.yandex.net/qradle-test/card-layout-block.svg',\n },\n};\n\nexport default CardLayoutBlockConfig;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/CardLayout/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,gBAAgB,EAAE,QAAQ,EAAC,0CAAuC;AAC1E,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,UAAU,wBAAqB;AACtC,OAAO,EAAC,eAAe,EAAC,oBAAiB;AAEzC,MAAM,YAAY,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,WAAW,GAAkB;IACtC;QACI,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE;YACL;gBACI,KAAK,EAAE,QAAQ;gBACf,KAAK,EAAE,QAAQ;gBACf,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,EAAE;wBACR,KAAK,EAAE,OAAO;qBACjB;iBACJ;aACJ;YACD;gBACI,KAAK,EAAE,SAAS;gBAChB,KAAK,EAAE,SAAS;gBAChB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,OAAO;qBACjB;oBACD;wBACI,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,UAAU;wBAChB,KAAK,EAAE,WAAW;wBAClB,IAAI,EAAE,YAAY;wBAClB,IAAI,EA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I,EAAE,iBAAiB;oBACvB,KAAK,EAAE,oCAAoC;oBAC3C,IAAI,EAAE,qOAAqO;iBAC9O;aACJ;YACD,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EACP,6HAA6H;SACpI;QACD,UAAU,EAAE,4EAA4E;KAC3F;CACJ,CAAC;AAEF,eAAe,qBAAqB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {ConfigInput} from '../../common/types';\nimport {BlockData} from '../../constructor-items';\nimport {sliderSizesArray, textSize} from '../../schema/validators/common';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport CardLayout from './CardLayout';\nimport {CardLayoutProps} from './schema';\n\nconst textSizeEnum = textSize.map((size) => ({value: size, content: size}));\n\nexport const blockConfig: ConfigInput[] = [\n {\n type: 'oneOf',\n name: 'title',\n title: 'Title Object',\n options: [\n {\n title: 'Simple',\n value: 'simple',\n properties: [\n {\n type: 'text',\n name: '',\n title: 'Title',\n },\n ],\n },\n {\n title: 'Complex',\n value: 'complex',\n properties: [\n {\n type: 'text',\n name: 'text',\n title: 'Title',\n },\n {\n type: 'select',\n name: 'textSize',\n title: 'Text Size',\n enum: textSizeEnum,\n view: 'select',\n mode: 'single',\n },\n {\n type: 'text',\n name: 'url',\n title: 'Url',\n },\n {\n type: 'text',\n name: 'urlTitle',\n title: 'Url',\n },\n {\n type: 'boolean',\n name: 'resetMargin',\n title: 'Reset Margin',\n },\n ],\n },\n ],\n },\n {\n type: 'textarea',\n name: 'description',\n title: 'Description',\n },\n {\n type: 'boolean',\n name: 'dots',\n title: 'With dots',\n },\n {\n type: 'boolean',\n name: 'arrows',\n title: 'With Arrows',\n },\n {\n type: 'boolean',\n name: 'randomOrder',\n title: 'Random Order',\n },\n {\n type: 'number',\n name: 'autoplay',\n title: 'Autoplay',\n },\n {\n type: 'object',\n name: 'disclaimer',\n title: 'Disclaimer',\n properties: [\n {\n type: 'text',\n name: 'text',\n title: 'Text',\n },\n {\n type: 'select',\n name: 'size',\n title: 'Size',\n enum: textSizeEnum,\n view: 'select',\n mode: 'single',\n },\n ],\n },\n {\n type: 'oneOf',\n name: 'slidesToShow',\n title: 'Slides to Show',\n options: [\n {\n title: 'Simple',\n value: 'simple',\n properties: [\n {\n type: 'number',\n name: '',\n title: 'Slides',\n },\n ],\n },\n {\n title: 'Complex',\n value: 'complex',\n properties: sliderSizesArray.reduce((acc, size) => {\n acc.push({type: 'number', name: size, title: size});\n return acc;\n }, [] as Array<ConfigInput>),\n },\n ],\n },\n {\n type: 'array',\n name: 'array',\n title: 'Array Properties',\n buttonText: 'Add new',\n arrayType: 'object',\n properties: [\n {\n type: 'text',\n name: 'text',\n title: 'Property',\n },\n {\n type: 'boolean',\n name: 'boolean',\n title: 'Property',\n },\n ],\n },\n];\n\nconst CardLayoutBlockConfig: BlockData = {\n component: CardLayout,\n schema: {\n name: 'Card Layout Block',\n group: '@gravity-ui/page-constructor/Card Containers',\n inputs: generateFromAJV(CardLayoutProps as unknown as JSONSchemaType<{}>),\n default: {\n type: 'card-layout-block',\n children: [\n {\n type: 'background-card',\n title: 'Tell a story and build a narrative',\n text: 'We are all storytellers. Stories are a powerful way to communicate ideas and share information. The right story can lead to a better understanding of a situation, make us laugh, or even inspire us to do something in the future.',\n },\n {\n type: 'background-card',\n title: 'Tell a story and build a narrative',\n text: 'We are all storytellers. Stories are a powerful way to communicate ideas and share information. The right story can lead to a better understanding of a situation, make us laugh, or even inspire us to do something in the future.',\n },\n {\n type: 'background-card',\n title: 'Tell a story and build a narrative',\n text: 'We are all storytellers. Stories are a powerful way to communicate ideas and share information. The right story can lead to a better understanding of a situation, make us laugh, or even inspire us to do something in the future.',\n },\n ],\n title: 'Card Layout Block',\n description:\n 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n previewImg: 'https://storage.cloud-preprod.yandex.net/qradle-test/card-layout-block.svg',\n },\n};\n\nexport default CardLayoutBlockConfig;\n"]}
@@ -5,7 +5,7 @@ const CompaniesBlockConfig = {
5
5
  component: CompaniesBlock,
6
6
  schema: {
7
7
  name: 'Companies Block',
8
- group: 'block',
8
+ group: '@gravity-ui/page-constructor/Blocks',
9
9
  inputs: generateFromAJV(CompaniesBlockSchema['companies-block']),
10
10
  default: {
11
11
  title: 'Companies Block',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/Companies/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,cAAc,uBAAoB;AACzC,OAAO,EAAC,cAAc,IAAI,oBAAoB,EAAC,oBAAiB;AAEhE,MAAM,oBAAoB,GAAc;IACpC,SAAS,EAAE,cAAc;IACzB,MAAM,EAAE;QACJ,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,eAAe,CACnB,oBAAoB,CAAC,iBAAiB,CAAkC,CAC3E;QACD,OAAO,EAAE;YACL,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,kBAAkB;SAClC;KACJ;CACJ,CAAC;AAEF,eAAe,oBAAoB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport CompaniesBlock from './Companies';\nimport {CompaniesBlock as CompaniesBlockSchema} from './schema';\n\nconst CompaniesBlockConfig: BlockData = {\n component: CompaniesBlock,\n schema: {\n name: 'Companies Block',\n group: 'block',\n inputs: generateFromAJV(\n CompaniesBlockSchema['companies-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n title: 'Companies Block',\n description: 'Here is the list',\n },\n },\n};\n\nexport default CompaniesBlockConfig;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/Companies/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,cAAc,uBAAoB;AACzC,OAAO,EAAC,cAAc,IAAI,oBAAoB,EAAC,oBAAiB;AAEhE,MAAM,oBAAoB,GAAc;IACpC,SAAS,EAAE,cAAc;IACzB,MAAM,EAAE;QACJ,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,qCAAqC;QAC5C,MAAM,EAAE,eAAe,CACnB,oBAAoB,CAAC,iBAAiB,CAAkC,CAC3E;QACD,OAAO,EAAE;YACL,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,kBAAkB;SAClC;KACJ;CACJ,CAAC;AAEF,eAAe,oBAAoB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {BlockData} from '../../constructor-items';\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport CompaniesBlock from './Companies';\nimport {CompaniesBlock as CompaniesBlockSchema} from './schema';\n\nconst CompaniesBlockConfig: BlockData = {\n component: CompaniesBlock,\n schema: {\n name: 'Companies Block',\n group: '@gravity-ui/page-constructor/Blocks',\n inputs: generateFromAJV(\n CompaniesBlockSchema['companies-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n title: 'Companies Block',\n description: 'Here is the list',\n },\n },\n};\n\nexport default CompaniesBlockConfig;\n"]}
@@ -3,7 +3,7 @@ declare const ContentLayoutBlockConfig: {
3
3
  schema: {
4
4
  name: string;
5
5
  group: string;
6
- inputs: import("../../../common/types/index.js").ConfigInput[];
6
+ inputs: import("../../editor-v2/index.js").ConfigInput[];
7
7
  default: {
8
8
  textContent: {
9
9
  title: string;
@@ -5,7 +5,7 @@ const ContentLayoutBlockConfig = {
5
5
  component: ContentLayoutBlock,
6
6
  schema: {
7
7
  name: 'Content Layout Block',
8
- group: 'block',
8
+ group: '@gravity-ui/page-constructor/Blocks',
9
9
  inputs: generateFromAJV(ContentLayoutBlockSchema['content-layout-block']),
10
10
  default: {
11
11
  textContent: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/ContentLayout/index.ts"],"names":[],"mappings":"AAEA,OA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AAE,aAAa;oBACpB,IAAI,EAAE,kUAAkU;iBAC3U;gBACD;oBACI,IAAI,EAAE,kUAAkU;iBAC3U;gBACD;oBACI,KAAK,EAAE,mBAAmB;iBAC7B;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,eAAe,wBAAwB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport ContentLayoutBlock from './ContentLayout';\nimport {ContentLayoutBlock as ContentLayoutBlockSchema} from './schema';\n\nconst ContentLayoutBlockConfig = {\n component: ContentLayoutBlock,\n schema: {\n name: 'Content Layout Block',\n group: 'block',\n inputs: generateFromAJV(\n ContentLayoutBlockSchema['content-layout-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n textContent: {\n title: 'Lorem ipsum dolor sit amet',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n additionalInfo:\n 'Duis aute irure dolor in reprehenderit n voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n buttons: [\n {\n text: 'Button',\n theme: 'action',\n url: 'https://example.com',\n },\n {\n text: 'Button',\n theme: 'outlined',\n url: 'https://example.com',\n },\n ],\n links: [\n {\n url: 'https://example.com',\n text: 'Link',\n theme: 'normal',\n arrow: true,\n },\n ],\n fileContent: [\n {\n href: 'https://example.xls',\n text: 'File xls',\n },\n {\n href: 'https://example.fig',\n text: 'File PNG, JPG, and SVG format',\n },\n {\n href: 'https://example.pdf',\n text: 'Pdf file',\n },\n {\n href: 'https://example.zip',\n text: 'Archive file',\n },\n {\n href: 'https://example.doc',\n text: 'Microsoft Word document',\n },\n {\n href: 'https://example.ppt',\n text: 'PPT file',\n },\n ],\n list: [\n {\n title: 'Lorem ipsum',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n title: 'Lorem ipsum ipsum',\n },\n ],\n },\n },\n};\n\nexport default ContentLayoutBlockConfig;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/ContentLayout/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,kBAAkB,2BAAwB;AACjD,OAAO,EAAC,kBAAkB,IAAI,wBAAwB,EAAC,oBAAiB;AAExE,MAAM,wBAAwB,GAAG;IAC7B,SAAS,EAAE,kBAAkB;IAC7B,MAAM,EAAE;QACJ,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,qCAAqC;QAC5C,MAAM,EAAE,eAAe,CACnB,wBAAwB,CAAC,sBAAsB,CAAkC,CACpF;QACD,OAAO,EAAE;YACL,WAAW,EAAE;gBACT,KAAK,EAAE,4BAA4B;gBACnC,IAAI,EAAE,kUAAkU;aAC3U;YACD,cAAc,EACV,uGAAuG;YAC3G,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,QAAQ;oBACf,GAAG,EAAE,qBAAqB;iBAC7B;gBACD;oBACI,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,UAAU;oBACjB,GAAG,EAAE,qBAAqB;iBAC7B;aACJ;YACD,KAAK,EAAE;gBACH;oBACI,GAAG,EAAE,qBAAqB;oBAC1B,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,QAAQ;oBACf,KAAK,EAAE,IAAI;iBACd;aACJ;YACD,WAAW,EAAE;gBACT;oBACI,IAAI,EAAE,qBAAqB;oBAC3B,IAAI,EAAE,UAAU;iBACnB;gBACD;oBACI,IAAI,EAAE,qBAAqB;oBAC3B,IAAI,EAAE,+BAA+B;iBACxC;gBACD;oBACI,IAAI,EAAE,qBAAqB;oBAC3B,IAAI,EAAE,UAAU;iBACnB;gBACD;oBACI,IAAI,EAAE,qBAAqB;oBAC3B,IAAI,EAAE,cAAc;iBACvB;gBACD;oBACI,IAAI,EAAE,qBAAqB;oBAC3B,IAAI,EAAE,yBAAyB;iBAClC;gBACD;oBACI,IAAI,EAAE,qBAAqB;oBAC3B,IAAI,EAAE,UAAU;iBACnB;aACJ;YACD,IAAI,EAAE;gBACF;oBACI,KAAK,EAAE,aAAa;oBACpB,IAAI,EAAE,kUAAkU;iBAC3U;gBACD;oBACI,IAAI,EAAE,kUAAkU;iBAC3U;gBACD;oBACI,KAAK,EAAE,mBAAmB;iBAC7B;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,eAAe,wBAAwB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport ContentLayoutBlock from './ContentLayout';\nimport {ContentLayoutBlock as ContentLayoutBlockSchema} from './schema';\n\nconst ContentLayoutBlockConfig = {\n component: ContentLayoutBlock,\n schema: {\n name: 'Content Layout Block',\n group: '@gravity-ui/page-constructor/Blocks',\n inputs: generateFromAJV(\n ContentLayoutBlockSchema['content-layout-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n textContent: {\n title: 'Lorem ipsum dolor sit amet',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n additionalInfo:\n 'Duis aute irure dolor in reprehenderit n voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n buttons: [\n {\n text: 'Button',\n theme: 'action',\n url: 'https://example.com',\n },\n {\n text: 'Button',\n theme: 'outlined',\n url: 'https://example.com',\n },\n ],\n links: [\n {\n url: 'https://example.com',\n text: 'Link',\n theme: 'normal',\n arrow: true,\n },\n ],\n fileContent: [\n {\n href: 'https://example.xls',\n text: 'File xls',\n },\n {\n href: 'https://example.fig',\n text: 'File PNG, JPG, and SVG format',\n },\n {\n href: 'https://example.pdf',\n text: 'Pdf file',\n },\n {\n href: 'https://example.zip',\n text: 'Archive file',\n },\n {\n href: 'https://example.doc',\n text: 'Microsoft Word document',\n },\n {\n href: 'https://example.ppt',\n text: 'PPT file',\n },\n ],\n list: [\n {\n title: 'Lorem ipsum',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n title: 'Lorem ipsum ipsum',\n },\n ],\n },\n },\n};\n\nexport default ContentLayoutBlockConfig;\n"]}
@@ -3,7 +3,7 @@ declare const ExtendedFeaturesBlockConfig: {
3
3
  schema: {
4
4
  name: string;
5
5
  group: string;
6
- inputs: import("../../../common/types/index.js").ConfigInput[];
6
+ inputs: import("../../editor-v2/index.js").ConfigInput[];
7
7
  default: {
8
8
  type: string;
9
9
  title: {
@@ -5,7 +5,7 @@ const ExtendedFeaturesBlockConfig = {
5
5
  component: ExtendedFeaturesBlock,
6
6
  schema: {
7
7
  name: 'Extended Features Block',
8
- group: 'block',
8
+ group: '@gravity-ui/page-constructor/Blocks',
9
9
  inputs: generateFromAJV(ExtendedFeaturesBlockSchema['extended-features-block']),
10
10
  default: {
11
11
  type: 'extended-features-block',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/ExtendedFeatures/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,qBAAqB,8BAA2B;AACvD,OAAO,EAAC,qBAAqB,IAAI,2BAA2B,EAAC,oBAAiB;AAE9E,MAAM,2BAA2B,GAAG;IAChC,SAAS,EAAE,qBAAqB;IAChC,MAAM,EAAE;QACJ,IAAI,EAAE,yBAAyB;QAC/B,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,eAAe,CACnB,2BAA2B,CAAC,yBAAyB,CAAkC,CAC1F;QACD,OAAO,EAAE;YACL,IAAI,EAAE,yBAAyB;YAC/B,KAAK,EAAE;gBACH,IAAI,EAAE,4BAA4B;gBAClC,QAAQ,EAAE,GAAG;aAChB;YACD,WAAW,EACP,2GAA2G;YAC/G,KAAK,EAAE;gBACH;oBACI,KAAK,EAAE,kCAAkC;oBACzC,IAAI,EAAE,+FAA+F;oBACrG,cAAc,EACV,uGAAuG;iBAC9G;gBACD;oBACI,KAAK,EAAE,uBAAuB;oBAC9B,IAAI,EAAE,+FAA+F;oBACrG,OAAO,EAAE;wBACL;4BACI,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,QAAQ;4BACf,GAAG,EAAE,qBAAqB;yBAC7B;wBACD;4BACI,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,UAAU;4BACjB,GAAG,EAAE,qBAAqB;yBAC7B;qBACJ;iBACJ;gBACD;oBACI,KAAK,EAAE,kCAAkC;oBACzC,IAAI,EAAE,+FAA+F;oBACrG,KAAK,EAAE;wBACH;4BACI,IAAI,EAAE,IAAI;4BACV,GAAG,EAAE,GAAG;4BACR,KAAK,EAAE,IAAI;4BACX,KAAK,EAAE,QAAQ;yBAClB;qBACJ;iBACJ;gBACD;oBACI,KAAK,EAAE,kCAAkC;oBACzC,IAAI,EAAE,+FAA+F;oBACrG,IAAI,EAAE;wBACF;4BACI,KAAK,EAAE,aAAa;4BACpB,IAAI,EAAE,kUAAkU;yBAC3U;wBACD;4BACI,KAAK,EAAE,mBAAmB;4BAC1B,IAAI,EAAE,kUAAkU;yBAC3U;wBACD;4BACI,KAAK,EAAE,aAAa;4BACpB,IAAI,EAAE,kUAAkU;yBAC3U;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,eAAe,2BAA2B,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport ExtendedFeaturesBlock from './ExtendedFeatures';\nimport {ExtendedFeaturesBlock as ExtendedFeaturesBlockSchema} from './schema';\n\nconst ExtendedFeaturesBlockConfig = {\n component: ExtendedFeaturesBlock,\n schema: {\n name: 'Extended Features Block',\n group: 'block',\n inputs: generateFromAJV(\n ExtendedFeaturesBlockSchema['extended-features-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n type: 'extended-features-block',\n title: {\n text: 'Lorem ipsum dolor sit amet',\n textSize: 'm',\n },\n description:\n 'Three cards in a row on the desktop, two cards in a row on a tablet, one card in a row on a mobile phone.',\n items: [\n {\n title: 'Sed do eiusmod tempor incididunt',\n text: 'Ut enim ad minim veniam quis nostrud ullamco laboris nisi ut aliquip ex ea commodo consequat.',\n additionalInfo:\n 'Duis aute irure dolor in reprehenderit n voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n },\n {\n title: 'Sed do eiusmod tempor',\n text: 'Ut enim ad minim veniam quis nostrud ullamco laboris nisi ut aliquip ex ea commodo consequat.',\n buttons: [\n {\n text: 'Button',\n theme: 'action',\n url: 'https://example.com',\n },\n {\n text: 'Button',\n theme: 'outlined',\n url: 'https://example.com',\n },\n ],\n },\n {\n title: 'Sed do eiusmod tempor incididunt',\n text: 'Ut enim ad minim veniam quis nostrud ullamco laboris nisi ut aliquip ex ea commodo consequat.',\n links: [\n {\n text: 'Go',\n url: '#',\n arrow: true,\n theme: 'normal',\n },\n ],\n },\n {\n title: 'Sed do eiusmod tempor incididunt',\n text: 'Ut enim ad minim veniam quis nostrud ullamco laboris nisi ut aliquip ex ea commodo consequat.',\n list: [\n {\n title: 'Lorem ipsum',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n title: 'Lorem ipsum ipsum',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n title: 'Lorem ipsum',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n ],\n },\n ],\n },\n },\n};\n\nexport default ExtendedFeaturesBlockConfig;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/ExtendedFeatures/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,qBAAqB,8BAA2B;AACvD,OAAO,EAAC,qBAAqB,IAAI,2BAA2B,EAAC,oBAAiB;AAE9E,MAAM,2BAA2B,GAAG;IAChC,SAAS,EAAE,qBAAqB;IAChC,MAAM,EAAE;QACJ,IAAI,EAAE,yBAAyB;QAC/B,KA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../../utils/form-generator';\n\nimport ExtendedFeaturesBlock from './ExtendedFeatures';\nimport {ExtendedFeaturesBlock as ExtendedFeaturesBlockSchema} from './schema';\n\nconst ExtendedFeaturesBlockConfig = {\n component: ExtendedFeaturesBlock,\n schema: {\n name: 'Extended Features Block',\n group: '@gravity-ui/page-constructor/Blocks',\n inputs: generateFromAJV(\n ExtendedFeaturesBlockSchema['extended-features-block'] as unknown as JSONSchemaType<{}>,\n ),\n default: {\n type: 'extended-features-block',\n title: {\n text: 'Lorem ipsum dolor sit amet',\n textSize: 'm',\n },\n description:\n 'Three cards in a row on the desktop, two cards in a row on a tablet, one card in a row on a mobile phone.',\n items: [\n {\n title: 'Sed do eiusmod tempor incididunt',\n text: 'Ut enim ad minim veniam quis nostrud ullamco laboris nisi ut aliquip ex ea commodo consequat.',\n additionalInfo:\n 'Duis aute irure dolor in reprehenderit n voluptate velit esse cillum dolore eu fugiat nulla pariatur.',\n },\n {\n title: 'Sed do eiusmod tempor',\n text: 'Ut enim ad minim veniam quis nostrud ullamco laboris nisi ut aliquip ex ea commodo consequat.',\n buttons: [\n {\n text: 'Button',\n theme: 'action',\n url: 'https://example.com',\n },\n {\n text: 'Button',\n theme: 'outlined',\n url: 'https://example.com',\n },\n ],\n },\n {\n title: 'Sed do eiusmod tempor incididunt',\n text: 'Ut enim ad minim veniam quis nostrud ullamco laboris nisi ut aliquip ex ea commodo consequat.',\n links: [\n {\n text: 'Go',\n url: '#',\n arrow: true,\n theme: 'normal',\n },\n ],\n },\n {\n title: 'Sed do eiusmod tempor incididunt',\n text: 'Ut enim ad minim veniam quis nostrud ullamco laboris nisi ut aliquip ex ea commodo consequat.',\n list: [\n {\n title: 'Lorem ipsum',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n title: 'Lorem ipsum ipsum',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n {\n title: 'Lorem ipsum',\n text: 'Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',\n },\n ],\n },\n ],\n },\n },\n};\n\nexport default ExtendedFeaturesBlockConfig;\n"]}
@@ -3,7 +3,7 @@ declare const FilterBlockConfig: {
3
3
  schema: {
4
4
  name: string;
5
5
  group: string;
6
- inputs: import("../../../common/types/index.js").ConfigInput[];
6
+ inputs: import("../../editor-v2/index.js").ConfigInput[];
7
7
  default: {
8
8
  allTag: boolean;
9
9
  description: string;
@@ -5,7 +5,7 @@ const FilterBlockConfig = {
5
5
  component: FilterBlock,
6
6
  schema: {
7
7
  name: 'Filter Block',
8
- group: 'block',
8
+ group: '@gravity-ui/page-constructor/Blocks',
9
9
  inputs: generateFromAJV(FilterProps),
10
10
  default: {
11
11
  allTag: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/FilterBlock/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,WAAW,yBAAsB;AACxC,OAAO,EAAC,WAAW,EAAC,oBAAiB;AAErC,MAAM,iBAAiB,GAAG;IACtB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE;QACJ,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,eAAe,CAAC,WAA4C,CAAC;QACrE,OAAO,EAAE;YACL,MAAM,EAAE,I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EAAE,wBAAwB;iBAClC;gBACD;oBACI,EAAE,EAAE,OAAO;oBACX,KAAK,EAAE,uBAAuB;iBACjC;aACJ;YACD,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,cAAc;SACvB;KACJ;CACJ,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport FilterBlock from './FilterBlock';\nimport {FilterProps} from './schema';\n\nconst FilterBlockConfig = {\n component: FilterBlock,\n schema: {\n name: 'Filter Block',\n group: 'block',\n inputs: generateFromAJV(FilterProps as unknown as JSONSchemaType<{}>),\n default: {\n allTag: true,\n description:\n 'Three cards in a row on the desktop, two cards in a row on a tablet, one card in a row on a mobile phone.',\n items: [\n {\n card: {\n content: {\n title: 'Layout Item 1',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n type: 'layout-item',\n },\n tags: ['one'],\n },\n {\n card: {\n content: {\n title: 'Layout Item 2',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n type: 'layout-item',\n },\n tags: ['two'],\n },\n {\n card: {\n content: {\n title: 'Layout Item 3',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n type: 'layout-item',\n },\n tags: ['three'],\n },\n {\n card: {\n content: {\n title: 'Layout Item 4',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n type: 'layout-item',\n },\n tags: ['one'],\n },\n {\n card: {\n content: {\n title: 'Layout Item 5',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n type: 'layout-item',\n },\n tags: ['two'],\n },\n {\n card: {\n content: {\n title: 'Layout Item 6',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n type: 'layout-item',\n },\n tags: ['three'],\n },\n ],\n tags: [\n {\n id: 'one',\n label: 'First very long label',\n },\n {\n id: 'two',\n label: 'Second very long label',\n },\n {\n id: 'three',\n label: 'Third very long label',\n },\n ],\n title: 'Card Layout',\n type: 'filter-block',\n },\n },\n};\n\nexport default FilterBlockConfig;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/FilterBlock/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,sCAAmC;AAE3D,OAAO,WAAW,yBAAsB;AACxC,OAAO,EAAC,WAAW,EAAC,oBAAiB;AAErC,MAAM,iBAAiB,GAAG;IACtB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE;QACJ,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,qCAAqC;QAC5C,MAAM,EAAE,eAAe,CAAC,WAA4C,CAAC;QACrE,OAAO,EAAE;YACL,MAAM,EAAE,IAAI;YACZ,WAAW,EACP,2GAA2G;YAC/G,KAAK,EAAE;gBACH;oBACI,IAAI,EAAE;wBACF,OAAO,EAAE;4BACL,KAAK,EAAE,eAAe;4BACtB,IAAI,EAAE,6HAA6H;yBACtI;wBACD,IAAI,EAAE,aAAa;qBACtB;oBACD,IAAI,EAAE,CAAC,KAAK,CAAC;iBAChB;gBACD;oBACI,IAAI,EAAE;wBACF,OAAO,EAAE;4BACL,KAAK,EAAE,eAAe;4BACtB,IAAI,EAAE,6HAA6H;yBACtI;wBACD,IAAI,EAAE,aAAa;qBACtB;oBACD,IAAI,EAAE,CAAC,KAAK,CAAC;iBAChB;gBACD;oBACI,IAAI,EAAE;wBACF,OAAO,EAAE;4BACL,KAAK,EAAE,eAAe;4BACtB,IAAI,EAAE,6HAA6H;yBACtI;wBACD,IAAI,EAAE,aAAa;qBACtB;oBACD,IAAI,EAAE,CAAC,OAAO,CAAC;iBAClB;gBACD;oBACI,IAAI,EAAE;wBACF,OAAO,EAAE;4BACL,KAAK,EAAE,eAAe;4BACtB,IAAI,EAAE,6HAA6H;yBACtI;wBACD,IAAI,EAAE,aAAa;qBACtB;oBACD,IAAI,EAAE,CAAC,KAAK,CAAC;iBAChB;gBACD;oBACI,IAAI,EAAE;wBACF,OAAO,EAAE;4BACL,KAAK,EAAE,eAAe;4BACtB,IAAI,EAAE,6HAA6H;yBACtI;wBACD,IAAI,EAAE,aAAa;qBACtB;oBACD,IAAI,EAAE,CAAC,KAAK,CAAC;iBAChB;gBACD;oBACI,IAAI,EAAE;wBACF,OAAO,EAAE;4BACL,KAAK,EAAE,eAAe;4BACtB,IAAI,EAAE,6HAA6H;yBACtI;wBACD,IAAI,EAAE,aAAa;qBACtB;oBACD,IAAI,EAAE,CAAC,OAAO,CAAC;iBAClB;aACJ;YACD,IAAI,EAAE;gBACF;oBACI,EAAE,EAAE,KAAK;oBACT,KAAK,EAAE,uBAAuB;iBACjC;gBACD;oBACI,EAAE,EAAE,KAAK;oBACT,KAAK,EAAE,wBAAwB;iBAClC;gBACD;oBACI,EAAE,EAAE,OAAO;oBACX,KAAK,EAAE,uBAAuB;iBACjC;aACJ;YACD,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,cAAc;SACvB;KACJ;CACJ,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import {JSONSchemaType} from 'ajv';\n\nimport {generateFromAJV} from '../../utils/form-generator';\n\nimport FilterBlock from './FilterBlock';\nimport {FilterProps} from './schema';\n\nconst FilterBlockConfig = {\n component: FilterBlock,\n schema: {\n name: 'Filter Block',\n group: '@gravity-ui/page-constructor/Blocks',\n inputs: generateFromAJV(FilterProps as unknown as JSONSchemaType<{}>),\n default: {\n allTag: true,\n description:\n 'Three cards in a row on the desktop, two cards in a row on a tablet, one card in a row on a mobile phone.',\n items: [\n {\n card: {\n content: {\n title: 'Layout Item 1',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n type: 'layout-item',\n },\n tags: ['one'],\n },\n {\n card: {\n content: {\n title: 'Layout Item 2',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n type: 'layout-item',\n },\n tags: ['two'],\n },\n {\n card: {\n content: {\n title: 'Layout Item 3',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n type: 'layout-item',\n },\n tags: ['three'],\n },\n {\n card: {\n content: {\n title: 'Layout Item 4',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n type: 'layout-item',\n },\n tags: ['one'],\n },\n {\n card: {\n content: {\n title: 'Layout Item 5',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n type: 'layout-item',\n },\n tags: ['two'],\n },\n {\n card: {\n content: {\n title: 'Layout Item 6',\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',\n },\n type: 'layout-item',\n },\n tags: ['three'],\n },\n ],\n tags: [\n {\n id: 'one',\n label: 'First very long label',\n },\n {\n id: 'two',\n label: 'Second very long label',\n },\n {\n id: 'three',\n label: 'Third very long label',\n },\n ],\n title: 'Card Layout',\n type: 'filter-block',\n },\n },\n};\n\nexport default FilterBlockConfig;\n"]}
@@ -0,0 +1,13 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .pc-FoldableList__title {
4
+ top: calc(var(--header-height) + 32px);
5
+ position: sticky;
6
+ margin-bottom: 32px;
7
+ margin-right: 64px;
8
+ }
9
+ @media (max-width: 769px) {
10
+ .pc-FoldableList__title {
11
+ margin-right: 0;
12
+ }
13
+ }
@@ -0,0 +1,4 @@
1
+ import { FoldableListProps } from "../../models/index.js";
2
+ import './FoldableList.css';
3
+ declare const FoldableListBlock: (props: FoldableListProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default FoldableListBlock;
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { Col, Row } from "../../grid/index.js";
4
+ import { Content } from "../../sub-blocks/index.js";
5
+ import { block } from "../../utils/index.js";
6
+ import { FoldableListBlockItem } from "./FoldableListBlockItem/FoldableListBlockItem.js";
7
+ import './FoldableList.css';
8
+ const b = block('FoldableList');
9
+ const FoldableListBlock = (props) => {
10
+ const { title, text, additionalInfo, links, buttons, items, list } = props;
11
+ const [opened, setOpened] = React.useState([0]);
12
+ const toggleItem = (index) => {
13
+ let newState;
14
+ if (opened.includes(index)) {
15
+ newState = opened.filter((itemIndex) => itemIndex !== index);
16
+ }
17
+ else {
18
+ newState = [...opened, index];
19
+ }
20
+ setOpened(newState);
21
+ };
22
+ return (_jsx("div", { className: b(), itemScope: true, children: _jsxs(Row, { children: [_jsx(Col, { sizes: { all: 12, md: 4 }, children: _jsx("div", { className: b('title'), children: _jsx(Content, { title: title, text: text, additionalInfo: additionalInfo, links: links, list: list, buttons: buttons, colSizes: { all: 12, md: 12 } }) }) }), _jsx(Col, { sizes: { all: 12, md: 8 }, role: 'list', children: items.map(({ title: itemTitle, text: itemText, link, listStyle = 'dash' }, index) => {
23
+ const isOpened = opened.includes(index);
24
+ const onClick = () => toggleItem(index);
25
+ return (_jsx(FoldableListBlockItem, { title: itemTitle, text: itemText, link: link, listStyle: listStyle, isOpened: isOpened, onClick: onClick }, itemTitle));
26
+ }) })] }) }));
27
+ };
28
+ export default FoldableListBlock;
29
+ //# sourceMappingURL=FoldableList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FoldableList.js","sourceRoot":"../../../../src","sources":["blocks/Fo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ACJ,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,GAC7B,GACA,GACJ,EACN,KAAC,GAAG,IAAC,KAAK,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAC,EAAE,IAAI,EAAE,MAAM,YACrC,KAAK,CAAC,GAAG,CACN,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,EAAC,EAAE,KAAK,EAAE,EAAE;wBACpE,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;wBACxC,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;wBAExC,OAAO,CACH,KAAC,qBAAqB,IAElB,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,IANX,SAAS,CAOhB,CACL,CAAC;oBACN,CAAC,CACJ,GACC,IACJ,GACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Col, Row} from '../../grid';\nimport {FoldableListProps} from '../../models';\nimport {Content} from '../../sub-blocks';\nimport {block} from '../../utils';\n\nimport {FoldableListBlockItem} from './FoldableListBlockItem/FoldableListBlockItem';\n\nimport './FoldableList.scss';\n\nconst b = block('FoldableList');\n\nconst FoldableListBlock = (props: FoldableListProps) => {\n const {title, text, additionalInfo, links, buttons, items, list} = props;\n const [opened, setOpened] = React.useState<number[]>([0]);\n\n const toggleItem = (index: number) => {\n let newState;\n\n if (opened.includes(index)) {\n newState = opened.filter((itemIndex: number) => itemIndex !== index);\n } else {\n newState = [...opened, index];\n }\n\n setOpened(newState);\n };\n\n return (\n <div className={b()} itemScope>\n <Row>\n <Col sizes={{all: 12, md: 4}}>\n <div className={b('title')}>\n <Content\n title={title}\n text={text}\n additionalInfo={additionalInfo}\n links={links}\n list={list}\n buttons={buttons}\n colSizes={{all: 12, md: 12}}\n />\n </div>\n </Col>\n <Col sizes={{all: 12, md: 8}} role={'list'}>\n {items.map(\n ({title: itemTitle, text: itemText, link, listStyle = 'dash'}, index) => {\n const isOpened = opened.includes(index);\n const onClick = () => toggleItem(index);\n\n return (\n <FoldableListBlockItem\n key={itemTitle}\n title={itemTitle}\n text={itemText}\n link={link}\n listStyle={listStyle}\n isOpened={isOpened}\n onClick={onClick}\n />\n );\n },\n )}\n </Col>\n </Row>\n </div>\n );\n};\n\nexport default FoldableListBlock;\n"]}