@ndla/ui 50.1.6 → 50.2.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/Embed/ConceptEmbed.js +28 -14
- package/es/Embed/FootnoteEmbed.js +7 -2
- package/es/Embed/conceptComponents.js +14 -10
- package/es/Filter/FilterCarousel.js +4 -4
- package/es/FrontpageArticle/FrontpageArticle.js +1 -1
- package/es/Gloss/Gloss.js +39 -34
- package/es/Gloss/GlossExample.js +62 -0
- package/es/Gloss/index.js +2 -1
- package/es/Resource/resourceComponents.js +11 -11
- package/es/ResourceGroup/ResourceItem.js +9 -9
- package/es/SearchTypeResult/ActiveFilters.js +6 -6
- package/es/TreeStructure/AddFolderButton.js +2 -2
- package/es/TreeStructure/FolderItem.js +7 -7
- package/es/TreeStructure/FolderItems.js +2 -2
- package/es/all.css +1 -1
- package/es/index.js +1 -1
- package/es/locale/messages-en.js +10 -5
- package/es/locale/messages-nb.js +9 -3
- package/es/locale/messages-nn.js +9 -3
- package/es/locale/messages-se.js +10 -4
- package/es/locale/messages-sma.js +12 -6
- package/es/model/index.js +1 -3
- package/lib/Embed/ConceptEmbed.d.ts +6 -2
- package/lib/Embed/ConceptEmbed.js +28 -14
- package/lib/Embed/FootnoteEmbed.js +8 -2
- package/lib/Embed/conceptComponents.d.ts +2 -0
- package/lib/Embed/conceptComponents.js +14 -10
- package/lib/Filter/FilterCarousel.js +4 -4
- package/lib/FrontpageArticle/FrontpageArticle.js +1 -1
- package/lib/Gloss/Gloss.d.ts +5 -14
- package/lib/Gloss/Gloss.js +39 -34
- package/lib/Gloss/GlossExample.d.ts +16 -0
- package/lib/Gloss/GlossExample.js +68 -0
- package/lib/Gloss/index.d.ts +1 -0
- package/lib/Gloss/index.js +7 -0
- package/lib/Resource/resourceComponents.js +11 -11
- package/lib/ResourceGroup/ResourceItem.js +9 -9
- package/lib/SearchTypeResult/ActiveFilters.js +6 -6
- package/lib/TreeStructure/AddFolderButton.js +2 -2
- package/lib/TreeStructure/FolderItem.js +7 -7
- package/lib/TreeStructure/FolderItems.js +2 -2
- package/lib/all.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +6 -0
- package/lib/locale/messages-en.d.ts +8 -2
- package/lib/locale/messages-en.js +11 -7
- package/lib/locale/messages-nb.d.ts +7 -1
- package/lib/locale/messages-nb.js +9 -3
- package/lib/locale/messages-nn.d.ts +7 -1
- package/lib/locale/messages-nn.js +9 -3
- package/lib/locale/messages-se.d.ts +7 -1
- package/lib/locale/messages-se.js +10 -4
- package/lib/locale/messages-sma.d.ts +7 -1
- package/lib/locale/messages-sma.js +12 -6
- package/lib/model/index.d.ts +0 -2
- package/lib/model/index.js +1 -3
- package/package.json +5 -5
- package/src/Embed/ConceptEmbed.tsx +18 -0
- package/src/Embed/FootnoteEmbed.tsx +29 -3
- package/src/Embed/conceptComponents.tsx +6 -0
- package/src/Filter/FilterCarousel.tsx +3 -1
- package/src/FrontpageArticle/FrontpageArticle.tsx +1 -1
- package/src/Gloss/Gloss.tsx +41 -57
- package/src/Gloss/GlossExample.tsx +75 -0
- package/src/Gloss/index.tsx +1 -0
- package/src/Resource/resourceComponents.tsx +1 -1
- package/src/ResourceGroup/ResourceItem.tsx +3 -1
- package/src/SearchTypeResult/ActiveFilters.tsx +1 -3
- package/src/TreeStructure/AddFolderButton.tsx +2 -2
- package/src/TreeStructure/FolderItem.tsx +1 -1
- package/src/TreeStructure/FolderItems.tsx +2 -2
- package/src/index.ts +1 -1
- package/src/locale/messages-en.ts +9 -2
- package/src/locale/messages-nb.ts +8 -1
- package/src/locale/messages-nn.ts +8 -1
- package/src/locale/messages-se.ts +9 -2
- package/src/locale/messages-sma.ts +11 -4
- package/src/main.scss +0 -1
- package/src/model/index.ts +0 -2
- package/es/model/Transcriptions.js +0 -1
- package/lib/model/Transcriptions.d.ts +0 -11
- package/lib/model/Transcriptions.js +0 -5
- package/src/Article/component.footnotes.scss +0 -74
- package/src/model/Transcriptions.ts +0 -12
package/lib/index.d.ts
CHANGED
|
@@ -90,5 +90,5 @@ export type { GridType } from './Grid';
|
|
|
90
90
|
export { default as FrontpageArticle, FRONTPAGE_ARTICLE_MAX_WIDTH, WIDE_FRONTPAGE_ARTICLE_MAX_WIDTH, } from './FrontpageArticle';
|
|
91
91
|
export { DefinitionTerm, DefinitionDescription } from './DefinitionList';
|
|
92
92
|
export type { ProgrammeV2 } from './ProgrammeCard';
|
|
93
|
-
export { Gloss } from './Gloss';
|
|
93
|
+
export { Gloss, GlossExample } from './Gloss';
|
|
94
94
|
export { LinkBlock, LinkBlockSection } from './LinkBlock';
|
package/lib/index.js
CHANGED
|
@@ -405,6 +405,12 @@ Object.defineProperty(exports, "Gloss", {
|
|
|
405
405
|
return _Gloss.Gloss;
|
|
406
406
|
}
|
|
407
407
|
});
|
|
408
|
+
Object.defineProperty(exports, "GlossExample", {
|
|
409
|
+
enumerable: true,
|
|
410
|
+
get: function () {
|
|
411
|
+
return _Gloss.GlossExample;
|
|
412
|
+
}
|
|
413
|
+
});
|
|
408
414
|
Object.defineProperty(exports, "Grid", {
|
|
409
415
|
enumerable: true,
|
|
410
416
|
get: function () {
|
|
@@ -15,7 +15,7 @@ export declare const contentTypes: {
|
|
|
15
15
|
LEARNING_PATH: string;
|
|
16
16
|
TOPIC: string;
|
|
17
17
|
MULTIDISCIPLINARY_TOPIC: string;
|
|
18
|
-
}, subjectCategories: typeof import("../model/SubjectCategories"), subjectTypes: typeof import("../model/SubjectTypes"), wordClass: typeof import("../model/WordClass")
|
|
18
|
+
}, subjectCategories: typeof import("../model/SubjectCategories"), subjectTypes: typeof import("../model/SubjectTypes"), wordClass: typeof import("../model/WordClass");
|
|
19
19
|
declare const messages: {
|
|
20
20
|
filterButtons: {
|
|
21
21
|
removeAllFilters: string;
|
|
@@ -79,7 +79,9 @@ declare const messages: {
|
|
|
79
79
|
folder: {
|
|
80
80
|
folder: string;
|
|
81
81
|
delete: string;
|
|
82
|
+
deleteShort: string;
|
|
82
83
|
edit: string;
|
|
84
|
+
editShort: string;
|
|
83
85
|
copy: string;
|
|
84
86
|
open: string;
|
|
85
87
|
close: string;
|
|
@@ -117,11 +119,14 @@ declare const messages: {
|
|
|
117
119
|
};
|
|
118
120
|
button: {
|
|
119
121
|
share: string;
|
|
122
|
+
shareShort: string;
|
|
120
123
|
preview: string;
|
|
124
|
+
previewShort: string;
|
|
121
125
|
goTo: string;
|
|
122
126
|
unShare: string;
|
|
123
127
|
shareLink: string;
|
|
124
128
|
};
|
|
129
|
+
previewInformation: string;
|
|
125
130
|
};
|
|
126
131
|
};
|
|
127
132
|
arena: {
|
|
@@ -190,9 +195,9 @@ declare const messages: {
|
|
|
190
195
|
description: string;
|
|
191
196
|
myNotification: string;
|
|
192
197
|
markAll: string;
|
|
193
|
-
commentedOn: string;
|
|
194
198
|
subscribe: string;
|
|
195
199
|
unsubscribe: string;
|
|
200
|
+
commentedOn: string;
|
|
196
201
|
};
|
|
197
202
|
topicsBy: string;
|
|
198
203
|
};
|
|
@@ -214,6 +219,7 @@ declare const messages: {
|
|
|
214
219
|
myTags: string;
|
|
215
220
|
mySubjects: string;
|
|
216
221
|
newFolder: string;
|
|
222
|
+
newFolderShort: string;
|
|
217
223
|
newFolderUnder: string;
|
|
218
224
|
myAccount: string;
|
|
219
225
|
favourites: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.wordClass = exports.subjectTypes = exports.subjectCategories = exports.default = exports.contentTypes =
|
|
6
|
+
exports.wordClass = exports.subjectTypes = exports.subjectCategories = exports.default = exports.contentTypes = void 0;
|
|
7
7
|
var _licenses = require("@ndla/licenses");
|
|
8
8
|
var _model = _interopRequireDefault(require("../model"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -19,10 +19,8 @@ const {
|
|
|
19
19
|
contentTypes,
|
|
20
20
|
subjectCategories,
|
|
21
21
|
subjectTypes,
|
|
22
|
-
wordClass
|
|
23
|
-
Transcriptions
|
|
22
|
+
wordClass
|
|
24
23
|
} = _model.default;
|
|
25
|
-
exports.Transcriptions = Transcriptions;
|
|
26
24
|
exports.wordClass = wordClass;
|
|
27
25
|
exports.subjectTypes = subjectTypes;
|
|
28
26
|
exports.subjectCategories = subjectCategories;
|
|
@@ -1134,7 +1132,9 @@ const messages = {
|
|
|
1134
1132
|
folder: {
|
|
1135
1133
|
folder: 'Folder',
|
|
1136
1134
|
delete: 'Delete folder',
|
|
1135
|
+
deleteShort: 'Delete',
|
|
1137
1136
|
edit: 'Edit folder',
|
|
1137
|
+
editShort: 'Edit',
|
|
1138
1138
|
copy: 'Copy folder',
|
|
1139
1139
|
open: 'Open folder',
|
|
1140
1140
|
close: 'Close folder',
|
|
@@ -1172,11 +1172,14 @@ const messages = {
|
|
|
1172
1172
|
},
|
|
1173
1173
|
button: {
|
|
1174
1174
|
share: 'Share folder',
|
|
1175
|
+
shareShort: 'Share',
|
|
1175
1176
|
preview: 'Preview folder',
|
|
1177
|
+
previewShort: 'Preview',
|
|
1176
1178
|
goTo: 'Go to shared folder',
|
|
1177
1179
|
unShare: 'Stop sharing',
|
|
1178
1180
|
shareLink: 'Copy link'
|
|
1179
|
-
}
|
|
1181
|
+
},
|
|
1182
|
+
previewInformation: 'Preview of shared folder. The folder is not available to others until you update its status to shared.'
|
|
1180
1183
|
}
|
|
1181
1184
|
},
|
|
1182
1185
|
arena: {
|
|
@@ -1245,9 +1248,9 @@ const messages = {
|
|
|
1245
1248
|
description: 'Welcome to NDLA Arena. Here you can discuss, share and cooperate with other teachers from all of Norway. You will find forums for the different subjects and themes.',
|
|
1246
1249
|
myNotification: 'My notifications',
|
|
1247
1250
|
markAll: 'Mark all as read',
|
|
1248
|
-
commentedOn: 'commented on your post',
|
|
1249
1251
|
subscribe: 'You will now be notified of new replies to this topic',
|
|
1250
|
-
unsubscribe: 'You have turned off notification of new replies to this topic'
|
|
1252
|
+
unsubscribe: 'You have turned off notification of new replies to this topic',
|
|
1253
|
+
commentedOn: 'commented on the post {{title}} which you follow'
|
|
1251
1254
|
},
|
|
1252
1255
|
topicsBy: 'Topics by'
|
|
1253
1256
|
},
|
|
@@ -1269,6 +1272,7 @@ const messages = {
|
|
|
1269
1272
|
myTags: 'My tags',
|
|
1270
1273
|
mySubjects: 'My subjects',
|
|
1271
1274
|
newFolder: 'New folder',
|
|
1275
|
+
newFolderShort: 'New',
|
|
1272
1276
|
newFolderUnder: 'Create new folder under {{folderName}}',
|
|
1273
1277
|
myAccount: 'My account',
|
|
1274
1278
|
favourites: 'Favourites',
|
|
@@ -79,7 +79,9 @@ declare const messages: {
|
|
|
79
79
|
folder: {
|
|
80
80
|
folder: string;
|
|
81
81
|
delete: string;
|
|
82
|
+
deleteShort: string;
|
|
82
83
|
edit: string;
|
|
84
|
+
editShort: string;
|
|
83
85
|
copy: string;
|
|
84
86
|
open: string;
|
|
85
87
|
close: string;
|
|
@@ -117,11 +119,14 @@ declare const messages: {
|
|
|
117
119
|
};
|
|
118
120
|
button: {
|
|
119
121
|
share: string;
|
|
122
|
+
shareShort: string;
|
|
120
123
|
preview: string;
|
|
124
|
+
previewShort: string;
|
|
121
125
|
goTo: string;
|
|
122
126
|
unShare: string;
|
|
123
127
|
shareLink: string;
|
|
124
128
|
};
|
|
129
|
+
previewInformation: string;
|
|
125
130
|
};
|
|
126
131
|
};
|
|
127
132
|
arena: {
|
|
@@ -190,9 +195,9 @@ declare const messages: {
|
|
|
190
195
|
description: string;
|
|
191
196
|
myNotification: string;
|
|
192
197
|
markAll: string;
|
|
193
|
-
commentedOn: string;
|
|
194
198
|
subscribe: string;
|
|
195
199
|
unsubscribe: string;
|
|
200
|
+
commentedOn: string;
|
|
196
201
|
};
|
|
197
202
|
topicsBy: string;
|
|
198
203
|
};
|
|
@@ -214,6 +219,7 @@ declare const messages: {
|
|
|
214
219
|
myTags: string;
|
|
215
220
|
mySubjects: string;
|
|
216
221
|
newFolder: string;
|
|
222
|
+
newFolderShort: string;
|
|
217
223
|
newFolderUnder: string;
|
|
218
224
|
myAccount: string;
|
|
219
225
|
favourites: string;
|
|
@@ -1132,7 +1132,9 @@ const messages = {
|
|
|
1132
1132
|
folder: {
|
|
1133
1133
|
folder: 'Mappe',
|
|
1134
1134
|
delete: 'Slett mappe',
|
|
1135
|
+
deleteShort: 'Slett',
|
|
1135
1136
|
edit: 'Rediger mappe',
|
|
1137
|
+
editShort: 'Rediger',
|
|
1136
1138
|
copy: 'Kopier mappe',
|
|
1137
1139
|
open: 'Åpne mappe',
|
|
1138
1140
|
close: 'Lukk mappe',
|
|
@@ -1170,11 +1172,14 @@ const messages = {
|
|
|
1170
1172
|
},
|
|
1171
1173
|
button: {
|
|
1172
1174
|
share: 'Del mappe',
|
|
1175
|
+
shareShort: 'Del',
|
|
1173
1176
|
preview: 'Forhåndsvis mappe',
|
|
1177
|
+
previewShort: 'Forhåndsvis',
|
|
1174
1178
|
goTo: 'Gå til delt mappe',
|
|
1175
1179
|
unShare: 'Avslutt deling',
|
|
1176
1180
|
shareLink: 'Kopier lenke'
|
|
1177
|
-
}
|
|
1181
|
+
},
|
|
1182
|
+
previewInformation: 'Forhåndsvisning av delt mappe. Mappa blir ikke tilgjengelig for andre før du setter den som delt.'
|
|
1178
1183
|
}
|
|
1179
1184
|
},
|
|
1180
1185
|
arena: {
|
|
@@ -1243,9 +1248,9 @@ const messages = {
|
|
|
1243
1248
|
description: 'Velkommen til NDLA Arena. Her kan du diskutere, dele og samarbeide med andre lærere fra hele Norge. Du finner forum for ulike fag og tema.',
|
|
1244
1249
|
myNotification: 'Mine varsler',
|
|
1245
1250
|
markAll: 'Merk alle som lest',
|
|
1246
|
-
commentedOn: 'svarte på ditt innlegg',
|
|
1247
1251
|
subscribe: 'Du får nå varsling om nye svar på dette innlegget',
|
|
1248
|
-
unsubscribe: 'Du har skrudd av varsling om nye svar på dette innlegget'
|
|
1252
|
+
unsubscribe: 'Du har skrudd av varsling om nye svar på dette innlegget',
|
|
1253
|
+
commentedOn: 'svarte på innlegget {{title}} som du følger'
|
|
1249
1254
|
},
|
|
1250
1255
|
topicsBy: 'Innlegg av'
|
|
1251
1256
|
},
|
|
@@ -1267,6 +1272,7 @@ const messages = {
|
|
|
1267
1272
|
myTags: 'Mine emneknagger',
|
|
1268
1273
|
mySubjects: 'Mine fag',
|
|
1269
1274
|
newFolder: 'Ny mappe',
|
|
1275
|
+
newFolderShort: 'Ny',
|
|
1270
1276
|
newFolderUnder: 'Lag ny mappe under {{folderName}}',
|
|
1271
1277
|
myAccount: 'Min konto',
|
|
1272
1278
|
favourites: 'Favoritter',
|
|
@@ -79,7 +79,9 @@ declare const messages: {
|
|
|
79
79
|
folder: {
|
|
80
80
|
folder: string;
|
|
81
81
|
delete: string;
|
|
82
|
+
deleteShort: string;
|
|
82
83
|
edit: string;
|
|
84
|
+
editShort: string;
|
|
83
85
|
copy: string;
|
|
84
86
|
open: string;
|
|
85
87
|
close: string;
|
|
@@ -117,11 +119,14 @@ declare const messages: {
|
|
|
117
119
|
};
|
|
118
120
|
button: {
|
|
119
121
|
share: string;
|
|
122
|
+
shareShort: string;
|
|
120
123
|
preview: string;
|
|
124
|
+
previewShort: string;
|
|
121
125
|
goTo: string;
|
|
122
126
|
unShare: string;
|
|
123
127
|
shareLink: string;
|
|
124
128
|
};
|
|
129
|
+
previewInformation: string;
|
|
125
130
|
};
|
|
126
131
|
};
|
|
127
132
|
arena: {
|
|
@@ -190,9 +195,9 @@ declare const messages: {
|
|
|
190
195
|
description: string;
|
|
191
196
|
myNotification: string;
|
|
192
197
|
markAll: string;
|
|
193
|
-
commentedOn: string;
|
|
194
198
|
subscribe: string;
|
|
195
199
|
unsubscribe: string;
|
|
200
|
+
commentedOn: string;
|
|
196
201
|
};
|
|
197
202
|
topicsBy: string;
|
|
198
203
|
};
|
|
@@ -214,6 +219,7 @@ declare const messages: {
|
|
|
214
219
|
myTags: string;
|
|
215
220
|
mySubjects: string;
|
|
216
221
|
newFolder: string;
|
|
222
|
+
newFolderShort: string;
|
|
217
223
|
newFolderUnder: string;
|
|
218
224
|
myAccount: string;
|
|
219
225
|
favourites: string;
|
|
@@ -1132,7 +1132,9 @@ const messages = {
|
|
|
1132
1132
|
folder: {
|
|
1133
1133
|
folder: 'Mappe',
|
|
1134
1134
|
delete: 'Slett mappe',
|
|
1135
|
+
deleteShort: 'Slett',
|
|
1135
1136
|
edit: 'Rediger mappe',
|
|
1137
|
+
editShort: 'Rediger',
|
|
1136
1138
|
copy: 'Kopier mappe',
|
|
1137
1139
|
open: 'Åpne mappe',
|
|
1138
1140
|
close: 'Lukk mappe',
|
|
@@ -1170,11 +1172,14 @@ const messages = {
|
|
|
1170
1172
|
},
|
|
1171
1173
|
button: {
|
|
1172
1174
|
share: 'Del mappe',
|
|
1175
|
+
shareShort: 'Del',
|
|
1173
1176
|
preview: 'Førehandsvis mappe',
|
|
1177
|
+
previewShort: 'Førehandsvis',
|
|
1174
1178
|
goTo: 'Gå til delt mappe',
|
|
1175
1179
|
unShare: 'Avslutt deling',
|
|
1176
1180
|
shareLink: 'Kopier lenke'
|
|
1177
|
-
}
|
|
1181
|
+
},
|
|
1182
|
+
previewInformation: 'Førehandsvising av delt mappe. Mappa blir ikkje tilgjengeleg for andre før du set ho som delt.'
|
|
1178
1183
|
}
|
|
1179
1184
|
},
|
|
1180
1185
|
arena: {
|
|
@@ -1243,9 +1248,9 @@ const messages = {
|
|
|
1243
1248
|
description: 'Velkomen til NDLA Arena. Her kan du diskutere, dele og samarbeide med andre lærarar frå heile Noreg. Du finn forum for ulike fag og tema.',
|
|
1244
1249
|
myNotification: 'Mine varsler',
|
|
1245
1250
|
markAll: 'Merk alle som lest',
|
|
1246
|
-
commentedOn: 'svarte på ditt innlegg',
|
|
1247
1251
|
subscribe: 'Du får no varsling om nye svar på dette innlegget',
|
|
1248
|
-
unsubscribe: 'Du har skrudd av varsling om nye svar på dette innlegget'
|
|
1252
|
+
unsubscribe: 'Du har skrudd av varsling om nye svar på dette innlegget',
|
|
1253
|
+
commentedOn: 'svarte på innlegget {{title}} som du følger'
|
|
1249
1254
|
},
|
|
1250
1255
|
topicsBy: 'Innlegg av'
|
|
1251
1256
|
},
|
|
@@ -1267,6 +1272,7 @@ const messages = {
|
|
|
1267
1272
|
myTags: 'Mine emneknaggar',
|
|
1268
1273
|
mySubjects: 'Mine fag',
|
|
1269
1274
|
newFolder: 'Ny mappe',
|
|
1275
|
+
newFolderShort: 'Ny',
|
|
1270
1276
|
newFolderUnder: 'Lag ny mappe under {{folderName}}',
|
|
1271
1277
|
myAccount: 'Min konto',
|
|
1272
1278
|
favourites: 'Favorittar',
|
|
@@ -79,7 +79,9 @@ declare const messages: {
|
|
|
79
79
|
folder: {
|
|
80
80
|
folder: string;
|
|
81
81
|
delete: string;
|
|
82
|
+
deleteShort: string;
|
|
82
83
|
edit: string;
|
|
84
|
+
editShort: string;
|
|
83
85
|
copy: string;
|
|
84
86
|
open: string;
|
|
85
87
|
close: string;
|
|
@@ -117,11 +119,14 @@ declare const messages: {
|
|
|
117
119
|
};
|
|
118
120
|
button: {
|
|
119
121
|
share: string;
|
|
122
|
+
shareShort: string;
|
|
120
123
|
preview: string;
|
|
124
|
+
previewShort: string;
|
|
121
125
|
goTo: string;
|
|
122
126
|
unShare: string;
|
|
123
127
|
shareLink: string;
|
|
124
128
|
};
|
|
129
|
+
previewInformation: string;
|
|
125
130
|
};
|
|
126
131
|
};
|
|
127
132
|
arena: {
|
|
@@ -190,9 +195,9 @@ declare const messages: {
|
|
|
190
195
|
description: string;
|
|
191
196
|
myNotification: string;
|
|
192
197
|
markAll: string;
|
|
193
|
-
commentedOn: string;
|
|
194
198
|
subscribe: string;
|
|
195
199
|
unsubscribe: string;
|
|
200
|
+
commentedOn: string;
|
|
196
201
|
};
|
|
197
202
|
topicsBy: string;
|
|
198
203
|
};
|
|
@@ -214,6 +219,7 @@ declare const messages: {
|
|
|
214
219
|
myTags: string;
|
|
215
220
|
mySubjects: string;
|
|
216
221
|
newFolder: string;
|
|
222
|
+
newFolderShort: string;
|
|
217
223
|
newFolderUnder: string;
|
|
218
224
|
myAccount: string;
|
|
219
225
|
favourites: string;
|
|
@@ -1132,7 +1132,9 @@ const messages = {
|
|
|
1132
1132
|
folder: {
|
|
1133
1133
|
folder: 'Máhppa',
|
|
1134
1134
|
delete: 'Sihko máhpa',
|
|
1135
|
+
deleteShort: 'Sihko',
|
|
1135
1136
|
edit: 'Rievdat máhpa',
|
|
1137
|
+
editShort: 'Rievdat',
|
|
1136
1138
|
copy: 'Máŋge máhpa',
|
|
1137
1139
|
open: 'Raba máhpa',
|
|
1138
1140
|
close: 'Gidde máhpa',
|
|
@@ -1170,11 +1172,14 @@ const messages = {
|
|
|
1170
1172
|
},
|
|
1171
1173
|
button: {
|
|
1172
1174
|
share: 'Juoge máhpa',
|
|
1173
|
-
|
|
1175
|
+
shareShort: 'Juoge',
|
|
1176
|
+
preview: 'Ovdačájehanmáhppa',
|
|
1177
|
+
previewShort: 'Ovdačájeheapmi',
|
|
1174
1178
|
goTo: 'Mana juogaduvvon máhppii',
|
|
1175
1179
|
unShare: 'Loahpat juogdeami',
|
|
1176
1180
|
shareLink: 'Máŋge liŋkka'
|
|
1177
|
-
}
|
|
1181
|
+
},
|
|
1182
|
+
previewInformation: 'Juohkejuvvon máhpa ovdačájeheapmi. Máhppa ii leat earáid olámuttos ovdal go ođasmahttá stáhtusa juohkehažžii.'
|
|
1178
1183
|
}
|
|
1179
1184
|
},
|
|
1180
1185
|
arena: {
|
|
@@ -1243,9 +1248,9 @@ const messages = {
|
|
|
1243
1248
|
description: 'Bures boahtin NDLA Arenai. Dáppe sáhtát digaštallat, juogadit ja ovttasbargat eará oahpaheddjiiguin olles Norggas. Sierra fágaide ja fáttáide gávdnojit forumat.',
|
|
1244
1249
|
myNotification: 'Mu signállat',
|
|
1245
1250
|
markAll: 'Merke visot lohkon',
|
|
1246
|
-
commentedOn: 'vástidedje du sáhkavuoru',
|
|
1247
1251
|
subscribe: 'Don oaččut dál dieđu ođđa vástádusaid dán čállosii',
|
|
1248
|
-
unsubscribe: 'Don leat heaitán muittuheames ođđa vástádusaid dán čállosii'
|
|
1252
|
+
unsubscribe: 'Don leat heaitán muittuheames ođđa vástádusaid dán čállosii',
|
|
1253
|
+
commentedOn: 'vástidii sáhkavuoru {{title}} maid don čuovvut'
|
|
1249
1254
|
},
|
|
1250
1255
|
topicsBy: 'Sáhkavuorru maid'
|
|
1251
1256
|
},
|
|
@@ -1267,6 +1272,7 @@ const messages = {
|
|
|
1267
1272
|
myTags: 'Mu fáddágilkorat',
|
|
1268
1273
|
mySubjects: 'Mu fágat',
|
|
1269
1274
|
newFolder: 'Ođđa máhppa',
|
|
1275
|
+
newFolderShort: 'Ođđa',
|
|
1270
1276
|
newFolderUnder: 'Ráhkat ođđa máhpa dán vuolde {{folderName}}',
|
|
1271
1277
|
myAccount: 'Mu kontu',
|
|
1272
1278
|
favourites: 'Oiddohat',
|
|
@@ -79,7 +79,9 @@ declare const messages: {
|
|
|
79
79
|
folder: {
|
|
80
80
|
folder: string;
|
|
81
81
|
delete: string;
|
|
82
|
+
deleteShort: string;
|
|
82
83
|
edit: string;
|
|
84
|
+
editShort: string;
|
|
83
85
|
copy: string;
|
|
84
86
|
open: string;
|
|
85
87
|
close: string;
|
|
@@ -117,11 +119,14 @@ declare const messages: {
|
|
|
117
119
|
};
|
|
118
120
|
button: {
|
|
119
121
|
share: string;
|
|
122
|
+
shareShort: string;
|
|
120
123
|
preview: string;
|
|
124
|
+
previewShort: string;
|
|
121
125
|
goTo: string;
|
|
122
126
|
unShare: string;
|
|
123
127
|
shareLink: string;
|
|
124
128
|
};
|
|
129
|
+
previewInformation: string;
|
|
125
130
|
};
|
|
126
131
|
};
|
|
127
132
|
arena: {
|
|
@@ -190,9 +195,9 @@ declare const messages: {
|
|
|
190
195
|
description: string;
|
|
191
196
|
myNotification: string;
|
|
192
197
|
markAll: string;
|
|
193
|
-
commentedOn: string;
|
|
194
198
|
subscribe: string;
|
|
195
199
|
unsubscribe: string;
|
|
200
|
+
commentedOn: string;
|
|
196
201
|
};
|
|
197
202
|
topicsBy: string;
|
|
198
203
|
};
|
|
@@ -214,6 +219,7 @@ declare const messages: {
|
|
|
214
219
|
myTags: string;
|
|
215
220
|
mySubjects: string;
|
|
216
221
|
newFolder: string;
|
|
222
|
+
newFolderShort: string;
|
|
217
223
|
newFolderUnder: string;
|
|
218
224
|
myAccount: string;
|
|
219
225
|
favourites: string;
|
|
@@ -1131,8 +1131,10 @@ const messages = {
|
|
|
1131
1131
|
showEditOptions: 'Vuesehth guktie edtja øørnedh',
|
|
1132
1132
|
folder: {
|
|
1133
1133
|
folder: 'Mappe',
|
|
1134
|
-
delete: '
|
|
1135
|
-
|
|
1134
|
+
delete: 'Maabpem sliejhtedh',
|
|
1135
|
+
deleteShort: 'Staeriedidh',
|
|
1136
|
+
edit: 'Maabpah staeriedidh',
|
|
1137
|
+
editShort: 'Rediger',
|
|
1136
1138
|
copy: 'Kopier mappe',
|
|
1137
1139
|
open: 'Åpne mappe',
|
|
1138
1140
|
close: 'Lukk mappe',
|
|
@@ -1170,11 +1172,14 @@ const messages = {
|
|
|
1170
1172
|
},
|
|
1171
1173
|
button: {
|
|
1172
1174
|
share: 'Juekieh maabpah',
|
|
1175
|
+
shareShort: 'Juekieh',
|
|
1173
1176
|
preview: 'Maahpa åvtelhbodti vuartasjidh',
|
|
1177
|
+
previewShort: 'Åvtelhbodti soejkesjimmie',
|
|
1174
1178
|
goTo: 'Vaedtsieh naemhtie juekedh mappine',
|
|
1175
1179
|
unShare: 'Orrijh juekedh',
|
|
1176
1180
|
shareLink: 'Lïenghkem kopijeradidh'
|
|
1177
|
-
}
|
|
1181
|
+
},
|
|
1182
|
+
previewInformation: 'Åvtevuesiehtimmie juakeme maabpeste. Jeatjah eah maahta maabpam nåhtadidh åvtelen datne statusen bïjre orresth.'
|
|
1178
1183
|
}
|
|
1179
1184
|
},
|
|
1180
1185
|
arena: {
|
|
@@ -1243,9 +1248,9 @@ const messages = {
|
|
|
1243
1248
|
description: 'Buerie båeteme NDLA Aernesne . Daesnie maahtah digkiedidh , juekedh jïh laavenjostedh jeatjah lohkehtæjjajgujmie abpe Nöörjeste . Datne gaavnh forume, ovmessie faagh jïh aamhtesh .',
|
|
1244
1249
|
myNotification: 'Mov tjoejemolseme',
|
|
1245
1250
|
markAll: 'Mïerhkesjh gaajhkesh dovnesh lohkeme',
|
|
1246
|
-
commentedOn: 'vaestiedi gåessie dov saarnoeh',
|
|
1247
1251
|
subscribe: 'Datne åadtjoeh daelie bïeljelimmiem orre vaestiedassi bïjre daan tjaalegasse',
|
|
1248
|
-
unsubscribe: 'Datne tjeakoeslaakan bïeljelamme jis orre vaestiedassh daan påastese'
|
|
1252
|
+
unsubscribe: 'Datne tjeakoeslaakan bïeljelamme jis orre vaestiedassh daan påastese',
|
|
1253
|
+
commentedOn: 'tjeakoes laakan vaestiedamme {{title}} maam datne dåarjoehtidh'
|
|
1249
1254
|
},
|
|
1250
1255
|
topicsBy: 'Vuesiehtimmien gaavhtan'
|
|
1251
1256
|
},
|
|
@@ -1266,7 +1271,8 @@ const messages = {
|
|
|
1266
1271
|
myFolders: 'Mine mapper',
|
|
1267
1272
|
myTags: 'Mine emneknagger',
|
|
1268
1273
|
mySubjects: 'Mine fag',
|
|
1269
|
-
newFolder: '
|
|
1274
|
+
newFolder: 'Orre maabpe',
|
|
1275
|
+
newFolderShort: 'Orre',
|
|
1270
1276
|
newFolderUnder: 'Lag ny mappe under {{folderName}}',
|
|
1271
1277
|
myAccount: 'Min konto',
|
|
1272
1278
|
favourites: 'Favoritter',
|
package/lib/model/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import * as subjectCategories from './SubjectCategories';
|
|
9
9
|
import * as subjectTypes from './SubjectTypes';
|
|
10
10
|
import * as wordClass from './WordClass';
|
|
11
|
-
import * as Transcriptions from './Transcriptions';
|
|
12
11
|
declare const model: {
|
|
13
12
|
contentTypes: {
|
|
14
13
|
SUBJECT_MATERIAL: string;
|
|
@@ -26,6 +25,5 @@ declare const model: {
|
|
|
26
25
|
contentTypeMapping: Record<string, string>;
|
|
27
26
|
resourceEmbedTypeMapping: Record<string, string>;
|
|
28
27
|
wordClass: typeof wordClass;
|
|
29
|
-
Transcriptions: typeof Transcriptions;
|
|
30
28
|
};
|
|
31
29
|
export default model;
|
package/lib/model/index.js
CHANGED
|
@@ -8,7 +8,6 @@ var _ContentType = require("./ContentType");
|
|
|
8
8
|
var subjectCategories = _interopRequireWildcard(require("./SubjectCategories"));
|
|
9
9
|
var subjectTypes = _interopRequireWildcard(require("./SubjectTypes"));
|
|
10
10
|
var wordClass = _interopRequireWildcard(require("./WordClass"));
|
|
11
|
-
var Transcriptions = _interopRequireWildcard(require("./Transcriptions"));
|
|
12
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
12
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
13
|
/**
|
|
@@ -25,7 +24,6 @@ const model = {
|
|
|
25
24
|
subjectTypes,
|
|
26
25
|
contentTypeMapping: _ContentType.contentTypeMapping,
|
|
27
26
|
resourceEmbedTypeMapping: _ContentType.resourceEmbedTypeMapping,
|
|
28
|
-
wordClass
|
|
29
|
-
Transcriptions
|
|
27
|
+
wordClass
|
|
30
28
|
};
|
|
31
29
|
var _default = exports.default = model;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "50.
|
|
3
|
+
"version": "50.2.0",
|
|
4
4
|
"description": "UI component library for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"@ndla/carousel": "^4.0.16",
|
|
37
37
|
"@ndla/core": "^4.2.7",
|
|
38
38
|
"@ndla/dropdown-menu": "^1.0.17",
|
|
39
|
-
"@ndla/forms": "^5.2.
|
|
39
|
+
"@ndla/forms": "^5.2.4",
|
|
40
40
|
"@ndla/hooks": "^2.1.2",
|
|
41
41
|
"@ndla/icons": "^4.2.2",
|
|
42
42
|
"@ndla/licenses": "^7.2.2",
|
|
43
|
-
"@ndla/modal": "^5.0.
|
|
43
|
+
"@ndla/modal": "^5.0.15",
|
|
44
44
|
"@ndla/notion": "^6.0.16",
|
|
45
45
|
"@ndla/safelink": "^4.1.40",
|
|
46
46
|
"@ndla/select": "^3.2.2",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@ndla/types-backend": "^0.2.21",
|
|
74
|
-
"@ndla/types-embed": "^4.0.
|
|
74
|
+
"@ndla/types-embed": "^4.0.8",
|
|
75
75
|
"css-loader": "^6.7.3",
|
|
76
76
|
"mini-css-extract-plugin": "^2.7.5",
|
|
77
77
|
"sass-loader": "^13.2.2",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "910ef95efaf9f3098baeac0707b477ecf6146111"
|
|
85
85
|
}
|
|
@@ -123,6 +123,8 @@ export const ConceptEmbed = ({ embed, fullWidth, heartButton: HeartButton, lang
|
|
|
123
123
|
conceptType={concept.conceptType}
|
|
124
124
|
glossData={concept.glossData}
|
|
125
125
|
lang={lang}
|
|
126
|
+
exampleIds={embed.embedData.exampleIds}
|
|
127
|
+
exampleLangs={embed.embedData.exampleLangs}
|
|
126
128
|
/>
|
|
127
129
|
);
|
|
128
130
|
} else if (embed.embedData.type === 'inline') {
|
|
@@ -140,6 +142,8 @@ export const ConceptEmbed = ({ embed, fullWidth, heartButton: HeartButton, lang
|
|
|
140
142
|
conceptType={concept.conceptType}
|
|
141
143
|
glossData={concept.glossData}
|
|
142
144
|
lang={lang}
|
|
145
|
+
exampleIds={embed.embedData.exampleIds}
|
|
146
|
+
exampleLangs={embed.embedData.exampleLangs}
|
|
143
147
|
/>
|
|
144
148
|
);
|
|
145
149
|
} else {
|
|
@@ -156,6 +160,8 @@ export const ConceptEmbed = ({ embed, fullWidth, heartButton: HeartButton, lang
|
|
|
156
160
|
conceptType={concept.conceptType}
|
|
157
161
|
glossData={concept.glossData}
|
|
158
162
|
lang={lang}
|
|
163
|
+
exampleIds={embed.embedData.exampleIds}
|
|
164
|
+
exampleLangs={embed.embedData.exampleLangs}
|
|
159
165
|
/>
|
|
160
166
|
);
|
|
161
167
|
}
|
|
@@ -166,6 +172,8 @@ interface InlineConceptProps extends ConceptNotionData {
|
|
|
166
172
|
heartButton?: HeartButtonType;
|
|
167
173
|
headerButtons?: ReactNode;
|
|
168
174
|
conceptHeartButton?: ReactNode;
|
|
175
|
+
exampleIds?: string;
|
|
176
|
+
exampleLangs?: string;
|
|
169
177
|
}
|
|
170
178
|
|
|
171
179
|
const BaselineIcon = styled.span`
|
|
@@ -239,6 +247,8 @@ export const InlineConcept = ({
|
|
|
239
247
|
conceptType,
|
|
240
248
|
headerButtons,
|
|
241
249
|
lang,
|
|
250
|
+
exampleIds,
|
|
251
|
+
exampleLangs,
|
|
242
252
|
}: InlineConceptProps) => {
|
|
243
253
|
const { t } = useTranslation();
|
|
244
254
|
const anchorRef = useRef<HTMLDivElement>(null);
|
|
@@ -290,6 +300,8 @@ export const InlineConcept = ({
|
|
|
290
300
|
}
|
|
291
301
|
conceptType={conceptType}
|
|
292
302
|
glossData={glossData}
|
|
303
|
+
exampleIds={exampleIds}
|
|
304
|
+
exampleLangs={exampleLangs}
|
|
293
305
|
/>
|
|
294
306
|
</Content>
|
|
295
307
|
</PopoverWrapper>
|
|
@@ -302,6 +314,8 @@ interface ConceptProps extends ConceptNotionData {
|
|
|
302
314
|
fullWidth?: boolean;
|
|
303
315
|
heartButton?: HeartButtonType;
|
|
304
316
|
conceptHeartButton?: ReactElement;
|
|
317
|
+
exampleIds?: string;
|
|
318
|
+
exampleLangs?: string;
|
|
305
319
|
}
|
|
306
320
|
|
|
307
321
|
export const BlockConcept = ({
|
|
@@ -317,6 +331,8 @@ export const BlockConcept = ({
|
|
|
317
331
|
glossData,
|
|
318
332
|
conceptType,
|
|
319
333
|
lang,
|
|
334
|
+
exampleIds,
|
|
335
|
+
exampleLangs,
|
|
320
336
|
}: ConceptProps) => {
|
|
321
337
|
const { t } = useTranslation();
|
|
322
338
|
const anchorRef = useRef<HTMLDivElement>(null);
|
|
@@ -418,6 +434,8 @@ export const BlockConcept = ({
|
|
|
418
434
|
? { src: visualElement.data.audioFile.url, title: visualElement.data.title.title }
|
|
419
435
|
: undefined
|
|
420
436
|
}
|
|
437
|
+
exampleIds={exampleIds}
|
|
438
|
+
exampleLangs={exampleLangs}
|
|
421
439
|
/>
|
|
422
440
|
)}
|
|
423
441
|
{copyright && conceptType === 'concept' && (
|