@atlaskit/smart-card 44.23.0 → 44.23.2

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 (147) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  3. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
  4. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default.png +3 -0
  5. package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  6. package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
  7. package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  8. package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
  9. package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-resolved-view-with-rovo-actions-cta-treatment---default.png +2 -2
  10. package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-entity-support--default.png +2 -2
  11. package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +6 -14
  12. package/dist/cjs/extractors/flexible/actions/extract-rovo-chat-action.js +2 -4
  13. package/dist/cjs/extractors/flexible/actions/index.js +1 -1
  14. package/dist/cjs/extractors/flexible/index.js +1 -1
  15. package/dist/cjs/state/hooks/use-rovo-chat/index.js +1 -1
  16. package/dist/cjs/utils/analytics/analytics.js +1 -1
  17. package/dist/cjs/utils/index.js +23 -75
  18. package/dist/cjs/view/CardWithUrl/component.js +3 -3
  19. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -9
  20. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +7 -28
  21. package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/index.js +1 -10
  22. package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -2
  23. package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +1 -2
  24. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +1 -2
  25. package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -2
  26. package/dist/cjs/view/FlexibleCard/components/actions/follow-action/index.js +1 -2
  27. package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +2 -3
  28. package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +0 -7
  29. package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +2 -3
  30. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.compiled.css +2 -6
  31. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +4 -26
  32. package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +0 -1
  33. package/dist/cjs/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -4
  34. package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +34 -36
  35. package/dist/cjs/view/FlexibleCard/index.js +2 -2
  36. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +7 -15
  37. package/dist/cjs/view/HoverCard/components/views/resolved/index.js +4 -11
  38. package/dist/cjs/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +2 -8
  39. package/dist/cjs/view/LinkUrl/index.js +1 -1
  40. package/dist/cjs/view/common/ai-summary/index.js +1 -3
  41. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  42. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
  43. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default.png +3 -0
  44. package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  45. package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
  46. package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  47. package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
  48. package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-resolved-view-with-rovo-actions-cta-treatment---default.png +2 -2
  49. package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-entity-support--default.png +2 -2
  50. package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +6 -14
  51. package/dist/es2019/extractors/flexible/actions/extract-rovo-chat-action.js +2 -4
  52. package/dist/es2019/extractors/flexible/actions/index.js +1 -1
  53. package/dist/es2019/extractors/flexible/index.js +1 -1
  54. package/dist/es2019/state/hooks/use-rovo-chat/index.js +1 -1
  55. package/dist/es2019/utils/analytics/analytics.js +1 -1
  56. package/dist/es2019/utils/index.js +3 -26
  57. package/dist/es2019/view/CardWithUrl/component.js +3 -4
  58. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -9
  59. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +7 -28
  60. package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/index.js +1 -10
  61. package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -2
  62. package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +1 -2
  63. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +1 -2
  64. package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -2
  65. package/dist/es2019/view/FlexibleCard/components/actions/follow-action/index.js +1 -2
  66. package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +2 -3
  67. package/dist/es2019/view/FlexibleCard/components/actions/rovo-chat-action/index.js +0 -7
  68. package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +2 -3
  69. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.compiled.css +2 -6
  70. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +4 -26
  71. package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +0 -1
  72. package/dist/es2019/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -4
  73. package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +34 -36
  74. package/dist/es2019/view/FlexibleCard/index.js +2 -2
  75. package/dist/es2019/view/HoverCard/components/HoverCardContent.js +7 -16
  76. package/dist/es2019/view/HoverCard/components/views/resolved/index.js +3 -11
  77. package/dist/es2019/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +3 -10
  78. package/dist/es2019/view/LinkUrl/index.js +1 -1
  79. package/dist/es2019/view/common/ai-summary/index.js +1 -3
  80. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  81. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
  82. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default.png +3 -0
  83. package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  84. package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
  85. package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
  86. package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
  87. package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-resolved-view-with-rovo-actions-cta-treatment---default.png +2 -2
  88. package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-with-entity-support--default.png +2 -2
  89. package/dist/esm/extractors/common/icon/extractIconFromDocument.js +6 -14
  90. package/dist/esm/extractors/flexible/actions/extract-rovo-chat-action.js +2 -4
  91. package/dist/esm/extractors/flexible/actions/index.js +1 -1
  92. package/dist/esm/extractors/flexible/index.js +1 -1
  93. package/dist/esm/state/hooks/use-rovo-chat/index.js +1 -1
  94. package/dist/esm/utils/analytics/analytics.js +1 -1
  95. package/dist/esm/utils/index.js +23 -63
  96. package/dist/esm/view/CardWithUrl/component.js +3 -3
  97. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +0 -9
  98. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +7 -28
  99. package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/index.js +1 -10
  100. package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -2
  101. package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +1 -2
  102. package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +1 -2
  103. package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -2
  104. package/dist/esm/view/FlexibleCard/components/actions/follow-action/index.js +1 -2
  105. package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +2 -3
  106. package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +0 -7
  107. package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +2 -3
  108. package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.compiled.css +2 -6
  109. package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +4 -26
  110. package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.compiled.css +0 -1
  111. package/dist/esm/view/FlexibleCard/components/blocks/hover-card-footer-block/index.js +1 -4
  112. package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +34 -36
  113. package/dist/esm/view/FlexibleCard/index.js +2 -2
  114. package/dist/esm/view/HoverCard/components/HoverCardContent.js +7 -15
  115. package/dist/esm/view/HoverCard/components/views/resolved/index.js +4 -11
  116. package/dist/esm/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +3 -9
  117. package/dist/esm/view/LinkUrl/index.js +1 -1
  118. package/dist/esm/view/common/ai-summary/index.js +1 -3
  119. package/dist/types/view/FlexibleCard/components/blocks/action-block/types.d.ts +1 -1
  120. package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +2 -2
  121. package/dist/types/view/HoverCard/components/views/resolved/index.d.ts +1 -1
  122. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/types.d.ts +1 -1
  123. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +2 -2
  124. package/dist/types-ts4.5/view/HoverCard/components/views/resolved/index.d.ts +1 -1
  125. package/package.json +5 -8
  126. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +0 -3
  127. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-false.png +0 -3
  128. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +0 -3
  129. package/dist/cjs/state/hooks/use-inline-action-nudge-experiment/index.js +0 -54
  130. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +0 -15
  131. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +0 -44
  132. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +0 -3
  133. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-false.png +0 -3
  134. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +0 -3
  135. package/dist/es2019/state/hooks/use-inline-action-nudge-experiment/index.js +0 -48
  136. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +0 -15
  137. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +0 -36
  138. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +0 -3
  139. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-false.png +0 -3
  140. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-google-rovo-chat-action--default--rovogrowth-640-inline-action-nudge-exp-true.png +0 -3
  141. package/dist/esm/state/hooks/use-inline-action-nudge-experiment/index.js +0 -47
  142. package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.compiled.css +0 -15
  143. package/dist/esm/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.js +0 -35
  144. package/dist/types/state/hooks/use-inline-action-nudge-experiment/index.d.ts +0 -24
  145. package/dist/types/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.d.ts +0 -12
  146. package/dist/types-ts4.5/state/hooks/use-inline-action-nudge-experiment/index.d.ts +0 -24
  147. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/ask-rovo-section-header.d.ts +0 -12
