@ndla/ui 56.0.19-alpha.0 → 56.0.21-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 (44) hide show
  1. package/dist/panda.buildinfo.json +6 -10
  2. package/dist/styles.css +8 -25
  3. package/es/Concept/Concept.js +3 -1
  4. package/es/Embed/ConceptEmbed.js +4 -1
  5. package/es/Embed/ImageEmbed.js +2 -38
  6. package/es/TagSelector/TagSelector.js +3 -3
  7. package/es/i18n/useComponentTranslations.js +12 -11
  8. package/es/locale/messages-en.js +14 -10
  9. package/es/locale/messages-nb.js +14 -10
  10. package/es/locale/messages-nn.js +14 -10
  11. package/es/locale/messages-se.js +14 -10
  12. package/es/locale/messages-sma.js +14 -10
  13. package/es/styles.css +8 -25
  14. package/lib/Concept/Concept.d.ts +1 -0
  15. package/lib/Concept/Concept.js +3 -1
  16. package/lib/Embed/ConceptEmbed.d.ts +2 -1
  17. package/lib/Embed/ConceptEmbed.js +4 -1
  18. package/lib/Embed/ImageEmbed.js +2 -38
  19. package/lib/TagSelector/TagSelector.js +3 -3
  20. package/lib/i18n/useComponentTranslations.d.ts +7 -7
  21. package/lib/i18n/useComponentTranslations.js +12 -11
  22. package/lib/locale/messages-en.d.ts +8 -4
  23. package/lib/locale/messages-en.js +14 -10
  24. package/lib/locale/messages-nb.d.ts +8 -4
  25. package/lib/locale/messages-nb.js +14 -10
  26. package/lib/locale/messages-nn.d.ts +8 -4
  27. package/lib/locale/messages-nn.js +14 -10
  28. package/lib/locale/messages-se.d.ts +8 -4
  29. package/lib/locale/messages-se.js +14 -10
  30. package/lib/locale/messages-sma.d.ts +8 -4
  31. package/lib/locale/messages-sma.js +14 -10
  32. package/lib/styles.css +8 -25
  33. package/package.json +7 -7
  34. package/src/Concept/Concept.tsx +3 -2
  35. package/src/Embed/ConceptEmbed.tsx +4 -1
  36. package/src/Embed/ImageEmbed.stories.tsx +17 -1
  37. package/src/Embed/ImageEmbed.tsx +2 -44
  38. package/src/TagSelector/TagSelector.tsx +4 -8
  39. package/src/i18n/useComponentTranslations.ts +19 -18
  40. package/src/locale/messages-en.ts +11 -7
  41. package/src/locale/messages-nb.ts +11 -7
  42. package/src/locale/messages-nn.ts +11 -7
  43. package/src/locale/messages-se.ts +11 -7
  44. package/src/locale/messages-sma.ts +11 -7
package/es/styles.css CHANGED
@@ -458,11 +458,6 @@
458
458
  border-bottom: 0;
459
459
  }
460
460
 
461
- .bg_background\.default\/20 {
462
- --mix-background: color-mix(in srgb, var(--colors-background-default) 20%, transparent);
463
- background: var(--mix-background, var(--colors-background-default));
464
- }
465
-
466
461
  .p_0 {
467
462
  padding: 0;
468
463
  }
@@ -742,12 +737,16 @@
742
737
  border-bottom-right-radius: 0;
743
738
  }
744
739
 
