@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.
Files changed (117) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-better-hovercard-killswitch-enabled--default.png +0 -0
  3. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +0 -0
  4. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +0 -0
  5. package/dist/cjs/messages.js +14 -39
  6. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +5 -0
  7. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +9 -2
  8. package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +5 -2
  9. package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +5 -1
  10. package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +50 -3
  11. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +6 -38
  12. package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/index.js +14 -33
  13. package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +43 -37
  14. package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -1
  15. package/dist/cjs/view/FlexibleCard/components/elements/common/base-icon-element/index.js +43 -5
  16. package/dist/cjs/view/HoverCard/components/ContentContainer.compiled.css +1 -1
  17. package/dist/cjs/view/HoverCard/components/ContentContainer.js +1 -1
  18. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +2 -4
  19. package/dist/cjs/view/HoverCard/components/views/resolved/index.js +4 -8
  20. package/dist/cjs/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.compiled.css +28 -5
  21. package/dist/cjs/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +75 -53
  22. package/dist/cjs/view/HoverCard/components/views/unauthorised/graphics.js +47 -0
  23. package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-better-hovercard-killswitch-enabled--default.png +0 -0
  24. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +0 -0
  25. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +0 -0
  26. package/dist/es2019/messages.js +14 -39
  27. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +5 -0
  28. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +9 -2
  29. package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +5 -2
  30. package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +6 -2
  31. package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +31 -0
  32. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +6 -34
  33. package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/index.js +11 -29
  34. package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +44 -38
  35. package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -1
  36. package/dist/es2019/view/FlexibleCard/components/elements/common/base-icon-element/index.js +38 -5
  37. package/dist/es2019/view/HoverCard/components/ContentContainer.compiled.css +1 -1
  38. package/dist/es2019/view/HoverCard/components/ContentContainer.js +1 -1
  39. package/dist/es2019/view/HoverCard/components/HoverCardContent.js +2 -4
  40. package/dist/es2019/view/HoverCard/components/views/resolved/index.js +4 -8
  41. package/dist/es2019/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.compiled.css +28 -5
  42. package/dist/es2019/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +82 -58
  43. package/dist/es2019/view/HoverCard/components/views/unauthorised/graphics.js +39 -0
  44. package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-better-hovercard-killswitch-enabled--default.png +0 -0
  45. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +0 -0
  46. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +0 -0
  47. package/dist/esm/messages.js +14 -39
  48. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +5 -0
  49. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +9 -2
  50. package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +5 -2
  51. package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +6 -2
  52. package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +47 -1
  53. package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +6 -38
  54. package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/index.js +13 -32
  55. package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +44 -38
  56. package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -1
  57. package/dist/esm/view/FlexibleCard/components/elements/common/base-icon-element/index.js +43 -5
  58. package/dist/esm/view/HoverCard/components/ContentContainer.compiled.css +1 -1
  59. package/dist/esm/view/HoverCard/components/ContentContainer.js +1 -1
  60. package/dist/esm/view/HoverCard/components/HoverCardContent.js +2 -4
  61. package/dist/esm/view/HoverCard/components/views/resolved/index.js +4 -8
  62. package/dist/esm/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.compiled.css +28 -5
  63. package/dist/esm/view/HoverCard/components/views/unauthorised/RovoUnauthorisedView.js +76 -54
  64. package/dist/esm/view/HoverCard/components/views/unauthorised/graphics.js +39 -0
  65. package/dist/types/common/analytics/generated/analytics.types.d.ts +4 -0
  66. package/dist/types/messages.d.ts +1 -1
  67. package/dist/types/state/analytics/useLinkClicked.d.ts +2 -2
  68. package/dist/types/state/hooks/use-invoke/index.d.ts +1 -1
  69. package/dist/types/state/hooks/use-resolve/index.d.ts +1 -1
  70. package/dist/types/state/hooks/use-resolve-hyperlink/index.d.ts +1 -1
  71. package/dist/types/state/hooks/use-resolve-hyperlink/useScheduledRegister.d.ts +1 -1
  72. package/dist/types/utils/analytics/click.d.ts +1 -1
  73. package/dist/types/utils/mocks.d.ts +3 -3
  74. package/dist/types/view/Card/index.d.ts +2 -2
  75. package/dist/types/view/EmbedCard/views/ResolvedView.d.ts +1 -1
  76. package/dist/types/view/EmbedModal/components/embed-content/index.d.ts +1 -1
  77. package/dist/types/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.d.ts +3 -0
  78. package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +2 -10
  79. package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +4 -7
  80. package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +1 -1
  81. package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.d.ts +1 -1
  82. package/dist/types/view/HoverCard/components/views/resolved/index.d.ts +1 -1
  83. package/dist/types/view/HoverCard/components/views/resolved/types.d.ts +0 -1
  84. package/dist/types/view/HoverCard/components/views/unauthorised/graphics.d.ts +3 -0
  85. package/dist/types/view/InlineCard/Frame/styled.d.ts +2 -2
  86. package/dist/types/view/InlineCard/common/action-button/index.d.ts +1 -1
  87. package/dist/types/view/InlineCard/common/rovo-actions-button/index.d.ts +1 -1
  88. package/dist/types/view/RelatedLinksModal/components/EmptyState.d.ts +1 -1
  89. package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +1 -1
  90. package/dist/types/view/RelatedLinksModal/components/related-link-item/index.d.ts +1 -1
  91. package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +4 -0
  92. package/dist/types-ts4.5/messages.d.ts +1 -1
  93. package/dist/types-ts4.5/state/analytics/useLinkClicked.d.ts +2 -2
  94. package/dist/types-ts4.5/state/hooks/use-invoke/index.d.ts +1 -1
  95. package/dist/types-ts4.5/state/hooks/use-resolve/index.d.ts +1 -1
  96. package/dist/types-ts4.5/state/hooks/use-resolve-hyperlink/index.d.ts +1 -1
  97. package/dist/types-ts4.5/state/hooks/use-resolve-hyperlink/useScheduledRegister.d.ts +1 -1
  98. package/dist/types-ts4.5/utils/analytics/click.d.ts +1 -1
  99. package/dist/types-ts4.5/utils/mocks.d.ts +3 -3
  100. package/dist/types-ts4.5/view/Card/index.d.ts +2 -2
  101. package/dist/types-ts4.5/view/EmbedCard/views/ResolvedView.d.ts +1 -1
  102. package/dist/types-ts4.5/view/EmbedModal/components/embed-content/index.d.ts +1 -1
  103. package/dist/types-ts4.5/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.d.ts +3 -0
  104. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +2 -10
  105. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +4 -7
  106. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +1 -1
  107. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.d.ts +1 -1
  108. package/dist/types-ts4.5/view/HoverCard/components/views/resolved/index.d.ts +1 -1
  109. package/dist/types-ts4.5/view/HoverCard/components/views/resolved/types.d.ts +0 -1
  110. package/dist/types-ts4.5/view/HoverCard/components/views/unauthorised/graphics.d.ts +3 -0
  111. package/dist/types-ts4.5/view/InlineCard/Frame/styled.d.ts +2 -2
  112. package/dist/types-ts4.5/view/InlineCard/common/action-button/index.d.ts +1 -1
  113. package/dist/types-ts4.5/view/InlineCard/common/rovo-actions-button/index.d.ts +1 -1
  114. package/dist/types-ts4.5/view/RelatedLinksModal/components/EmptyState.d.ts +1 -1
  115. package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +1 -1
  116. package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/index.d.ts +1 -1
  117. 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' | 'rovo_unauthorised_feature_document_summaries_title' | 'rovo_unauthorised_feature_document_summaries_desc' | 'rovo_unauthorised_feature_smart_suggestions_title' | 'rovo_unauthorised_feature_smart_suggestions_desc' | 'rovo_unauthorised_feature_cross_reference_title' | 'rovo_unauthorised_feature_cross_reference_desc' | 'rovo_unauthorised_feature_related_content_title' | 'rovo_unauthorised_feature_related_content_desc' | 'rovo_unauthorised_connect_account' | 'rovo_unauthorised_not_now' | RovoChatActionMessageKey;
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, "middle" | "none" | "left" | "right">;
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: "resolved";
34
+ status: 'resolved';
35
35
  details: {
36
36
  meta: {
37
- visibility: "public";
38
- access: "granted";
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, "intl"> & {
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, "ref"> & React.RefAttributes<any>>;
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>, "ref"> & 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, type RovoSummaryBlockProps } from './types';
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
- * Placeholder to show when summary is not available
9
+ * Whether platform_sl_3p_auth_rovo_action experiment value is ON for current runtime
10
10
  */
11
- placeholder?: ReactNode;
12
- } & BlockProps;
13
- export type RovoSummaryBlockProps = {
11
+ is3PAuthRovoActionsExperimentOn?: boolean;
14
12
  /**
15
- * Minimum height requirement for the AISummary component to prevent fluctuations in a card size on the summary action.
13
+ * Placeholder to show when summary is not available
16
14
  */
17
- aiSummaryMinHeight?: number;
18
- url?: string;
15
+ placeholder?: ReactNode;
19
16
  } & BlockProps;
@@ -42,7 +42,7 @@ declare const _default_1: (props: ElementProps & {
42
42
  /**
43
43
  * Badge appearances
44
44
  */
45
- appearance?: "default" | "subtle";
45
+ appearance?: 'default' | 'subtle';
46
46
  /**
47
47
  * Color of the text and badge
48
48
  */
@@ -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, url, }: HoverCardResolvedProps) => JSX.Element;
2
+ declare const HoverCardResolvedView: ({ cardState, extensionKey, flexibleCardProps, isAISummaryEnabled, onActionClick, showRovoResolvedView, titleBlockProps, id, }: HoverCardResolvedProps) => JSX.Element;
3
3
  export default HoverCardResolvedView;
@@ -12,5 +12,4 @@ export type HoverCardResolvedProps = {
12
12
  isAISummaryEnabled?: boolean;
13
13
  onActionClick: (actionId: string | ActionName) => void;
14
14
  showRovoResolvedView?: boolean;
15
- url: string;
16
15
  } & HoverCardLoadingViewProps;
@@ -0,0 +1,3 @@
1
+ export declare const DenseSparkle: () => JSX.Element;
2
+ export declare const SparseSparkle: () => JSX.Element;
3
+ export declare const SquiglyArrow: () => JSX.Element;
@@ -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, "ref"> & React.RefAttributes<HTMLSpanElement>>;
17
- export declare const WrapperAnchor: React.ForwardRefExoticComponent<Omit<WrapperProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
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, "ref"> & RefAttributes<HTMLButtonElement>>;
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.6",
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.5.0",
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.34.0",
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": "^56.0.0",
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",