@atlaskit/smart-card 45.2.5 → 45.3.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 +8 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydone--default.png +3 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydoneonmount--default.png +3 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryerror--default.png +3 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryloading--default.png +3 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryready--default.png +3 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions-with-related-urls--default.png +2 -2
- package/dist/cjs/constants.js +1 -2
- package/dist/cjs/messages.js +0 -10
- package/dist/cjs/utils/ai-summary.js +1 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +3 -5
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +1 -4
- package/dist/cjs/view/FlexibleCard/components/common/ai-summary/ai-learn-more-anchor.js +1 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/ai-summary/ai-footer/index.js +1 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydone--default.png +3 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydoneonmount--default.png +3 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryerror--default.png +3 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryloading--default.png +3 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryready--default.png +3 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions-with-related-urls--default.png +2 -2
- package/dist/es2019/constants.js +0 -1
- package/dist/es2019/messages.js +0 -10
- package/dist/es2019/utils/ai-summary.js +1 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +3 -5
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +1 -4
- package/dist/es2019/view/FlexibleCard/components/common/ai-summary/ai-learn-more-anchor.js +2 -3
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/ai-summary/ai-footer/index.js +1 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydone--default.png +3 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydoneonmount--default.png +3 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryerror--default.png +3 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryloading--default.png +3 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryready--default.png +3 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions-with-related-urls--default.png +2 -2
- package/dist/esm/constants.js +0 -1
- package/dist/esm/messages.js +0 -10
- package/dist/esm/utils/ai-summary.js +1 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +3 -5
- package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +1 -4
- package/dist/esm/view/FlexibleCard/components/common/ai-summary/ai-learn-more-anchor.js +2 -3
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/ai-summary/ai-footer/index.js +1 -2
- package/dist/types/constants.d.ts +0 -1
- package/dist/types/messages.d.ts +1 -1
- package/package.json +1 -4
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydone--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydone--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydoneonmount--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydoneonmount--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryerror--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryerror--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryloading--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryloading--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryready--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryready--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydone--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydone--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydoneonmount--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydoneonmount--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryerror--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryerror--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryloading--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryloading--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryready--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryready--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydone--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydone--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydoneonmount--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummarydoneonmount--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryerror--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryerror--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryloading--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryloading--default--platform-sl-ai-summary-rebrand-true.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryready--default--platform-sl-ai-summary-rebrand-false.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/flex-ui-block-ai-summary/flexuiblockaisummaryready--default--platform-sl-ai-summary-rebrand-true.png +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 45.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`05e2e74c028a3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/05e2e74c028a3) -
|
|
8
|
+
Cleanup feature gate platform_sl_ai_summary_rebrand. AI Summary now permanently uses Rovo branding
|
|
9
|
+
(RovoIcon, Rovo content URLs, and Rovo action labels).
|
|
10
|
+
|
|
3
11
|
## 45.2.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b92a8933c53ddbdc5d5782b5cb71c93635fa8a965388db4dc0c1285792798e7f
|
|
3
|
+
size 36295
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b92a8933c53ddbdc5d5782b5cb71c93635fa8a965388db4dc0c1285792798e7f
|
|
3
|
+
size 36295
|
package/dist/cjs/constants.js
CHANGED
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SmartLinkWidth = exports.SmartLinkTheme = exports.SmartLinkStatus = exports.SmartLinkSize = exports.SmartLinkPosition = exports.SmartLinkInternalTheme = exports.SmartLinkDirection = exports.SmartLinkAlignment = exports.MediaType = exports.MediaPlacement = exports.InternalActionName = exports.IconType = exports.ElementName = exports.CardDisplay = exports.CardAction = exports.CONTENT_URL_SECURITY_AND_PERMISSIONS = exports.CONTENT_URL_ROVO = exports.CONTENT_URL_AI_TROUBLESHOOTING = exports.
|
|
6
|
+
exports.SmartLinkWidth = exports.SmartLinkTheme = exports.SmartLinkStatus = exports.SmartLinkSize = exports.SmartLinkPosition = exports.SmartLinkInternalTheme = exports.SmartLinkDirection = exports.SmartLinkAlignment = exports.MediaType = exports.MediaPlacement = exports.InternalActionName = exports.IconType = exports.ElementName = exports.CardDisplay = exports.CardAction = exports.CONTENT_URL_SECURITY_AND_PERMISSIONS = exports.CONTENT_URL_ROVO = exports.CONTENT_URL_AI_TROUBLESHOOTING = exports.CONTENT_URL_ACCEPTABLE_USE_POLICY = exports.CONTENT_URL_3P_ACCOUNT_AUTH = exports.ActionName = void 0;
|
|
7
7
|
var CONTENT_URL_SECURITY_AND_PERMISSIONS = exports.CONTENT_URL_SECURITY_AND_PERMISSIONS = 'https://support.atlassian.com/confluence-cloud/docs/insert-links-and-anchors/#Smart-links';
|
|
8
8
|
var CONTENT_URL_3P_ACCOUNT_AUTH = exports.CONTENT_URL_3P_ACCOUNT_AUTH = 'https://support.atlassian.com/confluence-cloud/docs/what-data-is-sent-and-received-when-pasting-a-smart-link/';
|
|
9
|
-
var CONTENT_URL_AI = exports.CONTENT_URL_AI = 'https://www.atlassian.com/trust/atlassian-intelligence';
|
|
10
9
|
var CONTENT_URL_ROVO = exports.CONTENT_URL_ROVO = 'https://www.atlassian.com/trust/ai';
|
|
11
10
|
var CONTENT_URL_AI_TROUBLESHOOTING = exports.CONTENT_URL_AI_TROUBLESHOOTING = 'https://status.atlassian.com/';
|
|
12
11
|
var CONTENT_URL_ACCEPTABLE_USE_POLICY = exports.CONTENT_URL_ACCEPTABLE_USE_POLICY = 'https://www.atlassian.com/legal/acceptable-use-policy';
|
package/dist/cjs/messages.js
CHANGED
|
@@ -36,11 +36,6 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
|
36
36
|
defaultMessage: 'Content quality may vary',
|
|
37
37
|
description: 'Additional info about the content summarised by AI.'
|
|
38
38
|
},
|
|
39
|
-
ai_summary_error_generic: {
|
|
40
|
-
id: 'fabric.linking.ai_summary_error_generic',
|
|
41
|
-
defaultMessage: 'Atlassian Intelligence (AI) isn’t responding. Try again later or <a>check the status of AI</a>.',
|
|
42
|
-
description: 'Shown when AI Summary encountered an unexpected error while summarizing the linked resource content.'
|
|
43
|
-
},
|
|
44
39
|
ai_summary_error_generic_rebrand: {
|
|
45
40
|
id: 'fabric.linking.ai_summary_error_generic_rebrand',
|
|
46
41
|
defaultMessage: 'Rovo isn’t responding. Try again later or <a>check the status of AI</a>.',
|
|
@@ -281,11 +276,6 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
|
281
276
|
defaultMessage: 'Download file',
|
|
282
277
|
description: 'Label for the download file action in a smart link or card action menu, allowing the user to save the linked file locally.'
|
|
283
278
|
},
|
|
284
|
-
ai_summary_action: {
|
|
285
|
-
id: 'fabric.linking.ai_summary_action',
|
|
286
|
-
defaultMessage: 'Summarize with AI',
|
|
287
|
-
description: 'Label for the AI summarize action in a smart link or hover card action menu, allowing the user to generate an AI summary of the linked content.'
|
|
288
|
-
},
|
|
289
279
|
ai_summary_action_rebrand: {
|
|
290
280
|
id: 'fabric.linking.ai_summary_action_rebrand',
|
|
291
281
|
defaultMessage: 'Summarize with Rovo',
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getIsAISummaryEnabled = exports.getAISummaryErrorMessage = void 0;
|
|
7
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
7
|
var _constants = require("../constants");
|
|
9
8
|
var _messages = require("../messages");
|
|
10
9
|
var getIsAISummaryEnabled = exports.getIsAISummaryEnabled = function getIsAISummaryEnabled() {
|
|
@@ -30,7 +29,7 @@ var getAISummaryErrorMessage = exports.getAISummaryErrorMessage = function getAI
|
|
|
30
29
|
};
|
|
31
30
|
default:
|
|
32
31
|
return {
|
|
33
|
-
message:
|
|
32
|
+
message: _messages.messages.ai_summary_error_generic_rebrand,
|
|
34
33
|
url: _constants.CONTENT_URL_AI_TROUBLESHOOTING
|
|
35
34
|
};
|
|
36
35
|
}
|
|
@@ -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: "45.2.
|
|
14
|
+
packageVersion: "45.2.5" || ''
|
|
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,7 +11,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _reactIntl = require("react-intl");
|
|
13
13
|
var _rovo = _interopRequireDefault(require("@atlaskit/icon-lab/core/rovo"));
|
|
14
|
-
var _atlassianIntelligence = _interopRequireDefault(require("@atlaskit/icon/core/atlassian-intelligence"));
|
|
15
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
|
|
17
16
|
var _messages = require("../../../../../messages");
|
|
@@ -46,10 +45,9 @@ function AISummariseAction(_ref) {
|
|
|
46
45
|
(_summariseUrl = summariseUrl()) === null || _summariseUrl === void 0 || _summariseUrl.then(onCompleted, onCompleted);
|
|
47
46
|
onClickCallback === null || onClickCallback === void 0 || onClickCallback();
|
|
48
47
|
}, [fireEvent, onClickCallback, onCompleted, summariseUrl]);
|
|
49
|
-
var Icon = (0, _platformFeatureFlags.fg)('platform_sl_ai_summary_rebrand') ? _rovo.default : _atlassianIntelligence.default;
|
|
50
48
|
return /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
|
|
51
|
-
content: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage,
|
|
52
|
-
icon: /*#__PURE__*/_react.default.createElement(
|
|
49
|
+
content: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.messages.ai_summary_action_rebrand),
|
|
50
|
+
icon: /*#__PURE__*/_react.default.createElement(_rovo.default, (0, _extends2.default)({
|
|
53
51
|
spacing: "spacious",
|
|
54
52
|
color: "currentColor",
|
|
55
53
|
label: "Summarise with AI"
|
|
@@ -59,6 +57,6 @@ function AISummariseAction(_ref) {
|
|
|
59
57
|
onClick: handleActionClick,
|
|
60
58
|
testId: "".concat(testId, "-summarise-action"),
|
|
61
59
|
isLoading: status === 'loading',
|
|
62
|
-
tooltipMessage: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage,
|
|
60
|
+
tooltipMessage: /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.messages.ai_summary_action_description_rebrand)
|
|
63
61
|
}, props));
|
|
64
62
|
}
|
package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js
CHANGED
|
@@ -9,8 +9,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _reactIntl = require("react-intl");
|
|
10
10
|
var _reactMagneticDi = require("react-magnetic-di");
|
|
11
11
|
var _rovo = _interopRequireDefault(require("@atlaskit/icon-lab/core/rovo"));
|
|
12
|
-
var _atlassianIntelligence = _interopRequireDefault(require("@atlaskit/icon/core/atlassian-intelligence"));
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
12
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
15
13
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
16
14
|
var _messages = require("../../../../../../messages");
|
|
@@ -24,7 +22,6 @@ var AIFooterMetadata = exports.AIFooterMetadata = function AIFooterMetadata(_ref
|
|
|
24
22
|
if (status !== 'done') {
|
|
25
23
|
return null;
|
|
26
24
|
}
|
|
27
|
-
var Icon = (0, _platformFeatureFlags.fg)('platform_sl_ai_summary_rebrand') ? _rovo.default : _atlassianIntelligence.default;
|
|
28
25
|
return /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
|
|
29
26
|
space: "space.100",
|
|
30
27
|
testId: testId,
|
|
@@ -38,7 +35,7 @@ var AIFooterMetadata = exports.AIFooterMetadata = function AIFooterMetadata(_ref
|
|
|
38
35
|
label: "Information",
|
|
39
36
|
color: "var(--ds-icon-subtle, #505258)"
|
|
40
37
|
}));
|
|
41
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
38
|
+
}), /*#__PURE__*/_react.default.createElement(_rovo.default, {
|
|
42
39
|
label: "AI",
|
|
43
40
|
color: "var(--ds-icon-subtle, #505258)"
|
|
44
41
|
}));
|
|
@@ -9,14 +9,13 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _constants = require("../../../../../constants");
|
|
14
13
|
var _excluded = ["children"];
|
|
15
14
|
var AILearnMoreAnchor = function AILearnMoreAnchor(_ref) {
|
|
16
15
|
var children = _ref.children,
|
|
17
16
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
18
17
|
return /*#__PURE__*/_react.default.createElement(_link.default, (0, _extends2.default)({
|
|
19
|
-
href:
|
|
18
|
+
href: _constants.CONTENT_URL_ROVO,
|
|
20
19
|
target: "_blank",
|
|
21
20
|
rel: "noopener noreferrer"
|
|
22
21
|
}, props), children);
|
|
@@ -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: "45.2.
|
|
22
|
+
packageVersion: "45.2.5",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -13,7 +13,6 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
13
13
|
var _reactIntl = require("react-intl");
|
|
14
14
|
var _informationCircle = _interopRequireDefault(require("@atlaskit/icon/core/information-circle"));
|
|
15
15
|
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
16
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
18
17
|
var _constants = require("../../../../constants");
|
|
19
18
|
var _messages = require("../../../../messages");
|
|
@@ -33,7 +32,7 @@ var AIFooter = function AIFooter() {
|
|
|
33
32
|
}), /*#__PURE__*/React.createElement(_compiled.Text, {
|
|
34
33
|
size: "small"
|
|
35
34
|
}, /*#__PURE__*/React.createElement(_link.default, {
|
|
36
|
-
href:
|
|
35
|
+
href: _constants.CONTENT_URL_ROVO,
|
|
37
36
|
appearance: "subtle",
|
|
38
37
|
target: "_blank"
|
|
39
38
|
}, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _messages.messages.ai_disclaimer))));
|
package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b92a8933c53ddbdc5d5782b5cb71c93635fa8a965388db4dc0c1285792798e7f
|
|
3
|
+
size 36295
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b92a8933c53ddbdc5d5782b5cb71c93635fa8a965388db4dc0c1285792798e7f
|
|
3
|
+
size 36295
|
package/dist/es2019/constants.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export const CONTENT_URL_SECURITY_AND_PERMISSIONS = 'https://support.atlassian.com/confluence-cloud/docs/insert-links-and-anchors/#Smart-links';
|
|
2
2
|
export const CONTENT_URL_3P_ACCOUNT_AUTH = 'https://support.atlassian.com/confluence-cloud/docs/what-data-is-sent-and-received-when-pasting-a-smart-link/';
|
|
3
|
-
export const CONTENT_URL_AI = 'https://www.atlassian.com/trust/atlassian-intelligence';
|
|
4
3
|
export const CONTENT_URL_ROVO = 'https://www.atlassian.com/trust/ai';
|
|
5
4
|
export const CONTENT_URL_AI_TROUBLESHOOTING = 'https://status.atlassian.com/';
|
|
6
5
|
export const CONTENT_URL_ACCEPTABLE_USE_POLICY = 'https://www.atlassian.com/legal/acceptable-use-policy';
|
package/dist/es2019/messages.js
CHANGED
|
@@ -30,11 +30,6 @@ export const messages = defineMessages({
|
|
|
30
30
|
defaultMessage: 'Content quality may vary',
|
|
31
31
|
description: 'Additional info about the content summarised by AI.'
|
|
32
32
|
},
|
|
33
|
-
ai_summary_error_generic: {
|
|
34
|
-
id: 'fabric.linking.ai_summary_error_generic',
|
|
35
|
-
defaultMessage: 'Atlassian Intelligence (AI) isn’t responding. Try again later or <a>check the status of AI</a>.',
|
|
36
|
-
description: 'Shown when AI Summary encountered an unexpected error while summarizing the linked resource content.'
|
|
37
|
-
},
|
|
38
33
|
ai_summary_error_generic_rebrand: {
|
|
39
34
|
id: 'fabric.linking.ai_summary_error_generic_rebrand',
|
|
40
35
|
defaultMessage: 'Rovo isn’t responding. Try again later or <a>check the status of AI</a>.',
|
|
@@ -275,11 +270,6 @@ export const messages = defineMessages({
|
|
|
275
270
|
defaultMessage: 'Download file',
|
|
276
271
|
description: 'Label for the download file action in a smart link or card action menu, allowing the user to save the linked file locally.'
|
|
277
272
|
},
|
|
278
|
-
ai_summary_action: {
|
|
279
|
-
id: 'fabric.linking.ai_summary_action',
|
|
280
|
-
defaultMessage: 'Summarize with AI',
|
|
281
|
-
description: 'Label for the AI summarize action in a smart link or hover card action menu, allowing the user to generate an AI summary of the linked content.'
|
|
282
|
-
},
|
|
283
273
|
ai_summary_action_rebrand: {
|
|
284
274
|
id: 'fabric.linking.ai_summary_action_rebrand',
|
|
285
275
|
defaultMessage: 'Summarize with Rovo',
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { CONTENT_URL_ACCEPTABLE_USE_POLICY, CONTENT_URL_AI_TROUBLESHOOTING } from '../constants';
|
|
3
2
|
import { messages } from '../messages';
|
|
4
3
|
export const getIsAISummaryEnabled = (isAdminHubAIEnabled = false, response) => {
|
|
@@ -22,7 +21,7 @@ export const getAISummaryErrorMessage = error => {
|
|
|
22
21
|
};
|
|
23
22
|
default:
|
|
24
23
|
return {
|
|
25
|
-
message:
|
|
24
|
+
message: messages.ai_summary_error_generic_rebrand,
|
|
26
25
|
url: CONTENT_URL_AI_TROUBLESHOOTING
|
|
27
26
|
};
|
|
28
27
|
}
|
|
@@ -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: "45.2.
|
|
5
|
+
packageVersion: "45.2.5" || ''
|
|
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,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
4
|
import RovoIcon from '@atlaskit/icon-lab/core/rovo';
|
|
5
|
-
import AiIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
6
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
8
7
|
import { messages } from '../../../../../messages';
|
|
@@ -37,10 +36,9 @@ export function AISummariseAction({
|
|
|
37
36
|
(_summariseUrl = summariseUrl()) === null || _summariseUrl === void 0 ? void 0 : _summariseUrl.then(onCompleted, onCompleted);
|
|
38
37
|
onClickCallback === null || onClickCallback === void 0 ? void 0 : onClickCallback();
|
|
39
38
|
}, [fireEvent, onClickCallback, onCompleted, summariseUrl]);
|
|
40
|
-
const Icon = fg('platform_sl_ai_summary_rebrand') ? RovoIcon : AiIcon;
|
|
41
39
|
return /*#__PURE__*/React.createElement(Action, _extends({
|
|
42
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage,
|
|
43
|
-
icon: /*#__PURE__*/React.createElement(
|
|
40
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.ai_summary_action_rebrand),
|
|
41
|
+
icon: /*#__PURE__*/React.createElement(RovoIcon, _extends({
|
|
44
42
|
spacing: "spacious",
|
|
45
43
|
color: "currentColor",
|
|
46
44
|
label: "Summarise with AI"
|
|
@@ -50,6 +48,6 @@ export function AISummariseAction({
|
|
|
50
48
|
onClick: handleActionClick,
|
|
51
49
|
testId: `${testId}-summarise-action`,
|
|
52
50
|
isLoading: status === 'loading',
|
|
53
|
-
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage,
|
|
51
|
+
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.ai_summary_action_description_rebrand)
|
|
54
52
|
}, props));
|
|
55
53
|
}
|
|
@@ -2,8 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { FormattedMessage } from 'react-intl';
|
|
3
3
|
import { di } from 'react-magnetic-di';
|
|
4
4
|
import RovoIcon from '@atlaskit/icon-lab/core/rovo';
|
|
5
|
-
import AIIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
5
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
8
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
9
7
|
import { messages } from '../../../../../../messages';
|
|
@@ -21,7 +19,6 @@ export const AIFooterMetadata = ({
|
|
|
21
19
|
if (status !== 'done') {
|
|
22
20
|
return null;
|
|
23
21
|
}
|
|
24
|
-
const Icon = fg('platform_sl_ai_summary_rebrand') ? RovoIcon : AIIcon;
|
|
25
22
|
return /*#__PURE__*/React.createElement(Inline, {
|
|
26
23
|
space: "space.100",
|
|
27
24
|
testId: testId,
|
|
@@ -33,7 +30,7 @@ export const AIFooterMetadata = ({
|
|
|
33
30
|
}, tooltipProps => /*#__PURE__*/React.createElement(Box, tooltipProps, /*#__PURE__*/React.createElement(InfoIcon, {
|
|
34
31
|
label: "Information",
|
|
35
32
|
color: "var(--ds-icon-subtle, #505258)"
|
|
36
|
-
}))), /*#__PURE__*/React.createElement(
|
|
33
|
+
}))), /*#__PURE__*/React.createElement(RovoIcon, {
|
|
37
34
|
label: "AI",
|
|
38
35
|
color: "var(--ds-icon-subtle, #505258)"
|
|
39
36
|
}));
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Link from '@atlaskit/link';
|
|
4
|
-
import {
|
|
5
|
-
import { CONTENT_URL_AI, CONTENT_URL_ROVO } from '../../../../../constants';
|
|
4
|
+
import { CONTENT_URL_ROVO } from '../../../../../constants';
|
|
6
5
|
const AILearnMoreAnchor = ({
|
|
7
6
|
children,
|
|
8
7
|
...props
|
|
9
8
|
}) => /*#__PURE__*/React.createElement(Link, _extends({
|
|
10
|
-
href:
|
|
9
|
+
href: CONTENT_URL_ROVO,
|
|
11
10
|
target: "_blank",
|
|
12
11
|
rel: "noopener noreferrer"
|
|
13
12
|
}, props), children);
|
|
@@ -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: "45.2.
|
|
12
|
+
packageVersion: "45.2.5",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
|
|
7
7
|
import Link from '@atlaskit/link';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { Inline, Text } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import { CONTENT_URL_ROVO } from '../../../../constants';
|
|
11
10
|
import { messages } from '../../../../messages';
|
|
@@ -23,7 +22,7 @@ const AIFooter = () => /*#__PURE__*/React.createElement(Inline, {
|
|
|
23
22
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
24
23
|
size: "small"
|
|
25
24
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
26
|
-
href:
|
|
25
|
+
href: CONTENT_URL_ROVO,
|
|
27
26
|
appearance: "subtle",
|
|
28
27
|
target: "_blank"
|
|
29
28
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.ai_disclaimer))));
|
package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b92a8933c53ddbdc5d5782b5cb71c93635fa8a965388db4dc0c1285792798e7f
|
|
3
|
+
size 36295
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b92a8933c53ddbdc5d5782b5cb71c93635fa8a965388db4dc0c1285792798e7f
|
|
3
|
+
size 36295
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export var CONTENT_URL_SECURITY_AND_PERMISSIONS = 'https://support.atlassian.com/confluence-cloud/docs/insert-links-and-anchors/#Smart-links';
|
|
2
2
|
export var CONTENT_URL_3P_ACCOUNT_AUTH = 'https://support.atlassian.com/confluence-cloud/docs/what-data-is-sent-and-received-when-pasting-a-smart-link/';
|
|
3
|
-
export var CONTENT_URL_AI = 'https://www.atlassian.com/trust/atlassian-intelligence';
|
|
4
3
|
export var CONTENT_URL_ROVO = 'https://www.atlassian.com/trust/ai';
|
|
5
4
|
export var CONTENT_URL_AI_TROUBLESHOOTING = 'https://status.atlassian.com/';
|
|
6
5
|
export var CONTENT_URL_ACCEPTABLE_USE_POLICY = 'https://www.atlassian.com/legal/acceptable-use-policy';
|
package/dist/esm/messages.js
CHANGED
|
@@ -30,11 +30,6 @@ export var messages = defineMessages({
|
|
|
30
30
|
defaultMessage: 'Content quality may vary',
|
|
31
31
|
description: 'Additional info about the content summarised by AI.'
|
|
32
32
|
},
|
|
33
|
-
ai_summary_error_generic: {
|
|
34
|
-
id: 'fabric.linking.ai_summary_error_generic',
|
|
35
|
-
defaultMessage: 'Atlassian Intelligence (AI) isn’t responding. Try again later or <a>check the status of AI</a>.',
|
|
36
|
-
description: 'Shown when AI Summary encountered an unexpected error while summarizing the linked resource content.'
|
|
37
|
-
},
|
|
38
33
|
ai_summary_error_generic_rebrand: {
|
|
39
34
|
id: 'fabric.linking.ai_summary_error_generic_rebrand',
|
|
40
35
|
defaultMessage: 'Rovo isn’t responding. Try again later or <a>check the status of AI</a>.',
|
|
@@ -275,11 +270,6 @@ export var messages = defineMessages({
|
|
|
275
270
|
defaultMessage: 'Download file',
|
|
276
271
|
description: 'Label for the download file action in a smart link or card action menu, allowing the user to save the linked file locally.'
|
|
277
272
|
},
|
|
278
|
-
ai_summary_action: {
|
|
279
|
-
id: 'fabric.linking.ai_summary_action',
|
|
280
|
-
defaultMessage: 'Summarize with AI',
|
|
281
|
-
description: 'Label for the AI summarize action in a smart link or hover card action menu, allowing the user to generate an AI summary of the linked content.'
|
|
282
|
-
},
|
|
283
273
|
ai_summary_action_rebrand: {
|
|
284
274
|
id: 'fabric.linking.ai_summary_action_rebrand',
|
|
285
275
|
defaultMessage: 'Summarize with Rovo',
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { CONTENT_URL_ACCEPTABLE_USE_POLICY, CONTENT_URL_AI_TROUBLESHOOTING } from '../constants';
|
|
3
2
|
import { messages } from '../messages';
|
|
4
3
|
export var getIsAISummaryEnabled = function getIsAISummaryEnabled() {
|
|
@@ -24,7 +23,7 @@ export var getAISummaryErrorMessage = function getAISummaryErrorMessage(error) {
|
|
|
24
23
|
};
|
|
25
24
|
default:
|
|
26
25
|
return {
|
|
27
|
-
message:
|
|
26
|
+
message: messages.ai_summary_error_generic_rebrand,
|
|
28
27
|
url: CONTENT_URL_AI_TROUBLESHOOTING
|
|
29
28
|
};
|
|
30
29
|
}
|
|
@@ -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: "45.2.
|
|
7
|
+
packageVersion: "45.2.5" || ''
|
|
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,7 +4,6 @@ var _excluded = ["onClick", "onError", "testId", "status", "summariseUrl"];
|
|
|
4
4
|
import React, { useCallback } from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import RovoIcon from '@atlaskit/icon-lab/core/rovo';
|
|
7
|
-
import AiIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
8
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
10
9
|
import { messages } from '../../../../../messages';
|
|
@@ -37,10 +36,9 @@ export function AISummariseAction(_ref) {
|
|
|
37
36
|
(_summariseUrl = summariseUrl()) === null || _summariseUrl === void 0 || _summariseUrl.then(onCompleted, onCompleted);
|
|
38
37
|
onClickCallback === null || onClickCallback === void 0 || onClickCallback();
|
|
39
38
|
}, [fireEvent, onClickCallback, onCompleted, summariseUrl]);
|
|
40
|
-
var Icon = fg('platform_sl_ai_summary_rebrand') ? RovoIcon : AiIcon;
|
|
41
39
|
return /*#__PURE__*/React.createElement(Action, _extends({
|
|
42
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage,
|
|
43
|
-
icon: /*#__PURE__*/React.createElement(
|
|
40
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.ai_summary_action_rebrand),
|
|
41
|
+
icon: /*#__PURE__*/React.createElement(RovoIcon, _extends({
|
|
44
42
|
spacing: "spacious",
|
|
45
43
|
color: "currentColor",
|
|
46
44
|
label: "Summarise with AI"
|
|
@@ -50,6 +48,6 @@ export function AISummariseAction(_ref) {
|
|
|
50
48
|
onClick: handleActionClick,
|
|
51
49
|
testId: "".concat(testId, "-summarise-action"),
|
|
52
50
|
isLoading: status === 'loading',
|
|
53
|
-
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage,
|
|
51
|
+
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.ai_summary_action_description_rebrand)
|
|
54
52
|
}, props));
|
|
55
53
|
}
|
package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js
CHANGED
|
@@ -2,8 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { FormattedMessage } from 'react-intl';
|
|
3
3
|
import { di } from 'react-magnetic-di';
|
|
4
4
|
import RovoIcon from '@atlaskit/icon-lab/core/rovo';
|
|
5
|
-
import AIIcon from '@atlaskit/icon/core/atlassian-intelligence';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
5
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
8
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
9
7
|
import { messages } from '../../../../../../messages';
|
|
@@ -17,7 +15,6 @@ export var AIFooterMetadata = function AIFooterMetadata(_ref) {
|
|
|
17
15
|
if (status !== 'done') {
|
|
18
16
|
return null;
|
|
19
17
|
}
|
|
20
|
-
var Icon = fg('platform_sl_ai_summary_rebrand') ? RovoIcon : AIIcon;
|
|
21
18
|
return /*#__PURE__*/React.createElement(Inline, {
|
|
22
19
|
space: "space.100",
|
|
23
20
|
testId: testId,
|
|
@@ -31,7 +28,7 @@ export var AIFooterMetadata = function AIFooterMetadata(_ref) {
|
|
|
31
28
|
label: "Information",
|
|
32
29
|
color: "var(--ds-icon-subtle, #505258)"
|
|
33
30
|
}));
|
|
34
|
-
}), /*#__PURE__*/React.createElement(
|
|
31
|
+
}), /*#__PURE__*/React.createElement(RovoIcon, {
|
|
35
32
|
label: "AI",
|
|
36
33
|
color: "var(--ds-icon-subtle, #505258)"
|
|
37
34
|
}));
|
|
@@ -3,13 +3,12 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Link from '@atlaskit/link';
|
|
6
|
-
import {
|
|
7
|
-
import { CONTENT_URL_AI, CONTENT_URL_ROVO } from '../../../../../constants';
|
|
6
|
+
import { CONTENT_URL_ROVO } from '../../../../../constants';
|
|
8
7
|
var AILearnMoreAnchor = function AILearnMoreAnchor(_ref) {
|
|
9
8
|
var children = _ref.children,
|
|
10
9
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
11
10
|
return /*#__PURE__*/React.createElement(Link, _extends({
|
|
12
|
-
href:
|
|
11
|
+
href: CONTENT_URL_ROVO,
|
|
13
12
|
target: "_blank",
|
|
14
13
|
rel: "noopener noreferrer"
|
|
15
14
|
}, props), children);
|
|
@@ -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: "45.2.
|
|
15
|
+
packageVersion: "45.2.5",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -5,7 +5,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
|
|
7
7
|
import Link from '@atlaskit/link';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { Inline, Text } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import { CONTENT_URL_ROVO } from '../../../../constants';
|
|
11
10
|
import { messages } from '../../../../messages';
|
|
@@ -24,7 +23,7 @@ var AIFooter = function AIFooter() {
|
|
|
24
23
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
25
24
|
size: "small"
|
|
26
25
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
27
|
-
href:
|
|
26
|
+
href: CONTENT_URL_ROVO,
|
|
28
27
|
appearance: "subtle",
|
|
29
28
|
target: "_blank"
|
|
30
29
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.ai_disclaimer))));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const CONTENT_URL_SECURITY_AND_PERMISSIONS = "https://support.atlassian.com/confluence-cloud/docs/insert-links-and-anchors/#Smart-links";
|
|
2
2
|
export declare const CONTENT_URL_3P_ACCOUNT_AUTH = "https://support.atlassian.com/confluence-cloud/docs/what-data-is-sent-and-received-when-pasting-a-smart-link/";
|
|
3
|
-
export declare const CONTENT_URL_AI = "https://www.atlassian.com/trust/atlassian-intelligence";
|
|
4
3
|
export declare const CONTENT_URL_ROVO = "https://www.atlassian.com/trust/ai";
|
|
5
4
|
export declare const CONTENT_URL_AI_TROUBLESHOOTING = "https://status.atlassian.com/";
|
|
6
5
|
export declare const CONTENT_URL_ACCEPTABLE_USE_POLICY = "https://www.atlassian.com/legal/acceptable-use-policy";
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type MessageDescriptor } from 'react-intl';
|
|
2
2
|
export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
|
|
3
3
|
export type RovoChatActionMessageKey = 'rovo_prompt_context_generic' | 'rovo_prompt_context_generic_plural' | 'rovo_prompt_context_confluence_page' | 'rovo_prompt_context_confluence_page_short' | 'rovo_prompt_context_jira_work_item' | 'rovo_prompt_context_jira_work_item_short' | 'rovo_prompt_button_recommend_other_sources' | 'rovo_prompt_message_recommend_other_sources' | 'rovo_prompt_button_show_other_mentions' | 'rovo_prompt_message_show_other_mentions' | 'rovo_prompt_button_suggest_improvement' | 'rovo_prompt_message_suggest_improvement' | 'rovo_prompt_message_summarize' | 'rovo_prompt_button_ask_rovo_anything' | 'rovo_prompt_message_ask_rovo_anything' | 'rovo_prompt_button_highlight_relevant_content' | 'rovo_prompt_message_highlight_relevant_content' | 'rovo_prompt_button_identify_key_trends' | 'rovo_prompt_message_identify_key_trends' | 'rovo_prompt_button_identify_key_points' | 'rovo_prompt_message_identify_key_points' | 'rovo_prompt_button_find_open_questions' | 'rovo_prompt_message_find_open_questions' | 'rovo_prompt_button_key_highlights' | 'rovo_prompt_message_key_highlights' | 'rovo_prompt_message_summarize_document' | 'rovo_prompt_message_summarize_presentation' | 'rovo_prompt_button_explain_code' | 'rovo_prompt_message_explain_code' | 'rovo_prompt_button_catch_up' | 'rovo_prompt_message_catch_up' | 'rovo_prompt_button_salesforce_prep' | 'rovo_prompt_message_salesforce_prep';
|
|
4
|
-
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | '
|
|
4
|
+
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summary_error_generic_rebrand' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action_rebrand' | 'ai_summary_action_description' | 'ai_summary_action_description_rebrand' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'compass_applied_components_count' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_link_account_success_flag_description' | 'connect_link_account_success_flag_title' | 'connect_link_account_success_flag_title_default' | 'connect_unauthorised_account_action' | 'connect_inline_social_proof' | 'social_proof_inline_cta_tag_high_with_context' | 'social_proof_inline_cta_tag_high_no_context' | 'social_proof_inline_cta_tag_low_with_context' | 'social_proof_inline_cta_tag_low_no_context' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project_descriptionGalaxia' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_project_errorGalaxia' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_modal' | 'preview_panel' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'rovo_actions_explore' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project_descriptionGalaxia' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_project_errorGalaxia' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | 'view' | 'viewIn' | 'viewInProvider' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh' | 'connect_unauthorised_account_description_appify' | 'connect_unauthorised_account_description_no_provider_appify' | 'learn_more_about_connecting_account_experiment_shorter' | 'learn_more_about_connecting_account_appify' | 'rovo_summary_loading' | 'ai_disclaimer' | 'rovo_unauthorised_title' | 'rovo_unauthorised_title_no_provider' | 'rovo_unauthorised_feature_clear_link_names' | 'rovo_unauthorised_feature_understand_linked_docs' | 'rovo_unauthorised_feature_go_deeper_smart_suggestions' | 'rovo_unauthorised_connect_account' | 'rovo_unauthorised_not_now' | 'rovo_chat_action_section_header' | 'rovo_prompt_button_summarize_this' | 'rovo_prompt_button_ask_a_specific_question' | 'rovo_prompt_button_show_me_whats_relevant' | RovoChatActionMessageKey | 'pre_auth_block_social_proof_not_low' | 'pre_auth_block_social_proof_low';
|
|
5
5
|
type Messages = {
|
|
6
6
|
[K in MessageKey]: MessageDescriptor;
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "45.
|
|
3
|
+
"version": "45.3.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -212,9 +212,6 @@
|
|
|
212
212
|
"platform_sl_connect_account_flag": {
|
|
213
213
|
"type": "boolean"
|
|
214
214
|
},
|
|
215
|
-
"platform_sl_ai_summary_rebrand": {
|
|
216
|
-
"type": "boolean"
|
|
217
|
-
},
|
|
218
215
|
"platform-dst-shape-theme-default": {
|
|
219
216
|
"type": "boolean"
|
|
220
217
|
},
|