@ndla/ui 56.0.19-alpha.0 → 56.0.20-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.
- package/es/Concept/Concept.js +3 -1
- package/es/Embed/ConceptEmbed.js +4 -1
- package/es/i18n/useComponentTranslations.js +12 -11
- package/es/locale/messages-en.js +13 -9
- package/es/locale/messages-nb.js +13 -9
- package/es/locale/messages-nn.js +13 -9
- package/es/locale/messages-se.js +13 -9
- package/es/locale/messages-sma.js +13 -9
- package/lib/Concept/Concept.d.ts +1 -0
- package/lib/Concept/Concept.js +3 -1
- package/lib/Embed/ConceptEmbed.d.ts +2 -1
- package/lib/Embed/ConceptEmbed.js +4 -1
- package/lib/i18n/useComponentTranslations.d.ts +7 -7
- package/lib/i18n/useComponentTranslations.js +12 -11
- package/lib/locale/messages-en.d.ts +8 -4
- package/lib/locale/messages-en.js +13 -9
- package/lib/locale/messages-nb.d.ts +8 -4
- package/lib/locale/messages-nb.js +13 -9
- package/lib/locale/messages-nn.d.ts +8 -4
- package/lib/locale/messages-nn.js +13 -9
- package/lib/locale/messages-se.d.ts +8 -4
- package/lib/locale/messages-se.js +13 -9
- package/lib/locale/messages-sma.d.ts +8 -4
- package/lib/locale/messages-sma.js +13 -9
- package/package.json +7 -7
- package/src/Concept/Concept.tsx +3 -2
- package/src/Embed/ConceptEmbed.tsx +4 -1
- package/src/i18n/useComponentTranslations.ts +19 -18
- package/src/locale/messages-en.ts +10 -6
- package/src/locale/messages-nb.ts +10 -6
- package/src/locale/messages-nn.ts +10 -6
- package/src/locale/messages-se.ts +10 -6
- package/src/locale/messages-sma.ts +10 -6
|
@@ -986,6 +986,8 @@ declare const messages: {
|
|
|
986
986
|
posts: string;
|
|
987
987
|
posts_plural: string;
|
|
988
988
|
subcategory: string;
|
|
989
|
+
votes: string;
|
|
990
|
+
votes_plural: string;
|
|
989
991
|
};
|
|
990
992
|
publish: string;
|
|
991
993
|
cancel: {
|
|
@@ -1048,6 +1050,8 @@ declare const messages: {
|
|
|
1048
1050
|
unlock: string;
|
|
1049
1051
|
lockDescription: string;
|
|
1050
1052
|
unlockDescription: string;
|
|
1053
|
+
votes: string;
|
|
1054
|
+
votes_plural: string;
|
|
1051
1055
|
};
|
|
1052
1056
|
posts: {
|
|
1053
1057
|
title: string;
|
|
@@ -1425,18 +1429,18 @@ declare const messages: {
|
|
|
1425
1429
|
page: string;
|
|
1426
1430
|
};
|
|
1427
1431
|
imageSearch: {
|
|
1428
|
-
close: string;
|
|
1429
1432
|
searchPlaceholder: string;
|
|
1430
1433
|
searchButtonTitle: string;
|
|
1431
|
-
|
|
1432
|
-
checkboxLabel: string;
|
|
1433
|
-
imageMetadata: {
|
|
1434
|
+
imagePreview: {
|
|
1434
1435
|
creatorsLabel: string;
|
|
1435
1436
|
license: string;
|
|
1436
1437
|
caption: string;
|
|
1437
1438
|
altText: string;
|
|
1438
1439
|
modelRelease: string;
|
|
1439
1440
|
tags: string;
|
|
1441
|
+
checkboxLabel: string;
|
|
1442
|
+
close: string;
|
|
1443
|
+
useImageTitle: string;
|
|
1440
1444
|
};
|
|
1441
1445
|
};
|
|
1442
1446
|
audioSearch: {
|
|
@@ -1002,7 +1002,9 @@ const messages = {
|
|
|
1002
1002
|
title: "Kategorier",
|
|
1003
1003
|
posts: "innlegg",
|
|
1004
1004
|
posts_plural: "innlegg",
|
|
1005
|
-
subcategory: "Tema"
|
|
1005
|
+
subcategory: "Tema",
|
|
1006
|
+
votes: "reaksjon",
|
|
1007
|
+
votes_plural: "reaksjoner"
|
|
1006
1008
|
},
|
|
1007
1009
|
publish: "Publiser",
|
|
1008
1010
|
cancel: {
|
|
@@ -1064,7 +1066,9 @@ const messages = {
|
|
|
1064
1066
|
locked: "Lås innlegg",
|
|
1065
1067
|
unlock: "Lås opp innlegg",
|
|
1066
1068
|
lockDescription: "Vil du låse dette innlegget? Dette vil gjøre at innlegget ikke kan få flere kommentarer, og vil vises som låst.",
|
|
1067
|
-
unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjøre at innlegget kan få flere kommentarer."
|
|
1069
|
+
unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjøre at innlegget kan få flere kommentarer.",
|
|
1070
|
+
votes: "reaksjon",
|
|
1071
|
+
votes_plural: "reaksjoner"
|
|
1068
1072
|
},
|
|
1069
1073
|
posts: {
|
|
1070
1074
|
title: "Innlegg",
|
|
@@ -1093,12 +1097,12 @@ const messages = {
|
|
|
1093
1097
|
maxLength: "Maksimal lengde for tekstfeltet er nådd",
|
|
1094
1098
|
error: "Feltet er påkrevd"
|
|
1095
1099
|
},
|
|
1096
|
-
bottomText: "Savner du en kategori?
|
|
1100
|
+
bottomText: "Savner du en kategori? Du kan be om nye kategorier. Bruk 'Spør NDLA' eller send en epost til ",
|
|
1097
1101
|
moderatorEmail: "moderator@ndla.no",
|
|
1098
1102
|
notification: {
|
|
1099
1103
|
title: "Varslinger",
|
|
1100
1104
|
showAll: "Se alle varslinger",
|
|
1101
|
-
description: "Velkommen
|
|
1105
|
+
description: "Velkommen til NDLAs Arena. Her kan du diskutere, dele og samarbeide med andre lærere fra hele Norge.",
|
|
1102
1106
|
myNotification: "Mine varsler",
|
|
1103
1107
|
markAll: "Merk alle som lest",
|
|
1104
1108
|
subscribe: "Du får nå varsling om nye svar på dette innlegget",
|
|
@@ -1476,18 +1480,18 @@ const messages = {
|
|
|
1476
1480
|
page: "Side {{page}}"
|
|
1477
1481
|
},
|
|
1478
1482
|
imageSearch: {
|
|
1479
|
-
close: "Lukk",
|
|
1480
1483
|
searchPlaceholder: "Søk i bilder",
|
|
1481
1484
|
searchButtonTitle: "Søk",
|
|
1482
|
-
|
|
1483
|
-
checkboxLabel: "Sett som metabilde",
|
|
1484
|
-
imageMetadata: {
|
|
1485
|
+
imagePreview: {
|
|
1485
1486
|
creatorsLabel: "Bilde",
|
|
1486
1487
|
license: "Lisens",
|
|
1487
1488
|
caption: "Bildetekst",
|
|
1488
1489
|
altText: "Alt-tekst",
|
|
1489
1490
|
modelRelease: "Modellklarert",
|
|
1490
|
-
tags: "Emneknagger"
|
|
1491
|
+
tags: "Emneknagger",
|
|
1492
|
+
checkboxLabel: "Sett som metabilde",
|
|
1493
|
+
close: "Lukk",
|
|
1494
|
+
useImageTitle: "Bruk bildet"
|
|
1491
1495
|
}
|
|
1492
1496
|
},
|
|
1493
1497
|
audioSearch: {
|
|
@@ -986,6 +986,8 @@ declare const messages: {
|
|
|
986
986
|
posts: string;
|
|
987
987
|
posts_plural: string;
|
|
988
988
|
subcategory: string;
|
|
989
|
+
votes: string;
|
|
990
|
+
votes_plural: string;
|
|
989
991
|
};
|
|
990
992
|
publish: string;
|
|
991
993
|
cancel: {
|
|
@@ -1040,6 +1042,8 @@ declare const messages: {
|
|
|
1040
1042
|
unlock: string;
|
|
1041
1043
|
lockDescription: string;
|
|
1042
1044
|
unlockDescription: string;
|
|
1045
|
+
votes: string;
|
|
1046
|
+
votes_plural: string;
|
|
1043
1047
|
};
|
|
1044
1048
|
deleted: {
|
|
1045
1049
|
post: string;
|
|
@@ -1425,18 +1429,18 @@ declare const messages: {
|
|
|
1425
1429
|
page: string;
|
|
1426
1430
|
};
|
|
1427
1431
|
imageSearch: {
|
|
1428
|
-
close: string;
|
|
1429
1432
|
searchPlaceholder: string;
|
|
1430
1433
|
searchButtonTitle: string;
|
|
1431
|
-
|
|
1432
|
-
checkboxLabel: string;
|
|
1433
|
-
imageMetadata: {
|
|
1434
|
+
imagePreview: {
|
|
1434
1435
|
creatorsLabel: string;
|
|
1435
1436
|
license: string;
|
|
1436
1437
|
caption: string;
|
|
1437
1438
|
altText: string;
|
|
1438
1439
|
modelRelease: string;
|
|
1439
1440
|
tags: string;
|
|
1441
|
+
checkboxLabel: string;
|
|
1442
|
+
close: string;
|
|
1443
|
+
useImageTitle: string;
|
|
1440
1444
|
};
|
|
1441
1445
|
};
|
|
1442
1446
|
audioSearch: {
|
|
@@ -1002,7 +1002,9 @@ const messages = {
|
|
|
1002
1002
|
title: "Kategoriar",
|
|
1003
1003
|
posts: "innlegg",
|
|
1004
1004
|
posts_plural: "innlegg",
|
|
1005
|
-
subcategory: "Tema"
|
|
1005
|
+
subcategory: "Tema",
|
|
1006
|
+
votes: "reaksjon",
|
|
1007
|
+
votes_plural: "reaksjonar"
|
|
1006
1008
|
},
|
|
1007
1009
|
publish: "Publiser",
|
|
1008
1010
|
cancel: {
|
|
@@ -1056,7 +1058,9 @@ const messages = {
|
|
|
1056
1058
|
locked: "Lås innlegg",
|
|
1057
1059
|
unlock: "Lås opp innlegg",
|
|
1058
1060
|
lockDescription: "Vil du låse dette innlegget? Dette vil gjera at innlegget ikkje kan få fleire kommentarar, og vil visast som låst.",
|
|
1059
|
-
unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjera at innlegget kan få fleire kommentarar."
|
|
1061
|
+
unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjera at innlegget kan få fleire kommentarar.",
|
|
1062
|
+
votes: "reaksjon",
|
|
1063
|
+
votes_plural: "reaksjonar"
|
|
1060
1064
|
},
|
|
1061
1065
|
deleted: {
|
|
1062
1066
|
post: "Kommentaren din har blitt sletta.",
|
|
@@ -1093,12 +1097,12 @@ const messages = {
|
|
|
1093
1097
|
maxLength: "Maksimal lengd for tekstfeltet er nådd",
|
|
1094
1098
|
error: "Feltet er påkravd"
|
|
1095
1099
|
},
|
|
1096
|
-
bottomText: "Saknar du ein kategori?
|
|
1100
|
+
bottomText: "Saknar du ein kategori? Du kan be om nye kategoriar. Bruk 'Spør NDLA' eller send ein epost til ",
|
|
1097
1101
|
moderatorEmail: "moderator@ndla.no",
|
|
1098
1102
|
notification: {
|
|
1099
1103
|
title: "Varslingar",
|
|
1100
1104
|
showAll: "Sjå alle varslingar",
|
|
1101
|
-
description: "Velkommen
|
|
1105
|
+
description: "Velkommen til NDLA sin Arena. Her kan du diskutere, dele og samarbeide med andre lærarar frå heile Noreg.",
|
|
1102
1106
|
myNotification: "Mine varsler",
|
|
1103
1107
|
markAll: "Merk alle som lest",
|
|
1104
1108
|
subscribe: "Du får no varsling om nye svar på dette innlegget",
|
|
@@ -1476,18 +1480,18 @@ const messages = {
|
|
|
1476
1480
|
page: "Side {{page}}"
|
|
1477
1481
|
},
|
|
1478
1482
|
imageSearch: {
|
|
1479
|
-
close: "Lukk",
|
|
1480
1483
|
searchPlaceholder: "Søk i bilete",
|
|
1481
1484
|
searchButtonTitle: "Søk",
|
|
1482
|
-
|
|
1483
|
-
checkboxLabel: "Sett som metabilete",
|
|
1484
|
-
imageMetadata: {
|
|
1485
|
+
imagePreview: {
|
|
1485
1486
|
creatorsLabel: "Bilete",
|
|
1486
1487
|
license: "Lisens",
|
|
1487
1488
|
caption: "Bildetekst",
|
|
1488
1489
|
altText: "Alt-tekst",
|
|
1489
1490
|
modelRelease: "Modellklarert",
|
|
1490
|
-
tags: "Emneknaggar"
|
|
1491
|
+
tags: "Emneknaggar",
|
|
1492
|
+
checkboxLabel: "Sett som metabilete",
|
|
1493
|
+
close: "Lukk",
|
|
1494
|
+
useImageTitle: "Bruk biletet"
|
|
1491
1495
|
}
|
|
1492
1496
|
},
|
|
1493
1497
|
audioSearch: {
|
|
@@ -986,6 +986,8 @@ declare const messages: {
|
|
|
986
986
|
posts: string;
|
|
987
987
|
posts_plural: string;
|
|
988
988
|
subcategory: string;
|
|
989
|
+
votes: string;
|
|
990
|
+
votes_plural: string;
|
|
989
991
|
};
|
|
990
992
|
publish: string;
|
|
991
993
|
cancel: {
|
|
@@ -1048,6 +1050,8 @@ declare const messages: {
|
|
|
1048
1050
|
unlock: string;
|
|
1049
1051
|
lockDescription: string;
|
|
1050
1052
|
unlockDescription: string;
|
|
1053
|
+
votes: string;
|
|
1054
|
+
votes_plural: string;
|
|
1051
1055
|
};
|
|
1052
1056
|
posts: {
|
|
1053
1057
|
title: string;
|
|
@@ -1425,18 +1429,18 @@ declare const messages: {
|
|
|
1425
1429
|
page: string;
|
|
1426
1430
|
};
|
|
1427
1431
|
imageSearch: {
|
|
1428
|
-
close: string;
|
|
1429
1432
|
searchPlaceholder: string;
|
|
1430
1433
|
searchButtonTitle: string;
|
|
1431
|
-
|
|
1432
|
-
checkboxLabel: string;
|
|
1433
|
-
imageMetadata: {
|
|
1434
|
+
imagePreview: {
|
|
1434
1435
|
creatorsLabel: string;
|
|
1435
1436
|
license: string;
|
|
1436
1437
|
caption: string;
|
|
1437
1438
|
altText: string;
|
|
1438
1439
|
modelRelease: string;
|
|
1439
1440
|
tags: string;
|
|
1441
|
+
checkboxLabel: string;
|
|
1442
|
+
close: string;
|
|
1443
|
+
useImageTitle: string;
|
|
1440
1444
|
};
|
|
1441
1445
|
};
|
|
1442
1446
|
audioSearch: {
|
|
@@ -1002,7 +1002,9 @@ const messages = {
|
|
|
1002
1002
|
title: "Kategorier",
|
|
1003
1003
|
posts: "innlegg",
|
|
1004
1004
|
posts_plural: "innlegg",
|
|
1005
|
-
subcategory: "Tema"
|
|
1005
|
+
subcategory: "Tema",
|
|
1006
|
+
votes: "reaksjon",
|
|
1007
|
+
votes_plural: "reaksjoner"
|
|
1006
1008
|
},
|
|
1007
1009
|
publish: "Publiser",
|
|
1008
1010
|
cancel: {
|
|
@@ -1064,7 +1066,9 @@ const messages = {
|
|
|
1064
1066
|
locked: "Lås innlegg",
|
|
1065
1067
|
unlock: "Lås opp innlegg",
|
|
1066
1068
|
lockDescription: "Vil du låse dette innlegget? Dette vil gjøre at innlegget ikke kan få flere kommentarer, og vil vises som låst.",
|
|
1067
|
-
unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjøre at innlegget kan få flere kommentarer."
|
|
1069
|
+
unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjøre at innlegget kan få flere kommentarer.",
|
|
1070
|
+
votes: "reaksjon",
|
|
1071
|
+
votes_plural: "reaksjoner"
|
|
1068
1072
|
},
|
|
1069
1073
|
posts: {
|
|
1070
1074
|
title: "Innlegg",
|
|
@@ -1093,12 +1097,12 @@ const messages = {
|
|
|
1093
1097
|
maxLength: "Maksimal lengde for tekstfeltet er nådd",
|
|
1094
1098
|
error: "Feltet er påkrevd"
|
|
1095
1099
|
},
|
|
1096
|
-
bottomText: "Savner du en kategori?
|
|
1100
|
+
bottomText: "Savner du en kategori? Du kan be om nye kategorier. Bruk 'Spør NDLA' eller send en epost til ",
|
|
1097
1101
|
moderatorEmail: "moderator@ndla.no",
|
|
1098
1102
|
notification: {
|
|
1099
1103
|
title: "Varslinger",
|
|
1100
1104
|
showAll: "Se alle varslinger",
|
|
1101
|
-
description: "Velkommen
|
|
1105
|
+
description: "Velkommen til NDLAs Arena. Her kan du diskutere, dele og samarbeide med andre lærere fra hele Norge.",
|
|
1102
1106
|
myNotification: "Mine varsler",
|
|
1103
1107
|
markAll: "Merk alle som lest",
|
|
1104
1108
|
subscribe: "Du får nå varsling om nye svar på dette innlegget",
|
|
@@ -1476,18 +1480,18 @@ const messages = {
|
|
|
1476
1480
|
page: "Side {{page}}"
|
|
1477
1481
|
},
|
|
1478
1482
|
imageSearch: {
|
|
1479
|
-
close: "Lukk",
|
|
1480
1483
|
searchPlaceholder: "Søk i bilder",
|
|
1481
1484
|
searchButtonTitle: "Søk",
|
|
1482
|
-
|
|
1483
|
-
checkboxLabel: "Sett som metabilde",
|
|
1484
|
-
imageMetadata: {
|
|
1485
|
+
imagePreview: {
|
|
1485
1486
|
creatorsLabel: "Bilde",
|
|
1486
1487
|
license: "Lisens",
|
|
1487
1488
|
caption: "Bildetekst",
|
|
1488
1489
|
altText: "Alt-tekst",
|
|
1489
1490
|
modelRelease: "Modellklarert",
|
|
1490
|
-
tags: "Emneknagger"
|
|
1491
|
+
tags: "Emneknagger",
|
|
1492
|
+
checkboxLabel: "Sett som metabilde",
|
|
1493
|
+
close: "Lukk",
|
|
1494
|
+
useImageTitle: "Bruk bildet"
|
|
1491
1495
|
}
|
|
1492
1496
|
},
|
|
1493
1497
|
audioSearch: {
|
|
@@ -986,6 +986,8 @@ declare const messages: {
|
|
|
986
986
|
posts: string;
|
|
987
987
|
posts_plural: string;
|
|
988
988
|
subcategory: string;
|
|
989
|
+
votes: string;
|
|
990
|
+
votes_plural: string;
|
|
989
991
|
};
|
|
990
992
|
publish: string;
|
|
991
993
|
cancel: {
|
|
@@ -1048,6 +1050,8 @@ declare const messages: {
|
|
|
1048
1050
|
unlock: string;
|
|
1049
1051
|
lockDescription: string;
|
|
1050
1052
|
unlockDescription: string;
|
|
1053
|
+
votes: string;
|
|
1054
|
+
votes_plural: string;
|
|
1051
1055
|
};
|
|
1052
1056
|
posts: {
|
|
1053
1057
|
title: string;
|
|
@@ -1425,18 +1429,18 @@ declare const messages: {
|
|
|
1425
1429
|
page: string;
|
|
1426
1430
|
};
|
|
1427
1431
|
imageSearch: {
|
|
1428
|
-
close: string;
|
|
1429
1432
|
searchPlaceholder: string;
|
|
1430
1433
|
searchButtonTitle: string;
|
|
1431
|
-
|
|
1432
|
-
checkboxLabel: string;
|
|
1433
|
-
imageMetadata: {
|
|
1434
|
+
imagePreview: {
|
|
1434
1435
|
creatorsLabel: string;
|
|
1435
1436
|
license: string;
|
|
1436
1437
|
caption: string;
|
|
1437
1438
|
altText: string;
|
|
1438
1439
|
modelRelease: string;
|
|
1439
1440
|
tags: string;
|
|
1441
|
+
checkboxLabel: string;
|
|
1442
|
+
close: string;
|
|
1443
|
+
useImageTitle: string;
|
|
1440
1444
|
};
|
|
1441
1445
|
};
|
|
1442
1446
|
audioSearch: {
|
|
@@ -1002,7 +1002,9 @@ const messages = {
|
|
|
1002
1002
|
title: "Kategorier",
|
|
1003
1003
|
posts: "innlegg",
|
|
1004
1004
|
posts_plural: "innlegg",
|
|
1005
|
-
subcategory: "Tema"
|
|
1005
|
+
subcategory: "Tema",
|
|
1006
|
+
votes: "reaksjon",
|
|
1007
|
+
votes_plural: "reaksjoner"
|
|
1006
1008
|
},
|
|
1007
1009
|
publish: "Publiser",
|
|
1008
1010
|
cancel: {
|
|
@@ -1064,7 +1066,9 @@ const messages = {
|
|
|
1064
1066
|
locked: "Lås innlegg",
|
|
1065
1067
|
unlock: "Lås opp innlegg",
|
|
1066
1068
|
lockDescription: "Vil du låse dette innlegget? Dette vil gjøre at innlegget ikke kan få flere kommentarer, og vil vises som låst.",
|
|
1067
|
-
unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjøre at innlegget kan få flere kommentarer."
|
|
1069
|
+
unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjøre at innlegget kan få flere kommentarer.",
|
|
1070
|
+
votes: "reaksjon",
|
|
1071
|
+
votes_plural: "reaksjoner"
|
|
1068
1072
|
},
|
|
1069
1073
|
posts: {
|
|
1070
1074
|
title: "Innlegg",
|
|
@@ -1093,12 +1097,12 @@ const messages = {
|
|
|
1093
1097
|
maxLength: "Maksimal lengde for tekstfeltet er nådd",
|
|
1094
1098
|
error: "Feltet er påkrevd"
|
|
1095
1099
|
},
|
|
1096
|
-
bottomText: "Savner du en kategori?
|
|
1100
|
+
bottomText: "Savner du en kategori? Du kan be om nye kategorier. Bruk 'Spør NDLA' eller send en epost til ",
|
|
1097
1101
|
moderatorEmail: "moderator@ndla.no",
|
|
1098
1102
|
notification: {
|
|
1099
1103
|
title: "Varslinger",
|
|
1100
1104
|
showAll: "Se alle varslinger",
|
|
1101
|
-
description: "Velkommen
|
|
1105
|
+
description: "Velkommen til NDLAs Arena. Her kan du diskutere, dele og samarbeide med andre lærere fra hele Norge.",
|
|
1102
1106
|
myNotification: "Mine varsler",
|
|
1103
1107
|
markAll: "Merk alle som lest",
|
|
1104
1108
|
subscribe: "Du får nå varsling om nye svar på dette innlegget",
|
|
@@ -1476,18 +1480,18 @@ const messages = {
|
|
|
1476
1480
|
page: "Side {{page}}"
|
|
1477
1481
|
},
|
|
1478
1482
|
imageSearch: {
|
|
1479
|
-
close: "Lukk",
|
|
1480
1483
|
searchPlaceholder: "Søk i bilder",
|
|
1481
1484
|
searchButtonTitle: "Søk",
|
|
1482
|
-
|
|
1483
|
-
checkboxLabel: "Sett som metabilde",
|
|
1484
|
-
imageMetadata: {
|
|
1485
|
+
imagePreview: {
|
|
1485
1486
|
creatorsLabel: "Bilde",
|
|
1486
1487
|
license: "Lisens",
|
|
1487
1488
|
caption: "Bildetekst",
|
|
1488
1489
|
altText: "Alt-tekst",
|
|
1489
1490
|
modelRelease: "Modellklarert",
|
|
1490
|
-
tags: "Emneknagger"
|
|
1491
|
+
tags: "Emneknagger",
|
|
1492
|
+
checkboxLabel: "Sett som metabilde",
|
|
1493
|
+
close: "Lukk",
|
|
1494
|
+
useImageTitle: "Bruk bildet"
|
|
1491
1495
|
}
|
|
1492
1496
|
},
|
|
1493
1497
|
audioSearch: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "56.0.
|
|
3
|
+
"version": "56.0.20-alpha.0",
|
|
4
4
|
"description": "UI component library for NDLA",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@ndla/core": "^5.0.2",
|
|
37
|
-
"@ndla/icons": "^8.0.
|
|
37
|
+
"@ndla/icons": "^8.0.14-alpha.0",
|
|
38
38
|
"@ndla/licenses": "^8.0.2-alpha.0",
|
|
39
|
-
"@ndla/primitives": "^1.0.
|
|
40
|
-
"@ndla/safelink": "^7.0.
|
|
41
|
-
"@ndla/styled-system": "^0.0.
|
|
39
|
+
"@ndla/primitives": "^1.0.18-alpha.0",
|
|
40
|
+
"@ndla/safelink": "^7.0.18-alpha.0",
|
|
41
|
+
"@ndla/styled-system": "^0.0.16",
|
|
42
42
|
"@ndla/util": "^4.1.0",
|
|
43
43
|
"html-react-parser": "^5.1.8",
|
|
44
44
|
"i18next-browser-languagedetector": "^7.1.0"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"react-router-dom": "> 6.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@ndla/preset-panda": "^0.0.
|
|
56
|
+
"@ndla/preset-panda": "^0.0.24",
|
|
57
57
|
"@ndla/types-backend": "^0.2.86",
|
|
58
58
|
"@ndla/types-embed": "^5.0.1-alpha.0",
|
|
59
59
|
"@pandacss/dev": "^0.45.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "66b3b382188ec1730fa409d4adb3672942f00670"
|
|
70
70
|
}
|
package/src/Concept/Concept.tsx
CHANGED
|
@@ -22,6 +22,7 @@ export interface ConceptProps extends ComponentPropsWithRef<"figure"> {
|
|
|
22
22
|
title?: string;
|
|
23
23
|
children?: ReactNode;
|
|
24
24
|
source?: string;
|
|
25
|
+
previewAlt?: boolean;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
const StyledFigure = styled(Figure, {
|
|
@@ -45,7 +46,7 @@ const ContentWrapper = styled("div", {
|
|
|
45
46
|
// TODO: Figure out if we need to support headerButtons.
|
|
46
47
|
|
|
47
48
|
export const Concept = forwardRef<HTMLElement, ConceptProps>(
|
|
48
|
-
({ copyright, visualElement, lang, children, title, source, ...rest }, ref) => {
|
|
49
|
+
({ copyright, visualElement, lang, children, title, source, previewAlt, ...rest }, ref) => {
|
|
49
50
|
const licenseProps = licenseAttributes(copyright?.license?.license, lang, source);
|
|
50
51
|
|
|
51
52
|
return (
|
|
@@ -60,7 +61,7 @@ export const Concept = forwardRef<HTMLElement, ConceptProps>(
|
|
|
60
61
|
{children}
|
|
61
62
|
</ContentWrapper>
|
|
62
63
|
{visualElement?.resource === "image" ? (
|
|
63
|
-
<ImageEmbed embed={visualElement} lang={lang} />
|
|
64
|
+
<ImageEmbed embed={visualElement} lang={lang} previewAlt={previewAlt} />
|
|
64
65
|
) : visualElement?.resource === "brightcove" ? (
|
|
65
66
|
<BrightcoveEmbed embed={visualElement} />
|
|
66
67
|
) : visualElement?.resource === "h5p" ? (
|
|
@@ -21,6 +21,7 @@ import { Concept, ConceptProps } from "../Concept/Concept";
|
|
|
21
21
|
interface BaseProps {
|
|
22
22
|
renderContext?: RenderContext;
|
|
23
23
|
lang?: string;
|
|
24
|
+
previewAlt?: boolean;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
interface Props extends BaseProps {
|
|
@@ -35,7 +36,7 @@ const StyledPopoverContent = styled(PopoverContent, {
|
|
|
35
36
|
},
|
|
36
37
|
});
|
|
37
38
|
|
|
38
|
-
export const ConceptEmbed = ({ embed, renderContext, lang }: Props) => {
|
|
39
|
+
export const ConceptEmbed = ({ embed, renderContext, lang, previewAlt }: Props) => {
|
|
39
40
|
const parsedContent = useMemo(() => {
|
|
40
41
|
if (embed.status === "error" || !embed.data.concept.content) return undefined;
|
|
41
42
|
return parse(embed.data.concept.content.htmlContent);
|
|
@@ -58,6 +59,7 @@ export const ConceptEmbed = ({ embed, renderContext, lang }: Props) => {
|
|
|
58
59
|
if (embed.embedData.type === "inline") {
|
|
59
60
|
return (
|
|
60
61
|
<InlineConcept
|
|
62
|
+
previewAlt={previewAlt}
|
|
61
63
|
linkText={embed.embedData.linkText}
|
|
62
64
|
copyright={concept.copyright}
|
|
63
65
|
visualElement={visualElement}
|
|
@@ -72,6 +74,7 @@ export const ConceptEmbed = ({ embed, renderContext, lang }: Props) => {
|
|
|
72
74
|
|
|
73
75
|
return (
|
|
74
76
|
<BlockConcept
|
|
77
|
+
previewAlt={previewAlt}
|
|
75
78
|
copyright={concept.copyright}
|
|
76
79
|
visualElement={visualElement}
|
|
77
80
|
lang={lang}
|
|
@@ -84,24 +84,24 @@ interface AudioSearchTranslations {
|
|
|
84
84
|
paginationTranslations: PaginationRootProps["translations"];
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
interface
|
|
87
|
+
export interface PreviewTranslations {
|
|
88
88
|
creatorsLabel: string;
|
|
89
89
|
license: string;
|
|
90
90
|
caption: string;
|
|
91
91
|
altText: string;
|
|
92
92
|
modelRelease: string;
|
|
93
93
|
tags: string;
|
|
94
|
+
close: string;
|
|
95
|
+
checkboxLabel?: string;
|
|
96
|
+
missingTitleFallback?: string;
|
|
97
|
+
useImageTitle: string;
|
|
94
98
|
}
|
|
95
99
|
|
|
96
|
-
interface ImageSearchTranslations {
|
|
100
|
+
export interface ImageSearchTranslations {
|
|
97
101
|
searchPlaceholder: string;
|
|
98
102
|
searchButtonTitle: string;
|
|
99
|
-
|
|
100
|
-
close: string;
|
|
101
|
-
imageMetadata: MetadataTranslations;
|
|
103
|
+
imagePreview: PreviewTranslations;
|
|
102
104
|
paginationTranslations: PaginationRootProps["translations"];
|
|
103
|
-
missingTitleFallback?: string;
|
|
104
|
-
checkboxLabel?: string;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
export const useImageSearchTranslations = (
|
|
@@ -110,21 +110,22 @@ export const useImageSearchTranslations = (
|
|
|
110
110
|
const { t } = useTranslation("translation", { keyPrefix: "component.imageSearch" });
|
|
111
111
|
const paginationTranslations = usePaginationTranslations();
|
|
112
112
|
|
|
113
|
-
const {
|
|
113
|
+
const { imagePreview, paginationTranslations: fallbackPaginationTranslations, ...remaining } = translations;
|
|
114
114
|
|
|
115
115
|
return {
|
|
116
|
-
close: t("close"),
|
|
117
116
|
searchPlaceholder: t("searchPlaceholder"),
|
|
118
117
|
searchButtonTitle: t("searchButtonTitle"),
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
118
|
+
imagePreview: {
|
|
119
|
+
creatorsLabel: t("imagePreview.creatorsLabel"),
|
|
120
|
+
license: t("imagePreview.license"),
|
|
121
|
+
caption: t("imagePreview.caption"),
|
|
122
|
+
altText: t("imagePreview.altText"),
|
|
123
|
+
modelRelease: t("imagePreview.modelRelease"),
|
|
124
|
+
tags: t("imagePreview.tags"),
|
|
125
|
+
close: t("close"),
|
|
126
|
+
checkboxLabel: t("imagePreview.checkboxLabel"),
|
|
127
|
+
useImageTitle: t("imagePreview.useImageTitle"),
|
|
128
|
+
...imagePreview,
|
|
128
129
|
},
|
|
129
130
|
paginationTranslations: { ...paginationTranslations, ...fallbackPaginationTranslations },
|
|
130
131
|
...remaining,
|
|
@@ -1014,6 +1014,8 @@ const messages = {
|
|
|
1014
1014
|
posts: "post",
|
|
1015
1015
|
posts_plural: "posts",
|
|
1016
1016
|
subcategory: "Subcategories",
|
|
1017
|
+
votes: "reaction",
|
|
1018
|
+
votes_plural: "reactions",
|
|
1017
1019
|
},
|
|
1018
1020
|
cancel: {
|
|
1019
1021
|
title: {
|
|
@@ -1077,6 +1079,8 @@ const messages = {
|
|
|
1077
1079
|
unlock: "Unlock topic",
|
|
1078
1080
|
lockDescription: "Do you want do lock this topic? This will prevent this topic from getting more posts.",
|
|
1079
1081
|
unlockDescription: "Do you want do unlock this topic? This will prevent this topic from getting more posts.",
|
|
1082
|
+
votes: "reaction",
|
|
1083
|
+
votes_plural: "reactions",
|
|
1080
1084
|
},
|
|
1081
1085
|
posts: {
|
|
1082
1086
|
title: "Posts",
|
|
@@ -1107,13 +1111,13 @@ const messages = {
|
|
|
1107
1111
|
maxLength: "The maximum length for the text field is reached",
|
|
1108
1112
|
error: "The field is required",
|
|
1109
1113
|
},
|
|
1110
|
-
bottomText: "Are you missing a category?
|
|
1114
|
+
bottomText: "Are you missing a category? You can request new categories. Use 'Ask NDLA' or send an email to ",
|
|
1111
1115
|
moderatorEmail: "moderator@ndla.no",
|
|
1112
1116
|
notification: {
|
|
1113
1117
|
title: "Notifications",
|
|
1114
1118
|
showAll: "View all notifications",
|
|
1115
1119
|
description:
|
|
1116
|
-
"Welcome to
|
|
1120
|
+
"Welcome to NDLAs Arena. Here, you can discuss, share and cooperate with other teachers from all over Norway.",
|
|
1117
1121
|
myNotification: "My notifications",
|
|
1118
1122
|
markAll: "Mark all as read",
|
|
1119
1123
|
subscribe: "You will now be notified of new replies to this topic",
|
|
@@ -1502,18 +1506,18 @@ const messages = {
|
|
|
1502
1506
|
page: "Page {{page}}",
|
|
1503
1507
|
},
|
|
1504
1508
|
imageSearch: {
|
|
1505
|
-
close: "Close",
|
|
1506
1509
|
searchPlaceholder: "Search images",
|
|
1507
1510
|
searchButtonTitle: "Search",
|
|
1508
|
-
|
|
1509
|
-
checkboxLabel: "Set as meta image",
|
|
1510
|
-
imageMetadata: {
|
|
1511
|
+
imagePreview: {
|
|
1511
1512
|
creatorsLabel: "Image",
|
|
1512
1513
|
license: "License",
|
|
1513
1514
|
caption: "Caption",
|
|
1514
1515
|
altText: "Alt-text",
|
|
1515
1516
|
modelRelease: "Model released",
|
|
1516
1517
|
tags: "Tags",
|
|
1518
|
+
checkboxLabel: "Set as meta image",
|
|
1519
|
+
close: "Close",
|
|
1520
|
+
useImageTitle: "Use image",
|
|
1517
1521
|
},
|
|
1518
1522
|
},
|
|
1519
1523
|
audioSearch: {
|