@atlaskit/smart-card 35.1.2 → 35.1.4
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/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/blocks/action-block/index.js +5 -2
- 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/HoverCard/components/ImagePreview.js +1 -1
- package/dist/cjs/view/HoverCard/components/views/forbidden/index.compiled.css +1 -0
- package/dist/cjs/view/HoverCard/components/views/forbidden/index.js +8 -4
- package/dist/cjs/view/HoverCard/components/views/resolved/index.compiled.css +3 -0
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +11 -6
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.compiled.css +3 -0
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +6 -3
- 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/blocks/action-block/index.js +5 -2
- 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/HoverCard/components/ImagePreview.js +1 -1
- package/dist/es2019/view/HoverCard/components/views/forbidden/index.compiled.css +1 -0
- package/dist/es2019/view/HoverCard/components/views/forbidden/index.js +8 -4
- package/dist/es2019/view/HoverCard/components/views/resolved/index.compiled.css +3 -0
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +11 -6
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.compiled.css +3 -0
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +6 -3
- 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/blocks/action-block/index.js +5 -2
- 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/HoverCard/components/ImagePreview.js +1 -1
- package/dist/esm/view/HoverCard/components/views/forbidden/index.compiled.css +1 -0
- package/dist/esm/view/HoverCard/components/views/forbidden/index.js +8 -4
- package/dist/esm/view/HoverCard/components/views/resolved/index.compiled.css +3 -0
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +11 -6
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.compiled.css +3 -0
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +6 -3
- 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 +2 -2
|
@@ -12,9 +12,11 @@ import { FooterBlock, MetadataBlock, PreviewBlock, SnippetBlock, TitleBlock } fr
|
|
|
12
12
|
import ResolvedViewOld from './ResolvedViewOld';
|
|
13
13
|
import { FlexibleCardUiOptions, getSimulatedBetterMetadata, PreviewBlockOptions, titleBlockOptions } from './utils';
|
|
14
14
|
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
15
|
+
var titleBlockCssOld = null;
|
|
15
16
|
var titleBlockCss = null;
|
|
17
|
+
var footerBlockCssOld = null;
|
|
16
18
|
var footerBlockCss = null;
|
|
17
|
-
var
|
|
19
|
+
var metadataBlockCssOld = null;
|
|
18
20
|
|
|
19
21
|
/**
|
|
20
22
|
* This view represents a Block card that has an 'Resolved' status.
|
|
@@ -72,17 +74,17 @@ var ResolvedView = function ResolvedView(_ref) {
|
|
|
72
74
|
}],
|
|
73
75
|
metadataPosition: SmartLinkPosition.Top,
|
|
74
76
|
status: status,
|
|
75
|
-
className: ax(["_zulpcxkx _13mh1pd9"])
|
|
77
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_zulpu2gc _13mh1pd9 _2yhz14q2" : "_zulpcxkx _13mh1pd9"])
|
|
76
78
|
})), /*#__PURE__*/React.createElement(MetadataBlock, {
|
|
77
79
|
primary: topMetadata,
|
|
78
80
|
maxLines: 1,
|
|
79
81
|
status: SmartLinkStatus.Resolved,
|
|
80
|
-
className: ax(["_wwyvidpf _1sxbcxkx _i8d01j6v"])
|
|
82
|
+
className: ax([!fg('platform-linking-visual-refresh-v1') && "_wwyvidpf _1sxbcxkx _i8d01j6v"])
|
|
81
83
|
}), /*#__PURE__*/React.createElement(SnippetBlock, null), /*#__PURE__*/React.createElement(MetadataBlock, {
|
|
82
84
|
primary: bottomMetadata,
|
|
83
85
|
maxLines: 1,
|
|
84
86
|
status: SmartLinkStatus.Resolved,
|
|
85
|
-
className: ax(["_wwyvidpf _1sxbcxkx _i8d01j6v"])
|
|
87
|
+
className: ax([!fg('platform-linking-visual-refresh-v1') && "_wwyvidpf _1sxbcxkx _i8d01j6v"])
|
|
86
88
|
}), !isPreviewBlockErrored ? /*#__PURE__*/React.createElement(PreviewBlock, _extends({}, PreviewBlockOptions, {
|
|
87
89
|
onError: function onError() {
|
|
88
90
|
setIsPreviewBlockErrored(true);
|
|
@@ -91,7 +93,7 @@ var ResolvedView = function ResolvedView(_ref) {
|
|
|
91
93
|
})) : null, /*#__PURE__*/React.createElement(FooterBlock, {
|
|
92
94
|
actions: footerActions,
|
|
93
95
|
status: SmartLinkStatus.Resolved,
|
|
94
|
-
className: ax(["_4t3i1k8s _g0eioxwj _1qryoxwj _sxbroxwj _1gyioxwj"])
|
|
96
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_4t3i1k8s _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb" : "_4t3i1k8s _g0eioxwj _1qryoxwj _sxbroxwj _1gyioxwj"])
|
|
95
97
|
}));
|
|
96
98
|
};
|
|
97
99
|
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)}
|
|
@@ -8,6 +8,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
8
8
|
import { useCallback, useMemo } from 'react';
|
|
9
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
10
|
import { extractProvider } from '@atlaskit/link-extractors';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
12
13
|
import { messages } from '../../../messages';
|
|
13
14
|
import { hasAuthScopeOverrides } from '../../../state/helpers';
|
|
@@ -15,6 +16,7 @@ import UnauthorisedViewContent from '../../common/UnauthorisedViewContent';
|
|
|
15
16
|
import { AuthorizeAction } from '../actions/AuthorizeAction';
|
|
16
17
|
import UnresolvedView from './unresolved-view';
|
|
17
18
|
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
19
|
+
var contentStylesOld = null;
|
|
18
20
|
var contentStyles = null;
|
|
19
21
|
|
|
20
22
|
/**
|
|
@@ -61,7 +63,7 @@ var UnauthorisedView = function UnauthorisedView(_ref) {
|
|
|
61
63
|
testId: testId
|
|
62
64
|
}), /*#__PURE__*/React.createElement("div", {
|
|
63
65
|
"data-testid": "".concat(testId, "-content"),
|
|
64
|
-
className: ax(["_11c8qk37 _syaz131l _19pkcxkx"])
|
|
66
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_11c8qk37 _syaz1fxt _19pku2gc" : "_11c8qk37 _syaz131l _19pkcxkx"])
|
|
65
67
|
}, content));
|
|
66
68
|
};
|
|
67
69
|
export default 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)}
|
|
@@ -8,8 +8,11 @@ import FlexibleCard from '../../../FlexibleCard';
|
|
|
8
8
|
import { CustomBlock, InternalFooterBlock, PreviewBlock, TitleBlock } from '../../../FlexibleCard/components/blocks';
|
|
9
9
|
import { FlexibleCardUiOptions, PreviewBlockOptions, titleBlockOptions } from '../utils';
|
|
10
10
|
import UnresolvedViewOld from './UnresolvedViewOld';
|
|
11
|
+
var customBlockStylesOld = null;
|
|
11
12
|
var customBlockStyles = null;
|
|
13
|
+
var titleBlockCssOld = null;
|
|
12
14
|
var titleBlockCss = null;
|
|
15
|
+
var footerBlockCssOld = null;
|
|
13
16
|
var footerBlockCss = null;
|
|
14
17
|
var UnresolvedView = function UnresolvedView(_ref) {
|
|
15
18
|
var actions = _ref.actions,
|
|
@@ -37,17 +40,17 @@ var UnresolvedView = function UnresolvedView(_ref) {
|
|
|
37
40
|
hideIcon: !!title,
|
|
38
41
|
text: title,
|
|
39
42
|
status: cardState.status,
|
|
40
|
-
className: ax(["_zulp1f3t _13mh1pd9"])
|
|
43
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_zulpu2gc _13mh1pd9 _2yhz14q2" : "_zulp1f3t _13mh1pd9"])
|
|
41
44
|
})), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
42
45
|
status: cardState.status,
|
|
43
|
-
className: ax(["_4cvr1y6m"])
|
|
46
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_zulp1b66 _1e0c1txw _4cvr1y6m _1wpz1fhb _7yjtidpf _ngc01fxt" : "_4cvr1y6m"])
|
|
44
47
|
}, children), showPreview && /*#__PURE__*/React.createElement(PreviewBlock, _extends({}, PreviewBlockOptions, {
|
|
45
48
|
status: cardState.status
|
|
46
49
|
})), /*#__PURE__*/React.createElement(InternalFooterBlock, {
|
|
47
50
|
actions: actions,
|
|
48
51
|
testId: "smart-block-card-footer",
|
|
49
52
|
status: cardState.status,
|
|
50
|
-
className: ax(["_4t3i1k8s _g0eioxwj _1qryoxwj _sxbroxwj _1gyioxwj"])
|
|
53
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_4t3i1k8s _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb" : "_4t3i1k8s _g0eioxwj _1qryoxwj _sxbroxwj _1gyioxwj"])
|
|
51
54
|
}));
|
|
52
55
|
};
|
|
53
56
|
export var UnresolvedViewExported = function UnresolvedViewExported(props) {
|
|
@@ -49,6 +49,7 @@ var ActionBlockNew = function ActionBlockNew(_ref) {
|
|
|
49
49
|
onClickCallback = _ref.onClick,
|
|
50
50
|
size = _ref.size,
|
|
51
51
|
spaceInline = _ref.spaceInline,
|
|
52
|
+
className = _ref.className,
|
|
52
53
|
_ref$testId = _ref.testId,
|
|
53
54
|
testId = _ref$testId === void 0 ? 'smart-block-action' : _ref$testId;
|
|
54
55
|
var context = useFlexibleUiContext();
|
|
@@ -101,8 +102,10 @@ var ActionBlockNew = function ActionBlockNew(_ref) {
|
|
|
101
102
|
}, [context === null || context === void 0 ? void 0 : context.actions, _onClick, onError, padding, size, spaceInline, isLoading, onLoadingChange]);
|
|
102
103
|
return actions ? /*#__PURE__*/React.createElement("div", {
|
|
103
104
|
ref: blockRef,
|
|
104
|
-
"data-testid": testId
|
|
105
|
-
|
|
105
|
+
"data-testid": testId
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
107
|
+
,
|
|
108
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb129b _18u01ivi _2hwxc10g" : "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb1osq _18u01ivi _2hwxc10g", className])
|
|
106
109
|
}, actions, /*#__PURE__*/React.createElement(ActionFooter, {
|
|
107
110
|
message: message,
|
|
108
111
|
testId: testId
|
|
@@ -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}
|
|
@@ -213,10 +213,10 @@ var previewOnLeftStyleMapOld = {
|
|
|
213
213
|
small: "_19bv1ltm _y5vk6mu8"
|
|
214
214
|
};
|
|
215
215
|
var previewOnLeftStyleMap = {
|
|
216
|
-
xlarge: "
|
|
217
|
-
large: "
|
|
218
|
-
medium: "
|
|
219
|
-
small: "
|
|
216
|
+
xlarge: "_19bver0k _y5vk1ejb",
|
|
217
|
+
large: "_19bv16ru _y5vkv47k",
|
|
218
|
+
medium: "_19bv1g7w _y5vk1eak",
|
|
219
|
+
small: "_19bvlbes _y5vku2gc"
|
|
220
220
|
};
|
|
221
221
|
|
|
222
222
|
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
@@ -227,10 +227,10 @@ var previewOnRightStyleMapOld = {
|
|
|
227
227
|
small: "_u5f31ltm _1yob6mu8"
|
|
228
228
|
};
|
|
229
229
|
var previewOnRightStyleMap = {
|
|
230
|
-
xlarge: "
|
|
231
|
-
large: "
|
|
232
|
-
medium: "
|
|
233
|
-
small: "
|
|
230
|
+
xlarge: "_u5f3er0k _1yob1ejb",
|
|
231
|
+
large: "_u5f316ru _1yobv47k",
|
|
232
|
+
medium: "_u5f31g7w _1yob1eak",
|
|
233
|
+
small: "_u5f3lbes _1yobu2gc"
|
|
234
234
|
};
|
|
235
235
|
|
|
236
236
|
/**
|
|
@@ -29,7 +29,7 @@ var ImagePreviewNew = function ImagePreviewNew(_ref) {
|
|
|
29
29
|
setDynamicStyles(_objectSpread({
|
|
30
30
|
borderTopLeftRadius: "var(--ds-border-radius-200, 8px)",
|
|
31
31
|
borderTopRightRadius: "var(--ds-border-radius-200, 8px)",
|
|
32
|
-
marginBottom: '0.5rem'
|
|
32
|
+
marginBottom: fg('platform-linking-visual-refresh-v1') ? "var(--ds-space-100, 8px)" : '0.5rem'
|
|
33
33
|
}, previewHeight ? {
|
|
34
34
|
height: "".concat(previewHeight, "px")
|
|
35
35
|
} : {}));
|
|
@@ -6,5 +6,6 @@
|
|
|
6
6
|
._1e0c1nu9{display:inline}
|
|
7
7
|
._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
8
8
|
._otyrcxkx{margin-bottom:var(--ds-space-100,.5rem)}
|
|
9
|
+
._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
|
|
9
10
|
._qrwqpd34{border-top-right-radius:var(--ds-border-radius-200,8px)}
|
|
10
11
|
._y3gn1h6o{text-align:center}
|
|
@@ -15,9 +15,13 @@ import { messages } from '../../../../../messages';
|
|
|
15
15
|
import FlexibleCard from '../../../../FlexibleCard';
|
|
16
16
|
import { CustomBlock, PreviewBlock } from '../../../../FlexibleCard/components/blocks';
|
|
17
17
|
import HoverCardForbiddenViewOld from './HoverCardForbiddenViewOld';
|
|
18
|
+
var titleBlockStylesOld = null;
|
|
18
19
|
var titleBlockStyles = null;
|
|
20
|
+
var mainTextStylesOld = null;
|
|
19
21
|
var mainTextStyles = null;
|
|
22
|
+
var connectButtonStylesOld = null;
|
|
20
23
|
var connectButtonStyles = null;
|
|
24
|
+
var basePreviewStylesOld = null;
|
|
21
25
|
var basePreviewStyles = null;
|
|
22
26
|
var HoverCardForbiddenViewNew = function HoverCardForbiddenViewNew(_ref) {
|
|
23
27
|
var _cardState$details, _cardState$details2, _extractProvider$text, _extractProvider, _extractRequestAccess;
|
|
@@ -51,11 +55,11 @@ var HoverCardForbiddenViewNew = function HoverCardForbiddenViewNew(_ref) {
|
|
|
51
55
|
ignoreContainerPadding: true,
|
|
52
56
|
testId: testId,
|
|
53
57
|
status: SmartLinkStatus.Forbidden,
|
|
54
|
-
className: ax(["_13lipd34 _qrwqpd34 _otyrcxkx"])
|
|
58
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_13lipd34 _qrwqpd34 _otyru2gc" : "_13lipd34 _qrwqpd34 _otyrcxkx"])
|
|
55
59
|
}), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
56
60
|
testId: "".concat(testId, "-title"),
|
|
57
61
|
status: SmartLinkStatus.Forbidden,
|
|
58
|
-
className: ax(["_1bah1h6o _k48p1pd9 _19pku2gc"])
|
|
62
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_1bah1h6o _k48p1pd9 _19pku2gc" : "_1bah1h6o _k48p1pd9 _19pku2gc"])
|
|
59
63
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages[titleMessageKey], {
|
|
60
64
|
values: {
|
|
61
65
|
product: product
|
|
@@ -63,7 +67,7 @@ var HoverCardForbiddenViewNew = function HoverCardForbiddenViewNew(_ref) {
|
|
|
63
67
|
}))), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
64
68
|
testId: "".concat(testId, "-content"),
|
|
65
69
|
status: SmartLinkStatus.Forbidden,
|
|
66
|
-
className: ax(["_11c8qk37 _1e0c1nu9 _1bah1h6o _19pkze3t _y3gn1h6o"])
|
|
70
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_11c8qk37 _1e0c1nu9 _1bah1h6o _19pkze3t _y3gn1h6o" : "_11c8qk37 _1e0c1nu9 _1bah1h6o _19pkze3t _y3gn1h6o"])
|
|
67
71
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages[descriptiveMessageKey], {
|
|
68
72
|
values: {
|
|
69
73
|
product: product,
|
|
@@ -71,7 +75,7 @@ var HoverCardForbiddenViewNew = function HoverCardForbiddenViewNew(_ref) {
|
|
|
71
75
|
}
|
|
72
76
|
}))), action && /*#__PURE__*/React.createElement(CustomBlock, {
|
|
73
77
|
status: SmartLinkStatus.Forbidden,
|
|
74
|
-
className: ax(["_1bah1h6o _19pku2gc"])
|
|
78
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_1bah1h6o _19pku2gc" : "_1bah1h6o _19pku2gc"])
|
|
75
79
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
76
80
|
testId: "".concat(testId, "-button"),
|
|
77
81
|
onClick: action === null || action === void 0 ? void 0 : action.promise,
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
._2aco1vlj [data-smart-element-group]{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._quenui7n [data-smart-element-group]{gap:.06rem}
|
|
4
|
+
._quenze3t [data-smart-element-group]{gap:var(--ds-space-0,0)}
|
|
4
5
|
._zulpidpf{gap:0}
|
|
5
6
|
._zulpu2gc{gap:var(--ds-space-100,8px)}._13mh1pd9 [data-smart-element=Title]{font-weight:var(--ds-font-weight-semibold,600)}
|
|
6
7
|
._1ljqu2gc [data-separator]+[data-separator]:before{margin-right:var(--ds-space-100,8px)}
|
|
7
8
|
._3tmpcxkx [data-smart-element-group]:nth-of-type(2)>span{margin-left:var(--ds-space-100,.5rem)}
|
|
8
9
|
._3um015vq{visibility:hidden}
|
|
10
|
+
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
9
11
|
._fmt31ohn [data-smart-element-group]:first-of-type{flex-grow:7}
|
|
10
12
|
._ia0l11wp [data-smart-element-group]:nth-of-type(2){flex-grow:3}
|
|
11
13
|
._kqswstnw{position:absolute}
|
|
14
|
+
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
12
15
|
._oebj1txw [data-smart-element-group]{display:flex}
|
|
13
16
|
._w3mucxkx [data-smart-element-group]:first-of-type>span{margin-right:var(--ds-space-100,.5rem)}
|
|
14
17
|
._x7z0u2gc [data-smart-element-group]>[data-smart-element-group]>span{margin-right:var(--ds-space-100,8px)}
|
|
@@ -13,12 +13,15 @@ import { getMetadata } from '../../../utils';
|
|
|
13
13
|
import ImagePreview from '../../ImagePreview';
|
|
14
14
|
import HoverCardResolvedViewOld from './HoverCardResolvedViewOld';
|
|
15
15
|
var hiddenSnippetStyles = null;
|
|
16
|
-
var
|
|
16
|
+
var metadataBlockCssOld = null;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Moved from HoverCardContent.tsx due to CompiledCSS migration.
|
|
20
20
|
*/
|
|
21
|
-
var
|
|
21
|
+
var titleBlockStyleOld = null;
|
|
22
|
+
var titleBlockStyles = null;
|
|
23
|
+
var snippetBlockCss = null;
|
|
24
|
+
var actionBlockCss = null;
|
|
22
25
|
var HoverCardResolvedViewNew = function HoverCardResolvedViewNew(_ref) {
|
|
23
26
|
var _cardState$details;
|
|
24
27
|
var cardState = _ref.cardState,
|
|
@@ -63,20 +66,21 @@ var HoverCardResolvedViewNew = function HoverCardResolvedViewNew(_ref) {
|
|
|
63
66
|
fallbackElementHeight: snippetHeight.current
|
|
64
67
|
});
|
|
65
68
|
var snippet = imagePreview ? null : /*#__PURE__*/React.createElement(SnippetBlock, {
|
|
66
|
-
status: SmartLinkStatus.Resolved
|
|
69
|
+
status: SmartLinkStatus.Resolved,
|
|
70
|
+
className: ax([fg('platform-linking-visual-refresh-v1') && "_ca0q1b66"])
|
|
67
71
|
});
|
|
68
72
|
var aiSummaryMinHeight = snippet ? snippetHeight.current : 0;
|
|
69
73
|
return /*#__PURE__*/React.createElement(FlexibleCard, flexibleCardProps, imagePreview, /*#__PURE__*/React.createElement(TitleBlock, _extends({}, titleBlockProps, {
|
|
70
74
|
metadataPosition: SmartLinkPosition.Top,
|
|
71
75
|
status: SmartLinkStatus.Resolved,
|
|
72
|
-
className: ax(["_zulpu2gc _quenui7n _oebj1txw _x7z0u2gc _1ljqu2gc _13mh1pd9"])
|
|
76
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_zulpu2gc _quenze3t _oebj1txw _13mh1pd9" : "_zulpu2gc _quenui7n _oebj1txw _x7z0u2gc _1ljqu2gc _13mh1pd9"])
|
|
73
77
|
})), /*#__PURE__*/React.createElement(MetadataBlock, {
|
|
74
78
|
primary: primary,
|
|
75
79
|
secondary: secondary,
|
|
76
80
|
maxLines: 1,
|
|
77
81
|
size: SmartLinkSize.Medium,
|
|
78
82
|
status: SmartLinkStatus.Resolved,
|
|
79
|
-
className: ax(["_zulpidpf _2aco1vlj _fmt31ohn _yklxcxkx _w3mucxkx _ia0l11wp _3tmpcxkx"])
|
|
83
|
+
className: ax([!fg('platform-linking-visual-refresh-v1') && "_zulpidpf _2aco1vlj _fmt31ohn _yklxcxkx _w3mucxkx _ia0l11wp _3tmpcxkx"])
|
|
80
84
|
}), isAISummaryEnabled ? /*#__PURE__*/React.createElement(AISummaryBlock, {
|
|
81
85
|
aiSummaryMinHeight: aiSummaryMinHeight,
|
|
82
86
|
placeholder: snippet,
|
|
@@ -89,7 +93,8 @@ var HoverCardResolvedViewNew = function HoverCardResolvedViewNew(_ref) {
|
|
|
89
93
|
className: ax(["_3um015vq _kqswstnw"])
|
|
90
94
|
}), /*#__PURE__*/React.createElement(ActionBlock, {
|
|
91
95
|
onClick: onActionClick,
|
|
92
|
-
spaceInline: "space.100"
|
|
96
|
+
spaceInline: "space.100",
|
|
97
|
+
className: ax([fg('platform-linking-visual-refresh-v1') && "_n3td1b66"])
|
|
93
98
|
}), /*#__PURE__*/React.createElement(AIFooterBlock, null));
|
|
94
99
|
};
|
|
95
100
|
var HoverCardResolvedView = function HoverCardResolvedView(props) {
|
|
@@ -1,5 +1,8 @@
|
|
|
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
|
._zulp5l1i{gap:.5rem .5rem}
|
|
3
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
4
|
+
._13mh1pd9 [data-smart-element=Title]{font-weight:var(--ds-font-weight-semibold,600)}
|
|
3
5
|
._19pkcxkx{margin-top:var(--ds-space-100,.5rem)}
|
|
6
|
+
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
4
7
|
._1bahesu3{justify-content:flex-end}
|
|
5
8
|
._bpsp1wq8 a{font-weight:var(--ds-font-weight-medium,500)}
|
|
@@ -18,8 +18,11 @@ import { CustomBlock } from '../../../../FlexibleCard/components/blocks';
|
|
|
18
18
|
import ActionGroup from '../../../../FlexibleCard/components/blocks/action-group';
|
|
19
19
|
import { LinkIcon } from '../../../../FlexibleCard/components/elements';
|
|
20
20
|
import HoverCardUnauthorisedViewOld from './HoverCardUnauthorisedViewOld';
|
|
21
|
+
var connectButtonStylesOld = null;
|
|
21
22
|
var connectButtonStyles = null;
|
|
23
|
+
var titleBlockStylesOld = null;
|
|
22
24
|
var titleBlockStyles = null;
|
|
25
|
+
var mainTextStylesOld = null;
|
|
23
26
|
var mainTextStyles = null;
|
|
24
27
|
var HoverCardUnauthorisedViewNew = function HoverCardUnauthorisedViewNew(_ref) {
|
|
25
28
|
var _cardState$details, _extractProvider;
|
|
@@ -58,20 +61,20 @@ var HoverCardUnauthorisedViewNew = function HoverCardUnauthorisedViewNew(_ref) {
|
|
|
58
61
|
testId: testId
|
|
59
62
|
}), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
60
63
|
testId: "".concat(testId, "-title"),
|
|
61
|
-
className: ax(["_zulp5l1i _bpsp1wq8"])
|
|
64
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_zulpu2gc _13mh1pd9" : "_zulp5l1i _bpsp1wq8"])
|
|
62
65
|
}, /*#__PURE__*/React.createElement(LinkIcon, null), /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
63
66
|
values: {
|
|
64
67
|
context: providerName
|
|
65
68
|
}
|
|
66
69
|
}))), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
67
70
|
testId: "".concat(testId, "-content"),
|
|
68
|
-
className: ax(["_11c8qk37 _19pkcxkx"])
|
|
71
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_11c8qk37 _19pku2gc" : "_11c8qk37 _19pkcxkx"])
|
|
69
72
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(UnauthorisedViewContent, {
|
|
70
73
|
providerName: providerName,
|
|
71
74
|
isProductIntegrationSupported: isProductIntegrationSupported
|
|
72
75
|
}))), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
73
76
|
testId: "".concat(testId, "-button"),
|
|
74
|
-
className: ax(["_1bahesu3 _19pkcxkx"])
|
|
77
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_1bahesu3 _19pku2gc" : "_1bahesu3 _19pkcxkx"])
|
|
75
78
|
}, /*#__PURE__*/React.createElement(ActionGroup, {
|
|
76
79
|
items: actions,
|
|
77
80
|
appearance: "primary"
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
var PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "35.1.
|
|
16
|
+
packageVersion: "35.1.4",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FlexibleBlockCardProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* This view represent a Block Card with the 'Forbidden' status.
|
|
5
|
+
* It should have a "Try another account" button that will allow a user to connect another account and view the block card.
|
|
6
|
+
*
|
|
7
|
+
* @see SmartLinkStatus
|
|
8
|
+
* @see FlexibleCardProps
|
|
9
|
+
*/
|
|
10
|
+
export declare const ForbiddenViewOld: ({ testId, ...props }: FlexibleBlockCardProps) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FlexibleBlockCardProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* This view represents a Block Card with a 'Not_Found' status.
|
|
5
|
+
*
|
|
6
|
+
* @see SmartLinkStatus
|
|
7
|
+
* @see FlexibleCardProps
|
|
8
|
+
*/
|
|
9
|
+
export declare const NotFoundViewOld: ({ testId, ...props }: FlexibleBlockCardProps) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FlexibleBlockCardProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* This view represent a Block Card with the 'Forbidden' status.
|
|
5
|
+
* It should have a "Try another account" button that will allow a user to connect another account and view the block card.
|
|
6
|
+
*
|
|
7
|
+
* @see SmartLinkStatus
|
|
8
|
+
* @see FlexibleCardProps
|
|
9
|
+
*/
|
|
10
|
+
export declare const ForbiddenViewOld: ({ testId, ...props }: FlexibleBlockCardProps) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FlexibleBlockCardProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* This view represents a Block Card with a 'Not_Found' status.
|
|
5
|
+
*
|
|
6
|
+
* @see SmartLinkStatus
|
|
7
|
+
* @see FlexibleCardProps
|
|
8
|
+
*/
|
|
9
|
+
export declare const NotFoundViewOld: ({ testId, ...props }: FlexibleBlockCardProps) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "35.1.
|
|
3
|
+
"version": "35.1.4",
|
|
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": "^24.1.0",
|
|
43
43
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
44
|
-
"@atlaskit/icon-lab": "^3.
|
|
44
|
+
"@atlaskit/icon-lab": "^3.3.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",
|