@treely/strapi-slices 1.0.1 → 1.0.2
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 +3 -2
- package/dist/components/FullScreenImage/FullScreenImage.d.ts +3 -2
- package/dist/components/FullScreenImage/ZoomableImage.d.ts +3 -2
- package/dist/components/MinimalProviders/MinimalProviders.d.ts +2 -2
- package/dist/components/SliceRenderer/SliceRenderer.d.ts +7 -5
- package/dist/components/StrapiLinkButton/StrapiLinkButton.d.ts +2 -2
- package/dist/components/StrapiLinkButtonWithIcon/StrapiLinkButtonWithIcon.d.ts +2 -2
- package/dist/components/portfolio/Contact/Contact.d.ts +3 -3
- package/dist/components/portfolio/DocumentsDownloadList/DocumentsDownloadList.d.ts +2 -2
- package/dist/components/portfolio/ProjectInfo/ProjectInfo.d.ts +2 -2
- package/dist/components/portfolio/SmallCheckout/SmallCheckout.d.ts +3 -2
- package/dist/icons/LinkedInIcon.d.ts +2 -1
- package/dist/slices/Blog/Blog.d.ts +3 -3
- package/dist/slices/Blog/styles.d.ts +4 -6
- package/dist/slices/BlogCards/BlogCards.d.ts +6 -6
- package/dist/slices/Comparison/Comparison.d.ts +3 -3
- package/dist/slices/Cta/Cta.d.ts +3 -3
- package/dist/slices/CtaOnly/CtaOnly.d.ts +2 -2
- package/dist/slices/CustomerStories/CustomerStories.d.ts +2 -2
- package/dist/slices/Facts/Facts.d.ts +2 -2
- package/dist/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.d.ts +2 -2
- package/dist/slices/FullWidthImage/FullWidthImage.d.ts +3 -3
- package/dist/slices/FullWidthImageSlider/FullWidthImageSlider.d.ts +2 -2
- package/dist/slices/FullWidthImageSlider/styles.d.ts +10 -15
- package/dist/slices/FullWidthImageSlider/utils.test.d.ts +1 -0
- package/dist/slices/Glossary/Glossary.d.ts +3 -3
- package/dist/slices/Hero/Hero.d.ts +4 -4
- package/dist/slices/IconGrid/IconGrid.d.ts +3 -3
- package/dist/slices/ImageGrid/ImageGrid.d.ts +4 -4
- package/dist/slices/ImageTextSequence/ImageTextSequence.d.ts +4 -4
- package/dist/slices/LeftTextRightCard/LeftTextRightCard.d.ts +4 -4
- package/dist/slices/LinkCardsGrid/LinkCardsGrid.d.ts +2 -2
- package/dist/slices/LogoGridWithText/LogoGridWithText.d.ts +3 -3
- package/dist/slices/MapHero/MapHero.d.ts +3 -3
- package/dist/slices/MapHero/styles.d.ts +10 -15
- package/dist/slices/ProjectFacts/ProjectFacts.d.ts +4 -4
- package/dist/slices/ProjectsGrid/ProjectsGrid.d.ts +2 -2
- package/dist/slices/ProjectsMap/MapMarker.d.ts +3 -2
- package/dist/slices/ProjectsMap/ProjectsMap.d.ts +2 -3
- package/dist/slices/ProjectsMap/mapboxStyle.d.ts +2 -0
- package/dist/slices/QAndA/QAndA.d.ts +3 -3
- package/dist/slices/QuoteCards/QuoteCards.d.ts +5 -5
- package/dist/slices/RichTextSection/RichTextSection.d.ts +1 -1
- package/dist/slices/SideBySideImages/SideBySideImages.d.ts +2 -2
- package/dist/slices/SmallHero/SmallHero.d.ts +3 -3
- package/dist/slices/Steps/Steps.d.ts +4 -4
- package/dist/slices/TextCardGrid/TextCardGrid.d.ts +4 -4
- package/dist/slices/TextCarousel/TextCarousel.d.ts +4 -4
- package/dist/slices/TextCarousel/styles.d.ts +6 -9
- package/dist/slices/TextWithCard/TextWithCard.d.ts +3 -3
- package/dist/slices/TextWithTextCards/TextWithTextCards.d.ts +5 -5
- package/dist/slices/Video/Video.d.ts +1 -1
- package/dist/strapi-slices.cjs.development.js +4617 -201
- package/dist/strapi-slices.cjs.development.js.map +1 -1
- package/dist/strapi-slices.cjs.production.min.js +1 -1
- package/dist/strapi-slices.cjs.production.min.js.map +1 -1
- package/dist/strapi-slices.esm.js +4606 -201
- package/dist/strapi-slices.esm.js.map +1 -1
- package/dist/test/integrationMocks/fpmProjectMock.d.ts +1 -1
- package/dist/test/mocks/portfolioProjectMock.d.ts +1 -1
- package/dist/test/storybookMocks/storybookStrapiMedia.d.ts +2 -2
- package/dist/test/strapiMocks/minimalGlobalData.d.ts +2 -2
- package/dist/test/strapiMocks/strapiBlogPost.d.ts +2 -2
- package/dist/test/strapiMocks/strapiContact.d.ts +1 -1
- package/dist/test/strapiMocks/strapiCustomerStory.d.ts +2 -2
- package/dist/test/strapiMocks/strapiHeroCard.d.ts +1 -1
- package/dist/test/strapiMocks/strapiLinkPage.d.ts +2 -2
- package/dist/test/strapiMocks/strapiMedia.d.ts +2 -2
- package/dist/test/strapiMocks/strapiMetadata.d.ts +1 -1
- package/dist/test/strapiMocks/strapiPage.d.ts +2 -2
- package/dist/test/strapiMocks/strapiPortfolioCard.d.ts +1 -1
- package/dist/test/strapiMocks/strapiPortfolioMock.d.ts +2 -2
- package/dist/test/strapiMocks/strapiProject.d.ts +2 -2
- package/dist/test/strapiMocks/strapiProjectCard.d.ts +1 -1
- package/dist/test/strapiMocks/strapiQuoteCard.d.ts +1 -1
- package/dist/utils/convertAreaM2ToHa.test.d.ts +1 -0
- package/dist/utils/convertToKebabCase.test.d.ts +1 -0
- package/dist/utils/getTimeSpanInYears.test.d.ts +1 -0
- package/dist/utils/mergeBoundingBoxes.d.ts +1 -1
- package/dist/utils/mergeBoundingBoxes.test.d.ts +1 -0
- package/dist/utils/strapiLinkUrl.d.ts +1 -1
- package/dist/utils/strapiLinkUrl.test.d.ts +1 -0
- package/dist/utils/strapiMediaUrl.d.ts +3 -3
- package/dist/utils/strapiMediaUrl.test.d.ts +1 -0
- package/package.json +7 -4
- package/src/components/ContextProvider/ContextProvider.tsx +40 -0
- package/src/components/ContextProvider/index.ts +1 -0
- package/src/components/CreditsAvailableBadge/CreditsAvailableBadge.test.tsx +3 -2
- package/src/components/CreditsAvailableBadge/CreditsAvailableBadge.tsx +4 -3
- package/src/components/FullScreenImage/FullScreenImage.test.tsx +3 -2
- package/src/components/FullScreenImage/FullScreenImage.tsx +2 -2
- package/src/components/FullScreenImage/ZoomableImage.tsx +2 -2
- package/src/components/MinimalProviders/MinimalProviders.tsx +4 -3
- package/src/components/SliceRenderer/SliceRenderer.test.tsx +2 -1
- package/src/components/SliceRenderer/SliceRenderer.tsx +45 -40
- package/src/components/StrapiLinkButton/StrapiLinkButton.test.tsx +2 -1
- package/src/components/StrapiLinkButton/StrapiLinkButton.tsx +10 -13
- package/src/components/StrapiLinkButtonWithIcon/StrapiLinkButtonWithIcon.test.tsx +2 -1
- package/src/components/StrapiLinkButtonWithIcon/StrapiLinkButtonWithIcon.tsx +3 -2
- package/src/components/portfolio/Contact/Contact.test.tsx +4 -3
- package/src/components/portfolio/Contact/Contact.tsx +5 -4
- package/src/components/portfolio/DocumentsDownloadList/DocumentsDownloadList.test.tsx +2 -1
- package/src/components/portfolio/DocumentsDownloadList/DocumentsDownloadList.tsx +7 -4
- package/src/components/portfolio/ProjectInfo/ProjectInfo.test.tsx +3 -2
- package/src/components/portfolio/ProjectInfo/ProjectInfo.tsx +10 -9
- package/src/components/portfolio/SmallCheckout/SmallCheckout.test.tsx +2 -1
- package/src/components/portfolio/SmallCheckout/SmallCheckout.tsx +35 -32
- package/src/constants/globalStyle.ts +4 -0
- package/src/icons/LinkedInIcon.tsx +2 -0
- package/src/rootMessages.de.ts +12 -12
- package/src/rootMessages.en.ts +12 -12
- package/src/slices/Blog/Blog.test.tsx +5 -4
- package/src/slices/Blog/Blog.tsx +63 -65
- package/src/slices/Blog/styles.ts +8 -4
- package/src/slices/BlogCards/BlogCards.stories.tsx +5 -4
- package/src/slices/BlogCards/BlogCards.test.tsx +5 -4
- package/src/slices/BlogCards/BlogCards.tsx +67 -70
- package/src/slices/Comparison/Comparison.stories.tsx +3 -2
- package/src/slices/Comparison/Comparison.test.tsx +4 -3
- package/src/slices/Comparison/Comparison.tsx +8 -7
- package/src/slices/Comparison/Icon.test.tsx +3 -2
- package/src/slices/Comparison/Icon.tsx +1 -0
- package/src/slices/Cta/Cta.stories.tsx +3 -2
- package/src/slices/Cta/Cta.test.tsx +4 -3
- package/src/slices/Cta/Cta.tsx +8 -7
- package/src/slices/CtaOnly/CtaOnly.stories.tsx +2 -1
- package/src/slices/CtaOnly/CtaOnly.test.tsx +2 -1
- package/src/slices/CtaOnly/CtaOnly.tsx +3 -2
- package/src/slices/CustomerStories/CustomerStories.stories.tsx +3 -2
- package/src/slices/CustomerStories/CustomerStories.test.tsx +4 -3
- package/src/slices/CustomerStories/CustomerStories.tsx +64 -59
- package/src/slices/Facts/Facts.stories.tsx +2 -1
- package/src/slices/Facts/Facts.test.tsx +2 -1
- package/src/slices/Facts/Facts.tsx +3 -2
- package/src/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.stories.tsx +3 -2
- package/src/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.test.tsx +3 -2
- package/src/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.tsx +3 -2
- package/src/slices/FullWidthImage/FullWidthImage.stories.tsx +3 -2
- package/src/slices/FullWidthImage/FullWidthImage.test.tsx +3 -2
- package/src/slices/FullWidthImage/FullWidthImage.tsx +10 -9
- package/src/slices/FullWidthImageSlider/FullWidthImageSlider.stories.tsx +3 -2
- package/src/slices/FullWidthImageSlider/FullWidthImageSlider.test.tsx +3 -2
- package/src/slices/FullWidthImageSlider/FullWidthImageSlider.tsx +5 -5
- package/src/slices/FullWidthImageSlider/styles.ts +11 -8
- package/src/slices/Glossary/Glossary.stories.tsx +2 -1
- package/src/slices/Glossary/Glossary.test.tsx +2 -2
- package/src/slices/Glossary/Glossary.tsx +6 -6
- package/src/slices/Hero/Hero.stories.tsx +3 -2
- package/src/slices/Hero/Hero.test.tsx +3 -2
- package/src/slices/Hero/Hero.tsx +38 -14
- package/src/slices/IconGrid/IconGrid.stories.tsx +3 -2
- package/src/slices/IconGrid/IconGrid.test.tsx +3 -2
- package/src/slices/IconGrid/IconGrid.tsx +18 -9
- package/src/slices/ImageGrid/ImageGrid.stories.tsx +4 -3
- package/src/slices/ImageGrid/ImageGrid.test.tsx +3 -2
- package/src/slices/ImageGrid/ImageGrid.tsx +12 -9
- package/src/slices/ImageTextSequence/ImageTextSequence.stories.tsx +3 -2
- package/src/slices/ImageTextSequence/ImageTextSequence.test.tsx +3 -2
- package/src/slices/ImageTextSequence/ImageTextSequence.tsx +28 -19
- package/src/slices/LeftTextRightCard/LeftTextRightCard.stories.tsx +3 -2
- package/src/slices/LeftTextRightCard/LeftTextRightCard.test.tsx +3 -2
- package/src/slices/LeftTextRightCard/LeftTextRightCard.tsx +7 -6
- package/src/slices/LinkCardsGrid/LinkCardsGrid.stories.tsx +2 -1
- package/src/slices/LinkCardsGrid/LinkCardsGrid.test.tsx +2 -1
- package/src/slices/LinkCardsGrid/LinkCardsGrid.tsx +45 -43
- package/src/slices/LogoGridWithText/LogoGridWithText.stories.tsx +3 -2
- package/src/slices/LogoGridWithText/LogoGridWithText.test.tsx +3 -2
- package/src/slices/LogoGridWithText/LogoGridWithText.tsx +8 -8
- package/src/slices/MapHero/MapHero.stories.tsx +3 -2
- package/src/slices/MapHero/MapHero.test.tsx +3 -2
- package/src/slices/MapHero/MapHero.tsx +6 -5
- package/src/slices/MapHero/styles.ts +7 -6
- package/src/slices/ProjectFacts/ProjectFacts.stories.tsx +4 -3
- package/src/slices/ProjectFacts/ProjectFacts.test.tsx +3 -2
- package/src/slices/ProjectFacts/ProjectFacts.tsx +8 -7
- package/src/slices/ProjectsGrid/ProjectsGrid.stories.tsx +4 -3
- package/src/slices/ProjectsGrid/ProjectsGrid.test.tsx +3 -2
- package/src/slices/ProjectsGrid/ProjectsGrid.tsx +4 -3
- package/src/slices/ProjectsMap/MapMarker.test.tsx +3 -2
- package/src/slices/ProjectsMap/MapMarker.tsx +6 -4
- package/src/slices/ProjectsMap/ProjectsMap.stories.tsx +4 -3
- package/src/slices/ProjectsMap/ProjectsMap.test.tsx +4 -3
- package/src/slices/ProjectsMap/ProjectsMap.tsx +49 -38
- package/src/slices/ProjectsMap/mapboxStyle.ts +670 -0
- package/src/slices/QAndA/QAndA.stories.tsx +3 -2
- package/src/slices/QAndA/QAndA.test.tsx +3 -2
- package/src/slices/QAndA/QAndA.tsx +7 -6
- package/src/slices/QuoteCards/QuoteCards.stories.tsx +3 -2
- package/src/slices/QuoteCards/QuoteCards.test.tsx +5 -4
- package/src/slices/QuoteCards/QuoteCards.tsx +15 -13
- package/src/slices/RichTextSection/RichTextSection.stories.tsx +2 -1
- package/src/slices/RichTextSection/RichTextSection.test.tsx +2 -1
- package/src/slices/RichTextSection/RichTextSection.tsx +1 -0
- package/src/slices/ShopCheckout/ShopCheckout.stories.tsx +1 -0
- package/src/slices/ShopCheckout/ShopCheckout.test.tsx +3 -2
- package/src/slices/ShopCheckout/ShopCheckout.tsx +36 -29
- package/src/slices/SideBySideImages/SideBySideImages.stories.tsx +3 -2
- package/src/slices/SideBySideImages/SideBySideImages.test.tsx +3 -2
- package/src/slices/SideBySideImages/SideBySideImages.tsx +3 -2
- package/src/slices/SmallHero/SmallHero.stories.tsx +3 -2
- package/src/slices/SmallHero/SmallHero.test.tsx +3 -2
- package/src/slices/SmallHero/SmallHero.tsx +14 -7
- package/src/slices/Steps/Steps.stories.tsx +3 -2
- package/src/slices/Steps/Steps.test.tsx +3 -2
- package/src/slices/Steps/Steps.tsx +46 -26
- package/src/slices/TextCardGrid/TextCardGrid.stories.tsx +3 -2
- package/src/slices/TextCardGrid/TextCardGrid.test.tsx +3 -2
- package/src/slices/TextCardGrid/TextCardGrid.tsx +6 -5
- package/src/slices/TextCarousel/TextCarousel.stories.tsx +3 -2
- package/src/slices/TextCarousel/TextCarousel.test.tsx +4 -3
- package/src/slices/TextCarousel/TextCarousel.tsx +6 -6
- package/src/slices/TextCarousel/styles.ts +9 -6
- package/src/slices/TextWithCard/TextWithCard.stories.tsx +3 -2
- package/src/slices/TextWithCard/TextWithCard.test.tsx +3 -2
- package/src/slices/TextWithCard/TextWithCard.tsx +5 -4
- package/src/slices/TextWithTextCards/TextWithTextCards.stories.tsx +3 -2
- package/src/slices/TextWithTextCards/TextWithTextCards.test.tsx +4 -3
- package/src/slices/TextWithTextCards/TextWithTextCards.tsx +22 -11
- package/src/slices/Video/Video.stories.tsx +2 -1
- package/src/slices/Video/Video.test.tsx +2 -1
- package/src/slices/Video/Video.tsx +1 -0
- package/src/test/integrationMocks/fpmProjectMock.ts +1 -1
- package/src/test/mocks/portfolioProjectMock.ts +3 -3
- package/src/test/storybookMocks/storybookStrapiMedia.ts +2 -2
- package/src/test/strapiMocks/minimalGlobalData.ts +2 -2
- package/src/test/strapiMocks/strapiBlogPost.ts +2 -2
- package/src/test/strapiMocks/strapiContact.ts +1 -1
- package/src/test/strapiMocks/strapiCustomerStory.ts +2 -2
- package/src/test/strapiMocks/strapiHeroCard.ts +1 -1
- package/src/test/strapiMocks/strapiLinkPage.ts +2 -2
- package/src/test/strapiMocks/strapiMedia.ts +2 -2
- package/src/test/strapiMocks/strapiMetadata.ts +1 -1
- package/src/test/strapiMocks/strapiPage.ts +2 -2
- package/src/test/strapiMocks/strapiPortfolioCard.ts +1 -1
- package/src/test/strapiMocks/strapiPortfolioMock.ts +2 -2
- package/src/test/strapiMocks/strapiProject.ts +3 -3
- package/src/test/strapiMocks/strapiProjectCard.ts +1 -1
- package/src/test/strapiMocks/strapiQuoteCard.ts +1 -1
- package/src/test/testUtils.tsx +3 -3
- package/src/utils/mergeBoundingBoxes.ts +1 -1
- package/src/utils/strapiLinkUrl.test.ts +1 -1
- package/src/utils/strapiLinkUrl.ts +1 -1
- package/src/utils/strapiMediaUrl.test.ts +2 -2
- package/src/utils/strapiMediaUrl.ts +4 -4
- package/dist/slices/BlogCards/BlogCards.stories.d.ts +0 -5
- 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 -3
- 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/FullWidthImage/styles.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/Hero/styles.d.ts +0 -17
- package/dist/slices/IconGrid/IconGrid.stories.d.ts +0 -5
- package/dist/slices/IconGrid/styles.d.ts +0 -9
- package/dist/slices/ImageGrid/ImageGrid.stories.d.ts +0 -5
- package/dist/slices/ImageGrid/styles.d.ts +0 -5
- package/dist/slices/ImageTextSequence/ImageTextSequence.stories.d.ts +0 -7
- package/dist/slices/ImageTextSequence/styles.d.ts +0 -13
- 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/LogoGridWithText/styles.d.ts +0 -5
- package/dist/slices/MapHero/MapHero.stories.d.ts +0 -8
- package/dist/slices/ProjectFacts/ProjectFacts.stories.d.ts +0 -6
- package/dist/slices/ProjectsGrid/ProjectsGrid.stories.d.ts +0 -3
- 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/QuoteCards/styles.d.ts +0 -13
- package/dist/slices/RichTextSection/RichTextSection.stories.d.ts +0 -3
- package/dist/slices/ShopCheckout/ShopCheckout.stories.d.ts +0 -7
- package/dist/slices/SideBySideImages/SideBySideImages.stories.d.ts +0 -3
- package/dist/slices/SmallHero/SmallHero.stories.d.ts +0 -11
- package/dist/slices/SmallHero/styles.d.ts +0 -9
- package/dist/slices/Steps/Steps.stories.d.ts +0 -7
- package/dist/slices/Steps/styles.d.ts +0 -25
- package/dist/slices/TextCardGrid/TextCardGrid.stories.d.ts +0 -8
- package/dist/slices/TextCarousel/TextCarousel.stories.d.ts +0 -6
- package/dist/slices/TextWithCard/TextWithCard.stories.d.ts +0 -9
- package/dist/slices/TextWithTextCards/TextWithTextCards.stories.d.ts +0 -7
- package/dist/slices/TextWithTextCards/styles.d.ts +0 -5
- package/dist/slices/Video/Video.stories.d.ts +0 -3
- package/src/slices/FullWidthImage/styles.ts +0 -17
- package/src/slices/Hero/styles.ts +0 -52
- package/src/slices/IconGrid/styles.ts +0 -21
- package/src/slices/ImageGrid/styles.ts +0 -12
- package/src/slices/ImageTextSequence/styles.ts +0 -33
- package/src/slices/LogoGridWithText/styles.ts +0 -13
- package/src/slices/QuoteCards/styles.ts +0 -17
- package/src/slices/SmallHero/styles.ts +0 -39
- package/src/slices/Steps/styles.ts +0 -64
- package/src/slices/TextWithTextCards/styles.ts +0 -26
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React, { useContext, useMemo } from 'react';
|
|
1
2
|
import {
|
|
2
3
|
Text,
|
|
3
4
|
Heading,
|
|
@@ -14,18 +15,17 @@ import {
|
|
|
14
15
|
} from 'boemly';
|
|
15
16
|
import Image from 'next/image';
|
|
16
17
|
import Link from 'next/link';
|
|
17
|
-
import { useIntl } from 'react-intl';
|
|
18
18
|
import { CaretRight } from '@phosphor-icons/react';
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import StrapiLinkButton from '@/components/StrapiLinkButton';
|
|
19
|
+
import StrapiBlogPost from '../../models/strapi/StrapiBlogPost';
|
|
20
|
+
import IStrapiData from '../../models/strapi/IStrapiData';
|
|
21
|
+
import strapiMediaUrl from '../../utils/strapiMediaUrl';
|
|
22
|
+
import StrapiCategory from '../../models/strapi/StrapiCategory';
|
|
23
|
+
import IStrapi from '../../models/strapi/IStrapi';
|
|
24
|
+
import { BREAKPOINT_LG_QUERY } from '../../constants/breakpoints';
|
|
25
|
+
import StrapiLink from '../../models/strapi/StrapiLink';
|
|
26
|
+
import StrapiLinkButton from '../../components/StrapiLinkButton';
|
|
28
27
|
import { BlogItemContainer, ImageContainer } from '../Blog/styles';
|
|
28
|
+
import { IntlContext } from '../../components/ContextProvider';
|
|
29
29
|
|
|
30
30
|
export interface BlogCardsProps {
|
|
31
31
|
slice: {
|
|
@@ -59,7 +59,7 @@ export const BlogCards: React.FC<BlogCardsProps> = ({
|
|
|
59
59
|
slice,
|
|
60
60
|
blogPosts,
|
|
61
61
|
}: BlogCardsProps) => {
|
|
62
|
-
const { formatDate } =
|
|
62
|
+
const { formatDate } = useContext(IntlContext);
|
|
63
63
|
const [mobile] = useMediaQuery(BREAKPOINT_LG_QUERY);
|
|
64
64
|
const [gray700] = useToken('colors', ['gray.700']);
|
|
65
65
|
|
|
@@ -123,71 +123,68 @@ export const BlogCards: React.FC<BlogCardsProps> = ({
|
|
|
123
123
|
flexShrink="0"
|
|
124
124
|
>
|
|
125
125
|
{blogPostsToDisplay.map((blogPost) => (
|
|
126
|
-
<
|
|
126
|
+
<BlogItemContainer
|
|
127
|
+
as={Link}
|
|
127
128
|
href={`/blog/${blogPost.attributes.slug}`}
|
|
128
|
-
|
|
129
|
+
data-testid="blog-item"
|
|
129
130
|
key={blogPost.attributes.slug}
|
|
130
|
-
legacyBehavior
|
|
131
131
|
>
|
|
132
|
-
<
|
|
133
|
-
<
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
)}
|
|
132
|
+
<ImageContainer>
|
|
133
|
+
<Image
|
|
134
|
+
src={strapiMediaUrl(blogPost.attributes.img.img, 'medium')}
|
|
135
|
+
alt={blogPost.attributes.img.alt}
|
|
136
|
+
fill
|
|
137
|
+
style={{
|
|
138
|
+
objectFit: blogPost.attributes.img.objectFit || 'cover',
|
|
139
|
+
}}
|
|
140
|
+
/>
|
|
141
|
+
</ImageContainer>
|
|
142
|
+
<Box px="2" py="8">
|
|
143
|
+
{blogPost.attributes.category && (
|
|
144
|
+
<Text size="smMonoUppercase" color="primary.800" mb="2">
|
|
145
|
+
{blogPost.attributes.category.data.attributes.name}
|
|
146
|
+
</Text>
|
|
147
|
+
)}
|
|
148
|
+
<Heading size="lg">{blogPost.attributes.title}</Heading>
|
|
149
|
+
{blogPost.attributes.teaser && (
|
|
150
|
+
<Text size="mdRegularNormal" mt="2">
|
|
151
|
+
{blogPost.attributes.teaser}
|
|
152
|
+
</Text>
|
|
153
|
+
)}
|
|
155
154
|
|
|
156
|
-
|
|
155
|
+
<Spacer height="4" />
|
|
157
156
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
157
|
+
<DatePersonPair
|
|
158
|
+
date={formatDate(blogPost.attributes.createdAt)}
|
|
159
|
+
person={
|
|
160
|
+
blogPost.attributes.author
|
|
161
|
+
? {
|
|
162
|
+
name: blogPost.attributes.author.data.attributes.name,
|
|
163
|
+
image: (
|
|
164
|
+
<Image
|
|
165
|
+
src={strapiMediaUrl(
|
|
166
|
+
blogPost.attributes.author.data.attributes.img
|
|
167
|
+
.img,
|
|
168
|
+
'thumbnail'
|
|
169
|
+
)}
|
|
170
|
+
alt={
|
|
171
|
+
blogPost.attributes.author.data.attributes.img
|
|
172
|
+
.alt
|
|
173
|
+
}
|
|
174
|
+
fill
|
|
175
|
+
style={{
|
|
176
|
+
objectFit:
|
|
173
177
|
blogPost.attributes.author.data.attributes.img
|
|
174
|
-
.
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
: undefined
|
|
186
|
-
}
|
|
187
|
-
/>
|
|
188
|
-
</Box>
|
|
189
|
-
</BlogItemContainer>
|
|
190
|
-
</Link>
|
|
178
|
+
.objectFit || 'cover',
|
|
179
|
+
}}
|
|
180
|
+
/>
|
|
181
|
+
),
|
|
182
|
+
}
|
|
183
|
+
: undefined
|
|
184
|
+
}
|
|
185
|
+
/>
|
|
186
|
+
</Box>
|
|
187
|
+
</BlogItemContainer>
|
|
191
188
|
))}
|
|
192
189
|
</SimpleGrid>
|
|
193
190
|
<>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Meta, StoryFn } from '@storybook/react';
|
|
2
|
-
import { storybookStrapiTreeIconMock } from '
|
|
3
|
+
import { storybookStrapiTreeIconMock } from '../../test/storybookMocks/storybookStrapiMedia';
|
|
3
4
|
import Comparison from '.';
|
|
4
5
|
import { ComparisonCard } from './Comparison';
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
|
-
title: '
|
|
8
|
+
title: 'slices/Comparison',
|
|
8
9
|
component: Comparison,
|
|
9
10
|
} as Meta<typeof Comparison>;
|
|
10
11
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mergeDeep } from '../../utils/mergeDeep';
|
|
3
|
+
import { render, screen } from '../../test/testUtils';
|
|
4
|
+
import { strapiMediaMock } from '../../test/strapiMocks/strapiMedia';
|
|
4
5
|
import { ComparisonProps } from './Comparison';
|
|
5
6
|
import { pushSpy, useRouter } from '../../../__mocks__/next/router';
|
|
6
7
|
import Comparison from '.';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import StrapiLinkButton from '../../components/StrapiLinkButton';
|
|
3
|
+
import StrapiImage from '../../models/strapi/StrapiImage';
|
|
4
|
+
import StrapiLink from '../../models/strapi/StrapiLink';
|
|
5
|
+
import strapiMediaUrl from '../../utils/strapiMediaUrl';
|
|
5
6
|
import {
|
|
6
7
|
Container,
|
|
7
8
|
DefaultSectionContainer,
|
|
@@ -18,9 +19,9 @@ import {
|
|
|
18
19
|
} from 'boemly';
|
|
19
20
|
import Image from 'next/image';
|
|
20
21
|
import { CaretRight } from '@phosphor-icons/react';
|
|
21
|
-
import { useIntl } from 'react-intl';
|
|
22
22
|
import { Icon } from './Icon';
|
|
23
|
-
import { CDN_URI } from '
|
|
23
|
+
import { CDN_URI } from '../../constants/api';
|
|
24
|
+
import { IntlContext } from '../../components/ContextProvider';
|
|
24
25
|
|
|
25
26
|
export interface ComparisonProps {
|
|
26
27
|
slice: {
|
|
@@ -76,7 +77,7 @@ const VARIANTS = {
|
|
|
76
77
|
export const Comparison: React.FC<ComparisonProps> = ({
|
|
77
78
|
slice,
|
|
78
79
|
}: ComparisonProps) => {
|
|
79
|
-
const { formatMessage } =
|
|
80
|
+
const { formatMessage } = useContext(IntlContext);
|
|
80
81
|
|
|
81
82
|
return (
|
|
82
83
|
<DefaultSectionContainer>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render, screen } from '../../test/testUtils';
|
|
3
|
+
import { mergeDeep } from '../../utils/mergeDeep';
|
|
3
4
|
import { IconProps, Icon } from './Icon';
|
|
4
5
|
|
|
5
6
|
const defaultProps: IconProps = {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Meta, StoryFn } from '@storybook/react';
|
|
2
|
-
import { storybookStrapiCoverMock } from '
|
|
3
|
+
import { storybookStrapiCoverMock } from '../../test/storybookMocks/storybookStrapiMedia';
|
|
3
4
|
import Cta from '.';
|
|
4
5
|
import { CtaCard } from './Cta';
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
|
-
title: '
|
|
8
|
+
title: 'slices/Cta',
|
|
8
9
|
component: Cta,
|
|
9
10
|
} as Meta<typeof Cta>;
|
|
10
11
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render, screen } from '../../test/testUtils';
|
|
3
|
+
import { storybookStrapiCoverMock } from '../../test/storybookMocks/storybookStrapiMedia';
|
|
4
|
+
import { mergeDeep } from '../../utils/mergeDeep';
|
|
4
5
|
import { pushSpy, useRouter } from '../../../__mocks__/next/router';
|
|
5
6
|
import { CtaProps } from './Cta';
|
|
6
7
|
import Cta from '.';
|
package/src/slices/Cta/Cta.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React, { useContext } from 'react';
|
|
1
2
|
import {
|
|
2
3
|
Box,
|
|
3
4
|
Container,
|
|
@@ -8,13 +9,13 @@ import {
|
|
|
8
9
|
Spacer,
|
|
9
10
|
Wrapper,
|
|
10
11
|
} from 'boemly';
|
|
11
|
-
import StrapiButtonWithVariant from '
|
|
12
|
-
import StrapiLinkButton from '
|
|
12
|
+
import StrapiButtonWithVariant from '../../models/strapi/StrapiButtonWithVariant';
|
|
13
|
+
import StrapiLinkButton from '../../components/StrapiLinkButton';
|
|
13
14
|
import Image from 'next/image';
|
|
14
|
-
import strapiMediaUrl from '
|
|
15
|
-
import StrapiImage from '
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
15
|
+
import strapiMediaUrl from '../../utils/strapiMediaUrl';
|
|
16
|
+
import StrapiImage from '../../models/strapi/StrapiImage';
|
|
17
|
+
import { CDN_URI } from '../../constants/api';
|
|
18
|
+
import { IntlContext } from '../../components/ContextProvider';
|
|
18
19
|
|
|
19
20
|
type Variant = 'gray' | 'green' | 'white';
|
|
20
21
|
|
|
@@ -177,7 +178,7 @@ const getTypeOfCard = (ctaCard: CtaCard): CtaCardType => {
|
|
|
177
178
|
};
|
|
178
179
|
|
|
179
180
|
export const Cta: React.FC<CtaProps> = ({ slice }: CtaProps) => {
|
|
180
|
-
const { formatMessage } =
|
|
181
|
+
const { formatMessage } = useContext(IntlContext);
|
|
181
182
|
|
|
182
183
|
return (
|
|
183
184
|
<DefaultSectionContainer
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Meta, StoryFn } from '@storybook/react';
|
|
2
3
|
import CtaOnly from '.';
|
|
3
4
|
import RichTextSection from '../RichTextSection';
|
|
4
5
|
import { RichTextSectionProps } from '../RichTextSection/RichTextSection';
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
|
-
title: '
|
|
8
|
+
title: 'slices/CTAOnly',
|
|
8
9
|
component: CtaOnly,
|
|
9
10
|
subcomponents: { RichTextSection },
|
|
10
11
|
} as Meta<typeof CtaOnly>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Box, Wrapper } from 'boemly';
|
|
2
|
-
import StrapiLinkButton from '
|
|
3
|
-
import StrapiLink from '
|
|
3
|
+
import StrapiLinkButton from '../../components/StrapiLinkButton';
|
|
4
|
+
import StrapiLink from '../../models/strapi/StrapiLink';
|
|
4
5
|
|
|
5
6
|
export interface CtaOnlyProps {
|
|
6
7
|
slice: {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { strapiCustomerStoryMock } from '../../test/strapiMocks/strapiCustomerStory';
|
|
2
3
|
import { Meta, StoryFn } from '@storybook/react';
|
|
3
4
|
import CustomerStories from '.';
|
|
4
5
|
|
|
5
6
|
export default {
|
|
6
|
-
title: '
|
|
7
|
+
title: 'slices/CustomerStories',
|
|
7
8
|
component: CustomerStories,
|
|
8
9
|
} as Meta<typeof CustomerStories>;
|
|
9
10
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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';
|
|
4
5
|
import { CustomerStoriesProps } from './CustomerStories';
|
|
5
6
|
import CustomerStories from '.';
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import IStrapiData from '../../models/strapi/IStrapiData';
|
|
3
|
+
import StrapiCustomerStory from '../../models/strapi/StrapiCustomerStory';
|
|
4
|
+
import strapiMediaUrl from '../../utils/strapiMediaUrl';
|
|
4
5
|
import {
|
|
5
6
|
Box,
|
|
6
7
|
Button,
|
|
@@ -14,7 +15,7 @@ import {
|
|
|
14
15
|
} from 'boemly';
|
|
15
16
|
import Image from 'next/image';
|
|
16
17
|
import Link from 'next/link';
|
|
17
|
-
import {
|
|
18
|
+
import { IntlContext } from '../../components/ContextProvider';
|
|
18
19
|
|
|
19
20
|
export interface CustomerStoriesProps {
|
|
20
21
|
slice: {
|
|
@@ -26,59 +27,63 @@ export interface CustomerStoriesProps {
|
|
|
26
27
|
export const CustomerStories = ({
|
|
27
28
|
slice,
|
|
28
29
|
customerStories,
|
|
29
|
-
}: CustomerStoriesProps): JSX.Element =>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
src={strapiMediaUrl(
|
|
51
|
-
customerStory.attributes.customerLogo.img,
|
|
52
|
-
'medium'
|
|
53
|
-
)}
|
|
54
|
-
alt={customerStory.attributes.customerLogo.alt}
|
|
55
|
-
fill
|
|
56
|
-
style={{
|
|
57
|
-
objectFit:
|
|
58
|
-
customerStory.attributes.customerLogo.objectFit,
|
|
59
|
-
}}
|
|
60
|
-
/>
|
|
61
|
-
</Box>
|
|
62
|
-
</Center>
|
|
63
|
-
<Box px="6" pt="12" pb="6">
|
|
64
|
-
<Text size="xsMonoUppercase" color="gray.500" mb="2">
|
|
65
|
-
{customerStory.attributes.customerIndustry}
|
|
66
|
-
</Text>
|
|
67
|
-
<Heading size="xl">{customerStory.attributes.title}</Heading>
|
|
68
|
-
<Button
|
|
69
|
-
as={Link}
|
|
70
|
-
href={`/customer-stories/${customerStory.attributes.slug}`}
|
|
71
|
-
variant="outline"
|
|
72
|
-
size="sm"
|
|
73
|
-
mt="12"
|
|
30
|
+
}: CustomerStoriesProps): JSX.Element => {
|
|
31
|
+
const { formatMessage } = useContext(IntlContext);
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<DefaultSectionContainer>
|
|
35
|
+
<Wrapper>
|
|
36
|
+
<SimpleGrid columns={[1, null, null, 2]} spacingX={56} spacingY={24}>
|
|
37
|
+
{slice.customer_stories.map(({ attributes }) => {
|
|
38
|
+
const customerStory: IStrapiData<StrapiCustomerStory> | undefined =
|
|
39
|
+
customerStories.find(
|
|
40
|
+
(cs) => cs.attributes.slug === attributes.slug
|
|
41
|
+
);
|
|
42
|
+
if (!customerStory) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return (
|
|
46
|
+
<Container padding="none" key={customerStory.id}>
|
|
47
|
+
<Center
|
|
48
|
+
height="24"
|
|
49
|
+
backgroundColor="primary.50"
|
|
50
|
+
borderTopRadius="xl"
|
|
74
51
|
>
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
52
|
+
<Box position="relative" height="12" width="12">
|
|
53
|
+
<Image
|
|
54
|
+
src={strapiMediaUrl(
|
|
55
|
+
customerStory.attributes.customerLogo.img,
|
|
56
|
+
'medium'
|
|
57
|
+
)}
|
|
58
|
+
alt={customerStory.attributes.customerLogo.alt}
|
|
59
|
+
fill
|
|
60
|
+
style={{
|
|
61
|
+
objectFit:
|
|
62
|
+
customerStory.attributes.customerLogo.objectFit,
|
|
63
|
+
}}
|
|
64
|
+
/>
|
|
65
|
+
</Box>
|
|
66
|
+
</Center>
|
|
67
|
+
<Box px="6" pt="12" pb="6">
|
|
68
|
+
<Text size="xsMonoUppercase" color="gray.500" mb="2">
|
|
69
|
+
{customerStory.attributes.customerIndustry}
|
|
70
|
+
</Text>
|
|
71
|
+
<Heading size="xl">{customerStory.attributes.title}</Heading>
|
|
72
|
+
<Button
|
|
73
|
+
as={Link}
|
|
74
|
+
href={`/customer-stories/${customerStory.attributes.slug}`}
|
|
75
|
+
variant="outline"
|
|
76
|
+
size="sm"
|
|
77
|
+
mt="12"
|
|
78
|
+
>
|
|
79
|
+
{formatMessage({ id: 'sections.customerStories.more' })}
|
|
80
|
+
</Button>
|
|
81
|
+
</Box>
|
|
82
|
+
</Container>
|
|
83
|
+
);
|
|
84
|
+
})}
|
|
85
|
+
</SimpleGrid>
|
|
86
|
+
</Wrapper>
|
|
87
|
+
</DefaultSectionContainer>
|
|
88
|
+
);
|
|
89
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import {
|
|
2
3
|
DefaultSectionContainer,
|
|
3
4
|
DefaultSectionHeader,
|
|
@@ -6,8 +7,8 @@ import {
|
|
|
6
7
|
Spacer,
|
|
7
8
|
Text,
|
|
8
9
|
} from 'boemly';
|
|
9
|
-
import StrapiLinkButton from '
|
|
10
|
-
import StrapiLink from '
|
|
10
|
+
import StrapiLinkButton from '../../components/StrapiLinkButton';
|
|
11
|
+
import StrapiLink from '../../models/strapi/StrapiLink';
|
|
11
12
|
|
|
12
13
|
export interface FactsProps {
|
|
13
14
|
slice: {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StoryFn, Meta } from '@storybook/react';
|
|
2
3
|
|
|
3
|
-
import { storybookStrapiAvatarMock } from '
|
|
4
|
+
import { storybookStrapiAvatarMock } from '../../test/storybookMocks/storybookStrapiMedia';
|
|
4
5
|
import FullWidthHighlightQuote from '.';
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
|
-
title: '
|
|
8
|
+
title: 'slices/FullWidthHighlightQuote',
|
|
8
9
|
component: FullWidthHighlightQuote,
|
|
9
10
|
} as Meta<typeof FullWidthHighlightQuote>;
|
|
10
11
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render, screen } from '../../test/testUtils';
|
|
3
|
+
import { strapiAvatarWithNameMock } from '../../test/strapiMocks/strapiAvatarWithName';
|
|
3
4
|
import FullWidthHighlightQuote from '.';
|
|
4
5
|
import { FullWidthHighlightQuoteProps } from './FullWidthHighlightQuote';
|
|
5
6
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import Image from 'next/image';
|
|
2
3
|
import {
|
|
3
4
|
DefaultSectionContainer,
|
|
@@ -6,8 +7,8 @@ import {
|
|
|
6
7
|
Text,
|
|
7
8
|
Box,
|
|
8
9
|
} from 'boemly';
|
|
9
|
-
import StrapiAvatarWithName from '
|
|
10
|
-
import strapiMediaUrl from '
|
|
10
|
+
import StrapiAvatarWithName from '../../models/strapi/StrapiAvatarWithName';
|
|
11
|
+
import strapiMediaUrl from '../../utils/strapiMediaUrl';
|
|
11
12
|
|
|
12
13
|
export interface FullWidthHighlightQuoteProps {
|
|
13
14
|
slice: {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StoryFn, Meta } from '@storybook/react';
|
|
2
3
|
|
|
3
|
-
import { storybookStrapiCoverMock } from '
|
|
4
|
+
import { storybookStrapiCoverMock } from '../../test/storybookMocks/storybookStrapiMedia';
|
|
4
5
|
import FullWidthImage from '.';
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
|
-
title: '
|
|
8
|
+
title: 'slices/FullWidthImage',
|
|
8
9
|
component: FullWidthImage,
|
|
9
10
|
} as Meta<typeof FullWidthImage>;
|
|
10
11
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render, screen } from '../../test/testUtils';
|
|
3
|
+
import { strapiMediaMock } from '../../test/strapiMocks/strapiMedia';
|
|
3
4
|
import FullWidthImage from '.';
|
|
4
5
|
import { FullWidthImageProps } from './FullWidthImage';
|
|
5
6
|
|