@ndla/ui 56.0.123-alpha.0 → 56.0.124-alpha.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 (347) hide show
  1. package/es/Article/Article.js +122 -194
  2. package/es/Article/Article.js.map +1 -0
  3. package/es/Article/ArticleByline.js +121 -170
  4. package/es/Article/ArticleByline.js.map +1 -0
  5. package/es/Article/ArticleFootNotes.js +38 -58
  6. package/es/Article/ArticleFootNotes.js.map +1 -0
  7. package/es/AudioPlayer/AudioPlayer.js +151 -212
  8. package/es/AudioPlayer/AudioPlayer.js.map +1 -0
  9. package/es/AudioPlayer/Controls.js +246 -324
  10. package/es/AudioPlayer/Controls.js.map +1 -0
  11. package/es/AudioPlayer/SpeechControl.js +36 -52
  12. package/es/AudioPlayer/SpeechControl.js.map +1 -0
  13. package/es/AudioPlayer/index.js +7 -9
  14. package/es/AudioPlayer/index.js.map +1 -0
  15. package/es/Breadcrumb/Breadcrumb.js +42 -58
  16. package/es/Breadcrumb/Breadcrumb.js.map +1 -0
  17. package/es/Breadcrumb/BreadcrumbItem.js +33 -59
  18. package/es/Breadcrumb/BreadcrumbItem.js.map +1 -0
  19. package/es/Breadcrumb/HomeBreadcrumb.js +41 -74
  20. package/es/Breadcrumb/HomeBreadcrumb.js.map +1 -0
  21. package/es/Breadcrumb/index.js +8 -10
  22. package/es/Breadcrumb/index.js.map +1 -0
  23. package/es/CampaignBlock/CampaignBlock.js +124 -173
  24. package/es/CampaignBlock/CampaignBlock.js.map +1 -0
  25. package/es/CodeBlock/CodeBlock.js +21 -31
  26. package/es/CodeBlock/CodeBlock.js.map +1 -0
  27. package/es/CodeBlock/codeLanguageOptions.js +112 -82
  28. package/es/CodeBlock/codeLanguageOptions.js.map +1 -0
  29. package/es/Concept/Concept.js +46 -68
  30. package/es/Concept/Concept.js.map +1 -0
  31. package/es/ContactBlock/ContactBlock.js +137 -191
  32. package/es/ContactBlock/ContactBlock.js.map +1 -0
  33. package/es/ContentTypeBadge/ContentTypeBadge.js +38 -47
  34. package/es/ContentTypeBadge/ContentTypeBadge.js.map +1 -0
  35. package/es/ContentTypeBlockQuote/ContentTypeBlockQuote.js +21 -28
  36. package/es/ContentTypeBlockQuote/ContentTypeBlockQuote.js.map +1 -0
  37. package/es/ContentTypeFramedContent/ContentTypeFramedContent.js +21 -28
  38. package/es/ContentTypeFramedContent/ContentTypeFramedContent.js.map +1 -0
  39. package/es/ContentTypeHero/ContentTypeHero.js +36 -47
  40. package/es/ContentTypeHero/ContentTypeHero.js.map +1 -0
  41. package/es/CopyParagraphButton/CopyParagraphButton.js +57 -78
  42. package/es/CopyParagraphButton/CopyParagraphButton.js.map +1 -0
  43. package/es/CopyParagraphButton/index.js +7 -10
  44. package/es/CopyParagraphButton/index.js.map +1 -0
  45. package/es/Embed/AudioEmbed.js +49 -73
  46. package/es/Embed/AudioEmbed.js.map +1 -0
  47. package/es/Embed/BrightcoveEmbed.js +90 -127
  48. package/es/Embed/BrightcoveEmbed.js.map +1 -0
  49. package/es/Embed/CodeEmbed.js +55 -73
  50. package/es/Embed/CodeEmbed.js.map +1 -0
  51. package/es/Embed/ConceptEmbed.js +72 -117
  52. package/es/Embed/ConceptEmbed.js.map +1 -0
  53. package/es/Embed/ConceptInlineTriggerButton.js +39 -44
  54. package/es/Embed/ConceptInlineTriggerButton.js.map +1 -0
  55. package/es/Embed/ContentLinkEmbed.js +29 -49
  56. package/es/Embed/ContentLinkEmbed.js.map +1 -0
  57. package/es/Embed/CopyrightEmbed.js +21 -31
  58. package/es/Embed/CopyrightEmbed.js.map +1 -0
  59. package/es/Embed/EmbedErrorPlaceholder.js +40 -55
  60. package/es/Embed/EmbedErrorPlaceholder.js.map +1 -0
  61. package/es/Embed/EmbedWrapper.js +21 -46
  62. package/es/Embed/EmbedWrapper.js.map +1 -0
  63. package/es/Embed/ExternalEmbed.js +50 -70
  64. package/es/Embed/ExternalEmbed.js.map +1 -0
  65. package/es/Embed/FootnoteEmbed.js +25 -42
  66. package/es/Embed/FootnoteEmbed.js.map +1 -0
  67. package/es/Embed/GlossEmbed.js +49 -77
  68. package/es/Embed/GlossEmbed.js.map +1 -0
  69. package/es/Embed/H5pEmbed.js +35 -58
  70. package/es/Embed/H5pEmbed.js.map +1 -0
  71. package/es/Embed/IframeEmbed.js +65 -89
  72. package/es/Embed/IframeEmbed.js.map +1 -0
  73. package/es/Embed/ImageEmbed.js +167 -225
  74. package/es/Embed/ImageEmbed.js.map +1 -0
  75. package/es/Embed/InlineTriggerButton.js +20 -32
  76. package/es/Embed/InlineTriggerButton.js.map +1 -0
  77. package/es/Embed/RelatedContentEmbed.js +36 -53
  78. package/es/Embed/RelatedContentEmbed.js.map +1 -0
  79. package/es/Embed/UnknownEmbed.js +18 -29
  80. package/es/Embed/UnknownEmbed.js.map +1 -0
  81. package/es/Embed/UuDisclaimerEmbed.js +51 -85
  82. package/es/Embed/UuDisclaimerEmbed.js.map +1 -0
  83. package/es/ErrorMessage/ErrorMessage.js +51 -92
  84. package/es/ErrorMessage/ErrorMessage.js.map +1 -0
  85. package/es/ErrorMessage/index.js +7 -9
  86. package/es/ErrorMessage/index.js.map +1 -0
  87. package/es/FactBox/FactBox.js +114 -170
  88. package/es/FactBox/FactBox.js.map +1 -0
  89. package/es/FactBox/index.js +7 -9
  90. package/es/FactBox/index.js.map +1 -0
  91. package/es/FileList/File.js +70 -95
  92. package/es/FileList/File.js.map +1 -0
  93. package/es/FileList/FileList.js +31 -46
  94. package/es/FileList/FileList.js.map +1 -0
  95. package/es/FileList/PdfFile.js +27 -49
  96. package/es/FileList/PdfFile.js.map +1 -0
  97. package/es/Gloss/Gloss.js +133 -166
  98. package/es/Gloss/Gloss.js.map +1 -0
  99. package/es/Gloss/GlossExample.js +42 -60
  100. package/es/Gloss/GlossExample.js.map +1 -0
  101. package/es/Grid/Grid.js +63 -91
  102. package/es/Grid/Grid.js.map +1 -0
  103. package/es/Grid/GridParallaxItem.js +19 -30
  104. package/es/Grid/GridParallaxItem.js.map +1 -0
  105. package/es/KeyFigure/KeyFigure.js +44 -61
  106. package/es/KeyFigure/KeyFigure.js.map +1 -0
  107. package/es/LicenseByline/EmbedByline.js +126 -206
  108. package/es/LicenseByline/EmbedByline.js.map +1 -0
  109. package/es/LicenseByline/LicenseLink.js +28 -53
  110. package/es/LicenseByline/LicenseLink.js.map +1 -0
  111. package/es/LinkBlock/LinkBlock.js +70 -99
  112. package/es/LinkBlock/LinkBlock.js.map +1 -0
  113. package/es/LinkBlock/LinkBlockSection.js +20 -32
  114. package/es/LinkBlock/LinkBlockSection.js.map +1 -0
  115. package/es/Pitch/Pitch.js +59 -80
  116. package/es/Pitch/Pitch.js.map +1 -0
  117. package/es/RelatedArticleList/RelatedArticleList.js +91 -129
  118. package/es/RelatedArticleList/RelatedArticleList.js.map +1 -0
  119. package/es/RelatedArticleList/index.js +7 -10
  120. package/es/RelatedArticleList/index.js.map +1 -0
  121. package/es/ResourceBox/ResourceBox.js +71 -96
  122. package/es/ResourceBox/ResourceBox.js.map +1 -0
  123. package/es/TagSelector/TagSelector.js +93 -136
  124. package/es/TagSelector/TagSelector.js.map +1 -0
  125. package/es/ZendeskButton/ZendeskButton.js +38 -52
  126. package/es/ZendeskButton/ZendeskButton.js.map +1 -0
  127. package/es/_virtual/rolldown_runtime.js +11 -0
  128. package/es/i18n/formatNestedMessages.js +16 -24
  129. package/es/i18n/formatNestedMessages.js.map +1 -0
  130. package/es/i18n/i18n.js +25 -31
  131. package/es/i18n/i18n.js.map +1 -0
  132. package/es/i18n/useComponentTranslations.js +147 -203
  133. package/es/i18n/useComponentTranslations.js.map +1 -0
  134. package/es/index.js +64 -44
  135. package/es/locale/messages-en.js +435 -459
  136. package/es/locale/messages-en.js.map +1 -0
  137. package/es/locale/messages-nb.js +435 -459
  138. package/es/locale/messages-nb.js.map +1 -0
  139. package/es/locale/messages-nn.js +435 -459
  140. package/es/locale/messages-nn.js.map +1 -0
  141. package/es/locale/messages-se.js +435 -459
  142. package/es/locale/messages-se.js.map +1 -0
  143. package/es/model/ContentType.js +69 -65
  144. package/es/model/ContentType.js.map +1 -0
  145. package/es/model/SubjectCategories.js +23 -10
  146. package/es/model/SubjectCategories.js.map +1 -0
  147. package/es/model/SubjectTypes.js +21 -9
  148. package/es/model/SubjectTypes.js.map +1 -0
  149. package/es/model/WordClass.js +51 -43
  150. package/es/model/WordClass.js.map +1 -0
  151. package/es/model/index.js +16 -18
  152. package/es/model/index.js.map +1 -0
  153. package/es/utils/licenseAttributes.js +15 -17
  154. package/es/utils/licenseAttributes.js.map +1 -0
  155. package/es/utils/relativeUrl.js +21 -32
  156. package/es/utils/relativeUrl.js.map +1 -0
  157. package/lib/Article/Article.js +130 -203
  158. package/lib/Article/Article.js.map +1 -0
  159. package/lib/Article/ArticleByline.js +125 -179
  160. package/lib/Article/ArticleByline.js.map +1 -0
  161. package/lib/Article/ArticleFootNotes.js +39 -65
  162. package/lib/Article/ArticleFootNotes.js.map +1 -0
  163. package/lib/AudioPlayer/AudioPlayer.js +155 -221
  164. package/lib/AudioPlayer/AudioPlayer.js.map +1 -0
  165. package/lib/AudioPlayer/Controls.js +249 -332
  166. package/lib/AudioPlayer/Controls.js.map +1 -0
  167. package/lib/AudioPlayer/SpeechControl.js +39 -60
  168. package/lib/AudioPlayer/SpeechControl.js.map +1 -0
  169. package/lib/AudioPlayer/index.js +7 -15
  170. package/lib/AudioPlayer/index.js.map +1 -0
  171. package/lib/Breadcrumb/Breadcrumb.js +43 -65
  172. package/lib/Breadcrumb/Breadcrumb.js.map +1 -0
  173. package/lib/Breadcrumb/BreadcrumbItem.js +34 -65
  174. package/lib/Breadcrumb/BreadcrumbItem.js.map +1 -0
  175. package/lib/Breadcrumb/HomeBreadcrumb.js +43 -82
  176. package/lib/Breadcrumb/HomeBreadcrumb.js.map +1 -0
  177. package/lib/Breadcrumb/index.js +8 -22
  178. package/lib/Breadcrumb/index.js.map +1 -0
  179. package/lib/CampaignBlock/CampaignBlock.js +128 -183
  180. package/lib/CampaignBlock/CampaignBlock.js.map +1 -0
  181. package/lib/CodeBlock/CodeBlock.js +23 -38
  182. package/lib/CodeBlock/CodeBlock.js.map +1 -0
  183. package/lib/CodeBlock/codeLanguageOptions.js +112 -87
  184. package/lib/CodeBlock/codeLanguageOptions.js.map +1 -0
  185. package/lib/Concept/Concept.js +48 -75
  186. package/lib/Concept/Concept.js.map +1 -0
  187. package/lib/ContactBlock/ContactBlock.js +141 -200
  188. package/lib/ContactBlock/ContactBlock.js.map +1 -0
  189. package/lib/ContentTypeBadge/ContentTypeBadge.js +40 -54
  190. package/lib/ContentTypeBadge/ContentTypeBadge.js.map +1 -0
  191. package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.js +23 -35
  192. package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.js.map +1 -0
  193. package/lib/ContentTypeFramedContent/ContentTypeFramedContent.js +23 -35
  194. package/lib/ContentTypeFramedContent/ContentTypeFramedContent.js.map +1 -0
  195. package/lib/ContentTypeHero/ContentTypeHero.js +37 -54
  196. package/lib/ContentTypeHero/ContentTypeHero.js.map +1 -0
  197. package/lib/CopyParagraphButton/CopyParagraphButton.js +61 -87
  198. package/lib/CopyParagraphButton/CopyParagraphButton.js.map +1 -0
  199. package/lib/CopyParagraphButton/index.js +7 -21
  200. package/lib/CopyParagraphButton/index.js.map +1 -0
  201. package/lib/Embed/AudioEmbed.js +51 -82
  202. package/lib/Embed/AudioEmbed.js.map +1 -0
  203. package/lib/Embed/BrightcoveEmbed.js +93 -138
  204. package/lib/Embed/BrightcoveEmbed.js.map +1 -0
  205. package/lib/Embed/CodeEmbed.js +59 -83
  206. package/lib/Embed/CodeEmbed.js.map +1 -0
  207. package/lib/Embed/ConceptEmbed.js +77 -127
  208. package/lib/Embed/ConceptEmbed.js.map +1 -0
  209. package/lib/Embed/ConceptInlineTriggerButton.js +39 -49
  210. package/lib/Embed/ConceptInlineTriggerButton.js.map +1 -0
  211. package/lib/Embed/ContentLinkEmbed.js +30 -55
  212. package/lib/Embed/ContentLinkEmbed.js.map +1 -0
  213. package/lib/Embed/CopyrightEmbed.js +22 -37
  214. package/lib/Embed/CopyrightEmbed.js.map +1 -0
  215. package/lib/Embed/EmbedErrorPlaceholder.js +42 -62
  216. package/lib/Embed/EmbedErrorPlaceholder.js.map +1 -0
  217. package/lib/Embed/EmbedWrapper.js +24 -54
  218. package/lib/Embed/EmbedWrapper.js.map +1 -0
  219. package/lib/Embed/ExternalEmbed.js +53 -79
  220. package/lib/Embed/ExternalEmbed.js.map +1 -0
  221. package/lib/Embed/FootnoteEmbed.js +26 -48
  222. package/lib/Embed/FootnoteEmbed.js.map +1 -0
  223. package/lib/Embed/GlossEmbed.js +51 -86
  224. package/lib/Embed/GlossEmbed.js.map +1 -0
  225. package/lib/Embed/H5pEmbed.js +37 -66
  226. package/lib/Embed/H5pEmbed.js.map +1 -0
  227. package/lib/Embed/IframeEmbed.js +68 -98
  228. package/lib/Embed/IframeEmbed.js.map +1 -0
  229. package/lib/Embed/ImageEmbed.js +173 -238
  230. package/lib/Embed/ImageEmbed.js.map +1 -0
  231. package/lib/Embed/InlineTriggerButton.js +23 -40
  232. package/lib/Embed/InlineTriggerButton.js.map +1 -0
  233. package/lib/Embed/RelatedContentEmbed.js +37 -59
  234. package/lib/Embed/RelatedContentEmbed.js.map +1 -0
  235. package/lib/Embed/UnknownEmbed.js +19 -35
  236. package/lib/Embed/UnknownEmbed.js.map +1 -0
  237. package/lib/Embed/UuDisclaimerEmbed.js +53 -92
  238. package/lib/Embed/UuDisclaimerEmbed.js.map +1 -0
  239. package/lib/ErrorMessage/ErrorMessage.js +53 -99
  240. package/lib/ErrorMessage/ErrorMessage.js.map +1 -0
  241. package/lib/ErrorMessage/index.js +7 -15
  242. package/lib/ErrorMessage/index.js.map +1 -0
  243. package/lib/FactBox/FactBox.js +118 -180
  244. package/lib/FactBox/FactBox.js.map +1 -0
  245. package/lib/FactBox/index.js +7 -15
  246. package/lib/FactBox/index.js.map +1 -0
  247. package/lib/FileList/File.js +75 -105
  248. package/lib/FileList/File.js.map +1 -0
  249. package/lib/FileList/FileList.js +33 -52
  250. package/lib/FileList/FileList.js.map +1 -0
  251. package/lib/FileList/PdfFile.js +27 -55
  252. package/lib/FileList/PdfFile.js.map +1 -0
  253. package/lib/Gloss/Gloss.js +138 -176
  254. package/lib/Gloss/Gloss.js.map +1 -0
  255. package/lib/Gloss/GlossExample.js +45 -68
  256. package/lib/Gloss/GlossExample.js.map +1 -0
  257. package/lib/Grid/Grid.js +64 -98
  258. package/lib/Grid/Grid.js.map +1 -0
  259. package/lib/Grid/GridParallaxItem.js +19 -36
  260. package/lib/Grid/GridParallaxItem.js.map +1 -0
  261. package/lib/KeyFigure/KeyFigure.js +45 -68
  262. package/lib/KeyFigure/KeyFigure.js.map +1 -0
  263. package/lib/LicenseByline/EmbedByline.js +130 -216
  264. package/lib/LicenseByline/EmbedByline.js.map +1 -0
  265. package/lib/LicenseByline/LicenseLink.js +29 -59
  266. package/lib/LicenseByline/LicenseLink.js.map +1 -0
  267. package/lib/LinkBlock/LinkBlock.js +73 -108
  268. package/lib/LinkBlock/LinkBlock.js.map +1 -0
  269. package/lib/LinkBlock/LinkBlockSection.js +22 -39
  270. package/lib/LinkBlock/LinkBlockSection.js.map +1 -0
  271. package/lib/Pitch/Pitch.js +61 -89
  272. package/lib/Pitch/Pitch.js.map +1 -0
  273. package/lib/RelatedArticleList/RelatedArticleList.js +96 -140
  274. package/lib/RelatedArticleList/RelatedArticleList.js.map +1 -0
  275. package/lib/RelatedArticleList/index.js +7 -20
  276. package/lib/RelatedArticleList/index.js.map +1 -0
  277. package/lib/ResourceBox/ResourceBox.js +73 -104
  278. package/lib/ResourceBox/ResourceBox.js.map +1 -0
  279. package/lib/TagSelector/TagSelector.js +103 -145
  280. package/lib/TagSelector/TagSelector.js.map +1 -0
  281. package/lib/ZendeskButton/ZendeskButton.js +39 -58
  282. package/lib/ZendeskButton/ZendeskButton.js.map +1 -0
  283. package/lib/_virtual/rolldown_runtime.js +42 -0
  284. package/lib/i18n/formatNestedMessages.js +16 -30
  285. package/lib/i18n/formatNestedMessages.js.map +1 -0
  286. package/lib/i18n/i18n.js +28 -38
  287. package/lib/i18n/i18n.js.map +1 -0
  288. package/lib/i18n/useComponentTranslations.js +154 -215
  289. package/lib/i18n/useComponentTranslations.js.map +1 -0
  290. package/lib/index.js +156 -598
  291. package/lib/locale/messages-en.js +436 -466
  292. package/lib/locale/messages-en.js.map +1 -0
  293. package/lib/locale/messages-nb.js +436 -466
  294. package/lib/locale/messages-nb.js.map +1 -0
  295. package/lib/locale/messages-nn.js +436 -466
  296. package/lib/locale/messages-nn.js.map +1 -0
  297. package/lib/locale/messages-se.js +436 -466
  298. package/lib/locale/messages-se.js.map +1 -0
  299. package/lib/model/ContentType.js +90 -70
  300. package/lib/model/ContentType.js.map +1 -0
  301. package/lib/model/SubjectCategories.js +26 -14
  302. package/lib/model/SubjectCategories.js.map +1 -0
  303. package/lib/model/SubjectTypes.js +24 -13
  304. package/lib/model/SubjectTypes.js.map +1 -0
  305. package/lib/model/WordClass.js +55 -48
  306. package/lib/model/WordClass.js.map +1 -0
  307. package/lib/model/index.js +16 -25
  308. package/lib/model/index.js.map +1 -0
  309. package/lib/utils/licenseAttributes.js +14 -22
  310. package/lib/utils/licenseAttributes.js.map +1 -0
  311. package/lib/utils/relativeUrl.js +20 -38
  312. package/lib/utils/relativeUrl.js.map +1 -0
  313. package/package.json +12 -11
  314. package/es/Article/index.js +0 -11
  315. package/es/CampaignBlock/index.js +0 -9
  316. package/es/CodeBlock/index.js +0 -10
  317. package/es/ContactBlock/index.js +0 -9
  318. package/es/ContentTypeHero/index.js +0 -9
  319. package/es/Embed/index.js +0 -25
  320. package/es/Embed/types.js +0 -1
  321. package/es/FileList/index.js +0 -11
  322. package/es/Gloss/index.js +0 -10
  323. package/es/Grid/index.js +0 -10
  324. package/es/KeyFigure/index.js +0 -9
  325. package/es/LicenseByline/index.js +0 -10
  326. package/es/LinkBlock/index.js +0 -10
  327. package/es/Pitch/index.js +0 -9
  328. package/es/ResourceBox/index.js +0 -10
  329. package/es/i18n/index.js +0 -11
  330. package/es/types.js +0 -1
  331. package/lib/Article/index.js +0 -68
  332. package/lib/CampaignBlock/index.js +0 -13
  333. package/lib/CodeBlock/index.js +0 -20
  334. package/lib/ContactBlock/index.js +0 -18
  335. package/lib/ContentTypeHero/index.js +0 -12
  336. package/lib/Embed/index.js +0 -150
  337. package/lib/Embed/types.js +0 -5
  338. package/lib/FileList/index.js +0 -44
  339. package/lib/Gloss/index.js +0 -20
  340. package/lib/Grid/index.js +0 -19
  341. package/lib/KeyFigure/index.js +0 -13
  342. package/lib/LicenseByline/index.js +0 -19
  343. package/lib/LinkBlock/index.js +0 -20
  344. package/lib/Pitch/index.js +0 -12
  345. package/lib/ResourceBox/index.js +0 -13
  346. package/lib/i18n/index.js +0 -68
  347. package/lib/types.js +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "56.0.123-alpha.0",
