@ndla/ui 56.0.18-alpha.0 → 56.0.19-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 (115) hide show
  1. package/dist/panda.buildinfo.json +10 -8
  2. package/dist/styles.css +35 -29
  3. package/es/Article/Article.js +3 -3
  4. package/es/Article/ArticleByline.js +5 -4
  5. package/es/Article/index.js +1 -2
  6. package/es/AudioPlayer/AudioPlayer.js +1 -1
  7. package/es/CampaignBlock/CampaignBlock.js +25 -13
  8. package/es/Concept/Concept.js +4 -0
  9. package/es/ContactBlock/ContactBlock.js +0 -1
  10. package/es/ContentTypeBadge/ContentTypeBadgeNew.js +0 -3
  11. package/es/ContentTypeHero/ContentTypeHero.js +2 -8
  12. package/es/Embed/AudioEmbed.js +3 -0
  13. package/es/Embed/BrightcoveEmbed.js +5 -1
  14. package/es/Embed/ConceptEmbed.js +19 -10
  15. package/es/Embed/ConceptListEmbed.js +2 -1
  16. package/es/Embed/ImageEmbed.js +3 -0
  17. package/es/Embed/index.js +1 -0
  18. package/es/FileList/FileList.js +5 -1
  19. package/es/FileList/PdfFile.js +6 -1
  20. package/es/FileList/index.js +1 -1
  21. package/es/Grid/Grid.js +0 -1
  22. package/es/LicenseByline/EmbedByline.js +4 -1
  23. package/es/TreeStructure/TreeStructure.js +0 -2
  24. package/es/i18n/index.js +1 -1
  25. package/es/i18n/useComponentTranslations.js +61 -0
  26. package/es/index.js +7 -5
  27. package/es/locale/messages-en.js +23 -1
  28. package/es/locale/messages-nb.js +23 -1
  29. package/es/locale/messages-nn.js +71 -49
  30. package/es/locale/messages-se.js +23 -1
  31. package/es/locale/messages-sma.js +23 -1
  32. package/es/styles.css +35 -29
  33. package/es/utils/licenseAttributes.js +18 -0
  34. package/lib/Article/Article.js +3 -3
  35. package/lib/Article/ArticleByline.js +5 -4
  36. package/lib/Article/index.d.ts +0 -1
  37. package/lib/Article/index.js +1 -8
  38. package/lib/AudioPlayer/AudioPlayer.js +1 -1
  39. package/lib/CampaignBlock/CampaignBlock.js +25 -13
  40. package/lib/Concept/Concept.d.ts +1 -0
  41. package/lib/Concept/Concept.js +4 -0
  42. package/lib/ContactBlock/ContactBlock.js +0 -1
  43. package/lib/ContentTypeBadge/ContentTypeBadgeNew.js +0 -3
  44. package/lib/ContentTypeHero/ContentTypeHero.js +2 -7
  45. package/lib/Embed/AudioEmbed.js +3 -0
  46. package/lib/Embed/BrightcoveEmbed.d.ts +2 -1
  47. package/lib/Embed/BrightcoveEmbed.js +5 -1
  48. package/lib/Embed/ConceptEmbed.d.ts +1 -0
  49. package/lib/Embed/ConceptEmbed.js +19 -10
  50. package/lib/Embed/ConceptListEmbed.js +2 -1
  51. package/lib/Embed/ImageEmbed.js +3 -0
  52. package/lib/Embed/index.d.ts +1 -0
  53. package/lib/Embed/index.js +7 -0
  54. package/lib/FileList/FileList.d.ts +3 -1
  55. package/lib/FileList/FileList.js +5 -1
  56. package/lib/FileList/PdfFile.js +6 -1
  57. package/lib/FileList/index.d.ts +1 -1
  58. package/lib/FileList/index.js +6 -0
  59. package/lib/Grid/Grid.js +0 -1
  60. package/lib/LicenseByline/EmbedByline.js +4 -1
  61. package/lib/TreeStructure/TreeStructure.js +0 -2
  62. package/lib/i18n/index.d.ts +1 -1
  63. package/lib/i18n/index.js +12 -0
  64. package/lib/i18n/useComponentTranslations.d.ts +31 -0
  65. package/lib/i18n/useComponentTranslations.js +64 -2
  66. package/lib/index.d.ts +6 -4
  67. package/lib/index.js +38 -6
  68. package/lib/locale/messages-en.d.ts +22 -0
  69. package/lib/locale/messages-en.js +23 -1
  70. package/lib/locale/messages-nb.d.ts +22 -0
  71. package/lib/locale/messages-nb.js +23 -1
  72. package/lib/locale/messages-nn.d.ts +22 -0
  73. package/lib/locale/messages-nn.js +71 -49
  74. package/lib/locale/messages-se.d.ts +22 -0
  75. package/lib/locale/messages-se.js +23 -1
  76. package/lib/locale/messages-sma.d.ts +22 -0
  77. package/lib/locale/messages-sma.js +23 -1
  78. package/lib/styles.css +35 -29
  79. package/lib/utils/licenseAttributes.d.ts +16 -0
  80. package/lib/utils/licenseAttributes.js +25 -0
  81. package/package.json +8 -8
  82. package/src/Article/Article.tsx +7 -6
  83. package/src/Article/ArticleByline.tsx +2 -3
  84. package/src/Article/index.ts +0 -2
  85. package/src/AudioPlayer/AudioPlayer.tsx +5 -3
  86. package/src/CampaignBlock/CampaignBlock.tsx +23 -12
  87. package/src/Concept/Concept.tsx +6 -2
  88. package/src/ContactBlock/ContactBlock.tsx +0 -1
  89. package/src/ContentTypeBadge/ContentTypeBadgeNew.tsx +0 -3
  90. package/src/ContentTypeHero/ContentTypeHero.tsx +2 -7
  91. package/src/Embed/AudioEmbed.tsx +4 -1
  92. package/src/Embed/BrightcoveEmbed.tsx +6 -3
  93. package/src/Embed/ConceptEmbed.tsx +17 -10
  94. package/src/Embed/ConceptListEmbed.tsx +1 -0
  95. package/src/Embed/ImageEmbed.tsx +4 -0
  96. package/src/Embed/index.ts +1 -0
  97. package/src/FileList/FileList.tsx +16 -10
  98. package/src/FileList/PdfFile.tsx +8 -2
  99. package/src/FileList/index.ts +1 -1
  100. package/src/Grid/Grid.tsx +0 -1
  101. package/src/LicenseByline/EmbedByline.tsx +2 -1
  102. package/src/TreeStructure/TreeStructure.tsx +0 -1
  103. package/src/i18n/index.ts +2 -0
  104. package/src/i18n/useComponentTranslations.ts +78 -0
  105. package/src/index.ts +8 -2
  106. package/src/locale/messages-en.ts +24 -1
  107. package/src/locale/messages-nb.ts +24 -1
  108. package/src/locale/messages-nn.ts +72 -49
  109. package/src/locale/messages-se.ts +24 -1
  110. package/src/locale/messages-sma.ts +24 -1
  111. package/src/utils/licenseAttributes.ts +23 -0
  112. package/es/Article/ArticleParagraph.js +0 -23
  113. package/lib/Article/ArticleParagraph.d.ts +0 -13
  114. package/lib/Article/ArticleParagraph.js +0 -30
  115. package/src/Article/ArticleParagraph.tsx +0 -27
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.FileListWrapper = exports.FileListItem = exports.FileListEmbed = void 0;
7
7
  var _reactI18next = require("react-i18next");
