@gravity-ui/page-constructor 4.0.0-beta.0 → 4.0.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 (755) 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/PageConstructor/PageConstructor.css +50 -30
  106. package/build/cjs/containers/PageConstructor/PageConstructor.js +6 -3
  107. package/build/cjs/containers/PageConstructor/Provider.d.ts +2 -3
  108. package/build/cjs/containers/PageConstructor/Provider.js +2 -2
  109. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts +2 -2
  110. package/build/cjs/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +8 -4
  111. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.d.ts +1 -2
  112. package/build/cjs/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -4
  113. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
  114. package/build/cjs/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +5 -3
  115. package/build/cjs/containers/PageConstructor/components/index.d.ts +2 -0
  116. package/build/cjs/containers/PageConstructor/components/index.js +5 -0
  117. package/build/cjs/containers/PageConstructor/index.d.ts +1 -0
  118. package/build/cjs/containers/PageConstructor/index.js +2 -0
  119. package/build/cjs/context/theme/ThemeContext.d.ts +2 -3
  120. package/build/cjs/context/theme/ThemeContext.js +0 -1
  121. package/build/cjs/context/theme/index.d.ts +0 -1
  122. package/build/cjs/context/theme/index.js +0 -1
  123. package/build/cjs/context/theme/useTheme.d.ts +1 -1
  124. package/build/cjs/context/theme/useTheme.js +2 -2
  125. package/build/cjs/context/theme/withTheme.js +1 -1
  126. package/build/cjs/customization/BlockDecoration.d.ts +1 -1
  127. package/build/cjs/customization/BlockDecoration.js +8 -14
  128. package/build/cjs/editor/{Components → components}/AddBlock/AddBlock.css +7 -6
  129. package/build/cjs/editor/components/AddBlock/AddBlock.d.ts +7 -0
  130. package/build/cjs/editor/{Components → components}/AddBlock/AddBlock.js +3 -3
  131. package/build/cjs/editor/components/BlockForm/BlockForm.d.ts +12 -0
  132. package/build/cjs/editor/components/BlockForm/BlockForm.js +28 -0
  133. package/build/cjs/editor/components/ControlPanel/ControlPanel.css +34 -0
  134. package/build/cjs/editor/components/ControlPanel/ControlPanel.d.ts +10 -0
  135. package/build/cjs/editor/components/ControlPanel/ControlPanel.js +35 -0
  136. package/build/cjs/editor/components/ControlPanel/i18n/en.json +3 -0
  137. package/build/cjs/editor/components/ControlPanel/i18n/index.d.ts +2 -0
  138. package/build/cjs/editor/components/ControlPanel/i18n/index.js +8 -0
  139. package/build/cjs/editor/components/ControlPanel/i18n/ru.json +3 -0
  140. package/build/cjs/editor/components/DeviceEmulation/DeviceEmulation.d.ts +7 -0
  141. package/build/cjs/editor/components/DeviceEmulation/DeviceEmulation.js +10 -0
  142. package/build/cjs/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.css +33 -0
  143. package/build/cjs/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.d.ts +8 -0
  144. package/build/cjs/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.js +41 -0
  145. package/build/cjs/editor/components/DeviceEmulation/utils.d.ts +4 -0
  146. package/build/cjs/editor/components/DeviceEmulation/utils.js +7 -0
  147. package/build/{esm/editor/Components → cjs/editor/components}/EditBlock/EditBlock.css +22 -14
  148. package/build/cjs/editor/components/EditBlock/EditBlock.d.ts +13 -0
  149. package/build/cjs/editor/components/EditBlock/EditBlock.js +48 -0
  150. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.css +27 -0
  151. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.d.ts +13 -0
  152. package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.js +35 -0
  153. package/build/cjs/editor/components/ErrorBoundary/i18n/en.json +4 -0
  154. package/build/cjs/editor/components/ErrorBoundary/i18n/index.d.ts +2 -0
  155. package/build/cjs/editor/components/ErrorBoundary/i18n/index.js +8 -0
  156. package/build/cjs/editor/components/ErrorBoundary/i18n/ru.json +4 -0
  157. package/build/cjs/editor/components/Layout/Layout.css +44 -0
  158. package/build/cjs/editor/components/Layout/Layout.d.ts +19 -0
  159. package/build/cjs/editor/components/Layout/Layout.js +38 -0
  160. package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.css +21 -0
  161. package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.d.ts +2 -0
  162. package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.js +12 -0
  163. package/build/cjs/editor/components/NotFoundBlock/i18n/en.json +3 -0
  164. package/build/cjs/editor/components/NotFoundBlock/i18n/index.d.ts +2 -0
  165. package/build/cjs/editor/components/NotFoundBlock/i18n/index.js +8 -0
  166. package/build/cjs/editor/components/NotFoundBlock/i18n/ru.json +3 -0
  167. package/build/cjs/editor/components/PagePropsForm/PagePropsForm.d.ts +10 -0
  168. package/build/cjs/editor/components/PagePropsForm/PagePropsForm.js +17 -0
  169. package/build/cjs/editor/components/YamlEditor/YamlEditor.css +12 -0
  170. package/build/cjs/editor/components/YamlEditor/YamlEditor.d.ts +6 -0
  171. package/build/cjs/editor/components/YamlEditor/YamlEditor.js +34 -0
  172. package/build/cjs/editor/containers/Editor/Editor.d.ts +2 -0
  173. package/build/cjs/editor/containers/Editor/Editor.js +67 -0
  174. package/build/cjs/editor/containers/Form/Form.css +115 -0
  175. package/build/cjs/editor/containers/Form/Form.d.ts +11 -0
  176. package/build/cjs/editor/containers/Form/Form.js +54 -0
  177. package/build/cjs/editor/containers/Form/dynamic-form-custom.css +0 -0
  178. package/build/cjs/editor/context.d.ts +9 -0
  179. package/build/cjs/editor/context.js +6 -0
  180. package/build/cjs/editor/data/previews/default-preview.js +1 -1
  181. package/build/cjs/editor/data/previews/header-block.js +5 -5
  182. package/build/cjs/editor/data/templates/banner-block.json +25 -0
  183. package/build/cjs/editor/data/templates/card-layout-block.json +39 -0
  184. package/build/cjs/editor/data/templates/companies-block.json +20 -0
  185. package/build/cjs/editor/data/templates/content-layout-block.json +56 -0
  186. package/build/cjs/editor/data/templates/extended-features-block.json +56 -0
  187. package/build/cjs/editor/data/templates/filter-block.json +62 -0
  188. package/build/cjs/editor/data/templates/header-block.json +19 -0
  189. package/build/cjs/editor/data/templates/header-slider-block.json +69 -0
  190. package/build/cjs/editor/data/templates/icons-block.json +32 -0
  191. package/build/cjs/editor/data/templates/info-block.json +40 -0
  192. package/build/cjs/editor/data/templates/link-table-block.json +10 -0
  193. package/build/cjs/editor/data/templates/map-block.json +48 -0
  194. package/build/cjs/editor/data/templates/media-block.json +15 -0
  195. package/build/cjs/editor/data/templates/preview-block.json +38 -0
  196. package/build/cjs/editor/data/templates/promo-features-block.json +52 -0
  197. package/build/cjs/editor/data/templates/questions-block.json +105 -0
  198. package/build/cjs/editor/data/templates/security-block.json +36 -0
  199. package/build/cjs/editor/data/templates/share-block.json +6 -0
  200. package/build/cjs/editor/data/templates/simple-block.json +7 -0
  201. package/build/cjs/editor/data/templates/slider-block.json +46 -0
  202. package/build/cjs/editor/data/templates/table-block.json +18 -0
  203. package/build/cjs/editor/data/templates/tabs-block.json +90 -0
  204. package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +27 -0
  205. package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +19 -0
  206. package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +72 -0
  207. package/build/cjs/editor/dynamic-forms-custom/config.d.ts +2 -0
  208. package/build/cjs/editor/dynamic-forms-custom/config.js +13 -0
  209. package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +12 -0
  210. package/build/cjs/editor/dynamic-forms-custom/hooks/useOneOf.js +75 -0
  211. package/build/cjs/editor/dynamic-forms-custom/parser/detect.d.ts +9 -0
  212. package/build/cjs/editor/dynamic-forms-custom/parser/detect.js +36 -0
  213. package/build/cjs/editor/dynamic-forms-custom/parser/index.d.ts +28 -0
  214. package/build/cjs/editor/dynamic-forms-custom/parser/index.js +187 -0
  215. package/build/cjs/editor/dynamic-forms-custom/parser/types.d.ts +28 -0
  216. package/build/cjs/editor/dynamic-forms-custom/parser/types.js +2 -0
  217. package/build/cjs/editor/dynamic-forms-custom/parser/views.d.ts +37 -0
  218. package/build/cjs/editor/dynamic-forms-custom/parser/views.js +46 -0
  219. package/build/cjs/editor/hooks/useFormSpec.d.ts +2 -0
  220. package/build/cjs/editor/hooks/useFormSpec.js +13 -0
  221. package/build/cjs/editor/hooks/usePreviousValue.d.ts +1 -0
  222. package/build/cjs/editor/hooks/usePreviousValue.js +11 -0
  223. package/build/cjs/editor/icons/Tablet.d.ts +2 -0
  224. package/build/cjs/editor/icons/Tablet.js +9 -0
  225. package/build/cjs/editor/index.d.ts +1 -1
  226. package/build/cjs/editor/index.js +1 -1
  227. package/build/cjs/editor/store/index.d.ts +12 -11
  228. package/build/cjs/editor/store/index.js +70 -15
  229. package/build/cjs/editor/store/reducer.d.ts +30 -9
  230. package/build/cjs/editor/store/reducer.js +20 -31
  231. package/build/cjs/editor/store/utils.d.ts +1 -0
  232. package/build/cjs/editor/store/utils.js +6 -2
  233. package/build/cjs/editor/styles/root.css +7 -0
  234. package/build/cjs/editor/types/index.d.ts +30 -12
  235. package/build/cjs/editor/types/index.js +8 -0
  236. package/build/cjs/editor/utils/index.d.ts +6 -3
  237. package/build/cjs/editor/utils/index.js +9 -4
  238. package/build/cjs/editor/widget/constants.d.ts +4 -0
  239. package/build/cjs/editor/widget/constants.js +8 -0
  240. package/build/cjs/editor/widget/index.d.ts +21 -0
  241. package/build/cjs/editor/widget/index.js +76 -0
  242. package/build/cjs/editor/widget/utils.d.ts +1 -0
  243. package/build/cjs/editor/widget/utils.js +19 -0
  244. package/build/cjs/grid/Col/Col.d.ts +3 -4
  245. package/build/cjs/grid/Col/Col.js +2 -2
  246. package/build/cjs/grid/Grid/Grid.css +1 -1
  247. package/build/cjs/hooks/useHeightCalculator.js +1 -1
  248. package/build/cjs/models/common.d.ts +6 -1
  249. package/build/cjs/models/common.js +6 -1
  250. package/build/cjs/models/constructor-items/blocks.d.ts +17 -13
  251. package/build/cjs/models/constructor-items/common.d.ts +3 -5
  252. package/build/cjs/models/constructor.d.ts +2 -2
  253. package/build/cjs/models/customization.d.ts +5 -7
  254. package/build/cjs/models/navigation.d.ts +4 -2
  255. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.css +92 -0
  256. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.d.ts +4 -0
  257. package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.js +21 -0
  258. package/build/cjs/navigation/components/Logo/Logo.css +3 -3
  259. package/build/cjs/navigation/components/Logo/Logo.js +3 -3
  260. package/build/cjs/navigation/components/MobileMenuButton/MobileMenuButton.css +7 -0
  261. package/build/cjs/navigation/components/MobileMenuButton/MobileMenuButton.d.ts +3 -0
  262. package/build/cjs/navigation/components/MobileMenuButton/MobileMenuButton.js +15 -0
  263. package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.css +17 -12
  264. package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -10
  265. package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.js +11 -31
  266. package/build/cjs/navigation/components/Navigation/Navigation.css +8 -13
  267. package/build/cjs/navigation/components/Navigation/Navigation.d.ts +4 -7
  268. package/build/cjs/navigation/components/Navigation/Navigation.js +37 -15
  269. package/build/cjs/navigation/components/NavigationItem/NavigationItem.css +28 -0
  270. package/build/cjs/navigation/components/NavigationItem/NavigationItem.d.ts +3 -9
  271. package/build/cjs/navigation/components/NavigationItem/NavigationItem.js +15 -6
  272. package/build/cjs/navigation/components/NavigationItem/components/GithubButton/GithubButton.d.ts +1 -1
  273. package/build/cjs/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.d.ts +1 -1
  274. package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.css +1 -1
  275. package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.d.ts +5 -4
  276. package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js +12 -8
  277. package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.css +2 -2
  278. package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.d.ts +1 -1
  279. package/build/cjs/navigation/components/NavigationList/NavigationList.d.ts +3 -0
  280. package/build/cjs/navigation/components/NavigationList/NavigationList.js +11 -0
  281. package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.d.ts +4 -13
  282. package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.js +6 -13
  283. package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.css +10 -9
  284. package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.d.ts +1 -8
  285. package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js +6 -6
  286. package/build/cjs/navigation/components/SocialIcon/SocialIcon.css +3 -3
  287. package/build/cjs/navigation/containers/Layout/Layout.js +2 -2
  288. package/build/cjs/navigation/models.d.ts +63 -0
  289. package/build/cjs/navigation/{constants.js → models.js} +7 -1
  290. package/build/cjs/navigation/schema.d.ts +1 -0
  291. package/build/cjs/navigation/schema.js +1 -1
  292. package/build/cjs/navigation/utils.d.ts +11 -1
  293. package/build/cjs/navigation/utils.js +19 -1
  294. package/build/cjs/schema/constants.d.ts +941 -0
  295. package/build/cjs/schema/constants.js +42 -0
  296. package/build/cjs/schema/index.d.ts +9 -228
  297. package/build/cjs/schema/index.js +8 -46
  298. package/build/cjs/schema/validators/common.d.ts +158 -30
  299. package/build/cjs/schema/validators/common.js +57 -19
  300. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.css +4 -4
  301. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +3 -3
  302. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +26 -6
  303. package/build/cjs/sub-blocks/BannerCard/BannerCard.css +16 -16
  304. package/build/cjs/sub-blocks/BannerCard/BannerCard.js +3 -3
  305. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +22 -4
  306. package/build/cjs/sub-blocks/Content/Content.css +22 -22
  307. package/build/cjs/sub-blocks/Content/Content.js +3 -1
  308. package/build/cjs/sub-blocks/Content/ContentList/ContentList.css +48 -0
  309. package/build/cjs/sub-blocks/Content/ContentList/ContentList.d.ts +7 -0
  310. package/build/cjs/sub-blocks/Content/ContentList/ContentList.js +25 -0
  311. package/build/cjs/sub-blocks/Content/schema.d.ts +74 -6
  312. package/build/cjs/sub-blocks/Content/schema.js +27 -2
  313. package/build/cjs/sub-blocks/Divider/Divider.css +1 -1
  314. package/build/cjs/sub-blocks/Divider/schema.d.ts +3 -1
  315. package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +39 -39
  316. package/build/cjs/sub-blocks/HubspotForm/index.js +2 -2
  317. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +1 -1
  318. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +115 -10
  319. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +100 -6
  320. package/build/cjs/sub-blocks/MediaCard/schema.js +1 -1
  321. package/build/cjs/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.css +2 -2
  322. package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.css +17 -29
  323. package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +18 -1
  324. package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.css +7 -7
  325. package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.css +5 -5
  326. package/build/cjs/sub-blocks/PriceDetailed/schema.d.ts +4 -1
  327. package/build/cjs/sub-blocks/PriceDetailed/schema.js +5 -1
  328. package/build/cjs/sub-blocks/Quote/Quote.css +10 -10
  329. package/build/cjs/sub-blocks/Quote/Quote.js +2 -2
  330. package/build/cjs/sub-blocks/Quote/schema.d.ts +9 -4
  331. package/build/cjs/sub-blocks/Quote/schema.js +1 -2
  332. package/build/cjs/text-transform/config.js +19 -1
  333. package/build/cjs/text-transform/filter.d.ts +20 -0
  334. package/build/cjs/text-transform/filter.js +61 -0
  335. package/build/cjs/text-transform/index.d.ts +1 -0
  336. package/build/cjs/text-transform/index.js +1 -0
  337. package/build/cjs/text-transform/transformers.d.ts +2 -0
  338. package/build/cjs/text-transform/transformers.js +3 -2
  339. package/build/cjs/text-transform/utils.js +6 -1
  340. package/build/cjs/utils/blocks.d.ts +1 -1
  341. package/build/cjs/utils/blocks.js +43 -3
  342. package/build/cjs/utils/imageCompress.js +1 -1
  343. package/build/cjs/utils/theme.d.ts +1 -1
  344. package/build/esm/blocks/Banner/schema.d.ts +72 -24
  345. package/build/esm/blocks/CardLayout/schema.d.ts +16 -6
  346. package/build/esm/blocks/Companies/Companies.css +5 -5
  347. package/build/esm/blocks/Companies/Companies.js +3 -3
  348. package/build/esm/blocks/Companies/schema.d.ts +8 -3
  349. package/build/esm/blocks/ContentLayout/ContentLayout.css +4 -7
  350. package/build/esm/blocks/ContentLayout/ContentLayout.js +1 -2
  351. package/build/esm/blocks/ContentLayout/schema.d.ts +112 -59
  352. package/build/esm/blocks/ContentLayout/schema.js +23 -18
  353. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +16 -16
  354. package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -3
  355. package/build/esm/blocks/ExtendedFeatures/schema.d.ts +37 -6
  356. package/build/esm/blocks/ExtendedFeatures/schema.js +3 -4
  357. package/build/esm/blocks/FilterBlock/schema.d.ts +19 -7
  358. package/build/esm/blocks/FilterBlock/schema.js +13 -2
  359. package/build/esm/blocks/Header/Header.css +28 -25
  360. package/build/esm/blocks/Header/Header.js +6 -7
  361. package/build/esm/blocks/Header/schema.d.ts +329 -37
  362. package/build/esm/blocks/Header/schema.js +1 -0
  363. package/build/esm/blocks/HeaderSlider/schema.d.ts +129 -54
  364. package/build/esm/blocks/HeaderSlider/schema.js +2 -1
  365. package/build/esm/blocks/Icons/Icons.css +2 -2
  366. package/build/esm/blocks/Icons/schema.d.ts +9 -3
  367. package/build/esm/blocks/Icons/schema.js +2 -1
  368. package/build/esm/blocks/Info/Info.css +1 -1
  369. package/build/esm/blocks/Info/Info.js +3 -3
  370. package/build/esm/blocks/Info/schema.d.ts +44 -9
  371. package/build/esm/blocks/Map/schema.d.ts +31 -7
  372. package/build/esm/blocks/Media/Media.js +3 -3
  373. package/build/esm/blocks/Media/schema.d.ts +346 -112
  374. package/build/esm/blocks/Media/schema.js +2 -2
  375. package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +13 -13
  376. package/build/esm/blocks/PromoFeaturesBlock/schema.d.ts +103 -9
  377. package/build/esm/blocks/PromoFeaturesBlock/schema.js +1 -0
  378. package/build/esm/blocks/Questions/Questions.css +12 -12
  379. package/build/esm/blocks/Questions/schema.d.ts +21 -4
  380. package/build/esm/blocks/Share/Share.css +14 -12
  381. package/build/esm/blocks/Share/schema.d.ts +3 -1
  382. package/build/esm/blocks/Slider/Arrow/Arrow.css +4 -4
  383. package/build/esm/blocks/Slider/Arrow/Arrow.js +1 -1
  384. package/build/esm/blocks/Slider/Slider.css +12 -12
  385. package/build/esm/blocks/Slider/Slider.js +4 -4
  386. package/build/esm/blocks/Slider/schema.d.ts +16 -19
  387. package/build/esm/blocks/Slider/schema.js +4 -5
  388. package/build/esm/blocks/Slider/utils.d.ts +2 -2
  389. package/build/esm/blocks/Slider/utils.js +2 -1
  390. package/build/esm/blocks/Table/Table.css +5 -5
  391. package/build/esm/blocks/Table/schema.d.ts +11 -4
  392. package/build/esm/blocks/Table/schema.js +12 -2
  393. package/build/esm/blocks/Tabs/Tabs.css +6 -6
  394. package/build/esm/blocks/Tabs/Tabs.d.ts +1 -1
  395. package/build/esm/blocks/Tabs/Tabs.js +5 -5
  396. package/build/esm/blocks/Tabs/schema.d.ts +142 -18
  397. package/build/esm/blocks/Tabs/schema.js +5 -2
  398. package/build/esm/components/Anchor/Anchor.d.ts +2 -3
  399. package/build/esm/components/AnimateBlock/AnimateBlock.d.ts +2 -3
  400. package/build/esm/components/Author/Author.css +8 -8
  401. package/build/esm/components/Author/Author.js +2 -2
  402. package/build/esm/components/Author/schema.d.ts +3 -1
  403. package/build/esm/components/BlockBase/BlockBase.css +4 -1
  404. package/build/esm/components/BlockBase/BlockBase.d.ts +3 -2
  405. package/build/esm/components/BlockBase/BlockBase.js +3 -5
  406. package/build/esm/components/Button/Button.css +4 -0
  407. package/build/esm/components/Button/Button.d.ts +2 -3
  408. package/build/esm/components/Button/Button.js +4 -3
  409. package/build/esm/components/ButtonTabs/ButtonTabs.css +4 -0
  410. package/build/esm/components/ButtonTabs/ButtonTabs.d.ts +2 -3
  411. package/build/esm/components/CardBase/CardBase.css +6 -6
  412. package/build/esm/components/Control/Control.css +9 -9
  413. package/build/esm/components/ErrorWrapper/ErrorWrapper.css +3 -3
  414. package/build/esm/components/FileLink/FileLink.css +16 -56
  415. package/build/esm/components/FileLink/FileLink.js +18 -1
  416. package/build/esm/components/FullWidthBackground/FullWidthBackground.css +1 -1
  417. package/build/esm/components/FullscreenImage/FullscreenImage.css +3 -3
  418. package/build/esm/components/FullscreenMedia/FullscreenMedia.css +3 -3
  419. package/build/esm/components/HTML/HTML.js +2 -1
  420. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +11 -11
  421. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -1
  422. package/build/esm/components/Image/Image.d.ts +2 -3
  423. package/build/esm/components/Image/schema.d.ts +2 -1
  424. package/build/esm/components/Image/schema.js +9 -8
  425. package/build/esm/components/Link/Link.css +13 -13
  426. package/build/esm/components/Media/Image/Image.js +4 -3
  427. package/build/esm/components/Media/Media.js +1 -1
  428. package/build/esm/components/Media/Video/Video.js +1 -0
  429. package/build/esm/components/MediaBase/MediaBaseContent.js +2 -2
  430. package/build/esm/components/MetaInfo/MetaInfo.css +2 -2
  431. package/build/esm/components/MetaInfo/MetaInfo.js +1 -1
  432. package/build/esm/components/OverflowScroller/OverflowScroller.css +1 -1
  433. package/build/esm/components/ReactPlayer/CustomBarControls.css +1 -1
  434. package/build/esm/components/ReactPlayer/ReactPlayer.css +2 -2
  435. package/build/esm/components/Table/Table.css +8 -8
  436. package/build/esm/components/Title/Title.css +4 -4
  437. package/build/esm/components/Title/TitleItem.css +19 -19
  438. package/build/esm/components/Title/TitleItem.d.ts +2 -3
  439. package/build/esm/components/Title/TitleItem.js +2 -2
  440. package/build/esm/components/UnpublishedLabel/UnpublishedLabel.css +5 -5
  441. package/build/esm/components/VideoBlock/VideoBlock.css +2 -2
  442. package/build/esm/components/VideoBlock/VideoBlock.d.ts +2 -1
  443. package/build/esm/components/VideoBlock/VideoBlock.js +6 -2
  444. package/build/esm/components/constants.d.ts +3 -1
  445. package/build/esm/components/constants.js +3 -1
  446. package/build/esm/constructor-items.d.ts +1 -1
  447. package/build/esm/containers/PageConstructor/PageConstructor.css +50 -30
  448. package/build/esm/containers/PageConstructor/PageConstructor.js +7 -4
  449. package/build/esm/containers/PageConstructor/Provider.d.ts +2 -3
  450. package/build/esm/containers/PageConstructor/Provider.js +2 -2
  451. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.d.ts +2 -2
  452. package/build/esm/containers/PageConstructor/components/ConstructorBlock/ConstructorBlock.js +8 -4
  453. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.d.ts +1 -2
  454. package/build/esm/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.js +7 -4
  455. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.d.ts +1 -1
  456. package/build/esm/containers/PageConstructor/components/ConstructorItem/ConstructorItem.js +5 -3
  457. package/build/esm/containers/PageConstructor/components/index.d.ts +2 -0
  458. package/build/esm/containers/PageConstructor/components/index.js +1 -0
  459. package/build/esm/containers/PageConstructor/index.d.ts +1 -0
  460. package/build/esm/containers/PageConstructor/index.js +1 -0
  461. package/build/esm/context/theme/ThemeContext.d.ts +2 -3
  462. package/build/esm/context/theme/ThemeContext.js +0 -1
  463. package/build/esm/context/theme/index.d.ts +0 -1
  464. package/build/esm/context/theme/index.js +0 -1
  465. package/build/esm/context/theme/useTheme.d.ts +1 -1
  466. package/build/esm/context/theme/useTheme.js +2 -2
  467. package/build/esm/context/theme/withTheme.js +1 -1
  468. package/build/esm/customization/BlockDecoration.d.ts +1 -1
  469. package/build/esm/customization/BlockDecoration.js +9 -14
  470. package/build/esm/editor/{Components → components}/AddBlock/AddBlock.css +7 -6
  471. package/build/esm/editor/components/AddBlock/AddBlock.d.ts +8 -0
  472. package/build/esm/editor/{Components → components}/AddBlock/AddBlock.js +3 -3
  473. package/build/esm/editor/components/BlockForm/BlockForm.d.ts +12 -0
  474. package/build/esm/editor/components/BlockForm/BlockForm.js +25 -0
  475. package/build/esm/editor/components/ControlPanel/ControlPanel.css +34 -0
  476. package/build/esm/editor/components/ControlPanel/ControlPanel.d.ts +11 -0
  477. package/build/esm/editor/components/ControlPanel/ControlPanel.js +33 -0
  478. package/build/esm/editor/components/ControlPanel/i18n/en.json +3 -0
  479. package/build/esm/editor/components/ControlPanel/i18n/index.d.ts +2 -0
  480. package/build/esm/editor/components/ControlPanel/i18n/index.js +5 -0
  481. package/build/esm/editor/components/ControlPanel/i18n/ru.json +3 -0
  482. package/build/esm/editor/components/DeviceEmulation/DeviceEmulation.d.ts +7 -0
  483. package/build/esm/editor/components/DeviceEmulation/DeviceEmulation.js +7 -0
  484. package/build/esm/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.css +33 -0
  485. package/build/esm/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.d.ts +9 -0
  486. package/build/esm/editor/components/DeviceEmulation/DeviceEmulationMobile/DeviceEmulationMobile.js +40 -0
  487. package/build/esm/editor/components/DeviceEmulation/utils.d.ts +4 -0
  488. package/build/esm/editor/components/DeviceEmulation/utils.js +3 -0
  489. package/build/{cjs/editor/Components → esm/editor/components}/EditBlock/EditBlock.css +22 -14
  490. package/build/esm/editor/components/EditBlock/EditBlock.d.ts +14 -0
  491. package/build/esm/editor/components/EditBlock/EditBlock.js +45 -0
  492. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.css +27 -0
  493. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.d.ts +14 -0
  494. package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.js +31 -0
  495. package/build/esm/editor/components/ErrorBoundary/i18n/en.json +4 -0
  496. package/build/esm/editor/components/ErrorBoundary/i18n/index.d.ts +2 -0
  497. package/build/esm/editor/components/ErrorBoundary/i18n/index.js +5 -0
  498. package/build/esm/editor/components/ErrorBoundary/i18n/ru.json +4 -0
  499. package/build/esm/editor/components/Layout/Layout.css +44 -0
  500. package/build/esm/editor/components/Layout/Layout.d.ts +20 -0
  501. package/build/esm/editor/components/Layout/Layout.js +36 -0
  502. package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.css +21 -0
  503. package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.d.ts +3 -0
  504. package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.js +8 -0
  505. package/build/esm/editor/components/NotFoundBlock/i18n/en.json +3 -0
  506. package/build/esm/editor/components/NotFoundBlock/i18n/index.d.ts +2 -0
  507. package/build/esm/editor/components/NotFoundBlock/i18n/index.js +5 -0
  508. package/build/esm/editor/components/NotFoundBlock/i18n/ru.json +3 -0
  509. package/build/esm/editor/components/PagePropsForm/PagePropsForm.d.ts +10 -0
  510. package/build/esm/editor/components/PagePropsForm/PagePropsForm.js +13 -0
  511. package/build/esm/editor/components/YamlEditor/YamlEditor.css +12 -0
  512. package/build/esm/editor/components/YamlEditor/YamlEditor.d.ts +7 -0
  513. package/build/esm/editor/components/YamlEditor/YamlEditor.js +30 -0
  514. package/build/esm/editor/containers/Editor/Editor.d.ts +2 -0
  515. package/build/esm/editor/containers/Editor/Editor.js +63 -0
  516. package/build/esm/editor/containers/Form/Form.css +115 -0
  517. package/build/esm/editor/containers/Form/Form.d.ts +12 -0
  518. package/build/esm/editor/containers/Form/Form.js +52 -0
  519. package/build/esm/editor/containers/Form/dynamic-form-custom.css +0 -0
  520. package/build/esm/editor/context.d.ts +9 -0
  521. package/build/esm/editor/context.js +2 -0
  522. package/build/esm/editor/data/previews/default-preview.js +1 -1
  523. package/build/esm/editor/data/previews/header-block.js +5 -5
  524. package/build/esm/editor/data/templates/banner-block.json +25 -0
  525. package/build/esm/editor/data/templates/card-layout-block.json +39 -0
  526. package/build/esm/editor/data/templates/companies-block.json +20 -0
  527. package/build/esm/editor/data/templates/content-layout-block.json +56 -0
  528. package/build/esm/editor/data/templates/extended-features-block.json +56 -0
  529. package/build/esm/editor/data/templates/filter-block.json +62 -0
  530. package/build/esm/editor/data/templates/header-block.json +19 -0
  531. package/build/esm/editor/data/templates/header-slider-block.json +69 -0
  532. package/build/esm/editor/data/templates/icons-block.json +32 -0
  533. package/build/esm/editor/data/templates/info-block.json +40 -0
  534. package/build/esm/editor/data/templates/link-table-block.json +10 -0
  535. package/build/esm/editor/data/templates/map-block.json +48 -0
  536. package/build/esm/editor/data/templates/media-block.json +15 -0
  537. package/build/esm/editor/data/templates/preview-block.json +38 -0
  538. package/build/esm/editor/data/templates/promo-features-block.json +52 -0
  539. package/build/esm/editor/data/templates/questions-block.json +105 -0
  540. package/build/esm/editor/data/templates/security-block.json +36 -0
  541. package/build/esm/editor/data/templates/share-block.json +6 -0
  542. package/build/esm/editor/data/templates/simple-block.json +7 -0
  543. package/build/esm/editor/data/templates/slider-block.json +46 -0
  544. package/build/esm/editor/data/templates/table-block.json +18 -0
  545. package/build/esm/editor/data/templates/tabs-block.json +90 -0
  546. package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +27 -0
  547. package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.d.ts +20 -0
  548. package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.js +68 -0
  549. package/build/esm/editor/dynamic-forms-custom/config.d.ts +2 -0
  550. package/build/esm/editor/dynamic-forms-custom/config.js +9 -0
  551. package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.d.ts +12 -0
  552. package/build/esm/editor/dynamic-forms-custom/hooks/useOneOf.js +69 -0
  553. package/build/esm/editor/dynamic-forms-custom/parser/detect.d.ts +9 -0
  554. package/build/esm/editor/dynamic-forms-custom/parser/detect.js +32 -0
  555. package/build/esm/editor/dynamic-forms-custom/parser/index.d.ts +28 -0
  556. package/build/esm/editor/dynamic-forms-custom/parser/index.js +185 -0
  557. package/build/esm/editor/dynamic-forms-custom/parser/types.d.ts +28 -0
  558. package/build/esm/editor/dynamic-forms-custom/parser/types.js +1 -0
  559. package/build/esm/editor/dynamic-forms-custom/parser/views.d.ts +37 -0
  560. package/build/esm/editor/dynamic-forms-custom/parser/views.js +39 -0
  561. package/build/esm/editor/hooks/useFormSpec.d.ts +2 -0
  562. package/build/esm/editor/hooks/useFormSpec.js +9 -0
  563. package/build/esm/editor/hooks/usePreviousValue.d.ts +1 -0
  564. package/build/esm/editor/hooks/usePreviousValue.js +8 -0
  565. package/build/esm/editor/icons/Tablet.d.ts +2 -0
  566. package/build/esm/editor/icons/Tablet.js +4 -0
  567. package/build/esm/editor/index.d.ts +1 -1
  568. package/build/esm/editor/index.js +1 -1
  569. package/build/esm/editor/store/index.d.ts +12 -11
  570. package/build/esm/editor/store/index.js +72 -17
  571. package/build/esm/editor/store/reducer.d.ts +30 -9
  572. package/build/esm/editor/store/reducer.js +18 -29
  573. package/build/esm/editor/store/utils.d.ts +1 -0
  574. package/build/esm/editor/store/utils.js +3 -1
  575. package/build/esm/editor/styles/root.css +7 -0
  576. package/build/esm/editor/types/index.d.ts +30 -12
  577. package/build/esm/editor/types/index.js +7 -1
  578. package/build/esm/editor/utils/index.d.ts +6 -3
  579. package/build/esm/editor/utils/index.js +6 -3
  580. package/build/esm/editor/widget/constants.d.ts +4 -0
  581. package/build/esm/editor/widget/constants.js +5 -0
  582. package/build/esm/editor/widget/index.d.ts +21 -0
  583. package/build/esm/editor/widget/index.js +71 -0
  584. package/build/esm/editor/widget/utils.d.ts +1 -0
  585. package/build/esm/editor/widget/utils.js +15 -0
  586. package/build/esm/grid/Col/Col.d.ts +3 -4
  587. package/build/esm/grid/Col/Col.js +2 -2
  588. package/build/esm/grid/Grid/Grid.css +1 -1
  589. package/build/esm/hooks/useHeightCalculator.js +1 -1
  590. package/build/esm/models/common.d.ts +6 -1
  591. package/build/esm/models/common.js +5 -0
  592. package/build/esm/models/constructor-items/blocks.d.ts +17 -13
  593. package/build/esm/models/constructor-items/common.d.ts +3 -5
  594. package/build/esm/models/constructor.d.ts +2 -2
  595. package/build/esm/models/customization.d.ts +5 -7
  596. package/build/esm/models/navigation.d.ts +4 -2
  597. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.css +92 -0
  598. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.d.ts +5 -0
  599. package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.js +19 -0
  600. package/build/esm/navigation/components/Logo/Logo.css +3 -3
  601. package/build/esm/navigation/components/Logo/Logo.js +3 -3
  602. package/build/esm/navigation/components/MobileMenuButton/MobileMenuButton.css +7 -0
  603. package/build/esm/navigation/components/MobileMenuButton/MobileMenuButton.d.ts +4 -0
  604. package/build/esm/navigation/components/MobileMenuButton/MobileMenuButton.js +11 -0
  605. package/build/esm/navigation/components/MobileNavigation/MobileNavigation.css +17 -12
  606. package/build/esm/navigation/components/MobileNavigation/MobileNavigation.d.ts +1 -10
  607. package/build/esm/navigation/components/MobileNavigation/MobileNavigation.js +13 -32
  608. package/build/esm/navigation/components/Navigation/Navigation.css +8 -13
  609. package/build/esm/navigation/components/Navigation/Navigation.d.ts +4 -7
  610. package/build/esm/navigation/components/Navigation/Navigation.js +35 -15
  611. package/build/esm/navigation/components/NavigationItem/NavigationItem.css +28 -0
  612. package/build/esm/navigation/components/NavigationItem/NavigationItem.d.ts +4 -9
  613. package/build/esm/navigation/components/NavigationItem/NavigationItem.js +16 -6
  614. package/build/esm/navigation/components/NavigationItem/components/GithubButton/GithubButton.d.ts +1 -1
  615. package/build/esm/navigation/components/NavigationItem/components/NavigationButton/NavigationButton.d.ts +1 -1
  616. package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.css +1 -1
  617. package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.d.ts +5 -4
  618. package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.js +11 -8
  619. package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.css +2 -2
  620. package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.d.ts +1 -1
  621. package/build/esm/navigation/components/NavigationList/NavigationList.d.ts +3 -0
  622. package/build/esm/navigation/components/NavigationList/NavigationList.js +7 -0
  623. package/build/esm/navigation/components/NavigationListItem/NavigationListItem.d.ts +4 -14
  624. package/build/esm/navigation/components/NavigationListItem/NavigationListItem.js +5 -10
  625. package/build/esm/navigation/components/NavigationPopup/NavigationPopup.css +10 -9
  626. package/build/esm/navigation/components/NavigationPopup/NavigationPopup.d.ts +1 -8
  627. package/build/esm/navigation/components/NavigationPopup/NavigationPopup.js +6 -6
  628. package/build/esm/navigation/components/SocialIcon/SocialIcon.css +3 -3
  629. package/build/esm/navigation/containers/Layout/Layout.js +2 -2
  630. package/build/esm/navigation/models.d.ts +63 -0
  631. package/build/esm/navigation/{constants.js → models.js} +6 -0
  632. package/build/esm/navigation/schema.d.ts +1 -0
  633. package/build/esm/navigation/schema.js +2 -2
  634. package/build/esm/navigation/utils.d.ts +11 -1
  635. package/build/esm/navigation/utils.js +17 -0
  636. package/build/esm/schema/constants.d.ts +941 -0
  637. package/build/esm/schema/constants.js +39 -0
  638. package/build/esm/schema/index.d.ts +9 -228
  639. package/build/esm/schema/index.js +4 -42
  640. package/build/esm/schema/validators/common.d.ts +158 -30
  641. package/build/esm/schema/validators/common.js +57 -19
  642. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.css +4 -4
  643. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +3 -3
  644. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +26 -6
  645. package/build/esm/sub-blocks/BannerCard/BannerCard.css +16 -16
  646. package/build/esm/sub-blocks/BannerCard/BannerCard.js +3 -3
  647. package/build/esm/sub-blocks/BasicCard/schema.d.ts +22 -4
  648. package/build/esm/sub-blocks/Content/Content.css +22 -22
  649. package/build/esm/sub-blocks/Content/Content.js +3 -1
  650. package/build/esm/sub-blocks/Content/ContentList/ContentList.css +48 -0
  651. package/build/esm/sub-blocks/Content/ContentList/ContentList.d.ts +8 -0
  652. package/build/esm/sub-blocks/Content/ContentList/ContentList.js +23 -0
  653. package/build/esm/sub-blocks/Content/schema.d.ts +74 -6
  654. package/build/esm/sub-blocks/Content/schema.js +27 -2
  655. package/build/esm/sub-blocks/Divider/Divider.css +1 -1
  656. package/build/esm/sub-blocks/Divider/schema.d.ts +3 -1
  657. package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +39 -39
  658. package/build/esm/sub-blocks/HubspotForm/index.js +2 -2
  659. package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +1 -1
  660. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +115 -10
  661. package/build/esm/sub-blocks/MediaCard/schema.d.ts +100 -6
  662. package/build/esm/sub-blocks/MediaCard/schema.js +2 -2
  663. package/build/esm/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.css +2 -2
  664. package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.css +17 -29
  665. package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +18 -1
  666. package/build/esm/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.css +7 -7
  667. package/build/esm/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.css +5 -5
  668. package/build/esm/sub-blocks/PriceDetailed/schema.d.ts +4 -1
  669. package/build/esm/sub-blocks/PriceDetailed/schema.js +5 -1
  670. package/build/esm/sub-blocks/Quote/Quote.css +10 -10
  671. package/build/esm/sub-blocks/Quote/Quote.js +3 -3
  672. package/build/esm/sub-blocks/Quote/schema.d.ts +9 -4
  673. package/build/esm/sub-blocks/Quote/schema.js +2 -3
  674. package/build/esm/text-transform/config.js +19 -1
  675. package/build/esm/text-transform/filter.d.ts +20 -0
  676. package/build/esm/text-transform/filter.js +56 -0
  677. package/build/esm/text-transform/index.d.ts +1 -0
  678. package/build/esm/text-transform/index.js +1 -0
  679. package/build/esm/text-transform/transformers.d.ts +2 -0
  680. package/build/esm/text-transform/transformers.js +3 -2
  681. package/build/esm/text-transform/utils.js +6 -1
  682. package/build/esm/utils/blocks.d.ts +1 -1
  683. package/build/esm/utils/blocks.js +41 -1
  684. package/build/esm/utils/imageCompress.js +1 -1
  685. package/build/esm/utils/theme.d.ts +1 -1
  686. package/package.json +87 -24
  687. package/server/components/constants.d.ts +3 -1
  688. package/server/components/constants.js +4 -2
  689. package/server/models/common.d.ts +6 -1
  690. package/server/models/common.js +6 -1
  691. package/server/models/constructor-items/blocks.d.ts +17 -13
  692. package/server/models/constructor-items/common.d.ts +3 -5
  693. package/server/models/constructor.d.ts +2 -2
  694. package/server/models/customization.d.ts +5 -7
  695. package/server/models/navigation.d.ts +4 -2
  696. package/server/text-transform/config.js +19 -1
  697. package/server/text-transform/filter.d.ts +20 -0
  698. package/server/text-transform/filter.js +63 -0
  699. package/server/text-transform/index.d.ts +1 -0
  700. package/server/text-transform/index.js +1 -0
  701. package/server/text-transform/transformers.d.ts +2 -0
  702. package/server/text-transform/transformers.js +3 -2
  703. package/server/text-transform/utils.js +6 -1
  704. package/server/utils/blocks.d.ts +1 -1
  705. package/server/utils/blocks.js +43 -3
  706. package/server/utils/theme.d.ts +1 -1
  707. package/styles/colors/dark.scss +6 -0
  708. package/styles/colors/light.scss +6 -0
  709. package/styles/colors/social.scss +10 -0
  710. package/styles/mixins.scss +27 -29
  711. package/styles/root.scss +28 -14
  712. package/styles/storybook/common.scss +6 -6
  713. package/styles/storybook/palette.scss +6 -6
  714. package/styles/storybook/typography.scss +46 -46
  715. package/styles/styles.css +15 -15
  716. package/styles/variables.scss +0 -8
  717. package/styles/yfm.scss +12 -12
  718. package/widget/index.js +1 -0
  719. package/CHANGELOG.md +0 -1266
  720. package/build/cjs/context/theme/ThemeProvider.d.ts +0 -22
  721. package/build/cjs/context/theme/ThemeProvider.js +0 -49
  722. package/build/cjs/context/theme/ThemeValueContext.d.ts +0 -7
  723. package/build/cjs/context/theme/ThemeValueContext.js +0 -9
  724. package/build/cjs/context/theme/useThemeValue.d.ts +0 -2
  725. package/build/cjs/context/theme/useThemeValue.js +0 -11
  726. package/build/cjs/editor/Components/AddBlock/AddBlock.d.ts +0 -7
  727. package/build/cjs/editor/Components/EditBlock/EditBlock.d.ts +0 -4
  728. package/build/cjs/editor/Components/EditBlock/EditBlock.js +0 -32
  729. package/build/cjs/editor/Containers/Editor.d.ts +0 -2
  730. package/build/cjs/editor/Containers/Editor.js +0 -24
  731. package/build/cjs/navigation/components/Header/Header.css +0 -98
  732. package/build/cjs/navigation/components/Header/Header.d.ts +0 -8
  733. package/build/cjs/navigation/components/Header/Header.js +0 -68
  734. package/build/cjs/navigation/components/NavigationDropdownItem/NavigationDropdownItem.d.ts +0 -11
  735. package/build/cjs/navigation/components/NavigationDropdownItem/NavigationDropdownItem.js +0 -15
  736. package/build/cjs/navigation/components/NavigationListItem/NavigationListItem.css +0 -27
  737. package/build/cjs/navigation/constants.d.ts +0 -6
  738. package/build/esm/context/theme/ThemeProvider.d.ts +0 -22
  739. package/build/esm/context/theme/ThemeProvider.js +0 -44
  740. package/build/esm/context/theme/ThemeValueContext.d.ts +0 -7
  741. package/build/esm/context/theme/ThemeValueContext.js +0 -5
  742. package/build/esm/context/theme/useThemeValue.d.ts +0 -2
  743. package/build/esm/context/theme/useThemeValue.js +0 -6
  744. package/build/esm/editor/Components/AddBlock/AddBlock.d.ts +0 -8
  745. package/build/esm/editor/Components/EditBlock/EditBlock.d.ts +0 -5
  746. package/build/esm/editor/Components/EditBlock/EditBlock.js +0 -30
  747. package/build/esm/editor/Containers/Editor.d.ts +0 -2
  748. package/build/esm/editor/Containers/Editor.js +0 -20
  749. package/build/esm/navigation/components/Header/Header.css +0 -98
  750. package/build/esm/navigation/components/Header/Header.d.ts +0 -9
  751. package/build/esm/navigation/components/Header/Header.js +0 -64
  752. package/build/esm/navigation/components/NavigationDropdownItem/NavigationDropdownItem.d.ts +0 -11
  753. package/build/esm/navigation/components/NavigationDropdownItem/NavigationDropdownItem.js +0 -13
  754. package/build/esm/navigation/components/NavigationListItem/NavigationListItem.css +0 -27
  755. package/build/esm/navigation/constants.d.ts +0 -6
