@atlaskit/smart-card 23.4.2 → 23.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +5 -1
- package/dist/cjs/view/EmbedCard/components/styled.js +8 -5
- package/dist/cjs/view/EmbedCard/views/ForbiddenView.js +2 -1
- package/dist/cjs/view/EmbedCard/views/NotFoundView.js +2 -1
- package/dist/cjs/view/EmbedCard/views/UnauthorisedView.js +2 -1
- package/dist/cjs/view/EmbedCard/views/UnresolvedView.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +4 -1
- package/dist/es2019/view/EmbedCard/components/styled.js +4 -1
- package/dist/es2019/view/EmbedCard/views/ForbiddenView.js +2 -1
- package/dist/es2019/view/EmbedCard/views/NotFoundView.js +2 -1
- package/dist/es2019/view/EmbedCard/views/UnauthorisedView.js +2 -1
- package/dist/es2019/view/EmbedCard/views/UnresolvedView.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +5 -1
- package/dist/esm/view/EmbedCard/components/styled.js +8 -5
- package/dist/esm/view/EmbedCard/views/ForbiddenView.js +2 -1
- package/dist/esm/view/EmbedCard/views/NotFoundView.js +2 -1
- package/dist/esm/view/EmbedCard/views/UnauthorisedView.js +2 -1
- package/dist/esm/view/EmbedCard/views/UnresolvedView.js +2 -2
- package/dist/types/view/EmbedCard/components/ExpandedFrame.d.ts +2 -0
- package/dist/types/view/EmbedCard/components/styled.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 23.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`85de18a2d79`](https://bitbucket.org/atlassian/atlassian-frontend/commits/85de18a2d79) - [ux] Enable text wrapping in contents of unresolved views and allow scrolling in when embed size is small.
|
|
8
|
+
|
|
3
9
|
## 23.4.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
|
@@ -28,7 +28,9 @@ var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
28
28
|
maxWidth = _ref.maxWidth,
|
|
29
29
|
_ref$testId = _ref.testId,
|
|
30
30
|
testId = _ref$testId === void 0 ? 'expanded-frame' : _ref$testId,
|
|
31
|
-
inheritDimensions = _ref.inheritDimensions
|
|
31
|
+
inheritDimensions = _ref.inheritDimensions,
|
|
32
|
+
_ref$allowScrollBar = _ref.allowScrollBar,
|
|
33
|
+
allowScrollBar = _ref$allowScrollBar === void 0 ? false : _ref$allowScrollBar;
|
|
32
34
|
|
|
33
35
|
var isInteractive = function isInteractive() {
|
|
34
36
|
return !isPlaceholder && (Boolean(href) || Boolean(onClick));
|
|
@@ -53,6 +55,8 @@ var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
53
55
|
|
|
54
56
|
var renderContent = function renderContent() {
|
|
55
57
|
return /*#__PURE__*/_react.default.createElement(_styled.Content, {
|
|
58
|
+
"data-testid": "embed-content-wrapper",
|
|
59
|
+
allowScrollBar: allowScrollBar,
|
|
56
60
|
isInteractive: isInteractive()
|
|
57
61
|
}, children);
|
|
58
62
|
};
|
|
@@ -144,7 +144,7 @@ exports.TextWrapper = TextWrapper;
|
|
|
144
144
|
// NB: `overflow` is kept as `hidden` since
|
|
145
145
|
// the internal contents of the `iframe` should
|
|
146
146
|
// manage scrolling behaviour.
|
|
147
|
-
var Content = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n background-color: ", ";\n position: absolute;\n z-index: 1;\n width: 100%;\n top: ", ";\n
|
|
147
|
+
var Content = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n background-color: ", ";\n position: absolute;\n z-index: 1;\n width: 100%;\n top: ", ";\n height: calc(100% - ", ");\n transition: box-shadow 0.3s;\n\n > .calc-height > div > div {\n left: unset !important;\n width: unset !important;\n height: unset !important;\n position: initial !important;\n padding-bottom: unset !important;\n }\n > .embed-preview > div {\n margin: 0 auto;\n }\n\n ", ";\n\n ", "\n"])), borderRadius, cardShadow, (0, _tokens.token)('elevation.surface.raised', 'white'), (0, _utils.gs)(4), (0, _utils.gs)(4), function (_ref9) {
|
|
148
148
|
var isInteractive = _ref9.isInteractive;
|
|
149
149
|
|
|
150
150
|
if (isInteractive) {
|
|
@@ -152,12 +152,15 @@ var Content = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _t
|
|
|
152
152
|
} else {
|
|
153
153
|
return '';
|
|
154
154
|
}
|
|
155
|
+
}, function (_ref10) {
|
|
156
|
+
var allowScrollBar = _ref10.allowScrollBar;
|
|
157
|
+
return allowScrollBar ? 'overflow: auto;' : 'overflow: hidden;';
|
|
155
158
|
});
|
|
156
159
|
|
|
157
160
|
exports.Content = Content;
|
|
158
161
|
|
|
159
|
-
var Image = _styled.default.img(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n\n /* hide the alt text when the image cannot be found */\n overflow: hidden;\n"])), function (
|
|
160
|
-
var size =
|
|
162
|
+
var Image = _styled.default.img(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n\n /* hide the alt text when the image cannot be found */\n overflow: hidden;\n"])), function (_ref11) {
|
|
163
|
+
var size = _ref11.size;
|
|
161
164
|
return csssize(size);
|
|
162
165
|
}, borderRadius);
|
|
163
166
|
|
|
@@ -185,8 +188,8 @@ var ResolvedViewIconWrapper = _styled.default.div(_templateObject12 || (_templat
|
|
|
185
188
|
|
|
186
189
|
exports.ResolvedViewIconWrapper = ResolvedViewIconWrapper;
|
|
187
190
|
|
|
188
|
-
var Thumbnail = _styled.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n float: right;\n margin: 4px 0 12px 12px;\n background-color: ", ";\n background-image: url(", ");\n background-size: cover;\n"])), borderRadius, csssize(48), (0, _tokens.token)('color.skeleton', colors.N30), function (
|
|
189
|
-
var src =
|
|
191
|
+
var Thumbnail = _styled.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n float: right;\n margin: 4px 0 12px 12px;\n background-color: ", ";\n background-image: url(", ");\n background-size: cover;\n"])), borderRadius, csssize(48), (0, _tokens.token)('color.skeleton', colors.N30), function (_ref12) {
|
|
192
|
+
var src = _ref12.src;
|
|
190
193
|
return src;
|
|
191
194
|
});
|
|
192
195
|
|
|
@@ -70,7 +70,8 @@ var EmbedCardForbiddenView = function EmbedCardForbiddenView(_ref) {
|
|
|
70
70
|
isSelected: isSelected,
|
|
71
71
|
inheritDimensions: inheritDimensions,
|
|
72
72
|
onClick: onClick,
|
|
73
|
-
testId: testId
|
|
73
|
+
testId: testId,
|
|
74
|
+
allowScrollBar: true
|
|
74
75
|
}, /*#__PURE__*/_react.default.createElement(_UnresolvedView.EmbedCardUnresolvedView, {
|
|
75
76
|
image: _constants.LockImage,
|
|
76
77
|
title: "invalid_permissions",
|
|
@@ -38,7 +38,8 @@ var EmbedCardNotFoundView = function EmbedCardNotFoundView(_ref) {
|
|
|
38
38
|
isSelected: isSelected,
|
|
39
39
|
inheritDimensions: inheritDimensions,
|
|
40
40
|
onClick: onClick,
|
|
41
|
-
testId: testId
|
|
41
|
+
testId: testId,
|
|
42
|
+
allowScrollBar: true
|
|
42
43
|
}, /*#__PURE__*/_react.default.createElement(_UnresolvedView.EmbedCardUnresolvedView, {
|
|
43
44
|
image: _constants.NotFoundImage,
|
|
44
45
|
title: "not_found_title",
|
|
@@ -49,7 +49,8 @@ var EmbedCardUnauthorisedView = function EmbedCardUnauthorisedView(_ref) {
|
|
|
49
49
|
isSelected: isSelected,
|
|
50
50
|
inheritDimensions: inheritDimensions,
|
|
51
51
|
onClick: onClick,
|
|
52
|
-
testId: testId
|
|
52
|
+
testId: testId,
|
|
53
|
+
allowScrollBar: true
|
|
53
54
|
}, /*#__PURE__*/_react.default.createElement(_UnresolvedView.EmbedCardUnresolvedView, {
|
|
54
55
|
image: (_context$image = context === null || context === void 0 ? void 0 : context.image) !== null && _context$image !== void 0 ? _context$image : _constants.UnauthorisedImage,
|
|
55
56
|
title: "connect_link_account_card_name",
|
|
@@ -52,7 +52,7 @@ var EmbedCardUnresolvedView = function EmbedCardUnresolvedView(_ref) {
|
|
|
52
52
|
css: {
|
|
53
53
|
fontSize: (0, _utils.gs)(2.5),
|
|
54
54
|
marginBottom: (0, _utils.gs)(1.5),
|
|
55
|
-
|
|
55
|
+
maxWidth: (0, _utils.gs)(50),
|
|
56
56
|
textAlign: 'center'
|
|
57
57
|
},
|
|
58
58
|
"data-testid": "".concat(testId, "-unresolved-title")
|
|
@@ -65,7 +65,7 @@ var EmbedCardUnresolvedView = function EmbedCardUnresolvedView(_ref) {
|
|
|
65
65
|
fontSize: (0, _constants.fontSize)(),
|
|
66
66
|
marginBottom: (0, _utils.gs)(2.5),
|
|
67
67
|
textAlign: 'center',
|
|
68
|
-
|
|
68
|
+
maxWidth: (0, _utils.gs)(50),
|
|
69
69
|
lineHeight: (0, _utils.gs)(3)
|
|
70
70
|
},
|
|
71
71
|
"data-testid": "".concat(testId, "-unresolved-description")
|
package/dist/es2019/version.json
CHANGED
|
@@ -14,7 +14,8 @@ export const ExpandedFrame = ({
|
|
|
14
14
|
minWidth,
|
|
15
15
|
maxWidth,
|
|
16
16
|
testId = 'expanded-frame',
|
|
17
|
-
inheritDimensions
|
|
17
|
+
inheritDimensions,
|
|
18
|
+
allowScrollBar = false
|
|
18
19
|
}) => {
|
|
19
20
|
const isInteractive = () => !isPlaceholder && (Boolean(href) || Boolean(onClick));
|
|
20
21
|
|
|
@@ -32,6 +33,8 @@ export const ExpandedFrame = ({
|
|
|
32
33
|
}, text)));
|
|
33
34
|
|
|
34
35
|
const renderContent = () => /*#__PURE__*/React.createElement(Content, {
|
|
36
|
+
"data-testid": "embed-content-wrapper",
|
|
37
|
+
allowScrollBar: allowScrollBar,
|
|
35
38
|
isInteractive: isInteractive()
|
|
36
39
|
}, children);
|
|
37
40
|
|
|
@@ -196,7 +196,6 @@ export const Content = styled.div`
|
|
|
196
196
|
z-index: 1;
|
|
197
197
|
width: 100%;
|
|
198
198
|
top: ${gridSize(4)};
|
|
199
|
-
overflow: hidden;
|
|
200
199
|
height: calc(100% - ${gridSize(4)});
|
|
201
200
|
transition: box-shadow 0.3s;
|
|
202
201
|
|
|
@@ -224,6 +223,10 @@ export const Content = styled.div`
|
|
|
224
223
|
return '';
|
|
225
224
|
}
|
|
226
225
|
}};
|
|
226
|
+
|
|
227
|
+
${({
|
|
228
|
+
allowScrollBar
|
|
229
|
+
}) => allowScrollBar ? 'overflow: auto;' : 'overflow: hidden;'}
|
|
227
230
|
`;
|
|
228
231
|
export const Image = styled.img`
|
|
229
232
|
${({
|
|
@@ -55,7 +55,8 @@ export const EmbedCardForbiddenView = ({
|
|
|
55
55
|
isSelected: isSelected,
|
|
56
56
|
inheritDimensions: inheritDimensions,
|
|
57
57
|
onClick: onClick,
|
|
58
|
-
testId: testId
|
|
58
|
+
testId: testId,
|
|
59
|
+
allowScrollBar: true
|
|
59
60
|
}, /*#__PURE__*/React.createElement(EmbedCardUnresolvedView, {
|
|
60
61
|
image: LockImage,
|
|
61
62
|
title: "invalid_permissions",
|
|
@@ -22,7 +22,8 @@ export const EmbedCardNotFoundView = ({
|
|
|
22
22
|
isSelected: isSelected,
|
|
23
23
|
inheritDimensions: inheritDimensions,
|
|
24
24
|
onClick: onClick,
|
|
25
|
-
testId: testId
|
|
25
|
+
testId: testId,
|
|
26
|
+
allowScrollBar: true
|
|
26
27
|
}, /*#__PURE__*/React.createElement(EmbedCardUnresolvedView, {
|
|
27
28
|
image: NotFoundImage,
|
|
28
29
|
title: "not_found_title",
|
|
@@ -29,7 +29,8 @@ export const EmbedCardUnauthorisedView = ({
|
|
|
29
29
|
isSelected: isSelected,
|
|
30
30
|
inheritDimensions: inheritDimensions,
|
|
31
31
|
onClick: onClick,
|
|
32
|
-
testId: testId
|
|
32
|
+
testId: testId,
|
|
33
|
+
allowScrollBar: true
|
|
33
34
|
}, /*#__PURE__*/React.createElement(EmbedCardUnresolvedView, {
|
|
34
35
|
image: (_context$image = context === null || context === void 0 ? void 0 : context.image) !== null && _context$image !== void 0 ? _context$image : UnauthorisedImage,
|
|
35
36
|
title: "connect_link_account_card_name",
|
|
@@ -38,7 +38,7 @@ export const EmbedCardUnresolvedView = ({
|
|
|
38
38
|
css: {
|
|
39
39
|
fontSize: gridSize(2.5),
|
|
40
40
|
marginBottom: gridSize(1.5),
|
|
41
|
-
|
|
41
|
+
maxWidth: gridSize(50),
|
|
42
42
|
textAlign: 'center'
|
|
43
43
|
},
|
|
44
44
|
"data-testid": `${testId}-unresolved-title`
|
|
@@ -51,7 +51,7 @@ export const EmbedCardUnresolvedView = ({
|
|
|
51
51
|
fontSize: fontSize(),
|
|
52
52
|
marginBottom: gridSize(2.5),
|
|
53
53
|
textAlign: 'center',
|
|
54
|
-
|
|
54
|
+
maxWidth: gridSize(50),
|
|
55
55
|
lineHeight: gridSize(3)
|
|
56
56
|
},
|
|
57
57
|
"data-testid": `${testId}-unresolved-description`
|
package/dist/esm/version.json
CHANGED
|
@@ -16,7 +16,9 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
16
16
|
maxWidth = _ref.maxWidth,
|
|
17
17
|
_ref$testId = _ref.testId,
|
|
18
18
|
testId = _ref$testId === void 0 ? 'expanded-frame' : _ref$testId,
|
|
19
|
-
inheritDimensions = _ref.inheritDimensions
|
|
19
|
+
inheritDimensions = _ref.inheritDimensions,
|
|
20
|
+
_ref$allowScrollBar = _ref.allowScrollBar,
|
|
21
|
+
allowScrollBar = _ref$allowScrollBar === void 0 ? false : _ref$allowScrollBar;
|
|
20
22
|
|
|
21
23
|
var isInteractive = function isInteractive() {
|
|
22
24
|
return !isPlaceholder && (Boolean(href) || Boolean(onClick));
|
|
@@ -41,6 +43,8 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
41
43
|
|
|
42
44
|
var renderContent = function renderContent() {
|
|
43
45
|
return /*#__PURE__*/React.createElement(Content, {
|
|
46
|
+
"data-testid": "embed-content-wrapper",
|
|
47
|
+
allowScrollBar: allowScrollBar,
|
|
44
48
|
isInteractive: isInteractive()
|
|
45
49
|
}, children);
|
|
46
50
|
};
|
|
@@ -99,7 +99,7 @@ export var TextWrapper = styled.div(_templateObject5 || (_templateObject5 = _tag
|
|
|
99
99
|
// NB: `overflow` is kept as `hidden` since
|
|
100
100
|
// the internal contents of the `iframe` should
|
|
101
101
|
// manage scrolling behaviour.
|
|
102
|
-
export var Content = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", "\n ", "\n background-color: ", ";\n position: absolute;\n z-index: 1;\n width: 100%;\n top: ", ";\n
|
|
102
|
+
export var Content = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", "\n ", "\n background-color: ", ";\n position: absolute;\n z-index: 1;\n width: 100%;\n top: ", ";\n height: calc(100% - ", ");\n transition: box-shadow 0.3s;\n\n > .calc-height > div > div {\n left: unset !important;\n width: unset !important;\n height: unset !important;\n position: initial !important;\n padding-bottom: unset !important;\n }\n > .embed-preview > div {\n margin: 0 auto;\n }\n\n ", ";\n\n ", "\n"])), borderRadius, cardShadow, token('elevation.surface.raised', 'white'), gridSize(4), gridSize(4), function (_ref9) {
|
|
103
103
|
var isInteractive = _ref9.isInteractive;
|
|
104
104
|
|
|
105
105
|
if (isInteractive) {
|
|
@@ -107,9 +107,12 @@ export var Content = styled.div(_templateObject6 || (_templateObject6 = _taggedT
|
|
|
107
107
|
} else {
|
|
108
108
|
return '';
|
|
109
109
|
}
|
|
110
|
+
}, function (_ref10) {
|
|
111
|
+
var allowScrollBar = _ref10.allowScrollBar;
|
|
112
|
+
return allowScrollBar ? 'overflow: auto;' : 'overflow: hidden;';
|
|
110
113
|
});
|
|
111
|
-
export var Image = styled.img(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n ", "\n ", "\n\n /* hide the alt text when the image cannot be found */\n overflow: hidden;\n"])), function (
|
|
112
|
-
var size =
|
|
114
|
+
export var Image = styled.img(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n ", "\n ", "\n\n /* hide the alt text when the image cannot be found */\n overflow: hidden;\n"])), function (_ref11) {
|
|
115
|
+
var size = _ref11.size;
|
|
113
116
|
return csssize(size);
|
|
114
117
|
}, borderRadius);
|
|
115
118
|
export var maxAvatarCount = 6;
|
|
@@ -118,8 +121,8 @@ export var Title = styled.div(_templateObject9 || (_templateObject9 = _taggedTem
|
|
|
118
121
|
export var Byline = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-top: 4px;\n color: ", ";\n font-size: 12px;\n font-weight: normal;\n line-height: ", ";\n ", ";\n"])), token('color.text.subtlest', colors.N300), 16 / 12, ellipsis('100%'));
|
|
119
122
|
export var Description = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-top: 7px;\n color: ", ";\n font-size: 12px;\n font-weight: normal;\n line-height: ", ";\n max-height: ", "px;\n overflow: hidden;\n"])), token('color.text', colors.N800), 18 / 12, 18 * 3);
|
|
120
123
|
export var ResolvedViewIconWrapper = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-top: 4px;\n"])));
|
|
121
|
-
export var Thumbnail = styled.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n ", "\n ", "\n float: right;\n margin: 4px 0 12px 12px;\n background-color: ", ";\n background-image: url(", ");\n background-size: cover;\n"])), borderRadius, csssize(48), token('color.skeleton', colors.N30), function (
|
|
122
|
-
var src =
|
|
124
|
+
export var Thumbnail = styled.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n ", "\n ", "\n float: right;\n margin: 4px 0 12px 12px;\n background-color: ", ";\n background-image: url(", ");\n background-size: cover;\n"])), borderRadius, csssize(48), token('color.skeleton', colors.N30), function (_ref12) {
|
|
125
|
+
var src = _ref12.src;
|
|
123
126
|
return src;
|
|
124
127
|
});
|
|
125
128
|
export var UsersWrapper = styled.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-top: 8px;\n"])));
|
|
@@ -54,7 +54,8 @@ export var EmbedCardForbiddenView = function EmbedCardForbiddenView(_ref) {
|
|
|
54
54
|
isSelected: isSelected,
|
|
55
55
|
inheritDimensions: inheritDimensions,
|
|
56
56
|
onClick: onClick,
|
|
57
|
-
testId: testId
|
|
57
|
+
testId: testId,
|
|
58
|
+
allowScrollBar: true
|
|
58
59
|
}, /*#__PURE__*/React.createElement(EmbedCardUnresolvedView, {
|
|
59
60
|
image: LockImage,
|
|
60
61
|
title: "invalid_permissions",
|
|
@@ -22,7 +22,8 @@ export var EmbedCardNotFoundView = function EmbedCardNotFoundView(_ref) {
|
|
|
22
22
|
isSelected: isSelected,
|
|
23
23
|
inheritDimensions: inheritDimensions,
|
|
24
24
|
onClick: onClick,
|
|
25
|
-
testId: testId
|
|
25
|
+
testId: testId,
|
|
26
|
+
allowScrollBar: true
|
|
26
27
|
}, /*#__PURE__*/React.createElement(EmbedCardUnresolvedView, {
|
|
27
28
|
image: NotFoundImage,
|
|
28
29
|
title: "not_found_title",
|
|
@@ -29,7 +29,8 @@ export var EmbedCardUnauthorisedView = function EmbedCardUnauthorisedView(_ref)
|
|
|
29
29
|
isSelected: isSelected,
|
|
30
30
|
inheritDimensions: inheritDimensions,
|
|
31
31
|
onClick: onClick,
|
|
32
|
-
testId: testId
|
|
32
|
+
testId: testId,
|
|
33
|
+
allowScrollBar: true
|
|
33
34
|
}, /*#__PURE__*/React.createElement(EmbedCardUnresolvedView, {
|
|
34
35
|
image: (_context$image = context === null || context === void 0 ? void 0 : context.image) !== null && _context$image !== void 0 ? _context$image : UnauthorisedImage,
|
|
35
36
|
title: "connect_link_account_card_name",
|
|
@@ -37,7 +37,7 @@ export var EmbedCardUnresolvedView = function EmbedCardUnresolvedView(_ref) {
|
|
|
37
37
|
css: {
|
|
38
38
|
fontSize: gridSize(2.5),
|
|
39
39
|
marginBottom: gridSize(1.5),
|
|
40
|
-
|
|
40
|
+
maxWidth: gridSize(50),
|
|
41
41
|
textAlign: 'center'
|
|
42
42
|
},
|
|
43
43
|
"data-testid": "".concat(testId, "-unresolved-title")
|
|
@@ -50,7 +50,7 @@ export var EmbedCardUnresolvedView = function EmbedCardUnresolvedView(_ref) {
|
|
|
50
50
|
fontSize: fontSize(),
|
|
51
51
|
marginBottom: gridSize(2.5),
|
|
52
52
|
textAlign: 'center',
|
|
53
|
-
|
|
53
|
+
maxWidth: gridSize(50),
|
|
54
54
|
lineHeight: gridSize(3)
|
|
55
55
|
},
|
|
56
56
|
"data-testid": "".concat(testId, "-unresolved-description")
|
|
@@ -19,5 +19,7 @@ export interface ExpandedFrameProps {
|
|
|
19
19
|
testId?: string;
|
|
20
20
|
/** If dimensions of the card are to be inherited from the parent */
|
|
21
21
|
inheritDimensions?: boolean;
|
|
22
|
+
/** To enable scrolling in use cases where the content will not have it's own scrollbar */
|
|
23
|
+
allowScrollBar?: boolean;
|
|
22
24
|
}
|
|
23
25
|
export declare const ExpandedFrame: FC<ExpandedFrameProps>;
|
|
@@ -24,6 +24,7 @@ export declare const IconWrapper: import("@emotion/styled-base").StyledComponent
|
|
|
24
24
|
export declare const TextWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PlaceholderProps, object>;
|
|
25
25
|
export interface ContentProps {
|
|
26
26
|
isInteractive: boolean;
|
|
27
|
+
allowScrollBar: boolean;
|
|
27
28
|
}
|
|
28
29
|
export declare const Content: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContentProps, object>;
|
|
29
30
|
export interface ImageProps {
|