@atlaskit/smart-card 26.27.0 → 26.27.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 +6 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/styled.js +1 -1
- package/dist/cjs/view/EmbedCard/components/styled.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RedesignedInlineCard/Frame/styled.js +3 -3
- package/dist/cjs/view/RedesignedInlineCard/utils/withFrameStyleControl.js +2 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/flexible/styled.js +1 -1
- package/dist/es2019/view/EmbedCard/components/styled.js +2 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RedesignedInlineCard/Frame/styled.js +3 -3
- package/dist/es2019/view/RedesignedInlineCard/utils/withFrameStyleControl.js +2 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/flexible/styled.js +1 -1
- package/dist/esm/view/EmbedCard/components/styled.js +2 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RedesignedInlineCard/Frame/styled.js +3 -3
- package/dist/esm/view/RedesignedInlineCard/utils/withFrameStyleControl.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -23,7 +23,7 @@ exports.ANALYTICS_CHANNEL = ANALYTICS_CHANNEL;
|
|
|
23
23
|
var context = {
|
|
24
24
|
componentName: 'smart-cards',
|
|
25
25
|
packageName: "@atlaskit/smart-card",
|
|
26
|
-
packageVersion: "26.27.
|
|
26
|
+
packageVersion: "26.27.1"
|
|
27
27
|
};
|
|
28
28
|
exports.context = context;
|
|
29
29
|
var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
@@ -19,6 +19,6 @@ exports.titleBlockCss = titleBlockCss;
|
|
|
19
19
|
var footerBlockCss = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n height: 1.5rem;\n\n .actions-button-group {\n button,\n button:hover,\n button:focus,\n button:active {\n font-size: 0.875rem;\n }\n }\n"])));
|
|
20
20
|
exports.footerBlockCss = footerBlockCss;
|
|
21
21
|
var flexibleBlockCardElevationStyle = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 1.5px;\n box-shadow: ", ";\n margin: ", ";\n"])), _token.tokens.elevation, "var(--ds-space-025, 2px)");
|
|
22
|
-
var refreshedFlexibleBlockCardStyle = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n & > div {\n border-radius: ", ";\n border: 1px solid ", ";\n }\n"])), "var(--ds-border-radius-200, 8px)", "var(--ds-border
|
|
22
|
+
var refreshedFlexibleBlockCardStyle = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n & > div {\n border-radius: ", ";\n border: 1px solid ", ";\n }\n"])), "var(--ds-border-radius-200, 8px)", "var(--ds-border, ".concat(_colors.N40, ")"));
|
|
23
23
|
var flexibleBlockCardStyle = (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? refreshedFlexibleBlockCardStyle : flexibleBlockCardElevationStyle;
|
|
24
24
|
exports.flexibleBlockCardStyle = flexibleBlockCardStyle;
|
|
@@ -68,7 +68,7 @@ var height = function height(_ref5) {
|
|
|
68
68
|
var wrapperStyles = function wrapperStyles(props) {
|
|
69
69
|
return "\n ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? wrapperBorderRadius : borderRadius, "\n ").concat(minWidth(props), "\n ").concat(maxWidth(props), "\n ").concat(getInteractiveStyles(props), "\n ").concat(visible(props), "\n display: inline-flex;\n flex-direction: column;\n box-sizing: border-box;\n font-family: ").concat((0, _constants.fontFamily)(), ";\n width: 100%;\n user-select: none;\n line-height: initial;\n transition: background 0.3s;\n position: relative;\n ").concat(height(props), ";\n ").concat(selected(props), "\n\n &:after {\n content: '';\n transition: background 0.3s, box-shadow 0.3s;\n position: absolute;\n width: calc(100% + ", "var(--ds-space-200, 16px)", ");\n height: calc(100% + ", "var(--ds-space-100, 8px)", ");\n left: ", "var(--ds-space-negative-100, -8px)", ";\n ").concat((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? wrapperBorderRadius : "background: transparent;\n ".concat(borderRadius), "\n }\n");
|
|
70
70
|
};
|
|
71
|
-
var visibleStyles = "\n ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "" : "background-color: ".concat("var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), ";"), "\n\n &:after {\n ").concat((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "border: 1px solid ".concat("var(--ds-border
|
|
71
|
+
var visibleStyles = "\n ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "" : "background-color: ".concat("var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), ";"), "\n\n &:after {\n ").concat((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "border: 1px solid ".concat("var(--ds-border, ".concat(colors.N40, ")"), ";\n background-color: ", (0, _components.themed)({
|
|
72
72
|
light: "var(--ds-surface-raised, white)",
|
|
73
73
|
dark: "var(--ds-surface-raised, ".concat(BACKGROUND_COLOR_DARK, ")")
|
|
74
74
|
})(), ";") : "background: ".concat("var(--ds-background-neutral, ".concat(colors.N30, ")"), " !important;"), "\n }\n .embed-header {\n opacity: 1;\n }");
|
|
@@ -111,7 +111,7 @@ exports.TextWrapper = TextWrapper;
|
|
|
111
111
|
// NB: `overflow` is kept as `hidden` since
|
|
112
112
|
// the internal contents of the `iframe` should
|
|
113
113
|
// manage scrolling behaviour.
|
|
114
|
-
var Content = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n ", "\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"])), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "".concat(contentBorderRadius, ";\n border: 1px solid ", "var(--ds-border
|
|
114
|
+
var Content = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n ", "\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"])), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "".concat(contentBorderRadius, ";\n border: 1px solid ", "var(--ds-border, ".concat(colors.N40, ")"), ";") : borderRadius, "var(--ds-surface-raised, white)", function (_ref9) {
|
|
115
115
|
var isInteractive = _ref9.isInteractive;
|
|
116
116
|
if (isInteractive && !(0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design')) {
|
|
117
117
|
return "\n .".concat(className, ":hover & {\n box-shadow: ", "var(--ds-shadow-overlay, 0 4px 8px -2px rgba(23, 43, 77, 0.32), 0 0 1px rgba(23, 43, 77, 0.25))", ";\n }\n ");
|
|
@@ -18,7 +18,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
18
18
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
19
19
|
var PACKAGE_DATA = {
|
|
20
20
|
packageName: "@atlaskit/smart-card",
|
|
21
|
-
packageVersion: "26.27.
|
|
21
|
+
packageVersion: "26.27.1",
|
|
22
22
|
componentName: 'linkUrl'
|
|
23
23
|
};
|
|
24
24
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -11,7 +11,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
11
11
|
var _components = require("@atlaskit/theme/components");
|
|
12
12
|
var _templateObject, _templateObject2;
|
|
13
13
|
var BACKGROUND_COLOR_DARK = '#262B31';
|
|
14
|
-
var selected = "\n cursor: pointer;\n box-shadow: 0 0 0 2px ".concat("var(--ds-border-selected, ".concat(_colors.B100, ")"), ";\n outline: none;\n user-select: none;\n &, :hover, :focus, :active {\n text-decoration: none;\n }\n &:hover {\n border: 1px solid ", "var(--ds-border
|
|
14
|
+
var selected = "\n cursor: pointer;\n box-shadow: 0 0 0 2px ".concat("var(--ds-border-selected, ".concat(_colors.B100, ")"), ";\n outline: none;\n user-select: none;\n &, :hover, :focus, :active {\n text-decoration: none;\n }\n &:hover {\n border: 1px solid ", "var(--ds-border, ".concat(_colors.N40, ")"), ";\n }\n");
|
|
15
15
|
var isInteractive = function isInteractive(_ref) {
|
|
16
16
|
var isInteractive = _ref.isInteractive;
|
|
17
17
|
if (isInteractive) {
|
|
@@ -55,8 +55,8 @@ var baseWrapperStyle = function baseWrapperStyle(props) {
|
|
|
55
55
|
light: "var(--ds-surface-raised, white)",
|
|
56
56
|
dark: "var(--ds-surface-raised, ".concat(BACKGROUND_COLOR_DARK, ")")
|
|
57
57
|
})(props), ";\n\n ").concat(isSelected(props), ";\n\n ").concat(props.withoutBackground ? '' : (0, _components.themed)({
|
|
58
|
-
light: "border: 1px solid ".concat("var(--ds-border
|
|
59
|
-
dark: "border: 1px solid ".concat("var(--ds-border
|
|
58
|
+
light: "border: 1px solid ".concat("var(--ds-border, ".concat(_colors.N40, ")"), ";"),
|
|
59
|
+
dark: "border: 1px solid ".concat("var(--ds-border, ".concat(_colors.N500, ")"), ";")
|
|
60
60
|
})(props), "\n &:hover {\n ").concat((0, _components.themed)({
|
|
61
61
|
light: "border-color: ".concat("var(--ds-border-accent-blue, ".concat(_colors.B200, ")"), ";"),
|
|
62
62
|
dark: "border-color: ".concat("var(--ds-border-accent-blue, ".concat(_colors.B200, ")"), ";")
|
|
@@ -19,8 +19,8 @@ var _default = function _default(Button, frameRef) {
|
|
|
19
19
|
return function (props) {
|
|
20
20
|
var setBorderStyle = function setBorderStyle() {
|
|
21
21
|
var borderColor = (0, _components.themed)({
|
|
22
|
-
light: "".concat("var(--ds-border
|
|
23
|
-
dark: "".concat("var(--ds-border
|
|
22
|
+
light: "".concat("var(--ds-border, ".concat(_colors.N40, ")")),
|
|
23
|
+
dark: "".concat("var(--ds-border, ".concat(_colors.N500, ")"))
|
|
24
24
|
})();
|
|
25
25
|
var frameNode = frameRef.current;
|
|
26
26
|
if (frameNode) {
|
|
@@ -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: "26.27.
|
|
7
|
+
packageVersion: "26.27.1"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -41,7 +41,7 @@ const flexibleBlockCardElevationStyle = css`
|
|
|
41
41
|
const refreshedFlexibleBlockCardStyle = css`
|
|
42
42
|
& > div {
|
|
43
43
|
border-radius: ${"var(--ds-border-radius-200, 8px)"};
|
|
44
|
-
border: 1px solid ${`var(--ds-border
|
|
44
|
+
border: 1px solid ${`var(--ds-border, ${N40})`};
|
|
45
45
|
}
|
|
46
46
|
`;
|
|
47
47
|
export const flexibleBlockCardStyle = getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? refreshedFlexibleBlockCardStyle : flexibleBlockCardElevationStyle;
|
|
@@ -122,7 +122,7 @@ const visibleStyles = `
|
|
|
122
122
|
${getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? `` : `background-color: ${`var(--ds-background-neutral-subtle, ${colors.N30})`};`}
|
|
123
123
|
|
|
124
124
|
&:after {
|
|
125
|
-
${getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? `border: 1px solid ${`var(--ds-border
|
|
125
|
+
${getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? `border: 1px solid ${`var(--ds-border, ${N40})`};
|
|
126
126
|
background-color: ${themed({
|
|
127
127
|
light: "var(--ds-surface-raised, white)",
|
|
128
128
|
dark: `var(--ds-surface-raised, ${BACKGROUND_COLOR_DARK})`
|
|
@@ -198,7 +198,7 @@ export const TextWrapper = styled.div`
|
|
|
198
198
|
// manage scrolling behaviour.
|
|
199
199
|
export const Content = styled.div`
|
|
200
200
|
${getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? `${contentBorderRadius};
|
|
201
|
-
border: 1px solid ${`var(--ds-border
|
|
201
|
+
border: 1px solid ${`var(--ds-border, ${N40})`};` : borderRadius}
|
|
202
202
|
background-color: ${"var(--ds-surface-raised, white)"};
|
|
203
203
|
position: absolute;
|
|
204
204
|
z-index: 1;
|
|
@@ -8,7 +8,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
8
8
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
const PACKAGE_DATA = {
|
|
10
10
|
packageName: "@atlaskit/smart-card",
|
|
11
|
-
packageVersion: "26.27.
|
|
11
|
+
packageVersion: "26.27.1",
|
|
12
12
|
componentName: 'linkUrl'
|
|
13
13
|
};
|
|
14
14
|
const Link = withLinkClickedEvent('a');
|
|
@@ -11,7 +11,7 @@ const selected = `
|
|
|
11
11
|
text-decoration: none;
|
|
12
12
|
}
|
|
13
13
|
&:hover {
|
|
14
|
-
border: 1px solid ${`var(--ds-border
|
|
14
|
+
border: 1px solid ${`var(--ds-border, ${N40})`};
|
|
15
15
|
}
|
|
16
16
|
`;
|
|
17
17
|
const isInteractive = ({
|
|
@@ -81,8 +81,8 @@ const baseWrapperStyle = props => `
|
|
|
81
81
|
${isSelected(props)};
|
|
82
82
|
|
|
83
83
|
${props.withoutBackground ? '' : themed({
|
|
84
|
-
light: `border: 1px solid ${`var(--ds-border
|
|
85
|
-
dark: `border: 1px solid ${`var(--ds-border
|
|
84
|
+
light: `border: 1px solid ${`var(--ds-border, ${N40})`};`,
|
|
85
|
+
dark: `border: 1px solid ${`var(--ds-border, ${N500})`};`
|
|
86
86
|
})(props)}
|
|
87
87
|
&:hover {
|
|
88
88
|
${themed({
|
|
@@ -12,8 +12,8 @@ import { N500, N40 } from '@atlaskit/theme/colors';
|
|
|
12
12
|
export default ((Button, frameRef) => props => {
|
|
13
13
|
const setBorderStyle = () => {
|
|
14
14
|
const borderColor = themed({
|
|
15
|
-
light: `${`var(--ds-border
|
|
16
|
-
dark: `${`var(--ds-border
|
|
15
|
+
light: `${`var(--ds-border, ${N40})`}`,
|
|
16
|
+
dark: `${`var(--ds-border, ${N500})`}`
|
|
17
17
|
})();
|
|
18
18
|
const frameNode = frameRef.current;
|
|
19
19
|
if (frameNode) {
|
|
@@ -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: "26.27.
|
|
18
|
+
packageVersion: "26.27.1"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -10,5 +10,5 @@ export var metadataBlockCss = css(_templateObject || (_templateObject = _taggedT
|
|
|
10
10
|
export var titleBlockCss = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n ", "\n"])), getBooleanFF('platform.linking-platform.smart-card.enable-better-metadata_iojwg') ? "gap: 0.5em;" : "", getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "[data-smart-element=\"Title\"] {\n font-weight: 600;\n }" : "");
|
|
11
11
|
export var footerBlockCss = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n height: 1.5rem;\n\n .actions-button-group {\n button,\n button:hover,\n button:focus,\n button:active {\n font-size: 0.875rem;\n }\n }\n"])));
|
|
12
12
|
var flexibleBlockCardElevationStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n border-radius: 1.5px;\n box-shadow: ", ";\n margin: ", ";\n"])), tokens.elevation, "var(--ds-space-025, 2px)");
|
|
13
|
-
var refreshedFlexibleBlockCardStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n & > div {\n border-radius: ", ";\n border: 1px solid ", ";\n }\n"])), "var(--ds-border-radius-200, 8px)", "var(--ds-border
|
|
13
|
+
var refreshedFlexibleBlockCardStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n & > div {\n border-radius: ", ";\n border: 1px solid ", ";\n }\n"])), "var(--ds-border-radius-200, 8px)", "var(--ds-border, ".concat(N40, ")"));
|
|
14
14
|
export var flexibleBlockCardStyle = getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? refreshedFlexibleBlockCardStyle : flexibleBlockCardElevationStyle;
|
|
@@ -55,7 +55,7 @@ var height = function height(_ref5) {
|
|
|
55
55
|
var wrapperStyles = function wrapperStyles(props) {
|
|
56
56
|
return "\n ".concat(getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? wrapperBorderRadius : borderRadius, "\n ").concat(minWidth(props), "\n ").concat(maxWidth(props), "\n ").concat(getInteractiveStyles(props), "\n ").concat(visible(props), "\n display: inline-flex;\n flex-direction: column;\n box-sizing: border-box;\n font-family: ").concat(fontFamily(), ";\n width: 100%;\n user-select: none;\n line-height: initial;\n transition: background 0.3s;\n position: relative;\n ").concat(height(props), ";\n ").concat(selected(props), "\n\n &:after {\n content: '';\n transition: background 0.3s, box-shadow 0.3s;\n position: absolute;\n width: calc(100% + ", "var(--ds-space-200, 16px)", ");\n height: calc(100% + ", "var(--ds-space-100, 8px)", ");\n left: ", "var(--ds-space-negative-100, -8px)", ";\n ").concat(getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? wrapperBorderRadius : "background: transparent;\n ".concat(borderRadius), "\n }\n");
|
|
57
57
|
};
|
|
58
|
-
var visibleStyles = "\n ".concat(getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "" : "background-color: ".concat("var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), ";"), "\n\n &:after {\n ").concat(getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "border: 1px solid ".concat("var(--ds-border
|
|
58
|
+
var visibleStyles = "\n ".concat(getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "" : "background-color: ".concat("var(--ds-background-neutral-subtle, ".concat(colors.N30, ")"), ";"), "\n\n &:after {\n ").concat(getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "border: 1px solid ".concat("var(--ds-border, ".concat(N40, ")"), ";\n background-color: ", themed({
|
|
59
59
|
light: "var(--ds-surface-raised, white)",
|
|
60
60
|
dark: "var(--ds-surface-raised, ".concat(BACKGROUND_COLOR_DARK, ")")
|
|
61
61
|
})(), ";") : "background: ".concat("var(--ds-background-neutral, ".concat(colors.N30, ")"), " !important;"), "\n }\n .embed-header {\n opacity: 1;\n }");
|
|
@@ -92,7 +92,7 @@ export var TextWrapper = styled.div(_templateObject5 || (_templateObject5 = _tag
|
|
|
92
92
|
// NB: `overflow` is kept as `hidden` since
|
|
93
93
|
// the internal contents of the `iframe` should
|
|
94
94
|
// manage scrolling behaviour.
|
|
95
|
-
export var Content = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", "\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"])), getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "".concat(contentBorderRadius, ";\n border: 1px solid ", "var(--ds-border
|
|
95
|
+
export var Content = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", "\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"])), getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "".concat(contentBorderRadius, ";\n border: 1px solid ", "var(--ds-border, ".concat(N40, ")"), ";") : borderRadius, "var(--ds-surface-raised, white)", function (_ref9) {
|
|
96
96
|
var isInteractive = _ref9.isInteractive;
|
|
97
97
|
if (isInteractive && !getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design')) {
|
|
98
98
|
return "\n .".concat(className, ":hover & {\n box-shadow: ", "var(--ds-shadow-overlay, 0 4px 8px -2px rgba(23, 43, 77, 0.32), 0 0 1px rgba(23, 43, 77, 0.25))", ";\n }\n ");
|
|
@@ -11,7 +11,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
11
11
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
var PACKAGE_DATA = {
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "26.27.
|
|
14
|
+
packageVersion: "26.27.1",
|
|
15
15
|
componentName: 'linkUrl'
|
|
16
16
|
};
|
|
17
17
|
var Link = withLinkClickedEvent('a');
|
|
@@ -4,7 +4,7 @@ import styled from '@emotion/styled';
|
|
|
4
4
|
import { B50, B100, B200, B400, N20, N40, N500 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { themed } from '@atlaskit/theme/components';
|
|
6
6
|
var BACKGROUND_COLOR_DARK = '#262B31';
|
|
7
|
-
var selected = "\n cursor: pointer;\n box-shadow: 0 0 0 2px ".concat("var(--ds-border-selected, ".concat(B100, ")"), ";\n outline: none;\n user-select: none;\n &, :hover, :focus, :active {\n text-decoration: none;\n }\n &:hover {\n border: 1px solid ", "var(--ds-border
|
|
7
|
+
var selected = "\n cursor: pointer;\n box-shadow: 0 0 0 2px ".concat("var(--ds-border-selected, ".concat(B100, ")"), ";\n outline: none;\n user-select: none;\n &, :hover, :focus, :active {\n text-decoration: none;\n }\n &:hover {\n border: 1px solid ", "var(--ds-border, ".concat(N40, ")"), ";\n }\n");
|
|
8
8
|
var isInteractive = function isInteractive(_ref) {
|
|
9
9
|
var isInteractive = _ref.isInteractive;
|
|
10
10
|
if (isInteractive) {
|
|
@@ -48,8 +48,8 @@ var baseWrapperStyle = function baseWrapperStyle(props) {
|
|
|
48
48
|
light: "var(--ds-surface-raised, white)",
|
|
49
49
|
dark: "var(--ds-surface-raised, ".concat(BACKGROUND_COLOR_DARK, ")")
|
|
50
50
|
})(props), ";\n\n ").concat(isSelected(props), ";\n\n ").concat(props.withoutBackground ? '' : themed({
|
|
51
|
-
light: "border: 1px solid ".concat("var(--ds-border
|
|
52
|
-
dark: "border: 1px solid ".concat("var(--ds-border
|
|
51
|
+
light: "border: 1px solid ".concat("var(--ds-border, ".concat(N40, ")"), ";"),
|
|
52
|
+
dark: "border: 1px solid ".concat("var(--ds-border, ".concat(N500, ")"), ";")
|
|
53
53
|
})(props), "\n &:hover {\n ").concat(themed({
|
|
54
54
|
light: "border-color: ".concat("var(--ds-border-accent-blue, ".concat(B200, ")"), ";"),
|
|
55
55
|
dark: "border-color: ".concat("var(--ds-border-accent-blue, ".concat(B200, ")"), ";")
|
|
@@ -13,8 +13,8 @@ export default (function (Button, frameRef) {
|
|
|
13
13
|
return function (props) {
|
|
14
14
|
var setBorderStyle = function setBorderStyle() {
|
|
15
15
|
var borderColor = themed({
|
|
16
|
-
light: "".concat("var(--ds-border
|
|
17
|
-
dark: "".concat("var(--ds-border
|
|
16
|
+
light: "".concat("var(--ds-border, ".concat(N40, ")")),
|
|
17
|
+
dark: "".concat("var(--ds-border, ".concat(N500, ")"))
|
|
18
18
|
})();
|
|
19
19
|
var frameNode = frameRef.current;
|
|
20
20
|
if (frameNode) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.27.
|
|
3
|
+
"version": "26.27.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/popup": "^1.9.0",
|
|
49
49
|
"@atlaskit/spinner": "^15.5.0",
|
|
50
50
|
"@atlaskit/theme": "^12.6.0",
|
|
51
|
-
"@atlaskit/tokens": "^1.
|
|
51
|
+
"@atlaskit/tokens": "^1.24.0",
|
|
52
52
|
"@atlaskit/tooltip": "^17.8.0",
|
|
53
53
|
"@atlaskit/ufo": "^0.2.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|