@atlaskit/mention 19.9.5 → 21.0.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 (246) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/cjs/api/MentionResource.js +4 -6
  3. package/dist/cjs/api/TeamMentionResource.js +2 -2
  4. package/dist/cjs/api/analytics.js +2 -15
  5. package/dist/cjs/components/LockCircleIcon/index.js +28 -0
  6. package/dist/cjs/components/Mention/PrimitiveMention.js +118 -0
  7. package/dist/cjs/components/Mention/index.js +19 -16
  8. package/dist/cjs/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +5 -5
  9. package/dist/cjs/components/MentionDescriptionByline/styles.js +4 -2
  10. package/dist/cjs/components/MentionItem/index.js +14 -8
  11. package/dist/cjs/components/MentionItem/styles.js +12 -10
  12. package/dist/cjs/components/MentionList/index.js +4 -2
  13. package/dist/cjs/components/MentionList/styles.js +5 -3
  14. package/dist/cjs/components/MentionListError/styles.js +7 -5
  15. package/dist/cjs/components/MentionPicker/index.js +12 -4
  16. package/dist/cjs/components/MentionPicker/styles.js +5 -3
  17. package/dist/cjs/components/MessagesIntlProvider/index.js +57 -0
  18. package/dist/cjs/components/NoAccessTooltip/index.js +29 -0
  19. package/dist/cjs/components/{NoAccessTooltip.js → NoAccessTooltip/main.js} +4 -2
  20. package/dist/cjs/components/ResourcedMentionList/index.js +14 -6
  21. package/dist/cjs/components/Scrollable/index.js +1 -1
  22. package/dist/cjs/components/Scrollable/styles.js +4 -2
  23. package/dist/cjs/components/TeamMentionHighlight/index.js +6 -4
  24. package/dist/cjs/components/TeamMentionHighlight/lazy.js +28 -0
  25. package/dist/cjs/components/TeamMentionHighlight/styles.js +11 -9
  26. package/dist/cjs/components/i18n.js +2 -2
  27. package/dist/cjs/i18n/cs.js +2 -2
  28. package/dist/cjs/i18n/da.js +2 -2
  29. package/dist/cjs/i18n/de.js +2 -2
  30. package/dist/cjs/i18n/en_ZZ.js +32 -0
  31. package/dist/cjs/i18n/es.js +2 -2
  32. package/dist/cjs/i18n/et.js +2 -2
  33. package/dist/cjs/i18n/fi.js +2 -2
  34. package/dist/cjs/i18n/fr.js +2 -2
  35. package/dist/cjs/i18n/hu.js +2 -2
  36. package/dist/cjs/i18n/it.js +2 -2
  37. package/dist/cjs/i18n/ja.js +2 -2
  38. package/dist/cjs/i18n/ko.js +2 -2
  39. package/dist/cjs/i18n/nb.js +2 -2
  40. package/dist/cjs/i18n/nl.js +2 -2
  41. package/dist/cjs/i18n/pl.js +2 -2
  42. package/dist/cjs/i18n/pt_BR.js +2 -2
  43. package/dist/cjs/i18n/pt_PT.js +2 -2
  44. package/dist/cjs/i18n/ru.js +2 -2
  45. package/dist/cjs/i18n/sk.js +2 -2
  46. package/dist/cjs/i18n/sv.js +2 -2
  47. package/dist/cjs/i18n/th.js +2 -2
  48. package/dist/cjs/i18n/tr.js +2 -2
  49. package/dist/cjs/i18n/uk.js +2 -2
  50. package/dist/cjs/i18n/vi.js +2 -2
  51. package/dist/cjs/i18n/zh.js +2 -2
  52. package/dist/cjs/i18n/zh_TW.js +2 -2
  53. package/dist/cjs/index.js +12 -8
  54. package/dist/cjs/shared-styles.js +4 -2
  55. package/dist/cjs/util/analytics.js +2 -2
  56. package/dist/cjs/util/i18n.js +297 -26
  57. package/dist/cjs/version.json +1 -1
  58. package/dist/es2019/api/analytics.js +0 -9
  59. package/dist/es2019/components/LockCircleIcon/index.js +7 -0
  60. package/dist/es2019/components/Mention/PrimitiveMention.js +117 -0
  61. package/dist/es2019/components/Mention/index.js +16 -13
  62. package/dist/es2019/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +1 -1
  63. package/dist/es2019/components/MentionDescriptionByline/styles.js +3 -4
  64. package/dist/es2019/components/MentionItem/index.js +11 -7
  65. package/dist/es2019/components/MentionItem/styles.js +6 -7
  66. package/dist/es2019/components/MentionList/index.js +3 -2
  67. package/dist/es2019/components/MentionList/styles.js +3 -4
  68. package/dist/es2019/components/MentionListError/GenericErrorIllustration.js +1 -0
  69. package/dist/es2019/components/MentionListError/styles.js +5 -6
  70. package/dist/es2019/components/MentionPicker/index.js +11 -4
  71. package/dist/es2019/components/MentionPicker/styles.js +4 -5
  72. package/dist/es2019/components/MessagesIntlProvider/index.js +38 -0
  73. package/dist/es2019/components/NoAccessTooltip/index.js +9 -0
  74. package/dist/es2019/components/{NoAccessTooltip.js → NoAccessTooltip/main.js} +4 -2
  75. package/dist/es2019/components/ResourcedMentionList/index.js +6 -4
  76. package/dist/es2019/components/Scrollable/index.js +1 -1
  77. package/dist/es2019/components/Scrollable/styles.js +3 -4
  78. package/dist/es2019/components/TeamMentionHighlight/index.js +4 -3
  79. package/dist/es2019/components/TeamMentionHighlight/lazy.js +6 -0
  80. package/dist/es2019/components/TeamMentionHighlight/styles.js +3 -2
  81. package/dist/es2019/components/i18n.js +1 -1
  82. package/dist/es2019/i18n/cs.js +2 -2
  83. package/dist/es2019/i18n/da.js +2 -2
  84. package/dist/es2019/i18n/de.js +2 -2
  85. package/dist/es2019/i18n/en_ZZ.js +24 -0
  86. package/dist/es2019/i18n/es.js +2 -2
  87. package/dist/es2019/i18n/et.js +2 -2
  88. package/dist/es2019/i18n/fi.js +2 -2
  89. package/dist/es2019/i18n/fr.js +2 -2
  90. package/dist/es2019/i18n/hu.js +2 -2
  91. package/dist/es2019/i18n/it.js +2 -2
  92. package/dist/es2019/i18n/ja.js +2 -2
  93. package/dist/es2019/i18n/ko.js +2 -2
  94. package/dist/es2019/i18n/nb.js +2 -2
  95. package/dist/es2019/i18n/nl.js +2 -2
  96. package/dist/es2019/i18n/pl.js +2 -2
  97. package/dist/es2019/i18n/pt_BR.js +2 -2
  98. package/dist/es2019/i18n/pt_PT.js +2 -2
  99. package/dist/es2019/i18n/ru.js +2 -2
  100. package/dist/es2019/i18n/sk.js +2 -2
  101. package/dist/es2019/i18n/sv.js +2 -2
  102. package/dist/es2019/i18n/th.js +2 -2
  103. package/dist/es2019/i18n/tr.js +2 -2
  104. package/dist/es2019/i18n/uk.js +2 -2
  105. package/dist/es2019/i18n/vi.js +2 -2
  106. package/dist/es2019/i18n/zh.js +2 -2
  107. package/dist/es2019/i18n/zh_TW.js +2 -2
  108. package/dist/es2019/index.js +3 -4
  109. package/dist/es2019/shared-styles.js +3 -2
  110. package/dist/es2019/util/i18n.js +260 -18
  111. package/dist/es2019/version.json +1 -1
  112. package/dist/esm/api/MentionResource.js +4 -4
  113. package/dist/esm/api/TeamMentionResource.js +2 -2
  114. package/dist/esm/api/analytics.js +0 -10
  115. package/dist/esm/components/LockCircleIcon/index.js +11 -0
  116. package/dist/esm/components/Mention/PrimitiveMention.js +100 -0
  117. package/dist/esm/components/Mention/index.js +17 -14
  118. package/dist/esm/components/MentionDescriptionByline/TeamMentionDescriptionByline.js +1 -1
  119. package/dist/esm/components/MentionDescriptionByline/styles.js +3 -4
  120. package/dist/esm/components/MentionItem/index.js +11 -7
  121. package/dist/esm/components/MentionItem/styles.js +6 -7
  122. package/dist/esm/components/MentionList/index.js +3 -2
  123. package/dist/esm/components/MentionList/styles.js +4 -5
  124. package/dist/esm/components/MentionListError/GenericErrorIllustration.js +1 -0
  125. package/dist/esm/components/MentionListError/styles.js +3 -4
  126. package/dist/esm/components/MentionPicker/index.js +11 -4
  127. package/dist/esm/components/MentionPicker/styles.js +3 -4
  128. package/dist/esm/components/MessagesIntlProvider/index.js +41 -0
  129. package/dist/esm/components/NoAccessTooltip/index.js +11 -0
  130. package/dist/esm/components/{NoAccessTooltip.js → NoAccessTooltip/main.js} +4 -2
  131. package/dist/esm/components/ResourcedMentionList/index.js +8 -6
  132. package/dist/esm/components/Scrollable/index.js +1 -1
  133. package/dist/esm/components/Scrollable/styles.js +3 -4
  134. package/dist/esm/components/TeamMentionHighlight/index.js +4 -3
  135. package/dist/esm/components/TeamMentionHighlight/lazy.js +10 -0
  136. package/dist/esm/components/TeamMentionHighlight/styles.js +3 -2
  137. package/dist/esm/components/i18n.js +1 -1
  138. package/dist/esm/i18n/cs.js +2 -2
  139. package/dist/esm/i18n/da.js +2 -2
  140. package/dist/esm/i18n/de.js +2 -2
  141. package/dist/esm/i18n/en_ZZ.js +24 -0
  142. package/dist/esm/i18n/es.js +2 -2
  143. package/dist/esm/i18n/et.js +2 -2
  144. package/dist/esm/i18n/fi.js +2 -2
  145. package/dist/esm/i18n/fr.js +2 -2
  146. package/dist/esm/i18n/hu.js +2 -2
  147. package/dist/esm/i18n/it.js +2 -2
  148. package/dist/esm/i18n/ja.js +2 -2
  149. package/dist/esm/i18n/ko.js +2 -2
  150. package/dist/esm/i18n/nb.js +2 -2
  151. package/dist/esm/i18n/nl.js +2 -2
  152. package/dist/esm/i18n/pl.js +2 -2
  153. package/dist/esm/i18n/pt_BR.js +2 -2
  154. package/dist/esm/i18n/pt_PT.js +2 -2
  155. package/dist/esm/i18n/ru.js +2 -2
  156. package/dist/esm/i18n/sk.js +2 -2
  157. package/dist/esm/i18n/sv.js +2 -2
  158. package/dist/esm/i18n/th.js +2 -2
  159. package/dist/esm/i18n/tr.js +2 -2
  160. package/dist/esm/i18n/uk.js +2 -2
  161. package/dist/esm/i18n/vi.js +2 -2
  162. package/dist/esm/i18n/zh.js +2 -2
  163. package/dist/esm/i18n/zh_TW.js +2 -2
  164. package/dist/esm/index.js +3 -4
  165. package/dist/esm/shared-styles.js +3 -2
  166. package/dist/esm/util/analytics.js +2 -2
  167. package/dist/esm/util/i18n.js +284 -23
  168. package/dist/esm/version.json +1 -1
  169. package/dist/types/api/analytics.d.ts +0 -5
  170. package/dist/types/components/LockCircleIcon/index.d.ts +3 -0
  171. package/dist/types/components/Mention/PrimitiveMention.d.ts +7 -0
  172. package/dist/types/components/Mention/index.d.ts +1 -1
  173. package/dist/types/components/MentionDescriptionByline/styles.d.ts +2 -2
  174. package/dist/types/components/MentionItem/MentionHighlightHelpers.d.ts +2 -3
  175. package/dist/types/components/MentionItem/styles.d.ts +9 -9
  176. package/dist/types/components/MentionList/styles.d.ts +2 -2
  177. package/dist/types/components/MentionListError/styles.d.ts +5 -5
  178. package/dist/types/components/MentionPicker/index.d.ts +11 -8
  179. package/dist/types/components/MentionPicker/styles.d.ts +3 -3
  180. package/dist/types/components/MessagesIntlProvider/index.d.ts +3 -0
  181. package/dist/types/components/NoAccessTooltip/index.d.ts +6 -0
  182. package/dist/types/components/{NoAccessTooltip.d.ts → NoAccessTooltip/main.d.ts} +0 -0
  183. package/dist/types/components/Scrollable/styles.d.ts +2 -4
  184. package/dist/types/components/TeamMentionHighlight/index.d.ts +1 -1
  185. package/dist/types/components/TeamMentionHighlight/lazy.d.ts +4 -0
  186. package/dist/types/components/TeamMentionHighlight/styles.d.ts +8 -8
  187. package/dist/types/i18n/cs.d.ts +1 -1
  188. package/dist/types/i18n/da.d.ts +1 -1
  189. package/dist/types/i18n/de.d.ts +1 -1
  190. package/dist/types/i18n/en_ZZ.d.ts +24 -0
  191. package/dist/types/i18n/es.d.ts +1 -1
  192. package/dist/types/i18n/et.d.ts +1 -1
  193. package/dist/types/i18n/fi.d.ts +1 -1
  194. package/dist/types/i18n/fr.d.ts +1 -1
  195. package/dist/types/i18n/hu.d.ts +1 -1
  196. package/dist/types/i18n/it.d.ts +1 -1
  197. package/dist/types/i18n/ja.d.ts +1 -1
  198. package/dist/types/i18n/ko.d.ts +1 -1
  199. package/dist/types/i18n/nb.d.ts +1 -1
  200. package/dist/types/i18n/nl.d.ts +1 -1
  201. package/dist/types/i18n/pl.d.ts +1 -1
  202. package/dist/types/i18n/pt_BR.d.ts +1 -1
  203. package/dist/types/i18n/pt_PT.d.ts +1 -1
  204. package/dist/types/i18n/ru.d.ts +1 -1
  205. package/dist/types/i18n/sk.d.ts +1 -1
  206. package/dist/types/i18n/sv.d.ts +1 -1
  207. package/dist/types/i18n/th.d.ts +1 -1
  208. package/dist/types/i18n/tr.d.ts +1 -1
  209. package/dist/types/i18n/uk.d.ts +1 -1
  210. package/dist/types/i18n/vi.d.ts +1 -1
  211. package/dist/types/i18n/zh.d.ts +1 -1
  212. package/dist/types/i18n/zh_TW.d.ts +1 -1
  213. package/dist/types/index.d.ts +3 -4
  214. package/dist/types/shared-styles.d.ts +2 -2
  215. package/dist/types/util/i18n.d.ts +32 -17
  216. package/docs/1-in-editor.tsx +4 -36
  217. package/package.json +25 -14
  218. package/tsconfig.json +1 -2
  219. package/dist/cjs/api/SmartMentionResource.js +0 -338
  220. package/dist/cjs/api/SmartMentionTypes.js +0 -15
  221. package/dist/cjs/api/extract-react-types/smart-config-props.js +0 -15
  222. package/dist/cjs/api/recommendationClient.js +0 -57
  223. package/dist/cjs/components/Mention/styles.js +0 -66
  224. package/dist/cjs/default-mention-name-resolver/default-mention-name-resolver.js +0 -136
  225. package/dist/cjs/default-mention-name-resolver/graphqlUtils.js +0 -48
  226. package/dist/es2019/api/SmartMentionResource.js +0 -219
  227. package/dist/es2019/api/SmartMentionTypes.js +0 -7
  228. package/dist/es2019/api/extract-react-types/smart-config-props.js +0 -8
  229. package/dist/es2019/api/recommendationClient.js +0 -46
  230. package/dist/es2019/components/Mention/styles.js +0 -61
  231. package/dist/es2019/default-mention-name-resolver/default-mention-name-resolver.js +0 -64
  232. package/dist/es2019/default-mention-name-resolver/graphqlUtils.js +0 -39
  233. package/dist/esm/api/SmartMentionResource.js +0 -317
  234. package/dist/esm/api/SmartMentionTypes.js +0 -7
  235. package/dist/esm/api/extract-react-types/smart-config-props.js +0 -8
  236. package/dist/esm/api/recommendationClient.js +0 -48
  237. package/dist/esm/components/Mention/styles.js +0 -50
  238. package/dist/esm/default-mention-name-resolver/default-mention-name-resolver.js +0 -121
  239. package/dist/esm/default-mention-name-resolver/graphqlUtils.js +0 -41
  240. package/dist/types/api/SmartMentionResource.d.ts +0 -63
  241. package/dist/types/api/SmartMentionTypes.d.ts +0 -81
  242. package/dist/types/api/extract-react-types/smart-config-props.d.ts +0 -7
  243. package/dist/types/api/recommendationClient.d.ts +0 -3
  244. package/dist/types/components/Mention/styles.d.ts +0 -6
  245. package/dist/types/default-mention-name-resolver/default-mention-name-resolver.d.ts +0 -16
  246. package/dist/types/default-mention-name-resolver/graphqlUtils.d.ts +0 -14
