@atlaskit/smart-card 43.24.10 → 43.25.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.
- package/CHANGELOG.md +11 -0
- package/dist/cjs/messages.js +10 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +9 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/assets/ellipses.compiled.css +3 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/assets/ellipses.js +55 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/index.js +33 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.compiled.css +6 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +68 -6
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +27 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/ai-summary/ai-footer/index.compiled.css +1 -0
- package/dist/cjs/view/common/ai-summary/ai-footer/index.js +39 -0
- package/dist/cjs/view/common/ai-summary/index.compiled.css +1 -0
- package/dist/cjs/view/common/ai-summary/index.js +4 -1
- package/dist/es2019/messages.js +10 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +8 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/assets/ellipses.compiled.css +6 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/assets/ellipses.js +38 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/index.js +28 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.compiled.css +6 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +70 -5
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +27 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/ai-summary/ai-footer/index.compiled.css +1 -0
- package/dist/es2019/view/common/ai-summary/ai-footer/index.js +28 -0
- package/dist/es2019/view/common/ai-summary/index.compiled.css +1 -0
- package/dist/es2019/view/common/ai-summary/index.js +4 -1
- package/dist/esm/messages.js +10 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +9 -2
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/assets/ellipses.compiled.css +3 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/assets/ellipses.js +47 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/index.js +30 -2
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.compiled.css +6 -1
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +67 -5
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +27 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/ai-summary/ai-footer/index.compiled.css +1 -0
- package/dist/esm/view/common/ai-summary/ai-footer/index.js +30 -0
- package/dist/esm/view/common/ai-summary/index.compiled.css +1 -0
- package/dist/esm/view/common/ai-summary/index.js +4 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/action-block/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/action-block/types.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/assets/ellipses.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +9 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +11 -0
- package/dist/types/view/HoverCard/components/views/resolved/index.d.ts +1 -1
- package/dist/types/view/common/ai-summary/ai-footer/index.d.ts +2 -0
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/types.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/assets/ellipses.d.ts +3 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +9 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +11 -0
- package/dist/types-ts4.5/view/HoverCard/components/views/resolved/index.d.ts +1 -1
- package/dist/types-ts4.5/view/common/ai-summary/ai-footer/index.d.ts +2 -0
- package/package.json +8 -5
|
@@ -3,8 +3,11 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import Markdown from 'markdown-to-jsx';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import UList from './ulist';
|
|
7
8
|
var baseStyle = null;
|
|
9
|
+
var textStyleNew = null;
|
|
10
|
+
var textStyleOld = null;
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
13
|
* A component to render a response from AI in markdown text.
|
|
@@ -26,7 +29,7 @@ var AISummary = function AISummary(_ref) {
|
|
|
26
29
|
"data-testid": testId
|
|
27
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
28
31
|
,
|
|
29
|
-
className: ax(["_11c8wadc
|
|
32
|
+
className: ax(["_11c8wadc _slp31hna _1nmz1hna _o5724jg8 _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", fg('platform_sl_3p_auth_rovo_action_kill_switch') ? "_syazi7uo" : "_syazazsu", className]),
|
|
30
33
|
children: content,
|
|
31
34
|
options: {
|
|
32
35
|
forceWrapper: true,
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
|
|
3
|
-
export type MessageKey = 'assigned_to' | 'ai_summarize' | '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' | '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';
|
|
3
|
+
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' | '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';
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
@@ -5,5 +5,5 @@ import type { ActionBlockProps } from './types';
|
|
|
5
5
|
* To replace container/index.tsx getPadding() with space token for primitives
|
|
6
6
|
*/
|
|
7
7
|
export declare const getPrimitivesPaddingSpaceBySize: (size: SmartLinkSize) => "var(--ds-space-100)" | "var(--ds-space-200)" | "var(--ds-space-250)" | "var(--ds-space-300)";
|
|
8
|
-
declare const ActionBlock: ({ blockRef, onClick: onClickCallback, size, spaceInline, className, testId, }: ActionBlockProps) => JSX.Element | null;
|
|
8
|
+
declare const ActionBlock: ({ blockRef, onClick: onClickCallback, size, spaceInline, className, testId, hideAISummaryAction, }: ActionBlockProps) => JSX.Element | null;
|
|
9
9
|
export default ActionBlock;
|
|
@@ -2,6 +2,11 @@ import type { Space } from '@atlaskit/primitives/compiled';
|
|
|
2
2
|
import { type FlexibleUiActionName } from '../../../../../constants';
|
|
3
3
|
import type { BlockProps } from '../types';
|
|
4
4
|
export type ActionBlockProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Hides the AI Summary action.
|
|
7
|
+
* To be replaced after the 3P Auth Rovo experiment with a better solution to determine whether to show the AI Summary action or not.
|
|
8
|
+
*/
|
|
9
|
+
hideAISummaryAction?: boolean;
|
|
5
10
|
/**
|
|
6
11
|
* Callback once action is executed.
|
|
7
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type AISummaryBlockProps } from './types';
|
|
2
|
+
import { type AISummaryBlockProps, type RovoSummaryBlockProps } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Represents an AISummaryBlock, designed to summarising link resource
|
|
5
5
|
* content using AI.
|
|
@@ -8,4 +8,12 @@ import { type AISummaryBlockProps } from './types';
|
|
|
8
8
|
* @see Block
|
|
9
9
|
*/
|
|
10
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;
|
|
11
19
|
export default AISummaryBlock;
|
|
@@ -6,4 +6,5 @@ type AISummaryBlockResolvedViewProps = AISummaryBlockProps & {
|
|
|
6
6
|
url: string;
|
|
7
7
|
};
|
|
8
8
|
declare const AISummaryBlockResolvedView: (props: AISummaryBlockResolvedViewProps) => JSX.Element;
|
|
9
|
+
export declare const RovoSummaryBlockResolvedView: (props: AISummaryBlockResolvedViewProps) => JSX.Element;
|
|
9
10
|
export default AISummaryBlockResolvedView;
|
|
@@ -10,3 +10,14 @@ export type AISummaryBlockProps = {
|
|
|
10
10
|
*/
|
|
11
11
|
placeholder?: ReactNode;
|
|
12
12
|
} & BlockProps;
|
|
13
|
+
export type RovoSummaryBlockProps = {
|
|
14
|
+
/**
|
|
15
|
+
* Minimum height requirement for the AISummary component to prevent fluctuations in a card size on the summary action.
|
|
16
|
+
*/
|
|
17
|
+
aiSummaryMinHeight?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Placeholder to show when summary is not available
|
|
20
|
+
*/
|
|
21
|
+
placeholder?: ReactNode;
|
|
22
|
+
url?: string;
|
|
23
|
+
} & BlockProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type HoverCardResolvedProps } from './types';
|
|
2
|
-
declare const HoverCardResolvedView: ({ cardState, extensionKey, flexibleCardProps, isAISummaryEnabled, onActionClick, titleBlockProps, id, }: HoverCardResolvedProps) => JSX.Element;
|
|
2
|
+
declare const HoverCardResolvedView: ({ cardState, extensionKey, flexibleCardProps, isAISummaryEnabled, onActionClick, titleBlockProps, id, url }: HoverCardResolvedProps) => JSX.Element;
|
|
3
3
|
export default HoverCardResolvedView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
|
|
3
|
-
export type MessageKey = 'assigned_to' | 'ai_summarize' | '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' | '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';
|
|
3
|
+
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' | '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';
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
@@ -5,5 +5,5 @@ import type { ActionBlockProps } from './types';
|
|
|
5
5
|
* To replace container/index.tsx getPadding() with space token for primitives
|
|
6
6
|
*/
|
|
7
7
|
export declare const getPrimitivesPaddingSpaceBySize: (size: SmartLinkSize) => "var(--ds-space-100)" | "var(--ds-space-200)" | "var(--ds-space-250)" | "var(--ds-space-300)";
|
|
8
|
-
declare const ActionBlock: ({ blockRef, onClick: onClickCallback, size, spaceInline, className, testId, }: ActionBlockProps) => JSX.Element | null;
|
|
8
|
+
declare const ActionBlock: ({ blockRef, onClick: onClickCallback, size, spaceInline, className, testId, hideAISummaryAction, }: ActionBlockProps) => JSX.Element | null;
|
|
9
9
|
export default ActionBlock;
|
|
@@ -2,6 +2,11 @@ import type { Space } from '@atlaskit/primitives/compiled';
|
|
|
2
2
|
import { type FlexibleUiActionName } from '../../../../../constants';
|
|
3
3
|
import type { BlockProps } from '../types';
|
|
4
4
|
export type ActionBlockProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Hides the AI Summary action.
|
|
7
|
+
* To be replaced after the 3P Auth Rovo experiment with a better solution to determine whether to show the AI Summary action or not.
|
|
8
|
+
*/
|
|
9
|
+
hideAISummaryAction?: boolean;
|
|
5
10
|
/**
|
|
6
11
|
* Callback once action is executed.
|
|
7
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type AISummaryBlockProps } from './types';
|
|
2
|
+
import { type AISummaryBlockProps, type RovoSummaryBlockProps } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Represents an AISummaryBlock, designed to summarising link resource
|
|
5
5
|
* content using AI.
|
|
@@ -8,4 +8,12 @@ import { type AISummaryBlockProps } from './types';
|
|
|
8
8
|
* @see Block
|
|
9
9
|
*/
|
|
10
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;
|
|
11
19
|
export default AISummaryBlock;
|
package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts
CHANGED
|
@@ -6,4 +6,5 @@ type AISummaryBlockResolvedViewProps = AISummaryBlockProps & {
|
|
|
6
6
|
url: string;
|
|
7
7
|
};
|
|
8
8
|
declare const AISummaryBlockResolvedView: (props: AISummaryBlockResolvedViewProps) => JSX.Element;
|
|
9
|
+
export declare const RovoSummaryBlockResolvedView: (props: AISummaryBlockResolvedViewProps) => JSX.Element;
|
|
9
10
|
export default AISummaryBlockResolvedView;
|
|
@@ -10,3 +10,14 @@ export type AISummaryBlockProps = {
|
|
|
10
10
|
*/
|
|
11
11
|
placeholder?: ReactNode;
|
|
12
12
|
} & BlockProps;
|
|
13
|
+
export type RovoSummaryBlockProps = {
|
|
14
|
+
/**
|
|
15
|
+
* Minimum height requirement for the AISummary component to prevent fluctuations in a card size on the summary action.
|
|
16
|
+
*/
|
|
17
|
+
aiSummaryMinHeight?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Placeholder to show when summary is not available
|
|
20
|
+
*/
|
|
21
|
+
placeholder?: ReactNode;
|
|
22
|
+
url?: string;
|
|
23
|
+
} & BlockProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type HoverCardResolvedProps } from './types';
|
|
2
|
-
declare const HoverCardResolvedView: ({ cardState, extensionKey, flexibleCardProps, isAISummaryEnabled, onActionClick, titleBlockProps, id, }: HoverCardResolvedProps) => JSX.Element;
|
|
2
|
+
declare const HoverCardResolvedView: ({ cardState, extensionKey, flexibleCardProps, isAISummaryEnabled, onActionClick, titleBlockProps, id, url }: HoverCardResolvedProps) => JSX.Element;
|
|
3
3
|
export default HoverCardResolvedView;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "43.
|
|
3
|
+
"version": "43.25.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@atlaskit/afm-i18n-platform-linking-platform-smart-card": "2.6.0",
|
|
31
31
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
32
32
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
33
|
-
"@atlaskit/avatar": "^25.
|
|
33
|
+
"@atlaskit/avatar": "^25.8.0",
|
|
34
34
|
"@atlaskit/avatar-group": "^12.4.0",
|
|
35
35
|
"@atlaskit/badge": "^18.4.0",
|
|
36
36
|
"@atlaskit/button": "^23.9.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@atlaskit/popup": "^4.13.0",
|
|
66
66
|
"@atlaskit/primitives": "^18.0.0",
|
|
67
67
|
"@atlaskit/react-ufo": "^5.2.0",
|
|
68
|
-
"@atlaskit/rovo-triggers": "^5.
|
|
68
|
+
"@atlaskit/rovo-triggers": "^5.17.0",
|
|
69
69
|
"@atlaskit/section-message": "^8.12.0",
|
|
70
70
|
"@atlaskit/select": "^21.7.0",
|
|
71
71
|
"@atlaskit/spinner": "^19.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@atlaskit/textfield": "^8.2.0",
|
|
74
74
|
"@atlaskit/theme": "^21.0.0",
|
|
75
75
|
"@atlaskit/tile": "^1.0.0",
|
|
76
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
76
|
+
"@atlaskit/tmp-editor-statsig": "^27.1.0",
|
|
77
77
|
"@atlaskit/tokens": "^11.0.0",
|
|
78
78
|
"@atlaskit/tooltip": "^20.14.0",
|
|
79
79
|
"@atlaskit/ufo": "^0.4.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@atlassian/a11y-jest-testing": "^0.10.0",
|
|
108
108
|
"@atlassian/analytics-tooling": "workspace:^",
|
|
109
109
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
110
|
-
"@atlassian/gemini": "^1.
|
|
110
|
+
"@atlassian/gemini": "^1.34.0",
|
|
111
111
|
"@atlassian/testing-library": "^0.4.0",
|
|
112
112
|
"@testing-library/dom": "^10.1.0",
|
|
113
113
|
"@testing-library/jest-dom": "^6.4.5",
|
|
@@ -231,6 +231,9 @@
|
|
|
231
231
|
},
|
|
232
232
|
"navx-3264-refactoring-unauth-provider-images-fe": {
|
|
233
233
|
"type": "boolean"
|
|
234
|
+
},
|
|
235
|
+
"platform_sl_3p_auth_rovo_action_kill_switch": {
|
|
236
|
+
"type": "boolean"
|
|
234
237
|
}
|
|
235
238
|
},
|
|
236
239
|
"compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/f74ef1bc-7240-4aac-9dc8-9dc43b502089"
|