@codecademy/brand 4.0.0-alpha.fdfb3ba880.0 → 4.0.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 (1061) hide show
  1. package/dist/AbbreviatedCommunityEventCard/index.d.ts +7 -10
  2. package/dist/AbbreviatedCommunityEventCard/index.js +98 -86
  3. package/dist/AppBar/AppBarSection.d.ts +10 -15
  4. package/dist/AppBar/AppBarSection.js +39 -35
  5. package/dist/AppBar/index.d.ts +8 -12
  6. package/dist/AppBar/index.js +20 -20
  7. package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +9 -13
  8. package/dist/AppBarDeprecated/AppBarSectionDeprecated.js +23 -21
  9. package/dist/AppBarDeprecated/index.d.ts +9 -13
  10. package/dist/AppBarDeprecated/index.js +24 -22
  11. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.d.ts +13 -0
  12. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.js +111 -132
  13. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.d.ts +8 -0
  14. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.js +334 -288
  15. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.d.ts +17 -0
  16. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.js +226 -270
  17. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +5 -9
  18. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.js +122 -107
  19. package/dist/AppHeader/AppHeaderElements/AppHeaderDietCard/index.d.ts +11 -0
  20. package/dist/AppHeader/AppHeaderElements/AppHeaderDietCard/index.js +124 -112
  21. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +11 -16
  22. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.js +113 -94
  23. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.d.ts +13 -0
  24. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.js +27 -29
  25. package/dist/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.d.ts +4 -0
  26. package/dist/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.js +56 -59
  27. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +44 -53
  28. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.js +70 -56
  29. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.d.ts +42 -0
  30. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.js +36 -32
  31. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.d.ts +8 -0
  32. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +59 -41
  33. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +14 -0
  34. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.js +32 -23
  35. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +5 -10
  36. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.js +55 -49
  37. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.d.ts +14 -0
  38. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.js +86 -80
  39. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.d.ts +12 -0
  40. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.js +101 -76
  41. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.d.ts +10 -0
  42. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.js +17 -20
  43. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.d.ts +10 -0
  44. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.js +107 -110
  45. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.d.ts +18 -0
  46. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.js +291 -335
  47. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +5 -9
  48. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +120 -102
  49. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/AppHeaderSectionContext.d.ts +7 -0
  50. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/AppHeaderSectionContext.js +9 -15
  51. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.d.ts +6 -0
  52. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.js +89 -83
  53. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileNavMenu.d.ts +11 -0
  54. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileNavMenu.js +61 -49
  55. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.d.ts +20 -0
  56. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.js +125 -98
  57. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/PanelLayout.d.ts +9 -0
  58. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/PanelLayout.js +81 -83
  59. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.d.ts +88 -0
  60. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.js +118 -168
  61. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.d.ts +24 -0
  62. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.js +144 -117
  63. package/dist/AppHeader/AppHeaderElements/AppHeaderSkillTile/index.d.ts +6 -0
  64. package/dist/AppHeader/AppHeaderElements/AppHeaderSkillTile/index.js +65 -53
  65. package/dist/AppHeader/Search/DefaultResults.d.ts +10 -0
  66. package/dist/AppHeader/Search/DefaultResults.js +111 -101
  67. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +7 -0
  68. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.js +79 -68
  69. package/dist/AppHeader/Search/SearchButton.d.ts +2 -0
  70. package/dist/AppHeader/Search/SearchButton.js +71 -46
  71. package/dist/AppHeader/Search/SearchPane.d.ts +6 -0
  72. package/dist/AppHeader/Search/SearchPane.js +622 -472
  73. package/dist/AppHeader/Search/SearchTrackingProvider/index.d.ts +17 -0
  74. package/dist/AppHeader/Search/SearchTrackingProvider/index.js +23 -26
  75. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +18 -0
  76. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.js +35 -43
  77. package/dist/AppHeader/Search/SearchWorker/index.d.ts +4 -9
  78. package/dist/AppHeader/Search/SearchWorker/index.js +23 -23
  79. package/dist/AppHeader/Search/SearchWorker/src.d.ts +1 -0
  80. package/dist/AppHeader/Search/SearchWorker/src.js +305 -153
  81. package/dist/AppHeader/Search/SearchWorker/types.d.ts +30 -23
  82. package/dist/AppHeader/Search/SearchWorker/types.js +5 -9
  83. package/dist/AppHeader/Search/SearchWorker/worker.d.ts +2 -0
  84. package/dist/AppHeader/Search/SearchWorker/worker.js +29 -24
  85. package/dist/AppHeader/Search/consts.d.ts +20 -23
  86. package/dist/AppHeader/Search/consts.js +39 -62
  87. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.d.ts +5 -0
  88. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.js +14 -16
  89. package/dist/AppHeader/Search/safelyRedirect.d.ts +5 -0
  90. package/dist/AppHeader/Search/safelyRedirect.js +42 -32
  91. package/dist/AppHeader/Search/types.d.ts +19 -11
  92. package/dist/AppHeader/Search/types.js +1 -0
  93. package/dist/AppHeader/Search/useHeaderSearch.d.ts +6 -0
  94. package/dist/AppHeader/Search/useHeaderSearch.js +40 -38
  95. package/dist/AppHeader/index.d.ts +22 -28
  96. package/dist/AppHeader/index.js +98 -90
  97. package/dist/AppHeader/shared/elements.d.ts +90 -9
  98. package/dist/AppHeader/shared/elements.js +243 -152
  99. package/dist/AppHeader/shared/index.d.ts +4 -4
  100. package/dist/AppHeader/shared/index.js +4 -0
  101. package/dist/AppHeader/shared/keyboardNav.d.ts +23 -1
  102. package/dist/AppHeader/shared/keyboardNav.js +65 -63
  103. package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +2 -1
  104. package/dist/AppHeader/shared/mockAppHeaderItems.js +10 -0
  105. package/dist/AppHeader/shared/types.d.ts +104 -108
  106. package/dist/AppHeader/shared/types.js +1 -5
  107. package/dist/AppHeader/shared/utils.d.ts +14 -0
  108. package/dist/AppHeader/shared/utils.js +100 -84
  109. package/dist/AppHeader/utils/types.d.ts +8 -0
  110. package/dist/AppHeader/utils/types.js +1 -0
  111. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +7 -12
  112. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.js +140 -121
  113. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.d.ts +13 -0
  114. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.js +30 -26
  115. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +7 -11
  116. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +122 -105
  117. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +7 -0
  118. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.js +60 -58
  119. package/dist/AppHeaderMobile/index.d.ts +19 -26
  120. package/dist/AppHeaderMobile/index.js +214 -191
  121. package/dist/Avatar/Avatar.stories.js +15 -0
  122. package/dist/Avatar/index.d.ts +33 -37
  123. package/dist/Avatar/index.js +45 -49
  124. package/dist/AvatarChooser/index.d.ts +10 -13
  125. package/dist/AvatarChooser/index.js +102 -93
  126. package/dist/BackToTopAnchor/index.d.ts +11 -13
  127. package/dist/BackToTopAnchor/index.js +37 -31
  128. package/dist/Banner/CountdownTimer.d.ts +5 -8
  129. package/dist/Banner/CountdownTimer.js +104 -103
  130. package/dist/Banner/EnhancedBanner.d.ts +16 -19
  131. package/dist/Banner/EnhancedBanner.js +169 -136
  132. package/dist/Banner/index.d.ts +18 -21
  133. package/dist/Banner/index.js +95 -73
  134. package/dist/BetaSticker/index.d.ts +4 -7
  135. package/dist/BetaSticker/index.js +57 -60
  136. package/dist/CareerPathCard/index.d.ts +20 -24
  137. package/dist/CareerPathCard/index.js +49 -33
  138. package/dist/Carousel/elements.d.ts +27 -0
  139. package/dist/Carousel/elements.js +14 -10
  140. package/dist/Carousel/index.d.ts +21 -24
  141. package/dist/Carousel/index.js +247 -185
  142. package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +2 -0
  143. package/dist/CertificationPathCard/index.d.ts +20 -24
  144. package/dist/CertificationPathCard/index.js +52 -40
  145. package/dist/CoachingSessionCard/index.d.ts +20 -23
  146. package/dist/CoachingSessionCard/index.js +73 -84
  147. package/dist/CommunityEventCard/EventTypeIcon.d.ts +11 -0
  148. package/dist/CommunityEventCard/EventTypeIcon.js +58 -59
  149. package/dist/CommunityEventCard/index.d.ts +27 -30
  150. package/dist/CommunityEventCard/index.js +302 -253
  151. package/dist/CommunityEventToast/index.d.ts +4 -7
  152. package/dist/CommunityEventToast/index.js +32 -33
  153. package/dist/ContentGroupBaseCard/helpers.d.ts +4 -8
  154. package/dist/ContentGroupBaseCard/helpers.js +11 -12
  155. package/dist/ContentGroupBaseCard/index.d.ts +31 -38
  156. package/dist/ContentGroupBaseCard/index.js +236 -209
  157. package/dist/ContentGroupBaseCard/shared.d.ts +7 -0
  158. package/dist/ContentGroupBaseCard/shared.js +67 -73
  159. package/dist/ContentGroupBaseCard/types.d.ts +8 -11
  160. package/dist/ContentGroupBaseCard/types.js +11 -15
  161. package/dist/CourseCard/__tests__/__fixtures__/index.d.ts +3 -0
  162. package/dist/CourseCard/index.d.ts +19 -24
  163. package/dist/CourseCard/index.js +45 -31
  164. package/dist/CurriculumCard/BottomTag/index.d.ts +7 -6
  165. package/dist/CurriculumCard/BottomTag/index.js +24 -26
  166. package/dist/CurriculumCard/Difficulty/helpers.d.ts +2 -7
  167. package/dist/CurriculumCard/Difficulty/helpers.js +11 -15
  168. package/dist/CurriculumCard/Difficulty/index.d.ts +3 -7
  169. package/dist/CurriculumCard/Difficulty/index.js +47 -40
  170. package/dist/CurriculumCard/Difficulty/types.d.ts +13 -16
  171. package/dist/CurriculumCard/Difficulty/types.js +17 -16
  172. package/dist/CurriculumCard/Footer/index.d.ts +10 -0
  173. package/dist/CurriculumCard/Footer/index.js +54 -47
  174. package/dist/CurriculumCard/Image/index.d.ts +9 -0
  175. package/dist/CurriculumCard/Image/index.js +52 -43
  176. package/dist/CurriculumCard/Subtitle/helpers.d.ts +1 -0
  177. package/dist/CurriculumCard/Subtitle/helpers.js +8 -8
  178. package/dist/CurriculumCard/Subtitle/index.d.ts +7 -10
  179. package/dist/CurriculumCard/Subtitle/index.js +34 -37
  180. package/dist/CurriculumCard/index.d.ts +52 -56
  181. package/dist/CurriculumCard/index.js +124 -114
  182. package/dist/DropdownButton/DropdownList.d.ts +14 -16
  183. package/dist/DropdownButton/DropdownList.js +73 -55
  184. package/dist/DropdownButton/index.d.ts +69 -75
  185. package/dist/DropdownButton/index.js +169 -137
  186. package/dist/DropdownButton/useDynamicPopoverPosition.d.ts +14 -0
  187. package/dist/DropdownButton/useDynamicPopoverPosition.js +49 -34
  188. package/dist/DropdownButton/useDynamicPopoverPosition.test.js +85 -0
  189. package/dist/EmptySection/index.d.ts +27 -32
  190. package/dist/EmptySection/index.js +181 -154
  191. package/dist/ErrorContents/index.d.ts +7 -11
  192. package/dist/ErrorContents/index.js +48 -62
  193. package/dist/FeatureList/index.d.ts +9 -16
  194. package/dist/FeatureList/index.js +41 -39
  195. package/dist/GlobalFooter/FooterHeading.d.ts +9 -0
  196. package/dist/GlobalFooter/FooterHeading.js +29 -25
  197. package/dist/GlobalFooter/FooterLegal/LegalLinks.d.ts +6 -0
  198. package/dist/GlobalFooter/FooterLegal/LegalLinks.js +43 -74
  199. package/dist/GlobalFooter/FooterLegal/MadeIn.d.ts +5 -0
  200. package/dist/GlobalFooter/FooterLegal/MadeIn.js +63 -75
  201. package/dist/GlobalFooter/FooterLegal/index.d.ts +7 -0
  202. package/dist/GlobalFooter/FooterLegal/index.js +22 -26
  203. package/dist/GlobalFooter/FooterLinks.d.ts +18 -0
  204. package/dist/GlobalFooter/FooterLinks.js +52 -45
  205. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.d.ts +7 -0
  206. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +292 -288
  207. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +11 -0
  208. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +286 -251
  209. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.d.ts +7 -0
  210. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +271 -242
  211. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.d.ts +2 -0
  212. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.js +29 -25
  213. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.d.ts +4 -0
  214. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.js +75 -67
  215. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.d.ts +3 -0
  216. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.js +86 -69
  217. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts +3 -6
  218. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.js +1 -0
  219. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.d.ts +2 -0
  220. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.js +50 -57
  221. package/dist/GlobalFooter/FooterNavLinks/index.d.ts +4 -0
  222. package/dist/GlobalFooter/FooterNavLinks/index.js +43 -41
  223. package/dist/GlobalFooter/FooterSubHeading.d.ts +9 -0
  224. package/dist/GlobalFooter/FooterSubHeading.js +22 -0
  225. package/dist/GlobalFooter/index.d.ts +21 -25
  226. package/dist/GlobalFooter/index.js +37 -35
  227. package/dist/GlobalFooter/types.d.ts +11 -14
  228. package/dist/GlobalFooter/types.js +1 -0
  229. package/dist/GlobalHeader/GlobalHeaderItems.d.ts +28 -0
  230. package/dist/GlobalHeader/GlobalHeaderItems.js +378 -376
  231. package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +83 -0
  232. package/dist/GlobalHeader/GlobalHeaderVariants.js +325 -304
  233. package/dist/GlobalHeader/context.d.ts +34 -0
  234. package/dist/GlobalHeader/context.js +72 -69
  235. package/dist/GlobalHeader/index.d.ts +7 -10
  236. package/dist/GlobalHeader/index.js +180 -165
  237. package/dist/GlobalHeader/types.d.ts +99 -104
  238. package/dist/GlobalHeader/types.js +1 -0
  239. package/dist/GlobalHeader/urlHelpers.d.ts +2 -0
  240. package/dist/GlobalHeader/urlHelpers.js +20 -19
  241. package/dist/GlobalPage/index.d.ts +43 -46
  242. package/dist/GlobalPage/index.js +59 -42
  243. package/dist/Grid/GridCollapse.d.ts +39 -47
  244. package/dist/Grid/GridCollapse.js +194 -152
  245. package/dist/Grid/GridCollapse.test.js +96 -0
  246. package/dist/Grid/Subgrid.d.ts +5 -11
  247. package/dist/Grid/Subgrid.js +35 -37
  248. package/dist/Grid/getCSSFromColumnCount.d.ts +6 -10
  249. package/dist/Grid/getCSSFromColumnCount.js +7 -9
  250. package/dist/Grid/index.d.ts +3 -4
  251. package/dist/Grid/index.js +3 -5
  252. package/dist/HeaderHeightArea/index.d.ts +8 -12
  253. package/dist/HeaderHeightArea/index.js +40 -35
  254. package/dist/HeaderHeightArea/useIsInHeaderRegion.d.ts +1 -0
  255. package/dist/HeaderHeightArea/useIsInHeaderRegion.js +14 -15
  256. package/dist/HorizontalScrollMenu/index.d.ts +6 -10
  257. package/dist/HorizontalScrollMenu/index.js +75 -65
  258. package/dist/HubCard/index.d.ts +7 -11
  259. package/dist/HubCard/index.js +38 -38
  260. package/dist/InfoCard/index.d.ts +18 -22
  261. package/dist/InfoCard/index.js +147 -109
  262. package/dist/InstructorCard/__tests__/__fixtures__/index.d.ts +2 -0
  263. package/dist/InstructorCard/index.d.ts +18 -0
  264. package/dist/InstructorCard/index.js +175 -0
  265. package/dist/Konamimojisplosion/Konamimojisplosion.d.ts +4 -8
  266. package/dist/Konamimojisplosion/Konamimojisplosion.js +7 -10
  267. package/dist/Konamimojisplosion/index.d.ts +2 -3
  268. package/dist/Konamimojisplosion/index.js +2 -4
  269. package/dist/Konamimojisplosion/useKonamimojisplosion.d.ts +1 -4
  270. package/dist/Konamimojisplosion/useKonamimojisplosion.js +32 -44
  271. package/dist/LandingPage/Description.d.ts +5 -9
  272. package/dist/LandingPage/Description.js +14 -16
  273. package/dist/LandingPage/PageFAQs.d.ts +10 -11
  274. package/dist/LandingPage/PageFAQs.js +44 -46
  275. package/dist/LandingPage/Title.d.ts +19 -23
  276. package/dist/LandingPage/Title.js +27 -29
  277. package/dist/LandingPage/TitleWithEyebrow.d.ts +10 -14
  278. package/dist/LandingPage/TitleWithEyebrow.js +40 -37
  279. package/dist/LandingPage/index.d.ts +6 -15
  280. package/dist/LandingPage/index.js +6 -15
  281. package/dist/LandingPage/types.d.ts +30 -29
  282. package/dist/LandingPage/types.js +1 -0
  283. package/dist/LayoutMenu/AccordionMenu.d.ts +24 -16
  284. package/dist/LayoutMenu/AccordionMenu.js +70 -59
  285. package/dist/LayoutMenu/LayoutMenu.d.ts +43 -47
  286. package/dist/LayoutMenu/LayoutMenu.js +119 -105
  287. package/dist/LayoutMenu/LayoutMenuSection.d.ts +16 -0
  288. package/dist/LayoutMenu/LayoutMenuSection.js +39 -36
  289. package/dist/LayoutMenu/SectionItemLink.d.ts +6 -10
  290. package/dist/LayoutMenu/SectionItemLink.js +16 -17
  291. package/dist/LayoutMenu/SelectedSectionItem.d.ts +3 -7
  292. package/dist/LayoutMenu/SelectedSectionItem.js +17 -20
  293. package/dist/LayoutMenu/index.d.ts +3 -4
  294. package/dist/LayoutMenu/index.js +3 -5
  295. package/dist/LayoutMenuVariant/AccordionMenu.d.ts +19 -17
  296. package/dist/LayoutMenuVariant/AccordionMenu.js +86 -72
  297. package/dist/LayoutMenuVariant/LayoutMenu.d.ts +38 -42
  298. package/dist/LayoutMenuVariant/LayoutMenu.js +93 -85
  299. package/dist/LayoutMenuVariant/LayoutMenuSection.d.ts +10 -0
  300. package/dist/LayoutMenuVariant/LayoutMenuSection.js +41 -33
  301. package/dist/LayoutMenuVariant/SectionItemLink.d.ts +7 -11
  302. package/dist/LayoutMenuVariant/SectionItemLink.js +17 -17
  303. package/dist/LayoutMenuVariant/index.d.ts +2 -9
  304. package/dist/LayoutMenuVariant/index.js +2 -12
  305. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.d.ts +8 -0
  306. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +55 -50
  307. package/dist/LearningOutcomeAssessmentScores/index.d.ts +6 -8
  308. package/dist/LearningOutcomeAssessmentScores/index.js +24 -24
  309. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +14 -17
  310. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.js +55 -44
  311. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +8 -16
  312. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.js +34 -34
  313. package/dist/LearningOutcomeBadges/index.d.ts +2 -3
  314. package/dist/LearningOutcomeBadges/index.js +2 -4
  315. package/dist/LearningOutcomeCard/index.d.ts +23 -27
  316. package/dist/LearningOutcomeCard/index.js +197 -159
  317. package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.d.ts +7 -0
  318. package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.js +42 -40
  319. package/dist/LearningOutcomeFlyout/index.d.ts +7 -12
  320. package/dist/LearningOutcomeFlyout/index.js +349 -306
  321. package/dist/LearningOutcomeFlyout/types.d.ts +54 -58
  322. package/dist/LearningOutcomeFlyout/types.js +5 -9
  323. package/dist/LearningOutcomePopover/index.d.ts +8 -11
  324. package/dist/LearningOutcomePopover/index.js +121 -112
  325. package/dist/LearningOutcomeTile/Tile.d.ts +7 -0
  326. package/dist/LearningOutcomeTile/Tile.js +75 -62
  327. package/dist/LearningOutcomeTile/index.d.ts +3 -7
  328. package/dist/LearningOutcomeTile/index.js +114 -92
  329. package/dist/LearningOutcomeTile/types.d.ts +36 -35
  330. package/dist/LearningOutcomeTile/types.js +9 -8
  331. package/dist/ListSection/index.d.ts +20 -25
  332. package/dist/ListSection/index.js +64 -53
  333. package/dist/Loading/index.d.ts +4 -8
  334. package/dist/Loading/index.js +81 -87
  335. package/dist/LoadingCurriculumCard/index.d.ts +5 -8
  336. package/dist/LoadingCurriculumCard/index.js +82 -83
  337. package/dist/Logos/LogoCodecademy/index.d.ts +2 -6
  338. package/dist/Logos/LogoCodecademy/index.js +22 -22
  339. package/dist/Logos/LogoCodecademyMini/index.d.ts +2 -6
  340. package/dist/Logos/LogoCodecademyMini/index.js +18 -18
  341. package/dist/Logos/LogoCodecademyPro/index.d.ts +2 -6
  342. package/dist/Logos/LogoCodecademyPro/index.js +25 -25
  343. package/dist/Logos/LogoCodecademyTeams/index.d.ts +2 -6
  344. package/dist/Logos/LogoCodecademyTeams/index.js +46 -52
  345. package/dist/Logos/LogoFromSkillsoft/index.d.ts +3 -7
  346. package/dist/Logos/LogoFromSkillsoft/index.js +48 -47
  347. package/dist/Logos/LogoLXStudio/index.d.ts +3 -7
  348. package/dist/Logos/LogoLXStudio/index.js +40 -36
  349. package/dist/Logos/ProLabel/ProLabelCutout/index.d.ts +8 -0
  350. package/dist/Logos/ProLabel/ProLabelCutout/index.js +31 -36
  351. package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.d.ts +7 -0
  352. package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.js +31 -37
  353. package/dist/Logos/ProLabel/index.d.ts +11 -14
  354. package/dist/Logos/ProLabel/index.js +27 -25
  355. package/dist/Logos/index.d.ts +7 -8
  356. package/dist/Logos/index.js +7 -9
  357. package/dist/Logos/shared.d.ts +989 -235
  358. package/dist/Logos/shared.js +14 -10
  359. package/dist/MarketingToaster/index.d.ts +6 -9
  360. package/dist/MarketingToaster/index.js +66 -46
  361. package/dist/NotFoundContent/index.d.ts +6 -9
  362. package/dist/NotFoundContent/index.js +55 -46
  363. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.d.ts +7 -0
  364. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +23 -33
  365. package/dist/NotificationList/EmptyNotification/index.d.ts +1 -0
  366. package/dist/NotificationList/EmptyNotification/index.js +38 -42
  367. package/dist/NotificationList/NotificationItem.d.ts +7 -11
  368. package/dist/NotificationList/NotificationItem.js +149 -157
  369. package/dist/NotificationList/index.d.ts +8 -12
  370. package/dist/NotificationList/index.js +46 -41
  371. package/dist/NotificationList/typings.d.ts +14 -17
  372. package/dist/NotificationList/typings.js +1 -0
  373. package/dist/Notifications/NotificationBell.d.ts +10 -0
  374. package/dist/Notifications/NotificationBell.js +72 -60
  375. package/dist/Notifications/NotificationsContents.d.ts +3 -0
  376. package/dist/Notifications/NotificationsContents.js +85 -78
  377. package/dist/Notifications/NotificationsDropdown.d.ts +2 -0
  378. package/dist/Notifications/NotificationsDropdown.js +25 -23
  379. package/dist/Notifications/__fixtures__/NotificationTestComponent.d.ts +2 -0
  380. package/dist/Notifications/__fixtures__/NotificationTestComponent.js +12 -0
  381. package/dist/Notifications/__fixtures__/stubs.d.ts +2 -0
  382. package/dist/Notifications/__fixtures__/stubs.js +8 -0
  383. package/dist/Notifications/constants.d.ts +4 -0
  384. package/dist/Notifications/constants.js +3 -7
  385. package/dist/Notifications/elements.d.ts +12 -0
  386. package/dist/Notifications/elements.js +20 -19
  387. package/dist/Notifications/types.d.ts +22 -16
  388. package/dist/Notifications/types.js +1 -0
  389. package/dist/Notifications/useHeaderNotifications.d.ts +10 -0
  390. package/dist/Notifications/useHeaderNotifications.js +37 -37
  391. package/dist/Notifications/useNotificationButtons.d.ts +9 -0
  392. package/dist/Notifications/useNotificationButtons.js +56 -52
  393. package/dist/PageAlerts/PageAlerts.d.ts +9 -15
  394. package/dist/PageAlerts/PageAlerts.js +74 -64
  395. package/dist/PageAlerts/PageAlertsProvider.d.ts +10 -14
  396. package/dist/PageAlerts/PageAlertsProvider.js +33 -36
  397. package/dist/PageAlerts/index.d.ts +3 -4
  398. package/dist/PageAlerts/index.js +3 -4
  399. package/dist/PageAlerts/types.d.ts +14 -15
  400. package/dist/PageAlerts/types.js +1 -0
  401. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +17 -20
  402. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +53 -48
  403. package/dist/PageLayoutWithSidebarMenu/index.d.ts +1 -2
  404. package/dist/PageLayoutWithSidebarMenu/index.js +1 -3
  405. package/dist/PageSection/index.d.ts +14 -17
  406. package/dist/PageSection/index.js +65 -61
  407. package/dist/PastDue/PastDueModalContents/index.d.ts +7 -11
  408. package/dist/PastDue/PastDueModalContents/index.js +30 -26
  409. package/dist/PastDue/index.d.ts +2 -3
  410. package/dist/PastDue/index.js +2 -4
  411. package/dist/PastDue/pastDueMessages.d.ts +4 -6
  412. package/dist/PastDue/pastDueMessages.js +48 -53
  413. package/dist/PausableImage/BaseImage/index.d.ts +15 -0
  414. package/dist/PausableImage/BaseImage/index.js +53 -69
  415. package/dist/PausableImage/index.d.ts +9 -14
  416. package/dist/PausableImage/index.js +35 -26
  417. package/dist/PlanCard/PlanCardBanner.d.ts +5 -8
  418. package/dist/PlanCard/PlanCardBanner.js +28 -27
  419. package/dist/PlanCard/PlanFeature.d.ts +10 -0
  420. package/dist/PlanCard/PlanFeature.js +105 -88
  421. package/dist/PlanCard/PopularBadge.d.ts +3 -0
  422. package/dist/PlanCard/PopularBadge.js +13 -18
  423. package/dist/PlanCard/PricingAmount.d.ts +14 -0
  424. package/dist/PlanCard/PricingAmount.js +116 -118
  425. package/dist/PlanCard/RecommendedBadge.d.ts +3 -0
  426. package/dist/PlanCard/RecommendedBadge.js +24 -29
  427. package/dist/PlanCard/consts.d.ts +15 -0
  428. package/dist/PlanCard/consts.js +167 -219
  429. package/dist/PlanCard/index.d.ts +17 -21
  430. package/dist/PlanCard/index.js +373 -336
  431. package/dist/PlanCard/types.d.ts +38 -41
  432. package/dist/PlanCard/types.js +69 -66
  433. package/dist/PlanCardTeams/consts.d.ts +9 -0
  434. package/dist/PlanCardTeams/consts.js +8 -21
  435. package/dist/PlanCardTeams/index.d.ts +7 -11
  436. package/dist/PlanCardTeams/index.js +165 -135
  437. package/dist/PricingSection/ConditionalColorMode.d.ts +4 -0
  438. package/dist/PricingSection/ConditionalColorMode.js +13 -13
  439. package/dist/PricingSection/PricingCard/PricingAmount.d.ts +14 -0
  440. package/dist/PricingSection/PricingCard/PricingAmount.js +114 -118
  441. package/dist/PricingSection/PricingCard/RecommendedBadge.d.ts +3 -0
  442. package/dist/PricingSection/PricingCard/RecommendedBadge.js +24 -29
  443. package/dist/PricingSection/PricingCard/consts.d.ts +14 -0
  444. package/dist/PricingSection/PricingCard/consts.js +96 -0
  445. package/dist/PricingSection/PricingCard/index.d.ts +16 -0
  446. package/dist/PricingSection/PricingCard/index.js +198 -170
  447. package/dist/PricingSection/PricingCard/types.d.ts +38 -24
  448. package/dist/PricingSection/PricingCard/types.js +58 -61
  449. package/dist/PricingSection/ProductCTA.d.ts +12 -0
  450. package/dist/PricingSection/ProductCTA.js +133 -103
  451. package/dist/PricingSection/Products.d.ts +15 -0
  452. package/dist/PricingSection/Products.js +92 -85
  453. package/dist/PricingSection/config.d.ts +8 -0
  454. package/dist/PricingSection/config.js +36 -29
  455. package/dist/PricingSection/index.d.ts +14 -20
  456. package/dist/PricingSection/index.js +41 -35
  457. package/dist/PricingSection/types.d.ts +29 -16
  458. package/dist/PricingSection/types.js +9 -13
  459. package/dist/ProLogoAlt/index.d.ts +8 -12
  460. package/dist/ProLogoAlt/index.js +26 -26
  461. package/dist/ProductFeatureShowcase/index.d.ts +15 -18
  462. package/dist/ProductFeatureShowcase/index.js +119 -105
  463. package/dist/QuizScore/index.d.ts +10 -13
  464. package/dist/QuizScore/index.js +84 -91
  465. package/dist/RatingsBar/index.d.ts +11 -15
  466. package/dist/RatingsBar/index.js +34 -41
  467. package/dist/Recurly/context/NoProvider.d.ts +8 -0
  468. package/dist/Recurly/context/NoProvider.js +6 -10
  469. package/dist/Recurly/context/elements/index.d.ts +21 -10
  470. package/dist/Recurly/context/elements/index.js +42 -39
  471. package/dist/Recurly/context/index.d.ts +2 -2
  472. package/dist/Recurly/context/index.js +2 -0
  473. package/dist/Recurly/context/recurly/index.d.ts +7 -15
  474. package/dist/Recurly/context/recurly/index.js +47 -44
  475. package/dist/Recurly/context/recurly/loadRecurly.d.ts +5 -8
  476. package/dist/Recurly/context/recurly/loadRecurly.js +22 -21
  477. package/dist/Recurly/context/recurly/w.d.ts +14 -0
  478. package/dist/Recurly/context/recurly/w.js +3 -4
  479. package/dist/Recurly/fields/RecurlyField.d.ts +4 -13
  480. package/dist/Recurly/fields/RecurlyField.js +55 -65
  481. package/dist/Recurly/fields/elements.d.ts +15 -20
  482. package/dist/Recurly/fields/elements.js +95 -48
  483. package/dist/Recurly/fields/elements.test.js +79 -0
  484. package/dist/Recurly/fields/index.d.ts +2 -2
  485. package/dist/Recurly/fields/index.js +2 -0
  486. package/dist/Recurly/index.d.ts +2 -7
  487. package/dist/Recurly/index.js +2 -6
  488. package/dist/ResourceCard/index.d.ts +13 -17
  489. package/dist/ResourceCard/index.js +58 -56
  490. package/dist/ScoreSummary/SubScores.d.ts +26 -38
  491. package/dist/ScoreSummary/SubScores.js +163 -132
  492. package/dist/ScoreSummary/helpers.d.ts +11 -0
  493. package/dist/ScoreSummary/helpers.js +19 -17
  494. package/dist/ScoreSummary/index.d.ts +20 -24
  495. package/dist/ScoreSummary/index.js +108 -96
  496. package/dist/ScoreSummary/types.d.ts +305 -308
  497. package/dist/ScoreSummary/types.js +1 -0
  498. package/dist/SkillPathCard/__tests__/__fixtures__/index.d.ts +2 -0
  499. package/dist/SkillPathCard/index.d.ts +19 -24
  500. package/dist/SkillPathCard/index.js +46 -33
  501. package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +12 -9
  502. package/dist/SocialMediaSharing/SocialShareIconLink.js +48 -39
  503. package/dist/SocialMediaSharing/index.d.ts +44 -59
  504. package/dist/SocialMediaSharing/index.js +114 -80
  505. package/dist/SocialMediaSharingDropdown/__tests__/SocialMediaSharingDropdown-test.d.ts +1 -0
  506. package/dist/SocialMediaSharingDropdown/index.d.ts +14 -18
  507. package/dist/SocialMediaSharingDropdown/index.js +110 -95
  508. package/dist/Testimonial/index.d.ts +42 -50
  509. package/dist/Testimonial/index.js +153 -128
  510. package/dist/assets/darkQuotes.svg +1 -0
  511. package/dist/assets/lightQuotes.svg +1 -0
  512. package/dist/assets/orange_squiggle.svg +1 -0
  513. package/dist/index.d.ts +89 -132
  514. package/dist/index.js +86 -116
  515. package/dist/lib/breakpointHooks/index.d.ts +7 -10
  516. package/dist/lib/breakpointHooks/index.js +53 -51
  517. package/dist/lib/catalogList/index.d.ts +3 -0
  518. package/dist/lib/catalogList/index.js +61 -52
  519. package/dist/lib/resourcesList/index.d.ts +5 -0
  520. package/dist/lib/resourcesList/index.js +236 -65
  521. package/dist/png.d.ts +4 -0
  522. package/dist/react-freezeframe.d.ts +1 -0
  523. package/dist/remoteAssets/components.d.ts +1 -0
  524. package/dist/remoteAssets/components.js +1 -5
  525. package/dist/stories/Atoms/Avatar.stories.js +16 -0
  526. package/dist/stories/Atoms/BetaSticker.stories.js +21 -0
  527. package/dist/stories/Atoms/Logos/LogoCodecademy.stories.js +8 -0
  528. package/dist/stories/Atoms/Logos/LogoCodecademyMini.stories.js +8 -0
  529. package/dist/stories/Atoms/Logos/LogoCodecademyPro.stories.js +8 -0
  530. package/dist/stories/Atoms/Logos/LogoCodecademyTeams.stories.js +8 -0
  531. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +9 -0
  532. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +11 -0
  533. package/dist/stories/Atoms/Logos/ProLabel.stories.js +29 -0
  534. package/dist/stories/Atoms/RatingsBar.stories.js +16 -0
  535. package/dist/stories/Atoms/Subgrid.stories.js +87 -0
  536. package/dist/stories/Molecules/AppBar.stories.js +31 -0
  537. package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +84 -0
  538. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +67 -0
  539. package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +50 -0
  540. package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +43 -0
  541. package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +34 -0
  542. package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +40 -0
  543. package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +25 -0
  544. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +176 -0
  545. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +84 -0
  546. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.d.ts +5 -0
  547. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +90 -0
  548. package/dist/stories/Molecules/AvatarChooser.stories.js +22 -0
  549. package/dist/stories/Molecules/BackToTopAnchor.stories.js +51 -0
  550. package/dist/stories/Molecules/Banner.stories.js +112 -0
  551. package/dist/stories/Molecules/Carousel.stories.js +47 -0
  552. package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +175 -0
  553. package/dist/stories/Molecules/CurriculumCard.stories.js +201 -0
  554. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +94 -0
  555. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +67 -0
  556. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +85 -0
  557. package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +20 -0
  558. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +92 -0
  559. package/dist/stories/Molecules/DropdownButton.stories.js +207 -0
  560. package/dist/stories/Molecules/EmptySection.stories.js +167 -0
  561. package/dist/stories/Molecules/EnhancedBanner.stories.js +104 -0
  562. package/dist/stories/Molecules/ErrorContents.stories.js +19 -0
  563. package/dist/stories/Molecules/GridCollapse.stories.js +42 -0
  564. package/dist/stories/Molecules/HorizontalScrollMenu.examples.d.ts +1 -0
  565. package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +67 -0
  566. package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +11 -0
  567. package/dist/stories/Molecules/HubCard.stories.js +27 -0
  568. package/dist/stories/Molecules/InfoCard.stories.js +30 -0
  569. package/dist/stories/Molecules/InstructorCard.stories.js +125 -0
  570. package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.js +23 -0
  571. package/dist/stories/Molecules/LearningOutcomeCard.stories.js +189 -0
  572. package/dist/stories/Molecules/LearningOutcomeFlyout.stories.js +62 -0
  573. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +20 -0
  574. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +10 -0
  575. package/dist/stories/Molecules/LearningOutcomePopover.stories.js +39 -0
  576. package/dist/stories/Molecules/LearningOutcomeTile.stories.js +276 -0
  577. package/dist/stories/Molecules/ListSection.stories.js +97 -0
  578. package/dist/stories/Molecules/Loading.stories.js +10 -0
  579. package/dist/stories/Molecules/NotificationList.stories.js +99 -0
  580. package/dist/stories/Molecules/PageSection.stories.js +67 -0
  581. package/dist/stories/Molecules/PastDueModalContents.stories.js +62 -0
  582. package/dist/stories/Molecules/PausableImage.stories.js +16 -0
  583. package/dist/stories/Molecules/Recurly.stories.js +56 -0
  584. package/dist/stories/Molecules/ResourceCard.stories.js +18 -0
  585. package/dist/stories/Molecules/SocialMediaSharing.stories.js +20 -0
  586. package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +20 -0
  587. package/dist/stories/Molecules/Testimonial.stories.js +59 -0
  588. package/dist/stories/Organisms/GlobalFooter.stories.js +28 -0
  589. package/dist/stories/Organisms/GlobalHeader/About.stories.js +133 -0
  590. package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +71 -0
  591. package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +29 -0
  592. package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +105 -0
  593. package/dist/stories/Organisms/GlobalHeader/Free.stories.js +131 -0
  594. package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +197 -0
  595. package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +28 -0
  596. package/dist/stories/Organisms/GlobalPage.stories.js +138 -0
  597. package/dist/stories/Organisms/LayoutMenu.stories.js +239 -0
  598. package/dist/stories/Organisms/LayoutMenuVariant.stories.js +222 -0
  599. package/dist/stories/Organisms/PageAlerts.example.d.ts +2 -0
  600. package/dist/stories/Organisms/PageAlerts.example.js +42 -0
  601. package/dist/stories/Organisms/PageAlerts.stories.js +15 -0
  602. package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +34 -0
  603. package/dist/stories/Organisms/PlanCard.stories.js +98 -0
  604. package/dist/stories/Organisms/PlanCardTeams.stories.js +27 -0
  605. package/dist/stories/Organisms/ScoreSummary.stories.js +295 -0
  606. package/dist/svg.d.ts +7 -0
  607. package/dist/theme.d.ts +5 -0
  608. package/package.json +5 -359
  609. package/dist/AbbreviatedCommunityEventCard/index.cjs +0 -89
  610. package/dist/AbbreviatedCommunityEventCard/index.d.cts +0 -11
  611. package/dist/AppBar/AppBarSection.cjs +0 -40
  612. package/dist/AppBar/AppBarSection.d.cts +0 -15
  613. package/dist/AppBar/index.cjs +0 -22
  614. package/dist/AppBar/index.d.cts +0 -13
  615. package/dist/AppBarDeprecated/AppBarSectionDeprecated.cjs +0 -26
  616. package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.cts +0 -18
  617. package/dist/AppBarDeprecated/index.cjs +0 -27
  618. package/dist/AppBarDeprecated/index.d.cts +0 -18
  619. package/dist/AppBarDeprecated/styles/index.module.cjs +0 -5
  620. package/dist/AppBarDeprecated/styles/index.module.js +0 -5
  621. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/MarketingBanner.cjs +0 -134
  622. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/NavPanels.cjs +0 -300
  623. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/consts.cjs +0 -274
  624. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.cjs +0 -110
  625. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.cts +0 -8
  626. package/dist/AppHeader/AppHeaderElements/AppHeaderDietCard/index.cjs +0 -114
  627. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.cjs +0 -97
  628. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.cts +0 -16
  629. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.cjs +0 -36
  630. package/dist/AppHeader/AppHeaderElements/AppHeaderFeatureCard/index.cjs +0 -61
  631. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.cjs +0 -59
  632. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.cts +0 -56
  633. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/elements.cjs +0 -34
  634. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.cjs +0 -44
  635. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.cjs +0 -26
  636. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.cjs +0 -53
  637. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.cts +0 -10
  638. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.cjs +0 -85
  639. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.cjs +0 -80
  640. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.cjs +0 -25
  641. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/NavPanels.cjs +0 -118
  642. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/consts.cjs +0 -341
  643. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.cjs +0 -105
  644. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.cts +0 -8
  645. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/AppHeaderSectionContext.cjs +0 -18
  646. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileBackButton.cjs +0 -85
  647. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/MobileNavMenu.cjs +0 -51
  648. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/NavTabs.cjs +0 -105
  649. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/PanelLayout.cjs +0 -84
  650. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/elements.cjs +0 -179
  651. package/dist/AppHeader/AppHeaderElements/AppHeaderSection/index.cjs +0 -119
  652. package/dist/AppHeader/AppHeaderElements/AppHeaderSkillTile/index.cjs +0 -55
  653. package/dist/AppHeader/Search/DefaultResults.cjs +0 -105
  654. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.cjs +0 -70
  655. package/dist/AppHeader/Search/SearchButton.cjs +0 -50
  656. package/dist/AppHeader/Search/SearchPane.cjs +0 -482
  657. package/dist/AppHeader/Search/SearchTrackingProvider/index.cjs +0 -32
  658. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.cjs +0 -43
  659. package/dist/AppHeader/Search/SearchWorker/index.cjs +0 -24
  660. package/dist/AppHeader/Search/SearchWorker/index.d.cts +0 -10
  661. package/dist/AppHeader/Search/SearchWorker/src.cjs +0 -159
  662. package/dist/AppHeader/Search/SearchWorker/types.cjs +0 -10
  663. package/dist/AppHeader/Search/SearchWorker/types.d.cts +0 -30
  664. package/dist/AppHeader/Search/SearchWorker/worker.cjs +0 -26
  665. package/dist/AppHeader/Search/consts.cjs +0 -68
  666. package/dist/AppHeader/Search/consts.d.cts +0 -26
  667. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.cjs +0 -17
  668. package/dist/AppHeader/Search/safelyRedirect.cjs +0 -39
  669. package/dist/AppHeader/Search/types.d.cts +0 -14
  670. package/dist/AppHeader/Search/useHeaderSearch.cjs +0 -39
  671. package/dist/AppHeader/index.cjs +0 -97
  672. package/dist/AppHeader/index.d.cts +0 -28
  673. package/dist/AppHeader/shared/elements.cjs +0 -172
  674. package/dist/AppHeader/shared/keyboardNav.cjs +0 -67
  675. package/dist/AppHeader/shared/types.cjs +0 -6
  676. package/dist/AppHeader/shared/types.d.cts +0 -111
  677. package/dist/AppHeader/shared/utils.cjs +0 -85
  678. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.cjs +0 -126
  679. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.cts +0 -12
  680. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.cjs +0 -29
  681. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.cjs +0 -110
  682. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.cts +0 -12
  683. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.cjs +0 -61
  684. package/dist/AppHeaderMobile/index.cjs +0 -194
  685. package/dist/AppHeaderMobile/index.d.cts +0 -24
  686. package/dist/Avatar/index.cjs +0 -52
  687. package/dist/Avatar/index.d.cts +0 -40
  688. package/dist/AvatarChooser/index.cjs +0 -99
  689. package/dist/AvatarChooser/index.d.cts +0 -15
  690. package/dist/BackToTopAnchor/index.cjs +0 -33
  691. package/dist/BackToTopAnchor/index.d.cts +0 -15
  692. package/dist/Banner/CountdownTimer.cjs +0 -111
  693. package/dist/Banner/CountdownTimer.d.cts +0 -10
  694. package/dist/Banner/EnhancedBanner.cjs +0 -142
  695. package/dist/Banner/EnhancedBanner.d.cts +0 -20
  696. package/dist/Banner/index.cjs +0 -83
  697. package/dist/Banner/index.d.cts +0 -24
  698. package/dist/BetaSticker/index.cjs +0 -63
  699. package/dist/BetaSticker/index.d.cts +0 -9
  700. package/dist/CareerPathCard/index.cjs +0 -34
  701. package/dist/CareerPathCard/index.d.cts +0 -26
  702. package/dist/Carousel/elements.cjs +0 -12
  703. package/dist/Carousel/index.cjs +0 -194
  704. package/dist/Carousel/index.d.cts +0 -27
  705. package/dist/CertificationPathCard/index.cjs +0 -41
  706. package/dist/CertificationPathCard/index.d.cts +0 -27
  707. package/dist/CoachingSessionCard/index.cjs +0 -87
  708. package/dist/CoachingSessionCard/index.d.cts +0 -24
  709. package/dist/CommunityEventCard/EventTypeIcon.cjs +0 -61
  710. package/dist/CommunityEventCard/index.cjs +0 -260
  711. package/dist/CommunityEventCard/index.d.cts +0 -31
  712. package/dist/CommunityEventToast/index.cjs +0 -35
  713. package/dist/CommunityEventToast/index.d.cts +0 -9
  714. package/dist/ContentGroupBaseCard/helpers.cjs +0 -15
  715. package/dist/ContentGroupBaseCard/helpers.d.cts +0 -8
  716. package/dist/ContentGroupBaseCard/index.cjs +0 -215
  717. package/dist/ContentGroupBaseCard/index.d.cts +0 -40
  718. package/dist/ContentGroupBaseCard/shared.cjs +0 -80
  719. package/dist/ContentGroupBaseCard/types.cjs +0 -18
  720. package/dist/ContentGroupBaseCard/types.d.cts +0 -13
  721. package/dist/CourseCard/index.cjs +0 -32
  722. package/dist/CourseCard/index.d.cts +0 -25
  723. package/dist/CurriculumCard/BottomTag/index.cjs +0 -30
  724. package/dist/CurriculumCard/BottomTag/index.d.cts +0 -4
  725. package/dist/CurriculumCard/Difficulty/helpers.cjs +0 -17
  726. package/dist/CurriculumCard/Difficulty/helpers.d.cts +0 -13
  727. package/dist/CurriculumCard/Difficulty/index.cjs +0 -45
  728. package/dist/CurriculumCard/Difficulty/index.d.cts +0 -7
  729. package/dist/CurriculumCard/Difficulty/types.cjs +0 -21
  730. package/dist/CurriculumCard/Difficulty/types.d.cts +0 -25
  731. package/dist/CurriculumCard/Footer/index.cjs +0 -49
  732. package/dist/CurriculumCard/Image/index.cjs +0 -50
  733. package/dist/CurriculumCard/Subtitle/helpers.cjs +0 -9
  734. package/dist/CurriculumCard/Subtitle/index.cjs +0 -40
  735. package/dist/CurriculumCard/Subtitle/index.d.cts +0 -10
  736. package/dist/CurriculumCard/index.cjs +0 -122
  737. package/dist/CurriculumCard/index.d.cts +0 -63
  738. package/dist/DropdownButton/DropdownList.cjs +0 -57
  739. package/dist/DropdownButton/DropdownList.d.cts +0 -19
  740. package/dist/DropdownButton/index.cjs +0 -140
  741. package/dist/DropdownButton/index.d.cts +0 -80
  742. package/dist/DropdownButton/useDynamicPopoverPosition.cjs +0 -41
  743. package/dist/EditorialImage/index.cjs +0 -21
  744. package/dist/EditorialImage/index.d.cts +0 -14
  745. package/dist/EditorialImage/index.d.ts +0 -14
  746. package/dist/EditorialImage/index.js +0 -19
  747. package/dist/EditorialImage/styles.module.cjs +0 -5
  748. package/dist/EditorialImage/styles.module.js +0 -5
  749. package/dist/EmptySection/index.cjs +0 -159
  750. package/dist/EmptySection/index.d.cts +0 -32
  751. package/dist/ErrorContents/index.cjs +0 -64
  752. package/dist/ErrorContents/index.d.cts +0 -12
  753. package/dist/FeatureList/index.cjs +0 -41
  754. package/dist/FeatureList/index.d.cts +0 -18
  755. package/dist/GlobalFooter/FooterHeading.cjs +0 -28
  756. package/dist/GlobalFooter/FooterLegal/LegalLinks.cjs +0 -77
  757. package/dist/GlobalFooter/FooterLegal/MadeIn.cjs +0 -79
  758. package/dist/GlobalFooter/FooterLegal/index.cjs +0 -29
  759. package/dist/GlobalFooter/FooterLinks.cjs +0 -51
  760. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.cjs +0 -297
  761. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.cjs +0 -254
  762. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.cjs +0 -246
  763. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.cjs +0 -27
  764. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.cjs +0 -72
  765. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.cjs +0 -70
  766. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.cts +0 -7
  767. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.cjs +0 -59
  768. package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.cjs +0 -5
  769. package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.js +0 -5
  770. package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.cjs +0 -5
  771. package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.js +0 -5
  772. package/dist/GlobalFooter/FooterNavLinks/index.cjs +0 -44
  773. package/dist/GlobalFooter/index.cjs +0 -38
  774. package/dist/GlobalFooter/index.d.cts +0 -26
  775. package/dist/GlobalFooter/types.d.cts +0 -16
  776. package/dist/GlobalHeader/GlobalHeaderItems.cjs +0 -443
  777. package/dist/GlobalHeader/GlobalHeaderVariants.cjs +0 -351
  778. package/dist/GlobalHeader/context.cjs +0 -82
  779. package/dist/GlobalHeader/index.cjs +0 -171
  780. package/dist/GlobalHeader/index.d.cts +0 -10
  781. package/dist/GlobalHeader/types.d.cts +0 -124
  782. package/dist/GlobalHeader/urlHelpers.cjs +0 -22
  783. package/dist/GlobalPage/index.cjs +0 -45
  784. package/dist/GlobalPage/index.d.cts +0 -51
  785. package/dist/Grid/GridCollapse.cjs +0 -161
  786. package/dist/Grid/GridCollapse.d.cts +0 -49
  787. package/dist/Grid/Subgrid.cjs +0 -41
  788. package/dist/Grid/Subgrid.d.cts +0 -29
  789. package/dist/Grid/getCSSFromColumnCount.cjs +0 -10
  790. package/dist/Grid/getCSSFromColumnCount.d.cts +0 -10
  791. package/dist/Grid/index.cjs +0 -9
  792. package/dist/Grid/index.d.cts +0 -4
  793. package/dist/HeaderHeightArea/index.cjs +0 -38
  794. package/dist/HeaderHeightArea/index.d.cts +0 -13
  795. package/dist/HeaderHeightArea/useIsInHeaderRegion.cjs +0 -17
  796. package/dist/HorizontalScrollMenu/index.cjs +0 -68
  797. package/dist/HorizontalScrollMenu/index.d.cts +0 -10
  798. package/dist/HubCard/index.cjs +0 -40
  799. package/dist/HubCard/index.d.cts +0 -12
  800. package/dist/InfoCard/index.cjs +0 -121
  801. package/dist/InfoCard/index.d.cts +0 -23
  802. package/dist/Konamimojisplosion/Konamimojisplosion.cjs +0 -10
  803. package/dist/Konamimojisplosion/Konamimojisplosion.d.cts +0 -9
  804. package/dist/Konamimojisplosion/index.cjs +0 -5
  805. package/dist/Konamimojisplosion/index.d.cts +0 -3
  806. package/dist/Konamimojisplosion/useKonamimojisplosion.cjs +0 -47
  807. package/dist/Konamimojisplosion/useKonamimojisplosion.d.cts +0 -4
  808. package/dist/LandingPage/CTA.cjs +0 -11
  809. package/dist/LandingPage/CTA.js +0 -9
  810. package/dist/LandingPage/Description.cjs +0 -18
  811. package/dist/LandingPage/Description.d.cts +0 -10
  812. package/dist/LandingPage/Feature.cjs +0 -89
  813. package/dist/LandingPage/Feature.js +0 -81
  814. package/dist/LandingPage/PageFAQs.cjs +0 -49
  815. package/dist/LandingPage/PageFAQs.d.cts +0 -14
  816. package/dist/LandingPage/PageFeatures.cjs +0 -99
  817. package/dist/LandingPage/PageFeatures.d.cts +0 -20
  818. package/dist/LandingPage/PageFeatures.d.ts +0 -20
  819. package/dist/LandingPage/PageFeatures.js +0 -97
  820. package/dist/LandingPage/PageFeaturesEnhanced.cjs +0 -152
  821. package/dist/LandingPage/PageFeaturesEnhanced.d.cts +0 -11
  822. package/dist/LandingPage/PageFeaturesEnhanced.d.ts +0 -11
  823. package/dist/LandingPage/PageFeaturesEnhanced.js +0 -150
  824. package/dist/LandingPage/PageFeaturesWithReferences.cjs +0 -128
  825. package/dist/LandingPage/PageFeaturesWithReferences.d.cts +0 -23
  826. package/dist/LandingPage/PageFeaturesWithReferences.d.ts +0 -23
  827. package/dist/LandingPage/PageFeaturesWithReferences.js +0 -126
  828. package/dist/LandingPage/PageHero.cjs +0 -20
  829. package/dist/LandingPage/PageHero.d.cts +0 -11
  830. package/dist/LandingPage/PageHero.d.ts +0 -11
  831. package/dist/LandingPage/PageHero.js +0 -18
  832. package/dist/LandingPage/PagePrefooter.cjs +0 -66
  833. package/dist/LandingPage/PagePrefooter.d.cts +0 -9
  834. package/dist/LandingPage/PagePrefooter.d.ts +0 -9
  835. package/dist/LandingPage/PagePrefooter.js +0 -64
  836. package/dist/LandingPage/PageSingleFeature.cjs +0 -108
  837. package/dist/LandingPage/PageSingleFeature.d.cts +0 -60
  838. package/dist/LandingPage/PageSingleFeature.d.ts +0 -60
  839. package/dist/LandingPage/PageSingleFeature.js +0 -105
  840. package/dist/LandingPage/PageTestimonials.cjs +0 -108
  841. package/dist/LandingPage/PageTestimonials.d.cts +0 -25
  842. package/dist/LandingPage/PageTestimonials.d.ts +0 -25
  843. package/dist/LandingPage/PageTestimonials.js +0 -105
  844. package/dist/LandingPage/PageVideoGallery.cjs +0 -70
  845. package/dist/LandingPage/PageVideoGallery.d.cts +0 -15
  846. package/dist/LandingPage/PageVideoGallery.d.ts +0 -15
  847. package/dist/LandingPage/PageVideoGallery.js +0 -67
  848. package/dist/LandingPage/Title.cjs +0 -33
  849. package/dist/LandingPage/Title.d.cts +0 -27
  850. package/dist/LandingPage/TitleWithEyebrow.cjs +0 -39
  851. package/dist/LandingPage/TitleWithEyebrow.d.cts +0 -15
  852. package/dist/LandingPage/index.cjs +0 -29
  853. package/dist/LandingPage/index.d.cts +0 -15
  854. package/dist/LandingPage/types.d.cts +0 -31
  855. package/dist/LayoutMenu/AccordionMenu.cjs +0 -64
  856. package/dist/LayoutMenu/AccordionMenu.d.cts +0 -18
  857. package/dist/LayoutMenu/LayoutMenu.cjs +0 -107
  858. package/dist/LayoutMenu/LayoutMenu.d.cts +0 -48
  859. package/dist/LayoutMenu/LayoutMenuSection.cjs +0 -38
  860. package/dist/LayoutMenu/SectionItemLink.cjs +0 -19
  861. package/dist/LayoutMenu/SectionItemLink.d.cts +0 -11
  862. package/dist/LayoutMenu/SelectedSectionItem.cjs +0 -22
  863. package/dist/LayoutMenu/SelectedSectionItem.d.cts +0 -7
  864. package/dist/LayoutMenu/index.cjs +0 -7
  865. package/dist/LayoutMenu/index.d.cts +0 -4
  866. package/dist/LayoutMenuVariant/AccordionMenu.cjs +0 -76
  867. package/dist/LayoutMenuVariant/AccordionMenu.d.cts +0 -19
  868. package/dist/LayoutMenuVariant/LayoutMenu.cjs +0 -88
  869. package/dist/LayoutMenuVariant/LayoutMenu.d.cts +0 -43
  870. package/dist/LayoutMenuVariant/LayoutMenuSection.cjs +0 -37
  871. package/dist/LayoutMenuVariant/SectionItemLink.cjs +0 -19
  872. package/dist/LayoutMenuVariant/SectionItemLink.d.cts +0 -12
  873. package/dist/LayoutMenuVariant/index.cjs +0 -19
  874. package/dist/LayoutMenuVariant/index.d.cts +0 -9
  875. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.cjs +0 -52
  876. package/dist/LearningOutcomeAssessmentScores/index.cjs +0 -25
  877. package/dist/LearningOutcomeAssessmentScores/index.d.cts +0 -10
  878. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.cjs +0 -50
  879. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.cts +0 -21
  880. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.cjs +0 -38
  881. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.cts +0 -18
  882. package/dist/LearningOutcomeBadges/index.cjs +0 -8
  883. package/dist/LearningOutcomeBadges/index.d.cts +0 -3
  884. package/dist/LearningOutcomeCard/index.cjs +0 -167
  885. package/dist/LearningOutcomeCard/index.d.cts +0 -30
  886. package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.cjs +0 -41
  887. package/dist/LearningOutcomeFlyout/index.cjs +0 -316
  888. package/dist/LearningOutcomeFlyout/index.d.cts +0 -12
  889. package/dist/LearningOutcomeFlyout/types.cjs +0 -10
  890. package/dist/LearningOutcomeFlyout/types.d.cts +0 -66
  891. package/dist/LearningOutcomePopover/index.cjs +0 -117
  892. package/dist/LearningOutcomePopover/index.d.cts +0 -13
  893. package/dist/LearningOutcomeTile/Tile.cjs +0 -68
  894. package/dist/LearningOutcomeTile/index.cjs +0 -96
  895. package/dist/LearningOutcomeTile/index.d.cts +0 -7
  896. package/dist/LearningOutcomeTile/types.cjs +0 -11
  897. package/dist/LearningOutcomeTile/types.d.cts +0 -45
  898. package/dist/ListSection/index.cjs +0 -56
  899. package/dist/ListSection/index.d.cts +0 -25
  900. package/dist/Loading/index.cjs +0 -91
  901. package/dist/Loading/index.d.cts +0 -9
  902. package/dist/Loading/styles.module.cjs +0 -5
  903. package/dist/Loading/styles.module.js +0 -5
  904. package/dist/LoadingCurriculumCard/index.cjs +0 -85
  905. package/dist/LoadingCurriculumCard/index.d.cts +0 -10
  906. package/dist/Logos/LogoCodecademy/index.cjs +0 -23
  907. package/dist/Logos/LogoCodecademy/index.d.cts +0 -6
  908. package/dist/Logos/LogoCodecademyMini/index.cjs +0 -19
  909. package/dist/Logos/LogoCodecademyMini/index.d.cts +0 -6
  910. package/dist/Logos/LogoCodecademyPro/index.cjs +0 -26
  911. package/dist/Logos/LogoCodecademyPro/index.d.cts +0 -6
  912. package/dist/Logos/LogoCodecademyTeams/index.cjs +0 -53
  913. package/dist/Logos/LogoCodecademyTeams/index.d.cts +0 -6
  914. package/dist/Logos/LogoFromSkillsoft/index.cjs +0 -49
  915. package/dist/Logos/LogoFromSkillsoft/index.d.cts +0 -7
  916. package/dist/Logos/LogoLXStudio/index.cjs +0 -38
  917. package/dist/Logos/LogoLXStudio/index.d.cts +0 -7
  918. package/dist/Logos/ProLabel/ProLabelCutout/index.cjs +0 -38
  919. package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.cjs +0 -39
  920. package/dist/Logos/ProLabel/index.cjs +0 -27
  921. package/dist/Logos/ProLabel/index.d.cts +0 -18
  922. package/dist/Logos/index.cjs +0 -15
  923. package/dist/Logos/index.d.cts +0 -8
  924. package/dist/Logos/shared.cjs +0 -14
  925. package/dist/Logos/shared.d.cts +0 -232
  926. package/dist/MarketingToaster/index.cjs +0 -50
  927. package/dist/MarketingToaster/index.d.cts +0 -11
  928. package/dist/NotFoundContent/404.cjs +0 -5
  929. package/dist/NotFoundContent/404.js +0 -5
  930. package/dist/NotFoundContent/index.cjs +0 -49
  931. package/dist/NotFoundContent/index.d.cts +0 -11
  932. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.cjs +0 -34
  933. package/dist/NotificationList/EmptyNotification/index.cjs +0 -44
  934. package/dist/NotificationList/NotificationItem.cjs +0 -162
  935. package/dist/NotificationList/NotificationItem.d.cts +0 -12
  936. package/dist/NotificationList/index.cjs +0 -45
  937. package/dist/NotificationList/index.d.cts +0 -13
  938. package/dist/NotificationList/typings.d.cts +0 -19
  939. package/dist/Notifications/NotificationBell.cjs +0 -61
  940. package/dist/Notifications/NotificationsContents.cjs +0 -80
  941. package/dist/Notifications/NotificationsDropdown.cjs +0 -24
  942. package/dist/Notifications/constants.cjs +0 -9
  943. package/dist/Notifications/elements.cjs +0 -23
  944. package/dist/Notifications/types.d.cts +0 -17
  945. package/dist/Notifications/useHeaderNotifications.cjs +0 -38
  946. package/dist/Notifications/useNotificationButtons.cjs +0 -53
  947. package/dist/PageAlerts/PageAlerts.cjs +0 -69
  948. package/dist/PageAlerts/PageAlerts.d.cts +0 -16
  949. package/dist/PageAlerts/PageAlertsProvider.cjs +0 -41
  950. package/dist/PageAlerts/PageAlertsProvider.d.cts +0 -15
  951. package/dist/PageAlerts/index.cjs +0 -8
  952. package/dist/PageAlerts/index.d.cts +0 -4
  953. package/dist/PageAlerts/types.d.cts +0 -18
  954. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.cjs +0 -50
  955. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.cts +0 -22
  956. package/dist/PageLayoutWithSidebarMenu/index.cjs +0 -3
  957. package/dist/PageLayoutWithSidebarMenu/index.d.cts +0 -2
  958. package/dist/PageSection/index.cjs +0 -65
  959. package/dist/PageSection/index.d.cts +0 -20
  960. package/dist/PastDue/PastDueModalContents/index.cjs +0 -28
  961. package/dist/PastDue/PastDueModalContents/index.d.cts +0 -12
  962. package/dist/PastDue/index.cjs +0 -5
  963. package/dist/PastDue/index.d.cts +0 -3
  964. package/dist/PastDue/pastDueMessages.cjs +0 -55
  965. package/dist/PastDue/pastDueMessages.d.cts +0 -8
  966. package/dist/PausableImage/BaseImage/index.cjs +0 -77
  967. package/dist/PausableImage/index.cjs +0 -32
  968. package/dist/PausableImage/index.d.cts +0 -16
  969. package/dist/PlanCard/PlanCardBanner.cjs +0 -30
  970. package/dist/PlanCard/PlanCardBanner.d.cts +0 -10
  971. package/dist/PlanCard/PlanFeature.cjs +0 -91
  972. package/dist/PlanCard/PopularBadge.cjs +0 -20
  973. package/dist/PlanCard/PricingAmount.cjs +0 -122
  974. package/dist/PlanCard/RecommendedBadge.cjs +0 -31
  975. package/dist/PlanCard/consts.cjs +0 -220
  976. package/dist/PlanCard/index.cjs +0 -341
  977. package/dist/PlanCard/index.d.cts +0 -22
  978. package/dist/PlanCard/types.cjs +0 -75
  979. package/dist/PlanCard/types.d.cts +0 -43
  980. package/dist/PlanCardTeams/consts.cjs +0 -22
  981. package/dist/PlanCardTeams/index.cjs +0 -140
  982. package/dist/PlanCardTeams/index.d.cts +0 -12
  983. package/dist/PricingSection/ConditionalColorMode.cjs +0 -14
  984. package/dist/PricingSection/PricingCard/PricingAmount.cjs +0 -122
  985. package/dist/PricingSection/PricingCard/RecommendedBadge.cjs +0 -30
  986. package/dist/PricingSection/PricingCard/index.cjs +0 -176
  987. package/dist/PricingSection/PricingCard/types.cjs +0 -67
  988. package/dist/PricingSection/PricingCard/types.d.cts +0 -26
  989. package/dist/PricingSection/ProductCTA.cjs +0 -106
  990. package/dist/PricingSection/Products.cjs +0 -86
  991. package/dist/PricingSection/config.cjs +0 -33
  992. package/dist/PricingSection/index.cjs +0 -36
  993. package/dist/PricingSection/index.d.cts +0 -22
  994. package/dist/PricingSection/types.cjs +0 -14
  995. package/dist/PricingSection/types.d.cts +0 -18
  996. package/dist/ProLogoAlt/index.cjs +0 -28
  997. package/dist/ProLogoAlt/index.d.cts +0 -13
  998. package/dist/ProductFeatureShowcase/index.cjs +0 -108
  999. package/dist/ProductFeatureShowcase/index.d.cts +0 -19
  1000. package/dist/QuizScore/index.cjs +0 -93
  1001. package/dist/QuizScore/index.d.cts +0 -15
  1002. package/dist/RatingsBar/index.cjs +0 -44
  1003. package/dist/RatingsBar/index.d.cts +0 -16
  1004. package/dist/Recurly/context/NoProvider.cjs +0 -12
  1005. package/dist/Recurly/context/elements/index.cjs +0 -45
  1006. package/dist/Recurly/context/elements/index.d.cts +0 -15
  1007. package/dist/Recurly/context/recurly/index.cjs +0 -49
  1008. package/dist/Recurly/context/recurly/index.d.cts +0 -38
  1009. package/dist/Recurly/context/recurly/loadRecurly.cjs +0 -21
  1010. package/dist/Recurly/context/recurly/loadRecurly.d.cts +0 -9
  1011. package/dist/Recurly/context/recurly/w.cjs +0 -6
  1012. package/dist/Recurly/fields/RecurlyField.cjs +0 -69
  1013. package/dist/Recurly/fields/RecurlyField.d.cts +0 -18
  1014. package/dist/Recurly/fields/elements.cjs +0 -63
  1015. package/dist/Recurly/fields/elements.d.cts +0 -22
  1016. package/dist/Recurly/index.cjs +0 -13
  1017. package/dist/Recurly/index.d.cts +0 -5
  1018. package/dist/ResourceCard/index.cjs +0 -59
  1019. package/dist/ResourceCard/index.d.cts +0 -19
  1020. package/dist/ScoreSummary/SubScores.cjs +0 -136
  1021. package/dist/ScoreSummary/SubScores.d.cts +0 -40
  1022. package/dist/ScoreSummary/helpers.cjs +0 -20
  1023. package/dist/ScoreSummary/index.cjs +0 -98
  1024. package/dist/ScoreSummary/index.d.cts +0 -25
  1025. package/dist/ScoreSummary/types.d.cts +0 -313
  1026. package/dist/SkillPathCard/index.cjs +0 -34
  1027. package/dist/SkillPathCard/index.d.cts +0 -25
  1028. package/dist/SocialMediaSharing/SocialShareIconLink.cjs +0 -43
  1029. package/dist/SocialMediaSharing/SocialShareIconLink.d.cts +0 -9
  1030. package/dist/SocialMediaSharing/index.cjs +0 -86
  1031. package/dist/SocialMediaSharing/index.d.cts +0 -64
  1032. package/dist/SocialMediaSharingDropdown/index.cjs +0 -98
  1033. package/dist/SocialMediaSharingDropdown/index.d.cts +0 -19
  1034. package/dist/Testimonial/index.cjs +0 -141
  1035. package/dist/Testimonial/index.d.cts +0 -53
  1036. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/defineProperty.cjs +0 -14
  1037. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/defineProperty.js +0 -14
  1038. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/toPrimitive.cjs +0 -16
  1039. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/toPrimitive.js +0 -16
  1040. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/toPropertyKey.cjs +0 -11
  1041. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/toPropertyKey.js +0 -11
  1042. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/typeof.cjs +0 -18
  1043. package/dist/_virtual/_@oxc-project_runtime@0.103.0/helpers/typeof.js +0 -12
  1044. package/dist/_virtual/rolldown_runtime.cjs +0 -43
  1045. package/dist/_virtual/rolldown_runtime.js +0 -18
  1046. package/dist/assets/navyQuotes.cjs +0 -5
  1047. package/dist/assets/navyQuotes.js +0 -5
  1048. package/dist/assets/styles.module-CAlrRbjX.scss +0 -36
  1049. package/dist/index.cjs +0 -279
  1050. package/dist/index.d.cts +0 -122
  1051. package/dist/lib/breakpointHooks/index.cjs +0 -64
  1052. package/dist/lib/breakpointHooks/index.d.cts +0 -46
  1053. package/dist/lib/catalogList/index.cjs +0 -52
  1054. package/dist/lib/resourcesList/index.cjs +0 -68
  1055. package/dist/remoteAssets/components.cjs +0 -6
  1056. /package/dist/{assets/index.module-Dz0I2VL5.scss → AppBarDeprecated/styles/index.module.scss} +0 -0
  1057. /package/dist/{assets/download-on-the-app-store-BbQ68gT5.svg → GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.svg} +0 -0
  1058. /package/dist/{assets/get-it-on-google-play-CnA-UUOj.png → GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.png} +0 -0
  1059. /package/dist/{assets/styles.module-DbrbHmEX.scss → Loading/styles.module.scss} +0 -0
  1060. /package/dist/{assets/404-BM2-wvJv.svg → NotFoundContent/404.svg} +0 -0
  1061. /package/dist/assets/{navyQuotes-C0ZxClwi.svg → navyQuotes.svg} +0 -0
