@atlaskit/smart-card 44.26.0 → 44.28.0

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 (44) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-resolved-view-with-rovo-actions-cta-treatment---default.png +2 -2
  3. package/dist/cjs/messages.js +40 -0
  4. package/dist/cjs/state/actions/index.js +16 -20
  5. package/dist/cjs/utils/analytics/analytics.js +1 -1
  6. package/dist/cjs/view/CardWithUrl/component.js +30 -9
  7. package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +8 -1
  8. package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +2 -1
  9. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +4 -12
  10. package/dist/cjs/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +2 -3
  11. package/dist/cjs/view/InlineCard/common/rovo-actions-cta/index.js +82 -14
  12. package/dist/cjs/view/LinkUrl/index.js +1 -1
  13. package/dist/cjs/view/common/rovo-chat-utils/index.js +118 -8
  14. package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-resolved-view-with-rovo-actions-cta-treatment---default.png +2 -2
  15. package/dist/es2019/messages.js +40 -0
  16. package/dist/es2019/state/actions/index.js +17 -21
  17. package/dist/es2019/utils/analytics/analytics.js +1 -1
  18. package/dist/es2019/view/CardWithUrl/component.js +30 -9
  19. package/dist/es2019/view/FlexibleCard/components/actions/rovo-chat-action/index.js +8 -1
  20. package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +6 -0
  21. package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -7
  22. package/dist/es2019/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +2 -3
  23. package/dist/es2019/view/InlineCard/common/rovo-actions-cta/index.js +63 -15
  24. package/dist/es2019/view/LinkUrl/index.js +1 -1
  25. package/dist/es2019/view/common/rovo-chat-utils/index.js +115 -1
  26. package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-resolved-view-with-rovo-actions-cta-treatment---default.png +2 -2
  27. package/dist/esm/messages.js +40 -0
  28. package/dist/esm/state/actions/index.js +17 -21
  29. package/dist/esm/utils/analytics/analytics.js +1 -1
  30. package/dist/esm/view/CardWithUrl/component.js +30 -9
  31. package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +8 -1
  32. package/dist/esm/view/HoverCard/components/HoverCardComponent.js +2 -1
  33. package/dist/esm/view/HoverCard/components/HoverCardContent.js +4 -12
  34. package/dist/esm/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +2 -3
  35. package/dist/esm/view/InlineCard/common/rovo-actions-cta/index.js +83 -15
  36. package/dist/esm/view/LinkUrl/index.js +1 -1
  37. package/dist/esm/view/common/rovo-chat-utils/index.js +118 -8
  38. package/dist/types/messages.d.ts +1 -1
  39. package/dist/types/view/InlineCard/common/rovo-actions-cta/index.d.ts +3 -1
  40. package/dist/types/view/common/rovo-chat-utils/index.d.ts +17 -2
  41. package/dist/types-ts4.5/messages.d.ts +1 -1
  42. package/dist/types-ts4.5/view/InlineCard/common/rovo-actions-cta/index.d.ts +3 -1
  43. package/dist/types-ts4.5/view/common/rovo-chat-utils/index.d.ts +17 -2
  44. package/package.json +6 -9
@@ -25,6 +25,11 @@ export var RovoChatPromptKey = /*#__PURE__*/function (RovoChatPromptKey) {
25
25
  RovoChatPromptKey["SUMMARIZE_THIS_FOR_ME"] = "summarize-this-for-me";
26
26
  RovoChatPromptKey["ASK_A_SPECIFIC_QUESTION"] = "ask-a-specific-question";
27
27
  RovoChatPromptKey["SHOW_ME_WHATS_RELEVANT"] = "show-me-whats-relevant";
28
+ RovoChatPromptKey["SUMMARIZE_DOCUMENT"] = "summarize-document";
29
+ RovoChatPromptKey["SUMMARIZE_PRESENTATION"] = "summarize-presentation";
30
+ RovoChatPromptKey["EXPLAIN_CODE"] = "explain-code";
31
+ RovoChatPromptKey["CATCH_UP"] = "catch-up";
32
+ RovoChatPromptKey["SALESFORCE_PREP"] = "salesforce-prep";
28
33
  return RovoChatPromptKey;
29
34
  }({});
