@gravity-ui/page-constructor 6.3.2-alpha.3 → 6.5.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 (1150) 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/FoldableList/FoldableList.css +13 -0
  20. package/build/cjs/blocks/FoldableList/FoldableList.d.ts +3 -0
  21. package/build/cjs/blocks/FoldableList/FoldableList.js +31 -0
  22. package/build/cjs/blocks/FoldableList/FoldableList.js.map +1 -0
  23. package/build/cjs/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.css +78 -0
  24. package/build/cjs/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.d.ts +2 -0
  25. package/build/cjs/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.js +20 -0
  26. package/build/cjs/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.js.map +1 -0
  27. package/build/cjs/blocks/FoldableList/schema.d.ts +140 -0
  28. package/build/cjs/blocks/FoldableList/schema.js +39 -0
  29. package/build/cjs/blocks/FoldableList/schema.js.map +1 -0
  30. package/build/cjs/blocks/HeaderSlider/HeaderSlider.js +1 -2
  31. package/build/cjs/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
  32. package/build/cjs/blocks/Icons/Icons.js +6 -8
  33. package/build/cjs/blocks/Icons/Icons.js.map +1 -1
  34. package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +13 -15
  35. package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js.map +1 -1
  36. package/build/cjs/blocks/Questions/Questions.js +5 -6
  37. package/build/cjs/blocks/Questions/Questions.js.map +1 -1
  38. package/build/cjs/blocks/Share/Share.js +10 -11
  39. package/build/cjs/blocks/Share/Share.js.map +1 -1
  40. package/build/cjs/blocks/Slider/Slider.js +10 -12
  41. package/build/cjs/blocks/Slider/Slider.js.map +1 -1
  42. package/build/cjs/blocks/Table/schema.d.ts +0 -1
  43. package/build/cjs/blocks/Table/schema.js +0 -1
  44. package/build/cjs/blocks/Table/schema.js.map +1 -1
  45. package/build/cjs/blocks/Tabs/Tabs.js +4 -4
  46. package/build/cjs/blocks/Tabs/Tabs.js.map +1 -1
  47. package/build/cjs/blocks/index.d.ts +1 -0
  48. package/build/cjs/blocks/index.js +3 -1
  49. package/build/cjs/blocks/index.js.map +1 -1
  50. package/build/cjs/components/BlockBase/BlockBase.css +16 -8
  51. package/build/cjs/constructor-items.d.ts +7 -22
  52. package/build/cjs/constructor-items.js +7 -80
  53. package/build/cjs/constructor-items.js.map +1 -1
  54. package/build/cjs/containers/PageConstructor/PageConstructor.d.ts +1 -1
  55. package/build/cjs/containers/PageConstructor/PageConstructor.js +10 -18
  56. package/build/cjs/containers/PageConstructor/PageConstructor.js.map +1 -1
  57. package/build/cjs/containers/PageConstructor/Provider.js +0 -2
  58. package/build/cjs/containers/PageConstructor/Provider.js.map +1 -1
  59. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.css +6 -10
  60. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -3
  61. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js.map +1 -1
  62. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +6 -7
  63. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js.map +1 -1
  64. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
  65. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -2
  66. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js.map +1 -1
  67. package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +1 -2
  68. package/build/cjs/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js.map +1 -1
  69. package/build/cjs/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +2 -1
  70. package/build/cjs/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js.map +1 -1
  71. package/build/cjs/context/blockIdContext/blockIdContext.d.ts +2 -2
  72. package/build/cjs/context/blockIdContext/blockIdContext.js +1 -1
  73. package/build/cjs/context/blockIdContext/blockIdContext.js.map +1 -1
  74. package/build/cjs/editor/components/CodeEditor/CodeEditor.d.ts +2 -1
  75. package/build/cjs/editor/components/CodeEditor/CodeEditor.js +6 -5
  76. package/build/cjs/editor/components/CodeEditor/CodeEditor.js.map +1 -1
  77. package/build/cjs/grid/Grid/Grid.css +6 -2
  78. package/build/cjs/hooks/useAnalytics.js +1 -1
  79. package/build/cjs/hooks/useAnalytics.js.map +1 -1
  80. package/build/cjs/models/constructor-items/blocks.d.ts +18 -2
  81. package/build/cjs/models/constructor-items/blocks.js +1 -1
  82. package/build/cjs/models/constructor-items/blocks.js.map +1 -1
  83. package/build/cjs/models/constructor.d.ts +1 -4
  84. package/build/cjs/models/constructor.js.map +1 -1
  85. package/build/cjs/models/navigation.d.ts +2 -2
  86. package/build/cjs/models/navigation.js.map +1 -1
  87. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js +1 -1
  88. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js.map +1 -1
  89. package/build/cjs/navigation/components/Navigation/Navigation.d.ts +2 -2
  90. package/build/cjs/navigation/components/Navigation/Navigation.js +1 -1
  91. package/build/cjs/navigation/components/Navigation/Navigation.js.map +1 -1
  92. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +1 -4
  93. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
  94. package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +1 -4
  95. package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js.map +1 -1
  96. package/build/cjs/navigation/containers/Layout/Layout.css +1 -0
  97. package/build/cjs/navigation/containers/Layout/Layout.js +0 -1
  98. package/build/cjs/navigation/containers/Layout/Layout.js.map +1 -1
  99. package/build/cjs/navigation/models.d.ts +1 -1
  100. package/build/cjs/navigation/models.js.map +1 -1
  101. package/build/cjs/schema/constants.js +1 -2
  102. package/build/cjs/schema/constants.js.map +1 -1
  103. package/build/cjs/schema/index.d.ts +0 -256
  104. package/build/cjs/schema/index.js +6 -12
  105. package/build/cjs/schema/index.js.map +1 -1
  106. package/build/cjs/schema/validators/blocks.d.ts +1 -0
  107. package/build/cjs/schema/validators/blocks.js +1 -0
  108. package/build/cjs/schema/validators/blocks.js.map +1 -1
  109. package/build/cjs/sub-blocks/BannerCard/BannerCard.js +1 -2
  110. package/build/cjs/sub-blocks/BannerCard/BannerCard.js.map +1 -1
  111. package/build/cjs/sub-blocks/Content/schema.d.ts +0 -1
  112. package/build/cjs/sub-blocks/Content/schema.js +0 -1
  113. package/build/cjs/sub-blocks/Content/schema.js.map +1 -1
  114. package/build/cjs/sub-blocks/ImageCard/ImageCard.js +1 -1
  115. package/build/cjs/sub-blocks/ImageCard/ImageCard.js.map +1 -1
  116. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +1 -1
  117. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js.map +1 -1
  118. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +206 -211
  119. package/build/cjs/sub-blocks/LayoutItem/schema.js +5 -6
  120. package/build/cjs/sub-blocks/LayoutItem/schema.js.map +1 -1
  121. package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
  122. package/build/cjs/sub-blocks/PriceDetailed/PriceDetailed.js.map +1 -1
  123. package/build/cjs/utils/index.d.ts +0 -1
  124. package/build/cjs/utils/index.js +0 -1
  125. package/build/cjs/utils/index.js.map +1 -1
  126. package/build/esm/blocks/Banner/Banner.js +1 -2
  127. package/build/esm/blocks/Banner/Banner.js.map +1 -1
  128. package/build/esm/blocks/CardLayout/CardLayout.css +0 -1
  129. package/build/esm/blocks/CardLayout/CardLayout.js +4 -5
  130. package/build/esm/blocks/CardLayout/CardLayout.js.map +1 -1
  131. package/build/esm/blocks/Companies/Companies.js +1 -2
  132. package/build/esm/blocks/Companies/Companies.js.map +1 -1
  133. package/build/esm/blocks/ContentLayout/ContentLayout.js +2 -2
  134. package/build/esm/blocks/ContentLayout/ContentLayout.js.map +1 -1
  135. package/build/esm/blocks/ContentLayout/schema.d.ts +0 -1
  136. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +13 -14
  137. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js.map +1 -1
  138. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +0 -1
  139. package/build/esm/blocks/ExtendedFeatures/schema.js +0 -1
  140. package/build/esm/blocks/ExtendedFeatures/schema.js.map +1 -1
  141. package/build/esm/blocks/FilterBlock/FilterBlock.js +6 -6
  142. package/build/esm/blocks/FilterBlock/FilterBlock.js.map +1 -1
  143. package/build/esm/blocks/FoldableList/FoldableList.css +13 -0
  144. package/build/esm/blocks/FoldableList/FoldableList.d.ts +4 -0
  145. package/build/esm/blocks/FoldableList/FoldableList.js +29 -0
  146. package/build/esm/blocks/FoldableList/FoldableList.js.map +1 -0
  147. package/build/esm/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.css +78 -0
  148. package/build/esm/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.d.ts +3 -0
  149. package/build/esm/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.js +16 -0
  150. package/build/esm/blocks/FoldableList/FoldableListBlockItem/FoldableListBlockItem.js.map +1 -0
  151. package/build/esm/blocks/FoldableList/schema.d.ts +140 -0
  152. package/build/esm/blocks/FoldableList/schema.js +35 -0
  153. package/build/esm/blocks/FoldableList/schema.js.map +1 -0
  154. package/build/esm/blocks/HeaderSlider/HeaderSlider.js +1 -2
  155. package/build/esm/blocks/HeaderSlider/HeaderSlider.js.map +1 -1
  156. package/build/esm/blocks/Icons/Icons.js +6 -8
  157. package/build/esm/blocks/Icons/Icons.js.map +1 -1
  158. package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js +13 -15
  159. package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.js.map +1 -1
  160. package/build/esm/blocks/Questions/Questions.js +6 -7
  161. package/build/esm/blocks/Questions/Questions.js.map +1 -1
  162. package/build/esm/blocks/Share/Share.js +10 -11
  163. package/build/esm/blocks/Share/Share.js.map +1 -1
  164. package/build/esm/blocks/Slider/Slider.js +10 -12
  165. package/build/esm/blocks/Slider/Slider.js.map +1 -1
  166. package/build/esm/blocks/Table/schema.d.ts +0 -1
  167. package/build/esm/blocks/Table/schema.js +0 -1
  168. package/build/esm/blocks/Table/schema.js.map +1 -1
  169. package/build/esm/blocks/Tabs/Tabs.js +5 -5
  170. package/build/esm/blocks/Tabs/Tabs.js.map +1 -1
  171. package/build/esm/blocks/index.d.ts +1 -0
  172. package/build/esm/blocks/index.js +1 -0
  173. package/build/esm/blocks/index.js.map +1 -1
  174. package/build/esm/components/BlockBase/BlockBase.css +16 -8
  175. package/build/esm/constructor-items.d.ts +7 -22
  176. package/build/esm/constructor-items.js +3 -76
  177. package/build/esm/constructor-items.js.map +1 -1
  178. package/build/esm/containers/PageConstructor/PageConstructor.d.ts +1 -1
  179. package/build/esm/containers/PageConstructor/PageConstructor.js +12 -20
  180. package/build/esm/containers/PageConstructor/PageConstructor.js.map +1 -1
  181. package/build/esm/containers/PageConstructor/Provider.js +0 -2
  182. package/build/esm/containers/PageConstructor/Provider.js.map +1 -1
  183. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.css +6 -10
  184. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +1 -3
  185. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js.map +1 -1
  186. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +6 -7
  187. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js.map +1 -1
  188. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
  189. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +1 -2
  190. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js.map +1 -1
  191. package/build/esm/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js +1 -2
  192. package/build/esm/containers/PageConstructor/components/ConstructorLoadable/ConstructorLoadable.js.map +1 -1
  193. package/build/esm/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js +2 -1
  194. package/build/esm/containers/PageConstructor/components/ConstructorRow/ConstructorRow.js.map +1 -1
  195. package/build/esm/context/blockIdContext/blockIdContext.d.ts +2 -2
  196. package/build/esm/context/blockIdContext/blockIdContext.js +1 -1
  197. package/build/esm/context/blockIdContext/blockIdContext.js.map +1 -1
  198. package/build/esm/editor/components/CodeEditor/CodeEditor.d.ts +2 -1
  199. package/build/esm/editor/components/CodeEditor/CodeEditor.js +6 -4
  200. package/build/esm/editor/components/CodeEditor/CodeEditor.js.map +1 -1
  201. package/build/esm/grid/Grid/Grid.css +6 -2
  202. package/build/esm/hooks/useAnalytics.js +1 -1
  203. package/build/esm/hooks/useAnalytics.js.map +1 -1
  204. package/build/esm/models/constructor-items/blocks.d.ts +18 -2
  205. package/build/esm/models/constructor-items/blocks.js +1 -1
  206. package/build/esm/models/constructor-items/blocks.js.map +1 -1
  207. package/build/esm/models/constructor.d.ts +1 -4
  208. package/build/esm/models/constructor.js.map +1 -1
  209. package/build/esm/models/navigation.d.ts +2 -2
  210. package/build/esm/models/navigation.js.map +1 -1
  211. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js +2 -2
  212. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js.map +1 -1
  213. package/build/esm/navigation/components/Navigation/Navigation.d.ts +2 -2
  214. package/build/esm/navigation/components/Navigation/Navigation.js +1 -1
  215. package/build/esm/navigation/components/Navigation/Navigation.js.map +1 -1
  216. package/build/esm/navigation/components/NavigationItem/NavigationItem.js +1 -4
  217. package/build/esm/navigation/components/NavigationItem/NavigationItem.js.map +1 -1
  218. package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js +1 -4
  219. package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.js.map +1 -1
  220. package/build/esm/navigation/containers/Layout/Layout.css +1 -0
  221. package/build/esm/navigation/containers/Layout/Layout.js +1 -2
  222. package/build/esm/navigation/containers/Layout/Layout.js.map +1 -1
  223. package/build/esm/navigation/models.d.ts +1 -1
  224. package/build/esm/navigation/models.js.map +1 -1
  225. package/build/esm/schema/constants.js +2 -3
  226. package/build/esm/schema/constants.js.map +1 -1
  227. package/build/esm/schema/index.d.ts +0 -256
  228. package/build/esm/schema/index.js +5 -11
  229. package/build/esm/schema/index.js.map +1 -1
  230. package/build/esm/schema/validators/blocks.d.ts +1 -0
  231. package/build/esm/schema/validators/blocks.js +1 -0
  232. package/build/esm/schema/validators/blocks.js.map +1 -1
  233. package/build/esm/sub-blocks/BannerCard/BannerCard.js +1 -2
  234. package/build/esm/sub-blocks/BannerCard/BannerCard.js.map +1 -1
  235. package/build/esm/sub-blocks/Content/schema.d.ts +0 -1
  236. package/build/esm/sub-blocks/Content/schema.js +0 -1
  237. package/build/esm/sub-blocks/Content/schema.js.map +1 -1
  238. package/build/esm/sub-blocks/ImageCard/ImageCard.js +1 -1
  239. package/build/esm/sub-blocks/ImageCard/ImageCard.js.map +1 -1
  240. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +1 -1
  241. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js.map +1 -1
  242. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +206 -211
  243. package/build/esm/sub-blocks/LayoutItem/schema.js +2 -3
  244. package/build/esm/sub-blocks/LayoutItem/schema.js.map +1 -1
  245. package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js +1 -1
  246. package/build/esm/sub-blocks/PriceDetailed/PriceDetailed.js.map +1 -1
  247. package/build/esm/utils/index.d.ts +0 -1
  248. package/build/esm/utils/index.js +0 -1
  249. package/build/esm/utils/index.js.map +1 -1
  250. package/package.json +15 -28
  251. package/schema/index.js +1 -1
  252. package/server/models/constructor-items/blocks.d.ts +18 -2
  253. package/server/models/constructor-items/blocks.js +1 -1
  254. package/server/models/constructor.d.ts +1 -4
  255. package/server/models/navigation.d.ts +2 -2
  256. package/server/utils/index.d.ts +0 -1
  257. package/server/utils/index.js +0 -1
  258. package/styles/mixins.scss +9 -9
  259. package/widget/{5287.index.js → 1092.index.js} +1 -1
  260. package/widget/{8092.index.js → 1130.index.js} +1 -1
  261. package/widget/1219.index.js +1 -0
  262. package/widget/{2390.index.js → 122.index.js} +1 -1
  263. package/widget/{6817.index.js → 1289.index.js} +1 -1
  264. package/widget/{2921.index.js → 1335.index.js} +1 -1
  265. package/widget/{1876.index.js → 1340.index.js} +1 -1
  266. package/widget/{3901.index.js → 1349.index.js} +1 -1
  267. package/widget/1532.index.js +1 -0
  268. package/widget/{2957.index.js → 1750.index.js} +1 -1
  269. package/widget/{5105.index.js → 1995.index.js} +1 -1
  270. package/widget/{5418.index.js → 2010.index.js} +1 -1
  271. package/widget/{9517.index.js → 2026.index.js} +1 -1
  272. package/widget/{1794.index.js → 2187.index.js} +1 -1
  273. package/widget/{7548.index.js → 2218.index.js} +1 -1
  274. package/widget/225.index.js +1 -0
  275. package/widget/2338.index.js +1 -0
  276. package/widget/{4653.index.js → 2355.index.js} +1 -1
  277. package/widget/{5001.index.js → 2369.index.js} +1 -1
  278. package/widget/{4127.index.js → 2487.index.js} +1 -1
  279. package/widget/{6165.index.js → 2498.index.js} +1 -1
  280. package/widget/{5254.index.js → 2509.index.js} +1 -1
  281. package/widget/2544.index.js +1 -1
  282. package/widget/2619.index.js +1 -0
  283. package/widget/{5941.index.js → 2673.index.js} +1 -1
  284. package/widget/{4717.index.js → 2698.index.js} +1 -1
  285. package/widget/{7427.index.js → 2706.index.js} +1 -1
  286. package/widget/{8602.index.js → 2739.index.js} +1 -1
  287. package/widget/2745.index.js +1 -0
  288. package/widget/2796.index.js +1 -0
  289. package/widget/{7573.index.js → 2830.index.js} +1 -1
  290. package/widget/{3237.index.js → 2878.index.js} +1 -1
  291. package/widget/292.index.js +1 -0
  292. package/widget/2979.index.js +1 -0
  293. package/widget/3187.index.js +1 -0
  294. package/widget/321.index.js +1 -0
  295. package/widget/{5437.index.js → 3222.index.js} +1 -1
  296. package/widget/{1987.index.js → 3225.index.js} +1 -1
  297. package/widget/{7719.index.js → 3309.index.js} +1 -1
  298. package/widget/{4254.index.js → 3433.index.js} +1 -1
  299. package/widget/{2722.index.js → 3473.index.js} +1 -1
  300. package/widget/3532.index.js +1 -0
  301. package/widget/3562.index.js +1 -0
  302. package/widget/{6148.index.js → 3672.index.js} +1 -1
  303. package/widget/{4990.index.js → 3713.index.js} +1 -1
  304. package/widget/{8894.index.js → 3860.index.js} +1 -1
  305. package/widget/{5551.index.js → 3900.index.js} +1 -1
  306. package/widget/{6629.index.js → 4007.index.js} +1 -1
  307. package/widget/{7467.index.js → 4061.index.js} +1 -1
  308. package/widget/{5423.index.js → 4072.index.js} +1 -1
  309. package/widget/{4144.index.js → 4173.index.js} +1 -1
  310. package/widget/4288.index.js +1 -0
  311. package/widget/{8242.index.js → 4309.index.js} +1 -1
  312. package/widget/{8146.index.js → 4334.index.js} +1 -1
  313. package/widget/{9339.index.js → 4405.index.js} +1 -1
  314. package/widget/4457.index.js +1 -0
  315. package/widget/{8768.index.js → 4485.index.js} +1 -1
  316. package/widget/4509.index.js +1 -0
  317. package/widget/{4067.index.js → 4608.index.js} +1 -1
  318. package/widget/465.index.js +1 -0
  319. package/widget/{7118.index.js → 4719.index.js} +1 -1
  320. package/widget/4734.index.js +1 -0
  321. package/widget/4780.index.js +1 -0
  322. package/widget/4895.index.js +1 -0
  323. package/widget/{790.index.js → 494.index.js} +1 -1
  324. package/widget/5012.index.js +1 -0
  325. package/widget/{4722.index.js → 5084.index.js} +1 -1
  326. package/widget/5285.index.js +1 -0
  327. package/widget/5376.index.js +1 -0
  328. package/widget/539.index.js +1 -0
  329. package/widget/5414.index.js +1 -0
  330. package/widget/{8980.index.js → 5513.index.js} +1 -1
  331. package/widget/5530.index.js +1 -0
  332. package/widget/5571.index.js +1 -0
  333. package/widget/{8540.index.js → 5592.index.js} +1 -1
  334. package/widget/5616.index.js +1 -0
  335. package/widget/{5903.index.js → 5662.index.js} +1 -1
  336. package/widget/{7109.index.js → 5665.index.js} +1 -1
  337. package/widget/{8792.index.js → 5681.index.js} +1 -1
  338. package/widget/5760.index.js +1 -0
  339. package/widget/{6257.index.js → 5811.index.js} +1 -1
  340. package/widget/{5054.index.js → 5826.index.js} +1 -1
  341. package/widget/{1560.index.js → 5877.index.js} +1 -1
  342. package/widget/{9149.index.js → 5944.index.js} +1 -1
  343. package/widget/{8341.index.js → 5977.index.js} +1 -1
  344. package/widget/{3646.index.js → 5993.index.js} +1 -1
  345. package/widget/{2009.index.js → 6007.index.js} +1 -1
  346. package/widget/{3852.index.js → 6033.index.js} +1 -1
  347. package/widget/{5567.index.js → 6101.index.js} +1 -1
  348. package/widget/623.index.js +1 -0
  349. package/widget/{7989.index.js → 6290.index.js} +1 -1
  350. package/widget/6364.index.js +1 -0
  351. package/widget/{7387.index.js → 6400.index.js} +1 -1
  352. package/widget/{5473.index.js → 6462.index.js} +1 -1
  353. package/widget/6467.index.js +1 -0
  354. package/widget/{6622.index.js → 6481.index.js} +1 -1
  355. package/widget/{4888.index.js → 6605.index.js} +1 -1
  356. package/widget/{2966.index.js → 6803.index.js} +1 -1
  357. package/widget/{5627.index.js → 6847.index.js} +1 -1
  358. package/widget/{2019.index.js → 7081.index.js} +1 -1
  359. package/widget/7205.index.js +1 -0
  360. package/widget/{5596.index.js → 7250.index.js} +1 -1
  361. package/widget/{7763.index.js → 7317.index.js} +1 -1
  362. package/widget/7329.index.js +1 -0
  363. package/widget/{5159.index.js → 7406.index.js} +1 -1
  364. package/widget/{7632.index.js → 7409.index.js} +1 -1
  365. package/widget/{3783.index.js → 7420.index.js} +1 -1
  366. package/widget/{7101.index.js → 7439.index.js} +1 -1
  367. package/widget/{9197.index.js → 7674.index.js} +1 -1
  368. package/widget/{5805.index.js → 7690.index.js} +1 -1
  369. package/widget/{2641.index.js → 7741.index.js} +1 -1
  370. package/widget/{4724.index.js → 7933.index.js} +1 -1
  371. package/widget/{9132.index.js → 8003.index.js} +1 -1
  372. package/widget/813.index.js +1 -0
  373. package/widget/{6513.index.js → 8142.index.js} +1 -1
  374. package/widget/{8562.index.js → 8298.index.js} +1 -1
  375. package/widget/{7200.index.js → 8361.index.js} +1 -1
  376. package/widget/{4855.index.js → 8418.index.js} +1 -1
  377. package/widget/860.index.js +1 -0
  378. package/widget/{1796.index.js → 8615.index.js} +1 -1
  379. package/widget/{6312.index.js → 8660.index.js} +1 -1
  380. package/widget/880.index.js +1 -0
  381. package/widget/8804.index.js +1 -0
  382. package/widget/8809.index.js +1 -0
  383. package/widget/{9157.index.js → 8928.index.js} +1 -1
  384. package/widget/912.index.js +1 -0
  385. package/widget/9160.index.js +1 -0
  386. package/widget/{5914.index.js → 9252.index.js} +1 -1
  387. package/widget/{3706.index.js → 9286.index.js} +1 -1
  388. package/widget/{2502.index.js → 9294.index.js} +1 -1
  389. package/widget/{9182.index.js → 9423.index.js} +1 -1
  390. package/widget/{8477.index.js → 9464.index.js} +1 -1
  391. package/widget/950.index.js +1 -0
  392. package/widget/952.index.js +1 -0
  393. package/widget/9677.index.js +1 -0
  394. package/widget/9751.index.js +1 -0
  395. package/widget/{3220.index.js → 9836.index.js} +1 -1
  396. package/widget/{2376.index.js → 9865.index.js} +1 -1
  397. package/widget/{5109.index.js → 9881.index.js} +1 -1
  398. package/widget/9911.index.js +1 -1
  399. package/widget/{7822.index.js → 9964.index.js} +1 -1
  400. package/widget/{9091.index.js → 9990.index.js} +1 -1
  401. package/widget/9998.index.js +1 -0
  402. package/widget/index.js +1 -1
  403. package/build/cjs/blocks/Banner/index.d.ts +0 -3
  404. package/build/cjs/blocks/Banner/index.js +0 -24
  405. package/build/cjs/blocks/Banner/index.js.map +0 -1
  406. package/build/cjs/blocks/CardLayout/index.d.ts +0 -5
  407. package/build/cjs/blocks/CardLayout/index.js +0 -186
  408. package/build/cjs/blocks/CardLayout/index.js.map +0 -1
  409. package/build/cjs/blocks/Companies/index.d.ts +0 -3
  410. package/build/cjs/blocks/Companies/index.js +0 -20
  411. package/build/cjs/blocks/Companies/index.js.map +0 -1
  412. package/build/cjs/blocks/ContentLayout/index.d.ts +0 -41
  413. package/build/cjs/blocks/ContentLayout/index.js +0 -81
  414. package/build/cjs/blocks/ContentLayout/index.js.map +0 -1
  415. package/build/cjs/blocks/ExtendedFeatures/index.d.ts +0 -58
  416. package/build/cjs/blocks/ExtendedFeatures/index.js +0 -77
  417. package/build/cjs/blocks/ExtendedFeatures/index.js.map +0 -1
  418. package/build/cjs/blocks/FilterBlock/index.d.ts +0 -29
  419. package/build/cjs/blocks/FilterBlock/index.js +0 -98
  420. package/build/cjs/blocks/FilterBlock/index.js.map +0 -1
  421. package/build/cjs/blocks/Form/index.d.ts +0 -13
  422. package/build/cjs/blocks/Form/index.js +0 -20
  423. package/build/cjs/blocks/Form/index.js.map +0 -1
  424. package/build/cjs/blocks/Header/dynamic-form.d.ts +0 -2
  425. package/build/cjs/blocks/Header/dynamic-form.js +0 -731
  426. package/build/cjs/blocks/Header/dynamic-form.js.map +0 -1
  427. package/build/cjs/blocks/Header/index.d.ts +0 -20
  428. package/build/cjs/blocks/Header/index.js +0 -34
  429. package/build/cjs/blocks/Header/index.js.map +0 -1
  430. package/build/cjs/blocks/HeaderSlider/index.d.ts +0 -32
  431. package/build/cjs/blocks/HeaderSlider/index.js +0 -40
  432. package/build/cjs/blocks/HeaderSlider/index.js.map +0 -1
  433. package/build/cjs/blocks/Icons/index.d.ts +0 -20
  434. package/build/cjs/blocks/Icons/index.js +0 -64
  435. package/build/cjs/blocks/Icons/index.js.map +0 -1
  436. package/build/cjs/blocks/Info/index.d.ts +0 -22
  437. package/build/cjs/blocks/Info/index.js +0 -43
  438. package/build/cjs/blocks/Info/index.js.map +0 -1
  439. package/build/cjs/blocks/Map/index.d.ts +0 -12
  440. package/build/cjs/blocks/Map/index.js +0 -19
  441. package/build/cjs/blocks/Map/index.js.map +0 -1
  442. package/build/cjs/blocks/Media/index.d.ts +0 -39
  443. package/build/cjs/blocks/Media/index.js +0 -57
  444. package/build/cjs/blocks/Media/index.js.map +0 -1
  445. package/build/cjs/blocks/PromoFeaturesBlock/index.d.ts +0 -22
  446. package/build/cjs/blocks/PromoFeaturesBlock/index.js +0 -49
  447. package/build/cjs/blocks/PromoFeaturesBlock/index.js.map +0 -1
  448. package/build/cjs/blocks/Questions/index.d.ts +0 -30
  449. package/build/cjs/blocks/Questions/index.js +0 -49
  450. package/build/cjs/blocks/Questions/index.js.map +0 -1
  451. package/build/cjs/blocks/Share/index.d.ts +0 -13
  452. package/build/cjs/blocks/Share/index.js +0 -20
  453. package/build/cjs/blocks/Share/index.js.map +0 -1
  454. package/build/cjs/blocks/Slider/dynamic-form.d.ts +0 -3
  455. package/build/cjs/blocks/Slider/dynamic-form.js +0 -226
  456. package/build/cjs/blocks/Slider/dynamic-form.js.map +0 -1
  457. package/build/cjs/blocks/Slider/index.d.ts +0 -28
  458. package/build/cjs/blocks/Slider/index.js +0 -47
  459. package/build/cjs/blocks/Slider/index.js.map +0 -1
  460. package/build/cjs/blocks/Table/index.d.ts +0 -18
  461. package/build/cjs/blocks/Table/index.js +0 -32
  462. package/build/cjs/blocks/Table/index.js.map +0 -1
  463. package/build/cjs/blocks/Tabs/index.d.ts +0 -17
  464. package/build/cjs/blocks/Tabs/index.js +0 -31
  465. package/build/cjs/blocks/Tabs/index.js.map +0 -1
  466. package/build/cjs/blocks/TestEditorBlock/TestEditorBlock.d.ts +0 -5
  467. package/build/cjs/blocks/TestEditorBlock/TestEditorBlock.js +0 -12
  468. package/build/cjs/blocks/TestEditorBlock/TestEditorBlock.js.map +0 -1
  469. package/build/cjs/blocks/TestEditorBlock/form.d.ts +0 -3
  470. package/build/cjs/blocks/TestEditorBlock/form.js +0 -91
  471. package/build/cjs/blocks/TestEditorBlock/form.js.map +0 -1
  472. package/build/cjs/blocks/TestEditorBlock/index.d.ts +0 -11
  473. package/build/cjs/blocks/TestEditorBlock/index.js +0 -18
  474. package/build/cjs/blocks/TestEditorBlock/index.js.map +0 -1
  475. package/build/cjs/common/postMessage.d.ts +0 -4
  476. package/build/cjs/common/postMessage.js +0 -31
  477. package/build/cjs/common/postMessage.js.map +0 -1
  478. package/build/cjs/common/store.d.ts +0 -40
  479. package/build/cjs/common/store.js +0 -20
  480. package/build/cjs/common/store.js.map +0 -1
  481. package/build/cjs/common/types/actions.d.ts +0 -36
  482. package/build/cjs/common/types/actions.js +0 -3
  483. package/build/cjs/common/types/actions.js.map +0 -1
  484. package/build/cjs/common/types/common.d.ts +0 -5
  485. package/build/cjs/common/types/common.js +0 -3
  486. package/build/cjs/common/types/common.js.map +0 -1
  487. package/build/cjs/common/types/forms.d.ts +0 -97
  488. package/build/cjs/common/types/forms.js +0 -3
  489. package/build/cjs/common/types/forms.js.map +0 -1
  490. package/build/cjs/common/types/index.d.ts +0 -4
  491. package/build/cjs/common/types/index.js +0 -8
  492. package/build/cjs/common/types/index.js.map +0 -1
  493. package/build/cjs/common/types/messages.d.ts +0 -9
  494. package/build/cjs/common/types/messages.js +0 -3
  495. package/build/cjs/common/types/messages.js.map +0 -1
  496. package/build/cjs/common/utils.d.ts +0 -25
  497. package/build/cjs/common/utils.js +0 -22
  498. package/build/cjs/common/utils.js.map +0 -1
  499. package/build/cjs/components/Image/dynamic-form.d.ts +0 -2
  500. package/build/cjs/components/Image/dynamic-form.js +0 -85
  501. package/build/cjs/components/Image/dynamic-form.js.map +0 -1
  502. package/build/cjs/components/editor/ItemWrap/ItemWrap.css +0 -9
  503. package/build/cjs/components/editor/ItemWrap/ItemWrap.d.ts +0 -6
  504. package/build/cjs/components/editor/ItemWrap/ItemWrap.js +0 -12
  505. package/build/cjs/components/editor/ItemWrap/ItemWrap.js.map +0 -1
  506. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.d.ts +0 -7
  507. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.js +0 -10
  508. package/build/cjs/context/editorStoreContext/PCEditorStoreContext.js.map +0 -1
  509. package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.d.ts +0 -5
  510. package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.js +0 -34
  511. package/build/cjs/context/editorStoreContext/PCEditorStoreProvider.js.map +0 -1
  512. package/build/cjs/context/editorStoreContext/index.d.ts +0 -2
  513. package/build/cjs/context/editorStoreContext/index.js +0 -6
  514. package/build/cjs/context/editorStoreContext/index.js.map +0 -1
  515. package/build/cjs/editor/data/templates/test-editor-block.json +0 -18
  516. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.css +0 -0
  517. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.d.ts +0 -9
  518. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.js +0 -115
  519. package/build/cjs/editor-v2/components/DynamicForm/DynamicForm.js.map +0 -1
  520. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +0 -76
  521. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +0 -12
  522. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +0 -27
  523. package/build/cjs/editor-v2/components/DynamicForm/FieldBase/FieldBase.js.map +0 -1
  524. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.css +0 -37
  525. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +0 -11
  526. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.js +0 -68
  527. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/Array.js.map +0 -1
  528. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +0 -10
  529. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +0 -22
  530. package/build/cjs/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js.map +0 -1
  531. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.css +0 -3
  532. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.d.ts +0 -8
  533. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js +0 -13
  534. package/build/cjs/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js.map +0 -1
  535. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +0 -8
  536. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.js +0 -16
  537. package/build/cjs/editor-v2/components/DynamicForm/Fields/Number/Number.js.map +0 -1
  538. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +0 -10
  539. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.js +0 -12
  540. package/build/cjs/editor-v2/components/DynamicForm/Fields/Object/Object.js.map +0 -1
  541. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +0 -6
  542. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +0 -9
  543. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +0 -35
  544. package/build/cjs/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js.map +0 -1
  545. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.css +0 -3
  546. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.d.ts +0 -11
  547. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.js +0 -14
  548. package/build/cjs/editor-v2/components/DynamicForm/Fields/Select/Select.js.map +0 -1
  549. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +0 -8
  550. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.js +0 -13
  551. package/build/cjs/editor-v2/components/DynamicForm/Fields/Text/Text.js.map +0 -1
  552. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +0 -8
  553. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +0 -13
  554. package/build/cjs/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js.map +0 -1
  555. package/build/cjs/editor-v2/components/DynamicForm/utils.d.ts +0 -3
  556. package/build/cjs/editor-v2/components/DynamicForm/utils.js +0 -23
  557. package/build/cjs/editor-v2/components/DynamicForm/utils.js.map +0 -1
  558. package/build/cjs/editor-v2/components/Panels/Panels.css +0 -24
  559. package/build/cjs/editor-v2/components/Panels/Panels.d.ts +0 -8
  560. package/build/cjs/editor-v2/components/Panels/Panels.js +0 -28
  561. package/build/cjs/editor-v2/components/Panels/Panels.js.map +0 -1
  562. package/build/cjs/editor-v2/components/Sidebar/Sidebar.css +0 -14
  563. package/build/cjs/editor-v2/components/Sidebar/Sidebar.d.ts +0 -10
  564. package/build/cjs/editor-v2/components/Sidebar/Sidebar.js +0 -13
  565. package/build/cjs/editor-v2/components/Sidebar/Sidebar.js.map +0 -1
  566. package/build/cjs/editor-v2/components/Tabs/Tabs.css +0 -31
  567. package/build/cjs/editor-v2/components/Tabs/Tabs.d.ts +0 -13
  568. package/build/cjs/editor-v2/components/Tabs/Tabs.js +0 -32
  569. package/build/cjs/editor-v2/components/Tabs/Tabs.js.map +0 -1
  570. package/build/cjs/editor-v2/constants.d.ts +0 -1
  571. package/build/cjs/editor-v2/constants.js +0 -5
  572. package/build/cjs/editor-v2/constants.js.map +0 -1
  573. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.css +0 -22
  574. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.d.ts +0 -4
  575. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js +0 -58
  576. package/build/cjs/editor-v2/containers/BigOverlay/BigOverlay.js.map +0 -1
  577. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.css +0 -20
  578. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.d.ts +0 -5
  579. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.js +0 -28
  580. package/build/cjs/editor-v2/containers/BlockConfigForm/BlockConfigForm.js.map +0 -1
  581. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.css +0 -52
  582. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.d.ts +0 -2
  583. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.js +0 -43
  584. package/build/cjs/editor-v2/containers/BlocksList/BlocksList.js.map +0 -1
  585. package/build/cjs/editor-v2/containers/Editor/Editor.css +0 -38
  586. package/build/cjs/editor-v2/containers/Editor/Editor.d.ts +0 -21
  587. package/build/cjs/editor-v2/containers/Editor/Editor.js +0 -41
  588. package/build/cjs/editor-v2/containers/Editor/Editor.js.map +0 -1
  589. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.css +0 -9
  590. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.d.ts +0 -5
  591. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.js +0 -17
  592. package/build/cjs/editor-v2/containers/GlobalConfig/GlobalConfig.js.map +0 -1
  593. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.css +0 -49
  594. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.d.ts +0 -7
  595. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.js +0 -34
  596. package/build/cjs/editor-v2/containers/MiddleScreen/MiddleScreen.js.map +0 -1
  597. package/build/cjs/editor-v2/containers/Overlay/Overlay.css +0 -64
  598. package/build/cjs/editor-v2/containers/Overlay/Overlay.d.ts +0 -6
  599. package/build/cjs/editor-v2/containers/Overlay/Overlay.js +0 -90
  600. package/build/cjs/editor-v2/containers/Overlay/Overlay.js.map +0 -1
  601. package/build/cjs/editor-v2/containers/Source/Source.css +0 -14
  602. package/build/cjs/editor-v2/containers/Source/Source.d.ts +0 -2
  603. package/build/cjs/editor-v2/containers/Source/Source.js +0 -28
  604. package/build/cjs/editor-v2/containers/Source/Source.js.map +0 -1
  605. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.css +0 -37
  606. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.d.ts +0 -6
  607. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.js +0 -41
  608. package/build/cjs/editor-v2/containers/SourceCode/SourceCode.js.map +0 -1
  609. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.css +0 -3
  610. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.d.ts +0 -7
  611. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js +0 -18
  612. package/build/cjs/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js.map +0 -1
  613. package/build/cjs/editor-v2/containers/Tree/DragContext.css +0 -25
  614. package/build/cjs/editor-v2/containers/Tree/DragContext.d.ts +0 -14
  615. package/build/cjs/editor-v2/containers/Tree/DragContext.js +0 -49
  616. package/build/cjs/editor-v2/containers/Tree/DragContext.js.map +0 -1
  617. package/build/cjs/editor-v2/containers/Tree/Tree.css +0 -10
  618. package/build/cjs/editor-v2/containers/Tree/Tree.d.ts +0 -2
  619. package/build/cjs/editor-v2/containers/Tree/Tree.js +0 -36
  620. package/build/cjs/editor-v2/containers/Tree/Tree.js.map +0 -1
  621. package/build/cjs/editor-v2/containers/Tree/TreeContent.css +0 -12
  622. package/build/cjs/editor-v2/containers/Tree/TreeContent.d.ts +0 -16
  623. package/build/cjs/editor-v2/containers/Tree/TreeContent.js +0 -61
  624. package/build/cjs/editor-v2/containers/Tree/TreeContent.js.map +0 -1
  625. package/build/cjs/editor-v2/containers/Tree/TreeItem.css +0 -50
  626. package/build/cjs/editor-v2/containers/Tree/TreeItem.d.ts +0 -13
  627. package/build/cjs/editor-v2/containers/Tree/TreeItem.js +0 -144
  628. package/build/cjs/editor-v2/containers/Tree/TreeItem.js.map +0 -1
  629. package/build/cjs/editor-v2/containers/Tree/index.d.ts +0 -4
  630. package/build/cjs/editor-v2/containers/Tree/index.js +0 -10
  631. package/build/cjs/editor-v2/containers/Tree/index.js.map +0 -1
  632. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.css +0 -13
  633. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.d.ts +0 -3
  634. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.js +0 -54
  635. package/build/cjs/editor-v2/containers/ViewSwitches/ViewSwitches.js.map +0 -1
  636. package/build/cjs/editor-v2/containers/index.d.ts +0 -7
  637. package/build/cjs/editor-v2/containers/index.js +0 -19
  638. package/build/cjs/editor-v2/containers/index.js.map +0 -1
  639. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.d.ts +0 -7
  640. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.js +0 -10
  641. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreContext.js.map +0 -1
  642. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.d.ts +0 -5
  643. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.js +0 -35
  644. package/build/cjs/editor-v2/context/editorStore/MainEditorStoreProvider.js.map +0 -1
  645. package/build/cjs/editor-v2/context/editorStore/index.d.ts +0 -2
  646. package/build/cjs/editor-v2/context/editorStore/index.js +0 -6
  647. package/build/cjs/editor-v2/context/editorStore/index.js.map +0 -1
  648. package/build/cjs/editor-v2/context/iframeContext/IframeContext.d.ts +0 -12
  649. package/build/cjs/editor-v2/context/iframeContext/IframeContext.js +0 -14
  650. package/build/cjs/editor-v2/context/iframeContext/IframeContext.js.map +0 -1
  651. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.d.ts +0 -7
  652. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.js +0 -21
  653. package/build/cjs/editor-v2/context/iframeContext/IframeProvider.js.map +0 -1
  654. package/build/cjs/editor-v2/context/iframeContext/index.d.ts +0 -2
  655. package/build/cjs/editor-v2/context/iframeContext/index.js +0 -6
  656. package/build/cjs/editor-v2/context/iframeContext/index.js.map +0 -1
  657. package/build/cjs/editor-v2/hooks/index.d.ts +0 -2
  658. package/build/cjs/editor-v2/hooks/index.js +0 -8
  659. package/build/cjs/editor-v2/hooks/index.js.map +0 -1
  660. package/build/cjs/editor-v2/hooks/useEditorTabs.d.ts +0 -16
  661. package/build/cjs/editor-v2/hooks/useEditorTabs.js +0 -77
  662. package/build/cjs/editor-v2/hooks/useEditorTabs.js.map +0 -1
  663. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.d.ts +0 -2
  664. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js +0 -31
  665. package/build/cjs/editor-v2/hooks/useMainEditorInitialize.js.map +0 -1
  666. package/build/cjs/editor-v2/hooks/useMainEditorStore.d.ts +0 -1
  667. package/build/cjs/editor-v2/hooks/useMainEditorStore.js +0 -13
  668. package/build/cjs/editor-v2/hooks/useMainEditorStore.js.map +0 -1
  669. package/build/cjs/editor-v2/hooks/usePostMessageEvents.d.ts +0 -6
  670. package/build/cjs/editor-v2/hooks/usePostMessageEvents.js +0 -19
  671. package/build/cjs/editor-v2/hooks/usePostMessageEvents.js.map +0 -1
  672. package/build/cjs/editor-v2/index.d.ts +0 -5
  673. package/build/cjs/editor-v2/index.js +0 -9
  674. package/build/cjs/editor-v2/index.js.map +0 -1
  675. package/build/cjs/editor-v2/store.d.ts +0 -48
  676. package/build/cjs/editor-v2/store.js +0 -181
  677. package/build/cjs/editor-v2/store.js.map +0 -1
  678. package/build/cjs/editor-v2/styles/mixins.css +0 -0
  679. package/build/cjs/editor-v2/styles/root.css +0 -9
  680. package/build/cjs/editor-v2/styles/variables.css +0 -0
  681. package/build/cjs/editor-v2/utils/cn.d.ts +0 -2
  682. package/build/cjs/editor-v2/utils/cn.js +0 -7
  683. package/build/cjs/editor-v2/utils/cn.js.map +0 -1
  684. package/build/cjs/editor-v2/utils/code.d.ts +0 -6
  685. package/build/cjs/editor-v2/utils/code.js +0 -13
  686. package/build/cjs/editor-v2/utils/code.js.map +0 -1
  687. package/build/cjs/editor-v2/utils/index.d.ts +0 -20
  688. package/build/cjs/editor-v2/utils/index.js +0 -161
  689. package/build/cjs/editor-v2/utils/index.js.map +0 -1
  690. package/build/cjs/hooks/usePCEditorBlockMouseEvents.d.ts +0 -8
  691. package/build/cjs/hooks/usePCEditorBlockMouseEvents.js +0 -50
  692. package/build/cjs/hooks/usePCEditorBlockMouseEvents.js.map +0 -1
  693. package/build/cjs/hooks/usePCEditorBlockSelection.d.ts +0 -2
  694. package/build/cjs/hooks/usePCEditorBlockSelection.js +0 -30
  695. package/build/cjs/hooks/usePCEditorBlockSelection.js.map +0 -1
  696. package/build/cjs/hooks/usePCEditorInitializeEvents.d.ts +0 -7
  697. package/build/cjs/hooks/usePCEditorInitializeEvents.js +0 -63
  698. package/build/cjs/hooks/usePCEditorInitializeEvents.js.map +0 -1
  699. package/build/cjs/hooks/usePCEditorItemWrap.d.ts +0 -10
  700. package/build/cjs/hooks/usePCEditorItemWrap.js +0 -21
  701. package/build/cjs/hooks/usePCEditorItemWrap.js.map +0 -1
  702. package/build/cjs/hooks/usePCEditorStore.d.ts +0 -1
  703. package/build/cjs/hooks/usePCEditorStore.js +0 -13
  704. package/build/cjs/hooks/usePCEditorStore.js.map +0 -1
  705. package/build/cjs/hooks/usePostMessageAPI.d.ts +0 -4
  706. package/build/cjs/hooks/usePostMessageAPI.js +0 -30
  707. package/build/cjs/hooks/usePostMessageAPI.js.map +0 -1
  708. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.d.ts +0 -2
  709. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.js +0 -82
  710. package/build/cjs/sub-blocks/BackgroundCard/dynamic-form.js.map +0 -1
  711. package/build/cjs/sub-blocks/BackgroundCard/index.d.ts +0 -3
  712. package/build/cjs/sub-blocks/BackgroundCard/index.js +0 -22
  713. package/build/cjs/sub-blocks/BackgroundCard/index.js.map +0 -1
  714. package/build/cjs/sub-blocks/BannerCard/index.d.ts +0 -3
  715. package/build/cjs/sub-blocks/BannerCard/index.js +0 -24
  716. package/build/cjs/sub-blocks/BannerCard/index.js.map +0 -1
  717. package/build/cjs/sub-blocks/BasicCard/index.d.ts +0 -3
  718. package/build/cjs/sub-blocks/BasicCard/index.js +0 -20
  719. package/build/cjs/sub-blocks/BasicCard/index.js.map +0 -1
  720. package/build/cjs/sub-blocks/Content/index.d.ts +0 -3
  721. package/build/cjs/sub-blocks/Content/index.js +0 -20
  722. package/build/cjs/sub-blocks/Content/index.js.map +0 -1
  723. package/build/cjs/sub-blocks/Divider/index.d.ts +0 -3
  724. package/build/cjs/sub-blocks/Divider/index.js +0 -16
  725. package/build/cjs/sub-blocks/Divider/index.js.map +0 -1
  726. package/build/cjs/sub-blocks/ImageCard/index.d.ts +0 -3
  727. package/build/cjs/sub-blocks/ImageCard/index.js +0 -20
  728. package/build/cjs/sub-blocks/ImageCard/index.js.map +0 -1
  729. package/build/cjs/sub-blocks/LayoutItem/index.d.ts +0 -3
  730. package/build/cjs/sub-blocks/LayoutItem/index.js +0 -26
  731. package/build/cjs/sub-blocks/LayoutItem/index.js.map +0 -1
  732. package/build/cjs/sub-blocks/MediaCard/index.d.ts +0 -3
  733. package/build/cjs/sub-blocks/MediaCard/index.js +0 -23
  734. package/build/cjs/sub-blocks/MediaCard/index.js.map +0 -1
  735. package/build/cjs/sub-blocks/PriceCard/index.d.ts +0 -3
  736. package/build/cjs/sub-blocks/PriceCard/index.js +0 -33
  737. package/build/cjs/sub-blocks/PriceCard/index.js.map +0 -1
  738. package/build/cjs/sub-blocks/PriceDetailed/index.d.ts +0 -4
  739. package/build/cjs/sub-blocks/PriceDetailed/index.js +0 -35
  740. package/build/cjs/sub-blocks/PriceDetailed/index.js.map +0 -1
  741. package/build/cjs/sub-blocks/Quote/index.d.ts +0 -3
  742. package/build/cjs/sub-blocks/Quote/index.js +0 -23
  743. package/build/cjs/sub-blocks/Quote/index.js.map +0 -1
  744. package/build/cjs/utils/editor.d.ts +0 -2
  745. package/build/cjs/utils/editor.js +0 -25
  746. package/build/cjs/utils/editor.js.map +0 -1
  747. package/build/cjs/utils/form-generator.d.ts +0 -9
  748. package/build/cjs/utils/form-generator.js +0 -131
  749. package/build/cjs/utils/form-generator.js.map +0 -1
  750. package/build/cjs/utils/navigation.d.ts +0 -3
  751. package/build/cjs/utils/navigation.js +0 -14
  752. package/build/cjs/utils/navigation.js.map +0 -1
  753. package/build/esm/blocks/Banner/index.d.ts +0 -3
  754. package/build/esm/blocks/Banner/index.js +0 -21
  755. package/build/esm/blocks/Banner/index.js.map +0 -1
  756. package/build/esm/blocks/CardLayout/index.d.ts +0 -5
  757. package/build/esm/blocks/CardLayout/index.js +0 -182
  758. package/build/esm/blocks/CardLayout/index.js.map +0 -1
  759. package/build/esm/blocks/Companies/index.d.ts +0 -3
  760. package/build/esm/blocks/Companies/index.js +0 -17
  761. package/build/esm/blocks/Companies/index.js.map +0 -1
  762. package/build/esm/blocks/ContentLayout/index.d.ts +0 -41
  763. package/build/esm/blocks/ContentLayout/index.js +0 -78
  764. package/build/esm/blocks/ContentLayout/index.js.map +0 -1
  765. package/build/esm/blocks/ExtendedFeatures/index.d.ts +0 -58
  766. package/build/esm/blocks/ExtendedFeatures/index.js +0 -74
  767. package/build/esm/blocks/ExtendedFeatures/index.js.map +0 -1
  768. package/build/esm/blocks/FilterBlock/index.d.ts +0 -29
  769. package/build/esm/blocks/FilterBlock/index.js +0 -95
  770. package/build/esm/blocks/FilterBlock/index.js.map +0 -1
  771. package/build/esm/blocks/Form/index.d.ts +0 -13
  772. package/build/esm/blocks/Form/index.js +0 -17
  773. package/build/esm/blocks/Form/index.js.map +0 -1
  774. package/build/esm/blocks/Header/dynamic-form.d.ts +0 -2
  775. package/build/esm/blocks/Header/dynamic-form.js +0 -728
  776. package/build/esm/blocks/Header/dynamic-form.js.map +0 -1
  777. package/build/esm/blocks/Header/index.d.ts +0 -20
  778. package/build/esm/blocks/Header/index.js +0 -31
  779. package/build/esm/blocks/Header/index.js.map +0 -1
  780. package/build/esm/blocks/HeaderSlider/index.d.ts +0 -32
  781. package/build/esm/blocks/HeaderSlider/index.js +0 -37
  782. package/build/esm/blocks/HeaderSlider/index.js.map +0 -1
  783. package/build/esm/blocks/Icons/index.d.ts +0 -20
  784. package/build/esm/blocks/Icons/index.js +0 -61
  785. package/build/esm/blocks/Icons/index.js.map +0 -1
  786. package/build/esm/blocks/Info/index.d.ts +0 -22
  787. package/build/esm/blocks/Info/index.js +0 -40
  788. package/build/esm/blocks/Info/index.js.map +0 -1
  789. package/build/esm/blocks/Map/index.d.ts +0 -12
  790. package/build/esm/blocks/Map/index.js +0 -16
  791. package/build/esm/blocks/Map/index.js.map +0 -1
  792. package/build/esm/blocks/Media/index.d.ts +0 -39
  793. package/build/esm/blocks/Media/index.js +0 -54
  794. package/build/esm/blocks/Media/index.js.map +0 -1
  795. package/build/esm/blocks/PromoFeaturesBlock/index.d.ts +0 -22
  796. package/build/esm/blocks/PromoFeaturesBlock/index.js +0 -46
  797. package/build/esm/blocks/PromoFeaturesBlock/index.js.map +0 -1
  798. package/build/esm/blocks/Questions/index.d.ts +0 -30
  799. package/build/esm/blocks/Questions/index.js +0 -46
  800. package/build/esm/blocks/Questions/index.js.map +0 -1
  801. package/build/esm/blocks/Share/index.d.ts +0 -13
  802. package/build/esm/blocks/Share/index.js +0 -17
  803. package/build/esm/blocks/Share/index.js.map +0 -1
  804. package/build/esm/blocks/Slider/dynamic-form.d.ts +0 -3
  805. package/build/esm/blocks/Slider/dynamic-form.js +0 -223
  806. package/build/esm/blocks/Slider/dynamic-form.js.map +0 -1
  807. package/build/esm/blocks/Slider/index.d.ts +0 -28
  808. package/build/esm/blocks/Slider/index.js +0 -44
  809. package/build/esm/blocks/Slider/index.js.map +0 -1
  810. package/build/esm/blocks/Table/index.d.ts +0 -18
  811. package/build/esm/blocks/Table/index.js +0 -29
  812. package/build/esm/blocks/Table/index.js.map +0 -1
  813. package/build/esm/blocks/Tabs/index.d.ts +0 -17
  814. package/build/esm/blocks/Tabs/index.js +0 -28
  815. package/build/esm/blocks/Tabs/index.js.map +0 -1
  816. package/build/esm/blocks/TestEditorBlock/TestEditorBlock.d.ts +0 -5
  817. package/build/esm/blocks/TestEditorBlock/TestEditorBlock.js +0 -8
  818. package/build/esm/blocks/TestEditorBlock/TestEditorBlock.js.map +0 -1
  819. package/build/esm/blocks/TestEditorBlock/form.d.ts +0 -3
  820. package/build/esm/blocks/TestEditorBlock/form.js +0 -89
  821. package/build/esm/blocks/TestEditorBlock/form.js.map +0 -1
  822. package/build/esm/blocks/TestEditorBlock/index.d.ts +0 -11
  823. package/build/esm/blocks/TestEditorBlock/index.js +0 -14
  824. package/build/esm/blocks/TestEditorBlock/index.js.map +0 -1
  825. package/build/esm/common/postMessage.d.ts +0 -4
  826. package/build/esm/common/postMessage.js +0 -25
  827. package/build/esm/common/postMessage.js.map +0 -1
  828. package/build/esm/common/store.d.ts +0 -40
  829. package/build/esm/common/store.js +0 -17
  830. package/build/esm/common/store.js.map +0 -1
  831. package/build/esm/common/types/actions.d.ts +0 -36
  832. package/build/esm/common/types/actions.js +0 -2
  833. package/build/esm/common/types/actions.js.map +0 -1
  834. package/build/esm/common/types/common.d.ts +0 -5
  835. package/build/esm/common/types/common.js +0 -2
  836. package/build/esm/common/types/common.js.map +0 -1
  837. package/build/esm/common/types/forms.d.ts +0 -97
  838. package/build/esm/common/types/forms.js +0 -2
  839. package/build/esm/common/types/forms.js.map +0 -1
  840. package/build/esm/common/types/index.d.ts +0 -4
  841. package/build/esm/common/types/index.js +0 -5
  842. package/build/esm/common/types/index.js.map +0 -1
  843. package/build/esm/common/types/messages.d.ts +0 -9
  844. package/build/esm/common/types/messages.js +0 -2
  845. package/build/esm/common/types/messages.js.map +0 -1
  846. package/build/esm/common/utils.d.ts +0 -25
  847. package/build/esm/common/utils.js +0 -17
  848. package/build/esm/common/utils.js.map +0 -1
  849. package/build/esm/components/Image/dynamic-form.d.ts +0 -2
  850. package/build/esm/components/Image/dynamic-form.js +0 -81
  851. package/build/esm/components/Image/dynamic-form.js.map +0 -1
  852. package/build/esm/components/editor/ItemWrap/ItemWrap.css +0 -9
  853. package/build/esm/components/editor/ItemWrap/ItemWrap.d.ts +0 -7
  854. package/build/esm/components/editor/ItemWrap/ItemWrap.js +0 -11
  855. package/build/esm/components/editor/ItemWrap/ItemWrap.js.map +0 -1
  856. package/build/esm/context/editorStoreContext/PCEditorStoreContext.d.ts +0 -7
  857. package/build/esm/context/editorStoreContext/PCEditorStoreContext.js +0 -6
  858. package/build/esm/context/editorStoreContext/PCEditorStoreContext.js.map +0 -1
  859. package/build/esm/context/editorStoreContext/PCEditorStoreProvider.d.ts +0 -5
  860. package/build/esm/context/editorStoreContext/PCEditorStoreProvider.js +0 -29
  861. package/build/esm/context/editorStoreContext/PCEditorStoreProvider.js.map +0 -1
  862. package/build/esm/context/editorStoreContext/index.d.ts +0 -2
  863. package/build/esm/context/editorStoreContext/index.js +0 -3
  864. package/build/esm/context/editorStoreContext/index.js.map +0 -1
  865. package/build/esm/editor/data/templates/test-editor-block.json +0 -18
  866. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.css +0 -0
  867. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.d.ts +0 -10
  868. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.js +0 -113
  869. package/build/esm/editor-v2/components/DynamicForm/DynamicForm.js.map +0 -1
  870. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.css +0 -76
  871. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.d.ts +0 -13
  872. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.js +0 -25
  873. package/build/esm/editor-v2/components/DynamicForm/FieldBase/FieldBase.js.map +0 -1
  874. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.css +0 -37
  875. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.d.ts +0 -12
  876. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.js +0 -66
  877. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/Array.js.map +0 -1
  878. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.d.ts +0 -10
  879. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js +0 -19
  880. package/build/esm/editor-v2/components/DynamicForm/Fields/Array/ItemButton/ItemButton.js.map +0 -1
  881. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.css +0 -3
  882. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.d.ts +0 -9
  883. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js +0 -11
  884. package/build/esm/editor-v2/components/DynamicForm/Fields/Boolean/Boolean.js.map +0 -1
  885. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.d.ts +0 -8
  886. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.js +0 -13
  887. package/build/esm/editor-v2/components/DynamicForm/Fields/Number/Number.js.map +0 -1
  888. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.d.ts +0 -10
  889. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.js +0 -9
  890. package/build/esm/editor-v2/components/DynamicForm/Fields/Object/Object.js.map +0 -1
  891. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.css +0 -6
  892. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.d.ts +0 -10
  893. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js +0 -33
  894. package/build/esm/editor-v2/components/DynamicForm/Fields/OneOf/OneOf.js.map +0 -1
  895. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.css +0 -3
  896. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.d.ts +0 -12
  897. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.js +0 -12
  898. package/build/esm/editor-v2/components/DynamicForm/Fields/Select/Select.js.map +0 -1
  899. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.d.ts +0 -8
  900. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.js +0 -10
  901. package/build/esm/editor-v2/components/DynamicForm/Fields/Text/Text.js.map +0 -1
  902. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.d.ts +0 -8
  903. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js +0 -10
  904. package/build/esm/editor-v2/components/DynamicForm/Fields/TextArea/TextArea.js.map +0 -1
  905. package/build/esm/editor-v2/components/DynamicForm/utils.d.ts +0 -3
  906. package/build/esm/editor-v2/components/DynamicForm/utils.js +0 -17
  907. package/build/esm/editor-v2/components/DynamicForm/utils.js.map +0 -1
  908. package/build/esm/editor-v2/components/Panels/Panels.css +0 -24
  909. package/build/esm/editor-v2/components/Panels/Panels.d.ts +0 -9
  910. package/build/esm/editor-v2/components/Panels/Panels.js +0 -24
  911. package/build/esm/editor-v2/components/Panels/Panels.js.map +0 -1
  912. package/build/esm/editor-v2/components/Sidebar/Sidebar.css +0 -14
  913. package/build/esm/editor-v2/components/Sidebar/Sidebar.d.ts +0 -11
  914. package/build/esm/editor-v2/components/Sidebar/Sidebar.js +0 -9
  915. package/build/esm/editor-v2/components/Sidebar/Sidebar.js.map +0 -1
  916. package/build/esm/editor-v2/components/Tabs/Tabs.css +0 -31
  917. package/build/esm/editor-v2/components/Tabs/Tabs.d.ts +0 -14
  918. package/build/esm/editor-v2/components/Tabs/Tabs.js +0 -30
  919. package/build/esm/editor-v2/components/Tabs/Tabs.js.map +0 -1
  920. package/build/esm/editor-v2/constants.d.ts +0 -1
  921. package/build/esm/editor-v2/constants.js +0 -2
  922. package/build/esm/editor-v2/constants.js.map +0 -1
  923. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.css +0 -22
  924. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.d.ts +0 -5
  925. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js +0 -56
  926. package/build/esm/editor-v2/containers/BigOverlay/BigOverlay.js.map +0 -1
  927. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.css +0 -20
  928. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.d.ts +0 -6
  929. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.js +0 -26
  930. package/build/esm/editor-v2/containers/BlockConfigForm/BlockConfigForm.js.map +0 -1
  931. package/build/esm/editor-v2/containers/BlocksList/BlocksList.css +0 -52
  932. package/build/esm/editor-v2/containers/BlocksList/BlocksList.d.ts +0 -3
  933. package/build/esm/editor-v2/containers/BlocksList/BlocksList.js +0 -41
  934. package/build/esm/editor-v2/containers/BlocksList/BlocksList.js.map +0 -1
  935. package/build/esm/editor-v2/containers/Editor/Editor.css +0 -38
  936. package/build/esm/editor-v2/containers/Editor/Editor.d.ts +0 -22
  937. package/build/esm/editor-v2/containers/Editor/Editor.js +0 -37
  938. package/build/esm/editor-v2/containers/Editor/Editor.js.map +0 -1
  939. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.css +0 -9
  940. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.d.ts +0 -6
  941. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.js +0 -15
  942. package/build/esm/editor-v2/containers/GlobalConfig/GlobalConfig.js.map +0 -1
  943. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.css +0 -49
  944. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.d.ts +0 -8
  945. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.js +0 -32
  946. package/build/esm/editor-v2/containers/MiddleScreen/MiddleScreen.js.map +0 -1
  947. package/build/esm/editor-v2/containers/Overlay/Overlay.css +0 -64
  948. package/build/esm/editor-v2/containers/Overlay/Overlay.d.ts +0 -7
  949. package/build/esm/editor-v2/containers/Overlay/Overlay.js +0 -88
  950. package/build/esm/editor-v2/containers/Overlay/Overlay.js.map +0 -1
  951. package/build/esm/editor-v2/containers/Source/Source.css +0 -14
  952. package/build/esm/editor-v2/containers/Source/Source.d.ts +0 -3
  953. package/build/esm/editor-v2/containers/Source/Source.js +0 -26
  954. package/build/esm/editor-v2/containers/Source/Source.js.map +0 -1
  955. package/build/esm/editor-v2/containers/SourceCode/SourceCode.css +0 -37
  956. package/build/esm/editor-v2/containers/SourceCode/SourceCode.d.ts +0 -7
  957. package/build/esm/editor-v2/containers/SourceCode/SourceCode.js +0 -39
  958. package/build/esm/editor-v2/containers/SourceCode/SourceCode.js.map +0 -1
  959. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.css +0 -3
  960. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.d.ts +0 -8
  961. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js +0 -14
  962. package/build/esm/editor-v2/containers/SourceCode/UpdateModal/UpdateModal.js.map +0 -1
  963. package/build/esm/editor-v2/containers/Tree/DragContext.css +0 -25
  964. package/build/esm/editor-v2/containers/Tree/DragContext.d.ts +0 -15
  965. package/build/esm/editor-v2/containers/Tree/DragContext.js +0 -45
  966. package/build/esm/editor-v2/containers/Tree/DragContext.js.map +0 -1
  967. package/build/esm/editor-v2/containers/Tree/Tree.css +0 -10
  968. package/build/esm/editor-v2/containers/Tree/Tree.d.ts +0 -3
  969. package/build/esm/editor-v2/containers/Tree/Tree.js +0 -34
  970. package/build/esm/editor-v2/containers/Tree/Tree.js.map +0 -1
  971. package/build/esm/editor-v2/containers/Tree/TreeContent.css +0 -12
  972. package/build/esm/editor-v2/containers/Tree/TreeContent.d.ts +0 -17
  973. package/build/esm/editor-v2/containers/Tree/TreeContent.js +0 -57
  974. package/build/esm/editor-v2/containers/Tree/TreeContent.js.map +0 -1
  975. package/build/esm/editor-v2/containers/Tree/TreeItem.css +0 -50
  976. package/build/esm/editor-v2/containers/Tree/TreeItem.d.ts +0 -14
  977. package/build/esm/editor-v2/containers/Tree/TreeItem.js +0 -140
  978. package/build/esm/editor-v2/containers/Tree/TreeItem.js.map +0 -1
  979. package/build/esm/editor-v2/containers/Tree/index.d.ts +0 -4
  980. package/build/esm/editor-v2/containers/Tree/index.js +0 -5
  981. package/build/esm/editor-v2/containers/Tree/index.js.map +0 -1
  982. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.css +0 -13
  983. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.d.ts +0 -4
  984. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.js +0 -52
  985. package/build/esm/editor-v2/containers/ViewSwitches/ViewSwitches.js.map +0 -1
  986. package/build/esm/editor-v2/containers/index.d.ts +0 -7
  987. package/build/esm/editor-v2/containers/index.js +0 -8
  988. package/build/esm/editor-v2/containers/index.js.map +0 -1
  989. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.d.ts +0 -7
  990. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.js +0 -6
  991. package/build/esm/editor-v2/context/editorStore/MainEditorStoreContext.js.map +0 -1
  992. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.d.ts +0 -5
  993. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.js +0 -30
  994. package/build/esm/editor-v2/context/editorStore/MainEditorStoreProvider.js.map +0 -1
  995. package/build/esm/editor-v2/context/editorStore/index.d.ts +0 -2
  996. package/build/esm/editor-v2/context/editorStore/index.js +0 -3
  997. package/build/esm/editor-v2/context/editorStore/index.js.map +0 -1
  998. package/build/esm/editor-v2/context/iframeContext/IframeContext.d.ts +0 -12
  999. package/build/esm/editor-v2/context/iframeContext/IframeContext.js +0 -10
  1000. package/build/esm/editor-v2/context/iframeContext/IframeContext.js.map +0 -1
  1001. package/build/esm/editor-v2/context/iframeContext/IframeProvider.d.ts +0 -7
  1002. package/build/esm/editor-v2/context/iframeContext/IframeProvider.js +0 -16
  1003. package/build/esm/editor-v2/context/iframeContext/IframeProvider.js.map +0 -1
  1004. package/build/esm/editor-v2/context/iframeContext/index.d.ts +0 -2
  1005. package/build/esm/editor-v2/context/iframeContext/index.js +0 -3
  1006. package/build/esm/editor-v2/context/iframeContext/index.js.map +0 -1
  1007. package/build/esm/editor-v2/hooks/index.d.ts +0 -2
  1008. package/build/esm/editor-v2/hooks/index.js +0 -3
  1009. package/build/esm/editor-v2/hooks/index.js.map +0 -1
  1010. package/build/esm/editor-v2/hooks/useEditorTabs.d.ts +0 -16
  1011. package/build/esm/editor-v2/hooks/useEditorTabs.js +0 -72
  1012. package/build/esm/editor-v2/hooks/useEditorTabs.js.map +0 -1
  1013. package/build/esm/editor-v2/hooks/useMainEditorInitialize.d.ts +0 -2
  1014. package/build/esm/editor-v2/hooks/useMainEditorInitialize.js +0 -29
  1015. package/build/esm/editor-v2/hooks/useMainEditorInitialize.js.map +0 -1
  1016. package/build/esm/editor-v2/hooks/useMainEditorStore.d.ts +0 -1
  1017. package/build/esm/editor-v2/hooks/useMainEditorStore.js +0 -8
  1018. package/build/esm/editor-v2/hooks/useMainEditorStore.js.map +0 -1
  1019. package/build/esm/editor-v2/hooks/usePostMessageEvents.d.ts +0 -6
  1020. package/build/esm/editor-v2/hooks/usePostMessageEvents.js +0 -15
  1021. package/build/esm/editor-v2/hooks/usePostMessageEvents.js.map +0 -1
  1022. package/build/esm/editor-v2/index.d.ts +0 -5
  1023. package/build/esm/editor-v2/index.js +0 -6
  1024. package/build/esm/editor-v2/index.js.map +0 -1
  1025. package/build/esm/editor-v2/store.d.ts +0 -48
  1026. package/build/esm/editor-v2/store.js +0 -177
  1027. package/build/esm/editor-v2/store.js.map +0 -1
  1028. package/build/esm/editor-v2/styles/mixins.css +0 -0
  1029. package/build/esm/editor-v2/styles/root.css +0 -9
  1030. package/build/esm/editor-v2/styles/variables.css +0 -0
  1031. package/build/esm/editor-v2/utils/cn.d.ts +0 -2
  1032. package/build/esm/editor-v2/utils/cn.js +0 -4
  1033. package/build/esm/editor-v2/utils/cn.js.map +0 -1
  1034. package/build/esm/editor-v2/utils/code.d.ts +0 -6
  1035. package/build/esm/editor-v2/utils/code.js +0 -9
  1036. package/build/esm/editor-v2/utils/code.js.map +0 -1
  1037. package/build/esm/editor-v2/utils/index.d.ts +0 -20
  1038. package/build/esm/editor-v2/utils/index.js +0 -143
  1039. package/build/esm/editor-v2/utils/index.js.map +0 -1
  1040. package/build/esm/hooks/usePCEditorBlockMouseEvents.d.ts +0 -8
  1041. package/build/esm/hooks/usePCEditorBlockMouseEvents.js +0 -47
  1042. package/build/esm/hooks/usePCEditorBlockMouseEvents.js.map +0 -1
  1043. package/build/esm/hooks/usePCEditorBlockSelection.d.ts +0 -2
  1044. package/build/esm/hooks/usePCEditorBlockSelection.js +0 -27
  1045. package/build/esm/hooks/usePCEditorBlockSelection.js.map +0 -1
  1046. package/build/esm/hooks/usePCEditorInitializeEvents.d.ts +0 -7
  1047. package/build/esm/hooks/usePCEditorInitializeEvents.js +0 -58
  1048. package/build/esm/hooks/usePCEditorInitializeEvents.js.map +0 -1
  1049. package/build/esm/hooks/usePCEditorItemWrap.d.ts +0 -10
  1050. package/build/esm/hooks/usePCEditorItemWrap.js +0 -17
  1051. package/build/esm/hooks/usePCEditorItemWrap.js.map +0 -1
  1052. package/build/esm/hooks/usePCEditorStore.d.ts +0 -1
  1053. package/build/esm/hooks/usePCEditorStore.js +0 -8
  1054. package/build/esm/hooks/usePCEditorStore.js.map +0 -1
  1055. package/build/esm/hooks/usePostMessageAPI.d.ts +0 -4
  1056. package/build/esm/hooks/usePostMessageAPI.js +0 -24
  1057. package/build/esm/hooks/usePostMessageAPI.js.map +0 -1
  1058. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.d.ts +0 -2
  1059. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.js +0 -79
  1060. package/build/esm/sub-blocks/BackgroundCard/dynamic-form.js.map +0 -1
  1061. package/build/esm/sub-blocks/BackgroundCard/index.d.ts +0 -3
  1062. package/build/esm/sub-blocks/BackgroundCard/index.js +0 -19
  1063. package/build/esm/sub-blocks/BackgroundCard/index.js.map +0 -1
  1064. package/build/esm/sub-blocks/BannerCard/index.d.ts +0 -3
  1065. package/build/esm/sub-blocks/BannerCard/index.js +0 -21
  1066. package/build/esm/sub-blocks/BannerCard/index.js.map +0 -1
  1067. package/build/esm/sub-blocks/BasicCard/index.d.ts +0 -3
  1068. package/build/esm/sub-blocks/BasicCard/index.js +0 -17
  1069. package/build/esm/sub-blocks/BasicCard/index.js.map +0 -1
  1070. package/build/esm/sub-blocks/Content/index.d.ts +0 -3
  1071. package/build/esm/sub-blocks/Content/index.js +0 -17
  1072. package/build/esm/sub-blocks/Content/index.js.map +0 -1
  1073. package/build/esm/sub-blocks/Divider/index.d.ts +0 -3
  1074. package/build/esm/sub-blocks/Divider/index.js +0 -13
  1075. package/build/esm/sub-blocks/Divider/index.js.map +0 -1
  1076. package/build/esm/sub-blocks/ImageCard/index.d.ts +0 -3
  1077. package/build/esm/sub-blocks/ImageCard/index.js +0 -17
  1078. package/build/esm/sub-blocks/ImageCard/index.js.map +0 -1
  1079. package/build/esm/sub-blocks/LayoutItem/index.d.ts +0 -3
  1080. package/build/esm/sub-blocks/LayoutItem/index.js +0 -23
  1081. package/build/esm/sub-blocks/LayoutItem/index.js.map +0 -1
  1082. package/build/esm/sub-blocks/MediaCard/index.d.ts +0 -3
  1083. package/build/esm/sub-blocks/MediaCard/index.js +0 -20
  1084. package/build/esm/sub-blocks/MediaCard/index.js.map +0 -1
  1085. package/build/esm/sub-blocks/PriceCard/index.d.ts +0 -3
  1086. package/build/esm/sub-blocks/PriceCard/index.js +0 -30
  1087. package/build/esm/sub-blocks/PriceCard/index.js.map +0 -1
  1088. package/build/esm/sub-blocks/PriceDetailed/index.d.ts +0 -4
  1089. package/build/esm/sub-blocks/PriceDetailed/index.js +0 -32
  1090. package/build/esm/sub-blocks/PriceDetailed/index.js.map +0 -1
  1091. package/build/esm/sub-blocks/Quote/index.d.ts +0 -3
  1092. package/build/esm/sub-blocks/Quote/index.js +0 -20
  1093. package/build/esm/sub-blocks/Quote/index.js.map +0 -1
  1094. package/build/esm/utils/editor.d.ts +0 -2
  1095. package/build/esm/utils/editor.js +0 -21
  1096. package/build/esm/utils/editor.js.map +0 -1
  1097. package/build/esm/utils/form-generator.d.ts +0 -9
  1098. package/build/esm/utils/form-generator.js +0 -126
  1099. package/build/esm/utils/form-generator.js.map +0 -1
  1100. package/build/esm/utils/navigation.d.ts +0 -3
  1101. package/build/esm/utils/navigation.js +0 -9
  1102. package/build/esm/utils/navigation.js.map +0 -1
  1103. package/server/utils/navigation.d.ts +0 -3
  1104. package/server/utils/navigation.js +0 -15
  1105. package/widget/1113.index.js +0 -1
  1106. package/widget/123.index.js +0 -1
  1107. package/widget/1573.index.js +0 -1
  1108. package/widget/2030.index.js +0 -1
  1109. package/widget/229.index.js +0 -1
  1110. package/widget/261.index.js +0 -1
  1111. package/widget/302.index.js +0 -1
  1112. package/widget/3035.index.js +0 -1
  1113. package/widget/313.index.js +0 -1
  1114. package/widget/3521.index.js +0 -1
  1115. package/widget/3864.index.js +0 -1
  1116. package/widget/3939.index.js +0 -1
  1117. package/widget/4017.index.js +0 -1
  1118. package/widget/4149.index.js +0 -1
  1119. package/widget/4502.index.js +0 -1
  1120. package/widget/466.index.js +0 -1
  1121. package/widget/504.index.js +0 -1
  1122. package/widget/5321.index.js +0 -1
  1123. package/widget/5742.index.js +0 -1
  1124. package/widget/5817.index.js +0 -1
  1125. package/widget/600.index.js +0 -1
  1126. package/widget/6023.index.js +0 -1
  1127. package/widget/6159.index.js +0 -1
  1128. package/widget/617.index.js +0 -1
  1129. package/widget/6183.index.js +0 -1
  1130. package/widget/6509.index.js +0 -1
  1131. package/widget/6636.index.js +0 -1
  1132. package/widget/6831.index.js +0 -1
  1133. package/widget/6953.index.js +0 -1
  1134. package/widget/7296.index.js +0 -1
  1135. package/widget/7486.index.js +0 -1
  1136. package/widget/7496.index.js +0 -1
  1137. package/widget/7553.index.js +0 -1
  1138. package/widget/758.index.js +0 -1
  1139. package/widget/772.index.js +0 -1
  1140. package/widget/7797.index.js +0 -1
  1141. package/widget/8066.index.js +0 -1
  1142. package/widget/8507.index.js +0 -1
  1143. package/widget/8529.index.js +0 -1
  1144. package/widget/8727.index.js +0 -1
  1145. package/widget/8864.index.js +0 -1
  1146. package/widget/8889.index.js +0 -1
  1147. package/widget/953.index.js +0 -1
  1148. package/widget/9670.index.js +0 -1
  1149. package/widget/9682.index.js +0 -1
  1150. package/widget/9928.index.js +0 -1
