@codecademy/brand 2.0.0-alpha.0519f8a0a3.0 → 2.0.0-alpha.078de545a2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/README.md +1 -1
  2. package/dist/AbbreviatedCommunityEventCard/index.d.ts +8 -0
  3. package/dist/AppBar/AppBarSection.d.ts +10 -0
  4. package/dist/AppBar/index.d.ts +9 -0
  5. package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +14 -0
  6. package/dist/AppBarDeprecated/index.d.ts +14 -0
  7. package/dist/AppBarDeprecated/styles/index.module.scss +39 -0
  8. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +7 -0
  9. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +92 -0
  10. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +13 -0
  11. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +3 -2
  12. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +13 -0
  13. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.d.ts +3 -0
  14. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.d.ts +3 -0
  15. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.d.ts +4 -0
  16. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.d.ts +2 -0
  17. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.d.ts +12 -0
  18. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +48 -0
  19. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.d.ts +15 -0
  20. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +14 -0
  21. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +6 -0
  22. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.js +9 -9
  23. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.d.ts +14 -0
  24. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.d.ts +18 -0
  25. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.d.ts +9 -0
  26. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.d.ts +9 -0
  27. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.d.ts +10 -0
  28. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +7 -0
  29. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +4 -2
  30. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.d.ts +13 -0
  31. package/dist/AppHeader/Search/DefaultResults.d.ts +10 -0
  32. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +7 -0
  33. package/dist/AppHeader/Search/SearchButton.d.ts +2 -0
  34. package/dist/AppHeader/Search/SearchPane.d.ts +6 -0
  35. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +18 -0
  36. package/dist/AppHeader/Search/SearchWorker/index.d.ts +5 -0
  37. package/dist/AppHeader/Search/SearchWorker/src.d.ts +1 -0
  38. package/dist/AppHeader/Search/SearchWorker/types.d.ts +37 -0
  39. package/dist/AppHeader/Search/SearchWorker/worker.d.ts +2 -0
  40. package/dist/AppHeader/Search/consts.d.ts +23 -0
  41. package/dist/AppHeader/Search/consts.js +1 -1
  42. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.d.ts +5 -0
  43. package/dist/AppHeader/Search/safelyRedirect.d.ts +5 -0
  44. package/dist/AppHeader/Search/types.d.ts +23 -0
  45. package/dist/AppHeader/Search/useHeaderSearch.d.ts +6 -0
  46. package/dist/AppHeader/index.d.ts +24 -0
  47. package/dist/AppHeader/index.js +5 -2
  48. package/dist/AppHeader/shared/elements.d.ts +84 -0
  49. package/dist/AppHeader/shared/index.d.ts +4 -0
  50. package/dist/AppHeader/shared/keyboardNav.d.ts +23 -0
  51. package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +2 -0
  52. package/dist/AppHeader/shared/testTypes.d.ts +0 -0
  53. package/dist/AppHeader/shared/types.d.ts +107 -0
  54. package/dist/AppHeader/shared/utils.d.ts +17 -0
  55. package/dist/AppHeader/utils/types.d.ts +8 -0
  56. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.d.ts +5 -0
  57. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +9 -0
  58. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.d.ts +13 -0
  59. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +9 -0
  60. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +7 -5
  61. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +7 -0
  62. package/dist/AppHeaderMobile/index.d.ts +20 -0
  63. package/dist/Avatar/Avatar.stories.d.ts +6 -0
  64. package/dist/Avatar/index.d.ts +36 -0
  65. package/dist/AvatarChooser/index.d.ts +12 -0
  66. package/dist/BackToTopAnchor/index.d.ts +13 -0
  67. package/dist/Banner/index.d.ts +21 -0
  68. package/dist/BetaSticker/index.d.ts +6 -0
  69. package/dist/CareerPathCard/index.d.ts +19 -0
  70. package/dist/Carousel/elements.d.ts +27 -0
  71. package/dist/Carousel/index.d.ts +24 -0
  72. package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +2 -0
  73. package/dist/CertificationPathCard/index.d.ts +20 -0
  74. package/dist/CommunityEventCard/EventTypeIcon.d.ts +11 -0
  75. package/dist/CommunityEventCard/index.d.ts +28 -0
  76. package/dist/CommunityEventToast/index.d.ts +6 -0
  77. package/dist/ContentGroupBaseCard/helpers.d.ts +4 -0
  78. package/dist/ContentGroupBaseCard/index.d.ts +31 -0
  79. package/dist/ContentGroupBaseCard/shared.d.ts +8 -0
  80. package/dist/ContentGroupBaseCard/types.d.ts +10 -0
  81. package/dist/CourseCard/__tests__/__fixtures__/index.d.ts +3 -0
  82. package/dist/CourseCard/index.d.ts +20 -0
  83. package/dist/CurriculumCard/BottomTag/index.d.ts +7 -0
  84. package/dist/CurriculumCard/Difficulty/helpers.d.ts +8 -0
  85. package/dist/CurriculumCard/Difficulty/index.d.ts +3 -0
  86. package/dist/CurriculumCard/Difficulty/types.d.ts +22 -0
  87. package/dist/CurriculumCard/Footer/index.d.ts +10 -0
  88. package/dist/CurriculumCard/Image/index.d.ts +9 -0
  89. package/dist/CurriculumCard/Subtitle/helpers.d.ts +1 -0
  90. package/dist/CurriculumCard/Subtitle/index.d.ts +8 -0
  91. package/dist/CurriculumCard/index.d.ts +59 -0
  92. package/dist/DropdownButton/DropdownList.d.ts +17 -0
  93. package/dist/DropdownButton/index.d.ts +76 -0
  94. package/dist/DropdownButton/useDynamicPopoverPosition.d.ts +14 -0
  95. package/dist/EditorialImage/index.d.ts +10 -0
  96. package/dist/EditorialImage/styles.module.scss +36 -0
  97. package/dist/EmptySection/index.d.ts +28 -0
  98. package/dist/ErrorContents/index.d.ts +8 -0
  99. package/dist/FeatureList/index.d.ts +11 -0
  100. package/dist/FeatureList/index.js +4 -5
  101. package/dist/GlobalFooter/FooterHeading.d.ts +9 -0
  102. package/dist/GlobalFooter/FooterLegal/LegalLinks.d.ts +6 -0
  103. package/dist/GlobalFooter/FooterLegal/MadeIn.d.ts +5 -0
  104. package/dist/GlobalFooter/FooterLegal/index.d.ts +7 -0
  105. package/dist/GlobalFooter/FooterLinks.d.ts +18 -0
  106. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.d.ts +7 -0
  107. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +9 -6
  108. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +12 -0
  109. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.d.ts +7 -0
  110. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.d.ts +2 -0
  111. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.d.ts +4 -0
  112. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.d.ts +3 -0
  113. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts +4 -0
  114. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.d.ts +2 -0
  115. package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.svg +45 -0
  116. package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.png +0 -0
  117. package/dist/GlobalFooter/FooterNavLinks/index.d.ts +4 -0
  118. package/dist/GlobalFooter/FooterSubHeading.d.ts +9 -0
  119. package/dist/GlobalFooter/index.d.ts +24 -0
  120. package/dist/GlobalFooter/index.js +25 -17
  121. package/dist/GlobalFooter/types.d.ts +13 -0
  122. package/dist/GlobalHeader/GlobalHeaderItems.d.ts +25 -0
  123. package/dist/GlobalHeader/GlobalHeaderItems.js +3 -6
  124. package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +28 -0
  125. package/dist/GlobalHeader/GlobalHeaderVariants.js +33 -33
  126. package/dist/GlobalHeader/index.d.ts +10 -0
  127. package/dist/GlobalHeader/index.js +49 -41
  128. package/dist/GlobalHeader/types.d.ts +90 -0
  129. package/dist/GlobalHeader/urlHelpers.d.ts +2 -0
  130. package/dist/GlobalPage/index.d.ts +34 -0
  131. package/dist/Grid/GridCollapse.d.ts +41 -0
  132. package/dist/Grid/Subgrid.d.ts +23 -0
  133. package/dist/Grid/getCSSFromColumnCount.d.ts +6 -0
  134. package/dist/Grid/index.d.ts +3 -0
  135. package/dist/HeaderHeightArea/index.d.ts +9 -0
  136. package/dist/HeaderHeightArea/useIsInHeaderRegion.d.ts +1 -0
  137. package/dist/HorizontalScrollMenu/index.d.ts +7 -0
  138. package/dist/HubCard/index.d.ts +8 -0
  139. package/dist/InfoCard/index.d.ts +19 -0
  140. package/dist/Konamimojisplosion/Konamimojisplosion.d.ts +5 -0
  141. package/dist/Konamimojisplosion/index.d.ts +2 -0
  142. package/dist/Konamimojisplosion/useKonamimojisplosion.d.ts +1 -0
  143. package/dist/LandingPage/CTA.d.ts +9 -0
  144. package/dist/LandingPage/Description.d.ts +6 -0
  145. package/dist/LandingPage/Feature.d.ts +32 -0
  146. package/dist/LandingPage/PageFAQs.d.ts +10 -0
  147. package/dist/LandingPage/PageFeatures.d.ts +16 -0
  148. package/dist/LandingPage/PageFeaturesEnhanced.d.ts +7 -0
  149. package/dist/LandingPage/PageFeaturesEnhanced.js +0 -3
  150. package/dist/LandingPage/PageFeaturesWithReferences.d.ts +19 -0
  151. package/dist/LandingPage/PageHero.d.ts +7 -0
  152. package/dist/LandingPage/PagePrefooter.d.ts +5 -0
  153. package/dist/LandingPage/PageSingleFeature.d.ts +56 -0
  154. package/dist/LandingPage/PageTestimonials.d.ts +21 -0
  155. package/dist/LandingPage/PageVideoGallery.d.ts +11 -0
  156. package/dist/LandingPage/Title.d.ts +23 -0
  157. package/dist/LandingPage/TitleWithEyebrow.d.ts +11 -0
  158. package/dist/LandingPage/index.d.ts +14 -0
  159. package/dist/LandingPage/types.d.ts +28 -0
  160. package/dist/LayoutMenu/AccordionMenu.d.ts +25 -0
  161. package/dist/LayoutMenu/LayoutMenu.d.ts +43 -0
  162. package/dist/LayoutMenu/LayoutMenu.js +4 -3
  163. package/dist/LayoutMenu/LayoutMenuSection.d.ts +16 -0
  164. package/dist/LayoutMenu/SectionItemLink.d.ts +7 -0
  165. package/dist/LayoutMenu/SelectedSectionItem.d.ts +3 -0
  166. package/dist/LayoutMenu/index.d.ts +3 -0
  167. package/dist/LayoutMenuVariant/AccordionMenu.d.ts +21 -0
  168. package/dist/LayoutMenuVariant/LayoutMenu.d.ts +39 -0
  169. package/dist/LayoutMenuVariant/LayoutMenu.js +4 -3
  170. package/dist/LayoutMenuVariant/LayoutMenuSection.d.ts +10 -0
  171. package/dist/LayoutMenuVariant/SectionItemLink.d.ts +8 -0
  172. package/dist/LayoutMenuVariant/index.d.ts +2 -0
  173. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +18 -0
  174. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +10 -0
  175. package/dist/LearningOutcomeBadges/index.d.ts +2 -0
  176. package/dist/LearningOutcomeCard/index.d.ts +24 -0
  177. package/dist/LearningOutcomeCard/index.js +26 -61
  178. package/dist/LearningOutcomePopover/index.d.ts +10 -0
  179. package/dist/LearningOutcomeTile/Tile.d.ts +7 -0
  180. package/dist/LearningOutcomeTile/index.d.ts +2 -0
  181. package/dist/LearningOutcomeTile/index.js +3 -1
  182. package/dist/LearningOutcomeTile/types.d.ts +48 -0
  183. package/dist/ListSection/index.d.ts +21 -0
  184. package/dist/Loading/index.d.ts +5 -0
  185. package/dist/Loading/styles.module.scss +131 -0
  186. package/dist/LoadingCurriculumCard/index.d.ts +7 -0
  187. package/dist/Logos/LogoCodecademy/index.d.ts +2 -0
  188. package/dist/{Logo/CodecademyProMonoLogo.js → Logos/LogoCodecademy/index.js} +15 -15
  189. package/dist/Logos/LogoCodecademyMini/index.d.ts +2 -0
  190. package/dist/Logos/LogoCodecademyMini/index.js +18 -0
  191. package/dist/Logos/LogoCodecademyPro/index.d.ts +2 -0
  192. package/dist/{Logo/CodecademyProLogo.js → Logos/LogoCodecademyPro/index.js} +11 -7
  193. package/dist/Logos/LogoCodecademyTeams/index.d.ts +2 -0
  194. package/dist/{Logo/CodecademyTeamsLogo.js → Logos/LogoCodecademyTeams/index.js} +9 -4
  195. package/dist/Logos/LogoFromSkillsoft/index.d.ts +3 -0
  196. package/dist/Logos/LogoFromSkillsoft/index.js +47 -0
  197. package/dist/Logos/LogoLXStudio/index.d.ts +3 -0
  198. package/dist/Logos/LogoLXStudio/index.js +40 -0
  199. package/dist/Logos/ProLabel/ProLabelCutout/index.d.ts +8 -0
  200. package/dist/{LogoProCutout → Logos/ProLabel/ProLabelCutout}/index.js +1 -1
  201. package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.d.ts +7 -0
  202. package/dist/{LogoProCutoutTransparent → Logos/ProLabel/ProLabelCutoutTransparent}/index.js +1 -1
  203. package/dist/Logos/ProLabel/index.d.ts +15 -0
  204. package/dist/{ProLogo → Logos/ProLabel}/index.js +5 -5
  205. package/dist/Logos/index.d.ts +7 -0
  206. package/dist/Logos/index.js +7 -0
  207. package/dist/Logos/shared.d.ts +636 -0
  208. package/dist/Logos/shared.js +16 -0
  209. package/dist/MarketingToaster/index.d.ts +8 -0
  210. package/dist/NotFoundContent/404.svg +1 -0
  211. package/dist/NotFoundContent/index.d.ts +8 -0
  212. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.d.ts +7 -0
  213. package/dist/NotificationList/EmptyNotification/index.d.ts +1 -0
  214. package/dist/NotificationList/NotificationItem.d.ts +8 -0
  215. package/dist/NotificationList/index.d.ts +9 -0
  216. package/dist/NotificationList/typings.d.ts +16 -0
  217. package/dist/Notifications/NotificationBell.d.ts +10 -0
  218. package/dist/Notifications/NotificationsContents.d.ts +3 -0
  219. package/dist/Notifications/NotificationsDropdown.d.ts +2 -0
  220. package/dist/Notifications/__fixtures__/NotificationTestComponent.d.ts +2 -0
  221. package/dist/Notifications/__fixtures__/stubs.d.ts +2 -0
  222. package/dist/Notifications/constants.d.ts +4 -0
  223. package/dist/Notifications/elements.d.ts +12 -0
  224. package/dist/Notifications/types.d.ts +24 -0
  225. package/dist/Notifications/useHeaderNotifications.d.ts +10 -0
  226. package/dist/Notifications/useNotificationButtons.d.ts +9 -0
  227. package/dist/PageAlerts/PageAlerts.d.ts +10 -0
  228. package/dist/PageAlerts/PageAlertsProvider.d.ts +11 -0
  229. package/dist/PageAlerts/index.d.ts +3 -0
  230. package/dist/PageAlerts/types.d.ts +17 -0
  231. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +19 -0
  232. package/dist/PageLayoutWithSidebarMenu/index.d.ts +1 -0
  233. package/dist/PageSection/index.d.ts +17 -0
  234. package/dist/PastDue/PastDueModalContents/index.d.ts +8 -0
  235. package/dist/PastDue/index.d.ts +2 -0
  236. package/dist/PastDue/pastDueMessages.d.ts +6 -0
  237. package/dist/PausableImage/BaseImage/index.d.ts +15 -0
  238. package/dist/PausableImage/index.d.ts +11 -0
  239. package/dist/PlanCard/PlanCardBanner.d.ts +7 -0
  240. package/dist/PlanCard/PlanFeature.d.ts +9 -0
  241. package/dist/PlanCard/PopularBadge.d.ts +3 -0
  242. package/dist/PlanCard/PricingAmount.d.ts +14 -0
  243. package/dist/PlanCard/RecommendedBadge.d.ts +3 -0
  244. package/dist/PlanCard/consts.d.ts +14 -0
  245. package/dist/PlanCard/index.d.ts +18 -0
  246. package/dist/PlanCard/index.js +28 -75
  247. package/dist/PlanCard/types.d.ts +39 -0
  248. package/dist/PlanCardTeams/consts.d.ts +9 -0
  249. package/dist/PlanCardTeams/index.d.ts +8 -0
  250. package/dist/PricingSection/PlanFeature.d.ts +10 -0
  251. package/dist/PricingSection/PricingCard/PricingAmount.d.ts +10 -0
  252. package/dist/PricingSection/PricingCard/RecommendedBadge.d.ts +3 -0
  253. package/dist/PricingSection/PricingCard/consts.d.ts +14 -0
  254. package/dist/PricingSection/PricingCard/index.d.ts +12 -0
  255. package/dist/PricingSection/ProductCTA.d.ts +6 -0
  256. package/dist/PricingSection/Products.d.ts +11 -0
  257. package/dist/PricingSection/config.d.ts +8 -0
  258. package/dist/PricingSection/index.d.ts +13 -0
  259. package/dist/PricingSection/types.d.ts +30 -0
  260. package/dist/ProLogoAlt/index.d.ts +9 -0
  261. package/dist/ProductFeatureShowcase/index.d.ts +16 -0
  262. package/dist/QuizScore/index.d.ts +12 -0
  263. package/dist/RatingsBar/index.d.ts +12 -0
  264. package/dist/ResourceCard/index.d.ts +15 -0
  265. package/dist/ScoreSummary/SubScores.d.ts +28 -0
  266. package/dist/ScoreSummary/helpers.d.ts +11 -0
  267. package/dist/ScoreSummary/index.d.ts +21 -0
  268. package/dist/ScoreSummary/types.d.ts +310 -0
  269. package/dist/SkillPathCard/__tests__/__fixtures__/index.d.ts +2 -0
  270. package/dist/SkillPathCard/index.d.ts +17 -0
  271. package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +13 -0
  272. package/dist/SocialMediaSharing/index.d.ts +49 -0
  273. package/dist/SocialMediaSharingDropdown/__tests__/SocialMediaSharingDropdown-test.d.ts +1 -0
  274. package/dist/SocialMediaSharingDropdown/index.d.ts +15 -0
  275. package/dist/Testimonial/index.d.ts +45 -0
  276. package/dist/assets/darkQuotes.svg +1 -0
  277. package/dist/assets/dots.svg +1 -0
  278. package/dist/assets/lightQuotes.svg +1 -0
  279. package/dist/assets/navyQuotes.svg +5 -0
  280. package/dist/assets/orange_squiggle.svg +1 -0
  281. package/dist/index.d.ts +84 -0
  282. package/dist/index.js +1 -7
  283. package/dist/lib/breakpointHooks/index.d.ts +43 -0
  284. package/dist/lib/catalogList/index.d.ts +5 -0
  285. package/dist/lib/catalogList/index.js +3 -3
  286. package/dist/lib/resourcesList/index.d.ts +5 -0
  287. package/dist/lib/resourcesList/index.js +11 -2
  288. package/dist/png.d.ts +4 -0
  289. package/dist/react-freezeframe.d.ts +1 -0
  290. package/dist/remoteAssets/components.d.ts +1 -0
  291. package/dist/stories/Atoms/Avatar.stories.d.ts +6 -0
  292. package/dist/stories/Atoms/BetaSticker.stories.d.ts +7 -0
  293. package/dist/stories/Atoms/Logos/LogoCodecademy.stories.d.ts +6 -0
  294. package/dist/stories/Atoms/Logos/LogoCodecademy.stories.js +8 -0
  295. package/dist/stories/Atoms/Logos/LogoCodecademyMini.stories.d.ts +6 -0
  296. package/dist/stories/Atoms/Logos/LogoCodecademyMini.stories.js +8 -0
  297. package/dist/stories/Atoms/Logos/LogoCodecademyPro.stories.d.ts +6 -0
  298. package/dist/stories/Atoms/Logos/LogoCodecademyPro.stories.js +8 -0
  299. package/dist/stories/Atoms/Logos/LogoCodecademyTeams.stories.d.ts +6 -0
  300. package/dist/stories/Atoms/Logos/LogoCodecademyTeams.stories.js +8 -0
  301. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.d.ts +6 -0
  302. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +2 -8
  303. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.d.ts +6 -0
  304. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +1 -1
  305. package/dist/stories/Atoms/Logos/ProLabel.stories.d.ts +7 -0
  306. package/dist/stories/Atoms/Logos/ProLabel.stories.js +10 -11
  307. package/dist/stories/Atoms/RatingsBar.stories.d.ts +6 -0
  308. package/dist/stories/Atoms/Subgrid.stories.d.ts +6 -0
  309. package/dist/stories/Molecules/AppBar.stories.d.ts +15 -0
  310. package/dist/stories/Molecules/AppBar.stories.js +2 -2
  311. package/dist/stories/Molecules/AppHeader/AppHeader.stories.d.ts +6 -0
  312. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.d.ts +8 -0
  313. package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.d.ts +8 -0
  314. package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.d.ts +8 -0
  315. package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.d.ts +6 -0
  316. package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.d.ts +6 -0
  317. package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.d.ts +7 -0
  318. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.d.ts +7 -0
  319. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.d.ts +6 -0
  320. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.d.ts +5 -0
  321. package/dist/stories/Molecules/AvatarChooser.stories.d.ts +7 -0
  322. package/dist/stories/Molecules/BackToTopAnchor.stories.d.ts +10 -0
  323. package/dist/stories/Molecules/Banner.stories.d.ts +16 -0
  324. package/dist/stories/Molecules/Carousel.stories.d.ts +7 -0
  325. package/dist/stories/Molecules/ContentGroupBaseCard.stories.d.ts +13 -0
  326. package/dist/stories/Molecules/CurriculumCard.stories.d.ts +16 -0
  327. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.d.ts +10 -0
  328. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.d.ts +9 -0
  329. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.d.ts +10 -0
  330. package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.d.ts +6 -0
  331. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.d.ts +9 -0
  332. package/dist/stories/Molecules/DropdownButton.stories.d.ts +11 -0
  333. package/dist/stories/Molecules/EditorialImage.stories.d.ts +6 -0
  334. package/dist/stories/Molecules/EmptySection.stories.d.ts +13 -0
  335. package/dist/stories/Molecules/ErrorContents.stories.d.ts +7 -0
  336. package/dist/stories/Molecules/GridCollapse.stories.d.ts +6 -0
  337. package/dist/stories/Molecules/HorizontalScrollMenu.examples.d.ts +1 -0
  338. package/dist/stories/Molecules/HorizontalScrollMenu.stories.d.ts +6 -0
  339. package/dist/stories/Molecules/HubCard.stories.d.ts +7 -0
  340. package/dist/stories/Molecules/InfoCard.stories.d.ts +7 -0
  341. package/dist/stories/Molecules/LearningOutcomeCard.stories.d.ts +9 -0
  342. package/dist/stories/Molecules/LearningOutcomeCard.stories.js +0 -16
  343. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.d.ts +6 -0
  344. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.d.ts +6 -0
  345. package/dist/stories/Molecules/LearningOutcomePopover.stories.d.ts +5 -0
  346. package/dist/stories/Molecules/LearningOutcomeTile.stories.d.ts +10 -0
  347. package/dist/stories/Molecules/ListSection.stories.d.ts +9 -0
  348. package/dist/stories/Molecules/Loading.stories.d.ts +6 -0
  349. package/dist/stories/Molecules/NotificationList.stories.d.ts +7 -0
  350. package/dist/stories/Molecules/PageSection.stories.d.ts +8 -0
  351. package/dist/stories/Molecules/PastDueModalContents.stories.d.ts +10 -0
  352. package/dist/stories/Molecules/PausableImage.stories.d.ts +6 -0
  353. package/dist/stories/Molecules/ResourceCard.stories.d.ts +6 -0
  354. package/dist/stories/Molecules/SocialMediaSharing.stories.d.ts +6 -0
  355. package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.d.ts +6 -0
  356. package/dist/stories/Molecules/Testimonial.stories.d.ts +10 -0
  357. package/dist/stories/Organisms/GlobalFooter.stories.d.ts +8 -0
  358. package/dist/stories/Organisms/GlobalHeader/About.stories.d.ts +10 -0
  359. package/dist/stories/Organisms/GlobalHeader/Anon.stories.d.ts +9 -0
  360. package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.d.ts +6 -0
  361. package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.d.ts +8 -0
  362. package/dist/stories/Organisms/GlobalHeader/Free.stories.d.ts +8 -0
  363. package/dist/stories/Organisms/GlobalHeader/Pro.stories.d.ts +10 -0
  364. package/dist/stories/Organisms/GlobalHeader/Simple.stories.d.ts +6 -0
  365. package/dist/stories/Organisms/GlobalPage.stories.d.ts +9 -0
  366. package/dist/stories/Organisms/LayoutMenu.stories.d.ts +10 -0
  367. package/dist/stories/Organisms/LayoutMenuVariant.stories.d.ts +9 -0
  368. package/dist/stories/Organisms/PageAlerts.example.d.ts +2 -0
  369. package/dist/stories/Organisms/PageAlerts.stories.d.ts +7 -0
  370. package/dist/stories/Organisms/PageFeatures.stories.d.ts +14 -0
  371. package/dist/stories/Organisms/PageHero.stories.d.ts +17 -0
  372. package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.d.ts +7 -0
  373. package/dist/stories/Organisms/PagePrefooter.stories.d.ts +10 -0
  374. package/dist/stories/Organisms/PageSingleFeature.stories.d.ts +18 -0
  375. package/dist/stories/Organisms/PageVideoGallery.stories.d.ts +10 -0
  376. package/dist/stories/Organisms/PlanCard.stories.d.ts +9 -0
  377. package/dist/stories/Organisms/PlanCardTeams.stories.d.ts +7 -0
  378. package/dist/stories/Organisms/ScoreSummary.stories.d.ts +12 -0
  379. package/dist/svg.d.ts +8 -0
  380. package/dist/theme.d.ts +5 -0
  381. package/package.json +1 -1
  382. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +0 -55
  383. package/dist/LearningOutcomeAssessmentScores/index.js +0 -24
  384. package/dist/LearningOutcomeFlyout/index.js +0 -168
  385. package/dist/Logo/CodecademyLogo.js +0 -19
  386. package/dist/Logo/CodecademyPremiumLogo.js +0 -35
  387. package/dist/Logo/CodecademyProAltLogo.js +0 -19
  388. package/dist/Logo/CodecademyProLockupLogo.js +0 -13
  389. package/dist/Logo/CodecademyProgramLogo.js +0 -14
  390. package/dist/Logo/index.js +0 -30
  391. package/dist/LogoFromSkillsoft/index.js +0 -55
  392. package/dist/LogoLXStudio/index.js +0 -47
  393. package/dist/ProLabel/index.js +0 -59
  394. package/dist/stories/Atoms/Logos/Logo.stories.js +0 -78
  395. package/dist/stories/Atoms/Logos/ProLogoAlt.stories.js +0 -24
  396. package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.js +0 -23
  397. package/dist/stories/Molecules/LearningOutcomeFlyout.stories.js +0 -35
