luna-one 3.1.593 → 3.1.595
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +15 -294
- package/dist/luna/components/2x2/2x2.stories.js +456 -0
- package/dist/luna/components/2x2/2x2Documentation.mdx +77 -0
- package/dist/luna/components/Accordion/Accordion.stories.js +100 -0
- package/dist/luna/components/Accordion/AccordionDocumentation.mdx +46 -0
- package/dist/luna/components/AdminCategoryData/AdminCategoryData.stories.js +43 -0
- package/dist/luna/components/AdminCategoryData/CategoryTranslationData.js +4 -4
- package/dist/luna/components/AdminProductData/AdminProductData.js +4 -4
- package/dist/luna/components/AdminProductData/AdminProductData.stories.js +44 -0
- package/dist/luna/components/BlockListItems/BlockListItem.stories.js +2381 -0
- package/dist/luna/components/BlockListItems/BlockListItemsDocumentation.mdx +339 -0
- package/dist/luna/components/BrowserSupportBanner/BrowserSupportBrowser.stories.js +19 -0
- package/dist/luna/components/CTAButtons/CTAButtons.stories.js +142 -0
- package/dist/luna/components/CTAButtons/CTAButtonsDocumentation.mdx +33 -0
- package/dist/luna/components/Carousel/Carousel.stories.js +257 -0
- package/dist/luna/components/Carousel/CarouselDocumentation.mdx +161 -0
- package/dist/luna/components/ComparisonTable/ComparisonTable.stories.js +608 -0
- package/dist/luna/components/ComparisonTable/ComparisonTableDocumentation.mdx +159 -0
- package/dist/luna/components/CtaWithHeader/CTAHeaderText.stories.js +192 -0
- package/dist/luna/components/CtaWithHeader/CTAHeaderTextDocumentation.mdx +45 -0
- package/dist/luna/components/DataPoint/DataPoint.stories.js +235 -0
- package/dist/luna/components/DataPoint/DataPointDocumentation.mdx +40 -0
- package/dist/luna/components/EventCard/EventCard.js +3 -3
- package/dist/luna/components/EventCard/EventCard.stories.js +56 -0
- package/dist/luna/components/EventCard/EventCardDocumentation.mdx +46 -0
- package/dist/luna/components/FilterHero/FilterHero.stories.js +129 -0
- package/dist/luna/components/FilterSection/FilterSection.stories.js +174 -0
- package/dist/luna/{other-organisms → components}/Flyout/Flyout.js +4 -5
- package/dist/luna/components/Flyout/Flyout.stories.js +216 -0
- package/dist/luna/components/Flyout/FlyoutDocumentation.mdx +60 -0
- package/dist/luna/components/Footer/Footer.stories.js +418 -0
- package/dist/luna/components/Footer/FooterDocumentation.mdx +133 -0
- package/dist/{application → luna}/components/FooterHandler/FooterHandler.js +1 -1
- package/dist/luna/components/FullBackgroundHero/FullBackgroundHero.stories.js +574 -0
- package/dist/luna/components/FullBackgroundHero/FullBackgroundHeroDocumentation.mdx +94 -0
- package/dist/luna/components/HTMLEmbed/HTMLEmbed.stories.js +136 -0
- package/dist/luna/components/HTMLEmbed/HTMLEmbedDocumentation.mdx +31 -0
- package/dist/luna/components/Header/Header.stories.js +75 -0
- package/dist/luna/components/Header/HeaderDocumentation.mdx +24 -0
- package/dist/luna/components/IconTextList/IconTextList.stories.js +100 -0
- package/dist/luna/components/IconTextList/IconTextListDocumentation.mdx +46 -0
- package/dist/luna/components/ImageGallery/ImageGallery.stories.js +194 -0
- package/dist/luna/components/ImageGallery/ImageGalleryDocumentation.mdx +90 -0
- package/dist/luna/components/InPageJumpNav/InPageJumpNav.stories.js +104 -0
- package/dist/luna/components/InPageJumpNav/InPageJumpNavDocumentation.mdx +23 -0
- package/dist/luna/components/JobPosting/JobPosting.stories.js +76 -0
- package/dist/luna/components/JobPosting/JobPostingDocumentation.mdx +69 -0
- package/dist/luna/{other-organisms → components}/LanguageSelector/LanguageSelector.js +3 -4
- package/dist/luna/components/LanguageSelector/LanguageSelector.stories.js +128 -0
- package/dist/luna/components/LanguageSelector/LanguageSelectorDocumentation.mdx +120 -0
- package/dist/luna/components/LinkList/LinkList.stories.js +170 -0
- package/dist/luna/components/LinkList/LinkListDocumentation.mdx +54 -0
- package/dist/luna/components/LoadingSpinner/LoadingSpinner.stories.js +53 -0
- package/dist/luna/components/Login/Login.js +3 -4
- package/dist/luna/components/Login/Login.stories.js +86 -0
- package/dist/luna/components/MarketoForm/MarketoForm.stories.js +65 -0
- package/dist/luna/components/MarketoForm/MarketoFormDocumentation.mdx +1 -0
- package/dist/luna/components/MegaMenu/MegaMenu.js +6 -7
- package/dist/luna/components/MegaMenu/menu-generators/FullSubMenu.js +1 -1
- package/dist/luna/components/MegaMenu/menu-generators/PartialSubMenu.js +4 -5
- package/dist/luna/components/MegaMenu/menu-generators/SubMenu.js +16 -14
- package/dist/luna/components/MegaMenu/menu-generators/TertiaryMenu.js +13 -11
- package/dist/luna/components/MegaMenu/menu-generators/UncollapsedLinks.js +4 -5
- package/dist/luna/components/MobileLogin/MobileLogin.js +3 -4
- package/dist/luna/components/MobileMegaMenu/MobileMegaMenu.js +6 -6
- package/dist/luna/components/MobileMegaMenu/MobileMegaMenuCategory.js +9 -9
- package/dist/luna/components/MobileMegaMenu/MobileMegaMenuPartialCategory.js +3 -3
- package/dist/luna/components/MobileMegaMenu/MobileMegaMenuSubCategory.js +8 -9
- package/dist/luna/components/MobileNav/MobileNav.js +3 -4
- package/dist/luna/{other-organisms → components}/NavBar/NavMiniMenu.js +3 -4
- package/dist/luna/components/NavBar/NavigationBar.stories.js +2297 -0
- package/dist/luna/components/NavBar/NavigationBarDocumentation.mdx +245 -0
- package/dist/luna/{other-organisms → components}/NavBar/UtilityNav.js +5 -5
- package/dist/{application → luna}/components/NavBarHandler/NavBarHandler.js +1 -1
- package/dist/luna/components/NavBarTop/NavBarTop.js +9 -10
- package/dist/luna/components/NavSearch/NavSearch.js +1 -1
- package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntries.stories.js +118 -0
- package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntriesDocumentation.mdx +89 -0
- package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntriesMethods.js +1 -1
- package/dist/luna/components/OverlayNotice/OverlayNotice.stories.js +96 -0
- package/dist/luna/components/OverlayNotice/OverlayNoticeDocumentation.mdx +45 -0
- package/dist/luna/components/ProductSummary/ProductSummary.stories.js +163 -0
- package/dist/luna/components/ProductsPackage/ProductsPackage.stories.js +384 -0
- package/dist/luna/components/ProseLayout/ProseLayout.stories.js +187 -0
- package/dist/luna/components/ProseLayout/ProseLayoutDocumentation.mdx +93 -0
- package/dist/luna/components/PullQuote/PullQuote.stories.js +556 -0
- package/dist/luna/components/PullQuote/PullQuoteDocumentation.mdx +60 -0
- package/dist/luna/components/RegionCard/RegionCard.js +4 -4
- package/dist/luna/components/ResourceGrid/ResourceGrid.stories.js +765 -0
- package/dist/luna/components/ResourceGrid/ResourceGridDocumentation.mdx +102 -0
- package/dist/luna/components/ScrollInPlace/ScrollInPlace.stories.js +171 -0
- package/dist/luna/components/ScrollInPlace/ScrollInPlaceDocumentation.mdx +123 -0
- package/dist/luna/components/SketchUpPricingCard/SketchUpPricingCard.stories.js +91 -0
- package/dist/luna/components/SlideOutFeat/SlideOutFeat.stories.js +32 -0
- package/dist/luna/components/StoreFrontCard/StoreFrontCard.js +1 -2
- package/dist/luna/components/StoreFrontCard/StoreFrontCard.stories.js +46 -0
- package/dist/luna/{other-organisms → components}/SubNav/SiblingsMenu.js +3 -3
- package/dist/luna/{other-organisms → components}/SubNav/SubNav.js +6 -7
- package/dist/luna/components/SuperHero/SuperHero.stories.js +806 -0
- package/dist/luna/components/SuperHero/SuperHeroDocumentation.mdx +57 -0
- package/dist/luna/components/SupportCard/SupportCard.stories.js +76 -0
- package/dist/luna/components/Tabs/Tabs.js +1 -2
- package/dist/luna/components/Tabs/Tabs.stories.js +585 -0
- package/dist/luna/components/Tabs/TabsDocumentation.mdx +94 -0
- package/dist/luna/components/TimeBasedList/TimeBasedList.stories.js +297 -0
- package/dist/luna/components/TimeBasedList/TimeBasedListDocumentation.mdx +123 -0
- package/dist/luna/components/TrainerCard/TrainerCard.stories.js +39 -0
- package/dist/luna/components/TrialForm/TrialFormStart/TrialFormStart.stories.js +69 -0
- package/dist/luna/components/VariableContentCard/VariableContentCard.js +4 -4
- package/dist/luna/components/Video/Video.stories.js +135 -0
- package/dist/luna/components/Video/VideoDocumentation.mdx +56 -0
- package/dist/luna/components/WaffleMenu/WaffleMenu.js +1 -1
- package/package.json +3 -3
- package/dist/application/components/HelmetHandler/HelmetHandler.js +0 -40
- package/dist/application/components/Loading/Loading.js +0 -22
- package/dist/application/components/Loading/Loading.scss +0 -10
- package/dist/application/components/Stack/Stack.js +0 -413
- package/dist/application/hooks/tests/useErrorPageData.test.js +0 -74
- package/dist/application/hooks/tests/useFetch.test.js +0 -70
- package/dist/application/hooks/tests/useFooterData.test.js +0 -106
- package/dist/application/hooks/tests/useFooterResponse.test.js +0 -70
- package/dist/application/hooks/tests/useFooterURL.test.js +0 -46
- package/dist/application/hooks/tests/useInnerPageNav.test.js +0 -36
- package/dist/application/hooks/tests/useLanguage.test.js +0 -57
- package/dist/application/hooks/tests/useLanguages.test.js +0 -133
- package/dist/application/hooks/tests/useMetadata.test.js +0 -33
- package/dist/application/hooks/tests/useNavResponse.test.js +0 -136
- package/dist/application/hooks/tests/useNavURL.test.js +0 -49
- package/dist/application/hooks/tests/usePageFetch.test.js +0 -203
- package/dist/application/hooks/tests/useRegions.test.js +0 -234
- package/dist/application/hooks/tests/useRoutes.test.js +0 -116
- package/dist/application/hooks/tests/useSiteData.test.js +0 -86
- package/dist/application/hooks/useErrorPageData.js +0 -59
- package/dist/application/hooks/useFetch.js +0 -67
- package/dist/application/hooks/useFooterData.js +0 -45
- package/dist/application/hooks/useFooterResponse.js +0 -56
- package/dist/application/hooks/useFooterURL.js +0 -32
- package/dist/application/hooks/useLanguage.js +0 -44
- package/dist/application/hooks/useLanguages.js +0 -66
- package/dist/application/hooks/useMetadata.js +0 -23
- package/dist/application/hooks/useNavData.js +0 -45
- package/dist/application/hooks/useNavResponse.js +0 -59
- package/dist/application/hooks/useNavURL.js +0 -41
- package/dist/application/hooks/usePageFetch.js +0 -109
- package/dist/application/hooks/useRegions.js +0 -149
- package/dist/application/hooks/useRoutes.js +0 -59
- package/dist/application/hooks/useScrollTo.js +0 -60
- package/dist/application/hooks/useSiteData.js +0 -58
- package/dist/application/methods/__mocks__/formatFooterDataMethods.js +0 -54
- package/dist/application/methods/formatContentSections.js +0 -130
- package/dist/application/methods/formatFooterDataMethods.js +0 -82
- package/dist/application/methods/formatMenuSiteData.js +0 -45
- package/dist/application/methods/formatMenus.js +0 -120
- package/dist/application/methods/locationRedirect.js +0 -16
- package/dist/application/methods/organismFormat/__mocks__/formatAnchors.js +0 -11
- package/dist/application/methods/organismFormat/__mocks__/formatCTAs.js +0 -10
- package/dist/application/methods/organismFormat/__mocks__/formatTheme.js +0 -15
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatFive.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatFour.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatOne.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatSeven.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatThree.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatTwoA.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatTwoB.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatTwoBIcons.js +0 -14
- package/dist/application/methods/organismFormat/feats/__mocks__/formatPullQuote.js +0 -12
- package/dist/application/methods/organismFormat/feats/formatFeatFive.js +0 -39
- package/dist/application/methods/organismFormat/feats/formatFeatFour.js +0 -36
- package/dist/application/methods/organismFormat/feats/formatFeatOne.js +0 -52
- package/dist/application/methods/organismFormat/feats/formatFeatSeven.js +0 -193
- package/dist/application/methods/organismFormat/feats/formatFeatThree.js +0 -41
- package/dist/application/methods/organismFormat/feats/formatFeatTwoA.js +0 -37
- package/dist/application/methods/organismFormat/feats/formatFeatTwoAFolds.js +0 -27
- package/dist/application/methods/organismFormat/feats/formatFeatTwoB.js +0 -40
- package/dist/application/methods/organismFormat/feats/formatFeatTwoBIcons.js +0 -20
- package/dist/application/methods/organismFormat/feats/formatPullQuote.js +0 -49
- package/dist/application/methods/organismFormat/feats/tests/formatFeatFive.test.js +0 -173
- package/dist/application/methods/organismFormat/feats/tests/formatFeatFour.test.js +0 -140
- package/dist/application/methods/organismFormat/feats/tests/formatFeatOne.test.js +0 -204
- package/dist/application/methods/organismFormat/feats/tests/formatFeatSeven.test.js +0 -680
- package/dist/application/methods/organismFormat/feats/tests/formatFeatThree.test.js +0 -142
- package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoA.test.js +0 -342
- package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoAFolds.test.js +0 -99
- package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoB.test.js +0 -293
- package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoBIcons.test.js +0 -78
- package/dist/application/methods/organismFormat/feats/tests/formatPullQuote.test.js +0 -178
- package/dist/application/methods/organismFormat/formatAnchors.js +0 -16
- package/dist/application/methods/organismFormat/formatCTAs.js +0 -34
- package/dist/application/methods/organismFormat/formatTheme.js +0 -29
- package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroFour.js +0 -12
- package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroOne.js +0 -12
- package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroSix.js +0 -12
- package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroThree.js +0 -12
- package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroTwo.js +0 -12
- package/dist/application/methods/organismFormat/heroes/formatHeroFour.js +0 -39
- package/dist/application/methods/organismFormat/heroes/formatHeroOne.js +0 -56
- package/dist/application/methods/organismFormat/heroes/formatHeroSeven.js +0 -56
- package/dist/application/methods/organismFormat/heroes/formatHeroSix.js +0 -51
- package/dist/application/methods/organismFormat/heroes/formatHeroThree.js +0 -58
- package/dist/application/methods/organismFormat/heroes/formatHeroTwo.js +0 -42
- package/dist/application/methods/organismFormat/heroes/tests/formatHeroFour.test.js +0 -245
- package/dist/application/methods/organismFormat/heroes/tests/formatHeroOne.test.js +0 -165
- package/dist/application/methods/organismFormat/heroes/tests/formatHeroSeven.test.js +0 -198
- package/dist/application/methods/organismFormat/heroes/tests/formatHeroSix.test.js +0 -196
- package/dist/application/methods/organismFormat/heroes/tests/formatHeroThree.test.js +0 -185
- package/dist/application/methods/organismFormat/heroes/tests/formatHeroTwo.test.js +0 -205
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatFive.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatFour.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatFourCards.js +0 -10
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatOne.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatOneCards.js +0 -17
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatOneV2Cards.js +0 -27
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSeven.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSevenCards.js +0 -10
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSix.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSixCards.js +0 -10
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatThree.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatThreeCards.js +0 -10
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatThreeV2Cards.js +0 -32
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTopSection.js +0 -23
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTwo.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTwoCards.js +0 -10
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTwoV2Cards.js +0 -34
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatType.js +0 -10
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatV2.js +0 -33
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFive.js +0 -53
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFiveItemsV2.js +0 -32
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFiveV2.js +0 -39
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFour.js +0 -35
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFourCards.js +0 -24
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFourDumplingsV2.js +0 -36
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFourV2.js +0 -38
- package/dist/application/methods/organismFormat/listFeats/formatListFeatOne.js +0 -46
- package/dist/application/methods/organismFormat/listFeats/formatListFeatOneCards.js +0 -36
- package/dist/application/methods/organismFormat/listFeats/formatListFeatOneV2.js +0 -41
- package/dist/application/methods/organismFormat/listFeats/formatListFeatOneV2Cards.js +0 -64
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSeven.js +0 -37
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSevenCards.js +0 -46
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSevenCardsV2.js +0 -48
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSevenV2.js +0 -39
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSix.js +0 -36
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSixCards.js +0 -15
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSixCardsV2.js +0 -16
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSixV2.js +0 -38
- package/dist/application/methods/organismFormat/listFeats/formatListFeatThree.js +0 -40
- package/dist/application/methods/organismFormat/listFeats/formatListFeatThreeCards.js +0 -48
- package/dist/application/methods/organismFormat/listFeats/formatListFeatThreeV2.js +0 -40
- package/dist/application/methods/organismFormat/listFeats/formatListFeatThreeV2Cards.js +0 -39
- package/dist/application/methods/organismFormat/listFeats/formatListFeatTopSection.js +0 -33
- package/dist/application/methods/organismFormat/listFeats/formatListFeatTwo.js +0 -36
- package/dist/application/methods/organismFormat/listFeats/formatListFeatTwoCards.js +0 -34
- package/dist/application/methods/organismFormat/listFeats/formatListFeatTwoV2.js +0 -40
- package/dist/application/methods/organismFormat/listFeats/formatListFeatTwoV2Cards.js +0 -46
- package/dist/application/methods/organismFormat/listFeats/formatListFeatType.js +0 -27
- package/dist/application/methods/organismFormat/listFeats/formatListFeatV2.js +0 -21
- package/dist/application/methods/organismFormat/listFeats/tests/formatFeatSevenV2.test.js +0 -463
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFive.test.js +0 -89
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFiveV2.test.js +0 -238
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFour.test.js +0 -75
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFourCards.test.js +0 -65
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFourV2.test.js +0 -358
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOne.test.js +0 -98
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOneCards.test.js +0 -67
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOneV2.test.js +0 -191
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOneV2Cards.test.js +0 -87
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSeven.test.js +0 -120
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSevenCards.test.js +0 -111
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSix.test.js +0 -67
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSixCards.test.js +0 -25
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSixV2.test.js +0 -242
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThree.test.js +0 -96
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeCards.test.js +0 -94
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeV2.test.js +0 -242
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeV2Cards.test.js +0 -96
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTopSection.test.js +0 -63
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwo.test.js +0 -86
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwoCards.test.js +0 -81
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwoV2.test.js +0 -299
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwoV2Cards.test.js +0 -159
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatV2.test.js +0 -69
- package/dist/application/methods/organismFormat/listFeats/tests/mockData/listFeatOneV2MockData.js +0 -125
- package/dist/application/methods/organismFormat/tests/formatAnchors.test.js +0 -20
- package/dist/application/methods/organismFormat/tests/formatCTAs.test.js +0 -109
- package/dist/application/methods/organismFormat/tests/formatTheme.test.js +0 -54
- package/dist/application/methods/tests/formatContentSections.test.js +0 -237
- package/dist/application/methods/tests/formatFooterDataMethods.test.js +0 -138
- package/dist/luna/components/MiniFeatDropdown/MiniFeatDropdown.js +0 -78
- package/dist/luna/components/MiniFeatDropdown/MiniFeatDropdown.scss +0 -107
- package/dist/luna/featurettes/CustomFeat/CustomFeat.js +0 -157
- package/dist/luna/featurettes/CustomFeat/CustomFeat.scss +0 -18
- package/dist/luna/featurettes/Feat1/Feat1.js +0 -122
- package/dist/luna/featurettes/Feat1/Feat1.scss +0 -110
- package/dist/luna/featurettes/Feat1/feat1Methods.js +0 -18
- package/dist/luna/featurettes/Feat1/feat1Methods.test.js +0 -21
- package/dist/luna/featurettes/Feat2A/Feat2A.js +0 -101
- package/dist/luna/featurettes/Feat2A/Feat2A.scss +0 -132
- package/dist/luna/featurettes/Feat2B/Feat2B.js +0 -131
- package/dist/luna/featurettes/Feat2B/Feat2B.scss +0 -231
- package/dist/luna/featurettes/Feat2B/Feat2BMethods.js +0 -75
- package/dist/luna/featurettes/Feat2B/Feat2BMethods.test.js +0 -38
- package/dist/luna/featurettes/Feat3/Feat3.js +0 -89
- package/dist/luna/featurettes/Feat3/Feat3.scss +0 -49
- package/dist/luna/featurettes/Feat4/Feat4.js +0 -95
- package/dist/luna/featurettes/Feat4/Feat4.scss +0 -86
- package/dist/luna/featurettes/Feat5/Feat5.js +0 -194
- package/dist/luna/featurettes/Feat5/Feat5.scss +0 -235
- package/dist/luna/featurettes/Feat5/Feat5Methods.js +0 -19
- package/dist/luna/featurettes/Feat5/Feat5Methods.test.js +0 -23
- package/dist/luna/featurettes/Feat7/Feat7.js +0 -79
- package/dist/luna/featurettes/Feat7/Feat7.scss +0 -49
- package/dist/luna/featurettes/Feat7/Feat7Methods.js +0 -41
- package/dist/luna/featurettes/Feat8/Feat8.js +0 -75
- package/dist/luna/featurettes/Feat8/Feat8.scss +0 -103
- package/dist/luna/featurettes/Feat8/feat8Methods.js +0 -18
- package/dist/luna/featurettes/Feat8/feat8Methods.test.js +0 -21
- package/dist/luna/heroes/Hero1/Hero1.js +0 -111
- package/dist/luna/heroes/Hero1/Hero1.scss +0 -223
- package/dist/luna/heroes/Hero1/Hero1Methods.js +0 -84
- package/dist/luna/heroes/Hero1/useWindowSize.js +0 -47
- package/dist/luna/heroes/Hero2/Hero2.js +0 -130
- package/dist/luna/heroes/Hero2/Hero2.scss +0 -165
- package/dist/luna/heroes/Hero3/Hero3.js +0 -246
- package/dist/luna/heroes/Hero3/Hero3.scss +0 -250
- package/dist/luna/heroes/Hero3/Hero3Methods.js +0 -37
- package/dist/luna/heroes/Hero4/Hero4.js +0 -175
- package/dist/luna/heroes/Hero4/Hero4.scss +0 -112
- package/dist/luna/heroes/Hero4/hero4Methods.js +0 -18
- package/dist/luna/heroes/Hero6/Hero6.js +0 -179
- package/dist/luna/heroes/Hero6/Hero6.scss +0 -127
- package/dist/luna/heroes/Hero7/Hero7.js +0 -118
- package/dist/luna/heroes/Hero7/Hero7.scss +0 -193
- package/dist/luna/heroes/Hero7/Hero7Methods.js +0 -39
- package/dist/luna/heroes/Hero7/Hero7Methods.test.js +0 -109
- package/dist/luna/heroes/Hero7/useWindowWidth.js +0 -40
- package/dist/luna/list-feats/ListFeat/ListFeat.js +0 -149
- package/dist/luna/list-feats/ListFeat/ListFeat.scss +0 -112
- package/dist/luna/list-feats/ListFeat1/ListFeat1.js +0 -91
- package/dist/luna/list-feats/ListFeat1/ListFeat1.scss +0 -94
- package/dist/luna/list-feats/ListFeat1/listFeat1Methods.js +0 -14
- package/dist/luna/list-feats/ListFeat1/listFeat1Methods.test.js +0 -17
- package/dist/luna/list-feats/ListFeat2/ListFeat2.js +0 -30
- package/dist/luna/list-feats/ListFeat2/ListFeat2.scss +0 -20
- package/dist/luna/list-feats/ListFeat2/ListFeat2Methods.js +0 -33
- package/dist/luna/list-feats/ListFeat2/ListFeat2Methods.test.js +0 -11
- package/dist/luna/list-feats/ListFeat4/ListFeat4.js +0 -34
- package/dist/luna/list-feats/ListFeat4/ListFeat4.scss +0 -32
- package/dist/luna/list-feats/ListFeat5/ListFeat5.js +0 -28
- package/dist/luna/list-feats/ListFeat5/ListFeat5.scss +0 -27
- package/dist/luna/list-feats/ListFeat5/ListFeat5Methods.js +0 -24
- package/dist/luna/list-feats/ListFeat6/ListFeat6.js +0 -59
- package/dist/luna/list-feats/ListFeat6/ListFeat6.scss +0 -34
- package/dist/luna/list-feats/ListFeat7/ListFeat7.js +0 -51
- package/dist/luna/list-feats/ListFeat7/ListFeat7.scss +0 -14
- package/dist/luna/list-feats/ListFeat7/ListFeat7Methods.js +0 -49
- package/dist/luna/list-feats/ListFeatCustom/ListFeatCustom.js +0 -25
- package/dist/luna/list-feats/ListFeatCustom/ListFeatCustom.scss +0 -8
- package/dist/luna/list-feats/methods/listFeatMethods.js +0 -119
- /package/dist/luna/{featurettes → components}/Accordion/Accordion.js +0 -0
- /package/dist/luna/{featurettes → components}/Accordion/Accordion.scss +0 -0
- /package/dist/luna/{featurettes → components}/Accordion/AccordionItem.js +0 -0
- /package/dist/luna/{other-organisms → components}/Carousel/Carousel.js +0 -0
- /package/dist/luna/{other-organisms → components}/Carousel/Carousel.scss +0 -0
- /package/dist/luna/{heroes → components}/FilterHero/FilterHero.js +0 -0
- /package/dist/luna/{heroes → components}/FilterHero/FilterHero.scss +0 -0
- /package/dist/luna/{heroes → components}/FilterHero/FilterHeroMethods.js +0 -0
- /package/dist/luna/{other-organisms → components}/Flyout/Flyout.scss +0 -0
- /package/dist/luna/{other-organisms → components}/Footer/ExportedFooter.js +0 -0
- /package/dist/luna/{other-organisms → components}/Footer/Footer.js +0 -0
- /package/dist/luna/{other-organisms → components}/Footer/Footer.scss +0 -0
- /package/dist/luna/{other-organisms → components}/Footer/GlobalFooter.js +0 -0
- /package/dist/luna/{other-organisms → components}/Footer/SectorFooter.js +0 -0
- /package/dist/luna/{heroes → components}/FullBackgroundHero/FullBackgroundHero.js +0 -0
- /package/dist/luna/{heroes → components}/FullBackgroundHero/FullBackgroundHero.scss +0 -0
- /package/dist/luna/{heroes → components}/FullBackgroundHero/FullBackgroundHeroMethods.js +0 -0
- /package/dist/luna/{featurettes → components}/IconTextList/IconTextList.js +0 -0
- /package/dist/luna/{featurettes → components}/IconTextList/IconTextList.scss +0 -0
- /package/dist/luna/{other-organisms → components}/LanguageSelector/LanguageSelector.scss +0 -0
- /package/dist/luna/{other-organisms → components}/MarketoForm/MarketoForm.js +0 -0
- /package/dist/luna/{other-organisms → components}/MarketoForm/MarketoForm.scss +0 -0
- /package/dist/luna/{other-organisms → components}/NavBar/NavBar.js +0 -0
- /package/dist/luna/{other-organisms → components}/NavBar/NavBar.scss +0 -0
- /package/dist/luna/{other-organisms → components}/NavBar/NavOption.js +0 -0
- /package/dist/luna/{other-organisms → components}/NavBar/useNavPosition.js +0 -0
- /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackage.js +0 -0
- /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackage.scss +0 -0
- /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackageMethods.js +0 -0
- /package/dist/luna/{featurettes → components}/PullQuote/PullQuote.js +0 -0
- /package/dist/luna/{featurettes → components}/PullQuote/PullQuote.scss +0 -0
- /package/dist/luna/{featurettes → components}/PullQuote/ico-quote-white.svg +0 -0
- /package/dist/luna/{featurettes → components}/PullQuote/ico-quote.svg +0 -0
- /package/dist/luna/{other-organisms → components}/SubNav/SubNav.scss +0 -0
- /package/dist/luna/{heroes → components}/SuperHero/SuperHero.js +0 -0
- /package/dist/luna/{heroes → components}/SuperHero/SuperHero.scss +0 -0
- /package/dist/luna/{heroes → components}/SuperHero/SuperHeroMethods.js +0 -0
- /package/dist/luna/{heroes → components}/SuperHero/useCompareContainerHeights.js +0 -0
- /package/dist/{application/assets → luna}/images/carat-down.svg +0 -0
- /package/dist/{application/assets → luna}/images/carat-up.svg +0 -0
- /package/dist/{application/assets → luna}/images/close-blue.svg +0 -0
- /package/dist/{application/assets → luna}/images/close.svg +0 -0
- /package/dist/{application/assets → luna}/images/ellipses.svg +0 -0
- /package/dist/{application/assets → luna}/images/facebook.svg +0 -0
- /package/dist/{application/assets → luna}/images/favicon.ico +0 -0
- /package/dist/{application/assets → luna}/images/fpoBox.png +0 -0
- /package/dist/{application/assets → luna}/images/fpoSquare.png +0 -0
- /package/dist/{application/assets → luna}/images/instagram.svg +0 -0
- /package/dist/{application/assets → luna}/images/linkedin.svg +0 -0
- /package/dist/{application/assets → luna}/images/loading-mini.gif +0 -0
- /package/dist/{application/assets → luna}/images/trimble_logo.png +0 -0
- /package/dist/{application/assets → luna}/images/twitter.svg +0 -0
- /package/dist/{application/assets → luna}/images/youtube.svg +0 -0
- /package/dist/{application → luna/utils}/hooks/useInnerPageNav.js +0 -0
@@ -1,165 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatHeroOne = _interopRequireDefault(require("../formatHeroOne"));
|
5
|
-
var _languageCode = "en";
|
6
|
-
var _languageEnabled = true;
|
7
|
-
var _labels = null;
|
8
|
-
var _fpoBox = null;
|
9
|
-
var _heroOneData = {
|
10
|
-
type: "pbo_hero_1",
|
11
|
-
parent_field_name: {
|
12
|
-
field_type: "string",
|
13
|
-
values: [{
|
14
|
-
value: "field_main_content"
|
15
|
-
}]
|
16
|
-
},
|
17
|
-
field_animation_toggle: {
|
18
|
-
field_type: "boolean",
|
19
|
-
values: [false]
|
20
|
-
},
|
21
|
-
field_hero_image_16_9: null,
|
22
|
-
field_hero_image_1_1: null,
|
23
|
-
field_hero_image_4_3: null,
|
24
|
-
field_m_header: null,
|
25
|
-
field_m_subheader: {
|
26
|
-
field_type: "string",
|
27
|
-
values: [{
|
28
|
-
value: "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commuodo consequat"
|
29
|
-
}]
|
30
|
-
},
|
31
|
-
field_section_alignment: {
|
32
|
-
field_type: "taxonomy_term",
|
33
|
-
values: [{
|
34
|
-
id: "26",
|
35
|
-
entity_type: "taxonomy_term",
|
36
|
-
type: "organism_alignment",
|
37
|
-
name: "Left to Right",
|
38
|
-
description: "ltr",
|
39
|
-
children: [],
|
40
|
-
published: true,
|
41
|
-
fields: []
|
42
|
-
}]
|
43
|
-
},
|
44
|
-
field_section_theme: {
|
45
|
-
field_type: "taxonomy_term",
|
46
|
-
values: [{
|
47
|
-
id: "1",
|
48
|
-
entity_type: "taxonomy_term",
|
49
|
-
type: "organism_themes",
|
50
|
-
name: "Theme 1",
|
51
|
-
description: "theme-1",
|
52
|
-
children: [],
|
53
|
-
published: true,
|
54
|
-
fields: ["field_theme_background_color", "field_theme_color", "field_theme_cta_one", "field_theme_cta_two"],
|
55
|
-
field_theme_background_color: {
|
56
|
-
field_type: "string",
|
57
|
-
values: [{
|
58
|
-
value: "#f2f2f2"
|
59
|
-
}]
|
60
|
-
},
|
61
|
-
field_theme_color: {
|
62
|
-
field_type: "string",
|
63
|
-
values: [{
|
64
|
-
value: "#000000"
|
65
|
-
}]
|
66
|
-
},
|
67
|
-
field_theme_cta_one: {
|
68
|
-
field_type: "string",
|
69
|
-
values: [{
|
70
|
-
value: "primary--5"
|
71
|
-
}]
|
72
|
-
},
|
73
|
-
field_theme_cta_two: {
|
74
|
-
field_type: "string",
|
75
|
-
values: [{
|
76
|
-
value: "secondary--5"
|
77
|
-
}]
|
78
|
-
}
|
79
|
-
}]
|
80
|
-
},
|
81
|
-
field_s_h1_cta: {
|
82
|
-
field_type: "paragraph",
|
83
|
-
values: [{
|
84
|
-
id: "1546",
|
85
|
-
entity_type: "paragraph",
|
86
|
-
type: "cta_section_1",
|
87
|
-
published: true,
|
88
|
-
fields: ["parent_field_name", "field_cta_primary_1", "field_cta_secondary_1"],
|
89
|
-
parent_field_name: {
|
90
|
-
field_type: "string",
|
91
|
-
values: [{
|
92
|
-
value: "field_s_h1_cta"
|
93
|
-
}]
|
94
|
-
},
|
95
|
-
field_cta_primary_1: {
|
96
|
-
field_type: "links",
|
97
|
-
values: [{
|
98
|
-
uri: "internal:/",
|
99
|
-
title: "Click Me",
|
100
|
-
options: [],
|
101
|
-
url: "/en"
|
102
|
-
}]
|
103
|
-
},
|
104
|
-
field_cta_secondary_1: null
|
105
|
-
}]
|
106
|
-
}
|
107
|
-
};
|
108
|
-
var expected = {
|
109
|
-
content: {
|
110
|
-
header: undefined,
|
111
|
-
text: "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commuodo consequat",
|
112
|
-
images: {
|
113
|
-
desktop: null,
|
114
|
-
tablet: null,
|
115
|
-
mobile: null
|
116
|
-
},
|
117
|
-
ctas: ["ctaOne", "ctaTwo"],
|
118
|
-
theme: {
|
119
|
-
backgroundColor: "#f2f2f2",
|
120
|
-
color: "#000000",
|
121
|
-
ctaOne: "primary--5",
|
122
|
-
ctaTwo: "secondary--5",
|
123
|
-
theme: "theme-1"
|
124
|
-
}
|
125
|
-
},
|
126
|
-
type: "pbo_hero_1"
|
127
|
-
};
|
128
|
-
jest.mock("../../formatCTAs");
|
129
|
-
describe("formatHeroOne", function () {
|
130
|
-
beforeEach(function () {
|
131
|
-
jest.clearAllMocks();
|
132
|
-
});
|
133
|
-
test("it should return formatted data", function () {
|
134
|
-
var _formatLinks = jest.fn().mockReturnValue(["link one", "link two"]);
|
135
|
-
jest.mock("../../formatCTAs");
|
136
|
-
var response = (0, _formatHeroOne["default"])(_heroOneData, _languageCode, _languageEnabled, _labels, _fpoBox, _formatLinks);
|
137
|
-
expect(response).toStrictEqual(expected);
|
138
|
-
});
|
139
|
-
test("it should handle junk data without crashing", function () {
|
140
|
-
var _formatLinks = jest.fn().mockReturnValue(["link one", "link two"]);
|
141
|
-
jest.mock("../../formatCTAs");
|
142
|
-
var response = (0, _formatHeroOne["default"])({}, _languageCode, _languageEnabled, _labels, _fpoBox, _formatLinks);
|
143
|
-
var expectedJunk = {
|
144
|
-
content: {
|
145
|
-
header: undefined,
|
146
|
-
text: undefined,
|
147
|
-
images: {
|
148
|
-
desktop: null,
|
149
|
-
tablet: null,
|
150
|
-
mobile: null
|
151
|
-
},
|
152
|
-
ctas: ["ctaOne", "ctaTwo"],
|
153
|
-
theme: {
|
154
|
-
backgroundColor: undefined,
|
155
|
-
color: undefined,
|
156
|
-
ctaOne: undefined,
|
157
|
-
ctaTwo: undefined,
|
158
|
-
theme: undefined
|
159
|
-
}
|
160
|
-
},
|
161
|
-
type: undefined
|
162
|
-
};
|
163
|
-
expect(response).toStrictEqual(expectedJunk);
|
164
|
-
});
|
165
|
-
});
|
@@ -1,198 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatHeroSeven = _interopRequireDefault(require("../formatHeroSeven"));
|
5
|
-
var _languageCode = "en";
|
6
|
-
var _languageEnabled = true;
|
7
|
-
var _labels = null;
|
8
|
-
var _fpoBox = null;
|
9
|
-
var _heroSevenData = {
|
10
|
-
id: "2361",
|
11
|
-
entity_type: "paragraph",
|
12
|
-
type: "pbo_hero_7",
|
13
|
-
published: true,
|
14
|
-
fields: ["parent_field_name", "field_animation_toggle", "field_hero_image_16_9", "field_m_header", "field_m_subheader", "field_s_h7_cta", "field_section_alignment", "field_section_theme"],
|
15
|
-
parent_field_name: {
|
16
|
-
field_type: "string",
|
17
|
-
values: [{
|
18
|
-
value: "field_main_content"
|
19
|
-
}]
|
20
|
-
},
|
21
|
-
field_animation_toggle: {
|
22
|
-
field_type: "boolean",
|
23
|
-
values: [false]
|
24
|
-
},
|
25
|
-
field_hero_image_16_9: {
|
26
|
-
field_type: "media",
|
27
|
-
values: [{
|
28
|
-
id: "56",
|
29
|
-
entity_type: "media",
|
30
|
-
type: "image",
|
31
|
-
published: true,
|
32
|
-
fields: ["field_media_image"],
|
33
|
-
field_media_image: {
|
34
|
-
field_type: "image",
|
35
|
-
values: [{
|
36
|
-
target_id: "306",
|
37
|
-
alt: "for testing hero 7",
|
38
|
-
title: "",
|
39
|
-
width: "311",
|
40
|
-
height: "162",
|
41
|
-
source: "/2021-01/download.jpg"
|
42
|
-
}]
|
43
|
-
}
|
44
|
-
}]
|
45
|
-
},
|
46
|
-
field_m_header: {
|
47
|
-
field_type: "string",
|
48
|
-
values: [{
|
49
|
-
value: "Hero 7 Header - Theme 2"
|
50
|
-
}]
|
51
|
-
},
|
52
|
-
field_m_subheader: {
|
53
|
-
field_type: "string",
|
54
|
-
values: [{
|
55
|
-
value: "At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"
|
56
|
-
}]
|
57
|
-
},
|
58
|
-
field_s_h7_cta: {
|
59
|
-
field_type: "paragraph",
|
60
|
-
values: [{
|
61
|
-
id: "2356",
|
62
|
-
entity_type: "paragraph",
|
63
|
-
type: "cta_section_1",
|
64
|
-
published: true,
|
65
|
-
fields: ["parent_field_name", "field_cta_primary_1", "field_cta_secondary_1"],
|
66
|
-
parent_field_name: {
|
67
|
-
field_type: "string",
|
68
|
-
values: [{
|
69
|
-
value: "field_s_h7_cta"
|
70
|
-
}]
|
71
|
-
},
|
72
|
-
field_cta_primary_1: {
|
73
|
-
field_type: "links",
|
74
|
-
values: [{
|
75
|
-
uri: "internal:#",
|
76
|
-
title: "Link One",
|
77
|
-
options: [],
|
78
|
-
url: "internal:#"
|
79
|
-
}]
|
80
|
-
},
|
81
|
-
field_cta_secondary_1: {
|
82
|
-
field_type: "links",
|
83
|
-
values: [{
|
84
|
-
uri: "internal:#",
|
85
|
-
title: "Link Two",
|
86
|
-
options: [],
|
87
|
-
url: "internal:#"
|
88
|
-
}]
|
89
|
-
}
|
90
|
-
}]
|
91
|
-
},
|
92
|
-
field_section_alignment: {
|
93
|
-
field_type: "taxonomy_term",
|
94
|
-
values: [{
|
95
|
-
id: "26",
|
96
|
-
entity_type: "taxonomy_term",
|
97
|
-
type: "organism_alignment",
|
98
|
-
name: "Left to Right",
|
99
|
-
description: "ltr",
|
100
|
-
children: [],
|
101
|
-
published: true,
|
102
|
-
fields: []
|
103
|
-
}]
|
104
|
-
},
|
105
|
-
field_section_theme: {
|
106
|
-
field_type: "taxonomy_term",
|
107
|
-
values: [{
|
108
|
-
id: "6",
|
109
|
-
entity_type: "taxonomy_term",
|
110
|
-
type: "organism_themes",
|
111
|
-
name: "Theme 2",
|
112
|
-
description: "theme-2",
|
113
|
-
children: [],
|
114
|
-
published: true,
|
115
|
-
fields: ["field_theme_background_color", "field_theme_color", "field_theme_cta_one", "field_theme_cta_two"],
|
116
|
-
field_theme_background_color: {
|
117
|
-
field_type: "string",
|
118
|
-
values: [{
|
119
|
-
value: "#f3f3f7"
|
120
|
-
}]
|
121
|
-
},
|
122
|
-
field_theme_color: {
|
123
|
-
field_type: "string",
|
124
|
-
values: [{
|
125
|
-
value: "#363545"
|
126
|
-
}]
|
127
|
-
},
|
128
|
-
field_theme_cta_one: {
|
129
|
-
field_type: "string",
|
130
|
-
values: [{
|
131
|
-
value: "primary--1"
|
132
|
-
}]
|
133
|
-
},
|
134
|
-
field_theme_cta_two: {
|
135
|
-
field_type: "string",
|
136
|
-
values: [{
|
137
|
-
value: "secondary--1"
|
138
|
-
}]
|
139
|
-
}
|
140
|
-
}]
|
141
|
-
}
|
142
|
-
};
|
143
|
-
var expected = {
|
144
|
-
content: {
|
145
|
-
header: "Hero 7 Header - Theme 2",
|
146
|
-
subHeader: "At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores",
|
147
|
-
images: {
|
148
|
-
desktop: {
|
149
|
-
url: "/2021-01/download.jpg",
|
150
|
-
altText: "for testing hero 7"
|
151
|
-
},
|
152
|
-
mobile: {
|
153
|
-
url: "/2021-01/download.jpg",
|
154
|
-
altText: "for testing hero 7"
|
155
|
-
}
|
156
|
-
},
|
157
|
-
ctas: null,
|
158
|
-
theme: "rgba(0,95,158,0.7)"
|
159
|
-
},
|
160
|
-
type: "pbo_hero_7"
|
161
|
-
};
|
162
|
-
jest.mock("../../formatCTAs");
|
163
|
-
describe("formatHeroSeven", function () {
|
164
|
-
beforeEach(function () {
|
165
|
-
jest.clearAllMocks();
|
166
|
-
});
|
167
|
-
test("it should return formatted data", function () {
|
168
|
-
var _formatLinks = jest.fn().mockReturnValue(["link one", "link two"]);
|
169
|
-
jest.mock("../../formatCTAs");
|
170
|
-
var response = (0, _formatHeroSeven["default"])(_heroSevenData, _languageCode, _languageEnabled, _labels, _fpoBox, _formatLinks);
|
171
|
-
expect(response).toStrictEqual(expected);
|
172
|
-
});
|
173
|
-
test("it should handle junk data without crashing", function () {
|
174
|
-
var _formatLinks = jest.fn().mockReturnValue(["link one", "link two"]);
|
175
|
-
jest.mock("../../formatCTAs");
|
176
|
-
var response = (0, _formatHeroSeven["default"])({}, _languageCode, _languageEnabled, _labels, _fpoBox, _formatLinks);
|
177
|
-
var expectedJunk = {
|
178
|
-
content: {
|
179
|
-
header: undefined,
|
180
|
-
subHeader: undefined,
|
181
|
-
images: {
|
182
|
-
desktop: {
|
183
|
-
altText: "placeholder",
|
184
|
-
url: null
|
185
|
-
},
|
186
|
-
mobile: {
|
187
|
-
altText: "placeholder",
|
188
|
-
url: null
|
189
|
-
}
|
190
|
-
},
|
191
|
-
ctas: null,
|
192
|
-
theme: "#000000"
|
193
|
-
},
|
194
|
-
type: undefined
|
195
|
-
};
|
196
|
-
expect(response).toStrictEqual(expectedJunk);
|
197
|
-
});
|
198
|
-
});
|
@@ -1,196 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatHeroSix = _interopRequireDefault(require("../formatHeroSix"));
|
5
|
-
jest.mock("../../formatCTAs");
|
6
|
-
var _languageCode = "en";
|
7
|
-
var _languageEnabled = true;
|
8
|
-
var _labels = null;
|
9
|
-
var fpoBox = "./fpoBox.jpg";
|
10
|
-
var _formatLinks = jest.fn().mockReturnValue(["link one"]);
|
11
|
-
var _heroSixData = {
|
12
|
-
type: "pbo_hero_6",
|
13
|
-
parent_field_name: {
|
14
|
-
field_type: "string",
|
15
|
-
values: [{
|
16
|
-
value: "field_main_content"
|
17
|
-
}]
|
18
|
-
},
|
19
|
-
field_animation_toggle: {
|
20
|
-
field_type: "boolean",
|
21
|
-
values: [false]
|
22
|
-
},
|
23
|
-
field_hero_image_3_1: {
|
24
|
-
field_type: "media",
|
25
|
-
values: [{
|
26
|
-
id: "31",
|
27
|
-
entity_type: "media",
|
28
|
-
type: "image",
|
29
|
-
published: true,
|
30
|
-
fields: ["field_media_image"],
|
31
|
-
field_media_image: {
|
32
|
-
field_type: "image",
|
33
|
-
values: [{
|
34
|
-
target_id: "31",
|
35
|
-
alt: "fpo",
|
36
|
-
title: "",
|
37
|
-
width: "600",
|
38
|
-
height: "400",
|
39
|
-
source: "/2019-11/600x400.png"
|
40
|
-
}]
|
41
|
-
}
|
42
|
-
}]
|
43
|
-
},
|
44
|
-
field_m_header: {
|
45
|
-
field_type: "string",
|
46
|
-
values: [{
|
47
|
-
value: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
48
|
-
}]
|
49
|
-
},
|
50
|
-
field_m_subheader: null,
|
51
|
-
field_section_alignment: {
|
52
|
-
field_type: "taxonomy_term",
|
53
|
-
values: [{
|
54
|
-
id: "26",
|
55
|
-
entity_type: "taxonomy_term",
|
56
|
-
type: "organism_alignment",
|
57
|
-
name: "Left to Right",
|
58
|
-
description: "ltr",
|
59
|
-
children: [],
|
60
|
-
published: true,
|
61
|
-
fields: []
|
62
|
-
}]
|
63
|
-
},
|
64
|
-
field_section_theme: {
|
65
|
-
field_type: "taxonomy_term",
|
66
|
-
values: [{
|
67
|
-
id: "1",
|
68
|
-
entity_type: "taxonomy_term",
|
69
|
-
type: "organism_themes",
|
70
|
-
name: "Theme 1",
|
71
|
-
description: "theme-1",
|
72
|
-
children: [],
|
73
|
-
published: true,
|
74
|
-
fields: ["field_theme_background_color", "field_theme_color", "field_theme_cta_one", "field_theme_cta_two"],
|
75
|
-
field_theme_background_color: {
|
76
|
-
field_type: "string",
|
77
|
-
values: [{
|
78
|
-
value: "#f2f2f2"
|
79
|
-
}]
|
80
|
-
},
|
81
|
-
field_theme_color: {
|
82
|
-
field_type: "string",
|
83
|
-
values: [{
|
84
|
-
value: "#000000"
|
85
|
-
}]
|
86
|
-
},
|
87
|
-
field_theme_cta_one: {
|
88
|
-
field_type: "string",
|
89
|
-
values: [{
|
90
|
-
value: "primary--5"
|
91
|
-
}]
|
92
|
-
},
|
93
|
-
field_theme_cta_two: {
|
94
|
-
field_type: "string",
|
95
|
-
values: [{
|
96
|
-
value: "secondary--5"
|
97
|
-
}]
|
98
|
-
}
|
99
|
-
}]
|
100
|
-
},
|
101
|
-
field_s_h6_cta: {
|
102
|
-
field_type: "paragraph",
|
103
|
-
values: [{
|
104
|
-
id: "1636",
|
105
|
-
entity_type: "paragraph",
|
106
|
-
type: "cta_section_1",
|
107
|
-
published: true,
|
108
|
-
fields: ["parent_field_name", "field_cta_primary_1", "field_cta_secondary_1"],
|
109
|
-
parent_field_name: {
|
110
|
-
field_type: "string",
|
111
|
-
values: [{
|
112
|
-
value: "field_s_h6_cta"
|
113
|
-
}]
|
114
|
-
},
|
115
|
-
field_cta_primary_1: null,
|
116
|
-
field_cta_secondary_1: null
|
117
|
-
}]
|
118
|
-
}
|
119
|
-
};
|
120
|
-
var expected = {
|
121
|
-
content: {
|
122
|
-
header: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
|
123
|
-
ctas: ["ctaOne", "ctaTwo"],
|
124
|
-
images: {
|
125
|
-
desktop: {
|
126
|
-
imageLarge: {
|
127
|
-
url: "/2019-11/600x400.png",
|
128
|
-
altText: "fpo"
|
129
|
-
}
|
130
|
-
},
|
131
|
-
mobile: {
|
132
|
-
url: "/2019-11/600x400.png",
|
133
|
-
altText: "fpo"
|
134
|
-
},
|
135
|
-
tablet: {
|
136
|
-
url: "/2019-11/600x400.png",
|
137
|
-
altText: "fpo"
|
138
|
-
}
|
139
|
-
},
|
140
|
-
imageAlignment: "left",
|
141
|
-
text: undefined,
|
142
|
-
theme: {
|
143
|
-
backgroundColor: "#f2f2f2",
|
144
|
-
color: "#000000",
|
145
|
-
ctaOne: "primary--5",
|
146
|
-
ctaTwo: "secondary--5",
|
147
|
-
theme: "theme-1"
|
148
|
-
}
|
149
|
-
},
|
150
|
-
type: "pbo_hero_6"
|
151
|
-
};
|
152
|
-
var expectedJunk = {
|
153
|
-
content: {
|
154
|
-
header: undefined,
|
155
|
-
text: undefined,
|
156
|
-
ctas: ["ctaOne", "ctaTwo"],
|
157
|
-
images: {
|
158
|
-
desktop: {
|
159
|
-
imageLarge: {
|
160
|
-
url: undefined,
|
161
|
-
altText: undefined
|
162
|
-
}
|
163
|
-
},
|
164
|
-
mobile: {
|
165
|
-
url: undefined,
|
166
|
-
altText: undefined
|
167
|
-
},
|
168
|
-
tablet: {
|
169
|
-
url: undefined,
|
170
|
-
altText: undefined
|
171
|
-
}
|
172
|
-
},
|
173
|
-
imageAlignment: "right",
|
174
|
-
theme: {
|
175
|
-
backgroundColor: undefined,
|
176
|
-
color: undefined,
|
177
|
-
ctaOne: undefined,
|
178
|
-
ctaTwo: undefined,
|
179
|
-
theme: undefined
|
180
|
-
}
|
181
|
-
},
|
182
|
-
type: "hero_6"
|
183
|
-
};
|
184
|
-
describe("formatHeroSix", function () {
|
185
|
-
beforeEach(function () {
|
186
|
-
jest.clearAllMocks();
|
187
|
-
});
|
188
|
-
test("it should return formatted data", function () {
|
189
|
-
var response = (0, _formatHeroSix["default"])(_heroSixData, _languageCode, _languageEnabled, _labels, fpoBox, _formatLinks);
|
190
|
-
expect(response).toStrictEqual(expected);
|
191
|
-
});
|
192
|
-
test("it should handle junk data without crashing", function () {
|
193
|
-
var response = (0, _formatHeroSix["default"])(null, _languageEnabled, null, {}, "");
|
194
|
-
expect(response).toStrictEqual(expectedJunk);
|
195
|
-
});
|
196
|
-
});
|