@atlaskit/reactions 22.0.4 → 22.2.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 +16 -0
- package/dist/cjs/components/Reaction/styles.js +1 -1
- package/dist/cjs/components/ReactionPicker/ReactionPicker.js +4 -4
- package/dist/cjs/components/ReactionPicker/styles.js +1 -2
- package/dist/cjs/components/Reactions/Reactions.js +6 -5
- package/dist/cjs/components/Reactions/styles.js +9 -7
- package/dist/cjs/components/Trigger/styles.js +10 -5
- package/dist/cjs/hooks/useClickAway.js +4 -2
- package/dist/cjs/i18n/cs.js +12 -3
- package/dist/cjs/i18n/da.js +12 -3
- package/dist/cjs/i18n/de.js +12 -3
- package/dist/cjs/i18n/en.js +21 -4
- package/dist/cjs/i18n/en_GB.js +21 -4
- package/dist/cjs/i18n/en_ZZ.js +13 -3
- package/dist/cjs/i18n/es.js +12 -3
- package/dist/cjs/i18n/et.js +1 -2
- package/dist/cjs/i18n/fi.js +12 -3
- package/dist/cjs/i18n/fr.js +12 -3
- package/dist/cjs/i18n/hu.js +12 -3
- package/dist/cjs/i18n/it.js +12 -3
- package/dist/cjs/i18n/ja.js +12 -3
- package/dist/cjs/i18n/ko.js +12 -3
- package/dist/cjs/i18n/nb.js +12 -3
- package/dist/cjs/i18n/nl.js +12 -3
- package/dist/cjs/i18n/pl.js +12 -3
- package/dist/cjs/i18n/pt_BR.js +12 -3
- package/dist/cjs/i18n/pt_PT.js +1 -2
- package/dist/cjs/i18n/ru.js +12 -3
- package/dist/cjs/i18n/sk.js +1 -2
- package/dist/cjs/i18n/sv.js +12 -3
- package/dist/cjs/i18n/th.js +12 -3
- package/dist/cjs/i18n/tr.js +12 -3
- package/dist/cjs/i18n/uk.js +12 -3
- package/dist/cjs/i18n/vi.js +12 -3
- package/dist/cjs/i18n/zh.js +12 -3
- package/dist/cjs/i18n/zh_TW.js +12 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Reaction/styles.js +1 -1
- package/dist/es2019/components/ReactionPicker/ReactionPicker.js +4 -4
- package/dist/es2019/components/ReactionPicker/styles.js +1 -2
- package/dist/es2019/components/Reactions/Reactions.js +5 -5
- package/dist/es2019/components/Reactions/styles.js +7 -5
- package/dist/es2019/components/Trigger/styles.js +9 -5
- package/dist/es2019/hooks/useClickAway.js +4 -3
- package/dist/es2019/i18n/cs.js +12 -3
- package/dist/es2019/i18n/da.js +12 -3
- package/dist/es2019/i18n/de.js +12 -3
- package/dist/es2019/i18n/en.js +20 -4
- package/dist/es2019/i18n/en_GB.js +20 -4
- package/dist/es2019/i18n/en_ZZ.js +13 -3
- package/dist/es2019/i18n/es.js +12 -3
- package/dist/es2019/i18n/et.js +1 -2
- package/dist/es2019/i18n/fi.js +12 -3
- package/dist/es2019/i18n/fr.js +12 -3
- package/dist/es2019/i18n/hu.js +12 -3
- package/dist/es2019/i18n/it.js +12 -3
- package/dist/es2019/i18n/ja.js +12 -3
- package/dist/es2019/i18n/ko.js +12 -3
- package/dist/es2019/i18n/nb.js +12 -3
- package/dist/es2019/i18n/nl.js +12 -3
- package/dist/es2019/i18n/pl.js +12 -3
- package/dist/es2019/i18n/pt_BR.js +12 -3
- package/dist/es2019/i18n/pt_PT.js +1 -2
- package/dist/es2019/i18n/ru.js +12 -3
- package/dist/es2019/i18n/sk.js +1 -2
- package/dist/es2019/i18n/sv.js +12 -3
- package/dist/es2019/i18n/th.js +12 -3
- package/dist/es2019/i18n/tr.js +12 -3
- package/dist/es2019/i18n/uk.js +12 -3
- package/dist/es2019/i18n/vi.js +12 -3
- package/dist/es2019/i18n/zh.js +12 -3
- package/dist/es2019/i18n/zh_TW.js +12 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Reaction/styles.js +1 -1
- package/dist/esm/components/ReactionPicker/ReactionPicker.js +4 -4
- package/dist/esm/components/ReactionPicker/styles.js +1 -2
- package/dist/esm/components/Reactions/Reactions.js +6 -5
- package/dist/esm/components/Reactions/styles.js +7 -5
- package/dist/esm/components/Trigger/styles.js +9 -5
- package/dist/esm/hooks/useClickAway.js +4 -2
- package/dist/esm/i18n/cs.js +12 -3
- package/dist/esm/i18n/da.js +12 -3
- package/dist/esm/i18n/de.js +12 -3
- package/dist/esm/i18n/en.js +20 -4
- package/dist/esm/i18n/en_GB.js +20 -4
- package/dist/esm/i18n/en_ZZ.js +13 -3
- package/dist/esm/i18n/es.js +12 -3
- package/dist/esm/i18n/et.js +1 -2
- package/dist/esm/i18n/fi.js +12 -3
- package/dist/esm/i18n/fr.js +12 -3
- package/dist/esm/i18n/hu.js +12 -3
- package/dist/esm/i18n/it.js +12 -3
- package/dist/esm/i18n/ja.js +12 -3
- package/dist/esm/i18n/ko.js +12 -3
- package/dist/esm/i18n/nb.js +12 -3
- package/dist/esm/i18n/nl.js +12 -3
- package/dist/esm/i18n/pl.js +12 -3
- package/dist/esm/i18n/pt_BR.js +12 -3
- package/dist/esm/i18n/pt_PT.js +1 -2
- package/dist/esm/i18n/ru.js +12 -3
- package/dist/esm/i18n/sk.js +1 -2
- package/dist/esm/i18n/sv.js +12 -3
- package/dist/esm/i18n/th.js +12 -3
- package/dist/esm/i18n/tr.js +12 -3
- package/dist/esm/i18n/uk.js +12 -3
- package/dist/esm/i18n/vi.js +12 -3
- package/dist/esm/i18n/zh.js +12 -3
- package/dist/esm/i18n/zh_TW.js +12 -3
- package/dist/esm/version.json +1 -1
- package/dist/types/components/Reactions/Reactions.d.ts +1 -1
- package/dist/types/components/Reactions/styles.d.ts +1 -1
- package/dist/types/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +1 -1
- package/dist/types/hooks/useClickAway.d.ts +2 -1
- package/dist/types/i18n/cs.d.ts +10 -1
- package/dist/types/i18n/da.d.ts +10 -1
- package/dist/types/i18n/de.d.ts +10 -1
- package/dist/types/i18n/en.d.ts +18 -2
- package/dist/types/i18n/en_GB.d.ts +18 -2
- package/dist/types/i18n/en_ZZ.d.ts +11 -1
- package/dist/types/i18n/es.d.ts +10 -1
- package/dist/types/i18n/et.d.ts +0 -1
- package/dist/types/i18n/fi.d.ts +10 -1
- package/dist/types/i18n/fr.d.ts +10 -1
- package/dist/types/i18n/hu.d.ts +10 -1
- package/dist/types/i18n/it.d.ts +10 -1
- package/dist/types/i18n/ja.d.ts +10 -1
- package/dist/types/i18n/ko.d.ts +10 -1
- package/dist/types/i18n/nb.d.ts +10 -1
- package/dist/types/i18n/nl.d.ts +10 -1
- package/dist/types/i18n/pl.d.ts +10 -1
- package/dist/types/i18n/pt_BR.d.ts +10 -1
- package/dist/types/i18n/pt_PT.d.ts +0 -1
- package/dist/types/i18n/ru.d.ts +10 -1
- package/dist/types/i18n/sk.d.ts +0 -1
- package/dist/types/i18n/sv.d.ts +10 -1
- package/dist/types/i18n/th.d.ts +10 -1
- package/dist/types/i18n/tr.d.ts +10 -1
- package/dist/types/i18n/uk.d.ts +10 -1
- package/dist/types/i18n/vi.d.ts +10 -1
- package/dist/types/i18n/zh.d.ts +10 -1
- package/dist/types/i18n/zh_TW.d.ts +10 -1
- package/package.json +2 -2
package/dist/cjs/i18n/pt_BR.js
CHANGED
|
@@ -13,9 +13,18 @@ exports.default = void 0;
|
|
|
13
13
|
*/
|
|
14
14
|
//Portuguese (Brazil)
|
|
15
15
|
var _default = {
|
|
16
|
-
'fabric.reactions.
|
|
16
|
+
'fabric.reactions.add': 'Adicionar reação',
|
|
17
|
+
'fabric.reactions.error.unexpected': 'As reações estão indisponíveis no momento',
|
|
17
18
|
'fabric.reactions.loading': 'Carregando...',
|
|
18
|
-
'fabric.reactions.more.
|
|
19
|
-
'fabric.reactions.
|
|
19
|
+
'fabric.reactions.more.emojis': 'Mais emojis',
|
|
20
|
+
'fabric.reactions.more.info': 'Mais informações',
|
|
21
|
+
'fabric.reactions.other.reacted.users': '{count, plural, one {e mais um} other {e mais {count}}}',
|
|
22
|
+
'fabric.reactions.reactwithemoji': 'Reaja com um emoji {emoji}',
|
|
23
|
+
'reactions.dialog.close': 'Fechar',
|
|
24
|
+
'reactions.dialog.left.navigate': 'Navegar para a esquerda',
|
|
25
|
+
'reactions.dialog.reactions.count': '{count, plural, one {{count,number} reação} other {{count,number} reações}}',
|
|
26
|
+
'reactions.dialog.right.navigate': 'Navegar para a direita',
|
|
27
|
+
'reactions.dialog.viewall': 'Ver quem reagiu',
|
|
28
|
+
'reactions.dialog.viewall.tooltip': 'Veja todas as reações de usuários'
|
|
20
29
|
};
|
|
21
30
|
exports.default = _default;
|
package/dist/cjs/i18n/pt_PT.js
CHANGED
|
@@ -14,7 +14,6 @@ exports.default = void 0;
|
|
|
14
14
|
//Portuguese (Portugal)
|
|
15
15
|
var _default = {
|
|
16
16
|
'fabric.reactions.error.unexpected': 'Ocorreu um erro',
|
|
17
|
-
'fabric.reactions.loading': 'A carregar...'
|
|
18
|
-
'fabric.reactions.more.emoji': 'Mais emoji'
|
|
17
|
+
'fabric.reactions.loading': 'A carregar...'
|
|
19
18
|
};
|
|
20
19
|
exports.default = _default;
|
package/dist/cjs/i18n/ru.js
CHANGED
|
@@ -13,9 +13,18 @@ exports.default = void 0;
|
|
|
13
13
|
*/
|
|
14
14
|
//Russian
|
|
15
15
|
var _default = {
|
|
16
|
-
'fabric.reactions.
|
|
16
|
+
'fabric.reactions.add': 'Добавить реакцию',
|
|
17
|
+
'fabric.reactions.error.unexpected': 'Реакции временно недоступны',
|
|
17
18
|
'fabric.reactions.loading': 'Загрузка…',
|
|
18
|
-
'fabric.reactions.more.
|
|
19
|
-
'fabric.reactions.
|
|
19
|
+
'fabric.reactions.more.emojis': 'Другие эмодзи',
|
|
20
|
+
'fabric.reactions.more.info': 'Подробнее',
|
|
21
|
+
'fabric.reactions.other.reacted.users': '{count, plural, one {и еще один} few {и еще {count}} many {и еще {count}} other {и еще {count}}}',
|
|
22
|
+
'fabric.reactions.reactwithemoji': 'Отреагировать с помощью эмодзи {emoji}',
|
|
23
|
+
'reactions.dialog.close': 'Закрыть',
|
|
24
|
+
'reactions.dialog.left.navigate': 'Навигация влево',
|
|
25
|
+
'reactions.dialog.reactions.count': '{count, plural, one {{count,number} реакция} few {{count,number} реакции} many {{count,number} реакций} other {{count,number} реакции}}',
|
|
26
|
+
'reactions.dialog.right.navigate': 'Навигация вправо',
|
|
27
|
+
'reactions.dialog.viewall': 'Посмотреть, кто отреагировал',
|
|
28
|
+
'reactions.dialog.viewall.tooltip': 'Посмотреть все реакции пользователей'
|
|
20
29
|
};
|
|
21
30
|
exports.default = _default;
|
package/dist/cjs/i18n/sk.js
CHANGED
|
@@ -14,7 +14,6 @@ exports.default = void 0;
|
|
|
14
14
|
//Slovak
|
|
15
15
|
var _default = {
|
|
16
16
|
'fabric.reactions.error.unexpected': 'Niečo sa nepodarilo',
|
|
17
|
-
'fabric.reactions.loading': 'Načítava sa...'
|
|
18
|
-
'fabric.reactions.more.emoji': 'Viac zábavných obrázkov'
|
|
17
|
+
'fabric.reactions.loading': 'Načítava sa...'
|
|
19
18
|
};
|
|
20
19
|
exports.default = _default;
|
package/dist/cjs/i18n/sv.js
CHANGED
|
@@ -13,9 +13,18 @@ exports.default = void 0;
|
|
|
13
13
|
*/
|
|
14
14
|
//Swedish
|
|
15
15
|
var _default = {
|
|
16
|
-
'fabric.reactions.
|
|
16
|
+
'fabric.reactions.add': 'Lägg till reaktion',
|
|
17
|
+
'fabric.reactions.error.unexpected': 'Reaktioner är inte tillgängliga just nu',
|
|
17
18
|
'fabric.reactions.loading': 'Läser in ...',
|
|
18
|
-
'fabric.reactions.more.
|
|
19
|
-
'fabric.reactions.
|
|
19
|
+
'fabric.reactions.more.emojis': 'Fler emojis',
|
|
20
|
+
'fabric.reactions.more.info': 'Mer info',
|
|
21
|
+
'fabric.reactions.other.reacted.users': '{count, plural, one {och en annan} other {och {count} andra}}',
|
|
22
|
+
'fabric.reactions.reactwithemoji': 'Reagera med emojin {emoji}',
|
|
23
|
+
'reactions.dialog.close': 'Stäng',
|
|
24
|
+
'reactions.dialog.left.navigate': 'Vänster navigering',
|
|
25
|
+
'reactions.dialog.reactions.count': '{count, plural, one {{count,number} reaktion} other {{count,number} reaktioner}}',
|
|
26
|
+
'reactions.dialog.right.navigate': 'Höger navigering',
|
|
27
|
+
'reactions.dialog.viewall': 'Se vem som har reagerat',
|
|
28
|
+
'reactions.dialog.viewall.tooltip': 'Visa alla reaktioner från användare'
|
|
20
29
|
};
|
|
21
30
|
exports.default = _default;
|
package/dist/cjs/i18n/th.js
CHANGED
|
@@ -13,9 +13,18 @@ exports.default = void 0;
|
|
|
13
13
|
*/
|
|
14
14
|
//Thai (Thailand)
|
|
15
15
|
var _default = {
|
|
16
|
-
'fabric.reactions.
|
|
16
|
+
'fabric.reactions.add': 'เพิ่มการโต้ตอบ',
|
|
17
|
+
'fabric.reactions.error.unexpected': 'การแสดงปฏิกิริยาไม่สามารถใช้งานได้ชั่วคราว',
|
|
17
18
|
'fabric.reactions.loading': 'กำลังโหลด...',
|
|
18
|
-
'fabric.reactions.more.
|
|
19
|
-
'fabric.reactions.
|
|
19
|
+
'fabric.reactions.more.emojis': 'เอโมจิเพิ่มเติม',
|
|
20
|
+
'fabric.reactions.more.info': 'ข้อมูลเพิ่มเติม',
|
|
21
|
+
'fabric.reactions.other.reacted.users': '{count, plural, other {และคนอื่น ๆ อีก {count} คน}}',
|
|
22
|
+
'fabric.reactions.reactwithemoji': 'แสดงปฏิกิริยาด้วยเอโมจิ {emoji}',
|
|
23
|
+
'reactions.dialog.close': 'ปิด',
|
|
24
|
+
'reactions.dialog.left.navigate': 'นำทางไปทางซ้าย',
|
|
25
|
+
'reactions.dialog.reactions.count': '{count, plural, other {{count,number} การโต้ตอบ}}',
|
|
26
|
+
'reactions.dialog.right.navigate': 'นำทางไปทางขวา',
|
|
27
|
+
'reactions.dialog.viewall': 'ดูว่าใครตอบสนอง',
|
|
28
|
+
'reactions.dialog.viewall.tooltip': 'ดูผู้ใช้ที่ตอบสนองทั้งหมด'
|
|
20
29
|
};
|
|
21
30
|
exports.default = _default;
|
package/dist/cjs/i18n/tr.js
CHANGED
|
@@ -13,9 +13,18 @@ exports.default = void 0;
|
|
|
13
13
|
*/
|
|
14
14
|
//Turkish (Turkey)
|
|
15
15
|
var _default = {
|
|
16
|
-
'fabric.reactions.
|
|
16
|
+
'fabric.reactions.add': 'Tepki ekle',
|
|
17
|
+
'fabric.reactions.error.unexpected': 'Tepkiler geçici olarak kullanılamıyor',
|
|
17
18
|
'fabric.reactions.loading': 'Yükleniyor...',
|
|
18
|
-
'fabric.reactions.more.
|
|
19
|
-
'fabric.reactions.
|
|
19
|
+
'fabric.reactions.more.emojis': 'Daha fazla emoji',
|
|
20
|
+
'fabric.reactions.more.info': 'Daha fazla bilgi',
|
|
21
|
+
'fabric.reactions.other.reacted.users': '{count, plural, one {ve bir kişi daha} other {ve {count} kişi daha}}',
|
|
22
|
+
'fabric.reactions.reactwithemoji': "{emoji} emoji'siyle tepki verin",
|
|
23
|
+
'reactions.dialog.close': 'Kapat',
|
|
24
|
+
'reactions.dialog.left.navigate': 'Sol Gezinme',
|
|
25
|
+
'reactions.dialog.reactions.count': '{count, plural, one {{count,number} tepki} other {{count,number} tepki}}',
|
|
26
|
+
'reactions.dialog.right.navigate': 'Sağ Gezinme',
|
|
27
|
+
'reactions.dialog.viewall': 'Kimin tepki verdiğini görün',
|
|
28
|
+
'reactions.dialog.viewall.tooltip': 'Tüm kullanıcı tepkilerini görüntüleyin'
|
|
20
29
|
};
|
|
21
30
|
exports.default = _default;
|
package/dist/cjs/i18n/uk.js
CHANGED
|
@@ -13,9 +13,18 @@ exports.default = void 0;
|
|
|
13
13
|
*/
|
|
14
14
|
//Ukrainian (Ukraine)
|
|
15
15
|
var _default = {
|
|
16
|
-
'fabric.reactions.
|
|
16
|
+
'fabric.reactions.add': 'Додати реакцію',
|
|
17
|
+
'fabric.reactions.error.unexpected': 'Реакції тимчасово недоступні',
|
|
17
18
|
'fabric.reactions.loading': 'Завантаження...',
|
|
18
|
-
'fabric.reactions.more.
|
|
19
|
-
'fabric.reactions.
|
|
19
|
+
'fabric.reactions.more.emojis': 'Інші емодзі',
|
|
20
|
+
'fabric.reactions.more.info': 'Докладніше',
|
|
21
|
+
'fabric.reactions.other.reacted.users': '{count, plural, one {і ще {count} особа} few {і ще {count} особи} many {і ще {count} осіб} other {і ще {count} особи}}',
|
|
22
|
+
'fabric.reactions.reactwithemoji': 'Вставити емодзі {emoji}',
|
|
23
|
+
'reactions.dialog.close': 'Закрити',
|
|
24
|
+
'reactions.dialog.left.navigate': 'Перейти вліво',
|
|
25
|
+
'reactions.dialog.reactions.count': '{count, plural, one {{count,number} реакція} few {{count,number} реакції} many {{count,number} реакцій} other {{count,number} реакції}}',
|
|
26
|
+
'reactions.dialog.right.navigate': 'Перейти вправо',
|
|
27
|
+
'reactions.dialog.viewall': 'Переглянути, хто відреагував',
|
|
28
|
+
'reactions.dialog.viewall.tooltip': 'Переглянути всі реакції користувачів'
|
|
20
29
|
};
|
|
21
30
|
exports.default = _default;
|
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -13,9 +13,18 @@ exports.default = void 0;
|
|
|
13
13
|
*/
|
|
14
14
|
//Vietnamese (Vietnam)
|
|
15
15
|
var _default = {
|
|
16
|
-
'fabric.reactions.
|
|
16
|
+
'fabric.reactions.add': 'Thêm tương tác',
|
|
17
|
+
'fabric.reactions.error.unexpected': 'Tính năng tương tác tạm thời không hỗ trợ',
|
|
17
18
|
'fabric.reactions.loading': 'Đang tải...',
|
|
18
|
-
'fabric.reactions.more.
|
|
19
|
-
'fabric.reactions.
|
|
19
|
+
'fabric.reactions.more.emojis': 'Biểu tượng cảm xúc khác',
|
|
20
|
+
'fabric.reactions.more.info': 'Xem thêm thông tin',
|
|
21
|
+
'fabric.reactions.other.reacted.users': '{count, plural, other {và {count} người khác}}',
|
|
22
|
+
'fabric.reactions.reactwithemoji': 'Bày tỏ biểu tượng cảm xúc {emoji}',
|
|
23
|
+
'reactions.dialog.close': 'Đóng',
|
|
24
|
+
'reactions.dialog.left.navigate': 'Sang trái',
|
|
25
|
+
'reactions.dialog.reactions.count': '{count, plural, other {{count,number} tương tác}}',
|
|
26
|
+
'reactions.dialog.right.navigate': 'Sang phải',
|
|
27
|
+
'reactions.dialog.viewall': 'Xem ai đã bày tỏ cảm xúc',
|
|
28
|
+
'reactions.dialog.viewall.tooltip': 'Xem tất cả tương tác của người dùng'
|
|
20
29
|
};
|
|
21
30
|
exports.default = _default;
|
package/dist/cjs/i18n/zh.js
CHANGED
|
@@ -13,9 +13,18 @@ exports.default = void 0;
|
|
|
13
13
|
*/
|
|
14
14
|
//Chinese (Simplified)
|
|
15
15
|
var _default = {
|
|
16
|
-
'fabric.reactions.
|
|
16
|
+
'fabric.reactions.add': '添加反应',
|
|
17
|
+
'fabric.reactions.error.unexpected': '反应暂时不可用',
|
|
17
18
|
'fabric.reactions.loading': '正在加载...',
|
|
18
|
-
'fabric.reactions.more.
|
|
19
|
-
'fabric.reactions.
|
|
19
|
+
'fabric.reactions.more.emojis': '更多表情',
|
|
20
|
+
'fabric.reactions.more.info': '更多信息',
|
|
21
|
+
'fabric.reactions.other.reacted.users': '{count, plural, other {以及其他 {count} 个人}}',
|
|
22
|
+
'fabric.reactions.reactwithemoji': '使用 {emoji} 表情回应',
|
|
23
|
+
'reactions.dialog.close': '关闭',
|
|
24
|
+
'reactions.dialog.left.navigate': '向左导航',
|
|
25
|
+
'reactions.dialog.reactions.count': '{count, plural, other {{count,number} 条反应}}',
|
|
26
|
+
'reactions.dialog.right.navigate': '向右导航',
|
|
27
|
+
'reactions.dialog.viewall': '查看哪些人已反应',
|
|
28
|
+
'reactions.dialog.viewall.tooltip': '查看所有用户反应'
|
|
20
29
|
};
|
|
21
30
|
exports.default = _default;
|
package/dist/cjs/i18n/zh_TW.js
CHANGED
|
@@ -13,9 +13,18 @@ exports.default = void 0;
|
|
|
13
13
|
*/
|
|
14
14
|
//Chinese (Traditional)
|
|
15
15
|
var _default = {
|
|
16
|
-
'fabric.reactions.
|
|
16
|
+
'fabric.reactions.add': '新增反應',
|
|
17
|
+
'fabric.reactions.error.unexpected': '暫時無法使用回覆功能',
|
|
17
18
|
'fabric.reactions.loading': '正在載入...',
|
|
18
|
-
'fabric.reactions.more.
|
|
19
|
-
'fabric.reactions.
|
|
19
|
+
'fabric.reactions.more.emojis': '更多表情符號',
|
|
20
|
+
'fabric.reactions.more.info': '更多資訊',
|
|
21
|
+
'fabric.reactions.other.reacted.users': '{count, plural, other {還有其他 {count} 個}}',
|
|
22
|
+
'fabric.reactions.reactwithemoji': '使用 {emoji} 表情符號回應',
|
|
23
|
+
'reactions.dialog.close': '關閉',
|
|
24
|
+
'reactions.dialog.left.navigate': '左側導覽',
|
|
25
|
+
'reactions.dialog.reactions.count': '{count, plural, other {{count,number} 個回應}}',
|
|
26
|
+
'reactions.dialog.right.navigate': '右側導覽',
|
|
27
|
+
'reactions.dialog.viewall': '查看誰新增了回應',
|
|
28
|
+
'reactions.dialog.viewall.tooltip': '檢視所有使用者的回應'
|
|
20
29
|
};
|
|
21
30
|
exports.default = _default;
|
package/dist/cjs/version.json
CHANGED
|
@@ -95,7 +95,7 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
95
95
|
useClickAway(wrapperRef, () => {
|
|
96
96
|
onCancel();
|
|
97
97
|
close();
|
|
98
|
-
}, 'click', true);
|
|
98
|
+
}, 'click', true, settings.isOpen);
|
|
99
99
|
/**
|
|
100
100
|
* Event callback when the picker is closed
|
|
101
101
|
* @param _id Optional id if an emoji button was selected or undefineed if was clicked outside the picker
|
|
@@ -173,7 +173,8 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
173
173
|
return jsx("div", {
|
|
174
174
|
className: wrapperClassName,
|
|
175
175
|
css: styles.pickerStyle,
|
|
176
|
-
"data-testid": RENDER_REACTIONPICKER_TESTID
|
|
176
|
+
"data-testid": RENDER_REACTIONPICKER_TESTID,
|
|
177
|
+
ref: wrapperRef
|
|
177
178
|
}, jsx(Manager, null, jsx(Reference, null, ({
|
|
178
179
|
ref: popperRef
|
|
179
180
|
}) => // Render a button to open the <Selector /> panel
|
|
@@ -204,8 +205,7 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
204
205
|
},
|
|
205
206
|
ref: ref
|
|
206
207
|
}, jsx("div", {
|
|
207
|
-
css: styles.popupStyle
|
|
208
|
-
ref: wrapperRef
|
|
208
|
+
css: styles.popupStyle
|
|
209
209
|
}, settings.showFullPicker ? jsx(EmojiPicker, {
|
|
210
210
|
emojiProvider: emojiProvider,
|
|
211
211
|
onSelection: onEmojiSelected,
|
|
@@ -86,7 +86,8 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
86
86
|
onDialogOpenCallback = () => {},
|
|
87
87
|
onDialogCloseCallback = () => {},
|
|
88
88
|
onDialogSelectReactionCallback = () => {},
|
|
89
|
-
emojiPickerSize = 'medium'
|
|
89
|
+
emojiPickerSize = 'medium',
|
|
90
|
+
miniMode = false
|
|
90
91
|
}) => {
|
|
91
92
|
const [selectedEmojiId, setSelectedEmojiId] = useState();
|
|
92
93
|
const {
|
|
@@ -239,7 +240,6 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
239
240
|
"data-testid": RENDER_REACTIONS_TESTID
|
|
240
241
|
}, memorizedReactions.map(reaction => jsx(Reaction, {
|
|
241
242
|
key: reaction.emojiId,
|
|
242
|
-
css: styles.reactionStyle,
|
|
243
243
|
reaction: reaction,
|
|
244
244
|
emojiProvider: emojiProvider,
|
|
245
245
|
onClick: onReactionClick,
|
|
@@ -249,9 +249,8 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
249
249
|
handleUserListClick: handleOpenReactionsDialog,
|
|
250
250
|
allowUserDialog: allowUserDialog
|
|
251
251
|
})), jsx(ReactionPicker, {
|
|
252
|
-
css: styles.
|
|
252
|
+
css: styles.reactionPickerStyle,
|
|
253
253
|
emojiProvider: emojiProvider,
|
|
254
|
-
miniMode: true,
|
|
255
254
|
allowAllEmojis: allowAllEmojis,
|
|
256
255
|
pickerQuickReactionEmojiIds: pickerQuickReactionEmojiIds,
|
|
257
256
|
disabled: status !== ReactionStatus.ready,
|
|
@@ -260,7 +259,8 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
260
259
|
onCancel: handleOnCancel,
|
|
261
260
|
onShowMore: handleOnMore,
|
|
262
261
|
tooltipContent: getTooltip(status, errorMessage),
|
|
263
|
-
emojiPickerSize: emojiPickerSize
|
|
262
|
+
emojiPickerSize: emojiPickerSize,
|
|
263
|
+
miniMode: miniMode
|
|
264
264
|
}), allowUserDialog && reactions.length > 0 && jsx(Tooltip, {
|
|
265
265
|
content: jsx(FormattedMessage, i18n.messages.seeWhoReactedTooltip),
|
|
266
266
|
hideTooltipOnClick: true
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
export const
|
|
3
|
+
export const reactionPickerStyle = css({
|
|
4
4
|
display: 'inline-block',
|
|
5
|
-
|
|
5
|
+
marginTop: '4px'
|
|
6
6
|
});
|
|
7
7
|
export const seeWhoReacted = css({
|
|
8
8
|
height: '24px',
|
|
9
9
|
lineHeight: '24px',
|
|
10
|
-
paddingLeft:
|
|
11
|
-
paddingRight:
|
|
12
|
-
|
|
10
|
+
paddingLeft: 0,
|
|
11
|
+
paddingRight: 0,
|
|
12
|
+
marginTop: '4px',
|
|
13
|
+
marginLeft: '4px'
|
|
13
14
|
});
|
|
14
15
|
export const wrapperStyle = css({
|
|
15
16
|
display: 'flex',
|
|
@@ -17,6 +18,7 @@ export const wrapperStyle = css({
|
|
|
17
18
|
position: 'relative',
|
|
18
19
|
alignItems: 'center',
|
|
19
20
|
borderRadius: '15px',
|
|
21
|
+
marginTop: '-4px',
|
|
20
22
|
'> :first-of-type > :first-of-type': {
|
|
21
23
|
marginLeft: 0
|
|
22
24
|
}
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { N70, N20, N40 } from '@atlaskit/theme/colors';
|
|
4
|
+
import { borderRadius } from '@atlaskit/theme/constants';
|
|
4
5
|
export const DISABLED_BUTTON_COLOR = `${`var(--ds-text-disabled, ${N70})`} !important`;
|
|
5
6
|
export const triggerStyle = ({
|
|
6
7
|
miniMode = false,
|
|
7
8
|
disabled = false
|
|
8
9
|
}) => css({
|
|
9
10
|
minWidth: '32px',
|
|
10
|
-
height: '
|
|
11
|
+
height: '24px',
|
|
12
|
+
padding: 0,
|
|
13
|
+
border: `1px solid ${`var(--ds-border, ${N40})`}`,
|
|
14
|
+
borderRadius: '20px',
|
|
11
15
|
display: 'flex',
|
|
12
16
|
justifyContent: 'center',
|
|
13
17
|
alignItems: 'center',
|
|
14
18
|
lineHeight: '16px',
|
|
15
19
|
...(miniMode && {
|
|
16
|
-
|
|
17
|
-
padding:
|
|
18
|
-
border:
|
|
19
|
-
borderRadius:
|
|
20
|
+
minWidth: '24px',
|
|
21
|
+
padding: '4px',
|
|
22
|
+
border: 'none',
|
|
23
|
+
borderRadius: `${borderRadius()}px`
|
|
20
24
|
}),
|
|
21
25
|
...(disabled && {
|
|
22
26
|
color: DISABLED_BUTTON_COLOR,
|
|
@@ -5,15 +5,16 @@ import { useEffect } from 'react';
|
|
|
5
5
|
* @param callback event callback when detected a click outside the ref object
|
|
6
6
|
* @param type (Optional) type of event to listen to. @default click
|
|
7
7
|
* @param useCapture (Optional) use capture phase of event. @default false
|
|
8
|
+
* @param enabled (Optional) enable/disable the outside click handler. @default true
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
|
-
export function useClickAway(ref, callback, type = 'click', useCapture = false) {
|
|
11
|
+
export function useClickAway(ref, callback, type = 'click', useCapture = false, enabled = true) {
|
|
11
12
|
useEffect(() => {
|
|
12
13
|
/**
|
|
13
14
|
* Alert if clicked on outside of element
|
|
14
15
|
*/
|
|
15
16
|
function handleClickOutside(event) {
|
|
16
|
-
if (ref.current && event.target instanceof Node && !ref.current.contains(event.target)) {
|
|
17
|
+
if (ref.current && event.target instanceof Node && !ref.current.contains(event.target) && enabled) {
|
|
17
18
|
callback();
|
|
18
19
|
}
|
|
19
20
|
} // Bind the event listener
|
|
@@ -24,5 +25,5 @@ export function useClickAway(ref, callback, type = 'click', useCapture = false)
|
|
|
24
25
|
// Unbind the event listener on clean up
|
|
25
26
|
document.removeEventListener(type, handleClickOutside, useCapture);
|
|
26
27
|
};
|
|
27
|
-
}, [ref, callback, type, useCapture]);
|
|
28
|
+
}, [ref, callback, type, useCapture, enabled]);
|
|
28
29
|
}
|
package/dist/es2019/i18n/cs.js
CHANGED
|
@@ -6,8 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
//Czech
|
|
8
8
|
export default {
|
|
9
|
-
'fabric.reactions.
|
|
9
|
+
'fabric.reactions.add': 'Přidat reakci',
|
|
10
|
+
'fabric.reactions.error.unexpected': 'Reakce jsou dočasně nedostupné.',
|
|
10
11
|
'fabric.reactions.loading': 'Načítání...',
|
|
11
|
-
'fabric.reactions.more.
|
|
12
|
-
'fabric.reactions.
|
|
12
|
+
'fabric.reactions.more.emojis': 'Více smajlíků',
|
|
13
|
+
'fabric.reactions.more.info': 'Další informace',
|
|
14
|
+
'fabric.reactions.other.reacted.users': '{count, plural, one {a jeden další} few {a {count} další} many {a {count} dalšího} other {a {count} dalších}}',
|
|
15
|
+
'fabric.reactions.reactwithemoji': 'Reagovat pomocí smajlíku {emoji}',
|
|
16
|
+
'reactions.dialog.close': 'Zavřít',
|
|
17
|
+
'reactions.dialog.left.navigate': 'Navigace doleva',
|
|
18
|
+
'reactions.dialog.reactions.count': '{count, plural, one {{count,number} reakce} few {{count,number} reakce} many {{count,number} reakce} other {{count,number} reakcí}}',
|
|
19
|
+
'reactions.dialog.right.navigate': 'Navigace doprava',
|
|
20
|
+
'reactions.dialog.viewall': 'Podívejte se, kdo reagoval',
|
|
21
|
+
'reactions.dialog.viewall.tooltip': 'Zobrazit všechny reakce uživatelů'
|
|
13
22
|
};
|
package/dist/es2019/i18n/da.js
CHANGED
|
@@ -6,8 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
//Danish (Denmark)
|
|
8
8
|
export default {
|
|
9
|
-
'fabric.reactions.
|
|
9
|
+
'fabric.reactions.add': 'Tilføj reaktion',
|
|
10
|
+
'fabric.reactions.error.unexpected': 'Reaktioner er midlertidigt utilgængelige',
|
|
10
11
|
'fabric.reactions.loading': 'Indlæser ...',
|
|
11
|
-
'fabric.reactions.more.
|
|
12
|
-
'fabric.reactions.
|
|
12
|
+
'fabric.reactions.more.emojis': 'Flere emojis',
|
|
13
|
+
'fabric.reactions.more.info': 'Flere oplysninger',
|
|
14
|
+
'fabric.reactions.other.reacted.users': '{count, plural, one {og én anden} other {og {count} andre}}',
|
|
15
|
+
'fabric.reactions.reactwithemoji': 'Reager med emojien {emoji}',
|
|
16
|
+
'reactions.dialog.close': 'Luk',
|
|
17
|
+
'reactions.dialog.left.navigate': 'Navigation til venstre',
|
|
18
|
+
'reactions.dialog.reactions.count': '{count, plural, one {{count,number} reaktion} other {{count,number} reaktioner}}',
|
|
19
|
+
'reactions.dialog.right.navigate': 'Navigation til højre',
|
|
20
|
+
'reactions.dialog.viewall': 'Se, hvem der har reageret',
|
|
21
|
+
'reactions.dialog.viewall.tooltip': 'Se alle brugerreaktioner'
|
|
13
22
|
};
|
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -6,8 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
//German (Germany)
|
|
8
8
|
export default {
|
|
9
|
-
'fabric.reactions.
|
|
9
|
+
'fabric.reactions.add': 'Reaktion hinzufügen',
|
|
10
|
+
'fabric.reactions.error.unexpected': 'Reaktionen sind vorübergehend nicht verfügbar.',
|
|
10
11
|
'fabric.reactions.loading': 'Wird geladen...',
|
|
11
|
-
'fabric.reactions.more.
|
|
12
|
-
'fabric.reactions.
|
|
12
|
+
'fabric.reactions.more.emojis': 'Mehr Emojis',
|
|
13
|
+
'fabric.reactions.more.info': 'Weitere Informationen',
|
|
14
|
+
'fabric.reactions.other.reacted.users': '{count, plural, one {und ein weiterer} other {und {count} weitere}}',
|
|
15
|
+
'fabric.reactions.reactwithemoji': 'Mit {emoji}-Emoji reagieren',
|
|
16
|
+
'reactions.dialog.close': 'Schließen',
|
|
17
|
+
'reactions.dialog.left.navigate': 'Nach links navigieren',
|
|
18
|
+
'reactions.dialog.reactions.count': '{count, plural, one {{count,number} Reaktion} other {{count,number} Reaktionen}}',
|
|
19
|
+
'reactions.dialog.right.navigate': 'Nach rechts navigieren',
|
|
20
|
+
'reactions.dialog.viewall': 'Reaktionen ansehen',
|
|
21
|
+
'reactions.dialog.viewall.tooltip': 'Alle Benutzerreaktionen anzeigen'
|
|
13
22
|
};
|
package/dist/es2019/i18n/en.js
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
|
|
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
|
+
*/
|
|
7
|
+
//
|
|
2
8
|
export default {
|
|
9
|
+
'fabric.reactions.add': 'Add reaction',
|
|
10
|
+
'fabric.reactions.error.unexpected': 'Reactions are temporarily unavailable',
|
|
3
11
|
'fabric.reactions.loading': 'Loading...',
|
|
4
|
-
'fabric.reactions.more.
|
|
5
|
-
'fabric.reactions.
|
|
6
|
-
'fabric.reactions.other.reacted.users': '{count, plural, one {and one other} other {and
|
|
12
|
+
'fabric.reactions.more.emojis': 'More emojis',
|
|
13
|
+
'fabric.reactions.more.info': 'More info',
|
|
14
|
+
'fabric.reactions.other.reacted.users': '{count, plural, one {and one other} other {and {count} others}}',
|
|
15
|
+
'fabric.reactions.reactwithemoji': 'React with {emoji} emoji',
|
|
16
|
+
'reactions.dialog.close': 'Close',
|
|
17
|
+
'reactions.dialog.emoji.name': '{emojiName}',
|
|
18
|
+
'reactions.dialog.left.navigate': 'Left Navigate',
|
|
19
|
+
'reactions.dialog.reactions.count': '{count, plural, one {# reaction} other {# reactions} }',
|
|
20
|
+
'reactions.dialog.right.navigate': 'Right Navigate',
|
|
21
|
+
'reactions.dialog.viewall': 'See who reacted',
|
|
22
|
+
'reactions.dialog.viewall.tooltip': 'View all user reactions'
|
|
7
23
|
};
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
|
|
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
|
+
*/
|
|
7
|
+
//English (United Kingdom)
|
|
2
8
|
export default {
|
|
9
|
+
'fabric.reactions.add': 'Add reaction',
|
|
10
|
+
'fabric.reactions.error.unexpected': 'Reactions are temporarily unavailable',
|
|
3
11
|
'fabric.reactions.loading': 'Loading...',
|
|
4
|
-
'fabric.reactions.more.
|
|
5
|
-
'fabric.reactions.
|
|
6
|
-
'fabric.reactions.other.reacted.users': '{count, plural, one {and one other} other {and
|
|
12
|
+
'fabric.reactions.more.emojis': 'More emojis',
|
|
13
|
+
'fabric.reactions.more.info': 'More info',
|
|
14
|
+
'fabric.reactions.other.reacted.users': '{count, plural, one {and one other} other {and {count} others}}',
|
|
15
|
+
'fabric.reactions.reactwithemoji': 'React with {emoji} emoji',
|
|
16
|
+
'reactions.dialog.close': 'Close',
|
|
17
|
+
'reactions.dialog.emoji.name': '{emojiName}',
|
|
18
|
+
'reactions.dialog.left.navigate': 'Left Navigate',
|
|
19
|
+
'reactions.dialog.reactions.count': '{count, plural, one {# reaction} other {# reactions} }',
|
|
20
|
+
'reactions.dialog.right.navigate': 'Right Navigate',
|
|
21
|
+
'reactions.dialog.viewall': 'See who reacted',
|
|
22
|
+
'reactions.dialog.viewall.tooltip': 'View all user reactions'
|
|
7
23
|
};
|
|
@@ -6,8 +6,18 @@
|
|
|
6
6
|
*/
|
|
7
7
|
//
|
|
8
8
|
export default {
|
|
9
|
-
'fabric.reactions.
|
|
9
|
+
'fabric.reactions.add': 'Add reaction',
|
|
10
|
+
'fabric.reactions.error.unexpected': 'Reactions are temporarily unavailable',
|
|
10
11
|
'fabric.reactions.loading': 'Loading...',
|
|
11
|
-
'fabric.reactions.more.
|
|
12
|
-
'fabric.reactions.
|
|
12
|
+
'fabric.reactions.more.emojis': 'More emojis',
|
|
13
|
+
'fabric.reactions.more.info': 'More info',
|
|
14
|
+
'fabric.reactions.other.reacted.users': '{count, plural, one {and one other} other {and {count} others}}',
|
|
15
|
+
'fabric.reactions.reactwithemoji': 'React with {emoji} emoji',
|
|
16
|
+
'reactions.dialog.close': 'Close',
|
|
17
|
+
'reactions.dialog.emoji.name': '{emojiName}',
|
|
18
|
+
'reactions.dialog.left.navigate': 'Left Navigate',
|
|
19
|
+
'reactions.dialog.reactions.count': '{reactionsCountFormatted} reactions',
|
|
20
|
+
'reactions.dialog.right.navigate': 'Right Navigate',
|
|
21
|
+
'reactions.dialog.viewall': 'See who reacted',
|
|
22
|
+
'reactions.dialog.viewall.tooltip': 'View all user reactions'
|
|
13
23
|
};
|
package/dist/es2019/i18n/es.js
CHANGED
|
@@ -6,8 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
//Spanish (International)
|
|
8
8
|
export default {
|
|
9
|
-
'fabric.reactions.
|
|
9
|
+
'fabric.reactions.add': 'Añadir reacción',
|
|
10
|
+
'fabric.reactions.error.unexpected': 'Las reacciones no están disponibles temporalmente',
|
|
10
11
|
'fabric.reactions.loading': 'Cargando...',
|
|
11
|
-
'fabric.reactions.more.
|
|
12
|
-
'fabric.reactions.
|
|
12
|
+
'fabric.reactions.more.emojis': 'Más emojis',
|
|
13
|
+
'fabric.reactions.more.info': 'Más información',
|
|
14
|
+
'fabric.reactions.other.reacted.users': '{count, plural, one {y 1 más} other {y {count} más}}',
|
|
15
|
+
'fabric.reactions.reactwithemoji': 'Reaccionar con el emoticono {emoji}',
|
|
16
|
+
'reactions.dialog.close': 'Cerrar',
|
|
17
|
+
'reactions.dialog.left.navigate': 'Desplazarse hacia la izquierda',
|
|
18
|
+
'reactions.dialog.reactions.count': '{count, plural, one {{count,number} reacción} other {{count,number} reacciones}}',
|
|
19
|
+
'reactions.dialog.right.navigate': 'Desplazarse hacia la derecha',
|
|
20
|
+
'reactions.dialog.viewall': 'Ver quién ha reaccionado',
|
|
21
|
+
'reactions.dialog.viewall.tooltip': 'Ver todas las reacciones de los usuarios'
|
|
13
22
|
};
|
package/dist/es2019/i18n/et.js
CHANGED
package/dist/es2019/i18n/fi.js
CHANGED
|
@@ -6,8 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
//Finnish
|
|
8
8
|
export default {
|
|
9
|
-
'fabric.reactions.
|
|
9
|
+
'fabric.reactions.add': 'Lisää reaktio',
|
|
10
|
+
'fabric.reactions.error.unexpected': 'Reaktiot ovat väliaikaisesti poissa käytöstä',
|
|
10
11
|
'fabric.reactions.loading': 'Ladataan...',
|
|
11
|
-
'fabric.reactions.more.
|
|
12
|
-
'fabric.reactions.
|
|
12
|
+
'fabric.reactions.more.emojis': 'Lisää emojeita',
|
|
13
|
+
'fabric.reactions.more.info': 'Lisätietoja',
|
|
14
|
+
'fabric.reactions.other.reacted.users': '{count, plural, one {ja yksi muu} other {ja {count} muuta}}',
|
|
15
|
+
'fabric.reactions.reactwithemoji': 'Reagoi emojilla {emoji}',
|
|
16
|
+
'reactions.dialog.close': 'Sulje',
|
|
17
|
+
'reactions.dialog.left.navigate': 'Navigointi vasemmalle',
|
|
18
|
+
'reactions.dialog.reactions.count': '{count, plural, one {{count,number} reaktio} other {{count,number} reaktiota}}',
|
|
19
|
+
'reactions.dialog.right.navigate': 'Navigointi oikealle',
|
|
20
|
+
'reactions.dialog.viewall': 'Katso, kuka on reagoinut',
|
|
21
|
+
'reactions.dialog.viewall.tooltip': 'Näytä kaikki käyttäjäreaktiot'
|
|
13
22
|
};
|