@ndla/ui 8.2.1 → 8.2.4

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.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2022-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export declare const SUBJECT = "subject";
9
+ export declare const RESOURCE_COLLECTION = "resourceCollection";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.RESOURCE_COLLECTION = exports.SUBJECT = void 0;
7
+
8
+ /**
9
+ * Copyright (c) 2022-present, NDLA.
10
+ *
11
+ * This source code is licensed under the GPLv3 license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ *
14
+ */
15
+ var SUBJECT = 'subject';
16
+ exports.SUBJECT = SUBJECT;
17
+ var RESOURCE_COLLECTION = 'resourceCollection';
18
+ exports.RESOURCE_COLLECTION = RESOURCE_COLLECTION;
@@ -7,8 +7,10 @@
7
7
  */
8
8
  import * as contentTypes from './ContentType';
9
9
  import * as subjectCategories from './SubjectCategories';
10
+ import * as subjectTypes from './SubjectTypes';
10
11
  declare const model: {
11
12
  contentTypes: typeof contentTypes;
12
13
  subjectCategories: typeof subjectCategories;
14
+ subjectTypes: typeof subjectTypes;
13
15
  };
14
16
  export default model;
@@ -11,6 +11,8 @@ var contentTypes = _interopRequireWildcard(require("./ContentType"));
11
11
 
12
12
  var subjectCategories = _interopRequireWildcard(require("./SubjectCategories"));
13
13
 
14
+ var subjectTypes = _interopRequireWildcard(require("./SubjectTypes"));
15
+
14
16
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
15
17
 
16
18
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
@@ -24,7 +26,8 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
24
26
  */
25
27
  var model = {
26
28
  contentTypes: contentTypes,
27
- subjectCategories: subjectCategories
29
+ subjectCategories: subjectCategories,
30
+ subjectTypes: subjectTypes
28
31
  };
29
32
  var _default = model;
30
33
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "8.2.1",
3
+ "version": "8.2.4",
4
4
  "description": "UI component library for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -31,17 +31,17 @@
31
31
  "types"
32
32
  ],
33
33
  "dependencies": {
34
- "@ndla/button": "^2.1.4",
35
- "@ndla/carousel": "^1.2.4",
36
- "@ndla/core": "^2.1.0",
34
+ "@ndla/button": "^2.1.5",
35
+ "@ndla/carousel": "^1.2.5",
36
+ "@ndla/core": "^2.1.1",
37
37
  "@ndla/hooks": "^1.1.3",
38
38
  "@ndla/icons": "^1.6.1",
39
- "@ndla/licenses": "^4.0.4",
40
- "@ndla/modal": "^1.2.4",
41
- "@ndla/safelink": "^1.1.5",
42
- "@ndla/switch": "^0.1.4",
39
+ "@ndla/licenses": "^4.0.5",
40
+ "@ndla/modal": "^1.2.5",
41
+ "@ndla/safelink": "^1.1.6",
42
+ "@ndla/switch": "^0.1.5",
43
43
  "@ndla/tabs": "^1.1.3",
44
- "@ndla/tooltip": "^0.3.4",
44
+ "@ndla/tooltip": "^0.3.5",
45
45
  "@ndla/util": "^2.0.5",
46
46
  "@reach/menu-button": "^0.16.2",
47
47
  "@reach/slider": "^0.16.0",
@@ -80,5 +80,5 @@
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
- "gitHead": "60f179c8f18630a8b4fa2f4d6936eca458f60214"
83
+ "gitHead": "c494b259cd0c7f2c68f42c6f7f271567c691acbd"
84
84
  }
@@ -9,7 +9,7 @@
9
9
  import { contributorTypes } from '@ndla/licenses';
10
10
  import constants from '../model';
11
11
 
12
- export const { contentTypes, subjectCategories } = constants;
12
+ export const { contentTypes, subjectCategories, subjectTypes } = constants;
13
13
 
14
14
  const titleTemplate = ' - NDLA';
15
15
 
