@atlaskit/smart-card 45.6.9 → 45.6.10

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 (41) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/messages.js +0 -40
  3. package/dist/cjs/utils/analytics/analytics.js +1 -1
  4. package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +1 -2
  5. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +4 -8
  6. package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/index.js +5 -16
  7. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +7 -30
  8. package/dist/cjs/view/HoverCard/components/views/resolved/index.js +2 -11
  9. package/dist/cjs/view/LinkUrl/index.js +1 -1
  10. package/dist/cjs/view/common/rovo-chat-utils/index.js +4 -68
  11. package/dist/es2019/messages.js +0 -40
  12. package/dist/es2019/utils/analytics/analytics.js +1 -1
  13. package/dist/es2019/view/FlexibleCard/components/actions/rovo-chat-action/index.js +2 -3
  14. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +3 -7
  15. package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/index.js +3 -12
  16. package/dist/es2019/view/HoverCard/components/HoverCardContent.js +7 -30
  17. package/dist/es2019/view/HoverCard/components/views/resolved/index.js +3 -12
  18. package/dist/es2019/view/LinkUrl/index.js +1 -1
  19. package/dist/es2019/view/common/rovo-chat-utils/index.js +4 -68
  20. package/dist/esm/messages.js +0 -40
  21. package/dist/esm/utils/analytics/analytics.js +1 -1
  22. package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +2 -3
  23. package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +4 -8
  24. package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/index.js +5 -14
  25. package/dist/esm/view/HoverCard/components/HoverCardContent.js +7 -30
  26. package/dist/esm/view/HoverCard/components/views/resolved/index.js +3 -12
  27. package/dist/esm/view/LinkUrl/index.js +1 -1
  28. package/dist/esm/view/common/rovo-chat-utils/index.js +4 -68
  29. package/dist/types/messages.d.ts +1 -1
  30. package/dist/types/view/FlexibleCard/components/actions/rovo-chat-action/index.d.ts +1 -1
  31. package/dist/types/view/FlexibleCard/components/blocks/action-block/index.d.ts +1 -1
  32. package/dist/types/view/FlexibleCard/components/blocks/action-block/types.d.ts +0 -4
  33. package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +1 -1
  34. package/dist/types/view/HoverCard/components/views/resolved/index.d.ts +1 -1
  35. package/dist/types/view/HoverCard/components/views/resolved/types.d.ts +0 -1
  36. package/dist/types/view/HoverCard/types.d.ts +0 -1
  37. package/dist/types/view/common/rovo-chat-utils/index.d.ts +0 -3
  38. package/package.json +2 -2
  39. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default.png +0 -3
  40. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default.png +0 -3
  41. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default.png +0 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 45.6.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e1ed54d330de5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e1ed54d330de5) -
8
+ Cleanup platform_sl_3p_auth_rovo_action (no ship)
9
+ - Updated dependencies
10
+
3
11
  ## 45.6.9
4
12
 
5
13
  ### Patch Changes
@@ -992,51 +992,11 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
992
992
  defaultMessage: 'Confluence page',
993
993
  description: 'The Confluence page the user see Smart Link in, to be used as the {context} for Rovo prompt message'
994
994
  },
995
- rovo_prompt_context_confluence_page_short: {
996
- id: 'fabric.linking.rovo_prompt_context_confluence_page_short.non-final',
997
- defaultMessage: 'page',
998
- description: 'The Confluence page the user see Smart Link in, to be used as the {context} for Rovo prompt message'
999
- },
1000
995
  rovo_prompt_context_jira_work_item: {
1001
996
  id: 'fabric.linking.rovo_prompt_context_jira_work_item.non-final',
1002
997
  defaultMessage: 'Jira work item',
1003
998
  description: 'The Jira work item the user see Smart Link in, to be used as the {context} for Rovo prompt message'
1004
999
  },
