@atlaskit/user-picker 11.16.1 → 11.18.0
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 +18 -0
- package/afm-cc/tsconfig.json +2 -1
- package/afm-jira/tsconfig.json +2 -1
- package/afm-products/tsconfig.json +2 -1
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/AvatarOrIcon.js +66 -0
- package/dist/cjs/components/BaseUserPicker.js +45 -8
- package/dist/cjs/components/CustomOption/main.js +16 -1
- package/dist/cjs/components/ExternalUserOption/main.js +15 -0
- package/dist/cjs/components/MultiValue.js +18 -2
- package/dist/cjs/components/SingleValue.js +13 -3
- package/dist/cjs/components/SingleValueContainer.js +16 -2
- package/dist/cjs/components/TeamOption/main.js +19 -3
- package/dist/cjs/components/UserOption.js +17 -1
- package/dist/cjs/components/UserPicker.js +3 -1
- package/dist/cjs/i18n/cs.js +44 -3
- package/dist/cjs/i18n/da.js +44 -3
- package/dist/cjs/i18n/de.js +44 -3
- package/dist/cjs/i18n/en.js +44 -3
- package/dist/cjs/i18n/en_GB.js +44 -3
- package/dist/cjs/i18n/en_ZZ.js +44 -3
- package/dist/cjs/i18n/es.js +44 -3
- package/dist/cjs/i18n/fi.js +44 -3
- package/dist/cjs/i18n/fr.js +44 -3
- package/dist/cjs/i18n/hr.js +44 -3
- package/dist/cjs/i18n/hu.js +44 -3
- package/dist/cjs/i18n/it.js +44 -3
- package/dist/cjs/i18n/ja.js +44 -3
- package/dist/cjs/i18n/ko.js +44 -3
- package/dist/cjs/i18n/nb.js +44 -3
- package/dist/cjs/i18n/nl.js +44 -3
- package/dist/cjs/i18n/pl.js +44 -3
- package/dist/cjs/i18n/pt_BR.js +44 -3
- package/dist/cjs/i18n/ru.js +44 -3
- package/dist/cjs/i18n/sl.js +44 -3
- package/dist/cjs/i18n/sr_RS.js +44 -3
- package/dist/cjs/i18n/sr_YR.js +44 -3
- package/dist/cjs/i18n/sv.js +44 -3
- package/dist/cjs/i18n/th.js +44 -3
- package/dist/cjs/i18n/tr.js +44 -3
- package/dist/cjs/i18n/uk.js +44 -3
- package/dist/cjs/i18n/vi.js +44 -3
- package/dist/cjs/i18n/zh.js +44 -3
- package/dist/cjs/i18n/zh_TW.js +44 -3
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/AvatarOrIcon.js +58 -0
- package/dist/es2019/components/BaseUserPicker.js +41 -8
- package/dist/es2019/components/CustomOption/main.js +15 -1
- package/dist/es2019/components/ExternalUserOption/main.js +16 -1
- package/dist/es2019/components/MultiValue.js +18 -2
- package/dist/es2019/components/SingleValue.js +14 -4
- package/dist/es2019/components/SingleValueContainer.js +16 -2
- package/dist/es2019/components/TeamOption/main.js +16 -1
- package/dist/es2019/components/UserOption.js +18 -2
- package/dist/es2019/components/UserPicker.js +3 -1
- package/dist/es2019/i18n/cs.js +44 -3
- package/dist/es2019/i18n/da.js +44 -3
- package/dist/es2019/i18n/de.js +44 -3
- package/dist/es2019/i18n/en.js +44 -3
- package/dist/es2019/i18n/en_GB.js +44 -3
- package/dist/es2019/i18n/en_ZZ.js +44 -3
- package/dist/es2019/i18n/es.js +44 -3
- package/dist/es2019/i18n/fi.js +44 -3
- package/dist/es2019/i18n/fr.js +44 -3
- package/dist/es2019/i18n/hr.js +44 -3
- package/dist/es2019/i18n/hu.js +44 -3
- package/dist/es2019/i18n/it.js +44 -3
- package/dist/es2019/i18n/ja.js +44 -3
- package/dist/es2019/i18n/ko.js +44 -3
- package/dist/es2019/i18n/nb.js +44 -3
- package/dist/es2019/i18n/nl.js +44 -3
- package/dist/es2019/i18n/pl.js +44 -3
- package/dist/es2019/i18n/pt_BR.js +44 -3
- package/dist/es2019/i18n/ru.js +44 -3
- package/dist/es2019/i18n/sl.js +44 -3
- package/dist/es2019/i18n/sr_RS.js +44 -3
- package/dist/es2019/i18n/sr_YR.js +44 -3
- package/dist/es2019/i18n/sv.js +44 -3
- package/dist/es2019/i18n/th.js +44 -3
- package/dist/es2019/i18n/tr.js +44 -3
- package/dist/es2019/i18n/uk.js +44 -3
- package/dist/es2019/i18n/vi.js +44 -3
- package/dist/es2019/i18n/zh.js +44 -3
- package/dist/es2019/i18n/zh_TW.js +44 -3
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/AvatarOrIcon.js +59 -0
- package/dist/esm/components/BaseUserPicker.js +45 -8
- package/dist/esm/components/CustomOption/main.js +16 -1
- package/dist/esm/components/ExternalUserOption/main.js +15 -0
- package/dist/esm/components/MultiValue.js +18 -2
- package/dist/esm/components/SingleValue.js +14 -4
- package/dist/esm/components/SingleValueContainer.js +16 -2
- package/dist/esm/components/TeamOption/main.js +19 -3
- package/dist/esm/components/UserOption.js +17 -1
- package/dist/esm/components/UserPicker.js +3 -1
- package/dist/esm/i18n/cs.js +44 -3
- package/dist/esm/i18n/da.js +44 -3
- package/dist/esm/i18n/de.js +44 -3
- package/dist/esm/i18n/en.js +44 -3
- package/dist/esm/i18n/en_GB.js +44 -3
- package/dist/esm/i18n/en_ZZ.js +44 -3
- package/dist/esm/i18n/es.js +44 -3
- package/dist/esm/i18n/fi.js +44 -3
- package/dist/esm/i18n/fr.js +44 -3
- package/dist/esm/i18n/hr.js +44 -3
- package/dist/esm/i18n/hu.js +44 -3
- package/dist/esm/i18n/it.js +44 -3
- package/dist/esm/i18n/ja.js +44 -3
- package/dist/esm/i18n/ko.js +44 -3
- package/dist/esm/i18n/nb.js +44 -3
- package/dist/esm/i18n/nl.js +44 -3
- package/dist/esm/i18n/pl.js +44 -3
- package/dist/esm/i18n/pt_BR.js +44 -3
- package/dist/esm/i18n/ru.js +44 -3
- package/dist/esm/i18n/sl.js +44 -3
- package/dist/esm/i18n/sr_RS.js +44 -3
- package/dist/esm/i18n/sr_YR.js +44 -3
- package/dist/esm/i18n/sv.js +44 -3
- package/dist/esm/i18n/th.js +44 -3
- package/dist/esm/i18n/tr.js +44 -3
- package/dist/esm/i18n/uk.js +44 -3
- package/dist/esm/i18n/vi.js +44 -3
- package/dist/esm/i18n/zh.js +44 -3
- package/dist/esm/i18n/zh_TW.js +44 -3
- package/dist/types/components/AvatarOrIcon.d.ts +17 -0
- package/dist/types/components/BaseUserPicker.d.ts +8 -3
- package/dist/types/components/PopupUserPicker.d.ts +6 -0
- package/dist/types/components/UserPicker.d.ts +4 -1
- package/dist/types/i18n/cs.d.ts +44 -2
- package/dist/types/i18n/da.d.ts +44 -2
- package/dist/types/i18n/de.d.ts +44 -2
- package/dist/types/i18n/en.d.ts +44 -2
- package/dist/types/i18n/en_GB.d.ts +44 -2
- package/dist/types/i18n/en_ZZ.d.ts +44 -2
- package/dist/types/i18n/es.d.ts +44 -2
- package/dist/types/i18n/fi.d.ts +44 -2
- package/dist/types/i18n/fr.d.ts +44 -2
- package/dist/types/i18n/hr.d.ts +44 -2
- package/dist/types/i18n/hu.d.ts +44 -2
- package/dist/types/i18n/it.d.ts +44 -2
- package/dist/types/i18n/ja.d.ts +44 -2
- package/dist/types/i18n/ko.d.ts +44 -2
- package/dist/types/i18n/nb.d.ts +44 -2
- package/dist/types/i18n/nl.d.ts +44 -2
- package/dist/types/i18n/pl.d.ts +44 -2
- package/dist/types/i18n/pt_BR.d.ts +44 -2
- package/dist/types/i18n/ru.d.ts +44 -2
- package/dist/types/i18n/sl.d.ts +44 -2
- package/dist/types/i18n/sr_RS.d.ts +44 -2
- package/dist/types/i18n/sr_YR.d.ts +44 -2
- package/dist/types/i18n/sv.d.ts +44 -2
- package/dist/types/i18n/th.d.ts +44 -2
- package/dist/types/i18n/tr.d.ts +44 -2
- package/dist/types/i18n/uk.d.ts +44 -2
- package/dist/types/i18n/vi.d.ts +44 -2
- package/dist/types/i18n/zh.d.ts +44 -2
- package/dist/types/i18n/zh_TW.d.ts +44 -2
- package/dist/types/types.d.ts +11 -0
- package/dist/types-ts4.5/components/AvatarOrIcon.d.ts +17 -0
- package/dist/types-ts4.5/components/BaseUserPicker.d.ts +8 -3
- package/dist/types-ts4.5/components/PopupUserPicker.d.ts +6 -0
- package/dist/types-ts4.5/components/UserPicker.d.ts +4 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +44 -2
- package/dist/types-ts4.5/i18n/da.d.ts +44 -2
- package/dist/types-ts4.5/i18n/de.d.ts +44 -2
- package/dist/types-ts4.5/i18n/en.d.ts +44 -2
- package/dist/types-ts4.5/i18n/en_GB.d.ts +44 -2
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +44 -2
- package/dist/types-ts4.5/i18n/es.d.ts +44 -2
- package/dist/types-ts4.5/i18n/fi.d.ts +44 -2
- package/dist/types-ts4.5/i18n/fr.d.ts +44 -2
- package/dist/types-ts4.5/i18n/hr.d.ts +44 -2
- package/dist/types-ts4.5/i18n/hu.d.ts +44 -2
- package/dist/types-ts4.5/i18n/it.d.ts +44 -2
- package/dist/types-ts4.5/i18n/ja.d.ts +44 -2
- package/dist/types-ts4.5/i18n/ko.d.ts +44 -2
- package/dist/types-ts4.5/i18n/nb.d.ts +44 -2
- package/dist/types-ts4.5/i18n/nl.d.ts +44 -2
- package/dist/types-ts4.5/i18n/pl.d.ts +44 -2
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +44 -2
- package/dist/types-ts4.5/i18n/ru.d.ts +44 -2
- package/dist/types-ts4.5/i18n/sl.d.ts +44 -2
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +44 -2
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +44 -2
- package/dist/types-ts4.5/i18n/sv.d.ts +44 -2
- package/dist/types-ts4.5/i18n/th.d.ts +44 -2
- package/dist/types-ts4.5/i18n/tr.d.ts +44 -2
- package/dist/types-ts4.5/i18n/uk.d.ts +44 -2
- package/dist/types-ts4.5/i18n/vi.d.ts +44 -2
- package/dist/types-ts4.5/i18n/zh.d.ts +44 -2
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +44 -2
- package/dist/types-ts4.5/types.d.ts +11 -0
- package/package.json +11 -8
package/dist/es2019/i18n/tr.js
CHANGED
|
@@ -5,6 +5,47 @@
|
|
|
5
5
|
* This file is automatically generated by Traduki 2.0.
|
|
6
6
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
//Turkish (Turkey)
|
|
9
|
+
export default {
|
|
10
|
+
'fabric.elements.user-picker.custom.type.label': 'Özel Ayarlar',
|
|
11
|
+
'fabric.elements.user-picker.email.add': 'Kullanıcı ekleyin',
|
|
12
|
+
'fabric.elements.user-picker.email.add.potential': 'Bir e-posta adresi girin',
|
|
13
|
+
'fabric.elements.user-picker.email.select.to.add': 'Bir e-posta adresi seçin',
|
|
14
|
+
'fabric.elements.user-picker.email.type.label': 'E-postalar',
|
|
15
|
+
'fabric.elements.user-picker.error.message': 'Bir hata oluştu',
|
|
16
|
+
'fabric.elements.user-picker.external.sourced.error': 'Şu anda bağlantınızı kuramıyoruz.',
|
|
17
|
+
'fabric.elements.user-picker.external.sourced.from': 'Bulunduğu yer:',
|
|
18
|
+
'fabric.elements.user-picker.external.user.type.label': 'Harici Kullanıcılar',
|
|
19
|
+
'fabric.elements.user-picker.github.provider': 'GitHub',
|
|
20
|
+
'fabric.elements.user-picker.google.provider': 'Google',
|
|
21
|
+
'fabric.elements.user-picker.group.byline': 'Yönetici tarafından yönetilen grup',
|
|
22
|
+
'fabric.elements.user-picker.group.byline.admin-managed': 'Yönetici grubu {verifiedIcon}',
|
|
23
|
+
'fabric.elements.user-picker.group.type.label': 'Gruplar',
|
|
24
|
+
'fabric.elements.user-picker.guest.lozenge.text': 'KONUK',
|
|
25
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.group': 'Konuk gruplar yalnızca bazı alanlara erişebilir ve kullanıcı bilgilerine erişimleri de kısıtlıdır.',
|
|
26
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.user': 'Konuklar yalnızca bazı alanlara erişebilir ve kullanıcı bilgilerine erişimleri de kısıtlıdır.',
|
|
27
|
+
'fabric.elements.user-picker.member.lozenge.text': 'ÜYE',
|
|
28
|
+
'fabric.elements.user-picker.microsoft.provider': 'Microsoft',
|
|
29
|
+
'fabric.elements.user-picker.multi.remove-item': 'Kaldır',
|
|
30
|
+
'fabric.elements.user-picker.other.type.label': 'Diğer',
|
|
31
|
+
'fabric.elements.user-picker.placeholder': 'Kişi veya takım girin...',
|
|
32
|
+
'fabric.elements.user-picker.placeholder.add-more': 'daha fazla kişi ekleyin...',
|
|
33
|
+
'fabric.elements.user-picker.single.clear': 'Temizle',
|
|
34
|
+
'fabric.elements.user-picker.slack.provider': 'Slack',
|
|
35
|
+
'fabric.elements.user-picker.source.confluence': 'Confluence',
|
|
36
|
+
'fabric.elements.user-picker.source.jira': 'Jira',
|
|
37
|
+
'fabric.elements.user-picker.source.other-atlassian': 'Diğer Atlassian ürünleri',
|
|
38
|
+
'fabric.elements.user-picker.source.other-atlassian-appify': 'Diğer Atlassian uygulamaları',
|
|
39
|
+
'fabric.elements.user-picker.team.byline': 'Takım',
|
|
40
|
+
'fabric.elements.user-picker.team.byline.official': 'Resmi takım {verifiedIcon}',
|
|
41
|
+
'fabric.elements.user-picker.team.member.50plus': "Takım • 50'den fazla üye",
|
|
42
|
+
'fabric.elements.user-picker.team.member.50plus.including.you': "Takım • Siz de dahil olmak üzere 50'den fazla üye",
|
|
43
|
+
'fabric.elements.user-picker.team.member.50plus.official': "Resmi takım {verifiedIcon} • 50'den fazla üye",
|
|
44
|
+
'fabric.elements.user-picker.team.member.50plus.official.including.you': "Resmi takım {verifiedIcon} • 50'den fazla üye, siz dahil",
|
|
45
|
+
'fabric.elements.user-picker.team.member.count': '{count, plural, one {Takım • {count} üye} other {Takım • {count} üye}}',
|
|
46
|
+
'fabric.elements.user-picker.team.member.count.including.you': '{count, plural, one {Takım • Siz de dahil olmak üzere {count} üye} other {Takım • Siz de dahil olmak üzere {count} üye}}',
|
|
47
|
+
'fabric.elements.user-picker.team.member.count.official': '{count, plural, one {Resmi takım {verifiedIcon} • {count} üye} other {Resmi takım {verifiedIcon} • {count} üye}}',
|
|
48
|
+
'fabric.elements.user-picker.team.member.count.official.including.you': '{count, plural, one {Resmi takım {verifiedIcon} • {count} üye, siz dahil} other {Resmi takım {verifiedIcon} • {count} üye, siz dahil}}',
|
|
49
|
+
'fabric.elements.user-picker.team.type.label': 'Takımlar',
|
|
50
|
+
'fabric.elements.user-picker.user.type.label': 'Kişiler'
|
|
51
|
+
};
|
package/dist/es2019/i18n/uk.js
CHANGED
|
@@ -5,6 +5,47 @@
|
|
|
5
5
|
* This file is automatically generated by Traduki 2.0.
|
|
6
6
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
//Ukrainian (Ukraine)
|
|
9
|
+
export default {
|
|
10
|
+
'fabric.elements.user-picker.custom.type.label': 'Настроювані',
|
|
11
|
+
'fabric.elements.user-picker.email.add': 'Додайте користувача',
|
|
12
|
+
'fabric.elements.user-picker.email.add.potential': 'Введіть адресу електронної пошти',
|
|
13
|
+
'fabric.elements.user-picker.email.select.to.add': 'Виберіть адресу електронної пошти',
|
|
14
|
+
'fabric.elements.user-picker.email.type.label': 'Адреси електронної пошти',
|
|
15
|
+
'fabric.elements.user-picker.error.message': 'Сталася помилка',
|
|
16
|
+
'fabric.elements.user-picker.external.sourced.error': 'Не вдається вас підключити.',
|
|
17
|
+
'fabric.elements.user-picker.external.sourced.from': 'Знайдено в:',
|
|
18
|
+
'fabric.elements.user-picker.external.user.type.label': 'Зовнішні користувачі',
|
|
19
|
+
'fabric.elements.user-picker.github.provider': 'GitHub',
|
|
20
|
+
'fabric.elements.user-picker.google.provider': 'Google',
|
|
21
|
+
'fabric.elements.user-picker.group.byline': 'Група, яку модерує адміністратор',
|
|
22
|
+
'fabric.elements.user-picker.group.byline.admin-managed': 'Група під керуванням адміністратора {verifiedIcon}',
|
|
23
|
+
'fabric.elements.user-picker.group.type.label': 'Групи',
|
|
24
|
+
'fabric.elements.user-picker.guest.lozenge.text': 'ГІСТЬ',
|
|
25
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.group': 'Групи гостей мають доступ лише до певних розділів, а також обмежений доступ до інформації про користувачів.',
|
|
26
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.user': 'Гості мають доступ лише до певних розділів, а також обмежений доступ до інформації про користувачів.',
|
|
27
|
+
'fabric.elements.user-picker.member.lozenge.text': 'Учасник',
|
|
28
|
+
'fabric.elements.user-picker.microsoft.provider': 'Microsoft',
|
|
29
|
+
'fabric.elements.user-picker.multi.remove-item': 'Видалити',
|
|
30
|
+
'fabric.elements.user-picker.other.type.label': 'Інше',
|
|
31
|
+
'fabric.elements.user-picker.placeholder': 'Укажіть користувачів або команди…',
|
|
32
|
+
'fabric.elements.user-picker.placeholder.add-more': 'додайте інших користувачів…',
|
|
33
|
+
'fabric.elements.user-picker.single.clear': 'Очистити',
|
|
34
|
+
'fabric.elements.user-picker.slack.provider': 'Slack',
|
|
35
|
+
'fabric.elements.user-picker.source.confluence': 'Confluence',
|
|
36
|
+
'fabric.elements.user-picker.source.jira': 'Jira',
|
|
37
|
+
'fabric.elements.user-picker.source.other-atlassian': 'Інші продукти Atlassian',
|
|
38
|
+
'fabric.elements.user-picker.source.other-atlassian-appify': 'Інші застосунки Atlassian',
|
|
39
|
+
'fabric.elements.user-picker.team.byline': 'Команда',
|
|
40
|
+
'fabric.elements.user-picker.team.byline.official': 'Офіційна команда {verifiedIcon}',
|
|
41
|
+
'fabric.elements.user-picker.team.member.50plus': 'Команда • Понад 50 учасників',
|
|
42
|
+
'fabric.elements.user-picker.team.member.50plus.including.you': 'Команда • Понад 50 учасників включно з вами',
|
|
43
|
+
'fabric.elements.user-picker.team.member.50plus.official': 'Офіційна команда {verifiedIcon} • Понад 50 учасників',
|
|
44
|
+
'fabric.elements.user-picker.team.member.50plus.official.including.you': 'Офіційна команда {verifiedIcon} • Понад 50 учасників разом із вами',
|
|
45
|
+
'fabric.elements.user-picker.team.member.count': '{count, plural, one {Команда • {count} учасник} few {Команда • {count} учасники} many {Команда • {count} учасників} other {Команда • {count} учасника}}',
|
|
46
|
+
'fabric.elements.user-picker.team.member.count.including.you': '{count, plural, one {Команда • {count} учасник включно з вами} few {Команда • {count} учасники включно з вами} many {Команда • {count} учасників включно з вами} other {Команда • {count} учасника включно з вами}}',
|
|
47
|
+
'fabric.elements.user-picker.team.member.count.official': '{count, plural, one {Офіційна команда {verifiedIcon} • {count} учасник} few {Офіційна команда {verifiedIcon} • {count} учасники} many {Офіційна команда {verifiedIcon} • {count} учасників} other {Офіційна команда {verifiedIcon} • {count} учасників}}',
|
|
48
|
+
'fabric.elements.user-picker.team.member.count.official.including.you': '{count, plural, one {Офіційна команда {verifiedIcon} • {count} учасник разом із вами} few {Офіційна команда {verifiedIcon} • {count} учасники разом із вами} many {Офіційна команда {verifiedIcon} • {count} учасників разом із вами} other {Офіційна команда {verifiedIcon} • {count} учасників разом із вами}}',
|
|
49
|
+
'fabric.elements.user-picker.team.type.label': 'Команди',
|
|
50
|
+
'fabric.elements.user-picker.user.type.label': 'Люди'
|
|
51
|
+
};
|
package/dist/es2019/i18n/vi.js
CHANGED
|
@@ -5,6 +5,47 @@
|
|
|
5
5
|
* This file is automatically generated by Traduki 2.0.
|
|
6
6
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
//Vietnamese (Vietnam)
|
|
9
|
+
export default {
|
|
10
|
+
'fabric.elements.user-picker.custom.type.label': 'Tùy chỉnh',
|
|
11
|
+
'fabric.elements.user-picker.email.add': 'Thêm người dùng',
|
|
12
|
+
'fabric.elements.user-picker.email.add.potential': 'Nhập địa chỉ email',
|
|
13
|
+
'fabric.elements.user-picker.email.select.to.add': 'Chọn địa chỉ email',
|
|
14
|
+
'fabric.elements.user-picker.email.type.label': 'Email',
|
|
15
|
+
'fabric.elements.user-picker.error.message': 'Đã xảy ra lỗi',
|
|
16
|
+
'fabric.elements.user-picker.external.sourced.error': 'Chúng tôi hiện không thể kết nối bạn.',
|
|
17
|
+
'fabric.elements.user-picker.external.sourced.from': 'Tìm thấy trong:',
|
|
18
|
+
'fabric.elements.user-picker.external.user.type.label': 'Người dùng bên ngoài',
|
|
19
|
+
'fabric.elements.user-picker.github.provider': 'GitHub',
|
|
20
|
+
'fabric.elements.user-picker.google.provider': 'Google',
|
|
21
|
+
'fabric.elements.user-picker.group.byline': 'Nhóm có quản trị viên',
|
|
22
|
+
'fabric.elements.user-picker.group.byline.admin-managed': 'Nhóm quản trị {verifiedIcon}',
|
|
23
|
+
'fabric.elements.user-picker.group.type.label': 'Nhóm',
|
|
24
|
+
'fabric.elements.user-picker.guest.lozenge.text': 'KHÁCH',
|
|
25
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.group': 'Các nhóm khách chỉ có thể vào một số không gian nhất định và có quyền truy cập hạn chế vào thông tin người dùng.',
|
|
26
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.user': 'Khách chỉ có thể vào một số không gian nhất định và có quyền truy cập hạn chế vào thông tin người dùng.',
|
|
27
|
+
'fabric.elements.user-picker.member.lozenge.text': 'Thành viên',
|
|
28
|
+
'fabric.elements.user-picker.microsoft.provider': 'Microsoft',
|
|
29
|
+
'fabric.elements.user-picker.multi.remove-item': 'Xóa',
|
|
30
|
+
'fabric.elements.user-picker.other.type.label': 'Khác',
|
|
31
|
+
'fabric.elements.user-picker.placeholder': 'Nhập người hoặc nhóm...',
|
|
32
|
+
'fabric.elements.user-picker.placeholder.add-more': 'thêm người khác...',
|
|
33
|
+
'fabric.elements.user-picker.single.clear': 'Xóa',
|
|
34
|
+
'fabric.elements.user-picker.slack.provider': 'Slack',
|
|
35
|
+
'fabric.elements.user-picker.source.confluence': 'Confluence',
|
|
36
|
+
'fabric.elements.user-picker.source.jira': 'Jira',
|
|
37
|
+
'fabric.elements.user-picker.source.other-atlassian': 'Các sản phẩm khác của Atlassian',
|
|
38
|
+
'fabric.elements.user-picker.source.other-atlassian-appify': 'Các ứng dụng khác của Atlassian',
|
|
39
|
+
'fabric.elements.user-picker.team.byline': 'Đội ngũ',
|
|
40
|
+
'fabric.elements.user-picker.team.byline.official': 'Đội ngũ chính thức {verifiedIcon}',
|
|
41
|
+
'fabric.elements.user-picker.team.member.50plus': 'Nhóm • 50+ thành viên',
|
|
42
|
+
'fabric.elements.user-picker.team.member.50plus.including.you': 'Nhóm • 50+ thành viên, bao gồm cả bạn',
|
|
43
|
+
'fabric.elements.user-picker.team.member.50plus.official': 'Đội ngũ chính thức {verifiedIcon} • Trên 50 thành viên',
|
|
44
|
+
'fabric.elements.user-picker.team.member.50plus.official.including.you': 'Đội ngũ chính thức {verifiedIcon} • Trên 50 thành viên, kể cả bạn',
|
|
45
|
+
'fabric.elements.user-picker.team.member.count': '{count, plural, other {Nhóm • {count} thành viên}}',
|
|
46
|
+
'fabric.elements.user-picker.team.member.count.including.you': '{count, plural, other {Nhóm • {count} thành viên, bao gồm cả bạn}}',
|
|
47
|
+
'fabric.elements.user-picker.team.member.count.official': '{count, plural, other {Đội ngũ chính thức {verifiedIcon} • {count} thành viên}}',
|
|
48
|
+
'fabric.elements.user-picker.team.member.count.official.including.you': '{count, plural, other {Đội ngũ chính thức {verifiedIcon} • {count} thành viên, kể cả bạn}}',
|
|
49
|
+
'fabric.elements.user-picker.team.type.label': 'Đội ngũ',
|
|
50
|
+
'fabric.elements.user-picker.user.type.label': 'Mọi người'
|
|
51
|
+
};
|
package/dist/es2019/i18n/zh.js
CHANGED
|
@@ -5,6 +5,47 @@
|
|
|
5
5
|
* This file is automatically generated by Traduki 2.0.
|
|
6
6
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
//Chinese (Simplified)
|
|
9
|
+
export default {
|
|
10
|
+
'fabric.elements.user-picker.custom.type.label': '自定义设置',
|
|
11
|
+
'fabric.elements.user-picker.email.add': '添加用户',
|
|
12
|
+
'fabric.elements.user-picker.email.add.potential': '输入电子邮件地址',
|
|
13
|
+
'fabric.elements.user-picker.email.select.to.add': '选择电子邮件地址',
|
|
14
|
+
'fabric.elements.user-picker.email.type.label': '电子邮件地址',
|
|
15
|
+
'fabric.elements.user-picker.error.message': '出错了',
|
|
16
|
+
'fabric.elements.user-picker.external.sourced.error': '当前无法与您连接。',
|
|
17
|
+
'fabric.elements.user-picker.external.sourced.from': '发现位置:',
|
|
18
|
+
'fabric.elements.user-picker.external.user.type.label': '外部用户',
|
|
19
|
+
'fabric.elements.user-picker.github.provider': 'GitHub',
|
|
20
|
+
'fabric.elements.user-picker.google.provider': 'Google',
|
|
21
|
+
'fabric.elements.user-picker.group.byline': '管理员管理的群组',
|
|
22
|
+
'fabric.elements.user-picker.group.byline.admin-managed': '管理员群组 {verifiedIcon}',
|
|
23
|
+
'fabric.elements.user-picker.group.type.label': '群组',
|
|
24
|
+
'fabric.elements.user-picker.guest.lozenge.text': '访客',
|
|
25
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.group': '访客群组只能访问特定的空间,并对用户信息具有有限的访问权限。',
|
|
26
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.user': '访客只能访问特定的空间,并对用户信息具有有限的访问权限。',
|
|
27
|
+
'fabric.elements.user-picker.member.lozenge.text': '成员',
|
|
28
|
+
'fabric.elements.user-picker.microsoft.provider': 'Microsoft',
|
|
29
|
+
'fabric.elements.user-picker.multi.remove-item': '删除',
|
|
30
|
+
'fabric.elements.user-picker.other.type.label': '其他',
|
|
31
|
+
'fabric.elements.user-picker.placeholder': '输入人员或团队…',
|
|
32
|
+
'fabric.elements.user-picker.placeholder.add-more': '添加更多人员...',
|
|
33
|
+
'fabric.elements.user-picker.single.clear': '清除',
|
|
34
|
+
'fabric.elements.user-picker.slack.provider': 'Slack',
|
|
35
|
+
'fabric.elements.user-picker.source.confluence': 'Confluence',
|
|
36
|
+
'fabric.elements.user-picker.source.jira': 'Jira',
|
|
37
|
+
'fabric.elements.user-picker.source.other-atlassian': '其他 Atlassian 产品',
|
|
38
|
+
'fabric.elements.user-picker.source.other-atlassian-appify': '其他 Atlassian 应用',
|
|
39
|
+
'fabric.elements.user-picker.team.byline': '团队',
|
|
40
|
+
'fabric.elements.user-picker.team.byline.official': '官方团队 {verifiedIcon}',
|
|
41
|
+
'fabric.elements.user-picker.team.member.50plus': '团队 • 50 多名成员',
|
|
42
|
+
'fabric.elements.user-picker.team.member.50plus.including.you': '团队 • 50 多名成员,包括您',
|
|
43
|
+
'fabric.elements.user-picker.team.member.50plus.official': '官方团队 {verifiedIcon} • 50 多名成员',
|
|
44
|
+
'fabric.elements.user-picker.team.member.50plus.official.including.you': '官方团队 {verifiedIcon} • 50 多名成员,包括您自己',
|
|
45
|
+
'fabric.elements.user-picker.team.member.count': '{count, plural, other {团队 • {count} 名成员}}',
|
|
46
|
+
'fabric.elements.user-picker.team.member.count.including.you': '{count, plural, other {团队 • {count} 名成员,包括您}}',
|
|
47
|
+
'fabric.elements.user-picker.team.member.count.official': '{count, plural, other {官方团队 {verifiedIcon} • {count} 名成员}}',
|
|
48
|
+
'fabric.elements.user-picker.team.member.count.official.including.you': '{count, plural, other {官方团队 {verifiedIcon} • {count} 名成员,包括您自己}}',
|
|
49
|
+
'fabric.elements.user-picker.team.type.label': '团队',
|
|
50
|
+
'fabric.elements.user-picker.user.type.label': '人员'
|
|
51
|
+
};
|
|
@@ -5,6 +5,47 @@
|
|
|
5
5
|
* This file is automatically generated by Traduki 2.0.
|
|
6
6
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
//Chinese (Traditional)
|
|
9
|
+
export default {
|
|
10
|
+
'fabric.elements.user-picker.custom.type.label': '客戶',
|
|
11
|
+
'fabric.elements.user-picker.email.add': '新增使用者',
|
|
12
|
+
'fabric.elements.user-picker.email.add.potential': '輸入電子郵件地址',
|
|
13
|
+
'fabric.elements.user-picker.email.select.to.add': '選取電子郵件地址',
|
|
14
|
+
'fabric.elements.user-picker.email.type.label': '電子郵件',
|
|
15
|
+
'fabric.elements.user-picker.error.message': '發生錯誤',
|
|
16
|
+
'fabric.elements.user-picker.external.sourced.error': '我們目前無法與您建立連線。',
|
|
17
|
+
'fabric.elements.user-picker.external.sourced.from': '尋找位置:',
|
|
18
|
+
'fabric.elements.user-picker.external.user.type.label': '外部使用者',
|
|
19
|
+
'fabric.elements.user-picker.github.provider': 'GitHub',
|
|
20
|
+
'fabric.elements.user-picker.google.provider': 'Google',
|
|
21
|
+
'fabric.elements.user-picker.group.byline': '由系統管理員所管理的群組',
|
|
22
|
+
'fabric.elements.user-picker.group.byline.admin-managed': '管理員群組 {verifiedIcon}',
|
|
23
|
+
'fabric.elements.user-picker.group.type.label': '群組',
|
|
24
|
+
'fabric.elements.user-picker.guest.lozenge.text': '訪客',
|
|
25
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.group': '訪客群組只能存取特定空間,而且只能存取有限的使用者資訊。',
|
|
26
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.user': '訪客只能存取特定空間,而且只能存取有限的使用者資訊。',
|
|
27
|
+
'fabric.elements.user-picker.member.lozenge.text': '成員',
|
|
28
|
+
'fabric.elements.user-picker.microsoft.provider': 'Microsoft',
|
|
29
|
+
'fabric.elements.user-picker.multi.remove-item': '移除',
|
|
30
|
+
'fabric.elements.user-picker.other.type.label': '其他',
|
|
31
|
+
'fabric.elements.user-picker.placeholder': '輸入人員或團隊...',
|
|
32
|
+
'fabric.elements.user-picker.placeholder.add-more': '新增更多人員...',
|
|
33
|
+
'fabric.elements.user-picker.single.clear': '清除',
|
|
34
|
+
'fabric.elements.user-picker.slack.provider': 'Slack',
|
|
35
|
+
'fabric.elements.user-picker.source.confluence': 'Confluence',
|
|
36
|
+
'fabric.elements.user-picker.source.jira': 'Jira',
|
|
37
|
+
'fabric.elements.user-picker.source.other-atlassian': '其他 Atlassian 產品',
|
|
38
|
+
'fabric.elements.user-picker.source.other-atlassian-appify': '其他 Atlassian 應用程式',
|
|
39
|
+
'fabric.elements.user-picker.team.byline': '團隊',
|
|
40
|
+
'fabric.elements.user-picker.team.byline.official': '官方團隊 {verifiedIcon}',
|
|
41
|
+
'fabric.elements.user-picker.team.member.50plus': '團隊 • 50 名以上的成員',
|
|
42
|
+
'fabric.elements.user-picker.team.member.50plus.including.you': '團隊 • 50 名以上的成員,包含您',
|
|
43
|
+
'fabric.elements.user-picker.team.member.50plus.official': '官方團隊 {verifiedIcon} • 超過 50 名成員',
|
|
44
|
+
'fabric.elements.user-picker.team.member.50plus.official.including.you': '官方團隊 {verifiedIcon} • 超過 50 名成員,包括您',
|
|
45
|
+
'fabric.elements.user-picker.team.member.count': '{count, plural, other {團隊 • {count} 名成員}}',
|
|
46
|
+
'fabric.elements.user-picker.team.member.count.including.you': '{count, plural, other {團隊 • {count} 名成員,包含您}}',
|
|
47
|
+
'fabric.elements.user-picker.team.member.count.official': '{count, plural, other {官方團隊 {verifiedIcon} • {count} 位成員}}',
|
|
48
|
+
'fabric.elements.user-picker.team.member.count.official.including.you': '{count, plural, other {官方團隊 {verifiedIcon} • {count} 名成員,包括您}}',
|
|
49
|
+
'fabric.elements.user-picker.team.type.label': '團隊',
|
|
50
|
+
'fabric.elements.user-picker.user.type.label': '人員'
|
|
51
|
+
};
|
package/dist/esm/analytics.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
|
6
6
|
import { v4 as uuidv4 } from 'uuid';
|
|
7
7
|
import { isCustom, isExternalUser } from './components/utils';
|
|
8
8
|
var packageName = "@atlaskit/user-picker";
|
|
9
|
-
var packageVersion = "
|
|
9
|
+
var packageVersion = "11.17.0";
|
|
10
10
|
var UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
11
11
|
var UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
12
12
|
var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { SizeableAvatar } from './SizeableAvatar';
|
|
7
|
+
import { getAvatarSize } from './utils';
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
import { css, jsx } from '@emotion/react';
|
|
10
|
+
var iconStyle = css({
|
|
11
|
+
display: 'flex',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
justifyContent: 'center',
|
|
14
|
+
flexShrink: 0
|
|
15
|
+
});
|
|
16
|
+
var iconSizes = {
|
|
17
|
+
xsmall: css({
|
|
18
|
+
width: '20px',
|
|
19
|
+
height: '20px'
|
|
20
|
+
}),
|
|
21
|
+
small: css({
|
|
22
|
+
width: '28px',
|
|
23
|
+
height: '28px'
|
|
24
|
+
}),
|
|
25
|
+
medium: css({
|
|
26
|
+
width: '36px',
|
|
27
|
+
height: '36px'
|
|
28
|
+
})
|
|
29
|
+
};
|
|
30
|
+
export var AvatarOrIcon = function AvatarOrIcon(_ref) {
|
|
31
|
+
var _ref$appearance = _ref.appearance,
|
|
32
|
+
appearance = _ref$appearance === void 0 ? 'big' : _ref$appearance,
|
|
33
|
+
avatarAppearanceShape = _ref.avatarAppearanceShape,
|
|
34
|
+
icon = _ref.icon,
|
|
35
|
+
iconColor = _ref.iconColor,
|
|
36
|
+
presence = _ref.presence,
|
|
37
|
+
src = _ref.src,
|
|
38
|
+
_ref$type = _ref.type,
|
|
39
|
+
type = _ref$type === void 0 ? 'person' : _ref$type;
|
|
40
|
+
// If icon is provided, render it instead of avatar
|
|
41
|
+
if (icon) {
|
|
42
|
+
var avatarSize = getAvatarSize(appearance);
|
|
43
|
+
return jsx("div", {
|
|
44
|
+
css: [iconStyle, iconSizes[avatarSize]],
|
|
45
|
+
style: {
|
|
46
|
+
color: iconColor
|
|
47
|
+
}
|
|
48
|
+
}, icon);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Otherwise, render the avatar as before
|
|
52
|
+
return jsx(SizeableAvatar, {
|
|
53
|
+
appearance: appearance,
|
|
54
|
+
src: src,
|
|
55
|
+
presence: presence,
|
|
56
|
+
type: type,
|
|
57
|
+
avatarAppearanceShape: avatarAppearanceShape
|
|
58
|
+
});
|
|
59
|
+
};
|
|
@@ -27,6 +27,7 @@ import { messages } from './i18n';
|
|
|
27
27
|
import { callCallback, extractOptionValue, getOptions, isIterable, isPopupUserPickerByComponent, isDefaultValuePopulated, isSingleValue, optionToSelectableOptions } from './utils';
|
|
28
28
|
import { groupOptionsByType } from '../util/group-options-by-type';
|
|
29
29
|
import { userPickerOptionsShownUfoExperience } from '../util/ufoExperiences';
|
|
30
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
30
31
|
var loadingMessage = function loadingMessage() {
|
|
31
32
|
return null;
|
|
32
33
|
};
|
|
@@ -239,7 +240,16 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
|
|
|
239
240
|
});
|
|
240
241
|
callCallback(_this.props.onInputChange, '', _this.getSessionId());
|
|
241
242
|
});
|
|
243
|
+
_defineProperty(_this, "handleOpen", function () {
|
|
244
|
+
callCallback(_this.props.onOpen, _this.getSessionId());
|
|
245
|
+
_this.setState({
|
|
246
|
+
menuIsOpen: true
|
|
247
|
+
});
|
|
248
|
+
});
|
|
242
249
|
_defineProperty(_this, "handleBlur", function () {
|
|
250
|
+
if (_this.isCreateTeamA11yEnabled && _this.props.isFooterFocused) {
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
243
253
|
callCallback(_this.props.onBlur, _this.getSessionId());
|
|
244
254
|
if (isPopupUserPickerByComponent(_this.props.SelectComponent)) {
|
|
245
255
|
return;
|
|
@@ -252,13 +262,10 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
|
|
|
252
262
|
options: []
|
|
253
263
|
});
|
|
254
264
|
});
|
|
255
|
-
_defineProperty(_this, "handleOpen", function () {
|
|
256
|
-
callCallback(_this.props.onOpen, _this.getSessionId());
|
|
257
|
-
_this.setState({
|
|
258
|
-
menuIsOpen: true
|
|
259
|
-
});
|
|
260
|
-
});
|
|
261
265
|
_defineProperty(_this, "handleClose", function () {
|
|
266
|
+
if (_this.isCreateTeamA11yEnabled && _this.props.isFooterFocused) {
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
262
269
|
_this.resetInputState();
|
|
263
270
|
callCallback(_this.props.onClose, _this.getSessionId());
|
|
264
271
|
_this.setState({
|
|
@@ -319,6 +326,18 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
|
|
|
319
326
|
}
|
|
320
327
|
}
|
|
321
328
|
_this.props.onKeyDown && _this.props.onKeyDown(event);
|
|
329
|
+
if (_this.isCreateTeamA11yEnabled) {
|
|
330
|
+
if (event.key === 'Escape') {
|
|
331
|
+
_this.setState({
|
|
332
|
+
menuIsOpen: false,
|
|
333
|
+
options: []
|
|
334
|
+
});
|
|
335
|
+
_this.props.setIsFooterFocused && _this.props.setIsFooterFocused(false);
|
|
336
|
+
}
|
|
337
|
+
if (event.key === 'Tab' && _this.props.setIsFooterFocused && _this.props.footer) {
|
|
338
|
+
_this.props.setIsFooterFocused(true);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
322
341
|
});
|
|
323
342
|
_defineProperty(_this, "handleClearIndicatorHover", function (hoveringClearIndicator) {
|
|
324
343
|
_this.setState({
|
|
@@ -375,6 +394,9 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
|
|
|
375
394
|
});
|
|
376
395
|
}
|
|
377
396
|
});
|
|
397
|
+
_defineProperty(_this, "shouldKeepMenuOpen", function () {
|
|
398
|
+
return Boolean(!!_this.props.footer) && Boolean(_this.props.isFooterFocused);
|
|
399
|
+
});
|
|
378
400
|
_this.state = {
|
|
379
401
|
options: [],
|
|
380
402
|
isDefaultSet: false,
|
|
@@ -409,6 +431,11 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
|
|
|
409
431
|
get: function get() {
|
|
410
432
|
return this.props.openMenuOnClick && !this.props.isMulti;
|
|
411
433
|
}
|
|
434
|
+
}, {
|
|
435
|
+
key: "isCreateTeamA11yEnabled",
|
|
436
|
+
get: function get() {
|
|
437
|
+
return fg('a11y-create-team-is-not-focusable-and-has-no-btn');
|
|
438
|
+
}
|
|
412
439
|
}, {
|
|
413
440
|
key: "componentDidMount",
|
|
414
441
|
value: function componentDidMount() {
|
|
@@ -425,7 +452,7 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
|
|
|
425
452
|
}
|
|
426
453
|
}, {
|
|
427
454
|
key: "componentDidUpdate",
|
|
428
|
-
value: function componentDidUpdate(
|
|
455
|
+
value: function componentDidUpdate(prevProps, prevState) {
|
|
429
456
|
var _this$state2 = this.state,
|
|
430
457
|
menuIsOpen = _this$state2.menuIsOpen,
|
|
431
458
|
options = _this$state2.options,
|
|
@@ -433,6 +460,16 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
|
|
|
433
460
|
count = _this$state2.count,
|
|
434
461
|
inputValue = _this$state2.inputValue;
|
|
435
462
|
|
|
463
|
+
// Close menu when isFooterFocused changes from true to false
|
|
464
|
+
if (this.isCreateTeamA11yEnabled && menuIsOpen && prevProps.isFooterFocused === true && this.props.isFooterFocused === false && !this.shouldKeepMenuOpen()) {
|
|
465
|
+
this.resetInputState();
|
|
466
|
+
callCallback(this.props.onClose, this.getSessionId());
|
|
467
|
+
this.setState({
|
|
468
|
+
menuIsOpen: false,
|
|
469
|
+
options: []
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
|
|
436
473
|
// Create a new session when the menu is opened and there is no session
|
|
437
474
|
if (menuIsOpen && !prevState.menuIsOpen && !this.session) {
|
|
438
475
|
this.startSession();
|
|
@@ -454,7 +491,7 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
|
|
|
454
491
|
this.session.inputChangeTime = Date.now();
|
|
455
492
|
}
|
|
456
493
|
}
|
|
457
|
-
if (menuIsOpen && (!
|
|
494
|
+
if (menuIsOpen && (!prevProps.loadOptions || prevState.menuIsOpen) && count === 0 && !resolving && [UFOExperienceState.STARTED.id, UFOExperienceState.IN_PROGRESS.id].includes(this.optionsShownUfoExperienceInstance.state.id)) {
|
|
458
495
|
this.optionsShownUfoExperienceInstance.success();
|
|
459
496
|
}
|
|
460
497
|
}
|
|
@@ -14,8 +14,10 @@ import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
import { jsx } from '@emotion/react';
|
|
16
16
|
import React from 'react';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
18
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
18
19
|
import { HighlightText } from '../HighlightText';
|
|
20
|
+
import { AvatarOrIcon } from '../AvatarOrIcon';
|
|
19
21
|
import { SizeableAvatar } from '../SizeableAvatar';
|
|
20
22
|
export var CustomOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
21
23
|
function CustomOption() {
|
|
@@ -53,7 +55,20 @@ export var CustomOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
53
55
|
return _this.getBylineComponent(_this.props.isSelected, _this.props.data.byline);
|
|
54
56
|
});
|
|
55
57
|
_defineProperty(_this, "renderAvatar", function () {
|
|
56
|
-
var
|
|
58
|
+
var _this$props$data3 = _this.props.data,
|
|
59
|
+
avatarUrl = _this$props$data3.avatarUrl,
|
|
60
|
+
icon = _this$props$data3.icon,
|
|
61
|
+
iconColor = _this$props$data3.iconColor;
|
|
62
|
+
// Only use icon if feature gate is enabled
|
|
63
|
+
if (icon && fg('atlaskit_user_picker_support_icon')) {
|
|
64
|
+
return jsx(AvatarOrIcon, {
|
|
65
|
+
appearance: "big",
|
|
66
|
+
icon: icon,
|
|
67
|
+
iconColor: iconColor,
|
|
68
|
+
src: avatarUrl
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// Fallback to original behavior
|
|
57
72
|
return jsx(SizeableAvatar, {
|
|
58
73
|
appearance: "big",
|
|
59
74
|
src: avatarUrl
|
|
@@ -19,6 +19,7 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
19
19
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
20
20
|
import { createAndFireEventInElementsChannel, userInfoEvent } from '../../analytics';
|
|
21
21
|
import { textWrapper } from '../AvatarItemOption';
|
|
22
|
+
import { AvatarOrIcon } from '../AvatarOrIcon';
|
|
22
23
|
import { SizeableAvatar } from '../SizeableAvatar';
|
|
23
24
|
import { ExternalUserSourcesContainer } from '../ExternalUserSourcesContainer';
|
|
24
25
|
import InfoIcon from './InfoIcon';
|
|
@@ -98,7 +99,21 @@ var ExternalUserOptionImpl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
98
99
|
_this$props$user2 = _this$props.user,
|
|
99
100
|
avatarUrl = _this$props$user2.avatarUrl,
|
|
100
101
|
appType = _this$props$user2.appType,
|
|
102
|
+
icon = _this$props$user2.icon,
|
|
103
|
+
iconColor = _this$props$user2.iconColor,
|
|
101
104
|
status = _this$props.status;
|
|
105
|
+
// Only use icon if feature gate is enabled
|
|
106
|
+
if (icon && fg('atlaskit_user_picker_support_icon')) {
|
|
107
|
+
return jsx(AvatarOrIcon, {
|
|
108
|
+
appearance: "big",
|
|
109
|
+
icon: icon,
|
|
110
|
+
iconColor: iconColor,
|
|
111
|
+
src: avatarUrl,
|
|
112
|
+
presence: status,
|
|
113
|
+
avatarAppearanceShape: fg('jira_ai_agent_avatar_user_picker_user_option') ? getAppearanceForAppType(appType) : undefined
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
// Fallback to original behavior
|
|
102
117
|
return jsx(SizeableAvatar, {
|
|
103
118
|
appearance: "big",
|
|
104
119
|
src: avatarUrl,
|
|
@@ -20,10 +20,12 @@ import { components } from '@atlaskit/select';
|
|
|
20
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
21
|
import { css, jsx } from '@emotion/react';
|
|
22
22
|
import { AddOptionAvatar } from './AddOptionAvatar';
|
|
23
|
+
import { AvatarOrIcon } from './AvatarOrIcon';
|
|
23
24
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
24
25
|
import { getAvatarUrl, isEmail, isGroup, isTeam } from './utils';
|
|
25
26
|
import PeopleIcon from '@atlaskit/icon/core/migration/people-group--people';
|
|
26
27
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
28
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
27
29
|
export var scrollToValue = function scrollToValue(valueContainer, control) {
|
|
28
30
|
var _valueContainer$getBo = valueContainer.getBoundingClientRect(),
|
|
29
31
|
top = _valueContainer$getBo.top,
|
|
@@ -70,6 +72,18 @@ export var MultiValue = /*#__PURE__*/function (_React$Component) {
|
|
|
70
72
|
LEGACY_size: "small"
|
|
71
73
|
}));
|
|
72
74
|
}
|
|
75
|
+
|
|
76
|
+
// Only use icon if feature gate is enabled
|
|
77
|
+
if (data.icon && fg('atlaskit_user_picker_support_icon')) {
|
|
78
|
+
return jsx(AvatarOrIcon, {
|
|
79
|
+
appearance: "multi",
|
|
80
|
+
icon: data.icon,
|
|
81
|
+
iconColor: data.iconColor,
|
|
82
|
+
src: getAvatarUrl(data),
|
|
83
|
+
type: isTeam(data) ? 'team' : 'person'
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
// Fallback to original behavior
|
|
73
87
|
return jsx(SizeableAvatar, {
|
|
74
88
|
appearance: "multi",
|
|
75
89
|
src: getAvatarUrl(data),
|
|
@@ -78,8 +92,10 @@ export var MultiValue = /*#__PURE__*/function (_React$Component) {
|
|
|
78
92
|
});
|
|
79
93
|
_defineProperty(_this, "getElemAfter", function () {
|
|
80
94
|
var data = _this.props.data.data;
|
|
81
|
-
if (isTeam(data) && data.verified) {
|
|
82
|
-
return jsx(VerifiedTeamIcon,
|
|
95
|
+
if (isGroup(data) && data.includeTeamsUpdates || isTeam(data) && data.verified) {
|
|
96
|
+
return jsx(VerifiedTeamIcon, {
|
|
97
|
+
size: data.includeTeamsUpdates ? 'small' : 'medium'
|
|
98
|
+
});
|
|
83
99
|
}
|
|
84
100
|
return null;
|
|
85
101
|
});
|
|
@@ -3,8 +3,9 @@ import "./SingleValue.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { components } from '@atlaskit/select';
|
|
6
|
+
import { AvatarOrIcon } from './AvatarOrIcon';
|
|
6
7
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
7
|
-
import { getAvatarUrl, isTeam } from './utils';
|
|
8
|
+
import { getAvatarUrl, isTeam, isGroup } from './utils';
|
|
8
9
|
import { getAppearanceForAppType } from '@atlaskit/avatar';
|
|
9
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
@@ -17,9 +18,11 @@ var styles = {
|
|
|
17
18
|
var ElementAfter = function ElementAfter(props) {
|
|
18
19
|
var data = props.data.data,
|
|
19
20
|
shouldShowVerifiedIcon = props.shouldShowVerifiedIcon;
|
|
20
|
-
var showIcon = shouldShowVerifiedIcon ? shouldShowVerifiedIcon(data) : isTeam(data) && data.verified;
|
|
21
|
+
var showIcon = shouldShowVerifiedIcon ? shouldShowVerifiedIcon(data) : isTeam(data) && data.verified || isGroup(data) && data.includeTeamsUpdates;
|
|
21
22
|
if (showIcon) {
|
|
22
|
-
return /*#__PURE__*/React.createElement(VerifiedTeamIcon,
|
|
23
|
+
return /*#__PURE__*/React.createElement(VerifiedTeamIcon, {
|
|
24
|
+
size: data.includeTeamsUpdates ? 'small' : 'medium'
|
|
25
|
+
});
|
|
23
26
|
}
|
|
24
27
|
return null;
|
|
25
28
|
};
|
|
@@ -32,7 +35,14 @@ export var SingleValue = function SingleValue(props) {
|
|
|
32
35
|
isFocused = _props$selectProps.isFocused;
|
|
33
36
|
return !isFocused ? /*#__PURE__*/React.createElement(components.SingleValue, props, /*#__PURE__*/React.createElement(Flex, {
|
|
34
37
|
xcss: styles.avatarItem
|
|
35
|
-
}, /*#__PURE__*/React.createElement(
|
|
38
|
+
}, data.icon && fg('atlaskit_user_picker_support_icon') ? /*#__PURE__*/React.createElement(AvatarOrIcon, {
|
|
39
|
+
icon: data.icon,
|
|
40
|
+
iconColor: data.iconColor,
|
|
41
|
+
src: getAvatarUrl(data),
|
|
42
|
+
appearance: appearance,
|
|
43
|
+
type: isTeam(data) ? 'team' : 'person',
|
|
44
|
+
avatarAppearanceShape: fg('jira_ai_agent_avatar_user_picker_user_option') ? getAppearanceForAppType(data.appType) : undefined
|
|
45
|
+
}) : /*#__PURE__*/React.createElement(SizeableAvatar, {
|
|
36
46
|
src: getAvatarUrl(data),
|
|
37
47
|
appearance: appearance,
|
|
38
48
|
type: isTeam(data) ? 'team' : 'person',
|
|
@@ -14,6 +14,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
14
14
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import { components } from '@atlaskit/select';
|
|
17
|
+
import { AvatarOrIcon } from './AvatarOrIcon';
|
|
17
18
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
18
19
|
import ValueContainerWrapper from './ValueContainerWrapper';
|
|
19
20
|
import { getAppearanceForAppType } from '@atlaskit/avatar';
|
|
@@ -44,11 +45,24 @@ export var SingleValueContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
44
45
|
value = _this$props$selectPro.value,
|
|
45
46
|
placeholderAvatar = _this$props$selectPro.placeholderAvatar;
|
|
46
47
|
if (isFocused || !hasValue) {
|
|
48
|
+
var userData = showUserAvatar(inputValue, value) ? value.data : undefined;
|
|
49
|
+
// Only use icon if feature gate is enabled
|
|
50
|
+
if (userData !== null && userData !== void 0 && userData.icon && fg('atlaskit_user_picker_support_icon')) {
|
|
51
|
+
return /*#__PURE__*/React.createElement(AvatarOrIcon, {
|
|
52
|
+
appearance: appearance,
|
|
53
|
+
icon: userData.icon,
|
|
54
|
+
iconColor: userData.iconColor,
|
|
55
|
+
type: placeholderAvatar,
|
|
56
|
+
src: userData.avatarUrl,
|
|
57
|
+
avatarAppearanceShape: userData && fg('jira_ai_agent_avatar_user_picker_user_option') ? getAppearanceForAppType(userData.appType) : undefined
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
// Fallback to original behavior
|
|
47
61
|
return /*#__PURE__*/React.createElement(SizeableAvatar, {
|
|
48
62
|
appearance: appearance,
|
|
49
63
|
type: placeholderAvatar,
|
|
50
|
-
src:
|
|
51
|
-
avatarAppearanceShape:
|
|
64
|
+
src: userData === null || userData === void 0 ? void 0 : userData.avatarUrl,
|
|
65
|
+
avatarAppearanceShape: userData && fg('jira_ai_agent_avatar_user_picker_user_option') ? getAppearanceForAppType(userData.appType) : undefined
|
|
52
66
|
});
|
|
53
67
|
}
|
|
54
68
|
return null;
|