3
+ "version": "56.0.124-alpha.0",
4
4
  "description": "UI component library for NDLA",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -8,7 +8,8 @@
8
8
  "types": "lib/index.d.ts",
9
9
  "sideEffects": false,
10
10
  "scripts": {
11
- "build": "node ../../scripts/build.js package",
11
+ "build": "tsdown",
12
+ "dev": "tsdown --watch ./src",
12
13
  "build:types": "tsc -p tsconfig.build.json",
13
14
  "prepublish": "concurrently 'yarn build:types' 'yarn build:panda'",
14
15
  "build:panda": "mkdir -p dist && concurrently 'panda cssgen --minimal --outfile dist/styles.css' 'panda ship --outfile dist/panda.buildinfo.json'"
@@ -33,13 +34,13 @@
33
34
  ],
34
35
  "dependencies": {
35
36
  "@ark-ui/react": "^5.9.0",
36
- "@ndla/core": "^6.0.0-alpha.0",
37
- "@ndla/icons": "^8.0.58-alpha.0",
38
- "@ndla/licenses": "^9.0.1",
39
- "@ndla/primitives": "^1.0.89-alpha.0",
40
- "@ndla/safelink": "^7.0.91-alpha.0",
41
- "@ndla/styled-system": "^0.0.34",
42
- "@ndla/util": "^5.0.8-alpha.0",
37
+ "@ndla/core": "^6.0.1-alpha.0",
38
+ "@ndla/icons": "^8.0.59-alpha.0",
39
+ "@ndla/licenses": "^9.0.2",
40
+ "@ndla/primitives": "^1.0.90-alpha.0",
41
+ "@ndla/safelink": "^7.0.92-alpha.0",
42
+ "@ndla/styled-system": "^0.0.35",
43
+ "@ndla/util": "^5.0.9-alpha.0",
43
44
  "html-react-parser": "^5.1.19"
44
45
  },
