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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1116) hide show
  1. package/README.md +1 -31
  2. package/build/cjs/blocks/Banner/Banner.js +1 -2
  3. package/build/cjs/blocks/Banner/Banner.js.map +1 -1
  4. package/build/cjs/blocks/CardLayout/CardLayout.css +0 -1
  5. package/build/cjs/blocks/CardLayout/CardLayout.js +3 -4
  6. package/build/cjs/blocks/CardLayout/CardLayout.js.map +1 -1
  7. package/build/cjs/blocks/Companies/Companies.js +1 -2
  8. package/build/cjs/blocks/Companies/Companies.js.map +1 -1
  9. package/build/cjs/blocks/ContentLayout/ContentLayout.js +1 -1
  10. package/build/cjs/blocks/ContentLayout/ContentLayout.js.map +1 -1
  11. package/build/cjs/blocks/ContentLayout/schema.d.ts +0 -1
  12. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +12 -13
  13. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
  14. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +0 -1
  15. package/build/cjs/blocks/ExtendedFeatures/schema.js +0 -1
  16. package/build/cjs/blocks/ExtendedFeatures/schema.js.map +1 -1
  17. package/build/cjs/blocks/FilterBlock/FilterBlock.js +5 -5
  18. package/build/cjs/blocks/FilterBlock/FilterBlock.js.map +1 -1
  19. package/build/cjs/blocks/HeaderSlider/HeaderSlider.js +1 -2
  20. package/build/cjs/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
  21. package/build/cjs/blocks/Icons/Icons.js +6 -8
  22. package/build/cjs/blocks/Icons/Icons.js.map +1 -1
  23. package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +13 -15
  24. package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js.map +1 -1
  25. package/build/cjs/blocks/Questions/Questions.js +5 -6
  26. package/build/cjs/blocks/Questions/Questions.js.map +1 -1
  27. package/build/cjs/blocks/Share/Share.js +10 -11
  28. package/build/cjs/blocks/Share/Share.js.map +1 -1
  29. package/build/cjs/blocks/Slider/Slider.js +10 -12
  30. package/build/cjs/blocks/Slider/Slider.js.map +1 -1
  31. package/build/cjs/blocks/Table/schema.d.ts +0 -1
  32. package/build/cjs/blocks/Table/schema.js +0 -1
  33. package/build/cjs/blocks/Table/schema.js.map +1 -1
  34. package/build/cjs/blocks/Tabs/Tabs.js +4 -4
  35. package/build/cjs/blocks/Tabs/Tabs.js.map +1 -1
  36. package/build/cjs/components/BlockBase/BlockBase.css +16 -8
  37. package/build/cjs/constructor-items.d.ts +6 -22
  38. package/build/cjs/constructor-items.js +6 -80
  39. package/build/cjs/constructor-items.js.map +1 -1
  40. package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +1 -1
  41. package/build/cjs/containers/PageConstructor/PageConstructor.js +10 -18
  42. package/build/cjs/containers/PageConstructor/PageConstructor.js.map +1 -1
  43. package/build/cjs/containers/PageConstructor/Provider.js +0 -2
  44. package/build/cjs/containers/PageConstructor/Provider.js.map +1 -1
  45. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.css +6 -10
  46. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -3
  47. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js.map +1 -1
  48. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +6 -7
  49. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js.map +1 -1
  50. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
  51. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -2
  52. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js.map +1 -1
  53. package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +1 -2
  54. package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js.map +1 -1
  55. package/build/cjs/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +2 -1
  56. package/build/cjs/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js.map +1 -1
  57. package/build/cjs/context/blockIdContext/blockIdContext.d.ts +2 -2
  58. package/build/cjs/context/blockIdContext/blockIdContext.js +1 -1
  59. package/build/cjs/context/blockIdContext/blockIdContext.js.map +1 -1
  60. package/build/cjs/editor/components/CodeEditor/CodeEditor.d.ts +2 -1
  61. package/build/cjs/editor/components/CodeEditor/CodeEditor.js +6 -5
  62. package/build/cjs/editor/components/CodeEditor/CodeEditor.js.map +1 -1
  63. package/build/cjs/grid/Grid/Grid.css +6 -2
  64. package/build/cjs/hooks/useAnalytics.js +1 -1
  65. package/build/cjs/hooks/useAnalytics.js.map +1 -1
  66. package/build/cjs/models/constructor-items/blocks.d.ts +0 -1
  67. package/build/cjs/models/constructor-items/blocks.js +0 -1
  68. package/build/cjs/models/constructor-items/blocks.js.map +1 -1
  69. package/build/cjs/models/constructor.d.ts +1 -4
  70. package/build/cjs/models/constructor.js.map +1 -1
  71. package/build/cjs/models/navigation.d.ts +2 -2
  72. package/build/cjs/models/navigation.js.map +1 -1
  73. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js +1 -1
  74. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js.map +1 -1
  75. package/build/cjs/navigation/components/Navigation/Navigation.d.ts +2 -2
  76. package/build/cjs/navigation/components/Navigation/Navigation.js +1 -1
  77. package/build/cjs/navigation/components/Navigation/Navigation.js.map +1 -1
  78. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +1 -4
  79. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
  80. package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +1 -4
  81. package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js.map +1 -1
  82. package/build/cjs/navigation/containers/Layout/Layout.css +1 -0
  83. package/build/cjs/navigation/containers/Layout/Layout.js +0 -1
  84. package/build/cjs/navigation/containers/Layout/Layout.js.map +1 -1
  85. package/build/cjs/navigation/models.d.ts +1 -1
  86. package/build/cjs/navigation/models.js.map +1 -1
  87. package/build/cjs/schema/constants.js +0 -2
  88. package/build/cjs/schema/constants.js.map +1 -1
  89. package/build/cjs/schema/index.d.ts +0 -256
  90. package/build/cjs/schema/index.js +6 -12
  91. package/build/cjs/schema/index.js.map +1 -1
  92. package/build/cjs/sub-blocks/BannerCard/BannerCard.js +1 -2
  93. package/build/cjs/sub-blocks/BannerCard/BannerCard.js.map +1 -1
  94. package/build/cjs/sub-blocks/Content/schema.d.ts +0 -1
  95. package/build/cjs/sub-blocks/Content/schema.js +0 -1
  96. package/build/cjs/sub-blocks/Content/schema.js.map +1 -1
  97. package/build/cjs/sub-blocks/ImageCard/ImageCard.js +1 -1
  98. package/build/cjs/sub-blocks/ImageCard/ImageCard.js.map +1 -1
  99. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +1 -1
  100. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js.map +1 -1
  101. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +206 -211
  102. package/build/cjs/sub-blocks/LayoutItem/schema.js +5 -6
  103. package/build/cjs/sub-blocks/LayoutItem/schema.js.map +1 -1
  104. package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
  105. package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js.map +1 -1
  106. package/build/cjs/utils/index.d.ts +0 -1
  107. package/build/cjs/utils/index.js +0 -1
  108. package/build/cjs/utils/index.js.map +1 -1
  109. package/build/esm/blocks/Banner/Banner.js +1 -2
  110. package/build/esm/blocks/Banner/Banner.js.map +1 -1
  111. package/build/esm/blocks/CardLayout/CardLayout.css +0 -1
  112. package/build/esm/blocks/CardLayout/CardLayout.js +4 -5
  113. package/build/esm/blocks/CardLayout/CardLayout.js.map +1 -1
  114. package/build/esm/blocks/Companies/Companies.js +1 -2
  115. package/build/esm/blocks/Companies/Companies.js.map +1 -1
  116. package/build/esm/blocks/ContentLayout/ContentLayout.js +2 -2
  117. package/build/esm/blocks/ContentLayout/ContentLayout.js.map +1 -1
  118. package/build/esm/blocks/ContentLayout/schema.d.ts +0 -1
  119. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +13 -14
  120. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
  121. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +0 -1
  122. package/build/esm/blocks/ExtendedFeatures/schema.js +0 -1
  123. package/build/esm/blocks/ExtendedFeatures/schema.js.map +1 -1
  124. package/build/esm/blocks/FilterBlock/FilterBlock.js +6 -6
  125. package/build/esm/blocks/FilterBlock/FilterBlock.js.map +1 -1
  126. package/build/esm/blocks/HeaderSlider/HeaderSlider.js +1 -2
  127. package/build/esm/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
  128. package/build/esm/blocks/Icons/Icons.js +6 -8
  129. package/build/esm/blocks/Icons/Icons.js.map +1 -1
  130. package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +13 -15
  131. package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js.map +1 -1
  132. package/build/esm/blocks/Questions/Questions.js +6 -7
  133. package/build/esm/blocks/Questions/Questions.js.map +1 -1
  134. package/build/esm/blocks/Share/Share.js +10 -11
  135. package/build/esm/blocks/Share/Share.js.map +1 -1
  136. package/build/esm/blocks/Slider/Slider.js +10 -12
  137. package/build/esm/blocks/Slider/Slider.js.map +1 -1
  138. package/build/esm/blocks/Table/schema.d.ts +0 -1
  139. package/build/esm/blocks/Table/schema.js +0 -1
  140. package/build/esm/blocks/Table/schema.js.map +1 -1
  141. package/build/esm/blocks/Tabs/Tabs.js +5 -5
  142. package/build/esm/blocks/Tabs/Tabs.js.map +1 -1
  143. package/build/esm/components/BlockBase/BlockBase.css +16 -8
  144. package/build/esm/constructor-items.d.ts +6 -22
  145. package/build/esm/constructor-items.js +1 -75
  146. package/build/esm/constructor-items.js.map +1 -1
  147. package/build/esm/containers/PageConstructor/PageConstructor.d.ts +1 -1
  148. package/build/esm/containers/PageConstructor/PageConstructor.js +12 -20
  149. package/build/esm/containers/PageConstructor/PageConstructor.js.map +1 -1
  150. package/build/esm/containers/PageConstructor/Provider.js +0 -2
  151. package/build/esm/containers/PageConstructor/Provider.js.map +1 -1
  152. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.css +6 -10
  153. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -3
  154. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js.map +1 -1
  155. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +6 -7
  156. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js.map +1 -1
  157. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
  158. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -2
  159. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js.map +1 -1
  160. package/build/esm/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +1 -2
  161. package/build/esm/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js.map +1 -1
  162. package/build/esm/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +2 -1
  163. package/build/esm/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js.map +1 -1
  164. package/build/esm/context/blockIdContext/blockIdContext.d.ts +2 -2
  165. package/build/esm/context/blockIdContext/blockIdContext.js +1 -1
  166. package/build/esm/context/blockIdContext/blockIdContext.js.map +1 -1
  167. package/build/esm/editor/components/CodeEditor/CodeEditor.d.ts +2 -1
  168. package/build/esm/editor/components/CodeEditor/CodeEditor.js +6 -4
  169. package/build/esm/editor/components/CodeEditor/CodeEditor.js.map +1 -1
  170. package/build/esm/grid/Grid/Grid.css +6 -2
  171. package/build/esm/hooks/useAnalytics.js +1 -1
  172. package/build/esm/hooks/useAnalytics.js.map +1 -1
  173. package/build/esm/models/constructor-items/blocks.d.ts +0 -1
  174. package/build/esm/models/constructor-items/blocks.js +0 -1
  175. package/build/esm/models/constructor-items/blocks.js.map +1 -1
  176. package/build/esm/models/constructor.d.ts +1 -4
  177. package/build/esm/models/constructor.js.map +1 -1
  178. package/build/esm/models/navigation.d.ts +2 -2
  179. package/build/esm/models/navigation.js.map +1 -1
  180. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js +2 -2
  181. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js.map +1 -1
  182. package/build/esm/navigation/components/Navigation/Navigation.d.ts +2 -2
  183. package/build/esm/navigation/components/Navigation/Navigation.js +1 -1
  184. package/build/esm/navigation/components/Navigation/Navigation.js.map +1 -1
  185. package/build/esm/navigation/components/NavigationItem/NavigationItem.js +1 -4
  186. package/build/esm/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
  187. package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +1 -4
  188. package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js.map +1 -1
  189. package/build/esm/navigation/containers/Layout/Layout.css +1 -0
  190. package/build/esm/navigation/containers/Layout/Layout.js +1 -2
  191. package/build/esm/navigation/containers/Layout/Layout.js.map +1 -1
  192. package/build/esm/navigation/models.d.ts +1 -1
  193. package/build/esm/navigation/models.js.map +1 -1
  194. package/build/esm/schema/constants.js +0 -2
  195. package/build/esm/schema/constants.js.map +1 -1
  196. package/build/esm/schema/index.d.ts +0 -256
  197. package/build/esm/schema/index.js +5 -11
  198. package/build/esm/schema/index.js.map +1 -1
  199. package/build/esm/sub-blocks/BannerCard/BannerCard.js +1 -2
  200. package/build/esm/sub-blocks/BannerCard/BannerCard.js.map +1 -1
  201. package/build/esm/sub-blocks/Content/schema.d.ts +0 -1
  202. package/build/esm/sub-blocks/Content/schema.js +0 -1
  203. package/build/esm/sub-blocks/Content/schema.js.map +1 -1
  204. package/build/esm/sub-blocks/ImageCard/ImageCard.js +1 -1
  205. package/build/esm/sub-blocks/ImageCard/ImageCard.js.map +1 -1
  206. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +1 -1
  207. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js.map +1 -1
  208. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +206 -211
  209. package/build/esm/sub-blocks/LayoutItem/schema.js +2 -3
  210. package/build/esm/sub-blocks/LayoutItem/schema.js.map +1 -1
  211. package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
  212. package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js.map +1 -1
  213. package/build/esm/utils/index.d.ts +0 -1
  214. package/build/esm/utils/index.js +0 -1
  215. package/build/esm/utils/index.js.map +1 -1
  216. package/package.json +15 -28
  217. package/schema/index.js +1 -1
  218. package/server/models/constructor-items/blocks.d.ts +0 -1
  219. package/server/models/constructor-items/blocks.js +0 -1
  220. package/server/models/constructor.d.ts +1 -4
  221. package/server/models/navigation.d.ts +2 -2
  222. package/server/utils/index.d.ts +0 -1
  223. package/server/utils/index.js +0 -1
  224. package/styles/mixins.scss +9 -9
  225. package/widget/{5287.index.js → 1092.index.js} +1 -1
  226. package/widget/{8092.index.js → 1130.index.js} +1 -1
  227. package/widget/1219.index.js +1 -0
  228. package/widget/{2390.index.js → 122.index.js} +1 -1
  229. package/widget/{6817.index.js → 1289.index.js} +1 -1
  230. package/widget/{2921.index.js → 1335.index.js} +1 -1
  231. package/widget/{1876.index.js → 1340.index.js} +1 -1
  232. package/widget/{3901.index.js → 1349.index.js} +1 -1
  233. package/widget/1532.index.js +1 -0
  234. package/widget/{2957.index.js → 1750.index.js} +1 -1
  235. package/widget/{5105.index.js → 1995.index.js} +1 -1
  236. package/widget/{5418.index.js → 2010.index.js} +1 -1
  237. package/widget/{9517.index.js → 2026.index.js} +1 -1
  238. package/widget/{1794.index.js → 2187.index.js} +1 -1
  239. package/widget/{7548.index.js → 2218.index.js} +1 -1
  240. package/widget/225.index.js +1 -0
  241. package/widget/2338.index.js +1 -0
  242. package/widget/{4653.index.js → 2355.index.js} +1 -1
  243. package/widget/{5001.index.js → 2369.index.js} +1 -1
  244. package/widget/{4127.index.js → 2487.index.js} +1 -1
  245. package/widget/{6165.index.js → 2498.index.js} +1 -1
  246. package/widget/{5254.index.js → 2509.index.js} +1 -1
  247. package/widget/2544.index.js +1 -1
  248. package/widget/2619.index.js +1 -0
  249. package/widget/{5941.index.js → 2673.index.js} +1 -1
  250. package/widget/{4717.index.js → 2698.index.js} +1 -1
  251. package/widget/{7427.index.js → 2706.index.js} +1 -1
  252. package/widget/{8602.index.js → 2739.index.js} +1 -1
  253. package/widget/2745.index.js +1 -0
  254. package/widget/2796.index.js +1 -0
  255. package/widget/{7573.index.js → 2830.index.js} +1 -1
  256. package/widget/{3237.index.js → 2878.index.js} +1 -1
  257. package/widget/292.index.js +1 -0
  258. package/widget/2979.index.js +1 -0
  259. package/widget/3187.index.js +1 -0
  260. package/widget/321.index.js +1 -0
  261. package/widget/{5437.index.js → 3222.index.js} +1 -1
  262. package/widget/{1987.index.js → 3225.index.js} +1 -1
  263. package/widget/{7719.index.js → 3309.index.js} +1 -1
  264. package/widget/{4254.index.js → 3433.index.js} +1 -1
  265. package/widget/{2722.index.js → 3473.index.js} +1 -1
  266. package/widget/3532.index.js +1 -0
  267. package/widget/3562.index.js +1 -0
  268. package/widget/{6148.index.js → 3672.index.js} +1 -1
  269. package/widget/{4990.index.js → 3713.index.js} +1 -1
  270. package/widget/{8894.index.js → 3860.index.js} +1 -1
  271. package/widget/{5551.index.js → 3900.index.js} +1 -1
  272. package/widget/{6629.index.js → 4007.index.js} +1 -1
  273. package/widget/{7467.index.js → 4061.index.js} +1 -1
  274. package/widget/{5423.index.js → 4072.index.js} +1 -1
  275. package/widget/{4144.index.js → 4173.index.js} +1 -1
  276. package/widget/4288.index.js +1 -0
  277. package/widget/{8242.index.js → 4309.index.js} +1 -1
  278. package/widget/{8146.index.js → 4334.index.js} +1 -1
  279. package/widget/{9339.index.js → 4405.index.js} +1 -1
  280. package/widget/4457.index.js +1 -0
  281. package/widget/{8768.index.js → 4485.index.js} +1 -1
  282. package/widget/4509.index.js +1 -0
  283. package/widget/{4067.index.js → 4608.index.js} +1 -1
  284. package/widget/465.index.js +1 -0
  285. package/widget/{7118.index.js → 4719.index.js} +1 -1
  286. package/widget/4734.index.js +1 -0
  287. package/widget/4780.index.js +1 -0
  288. package/widget/4895.index.js +1 -0
  289. package/widget/{790.index.js → 494.index.js} +1 -1
  290. package/widget/5012.index.js +1 -0
  291. package/widget/{4722.index.js → 5084.index.js} +1 -1
  292. package/widget/5285.index.js +1 -0
  293. package/widget/5376.index.js +1 -0
  294. package/widget/539.index.js +1 -0
  295. package/widget/5414.index.js +1 -0
  296. package/widget/{8980.index.js → 5513.index.js} +1 -1
  297. package/widget/5530.index.js +1 -0
  298. package/widget/5571.index.js +1 -0
  299. package/widget/{8540.index.js → 5592.index.js} +1 -1
  300. package/widget/5616.index.js +1 -0
  301. package/widget/{5903.index.js → 5662.index.js} +1 -1
  302. package/widget/{7109.index.js → 5665.index.js} +1 -1
  303. package/widget/{8792.index.js → 5681.index.js} +1 -1
  304. package/widget/5760.index.js +1 -0
  305. package/widget/{6257.index.js → 5811.index.js} +1 -1
  306. package/widget/{5054.index.js → 5826.index.js} +1 -1
  307. package/widget/{1560.index.js → 5877.index.js} +1 -1
  308. package/widget/{9149.index.js → 5944.index.js} +1 -1
  309. package/widget/{8341.index.js → 5977.index.js} +1 -1
  310. package/widget/{3646.index.js → 5993.index.js} +1 -1
  311. package/widget/{2009.index.js → 6007.index.js} +1 -1
  312. package/widget/{3852.index.js → 6033.index.js} +1 -1
  313. package/widget/{5567.index.js → 6101.index.js} +1 -1
  314. package/widget/623.index.js +1 -0
  315. package/widget/{7989.index.js → 6290.index.js} +1 -1
  316. package/widget/6364.index.js +1 -0
  317. package/widget/{7387.index.js → 6400.index.js} +1 -1
  318. package/widget/{5473.index.js → 6462.index.js} +1 -1
  319. package/widget/6467.index.js +1 -0
  320. package/widget/{6622.index.js → 6481.index.js} +1 -1
  321. package/widget/{4888.index.js → 6605.index.js} +1 -1
  322. package/widget/{2966.index.js → 6803.index.js} +1 -1
  323. package/widget/{5627.index.js → 6847.index.js} +1 -1
  324. package/widget/{2019.index.js → 7081.index.js} +1 -1
  325. package/widget/7205.index.js +1 -0
  326. package/widget/{5596.index.js → 7250.index.js} +1 -1
  327. package/widget/{7763.index.js → 7317.index.js} +1 -1
  328. package/widget/7329.index.js +1 -0
  329. package/widget/{5159.index.js → 7406.index.js} +1 -1
  330. package/widget/{7632.index.js → 7409.index.js} +1 -1
  331. package/widget/{3783.index.js → 7420.index.js} +1 -1
  332. package/widget/{7101.index.js → 7439.index.js} +1 -1
  333. package/widget/{9197.index.js → 7674.index.js} +1 -1
  334. package/widget/{5805.index.js → 7690.index.js} +1 -1
  335. package/widget/{2641.index.js → 7741.index.js} +1 -1
  336. package/widget/{4724.index.js → 7933.index.js} +1 -1
  337. package/widget/{9132.index.js → 8003.index.js} +1 -1
  338. package/widget/813.index.js +1 -0
  339. package/widget/{6513.index.js → 8142.index.js} +1 -1
  340. package/widget/{8562.index.js → 8298.index.js} +1 -1
  341. package/widget/{7200.index.js → 8361.index.js} +1 -1
  342. package/widget/{4855.index.js → 8418.index.js} +1 -1
  343. package/widget/860.index.js +1 -0
  344. package/widget/{1796.index.js → 8615.index.js} +1 -1
  345. package/widget/{6312.index.js → 8660.index.js} +1 -1
  346. package/widget/880.index.js +1 -0
  347. package/widget/8804.index.js +1 -0
  348. package/widget/8809.index.js +1 -0
  349. package/widget/{9157.index.js → 8928.index.js} +1 -1
  350. package/widget/912.index.js +1 -0
  351. package/widget/9160.index.js +1 -0
  352. package/widget/{5914.index.js → 9252.index.js} +1 -1
  353. package/widget/{3706.index.js → 9286.index.js} +1 -1
  354. package/widget/{2502.index.js → 9294.index.js} +1 -1
  355. package/widget/{9182.index.js → 9423.index.js} +1 -1
  356. package/widget/{8477.index.js → 9464.index.js} +1 -1
  357. package/widget/950.index.js +1 -0
  358. package/widget/952.index.js +1 -0
  359. package/widget/9677.index.js +1 -0
  360. package/widget/9751.index.js +1 -0
  361. package/widget/{3220.index.js → 9836.index.js} +1 -1
  362. package/widget/{2376.index.js → 9865.index.js} +1 -1
  363. package/widget/{5109.index.js → 9881.index.js} +1 -1
  364. package/widget/9911.index.js +1 -1
  365. package/widget/{7822.index.js → 9964.index.js} +1 -1
  366. package/widget/{9091.index.js → 9990.index.js} +1 -1
  367. package/widget/9998.index.js +1 -0
  368. package/widget/index.js +1 -1
  369. package/build/cjs/blocks/Banner/index.d.ts +0 -3
  370. package/build/cjs/blocks/Banner/index.js +0 -24
  371. package/build/cjs/blocks/Banner/index.js.map +0 -1
  372. package/build/cjs/blocks/CardLayout/index.d.ts +0 -5
  373. package/build/cjs/blocks/CardLayout/index.js +0 -186
  374. package/build/cjs/blocks/CardLayout/index.js.map +0 -1
  375. package/build/cjs/blocks/Companies/index.d.ts +0 -3
  376. package/build/cjs/blocks/Companies/index.js +0 -20
  377. package/build/cjs/blocks/Companies/index.js.map +0 -1
  378. package/build/cjs/blocks/ContentLayout/index.d.ts +0 -41
  379. package/build/cjs/blocks/ContentLayout/index.js +0 -81
  380. package/build/cjs/blocks/ContentLayout/index.js.map +0 -1
  381. package/build/cjs/blocks/ExtendedFeatures/index.d.ts +0 -58
  382. package/build/cjs/blocks/ExtendedFeatures/index.js +0 -77
  383. package/build/cjs/blocks/ExtendedFeatures/index.js.map +0 -1
  384. package/build/cjs/blocks/FilterBlock/index.d.ts +0 -29
  385. package/build/cjs/blocks/FilterBlock/index.js +0 -98
  386. package/build/cjs/blocks/FilterBlock/index.js.map +0 -1
  387. package/build/cjs/blocks/Form/index.d.ts +0 -13
  388. package/build/cjs/blocks/Form/index.js +0 -20
  389. package/build/cjs/blocks/Form/index.js.map +0 -1
  390. package/build/cjs/blocks/Header/dynamic-form.d.ts +0 -2
  391. package/build/cjs/blocks/Header/dynamic-form.js +0 -731
  392. package/build/cjs/blocks/Header/dynamic-form.js.map +0 -1
  393. package/build/cjs/blocks/Header/index.d.ts +0 -20
  394. package/build/cjs/blocks/Header/index.js +0 -34
  395. package/build/cjs/blocks/Header/index.js.map +0 -1
  396. package/build/cjs/blocks/HeaderSlider/index.d.ts +0 -32
  397. package/build/cjs/blocks/HeaderSlider/index.js +0 -40
  398. package/build/cjs/blocks/HeaderSlider/index.js.map +0 -1
  399. package/build/cjs/blocks/Icons/index.d.ts +0 -20
  400. package/build/cjs/blocks/Icons/index.js +0 -64
  401. package/build/cjs/blocks/Icons/index.js.map +0 -1
  402. package/build/cjs/blocks/Info/index.d.ts +0 -22
  403. package/build/cjs/blocks/Info/index.js +0 -43
  404. package/build/cjs/blocks/Info/index.js.map +0 -1
  405. package/build/cjs/blocks/Map/index.d.ts +0 -12
  406. package/build/cjs/blocks/Map/index.js +0 -19
  407. package/build/cjs/blocks/Map/index.js.map +0 -1
  408. package/build/cjs/blocks/Media/index.d.ts +0 -39
  409. package/build/cjs/blocks/Media/index.js +0 -57
  410. package/build/cjs/blocks/Media/index.js.map +0 -1
  411. package/build/cjs/blocks/PromoFeaturesBlock/index.d.ts +0 -22
  412. package/build/cjs/blocks/PromoFeaturesBlock/index.js +0 -49
  413. package/build/cjs/blocks/PromoFeaturesBlock/index.js.map +0 -1
  414. package/build/cjs/blocks/Questions/index.d.ts +0 -30
  415. package/build/cjs/blocks/Questions/index.js +0 -49
  416. package/build/cjs/blocks/Questions/index.js.map +0 -1
  417. package/build/cjs/blocks/Share/index.d.ts +0 -13
  418. package/build/cjs/blocks/Share/index.js +0 -20
  419. package/build/cjs/blocks/Share/index.js.map +0 -1
  420. package/build/cjs/blocks/Slider/dynamic-form.d.ts +0 -3
  421. package/build/cjs/blocks/Slider/dynamic-form.js +0 -226
  422. package/build/cjs/blocks/Slider/dynamic-form.js.map +0 -1
  423. package/build/cjs/blocks/Slider/index.d.ts +0 -28
  424. package/build/cjs/blocks/Slider/index.js +0 -47
  425. package/build/cjs/blocks/Slider/index.js.map +0 -1
  426. package/build/cjs/blocks/Table/index.d.ts +0 -18
  427. package/build/cjs/blocks/Table/index.js +0 -32
  428. package/build/cjs/blocks/Table/index.js.map +0 -1
  429. package/build/cjs/blocks/Tabs/index.d.ts +0 -17
  430. package/build/cjs/blocks/Tabs/index.js +0 -31
  431. package/build/cjs/blocks/Tabs/index.js.map +0 -1
  432. package/build/cjs/blocks/TestEditorBlock/TestEditorBlock.d.ts +0 -5
  433. package/build/cjs/blocks/TestEditorBlock/TestEditorBlock.js +0 -12
  434. package/build/cjs/blocks/TestEditorBlock/TestEditorBlock.js.map +0 -1
  435. package/build/cjs/blocks/TestEditorBlock/form.d.ts +0 -3
  436. package/build/cjs/blocks/TestEditorBlock/form.js +0 -91
  437. package/build/cjs/blocks/TestEditorBlock/form.js.map +0 -1
  438. package/build/cjs/blocks/TestEditorBlock/index.d.ts +0 -11
  439. package/build/cjs/blocks/TestEditorBlock/index.js +0 -18
  440. package/build/cjs/blocks/TestEditorBlock/index.js.map +0 -1
  441. package/build/cjs/common/postMessage.d.ts +0 -4
  442. package/build/cjs/common/postMessage.js +0 -31
  443. package/build/cjs/common/postMessage.js.map +0 -1
  444. package/build/cjs/common/store.d.ts +0 -40
  445. package/build/cjs/common/store.js +0 -20
  446. package/build/cjs/common/store.js.map +0 -1
  447. package/build/cjs/common/types/actions.d.ts +0 -36
  448. package/build/cjs/common/types/actions.js +0 -3
  449. package/build/cjs/common/types/actions.js.map +0 -1
  450. package/build/cjs/common/types/common.d.ts +0 -5
  451. package/build/cjs/common/types/common.js +0 -3
  452. package/build/cjs/common/types/common.js.map +0 -1
  453. package/build/cjs/common/types/forms.d.ts +0 -97
  454. package/build/cjs/common/types/forms.js +0 -3
  455. package/build/cjs/common/types/forms.js.map +0 -1
  456. package/build/cjs/common/types/index.d.ts +0 -4
  457. package/build/cjs/common/types/index.js +0 -8
  458. package/build/cjs/common/types/index.js.map +0 -1
  459. package/build/cjs/common/types/messages.d.ts +0 -9
  460. package/build/cjs/common/types/messages.js +0 -3
  461. package/build/cjs/common/types/messages.js.map +0 -1
  462. package/build/cjs/common/utils.d.ts +0 -25
  463. package/build/cjs/common/utils.js +0 -22
  464. package/build/cjs/common/utils.js.map +0 -1
  465. package/build/cjs/components/Image/dynamic-form.d.ts +0 -2
  466. package/build/cjs/components/Image/dynamic-form.js +0 -85
  467. package/build/cjs/components/Image/dynamic-form.js.map +0 -1
  468. package/build/cjs/components/editor/ItemWrap/ItemWrap.css +0 -9
  469. package/build/cjs/components/editor/ItemWrap/ItemWrap.d.ts +0 -6
  470. package/build/cjs/components/editor/ItemWrap/ItemWrap.js +0 -12
  471. package/build/cjs/components/editor/ItemWrap/ItemWrap.js.map +0 -1
  472. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.d.ts +0 -7
  473. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.js +0 -10
  474. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.js.map +0 -1
  475. package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.d.ts +0 -5
  476. package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.js +0 -34
  477. package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.js.map +0 -1
  478. package/build/cjs/context/editorStoreContext/index.d.ts +0 -2
  479. package/build/cjs/context/editorStoreContext/index.js +0 -6
  480. package/build/cjs/context/editorStoreContext/index.js.map +0 -1
  481. package/build/cjs/editor/data/templates/test-editor-block.json +0 -18
  482. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.css +0 -0
  483. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.d.ts +0 -9
  484. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.js +0 -115
  485. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.js.map +0 -1
  486. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +0 -76
  487. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +0 -12
  488. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +0 -27
  489. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.js.map +0 -1
  490. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.css +0 -37
  491. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +0 -11
  492. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.js +0 -68
  493. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.js.map +0 -1
  494. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +0 -10
  495. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +0 -22
  496. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js.map +0 -1
  497. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.css +0 -3
  498. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.d.ts +0 -8
  499. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js +0 -13
  500. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js.map +0 -1
  501. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +0 -8
  502. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.js +0 -16
  503. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.js.map +0 -1
  504. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +0 -10
  505. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.js +0 -12
  506. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.js.map +0 -1
  507. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +0 -6
  508. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +0 -9
  509. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +0 -35
  510. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js.map +0 -1
  511. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.css +0 -3
  512. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.d.ts +0 -11
  513. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.js +0 -14
  514. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.js.map +0 -1
  515. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +0 -8
  516. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.js +0 -13
  517. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.js.map +0 -1
  518. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +0 -8
  519. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +0 -13
  520. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js.map +0 -1
  521. package/build/cjs/editor-v2/components/DynamicForm/utils.d.ts +0 -3
  522. package/build/cjs/editor-v2/components/DynamicForm/utils.js +0 -23
  523. package/build/cjs/editor-v2/components/DynamicForm/utils.js.map +0 -1
  524. package/build/cjs/editor-v2/components/Panels/Panels.css +0 -24
  525. package/build/cjs/editor-v2/components/Panels/Panels.d.ts +0 -8
  526. package/build/cjs/editor-v2/components/Panels/Panels.js +0 -28
  527. package/build/cjs/editor-v2/components/Panels/Panels.js.map +0 -1
  528. package/build/cjs/editor-v2/components/Sidebar/Sidebar.css +0 -14
  529. package/build/cjs/editor-v2/components/Sidebar/Sidebar.d.ts +0 -10
  530. package/build/cjs/editor-v2/components/Sidebar/Sidebar.js +0 -13
  531. package/build/cjs/editor-v2/components/Sidebar/Sidebar.js.map +0 -1
  532. package/build/cjs/editor-v2/components/Tabs/Tabs.css +0 -31
  533. package/build/cjs/editor-v2/components/Tabs/Tabs.d.ts +0 -13
  534. package/build/cjs/editor-v2/components/Tabs/Tabs.js +0 -32
  535. package/build/cjs/editor-v2/components/Tabs/Tabs.js.map +0 -1
  536. package/build/cjs/editor-v2/constants.d.ts +0 -1
  537. package/build/cjs/editor-v2/constants.js +0 -5
  538. package/build/cjs/editor-v2/constants.js.map +0 -1
  539. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.css +0 -22
  540. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.d.ts +0 -4
  541. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js +0 -58
  542. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js.map +0 -1
  543. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.css +0 -20
  544. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.d.ts +0 -5
  545. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.js +0 -28
  546. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.js.map +0 -1
  547. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.css +0 -52
  548. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.d.ts +0 -2
  549. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.js +0 -43
  550. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.js.map +0 -1
  551. package/build/cjs/editor-v2/containers/Editor/Editor.css +0 -38
  552. package/build/cjs/editor-v2/containers/Editor/Editor.d.ts +0 -21
  553. package/build/cjs/editor-v2/containers/Editor/Editor.js +0 -41
  554. package/build/cjs/editor-v2/containers/Editor/Editor.js.map +0 -1
  555. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.css +0 -9
  556. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.d.ts +0 -5
  557. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.js +0 -17
  558. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.js.map +0 -1
  559. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.css +0 -49
  560. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.d.ts +0 -7
  561. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.js +0 -34
  562. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.js.map +0 -1
  563. package/build/cjs/editor-v2/containers/Overlay/Overlay.css +0 -64
  564. package/build/cjs/editor-v2/containers/Overlay/Overlay.d.ts +0 -6
  565. package/build/cjs/editor-v2/containers/Overlay/Overlay.js +0 -90
  566. package/build/cjs/editor-v2/containers/Overlay/Overlay.js.map +0 -1
  567. package/build/cjs/editor-v2/containers/Source/Source.css +0 -14
  568. package/build/cjs/editor-v2/containers/Source/Source.d.ts +0 -2
  569. package/build/cjs/editor-v2/containers/Source/Source.js +0 -28
  570. package/build/cjs/editor-v2/containers/Source/Source.js.map +0 -1
  571. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.css +0 -37
  572. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.d.ts +0 -6
  573. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.js +0 -41
  574. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.js.map +0 -1
  575. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.css +0 -3
  576. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.d.ts +0 -7
  577. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js +0 -18
  578. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js.map +0 -1
  579. package/build/cjs/editor-v2/containers/Tree/DragContext.css +0 -25
  580. package/build/cjs/editor-v2/containers/Tree/DragContext.d.ts +0 -14
  581. package/build/cjs/editor-v2/containers/Tree/DragContext.js +0 -49
  582. package/build/cjs/editor-v2/containers/Tree/DragContext.js.map +0 -1
  583. package/build/cjs/editor-v2/containers/Tree/Tree.css +0 -10
  584. package/build/cjs/editor-v2/containers/Tree/Tree.d.ts +0 -2
  585. package/build/cjs/editor-v2/containers/Tree/Tree.js +0 -36
  586. package/build/cjs/editor-v2/containers/Tree/Tree.js.map +0 -1
  587. package/build/cjs/editor-v2/containers/Tree/TreeContent.css +0 -12
  588. package/build/cjs/editor-v2/containers/Tree/TreeContent.d.ts +0 -16
  589. package/build/cjs/editor-v2/containers/Tree/TreeContent.js +0 -61
  590. package/build/cjs/editor-v2/containers/Tree/TreeContent.js.map +0 -1
  591. package/build/cjs/editor-v2/containers/Tree/TreeItem.css +0 -50
  592. package/build/cjs/editor-v2/containers/Tree/TreeItem.d.ts +0 -13
  593. package/build/cjs/editor-v2/containers/Tree/TreeItem.js +0 -144
  594. package/build/cjs/editor-v2/containers/Tree/TreeItem.js.map +0 -1
  595. package/build/cjs/editor-v2/containers/Tree/index.d.ts +0 -4
  596. package/build/cjs/editor-v2/containers/Tree/index.js +0 -10
  597. package/build/cjs/editor-v2/containers/Tree/index.js.map +0 -1
  598. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.css +0 -13
  599. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.d.ts +0 -3
  600. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.js +0 -54
  601. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.js.map +0 -1
  602. package/build/cjs/editor-v2/containers/index.d.ts +0 -7
  603. package/build/cjs/editor-v2/containers/index.js +0 -19
  604. package/build/cjs/editor-v2/containers/index.js.map +0 -1
  605. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.d.ts +0 -7
  606. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.js +0 -10
  607. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.js.map +0 -1
  608. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.d.ts +0 -5
  609. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.js +0 -35
  610. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.js.map +0 -1
  611. package/build/cjs/editor-v2/context/editorStore/index.d.ts +0 -2
  612. package/build/cjs/editor-v2/context/editorStore/index.js +0 -6
  613. package/build/cjs/editor-v2/context/editorStore/index.js.map +0 -1
  614. package/build/cjs/editor-v2/context/iframeContext/IframeContext.d.ts +0 -12
  615. package/build/cjs/editor-v2/context/iframeContext/IframeContext.js +0 -14
  616. package/build/cjs/editor-v2/context/iframeContext/IframeContext.js.map +0 -1
  617. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.d.ts +0 -7
  618. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.js +0 -21
  619. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.js.map +0 -1
  620. package/build/cjs/editor-v2/context/iframeContext/index.d.ts +0 -2
  621. package/build/cjs/editor-v2/context/iframeContext/index.js +0 -6
  622. package/build/cjs/editor-v2/context/iframeContext/index.js.map +0 -1
  623. package/build/cjs/editor-v2/hooks/index.d.ts +0 -2
  624. package/build/cjs/editor-v2/hooks/index.js +0 -8
  625. package/build/cjs/editor-v2/hooks/index.js.map +0 -1
  626. package/build/cjs/editor-v2/hooks/useEditorTabs.d.ts +0 -16
  627. package/build/cjs/editor-v2/hooks/useEditorTabs.js +0 -77
  628. package/build/cjs/editor-v2/hooks/useEditorTabs.js.map +0 -1
  629. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.d.ts +0 -2
  630. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js +0 -31
  631. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js.map +0 -1
  632. package/build/cjs/editor-v2/hooks/useMainEditorStore.d.ts +0 -1
  633. package/build/cjs/editor-v2/hooks/useMainEditorStore.js +0 -13
  634. package/build/cjs/editor-v2/hooks/useMainEditorStore.js.map +0 -1
  635. package/build/cjs/editor-v2/hooks/usePostMessageEvents.d.ts +0 -6
  636. package/build/cjs/editor-v2/hooks/usePostMessageEvents.js +0 -19
  637. package/build/cjs/editor-v2/hooks/usePostMessageEvents.js.map +0 -1
  638. package/build/cjs/editor-v2/index.d.ts +0 -5
  639. package/build/cjs/editor-v2/index.js +0 -9
  640. package/build/cjs/editor-v2/index.js.map +0 -1
  641. package/build/cjs/editor-v2/store.d.ts +0 -48
  642. package/build/cjs/editor-v2/store.js +0 -181
  643. package/build/cjs/editor-v2/store.js.map +0 -1
  644. package/build/cjs/editor-v2/styles/mixins.css +0 -0
  645. package/build/cjs/editor-v2/styles/root.css +0 -9
  646. package/build/cjs/editor-v2/styles/variables.css +0 -0
  647. package/build/cjs/editor-v2/utils/cn.d.ts +0 -2
  648. package/build/cjs/editor-v2/utils/cn.js +0 -7
  649. package/build/cjs/editor-v2/utils/cn.js.map +0 -1
  650. package/build/cjs/editor-v2/utils/code.d.ts +0 -6
  651. package/build/cjs/editor-v2/utils/code.js +0 -13
  652. package/build/cjs/editor-v2/utils/code.js.map +0 -1
  653. package/build/cjs/editor-v2/utils/index.d.ts +0 -20
  654. package/build/cjs/editor-v2/utils/index.js +0 -161
  655. package/build/cjs/editor-v2/utils/index.js.map +0 -1
  656. package/build/cjs/hooks/usePCEditorBlockMouseEvents.d.ts +0 -8
  657. package/build/cjs/hooks/usePCEditorBlockMouseEvents.js +0 -50
  658. package/build/cjs/hooks/usePCEditorBlockMouseEvents.js.map +0 -1
  659. package/build/cjs/hooks/usePCEditorBlockSelection.d.ts +0 -2
  660. package/build/cjs/hooks/usePCEditorBlockSelection.js +0 -30
  661. package/build/cjs/hooks/usePCEditorBlockSelection.js.map +0 -1
  662. package/build/cjs/hooks/usePCEditorInitializeEvents.d.ts +0 -7
  663. package/build/cjs/hooks/usePCEditorInitializeEvents.js +0 -63
  664. package/build/cjs/hooks/usePCEditorInitializeEvents.js.map +0 -1
  665. package/build/cjs/hooks/usePCEditorItemWrap.d.ts +0 -10
  666. package/build/cjs/hooks/usePCEditorItemWrap.js +0 -21
  667. package/build/cjs/hooks/usePCEditorItemWrap.js.map +0 -1
  668. package/build/cjs/hooks/usePCEditorStore.d.ts +0 -1
  669. package/build/cjs/hooks/usePCEditorStore.js +0 -13
  670. package/build/cjs/hooks/usePCEditorStore.js.map +0 -1
  671. package/build/cjs/hooks/usePostMessageAPI.d.ts +0 -4
  672. package/build/cjs/hooks/usePostMessageAPI.js +0 -30
  673. package/build/cjs/hooks/usePostMessageAPI.js.map +0 -1
  674. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.d.ts +0 -2
  675. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.js +0 -82
  676. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.js.map +0 -1
  677. package/build/cjs/sub-blocks/BackgroundCard/index.d.ts +0 -3
  678. package/build/cjs/sub-blocks/BackgroundCard/index.js +0 -22
  679. package/build/cjs/sub-blocks/BackgroundCard/index.js.map +0 -1
  680. package/build/cjs/sub-blocks/BannerCard/index.d.ts +0 -3
  681. package/build/cjs/sub-blocks/BannerCard/index.js +0 -24
  682. package/build/cjs/sub-blocks/BannerCard/index.js.map +0 -1
  683. package/build/cjs/sub-blocks/BasicCard/index.d.ts +0 -3
  684. package/build/cjs/sub-blocks/BasicCard/index.js +0 -20
  685. package/build/cjs/sub-blocks/BasicCard/index.js.map +0 -1
  686. package/build/cjs/sub-blocks/Content/index.d.ts +0 -3
  687. package/build/cjs/sub-blocks/Content/index.js +0 -20
  688. package/build/cjs/sub-blocks/Content/index.js.map +0 -1
  689. package/build/cjs/sub-blocks/Divider/index.d.ts +0 -3
  690. package/build/cjs/sub-blocks/Divider/index.js +0 -16
  691. package/build/cjs/sub-blocks/Divider/index.js.map +0 -1
  692. package/build/cjs/sub-blocks/ImageCard/index.d.ts +0 -3
  693. package/build/cjs/sub-blocks/ImageCard/index.js +0 -20
  694. package/build/cjs/sub-blocks/ImageCard/index.js.map +0 -1
  695. package/build/cjs/sub-blocks/LayoutItem/index.d.ts +0 -3
  696. package/build/cjs/sub-blocks/LayoutItem/index.js +0 -26
  697. package/build/cjs/sub-blocks/LayoutItem/index.js.map +0 -1
  698. package/build/cjs/sub-blocks/MediaCard/index.d.ts +0 -3
  699. package/build/cjs/sub-blocks/MediaCard/index.js +0 -23
  700. package/build/cjs/sub-blocks/MediaCard/index.js.map +0 -1
  701. package/build/cjs/sub-blocks/PriceCard/index.d.ts +0 -3
  702. package/build/cjs/sub-blocks/PriceCard/index.js +0 -33
  703. package/build/cjs/sub-blocks/PriceCard/index.js.map +0 -1
  704. package/build/cjs/sub-blocks/PriceDetailed/index.d.ts +0 -4
  705. package/build/cjs/sub-blocks/PriceDetailed/index.js +0 -35
  706. package/build/cjs/sub-blocks/PriceDetailed/index.js.map +0 -1
  707. package/build/cjs/sub-blocks/Quote/index.d.ts +0 -3
  708. package/build/cjs/sub-blocks/Quote/index.js +0 -23
  709. package/build/cjs/sub-blocks/Quote/index.js.map +0 -1
  710. package/build/cjs/utils/editor.d.ts +0 -2
  711. package/build/cjs/utils/editor.js +0 -25
  712. package/build/cjs/utils/editor.js.map +0 -1
  713. package/build/cjs/utils/form-generator.d.ts +0 -9
  714. package/build/cjs/utils/form-generator.js +0 -131
  715. package/build/cjs/utils/form-generator.js.map +0 -1
  716. package/build/cjs/utils/navigation.d.ts +0 -3
  717. package/build/cjs/utils/navigation.js +0 -14
  718. package/build/cjs/utils/navigation.js.map +0 -1
  719. package/build/esm/blocks/Banner/index.d.ts +0 -3
  720. package/build/esm/blocks/Banner/index.js +0 -21
  721. package/build/esm/blocks/Banner/index.js.map +0 -1
  722. package/build/esm/blocks/CardLayout/index.d.ts +0 -5
  723. package/build/esm/blocks/CardLayout/index.js +0 -182
  724. package/build/esm/blocks/CardLayout/index.js.map +0 -1
  725. package/build/esm/blocks/Companies/index.d.ts +0 -3
  726. package/build/esm/blocks/Companies/index.js +0 -17
  727. package/build/esm/blocks/Companies/index.js.map +0 -1
  728. package/build/esm/blocks/ContentLayout/index.d.ts +0 -41
  729. package/build/esm/blocks/ContentLayout/index.js +0 -78
  730. package/build/esm/blocks/ContentLayout/index.js.map +0 -1
  731. package/build/esm/blocks/ExtendedFeatures/index.d.ts +0 -58
  732. package/build/esm/blocks/ExtendedFeatures/index.js +0 -74
  733. package/build/esm/blocks/ExtendedFeatures/index.js.map +0 -1
  734. package/build/esm/blocks/FilterBlock/index.d.ts +0 -29
  735. package/build/esm/blocks/FilterBlock/index.js +0 -95
  736. package/build/esm/blocks/FilterBlock/index.js.map +0 -1
  737. package/build/esm/blocks/Form/index.d.ts +0 -13
  738. package/build/esm/blocks/Form/index.js +0 -17
  739. package/build/esm/blocks/Form/index.js.map +0 -1
  740. package/build/esm/blocks/Header/dynamic-form.d.ts +0 -2
  741. package/build/esm/blocks/Header/dynamic-form.js +0 -728
  742. package/build/esm/blocks/Header/dynamic-form.js.map +0 -1
  743. package/build/esm/blocks/Header/index.d.ts +0 -20
  744. package/build/esm/blocks/Header/index.js +0 -31
  745. package/build/esm/blocks/Header/index.js.map +0 -1
  746. package/build/esm/blocks/HeaderSlider/index.d.ts +0 -32
  747. package/build/esm/blocks/HeaderSlider/index.js +0 -37
  748. package/build/esm/blocks/HeaderSlider/index.js.map +0 -1
  749. package/build/esm/blocks/Icons/index.d.ts +0 -20
  750. package/build/esm/blocks/Icons/index.js +0 -61
  751. package/build/esm/blocks/Icons/index.js.map +0 -1
  752. package/build/esm/blocks/Info/index.d.ts +0 -22
  753. package/build/esm/blocks/Info/index.js +0 -40
  754. package/build/esm/blocks/Info/index.js.map +0 -1
  755. package/build/esm/blocks/Map/index.d.ts +0 -12
  756. package/build/esm/blocks/Map/index.js +0 -16
  757. package/build/esm/blocks/Map/index.js.map +0 -1
  758. package/build/esm/blocks/Media/index.d.ts +0 -39
  759. package/build/esm/blocks/Media/index.js +0 -54
  760. package/build/esm/blocks/Media/index.js.map +0 -1
  761. package/build/esm/blocks/PromoFeaturesBlock/index.d.ts +0 -22
  762. package/build/esm/blocks/PromoFeaturesBlock/index.js +0 -46
  763. package/build/esm/blocks/PromoFeaturesBlock/index.js.map +0 -1
  764. package/build/esm/blocks/Questions/index.d.ts +0 -30
  765. package/build/esm/blocks/Questions/index.js +0 -46
  766. package/build/esm/blocks/Questions/index.js.map +0 -1
  767. package/build/esm/blocks/Share/index.d.ts +0 -13
  768. package/build/esm/blocks/Share/index.js +0 -17
  769. package/build/esm/blocks/Share/index.js.map +0 -1
  770. package/build/esm/blocks/Slider/dynamic-form.d.ts +0 -3
  771. package/build/esm/blocks/Slider/dynamic-form.js +0 -223
  772. package/build/esm/blocks/Slider/dynamic-form.js.map +0 -1
  773. package/build/esm/blocks/Slider/index.d.ts +0 -28
  774. package/build/esm/blocks/Slider/index.js +0 -44
  775. package/build/esm/blocks/Slider/index.js.map +0 -1
  776. package/build/esm/blocks/Table/index.d.ts +0 -18
  777. package/build/esm/blocks/Table/index.js +0 -29
  778. package/build/esm/blocks/Table/index.js.map +0 -1
  779. package/build/esm/blocks/Tabs/index.d.ts +0 -17
  780. package/build/esm/blocks/Tabs/index.js +0 -28
  781. package/build/esm/blocks/Tabs/index.js.map +0 -1
  782. package/build/esm/blocks/TestEditorBlock/TestEditorBlock.d.ts +0 -5
  783. package/build/esm/blocks/TestEditorBlock/TestEditorBlock.js +0 -8
  784. package/build/esm/blocks/TestEditorBlock/TestEditorBlock.js.map +0 -1
  785. package/build/esm/blocks/TestEditorBlock/form.d.ts +0 -3
  786. package/build/esm/blocks/TestEditorBlock/form.js +0 -89
  787. package/build/esm/blocks/TestEditorBlock/form.js.map +0 -1
  788. package/build/esm/blocks/TestEditorBlock/index.d.ts +0 -11
  789. package/build/esm/blocks/TestEditorBlock/index.js +0 -14
  790. package/build/esm/blocks/TestEditorBlock/index.js.map +0 -1
  791. package/build/esm/common/postMessage.d.ts +0 -4
  792. package/build/esm/common/postMessage.js +0 -25
  793. package/build/esm/common/postMessage.js.map +0 -1
  794. package/build/esm/common/store.d.ts +0 -40
  795. package/build/esm/common/store.js +0 -17
  796. package/build/esm/common/store.js.map +0 -1
  797. package/build/esm/common/types/actions.d.ts +0 -36
  798. package/build/esm/common/types/actions.js +0 -2
  799. package/build/esm/common/types/actions.js.map +0 -1
  800. package/build/esm/common/types/common.d.ts +0 -5
  801. package/build/esm/common/types/common.js +0 -2
  802. package/build/esm/common/types/common.js.map +0 -1
  803. package/build/esm/common/types/forms.d.ts +0 -97
  804. package/build/esm/common/types/forms.js +0 -2
  805. package/build/esm/common/types/forms.js.map +0 -1
  806. package/build/esm/common/types/index.d.ts +0 -4
  807. package/build/esm/common/types/index.js +0 -5
  808. package/build/esm/common/types/index.js.map +0 -1
  809. package/build/esm/common/types/messages.d.ts +0 -9
  810. package/build/esm/common/types/messages.js +0 -2
  811. package/build/esm/common/types/messages.js.map +0 -1
  812. package/build/esm/common/utils.d.ts +0 -25
  813. package/build/esm/common/utils.js +0 -17
  814. package/build/esm/common/utils.js.map +0 -1
  815. package/build/esm/components/Image/dynamic-form.d.ts +0 -2
  816. package/build/esm/components/Image/dynamic-form.js +0 -81
  817. package/build/esm/components/Image/dynamic-form.js.map +0 -1
  818. package/build/esm/components/editor/ItemWrap/ItemWrap.css +0 -9
  819. package/build/esm/components/editor/ItemWrap/ItemWrap.d.ts +0 -7
  820. package/build/esm/components/editor/ItemWrap/ItemWrap.js +0 -11
  821. package/build/esm/components/editor/ItemWrap/ItemWrap.js.map +0 -1
  822. package/build/esm/context/editorStoreContext/PCEditorStoreContext.d.ts +0 -7
  823. package/build/esm/context/editorStoreContext/PCEditorStoreContext.js +0 -6
  824. package/build/esm/context/editorStoreContext/PCEditorStoreContext.js.map +0 -1
  825. package/build/esm/context/editorStoreContext/PCEditorStoreProvider.d.ts +0 -5
  826. package/build/esm/context/editorStoreContext/PCEditorStoreProvider.js +0 -29
  827. package/build/esm/context/editorStoreContext/PCEditorStoreProvider.js.map +0 -1
  828. package/build/esm/context/editorStoreContext/index.d.ts +0 -2
  829. package/build/esm/context/editorStoreContext/index.js +0 -3
  830. package/build/esm/context/editorStoreContext/index.js.map +0 -1
  831. package/build/esm/editor/data/templates/test-editor-block.json +0 -18
  832. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.css +0 -0
  833. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.d.ts +0 -10
  834. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.js +0 -113
  835. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.js.map +0 -1
  836. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +0 -76
  837. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +0 -13
  838. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +0 -25
  839. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.js.map +0 -1
  840. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.css +0 -37
  841. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +0 -12
  842. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.js +0 -66
  843. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.js.map +0 -1
  844. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +0 -10
  845. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +0 -19
  846. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js.map +0 -1
  847. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.css +0 -3
  848. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.d.ts +0 -9
  849. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js +0 -11
  850. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js.map +0 -1
  851. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +0 -8
  852. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.js +0 -13
  853. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.js.map +0 -1
  854. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +0 -10
  855. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.js +0 -9
  856. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.js.map +0 -1
  857. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +0 -6
  858. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +0 -10
  859. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +0 -33
  860. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js.map +0 -1
  861. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.css +0 -3
  862. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.d.ts +0 -12
  863. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.js +0 -12
  864. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.js.map +0 -1
  865. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +0 -8
  866. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.js +0 -10
  867. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.js.map +0 -1
  868. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +0 -8
  869. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +0 -10
  870. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js.map +0 -1
  871. package/build/esm/editor-v2/components/DynamicForm/utils.d.ts +0 -3
  872. package/build/esm/editor-v2/components/DynamicForm/utils.js +0 -17
  873. package/build/esm/editor-v2/components/DynamicForm/utils.js.map +0 -1
  874. package/build/esm/editor-v2/components/Panels/Panels.css +0 -24
  875. package/build/esm/editor-v2/components/Panels/Panels.d.ts +0 -9
  876. package/build/esm/editor-v2/components/Panels/Panels.js +0 -24
  877. package/build/esm/editor-v2/components/Panels/Panels.js.map +0 -1
  878. package/build/esm/editor-v2/components/Sidebar/Sidebar.css +0 -14
  879. package/build/esm/editor-v2/components/Sidebar/Sidebar.d.ts +0 -11
  880. package/build/esm/editor-v2/components/Sidebar/Sidebar.js +0 -9
  881. package/build/esm/editor-v2/components/Sidebar/Sidebar.js.map +0 -1
  882. package/build/esm/editor-v2/components/Tabs/Tabs.css +0 -31
  883. package/build/esm/editor-v2/components/Tabs/Tabs.d.ts +0 -14
  884. package/build/esm/editor-v2/components/Tabs/Tabs.js +0 -30
  885. package/build/esm/editor-v2/components/Tabs/Tabs.js.map +0 -1
  886. package/build/esm/editor-v2/constants.d.ts +0 -1
  887. package/build/esm/editor-v2/constants.js +0 -2
  888. package/build/esm/editor-v2/constants.js.map +0 -1
  889. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.css +0 -22
  890. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.d.ts +0 -5
  891. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js +0 -56
  892. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js.map +0 -1
  893. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.css +0 -20
  894. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.d.ts +0 -6
  895. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.js +0 -26
  896. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.js.map +0 -1
  897. package/build/esm/editor-v2/containers/BlocksList/BlocksList.css +0 -52
  898. package/build/esm/editor-v2/containers/BlocksList/BlocksList.d.ts +0 -3
  899. package/build/esm/editor-v2/containers/BlocksList/BlocksList.js +0 -41
  900. package/build/esm/editor-v2/containers/BlocksList/BlocksList.js.map +0 -1
  901. package/build/esm/editor-v2/containers/Editor/Editor.css +0 -38
  902. package/build/esm/editor-v2/containers/Editor/Editor.d.ts +0 -22
  903. package/build/esm/editor-v2/containers/Editor/Editor.js +0 -37
  904. package/build/esm/editor-v2/containers/Editor/Editor.js.map +0 -1
  905. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.css +0 -9
  906. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.d.ts +0 -6
  907. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.js +0 -15
  908. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.js.map +0 -1
  909. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.css +0 -49
  910. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.d.ts +0 -8
  911. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.js +0 -32
  912. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.js.map +0 -1
  913. package/build/esm/editor-v2/containers/Overlay/Overlay.css +0 -64
  914. package/build/esm/editor-v2/containers/Overlay/Overlay.d.ts +0 -7
  915. package/build/esm/editor-v2/containers/Overlay/Overlay.js +0 -88
  916. package/build/esm/editor-v2/containers/Overlay/Overlay.js.map +0 -1
  917. package/build/esm/editor-v2/containers/Source/Source.css +0 -14
  918. package/build/esm/editor-v2/containers/Source/Source.d.ts +0 -3
  919. package/build/esm/editor-v2/containers/Source/Source.js +0 -26
  920. package/build/esm/editor-v2/containers/Source/Source.js.map +0 -1
  921. package/build/esm/editor-v2/containers/SourceCode/SourceCode.css +0 -37
  922. package/build/esm/editor-v2/containers/SourceCode/SourceCode.d.ts +0 -7
  923. package/build/esm/editor-v2/containers/SourceCode/SourceCode.js +0 -39
  924. package/build/esm/editor-v2/containers/SourceCode/SourceCode.js.map +0 -1
  925. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.css +0 -3
  926. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.d.ts +0 -8
  927. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js +0 -14
  928. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js.map +0 -1
  929. package/build/esm/editor-v2/containers/Tree/DragContext.css +0 -25
  930. package/build/esm/editor-v2/containers/Tree/DragContext.d.ts +0 -15
  931. package/build/esm/editor-v2/containers/Tree/DragContext.js +0 -45
  932. package/build/esm/editor-v2/containers/Tree/DragContext.js.map +0 -1
  933. package/build/esm/editor-v2/containers/Tree/Tree.css +0 -10
  934. package/build/esm/editor-v2/containers/Tree/Tree.d.ts +0 -3
  935. package/build/esm/editor-v2/containers/Tree/Tree.js +0 -34
  936. package/build/esm/editor-v2/containers/Tree/Tree.js.map +0 -1
  937. package/build/esm/editor-v2/containers/Tree/TreeContent.css +0 -12
  938. package/build/esm/editor-v2/containers/Tree/TreeContent.d.ts +0 -17
  939. package/build/esm/editor-v2/containers/Tree/TreeContent.js +0 -57
  940. package/build/esm/editor-v2/containers/Tree/TreeContent.js.map +0 -1
  941. package/build/esm/editor-v2/containers/Tree/TreeItem.css +0 -50
  942. package/build/esm/editor-v2/containers/Tree/TreeItem.d.ts +0 -14
  943. package/build/esm/editor-v2/containers/Tree/TreeItem.js +0 -140
  944. package/build/esm/editor-v2/containers/Tree/TreeItem.js.map +0 -1
  945. package/build/esm/editor-v2/containers/Tree/index.d.ts +0 -4
  946. package/build/esm/editor-v2/containers/Tree/index.js +0 -5
  947. package/build/esm/editor-v2/containers/Tree/index.js.map +0 -1
  948. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.css +0 -13
  949. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.d.ts +0 -4
  950. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.js +0 -52
  951. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.js.map +0 -1
  952. package/build/esm/editor-v2/containers/index.d.ts +0 -7
  953. package/build/esm/editor-v2/containers/index.js +0 -8
  954. package/build/esm/editor-v2/containers/index.js.map +0 -1
  955. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.d.ts +0 -7
  956. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.js +0 -6
  957. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.js.map +0 -1
  958. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.d.ts +0 -5
  959. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.js +0 -30
  960. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.js.map +0 -1
  961. package/build/esm/editor-v2/context/editorStore/index.d.ts +0 -2
  962. package/build/esm/editor-v2/context/editorStore/index.js +0 -3
  963. package/build/esm/editor-v2/context/editorStore/index.js.map +0 -1
  964. package/build/esm/editor-v2/context/iframeContext/IframeContext.d.ts +0 -12
  965. package/build/esm/editor-v2/context/iframeContext/IframeContext.js +0 -10
  966. package/build/esm/editor-v2/context/iframeContext/IframeContext.js.map +0 -1
  967. package/build/esm/editor-v2/context/iframeContext/IframeProvider.d.ts +0 -7
  968. package/build/esm/editor-v2/context/iframeContext/IframeProvider.js +0 -16
  969. package/build/esm/editor-v2/context/iframeContext/IframeProvider.js.map +0 -1
  970. package/build/esm/editor-v2/context/iframeContext/index.d.ts +0 -2
  971. package/build/esm/editor-v2/context/iframeContext/index.js +0 -3
  972. package/build/esm/editor-v2/context/iframeContext/index.js.map +0 -1
  973. package/build/esm/editor-v2/hooks/index.d.ts +0 -2
  974. package/build/esm/editor-v2/hooks/index.js +0 -3
  975. package/build/esm/editor-v2/hooks/index.js.map +0 -1
  976. package/build/esm/editor-v2/hooks/useEditorTabs.d.ts +0 -16
  977. package/build/esm/editor-v2/hooks/useEditorTabs.js +0 -72
  978. package/build/esm/editor-v2/hooks/useEditorTabs.js.map +0 -1
  979. package/build/esm/editor-v2/hooks/useMainEditorInitialize.d.ts +0 -2
  980. package/build/esm/editor-v2/hooks/useMainEditorInitialize.js +0 -29
  981. package/build/esm/editor-v2/hooks/useMainEditorInitialize.js.map +0 -1
  982. package/build/esm/editor-v2/hooks/useMainEditorStore.d.ts +0 -1
  983. package/build/esm/editor-v2/hooks/useMainEditorStore.js +0 -8
  984. package/build/esm/editor-v2/hooks/useMainEditorStore.js.map +0 -1
  985. package/build/esm/editor-v2/hooks/usePostMessageEvents.d.ts +0 -6
  986. package/build/esm/editor-v2/hooks/usePostMessageEvents.js +0 -15
  987. package/build/esm/editor-v2/hooks/usePostMessageEvents.js.map +0 -1
  988. package/build/esm/editor-v2/index.d.ts +0 -5
  989. package/build/esm/editor-v2/index.js +0 -6
  990. package/build/esm/editor-v2/index.js.map +0 -1
  991. package/build/esm/editor-v2/store.d.ts +0 -48
  992. package/build/esm/editor-v2/store.js +0 -177
  993. package/build/esm/editor-v2/store.js.map +0 -1
  994. package/build/esm/editor-v2/styles/mixins.css +0 -0
  995. package/build/esm/editor-v2/styles/root.css +0 -9
  996. package/build/esm/editor-v2/styles/variables.css +0 -0
  997. package/build/esm/editor-v2/utils/cn.d.ts +0 -2
  998. package/build/esm/editor-v2/utils/cn.js +0 -4
  999. package/build/esm/editor-v2/utils/cn.js.map +0 -1
  1000. package/build/esm/editor-v2/utils/code.d.ts +0 -6
  1001. package/build/esm/editor-v2/utils/code.js +0 -9
  1002. package/build/esm/editor-v2/utils/code.js.map +0 -1
  1003. package/build/esm/editor-v2/utils/index.d.ts +0 -20
  1004. package/build/esm/editor-v2/utils/index.js +0 -143
  1005. package/build/esm/editor-v2/utils/index.js.map +0 -1
  1006. package/build/esm/hooks/usePCEditorBlockMouseEvents.d.ts +0 -8
  1007. package/build/esm/hooks/usePCEditorBlockMouseEvents.js +0 -47
  1008. package/build/esm/hooks/usePCEditorBlockMouseEvents.js.map +0 -1
  1009. package/build/esm/hooks/usePCEditorBlockSelection.d.ts +0 -2
  1010. package/build/esm/hooks/usePCEditorBlockSelection.js +0 -27
  1011. package/build/esm/hooks/usePCEditorBlockSelection.js.map +0 -1
  1012. package/build/esm/hooks/usePCEditorInitializeEvents.d.ts +0 -7
  1013. package/build/esm/hooks/usePCEditorInitializeEvents.js +0 -58
  1014. package/build/esm/hooks/usePCEditorInitializeEvents.js.map +0 -1
  1015. package/build/esm/hooks/usePCEditorItemWrap.d.ts +0 -10
  1016. package/build/esm/hooks/usePCEditorItemWrap.js +0 -17
  1017. package/build/esm/hooks/usePCEditorItemWrap.js.map +0 -1
  1018. package/build/esm/hooks/usePCEditorStore.d.ts +0 -1
  1019. package/build/esm/hooks/usePCEditorStore.js +0 -8
  1020. package/build/esm/hooks/usePCEditorStore.js.map +0 -1
  1021. package/build/esm/hooks/usePostMessageAPI.d.ts +0 -4
  1022. package/build/esm/hooks/usePostMessageAPI.js +0 -24
  1023. package/build/esm/hooks/usePostMessageAPI.js.map +0 -1
  1024. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.d.ts +0 -2
  1025. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.js +0 -79
  1026. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.js.map +0 -1
  1027. package/build/esm/sub-blocks/BackgroundCard/index.d.ts +0 -3
  1028. package/build/esm/sub-blocks/BackgroundCard/index.js +0 -19
  1029. package/build/esm/sub-blocks/BackgroundCard/index.js.map +0 -1
  1030. package/build/esm/sub-blocks/BannerCard/index.d.ts +0 -3
  1031. package/build/esm/sub-blocks/BannerCard/index.js +0 -21
  1032. package/build/esm/sub-blocks/BannerCard/index.js.map +0 -1
  1033. package/build/esm/sub-blocks/BasicCard/index.d.ts +0 -3
  1034. package/build/esm/sub-blocks/BasicCard/index.js +0 -17
  1035. package/build/esm/sub-blocks/BasicCard/index.js.map +0 -1
  1036. package/build/esm/sub-blocks/Content/index.d.ts +0 -3
  1037. package/build/esm/sub-blocks/Content/index.js +0 -17
  1038. package/build/esm/sub-blocks/Content/index.js.map +0 -1
  1039. package/build/esm/sub-blocks/Divider/index.d.ts +0 -3
  1040. package/build/esm/sub-blocks/Divider/index.js +0 -13
  1041. package/build/esm/sub-blocks/Divider/index.js.map +0 -1
  1042. package/build/esm/sub-blocks/ImageCard/index.d.ts +0 -3
  1043. package/build/esm/sub-blocks/ImageCard/index.js +0 -17
  1044. package/build/esm/sub-blocks/ImageCard/index.js.map +0 -1
  1045. package/build/esm/sub-blocks/LayoutItem/index.d.ts +0 -3
  1046. package/build/esm/sub-blocks/LayoutItem/index.js +0 -23
  1047. package/build/esm/sub-blocks/LayoutItem/index.js.map +0 -1
  1048. package/build/esm/sub-blocks/MediaCard/index.d.ts +0 -3
  1049. package/build/esm/sub-blocks/MediaCard/index.js +0 -20
  1050. package/build/esm/sub-blocks/MediaCard/index.js.map +0 -1
  1051. package/build/esm/sub-blocks/PriceCard/index.d.ts +0 -3
  1052. package/build/esm/sub-blocks/PriceCard/index.js +0 -30
  1053. package/build/esm/sub-blocks/PriceCard/index.js.map +0 -1
  1054. package/build/esm/sub-blocks/PriceDetailed/index.d.ts +0 -4
  1055. package/build/esm/sub-blocks/PriceDetailed/index.js +0 -32
  1056. package/build/esm/sub-blocks/PriceDetailed/index.js.map +0 -1
  1057. package/build/esm/sub-blocks/Quote/index.d.ts +0 -3
  1058. package/build/esm/sub-blocks/Quote/index.js +0 -20
  1059. package/build/esm/sub-blocks/Quote/index.js.map +0 -1
  1060. package/build/esm/utils/editor.d.ts +0 -2
  1061. package/build/esm/utils/editor.js +0 -21
  1062. package/build/esm/utils/editor.js.map +0 -1
  1063. package/build/esm/utils/form-generator.d.ts +0 -9
  1064. package/build/esm/utils/form-generator.js +0 -126
  1065. package/build/esm/utils/form-generator.js.map +0 -1
  1066. package/build/esm/utils/navigation.d.ts +0 -3
  1067. package/build/esm/utils/navigation.js +0 -9
  1068. package/build/esm/utils/navigation.js.map +0 -1
  1069. package/server/utils/navigation.d.ts +0 -3
  1070. package/server/utils/navigation.js +0 -15
  1071. package/widget/1113.index.js +0 -1
  1072. package/widget/123.index.js +0 -1
  1073. package/widget/1573.index.js +0 -1
  1074. package/widget/2030.index.js +0 -1
  1075. package/widget/229.index.js +0 -1
  1076. package/widget/261.index.js +0 -1
  1077. package/widget/302.index.js +0 -1
  1078. package/widget/3035.index.js +0 -1
  1079. package/widget/313.index.js +0 -1
  1080. package/widget/3521.index.js +0 -1
  1081. package/widget/3864.index.js +0 -1
  1082. package/widget/3939.index.js +0 -1
  1083. package/widget/4017.index.js +0 -1
  1084. package/widget/4149.index.js +0 -1
  1085. package/widget/4502.index.js +0 -1
  1086. package/widget/466.index.js +0 -1
  1087. package/widget/504.index.js +0 -1
  1088. package/widget/5321.index.js +0 -1
  1089. package/widget/5742.index.js +0 -1
  1090. package/widget/5817.index.js +0 -1
  1091. package/widget/600.index.js +0 -1
  1092. package/widget/6023.index.js +0 -1
  1093. package/widget/6159.index.js +0 -1
  1094. package/widget/617.index.js +0 -1
  1095. package/widget/6183.index.js +0 -1
  1096. package/widget/6509.index.js +0 -1
  1097. package/widget/6636.index.js +0 -1
  1098. package/widget/6831.index.js +0 -1
  1099. package/widget/6953.index.js +0 -1
  1100. package/widget/7296.index.js +0 -1
  1101. package/widget/7486.index.js +0 -1
  1102. package/widget/7496.index.js +0 -1
  1103. package/widget/7553.index.js +0 -1
  1104. package/widget/758.index.js +0 -1
  1105. package/widget/772.index.js +0 -1
  1106. package/widget/7797.index.js +0 -1
  1107. package/widget/8066.index.js +0 -1
  1108. package/widget/8507.index.js +0 -1
  1109. package/widget/8529.index.js +0 -1
  1110. package/widget/8727.index.js +0 -1
  1111. package/widget/8864.index.js +0 -1
  1112. package/widget/8889.index.js +0 -1
  1113. package/widget/953.index.js +0 -1
  1114. package/widget/9670.index.js +0 -1
  1115. package/widget/9682.index.js +0 -1
  1116. package/widget/9928.index.js +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"CardLayout.js","sourceRoot":"../../../../src","sources":["blocks/CardLayout/CardLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,OAAO,0BAAuB;AAErC,OAAO,EAAC,YAAY,EAAE,eAAe,EAAE,KAAK,EAAC,kCAAyB;AACtE,OAAO,QAAQ,qDAAkD;AACjE,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAC7C,OAAO,EAAC,GAAG,EAAE,IAAI,EAAuB,GAAG,EAAC,4BAAmB;AAE/D,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,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CAAC,GACA,IACJ,IACH,GACI,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import * as React from 'react';\nimport isEmpty from 'lodash/isEmpty';\n\nimport {AnimateBlock, BackgroundImage, Title} from '../../components';\nimport ItemWrap from '../../components/editor/ItemWrap/ItemWrap';\nimport {useTheme} from '../../context/theme';\nimport {Col, Grid, GridColumnSizesType, Row} from '../../grid';\nimport {CardLayoutBlockProps as CardLayoutBlockParams, ClassNameProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './CardLayout.scss';\n\nconst DEFAULT_SIZES: GridColumnSizesType = {\n all: 12,\n sm: 6,\n md: 4,\n};\nexport type CardLayoutBlockProps = React.PropsWithChildren<\n Omit<CardLayoutBlockParams, 'children'>\n> &\n ClassNameProps;\n\nconst b = block('card-layout-block');\n\nconst CardLayout: React.FC<CardLayoutBlockProps> = ({\n title,\n description,\n animated,\n colSizes = DEFAULT_SIZES,\n children,\n className,\n titleClassName,\n background,\n}) => {\n const theme = useTheme();\n const {border, ...backgroundImageProps} = getThemedValue(background || {}, theme);\n return (\n <AnimateBlock className={b(null, className)} animate={animated}>\n <Grid>\n {(title || description) && (\n <Title title={title} subtitle={description} className={titleClassName} />\n )}\n <div\n className={b('content', {\n 'with-background': !isEmpty(background),\n })}\n >\n <BackgroundImage className={b('image', {border})} {...backgroundImageProps} />\n\n <Row>\n {React.Children.map(children, (child, index) => (\n <Col key={index} sizes={colSizes} className={b('item')}>\n <ItemWrap index={index}>{child}</ItemWrap>\n </Col>\n ))}\n </Row>\n </div>\n </Grid>\n </AnimateBlock>\n );\n};\n\nexport default CardLayout;\n"]}
