@atlaskit/user-picker 10.1.1 → 10.2.1

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 (163) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/analytics/package.json +2 -2
  3. package/dist/cjs/components/AvatarItemOption.js +2 -2
  4. package/dist/cjs/components/BaseUserPicker.js +4 -1
  5. package/dist/cjs/components/ClearIndicator.js +1 -1
  6. package/dist/cjs/components/CustomOption/index.js +1 -1
  7. package/dist/cjs/components/CustomOption/main.js +1 -1
  8. package/dist/cjs/components/EmailOption/index.js +1 -1
  9. package/dist/cjs/components/EmailOption/main.js +1 -1
  10. package/dist/cjs/components/ExternalUserOption/ExternalAvatarItemOption.js +1 -1
  11. package/dist/cjs/components/ExternalUserOption/index.js +1 -1
  12. package/dist/cjs/components/ExternalUserOption/main.js +1 -1
  13. package/dist/cjs/components/GroupOption/index.js +1 -1
  14. package/dist/cjs/components/GroupOption/main.js +1 -1
  15. package/dist/cjs/components/Input.js +2 -0
  16. package/dist/cjs/components/MultiValue.js +1 -1
  17. package/dist/cjs/components/PopupControl.js +1 -1
  18. package/dist/cjs/components/SingleValue.js +1 -0
  19. package/dist/cjs/components/SingleValueContainer.js +1 -1
  20. package/dist/cjs/components/TeamOption/index.js +1 -1
  21. package/dist/cjs/components/TeamOption/main.js +1 -1
  22. package/dist/cjs/components/UserOption.js +1 -1
  23. package/dist/cjs/i18n/cs.js +2 -0
  24. package/dist/cjs/i18n/da.js +2 -0
  25. package/dist/cjs/i18n/de.js +2 -0
  26. package/dist/cjs/i18n/en.js +2 -0
  27. package/dist/cjs/i18n/en_GB.js +2 -0
  28. package/dist/cjs/i18n/es.js +2 -0
  29. package/dist/cjs/i18n/fi.js +2 -0
  30. package/dist/cjs/i18n/fr.js +2 -0
  31. package/dist/cjs/i18n/hu.js +2 -0
  32. package/dist/cjs/i18n/it.js +2 -0
  33. package/dist/cjs/i18n/ja.js +2 -0
  34. package/dist/cjs/i18n/ko.js +2 -0
  35. package/dist/cjs/i18n/nb.js +2 -0
  36. package/dist/cjs/i18n/nl.js +2 -0
  37. package/dist/cjs/i18n/pl.js +2 -0
  38. package/dist/cjs/i18n/pt_BR.js +2 -0
  39. package/dist/cjs/i18n/ru.js +2 -0
  40. package/dist/cjs/i18n/sv.js +2 -0
  41. package/dist/cjs/i18n/th.js +2 -0
  42. package/dist/cjs/i18n/tr.js +2 -0
  43. package/dist/cjs/i18n/uk.js +2 -0
  44. package/dist/cjs/i18n/vi.js +2 -0
  45. package/dist/cjs/i18n/zh.js +2 -0
  46. package/dist/cjs/i18n/zh_TW.js +2 -0
  47. package/dist/cjs/types.js +5 -0
  48. package/dist/cjs/util/i18n-util.js +194 -196
  49. package/dist/cjs/version.json +1 -1
  50. package/dist/es2019/components/BaseUserPicker.js +4 -0
  51. package/dist/es2019/components/Input.js +2 -0
  52. package/dist/es2019/i18n/cs.js +2 -0
  53. package/dist/es2019/i18n/da.js +2 -0
  54. package/dist/es2019/i18n/de.js +2 -0
  55. package/dist/es2019/i18n/en.js +2 -0
  56. package/dist/es2019/i18n/en_GB.js +2 -0
  57. package/dist/es2019/i18n/es.js +2 -0
  58. package/dist/es2019/i18n/fi.js +2 -0
  59. package/dist/es2019/i18n/fr.js +2 -0
  60. package/dist/es2019/i18n/hu.js +2 -0
  61. package/dist/es2019/i18n/it.js +2 -0
  62. package/dist/es2019/i18n/ja.js +2 -0
  63. package/dist/es2019/i18n/ko.js +2 -0
  64. package/dist/es2019/i18n/nb.js +2 -0
  65. package/dist/es2019/i18n/nl.js +2 -0
  66. package/dist/es2019/i18n/pl.js +2 -0
  67. package/dist/es2019/i18n/pt_BR.js +2 -0
  68. package/dist/es2019/i18n/ru.js +2 -0
  69. package/dist/es2019/i18n/sv.js +2 -0
  70. package/dist/es2019/i18n/th.js +2 -0
  71. package/dist/es2019/i18n/tr.js +2 -0
  72. package/dist/es2019/i18n/uk.js +2 -0
  73. package/dist/es2019/i18n/vi.js +2 -0
  74. package/dist/es2019/i18n/zh.js +2 -0
  75. package/dist/es2019/i18n/zh_TW.js +2 -0
  76. package/dist/es2019/types.js +6 -0
  77. package/dist/es2019/version.json +1 -1
  78. package/dist/esm/components/BaseUserPicker.js +4 -1
  79. package/dist/esm/components/Input.js +2 -0
  80. package/dist/esm/i18n/cs.js +2 -0
  81. package/dist/esm/i18n/da.js +2 -0
  82. package/dist/esm/i18n/de.js +2 -0
  83. package/dist/esm/i18n/en.js +2 -0
  84. package/dist/esm/i18n/en_GB.js +2 -0
  85. package/dist/esm/i18n/es.js +2 -0
  86. package/dist/esm/i18n/fi.js +2 -0
  87. package/dist/esm/i18n/fr.js +2 -0
  88. package/dist/esm/i18n/hu.js +2 -0
  89. package/dist/esm/i18n/it.js +2 -0
  90. package/dist/esm/i18n/ja.js +2 -0
  91. package/dist/esm/i18n/ko.js +2 -0
  92. package/dist/esm/i18n/nb.js +2 -0
  93. package/dist/esm/i18n/nl.js +2 -0
  94. package/dist/esm/i18n/pl.js +2 -0
  95. package/dist/esm/i18n/pt_BR.js +2 -0
  96. package/dist/esm/i18n/ru.js +2 -0
  97. package/dist/esm/i18n/sv.js +2 -0
  98. package/dist/esm/i18n/th.js +2 -0
  99. package/dist/esm/i18n/tr.js +2 -0
  100. package/dist/esm/i18n/uk.js +2 -0
  101. package/dist/esm/i18n/vi.js +2 -0
  102. package/dist/esm/i18n/zh.js +2 -0
  103. package/dist/esm/i18n/zh_TW.js +2 -0
  104. package/dist/esm/types.js +6 -0
  105. package/dist/esm/util/i18n-util.js +134 -136
  106. package/dist/esm/version.json +1 -1
  107. package/dist/types/analytics.d.ts +1 -1
  108. package/dist/types/clients/UserSourceProvider.d.ts +1 -1
  109. package/dist/types/components/AddOptionAvatar.d.ts +1 -1
  110. package/dist/types/components/AvatarItemOption.d.ts +2 -2
  111. package/dist/types/components/BaseUserPicker.d.ts +1 -1
  112. package/dist/types/components/CustomOption/main.d.ts +1 -1
  113. package/dist/types/components/EmailOption/main.d.ts +1 -1
  114. package/dist/types/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +1 -1
  115. package/dist/types/components/ExternalUserOption/main.d.ts +1 -1
  116. package/dist/types/components/ExternalUserSourcesContainer.d.ts +1 -1
  117. package/dist/types/components/GroupOption/main.d.ts +1 -1
  118. package/dist/types/components/Input.d.ts +1 -1
  119. package/dist/types/components/MultiValue.d.ts +1 -1
  120. package/dist/types/components/MultiValueContainer.d.ts +3 -3
  121. package/dist/types/components/Option.d.ts +1 -1
  122. package/dist/types/components/PopupInput.d.ts +1 -1
  123. package/dist/types/components/SingleValue.d.ts +1 -1
  124. package/dist/types/components/SizeableAvatar.d.ts +1 -1
  125. package/dist/types/components/TeamOption/main.d.ts +1 -1
  126. package/dist/types/components/UserOption.d.ts +1 -1
  127. package/dist/types/components/components.d.ts +1 -1
  128. package/dist/types/components/creatableEmailSuggestion.d.ts +4 -4
  129. package/dist/types/components/emailValidation.d.ts +2 -2
  130. package/dist/types/components/popup.d.ts +1 -1
  131. package/dist/types/components/styles.d.ts +2 -2
  132. package/dist/types/components/utils.d.ts +1 -1
  133. package/dist/types/i18n/cs.d.ts +7 -6
  134. package/dist/types/i18n/da.d.ts +7 -6
  135. package/dist/types/i18n/de.d.ts +7 -6
  136. package/dist/types/i18n/en.d.ts +7 -6
  137. package/dist/types/i18n/en_GB.d.ts +7 -6
  138. package/dist/types/i18n/en_ZZ.d.ts +6 -6
  139. package/dist/types/i18n/es.d.ts +7 -6
  140. package/dist/types/i18n/et.d.ts +6 -6
  141. package/dist/types/i18n/fi.d.ts +7 -6
  142. package/dist/types/i18n/fr.d.ts +7 -6
  143. package/dist/types/i18n/hu.d.ts +7 -6
  144. package/dist/types/i18n/it.d.ts +7 -6
  145. package/dist/types/i18n/ja.d.ts +7 -6
  146. package/dist/types/i18n/ko.d.ts +7 -6
  147. package/dist/types/i18n/nb.d.ts +7 -6
  148. package/dist/types/i18n/nl.d.ts +7 -6
  149. package/dist/types/i18n/pl.d.ts +7 -6
  150. package/dist/types/i18n/pt_BR.d.ts +7 -6
  151. package/dist/types/i18n/pt_PT.d.ts +6 -6
  152. package/dist/types/i18n/ru.d.ts +7 -6
  153. package/dist/types/i18n/sk.d.ts +6 -6
  154. package/dist/types/i18n/sv.d.ts +7 -6
  155. package/dist/types/i18n/th.d.ts +7 -6
  156. package/dist/types/i18n/tr.d.ts +7 -6
  157. package/dist/types/i18n/uk.d.ts +7 -6
  158. package/dist/types/i18n/vi.d.ts +7 -6
  159. package/dist/types/i18n/zh.d.ts +7 -6
  160. package/dist/types/i18n/zh_TW.d.ts +7 -6
  161. package/dist/types/types.d.ts +22 -22
  162. package/package.json +31 -23
  163. package/types/package.json +2 -2
