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

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 (482) hide show
  1. package/build/cjs/blocks/CardLayout/index.d.ts +1 -1
  2. package/build/cjs/blocks/CardLayout/index.js.map +1 -1
  3. package/build/cjs/blocks/ContentLayout/index.d.ts +1 -1
  4. package/build/cjs/blocks/ExtendedFeatures/index.d.ts +1 -1
  5. package/build/cjs/blocks/FilterBlock/index.d.ts +1 -1
  6. package/build/cjs/blocks/Form/index.d.ts +1 -1
  7. package/build/cjs/blocks/Header/dynamic-form.d.ts +1 -1
  8. package/build/cjs/blocks/Header/dynamic-form.js.map +1 -1
  9. package/build/cjs/blocks/Header/index.d.ts +1 -1
  10. package/build/cjs/blocks/HeaderSlider/index.d.ts +1 -1
  11. package/build/cjs/blocks/Icons/index.d.ts +1 -1
  12. package/build/cjs/blocks/Info/index.d.ts +1 -1
  13. package/build/cjs/blocks/Map/index.d.ts +1 -1
  14. package/build/cjs/blocks/Media/index.d.ts +1 -1
  15. package/build/cjs/blocks/PromoFeaturesBlock/index.d.ts +1 -1
  16. package/build/cjs/blocks/Questions/index.d.ts +1 -1
  17. package/build/cjs/blocks/Share/index.d.ts +1 -1
  18. package/build/cjs/blocks/Slider/dynamic-form.d.ts +1 -1
  19. package/build/cjs/blocks/Slider/dynamic-form.js.map +1 -1
  20. package/build/cjs/blocks/Slider/index.d.ts +1 -1
  21. package/build/cjs/blocks/Table/index.d.ts +1 -1
  22. package/build/cjs/blocks/Tabs/index.d.ts +1 -1
  23. package/build/cjs/blocks/TestEditorBlock/form.d.ts +1 -1
  24. package/build/cjs/blocks/TestEditorBlock/form.js.map +1 -1
  25. package/build/cjs/blocks/TestEditorBlock/index.d.ts +1 -1
  26. package/build/cjs/common/postMessage.d.ts +4 -0
  27. package/build/cjs/common/postMessage.js +31 -0
  28. package/build/cjs/common/postMessage.js.map +1 -0
  29. package/build/cjs/common/store.d.ts +40 -0
  30. package/build/cjs/common/store.js +20 -0
  31. package/build/cjs/common/store.js.map +1 -0
  32. package/build/cjs/common/types/actions.d.ts +36 -0
  33. package/build/cjs/common/types/actions.js +3 -0
  34. package/build/cjs/common/types/actions.js.map +1 -0
  35. package/build/cjs/common/types/common.d.ts +5 -0
  36. package/build/cjs/common/types/common.js +3 -0
  37. package/build/cjs/common/types/common.js.map +1 -0
  38. package/build/cjs/common/types/forms.d.ts +97 -0
  39. package/build/cjs/common/types/forms.js +3 -0
  40. package/build/cjs/common/types/forms.js.map +1 -0
  41. package/build/cjs/common/types/index.d.ts +4 -0
  42. package/build/cjs/common/types/index.js +8 -0
  43. package/build/cjs/common/types/index.js.map +1 -0
  44. package/build/cjs/common/types/messages.d.ts +9 -0
  45. package/build/cjs/common/types/messages.js +3 -0
  46. package/build/cjs/common/types/messages.js.map +1 -0
  47. package/build/cjs/common/utils.d.ts +25 -0
  48. package/build/cjs/common/utils.js +22 -0
  49. package/build/cjs/common/utils.js.map +1 -0
  50. package/build/cjs/components/Image/dynamic-form.d.ts +1 -1
  51. package/build/cjs/components/Image/dynamic-form.js.map +1 -1
  52. package/build/cjs/constructor-items.d.ts +1 -1
  53. package/build/cjs/constructor-items.js.map +1 -1
  54. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.d.ts +1 -1
  55. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.js +1 -1
  56. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.js.map +1 -1
  57. package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.js +1 -1
  58. package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.js.map +1 -1
  59. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.css +0 -0
  60. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.d.ts +9 -0
  61. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.js +115 -0
  62. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.js.map +1 -0
  63. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +76 -0
  64. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +12 -0
  65. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +27 -0
  66. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.js.map +1 -0
  67. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.css +37 -0
  68. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +11 -0
  69. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.js +68 -0
  70. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.js.map +1 -0
  71. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +10 -0
  72. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +22 -0
  73. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js.map +1 -0
  74. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.css +3 -0
  75. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.d.ts +8 -0
  76. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js +13 -0
  77. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js.map +1 -0
  78. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +8 -0
  79. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.js +16 -0
  80. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.js.map +1 -0
  81. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +10 -0
  82. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.js +12 -0
  83. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.js.map +1 -0
  84. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +6 -0
  85. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +9 -0
  86. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +35 -0
  87. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js.map +1 -0
  88. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.css +3 -0
  89. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.d.ts +11 -0
  90. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.js +14 -0
  91. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.js.map +1 -0
  92. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +8 -0
  93. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.js +13 -0
  94. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.js.map +1 -0
  95. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +8 -0
  96. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +13 -0
  97. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js.map +1 -0
  98. package/build/cjs/editor-v2/components/DynamicForm/utils.d.ts +3 -0
  99. package/build/cjs/editor-v2/components/DynamicForm/utils.js +23 -0
  100. package/build/cjs/editor-v2/components/DynamicForm/utils.js.map +1 -0
  101. package/build/cjs/editor-v2/components/Panels/Panels.css +24 -0
  102. package/build/cjs/editor-v2/components/Panels/Panels.d.ts +8 -0
  103. package/build/cjs/editor-v2/components/Panels/Panels.js +28 -0
  104. package/build/cjs/editor-v2/components/Panels/Panels.js.map +1 -0
  105. package/build/cjs/editor-v2/components/Sidebar/Sidebar.css +14 -0
  106. package/build/cjs/editor-v2/components/Sidebar/Sidebar.d.ts +10 -0
  107. package/build/cjs/editor-v2/components/Sidebar/Sidebar.js +13 -0
  108. package/build/cjs/editor-v2/components/Sidebar/Sidebar.js.map +1 -0
  109. package/build/cjs/editor-v2/components/Tabs/Tabs.css +31 -0
  110. package/build/cjs/editor-v2/components/Tabs/Tabs.d.ts +13 -0
  111. package/build/cjs/editor-v2/components/Tabs/Tabs.js +32 -0
  112. package/build/cjs/editor-v2/components/Tabs/Tabs.js.map +1 -0
  113. package/build/cjs/editor-v2/constants.d.ts +1 -0
  114. package/build/cjs/editor-v2/constants.js +5 -0
  115. package/build/cjs/editor-v2/constants.js.map +1 -0
  116. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.css +22 -0
  117. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.d.ts +4 -0
  118. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js +58 -0
  119. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js.map +1 -0
  120. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.css +20 -0
  121. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.d.ts +5 -0
  122. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.js +28 -0
  123. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.js.map +1 -0
  124. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.css +52 -0
  125. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.d.ts +2 -0
  126. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.js +43 -0
  127. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.js.map +1 -0
  128. package/build/cjs/editor-v2/containers/Editor/Editor.css +38 -0
  129. package/build/cjs/editor-v2/containers/Editor/Editor.d.ts +21 -0
  130. package/build/cjs/editor-v2/containers/Editor/Editor.js +41 -0
  131. package/build/cjs/editor-v2/containers/Editor/Editor.js.map +1 -0
  132. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.css +9 -0
  133. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.d.ts +5 -0
  134. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.js +17 -0
  135. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.js.map +1 -0
  136. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.css +49 -0
  137. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.d.ts +7 -0
  138. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.js +34 -0
  139. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.js.map +1 -0
  140. package/build/cjs/editor-v2/containers/Overlay/Overlay.css +64 -0
  141. package/build/cjs/editor-v2/containers/Overlay/Overlay.d.ts +6 -0
  142. package/build/cjs/editor-v2/containers/Overlay/Overlay.js +90 -0
  143. package/build/cjs/editor-v2/containers/Overlay/Overlay.js.map +1 -0
  144. package/build/cjs/editor-v2/containers/Source/Source.css +14 -0
  145. package/build/cjs/editor-v2/containers/Source/Source.d.ts +2 -0
  146. package/build/cjs/editor-v2/containers/Source/Source.js +28 -0
  147. package/build/cjs/editor-v2/containers/Source/Source.js.map +1 -0
  148. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.css +37 -0
  149. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.d.ts +6 -0
  150. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.js +41 -0
  151. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.js.map +1 -0
  152. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.css +3 -0
  153. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.d.ts +7 -0
  154. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js +18 -0
  155. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js.map +1 -0
  156. package/build/cjs/editor-v2/containers/Tree/DragContext.css +25 -0
  157. package/build/cjs/editor-v2/containers/Tree/DragContext.d.ts +14 -0
  158. package/build/cjs/editor-v2/containers/Tree/DragContext.js +49 -0
  159. package/build/cjs/editor-v2/containers/Tree/DragContext.js.map +1 -0
  160. package/build/cjs/editor-v2/containers/Tree/Tree.css +10 -0
  161. package/build/cjs/editor-v2/containers/Tree/Tree.d.ts +2 -0
  162. package/build/cjs/editor-v2/containers/Tree/Tree.js +36 -0
  163. package/build/cjs/editor-v2/containers/Tree/Tree.js.map +1 -0
  164. package/build/cjs/editor-v2/containers/Tree/TreeContent.css +12 -0
  165. package/build/cjs/editor-v2/containers/Tree/TreeContent.d.ts +16 -0
  166. package/build/cjs/editor-v2/containers/Tree/TreeContent.js +61 -0
  167. package/build/cjs/editor-v2/containers/Tree/TreeContent.js.map +1 -0
  168. package/build/cjs/editor-v2/containers/Tree/TreeItem.css +50 -0
  169. package/build/cjs/editor-v2/containers/Tree/TreeItem.d.ts +13 -0
  170. package/build/cjs/editor-v2/containers/Tree/TreeItem.js +144 -0
  171. package/build/cjs/editor-v2/containers/Tree/TreeItem.js.map +1 -0
  172. package/build/cjs/editor-v2/containers/Tree/index.d.ts +4 -0
  173. package/build/cjs/editor-v2/containers/Tree/index.js +10 -0
  174. package/build/cjs/editor-v2/containers/Tree/index.js.map +1 -0
  175. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.css +13 -0
  176. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.d.ts +3 -0
  177. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.js +54 -0
  178. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.js.map +1 -0
  179. package/build/cjs/editor-v2/containers/index.d.ts +7 -0
  180. package/build/cjs/editor-v2/containers/index.js +19 -0
  181. package/build/cjs/editor-v2/containers/index.js.map +1 -0
  182. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.d.ts +7 -0
  183. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.js +10 -0
  184. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.js.map +1 -0
  185. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.d.ts +5 -0
  186. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.js +35 -0
  187. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.js.map +1 -0
  188. package/build/cjs/editor-v2/context/editorStore/index.d.ts +2 -0
  189. package/build/cjs/editor-v2/context/editorStore/index.js +6 -0
  190. package/build/cjs/editor-v2/context/editorStore/index.js.map +1 -0
  191. package/build/cjs/editor-v2/context/iframeContext/IframeContext.d.ts +12 -0
  192. package/build/cjs/editor-v2/context/iframeContext/IframeContext.js +14 -0
  193. package/build/cjs/editor-v2/context/iframeContext/IframeContext.js.map +1 -0
  194. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.d.ts +7 -0
  195. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.js +21 -0
  196. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.js.map +1 -0
  197. package/build/cjs/editor-v2/context/iframeContext/index.d.ts +2 -0
  198. package/build/cjs/editor-v2/context/iframeContext/index.js +6 -0
  199. package/build/cjs/editor-v2/context/iframeContext/index.js.map +1 -0
  200. package/build/cjs/editor-v2/hooks/index.d.ts +2 -0
  201. package/build/cjs/editor-v2/hooks/index.js +8 -0
  202. package/build/cjs/editor-v2/hooks/index.js.map +1 -0
  203. package/build/cjs/editor-v2/hooks/useEditorTabs.d.ts +16 -0
  204. package/build/cjs/editor-v2/hooks/useEditorTabs.js +77 -0
  205. package/build/cjs/editor-v2/hooks/useEditorTabs.js.map +1 -0
  206. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.d.ts +2 -0
  207. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js +31 -0
  208. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js.map +1 -0
  209. package/build/cjs/editor-v2/hooks/useMainEditorStore.d.ts +1 -0
  210. package/build/cjs/editor-v2/hooks/useMainEditorStore.js +13 -0
  211. package/build/cjs/editor-v2/hooks/useMainEditorStore.js.map +1 -0
  212. package/build/cjs/editor-v2/hooks/usePostMessageEvents.d.ts +6 -0
  213. package/build/cjs/editor-v2/hooks/usePostMessageEvents.js +19 -0
  214. package/build/cjs/editor-v2/hooks/usePostMessageEvents.js.map +1 -0
  215. package/build/cjs/editor-v2/index.d.ts +5 -0
  216. package/build/cjs/editor-v2/index.js +9 -0
  217. package/build/cjs/editor-v2/index.js.map +1 -0
  218. package/build/cjs/editor-v2/store.d.ts +48 -0
  219. package/build/cjs/editor-v2/store.js +181 -0
  220. package/build/cjs/editor-v2/store.js.map +1 -0
  221. package/build/cjs/editor-v2/styles/mixins.css +0 -0
  222. package/build/cjs/editor-v2/styles/root.css +9 -0
  223. package/build/cjs/editor-v2/styles/variables.css +0 -0
  224. package/build/cjs/editor-v2/utils/cn.d.ts +2 -0
  225. package/build/cjs/editor-v2/utils/cn.js +7 -0
  226. package/build/cjs/editor-v2/utils/cn.js.map +1 -0
  227. package/build/cjs/editor-v2/utils/code.d.ts +6 -0
  228. package/build/cjs/editor-v2/utils/code.js +13 -0
  229. package/build/cjs/editor-v2/utils/code.js.map +1 -0
  230. package/build/cjs/editor-v2/utils/index.d.ts +20 -0
  231. package/build/cjs/editor-v2/utils/index.js +161 -0
  232. package/build/cjs/editor-v2/utils/index.js.map +1 -0
  233. package/build/cjs/hooks/usePCEditorInitializeEvents.js.map +1 -1
  234. package/build/cjs/hooks/usePCEditorStore.d.ts +1 -1
  235. package/build/cjs/hooks/usePostMessageAPI.d.ts +1 -1
  236. package/build/cjs/hooks/usePostMessageAPI.js.map +1 -1
  237. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.d.ts +1 -1
  238. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.js.map +1 -1
  239. package/build/cjs/utils/form-generator.d.ts +1 -1
  240. package/build/cjs/utils/form-generator.js.map +1 -1
  241. package/build/esm/blocks/CardLayout/index.d.ts +1 -1
  242. package/build/esm/blocks/CardLayout/index.js.map +1 -1
  243. package/build/esm/blocks/ContentLayout/index.d.ts +1 -1
  244. package/build/esm/blocks/ExtendedFeatures/index.d.ts +1 -1
  245. package/build/esm/blocks/FilterBlock/index.d.ts +1 -1
  246. package/build/esm/blocks/Form/index.d.ts +1 -1
  247. package/build/esm/blocks/Header/dynamic-form.d.ts +1 -1
  248. package/build/esm/blocks/Header/dynamic-form.js.map +1 -1
  249. package/build/esm/blocks/Header/index.d.ts +1 -1
  250. package/build/esm/blocks/HeaderSlider/index.d.ts +1 -1
  251. package/build/esm/blocks/Icons/index.d.ts +1 -1
  252. package/build/esm/blocks/Info/index.d.ts +1 -1
  253. package/build/esm/blocks/Map/index.d.ts +1 -1
  254. package/build/esm/blocks/Media/index.d.ts +1 -1
  255. package/build/esm/blocks/PromoFeaturesBlock/index.d.ts +1 -1
  256. package/build/esm/blocks/Questions/index.d.ts +1 -1
  257. package/build/esm/blocks/Share/index.d.ts +1 -1
  258. package/build/esm/blocks/Slider/dynamic-form.d.ts +1 -1
  259. package/build/esm/blocks/Slider/dynamic-form.js.map +1 -1
  260. package/build/esm/blocks/Slider/index.d.ts +1 -1
  261. package/build/esm/blocks/Table/index.d.ts +1 -1
  262. package/build/esm/blocks/Tabs/index.d.ts +1 -1
  263. package/build/esm/blocks/TestEditorBlock/form.d.ts +1 -1
  264. package/build/esm/blocks/TestEditorBlock/form.js.map +1 -1
  265. package/build/esm/blocks/TestEditorBlock/index.d.ts +1 -1
  266. package/build/esm/common/postMessage.d.ts +4 -0
  267. package/build/esm/common/postMessage.js +25 -0
  268. package/build/esm/common/postMessage.js.map +1 -0
  269. package/build/esm/common/store.d.ts +40 -0
  270. package/build/esm/common/store.js +17 -0
  271. package/build/esm/common/store.js.map +1 -0
  272. package/build/esm/common/types/actions.d.ts +36 -0
  273. package/build/esm/common/types/actions.js +2 -0
  274. package/build/esm/common/types/actions.js.map +1 -0
  275. package/build/esm/common/types/common.d.ts +5 -0
  276. package/build/esm/common/types/common.js +2 -0
  277. package/build/esm/common/types/common.js.map +1 -0
  278. package/build/esm/common/types/forms.d.ts +97 -0
  279. package/build/esm/common/types/forms.js +2 -0
  280. package/build/esm/common/types/forms.js.map +1 -0
  281. package/build/esm/common/types/index.d.ts +4 -0
  282. package/build/esm/common/types/index.js +5 -0
  283. package/build/esm/common/types/index.js.map +1 -0
  284. package/build/esm/common/types/messages.d.ts +9 -0
  285. package/build/esm/common/types/messages.js +2 -0
  286. package/build/esm/common/types/messages.js.map +1 -0
  287. package/build/esm/common/utils.d.ts +25 -0
  288. package/build/esm/common/utils.js +17 -0
  289. package/build/esm/common/utils.js.map +1 -0
  290. package/build/esm/components/Image/dynamic-form.d.ts +1 -1
  291. package/build/esm/components/Image/dynamic-form.js.map +1 -1
  292. package/build/esm/constructor-items.d.ts +1 -1
  293. package/build/esm/constructor-items.js.map +1 -1
  294. package/build/esm/context/editorStoreContext/PCEditorStoreContext.d.ts +1 -1
  295. package/build/esm/context/editorStoreContext/PCEditorStoreContext.js +1 -1
  296. package/build/esm/context/editorStoreContext/PCEditorStoreContext.js.map +1 -1
  297. package/build/esm/context/editorStoreContext/PCEditorStoreProvider.js +1 -1
  298. package/build/esm/context/editorStoreContext/PCEditorStoreProvider.js.map +1 -1
  299. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.css +0 -0
  300. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.d.ts +10 -0
  301. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.js +113 -0
  302. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.js.map +1 -0
  303. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +76 -0
  304. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +13 -0
  305. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +25 -0
  306. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.js.map +1 -0
  307. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.css +37 -0
  308. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +12 -0
  309. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.js +66 -0
  310. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.js.map +1 -0
  311. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +10 -0
  312. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +19 -0
  313. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js.map +1 -0
  314. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.css +3 -0
  315. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.d.ts +9 -0
  316. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js +11 -0
  317. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js.map +1 -0
  318. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +8 -0
  319. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.js +13 -0
  320. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.js.map +1 -0
  321. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +10 -0
  322. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.js +9 -0
  323. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.js.map +1 -0
  324. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +6 -0
  325. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +10 -0
  326. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +33 -0
  327. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js.map +1 -0
  328. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.css +3 -0
  329. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.d.ts +12 -0
  330. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.js +12 -0
  331. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.js.map +1 -0
  332. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +8 -0
  333. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.js +10 -0
  334. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.js.map +1 -0
  335. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +8 -0
  336. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +10 -0
  337. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js.map +1 -0
  338. package/build/esm/editor-v2/components/DynamicForm/utils.d.ts +3 -0
  339. package/build/esm/editor-v2/components/DynamicForm/utils.js +17 -0
  340. package/build/esm/editor-v2/components/DynamicForm/utils.js.map +1 -0
  341. package/build/esm/editor-v2/components/Panels/Panels.css +24 -0
  342. package/build/esm/editor-v2/components/Panels/Panels.d.ts +9 -0
  343. package/build/esm/editor-v2/components/Panels/Panels.js +24 -0
  344. package/build/esm/editor-v2/components/Panels/Panels.js.map +1 -0
  345. package/build/esm/editor-v2/components/Sidebar/Sidebar.css +14 -0
  346. package/build/esm/editor-v2/components/Sidebar/Sidebar.d.ts +11 -0
  347. package/build/esm/editor-v2/components/Sidebar/Sidebar.js +9 -0
  348. package/build/esm/editor-v2/components/Sidebar/Sidebar.js.map +1 -0
  349. package/build/esm/editor-v2/components/Tabs/Tabs.css +31 -0
  350. package/build/esm/editor-v2/components/Tabs/Tabs.d.ts +14 -0
  351. package/build/esm/editor-v2/components/Tabs/Tabs.js +30 -0
  352. package/build/esm/editor-v2/components/Tabs/Tabs.js.map +1 -0
  353. package/build/esm/editor-v2/constants.d.ts +1 -0
  354. package/build/esm/editor-v2/constants.js +2 -0
  355. package/build/esm/editor-v2/constants.js.map +1 -0
  356. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.css +22 -0
  357. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.d.ts +5 -0
  358. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js +56 -0
  359. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js.map +1 -0
  360. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.css +20 -0
  361. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.d.ts +6 -0
  362. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.js +26 -0
  363. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.js.map +1 -0
  364. package/build/esm/editor-v2/containers/BlocksList/BlocksList.css +52 -0
  365. package/build/esm/editor-v2/containers/BlocksList/BlocksList.d.ts +3 -0
  366. package/build/esm/editor-v2/containers/BlocksList/BlocksList.js +41 -0
  367. package/build/esm/editor-v2/containers/BlocksList/BlocksList.js.map +1 -0
  368. package/build/esm/editor-v2/containers/Editor/Editor.css +38 -0
  369. package/build/esm/editor-v2/containers/Editor/Editor.d.ts +22 -0
  370. package/build/esm/editor-v2/containers/Editor/Editor.js +37 -0
  371. package/build/esm/editor-v2/containers/Editor/Editor.js.map +1 -0
  372. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.css +9 -0
  373. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.d.ts +6 -0
  374. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.js +15 -0
  375. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.js.map +1 -0
  376. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.css +49 -0
  377. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.d.ts +8 -0
  378. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.js +32 -0
  379. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.js.map +1 -0
  380. package/build/esm/editor-v2/containers/Overlay/Overlay.css +64 -0
  381. package/build/esm/editor-v2/containers/Overlay/Overlay.d.ts +7 -0
  382. package/build/esm/editor-v2/containers/Overlay/Overlay.js +88 -0
  383. package/build/esm/editor-v2/containers/Overlay/Overlay.js.map +1 -0
  384. package/build/esm/editor-v2/containers/Source/Source.css +14 -0
  385. package/build/esm/editor-v2/containers/Source/Source.d.ts +3 -0
  386. package/build/esm/editor-v2/containers/Source/Source.js +26 -0
  387. package/build/esm/editor-v2/containers/Source/Source.js.map +1 -0
  388. package/build/esm/editor-v2/containers/SourceCode/SourceCode.css +37 -0
  389. package/build/esm/editor-v2/containers/SourceCode/SourceCode.d.ts +7 -0
  390. package/build/esm/editor-v2/containers/SourceCode/SourceCode.js +39 -0
  391. package/build/esm/editor-v2/containers/SourceCode/SourceCode.js.map +1 -0
  392. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.css +3 -0
  393. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.d.ts +8 -0
  394. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js +14 -0
  395. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js.map +1 -0
  396. package/build/esm/editor-v2/containers/Tree/DragContext.css +25 -0
  397. package/build/esm/editor-v2/containers/Tree/DragContext.d.ts +15 -0
  398. package/build/esm/editor-v2/containers/Tree/DragContext.js +45 -0
  399. package/build/esm/editor-v2/containers/Tree/DragContext.js.map +1 -0
  400. package/build/esm/editor-v2/containers/Tree/Tree.css +10 -0
  401. package/build/esm/editor-v2/containers/Tree/Tree.d.ts +3 -0
  402. package/build/esm/editor-v2/containers/Tree/Tree.js +34 -0
  403. package/build/esm/editor-v2/containers/Tree/Tree.js.map +1 -0
  404. package/build/esm/editor-v2/containers/Tree/TreeContent.css +12 -0
  405. package/build/esm/editor-v2/containers/Tree/TreeContent.d.ts +17 -0
  406. package/build/esm/editor-v2/containers/Tree/TreeContent.js +57 -0
  407. package/build/esm/editor-v2/containers/Tree/TreeContent.js.map +1 -0
  408. package/build/esm/editor-v2/containers/Tree/TreeItem.css +50 -0
  409. package/build/esm/editor-v2/containers/Tree/TreeItem.d.ts +14 -0
  410. package/build/esm/editor-v2/containers/Tree/TreeItem.js +140 -0
  411. package/build/esm/editor-v2/containers/Tree/TreeItem.js.map +1 -0
  412. package/build/esm/editor-v2/containers/Tree/index.d.ts +4 -0
  413. package/build/esm/editor-v2/containers/Tree/index.js +5 -0
  414. package/build/esm/editor-v2/containers/Tree/index.js.map +1 -0
  415. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.css +13 -0
  416. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.d.ts +4 -0
  417. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.js +52 -0
  418. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.js.map +1 -0
  419. package/build/esm/editor-v2/containers/index.d.ts +7 -0
  420. package/build/esm/editor-v2/containers/index.js +8 -0
  421. package/build/esm/editor-v2/containers/index.js.map +1 -0
  422. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.d.ts +7 -0
  423. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.js +6 -0
  424. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.js.map +1 -0
  425. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.d.ts +5 -0
  426. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.js +30 -0
  427. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.js.map +1 -0
  428. package/build/esm/editor-v2/context/editorStore/index.d.ts +2 -0
  429. package/build/esm/editor-v2/context/editorStore/index.js +3 -0
  430. package/build/esm/editor-v2/context/editorStore/index.js.map +1 -0
  431. package/build/esm/editor-v2/context/iframeContext/IframeContext.d.ts +12 -0
  432. package/build/esm/editor-v2/context/iframeContext/IframeContext.js +10 -0
  433. package/build/esm/editor-v2/context/iframeContext/IframeContext.js.map +1 -0
  434. package/build/esm/editor-v2/context/iframeContext/IframeProvider.d.ts +7 -0
  435. package/build/esm/editor-v2/context/iframeContext/IframeProvider.js +16 -0
  436. package/build/esm/editor-v2/context/iframeContext/IframeProvider.js.map +1 -0
  437. package/build/esm/editor-v2/context/iframeContext/index.d.ts +2 -0
  438. package/build/esm/editor-v2/context/iframeContext/index.js +3 -0
  439. package/build/esm/editor-v2/context/iframeContext/index.js.map +1 -0
  440. package/build/esm/editor-v2/hooks/index.d.ts +2 -0
  441. package/build/esm/editor-v2/hooks/index.js +3 -0
  442. package/build/esm/editor-v2/hooks/index.js.map +1 -0
  443. package/build/esm/editor-v2/hooks/useEditorTabs.d.ts +16 -0
  444. package/build/esm/editor-v2/hooks/useEditorTabs.js +72 -0
  445. package/build/esm/editor-v2/hooks/useEditorTabs.js.map +1 -0
  446. package/build/esm/editor-v2/hooks/useMainEditorInitialize.d.ts +2 -0
  447. package/build/esm/editor-v2/hooks/useMainEditorInitialize.js +29 -0
  448. package/build/esm/editor-v2/hooks/useMainEditorInitialize.js.map +1 -0
  449. package/build/esm/editor-v2/hooks/useMainEditorStore.d.ts +1 -0
  450. package/build/esm/editor-v2/hooks/useMainEditorStore.js +8 -0
  451. package/build/esm/editor-v2/hooks/useMainEditorStore.js.map +1 -0
  452. package/build/esm/editor-v2/hooks/usePostMessageEvents.d.ts +6 -0
  453. package/build/esm/editor-v2/hooks/usePostMessageEvents.js +15 -0
  454. package/build/esm/editor-v2/hooks/usePostMessageEvents.js.map +1 -0
  455. package/build/esm/editor-v2/index.d.ts +5 -0
  456. package/build/esm/editor-v2/index.js +6 -0
  457. package/build/esm/editor-v2/index.js.map +1 -0
  458. package/build/esm/editor-v2/store.d.ts +48 -0
  459. package/build/esm/editor-v2/store.js +177 -0
  460. package/build/esm/editor-v2/store.js.map +1 -0
  461. package/build/esm/editor-v2/styles/mixins.css +0 -0
  462. package/build/esm/editor-v2/styles/root.css +9 -0
  463. package/build/esm/editor-v2/styles/variables.css +0 -0
  464. package/build/esm/editor-v2/utils/cn.d.ts +2 -0
  465. package/build/esm/editor-v2/utils/cn.js +4 -0
  466. package/build/esm/editor-v2/utils/cn.js.map +1 -0
  467. package/build/esm/editor-v2/utils/code.d.ts +6 -0
  468. package/build/esm/editor-v2/utils/code.js +9 -0
  469. package/build/esm/editor-v2/utils/code.js.map +1 -0
  470. package/build/esm/editor-v2/utils/index.d.ts +20 -0
  471. package/build/esm/editor-v2/utils/index.js +143 -0
  472. package/build/esm/editor-v2/utils/index.js.map +1 -0
  473. package/build/esm/hooks/usePCEditorInitializeEvents.js.map +1 -1
  474. package/build/esm/hooks/usePCEditorStore.d.ts +1 -1
  475. package/build/esm/hooks/usePostMessageAPI.d.ts +1 -1
  476. package/build/esm/hooks/usePostMessageAPI.js.map +1 -1
  477. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.d.ts +1 -1
  478. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.js.map +1 -1
  479. package/build/esm/utils/form-generator.d.ts +1 -1
  480. package/build/esm/utils/form-generator.js.map +1 -1
  481. package/package.json +1 -2
  482. package/widget/index.js +1 -1