@@ -0,0 +1,35 @@
1
+ import omit from "lodash/omit.js";
2
+ import { BlockBaseProps, LinkProps } from "../../schema/validators/common.js";
3
+ import { filteredArray } from "../../schema/validators/utils.js";
4
+ import { ContentBase } from "../../sub-blocks/Content/schema.js";
5
+ const FoldableListBlockContentProps = omit(ContentBase, ['size', 'theme']);
6
+ export const FoldableListBlock = {
7
+ 'foldable-list-block': {
8
+ additionalProperties: false,
9
+ required: ['title', 'items'],
10
+ properties: {
11
+ ...BlockBaseProps,
12
+ ...FoldableListBlockContentProps,
13
+ items: filteredArray({
14
+ type: 'object',
15
+ required: ['title', 'text'],
16
+ properties: {
17
+ title: {
18
+ type: 'string',
19
+ contentType: 'text',
20
+ },
21
+ text: {
22
+ type: 'string',
23
+ contentType: 'yfm',
24
+ },
25
+ link: LinkProps,
26
+ listStyle: {
27
+ type: 'string',
28
+ enum: ['dash', 'disk'],
29
+ },
30
+ },
31
+ }),
32
+ },
33
+ },
34
+ };
35
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/FoldableList/schema.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,uBAAoB;AAE/B,OAAO,EAAC,cAAc,EAAE,SAAS,EAAC,0CAAuC;AACzE,OAAO,EAAC,aAAa,EAAC,yCAAsC;AAC5D,OAAO,EAAC,WAAW,EAAC,2CAAwC;AAE5D,MAAM,6BAA6B,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAE3E,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,qBAAqB,EAAE;QACnB,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QAC5B,UAAU,EAAE;YACR,GAAG,cAAc;YACjB,GAAG,6BAA6B;YAChC,KAAK,EAAE,aAAa,CAAC;gBACjB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;gBAC3B,UAAU,EAAE;oBACR,KAAK,EAAE;wBACH,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,MAAM;qBACtB;oBACD,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,KAAK;qBACrB;oBACD,IAAI,EAAE,SAAS;oBACf,SAAS,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;qBACzB;iBACJ;aACJ,CAAC;SACL;KACJ;CACJ,CAAC","sourcesContent":["import omit from 'lodash/omit';\n\nimport {BlockBaseProps, LinkProps} from '../../schema/validators/common';\nimport {filteredArray} from '../../schema/validators/utils';\nimport {ContentBase} from '../../sub-blocks/Content/schema';\n\nconst FoldableListBlockContentProps = omit(ContentBase, ['size', 'theme']);\n\nexport const FoldableListBlock = {\n 'foldable-list-block': {\n additionalProperties: false,\n required: ['title', 'items'],\n properties: {\n ...BlockBaseProps,\n ...FoldableListBlockContentProps,\n items: filteredArray({\n type: 'object',\n required: ['title', 'text'],\n properties: {\n title: {\n type: 'string',\n contentType: 'text',\n },\n text: {\n type: 'string',\n contentType: 'yfm',\n },\n link: LinkProps,\n listStyle: {\n type: 'string',\n enum: ['dash', 'disk'],\n },\n },\n }),\n },\n },\n};\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 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G,EAAC,CAAC,CAAC;IAC5C,CAAC,EACD,CAAC,eAAe,CAAC,CACpB,CAAC;IAEF,OAAO,CACH,KAAC,IAAI,cACD,eAAK,SAAS,EAAE,CAAC,CAAC,EAAC,IAAI,EAAC,CAAC,aACpB,CAAC,KAAK,IAAI,WAAW,CAAC,IAAI,CACvB,KAAC,KAAK,IACF,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,QAAQ,GACpB,CACL,EACA,KAAK;oBACF,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACf,MAAM,SAAS,GAAG,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;wBAClD,MAAM,WAAW,GAAG,cAAc,CAAC,EAAC,GAAG,IAAI,EAAE,GAAG,EAAE,SAAS,EAAC,CAAC,CAAC;wBAC9D,MAAM,EAAC,GAAG,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC;wBACzB,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;oBACN,CAAC,CAAC,IACJ,GACH,CACV,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 {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,qCAA4B;AAC7C,OAAO,EAAC,YAAY,EAAC,6BAAoB;AAEzC,OAAO,EAAC,KAAK,EAAE,YAAY,EAAE,cAAc,EAAC,6BAAoB;AAEhE,OAA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Ac,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,sDAAmD;AACtE,OAAO,eAAe,4DAAyD;AAC/E,OAAO,mBAAmB,oEAAiE;AAC3F,OAAO,KAAK,wCAAqC;AACjD,OAAO,KAAK,wCAAqC;AACj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';\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,EAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,aACpE,KAAC,mBAAmB,IAAC,SAAS,EAAE,CAAC,CAAC,YAAY,EAAE,EAAC,CAAC,eAAe,CAAC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C,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;QACjC,IAAI,QAAQ,CAAC;QAEb,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,QAAQ,GAAG,MAAM,CAAC,M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,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,CAAC;IACxB,CAAC,CAAC;IAEF,OAAO,CACH,cACI,SAAS,EAAE,CAAC,EAAE,EACd,SAAS,QACT,QAAQ,EAAE,kBAAkB,CAAC,QAAQ,EACrC,MAAM,EAAE,kBAAkB,CAAC,MAAM,YAEjC,MAAC,GAAG,eACA,KAAC,GAAG,IAAC,KAAK,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAC,YACxB,cAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YACtB,KAAC,OAAO,IACJ,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,GAC7B,GACA,GACJ,EACN,KAAC,GAAG,IAAC,KAAK,EAAE,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAC,EAAE,IAAI,EAAE,MAAM,YACrC,KAAK,CAAC,GAAG,CACN,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,EAAC,EAAE,KAAK,EAAE,EAAE;wBACpE,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;wBACxC,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;wBAExC,OAAO,CACH,KAAC,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;oBACN,CAAC,CACJ,GACC,IACJ,GACJ,CACT,CAAC;AACN,CAAC,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
@@ -1 +1 @@
1
- {"version":3,"file":"Share.js","sourceRoot":"../../../../src","sources":["blocks/Share/Share.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAC,eAAe,EAAC,+CAAsC;AAC9D,OAAO,EAAC,YAAY,EAAC,6BAAoB;AACzC,OAAO,EAAC,QAAQ,EAAC,gCAA6B;AAC9C,OAAO,EAAC,QAAQ,EAAC,gCAA6B;AAC9C,OAAO,EAAC,QAAQ,EAAC,gCAA6B;AAC9C,OAAO,EAAC,OAAO,EAAC,+BAA4B;AAC5C,OAAO,EAAC,EAAE,EAAC,0BAAuB;AAClC,OAAO,EAAC,iBAAi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,CAAC;wBACvC,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,IAAI,QAAQ,CAAC,CAAC;wBAE1C,OAAO,CACH,KAAC,MAAM,IAEH,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,GAAG,EACR,MAAM,EAAC,QAAQ,EACf,IAAI,EAAE,SAAS,EACf,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,EAAC,CAAC,EAChD,OAAO,EAAE,iBAAiB,EAC1B,KAAK,EAAE,QAAQ,EACf,UAAU,EAAE;gCACR,YAAY,EAAE,WAAW;6BAC5B,YAEA,IAAI,IAAI,CACL,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAC,IAAI,EAAC,CAAC,GAAI,CAC/D,IAdI,IAAI,CAeJ,CACZ,CAAC;oBACN,CAAC,CAAC,GACJ,IACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Button, Icon} from '@gravity-ui/uikit';\n\nimport {LocationContext} from '../../context/locationContext';\nimport {useAnalytics} from '../../hooks';\nimport {Facebook} from '../../icons/Facebook';\nimport {Linkedin} from '../../icons/Linkedin';\nimport {Telegram} from '../../icons/Telegram';\nimport {Twitter} from '../../icons/Twitter';\nimport {Vk} from '../../icons/Vk';\nimport {DefaultEventNames, ShareBlockProps} from '../../models';\nimport {block, getAbsolutePath, getShareLink} from '../../utils';\n\nimport {i18n} from './i18n';\n\nimport './Share.scss';\n\ninterface IconsProps {\n [key: string]: React.FC<React.SVGProps<SVGSVGElement>>;\n}\n\nconst icons: IconsProps = {\n facebook: Facebook,\n twitter: Twitter,\n linkedin: Linkedin,\n vk: Vk,\n telegram: Telegram,\n};\n\nconst b = block('share-block');\n\nconst Share = ({items, title}: ShareBlockProps) => {\n const {pathname, hostname} = React.useContext(LocationContext);\n const handleAnalytics = useAnalytics(DefaultEventNames.ShareButton);\n\n const handleButtonClick = React.useCallback(() => handleAnalytics(), [handleAnalytics]);\n\n return (\n <div className={b()}>\n <h5 className={b('title')}>{title || i18n('constructor-share')}</h5>\n <div className={b('items')}>\n {items &&\n items.map((type) => {\n const url = getAbsolutePath(hostname, pathname);\n const socialUrl = getShareLink(url, type);\n const icon = icons[type];\n const urlTitle = i18n(`${type}-title`);\n const buttonLabel = i18n(`${type}-label`);\n\n return (\n <Button\n key={type}\n view=\"flat\"\n size=\"l\"\n target=\"_blank\"\n href={socialUrl}\n className={b('item', {type: type.toLowerCase()})}\n onClick={handleButtonClick}\n title={urlTitle}\n extraProps={{\n 'aria-label': buttonLabel,\n }}\n >\n {icon && (\n <Icon data={icon} size={24} className={b('icon', {type})} />\n )}\n </Button>\n );\n })}\n </div>\n </div>\n );\n};\n\nexport default Share;\n"]}
1
+ {"version":3,"file":"Share.js","sourceRoot":"../../../../src","sources":["blocks/Share/Share.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAC,eAAe,EAAC,+CAAsC;AAC9D,OAAO,EAAC,YAAY,EAAC,6BAAoB;AACzC,OAAO,EAAC,QAAQ,EAAC,gCAA6B;AAC9C,OAAO,EAAC,QAAQ,EAAC,gCAA6B;AAC9C,OAAO,EAAC,QAAQ,EAAC,gCAA6B;AAC9C,OAAO,EAAC,OAAO,EAAC,+BAA4B;AAC5C,OAAO,EAAC,EAAE,EAAC,0BAAuB;AAClC,OAAO,EAAC,iBAAiB,EAAkB,8BAAqB;AAChE,OAAO,EAAC,KAAK,EAAE,eAAe,EAAE,YAAY,EAAC,6BAAoB;AAEjE,OAAO,EAAC,IAAI,EAAC,wBAAe;AAE5B,OAAO,aAAa,CAAC;AAMrB,MAAM,KAAK,GAAe;IACtB,Q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,EAAE,SAAS,EACf,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,EAAC,CAAC,EAChD,OAAO,EAAE,iBAAiB,EAC1B,KAAK,EAAE,QAAQ,EACf,UAAU,EAAE;4BACR,YAAY,EAAE,WAAW;yBAC5B,YAEA,IAAI,IAAI,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAC,IAAI,EAAC,CAAC,GAAI,IAZhE,IAAI,CAaJ,CACZ,CAAC;gBACN,CAAC,CAAC,GACA,IACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Button, Icon} from '@gravity-ui/uikit';\n\nimport {LocationContext} from '../../context/locationContext';\nimport {useAnalytics} from '../../hooks';\nimport {Facebook} from '../../icons/Facebook';\nimport {Linkedin} from '../../icons/Linkedin';\nimport {Telegram} from '../../icons/Telegram';\nimport {Twitter} from '../../icons/Twitter';\nimport {Vk} from '../../icons/Vk';\nimport {DefaultEventNames, ShareBlockProps} from '../../models';\nimport {block, getAbsolutePath, getShareLink} from '../../utils';\n\nimport {i18n} from './i18n';\n\nimport './Share.scss';\n\ninterface IconsProps {\n [key: string]: React.FC<React.SVGProps<SVGSVGElement>>;\n}\n\nconst icons: IconsProps = {\n facebook: Facebook,\n twitter: Twitter,\n linkedin: Linkedin,\n vk: Vk,\n telegram: Telegram,\n};\n\nconst b = block('share-block');\n\nconst Share = ({items, title}: ShareBlockProps) => {\n const {pathname, hostname} = React.useContext(LocationContext);\n const handleAnalytics = useAnalytics(DefaultEventNames.ShareButton);\n\n const handleButtonClick = React.useCallback(() => handleAnalytics(), [handleAnalytics]);\n\n return (\n <div className={b()}>\n <h5 className={b('title')}>{title || i18n('constructor-share')}</h5>\n <div className={b('items')}>\n {items.map((type) => {\n const url = getAbsolutePath(hostname, pathname);\n const socialUrl = getShareLink(url, type);\n const icon = icons[type];\n const urlTitle = i18n(`${type}-title`);\n const buttonLabel = i18n(`${type}-label`);\n\n return (\n <Button\n key={type}\n view=\"flat\"\n size=\"l\"\n target=\"_blank\"\n href={socialUrl}\n className={b('item', {type: type.toLowerCase()})}\n onClick={handleButtonClick}\n title={urlTitle}\n extraProps={{\n 'aria-label': buttonLabel,\n }}\n >\n {icon && <Icon data={icon} size={24} className={b('icon', {type})} />}\n </Button>\n );\n })}\n </div>\n </div>\n );\n};\n\nexport default Share;\n"]}
@@ -9,12 +9,10 @@ import Anchor from "../../components/Anchor/Anchor.js";
9
9
  import AnimateBlock from "../../components/AnimateBlock/AnimateBlock.js";
10
10
  import OutsideClick from "../../components/OutsideClick/OutsideClick.js";
11
11
  import Title from "../../components/Title/Title.js";
12
- import ItemWrap from "../../components/editor/ItemWrap/ItemWrap.js";
13
12
  import { BREAKPOINTS } from "../../constants.js";
14
13
  import { MobileContext } from "../../context/mobileContext/index.js";
15
14
  import { SSRContext } from "../../context/ssrContext/index.js";
16
15
  import { StylesContext } from "../../context/stylesContext/StylesContext.js";
17
- import { Grid } from "../../grid/index.js";
18
16
  import useFocus from "../../hooks/useFocus.js";
19
17
  import { SliderType, } from "../../models/index.js";
20
18
  import { block } from "../../utils/index.js";
@@ -36,11 +34,11 @@ export const SliderBlock = (props) => {
36
34
  const childrenCount = disclosedChildren.length;
37
35
  const isAutoplayEnabled = autoplaySpeed !== undefined && autoplaySpeed > 0;
38
36
  const isUserInteractionRef = React.useRef(false);
39
- const slidesToShow = React.useMemo(() => getSlidesToShowWithDefaults({
37
+ const [slidesToShow] = React.useState(getSlidesToShowWithDefaults({
40
38
  contentLength: childrenCount,
41
39
  breakpoints: props.slidesToShow,
42
40
  mobileFullscreen: Boolean(props.type && Object.values(SliderType).includes(props.type)),
43
- }), [childrenCount, props.slidesToShow, props.type]);
41
+ }));
44
42
  const slidesToShowCount = getSlidesToShowCount(slidesToShow);
45
43
  const slidesCountByBreakpoint = getSlidesCountByBreakpoint(breakpoint, slidesToShow);
46
44
  const [currentIndex, setCurrentIndex] = React.useState(0);
@@ -244,15 +242,15 @@ export const SliderBlock = (props) => {
244
242
  lazyLoad,
245
243
  accessibility: false,
246
244
  };
247
- return (_jsxs(OutsideClick, { onOutsideClick: isMobile ? unsetFocus : noop, children: [_jsx(SlickSlider, { ...settings, children: React.Children.map(disclosedChildren, (child, index) => (_jsx(ItemWrap, { index: index, children: child }))) }), _jsxs("div", { className: b('footer'), children: [renderDisclaimer(), renderNavigation()] })] }));
245
+ return (_jsxs(OutsideClick, { onOutsideClick: isMobile ? unsetFocus : noop, children: [_jsx(SlickSlider, { ...settings, children: disclosedChildren }), _jsxs("div", { className: b('footer'), children: [renderDisclaimer(), renderNavigation()] })] }));
248
246
  };
249
- return (_jsx(StylesContext.Provider, { value: { ...childStyles, setStyles: setChildStyles }, children: _jsx(Grid, { children: _jsxs("div", { className: b({
250
- 'align-left': childrenCount < slidesCountByBreakpoint,
251
- 'one-slide': childrenCount === 1,
252
- 'only-arrows': !title?.text && !description && arrows,
253
- mobile: isMobile,
254
- type,
255
- }, blockClassName), children: [anchorId && _jsx(Anchor, { id: anchorId }), _jsx(Title, { title: title, subtitle: description, className: b('header', { 'no-description': !description }) }), _jsx(AnimateBlock, { className: b('animate-slides'), animate: animated, children: renderSlider() })] }) }) }));
247
+ return (_jsx(StylesContext.Provider, { value: { ...childStyles, setStyles: setChildStyles }, children: _jsxs("div", { className: b({
248
+ 'align-left': childrenCount < slidesCountByBreakpoint,
249
+ 'one-slide': childrenCount === 1,
250
+ 'only-arrows': !title?.text && !description && arrows,
251
+ mobile: isMobile,
252
+ type,
253
+ }, blockClassName), children: [anchorId && _jsx(Anchor, { id: anchorId }), _jsx(Title, { title: title, subtitle: description, className: b('header', { 'no-description': !description }) }), _jsx(AnimateBlock, { className: b('animate-slides'), animate: animated, children: renderSlider() })] }) }));
256
254
  };
