@ndla/ui 45.0.11 → 45.0.13
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/BannerCard/BannerCard.js +7 -7
- package/es/FrontpageArticle/FrontpageArticle.js +13 -20
- package/es/LearningPaths/LearningPathLastStepNavigation.js +8 -18
- package/es/locale/messages-en.js +3 -3
- package/es/locale/messages-nb.js +3 -3
- package/es/locale/messages-nn.js +3 -3
- package/es/locale/messages-se.js +3 -3
- package/es/locale/messages-sma.js +3 -3
- package/es/model/WordClass.js +36 -36
- package/es/model/index.js +2 -2
- package/lib/BannerCard/BannerCard.js +7 -7
- package/lib/FrontpageArticle/FrontpageArticle.js +13 -20
- package/lib/LearningPaths/LearningPathLastStepNavigation.js +16 -24
- package/lib/locale/messages-en.d.ts +1 -1
- package/lib/locale/messages-en.js +4 -4
- package/lib/locale/messages-nb.d.ts +1 -1
- package/lib/locale/messages-nb.js +4 -4
- package/lib/locale/messages-nn.d.ts +1 -1
- package/lib/locale/messages-nn.js +4 -4
- package/lib/locale/messages-se.d.ts +1 -1
- package/lib/locale/messages-se.js +4 -4
- package/lib/locale/messages-sma.d.ts +1 -1
- package/lib/locale/messages-sma.js +4 -4
- package/lib/model/WordClass.d.ts +36 -36
- package/lib/model/WordClass.js +38 -38
- package/lib/model/index.d.ts +2 -2
- package/lib/model/index.js +2 -2
- package/package.json +5 -5
- package/src/BannerCard/BannerCard.tsx +1 -1
- package/src/FrontpageArticle/FrontpageArticle.tsx +11 -9
- package/src/Gloss/Gloss.stories.tsx +3 -3
- package/src/LearningPaths/LearningPathLastStepNavigation.tsx +9 -5
- package/src/locale/messages-en.ts +36 -36
- package/src/locale/messages-nb.ts +36 -36
- package/src/locale/messages-nn.ts +36 -36
- package/src/locale/messages-se.ts +36 -36
- package/src/locale/messages-sma.ts +36 -36
- package/src/model/WordClass.ts +36 -36
- package/src/model/index.ts +2 -2
|
@@ -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"),
|
|
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;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
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
|
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo, _wordClass;
|
|
@@ -23,8 +23,8 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
23
23
|
var contentTypes = _model.default.contentTypes,
|
|
24
24
|
subjectCategories = _model.default.subjectCategories,
|
|
25
25
|
subjectTypes = _model.default.subjectTypes,
|
|
26
|
-
|
|
27
|
-
exports.
|
|
26
|
+
wordClass = _model.default.wordClass;
|
|
27
|
+
exports.wordClass = wordClass;
|
|
28
28
|
exports.subjectTypes = subjectTypes;
|
|
29
29
|
exports.subjectCategories = subjectCategories;
|
|
30
30
|
exports.contentTypes = contentTypes;
|
|
@@ -1302,7 +1302,7 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1302
1302
|
pinyin: 'Pinyin'
|
|
1303
1303
|
}
|
|
1304
1304
|
},
|
|
1305
|
-
wordClass: (_wordClass = {}, _defineProperty(_wordClass,
|
|
1305
|
+
wordClass: (_wordClass = {}, _defineProperty(_wordClass, wordClass.wordClass.adjective, 'Adjektiv'), _defineProperty(_wordClass, wordClass.wordClass.adverb, 'Adverb'), _defineProperty(_wordClass, wordClass.wordClass.properNoun, 'Egennavn'), _defineProperty(_wordClass, wordClass.wordClass.auxiliary, 'Hjelpeord'), _defineProperty(_wordClass, wordClass.wordClass.complement, 'Komplement'), _defineProperty(_wordClass, wordClass.wordClass.conjunction, 'Konjunksjon'), _defineProperty(_wordClass, wordClass.wordClass.coverb, 'Koverb'), _defineProperty(_wordClass, wordClass.wordClass.determiner, 'Bestemmerord'), _defineProperty(_wordClass, wordClass.wordClass.interjection, 'Interjeksjon'), _defineProperty(_wordClass, wordClass.wordClass.quantifier, 'Kvantor'), _defineProperty(_wordClass, wordClass.wordClass.marker, 'Markør'), _defineProperty(_wordClass, wordClass.wordClass.modalVerb, 'Modalverb'), _defineProperty(_wordClass, wordClass.wordClass.measureWord, 'Målord'), _defineProperty(_wordClass, wordClass.wordClass.noun, 'Substantiv'), _defineProperty(_wordClass, wordClass.wordClass['noun-zh'], 'Nomen'), _defineProperty(_wordClass, wordClass.wordClass.nounPhrase, 'Nominalfrase'), _defineProperty(_wordClass, wordClass.wordClass.onomatopoeia, 'Onomatopoetikon'), _defineProperty(_wordClass, wordClass.wordClass.particle, 'Partikkel'), _defineProperty(_wordClass, wordClass.wordClass.demonstrative, 'Pekeord'), _defineProperty(_wordClass, wordClass.wordClass.personalPronoun, 'Personlig pronomen'), _defineProperty(_wordClass, wordClass.wordClass.preposition, 'Preposisjon'), _defineProperty(_wordClass, wordClass.wordClass.pronoun, 'Pronomen'), _defineProperty(_wordClass, wordClass.wordClass.questionWord, 'Spørreord'), _defineProperty(_wordClass, wordClass.wordClass.locationWord, 'Stedsord'), _defineProperty(_wordClass, wordClass.wordClass.suffix, 'Suffiks'), _defineProperty(_wordClass, wordClass.wordClass.numeral, 'Tallord'), _defineProperty(_wordClass, wordClass.wordClass.timeWord, 'Tidsord'), _defineProperty(_wordClass, wordClass.wordClass.timeExpression, 'Tidsuttrykk'), _defineProperty(_wordClass, wordClass.wordClass.stativeVerb, 'Tilstandsverb'), _defineProperty(_wordClass, wordClass.wordClass.subordinatingConjunction, 'Subjunksjon'), _defineProperty(_wordClass, wordClass.wordClass.exclamationWord, 'Utropsord'), _defineProperty(_wordClass, wordClass.wordClass.expression, 'Uttrykk'), _defineProperty(_wordClass, wordClass.wordClass.verb, 'Verb'), _defineProperty(_wordClass, wordClass.wordClass.verbComplement, 'Verb-komplement'), _defineProperty(_wordClass, wordClass.wordClass.verbObject, 'Verb-objekt'), _wordClass),
|
|
1306
1306
|
about: {
|
|
1307
1307
|
menuTitle: 'Om NDLA'
|
|
1308
1308
|
}
|
|
@@ -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"),
|
|
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;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
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
|
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo, _wordClass;
|
|
@@ -23,8 +23,8 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
23
23
|
var contentTypes = _model.default.contentTypes,
|
|
24
24
|
subjectCategories = _model.default.subjectCategories,
|
|
25
25
|
subjectTypes = _model.default.subjectTypes,
|
|
26
|
-
|
|
27
|
-
exports.
|
|
26
|
+
wordClass = _model.default.wordClass;
|
|
27
|
+
exports.wordClass = wordClass;
|
|
28
28
|
exports.subjectTypes = subjectTypes;
|
|
29
29
|
exports.subjectCategories = subjectCategories;
|
|
30
30
|
exports.contentTypes = contentTypes;
|
|
@@ -1302,7 +1302,7 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1302
1302
|
pinyin: 'Pinyin'
|
|
1303
1303
|
}
|
|
1304
1304
|
},
|
|
1305
|
-
wordClass: (_wordClass = {}, _defineProperty(_wordClass,
|
|
1305
|
+
wordClass: (_wordClass = {}, _defineProperty(_wordClass, wordClass.wordClass.adjective, 'Adjektiivvat'), _defineProperty(_wordClass, wordClass.wordClass.adverb, 'Advearba'), _defineProperty(_wordClass, wordClass.wordClass.properNoun, 'Iežas namma'), _defineProperty(_wordClass, wordClass.wordClass.auxiliary, 'Veahkkesánit'), _defineProperty(_wordClass, wordClass.wordClass.complement, 'Dievasmahttin'), _defineProperty(_wordClass, wordClass.wordClass.conjunction, 'Konjunksjon'), _defineProperty(_wordClass, wordClass.wordClass.coverb, 'Koverb'), _defineProperty(_wordClass, wordClass.wordClass.determiner, 'Mearrádussánit'), _defineProperty(_wordClass, wordClass.wordClass.interjection, 'Ovttastuvvon'), _defineProperty(_wordClass, wordClass.wordClass.quantifier, 'Kvantor'), _defineProperty(_wordClass, wordClass.wordClass.marker, 'Sieván'), _defineProperty(_wordClass, wordClass.wordClass.modalVerb, 'Modálavearba'), _defineProperty(_wordClass, wordClass.wordClass.measureWord, 'Olahussátni'), _defineProperty(_wordClass, wordClass.wordClass.noun, 'Substantiivvat'), _defineProperty(_wordClass, wordClass.wordClass['noun-zh'], 'Nome'), _defineProperty(_wordClass, wordClass.wordClass.nounPhrase, 'Nomengihppu'), _defineProperty(_wordClass, wordClass.wordClass.onomatopoeia, 'Onomatopoetikon'), _defineProperty(_wordClass, wordClass.wordClass.particle, 'Partihkkalat'), _defineProperty(_wordClass, wordClass.wordClass.demonstrative, 'Čujuhusat'), _defineProperty(_wordClass, wordClass.wordClass.personalPronoun, 'Persovnnalaš pronomen'), _defineProperty(_wordClass, wordClass.wordClass.preposition, 'Preposišuvdna'), _defineProperty(_wordClass, wordClass.wordClass.pronoun, 'Pronomen'), _defineProperty(_wordClass, wordClass.wordClass.questionWord, 'Jearaldatsánit'), _defineProperty(_wordClass, wordClass.wordClass.locationWord, 'Báikesánit'), _defineProperty(_wordClass, wordClass.wordClass.suffix, 'Suffivssat'), _defineProperty(_wordClass, wordClass.wordClass.numeral, 'Lohkosánit'), _defineProperty(_wordClass, wordClass.wordClass.timeWord, 'Áigebágo'), _defineProperty(_wordClass, wordClass.wordClass.timeExpression, 'Áigemearka'), _defineProperty(_wordClass, wordClass.wordClass.stativeVerb, 'Dili-vearbba'), _defineProperty(_wordClass, wordClass.wordClass.subordinatingConjunction, 'Subjunkšuvdna'), _defineProperty(_wordClass, wordClass.wordClass.exclamationWord, 'Ii-rohkossátni'), _defineProperty(_wordClass, wordClass.wordClass.expression, 'Ovdanbuktin'), _defineProperty(_wordClass, wordClass.wordClass.verb, 'Vearbbat'), _defineProperty(_wordClass, wordClass.wordClass.verbComplement, 'Vearbasuorggideapmi'), _defineProperty(_wordClass, wordClass.wordClass.verbObject, 'Vearbaobjeakta'), _wordClass),
|
|
1306
1306
|
about: {
|
|
1307
1307
|
menuTitle: 'NDLA birra'
|
|
1308
1308
|
}
|
|
@@ -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"),
|
|
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;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
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
|
var _subjectCategories, _subjectTypes, _contentTypeResultsSh, _contentTypeResultsSh2, _contentTypeResultsNo, _wordClass;
|
|
@@ -23,8 +23,8 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
23
23
|
var contentTypes = _model.default.contentTypes,
|
|
24
24
|
subjectCategories = _model.default.subjectCategories,
|
|
25
25
|
subjectTypes = _model.default.subjectTypes,
|
|
26
|
-
|
|
27
|
-
exports.
|
|
26
|
+
wordClass = _model.default.wordClass;
|
|
27
|
+
exports.wordClass = wordClass;
|
|
28
28
|
exports.subjectTypes = subjectTypes;
|
|
29
29
|
exports.subjectCategories = subjectCategories;
|
|
30
30
|
exports.contentTypes = contentTypes;
|
|
@@ -1302,7 +1302,7 @@ var messages = _objectSpread(_objectSpread({
|
|
|
1302
1302
|
pinyin: 'Pinyin'
|
|
1303
1303
|
}
|
|
1304
1304
|
},
|
|
1305
|
-
wordClass: (_wordClass = {}, _defineProperty(_wordClass,
|
|
1305
|
+
wordClass: (_wordClass = {}, _defineProperty(_wordClass, wordClass.wordClass.adjective, 'Adjektiv'), _defineProperty(_wordClass, wordClass.wordClass.adverb, 'Adverb'), _defineProperty(_wordClass, wordClass.wordClass.properNoun, 'Egennavn'), _defineProperty(_wordClass, wordClass.wordClass.auxiliary, 'Hjelpeord'), _defineProperty(_wordClass, wordClass.wordClass.complement, 'Komplement'), _defineProperty(_wordClass, wordClass.wordClass.conjunction, 'Konjunksjon'), _defineProperty(_wordClass, wordClass.wordClass.coverb, 'Koverb'), _defineProperty(_wordClass, wordClass.wordClass.determiner, 'Bestemmerord'), _defineProperty(_wordClass, wordClass.wordClass.interjection, 'Interjeksjon'), _defineProperty(_wordClass, wordClass.wordClass.quantifier, 'Kvantor'), _defineProperty(_wordClass, wordClass.wordClass.marker, 'Markør'), _defineProperty(_wordClass, wordClass.wordClass.modalVerb, 'Modalverb'), _defineProperty(_wordClass, wordClass.wordClass.measureWord, 'Målord'), _defineProperty(_wordClass, wordClass.wordClass.noun, 'Substantiv'), _defineProperty(_wordClass, wordClass.wordClass['noun-zh'], 'Nomen'), _defineProperty(_wordClass, wordClass.wordClass.nounPhrase, 'Nominalfrase'), _defineProperty(_wordClass, wordClass.wordClass.onomatopoeia, 'Onomatopoetikon'), _defineProperty(_wordClass, wordClass.wordClass.particle, 'Partikkel'), _defineProperty(_wordClass, wordClass.wordClass.demonstrative, 'Pekeord'), _defineProperty(_wordClass, wordClass.wordClass.personalPronoun, 'Personlig Pronomen'), _defineProperty(_wordClass, wordClass.wordClass.preposition, 'Preposisjon'), _defineProperty(_wordClass, wordClass.wordClass.pronoun, 'Pronomen'), _defineProperty(_wordClass, wordClass.wordClass.questionWord, 'Spørreord'), _defineProperty(_wordClass, wordClass.wordClass.locationWord, 'Stedsord'), _defineProperty(_wordClass, wordClass.wordClass.suffix, 'Suffiks'), _defineProperty(_wordClass, wordClass.wordClass.numeral, 'Tallord'), _defineProperty(_wordClass, wordClass.wordClass.timeWord, 'Tidsord'), _defineProperty(_wordClass, wordClass.wordClass.timeExpression, 'Tidsuttrykk'), _defineProperty(_wordClass, wordClass.wordClass.stativeVerb, 'Tilstandsverb'), _defineProperty(_wordClass, wordClass.wordClass.subordinatingConjunction, 'Subjunksjon'), _defineProperty(_wordClass, wordClass.wordClass.exclamationWord, 'Utropsord'), _defineProperty(_wordClass, wordClass.wordClass.expression, 'Uttrykk'), _defineProperty(_wordClass, wordClass.wordClass.verb, 'Verb'), _defineProperty(_wordClass, wordClass.wordClass.verbComplement, 'Verb-Komplement'), _defineProperty(_wordClass, wordClass.wordClass.verbObject, 'Verb-Objekt'), _wordClass),
|
|
1306
1306
|
about: {
|
|
1307
1307
|
menuTitle: 'Om NDLA'
|
|
1308
1308
|
}
|
package/lib/model/WordClass.d.ts
CHANGED
|
@@ -5,40 +5,40 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
8
|
+
export declare const wordClass: {
|
|
9
|
+
adjective: string;
|
|
10
|
+
adverb: string;
|
|
11
|
+
properNoun: string;
|
|
12
|
+
auxiliary: string;
|
|
13
|
+
complement: string;
|
|
14
|
+
conjunction: string;
|
|
15
|
+
coverb: string;
|
|
16
|
+
determiner: string;
|
|
17
|
+
interjection: string;
|
|
18
|
+
quantifier: string;
|
|
19
|
+
marker: string;
|
|
20
|
+
modalVerb: string;
|
|
21
|
+
measureWord: string;
|
|
22
|
+
noun: string;
|
|
23
|
+
'noun-zh': string;
|
|
24
|
+
nounPhrase: string;
|
|
25
|
+
onomatopoeia: string;
|
|
26
|
+
particle: string;
|
|
27
|
+
demonstrative: string;
|
|
28
|
+
personalPronoun: string;
|
|
29
|
+
preposition: string;
|
|
30
|
+
pronoun: string;
|
|
31
|
+
questionWord: string;
|
|
32
|
+
locationWord: string;
|
|
33
|
+
suffix: string;
|
|
34
|
+
numeral: string;
|
|
35
|
+
timeWord: string;
|
|
36
|
+
timeExpression: string;
|
|
37
|
+
stativeVerb: string;
|
|
38
|
+
subordinatingConjunction: string;
|
|
39
|
+
exclamationWord: string;
|
|
40
|
+
expression: string;
|
|
41
|
+
verb: string;
|
|
42
|
+
verbComplement: string;
|
|
43
|
+
verbObject: string;
|
|
44
44
|
};
|
package/lib/model/WordClass.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.wordClass = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* Copyright (c) 2023-present, NDLA.
|
|
9
9
|
*
|
|
@@ -12,41 +12,41 @@ exports.WordClass = void 0;
|
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
'
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
15
|
+
var wordClass = {
|
|
16
|
+
adjective: 'adjective',
|
|
17
|
+
adverb: 'adverb',
|
|
18
|
+
properNoun: 'proper-noun',
|
|
19
|
+
auxiliary: 'auxiliary',
|
|
20
|
+
complement: 'complement',
|
|
21
|
+
conjunction: 'conjunction',
|
|
22
|
+
coverb: 'coverb',
|
|
23
|
+
determiner: 'determiner',
|
|
24
|
+
interjection: 'interjection',
|
|
25
|
+
quantifier: 'quantifier',
|
|
26
|
+
marker: 'marker',
|
|
27
|
+
modalVerb: 'modal-verb',
|
|
28
|
+
measureWord: 'measure-word',
|
|
29
|
+
noun: 'noun',
|
|
30
|
+
'noun-zh': 'noun-zh',
|
|
31
|
+
nounPhrase: 'noun-phrase',
|
|
32
|
+
onomatopoeia: 'onomatopoeia',
|
|
33
|
+
particle: 'particle',
|
|
34
|
+
demonstrative: 'demonstrative',
|
|
35
|
+
personalPronoun: 'personal-pronoun',
|
|
36
|
+
preposition: 'preposition',
|
|
37
|
+
pronoun: 'pronoun',
|
|
38
|
+
questionWord: 'question-word',
|
|
39
|
+
locationWord: 'location-word',
|
|
40
|
+
suffix: 'suffix',
|
|
41
|
+
numeral: 'numeral',
|
|
42
|
+
timeWord: 'time word',
|
|
43
|
+
timeExpression: 'time-expression',
|
|
44
|
+
stativeVerb: 'stative-verb',
|
|
45
|
+
subordinatingConjunction: 'subordinating-conjunction',
|
|
46
|
+
exclamationWord: 'exclamation-word',
|
|
47
|
+
expression: 'expression',
|
|
48
|
+
verb: 'verb',
|
|
49
|
+
verbComplement: 'verb-complement',
|
|
50
|
+
verbObject: 'verb-object'
|
|
51
51
|
};
|
|
52
|
-
exports.
|
|
52
|
+
exports.wordClass = wordClass;
|
package/lib/model/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as subjectCategories from './SubjectCategories';
|
|
9
9
|
import * as subjectTypes from './SubjectTypes';
|
|
10
|
-
import * as
|
|
10
|
+
import * as wordClass from './WordClass';
|
|
11
11
|
import * as Transcriptions from './Transcriptions';
|
|
12
12
|
declare const model: {
|
|
13
13
|
contentTypes: {
|
|
@@ -25,7 +25,7 @@ declare const model: {
|
|
|
25
25
|
subjectTypes: typeof subjectTypes;
|
|
26
26
|
contentTypeMapping: Record<string, string>;
|
|
27
27
|
resourceEmbedTypeMapping: Record<string, string>;
|
|
28
|
-
|
|
28
|
+
wordClass: typeof wordClass;
|
|
29
29
|
Transcriptions: typeof Transcriptions;
|
|
30
30
|
};
|
|
31
31
|
export default model;
|
package/lib/model/index.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _ContentType = require("./ContentType");
|
|
9
9
|
var subjectCategories = _interopRequireWildcard(require("./SubjectCategories"));
|
|
10
10
|
var subjectTypes = _interopRequireWildcard(require("./SubjectTypes"));
|
|
11
|
-
var
|
|
11
|
+
var wordClass = _interopRequireWildcard(require("./WordClass"));
|
|
12
12
|
var Transcriptions = _interopRequireWildcard(require("./Transcriptions"));
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -26,7 +26,7 @@ var model = {
|
|
|
26
26
|
subjectTypes: subjectTypes,
|
|
27
27
|
contentTypeMapping: _ContentType.contentTypeMapping,
|
|
28
28
|
resourceEmbedTypeMapping: _ContentType.resourceEmbedTypeMapping,
|
|
29
|
-
|
|
29
|
+
wordClass: wordClass,
|
|
30
30
|
Transcriptions: Transcriptions
|
|
31
31
|
};
|
|
32
32
|
var _default = model;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "45.0.
|
|
3
|
+
"version": "45.0.13",
|
|
4
4
|
"description": "UI component library for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@ndla/modal": "^4.0.7",
|
|
45
45
|
"@ndla/notion": "^5.0.25",
|
|
46
46
|
"@ndla/safelink": "^4.1.21",
|
|
47
|
-
"@ndla/select": "^2.4.
|
|
47
|
+
"@ndla/select": "^2.4.13",
|
|
48
48
|
"@ndla/switch": "^1.1.12",
|
|
49
49
|
"@ndla/tabs": "^3.0.8",
|
|
50
50
|
"@ndla/tooltip": "^4.1.18",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"i18next-browser-languagedetector": "^6.1.1",
|
|
58
58
|
"react-bem-helper": "1.4.1",
|
|
59
59
|
"react-device-detect": "^2.2.3",
|
|
60
|
-
"react-select": "^5.7.
|
|
60
|
+
"react-select": "^5.7.5",
|
|
61
61
|
"react-swipeable": "^7.0.0",
|
|
62
62
|
"remarkable": "^2.0.1",
|
|
63
63
|
"shave": "^2.5.10"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
|
|
75
75
|
"@ndla/types-backend": "^0.2.21",
|
|
76
|
-
"@ndla/types-embed": "^4.0.
|
|
76
|
+
"@ndla/types-embed": "^4.0.2",
|
|
77
77
|
"css-loader": "^6.7.3",
|
|
78
78
|
"mini-css-extract-plugin": "^2.7.5",
|
|
79
79
|
"sass-loader": "^13.2.2",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "af03a21cc82d5779a52b6b08d27257b8d907cca0"
|
|
87
87
|
}
|
|
@@ -10,7 +10,6 @@ import { CSSProperties, ReactNode, useMemo } from 'react';
|
|
|
10
10
|
import { breakpoints, fonts, mq, spacing, spacingUnit } from '@ndla/core';
|
|
11
11
|
import styled from '@emotion/styled';
|
|
12
12
|
import { Article } from '../types';
|
|
13
|
-
import LayoutItem from '../Layout';
|
|
14
13
|
import { Heading } from '../Typography';
|
|
15
14
|
import { ArticleByline } from '../Article';
|
|
16
15
|
import { useMastheadHeight } from '../Masthead';
|
|
@@ -41,6 +40,11 @@ const StyledArticle = styled.article`
|
|
|
41
40
|
margin-top: 0px;
|
|
42
41
|
}
|
|
43
42
|
}
|
|
43
|
+
|
|
44
|
+
div[data-type='grid'] + div[data-type='grid'] {
|
|
45
|
+
margin-top: ${spacingUnit * 4}px;
|
|
46
|
+
}
|
|
47
|
+
|
|
44
48
|
&[data-wide='true'] {
|
|
45
49
|
max-width: 1100px;
|
|
46
50
|
h2[id] {
|
|
@@ -72,7 +76,7 @@ export const FrontpageArticle = ({ article, id, isWide, licenseBox }: Props) =>
|
|
|
72
76
|
if (isWide) {
|
|
73
77
|
return (
|
|
74
78
|
<StyledArticle data-wide={isWide} style={cssVars} id={id}>
|
|
75
|
-
|
|
79
|
+
{content}
|
|
76
80
|
</StyledArticle>
|
|
77
81
|
);
|
|
78
82
|
}
|
|
@@ -83,13 +87,11 @@ export const FrontpageArticle = ({ article, id, isWide, licenseBox }: Props) =>
|
|
|
83
87
|
: article.copyright?.processors;
|
|
84
88
|
return (
|
|
85
89
|
<StyledArticle style={cssVars}>
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
</LayoutItem>
|
|
92
|
-
<LayoutItem>{content}</LayoutItem>
|
|
90
|
+
<Heading id={id} headingStyle="h1" element="h1" margin="normal" tabIndex={-1}>
|
|
91
|
+
{title}
|
|
92
|
+
</Heading>
|
|
93
|
+
<StyledIntroduction>{introduction}</StyledIntroduction>
|
|
94
|
+
{content}
|
|
93
95
|
<ArticleByline
|
|
94
96
|
authors={authors}
|
|
95
97
|
suppliers={article.copyright?.rightsholders}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { Meta, StoryObj, StoryFn } from '@storybook/react';
|
|
10
10
|
import Gloss from './Gloss';
|
|
11
11
|
import { defaultParameters } from '../../../../stories/defaults';
|
|
12
|
-
import {
|
|
12
|
+
import { wordClass } from '../model/WordClass';
|
|
13
13
|
|
|
14
14
|
const meta: Meta<typeof Gloss> = {
|
|
15
15
|
title: 'Components/Gloss',
|
|
@@ -25,7 +25,7 @@ const meta: Meta<typeof Gloss> = {
|
|
|
25
25
|
},
|
|
26
26
|
glossData: {
|
|
27
27
|
gloss: 'angreifen',
|
|
28
|
-
wordClass:
|
|
28
|
+
wordClass: wordClass.verb,
|
|
29
29
|
originalLanguage: 'de',
|
|
30
30
|
transcriptions: {},
|
|
31
31
|
examples: [
|
|
@@ -76,7 +76,7 @@ export const GlossChineseStory: StoryObj<typeof Gloss> = {
|
|
|
76
76
|
},
|
|
77
77
|
glossData: {
|
|
78
78
|
gloss: '马红',
|
|
79
|
-
wordClass:
|
|
79
|
+
wordClass: wordClass.properNoun,
|
|
80
80
|
originalLanguage: 'zh',
|
|
81
81
|
transcriptions: {
|
|
82
82
|
traditional: '(馬紅)',
|
|
@@ -14,15 +14,19 @@ import { useTranslation } from 'react-i18next';
|
|
|
14
14
|
import { fonts, spacing, spacingUnit } from '@ndla/core';
|
|
15
15
|
import { OneColumn, LayoutItem } from '../index';
|
|
16
16
|
|
|
17
|
-
const
|
|
17
|
+
const TextWrapper = styled.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
|
+
gap: ${spacing.normal};
|
|
21
|
+
padding-bottom: ${spacing.medium};
|
|
22
|
+
h1 {
|
|
23
|
+
margin-bottom: 0px;
|
|
24
|
+
}
|
|
20
25
|
`;
|
|
21
26
|
|
|
22
27
|
const StyledSmallText = styled.small`
|
|
23
28
|
${fonts.sizes(20, 1.3)};
|
|
24
29
|
font-weight: ${fonts.weight.semibold};
|
|
25
|
-
margin-top: ${spacing.normal};
|
|
26
30
|
`;
|
|
27
31
|
|
|
28
32
|
const StyledLinkWrapper = styled.div`
|
|
@@ -56,14 +60,14 @@ const LearningPathLastStepNavigation = ({ subject, topic, learningPathName, chil
|
|
|
56
60
|
return (
|
|
57
61
|
<OneColumn css={OneColumnCss}>
|
|
58
62
|
<LayoutItem layout="center">
|
|
59
|
-
<
|
|
60
|
-
<
|
|
63
|
+
<TextWrapper>
|
|
64
|
+
<h1>{t('learningPath.lastStep.heading')}</h1>
|
|
61
65
|
<StyledSmallText>
|
|
62
66
|
{t('learningPath.lastStep.headingSmall', {
|
|
63
67
|
learningPathName,
|
|
64
68
|
})}
|
|
65
69
|
</StyledSmallText>
|
|
66
|
-
</
|
|
70
|
+
</TextWrapper>
|
|
67
71
|
{subject && (
|
|
68
72
|
<StyledLinkWrapper>
|
|
69
73
|
{t('learningPath.lastStep.subjectHeading')}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { contributorTypes } from '@ndla/licenses';
|
|
10
10
|
import constants from '../model';
|
|
11
11
|
|
|
12
|
-
export const { contentTypes, subjectCategories, subjectTypes,
|
|
12
|
+
export const { contentTypes, subjectCategories, subjectTypes, wordClass, Transcriptions } = constants;
|
|
13
13
|
|
|
14
14
|
const titleTemplate = ' - NDLA';
|
|
15
15
|
|
|
@@ -1349,41 +1349,41 @@ const messages = {
|
|
|
1349
1349
|
},
|
|
1350
1350
|
},
|
|
1351
1351
|
wordClass: {
|
|
1352
|
-
[
|
|
1353
|
-
[
|
|
1354
|
-
[
|
|
1355
|
-
[
|
|
1356
|
-
[
|
|
1357
|
-
[
|
|
1358
|
-
[
|
|
1359
|
-
[
|
|
1360
|
-
[
|
|
1361
|
-
[
|
|
1362
|
-
[
|
|
1363
|
-
[
|
|
1364
|
-
[
|
|
1365
|
-
[
|
|
1366
|
-
[
|
|
1367
|
-
[
|
|
1368
|
-
[
|
|
1369
|
-
[
|
|
1370
|
-
[
|
|
1371
|
-
[
|
|
1372
|
-
[
|
|
1373
|
-
[
|
|
1374
|
-
[
|
|
1375
|
-
[
|
|
1376
|
-
[
|
|
1377
|
-
[
|
|
1378
|
-
[
|
|
1379
|
-
[
|
|
1380
|
-
[
|
|
1381
|
-
[
|
|
1382
|
-
[
|
|
1383
|
-
[
|
|
1384
|
-
[
|
|
1385
|
-
[
|
|
1386
|
-
[
|
|
1352
|
+
[wordClass.wordClass.adjective]: 'Adjective',
|
|
1353
|
+
[wordClass.wordClass.adverb]: 'Adverb',
|
|
1354
|
+
[wordClass.wordClass.properNoun]: 'Proper Noun',
|
|
1355
|
+
[wordClass.wordClass.auxiliary]: 'Auxiliary',
|
|
1356
|
+
[wordClass.wordClass.complement]: 'Complement',
|
|
1357
|
+
[wordClass.wordClass.conjunction]: 'Conjunction',
|
|
1358
|
+
[wordClass.wordClass.coverb]: 'Coverb',
|
|
1359
|
+
[wordClass.wordClass.determiner]: 'Determiner',
|
|
1360
|
+
[wordClass.wordClass.interjection]: 'Interjection',
|
|
1361
|
+
[wordClass.wordClass.quantifier]: 'Quantifier',
|
|
1362
|
+
[wordClass.wordClass.marker]: 'Marker',
|
|
1363
|
+
[wordClass.wordClass.modalVerb]: 'Modal Verb',
|
|
1364
|
+
[wordClass.wordClass.measureWord]: 'Measure Word',
|
|
1365
|
+
[wordClass.wordClass.noun]: 'Noun',
|
|
1366
|
+
[wordClass.wordClass['noun-zh']]: 'Noun',
|
|
1367
|
+
[wordClass.wordClass.nounPhrase]: 'Noun Phrase',
|
|
1368
|
+
[wordClass.wordClass.onomatopoeia]: 'Onomatopoeia',
|
|
1369
|
+
[wordClass.wordClass.particle]: 'Particle',
|
|
1370
|
+
[wordClass.wordClass.demonstrative]: 'Demonstrative',
|
|
1371
|
+
[wordClass.wordClass.personalPronoun]: 'Personal Pronoun',
|
|
1372
|
+
[wordClass.wordClass.preposition]: 'Preposition',
|
|
1373
|
+
[wordClass.wordClass.pronoun]: 'Pronoun',
|
|
1374
|
+
[wordClass.wordClass.questionWord]: 'Question Word',
|
|
1375
|
+
[wordClass.wordClass.locationWord]: 'Location Word',
|
|
1376
|
+
[wordClass.wordClass.suffix]: 'Suffix',
|
|
1377
|
+
[wordClass.wordClass.numeral]: 'Numeral',
|
|
1378
|
+
[wordClass.wordClass.timeWord]: 'Time word',
|
|
1379
|
+
[wordClass.wordClass.timeExpression]: 'Time Expression',
|
|
1380
|
+
[wordClass.wordClass.stativeVerb]: 'Stative Verb',
|
|
1381
|
+
[wordClass.wordClass.subordinatingConjunction]: 'Subordinating Conjunction',
|
|
1382
|
+
[wordClass.wordClass.exclamationWord]: 'Exclamation Word',
|
|
1383
|
+
[wordClass.wordClass.expression]: 'Expression',
|
|
1384
|
+
[wordClass.wordClass.verb]: 'Verb',
|
|
1385
|
+
[wordClass.wordClass.verbComplement]: 'Verb-Complement',
|
|
1386
|
+
[wordClass.wordClass.verbObject]: 'Verb-Object',
|
|
1387
1387
|
},
|
|
1388
1388
|
about: {
|
|
1389
1389
|
menuTitle: 'About NDLA',
|