45
46
  "peerDependencies": {
@@ -50,7 +51,7 @@
50
51
  "react-router-dom": ">= 6.0.0"
51
52
  },
52
53
  "devDependencies": {
53
- "@ndla/preset-panda": "^0.0.54",
54
+ "@ndla/preset-panda": "^0.0.55",
54
55
  "@ndla/types-backend": "^1.0.40",
55
56
  "@ndla/types-embed": "^5.0.14-alpha.0",
56
57
  "@pandacss/dev": "^0.53.6"
@@ -58,5 +59,5 @@
58
59
  "publishConfig": {
59
60
  "access": "public"
60
61
  },
61
- "gitHead": "dc0f32d958e7f1df5a4330a412ad3ce03452d300"
62
+ "gitHead": "70b2b4e3d374545b5245a63ea7644c3b9356c74f"
62
63
  }
@@ -1,11 +0,0 @@
1
- /**
2
- * Copyright (c) 2017-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { Article, ArticleWrapper, ArticleHeader, ArticleFooter, ArticleTitle, ArticleHGroup, ArticleContent } from "./Article";
10
- export { ArticleByline, ArticleBylineAccordionItem } from "./ArticleByline";
11
- export { ArticleFootNotes } from "./ArticleFootNotes";
@@ -1,9 +0,0 @@
1
- /**
2
- * Copyright (c) 2023-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { default as CampaignBlock } from "./CampaignBlock";
@@ -1,10 +0,0 @@
1
- /**
2
- * Copyright (c) 2024-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { default as CodeBlock } from "./CodeBlock";
10
- export { codeLanguageOptions } from "./codeLanguageOptions";
@@ -1,9 +0,0 @@
1
- /**
2
- * Copyright (c) 2024-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { ContactBlock, contactBlockBackgrounds } from "./ContactBlock";
@@ -1,9 +0,0 @@
1
- /**
2
- * Copyright (c) 2024-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { ContentTypeHero } from "./ContentTypeHero";
package/es/Embed/index.js DELETED
@@ -1,25 +0,0 @@
1
- /**
2
- * Copyright (c) 2023-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { default as ImageEmbed, getCrop, getFocalPoint } from "./ImageEmbed";
10
- export { InlineTriggerButton } from "./InlineTriggerButton";
11
- export { default as AudioEmbed } from "./AudioEmbed";
12
- export { default as H5pEmbed } from "./H5pEmbed";
13
- export { default as ExternalEmbed } from "./ExternalEmbed";
14
- export { default as IframeEmbed } from "./IframeEmbed";
15
- export { default as FootnoteEmbed } from "./FootnoteEmbed";
16
- export { default as BrightcoveEmbed } from "./BrightcoveEmbed";
17
- export { default as ContentLinkEmbed } from "./ContentLinkEmbed";
18
- export { default as RelatedContentEmbed } from "./RelatedContentEmbed";
19
- export { ConceptEmbed, InlineConcept, BlockConcept } from "./ConceptEmbed";
20
- export { default as UnknownEmbed } from "./UnknownEmbed";
21
- export { default as UuDisclaimerEmbed } from "./UuDisclaimerEmbed";
22
- export { default as CopyrightEmbed } from "./CopyrightEmbed";
23
- export { default as CodeEmbed } from "./CodeEmbed";
24
- export { EmbedWrapper } from "./EmbedWrapper";
25
- export { ConceptInlineTriggerButton } from "./ConceptInlineTriggerButton";
package/es/Embed/types.js DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * Copyright (c) 2018-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { FileListEmbed, FileListItem, FileListWrapper } from "./FileList";
10
- export { File, FileListElement } from "./File";
11
- export { PdfFile } from "./PdfFile";
package/es/Gloss/index.js DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * Copyright (c) 2023-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { default as Gloss } from "./Gloss";
10
- export { default as GlossExample } from "./GlossExample";
package/es/Grid/index.js DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * Copyright (c) 2023-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { Grid } from "./Grid";
10
- export { GridParallaxItem } from "./GridParallaxItem";
@@ -1,9 +0,0 @@
1
- /**
2
- * Copyright (c) 2023-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { default as KeyFigure } from "./KeyFigure";
@@ -1,10 +0,0 @@
1
- /**
2
- * Copyright (c) 2023-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { EmbedByline } from "./EmbedByline";
10
- export { LicenseLink } from "./LicenseLink";
@@ -1,10 +0,0 @@
1
- /**
2
- * Copyright (c) 2023-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { default as LinkBlock } from "./LinkBlock";
10
- export { default as LinkBlockSection } from "./LinkBlockSection";
package/es/Pitch/index.js DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * Copyright (c) 2023-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { Pitch } from "./Pitch";
@@ -1,10 +0,0 @@
1
- /**
2
- * Copyright (c) 2022-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- import ResourceBox from "./ResourceBox";
10
- export { ResourceBox };
package/es/i18n/index.js DELETED
@@ -1,11 +0,0 @@
1
- /**
2
- * Copyright (c) 2021-present, NDLA.
3
- *
4
- * This source code is licensed under the GPLv3 license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- */
8
-
9
- export { i18nInstance } from "./i18n";
10
- export { formatNestedMessages } from "./formatNestedMessages";
11
- export { useComboboxTranslations, useTagSelectorTranslations, useTagsInputTranslations, usePaginationTranslations, useAudioSearchTranslations, useImageSearchTranslations, useVideoSearchTranslations, useDatePickerTranslations } from "./useComponentTranslations";
package/es/types.js DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,68 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Article", {
7
- enumerable: true,
8
- get: function () {
9
- return _Article.Article;
10
- }
11
- });
12
- Object.defineProperty(exports, "ArticleByline", {
13
- enumerable: true,
14
- get: function () {
15
- return _ArticleByline.ArticleByline;
16
- }
17
- });
18
- Object.defineProperty(exports, "ArticleBylineAccordionItem", {
19
- enumerable: true,
20
- get: function () {
21
- return _ArticleByline.ArticleBylineAccordionItem;
22
- }
23
- });
24
- Object.defineProperty(exports, "ArticleContent", {
25
- enumerable: true,
26
- get: function () {
27
- return _Article.ArticleContent;
28
- }
29
- });
30
- Object.defineProperty(exports, "ArticleFootNotes", {
31
- enumerable: true,
32
- get: function () {
33
- return _ArticleFootNotes.ArticleFootNotes;
34
- }
35
- });
36
- Object.defineProperty(exports, "ArticleFooter", {
37
- enumerable: true,
38
- get: function () {
39
- return _Article.ArticleFooter;
40
- }
41
- });
42
- Object.defineProperty(exports, "ArticleHGroup", {
43
- enumerable: true,
44
- get: function () {
45
- return _Article.ArticleHGroup;
46
- }
47
- });
48
- Object.defineProperty(exports, "ArticleHeader", {
49
- enumerable: true,
50
- get: function () {
51
- return _Article.ArticleHeader;
52
- }
53
- });
54
- Object.defineProperty(exports, "ArticleTitle", {
55
- enumerable: true,
56
- get: function () {
57
- return _Article.ArticleTitle;
58
- }
59
- });
60
- Object.defineProperty(exports, "ArticleWrapper", {
61
- enumerable: true,
62
- get: function () {
63
- return _Article.ArticleWrapper;
64
- }
65
- });
66
- var _Article = require("./Article");
67
- var _ArticleByline = require("./ArticleByline");
68
- var _ArticleFootNotes = require("./ArticleFootNotes");
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "CampaignBlock", {
7
- enumerable: true,
8
- get: function () {
9
- return _CampaignBlock.default;
10
- }
11
- });
12
- var _CampaignBlock = _interopRequireDefault(require("./CampaignBlock"));
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "CodeBlock", {
7
- enumerable: true,
8
- get: function () {
9
- return _CodeBlock.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "codeLanguageOptions", {
13
- enumerable: true,
14
- get: function () {
15
- return _codeLanguageOptions.codeLanguageOptions;
16
- }
17
- });
18
- var _CodeBlock = _interopRequireDefault(require("./CodeBlock"));
19
- var _codeLanguageOptions = require("./codeLanguageOptions");
20
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "ContactBlock", {
7
- enumerable: true,
8
- get: function () {
9
- return _ContactBlock.ContactBlock;
10
- }
11
- });
12
- Object.defineProperty(exports, "contactBlockBackgrounds", {
13
- enumerable: true,
14
- get: function () {
15
- return _ContactBlock.contactBlockBackgrounds;
16
- }
17
- });
18
- var _ContactBlock = require("./ContactBlock");
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "ContentTypeHero", {
7
- enumerable: true,
8
- get: function () {
9
- return _ContentTypeHero.ContentTypeHero;
10
- }
11
- });
12
- var _ContentTypeHero = require("./ContentTypeHero");
@@ -1,150 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "AudioEmbed", {
7
- enumerable: true,
8
- get: function () {
9
- return _AudioEmbed.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "BlockConcept", {
13
- enumerable: true,
14
- get: function () {
15
- return _ConceptEmbed.BlockConcept;
16
- }
17
- });
18
- Object.defineProperty(exports, "BrightcoveEmbed", {
19
- enumerable: true,
20
- get: function () {
21
- return _BrightcoveEmbed.default;
22
- }
23
- });
24
- Object.defineProperty(exports, "CodeEmbed", {
25
- enumerable: true,
26
- get: function () {
27
- return _CodeEmbed.default;
28
- }
29
- });
30
- Object.defineProperty(exports, "ConceptEmbed", {
31
- enumerable: true,
32
- get: function () {
33
- return _ConceptEmbed.ConceptEmbed;
34
- }
35
- });
36
- Object.defineProperty(exports, "ConceptInlineTriggerButton", {
37
- enumerable: true,
38
- get: function () {
39
- return _ConceptInlineTriggerButton.ConceptInlineTriggerButton;
40
- }
41
- });
42
- Object.defineProperty(exports, "ContentLinkEmbed", {
43
- enumerable: true,
44
- get: function () {
45
- return _ContentLinkEmbed.default;
46
- }
47
- });
48
- Object.defineProperty(exports, "CopyrightEmbed", {
49
- enumerable: true,
50
- get: function () {
51
- return _CopyrightEmbed.default;
52
- }
53
- });
54
- Object.defineProperty(exports, "EmbedWrapper", {
55
- enumerable: true,
56
- get: function () {
57
- return _EmbedWrapper.EmbedWrapper;
58
- }
59
- });
60
- Object.defineProperty(exports, "ExternalEmbed", {
61
- enumerable: true,
62
- get: function () {
63
- return _ExternalEmbed.default;
64
- }
65
- });
66
- Object.defineProperty(exports, "FootnoteEmbed", {
67
- enumerable: true,
68
- get: function () {
69
- return _FootnoteEmbed.default;
70
- }
71
- });
72
- Object.defineProperty(exports, "H5pEmbed", {
73
- enumerable: true,
74
- get: function () {
75
- return _H5pEmbed.default;
76
- }
77
- });
78
- Object.defineProperty(exports, "IframeEmbed", {
79
- enumerable: true,
80
- get: function () {
81
- return _IframeEmbed.default;
82
- }
83
- });
84
- Object.defineProperty(exports, "ImageEmbed", {
85
- enumerable: true,
86
- get: function () {
87
- return _ImageEmbed.default;
88
- }
89
- });
90
- Object.defineProperty(exports, "InlineConcept", {
91
- enumerable: true,
92
- get: function () {
93
- return _ConceptEmbed.InlineConcept;
94
- }
95
- });
96
- Object.defineProperty(exports, "InlineTriggerButton", {
97
- enumerable: true,
98
- get: function () {
99
- return _InlineTriggerButton.InlineTriggerButton;
100
- }
101
- });
102
- Object.defineProperty(exports, "RelatedContentEmbed", {
103
- enumerable: true,
104
- get: function () {
105
- return _RelatedContentEmbed.default;
106
- }
107
- });
108
- Object.defineProperty(exports, "UnknownEmbed", {
109
- enumerable: true,
110
- get: function () {
111
- return _UnknownEmbed.default;
112
- }
113
- });
114
- Object.defineProperty(exports, "UuDisclaimerEmbed", {
115
- enumerable: true,
116
- get: function () {
117
- return _UuDisclaimerEmbed.default;
118
- }
119
- });
120
- Object.defineProperty(exports, "getCrop", {
121
- enumerable: true,
122
- get: function () {
123
- return _ImageEmbed.getCrop;
124
- }
125
- });
126
- Object.defineProperty(exports, "getFocalPoint", {
127
- enumerable: true,
128
- get: function () {
129
- return _ImageEmbed.getFocalPoint;
130
- }
131
- });
132
- var _ImageEmbed = _interopRequireWildcard(require("./ImageEmbed"));
133
- var _InlineTriggerButton = require("./InlineTriggerButton");
134
- var _AudioEmbed = _interopRequireDefault(require("./AudioEmbed"));
135
- var _H5pEmbed = _interopRequireDefault(require("./H5pEmbed"));
136
- var _ExternalEmbed = _interopRequireDefault(require("./ExternalEmbed"));
137
- var _IframeEmbed = _interopRequireDefault(require("./IframeEmbed"));
138
- var _FootnoteEmbed = _interopRequireDefault(require("./FootnoteEmbed"));
139
- var _BrightcoveEmbed = _interopRequireDefault(require("./BrightcoveEmbed"));
140
- var _ContentLinkEmbed = _interopRequireDefault(require("./ContentLinkEmbed"));
141
- var _RelatedContentEmbed = _interopRequireDefault(require("./RelatedContentEmbed"));
142
- var _ConceptEmbed = require("./ConceptEmbed");
143
- var _UnknownEmbed = _interopRequireDefault(require("./UnknownEmbed"));
144
- var _UuDisclaimerEmbed = _interopRequireDefault(require("./UuDisclaimerEmbed"));
145
- var _CopyrightEmbed = _interopRequireDefault(require("./CopyrightEmbed"));
146
- var _CodeEmbed = _interopRequireDefault(require("./CodeEmbed"));
147
- var _EmbedWrapper = require("./EmbedWrapper");
148
- var _ConceptInlineTriggerButton = require("./ConceptInlineTriggerButton");
149
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
150
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,44 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "File", {
7
- enumerable: true,
8
- get: function () {
9
- return _File.File;
10
- }
11
- });
12
- Object.defineProperty(exports, "FileListElement", {
13
- enumerable: true,
14
- get: function () {
15
- return _File.FileListElement;
16
- }
17
- });
18
- Object.defineProperty(exports, "FileListEmbed", {
19
- enumerable: true,
20
- get: function () {
21
- return _FileList.FileListEmbed;
22
- }
23
- });
24
- Object.defineProperty(exports, "FileListItem", {
25
- enumerable: true,
26
- get: function () {
27
- return _FileList.FileListItem;
28
- }
29
- });
30
- Object.defineProperty(exports, "FileListWrapper", {
31
- enumerable: true,
32
- get: function () {
33
- return _FileList.FileListWrapper;
34
- }
35
- });
36
- Object.defineProperty(exports, "PdfFile", {
37
- enumerable: true,
38
- get: function () {
39
- return _PdfFile.PdfFile;
40
- }
41
- });
42
- var _FileList = require("./FileList");
43
- var _File = require("./File");
44
- var _PdfFile = require("./PdfFile");
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Gloss", {
7
- enumerable: true,
8
- get: function () {
9
- return _Gloss.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "GlossExample", {
13
- enumerable: true,
14
- get: function () {
15
- return _GlossExample.default;
16
- }
17
- });
18
- var _Gloss = _interopRequireDefault(require("./Gloss"));
19
- var _GlossExample = _interopRequireDefault(require("./GlossExample"));
20
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
package/lib/Grid/index.js DELETED
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Grid", {
7
- enumerable: true,
8
- get: function () {
9
- return _Grid.Grid;
10
- }
11
- });
12
- Object.defineProperty(exports, "GridParallaxItem", {
13
- enumerable: true,
14
- get: function () {
15
- return _GridParallaxItem.GridParallaxItem;
16
- }
17
- });
18
- var _Grid = require("./Grid");
19
- var _GridParallaxItem = require("./GridParallaxItem");
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "KeyFigure", {
7
- enumerable: true,
8
- get: function () {
9
- return _KeyFigure.default;
10
- }
11
- });
12
- var _KeyFigure = _interopRequireDefault(require("./KeyFigure"));
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "EmbedByline", {
7
- enumerable: true,
8
- get: function () {
9
- return _EmbedByline.EmbedByline;
10
- }
11
- });
12
- Object.defineProperty(exports, "LicenseLink", {
13
- enumerable: true,
14
- get: function () {
15
- return _LicenseLink.LicenseLink;
16
- }
17
- });
18
- var _EmbedByline = require("./EmbedByline");
19
- var _LicenseLink = require("./LicenseLink");