@atlaskit/mention 20.0.0 → 21.0.2

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 (157) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/api/analytics.js +2 -15
  3. package/dist/cjs/components/Mention/index.js +24 -9
  4. package/dist/cjs/components/Mention/ufoExperiences.js +61 -0
  5. package/dist/cjs/components/MentionItem/styles.js +1 -1
  6. package/dist/cjs/components/TeamMentionHighlight/styles.js +2 -2
  7. package/dist/cjs/i18n/cs.js +2 -2
  8. package/dist/cjs/i18n/da.js +2 -2
  9. package/dist/cjs/i18n/de.js +2 -2
  10. package/dist/cjs/i18n/en_ZZ.js +32 -0
  11. package/dist/cjs/i18n/es.js +2 -2
  12. package/dist/cjs/i18n/et.js +2 -2
  13. package/dist/cjs/i18n/fi.js +2 -2
  14. package/dist/cjs/i18n/fr.js +2 -2
  15. package/dist/cjs/i18n/hu.js +2 -2
  16. package/dist/cjs/i18n/it.js +2 -2
  17. package/dist/cjs/i18n/ja.js +2 -2
  18. package/dist/cjs/i18n/ko.js +2 -2
  19. package/dist/cjs/i18n/nb.js +2 -2
  20. package/dist/cjs/i18n/nl.js +2 -2
  21. package/dist/cjs/i18n/pl.js +2 -2
  22. package/dist/cjs/i18n/pt_BR.js +2 -2
  23. package/dist/cjs/i18n/pt_PT.js +2 -2
  24. package/dist/cjs/i18n/ru.js +2 -2
  25. package/dist/cjs/i18n/sk.js +2 -2
  26. package/dist/cjs/i18n/sv.js +2 -2
  27. package/dist/cjs/i18n/th.js +2 -2
  28. package/dist/cjs/i18n/tr.js +2 -2
  29. package/dist/cjs/i18n/uk.js +2 -2
  30. package/dist/cjs/i18n/vi.js +2 -2
  31. package/dist/cjs/i18n/zh.js +2 -2
  32. package/dist/cjs/i18n/zh_TW.js +2 -2
  33. package/dist/cjs/index.js +12 -8
  34. package/dist/cjs/version.json +1 -1
  35. package/dist/es2019/api/analytics.js +0 -9
  36. package/dist/es2019/components/Mention/index.js +20 -4
  37. package/dist/es2019/components/Mention/ufoExperiences.js +19 -0
  38. package/dist/es2019/components/MentionItem/styles.js +1 -1
  39. package/dist/es2019/components/TeamMentionHighlight/styles.js +2 -2
  40. package/dist/es2019/i18n/cs.js +2 -2
  41. package/dist/es2019/i18n/da.js +2 -2
  42. package/dist/es2019/i18n/de.js +2 -2
  43. package/dist/es2019/i18n/en_ZZ.js +24 -0
  44. package/dist/es2019/i18n/es.js +2 -2
  45. package/dist/es2019/i18n/et.js +2 -2
  46. package/dist/es2019/i18n/fi.js +2 -2
  47. package/dist/es2019/i18n/fr.js +2 -2
  48. package/dist/es2019/i18n/hu.js +2 -2
  49. package/dist/es2019/i18n/it.js +2 -2
  50. package/dist/es2019/i18n/ja.js +2 -2
  51. package/dist/es2019/i18n/ko.js +2 -2
  52. package/dist/es2019/i18n/nb.js +2 -2
  53. package/dist/es2019/i18n/nl.js +2 -2
  54. package/dist/es2019/i18n/pl.js +2 -2
  55. package/dist/es2019/i18n/pt_BR.js +2 -2
  56. package/dist/es2019/i18n/pt_PT.js +2 -2
  57. package/dist/es2019/i18n/ru.js +2 -2
  58. package/dist/es2019/i18n/sk.js +2 -2
  59. package/dist/es2019/i18n/sv.js +2 -2
  60. package/dist/es2019/i18n/th.js +2 -2
  61. package/dist/es2019/i18n/tr.js +2 -2
  62. package/dist/es2019/i18n/uk.js +2 -2
  63. package/dist/es2019/i18n/vi.js +2 -2
  64. package/dist/es2019/i18n/zh.js +2 -2
  65. package/dist/es2019/i18n/zh_TW.js +2 -2
  66. package/dist/es2019/index.js +3 -4
  67. package/dist/es2019/version.json +1 -1
  68. package/dist/esm/api/analytics.js +0 -10
  69. package/dist/esm/components/Mention/index.js +20 -8
  70. package/dist/esm/components/Mention/ufoExperiences.js +44 -0
  71. package/dist/esm/components/MentionItem/styles.js +1 -1
  72. package/dist/esm/components/TeamMentionHighlight/styles.js +2 -2
  73. package/dist/esm/i18n/cs.js +2 -2
  74. package/dist/esm/i18n/da.js +2 -2
  75. package/dist/esm/i18n/de.js +2 -2
  76. package/dist/esm/i18n/en_ZZ.js +24 -0
  77. package/dist/esm/i18n/es.js +2 -2
  78. package/dist/esm/i18n/et.js +2 -2
  79. package/dist/esm/i18n/fi.js +2 -2
  80. package/dist/esm/i18n/fr.js +2 -2
  81. package/dist/esm/i18n/hu.js +2 -2
  82. package/dist/esm/i18n/it.js +2 -2
  83. package/dist/esm/i18n/ja.js +2 -2
  84. package/dist/esm/i18n/ko.js +2 -2
  85. package/dist/esm/i18n/nb.js +2 -2
  86. package/dist/esm/i18n/nl.js +2 -2
  87. package/dist/esm/i18n/pl.js +2 -2
  88. package/dist/esm/i18n/pt_BR.js +2 -2
  89. package/dist/esm/i18n/pt_PT.js +2 -2
  90. package/dist/esm/i18n/ru.js +2 -2
  91. package/dist/esm/i18n/sk.js +2 -2
  92. package/dist/esm/i18n/sv.js +2 -2
  93. package/dist/esm/i18n/th.js +2 -2
  94. package/dist/esm/i18n/tr.js +2 -2
  95. package/dist/esm/i18n/uk.js +2 -2
  96. package/dist/esm/i18n/vi.js +2 -2
  97. package/dist/esm/i18n/zh.js +2 -2
  98. package/dist/esm/i18n/zh_TW.js +2 -2
  99. package/dist/esm/index.js +3 -4
  100. package/dist/esm/version.json +1 -1
  101. package/dist/types/api/analytics.d.ts +0 -5
  102. package/dist/types/components/Mention/index.d.ts +2 -0
  103. package/dist/types/components/Mention/ufoExperiences.d.ts +9 -0
  104. package/dist/types/i18n/cs.d.ts +1 -1
  105. package/dist/types/i18n/da.d.ts +1 -1
  106. package/dist/types/i18n/de.d.ts +1 -1
  107. package/dist/types/i18n/en_ZZ.d.ts +24 -0
  108. package/dist/types/i18n/es.d.ts +1 -1
  109. package/dist/types/i18n/et.d.ts +1 -1
  110. package/dist/types/i18n/fi.d.ts +1 -1
  111. package/dist/types/i18n/fr.d.ts +1 -1
  112. package/dist/types/i18n/hu.d.ts +1 -1
  113. package/dist/types/i18n/it.d.ts +1 -1
  114. package/dist/types/i18n/ja.d.ts +1 -1
  115. package/dist/types/i18n/ko.d.ts +1 -1
  116. package/dist/types/i18n/nb.d.ts +1 -1
  117. package/dist/types/i18n/nl.d.ts +1 -1
  118. package/dist/types/i18n/pl.d.ts +1 -1
  119. package/dist/types/i18n/pt_BR.d.ts +1 -1
  120. package/dist/types/i18n/pt_PT.d.ts +1 -1
  121. package/dist/types/i18n/ru.d.ts +1 -1
  122. package/dist/types/i18n/sk.d.ts +1 -1
  123. package/dist/types/i18n/sv.d.ts +1 -1
  124. package/dist/types/i18n/th.d.ts +1 -1
  125. package/dist/types/i18n/tr.d.ts +1 -1
  126. package/dist/types/i18n/uk.d.ts +1 -1
  127. package/dist/types/i18n/vi.d.ts +1 -1
  128. package/dist/types/i18n/zh.d.ts +1 -1
  129. package/dist/types/i18n/zh_TW.d.ts +1 -1
  130. package/dist/types/index.d.ts +3 -4
  131. package/docs/1-in-editor.tsx +4 -36
  132. package/package.json +7 -7
  133. package/tsconfig.json +1 -2
  134. package/dist/cjs/api/SmartMentionResource.js +0 -338
  135. package/dist/cjs/api/SmartMentionTypes.js +0 -15
  136. package/dist/cjs/api/extract-react-types/smart-config-props.js +0 -15
  137. package/dist/cjs/api/recommendationClient.js +0 -57
  138. package/dist/cjs/default-mention-name-resolver/default-mention-name-resolver.js +0 -136
  139. package/dist/cjs/default-mention-name-resolver/graphqlUtils.js +0 -48
  140. package/dist/es2019/api/SmartMentionResource.js +0 -219
  141. package/dist/es2019/api/SmartMentionTypes.js +0 -7
  142. package/dist/es2019/api/extract-react-types/smart-config-props.js +0 -8
  143. package/dist/es2019/api/recommendationClient.js +0 -46
  144. package/dist/es2019/default-mention-name-resolver/default-mention-name-resolver.js +0 -64
  145. package/dist/es2019/default-mention-name-resolver/graphqlUtils.js +0 -39
  146. package/dist/esm/api/SmartMentionResource.js +0 -317
  147. package/dist/esm/api/SmartMentionTypes.js +0 -7
  148. package/dist/esm/api/extract-react-types/smart-config-props.js +0 -8
  149. package/dist/esm/api/recommendationClient.js +0 -48
  150. package/dist/esm/default-mention-name-resolver/default-mention-name-resolver.js +0 -121
  151. package/dist/esm/default-mention-name-resolver/graphqlUtils.js +0 -41
  152. package/dist/types/api/SmartMentionResource.d.ts +0 -63
  153. package/dist/types/api/SmartMentionTypes.d.ts +0 -81
  154. package/dist/types/api/extract-react-types/smart-config-props.d.ts +0 -7
  155. package/dist/types/api/recommendationClient.d.ts +0 -3
  156. package/dist/types/default-mention-name-resolver/default-mention-name-resolver.d.ts +0 -16
  157. package/dist/types/default-mention-name-resolver/graphqlUtils.d.ts +0 -14