@@ -1,158 +1,310 @@
1
- //#region src/AppHeader/Search/SearchWorker/src.ts
1
+ /*
2
+ * A web worker to handle search-as-you-type and autocomplete
3
+ *
4
+ * This worker implements an algorithm for text matching that tests
5
+ * a query string against a set of titles, and gives a score to
6
+ * each character in a given title.
7
+ *
8
+ * e.g. matching query "abcde" to title "ab cde"
9
+ * "a" and "b" each get a score of 2, because each is part of the match "ab"
10
+ * "c", "d", and "e" each get a score of 3, because each is part of the match "cde"
11
+ *
12
+ * For autocomplete, a large list of titles is preloaded, and this
13
+ * scoring algorithm is used both to find the top 5 matches, and to
14
+ * determine which characters should be highlighted.
15
+ * (These titles have certain phrases like "Intro to" removed so that they
16
+ * better resemble something that a user would type.)
17
+ *
18
+ * For search-as-you-type, we rely on typesense to find matches,
19
+ * but we still use this algorithm for character highlighting.
20
+ */
21
+
2
22
  function getPortalOrigin() {
3
- const { origin } = window.location;
4
- if ([
5
- "tengu",
6
- "tayra",
7
- "staging",
8
- "www"
9
- ].some((s) => `https://${s}.codecademy.com` === origin)) return origin;
10
- if (origin.includes(".dev-eks.codecademy.com")) return origin;
11
- if (origin.includes("localhost")) return origin.replace(/:\d{4}/, ":3100");
12
- return "https://staging.codecademy.com";
23
+ const {
24
+ origin
25
+ } = window.location;
26
+ const envs = ['tengu', 'tayra', 'staging', 'www'];
27
+
28
+ // for standard envs, use portal app in the same env
29
+ if (envs.some(s => `https://${s}.codecademy.com` === origin)) return origin;
30
+
31
+ // for PR envs (e.g. pr-40229-monolith.dev-eks.codecademy.com)
32
+ if (origin.includes('.dev-eks.codecademy.com')) return origin;
33
+
34
+ // for local, use local portal-app, replace if origin port is monolith or le
35
+ if (origin.includes('localhost')) return origin.replace(/:\d{4}/, ':3100');
36
+
37
+ // otherwise (e.g. in monolith pr env) use staging portal-app
38
+ return 'https://staging.codecademy.com';
13
39
  }