745
- .bottom_0 {
746
- bottom: 0;
740
+ .top_xsmall {
741
+ top: var(--spacing-xsmall);
747
742
  }
748
743
 
749
- .right_0 {
750
- right: 0;
744
+ .right_xsmall {
745
+ right: var(--spacing-xsmall);
746
+ }
747
+
748
+ .bd-c_background\.default {
749
+ border-color: var(--colors-background-default);
751
750
  }
752
751
 
753
752
  .trs-prop_transform\,_background-color\,_color {
@@ -765,18 +764,6 @@
765
764
  transition-timing-function: ease-out;
766
765
  }
767
766
 
768
- .top_xsmall {
769
- top: var(--spacing-xsmall);
770
- }
771
-
772
- .right_xsmall {
773
- right: var(--spacing-xsmall);
774
- }
775
-
776
- .bd-c_background\.default {
777
- border-color: var(--colors-background-default);
778
- }
779
-
780
767
  .bg-c_surface\.action {
781
768
  background-color: var(--colors-surface-action);
782
769
  }
@@ -1092,10 +1079,6 @@
1092
1079
  margin-inline-start: var(--spacing-1);
1093
1080
  }
1094
1081
 
1095
- .\[\&_svg\]\:fill_primary svg {
1096
- fill: var(--colors-primary);
1097
- }
1098
-
1099
1082
  .\[\&_a\]\:c_text\.strong a {
1100
1083
  color: var(--colors-text-strong);
1101
1084
  }
@@ -15,5 +15,6 @@ export interface ConceptProps extends ComponentPropsWithRef<"figure"> {
15
15
  title?: string;
16
16
  children?: ReactNode;
17
17
  source?: string;
18
+ previewAlt?: boolean;
18
19
  }
19
20
  export declare const Concept: import("react").ForwardRefExoticComponent<Omit<ConceptProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
@@ -46,6 +46,7 @@ const Concept = exports.Concept = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref
46
46
  children,
47
47
  title,
48
48
  source,
49
+ previewAlt,
49
50
  ...rest
50
51
  } = _ref;
51
52
  const licenseProps = (0, _licenseAttributes.licenseAttributes)(copyright?.license?.license, lang, source);
@@ -62,7 +63,8 @@ const Concept = exports.Concept = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref
62
63
  }), children]
