@atlaskit/smart-card 25.0.0 → 25.0.2
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 +12 -0
- package/dist/cjs/i18n/cs.js +74 -73
- package/dist/cjs/i18n/da.js +74 -73
- package/dist/cjs/i18n/de.js +74 -73
- package/dist/cjs/i18n/en.js +74 -74
- package/dist/cjs/i18n/en_GB.js +74 -74
- package/dist/cjs/i18n/en_ZZ.js +29 -29
- package/dist/cjs/i18n/es.js +74 -73
- package/dist/cjs/i18n/fi.js +74 -73
- package/dist/cjs/i18n/fr.js +74 -73
- package/dist/cjs/i18n/hu.js +74 -73
- package/dist/cjs/i18n/it.js +74 -73
- package/dist/cjs/i18n/ja.js +74 -73
- package/dist/cjs/i18n/ko.js +74 -73
- package/dist/cjs/i18n/nb.js +74 -73
- package/dist/cjs/i18n/nl.js +74 -73
- package/dist/cjs/i18n/pl.js +74 -73
- package/dist/cjs/i18n/pt_BR.js +74 -73
- package/dist/cjs/i18n/ru.js +74 -73
- package/dist/cjs/i18n/sv.js +74 -73
- package/dist/cjs/i18n/th.js +74 -74
- package/dist/cjs/i18n/tr.js +74 -73
- package/dist/cjs/i18n/uk.js +74 -73
- package/dist/cjs/i18n/vi.js +74 -73
- package/dist/cjs/i18n/zh.js +74 -73
- package/dist/cjs/i18n/zh_TW.js +74 -73
- package/dist/cjs/state/hooks/use-invoke/index.js +37 -0
- package/dist/cjs/state/hooks/use-invoke/types.js +17 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/error-boundary/index.js +28 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/index.js +138 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/index.js +24 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/index.js +31 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/index.js +52 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/type.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/styled.js +16 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/types.js +5 -0
- package/dist/es2019/i18n/cs.js +74 -73
- package/dist/es2019/i18n/da.js +74 -73
- package/dist/es2019/i18n/de.js +74 -73
- package/dist/es2019/i18n/en.js +74 -74
- package/dist/es2019/i18n/en_GB.js +74 -74
- package/dist/es2019/i18n/en_ZZ.js +29 -29
- package/dist/es2019/i18n/es.js +74 -73
- package/dist/es2019/i18n/fi.js +74 -73
- package/dist/es2019/i18n/fr.js +74 -73
- package/dist/es2019/i18n/hu.js +74 -73
- package/dist/es2019/i18n/it.js +74 -73
- package/dist/es2019/i18n/ja.js +74 -73
- package/dist/es2019/i18n/ko.js +74 -73
- package/dist/es2019/i18n/nb.js +74 -73
- package/dist/es2019/i18n/nl.js +74 -73
- package/dist/es2019/i18n/pl.js +74 -73
- package/dist/es2019/i18n/pt_BR.js +74 -73
- package/dist/es2019/i18n/ru.js +74 -73
- package/dist/es2019/i18n/sv.js +74 -73
- package/dist/es2019/i18n/th.js +74 -74
- package/dist/es2019/i18n/tr.js +74 -73
- package/dist/es2019/i18n/uk.js +74 -73
- package/dist/es2019/i18n/vi.js +74 -73
- package/dist/es2019/i18n/zh.js +74 -73
- package/dist/es2019/i18n/zh_TW.js +74 -73
- package/dist/es2019/state/hooks/use-invoke/index.js +10 -0
- package/dist/es2019/state/hooks/use-invoke/types.js +9 -0
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/error-boundary/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/index.js +75 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/index.js +21 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/index.js +36 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/type.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/styled.js +53 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/types.js +1 -0
- package/dist/esm/i18n/cs.js +74 -73
- package/dist/esm/i18n/da.js +74 -73
- package/dist/esm/i18n/de.js +74 -73
- package/dist/esm/i18n/en.js +74 -74
- package/dist/esm/i18n/en_GB.js +74 -74
- package/dist/esm/i18n/en_ZZ.js +29 -29
- package/dist/esm/i18n/es.js +74 -73
- package/dist/esm/i18n/fi.js +74 -73
- package/dist/esm/i18n/fr.js +74 -73
- package/dist/esm/i18n/hu.js +74 -73
- package/dist/esm/i18n/it.js +74 -73
- package/dist/esm/i18n/ja.js +74 -73
- package/dist/esm/i18n/ko.js +74 -73
- package/dist/esm/i18n/nb.js +74 -73
- package/dist/esm/i18n/nl.js +74 -73
- package/dist/esm/i18n/pl.js +74 -73
- package/dist/esm/i18n/pt_BR.js +74 -73
- package/dist/esm/i18n/ru.js +74 -73
- package/dist/esm/i18n/sv.js +74 -73
- package/dist/esm/i18n/th.js +74 -74
- package/dist/esm/i18n/tr.js +74 -73
- package/dist/esm/i18n/uk.js +74 -73
- package/dist/esm/i18n/vi.js +74 -73
- package/dist/esm/i18n/zh.js +74 -73
- package/dist/esm/i18n/zh_TW.js +74 -73
- package/dist/esm/state/hooks/use-invoke/index.js +29 -0
- package/dist/esm/state/hooks/use-invoke/types.js +9 -0
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/error-boundary/index.js +17 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/index.js +126 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/index.js +14 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/index.js +20 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/index.js +45 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/type.js +1 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/styled.js +6 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/types.js +1 -0
- package/dist/types/i18n/cs.d.ts +74 -73
- package/dist/types/i18n/da.d.ts +74 -73
- package/dist/types/i18n/de.d.ts +74 -73
- package/dist/types/i18n/en.d.ts +74 -74
- package/dist/types/i18n/en_GB.d.ts +74 -74
- package/dist/types/i18n/en_ZZ.d.ts +29 -29
- package/dist/types/i18n/es.d.ts +74 -73
- package/dist/types/i18n/fi.d.ts +74 -73
- package/dist/types/i18n/fr.d.ts +74 -73
- package/dist/types/i18n/hu.d.ts +74 -73
- package/dist/types/i18n/it.d.ts +74 -73
- package/dist/types/i18n/ja.d.ts +74 -73
- package/dist/types/i18n/ko.d.ts +74 -73
- package/dist/types/i18n/nb.d.ts +74 -73
- package/dist/types/i18n/nl.d.ts +74 -73
- package/dist/types/i18n/pl.d.ts +74 -73
- package/dist/types/i18n/pt_BR.d.ts +74 -73
- package/dist/types/i18n/ru.d.ts +74 -73
- package/dist/types/i18n/sv.d.ts +74 -73
- package/dist/types/i18n/th.d.ts +74 -74
- package/dist/types/i18n/tr.d.ts +74 -73
- package/dist/types/i18n/uk.d.ts +74 -73
- package/dist/types/i18n/vi.d.ts +74 -73
- package/dist/types/i18n/zh.d.ts +74 -73
- package/dist/types/i18n/zh_TW.d.ts +74 -73
- package/dist/types/state/hooks/use-invoke/index.d.ts +3 -0
- package/dist/types/state/hooks/use-invoke/types.d.ts +10 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/error-boundary/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/types.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/types.d.ts +6 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/type.d.ts +7 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/styled.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/types.d.ts +12 -0
- package/package.json +1 -1
package/dist/es2019/i18n/zh.js
CHANGED
|
@@ -7,77 +7,78 @@
|
|
|
7
7
|
*/
|
|
8
8
|
//Chinese (Simplified)
|
|
9
9
|
export default {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
10
|
+
'fabric.linking.actions': '操作',
|
|
11
|
+
'fabric.linking.add_account': '添加帐户',
|
|
12
|
+
'fabric.linking.cancel': '取消',
|
|
13
|
+
'fabric.linking.cannot_connect': '无法连接,请重试',
|
|
14
|
+
'fabric.linking.cannot_find_link': '未找到链接',
|
|
15
|
+
'fabric.linking.check_this_link': '检查此链接',
|
|
16
|
+
'fabric.linking.click_to_join': '加入 {context}',
|
|
17
|
+
'fabric.linking.click_to_join_description': '您已获得批准,可以立即加入 {context}。',
|
|
18
|
+
'fabric.linking.close': '关闭',
|
|
19
|
+
'fabric.linking.connect_account_description': '我们将打开新页面帮助您连接 {name} 帐户',
|
|
20
|
+
'fabric.linking.connect_link_account': '连接以预览',
|
|
21
|
+
'fabric.linking.connect_link_account_card_view': '连接',
|
|
22
|
+
'fabric.linking.connect_link_account_card_view_description': '如要显示该链接的预览,请连接您的 {context} 帐户。',
|
|
23
|
+
'fabric.linking.connect_link_account_card_view_name': '连接您的 {context} 帐户',
|
|
24
|
+
'fabric.linking.connect_to': '连接到 {name}',
|
|
25
|
+
'fabric.linking.connect_unauthorised_account_action': '连接到 {context}',
|
|
26
|
+
'fabric.linking.connect_unauthorised_account_description': '连接到 Atlassian,在一个位置集中查看工作的更多详情并开展协作。',
|
|
27
|
+
'fabric.linking.continue': '继续',
|
|
28
|
+
'fabric.linking.copy_url_to_clipboard': '复制链接',
|
|
29
|
+
'fabric.linking.couldnt_load_link': '由于未知原因,无法加载此链接。',
|
|
30
|
+
'fabric.linking.create_on_absolute': '创建时间:{context}',
|
|
31
|
+
'fabric.linking.create_on_relative': '创建时间:{context}',
|
|
32
|
+
'fabric.linking.created_by': '创建者:{context}',
|
|
33
|
+
'fabric.linking.delete': '删除',
|
|
34
|
+
'fabric.linking.download': '下载',
|
|
35
|
+
'fabric.linking.edit': '编辑',
|
|
36
|
+
'fabric.linking.forbidden_access': '您的访问已被禁止',
|
|
37
|
+
'fabric.linking.forbidden_description': '您无权访问此预览。如果需要访问,请联系站点管理员。',
|
|
38
|
+
'fabric.linking.go_back': '返回',
|
|
39
|
+
'fabric.linking.invalid_permissions': '受限内容',
|
|
40
|
+
'fabric.linking.invalid_permissions_description': '您需要请求访问权限或尝试使用其他帐户来查看此预览。',
|
|
41
|
+
'fabric.linking.join_to_view': '加入{context}以查看此事务',
|
|
42
|
+
'fabric.linking.learn_more_about_smart_links': '了解有关 Smart Link 的更多信息。',
|
|
43
|
+
'fabric.linking.link_safety_warning_message': '{unsafeLinkText} 链接会将您带到其他站点,<a>actual link here</a>',
|
|
44
|
+
'fabric.linking.loading': '正在加载...',
|
|
45
|
+
'fabric.linking.modified_on_absolute': '更新时间:{context}',
|
|
46
|
+
'fabric.linking.modified_on_relative': '更新时间:{context}',
|
|
47
|
+
'fabric.linking.more_actions': '更多操作',
|
|
48
|
+
'fabric.linking.not_found_description': '未找到此链接。请检查 URL,然后尝试编辑或重新粘贴。',
|
|
49
|
+
'fabric.linking.not_found_title': '噢。找不到此链接!',
|
|
50
|
+
'fabric.linking.open_link_in_a_new_tab': '在新选项卡中打开链接',
|
|
51
|
+
'fabric.linking.pending_request': '您的访问请求正等待处理',
|
|
52
|
+
'fabric.linking.preview': '全屏视图',
|
|
53
|
+
'fabric.linking.preview_close': '关闭预览',
|
|
54
|
+
'fabric.linking.preview_max_size': '全屏查看',
|
|
55
|
+
'fabric.linking.preview_min_size': '关闭全屏',
|
|
56
|
+
'fabric.linking.priority_blocker': '紧急',
|
|
57
|
+
'fabric.linking.priority_critical': '严重',
|
|
58
|
+
'fabric.linking.priority_high': '高',
|
|
59
|
+
'fabric.linking.priority_highest': '最高',
|
|
60
|
+
'fabric.linking.priority_low': '低',
|
|
61
|
+
'fabric.linking.priority_lowest': '最低',
|
|
62
|
+
'fabric.linking.priority_major': '重要',
|
|
63
|
+
'fabric.linking.priority_medium': '中等',
|
|
64
|
+
'fabric.linking.priority_minor': '次要',
|
|
65
|
+
'fabric.linking.priority_trivial': '微小',
|
|
66
|
+
'fabric.linking.priority_undefined': '未定义',
|
|
67
|
+
'fabric.linking.request_access': '请求访问',
|
|
68
|
+
'fabric.linking.request_access_description': '请求访问 {context} 以查看此预览。',
|
|
69
|
+
'fabric.linking.request_access_pending': '访问待处理',
|
|
70
|
+
'fabric.linking.request_access_pending_description': '您的访问请求正等待处理。',
|
|
71
|
+
'fabric.linking.request_access_to_view': '请求访问{context}以查看此事务',
|
|
72
|
+
'fabric.linking.request_denied': '您的访问请求已被拒绝',
|
|
73
|
+
'fabric.linking.request_denied_description': '您的访问请求已被拒绝。如果您仍需访问,请联系站点管理员。',
|
|
74
|
+
'fabric.linking.restricted_link': '受限链接,请尝试其他帐户',
|
|
75
|
+
'fabric.linking.retry': '重试',
|
|
76
|
+
'fabric.linking.save': '保存',
|
|
77
|
+
'fabric.linking.srclink': '查看',
|
|
78
|
+
'fabric.linking.srclinkunknown': '查看原件',
|
|
79
|
+
'fabric.linking.try_again': '请重试',
|
|
80
|
+
'fabric.linking.try_another_account': '请尝试其他帐户',
|
|
81
|
+
'fabric.linking.unlink_account': '取消帐户链接',
|
|
82
|
+
'fabric.linking.updated_by': '修改者:{context}',
|
|
83
|
+
'fabric.linking.view': '查看'
|
|
83
84
|
};
|
|
@@ -7,77 +7,78 @@
|
|
|
7
7
|
*/
|
|
8
8
|
//Chinese (Traditional)
|
|
9
9
|
export default {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
10
|
+
'fabric.linking.actions': '動作',
|
|
11
|
+
'fabric.linking.add_account': '新增帳戶',
|
|
12
|
+
'fabric.linking.cancel': '取消',
|
|
13
|
+
'fabric.linking.cannot_connect': '無法連結,請再試一次',
|
|
14
|
+
'fabric.linking.cannot_find_link': '找不到連結',
|
|
15
|
+
'fabric.linking.check_this_link': '檢查此連結',
|
|
16
|
+
'fabric.linking.click_to_join': '加入 {context}',
|
|
17
|
+
'fabric.linking.click_to_join_description': '您已獲得核准,因此可以立即加入 {context}。',
|
|
18
|
+
'fabric.linking.close': '關閉',
|
|
19
|
+
'fabric.linking.connect_account_description': '我們會開啟新的頁面來協助您連結 {name} 帳戶',
|
|
20
|
+
'fabric.linking.connect_link_account': '連線以預覽',
|
|
21
|
+
'fabric.linking.connect_link_account_card_view': '連結',
|
|
22
|
+
'fabric.linking.connect_link_account_card_view_description': '若要顯示此連結的預覽,請連接您的 {context} 帳戶。',
|
|
23
|
+
'fabric.linking.connect_link_account_card_view_name': '連結 {context} 帳戶',
|
|
24
|
+
'fabric.linking.connect_to': '連結至 {name}',
|
|
25
|
+
'fabric.linking.connect_unauthorised_account_action': '連結至 {context}',
|
|
26
|
+
'fabric.linking.connect_unauthorised_account_description': '連結至 Atlassian 以從單一位置檢視更多工作的詳細資料並進行協作。',
|
|
27
|
+
'fabric.linking.continue': '繼續',
|
|
28
|
+
'fabric.linking.copy_url_to_clipboard': '複製連結',
|
|
29
|
+
'fabric.linking.couldnt_load_link': '基於不明原因,我們無法載入此連結。',
|
|
30
|
+
'fabric.linking.create_on_absolute': '於 {context} 建立',
|
|
31
|
+
'fabric.linking.create_on_relative': '建立時間:{context}',
|
|
32
|
+
'fabric.linking.created_by': '建立者:{context}',
|
|
33
|
+
'fabric.linking.delete': '刪除',
|
|
34
|
+
'fabric.linking.download': '下載',
|
|
35
|
+
'fabric.linking.edit': '編輯',
|
|
36
|
+
'fabric.linking.forbidden_access': '您的存取遭拒',
|
|
37
|
+
'fabric.linking.forbidden_description': '您沒有此預覽的存取權。如果您需要存取權,請連絡網站管理員。',
|
|
38
|
+
'fabric.linking.go_back': '返回',
|
|
39
|
+
'fabric.linking.invalid_permissions': '受限制的內容',
|
|
40
|
+
'fabric.linking.invalid_permissions_description': '您需要請求存取或嘗試不同的帳戶,來檢視此預覽。',
|
|
41
|
+
'fabric.linking.join_to_view': '加入 {context} 以查看此議題',
|
|
42
|
+
'fabric.linking.learn_more_about_smart_links': '深入了解 Smart Links。',
|
|
43
|
+
'fabric.linking.link_safety_warning_message': '此連結 {unsafeLinkText} 會帶您前往不同的網站,<a>actual link here</a>',
|
|
44
|
+
'fabric.linking.loading': '正在載入...',
|
|
45
|
+
'fabric.linking.modified_on_absolute': '更新於 {context}',
|
|
46
|
+
'fabric.linking.modified_on_relative': '更新時間:{context}',
|
|
47
|
+
'fabric.linking.more_actions': '更多動作',
|
|
48
|
+
'fabric.linking.not_found_description': '我們找不到此連結。請檢查 URL,然後試著編輯或再次貼上。',
|
|
49
|
+
'fabric.linking.not_found_title': '糟糕,我們找不到此連結!',
|
|
50
|
+
'fabric.linking.open_link_in_a_new_tab': '在新分頁中開啟連結',
|
|
51
|
+
'fabric.linking.pending_request': '您的存取要求擱置中',
|
|
52
|
+
'fabric.linking.preview': '全螢幕檢視',
|
|
53
|
+
'fabric.linking.preview_close': '關閉預覽',
|
|
54
|
+
'fabric.linking.preview_max_size': '全螢幕檢視',
|
|
55
|
+
'fabric.linking.preview_min_size': '關閉全螢幕',
|
|
56
|
+
'fabric.linking.priority_blocker': '受阻',
|
|
57
|
+
'fabric.linking.priority_critical': '嚴重',
|
|
58
|
+
'fabric.linking.priority_high': '高',
|
|
59
|
+
'fabric.linking.priority_highest': '最高',
|
|
60
|
+
'fabric.linking.priority_low': '低',
|
|
61
|
+
'fabric.linking.priority_lowest': '最低',
|
|
62
|
+
'fabric.linking.priority_major': '主要',
|
|
63
|
+
'fabric.linking.priority_medium': '中',
|
|
64
|
+
'fabric.linking.priority_minor': '次要',
|
|
65
|
+
'fabric.linking.priority_trivial': '不太重要',
|
|
66
|
+
'fabric.linking.priority_undefined': '未定義',
|
|
67
|
+
'fabric.linking.request_access': '要求存取權',
|
|
68
|
+
'fabric.linking.request_access_description': '要求 {context} 的存取權以檢視此預覽。',
|
|
69
|
+
'fabric.linking.request_access_pending': '存取擱置',
|
|
70
|
+
'fabric.linking.request_access_pending_description': '您的存取要求擱置中。',
|
|
71
|
+
'fabric.linking.request_access_to_view': '要求存取 {context} 以檢視此議題',
|
|
72
|
+
'fabric.linking.request_denied': '您的存取要求遭拒',
|
|
73
|
+
'fabric.linking.request_denied_description': '您的存取要求遭到拒絕。如果您仍需要存取權,請連絡網站管理員。',
|
|
74
|
+
'fabric.linking.restricted_link': '連結受到限制,請嘗試其他帳戶',
|
|
75
|
+
'fabric.linking.retry': '重試',
|
|
76
|
+
'fabric.linking.save': '儲存',
|
|
77
|
+
'fabric.linking.srclink': '使用以下檢視:',
|
|
78
|
+
'fabric.linking.srclinkunknown': '檢視原始狀態',
|
|
79
|
+
'fabric.linking.try_again': '再試一次',
|
|
80
|
+
'fabric.linking.try_another_account': '使用其他帳戶嘗試',
|
|
81
|
+
'fabric.linking.unlink_account': '取消帳戶的連結',
|
|
82
|
+
'fabric.linking.updated_by': '修改者:{context}',
|
|
83
|
+
'fabric.linking.view': '檢視'
|
|
83
84
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export let InvokeActionName;
|
|
2
|
+
(function (InvokeActionName) {
|
|
3
|
+
InvokeActionName["UpdateAction"] = "UpdateAction";
|
|
4
|
+
})(InvokeActionName || (InvokeActionName = {}));
|
|
5
|
+
export let InvokeActionError;
|
|
6
|
+
(function (InvokeActionError) {
|
|
7
|
+
InvokeActionError["NoData"] = "NoData";
|
|
8
|
+
InvokeActionError["Unknown"] = "Unknown";
|
|
9
|
+
})(InvokeActionError || (InvokeActionError = {}));
|
package/dist/es2019/version.json
CHANGED
package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/error-boundary/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { ErrorBoundary } from 'react-error-boundary';
|
|
3
|
+
import Lozenge from '@atlaskit/lozenge';
|
|
4
|
+
const withErrorBoundary = Component => props => {
|
|
5
|
+
const fallback = useMemo(() => /*#__PURE__*/React.createElement(Lozenge, {
|
|
6
|
+
appearance: props === null || props === void 0 ? void 0 : props.appearance,
|
|
7
|
+
testId: `${props === null || props === void 0 ? void 0 : props.testId}-fallback`
|
|
8
|
+
}, props === null || props === void 0 ? void 0 : props.text), [props === null || props === void 0 ? void 0 : props.appearance, props === null || props === void 0 ? void 0 : props.testId, props === null || props === void 0 ? void 0 : props.text]);
|
|
9
|
+
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
10
|
+
fallback: fallback
|
|
11
|
+
}, /*#__PURE__*/React.createElement(Component, props));
|
|
12
|
+
};
|
|
13
|
+
export default withErrorBoundary;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import { useCallback, useMemo, useState } from 'react';
|
|
5
|
+
import DropdownMenu, { DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
6
|
+
import LozengeActionItem from './lozenge-action-item';
|
|
7
|
+
import LozengeActionTrigger from './lozenge-action-trigger';
|
|
8
|
+
import LozengeActionError from './lozenge-action-error';
|
|
9
|
+
import withErrorBoundary from './error-boundary';
|
|
10
|
+
import useInvoke from '../../../../../state/hooks/use-invoke';
|
|
11
|
+
import { InvokeActionError } from '../../../../../state/hooks/use-invoke/types';
|
|
12
|
+
import { dropdownItemGroupStyles } from './styled';
|
|
13
|
+
const LozengeAction = ({
|
|
14
|
+
action,
|
|
15
|
+
appearance,
|
|
16
|
+
testId = 'smart-element-lozenge-action',
|
|
17
|
+
text
|
|
18
|
+
}) => {
|
|
19
|
+
const [isLoaded, setIsLoaded] = useState(false);
|
|
20
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
21
|
+
const [items, setItems] = useState();
|
|
22
|
+
const [errorCode, setErrorCode] = useState();
|
|
23
|
+
const invoke = useInvoke();
|
|
24
|
+
const onOpenChange = useCallback(async args => {
|
|
25
|
+
if (args.isOpen && !isLoaded && action) {
|
|
26
|
+
try {
|
|
27
|
+
setIsLoading(true);
|
|
28
|
+
const lozengeItems = (await invoke(action)) || [];
|
|
29
|
+
setItems(lozengeItems);
|
|
30
|
+
setIsLoaded(true);
|
|
31
|
+
if (lozengeItems.length === 0) {
|
|
32
|
+
setErrorCode(InvokeActionError.NoData);
|
|
33
|
+
}
|
|
34
|
+
} catch (err) {
|
|
35
|
+
// TODO: EDM-5746 and EDM-5782
|
|
36
|
+
setErrorCode(InvokeActionError.Unknown);
|
|
37
|
+
} finally {
|
|
38
|
+
setIsLoading(false);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}, [action, invoke, isLoaded]);
|
|
42
|
+
const trigger = useCallback(props => jsx(LozengeActionTrigger, _extends({}, props, {
|
|
43
|
+
appearance: appearance,
|
|
44
|
+
testId: testId,
|
|
45
|
+
text: text
|
|
46
|
+
})), [appearance, testId, text]);
|
|
47
|
+
const dropdownItemGroup = useMemo(() => {
|
|
48
|
+
if (items && items.length > 0) {
|
|
49
|
+
return jsx("span", {
|
|
50
|
+
css: dropdownItemGroupStyles
|
|
51
|
+
}, jsx(DropdownItemGroup, null, items.map(({
|
|
52
|
+
appearance,
|
|
53
|
+
text
|
|
54
|
+
}, idx) => jsx(LozengeActionItem, {
|
|
55
|
+
appearance: appearance,
|
|
56
|
+
key: idx,
|
|
57
|
+
testId: `${testId}-item-${idx}`,
|
|
58
|
+
text: text
|
|
59
|
+
}))));
|
|
60
|
+
}
|
|
61
|
+
if (errorCode) {
|
|
62
|
+
return jsx(LozengeActionError, {
|
|
63
|
+
errorCode: errorCode,
|
|
64
|
+
testId: testId
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}, [errorCode, items, testId]);
|
|
68
|
+
return jsx(DropdownMenu, {
|
|
69
|
+
isLoading: isLoading,
|
|
70
|
+
onOpenChange: onOpenChange,
|
|
71
|
+
testId: testId,
|
|
72
|
+
trigger: trigger
|
|
73
|
+
}, dropdownItemGroup);
|
|
74
|
+
};
|
|
75
|
+
export default withErrorBoundary(LozengeAction);
|
package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
3
|
+
const LozengeActionError = ({
|
|
4
|
+
errorCode,
|
|
5
|
+
testId
|
|
6
|
+
}) => {
|
|
7
|
+
// TODO: EDM-5746 and EDM-5782
|
|
8
|
+
const content = useMemo(() => errorCode, [errorCode]);
|
|
9
|
+
return /*#__PURE__*/React.createElement(DropdownItemGroup, null, /*#__PURE__*/React.createElement(DropdownItem, {
|
|
10
|
+
testId: `${testId}-error`
|
|
11
|
+
}, content));
|
|
12
|
+
};
|
|
13
|
+
export default LozengeActionError;
|
package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-error/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
|
+
import { DropdownItem } from '@atlaskit/dropdown-menu';
|
|
3
|
+
import Lozenge from '@atlaskit/lozenge';
|
|
4
|
+
const LozengeActionItem = ({
|
|
5
|
+
appearance,
|
|
6
|
+
testId,
|
|
7
|
+
text
|
|
8
|
+
}) => {
|
|
9
|
+
const onMouseEnter = useCallback(e => {
|
|
10
|
+
var _e$currentTarget, _e$currentTarget$firs;
|
|
11
|
+
(_e$currentTarget = e.currentTarget) === null || _e$currentTarget === void 0 ? void 0 : (_e$currentTarget$firs = _e$currentTarget.firstElementChild) === null || _e$currentTarget$firs === void 0 ? void 0 : _e$currentTarget$firs.focus();
|
|
12
|
+
}, []);
|
|
13
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
14
|
+
onMouseEnter: onMouseEnter
|
|
15
|
+
}, /*#__PURE__*/React.createElement(DropdownItem, {
|
|
16
|
+
testId: testId
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Lozenge, {
|
|
18
|
+
appearance: appearance
|
|
19
|
+
}, text)));
|
|
20
|
+
};
|
|
21
|
+
export default LozengeActionItem;
|
package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-item/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import { useCallback, useState } from 'react';
|
|
5
|
+
import Lozenge from '@atlaskit/lozenge';
|
|
6
|
+
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
7
|
+
import { triggerButtonStyles, triggerLozengeStyles } from '../styled';
|
|
8
|
+
const LozengeActionTrigger = ({
|
|
9
|
+
appearance,
|
|
10
|
+
testId,
|
|
11
|
+
text,
|
|
12
|
+
triggerRef,
|
|
13
|
+
...props
|
|
14
|
+
}) => {
|
|
15
|
+
const [isBold, setIsBold] = useState(false);
|
|
16
|
+
const onMouseEnter = useCallback(() => setIsBold(true), []);
|
|
17
|
+
const onMouseLeave = useCallback(() => setIsBold(false), []);
|
|
18
|
+
return jsx("button", _extends({
|
|
19
|
+
type: "button"
|
|
20
|
+
}, props, {
|
|
21
|
+
css: triggerButtonStyles,
|
|
22
|
+
"data-testid": `${testId}--trigger`,
|
|
23
|
+
onMouseEnter: onMouseEnter,
|
|
24
|
+
onMouseLeave: onMouseLeave,
|
|
25
|
+
ref: triggerRef
|
|
26
|
+
}), jsx(Lozenge, {
|
|
27
|
+
appearance: appearance,
|
|
28
|
+
isBold: isBold
|
|
29
|
+
}, jsx("span", {
|
|
30
|
+
css: triggerLozengeStyles
|
|
31
|
+
}, jsx("span", null, text), jsx(ChevronDownIcon, {
|
|
32
|
+
label: "options",
|
|
33
|
+
size: "medium"
|
|
34
|
+
}))));
|
|
35
|
+
};
|
|
36
|
+
export default LozengeActionTrigger;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
|
+
export const triggerButtonStyles = css`
|
|
3
|
+
all: unset;
|
|
4
|
+
background-color: transparent;
|
|
5
|
+
color: unset;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
font-family: unset;
|
|
8
|
+
font-size: unset;
|
|
9
|
+
font-style: unset;
|
|
10
|
+
font-weight: unset;
|
|
11
|
+
font-variant: unset;
|
|
12
|
+
line-height: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
text-transform: unset;
|
|
15
|
+
|
|
16
|
+
border: 2px solid transparent;
|
|
17
|
+
margin: -2px;
|
|
18
|
+
|
|
19
|
+
&:focus-visible,
|
|
20
|
+
&:focus-within,
|
|
21
|
+
&[aria-expanded='true'] {
|
|
22
|
+
outline: none;
|
|
23
|
+
box-shadow: 0 0 0 2px ${"var(--ds-border-focused, #388BFF)"};
|
|
24
|
+
border-radius: 5px;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
export const triggerLozengeStyles = css`
|
|
28
|
+
align-items: center;
|
|
29
|
+
display: flex;
|
|
30
|
+
|
|
31
|
+
span[role='img'] {
|
|
32
|
+
margin: -4px -8px -4px -1px;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
export const dropdownItemGroupStyles = css`
|
|
36
|
+
button {
|
|
37
|
+
padding: 6px 12px;
|
|
38
|
+
min-height: 28px;
|
|
39
|
+
width: 220px;
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
background-color: inherit;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:focus,
|
|
46
|
+
&:focus-visible {
|
|
47
|
+
background-color: ${"var(--ds-background-neutral-subtle-hovered, #091E420F)"};
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
box-shadow: inset 2px 0 0 ${"var(--ds-border-selected, #0C66E4)"};
|
|
50
|
+
outline: none;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|