@ndla/ui 4.0.3 → 4.1.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/Article/Article.js +5 -6
- package/es/Topic/Topic.js +20 -20
- package/es/locale/messages-en.js +1 -1
- package/lib/Article/Article.js +5 -6
- package/lib/Topic/Topic.js +20 -20
- package/lib/locale/messages-en.js +1 -1
- package/package.json +3 -3
- package/src/Article/Article.tsx +7 -9
- package/src/Topic/Topic.tsx +1 -1
- package/src/locale/messages-en.ts +1 -1
|
@@ -733,7 +733,7 @@ var messages = _objectSpread(_objectSpread({
|
|
|
733
733
|
cursorText: 'Tip'
|
|
734
734
|
},
|
|
735
735
|
frontpageMultidisciplinarySubject: {
|
|
736
|
-
heading: 'Interdisciplinary
|
|
736
|
+
heading: 'Interdisciplinary topics',
|
|
737
737
|
text: 'The three interdisciplinary subjects in the curriculum are based on current societal challenges that require the involvement and efforts of individuals and the community in the local community, nationally and globally.',
|
|
738
738
|
linkText: 'See cases for multidisciplinary topics',
|
|
739
739
|
publicHealthTopic: 'Public health and life management',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "UI component library for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@ndla/core": "^0.7.3",
|
|
37
37
|
"@ndla/hooks": "^1.0.8",
|
|
38
38
|
"@ndla/icons": "^1.5.0",
|
|
39
|
-
"@ndla/licenses": "^2.
|
|
39
|
+
"@ndla/licenses": "^2.1.0",
|
|
40
40
|
"@ndla/modal": "^1.1.25",
|
|
41
41
|
"@ndla/safelink": "^1.0.13",
|
|
42
42
|
"@ndla/switch": "^0.0.34",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"access": "public"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "b67642972d195af3997f87d2a0481369eeaf1b0c"
|
|
96
96
|
}
|
package/src/Article/Article.tsx
CHANGED
|
@@ -184,7 +184,7 @@ export const Article = ({
|
|
|
184
184
|
} = article;
|
|
185
185
|
|
|
186
186
|
let authors = creators;
|
|
187
|
-
if (Array.isArray(authors) && authors.length === 0) {
|
|
187
|
+
if (Array.isArray(authors) && authors.length === 0 && rightsholders.length === 0) {
|
|
188
188
|
authors = processors;
|
|
189
189
|
}
|
|
190
190
|
const suppliers = rightsholders.length ? rightsholders : undefined;
|
|
@@ -229,14 +229,12 @@ export const Article = ({
|
|
|
229
229
|
{footNotes && footNotes.length > 0 && <ArticleFootNotes footNotes={footNotes} />}
|
|
230
230
|
<ArticleByline
|
|
231
231
|
copyPageUrlLink={copyPageUrlLink}
|
|
232
|
-
{
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
printUrl,
|
|
239
|
-
}}
|
|
232
|
+
authors={authors}
|
|
233
|
+
suppliers={suppliers}
|
|
234
|
+
published={published}
|
|
235
|
+
license={licenseObj.license}
|
|
236
|
+
licenseBox={licenseBox}
|
|
237
|
+
printUrl={printUrl}
|
|
240
238
|
/>
|
|
241
239
|
</LayoutItem>
|
|
242
240
|
<LayoutItem layout="extend">{children}</LayoutItem>
|
package/src/Topic/Topic.tsx
CHANGED
|
@@ -766,7 +766,7 @@ const messages = {
|
|
|
766
766
|
cursorText: 'Tip',
|
|
767
767
|
},
|
|
768
768
|
frontpageMultidisciplinarySubject: {
|
|
769
|
-
heading: 'Interdisciplinary
|
|
769
|
+
heading: 'Interdisciplinary topics',
|
|
770
770
|
text: 'The three interdisciplinary subjects in the curriculum are based on current societal challenges that require the involvement and efforts of individuals and the community in the local community, nationally and globally.',
|
|
771
771
|
linkText: 'See cases for multidisciplinary topics',
|
|
772
772
|
publicHealthTopic: 'Public health and life management',
|