@atlaskit/smart-card 44.0.6 → 44.1.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 +12 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +0 -0
- package/dist/cjs/extractors/flexible/actions/extract-rovo-chat-action.js +7 -5
- package/dist/cjs/extractors/flexible/actions/index.js +1 -1
- package/dist/cjs/extractors/flexible/index.js +1 -1
- package/dist/cjs/messages.js +25 -0
- package/dist/cjs/state/hooks/use-inline-action-nudge-experiment/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +6 -1
- package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +80 -6
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/index.js +2 -2
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +5 -4
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +8 -3
- package/dist/cjs/view/common/ai-summary/index.js +6 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +0 -0
- package/dist/es2019/extractors/flexible/actions/extract-rovo-chat-action.js +7 -5
- package/dist/es2019/extractors/flexible/actions/index.js +1 -1
- package/dist/es2019/extractors/flexible/index.js +1 -1
- package/dist/es2019/messages.js +25 -0
- package/dist/es2019/state/hooks/use-inline-action-nudge-experiment/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +6 -1
- package/dist/es2019/view/FlexibleCard/components/actions/rovo-chat-action/index.js +80 -5
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/index.js +2 -2
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +5 -4
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +9 -3
- package/dist/es2019/view/common/ai-summary/index.js +6 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +0 -0
- package/dist/esm/extractors/flexible/actions/extract-rovo-chat-action.js +7 -5
- package/dist/esm/extractors/flexible/actions/index.js +1 -1
- package/dist/esm/extractors/flexible/index.js +1 -1
- package/dist/esm/messages.js +25 -0
- package/dist/esm/state/hooks/use-inline-action-nudge-experiment/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +6 -1
- package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +80 -6
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +3 -3
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/index.js +3 -3
- package/dist/esm/view/FlexibleCard/index.js +2 -2
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +5 -4
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +8 -3
- package/dist/esm/view/common/ai-summary/index.js +6 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/state/hooks/use-inline-action-nudge-experiment/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/rovo-chat-action/index.d.ts +4 -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 +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +2 -2
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-inline-action-nudge-experiment/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/rovo-chat-action/index.d.ts +4 -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 +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +2 -2
- package/package.json +9 -9
- /package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/{hover-card-rovo-chat-action--default.png → hover-card-with-google-rovo-chat-action--default.png} +0 -0
- /package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/{hover-card-rovo-chat-action--default.png → hover-card-with-google-rovo-chat-action--default.png} +0 -0
- /package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/{hover-card-rovo-chat-action--default.png → hover-card-with-google-rovo-chat-action--default.png} +0 -0
|
@@ -235,7 +235,7 @@ var HoverCardContent = function HoverCardContent(_ref4) {
|
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
237
|
if (isResolved) {
|
|
238
|
-
return /*#__PURE__*/React.createElement(HoverCardResolvedView, _extends({}, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
238
|
+
return /*#__PURE__*/React.createElement(HoverCardResolvedView, _extends({}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('rovogrowth-640-inline-action-nudge-fg') ? {
|
|
239
239
|
actionOptions: actionOptions,
|
|
240
240
|
showRovoResolvedView: showRovoResolvedView
|
|
241
241
|
} : undefined, {
|
|
@@ -287,7 +287,7 @@ var HoverCardContent = function HoverCardContent(_ref4) {
|
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
289
|
if (cardState.status === 'resolved') {
|
|
290
|
-
return /*#__PURE__*/React.createElement(HoverCardResolvedView, _extends({}, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
290
|
+
return /*#__PURE__*/React.createElement(HoverCardResolvedView, _extends({}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('rovogrowth-640-inline-action-nudge-fg') ? {
|
|
291
291
|
actionOptions: actionOptions,
|
|
292
292
|
showRovoResolvedView: showRovoResolvedView
|
|
293
293
|
} : undefined, {
|
|
@@ -326,7 +326,7 @@ var HoverCardContentWithViewVariant = function HoverCardContentWithViewVariant(p
|
|
|
326
326
|
}, [actionOptions, cardState.details, rovoConfig, isResolved]);
|
|
327
327
|
var data = useMemo(function () {
|
|
328
328
|
var viewVariant = 'default';
|
|
329
|
-
if (showRovoResolvedView && expValEqualsNoExposure('platform_sl_3p_auth_rovo_action', 'isEnabled', true)) {
|
|
329
|
+
if (showRovoResolvedView && (expValEqualsNoExposure('platform_sl_3p_auth_rovo_action', 'isEnabled', true) || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true))) {
|
|
330
330
|
viewVariant = 'rovo-resolved-view';
|
|
331
331
|
} else if (showPreauthBetterHovercard) {
|
|
332
332
|
viewVariant = 'rovo-unauthorised-view';
|
|
@@ -347,5 +347,6 @@ export default componentWithCondition(function () {
|
|
|
347
347
|
// We need to read both of them to sutisfy some of the tests that expect both to be checked.
|
|
348
348
|
var flagA = fg('platform_sl_3p_preauth_better_hovercard_killswitch');
|
|
349
349
|
var flagB = fg('platform_sl_3p_auth_rovo_action_kill_switch');
|
|
350
|
-
|
|
350
|
+
var flagC = fg('rovogrowth-640-inline-action-nudge-fg');
|
|
351
|
+
return flagA || flagB || flagC;
|
|
351
352
|
}, HoverCardContentWithViewVariant, HoverCardContent);
|
|
@@ -9,6 +9,7 @@ import { useAnalyticsEvents } from '../../../../../common/analytics/generated/us
|
|
|
9
9
|
import { CardDisplay, SmartLinkPosition, SmartLinkSize } from '../../../../../constants';
|
|
10
10
|
import { succeedUfoExperience } from '../../../../../state/analytics';
|
|
11
11
|
import useAISummaryAction from '../../../../../state/hooks/use-ai-summary-action';
|
|
12
|
+
import useInlineActionNudgeExperiment from '../../../../../state/hooks/use-inline-action-nudge-experiment';
|
|
12
13
|
import FlexibleCard from '../../../../FlexibleCard';
|
|
13
14
|
import { ActionBlock, AIFooterBlock, AISummaryBlock, ResolvedHoverCardFooterBlock, MetadataBlock, SnippetBlock, TitleBlock } from '../../../../FlexibleCard/components/blocks';
|
|
14
15
|
import { getMetadata } from '../../../utils';
|
|
@@ -29,10 +30,14 @@ var HoverCardResolvedView = function HoverCardResolvedView(_ref) {
|
|
|
29
30
|
id = _ref.id;
|
|
30
31
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
31
32
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
33
|
+
var _useInlineActionNudge = useInlineActionNudgeExperiment(),
|
|
34
|
+
InlineActionNudgeExperimentValue = _useInlineActionNudge.isEnabled;
|
|
32
35
|
|
|
33
36
|
// We want to fire exposure event only for those cases when user otherwise can see the experiment which would be controlled
|
|
34
37
|
// by all the other condition defined above as a result of what was defined in actionOptions as well as in CardContext.
|
|
35
38
|
var is3PAuthRovoActionsExperimentOn = showRovoResolvedView && expValEquals('platform_sl_3p_auth_rovo_action', 'isEnabled', true);
|
|
39
|
+
var is3PInlinePostAuthActionsExperimentOn = showRovoResolvedView && InlineActionNudgeExperimentValue;
|
|
40
|
+
var isAny3pRovoActionsExperimentOn = is3PAuthRovoActionsExperimentOn || is3PInlinePostAuthActionsExperimentOn;
|
|
36
41
|
useEffect(function () {
|
|
37
42
|
// Since this hover view is only rendered on resolved status,
|
|
38
43
|
// there is no need to check for statuses.
|
|
@@ -80,7 +85,7 @@ var HoverCardResolvedView = function HoverCardResolvedView(_ref) {
|
|
|
80
85
|
}), isAISummaryEnabled ? /*#__PURE__*/React.createElement(AISummaryBlock, {
|
|
81
86
|
aiSummaryMinHeight: aiSummaryMinHeight,
|
|
82
87
|
placeholder: snippet,
|
|
83
|
-
|
|
88
|
+
isAny3pRovoActionsExperimentOn: isAny3pRovoActionsExperimentOn
|
|
84
89
|
}) : snippet, /*#__PURE__*/React.createElement(SnippetBlock, {
|
|
85
90
|
testId: "hidden-snippet",
|
|
86
91
|
onRender: onSnippetRender,
|
|
@@ -90,9 +95,9 @@ var HoverCardResolvedView = function HoverCardResolvedView(_ref) {
|
|
|
90
95
|
}), /*#__PURE__*/React.createElement(ActionBlock, {
|
|
91
96
|
onClick: onActionClick,
|
|
92
97
|
spaceInline: "space.100",
|
|
93
|
-
|
|
98
|
+
isAny3pRovoActionsExperimentOn: isAny3pRovoActionsExperimentOn,
|
|
94
99
|
className: ax(["_n3td1b66"])
|
|
95
|
-
}),
|
|
100
|
+
}), isAny3pRovoActionsExperimentOn ? /*#__PURE__*/React.createElement(ResolvedHoverCardFooterBlock, {
|
|
96
101
|
onActionClick: onActionClick
|
|
97
102
|
}) : /*#__PURE__*/React.createElement(AIFooterBlock, null));
|
|
98
103
|
};
|
|
@@ -26,11 +26,16 @@ var AISummary = function AISummary(_ref) {
|
|
|
26
26
|
if (!content && minHeight === 0) {
|
|
27
27
|
return null;
|
|
28
28
|
}
|
|
29
|
+
var is3pExperimentEnabled =
|
|
30
|
+
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
31
|
+
fg('platform_sl_3p_auth_rovo_action_kill_switch') && expValEqualsNoExposure('platform_sl_3p_auth_rovo_action', 'isEnabled', true) ||
|
|
32
|
+
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
33
|
+
fg('rovogrowth-640-inline-action-nudge-fg') && expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true);
|
|
29
34
|
return /*#__PURE__*/React.createElement(Markdown, {
|
|
30
35
|
"data-testid": testId
|
|
31
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
32
37
|
,
|
|
33
|
-
className: ax(["_11c8wadc _slp31hna _1nmz1hna _o5724jg8 _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv",
|
|
38
|
+
className: ax(["_11c8wadc _slp31hna _1nmz1hna _o5724jg8 _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", is3pExperimentEnabled ? "_syazi7uo" : "_syazazsu", className]),
|
|
34
39
|
children: content,
|
|
35
40
|
options: {
|
|
36
41
|
forceWrapper: true,
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -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';
|
|
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_key_highlights' | 'rovo_prompt_message_key_highlights' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything';
|
|
4
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;
|
|
@@ -6,7 +6,7 @@ export interface InlineActionNudgeExperiment {
|
|
|
6
6
|
isEnabled: boolean;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Returns whether the
|
|
9
|
+
* Returns whether the rovogrowth-640-inline-action-nudge-exp experiment
|
|
10
10
|
* is enabled for the current user and link context.
|
|
11
11
|
*
|
|
12
12
|
* All eligibility criteria are consolidated here:
|
|
@@ -3,7 +3,10 @@ import { type LinkActionProps } from '../types';
|
|
|
3
3
|
export declare enum RovoChatPromptKey {
|
|
4
4
|
RECOMMEND_OTHER_SOURCES = "recommend-other-sources",
|
|
5
5
|
SHOW_OTHER_MENTIONS = "show-other-mentions",
|
|
6
|
-
SUGGEST_IMPROVEMENT = "suggest-improvement"
|
|
6
|
+
SUGGEST_IMPROVEMENT = "suggest-improvement",
|
|
7
|
+
SUMMARIZE_LINK = "summarize-link",
|
|
8
|
+
KEY_HIGHLIGHTS = "key-highlights",
|
|
9
|
+
ASK_ROVO_ANYTHING = "ask-rovo-anything"
|
|
7
10
|
}
|
|
8
11
|
type RovoChatActionProps = LinkActionProps & {
|
|
9
12
|
prompts?: RovoChatPromptKey[];
|
|
@@ -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,
|
|
8
|
+
declare const ActionBlock: ({ blockRef, onClick: onClickCallback, size, spaceInline, className, testId, isAny3pRovoActionsExperimentOn, }: ActionBlockProps) => JSX.Element | null;
|
|
9
9
|
export default ActionBlock;
|
|
@@ -3,9 +3,9 @@ import { type FlexibleUiActionName } from '../../../../../constants';
|
|
|
3
3
|
import type { BlockProps } from '../types';
|
|
4
4
|
export type ActionBlockProps = {
|
|
5
5
|
/**
|
|
6
|
-
* Whether platform_sl_3p_auth_rovo_action experiment value is ON for current runtime
|
|
6
|
+
* Whether platform_sl_3p_auth_rovo_action or rovogrowth-640-inline-action-nudge-exp experiment value is ON for current runtime
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
isAny3pRovoActionsExperimentOn?: boolean;
|
|
9
9
|
/**
|
|
10
10
|
* Callback once action is executed.
|
|
11
11
|
*/
|
|
@@ -7,5 +7,5 @@ import { type AISummaryBlockProps } from './types';
|
|
|
7
7
|
* @param {AISummaryBlockProps} AISummaryBlock
|
|
8
8
|
* @see Block
|
|
9
9
|
*/
|
|
10
|
-
declare const AISummaryBlock: ({
|
|
10
|
+
declare const AISummaryBlock: ({ isAny3pRovoActionsExperimentOn, testId, ...props }: AISummaryBlockProps) => React.JSX.Element | null;
|
|
11
11
|
export default AISummaryBlock;
|
|
@@ -6,9 +6,9 @@ export type AISummaryBlockProps = {
|
|
|
6
6
|
*/
|
|
7
7
|
aiSummaryMinHeight?: number;
|
|
8
8
|
/**
|
|
9
|
-
* Whether platform_sl_3p_auth_rovo_action experiment value is ON for current runtime
|
|
9
|
+
* Whether platform_sl_3p_auth_rovo_action or rovogrowth-640-inline-action-nudge-exp experiment value is ON for current runtime
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
isAny3pRovoActionsExperimentOn?: boolean;
|
|
12
12
|
/**
|
|
13
13
|
* Placeholder to show when summary is not available
|
|
14
14
|
*/
|
|
@@ -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';
|
|
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_key_highlights' | 'rovo_prompt_message_key_highlights' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything';
|
|
4
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;
|
|
@@ -6,7 +6,7 @@ export interface InlineActionNudgeExperiment {
|
|
|
6
6
|
isEnabled: boolean;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Returns whether the
|
|
9
|
+
* Returns whether the rovogrowth-640-inline-action-nudge-exp experiment
|
|
10
10
|
* is enabled for the current user and link context.
|
|
11
11
|
*
|
|
12
12
|
* All eligibility criteria are consolidated here:
|
|
@@ -3,7 +3,10 @@ import { type LinkActionProps } from '../types';
|
|
|
3
3
|
export declare enum RovoChatPromptKey {
|
|
4
4
|
RECOMMEND_OTHER_SOURCES = "recommend-other-sources",
|
|
5
5
|
SHOW_OTHER_MENTIONS = "show-other-mentions",
|
|
6
|
-
SUGGEST_IMPROVEMENT = "suggest-improvement"
|
|
6
|
+
SUGGEST_IMPROVEMENT = "suggest-improvement",
|
|
7
|
+
SUMMARIZE_LINK = "summarize-link",
|
|
8
|
+
KEY_HIGHLIGHTS = "key-highlights",
|
|
9
|
+
ASK_ROVO_ANYTHING = "ask-rovo-anything"
|
|
7
10
|
}
|
|
8
11
|
type RovoChatActionProps = LinkActionProps & {
|
|
9
12
|
prompts?: RovoChatPromptKey[];
|
|
@@ -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,
|
|
8
|
+
declare const ActionBlock: ({ blockRef, onClick: onClickCallback, size, spaceInline, className, testId, isAny3pRovoActionsExperimentOn, }: ActionBlockProps) => JSX.Element | null;
|
|
9
9
|
export default ActionBlock;
|
|
@@ -3,9 +3,9 @@ import { type FlexibleUiActionName } from '../../../../../constants';
|
|
|
3
3
|
import type { BlockProps } from '../types';
|
|
4
4
|
export type ActionBlockProps = {
|
|
5
5
|
/**
|
|
6
|
-
* Whether platform_sl_3p_auth_rovo_action experiment value is ON for current runtime
|
|
6
|
+
* Whether platform_sl_3p_auth_rovo_action or rovogrowth-640-inline-action-nudge-exp experiment value is ON for current runtime
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
isAny3pRovoActionsExperimentOn?: boolean;
|
|
9
9
|
/**
|
|
10
10
|
* Callback once action is executed.
|
|
11
11
|
*/
|
|
@@ -7,5 +7,5 @@ import { type AISummaryBlockProps } from './types';
|
|
|
7
7
|
* @param {AISummaryBlockProps} AISummaryBlock
|
|
8
8
|
* @see Block
|
|
9
9
|
*/
|
|
10
|
-
declare const AISummaryBlock: ({
|
|
10
|
+
declare const AISummaryBlock: ({ isAny3pRovoActionsExperimentOn, testId, ...props }: AISummaryBlockProps) => React.JSX.Element | null;
|
|
11
11
|
export default AISummaryBlock;
|
|
@@ -6,9 +6,9 @@ export type AISummaryBlockProps = {
|
|
|
6
6
|
*/
|
|
7
7
|
aiSummaryMinHeight?: number;
|
|
8
8
|
/**
|
|
9
|
-
* Whether platform_sl_3p_auth_rovo_action experiment value is ON for current runtime
|
|
9
|
+
* Whether platform_sl_3p_auth_rovo_action or rovogrowth-640-inline-action-nudge-exp experiment value is ON for current runtime
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
isAny3pRovoActionsExperimentOn?: boolean;
|
|
12
12
|
/**
|
|
13
13
|
* Placeholder to show when summary is not available
|
|
14
14
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "44.0
|
|
3
|
+
"version": "44.1.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/analytics-next": "^11.2.0",
|
|
41
41
|
"@atlaskit/avatar": "^25.11.0",
|
|
42
42
|
"@atlaskit/avatar-group": "^12.7.0",
|
|
43
|
-
"@atlaskit/badge": "^18.
|
|
43
|
+
"@atlaskit/badge": "^18.6.0",
|
|
44
44
|
"@atlaskit/browser-apis": "^0.0.1",
|
|
45
45
|
"@atlaskit/button": "^23.11.0",
|
|
46
46
|
"@atlaskit/checkbox": "^17.3.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/form": "^15.5.0",
|
|
52
52
|
"@atlaskit/frontend-utilities": "^3.2.0",
|
|
53
53
|
"@atlaskit/heading": "^5.4.0",
|
|
54
|
-
"@atlaskit/icon": "^34.
|
|
54
|
+
"@atlaskit/icon": "^34.2.0",
|
|
55
55
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
56
56
|
"@atlaskit/icon-lab": "^6.5.0",
|
|
57
57
|
"@atlaskit/icon-object": "^7.5.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/linking-types": "^14.2.0",
|
|
67
67
|
"@atlaskit/logo": "^20.0.0",
|
|
68
68
|
"@atlaskit/lozenge": "^13.7.0",
|
|
69
|
-
"@atlaskit/menu": "^8.
|
|
69
|
+
"@atlaskit/menu": "^8.5.0",
|
|
70
70
|
"@atlaskit/modal-dialog": "^14.15.0",
|
|
71
71
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
72
72
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -74,16 +74,16 @@
|
|
|
74
74
|
"@atlaskit/popup": "^4.16.0",
|
|
75
75
|
"@atlaskit/primitives": "^19.0.0",
|
|
76
76
|
"@atlaskit/react-ufo": "^5.14.0",
|
|
77
|
-
"@atlaskit/rovo-triggers": "^5.
|
|
77
|
+
"@atlaskit/rovo-triggers": "^5.41.0",
|
|
78
78
|
"@atlaskit/section-message": "^8.12.0",
|
|
79
79
|
"@atlaskit/select": "^21.10.0",
|
|
80
80
|
"@atlaskit/spinner": "^19.1.0",
|
|
81
81
|
"@atlaskit/tag": "^14.9.0",
|
|
82
|
-
"@atlaskit/textarea": "^8.
|
|
82
|
+
"@atlaskit/textarea": "^8.3.0",
|
|
83
83
|
"@atlaskit/textfield": "^8.3.0",
|
|
84
|
-
"@atlaskit/theme": "^23.
|
|
84
|
+
"@atlaskit/theme": "^23.1.0",
|
|
85
85
|
"@atlaskit/tile": "^1.0.0",
|
|
86
|
-
"@atlaskit/tmp-editor-statsig": "^62.
|
|
86
|
+
"@atlaskit/tmp-editor-statsig": "^62.7.0",
|
|
87
87
|
"@atlaskit/tokens": "^13.0.0",
|
|
88
88
|
"@atlaskit/tooltip": "^21.1.0",
|
|
89
89
|
"@atlaskit/ufo": "^0.4.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@af/visual-regression": "workspace:^",
|
|
113
113
|
"@atlaskit/analytics-listeners": "^10.0.0",
|
|
114
114
|
"@atlaskit/css-reset": "^7.4.0",
|
|
115
|
-
"@atlaskit/media-test-helpers": "^
|
|
115
|
+
"@atlaskit/media-test-helpers": "^41.0.0",
|
|
116
116
|
"@atlaskit/ssr": "workspace:^",
|
|
117
117
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
118
118
|
"@atlassian/analytics-tooling": "workspace:^",
|
|
File without changes
|
|
File without changes
|