30
35
  var getContext = function getContext(intl, product) {
@@ -44,18 +49,22 @@ var getContext = function getContext(intl, product) {
44
49
  };
45
50
  }
46
51
  };
47
- export var getPromptAction = function getPromptAction(promptKey, intl) {
52
+ export var getPromptAction = function getPromptAction(_ref) {
48
53
  var _getContext;
49
- var url = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
50
- var product = arguments.length > 3 ? arguments[3] : undefined;
51
- var iconSize = arguments.length > 4 ? arguments[4] : undefined;
52
- var cardAppearance = arguments.length > 5 ? arguments[5] : undefined;
53
- var _ref = (_getContext = getContext(intl, product)) !== null && _getContext !== void 0 ? _getContext : {
54
+ var promptKey = _ref.promptKey,
55
+ intl = _ref.intl,
56
+ _ref$url = _ref.url,
57
+ url = _ref$url === void 0 ? '' : _ref$url,
58
+ product = _ref.product,
59
+ iconSize = _ref.iconSize,
60
+ cardAppearance = _ref.cardAppearance,
61
+ provider = _ref.provider;
62
+ var _ref2 = (_getContext = getContext(intl, product)) !== null && _getContext !== void 0 ? _getContext : {
54
63
  contextLong: intl.formatMessage(messages.rovo_prompt_context_generic),
55
64
  contextShort: intl.formatMessage(messages.rovo_prompt_context_generic)
56
65
  },
57
- contextLong = _ref.contextLong,
58
- contextShort = _ref.contextShort;
66
+ contextLong = _ref2.contextLong,
67
+ contextShort = _ref2.contextShort;
59
68
  var isBlockCard3PExperimentEnabled = isBlockCardRovoActionExperimentEnabled(product);
60
69
  switch (promptKey) {
61
70
  case RovoChatPromptKey.RECOMMEND_OTHER_SOURCES:
@@ -321,5 +330,106 @@ export var getPromptAction = function getPromptAction(promptKey, intl) {
321
330
  prompt: htmlToAdf(html_find_open_questions)
322
331
  }
323
332
  };
333
+ case RovoChatPromptKey.SUMMARIZE_DOCUMENT:
334
+ var label_summarize_document = intl.formatMessage(messages.ai_summarize);
335
+ var html_summarize_document = intl.formatMessage(messages.rovo_prompt_message_summarize_document, {
336
+ url: url
337
+ }, {
338
+ ignoreTag: true
339
+ });
340
+ return {
341
+ content: label_summarize_document,
342
+ tooltipMessage: label_summarize_document,
343
+ data: {
344
+ name: label_summarize_document,
345
+ dialogues: [],
346
+ prompt: htmlToAdf(html_summarize_document)
347
+ },
348
+ icon: /*#__PURE__*/React.createElement(AiGenerativeTextSummaryIcon, {
349
+ label: label_summarize_document,
350
+ size: iconSize
351
+ })
352
+ };
353
+ case RovoChatPromptKey.SUMMARIZE_PRESENTATION:
354
+ var label_summarize_presentation = intl.formatMessage(messages.ai_summarize);
355
+ var html_summarize_presentation = intl.formatMessage(messages.rovo_prompt_message_summarize_presentation, {
356
+ url: url
357
+ }, {
358
+ ignoreTag: true
359
+ });
360
+ return {
361
+ content: label_summarize_presentation,
362
+ tooltipMessage: label_summarize_presentation,
363
+ data: {
364
+ name: label_summarize_presentation,
365
+ dialogues: [],
366
+ prompt: htmlToAdf(html_summarize_presentation)
367
+ },
368
+ icon: /*#__PURE__*/React.createElement(AiGenerativeTextSummaryIcon, {
369
+ label: label_summarize_presentation,
370
+ size: iconSize
371
+ })
372
+ };
373
+ case RovoChatPromptKey.EXPLAIN_CODE:
374
+ var label_explain_code = intl.formatMessage(messages.rovo_prompt_button_explain_code);
375
+ var html_explain_code = intl.formatMessage(messages.rovo_prompt_message_explain_code, {
376
+ url: url
377
+ }, {
378
+ ignoreTag: true
379
+ });
380
+ return {
381
+ content: label_explain_code,
382
+ tooltipMessage: label_explain_code,
383
+ data: {
384
+ name: label_explain_code,
385
+ dialogues: [],
386
+ prompt: htmlToAdf(html_explain_code)
387
+ },
388
+ icon: /*#__PURE__*/React.createElement(AiGenerativeTextSummaryIcon, {
389
+ label: label_explain_code,
390
+ size: iconSize
391
+ })
392
+ };
393
+ case RovoChatPromptKey.CATCH_UP:
394
+ var label_catch_up = intl.formatMessage(messages.rovo_prompt_button_catch_up);
395
+ var html_catch_up = intl.formatMessage(messages.rovo_prompt_message_catch_up, {
396
+ url: url,
397
+ provider: provider
398
+ }, {
399
+ ignoreTag: true
400
+ });
401
+ return {
402
+ content: label_catch_up,
403
+ tooltipMessage: label_catch_up,
404
+ data: {
405
+ name: label_catch_up,
406
+ dialogues: [],
407
+ prompt: htmlToAdf(html_catch_up)
408
+ },
409
+ icon: /*#__PURE__*/React.createElement(AiGenerativeTextSummaryIcon, {
410
+ label: label_catch_up,
411
+ size: iconSize
412
+ })
413
+ };
414
+ case RovoChatPromptKey.SALESFORCE_PREP:
415
+ var label_overview = intl.formatMessage(messages.rovo_prompt_button_salesforce_prep);
416
+ var html_overview = intl.formatMessage(messages.rovo_prompt_message_salesforce_prep, {
417
+ url: url
418
+ }, {
419
+ ignoreTag: true
420
+ });
421
+ return {
422
+ content: label_overview,
423
+ tooltipMessage: label_overview,
424
+ data: {
425
+ name: label_overview,
426
+ dialogues: [],
427
+ prompt: htmlToAdf(html_overview)
428
+ },
429
+ icon: /*#__PURE__*/React.createElement(AiGenerativeTextSummaryIcon, {
430
+ label: label_overview,
431
+ size: iconSize
432
+ })
433
+ };
324
434
  }
325
435
  };
@@ -1,6 +1,6 @@
1
1
  import { type MessageDescriptor } from 'react-intl';
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 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' | 'rovo_prompt_message_summarize' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything' | 'rovo_prompt_button_highlight_relevant_content' | 'rovo_prompt_message_highlight_relevant_content' | 'rovo_prompt_button_identify_key_trends' | 'rovo_prompt_message_identify_key_trends' | 'rovo_prompt_button_identify_key_points' | 'rovo_prompt_message_identify_key_points' | 'rovo_prompt_button_find_open_questions' | 'rovo_prompt_message_find_open_questions' | 'rovo_prompt_button_key_highlights' | 'rovo_prompt_message_key_highlights';
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' | 'rovo_prompt_message_summarize' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything' | 'rovo_prompt_button_highlight_relevant_content' | 'rovo_prompt_message_highlight_relevant_content' | 'rovo_prompt_button_identify_key_trends' | 'rovo_prompt_message_identify_key_trends' | 'rovo_prompt_button_identify_key_points' | 'rovo_prompt_message_identify_key_points' | 'rovo_prompt_button_find_open_questions' | 'rovo_prompt_message_find_open_questions' | 'rovo_prompt_button_key_highlights' | 'rovo_prompt_message_key_highlights' | 'rovo_prompt_message_summarize_document' | 'rovo_prompt_message_summarize_presentation' | 'rovo_prompt_button_explain_code' | 'rovo_prompt_message_explain_code' | 'rovo_prompt_button_catch_up' | 'rovo_prompt_message_catch_up' | 'rovo_prompt_button_salesforce_prep' | 'rovo_prompt_message_salesforce_prep';
4
4
  export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summary_error_generic' | 'ai_summary_error_generic_rebrand' | '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_rebrand' | 'ai_summary_action_description' | 'ai_summary_action_description_rebrand' | '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_link_account_success_flag_description' | 'connect_link_account_success_flag_title' | 'connect_link_account_success_flag_title_default' | 'connect_unauthorised_account_action' | 'connect_inline_social_proof' | 'social_proof_inline_cta_tag_high_with_context' | 'social_proof_inline_cta_tag_high_no_context' | 'social_proof_inline_cta_tag_low_with_context' | 'social_proof_inline_cta_tag_low_no_context' | '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' | 'viewInProvider' | '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' | 'rovo_chat_action_section_header' | 'rovo_prompt_button_summarize_this' | 'rovo_prompt_button_ask_a_specific_question' | 'rovo_prompt_button_show_me_whats_relevant' | RovoChatActionMessageKey | 'pre_auth_block_social_proof_not_low' | 'pre_auth_block_social_proof_low';
5
5
  type Messages = {
6
6
  [K in MessageKey]: MessageDescriptor;
@@ -1,7 +1,9 @@
1
+ import type { InternalCardActionOptions as CardActionOptions } from "../../../Card/types";
1
2
  export declare const RovoActionsCta: ({ testId }: {
2
3
  testId?: string;
3
4
  }) => JSX.Element;
4
- export declare const InlineRovoActionButton: ({ testId, url }: {
5
+ export declare const InlineRovoActionButton: ({ testId, url, actionOptions }: {
6
+ actionOptions?: CardActionOptions;
5
7
  testId?: string;
6
8
  url?: string;
7
9
  }) => JSX.Element | null;
@@ -18,8 +18,23 @@ export declare enum RovoChatPromptKey {
18
18
  HIGHLIGHT_RELEVANT_CONTENT = "highlight-relevant-content",
19
19
  SUMMARIZE_THIS_FOR_ME = "summarize-this-for-me",
20
20
  ASK_A_SPECIFIC_QUESTION = "ask-a-specific-question",
21
- SHOW_ME_WHATS_RELEVANT = "show-me-whats-relevant"
21
+ SHOW_ME_WHATS_RELEVANT = "show-me-whats-relevant",
22
+ SUMMARIZE_DOCUMENT = "summarize-document",
23
+ SUMMARIZE_PRESENTATION = "summarize-presentation",
24
+ EXPLAIN_CODE = "explain-code",
25
+ CATCH_UP = "catch-up",
26
+ SALESFORCE_PREP = "salesforce-prep"
22
27
  }
23
- export declare const getPromptAction: (promptKey: RovoChatPromptKey, intl: IntlShape, url?: string, product?: ProductType, iconSize?: ActionProps["iconSize"], cardAppearance?: CardDisplay) => (Pick<React.ComponentProps<typeof Action>, "content" | "icon" | "tooltipMessage"> & {
28
+ type PromptActionProps = {
29
+ cardAppearance?: CardDisplay;
30
+ iconSize?: ActionProps['iconSize'];
31
+ intl: IntlShape;
32
+ product?: ProductType;
33
+ promptKey: RovoChatPromptKey;
34
+ provider?: string;
35
+ url?: string;
36
+ };
37
+ export declare const getPromptAction: ({ promptKey, intl, url, product, iconSize, cardAppearance, provider }: PromptActionProps) => (Pick<React.ComponentProps<typeof Action>, "content" | "icon" | "tooltipMessage"> & {
24
38
  data: SendPromptMessageData;
25
39
  }) | undefined;
40
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { type MessageDescriptor } from 'react-intl';
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 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' | 'rovo_prompt_message_summarize' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything' | 'rovo_prompt_button_highlight_relevant_content' | 'rovo_prompt_message_highlight_relevant_content' | 'rovo_prompt_button_identify_key_trends' | 'rovo_prompt_message_identify_key_trends' | 'rovo_prompt_button_identify_key_points' | 'rovo_prompt_message_identify_key_points' | 'rovo_prompt_button_find_open_questions' | 'rovo_prompt_message_find_open_questions' | 'rovo_prompt_button_key_highlights' | 'rovo_prompt_message_key_highlights';
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' | 'rovo_prompt_message_summarize' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything' | 'rovo_prompt_button_highlight_relevant_content' | 'rovo_prompt_message_highlight_relevant_content' | 'rovo_prompt_button_identify_key_trends' | 'rovo_prompt_message_identify_key_trends' | 'rovo_prompt_button_identify_key_points' | 'rovo_prompt_message_identify_key_points' | 'rovo_prompt_button_find_open_questions' | 'rovo_prompt_message_find_open_questions' | 'rovo_prompt_button_key_highlights' | 'rovo_prompt_message_key_highlights' | 'rovo_prompt_message_summarize_document' | 'rovo_prompt_message_summarize_presentation' | 'rovo_prompt_button_explain_code' | 'rovo_prompt_message_explain_code' | 'rovo_prompt_button_catch_up' | 'rovo_prompt_message_catch_up' | 'rovo_prompt_button_salesforce_prep' | 'rovo_prompt_message_salesforce_prep';
4
4
  export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summary_error_generic' | 'ai_summary_error_generic_rebrand' | '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_rebrand' | 'ai_summary_action_description' | 'ai_summary_action_description_rebrand' | '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_link_account_success_flag_description' | 'connect_link_account_success_flag_title' | 'connect_link_account_success_flag_title_default' | 'connect_unauthorised_account_action' | 'connect_inline_social_proof' | 'social_proof_inline_cta_tag_high_with_context' | 'social_proof_inline_cta_tag_high_no_context' | 'social_proof_inline_cta_tag_low_with_context' | 'social_proof_inline_cta_tag_low_no_context' | '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' | 'viewInProvider' | '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' | 'rovo_chat_action_section_header' | 'rovo_prompt_button_summarize_this' | 'rovo_prompt_button_ask_a_specific_question' | 'rovo_prompt_button_show_me_whats_relevant' | RovoChatActionMessageKey | 'pre_auth_block_social_proof_not_low' | 'pre_auth_block_social_proof_low';
5
5
  type Messages = {
6
6
  [K in MessageKey]: MessageDescriptor;
@@ -1,7 +1,9 @@
1
+ import type { InternalCardActionOptions as CardActionOptions } from "../../../Card/types";
1
2
  export declare const RovoActionsCta: ({ testId }: {
2
3
  testId?: string;
3
4
  }) => JSX.Element;
4
- export declare const InlineRovoActionButton: ({ testId, url }: {
5
+ export declare const InlineRovoActionButton: ({ testId, url, actionOptions }: {
6
+ actionOptions?: CardActionOptions;
5
7
  testId?: string;
6
8
  url?: string;
7
9
  }) => JSX.Element | null;
@@ -18,8 +18,23 @@ export declare enum RovoChatPromptKey {
18
18
  HIGHLIGHT_RELEVANT_CONTENT = "highlight-relevant-content",
19
19
  SUMMARIZE_THIS_FOR_ME = "summarize-this-for-me",
20
20
  ASK_A_SPECIFIC_QUESTION = "ask-a-specific-question",
21
- SHOW_ME_WHATS_RELEVANT = "show-me-whats-relevant"
21
+ SHOW_ME_WHATS_RELEVANT = "show-me-whats-relevant",
22
+ SUMMARIZE_DOCUMENT = "summarize-document",
23
+ SUMMARIZE_PRESENTATION = "summarize-presentation",
24
+ EXPLAIN_CODE = "explain-code",
25
+ CATCH_UP = "catch-up",
26
+ SALESFORCE_PREP = "salesforce-prep"
22
27
  }
23
- export declare const getPromptAction: (promptKey: RovoChatPromptKey, intl: IntlShape, url?: string, product?: ProductType, iconSize?: ActionProps["iconSize"], cardAppearance?: CardDisplay) => (Pick<React.ComponentProps<typeof Action>, "content" | "icon" | "tooltipMessage"> & {
28
+ type PromptActionProps = {
29
+ cardAppearance?: CardDisplay;
30
+ iconSize?: ActionProps['iconSize'];
31
+ intl: IntlShape;
32
+ product?: ProductType;
33
+ promptKey: RovoChatPromptKey;
34
+ provider?: string;
35
+ url?: string;
36
+ };
37
+ export declare const getPromptAction: ({ promptKey, intl, url, product, iconSize, cardAppearance, provider }: PromptActionProps) => (Pick<React.ComponentProps<typeof Action>, "content" | "icon" | "tooltipMessage"> & {
24
38
  data: SendPromptMessageData;
25
39
  }) | undefined;
40
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "44.26.0",
3
+ "version": "44.28.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,7 +35,7 @@
35
35
  "ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.{svg,png}"
36
36
  },
37
37
  "dependencies": {
38
- "@atlaskit/adf-utils": "^19.32.0",
38
+ "@atlaskit/adf-utils": "^19.33.0",
39
39
  "@atlaskit/afm-i18n-platform-linking-platform-smart-card": "2.6.0",
40
40
  "@atlaskit/analytics-cross-product": "^1.2.0",
41
41
  "@atlaskit/analytics-gas-types": "^5.1.0",
@@ -49,7 +49,7 @@
49
49
  "@atlaskit/css": "^0.19.0",
50
50
  "@atlaskit/dropdown-menu": "^16.10.0",
51
51
  "@atlaskit/embedded-confluence": "^5.1.0",
52
- "@atlaskit/feature-gate-js-client": "^5.7.0",
52
+ "@atlaskit/feature-gate-js-client": "^5.8.0",
53
53
  "@atlaskit/flag": "^17.13.0",
54
54
  "@atlaskit/form": "^15.5.0",
55
55
  "@atlaskit/frontend-utilities": "^3.4.0",
@@ -75,10 +75,10 @@
75
75
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
76
76
  "@atlaskit/platform-feature-flags": "^1.1.0",
77
77
  "@atlaskit/platform-feature-flags-react": "^0.5.0",
78
- "@atlaskit/popup": "^4.23.0",
78
+ "@atlaskit/popup": "^4.24.0",
79
79
  "@atlaskit/primitives": "^19.0.0",
80
80
  "@atlaskit/react-ufo": "^6.7.0",
81
- "@atlaskit/rovo-triggers": "^7.4.0",
81
+ "@atlaskit/rovo-triggers": "^7.5.0",
82
82
  "@atlaskit/section-message": "^8.13.0",
83
83
  "@atlaskit/select": "^21.12.0",
84
84
  "@atlaskit/spinner": "^19.1.0",
@@ -87,7 +87,7 @@
87
87
  "@atlaskit/textfield": "^8.3.0",
88
88
  "@atlaskit/theme": "^25.0.0",
89
89
  "@atlaskit/tile": "^1.1.0",
90
- "@atlaskit/tmp-editor-statsig": "^94.0.0",
90
+ "@atlaskit/tmp-editor-statsig": "^98.0.0",
91
91
  "@atlaskit/tokens": "^13.3.0",
92
92
  "@atlaskit/tooltip": "^22.6.0",
93
93
  "@atlaskit/ufo": "^0.5.0",
@@ -217,9 +217,6 @@
217
217
  "jfp-magma-platform-lozenge-jump-fix": {
218
218
  "type": "boolean"
219
219
  },
220
- "townsquare-same-tab-alignment-gcko-849": {
221
- "type": "boolean"
222
- },
223
220
  "platform_sl_3p_auth_rovo_action_kill_switch": {
224
221
  "type": "boolean"
225
222
  },