1
+ {"version":3,"file":"CardLayout.js","sourceRoot":"../../../../src","sources":["blocks/CardLayout/CardLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,OAAO,0BAAuB;AAErC,OAAO,EAAC,YAAY,EAAE,eAAe,EAAE,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AAE,EAAE,CAAC,CAC5C,KAAC,GAAG,IAAa,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YACjD,KAAK,IADA,KAAK,CAET,CACT,CAAC,GACA,IACJ,IACK,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import * as React from 'react';\nimport isEmpty from 'lodash/isEmpty';\n\nimport {AnimateBlock, BackgroundImage, Title} from '../../components';\nimport {useTheme} from '../../context/theme';\nimport {Col, GridColumnSizesType, Row} from '../../grid';\nimport {CardLayoutBlockProps as CardLayoutBlockParams, ClassNameProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './CardLayout.scss';\n\nconst DEFAULT_SIZES: GridColumnSizesType = {\n all: 12,\n sm: 6,\n md: 4,\n};\nexport type CardLayoutBlockProps = React.PropsWithChildren<\n Omit<CardLayoutBlockParams, 'children'>\n> &\n ClassNameProps;\n\nconst b = block('card-layout-block');\n\nconst CardLayout: React.FC<CardLayoutBlockProps> = ({\n title,\n description,\n animated,\n colSizes = DEFAULT_SIZES,\n children,\n className,\n titleClassName,\n background,\n}) => {\n const theme = useTheme();\n const {border, ...backgroundImageProps} = getThemedValue(background || {}, theme);\n return (\n <AnimateBlock className={b(null, className)} animate={animated}>\n {(title || description) && (\n <Title title={title} subtitle={description} className={titleClassName} />\n )}\n <div\n className={b('content', {\n 'with-background': !isEmpty(background),\n })}\n >\n <BackgroundImage className={b('image', {border})} {...backgroundImageProps} />\n <Row>\n {React.Children.map(children, (child, index) => (\n <Col key={index} sizes={colSizes} className={b('item')}>\n {child}\n </Col>\n ))}\n </Row>\n </div>\n </AnimateBlock>\n );\n};\n\nexport default CardLayout;\n"]}
@@ -2,14 +2,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Image, Title } from "../../components/index.js";
3
3
  import AnimateBlock from "../../components/AnimateBlock/AnimateBlock.js";
