@atlaskit/media-card 77.12.1 → 77.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -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/fileCard.js +18 -4
- package/dist/cjs/card/v2/svgView/errors.js +16 -0
- package/dist/cjs/card/v2/svgView/svgView.js +12 -1
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/utils/analytics/analytics.js +3 -0
- 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/fileCard.js +18 -4
- package/dist/es2019/card/v2/svgView/errors.js +10 -0
- package/dist/es2019/card/v2/svgView/svgView.js +12 -1
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +3 -0
- 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/fileCard.js +18 -4
- package/dist/esm/card/v2/svgView/errors.js +10 -0
- package/dist/esm/card/v2/svgView/svgView.js +12 -1
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +3 -0
- 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/card/v2/svgView/errors.d.ts +3 -0
- package/dist/types/card/v2/svgView/svgView.d.ts +4 -3
- package/dist/types/errors.d.ts +2 -1
- package/dist/types/utils/analytics/analytics.d.ts +2 -1
- package/dist/types-ts4.5/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +0 -1
- package/dist/types-ts4.5/card/v2/svgView/errors.d.ts +3 -0
- package/dist/types-ts4.5/card/v2/svgView/svgView.d.ts +4 -3
- package/dist/types-ts4.5/errors.d.ts +2 -1
- package/dist/types-ts4.5/utils/analytics/analytics.d.ts +2 -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/index.ts +1 -1
- package/example-helpers/svg-helpers/mediaApiTweaks.ts +64 -0
- package/example-helpers/svg-helpers/svgContainer.tsx +1 -0
- package/package.json +122 -120
- package/example-helpers/svg-helpers/delayApiResponses.ts +0 -31
|
@@ -271,10 +271,24 @@ export const FileCard = ({
|
|
|
271
271
|
//---------------------- Callbacks & Handlers -------------------//
|
|
272
272
|
//----------------------------------------------------------------//
|
|
273
273
|
|
|
274
|
+
const onSvgError = error => {
|
|
275
|
+
setError(error);
|
|
276
|
+
setStatus('error');
|
|
277
|
+
setShouldRenderSVG(false);
|
|
278
|
+
};
|
|
274
279
|
const onImageError = newCardPreview => {
|
|
280
|
+
if (getBooleanFF('platform.media-card-svg-rendering_6tdbv') && metadata.mimeType === 'image/svg+xml') {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
275
283
|
onImageErrorBase(newCardPreview);
|
|
276
284
|
};
|
|
285
|
+
const onSvgLoad = () => {
|
|
286
|
+
setPreviewDidRender(true);
|
|
287
|
+
};
|
|
277
288
|
const onImageLoad = newCardPreview => {
|
|
289
|
+
if (getBooleanFF('platform.media-card-svg-rendering_6tdbv') && metadata.mimeType === 'image/svg+xml') {
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
278
292
|
onImageLoadBase(newCardPreview);
|
|
279
293
|
setPreviewDidRender(true);
|
|
280
294
|
};
|
|
@@ -400,7 +414,7 @@ export const FileCard = ({
|
|
|
400
414
|
//----------------------------------------------------------------//
|
|
401
415
|
|
|
402
416
|
useEffect(() => {
|
|
403
|
-
if (getBooleanFF('platform.media-card-svg-rendering_6tdbv') &&
|
|
417
|
+
if (getBooleanFF('platform.media-card-svg-rendering_6tdbv') && finalStatus !== 'error' &&
|
|
404
418
|
/**
|
|
405
419
|
* We need to check that the card is visible before switching to SVG
|
|
406
420
|
* in order to avoid race conditions of the ViewportDector being unmounted before
|
|
@@ -410,7 +424,7 @@ export const FileCard = ({
|
|
|
410
424
|
) {
|
|
411
425
|
setShouldRenderSVG(true);
|
|
412
426
|
}
|
|
413
|
-
}, [isCardVisible, disableOverlay, metadata]);
|
|
427
|
+
}, [isCardVisible, disableOverlay, metadata.mimeType, finalStatus]);
|
|
414
428
|
|
|
415
429
|
//----------------------------------------------------------------//
|
|
416
430
|
//----------------- fireScreenEvent ------------------------------//
|
|
@@ -595,8 +609,8 @@ export const FileCard = ({
|
|
|
595
609
|
onClick: onCardViewClick,
|
|
596
610
|
onMouseEnter: onImageMouseEnter,
|
|
597
611
|
progress: uploadProgressRef.current,
|
|
598
|
-
|
|
599
|
-
|
|
612
|
+
onError: onSvgError,
|
|
613
|
+
onLoad: onSvgLoad,
|
|
600
614
|
mediaCardCursor: mediaCardCursor,
|
|
601
615
|
shouldOpenMediaViewer: shouldOpenMediaViewer,
|
|
602
616
|
openMediaViewerButtonRef: mediaViewerButtonRef
|
|
@@ -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';
|
|
@@ -12,6 +13,8 @@ import { useBreakpoint } from '../../useBreakpoint';
|
|
|
12
13
|
import MediaSvg from '@atlaskit/media-svg';
|
|
13
14
|
import { calculateSvgDimensions } from './helpers';
|
|
14
15
|
import OpenMediaViewerButton from '../../ui/openMediaViewerButton/openMediaViewerButton';
|
|
16
|
+
import { MediaCardError } from '../../../errors';
|
|
17
|
+
import { getErrorReason } from './errors';
|
|
15
18
|
export const convertResizeMode = resizeMode => {
|
|
16
19
|
switch (resizeMode) {
|
|
17
20
|
case 'crop':
|
|
@@ -40,7 +43,9 @@ export const SvgViewBase = ({
|
|
|
40
43
|
alt,
|
|
41
44
|
resizeMode,
|
|
42
45
|
shouldOpenMediaViewer,
|
|
43
|
-
openMediaViewerButtonRef = null
|
|
46
|
+
openMediaViewerButtonRef = null,
|
|
47
|
+
onLoad,
|
|
48
|
+
onError
|
|
44
49
|
}) => {
|
|
45
50
|
const [didSvgRender, setDidSvgRender] = useState(false);
|
|
46
51
|
const [didPreviewRender, setDidPreviewRender] = useState(false);
|
|
@@ -50,6 +55,11 @@ export const SvgViewBase = ({
|
|
|
50
55
|
const onSvgLoad = evt => {
|
|
51
56
|
setSvgDimensions(calculateSvgDimensions(evt.currentTarget, resizeMode));
|
|
52
57
|
setDidSvgRender(true);
|
|
58
|
+
onLoad();
|
|
59
|
+
};
|
|
60
|
+
const onSvgError = err => {
|
|
61
|
+
const error = new MediaCardError(getErrorReason(err.primaryReason), err.secondaryError);
|
|
62
|
+
onError(error);
|
|
53
63
|
};
|
|
54
64
|
const onPreviewLoad = () => {
|
|
55
65
|
setDidPreviewRender(true);
|
|
@@ -85,6 +95,7 @@ export const SvgViewBase = ({
|
|
|
85
95
|
identifier: identifier,
|
|
86
96
|
dimensions: svgDimensions,
|
|
87
97
|
onLoad: onSvgLoad,
|
|
98
|
+
onError: onSvgError,
|
|
88
99
|
style: {
|
|
89
100
|
visibility: didSvgRender ? 'visible' : 'hidden',
|
|
90
101
|
objectFit: convertResizeMode(resizeMode)
|
|
@@ -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.3",
|
|
41
41
|
componentName: 'mediaInlineCard',
|
|
42
42
|
component: 'mediaInlineCard'
|
|
43
43
|
};
|
|
@@ -38,6 +38,7 @@ export const getRenderSucceededEventPayload = (fileAttributes, performanceAttrib
|
|
|
38
38
|
action: 'succeeded',
|
|
39
39
|
actionSubject: 'mediaCardRender',
|
|
40
40
|
attributes: {
|
|
41
|
+
fileMimetype: fileAttributes.fileMimetype,
|
|
41
42
|
fileAttributes,
|
|
42
43
|
performanceAttributes,
|
|
43
44
|
status: 'success',
|
|
@@ -130,6 +131,7 @@ export const getRenderErrorEventPayload = (fileAttributes, performanceAttributes
|
|
|
130
131
|
action: 'failed',
|
|
131
132
|
actionSubject: 'mediaCardRender',
|
|
132
133
|
attributes: {
|
|
134
|
+
fileMimetype: fileAttributes.fileMimetype,
|
|
133
135
|
fileAttributes,
|
|
134
136
|
performanceAttributes,
|
|
135
137
|
status: 'fail',
|
|
@@ -158,6 +160,7 @@ export const getRenderFailedFileStatusPayload = (fileAttributes, performanceAttr
|
|
|
158
160
|
action: 'failed',
|
|
159
161
|
actionSubject: 'mediaCardRender',
|
|
160
162
|
attributes: {
|
|
163
|
+
fileMimetype: fileAttributes.fileMimetype,
|
|
161
164
|
fileAttributes,
|
|
162
165
|
performanceAttributes,
|
|
163
166
|
status: 'fail',
|
|
@@ -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.3";
|
|
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.3";
|
|
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';
|
|
@@ -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 { inlinePlayerWrapperStyles, inlinePlayerClassName } from './inlinePlayerWrapperStyles';
|
|
4
5
|
export var InlinePlayerWrapper = function InlinePlayerWrapper(props) {
|
|
@@ -12,7 +13,9 @@ export var InlinePlayerWrapper = function InlinePlayerWrapper(props) {
|
|
|
12
13
|
"data-testid": testId
|
|
13
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
14
15
|
,
|
|
15
|
-
className: inlinePlayerClassName
|
|
16
|
+
className: inlinePlayerClassName
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
18
|
+
,
|
|
16
19
|
css: inlinePlayerWrapperStyles({
|
|
17
20
|
selected: selected,
|
|
18
21
|
dimensions: dimensions
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css } from '@emotion/react';
|
|
4
5
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
5
6
|
import { getDimensionsWithDefault } from '../utils/lightCards/getDimensionsWithDefault';
|
|
@@ -83,7 +83,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
|
|
|
83
83
|
}(React.Component);
|
|
84
84
|
_defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
|
|
85
85
|
var packageName = "@atlaskit/media-card";
|
|
86
|
-
var packageVersion = "77.12.
|
|
86
|
+
var packageVersion = "77.12.3";
|
|
87
87
|
var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
88
88
|
packageVersion: packageVersion,
|
|
89
89
|
packageName: packageName,
|
|
@@ -1,9 +1,12 @@
|
|
|
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 { wrapperStyles, actionsBarClassName } from './styles';
|
|
4
5
|
export var ActionsBarWrapper = function ActionsBarWrapper(props) {
|
|
5
6
|
return jsx("div", {
|
|
6
|
-
id: "actionsBarWrapper"
|
|
7
|
+
id: "actionsBarWrapper"
|
|
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
|
+
,
|
|
7
10
|
css: wrapperStyles(props.isFixed)
|
|
8
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
9
12
|
,
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/**@jsx jsx */
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { jsx } from '@emotion/react';
|
|
5
6
|
import { cardActionButtonStyles } from './styles';
|
|
6
7
|
export var CardActionButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
7
8
|
return jsx("button", _extends({}, props, {
|
|
8
9
|
id: "cardActionButton",
|
|
9
10
|
"data-testid": "media-card-primary-action",
|
|
10
|
-
"aria-label": props.label
|
|
11
|
+
"aria-label": props.label
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
13
|
+
,
|
|
11
14
|
css: cardActionButtonStyles(props)
|
|
12
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
13
16
|
,
|
|
@@ -6,6 +6,7 @@ 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
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
/**@jsx jsx */
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
10
|
import { jsx } from '@emotion/react';
|
|
10
11
|
import { Component } from 'react';
|
|
11
12
|
import { CardActionIconButton } from './cardActionIconButton';
|
|
@@ -1,11 +1,15 @@
|
|
|
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 { N500, N0 } from '@atlaskit/theme/colors';
|
|
3
4
|
import { borderRadius, size, center } from '@atlaskit/media-ui';
|
|
4
5
|
import { rgba } from '../../styles';
|
|
5
6
|
import { fontFamily } from '@atlaskit/theme/constants';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
6
9
|
export var wrapperStyles = css({
|
|
7
10
|
boxSizing: 'border-box',
|
|
8
11
|
fontFamily: fontFamily(),
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
9
13
|
'*': {
|
|
10
14
|
boxSizing: 'border-box'
|
|
11
15
|
},
|
|
@@ -26,10 +30,18 @@ export var cardActionButtonStyles = function cardActionButtonStyles(_ref) {
|
|
|
26
30
|
return css({
|
|
27
31
|
appearance: 'none',
|
|
28
32
|
border: 'none'
|
|
29
|
-
},
|
|
33
|
+
},
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
|
+
center,
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
|
+
borderRadius,
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
|
+
size(26), {
|
|
30
40
|
color: "var(--ds-icon, ".concat(N500, ")"),
|
|
31
41
|
'&:hover': {
|
|
32
42
|
cursor: 'pointer'
|
|
33
43
|
}
|
|
34
|
-
},
|
|
44
|
+
},
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
|
+
getVariantStyles(variant));
|
|
35
47
|
};
|
|
@@ -1,15 +1,19 @@
|
|
|
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 { transition } from '../styles';
|
|
3
4
|
export var actionsBarClassName = 'media-card-actions-bar';
|
|
4
5
|
export var fixedActionBarStyles = "opacity: 1;";
|
|
5
6
|
export var wrapperStyles = function wrapperStyles(isFixed) {
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
return (
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
9
|
+
css(isFixed ? fixedActionBarStyles : 'opacity: 0;', transition(), {
|
|
10
|
+
position: 'absolute',
|
|
11
|
+
top: "var(--ds-space-100, 8px)",
|
|
12
|
+
right: "var(--ds-space-100, 8px)",
|
|
13
|
+
display: 'flex',
|
|
14
|
+
flexFlow: 'row nowrap',
|
|
15
|
+
alignItems: 'center'
|
|
16
|
+
})
|
|
17
|
+
);
|
|
14
18
|
};
|
|
15
19
|
wrapperStyles.displayName = 'ActionsBarWrapper';
|
|
@@ -1,9 +1,11 @@
|
|
|
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 { blanketStyles, blanketClassName } from './styles';
|
|
4
5
|
export var Blanket = function Blanket(props) {
|
|
5
6
|
var isFixed = props.isFixed;
|
|
6
7
|
return jsx("div", {
|
|
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
|
|
7
9
|
css: blanketStyles(isFixed)
|
|
8
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
9
11
|
,
|
|
@@ -1,10 +1,13 @@
|
|
|
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 { transition } from '../styles';
|
|
3
4
|
import { N90A } from '@atlaskit/theme/colors';
|
|
4
5
|
export var blanketClassName = 'media-card-blanket';
|
|
5
6
|
export var fixedBlanketStyles = "background-color: ".concat("var(--ds-blanket, ".concat(N90A, ")"), ";");
|
|
6
7
|
export var blanketStyles = function blanketStyles(isFixed) {
|
|
7
|
-
return css(
|
|
8
|
+
return css(
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
10
|
+
transition(), {
|
|
8
11
|
position: 'absolute',
|
|
9
12
|
width: '100%',
|
|
10
13
|
height: '100%',
|
|
@@ -12,6 +15,8 @@ export var blanketStyles = function blanketStyles(isFixed) {
|
|
|
12
15
|
maxWidth: '100%',
|
|
13
16
|
left: 0,
|
|
14
17
|
top: 0
|
|
15
|
-
},
|
|
18
|
+
},
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
|
+
isFixed ? fixedBlanketStyles : '');
|
|
16
21
|
};
|
|
17
22
|
blanketStyles.displayName = 'Blanket';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { keyframes } from '@emotion/react';
|
|
4
6
|
var breatheAnimation = keyframes({
|
|
5
7
|
'0%': {
|
|
@@ -1,11 +1,14 @@
|
|
|
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 { iconWrapperStyles } from './styles';
|
|
4
5
|
export var IconWrapper = function IconWrapper(props) {
|
|
5
6
|
var breakpoint = props.breakpoint,
|
|
6
7
|
hasTitleBox = props.hasTitleBox;
|
|
7
8
|
return jsx("div", {
|
|
8
|
-
id: "iconWrapper"
|
|
9
|
+
id: "iconWrapper"
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
11
|
+
,
|
|
9
12
|
css: iconWrapperStyles({
|
|
10
13
|
breakpoint: breakpoint,
|
|
11
14
|
hasTitleBox: hasTitleBox
|
|
@@ -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 var iconWrapperStyles = function iconWrapperStyles(_ref) {
|
|
|
16
17
|
return 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% - ".concat(titleBoxHeight(hasTitleBox, breakpoint), ")"),
|
|
20
22
|
display: 'flex',
|
|
21
23
|
flexDirection: 'column',
|
|
@@ -1,37 +1,26 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["fileName", "innerRef"];
|
|
4
|
-
/** @jsx jsx */
|
|
5
|
-
import { jsx, css } from '@emotion/react';
|
|
6
4
|
import React from 'react';
|
|
7
5
|
import { injectIntl, IntlProvider, useIntl } from 'react-intl-next';
|
|
8
6
|
import { messages } from '@atlaskit/media-ui';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
height: '1px',
|
|
12
|
-
padding: 0,
|
|
13
|
-
position: 'absolute',
|
|
14
|
-
border: 0,
|
|
15
|
-
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
16
|
-
overflow: 'hidden',
|
|
17
|
-
whiteSpace: 'nowrap'
|
|
18
|
-
});
|
|
7
|
+
import { Pressable } from '@atlaskit/primitives';
|
|
8
|
+
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
19
9
|
var OpenMediaViewerButton = function OpenMediaViewerButton(_ref) {
|
|
20
10
|
var fileName = _ref.fileName,
|
|
21
11
|
innerRef = _ref.innerRef,
|
|
22
12
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
23
13
|
var intl = useIntl();
|
|
24
|
-
return
|
|
25
|
-
ref: innerRef
|
|
26
|
-
css: visuallyHiddenStyles
|
|
14
|
+
return /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
15
|
+
ref: innerRef
|
|
27
16
|
}, props), intl.formatMessage(messages.open_file_in_viewer, {
|
|
28
17
|
name: fileName
|
|
29
|
-
}));
|
|
18
|
+
})));
|
|
30
19
|
};
|
|
31
20
|
var OpenMediaViewerButtonWrapper = function OpenMediaViewerButtonWrapper(props) {
|
|
32
|
-
return props.intl ?
|
|
21
|
+
return props.intl ? /*#__PURE__*/React.createElement(OpenMediaViewerButton, props) : /*#__PURE__*/React.createElement(IntlProvider, {
|
|
33
22
|
locale: "en"
|
|
34
|
-
},
|
|
23
|
+
}, /*#__PURE__*/React.createElement(OpenMediaViewerButton, props));
|
|
35
24
|
};
|
|
36
25
|
export default injectIntl(OpenMediaViewerButtonWrapper, {
|
|
37
26
|
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 var PlayButtonBackground = function 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 var PlayButtonWrapper = function 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 var playButtonClassName = 'media-card-play-button';
|
|
@@ -5,6 +6,8 @@ export var bkgClassName = 'play-icon-background';
|
|
|
5
6
|
var discSize = 48;
|
|
6
7
|
var discSizeHover = 56;
|
|
7
8
|
export var fixedPlayButtonStyles = "\n .".concat(bkgClassName, " {\n width: ").concat(discSizeHover, "px;\n height: ").concat(discSizeHover, "px;\n }\n");
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
11
|
export var playButtonWrapperStyles = css({
|
|
9
12
|
position: 'absolute',
|
|
10
13
|
top: 0,
|
|
@@ -15,10 +18,13 @@ export var playButtonWrapperStyles = css({
|
|
|
15
18
|
alignItems: 'center',
|
|
16
19
|
justifyContent: 'center',
|
|
17
20
|
color: "var(--ds-icon-inverse, ".concat(N0, ")"),
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
22
|
span: {
|
|
19
23
|
position: 'absolute'
|
|
20
24
|
}
|
|
21
25
|
});
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
22
28
|
export var backgroundStyles = css({
|
|
23
29
|
transitionProperty: 'width, height',
|
|
24
30
|
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 var StyledBar = function StyledBar(props) {
|
|
@@ -9,7 +10,9 @@ export var StyledBar = function StyledBar(props) {
|
|
|
9
10
|
return jsx("div", {
|
|
10
11
|
id: "styledBar",
|
|
11
12
|
role: "progressbar",
|
|
12
|
-
"aria-valuenow": progress
|
|
13
|
+
"aria-valuenow": progress
|
|
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
|
+
,
|
|
13
16
|
css: styledBarStyles({
|
|
14
17
|
progress: progress,
|
|
15
18
|
breakpoint: 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';
|
|
@@ -33,6 +34,7 @@ var getStyledBarStylesBasedOnProps = function getStyledBarStylesBasedOnProps(_re
|
|
|
33
34
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
34
35
|
|
|
35
36
|
export var styledBarStyles = function styledBarStyles(props) {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
38
|
return css(getStyledBarStylesBasedOnProps(props));
|
|
37
39
|
};
|
|
38
40
|
styledBarStyles.displayName = 'StyledProgressBar';
|