@treely/strapi-slices 7.17.0 → 8.0.1
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/components/ContextProvider/ContextProvider.d.ts +1 -0
- package/dist/components/ContextProvider/ContextProvider.d.ts.map +1 -0
- package/dist/components/ContextProvider/index.d.ts +1 -0
- package/dist/components/ContextProvider/index.d.ts.map +1 -0
- package/dist/components/CreditsAvailableBadge/CreditsAvailableBadge.d.ts +2 -2
- package/dist/components/CreditsAvailableBadge/CreditsAvailableBadge.d.ts.map +1 -0
- package/dist/components/CreditsAvailableBadge/index.d.ts +1 -0
- package/dist/components/CreditsAvailableBadge/index.d.ts.map +1 -0
- package/dist/components/CreditsAvailableBadge/messages.de.d.ts +1 -0
- package/dist/components/CreditsAvailableBadge/messages.de.d.ts.map +1 -0
- package/dist/components/CreditsAvailableBadge/messages.en.d.ts +1 -0
- package/dist/components/CreditsAvailableBadge/messages.en.d.ts.map +1 -0
- package/dist/components/CustomerCard/CustomerCard.d.ts +4 -3
- package/dist/components/CustomerCard/CustomerCard.d.ts.map +1 -0
- package/dist/components/CustomerCard/index.d.ts +1 -0
- package/dist/components/CustomerCard/index.d.ts.map +1 -0
- package/dist/components/CustomerCard/messages.de.d.ts +1 -0
- package/dist/components/CustomerCard/messages.de.d.ts.map +1 -0
- package/dist/components/CustomerCard/messages.en.d.ts +1 -0
- package/dist/components/CustomerCard/messages.en.d.ts.map +1 -0
- package/dist/components/CustomerQuoteCard/CustomerQuoteCard.d.ts +4 -3
- package/dist/components/CustomerQuoteCard/CustomerQuoteCard.d.ts.map +1 -0
- package/dist/components/CustomerQuoteCard/index.d.ts +1 -0
- package/dist/components/CustomerQuoteCard/index.d.ts.map +1 -0
- package/dist/components/CustomerQuoteCard/messages.de.d.ts +1 -0
- package/dist/components/CustomerQuoteCard/messages.de.d.ts.map +1 -0
- package/dist/components/CustomerQuoteCard/messages.en.d.ts +1 -0
- package/dist/components/CustomerQuoteCard/messages.en.d.ts.map +1 -0
- package/dist/components/EventCard/EventCard.d.ts +3 -2
- package/dist/components/EventCard/EventCard.d.ts.map +1 -0
- package/dist/components/EventCard/index.d.ts +1 -0
- package/dist/components/EventCard/index.d.ts.map +1 -0
- package/dist/components/EventCard/messages.de.d.ts +1 -0
- package/dist/components/EventCard/messages.de.d.ts.map +1 -0
- package/dist/components/EventCard/messages.en.d.ts +1 -0
- package/dist/components/EventCard/messages.en.d.ts.map +1 -0
- package/dist/components/FullScreenImage/FullScreenImage.d.ts +2 -2
- package/dist/components/FullScreenImage/FullScreenImage.d.ts.map +1 -0
- package/dist/components/FullScreenImage/ZoomableImage.d.ts +2 -2
- package/dist/components/FullScreenImage/ZoomableImage.d.ts.map +1 -0
- package/dist/components/FullScreenImage/index.d.ts +1 -0
- package/dist/components/FullScreenImage/index.d.ts.map +1 -0
- package/dist/components/LogoCard/LogoCard.d.ts +3 -3
- package/dist/components/LogoCard/LogoCard.d.ts.map +1 -0
- package/dist/components/LogoCard/index.d.ts +1 -0
- package/dist/components/LogoCard/index.d.ts.map +1 -0
- package/dist/components/MinimalProviders/MinimalProviders.d.ts +3 -2
- package/dist/components/MinimalProviders/MinimalProviders.d.ts.map +1 -0
- package/dist/components/MinimalProviders/index.d.ts +1 -0
- package/dist/components/MinimalProviders/index.d.ts.map +1 -0
- package/dist/components/PreviewAlert/PreviewAlert.d.ts +3 -2
- package/dist/components/PreviewAlert/PreviewAlert.d.ts.map +1 -0
- package/dist/components/PreviewAlert/index.d.ts +1 -0
- package/dist/components/PreviewAlert/index.d.ts.map +1 -0
- package/dist/components/ProjectGridCard/ProjectGridCard.d.ts +3 -2
- package/dist/components/ProjectGridCard/ProjectGridCard.d.ts.map +1 -0
- package/dist/components/ProjectGridCard/index.d.ts +1 -0
- package/dist/components/ProjectGridCard/index.d.ts.map +1 -0
- package/dist/components/ProjectGridCard/messages.de.d.ts +1 -0
- package/dist/components/ProjectGridCard/messages.de.d.ts.map +1 -0
- package/dist/components/ProjectGridCard/messages.en.d.ts +1 -0
- package/dist/components/ProjectGridCard/messages.en.d.ts.map +1 -0
- package/dist/components/SEOTags/SEOTags.d.ts +1 -0
- package/dist/components/SEOTags/SEOTags.d.ts.map +1 -0
- package/dist/components/SEOTags/index.d.ts +1 -0
- package/dist/components/SEOTags/index.d.ts.map +1 -0
- package/dist/components/SliceRenderer/SliceRenderer.d.ts +4 -3
- package/dist/components/SliceRenderer/SliceRenderer.d.ts.map +1 -0
- package/dist/components/SliceRenderer/index.d.ts +1 -0
- package/dist/components/SliceRenderer/index.d.ts.map +1 -0
- package/dist/components/StrapiLinkButton/StrapiLinkButton.d.ts +4 -3
- package/dist/components/StrapiLinkButton/StrapiLinkButton.d.ts.map +1 -0
- package/dist/components/StrapiLinkButton/index.d.ts +1 -0
- package/dist/components/StrapiLinkButton/index.d.ts.map +1 -0
- package/dist/components/StrapiLinkButtonWithIcon/StrapiLinkButtonWithIcon.d.ts +1 -0
- package/dist/components/StrapiLinkButtonWithIcon/StrapiLinkButtonWithIcon.d.ts.map +1 -0
- package/dist/components/StrapiLinkButtonWithIcon/index.d.ts +1 -0
- package/dist/components/StrapiLinkButtonWithIcon/index.d.ts.map +1 -0
- package/dist/components/portfolio/Contact/Contact.d.ts +1 -0
- package/dist/components/portfolio/Contact/Contact.d.ts.map +1 -0
- package/dist/components/portfolio/Contact/index.d.ts +1 -0
- package/dist/components/portfolio/Contact/index.d.ts.map +1 -0
- package/dist/components/portfolio/DocumentsDownloadList/DocumentsDownloadList.d.ts +1 -0
- package/dist/components/portfolio/DocumentsDownloadList/DocumentsDownloadList.d.ts.map +1 -0
- package/dist/components/portfolio/DocumentsDownloadList/index.d.ts +1 -0
- package/dist/components/portfolio/DocumentsDownloadList/index.d.ts.map +1 -0
- package/dist/components/portfolio/DocumentsDownloadList/messages.de.d.ts +1 -0
- package/dist/components/portfolio/DocumentsDownloadList/messages.de.d.ts.map +1 -0
- package/dist/components/portfolio/DocumentsDownloadList/messages.en.d.ts +1 -0
- package/dist/components/portfolio/DocumentsDownloadList/messages.en.d.ts.map +1 -0
- package/dist/components/portfolio/ProjectInfo/ProjectInfo.d.ts +1 -0
- package/dist/components/portfolio/ProjectInfo/ProjectInfo.d.ts.map +1 -0
- package/dist/components/portfolio/ProjectInfo/index.d.ts +1 -0
- package/dist/components/portfolio/ProjectInfo/index.d.ts.map +1 -0
- package/dist/components/portfolio/ProjectInfo/messages.de.d.ts +1 -0
- package/dist/components/portfolio/ProjectInfo/messages.de.d.ts.map +1 -0
- package/dist/components/portfolio/ProjectInfo/messages.en.d.ts +1 -0
- package/dist/components/portfolio/ProjectInfo/messages.en.d.ts.map +1 -0
- package/dist/components/portfolio/SmallCheckout/SmallCheckout.d.ts +2 -2
- package/dist/components/portfolio/SmallCheckout/SmallCheckout.d.ts.map +1 -0
- package/dist/components/portfolio/SmallCheckout/index.d.ts +1 -0
- package/dist/components/portfolio/SmallCheckout/index.d.ts.map +1 -0
- package/dist/components/portfolio/SmallCheckout/messages.de.d.ts +1 -0
- package/dist/components/portfolio/SmallCheckout/messages.de.d.ts.map +1 -0
- package/dist/components/portfolio/SmallCheckout/messages.en.d.ts +1 -0
- package/dist/components/portfolio/SmallCheckout/messages.en.d.ts.map +1 -0
- package/dist/constants/animations.d.ts +1 -0
- package/dist/constants/animations.d.ts.map +1 -0
- package/dist/constants/api.d.ts +1 -0
- package/dist/constants/api.d.ts.map +1 -0
- package/dist/constants/breakpoints.d.ts +1 -0
- package/dist/constants/breakpoints.d.ts.map +1 -0
- package/dist/constants/domain.d.ts +1 -0
- package/dist/constants/domain.d.ts.map +1 -0
- package/dist/constants/fontCustomizations.d.ts +17 -6
- package/dist/constants/fontCustomizations.d.ts.map +1 -0
- package/dist/constants/fontStyle.d.ts +2 -1
- package/dist/constants/fontStyle.d.ts.map +1 -0
- package/dist/constants/formatter.d.ts +1 -0
- package/dist/constants/formatter.d.ts.map +1 -0
- package/dist/constants/globalStyle.d.ts +2 -1
- package/dist/constants/globalStyle.d.ts.map +1 -0
- package/dist/constants/mapbox.d.ts +1 -0
- package/dist/constants/mapbox.d.ts.map +1 -0
- package/dist/constants/metadata.d.ts +1 -0
- package/dist/constants/metadata.d.ts.map +1 -0
- package/dist/constants/slicesConfig.d.ts +1 -0
- package/dist/constants/slicesConfig.d.ts.map +1 -0
- package/dist/constants/strapi.d.ts +1 -0
- package/dist/constants/strapi.d.ts.map +1 -0
- package/dist/icons/LinkedInIcon.d.ts +2 -2
- package/dist/icons/LinkedInIcon.d.ts.map +1 -0
- package/dist/index.cjs +8943 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9270 -5
- package/dist/index.js.map +7 -0
- package/dist/integrations/fpmClient.d.ts +1 -0
- package/dist/integrations/fpmClient.d.ts.map +1 -0
- package/dist/integrations/strapi/getAllSlugsFromStrapi.d.ts +1 -0
- package/dist/integrations/strapi/getAllSlugsFromStrapi.d.ts.map +1 -0
- package/dist/integrations/strapi/getFpmProjectById.d.ts +1 -0
- package/dist/integrations/strapi/getFpmProjectById.d.ts.map +1 -0
- package/dist/integrations/strapi/getFpmProjectsByBbox.d.ts +1 -0
- package/dist/integrations/strapi/getFpmProjectsByBbox.d.ts.map +1 -0
- package/dist/integrations/strapi/getPortfolioProjects.d.ts +1 -0
- package/dist/integrations/strapi/getPortfolioProjects.d.ts.map +1 -0
- package/dist/integrations/strapi/getStrapiCollectionType.d.ts +1 -0
- package/dist/integrations/strapi/getStrapiCollectionType.d.ts.map +1 -0
- package/dist/integrations/strapi/getStrapiProjects.d.ts +1 -0
- package/dist/integrations/strapi/getStrapiProjects.d.ts.map +1 -0
- package/dist/integrations/strapi/getStrapiSingleType.d.ts +1 -0
- package/dist/integrations/strapi/getStrapiSingleType.d.ts.map +1 -0
- package/dist/integrations/strapi/strapiClient.d.ts +1 -0
- package/dist/integrations/strapi/strapiClient.d.ts.map +1 -0
- package/dist/models/BBox.d.ts +1 -0
- package/dist/models/BBox.d.ts.map +1 -0
- package/dist/models/HeaderType.d.ts +1 -0
- package/dist/models/HeaderType.d.ts.map +1 -0
- package/dist/models/Image.d.ts +1 -0
- package/dist/models/Image.d.ts.map +1 -0
- package/dist/models/Locale.d.ts +1 -0
- package/dist/models/Locale.d.ts.map +1 -0
- package/dist/models/LocalizedEntity.d.ts +1 -0
- package/dist/models/LocalizedEntity.d.ts.map +1 -0
- package/dist/models/PageMetadata.d.ts +1 -0
- package/dist/models/PageMetadata.d.ts.map +1 -0
- package/dist/models/PageProps.d.ts +1 -0
- package/dist/models/PageProps.d.ts.map +1 -0
- package/dist/models/PortfolioProject.d.ts +1 -0
- package/dist/models/PortfolioProject.d.ts.map +1 -0
- package/dist/models/SWRData.d.ts +1 -0
- package/dist/models/SWRData.d.ts.map +1 -0
- package/dist/models/forms/CheckoutForm.d.ts +1 -0
- package/dist/models/forms/CheckoutForm.d.ts.map +1 -0
- package/dist/models/forms/SmallCheckoutForm.d.ts +1 -0
- package/dist/models/forms/SmallCheckoutForm.d.ts.map +1 -0
- package/dist/models/fpm/FPMProject.d.ts +1 -0
- package/dist/models/fpm/FPMProject.d.ts.map +1 -0
- package/dist/models/fpm/Issuer.d.ts +1 -0
- package/dist/models/fpm/Issuer.d.ts.map +1 -0
- package/dist/models/hooks/UseInfiniteDataHookProps.d.ts +1 -0
- package/dist/models/hooks/UseInfiniteDataHookProps.d.ts.map +1 -0
- package/dist/models/hooks/useEvents.d.ts +1 -0
- package/dist/models/hooks/useEvents.d.ts.map +1 -0
- package/dist/models/strapi/IStrapi.d.ts +1 -0
- package/dist/models/strapi/IStrapi.d.ts.map +1 -0
- package/dist/models/strapi/IStrapiData.d.ts +1 -0
- package/dist/models/strapi/IStrapiData.d.ts.map +1 -0
- package/dist/models/strapi/IStrapiResponse.d.ts +1 -0
- package/dist/models/strapi/IStrapiResponse.d.ts.map +1 -0
- package/dist/models/strapi/StrapiAuthor.d.ts +1 -0
- package/dist/models/strapi/StrapiAuthor.d.ts.map +1 -0
- package/dist/models/strapi/StrapiAvatarWithName.d.ts +1 -0
- package/dist/models/strapi/StrapiAvatarWithName.d.ts.map +1 -0
- package/dist/models/strapi/StrapiBanner.d.ts +1 -0
- package/dist/models/strapi/StrapiBanner.d.ts.map +1 -0
- package/dist/models/strapi/StrapiBlogPost.d.ts +1 -0
- package/dist/models/strapi/StrapiBlogPost.d.ts.map +1 -0
- package/dist/models/strapi/StrapiBlogPostProps.d.ts +1 -0
- package/dist/models/strapi/StrapiBlogPostProps.d.ts.map +1 -0
- package/dist/models/strapi/StrapiButtonWithVariant.d.ts +1 -0
- package/dist/models/strapi/StrapiButtonWithVariant.d.ts.map +1 -0
- package/dist/models/strapi/StrapiCategory.d.ts +1 -0
- package/dist/models/strapi/StrapiCategory.d.ts.map +1 -0
- package/dist/models/strapi/StrapiContactArea.d.ts +1 -0
- package/dist/models/strapi/StrapiContactArea.d.ts.map +1 -0
- package/dist/models/strapi/StrapiCustomerStory.d.ts +1 -0
- package/dist/models/strapi/StrapiCustomerStory.d.ts.map +1 -0
- package/dist/models/strapi/StrapiCustomerStoryProps.d.ts +1 -0
- package/dist/models/strapi/StrapiCustomerStoryProps.d.ts.map +1 -0
- package/dist/models/strapi/StrapiDefaultHeader.d.ts +1 -0
- package/dist/models/strapi/StrapiDefaultHeader.d.ts.map +1 -0
- package/dist/models/strapi/StrapiEvent.d.ts +1 -0
- package/dist/models/strapi/StrapiEvent.d.ts.map +1 -0
- package/dist/models/strapi/StrapiGlobal.d.ts +1 -0
- package/dist/models/strapi/StrapiGlobal.d.ts.map +1 -0
- package/dist/models/strapi/StrapiGlossaryItem.d.ts +1 -0
- package/dist/models/strapi/StrapiGlossaryItem.d.ts.map +1 -0
- package/dist/models/strapi/StrapiHeroCard.d.ts +1 -0
- package/dist/models/strapi/StrapiHeroCard.d.ts.map +1 -0
- package/dist/models/strapi/StrapiImage.d.ts +1 -0
- package/dist/models/strapi/StrapiImage.d.ts.map +1 -0
- package/dist/models/strapi/StrapiImageFormat.d.ts +1 -0
- package/dist/models/strapi/StrapiImageFormat.d.ts.map +1 -0
- package/dist/models/strapi/StrapiImageWithLink.d.ts +1 -0
- package/dist/models/strapi/StrapiImageWithLink.d.ts.map +1 -0
- package/dist/models/strapi/StrapiLink.d.ts +1 -0
- package/dist/models/strapi/StrapiLink.d.ts.map +1 -0
- package/dist/models/strapi/StrapiLinkList.d.ts +1 -0
- package/dist/models/strapi/StrapiLinkList.d.ts.map +1 -0
- package/dist/models/strapi/StrapiLinkPage.d.ts +1 -0
- package/dist/models/strapi/StrapiLinkPage.d.ts.map +1 -0
- package/dist/models/strapi/StrapiLinkWithIcon.d.ts +1 -0
- package/dist/models/strapi/StrapiLinkWithIcon.d.ts.map +1 -0
- package/dist/models/strapi/StrapiLocalization.d.ts +1 -0
- package/dist/models/strapi/StrapiLocalization.d.ts.map +1 -0
- package/dist/models/strapi/StrapiMedia.d.ts +1 -0
- package/dist/models/strapi/StrapiMedia.d.ts.map +1 -0
- package/dist/models/strapi/StrapiMetadata.d.ts +1 -0
- package/dist/models/strapi/StrapiMetadata.d.ts.map +1 -0
- package/dist/models/strapi/StrapiNavMenu.d.ts +1 -0
- package/dist/models/strapi/StrapiNavMenu.d.ts.map +1 -0
- package/dist/models/strapi/StrapiPage.d.ts +1 -0
- package/dist/models/strapi/StrapiPage.d.ts.map +1 -0
- package/dist/models/strapi/StrapiPageProps.d.ts +1 -0
- package/dist/models/strapi/StrapiPageProps.d.ts.map +1 -0
- package/dist/models/strapi/StrapiPortfolio.d.ts +1 -0
- package/dist/models/strapi/StrapiPortfolio.d.ts.map +1 -0
- package/dist/models/strapi/StrapiPortfolioCard.d.ts +1 -0
- package/dist/models/strapi/StrapiPortfolioCard.d.ts.map +1 -0
- package/dist/models/strapi/StrapiProject.d.ts +1 -0
- package/dist/models/strapi/StrapiProject.d.ts.map +1 -0
- package/dist/models/strapi/StrapiProjectCard.d.ts +1 -0
- package/dist/models/strapi/StrapiProjectCard.d.ts.map +1 -0
- package/dist/models/strapi/StrapiProjectProps.d.ts +1 -0
- package/dist/models/strapi/StrapiProjectProps.d.ts.map +1 -0
- package/dist/models/strapi/StrapiQuoteCard.d.ts +1 -0
- package/dist/models/strapi/StrapiQuoteCard.d.ts.map +1 -0
- package/dist/models/strapi/StrapiShapesCard.d.ts +1 -0
- package/dist/models/strapi/StrapiShapesCard.d.ts.map +1 -0
- package/dist/models/strapi/StrapiTextCardWithIcons.d.ts +1 -0
- package/dist/models/strapi/StrapiTextCardWithIcons.d.ts.map +1 -0
- package/dist/models/strapi/StrapiTopBanner.d.ts +1 -0
- package/dist/models/strapi/StrapiTopBanner.d.ts.map +1 -0
- package/dist/rootMessages.de.d.ts +1 -0
- package/dist/rootMessages.de.d.ts.map +1 -0
- package/dist/rootMessages.en.d.ts +1 -0
- package/dist/rootMessages.en.d.ts.map +1 -0
- package/dist/slices/Blog/Blog.d.ts +1 -0
- package/dist/slices/Blog/Blog.d.ts.map +1 -0
- package/dist/slices/Blog/index.d.ts +1 -0
- package/dist/slices/Blog/index.d.ts.map +1 -0
- package/dist/slices/Blog/styles.d.ts +3 -7
- package/dist/slices/Blog/styles.d.ts.map +1 -0
- package/dist/slices/BlogCards/BlogCards.d.ts +1 -0
- package/dist/slices/BlogCards/BlogCards.d.ts.map +1 -0
- package/dist/slices/BlogCards/index.d.ts +1 -0
- package/dist/slices/BlogCards/index.d.ts.map +1 -0
- package/dist/slices/CarouselMarqueeBanner/CarouselMarqueeBanner.d.ts +1 -0
- package/dist/slices/CarouselMarqueeBanner/CarouselMarqueeBanner.d.ts.map +1 -0
- package/dist/slices/CarouselMarqueeBanner/index.d.ts +1 -0
- package/dist/slices/CarouselMarqueeBanner/index.d.ts.map +1 -0
- package/dist/slices/CarouselMarqueeBanner/styles.d.ts +3 -540
- package/dist/slices/CarouselMarqueeBanner/styles.d.ts.map +1 -0
- package/dist/slices/Comparison/Comparison.d.ts +1 -0
- package/dist/slices/Comparison/Comparison.d.ts.map +1 -0
- package/dist/slices/Comparison/Icon.d.ts +3 -2
- package/dist/slices/Comparison/Icon.d.ts.map +1 -0
- package/dist/slices/Comparison/index.d.ts +1 -0
- package/dist/slices/Comparison/index.d.ts.map +1 -0
- package/dist/slices/Comparison/messages.de.d.ts +1 -0
- package/dist/slices/Comparison/messages.de.d.ts.map +1 -0
- package/dist/slices/Comparison/messages.en.d.ts +1 -0
- package/dist/slices/Comparison/messages.en.d.ts.map +1 -0
- package/dist/slices/Cta/Cta.d.ts +1 -0
- package/dist/slices/Cta/Cta.d.ts.map +1 -0
- package/dist/slices/Cta/index.d.ts +1 -0
- package/dist/slices/Cta/index.d.ts.map +1 -0
- package/dist/slices/Cta/messages.de.d.ts +1 -0
- package/dist/slices/Cta/messages.de.d.ts.map +1 -0
- package/dist/slices/Cta/messages.en.d.ts +1 -0
- package/dist/slices/Cta/messages.en.d.ts.map +1 -0
- package/dist/slices/CtaOnly/CtaOnly.d.ts +1 -0
- package/dist/slices/CtaOnly/CtaOnly.d.ts.map +1 -0
- package/dist/slices/CtaOnly/index.d.ts +1 -0
- package/dist/slices/CtaOnly/index.d.ts.map +1 -0
- package/dist/slices/CustomerStories/CustomerStories.d.ts +3 -2
- package/dist/slices/CustomerStories/CustomerStories.d.ts.map +1 -0
- package/dist/slices/CustomerStories/index.d.ts +1 -0
- package/dist/slices/CustomerStories/index.d.ts.map +1 -0
- package/dist/slices/Events/Events.d.ts +1 -0
- package/dist/slices/Events/Events.d.ts.map +1 -0
- package/dist/slices/Events/index.d.ts +1 -0
- package/dist/slices/Events/index.d.ts.map +1 -0
- package/dist/slices/Events/messages.de.d.ts +1 -0
- package/dist/slices/Events/messages.de.d.ts.map +1 -0
- package/dist/slices/Events/messages.en.d.ts +1 -0
- package/dist/slices/Events/messages.en.d.ts.map +1 -0
- package/dist/slices/Facts/Facts.d.ts +1 -0
- package/dist/slices/Facts/Facts.d.ts.map +1 -0
- package/dist/slices/Facts/index.d.ts +1 -0
- package/dist/slices/Facts/index.d.ts.map +1 -0
- package/dist/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.d.ts +1 -0
- package/dist/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.d.ts.map +1 -0
- package/dist/slices/FullWidthHighlightQuote/index.d.ts +1 -0
- package/dist/slices/FullWidthHighlightQuote/index.d.ts.map +1 -0
- package/dist/slices/FullWidthImage/FullWidthImage.d.ts +1 -0
- package/dist/slices/FullWidthImage/FullWidthImage.d.ts.map +1 -0
- package/dist/slices/FullWidthImage/index.d.ts +1 -0
- package/dist/slices/FullWidthImage/index.d.ts.map +1 -0
- package/dist/slices/FullWidthImageSlider/FullWidthImageSlider.d.ts +1 -0
- package/dist/slices/FullWidthImageSlider/FullWidthImageSlider.d.ts.map +1 -0
- package/dist/slices/FullWidthImageSlider/index.d.ts +1 -0
- package/dist/slices/FullWidthImageSlider/index.d.ts.map +1 -0
- package/dist/slices/FullWidthImageSlider/styles.d.ts +5 -285
- package/dist/slices/FullWidthImageSlider/styles.d.ts.map +1 -0
- package/dist/slices/Glossary/Glossary.d.ts +1 -1
- package/dist/slices/Glossary/Glossary.d.ts.map +1 -0
- package/dist/slices/Glossary/index.d.ts +1 -0
- package/dist/slices/Glossary/index.d.ts.map +1 -0
- package/dist/slices/Glossary/messages.de.d.ts +1 -0
- package/dist/slices/Glossary/messages.de.d.ts.map +1 -0
- package/dist/slices/Glossary/messages.en.d.ts +1 -0
- package/dist/slices/Glossary/messages.en.d.ts.map +1 -0
- package/dist/slices/Hero/Hero.d.ts +3 -2
- package/dist/slices/Hero/Hero.d.ts.map +1 -0
- package/dist/slices/Hero/index.d.ts +1 -0
- package/dist/slices/Hero/index.d.ts.map +1 -0
- package/dist/slices/IconGrid/IconGrid.d.ts +3 -2
- package/dist/slices/IconGrid/IconGrid.d.ts.map +1 -0
- package/dist/slices/IconGrid/index.d.ts +1 -0
- package/dist/slices/IconGrid/index.d.ts.map +1 -0
- package/dist/slices/ImageGrid/ImageGrid.d.ts +1 -0
- package/dist/slices/ImageGrid/ImageGrid.d.ts.map +1 -0
- package/dist/slices/ImageGrid/index.d.ts +1 -0
- package/dist/slices/ImageGrid/index.d.ts.map +1 -0
- package/dist/slices/ImageTextSequence/ImageTextSequence.d.ts +1 -0
- package/dist/slices/ImageTextSequence/ImageTextSequence.d.ts.map +1 -0
- package/dist/slices/ImageTextSequence/index.d.ts +1 -0
- package/dist/slices/ImageTextSequence/index.d.ts.map +1 -0
- package/dist/slices/LeftTextRightCard/LeftTextRightCard.d.ts +1 -0
- package/dist/slices/LeftTextRightCard/LeftTextRightCard.d.ts.map +1 -0
- package/dist/slices/LeftTextRightCard/index.d.ts +1 -0
- package/dist/slices/LeftTextRightCard/index.d.ts.map +1 -0
- package/dist/slices/LinkCardsGrid/LinkCardsGrid.d.ts +1 -0
- package/dist/slices/LinkCardsGrid/LinkCardsGrid.d.ts.map +1 -0
- package/dist/slices/LinkCardsGrid/index.d.ts +1 -0
- package/dist/slices/LinkCardsGrid/index.d.ts.map +1 -0
- package/dist/slices/LogoGridWithText/LogoGridWithText.d.ts +1 -0
- package/dist/slices/LogoGridWithText/LogoGridWithText.d.ts.map +1 -0
- package/dist/slices/LogoGridWithText/index.d.ts +1 -0
- package/dist/slices/LogoGridWithText/index.d.ts.map +1 -0
- package/dist/slices/MapHero/MapHero.d.ts +1 -0
- package/dist/slices/MapHero/MapHero.d.ts.map +1 -0
- package/dist/slices/MapHero/index.d.ts +1 -0
- package/dist/slices/MapHero/index.d.ts.map +1 -0
- package/dist/slices/MapHero/styles.d.ts +6 -16
- package/dist/slices/MapHero/styles.d.ts.map +1 -0
- package/dist/slices/ProjectFacts/ProjectFacts.d.ts +1 -0
- package/dist/slices/ProjectFacts/ProjectFacts.d.ts.map +1 -0
- package/dist/slices/ProjectFacts/index.d.ts +1 -0
- package/dist/slices/ProjectFacts/index.d.ts.map +1 -0
- package/dist/slices/ProjectFacts/messages.de.d.ts +1 -0
- package/dist/slices/ProjectFacts/messages.de.d.ts.map +1 -0
- package/dist/slices/ProjectFacts/messages.en.d.ts +1 -0
- package/dist/slices/ProjectFacts/messages.en.d.ts.map +1 -0
- package/dist/slices/ProjectsGrid/ProjectsGrid.d.ts +1 -0
- package/dist/slices/ProjectsGrid/ProjectsGrid.d.ts.map +1 -0
- package/dist/slices/ProjectsGrid/index.d.ts +1 -0
- package/dist/slices/ProjectsGrid/index.d.ts.map +1 -0
- package/dist/slices/ProjectsMap/ProjectsMap.d.ts +1 -0
- package/dist/slices/ProjectsMap/ProjectsMap.d.ts.map +1 -0
- package/dist/slices/ProjectsMap/index.d.ts +1 -0
- package/dist/slices/ProjectsMap/index.d.ts.map +1 -0
- package/dist/slices/ProjectsMap/mapboxStyle.d.ts +2 -1
- package/dist/slices/ProjectsMap/mapboxStyle.d.ts.map +1 -0
- package/dist/slices/ProjectsMap/messages.de.d.ts +1 -0
- package/dist/slices/ProjectsMap/messages.de.d.ts.map +1 -0
- package/dist/slices/ProjectsMap/messages.en.d.ts +1 -0
- package/dist/slices/ProjectsMap/messages.en.d.ts.map +1 -0
- package/dist/slices/QAndA/QAndA.d.ts +1 -0
- package/dist/slices/QAndA/QAndA.d.ts.map +1 -0
- package/dist/slices/QAndA/index.d.ts +1 -0
- package/dist/slices/QAndA/index.d.ts.map +1 -0
- package/dist/slices/QuoteCards/QuoteCards.d.ts +1 -0
- package/dist/slices/QuoteCards/QuoteCards.d.ts.map +1 -0
- package/dist/slices/QuoteCards/index.d.ts +1 -0
- package/dist/slices/QuoteCards/index.d.ts.map +1 -0
- package/dist/slices/Redirect/Redirect.d.ts +3 -2
- package/dist/slices/Redirect/Redirect.d.ts.map +1 -0
- package/dist/slices/Redirect/index.d.ts +1 -0
- package/dist/slices/Redirect/index.d.ts.map +1 -0
- package/dist/slices/RichTextSection/RichTextSection.d.ts +1 -0
- package/dist/slices/RichTextSection/RichTextSection.d.ts.map +1 -0
- package/dist/slices/RichTextSection/index.d.ts +1 -0
- package/dist/slices/RichTextSection/index.d.ts.map +1 -0
- package/dist/slices/ShopCheckout/ShopCheckout.d.ts +3 -2
- package/dist/slices/ShopCheckout/ShopCheckout.d.ts.map +1 -0
- package/dist/slices/ShopCheckout/index.d.ts +1 -0
- package/dist/slices/ShopCheckout/index.d.ts.map +1 -0
- package/dist/slices/ShopCheckout/messages.de.d.ts +1 -0
- package/dist/slices/ShopCheckout/messages.de.d.ts.map +1 -0
- package/dist/slices/ShopCheckout/messages.en.d.ts +1 -0
- package/dist/slices/ShopCheckout/messages.en.d.ts.map +1 -0
- package/dist/slices/SideBySideImages/SideBySideImages.d.ts +1 -0
- package/dist/slices/SideBySideImages/SideBySideImages.d.ts.map +1 -0
- package/dist/slices/SideBySideImages/index.d.ts +1 -0
- package/dist/slices/SideBySideImages/index.d.ts.map +1 -0
- package/dist/slices/SmallHero/SmallHero.d.ts +2 -1
- package/dist/slices/SmallHero/SmallHero.d.ts.map +1 -0
- package/dist/slices/SmallHero/index.d.ts +1 -0
- package/dist/slices/SmallHero/index.d.ts.map +1 -0
- package/dist/slices/Steps/Steps.d.ts +1 -0
- package/dist/slices/Steps/Steps.d.ts.map +1 -0
- package/dist/slices/Steps/index.d.ts +1 -0
- package/dist/slices/Steps/index.d.ts.map +1 -0
- package/dist/slices/TextCardGrid/TextCardGrid.d.ts +1 -0
- package/dist/slices/TextCardGrid/TextCardGrid.d.ts.map +1 -0
- package/dist/slices/TextCardGrid/index.d.ts +1 -0
- package/dist/slices/TextCardGrid/index.d.ts.map +1 -0
- package/dist/slices/TextCarousel/TextCarousel.d.ts +1 -0
- package/dist/slices/TextCarousel/TextCarousel.d.ts.map +1 -0
- package/dist/slices/TextCarousel/index.d.ts +1 -0
- package/dist/slices/TextCarousel/index.d.ts.map +1 -0
- package/dist/slices/TextCarousel/messages.de.d.ts +1 -0
- package/dist/slices/TextCarousel/messages.de.d.ts.map +1 -0
- package/dist/slices/TextCarousel/messages.en.d.ts +1 -0
- package/dist/slices/TextCarousel/messages.en.d.ts.map +1 -0
- package/dist/slices/TextCarousel/styles.d.ts +4 -279
- package/dist/slices/TextCarousel/styles.d.ts.map +1 -0
- package/dist/slices/TextWithCard/TextWithCard.d.ts +4 -1
- package/dist/slices/TextWithCard/TextWithCard.d.ts.map +1 -0
- package/dist/slices/TextWithCard/index.d.ts +1 -0
- package/dist/slices/TextWithCard/index.d.ts.map +1 -0
- package/dist/slices/TextWithTextCards/TextWithTextCards.d.ts +1 -0
- package/dist/slices/TextWithTextCards/TextWithTextCards.d.ts.map +1 -0
- package/dist/slices/TextWithTextCards/index.d.ts +1 -0
- package/dist/slices/TextWithTextCards/index.d.ts.map +1 -0
- package/dist/slices/Timeline/Timeline.d.ts +1 -0
- package/dist/slices/Timeline/Timeline.d.ts.map +1 -0
- package/dist/slices/Timeline/index.d.ts +1 -0
- package/dist/slices/Timeline/index.d.ts.map +1 -0
- package/dist/slices/Timeline/messages.de.d.ts +1 -0
- package/dist/slices/Timeline/messages.de.d.ts.map +1 -0
- package/dist/slices/Timeline/messages.en.d.ts +1 -0
- package/dist/slices/Timeline/messages.en.d.ts.map +1 -0
- package/dist/slices/Video/Video.d.ts +1 -0
- package/dist/slices/Video/Video.d.ts.map +1 -0
- package/dist/slices/Video/index.d.ts +1 -0
- package/dist/slices/Video/index.d.ts.map +1 -0
- package/dist/unit.messages.de.d.ts +1 -0
- package/dist/unit.messages.de.d.ts.map +1 -0
- package/dist/unit.messages.en.d.ts +1 -0
- package/dist/unit.messages.en.d.ts.map +1 -0
- package/dist/utils/buildRedirectUrl.d.ts +1 -1
- package/dist/utils/buildRedirectUrl.d.ts.map +1 -0
- package/dist/utils/convertAreaM2ToHa.d.ts +1 -0
- package/dist/utils/convertAreaM2ToHa.d.ts.map +1 -0
- package/dist/utils/convertCo2AmountKgToTons.d.ts +1 -0
- package/dist/utils/convertCo2AmountKgToTons.d.ts.map +1 -0
- package/dist/utils/convertToKebabCase.d.ts +1 -0
- package/dist/utils/convertToKebabCase.d.ts.map +1 -0
- package/dist/utils/getClosestRatio.d.ts +1 -0
- package/dist/utils/getClosestRatio.d.ts.map +1 -0
- package/dist/utils/getCountryFlag.d.ts +1 -0
- package/dist/utils/getCountryFlag.d.ts.map +1 -0
- package/dist/utils/getMessages.d.ts +7 -6
- package/dist/utils/getMessages.d.ts.map +1 -0
- package/dist/utils/getTimeSpanInYears.d.ts +1 -0
- package/dist/utils/getTimeSpanInYears.d.ts.map +1 -0
- package/dist/utils/isSameDate.d.ts +1 -0
- package/dist/utils/isSameDate.d.ts.map +1 -0
- package/dist/utils/mergeBoundingBoxes.d.ts +1 -0
- package/dist/utils/mergeBoundingBoxes.d.ts.map +1 -0
- package/dist/utils/mergeDeep.d.ts +1 -0
- package/dist/utils/mergeDeep.d.ts.map +1 -0
- package/dist/utils/mergeGlobalAndStrapiBlogPostData.d.ts +1 -0
- package/dist/utils/mergeGlobalAndStrapiBlogPostData.d.ts.map +1 -0
- package/dist/utils/mergeGlobalAndStrapiCustomerStoryData.d.ts +1 -0
- package/dist/utils/mergeGlobalAndStrapiCustomerStoryData.d.ts.map +1 -0
- package/dist/utils/mergeGlobalAndStrapiPageData.d.ts +1 -0
- package/dist/utils/mergeGlobalAndStrapiPageData.d.ts.map +1 -0
- package/dist/utils/mergeGlobalAndStrapiProjectData.d.ts +1 -0
- package/dist/utils/mergeGlobalAndStrapiProjectData.d.ts.map +1 -0
- package/dist/utils/mergeProjectData.d.ts +1 -0
- package/dist/utils/mergeProjectData.d.ts.map +1 -0
- package/dist/utils/openHubSpotChat.d.ts +1 -0
- package/dist/utils/openHubSpotChat.d.ts.map +1 -0
- package/dist/utils/shuffleElements.d.ts +1 -0
- package/dist/utils/shuffleElements.d.ts.map +1 -0
- package/dist/utils/strapiLinkUrl.d.ts +1 -0
- package/dist/utils/strapiLinkUrl.d.ts.map +1 -0
- package/dist/utils/strapiMediaUrl.d.ts +2 -1
- package/dist/utils/strapiMediaUrl.d.ts.map +1 -0
- package/package.json +60 -54
- package/dist/__mocks__/adblock-detect-react.d.ts +0 -3
- package/dist/__mocks__/axios-cache-interceptor.d.ts +0 -2
- package/dist/__mocks__/axios.d.ts +0 -2
- package/dist/__mocks__/mapbox-gl.d.ts +0 -23
- package/dist/__mocks__/next/navigation.d.ts +0 -7
- package/dist/__mocks__/next/router.d.ts +0 -4
- package/dist/__mocks__/swr/index.d.ts +0 -6
- package/dist/__mocks__/swr/infinite.d.ts +0 -4
- package/dist/components/PreviewAlert/PreviewAlert.stories.d.ts +0 -3
- package/dist/slices/BlogCards/BlogCards.stories.d.ts +0 -5
- package/dist/slices/CarouselMarqueeBanner/CarouselMarqueeBanner.stories.d.ts +0 -4
- package/dist/slices/Comparison/Comparison.stories.d.ts +0 -6
- package/dist/slices/Cta/Cta.stories.d.ts +0 -9
- package/dist/slices/CtaOnly/CtaOnly.stories.d.ts +0 -3
- package/dist/slices/CustomerStories/CustomerStories.stories.d.ts +0 -6
- package/dist/slices/Events/Events.stories.d.ts +0 -4
- package/dist/slices/Facts/Facts.stories.d.ts +0 -7
- package/dist/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.stories.d.ts +0 -4
- package/dist/slices/FullWidthImage/FullWidthImage.stories.d.ts +0 -5
- package/dist/slices/FullWidthImageSlider/FullWidthImageSlider.stories.d.ts +0 -3
- package/dist/slices/Glossary/Glossary.stories.d.ts +0 -3
- package/dist/slices/Hero/Hero.stories.d.ts +0 -9
- package/dist/slices/IconGrid/IconGrid.stories.d.ts +0 -5
- package/dist/slices/ImageGrid/ImageGrid.stories.d.ts +0 -5
- package/dist/slices/ImageTextSequence/ImageTextSequence.stories.d.ts +0 -7
- package/dist/slices/LeftTextRightCard/LeftTextRightCard.stories.d.ts +0 -8
- package/dist/slices/LinkCardsGrid/LinkCardsGrid.stories.d.ts +0 -5
- package/dist/slices/LogoGridWithText/LogoGridWithText.stories.d.ts +0 -6
- package/dist/slices/MapHero/MapHero.stories.d.ts +0 -8
- package/dist/slices/ProjectFacts/ProjectFacts.stories.d.ts +0 -8
- package/dist/slices/ProjectsGrid/ProjectsGrid.stories.d.ts +0 -5
- package/dist/slices/ProjectsMap/ProjectsMap.stories.d.ts +0 -6
- package/dist/slices/QAndA/QAndA.stories.d.ts +0 -7
- package/dist/slices/QuoteCards/QuoteCards.stories.d.ts +0 -8
- package/dist/slices/RichTextSection/RichTextSection.stories.d.ts +0 -3
- package/dist/slices/ShopCheckout/ShopCheckout.stories.d.ts +0 -8
- package/dist/slices/SideBySideImages/SideBySideImages.stories.d.ts +0 -3
- package/dist/slices/SmallHero/SmallHero.stories.d.ts +0 -11
- package/dist/slices/Steps/Steps.stories.d.ts +0 -7
- package/dist/slices/TextCardGrid/TextCardGrid.stories.d.ts +0 -8
- package/dist/slices/TextCarousel/TextCarousel.stories.d.ts +0 -8
- package/dist/slices/TextWithCard/TextWithCard.stories.d.ts +0 -10
- package/dist/slices/TextWithTextCards/TextWithTextCards.stories.d.ts +0 -7
- package/dist/slices/Timeline/Timeline.stories.d.ts +0 -9
- package/dist/slices/Video/Video.stories.d.ts +0 -3
- package/dist/strapi-slices.cjs.development.js +0 -7464
- package/dist/strapi-slices.cjs.development.js.map +0 -1
- package/dist/strapi-slices.cjs.production.min.js +0 -2
- package/dist/strapi-slices.cjs.production.min.js.map +0 -1
- package/dist/strapi-slices.esm.js +0 -7433
- package/dist/strapi-slices.esm.js.map +0 -1
- package/dist/test/defaultMocks/next.d.ts +0 -2
- package/dist/test/integrationMocks/fpmProjectMock.d.ts +0 -3
- package/dist/test/integrationMocks/portfolioProjectMock.d.ts +0 -3
- package/dist/test/mocks/getStaticPropsContext.d.ts +0 -3
- package/dist/test/mocks/portfolioProjectMock.d.ts +0 -3
- package/dist/test/setupTests.d.ts +0 -1
- package/dist/test/storybookMocks/storybookMedia.d.ts +0 -1
- package/dist/test/storybookMocks/storybookStrapiMedia.d.ts +0 -8
- package/dist/test/strapiMocks/minimalGlobalData.d.ts +0 -4
- package/dist/test/strapiMocks/strapiAvatarWithName.d.ts +0 -12
- package/dist/test/strapiMocks/strapiBlogPost.d.ts +0 -3
- package/dist/test/strapiMocks/strapiContact.d.ts +0 -2
- package/dist/test/strapiMocks/strapiCustomerStory.d.ts +0 -5
- package/dist/test/strapiMocks/strapiEventMock.d.ts +0 -3
- package/dist/test/strapiMocks/strapiHeroCard.d.ts +0 -2
- package/dist/test/strapiMocks/strapiLinkPage.d.ts +0 -3
- package/dist/test/strapiMocks/strapiMedia.d.ts +0 -3
- package/dist/test/strapiMocks/strapiMetadata.d.ts +0 -2
- package/dist/test/strapiMocks/strapiPage.d.ts +0 -3
- package/dist/test/strapiMocks/strapiPortfolioCard.d.ts +0 -2
- package/dist/test/strapiMocks/strapiPortfolioMock.d.ts +0 -3
- package/dist/test/strapiMocks/strapiProject.d.ts +0 -3
- package/dist/test/strapiMocks/strapiProjectCard.d.ts +0 -2
- package/dist/test/strapiMocks/strapiQuoteCard.d.ts +0 -2
- package/dist/test/testUtils.d.ts +0 -6
- package/src/components/ContextProvider/ContextProvider.tsx +0 -81
- package/src/components/ContextProvider/index.ts +0 -1
- package/src/components/CreditsAvailableBadge/CreditsAvailableBadge.test.tsx +0 -68
- package/src/components/CreditsAvailableBadge/CreditsAvailableBadge.tsx +0 -65
- package/src/components/CreditsAvailableBadge/index.ts +0 -3
- package/src/components/CreditsAvailableBadge/messages.de.ts +0 -7
- package/src/components/CreditsAvailableBadge/messages.en.ts +0 -7
- package/src/components/CustomerCard/CustomerCard.test.tsx +0 -49
- package/src/components/CustomerCard/CustomerCard.tsx +0 -58
- package/src/components/CustomerCard/index.ts +0 -3
- package/src/components/CustomerCard/messages.de.ts +0 -4
- package/src/components/CustomerCard/messages.en.ts +0 -4
- package/src/components/CustomerQuoteCard/CustomerQuoteCard.test.tsx +0 -57
- package/src/components/CustomerQuoteCard/CustomerQuoteCard.tsx +0 -61
- package/src/components/CustomerQuoteCard/index.ts +0 -3
- package/src/components/CustomerQuoteCard/messages.de.ts +0 -4
- package/src/components/CustomerQuoteCard/messages.en.ts +0 -4
- package/src/components/EventCard/EventCard.test.tsx +0 -148
- package/src/components/EventCard/EventCard.tsx +0 -334
- package/src/components/EventCard/index.ts +0 -3
- package/src/components/EventCard/messages.de.ts +0 -16
- package/src/components/EventCard/messages.en.ts +0 -16
- package/src/components/FullScreenImage/FullScreenImage.test.tsx +0 -46
- package/src/components/FullScreenImage/FullScreenImage.tsx +0 -129
- package/src/components/FullScreenImage/ZoomableImage.tsx +0 -84
- package/src/components/FullScreenImage/index.ts +0 -3
- package/src/components/LogoCard/LogoCard.test.tsx +0 -29
- package/src/components/LogoCard/LogoCard.tsx +0 -32
- package/src/components/LogoCard/index.ts +0 -3
- package/src/components/MinimalProviders/MinimalProviders.tsx +0 -20
- package/src/components/MinimalProviders/index.ts +0 -3
- package/src/components/PreviewAlert/PreviewAlert.stories.tsx +0 -12
- package/src/components/PreviewAlert/PreviewAlert.test.tsx +0 -15
- package/src/components/PreviewAlert/PreviewAlert.tsx +0 -10
- package/src/components/PreviewAlert/index.ts +0 -1
- package/src/components/ProjectGridCard/ProjectGridCard.test.tsx +0 -60
- package/src/components/ProjectGridCard/ProjectGridCard.tsx +0 -75
- package/src/components/ProjectGridCard/index.ts +0 -3
- package/src/components/ProjectGridCard/messages.de.ts +0 -6
- package/src/components/ProjectGridCard/messages.en.ts +0 -6
- package/src/components/SEOTags/SEOTags.tsx +0 -211
- package/src/components/SEOTags/index.ts +0 -1
- package/src/components/SliceRenderer/SliceRenderer.test.tsx +0 -49
- package/src/components/SliceRenderer/SliceRenderer.tsx +0 -343
- package/src/components/SliceRenderer/index.ts +0 -1
- package/src/components/StrapiLinkButton/StrapiLinkButton.test.tsx +0 -119
- package/src/components/StrapiLinkButton/StrapiLinkButton.tsx +0 -90
- package/src/components/StrapiLinkButton/index.ts +0 -3
- package/src/components/StrapiLinkButtonWithIcon/StrapiLinkButtonWithIcon.test.tsx +0 -58
- package/src/components/StrapiLinkButtonWithIcon/StrapiLinkButtonWithIcon.tsx +0 -37
- package/src/components/StrapiLinkButtonWithIcon/index.ts +0 -3
- package/src/components/portfolio/Contact/Contact.test.tsx +0 -52
- package/src/components/portfolio/Contact/Contact.tsx +0 -80
- package/src/components/portfolio/Contact/index.ts +0 -3
- package/src/components/portfolio/DocumentsDownloadList/DocumentsDownloadList.test.tsx +0 -50
- package/src/components/portfolio/DocumentsDownloadList/DocumentsDownloadList.tsx +0 -79
- package/src/components/portfolio/DocumentsDownloadList/index.ts +0 -3
- package/src/components/portfolio/DocumentsDownloadList/messages.de.ts +0 -7
- package/src/components/portfolio/DocumentsDownloadList/messages.en.ts +0 -7
- package/src/components/portfolio/ProjectInfo/ProjectInfo.test.tsx +0 -111
- package/src/components/portfolio/ProjectInfo/ProjectInfo.tsx +0 -269
- package/src/components/portfolio/ProjectInfo/index.ts +0 -3
- package/src/components/portfolio/ProjectInfo/messages.de.ts +0 -24
- package/src/components/portfolio/ProjectInfo/messages.en.ts +0 -24
- package/src/components/portfolio/SmallCheckout/SmallCheckout.test.tsx +0 -174
- package/src/components/portfolio/SmallCheckout/SmallCheckout.tsx +0 -315
- package/src/components/portfolio/SmallCheckout/index.ts +0 -3
- package/src/components/portfolio/SmallCheckout/messages.de.ts +0 -25
- package/src/components/portfolio/SmallCheckout/messages.en.ts +0 -25
- package/src/constants/animations.ts +0 -1
- package/src/constants/api.ts +0 -5
- package/src/constants/breakpoints.ts +0 -9
- package/src/constants/domain.ts +0 -3
- package/src/constants/fontCustomizations.ts +0 -6
- package/src/constants/fontStyle.ts +0 -51
- package/src/constants/formatter.ts +0 -29
- package/src/constants/globalStyle.ts +0 -11
- package/src/constants/mapbox.ts +0 -24
- package/src/constants/metadata.ts +0 -3
- package/src/constants/slicesConfig.ts +0 -19
- package/src/constants/strapi.ts +0 -7
- package/src/icons/LinkedInIcon.tsx +0 -25
- package/src/index.tsx +0 -131
- package/src/integrations/fpmClient.ts +0 -20
- package/src/integrations/strapi/getAllSlugsFromStrapi.test.ts +0 -45
- package/src/integrations/strapi/getAllSlugsFromStrapi.ts +0 -65
- package/src/integrations/strapi/getFpmProjectById.test.ts +0 -24
- package/src/integrations/strapi/getFpmProjectById.ts +0 -12
- package/src/integrations/strapi/getFpmProjectsByBbox.test.ts +0 -115
- package/src/integrations/strapi/getFpmProjectsByBbox.ts +0 -24
- package/src/integrations/strapi/getPortfolioProjects.test.ts +0 -56
- package/src/integrations/strapi/getPortfolioProjects.ts +0 -38
- package/src/integrations/strapi/getStrapiCollectionType.test.ts +0 -78
- package/src/integrations/strapi/getStrapiCollectionType.ts +0 -81
- package/src/integrations/strapi/getStrapiProjects.test.ts +0 -167
- package/src/integrations/strapi/getStrapiProjects.ts +0 -57
- package/src/integrations/strapi/getStrapiSingleType.test.ts +0 -53
- package/src/integrations/strapi/getStrapiSingleType.ts +0 -50
- package/src/integrations/strapi/strapiClient.ts +0 -21
- package/src/models/BBox.ts +0 -3
- package/src/models/HeaderType.ts +0 -6
- package/src/models/Image.ts +0 -6
- package/src/models/Locale.ts +0 -5
- package/src/models/LocalizedEntity.ts +0 -9
- package/src/models/PageMetadata.ts +0 -12
- package/src/models/PageProps.ts +0 -34
- package/src/models/PortfolioProject.ts +0 -11
- package/src/models/SWRData.ts +0 -6
- package/src/models/forms/CheckoutForm.ts +0 -5
- package/src/models/forms/SmallCheckoutForm.ts +0 -6
- package/src/models/fpm/FPMProject.ts +0 -55
- package/src/models/fpm/Issuer.ts +0 -7
- package/src/models/hooks/UseInfiniteDataHookProps.tsx +0 -13
- package/src/models/hooks/useEvents.ts +0 -46
- package/src/models/strapi/IStrapi.ts +0 -5
- package/src/models/strapi/IStrapiData.ts +0 -6
- package/src/models/strapi/IStrapiResponse.ts +0 -15
- package/src/models/strapi/StrapiAuthor.ts +0 -12
- package/src/models/strapi/StrapiAvatarWithName.ts +0 -10
- package/src/models/strapi/StrapiBanner.ts +0 -11
- package/src/models/strapi/StrapiBlogPost.ts +0 -27
- package/src/models/strapi/StrapiBlogPostProps.ts +0 -7
- package/src/models/strapi/StrapiButtonWithVariant.ts +0 -8
- package/src/models/strapi/StrapiCategory.ts +0 -10
- package/src/models/strapi/StrapiContactArea.ts +0 -12
- package/src/models/strapi/StrapiCustomerStory.ts +0 -26
- package/src/models/strapi/StrapiCustomerStoryProps.ts +0 -9
- package/src/models/strapi/StrapiDefaultHeader.ts +0 -7
- package/src/models/strapi/StrapiEvent.ts +0 -52
- package/src/models/strapi/StrapiGlobal.ts +0 -30
- package/src/models/strapi/StrapiGlossaryItem.ts +0 -7
- package/src/models/strapi/StrapiHeroCard.ts +0 -12
- package/src/models/strapi/StrapiImage.ts +0 -12
- package/src/models/strapi/StrapiImageFormat.ts +0 -13
- package/src/models/strapi/StrapiImageWithLink.ts +0 -8
- package/src/models/strapi/StrapiLink.ts +0 -13
- package/src/models/strapi/StrapiLinkList.ts +0 -9
- package/src/models/strapi/StrapiLinkPage.ts +0 -12
- package/src/models/strapi/StrapiLinkWithIcon.ts +0 -9
- package/src/models/strapi/StrapiLocalization.ts +0 -9
- package/src/models/strapi/StrapiMedia.ts +0 -29
- package/src/models/strapi/StrapiMetadata.ts +0 -16
- package/src/models/strapi/StrapiNavMenu.ts +0 -16
- package/src/models/strapi/StrapiPage.ts +0 -19
- package/src/models/strapi/StrapiPageProps.ts +0 -7
- package/src/models/strapi/StrapiPortfolio.ts +0 -13
- package/src/models/strapi/StrapiPortfolioCard.ts +0 -17
- package/src/models/strapi/StrapiProject.ts +0 -25
- package/src/models/strapi/StrapiProjectCard.ts +0 -20
- package/src/models/strapi/StrapiProjectProps.ts +0 -7
- package/src/models/strapi/StrapiQuoteCard.ts +0 -9
- package/src/models/strapi/StrapiShapesCard.ts +0 -13
- package/src/models/strapi/StrapiTextCardWithIcons.ts +0 -13
- package/src/models/strapi/StrapiTopBanner.ts +0 -9
- package/src/rootMessages.de.ts +0 -53
- package/src/rootMessages.en.ts +0 -53
- package/src/slices/Blog/Blog.test.tsx +0 -147
- package/src/slices/Blog/Blog.tsx +0 -112
- package/src/slices/Blog/index.ts +0 -3
- package/src/slices/Blog/styles.ts +0 -38
- package/src/slices/BlogCards/BlogCards.stories.tsx +0 -154
- package/src/slices/BlogCards/BlogCards.test.tsx +0 -279
- package/src/slices/BlogCards/BlogCards.tsx +0 -209
- package/src/slices/BlogCards/index.ts +0 -3
- package/src/slices/CarouselMarqueeBanner/CarouselMarqueeBanner.stories.tsx +0 -84
- package/src/slices/CarouselMarqueeBanner/CarouselMarqueeBanner.test.tsx +0 -188
- package/src/slices/CarouselMarqueeBanner/CarouselMarqueeBanner.tsx +0 -186
- package/src/slices/CarouselMarqueeBanner/index.ts +0 -3
- package/src/slices/CarouselMarqueeBanner/styles.ts +0 -40
- package/src/slices/Comparison/Comparison.stories.tsx +0 -124
- package/src/slices/Comparison/Comparison.test.tsx +0 -174
- package/src/slices/Comparison/Comparison.tsx +0 -267
- package/src/slices/Comparison/Icon.test.tsx +0 -44
- package/src/slices/Comparison/Icon.tsx +0 -35
- package/src/slices/Comparison/index.ts +0 -3
- package/src/slices/Comparison/messages.de.ts +0 -4
- package/src/slices/Comparison/messages.en.ts +0 -4
- package/src/slices/Cta/Cta.stories.tsx +0 -150
- package/src/slices/Cta/Cta.test.tsx +0 -250
- package/src/slices/Cta/Cta.tsx +0 -420
- package/src/slices/Cta/index.ts +0 -3
- package/src/slices/Cta/messages.de.ts +0 -5
- package/src/slices/Cta/messages.en.ts +0 -5
- package/src/slices/CtaOnly/CtaOnly.stories.tsx +0 -48
- package/src/slices/CtaOnly/CtaOnly.test.tsx +0 -27
- package/src/slices/CtaOnly/CtaOnly.tsx +0 -18
- package/src/slices/CtaOnly/index.ts +0 -3
- package/src/slices/CustomerStories/CustomerStories.stories.tsx +0 -63
- package/src/slices/CustomerStories/CustomerStories.test.tsx +0 -44
- package/src/slices/CustomerStories/CustomerStories.tsx +0 -50
- package/src/slices/CustomerStories/index.ts +0 -3
- package/src/slices/Events/Events.stories.tsx +0 -36
- package/src/slices/Events/Events.test.tsx +0 -350
- package/src/slices/Events/Events.tsx +0 -477
- package/src/slices/Events/index.ts +0 -3
- package/src/slices/Events/messages.de.ts +0 -14
- package/src/slices/Events/messages.en.ts +0 -13
- package/src/slices/Facts/Facts.stories.tsx +0 -98
- package/src/slices/Facts/Facts.test.tsx +0 -100
- package/src/slices/Facts/Facts.tsx +0 -142
- package/src/slices/Facts/index.ts +0 -3
- package/src/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.stories.tsx +0 -42
- package/src/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.test.tsx +0 -40
- package/src/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.tsx +0 -58
- package/src/slices/FullWidthHighlightQuote/index.ts +0 -3
- package/src/slices/FullWidthImage/FullWidthImage.stories.tsx +0 -41
- package/src/slices/FullWidthImage/FullWidthImage.test.tsx +0 -34
- package/src/slices/FullWidthImage/FullWidthImage.tsx +0 -64
- package/src/slices/FullWidthImage/index.ts +0 -3
- package/src/slices/FullWidthImageSlider/FullWidthImageSlider.stories.tsx +0 -76
- package/src/slices/FullWidthImageSlider/FullWidthImageSlider.test.tsx +0 -50
- package/src/slices/FullWidthImageSlider/FullWidthImageSlider.tsx +0 -191
- package/src/slices/FullWidthImageSlider/index.ts +0 -3
- package/src/slices/FullWidthImageSlider/styles.ts +0 -78
- package/src/slices/Glossary/Glossary.stories.tsx +0 -43
- package/src/slices/Glossary/Glossary.test.tsx +0 -102
- package/src/slices/Glossary/Glossary.tsx +0 -110
- package/src/slices/Glossary/index.ts +0 -3
- package/src/slices/Glossary/messages.de.ts +0 -8
- package/src/slices/Glossary/messages.en.ts +0 -7
- package/src/slices/Hero/Hero.stories.tsx +0 -130
- package/src/slices/Hero/Hero.test.tsx +0 -90
- package/src/slices/Hero/Hero.tsx +0 -121
- package/src/slices/Hero/index.ts +0 -3
- package/src/slices/IconGrid/IconGrid.stories.tsx +0 -179
- package/src/slices/IconGrid/IconGrid.test.tsx +0 -82
- package/src/slices/IconGrid/IconGrid.tsx +0 -122
- package/src/slices/IconGrid/index.ts +0 -3
- package/src/slices/ImageGrid/ImageGrid.stories.tsx +0 -93
- package/src/slices/ImageGrid/ImageGrid.test.tsx +0 -83
- package/src/slices/ImageGrid/ImageGrid.tsx +0 -93
- package/src/slices/ImageGrid/index.ts +0 -3
- package/src/slices/ImageTextSequence/ImageTextSequence.stories.tsx +0 -135
- package/src/slices/ImageTextSequence/ImageTextSequence.test.tsx +0 -92
- package/src/slices/ImageTextSequence/ImageTextSequence.tsx +0 -156
- package/src/slices/ImageTextSequence/index.ts +0 -3
- package/src/slices/LeftTextRightCard/LeftTextRightCard.stories.tsx +0 -94
- package/src/slices/LeftTextRightCard/LeftTextRightCard.test.tsx +0 -73
- package/src/slices/LeftTextRightCard/LeftTextRightCard.tsx +0 -131
- package/src/slices/LeftTextRightCard/index.ts +0 -3
- package/src/slices/LinkCardsGrid/LinkCardsGrid.stories.tsx +0 -61
- package/src/slices/LinkCardsGrid/LinkCardsGrid.test.tsx +0 -37
- package/src/slices/LinkCardsGrid/LinkCardsGrid.tsx +0 -97
- package/src/slices/LinkCardsGrid/index.ts +0 -3
- package/src/slices/LogoGridWithText/LogoGridWithText.stories.tsx +0 -74
- package/src/slices/LogoGridWithText/LogoGridWithText.test.tsx +0 -56
- package/src/slices/LogoGridWithText/LogoGridWithText.tsx +0 -96
- package/src/slices/LogoGridWithText/index.ts +0 -3
- package/src/slices/MapHero/MapHero.stories.tsx +0 -113
- package/src/slices/MapHero/MapHero.test.tsx +0 -86
- package/src/slices/MapHero/MapHero.tsx +0 -95
- package/src/slices/MapHero/index.ts +0 -3
- package/src/slices/MapHero/styles.ts +0 -106
- package/src/slices/ProjectFacts/ProjectFacts.stories.tsx +0 -146
- package/src/slices/ProjectFacts/ProjectFacts.test.tsx +0 -83
- package/src/slices/ProjectFacts/ProjectFacts.tsx +0 -143
- package/src/slices/ProjectFacts/index.ts +0 -3
- package/src/slices/ProjectFacts/messages.de.ts +0 -4
- package/src/slices/ProjectFacts/messages.en.ts +0 -4
- package/src/slices/ProjectsGrid/ProjectsGrid.stories.tsx +0 -57
- package/src/slices/ProjectsGrid/ProjectsGrid.test.tsx +0 -57
- package/src/slices/ProjectsGrid/ProjectsGrid.tsx +0 -77
- package/src/slices/ProjectsGrid/index.ts +0 -3
- package/src/slices/ProjectsMap/ProjectsMap.stories.tsx +0 -52
- package/src/slices/ProjectsMap/ProjectsMap.test.tsx +0 -168
- package/src/slices/ProjectsMap/ProjectsMap.tsx +0 -588
- package/src/slices/ProjectsMap/index.ts +0 -3
- package/src/slices/ProjectsMap/mapboxStyle.ts +0 -670
- package/src/slices/ProjectsMap/messages.de.ts +0 -4
- package/src/slices/ProjectsMap/messages.en.ts +0 -4
- package/src/slices/QAndA/QAndA.stories.tsx +0 -109
- package/src/slices/QAndA/QAndA.test.tsx +0 -69
- package/src/slices/QAndA/QAndA.tsx +0 -178
- package/src/slices/QAndA/index.ts +0 -3
- package/src/slices/QuoteCards/QuoteCards.stories.tsx +0 -119
- package/src/slices/QuoteCards/QuoteCards.test.tsx +0 -53
- package/src/slices/QuoteCards/QuoteCards.tsx +0 -160
- package/src/slices/QuoteCards/index.ts +0 -3
- package/src/slices/Redirect/Redirect.test.tsx +0 -73
- package/src/slices/Redirect/Redirect.tsx +0 -29
- package/src/slices/Redirect/index.ts +0 -3
- package/src/slices/RichTextSection/RichTextSection.stories.tsx +0 -28
- package/src/slices/RichTextSection/RichTextSection.test.tsx +0 -21
- package/src/slices/RichTextSection/RichTextSection.tsx +0 -28
- package/src/slices/RichTextSection/index.ts +0 -3
- package/src/slices/ShopCheckout/ShopCheckout.stories.tsx +0 -90
- package/src/slices/ShopCheckout/ShopCheckout.test.tsx +0 -194
- package/src/slices/ShopCheckout/ShopCheckout.tsx +0 -269
- package/src/slices/ShopCheckout/index.ts +0 -3
- package/src/slices/ShopCheckout/messages.de.ts +0 -27
- package/src/slices/ShopCheckout/messages.en.ts +0 -27
- package/src/slices/SideBySideImages/SideBySideImages.stories.tsx +0 -40
- package/src/slices/SideBySideImages/SideBySideImages.test.tsx +0 -53
- package/src/slices/SideBySideImages/SideBySideImages.tsx +0 -58
- package/src/slices/SideBySideImages/index.ts +0 -3
- package/src/slices/SmallHero/SmallHero.stories.tsx +0 -139
- package/src/slices/SmallHero/SmallHero.test.tsx +0 -71
- package/src/slices/SmallHero/SmallHero.tsx +0 -128
- package/src/slices/SmallHero/index.ts +0 -3
- package/src/slices/Steps/Steps.stories.tsx +0 -96
- package/src/slices/Steps/Steps.test.tsx +0 -69
- package/src/slices/Steps/Steps.tsx +0 -223
- package/src/slices/Steps/index.ts +0 -3
- package/src/slices/TextCardGrid/TextCardGrid.stories.tsx +0 -157
- package/src/slices/TextCardGrid/TextCardGrid.test.tsx +0 -104
- package/src/slices/TextCardGrid/TextCardGrid.tsx +0 -288
- package/src/slices/TextCardGrid/index.ts +0 -3
- package/src/slices/TextCarousel/TextCarousel.stories.tsx +0 -129
- package/src/slices/TextCarousel/TextCarousel.test.tsx +0 -134
- package/src/slices/TextCarousel/TextCarousel.tsx +0 -251
- package/src/slices/TextCarousel/index.ts +0 -3
- package/src/slices/TextCarousel/messages.de.ts +0 -5
- package/src/slices/TextCarousel/messages.en.ts +0 -5
- package/src/slices/TextCarousel/styles.ts +0 -64
- package/src/slices/TextWithCard/TextWithCard.stories.tsx +0 -226
- package/src/slices/TextWithCard/TextWithCard.test.tsx +0 -100
- package/src/slices/TextWithCard/TextWithCard.tsx +0 -129
- package/src/slices/TextWithCard/index.ts +0 -3
- package/src/slices/TextWithTextCards/TextWithTextCards.stories.tsx +0 -122
- package/src/slices/TextWithTextCards/TextWithTextCards.test.tsx +0 -58
- package/src/slices/TextWithTextCards/TextWithTextCards.tsx +0 -196
- package/src/slices/TextWithTextCards/index.ts +0 -3
- package/src/slices/Timeline/Timeline.stories.tsx +0 -200
- package/src/slices/Timeline/Timeline.test.tsx +0 -227
- package/src/slices/Timeline/Timeline.tsx +0 -332
- package/src/slices/Timeline/index.ts +0 -3
- package/src/slices/Timeline/messages.de.ts +0 -5
- package/src/slices/Timeline/messages.en.ts +0 -5
- package/src/slices/Video/Video.stories.tsx +0 -19
- package/src/slices/Video/Video.test.tsx +0 -27
- package/src/slices/Video/Video.tsx +0 -36
- package/src/slices/Video/index.ts +0 -3
- package/src/stories/Introduction.mdx +0 -41
- package/src/test/defaultMocks/next.ts +0 -29
- package/src/test/integrationMocks/fpmProjectMock.ts +0 -41
- package/src/test/integrationMocks/portfolioProjectMock.ts +0 -16
- package/src/test/mocks/getStaticPropsContext.ts +0 -9
- package/src/test/mocks/portfolioProjectMock.ts +0 -9
- package/src/test/setupTests.ts +0 -7
- package/src/test/storybookMocks/storybookMedia.ts +0 -2
- package/src/test/storybookMocks/storybookStrapiMedia.ts +0 -58
- package/src/test/strapiMocks/minimalGlobalData.ts +0 -25
- package/src/test/strapiMocks/strapiAvatarWithName.ts +0 -12
- package/src/test/strapiMocks/strapiBlogPost.ts +0 -216
- package/src/test/strapiMocks/strapiContact.ts +0 -15
- package/src/test/strapiMocks/strapiCustomerStory.ts +0 -78
- package/src/test/strapiMocks/strapiEventMock.ts +0 -58
- package/src/test/strapiMocks/strapiHeroCard.ts +0 -7
- package/src/test/strapiMocks/strapiLinkPage.ts +0 -14
- package/src/test/strapiMocks/strapiMedia.ts +0 -91
- package/src/test/strapiMocks/strapiMetadata.ts +0 -13
- package/src/test/strapiMocks/strapiPage.ts +0 -683
- package/src/test/strapiMocks/strapiPortfolioCard.ts +0 -40
- package/src/test/strapiMocks/strapiPortfolioMock.ts +0 -20
- package/src/test/strapiMocks/strapiProject.ts +0 -39
- package/src/test/strapiMocks/strapiProjectCard.ts +0 -20
- package/src/test/strapiMocks/strapiQuoteCard.ts +0 -8
- package/src/test/testUtils.tsx +0 -25
- package/src/unit.messages.de.ts +0 -5
- package/src/unit.messages.en.ts +0 -5
- package/src/utils/buildRedirectUrl.test.ts +0 -102
- package/src/utils/buildRedirectUrl.ts +0 -34
- package/src/utils/convertAreaM2ToHa.test.ts +0 -9
- package/src/utils/convertAreaM2ToHa.ts +0 -4
- package/src/utils/convertCo2AmountKgToTons.ts +0 -4
- package/src/utils/convertToKebabCase.test.ts +0 -9
- package/src/utils/convertToKebabCase.ts +0 -10
- package/src/utils/getClosestRatio.test.ts +0 -10
- package/src/utils/getClosestRatio.ts +0 -17
- package/src/utils/getCountryFlag.test.ts +0 -9
- package/src/utils/getCountryFlag.ts +0 -6
- package/src/utils/getMessages.ts +0 -18
- package/src/utils/getTimeSpanInYears.test.ts +0 -35
- package/src/utils/getTimeSpanInYears.ts +0 -14
- package/src/utils/isSameDate.test.ts +0 -18
- package/src/utils/isSameDate.ts +0 -9
- package/src/utils/mergeBoundingBoxes.test.ts +0 -13
- package/src/utils/mergeBoundingBoxes.ts +0 -19
- package/src/utils/mergeDeep.ts +0 -31
- package/src/utils/mergeGlobalAndStrapiBlogPostData.test.ts +0 -303
- package/src/utils/mergeGlobalAndStrapiBlogPostData.ts +0 -87
- package/src/utils/mergeGlobalAndStrapiCustomerStoryData.test.ts +0 -268
- package/src/utils/mergeGlobalAndStrapiCustomerStoryData.ts +0 -81
- package/src/utils/mergeGlobalAndStrapiPageData.test.ts +0 -426
- package/src/utils/mergeGlobalAndStrapiPageData.ts +0 -102
- package/src/utils/mergeGlobalAndStrapiProjectData.test.ts +0 -385
- package/src/utils/mergeGlobalAndStrapiProjectData.ts +0 -96
- package/src/utils/mergeProjectData.ts +0 -34
- package/src/utils/openHubSpotChat.ts +0 -15
- package/src/utils/shuffleElements.test.ts +0 -48
- package/src/utils/shuffleElements.ts +0 -10
- package/src/utils/strapiLinkUrl.test.ts +0 -26
- package/src/utils/strapiLinkUrl.ts +0 -13
- package/src/utils/strapiMediaUrl.test.ts +0 -54
- package/src/utils/strapiMediaUrl.ts +0 -31
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import StrapiImage from '../../models/strapi/StrapiImage';
|
|
2
|
-
import strapiMediaUrl from '../../utils/strapiMediaUrl';
|
|
3
|
-
import { Box } from 'boemly';
|
|
4
|
-
import Head from 'next/head';
|
|
5
|
-
import Image from 'next/image';
|
|
6
|
-
import React, { useState } from 'react';
|
|
7
|
-
|
|
8
|
-
interface ZoomableImageProps {
|
|
9
|
-
image: StrapiImage;
|
|
10
|
-
zoom?: number;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const ZoomableImage = ({ image, zoom = 200 }: ZoomableImageProps) => {
|
|
14
|
-
// define and set default values to the states of the component
|
|
15
|
-
const [isZoomed, setIsZoomed] = useState(false);
|
|
16
|
-
const [backgroundPos, setBackgroundPos] = useState('50% 50%');
|
|
17
|
-
|
|
18
|
-
const imageSrc = strapiMediaUrl(image.img, 'xLarge');
|
|
19
|
-
|
|
20
|
-
const zoomInPosition = (e: React.MouseEvent<HTMLElement, MouseEvent>) => {
|
|
21
|
-
// This will handle the calculations of the area where the image needs to zoom in depending on the user interaction
|
|
22
|
-
const zoomer = e.currentTarget.getBoundingClientRect();
|
|
23
|
-
const x = ((e.clientX - zoomer.x) / zoomer.width) * 100;
|
|
24
|
-
const y = ((e.clientY - zoomer.y) / zoomer.height) * 100;
|
|
25
|
-
setBackgroundPos(`${x}% ${y}%`);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const toggleZoomImage = (e: React.MouseEvent<HTMLElement, MouseEvent>) => {
|
|
29
|
-
if (isZoomed) {
|
|
30
|
-
setIsZoomed(false);
|
|
31
|
-
} else {
|
|
32
|
-
// Zoom in and set the background position correctly
|
|
33
|
-
setIsZoomed(true);
|
|
34
|
-
zoomInPosition(e);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
const handleClick = (e: React.MouseEvent<HTMLElement, MouseEvent>) => {
|
|
39
|
-
toggleZoomImage(e);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
const handleMove = (e: React.MouseEvent<HTMLElement, MouseEvent>) => {
|
|
43
|
-
if (isZoomed) {
|
|
44
|
-
zoomInPosition(e);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
return (
|
|
49
|
-
<>
|
|
50
|
-
<Head>
|
|
51
|
-
<link rel="prefetch" as="image" href={imageSrc} />
|
|
52
|
-
</Head>
|
|
53
|
-
<Box
|
|
54
|
-
position="relative"
|
|
55
|
-
display="inline-block"
|
|
56
|
-
width="full"
|
|
57
|
-
height="full"
|
|
58
|
-
overflow="hidden"
|
|
59
|
-
flexShrink="0"
|
|
60
|
-
scrollSnapAlign="center"
|
|
61
|
-
scrollSnapStop="always"
|
|
62
|
-
draggable="false"
|
|
63
|
-
cursor={isZoomed ? 'zoom-out' : 'zoom-in'}
|
|
64
|
-
backgroundImage={isZoomed ? `url( ${imageSrc} )` : 'none'}
|
|
65
|
-
backgroundSize={`${zoom}%`}
|
|
66
|
-
backgroundPosition={backgroundPos}
|
|
67
|
-
onClick={(e) => handleClick(e)}
|
|
68
|
-
onMouseMove={(e) => handleMove(e)}
|
|
69
|
-
>
|
|
70
|
-
<Image
|
|
71
|
-
src={imageSrc}
|
|
72
|
-
alt={image.alt}
|
|
73
|
-
fill
|
|
74
|
-
style={{
|
|
75
|
-
visibility: isZoomed ? 'hidden' : 'visible',
|
|
76
|
-
objectFit: 'contain',
|
|
77
|
-
}}
|
|
78
|
-
/>
|
|
79
|
-
</Box>
|
|
80
|
-
</>
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export default ZoomableImage;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render, screen } from '../../test/testUtils';
|
|
3
|
-
import { mergeDeep } from '../../utils/mergeDeep';
|
|
4
|
-
import { strapiCustomerStoryMock } from '../../test/strapiMocks/strapiCustomerStory';
|
|
5
|
-
import { LogoCardProps } from './LogoCard';
|
|
6
|
-
import LogoCard from '.';
|
|
7
|
-
|
|
8
|
-
const defaultProps: LogoCardProps = {
|
|
9
|
-
customerStory: strapiCustomerStoryMock.attributes,
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const setup = (props = {}) => {
|
|
13
|
-
const combinedProps = mergeDeep(defaultProps, props);
|
|
14
|
-
render(<LogoCard {...combinedProps} />);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
describe('The LogoCard component', () => {
|
|
18
|
-
it('displays the customer card image with the link', () => {
|
|
19
|
-
setup();
|
|
20
|
-
|
|
21
|
-
expect(screen.getByRole('img')).toBeInTheDocument();
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
it('displays the link', () => {
|
|
25
|
-
setup();
|
|
26
|
-
|
|
27
|
-
expect(screen.getByRole('link')).toBeInTheDocument();
|
|
28
|
-
});
|
|
29
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Box, Container, Flex } from 'boemly';
|
|
2
|
-
import { StrapiCustomerStory, strapiMediaUrl } from '../..';
|
|
3
|
-
import Image from 'next/image';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import Link from 'next/link';
|
|
6
|
-
|
|
7
|
-
export interface LogoCardProps {
|
|
8
|
-
customerStory: StrapiCustomerStory;
|
|
9
|
-
}
|
|
10
|
-
export const LogoCard = ({ customerStory }: LogoCardProps) => {
|
|
11
|
-
if (customerStory.cardImage) {
|
|
12
|
-
return (
|
|
13
|
-
<Container height="full" backgroundColor="primary.50">
|
|
14
|
-
<Flex justifyContent="center" height="full" padding="4">
|
|
15
|
-
<Box position="relative" height="12" width="36" marginY="auto">
|
|
16
|
-
<Link href={`/customer-stories/${customerStory.slug}`}>
|
|
17
|
-
<Image
|
|
18
|
-
src={strapiMediaUrl(customerStory.cardImage.img, 'medium')}
|
|
19
|
-
alt={customerStory.cardImage.alt}
|
|
20
|
-
fill
|
|
21
|
-
style={{
|
|
22
|
-
objectFit: customerStory.cardImage.objectFit,
|
|
23
|
-
}}
|
|
24
|
-
/>
|
|
25
|
-
</Link>
|
|
26
|
-
</Box>
|
|
27
|
-
</Flex>
|
|
28
|
-
</Container>
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
return <></>;
|
|
32
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FONT_CUSTOMIZATIONS } from '../../constants/fontCustomizations';
|
|
3
|
-
import { BoemlyThemeProvider } from 'boemly';
|
|
4
|
-
import { IntlProvider } from 'react-intl';
|
|
5
|
-
import getMessages from '../../utils/getMessages';
|
|
6
|
-
|
|
7
|
-
interface MinimalProvidersProps {
|
|
8
|
-
locale: string;
|
|
9
|
-
children: JSX.Element | JSX.Element[];
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const MinimalProviders = ({ children, locale }: MinimalProvidersProps) => (
|
|
13
|
-
<IntlProvider messages={getMessages(locale)} locale={locale}>
|
|
14
|
-
<BoemlyThemeProvider fonts={FONT_CUSTOMIZATIONS}>
|
|
15
|
-
{children}
|
|
16
|
-
</BoemlyThemeProvider>
|
|
17
|
-
</IntlProvider>
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
export default MinimalProviders;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta, StoryFn } from '@storybook/react';
|
|
3
|
-
import { PreviewAlert } from '.';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'dev/PreviewAlert',
|
|
7
|
-
component: PreviewAlert,
|
|
8
|
-
} as Meta<typeof PreviewAlert>;
|
|
9
|
-
|
|
10
|
-
const Template: StoryFn<typeof PreviewAlert> = () => <PreviewAlert />;
|
|
11
|
-
|
|
12
|
-
export const Default = Template.bind({});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render, screen } from '@testing-library/react';
|
|
3
|
-
import { PreviewAlert } from '.';
|
|
4
|
-
|
|
5
|
-
const setup = () => {
|
|
6
|
-
render(<PreviewAlert />);
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
describe('The PreviewAlert component', () => {
|
|
10
|
-
it('displays a preview alert', () => {
|
|
11
|
-
setup();
|
|
12
|
-
|
|
13
|
-
expect(screen.getByText('Preview')).toBeInTheDocument();
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PreviewAlert } from './PreviewAlert';
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { render, screen } from '../../test/testUtils';
|
|
2
|
-
import { ProjectGridCardProps } from './ProjectGridCard';
|
|
3
|
-
import ProjectGridCard from '.';
|
|
4
|
-
import fpmProjectMock from '../../test/integrationMocks/fpmProjectMock';
|
|
5
|
-
import { strapiMediaMock } from '../../test/strapiMocks/strapiMedia';
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import messagesEn from '../../components/CreditsAvailableBadge/messages.en';
|
|
8
|
-
|
|
9
|
-
const defaultProps: ProjectGridCardProps = {
|
|
10
|
-
project: {
|
|
11
|
-
...fpmProjectMock,
|
|
12
|
-
slug: 'slug',
|
|
13
|
-
thumbnail: { img: { data: strapiMediaMock }, alt: 'Alt Text', id: 1 },
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const setup = (props = {}) => {
|
|
18
|
-
const combinedProps = { ...defaultProps, ...props };
|
|
19
|
-
render(<ProjectGridCard {...combinedProps} />);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
describe('The ProjectGridCard component', () => {
|
|
23
|
-
it('displays the project card', () => {
|
|
24
|
-
setup();
|
|
25
|
-
|
|
26
|
-
expect(screen.getByText(fpmProjectMock.title)).toBeInTheDocument();
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
it('displays the project thumbnail', () => {
|
|
30
|
-
setup();
|
|
31
|
-
|
|
32
|
-
expect(screen.getByRole('img')).toHaveProperty('alt', 'Alt Text');
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
it('displays the project area', () => {
|
|
36
|
-
setup();
|
|
37
|
-
|
|
38
|
-
expect(screen.getByText('140 ha')).toBeInTheDocument();
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
it('displays the project location', () => {
|
|
42
|
-
setup();
|
|
43
|
-
|
|
44
|
-
expect(screen.getByText('Austria')).toBeInTheDocument();
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('displays the certification date if it is defined', () => {
|
|
48
|
-
setup();
|
|
49
|
-
|
|
50
|
-
expect(screen.getByText('Certified, 2020')).toBeInTheDocument();
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
it('displays the credits available badge', () => {
|
|
54
|
-
setup();
|
|
55
|
-
|
|
56
|
-
expect(
|
|
57
|
-
screen.getByText(messagesEn['components.creditsAvailableBadge.text.yes'])
|
|
58
|
-
).toBeInTheDocument();
|
|
59
|
-
});
|
|
60
|
-
});
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Box, Container, Flex, Heading, Tag, Text } from 'boemly';
|
|
2
|
-
import React, { useContext } from 'react';
|
|
3
|
-
import Image from 'next/image';
|
|
4
|
-
import PortfolioProject from '../../models/PortfolioProject';
|
|
5
|
-
import { strapiMediaUrl } from '../..';
|
|
6
|
-
import { FORMAT_AS_HECTARE_CONFIG } from '../../constants/formatter';
|
|
7
|
-
import CreditsAvailableBadge from '../../components/CreditsAvailableBadge';
|
|
8
|
-
import { IntlContext } from '../ContextProvider';
|
|
9
|
-
|
|
10
|
-
export interface ProjectGridCardProps {
|
|
11
|
-
project: PortfolioProject;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const ProjectGridCard = ({
|
|
15
|
-
project,
|
|
16
|
-
}: ProjectGridCardProps): JSX.Element => {
|
|
17
|
-
const { formatNumber, formatMessage } = useContext(IntlContext);
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<Container height="full">
|
|
21
|
-
<Flex flexDir="column" height="full">
|
|
22
|
-
{project.thumbnail && (
|
|
23
|
-
<Box borderRadius="xl" position="relative" height="36" mb="2">
|
|
24
|
-
<Image
|
|
25
|
-
src={strapiMediaUrl(project.thumbnail?.img, 'medium')}
|
|
26
|
-
alt={project.thumbnail?.alt}
|
|
27
|
-
fill
|
|
28
|
-
style={{
|
|
29
|
-
objectFit: project.thumbnail?.objectFit || 'cover',
|
|
30
|
-
borderRadius: 'var(--boemly-radii-xl)',
|
|
31
|
-
}}
|
|
32
|
-
/>
|
|
33
|
-
</Box>
|
|
34
|
-
)}
|
|
35
|
-
<Heading my="4" size="lg">
|
|
36
|
-
{project.friendlyName || project.title}
|
|
37
|
-
</Heading>
|
|
38
|
-
<Flex flexDir="row" gap="2" flexWrap="wrap">
|
|
39
|
-
<Tag>
|
|
40
|
-
<Text size="xsLowBold" color="gray.800">
|
|
41
|
-
{formatNumber(
|
|
42
|
-
(project.area || 0) / 10000,
|
|
43
|
-
FORMAT_AS_HECTARE_CONFIG
|
|
44
|
-
)}
|
|
45
|
-
</Text>
|
|
46
|
-
</Tag>
|
|
47
|
-
<Tag>
|
|
48
|
-
<Text size="xsLowBold" color="gray.800">
|
|
49
|
-
{project.location}
|
|
50
|
-
</Text>
|
|
51
|
-
</Tag>
|
|
52
|
-
{project.certificationDate ? (
|
|
53
|
-
<Tag>
|
|
54
|
-
<Text size="xsLowBold" color="gray.800">
|
|
55
|
-
{formatMessage(
|
|
56
|
-
{ id: 'components.projectGridCard.certified' },
|
|
57
|
-
{ year: new Date(project.certificationDate).getFullYear() }
|
|
58
|
-
)}
|
|
59
|
-
</Text>
|
|
60
|
-
</Tag>
|
|
61
|
-
) : (
|
|
62
|
-
<Tag>
|
|
63
|
-
<Text size="xsLowBold" color="gray.800">
|
|
64
|
-
{formatMessage({
|
|
65
|
-
id: 'components.projectGridCard.certificationInProgress',
|
|
66
|
-
})}
|
|
67
|
-
</Text>
|
|
68
|
-
</Tag>
|
|
69
|
-
)}
|
|
70
|
-
<CreditsAvailableBadge status={project.creditAvailability} />
|
|
71
|
-
</Flex>
|
|
72
|
-
</Flex>
|
|
73
|
-
</Container>
|
|
74
|
-
);
|
|
75
|
-
};
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Head from 'next/head';
|
|
3
|
-
import {
|
|
4
|
-
DEFAULT_SHARE_ALT,
|
|
5
|
-
DEFAULT_SHARE_IMAGE,
|
|
6
|
-
} from '../../constants/metadata';
|
|
7
|
-
import {
|
|
8
|
-
Article,
|
|
9
|
-
BlogPosting,
|
|
10
|
-
Brand,
|
|
11
|
-
BreadcrumbList,
|
|
12
|
-
Event,
|
|
13
|
-
FAQPage,
|
|
14
|
-
HowTo,
|
|
15
|
-
LocalBusiness,
|
|
16
|
-
Offer,
|
|
17
|
-
Organization,
|
|
18
|
-
Person,
|
|
19
|
-
Product,
|
|
20
|
-
QAPage,
|
|
21
|
-
Service,
|
|
22
|
-
SoftwareApplication,
|
|
23
|
-
WebPage,
|
|
24
|
-
WithContext,
|
|
25
|
-
} from 'schema-dts';
|
|
26
|
-
|
|
27
|
-
type SupportedSchemaType =
|
|
28
|
-
| Article
|
|
29
|
-
| BlogPosting
|
|
30
|
-
| Brand
|
|
31
|
-
| BreadcrumbList
|
|
32
|
-
| Event
|
|
33
|
-
| FAQPage
|
|
34
|
-
| HowTo
|
|
35
|
-
| LocalBusiness
|
|
36
|
-
| Offer
|
|
37
|
-
| Organization
|
|
38
|
-
| Person
|
|
39
|
-
| Product
|
|
40
|
-
| QAPage
|
|
41
|
-
| Product
|
|
42
|
-
| Service
|
|
43
|
-
| SoftwareApplication
|
|
44
|
-
| WebPage;
|
|
45
|
-
|
|
46
|
-
// Helper function to convert SchemaValue to string
|
|
47
|
-
const getTextValue = (value: unknown): string => {
|
|
48
|
-
if (typeof value === 'string') return value;
|
|
49
|
-
if (typeof value === 'object' && value !== null && 'text' in value) {
|
|
50
|
-
return (value as { text: string }).text;
|
|
51
|
-
}
|
|
52
|
-
return '';
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
// Helper function to safely access properties from a schema
|
|
56
|
-
const getSchemaProperty = (
|
|
57
|
-
schema: SupportedSchemaType,
|
|
58
|
-
property: string
|
|
59
|
-
): string => {
|
|
60
|
-
return (
|
|
61
|
-
getTextValue((schema as unknown as Record<string, unknown>)[property]) || ''
|
|
62
|
-
);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
// Helper function to get a unique identifier from a schema
|
|
66
|
-
const getSchemaIdentifier = (schema: SupportedSchemaType): string => {
|
|
67
|
-
const type = (schema as { '@type': string })['@type'];
|
|
68
|
-
|
|
69
|
-
switch (type) {
|
|
70
|
-
case 'Organization':
|
|
71
|
-
return getSchemaProperty(schema, 'name') || 'default';
|
|
72
|
-
case 'Article':
|
|
73
|
-
case 'BlogPosting':
|
|
74
|
-
return getSchemaProperty(schema, 'headline') || 'untitled-article';
|
|
75
|
-
case 'Product':
|
|
76
|
-
return getSchemaProperty(schema, 'name') || 'untitled-product';
|
|
77
|
-
case 'Person':
|
|
78
|
-
return getSchemaProperty(schema, 'name') || 'unnamed-person';
|
|
79
|
-
case 'Event':
|
|
80
|
-
return getSchemaProperty(schema, 'name') || 'untitled-event';
|
|
81
|
-
case 'LocalBusiness':
|
|
82
|
-
return getSchemaProperty(schema, 'name') || 'unnamed-business';
|
|
83
|
-
case 'Service':
|
|
84
|
-
return getSchemaProperty(schema, 'name') || 'unnamed-service';
|
|
85
|
-
case 'Brand':
|
|
86
|
-
return getSchemaProperty(schema, 'name') || 'unnamed-brand';
|
|
87
|
-
case 'FAQPage':
|
|
88
|
-
return 'faq-page';
|
|
89
|
-
case 'HowTo':
|
|
90
|
-
return getSchemaProperty(schema, 'name') || 'untitled-howto';
|
|
91
|
-
case 'BreadcrumbList':
|
|
92
|
-
return 'breadcrumbs';
|
|
93
|
-
case 'Offer':
|
|
94
|
-
const offer = schema as Offer;
|
|
95
|
-
return `offer-${offer.price ?? 'unknown-price'}`;
|
|
96
|
-
case 'WebPage':
|
|
97
|
-
return getSchemaProperty(schema, 'name') || 'untitled-page';
|
|
98
|
-
case 'QAPage':
|
|
99
|
-
return getSchemaProperty(schema, 'name') || 'untitled-qa';
|
|
100
|
-
case 'SoftwareApplication':
|
|
101
|
-
return getSchemaProperty(schema, 'name') || 'untitled-software';
|
|
102
|
-
default:
|
|
103
|
-
return 'unknown-schema';
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
interface SEOTagsProps {
|
|
108
|
-
title: string;
|
|
109
|
-
description: string;
|
|
110
|
-
shareImage?: {
|
|
111
|
-
url: string;
|
|
112
|
-
alt: string;
|
|
113
|
-
};
|
|
114
|
-
metaTitleSuffix?: string;
|
|
115
|
-
favicon?: string;
|
|
116
|
-
domain?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Structured data for SEO purposes, following the schema.org standard.
|
|
119
|
-
* This can be a single schema object or an array of schema objects.
|
|
120
|
-
* Each object must include an `@context` property set to "https://schema.org"
|
|
121
|
-
* and an `@type` property indicating the type of schema (e.g., Article, Product).
|
|
122
|
-
*/
|
|
123
|
-
schemaMarkup?:
|
|
124
|
-
| WithContext<SupportedSchemaType>
|
|
125
|
-
| WithContext<SupportedSchemaType>[];
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
const validateSchema = (
|
|
129
|
-
schema: WithContext<SupportedSchemaType> | WithContext<SupportedSchemaType>[]
|
|
130
|
-
): boolean => {
|
|
131
|
-
if (Array.isArray(schema)) {
|
|
132
|
-
return schema.every(
|
|
133
|
-
(item) => item['@context'] === 'https://schema.org' && '@type' in item
|
|
134
|
-
);
|
|
135
|
-
}
|
|
136
|
-
return schema['@context'] === 'https://schema.org' && '@type' in schema;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
export const SEOTags: React.FC<SEOTagsProps> = ({
|
|
140
|
-
title,
|
|
141
|
-
description,
|
|
142
|
-
shareImage,
|
|
143
|
-
metaTitleSuffix = 'Tree.ly',
|
|
144
|
-
favicon = 'https://cdn.tree.ly/favicon.ico',
|
|
145
|
-
domain = 'tree.ly',
|
|
146
|
-
schemaMarkup,
|
|
147
|
-
}: SEOTagsProps) => {
|
|
148
|
-
const shareImageUrl = shareImage?.url ?? DEFAULT_SHARE_IMAGE;
|
|
149
|
-
const shareImageAlt = shareImage?.alt ?? DEFAULT_SHARE_ALT;
|
|
150
|
-
|
|
151
|
-
let schemas = schemaMarkup;
|
|
152
|
-
let isValidSchema = schemaMarkup ? validateSchema(schemaMarkup) : false;
|
|
153
|
-
|
|
154
|
-
if (schemaMarkup && !isValidSchema) {
|
|
155
|
-
console.warn(
|
|
156
|
-
'Invalid schema markup provided to SEOTags component. Schema markup will not be rendered.',
|
|
157
|
-
schemaMarkup
|
|
158
|
-
);
|
|
159
|
-
schemas = undefined;
|
|
160
|
-
isValidSchema = false;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
const schemaArray = schemas
|
|
164
|
-
? Array.isArray(schemas)
|
|
165
|
-
? schemas
|
|
166
|
-
: [schemas]
|
|
167
|
-
: [];
|
|
168
|
-
|
|
169
|
-
const getSchemaKey = (
|
|
170
|
-
schema: WithContext<SupportedSchemaType>,
|
|
171
|
-
index: number
|
|
172
|
-
): string => {
|
|
173
|
-
const type = (schema as { '@type': string })['@type'];
|
|
174
|
-
const identifier = getSchemaIdentifier(schema as SupportedSchemaType);
|
|
175
|
-
return `${type}-${identifier}-${index}`;
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
return (
|
|
179
|
-
<Head>
|
|
180
|
-
<title>{`${title} - ${metaTitleSuffix}`}</title>
|
|
181
|
-
<meta name="description" content={description} />
|
|
182
|
-
<link rel="icon" href={favicon} />
|
|
183
|
-
|
|
184
|
-
<meta property="og:url" content={`https://${domain}`} />
|
|
185
|
-
<meta property="og:type" content="website" />
|
|
186
|
-
<meta property="og:title" content={title} />
|
|
187
|
-
<meta property="og:description" content={description} />
|
|
188
|
-
<meta property="og:image" content={shareImageUrl} />
|
|
189
|
-
<meta property="og:image:alt" content={shareImageAlt} />
|
|
190
|
-
|
|
191
|
-
<meta name="twitter:card" content="summary_large_image" />
|
|
192
|
-
<meta property="twitter:domain" content={domain} />
|
|
193
|
-
<meta property="twitter:url" content={`https://${domain}`} />
|
|
194
|
-
<meta name="twitter:title" content={title} />
|
|
195
|
-
<meta name="twitter:description" content={description} />
|
|
196
|
-
<meta name="twitter:image" content={shareImageUrl} />
|
|
197
|
-
<meta name="twitter:image:alt" content={shareImageAlt} />
|
|
198
|
-
|
|
199
|
-
{isValidSchema &&
|
|
200
|
-
schemaArray.map((schema, index) => (
|
|
201
|
-
<script
|
|
202
|
-
key={getSchemaKey(schema, index)}
|
|
203
|
-
type="application/ld+json"
|
|
204
|
-
dangerouslySetInnerHTML={{
|
|
205
|
-
__html: JSON.stringify(schema),
|
|
206
|
-
}}
|
|
207
|
-
/>
|
|
208
|
-
))}
|
|
209
|
-
</Head>
|
|
210
|
-
);
|
|
211
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SEOTags } from './SEOTags';
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render, screen } from '../../test/testUtils';
|
|
3
|
-
import { SliceRenderer } from '.';
|
|
4
|
-
import { CustomSliceProps, SliceRendererProps } from './SliceRenderer';
|
|
5
|
-
|
|
6
|
-
const defaultProps: SliceRendererProps = {
|
|
7
|
-
slices: [],
|
|
8
|
-
blogPosts: [],
|
|
9
|
-
projects: [],
|
|
10
|
-
customerStories: [],
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const setup = (props: Partial<SliceRendererProps> = {}) => {
|
|
14
|
-
const combinedProps = { ...defaultProps, ...props };
|
|
15
|
-
return render(<SliceRenderer {...combinedProps} />);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
describe('The SliceRenderer component', () => {
|
|
19
|
-
it('displays an error message if the given slice is not supported', () => {
|
|
20
|
-
setup({ slices: [{ id: 1, __component: 'Not supported slice' }] });
|
|
21
|
-
|
|
22
|
-
expect(
|
|
23
|
-
screen.getByText('Slice component not supported')
|
|
24
|
-
).toBeInTheDocument();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('renders an existing slice without errors', () => {
|
|
28
|
-
setup({
|
|
29
|
-
slices: [
|
|
30
|
-
{ id: 1, __component: 'sections.rich-text', content: 'Rich text' },
|
|
31
|
-
],
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
expect(screen.getByText('Rich text')).toBeInTheDocument();
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
it('renders a custom slice if given', () => {
|
|
38
|
-
const CustomSlice = ({ id }: CustomSliceProps): JSX.Element => (
|
|
39
|
-
<div>Custom slice {id}</div>
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
setup({
|
|
43
|
-
slices: [{ id: 1, __component: 'custom.slice' }],
|
|
44
|
-
CustomSlice,
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
expect(screen.getByText('Custom slice custom.slice')).toBeInTheDocument();
|
|
48
|
-
});
|
|
49
|
-
});
|