63
64
  }), visualElement?.resource === "image" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Embed.ImageEmbed, {
64
65
  embed: visualElement,
65
- lang: lang
66
+ lang: lang,
67
+ previewAlt: previewAlt
66
68
  }) : visualElement?.resource === "brightcove" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Embed.BrightcoveEmbed, {
67
69
  embed: visualElement
68
70
  }) : visualElement?.resource === "h5p" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Embed.H5pEmbed, {
@@ -12,11 +12,12 @@ import { ConceptProps } from "../Concept/Concept";
12
12
  interface BaseProps {
13
13
  renderContext?: RenderContext;
14
14
  lang?: string;
15
+ previewAlt?: boolean;
15
16
  }
16
17
  interface Props extends BaseProps {
17
18
  embed: ConceptMetaData;
18
19
  }
19
- export declare const ConceptEmbed: ({ embed, renderContext, lang }: Props) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const ConceptEmbed: ({ embed, renderContext, lang, previewAlt }: Props) => import("react/jsx-runtime").JSX.Element;
20
21
  export interface InlineConceptProps extends ConceptProps, BaseProps {
21
22
  linkText?: string;
22
23
  source?: string;
@@ -34,7 +34,8 @@ const ConceptEmbed = _ref => {
34
34
  let {
35
35
  embed,
36
36
  renderContext,
37
- lang
37
+ lang,
38
+ previewAlt
38
39
  } = _ref;
39
40
  const parsedContent = (0, _react.useMemo)(() => {
40
41
  if (embed.status === "error" || !embed.data.concept.content) return undefined;
@@ -63,6 +64,7 @@ const ConceptEmbed = _ref => {
63
64
  }
64
65
  if (embed.embedData.type === "inline") {
65
66
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(InlineConcept, {
67
+ previewAlt: previewAlt,
66
68
  linkText: embed.embedData.linkText,
67
69
  copyright: concept.copyright,
68
70
  visualElement: visualElement,
@@ -73,6 +75,7 @@ const ConceptEmbed = _ref => {
73
75
  });
74
76
  }
75
77
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(BlockConcept, {
78
+ previewAlt: previewAlt,
76
79
  copyright: concept.copyright,
77
80
  visualElement: visualElement,
78
81
  lang: lang,
@@ -8,7 +8,6 @@ var _htmlReactParser = _interopRequireDefault(require("html-react-parser"));
8
8
  var _react = require("react");
9
9
  var _reactI18next = require("react-i18next");
10
10
  var _action = require("@ndla/icons/action");
11
- var _common = require("@ndla/icons/common");
12
11
  var _primitives = require("@ndla/primitives");
13
12
  var _jsx2 = require("@ndla/styled-system/jsx");
14
13
  var _EmbedErrorPlaceholder = _interopRequireDefault(require("./EmbedErrorPlaceholder"));
@@ -137,32 +136,6 @@ const StyledFigure = (0, _jsx2.styled)(_primitives.Figure, {
137
136
  }
138
137
  }
139
138
  });
140
- const BylineButton = (0, _jsx2.styled)("button", {
141
- base: {
142
- cursor: "pointer",
143
- position: "absolute",
144
- zIndex: "base",
145
- bottom: "0",
146
- right: "0",
147
- paddingBlock: "xsmall",
148
- paddingInline: "xsmall",
149
- transitionProperty: "transform, background-color, color",
150
- transitionDuration: "normal",
151
- transitionTimingFunction: "ease-out",
152
- background: "background.default/20",
153
- border: "0",
154
- "& svg": {
155
- transitionProperty: "transform",
156
- transitionDuration: "normal",
157
- transitionTimingFunction: "ease-out",
158
- fill: "primary"
159
- }
160
- }
161
- }, {
162
- defaultProps: {
163
- type: "button"
164
- }
165
- });
166
139
  const ExpandButton = (0, _jsx2.styled)("button", {
167
140
  base: {
168
141
  display: "flex",
@@ -202,7 +175,6 @@ const ImageEmbed = _ref => {
202
175
  renderContext = "article",
203
176
  children
204
177
  } = _ref;
205
- const [isBylineHidden, setIsBylineHidden] = (0, _react.useState)(hideByline(embed.embedData));
206
178
  const [imageSizes, setImageSizes] = (0, _react.useState)(undefined);
207
179
  const figureProps = getFigureProps(embed.embedData.size, embed.embedData.align);
208
180
  const {
@@ -259,21 +231,13 @@ const ImageEmbed = _ref => {
259
231
  onClick: toggleImageSize,
260
232
  "data-expanded": !!imageSizes,
261
233
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.AddLine, {})
262
- }), (embedData.size?.endsWith("-hide-byline") || embedData.hideByline === "true") && /*#__PURE__*/(0, _jsxRuntime.jsx)(BylineButton, {
263
- "data-byline-button": "",
264
- "aria-label": t(`license.images.itemImage.${isBylineHidden ? "expandByline" : "minimizeByline"}`),
265
- onClick: () => setIsBylineHidden(p => !p),
266
- children: isBylineHidden ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ArrowDownShortLine, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ArrowUpShortLine, {})
267
234
  })]
268
- }), isBylineHidden ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_LicenseByline.EmbedByline, {
235
+ }), embedData.hideByline === "true" ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_LicenseByline.EmbedByline, {
269
236
  type: "image",
270
237
  copyright: data.copyright,
271
- description: parsedDescription,
238
+ description: embedData.hideCaption === "true" ? "" : parsedDescription,
272
239
  visibleAlt: previewAlt ? embed.embedData.alt : ""
273
240
  })]
274
241
  });
275
242
  };
276
- const hideByline = embed => {
277
- return !!embed.size && embed.size.endsWith("-hide-byline") || embed.hideByline === "true";
278
- };
279
243
  var _default = exports.default = ImageEmbed;
@@ -81,10 +81,10 @@ const TagSelectorControl = exports.TagSelectorControl = /*#__PURE__*/(0, _react.
81
81
  ...props
82
82
  } = _ref2;
