@treely/strapi-slices 2.2.0 → 2.3.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/components/ContextProvider/ContextProvider.d.ts +8 -0
- package/dist/components/ContextProvider/index.d.ts +1 -0
- package/dist/components/CreditsAvailableBadge/CreditsAvailableBadge.d.ts +8 -0
- package/dist/components/CreditsAvailableBadge/index.d.ts +2 -0
- package/dist/components/CreditsAvailableBadge/messages.de.d.ts +7 -0
- package/dist/components/CreditsAvailableBadge/messages.en.d.ts +7 -0
- package/dist/components/FullScreenImage/FullScreenImage.d.ts +9 -0
- package/dist/components/FullScreenImage/ZoomableImage.d.ts +8 -0
- package/dist/components/FullScreenImage/index.d.ts +2 -0
- package/dist/components/MinimalProviders/MinimalProviders.d.ts +7 -0
- package/dist/components/MinimalProviders/index.d.ts +2 -0
- package/dist/components/SEOTags/SEOTags.d.ts +14 -0
- package/dist/components/SEOTags/index.d.ts +1 -0
- package/dist/components/SliceRenderer/SliceRenderer.d.ts +19 -0
- package/dist/components/SliceRenderer/index.d.ts +1 -0
- package/dist/components/StrapiLinkButton/StrapiLinkButton.d.ts +18 -0
- package/dist/components/StrapiLinkButton/index.d.ts +2 -0
- package/dist/components/StrapiLinkButtonWithIcon/StrapiLinkButtonWithIcon.d.ts +7 -0
- package/dist/components/StrapiLinkButtonWithIcon/index.d.ts +2 -0
- package/dist/components/portfolio/Contact/Contact.d.ts +10 -0
- package/dist/components/portfolio/Contact/index.d.ts +2 -0
- package/dist/components/portfolio/DocumentsDownloadList/DocumentsDownloadList.d.ts +6 -0
- package/dist/components/portfolio/DocumentsDownloadList/index.d.ts +2 -0
- package/dist/components/portfolio/DocumentsDownloadList/messages.de.d.ts +5 -0
- package/dist/components/portfolio/DocumentsDownloadList/messages.en.d.ts +5 -0
- package/dist/components/portfolio/ProjectInfo/ProjectInfo.d.ts +18 -0
- package/dist/components/portfolio/ProjectInfo/index.d.ts +2 -0
- package/dist/components/portfolio/ProjectInfo/messages.de.d.ts +15 -0
- package/dist/components/portfolio/ProjectInfo/messages.en.d.ts +15 -0
- package/dist/components/portfolio/SmallCheckout/SmallCheckout.d.ts +14 -0
- package/dist/components/portfolio/SmallCheckout/index.d.ts +2 -0
- package/dist/components/portfolio/SmallCheckout/messages.de.d.ts +16 -0
- package/dist/components/portfolio/SmallCheckout/messages.en.d.ts +16 -0
- package/dist/constants/animations.d.ts +1 -0
- package/dist/constants/api.d.ts +3 -0
- package/dist/constants/breakpoints.d.ts +8 -0
- package/dist/constants/domain.d.ts +2 -0
- package/dist/constants/fontCustomizations.d.ts +6 -0
- package/dist/constants/formatter.d.ts +6 -0
- package/dist/constants/globalStyle.d.ts +1 -0
- package/dist/constants/mapbox.d.ts +17 -0
- package/dist/constants/metadata.d.ts +2 -0
- package/dist/constants/sectionsConfig.d.ts +5 -0
- package/dist/constants/strapi.d.ts +1 -0
- package/dist/icons/LinkedInIcon.d.ts +3 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +8 -0
- package/dist/models/BBox.d.ts +2 -0
- package/dist/models/CreditsAvailableState.d.ts +7 -0
- package/dist/models/HeaderType.d.ts +5 -0
- package/dist/models/Image.d.ts +5 -0
- package/dist/models/Locale.d.ts +2 -0
- package/dist/models/PageMetadata.d.ts +9 -0
- package/dist/models/PageProps.d.ts +21 -0
- package/dist/models/PortfolioProject.d.ts +7 -0
- package/dist/models/forms/CheckoutForm.d.ts +4 -0
- package/dist/models/fpm/FPMProject.d.ts +37 -0
- package/dist/models/fpm/Issuer.d.ts +6 -0
- package/dist/models/strapi/IStrapi.d.ts +4 -0
- package/dist/models/strapi/IStrapiData.d.ts +5 -0
- package/dist/models/strapi/IStrapiResponse.d.ts +13 -0
- package/dist/models/strapi/StrapiAuthor.d.ts +10 -0
- package/dist/models/strapi/StrapiAvatarWithName.d.ts +8 -0
- package/dist/models/strapi/StrapiBanner.d.ts +9 -0
- package/dist/models/strapi/StrapiBlogPost.d.ts +25 -0
- package/dist/models/strapi/StrapiBlogPostProps.d.ts +6 -0
- package/dist/models/strapi/StrapiButtonWithVariant.d.ts +6 -0
- package/dist/models/strapi/StrapiCategory.d.ts +8 -0
- package/dist/models/strapi/StrapiContactArea.d.ts +10 -0
- package/dist/models/strapi/StrapiCustomerStory.d.ts +21 -0
- package/dist/models/strapi/StrapiCustomerStoryProps.d.ts +6 -0
- package/dist/models/strapi/StrapiDefaultHeader.d.ts +6 -0
- package/dist/models/strapi/StrapiGlobal.d.ts +26 -0
- package/dist/models/strapi/StrapiGlossaryItem.d.ts +6 -0
- package/dist/models/strapi/StrapiHeroCard.d.ts +13 -0
- package/dist/models/strapi/StrapiImage.d.ts +10 -0
- package/dist/models/strapi/StrapiImageFormat.d.ts +12 -0
- package/dist/models/strapi/StrapiImageWithLink.d.ts +6 -0
- package/dist/models/strapi/StrapiLink.d.ts +11 -0
- package/dist/models/strapi/StrapiLinkList.d.ts +7 -0
- package/dist/models/strapi/StrapiLinkPage.d.ts +10 -0
- package/dist/models/strapi/StrapiLinkWithIcon.d.ts +7 -0
- package/dist/models/strapi/StrapiLocalization.d.ts +7 -0
- package/dist/models/strapi/StrapiMedia.d.ts +27 -0
- package/dist/models/strapi/StrapiMetadata.d.ts +13 -0
- package/dist/models/strapi/StrapiNavMenu.d.ts +13 -0
- package/dist/models/strapi/StrapiPage.d.ts +17 -0
- package/dist/models/strapi/StrapiPageProps.d.ts +6 -0
- package/dist/models/strapi/StrapiPortfolio.d.ts +10 -0
- package/dist/models/strapi/StrapiPortfolioCard.d.ts +15 -0
- package/dist/models/strapi/StrapiProject.d.ts +23 -0
- package/dist/models/strapi/StrapiProjectCard.d.ts +18 -0
- package/dist/models/strapi/StrapiProjectProps.d.ts +6 -0
- package/dist/models/strapi/StrapiQuoteCard.d.ts +7 -0
- package/dist/models/strapi/StrapiShapesCard.d.ts +11 -0
- package/dist/models/strapi/StrapiTextCardWithIcons.d.ts +8 -0
- package/dist/models/strapi/StrapiTopBanner.d.ts +7 -0
- package/dist/rootMessages.de.d.ts +58 -0
- package/dist/rootMessages.en.d.ts +58 -0
- package/dist/slices/Blog/Blog.d.ts +10 -0
- package/dist/slices/Blog/index.d.ts +2 -0
- package/dist/slices/Blog/styles.d.ts +7 -0
- package/dist/slices/BlogCards/BlogCards.d.ts +18 -0
- package/dist/slices/BlogCards/index.d.ts +2 -0
- package/dist/slices/Comparison/Comparison.d.ts +33 -0
- package/dist/slices/Comparison/Icon.d.ts +7 -0
- package/dist/slices/Comparison/index.d.ts +2 -0
- package/dist/slices/Comparison/messages.de.d.ts +4 -0
- package/dist/slices/Comparison/messages.en.d.ts +4 -0
- package/dist/slices/Cta/Cta.d.ts +26 -0
- package/dist/slices/Cta/index.d.ts +2 -0
- package/dist/slices/Cta/messages.de.d.ts +5 -0
- package/dist/slices/Cta/messages.en.d.ts +5 -0
- package/dist/slices/CtaOnly/CtaOnly.d.ts +8 -0
- package/dist/slices/CtaOnly/index.d.ts +2 -0
- package/dist/slices/CustomerStories/CustomerStories.d.ts +10 -0
- package/dist/slices/CustomerStories/index.d.ts +2 -0
- package/dist/slices/CustomerStories/messages.de.d.ts +4 -0
- package/dist/slices/CustomerStories/messages.en.d.ts +4 -0
- package/dist/slices/Facts/Facts.d.ts +16 -0
- package/dist/slices/Facts/index.d.ts +2 -0
- package/dist/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.d.ts +10 -0
- package/dist/slices/FullWidthHighlightQuote/index.d.ts +2 -0
- package/dist/slices/FullWidthImage/FullWidthImage.d.ts +11 -0
- package/dist/slices/FullWidthImage/index.d.ts +2 -0
- package/dist/slices/FullWidthImageSlider/FullWidthImageSlider.d.ts +12 -0
- package/dist/slices/FullWidthImageSlider/index.d.ts +2 -0
- package/dist/slices/FullWidthImageSlider/styles.d.ts +291 -0
- package/dist/slices/FullWidthImageSlider/utils.d.ts +1 -0
- package/dist/slices/FullWidthImageSlider/utils.test.d.ts +1 -0
- package/dist/slices/Glossary/Glossary.d.ts +9 -0
- package/dist/slices/Glossary/index.d.ts +2 -0
- package/dist/slices/Glossary/messages.de.d.ts +6 -0
- package/dist/slices/Glossary/messages.en.d.ts +6 -0
- package/dist/slices/Hero/Hero.d.ts +17 -0
- package/dist/slices/Hero/index.d.ts +2 -0
- package/dist/slices/IconGrid/IconGrid.d.ts +18 -0
- package/dist/slices/IconGrid/index.d.ts +2 -0
- package/dist/slices/ImageGrid/ImageGrid.d.ts +18 -0
- package/dist/slices/ImageGrid/index.d.ts +2 -0
- package/dist/slices/ImageTextSequence/ImageTextSequence.d.ts +19 -0
- package/dist/slices/ImageTextSequence/index.d.ts +2 -0
- package/dist/slices/LeftTextRightCard/LeftTextRightCard.d.ts +17 -0
- package/dist/slices/LeftTextRightCard/index.d.ts +2 -0
- package/dist/slices/LinkCardsGrid/LinkCardsGrid.d.ts +18 -0
- package/dist/slices/LinkCardsGrid/index.d.ts +2 -0
- package/dist/slices/LogoGridWithText/LogoGridWithText.d.ts +12 -0
- package/dist/slices/LogoGridWithText/index.d.ts +2 -0
- package/dist/slices/MapHero/MapHero.d.ts +15 -0
- package/dist/slices/MapHero/index.d.ts +2 -0
- package/dist/slices/MapHero/styles.d.ts +16 -0
- package/dist/slices/ProjectFacts/ProjectFacts.d.ts +34 -0
- package/dist/slices/ProjectFacts/index.d.ts +2 -0
- package/dist/slices/ProjectFacts/messages.de.d.ts +5 -0
- package/dist/slices/ProjectFacts/messages.en.d.ts +5 -0
- package/dist/slices/ProjectsGrid/ProjectsGrid.d.ts +8 -0
- package/dist/slices/ProjectsGrid/index.d.ts +2 -0
- package/dist/slices/ProjectsMap/MapMarker.d.ts +11 -0
- package/dist/slices/ProjectsMap/ProjectsMap.d.ts +16 -0
- package/dist/slices/ProjectsMap/index.d.ts +2 -0
- package/dist/slices/ProjectsMap/mapboxStyle.d.ts +2 -0
- package/dist/slices/ProjectsMap/messages.de.d.ts +4 -0
- package/dist/slices/ProjectsMap/messages.en.d.ts +4 -0
- package/dist/slices/QAndA/QAndA.d.ts +43 -0
- package/dist/slices/QAndA/index.d.ts +2 -0
- package/dist/slices/QuoteCards/QuoteCards.d.ts +15 -0
- package/dist/slices/QuoteCards/index.d.ts +2 -0
- package/dist/slices/RichTextSection/RichTextSection.d.ts +7 -0
- package/dist/slices/RichTextSection/index.d.ts +2 -0
- package/dist/slices/ShopCheckout/ShopCheckout.d.ts +16 -0
- package/dist/slices/ShopCheckout/index.d.ts +2 -0
- package/dist/slices/ShopCheckout/messages.de.d.ts +15 -0
- package/dist/slices/ShopCheckout/messages.en.d.ts +15 -0
- package/dist/slices/SideBySideImages/SideBySideImages.d.ts +12 -0
- package/dist/slices/SideBySideImages/index.d.ts +2 -0
- package/dist/slices/SmallHero/SmallHero.d.ts +20 -0
- package/dist/slices/SmallHero/index.d.ts +2 -0
- package/dist/slices/Steps/Steps.d.ts +19 -0
- package/dist/slices/Steps/index.d.ts +2 -0
- package/dist/slices/TextCardGrid/TextCardGrid.d.ts +20 -0
- package/dist/slices/TextCardGrid/index.d.ts +2 -0
- package/dist/slices/TextCarousel/TextCarousel.d.ts +13 -0
- package/dist/slices/TextCarousel/index.d.ts +2 -0
- package/dist/slices/TextCarousel/styles.d.ts +282 -0
- package/dist/slices/TextWithCard/TextWithCard.d.ts +20 -0
- package/dist/slices/TextWithCard/index.d.ts +2 -0
- package/dist/slices/TextWithTextCards/TextWithTextCards.d.ts +15 -0
- package/dist/slices/TextWithTextCards/index.d.ts +2 -0
- package/dist/slices/Video/Video.d.ts +10 -0
- package/dist/slices/Video/index.d.ts +2 -0
- package/dist/strapi-slices.cjs.development.js +4876 -0
- package/dist/strapi-slices.cjs.development.js.map +1 -0
- package/dist/strapi-slices.cjs.production.min.js +2 -0
- package/dist/strapi-slices.cjs.production.min.js.map +1 -0
- package/dist/strapi-slices.esm.js +4853 -0
- package/dist/strapi-slices.esm.js.map +1 -0
- package/dist/test/defaultMocks/next.d.ts +2 -0
- package/dist/test/integrationMocks/fpmProjectMock.d.ts +3 -0
- package/dist/test/mocks/getStaticPropsContext.d.ts +3 -0
- package/dist/test/mocks/portfolioProjectMock.d.ts +3 -0
- package/dist/test/setupTests.d.ts +1 -0
- package/dist/test/storybookMocks/storybookMedia.d.ts +1 -0
- package/dist/test/storybookMocks/storybookStrapiMedia.d.ts +8 -0
- package/dist/test/strapiMocks/minimalGlobalData.d.ts +4 -0
- package/dist/test/strapiMocks/strapiAvatarWithName.d.ts +12 -0
- package/dist/test/strapiMocks/strapiBlogPost.d.ts +3 -0
- package/dist/test/strapiMocks/strapiContact.d.ts +2 -0
- package/dist/test/strapiMocks/strapiCustomerStory.d.ts +3 -0
- package/dist/test/strapiMocks/strapiHeroCard.d.ts +2 -0
- package/dist/test/strapiMocks/strapiLinkPage.d.ts +3 -0
- package/dist/test/strapiMocks/strapiMedia.d.ts +3 -0
- package/dist/test/strapiMocks/strapiMetadata.d.ts +2 -0
- package/dist/test/strapiMocks/strapiPage.d.ts +3 -0
- package/dist/test/strapiMocks/strapiPortfolioCard.d.ts +2 -0
- package/dist/test/strapiMocks/strapiPortfolioMock.d.ts +3 -0
- package/dist/test/strapiMocks/strapiProject.d.ts +3 -0
- package/dist/test/strapiMocks/strapiProjectCard.d.ts +2 -0
- package/dist/test/strapiMocks/strapiQuoteCard.d.ts +2 -0
- package/dist/test/testUtils.d.ts +6 -0
- package/dist/unit.messages.de.d.ts +5 -0
- package/dist/unit.messages.en.d.ts +5 -0
- package/dist/utils/convertAreaM2ToHa.d.ts +2 -0
- package/dist/utils/convertAreaM2ToHa.test.d.ts +1 -0
- package/dist/utils/convertCo2AmountKgToTons.d.ts +2 -0
- package/dist/utils/convertToKebabCase.d.ts +2 -0
- package/dist/utils/convertToKebabCase.test.d.ts +1 -0
- package/dist/utils/getTimeSpanInYears.d.ts +2 -0
- package/dist/utils/getTimeSpanInYears.test.d.ts +1 -0
- package/dist/utils/mergeBoundingBoxes.d.ts +3 -0
- package/dist/utils/mergeBoundingBoxes.test.d.ts +1 -0
- package/dist/utils/mergeDeep.d.ts +12 -0
- package/dist/utils/mergeGlobalAndStrapiBlogPostData.d.ts +5 -0
- package/dist/utils/mergeGlobalAndStrapiBlogPostData.test.d.ts +1 -0
- package/dist/utils/mergeGlobalAndStrapiCustomerStoryData.d.ts +4 -0
- package/dist/utils/mergeGlobalAndStrapiCustomerStoryData.test.d.ts +1 -0
- package/dist/utils/mergeGlobalAndStrapiPageData.d.ts +5 -0
- package/dist/utils/mergeGlobalAndStrapiPageData.test.d.ts +1 -0
- package/dist/utils/mergeGlobalAndStrapiProjectData.d.ts +5 -0
- package/dist/utils/mergeGlobalAndStrapiProjectData.test.d.ts +1 -0
- package/dist/utils/openHubSpotChat.d.ts +2 -0
- package/dist/utils/strapiLinkUrl.d.ts +3 -0
- package/dist/utils/strapiLinkUrl.test.d.ts +1 -0
- package/dist/utils/strapiMediaUrl.d.ts +5 -0
- package/dist/utils/strapiMediaUrl.test.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/portfolio/SmallCheckout/SmallCheckout.tsx +14 -15
- package/src/index.tsx +4 -0
- package/src/slices/ProjectFacts/ProjectFacts.stories.tsx +53 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Locale from '../Locale';
|
|
2
|
+
import IStrapi from './IStrapi';
|
|
3
|
+
import IStrapiData from './IStrapiData';
|
|
4
|
+
import StrapiAuthor from './StrapiAuthor';
|
|
5
|
+
import StrapiCategory from './StrapiCategory';
|
|
6
|
+
import StrapiImage from './StrapiImage';
|
|
7
|
+
import StrapiLocalization from './StrapiLocalization';
|
|
8
|
+
import StrapiMetadata from './StrapiMetadata';
|
|
9
|
+
import StrapiTopBanner from './StrapiTopBanner';
|
|
10
|
+
interface StrapiBlogPost {
|
|
11
|
+
title: string;
|
|
12
|
+
slug: string;
|
|
13
|
+
teaser: string | null;
|
|
14
|
+
img: StrapiImage;
|
|
15
|
+
author?: IStrapi<IStrapiData<StrapiAuthor>>;
|
|
16
|
+
category?: IStrapi<IStrapiData<StrapiCategory>>;
|
|
17
|
+
locale: Locale;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
updatedAt: string;
|
|
20
|
+
metadata: StrapiMetadata | null;
|
|
21
|
+
slices: any[];
|
|
22
|
+
localizations: StrapiLocalization[];
|
|
23
|
+
topBanner?: StrapiTopBanner;
|
|
24
|
+
}
|
|
25
|
+
export default StrapiBlogPost;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import StrapiAvatarWithName from './StrapiAvatarWithName';
|
|
2
|
+
import StrapiLink from './StrapiLink';
|
|
3
|
+
interface StrapiContactArea {
|
|
4
|
+
id: number;
|
|
5
|
+
title: string;
|
|
6
|
+
text: string;
|
|
7
|
+
avatar: StrapiAvatarWithName;
|
|
8
|
+
button: StrapiLink;
|
|
9
|
+
}
|
|
10
|
+
export default StrapiContactArea;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Locale from '../Locale';
|
|
2
|
+
import StrapiImage from './StrapiImage';
|
|
3
|
+
import StrapiLocalization from './StrapiLocalization';
|
|
4
|
+
import StrapiMetadata from './StrapiMetadata';
|
|
5
|
+
import StrapiTopBanner from './StrapiTopBanner';
|
|
6
|
+
interface StrapiCustomerStory {
|
|
7
|
+
title: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
img: StrapiImage;
|
|
10
|
+
customerName: string;
|
|
11
|
+
customerIndustry: string;
|
|
12
|
+
customerLogo: StrapiImage;
|
|
13
|
+
locale: Locale;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
metadata: StrapiMetadata | null;
|
|
17
|
+
slices: any[];
|
|
18
|
+
localizations: StrapiLocalization[];
|
|
19
|
+
topBanner?: StrapiTopBanner;
|
|
20
|
+
}
|
|
21
|
+
export default StrapiCustomerStory;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import PageProps from '../PageProps';
|
|
2
|
+
import IStrapiData from './IStrapiData';
|
|
3
|
+
import StrapiCustomerStory from './StrapiCustomerStory';
|
|
4
|
+
interface StrapiCustomerStoryProps extends PageProps, IStrapiData<StrapiCustomerStory> {
|
|
5
|
+
}
|
|
6
|
+
export default StrapiCustomerStoryProps;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import IStrapi from './IStrapi';
|
|
2
|
+
import IStrapiData from './IStrapiData';
|
|
3
|
+
import StrapiBanner from './StrapiBanner';
|
|
4
|
+
import StrapiLink from './StrapiLink';
|
|
5
|
+
import StrapiLinkList from './StrapiLinkList';
|
|
6
|
+
import StrapiMedia from './StrapiMedia';
|
|
7
|
+
import StrapiMetadata from './StrapiMetadata';
|
|
8
|
+
import StrapiNavMenu from './StrapiNavMenu';
|
|
9
|
+
import StrapiTopBanner from './StrapiTopBanner';
|
|
10
|
+
interface StrapiGlobal {
|
|
11
|
+
metadata: StrapiMetadata;
|
|
12
|
+
favicon: IStrapi<IStrapiData<StrapiMedia>>;
|
|
13
|
+
metaTitleSuffix: string;
|
|
14
|
+
navbar: {
|
|
15
|
+
id: number;
|
|
16
|
+
navMenus?: StrapiNavMenu[];
|
|
17
|
+
buttons?: StrapiLink[];
|
|
18
|
+
};
|
|
19
|
+
footer: {
|
|
20
|
+
id: number;
|
|
21
|
+
links?: StrapiLinkList[];
|
|
22
|
+
};
|
|
23
|
+
banner?: StrapiBanner;
|
|
24
|
+
topBanner?: StrapiTopBanner;
|
|
25
|
+
}
|
|
26
|
+
export default StrapiGlobal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import IStrapi from './IStrapi';
|
|
2
|
+
import IStrapiData from './IStrapiData';
|
|
3
|
+
import StrapiMedia from './StrapiMedia';
|
|
4
|
+
interface StrapiImage {
|
|
5
|
+
id: number;
|
|
6
|
+
alt: string;
|
|
7
|
+
img: IStrapi<IStrapiData<StrapiMedia>>;
|
|
8
|
+
objectFit?: 'cover' | 'contain';
|
|
9
|
+
}
|
|
10
|
+
export default StrapiImage;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import IStrapi from './IStrapi';
|
|
2
|
+
import IStrapiData from './IStrapiData';
|
|
3
|
+
import StrapiLinkPage from './StrapiLinkPage';
|
|
4
|
+
interface StrapiLink {
|
|
5
|
+
id: number;
|
|
6
|
+
text: string;
|
|
7
|
+
page?: IStrapi<IStrapiData<StrapiLinkPage>>;
|
|
8
|
+
url?: string;
|
|
9
|
+
intercomLauncher?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export default StrapiLink;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import StrapiImageFormat from './StrapiImageFormat';
|
|
2
|
+
interface StrapiMedia {
|
|
3
|
+
name: string;
|
|
4
|
+
alternativeText: string;
|
|
5
|
+
caption: string;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
formats: {
|
|
9
|
+
thumbnail?: StrapiImageFormat;
|
|
10
|
+
xLarge?: StrapiImageFormat;
|
|
11
|
+
large?: StrapiImageFormat;
|
|
12
|
+
medium?: StrapiImageFormat;
|
|
13
|
+
small?: StrapiImageFormat;
|
|
14
|
+
xSmall?: StrapiImageFormat;
|
|
15
|
+
};
|
|
16
|
+
hash: string;
|
|
17
|
+
ext: string;
|
|
18
|
+
mime: string;
|
|
19
|
+
size: number;
|
|
20
|
+
url: string;
|
|
21
|
+
previewUrl: string | null;
|
|
22
|
+
provider: string;
|
|
23
|
+
provider_metadata: string | null;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
updatedAt: string;
|
|
26
|
+
}
|
|
27
|
+
export default StrapiMedia;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import IStrapi from './IStrapi';
|
|
2
|
+
import IStrapiData from './IStrapiData';
|
|
3
|
+
import StrapiMedia from './StrapiMedia';
|
|
4
|
+
interface StrapiMetadata {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
shareImage?: {
|
|
8
|
+
id: number;
|
|
9
|
+
alt: string;
|
|
10
|
+
media: IStrapi<IStrapiData<StrapiMedia>>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export default StrapiMetadata;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import StrapiImage from './StrapiImage';
|
|
2
|
+
import StrapiLink from './StrapiLink';
|
|
3
|
+
interface StrapiNavMenu {
|
|
4
|
+
title: string;
|
|
5
|
+
link?: StrapiLink;
|
|
6
|
+
items: {
|
|
7
|
+
link: StrapiLink;
|
|
8
|
+
iconDefault: StrapiImage;
|
|
9
|
+
iconActive: StrapiImage;
|
|
10
|
+
description?: string;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
export default StrapiNavMenu;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Locale from '../Locale';
|
|
2
|
+
import StrapiLocalization from './StrapiLocalization';
|
|
3
|
+
import StrapiMetadata from './StrapiMetadata';
|
|
4
|
+
import StrapiTopBanner from './StrapiTopBanner';
|
|
5
|
+
interface StrapiPage {
|
|
6
|
+
title: string;
|
|
7
|
+
slug: string;
|
|
8
|
+
locale: Locale;
|
|
9
|
+
publishedAt: string;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
metadata: StrapiMetadata | null;
|
|
13
|
+
slices: any[];
|
|
14
|
+
localizations: StrapiLocalization[];
|
|
15
|
+
topBanner?: StrapiTopBanner;
|
|
16
|
+
}
|
|
17
|
+
export default StrapiPage;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import StrapiImage from './StrapiImage';
|
|
2
|
+
import StrapiLink from './StrapiLink';
|
|
3
|
+
interface StrapiPortfolioCard {
|
|
4
|
+
id: number;
|
|
5
|
+
portfolioNumber: string;
|
|
6
|
+
title: string;
|
|
7
|
+
facts: {
|
|
8
|
+
id: number;
|
|
9
|
+
key: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}[];
|
|
12
|
+
button: StrapiLink;
|
|
13
|
+
image: StrapiImage;
|
|
14
|
+
}
|
|
15
|
+
export default StrapiPortfolioCard;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import CreditsAvailableState from '../CreditsAvailableState';
|
|
2
|
+
import Locale from '../Locale';
|
|
3
|
+
import IStrapiData from './IStrapiData';
|
|
4
|
+
import StrapiLocalization from './StrapiLocalization';
|
|
5
|
+
import StrapiMetadata from './StrapiMetadata';
|
|
6
|
+
import StrapiPortfolio from './StrapiPortfolio';
|
|
7
|
+
import StrapiTopBanner from './StrapiTopBanner';
|
|
8
|
+
interface StrapiProject {
|
|
9
|
+
slug: string;
|
|
10
|
+
locale: Locale;
|
|
11
|
+
fpmProjectId?: string;
|
|
12
|
+
creditsAvailable?: CreditsAvailableState;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
metadata: StrapiMetadata | null;
|
|
16
|
+
slices: any[];
|
|
17
|
+
localizations: StrapiLocalization[];
|
|
18
|
+
portfolio: {
|
|
19
|
+
data?: IStrapiData<StrapiPortfolio>;
|
|
20
|
+
};
|
|
21
|
+
topBanner?: StrapiTopBanner;
|
|
22
|
+
}
|
|
23
|
+
export default StrapiProject;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IStrapiData from './IStrapiData';
|
|
2
|
+
import StrapiImage from './StrapiImage';
|
|
3
|
+
import StrapiProject from './StrapiProject';
|
|
4
|
+
interface StrapiProjectCard {
|
|
5
|
+
id: number;
|
|
6
|
+
title: string;
|
|
7
|
+
facts: {
|
|
8
|
+
id: number;
|
|
9
|
+
text: string;
|
|
10
|
+
}[];
|
|
11
|
+
footerTitle: string;
|
|
12
|
+
footerSubTitle: string;
|
|
13
|
+
image: StrapiImage;
|
|
14
|
+
project?: {
|
|
15
|
+
data?: IStrapiData<StrapiProject>;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export default StrapiProjectCard;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import StrapiImage from './StrapiImage';
|
|
2
|
+
import StrapiLink from './StrapiLink';
|
|
3
|
+
interface StrapiShapesCard {
|
|
4
|
+
id: number;
|
|
5
|
+
tagline?: string;
|
|
6
|
+
title: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
button?: StrapiLink;
|
|
9
|
+
shapes?: StrapiImage[];
|
|
10
|
+
}
|
|
11
|
+
export default StrapiShapesCard;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const rootMessagesDe: {
|
|
2
|
+
'unit.formatter.tonsCo2': string;
|
|
3
|
+
'unit.formatter.tonsCo2PerYear': string;
|
|
4
|
+
'sections.shopCheckout.intro.price': string;
|
|
5
|
+
'sections.shopCheckout.contributionValue.label.EUR': string;
|
|
6
|
+
'sections.shopCheckout.contributionValue.label.CHF': string;
|
|
7
|
+
'sections.shopCheckout.contributionValue.unit.EUR': string;
|
|
8
|
+
'sections.shopCheckout.contributionValue.unit.CHF': string;
|
|
9
|
+
'sections.shopCheckout.contributionValue.validation.empty': string;
|
|
10
|
+
'sections.shopCheckout.contributionValue.validation.tooLow.EUR': string;
|
|
11
|
+
'sections.shopCheckout.contributionValue.validation.tooLow.CHF': string;
|
|
12
|
+
'sections.shopCheckout.contributionValue.validation.tooHigh': string;
|
|
13
|
+
'sections.shopCheckout.summary.kg': string;
|
|
14
|
+
'sections.shopCheckout.summary.price': string;
|
|
15
|
+
'sections.shopCheckout.submit': string;
|
|
16
|
+
'sections.projectsMap.link.text': string;
|
|
17
|
+
'sections.projectFacts.projectInfo.value': string;
|
|
18
|
+
'projects.projectFacts.properties.area': string;
|
|
19
|
+
'sections.glossary.copyButtonLabel': string;
|
|
20
|
+
'sections.glossary.copySuccessMessage': string;
|
|
21
|
+
'sections.glossary.copyFailureMessage': string;
|
|
22
|
+
'sections.customerStories.more': string;
|
|
23
|
+
'sections.cta.backgroundShapes': string;
|
|
24
|
+
'sections.cta.backgroundShapesLight': string;
|
|
25
|
+
'sections.comparison.backgroundShapes': string;
|
|
26
|
+
'portfolio.smallCheckout.contributionValueCurrency.label.CHF': string;
|
|
27
|
+
'portfolio.smallCheckout.contributionValueCurrency.label.EUR': string;
|
|
28
|
+
'portfolio.smallCheckout.contributionValueCurrency.unit.EUR': string;
|
|
29
|
+
'portfolio.smallCheckout.contributionValueCurrency.unit.CHF': string;
|
|
30
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.CHF': string;
|
|
31
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.EUR': string;
|
|
32
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.empty': string;
|
|
33
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooHigh': string;
|
|
34
|
+
'portfolio.smallCheckout.contributionValueKgs.label': string;
|
|
35
|
+
'portfolio.smallCheckout.submitButton': string;
|
|
36
|
+
'portfolio.smallCheckout.cta.title': string;
|
|
37
|
+
'portfolio.smallCheckout.cta.subTitle': string;
|
|
38
|
+
'portfolio.smallCheckout.cta.button': string;
|
|
39
|
+
'features.projectInfo.projectInfo.value': string;
|
|
40
|
+
'features.projectInfo.properties.area': string;
|
|
41
|
+
'features.projectInfo.properties.location': string;
|
|
42
|
+
'features.projectInfo.properties.start': string;
|
|
43
|
+
'features.projectInfo.properties.timeSpan': string;
|
|
44
|
+
'features.projectInfo.properties.projectType': string;
|
|
45
|
+
'features.projectInfo.properties.projectDeveloper': string;
|
|
46
|
+
'features.projectInfo.properties.verificationStandard.label': string;
|
|
47
|
+
'features.projectInfo.properties.verificationStandard.value.SilvaconsultFCSISO14': string;
|
|
48
|
+
'features.projectInfo.properties.forecastedAmountYear.label': string;
|
|
49
|
+
'features.projectInfo.properties.riskBuffer': string;
|
|
50
|
+
'features.projectInfo.properties.year': string;
|
|
51
|
+
'features.portfolio.documentsDownloadList.projectDocuments': string;
|
|
52
|
+
'features.portfolio.documentsDownloadList.downloadDocument': string;
|
|
53
|
+
'components.creditsAvailableBadge.text.yes': string;
|
|
54
|
+
'components.creditsAvailableBadge.text.some': string;
|
|
55
|
+
'components.creditsAvailableBadge.text.no': string;
|
|
56
|
+
'components.creditsAvailableBadge.text.notYet': string;
|
|
57
|
+
};
|
|
58
|
+
export default rootMessagesDe;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const rootMessagesEn: {
|
|
2
|
+
'unit.formatter.tonsCo2': string;
|
|
3
|
+
'unit.formatter.tonsCo2PerYear': string;
|
|
4
|
+
'sections.shopCheckout.intro.price': string;
|
|
5
|
+
'sections.shopCheckout.contributionValue.label.EUR': string;
|
|
6
|
+
'sections.shopCheckout.contributionValue.label.CHF': string;
|
|
7
|
+
'sections.shopCheckout.contributionValue.unit.EUR': string;
|
|
8
|
+
'sections.shopCheckout.contributionValue.unit.CHF': string;
|
|
9
|
+
'sections.shopCheckout.contributionValue.validation.empty': string;
|
|
10
|
+
'sections.shopCheckout.contributionValue.validation.tooLow.EUR': string;
|
|
11
|
+
'sections.shopCheckout.contributionValue.validation.tooLow.CHF': string;
|
|
12
|
+
'sections.shopCheckout.contributionValue.validation.tooHigh': string;
|
|
13
|
+
'sections.shopCheckout.summary.kg': string;
|
|
14
|
+
'sections.shopCheckout.summary.price': string;
|
|
15
|
+
'sections.shopCheckout.submit': string;
|
|
16
|
+
'sections.projectsMap.link.text': string;
|
|
17
|
+
'sections.projectFacts.projectInfo.value': string;
|
|
18
|
+
'projects.projectFacts.properties.area': string;
|
|
19
|
+
'sections.glossary.copyButtonLabel': string;
|
|
20
|
+
'sections.glossary.copySuccessMessage': string;
|
|
21
|
+
'sections.glossary.copyFailureMessage': string;
|
|
22
|
+
'sections.customerStories.more': string;
|
|
23
|
+
'sections.cta.backgroundShapesDark': string;
|
|
24
|
+
'sections.cta.backgroundShapesLight': string;
|
|
25
|
+
'sections.comparison.backgroundShapes': string;
|
|
26
|
+
'portfolio.smallCheckout.contributionValueCurrency.label.CHF': string;
|
|
27
|
+
'portfolio.smallCheckout.contributionValueCurrency.label.EUR': string;
|
|
28
|
+
'portfolio.smallCheckout.contributionValueCurrency.unit.EUR': string;
|
|
29
|
+
'portfolio.smallCheckout.contributionValueCurrency.unit.CHF': string;
|
|
30
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.CHF': string;
|
|
31
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.EUR': string;
|
|
32
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.empty': string;
|
|
33
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooHigh': string;
|
|
34
|
+
'portfolio.smallCheckout.contributionValueKgs.label': string;
|
|
35
|
+
'portfolio.smallCheckout.submitButton': string;
|
|
36
|
+
'portfolio.smallCheckout.cta.title': string;
|
|
37
|
+
'portfolio.smallCheckout.cta.subTitle': string;
|
|
38
|
+
'portfolio.smallCheckout.cta.button': string;
|
|
39
|
+
'features.projectInfo.projectInfo.value': string;
|
|
40
|
+
'features.projectInfo.properties.area': string;
|
|
41
|
+
'features.projectInfo.properties.location': string;
|
|
42
|
+
'features.projectInfo.properties.start': string;
|
|
43
|
+
'features.projectInfo.properties.timeSpan': string;
|
|
44
|
+
'features.projectInfo.properties.projectType': string;
|
|
45
|
+
'features.projectInfo.properties.projectDeveloper': string;
|
|
46
|
+
'features.projectInfo.properties.verificationStandard.label': string;
|
|
47
|
+
'features.projectInfo.properties.verificationStandard.value.SilvaconsultFCSISO14': string;
|
|
48
|
+
'features.projectInfo.properties.forecastedAmountYear.label': string;
|
|
49
|
+
'features.projectInfo.properties.riskBuffer': string;
|
|
50
|
+
'features.projectInfo.properties.year': string;
|
|
51
|
+
'features.portfolio.documentsDownloadList.projectDocuments': string;
|
|
52
|
+
'features.portfolio.documentsDownloadList.downloadDocument': string;
|
|
53
|
+
'components.creditsAvailableBadge.text.yes': string;
|
|
54
|
+
'components.creditsAvailableBadge.text.some': string;
|
|
55
|
+
'components.creditsAvailableBadge.text.no': string;
|
|
56
|
+
'components.creditsAvailableBadge.text.notYet': string;
|
|
57
|
+
};
|
|
58
|
+
export default rootMessagesEn;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import StrapiBlogPost from '../../models/strapi/StrapiBlogPost';
|
|
3
|
+
import IStrapiData from '../../models/strapi/IStrapiData';
|
|
4
|
+
export interface BlogProps {
|
|
5
|
+
slice: {
|
|
6
|
+
blog_posts: IStrapiData<StrapiBlogPost>[];
|
|
7
|
+
};
|
|
8
|
+
blogPosts: IStrapiData<StrapiBlogPost>[];
|
|
9
|
+
}
|
|
10
|
+
export declare const Blog: React.FC<BlogProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const BlogItemContainer: import("@emotion/styled").StyledComponent<import("@chakra-ui/system/dist/system.types").MergeWithAs<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, any, import("@chakra-ui/layout/dist/link").LinkProps, import("@chakra-ui/system/dist/system.types").As> & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
}, {}, {}>;
|
|
5
|
+
export declare const ImageContainer: import("@emotion/styled").StyledComponent<import("@chakra-ui/system/dist/system.types").MergeWithAs<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, Omit<import("@chakra-ui/system/dist/system.types").ChakraProps, never>, import("@chakra-ui/system/dist/system.types").As> & {
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import StrapiBlogPost from '../../models/strapi/StrapiBlogPost';
|
|
3
|
+
import IStrapiData from '../../models/strapi/IStrapiData';
|
|
4
|
+
import StrapiCategory from '../../models/strapi/StrapiCategory';
|
|
5
|
+
import IStrapi from '../../models/strapi/IStrapi';
|
|
6
|
+
import StrapiLink from '../../models/strapi/StrapiLink';
|
|
7
|
+
export interface BlogCardsProps {
|
|
8
|
+
slice: {
|
|
9
|
+
tagline: string;
|
|
10
|
+
title: string;
|
|
11
|
+
subTitle: string;
|
|
12
|
+
button?: StrapiLink;
|
|
13
|
+
variant: 'white' | 'gray';
|
|
14
|
+
blogPostCategory?: IStrapi<IStrapiData<StrapiCategory>>;
|
|
15
|
+
};
|
|
16
|
+
blogPosts: IStrapiData<StrapiBlogPost>[];
|
|
17
|
+
}
|
|
18
|
+
export declare const BlogCards: React.FC<BlogCardsProps>;
|