@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,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Locale from '../../models/Locale';
|
|
3
|
+
export declare const IntlContext: React.Context<import("react-intl").IntlShape>;
|
|
4
|
+
export interface ContextProviderProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
locale: Locale;
|
|
7
|
+
}
|
|
8
|
+
export declare const ContextProvider: React.FC<ContextProviderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ContextProvider, IntlContext } from './ContextProvider';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import CreditsAvailableState from '../../models/CreditsAvailableState';
|
|
3
|
+
export interface CreditsAvailableBadgeProps {
|
|
4
|
+
status: CreditsAvailableState;
|
|
5
|
+
href?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const CreditsAvailableBadge: ({ status, href, }: CreditsAvailableBadgeProps) => React.JSX.Element;
|
|
8
|
+
export default CreditsAvailableBadge;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'components.creditsAvailableBadge.text.yes': string;
|
|
3
|
+
'components.creditsAvailableBadge.text.some': string;
|
|
4
|
+
'components.creditsAvailableBadge.text.no': string;
|
|
5
|
+
'components.creditsAvailableBadge.text.notYet': string;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'components.creditsAvailableBadge.text.yes': string;
|
|
3
|
+
'components.creditsAvailableBadge.text.some': string;
|
|
4
|
+
'components.creditsAvailableBadge.text.no': string;
|
|
5
|
+
'components.creditsAvailableBadge.text.notYet': string;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import StrapiImage from '../../models/strapi/StrapiImage';
|
|
3
|
+
export interface FullScreenImageProps {
|
|
4
|
+
images: StrapiImage[];
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
openIndex?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const FullScreenImage: ({ images, isOpen, onClose, openIndex, }: FullScreenImageProps) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import StrapiImage from '../../models/strapi/StrapiImage';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface ZoomableImageProps {
|
|
4
|
+
image: StrapiImage;
|
|
5
|
+
zoom?: number;
|
|
6
|
+
}
|
|
7
|
+
declare const ZoomableImage: ({ image, zoom }: ZoomableImageProps) => React.JSX.Element;
|
|
8
|
+
export default ZoomableImage;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SEOTagsProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
shareImage?: {
|
|
6
|
+
url: string;
|
|
7
|
+
alt: string;
|
|
8
|
+
};
|
|
9
|
+
metaTitleSuffix?: string;
|
|
10
|
+
favicon?: string;
|
|
11
|
+
domain?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const SEOTags: React.FC<SEOTagsProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SEOTags } from './SEOTags';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import StrapiBlogPost from '../../models/strapi/StrapiBlogPost';
|
|
3
|
+
import IStrapiData from '../../models/strapi/IStrapiData';
|
|
4
|
+
import PortfolioProject from '../../models/PortfolioProject';
|
|
5
|
+
import StrapiCustomerStory from '../../models/strapi/StrapiCustomerStory';
|
|
6
|
+
import Locale from '../../models/Locale';
|
|
7
|
+
export interface CustomSliceProps {
|
|
8
|
+
slice: any;
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SliceRendererProps {
|
|
12
|
+
slices: any;
|
|
13
|
+
blogPosts: IStrapiData<StrapiBlogPost>[];
|
|
14
|
+
projects: PortfolioProject[];
|
|
15
|
+
customerStories: IStrapiData<StrapiCustomerStory>[];
|
|
16
|
+
locale?: Locale;
|
|
17
|
+
CustomSlice?: ({ slice, id }: CustomSliceProps) => JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
export declare const SliceRenderer: ({ slices, blogPosts, projects, customerStories, locale, CustomSlice, }: SliceRendererProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SliceRenderer } from './SliceRenderer';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import StrapiLink from '../../models/strapi/StrapiLink';
|
|
3
|
+
export interface StrapiLinkButtonProps {
|
|
4
|
+
link: StrapiLink;
|
|
5
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
variant?: 'solid' | 'outline' | 'outlineWhite' | 'link' | 'ghost';
|
|
7
|
+
colorScheme?: 'primary' | 'gray' | 'orange' | 'green' | 'white';
|
|
8
|
+
rightIcon?: JSX.Element;
|
|
9
|
+
leftIcon?: JSX.Element;
|
|
10
|
+
mt?: any;
|
|
11
|
+
mr?: any;
|
|
12
|
+
mb?: any;
|
|
13
|
+
ml?: any;
|
|
14
|
+
mx?: any;
|
|
15
|
+
my?: any;
|
|
16
|
+
background?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const StrapiLinkButton: React.FC<StrapiLinkButtonProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import StrapiLinkWithIcon from '../../models/strapi/StrapiLinkWithIcon';
|
|
3
|
+
import { StrapiLinkButtonProps } from '../StrapiLinkButton/StrapiLinkButton';
|
|
4
|
+
export interface StrapiLinkButtonWithIconProps extends Omit<StrapiLinkButtonProps, 'link'> {
|
|
5
|
+
link: StrapiLinkWithIcon;
|
|
6
|
+
}
|
|
7
|
+
export declare const StrapiLinkButtonWithIcon: React.FC<StrapiLinkButtonWithIconProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import StrapiImage from '../../../models/strapi/StrapiImage';
|
|
3
|
+
import StrapiLink from '../../../models/strapi/StrapiLink';
|
|
4
|
+
export interface ContactProps {
|
|
5
|
+
avatar?: StrapiImage;
|
|
6
|
+
title?: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
button?: StrapiLink;
|
|
9
|
+
}
|
|
10
|
+
export declare const Contact: React.FC<ContactProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PortfolioProject from '../../../models/PortfolioProject';
|
|
3
|
+
export interface ProjectInfoProps {
|
|
4
|
+
project: PortfolioProject;
|
|
5
|
+
subtitles: {
|
|
6
|
+
areaSubtitle?: string;
|
|
7
|
+
locationSubtitle?: string;
|
|
8
|
+
startSubtitle?: string;
|
|
9
|
+
timeSpanSubtitle?: string;
|
|
10
|
+
projectTypeSubtitle?: string;
|
|
11
|
+
projectDeveloperSubtitle?: string;
|
|
12
|
+
verificationStandardSubtitle?: string;
|
|
13
|
+
forecastedAmountSubtitle?: string;
|
|
14
|
+
riskBufferSubtitle?: string;
|
|
15
|
+
buyCreditsSubtitle?: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare const ProjectInfo: React.FC<ProjectInfoProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'features.projectInfo.projectInfo.value': string;
|
|
3
|
+
'features.projectInfo.properties.area': string;
|
|
4
|
+
'features.projectInfo.properties.location': string;
|
|
5
|
+
'features.projectInfo.properties.start': string;
|
|
6
|
+
'features.projectInfo.properties.timeSpan': string;
|
|
7
|
+
'features.projectInfo.properties.projectType': string;
|
|
8
|
+
'features.projectInfo.properties.projectDeveloper': string;
|
|
9
|
+
'features.projectInfo.properties.verificationStandard.label': string;
|
|
10
|
+
'features.projectInfo.properties.verificationStandard.value.SilvaconsultFCSISO14': string;
|
|
11
|
+
'features.projectInfo.properties.forecastedAmountYear.label': string;
|
|
12
|
+
'features.projectInfo.properties.riskBuffer': string;
|
|
13
|
+
'features.projectInfo.properties.year': string;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'features.projectInfo.projectInfo.value': string;
|
|
3
|
+
'features.projectInfo.properties.area': string;
|
|
4
|
+
'features.projectInfo.properties.location': string;
|
|
5
|
+
'features.projectInfo.properties.start': string;
|
|
6
|
+
'features.projectInfo.properties.timeSpan': string;
|
|
7
|
+
'features.projectInfo.properties.projectType': string;
|
|
8
|
+
'features.projectInfo.properties.projectDeveloper': string;
|
|
9
|
+
'features.projectInfo.properties.verificationStandard.label': string;
|
|
10
|
+
'features.projectInfo.properties.verificationStandard.value.SilvaconsultFCSISO14': string;
|
|
11
|
+
'features.projectInfo.properties.forecastedAmountYear.label': string;
|
|
12
|
+
'features.projectInfo.properties.riskBuffer': string;
|
|
13
|
+
'features.projectInfo.properties.year': string;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StrapiLink } from '../../..';
|
|
3
|
+
export interface SmallCheckoutProps {
|
|
4
|
+
batchId: string;
|
|
5
|
+
pricePerKg: number;
|
|
6
|
+
initialContributionValue: number;
|
|
7
|
+
checkoutText?: string;
|
|
8
|
+
currency: 'EUR' | 'CHF';
|
|
9
|
+
title?: string;
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
button?: StrapiLink;
|
|
12
|
+
}
|
|
13
|
+
declare const SmallCheckout: ({ pricePerKg, currency, batchId, initialContributionValue, checkoutText, title, subtitle, button, }: SmallCheckoutProps) => React.JSX.Element;
|
|
14
|
+
export default SmallCheckout;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'portfolio.smallCheckout.contributionValueCurrency.label.CHF': string;
|
|
3
|
+
'portfolio.smallCheckout.contributionValueCurrency.label.EUR': string;
|
|
4
|
+
'portfolio.smallCheckout.contributionValueCurrency.unit.EUR': string;
|
|
5
|
+
'portfolio.smallCheckout.contributionValueCurrency.unit.CHF': string;
|
|
6
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.CHF': string;
|
|
7
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.EUR': string;
|
|
8
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.empty': string;
|
|
9
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooHigh': string;
|
|
10
|
+
'portfolio.smallCheckout.contributionValueKgs.label': string;
|
|
11
|
+
'portfolio.smallCheckout.submitButton': string;
|
|
12
|
+
'portfolio.smallCheckout.cta.title': string;
|
|
13
|
+
'portfolio.smallCheckout.cta.subTitle': string;
|
|
14
|
+
'portfolio.smallCheckout.cta.button': string;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'portfolio.smallCheckout.contributionValueCurrency.label.CHF': string;
|
|
3
|
+
'portfolio.smallCheckout.contributionValueCurrency.label.EUR': string;
|
|
4
|
+
'portfolio.smallCheckout.contributionValueCurrency.unit.EUR': string;
|
|
5
|
+
'portfolio.smallCheckout.contributionValueCurrency.unit.CHF': string;
|
|
6
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.CHF': string;
|
|
7
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooLow.EUR': string;
|
|
8
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.empty': string;
|
|
9
|
+
'portfolio.smallCheckout.contributionValueCurrency.validation.tooHigh': string;
|
|
10
|
+
'portfolio.smallCheckout.contributionValueKgs.label': string;
|
|
11
|
+
'portfolio.smallCheckout.submitButton': string;
|
|
12
|
+
'portfolio.smallCheckout.cta.title': string;
|
|
13
|
+
'portfolio.smallCheckout.cta.subTitle': string;
|
|
14
|
+
'portfolio.smallCheckout.cta.button': string;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MEDIUM_TRANSITION_DURATION = 0.2;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const BREAKPOINT_SM = "320px";
|
|
2
|
+
export declare const BREAKPOINT_MD = "768px";
|
|
3
|
+
export declare const BREAKPOINT_LG = "960px";
|
|
4
|
+
export declare const BREAKPOINT_XL = "1200px";
|
|
5
|
+
export declare const BREAKPOINT_SM_QUERY = "(max-width: 320px)";
|
|
6
|
+
export declare const BREAKPOINT_MD_QUERY = "(max-width: 768px)";
|
|
7
|
+
export declare const BREAKPOINT_LG_QUERY = "(max-width: 960px)";
|
|
8
|
+
export declare const BREAKPOINT_XL_QUERY = "(max-width: 1200px)";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FormatNumberOptions } from 'react-intl';
|
|
2
|
+
export declare const FORMAT_AS_EUR_CONFIG: FormatNumberOptions;
|
|
3
|
+
export declare const FORMAT_AS_METER_CONFIG: FormatNumberOptions;
|
|
4
|
+
export declare const FORMAT_AS_HECTARE_CONFIG: FormatNumberOptions;
|
|
5
|
+
export declare const FORMAT_AS_CUBIC_METERS_PER_HECTARE_CONFIG: FormatNumberOptions;
|
|
6
|
+
export declare const FORMAT_AS_PERCENT_CONFIG: FormatNumberOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GLOBAL_STYLE: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const MAPBOX_TOKEN = "pk.eyJ1IjoidHJlZS1seSIsImEiOiJja25rNG1heHgwNThjMnZwZTl2eThmeXUwIn0.SOrYUKfevZkbx8jZPxJesA";
|
|
2
|
+
export declare enum MapBoxStyle {
|
|
3
|
+
Outdoors = "mapbox://styles/mapbox/outdoors-v11",
|
|
4
|
+
SatelliteStreets = "mapbox://styles/mapbox/satellite-streets-v11",
|
|
5
|
+
Satellite = "mapbox://styles/mapbox/satellite-v9",
|
|
6
|
+
CaliTerrain = "mapbox://styles/tree-ly/clna54iq603ht01pbc199cszw"
|
|
7
|
+
}
|
|
8
|
+
export declare const MAPBOX_TILES_URL: string;
|
|
9
|
+
export declare const MAPBOX_SOURCE_LAYER = "plots";
|
|
10
|
+
export declare const MAPBOX_SOURCE_IDENTIFIER = "plots";
|
|
11
|
+
export declare const MAPBOX_BORDER_LAYER_IDENTIFIER = "plots-borders";
|
|
12
|
+
export declare const MAPBOX_FILL_LAYER_IDENTIFIER = "plots-fill";
|
|
13
|
+
export declare const MAPBOX_TEXT_LAYER_IDENTIFIER = "plots-text";
|
|
14
|
+
export declare const MAPBOX_TEXT_MIN_ZOOM = 15;
|
|
15
|
+
export declare const MAPBOX_SHAPES_MIN_ZOOM = 13;
|
|
16
|
+
export declare const MAPBOX_MAX_ZOOM = 19;
|
|
17
|
+
export declare const MAPBOX_INITIAL_ZOOM = 13;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const EXTENDABLE_HEADER_SECTIONS: string[];
|
|
2
|
+
export declare const DARK_THEME_HEADER_SECTIONS: string[];
|
|
3
|
+
export declare const SECTIONS_WITH_BLOG_POSTS: string[];
|
|
4
|
+
export declare const SECTIONS_WITH_CUSTOMER_STORIES: string[];
|
|
5
|
+
export declare const SECTIONS_WITH_PROJECTS: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const STRAPI_URI: string;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import IStrapi from './models/strapi/IStrapi';
|
|
2
|
+
import IStrapiData from './models/strapi/IStrapiData';
|
|
3
|
+
import IStrapiResponse from './models/strapi/IStrapiResponse';
|
|
4
|
+
import StrapiAuthor from './models/strapi/StrapiAuthor';
|
|
5
|
+
import StrapiAvatarWithName from './models/strapi/StrapiAvatarWithName';
|
|
6
|
+
import StrapiBanner from './models/strapi/StrapiBanner';
|
|
7
|
+
import StrapiBlogPost from './models/strapi/StrapiBlogPost';
|
|
8
|
+
import StrapiBlogPostProps from './models/strapi/StrapiBlogPostProps';
|
|
9
|
+
import StrapiButtonWithVariant from './models/strapi/StrapiButtonWithVariant';
|
|
10
|
+
import StrapiCategory from './models/strapi/StrapiCategory';
|
|
11
|
+
import StrapiContactArea from './models/strapi/StrapiContactArea';
|
|
12
|
+
import StrapiCustomerStory from './models/strapi/StrapiCustomerStory';
|
|
13
|
+
import StrapiCustomerStoryProps from './models/strapi/StrapiCustomerStoryProps';
|
|
14
|
+
import StrapiDefaultHeader from './models/strapi/StrapiDefaultHeader';
|
|
15
|
+
import StrapiGlobal from './models/strapi/StrapiGlobal';
|
|
16
|
+
import StrapiGlossaryItem from './models/strapi/StrapiGlossaryItem';
|
|
17
|
+
import StrapiHeroCard from './models/strapi/StrapiHeroCard';
|
|
18
|
+
import StrapiImage from './models/strapi/StrapiImage';
|
|
19
|
+
import StrapiImageFormat from './models/strapi/StrapiImageFormat';
|
|
20
|
+
import StrapiImageWithLink from './models/strapi/StrapiImageWithLink';
|
|
21
|
+
import StrapiLink from './models/strapi/StrapiLink';
|
|
22
|
+
import StrapiLinkList from './models/strapi/StrapiLinkList';
|
|
23
|
+
import StrapiLinkPage from './models/strapi/StrapiLinkPage';
|
|
24
|
+
import StrapiLinkWithIcon from './models/strapi/StrapiLinkWithIcon';
|
|
25
|
+
import StrapiLocalization from './models/strapi/StrapiLocalization';
|
|
26
|
+
import StrapiMedia from './models/strapi/StrapiMedia';
|
|
27
|
+
import StrapiMetadata from './models/strapi/StrapiMetadata';
|
|
28
|
+
import StrapiNavMenu from './models/strapi/StrapiNavMenu';
|
|
29
|
+
import StrapiPage from './models/strapi/StrapiPage';
|
|
30
|
+
import StrapiPageProps from './models/strapi/StrapiPageProps';
|
|
31
|
+
import StrapiPortfolio from './models/strapi/StrapiPortfolio';
|
|
32
|
+
import StrapiPortfolioCard from './models/strapi/StrapiPortfolioCard';
|
|
33
|
+
import StrapiProject from './models/strapi/StrapiProject';
|
|
34
|
+
import StrapiProjectProps from './models/strapi/StrapiProjectProps';
|
|
35
|
+
import StrapiProjectCard from './models/strapi/StrapiProjectCard';
|
|
36
|
+
import StrapiQuoteCard from './models/strapi/StrapiQuoteCard';
|
|
37
|
+
import StrapiShapesCard from './models/strapi/StrapiShapesCard';
|
|
38
|
+
import StrapiTextCardWithIcons from './models/strapi/StrapiTextCardWithIcons';
|
|
39
|
+
import StrapiTopBanner from './models/strapi/StrapiTopBanner';
|
|
40
|
+
import HeaderType from './models/HeaderType';
|
|
41
|
+
import Image from './models/Image';
|
|
42
|
+
import PageMetadata from './models/PageMetadata';
|
|
43
|
+
import PageProps from './models/PageProps';
|
|
44
|
+
import mergeGlobalAndStrapiBlogPostData from './utils/mergeGlobalAndStrapiBlogPostData';
|
|
45
|
+
import mergeGlobalAndStrapiCustomerStoryData from './utils/mergeGlobalAndStrapiCustomerStoryData';
|
|
46
|
+
import mergeGlobalAndStrapiPageData from './utils/mergeGlobalAndStrapiPageData';
|
|
47
|
+
import mergeGlobalAndStrapiProjectData from './utils/mergeGlobalAndStrapiProjectData';
|
|
48
|
+
import strapiLinkUrl from './utils/strapiLinkUrl';
|
|
49
|
+
import strapiMediaUrl from './utils/strapiMediaUrl';
|
|
50
|
+
import { SECTIONS_WITH_BLOG_POSTS, SECTIONS_WITH_CUSTOMER_STORIES, SECTIONS_WITH_PROJECTS } from './constants/sectionsConfig';
|
|
51
|
+
export * from './components/SEOTags';
|
|
52
|
+
export * from './components/SliceRenderer';
|
|
53
|
+
export { mergeGlobalAndStrapiBlogPostData, mergeGlobalAndStrapiCustomerStoryData, mergeGlobalAndStrapiPageData, mergeGlobalAndStrapiProjectData, strapiLinkUrl, strapiMediaUrl, SECTIONS_WITH_BLOG_POSTS, SECTIONS_WITH_CUSTOMER_STORIES, SECTIONS_WITH_PROJECTS, };
|
|
54
|
+
export type { IStrapi, IStrapiData, IStrapiResponse, StrapiAuthor, StrapiAvatarWithName, StrapiBanner, StrapiBlogPost, StrapiBlogPostProps, StrapiButtonWithVariant, StrapiCategory, StrapiContactArea, StrapiCustomerStory, StrapiCustomerStoryProps, StrapiDefaultHeader, StrapiGlobal, StrapiGlossaryItem, StrapiHeroCard, StrapiImage, StrapiImageFormat, StrapiImageWithLink, StrapiLink, StrapiLinkList, StrapiLinkPage, StrapiLinkWithIcon, StrapiLocalization, StrapiMedia, StrapiMetadata, StrapiNavMenu, StrapiPage, StrapiPageProps, StrapiPortfolio, StrapiPortfolioCard, StrapiProject, StrapiProjectProps, StrapiProjectCard, StrapiQuoteCard, StrapiShapesCard, StrapiTextCardWithIcons, StrapiTopBanner, HeaderType, Image, PageMetadata, PageProps, };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IStrapiData, StrapiBanner, StrapiBlogPost, StrapiCustomerStory, StrapiLink, StrapiLinkList, StrapiNavMenu, StrapiTopBanner } from '..';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import PortfolioProject from './PortfolioProject';
|
|
4
|
+
import PageMetadata from './PageMetadata';
|
|
5
|
+
import HeaderType from './HeaderType';
|
|
6
|
+
interface PageProps {
|
|
7
|
+
headerType?: HeaderType;
|
|
8
|
+
headerNavMenus?: StrapiNavMenu[];
|
|
9
|
+
headerButtons?: StrapiLink[];
|
|
10
|
+
footerLinks?: StrapiLinkList[];
|
|
11
|
+
hideFooter?: boolean;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
metadata: PageMetadata;
|
|
14
|
+
slices: any[];
|
|
15
|
+
blogPosts: IStrapiData<StrapiBlogPost>[];
|
|
16
|
+
projects: PortfolioProject[];
|
|
17
|
+
banner?: StrapiBanner;
|
|
18
|
+
topBanner?: StrapiTopBanner;
|
|
19
|
+
customerStories: IStrapiData<StrapiCustomerStory>[];
|
|
20
|
+
}
|
|
21
|
+
export default PageProps;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import Issuer from './Issuer';
|
|
2
|
+
interface FPMProject {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
isPublic?: boolean;
|
|
6
|
+
geom?: {
|
|
7
|
+
type: 'Point';
|
|
8
|
+
coordinates: [number, number];
|
|
9
|
+
};
|
|
10
|
+
area?: number;
|
|
11
|
+
location?: string;
|
|
12
|
+
start?: Date;
|
|
13
|
+
end?: Date;
|
|
14
|
+
projectType?: {
|
|
15
|
+
title: string;
|
|
16
|
+
id: string;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
};
|
|
20
|
+
projectDeveloper?: {
|
|
21
|
+
name: string;
|
|
22
|
+
id: string;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
};
|
|
26
|
+
verificationStandard?: {
|
|
27
|
+
id: string;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
};
|
|
31
|
+
forecastedAmountYearly?: number;
|
|
32
|
+
riskBuffer?: number;
|
|
33
|
+
defaultIssuer?: Issuer;
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
updatedAt: Date;
|
|
36
|
+
}
|
|
37
|
+
export default FPMProject;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import IStrapi from './IStrapi';
|
|
2
|
+
interface IStrapiResponse<D> extends IStrapi<D> {
|
|
3
|
+
meta: {
|
|
4
|
+
pagination?: {
|
|
5
|
+
page: number;
|
|
6
|
+
pageSize: number;
|
|
7
|
+
pageCount: number;
|
|
8
|
+
total: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
error?: object;
|
|
12
|
+
}
|
|
13
|
+
export default IStrapiResponse;
|