@atlaskit/smart-card 36.0.0 → 36.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/compass.yml +2 -12
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/InlineCard/ErroredView/index.compiled.css +0 -1
- package/dist/cjs/view/InlineCard/ErroredView/index.js +3 -7
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +9 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.compiled.css +7 -6
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +20 -25
- package/dist/cjs/view/InlineCard/ResolvingView/index.compiled.css +6 -0
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +14 -3
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.compiled.css +0 -1
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +3 -7
- package/dist/cjs/view/InlineCard/common/action-button/index.compiled.css +1 -1
- package/dist/cjs/view/InlineCard/common/action-button/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/InlineCard/ErroredView/index.compiled.css +0 -1
- package/dist/es2019/view/InlineCard/ErroredView/index.js +3 -7
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +9 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.compiled.css +7 -6
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +20 -25
- package/dist/es2019/view/InlineCard/ResolvingView/index.compiled.css +6 -0
- package/dist/es2019/view/InlineCard/ResolvingView/index.js +14 -3
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.compiled.css +0 -1
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +3 -7
- package/dist/es2019/view/InlineCard/common/action-button/index.compiled.css +1 -1
- package/dist/es2019/view/InlineCard/common/action-button/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/InlineCard/ErroredView/index.compiled.css +0 -1
- package/dist/esm/view/InlineCard/ErroredView/index.js +3 -7
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +9 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.compiled.css +7 -6
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +20 -25
- package/dist/esm/view/InlineCard/ResolvingView/index.compiled.css +6 -0
- package/dist/esm/view/InlineCard/ResolvingView/index.js +14 -3
- package/dist/esm/view/InlineCard/UnauthorisedView/index.compiled.css +0 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +3 -7
- package/dist/esm/view/InlineCard/common/action-button/index.compiled.css +1 -1
- package/dist/esm/view/InlineCard/common/action-button/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/InlineCard/ResolvingView/index.d.ts +4 -0
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/index.d.ts +4 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 36.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#128316](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128316)
|
|
8
|
+
[`8d94e427c61e0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8d94e427c61e0) -
|
|
9
|
+
[ux] Fix inline icon drop when word wrap left only icon on the first line (visual refresh)
|
|
10
|
+
|
|
11
|
+
## 36.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#128098](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128098)
|
|
16
|
+
[`2c7474b012df9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c7474b012df9) -
|
|
17
|
+
Update slack help channel name
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 36.0.0
|
|
4
21
|
|
|
5
22
|
### Major Changes
|
package/compass.yml
CHANGED
|
@@ -10,9 +10,9 @@ links:
|
|
|
10
10
|
- name: null
|
|
11
11
|
type: REPOSITORY
|
|
12
12
|
url: 'https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/linking-platform/smart-card/'
|
|
13
|
-
- name: '#linking-platform'
|
|
13
|
+
- name: '#help-twg-linking-platform'
|
|
14
14
|
type: CHAT_CHANNEL
|
|
15
|
-
url: 'https://atlassian.slack.com/
|
|
15
|
+
url: 'https://atlassian.enterprise.slack.com/archives/CFKGAQZRV'
|
|
16
16
|
- name: ''
|
|
17
17
|
type: ON_CALL
|
|
18
18
|
url: 'https://atlassian.app.opsgenie.com/settings/schedule/detail/b9c8b313-dd6d-4a41-8eeb-d7a9df55be9d'
|
|
@@ -28,15 +28,5 @@ links:
|
|
|
28
28
|
relationships: {}
|
|
29
29
|
labels:
|
|
30
30
|
- atlassian-platform
|
|
31
|
-
customFields:
|
|
32
|
-
- name: Dev Owner
|
|
33
|
-
type: user
|
|
34
|
-
value: null
|
|
35
|
-
- name: Product
|
|
36
|
-
type: text
|
|
37
|
-
value: null
|
|
38
|
-
- name: Test
|
|
39
|
-
type: text
|
|
40
|
-
value: null
|
|
41
31
|
# Learn more about formatting compass.yml:
|
|
42
32
|
# https://go.atlassian.com/compass-yml-format
|
|
@@ -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: "36.0.
|
|
14
|
+
packageVersion: "36.0.2"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -25,20 +25,16 @@ var _IconAndTitleLayout = require("../IconAndTitleLayout");
|
|
|
25
25
|
var _styled = require("../styled");
|
|
26
26
|
var _withFrameStyleControl = _interopRequireDefault(require("../utils/withFrameStyleControl"));
|
|
27
27
|
var styles = {
|
|
28
|
-
iconWrapper: "_2hwx1i6y"
|
|
29
|
-
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
28
|
+
iconWrapper: "_2hwx1i6y"
|
|
30
29
|
};
|
|
31
30
|
var fallbackIcon = function fallbackIcon() {
|
|
32
31
|
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
34
|
-
as: "span",
|
|
35
|
-
xcss: styles.fallbackIconWrapper
|
|
36
|
-
}, /*#__PURE__*/_react.default.createElement(_error.default, {
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_error.default, {
|
|
37
33
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
38
34
|
label: "error",
|
|
39
35
|
LEGACY_size: "small",
|
|
40
36
|
testId: "errored-view-default-icon"
|
|
41
|
-
})
|
|
37
|
+
});
|
|
42
38
|
}
|
|
43
39
|
if ((0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration')) {
|
|
44
40
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
@@ -32,6 +32,15 @@ var styles = {
|
|
|
32
32
|
actionButtonLozengeStyle: "_2rkogqwt _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
33
33
|
};
|
|
34
34
|
var fallbackForbiddenIcon = function fallbackForbiddenIcon() {
|
|
35
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_lockLocked.default, {
|
|
37
|
+
label: "error",
|
|
38
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
39
|
+
LEGACY_fallbackIcon: _lockFilled.default,
|
|
40
|
+
LEGACY_size: "small",
|
|
41
|
+
testId: "forbidden-view-fallback-icon"
|
|
42
|
+
});
|
|
43
|
+
}
|
|
35
44
|
return (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
36
45
|
as: "span",
|
|
37
46
|
xcss: styles.iconWrapper
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}
|
|
3
|
-
.
|
|
3
|
+
._2rkoyh40{border-radius:2px}
|
|
4
|
+
._154i1ssb{top:50%}
|
|
4
5
|
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
5
6
|
._18u01b66{margin-left:var(--ds-space-050,4px)}
|
|
6
7
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
@@ -10,12 +11,11 @@
|
|
|
10
11
|
._1bsb7vkz{width:1pc}
|
|
11
12
|
._1e0c116y{display:inline-flex}
|
|
12
13
|
._1e0c1o8l{display:inline-block}
|
|
13
|
-
.
|
|
14
|
-
._1ltvze3t{left:var(--ds-space-0,0)}
|
|
14
|
+
._1ltv1ssb{left:50%}
|
|
15
15
|
._1nmz9jpi{word-break:break-all}
|
|
16
16
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
17
|
-
.
|
|
18
|
-
.
|
|
17
|
+
._4t3i1osq{height:100%}
|
|
18
|
+
._4t3i7vkz{height:1pc}
|
|
19
19
|
._c71l7vkz{max-height:1pc}
|
|
20
20
|
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
21
21
|
._kqswh2mm{position:relative}
|
|
@@ -23,14 +23,15 @@
|
|
|
23
23
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
24
24
|
._o5721jtm{white-space:pre-wrap}
|
|
25
25
|
._otyridpf{margin-bottom:0}
|
|
26
|
+
._p12f7vkz{max-width:1pc}
|
|
26
27
|
._s7n4t94y{vertical-align:1px}
|
|
27
28
|
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
28
29
|
._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
|
|
29
30
|
._syaz1y58{color:var(--ds-link,#0052cc)}
|
|
31
|
+
._t9ec1ooe{transform:translate(-50%,-50%)}
|
|
30
32
|
._tzy4idpf{opacity:0}
|
|
31
33
|
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
32
34
|
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
33
|
-
._vchhusvi{box-sizing:border-box}
|
|
34
35
|
._1bnxglyw:hover{text-decoration-line:none}
|
|
35
36
|
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
36
37
|
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
@@ -26,12 +26,12 @@ var _excluded = ["as", "style"],
|
|
|
26
26
|
_excluded4 = ["as", "style"];
|
|
27
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); }
|
|
28
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
|
|
29
|
+
var iconWrapperStyle = null;
|
|
30
|
+
var iconImageStyle = null;
|
|
30
31
|
var styles = {
|
|
31
|
-
iconEmptyStyle: "_1bsb7vkz _1e0c1o8l _tzy4idpf",
|
|
32
|
-
iconOuterWrapperStyle: "_2hwx1b66 _kqswh2mm",
|
|
32
|
+
iconEmptyStyle: "_1bsb7vkz _4t3i1osq _1e0c1o8l _tzy4idpf",
|
|
33
|
+
iconOuterWrapperStyle: "_1e0c1o8l _2hwx1b66 _kqswh2mm",
|
|
33
34
|
iconTitleWrapperStyle: "_o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66",
|
|
34
|
-
iconWrapperStyle: "_11c81o8v _kqswstnw _1e0c116y _4cvr1h6o _vchhusvi _154ize3t _1ltvze3t _94n5ze3t _1bsb7vkz _uiztglyw",
|
|
35
35
|
linkStyle: "_2rkogqwt",
|
|
36
36
|
noLinkAppearanceStyle: "_syaz131l _18u01b66"
|
|
37
37
|
};
|
|
@@ -82,11 +82,7 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = function IconAndTitleLayou
|
|
|
82
82
|
var renderAtlaskitIcon = _react.default.useCallback(function () {
|
|
83
83
|
if (emoji) {
|
|
84
84
|
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
85
|
-
return
|
|
86
|
-
as: "span",
|
|
87
|
-
xcss: styles.iconWrapperStyle,
|
|
88
|
-
testId: "icon-position-emoji-wrapper"
|
|
89
|
-
}, emoji);
|
|
85
|
+
return emoji;
|
|
90
86
|
}
|
|
91
87
|
return /*#__PURE__*/_react.default.createElement(_styled.EmojiWrapperOldVisualRefresh, null, emoji);
|
|
92
88
|
}
|
|
@@ -94,10 +90,7 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = function IconAndTitleLayou
|
|
|
94
90
|
return null;
|
|
95
91
|
}
|
|
96
92
|
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
97
|
-
return
|
|
98
|
-
"data-testId": "icon-atlaskit-icon-wrapper",
|
|
99
|
-
className: (0, _runtime.ax)(["_kqswstnw _1e0c116y _4cvr1h6o _vchhusvi _154ize3t _1ltvze3t _94n5ze3t _1bsb7vkz _uiztglyw _1ii71ule"])
|
|
100
|
-
}, icon);
|
|
93
|
+
return icon;
|
|
101
94
|
}
|
|
102
95
|
return /*#__PURE__*/_react.default.createElement(_styled.IconWrapperOldVisualRefresh, null, icon);
|
|
103
96
|
}, [emoji, icon]);
|
|
@@ -112,7 +105,7 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = function IconAndTitleLayou
|
|
|
112
105
|
src: icon,
|
|
113
106
|
"data-testid": "".concat(testId, "-image"),
|
|
114
107
|
alt: "",
|
|
115
|
-
className: (0, _runtime.ax)(["_c71l7vkz _1bsb1osq"])
|
|
108
|
+
className: (0, _runtime.ax)(["_c71l7vkz _p12f7vkz _1bsb1osq"])
|
|
116
109
|
}),
|
|
117
110
|
errored: errored,
|
|
118
111
|
loading: /*#__PURE__*/_react.default.createElement(_Icon.Shimmer, {
|
|
@@ -163,13 +156,6 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = function IconAndTitleLayou
|
|
|
163
156
|
}
|
|
164
157
|
var placeholder = renderIconPlaceholder(testId);
|
|
165
158
|
var image = renderImageIcon(placeholder, testId);
|
|
166
|
-
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
167
|
-
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
168
|
-
as: "span",
|
|
169
|
-
xcss: styles.iconWrapperStyle,
|
|
170
|
-
testId: "".concat(testId, "-image-wrapper")
|
|
171
|
-
}, image || placeholder);
|
|
172
|
-
}
|
|
173
159
|
return image || placeholder;
|
|
174
160
|
}, [renderAtlaskitIcon, renderIconPlaceholder, renderImageIcon]);
|
|
175
161
|
var handleClick = _react.default.useCallback(function (event) {
|
|
@@ -192,14 +178,24 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = function IconAndTitleLayou
|
|
|
192
178
|
|
|
193
179
|
// maybe consider memoising this after clean up
|
|
194
180
|
var titlePart = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
195
|
-
as: "span"
|
|
181
|
+
as: "span"
|
|
182
|
+
// EDM-12119: This is set here to help with the positioning of the icon to be in the middle of inline display.
|
|
183
|
+
// We cannot set the fix font because inline is taking the parent container font size into account.
|
|
184
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
185
|
+
,
|
|
186
|
+
style: {
|
|
187
|
+
lineHeight: "1"
|
|
188
|
+
},
|
|
196
189
|
xcss: styles.iconOuterWrapperStyle,
|
|
197
190
|
testId: "icon-position-wrapper"
|
|
198
191
|
}, children || /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
199
192
|
as: "span",
|
|
200
193
|
xcss: styles.iconEmptyStyle,
|
|
201
194
|
testId: "icon-empty-wrapper"
|
|
202
|
-
}),
|
|
195
|
+
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
196
|
+
"data-testId": "icon-wrapper",
|
|
197
|
+
className: (0, _runtime.ax)(["_11c81o8v _2rkoyh40 _1e0c116y _kqswstnw _2hwx1b66 _4t3i7vkz _1bsb7vkz _154i1ssb _1ltv1ssb _t9ec1ooe _uiztglyw"])
|
|
198
|
+
}, renderIcon(testId)))) : /*#__PURE__*/_react.default.createElement(_styled.IconPositionWrapperOldVisualRefresh, {
|
|
203
199
|
"data-testid": "icon-position-wrapper"
|
|
204
200
|
}, children || /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styled.IconEmptyWrapperOldVisualRefresh, {
|
|
205
201
|
"data-testid": "icon-empty-wrapper"
|
|
@@ -285,5 +281,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
285
281
|
var LozengeWrapper = exports.LozengeWrapper = function LozengeWrapper(props) {
|
|
286
282
|
// note: This is just to get the types to work due to compiled css weirdness.
|
|
287
283
|
return /*#__PURE__*/_react.default.createElement(LozengeWrapperOldVisualRefresh, props);
|
|
288
|
-
};
|
|
289
|
-
var iconImageStyle = null;
|
|
284
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._1bah1h6o{justify-content:center}
|
|
3
|
+
._1bsb7vkz{width:1pc}
|
|
4
|
+
._1e0c116y{display:inline-flex}
|
|
5
|
+
._4cvr1h6o{align-items:center}
|
|
6
|
+
._4t3i7vkz{height:1pc}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -5,13 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.InlineCardResolvingView = void 0;
|
|
9
|
+
require("./index.compiled.css");
|
|
10
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
11
|
var _react = _interopRequireDefault(require("react"));
|
|
9
12
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
10
14
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
11
15
|
var _Frame = require("../Frame");
|
|
12
16
|
var _IconAndTitleLayout = require("../IconAndTitleLayout");
|
|
13
17
|
var _styled = require("../IconAndTitleLayout/styled");
|
|
14
18
|
var _styled2 = require("./styled");
|
|
19
|
+
var styles = {
|
|
20
|
+
spinnerWrapper: "_11c81o8v _1e0c116y _4cvr1h6o _1bah1h6o _4t3i7vkz _1bsb7vkz"
|
|
21
|
+
};
|
|
15
22
|
var InlineCardResolvingView = exports.InlineCardResolvingView = function InlineCardResolvingView(_ref) {
|
|
16
23
|
var url = _ref.url,
|
|
17
24
|
onClick = _ref.onClick,
|
|
@@ -23,9 +30,12 @@ var InlineCardResolvingView = exports.InlineCardResolvingView = function InlineC
|
|
|
23
30
|
resolvingPlaceholder = _ref.resolvingPlaceholder,
|
|
24
31
|
truncateInline = _ref.truncateInline;
|
|
25
32
|
var renderSpinner = _react.default.useCallback(function () {
|
|
26
|
-
return (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? /*#__PURE__*/_react.default.createElement(
|
|
33
|
+
return (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
34
|
+
as: "span",
|
|
35
|
+
xcss: styles.spinnerWrapper
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
27
37
|
size: 14
|
|
28
|
-
}) :
|
|
38
|
+
})) :
|
|
29
39
|
/*#__PURE__*/
|
|
30
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
31
41
|
_react.default.createElement(_styled2.SpinnerWrapperOldVisualRefresh, {
|
|
@@ -50,7 +60,8 @@ var InlineCardResolvingView = exports.InlineCardResolvingView = function InlineC
|
|
|
50
60
|
link: url,
|
|
51
61
|
truncateInline: truncateInline
|
|
52
62
|
}, /*#__PURE__*/_react.default.createElement(_IconAndTitleLayout.IconAndTitleLayout, {
|
|
63
|
+
icon: (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? renderSpinner() : undefined,
|
|
53
64
|
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
54
65
|
titleTextColor: titleTextColor
|
|
55
|
-
}, renderSpinner()));
|
|
66
|
+
}, (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? undefined : renderSpinner()));
|
|
56
67
|
};
|
|
@@ -27,20 +27,16 @@ var _IconAndTitleLayout = require("../IconAndTitleLayout");
|
|
|
27
27
|
var _styled = require("../styled");
|
|
28
28
|
var _withFrameStyleControl = _interopRequireDefault(require("../utils/withFrameStyleControl"));
|
|
29
29
|
var styles = {
|
|
30
|
-
iconWrapper: "_2hwx1i6y"
|
|
31
|
-
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
30
|
+
iconWrapper: "_2hwx1i6y"
|
|
32
31
|
};
|
|
33
32
|
var fallbackUnauthorizedIcon = function fallbackUnauthorizedIcon() {
|
|
34
33
|
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
35
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
36
|
-
as: "span",
|
|
37
|
-
xcss: styles.fallbackIconWrapper
|
|
38
|
-
}, /*#__PURE__*/_react.default.createElement(_lockLocked.default, {
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement(_lockLocked.default, {
|
|
39
35
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
40
36
|
label: "error",
|
|
41
37
|
LEGACY_fallbackIcon: _lockFilled.default,
|
|
42
38
|
LEGACY_size: "small"
|
|
43
|
-
})
|
|
39
|
+
});
|
|
44
40
|
}
|
|
45
41
|
if ((0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration')) {
|
|
46
42
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
3
3
|
._1e0c1bgi{display:contents}
|
|
4
4
|
._1e0c1nu9{display:inline}
|
|
5
|
-
.
|
|
5
|
+
._1nmz9jpi{word-break:break-all}
|
|
6
6
|
._1y1m1u8q{background-clip:padding-box}
|
|
7
7
|
._80om13gf{cursor:not-allowed}
|
|
8
8
|
._80omtlke{cursor:pointer}
|
|
@@ -19,7 +19,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
19
19
|
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; }
|
|
20
20
|
var styles = {
|
|
21
21
|
button: "_1e0c1bgi",
|
|
22
|
-
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx
|
|
22
|
+
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz9jpi",
|
|
23
23
|
enabled: "_syaz1fxt _80omtlke _bfhkm7j4 _irr315ej _1di6ip91",
|
|
24
24
|
disabled: "_syaz1lh4 _80om13gf _bfhksyzs"
|
|
25
25
|
};
|
|
@@ -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: "36.0.
|
|
23
|
+
packageVersion: "36.0.2",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -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: "36.0.
|
|
5
|
+
packageVersion: "36.0.2"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -18,20 +18,16 @@ import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
|
18
18
|
import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
19
19
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
20
20
|
const styles = {
|
|
21
|
-
iconWrapper: "_2hwx1i6y"
|
|
22
|
-
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
21
|
+
iconWrapper: "_2hwx1i6y"
|
|
23
22
|
};
|
|
24
23
|
const fallbackIcon = () => {
|
|
25
24
|
if (fg('platform-linking-visual-refresh-v1')) {
|
|
26
|
-
return /*#__PURE__*/React.createElement(
|
|
27
|
-
as: "span",
|
|
28
|
-
xcss: styles.fallbackIconWrapper
|
|
29
|
-
}, /*#__PURE__*/React.createElement(ErrorIconCore, {
|
|
25
|
+
return /*#__PURE__*/React.createElement(ErrorIconCore, {
|
|
30
26
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
31
27
|
label: "error",
|
|
32
28
|
LEGACY_size: "small",
|
|
33
29
|
testId: "errored-view-default-icon"
|
|
34
|
-
})
|
|
30
|
+
});
|
|
35
31
|
}
|
|
36
32
|
if (fg('platform-smart-card-icon-migration')) {
|
|
37
33
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -24,6 +24,15 @@ const styles = {
|
|
|
24
24
|
actionButtonLozengeStyle: "_2rkogqwt _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
25
25
|
};
|
|
26
26
|
const fallbackForbiddenIcon = () => {
|
|
27
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
28
|
+
return /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
29
|
+
label: "error",
|
|
30
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
31
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
32
|
+
LEGACY_size: "small",
|
|
33
|
+
testId: "forbidden-view-fallback-icon"
|
|
34
|
+
});
|
|
35
|
+
}
|
|
27
36
|
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
28
37
|
as: "span",
|
|
29
38
|
xcss: styles.iconWrapper
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}
|
|
3
|
-
.
|
|
3
|
+
._2rkoyh40{border-radius:2px}
|
|
4
|
+
._154i1ssb{top:50%}
|
|
4
5
|
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
5
6
|
._18u01b66{margin-left:var(--ds-space-050,4px)}
|
|
6
7
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
@@ -10,12 +11,11 @@
|
|
|
10
11
|
._1bsb7vkz{width:1pc}
|
|
11
12
|
._1e0c116y{display:inline-flex}
|
|
12
13
|
._1e0c1o8l{display:inline-block}
|
|
13
|
-
.
|
|
14
|
-
._1ltvze3t{left:var(--ds-space-0,0)}
|
|
14
|
+
._1ltv1ssb{left:50%}
|
|
15
15
|
._1nmz9jpi{word-break:break-all}
|
|
16
16
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
17
|
-
.
|
|
18
|
-
.
|
|
17
|
+
._4t3i1osq{height:100%}
|
|
18
|
+
._4t3i7vkz{height:1pc}
|
|
19
19
|
._c71l7vkz{max-height:1pc}
|
|
20
20
|
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
21
21
|
._kqswh2mm{position:relative}
|
|
@@ -23,14 +23,15 @@
|
|
|
23
23
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
24
24
|
._o5721jtm{white-space:pre-wrap}
|
|
25
25
|
._otyridpf{margin-bottom:0}
|
|
26
|
+
._p12f7vkz{max-width:1pc}
|
|
26
27
|
._s7n4t94y{vertical-align:1px}
|
|
27
28
|
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
28
29
|
._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
|
|
29
30
|
._syaz1y58{color:var(--ds-link,#0052cc)}
|
|
31
|
+
._t9ec1ooe{transform:translate(-50%,-50%)}
|
|
30
32
|
._tzy4idpf{opacity:0}
|
|
31
33
|
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
32
34
|
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
33
|
-
._vchhusvi{box-sizing:border-box}
|
|
34
35
|
._1bnxglyw:hover{text-decoration-line:none}
|
|
35
36
|
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
36
37
|
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
@@ -12,12 +12,12 @@ import { Box } from '@atlaskit/primitives/compiled';
|
|
|
12
12
|
import { B400, N200 } from '@atlaskit/theme/colors';
|
|
13
13
|
import { Icon, Shimmer } from '../Icon';
|
|
14
14
|
import { EmojiWrapperOldVisualRefresh, IconEmptyWrapperOldVisualRefresh, IconPositionWrapperOldVisualRefresh, IconWrapperOldVisualRefresh, TitleWrapperClassNameOldVisualRefresh } from './styled';
|
|
15
|
-
const
|
|
15
|
+
const iconWrapperStyle = null;
|
|
16
|
+
const iconImageStyle = null;
|
|
16
17
|
const styles = {
|
|
17
|
-
iconEmptyStyle: "_1bsb7vkz _1e0c1o8l _tzy4idpf",
|
|
18
|
-
iconOuterWrapperStyle: "_2hwx1b66 _kqswh2mm",
|
|
18
|
+
iconEmptyStyle: "_1bsb7vkz _4t3i1osq _1e0c1o8l _tzy4idpf",
|
|
19
|
+
iconOuterWrapperStyle: "_1e0c1o8l _2hwx1b66 _kqswh2mm",
|
|
19
20
|
iconTitleWrapperStyle: "_o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66",
|
|
20
|
-
iconWrapperStyle: "_11c81o8v _kqswstnw _1e0c116y _4cvr1h6o _vchhusvi _154ize3t _1ltvze3t _94n5ze3t _1bsb7vkz _uiztglyw",
|
|
21
21
|
linkStyle: "_2rkogqwt",
|
|
22
22
|
noLinkAppearanceStyle: "_syaz131l _18u01b66"
|
|
23
23
|
};
|
|
@@ -68,11 +68,7 @@ export const IconAndTitleLayout = ({
|
|
|
68
68
|
const renderAtlaskitIcon = React.useCallback(() => {
|
|
69
69
|
if (emoji) {
|
|
70
70
|
if (fg('platform-linking-visual-refresh-v1')) {
|
|
71
|
-
return
|
|
72
|
-
as: "span",
|
|
73
|
-
xcss: styles.iconWrapperStyle,
|
|
74
|
-
testId: "icon-position-emoji-wrapper"
|
|
75
|
-
}, emoji);
|
|
71
|
+
return emoji;
|
|
76
72
|
}
|
|
77
73
|
return /*#__PURE__*/React.createElement(EmojiWrapperOldVisualRefresh, null, emoji);
|
|
78
74
|
}
|
|
@@ -80,10 +76,7 @@ export const IconAndTitleLayout = ({
|
|
|
80
76
|
return null;
|
|
81
77
|
}
|
|
82
78
|
if (fg('platform-linking-visual-refresh-v1')) {
|
|
83
|
-
return
|
|
84
|
-
"data-testId": "icon-atlaskit-icon-wrapper",
|
|
85
|
-
className: ax(["_kqswstnw _1e0c116y _4cvr1h6o _vchhusvi _154ize3t _1ltvze3t _94n5ze3t _1bsb7vkz _uiztglyw _1ii71ule"])
|
|
86
|
-
}, icon);
|
|
79
|
+
return icon;
|
|
87
80
|
}
|
|
88
81
|
return /*#__PURE__*/React.createElement(IconWrapperOldVisualRefresh, null, icon);
|
|
89
82
|
}, [emoji, icon]);
|
|
@@ -98,7 +91,7 @@ export const IconAndTitleLayout = ({
|
|
|
98
91
|
src: icon,
|
|
99
92
|
"data-testid": `${testId}-image`,
|
|
100
93
|
alt: "",
|
|
101
|
-
className: ax(["_c71l7vkz _1bsb1osq"])
|
|
94
|
+
className: ax(["_c71l7vkz _p12f7vkz _1bsb1osq"])
|
|
102
95
|
}),
|
|
103
96
|
errored: errored,
|
|
104
97
|
loading: /*#__PURE__*/React.createElement(Shimmer, {
|
|
@@ -149,13 +142,6 @@ export const IconAndTitleLayout = ({
|
|
|
149
142
|
}
|
|
150
143
|
const placeholder = renderIconPlaceholder(testId);
|
|
151
144
|
const image = renderImageIcon(placeholder, testId);
|
|
152
|
-
if (fg('platform-linking-visual-refresh-v1')) {
|
|
153
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
154
|
-
as: "span",
|
|
155
|
-
xcss: styles.iconWrapperStyle,
|
|
156
|
-
testId: `${testId}-image-wrapper`
|
|
157
|
-
}, image || placeholder);
|
|
158
|
-
}
|
|
159
145
|
return image || placeholder;
|
|
160
146
|
}, [renderAtlaskitIcon, renderIconPlaceholder, renderImageIcon]);
|
|
161
147
|
const handleClick = React.useCallback(event => {
|
|
@@ -178,14 +164,24 @@ export const IconAndTitleLayout = ({
|
|
|
178
164
|
|
|
179
165
|
// maybe consider memoising this after clean up
|
|
180
166
|
const titlePart = /*#__PURE__*/React.createElement(React.Fragment, null, fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Box, {
|
|
181
|
-
as: "span"
|
|
167
|
+
as: "span"
|
|
168
|
+
// EDM-12119: This is set here to help with the positioning of the icon to be in the middle of inline display.
|
|
169
|
+
// We cannot set the fix font because inline is taking the parent container font size into account.
|
|
170
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
171
|
+
,
|
|
172
|
+
style: {
|
|
173
|
+
lineHeight: `1`
|
|
174
|
+
},
|
|
182
175
|
xcss: styles.iconOuterWrapperStyle,
|
|
183
176
|
testId: "icon-position-wrapper"
|
|
184
177
|
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
185
178
|
as: "span",
|
|
186
179
|
xcss: styles.iconEmptyStyle,
|
|
187
180
|
testId: "icon-empty-wrapper"
|
|
188
|
-
}),
|
|
181
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
182
|
+
"data-testId": "icon-wrapper",
|
|
183
|
+
className: ax(["_11c81o8v _2rkoyh40 _1e0c116y _kqswstnw _2hwx1b66 _4t3i7vkz _1bsb7vkz _154i1ssb _1ltv1ssb _t9ec1ooe _uiztglyw"])
|
|
184
|
+
}, renderIcon(testId)))) : /*#__PURE__*/React.createElement(IconPositionWrapperOldVisualRefresh, {
|
|
189
185
|
"data-testid": "icon-position-wrapper"
|
|
190
186
|
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapperOldVisualRefresh, {
|
|
191
187
|
"data-testid": "icon-empty-wrapper"
|
|
@@ -271,5 +267,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
271
267
|
export const LozengeWrapper = props => {
|
|
272
268
|
// note: This is just to get the types to work due to compiled css weirdness.
|
|
273
269
|
return /*#__PURE__*/React.createElement(LozengeWrapperOldVisualRefresh, props);
|
|
274
|
-
};
|
|
275
|
-
const iconImageStyle = null;
|
|
270
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._1bah1h6o{justify-content:center}
|
|
3
|
+
._1bsb7vkz{width:1pc}
|
|
4
|
+
._1e0c116y{display:inline-flex}
|
|
5
|
+
._4cvr1h6o{align-items:center}
|
|
6
|
+
._4t3i7vkz{height:1pc}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
1
4
|
import React from 'react';
|
|
2
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
3
7
|
import Spinner from '@atlaskit/spinner';
|
|
4
8
|
import { Frame } from '../Frame';
|
|
5
9
|
import { IconAndTitleLayout, IconTitleWrapper } from '../IconAndTitleLayout';
|
|
6
10
|
import { RightIconPositionWrapper } from '../IconAndTitleLayout/styled';
|
|
7
11
|
import { SpinnerWrapperOldVisualRefresh } from './styled';
|
|
12
|
+
const styles = {
|
|
13
|
+
spinnerWrapper: "_11c81o8v _1e0c116y _4cvr1h6o _1bah1h6o _4t3i7vkz _1bsb7vkz"
|
|
14
|
+
};
|
|
8
15
|
export const InlineCardResolvingView = ({
|
|
9
16
|
url,
|
|
10
17
|
onClick,
|
|
@@ -15,9 +22,12 @@ export const InlineCardResolvingView = ({
|
|
|
15
22
|
resolvingPlaceholder,
|
|
16
23
|
truncateInline
|
|
17
24
|
}) => {
|
|
18
|
-
const renderSpinner = React.useCallback(() => fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(
|
|
25
|
+
const renderSpinner = React.useCallback(() => fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Box, {
|
|
26
|
+
as: "span",
|
|
27
|
+
xcss: styles.spinnerWrapper
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
19
29
|
size: 14
|
|
20
|
-
}) :
|
|
30
|
+
})) :
|
|
21
31
|
/*#__PURE__*/
|
|
22
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
23
33
|
React.createElement(SpinnerWrapperOldVisualRefresh, {
|
|
@@ -41,7 +51,8 @@ export const InlineCardResolvingView = ({
|
|
|
41
51
|
link: url,
|
|
42
52
|
truncateInline: truncateInline
|
|
43
53
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
54
|
+
icon: fg('platform-linking-visual-refresh-v1') ? renderSpinner() : undefined,
|
|
44
55
|
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
45
56
|
titleTextColor: titleTextColor
|
|
46
|
-
}, renderSpinner()));
|
|
57
|
+
}, fg('platform-linking-visual-refresh-v1') ? undefined : renderSpinner()));
|
|
47
58
|
};
|
|
@@ -20,20 +20,16 @@ import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
|
20
20
|
import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
21
21
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
22
22
|
const styles = {
|
|
23
|
-
iconWrapper: "_2hwx1i6y"
|
|
24
|
-
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
23
|
+
iconWrapper: "_2hwx1i6y"
|
|
25
24
|
};
|
|
26
25
|
const fallbackUnauthorizedIcon = () => {
|
|
27
26
|
if (fg('platform-linking-visual-refresh-v1')) {
|
|
28
|
-
return /*#__PURE__*/React.createElement(
|
|
29
|
-
as: "span",
|
|
30
|
-
xcss: styles.fallbackIconWrapper
|
|
31
|
-
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
27
|
+
return /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
32
28
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
33
29
|
label: "error",
|
|
34
30
|
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
35
31
|
LEGACY_size: "small"
|
|
36
|
-
})
|
|
32
|
+
});
|
|
37
33
|
}
|
|
38
34
|
if (fg('platform-smart-card-icon-migration')) {
|
|
39
35
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
3
3
|
._1e0c1bgi{display:contents}
|
|
4
4
|
._1e0c1nu9{display:inline}
|
|
5
|
-
.
|
|
5
|
+
._1nmz9jpi{word-break:break-all}
|
|
6
6
|
._1y1m1u8q{background-clip:padding-box}
|
|
7
7
|
._80om13gf{cursor:not-allowed}
|
|
8
8
|
._80omtlke{cursor:pointer}
|
|
@@ -7,7 +7,7 @@ import { forwardRef } from 'react';
|
|
|
7
7
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
8
8
|
const styles = {
|
|
9
9
|
button: "_1e0c1bgi",
|
|
10
|
-
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx
|
|
10
|
+
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz9jpi",
|
|
11
11
|
enabled: "_syaz1fxt _80omtlke _bfhkm7j4 _irr315ej _1di6ip91",
|
|
12
12
|
disabled: "_syaz1lh4 _80om13gf _bfhksyzs"
|
|
13
13
|
};
|
|
@@ -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: "36.0.
|
|
13
|
+
packageVersion: "36.0.2",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -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: "36.0.
|
|
7
|
+
packageVersion: "36.0.2"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -18,20 +18,16 @@ import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
|
18
18
|
import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
19
19
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
20
20
|
var styles = {
|
|
21
|
-
iconWrapper: "_2hwx1i6y"
|
|
22
|
-
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
21
|
+
iconWrapper: "_2hwx1i6y"
|
|
23
22
|
};
|
|
24
23
|
var fallbackIcon = function fallbackIcon() {
|
|
25
24
|
if (fg('platform-linking-visual-refresh-v1')) {
|
|
26
|
-
return /*#__PURE__*/React.createElement(
|
|
27
|
-
as: "span",
|
|
28
|
-
xcss: styles.fallbackIconWrapper
|
|
29
|
-
}, /*#__PURE__*/React.createElement(ErrorIconCore, {
|
|
25
|
+
return /*#__PURE__*/React.createElement(ErrorIconCore, {
|
|
30
26
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
31
27
|
label: "error",
|
|
32
28
|
LEGACY_size: "small",
|
|
33
29
|
testId: "errored-view-default-icon"
|
|
34
|
-
})
|
|
30
|
+
});
|
|
35
31
|
}
|
|
36
32
|
if (fg('platform-smart-card-icon-migration')) {
|
|
37
33
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -25,6 +25,15 @@ var styles = {
|
|
|
25
25
|
actionButtonLozengeStyle: "_2rkogqwt _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
26
26
|
};
|
|
27
27
|
var fallbackForbiddenIcon = function fallbackForbiddenIcon() {
|
|
28
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
29
|
+
return /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
30
|
+
label: "error",
|
|
31
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
32
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
33
|
+
LEGACY_size: "small",
|
|
34
|
+
testId: "forbidden-view-fallback-icon"
|
|
35
|
+
});
|
|
36
|
+
}
|
|
28
37
|
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
29
38
|
as: "span",
|
|
30
39
|
xcss: styles.iconWrapper
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}
|
|
3
|
-
.
|
|
3
|
+
._2rkoyh40{border-radius:2px}
|
|
4
|
+
._154i1ssb{top:50%}
|
|
4
5
|
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
5
6
|
._18u01b66{margin-left:var(--ds-space-050,4px)}
|
|
6
7
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
@@ -10,12 +11,11 @@
|
|
|
10
11
|
._1bsb7vkz{width:1pc}
|
|
11
12
|
._1e0c116y{display:inline-flex}
|
|
12
13
|
._1e0c1o8l{display:inline-block}
|
|
13
|
-
.
|
|
14
|
-
._1ltvze3t{left:var(--ds-space-0,0)}
|
|
14
|
+
._1ltv1ssb{left:50%}
|
|
15
15
|
._1nmz9jpi{word-break:break-all}
|
|
16
16
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
17
|
-
.
|
|
18
|
-
.
|
|
17
|
+
._4t3i1osq{height:100%}
|
|
18
|
+
._4t3i7vkz{height:1pc}
|
|
19
19
|
._c71l7vkz{max-height:1pc}
|
|
20
20
|
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
21
21
|
._kqswh2mm{position:relative}
|
|
@@ -23,14 +23,15 @@
|
|
|
23
23
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
24
24
|
._o5721jtm{white-space:pre-wrap}
|
|
25
25
|
._otyridpf{margin-bottom:0}
|
|
26
|
+
._p12f7vkz{max-width:1pc}
|
|
26
27
|
._s7n4t94y{vertical-align:1px}
|
|
27
28
|
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
28
29
|
._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
|
|
29
30
|
._syaz1y58{color:var(--ds-link,#0052cc)}
|
|
31
|
+
._t9ec1ooe{transform:translate(-50%,-50%)}
|
|
30
32
|
._tzy4idpf{opacity:0}
|
|
31
33
|
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
32
34
|
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
33
|
-
._vchhusvi{box-sizing:border-box}
|
|
34
35
|
._1bnxglyw:hover{text-decoration-line:none}
|
|
35
36
|
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
36
37
|
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
@@ -17,12 +17,12 @@ import { Box } from '@atlaskit/primitives/compiled';
|
|
|
17
17
|
import { B400, N200 } from '@atlaskit/theme/colors';
|
|
18
18
|
import { Icon, Shimmer } from '../Icon';
|
|
19
19
|
import { EmojiWrapperOldVisualRefresh, IconEmptyWrapperOldVisualRefresh, IconPositionWrapperOldVisualRefresh, IconWrapperOldVisualRefresh, TitleWrapperClassNameOldVisualRefresh } from './styled';
|
|
20
|
-
var
|
|
20
|
+
var iconWrapperStyle = null;
|
|
21
|
+
var iconImageStyle = null;
|
|
21
22
|
var styles = {
|
|
22
|
-
iconEmptyStyle: "_1bsb7vkz _1e0c1o8l _tzy4idpf",
|
|
23
|
-
iconOuterWrapperStyle: "_2hwx1b66 _kqswh2mm",
|
|
23
|
+
iconEmptyStyle: "_1bsb7vkz _4t3i1osq _1e0c1o8l _tzy4idpf",
|
|
24
|
+
iconOuterWrapperStyle: "_1e0c1o8l _2hwx1b66 _kqswh2mm",
|
|
24
25
|
iconTitleWrapperStyle: "_o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66",
|
|
25
|
-
iconWrapperStyle: "_11c81o8v _kqswstnw _1e0c116y _4cvr1h6o _vchhusvi _154ize3t _1ltvze3t _94n5ze3t _1bsb7vkz _uiztglyw",
|
|
26
26
|
linkStyle: "_2rkogqwt",
|
|
27
27
|
noLinkAppearanceStyle: "_syaz131l _18u01b66"
|
|
28
28
|
};
|
|
@@ -73,11 +73,7 @@ export var IconAndTitleLayout = function IconAndTitleLayout(_ref3) {
|
|
|
73
73
|
var renderAtlaskitIcon = React.useCallback(function () {
|
|
74
74
|
if (emoji) {
|
|
75
75
|
if (fg('platform-linking-visual-refresh-v1')) {
|
|
76
|
-
return
|
|
77
|
-
as: "span",
|
|
78
|
-
xcss: styles.iconWrapperStyle,
|
|
79
|
-
testId: "icon-position-emoji-wrapper"
|
|
80
|
-
}, emoji);
|
|
76
|
+
return emoji;
|
|
81
77
|
}
|
|
82
78
|
return /*#__PURE__*/React.createElement(EmojiWrapperOldVisualRefresh, null, emoji);
|
|
83
79
|
}
|
|
@@ -85,10 +81,7 @@ export var IconAndTitleLayout = function IconAndTitleLayout(_ref3) {
|
|
|
85
81
|
return null;
|
|
86
82
|
}
|
|
87
83
|
if (fg('platform-linking-visual-refresh-v1')) {
|
|
88
|
-
return
|
|
89
|
-
"data-testId": "icon-atlaskit-icon-wrapper",
|
|
90
|
-
className: ax(["_kqswstnw _1e0c116y _4cvr1h6o _vchhusvi _154ize3t _1ltvze3t _94n5ze3t _1bsb7vkz _uiztglyw _1ii71ule"])
|
|
91
|
-
}, icon);
|
|
84
|
+
return icon;
|
|
92
85
|
}
|
|
93
86
|
return /*#__PURE__*/React.createElement(IconWrapperOldVisualRefresh, null, icon);
|
|
94
87
|
}, [emoji, icon]);
|
|
@@ -103,7 +96,7 @@ export var IconAndTitleLayout = function IconAndTitleLayout(_ref3) {
|
|
|
103
96
|
src: icon,
|
|
104
97
|
"data-testid": "".concat(testId, "-image"),
|
|
105
98
|
alt: "",
|
|
106
|
-
className: ax(["_c71l7vkz _1bsb1osq"])
|
|
99
|
+
className: ax(["_c71l7vkz _p12f7vkz _1bsb1osq"])
|
|
107
100
|
}),
|
|
108
101
|
errored: errored,
|
|
109
102
|
loading: /*#__PURE__*/React.createElement(Shimmer, {
|
|
@@ -154,13 +147,6 @@ export var IconAndTitleLayout = function IconAndTitleLayout(_ref3) {
|
|
|
154
147
|
}
|
|
155
148
|
var placeholder = renderIconPlaceholder(testId);
|
|
156
149
|
var image = renderImageIcon(placeholder, testId);
|
|
157
|
-
if (fg('platform-linking-visual-refresh-v1')) {
|
|
158
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
159
|
-
as: "span",
|
|
160
|
-
xcss: styles.iconWrapperStyle,
|
|
161
|
-
testId: "".concat(testId, "-image-wrapper")
|
|
162
|
-
}, image || placeholder);
|
|
163
|
-
}
|
|
164
150
|
return image || placeholder;
|
|
165
151
|
}, [renderAtlaskitIcon, renderIconPlaceholder, renderImageIcon]);
|
|
166
152
|
var handleClick = React.useCallback(function (event) {
|
|
@@ -183,14 +169,24 @@ export var IconAndTitleLayout = function IconAndTitleLayout(_ref3) {
|
|
|
183
169
|
|
|
184
170
|
// maybe consider memoising this after clean up
|
|
185
171
|
var titlePart = /*#__PURE__*/React.createElement(React.Fragment, null, fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Box, {
|
|
186
|
-
as: "span"
|
|
172
|
+
as: "span"
|
|
173
|
+
// EDM-12119: This is set here to help with the positioning of the icon to be in the middle of inline display.
|
|
174
|
+
// We cannot set the fix font because inline is taking the parent container font size into account.
|
|
175
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
176
|
+
,
|
|
177
|
+
style: {
|
|
178
|
+
lineHeight: "1"
|
|
179
|
+
},
|
|
187
180
|
xcss: styles.iconOuterWrapperStyle,
|
|
188
181
|
testId: "icon-position-wrapper"
|
|
189
182
|
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
190
183
|
as: "span",
|
|
191
184
|
xcss: styles.iconEmptyStyle,
|
|
192
185
|
testId: "icon-empty-wrapper"
|
|
193
|
-
}),
|
|
186
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
187
|
+
"data-testId": "icon-wrapper",
|
|
188
|
+
className: ax(["_11c81o8v _2rkoyh40 _1e0c116y _kqswstnw _2hwx1b66 _4t3i7vkz _1bsb7vkz _154i1ssb _1ltv1ssb _t9ec1ooe _uiztglyw"])
|
|
189
|
+
}, renderIcon(testId)))) : /*#__PURE__*/React.createElement(IconPositionWrapperOldVisualRefresh, {
|
|
194
190
|
"data-testid": "icon-position-wrapper"
|
|
195
191
|
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapperOldVisualRefresh, {
|
|
196
192
|
"data-testid": "icon-empty-wrapper"
|
|
@@ -276,5 +272,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
276
272
|
export var LozengeWrapper = function LozengeWrapper(props) {
|
|
277
273
|
// note: This is just to get the types to work due to compiled css weirdness.
|
|
278
274
|
return /*#__PURE__*/React.createElement(LozengeWrapperOldVisualRefresh, props);
|
|
279
|
-
};
|
|
280
|
-
var iconImageStyle = null;
|
|
275
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._1bah1h6o{justify-content:center}
|
|
3
|
+
._1bsb7vkz{width:1pc}
|
|
4
|
+
._1e0c116y{display:inline-flex}
|
|
5
|
+
._4cvr1h6o{align-items:center}
|
|
6
|
+
._4t3i7vkz{height:1pc}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
1
4
|
import React from 'react';
|
|
2
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { Box } from '@atlaskit/primitives/compiled';
|
|
3
7
|
import Spinner from '@atlaskit/spinner';
|
|
4
8
|
import { Frame } from '../Frame';
|
|
5
9
|
import { IconAndTitleLayout, IconTitleWrapper } from '../IconAndTitleLayout';
|
|
6
10
|
import { RightIconPositionWrapper } from '../IconAndTitleLayout/styled';
|
|
7
11
|
import { SpinnerWrapperOldVisualRefresh } from './styled';
|
|
12
|
+
var styles = {
|
|
13
|
+
spinnerWrapper: "_11c81o8v _1e0c116y _4cvr1h6o _1bah1h6o _4t3i7vkz _1bsb7vkz"
|
|
14
|
+
};
|
|
8
15
|
export var InlineCardResolvingView = function InlineCardResolvingView(_ref) {
|
|
9
16
|
var url = _ref.url,
|
|
10
17
|
onClick = _ref.onClick,
|
|
@@ -16,9 +23,12 @@ export var InlineCardResolvingView = function InlineCardResolvingView(_ref) {
|
|
|
16
23
|
resolvingPlaceholder = _ref.resolvingPlaceholder,
|
|
17
24
|
truncateInline = _ref.truncateInline;
|
|
18
25
|
var renderSpinner = React.useCallback(function () {
|
|
19
|
-
return fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(
|
|
26
|
+
return fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Box, {
|
|
27
|
+
as: "span",
|
|
28
|
+
xcss: styles.spinnerWrapper
|
|
29
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
20
30
|
size: 14
|
|
21
|
-
}) :
|
|
31
|
+
})) :
|
|
22
32
|
/*#__PURE__*/
|
|
23
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
24
34
|
React.createElement(SpinnerWrapperOldVisualRefresh, {
|
|
@@ -43,7 +53,8 @@ export var InlineCardResolvingView = function InlineCardResolvingView(_ref) {
|
|
|
43
53
|
link: url,
|
|
44
54
|
truncateInline: truncateInline
|
|
45
55
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
56
|
+
icon: fg('platform-linking-visual-refresh-v1') ? renderSpinner() : undefined,
|
|
46
57
|
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
47
58
|
titleTextColor: titleTextColor
|
|
48
|
-
}, renderSpinner()));
|
|
59
|
+
}, fg('platform-linking-visual-refresh-v1') ? undefined : renderSpinner()));
|
|
49
60
|
};
|
|
@@ -20,20 +20,16 @@ import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
|
20
20
|
import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
21
21
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
22
22
|
var styles = {
|
|
23
|
-
iconWrapper: "_2hwx1i6y"
|
|
24
|
-
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
23
|
+
iconWrapper: "_2hwx1i6y"
|
|
25
24
|
};
|
|
26
25
|
var fallbackUnauthorizedIcon = function fallbackUnauthorizedIcon() {
|
|
27
26
|
if (fg('platform-linking-visual-refresh-v1')) {
|
|
28
|
-
return /*#__PURE__*/React.createElement(
|
|
29
|
-
as: "span",
|
|
30
|
-
xcss: styles.fallbackIconWrapper
|
|
31
|
-
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
27
|
+
return /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
32
28
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
33
29
|
label: "error",
|
|
34
30
|
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
35
31
|
LEGACY_size: "small"
|
|
36
|
-
})
|
|
32
|
+
});
|
|
37
33
|
}
|
|
38
34
|
if (fg('platform-smart-card-icon-migration')) {
|
|
39
35
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
3
3
|
._1e0c1bgi{display:contents}
|
|
4
4
|
._1e0c1nu9{display:inline}
|
|
5
|
-
.
|
|
5
|
+
._1nmz9jpi{word-break:break-all}
|
|
6
6
|
._1y1m1u8q{background-clip:padding-box}
|
|
7
7
|
._80om13gf{cursor:not-allowed}
|
|
8
8
|
._80omtlke{cursor:pointer}
|
|
@@ -9,7 +9,7 @@ import { forwardRef } from 'react';
|
|
|
9
9
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
10
10
|
var styles = {
|
|
11
11
|
button: "_1e0c1bgi",
|
|
12
|
-
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx
|
|
12
|
+
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz9jpi",
|
|
13
13
|
enabled: "_syaz1fxt _80omtlke _bfhkm7j4 _irr315ej _1di6ip91",
|
|
14
14
|
disabled: "_syaz1lh4 _80om13gf _bfhksyzs"
|
|
15
15
|
};
|
|
@@ -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: "36.0.
|
|
16
|
+
packageVersion: "36.0.2",
|
|
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": "36.0.
|
|
3
|
+
"version": "36.0.2",
|
|
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.2.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,12 +54,12 @@
|
|
|
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.4.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",
|
|
61
|
-
"@atlaskit/primitives": "^14.
|
|
62
|
-
"@atlaskit/section-message": "^8.
|
|
61
|
+
"@atlaskit/primitives": "^14.2.0",
|
|
62
|
+
"@atlaskit/section-message": "^8.2.0",
|
|
63
63
|
"@atlaskit/select": "^20.0.0",
|
|
64
64
|
"@atlaskit/spinner": "^18.0.0",
|
|
65
65
|
"@atlaskit/textarea": "^8.0.0",
|