@city-of-helsinki/react-helsinki-headless-cms 3.0.0-rc.1 → 3.0.0-rc.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/dist/LICENSE +21 -0
- package/dist/README.md +442 -0
- package/dist/__generated__-mcycL1jB.d.ts +7192 -0
- package/dist/apollo.d.ts +168 -0
- package/dist/apollo.js +194 -0
- package/dist/apollo.js.map +1 -0
- package/dist/archiveSearchPageContent.module-DmpLBZP5.js +4078 -0
- package/dist/archiveSearchPageContent.module-DmpLBZP5.js.map +1 -0
- package/dist/cjs/apollo.js +227 -0
- package/dist/cjs/apollo.js.map +1 -0
- package/dist/cjs/archiveSearchPageContent.module-Hcb4WVMf.js +4143 -0
- package/dist/cjs/archiveSearchPageContent.module-Hcb4WVMf.js.map +1 -0
- package/dist/cjs/defaultConfig-dV2AVA5S.js +19908 -0
- package/dist/cjs/defaultConfig-dV2AVA5S.js.map +1 -0
- package/dist/cjs/index-Eg-NhhyT.js +799 -0
- package/dist/cjs/index-Eg-NhhyT.js.map +1 -0
- package/dist/cjs/index.js +439 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/jest-setup.d.ts +1 -0
- package/dist/cjs/nextjs.js +74 -0
- package/dist/cjs/nextjs.js.map +1 -0
- package/dist/cjs/src/apollo/apollo-custom-template.stories.d.ts +12 -0
- package/dist/cjs/src/apollo/apollo.stories.d.ts +24 -0
- package/dist/cjs/src/apollo/index.d.ts +17 -0
- package/dist/cjs/src/apollo/navigation/Navigation.d.ts +13 -0
- package/dist/cjs/src/apollo/navigation/__tests__/Navigation.test.d.ts +1 -0
- package/dist/cjs/src/apollo/notification/Notification.d.ts +4 -0
- package/dist/cjs/src/apollo/notification/__tests__/Notification.test.d.ts +1 -0
- package/dist/cjs/src/apollo/page/ApolloPageContextProvider.d.ts +5 -0
- package/dist/cjs/src/apollo/page/Page.d.ts +14 -0
- package/dist/cjs/src/apollo/page/apolloPageContext.d.ts +13 -0
- package/dist/cjs/src/apollo/page/useApolloPageContext.d.ts +4 -0
- package/dist/cjs/src/apollo/pageContent/PageContent.d.ts +9 -0
- package/dist/cjs/src/apollo/pageWithTemplateContent/PageWithTemplateContent.d.ts +14 -0
- package/dist/cjs/src/common/components/container/Container.d.ts +13 -0
- package/dist/cjs/src/common/components/grid/Grid.d.ts +16 -0
- package/dist/cjs/src/common/components/grid/Grid.stories.d.ts +8 -0
- package/dist/cjs/src/common/components/htmlToReact/HtmlToReact.d.ts +38 -0
- package/dist/cjs/src/common/components/htmlToReact/HtmlToReact.stories.d.ts +13 -0
- package/dist/cjs/src/common/components/htmlToReact/__tests__/HtmlToReact.tests.d.ts +1 -0
- package/dist/cjs/src/common/components/htmlToReact/replaceComponents/DefaultH2.d.ts +4 -0
- package/dist/cjs/src/common/components/htmlToReact/replaceComponents/DefaultP.d.ts +4 -0
- package/dist/cjs/src/common/components/htmlToReact/replaceComponents/IframeForEmbeddedMedia.d.ts +6 -0
- package/dist/cjs/src/common/components/htmlToReact/replaceComponents/index.d.ts +3 -0
- package/dist/cjs/src/common/components/icons/index.d.ts +5 -0
- package/dist/cjs/src/common/components/list/List.d.ts +13 -0
- package/dist/cjs/src/common/components/list/List.stories.d.ts +13 -0
- package/dist/cjs/src/common/components/tag/Tag.d.ts +26 -0
- package/dist/cjs/src/common/components/tag/Tag.stories.d.ts +80 -0
- package/dist/cjs/src/common/components/tag/__tests__/Tag.test.d.ts +1 -0
- package/dist/cjs/src/common/components/tag/tagThemes.d.ts +3 -0
- package/dist/cjs/src/common/components/text/Text.d.ts +27 -0
- package/dist/cjs/src/common/components/text/Text.stories.d.ts +14 -0
- package/dist/cjs/src/common/constants.d.ts +2 -0
- package/dist/cjs/src/common/eventsService/__generated__.d.ts +1420 -0
- package/dist/cjs/src/common/eventsService/events.d.ts +12 -0
- package/dist/cjs/src/common/eventsService/types.d.ts +2 -0
- package/dist/cjs/src/common/eventsService/utils.d.ts +7 -0
- package/dist/cjs/src/common/headlessService/__generated__.d.ts +20878 -0
- package/dist/cjs/src/common/headlessService/article.d.ts +7 -0
- package/dist/cjs/src/common/headlessService/articles.d.ts +17 -0
- package/dist/cjs/src/common/headlessService/categories.d.ts +13 -0
- package/dist/cjs/src/common/headlessService/category.d.ts +9 -0
- package/dist/cjs/src/common/headlessService/constants.d.ts +7 -0
- package/dist/cjs/src/common/headlessService/landingPage.d.ts +9 -0
- package/dist/cjs/src/common/headlessService/languages.d.ts +8 -0
- package/dist/cjs/src/common/headlessService/makeQueryWithApolloClientFromConfig.d.ts +12 -0
- package/dist/cjs/src/common/headlessService/menu.d.ts +10 -0
- package/dist/cjs/src/common/headlessService/notification.d.ts +7 -0
- package/dist/cjs/src/common/headlessService/page.d.ts +8 -0
- package/dist/cjs/src/common/headlessService/pageByTemplate.d.ts +9 -0
- package/dist/cjs/src/common/headlessService/pages.d.ts +13 -0
- package/dist/cjs/src/common/headlessService/tag.d.ts +9 -0
- package/dist/cjs/src/common/headlessService/tags.d.ts +13 -0
- package/dist/cjs/src/common/headlessService/types.d.ts +17 -0
- package/dist/cjs/src/common/headlessService/utils.d.ts +909 -0
- package/dist/cjs/src/common/utils/customRender.d.ts +4 -0
- package/dist/cjs/src/common/utils/dates.d.ts +20 -0
- package/dist/cjs/src/common/utils/getIsValidHttpUrl.d.ts +5 -0
- package/dist/cjs/src/common/utils/hash.d.ts +1 -0
- package/dist/cjs/src/common/utils/makeLocaleStorageValue.d.ts +6 -0
- package/dist/cjs/src/common/utils/testImage.d.ts +9 -0
- package/dist/cjs/src/common/venuesService/__generated__.d.ts +254 -0
- package/dist/cjs/src/common/venuesService/makeQueryWithVenuesApolloClientFromConfig.d.ts +7 -0
- package/dist/cjs/src/common/venuesService/types.d.ts +2 -0
- package/dist/cjs/src/constants.d.ts +5 -0
- package/dist/cjs/src/core/archiveSearchPage/ArchivePageMeta.d.ts +13 -0
- package/dist/cjs/src/core/archiveSearchPage/ArchiveSearchPage.d.ts +16 -0
- package/dist/cjs/src/core/archiveSearchPage/ArchiveSearchPage.stories.d.ts +50 -0
- package/dist/cjs/src/core/archiveSearchPageContent/ArchiveSearchPageContent.d.ts +92 -0
- package/dist/cjs/src/core/button/LoadingButton.d.ts +8 -0
- package/dist/cjs/src/core/card/Card.d.ts +102 -0
- package/dist/cjs/src/core/card/Card.stories.d.ts +99 -0
- package/dist/cjs/src/core/card/LargeCard.d.ts +68 -0
- package/dist/cjs/src/core/card/LargeCard.stories.d.ts +16 -0
- package/dist/cjs/src/core/cardsList/CardsList.d.ts +16 -0
- package/dist/cjs/src/core/cardsList/CardsList.stories.d.ts +22 -0
- package/dist/cjs/src/core/carousel/Carousel.d.ts +3 -0
- package/dist/cjs/src/core/carousel/Carousel.stories.d.ts +34 -0
- package/dist/cjs/src/core/carousel/__tests__/Carousel.test.d.ts +1 -0
- package/dist/cjs/src/core/carousel/components/CarouselSlideButton.d.ts +3 -0
- package/dist/cjs/src/core/carousel/components/CarouselSlider.d.ts +3 -0
- package/dist/cjs/src/core/carousel/components/CarouselSliderDot.d.ts +2 -0
- package/dist/cjs/src/core/carousel/components/CarouselSliderPage.d.ts +5 -0
- package/dist/cjs/src/core/carousel/components/__tests__/CarouselSlideButton.test.d.ts +1 -0
- package/dist/cjs/src/core/carousel/components/__tests__/CarouselSlider.test.d.ts +1 -0
- package/dist/cjs/src/core/carousel/components/__tests__/CarouselSliderDot.test.d.ts +1 -0
- package/dist/cjs/src/core/carousel/components/__tests__/CarouselSliderPage.test.d.ts +1 -0
- package/dist/cjs/src/core/carousel/constants.d.ts +20 -0
- package/dist/cjs/src/core/carousel/context/CarouselContext.d.ts +4 -0
- package/dist/cjs/src/core/carousel/context/CarouselContextProvider.d.ts +7 -0
- package/dist/cjs/src/core/carousel/types.d.ts +147 -0
- package/dist/cjs/src/core/carousel/utils/utils.d.ts +27 -0
- package/dist/cjs/src/core/collection/Collection.d.ts +102 -0
- package/dist/cjs/src/core/collection/Collection.stories.d.ts +48 -0
- package/dist/cjs/src/core/collection/__tests__/Collection.test.d.ts +1 -0
- package/dist/cjs/src/core/collection/constants.d.ts +1 -0
- package/dist/cjs/src/core/collection/types.d.ts +28 -0
- package/dist/cjs/src/core/collection/utils.d.ts +36 -0
- package/dist/cjs/src/core/configProvider/ConfigProvider.d.ts +13 -0
- package/dist/cjs/src/core/configProvider/configContext.d.ts +130 -0
- package/dist/cjs/src/core/configProvider/defaultConfig.d.ts +61 -0
- package/dist/cjs/src/core/configProvider/useApolloClientFromConfig.d.ts +1 -0
- package/dist/cjs/src/core/configProvider/useConfig.d.ts +2 -0
- package/dist/cjs/src/core/configProvider/useEventsApolloClientFromConfig.d.ts +1 -0
- package/dist/cjs/src/core/configProvider/useHeadlessCmsLink.d.ts +2 -0
- package/dist/cjs/src/core/configProvider/useVenuesApolloClientFromConfig.d.ts +1 -0
- package/dist/cjs/src/core/contentContainer/ContentContainer.d.ts +12 -0
- package/dist/cjs/src/core/contentContainer/ContentContainer.stories.d.ts +8 -0
- package/dist/cjs/src/core/hero/Hero.d.ts +33 -0
- package/dist/cjs/src/core/hero/Hero.stories.d.ts +23 -0
- package/dist/cjs/src/core/hooks/useResolveImageUrl.d.ts +6 -0
- package/dist/cjs/src/core/image/BackgroundImage.d.ts +20 -0
- package/dist/cjs/src/core/image/Image.d.ts +24 -0
- package/dist/cjs/src/core/image/__tests__/BackgroundImage.test.d.ts +1 -0
- package/dist/cjs/src/core/image/__tests__/Image.test.d.ts +1 -0
- package/dist/cjs/src/core/imageGallery/ImageGallery.d.ts +25 -0
- package/dist/cjs/src/core/imageGallery/ImageGalleryContext.d.ts +32 -0
- package/dist/cjs/src/core/imageGallery/ImageGalleryProvider.d.ts +10 -0
- package/dist/cjs/src/core/imageGallery/ImageItem.d.ts +26 -0
- package/dist/cjs/src/core/imageGallery/ImagesGrid.d.ts +26 -0
- package/dist/cjs/src/core/imageGallery/Lightbox.d.ts +24 -0
- package/dist/cjs/src/core/imageGallery/types.d.ts +6 -0
- package/dist/cjs/src/core/imageGallery/useImageGalleryContext.d.ts +1 -0
- package/dist/cjs/src/core/index.d.ts +43 -0
- package/dist/cjs/src/core/language/__tests__/languageSorter.test.d.ts +1 -0
- package/dist/cjs/src/core/language/constants.d.ts +6 -0
- package/dist/cjs/src/core/language/findLanguage.d.ts +10 -0
- package/dist/cjs/src/core/language/index.d.ts +6 -0
- package/dist/cjs/src/core/language/languageSorter.d.ts +4 -0
- package/dist/cjs/src/core/language/toPrimaryLanguageOption.d.ts +5 -0
- package/dist/cjs/src/core/language/typeGuards.d.ts +3 -0
- package/dist/cjs/src/core/language/types.d.ts +5 -0
- package/dist/cjs/src/core/link/Link.d.ts +44 -0
- package/dist/cjs/src/core/link/Link.stories.d.ts +33 -0
- package/dist/cjs/src/core/link/LinkBase.d.ts +106 -0
- package/dist/cjs/src/core/link/SecondaryLink.d.ts +3 -0
- package/dist/cjs/src/core/link/__tests__/Link.test.d.ts +1 -0
- package/dist/cjs/src/core/linkBox/Link.stories.d.ts +23 -0
- package/dist/cjs/src/core/linkBox/LinkBox.d.ts +20 -0
- package/dist/cjs/src/core/navigation/Navigation.d.ts +15 -0
- package/dist/cjs/src/core/notification/Notification.d.ts +9 -0
- package/dist/cjs/src/core/notification/__tests__/Notification.test.d.ts +1 -0
- package/dist/cjs/src/core/notification/utils/getIsNotificationActive.d.ts +2 -0
- package/dist/cjs/src/core/notification/utils/getNotificationHash.d.ts +2 -0
- package/dist/cjs/src/core/page/Page.d.ts +9 -0
- package/dist/cjs/src/core/page/Page.stories.d.ts +40 -0
- package/dist/cjs/src/core/pageContent/PageContent.d.ts +11 -0
- package/dist/cjs/src/core/pageContent/PageContent.stories.d.ts +1146 -0
- package/dist/cjs/src/core/pageContent/PageContentBreadcrumb.d.ts +5 -0
- package/dist/cjs/src/core/pageContent/PageContentLayout.d.ts +16 -0
- package/dist/cjs/src/core/pageContent/PageMainContent.d.ts +11 -0
- package/dist/cjs/src/core/pageContent/__tests__/Page.test.d.ts +1 -0
- package/dist/cjs/src/core/pageContent/meta/PageMeta.d.ts +9 -0
- package/dist/cjs/src/core/pageContent/sidebarContent/SidebarCardsList.d.ts +5 -0
- package/dist/cjs/src/core/pageContent/sidebarContent/SidebarContent.d.ts +15 -0
- package/dist/cjs/src/core/pageContent/sidebarContent/SidebarContentCard.d.ts +12 -0
- package/dist/cjs/src/core/pageContent/sidebarContent/SidebarContentLinkList.d.ts +5 -0
- package/dist/cjs/src/core/pageContent/sidebarContent/SidebarPostListItem.d.ts +8 -0
- package/dist/cjs/src/core/pageContent/sidebarContent/__tests__/SidebarContent.test.d.ts +1 -0
- package/dist/cjs/src/core/pageContent/types.d.ts +36 -0
- package/dist/cjs/src/core/pageContent/utils.d.ts +28 -0
- package/dist/cjs/src/core/pageContextProvider/PageContext.d.ts +6 -0
- package/dist/cjs/src/core/pageContextProvider/PageContextProvider.d.ts +6 -0
- package/dist/cjs/src/core/pageContextProvider/__tests__/PageContextProvider.test.d.ts +1 -0
- package/dist/cjs/src/core/pageContextProvider/usePageContext.d.ts +1 -0
- package/dist/cjs/src/core/pageModules/CardModule/CardModule.d.ts +3 -0
- package/dist/cjs/src/core/pageModules/CardModule/CardModule.stories.d.ts +7 -0
- package/dist/cjs/src/core/pageModules/CardsModule/CardsModule.d.ts +17 -0
- package/dist/cjs/src/core/pageModules/CardsModule/CardsModule.stories.d.ts +7 -0
- package/dist/cjs/src/core/pageModules/CardsModule/Icon.d.ts +6 -0
- package/dist/cjs/src/core/pageModules/CardsModule/SimpleCard.d.ts +13 -0
- package/dist/cjs/src/core/pageModules/ContentModule/ContentModule.d.ts +7 -0
- package/dist/cjs/src/core/pageModules/ContentModule/ContentModule.stories.d.ts +7 -0
- package/dist/cjs/src/core/pageModules/ImageGalleryModule/ImageGalleryModule.d.ts +3 -0
- package/dist/cjs/src/core/pageModules/ImageGalleryModule/ImageGalleryModule.stories.d.ts +7 -0
- package/dist/cjs/src/core/pageModules/SocialMediaFeedModule/SocialMediaFeedModule.d.ts +7 -0
- package/dist/cjs/src/core/pageModules/SocialMediaFeedModule/SocialMediaFeedModule.stories.d.ts +7 -0
- package/dist/cjs/src/core/pageModules/StepsModule/StepsModule.d.ts +14 -0
- package/dist/cjs/src/core/pageModules/StepsModule/StepsModule.stories.d.ts +7 -0
- package/dist/cjs/src/core/pageModules/constants.d.ts +1 -0
- package/dist/cjs/src/core/pageSection/PageSection.d.ts +32 -0
- package/dist/cjs/src/core/pageSection/PageSection.stories.d.ts +7 -0
- package/dist/cjs/src/core/pageSection/__tests__/PageSection.test.d.ts +1 -0
- package/dist/cjs/src/core/storyContainer/StoryContainer.d.ts +6 -0
- package/dist/cjs/src/core/translation/__tests__/getTranslationWithFallback.test.d.ts +1 -0
- package/dist/cjs/src/core/translation/constants.d.ts +12 -0
- package/dist/cjs/src/core/translation/getTranslationWithFallback.d.ts +4 -0
- package/dist/cjs/src/core/translation/types.d.ts +8 -0
- package/dist/cjs/src/core/translation/useTranslationWithFallback.d.ts +4 -0
- package/dist/cjs/src/core/utils/__tests__/findAllElementsOfType.test.d.ts +1 -0
- package/dist/cjs/src/core/utils/__tests__/getChildrenByType.test.d.ts +1 -0
- package/dist/cjs/src/core/utils/__tests__/recursiveMap.test.d.ts +1 -0
- package/dist/cjs/src/core/utils/createHashKey.d.ts +1 -0
- package/dist/cjs/src/core/utils/findAllElementsOfType.d.ts +5 -0
- package/dist/cjs/src/core/utils/getChildrenByType.d.ts +18 -0
- package/dist/cjs/src/core/utils/isTrustedOrigin.d.ts +1 -0
- package/dist/cjs/src/core/utils/recursiveMap.d.ts +15 -0
- package/dist/cjs/src/core/utils/string.d.ts +27 -0
- package/dist/cjs/src/core/utils/validateTrustedOriginsFormat.d.ts +1 -0
- package/dist/cjs/src/linkedEvents/utils/normalizeKey.d.ts +10 -0
- package/dist/cjs/src/linkedEvents/utils/normalizeKeys.d.ts +28 -0
- package/dist/cjs/src/mocks/handlers.d.ts +1 -0
- package/dist/cjs/src/mocks/queries/cms/languages.d.ts +1 -0
- package/dist/cjs/src/mocks/queries/cms/menu.d.ts +1 -0
- package/dist/cjs/src/mocks/queries/cms/notification.d.ts +1 -0
- package/dist/cjs/src/mocks/queries/cms/page.d.ts +1 -0
- package/dist/cjs/src/mocks/queries/linkedEvents/eventList.d.ts +242 -0
- package/dist/cjs/src/mocks/queries/linkedEvents/eventsByIds.d.ts +224 -0
- package/dist/cjs/src/mocks/responses/linkedEvents/eventMocks.d.ts +1112 -0
- package/dist/cjs/src/mocks/server.d.ts +1 -0
- package/dist/cjs/src/nextjs/getLanguageStaticProps.d.ts +3 -0
- package/dist/cjs/src/nextjs/getMenuStaticProps.d.ts +7 -0
- package/dist/cjs/src/nextjs/getPageStaticProps.d.ts +7 -0
- package/dist/cjs/src/nextjs/index.d.ts +3 -0
- package/dist/cjs/src/storybook-common/HelmetWrapper.d.ts +4 -0
- package/dist/cjs/src/storybook-common/constants.d.ts +9 -0
- package/dist/cjs/src/storybook-common/useCmsEndpointConfig.d.ts +3 -0
- package/dist/cjs/src/tests/apolloConfig.d.ts +2 -0
- package/dist/cjs/src/tests/hideConsoleMessages.d.ts +11 -0
- package/dist/configContext-BjJVyERb.d.ts +791 -0
- package/dist/defaultConfig-B0wJw6Kr.js +19810 -0
- package/dist/defaultConfig-B0wJw6Kr.js.map +1 -0
- package/dist/index-B0pDvzoV.js +2 -0
- package/dist/index-B0pDvzoV.js.map +1 -0
- package/dist/index.d.ts +1432 -0
- package/dist/index.js +333 -0
- package/dist/index.js.map +1 -0
- package/dist/jest-setup.d.ts +1 -0
- package/dist/nextjs.d.ts +17 -0
- package/dist/nextjs.js +70 -0
- package/dist/nextjs.js.map +1 -0
- package/dist/package.json +182 -0
- package/dist/src/apollo/apollo-custom-template.stories.d.ts +12 -0
- package/dist/src/apollo/apollo.stories.d.ts +24 -0
- package/dist/src/apollo/index.d.ts +17 -0
- package/dist/src/apollo/navigation/Navigation.d.ts +13 -0
- package/dist/src/apollo/navigation/__tests__/Navigation.test.d.ts +1 -0
- package/dist/src/apollo/notification/Notification.d.ts +4 -0
- package/dist/src/apollo/notification/__tests__/Notification.test.d.ts +1 -0
- package/dist/src/apollo/page/ApolloPageContextProvider.d.ts +5 -0
- package/dist/src/apollo/page/Page.d.ts +14 -0
- package/dist/src/apollo/page/apolloPageContext.d.ts +13 -0
- package/dist/src/apollo/page/useApolloPageContext.d.ts +4 -0
- package/dist/src/apollo/pageContent/PageContent.d.ts +9 -0
- package/dist/src/apollo/pageWithTemplateContent/PageWithTemplateContent.d.ts +14 -0
- package/dist/src/common/components/container/Container.d.ts +13 -0
- package/dist/src/common/components/grid/Grid.d.ts +16 -0
- package/dist/src/common/components/grid/Grid.stories.d.ts +8 -0
- package/dist/src/common/components/htmlToReact/HtmlToReact.d.ts +38 -0
- package/dist/src/common/components/htmlToReact/HtmlToReact.stories.d.ts +13 -0
- package/dist/src/common/components/htmlToReact/__tests__/HtmlToReact.tests.d.ts +1 -0
- package/dist/src/common/components/htmlToReact/replaceComponents/DefaultH2.d.ts +4 -0
- package/dist/src/common/components/htmlToReact/replaceComponents/DefaultP.d.ts +4 -0
- package/dist/src/common/components/htmlToReact/replaceComponents/IframeForEmbeddedMedia.d.ts +6 -0
- package/dist/src/common/components/htmlToReact/replaceComponents/index.d.ts +3 -0
- package/dist/src/common/components/icons/index.d.ts +5 -0
- package/dist/src/common/components/list/List.d.ts +13 -0
- package/dist/src/common/components/list/List.stories.d.ts +13 -0
- package/dist/src/common/components/tag/Tag.d.ts +26 -0
- package/dist/src/common/components/tag/Tag.stories.d.ts +80 -0
- package/dist/src/common/components/tag/__tests__/Tag.test.d.ts +1 -0
- package/dist/src/common/components/tag/tagThemes.d.ts +3 -0
- package/dist/src/common/components/text/Text.d.ts +27 -0
- package/dist/src/common/components/text/Text.stories.d.ts +14 -0
- package/dist/src/common/constants.d.ts +2 -0
- package/dist/src/common/eventsService/__generated__.d.ts +1420 -0
- package/dist/src/common/eventsService/events.d.ts +12 -0
- package/dist/src/common/eventsService/types.d.ts +2 -0
- package/dist/src/common/eventsService/utils.d.ts +7 -0
- package/dist/src/common/headlessService/__generated__.d.ts +20878 -0
- package/dist/src/common/headlessService/article.d.ts +7 -0
- package/dist/src/common/headlessService/articles.d.ts +17 -0
- package/dist/src/common/headlessService/categories.d.ts +13 -0
- package/dist/src/common/headlessService/category.d.ts +9 -0
- package/dist/src/common/headlessService/constants.d.ts +7 -0
- package/dist/src/common/headlessService/landingPage.d.ts +9 -0
- package/dist/src/common/headlessService/languages.d.ts +8 -0
- package/dist/src/common/headlessService/makeQueryWithApolloClientFromConfig.d.ts +12 -0
- package/dist/src/common/headlessService/menu.d.ts +10 -0
- package/dist/src/common/headlessService/notification.d.ts +7 -0
- package/dist/src/common/headlessService/page.d.ts +8 -0
- package/dist/src/common/headlessService/pageByTemplate.d.ts +9 -0
- package/dist/src/common/headlessService/pages.d.ts +13 -0
- package/dist/src/common/headlessService/tag.d.ts +9 -0
- package/dist/src/common/headlessService/tags.d.ts +13 -0
- package/dist/src/common/headlessService/types.d.ts +17 -0
- package/dist/src/common/headlessService/utils.d.ts +909 -0
- package/dist/src/common/utils/customRender.d.ts +4 -0
- package/dist/src/common/utils/dates.d.ts +20 -0
- package/dist/src/common/utils/getIsValidHttpUrl.d.ts +5 -0
- package/dist/src/common/utils/hash.d.ts +1 -0
- package/dist/src/common/utils/makeLocaleStorageValue.d.ts +6 -0
- package/dist/src/common/utils/testImage.d.ts +9 -0
- package/dist/src/common/venuesService/__generated__.d.ts +254 -0
- package/dist/src/common/venuesService/makeQueryWithVenuesApolloClientFromConfig.d.ts +7 -0
- package/dist/src/common/venuesService/types.d.ts +2 -0
- package/dist/src/constants.d.ts +5 -0
- package/dist/src/core/archiveSearchPage/ArchivePageMeta.d.ts +13 -0
- package/dist/src/core/archiveSearchPage/ArchiveSearchPage.d.ts +16 -0
- package/dist/src/core/archiveSearchPage/ArchiveSearchPage.stories.d.ts +50 -0
- package/dist/src/core/archiveSearchPageContent/ArchiveSearchPageContent.d.ts +92 -0
- package/dist/src/core/button/LoadingButton.d.ts +8 -0
- package/dist/src/core/card/Card.d.ts +102 -0
- package/dist/src/core/card/Card.stories.d.ts +99 -0
- package/dist/src/core/card/LargeCard.d.ts +68 -0
- package/dist/src/core/card/LargeCard.stories.d.ts +16 -0
- package/dist/src/core/cardsList/CardsList.d.ts +16 -0
- package/dist/src/core/cardsList/CardsList.stories.d.ts +22 -0
- package/dist/src/core/carousel/Carousel.d.ts +3 -0
- package/dist/src/core/carousel/Carousel.stories.d.ts +34 -0
- package/dist/src/core/carousel/__tests__/Carousel.test.d.ts +1 -0
- package/dist/src/core/carousel/components/CarouselSlideButton.d.ts +3 -0
- package/dist/src/core/carousel/components/CarouselSlider.d.ts +3 -0
- package/dist/src/core/carousel/components/CarouselSliderDot.d.ts +2 -0
- package/dist/src/core/carousel/components/CarouselSliderPage.d.ts +5 -0
- package/dist/src/core/carousel/components/__tests__/CarouselSlideButton.test.d.ts +1 -0
- package/dist/src/core/carousel/components/__tests__/CarouselSlider.test.d.ts +1 -0
- package/dist/src/core/carousel/components/__tests__/CarouselSliderDot.test.d.ts +1 -0
- package/dist/src/core/carousel/components/__tests__/CarouselSliderPage.test.d.ts +1 -0
- package/dist/src/core/carousel/constants.d.ts +20 -0
- package/dist/src/core/carousel/context/CarouselContext.d.ts +4 -0
- package/dist/src/core/carousel/context/CarouselContextProvider.d.ts +7 -0
- package/dist/src/core/carousel/types.d.ts +147 -0
- package/dist/src/core/carousel/utils/utils.d.ts +27 -0
- package/dist/src/core/collection/Collection.d.ts +102 -0
- package/dist/src/core/collection/Collection.stories.d.ts +48 -0
- package/dist/src/core/collection/__tests__/Collection.test.d.ts +1 -0
- package/dist/src/core/collection/constants.d.ts +1 -0
- package/dist/src/core/collection/types.d.ts +28 -0
- package/dist/src/core/collection/utils.d.ts +36 -0
- package/dist/src/core/configProvider/ConfigProvider.d.ts +13 -0
- package/dist/src/core/configProvider/configContext.d.ts +130 -0
- package/dist/src/core/configProvider/defaultConfig.d.ts +61 -0
- package/dist/src/core/configProvider/useApolloClientFromConfig.d.ts +1 -0
- package/dist/src/core/configProvider/useConfig.d.ts +2 -0
- package/dist/src/core/configProvider/useEventsApolloClientFromConfig.d.ts +1 -0
- package/dist/src/core/configProvider/useHeadlessCmsLink.d.ts +2 -0
- package/dist/src/core/configProvider/useVenuesApolloClientFromConfig.d.ts +1 -0
- package/dist/src/core/contentContainer/ContentContainer.d.ts +12 -0
- package/dist/src/core/contentContainer/ContentContainer.stories.d.ts +8 -0
- package/dist/src/core/hero/Hero.d.ts +33 -0
- package/dist/src/core/hero/Hero.stories.d.ts +23 -0
- package/dist/src/core/hooks/useResolveImageUrl.d.ts +6 -0
- package/dist/src/core/image/BackgroundImage.d.ts +20 -0
- package/dist/src/core/image/Image.d.ts +24 -0
- package/dist/src/core/image/__tests__/BackgroundImage.test.d.ts +1 -0
- package/dist/src/core/image/__tests__/Image.test.d.ts +1 -0
- package/dist/src/core/imageGallery/ImageGallery.d.ts +25 -0
- package/dist/src/core/imageGallery/ImageGalleryContext.d.ts +32 -0
- package/dist/src/core/imageGallery/ImageGalleryProvider.d.ts +10 -0
- package/dist/src/core/imageGallery/ImageItem.d.ts +26 -0
- package/dist/src/core/imageGallery/ImagesGrid.d.ts +26 -0
- package/dist/src/core/imageGallery/Lightbox.d.ts +24 -0
- package/dist/src/core/imageGallery/types.d.ts +6 -0
- package/dist/src/core/imageGallery/useImageGalleryContext.d.ts +1 -0
- package/dist/src/core/index.d.ts +43 -0
- package/dist/src/core/language/__tests__/languageSorter.test.d.ts +1 -0
- package/dist/src/core/language/constants.d.ts +6 -0
- package/dist/src/core/language/findLanguage.d.ts +10 -0
- package/dist/src/core/language/index.d.ts +6 -0
- package/dist/src/core/language/languageSorter.d.ts +4 -0
- package/dist/src/core/language/toPrimaryLanguageOption.d.ts +5 -0
- package/dist/src/core/language/typeGuards.d.ts +3 -0
- package/dist/src/core/language/types.d.ts +5 -0
- package/dist/src/core/link/Link.d.ts +44 -0
- package/dist/src/core/link/Link.stories.d.ts +33 -0
- package/dist/src/core/link/LinkBase.d.ts +106 -0
- package/dist/src/core/link/SecondaryLink.d.ts +3 -0
- package/dist/src/core/link/__tests__/Link.test.d.ts +1 -0
- package/dist/src/core/linkBox/Link.stories.d.ts +23 -0
- package/dist/src/core/linkBox/LinkBox.d.ts +20 -0
- package/dist/src/core/navigation/Navigation.d.ts +15 -0
- package/dist/src/core/notification/Notification.d.ts +9 -0
- package/dist/src/core/notification/__tests__/Notification.test.d.ts +1 -0
- package/dist/src/core/notification/utils/getIsNotificationActive.d.ts +2 -0
- package/dist/src/core/notification/utils/getNotificationHash.d.ts +2 -0
- package/dist/src/core/page/Page.d.ts +9 -0
- package/dist/src/core/page/Page.stories.d.ts +40 -0
- package/dist/src/core/pageContent/PageContent.d.ts +11 -0
- package/dist/src/core/pageContent/PageContent.stories.d.ts +1146 -0
- package/dist/src/core/pageContent/PageContentBreadcrumb.d.ts +5 -0
- package/dist/src/core/pageContent/PageContentLayout.d.ts +16 -0
- package/dist/src/core/pageContent/PageMainContent.d.ts +11 -0
- package/dist/src/core/pageContent/__tests__/Page.test.d.ts +1 -0
- package/dist/src/core/pageContent/meta/PageMeta.d.ts +9 -0
- package/dist/src/core/pageContent/sidebarContent/SidebarCardsList.d.ts +5 -0
- package/dist/src/core/pageContent/sidebarContent/SidebarContent.d.ts +15 -0
- package/dist/src/core/pageContent/sidebarContent/SidebarContentCard.d.ts +12 -0
- package/dist/src/core/pageContent/sidebarContent/SidebarContentLinkList.d.ts +5 -0
- package/dist/src/core/pageContent/sidebarContent/SidebarPostListItem.d.ts +8 -0
- package/dist/src/core/pageContent/sidebarContent/__tests__/SidebarContent.test.d.ts +1 -0
- package/dist/src/core/pageContent/types.d.ts +36 -0
- package/dist/src/core/pageContent/utils.d.ts +28 -0
- package/dist/src/core/pageContextProvider/PageContext.d.ts +6 -0
- package/dist/src/core/pageContextProvider/PageContextProvider.d.ts +6 -0
- package/dist/src/core/pageContextProvider/__tests__/PageContextProvider.test.d.ts +1 -0
- package/dist/src/core/pageContextProvider/usePageContext.d.ts +1 -0
- package/dist/src/core/pageModules/CardModule/CardModule.d.ts +3 -0
- package/dist/src/core/pageModules/CardModule/CardModule.stories.d.ts +7 -0
- package/dist/src/core/pageModules/CardsModule/CardsModule.d.ts +17 -0
- package/dist/src/core/pageModules/CardsModule/CardsModule.stories.d.ts +7 -0
- package/dist/src/core/pageModules/CardsModule/Icon.d.ts +6 -0
- package/dist/src/core/pageModules/CardsModule/SimpleCard.d.ts +13 -0
- package/dist/src/core/pageModules/ContentModule/ContentModule.d.ts +7 -0
- package/dist/src/core/pageModules/ContentModule/ContentModule.stories.d.ts +7 -0
- package/dist/src/core/pageModules/ImageGalleryModule/ImageGalleryModule.d.ts +3 -0
- package/dist/src/core/pageModules/ImageGalleryModule/ImageGalleryModule.stories.d.ts +7 -0
- package/dist/src/core/pageModules/SocialMediaFeedModule/SocialMediaFeedModule.d.ts +7 -0
- package/dist/src/core/pageModules/SocialMediaFeedModule/SocialMediaFeedModule.stories.d.ts +7 -0
- package/dist/src/core/pageModules/StepsModule/StepsModule.d.ts +14 -0
- package/dist/src/core/pageModules/StepsModule/StepsModule.stories.d.ts +7 -0
- package/dist/src/core/pageModules/constants.d.ts +1 -0
- package/dist/src/core/pageSection/PageSection.d.ts +32 -0
- package/dist/src/core/pageSection/PageSection.stories.d.ts +7 -0
- package/dist/src/core/pageSection/__tests__/PageSection.test.d.ts +1 -0
- package/dist/src/core/storyContainer/StoryContainer.d.ts +6 -0
- package/dist/src/core/translation/__tests__/getTranslationWithFallback.test.d.ts +1 -0
- package/dist/src/core/translation/constants.d.ts +12 -0
- package/dist/src/core/translation/getTranslationWithFallback.d.ts +4 -0
- package/dist/src/core/translation/types.d.ts +8 -0
- package/dist/src/core/translation/useTranslationWithFallback.d.ts +4 -0
- package/dist/src/core/utils/__tests__/findAllElementsOfType.test.d.ts +1 -0
- package/dist/src/core/utils/__tests__/getChildrenByType.test.d.ts +1 -0
- package/dist/src/core/utils/__tests__/recursiveMap.test.d.ts +1 -0
- package/dist/src/core/utils/createHashKey.d.ts +1 -0
- package/dist/src/core/utils/findAllElementsOfType.d.ts +5 -0
- package/dist/src/core/utils/getChildrenByType.d.ts +18 -0
- package/dist/src/core/utils/isTrustedOrigin.d.ts +1 -0
- package/dist/src/core/utils/recursiveMap.d.ts +15 -0
- package/dist/src/core/utils/string.d.ts +27 -0
- package/dist/src/core/utils/validateTrustedOriginsFormat.d.ts +1 -0
- package/dist/src/linkedEvents/utils/normalizeKey.d.ts +10 -0
- package/dist/src/linkedEvents/utils/normalizeKeys.d.ts +28 -0
- package/dist/src/mocks/handlers.d.ts +1 -0
- package/dist/src/mocks/queries/cms/languages.d.ts +1 -0
- package/dist/src/mocks/queries/cms/menu.d.ts +1 -0
- package/dist/src/mocks/queries/cms/notification.d.ts +1 -0
- package/dist/src/mocks/queries/cms/page.d.ts +1 -0
- package/dist/src/mocks/queries/linkedEvents/eventList.d.ts +242 -0
- package/dist/src/mocks/queries/linkedEvents/eventsByIds.d.ts +224 -0
- package/dist/src/mocks/responses/linkedEvents/eventMocks.d.ts +1112 -0
- package/dist/src/mocks/server.d.ts +1 -0
- package/dist/src/nextjs/getLanguageStaticProps.d.ts +3 -0
- package/dist/src/nextjs/getMenuStaticProps.d.ts +7 -0
- package/dist/src/nextjs/getPageStaticProps.d.ts +7 -0
- package/dist/src/nextjs/index.d.ts +3 -0
- package/dist/src/storybook-common/HelmetWrapper.d.ts +4 -0
- package/dist/src/storybook-common/constants.d.ts +9 -0
- package/dist/src/storybook-common/useCmsEndpointConfig.d.ts +3 -0
- package/dist/src/tests/apolloConfig.d.ts +2 -0
- package/dist/src/tests/hideConsoleMessages.d.ts +11 -0
- package/package.json +1 -1
package/dist/apollo.d.ts
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { u as NavigationProps$1, w as NotificationProps, y as PageProps$3, j as PageContentProps } from './configContext-BjJVyERb.js';
|
|
3
|
+
import { T as TemplateEnum, L as LanguageCodeEnum, u as PageQuery, v as Exact, S as Scalars, w as PagesQuery, I as InputMaybe, s as LanguageCodeFilterEnum, A as ArticleQuery, x as PostsQuery, C as CategoryQuery, y as CategoriesQuery, z as TagQuery, B as TagsQuery, D as LandingPageQuery, F as PageByTemplateQuery, G as MenuQuery, H as LanguagesQuery } from './__generated__-mcycL1jB.js';
|
|
4
|
+
export { U as ArticleDocument, R as ArticleQueryVariables, _ as CategoriesDocument, Z as CategoriesQueryVariables, Y as CategoryDocument, X as CategoryQueryVariables, a4 as LandingPageDocument, a3 as LandingPageQueryVariables, aa as LanguagesDocument, a9 as LanguagesQueryVariables, a8 as MenuDocument, a7 as MenuQueryVariables, a6 as PageByTemplateDocument, a5 as PageByTemplateQueryVariables, K as PageDocument, J as PageQueryVariables, Q as PagesDocument, O as PagesQueryVariables, W as PostsDocument, V as PostsQueryVariables, a0 as TagDocument, $ as TagQueryVariables, a2 as TagsDocument, a1 as TagsQueryVariables } from './__generated__-mcycL1jB.js';
|
|
5
|
+
import * as Apollo from '@apollo/client';
|
|
6
|
+
import 'hds-react';
|
|
7
|
+
import 'isomorphic-dompurify';
|
|
8
|
+
|
|
9
|
+
type NavigationProps = Omit<NavigationProps$1, 'menu' | 'languages' | 'getPathnameForLanguage'> & {
|
|
10
|
+
/**
|
|
11
|
+
* The name of the menu in Wordpress headless CMS.
|
|
12
|
+
*/
|
|
13
|
+
menuName: string;
|
|
14
|
+
/**
|
|
15
|
+
* Gets language specific path for navigation item.
|
|
16
|
+
*/
|
|
17
|
+
getPathnameForLanguage: NavigationProps$1['getPathnameForLanguage'];
|
|
18
|
+
};
|
|
19
|
+
declare function Navigation({ menuName, getPathnameForLanguage, ...delegatedProps }: NavigationProps): React__default.JSX.Element;
|
|
20
|
+
|
|
21
|
+
type Props = Exclude<NotificationProps, 'notification'>;
|
|
22
|
+
declare function Notification(props: Props): React__default.JSX.Element;
|
|
23
|
+
|
|
24
|
+
type PageProps$2 = PageProps$3 & {
|
|
25
|
+
/**
|
|
26
|
+
* Uri of the page.
|
|
27
|
+
*/
|
|
28
|
+
uri?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Page template value.
|
|
31
|
+
*/
|
|
32
|
+
pageTemplate?: TemplateEnum;
|
|
33
|
+
};
|
|
34
|
+
declare function Page({ uri, pageTemplate, ...delegatedProps }: PageProps$2): React__default.JSX.Element;
|
|
35
|
+
|
|
36
|
+
type PageProps$1 = Omit<PageContentProps, 'page'> & {
|
|
37
|
+
/**
|
|
38
|
+
* Page content if data not found or missing from cms.
|
|
39
|
+
*/
|
|
40
|
+
notFoundPageContent?: JSX.Element;
|
|
41
|
+
[x: string]: any;
|
|
42
|
+
};
|
|
43
|
+
declare function PageContent({ notFoundPageContent, ...delegatedProps }: PageProps$1): React__default.JSX.Element;
|
|
44
|
+
|
|
45
|
+
type PageProps = Omit<PageContentProps, 'page'> & {
|
|
46
|
+
/**
|
|
47
|
+
* The language of the page.
|
|
48
|
+
*/
|
|
49
|
+
language: LanguageCodeEnum;
|
|
50
|
+
/**
|
|
51
|
+
* Page content if data not found or missing from cms.
|
|
52
|
+
*/
|
|
53
|
+
notFoundPageContent?: JSX.Element;
|
|
54
|
+
[x: string]: any;
|
|
55
|
+
};
|
|
56
|
+
declare function PageWithTemplateContent({ language, notFoundPageContent, ...delegatedProps }: PageProps): React__default.JSX.Element;
|
|
57
|
+
|
|
58
|
+
declare const usePageQuery: (baseOptions?: Apollo.QueryHookOptions<PageQuery, Exact<{
|
|
59
|
+
id: Scalars["ID"]["input"];
|
|
60
|
+
}>>) => Apollo.QueryResult<PageQuery, Exact<{
|
|
61
|
+
id: Scalars["ID"]["input"];
|
|
62
|
+
}>>;
|
|
63
|
+
|
|
64
|
+
declare const usePagesQuery: (baseOptions?: Apollo.QueryHookOptions<PagesQuery, Exact<{
|
|
65
|
+
first?: InputMaybe<Scalars["Int"]["input"]>;
|
|
66
|
+
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
67
|
+
search?: InputMaybe<Scalars["String"]["input"]>;
|
|
68
|
+
language?: InputMaybe<LanguageCodeFilterEnum>;
|
|
69
|
+
}>>) => Apollo.QueryResult<PagesQuery, Exact<{
|
|
70
|
+
first?: InputMaybe<Scalars["Int"]["input"]>;
|
|
71
|
+
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
72
|
+
search?: InputMaybe<Scalars["String"]["input"]>;
|
|
73
|
+
language?: InputMaybe<LanguageCodeFilterEnum>;
|
|
74
|
+
}>>;
|
|
75
|
+
|
|
76
|
+
declare const useArticleQuery: (baseOptions?: Apollo.QueryHookOptions<ArticleQuery, Exact<{
|
|
77
|
+
id: Scalars["ID"]["input"];
|
|
78
|
+
}>>) => Apollo.QueryResult<ArticleQuery, Exact<{
|
|
79
|
+
id: Scalars["ID"]["input"];
|
|
80
|
+
}>>;
|
|
81
|
+
|
|
82
|
+
declare const usePostsQuery: (baseOptions?: Apollo.QueryHookOptions<PostsQuery, Exact<{
|
|
83
|
+
first?: InputMaybe<Scalars["Int"]["input"]>;
|
|
84
|
+
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
85
|
+
search?: InputMaybe<Scalars["String"]["input"]>;
|
|
86
|
+
language?: InputMaybe<LanguageCodeFilterEnum>;
|
|
87
|
+
categories?: InputMaybe<Array<InputMaybe<Scalars["ID"]["input"]>> | InputMaybe<Scalars["ID"]["input"]>>;
|
|
88
|
+
tags?: InputMaybe<Array<InputMaybe<Scalars["String"]["input"]>> | InputMaybe<Scalars["String"]["input"]>>;
|
|
89
|
+
}>>) => Apollo.QueryResult<PostsQuery, Exact<{
|
|
90
|
+
first?: InputMaybe<Scalars["Int"]["input"]>;
|
|
91
|
+
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
92
|
+
search?: InputMaybe<Scalars["String"]["input"]>;
|
|
93
|
+
language?: InputMaybe<LanguageCodeFilterEnum>;
|
|
94
|
+
categories?: InputMaybe<Array<InputMaybe<Scalars["ID"]["input"]>> | InputMaybe<Scalars["ID"]["input"]>>;
|
|
95
|
+
tags?: InputMaybe<Array<InputMaybe<Scalars["String"]["input"]>> | InputMaybe<Scalars["String"]["input"]>>;
|
|
96
|
+
}>>;
|
|
97
|
+
|
|
98
|
+
declare const useCategoryQuery: (baseOptions?: Apollo.QueryHookOptions<CategoryQuery, Exact<{
|
|
99
|
+
id: Scalars["ID"]["input"];
|
|
100
|
+
language: LanguageCodeEnum;
|
|
101
|
+
}>>) => Apollo.QueryResult<CategoryQuery, Exact<{
|
|
102
|
+
id: Scalars["ID"]["input"];
|
|
103
|
+
language: LanguageCodeEnum;
|
|
104
|
+
}>>;
|
|
105
|
+
|
|
106
|
+
declare const useCategoriesQuery: (baseOptions?: Apollo.QueryHookOptions<CategoriesQuery, Exact<{
|
|
107
|
+
first?: InputMaybe<Scalars["Int"]["input"]>;
|
|
108
|
+
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
109
|
+
search?: InputMaybe<Scalars["String"]["input"]>;
|
|
110
|
+
language?: InputMaybe<LanguageCodeFilterEnum>;
|
|
111
|
+
}>>) => Apollo.QueryResult<CategoriesQuery, Exact<{
|
|
112
|
+
first?: InputMaybe<Scalars["Int"]["input"]>;
|
|
113
|
+
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
114
|
+
search?: InputMaybe<Scalars["String"]["input"]>;
|
|
115
|
+
language?: InputMaybe<LanguageCodeFilterEnum>;
|
|
116
|
+
}>>;
|
|
117
|
+
|
|
118
|
+
declare const useTagQuery: (baseOptions?: Apollo.QueryHookOptions<TagQuery, Exact<{
|
|
119
|
+
id: Scalars["ID"]["input"];
|
|
120
|
+
language: LanguageCodeEnum;
|
|
121
|
+
}>>) => Apollo.QueryResult<TagQuery, Exact<{
|
|
122
|
+
id: Scalars["ID"]["input"];
|
|
123
|
+
language: LanguageCodeEnum;
|
|
124
|
+
}>>;
|
|
125
|
+
|
|
126
|
+
declare const useTagsQuery: (baseOptions?: Apollo.QueryHookOptions<TagsQuery, Exact<{
|
|
127
|
+
first?: InputMaybe<Scalars["Int"]["input"]>;
|
|
128
|
+
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
129
|
+
search?: InputMaybe<Scalars["String"]["input"]>;
|
|
130
|
+
language?: InputMaybe<LanguageCodeFilterEnum>;
|
|
131
|
+
}>>) => Apollo.QueryResult<TagsQuery, Exact<{
|
|
132
|
+
first?: InputMaybe<Scalars["Int"]["input"]>;
|
|
133
|
+
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
134
|
+
search?: InputMaybe<Scalars["String"]["input"]>;
|
|
135
|
+
language?: InputMaybe<LanguageCodeFilterEnum>;
|
|
136
|
+
}>>;
|
|
137
|
+
|
|
138
|
+
declare const useLandingPageQuery: (baseOptions?: Apollo.QueryHookOptions<LandingPageQuery, Exact<{
|
|
139
|
+
id: Scalars["ID"]["input"];
|
|
140
|
+
languageCode: LanguageCodeEnum;
|
|
141
|
+
}>>) => Apollo.QueryResult<LandingPageQuery, Exact<{
|
|
142
|
+
id: Scalars["ID"]["input"];
|
|
143
|
+
languageCode: LanguageCodeEnum;
|
|
144
|
+
}>>;
|
|
145
|
+
|
|
146
|
+
declare const usePageByTemplateQuery: (baseOptions?: Apollo.QueryHookOptions<PageByTemplateQuery, Exact<{
|
|
147
|
+
template?: InputMaybe<TemplateEnum>;
|
|
148
|
+
language?: InputMaybe<Scalars["String"]["input"]>;
|
|
149
|
+
}>>) => Apollo.QueryResult<PageByTemplateQuery, Exact<{
|
|
150
|
+
template?: InputMaybe<TemplateEnum>;
|
|
151
|
+
language?: InputMaybe<Scalars["String"]["input"]>;
|
|
152
|
+
}>>;
|
|
153
|
+
|
|
154
|
+
declare const useMenuQuery: (baseOptions?: Apollo.QueryHookOptions<MenuQuery, Exact<{
|
|
155
|
+
id: Scalars["ID"]["input"];
|
|
156
|
+
menuIdentifiersOnly?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
157
|
+
}>>) => Apollo.QueryResult<MenuQuery, Exact<{
|
|
158
|
+
id: Scalars["ID"]["input"];
|
|
159
|
+
menuIdentifiersOnly?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
160
|
+
}>>;
|
|
161
|
+
|
|
162
|
+
declare const useLanguagesQuery: (baseOptions?: Apollo.QueryHookOptions<LanguagesQuery, Exact<{
|
|
163
|
+
[key: string]: never;
|
|
164
|
+
}>>) => Apollo.QueryResult<LanguagesQuery, Exact<{
|
|
165
|
+
[key: string]: never;
|
|
166
|
+
}>>;
|
|
167
|
+
|
|
168
|
+
export { ArticleQuery, CategoriesQuery, CategoryQuery, LandingPageQuery, LanguageCodeEnum, LanguagesQuery, MenuQuery, Navigation, Notification, Page, PageByTemplateQuery, PageContent, PageQuery, PageWithTemplateContent, PagesQuery, PostsQuery, TagQuery, TagsQuery, useArticleQuery, useCategoriesQuery, useCategoryQuery, useLandingPageQuery, useLanguagesQuery, useMenuQuery, usePageByTemplateQuery, usePageQuery, usePagesQuery, usePostsQuery, useTagQuery, useTagsQuery };
|
package/dist/apollo.js
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { b as _objectSpread2, a1 as useLanguagesQuery$1, a2 as useMenuQuery$1, c as _objectWithoutProperties, a3 as useNotificationQuery$1, a4 as _defineProperty, h as LanguageCodeEnum, T as TemplateEnum, a5 as usePageQuery$1, a6 as usePageByTemplateQuery$1, a7 as usePagesQuery$1, a8 as useArticleQuery$1, a9 as usePostsQuery$1, aa as useCategoryQuery$1, ab as useCategoriesQuery$1, ac as useTagQuery$1, ad as useTagsQuery$1, ae as useLandingPageQuery$1 } from './defaultConfig-B0wJw6Kr.js';
|
|
2
|
+
export { ag as ArticleDocument, aj as CategoriesDocument, ai as CategoryDocument, am as LandingPageDocument, L as LanguagesDocument, M as MenuDocument, an as PageByTemplateDocument, P as PageDocument, af as PagesDocument, ah as PostsDocument, ak as TagDocument, al as TagsDocument } from './defaultConfig-B0wJw6Kr.js';
|
|
3
|
+
import React__default, { createContext, useContext } from 'react';
|
|
4
|
+
import { u as useConfig, N as Navigation$1, l as Notification$1, m as Page$1, U as styleInject, M as MAIN_CONTENT_ID, n as PageContent$1 } from './archiveSearchPageContent.module-DmpLBZP5.js';
|
|
5
|
+
import 'isomorphic-dompurify';
|
|
6
|
+
import 'html-react-parser';
|
|
7
|
+
import { LoadingSpinner } from 'hds-react';
|
|
8
|
+
import 'date-fns';
|
|
9
|
+
import '@apollo/client';
|
|
10
|
+
import 'react-dom';
|
|
11
|
+
|
|
12
|
+
function useQueryWithApolloClientFromConfig() {
|
|
13
|
+
var _useConfig = useConfig(),
|
|
14
|
+
apolloClient = _useConfig.apolloClient;
|
|
15
|
+
if (!apolloClient) {
|
|
16
|
+
throw Error('Error: useQueryWithApolloClientFromConfig - When using components from the apollo sub module, you must include a compatible apollo client in the apolloClient field of the config object you provide with ConfigProvider');
|
|
17
|
+
}
|
|
18
|
+
return apolloClient;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function makeQueryWithApolloClientFromConfig(useQuery) {
|
|
22
|
+
return function () {
|
|
23
|
+
var baseOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
24
|
+
var apolloClientFromConfig = useQueryWithApolloClientFromConfig();
|
|
25
|
+
return useQuery(_objectSpread2(_objectSpread2({
|
|
26
|
+
client: apolloClientFromConfig
|
|
27
|
+
}, baseOptions), {}, {
|
|
28
|
+
skip: baseOptions.skip || false
|
|
29
|
+
}));
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
var useLanguagesQuery = makeQueryWithApolloClientFromConfig(useLanguagesQuery$1);
|
|
34
|
+
|
|
35
|
+
var useMenuQuery = makeQueryWithApolloClientFromConfig(useMenuQuery$1);
|
|
36
|
+
|
|
37
|
+
var _excluded$3 = ["menuName", "getPathnameForLanguage"];
|
|
38
|
+
function Navigation(_ref) {
|
|
39
|
+
var _languagesQuery$data$, _languagesQuery$data, _menuQuery$data;
|
|
40
|
+
var menuName = _ref.menuName,
|
|
41
|
+
getPathnameForLanguage = _ref.getPathnameForLanguage,
|
|
42
|
+
delegatedProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
43
|
+
var languagesQuery = useLanguagesQuery();
|
|
44
|
+
var menuQuery = useMenuQuery({
|
|
45
|
+
variables: {
|
|
46
|
+
id: menuName
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
var languages = (_languagesQuery$data$ = (_languagesQuery$data = languagesQuery.data) === null || _languagesQuery$data === void 0 || (_languagesQuery$data = _languagesQuery$data.languages) === null || _languagesQuery$data === void 0 ? void 0 : _languagesQuery$data.filter(function (language) {
|
|
50
|
+
return !!language;
|
|
51
|
+
})) !== null && _languagesQuery$data$ !== void 0 ? _languagesQuery$data$ : undefined;
|
|
52
|
+
var menu = (_menuQuery$data = menuQuery.data) === null || _menuQuery$data === void 0 ? void 0 : _menuQuery$data.menu;
|
|
53
|
+
return /*#__PURE__*/React__default.createElement(Navigation$1, _objectSpread2(_objectSpread2({}, delegatedProps), {}, {
|
|
54
|
+
languages: languages,
|
|
55
|
+
menu: menu,
|
|
56
|
+
getPathnameForLanguage: getPathnameForLanguage
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
var useNotificationQuery = makeQueryWithApolloClientFromConfig(useNotificationQuery$1);
|
|
61
|
+
|
|
62
|
+
var languageCodeEnumToNotificationLanguageMap = _defineProperty(_defineProperty(_defineProperty({}, LanguageCodeEnum.Fi, 'fi'), LanguageCodeEnum.Sv, 'sv'), LanguageCodeEnum.En, 'en');
|
|
63
|
+
function Notification(props) {
|
|
64
|
+
var _useConfig = useConfig(),
|
|
65
|
+
currentLanguageCode = _useConfig.currentLanguageCode;
|
|
66
|
+
var _useNotificationQuery = useNotificationQuery({
|
|
67
|
+
variables: {
|
|
68
|
+
language: languageCodeEnumToNotificationLanguageMap[currentLanguageCode]
|
|
69
|
+
}
|
|
70
|
+
}),
|
|
71
|
+
data = _useNotificationQuery.data;
|
|
72
|
+
return /*#__PURE__*/React__default.createElement(Notification$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
73
|
+
notification: data === null || data === void 0 ? void 0 : data.notification
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
var apolloPageContext = /*#__PURE__*/createContext({});
|
|
78
|
+
|
|
79
|
+
var ApolloPageContextProvider = apolloPageContext.Provider;
|
|
80
|
+
|
|
81
|
+
var _excluded$2 = ["uri", "pageTemplate"];
|
|
82
|
+
function Page(_ref) {
|
|
83
|
+
var _ref$uri = _ref.uri,
|
|
84
|
+
uri = _ref$uri === void 0 ? '' : _ref$uri,
|
|
85
|
+
_ref$pageTemplate = _ref.pageTemplate,
|
|
86
|
+
pageTemplate = _ref$pageTemplate === void 0 ? TemplateEnum.FrontPage : _ref$pageTemplate,
|
|
87
|
+
delegatedProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
88
|
+
var pageContextValue = React__default.useMemo(function () {
|
|
89
|
+
return {
|
|
90
|
+
uri: uri,
|
|
91
|
+
pageTemplate: pageTemplate
|
|
92
|
+
};
|
|
93
|
+
}, [uri, pageTemplate]);
|
|
94
|
+
return /*#__PURE__*/React__default.createElement(ApolloPageContextProvider, {
|
|
95
|
+
value: pageContextValue
|
|
96
|
+
}, /*#__PURE__*/React__default.createElement(Page$1, _objectSpread2({}, delegatedProps)));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
var usePageQuery = makeQueryWithApolloClientFromConfig(usePageQuery$1);
|
|
100
|
+
|
|
101
|
+
var css_248z$1 = ".pageContent-module_loadingSpinnerContainer__B-SXR{align-items:center;display:flex;height:100%;justify-content:center;width:100%}";
|
|
102
|
+
var styles$1 = {"loadingSpinnerContainer":"pageContent-module_loadingSpinnerContainer__B-SXR"};
|
|
103
|
+
styleInject(css_248z$1);
|
|
104
|
+
|
|
105
|
+
function useApolloPageContext() {
|
|
106
|
+
return useContext(apolloPageContext);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
var _excluded$1 = ["notFoundPageContent"];
|
|
110
|
+
function PageContent(_ref) {
|
|
111
|
+
var _pageQuery$data, _pageQuery$data2;
|
|
112
|
+
var _ref$notFoundPageCont = _ref.notFoundPageContent,
|
|
113
|
+
notFoundPageContent = _ref$notFoundPageCont === void 0 ? (/*#__PURE__*/React__default.createElement("div", null, "404 - Page not found. Provide the notFoundPageContent prop to PageContent to replace this message.")) : _ref$notFoundPageCont,
|
|
114
|
+
delegatedProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
115
|
+
var _useApolloPageContext = useApolloPageContext(),
|
|
116
|
+
uri = _useApolloPageContext.uri;
|
|
117
|
+
var pageQuery = usePageQuery({
|
|
118
|
+
variables: {
|
|
119
|
+
id: uri !== null && uri !== void 0 ? uri : ''
|
|
120
|
+
},
|
|
121
|
+
skip: !uri
|
|
122
|
+
});
|
|
123
|
+
if (pageQuery.loading) {
|
|
124
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
125
|
+
id: MAIN_CONTENT_ID,
|
|
126
|
+
className: styles$1.loadingSpinnerContainer
|
|
127
|
+
}, /*#__PURE__*/React__default.createElement(LoadingSpinner, {
|
|
128
|
+
multicolor: true
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
var pageNotFound = (pageQuery === null || pageQuery === void 0 || (_pageQuery$data = pageQuery.data) === null || _pageQuery$data === void 0 ? void 0 : _pageQuery$data.page) === null;
|
|
132
|
+
if (pageNotFound) {
|
|
133
|
+
return notFoundPageContent;
|
|
134
|
+
}
|
|
135
|
+
return /*#__PURE__*/React__default.createElement(PageContent$1, _objectSpread2(_objectSpread2({}, delegatedProps), {}, {
|
|
136
|
+
page: pageQuery === null || pageQuery === void 0 || (_pageQuery$data2 = pageQuery.data) === null || _pageQuery$data2 === void 0 ? void 0 : _pageQuery$data2.page
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
var usePageByTemplateQuery = makeQueryWithApolloClientFromConfig(usePageByTemplateQuery$1);
|
|
141
|
+
|
|
142
|
+
var css_248z = ".pageWithTemplateContent-module_loadingSpinnerContainer__EJWBr{align-items:center;display:flex;height:100%;justify-content:center;width:100%}";
|
|
143
|
+
var styles = {"loadingSpinnerContainer":"pageWithTemplateContent-module_loadingSpinnerContainer__EJWBr"};
|
|
144
|
+
styleInject(css_248z);
|
|
145
|
+
|
|
146
|
+
var _excluded = ["language", "notFoundPageContent"];
|
|
147
|
+
function PageWithTemplateContent(_ref) {
|
|
148
|
+
var _pageByTemplateQuery$, _pageByTemplateQuery$2;
|
|
149
|
+
var language = _ref.language,
|
|
150
|
+
_ref$notFoundPageCont = _ref.notFoundPageContent,
|
|
151
|
+
notFoundPageContent = _ref$notFoundPageCont === void 0 ? (/*#__PURE__*/React__default.createElement("div", null, "404 - Page not found. Provide the notFoundPageContent prop to PageContent to replace this message.")) : _ref$notFoundPageCont,
|
|
152
|
+
delegatedProps = _objectWithoutProperties(_ref, _excluded);
|
|
153
|
+
var _useApolloPageContext = useApolloPageContext(),
|
|
154
|
+
template = _useApolloPageContext.template;
|
|
155
|
+
var pageByTemplateQuery = usePageByTemplateQuery({
|
|
156
|
+
variables: {
|
|
157
|
+
template: template,
|
|
158
|
+
language: language
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
if (pageByTemplateQuery.loading) {
|
|
162
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
163
|
+
className: styles.loadingSpinnerContainer
|
|
164
|
+
}, /*#__PURE__*/React__default.createElement(LoadingSpinner, {
|
|
165
|
+
multicolor: true
|
|
166
|
+
}));
|
|
167
|
+
}
|
|
168
|
+
var pageNotFound = (pageByTemplateQuery === null || pageByTemplateQuery === void 0 || (_pageByTemplateQuery$ = pageByTemplateQuery.data) === null || _pageByTemplateQuery$ === void 0 ? void 0 : _pageByTemplateQuery$.pageByTemplate) === null;
|
|
169
|
+
if (pageNotFound) {
|
|
170
|
+
return notFoundPageContent;
|
|
171
|
+
}
|
|
172
|
+
return /*#__PURE__*/React__default.createElement(PageContent$1, _objectSpread2(_objectSpread2({}, delegatedProps), {}, {
|
|
173
|
+
page: pageByTemplateQuery === null || pageByTemplateQuery === void 0 || (_pageByTemplateQuery$2 = pageByTemplateQuery.data) === null || _pageByTemplateQuery$2 === void 0 ? void 0 : _pageByTemplateQuery$2.pageByTemplate
|
|
174
|
+
}));
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
var usePagesQuery = makeQueryWithApolloClientFromConfig(usePagesQuery$1);
|
|
178
|
+
|
|
179
|
+
var useArticleQuery = makeQueryWithApolloClientFromConfig(useArticleQuery$1);
|
|
180
|
+
|
|
181
|
+
var usePostsQuery = makeQueryWithApolloClientFromConfig(usePostsQuery$1);
|
|
182
|
+
|
|
183
|
+
var useCategoryQuery = makeQueryWithApolloClientFromConfig(useCategoryQuery$1);
|
|
184
|
+
|
|
185
|
+
var useCategoriesQuery = makeQueryWithApolloClientFromConfig(useCategoriesQuery$1);
|
|
186
|
+
|
|
187
|
+
var useTagQuery = makeQueryWithApolloClientFromConfig(useTagQuery$1);
|
|
188
|
+
|
|
189
|
+
var useTagsQuery = makeQueryWithApolloClientFromConfig(useTagsQuery$1);
|
|
190
|
+
|
|
191
|
+
var useLandingPageQuery = makeQueryWithApolloClientFromConfig(useLandingPageQuery$1);
|
|
192
|
+
|
|
193
|
+
export { LanguageCodeEnum, Navigation, Notification, Page, PageContent, PageWithTemplateContent, useArticleQuery, useCategoriesQuery, useCategoryQuery, useLandingPageQuery, useLanguagesQuery, useMenuQuery, usePageByTemplateQuery, usePageQuery, usePagesQuery, usePostsQuery, useTagQuery, useTagsQuery };
|
|
194
|
+
//# sourceMappingURL=apollo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apollo.js","sources":["../src/core/configProvider/useApolloClientFromConfig.ts","../src/common/headlessService/makeQueryWithApolloClientFromConfig.ts","../src/common/headlessService/languages.ts","../src/common/headlessService/menu.ts","../src/apollo/navigation/Navigation.tsx","../src/common/headlessService/notification.ts","../src/apollo/notification/Notification.tsx","../src/apollo/page/apolloPageContext.tsx","../src/apollo/page/ApolloPageContextProvider.tsx","../src/apollo/page/Page.tsx","../src/common/headlessService/page.ts","../src/apollo/page/useApolloPageContext.tsx","../src/apollo/pageContent/PageContent.tsx","../src/common/headlessService/pageByTemplate.ts","../src/apollo/pageWithTemplateContent/PageWithTemplateContent.tsx","../src/common/headlessService/pages.ts","../src/common/headlessService/article.ts","../src/common/headlessService/articles.ts","../src/common/headlessService/category.ts","../src/common/headlessService/categories.ts","../src/common/headlessService/tag.ts","../src/common/headlessService/tags.ts","../src/common/headlessService/landingPage.ts"],"sourcesContent":["import { useConfig } from './useConfig';\n\nexport default function useQueryWithApolloClientFromConfig() {\n const { apolloClient } = useConfig();\n\n if (!apolloClient) {\n throw Error(\n 'Error: useQueryWithApolloClientFromConfig - When using components from the apollo sub module, you must include a compatible apollo client in the apolloClient field of the config object you provide with ConfigProvider',\n );\n }\n\n return apolloClient;\n}\n","import type * as Apollo from '@apollo/client';\n\nimport useApolloClientFromConfig from '../../core/configProvider/useApolloClientFromConfig';\nimport type { Exact } from './__generated__';\n\ntype UseQuery<Q, V extends Apollo.OperationVariables> = (\n baseOptions: Apollo.QueryHookOptions<Q, V> &\n (\n | { variables: Exact<{ id: string }>; skip?: boolean | undefined }\n | { skip: boolean }\n ),\n) => Apollo.QueryResult<Q, V>;\n\nexport default function makeQueryWithApolloClientFromConfig<\n Q,\n V extends Apollo.OperationVariables,\n>(useQuery: UseQuery<Q, V>) {\n return (baseOptions: Apollo.QueryHookOptions<Q, V> = {}) => {\n const apolloClientFromConfig = useApolloClientFromConfig();\n\n return useQuery({\n client: apolloClientFromConfig,\n ...baseOptions,\n skip: baseOptions.skip || false,\n });\n };\n}\n","import makeQueryWithApolloClientFromConfig from './makeQueryWithApolloClientFromConfig';\nimport type { LanguagesQuery, LanguagesQueryVariables } from './__generated__';\nimport { useLanguagesQuery as useLanguagesQueryWithoutClient } from './__generated__';\n\nexport const useLanguagesQuery = makeQueryWithApolloClientFromConfig<\n LanguagesQuery,\n LanguagesQueryVariables\n>(useLanguagesQueryWithoutClient);\n\nexport type { LanguagesQuery, LanguagesQueryVariables } from './__generated__';\nexport { LanguagesDocument, LanguageCodeEnum } from './__generated__';\n","import makeQueryWithApolloClientFromConfig from './makeQueryWithApolloClientFromConfig';\nimport type { MenuQuery, MenuQueryVariables } from './__generated__';\nimport { useMenuQuery as useMenuQueryWithoutClient } from './__generated__';\n\nexport const useMenuQuery = makeQueryWithApolloClientFromConfig<\n MenuQuery,\n MenuQueryVariables\n>(useMenuQueryWithoutClient);\n\nexport type { MenuQuery, MenuQueryVariables } from './__generated__';\nexport { MenuDocument } from './__generated__';\n","import React from 'react';\n\nimport { useLanguagesQuery } from '../../common/headlessService/languages';\nimport { useMenuQuery } from '../../common/headlessService/menu';\nimport type { NavigationProps as NavigationPropsWithoutData } from '../../core/navigation/Navigation';\nimport { Navigation as NavigationWithoutData } from '../../core/navigation/Navigation';\n\nexport type NavigationProps = Omit<\n NavigationPropsWithoutData,\n 'menu' | 'languages' | 'getPathnameForLanguage'\n> & {\n /**\n * The name of the menu in Wordpress headless CMS.\n */\n menuName: string;\n /**\n * Gets language specific path for navigation item.\n */\n getPathnameForLanguage: NavigationPropsWithoutData['getPathnameForLanguage'];\n};\n\nexport function Navigation({\n menuName,\n getPathnameForLanguage,\n ...delegatedProps\n}: NavigationProps) {\n const languagesQuery = useLanguagesQuery();\n const menuQuery = useMenuQuery({\n variables: {\n id: menuName,\n },\n });\n const languages =\n languagesQuery.data?.languages?.filter((language) => !!language) ??\n undefined;\n const menu = menuQuery.data?.menu;\n return (\n <NavigationWithoutData\n {...delegatedProps}\n languages={languages}\n menu={menu}\n getPathnameForLanguage={getPathnameForLanguage}\n />\n );\n}\n","import makeQueryWithApolloClientFromConfig from './makeQueryWithApolloClientFromConfig';\nimport type {\n NotificationQuery,\n NotificationQueryVariables,\n} from './__generated__';\nimport { useNotificationQuery as useNotificationQueryWithoutClient } from './__generated__';\n\nexport const useNotificationQuery = makeQueryWithApolloClientFromConfig<\n NotificationQuery,\n NotificationQueryVariables\n>(useNotificationQueryWithoutClient);\n\nexport type {\n NotificationQuery,\n NotificationQueryVariables,\n NotificationDocument,\n} from './__generated__';\n","import React from 'react';\n\nimport { LanguageCodeEnum } from '../../common/headlessService/types';\nimport { useNotificationQuery } from '../../common/headlessService/notification';\nimport { useConfig } from '../../core/configProvider/useConfig';\nimport type { NotificationProps } from '../../core/notification/Notification';\nimport { Notification as NotificationWithoutData } from '../../core/notification/Notification';\n\nconst languageCodeEnumToNotificationLanguageMap = {\n [LanguageCodeEnum.Fi]: 'fi',\n [LanguageCodeEnum.Sv]: 'sv',\n [LanguageCodeEnum.En]: 'en',\n} as const;\n\nexport type Props = Exclude<NotificationProps, 'notification'>;\n\nexport function Notification(props: Props) {\n const { currentLanguageCode } = useConfig();\n const { data } = useNotificationQuery({\n variables: {\n language: languageCodeEnumToNotificationLanguageMap[currentLanguageCode],\n },\n });\n\n return (\n <NotificationWithoutData {...props} notification={data?.notification} />\n );\n}\n","import { createContext } from 'react';\n\nimport type { TemplateEnum } from '../../core';\n\ntype ApolloPageContext = {\n /**\n * Uri of the page.\n */\n uri?: string;\n /**\n * Page tyoe template.\n */\n template?: TemplateEnum;\n};\n\nconst apolloPageContext = createContext<ApolloPageContext>({});\n\nexport default apolloPageContext;\n","import apolloPageContext from './apolloPageContext';\n\nexport default apolloPageContext.Provider;\n","import React from 'react';\n\nimport { TemplateEnum } from '../../core';\nimport type { PageProps as PagePropsWithoutData } from '../../core/page/Page';\nimport { Page as PageWithoutData } from '../../core/page/Page';\nimport ApolloPageContextProvider from './ApolloPageContextProvider';\n\nexport type PageProps = PagePropsWithoutData & {\n /**\n * Uri of the page.\n */\n uri?: string;\n /**\n * Page template value.\n */\n pageTemplate?: TemplateEnum;\n};\n\nexport function Page({\n uri = '',\n pageTemplate = TemplateEnum.FrontPage,\n ...delegatedProps\n}: PageProps) {\n const pageContextValue = React.useMemo(\n () => ({\n uri,\n pageTemplate,\n }),\n [uri, pageTemplate],\n );\n\n return (\n <ApolloPageContextProvider value={pageContextValue}>\n <PageWithoutData {...delegatedProps} />\n </ApolloPageContextProvider>\n );\n}\n","import makeQueryWithApolloClientFromConfig from './makeQueryWithApolloClientFromConfig';\nimport type { PageQuery, PageQueryVariables } from './__generated__';\nimport { usePageQuery as usePageQueryWithoutClient } from './__generated__';\n\nexport const usePageQuery = makeQueryWithApolloClientFromConfig<\n PageQuery,\n PageQueryVariables\n>(usePageQueryWithoutClient);\n\nexport type { PageQuery, PageQueryVariables } from './__generated__';\nexport { PageDocument } from './__generated__';\n","import { useContext } from 'react';\n\nimport apolloPageContext from './apolloPageContext';\n\nexport default function useApolloPageContext() {\n return useContext(apolloPageContext);\n}\n","import React from 'react';\nimport { LoadingSpinner } from 'hds-react';\n\nimport { usePageQuery } from '../../common/headlessService/page';\nimport { PageContent as PageContentWithoutData } from '../../core/pageContent/PageContent';\nimport type { PageContentProps as PageContentPropsWithoutData } from '../../core/pageContent/types';\nimport styles from './pageContent.module.scss';\nimport useApolloPageContext from '../page/useApolloPageContext';\nimport { MAIN_CONTENT_ID } from '../../common/constants';\n\nexport type PageProps = Omit<PageContentPropsWithoutData, 'page'> & {\n /**\n * Page content if data not found or missing from cms.\n */\n notFoundPageContent?: JSX.Element;\n // All other props\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [x: string]: any;\n};\n\nexport function PageContent({\n notFoundPageContent = (\n <div>\n 404 - Page not found. Provide the notFoundPageContent prop to PageContent\n to replace this message.\n </div>\n ),\n ...delegatedProps\n}: PageProps) {\n const { uri } = useApolloPageContext();\n const pageQuery = usePageQuery({\n variables: {\n id: uri ?? '',\n },\n skip: !uri,\n });\n\n if (pageQuery.loading) {\n return (\n <div id={MAIN_CONTENT_ID} className={styles.loadingSpinnerContainer}>\n <LoadingSpinner multicolor />\n </div>\n );\n }\n\n const pageNotFound = pageQuery?.data?.page === null;\n\n if (pageNotFound) {\n return notFoundPageContent;\n }\n\n return (\n <PageContentWithoutData {...delegatedProps} page={pageQuery?.data?.page} />\n );\n}\n","import makeQueryWithApolloClientFromConfig from './makeQueryWithApolloClientFromConfig';\nimport type {\n PageByTemplateQuery,\n PageByTemplateQueryVariables,\n} from './__generated__';\nimport { usePageByTemplateQuery as usePageByTemplateQueryWithoutClient } from './__generated__';\n\nexport const usePageByTemplateQuery = makeQueryWithApolloClientFromConfig<\n PageByTemplateQuery,\n PageByTemplateQueryVariables\n>(usePageByTemplateQueryWithoutClient);\n\nexport {\n type PageByTemplateQuery,\n type PageByTemplateQueryVariables,\n PageByTemplateDocument,\n} from './__generated__';\n","import React from 'react';\nimport { LoadingSpinner } from 'hds-react';\n\nimport { usePageByTemplateQuery } from '../../common/headlessService/pageByTemplate';\nimport { PageContent as PageContentWithoutData } from '../../core/pageContent/PageContent';\nimport type { PageContentProps as PageContentPropsWithoutData } from '../../core/pageContent/types';\nimport styles from './pageWithTemplateContent.module.scss';\nimport useApolloPageContext from '../page/useApolloPageContext';\nimport type { LanguageCodeEnum } from '../../core';\n\nexport type PageProps = Omit<PageContentPropsWithoutData, 'page'> & {\n /**\n * The language of the page.\n */\n language: LanguageCodeEnum;\n /**\n * Page content if data not found or missing from cms.\n */\n notFoundPageContent?: JSX.Element;\n // All other props\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [x: string]: any;\n};\n\nexport function PageWithTemplateContent({\n language,\n notFoundPageContent = (\n <div>\n 404 - Page not found. Provide the notFoundPageContent prop to PageContent\n to replace this message.\n </div>\n ),\n ...delegatedProps\n}: PageProps) {\n const { template } = useApolloPageContext();\n const pageByTemplateQuery = usePageByTemplateQuery({\n variables: {\n template,\n language,\n },\n });\n\n if (pageByTemplateQuery.loading) {\n return (\n <div className={styles.loadingSpinnerContainer}>\n <LoadingSpinner multicolor />\n </div>\n );\n }\n\n const pageNotFound = pageByTemplateQuery?.data?.pageByTemplate === null;\n\n if (pageNotFound) {\n return notFoundPageContent;\n }\n\n return (\n <PageContentWithoutData\n {...delegatedProps}\n page={pageByTemplateQuery?.data?.pageByTemplate}\n />\n );\n}\n","import makeQueryWithApolloClientFromConfig from './makeQueryWithApolloClientFromConfig';\nimport type { PagesQuery, PagesQueryVariables } from './__generated__';\nimport { usePagesQuery as usePagesQueryWithoutClient } from './__generated__';\n\nexport const usePagesQuery = makeQueryWithApolloClientFromConfig<\n PagesQuery,\n PagesQueryVariables\n>(usePagesQueryWithoutClient);\n\nexport {\n type PagesQuery,\n type PagesQueryVariables,\n PagesDocument,\n} from './__generated__';\n","import makeQueryWithApolloClientFromConfig from './makeQueryWithApolloClientFromConfig';\nimport type { ArticleQuery, ArticleQueryVariables } from './__generated__';\nimport { useArticleQuery as useArticleQueryWithoutClient } from './__generated__';\n\nexport const useArticleQuery = makeQueryWithApolloClientFromConfig<\n ArticleQuery,\n ArticleQueryVariables\n>(useArticleQueryWithoutClient);\n\nexport {\n ArticleQuery,\n ArticleQueryVariables,\n ArticleDocument,\n} from './__generated__';\n","import makeQueryWithApolloClientFromConfig from './makeQueryWithApolloClientFromConfig';\nimport type { PostsQuery, PostsQueryVariables } from './__generated__';\nimport { usePostsQuery as usePostsQueryWithoutClient } from './__generated__';\n\nexport const usePostsQuery = makeQueryWithApolloClientFromConfig<\n PostsQuery,\n PostsQueryVariables\n>(usePostsQueryWithoutClient);\n\nexport {\n type PostsQuery,\n type PostsQueryVariables,\n PostsDocument,\n} from './__generated__';\n","import makeQueryWithApolloClientFromConfig from './makeQueryWithApolloClientFromConfig';\nimport type { CategoryQuery, CategoryQueryVariables } from './__generated__';\nimport { useCategoryQuery as useCategoryQueryWithoutClient } from './__generated__';\n\nexport const useCategoryQuery = makeQueryWithApolloClientFromConfig<\n CategoryQuery,\n CategoryQueryVariables\n>(useCategoryQueryWithoutClient);\n\nexport {\n type CategoryQuery,\n type CategoryQueryVariables,\n CategoryDocument,\n} from './__generated__';\n","import makeQueryWithApolloClientFromConfig from './makeQueryWithApolloClientFromConfig';\nimport type {\n CategoriesQuery,\n CategoriesQueryVariables,\n} from './__generated__';\nimport { useCategoriesQuery as useCategoriesQueryWithoutClient } from './__generated__';\n\nexport const useCategoriesQuery = makeQueryWithApolloClientFromConfig<\n CategoriesQuery,\n CategoriesQueryVariables\n>(useCategoriesQueryWithoutClient);\n\nexport {\n type CategoriesQuery,\n type CategoriesQueryVariables,\n CategoriesDocument,\n} from './__generated__';\n","import makeQueryWithApolloClientFromConfig from './makeQueryWithApolloClientFromConfig';\nimport type { TagQuery, TagQueryVariables } from './__generated__';\nimport { useTagQuery as useTagQueryWithoutClient } from './__generated__';\n\nexport const useTagQuery = makeQueryWithApolloClientFromConfig<\n TagQuery,\n TagQueryVariables\n>(useTagQueryWithoutClient);\n\nexport {\n type TagQuery,\n type TagQueryVariables,\n TagDocument,\n} from './__generated__';\n","import makeQueryWithApolloClientFromConfig from './makeQueryWithApolloClientFromConfig';\nimport type { TagsQuery, TagsQueryVariables } from './__generated__';\nimport { useTagsQuery as useTagsQueryWithoutClient } from './__generated__';\n\nexport const useTagsQuery = makeQueryWithApolloClientFromConfig<\n TagsQuery,\n TagsQueryVariables\n>(useTagsQueryWithoutClient);\n\nexport {\n type TagsQuery,\n type TagsQueryVariables,\n TagsDocument,\n} from './__generated__';\n","import makeQueryWithApolloClientFromConfig from './makeQueryWithApolloClientFromConfig';\nimport type {\n LandingPageQuery,\n LandingPageQueryVariables,\n} from './__generated__';\nimport { useLandingPageQuery as useLandingPageQueryWithoutClient } from './__generated__';\n\nexport const useLandingPageQuery = makeQueryWithApolloClientFromConfig<\n LandingPageQuery,\n LandingPageQueryVariables\n>(useLandingPageQueryWithoutClient);\n\nexport {\n type LandingPageQuery,\n type LandingPageQueryVariables,\n LandingPageDocument,\n} from './__generated__';\n"],"names":["useQueryWithApolloClientFromConfig","_useConfig","useConfig","apolloClient","Error","makeQueryWithApolloClientFromConfig","useQuery","baseOptions","arguments","length","undefined","apolloClientFromConfig","useApolloClientFromConfig","_objectSpread","client","skip","useLanguagesQuery","useLanguagesQueryWithoutClient","useMenuQuery","useMenuQueryWithoutClient","Navigation","_ref","_languagesQuery$data$","_languagesQuery$data","_menuQuery$data","menuName","getPathnameForLanguage","delegatedProps","_objectWithoutProperties","_excluded","languagesQuery","menuQuery","variables","id","languages","data","filter","language","menu","React","createElement","NavigationWithoutData","useNotificationQuery","useNotificationQueryWithoutClient","languageCodeEnumToNotificationLanguageMap","_defineProperty","LanguageCodeEnum","Fi","Sv","En","Notification","props","currentLanguageCode","_useNotificationQuery","NotificationWithoutData","notification","apolloPageContext","createContext","Provider","Page","_ref$uri","uri","_ref$pageTemplate","pageTemplate","TemplateEnum","FrontPage","pageContextValue","useMemo","ApolloPageContextProvider","value","PageWithoutData","usePageQuery","usePageQueryWithoutClient","useApolloPageContext","useContext","PageContent","_pageQuery$data","_pageQuery$data2","_ref$notFoundPageCont","notFoundPageContent","_useApolloPageContext","pageQuery","loading","MAIN_CONTENT_ID","className","styles","loadingSpinnerContainer","LoadingSpinner","multicolor","pageNotFound","page","PageContentWithoutData","usePageByTemplateQuery","usePageByTemplateQueryWithoutClient","PageWithTemplateContent","_pageByTemplateQuery$","_pageByTemplateQuery$2","template","pageByTemplateQuery","pageByTemplate","usePagesQuery","usePagesQueryWithoutClient","useArticleQuery","useArticleQueryWithoutClient","usePostsQuery","usePostsQueryWithoutClient","useCategoryQuery","useCategoryQueryWithoutClient","useCategoriesQuery","useCategoriesQueryWithoutClient","useTagQuery","useTagQueryWithoutClient","useTagsQuery","useTagsQueryWithoutClient","useLandingPageQuery","useLandingPageQueryWithoutClient"],"mappings":";;;;;;;;;;;AAEc,SAAUA,kCAAkCA,GAAA;AACxD,EAAA,IAAAC,UAAA,GAAyBC,SAAS,EAAE;IAA5BC,YAAY,GAAAF,UAAA,CAAZE,YAAY;EAEpB,IAAI,CAACA,YAAY,EAAE;IACjB,MAAMC,KAAK,CACT,0NAA0N,CAC3N;AACH,EAAA;AAEA,EAAA,OAAOD,YAAY;AACrB;;ACCc,SAAUE,mCAAmCA,CAGzDC,QAAwB,EAAA;AACxB,EAAA,OAAO,YAAoD;AAAA,IAAA,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