@@ -2,13 +2,15 @@ import _styled from "@emotion/styled/base";
2
2
  import { ContentContainer } from '@codecademy/gamut';
3
3
  import { themed } from '@codecademy/gamut-styles';
4
4
  import * as React from 'react';
5
+ import { useContext } from 'react';
6
+ import { LiveLearningHubContext } from '../GlobalHeader';
5
7
  import { FooterLegal } from './FooterLegal';
6
8
  import { FooterNavLinks } from './FooterNavLinks';
7
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
10
  const FooterContainer = /*#__PURE__*/_styled("footer", {
9
11
  target: "e1xir4o10",
10
12
  label: "FooterContainer"
11
- })("border-top:1px solid ", themed('colors.secondary'), ";@media print{display:none;}" + (process.env.NODE_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AgICBvbkNsaWNrPXtvbkNsaWNrfVxuICAgICAgICAgIHVzZXJHZW89e3VzZXJHZW99XG4gICAgICAgICAgcmVmZXJyYWxSb2NrVXJscz17cmVmZXJyYWxSb2NrVXJsc31cbiAgICAgICAgICBpc0J1c2luZXNzVXNlcj17aXNCdXNpbmVzc1VzZXJ9XG4gICAgICAgICAgaXNMb2dnZWRJbj17aXNMb2dnZWRJbn1cbiAgICAgICAgLz5cbiAgICAgICAgPEZvb3RlckxlZ2FsIG9uQ2xpY2s9e29uQ2xpY2t9IG9uTWFkZUluQ2xpY2s9e29uTWFkZUluQ2xpY2t9IC8+XG4gICAgICA8L0NvbnRlbnRDb250YWluZXI+XG4gICAgPC9Gb290ZXJDb250YWluZXI+XG4gICk7XG59O1xuIl19 */"));
13
+ })("border-top:1px solid ", themed('colors.secondary'), ";@media print{display:none;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9HbG9iYWxGb290ZXIvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9DcUMiLCJmaWxlIjoiLi4vLi4vc3JjL0dsb2JhbEZvb3Rlci9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb250ZW50Q29udGFpbmVyIH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQnO1xuaW1wb3J0IHsgdGhlbWVkIH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQtc3R5bGVzJztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IHVzZUNvbnRleHQgfSBmcm9tICdyZWFjdCc7XG5cbmltcG9ydCB7IExpdmVMZWFybmluZ0h1YkNvbnRleHQgfSBmcm9tICcuLi9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ZXJHZW99XG4gICAgICAgICAgICByZWZlcnJhbFJvY2tVcmxzPXtyZWZlcnJhbFJvY2tVcmxzfVxuICAgICAgICAgICAgaXNCdXNpbmVzc1VzZXI9e2lzQnVzaW5lc3NVc2VyfVxuICAgICAgICAgICAgaXNMb2dnZWRJbj17aXNMb2dnZWRJbn1cbiAgICAgICAgICAvPlxuICAgICAgICAgIDxGb290ZXJMZWdhbCBvbkNsaWNrPXtvbkNsaWNrfSBvbk1hZGVJbkNsaWNrPXtvbk1hZGVJbkNsaWNrfSAvPlxuICAgICAgICA8L0NvbnRlbnRDb250YWluZXI+XG4gICAgICA8L0Zvb3RlckNvbnRhaW5lcj5cbiAgICA8L0xpdmVMZWFybmluZ0h1YkNvbnRleHQuUHJvdmlkZXI+XG4gICk7XG59O1xuIl19 */"));
12
14
  export const GlobalFooter = ({
13
15
  className,
14
16
  hidePricing,
@@ -17,23 +19,29 @@ export const GlobalFooter = ({
17
19
  userGeo,
18
20
  referralRockUrls,
19
21
  isBusinessUser,
20
- isLoggedIn
22
+ isLoggedIn,
23
+ isLiveLearningHubEnabled
21
24
  }) => {
22
- return /*#__PURE__*/_jsx(FooterContainer, {
23
- className: className,
24
- role: "contentinfo",
25
- children: /*#__PURE__*/_jsxs(ContentContainer, {
26
- children: [/*#__PURE__*/_jsx(FooterNavLinks, {
27
- hidePricing: hidePricing,
28
- onClick: onClick,
29
- userGeo: userGeo,
30
- referralRockUrls: referralRockUrls,
31
- isBusinessUser: isBusinessUser,
32
- isLoggedIn: isLoggedIn
33
- }), /*#__PURE__*/_jsx(FooterLegal, {
34
- onClick: onClick,
35
- onMadeInClick: onMadeInClick
36
- })]
25
+ const contextValue = useContext(LiveLearningHubContext);
26
+ const combinedIsLiveLearningHubEnabled = contextValue || !!isLiveLearningHubEnabled;
27
+ return /*#__PURE__*/_jsx(LiveLearningHubContext.Provider, {
28
+ value: combinedIsLiveLearningHubEnabled,
29
+ children: /*#__PURE__*/_jsx(FooterContainer, {
30
+ className: className,
31
+ role: "contentinfo",
32
+ children: /*#__PURE__*/_jsxs(ContentContainer, {
33
+ children: [/*#__PURE__*/_jsx(FooterNavLinks, {
34
+ hidePricing: hidePricing,
35
+ onClick: onClick,
36
+ userGeo: userGeo,
37
+ referralRockUrls: referralRockUrls,
38
+ isBusinessUser: isBusinessUser,
39
+ isLoggedIn: isLoggedIn
40
+ }), /*#__PURE__*/_jsx(FooterLegal, {
41
+ onClick: onClick,
42
+ onMadeInClick: onMadeInClick
43
+ })]
44
+ })
37
45
  })
38
46
  });
39
47
  };
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ type GlobalFooterClickData = {
3
+ /**
4
+ * Native event from the data that can be .preventDefault()ed.
5
+ */
6
+ event: React.MouseEvent;
7
+ /**
8
+ * Data tracking target, such as 'about' or 'policy'.
9
+ */
10
+ target: string;
11
+ };
12
+ export type GlobalFooterClickHandler = (data: GlobalFooterClickData) => void;
13
+ export {};
@@ -0,0 +1,25 @@
1
+ import { AppHeaderCatalogDropdownItem, AppHeaderFillButtonItem, AppHeaderLinkItem, AppHeaderLogoItem, AppHeaderProfileDropdownItem, AppHeaderRenderElementItem, AppHeaderResourcesDropdownItem, AppHeaderResourcesSimpleDropdownItem, AppHeaderSimpleDropdownItem, AppHeaderTextButtonItem } from '../AppHeader/shared';
2
+ import { User } from './types';
3
+ export declare const loading: AppHeaderRenderElementItem;
4
+ export declare const logo: AppHeaderLogoItem;
5
+ export declare const enterpriseLogo: (user: User, removeAnchorLink?: boolean) => AppHeaderLogoItem;
6
+ export declare const myHome: AppHeaderLinkItem;
7
+ export declare const liveLearningHub: AppHeaderLinkItem;
8
+ export declare const myPercipioHome: (user: User, customTitle?: string) => AppHeaderLinkItem;
9
+ export declare const catalogDropdown: (hideCareerPaths?: boolean) => AppHeaderCatalogDropdownItem;
10
+ export declare const resourcesDropdown: () => AppHeaderResourcesDropdownItem;
11
+ export declare const simpleResourcesDropdown: AppHeaderResourcesSimpleDropdownItem;
12
+ export declare const communityDropdown: () => AppHeaderSimpleDropdownItem;
13
+ export declare const pricingDropdown: AppHeaderSimpleDropdownItem;
14
+ export declare const upgradePlan: AppHeaderLinkItem;
15
+ export declare const businessSolutions: AppHeaderLinkItem;
16
+ export declare const careerCenter: AppHeaderLinkItem;
17
+ export declare const freeProfile: (user: User, isMobile?: boolean) => AppHeaderProfileDropdownItem;
18
+ export declare const proProfile: (user: User) => AppHeaderProfileDropdownItem;
19
+ export declare const addPayment: AppHeaderFillButtonItem;
20
+ export declare const tryProForFree: (checkoutUrl?: string) => AppHeaderFillButtonItem;
21
+ export declare const upgradeToPro: (checkoutUrl?: string) => AppHeaderFillButtonItem;
22
+ export declare const unpausePro: AppHeaderFillButtonItem;
23
+ export declare const login: AppHeaderTextButtonItem;
24
+ export declare const signUp: AppHeaderFillButtonItem;
25
+ export declare const bootcampCta: (bootcampSlug: string) => AppHeaderFillButtonItem;
@@ -3,9 +3,6 @@ import { AccountingCoinsIcon, ArrowThickCircleUpIcon, ArticleIcon, BookFlipPageI
3
3
  import { renderNewBadge } from '../lib/resourcesList';
4
4
  import { formatEnterpriseUrl } from './urlHelpers';
5
5
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
6
- const shouldShowBusinessDashboardLink = user => {
7
- return (user?.isAccountManager || user?.isBusinessAdmin) && !user?.isSkillsoftUser;
8
- };
9
6
  export const loading = {
10
7
  id: 'header-loading',
11
8
  type: 'render-element',
@@ -285,13 +282,13 @@ const profileLogOut = {
285
282
  text: 'Log Out',
286
283
  type: 'link'
287
284
  };
288
- export const freeProfile = user => {
285
+ export const freeProfile = (user, isMobile) => {
289
286
  const topSection = [profileMyProfile];
290
287
  if (user?.isBusinessAdmin || !user?.isBusinessSsoUser) {
291
288
  topSection.push(profileAccount);
292
289
  }
293
290
  topSection.push(profileMyHome);
294
- if (shouldShowBusinessDashboardLink(user)) {
291
+ if (!isMobile && user?.isAccountManager && !user?.hideBusinessAccount) {
295
292
  topSection.push(profileBusinessAccount);
296
293
  }
297
294
  topSection.push(profileHelpCenter);
@@ -317,7 +314,7 @@ export const proProfile = user => {
317
314
  topSection.push(profileHelpCenter);
318
315
  topSection.push(profileFeedback);
319
316
  const teamsAdminSection = [];
320
- if (shouldShowBusinessDashboardLink(user)) {
317
+ if ((user?.isAccountManager || user?.isBusinessAdmin) && !user?.hideBusinessAccount) {
321
318
  teamsAdminSection.push(profileBusinessAccount);
322
319
  }
323
320
  const middleSection = [];
@@ -0,0 +1,28 @@
1
+ import { AppHeaderItem, FormattedAppHeaderItems, FormattedMobileAppHeaderItems } from '../AppHeader/shared';
2
+ import { GlobalHeaderProps } from '.';
3
+ import { User } from './types';
4
+ export declare const anonDefaultHeaderItems: (hidePricing?: boolean, user?: User, isLiveLearningHubEnabled?: boolean) => FormattedAppHeaderItems;
5
+ export declare const anonDefaultMobileHeaderItems: (hidePricing?: boolean, user?: User, isLiveLearningHubEnabled?: boolean) => FormattedMobileAppHeaderItems;
6
+ export declare const anonLandingHeaderItems: (hidePricing?: boolean, user?: User, isLiveLearningHubEnabled?: boolean) => FormattedAppHeaderItems;
7
+ export declare const anonLandingMobileHeaderItems: (hidePricing?: boolean, user?: User, isLiveLearningHubEnabled?: boolean) => FormattedMobileAppHeaderItems;
8
+ export declare const anonLoginHeaderItems: (hidePricing?: boolean, user?: User, isLiveLearningHubEnabled?: boolean) => FormattedAppHeaderItems;
9
+ export declare const anonLoginMobileHeaderItems: (hidePricing?: boolean, user?: User, isLiveLearningHubEnabled?: boolean) => FormattedMobileAppHeaderItems;
10
+ export declare const anonSignupHeaderItems: (hidePricing?: boolean, user?: User, isLiveLearningHubEnabled?: boolean) => FormattedAppHeaderItems;
11
+ export declare const anonSignupMobileHeaderItems: (hidePricing?: boolean, user?: User, isLiveLearningHubEnabled?: boolean) => FormattedMobileAppHeaderItems;
12
+ export declare const freeHeaderItems: (user: User, hidePricing?: boolean, isLiveLearningHubEnabled?: boolean) => FormattedAppHeaderItems;
13
+ export declare const freeMobileHeaderItems: (user: User, hidePricing?: boolean, isLiveLearningHubEnabled?: boolean) => FormattedMobileAppHeaderItems;
14
+ export declare const enterpriseHeaderItems: (user: User, props: GlobalHeaderProps) => {
15
+ left: AppHeaderItem[];
16
+ right: never[];
17
+ };
18
+ export declare const proHeaderItems: (user: User, isLiveLearningHubEnabled?: boolean) => FormattedAppHeaderItems;
19
+ export declare const teamsHeaderItems: (user: User, isLiveLearningHubEnabled?: boolean) => FormattedAppHeaderItems;
20
+ export declare const enterpriseMobileHeaderItems: (user: User, props: GlobalHeaderProps) => FormattedMobileAppHeaderItems;
21
+ export declare const proMobileHeaderItems: (user: User, isLiveLearningHubEnabled?: boolean) => FormattedMobileAppHeaderItems;
22
+ export declare const teamsMobileHeaderItems: (user: User, isLiveLearningHubEnabled?: boolean) => FormattedMobileAppHeaderItems;
23
+ export declare const loadingHeaderItems: FormattedAppHeaderItems;
24
+ export declare const loadingMobileHeaderItems: FormattedMobileAppHeaderItems;
25
+ export declare const simpleHeaderItems: FormattedAppHeaderItems;
26
+ export declare const simpleMobileHeaderItems: FormattedMobileAppHeaderItems;
27
+ export declare const simpleBootcampHeaderItems: (bootcampSlug: string) => FormattedAppHeaderItems;
28
+ export declare const simpleBootcampMobileHeaderItems: (bootcampSlug: string) => FormattedMobileAppHeaderItems;
@@ -1,4 +1,4 @@
1
- import { addPayment, bootcampCta, businessSolutions, catalogDropdown, communityDropdown, enterpriseLogo, freeProfile, liveLearningHub, loading, login, logo, myHome, myPercipioHome, pricingDropdown, proProfile, resourcesDropdown, signUp, simpleResourcesDropdown, tryProForFree, unpausePro, upgradePlan, upgradeToPro } from './GlobalHeaderItems';
1
+ import { addPayment, bootcampCta, businessSolutions, careerCenter, catalogDropdown, communityDropdown, enterpriseLogo, freeProfile, liveLearningHub, loading, login, logo, myHome, myPercipioHome, pricingDropdown, proProfile, resourcesDropdown, signUp, simpleResourcesDropdown, tryProForFree, unpausePro, upgradePlan, upgradeToPro } from './GlobalHeaderItems';
2
2
  const transformSimpleResourcesDropdownlabels = resourcesLabel => ({
3
3
  ...simpleResourcesDropdown,
4
4
  text: resourcesLabel?.title || simpleResourcesDropdown.text,
@@ -7,12 +7,12 @@ const transformSimpleResourcesDropdownlabels = resourcesLabel => ({
7
7
  text: resourcesLabel?.[item.id] || item.text
8
8
  }))
9
9
  });
10
- const anonHeaderItems = (renderLogin, renderSignUp, hidePricing, user) => {
10
+ const anonHeaderItems = (renderLogin, renderSignUp, hidePricing, user, isLiveLearningHubEnabled) => {
11
11
  const specialLogo = {
12
12
  ...logo,
13
13
  checkMini: true
14
14
  };
15
- const leftItems = [specialLogo, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), liveLearningHub, businessSolutions];
15
+ const leftItems = [specialLogo, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, businessSolutions];
16
16
  const rightItems = [];
17
17
  if (renderLogin) {
18
18
  rightItems.push(login);
@@ -25,7 +25,7 @@ const anonHeaderItems = (renderLogin, renderSignUp, hidePricing, user) => {
25
25
  right: rightItems
26
26
  };
27
27
  };
28
- const anonMobileHeaderItems = (renderLogin, renderSignUp, hidePricing, user) => {
28
+ const anonMobileHeaderItems = (renderLogin, renderSignUp, hidePricing, user, isLiveLearningHubEnabled) => {
29
29
  const specialLogo = {
30
30
  ...logo,
31
31
  checkMini: true
@@ -38,43 +38,43 @@ const anonMobileHeaderItems = (renderLogin, renderSignUp, hidePricing, user) =>
38
38
  if (renderSignUp) {
39
39
  rightItems.push(signUp);
40
40
  }
41
- const mainMenuItems = [catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), liveLearningHub, businessSolutions];
41
+ const mainMenuItems = [catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, businessSolutions];
42
42
  return {
43
43
  left: leftItems,
44
44
  right: rightItems,
45
45
  mainMenu: mainMenuItems
46
46
  };
47
47
  };
48
- export const anonDefaultHeaderItems = (hidePricing, user) => {
49
- return anonHeaderItems(true, true, hidePricing, user);
48
+ export const anonDefaultHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
49
+ return anonHeaderItems(true, true, hidePricing, user, isLiveLearningHubEnabled);
50
50
  };
51
- export const anonDefaultMobileHeaderItems = (hidePricing, user) => {
52
- return anonMobileHeaderItems(true, true, hidePricing, user);
51
+ export const anonDefaultMobileHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
52
+ return anonMobileHeaderItems(true, true, hidePricing, user, isLiveLearningHubEnabled);
53
53
  };
54
- export const anonLandingHeaderItems = (hidePricing, user) => {
55
- return anonHeaderItems(true, false, hidePricing, user);
54
+ export const anonLandingHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
55
+ return anonHeaderItems(true, false, hidePricing, user, isLiveLearningHubEnabled);
56
56
  };
57
- export const anonLandingMobileHeaderItems = (hidePricing, user) => {
58
- return anonMobileHeaderItems(true, false, hidePricing, user);
57
+ export const anonLandingMobileHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
58
+ return anonMobileHeaderItems(true, false, hidePricing, user, isLiveLearningHubEnabled);
59
59
  };
60
- export const anonLoginHeaderItems = (hidePricing, user) => {
61
- return anonHeaderItems(false, true, hidePricing, user);
60
+ export const anonLoginHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
61
+ return anonHeaderItems(false, true, hidePricing, user, isLiveLearningHubEnabled);
62
62
  };
63
- export const anonLoginMobileHeaderItems = (hidePricing, user) => {
64
- return anonMobileHeaderItems(false, true, hidePricing, user);
63
+ export const anonLoginMobileHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
64
+ return anonMobileHeaderItems(false, true, hidePricing, user, isLiveLearningHubEnabled);
65
65
  };
66
- export const anonSignupHeaderItems = (hidePricing, user) => {
67
- return anonHeaderItems(true, false, hidePricing, user);
66
+ export const anonSignupHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
67
+ return anonHeaderItems(true, false, hidePricing, user, isLiveLearningHubEnabled);
68
68
  };
69
- export const anonSignupMobileHeaderItems = (hidePricing, user) => {
70
- return anonMobileHeaderItems(true, false, hidePricing, user);
69
+ export const anonSignupMobileHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
70
+ return anonMobileHeaderItems(true, false, hidePricing, user, isLiveLearningHubEnabled);
71
71
  };
72
- export const freeHeaderItems = (user, hidePricing) => {
72
+ export const freeHeaderItems = (user, hidePricing, isLiveLearningHubEnabled) => {
73
73
  const specialLogo = {
74
74
  ...logo,
75
75
  checkMini: true
76
76
  };
77
- const leftItems = [specialLogo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), liveLearningHub, businessSolutions];
77
+ const leftItems = [specialLogo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, businessSolutions];
78
78
  const upgradeButton = upgradeToPro(user.proCheckoutUrl);
79
79
  const rightItems = [];
80
80
  rightItems.push(freeProfile(user));
@@ -84,7 +84,7 @@ export const freeHeaderItems = (user, hidePricing) => {
84
84
  right: rightItems
85
85
  };
86
86
  };
87
- export const freeMobileHeaderItems = (user, hidePricing) => {
87
+ export const freeMobileHeaderItems = (user, hidePricing, isLiveLearningHubEnabled) => {
88
88
  const specialLogo = {
89
89
  ...logo,
90
90
  checkMini: true
@@ -92,7 +92,7 @@ export const freeMobileHeaderItems = (user, hidePricing) => {
92
92
  const leftItems = [specialLogo];
93
93
  const rightItems = [];
94
94
  const upgradeButton = upgradeToPro(user.proCheckoutUrl);
95
- const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), liveLearningHub, businessSolutions, freeProfile(user, true), user.showProUpgrade ? upgradeButton : tryProForFree(user.proCheckoutUrl)];
95
+ const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, businessSolutions, freeProfile(user, true), user.showProUpgrade ? upgradeButton : tryProForFree(user.proCheckoutUrl)];
96
96
  return {
97
97
  left: leftItems,
98
98
  right: rightItems,
@@ -112,8 +112,8 @@ export const enterpriseHeaderItems = (user, props) => {
112
112
  right: []
113
113
  };
114
114
  };
115
- export const proHeaderItems = user => {
116
- const leftItems = [logo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(user.isPlusUser ? [upgradePlan] : []), liveLearningHub, businessSolutions];
115
+ export const proHeaderItems = (user, isLiveLearningHubEnabled) => {
116
+ const leftItems = [logo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(user.isPlusUser ? [upgradePlan] : []), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, businessSolutions];
117
117
  const rightItems = [];
118
118
  rightItems.push(proProfile(user));
119
119
  if (user.isPaused) {
@@ -124,8 +124,8 @@ export const proHeaderItems = user => {
124
124
  right: rightItems
125
125
  };
126
126
  };
127
- export const teamsHeaderItems = user => {
128
- const leftItems = [logo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), liveLearningHub];
127
+ export const teamsHeaderItems = (user, isLiveLearningHubEnabled) => {
128
+ const leftItems = [logo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), isLiveLearningHubEnabled ? liveLearningHub : careerCenter];
129
129
  const rightItems = [];
130
130
  if (user.isAccountManager && user.inBusinessTrial && !user.hasBusinessSubscription) {
131
131
  rightItems.push(addPayment);
@@ -152,10 +152,10 @@ export const enterpriseMobileHeaderItems = (user, props) => {
152
152
  mainMenu: mainMenuItems
153
153
  };
154
154
  };
155
- export const proMobileHeaderItems = user => {
155
+ export const proMobileHeaderItems = (user, isLiveLearningHubEnabled) => {
156
156
  const leftItems = [logo];
157
157
  const rightItems = [];
158
- const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(user.isPlusUser ? [upgradePlan] : []), liveLearningHub, businessSolutions, proProfile(user)];
158
+ const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(user.isPlusUser ? [upgradePlan] : []), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, businessSolutions, proProfile(user)];
159
159
  if (user.isPaused) {
160
160
  mainMenuItems.push(unpausePro);
161
161
  }
@@ -165,10 +165,10 @@ export const proMobileHeaderItems = user => {
165
165
  mainMenu: mainMenuItems
166
166
  };
167
167
  };
168
- export const teamsMobileHeaderItems = user => {
168
+ export const teamsMobileHeaderItems = (user, isLiveLearningHubEnabled) => {
169
169
  const leftItems = [logo];
170
170
  const rightItems = [];
171
- const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), liveLearningHub, proProfile(user)];
171
+ const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, proProfile(user)];
172
172
  if (user.isAccountManager && user.inBusinessTrial && !user.hasBusinessSubscription) {
173
173
  mainMenuItems.push(addPayment);
174
174
  }
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { AnonHeader, EnterpriseHeader, FreeHeader, LoadingHeader, ProHeader, SimpleBootcampHeader, SimpleHeader, TeamsHeader } from './types';
3
+ export * from './types';
4
+ export declare const LiveLearningHubContext: React.Context<boolean>;
5
+ export declare const HeaderQuizContext: React.Context<{
6
+ showOnboardingQuiz?: boolean;
7
+ showSortingQuiz?: boolean;
8
+ }>;
9
+ export type GlobalHeaderProps = AnonHeader | FreeHeader | ProHeader | EnterpriseHeader | TeamsHeader | LoadingHeader | SimpleHeader | SimpleBootcampHeader;
10
+ export declare const GlobalHeader: React.FC<GlobalHeaderProps>;
@@ -1,7 +1,7 @@
1
1
  import { Box } from '@codecademy/gamut';
2
2
  import { useTheme } from '@emotion/react';
3
3
  import * as React from 'react';
4
- import { useCallback } from 'react';
4
+ import { useCallback, useContext } from 'react';
5
5
  import { AppHeader, AppHeaderMobile, isAppHeaderItemWithHref } from '..';
6
6
  import { anonDefaultHeaderItems, anonDefaultMobileHeaderItems, anonLandingHeaderItems, anonLandingMobileHeaderItems, anonLoginHeaderItems, anonLoginMobileHeaderItems, anonSignupHeaderItems, anonSignupMobileHeaderItems, enterpriseHeaderItems, enterpriseMobileHeaderItems, freeHeaderItems, freeMobileHeaderItems, loadingHeaderItems, loadingMobileHeaderItems, proHeaderItems, proMobileHeaderItems, simpleBootcampHeaderItems, simpleBootcampMobileHeaderItems, simpleHeaderItems, simpleMobileHeaderItems, teamsHeaderItems, teamsMobileHeaderItems } from './GlobalHeaderVariants';
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -16,28 +16,29 @@ export const HeaderQuizContext = /*#__PURE__*/React.createContext({
16
16
 
17
17
  function getAppHeaderItems(props, mobile) {
18
18
  const {
19
- hidePricing
19
+ hidePricing,
20
+ isLiveLearningHubEnabled
20
21
  } = props;
21
22
  switch (props.type) {
22
23
  case 'anon':
23
24
  switch (props.variant) {
24
25
  case 'landing':
25
- return mobile ? anonLandingMobileHeaderItems(hidePricing, props.user) : anonLandingHeaderItems(hidePricing, props.user);
26
+ return mobile ? anonLandingMobileHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled) : anonLandingHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled);
26
27
  case 'login':
27
- return mobile ? anonLoginMobileHeaderItems(hidePricing, props.user) : anonLoginHeaderItems(hidePricing, props.user);
28
+ return mobile ? anonLoginMobileHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled) : anonLoginHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled);
28
29
  case 'signup':
29
- return mobile ? anonSignupMobileHeaderItems(hidePricing, props.user) : anonSignupHeaderItems(hidePricing, props.user);
30
+ return mobile ? anonSignupMobileHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled) : anonSignupHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled);
30
31
  default:
31
- return mobile ? anonDefaultMobileHeaderItems(hidePricing, props.user) : anonDefaultHeaderItems(hidePricing, props.user);
32
+ return mobile ? anonDefaultMobileHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled) : anonDefaultHeaderItems(hidePricing, props.user, isLiveLearningHubEnabled);
32
33
  }
33
34
  case 'enterprise':
34
35
  return mobile ? enterpriseMobileHeaderItems(props.user, props) : enterpriseHeaderItems(props.user, props);
35
36
  case 'free':
36
- return mobile ? freeMobileHeaderItems(props.user, hidePricing) : freeHeaderItems(props.user, hidePricing);
37
+ return mobile ? freeMobileHeaderItems(props.user, hidePricing, isLiveLearningHubEnabled) : freeHeaderItems(props.user, hidePricing, isLiveLearningHubEnabled);
37
38
  case 'pro':
38
- return mobile ? proMobileHeaderItems(props.user) : proHeaderItems(props.user);
39
+ return mobile ? proMobileHeaderItems(props.user, isLiveLearningHubEnabled) : proHeaderItems(props.user, isLiveLearningHubEnabled);
39
40
  case 'teams':
40
- return mobile ? teamsMobileHeaderItems(props.user) : teamsHeaderItems(props.user);
41
+ return mobile ? teamsMobileHeaderItems(props.user, isLiveLearningHubEnabled) : teamsHeaderItems(props.user, isLiveLearningHubEnabled);
41
42
  case 'simple':
42
43
  return mobile ? simpleMobileHeaderItems : simpleHeaderItems;
43
44
  case 'bootcamp':
@@ -52,6 +53,10 @@ export const GlobalHeader = props => {
52
53
  onLinkAction
53
54
  } = props;
54
55
  const theme = useTheme();
56
+
57
+ // Use context to get the live learning hub value, fallback to props for backward compatibility
58
+ const contextValue = useContext(LiveLearningHubContext);
59
+ const isLiveLearningHubEnabled = contextValue || !!props.isLiveLearningHubEnabled;
55
60
  const combinedAction = useCallback((event, item) => {
56
61
  action(event, item);
57
62
  if (isAppHeaderItemWithHref(item)) onLinkAction?.(event, item);
@@ -64,38 +69,41 @@ export const GlobalHeader = props => {
64
69
  showOnboardingQuiz,
65
70
  showSortingQuiz
66
71
  },
67
- children: /*#__PURE__*/_jsxs(Box, {
68
- as: "header",
69
- position: "sticky",
70
- top: 0,
71
- zIndex: theme.elements.headerZ,
72
- children: [/*#__PURE__*/_jsx(AppHeader, {
73
- action: combinedAction,
74
- items: getAppHeaderItems(props, false),
75
- search: props.search,
76
- ...(props.type === 'anon' ? {
77
- redirectParam: props.redirectParam
78
- } : hideNotification ? {} : {
79
- notifications: props.notifications
80
- }),
81
- hideRightButtonDefaults: hideNotification,
82
- isAnon: props.type === 'anon',
83
- isTeams: props.type === 'teams',
84
- type: hideNotification ? 'enterprise' : 'standard'
85
- }), /*#__PURE__*/_jsx(AppHeaderMobile, {
86
- action: combinedAction,
87
- items: getAppHeaderItems(props, true),
88
- ...(props.type === 'anon' || hideNotification ? {} : {
89
- notifications: props.notifications
90
- }),
91
- search: props.search,
92
- redirectParam: props.type === 'anon' ? props.redirectParam : undefined,
93
- isEnterprise: props.type === 'enterprise',
94
- isAnon: props.type === 'anon',
95
- isSimple: props.type === 'simple',
96
- hideRightMenuButton: props.type === 'simple' || props.type === 'loading',
97
- navigationMenuFormattedLabel: props?.localizedLabels?.navigationMenuFormattedLabel
98
- }), props.children]
72
+ children: /*#__PURE__*/_jsx(LiveLearningHubContext.Provider, {
73
+ value: isLiveLearningHubEnabled,
74
+ children: /*#__PURE__*/_jsxs(Box, {
75
+ as: "header",
76
+ position: "sticky",
77
+ top: 0,
78
+ zIndex: theme.elements.headerZ,
79
+ children: [/*#__PURE__*/_jsx(AppHeader, {
80
+ action: combinedAction,
81
+ items: getAppHeaderItems(props, false),
82
+ search: props.search,
83
+ ...(props.type === 'anon' ? {
84
+ redirectParam: props.redirectParam
85
+ } : hideNotification ? {} : {
86
+ notifications: props.notifications
87
+ }),
88
+ hideRightButtonDefaults: hideNotification,
89
+ isAnon: props.type === 'anon',
90
+ isTeams: props.type === 'teams',
91
+ type: hideNotification ? 'enterprise' : 'standard'
92
+ }), /*#__PURE__*/_jsx(AppHeaderMobile, {
93
+ action: combinedAction,
94
+ items: getAppHeaderItems(props, true),
95
+ ...(props.type === 'anon' || hideNotification ? {} : {
96
+ notifications: props.notifications
97
+ }),
98
+ search: props.search,
99
+ redirectParam: props.type === 'anon' ? props.redirectParam : undefined,
100
+ isEnterprise: props.type === 'enterprise',
101
+ isAnon: props.type === 'anon',
102
+ isSimple: props.type === 'simple',
103
+ hideRightMenuButton: props.type === 'simple' || props.type === 'loading',
104
+ navigationMenuFormattedLabel: props?.localizedLabels?.navigationMenuFormattedLabel
105
+ }), props.children]
106
+ })
99
107
  })
100
108
  });
101
109
  };
@@ -0,0 +1,90 @@
1
+ import { WithChildrenProp } from '@codecademy/gamut';
2
+ import { ReactNode } from 'react';
3
+ import { AppHeaderAction, AppHeaderClickHandler, AppHeaderItemWithHref, AppHeaderSearch } from '..';
4
+ import { AppHeaderNotificationSettings } from '../Notifications/types';
5
+ type RenderProfile = {
6
+ desktop: () => ReactNode;
7
+ mobile: () => ReactNode;
8
+ };
9
+ export type NavigationMenuFormattedLabel = Record<'openMenuTip' | 'closeMenuTip' | 'siteNavigation', string>;
10
+ export type ResourceDropdownFormattedLabel = {
11
+ title?: string;
12
+ workspaces?: string;
13
+ docs?: string;
14
+ articles?: string;
15
+ };
16
+ type localizedLabels = {
17
+ enterpriseFormattedHomeLabel?: string;
18
+ resourcesDropdown?: ResourceDropdownFormattedLabel;
19
+ navigationMenuFormattedLabel?: NavigationMenuFormattedLabel;
20
+ };
21
+ interface BaseHeader extends WithChildrenProp, AppHeaderAction {
22
+ /** A method to be called on click/activating a header item */
23
+ action: AppHeaderClickHandler;
24
+ /** A method to be called only on click/activating a *link* header item */
25
+ onLinkAction?: AppHeaderClickHandler<AppHeaderItemWithHref>;
26
+ className?: string;
27
+ hidePricing?: boolean;
28
+ hideHeaderLinksInChromeless?: boolean;
29
+ hideHeaderResourcesDropdown?: boolean;
30
+ hideEnterpriseHeader?: boolean;
31
+ localizedLabels?: localizedLabels;
32
+ search: AppHeaderSearch;
33
+ isLiveLearningHubEnabled?: boolean;
34
+ }
35
+ export type User = {
36
+ avatar: string;
37
+ displayName: string;
38
+ enterpriseUrl?: string;
39
+ isAdmin?: boolean;
40
+ isBusinessAdmin?: boolean;
41
+ isBusinessSsoUser?: boolean;
42
+ isCustomerSupport?: boolean;
43
+ isAccountManager?: boolean;
44
+ isPaused?: boolean;
45
+ isPlusUser?: boolean;
46
+ isBusinessUser?: boolean;
47
+ inBusinessTrial?: boolean;
48
+ hasBusinessSubscription?: boolean;
49
+ proCheckoutUrl?: string;
50
+ showProUpgrade?: boolean;
51
+ hideCareerPaths?: boolean;
52
+ hideBusinessAccount?: boolean;
53
+ enrolledInTwoOrMoreContainers?: boolean;
54
+ };
55
+ type LoggedInHeader = BaseHeader & {
56
+ notifications: AppHeaderNotificationSettings;
57
+ renderProfile?: RenderProfile;
58
+ user: User;
59
+ };
60
+ export type AnonHeaderVariant = 'landing' | 'login' | 'signup';
61
+ export type AnonHeader = BaseHeader & {
62
+ redirectParam?: string;
63
+ type: 'anon';
64
+ variant?: AnonHeaderVariant;
65
+ user?: User;
66
+ };
67
+ export type FreeHeader = LoggedInHeader & {
68
+ type: 'free';
69
+ };
70
+ export type ProHeader = LoggedInHeader & {
71
+ type: 'pro';
72
+ };
73
+ export type TeamsHeader = LoggedInHeader & {
74
+ type: 'teams';
75
+ };
76
+ export type EnterpriseHeader = BaseHeader & {
77
+ type: 'enterprise';
78
+ user: User;
79
+ };
80
+ export type LoadingHeader = BaseHeader & {
81
+ type: 'loading';
82
+ };
83
+ export type SimpleHeader = BaseHeader & {
84
+ type: 'simple';
85
+ };
86
+ export type SimpleBootcampHeader = BaseHeader & {
87
+ type: 'bootcamp';
88
+ bootcampSlug: string;
89
+ };
90
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const formatUrlWithRedirect: (url: string, redirectUrl?: string) => string;
2
+ export declare const formatEnterpriseUrl: (url?: string) => string | undefined;
@@ -0,0 +1,34 @@
1
+ import { ModalProps, WithChildrenProp } from '@codecademy/gamut';
2
+ import * as React from 'react';
3
+ import { BannerProps } from '../Banner';
4
+ import { GlobalFooterProps } from '../GlobalFooter';
5
+ import { GlobalHeaderProps } from '../GlobalHeader';
6
+ export type GlobalPageBackgroundColor = 'beige' | 'background' | 'background-contrast' | 'navy' | 'paleBlue' | 'paleGreen' | 'palePink' | 'paleYellow' | 'white';
7
+ export interface GlobalPageProps extends WithChildrenProp {
8
+ backgroundColor?: GlobalPageBackgroundColor;
9
+ /**
10
+ * Props directly passed to the Banner.
11
+ */
12
+ banner?: BannerProps;
13
+ /**
14
+ * Element type to render around the children.
15
+ */
16
+ contentAs?: 'div' | 'main';
17
+ /**
18
+ * Props directly passed to the GlobalFooter.
19
+ */
20
+ footer?: GlobalFooterProps;
21
+ /**
22
+ * Props directly passed to the GlobalHeader.
23
+ */
24
+ header: GlobalHeaderProps;
25
+ /**
26
+ * Props directly passed to the Modal.
27
+ */
28
+ modal?: ModalProps;
29
+ /**
30
+ * Custom element ID to link to by the SkipToContent control, if not a default one at the beginning of the page.
31
+ */
32
+ skipToContentId?: string;
33
+ }
34
+ export declare const GlobalPage: React.FC<GlobalPageProps>;