@@ -10,7 +10,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _reactMagneticDi = require("react-magnetic-di");
12
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
14
13
  var _useAiSummaryAction = _interopRequireDefault(require("../../../../../state/hooks/use-ai-summary-action"));
15
14
  var _aiSummariseAction = require("./ai-summarise-action");
16
15
  var _copySummaryAction = require("./copy-summary-action");
@@ -28,7 +27,7 @@ var AISummaryActionComponent = exports.AISummaryActionComponent = function AISum
28
27
  (0, _react.useEffect)(function () {
29
28
  onLoadingChange === null || onLoadingChange === void 0 || onLoadingChange(status === 'loading');
30
29
  }, [onLoadingChange, status]);
31
- return status === 'done' ? (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? /*#__PURE__*/_react.default.createElement(_copySummaryAction.CopySummaryActionNew, (0, _extends2.default)({}, props, {
30
+ return status === 'done' ? (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? /*#__PURE__*/_react.default.createElement(_copySummaryAction.CopySummaryActionNew, (0, _extends2.default)({}, props, {
32
31
  summary: content,
33
32
  testId: testId
34
33
  })) : /*#__PURE__*/_react.default.createElement(_copySummaryAction.CopySummaryAction, (0, _extends2.default)({}, props, {
@@ -12,7 +12,6 @@ var _reactIntl = require("react-intl");
12
12
  var _automation = _interopRequireDefault(require("@atlaskit/icon/core/automation"));
13
13
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
14
  var _compiled = require("@atlaskit/primitives/compiled");
15
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
16
15
  var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
17
16
  var _constants = require("../../../../../constants");
18
17
  var _messages = require("../../../../../messages");
@@ -89,7 +88,7 @@ var AutomationAction = function AutomationAction(props) {
89
88
  spacing: "spacious",
90
89
  color: "currentColor",
91
90
  label: automationActionIconLabel
92
- }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || isRovoBlockCardExperimentEnabled || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
91
+ }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || isRovoBlockCardExperimentEnabled ? {
93
92
  size: props.iconSize
94
93
  } : {})),
95
94
  testId: "smart-action-automation-action",
@@ -16,7 +16,6 @@ var _react = _interopRequireWildcard(require("react"));
16
16
  var _reactIntl = require("react-intl");
17
17
  var _link = _interopRequireDefault(require("@atlaskit/icon/core/link"));
18
18
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
20
19
  var _constants = require("../../../../../constants");
21
20
  var _messages = require("../../../../../messages");
22
21
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
@@ -73,7 +72,7 @@ var CopyLinkAction = function CopyLinkAction(_ref) {
73
72
  color: "currentColor",
74
73
  label: (0, _platformFeatureFlags.fg)('navx-3698-flexible-card-a11y-fix') ? '' : 'copy url',
75
74
  spacing: "spacious"
76
- }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || isRovoBlockCardExperimentEnabled || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
75
+ }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || isRovoBlockCardExperimentEnabled ? {
77
76
  size: props.iconSize
78
77
  } : {})),
79
78
  onClick: onClick,
@@ -12,7 +12,6 @@ var _react = _interopRequireDefault(require("react"));
12
12
  var _reactIntl = require("react-intl");
13
13
  var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
14
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
16
15
  var _constants = require("../../../../../constants");
17
16
  var _messages = require("../../../../../messages");
18
17
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
@@ -87,7 +86,7 @@ var FollowAction = function FollowAction(props) {
87
86
  };
88
87
  return /*#__PURE__*/_react.default.createElement(_serverAction.default, (0, _extends2.default)({
89
88
  content: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, label)
90
- }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
89
+ }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? {
91
90
  ariaLabel: intl.formatMessage(label)
92
91
  } : {}, {
93
92
  icon: followIcon,
@@ -14,7 +14,6 @@ var _growDiagonal = _interopRequireDefault(require("@atlaskit/icon/core/grow-dia
14
14
  var _panelRight = _interopRequireDefault(require("@atlaskit/icon/core/panel-right"));
15
15
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
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 _constants = require("../../../../../constants");
19
18
  var _messages = require("../../../../../messages");
20
19
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
@@ -47,7 +46,7 @@ var PreviewAction = function PreviewAction(_ref) {
47
46
  color: "currentColor",
48
47
  spacing: "spacious",
49
48
  label: (0, _platformFeatureFlags.fg)('navx-3698-flexible-card-a11y-fix') ? '' : 'Open preview panel'
50
- }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || isRovoBlockCardExperimentEnabled || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
49
+ }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || isRovoBlockCardExperimentEnabled ? {
51
50
  size: props.iconSize
52
51
  } : {}));
53
52
  }
@@ -55,7 +54,7 @@ var PreviewAction = function PreviewAction(_ref) {
55
54
  color: "currentColor",
56
55
  spacing: "spacious",
57
56
  label: (0, _platformFeatureFlags.fg)('navx-3698-flexible-card-a11y-fix') ? '' : 'Open preview'
58
- }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || isRovoBlockCardExperimentEnabled || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
57
+ }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || isRovoBlockCardExperimentEnabled ? {
59
58
  size: props.iconSize
60
59
  } : {}));