4
4
  import { useTheme } from "../../context/theme/index.js";
5
- import { Grid } from "../../grid/index.js";
6
5
  import { block, getThemedValue } from "../../utils/index.js";
7
6
  import './Companies.css';
8
7
  const b = block('companies-block');
9
8
  export const CompaniesBlock = ({ title, description, images, animated }) => {
10
9
  const theme = useTheme();
11
10
  const themedImages = getThemedValue(images, theme) || {};
12
- return (_jsx(AnimateBlock, { className: b(), offset: 150, animate: animated, children: _jsx(Grid, { children: _jsxs("div", { className: b('content'), children: [_jsx(Title, { title: title, subtitle: description, colSizes: { all: 12, sm: 12 } }), _jsx("div", { className: b('images'), children: _jsx(Image, { ...themedImages, className: b('image') }) })] }) }) }));
11
+ return (_jsx(AnimateBlock, { className: b(), offset: 150, animate: animated, children: _jsxs("div", { className: b('content'), children: [_jsx(Title, { title: title, subtitle: description, colSizes: { all: 12, sm: 12 } }), _jsx("div", { className: b('images'), children: _jsx(Image, { ...themedImages, className: b('image') }) })] }) }));
13
12
  };
14
13
  export default CompaniesBlock;
15
14
  //# sourceMappingURL=Companies.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Companies.js","sourceRoot":"../../../../src","sources":["blocks/Companies/Companies.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,kCAAyB;AAC9C,OAAO,YAAY,sDAAmD;AACtE,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAC7C,OAAO,EAAC,IAAI,EAAC,4BAAmB;AAEhC,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,iBAAiB,CAAC;AAEzB,MAAM,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAsB,EAAE,EAAE;IAC1F,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,YAAY,GAAG,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAEzD,OAAO,CACH,KAAC,YAAY,IAAC,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,YACxD,KAAC,IAAI,cACD,eAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,aACxB,KAAC,KAAK,IACF,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,GACtB,EACT,cAAK,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,YACvB,KAAC,KAAK,OAAK,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GAAI,GAChD,IACJ,GACH,GACI,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import {Image, Title} from '../../components';\nimport AnimateBlock from '../../components/AnimateBlock/AnimateBlock';\nimport {useTheme} from '../../context/theme';\nimport {Grid} from '../../grid';\nimport {CompaniesBlockProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './Companies.scss';\n\nconst b = block('companies-block');\n\nexport const CompaniesBlock = ({title, description, images, animated}: CompaniesBlockProps) => {\n const theme = useTheme();\n const themedImages = getThemedValue(images, theme) || {};\n\n return (\n <AnimateBlock className={b()} offset={150} animate={animated}>\n <Grid>\n <div className={b('content')}>\n <Title\n title={title}\n subtitle={description}\n colSizes={{all: 12, sm: 12}}\n ></Title>\n <div className={b('images')}>\n <Image {...themedImages} className={b('image')} />\n </div>\n </div>\n </Grid>\n </AnimateBlock>\n );\n};\n\nexport default CompaniesBlock;\n"]}