8
+ var _react = require("@ark-ui/react");
8
9
  var _primitives = require("@ndla/primitives");
9
10
  var _jsx2 = require("@ndla/styled-system/jsx");
10
11
  var _jsxRuntime = require("react/jsx-runtime");
@@ -23,8 +24,9 @@ const FileListWrapper = exports.FileListWrapper = (0, _jsx2.styled)("div", {
23
24
  gap: "xsmall"
24
25
  }
25
26
  });
26
- const FileListItem = exports.FileListItem = (0, _jsx2.styled)("li", {
27
+ const FileListItem = exports.FileListItem = (0, _jsx2.styled)(_react.ark.li, {
27
28
  base: {
29
+ listStyle: "none",
28
30
  background: "surface.infoSubtle",
29
31
  borderBlockEnd: "1px solid",
30
32
  borderColor: "stroke.default",
@@ -34,6 +36,8 @@ const FileListItem = exports.FileListItem = (0, _jsx2.styled)("li", {
34
36
  backgroundColor: "surface.infoSubtle.hover"
35
37
  }
36
38
  }
39
+ }, {
40
+ baseComponent: true
37
41
  });
38
42
  const FileListEmbed = _ref => {
39
43
  let {
@@ -20,6 +20,11 @@ const StyledIframe = (0, _jsx2.styled)("iframe", {
20
20
  width: "100%"
21
21
  }
22
22
  });
23
+ const StyledListElement = (0, _jsx2.styled)("li", {
24
+ base: {
25
+ listStyle: "none"
26
+ }
27
+ });
23
28
  const StyledFigure = (0, _jsx2.styled)(_primitives.Figure, {
24
29
  base: {
25
30
  display: "flex",
@@ -32,7 +37,7 @@ const PdfFile = _ref => {
32
37
  title,
33
38
  url
34
39
  } = _ref;
35
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
40
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledListElement, {
36
41
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(StyledFigure, {
37
42
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Heading, {
38
43
  asChild: true,
@@ -5,6 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- export { FileListEmbed, FileListItem } from "./FileList";
8
+ export { FileListEmbed, FileListItem, FileListWrapper } from "./FileList";
9
9
  export { File, FileListElement } from "./File";
10
10
  export { PdfFile } from "./PdfFile";
@@ -27,6 +27,12 @@ Object.defineProperty(exports, "FileListItem", {
27
27
  return _FileList.FileListItem;
28
28
  }
29
29
  });
30
+ Object.defineProperty(exports, "FileListWrapper", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _FileList.FileListWrapper;
34
+ }
35
+ });
30
36
  Object.defineProperty(exports, "PdfFile", {
31
37
  enumerable: true,
32
38
  get: function () {
package/lib/Grid/Grid.js CHANGED
@@ -23,7 +23,6 @@ const GridContainer = (0, _jsx2.styled)("div", {
23
23
  gridColumnGap: "medium",
24
24
  width: "100%",
25
25
  backgroundColor: "background.subtle",
26
- maxWidth: "surface.4xlarge",
27
26
  minWidth: "surface.xxsmall",
28
27
  gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
29
28
  tabletDown: {
@@ -187,7 +187,10 @@ const LicenseContainerContent = _ref3 => {
187
187
  const authors = (0, _licenses.getLicenseCredits)(copyright);
188
188
  const captionAuthors = Object.values(authors).find(i => i.length > 0) ?? [];
189
189
  const content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
190
- children: [children, ` ${t(`embed.type.${type}`)}${captionAuthors.length ? ": " : ""}`, captionAuthors.map(author => author.name).join(", "), license ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
190
+ children: [children, ` ${t(`embed.type.${type}`)}${captionAuthors.length ? ": " : ""}`, /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
191
+ property: "cc:attributionName",
192
+ children: captionAuthors.map(author => author.name).join(", ")
193
+ }), license ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
191
194
  children: [" / ", /*#__PURE__*/(0, _jsxRuntime.jsx)(_LicenseLink.LicenseLink, {
192
195
  license: license
193
196
  })]
@@ -257,8 +257,6 @@ const TreeStructureItem = _ref2 => {
257
257
  } = (0, _react2.usePopoverContext)();
258
258
  const containsResource = targetResource && folder.resources.some(resource => resource.resourceId === targetResource.resourceId);
259
259
  const FolderIcon = folder.status === "shared" ? StyledFolderUserLine : StyledFolderLine;
260
-
261
- // TODO: Pressing enter selects the item and closes the popover immediately. Do we actually want this? Old behavior.
262
260
  const onKeyDown = (0, _react.useCallback)(e => {
263
261
  if (e.key === "Enter") {
264
262
  setOpen(false);
@@ -7,4 +7,4 @@
7
7
  */
8
8
  export { i18nInstance } from "./i18n";
9
9
  export { formatNestedMessages } from "./formatNestedMessages";
10
- export { useComboboxTranslations, useTagSelectorTranslations, useTagsInputTranslations, usePaginationTranslations, } from "./useComponentTranslations";
10
+ export { useComboboxTranslations, useTagSelectorTranslations, useTagsInputTranslations, usePaginationTranslations, useAudioSearchTranslations, useImageSearchTranslations, } from "./useComponentTranslations";
package/lib/i18n/index.js CHANGED
@@ -15,12 +15,24 @@ Object.defineProperty(exports, "i18nInstance", {
15
15
  return _i18n.i18nInstance;
16
16
  }
17
17
  });
18
+ Object.defineProperty(exports, "useAudioSearchTranslations", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _useComponentTranslations.useAudioSearchTranslations;
22
+ }
23
+ });
18
24
  Object.defineProperty(exports, "useComboboxTranslations", {
19
25
  enumerable: true,
20
26
  get: function () {
21
27
  return _useComponentTranslations.useComboboxTranslations;
22
28
  }
23
29
  });
30
+ Object.defineProperty(exports, "useImageSearchTranslations", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _useComponentTranslations.useImageSearchTranslations;
34
+ }
35
+ });
24
36
  Object.defineProperty(exports, "usePaginationTranslations", {
25
37
  enumerable: true,
26
38
  get: function () {
@@ -8,7 +8,38 @@
8
8
  import type { ComboboxCollectionItem } from "@ark-ui/react";
9
9
  import type { ComboboxRootProps, PaginationRootProps, TagsInputRootProps } from "@ndla/primitives";
10
10
  import { TagSelectorRootProps } from "../TagSelector/TagSelector";
11
+ type DeepPartial<T> = {
12
+ [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
13
+ };
11
14
  export declare const useTagsInputTranslations: (translations?: Partial<TagsInputRootProps["translations"]>) => TagsInputRootProps["translations"];
12
15
  export declare const useComboboxTranslations: <T extends ComboboxCollectionItem>(translations?: Partial<ComboboxRootProps<T>["translations"]>) => ComboboxRootProps<T>["translations"];
13
16
  export declare const useTagSelectorTranslations: <T extends ComboboxCollectionItem>(translations?: Partial<TagSelectorRootProps<T>["translations"]>) => TagSelectorRootProps<T>["translations"];
14
17
  export declare const usePaginationTranslations: (translations?: Partial<PaginationRootProps["translations"]>) => PaginationRootProps["translations"];
18
+ interface AudioSearchTranslations {
19
+ searchPlaceholder: string;
20
+ searchButtonTitle: string;
21
+ useAudio: string;
22
+ noResults: string;
23
+ paginationTranslations: PaginationRootProps["translations"];
24
+ }
25
+ interface MetadataTranslations {
26
+ creatorsLabel: string;
27
+ license: string;
28
+ caption: string;
29
+ altText: string;
30
+ modelRelease: string;
31
+ tags: string;
32
+ }
33
+ interface ImageSearchTranslations {
34
+ searchPlaceholder: string;
35
+ searchButtonTitle: string;
36
+ useImageTitle: string;
37
+ close: string;
38
+ imageMetadata: MetadataTranslations;
39
+ paginationTranslations: PaginationRootProps["translations"];
40
+ missingTitleFallback?: string;
41
+ checkboxLabel?: string;
42
+ }
43
+ export declare const useImageSearchTranslations: (translations?: DeepPartial<ImageSearchTranslations>) => ImageSearchTranslations;
44
+ export declare const useAudioSearchTranslations: (translations?: DeepPartial<AudioSearchTranslations>) => AudioSearchTranslations;
45
+ export {};
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useTagsInputTranslations = exports.useTagSelectorTranslations = exports.usePaginationTranslations = exports.useComboboxTranslations = void 0;
6
+ exports.useTagsInputTranslations = exports.useTagSelectorTranslations = exports.usePaginationTranslations = exports.useImageSearchTranslations = exports.useComboboxTranslations = exports.useAudioSearchTranslations = void 0;
7
7
  var _reactI18next = require("react-i18next");
8
8
  /**
9
9
  * Copyright (c) 2024-present, NDLA.
@@ -90,4 +90,66 @@ const usePaginationTranslations = translations => {
90
90
  ...translations
91
91
  };
92
92
  };
93
- exports.usePaginationTranslations = usePaginationTranslations;
93
+
94
+ // TODO: Deduplicate this and place it somewhere smart. Maybe core?
95
+ exports.usePaginationTranslations = usePaginationTranslations;
96
+ const useImageSearchTranslations = function () {
97
+ let translations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
98
+ const {
99
+ t
100
+ } = (0, _reactI18next.useTranslation)("translation", {
101
+ keyPrefix: "component.imageSearch"
102
+ });
103
+ const paginationTranslations = usePaginationTranslations();
104
+ const {
105
+ imageMetadata,
106
+ paginationTranslations: fallbackPaginationTranslations,
107
+ ...remaining
108
+ } = translations;
109
+ return {
110
+ close: t("close"),
111
+ searchPlaceholder: t("searchPlaceholder"),
112
+ searchButtonTitle: t("searchButtonTitle"),
113
+ useImageTitle: t("useImageTitle"),
114
+ imageMetadata: {
115
+ creatorsLabel: t("imageMetadata.creatorsLabel"),
116
+ license: t("imageMetadata.license"),
117
+ caption: t("imageMetadata.caption"),
118
+ altText: t("imageMetadata.altText"),
119
+ modelRelease: t("imageMetadata.modelRelease"),
120
+ tags: t("imageMetadata.tags"),
121
+ ...imageMetadata
122
+ },
123
+ paginationTranslations: {
124
+ ...paginationTranslations,
125
+ ...fallbackPaginationTranslations
126
+ },
127
+ ...remaining
128
+ };
129
+ };
130
+ exports.useImageSearchTranslations = useImageSearchTranslations;
131
+ const useAudioSearchTranslations = function () {
132
+ let translations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
133
+ const {
134
+ t
135
+ } = (0, _reactI18next.useTranslation)("translation", {
136
+ keyPrefix: "component.audioSearch"
137
+ });
138
+ const paginationTranslations = usePaginationTranslations();
139
+ const {
140
+ paginationTranslations: fallbackPaginationTranslations,
141
+ ...remaining
142
+ } = translations;
143
+ return {
144
+ searchPlaceholder: t("searchPlaceholder"),
145
+ searchButtonTitle: t("searchButtonTitle"),
146
+ useAudio: t("useAudio"),
147
+ noResults: t("noResults"),
148
+ paginationTranslations: {
149
+ ...paginationTranslations,
150
+ ...fallbackPaginationTranslations
151
+ },
152
+ ...remaining
153
+ };
154
+ };
155
+ exports.useAudioSearchTranslations = useAudioSearchTranslations;
package/lib/index.d.ts CHANGED
@@ -5,14 +5,15 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- export { ImageEmbed, getCrop, getFocalPoint, AudioEmbed, H5pEmbed, ExternalEmbed, IframeEmbed, FootnoteEmbed, BrightcoveEmbed, ContentLinkEmbed, RelatedContentEmbed, ConceptEmbed, ConceptListEmbed, UnknownEmbed, InlineConcept, BlockConcept, UuDisclaimerEmbed, CopyrightEmbed, CodeEmbed, } from "./Embed";
8
+ export { Concept } from "./Concept/Concept";
9
+ export { ImageEmbed, getCrop, getFocalPoint, AudioEmbed, H5pEmbed, ExternalEmbed, IframeEmbed, FootnoteEmbed, BrightcoveEmbed, ContentLinkEmbed, RelatedContentEmbed, ConceptEmbed, ConceptListEmbed, UnknownEmbed, InlineConcept, BlockConcept, UuDisclaimerEmbed, CopyrightEmbed, CodeEmbed, InlineTriggerButton, } from "./Embed";
9
10
  export { LicenseLink, EmbedByline } from "./LicenseByline";
10
- export { ArticleByline, ArticleBylineAccordionItem, ArticleFootNotes, ArticleWrapper, Article, ArticleParagraph, ArticleFooter, ArticleHeader, ArticleContent, ArticleHGroup, ArticleTitle, } from "./Article";
11
+ export { ArticleByline, ArticleBylineAccordionItem, ArticleFootNotes, ArticleWrapper, Article, ArticleFooter, ArticleHeader, ArticleContent, ArticleHGroup, ArticleTitle, } from "./Article";
11
12
  export { getPossiblyRelativeUrl } from "./utils/relativeUrl";
12
13
  export { default as ContentLoader } from "./ContentLoader";
13
14
  export { default as RelatedArticleList, RelatedArticle } from "./RelatedArticleList";
14
15
  export { ErrorResourceAccessDenied, default as ErrorMessage } from "./ErrorMessage";
15
- export { FileListEmbed, File, PdfFile, FileListItem, FileListElement } from "./FileList";
16
+ export { FileListEmbed, File, PdfFile, FileListItem, FileListElement, FileListWrapper } from "./FileList";
16
17
  export { default as FactBox } from "./FactBox";
17
18
  export type { ContentTypeHeroProps } from "./ContentTypeHero";
18
19
  export { ContentTypeHero } from "./ContentTypeHero";
@@ -26,7 +27,7 @@ export { default as messagesSE } from "./locale/messages-se";
26
27
  export { default as messagesSMA } from "./locale/messages-sma";
27
28
  export { default as Breadcrumb, HomeBreadcrumb } from "./Breadcrumb";
28
29
  export type { SimpleBreadcrumbItem, IndexedBreadcrumbItem } from "./Breadcrumb";
29
- export { i18nInstance, formatNestedMessages, useTagsInputTranslations, useTagSelectorTranslations, useComboboxTranslations, usePaginationTranslations, } from "./i18n";
30
+ export { i18nInstance, formatNestedMessages, useTagsInputTranslations, useTagSelectorTranslations, useComboboxTranslations, usePaginationTranslations, useAudioSearchTranslations, useImageSearchTranslations, } from "./i18n";
30
31
  export { default as LayoutItem, OneColumn, PageContainer } from "./Layout";
31
32
  export { default as ContentTypeBadge, SubjectMaterialBadge, TasksAndActivitiesBadge, AssessmentResourcesBadge, LearningPathBadge, SubjectBadge, SourceMaterialBadge, ConceptBadge, } from "./ContentTypeBadge";
32
33
  export type { ContentTypeBadgeProps, ContentType } from "./ContentTypeBadge/ContentTypeBadgeNew";
@@ -49,3 +50,4 @@ export type { Article as ArticleType } from "./types";
49
50
  export { CodeBlock, codeLanguageOptions } from "./CodeBlock";
50
51
  export { ZendeskButton } from "./ZendeskButton/ZendeskButton";
51
52
  export type { ZendeskButtonProps } from "./ZendeskButton/ZendeskButton";
53
+ export { licenseAttributes } from "./utils/licenseAttributes";
package/lib/index.js CHANGED
@@ -51,12 +51,6 @@ Object.defineProperty(exports, "ArticleHeader", {
51
51
  return _Article.ArticleHeader;
52
52
  }
53
53
  });
54
- Object.defineProperty(exports, "ArticleParagraph", {
55
- enumerable: true,
56
- get: function () {
57
- return _Article.ArticleParagraph;
58
- }
59
- });
60
54
  Object.defineProperty(exports, "ArticleTitle", {
61
55
  enumerable: true,
62
56
  get: function () {
@@ -129,6 +123,12 @@ Object.defineProperty(exports, "CodeEmbed", {
129
123
  return _Embed.CodeEmbed;
130
124
  }
131
125
  });
126
+ Object.defineProperty(exports, "Concept", {
127
+ enumerable: true,
128
+ get: function () {
129
+ return _Concept.Concept;
130
+ }
131
+ });
132
132
  Object.defineProperty(exports, "ConceptBadge", {
133
133
  enumerable: true,
134
134
  get: function () {
@@ -249,6 +249,12 @@ Object.defineProperty(exports, "FileListItem", {
249
249
  return _FileList.FileListItem;
250
250
  }
251
251
  });
252
+ Object.defineProperty(exports, "FileListWrapper", {
253
+ enumerable: true,
254
+ get: function () {
255
+ return _FileList.FileListWrapper;
256
+ }
257
+ });
252
258
  Object.defineProperty(exports, "FootnoteEmbed", {
253
259
  enumerable: true,
254
260
  get: function () {
@@ -309,6 +315,12 @@ Object.defineProperty(exports, "InlineConcept", {
309
315
  return _Embed.InlineConcept;
310
316
  }
311
317
  });
318
+ Object.defineProperty(exports, "InlineTriggerButton", {
319
+ enumerable: true,
320
+ get: function () {
321
+ return _Embed.InlineTriggerButton;
322
+ }
323
+ });
312
324
  Object.defineProperty(exports, "KeyFigure", {
313
325
  enumerable: true,
314
326
  get: function () {
@@ -537,6 +549,12 @@ Object.defineProperty(exports, "i18nInstance", {
537
549
  return _i18n.i18nInstance;
538
550
  }
539
551
  });
552
+ Object.defineProperty(exports, "licenseAttributes", {
553
+ enumerable: true,
554
+ get: function () {
555
+ return _licenseAttributes.licenseAttributes;
556
+ }
557
+ });
540
558
  Object.defineProperty(exports, "messagesEN", {
541
559
  enumerable: true,
542
560
  get: function () {
@@ -567,12 +585,24 @@ Object.defineProperty(exports, "messagesSMA", {
567
585
  return _messagesSma.default;
568
586
  }
569
587
  });
588
+ Object.defineProperty(exports, "useAudioSearchTranslations", {
589
+ enumerable: true,
590
+ get: function () {
591
+ return _i18n.useAudioSearchTranslations;
592
+ }
593
+ });
570
594
  Object.defineProperty(exports, "useComboboxTranslations", {
571
595
  enumerable: true,
572
596
  get: function () {
573
597
  return _i18n.useComboboxTranslations;
574
598
  }
575
599
  });
600
+ Object.defineProperty(exports, "useImageSearchTranslations", {
601
+ enumerable: true,
602
+ get: function () {
603
+ return _i18n.useImageSearchTranslations;
604
+ }
605
+ });
576
606
  Object.defineProperty(exports, "usePaginationTranslations", {
577
607
  enumerable: true,
578
608
  get: function () {
@@ -591,6 +621,7 @@ Object.defineProperty(exports, "useTagsInputTranslations", {
591
621
  return _i18n.useTagsInputTranslations;
592
622
  }
593
623
  });
624
+ var _Concept = require("./Concept/Concept");
594
625
  var _Embed = require("./Embed");
595
626
  var _LicenseByline = require("./LicenseByline");
596
627
  var _Article = require("./Article");
@@ -626,6 +657,7 @@ var _Gloss = require("./Gloss");
626
657
  var _LinkBlock = require("./LinkBlock");
627
658
  var _CodeBlock = require("./CodeBlock");
628
659
  var _ZendeskButton = require("./ZendeskButton/ZendeskButton");
660
+ var _licenseAttributes = require("./utils/licenseAttributes");
629
661
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
630
662
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
631
663
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -901,6 +901,7 @@ declare const messages: {
901
901
  close: string;
902
902
  };
903
903
  myNdla: {
904
+ description: string;
904
905
  mainMenu: string;
905
906
  myNDLA: string;
906
907
  myNDLAMenu: string;
@@ -1423,6 +1424,27 @@ declare const messages: {
1423
1424
  lastPage: string;
1424
1425
  page: string;
1425
1426
  };
1427
+ imageSearch: {
1428
+ close: string;
1429
+ searchPlaceholder: string;
1430
+ searchButtonTitle: string;
1431
+ useImageTitle: string;
1432
+ checkboxLabel: string;
1433
+ imageMetadata: {
1434
+ creatorsLabel: string;
1435
+ license: string;
1436
+ caption: string;
1437
+ altText: string;
1438
+ modelRelease: string;
1439
+ tags: string;
1440
+ };
1441
+ };
1442
+ audioSearch: {
1443
+ searchPlaceholder: string;
1444
+ searchButtonTitle: string;
1445
+ useAudio: string;
1446
+ noResults: string;
1447
+ };
1426
1448
  };
1427
1449
  };
1428
1450
  export default messages;
@@ -918,6 +918,7 @@ const messages = {
918
918
  close: "Close fact box"
919
919
  },
920
920
  myNdla: {
921
+ description: "My NDLA: Organize the content your way! Use NDLA’s chat robot (AI). Save and share with colleagues and students.",
921
922
  mainMenu: "Main menu",
922
923
  myNDLA: "My NDLA",
923
924
  myNDLAMenu: "My NDLA menu",
@@ -1344,7 +1345,7 @@ const messages = {
1344
1345
  dragHandle: "Drag the category {{name}}"
1345
1346
  },
1346
1347
  favoriteSubjects: {
1347
- title: "My favorite subjects",
1348
+ title: "My subjects",
1348
1349
  subjects: "{{count}} subject",
1349
1350
  subjects_0: "{{count}} subjects",
1350
1351
  subjects_plural: "{{count}} subjects",
@@ -1473,6 +1474,27 @@ const messages = {
1473
1474
  nextTriggerLabel: "Next page",
1474
1475
  lastPage: "Last page, page {{page}}",
1475
1476
  page: "Page {{page}}"
1477
+ },
1478
+ imageSearch: {
1479
+ close: "Close",
1480
+ searchPlaceholder: "Search images",
1481
+ searchButtonTitle: "Search",
1482
+ useImageTitle: "Use image",
1483
+ checkboxLabel: "Set as meta image",
1484
+ imageMetadata: {
1485
+ creatorsLabel: "Image",
1486
+ license: "License",
1487
+ caption: "Caption",
1488
+ altText: "Alt-text",
1489
+ modelRelease: "Model released",
1490
+ tags: "Tags"
1491
+ }
1492
+ },
1493
+ audioSearch: {
1494
+ searchPlaceholder: "Search in audio files",
1495
+ searchButtonTitle: "Search",
1496
+ useAudio: "Chose audio",
1497
+ noResults: "No audio files found"
1476
1498
  }
1477
1499
  }
1478
1500
  };
@@ -901,6 +901,7 @@ declare const messages: {
901
901
  close: string;
902
902
  };
903
903
  myNdla: {
904
+ description: string;
904
905
  mainMenu: string;
905
906
  myNDLA: string;
906
907
  myNDLAMenu: string;
@@ -1423,6 +1424,27 @@ declare const messages: {
1423
1424
  lastPage: string;
1424
1425
  page: string;
1425
1426
  };
1427
+ imageSearch: {
1428
+ close: string;
1429
+ searchPlaceholder: string;
1430
+ searchButtonTitle: string;
1431
+ useImageTitle: string;
1432
+ checkboxLabel: string;
1433
+ imageMetadata: {
1434
+ creatorsLabel: string;
1435
+ license: string;
1436
+ caption: string;
1437
+ altText: string;
1438
+ modelRelease: string;
1439
+ tags: string;
1440
+ };
1441
+ };
1442
+ audioSearch: {
1443
+ searchPlaceholder: string;
1444
+ searchButtonTitle: string;
1445
+ useAudio: string;
1446
+ noResults: string;
1447
+ };
1426
1448
  };
1427
1449
  };
1428
1450
  export default messages;
@@ -918,6 +918,7 @@ const messages = {
918
918
  close: "Lukk faktaboks"
919
919
  },
920
920
  myNdla: {
921
+ description: "Min NDLA: Organiser fagstoffet på din måte! Bruk NDLAs praterobot (AI/KI). Lagre og del med kolleger og elever.",
921
922
  mainMenu: "Hovedmeny",
922
923
  myNDLA: "Min NDLA",
923
924
  myNDLAMenu: "Min NDLA meny",
@@ -1344,7 +1345,7 @@ const messages = {
1344
1345
  dragHandle: "Sorter kategorien {{name}}"
1345
1346
  },
1346
1347
  favoriteSubjects: {
1347
- title: "Mine favorittfag",
1348
+ title: "Mine fag",
1348
1349
  subjects: "{{count}} fag",
1349
1350
  subjects_0: "{{count}} fag",
1350
1351
  subjects_plural: "{{count}} fag",
@@ -1473,6 +1474,27 @@ const messages = {
1473
1474
  nextTriggerLabel: "Neste side",
1474
1475
  lastPage: "Siste side, side {{page}}",
1475
1476
  page: "Side {{page}}"
1477
+ },
1478
+ imageSearch: {
1479
+ close: "Lukk",
1480
+ searchPlaceholder: "Søk i bilder",
1481
+ searchButtonTitle: "Søk",
1482
+ useImageTitle: "Bruk bildet",
1483
+ checkboxLabel: "Sett som metabilde",
1484
+ imageMetadata: {
1485
+ creatorsLabel: "Bilde",
1486
+ license: "Lisens",
1487
+ caption: "Bildetekst",
1488
+ altText: "Alt-tekst",
1489
+ modelRelease: "Modellklarert",
1490
+ tags: "Emneknagger"
1491
+ }
1492
+ },
1493
+ audioSearch: {
1494
+ searchPlaceholder: "Søk i lydfiler",
1495
+ searchButtonTitle: "Søk",
1496
+ useAudio: "Velg lyd",
1497
+ noResults: "Ingen resultater funnet"
1476
1498
  }
1477
1499
  }
1478
1500
  };
@@ -901,6 +901,7 @@ declare const messages: {
901
901
  close: string;
902
902
  };
903
903
  myNdla: {
904
+ description: string;
904
905
  mainMenu: string;
905
906
  myNDLA: string;
906
907
  myNDLAMenu: string;
@@ -1423,6 +1424,27 @@ declare const messages: {
1423
1424
  lastPage: string;
1424
1425
  page: string;
1425
1426
  };
1427
+ imageSearch: {
1428
+ close: string;
1429
+ searchPlaceholder: string;
1430
+ searchButtonTitle: string;
1431
+ useImageTitle: string;
1432
+ checkboxLabel: string;
1433
+ imageMetadata: {
1434
+ creatorsLabel: string;
1435
+ license: string;
1436
+ caption: string;
1437
+ altText: string;
1438
+ modelRelease: string;
1439
+ tags: string;
1440
+ };
1441
+ };
1442
+ audioSearch: {
1443
+ searchPlaceholder: string;
1444
+ searchButtonTitle: string;
1445
+ useAudio: string;
1446
+ noResults: string;
1447
+ };
1426
1448
  };
1427
1449
  };
1428
1450
  export default messages;