@@ -0,0 +1,117 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+
3
+ /** @jsx jsx */
4
+ import { jsx, css } from '@emotion/core';
5
+ import { themed, useGlobalTheme } from '@atlaskit/theme/components';
6
+ import { B400, B200, N500, DN800, DN100, DN80, N30A, DN30, N20 } from '@atlaskit/theme/colors';
7
+ import { token } from '@atlaskit/tokens';
8
+ import { MentionType } from '../../types';
9
+ import { forwardRef } from 'react';
10
+ const mentionStyle = {
11
+ [MentionType.SELF]: {
12
+ background: themed({
13
+ light: token('color.background.brand.bold', B400),
14
+ dark: token('color.background.brand.bold', B200)
15
+ }),
16
+ borderColor: 'transparent',
17
+ text: themed({
18
+ light: token('color.text.inverse', N20),
19
+ dark: token('color.text.inverse', DN30)
20
+ }),
21
+ hoveredBackground: themed({
22
+ light: token('color.background.brand.bold.hovered', B400),
23
+ dark: token('color.background.brand.bold.hovered', B200)
24
+ }),
25
+ pressedBackground: themed({
26
+ light: token('color.background.brand.bold.pressed', B400),
27
+ dark: token('color.background.brand.bold.pressed', B200)
28
+ })
29
+ },
30
+ [MentionType.RESTRICTED]: {
31
+ background: 'transparent',
32
+ borderColor: themed({
33
+ light: token('color.border', N500),
34
+ dark: token('color.border', DN80)
35
+ }),
36
+ text: themed({
37
+ light: token('color.text.disabled', N500),
38
+ dark: token('color.text.disabled', DN100)
39
+ }),
40
+ hoveredBackground: 'transparent',
41
+ pressedBackground: 'transparent'
42
+ },
43
+ [MentionType.DEFAULT]: {
44
+ background: themed({
45
+ light: token('color.background.neutral', N30A),
46
+ dark: token('color.background.neutral', DN80)
47
+ }),
48
+ borderColor: 'transparent',
49
+ text: themed({
50
+ light: token('color.text.subtle', N500),
51
+ dark: token('color.text.subtle', DN800)
52
+ }),
53
+ hoveredBackground: themed({
54
+ light: token('color.background.neutral.hovered', N30A),
55
+ dark: token('color.background.neutral.hovered', DN80)
56
+ }),
57
+ pressedBackground: themed({
58
+ light: token('color.background.neutral.pressed', N30A),
59
+ dark: token('color.background.neutral.pressed', DN80)
60
+ })
61
+ }
62
+ };
63
+
64
+ const getStyle = ({
65
+ mentionType,
66
+ theme
67
+ }, property) => {
68
+ const obj = mentionStyle[mentionType][property];
69
+ return typeof obj === 'string' ? obj : obj({
70
+ theme
71
+ });
72
+ };
73
+
74
+ const PrimitiveMention = /*#__PURE__*/forwardRef(({
75
+ mentionType,
76
+ ...other
77
+ }, ref) => {
78
+ const theme = useGlobalTheme();
79
+ return jsx("span", _extends({
80
+ ref: ref,
81
+ css: css`
82
+ display: inline;
83
+ border: 1px solid ${getStyle({
84
+ theme,
85
+ mentionType
86
+ }, 'borderColor')};
87
+ background: ${getStyle({
88
+ theme,
89
+ mentionType
90
+ }, 'background')};
91
+ color: ${getStyle({
92
+ theme,
93
+ mentionType
94
+ }, 'text')};
95
+ border-radius: 20px;
96
+ cursor: pointer;
97
+ padding: 0 0.3em 2px 0.23em;
98
+ line-height: 1.714;
99
+ font-size: 1em;
100
+ font-weight: normal;
101
+ word-break: break-word;
102
+ &:hover {
103
+ background: ${getStyle({
104
+ theme,
105
+ mentionType
106
+ }, 'hoveredBackground')};
107
+ }
108
+ &:active {
109
+ background: ${getStyle({
110
+ theme,
111
+ mentionType
112
+ }, 'pressedBackground')};
113
+ }
114
+ `
115
+ }, other));
116
+ });
117
+ export default PrimitiveMention;
@@ -1,13 +1,13 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
2
  import React from 'react';