1
+ {"version":3,"file":"Companies.js","sourceRoot":"../../../../src","sources":["blocks/Companies/Companies.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,kCAAyB;AAC9C,OAAO,YAAY,sDAAmD;AACtE,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAE7C,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,iBAAiB,CAAC;AAEzB,MAAM,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAsB,EAAE,EAAE;IAC1F,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,YAAY,GAAG,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAEzD,OAAO,CACH,KAAC,YAAY,IAAC,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,YACxD,eAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,aACxB,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,GAAU,EACjF,cAAK,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,YACvB,KAAC,KAAK,OAAK,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GAAI,GAChD,IACJ,GACK,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import {Image, Title} from '../../components';\nimport AnimateBlock from '../../components/AnimateBlock/AnimateBlock';\nimport {useTheme} from '../../context/theme';\nimport {CompaniesBlockProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\n\nimport './Companies.scss';\n\nconst b = block('companies-block');\n\nexport const CompaniesBlock = ({title, description, images, animated}: CompaniesBlockProps) => {\n const theme = useTheme();\n const themedImages = getThemedValue(images, theme) || {};\n\n return (\n <AnimateBlock className={b()} offset={150} animate={animated}>\n <div className={b('content')}>\n <Title title={title} subtitle={description} colSizes={{all: 12, sm: 12}}></Title>\n <div className={b('images')}>\n <Image {...themedImages} className={b('image')} />\n </div>\n </div>\n </AnimateBlock>\n );\n};\n\nexport default CompaniesBlock;\n"]}
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { BackgroundImage, FileLink } from "../../components/index.js";
5
5
  import { MobileContext } from "../../context/mobileContext/index.js";
