@ndla/ui 30.5.0 → 30.5.2

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 (673) hide show
  1. package/es/Animation/DisplayOnPageYOffset.js +9 -32
  2. package/es/Animation/Fade.js +11 -20
  3. package/es/Article/Article.js +50 -78
  4. package/es/Article/ArticleAccessMessage.js +4 -9
  5. package/es/Article/ArticleByline.js +16 -32
  6. package/es/Article/ArticleContent.js +9 -15
  7. package/es/Article/ArticleFootNotes.js +3 -7
  8. package/es/Article/ArticleHeaderWrapper.js +13 -37
  9. package/es/Article/ArticleNotions.js +8 -16
  10. package/es/Article/ArticleSideBar.js +15 -34
  11. package/es/Article/index.js +1 -0
  12. package/es/Aside/Aside.js +9 -14
  13. package/es/AudioPlayer/AudioPlayer.js +17 -48
  14. package/es/AudioPlayer/Controls.js +28 -83
  15. package/es/AudioPlayer/SpeechControl.js +4 -10
  16. package/es/AudioPlayer/initAudioPlayers.js +1 -9
  17. package/es/AuthorInfo/AuthorInfo.js +7 -12
  18. package/es/BannerCard/BannerCard.js +6 -15
  19. package/es/BannerCard/index.js +1 -0
  20. package/es/BlogPosts/BlogPost.js +14 -21
  21. package/es/BlogPosts/BlogPostWrapper.js +3 -5
  22. package/es/BlogPosts/index.js +1 -0
  23. package/es/Breadcrumb/ActionBreadcrumb.js +10 -14
  24. package/es/Breadcrumb/Breadcrumb.js +23 -40
  25. package/es/Breadcrumb/BreadcrumbItem.js +9 -16
  26. package/es/Breadcrumb/HeaderBreadcrumb.js +11 -12
  27. package/es/Breadcrumb/HomeBreadcrumb.js +9 -18
  28. package/es/Breadcrumb/index.js +1 -0
  29. package/es/Breadcrumblist/Breadcrumblist.js +29 -61
  30. package/es/CompetenceGoalTab/CompetenceGoalItem.js +6 -19
  31. package/es/CompetenceGoalTab/CompetenceGoalTab.js +11 -28
  32. package/es/CompetenceGoalTab/CompetenceItem.js +8 -26
  33. package/es/CompetenceGoalTab/SearchButton.js +6 -10
  34. package/es/CompetenceGoals/CompetenceGoalsDialog.js +11 -21
  35. package/es/ComponentCursor/ComponentCursor.js +9 -29
  36. package/es/ContentCard/ContentCard.js +11 -25
  37. package/es/ContentLoader/index.js +22 -29
  38. package/es/ContentPlaceholder/ContentPlaceholder.js +3 -9
  39. package/es/ContentPlaceholder/index.js +1 -0
  40. package/es/ContentTypeBadge/ContentTypeBadge.js +11 -29
  41. package/es/CopyParagraphButton/CopyParagraphButton.js +14 -33
  42. package/es/CopyParagraphButton/index.js +1 -0
  43. package/es/CopyParagraphButton/initCopyParagraphButtons.js +1 -6
  44. package/es/CreatedBy/CreatedBy.js +7 -14
  45. package/es/CreatedBy/index.js +1 -0
  46. package/es/Dialog/Dialog.js +21 -27
  47. package/es/Dialog/index.js +1 -0
  48. package/es/ErrorMessage/ErrorMessage.js +7 -12
  49. package/es/ErrorMessage/ErrorResourceAccessDenied.js +4 -9
  50. package/es/FactBox/FactBox.js +7 -16
  51. package/es/Figure/Figure.js +78 -89
  52. package/es/Figure/FigureBylineExpandButton.js +4 -4
  53. package/es/Figure/FigureExpandButton.js +4 -4
  54. package/es/Figure/FigureLicense.js +13 -15
  55. package/es/Figure/FigureLicenseDialog.js +13 -15
  56. package/es/Figure/FigureOpenDialogButton.js +4 -4
  57. package/es/Figure/index.js +1 -0
  58. package/es/FileList/File.js +3 -13
  59. package/es/FileList/FileList.js +4 -11
  60. package/es/Filter/FilterButtons.js +12 -35
  61. package/es/Filter/FilterCarousel.js +15 -43
  62. package/es/Filter/FilterList.js +27 -52
  63. package/es/Filter/FilterListPhone.js +36 -71
  64. package/es/Filter/ToggleItem.js +16 -21
  65. package/es/Filter/filterClasses.js +1 -0
  66. package/es/Filter/index.js +1 -0
  67. package/es/Footer/EditorName.js +4 -4
  68. package/es/Footer/Footer.js +9 -22
  69. package/es/Footer/FooterAuth.js +17 -26
  70. package/es/Footer/FooterLinks.js +4 -17
  71. package/es/Footer/FooterPrivacy.js +4 -11
  72. package/es/Footer/FooterText.js +2 -4
  73. package/es/Footer/index.js +1 -0
  74. package/es/Footer/privacy_en.js +1 -3
  75. package/es/Footer/privacy_nb.js +1 -3
  76. package/es/Footer/privacy_nn.js +1 -3
  77. package/es/Frontpage/FrontpageAllSubjects.js +11 -36
  78. package/es/Frontpage/FrontpageFilm.js +4 -11
  79. package/es/Frontpage/FrontpageHeader.js +5 -11
  80. package/es/Frontpage/FrontpageInfo.js +1 -4
  81. package/es/Frontpage/FrontpageMultidisciplinarySubject.js +4 -12
  82. package/es/Frontpage/FrontpageProgramMenu.js +10 -34
  83. package/es/Frontpage/FrontpageSearch.js +21 -37
  84. package/es/Frontpage/FrontpageToolbox.js +4 -12
  85. package/es/Frontpage/illustrations/Fellesfag.js +3 -5
  86. package/es/Frontpage/illustrations/FrontpageHeaderIllustration.js +3 -5
  87. package/es/Frontpage/illustrations/FrontpageIllustrations.js +0 -2
  88. package/es/Frontpage/illustrations/FrontpageSubjectIllustration.js +3 -6
  89. package/es/Frontpage/illustrations/MenuFellesfag.js +3 -5
  90. package/es/Frontpage/illustrations/MenuStudiespesialiserende.js +3 -5
  91. package/es/Frontpage/illustrations/MenuYrkesfag.js +3 -5
  92. package/es/Frontpage/illustrations/Studiespesialiserende.js +3 -5
  93. package/es/Frontpage/illustrations/Yrkesfag.js +3 -5
  94. package/es/Frontpage/sortCategories.js +1 -2
  95. package/es/Hero/Hero.js +7 -12
  96. package/es/Hero/index.js +1 -0
  97. package/es/Image/Image.js +18 -32
  98. package/es/Image/ImageLink.js +8 -16
  99. package/es/Image/LazyLoadImage.js +12 -19
  100. package/es/Image/index.js +1 -0
  101. package/es/InfoBlock/InfoBlock.js +5 -12
  102. package/es/InfoBox/InfoBox.js +1 -4
  103. package/es/InfoWidget/InfoWidget.js +7 -21
  104. package/es/LanguageSelector/LanguageSelector.js +17 -34
  105. package/es/LanguageSelector/LanguageSelectorContent.js +14 -13
  106. package/es/Layout/Content.js +2 -2
  107. package/es/Layout/LayoutItem.js +3 -7
  108. package/es/Layout/OneColumn.js +7 -12
  109. package/es/Layout/PageContainer.js +12 -15
  110. package/es/Layout/index.js +1 -0
  111. package/es/LearningPaths/LearningPathContent.js +2 -4
  112. package/es/LearningPaths/LearningPathInformation.js +8 -14
  113. package/es/LearningPaths/LearningPathLastStepNavigation.js +7 -16
  114. package/es/LearningPaths/LearningPathMenu.js +20 -34
  115. package/es/LearningPaths/LearningPathMenuAside.js +8 -14
  116. package/es/LearningPaths/LearningPathMenuAsideCopyright.js +4 -10
  117. package/es/LearningPaths/LearningPathMenuContent.js +12 -22
  118. package/es/LearningPaths/LearningPathMenuIntro.js +7 -18
  119. package/es/LearningPaths/LearningPathMenuModalWrapper.js +6 -11
  120. package/es/LearningPaths/LearningPathMobileHeader.js +11 -8
  121. package/es/LearningPaths/LearningPathMobileStepInfo.js +4 -9
  122. package/es/LearningPaths/LearningPathSticky.js +7 -11
  123. package/es/LearningPaths/LearningPathWrapper.js +3 -5
  124. package/es/LearningPaths/index.js +1 -0
  125. package/es/Logo/Logo.js +13 -19
  126. package/es/Logo/SvgLogo.js +9 -16
  127. package/es/Logo/index.js +1 -0
  128. package/es/Masthead/Masthead.js +15 -25
  129. package/es/Masthead/MastheadAuthModal.js +8 -17
  130. package/es/Masthead/MastheadSearchModal.js +7 -13
  131. package/es/Masthead/SkipToMainContent.js +2 -7
  132. package/es/Masthead/index.js +1 -0
  133. package/es/Masthead/utils.js +8 -17
  134. package/es/MediaList/MediaList.js +17 -23
  135. package/es/Messages/MessageBanner.js +8 -15
  136. package/es/Messages/MessageBox.js +10 -22
  137. package/es/Messages/MessageBoxTag.js +3 -8
  138. package/es/Messages/index.js +1 -0
  139. package/es/MultidisciplinarySubject/List.js +5 -15
  140. package/es/MultidisciplinarySubject/ListItem.js +9 -20
  141. package/es/MultidisciplinarySubject/MultidisciplinarySubject.js +8 -20
  142. package/es/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +7 -24
  143. package/es/MultidisciplinarySubject/index.js +1 -0
  144. package/es/MyNdla/Resource/Folder.js +20 -35
  145. package/es/MyNdla/Resource/FolderInput.js +23 -26
  146. package/es/MyNdla/Resource/index.js +1 -0
  147. package/es/NDLAFilm/AboutNdlaFilm.js +4 -9
  148. package/es/NDLAFilm/AllMoviesAlphabetically.js +12 -43
  149. package/es/NDLAFilm/CategorySelect.js +13 -42
  150. package/es/NDLAFilm/FilmContentCard.js +13 -20
  151. package/es/NDLAFilm/FilmContentCardTags.js +2 -7
  152. package/es/NDLAFilm/FilmMovieList.js +13 -19
  153. package/es/NDLAFilm/FilmMovieSearch.js +10 -16
  154. package/es/NDLAFilm/FilmSlideshow.js +24 -78
  155. package/es/NDLAFilm/MovieGrid.js +9 -15
  156. package/es/NDLAFilm/NavigationArrow.js +4 -8
  157. package/es/NDLAFilm/SlideshowIndicator.js +4 -8
  158. package/es/NDLAFilm/VisualElement.js +4 -9
  159. package/es/NDLAFilm/filmStyles.js +0 -2
  160. package/es/NDLAFilm/index.js +1 -0
  161. package/es/NDLAFilm/isLetter.js +1 -0
  162. package/es/NDLAFilm/types.js +1 -0
  163. package/es/Navigation/NavigationBox.js +16 -39
  164. package/es/Navigation/NavigationHeading.js +5 -12
  165. package/es/Navigation/NavigationTopicAbout.js +12 -31
  166. package/es/Navigation/index.js +1 -0
  167. package/es/NoContentBox/NoContentBox.js +5 -5
  168. package/es/NoContentBox/index.js +1 -0
  169. package/es/Notion/ConceptNotion.js +20 -27
  170. package/es/Notion/FigureNotion.js +26 -32
  171. package/es/Notion/Notion.js +11 -21
  172. package/es/Notion/NotionImage.js +6 -11
  173. package/es/Notion/NotionVisualElement.js +4 -17
  174. package/es/Portrait/Portrait.js +12 -7
  175. package/es/Portrait/index.js +1 -0
  176. package/es/Programme/Programme.js +9 -19
  177. package/es/Programme/ProgrammeSubjects.js +9 -15
  178. package/es/Programme/index.js +1 -0
  179. package/es/RadioButtonGroup/RadioButtonGroup.js +10 -37
  180. package/es/RadioButtonGroup/index.js +1 -0
  181. package/es/RelatedArticleList/RelatedArticleList.js +15 -21
  182. package/es/RelatedArticleList/index.js +1 -0
  183. package/es/Resource/BlockResource.js +25 -36
  184. package/es/Resource/ListResource.js +28 -42
  185. package/es/Resource/index.js +1 -1
  186. package/es/Resource/resourceComponents.js +15 -24
  187. package/es/ResourceBox/ResourceBox.js +6 -16
  188. package/es/ResourceBox/index.js +1 -0
  189. package/es/ResourceGroup/ResourceGroup.js +9 -14
  190. package/es/ResourceGroup/ResourceItem.js +18 -49
  191. package/es/ResourceGroup/ResourceList.js +15 -35
  192. package/es/ResourceGroup/index.js +1 -0
  193. package/es/ResourcesWrapper/ResourcesTitle.js +5 -10
  194. package/es/ResourcesWrapper/ResourcesTopicTitle.js +13 -28
  195. package/es/ResourcesWrapper/ResourcesWrapper.js +9 -14
  196. package/es/ResourcesWrapper/index.js +1 -0
  197. package/es/Search/ActiveFilterContent.js +4 -8
  198. package/es/Search/ActiveFilters.js +4 -16
  199. package/es/Search/ContentTypeResult.js +26 -46
  200. package/es/Search/LoadingWrapper.js +2 -5
  201. package/es/Search/SearchField.js +18 -30
  202. package/es/Search/SearchFieldForm.js +3 -5
  203. package/es/Search/SearchResult.js +10 -39
  204. package/es/Search/SearchResultSleeve.js +21 -59
  205. package/es/Search/ToggleSearchButton.js +10 -19
  206. package/es/Search/index.js +1 -0
  207. package/es/SearchTypeResult/ActiveFilterContent.js +5 -11
  208. package/es/SearchTypeResult/ActiveFilters.js +8 -17
  209. package/es/SearchTypeResult/PopupFilter.js +15 -35
  210. package/es/SearchTypeResult/ResultNavigation.js +8 -18
  211. package/es/SearchTypeResult/SearchFieldHeader.js +12 -32
  212. package/es/SearchTypeResult/SearchFilterContent.js +8 -15
  213. package/es/SearchTypeResult/SearchHeader.js +19 -42
  214. package/es/SearchTypeResult/SearchItem.js +13 -24
  215. package/es/SearchTypeResult/SearchItemList.js +14 -30
  216. package/es/SearchTypeResult/SearchItems.js +5 -10
  217. package/es/SearchTypeResult/SearchNotionItem.js +17 -36
  218. package/es/SearchTypeResult/SearchNotionsResult.js +6 -14
  219. package/es/SearchTypeResult/SearchSubjectItem.js +8 -16
  220. package/es/SearchTypeResult/SearchSubjectResult.js +2 -5
  221. package/es/SearchTypeResult/SearchTypeHeader.js +8 -23
  222. package/es/SearchTypeResult/SearchTypeResult.js +14 -21
  223. package/es/SearchTypeResult/SearchViewType.js +5 -15
  224. package/es/SearchTypeResult/components/ItemContexts.js +8 -23
  225. package/es/SearchTypeResult/components/ItemResourceHeader.js +8 -18
  226. package/es/SearchTypeResult/components/ItemTopicHeader.js +7 -16
  227. package/es/SearchTypeResult/components/SubjectFilters.js +21 -58
  228. package/es/SearchTypeResult/index.js +1 -0
  229. package/es/SectionHeading/SectionHeading.js +4 -8
  230. package/es/SnackBar/DefaultSnackbar.js +7 -15
  231. package/es/SnackBar/SnackbarProvider.js +16 -39
  232. package/es/SnackBar/index.js +1 -0
  233. package/es/Subject/Subject.js +8 -24
  234. package/es/Subject/SubjectAbout.js +8 -16
  235. package/es/Subject/SubjectArchive.js +16 -55
  236. package/es/Subject/SubjectBanner.js +2 -5
  237. package/es/Subject/SubjectCarousel.js +14 -27
  238. package/es/Subject/SubjectHeader.js +4 -10
  239. package/es/Subject/SubjectLinks.js +5 -15
  240. package/es/Subject/SubjectNewContent.js +3 -15
  241. package/es/Subject/SubjectShortcuts.js +12 -43
  242. package/es/Subject/SubjectSocial.js +4 -8
  243. package/es/Table/Table.js +9 -16
  244. package/es/Table/index.js +1 -0
  245. package/es/TagSelector/Control.js +12 -11
  246. package/es/TagSelector/DropdownIndicator.js +8 -18
  247. package/es/TagSelector/Input.js +4 -9
  248. package/es/TagSelector/Menu.js +6 -13
  249. package/es/TagSelector/MenuList.js +12 -10
  250. package/es/TagSelector/Option.js +9 -16
  251. package/es/TagSelector/SelectContainer.js +12 -11
  252. package/es/TagSelector/TagSelector.js +16 -39
  253. package/es/TagSelector/ValueButton.js +8 -13
  254. package/es/TagSelector/ariaMessages.js +17 -29
  255. package/es/TagSelector/index.js +1 -1
  256. package/es/TagSelector/types.js +1 -0
  257. package/es/ToolboxPage/ToolboxInfo.js +9 -15
  258. package/es/ToolboxPage/index.js +1 -0
  259. package/es/Topic/Loader.js +2 -4
  260. package/es/Topic/Topic.js +17 -41
  261. package/es/Topic/index.js +2 -1
  262. package/es/TopicIntroductionList/TopicIntroduction.js +13 -15
  263. package/es/TopicIntroductionList/TopicIntroductionList.js +16 -24
  264. package/es/TopicIntroductionList/TopicIntroductionShortcuts.js +19 -41
  265. package/es/TopicIntroductionList/TopicShortcutItem.js +10 -18
  266. package/es/TopicIntroductionList/index.js +1 -0
  267. package/es/TopicMenu/SubtopicLinkList.js +37 -66
  268. package/es/TopicMenu/TopicMenu.js +41 -68
  269. package/es/TopicMenu/TopicMenuButton.js +8 -15
  270. package/es/TopicMenu/index.js +1 -0
  271. package/es/Translation/Translation.js +6 -11
  272. package/es/Translation/TranslationBox.js +1 -3
  273. package/es/Translation/TranslationLine.js +10 -18
  274. package/es/TreeStructure/AddFolderButton.js +7 -16
  275. package/es/TreeStructure/ComboboxButton.js +14 -25
  276. package/es/TreeStructure/FolderItem.js +24 -46
  277. package/es/TreeStructure/FolderItems.js +19 -28
  278. package/es/TreeStructure/NavigationLink.js +19 -21
  279. package/es/TreeStructure/TreeStructure.js +33 -72
  280. package/es/TreeStructure/arrowNavigation.js +1 -8
  281. package/es/TreeStructure/helperFunctions.js +5 -11
  282. package/es/TreeStructure/index.js +1 -0
  283. package/es/TreeStructure/types.js +1 -0
  284. package/es/User/AuthModal.js +14 -26
  285. package/es/User/UserInfo.js +15 -23
  286. package/es/User/apiTypes.js +1 -0
  287. package/es/User/index.js +1 -0
  288. package/es/User/parseUserObject.js +21 -35
  289. package/es/all.css +1 -1
  290. package/es/i18n/formatMessage.js +4 -6
  291. package/es/i18n/formatNestedMessages.js +4 -5
  292. package/es/i18n/i18n.js +1 -0
  293. package/es/i18n/index.js +1 -0
  294. package/es/index-javascript.js +1 -0
  295. package/es/index.js +1 -0
  296. package/es/internal-icons/Book.js +2 -4
  297. package/es/internal-icons/Download.js +2 -4
  298. package/es/internal-icons/Embed.js +2 -4
  299. package/es/internal-icons/InsertTemplate.js +2 -4
  300. package/es/internal-icons/OpenWindow.js +2 -4
  301. package/es/locale/LocaleProvider.js +6 -11
  302. package/es/locale/messages-en.js +5 -11
  303. package/es/locale/messages-nb.js +5 -11
  304. package/es/locale/messages-nn.js +5 -11
  305. package/es/locale/messages-se.js +5 -11
  306. package/es/locale/messages-sma.js +5 -11
  307. package/es/model/ContentType.js +1 -2
  308. package/es/model/SubjectCategories.js +1 -0
  309. package/es/model/SubjectTypes.js +1 -0
  310. package/es/model/index.js +1 -0
  311. package/es/shapes.js +1 -0
  312. package/es/types.js +3 -1
  313. package/es/utils/createUniversalPortal.js +3 -4
  314. package/es/utils/resourceTypeColor.js +1 -9
  315. package/lib/Animation/DisplayOnPageYOffset.js +10 -41
  316. package/lib/Animation/Fade.js +11 -25
  317. package/lib/Animation/index.js +0 -3
  318. package/lib/Article/Article.js +51 -103
  319. package/lib/Article/ArticleAccessMessage.js +4 -17
  320. package/lib/Article/ArticleByline.js +16 -42
  321. package/lib/Article/ArticleContent.js +9 -25
  322. package/lib/Article/ArticleFootNotes.js +2 -8
  323. package/lib/Article/ArticleHeaderWrapper.js +14 -51
  324. package/lib/Article/ArticleNotions.js +10 -26
  325. package/lib/Article/ArticleSideBar.js +16 -44
  326. package/lib/Article/index.js +19 -30
  327. package/lib/Aside/Aside.js +8 -19
  328. package/lib/Aside/index.js +0 -3
  329. package/lib/AudioPlayer/AudioPlayer.js +18 -52
  330. package/lib/AudioPlayer/Controls.js +29 -71
  331. package/lib/AudioPlayer/SpeechControl.js +6 -20
  332. package/lib/AudioPlayer/index.js +1 -5
  333. package/lib/AudioPlayer/initAudioPlayers.js +2 -15
  334. package/lib/AuthorInfo/AuthorInfo.js +6 -15
  335. package/lib/AuthorInfo/index.js +0 -3
  336. package/lib/BannerCard/BannerCard.js +6 -15
  337. package/lib/BannerCard/index.js +0 -2
  338. package/lib/BlogPosts/BlogPost.js +12 -24
  339. package/lib/BlogPosts/BlogPostWrapper.js +3 -10
  340. package/lib/BlogPosts/index.js +4 -7
  341. package/lib/Breadcrumb/ActionBreadcrumb.js +9 -19
  342. package/lib/Breadcrumb/Breadcrumb.js +25 -51
  343. package/lib/Breadcrumb/BreadcrumbItem.js +10 -25
  344. package/lib/Breadcrumb/HeaderBreadcrumb.js +9 -16
  345. package/lib/Breadcrumb/HomeBreadcrumb.js +2 -21
  346. package/lib/Breadcrumb/index.js +6 -12
  347. package/lib/Breadcrumblist/Breadcrumblist.js +29 -69
  348. package/lib/Breadcrumblist/index.js +0 -3
  349. package/lib/CompetenceGoalTab/CompetenceGoalItem.js +4 -17
  350. package/lib/CompetenceGoalTab/CompetenceGoalTab.js +12 -39
  351. package/lib/CompetenceGoalTab/CompetenceItem.js +5 -22
  352. package/lib/CompetenceGoalTab/SearchButton.js +5 -14
  353. package/lib/CompetenceGoalTab/index.js +0 -3
  354. package/lib/CompetenceGoals/CompetenceGoalsDialog.js +11 -31
  355. package/lib/CompetenceGoals/index.js +0 -2
  356. package/lib/ComponentCursor/ComponentCursor.js +11 -37
  357. package/lib/ComponentCursor/index.js +0 -3
  358. package/lib/ContentCard/ContentCard.js +10 -23
  359. package/lib/ContentCard/index.js +0 -3
  360. package/lib/ContentLoader/index.js +20 -31
  361. package/lib/ContentPlaceholder/ContentPlaceholder.js +1 -10
  362. package/lib/ContentPlaceholder/index.js +0 -3
  363. package/lib/ContentTypeBadge/ContentTypeBadge.js +13 -61
  364. package/lib/ContentTypeBadge/index.js +14 -16
  365. package/lib/CopyParagraphButton/CopyParagraphButton.js +15 -44
  366. package/lib/CopyParagraphButton/index.js +1 -5
  367. package/lib/CopyParagraphButton/initCopyParagraphButtons.js +2 -11
  368. package/lib/CreatedBy/CreatedBy.js +5 -16
  369. package/lib/CreatedBy/index.js +0 -3
  370. package/lib/Dialog/Dialog.js +18 -33
  371. package/lib/Dialog/index.js +0 -2
  372. package/lib/ErrorMessage/ErrorMessage.js +6 -15
  373. package/lib/ErrorMessage/ErrorResourceAccessDenied.js +3 -16
  374. package/lib/ErrorMessage/index.js +0 -4
  375. package/lib/FactBox/FactBox.js +5 -21
  376. package/lib/FactBox/index.js +0 -3
  377. package/lib/Figure/Figure.js +75 -99
  378. package/lib/Figure/FigureBylineExpandButton.js +3 -8
  379. package/lib/Figure/FigureExpandButton.js +3 -8
  380. package/lib/Figure/FigureLicense.js +10 -24
  381. package/lib/Figure/FigureLicenseDialog.js +10 -20
  382. package/lib/Figure/FigureOpenDialogButton.js +3 -9
  383. package/lib/Figure/index.js +9 -17
  384. package/lib/FileList/File.js +2 -18
  385. package/lib/FileList/FileList.js +3 -13
  386. package/lib/FileList/index.js +0 -4
  387. package/lib/Filter/FilterButtons.js +13 -42
  388. package/lib/Filter/FilterCarousel.js +16 -52
  389. package/lib/Filter/FilterList.js +27 -61
  390. package/lib/Filter/FilterListPhone.js +36 -84
  391. package/lib/Filter/ToggleItem.js +14 -23
  392. package/lib/Filter/filterClasses.js +1 -3
  393. package/lib/Filter/index.js +6 -12
  394. package/lib/Footer/EditorName.js +3 -7
  395. package/lib/Footer/Footer.js +6 -22
  396. package/lib/Footer/FooterAuth.js +8 -27
  397. package/lib/Footer/FooterLinks.js +2 -16
  398. package/lib/Footer/FooterPrivacy.js +6 -24
  399. package/lib/Footer/FooterText.js +2 -9
  400. package/lib/Footer/index.js +8 -13
  401. package/lib/Footer/privacy_en.js +1 -6
  402. package/lib/Footer/privacy_nb.js +1 -6
  403. package/lib/Footer/privacy_nn.js +1 -6
  404. package/lib/Frontpage/FrontpageAllSubjects.js +12 -44
  405. package/lib/Frontpage/FrontpageFilm.js +3 -18
  406. package/lib/Frontpage/FrontpageHeader.js +4 -15
  407. package/lib/Frontpage/FrontpageInfo.js +1 -9
  408. package/lib/Frontpage/FrontpageMultidisciplinarySubject.js +7 -26
  409. package/lib/Frontpage/FrontpageProgramMenu.js +12 -38
  410. package/lib/Frontpage/FrontpageSearch.js +23 -53
  411. package/lib/Frontpage/FrontpageToolbox.js +3 -18
  412. package/lib/Frontpage/illustrations/Fellesfag.js +2 -6
  413. package/lib/Frontpage/illustrations/FrontpageHeaderIllustration.js +2 -6
  414. package/lib/Frontpage/illustrations/FrontpageIllustrations.js +1 -6
  415. package/lib/Frontpage/illustrations/FrontpageSubjectIllustration.js +1 -9
  416. package/lib/Frontpage/illustrations/MenuFellesfag.js +2 -6
  417. package/lib/Frontpage/illustrations/MenuStudiespesialiserende.js +2 -6
  418. package/lib/Frontpage/illustrations/MenuYrkesfag.js +2 -6
  419. package/lib/Frontpage/illustrations/Studiespesialiserende.js +2 -6
  420. package/lib/Frontpage/illustrations/Yrkesfag.js +2 -6
  421. package/lib/Frontpage/illustrations/index.js +10 -19
  422. package/lib/Frontpage/index.js +26 -36
  423. package/lib/Frontpage/sortCategories.js +1 -4
  424. package/lib/Hero/Hero.js +10 -40
  425. package/lib/Hero/index.js +16 -17
  426. package/lib/Image/Image.js +17 -38
  427. package/lib/Image/ImageLink.js +7 -20
  428. package/lib/Image/LazyLoadImage.js +9 -19
  429. package/lib/Image/index.js +8 -14
  430. package/lib/InfoBlock/InfoBlock.js +3 -12
  431. package/lib/InfoBlock/index.js +0 -1
  432. package/lib/InfoBox/InfoBox.js +1 -9
  433. package/lib/InfoBox/index.js +0 -2
  434. package/lib/InfoWidget/InfoWidget.js +6 -21
  435. package/lib/InfoWidget/index.js +0 -3
  436. package/lib/LanguageSelector/LanguageSelector.js +18 -47
  437. package/lib/LanguageSelector/LanguageSelectorContent.js +12 -14
  438. package/lib/LanguageSelector/index.js +0 -2
  439. package/lib/Layout/Content.js +2 -7
  440. package/lib/Layout/LayoutItem.js +3 -12
  441. package/lib/Layout/OneColumn.js +7 -19
  442. package/lib/Layout/PageContainer.js +11 -22
  443. package/lib/Layout/index.js +6 -12
  444. package/lib/LearningPaths/LearningPathContent.js +2 -9
  445. package/lib/LearningPaths/LearningPathInformation.js +7 -17
  446. package/lib/LearningPaths/LearningPathLastStepNavigation.js +5 -20
  447. package/lib/LearningPaths/LearningPathMenu.js +20 -50
  448. package/lib/LearningPaths/LearningPathMenuAside.js +7 -21
  449. package/lib/LearningPaths/LearningPathMenuAsideCopyright.js +3 -14
  450. package/lib/LearningPaths/LearningPathMenuContent.js +11 -27
  451. package/lib/LearningPaths/LearningPathMenuIntro.js +5 -20
  452. package/lib/LearningPaths/LearningPathMenuModalWrapper.js +7 -24
  453. package/lib/LearningPaths/LearningPathMobileHeader.js +9 -12
  454. package/lib/LearningPaths/LearningPathMobileStepInfo.js +4 -14
  455. package/lib/LearningPaths/LearningPathSticky.js +7 -22
  456. package/lib/LearningPaths/LearningPathWrapper.js +3 -11
  457. package/lib/LearningPaths/index.js +18 -27
  458. package/lib/Logo/Logo.js +12 -26
  459. package/lib/Logo/SvgLogo.js +7 -18
  460. package/lib/Logo/index.js +0 -3
  461. package/lib/Masthead/Masthead.js +16 -37
  462. package/lib/Masthead/MastheadAuthModal.js +6 -24
  463. package/lib/Masthead/MastheadSearchModal.js +5 -22
  464. package/lib/Masthead/SkipToMainContent.js +2 -13
  465. package/lib/Masthead/index.js +10 -18
  466. package/lib/Masthead/utils.js +7 -23
  467. package/lib/MediaList/MediaList.js +16 -44
  468. package/lib/MediaList/index.js +4 -5
  469. package/lib/Messages/MessageBanner.js +4 -15
  470. package/lib/Messages/MessageBox.js +6 -23
  471. package/lib/Messages/MessageBoxTag.js +2 -13
  472. package/lib/Messages/index.js +4 -8
  473. package/lib/MultidisciplinarySubject/Illustrations.js +1 -5
  474. package/lib/MultidisciplinarySubject/List.js +4 -17
  475. package/lib/MultidisciplinarySubject/ListItem.js +8 -18
  476. package/lib/MultidisciplinarySubject/MultidisciplinarySubject.js +9 -26
  477. package/lib/MultidisciplinarySubject/MultidisciplinarySubjectHeader.js +5 -24
  478. package/lib/MultidisciplinarySubject/index.js +0 -4
  479. package/lib/MyNdla/Resource/Folder.js +15 -45
  480. package/lib/MyNdla/Resource/FolderInput.js +17 -41
  481. package/lib/MyNdla/Resource/index.js +0 -3
  482. package/lib/MyNdla/index.js +0 -3
  483. package/lib/NDLAFilm/AboutNdlaFilm.js +6 -24
  484. package/lib/NDLAFilm/AllMoviesAlphabetically.js +13 -53
  485. package/lib/NDLAFilm/CategorySelect.js +14 -53
  486. package/lib/NDLAFilm/FilmContentCard.js +12 -24
  487. package/lib/NDLAFilm/FilmContentCardTags.js +2 -11
  488. package/lib/NDLAFilm/FilmMovieList.js +11 -25
  489. package/lib/NDLAFilm/FilmMovieSearch.js +9 -23
  490. package/lib/NDLAFilm/FilmSlideshow.js +24 -86
  491. package/lib/NDLAFilm/MovieGrid.js +8 -21
  492. package/lib/NDLAFilm/NavigationArrow.js +4 -13
  493. package/lib/NDLAFilm/SlideshowIndicator.js +4 -11
  494. package/lib/NDLAFilm/VisualElement.js +3 -13
  495. package/lib/NDLAFilm/filmStyles.js +1 -8
  496. package/lib/NDLAFilm/index.js +10 -17
  497. package/lib/NDLAFilm/isLetter.js +1 -2
  498. package/lib/NDLAFilm/types.js +5 -1
  499. package/lib/Navigation/NavigationBox.js +15 -40
  500. package/lib/Navigation/NavigationHeading.js +4 -15
  501. package/lib/Navigation/NavigationTopicAbout.js +10 -36
  502. package/lib/Navigation/index.js +0 -4
  503. package/lib/NoContentBox/NoContentBox.js +4 -9
  504. package/lib/NoContentBox/index.js +0 -3
  505. package/lib/Notion/ConceptNotion.js +13 -43
  506. package/lib/Notion/FigureNotion.js +18 -38
  507. package/lib/Notion/Notion.js +12 -28
  508. package/lib/Notion/NotionImage.js +6 -18
  509. package/lib/Notion/NotionVisualElement.js +4 -21
  510. package/lib/Notion/index.js +0 -4
  511. package/lib/Portrait/Portrait.js +11 -10
  512. package/lib/Portrait/index.js +0 -3
  513. package/lib/Programme/Programme.js +11 -30
  514. package/lib/Programme/ProgrammeSubjects.js +7 -21
  515. package/lib/Programme/index.js +0 -4
  516. package/lib/RadioButtonGroup/RadioButtonGroup.js +10 -42
  517. package/lib/RadioButtonGroup/index.js +0 -3
  518. package/lib/RelatedArticleList/RelatedArticleList.js +17 -37
  519. package/lib/RelatedArticleList/index.js +3 -8
  520. package/lib/Resource/BlockResource.js +19 -47
  521. package/lib/Resource/ListResource.js +22 -53
  522. package/lib/Resource/index.js +6 -15
  523. package/lib/Resource/resourceComponents.js +7 -32
  524. package/lib/ResourceBox/ResourceBox.js +6 -19
  525. package/lib/ResourceBox/index.js +0 -2
  526. package/lib/ResourceGroup/ResourceGroup.js +8 -16
  527. package/lib/ResourceGroup/ResourceItem.js +18 -56
  528. package/lib/ResourceGroup/ResourceList.js +13 -41
  529. package/lib/ResourceGroup/index.js +0 -3
  530. package/lib/ResourcesWrapper/ResourcesTitle.js +3 -13
  531. package/lib/ResourcesWrapper/ResourcesTopicTitle.js +14 -41
  532. package/lib/ResourcesWrapper/ResourcesWrapper.js +7 -17
  533. package/lib/ResourcesWrapper/index.js +0 -5
  534. package/lib/Search/ActiveFilterContent.js +3 -12
  535. package/lib/Search/ActiveFilters.js +7 -29
  536. package/lib/Search/ContentTypeResult.js +27 -58
  537. package/lib/Search/ContentTypeResultStyles.js +1 -6
  538. package/lib/Search/IsPathToHighlight.js +0 -2
  539. package/lib/Search/LoadingWrapper.js +1 -10
  540. package/lib/Search/SearchField.js +16 -39
  541. package/lib/Search/SearchFieldForm.js +3 -12
  542. package/lib/Search/SearchResult.js +11 -45
  543. package/lib/Search/SearchResultSleeve.js +22 -66
  544. package/lib/Search/ToggleSearchButton.js +8 -23
  545. package/lib/Search/index.js +6 -11
  546. package/lib/SearchTypeResult/ActiveFilterContent.js +3 -17
  547. package/lib/SearchTypeResult/ActiveFilters.js +9 -30
  548. package/lib/SearchTypeResult/PopupFilter.js +16 -42
  549. package/lib/SearchTypeResult/ResultNavigation.js +7 -20
  550. package/lib/SearchTypeResult/SearchFieldHeader.js +14 -41
  551. package/lib/SearchTypeResult/SearchFilterContent.js +6 -20
  552. package/lib/SearchTypeResult/SearchHeader.js +20 -48
  553. package/lib/SearchTypeResult/SearchItem.js +10 -25
  554. package/lib/SearchTypeResult/SearchItemList.js +14 -34
  555. package/lib/SearchTypeResult/SearchItems.js +7 -22
  556. package/lib/SearchTypeResult/SearchNotionItem.js +17 -41
  557. package/lib/SearchTypeResult/SearchNotionsResult.js +5 -16
  558. package/lib/SearchTypeResult/SearchSubjectItem.js +5 -18
  559. package/lib/SearchTypeResult/SearchSubjectResult.js +2 -10
  560. package/lib/SearchTypeResult/SearchTypeHeader.js +9 -29
  561. package/lib/SearchTypeResult/SearchTypeResult.js +15 -34
  562. package/lib/SearchTypeResult/SearchViewType.js +3 -19
  563. package/lib/SearchTypeResult/components/ItemContexts.js +8 -29
  564. package/lib/SearchTypeResult/components/ItemResourceHeader.js +8 -25
  565. package/lib/SearchTypeResult/components/ItemTopicHeader.js +4 -17
  566. package/lib/SearchTypeResult/components/SubjectFilters.js +21 -70
  567. package/lib/SearchTypeResult/index.js +8 -15
  568. package/lib/SectionHeading/SectionHeading.js +4 -13
  569. package/lib/SectionHeading/index.js +0 -3
  570. package/lib/SnackBar/DefaultSnackbar.js +6 -20
  571. package/lib/SnackBar/SnackbarProvider.js +18 -55
  572. package/lib/SnackBar/index.js +8 -11
  573. package/lib/Subject/Subject.js +8 -32
  574. package/lib/Subject/SubjectAbout.js +7 -17
  575. package/lib/Subject/SubjectArchive.js +16 -55
  576. package/lib/Subject/SubjectBanner.js +2 -10
  577. package/lib/Subject/SubjectCarousel.js +16 -37
  578. package/lib/Subject/SubjectHeader.js +3 -13
  579. package/lib/Subject/SubjectLinks.js +4 -18
  580. package/lib/Subject/SubjectNewContent.js +2 -14
  581. package/lib/Subject/SubjectShortcuts.js +13 -51
  582. package/lib/Subject/SubjectSocial.js +3 -14
  583. package/lib/Subject/index.js +34 -45
  584. package/lib/Table/Table.js +7 -22
  585. package/lib/Table/index.js +0 -3
  586. package/lib/TagSelector/Control.js +5 -16
  587. package/lib/TagSelector/DropdownIndicator.js +10 -31
  588. package/lib/TagSelector/Input.js +3 -16
  589. package/lib/TagSelector/Menu.js +5 -20
  590. package/lib/TagSelector/MenuList.js +5 -16
  591. package/lib/TagSelector/Option.js +7 -20
  592. package/lib/TagSelector/SelectContainer.js +5 -16
  593. package/lib/TagSelector/TagSelector.js +17 -58
  594. package/lib/TagSelector/ValueButton.js +6 -19
  595. package/lib/TagSelector/ariaMessages.js +17 -31
  596. package/lib/TagSelector/index.js +0 -4
  597. package/lib/TagSelector/types.js +5 -1
  598. package/lib/ToolboxPage/ToolboxInfo.js +7 -18
  599. package/lib/ToolboxPage/index.js +0 -2
  600. package/lib/Topic/Loader.js +1 -7
  601. package/lib/Topic/Topic.js +17 -50
  602. package/lib/Topic/index.js +2 -9
  603. package/lib/TopicIntroductionList/TopicIntroduction.js +12 -25
  604. package/lib/TopicIntroductionList/TopicIntroductionList.js +14 -30
  605. package/lib/TopicIntroductionList/TopicIntroductionShortcuts.js +26 -59
  606. package/lib/TopicIntroductionList/TopicShortcutItem.js +9 -25
  607. package/lib/TopicIntroductionList/index.js +0 -3
  608. package/lib/TopicMenu/SubtopicLinkList.js +42 -87
  609. package/lib/TopicMenu/TopicMenu.js +48 -104
  610. package/lib/TopicMenu/TopicMenuButton.js +6 -22
  611. package/lib/TopicMenu/index.js +0 -4
  612. package/lib/Translation/Translation.js +4 -14
  613. package/lib/Translation/TranslationBox.js +1 -7
  614. package/lib/Translation/TranslationLine.js +7 -19
  615. package/lib/Translation/index.js +0 -4
  616. package/lib/TreeStructure/AddFolderButton.js +8 -27
  617. package/lib/TreeStructure/ComboboxButton.js +16 -37
  618. package/lib/TreeStructure/FolderItem.js +25 -59
  619. package/lib/TreeStructure/FolderItems.js +16 -32
  620. package/lib/TreeStructure/NavigationLink.js +14 -32
  621. package/lib/TreeStructure/TreeStructure.js +34 -83
  622. package/lib/TreeStructure/arrowNavigation.js +1 -11
  623. package/lib/TreeStructure/helperFunctions.js +5 -15
  624. package/lib/TreeStructure/index.js +0 -2
  625. package/lib/TreeStructure/types.js +5 -1
  626. package/lib/User/AuthModal.js +15 -34
  627. package/lib/User/UserInfo.js +8 -29
  628. package/lib/User/apiTypes.js +5 -1
  629. package/lib/User/index.js +0 -4
  630. package/lib/User/parseUserObject.js +20 -37
  631. package/lib/all.css +1 -1
  632. package/lib/i18n/formatMessage.js +4 -10
  633. package/lib/i18n/formatNestedMessages.js +4 -7
  634. package/lib/i18n/i18n.js +1 -11
  635. package/lib/i18n/index.js +4 -7
  636. package/lib/index-javascript.js +3 -7
  637. package/lib/index.js +394 -474
  638. package/lib/internal-icons/Book.js +2 -7
  639. package/lib/internal-icons/Download.js +2 -7
  640. package/lib/internal-icons/Embed.js +2 -7
  641. package/lib/internal-icons/InsertTemplate.js +2 -7
  642. package/lib/internal-icons/OpenWindow.js +2 -7
  643. package/lib/locale/LocaleProvider.js +5 -14
  644. package/lib/locale/messages-en.d.ts +0 -1
  645. package/lib/locale/messages-en.js +5 -16
  646. package/lib/locale/messages-nb.d.ts +0 -1
  647. package/lib/locale/messages-nb.js +5 -16
  648. package/lib/locale/messages-nn.d.ts +0 -1
  649. package/lib/locale/messages-nn.js +5 -16
  650. package/lib/locale/messages-se.d.ts +0 -1
  651. package/lib/locale/messages-se.js +5 -16
  652. package/lib/locale/messages-sma.d.ts +0 -1
  653. package/lib/locale/messages-sma.js +5 -16
  654. package/lib/model/ContentType.js +2 -4
  655. package/lib/model/SubjectCategories.js +2 -2
  656. package/lib/model/SubjectTypes.js +2 -2
  657. package/lib/model/index.js +4 -10
  658. package/lib/shapes.js +5 -32
  659. package/lib/types.js +4 -0
  660. package/lib/utils/createUniversalPortal.js +3 -7
  661. package/lib/utils/resourceTypeColor.js +2 -16
  662. package/package.json +6 -6
  663. package/src/FactBox/component.factbox.scss +1 -1
  664. package/src/Figure/Figure.tsx +44 -46
  665. package/src/Figure/component.figure.scss +7 -0
  666. package/src/MyNdla/Resource/FolderInput.tsx +1 -0
  667. package/src/TopicMenu/TopicMenu.jsx +2 -2
  668. package/src/User/UserInfo.tsx +0 -2
  669. package/src/locale/messages-en.ts +0 -1
  670. package/src/locale/messages-nb.ts +0 -1
  671. package/src/locale/messages-nn.ts +0 -1
  672. package/src/locale/messages-se.ts +0 -1
  673. package/src/locale/messages-sma.ts +0 -1