4
- import { FormattedMessage } from 'react-intl';
5
- import { MentionStyle } from './styles';
6
- import { NoAccessTooltip } from '../NoAccessTooltip';
3
+ import FocusRing from '@atlaskit/focus-ring';
4
+ import MessagesIntlProvider from '../MessagesIntlProvider';
5
+ import PrimitiveMention from './PrimitiveMention';
6
+ import AsyncNoAccessTooltip from '../NoAccessTooltip';
7
7
  import { isRestricted, MentionType } from '../../types';
8
8
  import { fireAnalyticsMentionEvent } from '../../util/analytics';
9
- import { withAnalyticsEvents } from '@atlaskit/analytics-next';
10
- import { messages } from '../i18n';
9
+ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
10
+ import { UnknownUserError } from '../../util/i18n';
11
11
  export const ANALYTICS_HOVER_DELAY = 1000;
12
12
  export const UNKNOWN_USER_ID = '_|unknown|_';
13
13
  export class MentionInternal extends React.PureComponent {
@@ -88,11 +88,11 @@ export class MentionInternal extends React.PureComponent {
88
88
  }
89
89
 
90
90
  renderUnknownUserError(id) {
91
- return /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.unknownUserError, {
91
+ return /*#__PURE__*/React.createElement(UnknownUserError, {
92
92
  values: {
93
93
  userId: id.slice(-5)
94
94
  }
95
- }), message => `@${message}`);
95
+ }, message => /*#__PURE__*/React.createElement(React.Fragment, null, `@${message}`));
96
96
  }
