@gravity-ui/page-constructor 4.0.0-beta.0 → 4.0.1

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 (757) hide show
  1. package/README.md +54 -7
  2. package/build/cjs/blocks/Banner/schema.d.ts +72 -24
  3. package/build/cjs/blocks/CardLayout/schema.d.ts +16 -6
  4. package/build/cjs/blocks/Companies/Companies.css +5 -5
  5. package/build/cjs/blocks/Companies/Companies.js +3 -3
  6. package/build/cjs/blocks/Companies/schema.d.ts +8 -3
  7. package/build/cjs/blocks/ContentLayout/ContentLayout.css +4 -7
  8. package/build/cjs/blocks/ContentLayout/ContentLayout.js +1 -2
  9. package/build/cjs/blocks/ContentLayout/schema.d.ts +112 -59
  10. package/build/cjs/blocks/ContentLayout/schema.js +23 -18
  11. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +16 -16
  12. package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -3
  13. package/build/cjs/blocks/ExtendedFeatures/schema.d.ts +37 -6
  14. package/build/cjs/blocks/ExtendedFeatures/schema.js +2 -3
  15. package/build/cjs/blocks/FilterBlock/schema.d.ts +19 -7
  16. package/build/cjs/blocks/FilterBlock/schema.js +13 -2
  17. package/build/cjs/blocks/Header/Header.css +28 -25
  18. package/build/cjs/blocks/Header/Header.js +6 -7
  19. package/build/cjs/blocks/Header/schema.d.ts +329 -37
  20. package/build/cjs/blocks/Header/schema.js +1 -0
  21. package/build/cjs/blocks/HeaderSlider/schema.d.ts +129 -54
  22. package/build/cjs/blocks/HeaderSlider/schema.js +3 -1
  23. package/build/cjs/blocks/Icons/Icons.css +2 -2
  24. package/build/cjs/blocks/Icons/schema.d.ts +9 -3
  25. package/build/cjs/blocks/Icons/schema.js +2 -1
  26. package/build/cjs/blocks/Info/Info.css +1 -1
  27. package/build/cjs/blocks/Info/Info.js +3 -3
  28. package/build/cjs/blocks/Info/schema.d.ts +44 -9
  29. package/build/cjs/blocks/Map/schema.d.ts +31 -7
  30. package/build/cjs/blocks/Media/Media.js +2 -2
  31. package/build/cjs/blocks/Media/schema.d.ts +346 -112
  32. package/build/cjs/blocks/Media/schema.js +1 -1
  33. package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +13 -13
  34. package/build/cjs/blocks/PromoFeaturesBlock/schema.d.ts +103 -9
  35. package/build/cjs/blocks/PromoFeaturesBlock/schema.js +1 -0
  36. package/build/cjs/blocks/Questions/Questions.css +12 -12
  37. package/build/cjs/blocks/Questions/schema.d.ts +21 -4
  38. package/build/cjs/blocks/Share/Share.css +14 -12
  39. package/build/cjs/blocks/Share/schema.d.ts +3 -1
  40. package/build/cjs/blocks/Slider/Arrow/Arrow.css +4 -4
  41. package/build/cjs/blocks/Slider/Arrow/Arrow.js +1 -1
  42. package/build/cjs/blocks/Slider/Slider.css +12 -12
  43. package/build/cjs/blocks/Slider/Slider.js +3 -3
  44. package/build/cjs/blocks/Slider/schema.d.ts +16 -19
  45. package/build/cjs/blocks/Slider/schema.js +4 -5
  46. package/build/cjs/blocks/Slider/utils.d.ts +2 -2
  47. package/build/cjs/blocks/Slider/utils.js +3 -1
  48. package/build/cjs/blocks/Table/Table.css +5 -5
  49. package/build/cjs/blocks/Table/schema.d.ts +11 -4
  50. package/build/cjs/blocks/Table/schema.js +12 -2
  51. package/build/cjs/blocks/Tabs/Tabs.css +6 -6
  52. package/build/cjs/blocks/Tabs/Tabs.d.ts +1 -1
  53. package/build/cjs/blocks/Tabs/Tabs.js +4 -4
  54. package/build/cjs/blocks/Tabs/schema.d.ts +142 -18
  55. package/build/cjs/blocks/Tabs/schema.js +4 -1
  56. package/build/cjs/components/Anchor/Anchor.d.ts +2 -3
  57. package/build/cjs/components/AnimateBlock/AnimateBlock.d.ts +2 -3
  58. package/build/cjs/components/Author/Author.css +8 -8
  59. package/build/cjs/components/Author/Author.js +2 -2
  60. package/build/cjs/components/Author/schema.d.ts +3 -1
  61. package/build/cjs/components/BlockBase/BlockBase.css +4 -1
  62. package/build/cjs/components/BlockBase/BlockBase.d.ts +3 -2
  63. package/build/cjs/components/BlockBase/BlockBase.js +3 -5
  64. package/build/cjs/components/Button/Button.css +4 -0
  65. package/build/cjs/components/Button/Button.d.ts +2 -3
  66. package/build/cjs/components/Button/Button.js +3 -2
  67. package/build/cjs/components/ButtonTabs/ButtonTabs.css +4 -0
  68. package/build/cjs/components/ButtonTabs/ButtonTabs.d.ts +2 -3
  69. package/build/cjs/components/CardBase/CardBase.css +6 -6
  70. package/build/cjs/components/Control/Control.css +9 -9
  71. package/build/cjs/components/ErrorWrapper/ErrorWrapper.css +3 -3
  72. package/build/cjs/components/FileLink/FileLink.css +16 -56
  73. package/build/cjs/components/FileLink/FileLink.js +18 -1
  74. package/build/cjs/components/FullWidthBackground/FullWidthBackground.css +1 -1
  75. package/build/cjs/components/FullscreenImage/FullscreenImage.css +3 -3
  76. package/build/cjs/components/FullscreenMedia/FullscreenMedia.css +3 -3
  77. package/build/cjs/components/HTML/HTML.js +2 -1
  78. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +11 -11
  79. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
  80. package/build/cjs/components/Image/Image.d.ts +2 -3
  81. package/build/cjs/components/Image/schema.d.ts +2 -1
  82. package/build/cjs/components/Image/schema.js +10 -9
  83. package/build/cjs/components/Link/Link.css +13 -13
  84. package/build/cjs/components/Media/Image/Image.js +4 -3
  85. package/build/cjs/components/Media/Media.js +1 -1
  86. package/build/cjs/components/Media/Video/Video.js +1 -0
  87. package/build/cjs/components/MediaBase/MediaBaseContent.js +2 -2
  88. package/build/cjs/components/MetaInfo/MetaInfo.css +2 -2
  89. package/build/cjs/components/MetaInfo/MetaInfo.js +1 -1
  90. package/build/cjs/components/OverflowScroller/OverflowScroller.css +1 -1
  91. package/build/cjs/components/ReactPlayer/CustomBarControls.css +1 -1
  92. package/build/cjs/components/ReactPlayer/ReactPlayer.css +2 -2
  93. package/build/cjs/components/Table/Table.css +8 -8
  94. package/build/cjs/components/Title/Title.css +4 -4
  95. package/build/cjs/components/Title/TitleItem.css +19 -19
  96. package/build/cjs/components/Title/TitleItem.d.ts +2 -3
  97. package/build/cjs/components/Title/TitleItem.js +2 -2
  98. package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.css +5 -5
  99. package/build/cjs/components/VideoBlock/VideoBlock.css +2 -2
  100. package/build/cjs/components/VideoBlock/VideoBlock.d.ts +2 -1
  101. package/build/cjs/components/VideoBlock/VideoBlock.js +6 -2
  102. package/build/cjs/components/constants.d.ts +3 -1
  103. package/build/cjs/components/constants.js +4 -2
  104. package/build/cjs/constructor-items.d.ts +1 -1
  105. package/build/cjs/containers/Loadable/Loadable.d.ts +2 -2
  106. package/build/cjs/containers/PageConstructor/PageConstructor.css +50 -30
  107. package/build/cjs/containers/PageConstructor/PageConstructor.js +6 -3
  108. package/build/cjs/containers/PageConstructor/Provider.d.ts +2 -3
  109. package/build/cjs/containers/PageConstructor/Provider.js +2 -2
  110. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts +3 -3
  111. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +8 -4
  112. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.d.ts +3 -4
  113. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -4
  114. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +3 -3
  115. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +5 -3
  116. package/build/cjs/containers/PageConstructor/components/index.d.ts +2 -0
  117. package/build/cjs/containers/PageConstructor/components/index.js +5 -0
  118. package/build/cjs/containers/PageConstructor/index.d.ts +1 -0
  119. package/build/cjs/containers/PageConstructor/index.js +2 -0
  120. package/build/cjs/context/theme/ThemeContext.d.ts +2 -3
  121. package/build/cjs/context/theme/ThemeContext.js +0 -1
  122. package/build/cjs/context/theme/index.d.ts +0 -1
  123. package/build/cjs/context/theme/index.js +0 -1
  124. package/build/cjs/context/theme/useTheme.d.ts +1 -1
  125. package/build/cjs/context/theme/useTheme.js +2 -2
  126. package/build/cjs/context/theme/withTheme.js +1 -1
  127. package/build/cjs/customization/BlockDecoration.d.ts +1 -1
  128. package/build/cjs/customization/BlockDecoration.js +8 -14
  129. package/build/cjs/editor/{Components → components}/AddBlock/AddBlock.css +7 -6
  130. package/build/cjs/editor/components/AddBlock/AddBlock.d.ts +7 -0
  131. package/build/cjs/editor/{Components → components}/AddBlock/AddBlock.js +3 -3
  132. package/build/cjs/editor/components/BlockForm/BlockForm.d.ts +12 -0
  133. package/build/cjs/editor/components/BlockForm/BlockForm.js +28 -0
  134. package/build/cjs/editor/components/ControlPanel/ControlPanel.css +34 -0
  135. package/build/cjs/editor/components/ControlPanel/ControlPanel.d.ts +10 -0
  136. package/build/cjs/editor/components/ControlPanel/ControlPanel.js +35 -0
  137. package/build/cjs/editor/components/ControlPanel/i18n/en.json +3 -0
  138. package/build/cjs/editor/components/ControlPanel/i18n/index.d.ts +2 -0
  139. package/build/cjs/editor/components/ControlPanel/i18n/index.js +8 -0
  140. package/build/cjs/editor/components/ControlPanel/i18n/ru.json +3 -0
  141. package/build/cjs/editor/components/DeviceEmulation/DeviceEmulation.d.ts +7 -0
  142. package/build/cjs/editor/components/DeviceEmulation/DeviceEmulation.js +10 -0
  143. package/build/cjs/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.css +33 -0
  144. package/build/cjs/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.d.ts +8 -0
  145. package/build/cjs/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.js +41 -0
  146. package/build/cjs/editor/components/DeviceEmulation/utils.d.ts +4 -0
  147. package/build/cjs/editor/components/DeviceEmulation/utils.js +7 -0
  148. package/build/{esm/editor/Components → cjs/editor/components}/EditBlock/EditBlock.css +22 -14
  149. package/build/cjs/editor/components/EditBlock/EditBlock.d.ts +13 -0
  150. package/build/cjs/editor/components/EditBlock/EditBlock.js +48 -0
  151. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.css +27 -0
  152. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.d.ts +13 -0
  153. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js +35 -0
  154. package/build/cjs/editor/components/ErrorBoundary/i18n/en.json +4 -0
  155. package/build/cjs/editor/components/ErrorBoundary/i18n/index.d.ts +2 -0
  156. package/build/cjs/editor/components/ErrorBoundary/i18n/index.js +8 -0
  157. package/build/cjs/editor/components/ErrorBoundary/i18n/ru.json +4 -0
  158. package/build/cjs/editor/components/Layout/Layout.css +44 -0
  159. package/build/cjs/editor/components/Layout/Layout.d.ts +19 -0
  160. package/build/cjs/editor/components/Layout/Layout.js +38 -0
  161. package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.css +21 -0
  162. package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.d.ts +2 -0
  163. package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.js +12 -0
  164. package/build/cjs/editor/components/NotFoundBlock/i18n/en.json +3 -0
  165. package/build/cjs/editor/components/NotFoundBlock/i18n/index.d.ts +2 -0
  166. package/build/cjs/editor/components/NotFoundBlock/i18n/index.js +8 -0
  167. package/build/cjs/editor/components/NotFoundBlock/i18n/ru.json +3 -0
  168. package/build/cjs/editor/components/PagePropsForm/PagePropsForm.d.ts +10 -0
  169. package/build/cjs/editor/components/PagePropsForm/PagePropsForm.js +17 -0
  170. package/build/cjs/editor/components/YamlEditor/YamlEditor.css +12 -0
  171. package/build/cjs/editor/components/YamlEditor/YamlEditor.d.ts +6 -0
  172. package/build/cjs/editor/components/YamlEditor/YamlEditor.js +34 -0
  173. package/build/cjs/editor/containers/Editor/Editor.d.ts +2 -0
  174. package/build/cjs/editor/containers/Editor/Editor.js +67 -0
  175. package/build/cjs/editor/containers/Form/Form.css +115 -0
  176. package/build/cjs/editor/containers/Form/Form.d.ts +11 -0
  177. package/build/cjs/editor/containers/Form/Form.js +54 -0
  178. package/build/cjs/editor/containers/Form/dynamic-form-custom.css +0 -0
  179. package/build/cjs/editor/context.d.ts +9 -0
  180. package/build/cjs/editor/context.js +6 -0
  181. package/build/cjs/editor/data/previews/default-preview.js +1 -1
  182. package/build/cjs/editor/data/previews/header-block.js +5 -5
  183. package/build/cjs/editor/data/templates/banner-block.json +25 -0
  184. package/build/cjs/editor/data/templates/card-layout-block.json +39 -0
  185. package/build/cjs/editor/data/templates/companies-block.json +20 -0
  186. package/build/cjs/editor/data/templates/content-layout-block.json +56 -0
  187. package/build/cjs/editor/data/templates/extended-features-block.json +56 -0
  188. package/build/cjs/editor/data/templates/filter-block.json +62 -0
  189. package/build/cjs/editor/data/templates/header-block.json +19 -0
  190. package/build/cjs/editor/data/templates/header-slider-block.json +69 -0
  191. package/build/cjs/editor/data/templates/icons-block.json +32 -0
  192. package/build/cjs/editor/data/templates/info-block.json +40 -0
  193. package/build/cjs/editor/data/templates/link-table-block.json +10 -0
  194. package/build/cjs/editor/data/templates/map-block.json +48 -0
  195. package/build/cjs/editor/data/templates/media-block.json +15 -0
  196. package/build/cjs/editor/data/templates/preview-block.json +38 -0
  197. package/build/cjs/editor/data/templates/promo-features-block.json +52 -0
  198. package/build/cjs/editor/data/templates/questions-block.json +105 -0
  199. package/build/cjs/editor/data/templates/security-block.json +36 -0
  200. package/build/cjs/editor/data/templates/share-block.json +6 -0
  201. package/build/cjs/editor/data/templates/simple-block.json +7 -0
  202. package/build/cjs/editor/data/templates/slider-block.json +46 -0
  203. package/build/cjs/editor/data/templates/table-block.json +18 -0
  204. package/build/cjs/editor/data/templates/tabs-block.json +90 -0
  205. package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +27 -0
  206. package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +19 -0
  207. package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +72 -0
  208. package/build/cjs/editor/dynamic-forms-custom/config.d.ts +2 -0
  209. package/build/cjs/editor/dynamic-forms-custom/config.js +13 -0
  210. package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +12 -0
  211. package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.js +75 -0
  212. package/build/cjs/editor/dynamic-forms-custom/parser/detect.d.ts +9 -0
  213. package/build/cjs/editor/dynamic-forms-custom/parser/detect.js +36 -0
  214. package/build/cjs/editor/dynamic-forms-custom/parser/index.d.ts +28 -0
  215. package/build/cjs/editor/dynamic-forms-custom/parser/index.js +187 -0
  216. package/build/cjs/editor/dynamic-forms-custom/parser/types.d.ts +28 -0
  217. package/build/cjs/editor/dynamic-forms-custom/parser/types.js +2 -0
  218. package/build/cjs/editor/dynamic-forms-custom/parser/views.d.ts +37 -0
  219. package/build/cjs/editor/dynamic-forms-custom/parser/views.js +46 -0
  220. package/build/cjs/editor/hooks/useFormSpec.d.ts +2 -0
  221. package/build/cjs/editor/hooks/useFormSpec.js +13 -0
  222. package/build/cjs/editor/hooks/usePreviousValue.d.ts +1 -0
  223. package/build/cjs/editor/hooks/usePreviousValue.js +11 -0
  224. package/build/cjs/editor/icons/Tablet.d.ts +2 -0
  225. package/build/cjs/editor/icons/Tablet.js +9 -0
  226. package/build/cjs/editor/index.d.ts +1 -1
  227. package/build/cjs/editor/index.js +1 -1
  228. package/build/cjs/editor/store/index.d.ts +12 -11
  229. package/build/cjs/editor/store/index.js +70 -15
  230. package/build/cjs/editor/store/reducer.d.ts +30 -9
  231. package/build/cjs/editor/store/reducer.js +20 -31
  232. package/build/cjs/editor/store/utils.d.ts +6 -5
  233. package/build/cjs/editor/store/utils.js +6 -2
  234. package/build/cjs/editor/styles/root.css +7 -0
  235. package/build/cjs/editor/types/index.d.ts +30 -12
  236. package/build/cjs/editor/types/index.js +8 -0
  237. package/build/cjs/editor/utils/index.d.ts +6 -3
  238. package/build/cjs/editor/utils/index.js +9 -4
  239. package/build/cjs/editor/widget/constants.d.ts +4 -0
  240. package/build/cjs/editor/widget/constants.js +8 -0
  241. package/build/cjs/editor/widget/index.d.ts +21 -0
  242. package/build/cjs/editor/widget/index.js +76 -0
  243. package/build/cjs/editor/widget/utils.d.ts +1 -0
  244. package/build/cjs/editor/widget/utils.js +19 -0
  245. package/build/cjs/grid/Col/Col.d.ts +3 -4
  246. package/build/cjs/grid/Col/Col.js +2 -2
  247. package/build/cjs/grid/Grid/Grid.css +1 -1
  248. package/build/cjs/hooks/useHeightCalculator.js +1 -1
  249. package/build/cjs/models/common.d.ts +6 -1
  250. package/build/cjs/models/common.js +6 -1
  251. package/build/cjs/models/constructor-items/blocks.d.ts +17 -13
  252. package/build/cjs/models/constructor-items/common.d.ts +3 -5
  253. package/build/cjs/models/constructor.d.ts +4 -4
  254. package/build/cjs/models/customization.d.ts +5 -7
  255. package/build/cjs/models/navigation.d.ts +4 -2
  256. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.css +92 -0
  257. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.d.ts +4 -0
  258. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js +21 -0
  259. package/build/cjs/navigation/components/Logo/Logo.css +3 -3
  260. package/build/cjs/navigation/components/Logo/Logo.js +3 -3
  261. package/build/cjs/navigation/components/MobileMenuButton/MobileMenuButton.css +7 -0
  262. package/build/cjs/navigation/components/MobileMenuButton/MobileMenuButton.d.ts +3 -0
  263. package/build/cjs/navigation/components/MobileMenuButton/MobileMenuButton.js +15 -0
  264. package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.css +17 -12
  265. package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -10
  266. package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.js +11 -31
  267. package/build/cjs/navigation/components/Navigation/Navigation.css +8 -13
  268. package/build/cjs/navigation/components/Navigation/Navigation.d.ts +4 -7
  269. package/build/cjs/navigation/components/Navigation/Navigation.js +37 -15
  270. package/build/cjs/navigation/components/NavigationItem/NavigationItem.css +28 -0
  271. package/build/cjs/navigation/components/NavigationItem/NavigationItem.d.ts +3 -9
  272. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +15 -6
  273. package/build/cjs/navigation/components/NavigationItem/components/GithubButton/GithubButton.d.ts +1 -1
  274. package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.d.ts +1 -1
  275. package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.css +1 -1
  276. package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.d.ts +5 -4
  277. package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js +12 -8
  278. package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.css +2 -2
  279. package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.d.ts +1 -1
  280. package/build/cjs/navigation/components/NavigationList/NavigationList.d.ts +3 -0
  281. package/build/cjs/navigation/components/NavigationList/NavigationList.js +11 -0
  282. package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.d.ts +4 -13
  283. package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.js +6 -13
  284. package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.css +10 -9
  285. package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.d.ts +1 -8
  286. package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js +6 -6
  287. package/build/cjs/navigation/components/SocialIcon/SocialIcon.css +3 -3
  288. package/build/cjs/navigation/containers/Layout/Layout.js +2 -2
  289. package/build/cjs/navigation/models.d.ts +63 -0
  290. package/build/cjs/navigation/{constants.js → models.js} +7 -1
  291. package/build/cjs/navigation/schema.d.ts +1 -0
  292. package/build/cjs/navigation/schema.js +1 -1
  293. package/build/cjs/navigation/utils.d.ts +11 -1
  294. package/build/cjs/navigation/utils.js +19 -1
  295. package/build/cjs/schema/constants.d.ts +941 -0
  296. package/build/cjs/schema/constants.js +42 -0
  297. package/build/cjs/schema/index.d.ts +9 -228
  298. package/build/cjs/schema/index.js +8 -46
  299. package/build/cjs/schema/validators/common.d.ts +158 -30
  300. package/build/cjs/schema/validators/common.js +57 -19
  301. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.css +4 -4
  302. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +3 -3
  303. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +26 -6
  304. package/build/cjs/sub-blocks/BannerCard/BannerCard.css +16 -16
  305. package/build/cjs/sub-blocks/BannerCard/BannerCard.js +3 -3
  306. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +22 -4
  307. package/build/cjs/sub-blocks/Content/Content.css +22 -22
  308. package/build/cjs/sub-blocks/Content/Content.js +3 -1
  309. package/build/cjs/sub-blocks/Content/ContentList/ContentList.css +48 -0
  310. package/build/cjs/sub-blocks/Content/ContentList/ContentList.d.ts +7 -0
  311. package/build/cjs/sub-blocks/Content/ContentList/ContentList.js +25 -0
  312. package/build/cjs/sub-blocks/Content/schema.d.ts +74 -6
  313. package/build/cjs/sub-blocks/Content/schema.js +27 -2
  314. package/build/cjs/sub-blocks/Divider/Divider.css +1 -1
  315. package/build/cjs/sub-blocks/Divider/schema.d.ts +3 -1
  316. package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +39 -39
  317. package/build/cjs/sub-blocks/HubspotForm/index.js +2 -2
  318. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +1 -1
  319. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +115 -10
  320. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +100 -6
  321. package/build/cjs/sub-blocks/MediaCard/schema.js +1 -1
  322. package/build/cjs/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.css +2 -2
  323. package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.css +17 -29
  324. package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +18 -1
  325. package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.css +7 -7
  326. package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.css +5 -5
  327. package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +4 -1
  328. package/build/cjs/sub-blocks/PriceDetailed/schema.js +5 -1
  329. package/build/cjs/sub-blocks/Quote/Quote.css +10 -10
  330. package/build/cjs/sub-blocks/Quote/Quote.js +2 -2
  331. package/build/cjs/sub-blocks/Quote/schema.d.ts +9 -4
  332. package/build/cjs/sub-blocks/Quote/schema.js +1 -2
  333. package/build/cjs/text-transform/config.js +19 -1
  334. package/build/cjs/text-transform/filter.d.ts +20 -0
  335. package/build/cjs/text-transform/filter.js +61 -0
  336. package/build/cjs/text-transform/index.d.ts +1 -0
  337. package/build/cjs/text-transform/index.js +1 -0
  338. package/build/cjs/text-transform/transformers.d.ts +2 -0
  339. package/build/cjs/text-transform/transformers.js +3 -2
  340. package/build/cjs/text-transform/utils.js +6 -1
  341. package/build/cjs/utils/blocks.d.ts +4 -5
  342. package/build/cjs/utils/blocks.js +43 -3
  343. package/build/cjs/utils/imageCompress.js +1 -1
  344. package/build/cjs/utils/theme.d.ts +1 -1
  345. package/build/esm/blocks/Banner/schema.d.ts +72 -24
  346. package/build/esm/blocks/CardLayout/schema.d.ts +16 -6
  347. package/build/esm/blocks/Companies/Companies.css +5 -5
  348. package/build/esm/blocks/Companies/Companies.js +3 -3
  349. package/build/esm/blocks/Companies/schema.d.ts +8 -3
  350. package/build/esm/blocks/ContentLayout/ContentLayout.css +4 -7
  351. package/build/esm/blocks/ContentLayout/ContentLayout.js +1 -2
  352. package/build/esm/blocks/ContentLayout/schema.d.ts +112 -59
  353. package/build/esm/blocks/ContentLayout/schema.js +23 -18
  354. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +16 -16
  355. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -3
  356. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +37 -6
  357. package/build/esm/blocks/ExtendedFeatures/schema.js +3 -4
  358. package/build/esm/blocks/FilterBlock/schema.d.ts +19 -7
  359. package/build/esm/blocks/FilterBlock/schema.js +13 -2
  360. package/build/esm/blocks/Header/Header.css +28 -25
  361. package/build/esm/blocks/Header/Header.js +6 -7
  362. package/build/esm/blocks/Header/schema.d.ts +329 -37
  363. package/build/esm/blocks/Header/schema.js +1 -0
  364. package/build/esm/blocks/HeaderSlider/schema.d.ts +129 -54
  365. package/build/esm/blocks/HeaderSlider/schema.js +2 -1
  366. package/build/esm/blocks/Icons/Icons.css +2 -2
  367. package/build/esm/blocks/Icons/schema.d.ts +9 -3
  368. package/build/esm/blocks/Icons/schema.js +2 -1
  369. package/build/esm/blocks/Info/Info.css +1 -1
  370. package/build/esm/blocks/Info/Info.js +3 -3
  371. package/build/esm/blocks/Info/schema.d.ts +44 -9
  372. package/build/esm/blocks/Map/schema.d.ts +31 -7
  373. package/build/esm/blocks/Media/Media.js +3 -3
  374. package/build/esm/blocks/Media/schema.d.ts +346 -112
  375. package/build/esm/blocks/Media/schema.js +2 -2
  376. package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +13 -13
  377. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +103 -9
  378. package/build/esm/blocks/PromoFeaturesBlock/schema.js +1 -0
  379. package/build/esm/blocks/Questions/Questions.css +12 -12
  380. package/build/esm/blocks/Questions/schema.d.ts +21 -4
  381. package/build/esm/blocks/Share/Share.css +14 -12
  382. package/build/esm/blocks/Share/schema.d.ts +3 -1
  383. package/build/esm/blocks/Slider/Arrow/Arrow.css +4 -4
  384. package/build/esm/blocks/Slider/Arrow/Arrow.js +1 -1
  385. package/build/esm/blocks/Slider/Slider.css +12 -12
  386. package/build/esm/blocks/Slider/Slider.js +4 -4
  387. package/build/esm/blocks/Slider/schema.d.ts +16 -19
  388. package/build/esm/blocks/Slider/schema.js +4 -5
  389. package/build/esm/blocks/Slider/utils.d.ts +2 -2
  390. package/build/esm/blocks/Slider/utils.js +2 -1
  391. package/build/esm/blocks/Table/Table.css +5 -5
  392. package/build/esm/blocks/Table/schema.d.ts +11 -4
  393. package/build/esm/blocks/Table/schema.js +12 -2
  394. package/build/esm/blocks/Tabs/Tabs.css +6 -6
  395. package/build/esm/blocks/Tabs/Tabs.d.ts +1 -1
  396. package/build/esm/blocks/Tabs/Tabs.js +5 -5
  397. package/build/esm/blocks/Tabs/schema.d.ts +142 -18
  398. package/build/esm/blocks/Tabs/schema.js +5 -2
  399. package/build/esm/components/Anchor/Anchor.d.ts +2 -3
  400. package/build/esm/components/AnimateBlock/AnimateBlock.d.ts +2 -3
  401. package/build/esm/components/Author/Author.css +8 -8
  402. package/build/esm/components/Author/Author.js +2 -2
  403. package/build/esm/components/Author/schema.d.ts +3 -1
  404. package/build/esm/components/BlockBase/BlockBase.css +4 -1
  405. package/build/esm/components/BlockBase/BlockBase.d.ts +3 -2
  406. package/build/esm/components/BlockBase/BlockBase.js +3 -5
  407. package/build/esm/components/Button/Button.css +4 -0
  408. package/build/esm/components/Button/Button.d.ts +2 -3
  409. package/build/esm/components/Button/Button.js +4 -3
  410. package/build/esm/components/ButtonTabs/ButtonTabs.css +4 -0
  411. package/build/esm/components/ButtonTabs/ButtonTabs.d.ts +2 -3
  412. package/build/esm/components/CardBase/CardBase.css +6 -6
  413. package/build/esm/components/Control/Control.css +9 -9
  414. package/build/esm/components/ErrorWrapper/ErrorWrapper.css +3 -3
  415. package/build/esm/components/FileLink/FileLink.css +16 -56
  416. package/build/esm/components/FileLink/FileLink.js +18 -1
  417. package/build/esm/components/FullWidthBackground/FullWidthBackground.css +1 -1
  418. package/build/esm/components/FullscreenImage/FullscreenImage.css +3 -3
  419. package/build/esm/components/FullscreenMedia/FullscreenMedia.css +3 -3
  420. package/build/esm/components/HTML/HTML.js +2 -1
  421. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +11 -11
  422. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
  423. package/build/esm/components/Image/Image.d.ts +2 -3
  424. package/build/esm/components/Image/schema.d.ts +2 -1
  425. package/build/esm/components/Image/schema.js +9 -8
  426. package/build/esm/components/Link/Link.css +13 -13
  427. package/build/esm/components/Media/Image/Image.js +4 -3
  428. package/build/esm/components/Media/Media.js +1 -1
  429. package/build/esm/components/Media/Video/Video.js +1 -0
  430. package/build/esm/components/MediaBase/MediaBaseContent.js +2 -2
  431. package/build/esm/components/MetaInfo/MetaInfo.css +2 -2
  432. package/build/esm/components/MetaInfo/MetaInfo.js +1 -1
  433. package/build/esm/components/OverflowScroller/OverflowScroller.css +1 -1
  434. package/build/esm/components/ReactPlayer/CustomBarControls.css +1 -1
  435. package/build/esm/components/ReactPlayer/ReactPlayer.css +2 -2
  436. package/build/esm/components/Table/Table.css +8 -8
  437. package/build/esm/components/Title/Title.css +4 -4
  438. package/build/esm/components/Title/TitleItem.css +19 -19
  439. package/build/esm/components/Title/TitleItem.d.ts +2 -3
  440. package/build/esm/components/Title/TitleItem.js +2 -2
  441. package/build/esm/components/UnpublishedLabel/UnpublishedLabel.css +5 -5
  442. package/build/esm/components/VideoBlock/VideoBlock.css +2 -2
  443. package/build/esm/components/VideoBlock/VideoBlock.d.ts +2 -1
  444. package/build/esm/components/VideoBlock/VideoBlock.js +6 -2
  445. package/build/esm/components/constants.d.ts +3 -1
  446. package/build/esm/components/constants.js +3 -1
  447. package/build/esm/constructor-items.d.ts +1 -1
  448. package/build/esm/containers/Loadable/Loadable.d.ts +2 -2
  449. package/build/esm/containers/PageConstructor/PageConstructor.css +50 -30
  450. package/build/esm/containers/PageConstructor/PageConstructor.js +7 -4
  451. package/build/esm/containers/PageConstructor/Provider.d.ts +2 -3
  452. package/build/esm/containers/PageConstructor/Provider.js +2 -2
  453. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts +3 -3
  454. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +8 -4
  455. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.d.ts +3 -4
  456. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -4
  457. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +3 -3
  458. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +5 -3
  459. package/build/esm/containers/PageConstructor/components/index.d.ts +2 -0
  460. package/build/esm/containers/PageConstructor/components/index.js +1 -0
  461. package/build/esm/containers/PageConstructor/index.d.ts +1 -0
  462. package/build/esm/containers/PageConstructor/index.js +1 -0
  463. package/build/esm/context/theme/ThemeContext.d.ts +2 -3
  464. package/build/esm/context/theme/ThemeContext.js +0 -1
  465. package/build/esm/context/theme/index.d.ts +0 -1
  466. package/build/esm/context/theme/index.js +0 -1
  467. package/build/esm/context/theme/useTheme.d.ts +1 -1
  468. package/build/esm/context/theme/useTheme.js +2 -2
  469. package/build/esm/context/theme/withTheme.js +1 -1
  470. package/build/esm/customization/BlockDecoration.d.ts +1 -1
  471. package/build/esm/customization/BlockDecoration.js +9 -14
  472. package/build/esm/editor/{Components → components}/AddBlock/AddBlock.css +7 -6
  473. package/build/esm/editor/components/AddBlock/AddBlock.d.ts +8 -0
  474. package/build/esm/editor/{Components → components}/AddBlock/AddBlock.js +3 -3
  475. package/build/esm/editor/components/BlockForm/BlockForm.d.ts +12 -0
  476. package/build/esm/editor/components/BlockForm/BlockForm.js +25 -0
  477. package/build/esm/editor/components/ControlPanel/ControlPanel.css +34 -0
  478. package/build/esm/editor/components/ControlPanel/ControlPanel.d.ts +11 -0
  479. package/build/esm/editor/components/ControlPanel/ControlPanel.js +33 -0
  480. package/build/esm/editor/components/ControlPanel/i18n/en.json +3 -0
  481. package/build/esm/editor/components/ControlPanel/i18n/index.d.ts +2 -0
  482. package/build/esm/editor/components/ControlPanel/i18n/index.js +5 -0
  483. package/build/esm/editor/components/ControlPanel/i18n/ru.json +3 -0
  484. package/build/esm/editor/components/DeviceEmulation/DeviceEmulation.d.ts +7 -0
  485. package/build/esm/editor/components/DeviceEmulation/DeviceEmulation.js +7 -0
  486. package/build/esm/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.css +33 -0
  487. package/build/esm/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.d.ts +9 -0
  488. package/build/esm/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.js +40 -0
  489. package/build/esm/editor/components/DeviceEmulation/utils.d.ts +4 -0
  490. package/build/esm/editor/components/DeviceEmulation/utils.js +3 -0
  491. package/build/{cjs/editor/Components → esm/editor/components}/EditBlock/EditBlock.css +22 -14
  492. package/build/esm/editor/components/EditBlock/EditBlock.d.ts +14 -0
  493. package/build/esm/editor/components/EditBlock/EditBlock.js +45 -0
  494. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.css +27 -0
  495. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.d.ts +14 -0
  496. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +31 -0
  497. package/build/esm/editor/components/ErrorBoundary/i18n/en.json +4 -0
  498. package/build/esm/editor/components/ErrorBoundary/i18n/index.d.ts +2 -0
  499. package/build/esm/editor/components/ErrorBoundary/i18n/index.js +5 -0
  500. package/build/esm/editor/components/ErrorBoundary/i18n/ru.json +4 -0
  501. package/build/esm/editor/components/Layout/Layout.css +44 -0
  502. package/build/esm/editor/components/Layout/Layout.d.ts +20 -0
  503. package/build/esm/editor/components/Layout/Layout.js +36 -0
  504. package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.css +21 -0
  505. package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.d.ts +3 -0
  506. package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.js +8 -0
  507. package/build/esm/editor/components/NotFoundBlock/i18n/en.json +3 -0
  508. package/build/esm/editor/components/NotFoundBlock/i18n/index.d.ts +2 -0
  509. package/build/esm/editor/components/NotFoundBlock/i18n/index.js +5 -0
  510. package/build/esm/editor/components/NotFoundBlock/i18n/ru.json +3 -0
  511. package/build/esm/editor/components/PagePropsForm/PagePropsForm.d.ts +10 -0
  512. package/build/esm/editor/components/PagePropsForm/PagePropsForm.js +13 -0
  513. package/build/esm/editor/components/YamlEditor/YamlEditor.css +12 -0
  514. package/build/esm/editor/components/YamlEditor/YamlEditor.d.ts +7 -0
  515. package/build/esm/editor/components/YamlEditor/YamlEditor.js +30 -0
  516. package/build/esm/editor/containers/Editor/Editor.d.ts +2 -0
  517. package/build/esm/editor/containers/Editor/Editor.js +63 -0
  518. package/build/esm/editor/containers/Form/Form.css +115 -0
  519. package/build/esm/editor/containers/Form/Form.d.ts +12 -0
  520. package/build/esm/editor/containers/Form/Form.js +52 -0
  521. package/build/esm/editor/containers/Form/dynamic-form-custom.css +0 -0
  522. package/build/esm/editor/context.d.ts +9 -0
  523. package/build/esm/editor/context.js +2 -0
  524. package/build/esm/editor/data/previews/default-preview.js +1 -1
  525. package/build/esm/editor/data/previews/header-block.js +5 -5
  526. package/build/esm/editor/data/templates/banner-block.json +25 -0
  527. package/build/esm/editor/data/templates/card-layout-block.json +39 -0
  528. package/build/esm/editor/data/templates/companies-block.json +20 -0
  529. package/build/esm/editor/data/templates/content-layout-block.json +56 -0
  530. package/build/esm/editor/data/templates/extended-features-block.json +56 -0
  531. package/build/esm/editor/data/templates/filter-block.json +62 -0
  532. package/build/esm/editor/data/templates/header-block.json +19 -0
  533. package/build/esm/editor/data/templates/header-slider-block.json +69 -0
  534. package/build/esm/editor/data/templates/icons-block.json +32 -0
  535. package/build/esm/editor/data/templates/info-block.json +40 -0
  536. package/build/esm/editor/data/templates/link-table-block.json +10 -0
  537. package/build/esm/editor/data/templates/map-block.json +48 -0
  538. package/build/esm/editor/data/templates/media-block.json +15 -0
  539. package/build/esm/editor/data/templates/preview-block.json +38 -0
  540. package/build/esm/editor/data/templates/promo-features-block.json +52 -0
  541. package/build/esm/editor/data/templates/questions-block.json +105 -0
  542. package/build/esm/editor/data/templates/security-block.json +36 -0
  543. package/build/esm/editor/data/templates/share-block.json +6 -0
  544. package/build/esm/editor/data/templates/simple-block.json +7 -0
  545. package/build/esm/editor/data/templates/slider-block.json +46 -0
  546. package/build/esm/editor/data/templates/table-block.json +18 -0
  547. package/build/esm/editor/data/templates/tabs-block.json +90 -0
  548. package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +27 -0
  549. package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +20 -0
  550. package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +68 -0
  551. package/build/esm/editor/dynamic-forms-custom/config.d.ts +2 -0
  552. package/build/esm/editor/dynamic-forms-custom/config.js +9 -0
  553. package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +12 -0
  554. package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.js +69 -0
  555. package/build/esm/editor/dynamic-forms-custom/parser/detect.d.ts +9 -0
  556. package/build/esm/editor/dynamic-forms-custom/parser/detect.js +32 -0
  557. package/build/esm/editor/dynamic-forms-custom/parser/index.d.ts +28 -0
  558. package/build/esm/editor/dynamic-forms-custom/parser/index.js +185 -0
  559. package/build/esm/editor/dynamic-forms-custom/parser/types.d.ts +28 -0
  560. package/build/esm/editor/dynamic-forms-custom/parser/types.js +1 -0
  561. package/build/esm/editor/dynamic-forms-custom/parser/views.d.ts +37 -0
  562. package/build/esm/editor/dynamic-forms-custom/parser/views.js +39 -0
  563. package/build/esm/editor/hooks/useFormSpec.d.ts +2 -0
  564. package/build/esm/editor/hooks/useFormSpec.js +9 -0
  565. package/build/esm/editor/hooks/usePreviousValue.d.ts +1 -0
  566. package/build/esm/editor/hooks/usePreviousValue.js +8 -0
  567. package/build/esm/editor/icons/Tablet.d.ts +2 -0
  568. package/build/esm/editor/icons/Tablet.js +4 -0
  569. package/build/esm/editor/index.d.ts +1 -1
  570. package/build/esm/editor/index.js +1 -1
  571. package/build/esm/editor/store/index.d.ts +12 -11
  572. package/build/esm/editor/store/index.js +72 -17
  573. package/build/esm/editor/store/reducer.d.ts +30 -9
  574. package/build/esm/editor/store/reducer.js +18 -29
  575. package/build/esm/editor/store/utils.d.ts +6 -5
  576. package/build/esm/editor/store/utils.js +3 -1
  577. package/build/esm/editor/styles/root.css +7 -0
  578. package/build/esm/editor/types/index.d.ts +30 -12
  579. package/build/esm/editor/types/index.js +7 -1
  580. package/build/esm/editor/utils/index.d.ts +6 -3
  581. package/build/esm/editor/utils/index.js +6 -3
  582. package/build/esm/editor/widget/constants.d.ts +4 -0
  583. package/build/esm/editor/widget/constants.js +5 -0
  584. package/build/esm/editor/widget/index.d.ts +21 -0
  585. package/build/esm/editor/widget/index.js +71 -0
  586. package/build/esm/editor/widget/utils.d.ts +1 -0
  587. package/build/esm/editor/widget/utils.js +15 -0
  588. package/build/esm/grid/Col/Col.d.ts +3 -4
  589. package/build/esm/grid/Col/Col.js +2 -2
  590. package/build/esm/grid/Grid/Grid.css +1 -1
  591. package/build/esm/hooks/useHeightCalculator.js +1 -1
  592. package/build/esm/models/common.d.ts +6 -1
  593. package/build/esm/models/common.js +5 -0
  594. package/build/esm/models/constructor-items/blocks.d.ts +17 -13
  595. package/build/esm/models/constructor-items/common.d.ts +3 -5
  596. package/build/esm/models/constructor.d.ts +4 -4
  597. package/build/esm/models/customization.d.ts +5 -7
  598. package/build/esm/models/navigation.d.ts +4 -2
  599. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.css +92 -0
  600. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.d.ts +5 -0
  601. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js +19 -0
  602. package/build/esm/navigation/components/Logo/Logo.css +3 -3
  603. package/build/esm/navigation/components/Logo/Logo.js +3 -3
  604. package/build/esm/navigation/components/MobileMenuButton/MobileMenuButton.css +7 -0
  605. package/build/esm/navigation/components/MobileMenuButton/MobileMenuButton.d.ts +4 -0
  606. package/build/esm/navigation/components/MobileMenuButton/MobileMenuButton.js +11 -0
  607. package/build/esm/navigation/components/MobileNavigation/MobileNavigation.css +17 -12
  608. package/build/esm/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -10
  609. package/build/esm/navigation/components/MobileNavigation/MobileNavigation.js +13 -32
  610. package/build/esm/navigation/components/Navigation/Navigation.css +8 -13
  611. package/build/esm/navigation/components/Navigation/Navigation.d.ts +4 -7
  612. package/build/esm/navigation/components/Navigation/Navigation.js +35 -15
  613. package/build/esm/navigation/components/NavigationItem/NavigationItem.css +28 -0
  614. package/build/esm/navigation/components/NavigationItem/NavigationItem.d.ts +4 -9
  615. package/build/esm/navigation/components/NavigationItem/NavigationItem.js +16 -6
  616. package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.d.ts +1 -1
  617. package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.d.ts +1 -1
  618. package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.css +1 -1
  619. package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.d.ts +5 -4
  620. package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js +11 -8
  621. package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.css +2 -2
  622. package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.d.ts +1 -1
  623. package/build/esm/navigation/components/NavigationList/NavigationList.d.ts +3 -0
  624. package/build/esm/navigation/components/NavigationList/NavigationList.js +7 -0
  625. package/build/esm/navigation/components/NavigationListItem/NavigationListItem.d.ts +4 -14
  626. package/build/esm/navigation/components/NavigationListItem/NavigationListItem.js +5 -10
  627. package/build/esm/navigation/components/NavigationPopup/NavigationPopup.css +10 -9
  628. package/build/esm/navigation/components/NavigationPopup/NavigationPopup.d.ts +1 -8
  629. package/build/esm/navigation/components/NavigationPopup/NavigationPopup.js +6 -6
  630. package/build/esm/navigation/components/SocialIcon/SocialIcon.css +3 -3
  631. package/build/esm/navigation/containers/Layout/Layout.js +2 -2
  632. package/build/esm/navigation/models.d.ts +63 -0
  633. package/build/esm/navigation/{constants.js → models.js} +6 -0
  634. package/build/esm/navigation/schema.d.ts +1 -0
  635. package/build/esm/navigation/schema.js +2 -2
  636. package/build/esm/navigation/utils.d.ts +11 -1
  637. package/build/esm/navigation/utils.js +17 -0
  638. package/build/esm/schema/constants.d.ts +941 -0
  639. package/build/esm/schema/constants.js +39 -0
  640. package/build/esm/schema/index.d.ts +9 -228
  641. package/build/esm/schema/index.js +4 -42
  642. package/build/esm/schema/validators/common.d.ts +158 -30
  643. package/build/esm/schema/validators/common.js +57 -19
  644. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.css +4 -4
  645. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +3 -3
  646. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +26 -6
  647. package/build/esm/sub-blocks/BannerCard/BannerCard.css +16 -16
  648. package/build/esm/sub-blocks/BannerCard/BannerCard.js +3 -3
  649. package/build/esm/sub-blocks/BasicCard/schema.d.ts +22 -4
  650. package/build/esm/sub-blocks/Content/Content.css +22 -22
  651. package/build/esm/sub-blocks/Content/Content.js +3 -1
  652. package/build/esm/sub-blocks/Content/ContentList/ContentList.css +48 -0
  653. package/build/esm/sub-blocks/Content/ContentList/ContentList.d.ts +8 -0
  654. package/build/esm/sub-blocks/Content/ContentList/ContentList.js +23 -0
  655. package/build/esm/sub-blocks/Content/schema.d.ts +74 -6
  656. package/build/esm/sub-blocks/Content/schema.js +27 -2
  657. package/build/esm/sub-blocks/Divider/Divider.css +1 -1
  658. package/build/esm/sub-blocks/Divider/schema.d.ts +3 -1
  659. package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +39 -39
  660. package/build/esm/sub-blocks/HubspotForm/index.js +2 -2
  661. package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +1 -1
  662. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +115 -10
  663. package/build/esm/sub-blocks/MediaCard/schema.d.ts +100 -6
  664. package/build/esm/sub-blocks/MediaCard/schema.js +2 -2
  665. package/build/esm/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.css +2 -2
  666. package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.css +17 -29
  667. package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +18 -1
  668. package/build/esm/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.css +7 -7
  669. package/build/esm/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.css +5 -5
  670. package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +4 -1
  671. package/build/esm/sub-blocks/PriceDetailed/schema.js +5 -1
  672. package/build/esm/sub-blocks/Quote/Quote.css +10 -10
  673. package/build/esm/sub-blocks/Quote/Quote.js +3 -3
  674. package/build/esm/sub-blocks/Quote/schema.d.ts +9 -4
  675. package/build/esm/sub-blocks/Quote/schema.js +2 -3
  676. package/build/esm/text-transform/config.js +19 -1
  677. package/build/esm/text-transform/filter.d.ts +20 -0
  678. package/build/esm/text-transform/filter.js +56 -0
  679. package/build/esm/text-transform/index.d.ts +1 -0
  680. package/build/esm/text-transform/index.js +1 -0
  681. package/build/esm/text-transform/transformers.d.ts +2 -0
  682. package/build/esm/text-transform/transformers.js +3 -2
  683. package/build/esm/text-transform/utils.js +6 -1
  684. package/build/esm/utils/blocks.d.ts +4 -5
  685. package/build/esm/utils/blocks.js +41 -1
  686. package/build/esm/utils/imageCompress.js +1 -1
  687. package/build/esm/utils/theme.d.ts +1 -1
  688. package/package.json +87 -24
  689. package/server/components/constants.d.ts +3 -1
  690. package/server/components/constants.js +4 -2
  691. package/server/models/common.d.ts +6 -1
  692. package/server/models/common.js +6 -1
  693. package/server/models/constructor-items/blocks.d.ts +17 -13
  694. package/server/models/constructor-items/common.d.ts +3 -5
  695. package/server/models/constructor.d.ts +4 -4
  696. package/server/models/customization.d.ts +5 -7
  697. package/server/models/navigation.d.ts +4 -2
  698. package/server/text-transform/config.js +19 -1
  699. package/server/text-transform/filter.d.ts +20 -0
  700. package/server/text-transform/filter.js +63 -0
  701. package/server/text-transform/index.d.ts +1 -0
  702. package/server/text-transform/index.js +1 -0
  703. package/server/text-transform/transformers.d.ts +2 -0
  704. package/server/text-transform/transformers.js +3 -2
  705. package/server/text-transform/utils.js +6 -1
  706. package/server/utils/blocks.d.ts +4 -5
  707. package/server/utils/blocks.js +43 -3
  708. package/server/utils/theme.d.ts +1 -1
  709. package/styles/colors/dark.scss +6 -0
  710. package/styles/colors/light.scss +6 -0
  711. package/styles/colors/social.scss +10 -0
  712. package/styles/mixins.scss +27 -29
  713. package/styles/root.scss +28 -14
  714. package/styles/storybook/common.scss +6 -6
  715. package/styles/storybook/palette.scss +6 -6
  716. package/styles/storybook/typography.scss +46 -46
  717. package/styles/styles.css +15 -15
  718. package/styles/variables.scss +0 -8
  719. package/styles/yfm.scss +12 -12
  720. package/widget/index.js +1 -0
  721. package/CHANGELOG.md +0 -1266
  722. package/build/cjs/context/theme/ThemeProvider.d.ts +0 -22
  723. package/build/cjs/context/theme/ThemeProvider.js +0 -49
  724. package/build/cjs/context/theme/ThemeValueContext.d.ts +0 -7
  725. package/build/cjs/context/theme/ThemeValueContext.js +0 -9
  726. package/build/cjs/context/theme/useThemeValue.d.ts +0 -2
  727. package/build/cjs/context/theme/useThemeValue.js +0 -11
  728. package/build/cjs/editor/Components/AddBlock/AddBlock.d.ts +0 -7
  729. package/build/cjs/editor/Components/EditBlock/EditBlock.d.ts +0 -4
  730. package/build/cjs/editor/Components/EditBlock/EditBlock.js +0 -32
  731. package/build/cjs/editor/Containers/Editor.d.ts +0 -2
  732. package/build/cjs/editor/Containers/Editor.js +0 -24
  733. package/build/cjs/navigation/components/Header/Header.css +0 -98
  734. package/build/cjs/navigation/components/Header/Header.d.ts +0 -8
  735. package/build/cjs/navigation/components/Header/Header.js +0 -68
  736. package/build/cjs/navigation/components/NavigationDropdownItem/NavigationDropdownItem.d.ts +0 -11
  737. package/build/cjs/navigation/components/NavigationDropdownItem/NavigationDropdownItem.js +0 -15
  738. package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.css +0 -27
  739. package/build/cjs/navigation/constants.d.ts +0 -6
  740. package/build/esm/context/theme/ThemeProvider.d.ts +0 -22
  741. package/build/esm/context/theme/ThemeProvider.js +0 -44
  742. package/build/esm/context/theme/ThemeValueContext.d.ts +0 -7
  743. package/build/esm/context/theme/ThemeValueContext.js +0 -5
  744. package/build/esm/context/theme/useThemeValue.d.ts +0 -2
  745. package/build/esm/context/theme/useThemeValue.js +0 -6
  746. package/build/esm/editor/Components/AddBlock/AddBlock.d.ts +0 -8
  747. package/build/esm/editor/Components/EditBlock/EditBlock.d.ts +0 -5
  748. package/build/esm/editor/Components/EditBlock/EditBlock.js +0 -30
  749. package/build/esm/editor/Containers/Editor.d.ts +0 -2
  750. package/build/esm/editor/Containers/Editor.js +0 -20
  751. package/build/esm/navigation/components/Header/Header.css +0 -98
  752. package/build/esm/navigation/components/Header/Header.d.ts +0 -9
  753. package/build/esm/navigation/components/Header/Header.js +0 -64
  754. package/build/esm/navigation/components/NavigationDropdownItem/NavigationDropdownItem.d.ts +0 -11
  755. package/build/esm/navigation/components/NavigationDropdownItem/NavigationDropdownItem.js +0 -13
  756. package/build/esm/navigation/components/NavigationListItem/NavigationListItem.css +0 -27
  757. package/build/esm/navigation/constants.d.ts +0 -6
