@atlaskit/smart-card 26.48.8 → 26.49.0
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/__tests_external__/page-objects/BaseCard.js +1 -1
- package/dist/cjs/__tests_external__/page-objects/BlockCard.js +1 -1
- package/dist/cjs/__tests_external__/page-objects/EmbedCard.js +1 -1
- package/dist/cjs/__tests_external__/page-objects/InlineCard.js +1 -1
- package/dist/cjs/ssr.js +2 -2
- package/dist/cjs/state/hooks/use-invoke-client-action/index.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/flexible.js +2 -2
- package/dist/cjs/utils/index.js +2 -2
- package/dist/cjs/utils/mocks.js +1 -1
- package/dist/cjs/view/BlockCard/components/ActionList.js +2 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleErroredView.js +2 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleForbiddenView.js +2 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleNotFoundView.js +2 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +2 -2
- package/dist/cjs/view/Card/index.js +1 -1
- package/dist/cjs/view/CardWithData/component.js +1 -1
- package/dist/cjs/view/CardWithData/loader.js +3 -3
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +2 -2
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +2 -2
- package/dist/cjs/view/CardWithUrl/component.js +2 -2
- package/dist/cjs/view/CardWithUrl/loader.js +2 -2
- package/dist/cjs/view/EmbedCard/EmbedResizeMessageListener.js +1 -1
- package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +22 -3
- package/dist/cjs/view/EmbedCard/components/Frame.js +2 -2
- package/dist/cjs/view/EmbedCard/components/styled.js +103 -23
- package/dist/cjs/view/EmbedCard/views/forbidden-view/index.js +2 -2
- package/dist/cjs/view/EmbedCard/views/not-found-view/index.js +2 -2
- package/dist/cjs/view/EmbedCard/views/unauthorized-view/index.js +2 -2
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +2 -2
- package/dist/cjs/view/EmbedModal/components/analytics/index.js +2 -2
- package/dist/cjs/view/EmbedModal/components/error-boundary/index.js +2 -2
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +2 -2
- package/dist/cjs/view/EmbedModal/index.js +2 -2
- package/dist/cjs/view/EmbedModal/utils.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/utils.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +2 -5
- package/dist/cjs/view/FlexibleCard/components/container/hover-card-control/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/container/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/error-boundary/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/preview/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +2 -2
- package/dist/cjs/view/FlexibleCard/index.js +2 -2
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +2 -2
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +2 -2
- package/dist/cjs/view/HoverCard/components/ImagePreview.js +2 -2
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +2 -2
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +2 -2
- package/dist/cjs/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/cjs/view/InlineCard/Frame/index.js +2 -2
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +1 -1
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +1 -1
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +1 -1
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/cjs/view/InlineCard/index.js +2 -2
- package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/LinkView/index.js +1 -1
- package/dist/cjs/view/common/UnauthorisedViewContent.js +2 -2
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +2 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +21 -4
- package/dist/es2019/view/EmbedCard/components/styled.js +99 -111
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -3
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests_external__/page-objects/BaseCard.js +1 -1
- package/dist/esm/__tests_external__/page-objects/BlockCard.js +1 -1
- package/dist/esm/__tests_external__/page-objects/EmbedCard.js +1 -1
- package/dist/esm/__tests_external__/page-objects/InlineCard.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/mocks.js +1 -1
- package/dist/esm/view/Card/index.js +1 -1
- package/dist/esm/view/CardWithData/component.js +1 -1
- package/dist/esm/view/CardWithData/loader.js +1 -1
- package/dist/esm/view/EmbedCard/EmbedResizeMessageListener.js +1 -1
- package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +23 -4
- package/dist/esm/view/EmbedCard/components/styled.js +100 -20
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -3
- package/dist/esm/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +1 -1
- package/dist/esm/view/InlineCard/ResolvedView/index.js +1 -1
- package/dist/esm/view/InlineCard/ResolvingView/index.js +1 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/LinkView/index.js +1 -1
- package/dist/types/view/EmbedCard/components/styled.d.ts +5 -1
- package/dist/types-ts4.5/view/EmbedCard/components/styled.d.ts +5 -1
- package/package.json +4 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2
|
|
2
|
+
var _templateObject, _templateObject2;
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import { fontFamily } from '@atlaskit/theme/constants';
|
|
5
5
|
import * as colors from '@atlaskit/theme/colors';
|
|
@@ -66,39 +66,63 @@ function visible(_ref7) {
|
|
|
66
66
|
var frameStyle = _ref7.frameStyle;
|
|
67
67
|
return frameStyle === 'show' ? visibleStyles : '';
|
|
68
68
|
}
|
|
69
|
+
|
|
70
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
|
|
69
71
|
export var LinkWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", " &:hover {\n text-decoration: none;\n }\n"])), function (props) {
|
|
70
72
|
return wrapperStyles(props);
|
|
71
73
|
});
|
|
72
74
|
|
|
73
75
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
74
|
-
export var Wrapper = styled.div(
|
|
76
|
+
export var Wrapper = styled.div(function (props) {
|
|
75
77
|
return wrapperStyles(props);
|
|
78
|
+
}, {
|
|
79
|
+
marginTop: '10px'
|
|
76
80
|
});
|
|
77
81
|
export var embedHeaderHeight = 32;
|
|
78
|
-
export var Header = styled.div(
|
|
82
|
+
export var Header = styled.div({
|
|
83
|
+
height: "".concat(embedHeaderHeight, "px"),
|
|
84
|
+
position: 'absolute',
|
|
85
|
+
zIndex: 1,
|
|
86
|
+
width: '100%',
|
|
87
|
+
display: 'flex',
|
|
88
|
+
alignItems: 'center',
|
|
89
|
+
color: "var(--ds-icon, ".concat(colors.N300, ")"),
|
|
90
|
+
opacity: 0,
|
|
91
|
+
transition: '300ms opacity cubic-bezier(0.15, 1, 0.3, 1)'
|
|
92
|
+
}, function (_ref8) {
|
|
79
93
|
var frameStyle = _ref8.frameStyle;
|
|
80
94
|
return getBooleanFF('platform.editor.show-embed-card-frame-renderer') && frameStyle === 'show' ? "\n box-sizing: border-box;\n padding: 0 ".concat("var(--ds-space-100, 8px)", ";\n ") : '';
|
|
81
95
|
});
|
|
82
|
-
export var IconWrapper = styled.div(
|
|
96
|
+
export var IconWrapper = styled.div(borderRadius, csssize(16), function (_ref9) {
|
|
83
97
|
var isPlaceholder = _ref9.isPlaceholder;
|
|
84
98
|
if (isPlaceholder) {
|
|
85
99
|
return "\n background-color: ".concat("var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
|
|
86
100
|
} else {
|
|
87
101
|
return '';
|
|
88
102
|
}
|
|
103
|
+
}, {
|
|
104
|
+
marginRight: "var(--ds-space-050, 4px)"
|
|
89
105
|
});
|
|
90
|
-
export var TextWrapper = styled.div(
|
|
106
|
+
export var TextWrapper = styled.div(function (_ref10) {
|
|
91
107
|
var isPlaceholder = _ref10.isPlaceholder;
|
|
92
108
|
if (isPlaceholder) {
|
|
93
109
|
return "\n ".concat(borderRadius, "\n width: 125px;\n height: 12px;\n background-color: ", "var(--ds-skeleton, ".concat(colors.N30, ")"), ";\n ");
|
|
94
110
|
} else {
|
|
95
111
|
return '';
|
|
96
112
|
}
|
|
97
|
-
},
|
|
113
|
+
}, {
|
|
114
|
+
color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
|
|
115
|
+
fontSize: '12px',
|
|
116
|
+
lineHeight: '16px'
|
|
117
|
+
}, ellipsis('none'));
|
|
118
|
+
export var TooltipWrapper = styled.div({
|
|
119
|
+
overflow: 'hidden'
|
|
120
|
+
});
|
|
98
121
|
// NB: `overflow` is kept as `hidden` since
|
|
99
122
|
// the internal contents of the `iframe` should
|
|
100
123
|
// manage scrolling behaviour.
|
|
101
|
-
|
|
124
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
|
|
125
|
+
export var Content = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n border: 1px solid ", ";\n background-color: ", ";\n position: absolute;\n z-index: 1;\n width: 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\n ", "\n"])), contentBorderRadius, "var(--ds-border, ".concat(N40, ")"), "var(--ds-surface-raised, white)", function (_ref11) {
|
|
102
126
|
var allowScrollBar = _ref11.allowScrollBar;
|
|
103
127
|
return allowScrollBar ? 'overflow: auto;' : 'overflow: hidden;';
|
|
104
128
|
}, function (_ref12) {
|
|
@@ -108,22 +132,78 @@ export var Content = styled.div(_templateObject6 || (_templateObject6 = _taggedT
|
|
|
108
132
|
var frameStyle = _ref13.frameStyle;
|
|
109
133
|
return frameStyle === 'hide' ? 'height: 100%;' : "\n height: calc(100% - ".concat("var(--ds-space-400, 32px)", ");\n top: ", "var(--ds-space-400, 32px)", ";\n ");
|
|
110
134
|
});
|
|
111
|
-
export var Image = styled.img(
|
|
135
|
+
export var Image = styled.img(function (_ref14) {
|
|
112
136
|
var size = _ref14.size;
|
|
113
137
|
return csssize(size);
|
|
114
|
-
}, borderRadius
|
|
138
|
+
}, borderRadius, {
|
|
139
|
+
overflow: 'hidden'
|
|
140
|
+
});
|
|
115
141
|
export var maxAvatarCount = 6;
|
|
116
|
-
export var ContentWrapper = styled.div(
|
|
117
|
-
|
|
118
|
-
|
|
142
|
+
export var ContentWrapper = styled.div({
|
|
143
|
+
display: 'flex',
|
|
144
|
+
flexDirection: 'row',
|
|
145
|
+
boxSizing: 'border-box',
|
|
146
|
+
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)")
|
|
147
|
+
});
|
|
148
|
+
export var Title = styled.div({
|
|
149
|
+
color: "var(--ds-text, ".concat(colors.N900, ")"),
|
|
150
|
+
fontSize: '16px',
|
|
151
|
+
fontWeight: 500,
|
|
152
|
+
lineHeight: 20 / 16,
|
|
153
|
+
maxHeight: "".concat(20 * 4, "px"),
|
|
154
|
+
overflow: 'hidden'
|
|
155
|
+
});
|
|
156
|
+
export var Byline = styled.div({
|
|
157
|
+
marginTop: "var(--ds-space-050, 4px)",
|
|
158
|
+
color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
|
|
159
|
+
fontSize: '12px',
|
|
160
|
+
fontWeight: 'normal',
|
|
161
|
+
lineHeight: 16 / 12
|
|
162
|
+
}, ellipsis('100%'));
|
|
119
163
|
|
|
120
164
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
121
|
-
export var Description = styled.div(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
165
|
+
export var Description = styled.div({
|
|
166
|
+
marginTop: '7px',
|
|
167
|
+
color: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
168
|
+
fontSize: '12px',
|
|
169
|
+
fontWeight: 'normal',
|
|
170
|
+
lineHeight: 18 / 12,
|
|
171
|
+
maxHeight: "".concat(18 * 3, "px"),
|
|
172
|
+
overflow: 'hidden'
|
|
173
|
+
});
|
|
174
|
+
export var ResolvedViewIconWrapper = styled.div({
|
|
175
|
+
marginTop: "var(--ds-space-050, 4px)"
|
|
176
|
+
});
|
|
177
|
+
export var Thumbnail = styled.div(borderRadius, csssize(48), {
|
|
178
|
+
float: 'right',
|
|
179
|
+
margin: "var(--ds-space-050, 4px)".concat(" 0 ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)"),
|
|
180
|
+
backgroundColor: "var(--ds-skeleton, ".concat(colors.N30, ")"),
|
|
181
|
+
backgroundImage: "url(".concat(function (_ref15) {
|
|
182
|
+
var src = _ref15.src;
|
|
183
|
+
return src;
|
|
184
|
+
}, ")"),
|
|
185
|
+
backgroundSize: 'cover'
|
|
186
|
+
});
|
|
187
|
+
export var UsersWrapper = styled.div({
|
|
188
|
+
marginTop: "var(--ds-space-100, 8px)"
|
|
189
|
+
});
|
|
190
|
+
export var ActionsWrapper = styled.div({
|
|
191
|
+
marginTop: "var(--ds-space-100, 8px)",
|
|
192
|
+
textAlign: 'right',
|
|
193
|
+
'> *': {
|
|
194
|
+
marginTop: "var(--ds-space-050, 4px)"
|
|
195
|
+
},
|
|
196
|
+
'> * + *': {
|
|
197
|
+
marginLeft: "var(--ds-space-050, 4px)"
|
|
198
|
+
}
|
|
126
199
|
});
|
|
127
|
-
export var
|
|
128
|
-
|
|
129
|
-
|
|
200
|
+
export var AlertWrapper = styled.div({
|
|
201
|
+
position: 'absolute',
|
|
202
|
+
top: 0,
|
|
203
|
+
right: 0,
|
|
204
|
+
bottom: 0,
|
|
205
|
+
left: 0,
|
|
206
|
+
overflow: 'hidden',
|
|
207
|
+
pointerEvents: 'none',
|
|
208
|
+
zIndex: maxAvatarCount + 1
|
|
209
|
+
});
|
|
@@ -155,7 +155,6 @@ var importIcon = function importIcon(importFn) {
|
|
|
155
155
|
}
|
|
156
156
|
}); // Because we're using dynamic loading here, TS will not be able to infer the type.
|
|
157
157
|
};
|
|
158
|
-
|
|
159
158
|
var AtlaskitIcon = function AtlaskitIcon(_ref3) {
|
|
160
159
|
var icon = _ref3.icon,
|
|
161
160
|
label = _ref3.label,
|
|
@@ -189,7 +188,6 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
|
|
|
189
188
|
iconGradientStop: B200
|
|
190
189
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
191
190
|
});
|
|
192
|
-
|
|
193
191
|
case IconType.Jira:
|
|
194
192
|
// Logo component has a different prop set from other icon components
|
|
195
193
|
return /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
@@ -201,7 +199,6 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
|
|
|
201
199
|
iconGradientStop: B200
|
|
202
200
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
203
201
|
});
|
|
204
|
-
|
|
205
202
|
case IconType.Error:
|
|
206
203
|
case IconType.Forbidden:
|
|
207
204
|
return /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { R300 } from '@atlaskit/theme/colors';
|
|
12
12
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
-
function _isNativeReflectConstruct() {
|
|
10
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { R400, N500 } from '@atlaskit/theme/colors';
|
|
13
13
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import ImageLoader from 'react-render-image';
|
|
12
12
|
import { Icon, Shimmer } from '../Icon';
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { Frame } from '../Frame';
|
|
10
10
|
import Lozenge from '@atlaskit/lozenge';
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { Frame } from '../Frame';
|
|
10
10
|
import Spinner from '@atlaskit/spinner';
|
|
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
-
function _isNativeReflectConstruct() {
|
|
10
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
12
12
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
13
13
|
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
@@ -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: "26.
|
|
13
|
+
packageVersion: "26.49.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
|
-
function _isNativeReflectConstruct() {
|
|
8
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { Frame } from '../InlineCard/Frame';
|
|
11
11
|
export var CardLinkView = /*#__PURE__*/function (_React$PureComponent) {
|
|
@@ -39,6 +39,10 @@ export declare const TextWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
39
39
|
theme?: import("@emotion/react").Theme | undefined;
|
|
40
40
|
as?: import("react").ElementType<any> | undefined;
|
|
41
41
|
} & PlaceholderProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
42
|
+
export declare const TooltipWrapper: import("@emotion/styled").StyledComponent<{
|
|
43
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
44
|
+
as?: import("react").ElementType<any> | undefined;
|
|
45
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
42
46
|
export interface ContentProps {
|
|
43
47
|
isInteractive: boolean;
|
|
44
48
|
allowScrollBar: boolean;
|
|
@@ -82,7 +86,7 @@ export interface ThumbnailProps {
|
|
|
82
86
|
export declare const Thumbnail: import("@emotion/styled").StyledComponent<{
|
|
83
87
|
theme?: import("@emotion/react").Theme | undefined;
|
|
84
88
|
as?: import("react").ElementType<any> | undefined;
|
|
85
|
-
}
|
|
89
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
86
90
|
export declare const UsersWrapper: import("@emotion/styled").StyledComponent<{
|
|
87
91
|
theme?: import("@emotion/react").Theme | undefined;
|
|
88
92
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -39,6 +39,10 @@ export declare const TextWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
39
39
|
theme?: import("@emotion/react").Theme | undefined;
|
|
40
40
|
as?: import("react").ElementType<any> | undefined;
|
|
41
41
|
} & PlaceholderProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
42
|
+
export declare const TooltipWrapper: import("@emotion/styled").StyledComponent<{
|
|
43
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
44
|
+
as?: import("react").ElementType<any> | undefined;
|
|
45
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
42
46
|
export interface ContentProps {
|
|
43
47
|
isInteractive: boolean;
|
|
44
48
|
allowScrollBar: boolean;
|
|
@@ -82,7 +86,7 @@ export interface ThumbnailProps {
|
|
|
82
86
|
export declare const Thumbnail: import("@emotion/styled").StyledComponent<{
|
|
83
87
|
theme?: import("@emotion/react").Theme | undefined;
|
|
84
88
|
as?: import("react").ElementType<any> | undefined;
|
|
85
|
-
}
|
|
89
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
86
90
|
export declare const UsersWrapper: import("@emotion/styled").StyledComponent<{
|
|
87
91
|
theme?: import("@emotion/react").Theme | undefined;
|
|
88
92
|
as?: import("react").ElementType<any> | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.49.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -163,6 +163,9 @@
|
|
|
163
163
|
},
|
|
164
164
|
"platform.linking-platform.smart-card.fix-intersection-observer": {
|
|
165
165
|
"type": "boolean"
|
|
166
|
+
},
|
|
167
|
+
"platform.linking-platform.smart-card.embed-card-header-tooltip": {
|
|
168
|
+
"type": "boolean"
|
|
166
169
|
}
|
|
167
170
|
},
|
|
168
171
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|