@@ -14,143 +14,141 @@ export var getMessagesForLocale = /*#__PURE__*/function () {
14
14
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(locale) {
15
15
  var fragments;
16
16
  return _regeneratorRuntime.wrap(function _callee$(_context) {
17
- while (1) {
18
- switch (_context.prev = _context.next) {
19
- case 0:
20
- _context.t0 = locale;
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;
17
+ while (1) switch (_context.prev = _context.next) {
18
+ case 0:
19
+ _context.t0 = locale;
20
+ _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;
21
+ break;
22
+ case 3:
23
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-cs" */'../i18n/cs').then(function (mod) {
24
+ return mod.default;
25
+ }));
26
+ case 4:
27
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-da" */'../i18n/da').then(function (mod) {
28
+ return mod.default;
29
+ }));
30
+ case 5:
31
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-de" */'../i18n/de').then(function (mod) {
32
+ return mod.default;
33
+ }));
34
+ case 6:
35
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en" */'../i18n/en').then(function (mod) {
36
+ return mod.default;
37
+ }));
38
+ case 7:
39
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en_GB" */'../i18n/en_GB').then(function (mod) {
40
+ return mod.default;
41
+ }));
42
+ case 8:
43
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-es" */'../i18n/es').then(function (mod) {
44
+ return mod.default;
45
+ }));
46
+ case 9:
47
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-et" */'../i18n/et').then(function (mod) {
48
+ return mod.default;
49
+ }));
50
+ case 10:
51
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-fi" */'../i18n/fi').then(function (mod) {
52
+ return mod.default;
53
+ }));
54
+ case 11:
55
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-fr" */'../i18n/fr').then(function (mod) {
56
+ return mod.default;
57
+ }));
58
+ case 12:
59
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-hu" */'../i18n/hu').then(function (mod) {
60
+ return mod.default;
61
+ }));
62
+ case 13:
63
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-is" */'../i18n/is').then(function (mod) {
64
+ return mod.default;
65
+ }));
66
+ case 14:
67
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-it" */'../i18n/it').then(function (mod) {
68
+ return mod.default;
69
+ }));
70
+ case 15:
71
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ja" */'../i18n/ja').then(function (mod) {
72
+ return mod.default;
73
+ }));
74
+ case 16:
75
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ko" */'../i18n/ko').then(function (mod) {
76
+ return mod.default;
77
+ }));
78
+ case 17:
79
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-nb" */'../i18n/nb').then(function (mod) {
80
+ return mod.default;
81
+ }));
82
+ case 18:
83
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-nl" */'../i18n/nl').then(function (mod) {
84
+ return mod.default;
85
+ }));
86
+ case 19:
87
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-pl" */'../i18n/pl').then(function (mod) {
88
+ return mod.default;
89
+ }));
90
+ case 20:
91
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-pt_BR" */'../i18n/pt_BR').then(function (mod) {
92
+ return mod.default;
93
+ }));
94
+ case 21:
95
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-pt_PT" */'../i18n/pt_PT').then(function (mod) {
96
+ return mod.default;
97
+ }));
98
+ case 22:
99
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ro" */'../i18n/ro').then(function (mod) {
100
+ return mod.default;
101
+ }));
102
+ case 23:
103
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ru" */'../i18n/ru').then(function (mod) {
104
+ return mod.default;
105
+ }));
106
+ case 24:
107
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-sk" */'../i18n/sk').then(function (mod) {
108
+ return mod.default;
109
+ }));
110
+ case 25:
111
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-sv" */'../i18n/sv').then(function (mod) {
112
+ return mod.default;
113
+ }));
114
+ case 26:
115
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-th" */'../i18n/th').then(function (mod) {
116
+ return mod.default;
117
+ }));
118
+ case 27:
119
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-tr" */'../i18n/tr').then(function (mod) {
120
+ return mod.default;
121
+ }));
122
+ case 28:
123
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-uk" */'../i18n/uk').then(function (mod) {
124
+ return mod.default;
125
+ }));
126
+ case 29:
127
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-vi" */'../i18n/vi').then(function (mod) {
128
+ return mod.default;
129
+ }));
130
+ case 30:
131
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-zh_TW" */'../i18n/zh_TW').then(function (mod) {
132
+ return mod.default;
133
+ }));
134
+ case 31:
135
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-zh" */'../i18n/zh').then(function (mod) {
136
+ return mod.default;
137
+ }));
138
+ case 32:
139
+ fragments = locale.split(/[_-]/);
140
+ if (!(fragments.length === 2)) {
141
+ _context.next = 37;
22
142
  break;
23
- case 3:
24
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-cs" */'../i18n/cs').then(function (mod) {
25
- return mod.default;
26
- }));
27
- case 4:
28
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-da" */'../i18n/da').then(function (mod) {
29
- return mod.default;
30
- }));
31
- case 5:
32
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-de" */'../i18n/de').then(function (mod) {
33
- return mod.default;
34
- }));
35
- case 6:
36
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en" */'../i18n/en').then(function (mod) {
37
- return mod.default;
38
- }));
39
- case 7:
40
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en_GB" */'../i18n/en_GB').then(function (mod) {
41
- return mod.default;
42
- }));
43
- case 8:
44
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-es" */'../i18n/es').then(function (mod) {
45
- return mod.default;
46
- }));
47
- case 9:
48
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-et" */'../i18n/et').then(function (mod) {
49
- return mod.default;
50
- }));
51
- case 10:
52
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-fi" */'../i18n/fi').then(function (mod) {
53
- return mod.default;
54
- }));
55
- case 11:
56
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-fr" */'../i18n/fr').then(function (mod) {
57
- return mod.default;
58
- }));
59
- case 12:
60
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-hu" */'../i18n/hu').then(function (mod) {
61
- return mod.default;
62
- }));
63
- case 13:
64
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-is" */'../i18n/is').then(function (mod) {
65
- return mod.default;
66
- }));
67
- case 14:
68
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-it" */'../i18n/it').then(function (mod) {
69
- return mod.default;
70
- }));
71
- case 15:
72
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ja" */'../i18n/ja').then(function (mod) {
73
- return mod.default;
74
- }));
75
- case 16:
76
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ko" */'../i18n/ko').then(function (mod) {
77
- return mod.default;
78
- }));
79
- case 17:
80
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-nb" */'../i18n/nb').then(function (mod) {
81
- return mod.default;
82
- }));
83
- case 18:
84
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-nl" */'../i18n/nl').then(function (mod) {
85
- return mod.default;
86
- }));
87
- case 19:
88
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-pl" */'../i18n/pl').then(function (mod) {
89
- return mod.default;
90
- }));
91
- case 20:
92
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-pt_BR" */'../i18n/pt_BR').then(function (mod) {
93
- return mod.default;
94
- }));
95
- case 21:
96
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-pt_PT" */'../i18n/pt_PT').then(function (mod) {
97
- return mod.default;
98
- }));
99
- case 22:
100
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ro" */'../i18n/ro').then(function (mod) {
101
- return mod.default;
102
- }));
103
- case 23:
104
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-ru" */'../i18n/ru').then(function (mod) {
105
- return mod.default;
106
- }));
107
- case 24:
108
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-sk" */'../i18n/sk').then(function (mod) {
109
- return mod.default;
110
- }));
111
- case 25:
112
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-sv" */'../i18n/sv').then(function (mod) {
113
- return mod.default;
114
- }));
115
- case 26:
116
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-th" */'../i18n/th').then(function (mod) {
117
- return mod.default;
118
- }));
119
- case 27:
120
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-tr" */'../i18n/tr').then(function (mod) {
121
- return mod.default;
122
- }));
123
- case 28:
124
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-uk" */'../i18n/uk').then(function (mod) {
125
- return mod.default;
126
- }));
127
- case 29:
128
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-vi" */'../i18n/vi').then(function (mod) {
129
- return mod.default;
130
- }));
131
- case 30:
132
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-zh_TW" */'../i18n/zh_TW').then(function (mod) {
133
- return mod.default;
134
- }));
135
- case 31:
136
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-zh" */'../i18n/zh').then(function (mod) {
137
- return mod.default;
138
- }));
139
- case 32:
140
- fragments = locale.split(/[_-]/);
141
- if (!(fragments.length === 2)) {
142
- _context.next = 37;
143
- break;
144
- }
145
- return _context.abrupt("return", getMessagesForLocale(fragments[0]));
146
- case 37:
147
- return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en" */'../i18n/en').then(function (mod) {
148
- return mod.default;
149
- }));
150
- case 38:
151
- case "end":
152
- return _context.stop();
153
- }
143
+ }
144
+ return _context.abrupt("return", getMessagesForLocale(fragments[0]));
145
+ case 37:
146
+ return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en" */'../i18n/en').then(function (mod) {
147
+ return mod.default;
148
+ }));
149
+ case 38:
150
+ case "end":
151
+ return _context.stop();
154
152
  }
