@atlaskit/smart-card 27.9.0 → 27.9.1
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 +9 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +6 -5
- package/dist/cjs/view/EmbedCard/views/ResolvedView.js +2 -1
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +5 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +6 -6
- package/dist/es2019/view/EmbedCard/views/ResolvedView.js +2 -1
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +5 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +7 -6
- package/dist/esm/view/EmbedCard/views/ResolvedView.js +2 -1
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +5 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/EmbedCard/components/ExpandedFrame.d.ts +17 -1
- package/dist/types/view/EmbedCard/components/styled.d.ts +7 -0
- package/dist/types-ts4.5/view/EmbedCard/components/ExpandedFrame.d.ts +17 -1
- package/dist/types-ts4.5/view/EmbedCard/components/styled.d.ts +7 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 27.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#117751](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117751)
|
|
8
|
+
[`b3f950d2332ed`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b3f950d2332ed) -
|
|
9
|
+
EDM-10151 Fix embed overflow when embed blur fix enabled
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 27.9.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
22
22
|
var context = exports.context = {
|
|
23
23
|
componentName: 'smart-cards',
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "27.9.
|
|
25
|
+
packageVersion: "27.9.1"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -28,7 +28,9 @@ var ExpandedFrame = exports.ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
28
28
|
testId = _ref$testId === void 0 ? 'expanded-frame' : _ref$testId,
|
|
29
29
|
inheritDimensions = _ref.inheritDimensions,
|
|
30
30
|
_ref$allowScrollBar = _ref.allowScrollBar,
|
|
31
|
-
allowScrollBar = _ref$allowScrollBar === void 0 ? false : _ref$allowScrollBar
|
|
31
|
+
allowScrollBar = _ref$allowScrollBar === void 0 ? false : _ref$allowScrollBar,
|
|
32
|
+
_ref$setOverflow = _ref.setOverflow,
|
|
33
|
+
setOverflow = _ref$setOverflow === void 0 ? true : _ref$setOverflow;
|
|
32
34
|
var isInteractive = function isInteractive() {
|
|
33
35
|
return !isPlaceholder && (Boolean(href) || Boolean(onClick));
|
|
34
36
|
};
|
|
@@ -36,7 +38,6 @@ var ExpandedFrame = exports.ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
36
38
|
return (0, _handlers.handleClickCommon)(event, onClick);
|
|
37
39
|
};
|
|
38
40
|
var handleMouseDown = (0, _useLinkClicked.useMouseDownEvent)();
|
|
39
|
-
var isFixEmbedCardBlurEnabled = (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.fix-embed-card-blurring') ? true : false;
|
|
40
41
|
var renderHeaderOld = function renderHeaderOld() {
|
|
41
42
|
return (
|
|
42
43
|
/*#__PURE__*/
|
|
@@ -80,7 +81,7 @@ var ExpandedFrame = exports.ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
80
81
|
return /*#__PURE__*/_react.default.createElement(_styled.Content, {
|
|
81
82
|
"data-testid": "embed-content-wrapper",
|
|
82
83
|
allowScrollBar: allowScrollBar,
|
|
83
|
-
removeOverflow:
|
|
84
|
+
removeOverflow: (0, _platformFeatureFlags.fg)('platform.linking-platform.smart-card.fix-embed-card-blurring') && !setOverflow,
|
|
84
85
|
isInteractive: isInteractive(),
|
|
85
86
|
frameStyle: frameStyle
|
|
86
87
|
// This fixes an issue with input fields in cross domain iframes (ie. databases and jira fields from different domains)
|
|
@@ -106,7 +107,7 @@ var ExpandedFrame = exports.ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
106
107
|
,
|
|
107
108
|
"data-is-selected": isSelected,
|
|
108
109
|
inheritDimensions: inheritDimensions
|
|
109
|
-
}, (0, _platformFeatureFlags.
|
|
110
|
+
}, (0, _platformFeatureFlags.fg)('platform.linking-platform.smart-card.enable-embed-card-header-tooltip_g9saw') ? renderHeader() : renderHeaderOld(), renderContent());
|
|
110
111
|
} else {
|
|
111
112
|
return /*#__PURE__*/_react.default.createElement(_styled.Wrapper
|
|
112
113
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -122,6 +123,6 @@ var ExpandedFrame = exports.ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
122
123
|
"data-is-selected": isSelected,
|
|
123
124
|
"data-wrapper-type": "default",
|
|
124
125
|
"data-is-interactive": isInteractive()
|
|
125
|
-
}, (0, _platformFeatureFlags.
|
|
126
|
+
}, (0, _platformFeatureFlags.fg)('platform.linking-platform.smart-card.enable-embed-card-header-tooltip_g9saw') ? renderHeader() : renderHeaderOld(), renderContent());
|
|
126
127
|
}
|
|
127
128
|
};
|
|
@@ -63,7 +63,8 @@ var EmbedCardResolvedView = exports.EmbedCardResolvedView = /*#__PURE__*/_react2
|
|
|
63
63
|
icon: icon,
|
|
64
64
|
text: text,
|
|
65
65
|
onClick: onClick,
|
|
66
|
-
inheritDimensions: inheritDimensions
|
|
66
|
+
inheritDimensions: inheritDimensions,
|
|
67
|
+
setOverflow: false
|
|
67
68
|
}, (0, _react.jsx)(_Frame.Frame, {
|
|
68
69
|
url: previewUrl,
|
|
69
70
|
isTrusted: isTrusted,
|
|
@@ -91,8 +91,11 @@ var UnresolvedView = function UnresolvedView(_ref) {
|
|
|
91
91
|
"data-testid": imageTestId
|
|
92
92
|
}, imageUrlOrElement);
|
|
93
93
|
}, [imageUrlOrElement, testId]);
|
|
94
|
-
return (0, _react.jsx)(_ExpandedFrame.ExpandedFrame
|
|
95
|
-
|
|
94
|
+
return (0, _react.jsx)(_ExpandedFrame.ExpandedFrame
|
|
95
|
+
// Scroll bar must be shown for unresolved views to display the connect account button
|
|
96
|
+
, {
|
|
97
|
+
allowScrollBar: true,
|
|
98
|
+
setOverflow: true
|
|
96
99
|
// EDM-9259: Fix embed frame showing on unresolved views when frameStyle is set to hide.
|
|
97
100
|
// Set fallback to 'show' here to maintain the current behaviour when platform.editor.show-embed-card-frame-renderer is OFF.
|
|
98
101
|
// Remove 'show' on platform.editor.show-embed-card-frame-renderer cleanup as frameStyle will be set to 'show' both in renderer and editor.
|
|
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
17
17
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
18
18
|
var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "27.9.
|
|
20
|
+
packageVersion: "27.9.1",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "27.9.
|
|
7
|
+
packageVersion: "27.9.1"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -3,7 +3,7 @@ import { className, LinkWrapper, Wrapper, Header, IconWrapper, TextWrapper, Tool
|
|
|
3
3
|
import { handleClickCommon } from '../../BlockCard/utils/handlers';
|
|
4
4
|
import { useMouseDownEvent } from '../../../state/analytics/useLinkClicked';
|
|
5
5
|
import Tooltip from '@atlaskit/tooltip';
|
|
6
|
-
import {
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
export const ExpandedFrame = ({
|
|
8
8
|
isPlaceholder = false,
|
|
9
9
|
children,
|
|
@@ -17,12 +17,12 @@ export const ExpandedFrame = ({
|
|
|
17
17
|
maxWidth,
|
|
18
18
|
testId = 'expanded-frame',
|
|
19
19
|
inheritDimensions,
|
|
20
|
-
allowScrollBar = false
|
|
20
|
+
allowScrollBar = false,
|
|
21
|
+
setOverflow = true
|
|
21
22
|
}) => {
|
|
22
23
|
const isInteractive = () => !isPlaceholder && (Boolean(href) || Boolean(onClick));
|
|
23
24
|
const handleClick = event => handleClickCommon(event, onClick);
|
|
24
25
|
const handleMouseDown = useMouseDownEvent();
|
|
25
|
-
const isFixEmbedCardBlurEnabled = getBooleanFF('platform.linking-platform.smart-card.fix-embed-card-blurring') ? true : false;
|
|
26
26
|
const renderHeaderOld = () =>
|
|
27
27
|
/*#__PURE__*/
|
|
28
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -59,7 +59,7 @@ export const ExpandedFrame = ({
|
|
|
59
59
|
const renderContent = () => /*#__PURE__*/React.createElement(Content, {
|
|
60
60
|
"data-testid": "embed-content-wrapper",
|
|
61
61
|
allowScrollBar: allowScrollBar,
|
|
62
|
-
removeOverflow:
|
|
62
|
+
removeOverflow: fg('platform.linking-platform.smart-card.fix-embed-card-blurring') && !setOverflow,
|
|
63
63
|
isInteractive: isInteractive(),
|
|
64
64
|
frameStyle: frameStyle
|
|
65
65
|
// This fixes an issue with input fields in cross domain iframes (ie. databases and jira fields from different domains)
|
|
@@ -84,7 +84,7 @@ export const ExpandedFrame = ({
|
|
|
84
84
|
,
|
|
85
85
|
"data-is-selected": isSelected,
|
|
86
86
|
inheritDimensions: inheritDimensions
|
|
87
|
-
},
|
|
87
|
+
}, fg('platform.linking-platform.smart-card.enable-embed-card-header-tooltip_g9saw') ? renderHeader() : renderHeaderOld(), renderContent());
|
|
88
88
|
} else {
|
|
89
89
|
return /*#__PURE__*/React.createElement(Wrapper
|
|
90
90
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -100,6 +100,6 @@ export const ExpandedFrame = ({
|
|
|
100
100
|
"data-is-selected": isSelected,
|
|
101
101
|
"data-wrapper-type": "default",
|
|
102
102
|
"data-is-interactive": isInteractive()
|
|
103
|
-
},
|
|
103
|
+
}, fg('platform.linking-platform.smart-card.enable-embed-card-header-tooltip_g9saw') ? renderHeader() : renderHeaderOld(), renderContent());
|
|
104
104
|
}
|
|
105
105
|
};
|
|
@@ -53,7 +53,8 @@ export const EmbedCardResolvedView = /*#__PURE__*/React.forwardRef(({
|
|
|
53
53
|
icon: icon,
|
|
54
54
|
text: text,
|
|
55
55
|
onClick: onClick,
|
|
56
|
-
inheritDimensions: inheritDimensions
|
|
56
|
+
inheritDimensions: inheritDimensions,
|
|
57
|
+
setOverflow: false
|
|
57
58
|
}, jsx(Frame, {
|
|
58
59
|
url: previewUrl,
|
|
59
60
|
isTrusted: isTrusted,
|
|
@@ -80,8 +80,11 @@ const UnresolvedView = ({
|
|
|
80
80
|
"data-testid": imageTestId
|
|
81
81
|
}, imageUrlOrElement);
|
|
82
82
|
}, [imageUrlOrElement, testId]);
|
|
83
|
-
return jsx(ExpandedFrame
|
|
84
|
-
|
|
83
|
+
return jsx(ExpandedFrame
|
|
84
|
+
// Scroll bar must be shown for unresolved views to display the connect account button
|
|
85
|
+
, {
|
|
86
|
+
allowScrollBar: true,
|
|
87
|
+
setOverflow: true
|
|
85
88
|
// EDM-9259: Fix embed frame showing on unresolved views when frameStyle is set to hide.
|
|
86
89
|
// Set fallback to 'show' here to maintain the current behaviour when platform.editor.show-embed-card-frame-renderer is OFF.
|
|
87
90
|
// Remove 'show' on platform.editor.show-embed-card-frame-renderer cleanup as frameStyle will be set to 'show' both in renderer and editor.
|
|
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
7
7
|
import LinkWarningModal from './LinkWarningModal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "27.9.
|
|
10
|
+
packageVersion: "27.9.1",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "27.9.
|
|
18
|
+
packageVersion: "27.9.1"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -3,7 +3,7 @@ import { className, LinkWrapper, Wrapper, Header, IconWrapper, TextWrapper, Tool
|
|
|
3
3
|
import { handleClickCommon } from '../../BlockCard/utils/handlers';
|
|
4
4
|
import { useMouseDownEvent } from '../../../state/analytics/useLinkClicked';
|
|
5
5
|
import Tooltip from '@atlaskit/tooltip';
|
|
6
|
-
import {
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
8
8
|
var _ref$isPlaceholder = _ref.isPlaceholder,
|
|
9
9
|
isPlaceholder = _ref$isPlaceholder === void 0 ? false : _ref$isPlaceholder,
|
|
@@ -21,7 +21,9 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
21
21
|
testId = _ref$testId === void 0 ? 'expanded-frame' : _ref$testId,
|
|
22
22
|
inheritDimensions = _ref.inheritDimensions,
|
|
23
23
|
_ref$allowScrollBar = _ref.allowScrollBar,
|
|
24
|
-
allowScrollBar = _ref$allowScrollBar === void 0 ? false : _ref$allowScrollBar
|
|
24
|
+
allowScrollBar = _ref$allowScrollBar === void 0 ? false : _ref$allowScrollBar,
|
|
25
|
+
_ref$setOverflow = _ref.setOverflow,
|
|
26
|
+
setOverflow = _ref$setOverflow === void 0 ? true : _ref$setOverflow;
|
|
25
27
|
var isInteractive = function isInteractive() {
|
|
26
28
|
return !isPlaceholder && (Boolean(href) || Boolean(onClick));
|
|
27
29
|
};
|
|
@@ -29,7 +31,6 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
29
31
|
return handleClickCommon(event, onClick);
|
|
30
32
|
};
|
|
31
33
|
var handleMouseDown = useMouseDownEvent();
|
|
32
|
-
var isFixEmbedCardBlurEnabled = getBooleanFF('platform.linking-platform.smart-card.fix-embed-card-blurring') ? true : false;
|
|
33
34
|
var renderHeaderOld = function renderHeaderOld() {
|
|
34
35
|
return (
|
|
35
36
|
/*#__PURE__*/
|
|
@@ -73,7 +74,7 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
73
74
|
return /*#__PURE__*/React.createElement(Content, {
|
|
74
75
|
"data-testid": "embed-content-wrapper",
|
|
75
76
|
allowScrollBar: allowScrollBar,
|
|
76
|
-
removeOverflow:
|
|
77
|
+
removeOverflow: fg('platform.linking-platform.smart-card.fix-embed-card-blurring') && !setOverflow,
|
|
77
78
|
isInteractive: isInteractive(),
|
|
78
79
|
frameStyle: frameStyle
|
|
79
80
|
// This fixes an issue with input fields in cross domain iframes (ie. databases and jira fields from different domains)
|
|
@@ -99,7 +100,7 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
99
100
|
,
|
|
100
101
|
"data-is-selected": isSelected,
|
|
101
102
|
inheritDimensions: inheritDimensions
|
|
102
|
-
},
|
|
103
|
+
}, fg('platform.linking-platform.smart-card.enable-embed-card-header-tooltip_g9saw') ? renderHeader() : renderHeaderOld(), renderContent());
|
|
103
104
|
} else {
|
|
104
105
|
return /*#__PURE__*/React.createElement(Wrapper
|
|
105
106
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -115,6 +116,6 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
115
116
|
"data-is-selected": isSelected,
|
|
116
117
|
"data-wrapper-type": "default",
|
|
117
118
|
"data-is-interactive": isInteractive()
|
|
118
|
-
},
|
|
119
|
+
}, fg('platform.linking-platform.smart-card.enable-embed-card-header-tooltip_g9saw') ? renderHeader() : renderHeaderOld(), renderContent());
|
|
119
120
|
}
|
|
120
121
|
};
|
|
@@ -55,7 +55,8 @@ export var EmbedCardResolvedView = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
|
55
55
|
icon: icon,
|
|
56
56
|
text: text,
|
|
57
57
|
onClick: onClick,
|
|
58
|
-
inheritDimensions: inheritDimensions
|
|
58
|
+
inheritDimensions: inheritDimensions,
|
|
59
|
+
setOverflow: false
|
|
59
60
|
}, jsx(Frame, {
|
|
60
61
|
url: previewUrl,
|
|
61
62
|
isTrusted: isTrusted,
|
|
@@ -79,8 +79,11 @@ var UnresolvedView = function UnresolvedView(_ref) {
|
|
|
79
79
|
"data-testid": imageTestId
|
|
80
80
|
}, imageUrlOrElement);
|
|
81
81
|
}, [imageUrlOrElement, testId]);
|
|
82
|
-
return jsx(ExpandedFrame
|
|
83
|
-
|
|
82
|
+
return jsx(ExpandedFrame
|
|
83
|
+
// Scroll bar must be shown for unresolved views to display the connect account button
|
|
84
|
+
, {
|
|
85
|
+
allowScrollBar: true,
|
|
86
|
+
setOverflow: true
|
|
84
87
|
// EDM-9259: Fix embed frame showing on unresolved views when frameStyle is set to hide.
|
|
85
88
|
// Set fallback to 'show' here to maintain the current behaviour when platform.editor.show-embed-card-frame-renderer is OFF.
|
|
86
89
|
// Remove 'show' on platform.editor.show-embed-card-frame-renderer cleanup as frameStyle will be set to 'show' both in renderer and editor.
|
|
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
10
10
|
import LinkWarningModal from './LinkWarningModal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "27.9.
|
|
13
|
+
packageVersion: "27.9.1",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -18,7 +18,23 @@ export interface ExpandedFrameProps {
|
|
|
18
18
|
testId?: string;
|
|
19
19
|
/** If dimensions of the card are to be inherited from the parent */
|
|
20
20
|
inheritDimensions?: boolean;
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* To enable scrolling in use cases where the content will not have it's own scrollbar.
|
|
23
|
+
*
|
|
24
|
+
* Requires `setOverflow` to be set to true.
|
|
25
|
+
*
|
|
26
|
+
* Always enable this when when the card is not resolved so the connect account button is not hiddden.
|
|
27
|
+
*/
|
|
22
28
|
allowScrollBar?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Should the CSS `overflow` property be set to hidden or auto (clipping or
|
|
31
|
+
* supporting a scroll bar), or left out altogether.
|
|
32
|
+
*
|
|
33
|
+
* Set to true when embed is unresolved to prevent account connection button being unreachable.
|
|
34
|
+
*
|
|
35
|
+
* Set to false when the card is resolved to mitigate blurry embed card issue (EDM-7188).
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
setOverflow?: boolean;
|
|
23
39
|
}
|
|
24
40
|
export declare const ExpandedFrame: FC<ExpandedFrameProps>;
|
|
@@ -45,7 +45,14 @@ export declare const TooltipWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
45
45
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
46
46
|
export interface ContentProps {
|
|
47
47
|
isInteractive: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether to show a scroll bar (use overflow: auto) or hide overflow (overflow:hidden).
|
|
50
|
+
* Always set to true for unresolved embeds, otherwise the connect account button may be hidden and unreachable.
|
|
51
|
+
*/
|
|
48
52
|
allowScrollBar: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Remove the overflow: ... CSS property altogether.
|
|
55
|
+
*/
|
|
49
56
|
removeOverflow?: boolean;
|
|
50
57
|
frameStyle?: FrameStyle;
|
|
51
58
|
}
|
|
@@ -18,7 +18,23 @@ export interface ExpandedFrameProps {
|
|
|
18
18
|
testId?: string;
|
|
19
19
|
/** If dimensions of the card are to be inherited from the parent */
|
|
20
20
|
inheritDimensions?: boolean;
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* To enable scrolling in use cases where the content will not have it's own scrollbar.
|
|
23
|
+
*
|
|
24
|
+
* Requires `setOverflow` to be set to true.
|
|
25
|
+
*
|
|
26
|
+
* Always enable this when when the card is not resolved so the connect account button is not hiddden.
|
|
27
|
+
*/
|
|
22
28
|
allowScrollBar?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Should the CSS `overflow` property be set to hidden or auto (clipping or
|
|
31
|
+
* supporting a scroll bar), or left out altogether.
|
|
32
|
+
*
|
|
33
|
+
* Set to true when embed is unresolved to prevent account connection button being unreachable.
|
|
34
|
+
*
|
|
35
|
+
* Set to false when the card is resolved to mitigate blurry embed card issue (EDM-7188).
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
setOverflow?: boolean;
|
|
23
39
|
}
|
|
24
40
|
export declare const ExpandedFrame: FC<ExpandedFrameProps>;
|
|
@@ -45,7 +45,14 @@ export declare const TooltipWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
45
45
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
46
46
|
export interface ContentProps {
|
|
47
47
|
isInteractive: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether to show a scroll bar (use overflow: auto) or hide overflow (overflow:hidden).
|
|
50
|
+
* Always set to true for unresolved embeds, otherwise the connect account button may be hidden and unreachable.
|
|
51
|
+
*/
|
|
48
52
|
allowScrollBar: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Remove the overflow: ... CSS property altogether.
|
|
55
|
+
*/
|
|
49
56
|
removeOverflow?: boolean;
|
|
50
57
|
frameStyle?: FrameStyle;
|
|
51
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "27.9.
|
|
3
|
+
"version": "27.9.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"@atlaskit/avatar": "^21.11.0",
|
|
34
34
|
"@atlaskit/avatar-group": "^9.9.0",
|
|
35
35
|
"@atlaskit/badge": "^16.3.0",
|
|
36
|
-
"@atlaskit/button": "^18.
|
|
36
|
+
"@atlaskit/button": "^18.2.0",
|
|
37
37
|
"@atlaskit/checkbox": "^13.5.0",
|
|
38
38
|
"@atlaskit/dropdown-menu": "^12.14.0",
|
|
39
39
|
"@atlaskit/form": "^10.4.0",
|
|
40
40
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
41
41
|
"@atlaskit/heading": "^2.4.0",
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
42
|
+
"@atlaskit/icon": "^22.6.0",
|
|
43
43
|
"@atlaskit/icon-file-type": "^6.4.0",
|
|
44
44
|
"@atlaskit/icon-object": "^6.4.0",
|
|
45
45
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
57
|
"@atlaskit/popup": "^1.20.0",
|
|
58
|
-
"@atlaskit/primitives": "^10.
|
|
58
|
+
"@atlaskit/primitives": "^10.1.0",
|
|
59
59
|
"@atlaskit/section-message": "^6.5.0",
|
|
60
60
|
"@atlaskit/select": "^17.11.0",
|
|
61
61
|
"@atlaskit/spinner": "^16.2.0",
|