6
6
  import { useTheme } from "../../context/theme/index.js";
7
- import { Col, Grid } from "../../grid/index.js";
7
+ import { Col } from "../../grid/index.js";
8
8
  import { Content } from "../../sub-blocks/index.js";
9
9
  import { block, getThemedValue } from "../../utils/index.js";
10
10
  import './ContentLayout.css';
@@ -35,7 +35,7 @@ export const ContentLayoutBlock = (props) => {
35
35
  const colSizes = React.useMemo(() => getTextWidth(textWidth), [textWidth]);
36
36
  const globalTheme = useTheme();
37
37
  const themedBackground = getThemedValue(background, globalTheme);
38
- return (_jsx(Grid, { children: _jsxs("div", { className: b({ size, theme, background: Boolean(background) }), children: [_jsx(Content, { className: b('content'), ...textContent, size: size, centered: centered, colSizes: colSizes, theme: theme }), fileContent && (_jsx(Col, { className: b('files', { size, centered }), reset: true, sizes: colSizes, children: fileContent.map((file) => (_createElement(FileLink, { className: b('file'), ...file, key: file.href, type: "horizontal", textSize: getFileTextSize(size), theme: theme }))) })), background && (_jsx("div", { className: b('background'), children: _jsx(BackgroundImage, { className: b('background-item'), ...themedBackground, hide: isMobile }) }))] }) }));
38
+ return (_jsxs("div", { className: b({ size, theme, background: Boolean(background) }), children: [_jsx(Content, { className: b('content'), ...textContent, size: size, centered: centered, colSizes: colSizes, theme: theme }), fileContent && (_jsx(Col, { className: b('files', { size, centered }), reset: true, sizes: colSizes, children: fileContent.map((file) => (_createElement(FileLink, { className: b('file'), ...file, key: file.href, type: "horizontal", textSize: getFileTextSize(size), theme: theme }))) })), background && (_jsx("div", { className: b('background'), children: _jsx(BackgroundImage, { className: b('background-item'), ...themedBackground, hide: isMobile }) }))] }));
39
39
  };
40
40
  export default ContentLayoutBlock;
41
41
  //# sourceMappingURL=ContentLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentLayout.js","sourceRoot":"../../../../src","sources":["blocks/ContentLayout/ContentLayout.tsx"],"names":[],"mappings":";;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,eAAe,EAAE,QAAQ,EAAC,kCAAyB;AAC3D,OAAO,EAAC,aAAa,EAAC,6CAAoC;AAC1D,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAC7C,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,4BAAmB;AAErC,OAAO,EAAC,OAAO,EAAC,kCAAyB;AACzC,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAElD,OAAO,qBAAqB,CAAC;AAE7B,MAAM,CAAC,GAAG,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAExC,SAAS,eAAe,CAAC,IAAiB;IACtC,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,GAAG;YACJ,OAAO,GAAG,CAAC;QACf,KAAK,GAAG,CAAC;QACT;YACI,OAAO,GAAG,CAAC;IACnB,CAAC;AACL,CAAC;AAED,SAAS,YAAY,CAAC,IAAqB;IACvC,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,GAAG;YACJ,OAAO,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAC,CAAC;QAC5B,KAAK,GAAG;YACJ,OAAO,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,CAAC;QAC7B,KAAK,GAAG,CAAC;QACT;YACI,OAAO,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAC,CAAC;IAChC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAA8B,EAAE,EAAE;IACjE,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjD,MAAM,EACF,WAAW,EACX,W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,iBAAiB,CAAC,KAC3B,gBAAgB,EACpB,IAAI,EAAE,QAAQ,GAChB,GACA,CACT,IACC,GACH,CACV,CAAC;AACN,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {BackgroundImage, FileLink} from '../../components';\nimport {MobileContext} from '../../context/mobileContext';\nimport {useTheme} from '../../context/theme';\nimport {Col, Grid} from '../../grid';\nimport {ContentLayoutBlockProps, ContentSize, ContentTextSize} from '../../models';\nimport {Content} from '../../sub-blocks';\nimport {block, getThemedValue} from '../../utils';\n\nimport './ContentLayout.scss';\n\nconst b = block('content-layout-block');\n\nfunction getFileTextSize(size: ContentSize) {\n switch (size) {\n case 's':\n return 's';\n case 'l':\n default:\n return 'l';\n }\n}\n\nfunction getTextWidth(size: ContentTextSize) {\n switch (size) {\n case 's':\n return {all: 12, md: 6};\n case 'l':\n return {all: 12, md: 12};\n case 'm':\n default:\n return {all: 12, md: 8};\n }\n}\n\nexport const ContentLayoutBlock = (props: ContentLayoutBlockProps) => {\n const isMobile = React.useContext(MobileContext);\n const {\n textContent,\n fileContent,\n size = 'l',\n background,\n centered,\n theme = 'default',\n textWidth = 'm',\n } = props;\n\n const colSizes = React.useMemo(() => getTextWidth(textWidth), [textWidth]);\n const globalTheme = useTheme();\n const themedBackground = getThemedValue(background, globalTheme);\n\n return (\n <Grid>\n <div className={b({size, theme, background: Boolean(background)})}>\n <Content\n className={b('content')}\n {...textContent}\n size={size}\n centered={centered}\n colSizes={colSizes}\n theme={theme}\n />\n {fileContent && (\n <Col className={b('files', {size, centered})} reset sizes={colSizes}>\n {fileContent.map((file) => (\n <FileLink\n className={b('file')}\n {...file}\n key={file.href}\n type=\"horizontal\"\n textSize={getFileTextSize(size)}\n theme={theme}\n />\n ))}\n </Col>\n )}\n {background && (\n <div className={b('background')}>\n <BackgroundImage\n className={b('background-item')}\n {...themedBackground}\n hide={isMobile}\n />\n </div>\n )}\n </div>\n </Grid>\n );\n};\nexport default Cont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,QAAQ,GAChB,GACA,CACT,IACC,CACT,CAAC;AACN,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {BackgroundImage, FileLink} from '../../components';\nimport {MobileContext} from '../../context/mobileContext';\nimport {useTheme} from '../../context/theme';\nimport {Col} from '../../grid';\nimport {ContentLayoutBlockProps, ContentSize, ContentTextSize} from '../../models';\nimport {Content} from '../../sub-blocks';\nimport {block, getThemedValue} from '../../utils';\n\nimport './ContentLayout.scss';\n\nconst b = block('content-layout-block');\n\nfunction getFileTextSize(size: ContentSize) {\n switch (size) {\n case 's':\n return 's';\n case 'l':\n default:\n return 'l';\n }\n}\n\nfunction getTextWidth(size: ContentTextSize) {\n switch (size) {\n case 's':\n return {all: 12, md: 6};\n case 'l':\n return {all: 12, md: 12};\n case 'm':\n default:\n return {all: 12, md: 8};\n }\n}\n\nexport const ContentLayoutBlock = (props: ContentLayoutBlockProps) => {\n const isMobile = React.useContext(MobileContext);\n const {\n textContent,\n fileContent,\n size = 'l',\n background,\n centered,\n theme = 'default',\n textWidth = 'm',\n } = props;\n\n const colSizes = React.useMemo(() => getTextWidth(textWidth), [textWidth]);\n const globalTheme = useTheme();\n const themedBackground = getThemedValue(background, globalTheme);\n\n return (\n <div className={b({size, theme, background: Boolean(background)})}>\n <Content\n className={b('content')}\n {...textContent}\n size={size}\n centered={centered}\n colSizes={colSizes}\n theme={theme}\n />\n {fileContent && (\n <Col className={b('files', {size, centered})} reset sizes={colSizes}>\n {fileContent.map((file) => (\n <FileLink\n className={b('file')}\n {...file}\n key={file.href}\n type=\"horizontal\"\n textSize={getFileTextSize(size)}\n theme={theme}\n />\n ))}\n </Col>\n )}\n {background && (\n <div className={b('background')}>\n <BackgroundImage\n className={b('background-item')}\n {...themedBackground}\n hide={isMobile}\n />\n </div>\n )}\n </div>\n );\n};\nexport default ContentLayoutBlock;\n"]}
@@ -99,7 +99,6 @@ export declare const ContentLayoutBlock: {
99
99
  enum: string[];
100
100
  };
