luna-one 3.1.593 → 3.1.594

Sign up to get free protection for your applications and to get access to all the features.
Files changed (526) hide show
  1. package/README.md +2315 -2315
  2. package/dist/global-styles/content/typography.scss +140 -140
  3. package/dist/global-styles/fonts/benton.scss +113 -113
  4. package/dist/global-styles/global-terra.scss +10 -10
  5. package/dist/global-styles/global-vars.scss +599 -599
  6. package/dist/global-styles/layout/_css-grid.scss +20 -20
  7. package/dist/global-styles/layout/_media-queries.scss +35 -35
  8. package/dist/global-styles/layout/_normalize.scss +340 -340
  9. package/dist/global-styles/layout/_reset.scss +13 -13
  10. package/dist/global-styles/mixins/_box-shadow.scss +6 -6
  11. package/dist/global-styles/mixins/_mixins.scss +5 -5
  12. package/dist/global-styles/mixins/_organism-padding-hack.scss +7 -7
  13. package/dist/global-styles/mixins/_typography.scss +102 -102
  14. package/dist/global-styles/mixins/_yiq.scss +50 -50
  15. package/dist/global-styles/mixins/_z-index.scss +3 -3
  16. package/dist/global-styles/terra.scss +15 -15
  17. package/dist/global-styles/utilities/_box-shadow.scss +8 -8
  18. package/dist/global-styles/utilities/_display.scss +48 -48
  19. package/dist/global-styles/utilities/_font-family.scss +15 -15
  20. package/dist/global-styles/utilities/_parallax.scss +23 -23
  21. package/dist/global-styles/utilities/_text-align.scss +24 -24
  22. package/dist/index.js +15 -294
  23. package/dist/luna/components/2x2/2x2.scss +915 -915
  24. package/dist/luna/components/2x2/2x2.stories.js +456 -0
  25. package/dist/luna/components/2x2/2x2Documentation.mdx +77 -0
  26. package/dist/luna/{featurettes → components}/Accordion/Accordion.scss +154 -154
  27. package/dist/luna/components/Accordion/Accordion.stories.js +100 -0
  28. package/dist/luna/components/Accordion/AccordionDocumentation.mdx +46 -0
  29. package/dist/luna/components/AdminCategoryData/AdminCategoryData.scss +81 -81
  30. package/dist/luna/components/AdminCategoryData/AdminCategoryData.stories.js +43 -0
  31. package/dist/luna/components/AdminProductData/AdminProductData.scss +75 -75
  32. package/dist/luna/components/AdminProductData/AdminProductData.stories.js +44 -0
  33. package/dist/luna/components/BlockListItems/BlockListItem.stories.js +2381 -0
  34. package/dist/luna/components/BlockListItems/BlockListItems.scss +285 -285
  35. package/dist/luna/components/BlockListItems/BlockListItemsDocumentation.mdx +339 -0
  36. package/dist/luna/components/BrowserSupportBanner/BrowserSupportBanner.scss +6 -6
  37. package/dist/luna/components/BrowserSupportBanner/BrowserSupportBrowser.stories.js +19 -0
  38. package/dist/luna/components/CTAButtons/CTAButtons.scss +19 -19
  39. package/dist/luna/components/CTAButtons/CTAButtons.stories.js +142 -0
  40. package/dist/luna/components/CTAButtons/CTAButtonsDocumentation.mdx +33 -0
  41. package/dist/luna/{other-organisms → components}/Carousel/Carousel.scss +155 -155
  42. package/dist/luna/components/Carousel/Carousel.stories.js +257 -0
  43. package/dist/luna/components/Carousel/CarouselDocumentation.mdx +161 -0
  44. package/dist/luna/components/ComparisonTable/ComparisonTable.scss +331 -331
  45. package/dist/luna/components/ComparisonTable/ComparisonTable.stories.js +608 -0
  46. package/dist/luna/components/ComparisonTable/ComparisonTableDocumentation.mdx +159 -0
  47. package/dist/luna/components/CtaWithHeader/CTAHeaderText.stories.js +192 -0
  48. package/dist/luna/components/CtaWithHeader/CTAHeaderTextDocumentation.mdx +45 -0
  49. package/dist/luna/components/CtaWithHeader/CtaWithHeader.scss +324 -324
  50. package/dist/luna/components/DataPoint/DataPoint.scss +170 -170
  51. package/dist/luna/components/DataPoint/DataPoint.stories.js +235 -0
  52. package/dist/luna/components/DataPoint/DataPointDocumentation.mdx +40 -0
  53. package/dist/luna/components/EventCard/EventCard.scss +134 -134
  54. package/dist/luna/components/EventCard/EventCard.stories.js +56 -0
  55. package/dist/luna/components/EventCard/EventCardDocumentation.mdx +46 -0
  56. package/dist/luna/{heroes → components}/FilterHero/FilterHero.scss +80 -80
  57. package/dist/luna/components/FilterHero/FilterHero.stories.js +129 -0
  58. package/dist/luna/components/FilterSection/FilterSection.scss +175 -175
  59. package/dist/luna/components/FilterSection/FilterSection.stories.js +174 -0
  60. package/dist/luna/{other-organisms → components}/Flyout/Flyout.scss +367 -367
  61. package/dist/luna/components/Flyout/Flyout.stories.js +216 -0
  62. package/dist/luna/components/Flyout/FlyoutDocumentation.mdx +60 -0
  63. package/dist/luna/{other-organisms → components}/Footer/Footer.scss +484 -484
  64. package/dist/luna/components/Footer/Footer.stories.js +418 -0
  65. package/dist/luna/components/Footer/FooterDocumentation.mdx +133 -0
  66. package/dist/{application → luna}/components/FooterHandler/FooterHandler.js +1 -1
  67. package/dist/luna/{heroes → components}/FullBackgroundHero/FullBackgroundHero.scss +722 -722
  68. package/dist/luna/components/FullBackgroundHero/FullBackgroundHero.stories.js +574 -0
  69. package/dist/luna/components/FullBackgroundHero/FullBackgroundHeroDocumentation.mdx +94 -0
  70. package/dist/luna/components/HTMLEmbed/HTMLEmbed.scss +51 -51
  71. package/dist/luna/components/HTMLEmbed/HTMLEmbed.stories.js +136 -0
  72. package/dist/luna/components/HTMLEmbed/HTMLEmbedDocumentation.mdx +31 -0
  73. package/dist/luna/components/Header/Header.scss +36 -36
  74. package/dist/luna/components/Header/Header.stories.js +75 -0
  75. package/dist/luna/components/Header/HeaderDocumentation.mdx +24 -0
  76. package/dist/luna/{featurettes → components}/IconTextList/IconTextList.scss +124 -124
  77. package/dist/luna/components/IconTextList/IconTextList.stories.js +100 -0
  78. package/dist/luna/components/IconTextList/IconTextListDocumentation.mdx +46 -0
  79. package/dist/luna/components/ImageGallery/ImageGallery.scss +442 -442
  80. package/dist/luna/components/ImageGallery/ImageGallery.stories.js +194 -0
  81. package/dist/luna/components/ImageGallery/ImageGalleryDocumentation.mdx +90 -0
  82. package/dist/luna/components/InPageJumpNav/InPageJumpNav.scss +122 -122
  83. package/dist/luna/components/InPageJumpNav/InPageJumpNav.stories.js +104 -0
  84. package/dist/luna/components/InPageJumpNav/InPageJumpNavDocumentation.mdx +23 -0
  85. package/dist/luna/components/JobPosting/JobPosting.scss +171 -171
  86. package/dist/luna/components/JobPosting/JobPosting.stories.js +76 -0
  87. package/dist/luna/components/JobPosting/JobPostingDocumentation.mdx +69 -0
  88. package/dist/luna/{other-organisms → components}/LanguageSelector/LanguageSelector.js +1 -1
  89. package/dist/luna/{other-organisms → components}/LanguageSelector/LanguageSelector.scss +318 -318
  90. package/dist/luna/components/LanguageSelector/LanguageSelector.stories.js +128 -0
  91. package/dist/luna/components/LanguageSelector/LanguageSelectorDocumentation.mdx +120 -0
  92. package/dist/luna/components/LinkList/LinkList.scss +59 -59
  93. package/dist/luna/components/LinkList/LinkList.stories.js +170 -0
  94. package/dist/luna/components/LinkList/LinkListDocumentation.mdx +54 -0
  95. package/dist/luna/components/LoadingSpinner/LoadingSpinner.scss +34 -34
  96. package/dist/luna/components/LoadingSpinner/LoadingSpinner.stories.js +53 -0
  97. package/dist/luna/components/Login/Login.scss +180 -180
  98. package/dist/luna/components/Login/Login.stories.js +86 -0
  99. package/dist/luna/{other-organisms → components}/MarketoForm/MarketoForm.scss +56 -56
  100. package/dist/luna/components/MarketoForm/MarketoForm.stories.js +65 -0
  101. package/dist/luna/components/MarketoForm/MarketoFormDocumentation.mdx +1 -0
  102. package/dist/luna/components/MegaMenu/MegaMenu.js +1 -1
  103. package/dist/luna/components/MegaMenu/MegaMenu.scss +570 -570
  104. package/dist/luna/components/MegaMenu/menu-generators/FullSubMenu.js +1 -1
  105. package/dist/luna/components/MegaMenu/menu-generators/PartialSubMenu.js +1 -1
  106. package/dist/luna/components/MegaMenu/menu-generators/SubMenu.js +1 -1
  107. package/dist/luna/components/MegaMenu/menu-generators/TertiaryMenu.js +1 -1
  108. package/dist/luna/components/MegaMenu/menu-generators/UncollapsedLinks.js +1 -1
  109. package/dist/luna/components/MobileLogin/MobileLogin.scss +38 -38
  110. package/dist/luna/components/MobileMegaMenu/MobileMegaMenu.scss +289 -289
  111. package/dist/luna/components/MobileMenu/MobileMenu.scss +70 -70
  112. package/dist/luna/components/MobileNav/MobileNav.js +2 -2
  113. package/dist/luna/components/MobileNav/MobileNav.scss +286 -286
  114. package/dist/luna/{other-organisms → components}/NavBar/NavBar.scss +628 -628
  115. package/dist/luna/components/NavBar/NavigationBar.stories.js +2297 -0
  116. package/dist/luna/components/NavBar/NavigationBarDocumentation.mdx +245 -0
  117. package/dist/{application → luna}/components/NavBarHandler/NavBarHandler.js +1 -1
  118. package/dist/luna/components/NavBarTop/NavBarTop.js +2 -2
  119. package/dist/luna/components/NavBarTop/NavBarTop.scss +403 -403
  120. package/dist/luna/components/NavSearch/NavSearch.js +1 -1
  121. package/dist/luna/components/NavSearch/NavSearch.scss +130 -130
  122. package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntries.scss +339 -339
  123. package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntries.stories.js +118 -0
  124. package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntriesDocumentation.mdx +89 -0
  125. package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntriesMethods.js +1 -1
  126. package/dist/luna/components/OverlayNotice/OverlayNotice.scss +247 -247
  127. package/dist/luna/components/OverlayNotice/OverlayNotice.stories.js +96 -0
  128. package/dist/luna/components/OverlayNotice/OverlayNoticeDocumentation.mdx +45 -0
  129. package/dist/luna/components/Pagination/Pagination.scss +27 -27
  130. package/dist/luna/components/ProductSummary/ProductSummary.scss +273 -273
  131. package/dist/luna/components/ProductSummary/ProductSummary.stories.js +163 -0
  132. package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackage.scss +194 -194
  133. package/dist/luna/components/ProductsPackage/ProductsPackage.stories.js +384 -0
  134. package/dist/luna/components/ProseLayout/ProseLayout.scss +384 -384
  135. package/dist/luna/components/ProseLayout/ProseLayout.stories.js +187 -0
  136. package/dist/luna/components/ProseLayout/ProseLayoutDocumentation.mdx +93 -0
  137. package/dist/luna/{featurettes → components}/PullQuote/PullQuote.scss +400 -400
  138. package/dist/luna/components/PullQuote/PullQuote.stories.js +556 -0
  139. package/dist/luna/components/PullQuote/PullQuoteDocumentation.mdx +60 -0
  140. package/dist/luna/{featurettes → components}/PullQuote/ico-quote-white.svg +3 -3
  141. package/dist/luna/{featurettes → components}/PullQuote/ico-quote.svg +3 -3
  142. package/dist/luna/components/RegionCard/RegionCard.scss +86 -86
  143. package/dist/luna/components/ResourceGrid/ResourceGrid.scss +34 -34
  144. package/dist/luna/components/ResourceGrid/ResourceGrid.stories.js +765 -0
  145. package/dist/luna/components/ResourceGrid/ResourceGridDocumentation.mdx +102 -0
  146. package/dist/luna/components/ScrollInPlace/ScrollInPlace.scss +219 -219
  147. package/dist/luna/components/ScrollInPlace/ScrollInPlace.stories.js +171 -0
  148. package/dist/luna/components/ScrollInPlace/ScrollInPlaceDocumentation.mdx +123 -0
  149. package/dist/luna/components/SketchUpPricingCard/SketchUpPricingCard.scss +142 -142
  150. package/dist/luna/components/SketchUpPricingCard/SketchUpPricingCard.stories.js +91 -0
  151. package/dist/luna/components/SlideOutFeat/SlideOutFeat.scss +124 -124
  152. package/dist/luna/components/SlideOutFeat/SlideOutFeat.stories.js +32 -0
  153. package/dist/luna/components/StoreFrontCard/StoreFrontCard.scss +434 -434
  154. package/dist/luna/components/StoreFrontCard/StoreFrontCard.stories.js +46 -0
  155. package/dist/luna/{other-organisms → components}/SubNav/SiblingsMenu.js +3 -3
  156. package/dist/luna/{other-organisms → components}/SubNav/SubNav.js +2 -2
  157. package/dist/luna/{other-organisms → components}/SubNav/SubNav.scss +274 -274
  158. package/dist/luna/{heroes → components}/SuperHero/SuperHero.scss +804 -804
  159. package/dist/luna/components/SuperHero/SuperHero.stories.js +806 -0
  160. package/dist/luna/components/SuperHero/SuperHeroDocumentation.mdx +57 -0
  161. package/dist/luna/components/SupportCard/SupportCard.scss +134 -134
  162. package/dist/luna/components/SupportCard/SupportCard.stories.js +76 -0
  163. package/dist/luna/components/Tabs/Tabs.scss +871 -871
  164. package/dist/luna/components/Tabs/Tabs.stories.js +585 -0
  165. package/dist/luna/components/Tabs/TabsDocumentation.mdx +94 -0
  166. package/dist/luna/components/TimeBasedList/TimeBasedList.scss +394 -394
  167. package/dist/luna/components/TimeBasedList/TimeBasedList.stories.js +297 -0
  168. package/dist/luna/components/TimeBasedList/TimeBasedListDocumentation.mdx +123 -0
  169. package/dist/luna/components/TrainerCard/TrainerCard.scss +51 -51
  170. package/dist/luna/components/TrainerCard/TrainerCard.stories.js +39 -0
  171. package/dist/luna/components/TrialForm/TrialComponents/TrialSpecifics.scss +44 -44
  172. package/dist/luna/components/TrialForm/TrialComponents/TrialSummary.scss +57 -57
  173. package/dist/luna/components/TrialForm/TrialFormStart/TrialFormStart.scss +28 -28
  174. package/dist/luna/components/TrialForm/TrialFormStart/TrialFormStart.stories.js +69 -0
  175. package/dist/luna/components/TrialForm/images/check.svg +3 -3
  176. package/dist/luna/components/TrialForm/images/form-border-bottom-dark.svg +4 -4
  177. package/dist/luna/components/TrialForm/images/form-border-bottom-light.svg +4 -4
  178. package/dist/luna/components/TrialForm/images/form-border-top-dark.svg +4 -4
  179. package/dist/luna/components/TrialForm/images/form-border-top-light.svg +4 -4
  180. package/dist/luna/components/UnboundedCard/UnboundedCard.scss +108 -108
  181. package/dist/luna/components/UnboundedCard/playIcon.svg +17 -17
  182. package/dist/luna/components/VariableContentCard/VariableContentCard.scss +253 -253
  183. package/dist/luna/components/Video/Video.scss +209 -209
  184. package/dist/luna/components/Video/Video.stories.js +135 -0
  185. package/dist/luna/components/Video/VideoDocumentation.mdx +56 -0
  186. package/dist/luna/components/VidyardModal/VidyardModal.scss +34 -34
  187. package/dist/luna/components/WaffleMenu/WaffleMenu.js +1 -1
  188. package/dist/luna/components/WaffleMenu/WaffleMenu.scss +73 -73
  189. package/dist/luna/images/arrow-diagonal-black.svg +13 -13
  190. package/dist/luna/images/arrow-diagonal-blue.svg +13 -13
  191. package/dist/luna/images/arrow-diagonal-white.svg +13 -13
  192. package/dist/luna/images/bulletpoint.svg +3 -3
  193. package/dist/luna/images/callout-icon.svg +3 -3
  194. package/dist/{application/assets → luna}/images/carat-down.svg +3 -3
  195. package/dist/{application/assets → luna}/images/carat-up.svg +3 -3
  196. package/dist/luna/images/check-blue.svg +4 -4
  197. package/dist/luna/images/circle-arrow-right-black.svg +3 -3
  198. package/dist/luna/images/circle-arrow-right-white.svg +3 -3
  199. package/dist/luna/images/circle-arrow.svg +3 -3
  200. package/dist/{application/assets → luna}/images/close-blue.svg +4 -4
  201. package/dist/luna/images/close-button.svg +42 -42
  202. package/dist/luna/images/close-dark-navy.svg +3 -3
  203. package/dist/luna/images/close-icon.svg +3 -3
  204. package/dist/{application/assets → luna}/images/close.svg +3 -3
  205. package/dist/luna/images/collapse-close-blue.svg +5 -5
  206. package/dist/luna/images/collapse-close-gold.svg +5 -5
  207. package/dist/luna/images/collapse-open-blue.svg +4 -4
  208. package/dist/luna/images/collapse-open-gold.svg +4 -4
  209. package/dist/luna/images/cross-medium-blue.svg +4 -4
  210. package/dist/luna/images/cross-medium-white.svg +5 -5
  211. package/dist/luna/images/down-caret-dark-blue.svg +4 -4
  212. package/dist/luna/images/down-caret-dark-gray.svg +4 -4
  213. package/dist/luna/images/down-caret-light-gray.svg +4 -4
  214. package/dist/luna/images/downArrow.svg +36 -36
  215. package/dist/{application/assets → luna}/images/ellipses.svg +6 -6
  216. package/dist/luna/images/external-arrow-blue.svg +11 -11
  217. package/dist/luna/images/external-arrow-white-theme.svg +12 -12
  218. package/dist/luna/images/external-arrow.svg +12 -12
  219. package/dist/{application/assets → luna}/images/facebook.svg +13 -13
  220. package/dist/luna/images/form-border-top-light.svg +4 -4
  221. package/dist/luna/images/frame-intersection.svg +3 -3
  222. package/dist/luna/images/gallery-image-corner-border.svg +3 -3
  223. package/dist/luna/images/green-tick.svg +3 -3
  224. package/dist/{application/assets → luna}/images/instagram.svg +19 -19
  225. package/dist/luna/images/internal-arrow-blue.svg +15 -15
  226. package/dist/luna/images/internal-arrow-white-theme.svg +15 -15
  227. package/dist/luna/images/internal-arrow.svg +15 -15
  228. package/dist/{application/assets → luna}/images/linkedin.svg +15 -15
  229. package/dist/luna/images/logo-icon.svg +17 -17
  230. package/dist/luna/images/pdf-doc.svg +9 -9
  231. package/dist/luna/images/play.svg +17 -17
  232. package/dist/luna/images/right-caret-dark-blue.svg +3 -3
  233. package/dist/luna/images/right-caret-light-gray.svg +4 -4
  234. package/dist/luna/images/right-caret-light-yellow-stroke.svg +9 -9
  235. package/dist/luna/images/right-caret-light-yellow.svg +4 -4
  236. package/dist/luna/images/right-caret-medium-gray.svg +4 -4
  237. package/dist/luna/images/search.svg +9 -9
  238. package/dist/luna/images/skipicon.svg +154 -154
  239. package/dist/luna/images/text-doc.svg +9 -9
  240. package/dist/luna/images/text-lines.svg +22 -22
  241. package/dist/luna/images/tooltip-close-icon.svg +3 -3
  242. package/dist/luna/images/tooltip-icon.svg +3 -3
  243. package/dist/{application/assets → luna}/images/twitter.svg +17 -17
  244. package/dist/luna/images/up-arrow.svg +36 -36
  245. package/dist/luna/images/up-right-arrow.svg +9 -9
  246. package/dist/luna/images/user-profile.svg +37 -37
  247. package/dist/luna/images/user.svg +4 -4
  248. package/dist/luna/images/waffle.svg +11 -11
  249. package/dist/luna/images/worldwide.svg +19 -19
  250. package/dist/{application/assets → luna}/images/youtube.svg +14 -14
  251. package/package.json +91 -91
  252. package/dist/application/components/HelmetHandler/HelmetHandler.js +0 -40
  253. package/dist/application/components/Loading/Loading.js +0 -22
  254. package/dist/application/components/Loading/Loading.scss +0 -10
  255. package/dist/application/components/Stack/Stack.js +0 -413
  256. package/dist/application/hooks/tests/useErrorPageData.test.js +0 -74
  257. package/dist/application/hooks/tests/useFetch.test.js +0 -70
  258. package/dist/application/hooks/tests/useFooterData.test.js +0 -106
  259. package/dist/application/hooks/tests/useFooterResponse.test.js +0 -70
  260. package/dist/application/hooks/tests/useFooterURL.test.js +0 -46
  261. package/dist/application/hooks/tests/useInnerPageNav.test.js +0 -36
  262. package/dist/application/hooks/tests/useLanguage.test.js +0 -57
  263. package/dist/application/hooks/tests/useLanguages.test.js +0 -133
  264. package/dist/application/hooks/tests/useMetadata.test.js +0 -33
  265. package/dist/application/hooks/tests/useNavResponse.test.js +0 -136
  266. package/dist/application/hooks/tests/useNavURL.test.js +0 -49
  267. package/dist/application/hooks/tests/usePageFetch.test.js +0 -203
  268. package/dist/application/hooks/tests/useRegions.test.js +0 -234
  269. package/dist/application/hooks/tests/useRoutes.test.js +0 -116
  270. package/dist/application/hooks/tests/useSiteData.test.js +0 -86
  271. package/dist/application/hooks/useErrorPageData.js +0 -59
  272. package/dist/application/hooks/useFetch.js +0 -67
  273. package/dist/application/hooks/useFooterData.js +0 -45
  274. package/dist/application/hooks/useFooterResponse.js +0 -56
  275. package/dist/application/hooks/useFooterURL.js +0 -32
  276. package/dist/application/hooks/useLanguage.js +0 -44
  277. package/dist/application/hooks/useLanguages.js +0 -66
  278. package/dist/application/hooks/useMetadata.js +0 -23
  279. package/dist/application/hooks/useNavData.js +0 -45
  280. package/dist/application/hooks/useNavResponse.js +0 -59
  281. package/dist/application/hooks/useNavURL.js +0 -41
  282. package/dist/application/hooks/usePageFetch.js +0 -109
  283. package/dist/application/hooks/useRegions.js +0 -149
  284. package/dist/application/hooks/useRoutes.js +0 -59
  285. package/dist/application/hooks/useScrollTo.js +0 -60
  286. package/dist/application/hooks/useSiteData.js +0 -58
  287. package/dist/application/methods/__mocks__/formatFooterDataMethods.js +0 -54
  288. package/dist/application/methods/formatContentSections.js +0 -130
  289. package/dist/application/methods/formatFooterDataMethods.js +0 -82
  290. package/dist/application/methods/formatMenuSiteData.js +0 -45
  291. package/dist/application/methods/formatMenus.js +0 -120
  292. package/dist/application/methods/locationRedirect.js +0 -16
  293. package/dist/application/methods/organismFormat/__mocks__/formatAnchors.js +0 -11
  294. package/dist/application/methods/organismFormat/__mocks__/formatCTAs.js +0 -10
  295. package/dist/application/methods/organismFormat/__mocks__/formatTheme.js +0 -15
  296. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatFive.js +0 -12
  297. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatFour.js +0 -12
  298. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatOne.js +0 -12
  299. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatSeven.js +0 -12
  300. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatThree.js +0 -12
  301. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatTwoA.js +0 -12
  302. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatTwoB.js +0 -12
  303. package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatTwoBIcons.js +0 -14
  304. package/dist/application/methods/organismFormat/feats/__mocks__/formatPullQuote.js +0 -12
  305. package/dist/application/methods/organismFormat/feats/formatFeatFive.js +0 -39
  306. package/dist/application/methods/organismFormat/feats/formatFeatFour.js +0 -36
  307. package/dist/application/methods/organismFormat/feats/formatFeatOne.js +0 -52
  308. package/dist/application/methods/organismFormat/feats/formatFeatSeven.js +0 -193
  309. package/dist/application/methods/organismFormat/feats/formatFeatThree.js +0 -41
  310. package/dist/application/methods/organismFormat/feats/formatFeatTwoA.js +0 -37
  311. package/dist/application/methods/organismFormat/feats/formatFeatTwoAFolds.js +0 -27
  312. package/dist/application/methods/organismFormat/feats/formatFeatTwoB.js +0 -40
  313. package/dist/application/methods/organismFormat/feats/formatFeatTwoBIcons.js +0 -20
  314. package/dist/application/methods/organismFormat/feats/formatPullQuote.js +0 -49
  315. package/dist/application/methods/organismFormat/feats/tests/formatFeatFive.test.js +0 -173
  316. package/dist/application/methods/organismFormat/feats/tests/formatFeatFour.test.js +0 -140
  317. package/dist/application/methods/organismFormat/feats/tests/formatFeatOne.test.js +0 -204
  318. package/dist/application/methods/organismFormat/feats/tests/formatFeatSeven.test.js +0 -680
  319. package/dist/application/methods/organismFormat/feats/tests/formatFeatThree.test.js +0 -142
  320. package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoA.test.js +0 -342
  321. package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoAFolds.test.js +0 -99
  322. package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoB.test.js +0 -293
  323. package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoBIcons.test.js +0 -78
  324. package/dist/application/methods/organismFormat/feats/tests/formatPullQuote.test.js +0 -178
  325. package/dist/application/methods/organismFormat/formatAnchors.js +0 -16
  326. package/dist/application/methods/organismFormat/formatCTAs.js +0 -34
  327. package/dist/application/methods/organismFormat/formatTheme.js +0 -29
  328. package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroFour.js +0 -12
  329. package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroOne.js +0 -12
  330. package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroSix.js +0 -12
  331. package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroThree.js +0 -12
  332. package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroTwo.js +0 -12
  333. package/dist/application/methods/organismFormat/heroes/formatHeroFour.js +0 -39
  334. package/dist/application/methods/organismFormat/heroes/formatHeroOne.js +0 -56
  335. package/dist/application/methods/organismFormat/heroes/formatHeroSeven.js +0 -56
  336. package/dist/application/methods/organismFormat/heroes/formatHeroSix.js +0 -51
  337. package/dist/application/methods/organismFormat/heroes/formatHeroThree.js +0 -58
  338. package/dist/application/methods/organismFormat/heroes/formatHeroTwo.js +0 -42
  339. package/dist/application/methods/organismFormat/heroes/tests/formatHeroFour.test.js +0 -245
  340. package/dist/application/methods/organismFormat/heroes/tests/formatHeroOne.test.js +0 -165
  341. package/dist/application/methods/organismFormat/heroes/tests/formatHeroSeven.test.js +0 -198
  342. package/dist/application/methods/organismFormat/heroes/tests/formatHeroSix.test.js +0 -196
  343. package/dist/application/methods/organismFormat/heroes/tests/formatHeroThree.test.js +0 -185
  344. package/dist/application/methods/organismFormat/heroes/tests/formatHeroTwo.test.js +0 -205
  345. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatFive.js +0 -12
  346. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatFour.js +0 -12
  347. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatFourCards.js +0 -10
  348. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatOne.js +0 -12
  349. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatOneCards.js +0 -17
  350. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatOneV2Cards.js +0 -27
  351. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSeven.js +0 -12
  352. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSevenCards.js +0 -10
  353. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSix.js +0 -12
  354. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSixCards.js +0 -10
  355. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatThree.js +0 -12
  356. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatThreeCards.js +0 -10
  357. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatThreeV2Cards.js +0 -32
  358. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTopSection.js +0 -23
  359. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTwo.js +0 -12
  360. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTwoCards.js +0 -10
  361. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTwoV2Cards.js +0 -34
  362. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatType.js +0 -10
  363. package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatV2.js +0 -33
  364. package/dist/application/methods/organismFormat/listFeats/formatListFeatFive.js +0 -53
  365. package/dist/application/methods/organismFormat/listFeats/formatListFeatFiveItemsV2.js +0 -32
  366. package/dist/application/methods/organismFormat/listFeats/formatListFeatFiveV2.js +0 -39
  367. package/dist/application/methods/organismFormat/listFeats/formatListFeatFour.js +0 -35
  368. package/dist/application/methods/organismFormat/listFeats/formatListFeatFourCards.js +0 -24
  369. package/dist/application/methods/organismFormat/listFeats/formatListFeatFourDumplingsV2.js +0 -36
  370. package/dist/application/methods/organismFormat/listFeats/formatListFeatFourV2.js +0 -38
  371. package/dist/application/methods/organismFormat/listFeats/formatListFeatOne.js +0 -46
  372. package/dist/application/methods/organismFormat/listFeats/formatListFeatOneCards.js +0 -36
  373. package/dist/application/methods/organismFormat/listFeats/formatListFeatOneV2.js +0 -41
  374. package/dist/application/methods/organismFormat/listFeats/formatListFeatOneV2Cards.js +0 -64
  375. package/dist/application/methods/organismFormat/listFeats/formatListFeatSeven.js +0 -37
  376. package/dist/application/methods/organismFormat/listFeats/formatListFeatSevenCards.js +0 -46
  377. package/dist/application/methods/organismFormat/listFeats/formatListFeatSevenCardsV2.js +0 -48
  378. package/dist/application/methods/organismFormat/listFeats/formatListFeatSevenV2.js +0 -39
  379. package/dist/application/methods/organismFormat/listFeats/formatListFeatSix.js +0 -36
  380. package/dist/application/methods/organismFormat/listFeats/formatListFeatSixCards.js +0 -15
  381. package/dist/application/methods/organismFormat/listFeats/formatListFeatSixCardsV2.js +0 -16
  382. package/dist/application/methods/organismFormat/listFeats/formatListFeatSixV2.js +0 -38
  383. package/dist/application/methods/organismFormat/listFeats/formatListFeatThree.js +0 -40
  384. package/dist/application/methods/organismFormat/listFeats/formatListFeatThreeCards.js +0 -48
  385. package/dist/application/methods/organismFormat/listFeats/formatListFeatThreeV2.js +0 -40
  386. package/dist/application/methods/organismFormat/listFeats/formatListFeatThreeV2Cards.js +0 -39
  387. package/dist/application/methods/organismFormat/listFeats/formatListFeatTopSection.js +0 -33
  388. package/dist/application/methods/organismFormat/listFeats/formatListFeatTwo.js +0 -36
  389. package/dist/application/methods/organismFormat/listFeats/formatListFeatTwoCards.js +0 -34
  390. package/dist/application/methods/organismFormat/listFeats/formatListFeatTwoV2.js +0 -40
  391. package/dist/application/methods/organismFormat/listFeats/formatListFeatTwoV2Cards.js +0 -46
  392. package/dist/application/methods/organismFormat/listFeats/formatListFeatType.js +0 -27
  393. package/dist/application/methods/organismFormat/listFeats/formatListFeatV2.js +0 -21
  394. package/dist/application/methods/organismFormat/listFeats/tests/formatFeatSevenV2.test.js +0 -463
  395. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFive.test.js +0 -89
  396. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFiveV2.test.js +0 -238
  397. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFour.test.js +0 -75
  398. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFourCards.test.js +0 -65
  399. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFourV2.test.js +0 -358
  400. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOne.test.js +0 -98
  401. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOneCards.test.js +0 -67
  402. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOneV2.test.js +0 -191
  403. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOneV2Cards.test.js +0 -87
  404. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSeven.test.js +0 -120
  405. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSevenCards.test.js +0 -111
  406. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSix.test.js +0 -67
  407. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSixCards.test.js +0 -25
  408. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSixV2.test.js +0 -242
  409. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThree.test.js +0 -96
  410. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeCards.test.js +0 -94
  411. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeV2.test.js +0 -242
  412. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeV2Cards.test.js +0 -96
  413. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTopSection.test.js +0 -63
  414. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwo.test.js +0 -86
  415. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwoCards.test.js +0 -81
  416. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwoV2.test.js +0 -299
  417. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwoV2Cards.test.js +0 -159
  418. package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatV2.test.js +0 -69
  419. package/dist/application/methods/organismFormat/listFeats/tests/mockData/listFeatOneV2MockData.js +0 -125
  420. package/dist/application/methods/organismFormat/tests/formatAnchors.test.js +0 -20
  421. package/dist/application/methods/organismFormat/tests/formatCTAs.test.js +0 -109
  422. package/dist/application/methods/organismFormat/tests/formatTheme.test.js +0 -54
  423. package/dist/application/methods/tests/formatContentSections.test.js +0 -237
  424. package/dist/application/methods/tests/formatFooterDataMethods.test.js +0 -138
  425. package/dist/luna/components/MiniFeatDropdown/MiniFeatDropdown.js +0 -78
  426. package/dist/luna/components/MiniFeatDropdown/MiniFeatDropdown.scss +0 -107
  427. package/dist/luna/featurettes/CustomFeat/CustomFeat.js +0 -157
  428. package/dist/luna/featurettes/CustomFeat/CustomFeat.scss +0 -18
  429. package/dist/luna/featurettes/Feat1/Feat1.js +0 -122
  430. package/dist/luna/featurettes/Feat1/Feat1.scss +0 -110
  431. package/dist/luna/featurettes/Feat1/feat1Methods.js +0 -18
  432. package/dist/luna/featurettes/Feat1/feat1Methods.test.js +0 -21
  433. package/dist/luna/featurettes/Feat2A/Feat2A.js +0 -101
  434. package/dist/luna/featurettes/Feat2A/Feat2A.scss +0 -132
  435. package/dist/luna/featurettes/Feat2B/Feat2B.js +0 -131
  436. package/dist/luna/featurettes/Feat2B/Feat2B.scss +0 -231
  437. package/dist/luna/featurettes/Feat2B/Feat2BMethods.js +0 -75
  438. package/dist/luna/featurettes/Feat2B/Feat2BMethods.test.js +0 -38
  439. package/dist/luna/featurettes/Feat3/Feat3.js +0 -89
  440. package/dist/luna/featurettes/Feat3/Feat3.scss +0 -49
  441. package/dist/luna/featurettes/Feat4/Feat4.js +0 -95
  442. package/dist/luna/featurettes/Feat4/Feat4.scss +0 -86
  443. package/dist/luna/featurettes/Feat5/Feat5.js +0 -194
  444. package/dist/luna/featurettes/Feat5/Feat5.scss +0 -235
  445. package/dist/luna/featurettes/Feat5/Feat5Methods.js +0 -19
  446. package/dist/luna/featurettes/Feat5/Feat5Methods.test.js +0 -23
  447. package/dist/luna/featurettes/Feat7/Feat7.js +0 -79
  448. package/dist/luna/featurettes/Feat7/Feat7.scss +0 -49
  449. package/dist/luna/featurettes/Feat7/Feat7Methods.js +0 -41
  450. package/dist/luna/featurettes/Feat8/Feat8.js +0 -75
  451. package/dist/luna/featurettes/Feat8/Feat8.scss +0 -103
  452. package/dist/luna/featurettes/Feat8/feat8Methods.js +0 -18
  453. package/dist/luna/featurettes/Feat8/feat8Methods.test.js +0 -21
  454. package/dist/luna/heroes/Hero1/Hero1.js +0 -111
  455. package/dist/luna/heroes/Hero1/Hero1.scss +0 -223
  456. package/dist/luna/heroes/Hero1/Hero1Methods.js +0 -84
  457. package/dist/luna/heroes/Hero1/useWindowSize.js +0 -47
  458. package/dist/luna/heroes/Hero2/Hero2.js +0 -130
  459. package/dist/luna/heroes/Hero2/Hero2.scss +0 -165
  460. package/dist/luna/heroes/Hero3/Hero3.js +0 -246
  461. package/dist/luna/heroes/Hero3/Hero3.scss +0 -250
  462. package/dist/luna/heroes/Hero3/Hero3Methods.js +0 -37
  463. package/dist/luna/heroes/Hero4/Hero4.js +0 -175
  464. package/dist/luna/heroes/Hero4/Hero4.scss +0 -112
  465. package/dist/luna/heroes/Hero4/hero4Methods.js +0 -18
  466. package/dist/luna/heroes/Hero6/Hero6.js +0 -179
  467. package/dist/luna/heroes/Hero6/Hero6.scss +0 -127
  468. package/dist/luna/heroes/Hero7/Hero7.js +0 -118
  469. package/dist/luna/heroes/Hero7/Hero7.scss +0 -193
  470. package/dist/luna/heroes/Hero7/Hero7Methods.js +0 -39
  471. package/dist/luna/heroes/Hero7/Hero7Methods.test.js +0 -109
  472. package/dist/luna/heroes/Hero7/useWindowWidth.js +0 -40
  473. package/dist/luna/list-feats/ListFeat/ListFeat.js +0 -149
  474. package/dist/luna/list-feats/ListFeat/ListFeat.scss +0 -112
  475. package/dist/luna/list-feats/ListFeat1/ListFeat1.js +0 -91
  476. package/dist/luna/list-feats/ListFeat1/ListFeat1.scss +0 -94
  477. package/dist/luna/list-feats/ListFeat1/listFeat1Methods.js +0 -14
  478. package/dist/luna/list-feats/ListFeat1/listFeat1Methods.test.js +0 -17
  479. package/dist/luna/list-feats/ListFeat2/ListFeat2.js +0 -30
  480. package/dist/luna/list-feats/ListFeat2/ListFeat2.scss +0 -20
  481. package/dist/luna/list-feats/ListFeat2/ListFeat2Methods.js +0 -33
  482. package/dist/luna/list-feats/ListFeat2/ListFeat2Methods.test.js +0 -11
  483. package/dist/luna/list-feats/ListFeat4/ListFeat4.js +0 -34
  484. package/dist/luna/list-feats/ListFeat4/ListFeat4.scss +0 -32
  485. package/dist/luna/list-feats/ListFeat5/ListFeat5.js +0 -28
  486. package/dist/luna/list-feats/ListFeat5/ListFeat5.scss +0 -27
  487. package/dist/luna/list-feats/ListFeat5/ListFeat5Methods.js +0 -24
  488. package/dist/luna/list-feats/ListFeat6/ListFeat6.js +0 -59
  489. package/dist/luna/list-feats/ListFeat6/ListFeat6.scss +0 -34
  490. package/dist/luna/list-feats/ListFeat7/ListFeat7.js +0 -51
  491. package/dist/luna/list-feats/ListFeat7/ListFeat7.scss +0 -14
  492. package/dist/luna/list-feats/ListFeat7/ListFeat7Methods.js +0 -49
  493. package/dist/luna/list-feats/ListFeatCustom/ListFeatCustom.js +0 -25
  494. package/dist/luna/list-feats/ListFeatCustom/ListFeatCustom.scss +0 -8
  495. package/dist/luna/list-feats/methods/listFeatMethods.js +0 -119
  496. /package/dist/luna/{featurettes → components}/Accordion/Accordion.js +0 -0
  497. /package/dist/luna/{featurettes → components}/Accordion/AccordionItem.js +0 -0
  498. /package/dist/luna/{other-organisms → components}/Carousel/Carousel.js +0 -0
  499. /package/dist/luna/{heroes → components}/FilterHero/FilterHero.js +0 -0
  500. /package/dist/luna/{heroes → components}/FilterHero/FilterHeroMethods.js +0 -0
  501. /package/dist/luna/{other-organisms → components}/Flyout/Flyout.js +0 -0
  502. /package/dist/luna/{other-organisms → components}/Footer/ExportedFooter.js +0 -0
  503. /package/dist/luna/{other-organisms → components}/Footer/Footer.js +0 -0
  504. /package/dist/luna/{other-organisms → components}/Footer/GlobalFooter.js +0 -0
  505. /package/dist/luna/{other-organisms → components}/Footer/SectorFooter.js +0 -0
  506. /package/dist/luna/{heroes → components}/FullBackgroundHero/FullBackgroundHero.js +0 -0
  507. /package/dist/luna/{heroes → components}/FullBackgroundHero/FullBackgroundHeroMethods.js +0 -0
  508. /package/dist/luna/{featurettes → components}/IconTextList/IconTextList.js +0 -0
  509. /package/dist/luna/{other-organisms → components}/MarketoForm/MarketoForm.js +0 -0
  510. /package/dist/luna/{other-organisms → components}/NavBar/NavBar.js +0 -0
  511. /package/dist/luna/{other-organisms → components}/NavBar/NavMiniMenu.js +0 -0
  512. /package/dist/luna/{other-organisms → components}/NavBar/NavOption.js +0 -0
  513. /package/dist/luna/{other-organisms → components}/NavBar/UtilityNav.js +0 -0
  514. /package/dist/luna/{other-organisms → components}/NavBar/useNavPosition.js +0 -0
  515. /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackage.js +0 -0
  516. /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackageMethods.js +0 -0
  517. /package/dist/luna/{featurettes → components}/PullQuote/PullQuote.js +0 -0
  518. /package/dist/luna/{heroes → components}/SuperHero/SuperHero.js +0 -0
  519. /package/dist/luna/{heroes → components}/SuperHero/SuperHeroMethods.js +0 -0
  520. /package/dist/luna/{heroes → components}/SuperHero/useCompareContainerHeights.js +0 -0
  521. /package/dist/{application/assets → luna}/images/favicon.ico +0 -0
  522. /package/dist/{application/assets → luna}/images/fpoBox.png +0 -0
  523. /package/dist/{application/assets → luna}/images/fpoSquare.png +0 -0
  524. /package/dist/{application/assets → luna}/images/loading-mini.gif +0 -0
  525. /package/dist/{application/assets → luna}/images/trimble_logo.png +0 -0
  526. /package/dist/{application → luna/utils}/hooks/useInnerPageNav.js +0 -0
@@ -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
- });
@@ -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
- });
@@ -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
- });