@@ -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;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["blocks/CardLayout/index.ts"],"names":[],"mappings":";;;;AAIA,8DAA0E;AAC1E,kEAA2D;AAE3D,yEAAsC;AACtC,wCAAyC;AAEzC,MAAM,YAAY,GAAG,iBAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;AAE/D,QAAA,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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IAAA,gCAAe,EAAC,wBAAgD,CAAC;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,kBAAe,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,8DAA0E;AAC1E,kEAA2D;AAE3D,yEAAsC;AACtC,wCAAyC;AAEzC,MAAM,YAAY,GAAG,iBAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;AAE/D,QAAA,WAAW,GAAkB;IACtC;QACI,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE;YACL;gBACI,KAAK,EAAE,QAAQ;gBACf,KAAK,EAAE,QAAQ;gBACf,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,EAAE;wBACR,KAAK,EAAE,OAAO;qBACjB;iBACJ;aACJ;YACD;gBACI,KAAK,EAAE,SAAS;gBAChB,KAAK,EAAE,SAAS;gBAChB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,OAAO;qBACjB;oBACD;wBACI,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,UAAU;wBAChB,KAAK,EAAE,WAAW;wBAClB,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,QAAQ;qBACjB;oBACD;wBACI,IAAI,EAAE,MAAM;wB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OAAqO;iBAC9O;aACJ;YACD,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EACP,6HAA6H;SACpI;QACD,UAAU,EAAE,4EAA4E;KAC3F;CACJ,CAAC;AAEF,kBAAe,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"]}
@@ -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;
@@ -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: {
@@ -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;
@@ -3,7 +3,7 @@ declare const FormBlockConfig: {
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
  title: string;
9
9
  formData: {};
@@ -1,2 +1,2 @@
1
- import { BlockConfig } from "../../../common/types/index.js";
1
+ import { BlockConfig } from "../../common/types/index.js";
2
2
  export declare const blockConfig: BlockConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-form.js","sourceRoot":"../../../../src","sources":["blocks/Header/dynamic-form.ts"],"names":[],"mappings":";;;AACA,yEAAgE;AAChE,kDAAmC;AAEnC,MAAM,WAAW,GAAkB;IAC/B;QACI,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,WAAW;QAChB,KAAK,EAAE,YAAY;QACnB,OAAO,EAAE;YACL;gBACI,KAAK,EAAE,OAAO;gBACd,KAAK,EAAE,YAAY;gBACnB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,OAAO;qBACjB;iBACJ;aACJ;YACD;gBACI,KAAK,EAAE,OAAO;gB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;QACD;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE,WAAW;SACrB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,aAAa;SACvB;QACD,kBAAkB,CAAC,CAAC,GAAG,WAAW,EAAE,GAAG,sBAAsB,CAAC,CAAC;QAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8iBI;KACP;CACJ,CAAC","sourcesContent":["import {BlockConfig, ConfigInput} from '../../../common/types';\nimport {imageInputs} from '../../components/Image/dynamic-form';\nimport {Theme} from '../../models';\n\nconst mediaInputs: ConfigInput[] = [\n {\n type: 'oneOf',\n name: '',\n key: 'mediaType',\n title: 'Media Type',\n options: [\n {\n title: 'Empty',\n value: 'emptyMedia',\n properties: [\n {\n type: 'text',\n name: 'color',\n title: 'Color',\n },\n ],\n },\n {\n title: 'Image',\n value: 'image',\n properties: [\n {\n type: 'oneOf',\n name: 'image',\n key: 'imagesCount',\n title: 'Images Count',\n options: [\n {title: 'Single Image', value: 'singleImage', properties: imageInputs},\n {\n title: 'Multiple Images',\n value: 'multipleImages',\n properties: [\n {\n type: 'array',\n name: '',\n arrayType: 'object',\n title: 'Images',\n properties: imageInputs,\n buttonText: 'Add Image',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n title: 'Youtube',\n value: 'youtube',\n properties: [\n {\n type: 'text',\n name: 'youtube',\n title: 'Youtube',\n },\n {\n type: 'text',\n name: 'previewImg',\n title: 'Preview Image',\n },\n ],\n },\n {\n title: 'Datalens',\n value: 'datalens',\n properties: [],\n },\n {\n title: 'Iframe',\n value: 'iframe',\n properties: [],\n },\n {\n title: 'Video',\n value: 'video',\n properties: [],\n },\n ],\n },\n {\n type: 'boolean',\n name: 'disableImageSliderForArrayInput',\n title: 'Disable Image Slider For Array Input',\n },\n {\n type: 'boolean',\n name: 'parallax',\n title: 'Parallax',\n },\n {\n type: 'number',\n name: 'height',\n title: 'Height',\n },\n {\n type: 'boolean',\n name: 'fullscreen',\n title: 'Fullscreen',\n },\n {\n type: 'number',\n name: 'ratio',\n title: 'Ratio',\n },\n {\n type: 'boolean',\n name: 'margins',\n title: 'Margins',\n },\n];\n\nconst headerBackgroundInputs: ConfigInput[] = [\n {\n type: 'boolean',\n name: 'fullWidthMedia',\n title: 'Full width Media',\n },\n {\n type: 'boolean',\n name: 'fullWidth',\n title: 'Full width',\n },\n];\n\nconst backgroundProperty = (properties: ConfigInput[]): ConfigInput => ({\n type: 'oneOf',\n name: 'background',\n title: 'Background',\n options: [\n {\n value: 'noThemes',\n title: 'No Themes',\n properties: properties,\n },\n {\n value: 'withThemes',\n title: 'With Themes',\n properties: Object.values(Theme).map((theme) => ({\n type: 'object',\n name: theme,\n title: theme,\n properties: properties,\n })),\n },\n ],\n});\n\nexport const blockConfig: BlockConfig = {\n name: 'Header Block',\n inputs: [\n {\n type: 'text',\n name: 'title',\n title: 'Title',\n },\n {\n type: 'text',\n name: 'overtitle',\n title: 'Overtitle',\n },\n {\n type: 'textarea',\n name: 'description',\n title: 'Description',\n },\n backgroundProperty([...mediaInputs, ...headerBackgroundInputs]),\n /* {\n type: 'text',\n name: 'when',\n title: 'when',\n },\n {\n type: 'object',\n name: 'anchor',\n title: 'anchor',\n properties: [\n {\n type: 'text',\n name: 'text',\n title: 'text',\n },\n {\n type: 'text',\n name: 'url',\n title: 'url',\n },\n {\n type: 'text',\n name: 'urlTitle',\n title: 'urlTitle',\n },\n ],\n },\n {\n type: 'select',\n name: 'visible',\n title: 'visible',\n enum: [\n {\n content: 'sm',\n value: 'sm',\n },\n {\n content: 'md',\n value: 'md',\n },\n {\n content: 'lg',\n value: 'lg',\n },\n {\n content: 'xl',\n value: 'xl',\n },\n {\n content: 'all',\n value: 'all',\n },\n ],\n },\n {\n type: 'text',\n name: 'context',\n title: 'context',\n },\n {\n type: 'object',\n name: 'indent',\n title: 'indent',\n properties: [],\n },\n {\n type: 'select',\n name: 'width',\n title: 'width',\n enum: [\n {\n content: 's',\n value: 's',\n },\n {\n content: 'm',\n value: 'm',\n },\n {\n content: 'l',\n value: 'l',\n },\n ],\n },\n {\n type: 'array',\n name: 'buttons',\n title: 'buttons',\n properties: [\n {\n type: 'text',\n name: 'when',\n title: 'when',\n },\n {\n type: 'text',\n name: 'text',\n title: 'text',\n },\n {\n type: 'text',\n name: 'url',\n title: 'url',\n },\n {\n type: 'text',\n name: 'urlTitle',\n title: 'urlTitle',\n },\n {\n type: 'select',\n name: 'size',\n title: 'size',\n enum: [\n {\n content: 'xs',\n value: 'xs',\n },\n {\n content: 'ns',\n value: 'ns',\n },\n {\n content: 's',\n value: 's',\n },\n {\n content: 'n',\n value: 'n',\n },\n {\n content: 'm',\n value: 'm',\n },\n {\n content: 'l',\n value: 'l',\n },\n {\n content: 'xl',\n value: 'xl',\n },\n {\n content: 'head',\n value: 'head',\n },\n {\n content: 'promo',\n value: 'promo',\n },\n ],\n },\n {\n type: 'select',\n name: 'theme',\n title: 'theme',\n enum: [\n {\n content: 'normal',\n value: 'normal',\n },\n {\n content: 'action',\n value: 'action',\n },\n {\n content: 'outlined',\n value: 'outlined',\n },\n {\n content: 'outlined-info',\n value: 'outlined-info',\n },\n {\n content: 'outlined-danger',\n value: 'outlined-danger',\n },\n {\n content: 'raised',\n value: 'raised',\n },\n {\n content: 'flat',\n value: 'flat',\n },\n {\n content: 'flat-info',\n value: 'flat-info',\n },\n {\n content: 'flat-danger',\n value: 'flat-danger',\n },\n {\n content: 'flat-secondary',\n value: 'flat-secondary',\n },\n {\n content: 'clear',\n value: 'clear',\n },\n {\n content: 'normal-contrast',\n value: 'normal-contrast',\n },\n {\n content: 'outlined-contrast',\n value: 'outlined-contrast',\n },\n {\n content: 'flat-contrast',\n value: 'flat-contrast',\n },\n {\n content: 'link',\n value: 'link',\n },\n {\n content: 'pseudo',\n value: 'pseudo',\n },\n {\n content: 'pseudo-special',\n value: 'pseudo-special',\n },\n {\n content: 'websearch',\n value: 'websearch',\n },\n {\n content: 'normal-dark',\n value: 'normal-dark',\n },\n {\n content: 'normal-special',\n value: 'normal-special',\n },\n {\n content: 'accent',\n value: 'accent',\n },\n {\n content: 'dark-grey',\n value: 'dark-grey',\n },\n {\n content: 'app-store',\n value: 'app-store',\n },\n {\n content: 'google-play',\n value: 'google-play',\n },\n {\n content: 'scale',\n value: 'scale',\n },\n {\n content: 'github',\n value: 'github',\n },\n {\n content: 'monochrome',\n value: 'monochrome',\n },\n ],\n },\n {\n type: 'oneOf',\n name: 'img',\n title: 'img',\n options: [\n {\n value: 'url',\n title: 'url',\n properties: [],\n },\n {\n value: 'options',\n title: 'options',\n properties: [],\n },\n ],\n },\n {\n type: 'oneOf',\n name: 'analyticsEvents',\n title: 'analyticsEvents',\n options: [\n {\n value: 'single',\n title: 'single',\n properties: [\n {\n type: 'text',\n name: 'additionalProperties',\n title: 'additionalProperties',\n },\n ],\n },\n {\n value: 'list',\n title: 'list',\n properties: [\n {\n type: 'object',\n name: 'items',\n title: 'items',\n properties: [\n {\n type: 'text',\n name: 'name',\n title: 'name',\n },\n {\n type: 'text',\n name: 'type',\n title: 'type',\n },\n {\n type: 'object',\n name: 'counters',\n title: 'counters',\n properties: [],\n },\n {\n type: 'text',\n name: 'context',\n title: 'context',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'select',\n name: 'target',\n title: 'target',\n enum: [\n {\n content: '_self',\n value: '_self',\n },\n {\n content: '_blank',\n value: '_blank',\n },\n {\n content: '_parent',\n value: '_parent',\n },\n {\n content: '_top',\n value: '_top',\n },\n ],\n },\n {\n type: 'select',\n name: 'width',\n title: 'width',\n enum: [\n {\n content: 'auto',\n value: 'auto',\n },\n {\n content: 'max',\n value: 'max',\n },\n ],\n },\n ],\n },\n {\n type: 'select',\n name: 'offset',\n title: 'offset',\n enum: [\n {\n content: 'default',\n value: 'default',\n },\n {\n content: 'large',\n value: 'large',\n },\n ],\n },\n {\n type: 'oneOf',\n name: 'image',\n title: 'image',\n options: [\n {\n value: 'no theme',\n title: 'no theme',\n properties: [],\n },\n {\n value: 'themes',\n title: 'themes',\n properties: [],\n },\n ],\n },\n {\n type: 'oneOf',\n name: 'video',\n title: 'video',\n options: [\n {\n value: 'no theme',\n title: 'no theme',\n properties: [],\n },\n {\n value: 'themes',\n title: 'themes',\n properties: [],\n },\n ],\n },\n {\n type: 'select',\n name: 'mediaView',\n title: 'mediaView',\n enum: [\n {\n content: 'fit',\n value: 'fit',\n },\n {\n content: 'full',\n value: 'full',\n },\n ],\n },\n {\n type: 'object',\n name: 'backLink',\n title: 'backLink',\n properties: [\n {\n type: 'text',\n name: 'url',\n title: 'url',\n },\n {\n type: 'text',\n name: 'title',\n title: 'title',\n },\n ],\n },\n {\n type: 'select',\n name: 'imageSize',\n title: 'imageSize',\n enum: [\n {\n content: 's',\n value: 's',\n },\n {\n content: 'm',\n value: 'm',\n },\n ],\n },\n {\n type: 'select',\n name: 'verticalOffset',\n title: 'verticalOffset',\n enum: [\n {\n content: '0',\n value: '0',\n },\n {\n content: 's',\n value: 's',\n },\n {\n content: 'm',\n value: 'm',\n },\n {\n content: 'l',\n value: 'l',\n },\n {\n content: 'xl',\n value: 'xl',\n },\n ],\n },\n\n {\n type: 'select',\n name: 'theme',\n title: 'theme',\n enum: [\n {\n content: 'default',\n value: 'default',\n },\n {\n content: 'dark',\n value: 'dark',\n },\n ],\n },\n {\n type: 'object',\n name: 'breadcrumbs',\n title: 'breadcrumbs',\n properties: [\n {\n type: 'array',\n name: 'items',\n title: 'items',\n properties: [\n {\n type: 'text',\n name: 'url',\n title: 'url',\n },\n {\n type: 'text',\n name: 'text',\n title: 'text',\n },\n ],\n },\n {\n type: 'select',\n name: 'theme',\n title: 'theme',\n enum: [\n {\n content: 'light',\n value: 'light',\n },\n {\n content: 'dark',\n value: 'dark',\n },\n ],\n },\n ],\n },\n {\n type: 'text',\n name: 'status',\n title: 'status',\n },*/\n ],\n};\n"]}
1
+ {"version":3,"file":"dynamic-form.js","sourceRoot":"../../../../src","sources":["blocks/Header/dynamic-form.ts"],"names":[],"mappings":";;;AACA,yEAAgE;AAChE,kDAAmC;AAEnC,MAAM,WAAW,GAAkB;IAC/B;QACI,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,WAAW;QAChB,KAAK,EAAE,YAAY;QACnB,OAAO,EAAE;YACL;gBACI,KAAK,EAAE,OAAO;gBACd,KAAK,EAAE,YAAY;gBACnB,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,OAAO;qBACjB;iBACJ;aACJ;YACD;gBACI,KAAK,EAAE,OAAO;gBACd,KAAK,EAAE,OAAO;gBACd,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,OAAO;wBACb,GAAG,EAAE,aAAa;wBAClB,KAAK,EAAE,cAAc;wBACrB,OAAO,EAAE;4BACL,EAAC,K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B,CAAC,CAAC,GAAG,WAAW,EAAE,GAAG,sBAAsB,CAAC,CAAC;QAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8iBI;KACP;CACJ,CAAC","sourcesContent":["import {BlockConfig, ConfigInput} from '../../common/types';\nimport {imageInputs} from '../../components/Image/dynamic-form';\nimport {Theme} from '../../models';\n\nconst mediaInputs: ConfigInput[] = [\n {\n type: 'oneOf',\n name: '',\n key: 'mediaType',\n title: 'Media Type',\n options: [\n {\n title: 'Empty',\n value: 'emptyMedia',\n properties: [\n {\n type: 'text',\n name: 'color',\n title: 'Color',\n },\n ],\n },\n {\n title: 'Image',\n value: 'image',\n properties: [\n {\n type: 'oneOf',\n name: 'image',\n key: 'imagesCount',\n title: 'Images Count',\n options: [\n {title: 'Single Image', value: 'singleImage', properties: imageInputs},\n {\n title: 'Multiple Images',\n value: 'multipleImages',\n properties: [\n {\n type: 'array',\n name: '',\n arrayType: 'object',\n title: 'Images',\n properties: imageInputs,\n buttonText: 'Add Image',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n title: 'Youtube',\n value: 'youtube',\n properties: [\n {\n type: 'text',\n name: 'youtube',\n title: 'Youtube',\n },\n {\n type: 'text',\n name: 'previewImg',\n title: 'Preview Image',\n },\n ],\n },\n {\n title: 'Datalens',\n value: 'datalens',\n properties: [],\n },\n {\n title: 'Iframe',\n value: 'iframe',\n properties: [],\n },\n {\n title: 'Video',\n value: 'video',\n properties: [],\n },\n ],\n },\n {\n type: 'boolean',\n name: 'disableImageSliderForArrayInput',\n title: 'Disable Image Slider For Array Input',\n },\n {\n type: 'boolean',\n name: 'parallax',\n title: 'Parallax',\n },\n {\n type: 'number',\n name: 'height',\n title: 'Height',\n },\n {\n type: 'boolean',\n name: 'fullscreen',\n title: 'Fullscreen',\n },\n {\n type: 'number',\n name: 'ratio',\n title: 'Ratio',\n },\n {\n type: 'boolean',\n name: 'margins',\n title: 'Margins',\n },\n];\n\nconst headerBackgroundInputs: ConfigInput[] = [\n {\n type: 'boolean',\n name: 'fullWidthMedia',\n title: 'Full width Media',\n },\n {\n type: 'boolean',\n name: 'fullWidth',\n title: 'Full width',\n },\n];\n\nconst backgroundProperty = (properties: ConfigInput[]): ConfigInput => ({\n type: 'oneOf',\n name: 'background',\n title: 'Background',\n options: [\n {\n value: 'noThemes',\n title: 'No Themes',\n properties: properties,\n },\n {\n value: 'withThemes',\n title: 'With Themes',\n properties: Object.values(Theme).map((theme) => ({\n type: 'object',\n name: theme,\n title: theme,\n properties: properties,\n })),\n },\n ],\n});\n\nexport const blockConfig: BlockConfig = {\n name: 'Header Block',\n inputs: [\n {\n type: 'text',\n name: 'title',\n title: 'Title',\n },\n {\n type: 'text',\n name: 'overtitle',\n title: 'Overtitle',\n },\n {\n type: 'textarea',\n name: 'description',\n title: 'Description',\n },\n backgroundProperty([...mediaInputs, ...headerBackgroundInputs]),\n /* {\n type: 'text',\n name: 'when',\n title: 'when',\n },\n {\n type: 'object',\n name: 'anchor',\n title: 'anchor',\n properties: [\n {\n type: 'text',\n name: 'text',\n title: 'text',\n },\n {\n type: 'text',\n name: 'url',\n title: 'url',\n },\n {\n type: 'text',\n name: 'urlTitle',\n title: 'urlTitle',\n },\n ],\n },\n {\n type: 'select',\n name: 'visible',\n title: 'visible',\n enum: [\n {\n content: 'sm',\n value: 'sm',\n },\n {\n content: 'md',\n value: 'md',\n },\n {\n content: 'lg',\n value: 'lg',\n },\n {\n content: 'xl',\n value: 'xl',\n },\n {\n content: 'all',\n value: 'all',\n },\n ],\n },\n {\n type: 'text',\n name: 'context',\n title: 'context',\n },\n {\n type: 'object',\n name: 'indent',\n title: 'indent',\n properties: [],\n },\n {\n type: 'select',\n name: 'width',\n title: 'width',\n enum: [\n {\n content: 's',\n value: 's',\n },\n {\n content: 'm',\n value: 'm',\n },\n {\n content: 'l',\n value: 'l',\n },\n ],\n },\n {\n type: 'array',\n name: 'buttons',\n title: 'buttons',\n properties: [\n {\n type: 'text',\n name: 'when',\n title: 'when',\n },\n {\n type: 'text',\n name: 'text',\n title: 'text',\n },\n {\n type: 'text',\n name: 'url',\n title: 'url',\n },\n {\n type: 'text',\n name: 'urlTitle',\n title: 'urlTitle',\n },\n {\n type: 'select',\n name: 'size',\n title: 'size',\n enum: [\n {\n content: 'xs',\n value: 'xs',\n },\n {\n content: 'ns',\n value: 'ns',\n },\n {\n content: 's',\n value: 's',\n },\n {\n content: 'n',\n value: 'n',\n },\n {\n content: 'm',\n value: 'm',\n },\n {\n content: 'l',\n value: 'l',\n },\n {\n content: 'xl',\n value: 'xl',\n },\n {\n content: 'head',\n value: 'head',\n },\n {\n content: 'promo',\n value: 'promo',\n },\n ],\n },\n {\n type: 'select',\n name: 'theme',\n title: 'theme',\n enum: [\n {\n content: 'normal',\n value: 'normal',\n },\n {\n content: 'action',\n value: 'action',\n },\n {\n content: 'outlined',\n value: 'outlined',\n },\n {\n content: 'outlined-info',\n value: 'outlined-info',\n },\n {\n content: 'outlined-danger',\n value: 'outlined-danger',\n },\n {\n content: 'raised',\n value: 'raised',\n },\n {\n content: 'flat',\n value: 'flat',\n },\n {\n content: 'flat-info',\n value: 'flat-info',\n },\n {\n content: 'flat-danger',\n value: 'flat-danger',\n },\n {\n content: 'flat-secondary',\n value: 'flat-secondary',\n },\n {\n content: 'clear',\n value: 'clear',\n },\n {\n content: 'normal-contrast',\n value: 'normal-contrast',\n },\n {\n content: 'outlined-contrast',\n value: 'outlined-contrast',\n },\n {\n content: 'flat-contrast',\n value: 'flat-contrast',\n },\n {\n content: 'link',\n value: 'link',\n },\n {\n content: 'pseudo',\n value: 'pseudo',\n },\n {\n content: 'pseudo-special',\n value: 'pseudo-special',\n },\n {\n content: 'websearch',\n value: 'websearch',\n },\n {\n content: 'normal-dark',\n value: 'normal-dark',\n },\n {\n content: 'normal-special',\n value: 'normal-special',\n },\n {\n content: 'accent',\n value: 'accent',\n },\n {\n content: 'dark-grey',\n value: 'dark-grey',\n },\n {\n content: 'app-store',\n value: 'app-store',\n },\n {\n content: 'google-play',\n value: 'google-play',\n },\n {\n content: 'scale',\n value: 'scale',\n },\n {\n content: 'github',\n value: 'github',\n },\n {\n content: 'monochrome',\n value: 'monochrome',\n },\n ],\n },\n {\n type: 'oneOf',\n name: 'img',\n title: 'img',\n options: [\n {\n value: 'url',\n title: 'url',\n properties: [],\n },\n {\n value: 'options',\n title: 'options',\n properties: [],\n },\n ],\n },\n {\n type: 'oneOf',\n name: 'analyticsEvents',\n title: 'analyticsEvents',\n options: [\n {\n value: 'single',\n title: 'single',\n properties: [\n {\n type: 'text',\n name: 'additionalProperties',\n title: 'additionalProperties',\n },\n ],\n },\n {\n value: 'list',\n title: 'list',\n properties: [\n {\n type: 'object',\n name: 'items',\n title: 'items',\n properties: [\n {\n type: 'text',\n name: 'name',\n title: 'name',\n },\n {\n type: 'text',\n name: 'type',\n title: 'type',\n },\n {\n type: 'object',\n name: 'counters',\n title: 'counters',\n properties: [],\n },\n {\n type: 'text',\n name: 'context',\n title: 'context',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'select',\n name: 'target',\n title: 'target',\n enum: [\n {\n content: '_self',\n value: '_self',\n },\n {\n content: '_blank',\n value: '_blank',\n },\n {\n content: '_parent',\n value: '_parent',\n },\n {\n content: '_top',\n value: '_top',\n },\n ],\n },\n {\n type: 'select',\n name: 'width',\n title: 'width',\n enum: [\n {\n content: 'auto',\n value: 'auto',\n },\n {\n content: 'max',\n value: 'max',\n },\n ],\n },\n ],\n },\n {\n type: 'select',\n name: 'offset',\n title: 'offset',\n enum: [\n {\n content: 'default',\n value: 'default',\n },\n {\n content: 'large',\n value: 'large',\n },\n ],\n },\n {\n type: 'oneOf',\n name: 'image',\n title: 'image',\n options: [\n {\n value: 'no theme',\n title: 'no theme',\n properties: [],\n },\n {\n value: 'themes',\n title: 'themes',\n properties: [],\n },\n ],\n },\n {\n type: 'oneOf',\n name: 'video',\n title: 'video',\n options: [\n {\n value: 'no theme',\n title: 'no theme',\n properties: [],\n },\n {\n value: 'themes',\n title: 'themes',\n properties: [],\n },\n ],\n },\n {\n type: 'select',\n name: 'mediaView',\n title: 'mediaView',\n enum: [\n {\n content: 'fit',\n value: 'fit',\n },\n {\n content: 'full',\n value: 'full',\n },\n ],\n },\n {\n type: 'object',\n name: 'backLink',\n title: 'backLink',\n properties: [\n {\n type: 'text',\n name: 'url',\n title: 'url',\n },\n {\n type: 'text',\n name: 'title',\n title: 'title',\n },\n ],\n },\n {\n type: 'select',\n name: 'imageSize',\n title: 'imageSize',\n enum: [\n {\n content: 's',\n value: 's',\n },\n {\n content: 'm',\n value: 'm',\n },\n ],\n },\n {\n type: 'select',\n name: 'verticalOffset',\n title: 'verticalOffset',\n enum: [\n {\n content: '0',\n value: '0',\n },\n {\n content: 's',\n value: 's',\n },\n {\n content: 'm',\n value: 'm',\n },\n {\n content: 'l',\n value: 'l',\n },\n {\n content: 'xl',\n value: 'xl',\n },\n ],\n },\n\n {\n type: 'select',\n name: 'theme',\n title: 'theme',\n enum: [\n {\n content: 'default',\n value: 'default',\n },\n {\n content: 'dark',\n value: 'dark',\n },\n ],\n },\n {\n type: 'object',\n name: 'breadcrumbs',\n title: 'breadcrumbs',\n properties: [\n {\n type: 'array',\n name: 'items',\n title: 'items',\n properties: [\n {\n type: 'text',\n name: 'url',\n title: 'url',\n },\n {\n type: 'text',\n name: 'text',\n title: 'text',\n },\n ],\n },\n {\n type: 'select',\n name: 'theme',\n title: 'theme',\n enum: [\n {\n content: 'light',\n value: 'light',\n },\n {\n content: 'dark',\n value: 'dark',\n },\n ],\n },\n ],\n },\n {\n type: 'text',\n name: 'status',\n title: 'status',\n },*/\n ],\n};\n"]}
@@ -3,7 +3,7 @@ declare const HeaderBlockConfig: {
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: string;
@@ -3,7 +3,7 @@ declare const HeaderSliderBlockConfig: {
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
  items: ({
@@ -3,7 +3,7 @@ declare const IconsBlockConfig: {
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: string;
@@ -3,7 +3,7 @@ declare const InfoBlockConfig: {
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: string;
@@ -3,7 +3,7 @@ declare const MapBlockConfig: {
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
  title: string;
9
9
  };
@@ -3,7 +3,7 @@ declare const MediaBlockConfig: {
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
  title: string;
9
9
  description: string;
@@ -3,7 +3,7 @@ declare const PromoFeaturesBlockConfig: {
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
  title: string;
9
9
  theme: string;
@@ -3,7 +3,7 @@ declare const QuestionsBlockConfig: {
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: string;
@@ -3,7 +3,7 @@ declare const ShareBlockConfig: {
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
  items: string[];
9
9
  title: string;
@@ -1,3 +1,3 @@
1
- import { BlockConfig } from "../../../common/types/index.js";
1
+ import { BlockConfig } from "../../common/types/index.js";
2
2
  export declare const blockConfig: BlockConfig;
3
3
  export declare const exampleConfig: BlockConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-form.js","sourceRoot":"../../../../src","sources":["blocks/Slider/dynamic-form.ts"],"names":[],"mappings":";;;AACA,8DAA0E;AAE1E,MAAM,YAAY,GAAG,iBAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,CAA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AAI,EAAE,OAAO;YACb,KAAK,EAAE,kBAAkB;YACzB,UAAU,EAAE,SAAS;YACrB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE;gBACR;oBACI,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,UAAU;iBACpB;gBACD;oBACI,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,UAAU;iBACpB;aACJ;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import {BlockConfig, ConfigInput} from '../../../common/types';\nimport {sliderSizesArray, textSize} from '../../schema/validators/common';\n\nconst textSizeEnum = textSize.map((size) => ({value: size, content: size}));\n\nexport const blockConfig: BlockConfig = {\n name: 'Slider Block',\n inputs: [\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};\n\nexport const exampleConfig: BlockConfig = {\n name: 'Slider Block',\n inputs: [\n {\n type: 'text',\n name: 'title',\n title: 'Text Property',\n },\n {\n type: 'boolean',\n name: '<ID>',\n title: 'Boolean Property',\n },\n {\n type: 'number',\n name: '<ID>',\n title: 'Number Property',\n },\n {\n type: 'textarea',\n name: '<ID>',\n title: 'TextArea Property',\n showIf: `block.description === 'Test'`,\n },\n {\n type: 'select',\n name: 'select',\n title: 'Select Property',\n enum: [\n {content: 'Option 1', value: 'option-1'},\n {content: 'Option 2', value: 'option-2'},\n ],\n mode: 'single',\n view: 'select',\n },\n {\n type: 'object',\n name: 'object_data',\n title: 'Object Property',\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 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};\n"]}
1
+ {"version":3,"file":"dynamic-form.js","sourceRoot":"../../../../src","sources":["blocks/Slider/dynamic-form.ts"],"names":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,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,UAAU;iBACpB;gBACD;oBACI,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,UAAU;iBACpB;aACJ;SACJ;QACD;YACI,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,kBAAkB;YACzB,UAAU,EAAE,SAAS;YACrB,SAAS,EAAE,QAAQ;YACnB,UAAU,EAAE;gBACR;oBACI,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,UAAU;iBACpB;gBACD;oBACI,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,UAAU;iBACpB;aACJ;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import {BlockConfig, ConfigInput} from '../../common/types';\nimport {sliderSizesArray, textSize} from '../../schema/validators/common';\n\nconst textSizeEnum = textSize.map((size) => ({value: size, content: size}));\n\nexport const blockConfig: BlockConfig = {\n name: 'Slider Block',\n inputs: [\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};\n\nexport const exampleConfig: BlockConfig = {\n name: 'Slider Block',\n inputs: [\n {\n type: 'text',\n name: 'title',\n title: 'Text Property',\n },\n {\n type: 'boolean',\n name: '<ID>',\n title: 'Boolean Property',\n },\n {\n type: 'number',\n name: '<ID>',\n title: 'Number Property',\n },\n {\n type: 'textarea',\n name: '<ID>',\n title: 'TextArea Property',\n showIf: `block.description === 'Test'`,\n },\n {\n type: 'select',\n name: 'select',\n title: 'Select Property',\n enum: [\n {content: 'Option 1', value: 'option-1'},\n {content: 'Option 2', value: 'option-2'},\n ],\n mode: 'single',\n view: 'select',\n },\n {\n type: 'object',\n name: 'object_data',\n title: 'Object Property',\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 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};\n"]}
@@ -3,7 +3,7 @@ declare const SliderBlockConfig: {
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
  dots: boolean;
9
9
  type: string;
@@ -3,7 +3,7 @@ declare const TableBlockConfig: {
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: string;
@@ -3,7 +3,7 @@ declare const TabsBlockConfig: {
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
  title: string;
9
9
  items: {
@@ -1,3 +1,3 @@
1
- import { ArrayObjectInput, ArrayTextInput, BooleanInput, NumberInput, ObjectInput, OneOfInput, SelectMultipleInput, SelectSingleInput, TextAreaInput, TextInput } from "../../../common/types/index.js";
1
+ import { ArrayObjectInput, ArrayTextInput, BooleanInput, NumberInput, ObjectInput, OneOfInput, SelectMultipleInput, SelectSingleInput, TextAreaInput, TextInput } from "../../common/types/index.js";
2
2
  declare const _default: (TextInput | BooleanInput | NumberInput | TextAreaInput | SelectSingleInput | SelectMultipleInput | ObjectInput | ArrayTextInput | ArrayObjectInput | OneOfInput)[];
3
3
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"form.js","sourceRoot":"../../../../src","sources":["blocks/TestEditorBlock/form.ts"],"names":[],"mappings":";;AAaA,MAAM,SAAS,GAAc;IACzB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,YAAY;CACtB,CAAC;AAE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CACpB,CAAC;AAEF,MAAM,gBAAgB,GAAqB;IACvC,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,oBAAoB;IAC3B,UAAU,EAAE,gBAAgB;IAC5B,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE,CAAC,SAAS,EAAE,aAAa,EAAE,WAAW,CAAC;CACtD,CAAC;AAEF,MAAM,UAAU,GAAe;IAC3B,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,GAAG,EAAE,UAAU;IACf,KAAK,EAAE,kBAAkB;IACzB,OAAO,EAAE;QACL,EAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,SAAS,CAAC,EAAC;QACvD,EAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,aAAa,CAAC,EAAC;KACtE;CACJ,CAAC;AAEF,kBAAe;IACX,SAAS;IACT,aAAa;IACb,YAAY;IACZ,WAAW;IACX,WAAW;IACX,2BAA2B;IAC3B,uBAAuB;IACvB,WAAW;IACX,cAAc;IACd,gBAAgB;IAChB,UAAU;CACb,CAAC","sourcesContent":["import {\n ArrayObjectInput,\n ArrayTextInput,\n BooleanInput,\n NumberInput,\n ObjectInput,\n OneOfInput,\n SelectMultipleInput,\n SelectSingleInput,\n TextAreaInput,\n TextInput,\n} from '../../../common/types';\n\nconst textInput: TextInput = {\n type: 'text',\n name: 'text',\n title: 'Text Input',\n};\n\nconst textAreaInput: TextAreaInput = {\n type: 'textarea',\n name: 'textarea',\n title: 'TextArea Input',\n};\n\nconst booleanInput: BooleanInput = {\n type: 'boolean',\n name: 'boolean',\n title: 'Boolean Input',\n};\n\nconst numberInput: NumberInput = {\n type: 'number',\n name: 'number',\n title: 'Number Input',\n};\n\nconst selectInput: SelectSingleInput = {\n type: 'select',\n name: 'selectSingle',\n title: 'Select Single Input',\n mode: 'single',\n view: 'select',\n enum: [\n {value: 'id_1', content: 'Option 1'},\n {value: 'id_2', content: 'Option 2'},\n ],\n};\n\nconst radioButtonsViewSingleInput: SelectSingleInput = {\n ...selectInput,\n name: 'radioButtons',\n title: 'Radio Button Input',\n\n view: 'radiobutton',\n};\n\n// @ts-ignore\nconst selectMultipleModeInput: SelectMultipleInput = {\n ...selectInput,\n name: 'selectMultiple',\n title: 'Select Multiple Input',\n\n mode: 'multiple',\n};\n\nconst objectInput: ObjectInput = {\n type: 'object',\n name: 'object',\n title: 'Object Input',\n properties: [textInput, textAreaInput, selectInput],\n};\n\nconst arrayTextInput: ArrayTextInput = {\n type: 'array',\n name: 'arrayText',\n title: 'Array Text Input',\n buttonText: 'Add Array Item',\n arrayType: 'text',\n};\n\nconst arrayObjectInput: ArrayObjectInput = {\n type: 'array',\n name: 'arrayObject',\n title: 'Array Object Input',\n buttonText: 'Add Array Item',\n arrayType: 'object',\n properties: [textInput, textAreaInput, selectInput],\n};\n\nconst oneOfInput: OneOfInput = {\n type: 'oneOf',\n name: 'oneOf',\n key: 'oneOfKey',\n title: 'Array Text Input',\n options: [\n {value: 'text', title: 'Text', properties: [textInput]},\n {value: 'textarea', title: 'TextArea', properties: [textAreaInput]},\n ],\n};\n\nexport default [\n textInput,\n textAreaInput,\n booleanInput,\n numberInput,\n selectInput,\n radioButtonsViewSingleInput,\n selectMultipleModeInput,\n objectInput,\n arrayTextInput,\n arrayObjectInput,\n oneOfInput,\n];\n"]}
1
+ {"version":3,"file":"form.js","sourceRoot":"../../../../src","sources":["blocks/TestEditorBlock/form.ts"],"names":[],"mappings":";;AAaA,MAAM,SAAS,GAAc;IACzB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,YAAY;CACtB,CAAC;AAEF,MAAM,aAAa,GAAkB;IACjC,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,gBAAgB;CAC1B,CAAC;AAEF,MAAM,YAAY,GAAiB;IAC/B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IAC5B,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE,CAAC,SAAS,EAAE,aAAa,EAAE,WAAW,CAAC;CACtD,CAAC;AAEF,MAAM,UAAU,GAAe;IAC3B,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,GAAG,EAAE,UAAU;IACf,KAAK,EAAE,kBAAkB;IACzB,OAAO,EAAE;QACL,EAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,SAAS,CAAC,EAAC;QACvD,EAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,aAAa,CAAC,EAAC;KACtE;CACJ,CAAC;AAEF,kBAAe;IACX,SAAS;IACT,aAAa;IACb,YAAY;IACZ,WAAW;IACX,WAAW;IACX,2BAA2B;IAC3B,uBAAuB;IACvB,WAAW;IACX,cAAc;IACd,gBAAgB;IAChB,UAAU;CACb,CAAC","sourcesContent":["import {\n ArrayObjectInput,\n ArrayTextInput,\n BooleanInput,\n NumberInput,\n ObjectInput,\n OneOfInput,\n SelectMultipleInput,\n SelectSingleInput,\n TextAreaInput,\n TextInput,\n} from '../../common/types';\n\nconst textInput: TextInput = {\n type: 'text',\n name: 'text',\n title: 'Text Input',\n};\n\nconst textAreaInput: TextAreaInput = {\n type: 'textarea',\n name: 'textarea',\n title: 'TextArea Input',\n};\n\nconst booleanInput: BooleanInput = {\n type: 'boolean',\n name: 'boolean',\n title: 'Boolean Input',\n};\n\nconst numberInput: NumberInput = {\n type: 'number',\n name: 'number',\n title: 'Number Input',\n};\n\nconst selectInput: SelectSingleInput = {\n type: 'select',\n name: 'selectSingle',\n title: 'Select Single Input',\n mode: 'single',\n view: 'select',\n enum: [\n {value: 'id_1', content: 'Option 1'},\n {value: 'id_2', content: 'Option 2'},\n ],\n};\n\nconst radioButtonsViewSingleInput: SelectSingleInput = {\n ...selectInput,\n name: 'radioButtons',\n title: 'Radio Button Input',\n\n view: 'radiobutton',\n};\n\n// @ts-ignore\nconst selectMultipleModeInput: SelectMultipleInput = {\n ...selectInput,\n name: 'selectMultiple',\n title: 'Select Multiple Input',\n\n mode: 'multiple',\n};\n\nconst objectInput: ObjectInput = {\n type: 'object',\n name: 'object',\n title: 'Object Input',\n properties: [textInput, textAreaInput, selectInput],\n};\n\nconst arrayTextInput: ArrayTextInput = {\n type: 'array',\n name: 'arrayText',\n title: 'Array Text Input',\n buttonText: 'Add Array Item',\n arrayType: 'text',\n};\n\nconst arrayObjectInput: ArrayObjectInput = {\n type: 'array',\n name: 'arrayObject',\n title: 'Array Object Input',\n buttonText: 'Add Array Item',\n arrayType: 'object',\n properties: [textInput, textAreaInput, selectInput],\n};\n\nconst oneOfInput: OneOfInput = {\n type: 'oneOf',\n name: 'oneOf',\n key: 'oneOfKey',\n title: 'Array Text Input',\n options: [\n {value: 'text', title: 'Text', properties: [textInput]},\n {value: 'textarea', title: 'TextArea', properties: [textAreaInput]},\n ],\n};\n\nexport default [\n textInput,\n textAreaInput,\n booleanInput,\n numberInput,\n selectInput,\n radioButtonsViewSingleInput,\n selectMultipleModeInput,\n objectInput,\n arrayTextInput,\n arrayObjectInput,\n oneOfInput,\n];\n"]}
@@ -2,7 +2,7 @@ declare const TestEditorBlockConfig: {
2
2
  component: (props: import("./TestEditorBlock.js").TestEditorBlockProps) => import("react/jsx-runtime").JSX.Element;
3
3
  schema: {
4
4
  name: string;
5
- inputs: (import("../../../common/types/index.js").TextInput | import("../../../common/types/index.js").BooleanInput | import("../../../common/types/index.js").NumberInput | import("../../../common/types/index.js").TextAreaInput | import("../../../common/types/index.js").SelectSingleInput | import("../../../common/types/index.js").SelectMultipleInput | import("../../../common/types/index.js").ObjectInput | import("../../../common/types/index.js").ArrayTextInput | import("../../../common/types/index.js").ArrayObjectInput | import("../../../common/types/index.js").OneOfInput)[];
5
+ inputs: (import("../../editor-v2/index.js").TextInput | import("../../editor-v2/index.js").BooleanInput | import("../../editor-v2/index.js").NumberInput | import("../../editor-v2/index.js").TextAreaInput | import("../../editor-v2/index.js").SelectSingleInput | import("../../editor-v2/index.js").SelectMultipleInput | import("../../editor-v2/index.js").ObjectInput | import("../../editor-v2/index.js").ArrayTextInput | import("../../editor-v2/index.js").ArrayObjectInput | import("../../editor-v2/index.js").OneOfInput)[];
6
6
  };
7
7
  };
8
8
  export declare const TestEditorBlockSchema: {
@@ -0,0 +1,4 @@
1
+ import { ActionMessageTypes, EventMessageTypes } from "./types/index.js";
2
+ export declare function requestActionPostMessage<K extends keyof ActionMessageTypes>(action: K, data: ActionMessageTypes[K], destinationElement: Window): void;
3
+ export declare function listenPostMessageEvents<K extends keyof EventMessageTypes>(action: K, callback: (data: EventMessageTypes[K]) => void): () => void;
4
+ export declare function usePostMessageAPIListener<K extends keyof EventMessageTypes>(action: K, callback: (data: EventMessageTypes[K]) => void, deps?: unknown[]): void;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.requestActionPostMessage = requestActionPostMessage;
4
+ exports.listenPostMessageEvents = listenPostMessageEvents;
5
+ exports.usePostMessageAPIListener = usePostMessageAPIListener;
6
+ const tslib_1 = require("tslib");
7
+ const React = tslib_1.__importStar(require("react"));
8
+ function requestActionPostMessage(action, data, destinationElement) {
9
+ const message = { action, data };
10
+ destinationElement.postMessage(message);
11
+ }
12
+ function listenPostMessageEvents(action, callback) {
13
+ const onMessage = (e) => {
14
+ const message = e.data;
15
+ if ('action' in message && message.action === action) {
16
+ return callback(message.data);
17
+ }
18
+ return undefined;
19
+ };
20
+ window.addEventListener('message', onMessage);
21
+ return () => {
22
+ window.removeEventListener('message', onMessage);
23
+ };
24
+ }
25
+ function usePostMessageAPIListener(action, callback, deps = []) {
26
+ React.useEffect(() => {
27
+ return listenPostMessageEvents(action, callback);
28
+ // eslint-disable-next-line react-hooks/exhaustive-deps
29
+ }, [...deps]);
30
+ }
31
+ //# sourceMappingURL=postMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postMessage.js","sourceRoot":"../../../src","sources":["common/postMessage.ts"],"names":[],"mappings":";;AAIA,4DAOC;AAED,0DAmBC;AAED,8DASC;;AA3CD,qDAA+B;AAI/B,SAAgB,wBAAwB,CACpC,MAAS,EACT,IAA2B,EAC3B,kBAA0B;IAE1B,MAAM,OAAO,GAAG,EAAC,MAAM,EAAE,IAAI,EAA6B,CAAC;IAC3D,kBAAkB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,uBAAuB,CACnC,MAAS,EACT,QAA8C;IAE9C,MAAM,SAAS,GAAG,CAAC,CAAe,EAAE,EAAE;QAClC,MAAM,OAAO,GAAG,CAAC,CAAC,IAAgC,CAAC;QAEnD,IAAI,QAAQ,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;YACnD,OAAO,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC;QAED,OAAO,SAAS,CAAC;IACrB,CAAC,CAAC;IAEF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAE9C,OAAO,GAAG,EAAE;QACR,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACrD,CAAC,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CACrC,MAAS,EACT,QAA8C,EAC9C,OAAkB,EAAE;IAEpB,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,OAAO,uBAAuB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACjD,uDAAuD;IAC3D,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;AAClB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {ActionMessageTypes, EventMessageTypes, PostMessageAPIMessage} from './types';\n\nexport function requestActionPostMessage<K extends keyof ActionMessageTypes>(\n action: K,\n data: ActionMessageTypes[K],\n destinationElement: Window,\n) {\n const message = {action, data} as PostMessageAPIMessage<K>;\n destinationElement.postMessage(message);\n}\n\nexport function listenPostMessageEvents<K extends keyof EventMessageTypes>(\n action: K,\n callback: (data: EventMessageTypes[K]) => void,\n) {\n const onMessage = (e: MessageEvent) => {\n const message = e.data as PostMessageAPIMessage<K>;\n\n if ('action' in message && message.action === action) {\n return callback(message.data);\n }\n\n return undefined;\n };\n\n window.addEventListener('message', onMessage);\n\n return () => {\n window.removeEventListener('message', onMessage);\n };\n}\n\nexport function usePostMessageAPIListener<K extends keyof EventMessageTypes>(\n action: K,\n callback: (data: EventMessageTypes[K]) => void,\n deps: unknown[] = [],\n) {\n React.useEffect(() => {\n return listenPostMessageEvents(action, callback);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [...deps]);\n}\n"]}
@@ -0,0 +1,40 @@
1
+ import { PageContentWithNavigation } from "../models/index.js";
2
+ import { ConfigInput, ItemConfig } from "./types/index.js";
3
+ export interface EditorState {
4
+ height?: number;
5
+ deviceWidth?: string;
6
+ zoom: number;
7
+ manipulateOverlayMode: 'insert' | 'reorder' | false;
8
+ selectedBlock: number[] | null;
9
+ initialized: boolean;
10
+ content: PageContentWithNavigation;
11
+ blocks: Array<ItemConfig>;
12
+ subBlocks: Array<ItemConfig>;
13
+ global: Array<ConfigInput>;
14
+ preInsertBlockType: string | null;
15
+ preReorderBlockPath: number[] | null;
16
+ }
17
+ export declare const initialStore: EditorState;
18
+ export declare const createPCEditorStore: (overrideInitialState?: Partial<EditorState> | undefined) => import("zustand").UseBoundStore<Omit<Omit<Omit<import("zustand").StoreApi<EditorState>, "subscribe"> & {
19
+ subscribe: {
20
+ (listener: (selectedState: EditorState, previousSelectedState: EditorState) => void): () => void;
21
+ <U>(selector: (state: EditorState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
22
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
23
+ fireImmediately?: boolean;
24
+ } | undefined): () => void;
25
+ };
26
+ }, "setState"> & {
27
+ setState<A extends string | {
28
+ type: string;
29
+ }>(partial: EditorState | Partial<EditorState> | ((state: EditorState) => EditorState | Partial<EditorState>), replace?: boolean | undefined, action?: A | undefined): void;
30
+ }, "persist"> & {
31
+ persist: {
32
+ setOptions: (options: Partial<import("zustand/middleware").PersistOptions<EditorState, EditorState>>) => void;
33
+ clearStorage: () => void;
34
+ rehydrate: () => Promise<void> | void;
35
+ hasHydrated: () => boolean;
36
+ onHydrate: (fn: (state: EditorState) => void) => () => void;
37
+ onFinishHydration: (fn: (state: EditorState) => void) => () => void;
38
+ getOptions: () => Partial<import("zustand/middleware").PersistOptions<EditorState, EditorState>>;
39
+ };
40
+ }>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createPCEditorStore = exports.initialStore = void 0;
4
+ const utils_1 = require("./utils.js");
5
+ exports.initialStore = {
6
+ height: 100,
7
+ deviceWidth: '100%',
8
+ zoom: 100,
9
+ manipulateOverlayMode: false,
10
+ selectedBlock: null,
11
+ initialized: false,
12
+ content: { blocks: [] },
13
+ blocks: [],
14
+ subBlocks: [],
15
+ global: [],
16
+ preInsertBlockType: null,
17
+ preReorderBlockPath: null,
18
+ };
19
+ exports.createPCEditorStore = (0, utils_1.initializeStore)(exports.initialStore, () => ({}));
20
+ //# sourceMappingURL=store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.js","sourceRoot":"../../../src","sources":["common/store.ts"],"names":[],"mappings":";;;AAKA,sCAAwC;AAoB3B,QAAA,YAAY,GAAgB;IACrC,MAAM,EAAE,GAAG;IACX,WAAW,EAAE,MAAM;IACnB,IAAI,EAAE,GAAG;IACT,qBAAqB,EAAE,KAAK;IAC5B,aAAa,EAAE,IAAI;IACnB,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,EAAC,MAAM,EAAE,EAAE,EAAC;IACrB,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,EAAE;IACb,MAAM,EAAE,EAAE;IACV,kBAAkB,EAAE,IAAI;IACxB,mBAAmB,EAAE,IAAI;CAC5B,CAAC;AAEW,QAAA,mBAAmB,GAAG,IAAA,uBAAe,EAAc,oBAAY,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC","sourcesContent":["import _ from 'lodash';\n\nimport {PageContentWithNavigation} from '../models';\n\nimport {ConfigInput, ItemConfig} from './types';\nimport {initializeStore} from './utils';\n\nexport interface EditorState {\n height?: number;\n deviceWidth?: string;\n zoom: number;\n\n manipulateOverlayMode: 'insert' | 'reorder' | false;\n selectedBlock: number[] | null;\n initialized: boolean;\n\n content: PageContentWithNavigation;\n blocks: Array<ItemConfig>;\n subBlocks: Array<ItemConfig>;\n global: Array<ConfigInput>;\n\n preInsertBlockType: string | null;\n preReorderBlockPath: number[] | null;\n}\n\nexport const initialStore: EditorState = {\n height: 100,\n deviceWidth: '100%',\n zoom: 100,\n manipulateOverlayMode: false,\n selectedBlock: null,\n initialized: false,\n content: {blocks: []},\n blocks: [],\n subBlocks: [],\n global: [],\n preInsertBlockType: null,\n preReorderBlockPath: null,\n};\n\nexport const createPCEditorStore = initializeStore<EditorState>(initialStore, () => ({}));\n"]}