@atlaskit/smart-card 36.2.6 → 36.2.7
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 +6 -0
- package/dist/cjs/messages.js +30 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +7 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +4 -2
- package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.compiled.css +13 -1
- package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.js +14 -4
- package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.compiled.css +2 -1
- package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.js +20 -6
- package/dist/cjs/view/RelatedLinksModal/views/errored/error-svg/search-no-result/index.js +18 -0
- package/dist/cjs/view/RelatedLinksModal/views/resolved/index.js +17 -4
- package/dist/cjs/view/RelatedLinksModal/views/unavailable/index.js +12 -1
- package/dist/cjs/view/common/render-svg.compiled.css +3 -0
- package/dist/cjs/view/common/render-svg.js +32 -0
- package/dist/es2019/messages.js +30 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +7 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +4 -2
- package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.compiled.css +13 -1
- package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.js +11 -4
- package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.compiled.css +2 -1
- package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +17 -6
- package/dist/es2019/view/RelatedLinksModal/views/errored/error-svg/search-no-result/index.js +11 -0
- package/dist/es2019/view/RelatedLinksModal/views/resolved/index.js +13 -4
- package/dist/es2019/view/RelatedLinksModal/views/unavailable/index.js +10 -1
- package/dist/es2019/view/common/render-svg.compiled.css +3 -0
- package/dist/es2019/view/common/render-svg.js +23 -0
- package/dist/esm/messages.js +30 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/related-links-action-icon/index.js +7 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +4 -2
- package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.compiled.css +13 -1
- package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.js +14 -4
- package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.compiled.css +2 -1
- package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +20 -6
- package/dist/esm/view/RelatedLinksModal/views/errored/error-svg/search-no-result/index.js +11 -0
- package/dist/esm/view/RelatedLinksModal/views/resolved/index.js +17 -4
- package/dist/esm/view/RelatedLinksModal/views/unavailable/index.js +12 -1
- package/dist/esm/view/common/render-svg.compiled.css +3 -0
- package/dist/esm/view/common/render-svg.js +22 -0
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/related-link-item/index.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/related-links-list/index.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/types.d.ts +4 -0
- package/dist/types/view/RelatedLinksModal/views/errored/error-svg/search-no-result/index.d.ts +3 -0
- package/dist/types/view/common/render-svg.d.ts +16 -0
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/index.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-links-list/index.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/types.d.ts +4 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/views/errored/error-svg/search-no-result/index.d.ts +3 -0
- package/dist/types-ts4.5/view/common/render-svg.d.ts +16 -0
- package/package.json +6 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type RelatedLinksListProp } from '../types';
|
|
3
|
-
declare const RelatedLinksList: ({ urls, title, testId }: RelatedLinksListProp) => JSX.Element;
|
|
3
|
+
declare const RelatedLinksList: ({ urls, title, testId, selected, handleSelectedUpdate }: RelatedLinksListProp) => JSX.Element;
|
|
4
4
|
export default RelatedLinksList;
|
|
@@ -6,6 +6,8 @@ export type RelatedLinkItemProp = {
|
|
|
6
6
|
*/
|
|
7
7
|
url: string;
|
|
8
8
|
testId?: string;
|
|
9
|
+
isSelected?: boolean;
|
|
10
|
+
onFocus?: () => void;
|
|
9
11
|
};
|
|
10
12
|
export type RelatedLinksListProp = {
|
|
11
13
|
/**
|
|
@@ -18,6 +20,8 @@ export type RelatedLinksListProp = {
|
|
|
18
20
|
*/
|
|
19
21
|
urls: string[];
|
|
20
22
|
testId?: string;
|
|
23
|
+
selected?: string;
|
|
24
|
+
handleSelectedUpdate?: (selectedKey: string) => void;
|
|
21
25
|
};
|
|
22
26
|
export type RelatedLinksBaseModalProps = {
|
|
23
27
|
/**
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/// <reference types="react" />
|
|
6
|
+
export type RenderSVGProps = {
|
|
7
|
+
size?: 'xlarge' | 'large' | 'medium';
|
|
8
|
+
alt: string;
|
|
9
|
+
};
|
|
10
|
+
type RenderSVGInternalProps = RenderSVGProps & {
|
|
11
|
+
src: string;
|
|
12
|
+
srcDark?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const RenderSVG: ({ alt, size, src, srcDark }: RenderSVGInternalProps) => JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
|
|
3
|
-
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'more_information_about_this_work_item' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_message' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_message' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
|
|
3
|
+
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'more_information_about_this_work_item' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_message' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_message' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_modal_title_v2' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_found_in_v2' | 'related_links_includes_links_to' | 'related_links_includes_links_to_v2' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type RelatedLinkItemProp } from '../types';
|
|
3
|
-
declare const RelatedLinkItem: ({ url, testId }: RelatedLinkItemProp) => JSX.Element;
|
|
3
|
+
declare const RelatedLinkItem: ({ url, testId, isSelected, onFocus }: RelatedLinkItemProp) => JSX.Element;
|
|
4
4
|
export default RelatedLinkItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type RelatedLinksListProp } from '../types';
|
|
3
|
-
declare const RelatedLinksList: ({ urls, title, testId }: RelatedLinksListProp) => JSX.Element;
|
|
3
|
+
declare const RelatedLinksList: ({ urls, title, testId, selected, handleSelectedUpdate }: RelatedLinksListProp) => JSX.Element;
|
|
4
4
|
export default RelatedLinksList;
|
|
@@ -6,6 +6,8 @@ export type RelatedLinkItemProp = {
|
|
|
6
6
|
*/
|
|
7
7
|
url: string;
|
|
8
8
|
testId?: string;
|
|
9
|
+
isSelected?: boolean;
|
|
10
|
+
onFocus?: () => void;
|
|
9
11
|
};
|
|
10
12
|
export type RelatedLinksListProp = {
|
|
11
13
|
/**
|
|
@@ -18,6 +20,8 @@ export type RelatedLinksListProp = {
|
|
|
18
20
|
*/
|
|
19
21
|
urls: string[];
|
|
20
22
|
testId?: string;
|
|
23
|
+
selected?: string;
|
|
24
|
+
handleSelectedUpdate?: (selectedKey: string) => void;
|
|
21
25
|
};
|
|
22
26
|
export type RelatedLinksBaseModalProps = {
|
|
23
27
|
/**
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
export type RenderSVGProps = {
|
|
7
|
+
size?: 'xlarge' | 'large' | 'medium';
|
|
8
|
+
alt: string;
|
|
9
|
+
};
|
|
10
|
+
type RenderSVGInternalProps = RenderSVGProps & {
|
|
11
|
+
src: string;
|
|
12
|
+
srcDark?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const RenderSVG: ({ alt, size, src, srcDark }: RenderSVGInternalProps) => JSX.Element;
|
|
16
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "36.2.
|
|
3
|
+
"version": "36.2.7",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"@atlaskit/icon-lab": "^4.6.0",
|
|
45
45
|
"@atlaskit/icon-object": "^7.0.0",
|
|
46
46
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
47
|
+
"@atlaskit/image": "^3.0.0",
|
|
47
48
|
"@atlaskit/json-ld-types": "^1.0.0",
|
|
48
49
|
"@atlaskit/legacy-custom-icons": "^0.22.0",
|
|
49
50
|
"@atlaskit/link": "^3.1.0",
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"@atlaskit/modal-dialog": "^14.1.0",
|
|
59
60
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
60
61
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
61
|
-
"@atlaskit/popup": "^
|
|
62
|
+
"@atlaskit/popup": "^4.0.0",
|
|
62
63
|
"@atlaskit/primitives": "^14.3.0",
|
|
63
64
|
"@atlaskit/section-message": "^8.2.0",
|
|
64
65
|
"@atlaskit/select": "^20.1.0",
|
|
@@ -210,6 +211,9 @@
|
|
|
210
211
|
},
|
|
211
212
|
"fix_a11y_violation_in_hover_card_trigger": {
|
|
212
213
|
"type": "boolean"
|
|
214
|
+
},
|
|
215
|
+
"platform-linking-visual-refresh-v2": {
|
|
216
|
+
"type": "boolean"
|
|
213
217
|
}
|
|
214
218
|
}
|
|
215
219
|
}
|