@newskit-render/standalone-components 0.0.0-e16014a0
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/README.md +798 -0
- package/dist/cjs/article-recommendations/components/AdPlaceholder.d.ts +9 -0
- package/dist/cjs/article-recommendations/components/AdPlaceholder.js +23 -0
- package/dist/cjs/article-recommendations/components/AdPlaceholder.js.map +1 -0
- package/dist/cjs/article-recommendations/components/ArticleGrid.d.ts +4 -0
- package/dist/cjs/article-recommendations/components/ArticleGrid.js +36 -0
- package/dist/cjs/article-recommendations/components/ArticleGrid.js.map +1 -0
- package/dist/cjs/article-recommendations/components/ArticleRecommendation.d.ts +4 -0
- package/dist/cjs/article-recommendations/components/ArticleRecommendation.js +19 -0
- package/dist/cjs/article-recommendations/components/ArticleRecommendation.js.map +1 -0
- package/dist/cjs/article-recommendations/components/ArticleRecommendationLarge.d.ts +7 -0
- package/dist/cjs/article-recommendations/components/ArticleRecommendationLarge.js +59 -0
- package/dist/cjs/article-recommendations/components/ArticleRecommendationLarge.js.map +1 -0
- package/dist/cjs/article-recommendations/components/ArticleRecommendationSmall.d.ts +7 -0
- package/dist/cjs/article-recommendations/components/ArticleRecommendationSmall.js +43 -0
- package/dist/cjs/article-recommendations/components/ArticleRecommendationSmall.js.map +1 -0
- package/dist/cjs/article-recommendations/components/ArticleRecommendationsProvider.d.ts +4 -0
- package/dist/cjs/article-recommendations/components/ArticleRecommendationsProvider.js +83 -0
- package/dist/cjs/article-recommendations/components/ArticleRecommendationsProvider.js.map +1 -0
- package/dist/cjs/article-recommendations/components/RecommendedArticleList.d.ts +5 -0
- package/dist/cjs/article-recommendations/components/RecommendedArticleList.js +43 -0
- package/dist/cjs/article-recommendations/components/RecommendedArticleList.js.map +1 -0
- package/dist/cjs/article-recommendations/components/baseProps.d.ts +63 -0
- package/dist/cjs/article-recommendations/components/baseProps.js +67 -0
- package/dist/cjs/article-recommendations/components/baseProps.js.map +1 -0
- package/dist/cjs/article-recommendations/components/index.d.ts +7 -0
- package/dist/cjs/article-recommendations/components/index.js +32 -0
- package/dist/cjs/article-recommendations/components/index.js.map +1 -0
- package/dist/cjs/article-recommendations/context/index.d.ts +3 -0
- package/dist/cjs/article-recommendations/context/index.js +9 -0
- package/dist/cjs/article-recommendations/context/index.js.map +1 -0
- package/dist/cjs/article-recommendations/helpers/index.d.ts +2 -0
- package/dist/cjs/article-recommendations/helpers/index.js +24 -0
- package/dist/cjs/article-recommendations/helpers/index.js.map +1 -0
- package/dist/cjs/article-recommendations/index.d.ts +4 -0
- package/dist/cjs/article-recommendations/index.js +25 -0
- package/dist/cjs/article-recommendations/index.js.map +1 -0
- package/dist/cjs/article-recommendations/provider/index.d.ts +1 -0
- package/dist/cjs/article-recommendations/provider/index.js +18 -0
- package/dist/cjs/article-recommendations/provider/index.js.map +1 -0
- package/dist/cjs/article-recommendations/provider/queries/getRecommendationsQuery.d.ts +1 -0
- package/dist/cjs/article-recommendations/provider/queries/getRecommendationsQuery.js +11 -0
- package/dist/cjs/article-recommendations/provider/queries/getRecommendationsQuery.js.map +1 -0
- package/dist/cjs/article-recommendations/provider/queries/index.d.ts +1 -0
- package/dist/cjs/article-recommendations/provider/queries/index.js +18 -0
- package/dist/cjs/article-recommendations/provider/queries/index.js.map +1 -0
- package/dist/cjs/article-recommendations/provider/recommendationsProvider.d.ts +4 -0
- package/dist/cjs/article-recommendations/provider/recommendationsProvider.js +91 -0
- package/dist/cjs/article-recommendations/provider/recommendationsProvider.js.map +1 -0
- package/dist/cjs/article-recommendations/types/index.d.ts +108 -0
- package/dist/cjs/article-recommendations/types/index.js +8 -0
- package/dist/cjs/article-recommendations/types/index.js.map +1 -0
- package/dist/cjs/config/index.d.ts +2 -0
- package/dist/cjs/config/index.js +23 -0
- package/dist/cjs/config/index.js.map +1 -0
- package/dist/cjs/help-chat/Help.d.ts +5 -0
- package/dist/cjs/help-chat/Help.js +40 -0
- package/dist/cjs/help-chat/Help.js.map +1 -0
- package/dist/cjs/help-chat/chatHelpDefaultOverrides.d.ts +38 -0
- package/dist/cjs/help-chat/chatHelpDefaultOverrides.js +48 -0
- package/dist/cjs/help-chat/chatHelpDefaultOverrides.js.map +1 -0
- package/dist/cjs/help-chat/index.d.ts +2 -0
- package/dist/cjs/help-chat/index.js +19 -0
- package/dist/cjs/help-chat/index.js.map +1 -0
- package/dist/cjs/help-chat/tests/Chat.stories.d.ts +5 -0
- package/dist/cjs/help-chat/tests/Chat.stories.js +55 -0
- package/dist/cjs/help-chat/tests/Chat.stories.js.map +1 -0
- package/dist/cjs/help-chat/tests/mocks.d.ts +2 -0
- package/dist/cjs/help-chat/tests/mocks.js +47 -0
- package/dist/cjs/help-chat/tests/mocks.js.map +1 -0
- package/dist/cjs/help-chat/types.d.ts +31 -0
- package/dist/cjs/help-chat/types.js +3 -0
- package/dist/cjs/help-chat/types.js.map +1 -0
- package/dist/cjs/help-hub/components/SearchBar/SearchBar.d.ts +4 -0
- package/dist/cjs/help-hub/components/SearchBar/SearchBar.js +26 -0
- package/dist/cjs/help-hub/components/SearchBar/SearchBar.js.map +1 -0
- package/dist/cjs/help-hub/components/SearchBar/components/AlgoliaTheme.d.ts +3 -0
- package/dist/cjs/help-hub/components/SearchBar/components/AlgoliaTheme.js +16 -0
- package/dist/cjs/help-hub/components/SearchBar/components/AlgoliaTheme.js.map +1 -0
- package/dist/cjs/help-hub/components/SearchBar/components/Autocomplete.d.ts +6 -0
- package/dist/cjs/help-hub/components/SearchBar/components/Autocomplete.js +209 -0
- package/dist/cjs/help-hub/components/SearchBar/components/Autocomplete.js.map +1 -0
- package/dist/cjs/help-hub/components/SearchBar/components/Highlight.d.ts +23 -0
- package/dist/cjs/help-hub/components/SearchBar/components/Highlight.js +19 -0
- package/dist/cjs/help-hub/components/SearchBar/components/Highlight.js.map +1 -0
- package/dist/cjs/help-hub/components/SearchBar/defaults.d.ts +17 -0
- package/dist/cjs/help-hub/components/SearchBar/defaults.js +21 -0
- package/dist/cjs/help-hub/components/SearchBar/defaults.js.map +1 -0
- package/dist/cjs/help-hub/components/SearchBar/index.d.ts +1 -0
- package/dist/cjs/help-hub/components/SearchBar/index.js +18 -0
- package/dist/cjs/help-hub/components/SearchBar/index.js.map +1 -0
- package/dist/cjs/help-hub/components/SearchBar/types.d.ts +30 -0
- package/dist/cjs/help-hub/components/SearchBar/types.js +3 -0
- package/dist/cjs/help-hub/components/SearchBar/types.js.map +1 -0
- package/dist/cjs/help-hub/components/SearchBreadcrumb/SearchBreadcrumb.d.ts +4 -0
- package/dist/cjs/help-hub/components/SearchBreadcrumb/SearchBreadcrumb.js +36 -0
- package/dist/cjs/help-hub/components/SearchBreadcrumb/SearchBreadcrumb.js.map +1 -0
- package/dist/cjs/help-hub/components/SearchBreadcrumb/index.d.ts +2 -0
- package/dist/cjs/help-hub/components/SearchBreadcrumb/index.js +8 -0
- package/dist/cjs/help-hub/components/SearchBreadcrumb/index.js.map +1 -0
- package/dist/cjs/help-hub/components/Templates/LayoutTemplate.d.ts +12 -0
- package/dist/cjs/help-hub/components/Templates/LayoutTemplate.js +67 -0
- package/dist/cjs/help-hub/components/Templates/LayoutTemplate.js.map +1 -0
- package/dist/cjs/help-hub/components/Templates/index.d.ts +3 -0
- package/dist/cjs/help-hub/components/Templates/index.js +20 -0
- package/dist/cjs/help-hub/components/Templates/index.js.map +1 -0
- package/dist/cjs/help-hub/components/Templates/types.d.ts +13 -0
- package/dist/cjs/help-hub/components/Templates/types.js +3 -0
- package/dist/cjs/help-hub/components/Templates/types.js.map +1 -0
- package/dist/cjs/help-hub/context/CredentialsContextProvider.d.ts +7 -0
- package/dist/cjs/help-hub/context/CredentialsContextProvider.js +42 -0
- package/dist/cjs/help-hub/context/CredentialsContextProvider.js.map +1 -0
- package/dist/cjs/help-hub/context/HelpHubContextProvider.d.ts +7 -0
- package/dist/cjs/help-hub/context/HelpHubContextProvider.js +54 -0
- package/dist/cjs/help-hub/context/HelpHubContextProvider.js.map +1 -0
- package/dist/cjs/help-hub/context/baseContext.d.ts +3 -0
- package/dist/cjs/help-hub/context/baseContext.js +139 -0
- package/dist/cjs/help-hub/context/baseContext.js.map +1 -0
- package/dist/cjs/help-hub/context/index.d.ts +2 -0
- package/dist/cjs/help-hub/context/index.js +19 -0
- package/dist/cjs/help-hub/context/index.js.map +1 -0
- package/dist/cjs/help-hub/context/types.d.ts +74 -0
- package/dist/cjs/help-hub/context/types.js +11 -0
- package/dist/cjs/help-hub/context/types.js.map +1 -0
- package/dist/cjs/help-hub/helpers/cache-referers.d.ts +2 -0
- package/dist/cjs/help-hub/helpers/cache-referers.js +20 -0
- package/dist/cjs/help-hub/helpers/cache-referers.js.map +1 -0
- package/dist/cjs/help-hub/helpers/index.d.ts +2 -0
- package/dist/cjs/help-hub/helpers/index.js +19 -0
- package/dist/cjs/help-hub/helpers/index.js.map +1 -0
- package/dist/cjs/help-hub/helpers/transform-hits.d.ts +4 -0
- package/dist/cjs/help-hub/helpers/transform-hits.js +15 -0
- package/dist/cjs/help-hub/helpers/transform-hits.js.map +1 -0
- package/dist/cjs/help-hub/index.d.ts +6 -0
- package/dist/cjs/help-hub/index.js +23 -0
- package/dist/cjs/help-hub/index.js.map +1 -0
- package/dist/cjs/help-hub/mocks/articlePageContextOptionsMock.d.ts +2 -0
- package/dist/cjs/help-hub/mocks/articlePageContextOptionsMock.js +27 -0
- package/dist/cjs/help-hub/mocks/articlePageContextOptionsMock.js.map +1 -0
- package/dist/cjs/help-hub/mocks/index.d.ts +1 -0
- package/dist/cjs/help-hub/mocks/index.js +18 -0
- package/dist/cjs/help-hub/mocks/index.js.map +1 -0
- package/dist/cjs/help-hub/mocks/landingPageContextOptionsMock.d.ts +2 -0
- package/dist/cjs/help-hub/mocks/landingPageContextOptionsMock.js +20 -0
- package/dist/cjs/help-hub/mocks/landingPageContextOptionsMock.js.map +1 -0
- package/dist/cjs/help-hub/mocks/mocks.d.ts +5 -0
- package/dist/cjs/help-hub/mocks/mocks.js +14 -0
- package/dist/cjs/help-hub/mocks/mocks.js.map +1 -0
- package/dist/cjs/help-hub/mocks/resultsPageContextOptionsMock.d.ts +2 -0
- package/dist/cjs/help-hub/mocks/resultsPageContextOptionsMock.js +20 -0
- package/dist/cjs/help-hub/mocks/resultsPageContextOptionsMock.js.map +1 -0
- package/dist/cjs/help-hub/mocks/sharedMocks.d.ts +17 -0
- package/dist/cjs/help-hub/mocks/sharedMocks.js +154 -0
- package/dist/cjs/help-hub/mocks/sharedMocks.js.map +1 -0
- package/dist/cjs/help-hub/pages/ArticlePage.d.ts +7 -0
- package/dist/cjs/help-hub/pages/ArticlePage.js +149 -0
- package/dist/cjs/help-hub/pages/ArticlePage.js.map +1 -0
- package/dist/cjs/help-hub/pages/ErrorPage.d.ts +7 -0
- package/dist/cjs/help-hub/pages/ErrorPage.js +91 -0
- package/dist/cjs/help-hub/pages/ErrorPage.js.map +1 -0
- package/dist/cjs/help-hub/pages/LandingPage.d.ts +6 -0
- package/dist/cjs/help-hub/pages/LandingPage.js +94 -0
- package/dist/cjs/help-hub/pages/LandingPage.js.map +1 -0
- package/dist/cjs/help-hub/pages/ResultsPage.d.ts +6 -0
- package/dist/cjs/help-hub/pages/ResultsPage.js +205 -0
- package/dist/cjs/help-hub/pages/ResultsPage.js.map +1 -0
- package/dist/cjs/help-hub/pages/index.d.ts +5 -0
- package/dist/cjs/help-hub/pages/index.js +39 -0
- package/dist/cjs/help-hub/pages/index.js.map +1 -0
- package/dist/cjs/help-hub/pages/types.d.ts +19 -0
- package/dist/cjs/help-hub/pages/types.js +3 -0
- package/dist/cjs/help-hub/pages/types.js.map +1 -0
- package/dist/cjs/help-hub/provider/articleProvider.d.ts +22 -0
- package/dist/cjs/help-hub/provider/articleProvider.js +90 -0
- package/dist/cjs/help-hub/provider/articleProvider.js.map +1 -0
- package/dist/cjs/help-hub/provider/errorPageProvider.d.ts +10 -0
- package/dist/cjs/help-hub/provider/errorPageProvider.js +56 -0
- package/dist/cjs/help-hub/provider/errorPageProvider.js.map +1 -0
- package/dist/cjs/help-hub/provider/getHelpHubConfig.d.ts +2 -0
- package/dist/cjs/help-hub/provider/getHelpHubConfig.js +17 -0
- package/dist/cjs/help-hub/provider/getHelpHubConfig.js.map +1 -0
- package/dist/cjs/help-hub/provider/index.d.ts +7 -0
- package/dist/cjs/help-hub/provider/index.js +31 -0
- package/dist/cjs/help-hub/provider/index.js.map +1 -0
- package/dist/cjs/help-hub/provider/landingPageProvider.d.ts +10 -0
- package/dist/cjs/help-hub/provider/landingPageProvider.js +56 -0
- package/dist/cjs/help-hub/provider/landingPageProvider.js.map +1 -0
- package/dist/cjs/help-hub/provider/resultsProvider.d.ts +27 -0
- package/dist/cjs/help-hub/provider/resultsProvider.js +120 -0
- package/dist/cjs/help-hub/provider/resultsProvider.js.map +1 -0
- package/dist/cjs/help-hub/provider/types.d.ts +43 -0
- package/dist/cjs/help-hub/provider/types.js +13 -0
- package/dist/cjs/help-hub/provider/types.js.map +1 -0
- package/dist/cjs/help-hub/types/index.d.ts +11 -0
- package/dist/cjs/help-hub/types/index.js +3 -0
- package/dist/cjs/help-hub/types/index.js.map +1 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +21 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/rss-console/client/index.d.ts +13 -0
- package/dist/cjs/rss-console/client/index.js +88 -0
- package/dist/cjs/rss-console/client/index.js.map +1 -0
- package/dist/cjs/rss-console/components/Templates/LayoutTemplate.d.ts +12 -0
- package/dist/cjs/rss-console/components/Templates/LayoutTemplate.js +81 -0
- package/dist/cjs/rss-console/components/Templates/LayoutTemplate.js.map +1 -0
- package/dist/cjs/rss-console/components/Templates/index.d.ts +3 -0
- package/dist/cjs/rss-console/components/Templates/index.js +20 -0
- package/dist/cjs/rss-console/components/Templates/index.js.map +1 -0
- package/dist/cjs/rss-console/components/Templates/types.d.ts +13 -0
- package/dist/cjs/rss-console/components/Templates/types.js +3 -0
- package/dist/cjs/rss-console/components/Templates/types.js.map +1 -0
- package/dist/cjs/rss-console/context/RSSConsoleContextProvider.d.ts +7 -0
- package/dist/cjs/rss-console/context/RSSConsoleContextProvider.js +53 -0
- package/dist/cjs/rss-console/context/RSSConsoleContextProvider.js.map +1 -0
- package/dist/cjs/rss-console/context/baseContext.d.ts +2 -0
- package/dist/cjs/rss-console/context/baseContext.js +85 -0
- package/dist/cjs/rss-console/context/baseContext.js.map +1 -0
- package/dist/cjs/rss-console/context/index.d.ts +1 -0
- package/dist/cjs/rss-console/context/index.js +18 -0
- package/dist/cjs/rss-console/context/index.js.map +1 -0
- package/dist/cjs/rss-console/context/types.d.ts +27 -0
- package/dist/cjs/rss-console/context/types.js +10 -0
- package/dist/cjs/rss-console/context/types.js.map +1 -0
- package/dist/cjs/rss-console/hooks/useFeed.d.ts +4 -0
- package/dist/cjs/rss-console/hooks/useFeed.js +53 -0
- package/dist/cjs/rss-console/hooks/useFeed.js.map +1 -0
- package/dist/cjs/rss-console/hooks/useFeedCreation.d.ts +4 -0
- package/dist/cjs/rss-console/hooks/useFeedCreation.js +61 -0
- package/dist/cjs/rss-console/hooks/useFeedCreation.js.map +1 -0
- package/dist/cjs/rss-console/hooks/useFeedList.d.ts +4 -0
- package/dist/cjs/rss-console/hooks/useFeedList.js +55 -0
- package/dist/cjs/rss-console/hooks/useFeedList.js.map +1 -0
- package/dist/cjs/rss-console/index.d.ts +1 -0
- package/dist/cjs/rss-console/index.js +18 -0
- package/dist/cjs/rss-console/index.js.map +1 -0
- package/dist/cjs/rss-console/pages/CreateFeedPage.d.ts +4 -0
- package/dist/cjs/rss-console/pages/CreateFeedPage.js +127 -0
- package/dist/cjs/rss-console/pages/CreateFeedPage.js.map +1 -0
- package/dist/cjs/rss-console/pages/FeedDetailsPage.d.ts +4 -0
- package/dist/cjs/rss-console/pages/FeedDetailsPage.js +84 -0
- package/dist/cjs/rss-console/pages/FeedDetailsPage.js.map +1 -0
- package/dist/cjs/rss-console/pages/FeedsListPage.d.ts +4 -0
- package/dist/cjs/rss-console/pages/FeedsListPage.js +72 -0
- package/dist/cjs/rss-console/pages/FeedsListPage.js.map +1 -0
- package/dist/cjs/rss-console/pages/index.d.ts +6 -0
- package/dist/cjs/rss-console/pages/index.js +13 -0
- package/dist/cjs/rss-console/pages/index.js.map +1 -0
- package/dist/cjs/rss-console/pages/types.d.ts +11 -0
- package/dist/cjs/rss-console/pages/types.js +3 -0
- package/dist/cjs/rss-console/pages/types.js.map +1 -0
- package/dist/esm/article-recommendations/components/AdPlaceholder.d.ts +9 -0
- package/dist/esm/article-recommendations/components/AdPlaceholder.js +18 -0
- package/dist/esm/article-recommendations/components/AdPlaceholder.js.map +1 -0
- package/dist/esm/article-recommendations/components/ArticleGrid.d.ts +4 -0
- package/dist/esm/article-recommendations/components/ArticleGrid.js +31 -0
- package/dist/esm/article-recommendations/components/ArticleGrid.js.map +1 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendation.d.ts +4 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendation.js +14 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendation.js.map +1 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendationLarge.d.ts +7 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendationLarge.js +31 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendationLarge.js.map +1 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendationSmall.d.ts +7 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendationSmall.js +15 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendationSmall.js.map +1 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendationsProvider.d.ts +4 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendationsProvider.js +78 -0
- package/dist/esm/article-recommendations/components/ArticleRecommendationsProvider.js.map +1 -0
- package/dist/esm/article-recommendations/components/RecommendedArticleList.d.ts +5 -0
- package/dist/esm/article-recommendations/components/RecommendedArticleList.js +15 -0
- package/dist/esm/article-recommendations/components/RecommendedArticleList.js.map +1 -0
- package/dist/esm/article-recommendations/components/baseProps.d.ts +63 -0
- package/dist/esm/article-recommendations/components/baseProps.js +64 -0
- package/dist/esm/article-recommendations/components/baseProps.js.map +1 -0
- package/dist/esm/article-recommendations/components/index.d.ts +7 -0
- package/dist/esm/article-recommendations/components/index.js +8 -0
- package/dist/esm/article-recommendations/components/index.js.map +1 -0
- package/dist/esm/article-recommendations/context/index.d.ts +3 -0
- package/dist/esm/article-recommendations/context/index.js +3 -0
- package/dist/esm/article-recommendations/context/index.js.map +1 -0
- package/dist/esm/article-recommendations/helpers/index.d.ts +2 -0
- package/dist/esm/article-recommendations/helpers/index.js +20 -0
- package/dist/esm/article-recommendations/helpers/index.js.map +1 -0
- package/dist/esm/article-recommendations/index.d.ts +4 -0
- package/dist/esm/article-recommendations/index.js +5 -0
- package/dist/esm/article-recommendations/index.js.map +1 -0
- package/dist/esm/article-recommendations/provider/index.d.ts +1 -0
- package/dist/esm/article-recommendations/provider/index.js +2 -0
- package/dist/esm/article-recommendations/provider/index.js.map +1 -0
- package/dist/esm/article-recommendations/provider/queries/getRecommendationsQuery.d.ts +1 -0
- package/dist/esm/article-recommendations/provider/queries/getRecommendationsQuery.js +8 -0
- package/dist/esm/article-recommendations/provider/queries/getRecommendationsQuery.js.map +1 -0
- package/dist/esm/article-recommendations/provider/queries/index.d.ts +1 -0
- package/dist/esm/article-recommendations/provider/queries/index.js +2 -0
- package/dist/esm/article-recommendations/provider/queries/index.js.map +1 -0
- package/dist/esm/article-recommendations/provider/recommendationsProvider.d.ts +4 -0
- package/dist/esm/article-recommendations/provider/recommendationsProvider.js +86 -0
- package/dist/esm/article-recommendations/provider/recommendationsProvider.js.map +1 -0
- package/dist/esm/article-recommendations/types/index.d.ts +108 -0
- package/dist/esm/article-recommendations/types/index.js +5 -0
- package/dist/esm/article-recommendations/types/index.js.map +1 -0
- package/dist/esm/config/index.d.ts +2 -0
- package/dist/esm/config/index.js +20 -0
- package/dist/esm/config/index.js.map +1 -0
- package/dist/esm/help-chat/Help.d.ts +5 -0
- package/dist/esm/help-chat/Help.js +33 -0
- package/dist/esm/help-chat/Help.js.map +1 -0
- package/dist/esm/help-chat/chatHelpDefaultOverrides.d.ts +38 -0
- package/dist/esm/help-chat/chatHelpDefaultOverrides.js +42 -0
- package/dist/esm/help-chat/chatHelpDefaultOverrides.js.map +1 -0
- package/dist/esm/help-chat/index.d.ts +2 -0
- package/dist/esm/help-chat/index.js +3 -0
- package/dist/esm/help-chat/index.js.map +1 -0
- package/dist/esm/help-chat/tests/Chat.stories.d.ts +5 -0
- package/dist/esm/help-chat/tests/Chat.stories.js +47 -0
- package/dist/esm/help-chat/tests/Chat.stories.js.map +1 -0
- package/dist/esm/help-chat/tests/mocks.d.ts +2 -0
- package/dist/esm/help-chat/tests/mocks.js +41 -0
- package/dist/esm/help-chat/tests/mocks.js.map +1 -0
- package/dist/esm/help-chat/types.d.ts +31 -0
- package/dist/esm/help-chat/types.js +2 -0
- package/dist/esm/help-chat/types.js.map +1 -0
- package/dist/esm/help-hub/components/SearchBar/SearchBar.d.ts +4 -0
- package/dist/esm/help-hub/components/SearchBar/SearchBar.js +19 -0
- package/dist/esm/help-hub/components/SearchBar/SearchBar.js.map +1 -0
- package/dist/esm/help-hub/components/SearchBar/components/AlgoliaTheme.d.ts +3 -0
- package/dist/esm/help-hub/components/SearchBar/components/AlgoliaTheme.js +12 -0
- package/dist/esm/help-hub/components/SearchBar/components/AlgoliaTheme.js.map +1 -0
- package/dist/esm/help-hub/components/SearchBar/components/Autocomplete.d.ts +6 -0
- package/dist/esm/help-hub/components/SearchBar/components/Autocomplete.js +179 -0
- package/dist/esm/help-hub/components/SearchBar/components/Autocomplete.js.map +1 -0
- package/dist/esm/help-hub/components/SearchBar/components/Highlight.d.ts +23 -0
- package/dist/esm/help-hub/components/SearchBar/components/Highlight.js +15 -0
- package/dist/esm/help-hub/components/SearchBar/components/Highlight.js.map +1 -0
- package/dist/esm/help-hub/components/SearchBar/defaults.d.ts +17 -0
- package/dist/esm/help-hub/components/SearchBar/defaults.js +18 -0
- package/dist/esm/help-hub/components/SearchBar/defaults.js.map +1 -0
- package/dist/esm/help-hub/components/SearchBar/index.d.ts +1 -0
- package/dist/esm/help-hub/components/SearchBar/index.js +2 -0
- package/dist/esm/help-hub/components/SearchBar/index.js.map +1 -0
- package/dist/esm/help-hub/components/SearchBar/types.d.ts +30 -0
- package/dist/esm/help-hub/components/SearchBar/types.js +2 -0
- package/dist/esm/help-hub/components/SearchBar/types.js.map +1 -0
- package/dist/esm/help-hub/components/SearchBreadcrumb/SearchBreadcrumb.d.ts +4 -0
- package/dist/esm/help-hub/components/SearchBreadcrumb/SearchBreadcrumb.js +31 -0
- package/dist/esm/help-hub/components/SearchBreadcrumb/SearchBreadcrumb.js.map +1 -0
- package/dist/esm/help-hub/components/SearchBreadcrumb/index.d.ts +2 -0
- package/dist/esm/help-hub/components/SearchBreadcrumb/index.js +3 -0
- package/dist/esm/help-hub/components/SearchBreadcrumb/index.js.map +1 -0
- package/dist/esm/help-hub/components/Templates/LayoutTemplate.d.ts +12 -0
- package/dist/esm/help-hub/components/Templates/LayoutTemplate.js +59 -0
- package/dist/esm/help-hub/components/Templates/LayoutTemplate.js.map +1 -0
- package/dist/esm/help-hub/components/Templates/index.d.ts +3 -0
- package/dist/esm/help-hub/components/Templates/index.js +4 -0
- package/dist/esm/help-hub/components/Templates/index.js.map +1 -0
- package/dist/esm/help-hub/components/Templates/types.d.ts +13 -0
- package/dist/esm/help-hub/components/Templates/types.js +2 -0
- package/dist/esm/help-hub/components/Templates/types.js.map +1 -0
- package/dist/esm/help-hub/context/CredentialsContextProvider.d.ts +7 -0
- package/dist/esm/help-hub/context/CredentialsContextProvider.js +14 -0
- package/dist/esm/help-hub/context/CredentialsContextProvider.js.map +1 -0
- package/dist/esm/help-hub/context/HelpHubContextProvider.d.ts +7 -0
- package/dist/esm/help-hub/context/HelpHubContextProvider.js +22 -0
- package/dist/esm/help-hub/context/HelpHubContextProvider.js.map +1 -0
- package/dist/esm/help-hub/context/baseContext.d.ts +3 -0
- package/dist/esm/help-hub/context/baseContext.js +136 -0
- package/dist/esm/help-hub/context/baseContext.js.map +1 -0
- package/dist/esm/help-hub/context/index.d.ts +2 -0
- package/dist/esm/help-hub/context/index.js +3 -0
- package/dist/esm/help-hub/context/index.js.map +1 -0
- package/dist/esm/help-hub/context/types.d.ts +74 -0
- package/dist/esm/help-hub/context/types.js +8 -0
- package/dist/esm/help-hub/context/types.js.map +1 -0
- package/dist/esm/help-hub/helpers/cache-referers.d.ts +2 -0
- package/dist/esm/help-hub/helpers/cache-referers.js +15 -0
- package/dist/esm/help-hub/helpers/cache-referers.js.map +1 -0
- package/dist/esm/help-hub/helpers/index.d.ts +2 -0
- package/dist/esm/help-hub/helpers/index.js +3 -0
- package/dist/esm/help-hub/helpers/index.js.map +1 -0
- package/dist/esm/help-hub/helpers/transform-hits.d.ts +4 -0
- package/dist/esm/help-hub/helpers/transform-hits.js +11 -0
- package/dist/esm/help-hub/helpers/transform-hits.js.map +1 -0
- package/dist/esm/help-hub/index.d.ts +6 -0
- package/dist/esm/help-hub/index.js +5 -0
- package/dist/esm/help-hub/index.js.map +1 -0
- package/dist/esm/help-hub/mocks/articlePageContextOptionsMock.d.ts +2 -0
- package/dist/esm/help-hub/mocks/articlePageContextOptionsMock.js +24 -0
- package/dist/esm/help-hub/mocks/articlePageContextOptionsMock.js.map +1 -0
- package/dist/esm/help-hub/mocks/index.d.ts +1 -0
- package/dist/esm/help-hub/mocks/index.js +2 -0
- package/dist/esm/help-hub/mocks/index.js.map +1 -0
- package/dist/esm/help-hub/mocks/landingPageContextOptionsMock.d.ts +2 -0
- package/dist/esm/help-hub/mocks/landingPageContextOptionsMock.js +17 -0
- package/dist/esm/help-hub/mocks/landingPageContextOptionsMock.js.map +1 -0
- package/dist/esm/help-hub/mocks/mocks.d.ts +5 -0
- package/dist/esm/help-hub/mocks/mocks.js +11 -0
- package/dist/esm/help-hub/mocks/mocks.js.map +1 -0
- package/dist/esm/help-hub/mocks/resultsPageContextOptionsMock.d.ts +2 -0
- package/dist/esm/help-hub/mocks/resultsPageContextOptionsMock.js +17 -0
- package/dist/esm/help-hub/mocks/resultsPageContextOptionsMock.js.map +1 -0
- package/dist/esm/help-hub/mocks/sharedMocks.d.ts +17 -0
- package/dist/esm/help-hub/mocks/sharedMocks.js +151 -0
- package/dist/esm/help-hub/mocks/sharedMocks.js.map +1 -0
- package/dist/esm/help-hub/pages/ArticlePage.d.ts +7 -0
- package/dist/esm/help-hub/pages/ArticlePage.js +118 -0
- package/dist/esm/help-hub/pages/ArticlePage.js.map +1 -0
- package/dist/esm/help-hub/pages/ErrorPage.d.ts +7 -0
- package/dist/esm/help-hub/pages/ErrorPage.js +83 -0
- package/dist/esm/help-hub/pages/ErrorPage.js.map +1 -0
- package/dist/esm/help-hub/pages/LandingPage.d.ts +6 -0
- package/dist/esm/help-hub/pages/LandingPage.js +87 -0
- package/dist/esm/help-hub/pages/LandingPage.js.map +1 -0
- package/dist/esm/help-hub/pages/ResultsPage.d.ts +6 -0
- package/dist/esm/help-hub/pages/ResultsPage.js +175 -0
- package/dist/esm/help-hub/pages/ResultsPage.js.map +1 -0
- package/dist/esm/help-hub/pages/index.d.ts +5 -0
- package/dist/esm/help-hub/pages/index.js +6 -0
- package/dist/esm/help-hub/pages/index.js.map +1 -0
- package/dist/esm/help-hub/pages/types.d.ts +19 -0
- package/dist/esm/help-hub/pages/types.js +2 -0
- package/dist/esm/help-hub/pages/types.js.map +1 -0
- package/dist/esm/help-hub/provider/articleProvider.d.ts +22 -0
- package/dist/esm/help-hub/provider/articleProvider.js +85 -0
- package/dist/esm/help-hub/provider/articleProvider.js.map +1 -0
- package/dist/esm/help-hub/provider/errorPageProvider.d.ts +10 -0
- package/dist/esm/help-hub/provider/errorPageProvider.js +54 -0
- package/dist/esm/help-hub/provider/errorPageProvider.js.map +1 -0
- package/dist/esm/help-hub/provider/getHelpHubConfig.d.ts +2 -0
- package/dist/esm/help-hub/provider/getHelpHubConfig.js +13 -0
- package/dist/esm/help-hub/provider/getHelpHubConfig.js.map +1 -0
- package/dist/esm/help-hub/provider/index.d.ts +7 -0
- package/dist/esm/help-hub/provider/index.js +8 -0
- package/dist/esm/help-hub/provider/index.js.map +1 -0
- package/dist/esm/help-hub/provider/landingPageProvider.d.ts +10 -0
- package/dist/esm/help-hub/provider/landingPageProvider.js +54 -0
- package/dist/esm/help-hub/provider/landingPageProvider.js.map +1 -0
- package/dist/esm/help-hub/provider/resultsProvider.d.ts +27 -0
- package/dist/esm/help-hub/provider/resultsProvider.js +113 -0
- package/dist/esm/help-hub/provider/resultsProvider.js.map +1 -0
- package/dist/esm/help-hub/provider/types.d.ts +43 -0
- package/dist/esm/help-hub/provider/types.js +10 -0
- package/dist/esm/help-hub/provider/types.js.map +1 -0
- package/dist/esm/help-hub/types/index.d.ts +11 -0
- package/dist/esm/help-hub/types/index.js +2 -0
- package/dist/esm/help-hub/types/index.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/rss-console/client/index.d.ts +13 -0
- package/dist/esm/rss-console/client/index.js +85 -0
- package/dist/esm/rss-console/client/index.js.map +1 -0
- package/dist/esm/rss-console/components/Templates/LayoutTemplate.d.ts +12 -0
- package/dist/esm/rss-console/components/Templates/LayoutTemplate.js +73 -0
- package/dist/esm/rss-console/components/Templates/LayoutTemplate.js.map +1 -0
- package/dist/esm/rss-console/components/Templates/index.d.ts +3 -0
- package/dist/esm/rss-console/components/Templates/index.js +4 -0
- package/dist/esm/rss-console/components/Templates/index.js.map +1 -0
- package/dist/esm/rss-console/components/Templates/types.d.ts +13 -0
- package/dist/esm/rss-console/components/Templates/types.js +2 -0
- package/dist/esm/rss-console/components/Templates/types.js.map +1 -0
- package/dist/esm/rss-console/context/RSSConsoleContextProvider.d.ts +7 -0
- package/dist/esm/rss-console/context/RSSConsoleContextProvider.js +21 -0
- package/dist/esm/rss-console/context/RSSConsoleContextProvider.js.map +1 -0
- package/dist/esm/rss-console/context/baseContext.d.ts +2 -0
- package/dist/esm/rss-console/context/baseContext.js +82 -0
- package/dist/esm/rss-console/context/baseContext.js.map +1 -0
- package/dist/esm/rss-console/context/index.d.ts +1 -0
- package/dist/esm/rss-console/context/index.js +2 -0
- package/dist/esm/rss-console/context/index.js.map +1 -0
- package/dist/esm/rss-console/context/types.d.ts +27 -0
- package/dist/esm/rss-console/context/types.js +7 -0
- package/dist/esm/rss-console/context/types.js.map +1 -0
- package/dist/esm/rss-console/hooks/useFeed.d.ts +4 -0
- package/dist/esm/rss-console/hooks/useFeed.js +47 -0
- package/dist/esm/rss-console/hooks/useFeed.js.map +1 -0
- package/dist/esm/rss-console/hooks/useFeedCreation.d.ts +4 -0
- package/dist/esm/rss-console/hooks/useFeedCreation.js +55 -0
- package/dist/esm/rss-console/hooks/useFeedCreation.js.map +1 -0
- package/dist/esm/rss-console/hooks/useFeedList.d.ts +4 -0
- package/dist/esm/rss-console/hooks/useFeedList.js +49 -0
- package/dist/esm/rss-console/hooks/useFeedList.js.map +1 -0
- package/dist/esm/rss-console/index.d.ts +1 -0
- package/dist/esm/rss-console/index.js +2 -0
- package/dist/esm/rss-console/index.js.map +1 -0
- package/dist/esm/rss-console/pages/CreateFeedPage.d.ts +4 -0
- package/dist/esm/rss-console/pages/CreateFeedPage.js +120 -0
- package/dist/esm/rss-console/pages/CreateFeedPage.js.map +1 -0
- package/dist/esm/rss-console/pages/FeedDetailsPage.d.ts +4 -0
- package/dist/esm/rss-console/pages/FeedDetailsPage.js +77 -0
- package/dist/esm/rss-console/pages/FeedDetailsPage.js.map +1 -0
- package/dist/esm/rss-console/pages/FeedsListPage.d.ts +4 -0
- package/dist/esm/rss-console/pages/FeedsListPage.js +65 -0
- package/dist/esm/rss-console/pages/FeedsListPage.js.map +1 -0
- package/dist/esm/rss-console/pages/index.d.ts +6 -0
- package/dist/esm/rss-console/pages/index.js +7 -0
- package/dist/esm/rss-console/pages/index.js.map +1 -0
- package/dist/esm/rss-console/pages/types.d.ts +11 -0
- package/dist/esm/rss-console/pages/types.js +2 -0
- package/dist/esm/rss-console/pages/types.js.map +1 -0
- package/package.json +106 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { FooterContext, FooterContextOverrides, HeaderProps, IntroductionProps, NavigationPrimaryProps, SEOProps, DescriptionOverrides, TitleOverrides } from '@newskit-render/shared-components';
|
|
2
|
+
import { SearchBarOverrides } from '../components/SearchBar/types';
|
|
3
|
+
import { MQ, BreadcrumbsProps } from 'newskit';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { Hit } from '../types';
|
|
6
|
+
export interface ContextProviderProps {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
context: ContextOptions;
|
|
9
|
+
contextName: PagesNameMap;
|
|
10
|
+
}
|
|
11
|
+
export declare enum PagesNameMap {
|
|
12
|
+
'landingPage' = "landingPage",
|
|
13
|
+
'resultsPage' = "resultsPage",
|
|
14
|
+
'articlePage' = "articlePage",
|
|
15
|
+
'errorPage' = "errorPage"
|
|
16
|
+
}
|
|
17
|
+
export interface ArticleItem {
|
|
18
|
+
title: string;
|
|
19
|
+
objectID: string;
|
|
20
|
+
}
|
|
21
|
+
export interface BaseContextOptions {
|
|
22
|
+
baseUrl: string;
|
|
23
|
+
seo: Partial<SEOProps>;
|
|
24
|
+
navigationPrimary: NavigationPrimaryProps;
|
|
25
|
+
inputPlaceholder: string;
|
|
26
|
+
header: HeaderProps;
|
|
27
|
+
footer: FooterContext;
|
|
28
|
+
footerOverrides?: FooterContextOverrides;
|
|
29
|
+
searchBar: SearchBarOverrides;
|
|
30
|
+
contentListView: ContentListViewOverrides;
|
|
31
|
+
articleNotFound: string;
|
|
32
|
+
searchResultEmpty: string;
|
|
33
|
+
marginBlockEnd: MQ<string>;
|
|
34
|
+
}
|
|
35
|
+
interface ContentListViewOverrides {
|
|
36
|
+
introduction?: {
|
|
37
|
+
marginBlockEnd: MQ<string>;
|
|
38
|
+
};
|
|
39
|
+
introductionProps?: IntroductionProps & {
|
|
40
|
+
extendTitleOverrides: TitleOverrides;
|
|
41
|
+
extendDescriptionOverrides: DescriptionOverrides;
|
|
42
|
+
};
|
|
43
|
+
marginBlockEnd?: MQ<string>;
|
|
44
|
+
}
|
|
45
|
+
export interface LandingPageContextOptions extends BaseContextOptions {
|
|
46
|
+
mostReadArticles: Array<ArticleItem>;
|
|
47
|
+
}
|
|
48
|
+
export interface ErrorPageContextOptions extends BaseContextOptions {
|
|
49
|
+
introductionProps: Partial<HeaderProps>;
|
|
50
|
+
}
|
|
51
|
+
export interface ResultsPageContextOptions extends BaseContextOptions {
|
|
52
|
+
hits: Hit[];
|
|
53
|
+
introductionProps: Pick<HeaderProps, 'title' | 'titleOverrides' | 'description' | 'marginBlockEnd'>;
|
|
54
|
+
stylePreset: MQ<string>;
|
|
55
|
+
showDividerByBreakpoint: boolean;
|
|
56
|
+
}
|
|
57
|
+
export interface SearchBreadcrumbContext {
|
|
58
|
+
baseUrl: string;
|
|
59
|
+
referer?: string;
|
|
60
|
+
searchBreadcrumbProps?: Omit<BreadcrumbsProps, 'children'>;
|
|
61
|
+
notFoundBreadcrumbProps?: Omit<BreadcrumbsProps, 'children'>;
|
|
62
|
+
searchBreadcrumbItemOne?: string;
|
|
63
|
+
searchBreadcrumbItemTwo?: string;
|
|
64
|
+
ariaLabel?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface ArticlePageContextOptions extends BaseContextOptions {
|
|
67
|
+
introductionProps: Pick<HeaderProps, 'titleOverrides'>;
|
|
68
|
+
title: string;
|
|
69
|
+
content: string;
|
|
70
|
+
referer?: string;
|
|
71
|
+
searchBreadcrumbContext?: Omit<SearchBreadcrumbContext, 'baseUrl' | 'referer'>;
|
|
72
|
+
}
|
|
73
|
+
export type ContextOptions = LandingPageContextOptions | ResultsPageContextOptions | ArticlePageContextOptions;
|
|
74
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PagesNameMap = void 0;
|
|
4
|
+
var PagesNameMap;
|
|
5
|
+
(function (PagesNameMap) {
|
|
6
|
+
PagesNameMap["landingPage"] = "landingPage";
|
|
7
|
+
PagesNameMap["resultsPage"] = "resultsPage";
|
|
8
|
+
PagesNameMap["articlePage"] = "articlePage";
|
|
9
|
+
PagesNameMap["errorPage"] = "errorPage";
|
|
10
|
+
})(PagesNameMap = exports.PagesNameMap || (exports.PagesNameMap = {}));
|
|
11
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/help-hub/context/types.ts"],"names":[],"mappings":";;;AAqBA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,2CAA6B,CAAA;IAC7B,2CAA6B,CAAA;IAC7B,2CAA6B,CAAA;IAC7B,uCAAyB,CAAA;AAC3B,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCachedReferer = exports.cacheReferer = void 0;
|
|
4
|
+
var cacheReferer = function (url, referer) {
|
|
5
|
+
var urlObj = new URL(referer);
|
|
6
|
+
if (!referer.includes('/results?q=') &&
|
|
7
|
+
!referer.endsWith('/help-hub') &&
|
|
8
|
+
urlObj.pathname !== '/')
|
|
9
|
+
return;
|
|
10
|
+
var cache = JSON.parse(localStorage.getItem('cache-referers') || '{}');
|
|
11
|
+
cache[url] = referer;
|
|
12
|
+
localStorage.setItem('cache-referers', JSON.stringify(cache));
|
|
13
|
+
};
|
|
14
|
+
exports.cacheReferer = cacheReferer;
|
|
15
|
+
var getCachedReferer = function (url) {
|
|
16
|
+
var cache = JSON.parse(localStorage.getItem('cache-referers') || '{}');
|
|
17
|
+
return cache[url];
|
|
18
|
+
};
|
|
19
|
+
exports.getCachedReferer = getCachedReferer;
|
|
20
|
+
//# sourceMappingURL=cache-referers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-referers.js","sourceRoot":"","sources":["../../../../src/help-hub/helpers/cache-referers.ts"],"names":[],"mappings":";;;AAAO,IAAM,YAAY,GAA2C,UAClE,GAAG,EACH,OAAO;IAEP,IAAM,MAAM,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAA;IAC/B,IACE,CAAC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC;QAChC,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;QAC9B,MAAM,CAAC,QAAQ,KAAK,GAAG;QAEvB,OAAM;IACR,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,IAAI,CAAC,CAAA;IACxE,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAA;IACpB,YAAY,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAA;AAC/D,CAAC,CAAA;AAdY,QAAA,YAAY,gBAcxB;AAEM,IAAM,gBAAgB,GAAwC,UAAC,GAAG;IACvE,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,IAAI,CAAC,CAAA;IACxE,OAAO,KAAK,CAAC,GAAG,CAAC,CAAA;AACnB,CAAC,CAAA;AAHY,QAAA,gBAAgB,oBAG5B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./transform-hits"), exports);
|
|
18
|
+
__exportStar(require("./cache-referers"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/help-hub/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC;AAChC,mDAAgC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transformHits = void 0;
|
|
4
|
+
var transformHits = function (hits, baseUrl) {
|
|
5
|
+
return hits.map(function (_a) {
|
|
6
|
+
var title = _a.title, objectID = _a.objectID;
|
|
7
|
+
var href = "".concat(baseUrl, "/article/").concat(objectID);
|
|
8
|
+
return {
|
|
9
|
+
label: title,
|
|
10
|
+
href: href,
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
exports.transformHits = transformHits;
|
|
15
|
+
//# sourceMappingURL=transform-hits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform-hits.js","sourceRoot":"","sources":["../../../../src/help-hub/helpers/transform-hits.ts"],"names":[],"mappings":";;;AAIO,IAAM,aAAa,GAGJ,UAAC,IAAI,EAAE,OAAO;IAClC,OAAO,IAAI,CAAC,GAAG,CAAC,UAAC,EAAmB;YAAjB,KAAK,WAAA,EAAE,QAAQ,cAAA;QAChC,IAAM,IAAI,GAAG,UAAG,OAAO,sBAAY,QAAQ,CAAE,CAAA;QAC7C,OAAO;YACL,KAAK,EAAE,KAAK;YACZ,IAAI,MAAA;SACW,CAAA;IACnB,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAXY,QAAA,aAAa,iBAWzB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './pages';
|
|
2
|
+
export * from './provider';
|
|
3
|
+
export * from './types';
|
|
4
|
+
export { PagesNameMap } from './context';
|
|
5
|
+
export type { LandingPageContextOptions as HelpHubLandingPageContextOptions, ArticlePageContextOptions as HelpHubArticlePageContextOptions, ResultsPageContextOptions as HelpHubResultsPageContextOptions, ErrorPageContextOptions as HelpHubErrorPageContextOptions, } from './context';
|
|
6
|
+
export type { AlgoliaCredentials } from './types';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.PagesNameMap = void 0;
|
|
18
|
+
__exportStar(require("./pages"), exports);
|
|
19
|
+
__exportStar(require("./provider"), exports);
|
|
20
|
+
__exportStar(require("./types"), exports);
|
|
21
|
+
var context_1 = require("./context");
|
|
22
|
+
Object.defineProperty(exports, "PagesNameMap", { enumerable: true, get: function () { return context_1.PagesNameMap; } });
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/help-hub/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,6CAA0B;AAC1B,0CAAuB;AACvB,qCAAwC;AAA/B,uGAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.articlePageContextMock = void 0;
|
|
15
|
+
var context_1 = require("../context");
|
|
16
|
+
var articlePageContext = {
|
|
17
|
+
introductionProps: {
|
|
18
|
+
titleOverrides: {
|
|
19
|
+
typographyPreset: { xs: 'utilityHeading040', sm: 'utilityHeading050' },
|
|
20
|
+
stylePreset: 'inkContrast',
|
|
21
|
+
marginBlockEnd: 'space040',
|
|
22
|
+
as: 'h1',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
exports.articlePageContextMock = __assign(__assign(__assign({}, context_1.baseContext), articlePageContext), { title: 'Header title in Help Hub Article page', content: 'Header description in Help Hub Article page' });
|
|
27
|
+
//# sourceMappingURL=articlePageContextOptionsMock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"articlePageContextOptionsMock.js","sourceRoot":"","sources":["../../../../src/help-hub/mocks/articlePageContextOptionsMock.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sCAAwC;AAExC,IAAM,kBAAkB,GAAuC;IAC7D,iBAAiB,EAAE;QACjB,cAAc,EAAE;YACd,gBAAgB,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE,mBAAmB,EAAE;YACtE,WAAW,EAAE,aAAa;YAC1B,cAAc,EAAE,UAAU;YAC1B,EAAE,EAAE,IAAI;SACT;KACF;CACF,CAAA;AACY,QAAA,sBAAsB,kCAC9B,qBAAW,GACX,kBAAkB,KACrB,KAAK,EAAE,uCAAuC,EAC9C,OAAO,EAAE,6CAA6C,IACvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mocks';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./mocks"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/help-hub/mocks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.landingPageContextMock = void 0;
|
|
15
|
+
var context_1 = require("../context");
|
|
16
|
+
var sharedMocks_1 = require("./sharedMocks");
|
|
17
|
+
exports.landingPageContextMock = __assign(__assign({}, context_1.baseContext), { header: {
|
|
18
|
+
title: 'How can we help?',
|
|
19
|
+
}, mostReadArticles: sharedMocks_1.mostReadArticlesMock });
|
|
20
|
+
//# sourceMappingURL=landingPageContextOptionsMock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"landingPageContextOptionsMock.js","sourceRoot":"","sources":["../../../../src/help-hub/mocks/landingPageContextOptionsMock.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sCAAwC;AAExC,6CAAoD;AAEvC,QAAA,sBAAsB,yBAC9B,qBAAW,KACd,MAAM,EAAE;QACN,KAAK,EAAE,kBAAkB;KAC1B,EAED,gBAAgB,EAAE,kCAAoB,IACvC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.mockMap = void 0;
|
|
5
|
+
var types_1 = require("../context/types");
|
|
6
|
+
var articlePageContextOptionsMock_1 = require("./articlePageContextOptionsMock");
|
|
7
|
+
var landingPageContextOptionsMock_1 = require("./landingPageContextOptionsMock");
|
|
8
|
+
var resultsPageContextOptionsMock_1 = require("./resultsPageContextOptionsMock");
|
|
9
|
+
exports.mockMap = (_a = {},
|
|
10
|
+
_a[types_1.PagesNameMap.landingPage] = landingPageContextOptionsMock_1.landingPageContextMock,
|
|
11
|
+
_a[types_1.PagesNameMap.resultsPage] = resultsPageContextOptionsMock_1.resultsPageContextMock,
|
|
12
|
+
_a[types_1.PagesNameMap.articlePage] = articlePageContextOptionsMock_1.articlePageContextMock,
|
|
13
|
+
_a);
|
|
14
|
+
//# sourceMappingURL=mocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mocks.js","sourceRoot":"","sources":["../../../../src/help-hub/mocks/mocks.ts"],"names":[],"mappings":";;;;AAAA,0CAA+C;AAC/C,iFAAwE;AACxE,iFAAwE;AACxE,iFAAwE;AAE3D,QAAA,OAAO;IAClB,GAAC,oBAAY,CAAC,WAAW,IAAG,sDAAsB;IAClD,GAAC,oBAAY,CAAC,WAAW,IAAG,sDAAsB;IAClD,GAAC,oBAAY,CAAC,WAAW,IAAG,sDAAsB;QACnD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.resultsPageContextMock = void 0;
|
|
15
|
+
var context_1 = require("../context");
|
|
16
|
+
exports.resultsPageContextMock = __assign(__assign({}, context_1.baseContext), { introductionProps: {
|
|
17
|
+
title: 'Header title in Help Hub Results page',
|
|
18
|
+
description: 'Header description in Help Hub Results page',
|
|
19
|
+
}, hits: [], showDividerByBreakpoint: true, stylePreset: '' });
|
|
20
|
+
//# sourceMappingURL=resultsPageContextOptionsMock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resultsPageContextOptionsMock.js","sourceRoot":"","sources":["../../../../src/help-hub/mocks/resultsPageContextOptionsMock.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sCAAwC;AAG3B,QAAA,sBAAsB,yBAC9B,qBAAW,KACd,iBAAiB,EAAE;QACjB,KAAK,EAAE,uCAAuC;QAC9C,WAAW,EAAE,6CAA6C;KAC3D,EACD,IAAI,EAAE,EAAE,EACR,uBAAuB,EAAE,IAAI,EAC7B,WAAW,EAAE,EAAE,IAChB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const mostReadArticlesMock: {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
content: string;
|
|
5
|
+
publishedTimeStamp: string;
|
|
6
|
+
objectID: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const algoliaDataMock: {
|
|
9
|
+
title: string;
|
|
10
|
+
content: string;
|
|
11
|
+
objectID: string;
|
|
12
|
+
}[];
|
|
13
|
+
export declare const algoliaDataLargeMock: {
|
|
14
|
+
title: string;
|
|
15
|
+
content: string;
|
|
16
|
+
objectID: string;
|
|
17
|
+
}[];
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.algoliaDataLargeMock = exports.algoliaDataMock = exports.mostReadArticlesMock = void 0;
|
|
4
|
+
exports.mostReadArticlesMock = [
|
|
5
|
+
{
|
|
6
|
+
id: 'ka06M00000090SNQAY',
|
|
7
|
+
title: 'My voucher booklet has not arrived, what do I do?',
|
|
8
|
+
content: '<b>When will the final issue be published?</b><br>The final November issue will be published on 1st October 2020 and is available in all good newsagents and travel stores.<br><br><b>Will this affect my subscription to The Times & The Sunday Times?</b>',
|
|
9
|
+
publishedTimeStamp: '2020-09-16T10:28:19.000+0000',
|
|
10
|
+
objectID: 'the-sunday-times-travel-magazine-closure-faqs',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: 'ka06M00000090SNQAY',
|
|
14
|
+
title: "Why hasn't my newspaper been delivered?",
|
|
15
|
+
content: '<b>When will the final issue be published?</b><br>The final November issue will be published on 1st October 2020 and is available in all good newsagents and travel stores.<br><br><b>Will this affect my subscription to The Times & The Sunday Times?</b>',
|
|
16
|
+
publishedTimeStamp: '2020-09-16T10:28:19.000+0000',
|
|
17
|
+
objectID: 'the-sunday-times-travel-magazine-closure-faqs',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
exports.algoliaDataMock = [
|
|
21
|
+
{
|
|
22
|
+
title: "What's in the smartphone app and how do I access it?",
|
|
23
|
+
content: '<ul><li>Enjoy The Times and The Sunday Times journalism wherever you are with one app, 7 days a week.</li><li>Get the latest global, business, politics, sport and finance headline news articles on the go as well as trusted analysis and opinion from our award-winning columnists and global correspondents.</li><li>On top of that, enjoy stunning picture galleries, interactive crossword puzzles and exclusive video dispatches from Great Britain and across the world. Now with a seamless link to The Times and Sunday Times Sport app.</li><li>Keep updated on all your Times+ membership offers and experience a selection of the best Times+ Talks right from within the app. </li><li>You can save your favourite articles for reading later and share your favourite stories from our Times & Sunday Times columnists from across all sections including headline news reports, UK and global business, finance, world, sport reports, politics and opinion.</li></ul>\n<br>The app is available from the <a href="https://play.google.com/store/apps/details?id=uk.co.thetimes" target="_blank">Google Play Store</a> and <a href="https://itunes.apple.com/gb/app/the-times-the-sunday-times/id436792321?mt=8" target="_blank">iTunes</a><br>Please ensure that you are using the latest Android or IOS software when downloading the app.',
|
|
24
|
+
objectID: 'what-s-in-the-smartphone-app-and-how-do-i-access-it',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
title: 'Sign-in with Google',
|
|
28
|
+
content: '<p>To use Google Sign In with The Times and Sunday Times, you must have a Google account. If you don’t have a Google account but would like to use this feature, you can easily create one at google.com<br><br><b>I see an error telling me I don’t have an account with The Times when login in to My Times account with Google Sign in?</b></p>\n\n<ul><li>\n\t<p>On first use of Google Sign In, your Times username must match the email address on your Google account, otherwise we cannot match them. If you would like to use Google Sign In but your email address does not match, you can log in using your Times email address and password and update your email address in My Account.</p>\n\t</li></ul>\n\n<p><b>Can I change my Times email address after I use Google Sign In?</b></p>\n\n<ul><li>\n\t<p>First time you sign into your Times account your login email address needs to be the same as your Google account email address. Once logged in you can update this via My Account.</p>\n\t</li></ul>\n\n<p><b>Can I still login with my own Times username and password after I use Google Sign In?</b></p>\n\n<ul><li>\n\t<p>As an existing Times user, you continue to have the ability to login using your Times username and password. You will as such retain the ability to change your password at any time.</p>\n\t</li></ul>',
|
|
29
|
+
objectID: 'sign-with-google',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: 'I am trying to share an article via Google+ but an error message keeps appearing',
|
|
33
|
+
content: 'This may be happening because there's an authentication issue with your Google+ account. To fix this, delete The Times and The Sunday Times app and then reinstall it. ',
|
|
34
|
+
objectID: 'i-am-trying-to-share-an-article-via-google-but-an-error-message-keeps-appearing',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
title: 'How will I find out if I have won a competition?',
|
|
38
|
+
content: 'Our competitions team contact the winners of our competitions via the phone number on your Times account.<br><br>If you don’t answer they will endeavor to contact you via email, giving you plenty of time to respond before finding a new winner.',
|
|
39
|
+
objectID: 'how-will-i-find-out-if-i-have-won-a-competition',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: 'How many articles can I read with my registered access?',
|
|
43
|
+
content: 'You can read up to two articles a week, Monday to Sunday. Every Monday your allocation will be reset to two articles. An article is a whole photo gallery, story or a piece of video content.',
|
|
44
|
+
objectID: 'how-many-articles-can-i-read-with-my-registered-access',
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
exports.algoliaDataLargeMock = [
|
|
48
|
+
{
|
|
49
|
+
title: "What's in the smartphone app and how do I access it?",
|
|
50
|
+
content: '<ul><li>Enjoy The Times and The Sunday Times journalism wherever you are with one app, 7 days a week.</li><li>Get the latest global, business, politics, sport and finance headline news articles on the go as well as trusted analysis and opinion from our award-winning columnists and global correspondents.</li><li>On top of that, enjoy stunning picture galleries, interactive crossword puzzles and exclusive video dispatches from Great Britain and across the world. Now with a seamless link to The Times and Sunday Times Sport app.</li><li>Keep updated on all your Times+ membership offers and experience a selection of the best Times+ Talks right from within the app. </li><li>You can save your favourite articles for reading later and share your favourite stories from our Times & Sunday Times columnists from across all sections including headline news reports, UK and global business, finance, world, sport reports, politics and opinion.</li></ul>\n<br>The app is available from the <a href="https://play.google.com/store/apps/details?id=uk.co.thetimes" target="_blank">Google Play Store</a> and <a href="https://itunes.apple.com/gb/app/the-times-the-sunday-times/id436792321?mt=8" target="_blank">iTunes</a><br>Please ensure that you are using the latest Android or IOS software when downloading the app.',
|
|
51
|
+
objectID: 'what-s-in-the-smartphone-app-and-how-do-i-access-it',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
title: 'Sign-in with Google',
|
|
55
|
+
content: '<p>To use Google Sign In with The Times and Sunday Times, you must have a Google account. If you don’t have a Google account but would like to use this feature, you can easily create one at google.com<br><br><b>I see an error telling me I don’t have an account with The Times when login in to My Times account with Google Sign in?</b></p>\n\n<ul><li>\n\t<p>On first use of Google Sign In, your Times username must match the email address on your Google account, otherwise we cannot match them. If you would like to use Google Sign In but your email address does not match, you can log in using your Times email address and password and update your email address in My Account.</p>\n\t</li></ul>\n\n<p><b>Can I change my Times email address after I use Google Sign In?</b></p>\n\n<ul><li>\n\t<p>First time you sign into your Times account your login email address needs to be the same as your Google account email address. Once logged in you can update this via My Account.</p>\n\t</li></ul>\n\n<p><b>Can I still login with my own Times username and password after I use Google Sign In?</b></p>\n\n<ul><li>\n\t<p>As an existing Times user, you continue to have the ability to login using your Times username and password. You will as such retain the ability to change your password at any time.</p>\n\t</li></ul>',
|
|
56
|
+
objectID: 'sign-with-google',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
title: 'I am trying to share an article via Google+ but an error message keeps appearing',
|
|
60
|
+
content: 'This may be happening because there's an authentication issue with your Google+ account. To fix this, delete The Times and The Sunday Times app and then reinstall it. ',
|
|
61
|
+
objectID: 'i-am-trying-to-share-an-article-via-google-but-an-error-message-keeps-appearing',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
title: 'How will I find out if I have won a competition?',
|
|
65
|
+
content: 'Our competitions team contact the winners of our competitions via the phone number on your Times account.<br><br>If you don’t answer they will endeavor to contact you via email, giving you plenty of time to respond before finding a new winner.',
|
|
66
|
+
objectID: 'how-will-i-find-out-if-i-have-won-a-competition',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
title: 'How many articles can I read with my registered access?',
|
|
70
|
+
content: 'You can read up to two articles a week, Monday to Sunday. Every Monday your allocation will be reset to two articles. An article is a whole photo gallery, story or a piece of video content.',
|
|
71
|
+
objectID: 'how-many-articles-can-i-read-with-my-registered-access',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
title: "What's in the smartphone app and how do I access it?",
|
|
75
|
+
content: '<ul><li>Enjoy The Times and The Sunday Times journalism wherever you are with one app, 7 days a week.</li><li>Get the latest global, business, politics, sport and finance headline news articles on the go as well as trusted analysis and opinion from our award-winning columnists and global correspondents.</li><li>On top of that, enjoy stunning picture galleries, interactive crossword puzzles and exclusive video dispatches from Great Britain and across the world. Now with a seamless link to The Times and Sunday Times Sport app.</li><li>Keep updated on all your Times+ membership offers and experience a selection of the best Times+ Talks right from within the app. </li><li>You can save your favourite articles for reading later and share your favourite stories from our Times & Sunday Times columnists from across all sections including headline news reports, UK and global business, finance, world, sport reports, politics and opinion.</li></ul>\n<br>The app is available from the <a href="https://play.google.com/store/apps/details?id=uk.co.thetimes" target="_blank">Google Play Store</a> and <a href="https://itunes.apple.com/gb/app/the-times-the-sunday-times/id436792321?mt=8" target="_blank">iTunes</a><br>Please ensure that you are using the latest Android or IOS software when downloading the app.',
|
|
76
|
+
objectID: 'what-s-in-the-smartphone-app-and-how-do-i-access-it-2',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
title: 'Sign-in with Google',
|
|
80
|
+
content: '<p>To use Google Sign In with The Times and Sunday Times, you must have a Google account. If you don’t have a Google account but would like to use this feature, you can easily create one at google.com<br><br><b>I see an error telling me I don’t have an account with The Times when login in to My Times account with Google Sign in?</b></p>\n\n<ul><li>\n\t<p>On first use of Google Sign In, your Times username must match the email address on your Google account, otherwise we cannot match them. If you would like to use Google Sign In but your email address does not match, you can log in using your Times email address and password and update your email address in My Account.</p>\n\t</li></ul>\n\n<p><b>Can I change my Times email address after I use Google Sign In?</b></p>\n\n<ul><li>\n\t<p>First time you sign into your Times account your login email address needs to be the same as your Google account email address. Once logged in you can update this via My Account.</p>\n\t</li></ul>\n\n<p><b>Can I still login with my own Times username and password after I use Google Sign In?</b></p>\n\n<ul><li>\n\t<p>As an existing Times user, you continue to have the ability to login using your Times username and password. You will as such retain the ability to change your password at any time.</p>\n\t</li></ul>',
|
|
81
|
+
objectID: 'sign-with-google-2',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
title: 'I am trying to share an article via Google+ but an error message keeps appearing',
|
|
85
|
+
content: 'This may be happening because there's an authentication issue with your Google+ account. To fix this, delete The Times and The Sunday Times app and then reinstall it. ',
|
|
86
|
+
objectID: 'i-am-trying-to-share-an-article-via-google-but-an-error-message-keeps-appearing-2',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
title: 'How will I find out if I have won a competition?',
|
|
90
|
+
content: 'Our competitions team contact the winners of our competitions via the phone number on your Times account.<br><br>If you don’t answer they will endeavor to contact you via email, giving you plenty of time to respond before finding a new winner.',
|
|
91
|
+
objectID: 'how-will-i-find-out-if-i-have-won-a-competition-2',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
title: 'How many articles can I read with my registered access?',
|
|
95
|
+
content: 'You can read up to two articles a week, Monday to Sunday. Every Monday your allocation will be reset to two articles. An article is a whole photo gallery, story or a piece of video content.',
|
|
96
|
+
objectID: 'how-many-articles-can-i-read-with-my-registered-access-2',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
title: "What's in the smartphone app and how do I access it?",
|
|
100
|
+
content: '<ul><li>Enjoy The Times and The Sunday Times journalism wherever you are with one app, 7 days a week.</li><li>Get the latest global, business, politics, sport and finance headline news articles on the go as well as trusted analysis and opinion from our award-winning columnists and global correspondents.</li><li>On top of that, enjoy stunning picture galleries, interactive crossword puzzles and exclusive video dispatches from Great Britain and across the world. Now with a seamless link to The Times and Sunday Times Sport app.</li><li>Keep updated on all your Times+ membership offers and experience a selection of the best Times+ Talks right from within the app. </li><li>You can save your favourite articles for reading later and share your favourite stories from our Times & Sunday Times columnists from across all sections including headline news reports, UK and global business, finance, world, sport reports, politics and opinion.</li></ul>\n<br>The app is available from the <a href="https://play.google.com/store/apps/details?id=uk.co.thetimes" target="_blank">Google Play Store</a> and <a href="https://itunes.apple.com/gb/app/the-times-the-sunday-times/id436792321?mt=8" target="_blank">iTunes</a><br>Please ensure that you are using the latest Android or IOS software when downloading the app.',
|
|
101
|
+
objectID: 'what-s-in-the-smartphone-app-and-how-do-i-access-it-3',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
title: 'Sign-in with Google',
|
|
105
|
+
content: '<p>To use Google Sign In with The Times and Sunday Times, you must have a Google account. If you don’t have a Google account but would like to use this feature, you can easily create one at google.com<br><br><b>I see an error telling me I don’t have an account with The Times when login in to My Times account with Google Sign in?</b></p>\n\n<ul><li>\n\t<p>On first use of Google Sign In, your Times username must match the email address on your Google account, otherwise we cannot match them. If you would like to use Google Sign In but your email address does not match, you can log in using your Times email address and password and update your email address in My Account.</p>\n\t</li></ul>\n\n<p><b>Can I change my Times email address after I use Google Sign In?</b></p>\n\n<ul><li>\n\t<p>First time you sign into your Times account your login email address needs to be the same as your Google account email address. Once logged in you can update this via My Account.</p>\n\t</li></ul>\n\n<p><b>Can I still login with my own Times username and password after I use Google Sign In?</b></p>\n\n<ul><li>\n\t<p>As an existing Times user, you continue to have the ability to login using your Times username and password. You will as such retain the ability to change your password at any time.</p>\n\t</li></ul>',
|
|
106
|
+
objectID: 'sign-with-google-3',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
title: 'I am trying to share an article via Google+ but an error message keeps appearing',
|
|
110
|
+
content: 'This may be happening because there's an authentication issue with your Google+ account. To fix this, delete The Times and The Sunday Times app and then reinstall it. ',
|
|
111
|
+
objectID: 'i-am-trying-to-share-an-article-via-google-but-an-error-message-keeps-appearing-3',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
title: 'How will I find out if I have won a competition?',
|
|
115
|
+
content: 'Our competitions team contact the winners of our competitions via the phone number on your Times account.<br><br>If you don’t answer they will endeavor to contact you via email, giving you plenty of time to respond before finding a new winner.',
|
|
116
|
+
objectID: 'how-will-i-find-out-if-i-have-won-a-competition-3',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
title: 'How many articles can I read with my registered access?',
|
|
120
|
+
content: 'You can read up to two articles a week, Monday to Sunday. Every Monday your allocation will be reset to two articles. An article is a whole photo gallery, story or a piece of video content.',
|
|
121
|
+
objectID: 'how-many-articles-can-i-read-with-my-registered-access-3',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
title: "What's in the smartphone app and how do I access it?",
|
|
125
|
+
content: '<ul><li>Enjoy The Times and The Sunday Times journalism wherever you are with one app, 7 days a week.</li><li>Get the latest global, business, politics, sport and finance headline news articles on the go as well as trusted analysis and opinion from our award-winning columnists and global correspondents.</li><li>On top of that, enjoy stunning picture galleries, interactive crossword puzzles and exclusive video dispatches from Great Britain and across the world. Now with a seamless link to The Times and Sunday Times Sport app.</li><li>Keep updated on all your Times+ membership offers and experience a selection of the best Times+ Talks right from within the app. </li><li>You can save your favourite articles for reading later and share your favourite stories from our Times & Sunday Times columnists from across all sections including headline news reports, UK and global business, finance, world, sport reports, politics and opinion.</li></ul>\n<br>The app is available from the <a href="https://play.google.com/store/apps/details?id=uk.co.thetimes" target="_blank">Google Play Store</a> and <a href="https://itunes.apple.com/gb/app/the-times-the-sunday-times/id436792321?mt=8" target="_blank">iTunes</a><br>Please ensure that you are using the latest Android or IOS software when downloading the app.',
|
|
126
|
+
objectID: 'what-s-in-the-smartphone-app-and-how-do-i-access-it-4',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
title: 'Sign-in with Google',
|
|
130
|
+
content: '<p>To use Google Sign In with The Times and Sunday Times, you must have a Google account. If you don’t have a Google account but would like to use this feature, you can easily create one at google.com<br><br><b>I see an error telling me I don’t have an account with The Times when login in to My Times account with Google Sign in?</b></p>\n\n<ul><li>\n\t<p>On first use of Google Sign In, your Times username must match the email address on your Google account, otherwise we cannot match them. If you would like to use Google Sign In but your email address does not match, you can log in using your Times email address and password and update your email address in My Account.</p>\n\t</li></ul>\n\n<p><b>Can I change my Times email address after I use Google Sign In?</b></p>\n\n<ul><li>\n\t<p>First time you sign into your Times account your login email address needs to be the same as your Google account email address. Once logged in you can update this via My Account.</p>\n\t</li></ul>\n\n<p><b>Can I still login with my own Times username and password after I use Google Sign In?</b></p>\n\n<ul><li>\n\t<p>As an existing Times user, you continue to have the ability to login using your Times username and password. You will as such retain the ability to change your password at any time.</p>\n\t</li></ul>',
|
|
131
|
+
objectID: 'sign-with-google-4',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
title: 'I am trying to share an article via Google+ but an error message keeps appearing',
|
|
135
|
+
content: 'This may be happening because there's an authentication issue with your Google+ account. To fix this, delete The Times and The Sunday Times app and then reinstall it. ',
|
|
136
|
+
objectID: 'i-am-trying-to-share-an-article-via-google-but-an-error-message-keeps-appearing-4',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
title: 'How will I find out if I have won a competition?',
|
|
140
|
+
content: 'Our competitions team contact the winners of our competitions via the phone number on your Times account.<br><br>If you don’t answer they will endeavor to contact you via email, giving you plenty of time to respond before finding a new winner.',
|
|
141
|
+
objectID: 'how-will-i-find-out-if-i-have-won-a-competition-4',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
title: 'How many articles can I read with my registered access?',
|
|
145
|
+
content: 'You can read up to two articles a week, Monday to Sunday. Every Monday your allocation will be reset to two articles. An article is a whole photo gallery, story or a piece of video content.',
|
|
146
|
+
objectID: 'how-many-articles-can-i-read-with-my-registered-access-4',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
title: 'How many articles can I read with my registered access?',
|
|
150
|
+
content: 'You can read up to two articles a week, Monday to Sunday. Every Monday your allocation will be reset to two articles. An article is a whole photo gallery, story or a piece of video content.',
|
|
151
|
+
objectID: 'how-many-articles-can-i-read-with-my-registered-access-5',
|
|
152
|
+
},
|
|
153
|
+
];
|
|
154
|
+
//# sourceMappingURL=sharedMocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sharedMocks.js","sourceRoot":"","sources":["../../../../src/help-hub/mocks/sharedMocks.tsx"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAClC;QACE,EAAE,EAAE,oBAAoB;QACxB,KAAK,EAAE,mDAAmD;QAC1D,OAAO,EACL,6PAA6P;QAC/P,kBAAkB,EAAE,8BAA8B;QAClD,QAAQ,EAAE,+CAA+C;KAC1D;IACD;QACE,EAAE,EAAE,oBAAoB;QACxB,KAAK,EAAE,yCAAyC;QAChD,OAAO,EACL,6PAA6P;QAC/P,kBAAkB,EAAE,8BAA8B;QAClD,QAAQ,EAAE,+CAA+C;KAC1D;CACF,CAAA;AAEY,QAAA,eAAe,GAAG;IAC7B;QACE,KAAK,EAAE,sDAAsD;QAC7D,OAAO,EACL,kyCAAkyC;QACpyC,QAAQ,EAAE,qDAAqD;KAChE;IACD;QACE,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EACL,kyCAAkyC;QACpyC,QAAQ,EAAE,kBAAkB;KAC7B;IACD;QACE,KAAK,EACH,kFAAkF;QACpF,OAAO,EACL,6KAA6K;QAC/K,QAAQ,EACN,iFAAiF;KACpF;IACD;QACE,KAAK,EAAE,kDAAkD;QACzD,OAAO,EACL,qPAAqP;QACvP,QAAQ,EAAE,iDAAiD;KAC5D;IACD;QACE,KAAK,EAAE,yDAAyD;QAChE,OAAO,EACL,+LAA+L;QACjM,QAAQ,EAAE,wDAAwD;KACnE;CACF,CAAA;AAEY,QAAA,oBAAoB,GAAG;IAClC;QACE,KAAK,EAAE,sDAAsD;QAC7D,OAAO,EACL,kyCAAkyC;QACpyC,QAAQ,EAAE,qDAAqD;KAChE;IACD;QACE,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EACL,kyCAAkyC;QACpyC,QAAQ,EAAE,kBAAkB;KAC7B;IACD;QACE,KAAK,EACH,kFAAkF;QACpF,OAAO,EACL,6KAA6K;QAC/K,QAAQ,EACN,iFAAiF;KACpF;IACD;QACE,KAAK,EAAE,kDAAkD;QACzD,OAAO,EACL,qPAAqP;QACvP,QAAQ,EAAE,iDAAiD;KAC5D;IACD;QACE,KAAK,EAAE,yDAAyD;QAChE,OAAO,EACL,+LAA+L;QACjM,QAAQ,EAAE,wDAAwD;KACnE;IACD;QACE,KAAK,EAAE,sDAAsD;QAC7D,OAAO,EACL,kyCAAkyC;QACpyC,QAAQ,EAAE,uDAAuD;KAClE;IACD;QACE,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EACL,kyCAAkyC;QACpyC,QAAQ,EAAE,oBAAoB;KAC/B;IACD;QACE,KAAK,EACH,kFAAkF;QACpF,OAAO,EACL,6KAA6K;QAC/K,QAAQ,EACN,mFAAmF;KACtF;IACD;QACE,KAAK,EAAE,kDAAkD;QACzD,OAAO,EACL,qPAAqP;QACvP,QAAQ,EAAE,mDAAmD;KAC9D;IACD;QACE,KAAK,EAAE,yDAAyD;QAChE,OAAO,EACL,+LAA+L;QACjM,QAAQ,EAAE,0DAA0D;KACrE;IACD;QACE,KAAK,EAAE,sDAAsD;QAC7D,OAAO,EACL,kyCAAkyC;QACpyC,QAAQ,EAAE,uDAAuD;KAClE;IACD;QACE,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EACL,kyCAAkyC;QACpyC,QAAQ,EAAE,oBAAoB;KAC/B;IACD;QACE,KAAK,EACH,kFAAkF;QACpF,OAAO,EACL,6KAA6K;QAC/K,QAAQ,EACN,mFAAmF;KACtF;IACD;QACE,KAAK,EAAE,kDAAkD;QACzD,OAAO,EACL,qPAAqP;QACvP,QAAQ,EAAE,mDAAmD;KAC9D;IACD;QACE,KAAK,EAAE,yDAAyD;QAChE,OAAO,EACL,+LAA+L;QACjM,QAAQ,EAAE,0DAA0D;KACrE;IACD;QACE,KAAK,EAAE,sDAAsD;QAC7D,OAAO,EACL,kyCAAkyC;QACpyC,QAAQ,EAAE,uDAAuD;KAClE;IACD;QACE,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EACL,kyCAAkyC;QACpyC,QAAQ,EAAE,oBAAoB;KAC/B;IACD;QACE,KAAK,EACH,kFAAkF;QACpF,OAAO,EACL,6KAA6K;QAC/K,QAAQ,EACN,mFAAmF;KACtF;IACD;QACE,KAAK,EAAE,kDAAkD;QACzD,OAAO,EACL,qPAAqP;QACvP,QAAQ,EAAE,mDAAmD;KAC9D;IACD;QACE,KAAK,EAAE,yDAAyD;QAChE,OAAO,EACL,+LAA+L;QACjM,QAAQ,EAAE,0DAA0D;KACrE;IACD;QACE,KAAK,EAAE,yDAAyD;QAChE,OAAO,EACL,+LAA+L;QACjM,QAAQ,EAAE,0DAA0D;KACrE;CACF,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ArticlePageProps } from './types';
|
|
3
|
+
import { ArticlePageContextOptions } from '../context/types';
|
|
4
|
+
export declare const articlePageContext: Partial<ArticlePageContextOptions>;
|
|
5
|
+
export declare const PageContent: React.FC;
|
|
6
|
+
export declare const ArticlePage: React.FC<ArticlePageProps>;
|
|
7
|
+
export default ArticlePage;
|