97
97
 
98
98
  render() {
@@ -109,19 +109,22 @@ export class MentionInternal extends React.PureComponent {
109
109
  } = props;
110
110
  const mentionType = this.getMentionType();
111
111
  const failedMention = text === `@${UNKNOWN_USER_ID}`;
112
- const mentionComponent = /*#__PURE__*/React.createElement(MentionStyle, {
112
+ const mentionComponent = /*#__PURE__*/React.createElement(FocusRing, null, /*#__PURE__*/React.createElement(PrimitiveMention, {
113
113
  mentionType: mentionType,
114
114
  onClick: handleOnClick,
115
115
  onMouseEnter: handleOnMouseEnter,
116
- onMouseLeave: handleOnMouseLeave
117
- }, failedMention ? this.renderUnknownUserError(id) : text || '@...');
116
+ onMouseLeave: handleOnMouseLeave,
117
+ spellCheck: false
118
+ }, failedMention ? this.renderUnknownUserError(id) : text || '@...'));
118
119
  return /*#__PURE__*/React.createElement("span", {
119
120
  "data-mention-id": id,
120
121
  "data-access-level": accessLevel,
121
122
  spellCheck: false
122
- }, mentionType === MentionType.RESTRICTED ? /*#__PURE__*/React.createElement(NoAccessTooltip, {
123
+ }, /*#__PURE__*/React.createElement(MessagesIntlProvider, null, mentionType === MentionType.RESTRICTED ? /*#__PURE__*/React.createElement(React.Suspense, {
124
+ fallback: mentionComponent
125
+ }, /*#__PURE__*/React.createElement(AsyncNoAccessTooltip, {
123
126
  name: text
124
- }, mentionComponent) : mentionComponent);
127
+ }, mentionComponent)) : mentionComponent));
125
128
  }
