@ndla/ui 56.0.12-alpha.0 → 56.0.13-alpha.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.
Files changed (38) hide show
  1. package/es/ContentTypeBadge/ContentTypeBadge.js +2 -2
  2. package/es/ContentTypeBadge/ContentTypeBadgeNew.js +1 -1
  3. package/es/ContentTypeHero/ContentTypeHero.js +1 -1
  4. package/es/locale/messages-en.js +1 -1
  5. package/es/locale/messages-nb.js +1 -1
  6. package/es/locale/messages-nn.js +1 -1
  7. package/es/locale/messages-se.js +1 -1
  8. package/es/locale/messages-sma.js +1 -1
  9. package/es/model/ContentType.js +3 -3
  10. package/lib/ContentTypeBadge/ContentTypeBadge.js +2 -2
  11. package/lib/ContentTypeBadge/ContentTypeBadgeNew.d.ts +1 -1
  12. package/lib/ContentTypeBadge/ContentTypeBadgeNew.js +1 -1
  13. package/lib/ContentTypeHero/ContentTypeHero.js +1 -1
  14. package/lib/locale/messages-en.d.ts +1 -1
  15. package/lib/locale/messages-en.js +1 -1
  16. package/lib/locale/messages-nb.d.ts +1 -1
  17. package/lib/locale/messages-nb.js +1 -1
  18. package/lib/locale/messages-nn.d.ts +1 -1
  19. package/lib/locale/messages-nn.js +1 -1
  20. package/lib/locale/messages-se.d.ts +1 -1
  21. package/lib/locale/messages-se.js +1 -1
  22. package/lib/locale/messages-sma.d.ts +1 -1
  23. package/lib/locale/messages-sma.js +1 -1
  24. package/lib/model/ContentType.d.ts +2 -3
  25. package/lib/model/ContentType.js +4 -4
  26. package/lib/model/index.d.ts +1 -1
  27. package/package.json +4 -4
  28. package/src/ContentTypeBadge/ContentTypeBadge.stories.tsx +1 -1
  29. package/src/ContentTypeBadge/ContentTypeBadge.tsx +2 -2
  30. package/src/ContentTypeBadge/ContentTypeBadgeNew.stories.tsx +1 -1
  31. package/src/ContentTypeBadge/ContentTypeBadgeNew.tsx +2 -2
  32. package/src/ContentTypeHero/ContentTypeHero.tsx +1 -1
  33. package/src/locale/messages-en.ts +1 -1
  34. package/src/locale/messages-nb.ts +1 -1
  35. package/src/locale/messages-nn.ts +1 -1
  36. package/src/locale/messages-se.ts +1 -1
  37. package/src/locale/messages-sma.ts +1 -1
  38. package/src/model/ContentType.ts +3 -16
@@ -119,7 +119,7 @@ const iconMap = {
119
119
  iconColor: colors.subject.dark,
120
120
  backgroundColor: colors.subject.light
121
121
  },
