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
package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFourV2.test.js
DELETED
@@ -1,358 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatFourV = _interopRequireDefault(require("../formatListFeatFourV2"));
|
5
|
-
var data = {
|
6
|
-
id: "1031",
|
7
|
-
entity_type: "paragraph",
|
8
|
-
type: "pbo_listfeat_4",
|
9
|
-
published: true,
|
10
|
-
fields: ["parent_field_name", "field_anchor_text", "field_anchor_toggle", "field_animation_toggle", "field_intro_alignment", "field_intro_cta", "field_intro_description", "field_intro_header", "field_section_theme", "field_s_dumpling_list"],
|
11
|
-
parent_field_name: {
|
12
|
-
field_type: "string",
|
13
|
-
values: [{
|
14
|
-
value: "field_main_content"
|
15
|
-
}]
|
16
|
-
},
|
17
|
-
field_anchor_text: null,
|
18
|
-
field_anchor_toggle: {
|
19
|
-
field_type: "boolean",
|
20
|
-
values: [false]
|
21
|
-
},
|
22
|
-
field_animation_toggle: {
|
23
|
-
field_type: "boolean",
|
24
|
-
values: [false]
|
25
|
-
},
|
26
|
-
field_intro_alignment: {
|
27
|
-
field_type: "taxonomy_term",
|
28
|
-
values: [{
|
29
|
-
id: "41",
|
30
|
-
entity_type: "taxonomy_term",
|
31
|
-
type: "intro_alignment",
|
32
|
-
name: "Center Align",
|
33
|
-
description: "intro-align-center",
|
34
|
-
children: [],
|
35
|
-
published: true,
|
36
|
-
fields: []
|
37
|
-
}]
|
38
|
-
},
|
39
|
-
field_intro_cta: {
|
40
|
-
field_type: "paragraph",
|
41
|
-
values: [{
|
42
|
-
id: "1016",
|
43
|
-
entity_type: "paragraph",
|
44
|
-
type: "cta_section_1",
|
45
|
-
published: true,
|
46
|
-
fields: ["parent_field_name", "field_cta_primary_1", "field_cta_secondary_1"],
|
47
|
-
parent_field_name: {
|
48
|
-
field_type: "string",
|
49
|
-
values: [{
|
50
|
-
value: "field_intro_cta"
|
51
|
-
}]
|
52
|
-
},
|
53
|
-
field_cta_primary_1: {
|
54
|
-
field_type: "links",
|
55
|
-
values: [{
|
56
|
-
uri: "internal:#",
|
57
|
-
title: "Primary",
|
58
|
-
options: [],
|
59
|
-
url: "internal:#"
|
60
|
-
}]
|
61
|
-
},
|
62
|
-
field_cta_secondary_1: {
|
63
|
-
field_type: "links",
|
64
|
-
values: [{
|
65
|
-
uri: "internal:#",
|
66
|
-
title: "Secondary",
|
67
|
-
options: [],
|
68
|
-
url: "internal:#"
|
69
|
-
}]
|
70
|
-
}
|
71
|
-
}]
|
72
|
-
},
|
73
|
-
field_intro_description: {
|
74
|
-
field_type: "text_long",
|
75
|
-
values: [{
|
76
|
-
value: "<p>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.</p>\r\n",
|
77
|
-
format: "wysiwyg_editor"
|
78
|
-
}]
|
79
|
-
},
|
80
|
-
field_intro_header: {
|
81
|
-
field_type: "string",
|
82
|
-
values: [{
|
83
|
-
value: "ListFeature 4"
|
84
|
-
}]
|
85
|
-
},
|
86
|
-
field_section_theme: {
|
87
|
-
field_type: "taxonomy_term",
|
88
|
-
values: [{
|
89
|
-
id: "1",
|
90
|
-
entity_type: "taxonomy_term",
|
91
|
-
type: "organism_themes",
|
92
|
-
name: "Theme 1",
|
93
|
-
description: "theme-1",
|
94
|
-
children: [],
|
95
|
-
published: true,
|
96
|
-
fields: ["field_theme_background_color", "field_theme_color", "field_theme_cta_one", "field_theme_cta_two"],
|
97
|
-
field_theme_background_color: {
|
98
|
-
field_type: "string",
|
99
|
-
values: [{
|
100
|
-
value: "#f2f2f2"
|
101
|
-
}]
|
102
|
-
},
|
103
|
-
field_theme_color: {
|
104
|
-
field_type: "string",
|
105
|
-
values: [{
|
106
|
-
value: "#000000"
|
107
|
-
}]
|
108
|
-
},
|
109
|
-
field_theme_cta_one: {
|
110
|
-
field_type: "string",
|
111
|
-
values: [{
|
112
|
-
value: "primary--5"
|
113
|
-
}]
|
114
|
-
},
|
115
|
-
field_theme_cta_two: {
|
116
|
-
field_type: "string",
|
117
|
-
values: [{
|
118
|
-
value: "secondary--5"
|
119
|
-
}]
|
120
|
-
}
|
121
|
-
}]
|
122
|
-
},
|
123
|
-
field_s_dumpling_list: {
|
124
|
-
field_type: "paragraph",
|
125
|
-
values: [{
|
126
|
-
id: "1026",
|
127
|
-
entity_type: "paragraph",
|
128
|
-
type: "list_items_4",
|
129
|
-
published: true,
|
130
|
-
fields: ["parent_field_name", "field_dumpling_list"],
|
131
|
-
parent_field_name: {
|
132
|
-
field_type: "string",
|
133
|
-
values: [{
|
134
|
-
value: "field_s_dumpling_list"
|
135
|
-
}]
|
136
|
-
},
|
137
|
-
field_dumpling_list: {
|
138
|
-
field_type: "paragraph",
|
139
|
-
values: [{
|
140
|
-
id: "1021",
|
141
|
-
entity_type: "paragraph",
|
142
|
-
type: "m_icon_dumpling",
|
143
|
-
published: true,
|
144
|
-
fields: ["parent_field_name", "field_dumpling_icon", "field_dumpling_text"],
|
145
|
-
parent_field_name: {
|
146
|
-
field_type: "string",
|
147
|
-
values: [{
|
148
|
-
value: "field_dumpling_list"
|
149
|
-
}]
|
150
|
-
},
|
151
|
-
field_dumpling_icon: {
|
152
|
-
field_type: "taxonomy_term",
|
153
|
-
values: [{
|
154
|
-
id: "966",
|
155
|
-
entity_type: "taxonomy_term",
|
156
|
-
type: "terra_icons_48px",
|
157
|
-
name: "ter-icon--enclosed-caret-left-dark-48px",
|
158
|
-
description: "ter-icon--enclosed-caret-left-dark-48px",
|
159
|
-
children: [],
|
160
|
-
published: true,
|
161
|
-
fields: []
|
162
|
-
}]
|
163
|
-
},
|
164
|
-
field_dumpling_text: {
|
165
|
-
field_type: "string",
|
166
|
-
values: [{
|
167
|
-
value: "Dumpling"
|
168
|
-
}]
|
169
|
-
}
|
170
|
-
}, {
|
171
|
-
id: "1071",
|
172
|
-
entity_type: "paragraph",
|
173
|
-
type: "m_icon_dumpling",
|
174
|
-
published: true,
|
175
|
-
fields: ["parent_field_name", "field_dumpling_icon", "field_dumpling_text"],
|
176
|
-
parent_field_name: {
|
177
|
-
field_type: "string",
|
178
|
-
values: [{
|
179
|
-
value: "field_dumpling_list"
|
180
|
-
}]
|
181
|
-
},
|
182
|
-
field_dumpling_icon: {
|
183
|
-
field_type: "taxonomy_term",
|
184
|
-
values: [{
|
185
|
-
id: "951",
|
186
|
-
entity_type: "taxonomy_term",
|
187
|
-
type: "terra_icons_48px",
|
188
|
-
name: "ter-icon--enclosed-arrow-right-dark-48px",
|
189
|
-
description: "ter-icon--enclosed-arrow-right-dark-48px",
|
190
|
-
children: [],
|
191
|
-
published: true,
|
192
|
-
fields: []
|
193
|
-
}]
|
194
|
-
},
|
195
|
-
field_dumpling_text: {
|
196
|
-
field_type: "string",
|
197
|
-
values: [{
|
198
|
-
value: "Dumpling"
|
199
|
-
}]
|
200
|
-
}
|
201
|
-
}, {
|
202
|
-
id: "1076",
|
203
|
-
entity_type: "paragraph",
|
204
|
-
type: "m_icon_dumpling",
|
205
|
-
published: true,
|
206
|
-
fields: ["parent_field_name", "field_dumpling_icon", "field_dumpling_text"],
|
207
|
-
parent_field_name: {
|
208
|
-
field_type: "string",
|
209
|
-
values: [{
|
210
|
-
value: "field_dumpling_list"
|
211
|
-
}]
|
212
|
-
},
|
213
|
-
field_dumpling_icon: {
|
214
|
-
field_type: "taxonomy_term",
|
215
|
-
values: [{
|
216
|
-
id: "981",
|
217
|
-
entity_type: "taxonomy_term",
|
218
|
-
type: "terra_icons_48px",
|
219
|
-
name: "ter-icon--enclosed-check-dark-48px",
|
220
|
-
description: "ter-icon--enclosed-check-dark-48px",
|
221
|
-
children: [],
|
222
|
-
published: true,
|
223
|
-
fields: []
|
224
|
-
}]
|
225
|
-
},
|
226
|
-
field_dumpling_text: {
|
227
|
-
field_type: "string",
|
228
|
-
values: [{
|
229
|
-
value: "Dumpling"
|
230
|
-
}]
|
231
|
-
}
|
232
|
-
}]
|
233
|
-
}
|
234
|
-
}]
|
235
|
-
}
|
236
|
-
};
|
237
|
-
jest.mock("../formatListFeatV2");
|
238
|
-
var _labels = {
|
239
|
-
learnMoreText: "Learn!"
|
240
|
-
};
|
241
|
-
var _expected = {
|
242
|
-
content: {
|
243
|
-
header: "LF1 Header - Link Tiles",
|
244
|
-
subHeader: "Desc",
|
245
|
-
ctas: {
|
246
|
-
ctaOne: {
|
247
|
-
text: "Button",
|
248
|
-
url: "/features"
|
249
|
-
},
|
250
|
-
ctaTwo: {
|
251
|
-
text: "Second",
|
252
|
-
url: "/listfeatures"
|
253
|
-
}
|
254
|
-
},
|
255
|
-
dumplings: [{
|
256
|
-
header: "Dumpling",
|
257
|
-
link: {
|
258
|
-
url: "/"
|
259
|
-
},
|
260
|
-
size: "small",
|
261
|
-
icon: {
|
262
|
-
type: "enclosed-caret-left-dark-48px",
|
263
|
-
size: "48px",
|
264
|
-
color: "blue"
|
265
|
-
},
|
266
|
-
color: "blue"
|
267
|
-
}, {
|
268
|
-
header: "Dumpling",
|
269
|
-
link: {
|
270
|
-
url: "/"
|
271
|
-
},
|
272
|
-
size: "small",
|
273
|
-
icon: {
|
274
|
-
type: "enclosed-arrow-right-dark-48px",
|
275
|
-
size: "48px",
|
276
|
-
color: "blue"
|
277
|
-
},
|
278
|
-
color: "blue"
|
279
|
-
}, {
|
280
|
-
header: "Dumpling",
|
281
|
-
link: {
|
282
|
-
url: "/"
|
283
|
-
},
|
284
|
-
size: "small",
|
285
|
-
icon: {
|
286
|
-
type: "enclosed-check-dark-48px",
|
287
|
-
size: "48px",
|
288
|
-
color: "blue"
|
289
|
-
},
|
290
|
-
color: "blue"
|
291
|
-
}],
|
292
|
-
type: "list_feat_4",
|
293
|
-
theme: {
|
294
|
-
color: "blue",
|
295
|
-
background: "purple",
|
296
|
-
ctaOne: "bright",
|
297
|
-
ctaTwo: "dark"
|
298
|
-
}
|
299
|
-
},
|
300
|
-
type: "list_feat_4",
|
301
|
-
anchor: "mock anchor!"
|
302
|
-
};
|
303
|
-
var _badData = {
|
304
|
-
content: {
|
305
|
-
header: "LF1 Header - Link Tiles",
|
306
|
-
subHeader: "Desc",
|
307
|
-
ctas: {
|
308
|
-
ctaOne: {
|
309
|
-
text: "Button",
|
310
|
-
url: "/features"
|
311
|
-
},
|
312
|
-
ctaTwo: {
|
313
|
-
text: "Second",
|
314
|
-
url: "/listfeatures"
|
315
|
-
}
|
316
|
-
},
|
317
|
-
dumplings: [],
|
318
|
-
type: "list_feat_4",
|
319
|
-
theme: {
|
320
|
-
color: "blue",
|
321
|
-
background: "purple",
|
322
|
-
ctaOne: "bright",
|
323
|
-
ctaTwo: "dark"
|
324
|
-
}
|
325
|
-
},
|
326
|
-
type: "list_feat_4",
|
327
|
-
anchor: "mock anchor!"
|
328
|
-
};
|
329
|
-
describe("formatListFeatFourV2", function () {
|
330
|
-
it("should return formatted data", function () {
|
331
|
-
var _formatLinks = jest.fn().mockImplementation(function (link) {
|
332
|
-
return link;
|
333
|
-
});
|
334
|
-
var formatListFeatFourDumplingsV2 = jest.fn().mockImplementation(function () {
|
335
|
-
return [{
|
336
|
-
card: "cardOne"
|
337
|
-
}, {
|
338
|
-
card: "cardTwo"
|
339
|
-
}];
|
340
|
-
});
|
341
|
-
var response = (0, _formatListFeatFourV["default"])(data, "en", true, _labels, null, _formatLinks);
|
342
|
-
expect(response).toStrictEqual(_expected);
|
343
|
-
});
|
344
|
-
it("should handle bad data", function () {
|
345
|
-
var _formatLinks = jest.fn().mockImplementation(function (link) {
|
346
|
-
return link;
|
347
|
-
});
|
348
|
-
var formatListFeatFourDumplingsV2 = jest.fn().mockImplementation(function () {
|
349
|
-
return [{
|
350
|
-
card: "cardOne"
|
351
|
-
}, {
|
352
|
-
card: "cardTwo"
|
353
|
-
}];
|
354
|
-
});
|
355
|
-
var response = (0, _formatListFeatFourV["default"])();
|
356
|
-
expect(response).toStrictEqual(_badData);
|
357
|
-
});
|
358
|
-
});
|
@@ -1,98 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatOne = _interopRequireDefault(require("../formatListFeatOne"));
|
5
|
-
var _formatListFeatOneCards = _interopRequireDefault(require("../formatListFeatOneCards"));
|
6
|
-
var _languageCode = "en";
|
7
|
-
var _languageEnabled = true;
|
8
|
-
var _labels = {
|
9
|
-
learnMoreText: "Learn More Mock"
|
10
|
-
};
|
11
|
-
var _fpoBox = null;
|
12
|
-
var _formatLinks = jest.fn().mockReturnValue(["link one"]);
|
13
|
-
var _fpoSquare = null;
|
14
|
-
var _listFeatOneData = {
|
15
|
-
theme: "theme-4",
|
16
|
-
intro_alignment: "intro-align-center",
|
17
|
-
intro_header: "Header text",
|
18
|
-
intro_description: "Mock body text",
|
19
|
-
anchor_toggle: false,
|
20
|
-
anchor_text: "",
|
21
|
-
anchor_slug: "slug",
|
22
|
-
specific_type: "pbo_listfeat_1",
|
23
|
-
type: "listfeat_1",
|
24
|
-
human_name: "ListFeat 1 - List 2-Column Card with Link",
|
25
|
-
ctas: [{
|
26
|
-
text: null,
|
27
|
-
url: "",
|
28
|
-
type: "primary"
|
29
|
-
}, {
|
30
|
-
text: "Secondary Button ",
|
31
|
-
url: "/",
|
32
|
-
type: "secondary"
|
33
|
-
}],
|
34
|
-
list: [{
|
35
|
-
type: "list_items_1",
|
36
|
-
list: [{
|
37
|
-
type: "m_link_tile",
|
38
|
-
header: "Link Tile",
|
39
|
-
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ",
|
40
|
-
cta: {
|
41
|
-
text: "",
|
42
|
-
url: "/"
|
43
|
-
}
|
44
|
-
}, {
|
45
|
-
type: "m_link_tile",
|
46
|
-
header: "Link Tile",
|
47
|
-
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ",
|
48
|
-
cta: {
|
49
|
-
text: "",
|
50
|
-
url: "/"
|
51
|
-
}
|
52
|
-
}]
|
53
|
-
}],
|
54
|
-
pid: 4
|
55
|
-
};
|
56
|
-
var expected = {
|
57
|
-
theme: "theme-4",
|
58
|
-
content: {
|
59
|
-
header: "Header text",
|
60
|
-
subHeader: "Mock body text",
|
61
|
-
ctas: ["ctaOne", "ctaTwo"],
|
62
|
-
type: "list_feat_1",
|
63
|
-
cardOne: {
|
64
|
-
name: "card one"
|
65
|
-
},
|
66
|
-
cardTwo: {
|
67
|
-
name: "card two"
|
68
|
-
}
|
69
|
-
},
|
70
|
-
type: "list_feat_1",
|
71
|
-
anchor: null
|
72
|
-
};
|
73
|
-
var expectedJunk = {
|
74
|
-
theme: undefined,
|
75
|
-
content: {
|
76
|
-
header: undefined,
|
77
|
-
subHeader: undefined,
|
78
|
-
ctas: ["ctaOne", "ctaTwo"],
|
79
|
-
type: "list_feat_1"
|
80
|
-
},
|
81
|
-
type: "list_feat_1",
|
82
|
-
anchor: null
|
83
|
-
};
|
84
|
-
jest.mock("../../formatCTAs");
|
85
|
-
jest.mock("../formatListFeatOneCards");
|
86
|
-
describe("formatListFeatOne", function () {
|
87
|
-
beforeEach(function () {
|
88
|
-
jest.clearAllMocks();
|
89
|
-
});
|
90
|
-
test("it should return formatted data", function () {
|
91
|
-
var response = (0, _formatListFeatOne["default"])(_listFeatOneData, _languageCode, _languageEnabled, _labels, _fpoBox, _formatLinks, _fpoSquare);
|
92
|
-
expect(response).toStrictEqual(expected);
|
93
|
-
});
|
94
|
-
test("it should handle junk data without crashing", function () {
|
95
|
-
var response = (0, _formatListFeatOne["default"])({}, null, _languageEnabled, _labels, _fpoBox, null, _fpoSquare);
|
96
|
-
expect(response).toStrictEqual(expectedJunk);
|
97
|
-
});
|
98
|
-
});
|
package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOneCards.test.js
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatOneCards = _interopRequireDefault(require("../formatListFeatOneCards"));
|
5
|
-
var expectedCards = {
|
6
|
-
cardOne: {
|
7
|
-
header: "Link Tile",
|
8
|
-
text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ",
|
9
|
-
cta: {
|
10
|
-
url: ["link one", "link two"],
|
11
|
-
text: "Learn More Mock"
|
12
|
-
}
|
13
|
-
},
|
14
|
-
cardTwo: {
|
15
|
-
header: "Link Tile",
|
16
|
-
text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ",
|
17
|
-
cta: {
|
18
|
-
url: ["link one", "link two"],
|
19
|
-
text: "Learn More Mock"
|
20
|
-
}
|
21
|
-
}
|
22
|
-
};
|
23
|
-
var _listFeatOneCardData = [{
|
24
|
-
type: "list_items_1",
|
25
|
-
list: [{
|
26
|
-
type: "m_link_tile",
|
27
|
-
header: "Link Tile",
|
28
|
-
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ",
|
29
|
-
cta: {
|
30
|
-
text: "",
|
31
|
-
url: "/"
|
32
|
-
}
|
33
|
-
}, {
|
34
|
-
type: "m_link_tile",
|
35
|
-
header: "Link Tile",
|
36
|
-
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ",
|
37
|
-
cta: {
|
38
|
-
text: "",
|
39
|
-
url: "/"
|
40
|
-
}
|
41
|
-
}]
|
42
|
-
}];
|
43
|
-
var _learnMoreText = "Learn More Mock";
|
44
|
-
var _languageCode = "en";
|
45
|
-
var _langaugeEnabled = true;
|
46
|
-
describe("formatListFeatOneCards", function () {
|
47
|
-
beforeEach(function () {
|
48
|
-
jest.clearAllMocks();
|
49
|
-
});
|
50
|
-
test("it should return formatted data", function () {
|
51
|
-
var _formatLinks = jest.fn().mockReturnValue(["link one", "link two"]);
|
52
|
-
var response = (0, _formatListFeatOneCards["default"])(_listFeatOneCardData, _learnMoreText, _languageCode, _formatLinks, _langaugeEnabled);
|
53
|
-
expect(response).toStrictEqual(expectedCards);
|
54
|
-
});
|
55
|
-
test("it should call formatLinks", function () {
|
56
|
-
var _formatLinks = jest.fn().mockReturnValue(["link one", "link two"]);
|
57
|
-
(0, _formatListFeatOneCards["default"])(_listFeatOneCardData, _learnMoreText, _languageCode, _formatLinks, _langaugeEnabled);
|
58
|
-
|
59
|
-
// is called once for each card //
|
60
|
-
expect(_formatLinks).toHaveBeenCalledTimes(2);
|
61
|
-
});
|
62
|
-
test("it should handle junk data without crashing", function () {
|
63
|
-
var _formatLinks = jest.fn().mockReturnValue(["link one", "link two"]);
|
64
|
-
var response = (0, _formatListFeatOneCards["default"])(null, _learnMoreText, _languageCode, _formatLinks, _langaugeEnabled);
|
65
|
-
expect(response).toBeUndefined();
|
66
|
-
});
|
67
|
-
});
|
@@ -1,191 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatOneV = _interopRequireDefault(require("../formatListFeatOneV2"));
|
5
|
-
jest.mock("../formatListFeatV2");
|
6
|
-
jest.mock("../formatListFeatOneV2Cards");
|
7
|
-
describe("formatListFeatOneV2", function () {
|
8
|
-
// MOCK DATA //
|
9
|
-
var data = {
|
10
|
-
type: "pbo_listfeat_1",
|
11
|
-
field_anchor_text: "what",
|
12
|
-
field_anchor_toggle: {
|
13
|
-
values: [true]
|
14
|
-
},
|
15
|
-
field_intro_alignment: {
|
16
|
-
values: [{
|
17
|
-
name: "Center Align",
|
18
|
-
description: "intro-align-center"
|
19
|
-
}]
|
20
|
-
},
|
21
|
-
field_intro_cta: {
|
22
|
-
values: [{
|
23
|
-
field_cta_primary_1: {
|
24
|
-
values: [{
|
25
|
-
title: "Button",
|
26
|
-
url: "/features"
|
27
|
-
}]
|
28
|
-
},
|
29
|
-
field_cta_secondary_1: {
|
30
|
-
values: [{
|
31
|
-
title: "Second",
|
32
|
-
url: "/listfeatures"
|
33
|
-
}]
|
34
|
-
}
|
35
|
-
}]
|
36
|
-
},
|
37
|
-
field_intro_description: {
|
38
|
-
values: [{
|
39
|
-
value: "Desc",
|
40
|
-
format: "full_html"
|
41
|
-
}]
|
42
|
-
},
|
43
|
-
field_intro_header: {
|
44
|
-
values: [{
|
45
|
-
value: "LF1 Header - Link Tiles"
|
46
|
-
}]
|
47
|
-
},
|
48
|
-
field_s_list_items: {
|
49
|
-
values: [{
|
50
|
-
type: "list_items_1",
|
51
|
-
field_list_items: {
|
52
|
-
values: [{
|
53
|
-
type: "m_link_tile",
|
54
|
-
field_ltm_description: {
|
55
|
-
values: [{
|
56
|
-
value: "Link Description Section 1"
|
57
|
-
}]
|
58
|
-
},
|
59
|
-
field_ltm_destination: {
|
60
|
-
values: [{
|
61
|
-
title: "",
|
62
|
-
url: "#location1"
|
63
|
-
}]
|
64
|
-
},
|
65
|
-
field_ltm_header: {
|
66
|
-
values: [{
|
67
|
-
value: "Link Tile 1"
|
68
|
-
}]
|
69
|
-
}
|
70
|
-
}, {
|
71
|
-
field_ltm_description: {
|
72
|
-
values: [{
|
73
|
-
value: "Link Description Section 2"
|
74
|
-
}]
|
75
|
-
},
|
76
|
-
field_ltm_destination: {
|
77
|
-
values: [{
|
78
|
-
title: "",
|
79
|
-
url: "/listfeatures"
|
80
|
-
}]
|
81
|
-
},
|
82
|
-
field_ltm_header: {
|
83
|
-
values: [{
|
84
|
-
value: "Link Tile 2"
|
85
|
-
}]
|
86
|
-
}
|
87
|
-
}, {
|
88
|
-
type: "m_link_tile",
|
89
|
-
field_ltm_description: {
|
90
|
-
values: [{
|
91
|
-
value: "Link Description Section 3"
|
92
|
-
}]
|
93
|
-
},
|
94
|
-
field_ltm_destination: {
|
95
|
-
values: [{
|
96
|
-
title: "",
|
97
|
-
url: "https://www.trimble.com"
|
98
|
-
}]
|
99
|
-
},
|
100
|
-
field_ltm_header: {
|
101
|
-
values: [{
|
102
|
-
value: "Link Tile 3"
|
103
|
-
}]
|
104
|
-
}
|
105
|
-
}]
|
106
|
-
}
|
107
|
-
}]
|
108
|
-
},
|
109
|
-
field_section_theme: {
|
110
|
-
values: [{
|
111
|
-
name: "Theme 1",
|
112
|
-
description: "theme-1",
|
113
|
-
field_theme_background_color: {
|
114
|
-
values: [{
|
115
|
-
value: "#f2f2f2"
|
116
|
-
}]
|
117
|
-
},
|
118
|
-
field_theme_color: {
|
119
|
-
values: [{
|
120
|
-
value: "#000000"
|
121
|
-
}]
|
122
|
-
},
|
123
|
-
field_theme_cta_one: {
|
124
|
-
values: [{
|
125
|
-
value: "primary--5"
|
126
|
-
}]
|
127
|
-
},
|
128
|
-
field_theme_cta_two: {
|
129
|
-
values: [{
|
130
|
-
value: "secondary--5"
|
131
|
-
}]
|
132
|
-
}
|
133
|
-
}]
|
134
|
-
}
|
135
|
-
};
|
136
|
-
var _labels = {
|
137
|
-
learnMoreText: "Learn!"
|
138
|
-
};
|
139
|
-
|
140
|
-
// TEST
|
141
|
-
|
142
|
-
it("should return formatted data", function () {
|
143
|
-
var _formatLinks = jest.fn().mockImplementation(function (link) {
|
144
|
-
return link;
|
145
|
-
});
|
146
|
-
var response = (0, _formatListFeatOneV["default"])(data, "en", true, _labels, null, _formatLinks);
|
147
|
-
var expected = {
|
148
|
-
content: {
|
149
|
-
header: "LF1 Header - Link Tiles",
|
150
|
-
subHeader: "Desc",
|
151
|
-
ctas: {
|
152
|
-
ctaOne: {
|
153
|
-
text: "Button",
|
154
|
-
url: "/features"
|
155
|
-
},
|
156
|
-
ctaTwo: {
|
157
|
-
text: "Second",
|
158
|
-
url: "/listfeatures"
|
159
|
-
}
|
160
|
-
},
|
161
|
-
cardOne: {
|
162
|
-
header: "Link Tile 1",
|
163
|
-
text: "Link Description Section 1",
|
164
|
-
cta: {
|
165
|
-
url: "#location1",
|
166
|
-
text: "Link One"
|
167
|
-
}
|
168
|
-
},
|
169
|
-
cardTwo: {
|
170
|
-
header: "Link Tile 2",
|
171
|
-
text: "Link Description Section 2",
|
172
|
-
cta: {
|
173
|
-
url: "/listfeatures",
|
174
|
-
text: "Link Two"
|
175
|
-
}
|
176
|
-
},
|
177
|
-
theme: {
|
178
|
-
color: "blue",
|
179
|
-
background: "purple",
|
180
|
-
ctaOne: "bright",
|
181
|
-
ctaTwo: "dark"
|
182
|
-
},
|
183
|
-
type: "mock type"
|
184
|
-
},
|
185
|
-
anchor: "mock anchor!",
|
186
|
-
type: "mock type"
|
187
|
-
};
|
188
|
-
expect(response).toStrictEqual(expected);
|
189
|
-
});
|
190
|
-
it("should handle junk without crashing", function () {});
|
191
|
-
});
|