@atlaskit/media-card 77.12.0 → 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.
Files changed (169) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/compass.yml +6 -3
  3. package/dist/cjs/card/card.js +5 -5
  4. package/dist/cjs/card/cardView.js +1 -1
  5. package/dist/cjs/card/inlinePlayerWrapper.js +4 -1
  6. package/dist/cjs/card/inlinePlayerWrapperStyles.js +2 -2
  7. package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
  8. package/dist/cjs/card/ui/actionsBar/actionsBarWrapper.js +4 -1
  9. package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton.js +5 -1
  10. package/dist/cjs/card/ui/actionsBar/cardActions/cardActionsView.js +1 -1
  11. package/dist/cjs/card/ui/actionsBar/cardActions/styles.js +14 -2
  12. package/dist/cjs/card/ui/actionsBar/styles.js +13 -8
  13. package/dist/cjs/card/ui/blanket/blanket.js +2 -0
  14. package/dist/cjs/card/ui/blanket/styles.js +8 -2
  15. package/dist/cjs/card/ui/iconMessage/iconMessageWrapper.js +3 -0
  16. package/dist/cjs/card/ui/iconWrapper/iconWrapper.js +4 -1
  17. package/dist/cjs/card/ui/iconWrapper/styles.js +3 -0
  18. package/dist/cjs/card/ui/openMediaViewerButton/openMediaViewerButton.js +9 -20
  19. package/dist/cjs/card/ui/playButton/playButtonBackground.js +2 -1
  20. package/dist/cjs/card/ui/playButton/playButtonWrapper.js +2 -1
  21. package/dist/cjs/card/ui/playButton/styles.js +7 -0
  22. package/dist/cjs/card/ui/progressBar/styledBar.js +4 -1
  23. package/dist/cjs/card/ui/progressBar/styles.js +3 -0
  24. package/dist/cjs/card/ui/tickBox/tickBoxWrapper.js +14 -3
  25. package/dist/cjs/card/ui/titleBox/styles.js +24 -4
  26. package/dist/cjs/card/ui/titleBox/titleBoxComponents.js +30 -17
  27. package/dist/cjs/card/ui/unhandledErrorCard/index.js +22 -11
  28. package/dist/cjs/card/ui/wrapper/imageContainer.js +1 -0
  29. package/dist/cjs/card/ui/wrapper/styles.js +2 -2
  30. package/dist/cjs/card/ui/wrapper/wrapper.js +4 -1
  31. package/dist/cjs/card/v2/cardV2.js +1 -1
  32. package/dist/cjs/card/v2/cardViewV2.js +1 -1
  33. package/dist/cjs/card/v2/cardviews/cardViewWrapper.js +1 -0
  34. package/dist/cjs/card/v2/cardviews/errorCardView.js +1 -0
  35. package/dist/cjs/card/v2/cardviews/iconCardView.js +1 -0
  36. package/dist/cjs/card/v2/cardviews/imageCardView.js +1 -0
  37. package/dist/cjs/card/v2/cardviews/index.js +1 -0
  38. package/dist/cjs/card/v2/cardviews/loadingCardView.js +1 -0
  39. package/dist/cjs/card/v2/cardviews/processingCardView.js +1 -0
  40. package/dist/cjs/card/v2/cardviews/videoCardView.js +1 -0
  41. package/dist/cjs/card/v2/fileCard.js +1 -1
  42. package/dist/cjs/card/v2/svgView/svgView.js +1 -0
  43. package/dist/cjs/inline/loader.js +1 -1
  44. package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +11 -11
  45. package/dist/cjs/utils/lightCards/errorIcon/index.js +10 -7
  46. package/dist/cjs/utils/lightCards/errorIcon/styles.js +3 -0
  47. package/dist/cjs/utils/lightCards/lightCardWrappers.js +9 -5
  48. package/dist/cjs/utils/lightCards/styles.js +10 -2
  49. package/dist/cjs/utils/ufoExperiences.js +1 -1
  50. package/dist/es2019/card/card.js +5 -5
  51. package/dist/es2019/card/cardView.js +1 -0
  52. package/dist/es2019/card/inlinePlayerWrapper.js +4 -1
  53. package/dist/es2019/card/inlinePlayerWrapperStyles.js +13 -12
  54. package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
  55. package/dist/es2019/card/ui/actionsBar/actionsBarWrapper.js +4 -1
  56. package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton.js +4 -1
  57. package/dist/es2019/card/ui/actionsBar/cardActions/cardActionsView.js +1 -0
  58. package/dist/es2019/card/ui/actionsBar/cardActions/styles.js +14 -2
  59. package/dist/es2019/card/ui/actionsBar/styles.js +4 -1
  60. package/dist/es2019/card/ui/blanket/blanket.js +2 -0
  61. package/dist/es2019/card/ui/blanket/styles.js +7 -2
  62. package/dist/es2019/card/ui/iconMessage/iconMessageWrapper.js +2 -0
  63. package/dist/es2019/card/ui/iconWrapper/iconWrapper.js +4 -1
  64. package/dist/es2019/card/ui/iconWrapper/styles.js +2 -0
  65. package/dist/es2019/card/ui/openMediaViewerButton/openMediaViewerButton.js +7 -18
  66. package/dist/es2019/card/ui/playButton/playButtonBackground.js +2 -1
  67. package/dist/es2019/card/ui/playButton/playButtonWrapper.js +2 -1
  68. package/dist/es2019/card/ui/playButton/styles.js +6 -0
  69. package/dist/es2019/card/ui/progressBar/styledBar.js +4 -1
  70. package/dist/es2019/card/ui/progressBar/styles.js +2 -0
  71. package/dist/es2019/card/ui/tickBox/tickBoxWrapper.js +13 -3
  72. package/dist/es2019/card/ui/titleBox/styles.js +23 -4
  73. package/dist/es2019/card/ui/titleBox/titleBoxComponents.js +30 -17
  74. package/dist/es2019/card/ui/unhandledErrorCard/index.js +22 -10
  75. package/dist/es2019/card/ui/wrapper/imageContainer.js +1 -0
  76. package/dist/es2019/card/ui/wrapper/styles.js +22 -21
  77. package/dist/es2019/card/ui/wrapper/wrapper.js +4 -1
  78. package/dist/es2019/card/v2/cardV2.js +1 -1
  79. package/dist/es2019/card/v2/cardViewV2.js +1 -0
  80. package/dist/es2019/card/v2/cardviews/cardViewWrapper.js +1 -0
  81. package/dist/es2019/card/v2/cardviews/errorCardView.js +1 -0
  82. package/dist/es2019/card/v2/cardviews/iconCardView.js +1 -0
  83. package/dist/es2019/card/v2/cardviews/imageCardView.js +1 -0
  84. package/dist/es2019/card/v2/cardviews/index.js +1 -0
  85. package/dist/es2019/card/v2/cardviews/loadingCardView.js +1 -0
  86. package/dist/es2019/card/v2/cardviews/processingCardView.js +1 -0
  87. package/dist/es2019/card/v2/cardviews/videoCardView.js +1 -0
  88. package/dist/es2019/card/v2/fileCard.js +1 -1
  89. package/dist/es2019/card/v2/svgView/svgView.js +1 -0
  90. package/dist/es2019/inline/loader.js +1 -1
  91. package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +11 -11
  92. package/dist/es2019/utils/lightCards/errorIcon/index.js +10 -6
  93. package/dist/es2019/utils/lightCards/errorIcon/styles.js +3 -0
  94. package/dist/es2019/utils/lightCards/lightCardWrappers.js +9 -5
  95. package/dist/es2019/utils/lightCards/styles.js +9 -2
  96. package/dist/es2019/utils/ufoExperiences.js +1 -1
  97. package/dist/esm/card/card.js +5 -5
  98. package/dist/esm/card/cardView.js +1 -0
  99. package/dist/esm/card/inlinePlayerWrapper.js +4 -1
  100. package/dist/esm/card/inlinePlayerWrapperStyles.js +2 -1
  101. package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
  102. package/dist/esm/card/ui/actionsBar/actionsBarWrapper.js +4 -1
  103. package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton.js +4 -1
  104. package/dist/esm/card/ui/actionsBar/cardActions/cardActionsView.js +1 -0
  105. package/dist/esm/card/ui/actionsBar/cardActions/styles.js +14 -2
  106. package/dist/esm/card/ui/actionsBar/styles.js +12 -8
  107. package/dist/esm/card/ui/blanket/blanket.js +2 -0
  108. package/dist/esm/card/ui/blanket/styles.js +7 -2
  109. package/dist/esm/card/ui/iconMessage/iconMessageWrapper.js +2 -0
  110. package/dist/esm/card/ui/iconWrapper/iconWrapper.js +4 -1
  111. package/dist/esm/card/ui/iconWrapper/styles.js +2 -0
  112. package/dist/esm/card/ui/openMediaViewerButton/openMediaViewerButton.js +7 -18
  113. package/dist/esm/card/ui/playButton/playButtonBackground.js +2 -1
  114. package/dist/esm/card/ui/playButton/playButtonWrapper.js +2 -1
  115. package/dist/esm/card/ui/playButton/styles.js +6 -0
  116. package/dist/esm/card/ui/progressBar/styledBar.js +4 -1
  117. package/dist/esm/card/ui/progressBar/styles.js +2 -0
  118. package/dist/esm/card/ui/tickBox/tickBoxWrapper.js +13 -3
  119. package/dist/esm/card/ui/titleBox/styles.js +23 -4
  120. package/dist/esm/card/ui/titleBox/titleBoxComponents.js +30 -17
  121. package/dist/esm/card/ui/unhandledErrorCard/index.js +22 -10
  122. package/dist/esm/card/ui/wrapper/imageContainer.js +1 -0
  123. package/dist/esm/card/ui/wrapper/styles.js +2 -1
  124. package/dist/esm/card/ui/wrapper/wrapper.js +4 -1
  125. package/dist/esm/card/v2/cardV2.js +1 -1
  126. package/dist/esm/card/v2/cardViewV2.js +1 -0
  127. package/dist/esm/card/v2/cardviews/cardViewWrapper.js +1 -0
  128. package/dist/esm/card/v2/cardviews/errorCardView.js +1 -0
  129. package/dist/esm/card/v2/cardviews/iconCardView.js +1 -0
  130. package/dist/esm/card/v2/cardviews/imageCardView.js +1 -0
  131. package/dist/esm/card/v2/cardviews/index.js +1 -0
  132. package/dist/esm/card/v2/cardviews/loadingCardView.js +1 -0
  133. package/dist/esm/card/v2/cardviews/processingCardView.js +1 -0
  134. package/dist/esm/card/v2/cardviews/videoCardView.js +1 -0
  135. package/dist/esm/card/v2/fileCard.js +1 -1
  136. package/dist/esm/card/v2/svgView/svgView.js +1 -0
  137. package/dist/esm/inline/loader.js +1 -1
  138. package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +11 -11
  139. package/dist/esm/utils/lightCards/errorIcon/index.js +10 -6
  140. package/dist/esm/utils/lightCards/errorIcon/styles.js +3 -0
  141. package/dist/esm/utils/lightCards/lightCardWrappers.js +9 -5
  142. package/dist/esm/utils/lightCards/styles.js +9 -2
  143. package/dist/esm/utils/ufoExperiences.js +1 -1
  144. package/dist/types/card/ui/iconWrapper/styles.d.ts +1 -1
  145. package/dist/types/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +0 -1
  146. package/dist/types/card/ui/titleBox/styles.d.ts +1 -1
  147. package/dist/types/utils/preventClickThrough.d.ts +1 -1
  148. package/dist/types/utils/viewportDetector.d.ts +1 -1
  149. package/dist/types-ts4.5/card/ui/iconWrapper/styles.d.ts +1 -1
  150. package/dist/types-ts4.5/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +0 -1
  151. package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +1 -1
  152. package/dist/types-ts4.5/utils/preventClickThrough.d.ts +1 -1
  153. package/dist/types-ts4.5/utils/viewportDetector.d.ts +1 -1
  154. package/example-helpers/DelayedRender.tsx +19 -19
  155. package/example-helpers/cardViewWrapper.tsx +20 -22
  156. package/example-helpers/cards.tsx +268 -331
  157. package/example-helpers/developmentUseMessage.tsx +8 -9
  158. package/example-helpers/index.tsx +100 -124
  159. package/example-helpers/selectableCard.tsx +32 -35
  160. package/example-helpers/ssrHelpers.tsx +19 -29
  161. package/example-helpers/styles.ts +97 -73
  162. package/example-helpers/svg-helpers/cardContainer.tsx +22 -21
  163. package/example-helpers/svg-helpers/controls.tsx +11 -11
  164. package/example-helpers/svg-helpers/dimensionPicker.tsx +85 -93
  165. package/example-helpers/svg-helpers/svgContainer.tsx +19 -18
  166. package/example-helpers/svg-helpers/toggle.tsx +28 -29
  167. package/example-helpers/svg-helpers/uploader.ts +33 -33
  168. package/package.json +121 -120
  169. package/report.api.md +227 -232
