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/formatListFeatOneV2Cards.test.js
DELETED
@@ -1,87 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatOneV2Cards = _interopRequireDefault(require("../formatListFeatOneV2Cards"));
|
5
|
-
describe("formatListFeatOneV2Cards", function () {
|
6
|
-
var mockData = [{
|
7
|
-
type: "m_link_tile",
|
8
|
-
field_ltm_description: {
|
9
|
-
values: [{
|
10
|
-
value: "Link Description Section 1"
|
11
|
-
}]
|
12
|
-
},
|
13
|
-
field_ltm_destination: {
|
14
|
-
values: [{
|
15
|
-
title: "Link One",
|
16
|
-
url: "#location1"
|
17
|
-
}]
|
18
|
-
},
|
19
|
-
field_ltm_header: {
|
20
|
-
values: [{
|
21
|
-
value: "Link Tile 1"
|
22
|
-
}]
|
23
|
-
}
|
24
|
-
}, {
|
25
|
-
field_ltm_description: {
|
26
|
-
values: [{
|
27
|
-
value: "Link Description Section 2"
|
28
|
-
}]
|
29
|
-
},
|
30
|
-
field_ltm_destination: {
|
31
|
-
values: [{
|
32
|
-
title: "Link Two",
|
33
|
-
url: "/listfeatures"
|
34
|
-
}]
|
35
|
-
},
|
36
|
-
field_ltm_header: {
|
37
|
-
values: [{
|
38
|
-
value: "Link Tile 2"
|
39
|
-
}]
|
40
|
-
}
|
41
|
-
}, {
|
42
|
-
type: "m_link_tile",
|
43
|
-
field_ltm_description: {
|
44
|
-
values: [{
|
45
|
-
value: "Link Description Section 3"
|
46
|
-
}]
|
47
|
-
},
|
48
|
-
field_ltm_destination: {
|
49
|
-
values: [{
|
50
|
-
title: "",
|
51
|
-
url: "https://www.trimble.com"
|
52
|
-
}]
|
53
|
-
},
|
54
|
-
field_ltm_header: {
|
55
|
-
values: [{
|
56
|
-
value: "Link Tile 3"
|
57
|
-
}]
|
58
|
-
}
|
59
|
-
}];
|
60
|
-
it("should return formatted data", function () {
|
61
|
-
var _formatLinks = jest.fn().mockImplementation(function (link) {
|
62
|
-
return link;
|
63
|
-
});
|
64
|
-
var response = (0, _formatListFeatOneV2Cards["default"])(mockData, "Learn", "en", _formatLinks, true);
|
65
|
-
var expected = {
|
66
|
-
cardOne: {
|
67
|
-
header: "Link Tile 1",
|
68
|
-
text: "Link Description Section 1",
|
69
|
-
cta: {
|
70
|
-
url: "#location1",
|
71
|
-
text: "Link One",
|
72
|
-
className: undefined
|
73
|
-
},
|
74
|
-
type: "m_link_tile"
|
75
|
-
},
|
76
|
-
cardTwo: null
|
77
|
-
};
|
78
|
-
expect(response).toStrictEqual(expected);
|
79
|
-
});
|
80
|
-
it("should handle junk without crashing", function () {
|
81
|
-
var response = (0, _formatListFeatOneV2Cards["default"])(null, "what", "hmm");
|
82
|
-
expect(response).toEqual({
|
83
|
-
cardOne: null,
|
84
|
-
cardTwo: null
|
85
|
-
});
|
86
|
-
});
|
87
|
-
});
|
@@ -1,120 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatSeven = _interopRequireDefault(require("../formatListFeatSeven"));
|
5
|
-
var _listFeatSevenData = {
|
6
|
-
theme: "theme-2",
|
7
|
-
intro_alignment: "intro-align-center",
|
8
|
-
intro_header: "ListFeat Seven",
|
9
|
-
intro_description: "<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",
|
10
|
-
anchor_toggle: false,
|
11
|
-
anchor_text: "",
|
12
|
-
anchor_slug: "slug",
|
13
|
-
specific_type: "pbo_listfeat_7",
|
14
|
-
type: "listfeat_7",
|
15
|
-
human_name: "ListFeat 7 - List 3-Column Variable Content",
|
16
|
-
ctas: [{
|
17
|
-
text: "Primary",
|
18
|
-
url: "internal:#",
|
19
|
-
type: "primary"
|
20
|
-
}, {
|
21
|
-
text: "Secondary",
|
22
|
-
url: "internal:#",
|
23
|
-
type: "secondary"
|
24
|
-
}],
|
25
|
-
list: [{
|
26
|
-
type: "m_bare_item",
|
27
|
-
header: "Segment 1",
|
28
|
-
image: {
|
29
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
30
|
-
alt: "fpo"
|
31
|
-
},
|
32
|
-
big_image: {
|
33
|
-
source: null,
|
34
|
-
alt: null
|
35
|
-
},
|
36
|
-
description_old: null,
|
37
|
-
description: "<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"
|
38
|
-
}, {
|
39
|
-
type: "m_bare_item",
|
40
|
-
header: "Segment 1",
|
41
|
-
image: {
|
42
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
43
|
-
alt: "fpo"
|
44
|
-
},
|
45
|
-
big_image: {
|
46
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/1600x900.png",
|
47
|
-
alt: "fpo"
|
48
|
-
},
|
49
|
-
video: {
|
50
|
-
code: null,
|
51
|
-
poster: {
|
52
|
-
fieldName: "field_video_poster",
|
53
|
-
fieldType: "media",
|
54
|
-
mid: null,
|
55
|
-
source: null,
|
56
|
-
alt: null
|
57
|
-
},
|
58
|
-
source: null
|
59
|
-
},
|
60
|
-
description_old: null,
|
61
|
-
description: "<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"
|
62
|
-
}, {
|
63
|
-
type: "m_bare_item",
|
64
|
-
header: "Segment 1",
|
65
|
-
image: {
|
66
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
67
|
-
alt: "fpo"
|
68
|
-
},
|
69
|
-
big_image: {
|
70
|
-
source: null,
|
71
|
-
alt: null
|
72
|
-
},
|
73
|
-
video: {
|
74
|
-
code: "UE9ItB8RwIM",
|
75
|
-
poster: {
|
76
|
-
fieldName: "field_video_poster",
|
77
|
-
fieldType: "media",
|
78
|
-
mid: "21",
|
79
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
80
|
-
alt: "fpo"
|
81
|
-
},
|
82
|
-
source: "youtube"
|
83
|
-
},
|
84
|
-
description_old: null,
|
85
|
-
description: "<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"
|
86
|
-
}],
|
87
|
-
pid: 0
|
88
|
-
};
|
89
|
-
var expected = {
|
90
|
-
theme: "theme-2",
|
91
|
-
type: "list_feat_7",
|
92
|
-
content: {
|
93
|
-
header: "ListFeat Seven",
|
94
|
-
subHeader: "<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",
|
95
|
-
type: "list_feat_7",
|
96
|
-
ctas: ["ctaOne", "ctaTwo"],
|
97
|
-
cards: ["card one", "card two"]
|
98
|
-
},
|
99
|
-
anchor: null
|
100
|
-
};
|
101
|
-
var _languageCode = "en";
|
102
|
-
var _languageEnabled = true;
|
103
|
-
var _labels = null;
|
104
|
-
var _fpoBox = "/fpobox.png";
|
105
|
-
var _formatLinks = jest.fn().mockReturnValue(["link one"]);
|
106
|
-
jest.mock("../formatListFeatSevenCards");
|
107
|
-
jest.mock("../../formatCTAs");
|
108
|
-
describe("formatListFeatSeven", function () {
|
109
|
-
beforeEach(function () {
|
110
|
-
return jest.clearAllMocks();
|
111
|
-
});
|
112
|
-
test("it should return formatted data", function () {
|
113
|
-
var response = (0, _formatListFeatSeven["default"])(_listFeatSevenData, _languageCode, _languageEnabled, _labels, _fpoBox, _formatLinks);
|
114
|
-
expect(response).toStrictEqual(expected);
|
115
|
-
});
|
116
|
-
test("it should handle junk data without crashing", function () {
|
117
|
-
var response = (0, _formatListFeatSeven["default"])(null, null, _languageEnabled, _labels, _fpoBox, {});
|
118
|
-
expect(response).toBeDefined();
|
119
|
-
});
|
120
|
-
});
|
package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSevenCards.test.js
DELETED
@@ -1,111 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatSevenCards = _interopRequireDefault(require("../formatListFeatSevenCards"));
|
5
|
-
var expectedCards = [{
|
6
|
-
header: "Segment 1",
|
7
|
-
text: "<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",
|
8
|
-
thumbnail: {
|
9
|
-
src: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
10
|
-
alt: "fpo"
|
11
|
-
}
|
12
|
-
}, {
|
13
|
-
header: "Segment 1",
|
14
|
-
text: "<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",
|
15
|
-
thumbnail: null,
|
16
|
-
image: {
|
17
|
-
src: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/1600x900.png",
|
18
|
-
alt: "fpo"
|
19
|
-
}
|
20
|
-
}, {
|
21
|
-
header: "Segment 1",
|
22
|
-
text: "<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",
|
23
|
-
thumbnail: {
|
24
|
-
src: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
25
|
-
alt: "fpo"
|
26
|
-
},
|
27
|
-
video: {
|
28
|
-
url: "https://www.youtube.com/watch?v=UE9ItB8RwIM",
|
29
|
-
uuid: null
|
30
|
-
},
|
31
|
-
vidyard: false
|
32
|
-
}];
|
33
|
-
var _cardData = [{
|
34
|
-
type: "m_bare_item",
|
35
|
-
header: "Segment 1",
|
36
|
-
image: {
|
37
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
38
|
-
alt: "fpo"
|
39
|
-
},
|
40
|
-
big_image: {
|
41
|
-
source: null,
|
42
|
-
alt: null
|
43
|
-
},
|
44
|
-
description_old: null,
|
45
|
-
description: "<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"
|
46
|
-
}, {
|
47
|
-
type: "m_bare_item",
|
48
|
-
header: "Segment 1",
|
49
|
-
image: {
|
50
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
51
|
-
alt: "fpo"
|
52
|
-
},
|
53
|
-
big_image: {
|
54
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/1600x900.png",
|
55
|
-
alt: "fpo"
|
56
|
-
},
|
57
|
-
video: {
|
58
|
-
code: null,
|
59
|
-
poster: {
|
60
|
-
fieldName: "field_video_poster",
|
61
|
-
fieldType: "media",
|
62
|
-
mid: null,
|
63
|
-
source: null,
|
64
|
-
alt: null
|
65
|
-
},
|
66
|
-
source: null
|
67
|
-
},
|
68
|
-
description_old: null,
|
69
|
-
description: "<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"
|
70
|
-
}, {
|
71
|
-
type: "m_bare_item",
|
72
|
-
header: "Segment 1",
|
73
|
-
image: {
|
74
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
75
|
-
alt: "fpo"
|
76
|
-
},
|
77
|
-
big_image: {
|
78
|
-
source: null,
|
79
|
-
alt: null
|
80
|
-
},
|
81
|
-
video: {
|
82
|
-
code: "UE9ItB8RwIM",
|
83
|
-
poster: {
|
84
|
-
fieldName: "field_video_poster",
|
85
|
-
fieldType: "media",
|
86
|
-
mid: "21",
|
87
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
88
|
-
alt: "fpo"
|
89
|
-
},
|
90
|
-
source: "youtube"
|
91
|
-
},
|
92
|
-
description_old: null,
|
93
|
-
description: "<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"
|
94
|
-
}];
|
95
|
-
var _languageCode = "en";
|
96
|
-
var _languageEnabled = true;
|
97
|
-
var _fpoBox = "/fpobox.png";
|
98
|
-
var _fpoSquare = "/fposquare.png";
|
99
|
-
describe("formatListFeatSevenCards", function () {
|
100
|
-
beforeEach(function () {
|
101
|
-
return jest.clearAllMocks();
|
102
|
-
});
|
103
|
-
test("it should return formatted data", function () {
|
104
|
-
var response = (0, _formatListFeatSevenCards["default"])(_cardData, _languageCode, _languageEnabled, _fpoBox, _fpoSquare);
|
105
|
-
expect(response).toStrictEqual(expectedCards);
|
106
|
-
});
|
107
|
-
test("it should handle junk data without crashing", function () {
|
108
|
-
var response = (0, _formatListFeatSevenCards["default"])(null, null, _languageCode, _languageEnabled, _fpoBox, _fpoSquare, {});
|
109
|
-
expect(response).toStrictEqual([]);
|
110
|
-
});
|
111
|
-
});
|
@@ -1,67 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatSix = _interopRequireDefault(require("../formatListFeatSix"));
|
5
|
-
var _formatCTAs = _interopRequireDefault(require("../../formatCTAs"));
|
6
|
-
var _formatListFeatSixCards = _interopRequireDefault(require("../formatListFeatSixCards"));
|
7
|
-
var _languageCode = "en";
|
8
|
-
var _languageEnabled = true;
|
9
|
-
var _labels = null;
|
10
|
-
var _fpoBox = "/fpobox.png";
|
11
|
-
var _formatLinks = jest.fn().mockReturnValue(["link one"]);
|
12
|
-
jest.mock("../formatListFeatSixCards");
|
13
|
-
jest.mock("../../formatCTAs");
|
14
|
-
var _listFeatSixData = {
|
15
|
-
theme: "theme-1",
|
16
|
-
intro_alignment: "intro-align-center",
|
17
|
-
intro_header: "ListFeature 6",
|
18
|
-
intro_description: "<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",
|
19
|
-
anchor_toggle: false,
|
20
|
-
anchor_text: "",
|
21
|
-
anchor_slug: "slug",
|
22
|
-
specific_type: "pbo_listfeat_6",
|
23
|
-
type: "listfeat_6",
|
24
|
-
human_name: "ListFeat 6 - List Variable Text Block",
|
25
|
-
ctas: [{
|
26
|
-
text: "Primary",
|
27
|
-
url: "internal:#",
|
28
|
-
type: "primary"
|
29
|
-
}, {
|
30
|
-
text: "Secondary",
|
31
|
-
url: "internal:#",
|
32
|
-
type: "secondary"
|
33
|
-
}],
|
34
|
-
list: [{
|
35
|
-
type: "m_wys_block",
|
36
|
-
text: "<p>The aesthetic quality of <strong>a product is integral</strong> to its usefulness because product<em>s we use every day affe</em>ct our person and our well-being. But only well-executed objects can be beautiful.</p>\r\n"
|
37
|
-
}, {
|
38
|
-
type: "m_wys_block",
|
39
|
-
text: "<p>The aesthetic quality of <strong>a product is integral</strong> to its usefulness because product<em>s we use every day affe</em>ct our person and our well-being. But only well-executed objects can be beautiful.</p>\r\n"
|
40
|
-
}],
|
41
|
-
pid: 0
|
42
|
-
};
|
43
|
-
var expected = {
|
44
|
-
theme: "theme-1",
|
45
|
-
content: {
|
46
|
-
header: "ListFeature 6",
|
47
|
-
subHeader: "<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",
|
48
|
-
ctas: ["ctaOne", "ctaTwo"],
|
49
|
-
type: "list_feat_6",
|
50
|
-
list: ["card one", "card two"]
|
51
|
-
},
|
52
|
-
type: "list_feat_6",
|
53
|
-
anchor: null
|
54
|
-
};
|
55
|
-
describe("formatListFeatSix", function () {
|
56
|
-
beforeEach(function () {
|
57
|
-
return jest.clearAllMocks();
|
58
|
-
});
|
59
|
-
test("it should return formatted data", function () {
|
60
|
-
var response = (0, _formatListFeatSix["default"])(_listFeatSixData, _languageCode, _languageEnabled, _labels, _fpoBox, _formatLinks);
|
61
|
-
expect(response).toStrictEqual(expected);
|
62
|
-
});
|
63
|
-
test("it should handle junk data without crashing", function () {
|
64
|
-
var response = (0, _formatListFeatSix["default"])(null, null, _languageEnabled, _labels, _fpoBox, {});
|
65
|
-
expect(response).toBeDefined();
|
66
|
-
});
|
67
|
-
});
|
package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSixCards.test.js
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatSixCards = _interopRequireDefault(require("../formatListFeatSixCards"));
|
5
|
-
var expectedCards = ["<p>The aesthetic quality of <strong>a product is integral</strong> to its usefulness because product<em>s we use every day affe</em>ct our person and our well-being. But only well-executed objects can be beautiful.</p>\r\n", "<p>The aesthetic quality of <strong>a product is integral</strong> to its usefulness because product<em>s we use every day affe</em>ct our person and our well-being. But only well-executed objects can be beautiful.</p>\r\n"];
|
6
|
-
var _cardData = [{
|
7
|
-
type: "m_wys_block",
|
8
|
-
text: "<p>The aesthetic quality of <strong>a product is integral</strong> to its usefulness because product<em>s we use every day affe</em>ct our person and our well-being. But only well-executed objects can be beautiful.</p>\r\n"
|
9
|
-
}, {
|
10
|
-
type: "m_wys_block",
|
11
|
-
text: "<p>The aesthetic quality of <strong>a product is integral</strong> to its usefulness because product<em>s we use every day affe</em>ct our person and our well-being. But only well-executed objects can be beautiful.</p>\r\n"
|
12
|
-
}];
|
13
|
-
describe("formatListFeatSixCards", function () {
|
14
|
-
beforeEach(function () {
|
15
|
-
return jest.clearAllMocks();
|
16
|
-
});
|
17
|
-
test("it should return formatted data", function () {
|
18
|
-
var response = (0, _formatListFeatSixCards["default"])(_cardData);
|
19
|
-
expect(response).toStrictEqual(expectedCards);
|
20
|
-
});
|
21
|
-
test("it should handle junk data without crashing", function () {
|
22
|
-
var response = (0, _formatListFeatSixCards["default"])(null, {});
|
23
|
-
expect(response).toStrictEqual([]);
|
24
|
-
});
|
25
|
-
});
|
@@ -1,242 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatSixV = _interopRequireDefault(require("../formatListFeatSixV2"));
|
5
|
-
jest.mock("../formatListFeatV2");
|
6
|
-
describe("formatListFeatSixV2", function () {
|
7
|
-
// MOCK DATA //
|
8
|
-
var data = {
|
9
|
-
id: "1186",
|
10
|
-
entity_type: "paragraph",
|
11
|
-
type: "pbo_listfeat_6",
|
12
|
-
published: true,
|
13
|
-
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_text_blocks"],
|
14
|
-
parent_field_name: {
|
15
|
-
field_type: "string",
|
16
|
-
values: [{
|
17
|
-
value: "field_main_content"
|
18
|
-
}]
|
19
|
-
},
|
20
|
-
field_anchor_text: null,
|
21
|
-
field_anchor_toggle: {
|
22
|
-
field_type: "boolean",
|
23
|
-
values: [false]
|
24
|
-
},
|
25
|
-
field_animation_toggle: null,
|
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: "1171",
|
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 6"
|
84
|
-
}]
|
85
|
-
},
|
86
|
-
field_section_theme: {
|
87
|
-
field_type: "taxonomy_term",
|
88
|
-
values: [{
|
89
|
-
id: "16",
|
90
|
-
entity_type: "taxonomy_term",
|
91
|
-
type: "organism_themes",
|
92
|
-
name: "Theme 4",
|
93
|
-
description: "theme-4",
|
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: "#005f9e"
|
101
|
-
}]
|
102
|
-
},
|
103
|
-
field_theme_color: {
|
104
|
-
field_type: "string",
|
105
|
-
values: [{
|
106
|
-
value: "#ffffff"
|
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_text_blocks: {
|
124
|
-
field_type: "paragraph",
|
125
|
-
values: [{
|
126
|
-
id: "1176",
|
127
|
-
entity_type: "paragraph",
|
128
|
-
type: "m_wys_block",
|
129
|
-
published: true,
|
130
|
-
fields: ["parent_field_name", "field_wys_text_area"],
|
131
|
-
parent_field_name: {
|
132
|
-
field_type: "string",
|
133
|
-
values: [{
|
134
|
-
value: "field_text_blocks"
|
135
|
-
}]
|
136
|
-
},
|
137
|
-
field_wys_text_area: {
|
138
|
-
field_type: "text_long",
|
139
|
-
values: [{
|
140
|
-
value: "<p>The aesthetic quality of <strong>a product is integral</strong> to its usefulness because product<em>s we use every day affe</em>ct our person and our well-being. But only well-executed objects can be beautiful.</p>\r\n",
|
141
|
-
format: "wysiwyg_editor"
|
142
|
-
}]
|
143
|
-
}
|
144
|
-
}, {
|
145
|
-
id: "1181",
|
146
|
-
entity_type: "paragraph",
|
147
|
-
type: "m_wys_block",
|
148
|
-
published: true,
|
149
|
-
fields: ["parent_field_name", "field_wys_text_area"],
|
150
|
-
parent_field_name: {
|
151
|
-
field_type: "string",
|
152
|
-
values: [{
|
153
|
-
value: "field_text_blocks"
|
154
|
-
}]
|
155
|
-
},
|
156
|
-
field_wys_text_area: {
|
157
|
-
field_type: "text_long",
|
158
|
-
values: [{
|
159
|
-
value: "<p>The aesthetic quality of <strong>a product is integral</strong> to its usefulness because product<em>s we use every day affe</em>ct our person and our well-being. But only well-executed objects can be beautiful.</p>\r\n",
|
160
|
-
format: "wysiwyg_editor"
|
161
|
-
}]
|
162
|
-
}
|
163
|
-
}]
|
164
|
-
}
|
165
|
-
};
|
166
|
-
var _labels = {
|
167
|
-
learnMoreText: "Learn!"
|
168
|
-
};
|
169
|
-
|
170
|
-
// TEST
|
171
|
-
|
172
|
-
it("should return formatted data", function () {
|
173
|
-
var _formatLinks = jest.fn().mockImplementation(function (link) {
|
174
|
-
return link;
|
175
|
-
});
|
176
|
-
var _formatListFeatSixCardsV2 = jest.fn().mockImplementation(function () {
|
177
|
-
return [{
|
178
|
-
card: "cardOne"
|
179
|
-
}, {
|
180
|
-
card: "cardTwo"
|
181
|
-
}];
|
182
|
-
});
|
183
|
-
var response = (0, _formatListFeatSixV["default"])(data, "en", true, _labels, null, _formatLinks);
|
184
|
-
var expected = {
|
185
|
-
content: {
|
186
|
-
header: "LF1 Header - Link Tiles",
|
187
|
-
subHeader: "Desc",
|
188
|
-
ctas: {
|
189
|
-
ctaOne: {
|
190
|
-
text: "Button",
|
191
|
-
url: "/features"
|
192
|
-
},
|
193
|
-
ctaTwo: {
|
194
|
-
text: "Second",
|
195
|
-
url: "/listfeatures"
|
196
|
-
}
|
197
|
-
},
|
198
|
-
list: ["<p>The aesthetic quality of <strong>a product is integral</strong> to its usefulness because product<em>s we use every day affe</em>ct our person and our well-being. But only well-executed objects can be beautiful.</p>\r\n", "<p>The aesthetic quality of <strong>a product is integral</strong> to its usefulness because product<em>s we use every day affe</em>ct our person and our well-being. But only well-executed objects can be beautiful.</p>\r\n"],
|
199
|
-
type: "list_feat_6",
|
200
|
-
theme: {
|
201
|
-
color: "blue",
|
202
|
-
background: "purple",
|
203
|
-
ctaOne: "bright",
|
204
|
-
ctaTwo: "dark"
|
205
|
-
}
|
206
|
-
},
|
207
|
-
type: "list_feat_6",
|
208
|
-
anchor: "mock anchor!"
|
209
|
-
};
|
210
|
-
expect(response).toStrictEqual(expected);
|
211
|
-
});
|
212
|
-
it("should handle junk without crashing", function () {
|
213
|
-
var response = (0, _formatListFeatSixV["default"])(null);
|
214
|
-
var expected = {
|
215
|
-
content: {
|
216
|
-
header: "LF1 Header - Link Tiles",
|
217
|
-
subHeader: "Desc",
|
218
|
-
ctas: {
|
219
|
-
ctaOne: {
|
220
|
-
text: "Button",
|
221
|
-
url: "/features"
|
222
|
-
},
|
223
|
-
ctaTwo: {
|
224
|
-
text: "Second",
|
225
|
-
url: "/listfeatures"
|
226
|
-
}
|
227
|
-
},
|
228
|
-
list: [],
|
229
|
-
type: "list_feat_6",
|
230
|
-
theme: {
|
231
|
-
color: "blue",
|
232
|
-
background: "purple",
|
233
|
-
ctaOne: "bright",
|
234
|
-
ctaTwo: "dark"
|
235
|
-
}
|
236
|
-
},
|
237
|
-
type: "list_feat_6",
|
238
|
-
anchor: "mock anchor!"
|
239
|
-
};
|
240
|
-
expect(response).toStrictEqual(expected);
|
241
|
-
});
|
242
|
-
});
|