1005
- rovo_prompt_context_jira_work_item_short: {
1006
- id: 'fabric.linking.rovo_prompt_context_jira_work_item_short.non-final',
1007
- defaultMessage: 'work item',
1008
- description: 'The Jira work item the user see Smart Link in, to be used as the {context} for Rovo prompt message'
1009
- },
1010
- rovo_prompt_button_recommend_other_sources: {
1011
- id: 'fabric.linking.rovo_prompt_button_recommend_other_sources.non-final',
1012
- defaultMessage: 'Recommend other sources',
1013
- description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
1014
- },
1015
- rovo_prompt_message_recommend_other_sources: {
1016
- id: 'fabric.linking.rovo_prompt_message_recommend_other_sources.non-final',
1017
- defaultMessage: '<p>From this <a>{url}</a> and the {context} I’m viewing now as context:</p><ul><li><p>Search across all sources I can access for items that discuss <b>similar concepts, themes, or problems</b>, or that <b>reference similar or closely related sources</b> (including links to the same or related pages, issues, or docs).</p></li><li><p>Return the results as a list or table with columns: <code>Item</code>, <code>Type</code>, <code>Short summary</code>, and <code>Why it’s similar</code>.</p></li><li><p>For each result, give a one‑sentence <b>Short summary</b> of what the item is about.</p></li><li><p>In <b>Why it’s similar</b>, briefly explain (in a phrase or short sentence) what makes it related to this Smart Link and/or the item I’m viewing (for example: same project, similar decision, shared requirements, overlapping stakeholders, similar metrics, or referencing related docs).</p></li><li><p>Order the list from <b>most to least relevant</b> based on Rovo’s assessment of semantic similarity to both the Smart Link target and the current item. Prioritize items that I do not own or have not contributed to.</p></li><li><p>If there are more than 5 results, show the <b>5 most relevant</b> and state how many additional items you found.</p></li></ul>',
1018
- description: 'The prompt message to send to Rovo Chat. {context} refers to the content the user triggered from, e.g. Confluence page or Jira work item. {url} refers to Smart Link that the user triggers this action from. (Please make sure all html tags remain the same.)'
1019
- },
1020
- rovo_prompt_button_show_other_mentions: {
1021
- id: 'fabric.linking.rovo_prompt_button_show_other_mentions.non-final',
1022
- defaultMessage: 'Show other mentions',
1023
- description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
1024
- },
1025
- rovo_prompt_message_show_other_mentions: {
1026
- id: 'fabric.linking.rovo_prompt_message_show_other_mentions.non-final',
1027
- defaultMessage: '<p>From <a>{url}</a> and the {context} I’m viewing now:</p><ul><li><p>Search across all Confluence pages and Jira work items I can access for other items that contain this exact Smart Link (same underlying URL/resource).</p></li><li><p>List all matching items in a table with columns: <code>Item</code>, <code>Type</code>, <code>Short summary</code>, <code>How this item uses the link</code>, and <code>Relevance to current item</code>.</p></li><li><p>For <code>Short summary</code>, give a one‑sentence description of what the {context} is about.</p></li><li><p>For <code>How this item uses the link</code>, briefly explain the role this link plays there (e.g., decision doc, background context, implementation details, status update).</p></li><li><p>For <code>Relevance to current item</code>, compare each item to the {context} I’m viewing now and label it <code>High</code>, <code>Medium</code>, or <code>Low</code> relevance, with a short reason (a phrase or single clause).</p></li><li><p>If there are more than 15 matches, show the 15 most relevant and tell me how many additional matches exist.</p></li></ul>',
1028
- description: 'The prompt message to send to Rovo Chat. {context} refers to the content the user triggered from, e.g. Confluence page or Jira work item. {url} refers to Smart Link that the user triggers this action from. (Please make sure all html tags remain the same.)'
1029
- },
1030
- rovo_prompt_button_suggest_improvement: {
1031
- id: 'fabric.linking.rovo_prompt_button_suggest_improvement.non-final',
1032
- defaultMessage: 'Suggest {context} improvement',
1033
- description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
1034
- },
1035
- rovo_prompt_message_suggest_improvement: {
1036
- id: 'fabric.linking.rovo_prompt_message_suggest_improvement.non-final',
1037
- defaultMessage: '<p>Using the {context} I’m viewing now, plus all files and links referenced in it (including <a>{url}</a>):</p><ul><li><p>Identify unclear reasoning, missing context, or contradictions between the item and its linked files.</p></li><li><p>Call out any places where assumptions are not backed up by data or prior docs.</p></li><li><p>Stay concise: summarize your findings in <b>no more than three short paragraphs of content listed as bullets</b> of no more than a couple of sentences long focused only on the two points above.</p></li><li><p>After presenting that summary, <b>ask me explicitly</b> if I want you to go deeper. Only if I say yes, then:</p><ul><li><p>Suggest concrete rewrites (bullets or short paragraphs) to make the argument clearer, more concise, and better aligned with the supporting files.</p></li><li><p>Propose 3–5 follow‑up edits or additions that would make this item and its linked docs “share‑ready” for stakeholders.</p></li></ul></li></ul>',
1038
- description: 'The prompt message to send to Rovo Chat. {context} refers to the content the user triggered from, e.g. Confluence page or Jira work item. {url} refers to Smart Link that the user triggers this action from. (Please make sure all html tags remain the same.)'
1039
- },
1040
1000
  rovo_prompt_message_summarize: {
1041
1001
  id: 'fabric.linking.rovo_prompt_message_summarize.non-final',
1042
1002
  defaultMessage: '<p>Summarize the main ideas and key points of <a>{url}</a> in 3-5 clear, complete bullet points (markdown list).</p><p>Preserve important details such as names, dates, and key decisions.</p>',
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card" || '',
14
- packageVersion: "45.6.8" || ''
14
+ packageVersion: "45.6.9" || ''
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -23,8 +23,7 @@ var _excluded = ["onClick", "prompts", "testId"];
23
23
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
24
24
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
25
25
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26
- var GOOGLE_PROMPTS = [_rovoChatUtils.RovoChatPromptKey.RECOMMEND_OTHER_SOURCES, _rovoChatUtils.RovoChatPromptKey.SHOW_OTHER_MENTIONS, _rovoChatUtils.RovoChatPromptKey.SUGGEST_IMPROVEMENT];
27
- var DEFAULT_PROMPTS = GOOGLE_PROMPTS;
26
+ var DEFAULT_PROMPTS = [];
28
27
  var RovoChatAction = function RovoChatAction(_ref) {
29
28
  var _context$actions;
30
29
  var onClickCallback = _ref.onClick,
@@ -13,7 +13,6 @@ var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
15
  var _reactMagneticDi = require("react-magnetic-di");
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _constants = require("../../../../../constants");
18
17
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
19
18
  var Actions = _interopRequireWildcard(require("../../actions"));
@@ -51,18 +50,15 @@ var getPrimitivesPaddingSpaceBySize = exports.getPrimitivesPaddingSpaceBySize =
51
50
  }
52
51
  };
