@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.
- package/CHANGELOG.md +16 -0
- package/analytics/package.json +2 -2
- package/dist/cjs/components/AvatarItemOption.js +2 -2
- package/dist/cjs/components/BaseUserPicker.js +4 -1
- package/dist/cjs/components/ClearIndicator.js +1 -1
- package/dist/cjs/components/CustomOption/index.js +1 -1
- package/dist/cjs/components/CustomOption/main.js +1 -1
- package/dist/cjs/components/EmailOption/index.js +1 -1
- package/dist/cjs/components/EmailOption/main.js +1 -1
- package/dist/cjs/components/ExternalUserOption/ExternalAvatarItemOption.js +1 -1
- package/dist/cjs/components/ExternalUserOption/index.js +1 -1
- package/dist/cjs/components/ExternalUserOption/main.js +1 -1
- package/dist/cjs/components/GroupOption/index.js +1 -1
- package/dist/cjs/components/GroupOption/main.js +1 -1
- package/dist/cjs/components/Input.js +2 -0
- package/dist/cjs/components/MultiValue.js +1 -1
- package/dist/cjs/components/PopupControl.js +1 -1
- package/dist/cjs/components/SingleValue.js +1 -0
- package/dist/cjs/components/SingleValueContainer.js +1 -1
- package/dist/cjs/components/TeamOption/index.js +1 -1
- package/dist/cjs/components/TeamOption/main.js +1 -1
- package/dist/cjs/components/UserOption.js +1 -1
- package/dist/cjs/i18n/cs.js +2 -0
- package/dist/cjs/i18n/da.js +2 -0
- package/dist/cjs/i18n/de.js +2 -0
- package/dist/cjs/i18n/en.js +2 -0
- package/dist/cjs/i18n/en_GB.js +2 -0
- package/dist/cjs/i18n/es.js +2 -0
- package/dist/cjs/i18n/fi.js +2 -0
- package/dist/cjs/i18n/fr.js +2 -0
- package/dist/cjs/i18n/hu.js +2 -0
- package/dist/cjs/i18n/it.js +2 -0
- package/dist/cjs/i18n/ja.js +2 -0
- package/dist/cjs/i18n/ko.js +2 -0
- package/dist/cjs/i18n/nb.js +2 -0
- package/dist/cjs/i18n/nl.js +2 -0
- package/dist/cjs/i18n/pl.js +2 -0
- package/dist/cjs/i18n/pt_BR.js +2 -0
- package/dist/cjs/i18n/ru.js +2 -0
- package/dist/cjs/i18n/sv.js +2 -0
- package/dist/cjs/i18n/th.js +2 -0
- package/dist/cjs/i18n/tr.js +2 -0
- package/dist/cjs/i18n/uk.js +2 -0
- package/dist/cjs/i18n/vi.js +2 -0
- package/dist/cjs/i18n/zh.js +2 -0
- package/dist/cjs/i18n/zh_TW.js +2 -0
- package/dist/cjs/types.js +5 -0
- package/dist/cjs/util/i18n-util.js +194 -196
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/BaseUserPicker.js +4 -0
- package/dist/es2019/components/Input.js +2 -0
- package/dist/es2019/i18n/cs.js +2 -0
- package/dist/es2019/i18n/da.js +2 -0
- package/dist/es2019/i18n/de.js +2 -0
- package/dist/es2019/i18n/en.js +2 -0
- package/dist/es2019/i18n/en_GB.js +2 -0
- package/dist/es2019/i18n/es.js +2 -0
- package/dist/es2019/i18n/fi.js +2 -0
- package/dist/es2019/i18n/fr.js +2 -0
- package/dist/es2019/i18n/hu.js +2 -0
- package/dist/es2019/i18n/it.js +2 -0
- package/dist/es2019/i18n/ja.js +2 -0
- package/dist/es2019/i18n/ko.js +2 -0
- package/dist/es2019/i18n/nb.js +2 -0
- package/dist/es2019/i18n/nl.js +2 -0
- package/dist/es2019/i18n/pl.js +2 -0
- package/dist/es2019/i18n/pt_BR.js +2 -0
- package/dist/es2019/i18n/ru.js +2 -0
- package/dist/es2019/i18n/sv.js +2 -0
- package/dist/es2019/i18n/th.js +2 -0
- package/dist/es2019/i18n/tr.js +2 -0
- package/dist/es2019/i18n/uk.js +2 -0
- package/dist/es2019/i18n/vi.js +2 -0
- package/dist/es2019/i18n/zh.js +2 -0
- package/dist/es2019/i18n/zh_TW.js +2 -0
- package/dist/es2019/types.js +6 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/BaseUserPicker.js +4 -1
- package/dist/esm/components/Input.js +2 -0
- package/dist/esm/i18n/cs.js +2 -0
- package/dist/esm/i18n/da.js +2 -0
- package/dist/esm/i18n/de.js +2 -0
- package/dist/esm/i18n/en.js +2 -0
- package/dist/esm/i18n/en_GB.js +2 -0
- package/dist/esm/i18n/es.js +2 -0
- package/dist/esm/i18n/fi.js +2 -0
- package/dist/esm/i18n/fr.js +2 -0
- package/dist/esm/i18n/hu.js +2 -0
- package/dist/esm/i18n/it.js +2 -0
- package/dist/esm/i18n/ja.js +2 -0
- package/dist/esm/i18n/ko.js +2 -0
- package/dist/esm/i18n/nb.js +2 -0
- package/dist/esm/i18n/nl.js +2 -0
- package/dist/esm/i18n/pl.js +2 -0
- package/dist/esm/i18n/pt_BR.js +2 -0
- package/dist/esm/i18n/ru.js +2 -0
- package/dist/esm/i18n/sv.js +2 -0
- package/dist/esm/i18n/th.js +2 -0
- package/dist/esm/i18n/tr.js +2 -0
- package/dist/esm/i18n/uk.js +2 -0
- package/dist/esm/i18n/vi.js +2 -0
- package/dist/esm/i18n/zh.js +2 -0
- package/dist/esm/i18n/zh_TW.js +2 -0
- package/dist/esm/types.js +6 -0
- package/dist/esm/util/i18n-util.js +134 -136
- package/dist/esm/version.json +1 -1
- package/dist/types/analytics.d.ts +1 -1
- package/dist/types/clients/UserSourceProvider.d.ts +1 -1
- package/dist/types/components/AddOptionAvatar.d.ts +1 -1
- package/dist/types/components/AvatarItemOption.d.ts +2 -2
- package/dist/types/components/BaseUserPicker.d.ts +1 -1
- package/dist/types/components/CustomOption/main.d.ts +1 -1
- package/dist/types/components/EmailOption/main.d.ts +1 -1
- package/dist/types/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +1 -1
- package/dist/types/components/ExternalUserOption/main.d.ts +1 -1
- package/dist/types/components/ExternalUserSourcesContainer.d.ts +1 -1
- package/dist/types/components/GroupOption/main.d.ts +1 -1
- package/dist/types/components/Input.d.ts +1 -1
- package/dist/types/components/MultiValue.d.ts +1 -1
- package/dist/types/components/MultiValueContainer.d.ts +3 -3
- package/dist/types/components/Option.d.ts +1 -1
- package/dist/types/components/PopupInput.d.ts +1 -1
- package/dist/types/components/SingleValue.d.ts +1 -1
- package/dist/types/components/SizeableAvatar.d.ts +1 -1
- package/dist/types/components/TeamOption/main.d.ts +1 -1
- package/dist/types/components/UserOption.d.ts +1 -1
- package/dist/types/components/components.d.ts +1 -1
- package/dist/types/components/creatableEmailSuggestion.d.ts +4 -4
- package/dist/types/components/emailValidation.d.ts +2 -2
- package/dist/types/components/popup.d.ts +1 -1
- package/dist/types/components/styles.d.ts +2 -2
- package/dist/types/components/utils.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +7 -6
- package/dist/types/i18n/da.d.ts +7 -6
- package/dist/types/i18n/de.d.ts +7 -6
- package/dist/types/i18n/en.d.ts +7 -6
- package/dist/types/i18n/en_GB.d.ts +7 -6
- package/dist/types/i18n/en_ZZ.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +7 -6
- package/dist/types/i18n/et.d.ts +6 -6
- package/dist/types/i18n/fi.d.ts +7 -6
- package/dist/types/i18n/fr.d.ts +7 -6
- package/dist/types/i18n/hu.d.ts +7 -6
- package/dist/types/i18n/it.d.ts +7 -6
- package/dist/types/i18n/ja.d.ts +7 -6
- package/dist/types/i18n/ko.d.ts +7 -6
- package/dist/types/i18n/nb.d.ts +7 -6
- package/dist/types/i18n/nl.d.ts +7 -6
- package/dist/types/i18n/pl.d.ts +7 -6
- package/dist/types/i18n/pt_BR.d.ts +7 -6
- package/dist/types/i18n/pt_PT.d.ts +6 -6
- package/dist/types/i18n/ru.d.ts +7 -6
- package/dist/types/i18n/sk.d.ts +6 -6
- package/dist/types/i18n/sv.d.ts +7 -6
- package/dist/types/i18n/th.d.ts +7 -6
- package/dist/types/i18n/tr.d.ts +7 -6
- package/dist/types/i18n/uk.d.ts +7 -6
- package/dist/types/i18n/vi.d.ts +7 -6
- package/dist/types/i18n/zh.d.ts +7 -6
- package/dist/types/i18n/zh_TW.d.ts +7 -6
- package/dist/types/types.d.ts +22 -22
- package/package.json +31 -23
- 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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
}));
|
package/dist/esm/version.json
CHANGED
|
@@ -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[]
|
|
7
|
+
export declare const useUserSource: (accountId: string, shouldFetchSources: boolean, existingSources?: UserSource[]) => {
|
|
8
8
|
sources: UserSource[];
|
|
9
9
|
loading: boolean;
|
|
10
10
|
error: string | null;
|
|
@@ -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
|
|
6
|
-
export
|
|
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
|
|
3
|
+
export type BaseUserPickerProps = UserPickerProps & {
|
|
4
4
|
SelectComponent: React.ComponentClass<any>;
|
|
5
5
|
pickerProps?: any;
|
|
6
6
|
styles: any;
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
6
|
+
export type GroupOptionProps = {
|
|
7
7
|
group: Group;
|
|
8
8
|
isSelected: boolean;
|
|
9
9
|
};
|
|
@@ -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
|
-
|
|
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
|
|
4
|
+
export type State = {
|
|
5
5
|
valueSize: number;
|
|
6
6
|
previousValueSize: number;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type Props = MultiValueProps<Option<User>[], true> & {
|
|
9
9
|
innerProps?: ValueContainerInnerProps;
|
|
10
10
|
};
|
|
11
|
-
|
|
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
|
|
4
|
+
export type OptionProps = AkOptionProps & {
|
|
5
5
|
data: OptionType;
|
|
6
6
|
isSelected: boolean;
|
|
7
7
|
isDisabled: boolean;
|
|
@@ -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
|
|
4
|
+
export type Props = SingleValueProps<Option>;
|
|
5
5
|
export declare const SingleValue: (props: Props) => jsx.JSX.Element | null;
|
|
@@ -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
|
|
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
|
|
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
|
|
7
|
-
getNewOptionData: (inputValue?: string
|
|
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
|
|
17
|
+
formatCreateLabel: (inputText?: string) => string;
|
|
18
18
|
isOptionDisabled: (option: Option) => boolean;
|
|
19
19
|
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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;
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -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;
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -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;
|