126
129
 
127
130
  }
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import React from 'react';
4
- import { FormattedMessage } from 'react-intl';
4
+ import { FormattedMessage } from 'react-intl-next';
5
5
  import { DescriptionBylineStyle } from './styles';
6
6
  import { messages } from '../i18n';
7
7
  export default class TeamMentionDescriptionByline extends React.PureComponent {
@@ -1,9 +1,8 @@
1
- import styled from 'styled-components'; // @ts-ignore: unused variable
2
- // prettier-ignore
3
-
1
+ import styled from '@emotion/styled';
4
2
  import { N100 } from '@atlaskit/theme/colors';
3
+ import { token } from '@atlaskit/tokens';
5
4
  export const DescriptionBylineStyle = styled.span`
6
- color: ${N100};
5
+ color: ${token('color.text.subtlest', N100)};
7
6
  font-size: 12px;
8
7
 
9
8
  margin-top: 2px;
@@ -1,16 +1,18 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import Avatar from '@atlaskit/avatar';
3
- import LockCircleIcon from '@atlaskit/icon/glyph/lock-circle';
4
3
  import Lozenge from '@atlaskit/lozenge';
5
4
  import { N30 } from '@atlaskit/theme/colors';
6
5
  import React from 'react';
6
+ import { token } from '@atlaskit/tokens';
7
7
  import { isRestricted } from '../../types';
8
8
  import { NoAccessLabel } from '../../util/i18n';
9
9
  import { leftClick } from '../../util/mouse';
10
- import { NoAccessTooltip } from '../NoAccessTooltip';
10
+ import AsyncNoAccessTooltip from '../NoAccessTooltip';
11
+ import AsyncLockCircleIcon from '../LockCircleIcon';
11
12
  import { AccessSectionStyle, AvatarStyle, FullNameStyle, InfoSectionStyle, MentionItemStyle, NameSectionStyle, RowStyle, TimeStyle } from './styles';
12
13
  import { renderHighlight } from './MentionHighlightHelpers';
13
14
  import MentionDescriptionByline from '../MentionDescriptionByline';
15
+ import MessagesIntlProvider from '../MessagesIntlProvider';
14
16
  export { MENTION_ITEM_HEIGHT } from './styles';
15
17
 
16
18
  function renderLozenge(lozenge) {
@@ -84,8 +86,8 @@ export default class MentionItem extends React.PureComponent {
84
86
  } = presence || {};
85
87
  const restricted = isRestricted(accessLevel);
86
88
  const nameHighlights = highlight && highlight.name;
87
- const borderColor = selected ? N30 : undefined;
88
- return /*#__PURE__*/React.createElement(MentionItemStyle, {
89
+ const borderColor = selected ? token('color.border', N30) : undefined;
90
+ return /*#__PURE__*/React.createElement(MessagesIntlProvider, null, /*#__PURE__*/React.createElement(MentionItemStyle, {
89
91
  selected: selected,
90
92
  onMouseDown: this.onMentionSelected,
91
93
  onMouseMove: this.onMentionMenuItemMouseMove,
@@ -105,13 +107,15 @@ export default class MentionItem extends React.PureComponent {
105
107
  mention: mention
106
108
  })), /*#__PURE__*/React.createElement(InfoSectionStyle, {
107
109
  restricted: restricted
108
- }, renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/React.createElement(NoAccessTooltip, {
110
+ }, renderLozenge(lozenge), renderTime(time)), restricted ? /*#__PURE__*/React.createElement(React.Suspense, {
111
+ fallback: null
112
+ }, /*#__PURE__*/React.createElement(AsyncNoAccessTooltip, {
109
113
  name: name
110
- }, /*#__PURE__*/React.createElement(AccessSectionStyle, null, /*#__PURE__*/React.createElement(NoAccessLabel, null, text => /*#__PURE__*/React.createElement(LockCircleIcon, {
114
+ }, /*#__PURE__*/React.createElement(AccessSectionStyle, null, /*#__PURE__*/React.createElement(NoAccessLabel, null, text => /*#__PURE__*/React.createElement(AsyncLockCircleIcon, {
111
115
  label: text
112
116
  })
113
117
  /* safe to cast to string given there is no value binding */
114
- ))) : null));
118
+ )))) : null)));
115
119
  }
116
120
 
117
121
  }
@@ -1,7 +1,6 @@
1
- import styled from 'styled-components'; // @ts-ignore: unused variable
2
- // prettier-ignore
3
-
1
+ import styled from '@emotion/styled';
4
2
  import { N900, N100, N30, N500 } from '@atlaskit/theme/colors';
3
+ import { token } from '@atlaskit/tokens';
5
4
  export const RowStyle = styled.div`
6
5
  align-items: center;
7
6
  display: flex;
@@ -28,7 +27,7 @@ export const FullNameStyle = styled.span`
28
27
  overflow: hidden;
29
28
  text-overflow: ellipsis;
30
29
  white-space: nowrap;
31
- color: ${N900};
30
+ color: ${token('color.text', N900)};
32
31
  `;
33
32
  export const InfoSectionStyle = styled.div`
34
33
  display: flex;
@@ -46,12 +45,12 @@ export const InfoSectionStyle = styled.div`
46
45
  export const TimeStyle = styled.div`
47
46
  margin-left: 20px;
48
47
  flex: none;
49
- color: ${N100};
48
+ color: ${token('color.text.subtlest', N100)};
50
49
  font-size: 12px;
51
50
  `;
52
51
  export const MENTION_ITEM_HEIGHT = 48;
53
52
  export const MentionItemStyle = styled.div`
54
- background-color: ${props => props.selected ? N30 : 'transparent'};
53
+ background-color: ${props => props.selected ? token('color.background.brand', N30) : 'transparent'};
55
54
  display: block;
56
55
  overflow: hidden;
57
56
  list-style-type: none;
@@ -61,5 +60,5 @@ export const MentionItemStyle = styled.div`
61
60
  `;
62
61
  export const AccessSectionStyle = styled.div`
63
62
  padding-left: 5px;
64
- color: ${N500};
63
+ color: ${token('color.text.subtle', N500)};
65
64
  `;
@@ -4,6 +4,7 @@ import debug from '../../util/logger';
4
4
  import { actualMouseMove, mouseLocation } from '../../util/mouse';
5
5
  import MentionItem from '../MentionItem';
6
6
  import MentionListError from '../MentionListError';
7
+ import MessagesIntlProvider from '../MessagesIntlProvider';
7
8
  import Scrollable from '../Scrollable';
8
9
  import { MentionListStyle } from './styles';
9
10
 
@@ -257,9 +258,9 @@ export default class MentionList extends React.PureComponent {
257
258
  }, this.renderItems());
258
259
  }
259
260
 
260
- return /*#__PURE__*/React.createElement(MentionListStyle, {
261
+ return /*#__PURE__*/React.createElement(MessagesIntlProvider, null, /*#__PURE__*/React.createElement(MentionListStyle, {
261
262
  empty: !hasMentions && !resourceError
262
- }, errorSection, resultSection);
263
+ }, errorSection, resultSection));
263
264
  }
264
265
 
265
266
  }
@@ -1,13 +1,12 @@
1
- import styled from 'styled-components'; // @ts-ignore: unused variable
2
- // prettier-ignore
3
-
1
+ import styled from '@emotion/styled';
2
+ import { token } from '@atlaskit/tokens';
4
3
  import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
5
4
  export const MentionListStyle = styled.div`
6
5
  display: ${props => props.empty ? 'none' : 'block'};
7
6
 
8
7
  /* list style */
9
8
  width: ${mentionListWidth};
10
- color: #333;
9
+ color: ${token('color.text.subtle', '#333')};
11
10
 
12
11
  border: 1px solid ${noDialogContainerBorderColor};
13
12
  border-radius: ${noDialogContainerBorderRadius};
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
1
2
  import React from 'react';
2
3
  import { GenericErrorVisualStyle } from './styles';
3
4
  export class GenericErrorIllustration extends React.PureComponent {
@@ -1,6 +1,5 @@
1
- import styled from 'styled-components'; // @ts-ignore: unused variable
2
- // prettier-ignore
3
-
1
+ import styled from '@emotion/styled';
2
+ import { token } from '@atlaskit/tokens';
4
3
  import { borderRadius } from '@atlaskit/theme/constants';
5
4
  import { N500 } from '@atlaskit/theme/colors';
6
5
  import { h400 } from '@atlaskit/theme/typography';
@@ -9,9 +8,9 @@ export const MentionListErrorStyle = styled.div`
9
8
  display: flex;
10
9
  justify-content: center;
11
10
  flex-direction: column;
12
- background-color: white;
13
- color: ${N500};
14
- border: 1px solid #fff;
11
+ background-color: ${token('elevation.surface.overlay', 'white')};
12
+ color: ${token('color.text.subtle', N500)};
13
+ border: 1px solid ${token('elevation.surface.overlay', '#fff')};
15
14
  border-radius: ${borderRadius()}px;
16
15
  `;
17
16
  export const GenericErrorVisualStyle = styled.div`
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { withAnalyticsEvents } from '@atlaskit/analytics-next';
2
+ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
3
3
  import React from 'react';
4
+ import { IntlProvider, injectIntl } from 'react-intl-next';
4
5
  import { fireAnalyticsMentionTypeaheadEvent } from '../../util/analytics';
5
6
  import uniqueId from '../../util/id';
6
7
  import debug from '../../util/logger';
@@ -162,7 +163,8 @@ export class MentionPicker extends React.PureComponent {
162
163
  zIndex,
163
164
  offsetX,
164
165
  offsetY,
165
- showTeamMentionsHighlight
166
+ showTeamMentionsHighlight,
167
+ intl
166
168
  } = this.props;
167
169
  const {
168
170
  visible,
@@ -190,7 +192,9 @@ export class MentionPicker extends React.PureComponent {
190
192
  zIndex: zIndex,
191
193
  offsetX: offsetX,
192
194
  offsetY: offsetY
193
- }, /*#__PURE__*/React.createElement("div", null, resourceMentionList, infoContent));
195
+ }, /*#__PURE__*/React.createElement(IntlProvider, {
196
+ locale: (intl === null || intl === void 0 ? void 0 : intl.locale) || 'en'
197
+ }, /*#__PURE__*/React.createElement("div", null, resourceMentionList, infoContent)));
194
198
  } else {
195
199
  // don't show if we have a position, but no target yet
196
200
  content = null;
@@ -218,5 +222,8 @@ _defineProperty(MentionPicker, "defaultProps", {
218
222
  onClose: () => {}
219
223
  });
220
224
 
221
- export const MentionPickerWithAnalytics = withAnalyticsEvents({})(MentionPicker);
225
+ const MentionPickerWithIntl = injectIntl(MentionPicker, {
226
+ forwardRef: true
227
+ });
228
+ export const MentionPickerWithAnalytics = withAnalyticsEvents({})(MentionPickerWithIntl);
222
229
  export default MentionPickerWithAnalytics;
@@ -1,14 +1,13 @@
1
- import styled from 'styled-components'; // @ts-ignore: unused variable
2
- // prettier-ignore
3
-
1
+ import styled from '@emotion/styled';
2
+ import { token } from '@atlaskit/tokens';
4
3
  import { N100 } from '@atlaskit/theme/colors';
5
4
  import { mentionListWidth, noDialogContainerBorderColor, noDialogContainerBorderRadius, noDialogContainerBoxShadow } from '../../shared-styles';
6
5
  export const MentionPickerStyle = styled.div`
7
6
  display: ${props => props.visible ? 'block' : 'none'};
8
7
  `;
9
8
  export const MentionPickerInfoStyle = styled.div`
10
- background: #fff;
11
- color: ${N100};
9
+ background: ${token('elevation.surface', '#fff')};
10
+ color: ${token('color.text.subtlest', N100)};
12
11
  border: 1px solid ${noDialogContainerBorderColor};
13
12
  border-radius: ${noDialogContainerBorderRadius};
14
13
  box-shadow: ${noDialogContainerBoxShadow};
@@ -0,0 +1,38 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import { IntlProvider, useIntl } from 'react-intl-next';
4
+ import { getMessagesForLocale } from '../../util/i18n';
5
+ const EMPTY = {};
6
+
7
+ const useI18n = locale => {
8
+ const [messages, setMessages] = React.useState(EMPTY);
9
+ React.useEffect(() => {
10
+ let aborted = false;
11
+ setMessages(EMPTY);
12
+ getMessagesForLocale(locale).then(messages => {
13
+ if (!aborted) {
14
+ setMessages(messages);
15
+ }
16
+ }).catch(error => {
17
+ // eslint-disable-next-line no-console
18
+ console.error(error);
19
+ });
20
+ return () => {
21
+ aborted = true;
22
+ };
23
+ }, [locale]);
24
+ return messages;
25
+ };
26
+
27
+ const MessagesIntlProvider = props => {
28
+ const {
29
+ children
30
+ } = props;
31
+ const intl = useIntl();
32
+ const messages = useI18n(intl.locale);
33
+ return /*#__PURE__*/React.createElement(IntlProvider, _extends({}, intl, {
34
+ messages: messages
35
+ }), children);
36
+ };
37
+
38
+ export default MessagesIntlProvider;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ const AsyncNoAccessTooltip = /*#__PURE__*/React.lazy(() => import(
3
+ /* webpackChunkName: "@atlaskit-internal_@atlaskit/mention/no-access-tooltip" */
4
+ './main').then(module => {
5
+ return {
6
+ default: module.NoAccessTooltip
7
+ };
8
+ }));
9
+ export default AsyncNoAccessTooltip;
@@ -1,11 +1,13 @@
1
1
  import Tooltip from '@atlaskit/tooltip';
2
2
  import React from 'react';
3
- import { NoAccessWarning } from '../util/i18n';
3
+ import { NoAccessWarning } from '../../util/i18n';
4
4
  export const NoAccessTooltip = ({
5
5
  name,
6
6
  children
7
7
  }) => /*#__PURE__*/React.createElement(NoAccessWarning, {
8
- name: name
8
+ values: {
9
+ name: name
10
+ }
9
11
  }, text => /*#__PURE__*/React.createElement(Tooltip, {
10
12
  content: text,
11
13
  position: "right"
@@ -1,10 +1,10 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import React from 'react';
2
+ import React, { Suspense } from 'react';
3
3
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
4
4
  import uniqueId from '../../util/id';
5
5
  import debug from '../../util/logger';
6
6
  import MentionList from '../MentionList';
7
- import TeamMentionHighlight from '../TeamMentionHighlight';
7
+ import { LazyTeamMentionHighlight } from '../TeamMentionHighlight/lazy';
8
8
  import TeamMentionHighlightController from '../TeamMentionHighlight/TeamMentionHighlightController';
9
9
  import { fireSliAnalyticsEvent, SLI_EVENT_TYPE } from '../../util/analytics';
10
10
 
@@ -143,10 +143,12 @@ export class ResourcedMentionListWithoutAnalytics extends React.PureComponent {
143
143
  return null;
144
144
  }
145
145
 
146
- return /*#__PURE__*/React.createElement(TeamMentionHighlight, {
146
+ return /*#__PURE__*/React.createElement(Suspense, {
147
+ fallback: null
148
+ }, /*#__PURE__*/React.createElement(LazyTeamMentionHighlight, {
147
149
  createTeamLink: createTeamPath,
148
150
  onClose: this.closeHighlight
149
- });
151
+ }));
150
152
  });
151
153
 
152
154
  this.subscriberKey = uniqueId('ak-resourced-mention-list');
@@ -29,7 +29,7 @@ export default class Scrollable extends React.PureComponent {
29
29
 
30
30
  render() {
31
31
  return /*#__PURE__*/React.createElement(ScrollableStyle, {
32
- innerRef: this.handleRef
32
+ ref: this.handleRef
33
33
  }, this.props.children);
34
34
  }
35
35
 
@@ -1,6 +1,5 @@
1
- import styled from 'styled-components'; // @ts-ignore: unused variable
2
- // prettier-ignore
3
-
1
+ import styled from '@emotion/styled';
2
+ import { token } from '@atlaskit/tokens';
4
3
  import { borderRadius } from '@atlaskit/theme/constants';
5
4
  import { scrollableMaxHeight } from '../../shared-styles';
6
5
  export const ScrollableStyle = styled.div`
@@ -11,7 +10,7 @@ export const ScrollableStyle = styled.div`
11
10
  padding: 4px 0;
12
11
  margin: 0;
13
12
 
14
- background: white;
13
+ background: ${token('elevation.surface', 'white')};
15
14
  max-height: ${scrollableMaxHeight};
16
15
 
17
16
  border-radius: ${borderRadius()}px;
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
- import { withAnalyticsEvents } from '@atlaskit/analytics-next';
3
+ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
4
4
  import Button from '@atlaskit/button/custom-theme-button';
5
5
  import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
6
6
  import Tooltip from '@atlaskit/tooltip';
@@ -8,6 +8,7 @@ import TeamMentionHighlightController from './TeamMentionHighlightController';
8
8
  import { fireAnalyticsTeamMentionHighlightEvent, ComponentNames, Actions } from '../../util/analytics';
9
9
  import { TeamMentionHighlightTitle, TeamMentionHighlightCloseTooltip, TeamMentionHighlightDescription, TeamMentionHighlightDescriptionLink } from '../../util/i18n';
10
10
  import * as Styled from './styles';
11
+ import MessagesIntlProvider from '../MessagesIntlProvider';
11
12
  const ICON_URL = 'data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEyOCIgdmlld0JveD0iMCAwIDEyOCAxMjgiIHdpZHRoPSIxMjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGN4PSI2NCIgY3k9IjY0IiBmaWxsPSIjNTI0M2FhIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHI9IjY0Ii8+PHBhdGggZD0ibTgwIDY0Yy02LjYyNzQxNyAwLTEyLTUuMzcyNTgzLTEyLTEyczUuMzcyNTgzLTEyIDEyLTEyIDEyIDUuMzcyNTgzIDEyIDEyLTUuMzcyNTgzIDEyLTEyIDEyem0tMzItMTJjLTYuNjI3NDE3IDAtMTItNS4zNzI1ODMtMTItMTJzNS4zNzI1ODMtMTIgMTItMTIgMTIgNS4zNzI1ODMgMTIgMTItNS4zNzI1ODMgMTItMTIgMTJ6bTEyIDI0YzAtNC40MiAzLjU0OC04IDgtOGgyNGM0LjQyIDAgOCAzLjU0IDggOHYxNC45MmMwIDEyLjEwOC00MCAxMi4xMDgtNDAgMHptOC0xMmgtLjAxMmMtMy4xODQzNTM3LjAwNDI0LTYuMjM2NTQxIDEuMjczNTYxNS04LjQ4NDg0MjcgMy41Mjg2MTQ5LTIuMjQ4MzAxOCAyLjI1NTA1MzQtMy41MDg0NjU2IDUuMzExMDMzLTMuNTAzMTU3MyA4LjQ5NTM4NTF2MTEuMjI4Yy0xMS43ODQgMi4xMzYtMjgtLjI1Mi0yOC03LjkzNnYtMTUuMzA0YzAtNC40MjQgMy41NDgtOC4wMTIgOC04LjAxMmgyNGMyLjEyMjcwODYtLjAwMzE5MTIgNC4xNTkzOTQ2LjgzODYzODYgNS42NjAzNzggMi4zMzk2MjJzMi4zNDI4MTMyIDMuNTM3NjY5NCAyLjMzOTYyMiA1LjY2MDM3OHoiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iLjk1Ii8+PC9nPjwvc3ZnPg==';
12
13
  export class TeamMentionHighlightInternal extends React.Component {
13
14
  // Wrap whole dialog so we can catch events, see preventClickOnCard
@@ -111,7 +112,7 @@ export class TeamMentionHighlightInternal extends React.Component {
111
112
  return null;
112
113
  }
113
114
 
114
- return /*#__PURE__*/React.createElement("div", {
115
+ return /*#__PURE__*/React.createElement(MessagesIntlProvider, null, /*#__PURE__*/React.createElement("div", {
115
116
  ref: this.elWrapper
116
117
  }, /*#__PURE__*/React.createElement(Styled.Card, null, /*#__PURE__*/React.createElement(Styled.Content, null, /*#__PURE__*/React.createElement(Styled.Aside, null, /*#__PURE__*/React.createElement("img", {
117
118
  src: ICON_URL,
@@ -135,7 +136,7 @@ export class TeamMentionHighlightInternal extends React.Component {
135
136
  }),
136
137
  spacing: "none" // on click fired by preventClickOnCard, not here
137
138
 
138
- }))))))));
139
+ })))))))));
139
140
  }