53
52
  var ActionBlock = function ActionBlock(_ref) {
54
- var _context$actions;
55
53
  var blockRef = _ref.blockRef,
56
54
  onClickCallback = _ref.onClick,
57
55
  size = _ref.size,
58
56
  spaceInline = _ref.spaceInline,
59
57
  className = _ref.className,
60
58
  _ref$testId = _ref.testId,
61
- testId = _ref$testId === void 0 ? 'smart-block-action' : _ref$testId,
62
- isAny3pRovoActionsExperimentOn = _ref.isAny3pRovoActionsExperimentOn;
59
+ testId = _ref$testId === void 0 ? 'smart-block-action' : _ref$testId;
63
60
  var context = (0, _flexibleUiContext.useFlexibleUiContext)();
64
61
  var ui = (0, _flexibleUiContext.useFlexibleUiOptionContext)();
65
- var isRovoChatActionAvailable = isAny3pRovoActionsExperimentOn && (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? (context === null || context === void 0 || (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions[_constants.ActionName.RovoChatAction]) !== undefined : undefined;
66
62
  var _useState = (0, _react.useState)(),
67
63
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
68
64
  message = _useState2[0],
@@ -86,9 +82,9 @@ var ActionBlock = function ActionBlock(_ref) {
86
82
  if (!(context !== null && context !== void 0 && context.actions)) {
87
83
  return;
88
84
  }
89
- var arr = (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? isRovoChatActionAvailable ? [_constants.ActionName.RovoChatAction] : Object.keys(context.actions).filter(function (name) {
85
+ var arr = Object.keys(context.actions).filter(function (name) {
90
86
  return name !== _constants.ActionName.RovoChatAction;
91
- }) : Object.keys(context.actions);
87
+ });
92
88
  arr.sort(sort);
93
89
  var renderAction = function renderAction(name) {
94
90
  var Action = name in Actions ? Actions[name] : undefined;
@@ -116,7 +112,7 @@ var ActionBlock = function ActionBlock(_ref) {
116
112
  return arr.map(function (name) {
117
113
  return renderAction(name);
118
114
  });
119
- }, [context === null || context === void 0 ? void 0 : context.actions, isRovoChatActionAvailable, spaceInline, onError, onLoadingChange, size, ui === null || ui === void 0 ? void 0 : ui.size, padding, isLoading, _onClick]);
115
+ }, [context === null || context === void 0 ? void 0 : context.actions, spaceInline, onError, onLoadingChange, size, ui === null || ui === void 0 ? void 0 : ui.size, padding, isLoading, _onClick]);
120
116
  if (!actions) {
121
117
  return null;
122
118
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -11,9 +10,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
11
10
  var _react = _interopRequireDefault(require("react"));
12
11
  var _constants = require("../../../../../constants");
13
12
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
14
- var _resolved = _interopRequireWildcard(require("./resolved"));
15
- var _excluded = ["isAny3pRovoActionsExperimentOn", "testId"];
16
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
13
+ var _resolved = _interopRequireDefault(require("./resolved"));
14
+ var _excluded = ["testId"];
17
15
  /**
18
16
  * Represents an AISummaryBlock, designed to summarising link resource
19
17
  * content using AI.
@@ -22,9 +20,8 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
22
20
  * @see Block
23
21
  */
24
22
  var AISummaryBlock = function AISummaryBlock(_ref) {
25
- var _context$actions, _props$size2, _cardContext$ui2;
26
- var isAny3pRovoActionsExperimentOn = _ref.isAny3pRovoActionsExperimentOn,
27
- _ref$testId = _ref.testId,
23
+ var _context$actions, _props$size, _cardContext$ui;
24
+ var _ref$testId = _ref.testId,
28
25
  testId = _ref$testId === void 0 ? 'smart-ai-summary-block' : _ref$testId,
29
26
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
30
27
  var cardContext = (0, _flexibleUiContext.useFlexibleCardContext)();
@@ -36,16 +33,8 @@ var AISummaryBlock = function AISummaryBlock(_ref) {
36
33
  if (!(actionData !== null && actionData !== void 0 && actionData.url)) {
37
34
  return null;
38
35
  }
39
- if (isAny3pRovoActionsExperimentOn) {
40
- var _props$size, _cardContext$ui;
41
- return /*#__PURE__*/_react.default.createElement(_resolved.RovoSummaryBlockResolvedView, (0, _extends2.default)({}, props, {
42
- size: (_props$size = props.size) !== null && _props$size !== void 0 ? _props$size : cardContext === null || cardContext === void 0 || (_cardContext$ui = cardContext.ui) === null || _cardContext$ui === void 0 ? void 0 : _cardContext$ui.size,
43
- testId: testId,
44
- url: actionData.url
45
- }));
46
- }
47
36
  return /*#__PURE__*/_react.default.createElement(_resolved.default, (0, _extends2.default)({}, props, {
48
- size: (_props$size2 = props.size) !== null && _props$size2 !== void 0 ? _props$size2 : cardContext === null || cardContext === void 0 || (_cardContext$ui2 = cardContext.ui) === null || _cardContext$ui2 === void 0 ? void 0 : _cardContext$ui2.size,
37
+ size: (_props$size = props.size) !== null && _props$size !== void 0 ? _props$size : cardContext === null || cardContext === void 0 || (_cardContext$ui = cardContext.ui) === null || _cardContext$ui === void 0 ? void 0 : _cardContext$ui.size,
49
38
  testId: testId,
50
39
  url: actionData.url
51
40
  }));
@@ -14,10 +14,8 @@ var _linkProvider = require("@atlaskit/link-provider");
14
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
15
  var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
16
16
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
18
17
  var _useAnalyticsEvents2 = require("../../../common/analytics/generated/use-analytics-events");
19
18
  var _constants = require("../../../constants");
20
- var _extractRovoChatAction = _interopRequireDefault(require("../../../extractors/flexible/actions/extract-rovo-chat-action"));
21
19
  var _helpers = require("../../../state/helpers");
22
20
  var _useRovoConfig2 = _interopRequireDefault(require("../../../state/hooks/use-rovo-config"));
23
21
  var _useSmartLinkCrossProductUrlWrapper = require("../../../state/hooks/use-smart-link-cross-product-url-wrapper");
@@ -78,8 +76,7 @@ var HoverCardContent = function HoverCardContent(_ref4) {
78
76
  onMouseLeave = _ref4.onMouseLeave,
79
77
  onDismiss = _ref4.onDismiss,
80
78
  actionOptions = _ref4.actionOptions,
81
- hoverPreviewOptions = _ref4.hoverPreviewOptions,
82
- showRovoResolvedView = _ref4.showRovoResolvedView;
79
+ hoverPreviewOptions = _ref4.hoverPreviewOptions;
83
80
  var _useAnalyticsEventsNe = (0, _analyticsNext.useAnalyticsEvents)(),
84
81
  createAnalyticsEvent = _useAnalyticsEventsNe.createAnalyticsEvent;
85
82
  var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
@@ -283,8 +280,7 @@ var HoverCardContent = function HoverCardContent(_ref4) {
283
280
  }
284
281
  if (isResolved) {
285
282
  return /*#__PURE__*/_react.default.createElement(_resolved.default, (0, _extends2.default)({}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? {
286
- actionOptions: actionOptions,
287
- showRovoResolvedView: showRovoResolvedView
283
+ actionOptions: actionOptions
288
284
  } : undefined, {
289
285
  cardState: cardState,
290
286
  extensionKey: extensionKey,
@@ -335,8 +331,7 @@ var HoverCardContent = function HoverCardContent(_ref4) {
335
331
  }
336
332
  if (cardState.status === 'resolved') {
337
333
  return /*#__PURE__*/_react.default.createElement(_resolved.default, (0, _extends2.default)({}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? {
338
- actionOptions: actionOptions,
339
- showRovoResolvedView: showRovoResolvedView
334
+ actionOptions: actionOptions
340
335
  } : undefined, {
341
336
  cardState: cardState,
342
337
  extensionKey: extensionKey,
@@ -359,23 +354,10 @@ var HoverCardContent = function HoverCardContent(_ref4) {
359
354
  }
360
355
  };
361
356
  var HoverCardContentWithViewVariant = function HoverCardContentWithViewVariant(props) {
362
- var cardState = props.cardState,
363
- actionOptions = props.actionOptions;
364
- var rovoConfig = (0, _useRovoConfig2.default)();
365
- var isResolved = useIsResolvedView(props);
366
357
  var showPreauthBetterHovercard = useIsShowPreauthBetterHovercard(props);
367
- var showRovoResolvedView = (0, _react.useMemo)(function () {
368
- return isResolved && cardState.details && (0, _extractRovoChatAction.default)({
369
- response: cardState.details,
370
- rovoConfig: rovoConfig,
371
- actionOptions: actionOptions
372
- }) !== undefined;
373
- }, [actionOptions, cardState.details, rovoConfig, isResolved]);
374
358
  var data = (0, _react.useMemo)(function () {
375
359
  var viewVariant = 'default';
376
- if (showRovoResolvedView && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_sl_3p_auth_rovo_action', 'isEnabled', true)) {
377
- viewVariant = 'rovo-resolved-view';
378
- } else if (showPreauthBetterHovercard) {
360
+ if (showPreauthBetterHovercard) {
379
361
  viewVariant = 'rovo-unauthorised-view';
380
362
  }
381
363
  return {
@@ -383,17 +365,12 @@ var HoverCardContentWithViewVariant = function HoverCardContentWithViewVariant(p
383
365
  viewVariant: viewVariant
384
366
  }
385
367
  };
386
- }, [showRovoResolvedView, showPreauthBetterHovercard]);
368
+ }, [showPreauthBetterHovercard]);
387
369
  return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
388
370
  data: data
389
- }, /*#__PURE__*/_react.default.createElement(HoverCardContent, (0, _extends2.default)({}, props, {
390
- showRovoResolvedView: showRovoResolvedView
391
- })));
371
+ }, /*#__PURE__*/_react.default.createElement(HoverCardContent, props));
392
372
  };
393
373
  var _default_1 = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
394
- // We need to read both of them to sutisfy some of the tests that expect both to be checked.
395
- var flagA = (0, _platformFeatureFlags.fg)('platform_sl_3p_preauth_better_hovercard_killswitch');
396
- var flagB = (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch');
397
- return flagA || flagB;
374
+ return (0, _platformFeatureFlags.fg)('platform_sl_3p_preauth_better_hovercard_killswitch');
398
375
  }, HoverCardContentWithViewVariant, HoverCardContent);
399
376
  var _default = exports.default = _default_1;
@@ -12,7 +12,6 @@ var _runtime = require("@compiled/react/runtime");
12
12
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
13
  var _react = _interopRequireWildcard(require("react"));
14
14
  var _reactMagneticDi = require("react-magnetic-di");
15
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
15
  var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
17
16
  var _constants = require("../../../../../constants");
18
17
  var _analytics = require("../../../../../state/analytics");
@@ -33,14 +32,10 @@ var HoverCardResolvedView = function HoverCardResolvedView(_ref) {
33
32
  flexibleCardProps = _ref.flexibleCardProps,
34
33
  isAISummaryEnabled = _ref.isAISummaryEnabled,
35
34
  onActionClick = _ref.onActionClick,
36
- showRovoResolvedView = _ref.showRovoResolvedView,
37
35
  titleBlockProps = _ref.titleBlockProps,
38
36
  id = _ref.id;
39
37
  var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
40
38
  fireEvent = _useAnalyticsEvents.fireEvent;
41
- // We want to fire exposure event only for those cases when user otherwise can see the experiment which would be controlled
42
- // by all the other condition defined above as a result of what was defined in actionOptions as well as in CardContext.
43
- var is3PAuthRovoActionsExperimentOn = showRovoResolvedView && (0, _expValEquals.expValEquals)('platform_sl_3p_auth_rovo_action', 'isEnabled', true);
44
39
  (0, _react.useEffect)(function () {
45
40
  // Since this hover view is only rendered on resolved status,
46
41
  // there is no need to check for statuses.
@@ -87,8 +82,7 @@ var HoverCardResolvedView = function HoverCardResolvedView(_ref) {
87
82
  size: _constants.SmartLinkSize.Medium
88
83
  }), isAISummaryEnabled ? /*#__PURE__*/_react.default.createElement(_blocks.AISummaryBlock, {
89
84
  aiSummaryMinHeight: aiSummaryMinHeight,
90
- placeholder: snippet,
91
- isAny3pRovoActionsExperimentOn: is3PAuthRovoActionsExperimentOn
85
+ placeholder: snippet
92
86
  }) : snippet, /*#__PURE__*/_react.default.createElement(_blocks.SnippetBlock, {
93
87
  testId: "hidden-snippet",
94
88
  onRender: onSnippetRender,
@@ -98,10 +92,7 @@ var HoverCardResolvedView = function HoverCardResolvedView(_ref) {
98
92
  }), /*#__PURE__*/_react.default.createElement(_blocks.ActionBlock, {
99
93
  onClick: onActionClick,
100
94
  spaceInline: "space.100",
101
- isAny3pRovoActionsExperimentOn: is3PAuthRovoActionsExperimentOn,
102
95
  className: (0, _runtime.ax)(["_n3td1b66"])
103
- }), is3PAuthRovoActionsExperimentOn ? /*#__PURE__*/_react.default.createElement(_blocks.ResolvedHoverCardFooterBlock, {
104
- onActionClick: onActionClick
105
- }) : /*#__PURE__*/_react.default.createElement(_blocks.AIFooterBlock, null));
96
+ }), /*#__PURE__*/_react.default.createElement(_blocks.AIFooterBlock, null));
106
97
  };
107
98
  var _default = exports.default = HoverCardResolvedView;
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
19
19
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
20
20
  var PACKAGE_DATA = {
21
21
  packageName: "@atlaskit/smart-card",
22
- packageVersion: "45.6.8",
22
+ packageVersion: "45.6.9",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var LinkUrl = function LinkUrl(_ref) {
@@ -14,13 +14,9 @@ var _logo = require("@atlaskit/logo");
14
14
  var _constants = require("../../../constants");
15
15
  var _messages = require("../../../messages");
16
16
  var _aiChapterIcon = _interopRequireDefault(require("../../FlexibleCard/assets/ai-chapter-icon"));
17
- var _aiEditIcon = _interopRequireDefault(require("../../FlexibleCard/assets/ai-edit-icon"));
18
17
  var _aiSearchIcon = _interopRequireDefault(require("../../FlexibleCard/assets/ai-search-icon"));
19
18
  var _htmlToAdf = _interopRequireDefault(require("../../FlexibleCard/components/actions/rovo-chat-action/html-to-adf"));
20
19
  var RovoChatPromptKey = exports.RovoChatPromptKey = /*#__PURE__*/function (RovoChatPromptKey) {
21
- RovoChatPromptKey["RECOMMEND_OTHER_SOURCES"] = "recommend-other-sources";
22
- RovoChatPromptKey["SHOW_OTHER_MENTIONS"] = "show-other-mentions";
23
- RovoChatPromptKey["SUGGEST_IMPROVEMENT"] = "suggest-improvement";
24
20
  RovoChatPromptKey["SUMMARIZE_LINK"] = "summarize-link";
25
21
  RovoChatPromptKey["KEY_HIGHLIGHTS"] = "key-highlights";
26
22
  RovoChatPromptKey["ASK_ROVO_ANYTHING"] = "ask-rovo-anything";
@@ -42,16 +38,14 @@ var getContext = function getContext(intl, product) {
42
38
  switch (product) {
43
39
  case 'CONFLUENCE':
44
40
  return {
45
- contextLong: intl.formatMessage(_messages.messages.rovo_prompt_context_confluence_page),
46
- contextShort: intl.formatMessage(_messages.messages.rovo_prompt_context_confluence_page_short)
41
+ contextLong: intl.formatMessage(_messages.messages.rovo_prompt_context_confluence_page)
47
42
  };
48
43
  case 'JSW':
49
44
  case 'JWM':
50
45
  case 'JSM':
51
46
  case 'JPD':
52
47
  return {
53
- contextLong: intl.formatMessage(_messages.messages.rovo_prompt_context_jira_work_item),
54
- contextShort: intl.formatMessage(_messages.messages.rovo_prompt_context_jira_work_item_short)
48
+ contextLong: intl.formatMessage(_messages.messages.rovo_prompt_context_jira_work_item)
55
49
  };
56
50
  }
57
51
  };
@@ -66,68 +60,10 @@ var getPromptAction = exports.getPromptAction = function getPromptAction(_ref) {
66
60
  cardAppearance = _ref.cardAppearance,
67
61
  provider = _ref.provider;
68
62
  var _ref2 = (_getContext = getContext(intl, product)) !== null && _getContext !== void 0 ? _getContext : {
69
- contextLong: intl.formatMessage(_messages.messages.rovo_prompt_context_generic),
70
- contextShort: intl.formatMessage(_messages.messages.rovo_prompt_context_generic)
63
+ contextLong: intl.formatMessage(_messages.messages.rovo_prompt_context_generic)
71
64
  },
72
- contextLong = _ref2.contextLong,
73
- contextShort = _ref2.contextShort;
65
+ contextLong = _ref2.contextLong;
74
66
  switch (promptKey) {
75
- case RovoChatPromptKey.RECOMMEND_OTHER_SOURCES:
76
- var label_recommend = intl.formatMessage(_messages.messages.rovo_prompt_button_recommend_other_sources);
77
- var html_recommend = intl.formatMessage(_messages.messages.rovo_prompt_message_recommend_other_sources, {
78
- context: contextLong,
79
- url: url
80
- }, {
81
- ignoreTag: true
82
- });
83
- return {
84
- icon: /*#__PURE__*/_react.default.createElement(_aiEditIcon.default, null),
85
- content: label_recommend,
86
- tooltipMessage: label_recommend,
87
- data: {
88
- name: label_recommend,
89
- dialogues: [],
90
- prompt: (0, _htmlToAdf.default)(html_recommend)
91
- }
92
- };
93
- case RovoChatPromptKey.SHOW_OTHER_MENTIONS:
94
- var label_other_mentions = intl.formatMessage(_messages.messages.rovo_prompt_button_show_other_mentions);
95
- var html_other_mentions = intl.formatMessage(_messages.messages.rovo_prompt_message_show_other_mentions, {
96
- context: contextLong,
97
- url: url
98
- }, {
99
- ignoreTag: true
100
- });
101
- return {
102
- icon: /*#__PURE__*/_react.default.createElement(_aiChapterIcon.default, null),
103
- content: label_other_mentions,
104
- tooltipMessage: label_other_mentions,
105
- data: {
106
- name: label_other_mentions,
107
- dialogues: [],
108
- prompt: (0, _htmlToAdf.default)(html_other_mentions)
109
- }
110
- };
111
- case RovoChatPromptKey.SUGGEST_IMPROVEMENT:
112
- var label_improvement = intl.formatMessage(_messages.messages.rovo_prompt_button_suggest_improvement, {
113
- context: contextShort
114
- });
115
- var html_improvement = intl.formatMessage(_messages.messages.rovo_prompt_message_suggest_improvement, {
116
- context: contextLong,
117
- url: url
118
- }, {
119
- ignoreTag: true
120
- });
121
- return {
122
- icon: /*#__PURE__*/_react.default.createElement(_aiSearchIcon.default, null),
123
- content: label_improvement,
124
- tooltipMessage: label_improvement,
125
- data: {
126
- name: label_improvement,
127
- dialogues: [],
128
- prompt: (0, _htmlToAdf.default)(html_improvement)
129
- }
130
- };
131
67
  case RovoChatPromptKey.SUMMARIZE_LINK:
132
68
  var label_summarize = intl.formatMessage(_messages.messages.ai_summarize);
133
69
  var html_summarize = intl.formatMessage(_messages.messages.rovo_prompt_message_summarize, {
@@ -986,51 +986,11 @@ export const messages = defineMessages({
986
986
  defaultMessage: 'Confluence page',
987
987
  description: 'The Confluence page the user see Smart Link in, to be used as the {context} for Rovo prompt message'
988
988
  },
989
- rovo_prompt_context_confluence_page_short: {
990
- id: 'fabric.linking.rovo_prompt_context_confluence_page_short.non-final',
991
- defaultMessage: 'page',
992
- description: 'The Confluence page the user see Smart Link in, to be used as the {context} for Rovo prompt message'
993
- },
994
989
  rovo_prompt_context_jira_work_item: {
995
990
  id: 'fabric.linking.rovo_prompt_context_jira_work_item.non-final',
996
991
  defaultMessage: 'Jira work item',
997
992
  description: 'The Jira work item the user see Smart Link in, to be used as the {context} for Rovo prompt message'
998
993
  },
999
- rovo_prompt_context_jira_work_item_short: {
1000
- id: 'fabric.linking.rovo_prompt_context_jira_work_item_short.non-final',
1001
- defaultMessage: 'work item',
1002
- description: 'The Jira work item the user see Smart Link in, to be used as the {context} for Rovo prompt message'
1003
- },
1004
- rovo_prompt_button_recommend_other_sources: {
1005
- id: 'fabric.linking.rovo_prompt_button_recommend_other_sources.non-final',
1006
- defaultMessage: 'Recommend other sources',
1007
- description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
1008
- },
1009
- rovo_prompt_message_recommend_other_sources: {
1010
- id: 'fabric.linking.rovo_prompt_message_recommend_other_sources.non-final',
1011
- defaultMessage: '<p>From this <a>{url}</a> and the {context} I’m viewing now as context:</p><ul><li><p>Search across all sources I can access for items that discuss <b>similar concepts, themes, or problems</b>, or that <b>reference similar or closely related sources</b> (including links to the same or related pages, issues, or docs).</p></li><li><p>Return the results as a list or table with columns: <code>Item</code>, <code>Type</code>, <code>Short summary</code>, and <code>Why it’s similar</code>.</p></li><li><p>For each result, give a one‑sentence <b>Short summary</b> of what the item is about.</p></li><li><p>In <b>Why it’s similar</b>, briefly explain (in a phrase or short sentence) what makes it related to this Smart Link and/or the item I’m viewing (for example: same project, similar decision, shared requirements, overlapping stakeholders, similar metrics, or referencing related docs).</p></li><li><p>Order the list from <b>most to least relevant</b> based on Rovo’s assessment of semantic similarity to both the Smart Link target and the current item. Prioritize items that I do not own or have not contributed to.</p></li><li><p>If there are more than 5 results, show the <b>5 most relevant</b> and state how many additional items you found.</p></li></ul>',
1012
- description: 'The prompt message to send to Rovo Chat. {context} refers to the content the user triggered from, e.g. Confluence page or Jira work item. {url} refers to Smart Link that the user triggers this action from. (Please make sure all html tags remain the same.)'
1013
- },
1014
- rovo_prompt_button_show_other_mentions: {
1015
- id: 'fabric.linking.rovo_prompt_button_show_other_mentions.non-final',
1016
- defaultMessage: 'Show other mentions',
1017
- description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
1018
- },
1019
- rovo_prompt_message_show_other_mentions: {
1020
- id: 'fabric.linking.rovo_prompt_message_show_other_mentions.non-final',
1021
- defaultMessage: '<p>From <a>{url}</a> and the {context} I’m viewing now:</p><ul><li><p>Search across all Confluence pages and Jira work items I can access for other items that contain this exact Smart Link (same underlying URL/resource).</p></li><li><p>List all matching items in a table with columns: <code>Item</code>, <code>Type</code>, <code>Short summary</code>, <code>How this item uses the link</code>, and <code>Relevance to current item</code>.</p></li><li><p>For <code>Short summary</code>, give a one‑sentence description of what the {context} is about.</p></li><li><p>For <code>How this item uses the link</code>, briefly explain the role this link plays there (e.g., decision doc, background context, implementation details, status update).</p></li><li><p>For <code>Relevance to current item</code>, compare each item to the {context} I’m viewing now and label it <code>High</code>, <code>Medium</code>, or <code>Low</code> relevance, with a short reason (a phrase or single clause).</p></li><li><p>If there are more than 15 matches, show the 15 most relevant and tell me how many additional matches exist.</p></li></ul>',
1022
- description: 'The prompt message to send to Rovo Chat. {context} refers to the content the user triggered from, e.g. Confluence page or Jira work item. {url} refers to Smart Link that the user triggers this action from. (Please make sure all html tags remain the same.)'
1023
- },
1024
- rovo_prompt_button_suggest_improvement: {
1025
- id: 'fabric.linking.rovo_prompt_button_suggest_improvement.non-final',
1026
- defaultMessage: 'Suggest {context} improvement',
1027
- description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
1028
- },
1029
- rovo_prompt_message_suggest_improvement: {
1030
- id: 'fabric.linking.rovo_prompt_message_suggest_improvement.non-final',
1031
- defaultMessage: '<p>Using the {context} I’m viewing now, plus all files and links referenced in it (including <a>{url}</a>):</p><ul><li><p>Identify unclear reasoning, missing context, or contradictions between the item and its linked files.</p></li><li><p>Call out any places where assumptions are not backed up by data or prior docs.</p></li><li><p>Stay concise: summarize your findings in <b>no more than three short paragraphs of content listed as bullets</b> of no more than a couple of sentences long focused only on the two points above.</p></li><li><p>After presenting that summary, <b>ask me explicitly</b> if I want you to go deeper. Only if I say yes, then:</p><ul><li><p>Suggest concrete rewrites (bullets or short paragraphs) to make the argument clearer, more concise, and better aligned with the supporting files.</p></li><li><p>Propose 3–5 follow‑up edits or additions that would make this item and its linked docs “share‑ready” for stakeholders.</p></li></ul></li></ul>',
1032
- description: 'The prompt message to send to Rovo Chat. {context} refers to the content the user triggered from, e.g. Confluence page or Jira work item. {url} refers to Smart Link that the user triggers this action from. (Please make sure all html tags remain the same.)'
1033
- },
1034
994
  rovo_prompt_message_summarize: {
1035
995
  id: 'fabric.linking.rovo_prompt_message_summarize.non-final',
1036
996
  defaultMessage: '<p>Summarize the main ideas and key points of <a>{url}</a> in 3-5 clear, complete bullet points (markdown list).</p><p>Preserve important details such as names, dates, and key decisions.</p>',
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
2
2
  export const context = {
3
3
  componentName: 'smart-cards',
4
4
  packageName: "@atlaskit/smart-card" || '',
5
- packageVersion: "45.6.8" || ''
5
+ packageVersion: "45.6.9" || ''
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -5,10 +5,9 @@ import { ActionName } from '../../../../../constants';
5
5
  import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
6
6
  import useInvokeClientAction from '../../../../../state/hooks/use-invoke-client-action';
7
7
  import useRovoChat from '../../../../../state/hooks/use-rovo-chat';
8
- import { getPromptAction, RovoChatPromptKey } from '../../../../common/rovo-chat-utils';
8
+ import { getPromptAction } from '../../../../common/rovo-chat-utils';
9
9
  import Action from '../action';
10
- const GOOGLE_PROMPTS = [RovoChatPromptKey.RECOMMEND_OTHER_SOURCES, RovoChatPromptKey.SHOW_OTHER_MENTIONS, RovoChatPromptKey.SUGGEST_IMPROVEMENT];
11
- const DEFAULT_PROMPTS = GOOGLE_PROMPTS;
10
+ const DEFAULT_PROMPTS = [];
12
11
  const RovoChatAction = ({
13
12
  onClick: onClickCallback,
14
13
  prompts,
@@ -4,7 +4,6 @@ import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useCallback, useMemo, useState } from 'react';
6
6
  import { di } from 'react-magnetic-di';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import { ActionName, SmartLinkSize } from '../../../../../constants';
9
8
  import { useFlexibleUiContext, useFlexibleUiOptionContext } from '../../../../../state/flexible-ui-context';
10
9
  import * as Actions from '../../actions';
@@ -46,13 +45,10 @@ const ActionBlock = ({
46
45
  size,
47
46
  spaceInline,
48
47
  className,
49
- testId = 'smart-block-action',
50
- isAny3pRovoActionsExperimentOn
48
+ testId = 'smart-block-action'
51
49
  }) => {
52
- var _context$actions;
53
50
  const context = useFlexibleUiContext();
54
51
  const ui = useFlexibleUiOptionContext();
55
- const isRovoChatActionAvailable = isAny3pRovoActionsExperimentOn && fg('platform_sl_3p_auth_rovo_action_kill_switch') ? (context === null || context === void 0 ? void 0 : (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions[ActionName.RovoChatAction]) !== undefined : undefined;
56
52
  const [message, setMessage] = useState();
57
53
  const [isLoading, setIsLoading] = useState(false);
58
54
  const onLoadingChange = useCallback(isLoading => {
@@ -70,7 +66,7 @@ const ActionBlock = ({
70
66
  if (!(context !== null && context !== void 0 && context.actions)) {
71
67
  return;
72
68
  }
73
- const arr = fg('platform_sl_3p_auth_rovo_action_kill_switch') ? isRovoChatActionAvailable ? [ActionName.RovoChatAction] : Object.keys(context.actions).filter(name => name !== ActionName.RovoChatAction) : Object.keys(context.actions);
69
+ const arr = Object.keys(context.actions).filter(name => name !== ActionName.RovoChatAction);
74
70
  arr.sort(sort);
75
71
  const renderAction = name => {
76
72
  const Action = name in Actions ? Actions[name] : undefined;
@@ -94,7 +90,7 @@ const ActionBlock = ({
94
90
  });
95
91
  };
96
92
  return arr.map(name => renderAction(name));
97
- }, [context === null || context === void 0 ? void 0 : context.actions, isRovoChatActionAvailable, spaceInline, onError, onLoadingChange, size, ui === null || ui === void 0 ? void 0 : ui.size, padding, isLoading, onClick]);
93
+ }, [context === null || context === void 0 ? void 0 : context.actions, spaceInline, onError, onLoadingChange, size, ui === null || ui === void 0 ? void 0 : ui.size, padding, isLoading, onClick]);
98
94
  if (!actions) {
99
95
  return null;
100
96
  }
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { InternalActionName, SmartLinkStatus } from '../../../../../constants';
4
4
  import { useFlexibleCardContext, useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
5
- import AISummaryBlockResolvedView, { RovoSummaryBlockResolvedView } from './resolved';
5
+ import AISummaryBlockResolvedView from './resolved';
6
6
  /**
7
7
  * Represents an AISummaryBlock, designed to summarising link resource
8
8
  * content using AI.
@@ -11,11 +11,10 @@ import AISummaryBlockResolvedView, { RovoSummaryBlockResolvedView } from './reso
11
11
  * @see Block
12
12
  */
13
13
  const AISummaryBlock = ({
14
- isAny3pRovoActionsExperimentOn,
15
14
  testId = 'smart-ai-summary-block',
16
15
  ...props
17
16
  }) => {
18
- var _context$actions, _props$size2, _cardContext$ui2;
17
+ var _context$actions, _props$size, _cardContext$ui;
19
18
  const cardContext = useFlexibleCardContext();
20
19
  const context = useFlexibleUiContext();
21
20
  const actionData = context === null || context === void 0 ? void 0 : (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions[InternalActionName.AISummaryAction];
@@ -25,16 +24,8 @@ const AISummaryBlock = ({
25
24
  if (!(actionData !== null && actionData !== void 0 && actionData.url)) {
26
25
  return null;
27
26
  }
28
- if (isAny3pRovoActionsExperimentOn) {
29
- var _props$size, _cardContext$ui;
30
- return /*#__PURE__*/React.createElement(RovoSummaryBlockResolvedView, _extends({}, props, {
31
- size: (_props$size = props.size) !== null && _props$size !== void 0 ? _props$size : cardContext === null || cardContext === void 0 ? void 0 : (_cardContext$ui = cardContext.ui) === null || _cardContext$ui === void 0 ? void 0 : _cardContext$ui.size,
32
- testId: testId,
33
- url: actionData.url
34
- }));
35
- }
36
27
  return /*#__PURE__*/React.createElement(AISummaryBlockResolvedView, _extends({}, props, {
37
- size: (_props$size2 = props.size) !== null && _props$size2 !== void 0 ? _props$size2 : cardContext === null || cardContext === void 0 ? void 0 : (_cardContext$ui2 = cardContext.ui) === null || _cardContext$ui2 === void 0 ? void 0 : _cardContext$ui2.size,
28
+ size: (_props$size = props.size) !== null && _props$size !== void 0 ? _props$size : cardContext === null || cardContext === void 0 ? void 0 : (_cardContext$ui = cardContext.ui) === null || _cardContext$ui === void 0 ? void 0 : _cardContext$ui.size,
38
29
  testId: testId,
39
30
  url: actionData.url
40
31
  }));