101
101
  textContent: {
102
- type: string;
103
102
  additionalProperties: boolean;
104
103
  properties: {
105
104
  colSizes: {};
@@ -4,7 +4,7 @@ import { AnimateBlock, HTML, Title } from "../../components/index.js";
4
4
  import Image from "../../components/Image/Image.js";
5
5
  import { getMediaImage } from "../../components/Media/Image/utils.js";
6
6
  import { useTheme } from "../../context/theme/index.js";
7
- import { Col, Grid, Row } from "../../grid/index.js";
7
+ import { Col, Row } from "../../grid/index.js";
8
8
  import { Content } from "../../sub-blocks/index.js";
9
9
  import { block, getThemedValue } from "../../utils/index.js";
10
10
  import './ExtendedFeatures.css';
@@ -17,19 +17,18 @@ const DEFAULT_SIZES = {
17
17
  export const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DEFAULT_SIZES, animated, }) => {
18
18
  const theme = useTheme();
19
19
  const itemTitleHeadingTag = title ? 'h3' : 'h2';
20
- return (_jsx(AnimateBlock, { className: b(), animate: animated, children: _jsxs(Grid, { children: [_jsx(Title, { title: title, subtitle: description, className: b('header') }), _jsx("div", { className: b('items'), children: _jsx(Row, { children: items &&
21
- items.map(({ title: itemTitle, text, list, link, links, label, icon, buttons, additionalInfo, }, index) => {
22
- const itemLinks = links || [];
23
- const iconThemed = icon && getThemedValue(icon, theme);
24
- const iconData = iconThemed && getMediaImage(iconThemed);
25
- if (link) {
26
- itemLinks.push(link);
27
- }
28
- return (_jsxs(Col, { className: b('item'), sizes: colSizes, children: [iconData && (_jsx("div", { className: b('icon-wrap'), "aria-hidden": true, children: _jsx(Image, { ...iconData, className: b('icon') }) })), _jsxs("div", { className: b('container'), children: [itemTitle &&
29
- React.createElement(itemTitleHeadingTag, {
30
- className: b('item-title'),
31
- }, _jsxs(React.Fragment, { children: [_jsx(HTML, { children: itemTitle }), label && (_jsx("span", { className: b('item-label'), children: label }))] })), _jsx(Content, { text: text, links: itemLinks, size: "s", list: list, colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo })] })] }, index));
32
- }) }) })] }) }));
20
+ return (_jsxs(AnimateBlock, { className: b(), animate: animated, children: [_jsx(Title, { title: title, subtitle: description, className: b('header') }), _jsx("div", { className: b('items'), children: _jsx(Row, { children: items.map(({ title: itemTitle, text, list, link, links, label, icon, buttons, additionalInfo, }) => {
21
+ const itemLinks = links || [];
22
+ const iconThemed = icon && getThemedValue(icon, theme);
23
+ const iconData = iconThemed && getMediaImage(iconThemed);
24
+ if (link) {
25
+ itemLinks.push(link);
26
+ }
27
+ return (_jsxs(Col, { className: b('item'), sizes: colSizes, children: [iconData && (_jsx("div", { className: b('icon-wrap'), "aria-hidden": true, children: _jsx(Image, { ...iconData, className: b('icon') }) })), _jsxs("div", { className: b('container'), children: [itemTitle &&
28
+ React.createElement(itemTitleHeadingTag, {
29
+ className: b('item-title'),
30
+ }, _jsxs(React.Fragment, { children: [_jsx(HTML, { children: itemTitle }), label && (_jsx("span", { className: b('item-label'), children: label }))] })), _jsx(Content, { text: text, links: itemLinks, size: "s", list: list, colSizes: { all: 12, md: 12 }, buttons: buttons, additionalInfo: additionalInfo })] })] }, text || itemTitle));
31
+ }) }) })] }));
33
32
  };
34
33
  export default ExtendedFeaturesBlock;
35
34
  //# sourceMappingURL=ExtendedFeatures.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExtendedFeatures.js","sourceRoot":"../../../../src","sources":["blocks/ExtendedFeatures/ExtendedFeatures.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,YAAY,EAAE,IAAI,EAAE,KAAK,EAAC,kCAA0B;AAC5D,OAAO,KAAK,wCAAqC;AACjD,OAAO,EAAC,aAAa,EAAC,8CAA2C;AACjE,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAC7C,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAC,4BAAmB;AAE1C,OAAO,EAAC,OAAO,EAAC,kCAAyB;AACzC,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;A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,MAAC,GAAG,IAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAAc,KAAK,EAAE,QAAQ,aACjD,QAAQ,IAAI,CACT,cAAK,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,iCAC1B,KAAC,KAAK,OAAK,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,GAAI,GAC3C,CACT,EACD,eAAK,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,aACzB,SAAS;oDACN,KAAK,CAAC,aAAa,CACf,mBAAmB,EACnB;wDACI,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC;qDAC7B,EACD,MAAC,KAAK,CAAC,QAAQ,eACX,KAAC,IAAI,cAAE,SAAS,GAAQ,EACvB,KAAK,IAAI,CACN,eAAM,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAC3B,KAAK,GACH,CACV,IACY,CACpB,EACL,KAAC,OAAO,IACJ,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,SAAS,EAChB,IAAI,EAAC,GAAG,EACR,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,EAC3B,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,GAChC,IACA,KA/BsB,KAAK,CAgC/B,CACT,CAAC;4BACN,CAAC,CACJ,GACH,GACJ,IACH,GACI,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {AnimateBlock, HTML, Title} from '../../components/';\nimport Image from '../../components/Image/Image';\nimport {getMediaImage} from '../../components/Media/Image/utils';\nimport {useTheme} from '../../context/theme';\nimport {Col, Grid, Row} from '../../grid';\nimport {ExtendedFeaturesProps} from '../../models';\nimport {Content} from '../../sub-blocks';\nimport {block, getThemedValue} from '../../utils';\n\nimport './ExtendedFeatures.scss';\n\nconst b = block('ExtendedFeaturesBlock');\n\nconst DEFAULT_SIZES = {\n all: 12,\n sm: 6,\n md: 4,\n};\n\nexport const ExtendedFeaturesBlock = ({\n title,\n description,\n items,\n colSizes = DEFAULT_SIZES,\n animated,\n}: ExtendedFeaturesProps) => {\n const theme = useTheme();\n const itemTitleHeadingTag = title ? 'h3' : 'h2';\n\n return (\n <AnimateBlock className={b()} animate={animated}>\n <Grid>\n <Title title={title} subtitle={description} className={b('header')} />\n <div className={b('items')}>\n <Row>\n {items &&\n items.map(\n (\n {\n title: itemTitle,\n text,\n list,\n link,\n links,\n label,\n icon,\n buttons,\n additionalInfo,\n },\n index,\n ) => {\n const itemLinks = links || [];\n\n const iconThemed = icon && getThemedValue(icon, theme);\n const iconData = iconThemed && getMediaImage(iconThemed);\n\n if (link) {\n itemLinks.push(link);\n }\n\n return (\n <Col className={b('item')} key={index} sizes={colSizes}>\n {iconData && (\n <div className={b('icon-wrap')} aria-hidden>\n <Image {...iconData} className={b('icon')} />\n </div>\n )}\n <div className={b('container')}>\n {itemTitle &&\n React.createElement(\n itemTitleHeadingTag,\n {\n className: b('item-title'),\n },\n <React.Fragment>\n <HTML>{itemTitle}</HTML>\n {label && (\n <span className={b('item-label')}>\n {label}\n </span>\n )}\n </React.Fragment>,\n )}\n <Content\n text={text}\n links={itemLinks}\n size=\"s\"\n list={list}\n colSizes={{all: 12, md: 12}}\n buttons={buttons}\n additionalInfo={additionalInfo}\n />\n </div>\n </Col>\n );\n },\n )}\n </Row>\n </div>\n </Grid>\n </AnimateBlock>\n );\n};\n\nexport default ExtendedFeaturesBlock;\n"]}
1
+ {"version":3,"file":"ExtendedFeatures.js","sourceRoot":"../../../../src","sources":["blocks/ExtendedFeatures/ExtendedFeatures.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,YAAY,EAAE,IAAI,EAAE,KAAK,EAAC,kCAA0B;AAC5D,OAAO,KAAK,wCAAqC;AACjD,OAAO,EAAC,aAAa,EAAC,8CAA2C;A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AAI,aAAa,CAAC,UAAU,CAAC,CAAC;wBAEzD,IAAI,IAAI,EAAE,CAAC;4BACP,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;wBACzB,CAAC;wBAED,OAAO,CACH,MAAC,GAAG,IAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAA0B,KAAK,EAAE,QAAQ,aAC7D,QAAQ,IAAI,CACT,cAAK,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,iCAC1B,KAAC,KAAK,OAAK,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,GAAI,GAC3C,CACT,EACD,eAAK,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,aACzB,SAAS;4CACN,KAAK,CAAC,aAAa,CACf,mBAAmB,EACnB;gDACI,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC;6CAC7B,EACD,MAAC,KAAK,CAAC,QAAQ,eACX,KAAC,IAAI,cAAE,SAAS,GAAQ,EACvB,KAAK,IAAI,CACN,eAAM,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAC3B,KAAK,GACH,CACV,IACY,CACpB,EACL,KAAC,OAAO,IACJ,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,SAAS,EAChB,IAAI,EAAC,GAAG,EACR,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,EAC3B,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,GAChC,IACA,KA/BsB,IAAI,IAAI,SAAS,CAgC3C,CACT,CAAC;oBACN,CAAC,CACJ,GACC,GACJ,IACK,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {AnimateBlock, HTML, Title} from '../../components/';\nimport Image from '../../components/Image/Image';\nimport {getMediaImage} from '../../components/Media/Image/utils';\nimport {useTheme} from '../../context/theme';\nimport {Col, Row} from '../../grid';\nimport {ExtendedFeaturesProps} from '../../models';\nimport {Content} from '../../sub-blocks';\nimport {block, getThemedValue} from '../../utils';\n\nimport './ExtendedFeatures.scss';\n\nconst b = block('ExtendedFeaturesBlock');\n\nconst DEFAULT_SIZES = {\n all: 12,\n sm: 6,\n md: 4,\n};\n\nexport const ExtendedFeaturesBlock = ({\n title,\n description,\n items,\n colSizes = DEFAULT_SIZES,\n animated,\n}: ExtendedFeaturesProps) => {\n const theme = useTheme();\n const itemTitleHeadingTag = title ? 'h3' : 'h2';\n\n return (\n <AnimateBlock className={b()} animate={animated}>\n <Title title={title} subtitle={description} className={b('header')} />\n <div className={b('items')}>\n <Row>\n {items.map(\n ({\n title: itemTitle,\n text,\n list,\n link,\n links,\n label,\n icon,\n buttons,\n additionalInfo,\n }) => {\n const itemLinks = links || [];\n\n const iconThemed = icon && getThemedValue(icon, theme);\n const iconData = iconThemed && getMediaImage(iconThemed);\n\n if (link) {\n itemLinks.push(link);\n }\n\n return (\n <Col className={b('item')} key={text || itemTitle} sizes={colSizes}>\n {iconData && (\n <div className={b('icon-wrap')} aria-hidden>\n <Image {...iconData} className={b('icon')} />\n </div>\n )}\n <div className={b('container')}>\n {itemTitle &&\n React.createElement(\n itemTitleHeadingTag,\n {\n className: b('item-title'),\n },\n <React.Fragment>\n <HTML>{itemTitle}</HTML>\n {label && (\n <span className={b('item-label')}>\n {label}\n </span>\n )}\n </React.Fragment>,\n )}\n <Content\n text={text}\n links={itemLinks}\n size=\"s\"\n list={list}\n colSizes={{all: 12, md: 12}}\n buttons={buttons}\n additionalInfo={additionalInfo}\n />\n </div>\n </Col>\n );\n },\n )}\n </Row>\n </div>\n </AnimateBlock>\n );\n};\n\nexport default ExtendedFeaturesBlock;\n"]}
@@ -9,7 +9,6 @@ export declare const ExtendedFeaturesItem: {
9
9
  text: {
10
10
  type: string;
11
11
  contentType: string;
12
- inputType: string;
13
12
  };
14
13
  label: {
15
14
  type: string;
@@ -12,7 +12,6 @@ export const ExtendedFeaturesItem = {
12
12
  text: {
13
13
  type: 'string',
14
14
  contentType: 'yfm',
15
- inputType: 'textarea',
16
15
  },
17
16
  label: {
18
17
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/ExtendedFeatures/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,oBAAoB,EACpB,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,UAAU,EAAC,8CAA2C;AAC9D,OAAO,EAAC,aAAa,EAAC,yCAAsC;AAE5D,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE;QACR,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM;SACtB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,KAAK;YAClB,SAAS,EAAE,UAAU;SACxB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC;SAC3B;QACD,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC;KAC9B;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,yBAAyB,EAAE;QACvB,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE;YACR,GAAG,cAAc;YACjB,GAAG,eAAe;YAClB,GAAG,gBAAgB;YACnB,KAAK,EAAE,aAAa,CAAC,oBAAoB,CAAC;YAC1C,QAAQ,EAAE,oBAAoB;SACjC;KACJ;CACJ,CAAC","sourcesContent":["import {\n AnimatableProps,\n BlockBaseProps,\n BlockHeaderProps,\n LinkProps,\n containerSizesObject,\n withTheme,\n} from '../../schema/validators/common';\nimport {ImageProps} from '../../schema/validators/components';\nimport {filteredArray} from '../../schema/validators/utils';\n\nexport const ExtendedFeaturesItem = {\n additionalProperties: false,\n required: [],\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n text: {\n type: 'string',\n contentType: 'yfm',\n inputType: 'textarea',\n },\n label: {\n type: 'string',\n enum: ['New', 'Preview'],\n },\n link: LinkProps,\n icon: withTheme(ImageProps),\n },\n};\n\nexport const ExtendedFeaturesBlock = {\n 'extended-features-block': {\n additionalProperties: false,\n required: [],\n properties: {\n ...BlockBaseProps,\n ...AnimatableProps,\n ...BlockHeaderProps,\n items: filteredArray(ExtendedFeaturesItem),\n colSizes: containerSizesObject,\n },\n },\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/ExtendedFeatures/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,oBAAoB,EACpB,SAAS,GACZ,0CAAuC;AACxC,OAAO,EAAC,UAAU,EAAC,8CAA2C;AAC9D,OAAO,EAAC,aAAa,EAAC,yCAAsC;AAE5D,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE;QACR,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM;SACtB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,KAAK;SACrB;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC;SAC3B;QACD,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC;KAC9B;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,yBAAyB,EAAE;QACvB,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE;YACR,GAAG,cAAc;YACjB,GAAG,eAAe;YAClB,GAAG,gBAAgB;YACnB,KAAK,EAAE,aAAa,CAAC,oBAAoB,CAAC;YAC1C,QAAQ,EAAE,oBAAoB;SACjC;KACJ;CACJ,CAAC","sourcesContent":["import {\n AnimatableProps,\n BlockBaseProps,\n BlockHeaderProps,\n LinkProps,\n containerSizesObject,\n withTheme,\n} from '../../schema/validators/common';\nimport {ImageProps} from '../../schema/validators/components';\nimport {filteredArray} from '../../schema/validators/utils';\n\nexport const ExtendedFeaturesItem = {\n additionalProperties: false,\n required: [],\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n text: {\n type: 'string',\n contentType: 'yfm',\n },\n label: {\n type: 'string',\n enum: ['New', 'Preview'],\n },\n link: LinkProps,\n icon: withTheme(ImageProps),\n },\n};\n\nexport const ExtendedFeaturesBlock = {\n 'extended-features-block': {\n additionalProperties: false,\n required: [],\n properties: {\n ...BlockBaseProps,\n ...AnimatableProps,\n ...BlockHeaderProps,\n items: filteredArray(ExtendedFeaturesItem),\n colSizes: containerSizesObject,\n },\n },\n};\n"]}
@@ -4,12 +4,12 @@ import { CardLayoutBlock } from "../index.js";
4
4
  import { AnimateBlock, Title } from "../../components/index.js";
5
5
  import ButtonTabs from "../../components/ButtonTabs/ButtonTabs.js";
6
6
  import { ConstructorItem } from "../../containers/PageConstructor/components/ConstructorItem/index.js";
7
- import { Col, Grid, Row } from "../../grid/index.js";
7
+ import { Col, Row } from "../../grid/index.js";
8
8
  import { block, getBlockKey } from "../../utils/index.js";
9
9
  import { i18n } from "./i18n/index.js";
10
10
  import './FilterBlock.css';
11
11
  const b = block('filter-block');
12
- const FilterBlock = ({ title, description, tags, tagButtonSize, allTag, items = [], colSizes, centered, animated, }) => {
12
+ const FilterBlock = ({ title, description, tags, tagButtonSize, allTag, items, colSizes, centered, animated, }) => {
13
13
  const tabButtons = React.useMemo(() => {
14
14
  const allButton = allTag
15
15
  ? { id: null, title: typeof allTag === 'boolean' ? i18n('label-all-tag') : allTag }
@@ -29,10 +29,10 @@ const FilterBlock = ({ title, description, tags, tagButtonSize, allTag, items =
29
29
  : items;
30
30
  return itemsToShow.map((item) => item.card);
31
31
  }, [actualTag, items]);
32
- return (_jsx(AnimateBlock, { className: b(), animate: animated, children: _jsxs(Grid, { children: [title && (_jsx(Title, { className: b('title', { centered: centered }), title: title, subtitle: description })), tabButtons.length && (_jsx(Row, { children: _jsx(Col, { children: _jsx(ButtonTabs, { className: b('tabs', { centered: centered }), items: tabButtons, activeTab: selectedTag, onSelectTab: setSelectedTag, tabSize: tagButtonSize }) }) })), _jsx(Row, { className: b('block-container'), children: _jsx(CardLayoutBlock, { title: "", colSizes: colSizes, className: b('cards-container'), children: cards.map((card, index) => {
33
- const key = getBlockKey(card, index);
34
- return _jsx(ConstructorItem, { data: card, blockKey: index }, key);
35
- }) }) })] }) }));
32
+ return (_jsxs(AnimateBlock, { className: b(), animate: animated, children: [title && (_jsx(Title, { className: b('title', { centered: centered }), title: title, subtitle: description })), tabButtons.length && (_jsx(Row, { children: _jsx(Col, { children: _jsx(ButtonTabs, { className: b('tabs', { centered: centered }), items: tabButtons, activeTab: selectedTag, onSelectTab: setSelectedTag, tabSize: tagButtonSize }) }) })), _jsx(Row, { className: b('block-container'), children: _jsx(CardLayoutBlock, { title: "", colSizes: colSizes, className: b('cards-container'), children: cards.map((card, index) => {
33
+ const key = getBlockKey(card, index);
34
+ return _jsx(ConstructorItem, { data: card, blockKey: key }, key);
35
+ }) }) })] }));
36
36
  };
37
37
  export default FilterBlock;
38
38
  //# sourceMappingURL=FilterBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilterBlock.js","sourceRoot":"../../../../src","sources":["blocks/FilterBlock/FilterBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,eAAe,EAAC,oBAAW;AACnC,OAAO,EAAC,YAAY,EAAE,KAAK,EAAC,kC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GAAG,cACA,KAAC,UAAU,IACP,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,QAAQ,EAAC,CAAC,EAC1C,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,WAAW,EACtB,WAAW,EAAE,cAAc,EAC3B,OAAO,EAAE,aAAa,GACxB,GACA,GACJ,CACT,EACD,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,CAAC,iBAAiB,CAAC,YAChC,KAAC,eAAe,IAAC,KAAK,EAAC,EAAE,EAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,iBAAiB,CAAC,YACxE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;4BACvB,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;4BACrC,OAAO,KAAC,eAAe,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,IAAO,GAAG,CAAI,CAAC;wBACtE,CAAC,CAAC,GACY,GAChB,IACH,GACI,CAClB,CAAC;AACN,CAAC,CAAC;AACF,eAAe,WAAW,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {CardLayoutBlock} from '..';\nimport {AnimateBlock, Title} from '../../components';\nimport ButtonTabs, {ButtonTabsItemProps} from '../../components/ButtonTabs/ButtonTabs';\nimport {ConstructorItem} from '../../containers/PageConstructor/components/ConstructorItem';\nimport {Col, Grid, Row} from '../../grid';\nimport {FilterBlockProps, FilterItem} from '../../models';\nimport {block, getBlockKey} from '../../utils';\n\nimport {i18n} from './i18n';\nimport './FilterBlock.scss';\n\nconst b = block('filter-block');\n\nconst FilterBlock: React.FC<FilterBlockProps> = ({\n title,\n description,\n tags,\n tagButtonSize,\n allTag,\n items = [],\n colSizes,\n centered,\n animated,\n}) => {\n const tabButtons = React.useMemo(() => {\n const allButton: ButtonTabsItemProps | undefined = allTag\n ? {id: null, title: typeof allTag === 'boolean' ? i18n('label-all-tag') : allTag}\n : undefined;\n const otherButtons: ButtonTabsItemProps[] | undefined =\n tags && tags.map((tag) => ({id: tag.id, title: tag.label}));\n return [...(allButton ? [allButton] : []), ...(otherButtons ? otherButtons : [])];\n }, [allTag, tags]);\n\n const [selectedTag, setSelectedTag] = React.useState(\n tabButtons.length ? tabButtons[0].id : null,\n );\n\n const actualTag: string | null = React.useMemo(() => {\n return tabButtons.length && !tabButtons.find((tab) => tab.id === selectedTag)\n ? tabButtons[0].id\n : selectedTag;\n }, [tabButtons, selectedTag]);\n\n const cards = React.useMemo(() => {\n const itemsToShow: FilterItem[] = actualTag\n ? items.filter((item) => item.tags.includes(actualTag))\n : items;\n\n return itemsToShow.map((item) => item.card);\n }, [actualTag, items]);\n\n return (\n <AnimateBlock className={b()} animate={animated}>\n <Grid>\n {title && (\n <Title\n className={b('title', {centered: centered})}\n title={title}\n subtitle={description}\n />\n )}\n {tabButtons.length && (\n <Row>\n <Col>\n <ButtonTabs\n className={b('tabs', {centered: centered})}\n items={tabButtons}\n activeTab={selectedTag}\n onSelectTab={setSelectedTag}\n tabSize={tagButtonSize}\n />\n </Col>\n </Row>\n )}\n <Row className={b('block-container')}>\n <CardLayoutBlock title=\"\" colSizes={colSizes} className={b('cards-container')}>\n {cards.map((card, index) => {\n const key = getBlockKey(card, index);\n return <ConstructorItem data={card} blockKey={index} key={key} />;\n })}\n </CardLayoutBlock>\n </Row>\n </Grid>\n </AnimateBlock>\n );\n};\nexport default FilterBlock;\n"]}
1
+ {"version":3,"file":"FilterBlock.js","sourceRoot":"../../../../src","sources":["blocks/FilterBlock/FilterBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,eAAe,EAAC,oBAAW;AACnC,OAAO,EAAC,YAAY,EAAE,KAAK,EAAC,kCAAyB;AACrD,OAAO,UAAiC,kDAA+C;AACvF,OAAO,EAAC,eAAe,EAAC,6EAAoE;AAC5F,OAAO,EAAC,G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SAAS,EAAE,WAAW,EACtB,WAAW,EAAE,cAAc,EAC3B,OAAO,EAAE,aAAa,GACxB,GACA,GACJ,CACT,EACD,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,CAAC,iBAAiB,CAAC,YAChC,KAAC,eAAe,IAAC,KAAK,EAAC,EAAE,EAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,iBAAiB,CAAC,YACxE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;wBACvB,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;wBAErC,OAAO,KAAC,eAAe,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAO,GAAG,CAAI,CAAC;oBACpE,CAAC,CAAC,GACY,GAChB,IACK,CAClB,CAAC;AACN,CAAC,CAAC;AACF,eAAe,WAAW,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {CardLayoutBlock} from '..';\nimport {AnimateBlock, Title} from '../../components';\nimport ButtonTabs, {ButtonTabsItemProps} from '../../components/ButtonTabs/ButtonTabs';\nimport {ConstructorItem} from '../../containers/PageConstructor/components/ConstructorItem';\nimport {Col, Row} from '../../grid';\nimport {FilterBlockProps, FilterItem} from '../../models';\nimport {block, getBlockKey} from '../../utils';\n\nimport {i18n} from './i18n';\nimport './FilterBlock.scss';\n\nconst b = block('filter-block');\n\nconst FilterBlock: React.FC<FilterBlockProps> = ({\n title,\n description,\n tags,\n tagButtonSize,\n allTag,\n items,\n colSizes,\n centered,\n animated,\n}) => {\n const tabButtons = React.useMemo(() => {\n const allButton: ButtonTabsItemProps | undefined = allTag\n ? {id: null, title: typeof allTag === 'boolean' ? i18n('label-all-tag') : allTag}\n : undefined;\n const otherButtons: ButtonTabsItemProps[] | undefined =\n tags && tags.map((tag) => ({id: tag.id, title: tag.label}));\n return [...(allButton ? [allButton] : []), ...(otherButtons ? otherButtons : [])];\n }, [allTag, tags]);\n\n const [selectedTag, setSelectedTag] = React.useState(\n tabButtons.length ? tabButtons[0].id : null,\n );\n\n const actualTag: string | null = React.useMemo(() => {\n return tabButtons.length && !tabButtons.find((tab) => tab.id === selectedTag)\n ? tabButtons[0].id\n : selectedTag;\n }, [tabButtons, selectedTag]);\n\n const cards = React.useMemo(() => {\n const itemsToShow: FilterItem[] = actualTag\n ? items.filter((item) => item.tags.includes(actualTag))\n : items;\n\n return itemsToShow.map((item) => item.card);\n }, [actualTag, items]);\n\n return (\n <AnimateBlock className={b()} animate={animated}>\n {title && (\n <Title\n className={b('title', {centered: centered})}\n title={title}\n subtitle={description}\n />\n )}\n {tabButtons.length && (\n <Row>\n <Col>\n <ButtonTabs\n className={b('tabs', {centered: centered})}\n items={tabButtons}\n activeTab={selectedTag}\n onSelectTab={setSelectedTag}\n tabSize={tagButtonSize}\n />\n </Col>\n </Row>\n )}\n <Row className={b('block-container')}>\n <CardLayoutBlock title=\"\" colSizes={colSizes} className={b('cards-container')}>\n {cards.map((card, index) => {\n const key = getBlockKey(card, index);\n\n return <ConstructorItem data={card} blockKey={key} key={key} />;\n })}\n </CardLayoutBlock>\n </Row>\n </AnimateBlock>\n );\n};\nexport default FilterBlock;\n"]}
@@ -10,8 +10,7 @@ const b = block('header-slider-block');
10
10
  export const HeaderSliderBlock = ({ items, arrows, ...props }) => {
11
11
  const isMobile = React.useContext(MobileContext);
12
12
  const showArrows = isMobile ? false : arrows;
13
- return (_jsx("div", { className: b('wrapper'), "data-qa": "header-slider", children: _jsx(SliderBlock, { ...props, arrows: showArrows, slidesToShow: 1, type: SliderType.HeaderCard, animated: false, blockClassName: b(), arrowSize: 20, children: items &&
14
- items.map((item, index) => (_jsx("div", { className: b('item'), "data-qa": `header-slider-item-${index + 1}`, children: _jsx(Header, { ...item, className: b('item-content') }) }, index))) }) }));
13
+ return (_jsx("div", { className: b('wrapper'), "data-qa": "header-slider", children: _jsx(SliderBlock, { ...props, arrows: showArrows, slidesToShow: 1, type: SliderType.HeaderCard, animated: false, blockClassName: b(), arrowSize: 20, children: items.map((item, index) => (_jsx("div", { className: b('item'), "data-qa": `header-slider-item-${index + 1}`, children: _jsx(Header, { ...item, className: b('item-content') }) }, index))) }) }));
15
14
  };
16
15
  export default HeaderSliderBlock;
17
16
  //# sourceMappingURL=HeaderSlider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderSlider.js","sourceRoot":"../../../../src","sources":["blocks/HeaderSlider/HeaderSlider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,aAAa,EAAC,6CAAoC;AAC1D,OAAO,EAAyB,UAAU,EAAC,8BAAqB;AAChE,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAClC,OAAO,MAAM,4BAAyB;AACtC,OAAO,EAAC,WAAW,EAAC,oBAAiB;AAErC,OAAO,oBAAoB,CAAC;AAE5B,MAAM,CAAC,GAAG,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAEvC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAC,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,EAAyB,EAAE,EAAE;IACnF,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjD,MAAM,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;IAE7C,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,aAAU,eAAe,YACjD,KAAC,WAAW,OACJ,KAAK,EACT,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,CAAC,EACf,IAAI,EAAE,UAAU,CAAC,UAAU,EAC3B,QAAQ,EAAE,KAAK,EACf,cAAc,EAAE,CAAC,EAAE,EACnB,SAAS,EAAE,EAAE,YAEZ,KAAK;gBACF,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACvB,cAEI,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACX,sBAAsB,KAAK,GAAG,CAAC,EAAE,YAE1C,KAAC,MAAM,OAAK,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,GAAI,IAJ7C,KAAK,CAKR,CACT,CAAC,GACI,GACZ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {MobileContext} from '../../context/mobileContext';\nimport {HeaderSliderBlockProps, SliderType} from '../../models';\nimport {block} from '../../utils';\nimport Header from '../Header/Header';\nimport {SliderBlock} from '../index';\n\nimport './HeaderSlider.scss';\n\nconst b = block('header-slider-block');\n\nexport const HeaderSliderBlock = ({items, arrows, ...props}: HeaderSliderBlockProps) => {\n const isMobile = React.useContext(MobileContext);\n const showArrows = isMobile ? false : arrows;\n\n return (\n <div className={b('wrapper')} data-qa=\"header-slider\">\n <SliderBlock\n {...props}\n arrows={showArrows}\n slidesToShow={1}\n type={SliderType.HeaderCard}\n animated={false}\n blockClassName={b()}\n arrowSize={20}\n >\n {items &&\n items.map((item, index) => (\n <div\n key={index}\n className={b('item')}\n data-qa={`header-slider-item-${index + 1}`}\n >\n <Header {...item} className={b('item-content')} />\n </div>\n ))}\n </SliderBlock>\n </div>\n );\n};\n\nexport default HeaderSliderBlock;\n"]}
1
+ {"version":3,"file":"HeaderSlider.js","sourceRoot":"../../../../src","sources":["blocks/HeaderSlider/HeaderSlider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,aAAa,EAAC,6CAAoC;AAC1D,OAAO,EAAyB,UAAU,EAAC,8BAAqB;AAChE,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAClC,OAAO,MAAM,4BAAyB;AACtC,OAAO,EAAC,WAAW,EAAC,oBAAiB;AAErC,OAAO,oBAAoB,CAAC;AAE5B,MAAM,CAAC,GAAG,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAEvC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAC,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,EAAyB,EAAE,EAAE;IACnF,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjD,MAAM,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;IAE7C,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,aAAU,eAAe,YACjD,KAAC,WAAW,OACJ,KAAK,EACT,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,CAAC,EACf,IAAI,EAAE,UAAU,CAAC,UAAU,EAC3B,QAAQ,EAAE,KAAK,EACf,cAAc,EAAE,CAAC,EAAE,EACnB,SAAS,EAAE,EAAE,YAEZ,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,cAEI,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACX,sBAAsB,KAAK,GAAG,CAAC,EAAE,YAE1C,KAAC,MAAM,OAAK,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,GAAI,IAJ7C,KAAK,CAKR,CACT,CAAC,GACQ,GACZ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {MobileContext} from '../../context/mobileContext';\nimport {HeaderSliderBlockProps, SliderType} from '../../models';\nimport {block} from '../../utils';\nimport Header from '../Header/Header';\nimport {SliderBlock} from '../index';\n\nimport './HeaderSlider.scss';\n\nconst b = block('header-slider-block');\n\nexport const HeaderSliderBlock = ({items, arrows, ...props}: HeaderSliderBlockProps) => {\n const isMobile = React.useContext(MobileContext);\n const showArrows = isMobile ? false : arrows;\n\n return (\n <div className={b('wrapper')} data-qa=\"header-slider\">\n <SliderBlock\n {...props}\n arrows={showArrows}\n slidesToShow={1}\n type={SliderType.HeaderCard}\n animated={false}\n blockClassName={b()}\n arrowSize={20}\n >\n {items.map((item, index) => (\n <div\n key={index}\n className={b('item')}\n data-qa={`header-slider-item-${index + 1}`}\n >\n <Header {...item} className={b('item-content')} />\n </div>\n ))}\n </SliderBlock>\n </div>\n );\n};\n\nexport default HeaderSliderBlock;\n"]}
@@ -3,7 +3,6 @@ import * as React from 'react';
3
3
  import { Image, Title } from "../../components/index.js";
4
4
  import { LocationContext } from "../../context/locationContext/index.js";
5
5
  import { useTheme } from "../../context/theme/index.js";
6
- import { Grid } from "../../grid/index.js";
7
6
  import { useAnalytics } from "../../hooks/index.js";
8
7
  import { block, getLinkProps, getThemedValue } from "../../utils/index.js";
9
8
  import './Icons.css';
@@ -16,13 +15,12 @@ const Icons = ({ title, description, size = 's', colSizes = { all: 12 }, items }
16
15
  const onClick = React.useCallback(({ analyticsEvents, url }) => {
17
16
  handleAnalytics(analyticsEvents, { url });
18
17
  }, [handleAnalytics]);
19
- return (_jsx(Grid, { children: _jsxs("div", { className: b({ size }), children: [(title || description) && (_jsx(Title, { className: b('header'), title: title, subtitle: description, colSizes: colSizes })), items &&
20
- items.map((item) => {
21
- const themedSrc = getThemedValue(item.src, theme);
22
- const itemContent = getItemContent({ ...item, src: themedSrc });
23
- const { url, text } = item;
24
- return url ? (_jsx("a", { className: b('item'), href: url, "aria-label": text, title: text, ...getLinkProps(url, hostname), onClick: () => onClick(item), children: itemContent }, url)) : (_jsx("div", { className: b('item'), children: itemContent }, text));
25
- })] }) }));
18
+ return (_jsxs("div", { className: b({ size }), children: [(title || description) && (_jsx(Title, { className: b('header'), title: title, subtitle: description, colSizes: colSizes })), items.map((item) => {
19
+ const themedSrc = getThemedValue(item.src, theme);
20
+ const itemContent = getItemContent({ ...item, src: themedSrc });
21
+ const { url, text } = item;
22
+ return url ? (_jsx("a", { className: b('item'), href: url, "aria-label": text, title: text, ...getLinkProps(url, hostname), onClick: () => onClick(item), children: itemContent }, url)) : (_jsx("div", { className: b('item'), children: itemContent }, text));
23
+ })] }));
26
24
  };
27
25
  export default Icons;
28
26
  //# sourceMappingURL=Icons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icons.js","sourceRoot":"../../../../src","sources":["blocks/Icons/Icons.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,kCAAyB;AAC9C,OAAO,EAAC,eAAe,EAAC,+CAAsC;AAC9D,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAC7C,OAAO,EAAC,IAAI,EAAC,4BAAmB;AAChC,OAAO,EAAC,YAAY,EAAC,6BAAoB;AAEzC,OAAO,EAAC,KAAK,EAAE,YAAY,EAAE,cAAc,EAAC,6BAAoB;AAEhE,OAAO,aAAa,CAAC;AAErB,MAAM,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;AAE/B,MAAM,cAAc,GAAG,CAAC,IAAsD,EAAE,EAAE,CAAC,CAC/E,MAAC,KAAK,CAAC,QAAQ,eACX,KAAC,KAAK,IAAC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,GAAI,EAC/C,YAAG,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YAAG,IAAI,CAAC,IAAI,GAAK,IAC3B,CACpB,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,EAAC,KAAK,EAAE,WAAW,EAAE,IAAI,GAAG,GAAG,EAAE,QAAQ,GAAG,EAAC,GAAG,EAAE,EAAE,EAAC,EAAE,KAAK,EAAkB,EAAE,EAAE;IAC7F,MAAM,EAAC,QAAQ,EAAC,GAAG,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;IACrD,MAAM,eAAe,GAAG,YAAY,EAAE,CAAC;IACvC,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IAEzB,MAAM,OAAO,G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K,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Image, Title} from '../../components';\nimport {LocationContext} from '../../context/locationContext';\nimport {useTheme} from '../../context/theme';\nimport {Grid} from '../../grid';\nimport {useAnalytics} from '../../hooks';\nimport {IconsBlockItemProps, IconsBlockProps} from '../../models';\nimport {block, getLinkProps, getThemedValue} from '../../utils';\n\nimport './Icons.scss';\n\nconst b = block('icons-block');\n\nconst getItemContent = (item: IconsBlockProps['items'][number] & {src: string}) => (\n <React.Fragment>\n <Image className={b('image')} src={item.src} />\n <p className={b('text')}>{item.text}</p>\n </React.Fragment>\n);\n\nconst Icons = ({title, description, size = 's', colSizes = {all: 12}, items}: IconsBlockProps) => {\n const {hostname} = React.useContext(LocationContext);\n const handleAnalytics = useAnalytics();\n const theme = useTheme();\n\n const onClick = React.useCallback(\n ({analyticsEvents, url}: IconsBlockItemProps) => {\n handleAnalytics(analyticsEvents, {url});\n },\n [handleAnalytics],\n );\n\n return (\n <Grid>\n <div className={b({size})}>\n {(title || description) && (\n <Title\n className={b('header')}\n title={title}\n subtitle={description}\n colSizes={colSizes}\n />\n )}\n {items &&\n items.map((item) => {\n const themedSrc = getThemedValue(item.src, theme);\n const itemContent = getItemContent({...item, src: themedSrc});\n const {url, text} = item;\n return url ? (\n <a\n className={b('item')}\n key={url}\n href={url}\n aria-label={text}\n title={text}\n {...getLinkProps(url, hostname)}\n onClick={() => onClick(item)}\n >\n {itemContent}\n </a>\n ) : (\n <div className={b('item')} key={text}>\n {itemContent}\n </div>\n );\n })}\n </div>\n </Grid>\n );\n};\n\nexport default Icons;\n"]}
1
+ {"version":3,"file":"Icons.js","sourceRoot":"../../../../src","sources":["blocks/Icons/Icons.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,kCAAyB;AAC9C,OAAO,EAAC,eAAe,EAAC,+CAAsC;AAC9D,OAAO,EAAC,QAAQ,EAAC,qC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W,EACrB,QAAQ,EAAE,QAAQ,GACpB,CACL,EACA,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;gBAChB,MAAM,SAAS,GAAG,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;gBAClD,MAAM,WAAW,GAAG,cAAc,CAAC,EAAC,GAAG,IAAI,EAAE,GAAG,EAAE,SAAS,EAAC,CAAC,CAAC;gBAC9D,MAAM,EAAC,GAAG,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC;gBACzB,OAAO,GAAG,CAAC,CAAC,CAAC,CACT,YACI,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAEpB,IAAI,EAAE,GAAG,gBACG,IAAI,EAChB,KAAK,EAAE,IAAI,KACP,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,YAE3B,WAAW,IAPP,GAAG,CAQR,CACP,CAAC,CAAC,CAAC,CACA,cAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YACpB,WAAW,IADgB,IAAI,CAE9B,CACT,CAAC;YACN,CAAC,CAAC,IACA,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Image, Title} from '../../components';\nimport {LocationContext} from '../../context/locationContext';\nimport {useTheme} from '../../context/theme';\nimport {useAnalytics} from '../../hooks';\nimport {IconsBlockItemProps, IconsBlockProps} from '../../models';\nimport {block, getLinkProps, getThemedValue} from '../../utils';\n\nimport './Icons.scss';\n\nconst b = block('icons-block');\n\nconst getItemContent = (item: IconsBlockProps['items'][number] & {src: string}) => (\n <React.Fragment>\n <Image className={b('image')} src={item.src} />\n <p className={b('text')}>{item.text}</p>\n </React.Fragment>\n);\n\nconst Icons = ({title, description, size = 's', colSizes = {all: 12}, items}: IconsBlockProps) => {\n const {hostname} = React.useContext(LocationContext);\n const handleAnalytics = useAnalytics();\n const theme = useTheme();\n\n const onClick = React.useCallback(\n ({analyticsEvents, url}: IconsBlockItemProps) => {\n handleAnalytics(analyticsEvents, {url});\n },\n [handleAnalytics],\n );\n\n return (\n <div className={b({size})}>\n {(title || description) && (\n <Title\n className={b('header')}\n title={title}\n subtitle={description}\n colSizes={colSizes}\n />\n )}\n {items.map((item) => {\n const themedSrc = getThemedValue(item.src, theme);\n const itemContent = getItemContent({...item, src: themedSrc});\n const {url, text} = item;\n return url ? (\n <a\n className={b('item')}\n key={url}\n href={url}\n aria-label={text}\n title={text}\n {...getLinkProps(url, hostname)}\n onClick={() => onClick(item)}\n >\n {itemContent}\n </a>\n ) : (\n <div className={b('item')} key={text}>\n {itemContent}\n </div>\n );\n })}\n </div>\n );\n};\n\nexport default Icons;\n"]}
@@ -7,7 +7,6 @@ import Title from "../../components/Title/Title.js";
7
7
  import YFMWrapper from "../../components/YFMWrapper/YFMWrapper.js";
8
8
  import { BREAKPOINTS } from "../../constants.js";
9
9
  import { useTheme } from "../../context/theme/index.js";
10
- import { Grid } from "../../grid/index.js";
11
10
  import { block, getThemedValue } from "../../utils/index.js";
12
11
  import { mergeVideoMicrodata } from "../../utils/microdata.js";
13
12
  import './PromoFeaturesBlock.css';
@@ -21,20 +20,19 @@ const PromoFeaturesBlock = (props) => {
21
20
  const { items, title, description, theme, animated = true } = props;
22
21
  const backgroundTheme = theme || 'default';
23
22
  const globalTheme = useTheme();
24
- return (_jsx(Grid, { children: _jsxs(AnimateBlock, { className: b({ [backgroundTheme]: true }), animate: animated, children: [_jsx(FullWidthBackground, { className: b('background', { [backgroundTheme]: true }) }), _jsx(Title, { title: title, subtitle: description, className: b('header') }), _jsx(BalancedMasonry, { breakpointCols: breakpointColumns, className: b('card-container'), columnClassName: b('card-container-column'), children: items &&
25
- items.map(({ title: cardTitle, text, media, theme: cardTheme }, index) => {
26
- const blockModifier = backgroundTheme === 'default' ? 'default' : 'light';
27
- const themeMod = cardTheme || blockModifier || '';
28
- const themedMedia = getThemedValue(media, globalTheme);
29
- const allProps = mergeVideoMicrodata(themedMedia, {
30
- name: cardTitle,
31
- description: text,
32
- });
33
- return (_jsxs("div", { className: b('card', {
34
- 'no-media': !media,
35
- [themeMod]: Boolean(themeMod),
36
- }), children: [_jsxs("div", { className: b('card-info'), children: [_jsx("h3", { className: b('card-title'), children: cardTitle }), _jsx("div", { className: b('card-text'), children: _jsx(YFMWrapper, { content: text, modifiers: { constructor: true } }) })] }), media && _jsx(Media, { className: b('card-media'), ...allProps })] }, index));
37
- }) })] }) }));
23
+ return (_jsxs(AnimateBlock, { className: b({ [backgroundTheme]: true }), animate: animated, children: [_jsx(FullWidthBackground, { className: b('background', { [backgroundTheme]: true }) }), _jsx(Title, { title: title, subtitle: description, className: b('header') }), _jsx(BalancedMasonry, { breakpointCols: breakpointColumns, className: b('card-container'), columnClassName: b('card-container-column'), children: items.map(({ title: cardTitle, text, media, theme: cardTheme }, index) => {
24
+ const blockModifier = backgroundTheme === 'default' ? 'default' : 'light';
25
+ const themeMod = cardTheme || blockModifier || '';
26
+ const themedMedia = getThemedValue(media, globalTheme);
27
+ const allProps = mergeVideoMicrodata(themedMedia, {
28
+ name: cardTitle,
29
+ description: text,
30
+ });
31
+ return (_jsxs("div", { className: b('card', {
32
+ 'no-media': !media,
33
+ [themeMod]: Boolean(themeMod),
34
+ }), children: [_jsxs("div", { className: b('card-info'), children: [_jsx("h3", { className: b('card-title'), children: cardTitle }), _jsx("div", { className: b('card-text'), children: _jsx(YFMWrapper, { content: text, modifiers: { constructor: true } }) })] }), media && _jsx(Media, { className: b('card-media'), ...allProps })] }, index));
35
+ }) })] }));
38
36
  };
39
37
  export default PromoFeaturesBlock;
40
38
  //# sourceMappingURL=PromoFeaturesBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PromoFeaturesBlock.js","sourceRoot":"../../../../src","sources":["blocks/PromoFeaturesBlock/PromoFeaturesBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,YAAY,sD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AAC,GACQ,IACP,GACZ,CACV,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';\nimport BalancedMasonry from '../../components/BalancedMasonry/BalancedMasonry';\nimport FullWidthBackground from '../../components/FullWidthBackground/FullWidthBackground';\nimport Media from '../../components/Media/Media';\nimport Title from '../../components/Title/Title';\nimport YFMWrapper from '../../components/YFMWrapper/YFMWrapper';\nimport {BREAKPOINTS} from '../../constants';\nimport {useTheme} from '../../context/theme';\nimport {Grid} from '../../grid';\nimport {PromoFeaturesProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\nimport {mergeVideoMicrodata} from '../../utils/microdata';\n\nimport './PromoFeaturesBlock.scss';\n\nconst b = block('PromoFeaturesBlock');\n\nconst breakpointColumns = {\n [BREAKPOINTS.lg]: 3,\n [BREAKPOINTS.md]: 2,\n [BREAKPOINTS.sm]: 1,\n};\n\nconst PromoFeaturesBlock = (props: PromoFeaturesProps) => {\n const {items, title, description, theme, animated = true} = props;\n const backgroundTheme = theme || 'default';\n const globalTheme = useTheme();\n\n return (\n <Grid>\n <AnimateBlock className={b({[backgroundTheme]: true})} animate={animated}>\n <FullWidthBackground className={b('background', {[backgroundTheme]: true})} />\n <Title title={title} subtitle={description} className={b('header')} />\n <BalancedMasonry\n breakpointCols={breakpointColumns}\n className={b('card-container')}\n columnClassName={b('card-container-column')}\n >\n {items &&\n items.map(({title: cardTitle, text, media, theme: cardTheme}, index) => {\n const blockModifier =\n backgroundTheme === 'default' ? 'default' : 'light';\n const themeMod = cardTheme || blockModifier || '';\n const themedMedia = getThemedValue(media, globalTheme);\n const allProps = mergeVideoMicrodata(themedMedia, {\n name: cardTitle,\n description: text,\n });\n\n return (\n <div\n key={index}\n className={b('card', {\n 'no-media': !media,\n [themeMod]: Boolean(themeMod),\n })}\n >\n <div className={b('card-info')}>\n <h3 className={b('card-title')}>{cardTitle}</h3>\n <div className={b('card-text')}>\n <YFMWrapper\n content={text}\n modifiers={{constructor: true}}\n />\n </div>\n </div>\n {media && <Media className={b('card-media')} {...allProps} />}\n </div>\n );\n })}\n </BalancedMasonry>\n </AnimateBlock>\n </Grid>\n );\n};\n\nexport default PromoFeaturesBlock;\n"]}
1
+ {"version":3,"file":"PromoFeaturesBlock.js","sourceRoot":"../../../../src","sources":["blocks/PromoFeaturesBlock/PromoFeaturesBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,YAAY,sDAAmD;AACtE,OAAO,eAAe,4DAAyD;AAC/E,OAAO,mBAAmB,oEAAiE;AAC3F,OAAO,KAAK,wCAAqC;AACjD,OAAO,KAAK,wCAAqC;AACjD,OAAO,UAAU,kDAA+C;AAChE,OAAO,EAAC,WAAW,EAAC,2BAAwB;AAC5C,OAAO,EAAC,QAAQ,EAAC,qCAA4B;AAE7C,OAAO,EAAC,KAAK,EAAE,cAAc,EAAC,6BAAoB;AAClD,OAAO,EAAC,mBAAmB,EAAC,iCAA8B;AAE1D,OAAO,0BAA0B,CAAC;AAElC,MAAM,CAAC,GAAG,KAAK,CAAC,oBAAoB,CAAC,CAAC;AAEtC,MAAM,iBAAiB,GAAG;IACtB,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC;IACnB,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC;IACnB,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,KAAyB,EAAE,EAAE;IACrD,MAAM,EAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,GAAG,IAAI,EAAC,GAAG,KAAK,CAAC;IAClE,MAAM,eAAe,GAAG,KAAK,IAAI,SAAS,CAAC;IAC3C,MAAM,WAAW,GAAG,QAAQ,EAAE,CAAC;IAE/B,OAAO,CACH,MAAC,YAAY,IAAC,SAAS,EAAE,CAAC,CAAC,EAAC,CAAC,eAAe,CAAC,EAAE,IAAI,EA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C,UAAU,IAAC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,EAAC,WAAW,EAAE,IAAI,EAAC,GAAI,GAC3D,IACJ,EACL,KAAK,IAAI,KAAC,KAAK,IAAC,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,KAAM,QAAQ,GAAI,KAZxD,KAAK,CAaR,CACT,CAAC;gBACN,CAAC,CAAC,GACY,IACP,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["import AnimateBlock from '../../components/AnimateBlock/AnimateBlock';\nimport BalancedMasonry from '../../components/BalancedMasonry/BalancedMasonry';\nimport FullWidthBackground from '../../components/FullWidthBackground/FullWidthBackground';\nimport Media from '../../components/Media/Media';\nimport Title from '../../components/Title/Title';\nimport YFMWrapper from '../../components/YFMWrapper/YFMWrapper';\nimport {BREAKPOINTS} from '../../constants';\nimport {useTheme} from '../../context/theme';\nimport {PromoFeaturesProps} from '../../models';\nimport {block, getThemedValue} from '../../utils';\nimport {mergeVideoMicrodata} from '../../utils/microdata';\n\nimport './PromoFeaturesBlock.scss';\n\nconst b = block('PromoFeaturesBlock');\n\nconst breakpointColumns = {\n [BREAKPOINTS.lg]: 3,\n [BREAKPOINTS.md]: 2,\n [BREAKPOINTS.sm]: 1,\n};\n\nconst PromoFeaturesBlock = (props: PromoFeaturesProps) => {\n const {items, title, description, theme, animated = true} = props;\n const backgroundTheme = theme || 'default';\n const globalTheme = useTheme();\n\n return (\n <AnimateBlock className={b({[backgroundTheme]: true})} animate={animated}>\n <FullWidthBackground className={b('background', {[backgroundTheme]: true})} />\n <Title title={title} subtitle={description} className={b('header')} />\n <BalancedMasonry\n breakpointCols={breakpointColumns}\n className={b('card-container')}\n columnClassName={b('card-container-column')}\n >\n {items.map(({title: cardTitle, text, media, theme: cardTheme}, index) => {\n const blockModifier = backgroundTheme === 'default' ? 'default' : 'light';\n const themeMod = cardTheme || blockModifier || '';\n const themedMedia = getThemedValue(media, globalTheme);\n const allProps = mergeVideoMicrodata(themedMedia, {\n name: cardTitle,\n description: text,\n });\n\n return (\n <div\n key={index}\n className={b('card', {\n 'no-media': !media,\n [themeMod]: Boolean(themeMod),\n })}\n >\n <div className={b('card-info')}>\n <h3 className={b('card-title')}>{cardTitle}</h3>\n <div className={b('card-text')}>\n <YFMWrapper content={text} modifiers={{constructor: true}} />\n </div>\n </div>\n {media && <Media className={b('card-media')} {...allProps} />}\n </div>\n );\n })}\n </BalancedMasonry>\n </AnimateBlock>\n );\n};\n\nexport default PromoFeaturesBlock;\n"]}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
- import { Col, Grid, Row } from "../../grid/index.js";
3
+ import { Col, Row } from "../../grid/index.js";
4
4
  import { Content } from "../../sub-blocks/index.js";
5
5
  import { block } from "../../utils/index.js";
6
6
  import { QuestionBlockItem } from "./QuestionBlockItem/QuestionBlockItem.js";
@@ -20,12 +20,11 @@ const QuestionsBlock = (props) => {
20
20
  }
21
21
  setOpened(newState);
22
22
  };
23
- return (_jsx(Grid, { children: _jsx("div", { className: b(), itemScope: true, itemType: FaqMicrodataValues.PageType, itemID: FaqMicrodataValues.PageId, children: _jsxs(Row, { children: [_jsx(Col, { sizes: { all: 12, md: 4 }, children: _jsx("div", { className: b('title'), children: _jsx(Content, { title: title, text: text, additionalInfo: additionalInfo, links: links, list: list, buttons: buttons, colSizes: { all: 12, md: 12 } }) }) }), _jsx(Col, { sizes: { all: 12, md: 8 }, role: 'list', children: items &&
24
- items.map(({ title: itemTitle, text: itemText, link, listStyle = 'dash' }, index) => {
25
- const isOpened = opened.includes(index);
26
- const onClick = () => toggleItem(index);
27
- return (_jsx(QuestionBlockItem, { title: itemTitle, text: itemText, link: link, listStyle: listStyle, isOpened: isOpened, onClick: onClick }, itemTitle));
28
- }) })] }) }) }));
23
+ return (_jsx("div", { className: b(), itemScope: true, itemType: FaqMicrodataValues.PageType, itemID: FaqMicrodataValues.PageId, children: _jsxs(Row, { children: [_jsx(Col, { sizes: { all: 12, md: 4 }, children: _jsx("div", { className: b('title'), children: _jsx(Content, { title: title, text: text, additionalInfo: additionalInfo, links: links, list: list, buttons: buttons, colSizes: { all: 12, md: 12 } }) }) }), _jsx(Col, { sizes: { all: 12, md: 8 }, role: 'list', children: items.map(({ title: itemTitle, text: itemText, link, listStyle = 'dash' }, index) => {
24
+ const isOpened = opened.includes(index);
25
+ const onClick = () => toggleItem(index);
26
+ return (_jsx(QuestionBlockItem, { title: itemTitle, text: itemText, link: link, listStyle: listStyle, isOpened: isOpened, onClick: onClick }, itemTitle));
27
+ }) })] }) }));
29
28
  };
30
29
  export default QuestionsBlock;
31
30
  //# sourceMappingURL=Questions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Questions.js","sourceRoot":"../../../../src","sources":["blocks/Questions/Questions.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAC,4BAAmB;AAE1C,OAAO,EAAC,OAAO,EAAC,kCAAyB;AACzC,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAElC,OAAO,EAAC,iBAAiB,EAAC,iDAA8C;AACxE,OAAO,EAAC,kBAAkB,EAAC,oBAAiB;AAE5C,OAAO,iBAAiB,CAAC;AAEzB,MAAM,CAAC,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAElC,MAAM,cAAc,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC7C,MAAM,EAAC,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAC,GAAG,KAAK,CAAC;IACzE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAE1D,MAAM,UAAU,GAAG,CAAC,KAAa,EAAE,EAAE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AK,CAAC,CAAC;gCACxC,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;gCAExC,OAAO,CACH,KAAC,iBAAiB,IAEd,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,IANX,SAAS,CAOhB,CACL,CAAC;4BACN,CAAC,CACJ,GACH,IACJ,GACJ,GACH,CACV,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Col, Grid, Row} from '../../grid';\nimport {QuestionsProps} from '../../models';\nimport {Content} from '../../sub-blocks';\nimport {block} from '../../utils';\n\nimport {QuestionBlockItem} from './QuestionBlockItem/QuestionBlockItem';\nimport {FaqMicrodataValues} from './models';\n\nimport './Questions.scss';\n\nconst b = block('QuestionsBlock');\n\nconst QuestionsBlock = (props: QuestionsProps) => {\n const {title, text, additionalInfo, links, buttons, items, list} = props;\n const [opened, setOpened] = React.useState<number[]>([0]);\n\n const toggleItem = (index: number) => {\n let newState;\n\n if (opened.includes(index)) {\n newState = opened.filter((itemIndex: number) => itemIndex !== index);\n } else {\n newState = [...opened, index];\n }\n\n setOpened(newState);\n };\n\n return (\n <Grid>\n <div\n className={b()}\n itemScope\n itemType={FaqMicrodataValues.PageType}\n itemID={FaqMicrodataValues.PageId}\n >\n <Row>\n <Col sizes={{all: 12, md: 4}}>\n <div className={b('title')}>\n <Content\n title={title}\n text={text}\n additionalInfo={additionalInfo}\n links={links}\n list={list}\n buttons={buttons}\n colSizes={{all: 12, md: 12}}\n />\n </div>\n </Col>\n <Col sizes={{all: 12, md: 8}} role={'list'}>\n {items &&\n items.map(\n (\n {title: itemTitle, text: itemText, link, listStyle = 'dash'},\n index,\n ) => {\n const isOpened = opened.includes(index);\n const onClick = () => toggleItem(index);\n\n return (\n <QuestionBlockItem\n key={itemTitle}\n title={itemTitle}\n text={itemText}\n link={link}\n listStyle={listStyle}\n isOpened={isOpened}\n onClick={onClick}\n />\n );\n },\n )}\n </Col>\n </Row>\n </div>\n </Grid>\n );\n};\n\nexport default QuestionsBlock;\n"]}
1
+ {"version":3,"file":"Questions.js","sourceRoot":"../../../../src","sources":["blocks/Questions/Questions.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,GAAG,EAAE,GAAG,EAAC,4BAAmB;AAEpC,OAAO,EAAC,OAAO,EAAC,kCAAyB;AACzC,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAElC,OAAO,EAAC,iBAAiB,EAAC,iDAA8C;AACxE,OAAO,EAAC,kBAAkB,EAAC,oBAAiB;AAE5C,OAAO,iBAAiB,CAAC;AAEzB,MAAM,CAAC,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAElC,MAAM,cAAc,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC7C,MAAM,EAAC,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAC,GAAG,KAAK,CAAC;IACzE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAE1D,MAAM,UAAU,GAAG,CAAC,KAAa,EAAE,EAAE;QACjC,IAAI,QAAQ,CAAC;QAEb,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,SAAiB,EAAE,EAAE,CAAC,SAAS,KAAK,KAAK,CAAC,CAAC;QACzE,CAAC;aAAM,CAAC;YACJ,QAAQ,GAAG,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,CAAC;QAClC,CAAC;QAED,SAAS,CAAC,QAAQ,CAAC,CAA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C,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Col, Row} from '../../grid';\nimport {QuestionsProps} from '../../models';\nimport {Content} from '../../sub-blocks';\nimport {block} from '../../utils';\n\nimport {QuestionBlockItem} from './QuestionBlockItem/QuestionBlockItem';\nimport {FaqMicrodataValues} from './models';\n\nimport './Questions.scss';\n\nconst b = block('QuestionsBlock');\n\nconst QuestionsBlock = (props: QuestionsProps) => {\n const {title, text, additionalInfo, links, buttons, items, list} = props;\n const [opened, setOpened] = React.useState<number[]>([0]);\n\n const toggleItem = (index: number) => {\n let newState;\n\n if (opened.includes(index)) {\n newState = opened.filter((itemIndex: number) => itemIndex !== index);\n } else {\n newState = [...opened, index];\n }\n\n setOpened(newState);\n };\n\n return (\n <div\n className={b()}\n itemScope\n itemType={FaqMicrodataValues.PageType}\n itemID={FaqMicrodataValues.PageId}\n >\n <Row>\n <Col sizes={{all: 12, md: 4}}>\n <div className={b('title')}>\n <Content\n title={title}\n text={text}\n additionalInfo={additionalInfo}\n links={links}\n list={list}\n buttons={buttons}\n colSizes={{all: 12, md: 12}}\n />\n </div>\n </Col>\n <Col sizes={{all: 12, md: 8}} role={'list'}>\n {items.map(\n ({title: itemTitle, text: itemText, link, listStyle = 'dash'}, index) => {\n const isOpened = opened.includes(index);\n const onClick = () => toggleItem(index);\n\n return (\n <QuestionBlockItem\n key={itemTitle}\n title={itemTitle}\n text={itemText}\n link={link}\n listStyle={listStyle}\n isOpened={isOpened}\n onClick={onClick}\n />\n );\n },\n )}\n </Col>\n </Row>\n </div>\n );\n};\n\nexport default QuestionsBlock;\n"]}
@@ -24,17 +24,16 @@ const Share = ({ items, title }) => {
24
24
  const { pathname, hostname } = React.useContext(LocationContext);
25
25
  const handleAnalytics = useAnalytics(DefaultEventNames.ShareButton);
26
26
  const handleButtonClick = React.useCallback(() => handleAnalytics(), [handleAnalytics]);
27
- return (_jsxs("div", { className: b(), children: [_jsx("h5", { className: b('title'), children: title || i18n('constructor-share') }), _jsx("div", { className: b('items'), children: items &&
28
- items.map((type) => {
29
- const url = getAbsolutePath(hostname, pathname);
30
- const socialUrl = getShareLink(url, type);
31
- const icon = icons[type];
32
- const urlTitle = i18n(`${type}-title`);
33
- const buttonLabel = i18n(`${type}-label`);
34
- return (_jsx(Button, { view: "flat", size: "l", target: "_blank", href: socialUrl, className: b('item', { type: type.toLowerCase() }), onClick: handleButtonClick, title: urlTitle, extraProps: {
35
- 'aria-label': buttonLabel,
36
- }, children: icon && (_jsx(Icon, { data: icon, size: 24, className: b('icon', { type }) })) }, type));
37
- }) })] }));
27
+ return (_jsxs("div", { className: b(), children: [_jsx("h5", { className: b('title'), children: title || i18n('constructor-share') }), _jsx("div", { className: b('items'), children: items.map((type) => {
28
+ const url = getAbsolutePath(hostname, pathname);
29
+ const socialUrl = getShareLink(url, type);
30
+ const icon = icons[type];
31
+ const urlTitle = i18n(`${type}-title`);
32
+ const buttonLabel = i18n(`${type}-label`);
33
+ return (_jsx(Button, { view: "flat", size: "l", target: "_blank", href: socialUrl, className: b('item', { type: type.toLowerCase() }), onClick: handleButtonClick, title: urlTitle, extraProps: {
34
+ 'aria-label': buttonLabel,
35
+ }, children: icon && _jsx(Icon, { data: icon, size: 24, className: b('icon', { type }) }) }, type));
36
+ }) })] }));
38
37
  };
39
38
  export default Share;
40
39
  //# sourceMappingURL=Share.js.map