@ndla/ui 50.10.2 → 50.11.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.
- package/es/AudioPlayer/SpeechControl.js +4 -3
- package/es/ContentTypeBadge/ContentTypeBadge.js +21 -21
- package/es/ContentTypeBadge/index.js +1 -1
- package/es/Embed/ConceptEmbed.js +7 -7
- package/es/Embed/RelatedContentEmbed.js +1 -1
- package/es/Footer/Footer.js +35 -71
- package/es/Footer/FooterLinks.js +65 -52
- package/es/Footer/FooterText.js +2 -4
- package/es/Gloss/Gloss.js +10 -9
- package/es/Hero/Hero.js +7 -7
- package/es/Hero/index.js +1 -1
- package/es/LanguageSelector/LanguageSelector.js +6 -6
- package/es/RelatedArticleList/RelatedArticleList.js +8 -8
- package/es/ResourceGroup/ResourceGroup.js +6 -5
- package/es/ResourceGroup/ResourceItem.js +42 -37
- package/es/ResourceGroup/ResourceList.js +24 -26
- package/es/SearchTypeResult/SearchTypeHeader.js +10 -9
- package/es/SearchTypeResult/SearchTypeResult.js +2 -2
- package/es/all.css +1 -1
- package/es/index.js +2 -2
- package/es/locale/messages-en.js +7 -4
- package/es/locale/messages-nb.js +7 -4
- package/es/locale/messages-nn.js +7 -4
- package/es/locale/messages-se.js +6 -3
- package/es/locale/messages-sma.js +7 -4
- package/es/model/ContentType.js +8 -6
- package/es/utils/resourceTypeColor.js +2 -2
- package/lib/AudioPlayer/SpeechControl.d.ts +2 -1
- package/lib/AudioPlayer/SpeechControl.js +4 -3
- package/lib/ContentTypeBadge/ContentTypeBadge.d.ts +1 -1
- package/lib/ContentTypeBadge/ContentTypeBadge.js +23 -23
- package/lib/ContentTypeBadge/index.d.ts +1 -1
- package/lib/ContentTypeBadge/index.js +2 -2
- package/lib/Embed/ConceptEmbed.js +7 -7
- package/lib/Embed/RelatedContentEmbed.js +1 -1
- package/lib/Footer/Footer.d.ts +1 -2
- package/lib/Footer/Footer.js +32 -68
- package/lib/Footer/FooterLinks.d.ts +5 -1
- package/lib/Footer/FooterLinks.js +65 -50
- package/lib/Footer/FooterText.js +2 -4
- package/lib/Gloss/Gloss.js +10 -9
- package/lib/Hero/Hero.d.ts +2 -2
- package/lib/Hero/Hero.js +8 -8
- package/lib/Hero/index.d.ts +1 -1
- package/lib/Hero/index.js +2 -2
- package/lib/LanguageSelector/LanguageSelector.js +5 -5
- package/lib/RelatedArticleList/RelatedArticleList.js +8 -8
- package/lib/ResourceGroup/ResourceGroup.js +6 -5
- package/lib/ResourceGroup/ResourceItem.js +42 -37
- package/lib/ResourceGroup/ResourceList.js +24 -26
- package/lib/SearchTypeResult/SearchTypeHeader.js +10 -9
- package/lib/SearchTypeResult/SearchTypeResult.d.ts +1 -1
- package/lib/SearchTypeResult/SearchTypeResult.js +2 -2
- package/lib/all.css +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +12 -12
- package/lib/locale/messages-en.d.ts +4 -1
- package/lib/locale/messages-en.js +7 -4
- package/lib/locale/messages-nb.d.ts +4 -1
- package/lib/locale/messages-nb.js +7 -4
- package/lib/locale/messages-nn.d.ts +4 -1
- package/lib/locale/messages-nn.js +7 -4
- package/lib/locale/messages-se.d.ts +4 -1
- package/lib/locale/messages-se.js +6 -3
- package/lib/locale/messages-sma.d.ts +4 -1
- package/lib/locale/messages-sma.js +7 -4
- package/lib/model/ContentType.d.ts +5 -3
- package/lib/model/ContentType.js +9 -7
- package/lib/model/index.d.ts +2 -1
- package/lib/utils/resourceTypeColor.js +2 -2
- package/package.json +17 -17
- package/src/Article/component.article.scss +2 -2
- package/src/AudioPlayer/SpeechControl.tsx +4 -3
- package/src/ContentTypeBadge/ContentTypeBadge.stories.tsx +2 -2
- package/src/ContentTypeBadge/ContentTypeBadge.tsx +15 -19
- package/src/ContentTypeBadge/index.ts +1 -1
- package/src/Embed/ConceptEmbed.tsx +3 -3
- package/src/Embed/RelatedContentEmbed.tsx +1 -1
- package/src/Footer/Footer.stories.tsx +4 -13
- package/src/Footer/Footer.tsx +46 -117
- package/src/Footer/FooterLinks.tsx +73 -65
- package/src/Footer/FooterText.tsx +5 -9
- package/src/Gloss/Gloss.tsx +7 -6
- package/src/Hero/Hero.tsx +8 -10
- package/src/Hero/index.ts +1 -1
- package/src/LanguageSelector/LanguageSelector.tsx +2 -1
- package/src/RelatedArticleList/RelatedArticleList.tsx +1 -1
- package/src/ResourceGroup/ResourceGroup.tsx +2 -2
- package/src/ResourceGroup/ResourceItem.stories.tsx +2 -2
- package/src/ResourceGroup/ResourceItem.tsx +62 -36
- package/src/ResourceGroup/ResourceList.tsx +28 -30
- package/src/SearchTypeResult/SearchTypeHeader.tsx +8 -1
- package/src/SearchTypeResult/SearchTypeResult.tsx +1 -1
- package/src/index.ts +2 -2
- package/src/locale/messages-en.ts +7 -4
- package/src/locale/messages-nb.ts +7 -4
- package/src/locale/messages-nn.ts +7 -4
- package/src/locale/messages-se.ts +6 -3
- package/src/locale/messages-sma.ts +7 -4
- package/src/model/ContentType.ts +8 -5
- package/src/utils/resourceTypeColor.tsx +2 -2
- package/es/Footer/FooterPrivacy.js +0 -60
- package/lib/Footer/FooterPrivacy.d.ts +0 -15
- package/lib/Footer/FooterPrivacy.js +0 -64
- package/src/Footer/FooterPrivacy.tsx +0 -70
package/es/index.js
CHANGED
|
@@ -26,7 +26,7 @@ export { default as FileList, File, PdfFile, Format } from "./FileList";
|
|
|
26
26
|
export { default as Logo } from "./Logo";
|
|
27
27
|
export { default as FactBox } from "./FactBox";
|
|
28
28
|
export { default as Image, ImageLink, makeSrcQueryString } from "./Image";
|
|
29
|
-
export { SubjectMaterialHero, TasksAndActivitiesHero, AssessmentResourcesHero, SubjectHero,
|
|
29
|
+
export { SubjectMaterialHero, TasksAndActivitiesHero, AssessmentResourcesHero, SubjectHero, SourceMaterialHero, Hero, NdlaFilmHero, ConceptHero, HeroContent } from "./Hero";
|
|
30
30
|
export { FilterButtons, ToggleItem } from "./Filter";
|
|
31
31
|
export { Footer, EditorName, FooterText } from "./Footer";
|
|
32
32
|
export { Figure, FigureOpenDialogButton } from "./Figure";
|
|
@@ -59,7 +59,7 @@ export { default as ResourceGroup } from "./ResourceGroup";
|
|
|
59
59
|
export { default as LayoutItem, OneColumn, PageContainer, Content } from "./Layout";
|
|
60
60
|
export { FilmSlideshow, MovieGrid, FilmMovieSearch, FilmMovieList, AllMoviesAlphabetically } from "./NDLAFilm";
|
|
61
61
|
export { MediaList, MediaListItem, MediaListItemBody, MediaListItemActions, MediaListItemImage, MediaListItemMeta } from "./MediaList";
|
|
62
|
-
export { default as ContentTypeBadge, SubjectMaterialBadge, TasksAndActivitiesBadge, AssessmentResourcesBadge, LearningPathBadge, SubjectBadge,
|
|
62
|
+
export { default as ContentTypeBadge, SubjectMaterialBadge, TasksAndActivitiesBadge, AssessmentResourcesBadge, LearningPathBadge, SubjectBadge, SourceMaterialBadge, ConceptBadge } from "./ContentTypeBadge";
|
|
63
63
|
export { SubjectHeader, SubjectBanner } from "./Subject";
|
|
64
64
|
export { default as CopyParagraphButton } from "./CopyParagraphButton";
|
|
65
65
|
export { default as ContentPlaceholder } from "./ContentPlaceholder";
|
package/es/locale/messages-en.js
CHANGED
|
@@ -499,13 +499,15 @@ const messages = {
|
|
|
499
499
|
aboutNDLA: "About NDLA",
|
|
500
500
|
socialMedia: "Social media",
|
|
501
501
|
selectLanguage: "Choose language (språk): ",
|
|
502
|
-
info: "This webapplication is developed
|
|
502
|
+
info: "This webapplication is developed as Open Source code.",
|
|
503
503
|
editorInChief: "Editor in chief:",
|
|
504
|
-
linksHeader: "
|
|
504
|
+
linksHeader: "Contact",
|
|
505
505
|
availabilityLink: "Availability statement",
|
|
506
506
|
privacyLink: "Privacy statement",
|
|
507
507
|
cookiesLink: "Statement about cookies",
|
|
508
|
+
aboutWebsite: "About",
|
|
508
509
|
vision: "We create the learning of the future together",
|
|
510
|
+
followUs: "Follow us",
|
|
509
511
|
socialMediaLinks: {
|
|
510
512
|
facebook: "NDLA on Facebook",
|
|
511
513
|
facebookAria: "Visit NDLA on Facebook",
|
|
@@ -536,7 +538,6 @@ const messages = {
|
|
|
536
538
|
"learning-path": "Learning path",
|
|
537
539
|
"subject-material": "Subject material",
|
|
538
540
|
"tasks-and-activities": "Task and activities",
|
|
539
|
-
"external-learning-resources": "External learning resources",
|
|
540
541
|
"source-material": "Source material",
|
|
541
542
|
"assessment-resources": "Assessment resource",
|
|
542
543
|
topic: "Topic",
|
|
@@ -1043,7 +1044,8 @@ const messages = {
|
|
|
1043
1044
|
maxLength: "The maximum length for the text field is reached",
|
|
1044
1045
|
error: "The field is required"
|
|
1045
1046
|
},
|
|
1046
|
-
bottomText: "Are you missing a category? Let our moderator know at
|
|
1047
|
+
bottomText: "Are you missing a category? Let our moderator know at ",
|
|
1048
|
+
moderatorEmail: "moderator@ndla.no",
|
|
1047
1049
|
notification: {
|
|
1048
1050
|
title: "Notifications",
|
|
1049
1051
|
showAll: "View all notifications",
|
|
@@ -1330,6 +1332,7 @@ const messages = {
|
|
|
1330
1332
|
gloss: {
|
|
1331
1333
|
examples: "Examples",
|
|
1332
1334
|
wordClass: "Word class",
|
|
1335
|
+
play: "Play gloss",
|
|
1333
1336
|
transcriptions: {
|
|
1334
1337
|
traditional: "Traditional spelling",
|
|
1335
1338
|
pinyin: "Pinyin"
|
package/es/locale/messages-nb.js
CHANGED
|
@@ -500,12 +500,14 @@ const messages = {
|
|
|
500
500
|
socialMedia: "Sosiale medier",
|
|
501
501
|
selectLanguage: "Velg språk (language): ",
|
|
502
502
|
vision: "Sammen skaper vi framtidas læring",
|
|
503
|
-
linksHeader: "
|
|
504
|
-
info: "Nettstedet er utarbeidet
|
|
503
|
+
linksHeader: "Kontakt",
|
|
504
|
+
info: "Nettstedet er utarbeidet som åpen kildekode.",
|
|
505
505
|
editorInChief: "Ansvarlig redaktør:",
|
|
506
506
|
availabilityLink: "Tilgjengelighetserklæring",
|
|
507
507
|
privacyLink: "Personvernerklæring",
|
|
508
508
|
cookiesLink: "Erklæring for informasjonskapsler",
|
|
509
|
+
aboutWebsite: "Om nettstedet",
|
|
510
|
+
followUs: "Følg oss",
|
|
509
511
|
socialMediaLinks: {
|
|
510
512
|
facebook: "NDLA på Facebook",
|
|
511
513
|
facebookAria: "Besøk NDLA på Facebook",
|
|
@@ -536,7 +538,6 @@ const messages = {
|
|
|
536
538
|
"learning-path": "Læringssti",
|
|
537
539
|
"subject-material": "Fagstoff",
|
|
538
540
|
"tasks-and-activities": "Oppgaver og aktiviteter",
|
|
539
|
-
"external-learning-resources": "Ekstern læringsressurs",
|
|
540
541
|
"source-material": "Kildemateriale",
|
|
541
542
|
"assessment-resources": "Vurderingsressurs",
|
|
542
543
|
topic: "Emne",
|
|
@@ -1043,7 +1044,8 @@ const messages = {
|
|
|
1043
1044
|
maxLength: "Maksimal lengde for tekstfeltet er nådd",
|
|
1044
1045
|
error: "Feltet er påkrevd"
|
|
1045
1046
|
},
|
|
1046
|
-
bottomText: "Savner du en kategori? Gi vår moderator beskjed på
|
|
1047
|
+
bottomText: "Savner du en kategori? Gi vår moderator beskjed på ",
|
|
1048
|
+
moderatorEmail: "moderator@ndla.no",
|
|
1047
1049
|
notification: {
|
|
1048
1050
|
title: "Varslinger",
|
|
1049
1051
|
showAll: "Se alle varslinger",
|
|
@@ -1330,6 +1332,7 @@ const messages = {
|
|
|
1330
1332
|
gloss: {
|
|
1331
1333
|
examples: "Eksempler",
|
|
1332
1334
|
wordClass: "Ordklasse",
|
|
1335
|
+
play: "Spill av glose",
|
|
1333
1336
|
transcriptions: {
|
|
1334
1337
|
traditional: "Tradisjonell skrivemåte",
|
|
1335
1338
|
pinyin: "Pinyin"
|
package/es/locale/messages-nn.js
CHANGED
|
@@ -500,12 +500,14 @@ const messages = {
|
|
|
500
500
|
socialMedia: "Sosiale media",
|
|
501
501
|
selectLanguage: "Vel språk (language): ",
|
|
502
502
|
vision: "Saman skapar vi framtidas læring",
|
|
503
|
-
linksHeader: "
|
|
504
|
-
info: "Nettstaden er utarbeida
|
|
503
|
+
linksHeader: "Kontakt",
|
|
504
|
+
info: "Nettstaden er utarbeida som åpen kjeldekode.",
|
|
505
505
|
editorInChief: "Ansvarleg redaktør:",
|
|
506
506
|
availabilityLink: "Tilgjengelegheitserklæring",
|
|
507
507
|
privacyLink: "Personvernerklæring",
|
|
508
508
|
cookiesLink: "Erklæring for informasjonskapslar",
|
|
509
|
+
aboutWebsite: "Om nettstaden",
|
|
510
|
+
followUs: "Følg oss",
|
|
509
511
|
socialMediaLinks: {
|
|
510
512
|
facebook: "NDLA på Facebook",
|
|
511
513
|
facebookAria: "Besøk NDLA på Facebook",
|
|
@@ -536,7 +538,6 @@ const messages = {
|
|
|
536
538
|
"learning-path": "Læringssti",
|
|
537
539
|
"subject-material": "Fagstoff",
|
|
538
540
|
"tasks-and-activities": "Oppgåver og aktivitetar",
|
|
539
|
-
"external-learning-resources": "Ekstern læringsressurs",
|
|
540
541
|
"source-material": "Kjeldemateriale",
|
|
541
542
|
"assessment-resources": "Vurderingsressurs",
|
|
542
543
|
topic: "Emne",
|
|
@@ -1043,7 +1044,8 @@ const messages = {
|
|
|
1043
1044
|
maxLength: "Maksimal lengd for tekstfeltet er nådd",
|
|
1044
1045
|
error: "Feltet er påkravd"
|
|
1045
1046
|
},
|
|
1046
|
-
bottomText: "Saknar du ein kategori? Gi moderatoren vår beskjed på
|
|
1047
|
+
bottomText: "Saknar du ein kategori? Gi moderatoren vår beskjed på ",
|
|
1048
|
+
moderatorEmail: "moderator@ndla.no",
|
|
1047
1049
|
notification: {
|
|
1048
1050
|
title: "Varslingar",
|
|
1049
1051
|
showAll: "Sjå alle varslingar",
|
|
@@ -1330,6 +1332,7 @@ const messages = {
|
|
|
1330
1332
|
gloss: {
|
|
1331
1333
|
examples: "Eksempler",
|
|
1332
1334
|
wordClass: "Ordklasse",
|
|
1335
|
+
play: "Spill av glose",
|
|
1333
1336
|
transcriptions: {
|
|
1334
1337
|
traditional: "Tradisjonell skrivemåte",
|
|
1335
1338
|
pinyin: "Pinyin"
|
package/es/locale/messages-se.js
CHANGED
|
@@ -500,12 +500,14 @@ const messages = {
|
|
|
500
500
|
socialMedia: "Sosiála mediat",
|
|
501
501
|
selectLanguage: "Vállje giela (language): ",
|
|
502
502
|
vision: "Ovttas hábmet boahtteáiggi oahppama",
|
|
503
|
-
linksHeader: "
|
|
503
|
+
linksHeader: "Oktavuohta",
|
|
504
504
|
info: "Neahttabáiki lea ráhkaduvvon NDLA bokte rabas gáldokodain.",
|
|
505
505
|
editorInChief: "Vásttolaš doaimmaheaddji:",
|
|
506
506
|
availabilityLink: "Beasatlašvuođajulggaštus",
|
|
507
507
|
privacyLink: "Persovdnasuodjalusjulggaštus ja diehtočoahkku (gáhkožat)",
|
|
508
508
|
cookiesLink: "Julggaštus diehtočoahku ektui (gáhkožat)",
|
|
509
|
+
aboutWebsite: "Neahttabáikki birra",
|
|
510
|
+
followUs: "Čuovo min",
|
|
509
511
|
socialMediaLinks: {
|
|
510
512
|
facebook: "NDLA Facebookas",
|
|
511
513
|
facebookAria: "Fina NDLA siiddus Facebookas",
|
|
@@ -536,7 +538,6 @@ const messages = {
|
|
|
536
538
|
"learning-path": "Oahppanbálggis",
|
|
537
539
|
"subject-material": "Fágaávdnasat",
|
|
538
540
|
"tasks-and-activities": "Bihtát ja doaimmat",
|
|
539
|
-
"external-learning-resources": "Olgguldas oahppanresursa",
|
|
540
541
|
"source-material": "Gáldomateriála",
|
|
541
542
|
"assessment-resources": "Árvoštallanresursa",
|
|
542
543
|
topic: "Fáddá",
|
|
@@ -1043,7 +1044,8 @@ const messages = {
|
|
|
1043
1044
|
maxLength: "Maksimal lengde for tekstfeltet er nådd",
|
|
1044
1045
|
error: "Feltet er påkrevd"
|
|
1045
1046
|
},
|
|
1046
|
-
bottomText: "Savner du en kategori? Gi vår moderator beskjed på
|
|
1047
|
+
bottomText: "Savner du en kategori? Gi vår moderator beskjed på ",
|
|
1048
|
+
moderatorEmail: "moderator@ndla.no",
|
|
1047
1049
|
notification: {
|
|
1048
1050
|
title: "Varslinger",
|
|
1049
1051
|
showAll: "Se alle varslinger",
|
|
@@ -1330,6 +1332,7 @@ const messages = {
|
|
|
1330
1332
|
gloss: {
|
|
1331
1333
|
examples: "Ovdamearkkat",
|
|
1332
1334
|
wordClass: "Sátneluohkká",
|
|
1335
|
+
play: "Čuojat glose",
|
|
1333
1336
|
transcriptions: {
|
|
1334
1337
|
traditional: "Árbevirolaš čállinvuohki",
|
|
1335
1338
|
pinyin: "Pinyin"
|
|
@@ -500,12 +500,14 @@ const messages = {
|
|
|
500
500
|
socialMedia: "Sosiale medier",
|
|
501
501
|
selectLanguage: "Veeljh gïelem (language): ",
|
|
502
502
|
vision: "Ektesne båetijen aejkien lïerehtimmiem sjugniedibie",
|
|
503
|
-
linksHeader: "
|
|
504
|
-
info: "
|
|
503
|
+
linksHeader: "Govlehtallh",
|
|
504
|
+
info: "Webbesijjiem dorjeme goh gaahpoeh gaaltijenimmie.",
|
|
505
505
|
editorInChief: "Redaktööre mij dïedtem åtna:",
|
|
506
506
|
availabilityLink: "Tilgjengelighetserklæring",
|
|
507
507
|
privacyLink: "Personvernerklæring og cookies",
|
|
508
508
|
cookiesLink: "Erklæring om informasjonskapslar",
|
|
509
|
+
aboutWebsite: "Webbesijjien bïjre",
|
|
510
|
+
followUs: "Mijjem dåeriedidh",
|
|
509
511
|
socialMediaLinks: {
|
|
510
512
|
facebook: "NDLA Facebook:sne",
|
|
511
513
|
facebookAria: "Vaaksjoeh NDLA:m Facebookesne",
|
|
@@ -536,7 +538,6 @@ const messages = {
|
|
|
536
538
|
"learning-path": "Lïeremebaalka",
|
|
537
539
|
"subject-material": "Faage-aamhtese",
|
|
538
540
|
"tasks-and-activities": "Laavenjassh jïh darjomh",
|
|
539
|
-
"external-learning-resources": "Byjngetje lïeremevierhtie",
|
|
540
541
|
"source-material": "Gaaltijevierhtieh",
|
|
541
542
|
"assessment-resources": "Vuarjasjimmievierhtie",
|
|
542
543
|
topic: "Teema",
|
|
@@ -1043,7 +1044,8 @@ const messages = {
|
|
|
1043
1044
|
maxLength: "Maksimal lengde for tekstfeltet er nådd",
|
|
1044
1045
|
error: "Feltet er påkrevd"
|
|
1045
1046
|
},
|
|
1046
|
-
bottomText: "Savner du en kategori? Gi vår moderator beskjed på
|
|
1047
|
+
bottomText: "Savner du en kategori? Gi vår moderator beskjed på ",
|
|
1048
|
+
moderatorEmail: "moderator@ndla.no",
|
|
1047
1049
|
notification: {
|
|
1048
1050
|
title: "Varslinger",
|
|
1049
1051
|
showAll: "Se alle varslinger",
|
|
@@ -1330,6 +1332,7 @@ const messages = {
|
|
|
1330
1332
|
gloss: {
|
|
1331
1333
|
examples: "Eksempler",
|
|
1332
1334
|
wordClass: "Ordklasse",
|
|
1335
|
+
play: "Spill av glose",
|
|
1333
1336
|
transcriptions: {
|
|
1334
1337
|
traditional: "Tradisjonell skrivemåte",
|
|
1335
1338
|
pinyin: "Pinyin"
|
package/es/model/ContentType.js
CHANGED
|
@@ -10,36 +10,38 @@ export const SUBJECT_MATERIAL = "subject-material";
|
|
|
10
10
|
export const TASKS_AND_ACTIVITIES = "tasks-and-activities";
|
|
11
11
|
export const ASSESSMENT_RESOURCES = "assessment-resources";
|
|
12
12
|
export const SUBJECT = "subject";
|
|
13
|
-
export const EXTERNAL_LEARNING_RESOURCES = "external-learning-resources";
|
|
14
13
|
export const SOURCE_MATERIAL = "source-material";
|
|
15
14
|
export const LEARNING_PATH = "learning-path";
|
|
16
15
|
export const TOPIC = "topic";
|
|
17
16
|
export const MULTIDISCIPLINARY_TOPIC = "multidisciplinary-topic";
|
|
17
|
+
export const CONCEPT = "concept";
|
|
18
|
+
export const EXTERNAL = "external";
|
|
18
19
|
export const contentTypes = {
|
|
19
20
|
SUBJECT_MATERIAL,
|
|
20
21
|
TASKS_AND_ACTIVITIES,
|
|
21
22
|
ASSESSMENT_RESOURCES,
|
|
22
23
|
SUBJECT,
|
|
23
|
-
EXTERNAL_LEARNING_RESOURCES,
|
|
24
24
|
SOURCE_MATERIAL,
|
|
25
25
|
LEARNING_PATH,
|
|
26
26
|
TOPIC,
|
|
27
|
-
MULTIDISCIPLINARY_TOPIC
|
|
27
|
+
MULTIDISCIPLINARY_TOPIC,
|
|
28
|
+
CONCEPT,
|
|
29
|
+
EXTERNAL
|
|
28
30
|
};
|
|
29
31
|
export const RESOURCE_TYPE_LEARNING_PATH = "urn:resourcetype:learningPath";
|
|
30
32
|
export const RESOURCE_TYPE_SUBJECT_MATERIAL = "urn:resourcetype:subjectMaterial";
|
|
31
33
|
export const RESOURCE_TYPE_TASKS_AND_ACTIVITIES = "urn:resourcetype:tasksAndActivities";
|
|
32
34
|
export const RESOURCE_TYPE_ASSESSMENT_RESOURCES = "urn:resourcetype:reviewResource";
|
|
33
|
-
export const RESOURCE_TYPE_EXTERNAL_LEARNING_RESOURCES = "urn:resourcetype:externalResource";
|
|
34
35
|
export const RESOURCE_TYPE_SOURCE_MATERIAL = "urn:resourcetype:SourceMaterial";
|
|
35
|
-
export const
|
|
36
|
+
export const RESOURCE_TYPE_CONCEPT = "urn:resourcetype:concept";
|
|
37
|
+
export const ListOfContentTypes = ["SUBJECT_MATERIAL", "TASKS_AND_ACTIVITIES", "ASSESSMENT_RESOURCES", "SUBJECT", "SOURCE_MATERIAL", "LEARNING_PATH", "TOPIC", "MULTIDISIPLINARY_TOPIC", "CONCEPT", "EXTERNAL"];
|
|
36
38
|
export const contentTypeMapping = {
|
|
37
39
|
[RESOURCE_TYPE_LEARNING_PATH]: LEARNING_PATH,
|
|
38
40
|
[RESOURCE_TYPE_SUBJECT_MATERIAL]: SUBJECT_MATERIAL,
|
|
39
41
|
[RESOURCE_TYPE_TASKS_AND_ACTIVITIES]: TASKS_AND_ACTIVITIES,
|
|
40
42
|
[RESOURCE_TYPE_ASSESSMENT_RESOURCES]: ASSESSMENT_RESOURCES,
|
|
41
|
-
[RESOURCE_TYPE_EXTERNAL_LEARNING_RESOURCES]: EXTERNAL_LEARNING_RESOURCES,
|
|
42
43
|
[RESOURCE_TYPE_SOURCE_MATERIAL]: SOURCE_MATERIAL,
|
|
44
|
+
[RESOURCE_TYPE_CONCEPT]: CONCEPT,
|
|
43
45
|
default: SUBJECT_MATERIAL
|
|
44
46
|
};
|
|
45
47
|
export const resourceEmbedTypeMapping = {
|
|
@@ -24,8 +24,8 @@ export const resourceTypeColor = type => {
|
|
|
24
24
|
return colors.tasksAndActivities.light;
|
|
25
25
|
case contentTypes.ASSESSMENT_RESOURCES:
|
|
26
26
|
return colors.assessmentResource.light;
|
|
27
|
-
case contentTypes.
|
|
28
|
-
return colors.
|
|
27
|
+
case contentTypes.CONCEPT:
|
|
28
|
+
return colors.concept.light;
|
|
29
29
|
case contentTypes.SOURCE_MATERIAL:
|
|
30
30
|
return colors.sourceMaterial.light;
|
|
31
31
|
case contentTypes.LEARNING_PATH:
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
type Props = {
|
|
9
9
|
src: string;
|
|
10
10
|
title: string;
|
|
11
|
+
type?: "gloss" | "audio";
|
|
11
12
|
};
|
|
12
|
-
declare const SpeechControl: ({ src, title }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const SpeechControl: ({ src, title, type }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
14
|
export default SpeechControl;
|
|
@@ -22,7 +22,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
22
22
|
const SpeechControl = _ref => {
|
|
23
23
|
let {
|
|
24
24
|
src,
|
|
25
|
-
title
|
|
25
|
+
title,
|
|
26
|
+
type = "audio"
|
|
26
27
|
} = _ref;
|
|
27
28
|
const {
|
|
28
29
|
t
|
|
@@ -45,11 +46,11 @@ const SpeechControl = _ref => {
|
|
|
45
46
|
title: title,
|
|
46
47
|
preload: "metadata"
|
|
47
48
|
}), (0, _jsxRuntime.jsx)(_tooltip.default, {
|
|
48
|
-
tooltip: t(
|
|
49
|
+
tooltip: t(`${type}.play`),
|
|
49
50
|
children: (0, _jsxRuntime.jsx)(_button.IconButtonV2, {
|
|
50
51
|
type: "button",
|
|
51
52
|
onClick: togglePlay,
|
|
52
|
-
"aria-label": t(
|
|
53
|
+
"aria-label": t(`${type}.play`),
|
|
53
54
|
variant: "ghost",
|
|
54
55
|
children: (0, _jsxRuntime.jsx)(_common.VolumeUp, {})
|
|
55
56
|
})
|
|
@@ -19,8 +19,8 @@ export declare const SubjectMaterialBadge: (props: Omit<Props, "type">) => impor
|
|
|
19
19
|
export declare const TasksAndActivitiesBadge: (props: Omit<Props, "type">) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
20
|
export declare const AssessmentResourcesBadge: (props: Omit<Props, "type">) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
21
21
|
export declare const SubjectBadge: (props: Omit<Props, "type">) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
22
|
-
export declare const ExternalLearningResourcesBadge: (props: Omit<Props, "type">) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
22
|
export declare const SourceMaterialBadge: (props: Omit<Props, "type">) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
23
|
export declare const LearningPathBadge: (props: Omit<Props, "type">) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
24
|
export declare const MultidisciplinaryTopicBadge: (props: Omit<Props, "type">) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const ConceptBadge: (props: Omit<Props, "type">) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
26
26
|
export {};
|