@atlaskit/smart-user-picker 6.0.4 → 6.0.6

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 (77) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/analytics.js +12 -37
  3. package/dist/cjs/components/MessagesIntlProvider.js +4 -22
  4. package/dist/cjs/components/SmartUserPicker.js +22 -123
  5. package/dist/cjs/components/index.js +0 -7
  6. package/dist/cjs/i18n/cs.js +0 -1
  7. package/dist/cjs/i18n/da.js +0 -1
  8. package/dist/cjs/i18n/de.js +0 -1
  9. package/dist/cjs/i18n/en_ZZ.js +0 -1
  10. package/dist/cjs/i18n/es.js +0 -1
  11. package/dist/cjs/i18n/et.js +0 -1
  12. package/dist/cjs/i18n/fi.js +0 -1
  13. package/dist/cjs/i18n/fr.js +0 -1
  14. package/dist/cjs/i18n/hu.js +0 -1
  15. package/dist/cjs/i18n/index.js +0 -31
  16. package/dist/cjs/i18n/it.js +0 -1
  17. package/dist/cjs/i18n/ja.js +0 -1
  18. package/dist/cjs/i18n/ko.js +0 -1
  19. package/dist/cjs/i18n/nb.js +0 -1
  20. package/dist/cjs/i18n/nl.js +0 -1
  21. package/dist/cjs/i18n/pl.js +0 -1
  22. package/dist/cjs/i18n/pt_BR.js +0 -1
  23. package/dist/cjs/i18n/pt_PT.js +0 -1
  24. package/dist/cjs/i18n/ru.js +0 -1
  25. package/dist/cjs/i18n/sk.js +0 -1
  26. package/dist/cjs/i18n/sv.js +0 -1
  27. package/dist/cjs/i18n/th.js +0 -1
  28. package/dist/cjs/i18n/tr.js +0 -1
  29. package/dist/cjs/i18n/uk.js +0 -1
  30. package/dist/cjs/i18n/vi.js +0 -1
  31. package/dist/cjs/i18n/zh.js +0 -1
  32. package/dist/cjs/i18n/zh_TW.js +0 -1
  33. package/dist/cjs/i18n.js +0 -2
  34. package/dist/cjs/index.js +0 -4
  35. package/dist/cjs/service/default-value-hydration-client.js +0 -49
  36. package/dist/cjs/service/graphqlUtils.js +0 -5
  37. package/dist/cjs/service/index.js +0 -3
  38. package/dist/cjs/service/recommendation-client.js +0 -11
  39. package/dist/cjs/service/teams-client.js +0 -10
  40. package/dist/cjs/service/users-client.js +2 -20
  41. package/dist/cjs/service/users-transformer.js +0 -17
  42. package/dist/cjs/types.js +0 -1
  43. package/dist/cjs/ufoExperiences.js +8 -26
  44. package/dist/cjs/util/i18n-util.js +0 -43
  45. package/dist/cjs/version.json +1 -1
  46. package/dist/es2019/analytics.js +12 -10
  47. package/dist/es2019/components/MessagesIntlProvider.js +2 -4
  48. package/dist/es2019/components/SmartUserPicker.js +23 -55
  49. package/dist/es2019/components/index.js +0 -2
  50. package/dist/es2019/config/index.js +0 -4
  51. package/dist/es2019/index.js +4 -2
  52. package/dist/es2019/service/default-value-hydration-client.js +4 -22
  53. package/dist/es2019/service/graphqlUtils.js +0 -4
  54. package/dist/es2019/service/recommendation-client.js +0 -4
  55. package/dist/es2019/service/teams-client.js +2 -5
  56. package/dist/es2019/service/users-client.js +2 -6
  57. package/dist/es2019/service/users-transformer.js +0 -11
  58. package/dist/es2019/types.js +0 -1
  59. package/dist/es2019/ufoExperiences.js +8 -7
  60. package/dist/es2019/util/i18n-util.js +30 -120
  61. package/dist/es2019/version.json +1 -1
  62. package/dist/esm/analytics.js +12 -19
  63. package/dist/esm/components/MessagesIntlProvider.js +4 -11
  64. package/dist/esm/components/SmartUserPicker.js +24 -115
  65. package/dist/esm/components/index.js +0 -2
  66. package/dist/esm/index.js +4 -2
  67. package/dist/esm/service/default-value-hydration-client.js +0 -40
  68. package/dist/esm/service/graphqlUtils.js +0 -4
  69. package/dist/esm/service/recommendation-client.js +0 -7
  70. package/dist/esm/service/teams-client.js +0 -7
  71. package/dist/esm/service/users-client.js +2 -13
  72. package/dist/esm/service/users-transformer.js +0 -13
  73. package/dist/esm/types.js +0 -1
  74. package/dist/esm/ufoExperiences.js +8 -13
  75. package/dist/esm/util/i18n-util.js +30 -126
  76. package/dist/esm/version.json +1 -1
  77. package/package.json +3 -3