61
60
  }, [hasPreviewPanel, props.iconSize, isRovoBlockCardExperimentEnabled]);
@@ -13,7 +13,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
13
13
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
  var _reactIntl = require("react-intl");
16
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
17
16
  var _constants = require("../../../../../constants");
18
17
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
19
18
  var _useInvokeClientAction = _interopRequireDefault(require("../../../../../state/hooks/use-invoke-client-action"));
@@ -25,9 +24,6 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
25
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; }
26
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; }
27
26
  var GOOGLE_PROMPTS = [_rovoChatUtils.RovoChatPromptKey.RECOMMEND_OTHER_SOURCES, _rovoChatUtils.RovoChatPromptKey.SHOW_OTHER_MENTIONS, _rovoChatUtils.RovoChatPromptKey.SUGGEST_IMPROVEMENT];
28
- var GENERIC_3P_PROMPTS = [
29
- // For rovogrowth-640-inline-action-nudge-exp only
30
- _rovoChatUtils.RovoChatPromptKey.SHOW_ME_WHATS_RELEVANT, _rovoChatUtils.RovoChatPromptKey.SUMMARIZE_THIS_FOR_ME, _rovoChatUtils.RovoChatPromptKey.ASK_A_SPECIFIC_QUESTION];
31
27
  var DEFAULT_PROMPTS = GOOGLE_PROMPTS;
32
28
  var RovoChatAction = function RovoChatAction(_ref) {
33
29
  var _context$actions;
@@ -46,9 +42,6 @@ var RovoChatAction = function RovoChatAction(_ref) {
46
42
  if (prompts) {
47
43
  return prompts;
48
44
  }
49
- if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true)) {
50
- return GENERIC_3P_PROMPTS;
51
- }
52
45
  return DEFAULT_PROMPTS;
53
46
  }, [prompts]);
54
47
  var invoke = (0, _useInvokeClientAction.default)({});
@@ -11,7 +11,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _reactIntl = require("react-intl");
13
13
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
15
14
  var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
16
15
  var _messages = require("../../../../../messages");
17
16
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
@@ -50,10 +49,10 @@ var ViewRelatedLinksAction = function ViewRelatedLinksAction(_ref) {
50
49
  }, [actionData === null || actionData === void 0 ? void 0 : actionData.ari, fireEvent, modal, onClickCallback]);
51
50
  return actionData ? /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
52
51
  content: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.messages.related_links_view_related_links)
53
- }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
52
+ }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? {
54
53
  tooltipMessage: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.messages.related_links_view_related_links)
