luna-one 3.1.592 → 3.1.594
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/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.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 +1 -0
- 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/luna/{other-organisms → components}/Footer/GlobalFooter.js +4 -4
- 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 +1 -1
- 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.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 +1 -1
- package/dist/luna/components/MegaMenu/menu-generators/FullSubMenu.js +1 -1
- package/dist/luna/components/MegaMenu/menu-generators/PartialSubMenu.js +1 -1
- package/dist/luna/components/MegaMenu/menu-generators/SubMenu.js +1 -1
- package/dist/luna/components/MegaMenu/menu-generators/TertiaryMenu.js +1 -1
- package/dist/luna/components/MegaMenu/menu-generators/UncollapsedLinks.js +1 -1
- package/dist/luna/components/MobileNav/MobileNav.js +2 -2
- package/dist/luna/components/NavBar/NavigationBar.stories.js +2297 -0
- package/dist/luna/components/NavBar/NavigationBarDocumentation.mdx +245 -0
- package/dist/{application → luna}/components/NavBarHandler/NavBarHandler.js +1 -1
- package/dist/luna/components/NavBarTop/NavBarTop.js +2 -2
- 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/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.stories.js +46 -0
- package/dist/luna/{other-organisms → components}/SubNav/SiblingsMenu.js +3 -3
- package/dist/luna/{other-organisms → components}/SubNav/SubNav.js +2 -2
- 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.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/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 +2 -2
- 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/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/NavMiniMenu.js +0 -0
- /package/dist/luna/{other-organisms → components}/NavBar/NavOption.js +0 -0
- /package/dist/luna/{other-organisms → components}/NavBar/UtilityNav.js +0 -0
- /package/dist/luna/{other-organisms → components}/NavBar/useNavPosition.js +0 -0
- /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackage.js +0 -0
- /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackage.scss +0 -0
- /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackageMethods.js +0 -0
- /package/dist/luna/{featurettes → components}/PullQuote/PullQuote.js +0 -0
- /package/dist/luna/{featurettes → components}/PullQuote/PullQuote.scss +0 -0
- /package/dist/luna/{featurettes → components}/PullQuote/ico-quote-white.svg +0 -0
- /package/dist/luna/{featurettes → components}/PullQuote/ico-quote.svg +0 -0
- /package/dist/luna/{other-organisms → components}/SubNav/SubNav.scss +0 -0
- /package/dist/luna/{heroes → components}/SuperHero/SuperHero.js +0 -0
- /package/dist/luna/{heroes → components}/SuperHero/SuperHero.scss +0 -0
- /package/dist/luna/{heroes → components}/SuperHero/SuperHeroMethods.js +0 -0
- /package/dist/luna/{heroes → components}/SuperHero/useCompareContainerHeights.js +0 -0
- /package/dist/{application/assets → luna}/images/carat-down.svg +0 -0
- /package/dist/{application/assets → luna}/images/carat-up.svg +0 -0
- /package/dist/{application/assets → luna}/images/close-blue.svg +0 -0
- /package/dist/{application/assets → luna}/images/close.svg +0 -0
- /package/dist/{application/assets → luna}/images/ellipses.svg +0 -0
- /package/dist/{application/assets → luna}/images/facebook.svg +0 -0
- /package/dist/{application/assets → luna}/images/favicon.ico +0 -0
- /package/dist/{application/assets → luna}/images/fpoBox.png +0 -0
- /package/dist/{application/assets → luna}/images/fpoSquare.png +0 -0
- /package/dist/{application/assets → luna}/images/instagram.svg +0 -0
- /package/dist/{application/assets → luna}/images/linkedin.svg +0 -0
- /package/dist/{application/assets → luna}/images/loading-mini.gif +0 -0
- /package/dist/{application/assets → luna}/images/trimble_logo.png +0 -0
- /package/dist/{application/assets → luna}/images/twitter.svg +0 -0
- /package/dist/{application/assets → luna}/images/youtube.svg +0 -0
- /package/dist/{application → luna/utils}/hooks/useInnerPageNav.js +0 -0
@@ -1,96 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatThree = _interopRequireDefault(require("../formatListFeatThree"));
|
5
|
-
var _listFeatThreeData = {
|
6
|
-
theme: null,
|
7
|
-
intro_alignment: null,
|
8
|
-
intro_header: "Header",
|
9
|
-
intro_description: "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.",
|
10
|
-
anchor_toggle: false,
|
11
|
-
anchor_text: "",
|
12
|
-
anchor_slug: "slug",
|
13
|
-
specific_type: "pbo_listfeat_3",
|
14
|
-
type: "listfeat_3",
|
15
|
-
human_name: "ListFeat 3 - List Card Group",
|
16
|
-
ctas: [{
|
17
|
-
text: null,
|
18
|
-
url: "",
|
19
|
-
type: "primary"
|
20
|
-
}, {
|
21
|
-
text: null,
|
22
|
-
url: "",
|
23
|
-
type: "secondary"
|
24
|
-
}],
|
25
|
-
list: [{
|
26
|
-
type: "m_card",
|
27
|
-
header: "Header",
|
28
|
-
image: {
|
29
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
30
|
-
alt: "fpo"
|
31
|
-
},
|
32
|
-
description: "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.",
|
33
|
-
cta: {
|
34
|
-
text: "Learn More",
|
35
|
-
url: "/homepage"
|
36
|
-
}
|
37
|
-
}, {
|
38
|
-
type: "m_card",
|
39
|
-
header: "Header",
|
40
|
-
image: {
|
41
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
42
|
-
alt: "fpo"
|
43
|
-
},
|
44
|
-
description: "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.",
|
45
|
-
cta: {
|
46
|
-
text: "Learn More",
|
47
|
-
url: "#444"
|
48
|
-
}
|
49
|
-
}, {
|
50
|
-
type: "m_card",
|
51
|
-
header: "Header",
|
52
|
-
image: {
|
53
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
54
|
-
alt: "fpo"
|
55
|
-
},
|
56
|
-
description: "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.",
|
57
|
-
cta: {
|
58
|
-
text: "Learn More",
|
59
|
-
url: "/testpage"
|
60
|
-
}
|
61
|
-
}],
|
62
|
-
pid: 0
|
63
|
-
};
|
64
|
-
var expected = {
|
65
|
-
type: "list_feat_3",
|
66
|
-
theme: null,
|
67
|
-
content: {
|
68
|
-
header: "Header",
|
69
|
-
subHeader: "The aesthetic quality of a product is integral to its usefulness because products we use every day affect our person and our well-being. But only well-executed objects can be beautiful.",
|
70
|
-
ctas: ["ctaOne", "ctaTwo"],
|
71
|
-
type: "list_feat_3",
|
72
|
-
cards: ["card one", "card two"]
|
73
|
-
},
|
74
|
-
anchor: null
|
75
|
-
};
|
76
|
-
var _languageCode = "en";
|
77
|
-
var _languageEnabled = true;
|
78
|
-
var _labels = null;
|
79
|
-
var _fpoBox = "/fpobox.png";
|
80
|
-
var _fpoSquare = "./fposquare.png";
|
81
|
-
jest.mock("../formatListFeatThreeCards");
|
82
|
-
jest.mock("../../formatCTAs");
|
83
|
-
describe("formatListFeatThree", function () {
|
84
|
-
beforeEach(function () {
|
85
|
-
return jest.clearAllMocks();
|
86
|
-
});
|
87
|
-
test("it should return formatted data", function () {
|
88
|
-
var _formatLinks = jest.fn().mockReturnValue(["link one"]);
|
89
|
-
var response = (0, _formatListFeatThree["default"])(_listFeatThreeData, _languageCode, _languageEnabled, _labels, _fpoBox, _formatLinks, _fpoSquare);
|
90
|
-
expect(response).toStrictEqual(expected);
|
91
|
-
});
|
92
|
-
test("it should handle junk data without crashing", function () {
|
93
|
-
var response = (0, _formatListFeatThree["default"])(null, null, _languageEnabled, _labels, _fpoBox, {});
|
94
|
-
expect(response).toBeDefined();
|
95
|
-
});
|
96
|
-
});
|
package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeCards.test.js
DELETED
@@ -1,94 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatThreeCards = _interopRequireDefault(require("../formatListFeatThreeCards"));
|
5
|
-
var expectedCards = [{
|
6
|
-
header: "Header",
|
7
|
-
text: "The aesthetic quality of a product is integral to its usefulness because products we use every day affect our person and our well-being. But only well-executed objects can be beautiful.",
|
8
|
-
image: {
|
9
|
-
src: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
10
|
-
alt: "fpo"
|
11
|
-
},
|
12
|
-
link: {
|
13
|
-
url: "link one",
|
14
|
-
text: "Learn More"
|
15
|
-
}
|
16
|
-
}, {
|
17
|
-
header: "Header",
|
18
|
-
text: "The aesthetic quality of a product is integral to its usefulness because products we use every day affect our person and our well-being. But only well-executed objects can be beautiful.",
|
19
|
-
image: {
|
20
|
-
src: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
21
|
-
alt: "fpo"
|
22
|
-
},
|
23
|
-
link: {
|
24
|
-
url: "link one",
|
25
|
-
text: "Learn More"
|
26
|
-
}
|
27
|
-
}, {
|
28
|
-
header: "Header",
|
29
|
-
text: "The aesthetic quality of a product is integral to its usefulness because products we use every day affect our person and our well-being. But only well-executed objects can be beautiful.",
|
30
|
-
image: {
|
31
|
-
src: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
32
|
-
alt: "fpo"
|
33
|
-
},
|
34
|
-
link: {
|
35
|
-
url: "link one",
|
36
|
-
text: "Learn More"
|
37
|
-
}
|
38
|
-
}];
|
39
|
-
var _cardData = [{
|
40
|
-
type: "m_card",
|
41
|
-
header: "Header",
|
42
|
-
image: {
|
43
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
44
|
-
alt: "fpo"
|
45
|
-
},
|
46
|
-
description: "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.",
|
47
|
-
cta: {
|
48
|
-
text: "Learn More",
|
49
|
-
url: "/homepage"
|
50
|
-
}
|
51
|
-
}, {
|
52
|
-
type: "m_card",
|
53
|
-
header: "Header",
|
54
|
-
image: {
|
55
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
56
|
-
alt: "fpo"
|
57
|
-
},
|
58
|
-
description: "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.",
|
59
|
-
cta: {
|
60
|
-
text: "Learn More",
|
61
|
-
url: "#444"
|
62
|
-
}
|
63
|
-
}, {
|
64
|
-
type: "m_card",
|
65
|
-
header: "Header",
|
66
|
-
image: {
|
67
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/600x300.png",
|
68
|
-
alt: "fpo"
|
69
|
-
},
|
70
|
-
description: "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.",
|
71
|
-
cta: {
|
72
|
-
text: "Learn More",
|
73
|
-
url: "/testpage"
|
74
|
-
}
|
75
|
-
}];
|
76
|
-
var _defaultText = "Home";
|
77
|
-
var _languageCode = "en";
|
78
|
-
var _languageEnabled = true;
|
79
|
-
var _fpoSquare = "/fposquare.png";
|
80
|
-
describe("formatListFeatThreeCards", function () {
|
81
|
-
beforeEach(function () {
|
82
|
-
return jest.clearAllMocks();
|
83
|
-
});
|
84
|
-
test("it should return formatted data", function () {
|
85
|
-
var _formatLinks = jest.fn().mockReturnValue("link one");
|
86
|
-
var response = (0, _formatListFeatThreeCards["default"])(_cardData, _defaultText, _languageCode, _languageEnabled, _fpoSquare, _formatLinks);
|
87
|
-
expect(response).toStrictEqual(expectedCards);
|
88
|
-
});
|
89
|
-
test("it should handle junk data without crashing", function () {
|
90
|
-
var _formatLinks = jest.fn().mockReturnValue("link one");
|
91
|
-
var response = (0, _formatListFeatThreeCards["default"])(null, null, _languageCode, _languageEnabled, _fpoSquare, {});
|
92
|
-
expect(response).toStrictEqual([]);
|
93
|
-
});
|
94
|
-
});
|
package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeV2.test.js
DELETED
@@ -1,242 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatThreeV = _interopRequireDefault(require("../formatListFeatThreeV2"));
|
5
|
-
jest.mock("../formatListFeatThreeV2Cards");
|
6
|
-
jest.mock("../formatListFeatV2");
|
7
|
-
describe("formatListFeatThreeV2", function () {
|
8
|
-
var _data = {
|
9
|
-
type: "pbo_listfeat_1",
|
10
|
-
field_anchor_text: null,
|
11
|
-
field_anchor_toggle: {
|
12
|
-
values: [false]
|
13
|
-
},
|
14
|
-
field_intro_alignment: {
|
15
|
-
values: [{
|
16
|
-
name: "Center Align",
|
17
|
-
description: "intro-align-center"
|
18
|
-
}]
|
19
|
-
},
|
20
|
-
field_intro_cta: {
|
21
|
-
values: [{
|
22
|
-
field_cta_primary_1: {
|
23
|
-
values: [{
|
24
|
-
title: "Button",
|
25
|
-
url: "/features"
|
26
|
-
}]
|
27
|
-
},
|
28
|
-
field_cta_secondary_1: {
|
29
|
-
values: [{
|
30
|
-
title: "Second",
|
31
|
-
url: "/listfeatures"
|
32
|
-
}]
|
33
|
-
}
|
34
|
-
}]
|
35
|
-
},
|
36
|
-
field_intro_description: {
|
37
|
-
values: [{
|
38
|
-
value: "Desc",
|
39
|
-
format: "full_html"
|
40
|
-
}]
|
41
|
-
},
|
42
|
-
field_intro_header: {
|
43
|
-
values: [{
|
44
|
-
value: "LF1 Header - Link Tiles"
|
45
|
-
}]
|
46
|
-
},
|
47
|
-
field_s_cards: {
|
48
|
-
values: [{
|
49
|
-
field_card_cta: {
|
50
|
-
values: [{
|
51
|
-
title: "Learn More",
|
52
|
-
url: "/node/21"
|
53
|
-
}]
|
54
|
-
},
|
55
|
-
field_card_description: {
|
56
|
-
values: [{
|
57
|
-
value: "Laboris magna consequat sunt ut ex."
|
58
|
-
}]
|
59
|
-
},
|
60
|
-
field_card_header: {
|
61
|
-
values: [{
|
62
|
-
value: "Header 1"
|
63
|
-
}]
|
64
|
-
},
|
65
|
-
field_card_image: {
|
66
|
-
values: [{
|
67
|
-
field_media_image: {
|
68
|
-
values: [{
|
69
|
-
alt: "fpo",
|
70
|
-
source: "/2019-11/600x300.png"
|
71
|
-
}]
|
72
|
-
}
|
73
|
-
}]
|
74
|
-
}
|
75
|
-
}, {
|
76
|
-
field_card_cta: {
|
77
|
-
values: [{
|
78
|
-
title: "Learn Something",
|
79
|
-
url: "/node/22"
|
80
|
-
}]
|
81
|
-
},
|
82
|
-
field_card_description: {
|
83
|
-
values: [{
|
84
|
-
value: "Non magna ut est sit dolor."
|
85
|
-
}]
|
86
|
-
},
|
87
|
-
field_card_header: {
|
88
|
-
values: [{
|
89
|
-
value: "Header 2"
|
90
|
-
}]
|
91
|
-
},
|
92
|
-
field_card_image: {
|
93
|
-
values: [{
|
94
|
-
field_media_image: {
|
95
|
-
values: [{
|
96
|
-
alt: "fpo",
|
97
|
-
source: "/2019-11/5000x300.png"
|
98
|
-
}]
|
99
|
-
}
|
100
|
-
}]
|
101
|
-
}
|
102
|
-
}]
|
103
|
-
},
|
104
|
-
field_section_theme: {
|
105
|
-
values: [{
|
106
|
-
name: "Theme 1",
|
107
|
-
description: "theme-1",
|
108
|
-
field_theme_background_color: {
|
109
|
-
values: [{
|
110
|
-
value: "#f2f2f2"
|
111
|
-
}]
|
112
|
-
},
|
113
|
-
field_theme_color: {
|
114
|
-
values: [{
|
115
|
-
value: "#000000"
|
116
|
-
}]
|
117
|
-
},
|
118
|
-
field_theme_cta_one: {
|
119
|
-
values: [{
|
120
|
-
value: "primary--5"
|
121
|
-
}]
|
122
|
-
},
|
123
|
-
field_theme_cta_two: {
|
124
|
-
values: [{
|
125
|
-
value: "secondary--5"
|
126
|
-
}]
|
127
|
-
}
|
128
|
-
}]
|
129
|
-
}
|
130
|
-
};
|
131
|
-
var _labels = {
|
132
|
-
learnMoreText: "Learny"
|
133
|
-
};
|
134
|
-
var _fpoBox = "./fpo.png";
|
135
|
-
var _formatLinks = jest.fn();
|
136
|
-
it("should return formatted data", function () {
|
137
|
-
var response = (0, _formatListFeatThreeV["default"])(_data, "en", true, _labels, _fpoBox, _formatLinks);
|
138
|
-
var expected = {
|
139
|
-
content: {
|
140
|
-
header: "LF1 Header - Link Tiles",
|
141
|
-
subHeader: "Desc",
|
142
|
-
ctas: {
|
143
|
-
ctaOne: {
|
144
|
-
text: "Button",
|
145
|
-
url: "/features"
|
146
|
-
},
|
147
|
-
ctaTwo: {
|
148
|
-
text: "Second",
|
149
|
-
url: "/listfeatures"
|
150
|
-
}
|
151
|
-
},
|
152
|
-
cards: [{
|
153
|
-
header: "Header 1",
|
154
|
-
text: "Laboris magna consequat sunt ut ex.",
|
155
|
-
image: {
|
156
|
-
src: "/2019-11/600x300.png",
|
157
|
-
alt: "fpo"
|
158
|
-
},
|
159
|
-
link: {
|
160
|
-
text: "Learn More",
|
161
|
-
url: "/node/21"
|
162
|
-
}
|
163
|
-
}, {
|
164
|
-
header: "Header 2",
|
165
|
-
text: "Non magna ut est sit dolor.",
|
166
|
-
image: {
|
167
|
-
src: "/2019-11/5000x300.png",
|
168
|
-
alt: "fpo"
|
169
|
-
},
|
170
|
-
link: {
|
171
|
-
text: "Learn Something",
|
172
|
-
url: "/node/22"
|
173
|
-
}
|
174
|
-
}],
|
175
|
-
theme: {
|
176
|
-
color: "blue",
|
177
|
-
background: "purple",
|
178
|
-
ctaOne: "bright",
|
179
|
-
ctaTwo: "dark"
|
180
|
-
},
|
181
|
-
type: "mock type"
|
182
|
-
},
|
183
|
-
anchor: "mock anchor!",
|
184
|
-
type: "mock type"
|
185
|
-
};
|
186
|
-
expect(response).toStrictEqual(expected);
|
187
|
-
});
|
188
|
-
it("should handle junk without crashing", function () {
|
189
|
-
var response = (0, _formatListFeatThreeV["default"])(null);
|
190
|
-
|
191
|
-
// response is a result of mocked functins
|
192
|
-
var expected = {
|
193
|
-
content: {
|
194
|
-
header: "LF1 Header - Link Tiles",
|
195
|
-
subHeader: "Desc",
|
196
|
-
ctas: {
|
197
|
-
ctaOne: {
|
198
|
-
text: "Button",
|
199
|
-
url: "/features"
|
200
|
-
},
|
201
|
-
ctaTwo: {
|
202
|
-
text: "Second",
|
203
|
-
url: "/listfeatures"
|
204
|
-
}
|
205
|
-
},
|
206
|
-
cards: [{
|
207
|
-
header: "Header 1",
|
208
|
-
text: "Laboris magna consequat sunt ut ex.",
|
209
|
-
image: {
|
210
|
-
src: "/2019-11/600x300.png",
|
211
|
-
alt: "fpo"
|
212
|
-
},
|
213
|
-
link: {
|
214
|
-
text: "Learn More",
|
215
|
-
url: "/node/21"
|
216
|
-
}
|
217
|
-
}, {
|
218
|
-
header: "Header 2",
|
219
|
-
text: "Non magna ut est sit dolor.",
|
220
|
-
image: {
|
221
|
-
src: "/2019-11/5000x300.png",
|
222
|
-
alt: "fpo"
|
223
|
-
},
|
224
|
-
link: {
|
225
|
-
text: "Learn Something",
|
226
|
-
url: "/node/22"
|
227
|
-
}
|
228
|
-
}],
|
229
|
-
theme: {
|
230
|
-
color: "blue",
|
231
|
-
background: "purple",
|
232
|
-
ctaOne: "bright",
|
233
|
-
ctaTwo: "dark"
|
234
|
-
},
|
235
|
-
type: "mock type"
|
236
|
-
},
|
237
|
-
anchor: "mock anchor!",
|
238
|
-
type: "mock type"
|
239
|
-
};
|
240
|
-
expect(response).toStrictEqual(expected);
|
241
|
-
});
|
242
|
-
});
|
package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeV2Cards.test.js
DELETED
@@ -1,96 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatThreeV2Cards = _interopRequireDefault(require("../formatListFeatThreeV2Cards"));
|
5
|
-
describe("formatListFeatThreeV2Cards", function () {
|
6
|
-
var _data = [{
|
7
|
-
field_card_cta: {
|
8
|
-
values: [{
|
9
|
-
title: "Learn More",
|
10
|
-
url: "/node/21"
|
11
|
-
}]
|
12
|
-
},
|
13
|
-
field_card_description: {
|
14
|
-
values: [{
|
15
|
-
value: "Laboris magna consequat sunt ut ex."
|
16
|
-
}]
|
17
|
-
},
|
18
|
-
field_card_header: {
|
19
|
-
values: [{
|
20
|
-
value: "Header 1"
|
21
|
-
}]
|
22
|
-
},
|
23
|
-
field_card_image: {
|
24
|
-
values: [{
|
25
|
-
field_media_image: {
|
26
|
-
values: [{
|
27
|
-
alt: "fpo",
|
28
|
-
source: "/2019-11/600x300.png"
|
29
|
-
}]
|
30
|
-
}
|
31
|
-
}]
|
32
|
-
}
|
33
|
-
}, {
|
34
|
-
field_card_cta: {
|
35
|
-
values: [{
|
36
|
-
title: "Learn Something",
|
37
|
-
url: "/node/22"
|
38
|
-
}]
|
39
|
-
},
|
40
|
-
field_card_description: {
|
41
|
-
values: [{
|
42
|
-
value: "Non magna ut est sit dolor."
|
43
|
-
}]
|
44
|
-
},
|
45
|
-
field_card_header: {
|
46
|
-
values: [{
|
47
|
-
value: "Header 2"
|
48
|
-
}]
|
49
|
-
},
|
50
|
-
field_card_image: {
|
51
|
-
values: [{
|
52
|
-
field_media_image: {
|
53
|
-
values: [{
|
54
|
-
alt: "fpo",
|
55
|
-
source: "/2019-11/5000x300.png"
|
56
|
-
}]
|
57
|
-
}
|
58
|
-
}]
|
59
|
-
}
|
60
|
-
}];
|
61
|
-
var _fpoBox = "./fpobox.png";
|
62
|
-
var _formatLinks = function _formatLinks(url) {
|
63
|
-
return url;
|
64
|
-
};
|
65
|
-
it("should return formatted data", function () {
|
66
|
-
var response = (0, _formatListFeatThreeV2Cards["default"])(_data, "learn more", "en", true, _fpoBox, _formatLinks);
|
67
|
-
var expected = [{
|
68
|
-
header: "Header 1",
|
69
|
-
text: "Laboris magna consequat sunt ut ex.",
|
70
|
-
image: {
|
71
|
-
src: "/2019-11/600x300.png",
|
72
|
-
alt: "fpo"
|
73
|
-
},
|
74
|
-
link: {
|
75
|
-
text: "Learn More",
|
76
|
-
url: "/node/21"
|
77
|
-
}
|
78
|
-
}, {
|
79
|
-
header: "Header 2",
|
80
|
-
text: "Non magna ut est sit dolor.",
|
81
|
-
image: {
|
82
|
-
src: "/2019-11/5000x300.png",
|
83
|
-
alt: "fpo"
|
84
|
-
},
|
85
|
-
link: {
|
86
|
-
text: "Learn Something",
|
87
|
-
url: "/node/22"
|
88
|
-
}
|
89
|
-
}];
|
90
|
-
expect(response).toStrictEqual(expected);
|
91
|
-
});
|
92
|
-
it("should handle junk without crashing", function () {
|
93
|
-
var response = (0, _formatListFeatThreeV2Cards["default"])(null);
|
94
|
-
expect(response).toStrictEqual([]);
|
95
|
-
});
|
96
|
-
});
|
package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTopSection.test.js
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatTopSection = _interopRequireDefault(require("../formatListFeatTopSection"));
|
5
|
-
describe("formatListFeatTopSection", function () {
|
6
|
-
var mockData = {
|
7
|
-
type: "pbo_listfeat_1",
|
8
|
-
field_intro_cta: {
|
9
|
-
values: [{
|
10
|
-
field_cta_primary_1: {
|
11
|
-
values: [{
|
12
|
-
title: "Button",
|
13
|
-
url: "/features"
|
14
|
-
}]
|
15
|
-
},
|
16
|
-
field_cta_secondary_1: {
|
17
|
-
values: [{
|
18
|
-
title: "Second",
|
19
|
-
url: "/listfeatures"
|
20
|
-
}]
|
21
|
-
}
|
22
|
-
}]
|
23
|
-
},
|
24
|
-
field_intro_description: {
|
25
|
-
values: [{
|
26
|
-
value: "Desc",
|
27
|
-
format: "full_html"
|
28
|
-
}]
|
29
|
-
},
|
30
|
-
field_intro_header: {
|
31
|
-
values: [{
|
32
|
-
value: "LF1 Header - Link Tiles"
|
33
|
-
}]
|
34
|
-
}
|
35
|
-
};
|
36
|
-
it("should return formatted data", function () {
|
37
|
-
var _formatLinks = jest.fn().mockImplementation(function (link) {
|
38
|
-
return link;
|
39
|
-
});
|
40
|
-
var response = (0, _formatListFeatTopSection["default"])(mockData, "en", true, _formatLinks);
|
41
|
-
var expected = {
|
42
|
-
header: "LF1 Header - Link Tiles",
|
43
|
-
subHeader: "Desc",
|
44
|
-
ctas: {
|
45
|
-
ctaOne: {
|
46
|
-
text: "Button",
|
47
|
-
url: "/features",
|
48
|
-
className: undefined
|
49
|
-
},
|
50
|
-
ctaTwo: {
|
51
|
-
text: "Second",
|
52
|
-
url: "/listfeatures",
|
53
|
-
className: undefined
|
54
|
-
}
|
55
|
-
}
|
56
|
-
};
|
57
|
-
expect(response).toStrictEqual(expected);
|
58
|
-
});
|
59
|
-
it("should handle junk without crashing", function () {
|
60
|
-
var response = (null, "", false, null);
|
61
|
-
expect(response).toStrictEqual(null);
|
62
|
-
});
|
63
|
-
});
|
@@ -1,86 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _formatListFeatTwo = _interopRequireDefault(require("../formatListFeatTwo"));
|
5
|
-
var _formatListFeatTwoCards = _interopRequireDefault(require("../formatListFeatTwoCards"));
|
6
|
-
var _listFeatTwoData = {
|
7
|
-
theme: "theme-1",
|
8
|
-
intro_alignment: "intro-align-center",
|
9
|
-
intro_header: "Header",
|
10
|
-
intro_description: "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.",
|
11
|
-
anchor_toggle: false,
|
12
|
-
anchor_text: "",
|
13
|
-
anchor_slug: "slug",
|
14
|
-
specific_type: "pbo_listfeat_2",
|
15
|
-
type: "listfeat_2",
|
16
|
-
human_name: "ListFeat 2 - List Image Circle Group",
|
17
|
-
ctas: [{
|
18
|
-
text: "Button",
|
19
|
-
url: "/video-test-page",
|
20
|
-
type: "primary"
|
21
|
-
}, {
|
22
|
-
text: "Button",
|
23
|
-
url: "#11",
|
24
|
-
type: "secondary"
|
25
|
-
}],
|
26
|
-
list: [{
|
27
|
-
type: "m_headshot",
|
28
|
-
image: {
|
29
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/300x300-specific.png",
|
30
|
-
alt: "fpo"
|
31
|
-
},
|
32
|
-
header: "Title",
|
33
|
-
link: {
|
34
|
-
text: null,
|
35
|
-
url: ""
|
36
|
-
},
|
37
|
-
subtitle: "Subtitle",
|
38
|
-
description: "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."
|
39
|
-
}, {
|
40
|
-
type: "m_headshot",
|
41
|
-
image: {
|
42
|
-
source: "https://back-tekla.tcsengine.com/sites/tekla.trimble.com/files/2019-11/300x300-specific.png",
|
43
|
-
alt: "fpo"
|
44
|
-
},
|
45
|
-
header: "Title",
|
46
|
-
link: {
|
47
|
-
text: "",
|
48
|
-
url: "/feature-1"
|
49
|
-
},
|
50
|
-
subtitle: "Subtitle",
|
51
|
-
description: "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."
|
52
|
-
}],
|
53
|
-
pid: 0
|
54
|
-
};
|
55
|
-
var expected = {
|
56
|
-
content: {
|
57
|
-
header: "Header",
|
58
|
-
subHeader: "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.",
|
59
|
-
type: "list_feat_2",
|
60
|
-
ctas: ["ctaOne", "ctaTwo"],
|
61
|
-
headShotdumplings: ["dumpling one", "dumpling two"]
|
62
|
-
},
|
63
|
-
theme: "theme-1",
|
64
|
-
type: "list_feat_2",
|
65
|
-
anchor: null
|
66
|
-
};
|
67
|
-
var _languageCode = "en";
|
68
|
-
var _languageEnabled = true;
|
69
|
-
var _labels = null;
|
70
|
-
var _fpoBox = "/fpobox.png";
|
71
|
-
var _formatLinks = jest.fn().mockReturnValue(["link one"]);
|
72
|
-
jest.mock("../formatListFeatTwoCards");
|
73
|
-
jest.mock("../../formatCTAs");
|
74
|
-
describe("formatListFeatTwo", function () {
|
75
|
-
beforeEach(function () {
|
76
|
-
jest.clearAllMocks();
|
77
|
-
});
|
78
|
-
test("it should return properly formatted data", function () {
|
79
|
-
var response = (0, _formatListFeatTwo["default"])(_listFeatTwoData, _languageCode, _languageEnabled, _labels, _fpoBox, _formatLinks);
|
80
|
-
expect(response).toStrictEqual(expected);
|
81
|
-
});
|
82
|
-
test("it should handle junk data without crashing", function () {
|
83
|
-
var response = (0, _formatListFeatTwo["default"])(null, null, _languageEnabled, _labels, _fpoBox, {});
|
84
|
-
expect(response).toBeDefined();
|
85
|
-
});
|
86
|
-
});
|