@@ -1,60 +1,35 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports["default"] = void 0;
7
-
8
- var _jsxRuntime = require("@emotion/react/jsx-runtime");
9
-
10
8
  var _react = _interopRequireWildcard(require("react"));
11
-
12
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
10
  var _lodash = require("lodash");
15
-
16
11
  var _Fade = _interopRequireDefault(require("./Fade"));
17
-
12
+ var _jsxRuntime = require("@emotion/react/jsx-runtime");
18
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
21
-
22
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
-
24
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
25
-
14
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
26
16
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
-
28
17
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
29
-
30
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
31
-
32
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
-
34
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
-
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
20
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
36
21
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
37
-
38
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
39
-
22
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
40
23
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
41
-
42
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
43
-
44
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
-
24
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
46
26
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
47
-
48
27
  var DisplayOnPageYOffset = /*#__PURE__*/function (_Component) {
49
28
  _inherits(DisplayOnPageYOffset, _Component);
50
-
51
29
  var _super = _createSuper(DisplayOnPageYOffset);
52
-
53
30
  function DisplayOnPageYOffset(props) {
54
31
  var _this;
55
-
56
32
  _classCallCheck(this, DisplayOnPageYOffset);
57
-
58
33
  _this = _super.call(this, props);
59
34
  _this.state = {
60
35
  show: props.yOffsetMin === 0
@@ -62,7 +37,6 @@ var DisplayOnPageYOffset = /*#__PURE__*/function (_Component) {
62
37
  _this.handleScroll = (0, _lodash.throttle)(_this.handleScroll.bind(_assertThisInitialized(_this)), 50);
63
38
  return _this;
64
39
  }
65
-
66
40
  _createClass(DisplayOnPageYOffset, [{
67
41
  key: "componentDidMount",
68
42
  value: function componentDidMount() {
@@ -82,7 +56,6 @@ var DisplayOnPageYOffset = /*#__PURE__*/function (_Component) {
82
56
  key: "handleScroll",
83
57
  value: function handleScroll() {
84
58
  var _this$props$yOffsetMa;
85
-
86
59
  if (window.pageYOffset >= this.props.yOffsetMin && (this.props.yOffsetMax === null || window.pageYOffset <= ((_this$props$yOffsetMa = this.props.yOffsetMax) !== null && _this$props$yOffsetMa !== void 0 ? _this$props$yOffsetMa : 0))) {
87
60
  if (!this.state.show) {
88
61
  this.setState({
@@ -104,18 +77,14 @@ var DisplayOnPageYOffset = /*#__PURE__*/function (_Component) {
104
77
  });
105
78
  }
106
79
  }]);
107
-
108
80
  return DisplayOnPageYOffset;
109
81
  }(_react.Component);
110
-
111
82
  exports["default"] = DisplayOnPageYOffset;
112
-
113
83
  _defineProperty(DisplayOnPageYOffset, "propTypes", {
114
84
  children: _propTypes["default"].node.isRequired,
115
85
  yOffsetMin: _propTypes["default"].number.isRequired,
116
86
  yOffsetMax: _propTypes["default"].number
117
87
  });
118
-
119
88
  _defineProperty(DisplayOnPageYOffset, "defaultProps", {
120
89
  yOffsetMax: null
121
90
  });
@@ -4,39 +4,27 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
- var _jsxRuntime = require("@emotion/react/jsx-runtime");
9
-
10
7
  var _react = _interopRequireDefault(require("react"));
11
-
12
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
9
  var _reactTransitionGroup = require("react-transition-group");
15
-
10
+ var _jsxRuntime = require("@emotion/react/jsx-runtime");
11
+ var _excluded = ["children", "delay", "timeout", "exitDelay"];
16
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
19
-
20
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
21
-
13
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
22
15
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
-
24
16
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
25
-
26
17
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
27
-
28
18
  var defaultTimeout = 300;
29
-
30
19
  var Fade = function Fade(_ref) {
31
20
  var children = _ref.children,
32
- _ref$delay = _ref.delay,
33
- delay = _ref$delay === void 0 ? null : _ref$delay,
34
- _ref$timeout = _ref.timeout,
35
- timeout = _ref$timeout === void 0 ? defaultTimeout : _ref$timeout,
36
- _ref$exitDelay = _ref.exitDelay,
37
- exitDelay = _ref$exitDelay === void 0 ? null : _ref$exitDelay,
38
- rest = _objectWithoutProperties(_ref, ["children", "delay", "timeout", "exitDelay"]);
39
-
21
+ _ref$delay = _ref.delay,
22
+ delay = _ref$delay === void 0 ? null : _ref$delay,
23
+ _ref$timeout = _ref.timeout,
24
+ timeout = _ref$timeout === void 0 ? defaultTimeout : _ref$timeout,
25
+ _ref$exitDelay = _ref.exitDelay,
26
+ exitDelay = _ref$exitDelay === void 0 ? null : _ref$exitDelay,
27
+ rest = _objectWithoutProperties(_ref, _excluded);
40
28
  return (0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, _objectSpread(_objectSpread({
41
29
  classNames: "u-fade"
42
30
  }, rest), {}, {
@@ -45,7 +33,6 @@ var Fade = function Fade(_ref) {
45
33
  onEnter: function onEnter(node) {
46
34
  var n = node;
47
35
  n.style.transitionDuration = "".concat(timeout, "ms");
48
-
49
36
  if (delay) {
50
37
  n.style.transitionDelay = "".concat(delay, "ms");
51
38
  }
@@ -57,7 +44,6 @@ var Fade = function Fade(_ref) {
57
44
  children: children
58
45
  }));
59
46
  };
60
-
61
47
  Fade.propTypes = {
62
48
  children: _propTypes["default"].node.isRequired,
63
49
  timeout: _propTypes["default"].number,
@@ -15,9 +15,6 @@ Object.defineProperty(exports, "Fade", {
15
15
  return _Fade["default"];
16
16
  }
17
17
  });
18
-
19
18
  var _DisplayOnPageYOffset = _interopRequireDefault(require("./DisplayOnPageYOffset"));
20
-
21
19
  var _Fade = _interopRequireDefault(require("./Fade"));
22
-
23
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -3,78 +3,46 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = exports.Article = exports.ArticleIntroduction = exports.ArticleTitle = exports.ArticleWrapper = void 0;
7
-
6
+ exports["default"] = exports.ArticleWrapper = exports.ArticleTitle = exports.ArticleIntroduction = exports.Article = void 0;
8
7
  var _base = _interopRequireDefault(require("@emotion/styled/base"));
9
-
10
- var _jsxRuntime = require("@emotion/react/jsx-runtime");
11
-
12
8
  var _react = _interopRequireWildcard(require("react"));
13
-
14
9
  var _reactBemHelper = _interopRequireDefault(require("react-bem-helper"));
15
-
16
10
  var _lodash = require("lodash");
17
-
18
11
  var _htmlReactParser = _interopRequireDefault(require("html-react-parser"));
19
-
20
12
  var _hooks = require("@ndla/hooks");
21
-
22
13
  var _util = require("@ndla/util");
23
-
24
14
  var _core = require("@ndla/core");
25
-
26
15
  var _ArticleFootNotes = _interopRequireDefault(require("./ArticleFootNotes"));
27
-
28
16
  var _ArticleContent = _interopRequireDefault(require("./ArticleContent"));
29
-
30
17
  var _ArticleByline = _interopRequireDefault(require("./ArticleByline"));
31
-
32
18
  var _Layout = _interopRequireDefault(require("../Layout"));
33
-
34
19
  var _ArticleHeaderWrapper = _interopRequireDefault(require("./ArticleHeaderWrapper"));
35
-
36
20
  var _ArticleNotions = _interopRequireDefault(require("./ArticleNotions"));
37
-
38
21
  var _ArticleAccessMessage = _interopRequireDefault(require("./ArticleAccessMessage"));
39
-
40
22
  var _MessageBox = _interopRequireDefault(require("../Messages/MessageBox"));
41
-
42
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
43
-
44
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
45
-
23
+ var _jsxRuntime = require("@emotion/react/jsx-runtime");
24
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
46
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
47
-
48
27
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
49
-
50
28
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
51
-
52
29
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
53
-
54
30
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
55
-
56
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
57
-
31
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
58
32
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
59
-
60
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
61
-
62
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
63
-
64
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
65
-
33
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
34
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
35
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
66
36
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
67
-
68
37
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
69
-
70
38
  var classes = new _reactBemHelper["default"]({
71
39
  name: 'article',
72
40
  prefix: 'c-'
73
41
  });
74
42
  var ArticleWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
75
43
  var children = _ref.children,
76
- modifier = _ref.modifier,
77
- id = _ref.id;
44
+ modifier = _ref.modifier,
45
+ id = _ref.id;
78
46
  return (0, _jsxRuntime.jsx)("article", _objectSpread(_objectSpread({
79
47
  id: id
80
48
  }, classes(undefined, modifier)), {}, {
@@ -83,25 +51,20 @@ var ArticleWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
83
51
  }));
84
52
  });
85
53
  exports.ArticleWrapper = ArticleWrapper;
86
-
87
54
  var ArticleTitle = function ArticleTitle(_ref2) {
88
55
  var children = _ref2.children,
89
- icon = _ref2.icon,
90
- label = _ref2.label;
56
+ icon = _ref2.icon,
57
+ label = _ref2.label;
91
58
  var modifiers = [];
92
-
93
59
  if (icon) {
94
60
  modifiers.push('icon');
95
61
  }
96
-
97
62
  var labelView = null;
98
-
99
63
  if (label) {
100
64
  labelView = (0, _jsxRuntime.jsx)("p", {
101
65
  children: label
102
66
  });
103
67
  }
104
-
105
68
  return (0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({}, classes('title', modifiers)), {}, {
106
69
  children: [icon, labelView, (0, _jsxRuntime.jsx)("h1", {
107
70
  tabIndex: 0,
@@ -109,33 +72,27 @@ var ArticleTitle = function ArticleTitle(_ref2) {
109
72
  })]
110
73
  }));
111
74
  };
112
-
113
75
  exports.ArticleTitle = ArticleTitle;
114
-
115
76
  var ArticleIntroduction = function ArticleIntroduction(_ref3) {
116
77
  var children = _ref3.children,
117
- _ref3$renderMarkdown = _ref3.renderMarkdown,
118
- renderMarkdown = _ref3$renderMarkdown === void 0 ? function (text) {
119
- return text;
120
- } : _ref3$renderMarkdown;
121
-
78
+ _ref3$renderMarkdown = _ref3.renderMarkdown,
79
+ renderMarkdown = _ref3$renderMarkdown === void 0 ? function (text) {
80
+ return text;
81
+ } : _ref3$renderMarkdown;
122
82
  if ((0, _lodash.isString)(children)) {
123
83
  return (0, _jsxRuntime.jsx)("p", {
124
84
  className: "article_introduction",
125
85
  children: (0, _htmlReactParser["default"])(renderMarkdown(children))
126
86
  });
127
87
  }
128
-
129
88
  if (children) {
130
89
  return (0, _jsxRuntime.jsx)("p", {
131
90
  className: "article_introduction",
132
91
  children: children
133
92
  });
134
93
  }
135
-
136
94
  return null;
137
95
  };
138
-
139
96
  exports.ArticleIntroduction = ArticleIntroduction;
140
97
  var MSGboxWrapper = /*#__PURE__*/(0, _base["default"])("div", {
141
98
  target: "ekgxh1z1",
@@ -159,7 +116,6 @@ var ArticleFavoritesButtonWrapper = /*#__PURE__*/(0, _base["default"])("div", {
159
116
  }), "{transform:translate(", _core.spacing.large, ", -", _core.spacing.medium, ");}", _core.mq.range({
160
117
  from: _core.breakpoints.desktop
161
118
  }), "{transform:translate(", _core.spacingUnit * 5.5, "px, -", _core.spacing.medium, ");}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFydGljbGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9HZ0QiLCJmaWxlIjoiQXJ0aWNsZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxNi1wcmVzZW50LCBORExBLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEdQTHYzIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbmltcG9ydCBSZWFjdCwgeyBDb21wb25lbnRUeXBlLCBSZWFjdE5vZG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Y2VHb2Fscz17Y29tcGV0ZW5jZUdvYWxzfSBjb21wZXRlbmNlR29hbFR5cGVzPXtjb21wZXRlbmNlR29hbFR5cGVzfT5cbiAgICAgICAgICAgIHtoZWFydEJ1dHRvbiA/IDxBcnRpY2xlRmF2b3JpdGVzQnV0dG9uV3JhcHBlcj57aGVhcnRCdXR0b259PC9BcnRpY2xlRmF2b3JpdGVzQnV0dG9uV3JhcHBlcj4gOiBudWxsfVxuXG4gICAgICAgICAgICA8QXJ0aWNsZVRpdGxlIGljb249e2ljb259IGxhYmVsPXttZXNzYWdlcy5sYWJlbH0+XG4gICAgICAgICAgICAgIHt0aXRsZX1cbiAgICAgICAgICAgIDwvQXJ0aWNsZVRpdGxlPlxuICAgICAgICAgICAgPEFydGljbGVJbnRyb2R1Y3Rpb24gcmVuZGVyTWFya2Rvd249e3JlbmRlck1hcmtkb3dufT57aW50cm9kdWN0aW9ufTwvQXJ0aWNsZUludHJvZHVjdGlvbj5cbiAgICAgICAgICA8L0FydGljbGVIZWFkZXJXcmFwcGVyPlxuICAgICAgICA8L0xheW91dEl0ZW0+XG4gICAgICAgIDxMYXlvdXRJdGVtIGxheW91dD1cImNlbnRlclwiPlxuICAgICAgICAgIHtub3Rpb25zICYmIHNob3dFeHBsYWluTm90aW9ucyAmJiAoXG4gICAgICAgICAgICA8QXJ0aWNsZU5vdGlvbnNcbiAgICAgICAgICAgICAgbm90aW9ucz17bm90aW9ucy5saXN0fVxuICAgICAgICAgICAgICByZWxhdGVkQ29udGVudD17bm90aW9ucy5yZWxhdGVkfVxuICAgICAgICAgICAgICBidXR0b25PZmZzZXRSaWdodD17YXJ0aWNsZVBvc2l0aW9uUmlnaHR9XG4gICAgICAgICAgICAvPlxuICAgICAgICAgICl9XG4gICAgICAgICAge2dldEFydGljbGVDb250ZW50KGNvbnRlbnQsIGxvY2FsZSl9XG4gICAgICAgIDwvTGF5b3V0SXRlbT5cblxuICAgICAgICA8TGF5b3V0SXRlbSBsYXlvdXQ9XCJjZW50ZXJcIj5cbiAgICAgICAgICB7Zm9vdE5vdGVzICYmIGZvb3ROb3Rlcy5sZW5ndGggPiAwICYmIDxBcnRpY2xlRm9vdE5vdGVzIGZvb3ROb3Rlcz17Zm9vdE5vdGVzfSAvPn1cbiAgICAgICAgICA8QXJ0aWNsZUJ5bGluZVxuICAgICAgICAgICAgY29weVBhZ2VVcmxMaW5rPXtjb3B5UGFnZVVybExpbmt9XG4gICAgICAgICAgICBhdXRob3JzPXthdXRob3JzfVxuICAgICAgICAgICAgc3VwcGxpZXJzPXtyaWdodHNob2xkZXJzfVxuICAgICAgICAgICAgcHVibGlzaGVkPXtwdWJsaXNoZWR9XG4gICAgICAgICAgICBsaWNlbnNlPXtsaWNlbnNlT2JqLmxpY2Vuc2V9XG4gICAgICAgICAgICBsaWNlbnNlQm94PXtsaWNlbnNlQm94fVxuICAgICAgICAgICAgcHJpbnRVcmw9e3ByaW50VXJsfVxuICAgICAgICAgIC8+XG4gICAgICAgIDwvTGF5b3V0SXRlbT5cbiAgICAgICAgPExheW91dEl0ZW0gbGF5b3V0PVwiZXh0ZW5kXCI+e2NoaWxkcmVufTwvTGF5b3V0SXRlbT5cbiAgICAgIDwvQXJ0aWNsZVdyYXBwZXI+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBBcnRpY2xlO1xuIl19 */"));
162
-
163
119
  var getArticleContent = function getArticleContent(content, locale) {
164
120
  switch (_typeof(content)) {
165
121
  case 'string':
@@ -167,48 +123,42 @@ var getArticleContent = function getArticleContent(content, locale) {
167
123
  content: content,
168
124
  locale: locale
169
125
  });
170
-
171
126
  case 'function':
172
127
  return content();
173
-
174
128
  default:
175
129
  return content;
176
130
  }
177
131
  };
178
-
179
132
  var Article = function Article(_ref4) {
180
133
  var article = _ref4.article,
181
- icon = _ref4.icon,
182
- licenseBox = _ref4.licenseBox,
183
- modifier = _ref4.modifier,
184
- messages = _ref4.messages,
185
- messageBoxLinks = _ref4.messageBoxLinks,
186
- children = _ref4.children,
187
- competenceGoals = _ref4.competenceGoals,
188
- competenceGoalTypes = _ref4.competenceGoalTypes,
189
- copyPageUrlLink = _ref4.copyPageUrlLink,
190
- id = _ref4.id,
191
- locale = _ref4.locale,
192
- notions = _ref4.notions,
193
- printUrl = _ref4.printUrl,
194
- renderMarkdown = _ref4.renderMarkdown,
195
- accessMessage = _ref4.accessMessage,
196
- heartButton = _ref4.heartButton;
197
-
134
+ icon = _ref4.icon,
135
+ licenseBox = _ref4.licenseBox,
136
+ modifier = _ref4.modifier,
137
+ messages = _ref4.messages,
138
+ messageBoxLinks = _ref4.messageBoxLinks,
139
+ children = _ref4.children,
140
+ competenceGoals = _ref4.competenceGoals,
141
+ competenceGoalTypes = _ref4.competenceGoalTypes,
142
+ copyPageUrlLink = _ref4.copyPageUrlLink,
143
+ id = _ref4.id,
144
+ locale = _ref4.locale,
145
+ notions = _ref4.notions,
146
+ printUrl = _ref4.printUrl,
147
+ renderMarkdown = _ref4.renderMarkdown,
148
+ accessMessage = _ref4.accessMessage,
149
+ heartButton = _ref4.heartButton;
198
150
  var _useIntersectionObser = (0, _hooks.useIntersectionObserver)({
199
- root: null,
200
- rootMargin: '400px',
201
- threshold: 0.1
202
- }),
203
- _useIntersectionObser2 = _slicedToArray(_useIntersectionObser, 2),
204
- articleRef = _useIntersectionObser2[0],
205
- entry = _useIntersectionObser2[1].entry;
206
-
151
+ root: null,
152
+ rootMargin: '400px',
153
+ threshold: 0.1
154
+ }),
155
+ _useIntersectionObser2 = _slicedToArray(_useIntersectionObser, 2),
156
+ articleRef = _useIntersectionObser2[0],
157
+ entry = _useIntersectionObser2[1].entry;
207
158
  var _useState = (0, _react.useState)(0),
208
- _useState2 = _slicedToArray(_useState, 2),
209
- articlePositionRight = _useState2[0],
210
- setArticlePositionRight = _useState2[1];
211
-
159
+ _useState2 = _slicedToArray(_useState, 2),
160
+ articlePositionRight = _useState2[0],
161
+ setArticlePositionRight = _useState2[1];
212
162
  var wrapperRef = (0, _react.useRef)(null);
213
163
  var showExplainNotions = entry && entry.isIntersecting;
214
164
  (0, _react.useEffect)(function () {
@@ -219,21 +169,20 @@ var Article = function Article(_ref4) {
219
169
  setArticlePositionRight(offset);
220
170
  }
221
171
  };
222
-
223
172
  handler();
224
173
  return (0, _util.resizeObserver)(document.body, handler);
225
174
  }
226
175
  }, [wrapperRef]);
227
176
  var title = article.title,
228
- introduction = article.introduction,
229
- published = article.published,
230
- content = article.content,
231
- footNotes = article.footNotes,
232
- _article$copyright = article.copyright,
233
- licenseObj = _article$copyright.license,
234
- creators = _article$copyright.creators,
235
- rightsholders = _article$copyright.rightsholders,
236
- processors = _article$copyright.processors;
177
+ introduction = article.introduction,
178
+ published = article.published,
179
+ content = article.content,
180
+ footNotes = article.footNotes,
181
+ _article$copyright = article.copyright,
182
+ licenseObj = _article$copyright.license,
183
+ creators = _article$copyright.creators,
184
+ rightsholders = _article$copyright.rightsholders,
185
+ processors = _article$copyright.processors;
237
186
  var authors = creators.length || rightsholders.length ? creators : processors;
238
187
  return (0, _jsxRuntime.jsx)("div", {
239
188
  ref: wrapperRef,
@@ -291,7 +240,6 @@ var Article = function Article(_ref4) {
291
240
  })
292
241
  });
293
242
  };
294
-
295
243
  exports.Article = Article;
296
244
  var _default = Article;
297
245
  exports["default"] = _default;
@@ -1,30 +1,19 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _base = _interopRequireDefault(require("@emotion/styled/base"));
11
-
12
- var _jsxRuntime = require("@emotion/react/jsx-runtime");
13
-
14
9
  var React = _interopRequireWildcard(require("react"));
15
-
16
10
  var _core = require("@ndla/core");
17
-
18
11
  var _common = require("@ndla/icons/common");
19
-
20
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
21
-
22
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
-
12
+ var _jsxRuntime = require("@emotion/react/jsx-runtime");
13
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
24
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
-
26
16
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
27
-
28
17
  var StyledMessage = /*#__PURE__*/(0, _base["default"])("span", {
29
18
  target: "ef7syc21",
30
19
  label: "StyledMessage"
@@ -41,7 +30,6 @@ var IconWrapper = /*#__PURE__*/(0, _base["default"])("span", {
41
30
  map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFydGljbGVBY2Nlc3NNZXNzYWdlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF3QitCIiwiZmlsZSI6IkFydGljbGVBY2Nlc3NNZXNzYWdlLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29weXJpZ2h0IChjKSAyMDIxLXByZXNlbnQsIE5ETEEuXG4gKlxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgR1BMdjMgbGljZW5zZSBmb3VuZCBpbiB0aGVcbiAqIExJQ0VOU0UgZmlsZSBpbiB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhpcyBzb3VyY2UgdHJlZS5cbiAqXG4gKi9cblxuaW1wb3J0ICogYXMgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY29sb3JzLCBmb250cyB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuaW1wb3J0IHsgSHVtYW5NYWxlQm9hcmQgfSBmcm9tICdAbmRsYS9pY29ucy9jb21tb24nO1xuXG5jb25zdCBTdHlsZWRNZXNzYWdlID0gc3R5bGVkLnNwYW5gXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAtNTBweDtcbiAgY29sb3I6ICR7Y29sb3JzLnRleHQubGlnaHR9O1xuICAke2ZvbnRzLnNpemVzKCcxNHB4JywgJzE4cHgnKX07XG4gIGZvbnQtZmFtaWx5OiAke2ZvbnRzLnNhbnN9O1xuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWRpcmVjdGlvbjogcm93O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtc3RhcnQ7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5gO1xuY29uc3QgSWNvbldyYXBwZXIgPSBzdHlsZWQuc3BhbmBcbiAgbWFyZ2luLXJpZ2h0OiAwLjVyZW07XG5gO1xuXG50eXBlIFByb3BzID0ge1xuICBtZXNzYWdlOiBzdHJpbmc7XG59O1xuXG5jb25zdCBBcnRpY2xlQWNjZXNzTWVzc2FnZSA9ICh7IG1lc3NhZ2UgfTogUHJvcHMpID0+IChcbiAgPD5cbiAgICA8U3R5bGVkTWVzc2FnZT5cbiAgICAgIDxJY29uV3JhcHBlcj5cbiAgICAgICAgPEh1bWFuTWFsZUJvYXJkIC8+XG4gICAgICA8L0ljb25XcmFwcGVyPlxuICAgICAge21lc3NhZ2V9XG4gICAgPC9TdHlsZWRNZXNzYWdlPlxuICA8Lz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IEFydGljbGVBY2Nlc3NNZXNzYWdlO1xuIl19 */",
42
31
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
43
32
  });
44
-
45
33
  var ArticleAccessMessage = function ArticleAccessMessage(_ref) {
46
34
  var message = _ref.message;
47
35
  return (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
@@ -52,6 +40,5 @@ var ArticleAccessMessage = function ArticleAccessMessage(_ref) {
52
40
  })
53
41
  });
54
42
  };
55
-
56
43
  var _default = ArticleAccessMessage;
57
44
  exports["default"] = _default;