@atlaskit/smart-card 44.5.0 → 44.5.1
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 +9 -0
- package/dist/cjs/extractors/flexible/actions/extract-rovo-chat-action.js +3 -4
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/flexible/actions/extract-rovo-chat-action.js +3 -4
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/flexible/actions/extract-rovo-chat-action.js +3 -4
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 44.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9bf56e51dae31`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9bf56e51dae31) -
|
|
8
|
+
Scope block card Rovo Chat action to eligible providers (Google, OneDrive, Slack, Teams, GitHub,
|
|
9
|
+
GitLab, Salesforce) using an allowlist instead of relying on the supportsRovoActions backend flag.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 44.5.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -12,10 +12,10 @@ var _helpers = require("../../../state/helpers");
|
|
|
12
12
|
var _canShowAction = require("../../../utils/actions/can-show-action");
|
|
13
13
|
var _rovo = require("../../../utils/rovo");
|
|
14
14
|
var _types = require("../../../view/Card/types");
|
|
15
|
-
// For rovogrowth-640 post auth inline experiment
|
|
15
|
+
// For rovogrowth-640 post auth inline experiment and block card experiment (NAVX-4814)
|
|
16
16
|
var ELIGIBLE_EXTENSION_KEYS = new Set(['slack-object-provider', 'google-object-provider', 'onedrive-object-provider', 'github-object-provider', 'ms-teams-object-provider', 'gitlab-object-provider', 'salesforce-object-provider']);
|
|
17
17
|
var extractRovoChatAction = function extractRovoChatAction(_ref) {
|
|
18
|
-
var
|
|
18
|
+
var _actionOptions$rovoCh;
|
|
19
19
|
var actionOptions = _ref.actionOptions,
|
|
20
20
|
appearance = _ref.appearance,
|
|
21
21
|
id = _ref.id,
|
|
@@ -29,12 +29,11 @@ var extractRovoChatAction = function extractRovoChatAction(_ref) {
|
|
|
29
29
|
if (!isRovoChatEnabled) {
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
|
-
var supportsRovoActions = response === null || response === void 0 || (_response$meta = response.meta) === null || _response$meta === void 0 || (_response$meta = _response$meta.supportedFeature) === null || _response$meta === void 0 ? void 0 : _response$meta.includes('RovoActions');
|
|
33
32
|
var extensionKey = (0, _helpers.getExtensionKey)(response);
|
|
34
33
|
var isGoogleProvider = extensionKey === 'google-object-provider';
|
|
35
34
|
var is3PAuthRovoActionEnabled = isGoogleProvider && (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch');
|
|
36
35
|
var is3PInlinePostAuthActionsEnabled = extensionKey !== undefined && ELIGIBLE_EXTENSION_KEYS.has(extensionKey) && (0, _platformFeatureFlags.fg)('rovogrowth-640-inline-action-nudge-fg') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true);
|
|
37
|
-
var is3PBlockPostAuthActionsEnabled =
|
|
36
|
+
var is3PBlockPostAuthActionsEnabled = extensionKey !== undefined && ELIGIBLE_EXTENSION_KEYS.has(extensionKey) && (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch');
|
|
38
37
|
var isSupportedFeature = is3PInlinePostAuthActionsEnabled || is3PAuthRovoActionEnabled || is3PBlockPostAuthActionsEnabled;
|
|
39
38
|
var isOptIn = (actionOptions === null || actionOptions === void 0 || (_actionOptions$rovoCh = actionOptions.rovoChatAction) === null || _actionOptions$rovoCh === void 0 ? void 0 : _actionOptions$rovoCh.optIn) === true;
|
|
40
39
|
var url = (0, _linkExtractors.extractSmartLinkUrl)(response);
|
|
@@ -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.
|
|
14
|
+
packageVersion: "44.5.0" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -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.
|
|
25
|
+
packageVersion: "44.5.0",
|
|
26
26
|
componentName: 'linkUrl'
|
|
27
27
|
};
|
|
28
28
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -6,7 +6,7 @@ import { getDefinitionId, getExtensionKey, getResourceType } from '../../../stat
|
|
|
6
6
|
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
7
7
|
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
8
8
|
import { CardAction } from '../../../view/Card/types';
|
|
9
|
-
// For rovogrowth-640 post auth inline experiment
|
|
9
|
+
// For rovogrowth-640 post auth inline experiment and block card experiment (NAVX-4814)
|
|
10
10
|
const ELIGIBLE_EXTENSION_KEYS = new Set(['slack-object-provider', 'google-object-provider', 'onedrive-object-provider', 'github-object-provider', 'ms-teams-object-provider', 'gitlab-object-provider', 'salesforce-object-provider']);
|
|
11
11
|
const extractRovoChatAction = ({
|
|
12
12
|
actionOptions,
|
|
@@ -16,7 +16,7 @@ const extractRovoChatAction = ({
|
|
|
16
16
|
response,
|
|
17
17
|
rovoConfig
|
|
18
18
|
}) => {
|
|
19
|
-
var
|
|
19
|
+
var _actionOptions$rovoCh;
|
|
20
20
|
if (!canShowAction(CardAction.RovoChatAction, actionOptions)) {
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
@@ -24,12 +24,11 @@ const extractRovoChatAction = ({
|
|
|
24
24
|
if (!isRovoChatEnabled) {
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
const supportsRovoActions = response === null || response === void 0 ? void 0 : (_response$meta = response.meta) === null || _response$meta === void 0 ? void 0 : (_response$meta$suppor = _response$meta.supportedFeature) === null || _response$meta$suppor === void 0 ? void 0 : _response$meta$suppor.includes('RovoActions');
|
|
28
27
|
const extensionKey = getExtensionKey(response);
|
|
29
28
|
const isGoogleProvider = extensionKey === 'google-object-provider';
|
|
30
29
|
const is3PAuthRovoActionEnabled = isGoogleProvider && fg('platform_sl_3p_auth_rovo_action_kill_switch');
|
|
31
30
|
const is3PInlinePostAuthActionsEnabled = extensionKey !== undefined && ELIGIBLE_EXTENSION_KEYS.has(extensionKey) && fg('rovogrowth-640-inline-action-nudge-fg') && expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true);
|
|
32
|
-
const is3PBlockPostAuthActionsEnabled =
|
|
31
|
+
const is3PBlockPostAuthActionsEnabled = extensionKey !== undefined && ELIGIBLE_EXTENSION_KEYS.has(extensionKey) && fg('platform_sl_3p_auth_rovo_block_card_kill_switch');
|
|
33
32
|
const isSupportedFeature = is3PInlinePostAuthActionsEnabled || is3PAuthRovoActionEnabled || is3PBlockPostAuthActionsEnabled;
|
|
34
33
|
const isOptIn = (actionOptions === null || actionOptions === void 0 ? void 0 : (_actionOptions$rovoCh = actionOptions.rovoChatAction) === null || _actionOptions$rovoCh === void 0 ? void 0 : _actionOptions$rovoCh.optIn) === true;
|
|
35
34
|
const url = extractSmartLinkUrl(response);
|
|
@@ -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
|
+
packageVersion: "44.5.0" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -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.
|
|
15
|
+
packageVersion: "44.5.0",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -6,10 +6,10 @@ import { getDefinitionId, getExtensionKey, getResourceType } from '../../../stat
|
|
|
6
6
|
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
7
7
|
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
8
8
|
import { CardAction } from '../../../view/Card/types';
|
|
9
|
-
// For rovogrowth-640 post auth inline experiment
|
|
9
|
+
// For rovogrowth-640 post auth inline experiment and block card experiment (NAVX-4814)
|
|
10
10
|
var ELIGIBLE_EXTENSION_KEYS = new Set(['slack-object-provider', 'google-object-provider', 'onedrive-object-provider', 'github-object-provider', 'ms-teams-object-provider', 'gitlab-object-provider', 'salesforce-object-provider']);
|
|
11
11
|
var extractRovoChatAction = function extractRovoChatAction(_ref) {
|
|
12
|
-
var
|
|
12
|
+
var _actionOptions$rovoCh;
|
|
13
13
|
var actionOptions = _ref.actionOptions,
|
|
14
14
|
appearance = _ref.appearance,
|
|
15
15
|
id = _ref.id,
|
|
@@ -23,12 +23,11 @@ var extractRovoChatAction = function extractRovoChatAction(_ref) {
|
|
|
23
23
|
if (!isRovoChatEnabled) {
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
var supportsRovoActions = response === null || response === void 0 || (_response$meta = response.meta) === null || _response$meta === void 0 || (_response$meta = _response$meta.supportedFeature) === null || _response$meta === void 0 ? void 0 : _response$meta.includes('RovoActions');
|
|
27
26
|
var extensionKey = getExtensionKey(response);
|
|
28
27
|
var isGoogleProvider = extensionKey === 'google-object-provider';
|
|
29
28
|
var is3PAuthRovoActionEnabled = isGoogleProvider && fg('platform_sl_3p_auth_rovo_action_kill_switch');
|
|
30
29
|
var is3PInlinePostAuthActionsEnabled = extensionKey !== undefined && ELIGIBLE_EXTENSION_KEYS.has(extensionKey) && fg('rovogrowth-640-inline-action-nudge-fg') && expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true);
|
|
31
|
-
var is3PBlockPostAuthActionsEnabled =
|
|
30
|
+
var is3PBlockPostAuthActionsEnabled = extensionKey !== undefined && ELIGIBLE_EXTENSION_KEYS.has(extensionKey) && fg('platform_sl_3p_auth_rovo_block_card_kill_switch');
|
|
32
31
|
var isSupportedFeature = is3PInlinePostAuthActionsEnabled || is3PAuthRovoActionEnabled || is3PBlockPostAuthActionsEnabled;
|
|
33
32
|
var isOptIn = (actionOptions === null || actionOptions === void 0 || (_actionOptions$rovoCh = actionOptions.rovoChatAction) === null || _actionOptions$rovoCh === void 0 ? void 0 : _actionOptions$rovoCh.optIn) === true;
|
|
34
33
|
var url = extractSmartLinkUrl(response);
|
|
@@ -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.
|
|
7
|
+
packageVersion: "44.5.0" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -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.
|
|
18
|
+
packageVersion: "44.5.0",
|
|
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.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -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.2.0",
|
|
89
89
|
"@atlaskit/tokens": "^13.0.0",
|
|
90
90
|
"@atlaskit/tooltip": "^21.2.0",
|
|
91
91
|
"@atlaskit/ufo": "^0.4.0",
|