83
83
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.ComboboxControl, {
84
+ ref: ref,
84
85
  asChild: true,
85
86
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.TagsInputControl, {
86
87
  ...props,
87
- ref: ref,
88
88
  children: children
89
89
  })
90
90
  });
@@ -98,6 +98,7 @@ const TagSelectorInputBase = exports.TagSelectorInputBase = /*#__PURE__*/(0, _re
98
98
  } = _ref3;
99
99
  const tagsApi = (0, _react2.useTagsInputContext)();
100
100
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.ComboboxInput, {
101
+ ref: ref,
101
102
  asChild: true,
102
103
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.TagsInputInput, {
103
104
  ...props,
@@ -106,7 +107,6 @@ const TagSelectorInputBase = exports.TagSelectorInputBase = /*#__PURE__*/(0, _re
106
107
  tagsApi.addValue(tagsApi.inputValue);
107
108
  }
108
109
  },
109
- ref: ref,
110
110
  children: children
111
111
  })
112
112
  });
@@ -129,6 +129,7 @@ const TagSelectorInput = exports.TagSelectorInput = /*#__PURE__*/(0, _react.forw
129
129
  })]
130
130
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.TagsInputItemInput, {})]
131
131
  }, value)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.ComboboxInput, {
132
+ ref: ref,
132
133
  asChild: true,
133
134
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.TagsInputInput, {
134
135
  ...props,
@@ -137,7 +138,6 @@ const TagSelectorInput = exports.TagSelectorInput = /*#__PURE__*/(0, _react.forw
137
138
  tagsApi.addValue(tagsApi.inputValue);
138
139
  }
139
140
  },
140
- ref: ref,
141
141
  children: children
142
142
  })
143
143
  })]
@@ -22,23 +22,23 @@ interface AudioSearchTranslations {
22
22
  noResults: string;
23
23
  paginationTranslations: PaginationRootProps["translations"];
24
24
  }
