@atlaskit/smart-card 18.0.16 → 18.0.19
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/client/package.json +1 -0
- package/dist/cjs/i18n/cs.js +43 -0
- package/dist/cjs/i18n/da.js +43 -0
- package/dist/cjs/i18n/de.js +43 -0
- package/dist/cjs/i18n/en.js +43 -0
- package/dist/cjs/i18n/en_GB.js +43 -0
- package/dist/cjs/i18n/en_ZZ.js +43 -0
- package/dist/cjs/i18n/es.js +43 -0
- package/dist/cjs/i18n/et.js +16 -0
- package/dist/cjs/i18n/fi.js +43 -0
- package/dist/cjs/i18n/fr.js +43 -0
- package/dist/cjs/i18n/hu.js +43 -0
- package/dist/cjs/i18n/it.js +43 -0
- package/dist/cjs/i18n/ja.js +43 -0
- package/dist/cjs/i18n/ko.js +43 -0
- package/dist/cjs/i18n/nb.js +43 -0
- package/dist/cjs/i18n/nl.js +43 -0
- package/dist/cjs/i18n/pl.js +43 -0
- package/dist/cjs/i18n/pt_BR.js +43 -0
- package/dist/cjs/i18n/pt_PT.js +16 -0
- package/dist/cjs/i18n/ru.js +43 -0
- package/dist/cjs/i18n/sk.js +16 -0
- package/dist/cjs/i18n/sv.js +43 -0
- package/dist/cjs/i18n/th.js +43 -0
- package/dist/cjs/i18n/tr.js +43 -0
- package/dist/cjs/i18n/uk.js +43 -0
- package/dist/cjs/i18n/vi.js +43 -0
- package/dist/cjs/i18n/zh.js +43 -0
- package/dist/cjs/i18n/zh_TW.js +43 -0
- package/dist/cjs/state/actions/index.js +1 -1
- package/dist/cjs/utils/token.js +1 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +4 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +11 -25
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +4 -11
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +32 -0
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/container/index.js +66 -23
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +37 -0
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +1 -18
- package/dist/cjs/view/FlexibleCard/components/utils.js +20 -1
- package/dist/cjs/view/FlexibleCard/index.js +2 -2
- package/dist/es2019/i18n/cs.js +35 -0
- package/dist/es2019/i18n/da.js +35 -0
- package/dist/es2019/i18n/de.js +35 -0
- package/dist/es2019/i18n/en.js +35 -0
- package/dist/es2019/i18n/en_GB.js +35 -0
- package/dist/es2019/i18n/en_ZZ.js +35 -0
- package/dist/es2019/i18n/es.js +35 -0
- package/dist/es2019/i18n/et.js +8 -0
- package/dist/es2019/i18n/fi.js +35 -0
- package/dist/es2019/i18n/fr.js +35 -0
- package/dist/es2019/i18n/hu.js +35 -0
- package/dist/es2019/i18n/it.js +35 -0
- package/dist/es2019/i18n/ja.js +35 -0
- package/dist/es2019/i18n/ko.js +35 -0
- package/dist/es2019/i18n/nb.js +35 -0
- package/dist/es2019/i18n/nl.js +35 -0
- package/dist/es2019/i18n/pl.js +35 -0
- package/dist/es2019/i18n/pt_BR.js +35 -0
- package/dist/es2019/i18n/pt_PT.js +8 -0
- package/dist/es2019/i18n/ru.js +35 -0
- package/dist/es2019/i18n/sk.js +8 -0
- package/dist/es2019/i18n/sv.js +35 -0
- package/dist/es2019/i18n/th.js +35 -0
- package/dist/es2019/i18n/tr.js +35 -0
- package/dist/es2019/i18n/uk.js +35 -0
- package/dist/es2019/i18n/vi.js +35 -0
- package/dist/es2019/i18n/zh.js +35 -0
- package/dist/es2019/i18n/zh_TW.js +35 -0
- package/dist/es2019/state/actions/index.js +1 -1
- package/dist/es2019/utils/token.js +1 -0
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +6 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +4 -5
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +10 -25
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +4 -31
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +39 -0
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/container/index.js +59 -10
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +54 -0
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +2 -19
- package/dist/es2019/view/FlexibleCard/components/utils.js +16 -0
- package/dist/es2019/view/FlexibleCard/index.js +2 -2
- package/dist/esm/i18n/cs.js +35 -0
- package/dist/esm/i18n/da.js +35 -0
- package/dist/esm/i18n/de.js +35 -0
- package/dist/esm/i18n/en.js +35 -0
- package/dist/esm/i18n/en_GB.js +35 -0
- package/dist/esm/i18n/en_ZZ.js +35 -0
- package/dist/esm/i18n/es.js +35 -0
- package/dist/esm/i18n/et.js +8 -0
- package/dist/esm/i18n/fi.js +35 -0
- package/dist/esm/i18n/fr.js +35 -0
- package/dist/esm/i18n/hu.js +35 -0
- package/dist/esm/i18n/it.js +35 -0
- package/dist/esm/i18n/ja.js +35 -0
- package/dist/esm/i18n/ko.js +35 -0
- package/dist/esm/i18n/nb.js +35 -0
- package/dist/esm/i18n/nl.js +35 -0
- package/dist/esm/i18n/pl.js +35 -0
- package/dist/esm/i18n/pt_BR.js +35 -0
- package/dist/esm/i18n/pt_PT.js +8 -0
- package/dist/esm/i18n/ru.js +35 -0
- package/dist/esm/i18n/sk.js +8 -0
- package/dist/esm/i18n/sv.js +35 -0
- package/dist/esm/i18n/th.js +35 -0
- package/dist/esm/i18n/tr.js +35 -0
- package/dist/esm/i18n/uk.js +35 -0
- package/dist/esm/i18n/vi.js +35 -0
- package/dist/esm/i18n/zh.js +35 -0
- package/dist/esm/i18n/zh_TW.js +35 -0
- package/dist/esm/state/actions/index.js +1 -1
- package/dist/esm/utils/token.js +1 -0
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +4 -2
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +10 -25
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +4 -11
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +20 -0
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/container/index.js +57 -23
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +26 -0
- package/dist/esm/view/FlexibleCard/components/container/layered-link/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +2 -19
- package/dist/esm/view/FlexibleCard/components/utils.js +16 -0
- package/dist/esm/view/FlexibleCard/index.js +2 -2
- package/dist/types/i18n/cs.d.ts +35 -0
- package/dist/types/i18n/da.d.ts +35 -0
- package/dist/types/i18n/de.d.ts +35 -0
- package/dist/types/i18n/en.d.ts +35 -0
- package/dist/types/i18n/en_GB.d.ts +35 -0
- package/dist/types/i18n/en_ZZ.d.ts +35 -0
- package/dist/types/i18n/es.d.ts +35 -0
- package/dist/types/i18n/et.d.ts +8 -0
- package/dist/types/i18n/fi.d.ts +35 -0
- package/dist/types/i18n/fr.d.ts +35 -0
- package/dist/types/i18n/hu.d.ts +35 -0
- package/dist/types/i18n/it.d.ts +35 -0
- package/dist/types/i18n/ja.d.ts +35 -0
- package/dist/types/i18n/ko.d.ts +35 -0
- package/dist/types/i18n/nb.d.ts +35 -0
- package/dist/types/i18n/nl.d.ts +35 -0
- package/dist/types/i18n/pl.d.ts +35 -0
- package/dist/types/i18n/pt_BR.d.ts +35 -0
- package/dist/types/i18n/pt_PT.d.ts +8 -0
- package/dist/types/i18n/ru.d.ts +35 -0
- package/dist/types/i18n/sk.d.ts +8 -0
- package/dist/types/i18n/sv.d.ts +35 -0
- package/dist/types/i18n/th.d.ts +35 -0
- package/dist/types/i18n/tr.d.ts +35 -0
- package/dist/types/i18n/uk.d.ts +35 -0
- package/dist/types/i18n/vi.d.ts +35 -0
- package/dist/types/i18n/zh.d.ts +35 -0
- package/dist/types/i18n/zh_TW.d.ts +35 -0
- package/dist/types/utils/token.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/container/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/container/layered-link/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/container/layered-link/types.d.ts +6 -0
- package/dist/types/view/FlexibleCard/components/container/types.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/utils.d.ts +1 -0
- package/dist/types/view/FlexibleCard/types.d.ts +1 -0
- package/hooks/package.json +1 -0
- package/in-product/package.json +1 -0
- package/package.json +1 -1
- package/ssr/package.json +1 -0
- package/types/package.json +1 -0
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
//Russian
|
|
8
|
+
export default {
|
|
9
|
+
'fabric.linking.cannot_connect': 'Не удается подключиться, повторите попытку',
|
|
10
|
+
'fabric.linking.cannot_find_link': 'Не удается найти ссылку',
|
|
11
|
+
'fabric.linking.click_to_join': 'Для просмотра этой задачи выполните подключение к {context}',
|
|
12
|
+
'fabric.linking.connect_link_account': 'Подключить для просмотра',
|
|
13
|
+
'fabric.linking.create_on': 'Создано: {context}',
|
|
14
|
+
'fabric.linking.created_by': 'Создано: {context}',
|
|
15
|
+
'fabric.linking.delete': 'Удалить',
|
|
16
|
+
'fabric.linking.edit': 'Изменить',
|
|
17
|
+
'fabric.linking.forbidden_access': 'Доступ запрещен',
|
|
18
|
+
'fabric.linking.invalid_permissions': 'Доступ к ссылке ограничен, попробуйте войти в другой аккаунт',
|
|
19
|
+
'fabric.linking.modified_on': 'Обновлено: {context}',
|
|
20
|
+
'fabric.linking.pending_request': 'Ваш запрос на доступ ожидает рассмотрения',
|
|
21
|
+
'fabric.linking.priority_blocker': 'Блокер',
|
|
22
|
+
'fabric.linking.priority_critical': 'Критический',
|
|
23
|
+
'fabric.linking.priority_high': 'Высокий',
|
|
24
|
+
'fabric.linking.priority_highest': 'Самый высокий',
|
|
25
|
+
'fabric.linking.priority_low': 'Низкий',
|
|
26
|
+
'fabric.linking.priority_lowest': 'Самый низкий',
|
|
27
|
+
'fabric.linking.priority_major': 'Серьезный',
|
|
28
|
+
'fabric.linking.priority_medium': 'Средний',
|
|
29
|
+
'fabric.linking.priority_minor': 'Незначительный',
|
|
30
|
+
'fabric.linking.priority_trivial': 'Тривиальный',
|
|
31
|
+
'fabric.linking.priority_undefined': 'Не определен',
|
|
32
|
+
'fabric.linking.request_access': 'Для просмотра этой задачи запросите доступ к {context}',
|
|
33
|
+
'fabric.linking.request_denied': 'Ваш запрос на доступ отклонен',
|
|
34
|
+
'fabric.linking.updated_by': 'Изменено: {context}'
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
//Swedish
|
|
8
|
+
export default {
|
|
9
|
+
'fabric.linking.cannot_connect': 'Det går inte att ansluta, försök igen',
|
|
10
|
+
'fabric.linking.cannot_find_link': 'Kan inte hitta länk',
|
|
11
|
+
'fabric.linking.click_to_join': 'Anslut till {context} för att visa ärendet',
|
|
12
|
+
'fabric.linking.connect_link_account': 'Anslut till förhandsgranskning',
|
|
13
|
+
'fabric.linking.create_on': 'Skapades {context}',
|
|
14
|
+
'fabric.linking.created_by': 'Skapades av {context}',
|
|
15
|
+
'fabric.linking.delete': 'Radera',
|
|
16
|
+
'fabric.linking.edit': 'Redigera',
|
|
17
|
+
'fabric.linking.forbidden_access': 'Din åtkomst är förbjuden',
|
|
18
|
+
'fabric.linking.invalid_permissions': 'Begränsad länk, prova ett annat konto',
|
|
19
|
+
'fabric.linking.modified_on': 'Uppdaterades {context}',
|
|
20
|
+
'fabric.linking.pending_request': 'Din åtkomstförfrågan väntar på svar',
|
|
21
|
+
'fabric.linking.priority_blocker': 'Blockerare',
|
|
22
|
+
'fabric.linking.priority_critical': 'Kritisk',
|
|
23
|
+
'fabric.linking.priority_high': 'Hög',
|
|
24
|
+
'fabric.linking.priority_highest': 'Högst',
|
|
25
|
+
'fabric.linking.priority_low': 'Låg',
|
|
26
|
+
'fabric.linking.priority_lowest': 'Lägst',
|
|
27
|
+
'fabric.linking.priority_major': 'Betydande',
|
|
28
|
+
'fabric.linking.priority_medium': 'Medium',
|
|
29
|
+
'fabric.linking.priority_minor': 'Smärre',
|
|
30
|
+
'fabric.linking.priority_trivial': 'Obetydlig',
|
|
31
|
+
'fabric.linking.priority_undefined': 'Ej definierad',
|
|
32
|
+
'fabric.linking.request_access': 'Be om åtkomst till {context} för att visa ärendet',
|
|
33
|
+
'fabric.linking.request_denied': 'Din åtkomstförfrågan har nekats',
|
|
34
|
+
'fabric.linking.updated_by': 'Ändrad av {context}'
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
//Thai (Thailand)
|
|
8
|
+
export default {
|
|
9
|
+
'fabric.linking.cannot_connect': 'ไม่สามารถเชื่อมต่อได้ โปรดลองอีกครั้ง',
|
|
10
|
+
'fabric.linking.cannot_find_link': 'ไม่พบลิงก์',
|
|
11
|
+
'fabric.linking.click_to_join': 'เข้าร่วม {context} เพื่อดูปัญหานี้',
|
|
12
|
+
'fabric.linking.connect_link_account': 'เชื่อมต่อเพื่อดูตัวอย่าง',
|
|
13
|
+
'fabric.linking.create_on': 'สร้าง {context} แล้ว',
|
|
14
|
+
'fabric.linking.created_by': 'สร้างโดย {context}',
|
|
15
|
+
'fabric.linking.delete': 'ลบ',
|
|
16
|
+
'fabric.linking.edit': 'แก้ไข',
|
|
17
|
+
'fabric.linking.forbidden_access': 'คุณไม่มีสิทธิ์เข้าถึง',
|
|
18
|
+
'fabric.linking.invalid_permissions': 'ลิงก์ถูกจำกัดการเข้าถึง โปรดลองใช้บัญชีอื่น',
|
|
19
|
+
'fabric.linking.modified_on': 'อัปเดต {context} แล้ว',
|
|
20
|
+
'fabric.linking.pending_request': 'คำขอการเข้าถึงของคุณกำลังรอดำเนินการ',
|
|
21
|
+
'fabric.linking.priority_blocker': 'ตัวบล็อก',
|
|
22
|
+
'fabric.linking.priority_critical': 'วิกฤต',
|
|
23
|
+
'fabric.linking.priority_high': 'สูง',
|
|
24
|
+
'fabric.linking.priority_highest': 'สูงที่สุด',
|
|
25
|
+
'fabric.linking.priority_low': 'ต่ำ',
|
|
26
|
+
'fabric.linking.priority_lowest': 'ต่ำที่สุด',
|
|
27
|
+
'fabric.linking.priority_major': 'มาก',
|
|
28
|
+
'fabric.linking.priority_medium': 'ปานกลาง',
|
|
29
|
+
'fabric.linking.priority_minor': 'น้อย',
|
|
30
|
+
'fabric.linking.priority_trivial': 'ไม่สำคัญ',
|
|
31
|
+
'fabric.linking.priority_undefined': 'ไม่ได้ระบุ',
|
|
32
|
+
'fabric.linking.request_access': 'ส่งคำขอการเข้าถึงที่ {context} เพื่อดูปัญหานี้',
|
|
33
|
+
'fabric.linking.request_denied': 'คำขอการเข้าถึงของคุณถูกปฏิเสธ',
|
|
34
|
+
'fabric.linking.updated_by': 'แก้ไขแล้วโดย {context}'
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
//Turkish (Turkey)
|
|
8
|
+
export default {
|
|
9
|
+
'fabric.linking.cannot_connect': 'Bağlanılamıyor, tekrar deneyin',
|
|
10
|
+
'fabric.linking.cannot_find_link': 'Bağlantı bulunamıyor',
|
|
11
|
+
'fabric.linking.click_to_join': 'Bu konuyu görüntülemek için {context} ürününe katılın',
|
|
12
|
+
'fabric.linking.connect_link_account': 'Önizlemeye bağlanın',
|
|
13
|
+
'fabric.linking.create_on': '{context} oluşturuldu',
|
|
14
|
+
'fabric.linking.created_by': '{context} tarafından oluşturuldu',
|
|
15
|
+
'fabric.linking.delete': 'Sil',
|
|
16
|
+
'fabric.linking.edit': 'Düzenle',
|
|
17
|
+
'fabric.linking.forbidden_access': 'Erişiminiz yasak',
|
|
18
|
+
'fabric.linking.invalid_permissions': 'Sınırlı bağlantı, başka bir hesap deneyin',
|
|
19
|
+
'fabric.linking.modified_on': 'Son güncelleme: {context}',
|
|
20
|
+
'fabric.linking.pending_request': 'Erişim talebiniz beklemede',
|
|
21
|
+
'fabric.linking.priority_blocker': 'Engelleyici',
|
|
22
|
+
'fabric.linking.priority_critical': 'Çok Önemli',
|
|
23
|
+
'fabric.linking.priority_high': 'Yüksek',
|
|
24
|
+
'fabric.linking.priority_highest': 'En Yüksek',
|
|
25
|
+
'fabric.linking.priority_low': 'Düşük',
|
|
26
|
+
'fabric.linking.priority_lowest': 'En Düşük',
|
|
27
|
+
'fabric.linking.priority_major': 'Önemli',
|
|
28
|
+
'fabric.linking.priority_medium': 'Orta',
|
|
29
|
+
'fabric.linking.priority_minor': 'Küçük',
|
|
30
|
+
'fabric.linking.priority_trivial': 'Önemsiz',
|
|
31
|
+
'fabric.linking.priority_undefined': 'Tanımlanmamış',
|
|
32
|
+
'fabric.linking.request_access': 'Bu konuyu görüntülemek için {context} ürününe erişim talep edin',
|
|
33
|
+
'fabric.linking.request_denied': 'Erişim talebiniz reddedildi',
|
|
34
|
+
'fabric.linking.updated_by': '{context} tarafından değiştirildi'
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
//Ukrainian (Ukraine)
|
|
8
|
+
export default {
|
|
9
|
+
'fabric.linking.cannot_connect': 'Не вдається підключитися, спробуйте ще раз',
|
|
10
|
+
'fabric.linking.cannot_find_link': 'Не вдається знайти посилання',
|
|
11
|
+
'fabric.linking.click_to_join': 'Можна приєднатися до {context}, щоб переглянути цю проблему',
|
|
12
|
+
'fabric.linking.connect_link_account': 'Для перегляду потрібно підключитись',
|
|
13
|
+
'fabric.linking.create_on': 'Створено {context}',
|
|
14
|
+
'fabric.linking.created_by': 'Автор: {context}',
|
|
15
|
+
'fabric.linking.delete': 'Видалити',
|
|
16
|
+
'fabric.linking.edit': 'Редагувати',
|
|
17
|
+
'fabric.linking.forbidden_access': 'У вас немає доступу',
|
|
18
|
+
'fabric.linking.invalid_permissions': 'Посилання з обмеженим доступом; спробуйте інший обліковий запис',
|
|
19
|
+
'fabric.linking.modified_on': 'Оновлено {context}',
|
|
20
|
+
'fabric.linking.pending_request': 'Запит на надання доступу в очікуванні',
|
|
21
|
+
'fabric.linking.priority_blocker': 'Блокувальний',
|
|
22
|
+
'fabric.linking.priority_critical': 'Критичний',
|
|
23
|
+
'fabric.linking.priority_high': 'Високий',
|
|
24
|
+
'fabric.linking.priority_highest': 'Найвищий',
|
|
25
|
+
'fabric.linking.priority_low': 'Низький',
|
|
26
|
+
'fabric.linking.priority_lowest': 'Найнижчий',
|
|
27
|
+
'fabric.linking.priority_major': 'Серйозний',
|
|
28
|
+
'fabric.linking.priority_medium': 'Середній',
|
|
29
|
+
'fabric.linking.priority_minor': 'Низький',
|
|
30
|
+
'fabric.linking.priority_trivial': 'Звичайний',
|
|
31
|
+
'fabric.linking.priority_undefined': 'Не визначено',
|
|
32
|
+
'fabric.linking.request_access': 'Надішліть запит на доступ до {context}, щоб переглянути завдання',
|
|
33
|
+
'fabric.linking.request_denied': 'Ваш запит на надання доступу відхилено',
|
|
34
|
+
'fabric.linking.updated_by': 'Автор зміни: {context}'
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
//Vietnamese (Vietnam)
|
|
8
|
+
export default {
|
|
9
|
+
'fabric.linking.cannot_connect': 'Không thể kết nối, hãy thử lại',
|
|
10
|
+
'fabric.linking.cannot_find_link': 'Không tìm được liên kết',
|
|
11
|
+
'fabric.linking.click_to_join': 'Tham gia {context} để xem vấn đề này',
|
|
12
|
+
'fabric.linking.connect_link_account': 'Kết nối để xem trước',
|
|
13
|
+
'fabric.linking.create_on': 'Đã tạo {context}',
|
|
14
|
+
'fabric.linking.created_by': 'Được tạo bởi {context}',
|
|
15
|
+
'fabric.linking.delete': 'Xóa',
|
|
16
|
+
'fabric.linking.edit': 'Chỉnh sửa',
|
|
17
|
+
'fabric.linking.forbidden_access': 'Quyền truy cập của bạn bị cấm',
|
|
18
|
+
'fabric.linking.invalid_permissions': 'Liên kết bị hạn chế, thử một tài khoản khác',
|
|
19
|
+
'fabric.linking.modified_on': 'Đã cập nhật {context}',
|
|
20
|
+
'fabric.linking.pending_request': 'Đang chờ xử lý yêu cầu quyền truy cập của bạn',
|
|
21
|
+
'fabric.linking.priority_blocker': 'Trở ngại',
|
|
22
|
+
'fabric.linking.priority_critical': 'Rất cao',
|
|
23
|
+
'fabric.linking.priority_high': 'Cao',
|
|
24
|
+
'fabric.linking.priority_highest': 'Cao nhất',
|
|
25
|
+
'fabric.linking.priority_low': 'Thấp',
|
|
26
|
+
'fabric.linking.priority_lowest': 'Thấp nhất',
|
|
27
|
+
'fabric.linking.priority_major': 'Lớn',
|
|
28
|
+
'fabric.linking.priority_medium': 'Trung bình',
|
|
29
|
+
'fabric.linking.priority_minor': 'Nhỏ',
|
|
30
|
+
'fabric.linking.priority_trivial': 'Không đáng kể',
|
|
31
|
+
'fabric.linking.priority_undefined': 'Chưa xác định',
|
|
32
|
+
'fabric.linking.request_access': 'Yêu cầu quyền truy cập vào {context} để xem vấn đề này',
|
|
33
|
+
'fabric.linking.request_denied': 'Yêu cầu quyền truy cập của bạn đã bị từ chối',
|
|
34
|
+
'fabric.linking.updated_by': 'Được sửa đổi bởi {context}'
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
//Chinese (Simplified)
|
|
8
|
+
export default {
|
|
9
|
+
'fabric.linking.cannot_connect': '无法连接,请重试',
|
|
10
|
+
'fabric.linking.cannot_find_link': '未找到链接',
|
|
11
|
+
'fabric.linking.click_to_join': '加入{context}以查看此事务',
|
|
12
|
+
'fabric.linking.connect_link_account': '连接以预览',
|
|
13
|
+
'fabric.linking.create_on': '{context}已创建',
|
|
14
|
+
'fabric.linking.created_by': '创建者:{context}',
|
|
15
|
+
'fabric.linking.delete': '删除',
|
|
16
|
+
'fabric.linking.edit': '编辑',
|
|
17
|
+
'fabric.linking.forbidden_access': '您的访问已被禁止',
|
|
18
|
+
'fabric.linking.invalid_permissions': '受限链接,请尝试其他帐户',
|
|
19
|
+
'fabric.linking.modified_on': '{context}已更新',
|
|
20
|
+
'fabric.linking.pending_request': '您的访问请求正等待处理',
|
|
21
|
+
'fabric.linking.priority_blocker': '阻止程序',
|
|
22
|
+
'fabric.linking.priority_critical': '紧急',
|
|
23
|
+
'fabric.linking.priority_high': '高',
|
|
24
|
+
'fabric.linking.priority_highest': '最高',
|
|
25
|
+
'fabric.linking.priority_low': '低',
|
|
26
|
+
'fabric.linking.priority_lowest': '最低',
|
|
27
|
+
'fabric.linking.priority_major': '重要',
|
|
28
|
+
'fabric.linking.priority_medium': '中等',
|
|
29
|
+
'fabric.linking.priority_minor': '次要',
|
|
30
|
+
'fabric.linking.priority_trivial': '微小',
|
|
31
|
+
'fabric.linking.priority_undefined': '未定义',
|
|
32
|
+
'fabric.linking.request_access': '请求访问{context}以查看此事务',
|
|
33
|
+
'fabric.linking.request_denied': '您的访问请求已被拒绝',
|
|
34
|
+
'fabric.linking.updated_by': '修改者:{context}'
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
//Chinese (Traditional)
|
|
8
|
+
export default {
|
|
9
|
+
'fabric.linking.cannot_connect': '無法連結,請再試一次',
|
|
10
|
+
'fabric.linking.cannot_find_link': '找不到連結',
|
|
11
|
+
'fabric.linking.click_to_join': '加入 {context} 以查看此議題',
|
|
12
|
+
'fabric.linking.connect_link_account': '連線以預覽',
|
|
13
|
+
'fabric.linking.create_on': '建立時間:{context}',
|
|
14
|
+
'fabric.linking.created_by': '建立者:{context}',
|
|
15
|
+
'fabric.linking.delete': '刪除',
|
|
16
|
+
'fabric.linking.edit': '編輯',
|
|
17
|
+
'fabric.linking.forbidden_access': '您的存取遭拒',
|
|
18
|
+
'fabric.linking.invalid_permissions': '連結受到限制,請嘗試其他帳戶',
|
|
19
|
+
'fabric.linking.modified_on': '更新時間:{context}',
|
|
20
|
+
'fabric.linking.pending_request': '您的存取要求擱置中',
|
|
21
|
+
'fabric.linking.priority_blocker': '封鎖程式',
|
|
22
|
+
'fabric.linking.priority_critical': '重要',
|
|
23
|
+
'fabric.linking.priority_high': '高',
|
|
24
|
+
'fabric.linking.priority_highest': '最高',
|
|
25
|
+
'fabric.linking.priority_low': '低',
|
|
26
|
+
'fabric.linking.priority_lowest': '最低',
|
|
27
|
+
'fabric.linking.priority_major': '主要',
|
|
28
|
+
'fabric.linking.priority_medium': '中',
|
|
29
|
+
'fabric.linking.priority_minor': '次要',
|
|
30
|
+
'fabric.linking.priority_trivial': '不太重要',
|
|
31
|
+
'fabric.linking.priority_undefined': '未定義',
|
|
32
|
+
'fabric.linking.request_access': '要求存取 {context} 以檢視此議題',
|
|
33
|
+
'fabric.linking.request_denied': '您的存取要求遭拒',
|
|
34
|
+
'fabric.linking.updated_by': '修改者:{context}'
|
|
35
|
+
};
|
|
@@ -71,7 +71,7 @@ export var useSmartCardActions = function useSmartCardActions(id, url, analytics
|
|
|
71
71
|
var nextStatus = response ? getStatus(response) : 'fatal'; // If we require authorization & do not have an authFlow available,
|
|
72
72
|
// throw an error and render as a normal blue link.
|
|
73
73
|
|
|
74
|
-
if (nextStatus === 'unauthorized' && !hasAuthFlowSupported) {
|
|
74
|
+
if ((nextStatus === 'unauthorized' || nextStatus === 'forbidden') && !hasAuthFlowSupported) {
|
|
75
75
|
handleResolvedLinkError(resourceUrl, new APIError('fallback', hostname, ERROR_MESSAGE_OAUTH));
|
|
76
76
|
return;
|
|
77
77
|
} // Handle any other errors
|
package/dist/esm/utils/token.js
CHANGED
|
@@ -11,6 +11,7 @@ export var tokens = {
|
|
|
11
11
|
elevation: token('elevation.shadow.raised', '0px 1px 1px #091E4240, 0px 0px 1px #091E424F'),
|
|
12
12
|
errorMessage: token('color.text.disabled', '#6B778C'),
|
|
13
13
|
errorMessageHover: token('color.text.subtle', '#8993A4'),
|
|
14
|
+
focus: token('color.border.focused', '#388BFF'),
|
|
14
15
|
snippet: token('color.text', '#172B4D'),
|
|
15
16
|
text: token('color.text.subtlest', '#626F86')
|
|
16
17
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -14,7 +14,8 @@ import { SmartLinkSize } from '../../../../../constants';
|
|
|
14
14
|
import Button from '@atlaskit/button/standard-button';
|
|
15
15
|
import MoreIcon from '@atlaskit/icon/glyph/more';
|
|
16
16
|
import { sizeToSpacing } from '../../actions/action';
|
|
17
|
-
|
|
17
|
+
import { tokens } from '../../../../../utils/token';
|
|
18
|
+
var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-flex;\n line-height: 1rem;\n > div {\n align-items: center;\n button:focus {\n // AK button removes the default browser outline on focus and apply\n // box-shadow styling to create the outline appearance.\n // Due to our container elements (Container/Block/ElementGroup) has\n // overflow hidden to prevent the metadata element from leaking outside\n // of its container, the box-shadow doesn't show properly.\n // Invert the AK box-shadow styling.\n box-shadow: inset 0 0 0 2px ", ";\n }\n }\n"])), tokens.focus);
|
|
18
19
|
/**
|
|
19
20
|
* Creates a group of Action components. Accepts an array of Actions, in addition to some styling
|
|
20
21
|
* preferences.
|
|
@@ -19,7 +19,7 @@ var actionStyles = css(_templateObject || (_templateObject = _taggedTemplateLite
|
|
|
19
19
|
|
|
20
20
|
var getMessageStyles = function getMessageStyles(size, hasAction) {
|
|
21
21
|
var sizeStyles = getLinkSizeStyles(size);
|
|
22
|
-
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex: 1 1 auto;\n justify-content: flex-end;\n ", "\n ", "\n ", "\n color: ", ";\n "])), hasAction ? actionStyles : '', sizeStyles, getTruncateStyles(1, getLinkLineHeight(size)), tokens.errorMessage);
|
|
22
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex: 1 1 auto;\n justify-content: flex-end;\n ", "\n ", "\n ", "\n color: ", ";\n :focus {\n outline: ", " solid 2px;\n }\n "])), hasAction ? actionStyles : '', sizeStyles, getTruncateStyles(1, getLinkLineHeight(size)), tokens.errorMessage, tokens.focus);
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* Represents an Errored TitleBlock view.
|
|
@@ -54,9 +54,11 @@ var TitleBlockErroredView = function TitleBlockErroredView(_ref) {
|
|
|
54
54
|
direction: SmartLinkDirection.Horizontal,
|
|
55
55
|
align: SmartLinkAlignment.Right
|
|
56
56
|
}, jsx("span", {
|
|
57
|
+
className: hasAction ? 'has-action' : '',
|
|
57
58
|
css: getMessageStyles(size, hasAction),
|
|
58
59
|
onClick: onClick,
|
|
59
|
-
"data-testid": "".concat(testId, "-errored-view-message")
|
|
60
|
+
"data-testid": "".concat(testId, "-errored-view-message"),
|
|
61
|
+
tabIndex: hasAction ? 0 : -1
|
|
60
62
|
}, jsx(FormattedMessage, _extends({}, descriptor, {
|
|
61
63
|
values: values
|
|
62
64
|
})))), actionGroup);
|
|
@@ -17,7 +17,7 @@ import { Title } from '../../elements';
|
|
|
17
17
|
|
|
18
18
|
var getActionStyles = function getActionStyles(showOnHover, isOpen) {
|
|
19
19
|
if (showOnHover && !isOpen) {
|
|
20
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .actions-button-group {\n
|
|
20
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .actions-button-group {\n opacity: 0;\n }\n\n &:hover .actions-button-group,\n .actions-button-group:focus-within {\n opacity: 1;\n }\n "])));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -5,28 +5,10 @@ var _excluded = ["actionGroup", "testId", "title"];
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { jsx } from '@emotion/core';
|
|
8
|
-
import Spinner from '@atlaskit/spinner';
|
|
9
8
|
import Block from '../../block';
|
|
10
9
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// Spinner sizes should be equivalent or smaller than Icon size
|
|
14
|
-
// to avoid the jumping.
|
|
15
|
-
switch (size) {
|
|
16
|
-
case SmartLinkSize.XLarge:
|
|
17
|
-
return 28;
|
|
18
|
-
|
|
19
|
-
case SmartLinkSize.Large:
|
|
20
|
-
return 24;
|
|
21
|
-
|
|
22
|
-
case SmartLinkSize.Medium:
|
|
23
|
-
return 16;
|
|
24
|
-
|
|
25
|
-
case SmartLinkSize.Small:
|
|
26
|
-
default:
|
|
27
|
-
return 12;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
10
|
+
import LoadingSkeleton from '../../../common/loading-skeleton';
|
|
11
|
+
import { getIconSizeStyles, getIconWidth } from '../../../utils';
|
|
30
12
|
/**
|
|
31
13
|
* This represents a TitleBlock for a Smart Link that is currently waiting
|
|
32
14
|
* for a request to finish.
|
|
@@ -34,7 +16,6 @@ var getSpinnerSize = function getSpinnerSize(size) {
|
|
|
34
16
|
* @see TitleBlock
|
|
35
17
|
*/
|
|
36
18
|
|
|
37
|
-
|
|
38
19
|
var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
|
|
39
20
|
var actionGroup = _ref.actionGroup,
|
|
40
21
|
testId = _ref.testId,
|
|
@@ -43,12 +24,16 @@ var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
|
|
|
43
24
|
|
|
44
25
|
var _blockProps$size = blockProps.size,
|
|
45
26
|
size = _blockProps$size === void 0 ? SmartLinkSize.Medium : _blockProps$size;
|
|
27
|
+
var iconWidth = getIconWidth(size);
|
|
28
|
+
var iconStyles = getIconSizeStyles(iconWidth);
|
|
46
29
|
return jsx(Block, _extends({}, blockProps, {
|
|
47
30
|
testId: "".concat(testId, "-resolving-view")
|
|
48
|
-
}), jsx(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
31
|
+
}), jsx("span", {
|
|
32
|
+
css: iconStyles,
|
|
33
|
+
"data-testid": "".concat(testId, "-icon")
|
|
34
|
+
}, jsx(LoadingSkeleton, {
|
|
35
|
+
testId: "".concat(testId, "-icon-loading")
|
|
36
|
+
})), title, actionGroup);
|
|
52
37
|
};
|
|
53
38
|
|
|
54
39
|
export default TitleBlockResolvingView;
|
|
@@ -50,7 +50,7 @@ export var getGapSize = function getGapSize(size) {
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
export var getBaseStyles = function getBaseStyles(direction, size) {
|
|
53
|
-
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n gap: ", "rem;\n line-height: 1rem;\n min-width: 0;\n overflow: hidden;\n
|
|
53
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n gap: ", "rem;\n line-height: 1rem;\n min-width: 0;\n overflow: hidden;\n ", ";\n &:empty {\n display: none;\n }\n & > * {\n min-width: 0;\n }\n & > [data-fit-to-content] {\n min-width: fit-content;\n }\n"])), getGapSize(size), getDirectionStyles(direction));
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
var isActionGroup = function isActionGroup(node) {
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject, _templateObject2;
|
|
4
|
-
|
|
5
1
|
/** @jsx jsx */
|
|
6
2
|
import React from 'react';
|
|
7
|
-
import {
|
|
3
|
+
import { jsx } from '@emotion/core';
|
|
8
4
|
import ImageLoader from 'react-render-image';
|
|
9
|
-
import
|
|
10
|
-
var placeholderShimmer = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% { background-position: -20px 0; }\n 100% { background-position: 20px 0; }\n"])));
|
|
11
|
-
var shimmer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border-radius: 2px;\n user-select: none;\n background: ", ";\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4236\n background-image: linear-gradient(\n to right,\n ", " 0%,\n ", " 20%,\n ", " 40%,\n ", "100%\n );\n background-repeat: no-repeat;\n background-size: 280% 100%;\n display: inline-block;\n\n animation-duration: 1s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: ", ";\n animation-timing-function: linear;\n"])), token('color.skeleton.subtle', '#f6f7f8'), token('color.skeleton.subtle', '#f6f7f8'), token('color.skeleton', '#edeef1'), token('color.skeleton.subtle', '#f6f7f8'), token('color.skeleton.subtle', '#f6f7f8'), placeholderShimmer);
|
|
5
|
+
import LoadingSkeleton from '../loading-skeleton';
|
|
12
6
|
|
|
13
7
|
var ImageIcon = function ImageIcon(_ref) {
|
|
14
8
|
var defaultIcon = _ref.defaultIcon,
|
|
@@ -16,9 +10,8 @@ var ImageIcon = function ImageIcon(_ref) {
|
|
|
16
10
|
url = _ref.url;
|
|
17
11
|
return jsx(ImageLoader, {
|
|
18
12
|
src: url,
|
|
19
|
-
loading: jsx(
|
|
20
|
-
|
|
21
|
-
"data-testid": "".concat(testId, "-loading")
|
|
13
|
+
loading: jsx(LoadingSkeleton, {
|
|
14
|
+
testId: "".concat(testId, "-loading")
|
|
22
15
|
}),
|
|
23
16
|
loaded: jsx("img", {
|
|
24
17
|
src: url,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
|
|
3
|
+
var _templateObject, _templateObject2;
|
|
4
|
+
|
|
5
|
+
/** @jsx jsx */
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { css, jsx, keyframes } from '@emotion/core';
|
|
8
|
+
import { token } from '@atlaskit/tokens';
|
|
9
|
+
var animationNameStyles = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% { background-position: -20px 0; }\n 100% { background-position: 20px 0; }\n"])));
|
|
10
|
+
var styles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border-radius: 2px;\n user-select: none;\n background: ", ";\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4236\n background-image: linear-gradient(\n to right,\n ", " 0%,\n ", " 20%,\n ", " 40%,\n ", "100%\n );\n background-repeat: no-repeat;\n background-size: 280% 100%;\n display: inline-block;\n\n animation-duration: 1s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: ", ";\n animation-timing-function: linear;\n"])), token('color.skeleton.subtle', '#f6f7f8'), token('color.skeleton.subtle', '#f6f7f8'), token('color.skeleton', '#edeef1'), token('color.skeleton.subtle', '#f6f7f8'), token('color.skeleton.subtle', '#f6f7f8'), animationNameStyles);
|
|
11
|
+
|
|
12
|
+
var LoadingSkeleton = function LoadingSkeleton(_ref) {
|
|
13
|
+
var testId = _ref.testId;
|
|
14
|
+
return jsx("span", {
|
|
15
|
+
css: styles,
|
|
16
|
+
"data-testid": testId
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default LoadingSkeleton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2;
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import React from 'react';
|
|
6
|
+
import React, { useContext } from 'react';
|
|
7
7
|
import { css, jsx } from '@emotion/core';
|
|
8
8
|
import { SmartLinkSize, SmartLinkTheme } from '../../../../constants';
|
|
9
9
|
import { isFlexibleUiBlock, isFlexibleUiTitleBlock } from '../../../../utils/flexible';
|
|
10
10
|
import { tokens } from '../../../../utils/token';
|
|
11
|
+
import { FlexibleUiContext } from '../../../../state/flexible-ui-context';
|
|
12
|
+
import LayeredLink from './layered-link';
|
|
11
13
|
var elevationStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border: 1px solid transparent;\n border-radius: 1.5px;\n box-shadow: ", ";\n margin: 2px;\n"])), tokens.elevation);
|
|
12
14
|
|
|
13
15
|
var getGap = function getGap(size) {
|
|
@@ -44,8 +46,9 @@ var getPadding = function getPadding(size) {
|
|
|
44
46
|
}
|
|
45
47
|
};
|
|
46
48
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
var clickableContainerStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n // Position any interactive elements at the top of the z-index stack.\n a,\n button,\n .has-action {\n position: relative;\n z-index: 1;\n }\n"])));
|
|
50
|
+
export var getContainerStyles = function getContainerStyles(size, hideBackground, hideElevation, hidePadding, clickableContainer) {
|
|
51
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n gap: ", " 0;\n flex-direction: column;\n min-width: 0;\n overflow-x: hidden;\n position: relative;\n ", "\n ", "\n ", "\n ", "\n &:hover ~ .actions-button-group {\n opacity: 1;\n }\n a:focus,\n .has-action:focus {\n outline-offset: -2px;\n }\n"])), getGap(size), hideBackground ? '' : "background-color: ".concat(tokens.background, ";"), hidePadding ? '' : "padding: ".concat(getPadding(size), ";"), hideElevation ? '' : elevationStyles, clickableContainer ? clickableContainerStyles : '');
|
|
49
52
|
};
|
|
50
53
|
|
|
51
54
|
var renderChildren = function renderChildren(children, containerSize, containerTheme, status, retry, onClick) {
|
|
@@ -62,34 +65,65 @@ var renderChildren = function renderChildren(children, containerSize, containerT
|
|
|
62
65
|
}
|
|
63
66
|
});
|
|
64
67
|
};
|
|
68
|
+
|
|
69
|
+
var getTitleBlockProps = function getTitleBlockProps(children) {
|
|
70
|
+
var block = React.Children.toArray(children).find(function (child) {
|
|
71
|
+
return isFlexibleUiTitleBlock(child);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
if ( /*#__PURE__*/React.isValidElement(block)) {
|
|
75
|
+
return block.props;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
var getLayeredLink = function getLayeredLink(testId, context, children) {
|
|
80
|
+
var _ref = context || {},
|
|
81
|
+
title = _ref.title,
|
|
82
|
+
_ref$url = _ref.url,
|
|
83
|
+
url = _ref$url === void 0 ? '' : _ref$url;
|
|
84
|
+
|
|
85
|
+
var _ref2 = getTitleBlockProps(children) || {},
|
|
86
|
+
target = _ref2.anchorTarget,
|
|
87
|
+
text = _ref2.text;
|
|
88
|
+
|
|
89
|
+
return jsx(LayeredLink, {
|
|
90
|
+
target: target,
|
|
91
|
+
testId: testId,
|
|
92
|
+
text: text || title,
|
|
93
|
+
url: url
|
|
94
|
+
});
|
|
95
|
+
};
|
|
65
96
|
/**
|
|
66
97
|
* This represents the container in which all Flexible UI Smart Links are rendered.
|
|
67
98
|
* @see Block
|
|
68
99
|
*/
|
|
69
100
|
|
|
70
101
|
|
|
71
|
-
var Container = function Container(
|
|
72
|
-
var children =
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
102
|
+
var Container = function Container(_ref3) {
|
|
103
|
+
var children = _ref3.children,
|
|
104
|
+
_ref3$clickableContai = _ref3.clickableContainer,
|
|
105
|
+
clickableContainer = _ref3$clickableContai === void 0 ? false : _ref3$clickableContai,
|
|
106
|
+
_ref3$hideBackground = _ref3.hideBackground,
|
|
107
|
+
hideBackground = _ref3$hideBackground === void 0 ? false : _ref3$hideBackground,
|
|
108
|
+
_ref3$hideElevation = _ref3.hideElevation,
|
|
109
|
+
hideElevation = _ref3$hideElevation === void 0 ? false : _ref3$hideElevation,
|
|
110
|
+
_ref3$hidePadding = _ref3.hidePadding,
|
|
111
|
+
hidePadding = _ref3$hidePadding === void 0 ? false : _ref3$hidePadding,
|
|
112
|
+
onClick = _ref3.onClick,
|
|
113
|
+
retry = _ref3.retry,
|
|
114
|
+
_ref3$size = _ref3.size,
|
|
115
|
+
size = _ref3$size === void 0 ? SmartLinkSize.Medium : _ref3$size,
|
|
116
|
+
status = _ref3.status,
|
|
117
|
+
_ref3$testId = _ref3.testId,
|
|
118
|
+
testId = _ref3$testId === void 0 ? 'smart-links-container' : _ref3$testId,
|
|
119
|
+
_ref3$theme = _ref3.theme,
|
|
120
|
+
theme = _ref3$theme === void 0 ? SmartLinkTheme.Link : _ref3$theme;
|
|
121
|
+
var context = useContext(FlexibleUiContext);
|
|
88
122
|
return jsx("div", {
|
|
89
|
-
css: getContainerStyles(size, hideBackground, hideElevation, hidePadding),
|
|
123
|
+
css: getContainerStyles(size, hideBackground, hideElevation, hidePadding, clickableContainer),
|
|
90
124
|
"data-smart-link-container": true,
|
|
91
125
|
"data-testid": testId
|
|
92
|
-
}, renderChildren(children, size, theme, status, retry, onClick));
|
|
126
|
+
}, clickableContainer ? getLayeredLink(testId, context, children) : null, renderChildren(children, size, theme, status, retry, onClick));
|
|
93
127
|
};
|
|
94
128
|
|
|
95
129
|
export default Container;
|