@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
|
@@ -0,0 +1,791 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { A as ArticleQuery, u as PageQuery, G as MenuQuery, x as PostsQuery, w as PagesQuery, ab as PageChildrenSearchQuery, y as CategoriesQuery, C as CategoryQuery, z as TagQuery, B as TagsQuery, r as LanguageFragment, N as Notification$1, L as LanguageCodeEnum, q as LayoutLinkListFragment, h as LayoutArticlesFragment, i as LayoutPagesFragment, c as LayoutCardsFragment, ac as Breadcrumb } from './__generated__-mcycL1jB.js';
|
|
3
|
+
import { BreadcrumbProps, BreadcrumbListItem, KorosType, ButtonVariant, ButtonTheme, ButtonPresetTheme } from 'hds-react';
|
|
4
|
+
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
5
|
+
import { Config as Config$1 } from 'isomorphic-dompurify';
|
|
6
|
+
|
|
7
|
+
type Menu = MenuQuery['menu'];
|
|
8
|
+
type PageType = PageQuery['page'];
|
|
9
|
+
type ArticleType = ArticleQuery['post'];
|
|
10
|
+
type SidebarContent$1 = NonNullable<PageQuery['page']>['sidebar'];
|
|
11
|
+
type PageModule = NonNullable<NonNullable<PageQuery['page']>['modules']>[number];
|
|
12
|
+
type PageSidebarModule = NonNullable<NonNullable<PageQuery['page']>['sidebar']>[number];
|
|
13
|
+
type Articles = PostsQuery['posts'];
|
|
14
|
+
type Pages = PagesQuery['pages'];
|
|
15
|
+
type PageChildren = NonNullable<PageChildrenSearchQuery['page']>['children'];
|
|
16
|
+
type Category = CategoryQuery['category'];
|
|
17
|
+
type Categories = CategoriesQuery['categories'];
|
|
18
|
+
type Tag = TagQuery['tag'];
|
|
19
|
+
type Tags = TagsQuery['tags'];
|
|
20
|
+
type SearchTag = Category | Tag;
|
|
21
|
+
|
|
22
|
+
declare enum ModuleItemTypeEnum {
|
|
23
|
+
Article = "article",
|
|
24
|
+
Page = "page",
|
|
25
|
+
Link = "link",
|
|
26
|
+
Event = "event",
|
|
27
|
+
Venue = "venue"
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare enum EventTypeId {
|
|
31
|
+
Course = "Course",
|
|
32
|
+
General = "General"
|
|
33
|
+
}
|
|
34
|
+
type EventsByIdsQuery = {
|
|
35
|
+
__typename?: 'Query';
|
|
36
|
+
eventsByIds: {
|
|
37
|
+
__typename?: 'EventListResponse';
|
|
38
|
+
data: Array<{
|
|
39
|
+
__typename?: 'EventDetails';
|
|
40
|
+
id: string;
|
|
41
|
+
internalId?: string | null;
|
|
42
|
+
audienceMinAge?: string | null;
|
|
43
|
+
audienceMaxAge?: string | null;
|
|
44
|
+
eventStatus?: string | null;
|
|
45
|
+
typeId?: EventTypeId | null;
|
|
46
|
+
endTime?: string | null;
|
|
47
|
+
startTime?: string | null;
|
|
48
|
+
publisher?: string | null;
|
|
49
|
+
enrolmentStartTime?: string | null;
|
|
50
|
+
enrolmentEndTime?: string | null;
|
|
51
|
+
externalLinks: Array<{
|
|
52
|
+
__typename?: 'ExternalLink';
|
|
53
|
+
name?: string | null;
|
|
54
|
+
link?: string | null;
|
|
55
|
+
}>;
|
|
56
|
+
images: Array<{
|
|
57
|
+
__typename?: 'EventImage';
|
|
58
|
+
id?: string | null;
|
|
59
|
+
name: string;
|
|
60
|
+
url: string;
|
|
61
|
+
photographerName?: string | null;
|
|
62
|
+
}>;
|
|
63
|
+
subEvents: Array<{
|
|
64
|
+
__typename?: 'InternalIdObject';
|
|
65
|
+
internalId?: string | null;
|
|
66
|
+
}>;
|
|
67
|
+
superEvent?: {
|
|
68
|
+
__typename?: 'InternalIdObject';
|
|
69
|
+
internalId?: string | null;
|
|
70
|
+
} | null;
|
|
71
|
+
inLanguage: Array<{
|
|
72
|
+
__typename?: 'InLanguage';
|
|
73
|
+
name?: {
|
|
74
|
+
__typename?: 'LocalizedObject';
|
|
75
|
+
en?: string | null;
|
|
76
|
+
fi?: string | null;
|
|
77
|
+
sv?: string | null;
|
|
78
|
+
} | null;
|
|
79
|
+
}>;
|
|
80
|
+
keywords: Array<{
|
|
81
|
+
__typename?: 'Keyword';
|
|
82
|
+
id?: string | null;
|
|
83
|
+
internalId: string;
|
|
84
|
+
dataSource?: string | null;
|
|
85
|
+
hasUpcomingEvents?: boolean | null;
|
|
86
|
+
name?: {
|
|
87
|
+
__typename?: 'LocalizedObject';
|
|
88
|
+
en?: string | null;
|
|
89
|
+
fi?: string | null;
|
|
90
|
+
sv?: string | null;
|
|
91
|
+
} | null;
|
|
92
|
+
}>;
|
|
93
|
+
location?: {
|
|
94
|
+
__typename?: 'Place';
|
|
95
|
+
id?: string | null;
|
|
96
|
+
hasUpcomingEvents?: boolean | null;
|
|
97
|
+
internalId: string;
|
|
98
|
+
email?: string | null;
|
|
99
|
+
postalCode?: string | null;
|
|
100
|
+
divisions?: Array<{
|
|
101
|
+
__typename?: 'Division';
|
|
102
|
+
type: string;
|
|
103
|
+
name?: {
|
|
104
|
+
__typename?: 'LocalizedObject';
|
|
105
|
+
en?: string | null;
|
|
106
|
+
fi?: string | null;
|
|
107
|
+
sv?: string | null;
|
|
108
|
+
} | null;
|
|
109
|
+
}> | null;
|
|
110
|
+
infoUrl?: {
|
|
111
|
+
__typename?: 'LocalizedObject';
|
|
112
|
+
en?: string | null;
|
|
113
|
+
fi?: string | null;
|
|
114
|
+
sv?: string | null;
|
|
115
|
+
} | null;
|
|
116
|
+
name?: {
|
|
117
|
+
__typename?: 'LocalizedObject';
|
|
118
|
+
en?: string | null;
|
|
119
|
+
fi?: string | null;
|
|
120
|
+
sv?: string | null;
|
|
121
|
+
} | null;
|
|
122
|
+
addressLocality?: {
|
|
123
|
+
__typename?: 'LocalizedObject';
|
|
124
|
+
en?: string | null;
|
|
125
|
+
fi?: string | null;
|
|
126
|
+
sv?: string | null;
|
|
127
|
+
} | null;
|
|
128
|
+
streetAddress?: {
|
|
129
|
+
__typename?: 'LocalizedObject';
|
|
130
|
+
en?: string | null;
|
|
131
|
+
fi?: string | null;
|
|
132
|
+
sv?: string | null;
|
|
133
|
+
} | null;
|
|
134
|
+
position?: {
|
|
135
|
+
__typename?: 'PlacePosition';
|
|
136
|
+
coordinates: Array<number>;
|
|
137
|
+
} | null;
|
|
138
|
+
telephone?: {
|
|
139
|
+
__typename?: 'LocalizedObject';
|
|
140
|
+
en?: string | null;
|
|
141
|
+
fi?: string | null;
|
|
142
|
+
sv?: string | null;
|
|
143
|
+
} | null;
|
|
144
|
+
} | null;
|
|
145
|
+
offers: Array<{
|
|
146
|
+
__typename?: 'Offer';
|
|
147
|
+
isFree?: boolean | null;
|
|
148
|
+
price?: {
|
|
149
|
+
__typename?: 'LocalizedObject';
|
|
150
|
+
en?: string | null;
|
|
151
|
+
fi?: string | null;
|
|
152
|
+
sv?: string | null;
|
|
153
|
+
} | null;
|
|
154
|
+
description?: {
|
|
155
|
+
__typename?: 'LocalizedObject';
|
|
156
|
+
en?: string | null;
|
|
157
|
+
fi?: string | null;
|
|
158
|
+
sv?: string | null;
|
|
159
|
+
} | null;
|
|
160
|
+
infoUrl?: {
|
|
161
|
+
__typename?: 'LocalizedObject';
|
|
162
|
+
en?: string | null;
|
|
163
|
+
fi?: string | null;
|
|
164
|
+
sv?: string | null;
|
|
165
|
+
} | null;
|
|
166
|
+
}>;
|
|
167
|
+
name: {
|
|
168
|
+
__typename?: 'LocalizedObject';
|
|
169
|
+
en?: string | null;
|
|
170
|
+
fi?: string | null;
|
|
171
|
+
sv?: string | null;
|
|
172
|
+
};
|
|
173
|
+
description?: {
|
|
174
|
+
__typename?: 'LocalizedObject';
|
|
175
|
+
en?: string | null;
|
|
176
|
+
fi?: string | null;
|
|
177
|
+
sv?: string | null;
|
|
178
|
+
} | null;
|
|
179
|
+
shortDescription?: {
|
|
180
|
+
__typename?: 'LocalizedObject';
|
|
181
|
+
en?: string | null;
|
|
182
|
+
fi?: string | null;
|
|
183
|
+
sv?: string | null;
|
|
184
|
+
} | null;
|
|
185
|
+
provider?: {
|
|
186
|
+
__typename?: 'LocalizedObject';
|
|
187
|
+
en?: string | null;
|
|
188
|
+
fi?: string | null;
|
|
189
|
+
sv?: string | null;
|
|
190
|
+
} | null;
|
|
191
|
+
infoUrl?: {
|
|
192
|
+
__typename?: 'LocalizedObject';
|
|
193
|
+
en?: string | null;
|
|
194
|
+
fi?: string | null;
|
|
195
|
+
sv?: string | null;
|
|
196
|
+
} | null;
|
|
197
|
+
audience: Array<{
|
|
198
|
+
__typename?: 'Audience';
|
|
199
|
+
id?: string | null;
|
|
200
|
+
name?: {
|
|
201
|
+
__typename?: 'LocalizedObject';
|
|
202
|
+
en?: string | null;
|
|
203
|
+
fi?: string | null;
|
|
204
|
+
sv?: string | null;
|
|
205
|
+
} | null;
|
|
206
|
+
}>;
|
|
207
|
+
registration?: {
|
|
208
|
+
__typename?: 'Registration';
|
|
209
|
+
enrolmentStartTime?: string | null;
|
|
210
|
+
enrolmentEndTime?: string | null;
|
|
211
|
+
remainingAttendeeCapacity?: number | null;
|
|
212
|
+
audienceMinAge?: string | null;
|
|
213
|
+
audienceMaxAge?: string | null;
|
|
214
|
+
} | null;
|
|
215
|
+
locationExtraInfo?: {
|
|
216
|
+
__typename?: 'LocalizedObject';
|
|
217
|
+
en?: string | null;
|
|
218
|
+
fi?: string | null;
|
|
219
|
+
sv?: string | null;
|
|
220
|
+
} | null;
|
|
221
|
+
}>;
|
|
222
|
+
meta: {
|
|
223
|
+
__typename?: 'Meta';
|
|
224
|
+
count: number;
|
|
225
|
+
next?: string | null;
|
|
226
|
+
previous?: string | null;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
type EventType = EventsByIdsQuery['eventsByIds']['data'][number];
|
|
232
|
+
|
|
233
|
+
type VenuesByIdsQuery = {
|
|
234
|
+
__typename?: 'Query';
|
|
235
|
+
venuesByIds: Array<{
|
|
236
|
+
__typename?: 'Venue';
|
|
237
|
+
description?: string | null;
|
|
238
|
+
id: string;
|
|
239
|
+
image?: string | null;
|
|
240
|
+
name?: string | null;
|
|
241
|
+
streetAddress?: string | null;
|
|
242
|
+
addressLocality?: string | null;
|
|
243
|
+
providerType?: string | null;
|
|
244
|
+
displayedServiceOwnerType?: string | null;
|
|
245
|
+
ontologyWords: Array<{
|
|
246
|
+
__typename?: 'Ontology';
|
|
247
|
+
id?: number | null;
|
|
248
|
+
label?: string | null;
|
|
249
|
+
} | null>;
|
|
250
|
+
}>;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
type VenueType = VenuesByIdsQuery['venuesByIds'][number];
|
|
254
|
+
|
|
255
|
+
type CardDirection = 'fixed-horisontal' | 'fixed-vertical' | 'responsive' | 'responsive-reverse';
|
|
256
|
+
type CardAlignment = 'left' | 'right' | 'center-left' | 'center-right' | 'delimited-left' | 'delimited-right';
|
|
257
|
+
type CardProps = {
|
|
258
|
+
/**
|
|
259
|
+
* Card id.
|
|
260
|
+
*/
|
|
261
|
+
id?: string;
|
|
262
|
+
/**
|
|
263
|
+
* Card container aria-label.
|
|
264
|
+
*/
|
|
265
|
+
ariaLabel?: string;
|
|
266
|
+
/**
|
|
267
|
+
* Additional classname for the card.
|
|
268
|
+
*/
|
|
269
|
+
className?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Card image url.
|
|
272
|
+
*/
|
|
273
|
+
imageUrl?: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* Card image label.
|
|
276
|
+
*/
|
|
277
|
+
imageLabel?: string;
|
|
278
|
+
/**
|
|
279
|
+
* Card title.
|
|
280
|
+
*/
|
|
281
|
+
title?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Boolean indicating whether the styling applied for the title with icon layout.
|
|
284
|
+
*/
|
|
285
|
+
withTitleIcon?: boolean;
|
|
286
|
+
/**
|
|
287
|
+
* Card title icon.
|
|
288
|
+
*/
|
|
289
|
+
titleIcon?: React__default.ReactNode | string;
|
|
290
|
+
/**
|
|
291
|
+
* Card subtitle.
|
|
292
|
+
*/
|
|
293
|
+
subTitle?: string;
|
|
294
|
+
/**
|
|
295
|
+
* Card main text contents.
|
|
296
|
+
*/
|
|
297
|
+
text?: string;
|
|
298
|
+
/**
|
|
299
|
+
* Card custom content (component) below the main text.
|
|
300
|
+
*/
|
|
301
|
+
customContent?: React__default.ReactNode | string;
|
|
302
|
+
/**
|
|
303
|
+
* Boolean indicating whether the link arrow icon is shown.
|
|
304
|
+
*/
|
|
305
|
+
hasLink?: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* If true, show link arrow icon label.
|
|
308
|
+
*/
|
|
309
|
+
linkArrowLabel?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Card link url.
|
|
312
|
+
*/
|
|
313
|
+
url?: string;
|
|
314
|
+
/**
|
|
315
|
+
* Boolean indicating whether the border styles should be applied to the Card.
|
|
316
|
+
*/
|
|
317
|
+
withBorder?: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* Boolean indicating whether the shadow styles should be applied to the Card.
|
|
320
|
+
*/
|
|
321
|
+
withShadow?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Boolean which defines the Card content direction.
|
|
324
|
+
*/
|
|
325
|
+
direction?: CardDirection;
|
|
326
|
+
/**
|
|
327
|
+
* Defines the Card text and custon content alignement inside the Card.
|
|
328
|
+
*/
|
|
329
|
+
alignment?: CardAlignment;
|
|
330
|
+
/**
|
|
331
|
+
* Boolean indicating whether the text content is clamped in the Card.
|
|
332
|
+
*/
|
|
333
|
+
clampText?: boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Boolean indicating whether the Card link opens in new tab.
|
|
336
|
+
*/
|
|
337
|
+
openLinkInNewTab?: boolean;
|
|
338
|
+
/**
|
|
339
|
+
* Custom css properties for the Card container
|
|
340
|
+
*/
|
|
341
|
+
style?: React__default.CSSProperties;
|
|
342
|
+
/**
|
|
343
|
+
* Backgroud color of the Card
|
|
344
|
+
*/
|
|
345
|
+
backgroundColor?: string;
|
|
346
|
+
/**
|
|
347
|
+
* Defines the width ratio for the text and image element in the card. Primary is wider.
|
|
348
|
+
*/
|
|
349
|
+
primaryContent?: 'image' | 'text';
|
|
350
|
+
/**
|
|
351
|
+
* Boolean indicating whether flex attribute should be added to the container of the link.
|
|
352
|
+
*/
|
|
353
|
+
flex?: boolean;
|
|
354
|
+
};
|
|
355
|
+
declare function Card(props: CardProps): React__default.JSX.Element;
|
|
356
|
+
|
|
357
|
+
declare const TABLE_VARIANTS: readonly ["dark", "dense", "light", "with-vertical-lines", "zebra"];
|
|
358
|
+
type TableVariant = (typeof TABLE_VARIANTS)[number];
|
|
359
|
+
type Components = {
|
|
360
|
+
p?: React__default.ComponentType<{
|
|
361
|
+
children: React__default.ReactNode;
|
|
362
|
+
}>;
|
|
363
|
+
h2?: React__default.ComponentType<{
|
|
364
|
+
children: React__default.ReactNode;
|
|
365
|
+
}>;
|
|
366
|
+
a?: React__default.ComponentType<React__default.AnchorHTMLAttributes<HTMLAnchorElement>> | string;
|
|
367
|
+
table?: React__default.ComponentType<React__default.TableHTMLAttributes<HTMLTableElement>> | string;
|
|
368
|
+
tableVariants?: TableVariant[];
|
|
369
|
+
img?: React__default.ComponentType<React__default.ImgHTMLAttributes<HTMLImageElement>> | string;
|
|
370
|
+
iframe?: React__default.ComponentType<React__default.IframeHTMLAttributes<HTMLIFrameElement>>;
|
|
371
|
+
};
|
|
372
|
+
type HtmlToReactProps = {
|
|
373
|
+
/**
|
|
374
|
+
* Additional children to render inside the grid.
|
|
375
|
+
*/
|
|
376
|
+
children: string;
|
|
377
|
+
/**
|
|
378
|
+
* React components for custom html elements transformation.
|
|
379
|
+
*/
|
|
380
|
+
components?: Components;
|
|
381
|
+
/**
|
|
382
|
+
* Option to allow unsafe tags, otherwise cleared and not rendered.
|
|
383
|
+
*/
|
|
384
|
+
allowedUnsafeTags?: Config$1['ALLOWED_TAGS'];
|
|
385
|
+
/**
|
|
386
|
+
* Trusted origins for url properties and attributes, for elements such as iframes and scripts.
|
|
387
|
+
*/
|
|
388
|
+
trustedOrigins?: string[];
|
|
389
|
+
};
|
|
390
|
+
declare function HtmlToReact({ children: dirty, components, allowedUnsafeTags, trustedOrigins, }: HtmlToReactProps): React__default.JSX.Element;
|
|
391
|
+
|
|
392
|
+
type MenuItem = Omit<NonNullable<NonNullable<Menu>['menuItems']>['nodes'][0], '__typename'>;
|
|
393
|
+
type NavigationProps = {
|
|
394
|
+
menu?: Menu;
|
|
395
|
+
universalBarMenu?: Menu;
|
|
396
|
+
languages?: LanguageFragment[];
|
|
397
|
+
className?: string;
|
|
398
|
+
userNavigation?: React__default.ReactNode;
|
|
399
|
+
onTitleClick: () => void;
|
|
400
|
+
getPathnameForLanguage: (language: LanguageFragment, currentLanguage: LanguageFragment, allLanguages: LanguageFragment[]) => string;
|
|
401
|
+
getIsItemActive?: (menuItem: MenuItem) => boolean;
|
|
402
|
+
};
|
|
403
|
+
declare function Navigation({ menu, universalBarMenu, languages, className, userNavigation, onTitleClick, getPathnameForLanguage, getIsItemActive, }: NavigationProps): React__default.JSX.Element;
|
|
404
|
+
|
|
405
|
+
type NotificationProps = {
|
|
406
|
+
/**
|
|
407
|
+
* Notification object.
|
|
408
|
+
*/
|
|
409
|
+
notification?: Notification$1 | null;
|
|
410
|
+
};
|
|
411
|
+
declare function Notification({ notification }: NotificationProps): false | React__default.JSX.Element;
|
|
412
|
+
|
|
413
|
+
type PageProps = {
|
|
414
|
+
navigation: React__default.ReactNode;
|
|
415
|
+
notification?: React__default.ReactNode;
|
|
416
|
+
content: React__default.ReactNode;
|
|
417
|
+
footer: React__default.ReactNode;
|
|
418
|
+
className?: string;
|
|
419
|
+
};
|
|
420
|
+
declare function Page({ navigation, notification, content, footer, className, }: PageProps): React__default.JSX.Element;
|
|
421
|
+
|
|
422
|
+
type CarouselProps<T> = {
|
|
423
|
+
/**
|
|
424
|
+
* Additional children to render inside the Carousel.
|
|
425
|
+
*/
|
|
426
|
+
children: React.ReactElement<T>[];
|
|
427
|
+
/**
|
|
428
|
+
* Number of items to show per one slide on desktop device.
|
|
429
|
+
*/
|
|
430
|
+
itemsDesktop?: 1 | 2 | 3 | 4 | 5;
|
|
431
|
+
/**
|
|
432
|
+
* Number of items to show per one slide on mobile device.
|
|
433
|
+
*/
|
|
434
|
+
itemsMobile?: 1 | 2;
|
|
435
|
+
/**
|
|
436
|
+
* Additional classname for the card list.
|
|
437
|
+
*/
|
|
438
|
+
className?: string;
|
|
439
|
+
/**
|
|
440
|
+
* Boolean indicating whether the Carousel is shown with dots (number of sliders).
|
|
441
|
+
*/
|
|
442
|
+
withDots?: boolean;
|
|
443
|
+
/**
|
|
444
|
+
* Can the dots be used for navigation
|
|
445
|
+
*/
|
|
446
|
+
navigateWithDots?: boolean;
|
|
447
|
+
/**
|
|
448
|
+
* onLoadMore event handler.
|
|
449
|
+
*/
|
|
450
|
+
onLoadMore?: () => void;
|
|
451
|
+
/**
|
|
452
|
+
* Boolean indicating whether the data collection has more items.
|
|
453
|
+
*/
|
|
454
|
+
hasMore?: boolean;
|
|
455
|
+
/**
|
|
456
|
+
* Boolean indicating whether the Carousel data is loading.
|
|
457
|
+
*/
|
|
458
|
+
loading?: boolean;
|
|
459
|
+
/**
|
|
460
|
+
* Text of load more button.
|
|
461
|
+
*/
|
|
462
|
+
loadMoreButtonLabelText?: string;
|
|
463
|
+
/**
|
|
464
|
+
* Title of the carousel component.
|
|
465
|
+
*/
|
|
466
|
+
title?: string;
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
interface GridProps {
|
|
470
|
+
/**
|
|
471
|
+
* Additional children to render inside the grid.
|
|
472
|
+
*/
|
|
473
|
+
children: React__default.ReactNode;
|
|
474
|
+
/**
|
|
475
|
+
* Number of grid columns.
|
|
476
|
+
*/
|
|
477
|
+
colsCount?: number;
|
|
478
|
+
/**
|
|
479
|
+
* Additional classname for grid container.
|
|
480
|
+
*/
|
|
481
|
+
className?: string;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
type CollectionItemType = ArticleType | PageType | EventType | VenueType;
|
|
485
|
+
type GeneralCollectionType = {
|
|
486
|
+
id?: string;
|
|
487
|
+
title?: string;
|
|
488
|
+
description?: string;
|
|
489
|
+
items: CollectionItemType[];
|
|
490
|
+
showAllUrl?: string;
|
|
491
|
+
__typename?: string;
|
|
492
|
+
};
|
|
493
|
+
type EventSelectionCollectionType = Omit<GeneralCollectionType, 'items'> & {
|
|
494
|
+
events: string[];
|
|
495
|
+
};
|
|
496
|
+
type LocationsSelectionCollectionType = Omit<GeneralCollectionType, 'items'> & {
|
|
497
|
+
venues: number[];
|
|
498
|
+
};
|
|
499
|
+
type EventSearchCollectionType = Omit<GeneralCollectionType, 'items'> & {
|
|
500
|
+
url: string;
|
|
501
|
+
};
|
|
502
|
+
type CollectionType = GeneralCollectionType | EventSelectionCollectionType | EventSearchCollectionType | LocationsSelectionCollectionType;
|
|
503
|
+
|
|
504
|
+
type CollectionProps = {
|
|
505
|
+
/**
|
|
506
|
+
* Collection title.
|
|
507
|
+
*/
|
|
508
|
+
title?: string;
|
|
509
|
+
/**
|
|
510
|
+
* Collection description.
|
|
511
|
+
*/
|
|
512
|
+
description?: string;
|
|
513
|
+
/**
|
|
514
|
+
* Collection cards data.
|
|
515
|
+
*/
|
|
516
|
+
cards: React__default.ReactElement<typeof Card>[];
|
|
517
|
+
/**
|
|
518
|
+
* Additinal classname applied to the Collection container.
|
|
519
|
+
*/
|
|
520
|
+
className?: string;
|
|
521
|
+
/**
|
|
522
|
+
* Collection additional props.
|
|
523
|
+
*/
|
|
524
|
+
collectionContainerProps?: Partial<CarouselProps<typeof Card>> | Partial<GridProps>;
|
|
525
|
+
/**
|
|
526
|
+
* Collection type.
|
|
527
|
+
*/
|
|
528
|
+
type: 'carousel' | 'grid';
|
|
529
|
+
/**
|
|
530
|
+
* Boolean indicating whether the collection data is loading.
|
|
531
|
+
*/
|
|
532
|
+
loading?: boolean;
|
|
533
|
+
/**
|
|
534
|
+
* Boolean indicating whether the collection data has next page.
|
|
535
|
+
*/
|
|
536
|
+
hasNext?: boolean;
|
|
537
|
+
/**
|
|
538
|
+
* Show all link url.
|
|
539
|
+
*/
|
|
540
|
+
showAllUrl?: string;
|
|
541
|
+
/**
|
|
542
|
+
* onLoadMore event handler.
|
|
543
|
+
*/
|
|
544
|
+
onLoadMore?: () => void;
|
|
545
|
+
};
|
|
546
|
+
declare function Collection({ title, description, cards, className, collectionContainerProps, type, loading, hasNext, onLoadMore, showAllUrl, }: CollectionProps): React__default.JSX.Element;
|
|
547
|
+
declare function getEventCollectionCards({ items, getRoutedInternalHref, getEventCardProps, EventCardContent, HelsinkiCityOwnedIcon, organisationPrefixes, locale, }: {
|
|
548
|
+
items: EventType[];
|
|
549
|
+
getRoutedInternalHref: Config['utils']['getRoutedInternalHref'];
|
|
550
|
+
getEventCardProps: Config['utils']['getEventCardProps'];
|
|
551
|
+
EventCardContent?: React__default.FC<Record<string, unknown>>;
|
|
552
|
+
HelsinkiCityOwnedIcon?: React__default.FC<Record<string, unknown>>;
|
|
553
|
+
organisationPrefixes: string[];
|
|
554
|
+
locale?: string;
|
|
555
|
+
}): React__default.JSX.Element[];
|
|
556
|
+
type EventSearchCollectionProps = Omit<CollectionProps, 'cards'> & {
|
|
557
|
+
collection: EventSearchCollectionType;
|
|
558
|
+
convertPastDatesToNow?: boolean;
|
|
559
|
+
};
|
|
560
|
+
/**
|
|
561
|
+
* EventSearchCollection uses an (LinkedEvents) URL to make a API query to fetch the related events.
|
|
562
|
+
*
|
|
563
|
+
* Use `convertPastDatesToNow = true` to fix an issue (between the CMS and the LinkedEvents) when old ended events are shown.
|
|
564
|
+
*/
|
|
565
|
+
declare function EventSearchCollection({ collection, convertPastDatesToNow, ...delegatedProps }: EventSearchCollectionProps): React__default.JSX.Element;
|
|
566
|
+
type EventSelectionCollectionProps = Omit<CollectionProps, 'cards'> & {
|
|
567
|
+
collection: EventSelectionCollectionType;
|
|
568
|
+
};
|
|
569
|
+
declare function EventSelectionCollection({ collection, ...delegatedProps }: EventSelectionCollectionProps): React__default.JSX.Element;
|
|
570
|
+
declare function getLocationsCollectionCards({ items, getRoutedInternalHref, getLocationCardProps, VenueCardContent, HelsinkiCityOwnedIcon, }: {
|
|
571
|
+
items: VenueType[];
|
|
572
|
+
getRoutedInternalHref: Config['utils']['getRoutedInternalHref'];
|
|
573
|
+
getLocationCardProps: Config['utils']['getLocationCardProps'];
|
|
574
|
+
VenueCardContent?: React__default.FC<Record<string, unknown>>;
|
|
575
|
+
HelsinkiCityOwnedIcon?: React__default.FC<Record<string, unknown>>;
|
|
576
|
+
}): React__default.JSX.Element[];
|
|
577
|
+
type LocationsSelectionCollectionProps = Omit<CollectionProps, 'cards'> & {
|
|
578
|
+
collection: LocationsSelectionCollectionType;
|
|
579
|
+
locale: LanguageCodeEnum;
|
|
580
|
+
};
|
|
581
|
+
declare function LocationsSelectionCollection({ collection, locale, ...delegatedProps }: LocationsSelectionCollectionProps): React__default.JSX.Element;
|
|
582
|
+
|
|
583
|
+
type ListProps = {
|
|
584
|
+
/**
|
|
585
|
+
* List item elements.
|
|
586
|
+
*/
|
|
587
|
+
items?: (JSX.Element | JSX.Element[] | null | false)[];
|
|
588
|
+
/**
|
|
589
|
+
* List item variant options.
|
|
590
|
+
*/
|
|
591
|
+
variant?: 'spacing-4-xs' | 'spacing-3-xs' | 'spacing-2-xs' | 'spacing-xs' | 'spacing-s' | 'spacing-m' | 'spacing-l' | 'spacing-xl' | 'spacing-2-xl' | 'spacing-3-xl' | 'spacing-4-xl' | 'spacing-5-xl' | 'spacing-layout-2-xs' | 'spacing-layout-xs' | 'spacing-layout-s' | 'spacing-layout-m' | 'spacing-layout-l' | 'spacing-layout-xl' | 'spacing-layout-2-xl';
|
|
592
|
+
};
|
|
593
|
+
declare function List({ items, variant }: ListProps): React__default.JSX.Element;
|
|
594
|
+
|
|
595
|
+
type SidebarContentLinkListProps = Omit<LayoutLinkListFragment, '__typename'>;
|
|
596
|
+
declare function SidebarContentLinkList({ anchor, title, description, links, }: SidebarContentLinkListProps): React__default.JSX.Element;
|
|
597
|
+
|
|
598
|
+
type PostListItemProps = (NonNullable<LayoutArticlesFragment['articles']>[number] | NonNullable<LayoutPagesFragment['pages']>[number]) & {
|
|
599
|
+
moduleItemType: ModuleItemTypeEnum;
|
|
600
|
+
};
|
|
601
|
+
declare function PostListItem({ id, moduleItemType, title, link, featuredImage, date, }: PostListItemProps): React__default.JSX.Element | null;
|
|
602
|
+
|
|
603
|
+
type CardsListItemProps = Omit<LayoutCardsFragment, '__typename'>;
|
|
604
|
+
declare function SidebarCardsList({ cards }: CardsListItemProps): React__default.JSX.Element | null;
|
|
605
|
+
|
|
606
|
+
type SidebarContentProps = {
|
|
607
|
+
content?: SidebarContent$1;
|
|
608
|
+
SidebarContentLinkListComponent?: typeof SidebarContentLinkList;
|
|
609
|
+
SidebarPostListComponent?: typeof List;
|
|
610
|
+
SideBarPostListItemComponent?: typeof PostListItem;
|
|
611
|
+
SideBarCardsListComponent?: typeof SidebarCardsList;
|
|
612
|
+
};
|
|
613
|
+
declare function SidebarContent({ content, SidebarContentLinkListComponent, SidebarPostListComponent, SideBarPostListItemComponent, SideBarCardsListComponent, }: SidebarContentProps): React__default.JSX.Element;
|
|
614
|
+
|
|
615
|
+
type PageContentLayoutProps = {
|
|
616
|
+
id: string;
|
|
617
|
+
breadcrumbs?: React__default.ReactNode;
|
|
618
|
+
heroContainer?: JSX.Element;
|
|
619
|
+
content: React__default.ReactNode;
|
|
620
|
+
shareLinks?: React__default.ReactNode;
|
|
621
|
+
collections?: React__default.ReactNode;
|
|
622
|
+
sidebarContent: React__default.ReactNode;
|
|
623
|
+
imageSrc?: string | null;
|
|
624
|
+
imageAlt?: string;
|
|
625
|
+
imageLabel?: string;
|
|
626
|
+
backUrl?: string;
|
|
627
|
+
} & HeroProps;
|
|
628
|
+
declare function PageContentLayout({ id, breadcrumbs, heroContainer, content, shareLinks, collections, sidebarContent, imageSrc, imageAlt, imageLabel, backUrl, ...heroProps }: PageContentLayoutProps): React__default.JSX.Element;
|
|
629
|
+
|
|
630
|
+
type HeroProps = {
|
|
631
|
+
title?: string;
|
|
632
|
+
description?: string;
|
|
633
|
+
backgroundColor?: string;
|
|
634
|
+
korosType?: KorosType;
|
|
635
|
+
actionUrl?: string;
|
|
636
|
+
actionUrlTarget?: string;
|
|
637
|
+
actionText?: string;
|
|
638
|
+
isPageType?: boolean;
|
|
639
|
+
};
|
|
640
|
+
type LinkItem = {
|
|
641
|
+
target?: string | null;
|
|
642
|
+
title: string;
|
|
643
|
+
url: string;
|
|
644
|
+
};
|
|
645
|
+
type BreadcrumbUnionType = BreadcrumbProps | BreadcrumbListItem[] | Breadcrumb[];
|
|
646
|
+
type PageContentProps = {
|
|
647
|
+
page?: PageType | ArticleType;
|
|
648
|
+
breadcrumbs?: BreadcrumbUnionType | ((page?: PageType | ArticleType) => BreadcrumbUnionType);
|
|
649
|
+
content?: React.ReactNode | ((page: PageType | ArticleType) => React.ReactNode);
|
|
650
|
+
shareLinks?: React.ReactNode;
|
|
651
|
+
collections?: React.ReactElement<typeof Collection>[] | ((page: PageType | ArticleType) => React.ReactElement<typeof Collection>[]);
|
|
652
|
+
heroContainer?: JSX.Element;
|
|
653
|
+
backUrl?: string;
|
|
654
|
+
sidebarContentProps?: Partial<typeof SidebarContent>;
|
|
655
|
+
PageContentLayoutComponent?: typeof PageContentLayout;
|
|
656
|
+
className?: string;
|
|
657
|
+
onArticlesSearch?: (tag: string) => void;
|
|
658
|
+
[x: string]: any;
|
|
659
|
+
} & Partial<typeof PageContentLayout>;
|
|
660
|
+
|
|
661
|
+
declare const FALLBACK_TRANSLATION_KEYS: readonly ["headerActionBarLogoAlt", "headerActionBarLogoAriaLabel", "headerActionBarLogoSrc", "headerUniversalBarPrimaryLinkHref", "headerUniversalBarPrimaryLinkText", "carouselRegionLabelText", "carouselSliderRegionLabelText", "carouselSliderDotNavLabelText"];
|
|
662
|
+
|
|
663
|
+
type FallbackTranslationKey = (typeof FALLBACK_TRANSLATION_KEYS)[number];
|
|
664
|
+
type FallbackTranslation = Record<LanguageCodeEnum, string>;
|
|
665
|
+
type FallbackTranslations = Record<FallbackTranslationKey, FallbackTranslation>;
|
|
666
|
+
type OptionalTranslationsWithFallbacks = {
|
|
667
|
+
[key in FallbackTranslationKey]?: string;
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
type Config = {
|
|
671
|
+
/**
|
|
672
|
+
* Site or App name.
|
|
673
|
+
*/
|
|
674
|
+
siteName: string;
|
|
675
|
+
/**
|
|
676
|
+
* Id of the html element where SkipTo link will point.
|
|
677
|
+
*/
|
|
678
|
+
mainContentId?: string;
|
|
679
|
+
/**
|
|
680
|
+
* Internal origins for generating correct urls for app routing.
|
|
681
|
+
*/
|
|
682
|
+
internalHrefOrigins: string[];
|
|
683
|
+
/**
|
|
684
|
+
* List of organizations for additional UI highlights (f.e. check icon after title if its Helsinki specific item).
|
|
685
|
+
*/
|
|
686
|
+
organisationPrefixes: string[];
|
|
687
|
+
/**
|
|
688
|
+
* Current language code of the app.
|
|
689
|
+
*/
|
|
690
|
+
currentLanguageCode: LanguageCodeEnum;
|
|
691
|
+
/**
|
|
692
|
+
* Fallback image urls. Used if image is not defined, but imaage is still required in the component.
|
|
693
|
+
*/
|
|
694
|
+
fallbackImageUrls: string[];
|
|
695
|
+
/**
|
|
696
|
+
* Fallback translations.
|
|
697
|
+
*/
|
|
698
|
+
fallbackTranslations: FallbackTranslations;
|
|
699
|
+
/**
|
|
700
|
+
* Translated texts which are needed to render components properly.
|
|
701
|
+
*/
|
|
702
|
+
copy: {
|
|
703
|
+
breadcrumbNavigationLabel: string;
|
|
704
|
+
breadcrumbListLabel: string;
|
|
705
|
+
menuButtonLabel: string;
|
|
706
|
+
menuToggleAriaLabel: string;
|
|
707
|
+
skipToContentLabel: string;
|
|
708
|
+
openInExternalDomainAriaLabel: string;
|
|
709
|
+
openInNewTabAriaLabel: string;
|
|
710
|
+
closeButtonLabelText: string;
|
|
711
|
+
loadMoreButtonLabelText: string;
|
|
712
|
+
showAllText: string;
|
|
713
|
+
next: string;
|
|
714
|
+
previous: string;
|
|
715
|
+
archiveSearch?: {
|
|
716
|
+
title: string;
|
|
717
|
+
searchTextPlaceholder: string;
|
|
718
|
+
searchButtonLabelText: string;
|
|
719
|
+
loadMoreButtonLabelText: string;
|
|
720
|
+
noResultsTitle: string;
|
|
721
|
+
noResultsText: string;
|
|
722
|
+
clearAll: string;
|
|
723
|
+
};
|
|
724
|
+
} & OptionalTranslationsWithFallbacks;
|
|
725
|
+
/**
|
|
726
|
+
* Custom translated texts which are needed to render components properly.
|
|
727
|
+
* Used when for technical reasons the use of the copy property is not possible.
|
|
728
|
+
*/
|
|
729
|
+
customCopy?: {
|
|
730
|
+
loadMoreButtonVariant?: Exclude<ButtonVariant, 'supplementary'>;
|
|
731
|
+
loadMoreButtonTheme?: ButtonTheme | ButtonPresetTheme;
|
|
732
|
+
};
|
|
733
|
+
/**
|
|
734
|
+
* React component replacements for defined html elements.
|
|
735
|
+
*/
|
|
736
|
+
components: {
|
|
737
|
+
A: (props: React__default.AnchorHTMLAttributes<HTMLAnchorElement>) => JSX.Element;
|
|
738
|
+
Img: (props: React__default.ImgHTMLAttributes<HTMLImageElement>) => JSX.Element;
|
|
739
|
+
Link?: (props: React__default.AnchorHTMLAttributes<HTMLAnchorElement>) => JSX.Element;
|
|
740
|
+
Head?: (props: {
|
|
741
|
+
children: React__default.ReactNode;
|
|
742
|
+
}) => JSX.Element;
|
|
743
|
+
EventCardContent?: React__default.FC<Record<string, unknown>>;
|
|
744
|
+
VenueCardContent?: React__default.FC<Record<string, unknown>>;
|
|
745
|
+
ArticleCardContent?: React__default.FC<Record<string, unknown>>;
|
|
746
|
+
HelsinkiCityOwnedIcon?: React__default.FC<Record<string, unknown>>;
|
|
747
|
+
};
|
|
748
|
+
/**
|
|
749
|
+
* Apollo client to make gql calls to headless cms.
|
|
750
|
+
*/
|
|
751
|
+
apolloClient?: ApolloClient<NormalizedCacheObject>;
|
|
752
|
+
/**
|
|
753
|
+
* Apollo client to make gql calls to linked events.
|
|
754
|
+
*/
|
|
755
|
+
eventsApolloClient?: ApolloClient<NormalizedCacheObject> | 'disabled';
|
|
756
|
+
/**
|
|
757
|
+
* Apollo client to make gql calls to venues search.
|
|
758
|
+
*/
|
|
759
|
+
venuesApolloClient?: ApolloClient<NormalizedCacheObject> | 'disabled';
|
|
760
|
+
/**
|
|
761
|
+
* Utilities custom implementation provided by apps (app specific).
|
|
762
|
+
*/
|
|
763
|
+
utils: {
|
|
764
|
+
getArticlePageCardProps: (item: ArticleType | PageType) => CardProps;
|
|
765
|
+
getEventCardProps: (item: EventType, organisationPrefixes: string[], locale: string) => CardProps;
|
|
766
|
+
getLocationCardProps: (item: VenueType) => CardProps;
|
|
767
|
+
getIsHrefExternal: (href: string) => boolean;
|
|
768
|
+
getRoutedInternalHref: (link: string | null | undefined, type?: ModuleItemTypeEnum) => string;
|
|
769
|
+
redirectToUrl: (url: string) => void;
|
|
770
|
+
redirectToArticlesSearch?: (tag: string) => void;
|
|
771
|
+
};
|
|
772
|
+
/**
|
|
773
|
+
* Meta data for the Head components.
|
|
774
|
+
*/
|
|
775
|
+
meta?: {
|
|
776
|
+
appleTouchIconUrl?: string;
|
|
777
|
+
favIconUrl?: string;
|
|
778
|
+
favIconSvgUrl?: string;
|
|
779
|
+
manifestUrl?: string;
|
|
780
|
+
};
|
|
781
|
+
/**
|
|
782
|
+
* App specific html sanitising configs for html editors.
|
|
783
|
+
*/
|
|
784
|
+
htmlSanitizer: {
|
|
785
|
+
allowedUnsafeTags: HtmlToReactProps['allowedUnsafeTags'];
|
|
786
|
+
trustedOrigins: HtmlToReactProps['trustedOrigins'];
|
|
787
|
+
};
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
export { Collection as F, EventSelectionCollection as G, HtmlToReact as H, EventSearchCollection as J, ModuleItemTypeEnum as M, Navigation as N, getEventCollectionCards as O, LocationsSelectionCollection as Q, getLocationsCollectionCards as U, Card as l, Notification as v, Page as x, PageContentLayout as z };
|
|
791
|
+
export type { ArticleType as A, BreadcrumbUnionType as B, Config as C, PageContentLayoutProps as D, EventType as E, EventSelectionCollectionProps as I, EventSearchCollectionProps as K, LocationsSelectionCollectionType as L, PageType as P, LocationsSelectionCollectionProps as R, SearchTag as S, Tag as T, VenueType as V, GeneralCollectionType as W, CardProps as a, PageModule as b, CollectionType as c, CollectionProps as d, PageSidebarModule as e, CollectionItemType as f, EventSelectionCollectionType as g, EventSearchCollectionType as h, LinkItem as i, PageContentProps as j, CarouselProps as k, Menu as m, SidebarContent$1 as n, Articles as o, Pages as p, PageChildren as q, Categories as r, Category as s, Tags as t, NavigationProps as u, NotificationProps as w, PageProps as y };
|