@@ -1,5 +1,5 @@
1
1
  import { omit } from 'lodash';
2
- import { AnimatableProps, BlockBaseProps, ButtonBlock, MediaProps, mediaDirection, } from '../../schema/validators/common';
2
+ import { AnimatableProps, BlockBaseProps, ButtonBlock, MediaProps, mediaDirection, withTheme, } from '../../schema/validators/common';
3
3
  import { ContentBase } from '../../sub-blocks/Content/schema';
4
4
  export const Media = {
5
5
  type: 'object',
@@ -28,6 +28,6 @@ export const MediaBlock = {
28
28
  'media-block': {
29
29
  additionalProperties: false,
30
30
  required: ['title', 'media'],
31
- properties: Object.assign(Object.assign({}, MediaBlockBaseProps), { media: Media }),
31
+ properties: Object.assign(Object.assign({}, MediaBlockBaseProps), { media: withTheme(Media) }),
32
32
  },
33
33
  };
@@ -5,10 +5,10 @@
5
5
  /* use this for style redefinitions to awoid problems with
6
6
  unpredictable css rules order in build */
7
7
  .pc-PromoFeaturesBlock__card-title {
8
- font-size: var(--yc-text-header-1-font-size);
9
- line-height: var(--yc-text-header-1-line-height);
8
+ font-size: var(--g-text-header-1-font-size);
9
+ line-height: var(--g-text-header-1-line-height);
10
10
  color: var(--pc-text-header-color);
11
- font-weight: var(--yc-text-accent-font-weight);
11
+ font-weight: var(--g-text-accent-font-weight);
12
12
  }
13
13
  .pc-PromoFeaturesBlock__card-container {
14
14
  display: flex;
@@ -23,7 +23,7 @@ unpredictable css rules order in build */
23
23
  background-color: inherit;
24
24
  }
25
25
  .pc-PromoFeaturesBlock__background_grey {
26
- background-color: var(--yc-color-base-misc);
26
+ background-color: var(--g-color-base-misc-light);
27
27
  }
28
28
  .pc-PromoFeaturesBlock_grey {
29
29
  padding: 64px 0;
@@ -44,8 +44,8 @@ unpredictable css rules order in build */
44
44
  margin-bottom: 8px;
45
45
  }
46
46
  .pc-PromoFeaturesBlock__card-text {
47
- font-size: var(--yc-text-body-2-font-size);
48
- line-height: var(--yc-text-body-2-line-height);
47
+ font-size: var(--g-text-body-2-font-size);
48
+ line-height: var(--g-text-body-2-line-height);
49
49
  }
50
50
  .pc-PromoFeaturesBlock__card-media {
51
51
  margin-top: 16px;
@@ -57,24 +57,24 @@ unpredictable css rules order in build */
57
57
  padding: 32px;
58
58
  }
59
59
  .pc-PromoFeaturesBlock__card_light {
60
- background-color: var(--yc-color-base-background);
60
+ background-color: var(--g-color-base-background);
61
61
  }
62
62
  .pc-PromoFeaturesBlock__card_default {
63
- background-color: var(--yc-color-base-misc);
63
+ background-color: var(--g-color-base-misc-light);
64
64
  }
65
65
  .pc-PromoFeaturesBlock__card_accent {
66
- color: var(--yc-color-text-light-primary);
67
- background-color: var(--yc-color-base-special);
66
+ color: var(--g-color-text-light-primary);
67
+ background-color: var(--g-color-base-brand);
68
68
  }
69
69
  .pc-PromoFeaturesBlock__card_accent .pc-PromoFeaturesBlock__card-title,
70
70
  .pc-PromoFeaturesBlock__card_accent .pc-PromoFeaturesBlock__card-text > .yfm * {
71
- color: var(--yc-color-text-light-primary);
71
+ color: var(--g-color-text-light-primary);
72
72
  }
73
73
  .pc-PromoFeaturesBlock__card_accent-light {
74
- background-color: var(--yc-color-base-selection);
74
+ background-color: var(--pc-color-base-copper);
75
75
  }
76
76
  .pc-PromoFeaturesBlock__card_primary {
77
- background-color: var(--yc-color-promo-base-gold);
77
+ background-color: var(--pc-color-base-gold);
78
78
  }
79
79
  @media (min-width: 769px) {
80
80
  .pc-PromoFeaturesBlock.pc-AnimateBlock .pc-PromoFeaturesBlock__card-container-column, .pc-AnimateBlock .pc-PromoFeaturesBlock .pc-PromoFeaturesBlock__card-container-column {
@@ -9,6 +9,7 @@ export declare const PromoFeaturesItem: {
9
9
  text: {
10
10
  type: string;
11
11
  contentType: string;
12
+ inputType: string;
12
13
  };
13
14
  theme: {
14
15
  enum: string[];
@@ -22,7 +23,8 @@ export declare const PromoFeaturesItem: {
22
23
  type: string;
23
24
  };
24
25
  image: {
25
- anyOf: ({
26
+ oneOf: ({
27
+ optionName: string;
26
28
  oneOf: ({
27
29
  type: string;
28
30
  properties: {
@@ -33,7 +35,10 @@ export declare const PromoFeaturesItem: {
33
35
  } | {
34
36
  type: string;
35
37
  pattern: string;
38
+ optionName: string;
36
39
  })[];
40
+ type?: undefined;
41
+ items?: undefined;
37
42
  } | {
38
43
  type: string;
39
44
  items: {
@@ -47,8 +52,10 @@ export declare const PromoFeaturesItem: {
47
52
  } | {
48
53
  type: string;
49
54
  pattern: string;
55
+ optionName: string;
50
56
  })[];
51
57
  };
58
+ optionName: string;
52
59
  })[];
53
60
  };
54
61
  video: {
@@ -63,7 +70,8 @@ export declare const PromoFeaturesItem: {
63
70
  };
64
71
  };
65
72
  loop: {
66
- anyOf: ({
73
+ oneOf: ({
74
+ optionName: string;
67
75
  type: string;
68
76
  additionalProperties: boolean;
69
77
  required: string[];
@@ -77,6 +85,7 @@ export declare const PromoFeaturesItem: {
77
85
  };
78
86
  } | {
79
87
  type: string;
88
+ optionName: string;
80
89
  })[];
81
90
  };
82
91
  type: {
@@ -86,13 +95,13 @@ export declare const PromoFeaturesItem: {
86
95
  muted: {
87
96
  type: string;
88
97
  };
89
- playing: {
98
+ autoplay: {
90
99
  type: string;
91
100
  };
92
101
  elapsedTime: {
93
102
  type: string;
94
103
  };
95
- playIcon: {
104
+ playButton: {
96
105
  type: string;
97
106
  additionalProperties: boolean;
98
107
  properties: {
@@ -130,6 +139,10 @@ export declare const PromoFeaturesItem: {
130
139
  };
131
140
  dataLens: {
132
141
  oneOf: ({
142
+ type: string;
143
+ optionName: string;
144
+ } | {
145
+ optionName: string;
133
146
  type: string;
134
147
  additionalProperties: boolean;
135
148
  required: string[];
@@ -142,13 +155,89 @@ export declare const PromoFeaturesItem: {
142
155
  enum: string[];
143
156
  };
144
157
  };
145
- } | {
146
- type: string;
147
158
  })[];
148
159
  };
149
160
  fullscreen: {
150
161
  type: string;
151
162
  };
163
+ analyticsEvents: {
164
+ anyOf: ({
165
+ type: string;
166
+ additionalProperties: {
167
+ type: string;
168
+ };
169
+ required: string[];
170
+ properties: {
171
+ name: {
172
+ type: string;
173
+ };
174
+ type: {
175
+ type: string;
176
+ };
177
+ counters: {
178
+ type: string;
179
+ additionalProperties: boolean;
180
+ required: never[];
181
+ properties: {
182
+ include: {
183
+ type: string;
184
+ items: {
185
+ type: string;
186
+ };
187
+ };
188
+ exclude: {
189
+ type: string;
190
+ items: {
191
+ type: string;
192
+ };
193
+ };
194
+ };
195
+ };
196
+ context: {
197
+ type: string;
198
+ };
199
+ };
200
+ } | {
201
+ type: string;
202
+ items: {
203
+ type: string;
204
+ additionalProperties: {
205
+ type: string;
206
+ };
207
+ required: string[];
208
+ properties: {
209
+ name: {
210
+ type: string;
211
+ };
212
+ type: {
213
+ type: string;
214
+ };
215
+ counters: {
216
+ type: string;
217
+ additionalProperties: boolean;
218
+ required: never[];
219
+ properties: {
220
+ include: {
221
+ type: string;
222
+ items: {
223
+ type: string;
224
+ };
225
+ };
226
+ exclude: {
227
+ type: string;
228
+ items: {
229
+ type: string;
230
+ };
231
+ };
232
+ };
233
+ };
234
+ context: {
235
+ type: string;
236
+ };
237
+ };
238
+ };
239
+ })[];
240
+ };
152
241
  };
153
242
  };
154
243
  };
@@ -174,6 +263,10 @@ export declare const PromoFeaturesBlock: {
174
263
  };
175
264
  title: {
176
265
  oneOf: ({
266
+ type: string;
267
+ optionName: string;
268
+ } | {
269
+ optionName: string;
177
270
  type: string;
178
271
  additionalProperties: boolean;
179
272
  required: string[];
@@ -193,13 +286,12 @@ export declare const PromoFeaturesBlock: {
193
286
  type: string;
194
287
  };
195
288
  };
196
- } | {
197
- type: string;
198
289
  })[];
199
290
  };
200
291
  description: {
201
292
  type: string;
202
293
  contentType: string;
294
+ inputType: string;
203
295
  };
204
296
  animated: {
205
297
  type: string;
@@ -229,7 +321,9 @@ export declare const PromoFeaturesBlock: {
229
321
  type: string;
230
322
  };
231
323
  type: {};
232
- when: {};
324
+ when: {
325
+ type: string;
326
+ };
233
327
  };
234
328
  };
235
329
  };
@@ -12,6 +12,7 @@ export const PromoFeaturesItem = {
12
12
  text: {
13
13
  type: 'string',
14
14
  contentType: 'yfm',
15
+ inputType: 'textarea',
15
16
  },
16
17
  theme: {
17
18
  enum: ['accent', 'accent-light', 'primary'],
@@ -12,23 +12,23 @@ unpredictable css rules order in build */
12
12
  }
13
13
  .pc-QuestionsBlock__item {
14
14
  padding-bottom: 32px;
15
- border-bottom: 1px solid var(--yc-color-line-generic);
15
+ border-bottom: 1px solid var(--g-color-line-generic);
16
16
  }
17
17
  .pc-QuestionsBlock__item + .pc-QuestionsBlock__item {
18
18
  padding-top: 32px;
19
19
  }
20
20
  .pc-QuestionsBlock__item-title {
21
- font-size: var(--yc-text-header-1-font-size);
22
- line-height: var(--yc-text-header-1-line-height);
21
+ font-size: var(--g-text-header-1-font-size);
22
+ line-height: var(--g-text-header-1-line-height);
23
23
  color: var(--pc-text-header-color);
24
- font-weight: var(--yc-text-accent-font-weight);
24
+ font-weight: var(--g-text-accent-font-weight);
25
25
  position: relative;
26
26
  padding-right: 24px;
27
27
  cursor: pointer;
28
28
  }
29
29
  .pc-QuestionsBlock__item-title a {
30
30
  outline: none;
31
- color: var(--yc-color-text-link);
31
+ color: var(--g-color-text-link);
32
32
  text-decoration: none;
33
33
  cursor: pointer;
34
34
  }
@@ -36,23 +36,23 @@ unpredictable css rules order in build */
36
36
  outline: 2px solid #ffdb4d;
37
37
  }
38
38
  .pc-QuestionsBlock__item-title a:hover, .pc-QuestionsBlock__item-title a:active {
39
- --pc-text-header-color: var(--yc-color-text-link-hover);
40
- color: var(--yc-color-text-link-hover);
39
+ --pc-text-header-color: var(--g-color-text-link-hover);
40
+ color: var(--g-color-text-link-hover);
41
41
  }
42
42
  .pc-QuestionsBlock__text {
43
- font-size: var(--yc-text-body-2-font-size);
44
- line-height: var(--yc-text-body-2-line-height);
43
+ font-size: var(--g-text-body-2-font-size);
44
+ line-height: var(--g-text-body-2-line-height);
45
45
  margin-top: 12px;
46
46
  }
47
47
  .pc-QuestionsBlock__arrow {
48
48
  position: absolute;
49
49
  right: 0;
50
50
  top: 0;
51
- color: var(--yc-color-text-info);
51
+ color: var(--g-color-text-primary);
52
52
  }
53
53
  .pc-QuestionsBlock__link {
54
- font-size: var(--yc-text-body-2-font-size);
55
- line-height: var(--yc-text-body-2-line-height);
54
+ font-size: var(--g-text-body-2-font-size);
55
+ line-height: var(--g-text-body-2-line-height);
56
56
  }
57
57
  @media (max-width: 769px) {
58
58
  .pc-QuestionsBlock__title {
@@ -16,6 +16,11 @@ export declare const QuestionsBlock: {
16
16
  };
17
17
  title: {
18
18
  oneOf: ({
19
+ type: string;
20
+ contentType: string;
21
+ optionName: string;
22
+ } | {
23
+ optionName: string;
19
24
  type: string;
20
25
  additionalProperties: boolean;
21
26
  required: string[];
@@ -35,14 +40,13 @@ export declare const QuestionsBlock: {
35
40
  type: string;
36
41
  };
37
42
  };
38
- } | {
39
- type: string;
40
- contentType: string;
43
+ contentType?: undefined;
41
44
  })[];
42
45
  };
43
46
  text: {
44
47
  type: string;
45
48
  contentType: string;
49
+ inputType: string;
46
50
  };
47
51
  additionalInfo: {
48
52
  type: string;
@@ -70,6 +74,17 @@ export declare const QuestionsBlock: {
70
74
  };
71
75
  };
72
76
  };
77
+ list: {
78
+ type: string;
79
+ items: {
80
+ type: string;
81
+ properties: {
82
+ when: {
83
+ type: string;
84
+ };
85
+ };
86
+ };
87
+ };
73
88
  anchor: {
74
89
  type: string;
75
90
  additionalProperties: boolean;
@@ -95,7 +110,9 @@ export declare const QuestionsBlock: {
95
110
  type: string;
96
111
  };
97
112
  type: {};
98
- when: {};
113
+ when: {
114
+ type: string;
115
+ };
99
116
  };
100
117
  };
101
118
  };
@@ -5,10 +5,10 @@
5
5
  /* use this for style redefinitions to awoid problems with
6
6
  unpredictable css rules order in build */
7
7
  .pc-share-block__title {
8
- font-size: var(--yc-text-body-3-font-size);
9
- line-height: var(--yc-text-body-3-line-height);
8
+ font-size: var(--g-text-body-3-font-size);
9
+ line-height: var(--g-text-body-3-line-height);
10
10
  color: var(--pc-text-header-color);
11
- font-weight: var(--yc-text-accent-font-weight);
11
+ font-weight: var(--g-text-accent-font-weight);
12
12
  text-align: center;
13
13
  font-weight: normal;
14
14
  }
@@ -20,27 +20,29 @@ unpredictable css rules order in build */
20
20
  .pc-share-block__item.pc-share-block__item {
21
21
  display: flex;
22
22
  justify-content: center;
23
- width: 48px;
23
+ align-items: center;
24
+ /* stylelint-disable-next-line declaration-no-important */
25
+ width: 48px !important;
24
26
  height: 48px;
25
27
  border-radius: 100%;
26
28
  }
27
29
  .pc-share-block__item.pc-share-block__item_type_vk {
28
- background-color: var(--yc-color-vk);
30
+ background-color: var(--pc-color-vk);
29
31
  }
30
32
  .pc-share-block__item.pc-share-block__item_type_facebook {
31
- background-color: var(--yc-color-facebook);
33
+ background-color: var(--pc-color-facebook);
32
34
  }
33
35
  .pc-share-block__item.pc-share-block__item_type_twitter {
34
- background-color: var(--yc-color-twitter);
36
+ background-color: var(--pc-color-twitter);
35
37
  }
36
38
  .pc-share-block__item.pc-share-block__item_type_telegram {
37
- background-color: var(--yc-color-telegram);
39
+ background-color: var(--pc-color-telegram);
38
40
  }
39
41
  .pc-share-block__item.pc-share-block__item_type_telegram {
40
- background-color: var(--yc-color-telegram);
42
+ background-color: var(--pc-color-telegram);
41
43
  }
42
44
  .pc-share-block__item.pc-share-block__item_type_linkedin {
43
- background-color: var(--yc-color-linkedin);
45
+ background-color: var(--pc-color-linkedin);
44
46
  }
45
47
  .pc-share-block__item.pc-share-block__item.pc-share-block__item.pc-share-block__item:before {
46
48
  border-radius: 100%;
@@ -48,14 +50,14 @@ unpredictable css rules order in build */
48
50
 
49
51
  .pc-share-block__item.pc-share-block__item:hover:before {
50
52
  /* stylelint-disable-next-line declaration-no-important */
51
- background-color: var(--yc-color-base-generic) !important;
53
+ background-color: var(--g-color-base-generic) !important;
52
54
  border-radius: 100%;
53
55
  }
54
56
  .pc-share-block__item.pc-share-block__item + .pc-share-block__item.pc-share-block__item {
55
57
  margin-left: 12px;
56
58
  }
57
59
  .pc-share-block__item.pc-share-block__item svg {
58
- color: var(--yc-color-base-background);
60
+ color: var(--g-color-base-background);
59
61
  }
60
62
 
61
63
  @media (max-width: 577px) {
@@ -14,7 +14,9 @@ export declare const ShareBlock: {
14
14
  };
15
15
  };
16
16
  type: {};
17
- when: {};
17
+ when: {
18
+ type: string;
19
+ };
18
20
  };
19
21
  };
20
22
  };
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .pc-slider-block-arrow__button:hover {
6
- box-shadow: 0px 4px 24px var(--yc-color-sfx-shadow), 0px 2px 8px var(--yc-color-sfx-shadow);
6
+ box-shadow: 0px 4px 24px var(--g-color-sfx-shadow), 0px 2px 8px var(--g-color-sfx-shadow);
7
7
  cursor: pointer;
8
8
  }
9
9
 
@@ -43,14 +43,14 @@ unpredictable css rules order in build */
43
43
  cursor: pointer;
44
44
  width: 42px;
45
45
  height: 42px;
46
- color: var(--yc-color-text-secondary);
46
+ color: var(--g-color-text-secondary);
47
47
  border-radius: 100%;
48
- background-color: var(--yc-color-base-background);
48
+ background-color: var(--g-color-base-background);
49
49
  box-shadow: 0 4px 24px var(--pc-color-sfx-shadow), 0 2px 8px var(--pc-color-sfx-shadow);
50
50
  transition: box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
51
51
  }
52
52
  .pc-slider-block-arrow:hover .pc-slider-block-arrow__button {
53
- color: var(--yc-color-text-primary);
53
+ color: var(--g-color-text-primary);
54
54
  box-shadow: 0 2px 12px var(--pc-color-sfx-shadow), 0 4px 24px var(--pc-color-sfx-shadow);
55
55
  }
56
56
  .pc-slider-block-arrow__icon {
@@ -5,6 +5,6 @@ import './Arrow.css';
5
5
  const b = block('slider-block-arrow');
6
6
  const Arrow = ({ type, handleClick, className, size = 16 }) => (React.createElement("div", { className: b({ type }, className) },
7
7
  React.createElement("button", { className: b('button'), onClick: () => handleClick && handleClick(type) },
8
- React.createElement("div", { className: b('icon-wrapper') },
8
+ React.createElement("span", { className: b('icon-wrapper') },
9
9
  React.createElement(ToggleArrow, { size: size, type: 'horizontal', iconType: "navigation", className: b('icon') })))));
10
10
  export default Arrow;
@@ -133,8 +133,8 @@ unpredictable css rules order in build */
133
133
  display: inline-flex;
134
134
  justify-content: center;
135
135
  }
136
- .pc-SliderBlock__dots-list div.pc-SliderBlock__bar,
137
- .pc-SliderBlock__dots-list div.pc-SliderBlock__dot {
136
+ .pc-SliderBlock__dots-list li.pc-SliderBlock__bar,
137
+ .pc-SliderBlock__dots-list li.pc-SliderBlock__dot {
138
138
  margin: calc(12px / 2) 8px;
139
139
  top: 0;
140
140
  }
@@ -143,17 +143,17 @@ unpredictable css rules order in build */
143
143
  width: 8px;
144
144
  height: 8px;
145
145
  border-radius: 100%;
146
- background-color: var(--yc-color-line-generic-accent);
146
+ background-color: var(--g-color-line-generic-accent);
147
147
  cursor: pointer;
148
148
  }
149
149
  .pc-SliderBlock__dot:hover {
150
- background-color: var(--yc-color-line-generic-accent-hover);
150
+ background-color: var(--g-color-line-generic-accent-hover);
151
151
  }
152
152
  .pc-SliderBlock__dot + .pc-SliderBlock__dot {
153
153
  margin-left: 16px;
154
154
  }
155
155
  .pc-SliderBlock__dot_active {
156
- background-color: var(--yc-color-line-generic-active);
156
+ background-color: var(--g-color-line-generic-active);
157
157
  }
158
158
  .pc-SliderBlock__bar {
159
159
  position: absolute;
@@ -180,19 +180,19 @@ unpredictable css rules order in build */
180
180
  position: absolute;
181
181
  top: 0;
182
182
  left: 0;
183
- color: var(--yc-color-text-secondary);
183
+ color: var(--g-color-text-secondary);
184
184
  }
185
185
  .pc-SliderBlock__footer .pc-SliderBlock__disclaimer_size_l {
186
- font-size: var(--yc-text-header-1-font-size);
187
- line-height: var(--yc-text-header-1-line-height);
186
+ font-size: var(--g-text-header-1-font-size);
187
+ line-height: var(--g-text-header-1-line-height);
188
188
  }
189
189
  .pc-SliderBlock__footer .pc-SliderBlock__disclaimer_size_m {
190
- font-size: var(--yc-text-body-2-font-size);
191
- line-height: var(--yc-text-body-2-line-height);
190
+ font-size: var(--g-text-body-2-font-size);
191
+ line-height: var(--g-text-body-2-line-height);
192
192
  }
193
193
  .pc-SliderBlock__footer .pc-SliderBlock__disclaimer_size_s {
194
- font-size: var(--yc-text-body-1-font-size);
195
- line-height: var(--yc-text-body-1-line-height);
194
+ font-size: var(--g-text-body-1-font-size);
195
+ line-height: var(--g-text-body-1-line-height);
196
196
  }
197
197
  @media (min-width: 769px) {
198
198
  .pc-SliderBlock__animate-slides.pc-AnimateBlock .slick-slide, .pc-AnimateBlock .pc-SliderBlock__animate-slides .slick-slide {
@@ -1,4 +1,4 @@
1
- import React, { useCallback, useContext, useEffect, useRef, useState } from 'react';
1
+ import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
2
2
  import _ from 'lodash';
3
3
  import SlickSlider from 'react-slick';
4
4
  import Anchor from '../../components/Anchor/Anchor';
@@ -25,7 +25,7 @@ export const SliderBlock = (props) => {
25
25
  const { isServer } = useContext(SSRContext);
26
26
  const isMobile = useContext(MobileContext);
27
27
  const [breakpoint, setBreakpoint] = useState(BREAKPOINTS.xl);
28
- const [disclosedChildren] = useState(() => discloseAllNestedChildren(children));
28
+ const disclosedChildren = useMemo(() => discloseAllNestedChildren(children), [children]);
29
29
  const childrenCount = disclosedChildren.length;
30
30
  const [slidesToShow] = useState(getSlidesToShowWithDefaults({
31
31
  contentLength: childrenCount,
@@ -121,13 +121,13 @@ export const SliderBlock = (props) => {
121
121
  const renderBar = () => {
122
122
  const barPosition = (DOT_GAP + DOT_WIDTH) * currentIndex;
123
123
  const barWidth = DOT_WIDTH + (DOT_GAP + DOT_WIDTH) * (slidesCountByBreakpoint - 1);
124
- return (slidesCountByBreakpoint > 1 && (React.createElement("div", { className: b('bar'), style: {
124
+ return (slidesCountByBreakpoint > 1 && (React.createElement("li", { className: b('bar'), style: {
125
125
  left: barPosition,
126
126
  width: barWidth,
127
127
  } })));
128
128
  };
129
129
  const renderDot = (index) => {
130
- return (React.createElement("div", { key: index, className: b('dot', { active: index === currentIndex }), onClick: () => handleDotClick(index) }));
130
+ return (React.createElement("li", { key: index, className: b('dot', { active: index === currentIndex }), onClick: () => handleDotClick(index) }));
131
131
  };
132
132
  const renderNavigation = () => {
133
133
  if (childrenCount <= slidesCountByBreakpoint || !dots || childrenCount === 1) {