@atlaskit/smart-card 44.28.4 → 44.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/cjs/state/hooks/use-block-card-rovo-action-experiment/index.js +3 -7
- package/dist/cjs/state/hooks/use-rovo-chat/index.js +3 -7
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/state/hooks/use-block-card-rovo-action-experiment/index.js +3 -7
- package/dist/es2019/state/hooks/use-rovo-chat/index.js +3 -7
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/hooks/use-block-card-rovo-action-experiment/index.js +3 -7
- package/dist/esm/state/hooks/use-rovo-chat/index.js +3 -7
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/state/hooks/use-block-card-rovo-action-experiment/index.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-block-card-rovo-action-experiment/index.d.ts +1 -1
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 44.29.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`258fd5f8909fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/258fd5f8909fd) -
|
|
8
|
+
Cleaning up and abandoning the block card post-auth 3P experiment for Jira
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 44.28.4
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -12,7 +12,6 @@ var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equa
|
|
|
12
12
|
var _rovo = require("../../../utils/rovo");
|
|
13
13
|
var _helpers = require("../../helpers");
|
|
14
14
|
var _store = require("../../store");
|
|
15
|
-
var _constants = require("../use-rovo-chat/constants");
|
|
16
15
|
var _useRovoConfig3 = _interopRequireDefault(require("../use-rovo-config"));
|
|
17
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']);
|
|
18
17
|
var NOT_ENABLED_RESULT = {
|
|
@@ -20,7 +19,7 @@ var NOT_ENABLED_RESULT = {
|
|
|
20
19
|
};
|
|
21
20
|
|
|
22
21
|
/**
|
|
23
|
-
* Returns whether the
|
|
22
|
+
* Returns whether the platform_sl_3p_auth_rovo_block_card_confluence experiment
|
|
24
23
|
* is enabled for the current user and link context.
|
|
25
24
|
*
|
|
26
25
|
* All eligibility criteria are consolidated here:
|
|
@@ -49,17 +48,14 @@ var useBlockCardRovoActionExperiment = function useBlockCardRovoActionExperiment
|
|
|
49
48
|
if (extensionKey && !ELIGIBLE_EXTENSION_KEYS.has(extensionKey)) {
|
|
50
49
|
return NOT_ENABLED_RESULT;
|
|
51
50
|
}
|
|
52
|
-
var isJiraEnabled = !!product && _constants.JIRA_PRODUCTS.includes(product) && (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_jira_kill_switch') && (0, _expValEquals.expValEquals)('platform_sl_3p_auth_rovo_block_card_jira', 'isEnabled', true);
|
|
53
51
|
var isConfluenceEnabled = !!product && product === 'CONFLUENCE' && (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') && (0, _expValEquals.expValEquals)('platform_sl_3p_auth_rovo_block_card_confluence', 'isEnabled', true);
|
|
54
52
|
return {
|
|
55
|
-
isEnabled:
|
|
53
|
+
isEnabled: isConfluenceEnabled
|
|
56
54
|
};
|
|
57
55
|
}, [isRovoChatEnabled, extensionKey, url, isRovoChatActionOptedIn, product]);
|
|
58
56
|
};
|
|
59
57
|
var isBlockCardRovoActionExperimentEnabled = exports.isBlockCardRovoActionExperimentEnabled = function isBlockCardRovoActionExperimentEnabled(product) {
|
|
60
|
-
|
|
61
|
-
var isConfluenceEnabled = !!product && product === 'CONFLUENCE' && (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_sl_3p_auth_rovo_block_card_confluence', 'isEnabled', true);
|
|
62
|
-
return isJiraEnabled || isConfluenceEnabled;
|
|
58
|
+
return !!product && product === 'CONFLUENCE' && (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_block_card_kill_switch') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_sl_3p_auth_rovo_block_card_confluence', 'isEnabled', true);
|
|
63
59
|
};
|
|
64
60
|
var useBlockCardRovoActionExperimentNoExposure = exports.useBlockCardRovoActionExperimentNoExposure = function useBlockCardRovoActionExperimentNoExposure() {
|
|
65
61
|
var _useRovoConfig2 = (0, _useRovoConfig3.default)(),
|
|
@@ -7,22 +7,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("react");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var _postMessageToPubsub = require("@atlaskit/rovo-triggers/post-message-to-pubsub");
|
|
12
11
|
var _rovo = require("../../../utils/rovo");
|
|
13
12
|
var _useRovoConfig2 = _interopRequireDefault(require("../use-rovo-config"));
|
|
14
|
-
var _constants = require("./constants");
|
|
15
13
|
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; }
|
|
16
14
|
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; }
|
|
17
15
|
var SMART_LINK_TO_ROVO_SOURCE = 'smart-link';
|
|
18
16
|
var useRovoChat = function useRovoChat() {
|
|
19
17
|
var _useRovoConfig = (0, _useRovoConfig2.default)(),
|
|
20
|
-
config = _useRovoConfig.rovoOptions
|
|
21
|
-
product = _useRovoConfig.product;
|
|
18
|
+
config = _useRovoConfig.rovoOptions;
|
|
22
19
|
var _useRovoPostMessageTo = (0, _postMessageToPubsub.useRovoPostMessageToPubsub)(),
|
|
23
20
|
publishWithPostMessage = _useRovoPostMessageTo.publishWithPostMessage;
|
|
24
21
|
var isRovoChatEnabled = (0, _rovo.getIsRovoChatEnabled)(config);
|
|
25
|
-
var isJiraProduct = product && _constants.JIRA_PRODUCTS.includes(product);
|
|
26
22
|
var sendPromptMessage = (0, _react.useCallback)(function (data) {
|
|
27
23
|
var _window$parent;
|
|
28
24
|
publishWithPostMessage({
|
|
@@ -36,13 +32,13 @@ var useRovoChat = function useRovoChat() {
|
|
|
36
32
|
agentId: undefined
|
|
37
33
|
}),
|
|
38
34
|
openChat: true,
|
|
39
|
-
openChatMode:
|
|
35
|
+
openChatMode: 'sidebar'
|
|
40
36
|
},
|
|
41
37
|
onAcknowledgeTimeout: function onAcknowledgeTimeout() {
|
|
42
38
|
// NAVX-3599: Add analytics event
|
|
43
39
|
}
|
|
44
40
|
});
|
|
45
|
-
}, [publishWithPostMessage
|
|
41
|
+
}, [publishWithPostMessage]);
|
|
46
42
|
return (0, _react.useMemo)(function () {
|
|
47
43
|
return {
|
|
48
44
|
isRovoChatEnabled: isRovoChatEnabled,
|
|
@@ -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.28.
|
|
14
|
+
packageVersion: "44.28.4" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -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.28.
|
|
22
|
+
packageVersion: "44.28.4",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -5,7 +5,6 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
|
|
|
5
5
|
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
6
6
|
import { getExtensionKey } from '../../helpers';
|
|
7
7
|
import { useSmartCardState } from '../../store';
|
|
8
|
-
import { JIRA_PRODUCTS } from '../use-rovo-chat/constants';
|
|
9
8
|
import useRovoConfig from '../use-rovo-config';
|
|
10
9
|
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
10
|
const NOT_ENABLED_RESULT = {
|
|
@@ -13,7 +12,7 @@ const NOT_ENABLED_RESULT = {
|
|
|
13
12
|
};
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
|
-
* Returns whether the
|
|
15
|
+
* Returns whether the platform_sl_3p_auth_rovo_block_card_confluence experiment
|
|
17
16
|
* is enabled for the current user and link context.
|
|
18
17
|
*
|
|
19
18
|
* All eligibility criteria are consolidated here:
|
|
@@ -43,17 +42,14 @@ const useBlockCardRovoActionExperiment = (url, actionOptions) => {
|
|
|
43
42
|
if (extensionKey && !ELIGIBLE_EXTENSION_KEYS.has(extensionKey)) {
|
|
44
43
|
return NOT_ENABLED_RESULT;
|
|
45
44
|
}
|
|
46
|
-
const isJiraEnabled = !!product && JIRA_PRODUCTS.includes(product) && fg('platform_sl_3p_auth_rovo_block_jira_kill_switch') && expValEquals('platform_sl_3p_auth_rovo_block_card_jira', 'isEnabled', true);
|
|
47
45
|
const isConfluenceEnabled = !!product && product === 'CONFLUENCE' && fg('platform_sl_3p_auth_rovo_block_card_kill_switch') && expValEquals('platform_sl_3p_auth_rovo_block_card_confluence', 'isEnabled', true);
|
|
48
46
|
return {
|
|
49
|
-
isEnabled:
|
|
47
|
+
isEnabled: isConfluenceEnabled
|
|
50
48
|
};
|
|
51
49
|
}, [isRovoChatEnabled, extensionKey, url, isRovoChatActionOptedIn, product]);
|
|
52
50
|
};
|
|
53
51
|
export const isBlockCardRovoActionExperimentEnabled = product => {
|
|
54
|
-
|
|
55
|
-
const isConfluenceEnabled = !!product && product === 'CONFLUENCE' && fg('platform_sl_3p_auth_rovo_block_card_kill_switch') && expValEqualsNoExposure('platform_sl_3p_auth_rovo_block_card_confluence', 'isEnabled', true);
|
|
56
|
-
return isJiraEnabled || isConfluenceEnabled;
|
|
52
|
+
return !!product && product === 'CONFLUENCE' && fg('platform_sl_3p_auth_rovo_block_card_kill_switch') && expValEqualsNoExposure('platform_sl_3p_auth_rovo_block_card_confluence', 'isEnabled', true);
|
|
57
53
|
};
|
|
58
54
|
export const useBlockCardRovoActionExperimentNoExposure = () => {
|
|
59
55
|
const {
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { useCallback, useMemo } from 'react';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { useRovoPostMessageToPubsub } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
|
|
4
3
|
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
5
4
|
import useRovoConfig from '../use-rovo-config';
|
|
6
|
-
import { JIRA_PRODUCTS } from './constants';
|
|
7
5
|
const SMART_LINK_TO_ROVO_SOURCE = 'smart-link';
|
|
8
6
|
const useRovoChat = () => {
|
|
9
7
|
const {
|
|
10
|
-
rovoOptions: config
|
|
11
|
-
product
|
|
8
|
+
rovoOptions: config
|
|
12
9
|
} = useRovoConfig();
|
|
13
10
|
const {
|
|
14
11
|
publishWithPostMessage
|
|
15
12
|
} = useRovoPostMessageToPubsub();
|
|
16
13
|
const isRovoChatEnabled = getIsRovoChatEnabled(config);
|
|
17
|
-
const isJiraProduct = product && JIRA_PRODUCTS.includes(product);
|
|
18
14
|
const sendPromptMessage = useCallback(data => {
|
|
19
15
|
var _window$parent;
|
|
20
16
|
publishWithPostMessage({
|
|
@@ -28,13 +24,13 @@ const useRovoChat = () => {
|
|
|
28
24
|
agentId: undefined
|
|
29
25
|
},
|
|
30
26
|
openChat: true,
|
|
31
|
-
openChatMode:
|
|
27
|
+
openChatMode: 'sidebar'
|
|
32
28
|
},
|
|
33
29
|
onAcknowledgeTimeout: () => {
|
|
34
30
|
// NAVX-3599: Add analytics event
|
|
35
31
|
}
|
|
36
32
|
});
|
|
37
|
-
}, [publishWithPostMessage
|
|
33
|
+
}, [publishWithPostMessage]);
|
|
38
34
|
return useMemo(() => ({
|
|
39
35
|
isRovoChatEnabled,
|
|
40
36
|
sendPromptMessage
|
|
@@ -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.28.
|
|
5
|
+
packageVersion: "44.28.4" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "44.28.
|
|
12
|
+
packageVersion: "44.28.4",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -5,7 +5,6 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
|
|
|
5
5
|
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
6
6
|
import { getExtensionKey } from '../../helpers';
|
|
7
7
|
import { useSmartCardState } from '../../store';
|
|
8
|
-
import { JIRA_PRODUCTS } from '../use-rovo-chat/constants';
|
|
9
8
|
import useRovoConfig from '../use-rovo-config';
|
|
10
9
|
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
10
|
var NOT_ENABLED_RESULT = {
|
|
@@ -13,7 +12,7 @@ var NOT_ENABLED_RESULT = {
|
|
|
13
12
|
};
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
|
-
* Returns whether the
|
|
15
|
+
* Returns whether the platform_sl_3p_auth_rovo_block_card_confluence experiment
|
|
17
16
|
* is enabled for the current user and link context.
|
|
18
17
|
*
|
|
19
18
|
* All eligibility criteria are consolidated here:
|
|
@@ -42,17 +41,14 @@ var useBlockCardRovoActionExperiment = function useBlockCardRovoActionExperiment
|
|
|
42
41
|
if (extensionKey && !ELIGIBLE_EXTENSION_KEYS.has(extensionKey)) {
|
|
43
42
|
return NOT_ENABLED_RESULT;
|
|
44
43
|
}
|
|
45
|
-
var isJiraEnabled = !!product && JIRA_PRODUCTS.includes(product) && fg('platform_sl_3p_auth_rovo_block_jira_kill_switch') && expValEquals('platform_sl_3p_auth_rovo_block_card_jira', 'isEnabled', true);
|
|
46
44
|
var isConfluenceEnabled = !!product && product === 'CONFLUENCE' && fg('platform_sl_3p_auth_rovo_block_card_kill_switch') && expValEquals('platform_sl_3p_auth_rovo_block_card_confluence', 'isEnabled', true);
|
|
47
45
|
return {
|
|
48
|
-
isEnabled:
|
|
46
|
+
isEnabled: isConfluenceEnabled
|
|
49
47
|
};
|
|
50
48
|
}, [isRovoChatEnabled, extensionKey, url, isRovoChatActionOptedIn, product]);
|
|
51
49
|
};
|
|
52
50
|
export var isBlockCardRovoActionExperimentEnabled = function isBlockCardRovoActionExperimentEnabled(product) {
|
|
53
|
-
|
|
54
|
-
var isConfluenceEnabled = !!product && product === 'CONFLUENCE' && fg('platform_sl_3p_auth_rovo_block_card_kill_switch') && expValEqualsNoExposure('platform_sl_3p_auth_rovo_block_card_confluence', 'isEnabled', true);
|
|
55
|
-
return isJiraEnabled || isConfluenceEnabled;
|
|
51
|
+
return !!product && product === 'CONFLUENCE' && fg('platform_sl_3p_auth_rovo_block_card_kill_switch') && expValEqualsNoExposure('platform_sl_3p_auth_rovo_block_card_confluence', 'isEnabled', true);
|
|
56
52
|
};
|
|
57
53
|
export var useBlockCardRovoActionExperimentNoExposure = function useBlockCardRovoActionExperimentNoExposure() {
|
|
58
54
|
var _useRovoConfig2 = useRovoConfig(),
|
|
@@ -2,20 +2,16 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
4
|
import { useCallback, useMemo } from 'react';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { useRovoPostMessageToPubsub } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
|
|
7
6
|
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
8
7
|
import useRovoConfig from '../use-rovo-config';
|
|
9
|
-
import { JIRA_PRODUCTS } from './constants';
|
|
10
8
|
var SMART_LINK_TO_ROVO_SOURCE = 'smart-link';
|
|
11
9
|
var useRovoChat = function useRovoChat() {
|
|
12
10
|
var _useRovoConfig = useRovoConfig(),
|
|
13
|
-
config = _useRovoConfig.rovoOptions
|
|
14
|
-
product = _useRovoConfig.product;
|
|
11
|
+
config = _useRovoConfig.rovoOptions;
|
|
15
12
|
var _useRovoPostMessageTo = useRovoPostMessageToPubsub(),
|
|
16
13
|
publishWithPostMessage = _useRovoPostMessageTo.publishWithPostMessage;
|
|
17
14
|
var isRovoChatEnabled = getIsRovoChatEnabled(config);
|
|
18
|
-
var isJiraProduct = product && JIRA_PRODUCTS.includes(product);
|
|
19
15
|
var sendPromptMessage = useCallback(function (data) {
|
|
20
16
|
var _window$parent;
|
|
21
17
|
publishWithPostMessage({
|
|
@@ -29,13 +25,13 @@ var useRovoChat = function useRovoChat() {
|
|
|
29
25
|
agentId: undefined
|
|
30
26
|
}),
|
|
31
27
|
openChat: true,
|
|
32
|
-
openChatMode:
|
|
28
|
+
openChatMode: 'sidebar'
|
|
33
29
|
},
|
|
34
30
|
onAcknowledgeTimeout: function onAcknowledgeTimeout() {
|
|
35
31
|
// NAVX-3599: Add analytics event
|
|
36
32
|
}
|
|
37
33
|
});
|
|
38
|
-
}, [publishWithPostMessage
|
|
34
|
+
}, [publishWithPostMessage]);
|
|
39
35
|
return useMemo(function () {
|
|
40
36
|
return {
|
|
41
37
|
isRovoChatEnabled: isRovoChatEnabled,
|
|
@@ -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.28.
|
|
7
|
+
packageVersion: "44.28.4" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "44.28.
|
|
15
|
+
packageVersion: "44.28.4",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -8,7 +8,7 @@ export interface BlockCardRovoActionExperiment {
|
|
|
8
8
|
isEnabled: boolean;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Returns whether the
|
|
11
|
+
* Returns whether the platform_sl_3p_auth_rovo_block_card_confluence experiment
|
|
12
12
|
* is enabled for the current user and link context.
|
|
13
13
|
*
|
|
14
14
|
* All eligibility criteria are consolidated here:
|
|
@@ -8,7 +8,7 @@ export interface BlockCardRovoActionExperiment {
|
|
|
8
8
|
isEnabled: boolean;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Returns whether the
|
|
11
|
+
* Returns whether the platform_sl_3p_auth_rovo_block_card_confluence experiment
|
|
12
12
|
* is enabled for the current user and link context.
|
|
13
13
|
*
|
|
14
14
|
* All eligibility criteria are consolidated here:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "44.
|
|
3
|
+
"version": "44.29.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/heading": "^5.4.0",
|
|
57
57
|
"@atlaskit/icon": "^35.4.0",
|
|
58
58
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
59
|
-
"@atlaskit/icon-lab": "^6.
|
|
59
|
+
"@atlaskit/icon-lab": "^6.14.0",
|
|
60
60
|
"@atlaskit/image": "^3.1.0",
|
|
61
61
|
"@atlaskit/json-ld-types": "^1.5.0",
|
|
62
62
|
"@atlaskit/link": "^3.4.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@atlaskit/textfield": "^8.3.0",
|
|
88
88
|
"@atlaskit/theme": "^25.0.0",
|
|
89
89
|
"@atlaskit/tile": "^1.1.0",
|
|
90
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
90
|
+
"@atlaskit/tmp-editor-statsig": "^102.0.0",
|
|
91
91
|
"@atlaskit/tokens": "^13.4.0",
|
|
92
92
|
"@atlaskit/tooltip": "^22.6.0",
|
|
93
93
|
"@atlaskit/ufo": "^0.5.0",
|
|
@@ -262,9 +262,6 @@
|
|
|
262
262
|
"platform_sl_icons_refactor": {
|
|
263
263
|
"type": "boolean"
|
|
264
264
|
},
|
|
265
|
-
"platform_sl_3p_auth_rovo_block_jira_kill_switch": {
|
|
266
|
-
"type": "boolean"
|
|
267
|
-
},
|
|
268
265
|
"social-proof-3p-unauth-block-fg": {
|
|
269
266
|
"type": "boolean"
|
|
270
267
|
},
|