@@ -1,6 +1,5 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
-
4
3
  /**
5
4
  * Tries to get the most specific messages bundle for a given locale.
6
5
  *
@@ -21,227 +20,133 @@ export var getMessagesForLocale = /*#__PURE__*/function () {
21
20
  _context.t0 = locale;
22
21
  _context.next = _context.t0 === 'cs' ? 3 : _context.t0 === 'da' ? 4 : _context.t0 === 'de' ? 5 : _context.t0 === 'en' ? 6 : _context.t0 === 'en_GB' ? 7 : _context.t0 === 'es' ? 8 : _context.t0 === 'et' ? 9 : _context.t0 === 'fi' ? 10 : _context.t0 === 'fr' ? 11 : _context.t0 === 'hu' ? 12 : _context.t0 === 'is' ? 13 : _context.t0 === 'it' ? 14 : _context.t0 === 'ja' ? 15 : _context.t0 === 'ko' ? 16 : _context.t0 === 'nb' ? 17 : _context.t0 === 'nl' ? 18 : _context.t0 === 'pl' ? 19 : _context.t0 === 'pt_BR' ? 20 : _context.t0 === 'pt-BR' ? 20 : _context.t0 === 'pt_PT' ? 21 : _context.t0 === 'pt-PT' ? 21 : _context.t0 === 'ro' ? 22 : _context.t0 === 'ru' ? 23 : _context.t0 === 'sk' ? 24 : _context.t0 === 'sv' ? 25 : _context.t0 === 'th' ? 26 : _context.t0 === 'tr' ? 27 : _context.t0 === 'uk' ? 28 : _context.t0 === 'vi' ? 29 : _context.t0 === 'zh_TW' ? 30 : _context.t0 === 'zh' ? 31 : 32;
23
22
  break;
24
-
25
23
  case 3:
26
- return _context.abrupt("return", import(
27
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-cs" */
28
- '../i18n/cs').then(function (mod) {
24
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-cs" */'../i18n/cs').then(function (mod) {
29
25
  return mod.default;
30
26
  }));
31
-
32
27
  case 4:
33
- return _context.abrupt("return", import(
34
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-da" */
35
- '../i18n/da').then(function (mod) {
28
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-da" */'../i18n/da').then(function (mod) {
36
29
  return mod.default;
37
30
  }));
38
-
39
31
  case 5:
40
- return _context.abrupt("return", import(
41
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-de" */
42
- '../i18n/de').then(function (mod) {
32
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-de" */'../i18n/de').then(function (mod) {
43
33
  return mod.default;
44
34
  }));
45
-
46
35
  case 6:
47
- return _context.abrupt("return", import(
48
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en" */
49
- '../i18n/en').then(function (mod) {
36
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en" */'../i18n/en').then(function (mod) {
50
37
  return mod.default;
51
38
  }));
52
-
53
39
  case 7:
54
- return _context.abrupt("return", import(
55
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en_GB" */
56
- '../i18n/en_GB').then(function (mod) {
40
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en_GB" */'../i18n/en_GB').then(function (mod) {
57
41
  return mod.default;
58
42
  }));
59
-
60
43
  case 8:
61
- return _context.abrupt("return", import(
62
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-es" */
63
- '../i18n/es').then(function (mod) {
44
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-es" */'../i18n/es').then(function (mod) {
64
45
  return mod.default;
65
46
  }));
66
-
67
47
  case 9:
68
- return _context.abrupt("return", import(
69
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-et" */
70
- '../i18n/et').then(function (mod) {
48
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-et" */'../i18n/et').then(function (mod) {
71
49
  return mod.default;
72
50
  }));
73
-
74
51
  case 10:
75
- return _context.abrupt("return", import(
76
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-fi" */
77
- '../i18n/fi').then(function (mod) {
52
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-fi" */'../i18n/fi').then(function (mod) {
78
53
  return mod.default;
79
54
  }));
80
-
81
55
  case 11:
82
- return _context.abrupt("return", import(
83
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-fr" */
84
- '../i18n/fr').then(function (mod) {
56
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-fr" */'../i18n/fr').then(function (mod) {
85
57
  return mod.default;
86
58
  }));
87
-
88
59
  case 12:
89
- return _context.abrupt("return", import(
90
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-hu" */
91
- '../i18n/hu').then(function (mod) {
60
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-hu" */'../i18n/hu').then(function (mod) {
92
61
  return mod.default;
93
62
  }));
94
-
95
63
  case 13:
96
- return _context.abrupt("return", import(
97
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-is" */
98
- '../i18n/is').then(function (mod) {
64
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-is" */'../i18n/is').then(function (mod) {
99
65
  return mod.default;
100
66
  }));
101
-
102
67
  case 14:
103
- return _context.abrupt("return", import(
104
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-it" */
105
- '../i18n/it').then(function (mod) {
68
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-it" */'../i18n/it').then(function (mod) {
106
69
  return mod.default;
107
70
  }));
108
-
109
71
  case 15:
110
- return _context.abrupt("return", import(
111
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ja" */
112
- '../i18n/ja').then(function (mod) {
72
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ja" */'../i18n/ja').then(function (mod) {
113
73
  return mod.default;
114
74
  }));
115
-
116
75
  case 16:
117
- return _context.abrupt("return", import(
118
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ko" */
119
- '../i18n/ko').then(function (mod) {
76
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ko" */'../i18n/ko').then(function (mod) {
120
77
  return mod.default;
121
78
  }));
122
-
123
79
  case 17:
124
- return _context.abrupt("return", import(
125
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-nb" */
126
- '../i18n/nb').then(function (mod) {
80
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-nb" */'../i18n/nb').then(function (mod) {
127
81
  return mod.default;
128
82
  }));
129
-
130
83
  case 18:
131
- return _context.abrupt("return", import(
132
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-nl" */
133
- '../i18n/nl').then(function (mod) {
84
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-nl" */'../i18n/nl').then(function (mod) {
134
85
  return mod.default;
135
86
  }));
136
-
137
87
  case 19:
138
- return _context.abrupt("return", import(
139
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-pl" */
140
- '../i18n/pl').then(function (mod) {
88
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-pl" */'../i18n/pl').then(function (mod) {
141
89
  return mod.default;
142
90
  }));
143
-
144
91
  case 20:
145
- return _context.abrupt("return", import(
146
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-pt_BR" */
147
- '../i18n/pt_BR').then(function (mod) {
92
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-pt_BR" */'../i18n/pt_BR').then(function (mod) {
148
93
  return mod.default;
149
94
  }));
150
-
151
95
  case 21:
152
- return _context.abrupt("return", import(
153
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-pt_PT" */
154
- '../i18n/pt_PT').then(function (mod) {
96
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-pt_PT" */'../i18n/pt_PT').then(function (mod) {
155
97
  return mod.default;
156
98
  }));
157
-
158
99
  case 22:
159
- return _context.abrupt("return", import(
160
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ro" */
161
- '../i18n/ro').then(function (mod) {
100
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ro" */'../i18n/ro').then(function (mod) {
162
101
  return mod.default;
163
102
  }));
164
-
165
103
  case 23:
166
- return _context.abrupt("return", import(
167
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ru" */
168
- '../i18n/ru').then(function (mod) {
104
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ru" */'../i18n/ru').then(function (mod) {
169
105
  return mod.default;
170
106
  }));
171
-
172
107
  case 24:
173
- return _context.abrupt("return", import(
174
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-sk" */
175
- '../i18n/sk').then(function (mod) {
108
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-sk" */'../i18n/sk').then(function (mod) {
176
109
  return mod.default;
177
110
  }));
178
-
179
111
  case 25:
180
- return _context.abrupt("return", import(
181
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-sv" */
182
- '../i18n/sv').then(function (mod) {
112
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-sv" */'../i18n/sv').then(function (mod) {
183
113
  return mod.default;
184
114
  }));
185
-
186
115
  case 26:
187
- return _context.abrupt("return", import(
188
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-th" */
189
- '../i18n/th').then(function (mod) {
116
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-th" */'../i18n/th').then(function (mod) {
190
117
  return mod.default;
191
118
  }));
192
-
193
119
  case 27:
194
- return _context.abrupt("return", import(
195
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-tr" */
196
- '../i18n/tr').then(function (mod) {
120
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-tr" */'../i18n/tr').then(function (mod) {
197
121
  return mod.default;
198
122
  }));
199
-
200
123
  case 28:
201
- return _context.abrupt("return", import(
202
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-uk" */
203
- '../i18n/uk').then(function (mod) {
124
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-uk" */'../i18n/uk').then(function (mod) {
204
125
  return mod.default;
205
126
  }));
206
-
207
127
  case 29:
208
- return _context.abrupt("return", import(
209
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-vi" */
210
- '../i18n/vi').then(function (mod) {
128
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-vi" */'../i18n/vi').then(function (mod) {
211
129
  return mod.default;
212
130
  }));
213
-
214
131
  case 30:
215
- return _context.abrupt("return", import(
216
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-zh_TW" */
217
- '../i18n/zh_TW').then(function (mod) {
132
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-zh_TW" */'../i18n/zh_TW').then(function (mod) {
218
133
  return mod.default;
219
134
  }));
220
-
221
135
  case 31:
222
- return _context.abrupt("return", import(
223
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-zh" */
224
- '../i18n/zh').then(function (mod) {
136
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-zh" */'../i18n/zh').then(function (mod) {
225
137
  return mod.default;
226
138
  }));
227
-
228
139
  case 32:
229
140
  fragments = locale.split(/[_-]/);
230
-
231
141
  if (!(fragments.length === 2)) {
232
142
  _context.next = 37;
233
143
  break;
234
144
  }
235
-
236
145
  return _context.abrupt("return", getMessagesForLocale(fragments[0]));
237
-
238
146
  case 37:
239
- return _context.abrupt("return", import(
240
- /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en" */
241
- '../i18n/en').then(function (mod) {
147
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en" */'../i18n/en').then(function (mod) {
242
148
  return mod.default;
243
149
  }));
244
-
245
150
  case 38:
246
151
  case "end":
247
152
  return _context.stop();
@@ -249,7 +154,6 @@ export var getMessagesForLocale = /*#__PURE__*/function () {
249
154
  }
250
155
  }, _callee);
251
156
  }));
252
-
253
157
  return function getMessagesForLocale(_x) {
254
158
  return _ref.apply(this, arguments);
255
159
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-user-picker",
3
- "version": "6.0.4",
3
+ "version": "6.0.6",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-user-picker",
3
- "version": "6.0.4",
3
+ "version": "6.0.6",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -22,9 +22,9 @@
22
22
  "releaseModel": "continuous"
23
23
  },
24
24
  "dependencies": {
25
- "@atlaskit/analytics-next": "^8.2.0",
25
+ "@atlaskit/analytics-next": "^9.0.0",
26
26
  "@atlaskit/ufo": "^0.1.0",
27
- "@atlaskit/user-picker": "^10.0.0",
27
+ "@atlaskit/user-picker": "^10.1.0",
28
28
  "@babel/runtime": "^7.0.0",
29
29
  "lodash": "^4.17.21",
30
30
  "memoize-one": "^6.0.0",