@@ -17,12 +17,14 @@ export declare const SliderProps: {
17
17
  };
18
18
  };
19
19
  slidesToShow: {
20
- anyOf: ({
20
+ oneOf: ({
21
21
  type: string;
22
22
  additionalProperties: boolean;
23
23
  properties: {};
24
+ optionName: string;
24
25
  } | {
25
26
  type: string;
27
+ optionName: string;
26
28
  additionalProperties?: undefined;
27
29
  properties?: undefined;
28
30
  })[];
@@ -47,7 +49,6 @@ export declare const SliderProps: {
47
49
  properties: {
48
50
  source: {
49
51
  type: string;
50
- enum: string[];
51
52
  };
52
53
  /**
53
54
  * @deprecated
@@ -55,12 +56,6 @@ export declare const SliderProps: {
55
56
  minCount: {
56
57
  type: string;
57
58
  };
58
- /**
59
- * @deprecated Will be moved to params
60
- */
61
- serviceId: {
62
- type: string;
63
- };
64
59
  params: {
65
60
  type: string;
66
61
  patternProperties: {
@@ -70,6 +65,7 @@ export declare const SliderProps: {
70
65
  };
71
66
  };
72
67
  };
68
+ disabled: boolean;
73
69
  };
74
70
  children: {
75
71
  type: string;
@@ -85,6 +81,10 @@ export declare const SliderBlock: {
85
81
  properties: {
86
82
  title: {
87
83
  oneOf: ({
84
+ type: string;
85
+ optionName: string;
86
+ } | {
87
+ optionName: string;
88
88
  type: string;
89
89
  additionalProperties: boolean;
90
90
  required: string[];
@@ -104,13 +104,12 @@ export declare const SliderBlock: {
104
104
  type: string;
105
105
  };
106
106
  };
107
- } | {
108
- type: string;
109
107
  })[];
110
108
  };
111
109
  description: {
112
110
  type: string;
113
111
  contentType: string;
112
+ inputType: string;
114
113
  };
115
114
  dots: {
116
115
  type: string;
@@ -130,12 +129,14 @@ export declare const SliderBlock: {
130
129
  };
131
130
  };
132
131
  slidesToShow: {
133
- anyOf: ({
132
+ oneOf: ({
134
133
  type: string;
135
134
  additionalProperties: boolean;
136
135
  properties: {};
136
+ optionName: string;
137
137
  } | {
138
138
  type: string;
139
+ optionName: string;
139
140
  additionalProperties?: undefined;
140
141
  properties?: undefined;
141
142
  })[];
@@ -160,7 +161,6 @@ export declare const SliderBlock: {
160
161
  properties: {
161
162
  source: {
162
163
  type: string;
163
- enum: string[];
164
164
  };
165
165
  /**
166
166
  * @deprecated
@@ -168,12 +168,6 @@ export declare const SliderBlock: {
168
168
  minCount: {
169
169
  type: string;
170
170
  };
171
- /**
172
- * @deprecated Will be moved to params
173
- */
174
- serviceId: {
175
- type: string;
176
- };
177
171
  params: {
178
172
  type: string;
179
173
  patternProperties: {
@@ -183,6 +177,7 @@ export declare const SliderBlock: {
183
177
  };
184
178
  };
185
179
  };
180
+ disabled: boolean;
186
181
  };
187
182
  children: {
188
183
  type: string;
@@ -215,7 +210,9 @@ export declare const SliderBlock: {
215
210
  type: string;
216
211
  };
217
212
  type: {};
218
- when: {};
213
+ when: {
214
+ type: string;
215
+ };
219
216
  };
220
217
  };
221
218
  };
@@ -8,7 +8,8 @@ const LoadableProps = {
8
8
  properties: {
9
9
  source: {
10
10
  type: 'string',
11
- enum: ['events', 'blog', 'services'],
11
+ // add loadable sources here if you use it in your project
12
+ // enum: ['my-loadable-source-1', 'my-loadable-source-1'],
12
13
  },
13
14
  /**
14
15
  * @deprecated
@@ -16,10 +17,6 @@ const LoadableProps = {
16
17
  minCount: {
17
18
  type: 'number',
18
19
  },
19
- /**
20
- * @deprecated Will be moved to params
21
- */
22
- serviceId: { type: 'number' },
23
20
  params: {
24
21
  type: 'object',
25
22
  patternProperties: {
@@ -29,6 +26,8 @@ const LoadableProps = {
29
26
  },
30
27
  },
31
28
  },
29
+ // remove it in your custom validator schema if you use loadable
30
+ disabled: true,
32
31
  };
33
32
  const DisclaimerProps = {
34
33
  additionalProperties: false,
@@ -12,9 +12,9 @@ export interface GetSlidesToShowParams {
12
12
  }
13
13
  export declare function getSlidesToShowWithDefaults({ contentLength, breakpoints, mobileFullscreen, }: GetSlidesToShowParams): {
14
14
  sm: number;
15
- md: number;
16
- lg: number;
17
15
  xl: number;
16
+ lg: number;
17
+ md: number;
18
18
  };
19
19
  export declare function getSliderResponsiveParams(breakpoints: SliderBreakpointParams): {
20
20
  breakpoint: number;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getSlidesToShowCount = exports.getSlidesCountByBreakpoint = exports.getSliderResponsiveParams = exports.getSlidesToShowWithDefaults = exports.DEFAULT_SLIDE_BREAKPOINTS = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const lodash_1 = tslib_1.__importDefault(require("lodash"));
4
6
  const constants_1 = require("../../constants");
5
7
  const models_1 = require("./models");
6
8
  exports.DEFAULT_SLIDE_BREAKPOINTS = {
@@ -18,7 +20,7 @@ function getSlidesToShowWithDefaults({ contentLength, breakpoints, mobileFullscr
18
20
  else {
19
21
  result = breakpoints || exports.DEFAULT_SLIDE_BREAKPOINTS;
20
22
  }
21
- return Object.assign(Object.assign(Object.assign({}, exports.DEFAULT_SLIDE_BREAKPOINTS), result), { sm: !mobileFullscreen && contentLength > 1 ? exports.DEFAULT_SLIDE_BREAKPOINTS.sm : 1 });
23
+ return Object.assign(Object.assign(Object.assign({}, exports.DEFAULT_SLIDE_BREAKPOINTS), lodash_1.default.pickBy(result, (value) => !isNaN(value))), { sm: !mobileFullscreen && contentLength > 1 ? exports.DEFAULT_SLIDE_BREAKPOINTS.sm : 1 });
22
24
  }
23
25
  exports.getSlidesToShowWithDefaults = getSlidesToShowWithDefaults;
24
26
  function getSliderResponsiveParams(breakpoints) {
@@ -5,18 +5,18 @@
5
5
  /* use this for style redefinitions to awoid problems with
6
6
  unpredictable css rules order in build */
7
7
  .pc-table-block__title {
8
- font-size: var(--yc-text-display-2-font-size);
9
- line-height: var(--yc-text-display-2-line-height);
8
+ font-size: var(--g-text-display-2-font-size);
9
+ line-height: var(--g-text-display-2-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
  top: calc(var(--header-height) + 32px);
13
13
  position: sticky;
14
14
  margin-right: 32px;
15
15
  }
16
16
  @media (max-width: 576px) {
17
17
  .pc-table-block__title {
18
- font-size: var(--yc-text-display-1-font-size);
19
- line-height: var(--yc-text-display-1-line-height);
18
+ font-size: var(--g-text-display-1-font-size);
19
+ line-height: var(--g-text-display-1-line-height);
20
20
  }
21
21
  }
22
22
  .pc-table-block__table {
@@ -16,8 +16,11 @@ export declare const TableBlock: {
16
16
  items: {
17
17
  type: string;
18
18
  items: {
19
- type: string[];
20
- contentType: string;
19
+ oneOf: {
20
+ type: string;
21
+ contentType: string;
22
+ optionName: string;
23
+ }[];
21
24
  };
22
25
  };
23
26
  };
@@ -40,7 +43,9 @@ export declare const TableBlock: {
40
43
  enum: string[];
41
44
  };
42
45
  type: {};
43
- when: {};
46
+ when: {
47
+ type: string;
48
+ };
44
49
  };
45
50
  };
46
51
  anchor: {
@@ -68,7 +73,9 @@ export declare const TableBlock: {
68
73
  type: string;
69
74
  };
70
75
  type: {};
71
- when: {};
76
+ when: {
77
+ type: string;
78
+ };
72
79
  };
73
80
  };
74
81
  };
@@ -17,8 +17,18 @@ exports.TableBlock = {
17
17
  items: {
18
18
  type: 'array',
19
19
  items: {
20
- type: ['string', 'number'],
21
- contentType: 'text',
20
+ oneOf: [
21
+ {
22
+ type: 'string',
23
+ contentType: 'text',
24
+ optionName: 'text',
25
+ },
26
+ {
27
+ type: 'number',
28
+ contentType: 'text',
29
+ optionName: 'number',
30
+ },
31
+ ],
22
32
  },
23
33
  },
24
34
  }, legend: {
@@ -59,10 +59,10 @@ unpredictable css rules order in build */
59
59
  border-radius: var(--pc-border-radius);
60
60
  }
61
61
  .pc-tabs-block__caption {
62
- font-size: var(--yc-text-body-2-font-size);
63
- line-height: var(--yc-text-body-2-line-height);
62
+ font-size: var(--g-text-body-2-font-size);
63
+ line-height: var(--g-text-body-2-line-height);
64
64
  margin: 12px 0 0;
65
- color: var(--yc-color-text-secondary);
65
+ color: var(--g-color-text-secondary);
66
66
  }
67
67
  .pc-tabs-block__content {
68
68
  display: flex;
@@ -81,10 +81,10 @@ unpredictable css rules order in build */
81
81
  margin: 0 auto 12px;
82
82
  }
83
83
  .pc-tabs-block__content-title.pc-tabs-block__content-title > * {
84
- font-size: var(--yc-text-header-1-font-size);
85
- line-height: var(--yc-text-header-1-line-height);
84
+ font-size: var(--g-text-header-1-font-size);
85
+ line-height: var(--g-text-header-1-line-height);
86
86
  color: var(--pc-text-header-color);
87
- font-weight: var(--yc-text-accent-font-weight);
87
+ font-weight: var(--g-text-accent-font-weight);
88
88
  }
89
89
 
90
90
  @media (max-width: 769px) {
@@ -1,3 +1,3 @@
1
1
  import { TabsBlockProps } from '../../models';
2
- export declare const TabsBlock: ({ items, title, description, animated, tabsColSizes, centered, direction, }: TabsBlockProps) => JSX.Element;
2
+ export declare const TabsBlock: ({ items, title, description, animated, tabsColSizes, centered, direction, contentSize, }: TabsBlockProps) => JSX.Element;
3
3
  export default TabsBlock;
@@ -10,16 +10,16 @@ const utils_1 = require("../../components/Media/Image/utils");
10
10
  const Media_1 = tslib_1.__importDefault(require("../../components/Media/Media"));
11
11
  const Title_1 = tslib_1.__importDefault(require("../../components/Title/Title"));
12
12
  const VideoBlock_1 = require("../../components/VideoBlock/VideoBlock");
13
- const ThemeValueContext_1 = require("../../context/theme/ThemeValueContext");
13
+ const theme_1 = require("../../context/theme");
14
14
  const grid_1 = require("../../grid");
15
15
  const sub_blocks_1 = require("../../sub-blocks");
16
16
  const utils_2 = require("../../utils");
17
17
  const b = (0, utils_2.block)('tabs-block');
18
- const TabsBlock = ({ items, title, description, animated, tabsColSizes, centered, direction = 'media-content', }) => {
18
+ const TabsBlock = ({ items, title, description, animated, tabsColSizes, centered, direction = 'media-content', contentSize = 's', }) => {
19
19
  var _a;
20
20
  const [activeTab, setActiveTab] = (0, react_1.useState)(items[0].tabName);
21
21
  const [play, setPlay] = (0, react_1.useState)(false);
22
- const { themeValue: theme } = (0, react_1.useContext)(ThemeValueContext_1.ThemeValueContext);
22
+ const theme = (0, theme_1.useTheme)();
23
23
  const tabs = items.map(({ tabName }) => ({ title: tabName, id: tabName }));
24
24
  const activeTabData = items.find(({ tabName }) => tabName === activeTab);
25
25
  const isReverse = direction === 'content-media';
@@ -37,7 +37,7 @@ const TabsBlock = ({ items, title, description, animated, tabsColSizes, centered
37
37
  react_1.default.createElement("div", { className: b('content-wrapper', {
38
38
  margin: Boolean(((activeTabData === null || activeTabData === void 0 ? void 0 : activeTabData.media) || imageProps) && !isReverse),
39
39
  }) },
40
- react_1.default.createElement(sub_blocks_1.Content, { title: activeTabData.title, text: activeTabData.text, additionalInfo: activeTabData.additionalInfo, size: "s", links: [
40
+ react_1.default.createElement(sub_blocks_1.Content, { title: activeTabData.title, text: activeTabData.text, additionalInfo: activeTabData.additionalInfo, size: contentSize, links: [
41
41
  ...(activeTabData.link ? [activeTabData.link] : []),
42
42
  ...(activeTabData.links || []),
43
43
  ], buttons: activeTabData.buttons, colSizes: { all: 12 } }))));
@@ -11,14 +11,15 @@ export declare const tabsItem: {
11
11
  contentType: string;
12
12
  };
13
13
  media: {
14
- oneOf: ({
14
+ oneOf: (({
15
15
  type: string;
16
16
  properties: {
17
17
  color: {
18
18
  type: string;
19
19
  };
20
20
  image: {
21
- anyOf: ({
21
+ oneOf: ({
22
+ optionName: string;
22
23
  oneOf: ({
23
24
  type: string;
24
25
  properties: {
@@ -29,7 +30,10 @@ export declare const tabsItem: {
29
30
  } | {
30
31
  type: string;
31
32
  pattern: string;
33
+ optionName: string;
32
34
  })[];
35
+ type?: undefined;
36
+ items?: undefined;
33
37
  } | {
34
38
  type: string;
35
39
  items: {
@@ -43,8 +47,10 @@ export declare const tabsItem: {
43
47
  } | {
44
48
  type: string;
45
49
  pattern: string;
50
+ optionName: string;
46
51
  })[];
47
52
  };
53
+ optionName: string;
48
54
  })[];
49
55
  };
50
56
  video: {
@@ -59,7 +65,8 @@ export declare const tabsItem: {
59
65
  };
60
66
  };
61
67
  loop: {
62
- anyOf: ({
68
+ oneOf: ({
69
+ optionName: string;
63
70
  type: string;
64
71
  additionalProperties: boolean;
65
72
  required: string[];
@@ -73,6 +80,7 @@ export declare const tabsItem: {
73
80
  };
74
81
  } | {
75
82
  type: string;
83
+ optionName: string;
76
84
  })[];
77
85
  };
78
86
  type: {
@@ -82,13 +90,13 @@ export declare const tabsItem: {
82
90
  muted: {
83
91
  type: string;
84
92
  };
85
- playing: {
93
+ autoplay: {
86
94
  type: string;
87
95
  };
88
96
  elapsedTime: {
89
97
  type: string;
90
98
  };
91
- playIcon: {
99
+ playButton: {
92
100
  type: string;
93
101
  additionalProperties: boolean;
94
102
  properties: {
@@ -126,6 +134,10 @@ export declare const tabsItem: {
126
134
  };
127
135
  dataLens: {
128
136
  oneOf: ({
137
+ type: string;
138
+ optionName: string;
139
+ } | {
140
+ optionName: string;
129
141
  type: string;
130
142
  additionalProperties: boolean;
131
143
  required: string[];
@@ -138,19 +150,98 @@ export declare const tabsItem: {
138
150
  enum: string[];
139
151
  };
140
152
  };
141
- } | {
142
- type: string;
143
153
  })[];
144
154
  };
145
155
  fullscreen: {
146
156
  type: string;
147
157
  };
158
+ analyticsEvents: {
159
+ anyOf: ({
160
+ type: string;
161
+ additionalProperties: {
162
+ type: string;
163
+ };
164
+ required: string[];
165
+ properties: {
166
+ name: {
167
+ type: string;
168
+ };
169
+ type: {
170
+ type: string;
171
+ };
172
+ counters: {
173
+ type: string;
174
+ additionalProperties: boolean;
175
+ required: never[];
176
+ properties: {
177
+ include: {
178
+ type: string;
179
+ items: {
180
+ type: string;
181
+ };
182
+ };
183
+ exclude: {
184
+ type: string;
185
+ items: {
186
+ type: string;
187
+ };
188
+ };
189
+ };
190
+ };
191
+ context: {
192
+ type: string;
193
+ };
194
+ };
195
+ } | {
196
+ type: string;
197
+ items: {
198
+ type: string;
199
+ additionalProperties: {
200
+ type: string;
201
+ };
202
+ required: string[];
203
+ properties: {
204
+ name: {
205
+ type: string;
206
+ };
207
+ type: {
208
+ type: string;
209
+ };
210
+ counters: {
211
+ type: string;
212
+ additionalProperties: boolean;
213
+ required: never[];
214
+ properties: {
215
+ include: {
216
+ type: string;
217
+ items: {
218
+ type: string;
219
+ };
220
+ };
221
+ exclude: {
222
+ type: string;
223
+ items: {
224
+ type: string;
225
+ };
226
+ };
227
+ };
228
+ };
229
+ context: {
230
+ type: string;
231
+ };
232
+ };
233
+ };
234
+ })[];
235
+ };
148
236
  };
149
- } | {
237
+ } & {
238
+ optionName: string;
239
+ }) | {
150
240
  type: string;
151
241
  additionalProperties: boolean;
152
242
  required: import("../..").Theme[];
153
243
  properties: {};
244
+ optionName: string;
154
245
  })[];
155
246
  };
156
247
  link: {
@@ -181,7 +272,8 @@ export declare const tabsItem: {
181
272
  enum: string[];
182
273
  };
183
274
  analyticsEvents: {
184
- anyOf: ({
275
+ oneOf: ({
276
+ optionName: string;
185
277
  type: string;
186
278
  additionalProperties: {
187
279
  type: string;
@@ -217,6 +309,7 @@ export declare const tabsItem: {
217
309
  type: string;
218
310
  };
219
311
  };
312
+ items?: undefined;
220
313
  } | {
221
314
  type: string;
222
315
  items: {
@@ -256,14 +349,17 @@ export declare const tabsItem: {
256
349
  };
257
350
  };
258
351
  };
352
+ optionName: string;
259
353
  })[];
260
354
  };
261
355
  type: {};
262
- when: {};
356
+ when: {
357
+ type: string;
358
+ };
263
359
  };
264
360
  };
265
361
  image: {
266
- oneOf: ({
362
+ oneOf: (({
267
363
  oneOf: ({
268
364
  type: string;
269
365
  properties: {
@@ -274,16 +370,25 @@ export declare const tabsItem: {
274
370
  } | {
275
371
  type: string;
276
372
  pattern: string;
373
+ optionName: string;
277
374
  })[];
278
- } | {
375
+ } & {
376
+ optionName: string;
377
+ }) | {
279
378
  type: string;
280
379
  additionalProperties: boolean;
281
380
  required: import("../..").Theme[];
282
381
  properties: {};
382
+ optionName: string;
283
383
  })[];
284
384
  };
285
385
  title?: {
286
386
  oneOf: ({
387
+ type: string;
388
+ contentType: string;
389
+ optionName: string;
390
+ } | {
391
+ optionName: string;
287
392
  type: string;
288
393
  additionalProperties: boolean;
289
394
  required: string[];
@@ -303,14 +408,13 @@ export declare const tabsItem: {
303
408
  type: string;
304
409
  };
305
410
  };
306
- } | {
307
- type: string;
308
- contentType: string;
411
+ contentType?: undefined;
309
412
  })[];
310
413
  } | undefined;
311
414
  text?: {
312
415
  type: string;
313
416
  contentType: string;
417
+ inputType: string;
314
418
  } | undefined;
315
419
  additionalInfo?: {
316
420
  type: string;
@@ -346,6 +450,17 @@ export declare const tabsItem: {
346
450
  type: string;
347
451
  enum: string[];
348
452
  } | undefined;
453
+ list?: {
454
+ type: string;
455
+ items: {
456
+ type: string;
457
+ properties: {
458
+ when: {
459
+ type: string;
460
+ };
461
+ };
462
+ };
463
+ } | undefined;
349
464
  };
350
465
  };
351
466
  export declare const TabsBlock: {
@@ -372,8 +487,16 @@ export declare const TabsBlock: {
372
487
  };
373
488
  };
374
489
  };
490
+ contentSize: {
491
+ type: string;
492
+ enum: string[];
493
+ };
375
494
  title: {
376
495
  oneOf: ({
496
+ type: string;
497
+ optionName: string;
498
+ } | {
499
+ optionName: string;
377
500
  type: string;
378
501
  additionalProperties: boolean;
379
502
  required: string[];
@@ -393,13 +516,12 @@ export declare const TabsBlock: {
393
516
  type: string;
394
517
  };
395
518
  };
396
- } | {
397
- type: string;
398
519
  })[];
399
520
  };
400
521
  description: {
401
522
  type: string;
402
523
  contentType: string;
524
+ inputType: string;
403
525
  };
404
526
  anchor: {
405
527
  type: string;
@@ -426,7 +548,9 @@ export declare const TabsBlock: {
426
548
  type: string;
427
549
  };
428
550
  type: {};
429
- when: {};
551
+ when: {
552
+ type: string;
553
+ };
430
554
  };
431
555
  };
432
556
  };
@@ -31,6 +31,9 @@ exports.TabsBlock = {
31
31
  properties: Object.assign(Object.assign(Object.assign({}, common_1.BlockBaseProps), common_1.BlockHeaderProps), { tabsColSizes: common_1.containerSizesArray.reduce((acc, size) => (Object.assign(Object.assign({}, acc), { [size]: common_1.sizeNumber })), {}), direction: {
32
32
  type: 'string',
33
33
  enum: common_1.mediaDirection,
34
- }, centered: { type: 'boolean' }, items: (0, utils_1.filteredArray)(exports.tabsItem) }),
34
+ }, centered: { type: 'boolean' }, items: (0, utils_1.filteredArray)(exports.tabsItem), contentSize: {
35
+ type: 'string',
36
+ enum: common_1.contentSizes,
37
+ } }),
35
38
  },
36
39
  };
@@ -1,8 +1,7 @@
1
- import { ClassNameProps } from '../../models';
1
+ import { ClassNameProps, QAProps } from '../../models';
2
2
  export declare const qaIdByDefault = "qa-anchor";
3
- export interface AnchorProps extends ClassNameProps {
3
+ export interface AnchorProps extends ClassNameProps, QAProps {
4
4
  id: string;
5
- qa?: string;
6
5
  }
7
6
  declare const Anchor: ({ id, className, qa }: AnchorProps) => JSX.Element;
8
7
  export default Anchor;