@atlaskit/media-card 77.12.1 → 77.12.2
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 +11 -0
- package/compass.yml +6 -3
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/cardView.js +1 -1
- package/dist/cjs/card/inlinePlayerWrapper.js +4 -1
- package/dist/cjs/card/inlinePlayerWrapperStyles.js +1 -1
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/ui/actionsBar/actionsBarWrapper.js +4 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton.js +5 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionsView.js +1 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/styles.js +14 -2
- package/dist/cjs/card/ui/actionsBar/styles.js +13 -8
- package/dist/cjs/card/ui/blanket/blanket.js +2 -0
- package/dist/cjs/card/ui/blanket/styles.js +8 -2
- package/dist/cjs/card/ui/iconMessage/iconMessageWrapper.js +3 -0
- package/dist/cjs/card/ui/iconWrapper/iconWrapper.js +4 -1
- package/dist/cjs/card/ui/iconWrapper/styles.js +3 -0
- package/dist/cjs/card/ui/openMediaViewerButton/openMediaViewerButton.js +9 -20
- package/dist/cjs/card/ui/playButton/playButtonBackground.js +2 -1
- package/dist/cjs/card/ui/playButton/playButtonWrapper.js +2 -1
- package/dist/cjs/card/ui/playButton/styles.js +7 -0
- package/dist/cjs/card/ui/progressBar/styledBar.js +4 -1
- package/dist/cjs/card/ui/progressBar/styles.js +3 -0
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper.js +14 -3
- package/dist/cjs/card/ui/titleBox/styles.js +24 -4
- package/dist/cjs/card/ui/titleBox/titleBoxComponents.js +30 -17
- package/dist/cjs/card/ui/unhandledErrorCard/index.js +22 -11
- package/dist/cjs/card/ui/wrapper/imageContainer.js +1 -0
- package/dist/cjs/card/ui/wrapper/styles.js +1 -1
- package/dist/cjs/card/ui/wrapper/wrapper.js +4 -1
- package/dist/cjs/card/v2/cardV2.js +1 -1
- package/dist/cjs/card/v2/cardViewV2.js +1 -1
- package/dist/cjs/card/v2/cardviews/cardViewWrapper.js +1 -0
- package/dist/cjs/card/v2/cardviews/errorCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/iconCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/imageCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/index.js +1 -0
- package/dist/cjs/card/v2/cardviews/loadingCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/processingCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/videoCardView.js +1 -0
- package/dist/cjs/card/v2/svgView/svgView.js +1 -0
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/utils/lightCards/errorIcon/index.js +10 -7
- package/dist/cjs/utils/lightCards/errorIcon/styles.js +3 -0
- package/dist/cjs/utils/lightCards/lightCardWrappers.js +9 -5
- package/dist/cjs/utils/lightCards/styles.js +10 -2
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/es2019/card/card.js +1 -1
- package/dist/es2019/card/cardView.js +1 -0
- package/dist/es2019/card/inlinePlayerWrapper.js +4 -1
- package/dist/es2019/card/inlinePlayerWrapperStyles.js +1 -0
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/actionsBar/actionsBarWrapper.js +4 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton.js +4 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionsView.js +1 -0
- package/dist/es2019/card/ui/actionsBar/cardActions/styles.js +14 -2
- package/dist/es2019/card/ui/actionsBar/styles.js +4 -1
- package/dist/es2019/card/ui/blanket/blanket.js +2 -0
- package/dist/es2019/card/ui/blanket/styles.js +7 -2
- package/dist/es2019/card/ui/iconMessage/iconMessageWrapper.js +2 -0
- package/dist/es2019/card/ui/iconWrapper/iconWrapper.js +4 -1
- package/dist/es2019/card/ui/iconWrapper/styles.js +2 -0
- package/dist/es2019/card/ui/openMediaViewerButton/openMediaViewerButton.js +7 -18
- package/dist/es2019/card/ui/playButton/playButtonBackground.js +2 -1
- package/dist/es2019/card/ui/playButton/playButtonWrapper.js +2 -1
- package/dist/es2019/card/ui/playButton/styles.js +6 -0
- package/dist/es2019/card/ui/progressBar/styledBar.js +4 -1
- package/dist/es2019/card/ui/progressBar/styles.js +2 -0
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper.js +13 -3
- package/dist/es2019/card/ui/titleBox/styles.js +23 -4
- package/dist/es2019/card/ui/titleBox/titleBoxComponents.js +30 -17
- package/dist/es2019/card/ui/unhandledErrorCard/index.js +22 -10
- package/dist/es2019/card/ui/wrapper/imageContainer.js +1 -0
- package/dist/es2019/card/ui/wrapper/styles.js +1 -0
- package/dist/es2019/card/ui/wrapper/wrapper.js +4 -1
- package/dist/es2019/card/v2/cardV2.js +1 -1
- package/dist/es2019/card/v2/cardViewV2.js +1 -0
- package/dist/es2019/card/v2/cardviews/cardViewWrapper.js +1 -0
- package/dist/es2019/card/v2/cardviews/errorCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/iconCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/imageCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/index.js +1 -0
- package/dist/es2019/card/v2/cardviews/loadingCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/processingCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/videoCardView.js +1 -0
- package/dist/es2019/card/v2/svgView/svgView.js +1 -0
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/utils/lightCards/errorIcon/index.js +10 -6
- package/dist/es2019/utils/lightCards/errorIcon/styles.js +3 -0
- package/dist/es2019/utils/lightCards/lightCardWrappers.js +9 -5
- package/dist/es2019/utils/lightCards/styles.js +9 -2
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/card.js +1 -1
- package/dist/esm/card/cardView.js +1 -0
- package/dist/esm/card/inlinePlayerWrapper.js +4 -1
- package/dist/esm/card/inlinePlayerWrapperStyles.js +1 -0
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/ui/actionsBar/actionsBarWrapper.js +4 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton.js +4 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionsView.js +1 -0
- package/dist/esm/card/ui/actionsBar/cardActions/styles.js +14 -2
- package/dist/esm/card/ui/actionsBar/styles.js +12 -8
- package/dist/esm/card/ui/blanket/blanket.js +2 -0
- package/dist/esm/card/ui/blanket/styles.js +7 -2
- package/dist/esm/card/ui/iconMessage/iconMessageWrapper.js +2 -0
- package/dist/esm/card/ui/iconWrapper/iconWrapper.js +4 -1
- package/dist/esm/card/ui/iconWrapper/styles.js +2 -0
- package/dist/esm/card/ui/openMediaViewerButton/openMediaViewerButton.js +7 -18
- package/dist/esm/card/ui/playButton/playButtonBackground.js +2 -1
- package/dist/esm/card/ui/playButton/playButtonWrapper.js +2 -1
- package/dist/esm/card/ui/playButton/styles.js +6 -0
- package/dist/esm/card/ui/progressBar/styledBar.js +4 -1
- package/dist/esm/card/ui/progressBar/styles.js +2 -0
- package/dist/esm/card/ui/tickBox/tickBoxWrapper.js +13 -3
- package/dist/esm/card/ui/titleBox/styles.js +23 -4
- package/dist/esm/card/ui/titleBox/titleBoxComponents.js +30 -17
- package/dist/esm/card/ui/unhandledErrorCard/index.js +22 -10
- package/dist/esm/card/ui/wrapper/imageContainer.js +1 -0
- package/dist/esm/card/ui/wrapper/styles.js +1 -0
- package/dist/esm/card/ui/wrapper/wrapper.js +4 -1
- package/dist/esm/card/v2/cardV2.js +1 -1
- package/dist/esm/card/v2/cardViewV2.js +1 -0
- package/dist/esm/card/v2/cardviews/cardViewWrapper.js +1 -0
- package/dist/esm/card/v2/cardviews/errorCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/iconCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/imageCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/index.js +1 -0
- package/dist/esm/card/v2/cardviews/loadingCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/processingCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/videoCardView.js +1 -0
- package/dist/esm/card/v2/svgView/svgView.js +1 -0
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/utils/lightCards/errorIcon/index.js +10 -6
- package/dist/esm/utils/lightCards/errorIcon/styles.js +3 -0
- package/dist/esm/utils/lightCards/lightCardWrappers.js +9 -5
- package/dist/esm/utils/lightCards/styles.js +9 -2
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/types/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +0 -1
- package/dist/types-ts4.5/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +0 -1
- package/example-helpers/cardViewWrapper.tsx +2 -0
- package/example-helpers/styles.ts +24 -0
- package/example-helpers/svg-helpers/cardContainer.tsx +7 -0
- package/example-helpers/svg-helpers/svgContainer.tsx +1 -0
- package/package.json +121 -120
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { getTitleBoxHeight } from '../common';
|
|
3
4
|
export function titleBoxHeight(hasTitleBox, breakpoint) {
|
|
@@ -16,6 +17,7 @@ export const iconWrapperStyles = ({
|
|
|
16
17
|
}) => css({
|
|
17
18
|
position: 'absolute',
|
|
18
19
|
width: '100%',
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
21
|
height: `calc(100% - ${titleBoxHeight(hasTitleBox, breakpoint)})`,
|
|
20
22
|
display: 'flex',
|
|
21
23
|
flexDirection: 'column',
|
|
@@ -1,36 +1,25 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx, css } from '@emotion/react';
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { injectIntl, IntlProvider, useIntl } from 'react-intl-next';
|
|
6
4
|
import { messages } from '@atlaskit/media-ui';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
height: '1px',
|
|
10
|
-
padding: 0,
|
|
11
|
-
position: 'absolute',
|
|
12
|
-
border: 0,
|
|
13
|
-
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
14
|
-
overflow: 'hidden',
|
|
15
|
-
whiteSpace: 'nowrap'
|
|
16
|
-
});
|
|
5
|
+
import { Pressable } from '@atlaskit/primitives';
|
|
6
|
+
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
17
7
|
const OpenMediaViewerButton = ({
|
|
18
8
|
fileName,
|
|
19
9
|
innerRef,
|
|
20
10
|
...props
|
|
21
11
|
}) => {
|
|
22
12
|
const intl = useIntl();
|
|
23
|
-
return
|
|
24
|
-
ref: innerRef
|
|
25
|
-
css: visuallyHiddenStyles
|
|
13
|
+
return /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
14
|
+
ref: innerRef
|
|
26
15
|
}, props), intl.formatMessage(messages.open_file_in_viewer, {
|
|
27
16
|
name: fileName
|
|
28
|
-
}));
|
|
17
|
+
})));
|
|
29
18
|
};
|
|
30
19
|
const OpenMediaViewerButtonWrapper = props => {
|
|
31
|
-
return props.intl ?
|
|
20
|
+
return props.intl ? /*#__PURE__*/React.createElement(OpenMediaViewerButton, props) : /*#__PURE__*/React.createElement(IntlProvider, {
|
|
32
21
|
locale: "en"
|
|
33
|
-
},
|
|
22
|
+
}, /*#__PURE__*/React.createElement(OpenMediaViewerButton, props));
|
|
34
23
|
};
|
|
35
24
|
export default injectIntl(OpenMediaViewerButtonWrapper, {
|
|
36
25
|
enforceContext: false
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { backgroundStyles, bkgClassName } from './styles';
|
|
4
5
|
export const PlayButtonBackground = () => {
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
6
7
|
return jsx("div", {
|
|
7
8
|
css: backgroundStyles,
|
|
8
9
|
className: bkgClassName
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { playButtonClassName, playButtonWrapperStyles } from './styles';
|
|
4
5
|
export const PlayButtonWrapper = props => {
|
|
5
6
|
return (
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
7
8
|
jsx("div", {
|
|
8
9
|
css: playButtonWrapperStyles,
|
|
9
10
|
className: playButtonClassName
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { N0, N90A } from '@atlaskit/theme/colors';
|
|
3
4
|
export const playButtonClassName = 'media-card-play-button';
|
|
@@ -10,6 +11,8 @@ export const fixedPlayButtonStyles = `
|
|
|
10
11
|
height: ${discSizeHover}px;
|
|
11
12
|
}
|
|
12
13
|
`;
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
13
16
|
export const playButtonWrapperStyles = css({
|
|
14
17
|
position: 'absolute',
|
|
15
18
|
top: 0,
|
|
@@ -20,10 +23,13 @@ export const playButtonWrapperStyles = css({
|
|
|
20
23
|
alignItems: 'center',
|
|
21
24
|
justifyContent: 'center',
|
|
22
25
|
color: `var(--ds-icon-inverse, ${N0})`,
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
27
|
span: {
|
|
24
28
|
position: 'absolute'
|
|
25
29
|
}
|
|
26
30
|
});
|
|
31
|
+
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
27
33
|
export const backgroundStyles = css({
|
|
28
34
|
transitionProperty: 'width, height',
|
|
29
35
|
transitionDuration: '0.1s',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { styledBarStyles } from './styles';
|
|
4
5
|
export const StyledBar = props => {
|
|
@@ -11,7 +12,9 @@ export const StyledBar = props => {
|
|
|
11
12
|
return jsx("div", {
|
|
12
13
|
id: "styledBar",
|
|
13
14
|
role: "progressbar",
|
|
14
|
-
"aria-valuenow": progress
|
|
15
|
+
"aria-valuenow": progress
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
17
|
+
,
|
|
15
18
|
css: styledBarStyles({
|
|
16
19
|
progress,
|
|
17
20
|
breakpoint,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { borderRadius } from '@atlaskit/media-ui';
|
|
3
4
|
import { rgba } from '../styles';
|
|
@@ -53,6 +54,7 @@ ${generateResponsiveStyles(breakpoint, positionBottom, showOnTop)}
|
|
|
53
54
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
54
55
|
|
|
55
56
|
export const styledBarStyles = props => {
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
56
58
|
return css(getStyledBarStylesBasedOnProps(props));
|
|
57
59
|
};
|
|
58
60
|
styledBarStyles.displayName = 'StyledProgressBar';
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { tickBoxClassName } from './styles';
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css } from '@emotion/react';
|
|
5
7
|
import { transition } from '../styles';
|
|
6
8
|
import { B200 } from '@atlaskit/theme/colors';
|
|
7
9
|
const getSelectedStyles = selected => selected ? `background-color: ${`var(--ds-icon-information, ${B200})`};
|
|
8
10
|
color: ${"var(--ds-icon-inverse, white)"};` : ``;
|
|
9
|
-
const wrapperStyles = selected => css(
|
|
11
|
+
const wrapperStyles = selected => css(
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
|
+
transition && transition(), {
|
|
10
14
|
fontSize: '14px',
|
|
11
15
|
width: '14px',
|
|
12
16
|
height: '14px',
|
|
@@ -15,17 +19,23 @@ const wrapperStyles = selected => css(transition && transition(), {
|
|
|
15
19
|
left: "var(--ds-space-075, 7px)",
|
|
16
20
|
borderRadius: '20px',
|
|
17
21
|
color: 'transparent',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
23
|
span: {
|
|
19
24
|
display: 'block',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
26
|
svg: {
|
|
21
27
|
height: '14px'
|
|
22
28
|
}
|
|
23
29
|
}
|
|
24
|
-
},
|
|
30
|
+
},
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
+
getSelectedStyles(selected));
|
|
25
33
|
wrapperStyles.displayName = 'TickBoxWrapper';
|
|
26
34
|
export const TickBoxWrapper = props => {
|
|
27
35
|
return jsx("div", {
|
|
28
|
-
id: "tickBoxWrapper"
|
|
36
|
+
id: "tickBoxWrapper"
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
38
|
+
,
|
|
29
39
|
css: wrapperStyles(props.selected)
|
|
30
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
31
41
|
,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { responsiveSettings, getTitleBoxHeight, Breakpoint } from '../common';
|
|
3
4
|
import { N0, N800 } from '@atlaskit/theme/colors';
|
|
@@ -18,14 +19,18 @@ export const titleBoxWrapperStyles = ({
|
|
|
18
19
|
position: 'absolute',
|
|
19
20
|
bottom: 0,
|
|
20
21
|
width: '100%',
|
|
21
|
-
backgroundColor: `var(--ds-surface, ${
|
|
22
|
+
backgroundColor: `var(--ds-surface, ${
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
24
|
+
rgba(titleBoxBgColor && HEX_REGEX.test(titleBoxBgColor) ? titleBoxBgColor : N0, 1)})`,
|
|
22
25
|
color: `var(--ds-text, ${N800})`,
|
|
23
26
|
cursor: 'inherit',
|
|
24
27
|
pointerEvents: 'none',
|
|
25
28
|
display: 'flex',
|
|
26
29
|
flexDirection: 'column',
|
|
27
30
|
justifyContent: 'center'
|
|
28
|
-
},
|
|
31
|
+
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
|
+
generateResponsiveStyles(breakpoint));
|
|
29
34
|
titleBoxWrapperStyles.displayName = 'TitleBoxWrapper';
|
|
30
35
|
const infoStyles = `white-space: nowrap;overflow: hidden;`;
|
|
31
36
|
const iconOverlapStyles = `padding-right: 10px;`;
|
|
@@ -33,25 +38,39 @@ export const titleBoxHeaderStyles = ({
|
|
|
33
38
|
hasIconOverlap
|
|
34
39
|
}) => css({
|
|
35
40
|
fontWeight: 600
|
|
36
|
-
},
|
|
41
|
+
},
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
|
+
infoStyles,
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
|
+
hasIconOverlap && iconOverlapStyles);
|
|
37
46
|
titleBoxHeaderStyles.displayName = 'FailedTitleBoxHeader';
|
|
38
47
|
export const titleBoxFooterStyles = ({
|
|
39
48
|
hasIconOverlap
|
|
40
49
|
}) => css({
|
|
41
50
|
textOverflow: 'ellipsis'
|
|
42
|
-
},
|
|
51
|
+
},
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
53
|
+
infoStyles,
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
55
|
+
hasIconOverlap && iconOverlapStyles);
|
|
43
56
|
titleBoxFooterStyles.displayName = 'TitleBoxFooter';
|
|
57
|
+
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
44
59
|
export const titleBoxIconStyles = css({
|
|
45
60
|
position: 'absolute',
|
|
46
61
|
right: "var(--ds-space-050, 4px)",
|
|
47
62
|
bottom: '0px'
|
|
48
63
|
});
|
|
64
|
+
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
49
66
|
export const errorMessageWrapperStyles = css({
|
|
50
67
|
display: 'flex',
|
|
51
68
|
alignItems: 'center',
|
|
52
69
|
justifyContent: 'flex-start',
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
53
71
|
span: {
|
|
54
72
|
verticalAlign: 'middle',
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
55
74
|
':nth-child(2)': {
|
|
56
75
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
57
76
|
marginRight: "var(--ds-space-050, 4px)"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { errorMessageWrapperStyles, titleBoxFooterStyles, titleBoxHeaderStyles, titleBoxIconStyles, titleBoxWrapperStyles } from './styles';
|
|
4
5
|
export const TitleBoxWrapper = props => {
|
|
@@ -8,7 +9,9 @@ export const TitleBoxWrapper = props => {
|
|
|
8
9
|
} = props;
|
|
9
10
|
return jsx("div", {
|
|
10
11
|
id: "titleBoxWrapper",
|
|
11
|
-
"data-testid": "media-title-box"
|
|
12
|
+
"data-testid": "media-title-box"
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
14
|
+
,
|
|
12
15
|
css: titleBoxWrapperStyles({
|
|
13
16
|
breakpoint: breakpoint,
|
|
14
17
|
titleBoxBgColor: titleBoxBgColor
|
|
@@ -19,31 +22,41 @@ export const TitleBoxHeader = props => {
|
|
|
19
22
|
const {
|
|
20
23
|
hasIconOverlap
|
|
21
24
|
} = props;
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
return (
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
27
|
+
jsx("div", {
|
|
28
|
+
id: "titleBoxHeader",
|
|
29
|
+
css: titleBoxHeaderStyles({
|
|
30
|
+
hasIconOverlap
|
|
31
|
+
})
|
|
32
|
+
}, props.children)
|
|
33
|
+
);
|
|
28
34
|
};
|
|
29
35
|
export const TitleBoxFooter = props => {
|
|
30
36
|
const {
|
|
31
37
|
hasIconOverlap
|
|
32
38
|
} = props;
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
return (
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
41
|
+
jsx("div", {
|
|
42
|
+
id: "titleBoxFooter",
|
|
43
|
+
css: titleBoxFooterStyles({
|
|
44
|
+
hasIconOverlap
|
|
45
|
+
})
|
|
46
|
+
}, props.children)
|
|
47
|
+
);
|
|
39
48
|
};
|
|
40
49
|
export const TitleBoxIcon = props => {
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
return (
|
|
51
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
52
|
+
jsx("div", {
|
|
53
|
+
id: "titleBoxIcon",
|
|
54
|
+
css: titleBoxIconStyles
|
|
55
|
+
}, props.children)
|
|
56
|
+
);
|
|
45
57
|
};
|
|
46
58
|
export const ErrorMessageWrapper = props => {
|
|
59
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
47
60
|
return jsx("div", {
|
|
48
61
|
css: errorMessageWrapperStyles
|
|
49
62
|
}, props.children);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Component } from 'react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import WarningIcon from '@atlaskit/icon/glyph/editor/warning';
|
|
5
6
|
import { N20, N800, Y500 } from '@atlaskit/theme/colors';
|
|
@@ -32,17 +33,25 @@ const getConvertedDimension = dimensions => {
|
|
|
32
33
|
};
|
|
33
34
|
const wrapperStyles = (dimensions = defaultImageCardDimensions) => {
|
|
34
35
|
try {
|
|
35
|
-
return css(
|
|
36
|
+
return css(
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
38
|
+
center,
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
|
+
borderRadius, {
|
|
36
41
|
background: `var(--ds-background-neutral, ${N20})`,
|
|
37
42
|
color: `var(--ds-text-subtle, ${N800})`,
|
|
38
43
|
maxHeight: '100%',
|
|
39
44
|
maxWidth: '100%'
|
|
40
|
-
},
|
|
45
|
+
},
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
|
+
getConvertedDimension(dimensions), {
|
|
41
48
|
display: 'flex',
|
|
42
49
|
flexDirection: 'column',
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
43
51
|
p: {
|
|
44
52
|
fontSize: `${fontSize()}px`,
|
|
45
53
|
textAlign: 'center',
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
55
|
display: shouldShowText(getConvertedDimension(dimensions)) ? 'block' : 'none'
|
|
47
56
|
}
|
|
48
57
|
});
|
|
@@ -56,13 +65,16 @@ export class UnhandledErrorCard extends Component {
|
|
|
56
65
|
dimensions,
|
|
57
66
|
onClick
|
|
58
67
|
} = this.props;
|
|
59
|
-
return
|
|
60
|
-
css
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
68
|
+
return (
|
|
69
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
70
|
+
jsx("div", {
|
|
71
|
+
css: wrapperStyles(dimensions),
|
|
72
|
+
onClick: onClick
|
|
73
|
+
}, jsx(WarningIcon, {
|
|
74
|
+
label: "Error",
|
|
75
|
+
primaryColor: `var(--ds-icon-warning, ${Y500})`,
|
|
76
|
+
size: "medium"
|
|
77
|
+
}), jsx("p", null, "We couldn't load this content"))
|
|
78
|
+
);
|
|
67
79
|
}
|
|
68
80
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { newFileExperienceClassName } from '../../cardConstants';
|
|
4
5
|
import { wrapperStyles } from './styles';
|
|
@@ -24,7 +25,9 @@ export const Wrapper = props => {
|
|
|
24
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
25
26
|
,
|
|
26
27
|
className: newFileExperienceClassName,
|
|
27
|
-
"data-testid": testId
|
|
28
|
+
"data-testid": testId
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
30
|
+
,
|
|
28
31
|
css: wrapperStyles({
|
|
29
32
|
breakpoint,
|
|
30
33
|
dimensions,
|
|
@@ -7,7 +7,7 @@ import { IntlProvider, injectIntl } from 'react-intl-next';
|
|
|
7
7
|
import { ExternalImageCard } from './externalImageCard';
|
|
8
8
|
import { FileCard } from './fileCard';
|
|
9
9
|
const packageName = "@atlaskit/media-card";
|
|
10
|
-
const packageVersion = "77.12.
|
|
10
|
+
const packageVersion = "77.12.2";
|
|
11
11
|
export const CardV2Base = ({
|
|
12
12
|
identifier,
|
|
13
13
|
...otherProps
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import React, { useEffect, useState, useRef } from 'react';
|
|
4
5
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { useRef } from 'react';
|
|
5
6
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { useEffect, useRef } from 'react';
|
|
5
6
|
import { MimeTypeIcon } from '@atlaskit/media-ui/mime-type-icon';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { useEffect, useRef } from 'react';
|
|
5
6
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import React, { useEffect, useState, useRef } from 'react';
|
|
5
6
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { useEffect, useRef } from 'react';
|
|
5
6
|
import SpinnerIcon from '@atlaskit/spinner';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { useEffect, useRef } from 'react';
|
|
5
6
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { useEffect, useRef } from 'react';
|
|
5
6
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import React, { useState, useRef } from 'react';
|
|
4
5
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -37,7 +37,7 @@ export default class MediaInlineCardLoader extends React.PureComponent {
|
|
|
37
37
|
} = this.state;
|
|
38
38
|
const analyticsContext = {
|
|
39
39
|
packageVersion: "@atlaskit/media-card",
|
|
40
|
-
packageName: "77.12.
|
|
40
|
+
packageName: "77.12.2",
|
|
41
41
|
componentName: 'mediaInlineCard',
|
|
42
42
|
component: 'mediaInlineCard'
|
|
43
43
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
/**@jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { Component } from 'react';
|
|
5
6
|
import WarningIcon from '@atlaskit/icon/glyph/editor/warning';
|
|
@@ -9,12 +10,15 @@ export class ErrorIcon extends Component {
|
|
|
9
10
|
const {
|
|
10
11
|
size
|
|
11
12
|
} = this.props;
|
|
12
|
-
return
|
|
13
|
-
css
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
return (
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
15
|
+
jsx("div", {
|
|
16
|
+
css: errorIconWrapperStyles
|
|
17
|
+
}, jsx(WarningIcon, {
|
|
18
|
+
label: "Error",
|
|
19
|
+
size: size
|
|
20
|
+
}))
|
|
21
|
+
);
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
_defineProperty(ErrorIcon, "defaultProps", {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
5
|
export const errorIconWrapperStyles = css({
|
|
3
6
|
display: 'flex',
|
|
4
7
|
color: "var(--ds-icon-warning, #ff991f)"
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/**@jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { wrapperStyles } from './styles';
|
|
5
6
|
export const Wrapper = props => {
|
|
6
|
-
return
|
|
7
|
-
css
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
return (
|
|
8
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
9
|
+
jsx("div", _extends({
|
|
10
|
+
css: wrapperStyles({
|
|
11
|
+
dimensions: props.dimensions
|
|
12
|
+
})
|
|
13
|
+
}, props), props.children)
|
|
14
|
+
);
|
|
11
15
|
};
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { center, borderRadius } from '@atlaskit/media-ui';
|
|
3
4
|
import { N20, N50 } from '@atlaskit/theme/colors';
|
|
4
5
|
export const wrapperStyles = ({
|
|
5
6
|
dimensions
|
|
6
|
-
}) => css(
|
|
7
|
+
}) => css(
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
9
|
+
center, {
|
|
7
10
|
background: `var(--ds-background-neutral, ${N20})`,
|
|
8
11
|
color: `var(--ds-icon, ${N50})`
|
|
9
|
-
},
|
|
12
|
+
},
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
|
+
borderRadius, {
|
|
10
15
|
maxHeight: '100%',
|
|
11
16
|
maxWidth: '100%',
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
18
|
width: dimensions.width,
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
20
|
height: dimensions.height
|
|
14
21
|
});
|
|
@@ -4,7 +4,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
|
|
|
4
4
|
import { MediaCardError } from '../errors';
|
|
5
5
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
6
6
|
const packageName = "@atlaskit/media-card";
|
|
7
|
-
const packageVersion = "77.12.
|
|
7
|
+
const packageVersion = "77.12.2";
|
|
8
8
|
let concurrentExperience;
|
|
9
9
|
const getExperience = id => {
|
|
10
10
|
if (!concurrentExperience) {
|
package/dist/esm/card/card.js
CHANGED
|
@@ -41,7 +41,7 @@ import { completeUfoExperience, startUfoExperience, abortUfoExperience } from '.
|
|
|
41
41
|
import { generateUniqueId } from '../utils/generateUniqueId';
|
|
42
42
|
import { DateOverrideContext } from '../dateOverrideContext';
|
|
43
43
|
var packageName = "@atlaskit/media-card";
|
|
44
|
-
var packageVersion = "77.12.
|
|
44
|
+
var packageVersion = "77.12.2";
|
|
45
45
|
export var CardBase = /*#__PURE__*/function (_Component) {
|
|
46
46
|
_inherits(CardBase, _Component);
|
|
47
47
|
var _super = _createSuper(CardBase);
|
|
@@ -10,6 +10,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
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); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
14
|
import { jsx } from '@emotion/react';
|
|
14
15
|
import React from 'react';
|
|
15
16
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|