@atlaskit/smart-card 43.31.6 → 43.31.8
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 +15 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-better-hovercard-killswitch-enabled--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +0 -0
- package/dist/cjs/messages.js +14 -39
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +5 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +9 -2
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +5 -2
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +5 -1
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +50 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +6 -38
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/index.js +14 -33
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +43 -37
- package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-icon-element/index.js +43 -5
- package/dist/cjs/view/HoverCard/components/ContentContainer.compiled.css +1 -1
- package/dist/cjs/view/HoverCard/components/ContentContainer.js +1 -1
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +2 -4
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +4 -8
- package/dist/cjs/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.compiled.css +28 -5
- package/dist/cjs/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +75 -53
- package/dist/cjs/view/HoverCard/components/views/unauthorised/graphics.js +47 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-better-hovercard-killswitch-enabled--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +0 -0
- package/dist/es2019/messages.js +14 -39
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +5 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +9 -2
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +5 -2
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +6 -2
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +31 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +6 -34
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/index.js +11 -29
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +44 -38
- package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-icon-element/index.js +38 -5
- package/dist/es2019/view/HoverCard/components/ContentContainer.compiled.css +1 -1
- package/dist/es2019/view/HoverCard/components/ContentContainer.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +2 -4
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +4 -8
- package/dist/es2019/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.compiled.css +28 -5
- package/dist/es2019/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +82 -58
- package/dist/es2019/view/HoverCard/components/views/unauthorised/graphics.js +39 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-better-hovercard-killswitch-enabled--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +0 -0
- package/dist/esm/messages.js +14 -39
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +5 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +9 -2
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +5 -2
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +6 -2
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +47 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +6 -38
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/index.js +13 -32
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +44 -38
- package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-icon-element/index.js +43 -5
- package/dist/esm/view/HoverCard/components/ContentContainer.compiled.css +1 -1
- package/dist/esm/view/HoverCard/components/ContentContainer.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +2 -4
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +4 -8
- package/dist/esm/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.compiled.css +28 -5
- package/dist/esm/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +76 -54
- package/dist/esm/view/HoverCard/components/views/unauthorised/graphics.js +39 -0
- package/dist/types/common/analytics/generated/analytics.types.d.ts +4 -0
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/state/analytics/useLinkClicked.d.ts +2 -2
- package/dist/types/state/hooks/use-invoke/index.d.ts +1 -1
- package/dist/types/state/hooks/use-resolve/index.d.ts +1 -1
- package/dist/types/state/hooks/use-resolve-hyperlink/index.d.ts +1 -1
- package/dist/types/state/hooks/use-resolve-hyperlink/useScheduledRegister.d.ts +1 -1
- package/dist/types/utils/analytics/click.d.ts +1 -1
- package/dist/types/utils/mocks.d.ts +3 -3
- package/dist/types/view/Card/index.d.ts +2 -2
- package/dist/types/view/EmbedCard/views/ResolvedView.d.ts +1 -1
- package/dist/types/view/EmbedModal/components/embed-content/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +2 -10
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +4 -7
- package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.d.ts +1 -1
- package/dist/types/view/HoverCard/components/views/resolved/index.d.ts +1 -1
- package/dist/types/view/HoverCard/components/views/resolved/types.d.ts +0 -1
- package/dist/types/view/HoverCard/components/views/unauthorised/graphics.d.ts +3 -0
- package/dist/types/view/InlineCard/Frame/styled.d.ts +2 -2
- package/dist/types/view/InlineCard/common/action-button/index.d.ts +1 -1
- package/dist/types/view/InlineCard/common/rovo-actions-button/index.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/EmptyState.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/related-link-item/index.d.ts +1 -1
- package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +4 -0
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/state/analytics/useLinkClicked.d.ts +2 -2
- package/dist/types-ts4.5/state/hooks/use-invoke/index.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-resolve/index.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-resolve-hyperlink/index.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-resolve-hyperlink/useScheduledRegister.d.ts +1 -1
- package/dist/types-ts4.5/utils/analytics/click.d.ts +1 -1
- package/dist/types-ts4.5/utils/mocks.d.ts +3 -3
- package/dist/types-ts4.5/view/Card/index.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedCard/views/ResolvedView.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedModal/components/embed-content/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.d.ts +3 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +2 -10
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +4 -7
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.d.ts +1 -1
- package/dist/types-ts4.5/view/HoverCard/components/views/resolved/index.d.ts +1 -1
- package/dist/types-ts4.5/view/HoverCard/components/views/resolved/types.d.ts +0 -1
- package/dist/types-ts4.5/view/HoverCard/components/views/unauthorised/graphics.d.ts +3 -0
- package/dist/types-ts4.5/view/InlineCard/Frame/styled.d.ts +2 -2
- package/dist/types-ts4.5/view/InlineCard/common/action-button/index.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/common/rovo-actions-button/index.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/EmptyState.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/index.d.ts +1 -1
- package/package.json +4 -5
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
export type RovoChatActionMessageKey = 'rovo_prompt_context_generic' | 'rovo_prompt_context_generic_plural' | 'rovo_prompt_context_confluence_page' | 'rovo_prompt_context_confluence_page_short' | 'rovo_prompt_context_jira_work_item' | 'rovo_prompt_context_jira_work_item_short' | 'rovo_prompt_button_recommend_other_sources' | 'rovo_prompt_message_recommend_other_sources' | 'rovo_prompt_button_show_other_mentions' | 'rovo_prompt_message_show_other_mentions' | 'rovo_prompt_button_suggest_improvement' | 'rovo_prompt_message_suggest_improvement';
|
|
4
|
-
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | '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' | 'compass_applied_components_count' | '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_descriptionGalaxia' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_project_errorGalaxia' | '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' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_modal' | 'preview_panel' | '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' | 'rovo_actions_explore' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project_descriptionGalaxia' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_project_errorGalaxia' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | '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_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh' | 'connect_unauthorised_account_description_appify' | 'connect_unauthorised_account_description_no_provider_appify' | 'learn_more_about_connecting_account_experiment_shorter' | 'learn_more_about_connecting_account_appify' | 'rovo_summary_loading' | 'ai_disclaimer' | 'rovo_unauthorised_title' | 'rovo_unauthorised_title_no_provider' | '
|
|
4
|
+
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | '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' | 'compass_applied_components_count' | '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_descriptionGalaxia' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_project_errorGalaxia' | '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' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_modal' | 'preview_panel' | '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' | 'rovo_actions_explore' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project_descriptionGalaxia' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_project_errorGalaxia' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | '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_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh' | 'connect_unauthorised_account_description_appify' | 'connect_unauthorised_account_description_no_provider_appify' | 'learn_more_about_connecting_account_experiment_shorter' | 'learn_more_about_connecting_account_appify' | 'rovo_summary_loading' | 'ai_disclaimer' | 'rovo_unauthorised_title' | 'rovo_unauthorised_title_no_provider' | 'rovo_unauthorised_feature_clear_link_names' | 'rovo_unauthorised_feature_understand_linked_docs' | 'rovo_unauthorised_feature_go_deeper_smart_suggestions' | 'rovo_unauthorised_connect_account' | 'rovo_unauthorised_not_now' | RovoChatActionMessageKey;
|
|
5
5
|
type Messages = {
|
|
6
6
|
[K in MessageKey]: MessageDescriptor;
|
|
7
7
|
};
|
|
@@ -12,5 +12,5 @@ handler?: T,
|
|
|
12
12
|
/**
|
|
13
13
|
* Filter which mouse events should trigger the link clicked event
|
|
14
14
|
*/
|
|
15
|
-
predicate?: (event: React.MouseEvent) => boolean) => (...args: Parameters<T>) => void;
|
|
16
|
-
export declare const useMouseDownEvent: <T extends React.MouseEventHandler>(onMouseDown?: T) => (...args: Parameters<T>) => void;
|
|
15
|
+
predicate?: (event: React.MouseEvent) => boolean) => ((...args: Parameters<T>) => void);
|
|
16
|
+
export declare const useMouseDownEvent: <T extends React.MouseEventHandler>(onMouseDown?: T) => ((...args: Parameters<T>) => void);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { InvokeRequest } from '@atlaskit/linking-types/smart-link-actions';
|
|
2
|
-
declare const useInvoke: () => (req: InvokeRequest, cb?: Function) => Promise<any
|
|
2
|
+
declare const useInvoke: () => ((req: InvokeRequest, cb?: Function) => Promise<any>);
|
|
3
3
|
export default useInvoke;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const useResolve: () => (url: string, isReloading?: boolean, isMetadataRequest?: boolean, id?: string) => Promise<void
|
|
1
|
+
declare const useResolve: () => ((url: string, isReloading?: boolean, isMetadataRequest?: boolean, id?: string) => Promise<void>);
|
|
2
2
|
export default useResolve;
|
|
3
3
|
export type ResolveFunction = ReturnType<typeof useResolve>;
|
|
@@ -2,7 +2,7 @@ import type { JsonLd } from '@atlaskit/json-ld-types';
|
|
|
2
2
|
import type { CardState } from '@atlaskit/linking-common';
|
|
3
3
|
import type { InvokeClientOpts, InvokeServerOpts } from '../../../model/invoke-opts';
|
|
4
4
|
import type { CardInnerAppearance } from '../../../view/Card/types';
|
|
5
|
-
declare const useResolveHyperlink: ({ href }: {
|
|
5
|
+
declare const useResolveHyperlink: ({ href, }: {
|
|
6
6
|
href: string;
|
|
7
7
|
}) => {
|
|
8
8
|
state: CardState;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This is a scheduled batched register mechanism for resolving blue hyperlinks while the page is idle.
|
|
3
3
|
* i.e. SharePoint tenants with the same hostname will be grouped together before the register is made.
|
|
4
4
|
*/
|
|
5
|
-
export declare const useScheduledRegister: (href: string, register: (() => Promise<any>) | null) => () => Promise<void
|
|
5
|
+
export declare const useScheduledRegister: (href: string, register: (() => Promise<any>) | null) => (() => Promise<void>);
|
|
@@ -4,7 +4,7 @@ import { type AnalyticsEventPayload, type UIAnalyticsEvent } from '@atlaskit/ana
|
|
|
4
4
|
import { type LinkProps } from '@atlaskit/link';
|
|
5
5
|
import { type AnalyticsPayload } from '../types';
|
|
6
6
|
import { type ClickOutcome, type ClickType, type UiLinkClickedEventProps } from './types';
|
|
7
|
-
export declare const buttonMap: Map<number | undefined,
|
|
7
|
+
export declare const buttonMap: Map<number | undefined, 'middle' | 'none' | 'left' | 'right'>;
|
|
8
8
|
export declare const getKeys: (e: React.MouseEvent) => ("meta" | "alt" | "shift" | "ctrl")[];
|
|
9
9
|
export declare function getLinkClickOutcome(e: React.MouseEvent, clickType: ClickType): ClickOutcome;
|
|
10
10
|
export declare const createLinkClickedPayloadOld: (event: React.MouseEvent) => AnalyticsPayload | undefined;
|
|
@@ -31,11 +31,11 @@ export declare const mocks: {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
analytics: {
|
|
34
|
-
status:
|
|
34
|
+
status: 'resolved';
|
|
35
35
|
details: {
|
|
36
36
|
meta: {
|
|
37
|
-
visibility:
|
|
38
|
-
access:
|
|
37
|
+
visibility: 'public';
|
|
38
|
+
access: 'granted';
|
|
39
39
|
auth: never[];
|
|
40
40
|
definitionId: string;
|
|
41
41
|
key: string;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import { type WithAnalyticsEventsProps, type WithContextProps } from '@atlaskit/analytics-next';
|
|
4
4
|
import { type CardAppearance, type CardPlatform, type CardProps } from './types';
|
|
5
|
-
export declare const Card: React.ForwardRefExoticComponent<Omit<Omit<Omit<CardProps & WrappedComponentProps,
|
|
5
|
+
export declare const Card: React.ForwardRefExoticComponent<Omit<Omit<Omit<CardProps & WrappedComponentProps, 'intl'> & {
|
|
6
6
|
forwardedRef?: React.Ref<any>;
|
|
7
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & WithContextProps,
|
|
7
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & WithContextProps, 'ref'> & React.RefAttributes<any>>;
|
|
8
8
|
export type { CardAppearance, CardProps, CardPlatform };
|
|
@@ -44,5 +44,5 @@ export interface EmbedCardResolvedViewProps {
|
|
|
44
44
|
/** Type of the object */
|
|
45
45
|
type?: string[];
|
|
46
46
|
}
|
|
47
|
-
declare const EmbedCardResolvedViewWithFG: React.FC<Omit<EmbedCardResolvedViewProps & React.RefAttributes<HTMLIFrameElement>,
|
|
47
|
+
declare const EmbedCardResolvedViewWithFG: React.FC<Omit<EmbedCardResolvedViewProps & React.RefAttributes<HTMLIFrameElement>, 'ref'> & React.RefAttributes<HTMLIFrameElement>>;
|
|
48
48
|
export { EmbedCardResolvedViewWithFG as EmbedCardResolvedView };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type EmbedProps } from './types';
|
|
2
|
-
declare const EmbedContent: ({ isTrusted, name, src, testId, ariaLabel, extensionKey }: EmbedProps) => JSX.Element;
|
|
2
|
+
declare const EmbedContent: ({ isTrusted, name, src, testId, ariaLabel, extensionKey, }: EmbedProps) => JSX.Element;
|
|
3
3
|
export default EmbedContent;
|
|
@@ -4,3 +4,6 @@ import type { AISummaryActionProps } from './types';
|
|
|
4
4
|
export declare function CopySummaryAction({ url, onClick: onClickCallback, testId, content, ...props }: AISummaryActionProps & AISummaryActionData & {
|
|
5
5
|
content: string;
|
|
6
6
|
}): React.JSX.Element;
|
|
7
|
+
export declare function CopySummaryActionNew({ url, onClick: onClickCallback, summary, testId, ...props }: AISummaryActionProps & AISummaryActionData & {
|
|
8
|
+
summary?: string;
|
|
9
|
+
}): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type AISummaryBlockProps
|
|
2
|
+
import { type AISummaryBlockProps } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Represents an AISummaryBlock, designed to summarising link resource
|
|
5
5
|
* content using AI.
|
|
@@ -7,13 +7,5 @@ import { type AISummaryBlockProps, type RovoSummaryBlockProps } from './types';
|
|
|
7
7
|
* @param {AISummaryBlockProps} AISummaryBlock
|
|
8
8
|
* @see Block
|
|
9
9
|
*/
|
|
10
|
-
declare const AISummaryBlock: ({ testId, ...props }: AISummaryBlockProps) => React.JSX.Element | null;
|
|
11
|
-
/**
|
|
12
|
-
* Represents an AISummaryBlock, designed to summarising link resource
|
|
13
|
-
* content using AI.
|
|
14
|
-
* @public
|
|
15
|
-
* @param {RovoSummaryBlockProps} RovoSummaryBlock
|
|
16
|
-
* @see Block
|
|
17
|
-
*/
|
|
18
|
-
export declare const RovoSummaryBlock: ({ testId, url, ...props }: RovoSummaryBlockProps) => React.JSX.Element | null;
|
|
10
|
+
declare const AISummaryBlock: ({ is3PAuthRovoActionsExperimentOn, testId, ...props }: AISummaryBlockProps) => React.JSX.Element | null;
|
|
19
11
|
export default AISummaryBlock;
|
|
@@ -6,14 +6,11 @@ export type AISummaryBlockProps = {
|
|
|
6
6
|
*/
|
|
7
7
|
aiSummaryMinHeight?: number;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Whether platform_sl_3p_auth_rovo_action experiment value is ON for current runtime
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
} & BlockProps;
|
|
13
|
-
export type RovoSummaryBlockProps = {
|
|
11
|
+
is3PAuthRovoActionsExperimentOn?: boolean;
|
|
14
12
|
/**
|
|
15
|
-
*
|
|
13
|
+
* Placeholder to show when summary is not available
|
|
16
14
|
*/
|
|
17
|
-
|
|
18
|
-
url?: string;
|
|
15
|
+
placeholder?: ReactNode;
|
|
19
16
|
} & BlockProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { LozengeActionItemsGroupProps } from './types';
|
|
2
|
-
declare const LozengeActionItemsGroup: ({ items, testId, onClick }: LozengeActionItemsGroupProps) => JSX.Element;
|
|
2
|
+
declare const LozengeActionItemsGroup: ({ items, testId, onClick, }: LozengeActionItemsGroupProps) => JSX.Element;
|
|
3
3
|
export default LozengeActionItemsGroup;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type HoverCardResolvedProps } from './types';
|
|
2
|
-
declare const HoverCardResolvedView: ({ cardState, extensionKey, flexibleCardProps, isAISummaryEnabled, onActionClick, showRovoResolvedView, titleBlockProps, id,
|
|
2
|
+
declare const HoverCardResolvedView: ({ cardState, extensionKey, flexibleCardProps, isAISummaryEnabled, onActionClick, showRovoResolvedView, titleBlockProps, id, }: HoverCardResolvedProps) => JSX.Element;
|
|
3
3
|
export default HoverCardResolvedView;
|
|
@@ -13,5 +13,5 @@ export interface WrapperProps extends React.ComponentProps<any> {
|
|
|
13
13
|
viewType?: ViewType;
|
|
14
14
|
withoutBackground?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare const WrapperSpan: React.ForwardRefExoticComponent<Omit<WrapperProps,
|
|
17
|
-
export declare const WrapperAnchor: React.ForwardRefExoticComponent<Omit<WrapperProps,
|
|
16
|
+
export declare const WrapperSpan: React.ForwardRefExoticComponent<Omit<WrapperProps, 'ref'> & React.RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
export declare const WrapperAnchor: React.ForwardRefExoticComponent<Omit<WrapperProps, 'ref'> & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -10,5 +10,5 @@ type ActionButtonProps = ComponentPropsWithRef<typeof Pressable> & {
|
|
|
10
10
|
/**
|
|
11
11
|
* Action button has to be a span for the overflow to work correctly
|
|
12
12
|
*/
|
|
13
|
-
export declare const ActionButton: ForwardRefExoticComponent<Omit<ActionButtonProps,
|
|
13
|
+
export declare const ActionButton: ForwardRefExoticComponent<Omit<ActionButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
14
14
|
export {};
|
|
@@ -9,4 +9,4 @@ export interface RovoActionsButtonProps {
|
|
|
9
9
|
title?: string;
|
|
10
10
|
url?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare const RovoActionsButton: ({ onClick, testId, title, url }: RovoActionsButtonProps) => JSX.Element;
|
|
12
|
+
export declare const RovoActionsButton: ({ onClick, testId, title, url, }: RovoActionsButtonProps) => JSX.Element;
|
|
@@ -4,5 +4,5 @@ type EmptyStateProps = {
|
|
|
4
4
|
renderImage?: () => React.ReactNode;
|
|
5
5
|
testId?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const EmptyState: ({ testId, header, description, renderImage }: EmptyStateProps) => JSX.Element;
|
|
7
|
+
export declare const EmptyState: ({ testId, header, description, renderImage, }: EmptyStateProps) => JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type RelatedLinksBaseModalProps } from './types';
|
|
2
|
-
declare const RelatedLinksBaseModal: ({ onClose, showModal, children }: RelatedLinksBaseModalProps) => JSX.Element;
|
|
2
|
+
declare const RelatedLinksBaseModal: ({ onClose, showModal, children, }: RelatedLinksBaseModalProps) => JSX.Element;
|
|
3
3
|
export default RelatedLinksBaseModal;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type RelatedLinkItemProp } from '../types';
|
|
2
|
-
declare const RelatedLinkItem: ({ url, testId, isSelected, onFocus }: RelatedLinkItemProp) => JSX.Element;
|
|
2
|
+
declare const RelatedLinkItem: ({ url, testId, isSelected, onFocus, }: RelatedLinkItemProp) => JSX.Element;
|
|
3
3
|
export default RelatedLinkItem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "43.31.
|
|
3
|
+
"version": "43.31.8",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -65,17 +65,16 @@
|
|
|
65
65
|
"@atlaskit/linking-common": "^9.11.0",
|
|
66
66
|
"@atlaskit/linking-types": "^14.2.0",
|
|
67
67
|
"@atlaskit/logo": "^20.0.0",
|
|
68
|
-
"@atlaskit/lozenge": "^13.
|
|
68
|
+
"@atlaskit/lozenge": "^13.6.0",
|
|
69
69
|
"@atlaskit/menu": "^8.4.0",
|
|
70
70
|
"@atlaskit/modal-dialog": "^14.15.0",
|
|
71
|
-
"@atlaskit/motion": "^5.5.0",
|
|
72
71
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
73
72
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
74
73
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
75
74
|
"@atlaskit/popup": "^4.16.0",
|
|
76
75
|
"@atlaskit/primitives": "^18.1.0",
|
|
77
76
|
"@atlaskit/react-ufo": "^5.12.0",
|
|
78
|
-
"@atlaskit/rovo-triggers": "^5.
|
|
77
|
+
"@atlaskit/rovo-triggers": "^5.35.0",
|
|
79
78
|
"@atlaskit/section-message": "^8.12.0",
|
|
80
79
|
"@atlaskit/select": "^21.10.0",
|
|
81
80
|
"@atlaskit/spinner": "^19.1.0",
|
|
@@ -84,7 +83,7 @@
|
|
|
84
83
|
"@atlaskit/textfield": "^8.3.0",
|
|
85
84
|
"@atlaskit/theme": "^23.0.0",
|
|
86
85
|
"@atlaskit/tile": "^1.0.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
86
|
+
"@atlaskit/tmp-editor-statsig": "^57.0.0",
|
|
88
87
|
"@atlaskit/tokens": "^12.0.0",
|
|
89
88
|
"@atlaskit/tooltip": "^21.1.0",
|
|
90
89
|
"@atlaskit/ufo": "^0.4.0",
|