55
54
  } : {}, {
56
- icon: /*#__PURE__*/_react.default.createElement(_relatedLinksActionIcon.default, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
55
+ icon: /*#__PURE__*/_react.default.createElement(_relatedLinksActionIcon.default, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? {
57
56
  iconSize: props.iconSize
58
57
  } : {}),
59
58
  onClick: onClick,
@@ -1,11 +1,7 @@
1
-
2
- ._zulpu2gc{gap:var(--ds-space-100,8px)}._16jlkb7n{flex-grow:1}
1
+ ._16jlkb7n{flex-grow:1}
3
2
  ._18u01ivi{margin-left:calc(var(--container-gap-left)*-1)}
4
3
  ._1bsb129b{width:calc(100% + var(--container-gap-left) + var(--container-gap-right))}
5
- ._1bsb1osq{width:100%}
6
- ._1e0c11p5{display:grid}
7
4
  ._1e0c1txw{display:flex}
8
5
  ._2hwxc10g{margin-right:calc(var(--container-gap-right)*-1)}
9
6
  ._2lx21bp4{flex-direction:column}
10
- ._vchhusvi{box-sizing:border-box}
11
- ._yv0e1ris{grid-template-columns:max-content}
7
+ ._vchhusvi{box-sizing:border-box}
@@ -14,16 +14,12 @@ 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
16
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
18
17
  var _constants = require("../../../../../constants");
19
18
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
20
19
  var Actions = _interopRequireWildcard(require("../../actions"));
21
20
  var _actionFooter = require("./action-footer");
22
- var _askRovoSectionHeader = _interopRequireDefault(require("./ask-rovo-section-header"));
23
21
  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
22
  var ignoreContainerPaddingStyles = null;
25
- var inlineActionNudgePillWrapperStyles = null;
26
- var inlineActionNudgeColumnStyles = null;
27
23
  var DEFAULT_SORT_ORDER = ['PreviewAction', 'CopyLinkAction', 'AISummaryAction'];
28
24
  var sort = function sort(a, b) {
29
25
  var idxA = DEFAULT_SORT_ORDER.indexOf(a);
@@ -66,10 +62,7 @@ var ActionBlock = function ActionBlock(_ref) {
66
62
  isAny3pRovoActionsExperimentOn = _ref.isAny3pRovoActionsExperimentOn;
67
63
  var context = (0, _flexibleUiContext.useFlexibleUiContext)();
68
64
  var ui = (0, _flexibleUiContext.useFlexibleUiOptionContext)();
69
- var isRovoChatActionAvailable = ((0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('rovogrowth-640-inline-action-nudge-fg')) && isAny3pRovoActionsExperimentOn ? (context === null || context === void 0 || (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions[_constants.ActionName.RovoChatAction]) !== undefined : undefined;
70
-
71
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
72
- var isInlineActionNudgeExperiment = (0, _platformFeatureFlags.fg)('rovogrowth-640-inline-action-nudge-fg') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true);
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;
73
66
  var _useState = (0, _react.useState)(),
74
67
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
75
68
  message = _useState2[0],
@@ -93,7 +86,7 @@ var ActionBlock = function ActionBlock(_ref) {
93
86
  if (!(context !== null && context !== void 0 && context.actions)) {
94
87
  return;
95
88
  }
96
- var arr = (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('rovogrowth-640-inline-action-nudge-fg') ? isRovoChatActionAvailable ? [_constants.ActionName.RovoChatAction] : Object.keys(context.actions).filter(function (name) {
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) {
97
90
  return name !== _constants.ActionName.RovoChatAction;
98
91
  }) : Object.keys(context.actions);
99
92
  arr.sort(sort);
@@ -114,7 +107,7 @@ var ActionBlock = function ActionBlock(_ref) {
114
107
  size: size || (ui === null || ui === void 0 ? void 0 : ui.size)
115
108
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
116
109
  ,
117
- style: !(isInlineActionNudgeExperiment && isRovoChatActionAvailable) && padding ? {
110
+ style: padding ? {
118
111
  paddingInline: padding
119
112
  } : undefined,
120
113
  hideTooltip: isLoading
@@ -123,25 +116,10 @@ var ActionBlock = function ActionBlock(_ref) {
123
116
  return arr.map(function (name) {
124
117
  return renderAction(name);
125
118
  });
126
- }, [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, isInlineActionNudgeExperiment]);
127
- var showRovoSectionHeader = isInlineActionNudgeExperiment && isRovoChatActionAvailable;
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]);
128
120
  if (!actions) {
129
121
  return null;
130
122
  }
131
- if (isInlineActionNudgeExperiment && isRovoChatActionAvailable) {
132
- return /*#__PURE__*/React.createElement("div", {
133
- ref: blockRef,
134
- "data-testid": testId,
135
- className: (0, _runtime.ax)(["_1e0c1txw _2lx21bp4 _vchhusvi _1bsb1osq"])
136
- }, showRovoSectionHeader && /*#__PURE__*/React.createElement(_askRovoSectionHeader.default, {
137
- testId: testId ? "".concat(testId, "-rovo-section-header") : undefined
138
- }), /*#__PURE__*/React.createElement("div", {
139
- className: (0, _runtime.ax)(["_zulpu2gc _1e0c11p5 _yv0e1ris"])
140
- }, actions), /*#__PURE__*/React.createElement(_actionFooter.ActionFooter, {
141
- message: message,
142
- testId: testId
143
- }));
144
- }
145
123
  return /*#__PURE__*/React.createElement("div", {
146
124
  ref: blockRef,
147
125
  "data-testid": testId
@@ -10,7 +10,6 @@
10
10
  ._18u01ivi{margin-left:calc(var(--container-gap-left)*-1)}
11
11
  ._18u01wug{margin-left:auto}
12
12
  ._19p4ze3t *{padding-right:var(--ds-space-0,0)}
13
- ._19pkutpp{margin-top:var(--ds-space-150,9pt)}
14
13
  ._1bah1y6m{justify-content:flex-start}
15
14
  ._1bsb129b{width:calc(100% + var(--container-gap-left) + var(--container-gap-right))}
16
15
  ._1e0c1txw{display:flex}
@@ -13,8 +13,6 @@ var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
15
15
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
18
16
  var _constants = require("../../../../../constants");
19
17
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
20
18
  var Actions = _interopRequireWildcard(require("../../actions"));
@@ -28,7 +26,6 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
28
26
  */
29
27
  var HIDDEN_HOVER_CARD_FOOTER_ACTIONS = [_constants.ActionName.RovoChatAction];
30
28
  var ignoreContainerMarginStyles = null;
31
- var inlineActionNudgeFooterMarginStyles = null;
32
29
  var elevatedFooterStyles = null;
33
30
  var providerStyles = null;
34
31
  var actionsStyles = null;
@@ -74,7 +71,7 @@ var ResolvedHoverCardFooterBlock = function ResolvedHoverCardFooterBlock(_ref) {
74
71
  return /*#__PURE__*/React.createElement(_block.default, (0, _extends2.default)({}, props, {
75
72
  size: size,
76
73
  testId: "".concat(testId, "-resolved-view"),
77
- className: (0, _runtime.ax)(["_18zrpxbi _1rjcutpp _vchhusvi _1bsb129b _18u01ivi _2hwxc10g _otyr1ya9 _4t3ioahv", "_zulpu2gc _x3doj0fz _bfhkhfxm _mrkb1mok _1o0z1mok", (0, _platformFeatureFlags.fg)('rovogrowth-640-inline-action-nudge-fg') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) && "_19pkutpp"])
74
+ className: (0, _runtime.ax)(["_18zrpxbi _1rjcutpp _vchhusvi _1bsb129b _18u01ivi _2hwxc10g _otyr1ya9 _4t3ioahv", "_zulpu2gc _x3doj0fz _bfhkhfxm _mrkb1mok _1o0z1mok"])
78
75
  }), !hideProvider && /*#__PURE__*/React.createElement("div", {
79
76
  className: (0, _runtime.ax)(["_4t3i1ejb _1e0c1txw _4cvr1h6o _1bah1y6m _vchhusvi _16jlkb7n"])
80
77
  }, /*#__PURE__*/React.createElement(_elements.Provider, {
@@ -52,42 +52,40 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
52
52
  _ref$size = _ref.size,
53
53
  size = _ref$size === void 0 ? _constants.SmartLinkSize.Medium : _ref$size,
54
54
  isTiledIcon = _ref.isTiledIcon;
55
- if (!(0, _platformFeatureFlags.fg)('platform_sl_icons_refactor')) {
56
- // Check for synchronously loaded icons first for SSR purposes.
57
- // Require these icons only inside this branch to avoid evaluating legacy icon
58
- // wrapper modules when the icon refactor is enabled.
59
- switch (icon) {
60
- case _constants.IconType.Document:
61
- {
62
- var DocumentIcon = getDocumentIcon();
63
- return /*#__PURE__*/_react.default.createElement(DocumentIcon, {
64
- label: label !== null && label !== void 0 ? label : 'document',
65
- testId: testId,
66
- size: size,
67
- isTiledIcon: isTiledIcon
68
- });
69
- }
70
- case _constants.IconType.Blog:
71
- {
72
- var BlogIcon = getBlogIcon();
73
- return /*#__PURE__*/_react.default.createElement(BlogIcon, {
74
- label: label !== null && label !== void 0 ? label : 'blog',
75
- testId: testId,
76
- size: size,
77
- isTiledIcon: isTiledIcon
78
- });
79
- }
80
- case _constants.IconType.LiveDocument:
81
- {
82
- var LiveDocumentIcon = getLiveDocumentIcon();
83
- return /*#__PURE__*/_react.default.createElement(LiveDocumentIcon, {
84
- label: label !== null && label !== void 0 ? label : 'live-doc',
85
- testId: testId,
86
- size: size,
87
- isTiledIcon: isTiledIcon
88
- });
89
- }
90
- }
55
+ // Intentionally keep these three icon types synchronous and outside lazy imports.
56
+ // These icons should be present in SSR markup so hydration does not cause a
57
+ // visible empty-state-then-pop-in transition in Smart Link consumers.
58
+ switch (icon) {
59
+ case _constants.IconType.Document:
60
+ {
61
+ var DocumentIcon = getDocumentIcon();
62
+ return /*#__PURE__*/_react.default.createElement(DocumentIcon, {
63
+ label: label !== null && label !== void 0 ? label : 'document',
64
+ testId: testId,
65
+ size: size,
66
+ isTiledIcon: isTiledIcon
67
+ });
68
+ }
69
+ case _constants.IconType.Blog:
70
+ {
71
+ var BlogIcon = getBlogIcon();
72
+ return /*#__PURE__*/_react.default.createElement(BlogIcon, {
73
+ label: label !== null && label !== void 0 ? label : 'blog',
74
+ testId: testId,
75
+ size: size,
76
+ isTiledIcon: isTiledIcon
77
+ });
78
+ }
79
+ case _constants.IconType.LiveDocument:
80
+ {
81
+ var LiveDocumentIcon = getLiveDocumentIcon();
82
+ return /*#__PURE__*/_react.default.createElement(LiveDocumentIcon, {
83
+ label: label !== null && label !== void 0 ? label : 'live-doc',
84
+ testId: testId,
85
+ size: size,
86
+ isTiledIcon: isTiledIcon
87
+ });
88
+ }
91
89
  }
92
90
  var importFn = getIconImportFn(icon, size);
93
91
  if (!importFn) {
@@ -60,7 +60,7 @@ var FlexibleCard = function FlexibleCard(_ref) {
60
60
  isPreviewPanelAvailable = _useSmartLinkContext.isPreviewPanelAvailable,
61
61
  openPreviewPanel = _useSmartLinkContext.openPreviewPanel,
62
62
  product = _useSmartLinkContext.product;
63
- var rovoConfig = (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('rovogrowth-640-inline-action-nudge-fg') ?
63
+ var rovoConfig = (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ?
64
64
  // eslint-disable-next-line react-hooks/rules-of-hooks
65
65
  (0, _useRovoConfig.default)() : undefined;
66
66
  var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
@@ -89,7 +89,7 @@ var FlexibleCard = function FlexibleCard(_ref) {
89
89
  origin: origin,
90
90
  renderers: renderers,
91
91
  resolve: resolve
92
- }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('rovogrowth-640-inline-action-nudge-fg') ? {
92
+ }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? {
93
93
  product: product,
94
94
  rovoConfig: rovoConfig
95
95
  } : undefined), {}, {
@@ -19,7 +19,6 @@ var _useAnalyticsEvents2 = require("../../../common/analytics/generated/use-anal
19
19
  var _constants = require("../../../constants");
20
20
  var _extractRovoChatAction = _interopRequireDefault(require("../../../extractors/flexible/actions/extract-rovo-chat-action"));
21
21
  var _helpers = require("../../../state/helpers");
22
- var _useInlineActionNudgeExperiment = _interopRequireDefault(require("../../../state/hooks/use-inline-action-nudge-experiment"));
23
22
  var _useRovoConfig2 = _interopRequireDefault(require("../../../state/hooks/use-rovo-config"));
24
23
  var _store = require("../../../state/store");
25
24
  var _utils = require("../../../utils");
@@ -245,9 +244,8 @@ var HoverCardContent = function HoverCardContent(_ref4) {
245
244
  flexibleCardProps: flexibleCardProps
246
245
  });
247
246
  }
248
- var is3PInlinePostAuthActionsEnabled = (0, _platformFeatureFlags.fg)('rovogrowth-640-inline-action-nudge-fg') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true);
249
247
  if (isResolved) {
250
- return /*#__PURE__*/_react.default.createElement(_resolved.default, (0, _extends2.default)({}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || is3PInlinePostAuthActionsEnabled ? {
248
+ return /*#__PURE__*/_react.default.createElement(_resolved.default, (0, _extends2.default)({}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? {
251
249
  actionOptions: actionOptions,
252
250
  showRovoResolvedView: showRovoResolvedView
253
251
  } : undefined, {
@@ -298,9 +296,8 @@ var HoverCardContent = function HoverCardContent(_ref4) {
298
296
  flexibleCardProps: flexibleCardProps
299
297
  });
300
298
  }
301
- var is3PInlinePostAuthActionsEnabled = (0, _platformFeatureFlags.fg)('rovogrowth-640-inline-action-nudge-fg') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true);
302
299
  if (cardState.status === 'resolved') {
303
- return /*#__PURE__*/_react.default.createElement(_resolved.default, (0, _extends2.default)({}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || is3PInlinePostAuthActionsEnabled ? {
300
+ return /*#__PURE__*/_react.default.createElement(_resolved.default, (0, _extends2.default)({}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? {
304
301
  actionOptions: actionOptions,
305
302
  showRovoResolvedView: showRovoResolvedView
306
303
  } : undefined, {
@@ -326,8 +323,7 @@ var HoverCardContent = function HoverCardContent(_ref4) {
326
323
  };
327
324
  var HoverCardContentWithViewVariant = function HoverCardContentWithViewVariant(props) {
328
325
  var cardState = props.cardState,
329
- actionOptions = props.actionOptions,
330
- url = props.url;
326
+ actionOptions = props.actionOptions;
331
327
  var rovoConfig = (0, _useRovoConfig2.default)();
332
328
  var isResolved = useIsResolvedView(props);
333
329
  var showPreauthBetterHovercard = useIsShowPreauthBetterHovercard(props);
@@ -338,22 +334,19 @@ var HoverCardContentWithViewVariant = function HoverCardContentWithViewVariant(p
338
334
  actionOptions: actionOptions
339
335
  }) !== undefined;
340
336
  }, [actionOptions, cardState.details, rovoConfig, isResolved]);
341
- var _useInlineActionNudge = (0, _useInlineActionNudgeExperiment.default)(url, true, actionOptions),
342
- rovoActionsCtaShown = _useInlineActionNudge.isEnabled;
343
337
  var data = (0, _react.useMemo)(function () {
344
338
  var viewVariant = 'default';
345
- if (showRovoResolvedView && ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_sl_3p_auth_rovo_action', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true))) {
339
+ if (showRovoResolvedView && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_sl_3p_auth_rovo_action', 'isEnabled', true)) {
346
340
  viewVariant = 'rovo-resolved-view';
347
341
  } else if (showPreauthBetterHovercard) {
348
342
  viewVariant = 'rovo-unauthorised-view';
349
343
  }
350
344
  return {
351
345
  attributes: {
352
- viewVariant: viewVariant,
353
- rovoActionsCtaShown: rovoActionsCtaShown
346
+ viewVariant: viewVariant
354
347
  }
355
348
  };
356
- }, [showRovoResolvedView, showPreauthBetterHovercard, rovoActionsCtaShown]);
349
+ }, [showRovoResolvedView, showPreauthBetterHovercard]);
357
350
  return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
358
351
  data: data
359
352
  }, /*#__PURE__*/_react.default.createElement(HoverCardContent, (0, _extends2.default)({}, props, {
@@ -364,7 +357,6 @@ var _default_1 = (0, _platformFeatureFlagsReact.componentWithCondition)(function
364
357
  // We need to read both of them to sutisfy some of the tests that expect both to be checked.
365
358
  var flagA = (0, _platformFeatureFlags.fg)('platform_sl_3p_preauth_better_hovercard_killswitch');
366
359
  var flagB = (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch');
367
- var flagC = (0, _platformFeatureFlags.fg)('rovogrowth-640-inline-action-nudge-fg');
368
- return flagA || flagB || flagC;
360
+ return flagA || flagB;
369
361
  }, HoverCardContentWithViewVariant, HoverCardContent);
370
362
  var _default = exports.default = _default_1;
@@ -17,7 +17,6 @@ var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/us
17
17
  var _constants = require("../../../../../constants");
18
18
  var _analytics = require("../../../../../state/analytics");
19
19
  var _useAiSummaryAction = _interopRequireDefault(require("../../../../../state/hooks/use-ai-summary-action"));
20
- var _useInlineActionNudgeExperiment = _interopRequireDefault(require("../../../../../state/hooks/use-inline-action-nudge-experiment"));
21
20
  var _FlexibleCard = _interopRequireDefault(require("../../../../FlexibleCard"));
22
21
  var _blocks = require("../../../../FlexibleCard/components/blocks");
23
22
  var _utils = require("../../../utils");
@@ -29,8 +28,7 @@ var snippetBlockCss = null;
29
28
  var actionBlockCss = null;
30
29
  var HoverCardResolvedView = function HoverCardResolvedView(_ref) {
31
30
  var _cardState$details;
32
- var actionOptions = _ref.actionOptions,
33
- cardState = _ref.cardState,
31
+ var cardState = _ref.cardState,
34
32
  extensionKey = _ref.extensionKey,
35
33
  flexibleCardProps = _ref.flexibleCardProps,
36
34
  isAISummaryEnabled = _ref.isAISummaryEnabled,
@@ -40,14 +38,9 @@ var HoverCardResolvedView = function HoverCardResolvedView(_ref) {
40
38
  id = _ref.id;
41
39
  var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
42
40
  fireEvent = _useAnalyticsEvents.fireEvent;
43
- var _useInlineActionNudge = (0, _useInlineActionNudgeExperiment.default)(flexibleCardProps.url, true, actionOptions),
44
- InlineActionNudgeExperimentValue = _useInlineActionNudge.isEnabled;
45
-
46
41
  // We want to fire exposure event only for those cases when user otherwise can see the experiment which would be controlled
47
42
  // by all the other condition defined above as a result of what was defined in actionOptions as well as in CardContext.
48
43
  var is3PAuthRovoActionsExperimentOn = showRovoResolvedView && (0, _expValEquals.expValEquals)('platform_sl_3p_auth_rovo_action', 'isEnabled', true);
49
- var is3PInlinePostAuthActionsExperimentOn = showRovoResolvedView && InlineActionNudgeExperimentValue;
50
- var isAny3pRovoActionsExperimentOn = is3PAuthRovoActionsExperimentOn || is3PInlinePostAuthActionsExperimentOn;
51
44
  (0, _react.useEffect)(function () {
52
45
  // Since this hover view is only rendered on resolved status,
53
46
  // there is no need to check for statuses.
@@ -95,7 +88,7 @@ var HoverCardResolvedView = function HoverCardResolvedView(_ref) {
95
88
  }), isAISummaryEnabled ? /*#__PURE__*/_react.default.createElement(_blocks.AISummaryBlock, {
96
89
  aiSummaryMinHeight: aiSummaryMinHeight,
97
90
  placeholder: snippet,
98
- isAny3pRovoActionsExperimentOn: isAny3pRovoActionsExperimentOn
91
+ isAny3pRovoActionsExperimentOn: is3PAuthRovoActionsExperimentOn
99
92
  }) : snippet, /*#__PURE__*/_react.default.createElement(_blocks.SnippetBlock, {
100
93
  testId: "hidden-snippet",
101
94
  onRender: onSnippetRender,
@@ -105,9 +98,9 @@ var HoverCardResolvedView = function HoverCardResolvedView(_ref) {
105
98
  }), /*#__PURE__*/_react.default.createElement(_blocks.ActionBlock, {
106
99
  onClick: onActionClick,
107
100
  spaceInline: "space.100",
108
- isAny3pRovoActionsExperimentOn: isAny3pRovoActionsExperimentOn,
101
+ isAny3pRovoActionsExperimentOn: is3PAuthRovoActionsExperimentOn,
109
102
  className: (0, _runtime.ax)(["_n3td1b66"])
110
- }), isAny3pRovoActionsExperimentOn ? /*#__PURE__*/_react.default.createElement(_blocks.ResolvedHoverCardFooterBlock, {
103
+ }), is3PAuthRovoActionsExperimentOn ? /*#__PURE__*/_react.default.createElement(_blocks.ResolvedHoverCardFooterBlock, {
111
104
  onActionClick: onActionClick
112
105
  }) : /*#__PURE__*/_react.default.createElement(_blocks.AIFooterBlock, null));
113
106
  };
@@ -8,9 +8,7 @@ exports.InlineCardResolvedViewBase = InlineCardResolvedViewBase;
8
8
  exports.InlineCardResolvedViewFunctional = void 0;
9
9
  exports.InlineCardResolvedViewFunctionalWithRovoActions = InlineCardResolvedViewFunctionalWithRovoActions;
10
10
  var _react = _interopRequireDefault(require("react"));
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
13
- var _useInlineActionNudgeExperiment = _interopRequireDefault(require("../../../state/hooks/use-inline-action-nudge-experiment"));
14
12
  var _useInlineTailoredActionExperiment = _interopRequireDefault(require("../../../state/hooks/use-inline-tailored-action-experiment"));
15
13
  var _HoverCard = require("../../HoverCard");
16
14
  var _rovoActionsCta = require("../common/rovo-actions-cta");
@@ -90,8 +88,6 @@ function InlineCardResolvedViewFunctionalWithRovoActions(_ref2) {
90
88
  type = _ref2.type,
91
89
  hideIconLoadingSkeleton = _ref2.hideIconLoadingSkeleton,
92
90
  lozenge = _ref2.lozenge;
93
- var _useInlineActionNudge = (0, _useInlineActionNudgeExperiment.default)(link, showHoverPreview, actionOptions),
94
- isEnabled = _useInlineActionNudge.isEnabled;
95
91
  var _useInlineTailoredAct = (0, _useInlineTailoredActionExperiment.default)(link, showHoverPreview, actionOptions),
96
92
  isInlineTailoredRovoActionEnabled = _useInlineTailoredAct.isEnabled;
97
93
 
@@ -112,9 +108,7 @@ function InlineCardResolvedViewFunctionalWithRovoActions(_ref2) {
112
108
  titleTextColor: titleTextColor,
113
109
  type: type,
114
110
  hideIconLoadingSkeleton: hideIconLoadingSkeleton
115
- }), (0, _renderLozenge.renderLozenge)(lozenge), isEnabled && !(0, _platformFeatureFlags.fg)('platform_sl_3p_auth_inline_tailored_cta_killswitch') && /*#__PURE__*/_react.default.createElement(_rovoActionsCta.RovoActionsCta, {
116
- testId: "".concat(testId, "-rovo-actions-cta")
117
- }), isInlineTailoredRovoActionEnabled && /*#__PURE__*/_react.default.createElement(_rovoActionsCta.InlineRovoActionButton, {
111
+ }), (0, _renderLozenge.renderLozenge)(lozenge), isInlineTailoredRovoActionEnabled && /*#__PURE__*/_react.default.createElement(_rovoActionsCta.InlineRovoActionButton, {
118
112
  testId: "".concat(testId, "-rovo-actions-cta"),
119
113
  url: link
120
114
  }));
@@ -130,4 +124,4 @@ function InlineCardResolvedViewFunctionalWithRovoActions(_ref2) {
130
124
  }
131
125
 
132
126
  // Todo: replace with platform_sl_3p_auth_inline_tailored_cta_killswitch after cleanup of rovogrowth-640-inline-action-nudge-fg
133
- var InlineCardResolvedViewFunctional = exports.InlineCardResolvedViewFunctional = (0, _platformFeatureFlagsReact.componentWithFG)('rovogrowth-640-inline-action-nudge-fg', InlineCardResolvedViewFunctionalWithRovoActions, InlineCardResolvedViewBase);
127
+ var InlineCardResolvedViewFunctional = exports.InlineCardResolvedViewFunctional = (0, _platformFeatureFlagsReact.componentWithFG)('platform_sl_3p_auth_inline_tailored_cta_killswitch', InlineCardResolvedViewFunctionalWithRovoActions, InlineCardResolvedViewBase);
@@ -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: "44.22.0",
22
+ packageVersion: "44.23.1",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var LinkUrl = function LinkUrl(_ref) {
@@ -37,9 +37,7 @@ var AISummary = function AISummary(_ref) {
37
37
  }
38
38
  var is3pExperimentEnabled =
39
39
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
40
- (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_sl_3p_auth_rovo_action', 'isEnabled', true) ||
41
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
42
- (0, _platformFeatureFlags.fg)('rovogrowth-640-inline-action-nudge-fg') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true);
40
+ (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_sl_3p_auth_rovo_action', 'isEnabled', true);
43
41
  return /*#__PURE__*/React.createElement(_markdownToJsx.default, {
44
42
  "data-testid": testId
45
43
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d750a5131240af4f7d635606bfe3b2d20b734bd64e7ba8b3ced70d4fc666f41b
3
- size 22011
2
+ oid sha256:e4e629c90112ffa47189f9d7084394fcd9a217bf624a1b05b5adb76909268c96
3
+ size 22340
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:94d62ea32479515465c359fbb0e4c962187bae2f87a37231f9de61788071fec6
3
- size 36260
2
+ oid sha256:9d850871e06f9ed1baa276db443eb1747b92e8d5576bbe2af83f7978ddff4652
3
+ size 36435
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50433f24128ad6e18a181d60518032958c425fd34de2d4547c224f58921c113b
3
+ size 27533
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5dd0715aa5a28d5dc0263fc187627914219ace1c9cf49a379e2d207b5e622d15
3
- size 218534
2
+ oid sha256:889ac946e251a99b4da6d9a75cab61cdd97a1649ead5018faa97d6e9a180e9f0
3
+ size 218408
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5dd0715aa5a28d5dc0263fc187627914219ace1c9cf49a379e2d207b5e622d15
3
- size 218534
2
+ oid sha256:889ac946e251a99b4da6d9a75cab61cdd97a1649ead5018faa97d6e9a180e9f0
3
+ size 218408
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5c8db1939f2c20b398ba8513683b382e45bd1fdd49be7c2c9b265f45b7a157af
3
- size 218745
2
+ oid sha256:d3d9be35e64429a385cfdbfb97e6acf1c220377632d238d33bf9fa42bfa03155
3
+ size 218616
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5c8db1939f2c20b398ba8513683b382e45bd1fdd49be7c2c9b265f45b7a157af
3
- size 218745
2
+ oid sha256:d3d9be35e64429a385cfdbfb97e6acf1c220377632d238d33bf9fa42bfa03155
3
+ size 218616