package/dist/cjs/index.js CHANGED
@@ -91,12 +91,6 @@ Object.defineProperty(exports, "ResourcedMentionList", {
91
91
  return _ResourcedMentionList.default;
92
92
  }
93
93
  });
94
- Object.defineProperty(exports, "SmartMentionResource", {
95
- enumerable: true,
96
- get: function get() {
97
- return _SmartMentionResource.default;
98
- }
99
- });
100
94
  Object.defineProperty(exports, "TeamMentionHighlight", {
101
95
  enumerable: true,
102
96
  get: function get() {
@@ -115,6 +109,18 @@ Object.defineProperty(exports, "TeamMentionResource", {
115
109
  return _TeamMentionResource.default;
116
110
  }
117
111
  });
112
+ Object.defineProperty(exports, "UserAccessLevel", {
113
+ enumerable: true,
114
+ get: function get() {
115
+ return _types.UserAccessLevel;
116
+ }
117
+ });
118
+ Object.defineProperty(exports, "UserType", {
119
+ enumerable: true,
120
+ get: function get() {
121
+ return _types.UserType;
122
+ }
123
+ });
118
124
  exports.default = void 0;
119
125
  Object.defineProperty(exports, "isResolvingMentionProvider", {
120
126
  enumerable: true,
@@ -131,8 +137,6 @@ Object.defineProperty(exports, "isSpecialMention", {
131
137
 
132
138
  var _MentionResource = _interopRequireWildcard(require("./api/MentionResource"));
133
139
 
134
- var _SmartMentionResource = _interopRequireDefault(require("./api/SmartMentionResource"));
135
-
136
140
  var _TeamMentionResource = _interopRequireDefault(require("./api/TeamMentionResource"));
137
141
 
138
142
  var _PresenceResource = _interopRequireWildcard(require("./api/PresenceResource"));
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/mention",
3
- "version": "20.0.0",
3
+ "version": "21.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -16,13 +16,4 @@ export const defaultAttributes = context => {
16
16
  pickerType: 'mentions',
17
17
  source: 'smarts'
18
18
  };
19
- };
20
- export const getUsersForAnalytics = users => {
21
- return users ? users.map(({
22
- id,
23
- entityType
24
- }) => ({
25
- id,
26
- type: entityType.toLowerCase()
27
- })) : [];
28
19
  };
@@ -7,12 +7,14 @@ import AsyncNoAccessTooltip from '../NoAccessTooltip';
7
7
  import { isRestricted, MentionType } from '../../types';
8
8
  import { fireAnalyticsMentionEvent } from '../../util/analytics';
9
9
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
10
+ import { UFOExperienceState } from '@atlaskit/ufo';
10
11
  import { UnknownUserError } from '../../util/i18n';
12
+ import { UfoErrorBoundary, mentionRenderedUfoExperience } from './ufoExperiences';
11
13
  export const ANALYTICS_HOVER_DELAY = 1000;
12
14
  export const UNKNOWN_USER_ID = '_|unknown|_';
13
15
  export class MentionInternal extends React.PureComponent {
14
- constructor(...args) {
15
- super(...args);
16
+ constructor(props) {
17
+ super(props);
16
18
 
17
19
  _defineProperty(this, "handleOnClick", e => {
18
20
  const {
@@ -79,12 +81,24 @@ export class MentionInternal extends React.PureComponent {
79
81
 
80
82
  return MentionType.DEFAULT;
81
83
  });
84
+
85
+ mentionRenderedUfoExperience.getInstance(props.id).start();
86
+ }
87
+
88
+ componentDidMount() {
89
+ mentionRenderedUfoExperience.getInstance(this.props.id).success();
82
90
  }
83
91
 
84
92
  componentWillUnmount() {
85
93
  if (this.hoverTimeout) {
86
94
  clearTimeout(this.hoverTimeout);
87
95
  }
96
+
97
+ const ufoInstance = mentionRenderedUfoExperience.getInstance(this.props.id);
98
+
99
+ if ([UFOExperienceState['STARTED'], UFOExperienceState['IN_PROGRESS']].includes(ufoInstance.state)) {
100
+ ufoInstance.abort();
101
+ }
88
102
  }
89
103
 
90
104
  renderUnknownUserError(id) {
@@ -116,7 +130,9 @@ export class MentionInternal extends React.PureComponent {
116
130
  onMouseLeave: handleOnMouseLeave,
117
131
  spellCheck: false
118
132
  }, failedMention ? this.renderUnknownUserError(id) : text || '@...'));
119
- return /*#__PURE__*/React.createElement("span", {
133
+ return /*#__PURE__*/React.createElement(UfoErrorBoundary, {
134
+ id: id
135
+ }, /*#__PURE__*/React.createElement("span", {
120
136
  "data-mention-id": id,
121
137
  "data-access-level": accessLevel,
122
138
  spellCheck: false
@@ -124,7 +140,7 @@ export class MentionInternal extends React.PureComponent {
124
140
  fallback: mentionComponent
125
141
  }, /*#__PURE__*/React.createElement(AsyncNoAccessTooltip, {
126
142
  name: text
127
- }, mentionComponent)) : mentionComponent));
143
+ }, mentionComponent)) : mentionComponent)));
128
144
  }
129
145
 
130
146
  }
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { ExperiencePerformanceTypes, ExperienceTypes, ConcurrentExperience } from '@atlaskit/ufo';
3
+ export const mentionRenderedUfoExperience = new ConcurrentExperience('mention-rendered', {
4
+ platform: {
5
+ component: 'mention'
6
+ },
7
+ type: ExperienceTypes.Load,
8
+ performanceType: ExperiencePerformanceTypes.PageSegmentLoad
9
+ });
10
+ export class UfoErrorBoundary extends React.Component {
11
+ componentDidCatch() {
12
+ mentionRenderedUfoExperience.getInstance(this.props.id).failure();
13
+ }
14
+
15
+ render() {
16
+ return this.props.children;
17
+ }
18
+
19
+ }
@@ -50,7 +50,7 @@ export const TimeStyle = styled.div`
50
50
  `;
51
51
  export const MENTION_ITEM_HEIGHT = 48;
52
52
  export const MentionItemStyle = styled.div`
53
- background-color: ${props => props.selected ? token('color.background.brand', N30) : 'transparent'};
53
+ background-color: ${props => props.selected ? token('color.background.selected', N30) : 'transparent'};
54
54
  display: block;
55
55
  overflow: hidden;
56
56
  list-style-type: none;
@@ -5,7 +5,7 @@ import { h400 } from '@atlaskit/theme/typography';
5
5
  import { token } from '@atlaskit/tokens';
6
6
  export const Actions = styled.div`
7
7
  justify-content: flex-end;
8
- margin-top: -${gridSize() * 0.5}px; /* Negative margin is used to middle align x button with title*/
8
+ margin-top: -${gridSize() * 0.5}px; /* Negative margin is used to middle align x button with title */
9
9
  margin-right: ${gridSize() * 0.5}px;
10
10
  `;
11
11
  export const Title = styled.div`
@@ -26,7 +26,7 @@ export const Card = styled.div`
26
26
  padding-bottom: ${gridSize() * 2}px;
27
27
  padding-left: ${gridSize() * 2}px;
28
28
  padding-right: 0px;
29
- margin-top: -${gridSize() * 0.5}px; /* Negative margin is used to fill the entire top of the mention dropdown with background colour of highlight*/
29
+ margin-top: -${gridSize() * 0.5}px; /* Negative margin is used to fill the entire top of the mention dropdown with background colour of highlight */
30
30
  `;
31
31
  export const Content = styled.div`
32
32
  max-width: 290px;
@@ -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',
@@ -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
- // German
7
+ //German (Germany)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Schließen',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Team • über 50 Mitglieder',
@@ -0,0 +1,24 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ //
8
+ export default {
9
+ 'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': '⁣⁢Dismiss⁠؜؜⁡‍⁠⁡⁡⁠؜⁡‍‍⁣⁤',
10
+ 'fabric.elements.mentions.team.member.50plus': '⁣⁢Team • 50+ members⁡‍؜‌‍‌؜؜⁣⁤',
11
+ 'fabric.elements.mentions.team.member.50plus.including.you': '⁣⁢Team • 50+ members, including you⁡⁠⁡‍؜⁠⁡‍‍⁠⁠⁣⁤',
12
+ 'fabric.elements.mentions.team.member.count': '{0, plural, one {⁣⁢Team • 1 member‌⁠‌⁡⁠‍‌؜⁠؜⁡⁠‌⁠⁠؜؜⁣⁤} other {⁣⁢Team • {0} members‌⁠‌⁡⁠‍‌؜⁠؜⁡⁠‌⁠⁠؜؜⁣⁤}}',
13
+ 'fabric.elements.mentions.team.member.count.including.you': '{0, plural, one {⁣⁢Team • 1 member, including you⁡‌؜⁠‍‌‌‌⁣⁤} other {⁣⁢Team • {0} members, including you⁡‌؜⁠‍‌‌‌⁣⁤}}',
14
+ 'fabric.elements.mentions.team.mention.highlight.description': '⁣⁢Get everyone on the page with one click. No team?‍‍⁡⁡⁡⁠‍‌‌⁠⁡⁡⁣⁤',
15
+ 'fabric.elements.mentions.team.mention.highlight.description.link': '⁣⁢Start one.‍؜؜⁠‌‍؜⁠⁣⁤',
16
+ 'fabric.elements.mentions.team.mention.highlight.title': '⁣⁢Mention your team‍⁠‌⁡؜⁡‍‍⁠⁡‌⁠⁣⁤',
17
+ 'fabric.mention.error.defaultAction': '⁣⁢Try again in a few seconds⁠‍⁡⁠⁡⁡⁡؜⁡⁣⁤',
18
+ 'fabric.mention.error.defaultHeadline': '⁣⁢Something went wrong‍‍‍‌‍‍‍⁡‍⁡‍‌⁣⁤',
19
+ 'fabric.mention.error.differentText': '⁣⁢Try entering different text⁡⁡‌‍⁡؜⁣⁤',
20
+ 'fabric.mention.error.loginAgain': '⁣⁢Try logging out then in again؜⁠‌‌⁡⁡⁣⁤',
21
+ 'fabric.mention.noAccess.label': '⁣⁢No access⁡‌‍‌‌‍⁡؜‍⁣⁤',
22
+ 'fabric.mention.noAccess.warning': "⁣⁢{name} won't be notified as they have no access؜؜‍⁡⁡‍؜⁠⁠‌⁡⁠‌⁠⁣⁤",
23
+ 'fabric.mention.unknow.user.error': '⁣⁢Unknown user {userId}⁡⁡⁡‌؜‌‍؜‌‍⁡⁣⁤'
24
+ };
@@ -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
- // Spanish
7
+ //Spanish (International)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Descartar',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Equipo • Más de 50 miembros',
@@ -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
- // Estonian
7
+ //Estonian
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Loobu',
10
10
  'fabric.elements.mentions.team.mention.highlight.description': 'Kaasa kõik lehele ühe klõpsuga. Pole meeskonda?',
@@ -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
- // Finnish
7
+ //Finnish
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Hylkää',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Tiimi • 50+ jäsentä',
@@ -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
- // French
7
+ //French (France)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Ignorer',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Équipe • Plus de 50 membres',
@@ -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
- // Hungarian
7
+ //Hungarian
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Bezárás',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Csapat • 50+ tag',
@@ -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
- // Italian
7
+ //Italian (Italy)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Ignora',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Team • 50+ membri',
@@ -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
- // Japanese
7
+ //Japanese
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': '閉じる',
10
10
  'fabric.elements.mentions.team.member.50plus': 'チーム • 50 人以上のメンバー',
@@ -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
- // Korean
7
+ //Korean
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': '해제',
10
10
  'fabric.elements.mentions.team.member.50plus': '팀 • 구성원 50명 이상',
@@ -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
- // Norwegian Bokmål
7
+ //Norwegian (Bokmål)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Avvis',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Team • flere enn 50 medlemmer',
@@ -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
- // Dutch
7
+ //Dutch (Netherlands)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Sluiten',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Team • 50+ leden',
@@ -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
- // Polish
7
+ //Polish (Poland)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Odrzuć',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Zespół z ponad 50 członkami',
@@ -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
- // Portuguese (Brazil)
7
+ //Portuguese (Brazil)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Ignorar',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Equipe • Mais de 50 membros',
@@ -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
- // Portuguese (Portugal)
7
+ //Portuguese (Portugal)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Dispensar',
10
10
  'fabric.elements.mentions.team.mention.highlight.description': 'Mantenha todos os utilizadores a par com apenas um clique. Ainda não tem uma equipa?',
@@ -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
- // Russian
7
+ //Russian
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Закрыть',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Команда • более 50 участников',
@@ -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
- // Slovak
7
+ //Slovak
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Zrušiť',
10
10
  'fabric.elements.mentions.team.mention.highlight.description': 'Informujte každého jedným kliknutím. Nemáte tím?',
@@ -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
- // Swedish
7
+ //Swedish
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Stäng',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Team • 50+ medlemmar',
@@ -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
- // Thai
7
+ //Thai (Thailand)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'ยกเลิก',
10
10
  'fabric.elements.mentions.team.member.50plus': 'ทีม • สมาชิกมากกว่า 50 คน',
@@ -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
- // Turkish
7
+ //Turkish (Turkey)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Kapat',
10
10
  'fabric.elements.mentions.team.member.50plus': "Takım • 50'den fazla üye",
@@ -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
- // Ukrainian
7
+ //Ukrainian (Ukraine)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Закрити',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Команда • Понад 50 учасників',
@@ -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
- // Vietnamese
7
+ //Vietnamese (Vietnam)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': 'Bỏ qua',
10
10
  'fabric.elements.mentions.team.member.50plus': 'Nhóm • 50+ thành viên',
@@ -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
- // Chinese
7
+ //Chinese (Simplified)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': '放弃',
10
10
  'fabric.elements.mentions.team.member.50plus': '团队 • 50 多名成员',
@@ -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
- // undefined
7
+ //Chinese (Traditional)
8
8
  export default {
9
9
  'fabric.elements.mentions.team.meantion.highlight.close.button.tooltip': '關閉',
10
10
  'fabric.elements.mentions.team.member.50plus': '團隊 • 50 名以上的成員',
@@ -1,5 +1,4 @@
1
1
  import MentionResource, { AbstractMentionResource, isResolvingMentionProvider } from './api/MentionResource';
2
- import SmartMentionResource from './api/SmartMentionResource';
3
2
  import TeamMentionResource from './api/TeamMentionResource';
4
3
  import PresenceResource, { AbstractPresenceResource } from './api/PresenceResource';
5
4
  import { DefaultMentionNameResolver } from './api/MentionNameResolver';
@@ -11,12 +10,12 @@ import Mention from './components/Mention';
11
10
  import ResourcedMention from './components/Mention/ResourcedMention';
12
11
  import TeamMentionHighlight from './components/TeamMentionHighlight';
13
12
  import TeamMentionHighlightController from './components/TeamMentionHighlight/TeamMentionHighlightController';
14
- import { MentionNameStatus, isSpecialMention } from './types';
13
+ import { MentionNameStatus, isSpecialMention, UserAccessLevel, UserType } from './types';
15
14
  import { ELEMENTS_CHANNEL } from './_constants';
16
15
  import ContextMentionResource from './api/ContextMentionResource';
17
16
  export { // Classes
18
- ContextMentionResource, MentionResource, SmartMentionResource, TeamMentionResource, PresenceResource, DefaultMentionNameResolver, AbstractMentionResource, AbstractPresenceResource, MentionNameStatus, // Components
19
- MentionItem, MentionList, ResourcedMentionList, MentionPicker, Mention, ResourcedMention, TeamMentionHighlight, TeamMentionHighlightController, // Functions
17
+ ContextMentionResource, MentionResource, TeamMentionResource, PresenceResource, DefaultMentionNameResolver, AbstractMentionResource, AbstractPresenceResource, MentionNameStatus, // Components
18
+ MentionItem, MentionList, ResourcedMentionList, MentionPicker, Mention, ResourcedMention, TeamMentionHighlight, TeamMentionHighlightController, UserAccessLevel, UserType, // Functions
20
19
  isSpecialMention, isResolvingMentionProvider, // Constants
21
20
  ELEMENTS_CHANNEL };
22
21
  export default MentionPicker;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/mention",
3
- "version": "20.0.0",
3
+ "version": "21.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -16,14 +16,4 @@ export var defaultAttributes = function defaultAttributes(context) {
16
16
  pickerType: 'mentions',
17
17
  source: 'smarts'
18
18
  };
19
- };
20
- export var getUsersForAnalytics = function getUsersForAnalytics(users) {
21
- return users ? users.map(function (_ref) {
22
- var id = _ref.id,
23
- entityType = _ref.entityType;
24
- return {
25
- id: id,
26
- type: entityType.toLowerCase()
27
- };
28
- }) : [];
29
19
  };