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,293 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatFeatTwoB = _interopRequireDefault(require("../formatFeatTwoB"));
|
5
|
-
jest.mock("../formatFeatTwoBIcons");
|
6
|
-
var _featTwoBMockData = {
|
7
|
-
type: "pbo_feat_2",
|
8
|
-
parent_field_name: {
|
9
|
-
field_type: "string",
|
10
|
-
values: [{
|
11
|
-
value: "field_main_content"
|
12
|
-
}]
|
13
|
-
},
|
14
|
-
field_anchor_text: null,
|
15
|
-
field_anchor_toggle: {
|
16
|
-
field_type: "boolean",
|
17
|
-
values: [false]
|
18
|
-
},
|
19
|
-
field_animation_toggle: {
|
20
|
-
field_type: "boolean",
|
21
|
-
values: [false]
|
22
|
-
},
|
23
|
-
field_intro_cta: {
|
24
|
-
field_type: "paragraph",
|
25
|
-
values: [{
|
26
|
-
id: "741",
|
27
|
-
entity_type: "paragraph",
|
28
|
-
type: "cta_section_1",
|
29
|
-
published: true,
|
30
|
-
fields: ["parent_field_name", "field_cta_primary_1", "field_cta_secondary_1"],
|
31
|
-
parent_field_name: {
|
32
|
-
field_type: "string",
|
33
|
-
values: [{
|
34
|
-
value: "field_intro_cta"
|
35
|
-
}]
|
36
|
-
},
|
37
|
-
field_cta_primary_1: {
|
38
|
-
field_type: "links",
|
39
|
-
values: [{
|
40
|
-
uri: "internal:#primary",
|
41
|
-
title: "Primary",
|
42
|
-
options: [],
|
43
|
-
url: "#primary"
|
44
|
-
}]
|
45
|
-
},
|
46
|
-
field_cta_secondary_1: {
|
47
|
-
field_type: "links",
|
48
|
-
values: [{
|
49
|
-
uri: "internal:#secondary",
|
50
|
-
title: "Secondary!",
|
51
|
-
options: [],
|
52
|
-
url: "#secondary"
|
53
|
-
}]
|
54
|
-
}
|
55
|
-
}]
|
56
|
-
},
|
57
|
-
field_intro_description: {
|
58
|
-
field_type: "text_long",
|
59
|
-
values: [{
|
60
|
-
value: "<p>The aesthetic quality of a product is integral to its use because products we use every day affect our person and our well-being. But only well-executed objects can be very beautiful.</p>\r\n",
|
61
|
-
format: "wysiwyg_editor"
|
62
|
-
}]
|
63
|
-
},
|
64
|
-
field_intro_header: {
|
65
|
-
field_type: "string",
|
66
|
-
values: [{
|
67
|
-
value: "Square Image Section!"
|
68
|
-
}]
|
69
|
-
},
|
70
|
-
field_m_image_1_1: {
|
71
|
-
field_type: "media",
|
72
|
-
values: [{
|
73
|
-
id: "11",
|
74
|
-
entity_type: "media",
|
75
|
-
type: "image",
|
76
|
-
published: true,
|
77
|
-
fields: ["field_media_image"],
|
78
|
-
field_media_image: {
|
79
|
-
field_type: "image",
|
80
|
-
values: [{
|
81
|
-
target_id: "281",
|
82
|
-
alt: "square fpo",
|
83
|
-
title: "",
|
84
|
-
width: "500",
|
85
|
-
height: "500",
|
86
|
-
source: "/2020-12/500x500.png"
|
87
|
-
}]
|
88
|
-
}
|
89
|
-
}]
|
90
|
-
},
|
91
|
-
field_section_alignment: {
|
92
|
-
field_type: "taxonomy_term"
|
93
|
-
},
|
94
|
-
field_section_theme: {
|
95
|
-
field_type: "taxonomy_term",
|
96
|
-
values: [{
|
97
|
-
id: "1",
|
98
|
-
entity_type: "taxonomy_term",
|
99
|
-
type: "organism_themes",
|
100
|
-
name: "Theme 1",
|
101
|
-
description: "theme-1",
|
102
|
-
children: [],
|
103
|
-
published: true,
|
104
|
-
fields: ["field_theme_background_color", "field_theme_color", "field_theme_cta_one", "field_theme_cta_two"],
|
105
|
-
field_theme_background_color: {
|
106
|
-
field_type: "string",
|
107
|
-
values: [{
|
108
|
-
value: "#f2f2f2"
|
109
|
-
}]
|
110
|
-
},
|
111
|
-
field_theme_color: {
|
112
|
-
field_type: "string",
|
113
|
-
values: [{
|
114
|
-
value: "#000000"
|
115
|
-
}]
|
116
|
-
},
|
117
|
-
field_theme_cta_one: {
|
118
|
-
field_type: "string",
|
119
|
-
values: [{
|
120
|
-
value: "primary--5"
|
121
|
-
}]
|
122
|
-
},
|
123
|
-
field_theme_cta_two: {
|
124
|
-
field_type: "string",
|
125
|
-
values: [{
|
126
|
-
value: "secondary--5"
|
127
|
-
}]
|
128
|
-
}
|
129
|
-
}]
|
130
|
-
},
|
131
|
-
field_s_list: {
|
132
|
-
field_type: "paragraph",
|
133
|
-
values: [{
|
134
|
-
id: "756",
|
135
|
-
entity_type: "paragraph",
|
136
|
-
type: "m_icon_list",
|
137
|
-
published: true,
|
138
|
-
fields: ["parent_field_name", "field_icon_list_items"],
|
139
|
-
parent_field_name: {
|
140
|
-
field_type: "string",
|
141
|
-
values: [{
|
142
|
-
value: "field_s_list"
|
143
|
-
}]
|
144
|
-
},
|
145
|
-
field_icon_list_items: {
|
146
|
-
field_type: "paragraph",
|
147
|
-
values: [{
|
148
|
-
id: "746",
|
149
|
-
entity_type: "paragraph",
|
150
|
-
type: "m_icon_list_item",
|
151
|
-
published: true,
|
152
|
-
fields: ["parent_field_name", "field_ili_description", "field_ili_header", "field_ili_icon"],
|
153
|
-
parent_field_name: {
|
154
|
-
field_type: "string",
|
155
|
-
values: [{
|
156
|
-
value: "field_icon_list_items"
|
157
|
-
}]
|
158
|
-
},
|
159
|
-
field_ili_description: {
|
160
|
-
field_type: "string_long",
|
161
|
-
values: [{
|
162
|
-
value: "The aesthetic quality of a product is integral to its usefulness because products we use every day affect our person and our well-being. But only well-executed objects can be beautiful."
|
163
|
-
}]
|
164
|
-
},
|
165
|
-
field_ili_header: {
|
166
|
-
field_type: "string",
|
167
|
-
values: [{
|
168
|
-
value: "List Item 1"
|
169
|
-
}]
|
170
|
-
},
|
171
|
-
field_ili_icon: {
|
172
|
-
field_type: "taxonomy_term",
|
173
|
-
values: [{
|
174
|
-
id: "946",
|
175
|
-
entity_type: "taxonomy_term",
|
176
|
-
type: "terra_icons_48px",
|
177
|
-
name: "ter-icon--enclosed-arrow-left-dark-48px",
|
178
|
-
description: "ter-icon--enclosed-arrow-left-dark-48px",
|
179
|
-
children: [],
|
180
|
-
published: true,
|
181
|
-
fields: []
|
182
|
-
}]
|
183
|
-
}
|
184
|
-
}, {
|
185
|
-
id: "751",
|
186
|
-
entity_type: "paragraph",
|
187
|
-
type: "m_icon_list_item",
|
188
|
-
published: true,
|
189
|
-
fields: ["parent_field_name", "field_ili_description", "field_ili_header", "field_ili_icon"],
|
190
|
-
parent_field_name: {
|
191
|
-
field_type: "string",
|
192
|
-
values: [{
|
193
|
-
value: "field_icon_list_items"
|
194
|
-
}]
|
195
|
-
},
|
196
|
-
field_ili_description: {
|
197
|
-
field_type: "string_long",
|
198
|
-
values: [{
|
199
|
-
value: "The aesthetic quality of a product is integral to its usefulness because products we use every day affect our person and our well-being. But only well-executed objects can be beautiful."
|
200
|
-
}]
|
201
|
-
},
|
202
|
-
field_ili_header: {
|
203
|
-
field_type: "string",
|
204
|
-
values: [{
|
205
|
-
value: "List Item 2"
|
206
|
-
}]
|
207
|
-
},
|
208
|
-
field_ili_icon: {
|
209
|
-
field_type: "taxonomy_term",
|
210
|
-
values: [{
|
211
|
-
id: "956",
|
212
|
-
entity_type: "taxonomy_term",
|
213
|
-
type: "terra_icons_48px",
|
214
|
-
name: "ter-icon--enclosed-arrow-up-dark-48px",
|
215
|
-
description: "ter-icon--enclosed-arrow-up-dark-48px",
|
216
|
-
children: [],
|
217
|
-
published: true,
|
218
|
-
fields: []
|
219
|
-
}]
|
220
|
-
}
|
221
|
-
}]
|
222
|
-
}
|
223
|
-
}]
|
224
|
-
}
|
225
|
-
};
|
226
|
-
var expected = {
|
227
|
-
content: {
|
228
|
-
images: {
|
229
|
-
desktop: {
|
230
|
-
altText: "square fpo",
|
231
|
-
url: "/2020-12/500x500.png"
|
232
|
-
}
|
233
|
-
},
|
234
|
-
header: "Square Image Section!",
|
235
|
-
subHeader: "<p>The aesthetic quality of a product is integral to its use because products we use every day affect our person and our well-being. But only well-executed objects can be very beautiful.</p>\r\n",
|
236
|
-
cards: [{
|
237
|
-
name: "card one"
|
238
|
-
}, {
|
239
|
-
name: "card two"
|
240
|
-
}],
|
241
|
-
theme: {
|
242
|
-
backgroundColor: "#f2f2f2",
|
243
|
-
color: "#000000",
|
244
|
-
ctaOne: "primary--5",
|
245
|
-
ctaTwo: "secondary--5",
|
246
|
-
theme: "theme-1"
|
247
|
-
}
|
248
|
-
},
|
249
|
-
type: "feat_2b",
|
250
|
-
anchor: null
|
251
|
-
};
|
252
|
-
var _languageCode = "en";
|
253
|
-
var _languageEnabled = true;
|
254
|
-
var _labels = null;
|
255
|
-
var _fpoBox = "mock fpo";
|
256
|
-
describe("formatFeatTwoB", function () {
|
257
|
-
test("it should return formatted data", function () {
|
258
|
-
var response = (0, _formatFeatTwoB["default"])(_featTwoBMockData, _languageCode, _languageEnabled, _labels, _fpoBox);
|
259
|
-
expect(response).toStrictEqual(expected);
|
260
|
-
});
|
261
|
-
test("it should safely handle bad data", function () {
|
262
|
-
var response = (0, _formatFeatTwoB["default"])({
|
263
|
-
data: "junk"
|
264
|
-
}, null, null, null, null);
|
265
|
-
var expected = {
|
266
|
-
content: {
|
267
|
-
images: {
|
268
|
-
desktop: {
|
269
|
-
altText: undefined,
|
270
|
-
url: null
|
271
|
-
}
|
272
|
-
},
|
273
|
-
header: undefined,
|
274
|
-
subHeader: undefined,
|
275
|
-
cards: [{
|
276
|
-
name: "card one"
|
277
|
-
}, {
|
278
|
-
name: "card two"
|
279
|
-
}],
|
280
|
-
theme: {
|
281
|
-
backgroundColor: undefined,
|
282
|
-
color: undefined,
|
283
|
-
ctaOne: undefined,
|
284
|
-
ctaTwo: undefined,
|
285
|
-
theme: undefined
|
286
|
-
}
|
287
|
-
},
|
288
|
-
type: "feat_2b",
|
289
|
-
anchor: null
|
290
|
-
};
|
291
|
-
expect(response).toStrictEqual(expected);
|
292
|
-
});
|
293
|
-
});
|
@@ -1,78 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatFeatTwoBIcons = _interopRequireDefault(require("../formatFeatTwoBIcons"));
|
5
|
-
var _iconData = [{
|
6
|
-
type: "m_icon_list_item",
|
7
|
-
field_ili_description: {
|
8
|
-
field_type: "string_long",
|
9
|
-
values: [{
|
10
|
-
value: "The aesthetic quality of a product is integral to its usefulness because products we use every dady affect our person and our well-being. But only well-executed objects can be beautiful."
|
11
|
-
}]
|
12
|
-
},
|
13
|
-
field_ili_header: {
|
14
|
-
field_type: "string",
|
15
|
-
values: [{
|
16
|
-
value: "List Item A"
|
17
|
-
}]
|
18
|
-
},
|
19
|
-
field_ili_icon: {
|
20
|
-
field_type: "taxonomy_term",
|
21
|
-
values: [{
|
22
|
-
id: "961",
|
23
|
-
entity_type: "taxonomy_term",
|
24
|
-
type: "terra_icons_48px",
|
25
|
-
name: "ter-icon--enclosed-caret-down-dark-48px",
|
26
|
-
description: "ter-icon--enclosed-caret-down-dark-48px",
|
27
|
-
children: [],
|
28
|
-
published: true,
|
29
|
-
fields: []
|
30
|
-
}]
|
31
|
-
}
|
32
|
-
}, {
|
33
|
-
type: "m_icon_list_item",
|
34
|
-
field_ili_description: {
|
35
|
-
field_type: "string_long",
|
36
|
-
values: [{
|
37
|
-
value: "The aesthetic quality of a product is integral to its usefulness because products we use every day affect our person and our well-being. But only well-executed objects can be beautiful."
|
38
|
-
}]
|
39
|
-
},
|
40
|
-
field_ili_header: {
|
41
|
-
field_type: "string",
|
42
|
-
values: [{
|
43
|
-
value: "List Item B"
|
44
|
-
}]
|
45
|
-
},
|
46
|
-
field_ili_icon: {
|
47
|
-
field_type: "taxonomy_term",
|
48
|
-
values: [{
|
49
|
-
id: "946",
|
50
|
-
entity_type: "taxonomy_term",
|
51
|
-
type: "terra_icons_48px",
|
52
|
-
name: "ter-icon--enclosed-arrow-left-dark-48px",
|
53
|
-
description: "ter-icon--enclosed-arrow-left-dark-48px",
|
54
|
-
children: [],
|
55
|
-
published: true,
|
56
|
-
fields: []
|
57
|
-
}]
|
58
|
-
}
|
59
|
-
}];
|
60
|
-
describe("formatIcons", function () {
|
61
|
-
it("should return formatted data", function () {
|
62
|
-
var response = (0, _formatFeatTwoBIcons["default"])(_iconData);
|
63
|
-
var expected = [{
|
64
|
-
header: "List Item A",
|
65
|
-
text: "The aesthetic quality of a product is integral to its usefulness because products we use every dady affect our person and our well-being. But only well-executed objects can be beautiful.",
|
66
|
-
color: undefined
|
67
|
-
}, {
|
68
|
-
header: "List Item B",
|
69
|
-
text: "The aesthetic quality of a product is integral to its usefulness because products we use every day affect our person and our well-being. But only well-executed objects can be beautiful.",
|
70
|
-
color: undefined
|
71
|
-
}];
|
72
|
-
expect(response).toStrictEqual(expected);
|
73
|
-
});
|
74
|
-
it("should handle null", function () {
|
75
|
-
var response = (0, _formatFeatTwoBIcons["default"])(null);
|
76
|
-
expect(response).toStrictEqual([]);
|
77
|
-
});
|
78
|
-
});
|
@@ -1,178 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatPullQuote = _interopRequireDefault(require("../formatPullQuote"));
|
5
|
-
var _formatTheme2 = _interopRequireDefault(require("../../formatTheme"));
|
6
|
-
var _pullQuoteData = {
|
7
|
-
id: "951",
|
8
|
-
entity_type: "paragraph",
|
9
|
-
type: "pbo_pull_quote",
|
10
|
-
parent_field_name: {
|
11
|
-
field_type: "string",
|
12
|
-
values: [{
|
13
|
-
value: "field_main_content"
|
14
|
-
}]
|
15
|
-
},
|
16
|
-
field_anchor_text: null,
|
17
|
-
field_anchor_toggle: {
|
18
|
-
field_type: "boolean",
|
19
|
-
values: [false]
|
20
|
-
},
|
21
|
-
field_animation_toggle: null,
|
22
|
-
field_quote_author: {
|
23
|
-
field_type: "string",
|
24
|
-
values: [{
|
25
|
-
value: "Author Name"
|
26
|
-
}]
|
27
|
-
},
|
28
|
-
field_quote_author_title: {
|
29
|
-
field_type: "string",
|
30
|
-
values: [{
|
31
|
-
value: "Person's Title"
|
32
|
-
}]
|
33
|
-
},
|
34
|
-
field_quote_body: {
|
35
|
-
field_type: "string_long",
|
36
|
-
values: [{
|
37
|
-
value: "The aesthetic quality of a product is integral to its usefulness because products we use every day affect our person and our well-being. But only well-executed objects can be beautiful."
|
38
|
-
}]
|
39
|
-
},
|
40
|
-
field_quote_cta: {
|
41
|
-
field_type: "links",
|
42
|
-
values: [{
|
43
|
-
uri: "internal:#",
|
44
|
-
title: "Button",
|
45
|
-
options: [],
|
46
|
-
url: "internal:#"
|
47
|
-
}]
|
48
|
-
},
|
49
|
-
field_quote_image: {
|
50
|
-
field_type: "media",
|
51
|
-
values: [{
|
52
|
-
id: "41",
|
53
|
-
entity_type: "media",
|
54
|
-
type: "image",
|
55
|
-
published: true,
|
56
|
-
fields: ["field_media_image"],
|
57
|
-
field_media_image: {
|
58
|
-
field_type: "image",
|
59
|
-
values: [{
|
60
|
-
target_id: "276",
|
61
|
-
alt: "fpo",
|
62
|
-
title: "",
|
63
|
-
width: "300",
|
64
|
-
height: "300",
|
65
|
-
source: "/2020-12/300x300.png"
|
66
|
-
}]
|
67
|
-
}
|
68
|
-
}]
|
69
|
-
},
|
70
|
-
field_section_theme: {
|
71
|
-
field_type: "taxonomy_term",
|
72
|
-
values: [{
|
73
|
-
id: "21",
|
74
|
-
entity_type: "taxonomy_term",
|
75
|
-
type: "organism_themes",
|
76
|
-
name: "Theme 5",
|
77
|
-
description: "theme-5",
|
78
|
-
children: [],
|
79
|
-
published: true,
|
80
|
-
fields: ["field_theme_background_color", "field_theme_color", "field_theme_cta_one", "field_theme_cta_two"],
|
81
|
-
field_theme_background_color: null,
|
82
|
-
field_theme_color: null,
|
83
|
-
field_theme_cta_one: null,
|
84
|
-
field_theme_cta_two: null
|
85
|
-
}]
|
86
|
-
}
|
87
|
-
};
|
88
|
-
var expected = {
|
89
|
-
content: {
|
90
|
-
quote: {
|
91
|
-
text: "The aesthetic quality of a product is integral to its usefulness because products we use every day affect our person and our well-being. But only well-executed objects can be beautiful.",
|
92
|
-
source: "Author Name",
|
93
|
-
sourceTitle: "Person's Title"
|
94
|
-
},
|
95
|
-
image: {
|
96
|
-
url: "/2020-12/300x300.png",
|
97
|
-
altText: "fpo"
|
98
|
-
},
|
99
|
-
cta: {
|
100
|
-
text: "Button",
|
101
|
-
className: "primary--1",
|
102
|
-
url: [{
|
103
|
-
url: "/cta-one",
|
104
|
-
text: "cta one"
|
105
|
-
}]
|
106
|
-
},
|
107
|
-
theme: {
|
108
|
-
backgroundColor: undefined,
|
109
|
-
color: undefined,
|
110
|
-
ctaOne: undefined,
|
111
|
-
ctaTwo: undefined,
|
112
|
-
theme: "theme-5"
|
113
|
-
}
|
114
|
-
},
|
115
|
-
type: "pbo_pull_quote",
|
116
|
-
anchor: null
|
117
|
-
};
|
118
|
-
var expectedJunk = {
|
119
|
-
content: {
|
120
|
-
quote: {
|
121
|
-
text: null,
|
122
|
-
source: null,
|
123
|
-
sourceTitle: null
|
124
|
-
},
|
125
|
-
image: {
|
126
|
-
url: undefined,
|
127
|
-
altText: "Double quotes"
|
128
|
-
},
|
129
|
-
cta: {
|
130
|
-
url: null,
|
131
|
-
text: undefined,
|
132
|
-
className: "primary--1"
|
133
|
-
},
|
134
|
-
theme: {
|
135
|
-
backgroundColor: undefined,
|
136
|
-
color: undefined,
|
137
|
-
ctaOne: undefined,
|
138
|
-
ctaTwo: undefined,
|
139
|
-
theme: undefined
|
140
|
-
}
|
141
|
-
},
|
142
|
-
type: undefined,
|
143
|
-
anchor: null
|
144
|
-
};
|
145
|
-
var _languageCode = "en";
|
146
|
-
var _languageEnabled = true;
|
147
|
-
var _fpoSquare = "/fpo-square";
|
148
|
-
describe("formatPullQuote", function () {
|
149
|
-
beforeEach(function () {
|
150
|
-
jest.clearAllMocks();
|
151
|
-
});
|
152
|
-
test("it should return formatted data", function () {
|
153
|
-
var _formatLinks = jest.fn().mockReturnValue([{
|
154
|
-
url: "/cta-one",
|
155
|
-
text: "cta one"
|
156
|
-
}]);
|
157
|
-
var _formatTheme = jest.fn().mockReturnValue({
|
158
|
-
backgroundColor: "blue",
|
159
|
-
color: "green",
|
160
|
-
ctaOne: "primary--1",
|
161
|
-
ctaTwo: "secondary--1"
|
162
|
-
});
|
163
|
-
var response = (0, _formatPullQuote["default"])(_pullQuoteData, _languageCode, _languageEnabled, null, null, _formatLinks, _fpoSquare);
|
164
|
-
expect(response).toStrictEqual(expected);
|
165
|
-
});
|
166
|
-
test("it should call formatLinks", function () {
|
167
|
-
var _formatLinks = jest.fn().mockReturnValue([{
|
168
|
-
url: "/cta-one",
|
169
|
-
text: "cta one"
|
170
|
-
}]);
|
171
|
-
(0, _formatPullQuote["default"])(_pullQuoteData, _languageCode, _languageEnabled, null, null, _formatLinks, _fpoSquare);
|
172
|
-
expect(_formatLinks).toHaveBeenCalledTimes(1);
|
173
|
-
});
|
174
|
-
test("it should handle junk data without crashing", function () {
|
175
|
-
var response = (0, _formatPullQuote["default"])(null, {}, "", undefined);
|
176
|
-
expect(response).toStrictEqual(expectedJunk);
|
177
|
-
});
|
178
|
-
});
|
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports["default"] = void 0;
|
7
|
-
var formatAnchors = function formatAnchors(data) {
|
8
|
-
var _data$field_anchor_to, _data$field_anchor_to2;
|
9
|
-
if (data !== null && data !== void 0 && (_data$field_anchor_to = data.field_anchor_toggle) !== null && _data$field_anchor_to !== void 0 && (_data$field_anchor_to2 = _data$field_anchor_to.values) !== null && _data$field_anchor_to2 !== void 0 && _data$field_anchor_to2[0] && data !== null && data !== void 0 && data.field_anchor_text) {
|
10
|
-
return data.field_anchor_text;
|
11
|
-
} else {
|
12
|
-
return null;
|
13
|
-
}
|
14
|
-
};
|
15
|
-
var _default = formatAnchors;
|
16
|
-
exports["default"] = _default;
|
@@ -1,34 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports["default"] = void 0;
|
7
|
-
var formatCTAs = function formatCTAs() {
|
8
|
-
var _ctas$values;
|
9
|
-
var ctas = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
10
|
-
var languageCode = arguments.length > 1 ? arguments[1] : undefined;
|
11
|
-
var languageEnabled = arguments.length > 2 ? arguments[2] : undefined;
|
12
|
-
var formatLinks = arguments.length > 3 ? arguments[3] : undefined;
|
13
|
-
var theme = arguments.length > 4 ? arguments[4] : undefined;
|
14
|
-
if (ctas !== null && ctas !== void 0 && (_ctas$values = ctas.values) !== null && _ctas$values !== void 0 && _ctas$values.length) {
|
15
|
-
var _ctas$values2, _ctas$values2$, _ctas$values2$$field_, _ctas$values2$$field_2, _ctas$values2$$field_3, _ctas$values3, _ctas$values3$, _ctas$values3$$field_, _ctas$values3$$field_2, _ctas$values3$$field_3, _ctas$values4, _ctas$values4$, _ctas$values4$$field_, _ctas$values4$$field_2, _ctas$values4$$field_3, _ctas$values5, _ctas$values5$, _ctas$values5$$field_, _ctas$values5$$field_2, _ctas$values5$$field_3, _ctas$values6, _ctas$values6$, _ctas$values6$$field_, _ctas$values6$$field_2, _ctas$values6$$field_3, _ctas$values7, _ctas$values7$, _ctas$values7$$field_, _ctas$values7$$field_2, _ctas$values7$$field_3, _ctas$values8, _ctas$values8$, _ctas$values8$$field_, _ctas$values8$$field_2, _ctas$values8$$field_3, _ctas$values9, _ctas$values9$, _ctas$values9$$field_, _ctas$values9$$field_2, _ctas$values9$$field_3;
|
16
|
-
return {
|
17
|
-
ctaOne: {
|
18
|
-
url: ctas !== null && ctas !== void 0 && (_ctas$values2 = ctas.values) !== null && _ctas$values2 !== void 0 && (_ctas$values2$ = _ctas$values2[0]) !== null && _ctas$values2$ !== void 0 && (_ctas$values2$$field_ = _ctas$values2$.field_cta_primary_1) !== null && _ctas$values2$$field_ !== void 0 && (_ctas$values2$$field_2 = _ctas$values2$$field_.values) !== null && _ctas$values2$$field_2 !== void 0 && (_ctas$values2$$field_3 = _ctas$values2$$field_2[0]) !== null && _ctas$values2$$field_3 !== void 0 && _ctas$values2$$field_3.url ? formatLinks(ctas === null || ctas === void 0 ? void 0 : (_ctas$values3 = ctas.values) === null || _ctas$values3 === void 0 ? void 0 : (_ctas$values3$ = _ctas$values3[0]) === null || _ctas$values3$ === void 0 ? void 0 : (_ctas$values3$$field_ = _ctas$values3$.field_cta_primary_1) === null || _ctas$values3$$field_ === void 0 ? void 0 : (_ctas$values3$$field_2 = _ctas$values3$$field_.values) === null || _ctas$values3$$field_2 === void 0 ? void 0 : (_ctas$values3$$field_3 = _ctas$values3$$field_2[0]) === null || _ctas$values3$$field_3 === void 0 ? void 0 : _ctas$values3$$field_3.url, languageCode, languageEnabled) : null,
|
19
|
-
text: ctas === null || ctas === void 0 ? void 0 : (_ctas$values4 = ctas.values) === null || _ctas$values4 === void 0 ? void 0 : (_ctas$values4$ = _ctas$values4[0]) === null || _ctas$values4$ === void 0 ? void 0 : (_ctas$values4$$field_ = _ctas$values4$.field_cta_primary_1) === null || _ctas$values4$$field_ === void 0 ? void 0 : (_ctas$values4$$field_2 = _ctas$values4$$field_.values) === null || _ctas$values4$$field_2 === void 0 ? void 0 : (_ctas$values4$$field_3 = _ctas$values4$$field_2[0]) === null || _ctas$values4$$field_3 === void 0 ? void 0 : _ctas$values4$$field_3.title,
|
20
|
-
className: (theme === null || theme === void 0 ? void 0 : theme.ctaOne) || null
|
21
|
-
},
|
22
|
-
ctaTwo: {
|
23
|
-
url: ctas !== null && ctas !== void 0 && (_ctas$values5 = ctas.values) !== null && _ctas$values5 !== void 0 && (_ctas$values5$ = _ctas$values5[0]) !== null && _ctas$values5$ !== void 0 && (_ctas$values5$$field_ = _ctas$values5$.field_cta_primary_2) !== null && _ctas$values5$$field_ !== void 0 && (_ctas$values5$$field_2 = _ctas$values5$$field_.values) !== null && _ctas$values5$$field_2 !== void 0 && (_ctas$values5$$field_3 = _ctas$values5$$field_2[0]) !== null && _ctas$values5$$field_3 !== void 0 && _ctas$values5$$field_3.url ? formatLinks(ctas === null || ctas === void 0 ? void 0 : (_ctas$values6 = ctas.values) === null || _ctas$values6 === void 0 ? void 0 : (_ctas$values6$ = _ctas$values6[0]) === null || _ctas$values6$ === void 0 ? void 0 : (_ctas$values6$$field_ = _ctas$values6$.field_cta_primary_2) === null || _ctas$values6$$field_ === void 0 ? void 0 : (_ctas$values6$$field_2 = _ctas$values6$$field_.values) === null || _ctas$values6$$field_2 === void 0 ? void 0 : (_ctas$values6$$field_3 = _ctas$values6$$field_2[0]) === null || _ctas$values6$$field_3 === void 0 ? void 0 : _ctas$values6$$field_3.url, languageCode, languageEnabled) : null,
|
24
|
-
text: ctas !== null && ctas !== void 0 && (_ctas$values7 = ctas.values) !== null && _ctas$values7 !== void 0 && (_ctas$values7$ = _ctas$values7[0]) !== null && _ctas$values7$ !== void 0 && (_ctas$values7$$field_ = _ctas$values7$.field_cta_primary_2) !== null && _ctas$values7$$field_ !== void 0 && (_ctas$values7$$field_2 = _ctas$values7$$field_.values) !== null && _ctas$values7$$field_2 !== void 0 && (_ctas$values7$$field_3 = _ctas$values7$$field_2[0]) !== null && _ctas$values7$$field_3 !== void 0 && _ctas$values7$$field_3.title ? ctas === null || ctas === void 0 ? void 0 : (_ctas$values8 = ctas.values) === null || _ctas$values8 === void 0 ? void 0 : (_ctas$values8$ = _ctas$values8[0]) === null || _ctas$values8$ === void 0 ? void 0 : (_ctas$values8$$field_ = _ctas$values8$.field_cta_primary_2) === null || _ctas$values8$$field_ === void 0 ? void 0 : (_ctas$values8$$field_2 = _ctas$values8$$field_.values) === null || _ctas$values8$$field_2 === void 0 ? void 0 : (_ctas$values8$$field_3 = _ctas$values8$$field_2[0]) === null || _ctas$values8$$field_3 === void 0 ? void 0 : _ctas$values8$$field_3.title : // some ctas use primary_2 and others use secodary_1
|
25
|
-
ctas === null || ctas === void 0 ? void 0 : (_ctas$values9 = ctas.values) === null || _ctas$values9 === void 0 ? void 0 : (_ctas$values9$ = _ctas$values9[0]) === null || _ctas$values9$ === void 0 ? void 0 : (_ctas$values9$$field_ = _ctas$values9$.field_cta_secondary_1) === null || _ctas$values9$$field_ === void 0 ? void 0 : (_ctas$values9$$field_2 = _ctas$values9$$field_.values) === null || _ctas$values9$$field_2 === void 0 ? void 0 : (_ctas$values9$$field_3 = _ctas$values9$$field_2[0]) === null || _ctas$values9$$field_3 === void 0 ? void 0 : _ctas$values9$$field_3.title,
|
26
|
-
className: (theme === null || theme === void 0 ? void 0 : theme.ctaTwo) || null
|
27
|
-
}
|
28
|
-
};
|
29
|
-
} else {
|
30
|
-
return null;
|
31
|
-
}
|
32
|
-
};
|
33
|
-
var _default = formatCTAs;
|
34
|
-
exports["default"] = _default;
|
@@ -1,29 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports["default"] = void 0;
|
7
|
-
var valuesValue = function valuesValue() {
|
8
|
-
var _data$values, _data$values$;
|
9
|
-
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
10
|
-
return data === null || data === void 0 ? void 0 : (_data$values = data.values) === null || _data$values === void 0 ? void 0 : (_data$values$ = _data$values[0]) === null || _data$values$ === void 0 ? void 0 : _data$values$.value;
|
11
|
-
};
|
12
|
-
var formatTheme = function formatTheme(untunneledData) {
|
13
|
-
var _untunneledData$value;
|
14
|
-
var data = untunneledData === null || untunneledData === void 0 ? void 0 : (_untunneledData$value = untunneledData.values) === null || _untunneledData$value === void 0 ? void 0 : _untunneledData$value[0];
|
15
|
-
var backgroundColor = valuesValue(data === null || data === void 0 ? void 0 : data.field_theme_background_color);
|
16
|
-
var color = valuesValue(data === null || data === void 0 ? void 0 : data.field_theme_color);
|
17
|
-
var ctaOne = valuesValue(data === null || data === void 0 ? void 0 : data.field_theme_cta_one);
|
18
|
-
var ctaTwo = valuesValue(data === null || data === void 0 ? void 0 : data.field_theme_cta_two);
|
19
|
-
var theme = data === null || data === void 0 ? void 0 : data.description;
|
20
|
-
return {
|
21
|
-
backgroundColor: backgroundColor,
|
22
|
-
color: color,
|
23
|
-
ctaOne: ctaOne,
|
24
|
-
ctaTwo: ctaTwo,
|
25
|
-
theme: theme
|
26
|
-
};
|
27
|
-
};
|
28
|
-
var _default = formatTheme;
|
29
|
-
exports["default"] = _default;
|