140
141
 
141
142
  }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export const LazyTeamMentionHighlight = /*#__PURE__*/React.lazy(() => import(
3
+ /* webpackChunkName: "@atlaskit-internal_@atlassian/mention/TeamMentionHighlight" */
4
+ './').then(module => ({
5
+ default: module.default
6
+ })));
@@ -1,7 +1,8 @@
1
- import styled from 'styled-components';
1
+ import styled from '@emotion/styled';
2
2
  import { gridSize } from '@atlaskit/theme/constants';
3
3
  import { P50 } from '@atlaskit/theme/colors';
4
4
  import { h400 } from '@atlaskit/theme/typography';
5
+ import { token } from '@atlaskit/tokens';
5
6
  export const Actions = styled.div`
6
7
  justify-content: flex-end;
7
8
  margin-top: -${gridSize() * 0.5}px; /* Negative margin is used to middle align x button with title*/
@@ -18,7 +19,7 @@ export const Heading = styled.div`
18
19
  export const Card = styled.div`
19
20
  display: flex;
20
21
  flex-direction: row;
21
- background-color: ${P50};
22
+ background-color: ${token('color.background.discovery', P50)};
22
23
  overflow: hidden;
23
24
  line-height: 21px;
24
25
  padding-top: ${gridSize() * 2}px;
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl';
1
+ import { defineMessages } from 'react-intl-next';
2
2
  export const messages = defineMessages({
3
3
  unknownUserError: {
4
4
  id: 'fabric.mention.unknow.user.error',
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * NOTE:
3
3
  *
4
- * This file is automatically generated by i18n-tools.
4
+ * This file is automatically generated by Traduki 2.0.
5
5
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
6
  */
7
- // Czech
7
+ //Czech
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Zavřít',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Tým • 50 a více členů',
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * NOTE:
3
3
  *
4
- * This file is automatically generated by i18n-tools.
4
+ * This file is automatically generated by Traduki 2.0.
5
5
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
6
  */
7
- // Danish
7
+ //Danish (Denmark)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Afvis',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Team • Over 50 medlemmer',