14
- function serializeSearchWorkerSrc() {
15
- const BASE_URL = `${getPortalOrigin()}/api/portal/search`;
16
- const fnAsStr = worker.toString().trim();
17
- return fnAsStr.slice(fnAsStr.indexOf("{") + 1, -1).replaceAll(" ", "").replaceAll("{BASE_URL}", BASE_URL).replaceAll("{SEARCH}", window.location.search);
40
+ export function serializeSearchWorkerSrc() {
41
+ const BASE_URL = `${getPortalOrigin()}/api/portal/search`;
42
+ const fnAsStr = worker.toString().trim();
43
+
44
+ // in a prod build, webpack will handle removing comments
45
+
46
+ return fnAsStr.slice(fnAsStr.indexOf('{') + 1, -1) // remove wrapping function, which may have been renamed by minification
47
+ .replaceAll(' ', '') // remove indentation
48
+ .replaceAll('{BASE_URL}', BASE_URL) // interpolate base url
49
+ .replaceAll('{SEARCH}', window.location.search); // interpolate search query
18
50
  }
51
+
52
+ /*
53
+ * This function contains the code that is serialized to run in the worker. It
54
+ * can't reference anything outside of itself (except types). Data is passed to
55
+ * the worker via onmessage and passed back to the main thread via postMessage.
56
+ */
19
57
  function worker() {
20
- const preloadTitlesPromise = fetch("{BASE_URL}/autocomplete-preload{SEARCH}").then((f) => f.json()).then((rawTitles) => rawTitles.map(preparseTitle));
21
- function preparseTitle({ value, popularity }) {
22
- const lower = value.toLowerCase();
23
- return {
24
- title: value,
25
- lower,
26
- words: getWordSet(lower),
27
- popularity
28
- };
29
- }
30
- function preparseQuery(query) {
31
- return {
32
- query,
33
- words: getWordSet(query)
34
- };
35
- }
36
- const wordSplitters = /[ :-]/g;
37
- function getWordSet(str) {
38
- const words = str.split(wordSplitters).map((w) => w.trim()).filter(Boolean);
39
- return new Set(words);
40
- }
41
- const handlers = {
42
- autocomplete: autocompleteHandler,
43
- "search-as-you-type": searchAsYouTypeHandler
44
- };
45
- onmessage = ({ data }) => {
46
- const { query, action } = data;
47
- const handler = handlers[action];
48
- if (handler) handler(preparseQuery(query));
49
- };
50
- function getScoredTitle(q, t) {
51
- const charScores = getCharScores(q, t);
52
- const score = getTotalScore(q, t, charScores);
53
- return {
54
- title: t.title,
55
- charScores,
56
- score
57
- };
58
- }
59
- const maxResults = 5;
60
- function autocompleteHandler(q) {
61
- preloadTitlesPromise.then((titles) => {
62
- const topAutocompleteTitles = titles.map((t) => getScoredTitle(q, t)).filter((x) => x.score > 0).sort((a, b) => a.score > b.score ? -1 : 1).slice(0, maxResults).map((t) => ({
63
- title: t.title,
64
- segments: getHighlightSegments(t.title, t.charScores)
65
- }));
66
- postMessage({
67
- query: q.query,
68
- result: topAutocompleteTitles,
69
- action: "autocomplete"
70
- });
71
- });
72
- }
73
- function searchAsYouTypeHandler(q) {
74
- fetch("{BASE_URL}/search-as-you-type{SEARCH}", {
75
- body: JSON.stringify({
76
- query: q.query,
77
- max: maxResults
78
- }),
79
- method: "POST"
80
- }).then((f) => f.json()).then((searchAsYouTypeResults) => {
81
- for (let i = 0; i < searchAsYouTypeResults.top.length; i++) {
82
- const entry = searchAsYouTypeResults.top[i];
83
- const charScores = getCharScores(q, preparseTitle({
84
- value: entry.title,
85
- popularity: 0
86
- }));
87
- entry.segments = getHighlightSegments(entry.title, charScores);
88
- entry.key = q.query + ":" + entry.title;
89
- }
90
- postMessage({
91
- query: q.query,
92
- result: searchAsYouTypeResults,
93
- action: "search-as-you-type"
94
- });
95
- });
96
- }
97
- const popularityStrength = .04;
98
- function getTotalScore(q, t, charScores) {
99
- let fromChars = 0;
100
- for (let i = 0; i < charScores.length; i++) fromChars += charScores[i];
101
- const fromPopularity = (t.popularity || 0) * popularityStrength;
102
- let bonus = 0;
103
- q.words.forEach((qw) => {
104
- if (t.words.has(qw)) bonus += 100;
105
- });
106
- if (t.lower.startsWith(q.query)) bonus += 200;
107
- else if (t.lower.startsWith(q.query.slice(0, 3))) bonus += 100;
108
- if (t.lower === q.query) bonus += 100;
109
- if (fromChars > 1 && Math.abs(t.lower.length - q.query.length) <= 3) bonus += 100;
110
- return fromChars + (fromChars > 1 ? fromPopularity : 0) + bonus;
111
- }
112
- function getHighlightSegments(title, charScores) {
113
- let currentSegment = null;
114
- const segments = [];
115
- const shouldHighlight = (i) => charScores[i] > 0;
116
- const isDifferentFromPrev = (i) => shouldHighlight(i - 1) !== shouldHighlight(i);
117
- for (let i = 0; i < title.length; i++) {
118
- if (i === 0 || isDifferentFromPrev(i)) {
119
- currentSegment = {
120
- value: "",
121
- highlight: shouldHighlight(i)
122
- };
123
- segments.push(currentSegment);
124
- }
125
- currentSegment.value += title[i];
126
- }
127
- return segments;
128
- }
129
- function getCharScores(q, t) {
130
- const cmcsForTitleChars = Array(t.lower.length).fill(0).map(() => []);
131
- for (let shift = 1 - q.query.length; shift < t.lower.length; shift++) {
132
- let cmc = null;
133
- const startOverlap = Math.max(shift, 0);
134
- const endOverlap = Math.min(q.query.length + shift, t.lower.length);
135
- for (let i = startOverlap; i < endOverlap; i++) if (q.query[i - shift] === t.lower[i] && t.lower[i] !== " ") {
136
- if (!cmc) cmc = { value: "" };
137
- cmc.value += q.query[i - shift];
138
- cmcsForTitleChars[i].push(cmc);
139
- } else if (cmc) cmc = null;
140
- }
141
- const avgQueryWordLength = q.query.length / q.words.size;
142
- const minMatchLength = Math.ceil(avgQueryWordLength ** .65);
143
- const charScores = [];
144
- for (let i = 0; i < cmcsForTitleChars.length; i++) {
145
- const cmcs = cmcsForTitleChars[i];
146
- let score = 0;
147
- for (let j = 0; j < cmcs.length; j++) {
148
- const cmc = cmcs[j];
149
- if (cmc.value.length >= minMatchLength || q.words.has(cmc.value)) score += cmc.value.length;
150
- }
151
- charScores.push(score);
152
- }
153
- return charScores;
154
- }
155
- }
58
+ const preloadTitlesPromise = fetch('{BASE_URL}/autocomplete-preload{SEARCH}').then(f => f.json()).then(rawTitles => rawTitles.map(preparseTitle));
59
+ function preparseTitle({
60
+ value,
61
+ popularity
62
+ }) {
63
+ const lower = value.toLowerCase();
64
+ const words = getWordSet(lower);
65
+ return {
66
+ title: value,
67
+ lower,
68
+ words,
69
+ popularity
70
+ };
71
+ }
72
+ function preparseQuery(query) {
73
+ const words = getWordSet(query);
74
+ return {
75
+ query,
76
+ words
77
+ };
78
+ }
79
+ const wordSplitters = /[ :-]/g;
80
+ function getWordSet(str) {
81
+ const words = str.split(wordSplitters).map(w => w.trim()).filter(Boolean);
82
+ return new Set(words);
83
+ }
84
+ const handlers = {
85
+ autocomplete: autocompleteHandler,
86
+ 'search-as-you-type': searchAsYouTypeHandler
87
+ };
88
+ onmessage = ({
89
+ data
90
+ }) => {
91
+ const {
92
+ query,
93
+ action
94
+ } = data;
95
+ const handler = handlers[action];
96
+ if (handler) {
97
+ handler(preparseQuery(query));
98
+ }
99
+ };
100
+ function getScoredTitle(q, t) {
101
+ const charScores = getCharScores(q, t);
102
+ const score = getTotalScore(q, t, charScores);
103
+ return {
104
+ title: t.title,
105
+ charScores,
106
+ score
107
+ };
108
+ }
109
+ const maxResults = 5;
110
+ function autocompleteHandler(q) {
111
+ preloadTitlesPromise.then(titles => {
112
+ const scoredTitles = titles.map(t => getScoredTitle(q, t));
113
+ const topAutocompleteTitles = scoredTitles.filter(x => x.score > 0).sort((a, b) => a.score > b.score ? -1 : 1).slice(0, maxResults).map(t => ({
114
+ title: t.title,
115
+ segments: getHighlightSegments(t.title, t.charScores)
116
+ }));
117
+ postMessage({
118
+ query: q.query,
119
+ result: topAutocompleteTitles,
120
+ action: 'autocomplete'
121
+ });
122
+ });
123
+ }
124
+ function searchAsYouTypeHandler(q) {
125
+ fetch('{BASE_URL}/search-as-you-type{SEARCH}', {
126
+ body: JSON.stringify({
127
+ query: q.query,
128
+ max: maxResults
129
+ }),
130
+ method: 'POST'
131
+ }).then(f => f.json()).then(searchAsYouTypeResults => {
132
+ for (let i = 0; i < searchAsYouTypeResults.top.length; i++) {
133
+ const entry = searchAsYouTypeResults.top[i];
134
+ const t = preparseTitle({
135
+ value: entry.title,
136
+ popularity: 0
137
+ });
138
+ const charScores = getCharScores(q, t);
139
+ entry.segments = getHighlightSegments(entry.title, charScores);
140
+ entry.key = q.query + ':' + entry.title;
141
+ }
142
+ postMessage({
143
+ query: q.query,
144
+ result: searchAsYouTypeResults,
145
+ action: 'search-as-you-type'
146
+ });
147
+ });
148
+ }
149
+
150
+ /*
151
+ * For the search "alge", .04 is just low enough so that "Linear algebra"
152
+ * (which matches on 4 letters) comes in above "Data structures and algorithms"
153
+ * (which only matches on 3 letters, but has a high popularity score).
154
+ */
155
+ const popularityStrength = 0.04;
156
+
157
+ // Total used in sorting to find autocomplet top 5
158
+ // Bonus scores are includes in certain cases
159
+ function getTotalScore(q, t, charScores) {
160
+ let fromChars = 0;
161
+ for (let i = 0; i < charScores.length; i++) {
162
+ fromChars += charScores[i];
163
+ }
164
+ const fromPopularity = (t.popularity || 0) * popularityStrength;
165
+ let bonus = 0;
166
+ // for each complete word present in both the title and query
167
+ q.words.forEach(qw => {
168
+ if (t.words.has(qw)) {
169
+ bonus += 100;
170
+ }
171
+ });
172
+
173
+ // if the title starts with the query
174
+ if (t.lower.startsWith(q.query)) {
175
+ bonus += 200;
176
+ } else if (t.lower.startsWith(q.query.slice(0, 3))) {
177
+ // or at least the first 3 chars
178
+ bonus += 100;
179
+ }
180
+
181
+ // if the title is an exact match with the query
182
+ if (t.lower === q.query) {
183
+ bonus += 100;
184
+ }
185
+
186
+ // if there are some matching chars and the title is within 3 chars length of the query
187
+ if (fromChars > 1 && Math.abs(t.lower.length - q.query.length) <= 3) {
188
+ bonus += 100;
189
+ }
190
+ return fromChars + (fromChars > 1 ? fromPopularity : 0) + bonus;
191
+ }
192
+
193
+ // returns { value: string, highlight: boolean }[]
194
+ function getHighlightSegments(title, charScores) {
195
+ let currentSegment = null;
196
+ const segments = [];
197
+ const shouldHighlight = i => charScores[i] > 0;
198
+ const isDifferentFromPrev = i => shouldHighlight(i - 1) !== shouldHighlight(i);
199
+ for (let i = 0; i < title.length; i++) {
200
+ if (i === 0 || isDifferentFromPrev(i)) {
201
+ // If this char should be highlighted, but the prev one should not
202
+ // or vice versa, start a new segment.
203
+ currentSegment = {
204
+ value: '',
205
+ highlight: shouldHighlight(i)
206
+ };
207
+ segments.push(currentSegment);
208
+ }
209
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
210
+ currentSegment.value += title[i];
211
+ }
212
+ return segments;
213
+ }
214
+
215
+ // Used by autocomplete, both for finding top 5, and for highlighting
216
+ // Used by search-as-you-type, only for highlighting
217
+ // Returns number[], where each number is the match score for a char in the title
218
+ function getCharScores(q, t) {
219
+ /*
220
+ * Prefill the array for each char in the title.
221
+ * For each char, we keep an array of the consecutive matches the char is a part of.
222
+ */
223
+ const cmcsForTitleChars = Array(t.lower.length).fill(0).map(() => []);
224
+
225
+ /*
226
+ * Overlay the query onto the title to see which chars match.
227
+ * Shift to align at different positions.
228
+ * e.g.
229
+ * shift: 0
230
+ * query: python3 learn
231
+ * title: learn python 3
232
+ * (no matches)
233
+ *
234
+ * shift: 6
235
+ * query: python3 learn
236
+ * title: learn python 3
237
+ * (the word "python" matches)
238
+ *
239
+ * shift: 7
240
+ * query: python3 learn
241
+ * title: learn python 3
242
+ * ("3" matches)
243
+ *
244
+ * shift: -8
245
+ * query: python3 learn
246
+ * title: learn python 3
247
+ * ("learn" matches)
248
+ */
249
+ for (let shift = 1 - q.query.length; shift < t.lower.length; shift++) {
250
+ // for each shift position
251
+
252
+ let cmc = null;
253
+ const startOverlap = Math.max(shift, 0);
254
+ const endOverlap = Math.min(q.query.length + shift, t.lower.length);
255
+
256
+ // i is the index of a char in the title
257
+ for (let i = startOverlap; i < endOverlap; i++) {
258
+ // for each char position in the potentially overlapping area
259
+
260
+ // if char at this position matches (and isn't a space)
261
+ if (q.query[i - shift] === t.lower[i] && t.lower[i] !== ' ') {
262
+ if (!cmc) {
263
+ // start a new cmc if needed
264
+ cmc = {
265
+ value: ''
266
+ };
267
+ }
268
+
269
+ /*
270
+ * Append this char to the current cmc.
271
+ * We use an object with {value} so that we can modify by reference,
272
+ * since we want to modify the cmc, not only for this char, but also
273
+ * for any previous chars that this cmc was pushed to, since those
274
+ * chars are part of this same consecutive match.
275
+ */
276
+ cmc.value += q.query[i - shift];
277
+
278
+ // include this cmc for this char
279
+ cmcsForTitleChars[i].push(cmc);
280
+ } else if (cmc) {
281
+ // set to null so that the next match starts a new cmc
282
+ cmc = null;
283
+ }
284
+ }
285
+ }
286
+ const avgQueryWordLength = q.query.length / q.words.size;
156
287
 
157
- //#endregion
158
- export { serializeSearchWorkerSrc };
288
+ // If avgQueryWordLength is 1-3, we want to the min match to be about that same size.
289
+ // If avgQueryWordLength is longer, we want min match to be longer...but not too long.
290
+ // e.g. For avgQueryWordLength of 9, min should be 5
291
+ // The misspelling "regresion" should still match "regression", but not "encryption",
292
+ // "authentication" or other words ending in "ion"
293
+ const minMatchLength = Math.ceil(avgQueryWordLength ** 0.65);
294
+ const charScores = [];
295
+ for (let i = 0; i < cmcsForTitleChars.length; i++) {
296
+ const cmcs = cmcsForTitleChars[i];
297
+ let score = 0;
298
+ for (let j = 0; j < cmcs.length; j++) {
299
+ const cmc = cmcs[j];
300
+ // if the string of consecutive matching chars meets the minMatchLength
301
+ // or if it's a standalone word in the query (e.g "C")
302
+ if (cmc.value.length >= minMatchLength || q.words.has(cmc.value)) {
303
+ score += cmc.value.length;
304
+ }
305
+ }
306
+ charScores.push(score);
307
+ }
308
+ return charScores;
309
+ }
310
+ }
@@ -1,30 +1,37 @@
1
- //#region src/AppHeader/Search/SearchWorker/types.d.ts
2
- type HighlightSegment = {
3
- value: string;
4
- highlight: boolean;
1
+ export type HighlightSegment = {
2
+ value: string;
3
+ highlight: boolean;
5
4
  };
6
- type AutocompleteSuggestion = {
7
- title: string;
8
- segments: HighlightSegment[];
5
+ export type AutocompleteSuggestion = {
6
+ title: string;
7
+ segments: HighlightSegment[];
9
8
  };
10
9
  interface SearchResults {
11
- query: string;
12
- queryLoadTime: number;
13
- searchId: string;
14
- resultsCount: number;
10
+ query: string;
11
+ queryLoadTime: number;
12
+ searchId: string;
13
+ resultsCount: number;
15
14
  }
16
15
  interface BaseTopData {
17
- type: string;
18
- title: string;
19
- slug: string;
16
+ type: string;
17
+ title: string;
18
+ slug: string;
20
19
  }
21
- interface SearchAsYouTypeResults extends SearchResults {
22
- top: (BaseTopData & {
23
- contentId?: string;
24
- segments: HighlightSegment[];
25
- urlPath: string;
26
- key: string;
27
- })[];
20
+ export interface SearchAsYouTypeResults extends SearchResults {
21
+ top: (BaseTopData & {
22
+ contentId?: string;
23
+ segments: HighlightSegment[];
24
+ urlPath: string;
25
+ key: string;
26
+ })[];
28
27
  }
29
- //#endregion
30
- export { AutocompleteSuggestion, SearchAsYouTypeResults };
28
+ export declare enum SearchAction {
29
+ Autocomplete = "autocomplete",
30
+ SearchAsYouType = "search-as-you-type"
31
+ }
32
+ export type SearchResultTypes = {
33
+ [SearchAction.Autocomplete]: AutocompleteSuggestion[];
34
+ [SearchAction.SearchAsYouType]: SearchAsYouTypeResults;
35
+ };
36
+ export type SearchWorker = <A extends SearchAction>(action: A, query: string) => Promise<SearchResultTypes[A]>;
37
+ export {};
@@ -1,9 +1,5 @@
1
- //#region src/AppHeader/Search/SearchWorker/types.ts
2
- let SearchAction = /* @__PURE__ */ function(SearchAction$1) {
3
- SearchAction$1["Autocomplete"] = "autocomplete";
4
- SearchAction$1["SearchAsYouType"] = "search-as-you-type";
5
- return SearchAction$1;
6
- }({});
7
-
8
- //#endregion
9
- export { SearchAction };
1
+ export let SearchAction = /*#__PURE__*/function (SearchAction) {
2
+ SearchAction["Autocomplete"] = "autocomplete";
3
+ SearchAction["SearchAsYouType"] = "search-as-you-type";
4
+ return SearchAction;
5
+ }({});
@@ -0,0 +1,2 @@
1
+ import type { SearchWorker } from './types';
2
+ export declare function createSearchWorker(): SearchWorker;
@@ -1,26 +1,31 @@
1
- import { PromiseLookup } from "./PromiseLookup.js";
2
- import { serializeSearchWorkerSrc } from "./src.js";
3
-
4
- //#region src/AppHeader/Search/SearchWorker/worker.ts
1
+ import { PromiseLookup } from './PromiseLookup';
2
+ import { serializeSearchWorkerSrc } from './src';
5
3
  const mockWorker = () => ({
6
- onmessage: () => null,
7
- postMessage: () => null
4
+ onmessage: () => null,
5
+ postMessage: () => null
8
6
  });
9
- function createSearchWorker() {
10
- const src = serializeSearchWorkerSrc();
11
- const blob = new Blob([src], { type: "text/javascript" });
12
- const dataUrl = URL.createObjectURL?.(blob);
13
- const w = typeof Worker === "undefined" ? mockWorker() : new Worker(dataUrl);
14
- const results = new PromiseLookup({ onKeyInit: (action, query) => w.postMessage({
15
- action,
16
- query
17
- }) });
18
- w.onmessage = ({ data }) => {
19
- const { query, result, action } = data;
20
- results.resolve(action, query, result);
21
- };
22
- return (action, query) => results.get(action, query);
23
- }
24
-
25
- //#endregion
26
- export { createSearchWorker };
7
+ export function createSearchWorker() {
8
+ const src = serializeSearchWorkerSrc();
9
+ const blob = new Blob([src], {
10
+ type: 'text/javascript'
11
+ });
12
+ const dataUrl = URL.createObjectURL?.(blob);
13
+ const w = typeof Worker === 'undefined' ? mockWorker() : new Worker(dataUrl);
14
+ const results = new PromiseLookup({
15
+ onKeyInit: (action, query) => w.postMessage({
16
+ action,
17
+ query
18
+ })
19
+ });
20
+ w.onmessage = ({
21
+ data
22
+ }) => {
23
+ const {
24
+ query,
25
+ result,
26
+ action
27
+ } = data;
28
+ results.resolve(action, query, result);
29
+ };
30
+ return (action, query) => results.get(action, query);
31
+ }
@@ -1,26 +1,23 @@
1
- //#region src/AppHeader/Search/consts.d.ts
2
- declare const searchPlaceholder = "What are you learning today?";
3
- declare const popularSearchTerms: string[];
4
- declare enum ContentType {
5
- COURSE = "Course",
6
- SKILLPATH = "Skill Path",
7
- CAREERPATH = "Career Path",
8
- ARTICLE = "Article",
9
- DOC = "Doc",
1
+ export declare const searchPlaceholder = "What are you learning today?";
2
+ export declare const popularSearchTerms: string[];
3
+ export declare enum ContentType {
4
+ COURSE = "Course",
5
+ SKILLPATH = "Skill Path",
6
+ CAREERPATH = "Career Path",
7
+ ARTICLE = "Article",
8
+ DOC = "Doc"
10
9
  }
11
- declare const popularContent: ({
12
- title: string;
13
- href: string;
14
- type: ContentType;
15
- slug: string;
16
- contentId: string;
10
+ export declare const popularContent: ({
11
+ title: string;
12
+ href: string;
13
+ type: ContentType;
14
+ slug: string;
15
+ contentId: string;
17
16
  } | {
18
- title: string;
19
- href: string;
20
- type: ContentType;
21
- slug: string;
22
- contentId?: undefined;
17
+ title: string;
18
+ href: string;
19
+ type: ContentType;
20
+ slug: string;
21
+ contentId?: undefined;
23
22
  })[];
24
- declare const ALLOWED_HOSTS: string[];
25
- //#endregion
26
- export { ALLOWED_HOSTS, ContentType, popularContent, popularSearchTerms, searchPlaceholder };
23
+ export declare const ALLOWED_HOSTS: string[];