25
- interface MetadataTranslations {
25
+ export interface PreviewTranslations {
26
26
  creatorsLabel: string;
27
27
  license: string;
28
28
  caption: string;
29
29
  altText: string;
30
30
  modelRelease: string;
31
31
  tags: string;
32
+ close: string;
33
+ checkboxLabel?: string;
34
+ missingTitleFallback?: string;
35
+ useImageTitle: string;
32
36
  }
33
- interface ImageSearchTranslations {
37
+ export interface ImageSearchTranslations {
34
38
  searchPlaceholder: string;
35
39
  searchButtonTitle: string;
36
- useImageTitle: string;
37
- close: string;
38
- imageMetadata: MetadataTranslations;
40
+ imagePreview: PreviewTranslations;
39
41
  paginationTranslations: PaginationRootProps["translations"];
40
- missingTitleFallback?: string;
41
- checkboxLabel?: string;
42
42
  }
43
43
  export declare const useImageSearchTranslations: (translations?: DeepPartial<ImageSearchTranslations>) => ImageSearchTranslations;
44
44
  export declare const useAudioSearchTranslations: (translations?: DeepPartial<AudioSearchTranslations>) => AudioSearchTranslations;
@@ -102,23 +102,24 @@ const useImageSearchTranslations = function () {
102
102
  });
103
103
  const paginationTranslations = usePaginationTranslations();
104
104
  const {
105
- imageMetadata,
105
+ imagePreview,
106
106
  paginationTranslations: fallbackPaginationTranslations,
107
107
  ...remaining
108
108
  } = translations;
109
109
  return {
110
- close: t("close"),
111
110
  searchPlaceholder: t("searchPlaceholder"),
112
111
  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
112
+ imagePreview: {
113
+ creatorsLabel: t("imagePreview.creatorsLabel"),
114
+ license: t("imagePreview.license"),
115
+ caption: t("imagePreview.caption"),
116
+ altText: t("imagePreview.altText"),
117
+ modelRelease: t("imagePreview.modelRelease"),
118
+ tags: t("imagePreview.tags"),
119
+ close: t("close"),
120
+ checkboxLabel: t("imagePreview.checkboxLabel"),
121
+ useImageTitle: t("imagePreview.useImageTitle"),
122
+ ...imagePreview
122
123
  },
123
124
  paginationTranslations: {
124
125
  ...paginationTranslations,
@@ -986,6 +986,8 @@ declare const messages: {
986
986
  posts: string;
987
987
  posts_plural: string;
988
988
  subcategory: string;
989
+ votes: string;
990
+ votes_plural: string;
989
991
  };
990
992
  cancel: {
991
993
  title: {
@@ -1048,6 +1050,8 @@ declare const messages: {
1048
1050
  unlock: string;
1049
1051
  lockDescription: string;
1050
1052
  unlockDescription: string;
1053
+ votes: string;
1054
+ votes_plural: string;
1051
1055
  };
1052
1056
  posts: {
1053
1057
  title: string;
@@ -1425,18 +1429,18 @@ declare const messages: {
1425
1429
  page: string;
1426
1430
  };
1427
1431
  imageSearch: {
1428
- close: string;
1429
1432
  searchPlaceholder: string;
1430
1433
  searchButtonTitle: string;
1431
- useImageTitle: string;
1432
- checkboxLabel: string;
1433
- imageMetadata: {
1434
+ imagePreview: {
1434
1435
  creatorsLabel: string;
1435
1436
  license: string;
1436
1437
  caption: string;
1437
1438
  altText: string;
1438
1439
  modelRelease: string;
1439
1440
  tags: string;
1441
+ checkboxLabel: string;
1442
+ close: string;
1443
+ useImageTitle: string;
1440
1444
  };
1441
1445
  };
1442
1446
  audioSearch: {
@@ -1002,7 +1002,9 @@ const messages = {
1002
1002
  title: "Categories",
1003
1003
  posts: "post",
1004
1004
  posts_plural: "posts",
1005
- subcategory: "Subcategories"
1005
+ subcategory: "Subcategories",
1006
+ votes: "reaction",
1007
+ votes_plural: "reactions"
1006
1008
  },
1007
1009
  cancel: {
1008
1010
  title: {
@@ -1064,7 +1066,9 @@ const messages = {
1064
1066
  locked: "Lock topic",
1065
1067
  unlock: "Unlock topic",
1066
1068
  lockDescription: "Do you want do lock this topic? This will prevent this topic from getting more posts.",
1067
- unlockDescription: "Do you want do unlock this topic? This will prevent this topic from getting more posts."
1069
+ unlockDescription: "Do you want do unlock this topic? This will prevent this topic from getting more posts.",
1070
+ votes: "reaction",
1071
+ votes_plural: "reactions"
1068
1072
  },
1069
1073
  posts: {
1070
1074
  title: "Posts",
@@ -1093,12 +1097,12 @@ const messages = {
1093
1097
  maxLength: "The maximum length for the text field is reached",
1094
1098
  error: "The field is required"
1095
1099
  },
1096
- bottomText: "Are you missing a category? Let our moderator know at ",
1100
+ bottomText: "Are you missing a category? You can request new categories. Use 'Ask NDLA' or send an email to ",
1097
1101
  moderatorEmail: "moderator@ndla.no",
1098
1102
  notification: {
1099
1103
  title: "Notifications",
1100
1104
  showAll: "View all notifications",
1101
- description: "Welcome to the arena for teachers in upper secondary education. This is <em>your</em> arena: a professional meeting place for discussion, inspiration, sharing, development, and collaboration.",
1105
+ description: "Welcome to NDLAs Arena. Here, you can discuss, share and cooperate with other teachers from all over Norway.",
1102
1106
  myNotification: "My notifications",
1103
1107
  markAll: "Mark all as read",
1104
1108
  subscribe: "You will now be notified of new replies to this topic",
@@ -1111,7 +1115,7 @@ const messages = {
1111
1115
  },
1112
1116
  topicsBy: "Topics by",
1113
1117
  admin: {
1114
- title: "Arena administrator",
1118
+ title: "Arena admin",
1115
1119
  description: "Tools to moderate and administer the arena.",
1116
1120
  administrate: "Administrate",
1117
1121
  category: {
@@ -1476,18 +1480,18 @@ const messages = {
1476
1480
  page: "Page {{page}}"
1477
1481
  },
1478
1482
  imageSearch: {
1479
- close: "Close",
1480
1483
  searchPlaceholder: "Search images",
1481
1484
  searchButtonTitle: "Search",
1482
- useImageTitle: "Use image",
1483
- checkboxLabel: "Set as meta image",
1484
- imageMetadata: {
1485
+ imagePreview: {
1485
1486
  creatorsLabel: "Image",
1486
1487
  license: "License",
1487
1488
  caption: "Caption",
1488
1489
  altText: "Alt-text",
1489
1490
  modelRelease: "Model released",
1490
- tags: "Tags"
1491
+ tags: "Tags",
1492
+ checkboxLabel: "Set as meta image",
1493
+ close: "Close",
1494
+ useImageTitle: "Use image"
1491
1495
  }
1492
1496
  },
1493
1497
  audioSearch: {
@@ -986,6 +986,8 @@ declare const messages: {
986
986
  posts: string;
987
987
  posts_plural: string;
988
988
  subcategory: string;
989
+ votes: string;
990
+ votes_plural: string;
989
991
  };
990
992
  publish: string;
991
993
  cancel: {
@@ -1048,6 +1050,8 @@ declare const messages: {
1048
1050
  unlock: string;
1049
1051
  lockDescription: string;
1050
1052
  unlockDescription: string;
1053
+ votes: string;
1054
+ votes_plural: string;
1051
1055
  };
1052
1056
  posts: {
1053
1057
  title: string;
@@ -1425,18 +1429,18 @@ declare const messages: {
1425
1429
  page: string;
1426
1430
  };
1427
1431
  imageSearch: {
1428
- close: string;
1429
1432
  searchPlaceholder: string;
1430
1433
  searchButtonTitle: string;
1431
- useImageTitle: string;
1432
- checkboxLabel: string;
1433
- imageMetadata: {
1434
+ imagePreview: {
1434
1435
  creatorsLabel: string;
1435
1436
  license: string;
1436
1437
  caption: string;
1437
1438
  altText: string;
1438
1439
  modelRelease: string;
1439
1440
  tags: string;
1441
+ checkboxLabel: string;
1442
+ close: string;
1443
+ useImageTitle: string;
1440
1444
  };
1441
1445
  };
1442
1446
  audioSearch: {
@@ -1002,7 +1002,9 @@ const messages = {
1002
1002
  title: "Kategorier",
1003
1003
  posts: "innlegg",
1004
1004
  posts_plural: "innlegg",
1005
- subcategory: "Tema"
1005
+ subcategory: "Tema",
1006
+ votes: "reaksjon",
1007
+ votes_plural: "reaksjoner"
1006
1008
  },
1007
1009
  publish: "Publiser",
1008
1010
  cancel: {
@@ -1064,7 +1066,9 @@ const messages = {
1064
1066
  locked: "Lås innlegg",
1065
1067
  unlock: "Lås opp innlegg",
1066
1068
  lockDescription: "Vil du låse dette innlegget? Dette vil gjøre at innlegget ikke kan få flere kommentarer, og vil vises som låst.",
1067
- unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjøre at innlegget kan få flere kommentarer."
1069
+ unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjøre at innlegget kan få flere kommentarer.",
1070
+ votes: "reaksjon",
1071
+ votes_plural: "reaksjoner"
1068
1072
  },
1069
1073
  posts: {
1070
1074
  title: "Innlegg",
@@ -1093,12 +1097,12 @@ const messages = {
1093
1097
  maxLength: "Maksimal lengde for tekstfeltet er nådd",
1094
1098
  error: "Feltet er påkrevd"
1095
1099
  },
1096
- bottomText: "Savner du en kategori? Gi vår moderator beskjed ",
1100
+ bottomText: "Savner du en kategori? Du kan be om nye kategorier. Bruk 'Spør NDLA' eller send en epost til ",
1097
1101
  moderatorEmail: "moderator@ndla.no",
1098
1102
  notification: {
1099
1103
  title: "Varslinger",
1100
1104
  showAll: "Se alle varslinger",
1101
- description: "Velkommen inn i arenaen for lærere i videregående opplæring! Dette er <em>din</em> arena: et faglig møtested for diskusjon, inspirasjon, deling og utviklende samarbeid.",
1105
+ description: "Velkommen til NDLAs Arena. Her kan du diskutere, dele og samarbeide med andre lærere fra hele Norge.",
1102
1106
  myNotification: "Mine varsler",
1103
1107
  markAll: "Merk alle som lest",
1104
1108
  subscribe: "Du får nå varsling om nye svar på dette innlegget",
@@ -1111,7 +1115,7 @@ const messages = {
1111
1115
  },
1112
1116
  topicsBy: "Innlegg av",
1113
1117
  admin: {
1114
- title: "Arena administrator",
1118
+ title: "Arena admin",
1115
1119
  description: "Verktøy for å moderere og administrere arenaen.",
1116
1120
  administrate: "Administrer",
1117
1121
  category: {
@@ -1476,18 +1480,18 @@ const messages = {
1476
1480
  page: "Side {{page}}"
1477
1481
  },
1478
1482
  imageSearch: {
1479
- close: "Lukk",
1480
1483
  searchPlaceholder: "Søk i bilder",
1481
1484
  searchButtonTitle: "Søk",
1482
- useImageTitle: "Bruk bildet",
1483
- checkboxLabel: "Sett som metabilde",
1484
- imageMetadata: {
1485
+ imagePreview: {
1485
1486
  creatorsLabel: "Bilde",
1486
1487
  license: "Lisens",
1487
1488
  caption: "Bildetekst",
1488
1489
  altText: "Alt-tekst",
1489
1490
  modelRelease: "Modellklarert",
1490
- tags: "Emneknagger"
1491
+ tags: "Emneknagger",
1492
+ checkboxLabel: "Sett som metabilde",
1493
+ close: "Lukk",
1494
+ useImageTitle: "Bruk bildet"
1491
1495
  }
1492
1496
  },
1493
1497
  audioSearch: {
@@ -986,6 +986,8 @@ declare const messages: {
986
986
  posts: string;
987
987
  posts_plural: string;
988
988
  subcategory: string;
989
+ votes: string;
990
+ votes_plural: string;
989
991
  };
990
992
  publish: string;
991
993
  cancel: {
@@ -1040,6 +1042,8 @@ declare const messages: {
1040
1042
  unlock: string;
1041
1043
  lockDescription: string;
1042
1044
  unlockDescription: string;
1045
+ votes: string;
1046
+ votes_plural: string;
1043
1047
  };
1044
1048
  deleted: {
1045
1049
  post: string;
@@ -1425,18 +1429,18 @@ declare const messages: {
1425
1429
  page: string;
1426
1430
  };
1427
1431
  imageSearch: {
1428
- close: string;
1429
1432
  searchPlaceholder: string;
1430
1433
  searchButtonTitle: string;
1431
- useImageTitle: string;
1432
- checkboxLabel: string;
1433
- imageMetadata: {
1434
+ imagePreview: {
1434
1435
  creatorsLabel: string;
1435
1436
  license: string;
1436
1437
  caption: string;
1437
1438
  altText: string;
1438
1439
  modelRelease: string;
1439
1440
  tags: string;
1441
+ checkboxLabel: string;
1442
+ close: string;
1443
+ useImageTitle: string;
1440
1444
  };
1441
1445
  };
1442
1446
  audioSearch: {
@@ -1002,7 +1002,9 @@ const messages = {
1002
1002
  title: "Kategoriar",
1003
1003
  posts: "innlegg",
1004
1004
  posts_plural: "innlegg",
1005
- subcategory: "Tema"
1005
+ subcategory: "Tema",
1006
+ votes: "reaksjon",
1007
+ votes_plural: "reaksjonar"
1006
1008
  },
1007
1009
  publish: "Publiser",
1008
1010
  cancel: {
@@ -1056,7 +1058,9 @@ const messages = {
1056
1058
  locked: "Lås innlegg",
1057
1059
  unlock: "Lås opp innlegg",
1058
1060
  lockDescription: "Vil du låse dette innlegget? Dette vil gjera at innlegget ikkje kan få fleire kommentarar, og vil visast som låst.",
1059
- unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjera at innlegget kan få fleire kommentarar."
1061
+ unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjera at innlegget kan få fleire kommentarar.",
1062
+ votes: "reaksjon",
1063
+ votes_plural: "reaksjonar"
1060
1064
  },
1061
1065
  deleted: {
1062
1066
  post: "Kommentaren din har blitt sletta.",
@@ -1093,12 +1097,12 @@ const messages = {
1093
1097
  maxLength: "Maksimal lengd for tekstfeltet er nådd",
1094
1098
  error: "Feltet er påkravd"
1095
1099
  },
1096
- bottomText: "Saknar du ein kategori? Gi moderatoren vår beskjed ",
1100
+ bottomText: "Saknar du ein kategori? Du kan be om nye kategoriar. Bruk 'Spør NDLA' eller send ein epost til ",
1097
1101
  moderatorEmail: "moderator@ndla.no",
1098
1102
  notification: {
1099
1103
  title: "Varslingar",
1100
1104
  showAll: "Sjå alle varslingar",
1101
- description: "Velkommen inn i arenaen for lærarar i vidaregåande opplæring! Dette er <em>din</em> arena: ein fagleg møtestad for diskusjon, inspirasjon, deling og utviklande samarbeid.",
1105
+ description: "Velkommen til NDLA sin Arena. Her kan du diskutere, dele og samarbeide med andre lærarar frå heile Noreg.",
1102
1106
  myNotification: "Mine varsler",
1103
1107
  markAll: "Merk alle som lest",
1104
1108
  subscribe: "Du får no varsling om nye svar på dette innlegget",
@@ -1111,7 +1115,7 @@ const messages = {
1111
1115
  },
1112
1116
  topicsBy: "Innlegg av",
1113
1117
  admin: {
1114
- title: "Arena administrator",
1118
+ title: "Arena admin",
1115
1119
  description: "Verktøy for å moderere og administrere arenaen.",
1116
1120
  administrate: "Administrer",
1117
1121
  category: {
@@ -1476,18 +1480,18 @@ const messages = {
1476
1480
  page: "Side {{page}}"
1477
1481
  },
1478
1482
  imageSearch: {
1479
- close: "Lukk",
1480
1483
  searchPlaceholder: "Søk i bilete",
1481
1484
  searchButtonTitle: "Søk",
1482
- useImageTitle: "Bruk biletet",
1483
- checkboxLabel: "Sett som metabilete",
1484
- imageMetadata: {
1485
+ imagePreview: {
1485
1486
  creatorsLabel: "Bilete",
1486
1487
  license: "Lisens",
1487
1488
  caption: "Bildetekst",
1488
1489
  altText: "Alt-tekst",
1489
1490
  modelRelease: "Modellklarert",
1490
- tags: "Emneknaggar"
1491
+ tags: "Emneknaggar",
1492
+ checkboxLabel: "Sett som metabilete",
1493
+ close: "Lukk",
1494
+ useImageTitle: "Bruk biletet"
1491
1495
  }
1492
1496
  },
1493
1497
  audioSearch: {