@atlaskit/smart-card 35.2.8 → 35.2.10
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 +18 -0
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +5 -7
- package/dist/cjs/state/hooks/use-ai-summary/index.js +6 -16
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/InlineCard/ErroredView/index.compiled.css +1 -0
- package/dist/cjs/view/InlineCard/ErroredView/index.js +50 -18
- package/dist/cjs/view/InlineCard/ForbiddenView/index.compiled.css +3 -1
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +2 -2
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.compiled.css +3 -1
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +5 -3
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.compiled.css +1 -0
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +25 -10
- package/dist/cjs/view/InlineCard/common/action-button/index.js +1 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -4
- package/dist/es2019/state/hooks/use-ai-summary/index.js +2 -9
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/InlineCard/ErroredView/index.compiled.css +1 -0
- package/dist/es2019/view/InlineCard/ErroredView/index.js +49 -17
- package/dist/es2019/view/InlineCard/ForbiddenView/index.compiled.css +3 -1
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +2 -2
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.compiled.css +3 -1
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +5 -3
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.compiled.css +1 -0
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +25 -10
- package/dist/es2019/view/InlineCard/common/action-button/index.js +1 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +5 -7
- package/dist/esm/state/hooks/use-ai-summary/index.js +6 -16
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/InlineCard/ErroredView/index.compiled.css +1 -0
- package/dist/esm/view/InlineCard/ErroredView/index.js +49 -17
- package/dist/esm/view/InlineCard/ForbiddenView/index.compiled.css +3 -1
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +2 -2
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.compiled.css +3 -1
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +5 -3
- package/dist/esm/view/InlineCard/UnauthorisedView/index.compiled.css +1 -0
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +25 -10
- package/dist/esm/view/InlineCard/common/action-button/index.js +1 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 35.2.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#127235](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/127235)
|
|
8
|
+
[`b80e1ceb8e2fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b80e1ceb8e2fc) -
|
|
9
|
+
Clean up feature gate for locale summarise AI feature
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 35.2.9
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#124203](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/124203)
|
|
17
|
+
[`e28e412a54a1e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e28e412a54a1e) -
|
|
18
|
+
[ux] EDM-11969: Fix SL inline card icon positioning
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 35.2.8
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -12,15 +12,14 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
13
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
14
14
|
var _linkingCommon = require("@atlaskit/linking-common");
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _readStream = require("./readStream");
|
|
17
16
|
var _types = require("./types");
|
|
18
17
|
var _utils = require("./utils");
|
|
18
|
+
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; }
|
|
19
|
+
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; }
|
|
19
20
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
20
21
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
21
22
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
22
|
-
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; }
|
|
23
|
-
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; }
|
|
24
23
|
function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
|
|
25
24
|
function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, return: function _return(r) { var n = this.s.return; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, throw: function _throw(r) { var n = this.s.return; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
|
|
26
25
|
var AISummaryService = exports.AISummaryService = /*#__PURE__*/function () {
|
|
@@ -48,14 +47,13 @@ var AISummaryService = exports.AISummaryService = /*#__PURE__*/function () {
|
|
|
48
47
|
case 0:
|
|
49
48
|
payload = {
|
|
50
49
|
recipient_agent_named_id: 'smartlink_summary_agent',
|
|
51
|
-
agent_input_context:
|
|
50
|
+
agent_input_context: {
|
|
52
51
|
content_url: _this.url,
|
|
53
52
|
content_ari: _this.ari,
|
|
54
53
|
prompt_id: 'smart_links',
|
|
55
|
-
summary_output_mimetype: 'text/markdown'
|
|
56
|
-
}, (0, _platformFeatureFlags.fg)('send_locale_to_summarize_in_assistance-service') && {
|
|
54
|
+
summary_output_mimetype: 'text/markdown',
|
|
57
55
|
locale: _this.locale
|
|
58
|
-
}
|
|
56
|
+
}
|
|
59
57
|
};
|
|
60
58
|
options = {
|
|
61
59
|
method: 'POST',
|
|
@@ -5,15 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.useAISummary = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
9
|
var _react = require("react");
|
|
11
10
|
var _reactIntlNext = require("react-intl-next");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
11
|
var _aiSummaryService = require("./ai-summary-service");
|
|
14
12
|
var _store = require("./ai-summary-service/store");
|
|
15
|
-
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
|
-
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
13
|
/**
|
|
18
14
|
* Stream AI summary for an url.
|
|
19
15
|
* For hook specific to AI summary on as a smart link, please see useAISummaryAction.
|
|
@@ -35,30 +31,24 @@ var useAISummary = exports.useAISummary = function useAISummary(props) {
|
|
|
35
31
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
36
32
|
state = _useState2[0],
|
|
37
33
|
setState = _useState2[1];
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
(0, _reactIntlNext.useIntl)() : {
|
|
41
|
-
locale: undefined
|
|
42
|
-
},
|
|
43
|
-
locale = _ref.locale;
|
|
34
|
+
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
35
|
+
locale = _useIntl.locale;
|
|
44
36
|
(0, _react.useEffect)(function () {
|
|
45
37
|
var _AISummariesStore$get2;
|
|
46
38
|
//do not create a service for the empty URL string when the link data is not yet available,
|
|
47
39
|
//or the service has already been created and cached.
|
|
48
40
|
if (url && !_store.AISummariesStore.get(url)) {
|
|
49
|
-
_store.AISummariesStore.set(url, new _aiSummaryService.AISummaryService(
|
|
41
|
+
_store.AISummariesStore.set(url, new _aiSummaryService.AISummaryService({
|
|
50
42
|
url: url,
|
|
51
43
|
ari: ari,
|
|
52
44
|
baseUrl: baseUrl,
|
|
53
45
|
product: product,
|
|
54
|
-
envKey: envKey
|
|
55
|
-
|
|
56
|
-
locale: locale
|
|
57
|
-
}), {}, {
|
|
46
|
+
envKey: envKey,
|
|
47
|
+
locale: locale,
|
|
58
48
|
onError: onError,
|
|
59
49
|
onStart: onStart,
|
|
60
50
|
onSuccess: onSuccess
|
|
61
|
-
}))
|
|
51
|
+
}));
|
|
62
52
|
}
|
|
63
53
|
|
|
64
54
|
//returns function that calls unsubscribe method
|
|
@@ -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: "35.2.
|
|
14
|
+
packageVersion: "35.2.10"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -11,7 +11,8 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _reactIntlNext = require("react-intl-next");
|
|
13
13
|
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
14
|
-
var _error = _interopRequireDefault(require("@atlaskit/icon/
|
|
14
|
+
var _error = _interopRequireDefault(require("@atlaskit/icon/core/migration/error"));
|
|
15
|
+
var _error2 = _interopRequireDefault(require("@atlaskit/icon/utility/migration/error"));
|
|
15
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
17
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
@@ -25,7 +26,38 @@ var _styled = require("../styled");
|
|
|
25
26
|
var _withFrameStyleControl = _interopRequireDefault(require("../utils/withFrameStyleControl"));
|
|
26
27
|
var _InlineCardErroredViewOld = require("./InlineCardErroredViewOld");
|
|
27
28
|
var styles = {
|
|
28
|
-
iconWrapper: "_2hwx1i6y"
|
|
29
|
+
iconWrapper: "_2hwx1i6y",
|
|
30
|
+
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
31
|
+
};
|
|
32
|
+
var fallbackIcon = function fallbackIcon() {
|
|
33
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
35
|
+
as: "span",
|
|
36
|
+
xcss: styles.fallbackIconWrapper
|
|
37
|
+
}, /*#__PURE__*/_react.default.createElement(_error.default, {
|
|
38
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
39
|
+
label: "error",
|
|
40
|
+
LEGACY_size: "small",
|
|
41
|
+
testId: "errored-view-default-icon"
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
if ((0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration')) {
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
46
|
+
as: "span",
|
|
47
|
+
xcss: styles.iconWrapper
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement(_error2.default, {
|
|
49
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
50
|
+
label: "error",
|
|
51
|
+
LEGACY_size: "small",
|
|
52
|
+
testId: "errored-view-default-icon"
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
return /*#__PURE__*/_react.default.createElement(_Icon.AKIconWrapper, null, /*#__PURE__*/_react.default.createElement(_error2.default, {
|
|
56
|
+
label: "error",
|
|
57
|
+
LEGACY_size: "small",
|
|
58
|
+
color: "var(--ds-icon-danger, ".concat(_colors.R300, ")"),
|
|
59
|
+
testId: "errored-view-default-icon"
|
|
60
|
+
}));
|
|
29
61
|
};
|
|
30
62
|
var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
31
63
|
var url = _ref.url,
|
|
@@ -39,6 +71,7 @@ var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
|
39
71
|
truncateInline = _ref.truncateInline,
|
|
40
72
|
showHoverPreview = _ref.showHoverPreview;
|
|
41
73
|
var frameRef = _react.default.useRef(null);
|
|
74
|
+
var hashAction = !!onRetry;
|
|
42
75
|
var handleRetry = _react.default.useCallback(function (event) {
|
|
43
76
|
if (onRetry) {
|
|
44
77
|
event.preventDefault();
|
|
@@ -57,27 +90,26 @@ var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
|
57
90
|
role: "button"
|
|
58
91
|
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.try_again)));
|
|
59
92
|
}, [handleRetry, onRetry]);
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}))
|
|
74
|
-
var content = /*#__PURE__*/_react.default.createElement(_Frame.Frame, {
|
|
93
|
+
var content = (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? /*#__PURE__*/_react.default.createElement(_Frame.Frame, {
|
|
94
|
+
link: hashAction ? undefined : url,
|
|
95
|
+
onClick: hashAction ? undefined : onClick,
|
|
96
|
+
isSelected: isSelected,
|
|
97
|
+
ref: frameRef,
|
|
98
|
+
testId: testId,
|
|
99
|
+
truncateInline: truncateInline
|
|
100
|
+
}, /*#__PURE__*/_react.default.createElement(_IconAndTitleLayout.IconAndTitleLayout, {
|
|
101
|
+
icon: icon || fallbackIcon(),
|
|
102
|
+
link: hashAction ? url : undefined,
|
|
103
|
+
title: url,
|
|
104
|
+
onClick: hashAction ? onClick : undefined,
|
|
105
|
+
rightSide: message
|
|
106
|
+
}), renderActionButton()) : /*#__PURE__*/_react.default.createElement(_Frame.Frame, {
|
|
75
107
|
testId: testId,
|
|
76
108
|
isSelected: isSelected,
|
|
77
109
|
ref: frameRef,
|
|
78
110
|
truncateInline: truncateInline
|
|
79
111
|
}, /*#__PURE__*/_react.default.createElement(_IconAndTitleLayout.IconAndTitleLayout, {
|
|
80
|
-
icon: icon ||
|
|
112
|
+
icon: icon || fallbackIcon(),
|
|
81
113
|
link: url,
|
|
82
114
|
title: url,
|
|
83
115
|
onClick: onClick,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
3
|
+
._1e0cbu77{display:inline flex}
|
|
2
4
|
._2hwx1i6y{margin-right:var(--ds-space-negative-025,-2px)}
|
|
3
5
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
4
6
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
@@ -29,8 +29,8 @@ var _styled = require("../styled");
|
|
|
29
29
|
var _withFrameStyleControl = _interopRequireDefault(require("../utils/withFrameStyleControl"));
|
|
30
30
|
var _InlineCardForbiddenViewOld = require("./InlineCardForbiddenViewOld");
|
|
31
31
|
var styles = {
|
|
32
|
-
iconWrapper: "_2hwx1i6y",
|
|
33
|
-
actionButtonLozengeStyle: "_bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
32
|
+
iconWrapper: "_2hwx1i6y _1e0cbu77",
|
|
33
|
+
actionButtonLozengeStyle: "_2rkogqwt _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
34
34
|
};
|
|
35
35
|
var fallbackForbiddenIcon = function fallbackForbiddenIcon() {
|
|
36
36
|
return (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}._154ize3t{top:var(--ds-space-0,0)}
|
|
2
3
|
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
3
4
|
._18u01b66{margin-left:var(--ds-space-050,4px)}
|
|
4
5
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
15
16
|
._4cvr1h6o{align-items:center}
|
|
16
17
|
._94n5ze3t{bottom:var(--ds-space-0,0)}
|
|
18
|
+
._c71l7vkz{max-height:1pc}
|
|
17
19
|
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
18
20
|
._kqswh2mm{position:relative}
|
|
19
21
|
._kqswstnw{position:absolute}
|
|
@@ -31,9 +31,10 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
31
31
|
var iconWrapperStyleSVG = null;
|
|
32
32
|
var styles = {
|
|
33
33
|
iconEmptyStyle: "_1bsb7vkz _1e0c1o8l _tzy4idpf",
|
|
34
|
-
iconOuterWrapperStyle: "_2hwx1b66
|
|
34
|
+
iconOuterWrapperStyle: "_2hwx1b66 _kqswh2mm",
|
|
35
35
|
iconTitleWrapperStyle: "_o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66",
|
|
36
36
|
iconWrapperStyle: "_kqswstnw _1e0c116y _4cvr1h6o _vchhusvi _154ize3t _1ltvze3t _94n5ze3t _1bsb7vkz _uiztglyw",
|
|
37
|
+
linkStyle: "_2rkogqwt",
|
|
37
38
|
noLinkAppearanceStyle: "_syaz131l _18u01b66"
|
|
38
39
|
};
|
|
39
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
@@ -113,7 +114,7 @@ var IconAndTitleLayoutNew = function IconAndTitleLayoutNew(_ref3) {
|
|
|
113
114
|
src: icon,
|
|
114
115
|
"data-testid": "".concat(testId, "-image"),
|
|
115
116
|
alt: "",
|
|
116
|
-
className: (0, _runtime.ax)(["_1bsb1osq"])
|
|
117
|
+
className: (0, _runtime.ax)(["_c71l7vkz _1bsb1osq"])
|
|
117
118
|
}),
|
|
118
119
|
errored: errored,
|
|
119
120
|
loading: /*#__PURE__*/_react.default.createElement(_Icon.Shimmer, {
|
|
@@ -225,7 +226,8 @@ var IconAndTitleLayoutNew = function IconAndTitleLayoutNew(_ref3) {
|
|
|
225
226
|
}, link ? /*#__PURE__*/_react.default.createElement(LinkAppearance, {
|
|
226
227
|
href: link,
|
|
227
228
|
onClick: handleClick,
|
|
228
|
-
onKeyPress: handleKeyPress
|
|
229
|
+
onKeyPress: handleKeyPress,
|
|
230
|
+
className: (0, _runtime.ax)([styles.linkStyle])
|
|
229
231
|
}, titlePart) : titlePart, rightSide ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
230
232
|
as: "span",
|
|
231
233
|
xcss: styles.noLinkAppearanceStyle
|
|
@@ -28,18 +28,33 @@ var _styled = require("../styled");
|
|
|
28
28
|
var _withFrameStyleControl = _interopRequireDefault(require("../utils/withFrameStyleControl"));
|
|
29
29
|
var _InlineCardUnauthorizedViewOld = require("./InlineCardUnauthorizedViewOld");
|
|
30
30
|
var styles = {
|
|
31
|
-
iconWrapper: "_2hwx1i6y"
|
|
31
|
+
iconWrapper: "_2hwx1i6y",
|
|
32
|
+
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
32
33
|
};
|
|
33
34
|
var fallbackUnauthorizedIcon = function fallbackUnauthorizedIcon() {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
37
|
+
as: "span",
|
|
38
|
+
xcss: styles.fallbackIconWrapper
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement(_lockLocked.default, {
|
|
40
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
41
|
+
label: "error",
|
|
42
|
+
LEGACY_fallbackIcon: _lockFilled.default,
|
|
43
|
+
LEGACY_size: "small"
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
if ((0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration')) {
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
48
|
+
as: "span",
|
|
49
|
+
xcss: styles.iconWrapper
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_lockLocked.default, {
|
|
51
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
52
|
+
label: "error",
|
|
53
|
+
LEGACY_fallbackIcon: _lockFilled.default,
|
|
54
|
+
LEGACY_size: "small"
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
return /*#__PURE__*/_react.default.createElement(_Icon.AKIconWrapper, null, /*#__PURE__*/_react.default.createElement(_lockFilled.default, {
|
|
43
58
|
label: "error",
|
|
44
59
|
size: "small",
|
|
45
60
|
primaryColor: "var(--ds-icon-danger, ".concat(_colors.R400, ")")
|
|
@@ -41,6 +41,7 @@ var ActionButton = exports.ActionButton = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
41
41
|
},
|
|
42
42
|
xcss: styles.button
|
|
43
43
|
}), /*#__PURE__*/React.createElement("span", {
|
|
44
|
+
tabIndex: isDisabled ? undefined : 0,
|
|
44
45
|
className: (0, _runtime.ax)([styles.innerContainer, isDisabled ? styles.disabled : styles.enabled])
|
|
45
46
|
}, children));
|
|
46
47
|
});
|
|
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
20
20
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
21
21
|
var PACKAGE_DATA = {
|
|
22
22
|
packageName: "@atlaskit/smart-card",
|
|
23
|
-
packageVersion: "35.2.
|
|
23
|
+
packageVersion: "35.2.10",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import uuid from 'uuid';
|
|
3
3
|
import { getBaseUrl } from '@atlaskit/linking-common';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { readStream } from './readStream';
|
|
6
5
|
import { ChunkProcessingError } from './types';
|
|
7
6
|
import { addPath, getXProductHeaderValue } from './utils';
|
|
@@ -29,9 +28,7 @@ export class AISummaryService {
|
|
|
29
28
|
content_ari: this.ari,
|
|
30
29
|
prompt_id: 'smart_links',
|
|
31
30
|
summary_output_mimetype: 'text/markdown',
|
|
32
|
-
|
|
33
|
-
locale: this.locale
|
|
34
|
-
})
|
|
31
|
+
locale: this.locale
|
|
35
32
|
}
|
|
36
33
|
};
|
|
37
34
|
const options = {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { AISummaryService } from './ai-summary-service';
|
|
5
4
|
import { AISummariesStore } from './ai-summary-service/store';
|
|
6
5
|
/**
|
|
@@ -25,11 +24,7 @@ export const useAISummary = props => {
|
|
|
25
24
|
});
|
|
26
25
|
const {
|
|
27
26
|
locale
|
|
28
|
-
} =
|
|
29
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
30
|
-
useIntl() : {
|
|
31
|
-
locale: undefined
|
|
32
|
-
};
|
|
27
|
+
} = useIntl();
|
|
33
28
|
useEffect(() => {
|
|
34
29
|
var _AISummariesStore$get2;
|
|
35
30
|
//do not create a service for the empty URL string when the link data is not yet available,
|
|
@@ -41,9 +36,7 @@ export const useAISummary = props => {
|
|
|
41
36
|
baseUrl,
|
|
42
37
|
product,
|
|
43
38
|
envKey,
|
|
44
|
-
|
|
45
|
-
locale
|
|
46
|
-
}),
|
|
39
|
+
locale,
|
|
47
40
|
onError,
|
|
48
41
|
onStart,
|
|
49
42
|
onSuccess
|
|
@@ -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: "35.2.
|
|
5
|
+
packageVersion: "35.2.10"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -4,6 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import ButtonOld from '@atlaskit/button';
|
|
7
|
+
import ErrorIconCore from '@atlaskit/icon/core/migration/error';
|
|
7
8
|
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
8
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
@@ -18,7 +19,38 @@ import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
|
18
19
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
19
20
|
import { InlineCardErroredViewOld } from './InlineCardErroredViewOld';
|
|
20
21
|
const styles = {
|
|
21
|
-
iconWrapper: "_2hwx1i6y"
|
|
22
|
+
iconWrapper: "_2hwx1i6y",
|
|
23
|
+
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
24
|
+
};
|
|
25
|
+
const fallbackIcon = () => {
|
|
26
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
27
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
28
|
+
as: "span",
|
|
29
|
+
xcss: styles.fallbackIconWrapper
|
|
30
|
+
}, /*#__PURE__*/React.createElement(ErrorIconCore, {
|
|
31
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
32
|
+
label: "error",
|
|
33
|
+
LEGACY_size: "small",
|
|
34
|
+
testId: "errored-view-default-icon"
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
if (fg('platform-smart-card-icon-migration')) {
|
|
38
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
39
|
+
as: "span",
|
|
40
|
+
xcss: styles.iconWrapper
|
|
41
|
+
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
42
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
43
|
+
label: "error",
|
|
44
|
+
LEGACY_size: "small",
|
|
45
|
+
testId: "errored-view-default-icon"
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
return /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
49
|
+
label: "error",
|
|
50
|
+
LEGACY_size: "small",
|
|
51
|
+
color: `var(--ds-icon-danger, ${R300})`,
|
|
52
|
+
testId: "errored-view-default-icon"
|
|
53
|
+
}));
|
|
22
54
|
};
|
|
23
55
|
const InlineCardErroredViewNew = ({
|
|
24
56
|
url,
|
|
@@ -32,6 +64,7 @@ const InlineCardErroredViewNew = ({
|
|
|
32
64
|
showHoverPreview
|
|
33
65
|
}) => {
|
|
34
66
|
const frameRef = React.useRef(null);
|
|
67
|
+
const hashAction = !!onRetry;
|
|
35
68
|
const handleRetry = React.useCallback(event => {
|
|
36
69
|
if (onRetry) {
|
|
37
70
|
event.preventDefault();
|
|
@@ -50,27 +83,26 @@ const InlineCardErroredViewNew = ({
|
|
|
50
83
|
role: "button"
|
|
51
84
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again)));
|
|
52
85
|
}, [handleRetry, onRetry]);
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}))
|
|
67
|
-
const content = /*#__PURE__*/React.createElement(Frame, {
|
|
86
|
+
const content = fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Frame, {
|
|
87
|
+
link: hashAction ? undefined : url,
|
|
88
|
+
onClick: hashAction ? undefined : onClick,
|
|
89
|
+
isSelected: isSelected,
|
|
90
|
+
ref: frameRef,
|
|
91
|
+
testId: testId,
|
|
92
|
+
truncateInline: truncateInline
|
|
93
|
+
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
94
|
+
icon: icon || fallbackIcon(),
|
|
95
|
+
link: hashAction ? url : undefined,
|
|
96
|
+
title: url,
|
|
97
|
+
onClick: hashAction ? onClick : undefined,
|
|
98
|
+
rightSide: message
|
|
99
|
+
}), renderActionButton()) : /*#__PURE__*/React.createElement(Frame, {
|
|
68
100
|
testId: testId,
|
|
69
101
|
isSelected: isSelected,
|
|
70
102
|
ref: frameRef,
|
|
71
103
|
truncateInline: truncateInline
|
|
72
104
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
73
|
-
icon: icon ||
|
|
105
|
+
icon: icon || fallbackIcon(),
|
|
74
106
|
link: url,
|
|
75
107
|
title: url,
|
|
76
108
|
onClick: onClick,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
3
|
+
._1e0cbu77{display:inline flex}
|
|
2
4
|
._2hwx1i6y{margin-right:var(--ds-space-negative-025,-2px)}
|
|
3
5
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
4
6
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
@@ -21,8 +21,8 @@ import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
|
21
21
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
22
22
|
import { InlineCardForbiddenViewOld } from './InlineCardForbiddenViewOld';
|
|
23
23
|
const styles = {
|
|
24
|
-
iconWrapper: "_2hwx1i6y",
|
|
25
|
-
actionButtonLozengeStyle: "_bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
24
|
+
iconWrapper: "_2hwx1i6y _1e0cbu77",
|
|
25
|
+
actionButtonLozengeStyle: "_2rkogqwt _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
26
26
|
};
|
|
27
27
|
const fallbackForbiddenIcon = () => {
|
|
28
28
|
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}._154ize3t{top:var(--ds-space-0,0)}
|
|
2
3
|
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
3
4
|
._18u01b66{margin-left:var(--ds-space-050,4px)}
|
|
4
5
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
15
16
|
._4cvr1h6o{align-items:center}
|
|
16
17
|
._94n5ze3t{bottom:var(--ds-space-0,0)}
|
|
18
|
+
._c71l7vkz{max-height:1pc}
|
|
17
19
|
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
18
20
|
._kqswh2mm{position:relative}
|
|
19
21
|
._kqswstnw{position:absolute}
|
|
@@ -16,9 +16,10 @@ import { EmojiWrapperOldVisualRefresh, IconEmptyWrapperOldVisualRefresh, IconPos
|
|
|
16
16
|
const iconWrapperStyleSVG = null;
|
|
17
17
|
const styles = {
|
|
18
18
|
iconEmptyStyle: "_1bsb7vkz _1e0c1o8l _tzy4idpf",
|
|
19
|
-
iconOuterWrapperStyle: "_2hwx1b66
|
|
19
|
+
iconOuterWrapperStyle: "_2hwx1b66 _kqswh2mm",
|
|
20
20
|
iconTitleWrapperStyle: "_o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66",
|
|
21
21
|
iconWrapperStyle: "_kqswstnw _1e0c116y _4cvr1h6o _vchhusvi _154ize3t _1ltvze3t _94n5ze3t _1bsb7vkz _uiztglyw",
|
|
22
|
+
linkStyle: "_2rkogqwt",
|
|
22
23
|
noLinkAppearanceStyle: "_syaz131l _18u01b66"
|
|
23
24
|
};
|
|
24
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
@@ -98,7 +99,7 @@ const IconAndTitleLayoutNew = ({
|
|
|
98
99
|
src: icon,
|
|
99
100
|
"data-testid": `${testId}-image`,
|
|
100
101
|
alt: "",
|
|
101
|
-
className: ax(["_1bsb1osq"])
|
|
102
|
+
className: ax(["_c71l7vkz _1bsb1osq"])
|
|
102
103
|
}),
|
|
103
104
|
errored: errored,
|
|
104
105
|
loading: /*#__PURE__*/React.createElement(Shimmer, {
|
|
@@ -210,7 +211,8 @@ const IconAndTitleLayoutNew = ({
|
|
|
210
211
|
}, link ? /*#__PURE__*/React.createElement(LinkAppearance, {
|
|
211
212
|
href: link,
|
|
212
213
|
onClick: handleClick,
|
|
213
|
-
onKeyPress: handleKeyPress
|
|
214
|
+
onKeyPress: handleKeyPress,
|
|
215
|
+
className: ax([styles.linkStyle])
|
|
214
216
|
}, titlePart) : titlePart, rightSide ? /*#__PURE__*/React.createElement(Box, {
|
|
215
217
|
as: "span",
|
|
216
218
|
xcss: styles.noLinkAppearanceStyle
|
|
@@ -21,18 +21,33 @@ import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
|
21
21
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
22
22
|
import { InlineCardUnauthorizedViewOld } from './InlineCardUnauthorizedViewOld';
|
|
23
23
|
const styles = {
|
|
24
|
-
iconWrapper: "_2hwx1i6y"
|
|
24
|
+
iconWrapper: "_2hwx1i6y",
|
|
25
|
+
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
25
26
|
};
|
|
26
27
|
const fallbackUnauthorizedIcon = () => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
29
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
30
|
+
as: "span",
|
|
31
|
+
xcss: styles.fallbackIconWrapper
|
|
32
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
33
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
34
|
+
label: "error",
|
|
35
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
36
|
+
LEGACY_size: "small"
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
if (fg('platform-smart-card-icon-migration')) {
|
|
40
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
41
|
+
as: "span",
|
|
42
|
+
xcss: styles.iconWrapper
|
|
43
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
44
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
45
|
+
label: "error",
|
|
46
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
47
|
+
LEGACY_size: "small"
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
return /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LegacyLockIcon, {
|
|
36
51
|
label: "error",
|
|
37
52
|
size: "small",
|
|
38
53
|
primaryColor: `var(--ds-icon-danger, ${R400})`
|
|
@@ -30,6 +30,7 @@ export const ActionButton = /*#__PURE__*/forwardRef(({
|
|
|
30
30
|
},
|
|
31
31
|
xcss: styles.button
|
|
32
32
|
}), /*#__PURE__*/React.createElement("span", {
|
|
33
|
+
tabIndex: isDisabled ? undefined : 0,
|
|
33
34
|
className: ax([styles.innerContainer, isDisabled ? styles.disabled : styles.enabled])
|
|
34
35
|
}, children));
|
|
35
36
|
});
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "35.2.
|
|
13
|
+
packageVersion: "35.2.10",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -2,17 +2,16 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
5
7
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
6
8
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
7
9
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
8
10
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
9
|
-
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; }
|
|
10
|
-
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; }
|
|
11
11
|
function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
|
|
12
12
|
function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, return: function _return(r) { var n = this.s.return; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, throw: function _throw(r) { var n = this.s.return; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
|
|
13
13
|
import uuid from 'uuid';
|
|
14
14
|
import { getBaseUrl } from '@atlaskit/linking-common';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { readStream } from './readStream';
|
|
17
16
|
import { ChunkProcessingError } from './types';
|
|
18
17
|
import { addPath, getXProductHeaderValue } from './utils';
|
|
@@ -41,14 +40,13 @@ export var AISummaryService = /*#__PURE__*/function () {
|
|
|
41
40
|
case 0:
|
|
42
41
|
payload = {
|
|
43
42
|
recipient_agent_named_id: 'smartlink_summary_agent',
|
|
44
|
-
agent_input_context:
|
|
43
|
+
agent_input_context: {
|
|
45
44
|
content_url: _this.url,
|
|
46
45
|
content_ari: _this.ari,
|
|
47
46
|
prompt_id: 'smart_links',
|
|
48
|
-
summary_output_mimetype: 'text/markdown'
|
|
49
|
-
}, fg('send_locale_to_summarize_in_assistance-service') && {
|
|
47
|
+
summary_output_mimetype: 'text/markdown',
|
|
50
48
|
locale: _this.locale
|
|
51
|
-
}
|
|
49
|
+
}
|
|
52
50
|
};
|
|
53
51
|
options = {
|
|
54
52
|
method: 'POST',
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
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; }
|
|
4
|
-
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; }
|
|
5
2
|
import { useEffect, useState } from 'react';
|
|
6
3
|
import { useIntl } from 'react-intl-next';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
4
|
import { AISummaryService } from './ai-summary-service';
|
|
9
5
|
import { AISummariesStore } from './ai-summary-service/store';
|
|
10
6
|
/**
|
|
@@ -28,30 +24,24 @@ export var useAISummary = function useAISummary(props) {
|
|
|
28
24
|
_useState2 = _slicedToArray(_useState, 2),
|
|
29
25
|
state = _useState2[0],
|
|
30
26
|
setState = _useState2[1];
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
useIntl() : {
|
|
34
|
-
locale: undefined
|
|
35
|
-
},
|
|
36
|
-
locale = _ref.locale;
|
|
27
|
+
var _useIntl = useIntl(),
|
|
28
|
+
locale = _useIntl.locale;
|
|
37
29
|
useEffect(function () {
|
|
38
30
|
var _AISummariesStore$get2;
|
|
39
31
|
//do not create a service for the empty URL string when the link data is not yet available,
|
|
40
32
|
//or the service has already been created and cached.
|
|
41
33
|
if (url && !AISummariesStore.get(url)) {
|
|
42
|
-
AISummariesStore.set(url, new AISummaryService(
|
|
34
|
+
AISummariesStore.set(url, new AISummaryService({
|
|
43
35
|
url: url,
|
|
44
36
|
ari: ari,
|
|
45
37
|
baseUrl: baseUrl,
|
|
46
38
|
product: product,
|
|
47
|
-
envKey: envKey
|
|
48
|
-
|
|
49
|
-
locale: locale
|
|
50
|
-
}), {}, {
|
|
39
|
+
envKey: envKey,
|
|
40
|
+
locale: locale,
|
|
51
41
|
onError: onError,
|
|
52
42
|
onStart: onStart,
|
|
53
43
|
onSuccess: onSuccess
|
|
54
|
-
}))
|
|
44
|
+
}));
|
|
55
45
|
}
|
|
56
46
|
|
|
57
47
|
//returns function that calls unsubscribe method
|
|
@@ -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: "35.2.
|
|
7
|
+
packageVersion: "35.2.10"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -4,6 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import ButtonOld from '@atlaskit/button';
|
|
7
|
+
import ErrorIconCore from '@atlaskit/icon/core/migration/error';
|
|
7
8
|
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
8
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
@@ -18,7 +19,38 @@ import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
|
18
19
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
19
20
|
import { InlineCardErroredViewOld } from './InlineCardErroredViewOld';
|
|
20
21
|
var styles = {
|
|
21
|
-
iconWrapper: "_2hwx1i6y"
|
|
22
|
+
iconWrapper: "_2hwx1i6y",
|
|
23
|
+
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
24
|
+
};
|
|
25
|
+
var fallbackIcon = function fallbackIcon() {
|
|
26
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
27
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
28
|
+
as: "span",
|
|
29
|
+
xcss: styles.fallbackIconWrapper
|
|
30
|
+
}, /*#__PURE__*/React.createElement(ErrorIconCore, {
|
|
31
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
32
|
+
label: "error",
|
|
33
|
+
LEGACY_size: "small",
|
|
34
|
+
testId: "errored-view-default-icon"
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
if (fg('platform-smart-card-icon-migration')) {
|
|
38
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
39
|
+
as: "span",
|
|
40
|
+
xcss: styles.iconWrapper
|
|
41
|
+
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
42
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
43
|
+
label: "error",
|
|
44
|
+
LEGACY_size: "small",
|
|
45
|
+
testId: "errored-view-default-icon"
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
return /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
49
|
+
label: "error",
|
|
50
|
+
LEGACY_size: "small",
|
|
51
|
+
color: "var(--ds-icon-danger, ".concat(R300, ")"),
|
|
52
|
+
testId: "errored-view-default-icon"
|
|
53
|
+
}));
|
|
22
54
|
};
|
|
23
55
|
var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
24
56
|
var url = _ref.url,
|
|
@@ -32,6 +64,7 @@ var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
|
32
64
|
truncateInline = _ref.truncateInline,
|
|
33
65
|
showHoverPreview = _ref.showHoverPreview;
|
|
34
66
|
var frameRef = React.useRef(null);
|
|
67
|
+
var hashAction = !!onRetry;
|
|
35
68
|
var handleRetry = React.useCallback(function (event) {
|
|
36
69
|
if (onRetry) {
|
|
37
70
|
event.preventDefault();
|
|
@@ -50,27 +83,26 @@ var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
|
50
83
|
role: "button"
|
|
51
84
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again)));
|
|
52
85
|
}, [handleRetry, onRetry]);
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}))
|
|
67
|
-
var content = /*#__PURE__*/React.createElement(Frame, {
|
|
86
|
+
var content = fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Frame, {
|
|
87
|
+
link: hashAction ? undefined : url,
|
|
88
|
+
onClick: hashAction ? undefined : onClick,
|
|
89
|
+
isSelected: isSelected,
|
|
90
|
+
ref: frameRef,
|
|
91
|
+
testId: testId,
|
|
92
|
+
truncateInline: truncateInline
|
|
93
|
+
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
94
|
+
icon: icon || fallbackIcon(),
|
|
95
|
+
link: hashAction ? url : undefined,
|
|
96
|
+
title: url,
|
|
97
|
+
onClick: hashAction ? onClick : undefined,
|
|
98
|
+
rightSide: message
|
|
99
|
+
}), renderActionButton()) : /*#__PURE__*/React.createElement(Frame, {
|
|
68
100
|
testId: testId,
|
|
69
101
|
isSelected: isSelected,
|
|
70
102
|
ref: frameRef,
|
|
71
103
|
truncateInline: truncateInline
|
|
72
104
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
73
|
-
icon: icon ||
|
|
105
|
+
icon: icon || fallbackIcon(),
|
|
74
106
|
link: url,
|
|
75
107
|
title: url,
|
|
76
108
|
onClick: onClick,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
3
|
+
._1e0cbu77{display:inline flex}
|
|
2
4
|
._2hwx1i6y{margin-right:var(--ds-space-negative-025,-2px)}
|
|
3
5
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
4
6
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
@@ -22,8 +22,8 @@ import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
|
22
22
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
23
23
|
import { InlineCardForbiddenViewOld } from './InlineCardForbiddenViewOld';
|
|
24
24
|
var styles = {
|
|
25
|
-
iconWrapper: "_2hwx1i6y",
|
|
26
|
-
actionButtonLozengeStyle: "_bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
25
|
+
iconWrapper: "_2hwx1i6y _1e0cbu77",
|
|
26
|
+
actionButtonLozengeStyle: "_2rkogqwt _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
27
27
|
};
|
|
28
28
|
var fallbackForbiddenIcon = function fallbackForbiddenIcon() {
|
|
29
29
|
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}._154ize3t{top:var(--ds-space-0,0)}
|
|
2
3
|
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
3
4
|
._18u01b66{margin-left:var(--ds-space-050,4px)}
|
|
4
5
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
15
16
|
._4cvr1h6o{align-items:center}
|
|
16
17
|
._94n5ze3t{bottom:var(--ds-space-0,0)}
|
|
18
|
+
._c71l7vkz{max-height:1pc}
|
|
17
19
|
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
18
20
|
._kqswh2mm{position:relative}
|
|
19
21
|
._kqswstnw{position:absolute}
|
|
@@ -22,9 +22,10 @@ import { EmojiWrapperOldVisualRefresh, IconEmptyWrapperOldVisualRefresh, IconPos
|
|
|
22
22
|
var iconWrapperStyleSVG = null;
|
|
23
23
|
var styles = {
|
|
24
24
|
iconEmptyStyle: "_1bsb7vkz _1e0c1o8l _tzy4idpf",
|
|
25
|
-
iconOuterWrapperStyle: "_2hwx1b66
|
|
25
|
+
iconOuterWrapperStyle: "_2hwx1b66 _kqswh2mm",
|
|
26
26
|
iconTitleWrapperStyle: "_o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66",
|
|
27
27
|
iconWrapperStyle: "_kqswstnw _1e0c116y _4cvr1h6o _vchhusvi _154ize3t _1ltvze3t _94n5ze3t _1bsb7vkz _uiztglyw",
|
|
28
|
+
linkStyle: "_2rkogqwt",
|
|
28
29
|
noLinkAppearanceStyle: "_syaz131l _18u01b66"
|
|
29
30
|
};
|
|
30
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
@@ -104,7 +105,7 @@ var IconAndTitleLayoutNew = function IconAndTitleLayoutNew(_ref3) {
|
|
|
104
105
|
src: icon,
|
|
105
106
|
"data-testid": "".concat(testId, "-image"),
|
|
106
107
|
alt: "",
|
|
107
|
-
className: ax(["_1bsb1osq"])
|
|
108
|
+
className: ax(["_c71l7vkz _1bsb1osq"])
|
|
108
109
|
}),
|
|
109
110
|
errored: errored,
|
|
110
111
|
loading: /*#__PURE__*/React.createElement(Shimmer, {
|
|
@@ -216,7 +217,8 @@ var IconAndTitleLayoutNew = function IconAndTitleLayoutNew(_ref3) {
|
|
|
216
217
|
}, link ? /*#__PURE__*/React.createElement(LinkAppearance, {
|
|
217
218
|
href: link,
|
|
218
219
|
onClick: handleClick,
|
|
219
|
-
onKeyPress: handleKeyPress
|
|
220
|
+
onKeyPress: handleKeyPress,
|
|
221
|
+
className: ax([styles.linkStyle])
|
|
220
222
|
}, titlePart) : titlePart, rightSide ? /*#__PURE__*/React.createElement(Box, {
|
|
221
223
|
as: "span",
|
|
222
224
|
xcss: styles.noLinkAppearanceStyle
|
|
@@ -21,18 +21,33 @@ import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
|
21
21
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
22
22
|
import { InlineCardUnauthorizedViewOld } from './InlineCardUnauthorizedViewOld';
|
|
23
23
|
var styles = {
|
|
24
|
-
iconWrapper: "_2hwx1i6y"
|
|
24
|
+
iconWrapper: "_2hwx1i6y",
|
|
25
|
+
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
25
26
|
};
|
|
26
27
|
var fallbackUnauthorizedIcon = function fallbackUnauthorizedIcon() {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
29
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
30
|
+
as: "span",
|
|
31
|
+
xcss: styles.fallbackIconWrapper
|
|
32
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
33
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
34
|
+
label: "error",
|
|
35
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
36
|
+
LEGACY_size: "small"
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
if (fg('platform-smart-card-icon-migration')) {
|
|
40
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
41
|
+
as: "span",
|
|
42
|
+
xcss: styles.iconWrapper
|
|
43
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
44
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
45
|
+
label: "error",
|
|
46
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
47
|
+
LEGACY_size: "small"
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
return /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LegacyLockIcon, {
|
|
36
51
|
label: "error",
|
|
37
52
|
size: "small",
|
|
38
53
|
primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
|
|
@@ -31,6 +31,7 @@ export var ActionButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
31
31
|
},
|
|
32
32
|
xcss: styles.button
|
|
33
33
|
}), /*#__PURE__*/React.createElement("span", {
|
|
34
|
+
tabIndex: isDisabled ? undefined : 0,
|
|
34
35
|
className: ax([styles.innerContainer, isDisabled ? styles.disabled : styles.enabled])
|
|
35
36
|
}, children));
|
|
36
37
|
});
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
var PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "35.2.
|
|
16
|
+
packageVersion: "35.2.10",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "35.2.
|
|
3
|
+
"version": "35.2.10",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/heading": "^5.1.0",
|
|
42
42
|
"@atlaskit/icon": "^25.0.0",
|
|
43
43
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
44
|
-
"@atlaskit/icon-lab": "^4.
|
|
44
|
+
"@atlaskit/icon-lab": "^4.1.0",
|
|
45
45
|
"@atlaskit/icon-object": "^7.0.0",
|
|
46
46
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
47
47
|
"@atlaskit/legacy-custom-icons": "^0.22.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/logo": "^16.0.0",
|
|
55
55
|
"@atlaskit/lozenge": "^12.2.0",
|
|
56
56
|
"@atlaskit/menu": "^3.1.0",
|
|
57
|
-
"@atlaskit/modal-dialog": "^13.
|
|
57
|
+
"@atlaskit/modal-dialog": "^13.1.0",
|
|
58
58
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
59
59
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
60
60
|
"@atlaskit/popup": "^2.0.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@atlaskit/textarea": "^8.0.0",
|
|
66
66
|
"@atlaskit/textfield": "^8.0.0",
|
|
67
67
|
"@atlaskit/theme": "^18.0.0",
|
|
68
|
-
"@atlaskit/tokens": "^4.
|
|
68
|
+
"@atlaskit/tokens": "^4.5.0",
|
|
69
69
|
"@atlaskit/tooltip": "^20.0.0",
|
|
70
70
|
"@atlaskit/ufo": "^0.4.0",
|
|
71
71
|
"@babel/runtime": "^7.0.0",
|
|
@@ -192,9 +192,6 @@
|
|
|
192
192
|
"platform_editor_hyperlink_underline": {
|
|
193
193
|
"type": "boolean"
|
|
194
194
|
},
|
|
195
|
-
"send_locale_to_summarize_in_assistance-service": {
|
|
196
|
-
"type": "boolean"
|
|
197
|
-
},
|
|
198
195
|
"bandicoots-compiled-migration-smartcard": {
|
|
199
196
|
"type": "boolean"
|
|
200
197
|
},
|