@atlaskit/smart-card 44.5.3 → 44.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
- package/dist/cjs/state/hooks/use-inline-action-nudge-experiment/index.js +1 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/index.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +3 -2
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +3 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
- package/dist/es2019/state/hooks/use-inline-action-nudge-experiment/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/actions/follow-action/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +3 -2
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +3 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-with-generic-3p-rovo-chat-action--default.png +2 -2
- package/dist/esm/state/hooks/use-inline-action-nudge-experiment/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +2 -1
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +2 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/actions/follow-action/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +3 -2
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +3 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 44.5.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`11098f502031c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/11098f502031c) -
|
|
8
|
+
Add 640 fg to other action items, and dont render CTA if extensionKey not resolved yet
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 44.5.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:e63d3c35774daccaacc495cc9a2503295cafb8af706ebd5af4f3f76947abe2a3
|
|
3
|
+
size 36763
|
|
@@ -42,7 +42,7 @@ var useInlineActionNudgeExperiment = function useInlineActionNudgeExperiment(url
|
|
|
42
42
|
if (!isRovoChatEnabled || !showHoverPreview || !url || !isRovoChatActionOptedIn) {
|
|
43
43
|
return NOT_ENABLED_RESULT;
|
|
44
44
|
}
|
|
45
|
-
if (extensionKey
|
|
45
|
+
if (!extensionKey || !ELIGIBLE_EXTENSION_KEYS.has(extensionKey)) {
|
|
46
46
|
return NOT_ENABLED_RESULT;
|
|
47
47
|
}
|
|
48
48
|
var isEnabled = (0, _expValEquals.expValEquals)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true);
|
|
@@ -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: "44.5.
|
|
14
|
+
packageVersion: "44.5.3" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -83,7 +83,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
83
83
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
84
84
|
,
|
|
85
85
|
style: style
|
|
86
|
-
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
86
|
+
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
87
87
|
'aria-label': ariaLabel
|
|
88
88
|
} : {}), /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
89
89
|
alignBlock: "center",
|
package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js
CHANGED
|
@@ -12,6 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _reactIntl = require("react-intl");
|
|
13
13
|
var _atlassianIntelligence = _interopRequireDefault(require("@atlaskit/icon/core/atlassian-intelligence"));
|
|
14
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
15
16
|
var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
|
|
16
17
|
var _messages = require("../../../../../messages");
|
|
17
18
|
var _action = _interopRequireDefault(require("../action"));
|
|
@@ -49,7 +50,7 @@ function AISummariseAction(_ref) {
|
|
|
49
50
|
spacing: "spacious",
|
|
50
51
|
color: "currentColor",
|
|
51
52
|
label: "Summarise with AI"
|
|
52
|
-
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
53
|
+
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
53
54
|
size: props.iconSize
|
|
54
55
|
} : {})),
|
|
55
56
|
onClick: handleActionClick,
|
|
@@ -10,6 +10,7 @@ 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");
|
|
13
14
|
var _useAiSummaryAction = _interopRequireDefault(require("../../../../../state/hooks/use-ai-summary-action"));
|
|
14
15
|
var _aiSummariseAction = require("./ai-summarise-action");
|
|
15
16
|
var _copySummaryAction = require("./copy-summary-action");
|
|
@@ -27,7 +28,7 @@ var AISummaryActionComponent = exports.AISummaryActionComponent = function AISum
|
|
|
27
28
|
(0, _react.useEffect)(function () {
|
|
28
29
|
onLoadingChange === null || onLoadingChange === void 0 || onLoadingChange(status === 'loading');
|
|
29
30
|
}, [onLoadingChange, status]);
|
|
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, {
|
|
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, {
|
|
31
32
|
summary: content,
|
|
32
33
|
testId: testId
|
|
33
34
|
})) : /*#__PURE__*/_react.default.createElement(_copySummaryAction.CopySummaryAction, (0, _extends2.default)({}, props, {
|
|
@@ -12,6 +12,7 @@ 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");
|
|
15
16
|
var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
|
|
16
17
|
var _constants = require("../../../../../constants");
|
|
17
18
|
var _messages = require("../../../../../messages");
|
|
@@ -86,7 +87,7 @@ var AutomationAction = function AutomationAction(props) {
|
|
|
86
87
|
spacing: "spacious",
|
|
87
88
|
color: "currentColor",
|
|
88
89
|
label: automationActionIconLabel
|
|
89
|
-
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
90
|
+
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
90
91
|
size: props.iconSize
|
|
91
92
|
} : {})),
|
|
92
93
|
testId: "smart-action-automation-action",
|
|
@@ -16,6 +16,7 @@ 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");
|
|
19
20
|
var _constants = require("../../../../../constants");
|
|
20
21
|
var _messages = require("../../../../../messages");
|
|
21
22
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
@@ -70,7 +71,7 @@ var CopyLinkAction = function CopyLinkAction(_ref) {
|
|
|
70
71
|
color: "currentColor",
|
|
71
72
|
label: (0, _platformFeatureFlags.fg)('navx-3698-flexible-card-a11y-fix') ? '' : 'copy url',
|
|
72
73
|
spacing: "spacious"
|
|
73
|
-
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
74
|
+
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
74
75
|
size: props.iconSize
|
|
75
76
|
} : {})),
|
|
76
77
|
onClick: onClick,
|
|
@@ -12,6 +12,7 @@ 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");
|
|
15
16
|
var _constants = require("../../../../../constants");
|
|
16
17
|
var _messages = require("../../../../../messages");
|
|
17
18
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
@@ -86,7 +87,7 @@ var FollowAction = function FollowAction(props) {
|
|
|
86
87
|
};
|
|
87
88
|
return /*#__PURE__*/_react.default.createElement(_serverAction.default, (0, _extends2.default)({
|
|
88
89
|
content: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, label)
|
|
89
|
-
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
90
|
+
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
90
91
|
ariaLabel: intl.formatMessage(label)
|
|
91
92
|
} : {}, {
|
|
92
93
|
icon: followIcon,
|
|
@@ -14,6 +14,7 @@ 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");
|
|
17
18
|
var _constants = require("../../../../../constants");
|
|
18
19
|
var _messages = require("../../../../../messages");
|
|
19
20
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
@@ -44,7 +45,7 @@ var PreviewAction = function PreviewAction(_ref) {
|
|
|
44
45
|
color: "currentColor",
|
|
45
46
|
spacing: "spacious",
|
|
46
47
|
label: (0, _platformFeatureFlags.fg)('navx-3698-flexible-card-a11y-fix') ? '' : 'Open preview panel'
|
|
47
|
-
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
48
|
+
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
48
49
|
size: props.iconSize
|
|
49
50
|
} : {}));
|
|
50
51
|
}
|
|
@@ -52,7 +53,7 @@ var PreviewAction = function PreviewAction(_ref) {
|
|
|
52
53
|
color: "currentColor",
|
|
53
54
|
spacing: "spacious",
|
|
54
55
|
label: (0, _platformFeatureFlags.fg)('navx-3698-flexible-card-a11y-fix') ? '' : 'Open preview'
|
|
55
|
-
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
56
|
+
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
56
57
|
size: props.iconSize
|
|
57
58
|
} : {}));
|
|
58
59
|
}, [hasPreviewPanel, props.iconSize]);
|
|
@@ -11,6 +11,7 @@ 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");
|
|
14
15
|
var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
|
|
15
16
|
var _messages = require("../../../../../messages");
|
|
16
17
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
@@ -49,10 +50,10 @@ var ViewRelatedLinksAction = function ViewRelatedLinksAction(_ref) {
|
|
|
49
50
|
}, [actionData === null || actionData === void 0 ? void 0 : actionData.ari, fireEvent, modal, onClickCallback]);
|
|
50
51
|
return actionData ? /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
|
|
51
52
|
content: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.messages.related_links_view_related_links)
|
|
52
|
-
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
53
|
+
}, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
53
54
|
tooltipMessage: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.messages.related_links_view_related_links)
|
|
54
55
|
} : {}, {
|
|
55
|
-
icon: /*#__PURE__*/_react.default.createElement(_relatedLinksActionIcon.default, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
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) ? {
|
|
56
57
|
iconSize: props.iconSize
|
|
57
58
|
} : {}),
|
|
58
59
|
onClick: onClick,
|
|
@@ -22,7 +22,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
22
22
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
23
23
|
var PACKAGE_DATA = {
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "44.5.
|
|
25
|
+
packageVersion: "44.5.3",
|
|
26
26
|
componentName: 'linkUrl'
|
|
27
27
|
};
|
|
28
28
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:e63d3c35774daccaacc495cc9a2503295cafb8af706ebd5af4f3f76947abe2a3
|
|
3
|
+
size 36763
|
|
@@ -36,7 +36,7 @@ const useInlineActionNudgeExperiment = (url, showHoverPreview, actionOptions) =>
|
|
|
36
36
|
if (!isRovoChatEnabled || !showHoverPreview || !url || !isRovoChatActionOptedIn) {
|
|
37
37
|
return NOT_ENABLED_RESULT;
|
|
38
38
|
}
|
|
39
|
-
if (extensionKey
|
|
39
|
+
if (!extensionKey || !ELIGIBLE_EXTENSION_KEYS.has(extensionKey)) {
|
|
40
40
|
return NOT_ENABLED_RESULT;
|
|
41
41
|
}
|
|
42
42
|
const isEnabled = expValEquals('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true);
|
|
@@ -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: "44.5.
|
|
5
|
+
packageVersion: "44.5.3" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -75,7 +75,7 @@ const ActionButton = ({
|
|
|
75
75
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
76
76
|
,
|
|
77
77
|
style: style
|
|
78
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
78
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
79
79
|
'aria-label': ariaLabel
|
|
80
80
|
} : {}), /*#__PURE__*/React.createElement(Inline, {
|
|
81
81
|
alignBlock: "center",
|
package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js
CHANGED
|
@@ -3,6 +3,7 @@ import React, { useCallback } from 'react';
|
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
4
|
import AiIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
6
7
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
7
8
|
import { messages } from '../../../../../messages';
|
|
8
9
|
import Action from '../action';
|
|
@@ -40,7 +41,7 @@ export function AISummariseAction({
|
|
|
40
41
|
spacing: "spacious",
|
|
41
42
|
color: "currentColor",
|
|
42
43
|
label: "Summarise with AI"
|
|
43
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
44
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
44
45
|
size: props.iconSize
|
|
45
46
|
} : {})),
|
|
46
47
|
onClick: handleActionClick,
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { di } from 'react-magnetic-di';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
5
6
|
import useAISummaryAction from '../../../../../state/hooks/use-ai-summary-action';
|
|
6
7
|
import { AISummariseAction } from './ai-summarise-action';
|
|
7
8
|
import { CopySummaryAction, CopySummaryActionNew } from './copy-summary-action';
|
|
@@ -21,7 +22,7 @@ export const AISummaryActionComponent = props => {
|
|
|
21
22
|
useEffect(() => {
|
|
22
23
|
onLoadingChange === null || onLoadingChange === void 0 ? void 0 : onLoadingChange(status === 'loading');
|
|
23
24
|
}, [onLoadingChange, status]);
|
|
24
|
-
return status === 'done' ? fg('platform_sl_3p_auth_rovo_action_kill_switch') ? /*#__PURE__*/React.createElement(CopySummaryActionNew, _extends({}, props, {
|
|
25
|
+
return status === 'done' ? fg('platform_sl_3p_auth_rovo_action_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? /*#__PURE__*/React.createElement(CopySummaryActionNew, _extends({}, props, {
|
|
25
26
|
summary: content,
|
|
26
27
|
testId: testId
|
|
27
28
|
})) : /*#__PURE__*/React.createElement(CopySummaryAction, _extends({}, props, {
|
|
@@ -4,6 +4,7 @@ import { FormattedMessage, useIntl } from 'react-intl';
|
|
|
4
4
|
import AutomationIcon from '@atlaskit/icon/core/automation';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
6
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
7
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
7
8
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
8
9
|
import { ActionName } from '../../../../../constants';
|
|
9
10
|
import { messages } from '../../../../../messages';
|
|
@@ -76,7 +77,7 @@ const AutomationAction = props => {
|
|
|
76
77
|
spacing: "spacious",
|
|
77
78
|
color: "currentColor",
|
|
78
79
|
label: automationActionIconLabel
|
|
79
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
80
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
80
81
|
size: props.iconSize
|
|
81
82
|
} : {})),
|
|
82
83
|
testId: "smart-action-automation-action",
|
|
@@ -3,6 +3,7 @@ import React, { useCallback, useState } from 'react';
|
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
4
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
6
7
|
import { ActionName } from '../../../../../constants';
|
|
7
8
|
import { messages } from '../../../../../messages';
|
|
8
9
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -36,7 +37,7 @@ const CopyLinkAction = ({
|
|
|
36
37
|
color: "currentColor",
|
|
37
38
|
label: fg('navx-3698-flexible-card-a11y-fix') ? '' : 'copy url',
|
|
38
39
|
spacing: "spacious"
|
|
39
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
40
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
40
41
|
size: props.iconSize
|
|
41
42
|
} : {})),
|
|
42
43
|
onClick: onClick,
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
6
7
|
import { ActionName } from '../../../../../constants';
|
|
7
8
|
import { messages } from '../../../../../messages';
|
|
8
9
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -69,7 +70,7 @@ const FollowAction = props => {
|
|
|
69
70
|
};
|
|
70
71
|
return /*#__PURE__*/React.createElement(ServerAction, _extends({
|
|
71
72
|
content: /*#__PURE__*/React.createElement(FormattedMessage, label)
|
|
72
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
73
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
73
74
|
ariaLabel: intl.formatMessage(label)
|
|
74
75
|
} : {}, {
|
|
75
76
|
icon: followIcon,
|
|
@@ -5,6 +5,7 @@ import MediaServicesActualSizeIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
|
5
5
|
import PanelRightIcon from '@atlaskit/icon/core/panel-right';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
8
9
|
import { ActionName } from '../../../../../constants';
|
|
9
10
|
import { messages } from '../../../../../messages';
|
|
10
11
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -34,7 +35,7 @@ const PreviewAction = ({
|
|
|
34
35
|
color: "currentColor",
|
|
35
36
|
spacing: "spacious",
|
|
36
37
|
label: fg('navx-3698-flexible-card-a11y-fix') ? '' : 'Open preview panel'
|
|
37
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
38
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
38
39
|
size: props.iconSize
|
|
39
40
|
} : {}));
|
|
40
41
|
}
|
|
@@ -42,7 +43,7 @@ const PreviewAction = ({
|
|
|
42
43
|
color: "currentColor",
|
|
43
44
|
spacing: "spacious",
|
|
44
45
|
label: fg('navx-3698-flexible-card-a11y-fix') ? '' : 'Open preview'
|
|
45
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
46
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
46
47
|
size: props.iconSize
|
|
47
48
|
} : {}));
|
|
48
49
|
}, [hasPreviewPanel, props.iconSize]);
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { lazy, useCallback } from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
5
6
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
6
7
|
import { messages } from '../../../../../messages';
|
|
7
8
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -34,10 +35,10 @@ const ViewRelatedLinksAction = ({
|
|
|
34
35
|
}, [actionData === null || actionData === void 0 ? void 0 : actionData.ari, fireEvent, modal, onClickCallback]);
|
|
35
36
|
return actionData ? /*#__PURE__*/React.createElement(Action, _extends({
|
|
36
37
|
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_view_related_links)
|
|
37
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
38
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
38
39
|
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_view_related_links)
|
|
39
40
|
} : {}, {
|
|
40
|
-
icon: /*#__PURE__*/React.createElement(RelatedLinksActionIcon, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
41
|
+
icon: /*#__PURE__*/React.createElement(RelatedLinksActionIcon, fg('platform_sl_3p_auth_rovo_action_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
41
42
|
iconSize: props.iconSize
|
|
42
43
|
} : {}),
|
|
43
44
|
onClick: onClick,
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
const PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "44.5.
|
|
15
|
+
packageVersion: "44.5.3",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:e63d3c35774daccaacc495cc9a2503295cafb8af706ebd5af4f3f76947abe2a3
|
|
3
|
+
size 36763
|
|
@@ -35,7 +35,7 @@ var useInlineActionNudgeExperiment = function useInlineActionNudgeExperiment(url
|
|
|
35
35
|
if (!isRovoChatEnabled || !showHoverPreview || !url || !isRovoChatActionOptedIn) {
|
|
36
36
|
return NOT_ENABLED_RESULT;
|
|
37
37
|
}
|
|
38
|
-
if (extensionKey
|
|
38
|
+
if (!extensionKey || !ELIGIBLE_EXTENSION_KEYS.has(extensionKey)) {
|
|
39
39
|
return NOT_ENABLED_RESULT;
|
|
40
40
|
}
|
|
41
41
|
var isEnabled = expValEquals('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true);
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card" || '',
|
|
7
|
-
packageVersion: "44.5.
|
|
7
|
+
packageVersion: "44.5.3" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -74,7 +74,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
74
74
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
75
75
|
,
|
|
76
76
|
style: style
|
|
77
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
77
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
78
78
|
'aria-label': ariaLabel
|
|
79
79
|
} : {}), /*#__PURE__*/React.createElement(Inline, {
|
|
80
80
|
alignBlock: "center",
|
package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js
CHANGED
|
@@ -5,6 +5,7 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import AiIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
8
9
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
9
10
|
import { messages } from '../../../../../messages';
|
|
10
11
|
import Action from '../action';
|
|
@@ -40,7 +41,7 @@ export function AISummariseAction(_ref) {
|
|
|
40
41
|
spacing: "spacious",
|
|
41
42
|
color: "currentColor",
|
|
42
43
|
label: "Summarise with AI"
|
|
43
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
44
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
44
45
|
size: props.iconSize
|
|
45
46
|
} : {})),
|
|
46
47
|
onClick: handleActionClick,
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { di } from 'react-magnetic-di';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
5
6
|
import useAISummaryAction from '../../../../../state/hooks/use-ai-summary-action';
|
|
6
7
|
import { AISummariseAction } from './ai-summarise-action';
|
|
7
8
|
import { CopySummaryAction, CopySummaryActionNew } from './copy-summary-action';
|
|
@@ -18,7 +19,7 @@ export var AISummaryActionComponent = function AISummaryActionComponent(props) {
|
|
|
18
19
|
useEffect(function () {
|
|
19
20
|
onLoadingChange === null || onLoadingChange === void 0 || onLoadingChange(status === 'loading');
|
|
20
21
|
}, [onLoadingChange, status]);
|
|
21
|
-
return status === 'done' ? fg('platform_sl_3p_auth_rovo_action_kill_switch') ? /*#__PURE__*/React.createElement(CopySummaryActionNew, _extends({}, props, {
|
|
22
|
+
return status === 'done' ? fg('platform_sl_3p_auth_rovo_action_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? /*#__PURE__*/React.createElement(CopySummaryActionNew, _extends({}, props, {
|
|
22
23
|
summary: content,
|
|
23
24
|
testId: testId
|
|
24
25
|
})) : /*#__PURE__*/React.createElement(CopySummaryAction, _extends({}, props, {
|
|
@@ -4,6 +4,7 @@ import { FormattedMessage, useIntl } from 'react-intl';
|
|
|
4
4
|
import AutomationIcon from '@atlaskit/icon/core/automation';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
6
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
7
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
7
8
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
8
9
|
import { ActionName } from '../../../../../constants';
|
|
9
10
|
import { messages } from '../../../../../messages';
|
|
@@ -75,7 +76,7 @@ var AutomationAction = function AutomationAction(props) {
|
|
|
75
76
|
spacing: "spacious",
|
|
76
77
|
color: "currentColor",
|
|
77
78
|
label: automationActionIconLabel
|
|
78
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
79
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
79
80
|
size: props.iconSize
|
|
80
81
|
} : {})),
|
|
81
82
|
testId: "smart-action-automation-action",
|
|
@@ -11,6 +11,7 @@ import React, { useCallback, useState } from 'react';
|
|
|
11
11
|
import { FormattedMessage } from 'react-intl';
|
|
12
12
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
14
15
|
import { ActionName } from '../../../../../constants';
|
|
15
16
|
import { messages } from '../../../../../messages';
|
|
16
17
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -61,7 +62,7 @@ var CopyLinkAction = function CopyLinkAction(_ref) {
|
|
|
61
62
|
color: "currentColor",
|
|
62
63
|
label: fg('navx-3698-flexible-card-a11y-fix') ? '' : 'copy url',
|
|
63
64
|
spacing: "spacious"
|
|
64
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
65
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
65
66
|
size: props.iconSize
|
|
66
67
|
} : {})),
|
|
67
68
|
onClick: onClick,
|
|
@@ -5,6 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
6
6
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
8
9
|
import { ActionName } from '../../../../../constants';
|
|
9
10
|
import { messages } from '../../../../../messages';
|
|
10
11
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -73,7 +74,7 @@ var FollowAction = function FollowAction(props) {
|
|
|
73
74
|
};
|
|
74
75
|
return /*#__PURE__*/React.createElement(ServerAction, _extends({
|
|
75
76
|
content: /*#__PURE__*/React.createElement(FormattedMessage, label)
|
|
76
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
77
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
77
78
|
ariaLabel: intl.formatMessage(label)
|
|
78
79
|
} : {}, {
|
|
79
80
|
icon: followIcon,
|
|
@@ -7,6 +7,7 @@ import MediaServicesActualSizeIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
|
7
7
|
import PanelRightIcon from '@atlaskit/icon/core/panel-right';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
10
11
|
import { ActionName } from '../../../../../constants';
|
|
11
12
|
import { messages } from '../../../../../messages';
|
|
12
13
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -35,7 +36,7 @@ var PreviewAction = function PreviewAction(_ref) {
|
|
|
35
36
|
color: "currentColor",
|
|
36
37
|
spacing: "spacious",
|
|
37
38
|
label: fg('navx-3698-flexible-card-a11y-fix') ? '' : 'Open preview panel'
|
|
38
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
39
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
39
40
|
size: props.iconSize
|
|
40
41
|
} : {}));
|
|
41
42
|
}
|
|
@@ -43,7 +44,7 @@ var PreviewAction = function PreviewAction(_ref) {
|
|
|
43
44
|
color: "currentColor",
|
|
44
45
|
spacing: "spacious",
|
|
45
46
|
label: fg('navx-3698-flexible-card-a11y-fix') ? '' : 'Open preview'
|
|
46
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') ? {
|
|
47
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || fg('platform_sl_3p_auth_rovo_block_card_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
47
48
|
size: props.iconSize
|
|
48
49
|
} : {}));
|
|
49
50
|
}, [hasPreviewPanel, props.iconSize]);
|
|
@@ -4,6 +4,7 @@ var _excluded = ["onClick"];
|
|
|
4
4
|
import React, { lazy, useCallback } from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
7
8
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
8
9
|
import { messages } from '../../../../../messages';
|
|
9
10
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -38,10 +39,10 @@ var ViewRelatedLinksAction = function ViewRelatedLinksAction(_ref) {
|
|
|
38
39
|
}, [actionData === null || actionData === void 0 ? void 0 : actionData.ari, fireEvent, modal, onClickCallback]);
|
|
39
40
|
return actionData ? /*#__PURE__*/React.createElement(Action, _extends({
|
|
40
41
|
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_view_related_links)
|
|
41
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
42
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
42
43
|
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_view_related_links)
|
|
43
44
|
} : {}, {
|
|
44
|
-
icon: /*#__PURE__*/React.createElement(RelatedLinksActionIcon, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
45
|
+
icon: /*#__PURE__*/React.createElement(RelatedLinksActionIcon, fg('platform_sl_3p_auth_rovo_action_kill_switch') || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true) ? {
|
|
45
46
|
iconSize: props.iconSize
|
|
46
47
|
} : {}),
|
|
47
48
|
onClick: onClick,
|
|
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
15
15
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
16
16
|
var PACKAGE_DATA = {
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "44.5.
|
|
18
|
+
packageVersion: "44.5.3",
|
|
19
19
|
componentName: 'linkUrl'
|
|
20
20
|
};
|
|
21
21
|
var Anchor = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "44.5.
|
|
3
|
+
"version": "44.5.4",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
76
76
|
"@atlaskit/popup": "^4.17.0",
|
|
77
77
|
"@atlaskit/primitives": "^19.0.0",
|
|
78
|
-
"@atlaskit/react-ufo": "^5.
|
|
78
|
+
"@atlaskit/react-ufo": "^5.19.0",
|
|
79
79
|
"@atlaskit/rovo-triggers": "^6.0.0",
|
|
80
80
|
"@atlaskit/section-message": "^8.12.0",
|
|
81
81
|
"@atlaskit/select": "^21.10.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@atlaskit/textfield": "^8.3.0",
|
|
86
86
|
"@atlaskit/theme": "^23.2.0",
|
|
87
87
|
"@atlaskit/tile": "^1.1.0",
|
|
88
|
-
"@atlaskit/tmp-editor-statsig": "^74.
|
|
88
|
+
"@atlaskit/tmp-editor-statsig": "^74.11.0",
|
|
89
89
|
"@atlaskit/tokens": "^13.0.0",
|
|
90
90
|
"@atlaskit/tooltip": "^22.0.0",
|
|
91
91
|
"@atlaskit/ufo": "^0.4.0",
|