@atlaskit/smart-card 19.1.16 → 19.1.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 +26 -0
- package/dist/cjs/constants.js +2 -1
- package/dist/cjs/extractors/block/index.js +2 -1
- package/dist/cjs/extractors/common/actions/extractPreviewAction.js +2 -1
- package/dist/cjs/extractors/flexible/index.js +3 -0
- package/dist/cjs/extractors/flexible/latest-commit/index.js +21 -0
- package/dist/cjs/i18n/cs.js +29 -115
- package/dist/cjs/i18n/da.js +31 -116
- package/dist/cjs/i18n/de.js +30 -116
- package/dist/cjs/i18n/en.js +29 -115
- package/dist/cjs/i18n/en_GB.js +29 -115
- package/dist/cjs/i18n/en_ZZ.js +10 -129
- package/dist/cjs/i18n/es.js +29 -115
- package/dist/cjs/i18n/fi.js +29 -115
- package/dist/cjs/i18n/fr.js +30 -116
- package/dist/cjs/i18n/hu.js +30 -116
- package/dist/cjs/i18n/it.js +29 -115
- package/dist/cjs/i18n/ja.js +29 -115
- package/dist/cjs/i18n/ko.js +29 -115
- package/dist/cjs/i18n/nb.js +30 -116
- package/dist/cjs/i18n/nl.js +29 -115
- package/dist/cjs/i18n/pl.js +30 -116
- package/dist/cjs/i18n/pt_BR.js +29 -115
- package/dist/cjs/i18n/ru.js +30 -116
- package/dist/cjs/i18n/sv.js +29 -115
- package/dist/cjs/i18n/th.js +29 -115
- package/dist/cjs/i18n/tr.js +30 -116
- package/dist/cjs/i18n/uk.js +29 -115
- package/dist/cjs/i18n/vi.js +29 -115
- package/dist/cjs/i18n/zh.js +30 -116
- package/dist/cjs/i18n/zh_TW.js +29 -115
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +12 -12
- package/dist/cjs/state/hooks-external/useSmartLinkActions.js +2 -1
- package/dist/cjs/utils/analytics/analytics.js +8 -4
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyFallback.js +4 -2
- package/dist/cjs/view/CardWithUrl/loader.js +4 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/index.js +8 -2
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +6 -0
- package/dist/cjs/view/HoverCard/components/hover-card-content.js +125 -0
- package/dist/cjs/view/HoverCard/index.js +22 -89
- package/dist/cjs/view/HoverCard/utils.js +3 -1
- package/dist/cjs/view/LinkView/index.js +1 -1
- package/dist/es2019/constants.js +2 -1
- package/dist/es2019/extractors/block/index.js +2 -1
- package/dist/es2019/extractors/common/actions/extractPreviewAction.js +2 -2
- package/dist/es2019/extractors/flexible/index.js +2 -0
- package/dist/es2019/extractors/flexible/latest-commit/index.js +12 -0
- package/dist/es2019/i18n/cs.js +29 -115
- package/dist/es2019/i18n/da.js +31 -116
- package/dist/es2019/i18n/de.js +30 -116
- package/dist/es2019/i18n/en.js +29 -115
- package/dist/es2019/i18n/en_GB.js +29 -115
- package/dist/es2019/i18n/en_ZZ.js +10 -129
- package/dist/es2019/i18n/es.js +29 -115
- package/dist/es2019/i18n/fi.js +29 -115
- package/dist/es2019/i18n/fr.js +30 -116
- package/dist/es2019/i18n/hu.js +30 -116
- package/dist/es2019/i18n/it.js +29 -115
- package/dist/es2019/i18n/ja.js +29 -115
- package/dist/es2019/i18n/ko.js +29 -115
- package/dist/es2019/i18n/nb.js +30 -116
- package/dist/es2019/i18n/nl.js +29 -115
- package/dist/es2019/i18n/pl.js +30 -116
- package/dist/es2019/i18n/pt_BR.js +29 -115
- package/dist/es2019/i18n/ru.js +30 -116
- package/dist/es2019/i18n/sv.js +29 -115
- package/dist/es2019/i18n/th.js +29 -115
- package/dist/es2019/i18n/tr.js +30 -116
- package/dist/es2019/i18n/uk.js +29 -115
- package/dist/es2019/i18n/vi.js +29 -115
- package/dist/es2019/i18n/zh.js +30 -116
- package/dist/es2019/i18n/zh_TW.js +29 -115
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +4 -4
- package/dist/es2019/state/hooks-external/useSmartLinkActions.js +2 -1
- package/dist/es2019/utils/analytics/analytics.js +8 -4
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/CardWithUrl/component-lazy/LazyFallback.js +13 -9
- package/dist/es2019/view/CardWithUrl/loader.js +4 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/elements/index.js +5 -0
- package/dist/es2019/view/FlexibleCard/components/elements/utils.js +7 -0
- package/dist/es2019/view/HoverCard/components/hover-card-content.js +85 -0
- package/dist/es2019/view/HoverCard/index.js +23 -78
- package/dist/es2019/view/HoverCard/utils.js +1 -0
- package/dist/es2019/view/LinkView/index.js +1 -1
- package/dist/esm/constants.js +2 -1
- package/dist/esm/extractors/block/index.js +2 -1
- package/dist/esm/extractors/common/actions/extractPreviewAction.js +2 -1
- package/dist/esm/extractors/flexible/index.js +2 -0
- package/dist/esm/extractors/flexible/latest-commit/index.js +12 -0
- package/dist/esm/i18n/cs.js +29 -115
- package/dist/esm/i18n/da.js +31 -116
- package/dist/esm/i18n/de.js +30 -116
- package/dist/esm/i18n/en.js +29 -115
- package/dist/esm/i18n/en_GB.js +29 -115
- package/dist/esm/i18n/en_ZZ.js +10 -129
- package/dist/esm/i18n/es.js +29 -115
- package/dist/esm/i18n/fi.js +29 -115
- package/dist/esm/i18n/fr.js +30 -116
- package/dist/esm/i18n/hu.js +30 -116
- package/dist/esm/i18n/it.js +29 -115
- package/dist/esm/i18n/ja.js +29 -115
- package/dist/esm/i18n/ko.js +29 -115
- package/dist/esm/i18n/nb.js +30 -116
- package/dist/esm/i18n/nl.js +29 -115
- package/dist/esm/i18n/pl.js +30 -116
- package/dist/esm/i18n/pt_BR.js +29 -115
- package/dist/esm/i18n/ru.js +30 -116
- package/dist/esm/i18n/sv.js +29 -115
- package/dist/esm/i18n/th.js +29 -115
- package/dist/esm/i18n/tr.js +30 -116
- package/dist/esm/i18n/uk.js +29 -115
- package/dist/esm/i18n/vi.js +29 -115
- package/dist/esm/i18n/zh.js +30 -116
- package/dist/esm/i18n/zh_TW.js +29 -115
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +12 -12
- package/dist/esm/state/hooks-external/useSmartLinkActions.js +2 -1
- package/dist/esm/utils/analytics/analytics.js +8 -4
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/CardWithUrl/component-lazy/LazyFallback.js +4 -2
- package/dist/esm/view/CardWithUrl/loader.js +4 -2
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/index.js +5 -0
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +6 -0
- package/dist/esm/view/HoverCard/components/hover-card-content.js +99 -0
- package/dist/esm/view/HoverCard/index.js +25 -87
- package/dist/esm/view/HoverCard/utils.js +1 -0
- package/dist/esm/view/LinkView/index.js +1 -1
- package/dist/types/constants.d.ts +3 -2
- package/dist/types/extractors/block/types.d.ts +2 -0
- package/dist/types/extractors/common/__mocks__/jsonld.d.ts +91 -0
- package/dist/types/extractors/common/actions/extractPreviewAction.d.ts +2 -1
- package/dist/types/extractors/flexible/latest-commit/index.d.ts +2 -0
- package/dist/types/i18n/cs.d.ts +28 -114
- package/dist/types/i18n/da.d.ts +28 -113
- package/dist/types/i18n/de.d.ts +28 -114
- package/dist/types/i18n/en.d.ts +28 -114
- package/dist/types/i18n/en_GB.d.ts +28 -114
- package/dist/types/i18n/en_ZZ.d.ts +9 -128
- package/dist/types/i18n/es.d.ts +28 -114
- package/dist/types/i18n/fi.d.ts +28 -114
- package/dist/types/i18n/fr.d.ts +28 -114
- package/dist/types/i18n/hu.d.ts +28 -114
- package/dist/types/i18n/it.d.ts +28 -114
- package/dist/types/i18n/ja.d.ts +28 -114
- package/dist/types/i18n/ko.d.ts +28 -114
- package/dist/types/i18n/nb.d.ts +28 -114
- package/dist/types/i18n/nl.d.ts +28 -114
- package/dist/types/i18n/pl.d.ts +28 -114
- package/dist/types/i18n/pt_BR.d.ts +28 -114
- package/dist/types/i18n/ru.d.ts +28 -114
- package/dist/types/i18n/sv.d.ts +28 -114
- package/dist/types/i18n/th.d.ts +28 -114
- package/dist/types/i18n/tr.d.ts +28 -114
- package/dist/types/i18n/uk.d.ts +28 -114
- package/dist/types/i18n/vi.d.ts +28 -114
- package/dist/types/i18n/zh.d.ts +28 -114
- package/dist/types/i18n/zh_TW.d.ts +28 -114
- package/dist/types/state/actions/index.d.ts +2 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +2 -2
- package/dist/types/state/flexible-ui-context/types.d.ts +4 -0
- package/dist/types/state/hooks/useSmartLink.d.ts +3 -3
- package/dist/types/state/hooks-external/useSmartLinkActions.d.ts +2 -2
- package/dist/types/utils/analytics/analytics.d.ts +4 -4
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/Card/types.d.ts +1 -0
- package/dist/types/view/CardWithUrl/types.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/index.d.ts +4 -0
- package/dist/types/view/HoverCard/components/hover-card-content.d.ts +4 -0
- package/dist/types/view/HoverCard/types.d.ts +12 -0
- package/dist/types/view/HoverCard/utils.d.ts +1 -0
- package/dist/types/view/LinkView/index.d.ts +4 -1
- package/package.json +3 -3
package/dist/esm/i18n/zh_TW.js
CHANGED
|
@@ -6,152 +6,66 @@
|
|
|
6
6
|
*/
|
|
7
7
|
//Chinese (Traditional)
|
|
8
8
|
export default {
|
|
9
|
-
'fabric.linking.cannot_connect': '無法連結,請再試一次',
|
|
10
|
-
'fabric.linking.cannot_find_link': '找不到連結',
|
|
11
|
-
'fabric.linking.join_to_view': '加入 {context} 以查看此議題',
|
|
12
|
-
'fabric.linking.create_on': '建立時間:{context}',
|
|
13
|
-
'fabric.linking.created_by': '建立者:{context}',
|
|
14
|
-
'fabric.linking.delete': '刪除',
|
|
15
|
-
'fabric.linking.edit': '編輯',
|
|
16
|
-
'fabric.linking.forbidden_access': '您的存取遭拒',
|
|
17
|
-
'fabric.linking.restricted_link': '連結受到限制,請嘗試其他帳戶',
|
|
18
|
-
'fabric.linking.modified_on': '更新時間:{context}',
|
|
19
|
-
'fabric.linking.pending_request': '您的存取要求擱置中',
|
|
20
|
-
'fabric.linking.priority_blocker': '封鎖程式',
|
|
21
|
-
'fabric.linking.priority_critical': '重要',
|
|
22
|
-
'fabric.linking.priority_high': '高',
|
|
23
|
-
'fabric.linking.priority_highest': '最高',
|
|
24
|
-
'fabric.linking.priority_low': '低',
|
|
25
|
-
'fabric.linking.priority_lowest': '最低',
|
|
26
|
-
'fabric.linking.priority_major': '主要',
|
|
27
|
-
'fabric.linking.priority_medium': '中',
|
|
28
|
-
'fabric.linking.priority_minor': '次要',
|
|
29
|
-
'fabric.linking.priority_trivial': '不太重要',
|
|
30
|
-
'fabric.linking.priority_undefined': '未定義',
|
|
31
|
-
'fabric.linking.request_access_to_view': '要求存取 {context} 以檢視此議題',
|
|
32
|
-
'fabric.linking.request_denied': '您的存取要求遭拒',
|
|
33
|
-
'fabric.linking.updated_by': '修改者:{context}',
|
|
34
|
-
'fabric.linking.accounts': '帳戶',
|
|
35
9
|
'fabric.linking.actions': '動作',
|
|
36
10
|
'fabric.linking.add_account': '新增帳戶',
|
|
37
|
-
'fabric.linking.annotate': '加上註解',
|
|
38
|
-
'fabric.linking.annotate.confirmation.close.anyway': '仍要關閉',
|
|
39
|
-
'fabric.linking.annotate.confirmation.content': '您有一些未儲存的變更,確定要離開嗎?',
|
|
40
|
-
'fabric.linking.annotate.confirmation.heading': '未儲存的變更',
|
|
41
|
-
'fabric.linking.annotate.tool.arrow': '箭頭',
|
|
42
|
-
'fabric.linking.annotate.tool.blur': '模糊',
|
|
43
|
-
'fabric.linking.annotate.tool.brush': '筆刷',
|
|
44
|
-
'fabric.linking.annotate.tool.color': '顏色',
|
|
45
|
-
'fabric.linking.annotate.tool.line.thickness': '線條粗細',
|
|
46
|
-
'fabric.linking.annotate.tool.shape': '形狀',
|
|
47
|
-
'fabric.linking.annotate.tool.text': '文字',
|
|
48
|
-
'fabric.linking.archive': '封存',
|
|
49
|
-
'fabric.linking.audio': '音訊',
|
|
50
11
|
'fabric.linking.cancel': '取消',
|
|
51
|
-
'fabric.linking.
|
|
52
|
-
'fabric.linking.
|
|
53
|
-
'fabric.linking.cant_retrieve_gifs': '唉呦!我們無法擷取任何 GIF',
|
|
54
|
-
'fabric.linking.change_view': '變更檢視畫面',
|
|
55
|
-
'fabric.linking.check_your_network': '請檢查您的網路連線',
|
|
12
|
+
'fabric.linking.cannot_connect': '無法連結,請再試一次',
|
|
13
|
+
'fabric.linking.cannot_find_link': '找不到連結',
|
|
56
14
|
'fabric.linking.click_to_join': '加入 {context}',
|
|
57
15
|
'fabric.linking.click_to_join_description': '您已獲得核准,因此可以立即加入 {context}。',
|
|
58
16
|
'fabric.linking.close': '關閉',
|
|
59
|
-
'fabric.linking.close_and_reopen': '請試著關閉此檔案,然後再重新開啟。',
|
|
60
17
|
'fabric.linking.connect_account_description': '我們會開啟新的頁面來協助您連結 {name} 帳戶',
|
|
61
18
|
'fabric.linking.connect_link_account': '連線以預覽',
|
|
62
19
|
'fabric.linking.connect_link_account_card_view': '連結',
|
|
63
20
|
'fabric.linking.connect_link_account_card_view_description': '若要顯示此連結的預覽,請連接您的 {context} 帳戶。',
|
|
64
21
|
'fabric.linking.connect_link_account_card_view_name': '連結 {context} 帳戶',
|
|
65
22
|
'fabric.linking.connect_to': '連結至 {name}',
|
|
66
|
-
'fabric.linking.could_not_load_editor': '唉呦!我們無法載入編輯器',
|
|
67
|
-
'fabric.linking.could_not_save_image': '唉呦!我們無法儲存影像',
|
|
68
|
-
'fabric.linking.couldnt_generate_encrypted_entry_preview': '我們無法預覽加密或以密碼保護的檔案。',
|
|
69
|
-
'fabric.linking.couldnt_generate_preview': '我們無法為此檔案產生預覽。',
|
|
70
|
-
'fabric.linking.couldnt_load_file': '我們無法載入檔案。',
|
|
71
23
|
'fabric.linking.couldnt_load_link': '基於不明原因,我們無法載入此連結。',
|
|
72
|
-
'fabric.linking.
|
|
73
|
-
'fabric.linking.
|
|
74
|
-
'fabric.linking.
|
|
75
|
-
'fabric.linking.
|
|
76
|
-
'fabric.linking.document': '文件',
|
|
24
|
+
'fabric.linking.create_on_absolute': '於 {context} 建立',
|
|
25
|
+
'fabric.linking.create_on_relative': '建立時間:{context}',
|
|
26
|
+
'fabric.linking.created_by': '建立者:{context}',
|
|
27
|
+
'fabric.linking.delete': '刪除',
|
|
77
28
|
'fabric.linking.download': '下載',
|
|
78
|
-
'fabric.linking.
|
|
79
|
-
'fabric.linking.
|
|
80
|
-
'fabric.linking.drag_and_drop_your_files_and_folders': '將檔案和資料夾拖曳至任何位置或',
|
|
81
|
-
'fabric.linking.drop_your_files': '置放要上傳的檔案',
|
|
82
|
-
'fabric.linking.drop_your_files_here': '將檔案置放在此',
|
|
83
|
-
'fabric.linking.email': '電子郵件',
|
|
84
|
-
'fabric.linking.enable_fullscreen': '啟用全螢幕',
|
|
85
|
-
'fabric.linking.error_429': '錯誤 429',
|
|
86
|
-
'fabric.linking.error_generating_preview': '產生預覽時發生錯誤',
|
|
87
|
-
'fabric.linking.error_hint_critical': '如果問題持續發生,請聯絡支援人員。',
|
|
88
|
-
'fabric.linking.error_hint_retry': '請再試一次。',
|
|
89
|
-
'fabric.linking.error_loading_file': '載入檔案時發生錯誤',
|
|
90
|
-
'fabric.linking.failed_to_load': '無法載入',
|
|
91
|
-
'fabric.linking.failed_to_upload': '無法上傳',
|
|
29
|
+
'fabric.linking.edit': '編輯',
|
|
30
|
+
'fabric.linking.forbidden_access': '您的存取遭拒',
|
|
92
31
|
'fabric.linking.forbidden_description': '您沒有此預覽的存取權。如果您需要存取權,請連絡網站管理員。',
|
|
93
|
-
'fabric.linking.give_feedback': '提供意見反應',
|
|
94
|
-
'fabric.linking.image': '影像',
|
|
95
|
-
'fabric.linking.image_format_invalid_error': '無法載入影像,格式無效。',
|
|
96
|
-
'fabric.linking.image_size_too_large_error': '影像太大,不得大於 {MAX_SIZE_MB}Mb',
|
|
97
|
-
'fabric.linking.image_url_invalid_error': '無法載入影像,URL 無效。',
|
|
98
|
-
'fabric.linking.insert_files': '{0, plural, other {插入 {0} 個檔案}}',
|
|
99
32
|
'fabric.linking.invalid_permissions': '限制連結',
|
|
100
33
|
'fabric.linking.invalid_permissions_description': '您需要請求存取或嘗試不同的帳戶,來檢視此預覽。',
|
|
101
|
-
'fabric.linking.
|
|
102
|
-
'fabric.linking.learn_more': '深入了解',
|
|
103
|
-
'fabric.linking.load_more_gifs': '載入更多 GIF',
|
|
34
|
+
'fabric.linking.join_to_view': '加入 {context} 以查看此議題',
|
|
104
35
|
'fabric.linking.loading': '正在載入...',
|
|
105
|
-
'fabric.linking.
|
|
106
|
-
'fabric.linking.
|
|
107
|
-
'fabric.linking.
|
|
108
|
-
'fabric.linking.no_gifs_found_suggestion': '我們找不到符合「{query}」的項目',
|
|
109
|
-
'fabric.linking.no_pdf_artifacts': '找不到符合此檔案的 PDF 成品。',
|
|
36
|
+
'fabric.linking.modified_on_absolute': '更新於 {context}',
|
|
37
|
+
'fabric.linking.modified_on_relative': '更新時間:{context}',
|
|
38
|
+
'fabric.linking.more_actions': '更多動作',
|
|
110
39
|
'fabric.linking.not_found_description': '我們找不到此連結。請檢查 URL,然後試著編輯或再次貼上。',
|
|
111
40
|
'fabric.linking.not_found_title': '糟糕,我們找不到此連結!',
|
|
112
|
-
'fabric.linking.
|
|
113
|
-
'fabric.linking.pause': '暫停',
|
|
114
|
-
'fabric.linking.play': '播放',
|
|
115
|
-
'fabric.linking.playback_default_speed': '預設',
|
|
116
|
-
'fabric.linking.playback_speed': '播放速度',
|
|
41
|
+
'fabric.linking.pending_request': '您的存取要求擱置中',
|
|
117
42
|
'fabric.linking.preview': '預覽',
|
|
118
|
-
'fabric.linking.
|
|
119
|
-
'fabric.linking.
|
|
120
|
-
'fabric.linking.
|
|
121
|
-
'fabric.linking.
|
|
43
|
+
'fabric.linking.priority_blocker': '受阻',
|
|
44
|
+
'fabric.linking.priority_critical': '嚴重',
|
|
45
|
+
'fabric.linking.priority_high': '高',
|
|
46
|
+
'fabric.linking.priority_highest': '最高',
|
|
47
|
+
'fabric.linking.priority_low': '低',
|
|
48
|
+
'fabric.linking.priority_lowest': '最低',
|
|
49
|
+
'fabric.linking.priority_major': '主要',
|
|
50
|
+
'fabric.linking.priority_medium': '中',
|
|
51
|
+
'fabric.linking.priority_minor': '次要',
|
|
52
|
+
'fabric.linking.priority_trivial': '不太重要',
|
|
53
|
+
'fabric.linking.priority_undefined': '未定義',
|
|
122
54
|
'fabric.linking.request_access': '要求存取權',
|
|
123
55
|
'fabric.linking.request_access_description': '要求 {context} 的存取權以檢視此預覽。',
|
|
124
56
|
'fabric.linking.request_access_pending': '存取擱置',
|
|
125
57
|
'fabric.linking.request_access_pending_description': '您的存取要求擱置中。',
|
|
58
|
+
'fabric.linking.request_access_to_view': '要求存取 {context} 以檢視此議題',
|
|
59
|
+
'fabric.linking.request_denied': '您的存取要求遭拒',
|
|
126
60
|
'fabric.linking.request_denied_description': '您的存取要求遭到拒絕。如果您仍需要存取權,請連絡網站管理員。',
|
|
61
|
+
'fabric.linking.restricted_link': '連結受到限制,請嘗試其他帳戶',
|
|
127
62
|
'fabric.linking.retry': '重試',
|
|
128
63
|
'fabric.linking.save': '儲存',
|
|
129
|
-
'fabric.linking.search': '搜尋',
|
|
130
|
-
'fabric.linking.search_all_gifs': '搜尋所有 GIF!',
|
|
131
|
-
'fabric.linking.share_files_instantly': '我們會立即分享',
|
|
132
|
-
'fabric.linking.skip_backward': '倒退 10 秒',
|
|
133
|
-
'fabric.linking.skip_forward': '快轉 10 秒',
|
|
134
|
-
'fabric.linking.something_went_wrong': '發生錯誤。',
|
|
135
64
|
'fabric.linking.srclink': '使用以下檢視:',
|
|
136
65
|
'fabric.linking.srclinkunknown': '檢視原始狀態',
|
|
137
|
-
'fabric.linking.text': '文字',
|
|
138
66
|
'fabric.linking.try_again': '再試一次',
|
|
139
67
|
'fabric.linking.try_another_account': '使用其他帳戶嘗試',
|
|
140
|
-
'fabric.linking.try_downloading_file': '嘗試下載檔案來進行檢視。',
|
|
141
|
-
'fabric.linking.unable_to_annotate_image': '您無法對此影像加上註解',
|
|
142
|
-
'fabric.linking.unknown': '未知',
|
|
143
68
|
'fabric.linking.unlink_account': '取消帳戶的連結',
|
|
144
|
-
'fabric.linking.
|
|
145
|
-
'fabric.linking.
|
|
146
|
-
'fabric.linking.upload_file': '上傳檔案',
|
|
147
|
-
'fabric.linking.upload_file_from': '從 {name} 上傳檔案',
|
|
148
|
-
'fabric.linking.upload_image': '上傳影像',
|
|
149
|
-
'fabric.linking.upload_photo': '上傳相片',
|
|
150
|
-
'fabric.linking.video': '影片',
|
|
151
|
-
'fabric.linking.view': '檢視',
|
|
152
|
-
'fabric.linking.viewer_rateLimited': '載入您的檔案時發生問題。',
|
|
153
|
-
'fabric.linking.webgl_warning_description': '您的瀏覽器不支援 WebGL。使用啟用 WebGL 的瀏覽器來為影像加上註解。',
|
|
154
|
-
'fabric.linking.zip_entry_load_failed': '我們無法載入該 zip 檔案項目來進行預覽',
|
|
155
|
-
'fabric.linking.zoom_in': '縮小',
|
|
156
|
-
'fabric.linking.zoom_out': '放大'
|
|
69
|
+
'fabric.linking.updated_by': '修改者:{context}',
|
|
70
|
+
'fabric.linking.view': '檢視'
|
|
157
71
|
};
|
|
@@ -101,7 +101,7 @@ export var useSmartLinkAnalytics = function useSmartLinkAnalytics(url, dispatchA
|
|
|
101
101
|
extensionKey: extensionKey,
|
|
102
102
|
invokeType: invokeType
|
|
103
103
|
});
|
|
104
|
-
dispatchAnalytics(uiActionClickedEvent(actionType, extensionKey, display));
|
|
104
|
+
dispatchAnalytics(uiActionClickedEvent(id, actionType, extensionKey, display));
|
|
105
105
|
},
|
|
106
106
|
|
|
107
107
|
/**
|
|
@@ -116,7 +116,7 @@ export var useSmartLinkAnalytics = function useSmartLinkAnalytics(url, dispatchA
|
|
|
116
116
|
var definitionId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : extractedDefinitionId;
|
|
117
117
|
var extensionKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : extractedExtensionKey;
|
|
118
118
|
var previewInvokeMethod = arguments.length > 3 ? arguments[3] : undefined;
|
|
119
|
-
dispatchAnalytics(uiHoverCardOpenLinkClickedEvent(previewDisplay, definitionId, extensionKey, previewInvokeMethod));
|
|
119
|
+
dispatchAnalytics(uiHoverCardOpenLinkClickedEvent(defaultId, previewDisplay, definitionId, extensionKey, previewInvokeMethod));
|
|
120
120
|
},
|
|
121
121
|
|
|
122
122
|
/**
|
|
@@ -163,11 +163,11 @@ export var useSmartLinkAnalytics = function useSmartLinkAnalytics(url, dispatchA
|
|
|
163
163
|
* @param previewInvokeMethod How the preview was triggered.
|
|
164
164
|
* @returns
|
|
165
165
|
*/
|
|
166
|
-
hoverCardViewedEvent: function hoverCardViewedEvent(previewDisplay) {
|
|
167
|
-
var
|
|
168
|
-
var
|
|
169
|
-
var
|
|
170
|
-
return dispatchAnalytics(uiHoverCardViewedEvent(previewDisplay, definitionId, extensionKey, previewInvokeMethod));
|
|
166
|
+
hoverCardViewedEvent: function hoverCardViewedEvent(previewDisplay, previewInvokeMethod) {
|
|
167
|
+
var id = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultId;
|
|
168
|
+
var definitionId = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : extractedDefinitionId;
|
|
169
|
+
var extensionKey = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : extractedExtensionKey;
|
|
170
|
+
return dispatchAnalytics(uiHoverCardViewedEvent(id, previewDisplay, definitionId, extensionKey, previewInvokeMethod));
|
|
171
171
|
},
|
|
172
172
|
|
|
173
173
|
/**
|
|
@@ -179,11 +179,11 @@ export var useSmartLinkAnalytics = function useSmartLinkAnalytics(url, dispatchA
|
|
|
179
179
|
* @param previewInvokeMethod How the preview was triggered.
|
|
180
180
|
* @returns
|
|
181
181
|
*/
|
|
182
|
-
hoverCardDismissedEvent: function hoverCardDismissedEvent(previewDisplay, hoverTime) {
|
|
183
|
-
var
|
|
184
|
-
var
|
|
185
|
-
var
|
|
186
|
-
return dispatchAnalytics(uiHoverCardDismissedEvent(previewDisplay, hoverTime, definitionId, extensionKey, previewInvokeMethod));
|
|
182
|
+
hoverCardDismissedEvent: function hoverCardDismissedEvent(previewDisplay, hoverTime, previewInvokeMethod) {
|
|
183
|
+
var id = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : defaultId;
|
|
184
|
+
var definitionId = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : extractedDefinitionId;
|
|
185
|
+
var extensionKey = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : extractedExtensionKey;
|
|
186
|
+
return dispatchAnalytics(uiHoverCardDismissedEvent(id, previewDisplay, hoverTime, definitionId, extensionKey, previewInvokeMethod));
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
}, [defaultId, defaultLocation, extractedDefinitionId, extractedExtensionKey, dispatchAnalytics]);
|
|
@@ -34,7 +34,8 @@ export function useSmartLinkActions(_ref) {
|
|
|
34
34
|
return linkActions.invoke(opts, appearance);
|
|
35
35
|
},
|
|
36
36
|
handleAnalytics: analyticsHandler,
|
|
37
|
-
extensionKey: getExtensionKey(linkState.details)
|
|
37
|
+
extensionKey: getExtensionKey(linkState.details),
|
|
38
|
+
source: appearance
|
|
38
39
|
}, undefined, platform);
|
|
39
40
|
|
|
40
41
|
if (!cardProperties.actions || cardProperties.actions.length === 0) {
|
|
@@ -205,13 +205,14 @@ export var uiCardClickedEvent = function uiCardClickedEvent(id, display, status,
|
|
|
205
205
|
})
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
|
-
export var uiActionClickedEvent = function uiActionClickedEvent(actionType, extensionKey, display) {
|
|
208
|
+
export var uiActionClickedEvent = function uiActionClickedEvent(id, actionType, extensionKey, display) {
|
|
209
209
|
return {
|
|
210
210
|
action: 'clicked',
|
|
211
211
|
actionSubject: 'button',
|
|
212
212
|
actionSubjectId: uiActionSubjectIds[actionType],
|
|
213
213
|
eventType: 'ui',
|
|
214
214
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
215
|
+
id: id,
|
|
215
216
|
display: display,
|
|
216
217
|
extensionKey: extensionKey || '',
|
|
217
218
|
actionType: actionType
|
|
@@ -265,12 +266,13 @@ export var uiRenderFailedEvent = function uiRenderFailedEvent(display, error, er
|
|
|
265
266
|
}
|
|
266
267
|
};
|
|
267
268
|
};
|
|
268
|
-
export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(previewDisplay, definitionId, extensionKey, previewInvokeMethod) {
|
|
269
|
+
export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(id, previewDisplay, definitionId, extensionKey, previewInvokeMethod) {
|
|
269
270
|
return {
|
|
270
271
|
action: 'viewed',
|
|
271
272
|
actionSubject: 'hoverCard',
|
|
272
273
|
eventType: 'ui',
|
|
273
274
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
275
|
+
id: id,
|
|
274
276
|
definitionId: definitionId || '',
|
|
275
277
|
extensionKey: extensionKey || '',
|
|
276
278
|
previewDisplay: previewDisplay,
|
|
@@ -278,12 +280,13 @@ export var uiHoverCardViewedEvent = function uiHoverCardViewedEvent(previewDispl
|
|
|
278
280
|
})
|
|
279
281
|
};
|
|
280
282
|
};
|
|
281
|
-
export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(previewDisplay, hoverTime, definitionId, extensionKey, previewInvokeMethod) {
|
|
283
|
+
export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(id, previewDisplay, hoverTime, definitionId, extensionKey, previewInvokeMethod) {
|
|
282
284
|
return {
|
|
283
285
|
action: 'dismissed',
|
|
284
286
|
actionSubject: 'hoverCard',
|
|
285
287
|
eventType: 'ui',
|
|
286
288
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
289
|
+
id: id,
|
|
287
290
|
definitionId: definitionId || '',
|
|
288
291
|
extensionKey: extensionKey || '',
|
|
289
292
|
hoverTime: hoverTime,
|
|
@@ -292,13 +295,14 @@ export var uiHoverCardDismissedEvent = function uiHoverCardDismissedEvent(previe
|
|
|
292
295
|
})
|
|
293
296
|
};
|
|
294
297
|
};
|
|
295
|
-
export var uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(previewDisplay, definitionId, extensionKey, previewInvokeMethod) {
|
|
298
|
+
export var uiHoverCardOpenLinkClickedEvent = function uiHoverCardOpenLinkClickedEvent(id, previewDisplay, definitionId, extensionKey, previewInvokeMethod) {
|
|
296
299
|
return {
|
|
297
300
|
action: 'clicked',
|
|
298
301
|
actionSubject: 'button',
|
|
299
302
|
actionSubjectId: 'shortcutGoToLink',
|
|
300
303
|
eventType: 'ui',
|
|
301
304
|
attributes: _objectSpread(_objectSpread({}, context), {}, {
|
|
305
|
+
id: id,
|
|
302
306
|
definitionId: definitionId || '',
|
|
303
307
|
extensionKey: extensionKey || '',
|
|
304
308
|
previewDisplay: previewDisplay,
|
package/dist/esm/version.json
CHANGED
|
@@ -3,13 +3,15 @@ import { CardLinkView } from '../../../view/LinkView';
|
|
|
3
3
|
export var loadingPlaceholderClassName = 'smart-link-loading-placeholder';
|
|
4
4
|
export var LoadingCardLink = function LoadingCardLink(_ref) {
|
|
5
5
|
var isSelected = _ref.isSelected,
|
|
6
|
-
url = _ref.url
|
|
6
|
+
url = _ref.url,
|
|
7
|
+
placeholder = _ref.placeholder;
|
|
7
8
|
return /*#__PURE__*/React.createElement(CardLinkView, {
|
|
8
9
|
key: 'lazy-render-key',
|
|
9
10
|
testId: 'lazy-render-placeholder',
|
|
10
11
|
"data-trello-do-not-use-override": "lazy-render-placeholder-trello",
|
|
11
12
|
isSelected: isSelected,
|
|
12
13
|
link: url,
|
|
13
|
-
className: loadingPlaceholderClassName
|
|
14
|
+
className: loadingPlaceholderClassName,
|
|
15
|
+
placeholder: placeholder
|
|
14
16
|
});
|
|
15
17
|
};
|
|
@@ -42,7 +42,8 @@ export function CardWithURLRenderer(props) {
|
|
|
42
42
|
children = props.children,
|
|
43
43
|
ui = props.ui,
|
|
44
44
|
showHoverPreview = props.showHoverPreview,
|
|
45
|
-
analyticsEvents = props.analyticsEvents
|
|
45
|
+
analyticsEvents = props.analyticsEvents,
|
|
46
|
+
placeholder = props.placeholder; // Wrapper around analytics.
|
|
46
47
|
|
|
47
48
|
var dispatchAnalytics = useCallback(function (analyticsPayload) {
|
|
48
49
|
if (analyticsPayload && analyticsPayload.attributes) {
|
|
@@ -100,7 +101,8 @@ export function CardWithURLRenderer(props) {
|
|
|
100
101
|
inlinePreloaderStyle: inlinePreloaderStyle,
|
|
101
102
|
ui: ui,
|
|
102
103
|
showHoverPreview: showHoverPreview,
|
|
103
|
-
analyticsEvents: analyticsEvents
|
|
104
|
+
analyticsEvents: analyticsEvents,
|
|
105
|
+
placeholder: placeholder
|
|
104
106
|
};
|
|
105
107
|
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
106
108
|
FallbackComponent: ErrorFallback,
|
|
@@ -20,7 +20,7 @@ import * as Actions from '../actions';
|
|
|
20
20
|
import { isFlexibleUiElement } from '../../../../utils/flexible';
|
|
21
21
|
import ActionGroup from './action-group';
|
|
22
22
|
import ElementGroup from './element-group';
|
|
23
|
-
export var ElementDisplaySchema = (_ElementDisplaySchema = {}, _defineProperty(_ElementDisplaySchema, ElementName.AuthorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CollaboratorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CommentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ViewCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReactCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.VoteCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LinkIcon, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Preview, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.Priority, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ProgrammingLanguage, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Snippet, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.State, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubscriberCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Title, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Provider, ['inline']), _ElementDisplaySchema);
|
|
23
|
+
export var ElementDisplaySchema = (_ElementDisplaySchema = {}, _defineProperty(_ElementDisplaySchema, ElementName.AuthorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CollaboratorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CommentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ViewCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReactCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.VoteCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LinkIcon, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Preview, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.Priority, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ProgrammingLanguage, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Snippet, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.State, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubscriberCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Title, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Provider, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LatestCommit, ['inline']), _ElementDisplaySchema);
|
|
24
24
|
|
|
25
25
|
var getDirectionStyles = function getDirectionStyles(direction) {
|
|
26
26
|
switch (direction) {
|
|
@@ -51,6 +51,11 @@ export var CreatedBy = createElement(ElementName.CreatedBy);
|
|
|
51
51
|
*/
|
|
52
52
|
|
|
53
53
|
export var CreatedOn = createElement(ElementName.CreatedOn);
|
|
54
|
+
/**
|
|
55
|
+
* Creates an element that contains Last Commit hash
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
export var LatestCommit = createElement(ElementName.LatestCommit);
|
|
54
59
|
/**
|
|
55
60
|
* Creates a LinkIcon Icon element using the data from LinkIcon in the Flexible UI Context.
|
|
56
61
|
* @see Icon
|
|
@@ -79,6 +79,11 @@ var elementMappings = (_elementMappings = {}, _defineProperty(_elementMappings,
|
|
|
79
79
|
component: DateTime
|
|
80
80
|
}), _defineProperty(_elementMappings, ElementName.Provider, {
|
|
81
81
|
component: Badge
|
|
82
|
+
}), _defineProperty(_elementMappings, ElementName.LatestCommit, {
|
|
83
|
+
component: Badge,
|
|
84
|
+
props: {
|
|
85
|
+
icon: IconType.Commit
|
|
86
|
+
}
|
|
82
87
|
}), _elementMappings);
|
|
83
88
|
|
|
84
89
|
var getContextKey = function getContextKey(name) {
|
|
@@ -105,6 +110,7 @@ var getData = function getData(elementName, contextKey, context) {
|
|
|
105
110
|
case ElementName.VoteCount:
|
|
106
111
|
case ElementName.ProgrammingLanguage:
|
|
107
112
|
case ElementName.SubscriberCount:
|
|
113
|
+
case ElementName.LatestCommit:
|
|
108
114
|
return toBadgeProps(data);
|
|
109
115
|
|
|
110
116
|
case ElementName.CreatedBy:
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
2
|
+
import { extractMetadata } from '../../../extractors/hover/extractMetadata';
|
|
3
|
+
import { getSimulatedMetadata, HOVER_CARD_ANALYTICS_DISPLAY } from '../utils';
|
|
4
|
+
import extractPreview from '../../../extractors/flexible/extract-preview';
|
|
5
|
+
import { ActionName, SmartLinkSize, SmartLinkTheme } from '../../../constants';
|
|
6
|
+
import FlexibleCard from '../../FlexibleCard';
|
|
7
|
+
import { FooterBlock, MetadataBlock, PreviewBlock, SnippetBlock, TitleBlock } from '../../FlexibleCard/components/blocks';
|
|
8
|
+
import { isSpecialEvent } from '../../../utils';
|
|
9
|
+
import ShortcutIcon from '@atlaskit/icon/glyph/shortcut';
|
|
10
|
+
import { getExtensionKey } from '../../../state/helpers';
|
|
11
|
+
var flexibleUiOptions = {
|
|
12
|
+
hideElevation: true,
|
|
13
|
+
size: SmartLinkSize.Large,
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
15
|
+
theme: SmartLinkTheme.Black
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
var getOpenAction = function getOpenAction(url, analytics) {
|
|
19
|
+
return {
|
|
20
|
+
name: ActionName.CustomAction,
|
|
21
|
+
icon: /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
22
|
+
label: "open in new tab",
|
|
23
|
+
size: "medium"
|
|
24
|
+
}),
|
|
25
|
+
iconPosition: 'before',
|
|
26
|
+
onClick: function onClick() {
|
|
27
|
+
window.open(url, '_blank');
|
|
28
|
+
analytics.ui.hoverCardOpenLinkClickedEvent('card');
|
|
29
|
+
},
|
|
30
|
+
testId: 'hover-card-open-button'
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
var toFooterActions = function toFooterActions(cardActions) {
|
|
35
|
+
return cardActions.map(function (action) {
|
|
36
|
+
return {
|
|
37
|
+
content: action.text,
|
|
38
|
+
name: ActionName.CustomAction,
|
|
39
|
+
onClick: function onClick() {
|
|
40
|
+
return action.invoke();
|
|
41
|
+
},
|
|
42
|
+
testId: action.id
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
var HoverCardContent = function HoverCardContent(_ref) {
|
|
48
|
+
var _cardState$details;
|
|
49
|
+
|
|
50
|
+
var analytics = _ref.analytics,
|
|
51
|
+
_ref$cardActions = _ref.cardActions,
|
|
52
|
+
cardActions = _ref$cardActions === void 0 ? [] : _ref$cardActions,
|
|
53
|
+
cardState = _ref.cardState,
|
|
54
|
+
onResolve = _ref.onResolve,
|
|
55
|
+
renderers = _ref.renderers,
|
|
56
|
+
url = _ref.url;
|
|
57
|
+
useEffect(function () {
|
|
58
|
+
// Since hover preview only render on resolved status,
|
|
59
|
+
// there is no need to check for statuses.
|
|
60
|
+
analytics.ui.renderSuccessEvent(HOVER_CARD_ANALYTICS_DISPLAY, cardState.status);
|
|
61
|
+
}, [analytics.ui, cardState.status]);
|
|
62
|
+
var extensionKey = useMemo(function () {
|
|
63
|
+
return getExtensionKey(cardState.details);
|
|
64
|
+
}, [cardState.details]);
|
|
65
|
+
var onClick = useCallback(function (event) {
|
|
66
|
+
var isModifierKeyPressed = isSpecialEvent(event);
|
|
67
|
+
analytics.ui.cardClickedEvent(undefined, HOVER_CARD_ANALYTICS_DISPLAY, cardState.status, undefined, undefined, isModifierKeyPressed);
|
|
68
|
+
}, [cardState.status, analytics.ui]);
|
|
69
|
+
var titleActions = useMemo(function () {
|
|
70
|
+
return [getOpenAction(url, analytics)];
|
|
71
|
+
}, [url, analytics]);
|
|
72
|
+
var footerActions = useMemo(function () {
|
|
73
|
+
return toFooterActions(cardActions);
|
|
74
|
+
}, [cardActions]); //TODO: EDM-3224 deleted simulated and use real JsonLd
|
|
75
|
+
|
|
76
|
+
var _extractMetadata = extractMetadata(getSimulatedMetadata(extensionKey)),
|
|
77
|
+
primary = _extractMetadata.primary,
|
|
78
|
+
secondary = _extractMetadata.secondary;
|
|
79
|
+
|
|
80
|
+
var data = (_cardState$details = cardState.details) === null || _cardState$details === void 0 ? void 0 : _cardState$details.data;
|
|
81
|
+
var body = data && extractPreview(data) ? /*#__PURE__*/React.createElement(PreviewBlock, null) : /*#__PURE__*/React.createElement(SnippetBlock, null);
|
|
82
|
+
return /*#__PURE__*/React.createElement(FlexibleCard, {
|
|
83
|
+
cardState: cardState,
|
|
84
|
+
onClick: onClick,
|
|
85
|
+
onResolve: onResolve,
|
|
86
|
+
renderers: renderers,
|
|
87
|
+
ui: flexibleUiOptions,
|
|
88
|
+
url: url
|
|
89
|
+
}, /*#__PURE__*/React.createElement(TitleBlock, {
|
|
90
|
+
actions: titleActions
|
|
91
|
+
}), /*#__PURE__*/React.createElement(MetadataBlock, {
|
|
92
|
+
primary: primary,
|
|
93
|
+
secondary: secondary
|
|
94
|
+
}), body, /*#__PURE__*/React.createElement(FooterBlock, {
|
|
95
|
+
actions: footerActions
|
|
96
|
+
}));
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export default HoverCardContent;
|