@gravity-ui/blog-constructor 7.0.0-alpha.2 → 7.0.0-beta.2
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.
- package/build/cjs/blocks/Author/Author.d.ts +2 -3
- package/build/cjs/blocks/Author/Author.js +13 -13
- package/build/cjs/blocks/Author/Author.js.map +1 -0
- package/build/cjs/blocks/Author/schema.js +4 -3
- package/build/cjs/blocks/Author/schema.js.map +1 -0
- package/build/cjs/blocks/Banner/Banner.d.ts +2 -3
- package/build/cjs/blocks/Banner/Banner.js +11 -15
- package/build/cjs/blocks/Banner/Banner.js.map +1 -0
- package/build/cjs/blocks/Banner/schema.js +4 -3
- package/build/cjs/blocks/Banner/schema.js.map +1 -0
- package/build/cjs/blocks/CTA/CTA.d.ts +2 -3
- package/build/cjs/blocks/CTA/CTA.js +19 -20
- package/build/cjs/blocks/CTA/CTA.js.map +1 -0
- package/build/cjs/blocks/CTA/schema.js +4 -3
- package/build/cjs/blocks/CTA/schema.js.map +1 -0
- package/build/cjs/blocks/ColoredText/ColoredText.d.ts +2 -3
- package/build/cjs/blocks/ColoredText/ColoredText.js +9 -12
- package/build/cjs/blocks/ColoredText/ColoredText.js.map +1 -0
- package/build/cjs/blocks/ColoredText/schema.js +4 -3
- package/build/cjs/blocks/ColoredText/schema.js.map +1 -0
- package/build/cjs/blocks/Feed/Feed.d.ts +2 -3
- package/build/cjs/blocks/Feed/Feed.js +31 -31
- package/build/cjs/blocks/Feed/Feed.js.map +1 -0
- package/build/cjs/blocks/Feed/reducer.d.ts +1 -1
- package/build/cjs/blocks/Feed/reducer.js +3 -2
- package/build/cjs/blocks/Feed/reducer.js.map +1 -0
- package/build/cjs/blocks/Feed/schema.js +3 -2
- package/build/cjs/blocks/Feed/schema.js.map +1 -0
- package/build/cjs/blocks/Form/Form.d.ts +2 -3
- package/build/cjs/blocks/Form/Form.js +10 -10
- package/build/cjs/blocks/Form/Form.js.map +1 -0
- package/build/cjs/blocks/Form/schema.js +4 -3
- package/build/cjs/blocks/Form/schema.js.map +1 -0
- package/build/cjs/blocks/Header/Header.d.ts +2 -3
- package/build/cjs/blocks/Header/Header.js +18 -18
- package/build/cjs/blocks/Header/Header.js.map +1 -0
- package/build/cjs/blocks/Header/schema.d.ts +3 -0
- package/build/cjs/blocks/Header/schema.js +4 -3
- package/build/cjs/blocks/Header/schema.js.map +1 -0
- package/build/cjs/blocks/Layout/Layout.d.ts +3 -3
- package/build/cjs/blocks/Layout/Layout.js +12 -13
- package/build/cjs/blocks/Layout/Layout.js.map +1 -0
- package/build/cjs/blocks/Layout/schema.js +4 -3
- package/build/cjs/blocks/Layout/schema.js.map +1 -0
- package/build/cjs/blocks/Media/Media.d.ts +2 -3
- package/build/cjs/blocks/Media/Media.js +12 -15
- package/build/cjs/blocks/Media/Media.js.map +1 -0
- package/build/cjs/blocks/Media/schema.d.ts +3 -0
- package/build/cjs/blocks/Media/schema.js +4 -3
- package/build/cjs/blocks/Media/schema.js.map +1 -0
- package/build/cjs/blocks/Meta/Meta.d.ts +2 -3
- package/build/cjs/blocks/Meta/Meta.js +22 -23
- package/build/cjs/blocks/Meta/Meta.js.map +1 -0
- package/build/cjs/blocks/Meta/schema.js +4 -3
- package/build/cjs/blocks/Meta/schema.js.map +1 -0
- package/build/cjs/blocks/Suggest/Suggest.d.ts +2 -3
- package/build/cjs/blocks/Suggest/Suggest.js +15 -14
- package/build/cjs/blocks/Suggest/Suggest.js.map +1 -0
- package/build/cjs/blocks/Suggest/schema.js +4 -3
- package/build/cjs/blocks/Suggest/schema.js.map +1 -0
- package/build/cjs/blocks/YFM/YFM.d.ts +2 -3
- package/build/cjs/blocks/YFM/YFM.js +10 -11
- package/build/cjs/blocks/YFM/YFM.js.map +1 -0
- package/build/cjs/blocks/YFM/schema.js +4 -3
- package/build/cjs/blocks/YFM/schema.js.map +1 -0
- package/build/cjs/blocks/constants.js +2 -1
- package/build/cjs/blocks/constants.js.map +1 -0
- package/build/cjs/components/FeedHeader/FeedHeader.d.ts +3 -4
- package/build/cjs/components/FeedHeader/FeedHeader.js +10 -14
- package/build/cjs/components/FeedHeader/FeedHeader.js.map +1 -0
- package/build/cjs/components/FeedHeader/components/Controls/Controls.d.ts +4 -4
- package/build/cjs/components/FeedHeader/components/Controls/Controls.js +30 -40
- package/build/cjs/components/FeedHeader/components/Controls/Controls.js.map +1 -0
- package/build/cjs/components/FeedHeader/components/Controls/customRenders.d.ts +2 -3
- package/build/cjs/components/FeedHeader/components/Controls/customRenders.js +13 -9
- package/build/cjs/components/FeedHeader/components/Controls/customRenders.js.map +1 -0
- package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.d.ts +2 -2
- package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.js +5 -7
- package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.js.map +1 -0
- package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +1 -1
- package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.d.ts +2 -3
- package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.js +13 -17
- package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.js.map +1 -0
- package/build/cjs/components/MetaWrapper/MetaWrapper.d.ts +1 -1
- package/build/cjs/components/MetaWrapper/MetaWrapper.js +4 -4
- package/build/cjs/components/MetaWrapper/MetaWrapper.js.map +1 -0
- package/build/cjs/components/Paginator/Paginator.d.ts +2 -3
- package/build/cjs/components/Paginator/Paginator.js +25 -29
- package/build/cjs/components/Paginator/Paginator.js.map +1 -0
- package/build/cjs/components/Paginator/components/NavigationButton.d.ts +2 -3
- package/build/cjs/components/Paginator/components/NavigationButton.js +7 -7
- package/build/cjs/components/Paginator/components/NavigationButton.js.map +1 -0
- package/build/cjs/components/Paginator/components/PaginatorItem.d.ts +2 -3
- package/build/cjs/components/Paginator/components/PaginatorItem.js +13 -11
- package/build/cjs/components/Paginator/components/PaginatorItem.js.map +1 -0
- package/build/cjs/components/Paginator/types.d.ts +3 -3
- package/build/cjs/components/Paginator/types.js +2 -1
- package/build/cjs/components/Paginator/types.js.map +1 -0
- package/build/cjs/components/Paginator/utils.d.ts +2 -2
- package/build/cjs/components/Paginator/utils.js +2 -1
- package/build/cjs/components/Paginator/utils.js.map +1 -0
- package/build/cjs/components/PostCard/PostCard.css +7 -8
- package/build/cjs/components/PostCard/PostCard.d.ts +2 -3
- package/build/cjs/components/PostCard/PostCard.js +16 -24
- package/build/cjs/components/PostCard/PostCard.js.map +1 -0
- package/build/cjs/components/PostInfo/PostInfo.d.ts +2 -3
- package/build/cjs/components/PostInfo/PostInfo.js +13 -15
- package/build/cjs/components/PostInfo/PostInfo.js.map +1 -0
- package/build/cjs/components/PostInfo/SuggestPostInfo.d.ts +2 -3
- package/build/cjs/components/PostInfo/SuggestPostInfo.js +12 -16
- package/build/cjs/components/PostInfo/SuggestPostInfo.js.map +1 -0
- package/build/cjs/components/PostInfo/components/Date.d.ts +2 -3
- package/build/cjs/components/PostInfo/components/Date.js +10 -8
- package/build/cjs/components/PostInfo/components/Date.js.map +1 -0
- package/build/cjs/components/PostInfo/components/ReadingTime.d.ts +2 -3
- package/build/cjs/components/PostInfo/components/ReadingTime.js +7 -10
- package/build/cjs/components/PostInfo/components/ReadingTime.js.map +1 -0
- package/build/cjs/components/PostInfo/components/Save.d.ts +2 -3
- package/build/cjs/components/PostInfo/components/Save.js +14 -16
- package/build/cjs/components/PostInfo/components/Save.js.map +1 -0
- package/build/cjs/components/PostInfo/components/Sharing.d.ts +1 -2
- package/build/cjs/components/PostInfo/components/Sharing.js +17 -17
- package/build/cjs/components/PostInfo/components/Sharing.js.map +1 -0
- package/build/cjs/components/Posts/Posts.d.ts +4 -4
- package/build/cjs/components/Posts/Posts.js +16 -28
- package/build/cjs/components/Posts/Posts.js.map +1 -0
- package/build/cjs/components/PostsEmpty/PostsEmpty.d.ts +1 -2
- package/build/cjs/components/PostsEmpty/PostsEmpty.js +6 -8
- package/build/cjs/components/PostsEmpty/PostsEmpty.js.map +1 -0
- package/build/cjs/components/PostsError/PostsError.d.ts +1 -2
- package/build/cjs/components/PostsError/PostsError.js +6 -10
- package/build/cjs/components/PostsError/PostsError.js.map +1 -0
- package/build/cjs/components/Prompt/Prompt.d.ts +1 -2
- package/build/cjs/components/Prompt/Prompt.js +10 -12
- package/build/cjs/components/Prompt/Prompt.js.map +1 -0
- package/build/cjs/components/PromptSignIn/PromptSignIn.d.ts +4 -4
- package/build/cjs/components/PromptSignIn/PromptSignIn.js +6 -5
- package/build/cjs/components/PromptSignIn/PromptSignIn.js.map +1 -0
- package/build/cjs/components/PromptSignIn/hooks/usePromptSignInProps.d.ts +2 -2
- package/build/cjs/components/PromptSignIn/hooks/usePromptSignInProps.js +6 -5
- package/build/cjs/components/PromptSignIn/hooks/usePromptSignInProps.js.map +1 -0
- package/build/cjs/components/Search/Search.d.ts +2 -3
- package/build/cjs/components/Search/Search.js +17 -17
- package/build/cjs/components/Search/Search.js.map +1 -0
- package/build/cjs/components/Wrapper/Wrapper.d.ts +3 -3
- package/build/cjs/components/Wrapper/Wrapper.js +7 -7
- package/build/cjs/components/Wrapper/Wrapper.js.map +1 -0
- package/build/cjs/constants.d.ts +2 -2
- package/build/cjs/constants.js +4 -3
- package/build/cjs/constants.js.map +1 -0
- package/build/cjs/constructor/BlogConstructorProvider.d.ts +7 -7
- package/build/cjs/constructor/BlogConstructorProvider.js +21 -19
- package/build/cjs/constructor/BlogConstructorProvider.js.map +1 -0
- package/build/cjs/constructor/blocksMap.d.ts +12 -12
- package/build/cjs/constructor/blocksMap.js +15 -14
- package/build/cjs/constructor/blocksMap.js.map +1 -0
- package/build/cjs/containers/BlogPage/BlogPage.d.ts +4 -4
- package/build/cjs/containers/BlogPage/BlogPage.js +22 -25
- package/build/cjs/containers/BlogPage/BlogPage.js.map +1 -0
- package/build/cjs/containers/BlogPostPage/BlogPostPage.css +18 -18
- package/build/cjs/containers/BlogPostPage/BlogPostPage.d.ts +6 -5
- package/build/cjs/containers/BlogPostPage/BlogPostPage.js +28 -30
- package/build/cjs/containers/BlogPostPage/BlogPostPage.js.map +1 -0
- package/build/cjs/contexts/DeviceContext.d.ts +2 -2
- package/build/cjs/contexts/DeviceContext.js +3 -2
- package/build/cjs/contexts/DeviceContext.js.map +1 -0
- package/build/cjs/contexts/FeedContext.d.ts +2 -2
- package/build/cjs/contexts/FeedContext.js +3 -2
- package/build/cjs/contexts/FeedContext.js.map +1 -0
- package/build/cjs/contexts/LikesContext.d.ts +2 -2
- package/build/cjs/contexts/LikesContext.js +3 -2
- package/build/cjs/contexts/LikesContext.js.map +1 -0
- package/build/cjs/contexts/LocaleContext.d.ts +2 -2
- package/build/cjs/contexts/LocaleContext.js +4 -3
- package/build/cjs/contexts/LocaleContext.js.map +1 -0
- package/build/cjs/contexts/MobileContext.d.ts +1 -1
- package/build/cjs/contexts/MobileContext.js +3 -2
- package/build/cjs/contexts/MobileContext.js.map +1 -0
- package/build/cjs/contexts/PostPageContext.d.ts +4 -2
- package/build/cjs/contexts/PostPageContext.js +3 -2
- package/build/cjs/contexts/PostPageContext.js.map +1 -0
- package/build/cjs/contexts/RouterContext.d.ts +2 -2
- package/build/cjs/contexts/RouterContext.js +3 -2
- package/build/cjs/contexts/RouterContext.js.map +1 -0
- package/build/cjs/contexts/SettingsContext.d.ts +1 -1
- package/build/cjs/contexts/SettingsContext.js +3 -2
- package/build/cjs/contexts/SettingsContext.js.map +1 -0
- package/build/cjs/contexts/theme/ThemeContext.d.ts +2 -2
- package/build/cjs/contexts/theme/ThemeContext.js +4 -3
- package/build/cjs/contexts/theme/ThemeContext.js.map +1 -0
- package/build/cjs/contexts/theme/ThemeProvider.d.ts +4 -4
- package/build/cjs/contexts/theme/ThemeProvider.js +9 -8
- package/build/cjs/contexts/theme/ThemeProvider.js.map +1 -0
- package/build/cjs/contexts/theme/ThemeValueContext.d.ts +1 -1
- package/build/cjs/contexts/theme/ThemeValueContext.js +3 -2
- package/build/cjs/contexts/theme/ThemeValueContext.js.map +1 -0
- package/build/cjs/contexts/theme/index.d.ts +6 -6
- package/build/cjs/contexts/theme/index.js +7 -6
- package/build/cjs/contexts/theme/index.js.map +1 -0
- package/build/cjs/contexts/theme/useTheme.d.ts +1 -1
- package/build/cjs/contexts/theme/useTheme.js +5 -5
- package/build/cjs/contexts/theme/useTheme.js.map +1 -0
- package/build/cjs/contexts/theme/useThemeValue.d.ts +1 -1
- package/build/cjs/contexts/theme/useThemeValue.js +5 -5
- package/build/cjs/contexts/theme/useThemeValue.js.map +1 -0
- package/build/cjs/contexts/theme/withTheme.d.ts +2 -2
- package/build/cjs/contexts/theme/withTheme.js +7 -6
- package/build/cjs/contexts/theme/withTheme.js.map +1 -0
- package/build/cjs/contexts/theme/withThemeValue.d.ts +2 -2
- package/build/cjs/contexts/theme/withThemeValue.js +7 -6
- package/build/cjs/contexts/theme/withThemeValue.js.map +1 -0
- package/build/cjs/counters/metrika.js +3 -3
- package/build/cjs/counters/metrika.js.map +1 -0
- package/build/cjs/counters/utils.js +2 -1
- package/build/cjs/counters/utils.js.map +1 -0
- package/build/cjs/hooks/useAriaAttributes.js +6 -4
- package/build/cjs/hooks/useAriaAttributes.js.map +1 -0
- package/build/cjs/hooks/useExtendedComponentMap.d.ts +18 -17
- package/build/cjs/hooks/useExtendedComponentMap.js +5 -4
- package/build/cjs/hooks/useExtendedComponentMap.js.map +1 -0
- package/build/cjs/hooks/useHover.d.ts +1 -1
- package/build/cjs/hooks/useHover.js +6 -6
- package/build/cjs/hooks/useHover.js.map +1 -0
- package/build/cjs/hooks/useIsIPhone.js +6 -4
- package/build/cjs/hooks/useIsIPhone.js.map +1 -0
- package/build/cjs/hooks/useLikes.d.ts +1 -1
- package/build/cjs/hooks/useLikes.js +8 -6
- package/build/cjs/hooks/useLikes.js.map +1 -0
- package/build/cjs/hooks/useOpenCloseTimer.js +6 -5
- package/build/cjs/hooks/useOpenCloseTimer.js.map +1 -0
- package/build/cjs/i18n/index.d.ts +5 -1
- package/build/cjs/i18n/index.js +3 -2
- package/build/cjs/i18n/index.js.map +1 -0
- package/build/cjs/icons/Close.d.ts +2 -2
- package/build/cjs/icons/Close.js +5 -6
- package/build/cjs/icons/Close.js.map +1 -0
- package/build/cjs/icons/DropdownArrow.d.ts +2 -2
- package/build/cjs/icons/DropdownArrow.js +5 -6
- package/build/cjs/icons/DropdownArrow.js.map +1 -0
- package/build/cjs/icons/Save.d.ts +2 -2
- package/build/cjs/icons/Save.js +5 -6
- package/build/cjs/icons/Save.js.map +1 -0
- package/build/cjs/icons/SaveFilled.d.ts +2 -2
- package/build/cjs/icons/SaveFilled.js +5 -6
- package/build/cjs/icons/SaveFilled.js.map +1 -0
- package/build/cjs/icons/SearchIcon.d.ts +2 -2
- package/build/cjs/icons/SearchIcon.js +5 -6
- package/build/cjs/icons/SearchIcon.js.map +1 -0
- package/build/cjs/icons/ShareArrowUp.d.ts +2 -2
- package/build/cjs/icons/ShareArrowUp.js +5 -6
- package/build/cjs/icons/ShareArrowUp.js.map +1 -0
- package/build/cjs/icons/Time.d.ts +2 -2
- package/build/cjs/icons/Time.js +5 -6
- package/build/cjs/icons/Time.js.map +1 -0
- package/build/cjs/index.d.ts +8 -7
- package/build/cjs/index.js +10 -8
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/models/blocks.d.ts +4 -4
- package/build/cjs/models/blocks.js +2 -1
- package/build/cjs/models/blocks.js.map +1 -0
- package/build/cjs/models/common.d.ts +3 -3
- package/build/cjs/models/common.js +6 -5
- package/build/cjs/models/common.js.map +1 -0
- package/build/cjs/models/locale.js +2 -1
- package/build/cjs/models/locale.js.map +1 -0
- package/build/cjs/models/paddings.js +2 -1
- package/build/cjs/models/paddings.js.map +1 -0
- package/build/cjs/package.json +1 -0
- package/build/cjs/schema/blocks.d.ts +10 -10
- package/build/cjs/schema/blocks.js +11 -10
- package/build/cjs/schema/blocks.js.map +1 -0
- package/build/cjs/schema/common.js +2 -1
- package/build/cjs/schema/common.js.map +1 -0
- package/build/cjs/schema/headers.d.ts +1 -1
- package/build/cjs/schema/headers.js +2 -1
- package/build/cjs/schema/headers.js.map +1 -0
- package/build/cjs/schema/index.d.ts +8 -2
- package/build/cjs/schema/index.js +5 -4
- package/build/cjs/schema/index.js.map +1 -0
- package/build/cjs/schema/utils.d.ts +1 -1
- package/build/cjs/schema/utils.js +2 -1
- package/build/cjs/schema/utils.js.map +1 -0
- package/build/cjs/utils/cn.js +2 -1
- package/build/cjs/utils/cn.js.map +1 -0
- package/build/cjs/utils/common.d.ts +17 -18
- package/build/cjs/utils/common.js +7 -6
- package/build/cjs/utils/common.js.map +1 -0
- package/build/cjs/utils/date.js +2 -1
- package/build/cjs/utils/date.js.map +1 -0
- package/build/cjs/utils/index.d.ts +1 -0
- package/build/cjs/utils/index.js +6 -0
- package/build/cjs/utils/index.js.map +1 -0
- package/build/cjs/utils/svg.js +2 -1
- package/build/cjs/utils/svg.js.map +1 -0
- package/build/esm/blocks/Author/Author.d.ts +2 -3
- package/build/esm/blocks/Author/Author.js +13 -13
- package/build/esm/blocks/Author/Author.js.map +1 -0
- package/build/esm/blocks/Author/schema.js +4 -3
- package/build/esm/blocks/Author/schema.js.map +1 -0
- package/build/esm/blocks/Banner/Banner.d.ts +2 -3
- package/build/esm/blocks/Banner/Banner.js +11 -15
- package/build/esm/blocks/Banner/Banner.js.map +1 -0
- package/build/esm/blocks/Banner/schema.js +4 -3
- package/build/esm/blocks/Banner/schema.js.map +1 -0
- package/build/esm/blocks/CTA/CTA.d.ts +2 -3
- package/build/esm/blocks/CTA/CTA.js +19 -19
- package/build/esm/blocks/CTA/CTA.js.map +1 -0
- package/build/esm/blocks/CTA/schema.js +4 -3
- package/build/esm/blocks/CTA/schema.js.map +1 -0
- package/build/esm/blocks/ColoredText/ColoredText.d.ts +2 -3
- package/build/esm/blocks/ColoredText/ColoredText.js +9 -12
- package/build/esm/blocks/ColoredText/ColoredText.js.map +1 -0
- package/build/esm/blocks/ColoredText/schema.js +4 -3
- package/build/esm/blocks/ColoredText/schema.js.map +1 -0
- package/build/esm/blocks/Feed/Feed.d.ts +2 -3
- package/build/esm/blocks/Feed/Feed.js +31 -31
- package/build/esm/blocks/Feed/Feed.js.map +1 -0
- package/build/esm/blocks/Feed/reducer.d.ts +1 -1
- package/build/esm/blocks/Feed/reducer.js +2 -1
- package/build/esm/blocks/Feed/reducer.js.map +1 -0
- package/build/esm/blocks/Feed/schema.js +3 -2
- package/build/esm/blocks/Feed/schema.js.map +1 -0
- package/build/esm/blocks/Form/Form.d.ts +2 -3
- package/build/esm/blocks/Form/Form.js +10 -10
- package/build/esm/blocks/Form/Form.js.map +1 -0
- package/build/esm/blocks/Form/schema.js +4 -3
- package/build/esm/blocks/Form/schema.js.map +1 -0
- package/build/esm/blocks/Header/Header.d.ts +2 -3
- package/build/esm/blocks/Header/Header.js +18 -18
- package/build/esm/blocks/Header/Header.js.map +1 -0
- package/build/esm/blocks/Header/schema.d.ts +3 -0
- package/build/esm/blocks/Header/schema.js +4 -3
- package/build/esm/blocks/Header/schema.js.map +1 -0
- package/build/esm/blocks/Layout/Layout.d.ts +3 -3
- package/build/esm/blocks/Layout/Layout.js +12 -13
- package/build/esm/blocks/Layout/Layout.js.map +1 -0
- package/build/esm/blocks/Layout/schema.js +4 -3
- package/build/esm/blocks/Layout/schema.js.map +1 -0
- package/build/esm/blocks/Media/Media.d.ts +2 -3
- package/build/esm/blocks/Media/Media.js +12 -15
- package/build/esm/blocks/Media/Media.js.map +1 -0
- package/build/esm/blocks/Media/schema.d.ts +3 -0
- package/build/esm/blocks/Media/schema.js +4 -3
- package/build/esm/blocks/Media/schema.js.map +1 -0
- package/build/esm/blocks/Meta/Meta.d.ts +2 -3
- package/build/esm/blocks/Meta/Meta.js +22 -23
- package/build/esm/blocks/Meta/Meta.js.map +1 -0
- package/build/esm/blocks/Meta/schema.js +4 -3
- package/build/esm/blocks/Meta/schema.js.map +1 -0
- package/build/esm/blocks/Suggest/Suggest.d.ts +2 -3
- package/build/esm/blocks/Suggest/Suggest.js +15 -14
- package/build/esm/blocks/Suggest/Suggest.js.map +1 -0
- package/build/esm/blocks/Suggest/schema.js +4 -3
- package/build/esm/blocks/Suggest/schema.js.map +1 -0
- package/build/esm/blocks/YFM/YFM.d.ts +2 -3
- package/build/esm/blocks/YFM/YFM.js +10 -10
- package/build/esm/blocks/YFM/YFM.js.map +1 -0
- package/build/esm/blocks/YFM/schema.js +4 -3
- package/build/esm/blocks/YFM/schema.js.map +1 -0
- package/build/esm/blocks/constants.js +2 -1
- package/build/esm/blocks/constants.js.map +1 -0
- package/build/esm/components/FeedHeader/FeedHeader.d.ts +3 -4
- package/build/esm/components/FeedHeader/FeedHeader.js +10 -13
- package/build/esm/components/FeedHeader/FeedHeader.js.map +1 -0
- package/build/esm/components/FeedHeader/components/Controls/Controls.d.ts +4 -4
- package/build/esm/components/FeedHeader/components/Controls/Controls.js +30 -40
- package/build/esm/components/FeedHeader/components/Controls/Controls.js.map +1 -0
- package/build/esm/components/FeedHeader/components/Controls/customRenders.d.ts +2 -3
- package/build/esm/components/FeedHeader/components/Controls/customRenders.js +12 -8
- package/build/esm/components/FeedHeader/components/Controls/customRenders.js.map +1 -0
- package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.d.ts +2 -2
- package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.js +4 -5
- package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.js.map +1 -0
- package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +1 -1
- package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.d.ts +2 -3
- package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.js +13 -17
- package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.js.map +1 -0
- package/build/esm/components/MetaWrapper/MetaWrapper.d.ts +1 -1
- package/build/esm/components/MetaWrapper/MetaWrapper.js +3 -2
- package/build/esm/components/MetaWrapper/MetaWrapper.js.map +1 -0
- package/build/esm/components/Paginator/Paginator.d.ts +2 -3
- package/build/esm/components/Paginator/Paginator.js +25 -29
- package/build/esm/components/Paginator/Paginator.js.map +1 -0
- package/build/esm/components/Paginator/components/NavigationButton.d.ts +2 -3
- package/build/esm/components/Paginator/components/NavigationButton.js +6 -5
- package/build/esm/components/Paginator/components/NavigationButton.js.map +1 -0
- package/build/esm/components/Paginator/components/PaginatorItem.d.ts +2 -3
- package/build/esm/components/Paginator/components/PaginatorItem.js +13 -11
- package/build/esm/components/Paginator/components/PaginatorItem.js.map +1 -0
- package/build/esm/components/Paginator/types.d.ts +3 -3
- package/build/esm/components/Paginator/types.js +2 -1
- package/build/esm/components/Paginator/types.js.map +1 -0
- package/build/esm/components/Paginator/utils.d.ts +2 -2
- package/build/esm/components/Paginator/utils.js +2 -1
- package/build/esm/components/Paginator/utils.js.map +1 -0
- package/build/esm/components/PostCard/PostCard.css +7 -8
- package/build/esm/components/PostCard/PostCard.d.ts +2 -3
- package/build/esm/components/PostCard/PostCard.js +17 -25
- package/build/esm/components/PostCard/PostCard.js.map +1 -0
- package/build/esm/components/PostInfo/PostInfo.d.ts +2 -3
- package/build/esm/components/PostInfo/PostInfo.js +13 -15
- package/build/esm/components/PostInfo/PostInfo.js.map +1 -0
- package/build/esm/components/PostInfo/SuggestPostInfo.d.ts +2 -3
- package/build/esm/components/PostInfo/SuggestPostInfo.js +12 -15
- package/build/esm/components/PostInfo/SuggestPostInfo.js.map +1 -0
- package/build/esm/components/PostInfo/components/Date.d.ts +2 -3
- package/build/esm/components/PostInfo/components/Date.js +10 -8
- package/build/esm/components/PostInfo/components/Date.js.map +1 -0
- package/build/esm/components/PostInfo/components/ReadingTime.d.ts +2 -3
- package/build/esm/components/PostInfo/components/ReadingTime.js +6 -8
- package/build/esm/components/PostInfo/components/ReadingTime.js.map +1 -0
- package/build/esm/components/PostInfo/components/Save.d.ts +2 -3
- package/build/esm/components/PostInfo/components/Save.js +14 -16
- package/build/esm/components/PostInfo/components/Save.js.map +1 -0
- package/build/esm/components/PostInfo/components/Sharing.d.ts +1 -2
- package/build/esm/components/PostInfo/components/Sharing.js +17 -17
- package/build/esm/components/PostInfo/components/Sharing.js.map +1 -0
- package/build/esm/components/Posts/Posts.d.ts +4 -4
- package/build/esm/components/Posts/Posts.js +15 -26
- package/build/esm/components/Posts/Posts.js.map +1 -0
- package/build/esm/components/PostsEmpty/PostsEmpty.d.ts +1 -2
- package/build/esm/components/PostsEmpty/PostsEmpty.js +5 -6
- package/build/esm/components/PostsEmpty/PostsEmpty.js.map +1 -0
- package/build/esm/components/PostsError/PostsError.d.ts +1 -2
- package/build/esm/components/PostsError/PostsError.js +6 -9
- package/build/esm/components/PostsError/PostsError.js.map +1 -0
- package/build/esm/components/Prompt/Prompt.d.ts +1 -2
- package/build/esm/components/Prompt/Prompt.js +10 -12
- package/build/esm/components/Prompt/Prompt.js.map +1 -0
- package/build/esm/components/PromptSignIn/PromptSignIn.d.ts +4 -4
- package/build/esm/components/PromptSignIn/PromptSignIn.js +6 -5
- package/build/esm/components/PromptSignIn/PromptSignIn.js.map +1 -0
- package/build/esm/components/PromptSignIn/hooks/usePromptSignInProps.d.ts +2 -2
- package/build/esm/components/PromptSignIn/hooks/usePromptSignInProps.js +5 -4
- package/build/esm/components/PromptSignIn/hooks/usePromptSignInProps.js.map +1 -0
- package/build/esm/components/Search/Search.d.ts +2 -3
- package/build/esm/components/Search/Search.js +17 -17
- package/build/esm/components/Search/Search.js.map +1 -0
- package/build/esm/components/Wrapper/Wrapper.d.ts +3 -3
- package/build/esm/components/Wrapper/Wrapper.js +6 -5
- package/build/esm/components/Wrapper/Wrapper.js.map +1 -0
- package/build/esm/constants.d.ts +2 -2
- package/build/esm/constants.js +3 -2
- package/build/esm/constants.js.map +1 -0
- package/build/esm/constructor/BlogConstructorProvider.d.ts +7 -7
- package/build/esm/constructor/BlogConstructorProvider.js +20 -18
- package/build/esm/constructor/BlogConstructorProvider.js.map +1 -0
- package/build/esm/constructor/blocksMap.d.ts +12 -12
- package/build/esm/constructor/blocksMap.js +15 -14
- package/build/esm/constructor/blocksMap.js.map +1 -0
- package/build/esm/containers/BlogPage/BlogPage.d.ts +4 -4
- package/build/esm/containers/BlogPage/BlogPage.js +22 -25
- package/build/esm/containers/BlogPage/BlogPage.js.map +1 -0
- package/build/esm/containers/BlogPostPage/BlogPostPage.css +18 -18
- package/build/esm/containers/BlogPostPage/BlogPostPage.d.ts +6 -5
- package/build/esm/containers/BlogPostPage/BlogPostPage.js +28 -30
- package/build/esm/containers/BlogPostPage/BlogPostPage.js.map +1 -0
- package/build/esm/contexts/DeviceContext.d.ts +2 -2
- package/build/esm/contexts/DeviceContext.js +3 -2
- package/build/esm/contexts/DeviceContext.js.map +1 -0
- package/build/esm/contexts/FeedContext.d.ts +2 -2
- package/build/esm/contexts/FeedContext.js +3 -2
- package/build/esm/contexts/FeedContext.js.map +1 -0
- package/build/esm/contexts/LikesContext.d.ts +2 -2
- package/build/esm/contexts/LikesContext.js +3 -2
- package/build/esm/contexts/LikesContext.js.map +1 -0
- package/build/esm/contexts/LocaleContext.d.ts +2 -2
- package/build/esm/contexts/LocaleContext.js +3 -2
- package/build/esm/contexts/LocaleContext.js.map +1 -0
- package/build/esm/contexts/MobileContext.d.ts +1 -1
- package/build/esm/contexts/MobileContext.js +3 -2
- package/build/esm/contexts/MobileContext.js.map +1 -0
- package/build/esm/contexts/PostPageContext.d.ts +4 -2
- package/build/esm/contexts/PostPageContext.js +3 -2
- package/build/esm/contexts/PostPageContext.js.map +1 -0
- package/build/esm/contexts/RouterContext.d.ts +2 -2
- package/build/esm/contexts/RouterContext.js +3 -2
- package/build/esm/contexts/RouterContext.js.map +1 -0
- package/build/esm/contexts/SettingsContext.d.ts +1 -1
- package/build/esm/contexts/SettingsContext.js +3 -2
- package/build/esm/contexts/SettingsContext.js.map +1 -0
- package/build/esm/contexts/theme/ThemeContext.d.ts +2 -2
- package/build/esm/contexts/theme/ThemeContext.js +4 -3
- package/build/esm/contexts/theme/ThemeContext.js.map +1 -0
- package/build/esm/contexts/theme/ThemeProvider.d.ts +4 -4
- package/build/esm/contexts/theme/ThemeProvider.js +8 -7
- package/build/esm/contexts/theme/ThemeProvider.js.map +1 -0
- package/build/esm/contexts/theme/ThemeValueContext.d.ts +1 -1
- package/build/esm/contexts/theme/ThemeValueContext.js +3 -2
- package/build/esm/contexts/theme/ThemeValueContext.js.map +1 -0
- package/build/esm/contexts/theme/index.d.ts +6 -6
- package/build/esm/contexts/theme/index.js +7 -6
- package/build/esm/contexts/theme/index.js.map +1 -0
- package/build/esm/contexts/theme/useTheme.d.ts +1 -1
- package/build/esm/contexts/theme/useTheme.js +4 -3
- package/build/esm/contexts/theme/useTheme.js.map +1 -0
- package/build/esm/contexts/theme/useThemeValue.d.ts +1 -1
- package/build/esm/contexts/theme/useThemeValue.js +4 -3
- package/build/esm/contexts/theme/useThemeValue.js.map +1 -0
- package/build/esm/contexts/theme/withTheme.d.ts +2 -2
- package/build/esm/contexts/theme/withTheme.js +6 -4
- package/build/esm/contexts/theme/withTheme.js.map +1 -0
- package/build/esm/contexts/theme/withThemeValue.d.ts +2 -2
- package/build/esm/contexts/theme/withThemeValue.js +6 -4
- package/build/esm/contexts/theme/withThemeValue.js.map +1 -0
- package/build/esm/counters/metrika.js +2 -1
- package/build/esm/counters/metrika.js.map +1 -0
- package/build/esm/counters/utils.js +2 -1
- package/build/esm/counters/utils.js.map +1 -0
- package/build/esm/hooks/useAriaAttributes.js +5 -4
- package/build/esm/hooks/useAriaAttributes.js.map +1 -0
- package/build/esm/hooks/useExtendedComponentMap.d.ts +18 -17
- package/build/esm/hooks/useExtendedComponentMap.js +4 -3
- package/build/esm/hooks/useExtendedComponentMap.js.map +1 -0
- package/build/esm/hooks/useHover.d.ts +1 -1
- package/build/esm/hooks/useHover.js +3 -2
- package/build/esm/hooks/useHover.js.map +1 -0
- package/build/esm/hooks/useIsIPhone.js +5 -4
- package/build/esm/hooks/useIsIPhone.js.map +1 -0
- package/build/esm/hooks/useLikes.d.ts +1 -1
- package/build/esm/hooks/useLikes.js +7 -6
- package/build/esm/hooks/useLikes.js.map +1 -0
- package/build/esm/hooks/useOpenCloseTimer.js +5 -4
- package/build/esm/hooks/useOpenCloseTimer.js.map +1 -0
- package/build/esm/i18n/index.d.ts +5 -1
- package/build/esm/i18n/index.js +2 -1
- package/build/esm/i18n/index.js.map +1 -0
- package/build/esm/icons/Close.d.ts +2 -2
- package/build/esm/icons/Close.js +4 -4
- package/build/esm/icons/Close.js.map +1 -0
- package/build/esm/icons/DropdownArrow.d.ts +2 -2
- package/build/esm/icons/DropdownArrow.js +4 -4
- package/build/esm/icons/DropdownArrow.js.map +1 -0
- package/build/esm/icons/Save.d.ts +2 -2
- package/build/esm/icons/Save.js +4 -4
- package/build/esm/icons/Save.js.map +1 -0
- package/build/esm/icons/SaveFilled.d.ts +2 -2
- package/build/esm/icons/SaveFilled.js +4 -4
- package/build/esm/icons/SaveFilled.js.map +1 -0
- package/build/esm/icons/SearchIcon.d.ts +2 -2
- package/build/esm/icons/SearchIcon.js +4 -4
- package/build/esm/icons/SearchIcon.js.map +1 -0
- package/build/esm/icons/ShareArrowUp.d.ts +2 -2
- package/build/esm/icons/ShareArrowUp.js +4 -4
- package/build/esm/icons/ShareArrowUp.js.map +1 -0
- package/build/esm/icons/Time.d.ts +2 -2
- package/build/esm/icons/Time.js +4 -4
- package/build/esm/icons/Time.js.map +1 -0
- package/build/esm/index.d.ts +8 -7
- package/build/esm/index.js +9 -7
- package/build/esm/index.js.map +1 -0
- package/build/esm/models/blocks.d.ts +4 -4
- package/build/esm/models/blocks.js +2 -1
- package/build/esm/models/blocks.js.map +1 -0
- package/build/esm/models/common.d.ts +3 -3
- package/build/esm/models/common.js +2 -1
- package/build/esm/models/common.js.map +1 -0
- package/build/esm/models/locale.js +2 -1
- package/build/esm/models/locale.js.map +1 -0
- package/build/esm/models/paddings.js +2 -1
- package/build/esm/models/paddings.js.map +1 -0
- package/build/esm/package.json +1 -0
- package/build/esm/schema/blocks.d.ts +10 -10
- package/build/esm/schema/blocks.js +11 -10
- package/build/esm/schema/blocks.js.map +1 -0
- package/build/esm/schema/common.js +2 -1
- package/build/esm/schema/common.js.map +1 -0
- package/build/esm/schema/headers.d.ts +1 -1
- package/build/esm/schema/headers.js +2 -1
- package/build/esm/schema/headers.js.map +1 -0
- package/build/esm/schema/index.d.ts +8 -2
- package/build/esm/schema/index.js +5 -4
- package/build/esm/schema/index.js.map +1 -0
- package/build/esm/schema/utils.d.ts +1 -1
- package/build/esm/schema/utils.js +2 -1
- package/build/esm/schema/utils.js.map +1 -0
- package/build/esm/utils/cn.js +2 -1
- package/build/esm/utils/cn.js.map +1 -0
- package/build/esm/utils/common.d.ts +17 -18
- package/build/esm/utils/common.js +5 -4
- package/build/esm/utils/common.js.map +1 -0
- package/build/esm/utils/date.js +2 -1
- package/build/esm/utils/date.js.map +1 -0
- package/build/esm/utils/index.d.ts +1 -0
- package/build/esm/utils/index.js +2 -0
- package/build/esm/utils/index.js.map +1 -0
- package/build/esm/utils/svg.js +2 -1
- package/build/esm/utils/svg.js.map +1 -0
- package/package.json +37 -24
- package/server/data/config.js +1 -1
- package/server/data/contentFilter.js +5 -3
- package/server/data/createReadableContent.js +1 -1
- package/server/data/sanitizeMeta.d.ts +5 -5
- package/server/data/sanitizeMeta.js +1 -1
- package/server/data/transformPageContent.js +5 -3
- package/server/data/transformPost.js +15 -4
- package/server/index.d.ts +4 -4
- package/server/models/blocks.d.ts +2 -2
- package/server/models/blocks.js +1 -1
- package/server/models/common.d.ts +2 -2
- package/server/models/common.js +5 -5
- package/server/models/locale.js +1 -1
- package/server/models/paddings.js +1 -1
- package/styles/storybook/common.scss +7 -0
- package/styles/styles.css +18 -18
- package/styles/yfm.css +18 -18
- package/styles/yfm.scss +21 -21
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ThemeContext.js","sourceRoot":"../../../../src","sources":["contexts/theme/ThemeContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,aAAa,EAAC,2BAAwB;AAS9C,MAAM,CAAC,MAAM,YAAY,GAAsB;IAC3C,KAAK,EAAE,aAAa;IACpB,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {DEFAULT_THEME} from '../../constants';\n\nimport {ThemeValueType} from './ThemeValueContext';\n\nexport interface ThemeContextProps {\n theme: ThemeValueType;\n setTheme: (newTheme: ThemeValueType) => void;\n}\n\nexport const initialValue: ThemeContextProps = {\n theme: DEFAULT_THEME,\n setTheme: () => {},\n};\n\nexport const ThemeContext = React.createContext(initialValue);\n"]}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { ThemeContextProps } from
|
3
|
-
import { ThemeValueType } from
|
1
|
+
import * as React from 'react';
|
2
|
+
import { ThemeContextProps } from "./ThemeContext.js";
|
3
|
+
import { ThemeValueType } from "./ThemeValueContext.js";
|
4
4
|
interface ThemeProviderExternalProps {
|
5
5
|
}
|
6
6
|
interface ThemeProviderDefaultProps {
|
@@ -17,7 +17,7 @@ export declare class ThemeProvider extends React.Component<ThemeProviderExternal
|
|
17
17
|
state: ThemeProviderState;
|
18
18
|
componentDidMount(): void;
|
19
19
|
componentDidUpdate(prevProps: ThemeProviderProps, prevState: ThemeProviderState): void;
|
20
|
-
render():
|
20
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
21
21
|
private updateBodyClassName;
|
22
22
|
}
|
23
23
|
export {};
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import {
|
4
|
-
import {
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import * as React from 'react';
|
3
|
+
import { DEFAULT_THEME, UIKIT_ROOT_CLASS } from "../../constants.js";
|
4
|
+
import { ThemeContext } from "./ThemeContext.js";
|
5
|
+
import { ThemeValueContext } from "./ThemeValueContext.js";
|
5
6
|
export class ThemeProvider extends React.Component {
|
6
7
|
constructor() {
|
7
8
|
super(...arguments);
|
@@ -27,8 +28,7 @@ export class ThemeProvider extends React.Component {
|
|
27
28
|
}
|
28
29
|
}
|
29
30
|
render() {
|
30
|
-
return (
|
31
|
-
React.createElement(ThemeValueContext.Provider, { value: { themeValue: this.state.themeValue } }, this.props.children)));
|
31
|
+
return (_jsx(ThemeContext.Provider, { value: this.state, children: _jsx(ThemeValueContext.Provider, { value: { themeValue: this.state.themeValue }, children: this.props.children }) }));
|
32
32
|
}
|
33
33
|
updateBodyClassName(theme) {
|
34
34
|
const bodyEl = document.body;
|
@@ -41,4 +41,5 @@ export class ThemeProvider extends React.Component {
|
|
41
41
|
}
|
42
42
|
ThemeProvider.defaultProps = {
|
43
43
|
theme: DEFAULT_THEME,
|
44
|
-
};
|
44
|
+
};
|
45
|
+
//# sourceMappingURL=ThemeProvider.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ThemeProvider.js","sourceRoot":"../../../../src","sources":["contexts/theme/ThemeProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,2BAAwB;AAEhE,OAAO,EAAC,YAAY,EAAoB,0BAAuB;AAC/D,OAAO,EAAC,iBAAiB,EAAiB,+BAA4B;AAiBtE,MAAM,OAAO,aAAc,SAAQ,KAAK,CAAC,SAGxC;IAHD;;QAQI,UAAK,GAAuB;YACxB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK;YACvB,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK;YAC5B,QAAQ,EAAE,CAAC,KAAqB,EAAE,EAAE;gBAChC,IAAI,CAAC,QAAQ,CAAC,EAAC,KAA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,CAAC;QAED,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,gBAAgB,cAAc,EAAE,KAAK,KAAK,OAAO,CAAC,CAAC;QAC9E,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,gBAAgB,aAAa,EAAE,KAAK,KAAK,MAAM,CAAC,CAAC;IAChF,CAAC;;AA/CM,0BAAY,GAA8B;IAC7C,KAAK,EAAE,aAAa;CACvB,AAFkB,CAEjB","sourcesContent":["import * as React from 'react';\n\nimport {DEFAULT_THEME, UIKIT_ROOT_CLASS} from '../../constants';\n\nimport {ThemeContext, ThemeContextProps} from './ThemeContext';\nimport {ThemeValueContext, ThemeValueType} from './ThemeValueContext';\n\ninterface ThemeProviderExternalProps {}\n\ninterface ThemeProviderDefaultProps {\n theme: ThemeValueType;\n children?: React.ReactNode;\n}\n\nexport interface ThemeProviderProps\n extends ThemeProviderExternalProps,\n Partial<ThemeProviderDefaultProps> {}\n\ninterface ThemeProviderState extends ThemeContextProps {\n themeValue: ThemeValueType;\n}\n\nexport class ThemeProvider extends React.Component<\n ThemeProviderExternalProps & ThemeProviderDefaultProps,\n ThemeProviderState\n> {\n static defaultProps: ThemeProviderDefaultProps = {\n theme: DEFAULT_THEME,\n };\n\n state: ThemeProviderState = {\n theme: this.props.theme,\n themeValue: this.props.theme,\n setTheme: (theme: ThemeValueType) => {\n this.setState({theme});\n },\n };\n\n componentDidMount() {\n this.updateBodyClassName(this.state.themeValue);\n }\n\n componentDidUpdate(prevProps: ThemeProviderProps, prevState: ThemeProviderState) {\n if (prevState.theme !== this.state.theme) {\n this.setState({themeValue: this.state.theme});\n this.updateBodyClassName(this.state.theme);\n }\n\n if (prevProps.theme !== this.props.theme) {\n this.setState({themeValue: this.state.theme});\n this.updateBodyClassName(this.state.theme);\n }\n }\n\n render() {\n return (\n <ThemeContext.Provider value={this.state}>\n <ThemeValueContext.Provider value={{themeValue: this.state.themeValue}}>\n {this.props.children}\n </ThemeValueContext.Provider>\n </ThemeContext.Provider>\n );\n }\n\n private updateBodyClassName(theme: string) {\n const bodyEl = document.body;\n\n if (!bodyEl.classList.contains(UIKIT_ROOT_CLASS)) {\n bodyEl.classList.add(UIKIT_ROOT_CLASS);\n }\n\n bodyEl.classList.toggle(`${UIKIT_ROOT_CLASS}_theme_light`, theme === 'light');\n bodyEl.classList.toggle(`${UIKIT_ROOT_CLASS}_theme_dark`, theme === 'dark');\n }\n}\n"]}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import * as React from 'react';
|
2
2
|
export const initialValue = {
|
3
3
|
themeValue: 'light',
|
4
4
|
};
|
5
|
-
export const ThemeValueContext = React.createContext(initialValue);
|
5
|
+
export const ThemeValueContext = React.createContext(initialValue);
|
6
|
+
//# sourceMappingURL=ThemeValueContext.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ThemeValueContext.js","sourceRoot":"../../../../src","sources":["contexts/theme/ThemeValueContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,CAAC,MAAM,YAAY,GAA2B;IAChD,UAAU,EAAE,OAAO;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import * as React from 'react';\n\nexport type ThemeValueType = 'light' | 'dark';\n\nexport interface ThemeValueContextProps {\n themeValue: ThemeValueType;\n}\n\nexport const initialValue: ThemeValueContextProps = {\n themeValue: 'light',\n};\n\nexport const ThemeValueContext = React.createContext(initialValue);\n"]}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export * from
|
2
|
-
export * from
|
3
|
-
export * from
|
4
|
-
export * from
|
5
|
-
export * from
|
6
|
-
export * from
|
1
|
+
export * from "./ThemeContext.js";
|
2
|
+
export * from "./ThemeProvider.js";
|
3
|
+
export * from "./useTheme.js";
|
4
|
+
export * from "./useThemeValue.js";
|
5
|
+
export * from "./withTheme.js";
|
6
|
+
export * from "./withThemeValue.js";
|
@@ -1,6 +1,7 @@
|
|
1
|
-
export * from
|
2
|
-
export * from
|
3
|
-
export * from
|
4
|
-
export * from
|
5
|
-
export * from
|
6
|
-
export * from
|
1
|
+
export * from "./ThemeContext.js";
|
2
|
+
export * from "./ThemeProvider.js";
|
3
|
+
export * from "./useTheme.js";
|
4
|
+
export * from "./useThemeValue.js";
|
5
|
+
export * from "./withTheme.js";
|
6
|
+
export * from "./withThemeValue.js";
|
7
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["contexts/theme/index.ts"],"names":[],"mappings":"AAAA,kCAA+B;AAC/B,mCAAgC;AAChC,8BAA2B;AAC3B,mCAAgC;AAChC,+BAA4B;AAC5B,oCAAiC","sourcesContent":["export * from './ThemeContext';\nexport * from './ThemeProvider';\nexport * from './useTheme';\nexport * from './useThemeValue';\nexport * from './withTheme';\nexport * from './withThemeValue';\n"]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ThemeContextProps } from
|
1
|
+
import { ThemeContextProps } from "./ThemeContext.js";
|
2
2
|
export declare function useTheme(): [ThemeContextProps['theme'], ThemeContextProps['setTheme']];
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { ThemeContext } from
|
1
|
+
import * as React from 'react';
|
2
|
+
import { ThemeContext } from "./ThemeContext.js";
|
3
3
|
export function useTheme() {
|
4
4
|
const { theme, setTheme } = React.useContext(ThemeContext);
|
5
5
|
return [theme, setTheme];
|
6
|
-
}
|
6
|
+
}
|
7
|
+
//# sourceMappingURL=useTheme.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTheme.js","sourceRoot":"../../../../src","sources":["contexts/theme/useTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,YAAY,EAAoB,0BAAuB;AAE/D,MAAM,UAAU,QAAQ;IACpB,MAAM,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IACzD,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC7B,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {ThemeContext, ThemeContextProps} from './ThemeContext';\n\nexport function useTheme(): [ThemeContextProps['theme'], ThemeContextProps['setTheme']] {\n const {theme, setTheme} = React.useContext(ThemeContext);\n return [theme, setTheme];\n}\n"]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ThemeValueContextProps } from
|
1
|
+
import { ThemeValueContextProps } from "./ThemeValueContext.js";
|
2
2
|
export declare function useThemeValue(): ThemeValueContextProps['themeValue'];
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { ThemeValueContext } from
|
1
|
+
import * as React from 'react';
|
2
|
+
import { ThemeValueContext } from "./ThemeValueContext.js";
|
3
3
|
export function useThemeValue() {
|
4
4
|
const { themeValue } = React.useContext(ThemeValueContext);
|
5
5
|
return themeValue;
|
6
|
-
}
|
6
|
+
}
|
7
|
+
//# sourceMappingURL=useThemeValue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useThemeValue.js","sourceRoot":"../../../../src","sources":["contexts/theme/useThemeValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,iBAAiB,EAAyB,+BAA4B;AAE9E,MAAM,UAAU,aAAa;IACzB,MAAM,EAAC,UAAU,EAAC,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;IACzD,OAAO,UAAU,CAAC;AACtB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {ThemeValueContext, ThemeValueContextProps} from './ThemeValueContext';\n\nexport function useThemeValue(): ThemeValueContextProps['themeValue'] {\n const {themeValue} = React.useContext(ThemeValueContext);\n return themeValue;\n}\n"]}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import * as React from 'react';
|
2
2
|
import { Subtract } from 'utility-types';
|
3
|
-
import { ThemeContextProps } from
|
3
|
+
import { ThemeContextProps } from "./ThemeContext.js";
|
4
4
|
export interface WithThemeProps extends ThemeContextProps {
|
5
5
|
}
|
6
6
|
export declare function withTheme<T extends WithThemeProps>(WrappedComponent: React.ComponentType<T>): React.ComponentType<Subtract<T, WithThemeProps>>;
|
@@ -1,14 +1,16 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import * as React from 'react';
|
3
|
+
import { ThemeContext } from "./ThemeContext.js";
|
3
4
|
export function withTheme(WrappedComponent) {
|
4
5
|
var _a;
|
5
6
|
const componentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
6
7
|
return _a = class WithThemeComponent extends React.Component {
|
7
8
|
render() {
|
8
|
-
return (
|
9
|
+
return (_jsx(WrappedComponent, Object.assign({}, this.props, { theme: this.context.theme, setTheme: this.context.setTheme })));
|
9
10
|
}
|
10
11
|
},
|
11
12
|
_a.displayName = `withTheme(${componentName})`,
|
12
13
|
_a.contextType = ThemeContext,
|
13
14
|
_a;
|
14
|
-
}
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=withTheme.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"withTheme.js","sourceRoot":"../../../../src","sources":["contexts/theme/withTheme.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAC,YAAY,EAAoB,0BAAuB;AAI/D,MAAM,UAAU,SAAS,CACrB,gBAAwC;;IAExC,MAAM,aAAa,GAAG,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;IAE3F,YAAO,MAAM,kBAAmB,SAAQ,KAAK,CAAC,SAAsC;YAKhF,MAAM;gBACF,OAAO,CACH,KAAC,gBAAgB,oBACR,IAAI,CAAC,KAAW,IACrB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,EACzB,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,IACjC,CACL,CAAC;YACN,CAAC;SACJ;QAbU,cAAW,GAAG,aAAa,aAAa,GAAI;QAC5C,cAAW,GAAG,YAAa;WAYpC;AACN,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Subtract} from 'utility-types';\n\nimport {ThemeContext, ThemeContextProps} from './ThemeContext';\n\nexport interface WithThemeProps extends ThemeContextProps {}\n\nexport function withTheme<T extends WithThemeProps>(\n WrappedComponent: React.ComponentType<T>,\n): React.ComponentType<Subtract<T, WithThemeProps>> {\n const componentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\n\n return class WithThemeComponent extends React.Component<Subtract<T, WithThemeProps>> {\n static displayName = `withTheme(${componentName})`;\n static contextType = ThemeContext;\n context!: ThemeContextProps;\n\n render() {\n return (\n <WrappedComponent\n {...(this.props as T)}\n theme={this.context.theme}\n setTheme={this.context.setTheme}\n />\n );\n }\n };\n}\n"]}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import * as React from 'react';
|
2
2
|
import { Subtract } from 'utility-types';
|
3
|
-
import { ThemeValueContextProps } from
|
3
|
+
import { ThemeValueContextProps } from "./ThemeValueContext.js";
|
4
4
|
export interface WithThemeValueProps extends ThemeValueContextProps {
|
5
5
|
}
|
6
6
|
export declare function withThemeValue<T extends WithThemeValueProps>(WrappedComponent: React.ComponentType<T>): React.ComponentType<Subtract<T, WithThemeValueProps>>;
|
@@ -1,14 +1,16 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import * as React from 'react';
|
3
|
+
import { ThemeValueContext } from "./ThemeValueContext.js";
|
3
4
|
export function withThemeValue(WrappedComponent) {
|
4
5
|
var _a;
|
5
6
|
const componentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
6
7
|
return _a = class WithThemeValueComponent extends React.Component {
|
7
8
|
render() {
|
8
|
-
return
|
9
|
+
return _jsx(WrappedComponent, Object.assign({}, this.props, { themeValue: this.context.themeValue }));
|
9
10
|
}
|
10
11
|
},
|
11
12
|
_a.displayName = `withThemeValue(${componentName})`,
|
12
13
|
_a.contextType = ThemeValueContext,
|
13
14
|
_a;
|
14
|
-
}
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=withThemeValue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"withThemeValue.js","sourceRoot":"../../../../src","sources":["contexts/theme/withThemeValue.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAC,iBAAiB,EAAyB,+BAA4B;AAI9E,MAAM,UAAU,cAAc,CAC1B,gBAAwC;;IAExC,MAAM,aAAa,GAAG,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;IAE3F,YAAO,MAAM,uBAAwB,SAAQ,KAAK,CAAC,SAA2C;YAK1F,MAAM;gBACF,OAAO,KAAC,gBAAgB,oBAAM,IAAI,CAAC,KAAW,IAAE,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,CAAC;YAC5F,CAAC;SACJ;QAPU,cAAW,GAAG,kBAAkB,aAAa,GAAI;QACjD,cAAW,GAAG,iBAAkB;WAMzC;AACN,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {Subtract} from 'utility-types';\n\nimport {ThemeValueContext, ThemeValueContextProps} from './ThemeValueContext';\n\nexport interface WithThemeValueProps extends ThemeValueContextProps {}\n\nexport function withThemeValue<T extends WithThemeValueProps>(\n WrappedComponent: React.ComponentType<T>,\n): React.ComponentType<Subtract<T, WithThemeValueProps>> {\n const componentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';\n\n return class WithThemeValueComponent extends React.Component<Subtract<T, WithThemeValueProps>> {\n static displayName = `withThemeValue(${componentName})`;\n static contextType = ThemeValueContext;\n context!: ThemeValueContextProps;\n\n render() {\n return <WrappedComponent {...(this.props as T)} themeValue={this.context.themeValue} />;\n }\n };\n}\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"metrika.js","sourceRoot":"../../../src","sources":["counters/metrika.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG;IACT,iBAAiB,EAAE,iBAAiB;IACpC,qBAAqB,EAAE,oBAAoB;IAC3C,qBAAqB,EAAE,oBAAoB;IAC3C,qBAAqB,EAAE,oBAAoB;IAC3C,uBAAuB,EAAE,uBAAuB;IAEhD,YAAY,EAAE,YAAY;IAE1B,cAAc,EAAE,cAAc;IAE9B,cAAc,EAAE,aAAa;IAC7B,cAAc,EAAE,aAAa;IAC7B,iBAAiB,EAAE,iBAAiB;IACpC,cAAc,EAAE,aAAa;IAC7B,YAAY,EAAE,WAAW;IAEzB,gBAAgB,EAAE,iBAAiB;IACnC,wBAAwB,EAAE,wBAAwB;IAElD,gBAAgB,EAAE,4BAA4B;IAC9C,oBAAoB,EAAE,8BAA8B;IAEpD,iBAAiB,EAAE,aAAa;IAChC,gBAAgB,EAAE,gBAAgB;IAClC,eAAe,EAAE,eAAe;IAChC,kBAAkB,EAAE,kBAAkB;IAEtC,kBAAkB,EAAE,oBAAoB;IACxC,oBAAoB,EAAE,sBAAsB;IAC5C,UAAU,EAAE,YAAY;IACxB,oCAAoC,EAAE,oCAAoC;CAC7E,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;AAErD,MAAM,UAAU,GAA2B,EAAE,CAAC;AAE9C,SAAS,UAAU,CAAC,IAAY;IAC5B,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAEnC,8DAA8D;IAC9D,OAAQ,MAAyC,CAAC,WAAW,GAAG,SA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_1_SUBMIT: 'SUPPORTSTEP1SUBMIT',\n SUPPORT_STEP_2_SUBMIT: 'SUPPORTSTEP2SUBMIT',\n SUPPORT_STEP_3_SUBMIT: 'SUPPORTSTEP3SUBMIT',\n SUPPORT_THANKYOU_SUBMIT: 'SUPPORTTHANKYOUSUBMIT',\n\n MP_OPEN_FORM: 'MPOPENFORM',\n\n EDIT_ON_GITHUB: 'EDITONGITHUB',\n\n MAIN_GO_TO_VAR: 'MAINGOTOVAR',\n MAIN_GO_TO_ISV: 'MAINGOTOISV',\n MAIN_ALL_PARTNERS: 'MAINALLPARTNERS',\n FIND_GO_TO_VAR: 'FINDGOTOVAR',\n ISV_GO_TO_MP: 'ISVGOTOMP',\n\n FOOTER_SUBSCRIBE: 'FOOTERSUBSCRIBE',\n FOOTER_MNG_SUBSCRIPTIONS: 'FOOTERMNGSUBSCRIPTIONS',\n\n MOBILE_STORE_IOS: '154_Mobile_App_Store_Badge',\n MOBILE_STORE_ANDROID: '155_Mobile_Google_Play_Badge',\n\n REGION_POPUP_SHOW: 'REGIONPOPUP',\n REGION_POPUP_YES: 'REGIONPOPUPYES',\n REGION_POPUP_NO: 'REGIONPOPUPNO',\n REGION_POPUP_CLOSE: 'REGIONPOPUPCLOSE',\n\n SCALE_REGISTRATION: 'Scale_registration',\n DLGOTOPRODUCT_MPSITE: 'DLGOTOPRODUCT_MPSITE',\n MPK8S_CLCK: 'MPK8S_CLCK',\n 'SITE_CALCULATOR_SHARE-RESULT_CLICK': 'SITE_CALCULATOR_SHARE-RESULT_CLICK',\n};\n\nconst HIT_COUNTERS = ['main', 'cross-site', 'scale'];\n\nconst counterIds: Record<string, string> = {};\n\nfunction getCounter(name: string) {\n const counterId = counterIds[name];\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return (window as unknown as Record<string, any>)['yaCounter' + counterId];\n}\n\nexport function initCounters(configs: Record<string, string>[]) {\n configs.forEach((config) => {\n counterIds[config.name] = config.id;\n });\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction hit(...args: any[]) {\n HIT_COUNTERS.forEach((counterName) => {\n const counter = getCounter(counterName);\n\n if (!counter) {\n return;\n }\n\n counter.hit(...args);\n });\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction params(...args: Record<string, any>[]) {\n const counter = getCounter('main');\n\n if (!counter) {\n return;\n }\n\n counter.params(...args);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction reachGoal(counterName: string, ...args: any[]) {\n const counter = getCounter(counterName);\n\n if (!counter) {\n return;\n }\n\n counter.reachGoal(...args);\n}\n\nfunction reachGoals(goals: string | object, counterName = 'main') {\n if (!goals) {\n return;\n }\n\n const goalsArray = Array.isArray(goals) ? goals : [goals];\n\n goalsArray.forEach((goal) => {\n if (typeof goal === 'object') {\n reachGoal(counterName, goal.name, goal.params);\n } else {\n reachGoal(counterName, goal);\n }\n });\n}\n\n// eslint-disable-next-line complexity\nfunction getServicePrefix(id: string) {\n switch (id) {\n case 'compute':\n return 'CMPT';\n case 'iam':\n return 'IAM';\n case 'vpc':\n return 'VPC';\n case 'storage':\n return 'STRG';\n case 'speechkit':\n return 'SK';\n case 'managed-clickhouse':\n return 'CH';\n case 'managed-mongodb':\n return 'MONGO';\n case 'managed-postgresql':\n return 'POSTGR';\n case 'managed-redis':\n return 'MR';\n case 'managed-mysql':\n return 'MMSQL';\n case 'managed-kubernetes':\n return 'MK';\n case 'translate':\n return 'TRSL';\n case 'instance-groups':\n return 'INSTGR';\n case 'load-balancer':\n return 'LB';\n case 'message-queue':\n return 'MQ';\n case 'datalens':\n return 'DL';\n case 'monitoring':\n return 'MNTRG';\n case 'data-proc':\n return 'DP';\n case 'kms':\n return 'KMS';\n case 'ydb':\n return 'YDB';\n case 'interconnect':\n return 'INTRCNCT';\n }\n\n return undefined;\n}\n\nfunction getMarketPlacePrefix(id: string) {\n return `product_${id}_`;\n}\n\nfunction goalGoToConsole(prefix: string) {\n return prefix && `${prefix}GOTOCONSOLE`;\n}\n\nfunction goalGoToForm(prefix: string) {\n return prefix && `${prefix}GOTOFORM`;\n}\n\nfunction goalGoToDocs(prefix: string) {\n return prefix && `${prefix}GOTODOCS`;\n}\n\nfunction goalFormSubmit(prefix: string) {\n return prefix && `${prefix}FORMSUBMIT`;\n}\n\nfunction goalEventFormSubmit(id: string) {\n return `event${id || 's'}_form_submit`;\n}\n\nfunction goalEventVideoAction(id: string, action: string) {\n return `event${id}_video_${action}`;\n}\n\nfunction goalCaseFormSubmit(id: string) {\n return `case${id ? `_${id}` : 's'}_form_submit`;\n}\n\nfunction goalSwitchLang(place: string) {\n return `SWITCH_LANG_${place}`;\n}\n\nexport default {\n hit,\n params,\n reachGoal,\n reachGoals,\n Goal,\n getServicePrefix,\n getMarketPlacePrefix,\n goalGoToConsole,\n goalGoToForm,\n goalGoToDocs,\n goalFormSubmit,\n goalEventFormSubmit,\n goalEventVideoAction,\n goalCaseFormSubmit,\n goalSwitchLang,\n};\n"]}
|
@@ -3,4 +3,5 @@ export var AnalyticsCounter;
|
|
3
3
|
AnalyticsCounter["Main"] = "main";
|
4
4
|
AnalyticsCounter["CrossSite"] = "cross-site";
|
5
5
|
AnalyticsCounter["Scale"] = "scale";
|
6
|
-
})(AnalyticsCounter || (AnalyticsCounter = {}));
|
6
|
+
})(AnalyticsCounter || (AnalyticsCounter = {}));
|
7
|
+
//# sourceMappingURL=utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"../../../src","sources":["counters/utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IACxB,iCAAa,CAAA;IACb,4CAAwB,CAAA;IACxB,mCAAe,CAAA;AACnB,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B","sourcesContent":["export enum AnalyticsCounter {\n Main = 'main',\n CrossSite = 'cross-site',\n Scale = 'scale',\n}\n"]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import * as React from 'react';
|
2
2
|
/**
|
3
3
|
* Returns aria-attributes
|
4
4
|
* @param labelIds - labels ids. Falsy values will be ignored
|
@@ -6,10 +6,11 @@ import { useMemo } from 'react';
|
|
6
6
|
* @returns aria attributes for the element to be labelled
|
7
7
|
*/
|
8
8
|
export const useAriaAttributes = ({ labelIds = [], descriptionIds = [] }) => {
|
9
|
-
const labelledBy = useMemo(() => labelIds.filter(Boolean).join(' '), [labelIds]);
|
10
|
-
const describedBy = useMemo(() => descriptionIds.filter(Boolean).join(' '), [descriptionIds]);
|
9
|
+
const labelledBy = React.useMemo(() => labelIds.filter(Boolean).join(' '), [labelIds]);
|
10
|
+
const describedBy = React.useMemo(() => descriptionIds.filter(Boolean).join(' '), [descriptionIds]);
|
11
11
|
return {
|
12
12
|
'aria-labelledby': labelledBy,
|
13
13
|
'aria-describedby': describedBy,
|
14
14
|
};
|
15
|
-
};
|
15
|
+
};
|
16
|
+
//# sourceMappingURL=useAriaAttributes.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useAriaAttributes.js","sourceRoot":"../../../src","sources":["hooks/useAriaAttributes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAC,QAAQ,GAAG,EAAE,EAAE,cAAc,GAAG,EAAE,EAAyB,EAAE,EAAE;IAC9F,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvF,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAC7B,GAAG,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAC9C,CAAC,cAAc,CAAC,CACnB,CAAC;IAEF,OAAO;QACH,iBAAiB,EAAE,UAAU;QAC7B,kBAAkB,EAAE,WAAW;KAClC,CAAC;AACN,CAAC,CAAC","sourcesContent":["import * as React from 'react';\n\ntype Labels = string | number | boolean | undefined;\ntype Description = string | number | boolean | undefined;\ninterface UseAriaAttributesProps {\n labelIds?: Labels[];\n descriptionIds: Description[];\n}\n\n/**\n * Returns aria-attributes\n * @param labelIds - labels ids. Falsy values will be ignored\n * @param descriptionIds - descriptions ids. Falsy values will be ignored\n * @returns aria attributes for the element to be labelled\n */\nexport const useAriaAttributes = ({labelIds = [], descriptionIds = []}: UseAriaAttributesProps) => {\n const labelledBy = React.useMemo(() => labelIds.filter(Boolean).join(' '), [labelIds]);\n const describedBy = React.useMemo(\n () => descriptionIds.filter(Boolean).join(' '),\n [descriptionIds],\n );\n\n return {\n 'aria-labelledby': labelledBy,\n 'aria-describedby': describedBy,\n };\n};\n"]}
|
@@ -1,25 +1,26 @@
|
|
1
|
+
import * as React from 'react';
|
1
2
|
import { CustomConfig } from '@gravity-ui/page-constructor';
|
2
3
|
export declare const useExtendedComponentMap: (custom: CustomConfig | undefined) => {
|
3
4
|
blocks: {
|
4
|
-
"blog-yfm-block": (props: import("../models/blocks").YFMProps) => import("react").JSX.Element;
|
5
|
-
"blog-layout-block": ({ fullWidth, mobileOrder, children, paddingTop, paddingBottom, }:
|
6
|
-
"blog-media-block": ({ text, paddingTop, paddingBottom, ...mediaProps }: import("../models/blocks").MediaProps) => import("react").JSX.Element;
|
7
|
-
"blog-banner-block": ({ color, imageSize, image, paddingTop, paddingBottom, qa, ...content }: import("../models/blocks").BannerProps) => import("react").JSX.Element;
|
8
|
-
"blog-cta-block": ({ items, paddingTop, paddingBottom, qa }: import("../models/blocks").CTAProps) => import("react").JSX.Element;
|
9
|
-
"blog-colored-text-block": ({ background, paddingTop, paddingBottom, qa, ...content }: import("../models/blocks").ColoredTextProps) => import("react").JSX.Element;
|
10
|
-
"blog-author-block": (props: import("../models/blocks").AuthorProps) => import("react").JSX.Element | null;
|
11
|
-
"blog-suggest-block": ({ paddingTop, paddingBottom }: import("../models/blocks").SuggestProps) => import("react").JSX.Element | null;
|
12
|
-
"blog-meta-block": (props: import("../models/blocks").MetaProps) => import("react").JSX.Element;
|
13
|
-
"blog-feed-block": ({ image }: import("../models/blocks").FeedProps) => import("react").JSX.Element;
|
14
|
-
"blog-form-block": ({ paddingTop, paddingBottom, ...props }: import("../models/blocks").FormProps) => import("react").JSX.Element | null;
|
5
|
+
"blog-yfm-block": (props: import("../models/blocks.js").YFMProps) => import("react/jsx-runtime").JSX.Element;
|
6
|
+
"blog-layout-block": ({ fullWidth, mobileOrder, children, paddingTop, paddingBottom, }: React.PropsWithChildren<import("../models/blocks.js").LayoutProps>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
"blog-media-block": ({ text, paddingTop, paddingBottom, ...mediaProps }: import("../models/blocks.js").MediaProps) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
"blog-banner-block": ({ color, imageSize, image, paddingTop, paddingBottom, qa, ...content }: import("../models/blocks.js").BannerProps) => import("react/jsx-runtime").JSX.Element;
|
9
|
+
"blog-cta-block": ({ items, paddingTop, paddingBottom, qa }: import("../models/blocks.js").CTAProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
"blog-colored-text-block": ({ background, paddingTop, paddingBottom, qa, ...content }: import("../models/blocks.js").ColoredTextProps) => import("react/jsx-runtime").JSX.Element;
|
11
|
+
"blog-author-block": (props: import("../models/blocks.js").AuthorProps) => import("react/jsx-runtime").JSX.Element | null;
|
12
|
+
"blog-suggest-block": ({ paddingTop, paddingBottom }: import("../models/blocks.js").SuggestProps) => import("react/jsx-runtime").JSX.Element | null;
|
13
|
+
"blog-meta-block": (props: import("../models/blocks.js").MetaProps) => import("react/jsx-runtime").JSX.Element;
|
14
|
+
"blog-feed-block": ({ image }: import("../models/blocks.js").FeedProps) => import("react/jsx-runtime").JSX.Element;
|
15
|
+
"blog-form-block": ({ paddingTop, paddingBottom, ...props }: import("../models/blocks.js").FormProps) => import("react/jsx-runtime").JSX.Element | null;
|
15
16
|
};
|
16
17
|
headers: {
|
17
|
-
"blog-header-block": (props: import("../models/blocks").HeaderProps) => import("react").JSX.Element;
|
18
|
+
"blog-header-block": (props: import("../models/blocks.js").HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
18
19
|
};
|
19
|
-
subBlocks?: import("@gravity-ui/page-constructor").CustomItems
|
20
|
-
navigation?: import("@gravity-ui/page-constructor").CustomItems
|
21
|
-
loadable?: import("@gravity-ui/page-constructor").LoadableConfig
|
20
|
+
subBlocks?: import("@gravity-ui/page-constructor").CustomItems;
|
21
|
+
navigation?: import("@gravity-ui/page-constructor").CustomItems;
|
22
|
+
loadable?: import("@gravity-ui/page-constructor").LoadableConfig;
|
22
23
|
decorators?: {
|
23
|
-
block?: ((props: import("@gravity-ui/page-constructor").BlockDecorationProps) =>
|
24
|
-
}
|
24
|
+
block?: ((props: import("@gravity-ui/page-constructor").BlockDecorationProps) => React.ReactElement)[];
|
25
|
+
};
|
25
26
|
};
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import * as React from 'react';
|
2
2
|
import { getCustomItems } from '@gravity-ui/page-constructor';
|
3
|
-
import componentMap from
|
4
|
-
export const useExtendedComponentMap = (custom) => useMemo(() => (Object.assign(Object.assign({}, custom), { blocks: Object.assign(Object.assign({}, componentMap.blocks), getCustomItems(['blocks'], custom)), headers: Object.assign(Object.assign({}, componentMap.headers), getCustomItems(['headers'], custom)) })), [custom]);
|
3
|
+
import componentMap from "../constructor/blocksMap.js";
|
4
|
+
export const useExtendedComponentMap = (custom) => React.useMemo(() => (Object.assign(Object.assign({}, custom), { blocks: Object.assign(Object.assign({}, componentMap.blocks), getCustomItems(['blocks'], custom)), headers: Object.assign(Object.assign({}, componentMap.headers), getCustomItems(['headers'], custom)) })), [custom]);
|
5
|
+
//# sourceMappingURL=useExtendedComponentMap.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useExtendedComponentMap.js","sourceRoot":"../../../src","sources":["hooks/useExtendedComponentMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAe,cAAc,EAAC,MAAM,8BAA8B,CAAC;AAE1E,OAAO,YAAY,oCAAiC;AAEpD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,MAAgC,EAAE,EAAE,CACxE,KAAK,CAAC,OAAO,CACT,GAAG,EAAE,CAAC,iCACC,MAAM,KACT,MAAM,kCAAM,YAAY,CAAC,MAAM,GAAK,cAAc,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,GACtE,OAAO,kCAAM,YAAY,CAAC,OAAO,GAAK,cAAc,CAAC,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,KAC3E,EACF,CAAC,MAAM,CAAC,CACX,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {CustomConfig, getCustomItems} from '@gravity-ui/page-constructor';\n\nimport componentMap from '../constructor/blocksMap';\n\nexport const useExtendedComponentMap = (custom: CustomConfig | undefined) =>\n React.useMemo(\n () => ({\n ...custom,\n blocks: {...componentMap.blocks, ...getCustomItems(['blocks'], custom)},\n headers: {...componentMap.headers, ...getCustomItems(['headers'], custom)},\n }),\n [custom],\n );\n"]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import * as React from 'react';
|
2
2
|
/*
|
3
3
|
* Source code copied from https://github.com/uidotdev/usehooks | MIT License
|
4
4
|
* @see https://usehooks.com/usehover
|
@@ -25,4 +25,5 @@ export function useHover() {
|
|
25
25
|
};
|
26
26
|
}, []);
|
27
27
|
return [ref, hovering];
|
28
|
-
}
|
28
|
+
}
|
29
|
+
//# sourceMappingURL=useHover.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useHover.js","sourceRoot":"../../../src","sources":["hooks/useHover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;GAGG;AACH,MAAM,UAAU,QAAQ;IAIpB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAE/B,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,MAAM,IAAI,GAAG,GAAG,CAAC,OAAiC,CAAC;QAEnD,IAAI,CAAC,IAAI;YAAE,OAAO;QAElB,MAAM,gBAAgB,GAAG,GAAG,EAAE;YAC1B,WAAW,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC,CAAC;QAEF,MAAM,gBAAgB,GAAG,GAAG,EAAE;YAC1B,WAAW,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC,CAAC;QAEF,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;QACtD,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;QAEtD,6CAA6C;QAC7C,OAAO,GAAG,EAAE;YACR,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;YACzD,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;QAC7D,CAAC,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;AAC3B,CAAC","sourcesContent":["import * as React from 'react';\n\n/*\n * Source code copied from https://github.com/uidotdev/usehooks | MIT License\n * @see https://usehooks.com/usehover\n */\nexport function useHover<T extends HTMLElement = HTMLElement>(): [\n ref: React.RefObject<T>,\n hovering: boolean,\n] {\n const [hovering, setHovering] = React.useState(false);\n const ref = React.useRef(null);\n\n React.useEffect(() => {\n const node = ref.current as unknown as HTMLElement;\n\n if (!node) return;\n\n const handleMouseEnter = () => {\n setHovering(true);\n };\n\n const handleMouseLeave = () => {\n setHovering(false);\n };\n\n node.addEventListener('mouseenter', handleMouseEnter);\n node.addEventListener('mouseleave', handleMouseLeave);\n\n // eslint-disable-next-line consistent-return\n return () => {\n node.removeEventListener('mouseenter', handleMouseEnter);\n node.removeEventListener('mouseleave', handleMouseLeave);\n };\n }, []);\n\n return [ref, hovering];\n}\n"]}
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import
|
2
|
-
import { DeviceContext } from
|
1
|
+
import * as React from 'react';
|
2
|
+
import { DeviceContext } from "../contexts/DeviceContext.js";
|
3
3
|
export const useIsIPhone = () => {
|
4
|
-
const { device } = useContext(DeviceContext);
|
4
|
+
const { device } = React.useContext(DeviceContext);
|
5
5
|
return (device === null || device === void 0 ? void 0 : device.model) === 'iPhone';
|
6
|
-
};
|
6
|
+
};
|
7
|
+
//# sourceMappingURL=useIsIPhone.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useIsIPhone.js","sourceRoot":"../../../src","sources":["hooks/useIsIPhone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,aAAa,EAAC,qCAAkC;AAExD,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC5B,MAAM,EAAC,MAAM,EAAC,GAAG,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAEjD,OAAO,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,MAAK,QAAQ,CAAC;AACtC,CAAC,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {DeviceContext} from '../contexts/DeviceContext';\n\nexport const useIsIPhone = () => {\n const {device} = React.useContext(DeviceContext);\n\n return device?.model === 'iPhone';\n};\n"]}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import * as React from 'react';
|
2
2
|
export const useLikes = ({ hasLike, count, toggleLikeCallback, postId }) => {
|
3
|
-
const [hasUserLike, setHasUserLike] = useState(hasLike !== null && hasLike !== void 0 ? hasLike : false);
|
4
|
-
const [likesCount, setLikesCount] = useState(count !== null && count !== void 0 ? count : 0);
|
5
|
-
const handleLike = useCallback(() => {
|
3
|
+
const [hasUserLike, setHasUserLike] = React.useState(hasLike !== null && hasLike !== void 0 ? hasLike : false);
|
4
|
+
const [likesCount, setLikesCount] = React.useState(count !== null && count !== void 0 ? count : 0);
|
5
|
+
const handleLike = React.useCallback(() => {
|
6
6
|
let newLikesCount = likesCount;
|
7
7
|
if (hasUserLike && likesCount > 0) {
|
8
8
|
newLikesCount--;
|
@@ -19,7 +19,7 @@ export const useLikes = ({ hasLike, count, toggleLikeCallback, postId }) => {
|
|
19
19
|
});
|
20
20
|
}
|
21
21
|
}, [hasUserLike, likesCount, postId, toggleLikeCallback]);
|
22
|
-
useEffect(() => {
|
22
|
+
React.useEffect(() => {
|
23
23
|
setHasUserLike(hasLike !== null && hasLike !== void 0 ? hasLike : false);
|
24
24
|
setLikesCount(count !== null && count !== void 0 ? count : 0);
|
25
25
|
}, [hasLike, count]);
|
@@ -28,4 +28,5 @@ export const useLikes = ({ hasLike, count, toggleLikeCallback, postId }) => {
|
|
28
28
|
hasUserLike,
|
29
29
|
handleLike,
|
30
30
|
};
|
31
|
-
};
|
31
|
+
};
|
32
|
+
//# sourceMappingURL=useLikes.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useLikes.js","sourceRoot":"../../../src","sources":["hooks/useLikes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,MAAM,CAAC,MAAM,QAAQ,GAAiB,CAAC,EAAC,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAC,EAAE,EAAE;IACnF,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,KAAK,CAAC,CAAC;IACvE,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC,CAAC,CAAC;IAE/D,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QACtC,IAAI,aAAa,GAAG,UAAU,CAAC;QAE/B,IAAI,WAAW,IAAI,UAAU,GAAG,CAAC,EAAE,CAAC;YAChC,aAAa,EAAE,CAAC;QACpB,CAAC;QAED,IAAI,CAAC,WAAW,EAAE,CAAC;YACf,aAAa,EAAE,CAAC;QACpB,CAAC;QAED,cAAc,CAAC,CAAC,WAAW,CAAC,CAAC;QAC7B,aAAa,CAAC,aAAa,CAAC,CAAC;QAE7B,IAAI,kBAAkB,EAAE,CAAC;YACrB,kBAAkB,CAAC;gBACf,MAAM;gBACN,OAAO,EAAE,CAAC,WAAW;aACxB,CAAC,CAAC;QACP,CAAC;IACL,CAAC,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAE1D,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,cAAc,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,KAAK,CAAC,CAAC;QACjC,aAAa,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC,CAAC,CAAC;IAC9B,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IAErB,OAAO;QACH,UAAU;QACV,WAAW;QACX,UAAU;KACb,CAAC;AACN,CAAC,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {ToggleLikeCallbackType} from '../models/common';\n\ntype UseLikesProps = {\n hasLike?: boolean;\n count?: number;\n postId?: number | string;\n toggleLikeCallback?: ToggleLikeCallbackType;\n};\n\ntype UseLikeData = {\n likesCount: number;\n hasUserLike: boolean;\n handleLike: () => void;\n};\n\ntype UseLikesType = (props: UseLikesProps) => UseLikeData;\n\nexport const useLikes: UseLikesType = ({hasLike, count, toggleLikeCallback, postId}) => {\n const [hasUserLike, setHasUserLike] = React.useState(hasLike ?? false);\n const [likesCount, setLikesCount] = React.useState(count ?? 0);\n\n const handleLike = React.useCallback(() => {\n let newLikesCount = likesCount;\n\n if (hasUserLike && likesCount > 0) {\n newLikesCount--;\n }\n\n if (!hasUserLike) {\n newLikesCount++;\n }\n\n setHasUserLike(!hasUserLike);\n setLikesCount(newLikesCount);\n\n if (toggleLikeCallback) {\n toggleLikeCallback({\n postId,\n hasLike: !hasUserLike,\n });\n }\n }, [hasUserLike, likesCount, postId, toggleLikeCallback]);\n\n React.useEffect(() => {\n setHasUserLike(hasLike ?? false);\n setLikesCount(count ?? 0);\n }, [hasLike, count]);\n\n return {\n likesCount,\n hasUserLike,\n handleLike,\n };\n};\n"]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import * as React from 'react';
|
2
2
|
/**
|
3
3
|
* Timer to automatically update `open` state after a given duration
|
4
4
|
* @param {number} openTimestamp - UNIX timestamp in milliseconds
|
@@ -7,8 +7,8 @@ import { useEffect, useState } from 'react';
|
|
7
7
|
*/
|
8
8
|
export function useOpenCloseTimer(openTimestamp = Date.now(), openDuration = 4000) {
|
9
9
|
const open = Date.now() - openTimestamp < openDuration;
|
10
|
-
const [, reset] = useState(0); // time to reset `open` state
|
11
|
-
useEffect(() => {
|
10
|
+
const [, reset] = React.useState(0); // time to reset `open` state
|
11
|
+
React.useEffect(() => {
|
12
12
|
const closeTime = openTimestamp + openDuration;
|
13
13
|
const delay = closeTime - Date.now();
|
14
14
|
if (delay <= 0) {
|
@@ -23,4 +23,5 @@ export function useOpenCloseTimer(openTimestamp = Date.now(), openDuration = 400
|
|
23
23
|
};
|
24
24
|
}, [openTimestamp, openDuration]);
|
25
25
|
return { open };
|
26
|
-
}
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=useOpenCloseTimer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useOpenCloseTimer.js","sourceRoot":"../../../src","sources":["hooks/useOpenCloseTimer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,aAAa,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,YAAY,GAAG,IAAI;IAC7E,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,aAAa,GAAG,YAAY,CAAC;IACvD,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,6BAA6B;IAElE,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,MAAM,SAAS,GAAG,aAAa,GAAG,YAAY,CAAC;QAC/C,MAAM,KAAK,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAErC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;YACb,OAAO;QACX,CAAC;QAED,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;YAC1B,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpB,CAAC,EAAE,KAAK,CAAC,CAAC;QAEV,6CAA6C;QAC7C,OAAO,GAAG,EAAE;YACR,YAAY,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,CAAC;IAElC,OAAO,EAAC,IAAI,EAAC,CAAC;AAClB,CAAC","sourcesContent":["import * as React from 'react';\n\n/**\n * Timer to automatically update `open` state after a given duration\n * @param {number} openTimestamp - UNIX timestamp in milliseconds\n * @param {number} openDuration - in milliseconds\n * @returns {{open: boolean}} {open} - whether the state is open\n */\nexport function useOpenCloseTimer(openTimestamp = Date.now(), openDuration = 4000) {\n const open = Date.now() - openTimestamp < openDuration;\n const [, reset] = React.useState(0); // time to reset `open` state\n\n React.useEffect(() => {\n const closeTime = openTimestamp + openDuration;\n const delay = closeTime - Date.now();\n\n if (delay <= 0) {\n return;\n }\n\n const timer = setTimeout(() => {\n reset(Date.now);\n }, delay);\n\n // eslint-disable-next-line consistent-return\n return () => {\n clearTimeout(timer);\n };\n }, [openTimestamp, openDuration]);\n\n return {open};\n}\n"]}
|
@@ -21,4 +21,8 @@ export declare enum Keyset {
|
|
21
21
|
Save = "save",
|
22
22
|
ClearAction = "clear_action"
|
23
23
|
}
|
24
|
-
export declare const i18n: (key: Keyset, params?: import("@gravity-ui/i18n").Params
|
24
|
+
export declare const i18n: ((key: Keyset, params?: import("@gravity-ui/i18n").Params) => string) & {
|
25
|
+
keysetData: {
|
26
|
+
blog: Record<Keyset, import("@gravity-ui/i18n").KeyData>;
|
27
|
+
};
|
28
|
+
};
|
package/build/esm/i18n/index.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../../../src","sources":["i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;AAE3D,MAAM,SAAS,GAAG,MAAM,CAAC;AAEzB,MAAM,CAAN,IAAY,MAsBX;AAtBD,WAAY,MAAM;IACd,yBAAe,CAAA;IACf,gDAAsC,CAAA;IACtC,wCAA8B,CAAA;IAC9B,sCAA4B,CAAA;IAC5B,qDAA2C,CAAA;IAC3C,6CAAmC,CAAA;IACnC,6CAAmC,CAAA;IACnC,oCAA0B,CAAA;IAC1B,2CAAiC,CAAA;IACjC,uDAA6C,CAAA;IAC7C,2DAAiD,CAAA;IACjD,sCAA4B,CAAA;IAC5B,0CAAgC,CAAA;IAChC,uCAA6B,CAAA;IAC7B,oCAA0B,CAAA;IAC1B,+CAAqC,CAAA;IACrC,4CAAkC,CAAA;IAClC,uDAA6C,CAAA;IAC7C,4BAAkB,CAAA;IAClB,uBAAa,CAAA;IACb,sCAA4B,CAAA;AAChC,CAAC,E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n Title = 'title',\n TitleBreadcrumbs = 'title_breadcrumbs',\n TitleSuggest = 'title_suggest',\n ActionShare = 'action_share',\n ContextReadingTime = 'context_reading_time',\n ActionTryAgain = 'action_try_again',\n ActionLoadMore = 'action_load_more',\n ErrorTitle = 'error_title',\n PostLoadError = 'post_load_error',\n TitleEmptyContainer = 'title_empty_container',\n ContextEmptyContainer = 'context_empty_container',\n ButtonBegin = 'button_begin',\n ButtonFarther = 'button_farther',\n Search = 'search_placeholder',\n AllTags = 'label_all_tags',\n ActionSavedOnly = 'action_saved_only',\n AllServices = 'label_all_services',\n PromptSignInOnLike = 'prompt_sign_in_on_like',\n SignIn = 'Sign In',\n Save = 'save',\n ClearAction = 'clear_action',\n}\n\nconst en = {\n [Keyset.Title]: 'Blog',\n [Keyset.TitleBreadcrumbs]: 'Blog',\n [Keyset.TitleSuggest]: 'See also',\n [Keyset.ActionShare]: 'Share',\n [Keyset.ActionTryAgain]: 'Try again',\n [Keyset.ActionLoadMore]: 'See more',\n [Keyset.ErrorTitle]: 'Error',\n [Keyset.PostLoadError]: \"Posts didn't load\",\n [Keyset.TitleEmptyContainer]: \"Looks like we haven't written about that yet\",\n [Keyset.ContextEmptyContainer]: 'Try different spellings or other keywords',\n [Keyset.ButtonBegin]: 'Back to top',\n [Keyset.ButtonFarther]: 'Load more',\n [Keyset.Search]: 'Search',\n [Keyset.AllTags]: 'All topics',\n [Keyset.ActionSavedOnly]: 'Saved',\n [Keyset.AllServices]: 'All Services',\n [Keyset.PromptSignInOnLike]: 'Sign in to save this post',\n [Keyset.ContextReadingTime]: [\n '{{count}} min to read',\n '{{count}} mins to read',\n '{{count}} mins to read',\n ],\n [Keyset.SignIn]: 'Sign In',\n [Keyset.Save]: 'Save',\n [Keyset.ClearAction]: 'Clear',\n};\n\nconst ru = {\n [Keyset.Title]: 'Блог',\n [Keyset.TitleBreadcrumbs]: 'Блог',\n [Keyset.TitleSuggest]: 'Читать также',\n [Keyset.ActionShare]: 'Поделиться',\n [Keyset.ActionTryAgain]: 'Попробуйте ещё раз',\n [Keyset.ActionLoadMore]: 'Показать ещё',\n [Keyset.ErrorTitle]: 'Произошла ошибка',\n [Keyset.PostLoadError]: 'Посты не загрузились',\n [Keyset.TitleEmptyContainer]: 'Возможно, мы об этом ещё не написали',\n [Keyset.ContextEmptyContainer]:\n 'Пожалуйста, проверьте правильность написания или попробуйте другие ключевые слова',\n [Keyset.ButtonBegin]: 'В начало',\n [Keyset.ButtonFarther]: 'Дальше',\n [Keyset.Search]: 'Поиск',\n [Keyset.AllTags]: 'Все темы',\n [Keyset.ActionSavedOnly]: 'Сохранённые',\n [Keyset.AllServices]: 'Все сервисы',\n [Keyset.PromptSignInOnLike]: 'Войдите, чтобы сохранить пост',\n [Keyset.ContextReadingTime]: [\n '{{count}} минута чтения',\n '{{count}} минуты чтения',\n '{{count}} минут чтения',\n ],\n [Keyset.SignIn]: 'Войти',\n [Keyset.Save]: 'Сохранить',\n [Keyset.ClearAction]: 'Очистить',\n};\n\nexport const i18n = addComponentKeysets({en, ru}, NAMESPACE);\n"]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
export declare const Close: (props: React.SVGProps<SVGSVGElement>) =>
|
1
|
+
import * as React from 'react';
|
2
|
+
export declare const Close: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
package/build/esm/icons/Close.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import { a11yHiddenSvgProps } from
|
3
|
-
export const Close = (props) => (
|
4
|
-
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { a11yHiddenSvgProps } from "../utils/svg.js";
|
3
|
+
export const Close = (props) => (_jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "currentColor" }, a11yHiddenSvgProps, props, { children: _jsx("path", { d: "M10 0.7L9.3 0L5 4.3L0.7 0L0 0.7L4.3 5L0 9.3L0.7 10L5 5.7L9.3 10L10 9.3L5.7 5L10 0.7Z", fill: "currentColor" }) })));
|
4
|
+
//# sourceMappingURL=Close.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Close.js","sourceRoot":"../../../src","sources":["icons/Close.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,kBAAkB,EAAC,wBAAqB;AAEhD,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,CAC3D,4BACI,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,IACf,kBAAkB,EAClB,KAAK,cAET,eACI,CAAC,EAAC,sFAAsF,EACxF,IAAI,EAAC,cAAc,GACrB,IACA,CACT,CAAC","sourcesContent":["import * as React from 'react';\n\nimport {a11yHiddenSvgProps} from '../utils/svg';\n\nexport const Close = (props: React.SVGProps<SVGSVGElement>) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"10\"\n height=\"10\"\n viewBox=\"0 0 10 10\"\n fill=\"currentColor\"\n {...a11yHiddenSvgProps}\n {...props}\n >\n <path\n d=\"M10 0.7L9.3 0L5 4.3L0.7 0L0 0.7L4.3 5L0 9.3L0.7 10L5 5.7L9.3 10L10 9.3L5.7 5L10 0.7Z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n"]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
export declare const DropdownArrow: (props: React.SVGProps<SVGSVGElement>) =>
|
1
|
+
import * as React from 'react';
|
2
|
+
export declare const DropdownArrow: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import { a11yHiddenSvgProps } from
|
3
|
-
export const DropdownArrow = (props) => (
|
4
|
-
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { a11yHiddenSvgProps } from "../utils/svg.js";
|
3
|
+
export const DropdownArrow = (props) => (_jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor" }, a11yHiddenSvgProps, props, { children: _jsx("path", { d: "M3.50172 5.44253C3.19384 5.16544 2.71962 5.19039 2.44253 5.49828C2.16544 5.80616 2.19039 6.28038 2.49828 6.55747L3.50172 5.44253ZM8 10.5L7.49828 11.0575C7.7835 11.3142 8.2165 11.3142 8.50172 11.0575L8 10.5ZM13.5017 6.55747C13.8096 6.28038 13.8346 5.80616 13.5575 5.49828C13.2804 5.19039 12.8062 5.16544 12.4983 5.44253L13.5017 6.55747ZM2.49828 6.55747L7.49828 11.0575L8.50172 9.94253L3.50172 5.44253L2.49828 6.55747ZM8.50172 11.0575L13.5017 6.55747L12.4983 5.44253L7.49828 9.94253L8.50172 11.0575Z" }) })));
|
4
|
+
//# sourceMappingURL=DropdownArrow.js.map
|