@@ -53,6 +53,10 @@ const messages = {
53
53
  [subjectCategories.PROGRAMME_SUBJECTS]: 'Programme subj. SF',
54
54
  [subjectCategories.SPECIALIZED_SUBJECTS]: 'Programme subj. YF',
55
55
  },
56
+ subjectTypes: {
57
+ [subjectTypes.SUBJECT]: 'Subject',
58
+ [subjectTypes.RESOURCE_COLLECTION]: 'Resource collection',
59
+ },
56
60
  searchPage: {
57
61
  noHits: 'Your search - {{query}} - did not match any articles. ',
58
62
  noHitsShort: 'No results for search: {{query}}',
@@ -9,7 +9,7 @@
9
9
  import { contributorTypes } from '@ndla/licenses';
10
10
  import constants from '../model';
11
11
 
12
- export const { contentTypes, subjectCategories } = constants;
12
+ export const { contentTypes, subjectCategories, subjectTypes } = constants;
13
13
 
14
14
  const titleTemplate = ' - NDLA';
15
15
 
@@ -53,6 +53,10 @@ const messages = {
53
53
  [subjectCategories.PROGRAMME_SUBJECTS]: 'Programfag SF',
54
54
  [subjectCategories.SPECIALIZED_SUBJECTS]: 'Yrkesfag',
55
55
  },
56
+ subjectTypes: {
57
+ [subjectTypes.SUBJECT]: 'Fag',
58
+ [subjectTypes.RESOURCE_COLLECTION]: 'Ressurssamling',
59
+ },
56
60
  searchPage: {
57
61
  noHits: 'Ingen artikler samsvarte med søket ditt på: {{query}}',
58
62
  noHitsShort: 'Ingen treff på søk: {{query}}',
@@ -518,7 +522,7 @@ const messages = {
518
522
  footerInfo: 'Nettstedet er utarbeidet av NDLA med åpen kildekode.',
519
523
  footerEditiorInChief: 'Ansvarlig redaktør: ',
520
524
  footerManagingEditor: 'Utgaveansvarlig: ',
521
- footerPrivacyLink: 'Personvernerklæring',
525
+ footerPrivacyLink: 'Personvernerklæring og cookies',
522
526
  socialMediaLinks: {
523
527
  facebook: 'NDLA på Facebook',
524
528
  facebookAria: 'Besøk NDLA på Facebook',
@@ -9,7 +9,7 @@
9
9
  import { contributorTypes } from '@ndla/licenses';
10
10
  import constants from '../model';
11
11
 
12
- export const { contentTypes, subjectCategories } = constants;
12
+ export const { contentTypes, subjectCategories, subjectTypes } = constants;
13
13
 
14
14
  const titleTemplate = ' - NDLA';
15
15
 
@@ -53,6 +53,10 @@ const messages = {
53
53
  [subjectCategories.PROGRAMME_SUBJECTS]: 'Programfag SF',
54
54
  [subjectCategories.SPECIALIZED_SUBJECTS]: 'Yrkesfag',
55
55
  },
56
+ subjectTypes: {
57
+ [subjectTypes.SUBJECT]: 'Fag',
58
+ [subjectTypes.RESOURCE_COLLECTION]: 'Ressurssamling',
59
+ },
56
60
  searchPage: {
57
61
  noHits: 'Ingen artiklar samsvarte med søket ditt på: {{query}}',
58
62
  noHitsShort: 'Ingen treff på søk: {{query}}',
@@ -519,7 +523,7 @@ const messages = {
519
523
  footerInfo: 'Nettstaden er utarbeida av NDLA med open kjeldekode.',
520
524
  footerEditiorInChief: 'Ansvarleg redaktør: ',
521
525
  footerManagingEditor: 'Utgåveansvarleg: ',
522
- footerPrivacyLink: 'Personvernerklæring',
526
+ footerPrivacyLink: 'Personvernerklæring og cookies',
523
527
  socialMediaLinks: {
524
528
  facebook: 'NDLA på Facebook',
525
529
  facebookAria: 'Besøk NDLA på Facebook',