155
153
  }, _callee);
156
154
  }));
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.1.1",
3
+ "version": "10.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
2
  import { UserPickerProps, UserPickerState } from './types';
3
- export declare type UserPickerSession = {
3
+ export type UserPickerSession = {
4
4
  id: string;
5
5
  start: number;
6
6
  inputChangeTime: number;
@@ -4,7 +4,7 @@ export interface UserSourceContext {
4
4
  fetchUserSource?: LoadUserSource;
5
5
  }
6
6
  export declare const ExusUserSourceProvider: React.FC<UserSourceContext>;
7
- export declare const useUserSource: (accountId: string, shouldFetchSources: boolean, existingSources?: UserSource[] | undefined) => {
7
+ export declare const useUserSource: (accountId: string, shouldFetchSources: boolean, existingSources?: UserSource[]) => {
8
8
  sources: UserSource[];
9
9
  loading: boolean;
10
10
  error: string | null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type AddOptionAvatarProps = {
2
+ export type AddOptionAvatarProps = {
3
3
  label: string;
4
4
  isLozenge?: boolean;
5
5
  };
@@ -2,8 +2,8 @@
2
2
  import { ReactNode } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import { LozengeProps } from '../types';
5
- export declare const textWrapper: (color?: string | undefined) => import("@emotion/react").SerializedStyles;
6
- export declare type AvatarItemOptionProps = {
5
+ export declare const textWrapper: (color?: string) => import("@emotion/react").SerializedStyles;
6
+ export type AvatarItemOptionProps = {
7
7
  avatar: ReactNode;
8
8
  isDisabled?: boolean;
9
9
  lozenge?: ReactNode | LozengeProps;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { UserPickerProps, UserPickerState } from '../types';
3
- export declare type BaseUserPickerProps = UserPickerProps & {
3
+ export type BaseUserPickerProps = UserPickerProps & {
4
4
  SelectComponent: React.ComponentClass<any>;
5
5
  pickerProps?: any;
6
6
  styles: any;
@@ -1,7 +1,7 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import React from 'react';
3
3
  import { Custom } from '../../types';
4
- export declare type CustomOptionProps = {
4
+ export type CustomOptionProps = {
5
5
  data: Custom;
6
6
  isSelected: boolean;
7
7
  };
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import { Email } from '../../types';
5
5
  import { EmailValidationResponse } from '../emailValidation';
6
- export declare type EmailOptionProps = {
6
+ export type EmailOptionProps = {
7
7
  email: Email;
8
8
  isSelected: boolean;
9
9
  label?: string;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { ReactNode } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- export declare type ExternalAvatarItemOptionProps = {
4
+ export type ExternalAvatarItemOptionProps = {
5
5
  avatar: ReactNode;
6
6
  isDisabled?: boolean;
7
7
  primaryText: ReactNode;
@@ -4,7 +4,7 @@ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
4
  import { ExternalUser } from '../../types';
5
5
  export declare const imageContainer: import("@emotion/react").SerializedStyles;
6
6
  export declare const emailDomainWrapper: import("@emotion/react").SerializedStyles;
7
- export declare type ExternalUserOptionProps = WithAnalyticsEventsProps & {
7
+ export type ExternalUserOptionProps = WithAnalyticsEventsProps & {
8
8
  user: ExternalUser;
9
9
  status?: string;
10
10
  isSelected: boolean;
@@ -4,7 +4,7 @@ export interface ExternalUserSourcesData {
4
4
  sources: UserSource[];
5
5
  sourcesLoading: boolean;
6
6
  }
7
- declare type SourcesChildrenFunc = (sourcesData: ExternalUserSourcesData) => ReactNode;
7
+ type SourcesChildrenFunc = (sourcesData: ExternalUserSourcesData) => ReactNode;
8
8
  interface SourcesContainerProps {
9
9
  accountId: string;
10
10
  shouldFetchSources: boolean;
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import { Group } from '../../types';
5
5
  export declare const groupOptionIconWrapper: import("@emotion/react").SerializedStyles;
6
- export declare type GroupOptionProps = {
6
+ export type GroupOptionProps = {
7
7
  group: Group;
8
8
  isSelected: boolean;
9
9
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = {
2
+ export type Props = {
3
3
  selectProps?: {
4
4
  disableInput?: boolean;
5
5
  };
@@ -5,7 +5,7 @@ import { jsx } from '@emotion/react';
5
5
  import { Option, UserPickerProps } from '../types';
6
6
  import { MultiValueProps } from '@atlaskit/select';
7
7
  export declare const scrollToValue: (valueContainer: HTMLDivElement, control: HTMLElement) => void;
8
- declare type Props = MultiValueProps<OptionType> & {
8
+ type Props = MultiValueProps<OptionType> & {
9
9
  isFocused?: boolean;
10
10
  data: Option;
11
11
  innerProps: any;
@@ -1,14 +1,14 @@
1
1
  import { MultiValueProps } from '@atlaskit/select';
2
2
  import React from 'react';
3
3
  import { User, Option } from '../types';
4
- export declare type State = {
4
+ export type State = {
5
5
  valueSize: number;
6
6
  previousValueSize: number;
7
7
  };
8
- declare type Props = MultiValueProps<Option<User>[], true> & {
8
+ type Props = MultiValueProps<Option<User>[], true> & {
9
9
  innerProps?: ValueContainerInnerProps;
10
10
  };
11
- declare type ValueContainerInnerProps = {
11
+ type ValueContainerInnerProps = {
12
12
  ref: React.RefObject<HTMLDivElement>;
13
13
  };
14
14
  export declare class MultiValueContainer extends React.PureComponent<Props, State> {
@@ -1,7 +1,7 @@
1
1
  import { OptionProps as AkOptionProps } from '@atlaskit/select';
2
2
  import { FC } from 'react';
3
3
  import { Option as OptionType } from '../types';
4
- export declare type OptionProps = AkOptionProps & {
4
+ export type OptionProps = AkOptionProps & {
5
5
  data: OptionType;
6
6
  isSelected: boolean;
7
7
  isDisabled: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = {
2
+ export type Props = {
3
3
  selectProps: {
4
4
  disableInput?: boolean;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import { Option } from '../types';
3
3
  import { SingleValueProps } from '@atlaskit/select';
4
- export declare type Props = SingleValueProps<Option>;
4
+ export type Props = SingleValueProps<Option>;
5
5
  export declare const SingleValue: (props: Props) => jsx.JSX.Element | null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = {
2
+ export type Props = {
3
3
  appearance: string;
4
4
  src?: string;
5
5
  name?: string;
@@ -1,7 +1,7 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import React from 'react';
3
3
  import { Team } from '../../types';
4
- export declare type TeamOptionProps = {
4
+ export type TeamOptionProps = {
5
5
  team: Team;
6
6
  isSelected: boolean;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import React from 'react';
3
3
  import { User } from '../types';
4
- export declare type UserOptionProps = {
4
+ export type UserOptionProps = {
5
5
  user: User;
6
6
  status?: string;
7
7
  isSelected: boolean;
@@ -9,7 +9,7 @@ import { PopupControl } from './PopupControl';
9
9
  /**
10
10
  * Memoize getComponents to avoid rerenders.
11
11
  */
12
- export declare const getComponents: import("memoize-one").MemoizedFn<(multi?: boolean | undefined, anchor?: import("react").ComponentType<any> | undefined) => {
12
+ export declare const getComponents: import("memoize-one").MemoizedFn<(multi?: boolean, anchor?: React.ComponentType<any>) => {
13
13
  Control: import("react").ComponentType<any>;
14
14
  Option: import("react").FC<import("./Option").OptionProps>;
15
15
  MultiValue?: undefined;
@@ -1,10 +1,10 @@
1
1
  import { Option } from '../types';
2
2
  import { EmailValidator } from './emailValidation';
3
- export declare const getCreatableSuggestedEmailProps: import("memoize-one").MemoizedFn<(emailDomain: string, isValidEmail?: EmailValidator | undefined) => {
3
+ export declare const getCreatableSuggestedEmailProps: import("memoize-one").MemoizedFn<(emailDomain: string, isValidEmail?: EmailValidator) => {
4
4
  allowCreateWhileLoading: boolean;
5
5
  createOptionPosition: string;
6
- isValidNewOption: (inputValue?: string | undefined) => boolean | "" | undefined;
7
- getNewOptionData: (inputValue?: string | undefined) => {
6
+ isValidNewOption: (inputValue?: string) => boolean | "" | undefined;
7
+ getNewOptionData: (inputValue?: string) => {
8
8
  label: string;
9
9
  value: string;
10
10
  data: {
@@ -14,6 +14,6 @@ export declare const getCreatableSuggestedEmailProps: import("memoize-one").Memo
14
14
  suggestion: boolean;
15
15
  };
16
16
  } | null;
17
- formatCreateLabel: (inputText?: string | undefined) => string;
17
+ formatCreateLabel: (inputText?: string) => string;
18
18
  isOptionDisabled: (option: Option) => boolean;
19
19
  }>;
@@ -1,3 +1,3 @@
1
- export declare type EmailValidationResponse = 'INVALID' | 'POTENTIAL' | 'VALID';
2
- export declare type EmailValidator = (inputText: string) => EmailValidationResponse;
1
+ export type EmailValidationResponse = 'INVALID' | 'POTENTIAL' | 'VALID';
2
+ export type EmailValidator = (inputText: string) => EmailValidationResponse;
3
3
  export declare const isValidEmail: EmailValidator;
@@ -1,6 +1,6 @@
1
1
  import { Placement } from '@atlaskit/popper';
2
2
  import { Target, BoundariesElement, RootBoundary } from '../types';
3
- export declare const getPopupProps: import("memoize-one").MemoizedFn<(width: string | number, target: Target, onFlip: (data: any) => any, boundariesElement?: BoundariesElement | undefined, offset?: number[] | undefined, placement?: Placement | undefined, rootBoundary?: RootBoundary | undefined, shouldFlip?: boolean | undefined, popupTitle?: string | undefined) => {
3
+ export declare const getPopupProps: import("memoize-one").MemoizedFn<(width: string | number, target: Target, onFlip: (data: any) => any, boundariesElement?: BoundariesElement, offset?: number[], placement?: Placement, rootBoundary?: RootBoundary, shouldFlip?: boolean, popupTitle?: string) => {
4
4
  searchThreshold: number;
5
5
  controlShouldRenderValue: boolean;
6
6
  minMenuWidth: string | number;
@@ -2,7 +2,7 @@ import { StylesConfig } from '@atlaskit/select';
2
2
  export declare const BORDER_PADDING = 6;
3
3
  export declare const AVATAR_PADDING = 6;
4
4
  export declare const INDICATOR_WIDTH = 39;
5
- export declare const getStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean | undefined, isCompact?: boolean | undefined, overrideStyles?: StylesConfig<import("@atlaskit/select").OptionType, false> | undefined) => {
5
+ export declare const getStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean, isCompact?: boolean, overrideStyles?: StylesConfig) => {
6
6
  menu: (css: any, state: any) => any;
7
7
  control: (css: any, state: any) => any;
8
8
  clearIndicator: ({ paddingTop, paddingBottom, paddingLeft, paddingRight, ...css }: any) => any;
@@ -39,4 +39,4 @@ export declare const getStyles: import("memoize-one").MemoizedFn<(width: string
39
39
  singleValue?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("@atlaskit/select").SingleValueProps<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | undefined;
40
40
  valueContainer?: import("react-select/dist/declarations/src/styles").StylesConfigFunction<import("react-select").ValueContainerProps<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | undefined;
41
41
  }>;
42
- export declare const getPopupStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean | undefined, overrideStyles?: StylesConfig<import("@atlaskit/select").OptionType, false> | undefined) => StylesConfig<import("@atlaskit/select").OptionType, false>>;
42
+ export declare const getPopupStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean, overrideStyles?: StylesConfig) => StylesConfig<import("@atlaskit/select").OptionType, false>>;
@@ -21,7 +21,7 @@ export declare const optionToSelectableOptions: OptionToSelectableOptions;
21
21
  export declare const getAvatarSize: (appearance: string) => 'xsmall' | 'small' | 'medium';
22
22
  export declare const isChildInput: (child: ReactChild) => child is ReactElement<any, string | import("react").JSXElementConstructor<any>>;
23
23
  export declare const isSingleValue: (value?: AtlaskitSelectValue) => value is Option<OptionData>;
24
- export declare const hasValue: (value?: string | undefined) => value is string;
24
+ export declare const hasValue: (value?: string) => value is string;
25
25
  export declare const callCallback: <U extends any[], R>(callback: ((...U: U) => R) | undefined, ...args: U) => R | undefined;
26
26
  export declare const getAvatarUrl: (optionData: OptionData) => string | undefined;
27
27
  export declare const isPopupUserPickerByComponent: (SelectComponent: React.ComponentClass<any>) => boolean;
@@ -1,7 +1,14 @@
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
+ */
1
7
  declare const _default: {
2
8
  'fabric.elements.user-picker.email.add': string;
3
9
  'fabric.elements.user-picker.email.add.potential': string;
4
10
  'fabric.elements.user-picker.email.select.to.add': string;
11
+ 'fabric.elements.user-picker.error.message': string;
5
12
  'fabric.elements.user-picker.external.sourced.error': string;
6
13
  'fabric.elements.user-picker.external.sourced.from': string;
7
14
  'fabric.elements.user-picker.github.provider': string;
@@ -25,10 +32,4 @@ declare const _default: {
25
32
  'fabric.elements.user-picker.team.member.count': string;
26
33
  'fabric.elements.user-picker.team.member.count.including.you': string;
27
34
  };
28
- /**
29
- * NOTE:
30
- *
31
- * This file is automatically generated by Traduki 2.0.
32
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
33
- */
34
35
  export default _default;
@@ -1,7 +1,14 @@
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
+ */
1
7
  declare const _default: {
2
8
  'fabric.elements.user-picker.email.add': string;
3
9
  'fabric.elements.user-picker.email.add.potential': string;
4
10
  'fabric.elements.user-picker.email.select.to.add': string;
11
+ 'fabric.elements.user-picker.error.message': string;
5
12
  'fabric.elements.user-picker.external.sourced.error': string;
6
13
  'fabric.elements.user-picker.external.sourced.from': string;
7
14
  'fabric.elements.user-picker.github.provider': string;
@@ -25,10 +32,4 @@ declare const _default: {
25
32
  'fabric.elements.user-picker.team.member.count': string;
26
33
  'fabric.elements.user-picker.team.member.count.including.you': string;
27
34
  };
28
- /**
29
- * NOTE:
30
- *
31
- * This file is automatically generated by Traduki 2.0.
32
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
33
- */
34
35
  export default _default;