@@ -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';
@@ -400,7 +400,7 @@ export const FileCard = ({
400
400
  //----------------------------------------------------------------//
401
401
 
402
402
  useEffect(() => {
403
- if (getBooleanFF('platform.media-svg-rendering') &&
403
+ if (getBooleanFF('platform.media-card-svg-rendering_6tdbv') &&
404
404
  /**
405
405
  * We need to check that the card is visible before switching to SVG
406
406
  * in order to avoid race conditions of the ViewportDector being unmounted before
@@ -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.0",
40
+ packageName: "77.12.2",
41
41
  componentName: 'mediaInlineCard',
42
42
  component: 'mediaInlineCard'
43
43
  };
@@ -17,17 +17,17 @@ const ErrorBoundaryComponent = ({
17
17
  };
18
18
 
19
19
  /* Note:
20
- - styling is borrowed from packages/media/media-ui/src/MediaInlineCard/Frame/styled.ts
21
- - because we are not using styled components, we are not able to use themed(), here is the "themed" property of color and backgroundColor
22
- color: `${themed({
23
- light: token('color.text', N900),
24
- dark: token('color.text', DN600),
25
- })}`,
26
- backgroundColor: `${themed({
27
- light: token('color.background.neutral', N30A),
28
- dark: token('color.background.neutral', DN80),
29
- })}`,
30
- */
20
+ - styling is borrowed from packages/media/media-ui/src/MediaInlineCard/Frame/styled.ts
21
+ - because we are not using styled components, we are not able to use themed(), here is the "themed" property of color and backgroundColor
22
+ color: `${themed({
23
+ light: token('color.text', N900),
24
+ dark: token('color.text', DN600),
25
+ })}`,
26
+ backgroundColor: `${themed({
27
+ light: token('color.background.neutral', N30A),
28
+ dark: token('color.background.neutral', DN80),
29
+ })}`,
30
+ */
31
31
 
32
32
  const style = {
33
33
  lineHeight: '16px',
@@ -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 jsx("div", {
13
- css: errorIconWrapperStyles
14
- }, jsx(WarningIcon, {
15
- label: "Error",
16
- size: size
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 jsx("div", _extends({
7
- css: wrapperStyles({
8
- dimensions: props.dimensions
9
- })
10
- }, props), props.children);
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(center, {
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
- }, borderRadius, {
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.0";
7
+ const packageVersion = "77.12.2";
8
8
  let concurrentExperience;
9
9
  const getExperience = id => {
10
10
  if (!concurrentExperience) {
@@ -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.0";
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);
@@ -281,8 +281,8 @@ export var CardBase = /*#__PURE__*/function (_Component) {
281
281
  }
282
282
 
283
283
  /*
284
- If the cardPreview failed and it comes from server (global scope / ssrData), it means that we have reused it in client and the error counts for both: server & client.
285
- */
284
+ If the cardPreview failed and it comes from server (global scope / ssrData), it means that we have reused it in client and the error counts for both: server & client.
285
+ */
286
286
 
287
287
  if (isSSRDataPreview(cardPreview)) {
288
288
  _this.ssrReliability.server = failedSSRObject;
@@ -330,8 +330,8 @@ export var CardBase = /*#__PURE__*/function (_Component) {
330
330
  }
331
331
 
332
332
  /*
333
- If the image loads successfully and it comes from server (global scope / ssrData), it means that we have reused it in client and the success counts for both: server & client.
334
- */
333
+ If the image loads successfully and it comes from server (global scope / ssrData), it means that we have reused it in client and the success counts for both: server & client.
334
+ */
335
335
 
336
336
  if (isSSRDataPreview(cardPreview) && _this.ssrReliability.server.status === 'unknown') {
337
337
  _this.ssrReliability.server = {
@@ -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';
@@ -17,6 +18,6 @@ export var inlinePlayerClassName = 'media-card-inline-player';
17
18
  export var inlinePlayerWrapperStyles = function inlinePlayerWrapperStyles(_ref2) {
18
19
  var dimensions = _ref2.dimensions,
19
20
  selected = _ref2.selected;
20
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n overflow: hidden;\n border-radius: ", "px;\n position: relative;\n max-width: 100%;\n max-height: 100%;\n\n ", "\n\n video {\n width: 100%;\n height: 100%;\n }\n"])), getDimensionsWithDefault(dimensions).width || '100%', getDimensionsWithDefault(dimensions).height || 'auto', borderRadius(), getSelectedBorderStyle(selected));
21
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\twidth: ", ";\n\theight: ", ";\n\toverflow: hidden;\n\tborder-radius: ", "px;\n\tposition: relative;\n\tmax-width: 100%;\n\tmax-height: 100%;\n\n\t", "\n\n\tvideo {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n"])), getDimensionsWithDefault(dimensions).width || '100%', getDimensionsWithDefault(dimensions).height || 'auto', borderRadius(), getSelectedBorderStyle(selected));
21
22
  };
22
23
  inlinePlayerWrapperStyles.displayName = 'InlinePlayerWrapper';
@@ -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.0";
86
+ var packageVersion = "77.12.2";
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
- }, center, borderRadius, size(26), {
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
- }, getVariantStyles(variant));
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 css(isFixed ? fixedActionBarStyles : 'opacity: 0;', transition(), {
7
- position: 'absolute',
8
- top: "var(--ds-space-100, 8px)",
9
- right: "var(--ds-space-100, 8px)",
10
- display: 'flex',
11
- flexFlow: 'row nowrap',
12
- alignItems: 'center'
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(transition(), {
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
- }, isFixed ? fixedBlanketStyles : '');
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
- export var visuallyHiddenStyles = css({
10
- width: '1px',
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 jsx("button", _extends({
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 ? jsx(OpenMediaViewerButton, props) : jsx(IntlProvider, {
21
+ return props.intl ? /*#__PURE__*/React.createElement(OpenMediaViewerButton, props) : /*#__PURE__*/React.createElement(IntlProvider, {
33
22
  locale: "en"
34
- }, jsx(OpenMediaViewerButton, props));
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';