@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.
@@ -733,7 +733,7 @@ var messages = _objectSpread(_objectSpread({
733
733
  cursorText: 'Tip'
734
734
  },
735
735
  frontpageMultidisciplinarySubject: {
736
- heading: 'Interdisciplinary subjects',
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",
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.0.0",
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": "bf92c61f2411186527163759dc7967de12cea891"
95
+ "gitHead": "b67642972d195af3997f87d2a0481369eeaf1b0c"
96
96
  }
@@ -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
- authors,
234
- suppliers,
235
- published,
236
- license: licenseObj.license,
237
- licenseBox,
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>
@@ -80,7 +80,7 @@ const TopicHeaderImage = styled.img`
80
80
  border-radius: 50%;
81
81
  width: 100%;
82
82
  height: 100%;
83
- object-fit: none;
83
+ object-fit: cover;
84
84
  transition: transform ${animations.durations.fast};
85
85
  ${VisualElementButton}:hover & {
86
86
  transform: scale(1.1);
@@ -766,7 +766,7 @@ const messages = {
766
766
  cursorText: 'Tip',
767
767
  },
768
768
  frontpageMultidisciplinarySubject: {
769
- heading: 'Interdisciplinary subjects',
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',