@atlaskit/user-picker 7.16.3 → 7.16.4
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 +6 -0
- package/dist/cjs/components/creatable.js +5 -2
- package/dist/cjs/i18n/en_ZZ.js +38 -0
- package/dist/cjs/i18n/index.js +58 -50
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/creatable.js +13 -8
- package/dist/es2019/i18n/en_ZZ.js +30 -0
- package/dist/es2019/i18n/index.js +10 -9
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/creatable.js +5 -2
- package/dist/esm/i18n/en_ZZ.js +30 -0
- package/dist/esm/i18n/index.js +10 -9
- package/dist/esm/version.json +1 -1
- package/dist/types/components/components.d.ts +4 -4
- package/dist/types/components/creatable.d.ts +5 -3
- package/dist/types/components/creatableEmailSuggestion.d.ts +2 -2
- package/dist/types/components/popup.d.ts +2 -2
- package/dist/types/components/styles.d.ts +3 -3
- package/dist/types/components/utils.d.ts +1 -1
- package/dist/types/i18n/en_ZZ.d.ts +30 -0
- package/dist/types/i18n/index.d.ts +10 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -55,7 +55,7 @@ var isOptionDisabled = function isOptionDisabled() {
|
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
function creatableProps(isValidEmail) {
|
|
59
59
|
return {
|
|
60
60
|
allowCreateWhileLoading: true,
|
|
61
61
|
createOptionPosition: 'first',
|
|
@@ -64,5 +64,8 @@ var getCreatableProps = (0, _memoizeOne.default)(function (isValidEmail) {
|
|
|
64
64
|
formatCreateLabel: formatCreateLabel,
|
|
65
65
|
isOptionDisabled: isOptionDisabled(isValidEmail)
|
|
66
66
|
};
|
|
67
|
-
}
|
|
67
|
+
} // ignoring the 'clear' memoizeOne function object property
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
var getCreatableProps = (0, _memoizeOne.default)(creatableProps);
|
|
68
71
|
exports.getCreatableProps = getCreatableProps;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* NOTE:
|
|
10
|
+
*
|
|
11
|
+
* This file is automatically generated by i18n-tools.
|
|
12
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
|
+
*/
|
|
14
|
+
// English (Instrumented)
|
|
15
|
+
var _default = {
|
|
16
|
+
'fabric.elements.user-picker.email.add': 'Add user',
|
|
17
|
+
'fabric.elements.user-picker.email.add.potential': 'Enter an email address',
|
|
18
|
+
'fabric.elements.user-picker.email.select.to.add': 'Select an email address',
|
|
19
|
+
'fabric.elements.user-picker.external.sourced.from': 'Found in:',
|
|
20
|
+
'fabric.elements.user-picker.github.provider': 'GitHub',
|
|
21
|
+
'fabric.elements.user-picker.google.provider': 'Google',
|
|
22
|
+
'fabric.elements.user-picker.group.byline': 'Admin-managed group',
|
|
23
|
+
'fabric.elements.user-picker.guest.lozenge.text': 'GUEST',
|
|
24
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.group': 'Guest groups can only access certain spaces and have limited access to user info.',
|
|
25
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.user': 'Guests can only access certain spaces and have limited access to user info.',
|
|
26
|
+
'fabric.elements.user-picker.member.lozenge.text': 'MEMBER',
|
|
27
|
+
'fabric.elements.user-picker.microsoft.provider': 'Microsoft',
|
|
28
|
+
'fabric.elements.user-picker.multi.remove-item': 'Remove',
|
|
29
|
+
'fabric.elements.user-picker.placeholder': 'Enter people or teams...',
|
|
30
|
+
'fabric.elements.user-picker.placeholder.add-more': 'add more people...',
|
|
31
|
+
'fabric.elements.user-picker.single.clear': 'Clear',
|
|
32
|
+
'fabric.elements.user-picker.slack.provider': 'Slack',
|
|
33
|
+
'fabric.elements.user-picker.team.member.50plus': 'Team • 50+ members',
|
|
34
|
+
'fabric.elements.user-picker.team.member.50plus.including.you': 'Team • 50+ members, including you',
|
|
35
|
+
'fabric.elements.user-picker.team.member.count': '{count, plural, one {Team • {count} member} other {Team • {count} members}}',
|
|
36
|
+
'fabric.elements.user-picker.team.member.count.including.you': '{count, plural, one {Team • {count} member, including you} other {Team • {count} members, including you}}'
|
|
37
|
+
};
|
|
38
|
+
exports.default = _default;
|
package/dist/cjs/i18n/index.js
CHANGED
|
@@ -5,16 +5,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
Object.defineProperty(exports, "
|
|
8
|
+
Object.defineProperty(exports, "en_ZZ", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function get() {
|
|
11
|
-
return
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "zh_TW", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _zh_TW.default;
|
|
11
|
+
return _en_ZZ.default;
|
|
18
12
|
}
|
|
19
13
|
});
|
|
20
14
|
Object.defineProperty(exports, "cs", {
|
|
@@ -29,10 +23,28 @@ Object.defineProperty(exports, "da", {
|
|
|
29
23
|
return _da.default;
|
|
30
24
|
}
|
|
31
25
|
});
|
|
32
|
-
Object.defineProperty(exports, "
|
|
26
|
+
Object.defineProperty(exports, "de", {
|
|
33
27
|
enumerable: true,
|
|
34
28
|
get: function get() {
|
|
35
|
-
return
|
|
29
|
+
return _de.default;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "en", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _en.default;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "en_GB", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function get() {
|
|
41
|
+
return _en_GB.default;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "es", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function get() {
|
|
47
|
+
return _es.default;
|
|
36
48
|
}
|
|
37
49
|
});
|
|
38
50
|
Object.defineProperty(exports, "et", {
|
|
@@ -53,16 +65,16 @@ Object.defineProperty(exports, "fr", {
|
|
|
53
65
|
return _fr.default;
|
|
54
66
|
}
|
|
55
67
|
});
|
|
56
|
-
Object.defineProperty(exports, "
|
|
68
|
+
Object.defineProperty(exports, "hu", {
|
|
57
69
|
enumerable: true,
|
|
58
70
|
get: function get() {
|
|
59
|
-
return
|
|
71
|
+
return _hu.default;
|
|
60
72
|
}
|
|
61
73
|
});
|
|
62
|
-
Object.defineProperty(exports, "
|
|
74
|
+
Object.defineProperty(exports, "is", {
|
|
63
75
|
enumerable: true,
|
|
64
76
|
get: function get() {
|
|
65
|
-
return
|
|
77
|
+
return _is.default;
|
|
66
78
|
}
|
|
67
79
|
});
|
|
68
80
|
Object.defineProperty(exports, "it", {
|
|
@@ -89,6 +101,12 @@ Object.defineProperty(exports, "nb", {
|
|
|
89
101
|
return _nb.default;
|
|
90
102
|
}
|
|
91
103
|
});
|
|
104
|
+
Object.defineProperty(exports, "nl", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function get() {
|
|
107
|
+
return _nl.default;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
92
110
|
Object.defineProperty(exports, "pl", {
|
|
93
111
|
enumerable: true,
|
|
94
112
|
get: function get() {
|
|
@@ -107,22 +125,22 @@ Object.defineProperty(exports, "pt_PT", {
|
|
|
107
125
|
return _pt_PT.default;
|
|
108
126
|
}
|
|
109
127
|
});
|
|
110
|
-
Object.defineProperty(exports, "
|
|
128
|
+
Object.defineProperty(exports, "ro", {
|
|
111
129
|
enumerable: true,
|
|
112
130
|
get: function get() {
|
|
113
|
-
return
|
|
131
|
+
return _ro.default;
|
|
114
132
|
}
|
|
115
133
|
});
|
|
116
|
-
Object.defineProperty(exports, "
|
|
134
|
+
Object.defineProperty(exports, "ru", {
|
|
117
135
|
enumerable: true,
|
|
118
136
|
get: function get() {
|
|
119
|
-
return
|
|
137
|
+
return _ru.default;
|
|
120
138
|
}
|
|
121
139
|
});
|
|
122
|
-
Object.defineProperty(exports, "
|
|
140
|
+
Object.defineProperty(exports, "sk", {
|
|
123
141
|
enumerable: true,
|
|
124
142
|
get: function get() {
|
|
125
|
-
return
|
|
143
|
+
return _sk.default;
|
|
126
144
|
}
|
|
127
145
|
});
|
|
128
146
|
Object.defineProperty(exports, "sv", {
|
|
@@ -155,40 +173,32 @@ Object.defineProperty(exports, "vi", {
|
|
|
155
173
|
return _vi.default;
|
|
156
174
|
}
|
|
157
175
|
});
|
|
158
|
-
Object.defineProperty(exports, "
|
|
159
|
-
enumerable: true,
|
|
160
|
-
get: function get() {
|
|
161
|
-
return _en.default;
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
Object.defineProperty(exports, "en_GB", {
|
|
165
|
-
enumerable: true,
|
|
166
|
-
get: function get() {
|
|
167
|
-
return _en_GB.default;
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
Object.defineProperty(exports, "is", {
|
|
176
|
+
Object.defineProperty(exports, "zh", {
|
|
171
177
|
enumerable: true,
|
|
172
178
|
get: function get() {
|
|
173
|
-
return
|
|
179
|
+
return _zh.default;
|
|
174
180
|
}
|
|
175
181
|
});
|
|
176
|
-
Object.defineProperty(exports, "
|
|
182
|
+
Object.defineProperty(exports, "zh_TW", {
|
|
177
183
|
enumerable: true,
|
|
178
184
|
get: function get() {
|
|
179
|
-
return
|
|
185
|
+
return _zh_TW.default;
|
|
180
186
|
}
|
|
181
187
|
});
|
|
182
188
|
|
|
183
|
-
var
|
|
184
|
-
|
|
185
|
-
var _zh_TW = _interopRequireDefault(require("./zh_TW"));
|
|
189
|
+
var _en_ZZ = _interopRequireDefault(require("./en_ZZ"));
|
|
186
190
|
|
|
187
191
|
var _cs = _interopRequireDefault(require("./cs"));
|
|
188
192
|
|
|
189
193
|
var _da = _interopRequireDefault(require("./da"));
|
|
190
194
|
|
|
191
|
-
var
|
|
195
|
+
var _de = _interopRequireDefault(require("./de"));
|
|
196
|
+
|
|
197
|
+
var _en = _interopRequireDefault(require("./en"));
|
|
198
|
+
|
|
199
|
+
var _en_GB = _interopRequireDefault(require("./en_GB"));
|
|
200
|
+
|
|
201
|
+
var _es = _interopRequireDefault(require("./es"));
|
|
192
202
|
|
|
193
203
|
var _et = _interopRequireDefault(require("./et"));
|
|
194
204
|
|
|
@@ -196,10 +206,10 @@ var _fi = _interopRequireDefault(require("./fi"));
|
|
|
196
206
|
|
|
197
207
|
var _fr = _interopRequireDefault(require("./fr"));
|
|
198
208
|
|
|
199
|
-
var _de = _interopRequireDefault(require("./de"));
|
|
200
|
-
|
|
201
209
|
var _hu = _interopRequireDefault(require("./hu"));
|
|
202
210
|
|
|
211
|
+
var _is = _interopRequireDefault(require("./is"));
|
|
212
|
+
|
|
203
213
|
var _it = _interopRequireDefault(require("./it"));
|
|
204
214
|
|
|
205
215
|
var _ja = _interopRequireDefault(require("./ja"));
|
|
@@ -208,18 +218,20 @@ var _ko = _interopRequireDefault(require("./ko"));
|
|
|
208
218
|
|
|
209
219
|
var _nb = _interopRequireDefault(require("./nb"));
|
|
210
220
|
|
|
221
|
+
var _nl = _interopRequireDefault(require("./nl"));
|
|
222
|
+
|
|
211
223
|
var _pl = _interopRequireDefault(require("./pl"));
|
|
212
224
|
|
|
213
225
|
var _pt_BR = _interopRequireDefault(require("./pt_BR"));
|
|
214
226
|
|
|
215
227
|
var _pt_PT = _interopRequireDefault(require("./pt_PT"));
|
|
216
228
|
|
|
229
|
+
var _ro = _interopRequireDefault(require("./ro"));
|
|
230
|
+
|
|
217
231
|
var _ru = _interopRequireDefault(require("./ru"));
|
|
218
232
|
|
|
219
233
|
var _sk = _interopRequireDefault(require("./sk"));
|
|
220
234
|
|
|
221
|
-
var _es = _interopRequireDefault(require("./es"));
|
|
222
|
-
|
|
223
235
|
var _sv = _interopRequireDefault(require("./sv"));
|
|
224
236
|
|
|
225
237
|
var _th = _interopRequireDefault(require("./th"));
|
|
@@ -230,10 +242,6 @@ var _uk = _interopRequireDefault(require("./uk"));
|
|
|
230
242
|
|
|
231
243
|
var _vi = _interopRequireDefault(require("./vi"));
|
|
232
244
|
|
|
233
|
-
var
|
|
234
|
-
|
|
235
|
-
var _en_GB = _interopRequireDefault(require("./en_GB"));
|
|
236
|
-
|
|
237
|
-
var _is = _interopRequireDefault(require("./is"));
|
|
245
|
+
var _zh = _interopRequireDefault(require("./zh"));
|
|
238
246
|
|
|
239
|
-
var
|
|
247
|
+
var _zh_TW = _interopRequireDefault(require("./zh_TW"));
|
package/dist/cjs/version.json
CHANGED
|
@@ -32,11 +32,16 @@ const isOptionDisabled = (isValidEmail = defaultIsValidEmail) => option => {
|
|
|
32
32
|
return false;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
function creatableProps(isValidEmail) {
|
|
36
|
+
return {
|
|
37
|
+
allowCreateWhileLoading: true,
|
|
38
|
+
createOptionPosition: 'first',
|
|
39
|
+
isValidNewOption: isValidNewOption(isValidEmail),
|
|
40
|
+
getNewOptionData,
|
|
41
|
+
formatCreateLabel,
|
|
42
|
+
isOptionDisabled: isOptionDisabled(isValidEmail)
|
|
43
|
+
};
|
|
44
|
+
} // ignoring the 'clear' memoizeOne function object property
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
export const getCreatableProps = memoizeOne(creatableProps);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by i18n-tools.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
// English (Instrumented)
|
|
8
|
+
export default {
|
|
9
|
+
'fabric.elements.user-picker.email.add': 'Add user',
|
|
10
|
+
'fabric.elements.user-picker.email.add.potential': 'Enter an email address',
|
|
11
|
+
'fabric.elements.user-picker.email.select.to.add': 'Select an email address',
|
|
12
|
+
'fabric.elements.user-picker.external.sourced.from': 'Found in:',
|
|
13
|
+
'fabric.elements.user-picker.github.provider': 'GitHub',
|
|
14
|
+
'fabric.elements.user-picker.google.provider': 'Google',
|
|
15
|
+
'fabric.elements.user-picker.group.byline': 'Admin-managed group',
|
|
16
|
+
'fabric.elements.user-picker.guest.lozenge.text': 'GUEST',
|
|
17
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.group': 'Guest groups can only access certain spaces and have limited access to user info.',
|
|
18
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.user': 'Guests can only access certain spaces and have limited access to user info.',
|
|
19
|
+
'fabric.elements.user-picker.member.lozenge.text': 'MEMBER',
|
|
20
|
+
'fabric.elements.user-picker.microsoft.provider': 'Microsoft',
|
|
21
|
+
'fabric.elements.user-picker.multi.remove-item': 'Remove',
|
|
22
|
+
'fabric.elements.user-picker.placeholder': 'Enter people or teams...',
|
|
23
|
+
'fabric.elements.user-picker.placeholder.add-more': 'add more people...',
|
|
24
|
+
'fabric.elements.user-picker.single.clear': 'Clear',
|
|
25
|
+
'fabric.elements.user-picker.slack.provider': 'Slack',
|
|
26
|
+
'fabric.elements.user-picker.team.member.50plus': 'Team • 50+ members',
|
|
27
|
+
'fabric.elements.user-picker.team.member.50plus.including.you': 'Team • 50+ members, including you',
|
|
28
|
+
'fabric.elements.user-picker.team.member.count': '{count, plural, one {Team • {count} member} other {Team • {count} members}}',
|
|
29
|
+
'fabric.elements.user-picker.team.member.count.including.you': '{count, plural, one {Team • {count} member, including you} other {Team • {count} members, including you}}'
|
|
30
|
+
};
|
|
@@ -4,32 +4,33 @@
|
|
|
4
4
|
* This file is automatically generated by i18n-tools.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as zh_TW } from './zh_TW';
|
|
7
|
+
export { default as en_ZZ } from './en_ZZ';
|
|
9
8
|
export { default as cs } from './cs';
|
|
10
9
|
export { default as da } from './da';
|
|
11
|
-
export { default as
|
|
10
|
+
export { default as de } from './de';
|
|
11
|
+
export { default as en } from './en';
|
|
12
|
+
export { default as en_GB } from './en_GB';
|
|
13
|
+
export { default as es } from './es';
|
|
12
14
|
export { default as et } from './et';
|
|
13
15
|
export { default as fi } from './fi';
|
|
14
16
|
export { default as fr } from './fr';
|
|
15
|
-
export { default as de } from './de';
|
|
16
17
|
export { default as hu } from './hu';
|
|
18
|
+
export { default as is } from './is';
|
|
17
19
|
export { default as it } from './it';
|
|
18
20
|
export { default as ja } from './ja';
|
|
19
21
|
export { default as ko } from './ko';
|
|
20
22
|
export { default as nb } from './nb';
|
|
23
|
+
export { default as nl } from './nl';
|
|
21
24
|
export { default as pl } from './pl';
|
|
22
25
|
export { default as pt_BR } from './pt_BR';
|
|
23
26
|
export { default as pt_PT } from './pt_PT';
|
|
27
|
+
export { default as ro } from './ro';
|
|
24
28
|
export { default as ru } from './ru';
|
|
25
29
|
export { default as sk } from './sk';
|
|
26
|
-
export { default as es } from './es';
|
|
27
30
|
export { default as sv } from './sv';
|
|
28
31
|
export { default as th } from './th';
|
|
29
32
|
export { default as tr } from './tr';
|
|
30
33
|
export { default as uk } from './uk';
|
|
31
34
|
export { default as vi } from './vi';
|
|
32
|
-
export { default as
|
|
33
|
-
export { default as
|
|
34
|
-
export { default as is } from './is';
|
|
35
|
-
export { default as ro } from './ro';
|
|
35
|
+
export { default as zh } from './zh';
|
|
36
|
+
export { default as zh_TW } from './zh_TW';
|
package/dist/es2019/version.json
CHANGED
|
@@ -42,7 +42,7 @@ var isOptionDisabled = function isOptionDisabled() {
|
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
function creatableProps(isValidEmail) {
|
|
46
46
|
return {
|
|
47
47
|
allowCreateWhileLoading: true,
|
|
48
48
|
createOptionPosition: 'first',
|
|
@@ -51,4 +51,7 @@ export var getCreatableProps = memoizeOne(function (isValidEmail) {
|
|
|
51
51
|
formatCreateLabel: formatCreateLabel,
|
|
52
52
|
isOptionDisabled: isOptionDisabled(isValidEmail)
|
|
53
53
|
};
|
|
54
|
-
}
|
|
54
|
+
} // ignoring the 'clear' memoizeOne function object property
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
export var getCreatableProps = memoizeOne(creatableProps);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by i18n-tools.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
// English (Instrumented)
|
|
8
|
+
export default {
|
|
9
|
+
'fabric.elements.user-picker.email.add': 'Add user',
|
|
10
|
+
'fabric.elements.user-picker.email.add.potential': 'Enter an email address',
|
|
11
|
+
'fabric.elements.user-picker.email.select.to.add': 'Select an email address',
|
|
12
|
+
'fabric.elements.user-picker.external.sourced.from': 'Found in:',
|
|
13
|
+
'fabric.elements.user-picker.github.provider': 'GitHub',
|
|
14
|
+
'fabric.elements.user-picker.google.provider': 'Google',
|
|
15
|
+
'fabric.elements.user-picker.group.byline': 'Admin-managed group',
|
|
16
|
+
'fabric.elements.user-picker.guest.lozenge.text': 'GUEST',
|
|
17
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.group': 'Guest groups can only access certain spaces and have limited access to user info.',
|
|
18
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.user': 'Guests can only access certain spaces and have limited access to user info.',
|
|
19
|
+
'fabric.elements.user-picker.member.lozenge.text': 'MEMBER',
|
|
20
|
+
'fabric.elements.user-picker.microsoft.provider': 'Microsoft',
|
|
21
|
+
'fabric.elements.user-picker.multi.remove-item': 'Remove',
|
|
22
|
+
'fabric.elements.user-picker.placeholder': 'Enter people or teams...',
|
|
23
|
+
'fabric.elements.user-picker.placeholder.add-more': 'add more people...',
|
|
24
|
+
'fabric.elements.user-picker.single.clear': 'Clear',
|
|
25
|
+
'fabric.elements.user-picker.slack.provider': 'Slack',
|
|
26
|
+
'fabric.elements.user-picker.team.member.50plus': 'Team • 50+ members',
|
|
27
|
+
'fabric.elements.user-picker.team.member.50plus.including.you': 'Team • 50+ members, including you',
|
|
28
|
+
'fabric.elements.user-picker.team.member.count': '{count, plural, one {Team • {count} member} other {Team • {count} members}}',
|
|
29
|
+
'fabric.elements.user-picker.team.member.count.including.you': '{count, plural, one {Team • {count} member, including you} other {Team • {count} members, including you}}'
|
|
30
|
+
};
|
package/dist/esm/i18n/index.js
CHANGED
|
@@ -4,32 +4,33 @@
|
|
|
4
4
|
* This file is automatically generated by i18n-tools.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as zh_TW } from './zh_TW';
|
|
7
|
+
export { default as en_ZZ } from './en_ZZ';
|
|
9
8
|
export { default as cs } from './cs';
|
|
10
9
|
export { default as da } from './da';
|
|
11
|
-
export { default as
|
|
10
|
+
export { default as de } from './de';
|
|
11
|
+
export { default as en } from './en';
|
|
12
|
+
export { default as en_GB } from './en_GB';
|
|
13
|
+
export { default as es } from './es';
|
|
12
14
|
export { default as et } from './et';
|
|
13
15
|
export { default as fi } from './fi';
|
|
14
16
|
export { default as fr } from './fr';
|
|
15
|
-
export { default as de } from './de';
|
|
16
17
|
export { default as hu } from './hu';
|
|
18
|
+
export { default as is } from './is';
|
|
17
19
|
export { default as it } from './it';
|
|
18
20
|
export { default as ja } from './ja';
|
|
19
21
|
export { default as ko } from './ko';
|
|
20
22
|
export { default as nb } from './nb';
|
|
23
|
+
export { default as nl } from './nl';
|
|
21
24
|
export { default as pl } from './pl';
|
|
22
25
|
export { default as pt_BR } from './pt_BR';
|
|
23
26
|
export { default as pt_PT } from './pt_PT';
|
|
27
|
+
export { default as ro } from './ro';
|
|
24
28
|
export { default as ru } from './ru';
|
|
25
29
|
export { default as sk } from './sk';
|
|
26
|
-
export { default as es } from './es';
|
|
27
30
|
export { default as sv } from './sv';
|
|
28
31
|
export { default as th } from './th';
|
|
29
32
|
export { default as tr } from './tr';
|
|
30
33
|
export { default as uk } from './uk';
|
|
31
34
|
export { default as vi } from './vi';
|
|
32
|
-
export { default as
|
|
33
|
-
export { default as
|
|
34
|
-
export { default as is } from './is';
|
|
35
|
-
export { default as ro } from './ro';
|
|
35
|
+
export { default as zh } from './zh';
|
|
36
|
+
export { default as zh_TW } from './zh_TW';
|
package/dist/esm/version.json
CHANGED
|
@@ -9,7 +9,7 @@ import { PopupControl } from './PopupControl';
|
|
|
9
9
|
/**
|
|
10
10
|
* Memoize getComponents to avoid rerenders.
|
|
11
11
|
*/
|
|
12
|
-
export declare const getComponents: (multi?: boolean | undefined, anchor?: import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined) => {
|
|
12
|
+
export declare const getComponents: import("memoize-one").MemoizedFn<(multi?: boolean | undefined, anchor?: import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined) => {
|
|
13
13
|
Control: import("react").ComponentType<any>;
|
|
14
14
|
Option: import("react").FC<import("./Option").OptionProps>;
|
|
15
15
|
MultiValue?: undefined;
|
|
@@ -30,8 +30,8 @@ export declare const getComponents: (multi?: boolean | undefined, anchor?: impor
|
|
|
30
30
|
ValueContainer: typeof MultiValueContainer | typeof SingleValueContainer;
|
|
31
31
|
Input: typeof Input;
|
|
32
32
|
Control?: undefined;
|
|
33
|
-
}
|
|
34
|
-
export declare const getPopupComponents: (hasPopupTitle: boolean) => {
|
|
33
|
+
}>;
|
|
34
|
+
export declare const getPopupComponents: import("memoize-one").MemoizedFn<(hasPopupTitle: boolean) => {
|
|
35
35
|
DropdownIndicator: null;
|
|
36
36
|
SingleValue: (props: {
|
|
37
37
|
data: import("..").Option<import("..").OptionData>;
|
|
@@ -52,4 +52,4 @@ export declare const getPopupComponents: (hasPopupTitle: boolean) => {
|
|
|
52
52
|
Option: import("react").FC<import("./Option").OptionProps>;
|
|
53
53
|
ValueContainer: typeof SingleValueContainer;
|
|
54
54
|
Input: typeof PopupInput;
|
|
55
|
-
}
|
|
55
|
+
}>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Option } from '../types';
|
|
2
2
|
import { EmailValidator } from './emailValidation';
|
|
3
|
-
|
|
3
|
+
declare function creatableProps(isValidEmail?: EmailValidator): {
|
|
4
4
|
allowCreateWhileLoading: boolean;
|
|
5
5
|
createOptionPosition: string;
|
|
6
6
|
isValidNewOption: (inputValue?: string | undefined) => boolean | "" | undefined;
|
|
7
|
-
getNewOptionData: (inputValue: string) => Option
|
|
7
|
+
getNewOptionData: (inputValue: string) => Option<import("../types").OptionData>;
|
|
8
8
|
formatCreateLabel: (inputText?: string | undefined) => string;
|
|
9
|
-
isOptionDisabled: (option: Option) => boolean;
|
|
9
|
+
isOptionDisabled: (option: Option<import("../types").OptionData>) => boolean;
|
|
10
10
|
};
|
|
11
|
+
export declare const getCreatableProps: typeof creatableProps;
|
|
12
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Option } from '../types';
|
|
2
2
|
import { EmailValidator } from './emailValidation';
|
|
3
|
-
export declare const getCreatableSuggestedEmailProps: (emailDomain: string, isValidEmail?: EmailValidator | undefined) => {
|
|
3
|
+
export declare const getCreatableSuggestedEmailProps: import("memoize-one").MemoizedFn<(emailDomain: string, isValidEmail?: EmailValidator | undefined) => {
|
|
4
4
|
allowCreateWhileLoading: boolean;
|
|
5
5
|
createOptionPosition: string;
|
|
6
6
|
isValidNewOption: (inputValue?: string | undefined) => boolean | "" | undefined;
|
|
@@ -16,4 +16,4 @@ export declare const getCreatableSuggestedEmailProps: (emailDomain: string, isVa
|
|
|
16
16
|
} | null;
|
|
17
17
|
formatCreateLabel: (inputText?: string | undefined) => string;
|
|
18
18
|
isOptionDisabled: (option: Option) => boolean;
|
|
19
|
-
}
|
|
19
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Placement } from '@atlaskit/popper';
|
|
2
2
|
import { Target } from '../types';
|
|
3
|
-
export declare const getPopupProps: (width: string | number, target: Target, onFlip: (data: any) => any, boundariesElement?: HTMLElement | "scrollParent" | "window" | "viewport" | undefined, offset?: number[] | undefined, placement?: "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | undefined, rootBoundary?: "viewport" | "document" | 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?: HTMLElement | "scrollParent" | "window" | "viewport" | undefined, offset?: number[] | undefined, placement?: "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | undefined, rootBoundary?: "viewport" | "document" | undefined, shouldFlip?: boolean | undefined, popupTitle?: string | undefined) => {
|
|
4
4
|
searchThreshold: number;
|
|
5
5
|
controlShouldRenderValue: boolean;
|
|
6
6
|
minMenuWidth: string | number;
|
|
@@ -45,4 +45,4 @@ export declare const getPopupProps: (width: string | number, target: Target, onF
|
|
|
45
45
|
fn?: undefined;
|
|
46
46
|
})[];
|
|
47
47
|
};
|
|
48
|
-
}
|
|
48
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const BORDER_PADDING = 6;
|
|
2
2
|
export declare const AVATAR_PADDING = 6;
|
|
3
3
|
export declare const INDICATOR_WIDTH = 39;
|
|
4
|
-
export declare const getStyles: (width: string | number, isMulti?: boolean | undefined, overrideStyles?: Partial<import("react-select").Styles<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | undefined) => Partial<import("react-select").Styles<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | {
|
|
4
|
+
export declare const getStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean | undefined, overrideStyles?: Partial<import("react-select").Styles<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | undefined) => Partial<import("react-select").Styles<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | {
|
|
5
5
|
menu: (css: any, state: any) => any;
|
|
6
6
|
control: (css: any, state: any) => any;
|
|
7
7
|
clearIndicator: ({ paddingTop, paddingBottom, paddingLeft, paddingRight, ...css }: any) => any;
|
|
@@ -13,5 +13,5 @@ export declare const getStyles: (width: string | number, isMulti?: boolean | und
|
|
|
13
13
|
placeholder: (css: any, state: any) => any;
|
|
14
14
|
option: (css: any) => any;
|
|
15
15
|
input: ({ margin, ...css }: any) => any;
|
|
16
|
-
}
|
|
17
|
-
export declare const getPopupStyles: (width: string | number, flip?: boolean | undefined, isMulti?: boolean | undefined) => Partial<import("react-select").Styles<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType
|
|
16
|
+
}>;
|
|
17
|
+
export declare const getPopupStyles: import("memoize-one").MemoizedFn<(width: string | number, flip?: boolean | undefined, isMulti?: boolean | undefined) => Partial<import("react-select").Styles<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>>>;
|
|
@@ -8,7 +8,7 @@ export declare const isEmail: (option: OptionData) => option is Email;
|
|
|
8
8
|
export declare const optionToSelectableOption: (option: OptionData | OptionIdentifier) => Option;
|
|
9
9
|
export declare const extractOptionValue: (value: AtlaskitSelectValue) => OptionData | OptionData[] | undefined;
|
|
10
10
|
export declare const isIterable: (a: any) => a is Iterable<Promisable<OptionData | OptionData[]>>;
|
|
11
|
-
export declare const getOptions: (options: OptionData[]) => Option<OptionData>[]
|
|
11
|
+
export declare const getOptions: import("memoize-one").MemoizedFn<(options: OptionData[]) => Option<OptionData>[]>;
|
|
12
12
|
export interface OptionToSelectableOptions {
|
|
13
13
|
(defaultValue: OptionData): Option;
|
|
14
14
|
(defaultValue: OptionData[]): Option[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'fabric.elements.user-picker.email.add': string;
|
|
3
|
+
'fabric.elements.user-picker.email.add.potential': string;
|
|
4
|
+
'fabric.elements.user-picker.email.select.to.add': string;
|
|
5
|
+
'fabric.elements.user-picker.external.sourced.from': string;
|
|
6
|
+
'fabric.elements.user-picker.github.provider': string;
|
|
7
|
+
'fabric.elements.user-picker.google.provider': string;
|
|
8
|
+
'fabric.elements.user-picker.group.byline': string;
|
|
9
|
+
'fabric.elements.user-picker.guest.lozenge.text': string;
|
|
10
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
|
|
11
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
|
|
12
|
+
'fabric.elements.user-picker.member.lozenge.text': string;
|
|
13
|
+
'fabric.elements.user-picker.microsoft.provider': string;
|
|
14
|
+
'fabric.elements.user-picker.multi.remove-item': string;
|
|
15
|
+
'fabric.elements.user-picker.placeholder': string;
|
|
16
|
+
'fabric.elements.user-picker.placeholder.add-more': string;
|
|
17
|
+
'fabric.elements.user-picker.single.clear': string;
|
|
18
|
+
'fabric.elements.user-picker.slack.provider': string;
|
|
19
|
+
'fabric.elements.user-picker.team.member.50plus': string;
|
|
20
|
+
'fabric.elements.user-picker.team.member.50plus.including.you': string;
|
|
21
|
+
'fabric.elements.user-picker.team.member.count': string;
|
|
22
|
+
'fabric.elements.user-picker.team.member.count.including.you': string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* NOTE:
|
|
26
|
+
*
|
|
27
|
+
* This file is automatically generated by i18n-tools.
|
|
28
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
29
|
+
*/
|
|
30
|
+
export default _default;
|
|
@@ -4,32 +4,33 @@
|
|
|
4
4
|
* This file is automatically generated by i18n-tools.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as zh_TW } from './zh_TW';
|
|
7
|
+
export { default as en_ZZ } from './en_ZZ';
|
|
9
8
|
export { default as cs } from './cs';
|
|
10
9
|
export { default as da } from './da';
|
|
11
|
-
export { default as
|
|
10
|
+
export { default as de } from './de';
|
|
11
|
+
export { default as en } from './en';
|
|
12
|
+
export { default as en_GB } from './en_GB';
|
|
13
|
+
export { default as es } from './es';
|
|
12
14
|
export { default as et } from './et';
|
|
13
15
|
export { default as fi } from './fi';
|
|
14
16
|
export { default as fr } from './fr';
|
|
15
|
-
export { default as de } from './de';
|
|
16
17
|
export { default as hu } from './hu';
|
|
18
|
+
export { default as is } from './is';
|
|
17
19
|
export { default as it } from './it';
|
|
18
20
|
export { default as ja } from './ja';
|
|
19
21
|
export { default as ko } from './ko';
|
|
20
22
|
export { default as nb } from './nb';
|
|
23
|
+
export { default as nl } from './nl';
|
|
21
24
|
export { default as pl } from './pl';
|
|
22
25
|
export { default as pt_BR } from './pt_BR';
|
|
23
26
|
export { default as pt_PT } from './pt_PT';
|
|
27
|
+
export { default as ro } from './ro';
|
|
24
28
|
export { default as ru } from './ru';
|
|
25
29
|
export { default as sk } from './sk';
|
|
26
|
-
export { default as es } from './es';
|
|
27
30
|
export { default as sv } from './sv';
|
|
28
31
|
export { default as th } from './th';
|
|
29
32
|
export { default as tr } from './tr';
|
|
30
33
|
export { default as uk } from './uk';
|
|
31
34
|
export { default as vi } from './vi';
|
|
32
|
-
export { default as
|
|
33
|
-
export { default as
|
|
34
|
-
export { default as is } from './is';
|
|
35
|
-
export { default as ro } from './ro';
|
|
35
|
+
export { default as zh } from './zh';
|
|
36
|
+
export { default as zh_TW } from './zh_TW';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "7.16.
|
|
3
|
+
"version": "7.16.4",
|
|
4
4
|
"description": "Fabric component for display a dropdown to select a user from",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/tooltip": "^17.5.0",
|
|
38
38
|
"@babel/runtime": "^7.0.0",
|
|
39
39
|
"lodash": "^4.17.15",
|
|
40
|
-
"memoize-one": "^
|
|
40
|
+
"memoize-one": "^6.0.0",
|
|
41
41
|
"uuid": "^3.1.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|