@atlaskit/smart-card 43.5.0 → 43.5.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.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +5 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +8 -4
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +2 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/ai-icon/index.js +2 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +5 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +8 -4
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +2 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/ai-icon/index.js +2 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +5 -3
- package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +8 -4
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +2 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/ai-icon/index.js +2 -0
- package/dist/types/view/common/ai-icon/index.d.ts +2 -0
- package/dist/types-ts4.5/view/common/ai-icon/index.d.ts +2 -0
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 43.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`06627d3e25367`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/06627d3e25367) -
|
|
8
|
+
[ux] Add the experiment title variation for the hovercard title
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 43.5.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`bcfeb40aa9347`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bcfeb40aa9347) -
|
|
16
|
+
Remove custom custom AI icon fallback, behind fg navx-1959-remove-custom-ai-icon
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 43.5.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -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: "43.
|
|
14
|
+
packageVersion: "43.5.1"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js
CHANGED
|
@@ -11,6 +11,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _reactIntlNext = require("react-intl-next");
|
|
13
13
|
var _atlassianIntelligence = _interopRequireDefault(require("@atlaskit/icon/core/atlassian-intelligence"));
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
|
|
15
16
|
var _messages = require("../../../../../messages");
|
|
16
17
|
var _aiIcon = _interopRequireDefault(require("../../../../common/ai-icon"));
|
|
@@ -46,12 +47,13 @@ function AISummariseAction(_ref) {
|
|
|
46
47
|
}, [fireEvent, onClickCallback, onCompleted, summariseUrl]);
|
|
47
48
|
return /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
|
|
48
49
|
content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.ai_summary_action),
|
|
49
|
-
icon: /*#__PURE__*/_react.default.createElement(_atlassianIntelligence.default, {
|
|
50
|
+
icon: /*#__PURE__*/_react.default.createElement(_atlassianIntelligence.default, (0, _extends2.default)({
|
|
50
51
|
spacing: "spacious",
|
|
51
52
|
color: "currentColor",
|
|
52
|
-
label: "Summarise with AI"
|
|
53
|
+
label: "Summarise with AI"
|
|
54
|
+
}, (0, _platformFeatureFlags.fg)('navx-1959-remove-custom-ai-icon') ? undefined : {
|
|
53
55
|
LEGACY_fallbackIcon: _aiIcon.default
|
|
54
|
-
}),
|
|
56
|
+
})),
|
|
55
57
|
onClick: handleActionClick,
|
|
56
58
|
testId: "".concat(testId, "-summarise-action"),
|
|
57
59
|
isLoading: status === 'loading',
|
package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js
CHANGED
|
@@ -5,10 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.AIFooterMetadata = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
|
9
10
|
var _reactIntlNext = require("react-intl-next");
|
|
10
11
|
var _reactMagneticDi = require("react-magnetic-di");
|
|
11
12
|
var _atlassianIntelligence = _interopRequireDefault(require("@atlaskit/icon/core/atlassian-intelligence"));
|
|
13
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
14
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
15
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
14
16
|
var _messages = require("../../../../../../messages");
|
|
@@ -37,10 +39,12 @@ var AIFooterMetadata = exports.AIFooterMetadata = function AIFooterMetadata(_ref
|
|
|
37
39
|
LEGACY_size: "small",
|
|
38
40
|
color: "var(--ds-icon-subtle, #626F86)"
|
|
39
41
|
}));
|
|
40
|
-
}), /*#__PURE__*/_react.default.createElement(_atlassianIntelligence.default, {
|
|
41
|
-
label: "AI"
|
|
42
|
-
|
|
42
|
+
}), /*#__PURE__*/_react.default.createElement(_atlassianIntelligence.default, (0, _extends2.default)({
|
|
43
|
+
label: "AI"
|
|
44
|
+
}, (0, _platformFeatureFlags.fg)('navx-1959-remove-custom-ai-icon') ? undefined : {
|
|
43
45
|
LEGACY_fallbackIcon: _aiIcon.default,
|
|
46
|
+
LEGACY_size: 'small'
|
|
47
|
+
}, {
|
|
44
48
|
color: "var(--ds-icon-subtle, #626F86)"
|
|
45
|
-
}));
|
|
49
|
+
})));
|
|
46
50
|
};
|
|
@@ -52,6 +52,7 @@ var HoverCardUnauthorisedView = function HoverCardUnauthorisedView(_ref) {
|
|
|
52
52
|
}, [authorize, fireEvent]);
|
|
53
53
|
var hoverCardExperimentCohort = providerName === 'Google' ? _featureGateJsClient.default.getExperimentValue('platform_editor_google_hovercard_experiment', 'cohort', 'control') : 'control';
|
|
54
54
|
var connectActionMessage = hoverCardExperimentCohort === 'test1' || hoverCardExperimentCohort === 'test2' || hoverCardExperimentCohort === 'test3' ? _messages.messages.experiment_connect_unauthorised_account_action : _messages.messages.connect_unauthorised_account_action;
|
|
55
|
+
var hoverCardTitle = hoverCardExperimentCohort === 'test1' || hoverCardExperimentCohort === 'test2' ? _messages.messages.experiment_connect_link_account_card_name_title : _messages.messages.connect_link_account_card_name;
|
|
55
56
|
var actions = (0, _react.useMemo)(function () {
|
|
56
57
|
return [{
|
|
57
58
|
name: _constants.ActionName.CustomAction,
|
|
@@ -71,7 +72,7 @@ var HoverCardUnauthorisedView = function HoverCardUnauthorisedView(_ref) {
|
|
|
71
72
|
}), /*#__PURE__*/React.createElement(_blocks.CustomBlock, {
|
|
72
73
|
testId: "".concat(testId, "-title"),
|
|
73
74
|
className: (0, _runtime.ax)(["_zulpu2gc _13mh1pd9"])
|
|
74
|
-
}, /*#__PURE__*/React.createElement(_elements.LinkIcon, null), /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({},
|
|
75
|
+
}, /*#__PURE__*/React.createElement(_elements.LinkIcon, null), /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, hoverCardTitle, {
|
|
75
76
|
values: {
|
|
76
77
|
context: providerName
|
|
77
78
|
}
|
|
@@ -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: "43.
|
|
25
|
+
packageVersion: "43.5.1",
|
|
26
26
|
componentName: 'linkUrl'
|
|
27
27
|
};
|
|
28
28
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -11,6 +11,8 @@ var _svg = _interopRequireDefault(require("@atlaskit/icon/svg"));
|
|
|
11
11
|
* The bulk of this file is originally from
|
|
12
12
|
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
13
13
|
* with modifications
|
|
14
|
+
* @deprecated Use @atlaskit/icon/core/atlassian-intelligence instead.
|
|
15
|
+
* TODO: Remove on navx-1959-remove-custom-ai-icon cleanup
|
|
14
16
|
*/
|
|
15
17
|
var AiIcon = function AiIcon(props) {
|
|
16
18
|
return (
|
|
@@ -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: "43.
|
|
5
|
+
packageVersion: "43.5.1"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js
CHANGED
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import AiIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
6
7
|
import { messages } from '../../../../../messages';
|
|
7
8
|
import LegacyAiIcon from '../../../../common/ai-icon';
|
|
@@ -37,12 +38,13 @@ export function AISummariseAction({
|
|
|
37
38
|
}, [fireEvent, onClickCallback, onCompleted, summariseUrl]);
|
|
38
39
|
return /*#__PURE__*/React.createElement(Action, _extends({
|
|
39
40
|
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.ai_summary_action),
|
|
40
|
-
icon: /*#__PURE__*/React.createElement(AiIcon, {
|
|
41
|
+
icon: /*#__PURE__*/React.createElement(AiIcon, _extends({
|
|
41
42
|
spacing: "spacious",
|
|
42
43
|
color: "currentColor",
|
|
43
|
-
label: "Summarise with AI"
|
|
44
|
+
label: "Summarise with AI"
|
|
45
|
+
}, fg('navx-1959-remove-custom-ai-icon') ? undefined : {
|
|
44
46
|
LEGACY_fallbackIcon: LegacyAiIcon
|
|
45
|
-
}),
|
|
47
|
+
})),
|
|
46
48
|
onClick: handleActionClick,
|
|
47
49
|
testId: `${testId}-summarise-action`,
|
|
48
50
|
isLoading: status === 'loading',
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
3
4
|
import { di } from 'react-magnetic-di';
|
|
4
5
|
import AIIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
7
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
6
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
9
|
import { messages } from '../../../../../../messages';
|
|
@@ -32,10 +34,12 @@ export const AIFooterMetadata = ({
|
|
|
32
34
|
label: "Information",
|
|
33
35
|
LEGACY_size: "small",
|
|
34
36
|
color: "var(--ds-icon-subtle, #626F86)"
|
|
35
|
-
}))), /*#__PURE__*/React.createElement(AIIcon, {
|
|
36
|
-
label: "AI"
|
|
37
|
-
|
|
37
|
+
}))), /*#__PURE__*/React.createElement(AIIcon, _extends({
|
|
38
|
+
label: "AI"
|
|
39
|
+
}, fg('navx-1959-remove-custom-ai-icon') ? undefined : {
|
|
38
40
|
LEGACY_fallbackIcon: LegacyAIIcon,
|
|
41
|
+
LEGACY_size: 'small'
|
|
42
|
+
}, {
|
|
39
43
|
color: "var(--ds-icon-subtle, #626F86)"
|
|
40
|
-
}));
|
|
44
|
+
})));
|
|
41
45
|
};
|
|
@@ -46,6 +46,7 @@ const HoverCardUnauthorisedView = ({
|
|
|
46
46
|
}, [authorize, fireEvent]);
|
|
47
47
|
const hoverCardExperimentCohort = providerName === 'Google' ? FeatureGates.getExperimentValue('platform_editor_google_hovercard_experiment', 'cohort', 'control') : 'control';
|
|
48
48
|
const connectActionMessage = hoverCardExperimentCohort === 'test1' || hoverCardExperimentCohort === 'test2' || hoverCardExperimentCohort === 'test3' ? messages.experiment_connect_unauthorised_account_action : messages.connect_unauthorised_account_action;
|
|
49
|
+
const hoverCardTitle = hoverCardExperimentCohort === 'test1' || hoverCardExperimentCohort === 'test2' ? messages.experiment_connect_link_account_card_name_title : messages.connect_link_account_card_name;
|
|
49
50
|
const actions = useMemo(() => [{
|
|
50
51
|
name: ActionName.CustomAction,
|
|
51
52
|
content: /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, connectActionMessage, {
|
|
@@ -63,7 +64,7 @@ const HoverCardUnauthorisedView = ({
|
|
|
63
64
|
}), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
64
65
|
testId: `${testId}-title`,
|
|
65
66
|
className: ax(["_zulpu2gc _13mh1pd9"])
|
|
66
|
-
}, /*#__PURE__*/React.createElement(LinkIcon, null), /*#__PURE__*/React.createElement(FormattedMessage, _extends({},
|
|
67
|
+
}, /*#__PURE__*/React.createElement(LinkIcon, null), /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, hoverCardTitle, {
|
|
67
68
|
values: {
|
|
68
69
|
context: providerName
|
|
69
70
|
}
|
|
@@ -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: "43.
|
|
15
|
+
packageVersion: "43.5.1",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -4,6 +4,8 @@ import SVG from '@atlaskit/icon/svg';
|
|
|
4
4
|
* The bulk of this file is originally from
|
|
5
5
|
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
6
6
|
* with modifications
|
|
7
|
+
* @deprecated Use @atlaskit/icon/core/atlassian-intelligence instead.
|
|
8
|
+
* TODO: Remove on navx-1959-remove-custom-ai-icon cleanup
|
|
7
9
|
*/
|
|
8
10
|
const AiIcon = props =>
|
|
9
11
|
/*#__PURE__*/
|
|
@@ -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: "43.
|
|
7
|
+
packageVersion: "43.5.1"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js
CHANGED
|
@@ -4,6 +4,7 @@ var _excluded = ["url", "onClick", "onError", "testId", "status", "summariseUrl"
|
|
|
4
4
|
import React, { useCallback } from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import AiIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
8
9
|
import { messages } from '../../../../../messages';
|
|
9
10
|
import LegacyAiIcon from '../../../../common/ai-icon';
|
|
@@ -37,12 +38,13 @@ export function AISummariseAction(_ref) {
|
|
|
37
38
|
}, [fireEvent, onClickCallback, onCompleted, summariseUrl]);
|
|
38
39
|
return /*#__PURE__*/React.createElement(Action, _extends({
|
|
39
40
|
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.ai_summary_action),
|
|
40
|
-
icon: /*#__PURE__*/React.createElement(AiIcon, {
|
|
41
|
+
icon: /*#__PURE__*/React.createElement(AiIcon, _extends({
|
|
41
42
|
spacing: "spacious",
|
|
42
43
|
color: "currentColor",
|
|
43
|
-
label: "Summarise with AI"
|
|
44
|
+
label: "Summarise with AI"
|
|
45
|
+
}, fg('navx-1959-remove-custom-ai-icon') ? undefined : {
|
|
44
46
|
LEGACY_fallbackIcon: LegacyAiIcon
|
|
45
|
-
}),
|
|
47
|
+
})),
|
|
46
48
|
onClick: handleActionClick,
|
|
47
49
|
testId: "".concat(testId, "-summarise-action"),
|
|
48
50
|
isLoading: status === 'loading',
|
package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
3
4
|
import { di } from 'react-magnetic-di';
|
|
4
5
|
import AIIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
7
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
6
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
9
|
import { messages } from '../../../../../../messages';
|
|
@@ -30,10 +32,12 @@ export var AIFooterMetadata = function AIFooterMetadata(_ref) {
|
|
|
30
32
|
LEGACY_size: "small",
|
|
31
33
|
color: "var(--ds-icon-subtle, #626F86)"
|
|
32
34
|
}));
|
|
33
|
-
}), /*#__PURE__*/React.createElement(AIIcon, {
|
|
34
|
-
label: "AI"
|
|
35
|
-
|
|
35
|
+
}), /*#__PURE__*/React.createElement(AIIcon, _extends({
|
|
36
|
+
label: "AI"
|
|
37
|
+
}, fg('navx-1959-remove-custom-ai-icon') ? undefined : {
|
|
36
38
|
LEGACY_fallbackIcon: LegacyAIIcon,
|
|
39
|
+
LEGACY_size: 'small'
|
|
40
|
+
}, {
|
|
37
41
|
color: "var(--ds-icon-subtle, #626F86)"
|
|
38
|
-
}));
|
|
42
|
+
})));
|
|
39
43
|
};
|
|
@@ -43,6 +43,7 @@ var HoverCardUnauthorisedView = function HoverCardUnauthorisedView(_ref) {
|
|
|
43
43
|
}, [authorize, fireEvent]);
|
|
44
44
|
var hoverCardExperimentCohort = providerName === 'Google' ? FeatureGates.getExperimentValue('platform_editor_google_hovercard_experiment', 'cohort', 'control') : 'control';
|
|
45
45
|
var connectActionMessage = hoverCardExperimentCohort === 'test1' || hoverCardExperimentCohort === 'test2' || hoverCardExperimentCohort === 'test3' ? messages.experiment_connect_unauthorised_account_action : messages.connect_unauthorised_account_action;
|
|
46
|
+
var hoverCardTitle = hoverCardExperimentCohort === 'test1' || hoverCardExperimentCohort === 'test2' ? messages.experiment_connect_link_account_card_name_title : messages.connect_link_account_card_name;
|
|
46
47
|
var actions = useMemo(function () {
|
|
47
48
|
return [{
|
|
48
49
|
name: ActionName.CustomAction,
|
|
@@ -62,7 +63,7 @@ var HoverCardUnauthorisedView = function HoverCardUnauthorisedView(_ref) {
|
|
|
62
63
|
}), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
63
64
|
testId: "".concat(testId, "-title"),
|
|
64
65
|
className: ax(["_zulpu2gc _13mh1pd9"])
|
|
65
|
-
}, /*#__PURE__*/React.createElement(LinkIcon, null), /*#__PURE__*/React.createElement(FormattedMessage, _extends({},
|
|
66
|
+
}, /*#__PURE__*/React.createElement(LinkIcon, null), /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, hoverCardTitle, {
|
|
66
67
|
values: {
|
|
67
68
|
context: providerName
|
|
68
69
|
}
|
|
@@ -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: "43.
|
|
18
|
+
packageVersion: "43.5.1",
|
|
19
19
|
componentName: 'linkUrl'
|
|
20
20
|
};
|
|
21
21
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -4,6 +4,8 @@ import SVG from '@atlaskit/icon/svg';
|
|
|
4
4
|
* The bulk of this file is originally from
|
|
5
5
|
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
6
6
|
* with modifications
|
|
7
|
+
* @deprecated Use @atlaskit/icon/core/atlassian-intelligence instead.
|
|
8
|
+
* TODO: Remove on navx-1959-remove-custom-ai-icon cleanup
|
|
7
9
|
*/
|
|
8
10
|
var AiIcon = function AiIcon(props) {
|
|
9
11
|
return (
|
|
@@ -4,6 +4,8 @@ import type { SVGProps } from '@atlaskit/icon/types';
|
|
|
4
4
|
* The bulk of this file is originally from
|
|
5
5
|
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
6
6
|
* with modifications
|
|
7
|
+
* @deprecated Use @atlaskit/icon/core/atlassian-intelligence instead.
|
|
8
|
+
* TODO: Remove on navx-1959-remove-custom-ai-icon cleanup
|
|
7
9
|
*/
|
|
8
10
|
declare const AiIcon: (props: SVGProps) => React.JSX.Element;
|
|
9
11
|
export default AiIcon;
|
|
@@ -4,6 +4,8 @@ import type { SVGProps } from '@atlaskit/icon/types';
|
|
|
4
4
|
* The bulk of this file is originally from
|
|
5
5
|
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
6
6
|
* with modifications
|
|
7
|
+
* @deprecated Use @atlaskit/icon/core/atlassian-intelligence instead.
|
|
8
|
+
* TODO: Remove on navx-1959-remove-custom-ai-icon cleanup
|
|
7
9
|
*/
|
|
8
10
|
declare const AiIcon: (props: SVGProps) => React.JSX.Element;
|
|
9
11
|
export default AiIcon;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "43.5.
|
|
3
|
+
"version": "43.5.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
65
65
|
"@atlaskit/popup": "^4.6.0",
|
|
66
66
|
"@atlaskit/primitives": "^16.1.0",
|
|
67
|
-
"@atlaskit/section-message": "^8.
|
|
67
|
+
"@atlaskit/section-message": "^8.9.0",
|
|
68
68
|
"@atlaskit/select": "^21.3.0",
|
|
69
69
|
"@atlaskit/spinner": "^19.0.0",
|
|
70
70
|
"@atlaskit/textarea": "^8.0.0",
|
|
71
71
|
"@atlaskit/textfield": "^8.0.0",
|
|
72
72
|
"@atlaskit/theme": "^21.0.0",
|
|
73
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
74
|
-
"@atlaskit/tokens": "^7.
|
|
73
|
+
"@atlaskit/tmp-editor-statsig": "^13.26.0",
|
|
74
|
+
"@atlaskit/tokens": "^7.1.0",
|
|
75
75
|
"@atlaskit/tooltip": "^20.7.0",
|
|
76
76
|
"@atlaskit/ufo": "^0.4.0",
|
|
77
77
|
"@babel/runtime": "^7.0.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@atlaskit/analytics-listeners": "^9.1.0",
|
|
101
101
|
"@atlaskit/css-reset": "^7.3.0",
|
|
102
102
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
103
|
-
"@atlaskit/react-ufo": "^4.
|
|
103
|
+
"@atlaskit/react-ufo": "^4.14.0",
|
|
104
104
|
"@atlaskit/ssr": "workspace:^",
|
|
105
105
|
"@atlassian/analytics-tooling": "^0.5.0",
|
|
106
106
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
@@ -226,6 +226,9 @@
|
|
|
226
226
|
"expose-product-details-from-smart-card": {
|
|
227
227
|
"type": "boolean"
|
|
228
228
|
},
|
|
229
|
+
"navx-1959-remove-custom-ai-icon": {
|
|
230
|
+
"type": "boolean"
|
|
231
|
+
},
|
|
229
232
|
"navx-1910-fix-hovercard-performance-metrics": {
|
|
230
233
|
"type": "boolean"
|
|
231
234
|
},
|