122
- [contentTypes.MULTIDISCIPLINARY_TOPIC]: {
122
+ [contentTypes.MULTIDISCIPLINARY]: {
123
123
  icon: ShareFill,
124
124
  backgroundColor: "#b9b37b"
125
125
  },
@@ -218,7 +218,7 @@ export const LearningPathBadge = props => /*#__PURE__*/_jsx(ContentTypeBadge, {
218
218
  });
219
219
  export const MultidisciplinaryTopicBadge = props => /*#__PURE__*/_jsx(ContentTypeBadge, {
220
220
  ...props,
221
- type: contentTypes.MULTIDISCIPLINARY_TOPIC
221
+ type: contentTypes.MULTIDISCIPLINARY
222
222
  });
223
223
  export const ConceptBadge = props => /*#__PURE__*/_jsx(ContentTypeBadge, {
224
224
  ...props,
@@ -20,7 +20,7 @@ export const contentTypeToBadgeVariantMap = {
20
20
  [contentTypes.LEARNING_PATH]: "brand3",
21
21
  [contentTypes.TOPIC]: "neutral",
22
22
  // TODO: Verify this color
23
- [contentTypes.MULTIDISCIPLINARY_TOPIC]: "neutral",
23
+ [contentTypes.MULTIDISCIPLINARY]: "neutral",
24
24
  [contentTypes.CONCEPT]: "brand1",
25
25
  // TODO: Verify this color
26
26
  [contentTypes.EXTERNAL]: "brand2",
@@ -25,7 +25,7 @@ export const contentTypeToHeroMap = {
25
25
  // TODO: This needs a color
26
26
  [contentTypes.TOPIC]: "neutral",
27
27
  // TODO: This is just taken from thin air.
28
- [contentTypes.MULTIDISCIPLINARY_TOPIC]: "brand4",
28
+ [contentTypes.MULTIDISCIPLINARY]: "brand4",
29
29
  [contentTypes.CONCEPT]: "brand1Subtle",
30
30
  // TODO: No clue what this'll be. Maybe unused?
31
31
  [contentTypes.EXTERNAL]: "primary",
@@ -560,7 +560,7 @@ const messages = {
560
560
  "source-material": "Source material",
561
561
  "assessment-resources": "Assessment resource",
562
562
  topic: "Topic",
563
- "multidisciplinary-topic": "Multidisciplinary case",
563
+ multidisciplinary: "Multidisciplinary case",
564
564
  image: "Image",
565
565
  concept: "Concept",
566
566
  audio: "Audio",
@@ -560,7 +560,7 @@ const messages = {
560
560
  "source-material": "Kildemateriale",
561
561
  "assessment-resources": "Vurderingsressurs",
562
562
  topic: "Emne",
563
- "multidisciplinary-topic": "Tverrfaglig case",
563
+ multidisciplinary: "Tverrfaglig case",
564
564
  image: "Bilde",
565
565
  concept: "Forklaring",
566
566
  audio: "Lyd",
@@ -560,7 +560,7 @@ const messages = {
560
560
  "source-material": "Kjeldemateriale",
561
561
  "assessment-resources": "Vurderingsressurs",
562
562
  topic: "Emne",
563
- "multidisciplinary-topic": "Tverrfagleg case",
563
+ multidisciplinary: "Tverrfagleg case",
564
564
  image: "Bilete",
565
565
  concept: "Forklaring",
566
566
  audio: "Lyd",
@@ -560,7 +560,7 @@ const messages = {
560
560
  "source-material": "Gáldomateriála",
561
561
  "assessment-resources": "Árvoštallanresursa",
562
562
  topic: "Fáddá",
563
- "multidisciplinary-topic": "Fágaidrasttideaddji fáddá",
563
+ multidisciplinary: "Fágaidrasttideaddji fáddá",
564
564
  image: "Govva",
565
565
  concept: "Čilgehus",
566
566
  audio: "Jietna",
@@ -560,7 +560,7 @@ const messages = {
560
560
  "source-material": "Gaaltijevierhtieh",
561
561
  "assessment-resources": "Vuarjasjimmievierhtie",
562
562
  topic: "Teema",
563
- "multidisciplinary-topic": "Tverrfaglig case",
563
+ multidisciplinary: "Tverrfaglig case",
564
564
  image: "Bilde",
565
565
  concept: "Forklaring",
566
566
  audio: "Lyd",
@@ -13,7 +13,7 @@ export const SUBJECT = "subject";
13
13
  export const SOURCE_MATERIAL = "source-material";
14
14
  export const LEARNING_PATH = "learning-path";
15
15
  export const TOPIC = "topic";
16
- export const MULTIDISCIPLINARY_TOPIC = "multidisciplinary-topic";
16
+ export const MULTIDISCIPLINARY = "multidisciplinary";
17
17
  export const CONCEPT = "concept";
18
18
  export const EXTERNAL = "external";
19
19
  export const MISSING = "missing";
@@ -29,7 +29,7 @@ export const contentTypes = {
29
29
  SOURCE_MATERIAL,
30
30
  LEARNING_PATH,
31
31
  TOPIC,
32
- MULTIDISCIPLINARY_TOPIC,
32
+ MULTIDISCIPLINARY,
33
33
  CONCEPT,
34
34
  EXTERNAL,
35
35
  MISSING
@@ -40,7 +40,6 @@ export const RESOURCE_TYPE_TASKS_AND_ACTIVITIES = "urn:resourcetype:tasksAndActi
40
40
  export const RESOURCE_TYPE_ASSESSMENT_RESOURCES = "urn:resourcetype:reviewResource";
41
41
  export const RESOURCE_TYPE_SOURCE_MATERIAL = "urn:resourcetype:SourceMaterial";
42
42
  export const RESOURCE_TYPE_CONCEPT = "urn:resourcetype:concept";
43
- export const ListOfContentTypes = ["SUBJECT_MATERIAL", "TASKS_AND_ACTIVITIES", "ASSESSMENT_RESOURCES", "SUBJECT", "SOURCE_MATERIAL", "LEARNING_PATH", "TOPIC", "MULTIDISIPLINARY_TOPIC", "CONCEPT", "EXTERNAL", "MISSING"];
44
43
  export const contentTypeMapping = {
45
44
  [RESOURCE_TYPE_LEARNING_PATH]: LEARNING_PATH,
46
45
  [RESOURCE_TYPE_SUBJECT_MATERIAL]: SUBJECT_MATERIAL,
@@ -48,6 +47,7 @@ export const contentTypeMapping = {
48
47
  [RESOURCE_TYPE_ASSESSMENT_RESOURCES]: ASSESSMENT_RESOURCES,
49
48
  [RESOURCE_TYPE_SOURCE_MATERIAL]: SOURCE_MATERIAL,
50
49
  [RESOURCE_TYPE_CONCEPT]: CONCEPT,
50
+ [MULTIDISCIPLINARY]: MULTIDISCIPLINARY,
51
51
  default: SUBJECT_MATERIAL
52
52
  };
53
53
  export const resourceEmbedTypeMapping = {
@@ -127,7 +127,7 @@ const iconMap = {
127
127
  iconColor: _core.colors.subject.dark,
128
128
  backgroundColor: _core.colors.subject.light
129
129
  },
130
- [contentTypes.MULTIDISCIPLINARY_TOPIC]: {
130
+ [contentTypes.MULTIDISCIPLINARY]: {
131
131
  icon: _common.ShareFill,
132
132
  backgroundColor: "#b9b37b"
133
133
  },
@@ -233,7 +233,7 @@ const LearningPathBadge = props => /*#__PURE__*/(0, _jsxRuntime.jsx)(ContentType
233
233
  exports.LearningPathBadge = LearningPathBadge;
234
234
  const MultidisciplinaryTopicBadge = props => /*#__PURE__*/(0, _jsxRuntime.jsx)(ContentTypeBadge, {
235
235
  ...props,
236
- type: contentTypes.MULTIDISCIPLINARY_TOPIC
236
+ type: contentTypes.MULTIDISCIPLINARY
237
237
  });
238
238
  exports.MultidisciplinaryTopicBadge = MultidisciplinaryTopicBadge;
239
239
  const ConceptBadge = props => /*#__PURE__*/(0, _jsxRuntime.jsx)(ContentTypeBadge, {
@@ -11,6 +11,6 @@ import * as contentTypes from "../model/ContentType";
11
11
  export interface ContentTypeBadgeProps extends Omit<BadgeProps, "colorTheme"> {
12
12
  contentType: ContentType | undefined;
13
13
  }
14
- export type ContentType = typeof contentTypes.SUBJECT_MATERIAL | typeof contentTypes.TASKS_AND_ACTIVITIES | typeof contentTypes.ASSESSMENT_RESOURCES | typeof contentTypes.SUBJECT | typeof contentTypes.SOURCE_MATERIAL | typeof contentTypes.LEARNING_PATH | typeof contentTypes.TOPIC | typeof contentTypes.MULTIDISCIPLINARY_TOPIC | typeof contentTypes.CONCEPT | typeof contentTypes.EXTERNAL | typeof contentTypes.IMAGE | typeof contentTypes.AUDIO | typeof contentTypes.VIDEO | typeof contentTypes.MISSING | typeof contentTypes.PODCAST | (string & {});
14
+ export type ContentType = typeof contentTypes.SUBJECT_MATERIAL | typeof contentTypes.TASKS_AND_ACTIVITIES | typeof contentTypes.ASSESSMENT_RESOURCES | typeof contentTypes.SUBJECT | typeof contentTypes.SOURCE_MATERIAL | typeof contentTypes.LEARNING_PATH | typeof contentTypes.TOPIC | typeof contentTypes.MULTIDISCIPLINARY | typeof contentTypes.CONCEPT | typeof contentTypes.EXTERNAL | typeof contentTypes.IMAGE | typeof contentTypes.AUDIO | typeof contentTypes.VIDEO | typeof contentTypes.MISSING | typeof contentTypes.PODCAST | (string & {});
15
15
  export declare const contentTypeToBadgeVariantMap: Record<ContentType, BadgeVariant>;
16
16
  export declare const ContentTypeBadge: import("react").ForwardRefExoticComponent<ContentTypeBadgeProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -28,7 +28,7 @@ const contentTypeToBadgeVariantMap = exports.contentTypeToBadgeVariantMap = {
28
28
  [contentTypes.LEARNING_PATH]: "brand3",
29
29
  [contentTypes.TOPIC]: "neutral",
30
30
  // TODO: Verify this color
31
- [contentTypes.MULTIDISCIPLINARY_TOPIC]: "neutral",
31
+ [contentTypes.MULTIDISCIPLINARY]: "neutral",
32
32
  [contentTypes.CONCEPT]: "brand1",
33
33
  // TODO: Verify this color
34
34
  [contentTypes.EXTERNAL]: "brand2",
@@ -32,7 +32,7 @@ const contentTypeToHeroMap = exports.contentTypeToHeroMap = {
32
32
  // TODO: This needs a color
33
33
  [contentTypes.TOPIC]: "neutral",
34
34
  // TODO: This is just taken from thin air.
35
- [contentTypes.MULTIDISCIPLINARY_TOPIC]: "brand4",
35
+ [contentTypes.MULTIDISCIPLINARY]: "brand4",
36
36
  [contentTypes.CONCEPT]: "brand1Subtle",
37
37
  // TODO: No clue what this'll be. Maybe unused?
38
38
  [contentTypes.EXTERNAL]: "primary",
@@ -550,7 +550,7 @@ declare const messages: {
550
550
  "source-material": string;
551
551
  "assessment-resources": string;
552
552
  topic: string;
553
- "multidisciplinary-topic": string;
553
+ multidisciplinary: string;
554
554
  image: string;
555
555
  concept: string;
556
556
  audio: string;
@@ -567,7 +567,7 @@ const messages = {
567
567
  "source-material": "Source material",
568
568
  "assessment-resources": "Assessment resource",
569
569
  topic: "Topic",
570
- "multidisciplinary-topic": "Multidisciplinary case",
570
+ multidisciplinary: "Multidisciplinary case",
571
571
  image: "Image",
572
572
  concept: "Concept",
573
573
  audio: "Audio",
@@ -550,7 +550,7 @@ declare const messages: {
550
550
  "source-material": string;
551
551
  "assessment-resources": string;
552
552
  topic: string;
553
- "multidisciplinary-topic": string;
553
+ multidisciplinary: string;
554
554
  image: string;
555
555
  concept: string;
556
556
  audio: string;
@@ -567,7 +567,7 @@ const messages = {
567
567
  "source-material": "Kildemateriale",
568
568
  "assessment-resources": "Vurderingsressurs",
569
569
  topic: "Emne",
570
- "multidisciplinary-topic": "Tverrfaglig case",
570
+ multidisciplinary: "Tverrfaglig case",
571
571
  image: "Bilde",
572
572
  concept: "Forklaring",
573
573
  audio: "Lyd",
@@ -550,7 +550,7 @@ declare const messages: {
550
550
  "source-material": string;
551
551
  "assessment-resources": string;
552
552
  topic: string;
553
- "multidisciplinary-topic": string;
553
+ multidisciplinary: string;
554
554
  image: string;
555
555
  concept: string;
556
556
  audio: string;
@@ -567,7 +567,7 @@ const messages = {
567
567
  "source-material": "Kjeldemateriale",
568
568
  "assessment-resources": "Vurderingsressurs",
569
569
  topic: "Emne",
570
- "multidisciplinary-topic": "Tverrfagleg case",
570
+ multidisciplinary: "Tverrfagleg case",
571
571
  image: "Bilete",
572
572
  concept: "Forklaring",
573
573
  audio: "Lyd",
@@ -550,7 +550,7 @@ declare const messages: {
550
550
  "source-material": string;
551
551
  "assessment-resources": string;
552
552
  topic: string;
553
- "multidisciplinary-topic": string;
553
+ multidisciplinary: string;
554
554
  image: string;
555
555
  concept: string;
556
556
  audio: string;
@@ -567,7 +567,7 @@ const messages = {
567
567
  "source-material": "Gáldomateriála",
568
568
  "assessment-resources": "Árvoštallanresursa",
569
569
  topic: "Fáddá",
570
- "multidisciplinary-topic": "Fágaidrasttideaddji fáddá",
570
+ multidisciplinary: "Fágaidrasttideaddji fáddá",
571
571
  image: "Govva",
572
572
  concept: "Čilgehus",
573
573
  audio: "Jietna",
@@ -550,7 +550,7 @@ declare const messages: {
550
550
  "source-material": string;
551
551
  "assessment-resources": string;
552
552
  topic: string;
553
- "multidisciplinary-topic": string;
553
+ multidisciplinary: string;
554
554
  image: string;
555
555
  concept: string;
556
556
  audio: string;
@@ -567,7 +567,7 @@ const messages = {
567
567
  "source-material": "Gaaltijevierhtieh",
568
568
  "assessment-resources": "Vuarjasjimmievierhtie",
569
569
  topic: "Teema",
570
- "multidisciplinary-topic": "Tverrfaglig case",
570
+ multidisciplinary: "Tverrfaglig case",
571
571
  image: "Bilde",
572
572
  concept: "Forklaring",
573
573
  audio: "Lyd",
@@ -12,7 +12,7 @@ export declare const SUBJECT = "subject";
12
12
  export declare const SOURCE_MATERIAL = "source-material";
13
13
  export declare const LEARNING_PATH = "learning-path";
14
14
  export declare const TOPIC = "topic";
15
- export declare const MULTIDISCIPLINARY_TOPIC = "multidisciplinary-topic";
15
+ export declare const MULTIDISCIPLINARY = "multidisciplinary";
16
16
  export declare const CONCEPT = "concept";
17
17
  export declare const EXTERNAL = "external";
18
18
  export declare const MISSING = "missing";
@@ -28,7 +28,7 @@ export declare const contentTypes: {
28
28
  SOURCE_MATERIAL: string;
29
29
  LEARNING_PATH: string;
30
30
  TOPIC: string;
31
- MULTIDISCIPLINARY_TOPIC: string;
31
+ MULTIDISCIPLINARY: string;
32
32
  CONCEPT: string;
33
33
  EXTERNAL: string;
34
34
  MISSING: string;
@@ -39,6 +39,5 @@ export declare const RESOURCE_TYPE_TASKS_AND_ACTIVITIES = "urn:resourcetype:task
39
39
  export declare const RESOURCE_TYPE_ASSESSMENT_RESOURCES = "urn:resourcetype:reviewResource";
40
40
  export declare const RESOURCE_TYPE_SOURCE_MATERIAL = "urn:resourcetype:SourceMaterial";
41
41
  export declare const RESOURCE_TYPE_CONCEPT = "urn:resourcetype:concept";
42
- export declare const ListOfContentTypes: string[];
43
42
  export declare const contentTypeMapping: Record<string, string>;
44
43
  export declare const resourceEmbedTypeMapping: Record<string, string>;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.resourceEmbedTypeMapping = exports.contentTypes = exports.contentTypeMapping = exports.VIDEO = exports.TOPIC = exports.TASKS_AND_ACTIVITIES = exports.SUBJECT_MATERIAL = exports.SUBJECT = exports.SOURCE_MATERIAL = exports.RESOURCE_TYPE_TASKS_AND_ACTIVITIES = exports.RESOURCE_TYPE_SUBJECT_MATERIAL = exports.RESOURCE_TYPE_SOURCE_MATERIAL = exports.RESOURCE_TYPE_LEARNING_PATH = exports.RESOURCE_TYPE_CONCEPT = exports.RESOURCE_TYPE_ASSESSMENT_RESOURCES = exports.PODCAST = exports.MULTIDISCIPLINARY_TOPIC = exports.MISSING = exports.ListOfContentTypes = exports.LEARNING_PATH = exports.IMAGE = exports.EXTERNAL = exports.CONCEPT = exports.AUDIO = exports.ASSESSMENT_RESOURCES = void 0;
6
+ exports.resourceEmbedTypeMapping = exports.contentTypes = exports.contentTypeMapping = exports.VIDEO = exports.TOPIC = exports.TASKS_AND_ACTIVITIES = exports.SUBJECT_MATERIAL = exports.SUBJECT = exports.SOURCE_MATERIAL = exports.RESOURCE_TYPE_TASKS_AND_ACTIVITIES = exports.RESOURCE_TYPE_SUBJECT_MATERIAL = exports.RESOURCE_TYPE_SOURCE_MATERIAL = exports.RESOURCE_TYPE_LEARNING_PATH = exports.RESOURCE_TYPE_CONCEPT = exports.RESOURCE_TYPE_ASSESSMENT_RESOURCES = exports.PODCAST = exports.MULTIDISCIPLINARY = exports.MISSING = exports.LEARNING_PATH = exports.IMAGE = exports.EXTERNAL = exports.CONCEPT = exports.AUDIO = exports.ASSESSMENT_RESOURCES = void 0;
7
7
  /**
8
8
  * Copyright (c) 2017-present, NDLA.
9
9
  *
@@ -19,7 +19,7 @@ const SUBJECT = exports.SUBJECT = "subject";
19
19
  const SOURCE_MATERIAL = exports.SOURCE_MATERIAL = "source-material";
20
20
  const LEARNING_PATH = exports.LEARNING_PATH = "learning-path";
21
21
  const TOPIC = exports.TOPIC = "topic";
22
- const MULTIDISCIPLINARY_TOPIC = exports.MULTIDISCIPLINARY_TOPIC = "multidisciplinary-topic";
22
+ const MULTIDISCIPLINARY = exports.MULTIDISCIPLINARY = "multidisciplinary";
23
23
  const CONCEPT = exports.CONCEPT = "concept";
24
24
  const EXTERNAL = exports.EXTERNAL = "external";
25
25
  const MISSING = exports.MISSING = "missing";
@@ -35,7 +35,7 @@ const contentTypes = exports.contentTypes = {
35
35
  SOURCE_MATERIAL,
36
36
  LEARNING_PATH,
37
37
  TOPIC,
38
- MULTIDISCIPLINARY_TOPIC,
38
+ MULTIDISCIPLINARY,
39
39
  CONCEPT,
40
40
  EXTERNAL,
41
41
  MISSING
@@ -46,7 +46,6 @@ const RESOURCE_TYPE_TASKS_AND_ACTIVITIES = exports.RESOURCE_TYPE_TASKS_AND_ACTIV
46
46
  const RESOURCE_TYPE_ASSESSMENT_RESOURCES = exports.RESOURCE_TYPE_ASSESSMENT_RESOURCES = "urn:resourcetype:reviewResource";
47
47
  const RESOURCE_TYPE_SOURCE_MATERIAL = exports.RESOURCE_TYPE_SOURCE_MATERIAL = "urn:resourcetype:SourceMaterial";
48
48
  const RESOURCE_TYPE_CONCEPT = exports.RESOURCE_TYPE_CONCEPT = "urn:resourcetype:concept";
49
- const ListOfContentTypes = exports.ListOfContentTypes = ["SUBJECT_MATERIAL", "TASKS_AND_ACTIVITIES", "ASSESSMENT_RESOURCES", "SUBJECT", "SOURCE_MATERIAL", "LEARNING_PATH", "TOPIC", "MULTIDISIPLINARY_TOPIC", "CONCEPT", "EXTERNAL", "MISSING"];
50
49
  const contentTypeMapping = exports.contentTypeMapping = {
51
50
  [RESOURCE_TYPE_LEARNING_PATH]: LEARNING_PATH,
52
51
  [RESOURCE_TYPE_SUBJECT_MATERIAL]: SUBJECT_MATERIAL,
@@ -54,6 +53,7 @@ const contentTypeMapping = exports.contentTypeMapping = {
54
53
  [RESOURCE_TYPE_ASSESSMENT_RESOURCES]: ASSESSMENT_RESOURCES,
55
54
  [RESOURCE_TYPE_SOURCE_MATERIAL]: SOURCE_MATERIAL,
56
55
  [RESOURCE_TYPE_CONCEPT]: CONCEPT,
56
+ [MULTIDISCIPLINARY]: MULTIDISCIPLINARY,
57
57
  default: SUBJECT_MATERIAL
58
58
  };
59
59
  const resourceEmbedTypeMapping = exports.resourceEmbedTypeMapping = {
@@ -17,7 +17,7 @@ declare const model: {
17
17
  SOURCE_MATERIAL: string;
18
18
  LEARNING_PATH: string;
19
19
  TOPIC: string;
20
- MULTIDISCIPLINARY_TOPIC: string;
20
+ MULTIDISCIPLINARY: string;
21
21
  CONCEPT: string;
22
22
  EXTERNAL: string;
23
23
  MISSING: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "56.0.12-alpha.0",
3
+ "version": "56.0.13-alpha.0",
4
4
  "description": "UI component library for NDLA",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -37,8 +37,8 @@
37
37
  "@ndla/core": "^5.0.2",
38
38
  "@ndla/icons": "^8.0.9-alpha.0",
39
39
  "@ndla/licenses": "^8.0.1-alpha.0",
40
- "@ndla/primitives": "^1.0.11-alpha.0",
41
- "@ndla/safelink": "^7.0.11-alpha.0",
40
+ "@ndla/primitives": "^1.0.12-alpha.0",
41
+ "@ndla/safelink": "^7.0.12-alpha.0",
42
42
  "@ndla/styled-system": "^0.0.11",
43
43
  "@ndla/util": "^4.1.0",
44
44
  "html-react-parser": "^5.1.8",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "cd24ae3579ab025bf18f7d0da583b64d2173d000"
70
+ "gitHead": "fd50e914af42f70fda68083094768e248c4171a2"
71
71
  }
@@ -70,7 +70,7 @@ export const AllBadges: StoryFn<typeof ContentTypeBadge> = ({ ...args }) => (
70
70
  <ContentTypeBadge {...args} type={contentTypes.SOURCE_MATERIAL} />
71
71
  <ContentTypeBadge {...args} type={contentTypes.LEARNING_PATH} />
72
72
  <ContentTypeBadge {...args} type={contentTypes.TOPIC} />
73
- <ContentTypeBadge {...args} type={contentTypes.MULTIDISCIPLINARY_TOPIC} />
73
+ <ContentTypeBadge {...args} type={contentTypes.MULTIDISCIPLINARY} />
74
74
  <ContentTypeBadge {...args} type={contentTypes.CONCEPT} />
75
75
  <ContentTypeBadge {...args} type={contentTypes.EXTERNAL} />
76
76
  <ContentTypeBadge {...args} type={contentTypes.resourceEmbedTypeMapping.image} />
@@ -131,7 +131,7 @@ const iconMap = {
131
131
  iconColor: colors.subject.dark,
132
132
  backgroundColor: colors.subject.light,
133
133
  },
134
- [contentTypes.MULTIDISCIPLINARY_TOPIC]: {
134
+ [contentTypes.MULTIDISCIPLINARY]: {
135
135
  icon: ShareFill,
136
136
  backgroundColor: "#b9b37b",
137
137
  },
@@ -220,6 +220,6 @@ export const LearningPathBadge = (props: Omit<Props, "type">) => (
220
220
  <ContentTypeBadge {...props} type={contentTypes.LEARNING_PATH} />
221
221
  );
222
222
  export const MultidisciplinaryTopicBadge = (props: Omit<Props, "type">) => (
223
- <ContentTypeBadge {...props} type={contentTypes.MULTIDISCIPLINARY_TOPIC} />
223
+ <ContentTypeBadge {...props} type={contentTypes.MULTIDISCIPLINARY} />
224
224
  );
225
225
  export const ConceptBadge = (props: Omit<Props, "type">) => <ContentTypeBadge {...props} type={contentTypes.CONCEPT} />;
@@ -41,7 +41,7 @@ export const AllBadges: StoryFn<typeof ContentTypeBadge> = () => (
41
41
  <ContentTypeBadge contentType="source-material" />
42
42
  <ContentTypeBadge contentType="learning-path" />
43
43
  <ContentTypeBadge contentType="topic" />
44
- <ContentTypeBadge contentType="multidisciplinary-topic" />
44
+ <ContentTypeBadge contentType="multidisciplinary" />
45
45
  <ContentTypeBadge contentType="concept" />
46
46
  <ContentTypeBadge contentType="external" />
47
47
  <ContentTypeBadge contentType="image" />
@@ -23,7 +23,7 @@ export type ContentType =
23
23
  | typeof contentTypes.SOURCE_MATERIAL
24
24
  | typeof contentTypes.LEARNING_PATH
25
25
  | typeof contentTypes.TOPIC
26
- | typeof contentTypes.MULTIDISCIPLINARY_TOPIC
26
+ | typeof contentTypes.MULTIDISCIPLINARY
27
27
  | typeof contentTypes.CONCEPT
28
28
  | typeof contentTypes.EXTERNAL
29
29
  | typeof contentTypes.IMAGE
@@ -43,7 +43,7 @@ export const contentTypeToBadgeVariantMap: Record<ContentType, BadgeVariant> = {
43
43
  [contentTypes.LEARNING_PATH]: "brand3",
44
44
  [contentTypes.TOPIC]: "neutral",
45
45
  // TODO: Verify this color
46
- [contentTypes.MULTIDISCIPLINARY_TOPIC]: "neutral",
46
+ [contentTypes.MULTIDISCIPLINARY]: "neutral",
47
47
  [contentTypes.CONCEPT]: "brand1",
48
48
  // TODO: Verify this color
49
49
  [contentTypes.EXTERNAL]: "brand2",
@@ -25,7 +25,7 @@ export const contentTypeToHeroMap: Record<ContentType, HeroVariant> = {
25
25
  // TODO: This needs a color
26
26
  [contentTypes.TOPIC]: "neutral",
27
27
  // TODO: This is just taken from thin air.
28
- [contentTypes.MULTIDISCIPLINARY_TOPIC]: "brand4",
28
+ [contentTypes.MULTIDISCIPLINARY]: "brand4",
29
29
  [contentTypes.CONCEPT]: "brand1Subtle",
30
30
  // TODO: No clue what this'll be. Maybe unused?
31
31
  [contentTypes.EXTERNAL]: "primary",
@@ -570,7 +570,7 @@ const messages = {
570
570
  "source-material": "Source material",
571
571
  "assessment-resources": "Assessment resource",
572
572
  topic: "Topic",
573
- "multidisciplinary-topic": "Multidisciplinary case",
573
+ multidisciplinary: "Multidisciplinary case",
574
574
  image: "Image",
575
575
  concept: "Concept",
576
576
  audio: "Audio",
@@ -570,7 +570,7 @@ const messages = {
570
570
  "source-material": "Kildemateriale",
571
571
  "assessment-resources": "Vurderingsressurs",
572
572
  topic: "Emne",
573
- "multidisciplinary-topic": "Tverrfaglig case",
573
+ multidisciplinary: "Tverrfaglig case",
574
574
  image: "Bilde",
575
575
  concept: "Forklaring",
576
576
  audio: "Lyd",
@@ -570,7 +570,7 @@ const messages = {
570
570
  "source-material": "Kjeldemateriale",
571
571
  "assessment-resources": "Vurderingsressurs",
572
572
  topic: "Emne",
573
- "multidisciplinary-topic": "Tverrfagleg case",
573
+ multidisciplinary: "Tverrfagleg case",
574
574
  image: "Bilete",
575
575
  concept: "Forklaring",
576
576
  audio: "Lyd",
@@ -572,7 +572,7 @@ const messages = {
572
572
  "source-material": "Gáldomateriála",
573
573
  "assessment-resources": "Árvoštallanresursa",
574
574
  topic: "Fáddá",
575
- "multidisciplinary-topic": "Fágaidrasttideaddji fáddá",
575
+ multidisciplinary: "Fágaidrasttideaddji fáddá",
576
576
  image: "Govva",
577
577
  concept: "Čilgehus",
578
578
  audio: "Jietna",
@@ -574,7 +574,7 @@ const messages = {
574
574
  "source-material": "Gaaltijevierhtieh",
575
575
  "assessment-resources": "Vuarjasjimmievierhtie",
576
576
  topic: "Teema",
577
- "multidisciplinary-topic": "Tverrfaglig case",
577
+ multidisciplinary: "Tverrfaglig case",
578
578
  image: "Bilde",
579
579
  concept: "Forklaring",
580
580
  audio: "Lyd",
@@ -13,7 +13,7 @@ export const SUBJECT = "subject";
13
13
  export const SOURCE_MATERIAL = "source-material";
14
14
  export const LEARNING_PATH = "learning-path";
15
15
  export const TOPIC = "topic";
16
- export const MULTIDISCIPLINARY_TOPIC = "multidisciplinary-topic";
16
+ export const MULTIDISCIPLINARY = "multidisciplinary";
17
17
  export const CONCEPT = "concept";
18
18
  export const EXTERNAL = "external";
19
19
  export const MISSING = "missing";
@@ -30,7 +30,7 @@ export const contentTypes = {
30
30
  SOURCE_MATERIAL,
31
31
  LEARNING_PATH,
32
32
  TOPIC,
33
- MULTIDISCIPLINARY_TOPIC,
33
+ MULTIDISCIPLINARY,
34
34
  CONCEPT,
35
35
  EXTERNAL,
36
36
  MISSING,
@@ -43,20 +43,6 @@ export const RESOURCE_TYPE_ASSESSMENT_RESOURCES = "urn:resourcetype:reviewResour
43
43
  export const RESOURCE_TYPE_SOURCE_MATERIAL = "urn:resourcetype:SourceMaterial";
44
44
  export const RESOURCE_TYPE_CONCEPT = "urn:resourcetype:concept";
45
45
 
46
- export const ListOfContentTypes = [
47
- "SUBJECT_MATERIAL",
48
- "TASKS_AND_ACTIVITIES",
49
- "ASSESSMENT_RESOURCES",
50
- "SUBJECT",
51
- "SOURCE_MATERIAL",
52
- "LEARNING_PATH",
53
- "TOPIC",
54
- "MULTIDISIPLINARY_TOPIC",
55
- "CONCEPT",
56
- "EXTERNAL",
57
- "MISSING",
58
- ];
59
-
60
46
  export const contentTypeMapping: Record<string, string> = {
61
47
  [RESOURCE_TYPE_LEARNING_PATH]: LEARNING_PATH,
62
48
  [RESOURCE_TYPE_SUBJECT_MATERIAL]: SUBJECT_MATERIAL,
@@ -64,6 +50,7 @@ export const contentTypeMapping: Record<string, string> = {
64
50
  [RESOURCE_TYPE_ASSESSMENT_RESOURCES]: ASSESSMENT_RESOURCES,
65
51
  [RESOURCE_TYPE_SOURCE_MATERIAL]: SOURCE_MATERIAL,
66
52
  [RESOURCE_TYPE_CONCEPT]: CONCEPT,
53
+ [MULTIDISCIPLINARY]: MULTIDISCIPLINARY,
67
54
  default: SUBJECT_MATERIAL,
68
55
  };
69
56