@atlaskit/smart-card 35.1.2 → 35.1.3
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/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/index.js +1 -1
- package/dist/cjs/view/BlockCard/views/ForbiddenView.compiled.css +1 -0
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +23 -8
- package/dist/cjs/view/BlockCard/views/ForbiddenViewOld.js +110 -0
- package/dist/cjs/view/BlockCard/views/NotFoundView.compiled.css +1 -0
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +22 -7
- package/dist/cjs/view/BlockCard/views/NotFoundViewOld.js +74 -0
- package/dist/cjs/view/BlockCard/views/ResolvedView.compiled.css +7 -1
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +7 -5
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.compiled.css +3 -1
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +3 -1
- package/dist/cjs/view/BlockCard/views/unresolved-view/index.compiled.css +11 -2
- package/dist/cjs/view/BlockCard/views/unresolved-view/index.js +6 -3
- package/dist/cjs/view/FlexibleCard/components/container/index.compiled.css +4 -4
- package/dist/cjs/view/FlexibleCard/components/container/index.js +8 -8
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/index.js +1 -1
- package/dist/es2019/view/BlockCard/views/ForbiddenView.compiled.css +1 -0
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +17 -3
- package/dist/es2019/view/BlockCard/views/ForbiddenViewOld.js +103 -0
- package/dist/es2019/view/BlockCard/views/NotFoundView.compiled.css +1 -0
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +17 -3
- package/dist/es2019/view/BlockCard/views/NotFoundViewOld.js +61 -0
- package/dist/es2019/view/BlockCard/views/ResolvedView.compiled.css +7 -1
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +7 -5
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.compiled.css +3 -1
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +3 -1
- package/dist/es2019/view/BlockCard/views/unresolved-view/index.compiled.css +11 -2
- package/dist/es2019/view/BlockCard/views/unresolved-view/index.js +6 -3
- package/dist/es2019/view/FlexibleCard/components/container/index.compiled.css +4 -4
- package/dist/es2019/view/FlexibleCard/components/container/index.js +8 -8
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/index.js +1 -1
- package/dist/esm/view/BlockCard/views/ForbiddenView.compiled.css +1 -0
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +17 -3
- package/dist/esm/view/BlockCard/views/ForbiddenViewOld.js +101 -0
- package/dist/esm/view/BlockCard/views/NotFoundView.compiled.css +1 -0
- package/dist/esm/view/BlockCard/views/NotFoundView.js +17 -3
- package/dist/esm/view/BlockCard/views/NotFoundViewOld.js +65 -0
- package/dist/esm/view/BlockCard/views/ResolvedView.compiled.css +7 -1
- package/dist/esm/view/BlockCard/views/ResolvedView.js +7 -5
- package/dist/esm/view/BlockCard/views/UnauthorisedView.compiled.css +3 -1
- package/dist/esm/view/BlockCard/views/UnauthorisedView.js +3 -1
- package/dist/esm/view/BlockCard/views/unresolved-view/index.compiled.css +11 -2
- package/dist/esm/view/BlockCard/views/unresolved-view/index.js +6 -3
- package/dist/esm/view/FlexibleCard/components/container/index.compiled.css +4 -4
- package/dist/esm/view/FlexibleCard/components/container/index.js +8 -8
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/BlockCard/views/ForbiddenViewOld.d.ts +10 -0
- package/dist/types/view/BlockCard/views/NotFoundViewOld.d.ts +9 -0
- package/dist/types-ts4.5/view/BlockCard/views/ForbiddenViewOld.d.ts +10 -0
- package/dist/types-ts4.5/view/BlockCard/views/NotFoundViewOld.d.ts +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 35.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#119983](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119983)
|
|
8
|
+
[`7b2a5d6ec9bb3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b2a5d6ec9bb3) -
|
|
9
|
+
[ux] Block card UI refresh token and override css changes
|
|
10
|
+
|
|
3
11
|
## 35.1.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "35.1.
|
|
14
|
+
packageVersion: "35.1.3"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -45,7 +45,7 @@ var BlockCard = exports.BlockCard = function BlockCard(_ref) {
|
|
|
45
45
|
case 'pending':
|
|
46
46
|
case 'resolving':
|
|
47
47
|
return /*#__PURE__*/_react.default.createElement(_ResolvedView.default, (0, _extends2.default)({}, blockCardProps, {
|
|
48
|
-
testId:
|
|
48
|
+
testId: "smart-block-resolving-view"
|
|
49
49
|
}));
|
|
50
50
|
case 'resolved':
|
|
51
51
|
return /*#__PURE__*/_react.default.createElement(_ResolvedView.default, blockCardProps);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* ForbiddenView.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -6,10 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
7
|
value: true
|
|
7
8
|
});
|
|
8
9
|
exports.default = void 0;
|
|
10
|
+
require("./ForbiddenView.compiled.css");
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var React = _react;
|
|
13
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
15
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
16
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
13
17
|
var _reactIntlNext = require("react-intl-next");
|
|
14
18
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
15
19
|
var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
|
|
@@ -24,11 +28,14 @@ var _intlUtils = require("../../../utils/intl-utils");
|
|
|
24
28
|
var _jsonld = require("../../../utils/jsonld");
|
|
25
29
|
var _text = _interopRequireDefault(require("../../FlexibleCard/components/elements/text"));
|
|
26
30
|
var _ForbiddenAction = require("../actions/ForbiddenAction");
|
|
31
|
+
var _ForbiddenViewOld = require("./ForbiddenViewOld");
|
|
27
32
|
var _unresolvedView = _interopRequireDefault(require("./unresolved-view"));
|
|
28
33
|
var _withFlexibleUIBlockCardStyle = require("./utils/withFlexibleUIBlockCardStyle");
|
|
29
34
|
var _excluded = ["testId"];
|
|
30
35
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
31
36
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
37
|
+
var textStyles = null;
|
|
38
|
+
|
|
32
39
|
/**
|
|
33
40
|
* This view represent a Block Card with the 'Forbidden' status.
|
|
34
41
|
* It should have a "Try another account" button that will allow a user to connect another account and view the block card.
|
|
@@ -36,7 +43,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
36
43
|
* @see SmartLinkStatus
|
|
37
44
|
* @see FlexibleCardProps
|
|
38
45
|
*/
|
|
39
|
-
var
|
|
46
|
+
var ForbiddenViewNew = function ForbiddenViewNew(_ref) {
|
|
40
47
|
var _details$meta;
|
|
41
48
|
var _ref$testId = _ref.testId,
|
|
42
49
|
testId = _ref$testId === void 0 ? 'smart-block-forbidden-view' : _ref$testId,
|
|
@@ -52,7 +59,7 @@ var ForbiddenView = function ForbiddenView(_ref) {
|
|
|
52
59
|
var provider = (0, _linkExtractors.extractProvider)(details === null || details === void 0 ? void 0 : details.data);
|
|
53
60
|
var providerName = (provider === null || provider === void 0 ? void 0 : provider.text) || '';
|
|
54
61
|
var messageContext = (0, _react.useMemo)(function () {
|
|
55
|
-
var hostname = /*#__PURE__*/
|
|
62
|
+
var hostname = /*#__PURE__*/React.createElement("b", null, (0, _extractHostname.default)(url));
|
|
56
63
|
return {
|
|
57
64
|
product: providerName,
|
|
58
65
|
hostname: hostname
|
|
@@ -82,12 +89,12 @@ var ForbiddenView = function ForbiddenView(_ref) {
|
|
|
82
89
|
}
|
|
83
90
|
return [].concat(tryAnotherAccountAction, (0, _toConsumableArray2.default)(actionFromAccessContext));
|
|
84
91
|
}, [onAuthorize, requestAccessContext, messageContext]);
|
|
85
|
-
return /*#__PURE__*/
|
|
92
|
+
return /*#__PURE__*/React.createElement(_unresolvedView.default, (0, _extends2.default)({}, props, {
|
|
86
93
|
actions: actions,
|
|
87
94
|
showPreview: true,
|
|
88
95
|
testId: testId,
|
|
89
96
|
title: title
|
|
90
|
-
}), (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? /*#__PURE__*/
|
|
97
|
+
}), (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(_lockLocked.default, {
|
|
91
98
|
label: "forbidden-lock-icon",
|
|
92
99
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
93
100
|
LEGACY_fallbackIcon: _lock.default,
|
|
@@ -96,17 +103,25 @@ var ForbiddenView = function ForbiddenView(_ref) {
|
|
|
96
103
|
}) :
|
|
97
104
|
/*#__PURE__*/
|
|
98
105
|
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
|
|
99
|
-
|
|
106
|
+
React.createElement(_lock.default, {
|
|
100
107
|
label: "forbidden-lock-icon",
|
|
101
108
|
size: "small",
|
|
102
109
|
primaryColor: "var(--ds-icon-danger, ".concat(_colors.R300, ")"),
|
|
103
110
|
testId: "".concat(testId, "-lock-icon")
|
|
104
|
-
}), /*#__PURE__*/
|
|
111
|
+
}), /*#__PURE__*/React.createElement(_text.default, {
|
|
105
112
|
maxLines: 3,
|
|
106
113
|
message: {
|
|
107
114
|
descriptor: (0, _intlUtils.toMessage)(_messages.messages.invalid_permissions_description, requestAccessContext === null || requestAccessContext === void 0 ? void 0 : requestAccessContext.descriptiveMessageKey),
|
|
108
115
|
values: messageContext
|
|
109
|
-
}
|
|
116
|
+
},
|
|
117
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_syaz1fxt"])
|
|
110
118
|
}));
|
|
111
119
|
};
|
|
120
|
+
var ForbiddenView = function ForbiddenView(props) {
|
|
121
|
+
if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
122
|
+
return /*#__PURE__*/React.createElement(ForbiddenViewNew, props);
|
|
123
|
+
} else {
|
|
124
|
+
return /*#__PURE__*/React.createElement(_ForbiddenViewOld.ForbiddenViewOld, props);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
112
127
|
var _default = exports.default = (0, _withFlexibleUIBlockCardStyle.withFlexibleUIBlockCardStyle)(ForbiddenView);
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.ForbiddenViewOld = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _reactIntlNext = require("react-intl-next");
|
|
14
|
+
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
15
|
+
var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
|
|
16
|
+
var _lock = _interopRequireDefault(require("@atlaskit/icon/glyph/lock"));
|
|
17
|
+
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
18
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
20
|
+
var _extractAccessContext = require("../../../extractors/common/context/extractAccessContext");
|
|
21
|
+
var _extractHostname = _interopRequireDefault(require("../../../extractors/common/hostname/extractHostname"));
|
|
22
|
+
var _messages = require("../../../messages");
|
|
23
|
+
var _intlUtils = require("../../../utils/intl-utils");
|
|
24
|
+
var _jsonld = require("../../../utils/jsonld");
|
|
25
|
+
var _text = _interopRequireDefault(require("../../FlexibleCard/components/elements/text"));
|
|
26
|
+
var _ForbiddenAction = require("../actions/ForbiddenAction");
|
|
27
|
+
var _unresolvedView = _interopRequireDefault(require("./unresolved-view"));
|
|
28
|
+
var _excluded = ["testId"];
|
|
29
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
30
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
31
|
+
/**
|
|
32
|
+
* This view represent a Block Card with the 'Forbidden' status.
|
|
33
|
+
* It should have a "Try another account" button that will allow a user to connect another account and view the block card.
|
|
34
|
+
*
|
|
35
|
+
* @see SmartLinkStatus
|
|
36
|
+
* @see FlexibleCardProps
|
|
37
|
+
*/
|
|
38
|
+
var ForbiddenViewOld = exports.ForbiddenViewOld = function ForbiddenViewOld(_ref) {
|
|
39
|
+
var _details$meta;
|
|
40
|
+
var _ref$testId = _ref.testId,
|
|
41
|
+
testId = _ref$testId === void 0 ? 'smart-block-forbidden-view' : _ref$testId,
|
|
42
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
43
|
+
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
44
|
+
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
45
|
+
var intl = (0, _reactIntlNext.useIntl)();
|
|
46
|
+
var cardState = props.cardState,
|
|
47
|
+
onAuthorize = props.onAuthorize,
|
|
48
|
+
url = props.url;
|
|
49
|
+
var details = cardState === null || cardState === void 0 ? void 0 : cardState.details;
|
|
50
|
+
var cardMetadata = (_details$meta = details === null || details === void 0 ? void 0 : details.meta) !== null && _details$meta !== void 0 ? _details$meta : (0, _jsonld.getForbiddenJsonLd)().meta;
|
|
51
|
+
var provider = (0, _linkExtractors.extractProvider)(details === null || details === void 0 ? void 0 : details.data);
|
|
52
|
+
var providerName = (provider === null || provider === void 0 ? void 0 : provider.text) || '';
|
|
53
|
+
var messageContext = (0, _react.useMemo)(function () {
|
|
54
|
+
var hostname = /*#__PURE__*/_react.default.createElement("b", null, (0, _extractHostname.default)(url));
|
|
55
|
+
return {
|
|
56
|
+
product: providerName,
|
|
57
|
+
hostname: hostname
|
|
58
|
+
};
|
|
59
|
+
}, [providerName, url]);
|
|
60
|
+
var requestAccessContext = (0, _react.useMemo)(function () {
|
|
61
|
+
return (0, _extractAccessContext.extractRequestAccessContextImproved)({
|
|
62
|
+
jsonLd: cardMetadata,
|
|
63
|
+
url: url,
|
|
64
|
+
product: providerName,
|
|
65
|
+
createAnalyticsEvent: createAnalyticsEvent
|
|
66
|
+
});
|
|
67
|
+
}, [cardMetadata, providerName, url, createAnalyticsEvent]);
|
|
68
|
+
var title = (0, _react.useMemo)(function () {
|
|
69
|
+
var descriptor = (0, _intlUtils.toMessage)(_messages.messages.invalid_permissions, requestAccessContext === null || requestAccessContext === void 0 ? void 0 : requestAccessContext.titleMessageKey);
|
|
70
|
+
return intl.formatMessage(descriptor, {
|
|
71
|
+
product: providerName
|
|
72
|
+
});
|
|
73
|
+
}, [intl, providerName, requestAccessContext === null || requestAccessContext === void 0 ? void 0 : requestAccessContext.titleMessageKey]);
|
|
74
|
+
var actions = (0, _react.useMemo)(function () {
|
|
75
|
+
var actionFromAccessContext = [];
|
|
76
|
+
var tryAnotherAccountAction = onAuthorize ? [(0, _ForbiddenAction.ForbiddenAction)(onAuthorize, 'try_another_account')] : [];
|
|
77
|
+
if (requestAccessContext) {
|
|
78
|
+
var action = requestAccessContext.action,
|
|
79
|
+
callToActionMessageKey = requestAccessContext.callToActionMessageKey;
|
|
80
|
+
actionFromAccessContext = action && callToActionMessageKey ? [(0, _ForbiddenAction.ForbiddenAction)(action.promise, callToActionMessageKey, messageContext, requestAccessContext === null || requestAccessContext === void 0 ? void 0 : requestAccessContext.buttonDisabled)] : [];
|
|
81
|
+
}
|
|
82
|
+
return [].concat(tryAnotherAccountAction, (0, _toConsumableArray2.default)(actionFromAccessContext));
|
|
83
|
+
}, [onAuthorize, requestAccessContext, messageContext]);
|
|
84
|
+
return /*#__PURE__*/_react.default.createElement(_unresolvedView.default, (0, _extends2.default)({}, props, {
|
|
85
|
+
actions: actions,
|
|
86
|
+
showPreview: true,
|
|
87
|
+
testId: testId,
|
|
88
|
+
title: title
|
|
89
|
+
}), (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? /*#__PURE__*/_react.default.createElement(_lockLocked.default, {
|
|
90
|
+
label: "forbidden-lock-icon",
|
|
91
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
92
|
+
LEGACY_fallbackIcon: _lock.default,
|
|
93
|
+
LEGACY_size: "small",
|
|
94
|
+
testId: "".concat(testId, "-lock-icon")
|
|
95
|
+
}) :
|
|
96
|
+
/*#__PURE__*/
|
|
97
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
|
|
98
|
+
_react.default.createElement(_lock.default, {
|
|
99
|
+
label: "forbidden-lock-icon",
|
|
100
|
+
size: "small",
|
|
101
|
+
primaryColor: "var(--ds-icon-danger, ".concat(_colors.R300, ")"),
|
|
102
|
+
testId: "".concat(testId, "-lock-icon")
|
|
103
|
+
}), /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
104
|
+
maxLines: 3,
|
|
105
|
+
message: {
|
|
106
|
+
descriptor: (0, _intlUtils.toMessage)(_messages.messages.invalid_permissions_description, requestAccessContext === null || requestAccessContext === void 0 ? void 0 : requestAccessContext.descriptiveMessageKey),
|
|
107
|
+
values: messageContext
|
|
108
|
+
}
|
|
109
|
+
}));
|
|
110
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* NotFoundView.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -6,9 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
7
|
value: true
|
|
7
8
|
});
|
|
8
9
|
exports.default = void 0;
|
|
10
|
+
require("./NotFoundView.compiled.css");
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var React = _react;
|
|
13
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
12
16
|
var _reactIntlNext = require("react-intl-next");
|
|
13
17
|
var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
|
|
14
18
|
var _lock = _interopRequireDefault(require("@atlaskit/icon/glyph/lock"));
|
|
@@ -17,18 +21,21 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
17
21
|
var _colors = require("@atlaskit/theme/colors");
|
|
18
22
|
var _messages = require("../../../messages");
|
|
19
23
|
var _text = _interopRequireDefault(require("../../FlexibleCard/components/elements/text"));
|
|
24
|
+
var _NotFoundViewOld = require("./NotFoundViewOld");
|
|
20
25
|
var _unresolvedView = _interopRequireDefault(require("./unresolved-view"));
|
|
21
26
|
var _withFlexibleUIBlockCardStyle = require("./utils/withFlexibleUIBlockCardStyle");
|
|
22
27
|
var _excluded = ["testId"];
|
|
23
28
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
24
29
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
30
|
+
var textStyles = null;
|
|
31
|
+
|
|
25
32
|
/**
|
|
26
33
|
* This view represents a Block Card with a 'Not_Found' status.
|
|
27
34
|
*
|
|
28
35
|
* @see SmartLinkStatus
|
|
29
36
|
* @see FlexibleCardProps
|
|
30
37
|
*/
|
|
31
|
-
var
|
|
38
|
+
var NotFoundViewNew = function NotFoundViewNew(_ref) {
|
|
32
39
|
var _cardState$details2;
|
|
33
40
|
var _ref$testId = _ref.testId,
|
|
34
41
|
testId = _ref$testId === void 0 ? 'smart-block-not-found-view' : _ref$testId,
|
|
@@ -50,10 +57,10 @@ var NotFoundView = function NotFoundView(_ref) {
|
|
|
50
57
|
descriptor: _messages.messages.not_found_description
|
|
51
58
|
};
|
|
52
59
|
}, []);
|
|
53
|
-
return /*#__PURE__*/
|
|
60
|
+
return /*#__PURE__*/React.createElement(_unresolvedView.default, (0, _extends2.default)({}, props, {
|
|
54
61
|
testId: testId,
|
|
55
62
|
title: title
|
|
56
|
-
}), (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? /*#__PURE__*/
|
|
63
|
+
}), (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(_lockLocked.default, {
|
|
57
64
|
label: "not-found-lock-icon",
|
|
58
65
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
59
66
|
LEGACY_fallbackIcon: _lock.default,
|
|
@@ -62,15 +69,23 @@ var NotFoundView = function NotFoundView(_ref) {
|
|
|
62
69
|
}) :
|
|
63
70
|
/*#__PURE__*/
|
|
64
71
|
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
|
|
65
|
-
|
|
72
|
+
React.createElement(_lock.default, {
|
|
66
73
|
label: "not-found-lock-icon",
|
|
67
74
|
size: "small",
|
|
68
75
|
primaryColor: "var(--ds-icon-danger, ".concat(_colors.R300, ")"),
|
|
69
76
|
testId: "".concat(testId, "-lock-icon")
|
|
70
|
-
}), /*#__PURE__*/
|
|
77
|
+
}), /*#__PURE__*/React.createElement(_text.default, {
|
|
71
78
|
message: description,
|
|
72
79
|
testId: "".concat(testId, "-message"),
|
|
73
|
-
maxLines: 3
|
|
80
|
+
maxLines: 3,
|
|
81
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_syaz1fxt"])
|
|
74
82
|
}));
|
|
75
83
|
};
|
|
84
|
+
var NotFoundView = function NotFoundView(props) {
|
|
85
|
+
if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
86
|
+
return /*#__PURE__*/React.createElement(NotFoundViewNew, props);
|
|
87
|
+
} else {
|
|
88
|
+
return /*#__PURE__*/React.createElement(_NotFoundViewOld.NotFoundViewOld, props);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
76
91
|
var _default = exports.default = (0, _withFlexibleUIBlockCardStyle.withFlexibleUIBlockCardStyle)(NotFoundView);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.NotFoundViewOld = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _reactIntlNext = require("react-intl-next");
|
|
13
|
+
var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
|
|
14
|
+
var _lock = _interopRequireDefault(require("@atlaskit/icon/glyph/lock"));
|
|
15
|
+
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
16
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
18
|
+
var _messages = require("../../../messages");
|
|
19
|
+
var _text = _interopRequireDefault(require("../../FlexibleCard/components/elements/text"));
|
|
20
|
+
var _unresolvedView = _interopRequireDefault(require("./unresolved-view"));
|
|
21
|
+
var _excluded = ["testId"];
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
/**
|
|
25
|
+
* This view represents a Block Card with a 'Not_Found' status.
|
|
26
|
+
*
|
|
27
|
+
* @see SmartLinkStatus
|
|
28
|
+
* @see FlexibleCardProps
|
|
29
|
+
*/
|
|
30
|
+
var NotFoundViewOld = exports.NotFoundViewOld = function NotFoundViewOld(_ref) {
|
|
31
|
+
var _cardState$details2;
|
|
32
|
+
var _ref$testId = _ref.testId,
|
|
33
|
+
testId = _ref$testId === void 0 ? 'smart-block-not-found-view' : _ref$testId,
|
|
34
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
35
|
+
var intl = (0, _reactIntlNext.useIntl)();
|
|
36
|
+
var cardState = props.cardState;
|
|
37
|
+
var product = (0, _react.useMemo)(function () {
|
|
38
|
+
var _cardState$details, _provider$text;
|
|
39
|
+
var provider = (0, _linkExtractors.extractProvider)(cardState === null || cardState === void 0 || (_cardState$details = cardState.details) === null || _cardState$details === void 0 ? void 0 : _cardState$details.data);
|
|
40
|
+
return (_provider$text = provider === null || provider === void 0 ? void 0 : provider.text) !== null && _provider$text !== void 0 ? _provider$text : '';
|
|
41
|
+
}, [cardState === null || cardState === void 0 || (_cardState$details2 = cardState.details) === null || _cardState$details2 === void 0 ? void 0 : _cardState$details2.data]);
|
|
42
|
+
var title = (0, _react.useMemo)(function () {
|
|
43
|
+
return intl.formatMessage(_messages.messages.not_found_title, {
|
|
44
|
+
product: product
|
|
45
|
+
});
|
|
46
|
+
}, [intl, product]);
|
|
47
|
+
var description = (0, _react.useMemo)(function () {
|
|
48
|
+
return {
|
|
49
|
+
descriptor: _messages.messages.not_found_description
|
|
50
|
+
};
|
|
51
|
+
}, []);
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement(_unresolvedView.default, (0, _extends2.default)({}, props, {
|
|
53
|
+
testId: testId,
|
|
54
|
+
title: title
|
|
55
|
+
}), (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? /*#__PURE__*/_react.default.createElement(_lockLocked.default, {
|
|
56
|
+
label: "not-found-lock-icon",
|
|
57
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
58
|
+
LEGACY_fallbackIcon: _lock.default,
|
|
59
|
+
LEGACY_size: "small",
|
|
60
|
+
testId: "".concat(testId, "-lock-icon")
|
|
61
|
+
}) :
|
|
62
|
+
/*#__PURE__*/
|
|
63
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
|
|
64
|
+
_react.default.createElement(_lock.default, {
|
|
65
|
+
label: "not-found-lock-icon",
|
|
66
|
+
size: "small",
|
|
67
|
+
primaryColor: "var(--ds-icon-danger, ".concat(_colors.R300, ")"),
|
|
68
|
+
testId: "".concat(testId, "-lock-icon")
|
|
69
|
+
}), /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
70
|
+
message: description,
|
|
71
|
+
testId: "".concat(testId, "-message"),
|
|
72
|
+
maxLines: 3
|
|
73
|
+
}));
|
|
74
|
+
};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
._zulpcxkx{gap:var(--ds-space-100,.5rem)}
|
|
2
|
+
._zulpcxkx{gap:var(--ds-space-100,.5rem)}
|
|
3
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}._13mh1pd9 [data-smart-element=Title]{font-weight:var(--ds-font-weight-semibold,600)}
|
|
4
|
+
._1bah1yb4{justify-content:space-between}
|
|
5
|
+
._1e0c1txw{display:flex}
|
|
3
6
|
._1sxbcxkx span[data-smart-element-avatar-group]>ul{margin-right:var(--ds-space-100,.5rem)}
|
|
7
|
+
._1wpz1fhb{align-self:stretch}
|
|
8
|
+
._2yhz14q2 [data-smart-element=Title]{color:var(--ds-link,#0c66e4)}
|
|
9
|
+
._4cvresu3{align-items:flex-end}
|
|
4
10
|
._4t3i1k8s{height:1.5rem}
|
|
5
11
|
._g0eioxwj .actions-button-group button, ._1qryoxwj .actions-button-group button:active, ._sxbroxwj .actions-button-group button:focus, ._1gyioxwj .actions-button-group button:hover{font-size:.875rem}
|
|
6
12
|
._i8d01j6v [data-smart-element-group]{line-height:1rem}
|
|
@@ -22,9 +22,11 @@ var _utils = require("./utils");
|
|
|
22
22
|
var _withFlexibleUIBlockCardStyle = require("./utils/withFlexibleUIBlockCardStyle");
|
|
23
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
24
24
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
|
+
var titleBlockCssOld = null;
|
|
25
26
|
var titleBlockCss = null;
|
|
27
|
+
var footerBlockCssOld = null;
|
|
26
28
|
var footerBlockCss = null;
|
|
27
|
-
var
|
|
29
|
+
var metadataBlockCssOld = null;
|
|
28
30
|
|
|
29
31
|
/**
|
|
30
32
|
* This view represents a Block card that has an 'Resolved' status.
|
|
@@ -82,17 +84,17 @@ var ResolvedView = function ResolvedView(_ref) {
|
|
|
82
84
|
}],
|
|
83
85
|
metadataPosition: _constants.SmartLinkPosition.Top,
|
|
84
86
|
status: status,
|
|
85
|
-
className: (0, _runtime.ax)(["_zulpcxkx _13mh1pd9"])
|
|
87
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_zulpu2gc _13mh1pd9 _2yhz14q2" : "_zulpcxkx _13mh1pd9"])
|
|
86
88
|
})), /*#__PURE__*/React.createElement(_blocks.MetadataBlock, {
|
|
87
89
|
primary: topMetadata,
|
|
88
90
|
maxLines: 1,
|
|
89
91
|
status: _constants.SmartLinkStatus.Resolved,
|
|
90
|
-
className: (0, _runtime.ax)(["_wwyvidpf _1sxbcxkx _i8d01j6v"])
|
|
92
|
+
className: (0, _runtime.ax)([!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_wwyvidpf _1sxbcxkx _i8d01j6v"])
|
|
91
93
|
}), /*#__PURE__*/React.createElement(_blocks.SnippetBlock, null), /*#__PURE__*/React.createElement(_blocks.MetadataBlock, {
|
|
92
94
|
primary: bottomMetadata,
|
|
93
95
|
maxLines: 1,
|
|
94
96
|
status: _constants.SmartLinkStatus.Resolved,
|
|
95
|
-
className: (0, _runtime.ax)(["_wwyvidpf _1sxbcxkx _i8d01j6v"])
|
|
97
|
+
className: (0, _runtime.ax)([!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_wwyvidpf _1sxbcxkx _i8d01j6v"])
|
|
96
98
|
}), !isPreviewBlockErrored ? /*#__PURE__*/React.createElement(_blocks.PreviewBlock, (0, _extends2.default)({}, _utils.PreviewBlockOptions, {
|
|
97
99
|
onError: function onError() {
|
|
98
100
|
setIsPreviewBlockErrored(true);
|
|
@@ -101,7 +103,7 @@ var ResolvedView = function ResolvedView(_ref) {
|
|
|
101
103
|
})) : null, /*#__PURE__*/React.createElement(_blocks.FooterBlock, {
|
|
102
104
|
actions: footerActions,
|
|
103
105
|
status: _constants.SmartLinkStatus.Resolved,
|
|
104
|
-
className: (0, _runtime.ax)(["_4t3i1k8s _g0eioxwj _1qryoxwj _sxbroxwj _1gyioxwj"])
|
|
106
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_4t3i1k8s _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb" : "_4t3i1k8s _g0eioxwj _1qryoxwj _sxbroxwj _1gyioxwj"])
|
|
105
107
|
}));
|
|
106
108
|
};
|
|
107
109
|
var ResolvedViewExported = function ResolvedViewExported(props) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._19pkcxkx{margin-top:var(--ds-space-100,.5rem)}
|
|
3
|
-
.
|
|
3
|
+
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
4
|
+
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
5
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
@@ -15,6 +15,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
15
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
16
|
var _reactIntlNext = require("react-intl-next");
|
|
17
17
|
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
18
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
19
|
var _useAnalyticsEvents2 = require("../../../common/analytics/generated/use-analytics-events");
|
|
19
20
|
var _messages = require("../../../messages");
|
|
20
21
|
var _helpers = require("../../../state/helpers");
|
|
@@ -25,6 +26,7 @@ var _withFlexibleUIBlockCardStyle = require("./utils/withFlexibleUIBlockCardStyl
|
|
|
25
26
|
var _excluded = ["testId"];
|
|
26
27
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
27
28
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
29
|
+
var contentStylesOld = null;
|
|
28
30
|
var contentStyles = null;
|
|
29
31
|
|
|
30
32
|
/**
|
|
@@ -71,7 +73,7 @@ var UnauthorisedView = function UnauthorisedView(_ref) {
|
|
|
71
73
|
testId: testId
|
|
72
74
|
}), /*#__PURE__*/React.createElement("div", {
|
|
73
75
|
"data-testid": "".concat(testId, "-content"),
|
|
74
|
-
className: (0, _runtime.ax)(["_11c8qk37 _syaz131l _19pkcxkx"])
|
|
76
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_11c8qk37 _syaz1fxt _19pku2gc" : "_11c8qk37 _syaz131l _19pkcxkx"])
|
|
75
77
|
}, content));
|
|
76
78
|
};
|
|
77
79
|
var _default = exports.default = (0, _withFlexibleUIBlockCardStyle.withFlexibleUIBlockCardStyle)(UnauthorisedView);
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
|
+
._zulp1f3t{gap:var(--ds-space-100,.5em)}
|
|
4
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}._13mh1pd9 [data-smart-element=Title]{font-weight:var(--ds-font-weight-semibold,600)}
|
|
5
|
+
._1bah1yb4{justify-content:space-between}
|
|
6
|
+
._1e0c1txw{display:flex}
|
|
7
|
+
._1wpz1fhb{align-self:stretch}
|
|
8
|
+
._2yhz14q2 [data-smart-element=Title]{color:var(--ds-link,#0c66e4)}
|
|
3
9
|
._4cvr1y6m{align-items:flex-start}
|
|
10
|
+
._4cvresu3{align-items:flex-end}
|
|
4
11
|
._4t3i1k8s{height:1.5rem}
|
|
5
|
-
.
|
|
12
|
+
._7yjtidpf >div{margin-top:0}
|
|
13
|
+
._g0eioxwj .actions-button-group button, ._1qryoxwj .actions-button-group button:active, ._sxbroxwj .actions-button-group button:focus, ._1gyioxwj .actions-button-group button:hover{font-size:.875rem}
|
|
14
|
+
._ngc01fxt >div{color:var(--ds-text,#172b4d)}
|
|
@@ -18,8 +18,11 @@ var _utils = require("../utils");
|
|
|
18
18
|
var _UnresolvedViewOld = _interopRequireDefault(require("./UnresolvedViewOld"));
|
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
|
+
var customBlockStylesOld = null;
|
|
21
22
|
var customBlockStyles = null;
|
|
23
|
+
var titleBlockCssOld = null;
|
|
22
24
|
var titleBlockCss = null;
|
|
25
|
+
var footerBlockCssOld = null;
|
|
23
26
|
var footerBlockCss = null;
|
|
24
27
|
var UnresolvedView = function UnresolvedView(_ref) {
|
|
25
28
|
var actions = _ref.actions,
|
|
@@ -47,17 +50,17 @@ var UnresolvedView = function UnresolvedView(_ref) {
|
|
|
47
50
|
hideIcon: !!title,
|
|
48
51
|
text: title,
|
|
49
52
|
status: cardState.status,
|
|
50
|
-
className: (0, _runtime.ax)(["_zulp1f3t _13mh1pd9"])
|
|
53
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_zulpu2gc _13mh1pd9 _2yhz14q2" : "_zulp1f3t _13mh1pd9"])
|
|
51
54
|
})), /*#__PURE__*/React.createElement(_blocks.CustomBlock, {
|
|
52
55
|
status: cardState.status,
|
|
53
|
-
className: (0, _runtime.ax)(["_4cvr1y6m"])
|
|
56
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_zulp1b66 _1e0c1txw _4cvr1y6m _1wpz1fhb _7yjtidpf _ngc01fxt" : "_4cvr1y6m"])
|
|
54
57
|
}, children), showPreview && /*#__PURE__*/React.createElement(_blocks.PreviewBlock, (0, _extends2.default)({}, _utils.PreviewBlockOptions, {
|
|
55
58
|
status: cardState.status
|
|
56
59
|
})), /*#__PURE__*/React.createElement(_blocks.InternalFooterBlock, {
|
|
57
60
|
actions: actions,
|
|
58
61
|
testId: "smart-block-card-footer",
|
|
59
62
|
status: cardState.status,
|
|
60
|
-
className: (0, _runtime.ax)(["_4t3i1k8s _g0eioxwj _1qryoxwj _sxbroxwj _1gyioxwj"])
|
|
63
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_4t3i1k8s _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb" : "_4t3i1k8s _g0eioxwj _1qryoxwj _sxbroxwj _1gyioxwj"])
|
|
61
64
|
}));
|
|
62
65
|
};
|
|
63
66
|
var UnresolvedViewExported = exports.UnresolvedViewExported = function UnresolvedViewExported(props) {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
._19bv16ru{padding-left:calc(var(--preview-block-width) + var(--ds-space-250, 20px))}
|
|
17
17
|
._19bv1g7w{padding-left:calc(var(--preview-block-width) + var(--ds-space-200, 1pc))}
|
|
18
18
|
._19bv1ltm{padding-left:calc(var(--preview-block-width) + .25rem)}
|
|
19
|
-
.
|
|
19
|
+
._19bver0k{padding-left:calc(var(--preview-block-width) + var(--ds-space-300, 24px))}
|
|
20
20
|
._19bvf557{padding-left:calc(var(--preview-block-width) + 1rem)}
|
|
21
21
|
._19bvlbes{padding-left:calc(var(--preview-block-width) + var(--ds-space-100, 8px))}
|
|
22
22
|
._19bvqox2{padding-left:calc(var(--preview-block-width) + .5rem)}
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
._1reo15vq{overflow-x:hidden}
|
|
27
27
|
._1t4ckb7n .has-action, ._1nxdkb7n a, ._xnbykb7n button{z-index:1}
|
|
28
28
|
._1ul9idpf{min-width:0}
|
|
29
|
-
._1yob1b66{--container-gap-right:var(--ds-space-050,4px)}
|
|
30
29
|
._1yob1eak{--container-gap-right:var(--ds-space-200,16px)}
|
|
30
|
+
._1yob1ejb{--container-gap-right:var(--ds-space-300,24px)}
|
|
31
31
|
._1yob1j6v{--container-gap-right:1rem}
|
|
32
32
|
._1yob1k92{--container-gap-right:1.25rem}
|
|
33
33
|
._1yob1kwk{--container-gap-right:.5rem}
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
._u5f316ru{padding-right:calc(var(--preview-block-width) + var(--ds-space-250, 20px))}
|
|
48
48
|
._u5f31g7w{padding-right:calc(var(--preview-block-width) + var(--ds-space-200, 1pc))}
|
|
49
49
|
._u5f31ltm{padding-right:calc(var(--preview-block-width) + .25rem)}
|
|
50
|
-
.
|
|
50
|
+
._u5f3er0k{padding-right:calc(var(--preview-block-width) + var(--ds-space-300, 24px))}
|
|
51
51
|
._u5f3f557{padding-right:calc(var(--preview-block-width) + 1rem)}
|
|
52
52
|
._u5f3lbes{padding-right:calc(var(--preview-block-width) + var(--ds-space-100, 8px))}
|
|
53
53
|
._u5f3qox2{padding-right:calc(var(--preview-block-width) + .5rem)}
|
|
54
54
|
._y5vk167t{--container-gap-left:var(--_73mooq)}
|
|
55
|
-
._y5vk1b66{--container-gap-left:var(--ds-space-050,4px)}
|
|
56
55
|
._y5vk1eak{--container-gap-left:var(--ds-space-200,16px)}
|
|
56
|
+
._y5vk1ejb{--container-gap-left:var(--ds-space-300,24px)}
|
|
57
57
|
._y5vk1j6v{--container-gap-left:1rem}
|
|
58
58
|
._y5vk1k92{--container-gap-left:1.25rem}
|
|
59
59
|
._y5vk1kwk{--container-gap-left:.5rem}
|
|
@@ -227,10 +227,10 @@ var previewOnLeftStyleMapOld = {
|
|
|
227
227
|
small: "_19bv1ltm _y5vk6mu8"
|
|
228
228
|
};
|
|
229
229
|
var previewOnLeftStyleMap = {
|
|
230
|
-
xlarge: "
|
|
231
|
-
large: "
|
|
232
|
-
medium: "
|
|
233
|
-
small: "
|
|
230
|
+
xlarge: "_19bver0k _y5vk1ejb",
|
|
231
|
+
large: "_19bv16ru _y5vkv47k",
|
|
232
|
+
medium: "_19bv1g7w _y5vk1eak",
|
|
233
|
+
small: "_19bvlbes _y5vku2gc"
|
|
234
234
|
};
|
|
235
235
|
|
|
236
236
|
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
@@ -241,10 +241,10 @@ var previewOnRightStyleMapOld = {
|
|
|
241
241
|
small: "_u5f31ltm _1yob6mu8"
|
|
242
242
|
};
|
|
243
243
|
var previewOnRightStyleMap = {
|
|
244
|
-
xlarge: "
|
|
245
|
-
large: "
|
|
246
|
-
medium: "
|
|
247
|
-
small: "
|
|
244
|
+
xlarge: "_u5f3er0k _1yob1ejb",
|
|
245
|
+
large: "_u5f316ru _1yobv47k",
|
|
246
|
+
medium: "_u5f31g7w _1yob1eak",
|
|
247
|
+
small: "_u5f3lbes _1yobu2gc"
|
|
248
248
|
};
|
|
249
249
|
|
|
250
250
|
/**
|
|
@@ -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.1.
|
|
23
|
+
packageVersion: "35.1.3",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|