@city-of-helsinki/react-helsinki-headless-cms 3.0.0-rc.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +2 -2
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1432 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { C as Config, A as ArticleType, P as PageType, a as CardProps, E as EventType, V as VenueType, b as PageModule, c as CollectionType, d as CollectionProps, B as BreadcrumbUnionType, M as ModuleItemTypeEnum, e as PageSidebarModule, f as CollectionItemType, g as EventSelectionCollectionType, h as EventSearchCollectionType, L as LocationsSelectionCollectionType, i as LinkItem, j as PageContentProps, k as CarouselProps, S as SearchTag, l as Card } from './configContext-BjJVyERb.js';
|
|
4
|
+
export { o as Articles, r as Categories, s as Category, F as Collection, J as EventSearchCollection, K as EventSearchCollectionProps, G as EventSelectionCollection, I as EventSelectionCollectionProps, W as GeneralCollectionType, H as HtmlToReact, Q as LocationsSelectionCollection, R as LocationsSelectionCollectionProps, m as Menu, N as Navigation, u as NavigationProps, v as Notification, w as NotificationProps, x as Page, q as PageChildren, z as PageContentLayout, D as PageContentLayoutProps, y as PageProps, p as Pages, n as SidebarContent, T as Tag, t as Tags, O as getEventCollectionCards, U as getLocationsCollectionCards } from './configContext-BjJVyERb.js';
|
|
5
|
+
import { L as LanguageCodeEnum, a as LayoutContentFragment, b as LayoutCardFragment, c as LayoutCardsFragment, d as LayoutImageFragment, e as LayoutImageGalleryFragment, f as LayoutStepsFragment, g as LayoutSocialMediaFeedFragment, h as LayoutArticlesFragment, i as LayoutPagesFragment, j as LayoutArticlesCarouselFragment, k as LayoutPagesCarouselFragment, E as EventSearchFragment, l as EventSearchCarouselFragment, m as EventSelectedFragment, n as EventSelectedCarouselFragment, o as LocationsSelectedFragment, p as LocationsSelectedCarouselFragment, q as LayoutLinkListFragment, r as LanguageFragment } from './__generated__-mcycL1jB.js';
|
|
6
|
+
export { s as LanguageCodeFilterEnum, M as MenuItem, t as MenuNodeIdTypeEnum, N as NotificationType, P as PageIdType, T as TemplateEnum } from './__generated__-mcycL1jB.js';
|
|
7
|
+
import { BreadcrumbListItem, TagProps, LanguageOption } from 'hds-react';
|
|
8
|
+
import '@apollo/client';
|
|
9
|
+
import 'isomorphic-dompurify';
|
|
10
|
+
|
|
11
|
+
type ConfigProviderProps = {
|
|
12
|
+
/**
|
|
13
|
+
* Global library configuration.
|
|
14
|
+
*/
|
|
15
|
+
config: Config;
|
|
16
|
+
/**
|
|
17
|
+
* Additional children to render inside the Config Provider.
|
|
18
|
+
*/
|
|
19
|
+
children: React__default.ReactNode;
|
|
20
|
+
};
|
|
21
|
+
declare function ConfigProvider({ config: userConfig, children, }: ConfigProviderProps): React__default.JSX.Element;
|
|
22
|
+
|
|
23
|
+
declare function getCollections(pageModules: PageModule[], isEventSearchCollectionsEnables?: boolean): CollectionType[];
|
|
24
|
+
declare function getArticlePageCardProps(item: ArticleType | PageType): CardProps;
|
|
25
|
+
declare function getEventCardProps(item: EventType, organisationPrefixes: string[], locale?: string): CardProps;
|
|
26
|
+
declare function getLocationCardProps(item: VenueType): CardProps;
|
|
27
|
+
declare function getCollectionCards(collection: CollectionType, organisationPrefixes: string[], locale?: string): CardProps[];
|
|
28
|
+
declare function getCollectionUIType(collection: CollectionType): CollectionProps['type'];
|
|
29
|
+
/**
|
|
30
|
+
* Create Breadcrumb list items from the pages' and articles' breadcrumbs.
|
|
31
|
+
* The duplicated root (and other duplicated links) are removed.
|
|
32
|
+
* @param page a page or an article
|
|
33
|
+
* @returns an unique list of breadcrumb list items
|
|
34
|
+
* */
|
|
35
|
+
declare const getBreadcrumbsFromPage: (page: PageType | ArticleType) => BreadcrumbListItem[];
|
|
36
|
+
declare function disableBreadcrumbsLastLink(breadcrumbs: BreadcrumbListItem[]): BreadcrumbListItem[];
|
|
37
|
+
declare function getBreadcrumbListItems(breadcrumbs: BreadcrumbUnionType, forceLastItemWithoutLink?: boolean): BreadcrumbListItem[];
|
|
38
|
+
|
|
39
|
+
declare const defaultConfig: {
|
|
40
|
+
readonly siteName: "Test site";
|
|
41
|
+
readonly internalHrefOrigins: [];
|
|
42
|
+
readonly currentLanguageCode: LanguageCodeEnum.Fi;
|
|
43
|
+
readonly fallbackImageUrls: ["./images/event_placeholder_A.jpg", "./images/event_placeholder_B.jpg", "./images/event_placeholder_C.jpg", "./images/event_placeholder_D.jpg"];
|
|
44
|
+
readonly organisationPrefixes: [];
|
|
45
|
+
readonly fallbackTranslations: Record<"headerActionBarLogoAlt" | "headerActionBarLogoAriaLabel" | "headerActionBarLogoSrc" | "headerUniversalBarPrimaryLinkHref" | "headerUniversalBarPrimaryLinkText" | "carouselRegionLabelText" | "carouselSliderRegionLabelText" | "carouselSliderDotNavLabelText", {
|
|
46
|
+
EN: string;
|
|
47
|
+
FI: string;
|
|
48
|
+
SV: string;
|
|
49
|
+
}>;
|
|
50
|
+
readonly copy: {
|
|
51
|
+
readonly breadcrumbNavigationLabel: "Breadcrumb navigation";
|
|
52
|
+
readonly breadcrumbListLabel: "breadcrumbs";
|
|
53
|
+
readonly menuButtonLabel: "Menu";
|
|
54
|
+
readonly menuToggleAriaLabel: "toggle menu";
|
|
55
|
+
readonly skipToContentLabel: "skip to content";
|
|
56
|
+
readonly openInExternalDomainAriaLabel: "Opens a different website.";
|
|
57
|
+
readonly openInNewTabAriaLabel: "Opens in a new tab.";
|
|
58
|
+
readonly closeButtonLabelText: "close";
|
|
59
|
+
readonly loadMoreButtonLabelText: "Load more";
|
|
60
|
+
readonly showAllText: "Show all";
|
|
61
|
+
readonly next: "Next";
|
|
62
|
+
readonly previous: "Previous";
|
|
63
|
+
readonly archiveSearch: {
|
|
64
|
+
readonly title: "Articles search";
|
|
65
|
+
readonly searchTextPlaceholder: "Search text";
|
|
66
|
+
readonly searchButtonLabelText: "Search";
|
|
67
|
+
readonly loadMoreButtonLabelText: "Load more";
|
|
68
|
+
readonly noResultsTitle: "No results found";
|
|
69
|
+
readonly noResultsText: "Please try to search something else";
|
|
70
|
+
readonly clearAll: "Clear filters";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
readonly components: {
|
|
74
|
+
readonly A: (props: React__default.AnchorHTMLAttributes<HTMLAnchorElement>) => React__default.JSX.Element;
|
|
75
|
+
readonly Img: (props: React__default.ImgHTMLAttributes<HTMLImageElement>) => React__default.JSX.Element;
|
|
76
|
+
};
|
|
77
|
+
readonly utils: {
|
|
78
|
+
readonly getArticlePageCardProps: typeof getArticlePageCardProps;
|
|
79
|
+
readonly getEventCardProps: typeof getEventCardProps;
|
|
80
|
+
readonly getLocationCardProps: typeof getLocationCardProps;
|
|
81
|
+
readonly getIsHrefExternal: (href: string) => boolean;
|
|
82
|
+
readonly getRoutedInternalHref: (link?: string | null, _type?: ModuleItemTypeEnum) => string;
|
|
83
|
+
readonly redirectToUrl: (url: string) => null;
|
|
84
|
+
};
|
|
85
|
+
readonly meta: {
|
|
86
|
+
readonly appleTouchIconUrl: "apple-touch-icon.png";
|
|
87
|
+
readonly favIconUrl: "/favicon.ico";
|
|
88
|
+
readonly favIconSvgUrl: "/favicon.svg";
|
|
89
|
+
readonly manifestUrl: "/manifest.webmanifest";
|
|
90
|
+
};
|
|
91
|
+
readonly htmlSanitizer: {
|
|
92
|
+
readonly allowedUnsafeTags: [];
|
|
93
|
+
readonly trustedOrigins: [];
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
declare function useConfig(): Config;
|
|
98
|
+
|
|
99
|
+
declare function useHeadlessCmsLink(link: string, type?: ModuleItemTypeEnum): string;
|
|
100
|
+
|
|
101
|
+
declare function isLayoutContent(module: PageModule | PageSidebarModule): module is LayoutContentFragment;
|
|
102
|
+
declare function isLayoutCard(module: PageModule | PageSidebarModule): module is LayoutCardFragment;
|
|
103
|
+
declare function isLayoutCards(module: PageModule | PageSidebarModule): module is LayoutCardsFragment;
|
|
104
|
+
declare function isLayoutImage(module: PageModule | PageSidebarModule): module is LayoutImageFragment;
|
|
105
|
+
declare function isLayoutImageGallery(module: PageModule | PageSidebarModule): module is LayoutImageGalleryFragment;
|
|
106
|
+
declare function isLayoutSteps(module: PageModule | PageSidebarModule): module is LayoutStepsFragment;
|
|
107
|
+
declare function isLayoutSocialMediaFeed(module: PageModule | PageSidebarModule): module is LayoutSocialMediaFeedFragment;
|
|
108
|
+
declare function isLayoutArticle(module: PageModule | PageSidebarModule): module is LayoutArticlesFragment;
|
|
109
|
+
declare function isLayoutPage(module: PageModule | PageSidebarModule): module is LayoutPagesFragment;
|
|
110
|
+
declare function isLayoutArticleCarousel(module: PageModule | PageSidebarModule): module is LayoutArticlesCarouselFragment;
|
|
111
|
+
declare function isLayoutPageCarousel(module: PageModule | PageSidebarModule): module is LayoutPagesCarouselFragment;
|
|
112
|
+
declare function isEventSearch(module: PageModule | PageSidebarModule): module is EventSearchFragment;
|
|
113
|
+
declare function isEventSearchCarousel(module: PageModule | PageSidebarModule): module is EventSearchCarouselFragment;
|
|
114
|
+
declare function isEventSelected(module: PageModule | PageSidebarModule): module is EventSelectedFragment;
|
|
115
|
+
declare function isEventSelectedCarousel(module: PageModule | PageSidebarModule): module is EventSelectedCarouselFragment;
|
|
116
|
+
declare function isLocationsSelected(module: PageModule | PageSidebarModule): module is LocationsSelectedFragment;
|
|
117
|
+
declare function isLocationsSelectedCarousel(module: PageModule | PageSidebarModule): module is LocationsSelectedCarouselFragment;
|
|
118
|
+
declare function isLayoutLinkList(module: PageModule | PageSidebarModule): module is LayoutLinkListFragment;
|
|
119
|
+
declare function isArticleType(item: CollectionItemType): item is ArticleType;
|
|
120
|
+
declare function isPageType(item: CollectionItemType): item is PageType;
|
|
121
|
+
declare function isEventType(item: CollectionItemType): item is EventType;
|
|
122
|
+
declare function isVenueType(item: CollectionItemType): item is VenueType;
|
|
123
|
+
declare function isEventSelectionCollection(collection: CollectionType): collection is EventSelectionCollectionType;
|
|
124
|
+
declare function isEventSearchCollection(collection: CollectionType): collection is EventSearchCollectionType;
|
|
125
|
+
declare function isLocationsSelectionCollection(collection: CollectionType): collection is LocationsSelectionCollectionType;
|
|
126
|
+
declare function isLanguage(language: LanguageFragment | null | undefined): language is LanguageFragment;
|
|
127
|
+
declare function isLinkItem(item: unknown): item is LinkItem;
|
|
128
|
+
declare function filterPagesAndArticles(items: CollectionItemType[]): ({
|
|
129
|
+
__typename?: "Post";
|
|
130
|
+
id: string;
|
|
131
|
+
date?: string | null;
|
|
132
|
+
content?: string | null;
|
|
133
|
+
slug?: string | null;
|
|
134
|
+
title?: string | null;
|
|
135
|
+
uri?: string | null;
|
|
136
|
+
link?: string | null;
|
|
137
|
+
lead?: string | null;
|
|
138
|
+
categories?: {
|
|
139
|
+
__typename?: "PostToCategoryConnection";
|
|
140
|
+
edges: Array<{
|
|
141
|
+
__typename?: "PostToCategoryConnectionEdge";
|
|
142
|
+
node: {
|
|
143
|
+
__typename?: "Category";
|
|
144
|
+
id: string;
|
|
145
|
+
name?: string | null;
|
|
146
|
+
};
|
|
147
|
+
}>;
|
|
148
|
+
} | null;
|
|
149
|
+
seo?: {
|
|
150
|
+
__typename?: "SEO";
|
|
151
|
+
title?: string | null;
|
|
152
|
+
description?: string | null;
|
|
153
|
+
openGraphTitle?: string | null;
|
|
154
|
+
openGraphDescription?: string | null;
|
|
155
|
+
openGraphType?: string | null;
|
|
156
|
+
twitterTitle?: string | null;
|
|
157
|
+
twitterDescription?: string | null;
|
|
158
|
+
canonicalUrl?: string | null;
|
|
159
|
+
socialImage?: {
|
|
160
|
+
__typename?: "MediaItem";
|
|
161
|
+
mediaItemUrl?: string | null;
|
|
162
|
+
} | null;
|
|
163
|
+
} | null;
|
|
164
|
+
language?: {
|
|
165
|
+
__typename?: "Language";
|
|
166
|
+
code?: LanguageCodeEnum | null;
|
|
167
|
+
id: string;
|
|
168
|
+
locale?: string | null;
|
|
169
|
+
name?: string | null;
|
|
170
|
+
slug?: string | null;
|
|
171
|
+
} | null;
|
|
172
|
+
translations?: Array<{
|
|
173
|
+
__typename?: "Post";
|
|
174
|
+
uri?: string | null;
|
|
175
|
+
slug?: string | null;
|
|
176
|
+
language?: {
|
|
177
|
+
__typename?: "Language";
|
|
178
|
+
code?: LanguageCodeEnum | null;
|
|
179
|
+
id: string;
|
|
180
|
+
locale?: string | null;
|
|
181
|
+
name?: string | null;
|
|
182
|
+
slug?: string | null;
|
|
183
|
+
} | null;
|
|
184
|
+
seo?: {
|
|
185
|
+
__typename?: "SEO";
|
|
186
|
+
title?: string | null;
|
|
187
|
+
description?: string | null;
|
|
188
|
+
openGraphTitle?: string | null;
|
|
189
|
+
openGraphDescription?: string | null;
|
|
190
|
+
openGraphType?: string | null;
|
|
191
|
+
twitterTitle?: string | null;
|
|
192
|
+
twitterDescription?: string | null;
|
|
193
|
+
canonicalUrl?: string | null;
|
|
194
|
+
socialImage?: {
|
|
195
|
+
__typename?: "MediaItem";
|
|
196
|
+
mediaItemUrl?: string | null;
|
|
197
|
+
} | null;
|
|
198
|
+
} | null;
|
|
199
|
+
} | null> | null;
|
|
200
|
+
featuredImage?: {
|
|
201
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
202
|
+
node: {
|
|
203
|
+
__typename?: "MediaItem";
|
|
204
|
+
mediaItemUrl?: string | null;
|
|
205
|
+
link?: string | null;
|
|
206
|
+
altText?: string | null;
|
|
207
|
+
mimeType?: string | null;
|
|
208
|
+
title?: string | null;
|
|
209
|
+
uri?: string | null;
|
|
210
|
+
photographerName?: string | null;
|
|
211
|
+
large?: string | null;
|
|
212
|
+
medium_large?: string | null;
|
|
213
|
+
medium?: string | null;
|
|
214
|
+
thumbnail?: string | null;
|
|
215
|
+
};
|
|
216
|
+
} | null;
|
|
217
|
+
breadcrumbs?: Array<{
|
|
218
|
+
__typename?: "Breadcrumb";
|
|
219
|
+
title?: string | null;
|
|
220
|
+
uri?: string | null;
|
|
221
|
+
} | null> | null;
|
|
222
|
+
sidebar?: Array<{
|
|
223
|
+
__typename: "LayoutArticles";
|
|
224
|
+
title?: string | null;
|
|
225
|
+
showAllLink?: string | null;
|
|
226
|
+
articles?: Array<{
|
|
227
|
+
__typename?: "Post";
|
|
228
|
+
id: string;
|
|
229
|
+
uri?: string | null;
|
|
230
|
+
slug?: string | null;
|
|
231
|
+
link?: string | null;
|
|
232
|
+
date?: string | null;
|
|
233
|
+
title?: string | null;
|
|
234
|
+
lead?: string | null;
|
|
235
|
+
featuredImage?: {
|
|
236
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
237
|
+
node: {
|
|
238
|
+
__typename?: "MediaItem";
|
|
239
|
+
altText?: string | null;
|
|
240
|
+
mediaItemUrl?: string | null;
|
|
241
|
+
large?: string | null;
|
|
242
|
+
medium_large?: string | null;
|
|
243
|
+
medium?: string | null;
|
|
244
|
+
thumbnail?: string | null;
|
|
245
|
+
};
|
|
246
|
+
} | null;
|
|
247
|
+
categories?: {
|
|
248
|
+
__typename?: "PostToCategoryConnection";
|
|
249
|
+
nodes: Array<{
|
|
250
|
+
__typename?: "Category";
|
|
251
|
+
name?: string | null;
|
|
252
|
+
}>;
|
|
253
|
+
} | null;
|
|
254
|
+
} | null> | null;
|
|
255
|
+
} | {
|
|
256
|
+
__typename: "LayoutCards";
|
|
257
|
+
cards?: Array<{
|
|
258
|
+
__typename?: "Card";
|
|
259
|
+
backgroundColor?: string | null;
|
|
260
|
+
description?: string | null;
|
|
261
|
+
icon?: string | null;
|
|
262
|
+
title?: string | null;
|
|
263
|
+
link?: {
|
|
264
|
+
__typename?: "Link";
|
|
265
|
+
target?: string | null;
|
|
266
|
+
title?: string | null;
|
|
267
|
+
url?: string | null;
|
|
268
|
+
} | null;
|
|
269
|
+
} | null> | null;
|
|
270
|
+
} | {
|
|
271
|
+
__typename: "LayoutLinkList";
|
|
272
|
+
anchor?: string | null;
|
|
273
|
+
title?: string | null;
|
|
274
|
+
description?: string | null;
|
|
275
|
+
links?: Array<{
|
|
276
|
+
__typename?: "Link";
|
|
277
|
+
target?: string | null;
|
|
278
|
+
title?: string | null;
|
|
279
|
+
url?: string | null;
|
|
280
|
+
} | null> | null;
|
|
281
|
+
} | {
|
|
282
|
+
__typename: "LayoutPages";
|
|
283
|
+
title?: string | null;
|
|
284
|
+
description?: string | null;
|
|
285
|
+
showAllLink?: string | null;
|
|
286
|
+
pages?: Array<{
|
|
287
|
+
__typename?: "Page";
|
|
288
|
+
id: string;
|
|
289
|
+
uri?: string | null;
|
|
290
|
+
slug?: string | null;
|
|
291
|
+
link?: string | null;
|
|
292
|
+
date?: string | null;
|
|
293
|
+
title?: string | null;
|
|
294
|
+
lead?: string | null;
|
|
295
|
+
featuredImage?: {
|
|
296
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
297
|
+
node: {
|
|
298
|
+
__typename?: "MediaItem";
|
|
299
|
+
altText?: string | null;
|
|
300
|
+
mediaItemUrl?: string | null;
|
|
301
|
+
large?: string | null;
|
|
302
|
+
medium_large?: string | null;
|
|
303
|
+
medium?: string | null;
|
|
304
|
+
thumbnail?: string | null;
|
|
305
|
+
};
|
|
306
|
+
} | null;
|
|
307
|
+
} | null> | null;
|
|
308
|
+
} | null> | null;
|
|
309
|
+
modules?: Array<{
|
|
310
|
+
__typename: "EventSearch";
|
|
311
|
+
title?: string | null;
|
|
312
|
+
url?: string | null;
|
|
313
|
+
module?: string | null;
|
|
314
|
+
showAllLink?: string | null;
|
|
315
|
+
showAllLinkCustom?: string | null;
|
|
316
|
+
} | {
|
|
317
|
+
__typename: "EventSearchCarousel";
|
|
318
|
+
title?: string | null;
|
|
319
|
+
url?: string | null;
|
|
320
|
+
orderNewestFirst?: boolean | null;
|
|
321
|
+
eventsNearby?: boolean | null;
|
|
322
|
+
amountOfCards?: number | null;
|
|
323
|
+
showAllLink?: string | null;
|
|
324
|
+
showAllLinkCustom?: string | null;
|
|
325
|
+
} | {
|
|
326
|
+
__typename: "EventSelected";
|
|
327
|
+
title?: string | null;
|
|
328
|
+
events?: Array<string | null> | null;
|
|
329
|
+
module?: string | null;
|
|
330
|
+
} | {
|
|
331
|
+
__typename: "EventSelectedCarousel";
|
|
332
|
+
title?: string | null;
|
|
333
|
+
module?: string | null;
|
|
334
|
+
eventsNearby?: boolean | null;
|
|
335
|
+
events?: Array<string | null> | null;
|
|
336
|
+
amountOfCardsPerRow?: number | null;
|
|
337
|
+
amountOfCards?: number | null;
|
|
338
|
+
} | {
|
|
339
|
+
__typename?: "LayoutArticleHighlights";
|
|
340
|
+
} | {
|
|
341
|
+
__typename: "LayoutArticles";
|
|
342
|
+
title?: string | null;
|
|
343
|
+
showAllLink?: string | null;
|
|
344
|
+
articles?: Array<{
|
|
345
|
+
__typename?: "Post";
|
|
346
|
+
id: string;
|
|
347
|
+
uri?: string | null;
|
|
348
|
+
slug?: string | null;
|
|
349
|
+
link?: string | null;
|
|
350
|
+
date?: string | null;
|
|
351
|
+
title?: string | null;
|
|
352
|
+
lead?: string | null;
|
|
353
|
+
featuredImage?: {
|
|
354
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
355
|
+
node: {
|
|
356
|
+
__typename?: "MediaItem";
|
|
357
|
+
altText?: string | null;
|
|
358
|
+
mediaItemUrl?: string | null;
|
|
359
|
+
large?: string | null;
|
|
360
|
+
medium_large?: string | null;
|
|
361
|
+
medium?: string | null;
|
|
362
|
+
thumbnail?: string | null;
|
|
363
|
+
};
|
|
364
|
+
} | null;
|
|
365
|
+
categories?: {
|
|
366
|
+
__typename?: "PostToCategoryConnection";
|
|
367
|
+
nodes: Array<{
|
|
368
|
+
__typename?: "Category";
|
|
369
|
+
name?: string | null;
|
|
370
|
+
}>;
|
|
371
|
+
} | null;
|
|
372
|
+
} | null> | null;
|
|
373
|
+
} | {
|
|
374
|
+
__typename: "LayoutArticlesCarousel";
|
|
375
|
+
title?: string | null;
|
|
376
|
+
showMore?: Array<string | null> | null;
|
|
377
|
+
showAllLink?: string | null;
|
|
378
|
+
articles?: Array<{
|
|
379
|
+
__typename?: "Post";
|
|
380
|
+
id: string;
|
|
381
|
+
uri?: string | null;
|
|
382
|
+
slug?: string | null;
|
|
383
|
+
link?: string | null;
|
|
384
|
+
date?: string | null;
|
|
385
|
+
title?: string | null;
|
|
386
|
+
lead?: string | null;
|
|
387
|
+
featuredImage?: {
|
|
388
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
389
|
+
node: {
|
|
390
|
+
__typename?: "MediaItem";
|
|
391
|
+
altText?: string | null;
|
|
392
|
+
mediaItemUrl?: string | null;
|
|
393
|
+
large?: string | null;
|
|
394
|
+
medium_large?: string | null;
|
|
395
|
+
medium?: string | null;
|
|
396
|
+
thumbnail?: string | null;
|
|
397
|
+
};
|
|
398
|
+
} | null;
|
|
399
|
+
categories?: {
|
|
400
|
+
__typename?: "PostToCategoryConnection";
|
|
401
|
+
nodes: Array<{
|
|
402
|
+
__typename?: "Category";
|
|
403
|
+
name?: string | null;
|
|
404
|
+
}>;
|
|
405
|
+
} | null;
|
|
406
|
+
} | null> | null;
|
|
407
|
+
} | {
|
|
408
|
+
__typename: "LayoutCard";
|
|
409
|
+
alignment?: string | null;
|
|
410
|
+
backgroundColor?: string | null;
|
|
411
|
+
description?: string | null;
|
|
412
|
+
title?: string | null;
|
|
413
|
+
link?: {
|
|
414
|
+
__typename?: "Link";
|
|
415
|
+
target?: string | null;
|
|
416
|
+
title?: string | null;
|
|
417
|
+
url?: string | null;
|
|
418
|
+
} | null;
|
|
419
|
+
image?: {
|
|
420
|
+
__typename?: "Image";
|
|
421
|
+
caption?: string | null;
|
|
422
|
+
description?: string | null;
|
|
423
|
+
large?: string | null;
|
|
424
|
+
medium?: string | null;
|
|
425
|
+
medium_large?: string | null;
|
|
426
|
+
thumbnail?: string | null;
|
|
427
|
+
title?: string | null;
|
|
428
|
+
} | null;
|
|
429
|
+
} | {
|
|
430
|
+
__typename: "LayoutCards";
|
|
431
|
+
cards?: Array<{
|
|
432
|
+
__typename?: "Card";
|
|
433
|
+
backgroundColor?: string | null;
|
|
434
|
+
description?: string | null;
|
|
435
|
+
icon?: string | null;
|
|
436
|
+
title?: string | null;
|
|
437
|
+
link?: {
|
|
438
|
+
__typename?: "Link";
|
|
439
|
+
target?: string | null;
|
|
440
|
+
title?: string | null;
|
|
441
|
+
url?: string | null;
|
|
442
|
+
} | null;
|
|
443
|
+
} | null> | null;
|
|
444
|
+
} | {
|
|
445
|
+
__typename: "LayoutCollection";
|
|
446
|
+
collection?: {
|
|
447
|
+
__typename?: "Collection";
|
|
448
|
+
title?: string | null;
|
|
449
|
+
} | null;
|
|
450
|
+
} | {
|
|
451
|
+
__typename?: "LayoutContact";
|
|
452
|
+
} | {
|
|
453
|
+
__typename: "LayoutContent";
|
|
454
|
+
backgroundColor?: string | null;
|
|
455
|
+
content?: string | null;
|
|
456
|
+
title?: string | null;
|
|
457
|
+
} | {
|
|
458
|
+
__typename: "LayoutImage";
|
|
459
|
+
border?: boolean | null;
|
|
460
|
+
photographer_name?: string | null;
|
|
461
|
+
show_on_lightbox?: boolean | null;
|
|
462
|
+
image?: {
|
|
463
|
+
__typename?: "Image";
|
|
464
|
+
caption?: string | null;
|
|
465
|
+
description?: string | null;
|
|
466
|
+
large?: string | null;
|
|
467
|
+
medium_large?: string | null;
|
|
468
|
+
medium?: string | null;
|
|
469
|
+
thumbnail?: string | null;
|
|
470
|
+
title?: string | null;
|
|
471
|
+
} | null;
|
|
472
|
+
} | {
|
|
473
|
+
__typename: "LayoutImageGallery";
|
|
474
|
+
gallery?: Array<{
|
|
475
|
+
__typename?: "GalleryImage";
|
|
476
|
+
caption?: string | null;
|
|
477
|
+
description?: string | null;
|
|
478
|
+
large?: string | null;
|
|
479
|
+
medium_large?: string | null;
|
|
480
|
+
medium?: string | null;
|
|
481
|
+
thumbnail?: string | null;
|
|
482
|
+
title?: string | null;
|
|
483
|
+
} | null> | null;
|
|
484
|
+
} | {
|
|
485
|
+
__typename: "LayoutPages";
|
|
486
|
+
title?: string | null;
|
|
487
|
+
description?: string | null;
|
|
488
|
+
showAllLink?: string | null;
|
|
489
|
+
pages?: Array<{
|
|
490
|
+
__typename?: "Page";
|
|
491
|
+
id: string;
|
|
492
|
+
uri?: string | null;
|
|
493
|
+
slug?: string | null;
|
|
494
|
+
link?: string | null;
|
|
495
|
+
date?: string | null;
|
|
496
|
+
title?: string | null;
|
|
497
|
+
lead?: string | null;
|
|
498
|
+
featuredImage?: {
|
|
499
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
500
|
+
node: {
|
|
501
|
+
__typename?: "MediaItem";
|
|
502
|
+
altText?: string | null;
|
|
503
|
+
mediaItemUrl?: string | null;
|
|
504
|
+
large?: string | null;
|
|
505
|
+
medium_large?: string | null;
|
|
506
|
+
medium?: string | null;
|
|
507
|
+
thumbnail?: string | null;
|
|
508
|
+
};
|
|
509
|
+
} | null;
|
|
510
|
+
} | null> | null;
|
|
511
|
+
} | {
|
|
512
|
+
__typename: "LayoutPagesCarousel";
|
|
513
|
+
title?: string | null;
|
|
514
|
+
description?: string | null;
|
|
515
|
+
pages?: Array<{
|
|
516
|
+
__typename?: "Page";
|
|
517
|
+
id: string;
|
|
518
|
+
uri?: string | null;
|
|
519
|
+
slug?: string | null;
|
|
520
|
+
link?: string | null;
|
|
521
|
+
date?: string | null;
|
|
522
|
+
title?: string | null;
|
|
523
|
+
lead?: string | null;
|
|
524
|
+
featuredImage?: {
|
|
525
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
526
|
+
node: {
|
|
527
|
+
__typename?: "MediaItem";
|
|
528
|
+
altText?: string | null;
|
|
529
|
+
mediaItemUrl?: string | null;
|
|
530
|
+
large?: string | null;
|
|
531
|
+
medium_large?: string | null;
|
|
532
|
+
medium?: string | null;
|
|
533
|
+
thumbnail?: string | null;
|
|
534
|
+
};
|
|
535
|
+
} | null;
|
|
536
|
+
} | null> | null;
|
|
537
|
+
} | {
|
|
538
|
+
__typename: "LayoutSocialMediaFeed";
|
|
539
|
+
anchor?: string | null;
|
|
540
|
+
script?: string | null;
|
|
541
|
+
title?: string | null;
|
|
542
|
+
} | {
|
|
543
|
+
__typename: "LayoutSteps";
|
|
544
|
+
color?: string | null;
|
|
545
|
+
description?: string | null;
|
|
546
|
+
title?: string | null;
|
|
547
|
+
type?: string | null;
|
|
548
|
+
steps?: Array<{
|
|
549
|
+
__typename?: "Step";
|
|
550
|
+
content?: string | null;
|
|
551
|
+
title?: string | null;
|
|
552
|
+
} | null> | null;
|
|
553
|
+
} | {
|
|
554
|
+
__typename: "LocationsSelected";
|
|
555
|
+
title?: string | null;
|
|
556
|
+
locations?: Array<number | null> | null;
|
|
557
|
+
module?: string | null;
|
|
558
|
+
} | {
|
|
559
|
+
__typename: "LocationsSelectedCarousel";
|
|
560
|
+
title?: string | null;
|
|
561
|
+
locations?: Array<number | null> | null;
|
|
562
|
+
module?: string | null;
|
|
563
|
+
} | null> | null;
|
|
564
|
+
} | {
|
|
565
|
+
__typename?: "Page";
|
|
566
|
+
id: string;
|
|
567
|
+
content?: string | null;
|
|
568
|
+
slug?: string | null;
|
|
569
|
+
title?: string | null;
|
|
570
|
+
uri?: string | null;
|
|
571
|
+
link?: string | null;
|
|
572
|
+
lead?: string | null;
|
|
573
|
+
seo?: {
|
|
574
|
+
__typename?: "SEO";
|
|
575
|
+
title?: string | null;
|
|
576
|
+
description?: string | null;
|
|
577
|
+
openGraphTitle?: string | null;
|
|
578
|
+
openGraphDescription?: string | null;
|
|
579
|
+
openGraphType?: string | null;
|
|
580
|
+
twitterTitle?: string | null;
|
|
581
|
+
twitterDescription?: string | null;
|
|
582
|
+
canonicalUrl?: string | null;
|
|
583
|
+
socialImage?: {
|
|
584
|
+
__typename?: "MediaItem";
|
|
585
|
+
mediaItemUrl?: string | null;
|
|
586
|
+
} | null;
|
|
587
|
+
} | null;
|
|
588
|
+
hero?: {
|
|
589
|
+
__typename?: "Hero";
|
|
590
|
+
background_color?: string | null;
|
|
591
|
+
background_image_url?: string | null;
|
|
592
|
+
description?: string | null;
|
|
593
|
+
title?: string | null;
|
|
594
|
+
wave_motif?: string | null;
|
|
595
|
+
link?: {
|
|
596
|
+
__typename?: "Link";
|
|
597
|
+
target?: string | null;
|
|
598
|
+
title?: string | null;
|
|
599
|
+
url?: string | null;
|
|
600
|
+
} | null;
|
|
601
|
+
} | null;
|
|
602
|
+
language?: {
|
|
603
|
+
__typename?: "Language";
|
|
604
|
+
code?: LanguageCodeEnum | null;
|
|
605
|
+
id: string;
|
|
606
|
+
locale?: string | null;
|
|
607
|
+
name?: string | null;
|
|
608
|
+
slug?: string | null;
|
|
609
|
+
} | null;
|
|
610
|
+
translations?: Array<{
|
|
611
|
+
__typename?: "Page";
|
|
612
|
+
uri?: string | null;
|
|
613
|
+
slug?: string | null;
|
|
614
|
+
language?: {
|
|
615
|
+
__typename?: "Language";
|
|
616
|
+
code?: LanguageCodeEnum | null;
|
|
617
|
+
id: string;
|
|
618
|
+
locale?: string | null;
|
|
619
|
+
name?: string | null;
|
|
620
|
+
slug?: string | null;
|
|
621
|
+
} | null;
|
|
622
|
+
seo?: {
|
|
623
|
+
__typename?: "SEO";
|
|
624
|
+
title?: string | null;
|
|
625
|
+
description?: string | null;
|
|
626
|
+
openGraphTitle?: string | null;
|
|
627
|
+
openGraphDescription?: string | null;
|
|
628
|
+
openGraphType?: string | null;
|
|
629
|
+
twitterTitle?: string | null;
|
|
630
|
+
twitterDescription?: string | null;
|
|
631
|
+
canonicalUrl?: string | null;
|
|
632
|
+
socialImage?: {
|
|
633
|
+
__typename?: "MediaItem";
|
|
634
|
+
mediaItemUrl?: string | null;
|
|
635
|
+
} | null;
|
|
636
|
+
} | null;
|
|
637
|
+
} | null> | null;
|
|
638
|
+
featuredImage?: {
|
|
639
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
640
|
+
node: {
|
|
641
|
+
__typename?: "MediaItem";
|
|
642
|
+
mediaItemUrl?: string | null;
|
|
643
|
+
link?: string | null;
|
|
644
|
+
altText?: string | null;
|
|
645
|
+
mimeType?: string | null;
|
|
646
|
+
title?: string | null;
|
|
647
|
+
uri?: string | null;
|
|
648
|
+
photographerName?: string | null;
|
|
649
|
+
large?: string | null;
|
|
650
|
+
medium_large?: string | null;
|
|
651
|
+
medium?: string | null;
|
|
652
|
+
thumbnail?: string | null;
|
|
653
|
+
};
|
|
654
|
+
} | null;
|
|
655
|
+
breadcrumbs?: Array<{
|
|
656
|
+
__typename?: "Breadcrumb";
|
|
657
|
+
title?: string | null;
|
|
658
|
+
uri?: string | null;
|
|
659
|
+
} | null> | null;
|
|
660
|
+
sidebar?: Array<{
|
|
661
|
+
__typename: "LayoutArticles";
|
|
662
|
+
title?: string | null;
|
|
663
|
+
showAllLink?: string | null;
|
|
664
|
+
articles?: Array<{
|
|
665
|
+
__typename?: "Post";
|
|
666
|
+
id: string;
|
|
667
|
+
uri?: string | null;
|
|
668
|
+
slug?: string | null;
|
|
669
|
+
link?: string | null;
|
|
670
|
+
date?: string | null;
|
|
671
|
+
title?: string | null;
|
|
672
|
+
lead?: string | null;
|
|
673
|
+
featuredImage?: {
|
|
674
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
675
|
+
node: {
|
|
676
|
+
__typename?: "MediaItem";
|
|
677
|
+
altText?: string | null;
|
|
678
|
+
mediaItemUrl?: string | null;
|
|
679
|
+
large?: string | null;
|
|
680
|
+
medium_large?: string | null;
|
|
681
|
+
medium?: string | null;
|
|
682
|
+
thumbnail?: string | null;
|
|
683
|
+
};
|
|
684
|
+
} | null;
|
|
685
|
+
categories?: {
|
|
686
|
+
__typename?: "PostToCategoryConnection";
|
|
687
|
+
nodes: Array<{
|
|
688
|
+
__typename?: "Category";
|
|
689
|
+
name?: string | null;
|
|
690
|
+
}>;
|
|
691
|
+
} | null;
|
|
692
|
+
} | null> | null;
|
|
693
|
+
} | {
|
|
694
|
+
__typename: "LayoutCards";
|
|
695
|
+
cards?: Array<{
|
|
696
|
+
__typename?: "Card";
|
|
697
|
+
backgroundColor?: string | null;
|
|
698
|
+
description?: string | null;
|
|
699
|
+
icon?: string | null;
|
|
700
|
+
title?: string | null;
|
|
701
|
+
link?: {
|
|
702
|
+
__typename?: "Link";
|
|
703
|
+
target?: string | null;
|
|
704
|
+
title?: string | null;
|
|
705
|
+
url?: string | null;
|
|
706
|
+
} | null;
|
|
707
|
+
} | null> | null;
|
|
708
|
+
} | {
|
|
709
|
+
__typename: "LayoutLinkList";
|
|
710
|
+
anchor?: string | null;
|
|
711
|
+
title?: string | null;
|
|
712
|
+
description?: string | null;
|
|
713
|
+
links?: Array<{
|
|
714
|
+
__typename?: "Link";
|
|
715
|
+
target?: string | null;
|
|
716
|
+
title?: string | null;
|
|
717
|
+
url?: string | null;
|
|
718
|
+
} | null> | null;
|
|
719
|
+
} | {
|
|
720
|
+
__typename: "LayoutPages";
|
|
721
|
+
title?: string | null;
|
|
722
|
+
description?: string | null;
|
|
723
|
+
showAllLink?: string | null;
|
|
724
|
+
pages?: Array<{
|
|
725
|
+
__typename?: "Page";
|
|
726
|
+
id: string;
|
|
727
|
+
uri?: string | null;
|
|
728
|
+
slug?: string | null;
|
|
729
|
+
link?: string | null;
|
|
730
|
+
date?: string | null;
|
|
731
|
+
title?: string | null;
|
|
732
|
+
lead?: string | null;
|
|
733
|
+
featuredImage?: {
|
|
734
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
735
|
+
node: {
|
|
736
|
+
__typename?: "MediaItem";
|
|
737
|
+
altText?: string | null;
|
|
738
|
+
mediaItemUrl?: string | null;
|
|
739
|
+
large?: string | null;
|
|
740
|
+
medium_large?: string | null;
|
|
741
|
+
medium?: string | null;
|
|
742
|
+
thumbnail?: string | null;
|
|
743
|
+
};
|
|
744
|
+
} | null;
|
|
745
|
+
} | null> | null;
|
|
746
|
+
} | null> | null;
|
|
747
|
+
modules?: Array<{
|
|
748
|
+
__typename: "EventSearch";
|
|
749
|
+
title?: string | null;
|
|
750
|
+
url?: string | null;
|
|
751
|
+
module?: string | null;
|
|
752
|
+
showAllLink?: string | null;
|
|
753
|
+
showAllLinkCustom?: string | null;
|
|
754
|
+
} | {
|
|
755
|
+
__typename: "EventSearchCarousel";
|
|
756
|
+
title?: string | null;
|
|
757
|
+
url?: string | null;
|
|
758
|
+
orderNewestFirst?: boolean | null;
|
|
759
|
+
eventsNearby?: boolean | null;
|
|
760
|
+
amountOfCards?: number | null;
|
|
761
|
+
showAllLink?: string | null;
|
|
762
|
+
showAllLinkCustom?: string | null;
|
|
763
|
+
} | {
|
|
764
|
+
__typename: "EventSelected";
|
|
765
|
+
title?: string | null;
|
|
766
|
+
events?: Array<string | null> | null;
|
|
767
|
+
module?: string | null;
|
|
768
|
+
} | {
|
|
769
|
+
__typename: "EventSelectedCarousel";
|
|
770
|
+
title?: string | null;
|
|
771
|
+
module?: string | null;
|
|
772
|
+
eventsNearby?: boolean | null;
|
|
773
|
+
events?: Array<string | null> | null;
|
|
774
|
+
amountOfCardsPerRow?: number | null;
|
|
775
|
+
amountOfCards?: number | null;
|
|
776
|
+
} | {
|
|
777
|
+
__typename?: "LayoutArticleHighlights";
|
|
778
|
+
} | {
|
|
779
|
+
__typename: "LayoutArticles";
|
|
780
|
+
title?: string | null;
|
|
781
|
+
showAllLink?: string | null;
|
|
782
|
+
articles?: Array<{
|
|
783
|
+
__typename?: "Post";
|
|
784
|
+
id: string;
|
|
785
|
+
uri?: string | null;
|
|
786
|
+
slug?: string | null;
|
|
787
|
+
link?: string | null;
|
|
788
|
+
date?: string | null;
|
|
789
|
+
title?: string | null;
|
|
790
|
+
lead?: string | null;
|
|
791
|
+
featuredImage?: {
|
|
792
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
793
|
+
node: {
|
|
794
|
+
__typename?: "MediaItem";
|
|
795
|
+
altText?: string | null;
|
|
796
|
+
mediaItemUrl?: string | null;
|
|
797
|
+
large?: string | null;
|
|
798
|
+
medium_large?: string | null;
|
|
799
|
+
medium?: string | null;
|
|
800
|
+
thumbnail?: string | null;
|
|
801
|
+
};
|
|
802
|
+
} | null;
|
|
803
|
+
categories?: {
|
|
804
|
+
__typename?: "PostToCategoryConnection";
|
|
805
|
+
nodes: Array<{
|
|
806
|
+
__typename?: "Category";
|
|
807
|
+
name?: string | null;
|
|
808
|
+
}>;
|
|
809
|
+
} | null;
|
|
810
|
+
} | null> | null;
|
|
811
|
+
} | {
|
|
812
|
+
__typename: "LayoutArticlesCarousel";
|
|
813
|
+
title?: string | null;
|
|
814
|
+
showMore?: Array<string | null> | null;
|
|
815
|
+
showAllLink?: string | null;
|
|
816
|
+
articles?: Array<{
|
|
817
|
+
__typename?: "Post";
|
|
818
|
+
id: string;
|
|
819
|
+
uri?: string | null;
|
|
820
|
+
slug?: string | null;
|
|
821
|
+
link?: string | null;
|
|
822
|
+
date?: string | null;
|
|
823
|
+
title?: string | null;
|
|
824
|
+
lead?: string | null;
|
|
825
|
+
featuredImage?: {
|
|
826
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
827
|
+
node: {
|
|
828
|
+
__typename?: "MediaItem";
|
|
829
|
+
altText?: string | null;
|
|
830
|
+
mediaItemUrl?: string | null;
|
|
831
|
+
large?: string | null;
|
|
832
|
+
medium_large?: string | null;
|
|
833
|
+
medium?: string | null;
|
|
834
|
+
thumbnail?: string | null;
|
|
835
|
+
};
|
|
836
|
+
} | null;
|
|
837
|
+
categories?: {
|
|
838
|
+
__typename?: "PostToCategoryConnection";
|
|
839
|
+
nodes: Array<{
|
|
840
|
+
__typename?: "Category";
|
|
841
|
+
name?: string | null;
|
|
842
|
+
}>;
|
|
843
|
+
} | null;
|
|
844
|
+
} | null> | null;
|
|
845
|
+
} | {
|
|
846
|
+
__typename: "LayoutCard";
|
|
847
|
+
alignment?: string | null;
|
|
848
|
+
backgroundColor?: string | null;
|
|
849
|
+
description?: string | null;
|
|
850
|
+
title?: string | null;
|
|
851
|
+
link?: {
|
|
852
|
+
__typename?: "Link";
|
|
853
|
+
target?: string | null;
|
|
854
|
+
title?: string | null;
|
|
855
|
+
url?: string | null;
|
|
856
|
+
} | null;
|
|
857
|
+
image?: {
|
|
858
|
+
__typename?: "Image";
|
|
859
|
+
caption?: string | null;
|
|
860
|
+
description?: string | null;
|
|
861
|
+
large?: string | null;
|
|
862
|
+
medium?: string | null;
|
|
863
|
+
medium_large?: string | null;
|
|
864
|
+
thumbnail?: string | null;
|
|
865
|
+
title?: string | null;
|
|
866
|
+
} | null;
|
|
867
|
+
} | {
|
|
868
|
+
__typename: "LayoutCards";
|
|
869
|
+
cards?: Array<{
|
|
870
|
+
__typename?: "Card";
|
|
871
|
+
backgroundColor?: string | null;
|
|
872
|
+
description?: string | null;
|
|
873
|
+
icon?: string | null;
|
|
874
|
+
title?: string | null;
|
|
875
|
+
link?: {
|
|
876
|
+
__typename?: "Link";
|
|
877
|
+
target?: string | null;
|
|
878
|
+
title?: string | null;
|
|
879
|
+
url?: string | null;
|
|
880
|
+
} | null;
|
|
881
|
+
} | null> | null;
|
|
882
|
+
} | {
|
|
883
|
+
__typename: "LayoutCollection";
|
|
884
|
+
collection?: {
|
|
885
|
+
__typename?: "Collection";
|
|
886
|
+
title?: string | null;
|
|
887
|
+
} | null;
|
|
888
|
+
} | {
|
|
889
|
+
__typename?: "LayoutContact";
|
|
890
|
+
} | {
|
|
891
|
+
__typename: "LayoutContent";
|
|
892
|
+
backgroundColor?: string | null;
|
|
893
|
+
content?: string | null;
|
|
894
|
+
title?: string | null;
|
|
895
|
+
} | {
|
|
896
|
+
__typename: "LayoutImage";
|
|
897
|
+
border?: boolean | null;
|
|
898
|
+
photographer_name?: string | null;
|
|
899
|
+
show_on_lightbox?: boolean | null;
|
|
900
|
+
image?: {
|
|
901
|
+
__typename?: "Image";
|
|
902
|
+
caption?: string | null;
|
|
903
|
+
description?: string | null;
|
|
904
|
+
large?: string | null;
|
|
905
|
+
medium_large?: string | null;
|
|
906
|
+
medium?: string | null;
|
|
907
|
+
thumbnail?: string | null;
|
|
908
|
+
title?: string | null;
|
|
909
|
+
} | null;
|
|
910
|
+
} | {
|
|
911
|
+
__typename: "LayoutImageGallery";
|
|
912
|
+
gallery?: Array<{
|
|
913
|
+
__typename?: "GalleryImage";
|
|
914
|
+
caption?: string | null;
|
|
915
|
+
description?: string | null;
|
|
916
|
+
large?: string | null;
|
|
917
|
+
medium_large?: string | null;
|
|
918
|
+
medium?: string | null;
|
|
919
|
+
thumbnail?: string | null;
|
|
920
|
+
title?: string | null;
|
|
921
|
+
} | null> | null;
|
|
922
|
+
} | {
|
|
923
|
+
__typename: "LayoutPages";
|
|
924
|
+
title?: string | null;
|
|
925
|
+
description?: string | null;
|
|
926
|
+
showAllLink?: string | null;
|
|
927
|
+
pages?: Array<{
|
|
928
|
+
__typename?: "Page";
|
|
929
|
+
id: string;
|
|
930
|
+
uri?: string | null;
|
|
931
|
+
slug?: string | null;
|
|
932
|
+
link?: string | null;
|
|
933
|
+
date?: string | null;
|
|
934
|
+
title?: string | null;
|
|
935
|
+
lead?: string | null;
|
|
936
|
+
featuredImage?: {
|
|
937
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
938
|
+
node: {
|
|
939
|
+
__typename?: "MediaItem";
|
|
940
|
+
altText?: string | null;
|
|
941
|
+
mediaItemUrl?: string | null;
|
|
942
|
+
large?: string | null;
|
|
943
|
+
medium_large?: string | null;
|
|
944
|
+
medium?: string | null;
|
|
945
|
+
thumbnail?: string | null;
|
|
946
|
+
};
|
|
947
|
+
} | null;
|
|
948
|
+
} | null> | null;
|
|
949
|
+
} | {
|
|
950
|
+
__typename: "LayoutPagesCarousel";
|
|
951
|
+
title?: string | null;
|
|
952
|
+
description?: string | null;
|
|
953
|
+
pages?: Array<{
|
|
954
|
+
__typename?: "Page";
|
|
955
|
+
id: string;
|
|
956
|
+
uri?: string | null;
|
|
957
|
+
slug?: string | null;
|
|
958
|
+
link?: string | null;
|
|
959
|
+
date?: string | null;
|
|
960
|
+
title?: string | null;
|
|
961
|
+
lead?: string | null;
|
|
962
|
+
featuredImage?: {
|
|
963
|
+
__typename?: "NodeWithFeaturedImageToMediaItemConnectionEdge";
|
|
964
|
+
node: {
|
|
965
|
+
__typename?: "MediaItem";
|
|
966
|
+
altText?: string | null;
|
|
967
|
+
mediaItemUrl?: string | null;
|
|
968
|
+
large?: string | null;
|
|
969
|
+
medium_large?: string | null;
|
|
970
|
+
medium?: string | null;
|
|
971
|
+
thumbnail?: string | null;
|
|
972
|
+
};
|
|
973
|
+
} | null;
|
|
974
|
+
} | null> | null;
|
|
975
|
+
} | {
|
|
976
|
+
__typename: "LayoutSocialMediaFeed";
|
|
977
|
+
anchor?: string | null;
|
|
978
|
+
script?: string | null;
|
|
979
|
+
title?: string | null;
|
|
980
|
+
} | {
|
|
981
|
+
__typename: "LayoutSteps";
|
|
982
|
+
color?: string | null;
|
|
983
|
+
description?: string | null;
|
|
984
|
+
title?: string | null;
|
|
985
|
+
type?: string | null;
|
|
986
|
+
steps?: Array<{
|
|
987
|
+
__typename?: "Step";
|
|
988
|
+
content?: string | null;
|
|
989
|
+
title?: string | null;
|
|
990
|
+
} | null> | null;
|
|
991
|
+
} | {
|
|
992
|
+
__typename: "LocationsSelected";
|
|
993
|
+
title?: string | null;
|
|
994
|
+
locations?: Array<number | null> | null;
|
|
995
|
+
module?: string | null;
|
|
996
|
+
} | {
|
|
997
|
+
__typename: "LocationsSelectedCarousel";
|
|
998
|
+
title?: string | null;
|
|
999
|
+
locations?: Array<number | null> | null;
|
|
1000
|
+
module?: string | null;
|
|
1001
|
+
} | null> | null;
|
|
1002
|
+
} | null | undefined)[];
|
|
1003
|
+
declare function getUri(link: string, internalHrefOrigins: string[], getIsHrefExternal: (href: string) => boolean): string;
|
|
1004
|
+
declare function getElementTextContent(dirty: string): string;
|
|
1005
|
+
|
|
1006
|
+
type LinkProps$1 = Omit<React__default.ComponentPropsWithoutRef<'a'>, 'target' | 'href' | 'onPointerEnterCapture' | 'onPointerLeaveCapture'> & {
|
|
1007
|
+
/**
|
|
1008
|
+
* Link href.
|
|
1009
|
+
*/
|
|
1010
|
+
href?: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* Link left icon component.
|
|
1013
|
+
*/
|
|
1014
|
+
iconLeft?: React__default.ReactNode;
|
|
1015
|
+
/**
|
|
1016
|
+
* Link right icon component.
|
|
1017
|
+
*/
|
|
1018
|
+
iconRight?: React__default.ReactNode;
|
|
1019
|
+
/**
|
|
1020
|
+
* Boolean indicating whether the external icon is shown.
|
|
1021
|
+
*/
|
|
1022
|
+
showExternalIcon?: boolean;
|
|
1023
|
+
/**
|
|
1024
|
+
* Boolean indicating whether the link should be opened in a new tab.
|
|
1025
|
+
*/
|
|
1026
|
+
openInNewTab?: boolean;
|
|
1027
|
+
/**
|
|
1028
|
+
* Link text font size.
|
|
1029
|
+
*/
|
|
1030
|
+
size?: 'S' | 'M' | 'L';
|
|
1031
|
+
/**
|
|
1032
|
+
* Link variant.
|
|
1033
|
+
*/
|
|
1034
|
+
variant?: 'default' | 'arrowRight';
|
|
1035
|
+
/**
|
|
1036
|
+
* Additional children to render inside the Link.
|
|
1037
|
+
*/
|
|
1038
|
+
children?: React__default.ReactNode;
|
|
1039
|
+
/**
|
|
1040
|
+
* Additinal classname applied to the Link.
|
|
1041
|
+
*/
|
|
1042
|
+
className?: string;
|
|
1043
|
+
/**
|
|
1044
|
+
* Boolean indicating whether the icons should be displayed with inline styling.
|
|
1045
|
+
*/
|
|
1046
|
+
inlineIcons?: boolean;
|
|
1047
|
+
};
|
|
1048
|
+
declare function Link({ href, children, showExternalIcon: forceShowExternalIcon, openInNewTab: forceOpenInNewTab, className, size, iconRight, inlineIcons, ...delegatedProps }: LinkProps$1): React__default.JSX.Element;
|
|
1049
|
+
|
|
1050
|
+
declare function SecondaryLink({ className, children, variant, ...delegatedProps }: LinkProps$1): React__default.JSX.Element;
|
|
1051
|
+
|
|
1052
|
+
type LinkProps = Omit<React__default.ComponentPropsWithoutRef<'a'>, 'target'> & {
|
|
1053
|
+
/**
|
|
1054
|
+
* Link left icon component.
|
|
1055
|
+
*/
|
|
1056
|
+
iconLeft?: React__default.ReactNode;
|
|
1057
|
+
/**
|
|
1058
|
+
* Link right icon component.
|
|
1059
|
+
*/
|
|
1060
|
+
iconRight?: React__default.ReactNode;
|
|
1061
|
+
/**
|
|
1062
|
+
* Boolean indicating whether the link should be opened in a new tab.
|
|
1063
|
+
*/
|
|
1064
|
+
openInNewTab?: boolean;
|
|
1065
|
+
/**
|
|
1066
|
+
* Boolean indicating whether flex attribute should be added to the container of the link.
|
|
1067
|
+
*/
|
|
1068
|
+
flex?: boolean;
|
|
1069
|
+
};
|
|
1070
|
+
declare function LinkBox({ children, flex, ...delegatedProps }: LinkProps): React__default.JSX.Element;
|
|
1071
|
+
|
|
1072
|
+
declare function PageContent(props: PageContentProps): React__default.JSX.Element;
|
|
1073
|
+
|
|
1074
|
+
declare function PageContentBreadcrumb({ breadcrumbs, }: {
|
|
1075
|
+
breadcrumbs: BreadcrumbUnionType;
|
|
1076
|
+
}): React__default.JSX.Element;
|
|
1077
|
+
|
|
1078
|
+
type ContentContainerProps = {
|
|
1079
|
+
/**
|
|
1080
|
+
* Additional children to render inside the Content container.
|
|
1081
|
+
*/
|
|
1082
|
+
children: React__default.ReactNode;
|
|
1083
|
+
/**
|
|
1084
|
+
* Additinal classname applied to the Content container.
|
|
1085
|
+
*/
|
|
1086
|
+
className?: string;
|
|
1087
|
+
};
|
|
1088
|
+
declare function ContentContainer({ className, children, }: ContentContainerProps): React__default.JSX.Element;
|
|
1089
|
+
|
|
1090
|
+
type PageMetaProps = {
|
|
1091
|
+
page?: PageType | ArticleType;
|
|
1092
|
+
headComponent: React__default.ComponentType<{
|
|
1093
|
+
children: React__default.ReactNode;
|
|
1094
|
+
}>;
|
|
1095
|
+
};
|
|
1096
|
+
declare function PageMeta({ page, headComponent: Head }: PageMetaProps): React__default.JSX.Element;
|
|
1097
|
+
|
|
1098
|
+
type PageSectionProps = {
|
|
1099
|
+
/**
|
|
1100
|
+
* Additional children to render inside the Page section.
|
|
1101
|
+
*/
|
|
1102
|
+
children: React__default.ReactNode;
|
|
1103
|
+
/**
|
|
1104
|
+
* Additional classname for the Page section.
|
|
1105
|
+
*/
|
|
1106
|
+
className?: string;
|
|
1107
|
+
/**
|
|
1108
|
+
* Boolean indicating whether the koros top shouyld be displayed.
|
|
1109
|
+
*/
|
|
1110
|
+
korosTop?: boolean;
|
|
1111
|
+
/**
|
|
1112
|
+
* Custom top koros classname.
|
|
1113
|
+
*/
|
|
1114
|
+
korosTopClassName?: string;
|
|
1115
|
+
/**
|
|
1116
|
+
* Boolean indicating whether the koros bottom shouyld be displayed.
|
|
1117
|
+
*/
|
|
1118
|
+
korosBottom?: boolean;
|
|
1119
|
+
/**
|
|
1120
|
+
* Custom bottom koros classname.
|
|
1121
|
+
*/
|
|
1122
|
+
korosBottomClassName?: string;
|
|
1123
|
+
/**
|
|
1124
|
+
* Backgroud image url.
|
|
1125
|
+
*/
|
|
1126
|
+
backgroundImageUrl?: string;
|
|
1127
|
+
};
|
|
1128
|
+
declare function PageSection({ className, children, korosTop, korosTopClassName, korosBottom, korosBottomClassName, backgroundImageUrl, }: PageSectionProps): React__default.JSX.Element;
|
|
1129
|
+
|
|
1130
|
+
type PageMainContentProps = {
|
|
1131
|
+
title: string;
|
|
1132
|
+
content: string;
|
|
1133
|
+
date?: string;
|
|
1134
|
+
categories?: NonNullable<ArticleType>['categories'];
|
|
1135
|
+
contentModules?: React__default.ReactNode[];
|
|
1136
|
+
onArticlesSearch?: (tag: string) => void;
|
|
1137
|
+
};
|
|
1138
|
+
declare function PageMainContent({ title, content, date, categories, contentModules, onArticlesSearch, }: PageMainContentProps): React__default.JSX.Element;
|
|
1139
|
+
|
|
1140
|
+
type Props = {
|
|
1141
|
+
/**
|
|
1142
|
+
* Boolean indicating whether the tag has a featured style variant.
|
|
1143
|
+
*/
|
|
1144
|
+
featured?: boolean;
|
|
1145
|
+
/**
|
|
1146
|
+
* Boolean indicating whether the tag has a white-only style variant.
|
|
1147
|
+
*/
|
|
1148
|
+
whiteOnly?: boolean;
|
|
1149
|
+
/**
|
|
1150
|
+
* Boolean indicating whether the tag has a selected style variant.
|
|
1151
|
+
*/
|
|
1152
|
+
selected?: boolean;
|
|
1153
|
+
/**
|
|
1154
|
+
* White-space wrapping (Enabled by default in HDS v4, but disabled in this lib).
|
|
1155
|
+
*/
|
|
1156
|
+
noTextWrap?: boolean;
|
|
1157
|
+
/**
|
|
1158
|
+
* onClick handler.
|
|
1159
|
+
*/
|
|
1160
|
+
onClick?: () => void;
|
|
1161
|
+
} & Pick<TagProps, 'children' | 'className' | 'id' | 'role' | 'size'>;
|
|
1162
|
+
declare function Tag({ className, children, featured, selected, whiteOnly, noTextWrap, onClick, id, ...hdsTagProps }: Props): React.JSX.Element;
|
|
1163
|
+
|
|
1164
|
+
type PageContextProps = {
|
|
1165
|
+
page: PageType | ArticleType;
|
|
1166
|
+
};
|
|
1167
|
+
declare const PageContext: React__default.Context<PageContextProps>;
|
|
1168
|
+
|
|
1169
|
+
type PageContextProviderProps = PageContextProps & {
|
|
1170
|
+
children: React__default.ReactNode;
|
|
1171
|
+
};
|
|
1172
|
+
declare function PageContextProvider({ page, children, }: PageContextProviderProps): React__default.JSX.Element;
|
|
1173
|
+
|
|
1174
|
+
declare function usePageContext(): PageContextProps;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* @param {ids} ids - the venue ids in number format.
|
|
1178
|
+
* @return {Array} - Returns array of tprek formatted string ids.
|
|
1179
|
+
*/
|
|
1180
|
+
declare function getVenueIds(ids: number[]): string[];
|
|
1181
|
+
/**
|
|
1182
|
+
* @param {event} - event.
|
|
1183
|
+
* @return {boolean} - Returns true if event is closed.
|
|
1184
|
+
*/
|
|
1185
|
+
declare const isEventClosed: (event: EventType) => boolean;
|
|
1186
|
+
|
|
1187
|
+
declare function Carousel({ children: items, className, itemsDesktop, itemsMobile, ...restOfBackwardCompatibleProps }: CarouselProps<unknown>): React__default.JSX.Element;
|
|
1188
|
+
|
|
1189
|
+
type LargeCardProps = {
|
|
1190
|
+
/**
|
|
1191
|
+
* Card id.
|
|
1192
|
+
*/
|
|
1193
|
+
id?: string;
|
|
1194
|
+
/**
|
|
1195
|
+
* Card container aria-label.
|
|
1196
|
+
*/
|
|
1197
|
+
ariaLabel?: string;
|
|
1198
|
+
/**
|
|
1199
|
+
* Card image label.
|
|
1200
|
+
*/
|
|
1201
|
+
imageLabel?: string;
|
|
1202
|
+
/**
|
|
1203
|
+
* Card image url.
|
|
1204
|
+
*/
|
|
1205
|
+
imageUrl?: string | null;
|
|
1206
|
+
/**
|
|
1207
|
+
* Card image image position.
|
|
1208
|
+
*/
|
|
1209
|
+
imagePosition?: 'image-right' | 'image-left';
|
|
1210
|
+
/**
|
|
1211
|
+
* Card subtitle.
|
|
1212
|
+
*/
|
|
1213
|
+
subTitle?: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* Card main text contents.
|
|
1216
|
+
*/
|
|
1217
|
+
text?: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* Card title.
|
|
1220
|
+
*/
|
|
1221
|
+
title?: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* Card link url.
|
|
1224
|
+
*/
|
|
1225
|
+
url?: string;
|
|
1226
|
+
/**
|
|
1227
|
+
* Additional classname for the card.
|
|
1228
|
+
*/
|
|
1229
|
+
className?: string;
|
|
1230
|
+
/**
|
|
1231
|
+
* Card custom content (component) below the main text.
|
|
1232
|
+
*/
|
|
1233
|
+
customContent?: React__default.ReactNode;
|
|
1234
|
+
/**
|
|
1235
|
+
* Boolean indicating whether the link arrow icon is shown.
|
|
1236
|
+
*/
|
|
1237
|
+
hasLink?: boolean;
|
|
1238
|
+
/**
|
|
1239
|
+
* Boolean indicating whether the text content is clamped in the Card.
|
|
1240
|
+
*/
|
|
1241
|
+
clampText?: boolean;
|
|
1242
|
+
/**
|
|
1243
|
+
* Boolean indicating whether the Card link opens in new tab.
|
|
1244
|
+
*/
|
|
1245
|
+
openInNewTab?: boolean;
|
|
1246
|
+
/**
|
|
1247
|
+
* Boolean indicating whether the border styles should be applied to the Card.
|
|
1248
|
+
*/
|
|
1249
|
+
withBorder?: boolean;
|
|
1250
|
+
/**
|
|
1251
|
+
* Boolean indicating whether flex attribute should be added to the container of the link.
|
|
1252
|
+
*/
|
|
1253
|
+
flex?: boolean;
|
|
1254
|
+
};
|
|
1255
|
+
declare function LargeCard({ id, ariaLabel, className, imageUrl, imagePosition, imageLabel, title, subTitle, text, customContent, hasLink, url, clampText, openInNewTab, withBorder, flex, }: LargeCardProps): React__default.JSX.Element;
|
|
1256
|
+
|
|
1257
|
+
type ArchiveSearchPageProps = {
|
|
1258
|
+
/**
|
|
1259
|
+
* Navigation component for the archive search page.
|
|
1260
|
+
*/
|
|
1261
|
+
navigation: React__default.ReactNode;
|
|
1262
|
+
/**
|
|
1263
|
+
*Content component for the archive search page.
|
|
1264
|
+
*/
|
|
1265
|
+
content: React__default.ReactNode;
|
|
1266
|
+
/**
|
|
1267
|
+
* Footer component for the archive search page.
|
|
1268
|
+
*/
|
|
1269
|
+
footer: React__default.ReactNode;
|
|
1270
|
+
};
|
|
1271
|
+
declare function ArchivePage({ navigation, content, footer, }: ArchiveSearchPageProps): React__default.JSX.Element;
|
|
1272
|
+
|
|
1273
|
+
interface SearchPageContentProps {
|
|
1274
|
+
/**
|
|
1275
|
+
* Page object from wordpress headless cms.
|
|
1276
|
+
*/
|
|
1277
|
+
page?: PageType | ArticleType;
|
|
1278
|
+
/**
|
|
1279
|
+
* Breadcrumbs object from wordpress headless cms.
|
|
1280
|
+
*/
|
|
1281
|
+
breadcrumbs?: BreadcrumbUnionType | ((page?: PageType | ArticleType) => BreadcrumbUnionType);
|
|
1282
|
+
/**
|
|
1283
|
+
* Custom content react components to be dispayed on the page.
|
|
1284
|
+
*/
|
|
1285
|
+
customContent?: string | JSX.Element;
|
|
1286
|
+
/**
|
|
1287
|
+
* Archive collection items..
|
|
1288
|
+
*/
|
|
1289
|
+
items?: CollectionItemType[];
|
|
1290
|
+
/**
|
|
1291
|
+
* Boolean indicating whether the page is loading.
|
|
1292
|
+
*/
|
|
1293
|
+
isLoading?: boolean;
|
|
1294
|
+
/**
|
|
1295
|
+
* Boolean indicating whether the collection has more items.
|
|
1296
|
+
*/
|
|
1297
|
+
hasMore?: boolean;
|
|
1298
|
+
/**
|
|
1299
|
+
* Boolean indicating whether no results found for the collection items.
|
|
1300
|
+
*/
|
|
1301
|
+
noResults?: boolean;
|
|
1302
|
+
/**
|
|
1303
|
+
* Additional classname for the SearchPageContent.
|
|
1304
|
+
*/
|
|
1305
|
+
className?: string;
|
|
1306
|
+
/**
|
|
1307
|
+
* All tags collection for the page content.
|
|
1308
|
+
*/
|
|
1309
|
+
tags?: SearchTag[];
|
|
1310
|
+
/**
|
|
1311
|
+
* Applied search tags collection for the page content.
|
|
1312
|
+
*/
|
|
1313
|
+
currentTags?: SearchTag[];
|
|
1314
|
+
/**
|
|
1315
|
+
* Boolean indicating whether the tag should update on change.
|
|
1316
|
+
*/
|
|
1317
|
+
withQuery?: boolean;
|
|
1318
|
+
/**
|
|
1319
|
+
* If true then current search text is updated on change.
|
|
1320
|
+
*/
|
|
1321
|
+
currentText?: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* Boolean indicating whether the first search item should be rendered as a large card.
|
|
1324
|
+
*/
|
|
1325
|
+
largeFirstItem?: boolean;
|
|
1326
|
+
/**
|
|
1327
|
+
* Search button click handler.
|
|
1328
|
+
*/
|
|
1329
|
+
onSearch?: (freeSearch: string, tags: SearchTag[]) => void;
|
|
1330
|
+
/**
|
|
1331
|
+
* Load more button click handler.
|
|
1332
|
+
*/
|
|
1333
|
+
onLoadMore?: () => void;
|
|
1334
|
+
/**
|
|
1335
|
+
* Custom renderer for the large card.
|
|
1336
|
+
*/
|
|
1337
|
+
createLargeCard?: (item: CollectionItemType, index?: number) => React__default.ReactElement<typeof LargeCard>;
|
|
1338
|
+
createCard?: (item: CollectionItemType, index?: number) => React__default.ReactElement<typeof Card>;
|
|
1339
|
+
}
|
|
1340
|
+
declare function SearchPageContent(props: SearchPageContentProps): React__default.JSX.Element;
|
|
1341
|
+
|
|
1342
|
+
type BackgroundImageProps = {
|
|
1343
|
+
/**
|
|
1344
|
+
* Background image id.
|
|
1345
|
+
*/
|
|
1346
|
+
id: string;
|
|
1347
|
+
/**
|
|
1348
|
+
* Background image url.
|
|
1349
|
+
*/
|
|
1350
|
+
url?: string | null;
|
|
1351
|
+
/**
|
|
1352
|
+
* Background fallback image url.
|
|
1353
|
+
*/
|
|
1354
|
+
customFallbackUrl?: string;
|
|
1355
|
+
/**
|
|
1356
|
+
* Background image label tag.
|
|
1357
|
+
*/
|
|
1358
|
+
labelTag?: string;
|
|
1359
|
+
} & React__default.HTMLAttributes<HTMLDivElement>;
|
|
1360
|
+
declare function BackgroundImage({ id, url, customFallbackUrl, labelTag, children, ...divProps }: BackgroundImageProps): React__default.JSX.Element;
|
|
1361
|
+
|
|
1362
|
+
type ImageProps = {
|
|
1363
|
+
/**
|
|
1364
|
+
* Image id.
|
|
1365
|
+
*/
|
|
1366
|
+
id: string;
|
|
1367
|
+
/**
|
|
1368
|
+
* Image src attribute value.
|
|
1369
|
+
*/
|
|
1370
|
+
src: string;
|
|
1371
|
+
/**
|
|
1372
|
+
* Alt image text.
|
|
1373
|
+
*/
|
|
1374
|
+
alt: string;
|
|
1375
|
+
/**
|
|
1376
|
+
* Image fallback url.
|
|
1377
|
+
*/
|
|
1378
|
+
customFallbackSrc?: string;
|
|
1379
|
+
/**
|
|
1380
|
+
* Image caption.
|
|
1381
|
+
*/
|
|
1382
|
+
caption?: string;
|
|
1383
|
+
} & Omit<React__default.HTMLAttributes<HTMLImageElement>, 'src' | 'alt'>;
|
|
1384
|
+
declare function Image({ id, src, alt, customFallbackSrc, caption, style, ...imageProps }: ImageProps): React__default.JSX.Element;
|
|
1385
|
+
|
|
1386
|
+
type ResolveImageProps = {
|
|
1387
|
+
id?: string;
|
|
1388
|
+
url?: string | null;
|
|
1389
|
+
customFallbackUrl?: string;
|
|
1390
|
+
};
|
|
1391
|
+
declare const useResolveImageUrl: ({ id, url, customFallbackUrl, }: ResolveImageProps) => string;
|
|
1392
|
+
|
|
1393
|
+
/** Default order for sorting languages. */
|
|
1394
|
+
declare const LANGUAGE_CODE_ORDINAL_NUMBER: {
|
|
1395
|
+
readonly FI: 1;
|
|
1396
|
+
readonly SV: 2;
|
|
1397
|
+
readonly EN: 3;
|
|
1398
|
+
};
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* Find language from language list by language code.
|
|
1402
|
+
* @param {Language[]} languages - List of languages
|
|
1403
|
+
* @param {string} languageCode - Language code
|
|
1404
|
+
* @returns {Language | undefined} Language from given language list with the given
|
|
1405
|
+
* language code or undefined if not found
|
|
1406
|
+
*/
|
|
1407
|
+
declare function findLanguage(languages: LanguageFragment[], languageCode: string): LanguageFragment | undefined;
|
|
1408
|
+
|
|
1409
|
+
type NonEmptyLanguage = LanguageFragment & {
|
|
1410
|
+
code: NonNullable<LanguageFragment['code']>;
|
|
1411
|
+
name: NonNullable<LanguageFragment['name']>;
|
|
1412
|
+
};
|
|
1413
|
+
|
|
1414
|
+
/** Sorting function for NonEmptyLanguage elements. */
|
|
1415
|
+
declare const languageSorter: (left: NonEmptyLanguage, right: NonEmptyLanguage) => number;
|
|
1416
|
+
|
|
1417
|
+
/** Map a NonEmptyLanguage to a primary LanguageOption. */
|
|
1418
|
+
declare const toPrimaryLanguageOption: (language: NonEmptyLanguage) => LanguageOption;
|
|
1419
|
+
|
|
1420
|
+
declare const isNonEmptyLanguage: (language?: LanguageFragment | null) => language is NonEmptyLanguage;
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* Strips all HTML tags from a string and decodes HTML entities.
|
|
1424
|
+
* Uses a safe regex (/<[^>]*>/gi) to prevent ReDoS (Regular Expression Denial of Service).
|
|
1425
|
+
*
|
|
1426
|
+
* @param {string} html The input string containing HTML markup.
|
|
1427
|
+
* @returns {string} The resulting text string with all HTML tags removed and entities decoded.
|
|
1428
|
+
*/
|
|
1429
|
+
declare const getTextFromHtml: (html: string) => string;
|
|
1430
|
+
|
|
1431
|
+
export { ArchivePage, ArticleType, BackgroundImage, Card, CardProps, Carousel, CarouselProps, CollectionItemType, CollectionProps, CollectionType, Config, ConfigProvider, ContentContainer, EventSearchFragment as EventSearch, EventSearchCarouselFragment as EventSearchCarousel, EventSearchCollectionType, EventSelectedFragment as EventSelected, EventSelectedCarouselFragment as EventSelectedCarousel, EventSelectionCollectionType, Image, LANGUAGE_CODE_ORDINAL_NUMBER, LanguageFragment as Language, LanguageCodeEnum, LargeCard, LayoutArticlesFragment as LayoutArticle, LayoutArticlesCarouselFragment as LayoutArticleCarousel, LayoutLinkListFragment as LayoutLinkList, LayoutPagesFragment as LayoutPage, LayoutPagesCarouselFragment as LayoutPageCarousel, Link, LinkBox, LocationsSelectedFragment as LocationsSelected, LocationsSelectedCarouselFragment as LocationsSelectedCarousel, LocationsSelectionCollectionType, ModuleItemTypeEnum, PageContent, PageContentBreadcrumb, PageContentProps, PageContext, PageContextProvider, PageMainContent, PageMeta, PageModule, PageSection, PageSidebarModule, PageType, SearchPageContent, SearchTag, SecondaryLink, Tag as TagComponent, defaultConfig, disableBreadcrumbsLastLink, filterPagesAndArticles, findLanguage, getArticlePageCardProps, getBreadcrumbListItems, getBreadcrumbsFromPage, getCollectionCards, getCollectionUIType, getCollections, getElementTextContent, getEventCardProps, getLocationCardProps, getTextFromHtml, getUri, getVenueIds, isArticleType, isEventClosed, isEventSearch, isEventSearchCarousel, isEventSearchCollection, isEventSelected, isEventSelectedCarousel, isEventSelectionCollection, isEventType, isLanguage, isLayoutArticle, isLayoutArticleCarousel, isLayoutCard, isLayoutCards, isLayoutContent, isLayoutImage, isLayoutImageGallery, isLayoutLinkList, isLayoutPage, isLayoutPageCarousel, isLayoutSocialMediaFeed, isLayoutSteps, isLinkItem, isLocationsSelected, isLocationsSelectedCarousel, isLocationsSelectionCollection, isNonEmptyLanguage, isPageType, isVenueType, languageSorter, toPrimaryLanguageOption, useConfig, useHeadlessCmsLink, usePageContext, useResolveImageUrl };
|
|
1432
|
+
export type { BackgroundImageProps, ImageProps, LargeCardProps, LinkProps$1 as LinkProps, NonEmptyLanguage, PageMainContentProps, PageMetaProps };
|