257
255
  function getSlideId(sliderId, index) {
258
256
  return `slider-${sliderId}-child-${index}`;
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.js","sourceRoot":"../../../../src","sources":["blocks/Slider/Slider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC5C,OAAO,QAAQ,2BAAwB;AACvC,OAAO,GAAG,sBAAmB;AAC7B,OAAO,IAAI,uBAAoB;AAC/B,OAAO,WAAuB,MAAM,aAAa,CAAC;AAElD,OAAO,MAAM,0CAAuC;AACpD,OAAO,YAAY,sDAAmD;AACtE,OAAO,YAAY,sDAAmD;AACtE,OAAO,KAAK,wCAAqC;AACjD,OAAO,QAAQ,qDAAkD;AACjE,OAAO,EAAC,WAAW,EAAC,2BAAwB;AAC5C,OAAO,EAAC,aAAa,EAAC,6CAAoC;AAC1D,OAAO,EAAC,UAAU,EAAC,0CAAiC;AACpD,OAAO,EAAC,aAAa,EAAC,qDAAkD;AACxE,OAAO,EAAC,IAAI,EAAC,4BAAmB;AAChC,OAAO,QAAQ,gCAA6B;AAC5C,OAAO,EAIH,UAAU,GAEb,8BAAqB;AACtB,OAAO,EAAC,KAAK,EAAC,6BAAoB;AAElC,OAAO,KAAkB,yBAAsB;AAC/C,OAAO,EAAC,IAAI,EAAC,wBAAe;AAE5B,OAAO,EACH,yBAAyB,EACzB,0BAA0B,EAC1B,oBAAoB,EACpB,2BAA2B,EAC3B,WAAW,EACX,iBAAiB,GACpB,mBAAgB;AAEjB,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;AAC/B,MAAM,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;AAEpC,MAAM,SAAS,GAAG,CAAC,CAAC;AACpB,MAAM,OAAO,GAAG,EAAE,CAAC;AAgBnB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAA2C,EAAE,EAAE;IACvE,M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GAAG,CAAC,KAAyB,EAAE,EAAE;QAC1C,MAAM,EAAE,GAAG,UAAU,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAC;QAE9C,OAAO,CACH,cAAc,EAAE,EAAE,EAAE,YACf,KAAK,IADA,EAAE,CAEN,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;QAC1C,IAAI,KAAK,EAAE,CAAC;YACR,uFAAuF;YACvF,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC;YAE/C,IAAI,cAAc,EAAE,CAAC;gBACjB,OAAO,cAAc,CAAC,GAAG,CAAC,CAAC,WAA+B,EAAE,EAAE;oBAC1D,OAAO,OAAO,CACV,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE;wBACtB,IAAI,EAAE;4BACF,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI;4BACnB,KAAK,EAAE,CAAC,WAAW,CAAC;yBACvB;qBACJ,CAAC,CACL,CAAC;gBACN,CAAC,CAAC,CAAC;YACP,CAAC;QACL,CAAC;QACD,OAAO,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACvB,CAAC;AAED,eAAe,WAAW,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {useUniqId} from '@gravity-ui/uikit';\nimport debounce from 'lodash/debounce';\nimport get from 'lodash/get';\nimport noop from 'lodash/noop';\nimport SlickSlider, {Settings} from 'react-slick';\n\nimport Anchor from '../../components/Anchor/Anchor';\nimport AnimateBlock from '../../components/AnimateBlock/AnimateBlock';\nimport OutsideClick from '../../components/OutsideClick/OutsideClick';\nimport Title from '../../components/Title/Title';\nimport ItemWrap from '../../components/editor/ItemWrap/ItemWrap';\nimport {BREAKPOINTS} from '../../constants';\nimport {MobileContext} from '../../context/mobileContext';\nimport {SSRContext} from '../../context/ssrContext';\nimport {StylesContext} from '../../context/stylesContext/StylesContext';\nimport {Grid} from '../../grid';\nimport useFocus from '../../hooks/useFocus';\nimport {\n ClassNameProps,\n Refable,\n SliderProps as SliderParams,\n SliderType,\n Timeout,\n} from '../../models';\nimport {block} from '../../utils';\n\nimport Arrow, {ArrowType} from './Arrow/Arrow';\nimport {i18n} from './i18n';\nimport {SliderBreakpointParams} from './models';\nimport {\n getSliderResponsiveParams,\n getSlidesCountByBreakpoint,\n getSlidesToShowCount,\n getSlidesToShowWithDefaults,\n isFocusable,\n useRovingTabIndex,\n} from './utils';\n\nimport './Slider.scss';\n\nconst b = block('SliderBlock');\nconst slick = block('slick-origin');\n\nconst DOT_WIDTH = 8;\nconst DOT_GAP = 16;\n\nexport interface SliderProps\n extends Omit<SliderParams, 'children'>,\n Refable<HTMLDivElement>,\n ClassNameProps,\n Pick<Settings, 'lazyLoad'> {\n type?: string;\n anchorId?: string;\n onAfterChange?: (index: number) => void;\n onBeforeChange?: (current: number, next: number) => void;\n dotsClassName?: string;\n blockClassName?: string;\n arrowSize?: number;\n}\n\nexport const SliderBlock = (props: React.PropsWithChildren<SliderProps>) => {\n const {\n animated,\n title,\n description,\n type,\n anchorId,\n arrows = true,\n adaptive,\n autoplay: autoplaySpeed,\n dots = true,\n dotsClassName,\n disclaimer,\n children,\n className,\n blockClassName,\n lazyLoad,\n arrowSize,\n onAfterChange: handleAfterChange,\n onBeforeChange: handleBeforeChange,\n } = props;\n\n const {isServer} = React.useContext(SSRContext);\n const isMobile = React.useContext(MobileContext);\n const [breakpoint, setBreakpoint] = React.useState<number>(BREAKPOINTS.xl);\n const sliderId = useUniqId();\n const disclosedChildren = React.useMemo<React.ReactElement[]>(\n () => discloseAllNestedChildren(children as React.ReactElement[], sliderId),\n [children, sliderId],\n );\n const childrenCount = disclosedChildren.length;\n const isAutoplayEnabled = autoplaySpeed !== undefined && autoplaySpeed > 0;\n const isUserInteractionRef = React.useRef(false);\n\n const slidesToShow = React.useMemo<SliderBreakpointParams>(\n () =>\n getSlidesToShowWithDefaults({\n contentLength: childrenCount,\n breakpoints: props.slidesToShow,\n mobileFullscreen: Boolean(\n props.type && Object.values(SliderType).includes(props.type as SliderType),\n ),\n }),\n [childrenCount, props.slidesToShow, props.type],\n );\n\n const slidesToShowCount = getSlidesToShowCount(slidesToShow);\n const slidesCountByBreakpoint = getSlidesCountByBreakpoint(breakpoint, slidesToShow);\n\n const [currentIndex, setCurrentIndex] = React.useState<number>(0);\n const [childStyles, setChildStyles] = React.useState<Object>({});\n const [slider, setSlider] = React.useState<SlickSlider>();\n const prevIndexRef = React.useRef<number>(0);\n const autoplayTimeId = React.useRef<Timeout>();\n const {hasFocus, unsetFocus} = useFocus(slider?.innerSlider?.list);\n\n const asUserInteraction =\n <T extends unknown[], R>(fn: (...args: T) => R) =>\n (...args: T): R => {\n isUserInteractionRef.current = true;\n return fn(...args);\n };\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const onResize = React.useCallback(\n debounce(() => {\n if (!slider) {\n return;\n }\n\n const newBreakpoint = get(slider, 'state.breakpoint') || BREAKPOINTS.xl;\n\n if (newBreakpoint !== breakpoint) {\n setBreakpoint(newBreakpoint);\n setCurrentIndex(0);\n\n slider.slickGoTo(0);\n }\n }, 100),\n [slider, breakpoint],\n );\n\n const scrollLastSlide = React.useCallback(\n (current: number) => {\n const lastSlide = childrenCount - slidesToShowCount;\n\n if (isAutoplayEnabled && lastSlide === current) {\n // Slick doesn't support autoplay with no infinity scroll\n autoplayTimeId.current = setTimeout(() => {\n if (slider) {\n slider.slickGoTo(0, false);\n slider.slickPause();\n }\n setTimeout(() => {\n if (slider) {\n slider.slickPlay();\n }\n }, 500);\n }, autoplaySpeed);\n }\n },\n [autoplaySpeed, childrenCount, isAutoplayEnabled, slider, slidesToShowCount],\n );\n\n React.useEffect(() => {\n if (hasFocus && autoplayTimeId.current) {\n clearTimeout(autoplayTimeId.current);\n } else {\n scrollLastSlide(currentIndex);\n }\n }, [currentIndex, hasFocus, scrollLastSlide]);\n\n React.useEffect(() => {\n onResize();\n\n window.addEventListener('resize', onResize, {passive: true});\n\n return () => window.removeEventListener('resize', onResize);\n }, [onResize]);\n\n const handleArrowClick = (direction: ArrowType) => {\n let nextIndex;\n\n if (direction === 'right') {\n nextIndex =\n currentIndex === childrenCount - slidesCountByBreakpoint ? 0 : currentIndex + 1;\n } else {\n nextIndex =\n currentIndex === 0 ? childrenCount - slidesCountByBreakpoint : currentIndex - 1;\n }\n\n if (slider) {\n slider.slickGoTo(nextIndex);\n }\n };\n\n const onBeforeChange = React.useCallback(\n (current: number, next: number) => {\n if (handleBeforeChange) {\n handleBeforeChange(current, next);\n }\n\n prevIndexRef.current = current;\n\n setCurrentIndex(Math.ceil(next));\n },\n [handleBeforeChange],\n );\n\n const onAfterChange = React.useCallback(\n (current: number) => {\n if (handleAfterChange) {\n handleAfterChange(current);\n }\n\n if (autoplayTimeId.current) {\n clearTimeout(autoplayTimeId.current);\n }\n\n if (!hasFocus) {\n scrollLastSlide(current);\n }\n\n if (isUserInteractionRef.current) {\n const focusIndex =\n prevIndexRef.current >= current\n ? current\n : Math.max(current, prevIndexRef.current + slidesCountByBreakpoint);\n\n const firstNewSlide = document.getElementById(getSlideId(sliderId, focusIndex));\n if (firstNewSlide) {\n const focusableChild = Array.from(firstNewSlide.querySelectorAll('*')).find(\n isFocusable,\n ) as HTMLElement | undefined;\n focusableChild?.focus();\n }\n }\n\n isUserInteractionRef.current = false;\n },\n [handleAfterChange, hasFocus, scrollLastSlide, sliderId, slidesCountByBreakpoint],\n );\n\n const handleDotClick = (index: number) => {\n const nextIndex = index > currentIndex ? index + 1 - slidesCountByBreakpoint : index;\n\n if (slider) {\n slider.slickGoTo(nextIndex);\n }\n };\n\n const barSlidesCount = childrenCount - slidesCountByBreakpoint + 1;\n const barPosition = (DOT_GAP + DOT_WIDTH) * currentIndex;\n const barWidth = DOT_WIDTH + (DOT_GAP + DOT_WIDTH) * (slidesCountByBreakpoint - 1);\n\n const {getRovingItemProps, rovingListProps} = useRovingTabIndex({\n itemCount: barSlidesCount,\n activeIndex: currentIndex + 1,\n firstIndex: 1,\n uniqId: sliderId,\n });\n\n const renderBar = () => {\n return (\n slidesCountByBreakpoint > 1 && (\n <li\n className={b('bar')}\n style={{\n left: barPosition,\n width: barWidth,\n }}\n />\n )\n );\n };\n\n // renders additional bar, not visible in the layout but visible for screenreaders\n const renderAccessibleBar = (index: number) => {\n return (\n // To have this key differ from keys used in renderDot function, added `-accessible-bar` part\n <React.Fragment key={`${index}-accessible-bar`}>\n {slidesCountByBreakpoint > 0 && (\n <li\n className={b('accessible-bar')}\n role=\"menuitemradio\"\n aria-checked\n aria-label={i18n('dot-label', {\n index: currentIndex + 1,\n count: barSlidesCount,\n })}\n style={{\n left: barPosition,\n width: barWidth,\n }}\n {...getRovingItemProps(currentIndex + 1)}\n />\n )}\n </React.Fragment>\n );\n };\n\n const getCurrentSlideNumber = (index: number) => {\n const currentIndexDiff = index - currentIndex;\n\n let currentSlideNumber;\n if (0 <= currentIndexDiff && currentIndexDiff < slidesCountByBreakpoint) {\n currentSlideNumber = currentIndex + 1;\n } else if (currentIndexDiff >= slidesCountByBreakpoint) {\n currentSlideNumber = index - slidesCountByBreakpoint + 2;\n } else {\n currentSlideNumber = index + 1;\n }\n return currentSlideNumber;\n };\n const isVisibleSlide = (index: number) => {\n const currentIndexDiff = index - currentIndex;\n\n const result =\n slidesCountByBreakpoint > 0 &&\n 0 <= currentIndexDiff &&\n currentIndexDiff < slidesCountByBreakpoint;\n return result;\n };\n\n const renderDot = (index: number) => {\n const isVisible = isVisibleSlide(index);\n const currentSlideNumber = getCurrentSlideNumber(index);\n const rovingItemProps = isVisible ? undefined : getRovingItemProps(currentSlideNumber);\n return (\n <li\n key={index}\n className={b('dot', {active: index === currentIndex})}\n onClick={asUserInteraction(() => handleDotClick(index))}\n onKeyDown={(e) => {\n const key = e.key.toLowerCase();\n if (key === 'space' || key === 'enter') {\n e.currentTarget.click();\n }\n }}\n role=\"menuitemradio\"\n aria-checked={false}\n tabIndex={-1}\n aria-hidden={isVisible}\n aria-label={i18n('dot-label', {\n index: currentSlideNumber,\n count: barSlidesCount,\n })}\n {...rovingItemProps}\n />\n );\n };\n\n const renderNavigation = () => {\n if (childrenCount <= slidesCountByBreakpoint || !dots || childrenCount === 1) {\n return null;\n }\n const dotsList = Array(childrenCount)\n .fill(null)\n .map((_item, index) => renderDot(index));\n dotsList.splice(currentIndex, 0, renderAccessibleBar(currentIndex));\n\n return (\n <div className={b('dots', dotsClassName)}>\n <ul\n className={b('dots-list')}\n role=\"menu\"\n aria-label={i18n('pagination-label')}\n {...rovingListProps}\n >\n {renderBar()}\n {dotsList}\n </ul>\n </div>\n );\n };\n\n const renderDisclaimer = () => {\n return disclaimer ? (\n <div className={b('disclaimer', {size: disclaimer.size || 'm'})}>{disclaimer.text}</div>\n ) : null;\n };\n\n const renderSlider = () => {\n /* Disable adding of width in inline styles when SSR to prevent overriding of default styles */\n /* Calculate appropriate breakpoint for mobile devices with user agent */\n const variableWidth = isServer && isMobile;\n\n const settings = {\n ref: (slickSlider: SlickSlider) => setSlider(slickSlider),\n className: slick(null, className),\n arrows,\n variableWidth,\n infinite: false,\n speed: 1000,\n adaptiveHeight: adaptive,\n autoplay: isAutoplayEnabled,\n autoplaySpeed,\n slidesToShow: slidesToShowCount,\n slidesToScroll: 1,\n responsive: getSliderResponsiveParams(slidesToShow),\n beforeChange: onBeforeChange,\n afterChange: onAfterChange,\n initialSlide: 0,\n nextArrow: (\n <Arrow\n type=\"right\"\n handleClick={asUserInteraction(handleArrowClick)}\n size={arrowSize}\n />\n ),\n prevArrow: (\n <Arrow\n type=\"left\"\n handleClick={asUserInteraction(handleArrowClick)}\n size={arrowSize}\n />\n ),\n lazyLoad,\n accessibility: false,\n };\n\n return (\n <OutsideClick onOutsideClick={isMobile ? unsetFocus : noop}>\n <SlickSlider {...settings}>\n {React.Children.map(disclosedChildren, (child, index) => (\n <ItemWrap index={index}>{child}</ItemWrap>\n ))}\n </SlickSlider>\n\n <div className={b('footer')}>\n {renderDisclaimer()}\n {renderNavigation()}\n </div>\n </OutsideClick>\n );\n };\n\n return (\n <StylesContext.Provider value={{...childStyles, setStyles: setChildStyles}}>\n <Grid>\n <div\n className={b(\n {\n 'align-left': childrenCount < slidesCountByBreakpoint,\n 'one-slide': childrenCount === 1,\n 'only-arrows': !title?.text && !description && arrows,\n mobile: isMobile,\n type,\n },\n blockClassName,\n )}\n >\n {anchorId && <Anchor id={anchorId} />}\n <Title\n title={title}\n subtitle={description}\n className={b('header', {'no-description': !description})}\n />\n <AnimateBlock className={b('animate-slides')} animate={animated}>\n {renderSlider()}\n </AnimateBlock>\n </div>\n </Grid>\n </StylesContext.Provider>\n );\n};\n\nfunction getSlideId(sliderId: string, index: number) {\n return `slider-${sliderId}-child-${index}`;\n}\n\n// TODO remove this and rework PriceDetailed CLOUDFRONT-12230\nfunction discloseAllNestedChildren(\n children: React.ReactElement[],\n sliderId: string,\n): React.ReactElement[] {\n if (!children) {\n return [];\n }\n\n let childIndex = 0;\n const wrapped = (child: React.ReactElement) => {\n const id = getSlideId(sliderId, childIndex++);\n\n return (\n <div key={id} id={id}>\n {child}\n </div>\n );\n };\n\n return React.Children.map(children, (child) => {\n if (child) {\n // TODO: if child has 'items' then 'items' determinate like nested children for Slider.\n const nestedChildren = child.props.data?.items;\n\n if (nestedChildren) {\n return nestedChildren.map((nestedChild: React.ReactElement) => {\n return wrapped(\n React.cloneElement(child, {\n data: {\n ...child.props.data,\n items: [nestedChild],\n },\n }),\n );\n });\n }\n }\n return child && wrapped(child);\n }).filter(Boolean);\n}\n\nexport default SliderBlock;\n"]}
1
+ {"version":3,"file":"Slider.js","sourceRoot":"../../../../src","sources":["blocks/Slider/Slider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,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,YAAY,CAAC,KAAK,EAAE;wBACtB,IAAI,EAAE;4BACF,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI;4BACnB,KAAK,EAAE,CAAC,WAAW,CAAC;yBACvB;qBACJ,CAAC,CACL,CAAC;gBACN,CAAC,CAAC,CAAC;YACP,CAAC;QACL,CAAC;QACD,OAAO,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACvB,CAAC;AAED,eAAe,WAAW,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {useUniqId} from '@gravity-ui/uikit';\nimport debounce from 'lodash/debounce';\nimport get from 'lodash/get';\nimport noop from 'lodash/noop';\nimport SlickSlider, {Settings} from 'react-slick';\n\nimport Anchor from '../../components/Anchor/Anchor';\nimport AnimateBlock from '../../components/AnimateBlock/AnimateBlock';\nimport OutsideClick from '../../components/OutsideClick/OutsideClick';\nimport Title from '../../components/Title/Title';\nimport {BREAKPOINTS} from '../../constants';\nimport {MobileContext} from '../../context/mobileContext';\nimport {SSRContext} from '../../context/ssrContext';\nimport {StylesContext} from '../../context/stylesContext/StylesContext';\nimport useFocus from '../../hooks/useFocus';\nimport {\n ClassNameProps,\n Refable,\n SliderProps as SliderParams,\n SliderType,\n Timeout,\n} from '../../models';\nimport {block} from '../../utils';\n\nimport Arrow, {ArrowType} from './Arrow/Arrow';\nimport {i18n} from './i18n';\nimport {SliderBreakpointParams} from './models';\nimport {\n getSliderResponsiveParams,\n getSlidesCountByBreakpoint,\n getSlidesToShowCount,\n getSlidesToShowWithDefaults,\n isFocusable,\n useRovingTabIndex,\n} from './utils';\n\nimport './Slider.scss';\n\nconst b = block('SliderBlock');\nconst slick = block('slick-origin');\n\nconst DOT_WIDTH = 8;\nconst DOT_GAP = 16;\n\nexport interface SliderProps\n extends Omit<SliderParams, 'children'>,\n Refable<HTMLDivElement>,\n ClassNameProps,\n Pick<Settings, 'lazyLoad'> {\n type?: string;\n anchorId?: string;\n onAfterChange?: (index: number) => void;\n onBeforeChange?: (current: number, next: number) => void;\n dotsClassName?: string;\n blockClassName?: string;\n arrowSize?: number;\n}\n\nexport const SliderBlock = (props: React.PropsWithChildren<SliderProps>) => {\n const {\n animated,\n title,\n description,\n type,\n anchorId,\n arrows = true,\n adaptive,\n autoplay: autoplaySpeed,\n dots = true,\n dotsClassName,\n disclaimer,\n children,\n className,\n blockClassName,\n lazyLoad,\n arrowSize,\n onAfterChange: handleAfterChange,\n onBeforeChange: handleBeforeChange,\n } = props;\n\n const {isServer} = React.useContext(SSRContext);\n const isMobile = React.useContext(MobileContext);\n const [breakpoint, setBreakpoint] = React.useState<number>(BREAKPOINTS.xl);\n const sliderId = useUniqId();\n const disclosedChildren = React.useMemo<React.ReactElement[]>(\n () => discloseAllNestedChildren(children as React.ReactElement[], sliderId),\n [children, sliderId],\n );\n const childrenCount = disclosedChildren.length;\n const isAutoplayEnabled = autoplaySpeed !== undefined && autoplaySpeed > 0;\n const isUserInteractionRef = React.useRef(false);\n\n const [slidesToShow] = React.useState<SliderBreakpointParams>(\n getSlidesToShowWithDefaults({\n contentLength: childrenCount,\n breakpoints: props.slidesToShow,\n mobileFullscreen: Boolean(\n props.type && Object.values(SliderType).includes(props.type as SliderType),\n ),\n }),\n );\n\n const slidesToShowCount = getSlidesToShowCount(slidesToShow);\n const slidesCountByBreakpoint = getSlidesCountByBreakpoint(breakpoint, slidesToShow);\n\n const [currentIndex, setCurrentIndex] = React.useState<number>(0);\n const [childStyles, setChildStyles] = React.useState<Object>({});\n const [slider, setSlider] = React.useState<SlickSlider>();\n const prevIndexRef = React.useRef<number>(0);\n const autoplayTimeId = React.useRef<Timeout>();\n const {hasFocus, unsetFocus} = useFocus(slider?.innerSlider?.list);\n\n const asUserInteraction =\n <T extends unknown[], R>(fn: (...args: T) => R) =>\n (...args: T): R => {\n isUserInteractionRef.current = true;\n return fn(...args);\n };\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const onResize = React.useCallback(\n debounce(() => {\n if (!slider) {\n return;\n }\n\n const newBreakpoint = get(slider, 'state.breakpoint') || BREAKPOINTS.xl;\n\n if (newBreakpoint !== breakpoint) {\n setBreakpoint(newBreakpoint);\n setCurrentIndex(0);\n\n slider.slickGoTo(0);\n }\n }, 100),\n [slider, breakpoint],\n );\n\n const scrollLastSlide = React.useCallback(\n (current: number) => {\n const lastSlide = childrenCount - slidesToShowCount;\n\n if (isAutoplayEnabled && lastSlide === current) {\n // Slick doesn't support autoplay with no infinity scroll\n autoplayTimeId.current = setTimeout(() => {\n if (slider) {\n slider.slickGoTo(0, false);\n slider.slickPause();\n }\n setTimeout(() => {\n if (slider) {\n slider.slickPlay();\n }\n }, 500);\n }, autoplaySpeed);\n }\n },\n [autoplaySpeed, childrenCount, isAutoplayEnabled, slider, slidesToShowCount],\n );\n\n React.useEffect(() => {\n if (hasFocus && autoplayTimeId.current) {\n clearTimeout(autoplayTimeId.current);\n } else {\n scrollLastSlide(currentIndex);\n }\n }, [currentIndex, hasFocus, scrollLastSlide]);\n\n React.useEffect(() => {\n onResize();\n\n window.addEventListener('resize', onResize, {passive: true});\n\n return () => window.removeEventListener('resize', onResize);\n }, [onResize]);\n\n const handleArrowClick = (direction: ArrowType) => {\n let nextIndex;\n\n if (direction === 'right') {\n nextIndex =\n currentIndex === childrenCount - slidesCountByBreakpoint ? 0 : currentIndex + 1;\n } else {\n nextIndex =\n currentIndex === 0 ? childrenCount - slidesCountByBreakpoint : currentIndex - 1;\n }\n\n if (slider) {\n slider.slickGoTo(nextIndex);\n }\n };\n\n const onBeforeChange = React.useCallback(\n (current: number, next: number) => {\n if (handleBeforeChange) {\n handleBeforeChange(current, next);\n }\n\n prevIndexRef.current = current;\n\n setCurrentIndex(Math.ceil(next));\n },\n [handleBeforeChange],\n );\n\n const onAfterChange = React.useCallback(\n (current: number) => {\n if (handleAfterChange) {\n handleAfterChange(current);\n }\n\n if (autoplayTimeId.current) {\n clearTimeout(autoplayTimeId.current);\n }\n\n if (!hasFocus) {\n scrollLastSlide(current);\n }\n\n if (isUserInteractionRef.current) {\n const focusIndex =\n prevIndexRef.current >= current\n ? current\n : Math.max(current, prevIndexRef.current + slidesCountByBreakpoint);\n\n const firstNewSlide = document.getElementById(getSlideId(sliderId, focusIndex));\n if (firstNewSlide) {\n const focusableChild = Array.from(firstNewSlide.querySelectorAll('*')).find(\n isFocusable,\n ) as HTMLElement | undefined;\n focusableChild?.focus();\n }\n }\n\n isUserInteractionRef.current = false;\n },\n [handleAfterChange, hasFocus, scrollLastSlide, sliderId, slidesCountByBreakpoint],\n );\n\n const handleDotClick = (index: number) => {\n const nextIndex = index > currentIndex ? index + 1 - slidesCountByBreakpoint : index;\n\n if (slider) {\n slider.slickGoTo(nextIndex);\n }\n };\n\n const barSlidesCount = childrenCount - slidesCountByBreakpoint + 1;\n const barPosition = (DOT_GAP + DOT_WIDTH) * currentIndex;\n const barWidth = DOT_WIDTH + (DOT_GAP + DOT_WIDTH) * (slidesCountByBreakpoint - 1);\n\n const {getRovingItemProps, rovingListProps} = useRovingTabIndex({\n itemCount: barSlidesCount,\n activeIndex: currentIndex + 1,\n firstIndex: 1,\n uniqId: sliderId,\n });\n\n const renderBar = () => {\n return (\n slidesCountByBreakpoint > 1 && (\n <li\n className={b('bar')}\n style={{\n left: barPosition,\n width: barWidth,\n }}\n />\n )\n );\n };\n\n // renders additional bar, not visible in the layout but visible for screenreaders\n const renderAccessibleBar = (index: number) => {\n return (\n // To have this key differ from keys used in renderDot function, added `-accessible-bar` part\n <React.Fragment key={`${index}-accessible-bar`}>\n {slidesCountByBreakpoint > 0 && (\n <li\n className={b('accessible-bar')}\n role=\"menuitemradio\"\n aria-checked\n aria-label={i18n('dot-label', {\n index: currentIndex + 1,\n count: barSlidesCount,\n })}\n style={{\n left: barPosition,\n width: barWidth,\n }}\n {...getRovingItemProps(currentIndex + 1)}\n />\n )}\n </React.Fragment>\n );\n };\n\n const getCurrentSlideNumber = (index: number) => {\n const currentIndexDiff = index - currentIndex;\n\n let currentSlideNumber;\n if (0 <= currentIndexDiff && currentIndexDiff < slidesCountByBreakpoint) {\n currentSlideNumber = currentIndex + 1;\n } else if (currentIndexDiff >= slidesCountByBreakpoint) {\n currentSlideNumber = index - slidesCountByBreakpoint + 2;\n } else {\n currentSlideNumber = index + 1;\n }\n return currentSlideNumber;\n };\n const isVisibleSlide = (index: number) => {\n const currentIndexDiff = index - currentIndex;\n\n const result =\n slidesCountByBreakpoint > 0 &&\n 0 <= currentIndexDiff &&\n currentIndexDiff < slidesCountByBreakpoint;\n return result;\n };\n\n const renderDot = (index: number) => {\n const isVisible = isVisibleSlide(index);\n const currentSlideNumber = getCurrentSlideNumber(index);\n const rovingItemProps = isVisible ? undefined : getRovingItemProps(currentSlideNumber);\n return (\n <li\n key={index}\n className={b('dot', {active: index === currentIndex})}\n onClick={asUserInteraction(() => handleDotClick(index))}\n onKeyDown={(e) => {\n const key = e.key.toLowerCase();\n if (key === 'space' || key === 'enter') {\n e.currentTarget.click();\n }\n }}\n role=\"menuitemradio\"\n aria-checked={false}\n tabIndex={-1}\n aria-hidden={isVisible}\n aria-label={i18n('dot-label', {\n index: currentSlideNumber,\n count: barSlidesCount,\n })}\n {...rovingItemProps}\n />\n );\n };\n\n const renderNavigation = () => {\n if (childrenCount <= slidesCountByBreakpoint || !dots || childrenCount === 1) {\n return null;\n }\n const dotsList = Array(childrenCount)\n .fill(null)\n .map((_item, index) => renderDot(index));\n dotsList.splice(currentIndex, 0, renderAccessibleBar(currentIndex));\n\n return (\n <div className={b('dots', dotsClassName)}>\n <ul\n className={b('dots-list')}\n role=\"menu\"\n aria-label={i18n('pagination-label')}\n {...rovingListProps}\n >\n {renderBar()}\n {dotsList}\n </ul>\n </div>\n );\n };\n\n const renderDisclaimer = () => {\n return disclaimer ? (\n <div className={b('disclaimer', {size: disclaimer.size || 'm'})}>{disclaimer.text}</div>\n ) : null;\n };\n\n const renderSlider = () => {\n /* Disable adding of width in inline styles when SSR to prevent overriding of default styles */\n /* Calculate appropriate breakpoint for mobile devices with user agent */\n const variableWidth = isServer && isMobile;\n\n const settings = {\n ref: (slickSlider: SlickSlider) => setSlider(slickSlider),\n className: slick(null, className),\n arrows,\n variableWidth,\n infinite: false,\n speed: 1000,\n adaptiveHeight: adaptive,\n autoplay: isAutoplayEnabled,\n autoplaySpeed,\n slidesToShow: slidesToShowCount,\n slidesToScroll: 1,\n responsive: getSliderResponsiveParams(slidesToShow),\n beforeChange: onBeforeChange,\n afterChange: onAfterChange,\n initialSlide: 0,\n nextArrow: (\n <Arrow\n type=\"right\"\n handleClick={asUserInteraction(handleArrowClick)}\n size={arrowSize}\n />\n ),\n prevArrow: (\n <Arrow\n type=\"left\"\n handleClick={asUserInteraction(handleArrowClick)}\n size={arrowSize}\n />\n ),\n lazyLoad,\n accessibility: false,\n };\n\n return (\n <OutsideClick onOutsideClick={isMobile ? unsetFocus : noop}>\n <SlickSlider {...settings}>{disclosedChildren}</SlickSlider>\n <div className={b('footer')}>\n {renderDisclaimer()}\n {renderNavigation()}\n </div>\n </OutsideClick>\n );\n };\n\n return (\n <StylesContext.Provider value={{...childStyles, setStyles: setChildStyles}}>\n <div\n className={b(\n {\n 'align-left': childrenCount < slidesCountByBreakpoint,\n 'one-slide': childrenCount === 1,\n 'only-arrows': !title?.text && !description && arrows,\n mobile: isMobile,\n type,\n },\n blockClassName,\n )}\n >\n {anchorId && <Anchor id={anchorId} />}\n <Title\n title={title}\n subtitle={description}\n className={b('header', {'no-description': !description})}\n />\n <AnimateBlock className={b('animate-slides')} animate={animated}>\n {renderSlider()}\n </AnimateBlock>\n </div>\n </StylesContext.Provider>\n );\n};\n\nfunction getSlideId(sliderId: string, index: number) {\n return `slider-${sliderId}-child-${index}`;\n}\n\n// TODO remove this and rework PriceDetailed CLOUDFRONT-12230\nfunction discloseAllNestedChildren(\n children: React.ReactElement[],\n sliderId: string,\n): React.ReactElement[] {\n if (!children) {\n return [];\n }\n\n let childIndex = 0;\n const wrapped = (child: React.ReactElement) => {\n const id = getSlideId(sliderId, childIndex++);\n\n return (\n <div key={id} id={id}>\n {child}\n </div>\n );\n };\n\n return React.Children.map(children, (child) => {\n if (child) {\n // TODO: if child has 'items' then 'items' determinate like nested children for Slider.\n const nestedChildren = child.props.data?.items;\n\n if (nestedChildren) {\n return nestedChildren.map((nestedChild: React.ReactElement) => {\n return wrapped(\n React.cloneElement(child, {\n data: {\n ...child.props.data,\n items: [nestedChild],\n },\n }),\n );\n });\n }\n }\n return child && wrapped(child);\n }).filter(Boolean);\n}\n\nexport default SliderBlock;\n"]}
@@ -8,7 +8,6 @@ export declare const TableBlock: {
8
8
  contentType: string;
9
9
  };
10
10
  table: {
11
- type: string;
12
11
  additionalProperties: boolean;
13
12
  required: string[];
14
13
  properties: {
@@ -10,7 +10,6 @@ export const TableBlock = {
10
10
  contentType: 'text',
11
11
  },
12
12
  table: {
13
- type: 'object',
14
13
  additionalProperties: false,
15
14
  required: ['content'],
16
15
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"../../../../src","sources":["blocks/Table/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,cAAc,EAAE,YAAY,EAAC,0CAAuC;AAEvF,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,aAAa,EAAE;QACX,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QAC5B,UAAU,EAAE;YACR,GAAG,cAAc;YACjB,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,MAAM;aACtB;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,UAAU,EAAE;oBACR,GAAG,SAAS;oBACZ,OAAO,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACH,IAAI,EAAE,OAAO;4BACb,KAAK,EAAE;gCACH,KAAK,EAAE;oCACH;wCACI,IAAI,EAAE,QAAQ;wCACd,WAAW,EAAE,MAAM;wCACnB,UAAU,EAAE,MAAM;qCACrB;oCACD;wCACI,IAAI,EAAE,QAAQ;wCACd,WAAW,EAAE,MAAM;wCACnB,UAAU,EAAE,QAAQ;qCACvB;iCACJ;6BACJ;yBACJ;qBACJ;oBACD,MAAM,EAAE;wBACJ,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACH,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,KAAK;yBACrB;qBACJ;oBACD,UAAU,EAAE;wBACR,IAAI,EAAE,SAAS;qBAClB;oBACD,OAAO,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,YAAY;qBACtB;oBACD,MAAM,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;qBACzB;oBACD,OAAO,EAAE;wBACL,IAAI,EAAE,QAAQ;qBACjB;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import {BaseProps, BlockBaseProps, JustifyProps} from '../../schema/validators/common';\n\nexport const TableBlock = {\n 'table-block': {\n additionalProperties: false,\n required: ['title', 'table'],\n properties: {\n ...BlockBaseProps,\n title: {\n type: 'string',\n contentType: 'text',\n },\n table: {\n type: 'object',\n additionalProperties: false,\n required: ['content'],\n properties: {\n ...BaseProps,\n content: {\n type: 'array',\n items: {\n type: 'array',\n items: {\n oneOf: [\n {\n type: 'string',\n contentType: 'text',\n optionName: 'text',\n },\n {\n type: 'number',\n contentType: 'text',\n optionName: 'number',\n },\n ],\n },\n },\n },\n legend: {\n type: 'array',\n items: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n hideLegend: {\n type: 'boolean',\n },\n justify: {\n type: 'array',\n items: JustifyProps,\n },\n marker: {\n type: 'string',\n enum: ['disk', 'tick'],\n },\n caption: {\n type: 'string',\n },\n },\n },\n },\n },\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;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import {BaseProps, BlockBaseProps, JustifyProps} from '../../schema/validators/common';\n\nexport const TableBlock = {\n 'table-block': {\n additionalProperties: false,\n required: ['title', 'table'],\n properties: {\n ...BlockBaseProps,\n title: {\n type: 'string',\n contentType: 'text',\n },\n table: {\n additionalProperties: false,\n required: ['content'],\n properties: {\n ...BaseProps,\n content: {\n type: 'array',\n items: {\n type: 'array',\n items: {\n oneOf: [\n {\n type: 'string',\n contentType: 'text',\n optionName: 'text',\n },\n {\n type: 'number',\n contentType: 'text',\n optionName: 'number',\n },\n ],\n },\n },\n },\n legend: {\n type: 'array',\n items: {\n type: 'string',\n contentType: 'yfm',\n },\n },\n hideLegend: {\n type: 'boolean',\n },\n justify: {\n type: 'array',\n items: JustifyProps,\n },\n marker: {\n type: 'string',\n enum: ['disk', 'tick'],\n },\n caption: {\n type: 'string',\n },\n },\n },\n },\n },\n};\n"]}