@atlaskit/media-card 77.11.0 → 77.11.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 (73) hide show
  1. package/CHANGELOG.md +2841 -1930
  2. package/dist/cjs/card/card.js +1 -1
  3. package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
  4. package/dist/cjs/card/ui/actionsBar/cardActions/styles.js +19 -8
  5. package/dist/cjs/card/ui/actionsBar/styles.js +8 -4
  6. package/dist/cjs/card/ui/blanket/styles.js +9 -4
  7. package/dist/cjs/card/ui/iconMessage/iconMessageWrapper.js +9 -10
  8. package/dist/cjs/card/ui/iconWrapper/styles.js +9 -4
  9. package/dist/cjs/card/ui/playButton/styles.js +23 -5
  10. package/dist/cjs/card/ui/progressBar/styles.js +1 -4
  11. package/dist/cjs/card/ui/styles.js +9 -3
  12. package/dist/cjs/card/ui/titleBox/styles.js +35 -8
  13. package/dist/cjs/card/ui/unhandledErrorCard/index.js +15 -5
  14. package/dist/cjs/card/v2/cardV2.js +1 -1
  15. package/dist/cjs/inline/loader.js +1 -1
  16. package/dist/cjs/utils/lightCards/errorIcon/styles.js +4 -4
  17. package/dist/cjs/utils/lightCards/styles.js +9 -4
  18. package/dist/cjs/utils/ufoExperiences.js +1 -1
  19. package/dist/es2019/card/card.js +1 -1
  20. package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
  21. package/dist/es2019/card/ui/actionsBar/cardActions/styles.js +18 -27
  22. package/dist/es2019/card/ui/actionsBar/styles.js +8 -10
  23. package/dist/es2019/card/ui/blanket/styles.js +9 -11
  24. package/dist/es2019/card/ui/iconMessage/iconMessageWrapper.js +10 -11
  25. package/dist/es2019/card/ui/iconWrapper/styles.js +9 -9
  26. package/dist/es2019/card/ui/playButton/styles.js +22 -22
  27. package/dist/es2019/card/ui/progressBar/styles.js +1 -3
  28. package/dist/es2019/card/ui/styles.js +9 -10
  29. package/dist/es2019/card/ui/titleBox/styles.js +33 -38
  30. package/dist/es2019/card/ui/unhandledErrorCard/index.js +13 -16
  31. package/dist/es2019/card/v2/cardV2.js +1 -1
  32. package/dist/es2019/inline/loader.js +1 -1
  33. package/dist/es2019/utils/lightCards/errorIcon/styles.js +4 -4
  34. package/dist/es2019/utils/lightCards/styles.js +9 -10
  35. package/dist/es2019/utils/ufoExperiences.js +1 -1
  36. package/dist/esm/card/card.js +1 -1
  37. package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
  38. package/dist/esm/card/ui/actionsBar/cardActions/styles.js +19 -7
  39. package/dist/esm/card/ui/actionsBar/styles.js +8 -3
  40. package/dist/esm/card/ui/blanket/styles.js +9 -3
  41. package/dist/esm/card/ui/iconMessage/iconMessageWrapper.js +10 -11
  42. package/dist/esm/card/ui/iconWrapper/styles.js +9 -3
  43. package/dist/esm/card/ui/playButton/styles.js +23 -4
  44. package/dist/esm/card/ui/progressBar/styles.js +1 -3
  45. package/dist/esm/card/ui/styles.js +9 -3
  46. package/dist/esm/card/ui/titleBox/styles.js +35 -7
  47. package/dist/esm/card/ui/unhandledErrorCard/index.js +14 -3
  48. package/dist/esm/card/v2/cardV2.js +1 -1
  49. package/dist/esm/inline/loader.js +1 -1
  50. package/dist/esm/utils/lightCards/errorIcon/styles.js +4 -3
  51. package/dist/esm/utils/lightCards/styles.js +9 -3
  52. package/dist/esm/utils/ufoExperiences.js +1 -1
  53. package/dist/types/card/ui/actionsBar/cardActions/styles.d.ts +1 -1
  54. package/dist/types/card/ui/titleBox/styles.d.ts +2 -2
  55. package/dist/types/card/v2/cardViewV2.d.ts +1 -1
  56. package/dist/types/card/v2/cardviews/errorCardView.d.ts +5 -1
  57. package/dist/types/card/v2/cardviews/iconCardView.d.ts +6 -1
  58. package/dist/types/card/v2/cardviews/imageCardView.d.ts +14 -1
  59. package/dist/types/card/v2/cardviews/index.d.ts +1 -1
  60. package/dist/types/card/v2/cardviews/loadingCardView.d.ts +5 -1
  61. package/dist/types/card/v2/cardviews/processingCardView.d.ts +4 -1
  62. package/dist/types/card/v2/cardviews/videoCardView.d.ts +14 -1
  63. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/styles.d.ts +1 -1
  64. package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +2 -2
  65. package/dist/types-ts4.5/card/v2/cardViewV2.d.ts +1 -1
  66. package/dist/types-ts4.5/card/v2/cardviews/errorCardView.d.ts +5 -1
  67. package/dist/types-ts4.5/card/v2/cardviews/iconCardView.d.ts +6 -1
  68. package/dist/types-ts4.5/card/v2/cardviews/imageCardView.d.ts +14 -1
  69. package/dist/types-ts4.5/card/v2/cardviews/index.d.ts +1 -1
  70. package/dist/types-ts4.5/card/v2/cardviews/loadingCardView.d.ts +5 -1
  71. package/dist/types-ts4.5/card/v2/cardviews/processingCardView.d.ts +4 -1
  72. package/dist/types-ts4.5/card/v2/cardviews/videoCardView.d.ts +14 -1
  73. package/package.json +14 -18
@@ -1,5 +1,3 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
3
1
  import { css } from '@emotion/react';
4
2
  import { responsiveSettings, getTitleBoxHeight, Breakpoint } from '../common';
5
3
  import { N0, N800 } from '@atlaskit/theme/colors';
@@ -16,20 +14,50 @@ var HEX_REGEX = /^#[0-9A-F]{6}$/i;
16
14
  export var titleBoxWrapperStyles = function titleBoxWrapperStyles(_ref) {
17
15
  var breakpoint = _ref.breakpoint,
18
16
  titleBoxBgColor = _ref.titleBoxBgColor;
19
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n bottom: 0;\n width: 100%;\n background-color: ", ";\n color: ", ";\n cursor: inherit;\n pointer-events: none;\n display: flex;\n flex-direction: column;\n justify-content: center;\n ", "\n"])), "var(--ds-surface, ".concat(rgba(titleBoxBgColor && HEX_REGEX.test(titleBoxBgColor) ? titleBoxBgColor : N0, 1), ")"), "var(--ds-text, ".concat(N800, ")"), generateResponsiveStyles(breakpoint));
17
+ return css({
18
+ position: 'absolute',
19
+ bottom: 0,
20
+ width: '100%',
21
+ backgroundColor: "var(--ds-surface, ".concat(rgba(titleBoxBgColor && HEX_REGEX.test(titleBoxBgColor) ? titleBoxBgColor : N0, 1), ")"),
22
+ color: "var(--ds-text, ".concat(N800, ")"),
23
+ cursor: 'inherit',
24
+ pointerEvents: 'none',
25
+ display: 'flex',
26
+ flexDirection: 'column',
27
+ justifyContent: 'center'
28
+ }, generateResponsiveStyles(breakpoint));
20
29
  };
21
30
  titleBoxWrapperStyles.displayName = 'TitleBoxWrapper';
22
31
  var infoStyles = "white-space: nowrap;overflow: hidden;";
23
32
  var iconOverlapStyles = "padding-right: 10px;";
24
33
  export var titleBoxHeaderStyles = function titleBoxHeaderStyles(_ref2) {
25
34
  var hasIconOverlap = _ref2.hasIconOverlap;
26
- return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-weight: 600;\n ", "\n ", "\n"])), infoStyles, hasIconOverlap && iconOverlapStyles);
35
+ return css({
36
+ fontWeight: 600
37
+ }, infoStyles, hasIconOverlap && iconOverlapStyles);
27
38
  };
28
39
  titleBoxHeaderStyles.displayName = 'FailedTitleBoxHeader';
29
40
  export var titleBoxFooterStyles = function titleBoxFooterStyles(_ref3) {
30
41
  var hasIconOverlap = _ref3.hasIconOverlap;
31
- return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n text-overflow: ellipsis;\n ", "\n ", "\n"])), infoStyles, hasIconOverlap && iconOverlapStyles);
42
+ return css({
43
+ textOverflow: 'ellipsis'
44
+ }, infoStyles, hasIconOverlap && iconOverlapStyles);
32
45
  };
33
46
  titleBoxFooterStyles.displayName = 'TitleBoxFooter';
34
- export var titleBoxIconStyles = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n right: ", ";\n bottom: 0px;\n"])), "var(--ds-space-050, 4px)");
35
- export var errorMessageWrapperStyles = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n span {\n vertical-align: middle;\n :nth-child(2) {\n margin-left: ", ";\n margin-right: ", ";\n }\n }\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)");
47
+ export var titleBoxIconStyles = css({
48
+ position: 'absolute',
49
+ right: "var(--ds-space-050, 4px)",
50
+ bottom: '0px'
51
+ });
52
+ export var errorMessageWrapperStyles = css({
53
+ display: 'flex',
54
+ alignItems: 'center',
55
+ justifyContent: 'flex-start',
56
+ span: {
57
+ verticalAlign: 'middle',
58
+ ':nth-child(2)': {
59
+ marginLeft: "var(--ds-space-050, 4px)",
60
+ marginRight: "var(--ds-space-050, 4px)"
61
+ }
62
+ }
63
+ });
@@ -3,8 +3,6 @@ import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
7
- var _templateObject;
8
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); }; }
9
7
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
8
  /** @jsx jsx */
@@ -43,7 +41,20 @@ var getConvertedDimension = function getConvertedDimension(dimensions) {
43
41
  var wrapperStyles = function wrapperStyles() {
44
42
  var dimensions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultImageCardDimensions;
45
43
  try {
46
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ";\n ", ";\n background: ", ";\n color: ", ";\n max-height: 100%;\n max-width: 100%;\n ", ";\n display: flex;\n flex-direction: column;\n\n p {\n font-size: ", "px;\n text-align: center;\n display: ", ";\n }\n "])), center, borderRadius, "var(--ds-background-neutral, ".concat(N20, ")"), "var(--ds-text-subtle, ".concat(N800, ")"), getConvertedDimension(dimensions), fontSize(), shouldShowText(getConvertedDimension(dimensions)) ? 'block' : 'none');
44
+ return css(center, borderRadius, {
45
+ background: "var(--ds-background-neutral, ".concat(N20, ")"),
46
+ color: "var(--ds-text-subtle, ".concat(N800, ")"),
47
+ maxHeight: '100%',
48
+ maxWidth: '100%'
49
+ }, getConvertedDimension(dimensions), {
50
+ display: 'flex',
51
+ flexDirection: 'column',
52
+ p: {
53
+ fontSize: "".concat(fontSize(), "px"),
54
+ textAlign: 'center',
55
+ display: shouldShowText(getConvertedDimension(dimensions)) ? 'block' : 'none'
56
+ }
57
+ });
47
58
  } catch (e) {
48
59
  return null;
49
60
  }
@@ -9,7 +9,7 @@ import { IntlProvider, injectIntl } from 'react-intl-next';
9
9
  import { ExternalImageCard } from './externalImageCard';
10
10
  import { FileCard } from './fileCard';
11
11
  var packageName = "@atlaskit/media-card";
12
- var packageVersion = "77.11.0";
12
+ var packageVersion = "77.11.2";
13
13
  export var CardV2Base = function CardV2Base(_ref) {
14
14
  var identifier = _ref.identifier,
15
15
  otherProps = _objectWithoutProperties(_ref, _excluded);
@@ -103,7 +103,7 @@ var MediaInlineCardLoader = /*#__PURE__*/function (_React$PureComponent) {
103
103
  ErrorBoundary = _this$state.ErrorBoundary;
104
104
  var analyticsContext = {
105
105
  packageVersion: "@atlaskit/media-card",
106
- packageName: "77.11.0",
106
+ packageName: "77.11.2",
107
107
  componentName: 'mediaInlineCard',
108
108
  component: 'mediaInlineCard'
109
109
  };
@@ -1,4 +1,5 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import { css } from '@emotion/react';
4
- export var errorIconWrapperStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n color: ", ";\n"])), "var(--ds-icon-warning, #ff991f)");
2
+ export var errorIconWrapperStyles = css({
3
+ display: 'flex',
4
+ color: "var(--ds-icon-warning, #ff991f)"
5
+ });
@@ -1,9 +1,15 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import { css } from '@emotion/react';
4
2
  import { center, borderRadius } from '@atlaskit/media-ui';
5
3
  import { N20, N50 } from '@atlaskit/theme/colors';
6
4
  export var wrapperStyles = function wrapperStyles(_ref) {
7
5
  var dimensions = _ref.dimensions;
8
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n background: ", ";\n color: ", ";\n ", "\n max-height: 100%;\n max-width: 100%;\n width: ", ";\n height: ", ";\n"])), center, "var(--ds-background-neutral, ".concat(N20, ")"), "var(--ds-icon, ".concat(N50, ")"), borderRadius, dimensions.width, dimensions.height);
6
+ return css(center, {
7
+ background: "var(--ds-background-neutral, ".concat(N20, ")"),
8
+ color: "var(--ds-icon, ".concat(N50, ")")
9
+ }, borderRadius, {
10
+ maxHeight: '100%',
11
+ maxWidth: '100%',
12
+ width: dimensions.width,
13
+ height: dimensions.height
14
+ });
9
15
  };
@@ -7,7 +7,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
7
7
  import { MediaCardError } from '../errors';
8
8
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
9
9
  var packageName = "@atlaskit/media-card";
10
- var packageVersion = "77.11.0";
10
+ var packageVersion = "77.11.2";
11
11
  var concurrentExperience;
12
12
  var getExperience = function getExperience(id) {
13
13
  if (!concurrentExperience) {
@@ -16,4 +16,4 @@ export type CardActionButtonOwnProps = {
16
16
  children?: React.ReactNode;
17
17
  };
18
18
  export type CardActionButtonProps = CardActionButtonOwnProps & HTMLAttributes<HTMLButtonElement>;
19
- export declare const cardActionButtonStyles: ({ variant, }: CardActionButtonProps) => import("@emotion/react").SerializedStyles;
19
+ export declare const cardActionButtonStyles: ({ variant }: CardActionButtonProps) => import("@emotion/react").SerializedStyles;
@@ -4,11 +4,11 @@ export declare const titleBoxWrapperStyles: {
4
4
  displayName: string;
5
5
  };
6
6
  export declare const titleBoxHeaderStyles: {
7
- ({ hasIconOverlap, }: TitleBoxHeaderProps): import("@emotion/react").SerializedStyles;
7
+ ({ hasIconOverlap }: TitleBoxHeaderProps): import("@emotion/react").SerializedStyles;
8
8
  displayName: string;
9
9
  };
10
10
  export declare const titleBoxFooterStyles: {
11
- ({ hasIconOverlap, }: TitleBoxFooterProps): import("@emotion/react").SerializedStyles;
11
+ ({ hasIconOverlap }: TitleBoxFooterProps): import("@emotion/react").SerializedStyles;
12
12
  displayName: string;
13
13
  };
14
14
  export declare const titleBoxIconStyles: import("@emotion/react").SerializedStyles;
@@ -55,4 +55,4 @@ export interface RenderConfigByStatusV2 {
55
55
  customTitleMessage?: MessageDescriptor;
56
56
  }
57
57
  export declare const CardViewV2Base: ({ innerRef, onImageLoad, onImageError, dimensions, onClick, onMouseEnter, testId, metadata, status, selected, selectable, cardPreview, mediaCardCursor, shouldHideTooltip, progress, alt, resizeMode, onDisplayImage, nativeLazyLoad, forceSyncDisplay, actions, disableOverlay, titleBoxBgColor, titleBoxIcon, error, disableAnimation, openMediaViewerButtonRef, shouldOpenMediaViewer, }: CardViewV2BaseProps) => jsx.JSX.Element;
58
- export declare const CardViewV2: React.ForwardRefExoticComponent<Omit<CardViewV2BaseProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
58
+ export declare const CardViewV2: React.ForwardRefExoticComponent<Omit<CardViewV2Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
@@ -8,4 +8,8 @@ export type ErrorCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps
8
8
  disableAnimation?: boolean;
9
9
  readonly error?: MediaCardError;
10
10
  };
11
- export declare const ErrorCardView: import("react").ForwardRefExoticComponent<Omit<ErrorCardViewProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
11
+ export declare const ErrorCardView: import("react").ForwardRefExoticComponent<Omit<SharedCardViewProps & WithAnalyticsEventsProps & {
12
+ metadata?: FileDetails | undefined;
13
+ disableAnimation?: boolean | undefined;
14
+ readonly error?: MediaCardError | undefined;
15
+ }, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
@@ -9,4 +9,9 @@ export type IconCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps &
9
9
  readonly progress?: number;
10
10
  readonly innerRef?: (instance: HTMLDivElement | null) => void;
11
11
  };
12
- export declare const IconCardView: import("react").ForwardRefExoticComponent<Omit<IconCardViewProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
12
+ export declare const IconCardView: import("react").ForwardRefExoticComponent<Omit<SharedCardViewProps & WithAnalyticsEventsProps & {
13
+ status: CardStatus;
14
+ metadata?: FileDetails | undefined;
15
+ readonly progress?: number | undefined;
16
+ readonly innerRef?: ((instance: HTMLDivElement | null) => void) | undefined;
17
+ }, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
@@ -18,4 +18,17 @@ export type ImageCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps
18
18
  readonly innerRef?: (instance: HTMLDivElement | null) => void;
19
19
  readonly progress?: number;
20
20
  };
21
- export declare const ImageCardView: import("react").ForwardRefExoticComponent<Omit<ImageCardViewProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
21
+ export declare const ImageCardView: import("react").ForwardRefExoticComponent<Omit<SharedCardViewProps & WithAnalyticsEventsProps & {
22
+ status: CardStatus;
23
+ cardPreview: CardPreview;
24
+ readonly alt?: string | undefined;
25
+ readonly resizeMode?: ImageResizeMode | undefined;
26
+ readonly onDisplayImage?: (() => void) | undefined;
27
+ readonly nativeLazyLoad?: boolean | undefined;
28
+ readonly forceSyncDisplay?: boolean | undefined;
29
+ readonly onImageLoad?: ((cardPreview: CardPreview) => void) | undefined;
30
+ readonly onImageError?: ((cardPreview: CardPreview) => void) | undefined;
31
+ metadata?: FileDetails | undefined;
32
+ readonly innerRef?: ((instance: HTMLDivElement | null) => void) | undefined;
33
+ readonly progress?: number | undefined;
34
+ }, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
@@ -44,4 +44,4 @@ export interface RenderConfigByStatusV2 {
44
44
  customTitleMessage?: MessageDescriptor;
45
45
  }
46
46
  export declare const CardViewsBase: ({ innerRef, onImageLoad, onImageError, dimensions, appearance, onClick, onMouseEnter, testId, metadata, status, selected, selectable, cardPreview, mediaCardCursor, shouldHideTooltip, progress, alt, resizeMode, onDisplayImage, nativeLazyLoad, forceSyncDisplay, actions, disableOverlay, titleBoxBgColor, titleBoxIcon, error, disableAnimation, shouldOpenMediaViewer, openMediaViewerButtonRef, }: CardViewV2Props) => jsx.JSX.Element;
47
- export declare const CardViews: React.ForwardRefExoticComponent<Omit<CardViewV2Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
47
+ export declare const CardViews: React.ForwardRefExoticComponent<Omit<CardViewsOwnProps & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
@@ -7,4 +7,8 @@ export type LoadingCardViewProps = SharedCardViewProps & WithAnalyticsEventsProp
7
7
  disableAnimation?: boolean;
8
8
  readonly innerRef?: (instance: HTMLDivElement | null) => void;
9
9
  };
10
- export declare const LoadingCardView: import("react").ForwardRefExoticComponent<Omit<LoadingCardViewProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
10
+ export declare const LoadingCardView: import("react").ForwardRefExoticComponent<Omit<SharedCardViewProps & WithAnalyticsEventsProps & {
11
+ metadata?: FileDetails | undefined;
12
+ disableAnimation?: boolean | undefined;
13
+ readonly innerRef?: ((instance: HTMLDivElement | null) => void) | undefined;
14
+ }, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
@@ -5,4 +5,7 @@ export type ProcessingCardViewProps = SharedCardViewProps & WithAnalyticsEventsP
5
5
  disableAnimation?: boolean;
6
6
  readonly innerRef?: (instance: HTMLDivElement | null) => void;
7
7
  };
8
- export declare const ProcessingCardView: import("react").ForwardRefExoticComponent<Omit<ProcessingCardViewProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
8
+ export declare const ProcessingCardView: import("react").ForwardRefExoticComponent<Omit<SharedCardViewProps & WithAnalyticsEventsProps & {
9
+ disableAnimation?: boolean | undefined;
10
+ readonly innerRef?: ((instance: HTMLDivElement | null) => void) | undefined;
11
+ }, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
@@ -18,4 +18,17 @@ export type VideoCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps
18
18
  readonly innerRef?: (instance: HTMLDivElement | null) => void;
19
19
  readonly progress?: number;
20
20
  };
21
- export declare const VideoCardView: import("react").ForwardRefExoticComponent<Omit<VideoCardViewProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
21
+ export declare const VideoCardView: import("react").ForwardRefExoticComponent<Omit<SharedCardViewProps & WithAnalyticsEventsProps & {
22
+ status: CardStatus;
23
+ cardPreview: CardPreview;
24
+ readonly alt?: string | undefined;
25
+ readonly resizeMode?: ImageResizeMode | undefined;
26
+ readonly onDisplayImage?: (() => void) | undefined;
27
+ readonly nativeLazyLoad?: boolean | undefined;
28
+ readonly forceSyncDisplay?: boolean | undefined;
29
+ readonly onImageLoad?: ((cardPreview: CardPreview) => void) | undefined;
30
+ readonly onImageError?: ((cardPreview: CardPreview) => void) | undefined;
31
+ metadata?: FileDetails | undefined;
32
+ readonly innerRef?: ((instance: HTMLDivElement | null) => void) | undefined;
33
+ readonly progress?: number | undefined;
34
+ }, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
@@ -16,4 +16,4 @@ export type CardActionButtonOwnProps = {
16
16
  children?: React.ReactNode;
17
17
  };
18
18
  export type CardActionButtonProps = CardActionButtonOwnProps & HTMLAttributes<HTMLButtonElement>;
19
- export declare const cardActionButtonStyles: ({ variant, }: CardActionButtonProps) => import("@emotion/react").SerializedStyles;
19
+ export declare const cardActionButtonStyles: ({ variant }: CardActionButtonProps) => import("@emotion/react").SerializedStyles;
@@ -4,11 +4,11 @@ export declare const titleBoxWrapperStyles: {
4
4
  displayName: string;
5
5
  };
6
6
  export declare const titleBoxHeaderStyles: {
7
- ({ hasIconOverlap, }: TitleBoxHeaderProps): import("@emotion/react").SerializedStyles;
7
+ ({ hasIconOverlap }: TitleBoxHeaderProps): import("@emotion/react").SerializedStyles;
8
8
  displayName: string;
9
9
  };
10
10
  export declare const titleBoxFooterStyles: {
11
- ({ hasIconOverlap, }: TitleBoxFooterProps): import("@emotion/react").SerializedStyles;
11
+ ({ hasIconOverlap }: TitleBoxFooterProps): import("@emotion/react").SerializedStyles;
12
12
  displayName: string;
13
13
  };
14
14
  export declare const titleBoxIconStyles: import("@emotion/react").SerializedStyles;
@@ -55,4 +55,4 @@ export interface RenderConfigByStatusV2 {
55
55
  customTitleMessage?: MessageDescriptor;
56
56
  }
57
57
  export declare const CardViewV2Base: ({ innerRef, onImageLoad, onImageError, dimensions, onClick, onMouseEnter, testId, metadata, status, selected, selectable, cardPreview, mediaCardCursor, shouldHideTooltip, progress, alt, resizeMode, onDisplayImage, nativeLazyLoad, forceSyncDisplay, actions, disableOverlay, titleBoxBgColor, titleBoxIcon, error, disableAnimation, openMediaViewerButtonRef, shouldOpenMediaViewer, }: CardViewV2BaseProps) => jsx.JSX.Element;
58
- export declare const CardViewV2: React.ForwardRefExoticComponent<Omit<CardViewV2BaseProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
58
+ export declare const CardViewV2: React.ForwardRefExoticComponent<Omit<CardViewV2Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
@@ -8,4 +8,8 @@ export type ErrorCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps
8
8
  disableAnimation?: boolean;
9
9
  readonly error?: MediaCardError;
10
10
  };
11
- export declare const ErrorCardView: import("react").ForwardRefExoticComponent<Omit<ErrorCardViewProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
11
+ export declare const ErrorCardView: import("react").ForwardRefExoticComponent<Omit<SharedCardViewProps & WithAnalyticsEventsProps & {
12
+ metadata?: FileDetails | undefined;
13
+ disableAnimation?: boolean | undefined;
14
+ readonly error?: MediaCardError | undefined;
15
+ }, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
@@ -9,4 +9,9 @@ export type IconCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps &
9
9
  readonly progress?: number;
10
10
  readonly innerRef?: (instance: HTMLDivElement | null) => void;
11
11
  };
12
- export declare const IconCardView: import("react").ForwardRefExoticComponent<Omit<IconCardViewProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
12
+ export declare const IconCardView: import("react").ForwardRefExoticComponent<Omit<SharedCardViewProps & WithAnalyticsEventsProps & {
13
+ status: CardStatus;
14
+ metadata?: FileDetails | undefined;
15
+ readonly progress?: number | undefined;
16
+ readonly innerRef?: ((instance: HTMLDivElement | null) => void) | undefined;
17
+ }, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
@@ -18,4 +18,17 @@ export type ImageCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps
18
18
  readonly innerRef?: (instance: HTMLDivElement | null) => void;
19
19
  readonly progress?: number;
20
20
  };
21
- export declare const ImageCardView: import("react").ForwardRefExoticComponent<Omit<ImageCardViewProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
21
+ export declare const ImageCardView: import("react").ForwardRefExoticComponent<Omit<SharedCardViewProps & WithAnalyticsEventsProps & {
22
+ status: CardStatus;
23
+ cardPreview: CardPreview;
24
+ readonly alt?: string | undefined;
25
+ readonly resizeMode?: ImageResizeMode | undefined;
26
+ readonly onDisplayImage?: (() => void) | undefined;
27
+ readonly nativeLazyLoad?: boolean | undefined;
28
+ readonly forceSyncDisplay?: boolean | undefined;
29
+ readonly onImageLoad?: ((cardPreview: CardPreview) => void) | undefined;
30
+ readonly onImageError?: ((cardPreview: CardPreview) => void) | undefined;
31
+ metadata?: FileDetails | undefined;
32
+ readonly innerRef?: ((instance: HTMLDivElement | null) => void) | undefined;
33
+ readonly progress?: number | undefined;
34
+ }, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
@@ -44,4 +44,4 @@ export interface RenderConfigByStatusV2 {
44
44
  customTitleMessage?: MessageDescriptor;
45
45
  }
46
46
  export declare const CardViewsBase: ({ innerRef, onImageLoad, onImageError, dimensions, appearance, onClick, onMouseEnter, testId, metadata, status, selected, selectable, cardPreview, mediaCardCursor, shouldHideTooltip, progress, alt, resizeMode, onDisplayImage, nativeLazyLoad, forceSyncDisplay, actions, disableOverlay, titleBoxBgColor, titleBoxIcon, error, disableAnimation, shouldOpenMediaViewer, openMediaViewerButtonRef, }: CardViewV2Props) => jsx.JSX.Element;
47
- export declare const CardViews: React.ForwardRefExoticComponent<Omit<CardViewV2Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
47
+ export declare const CardViews: React.ForwardRefExoticComponent<Omit<CardViewsOwnProps & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
@@ -7,4 +7,8 @@ export type LoadingCardViewProps = SharedCardViewProps & WithAnalyticsEventsProp
7
7
  disableAnimation?: boolean;
8
8
  readonly innerRef?: (instance: HTMLDivElement | null) => void;
9
9
  };
10
- export declare const LoadingCardView: import("react").ForwardRefExoticComponent<Omit<LoadingCardViewProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
10
+ export declare const LoadingCardView: import("react").ForwardRefExoticComponent<Omit<SharedCardViewProps & WithAnalyticsEventsProps & {
11
+ metadata?: FileDetails | undefined;
12
+ disableAnimation?: boolean | undefined;
13
+ readonly innerRef?: ((instance: HTMLDivElement | null) => void) | undefined;
14
+ }, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
@@ -5,4 +5,7 @@ export type ProcessingCardViewProps = SharedCardViewProps & WithAnalyticsEventsP
5
5
  disableAnimation?: boolean;
6
6
  readonly innerRef?: (instance: HTMLDivElement | null) => void;
7
7
  };
8
- export declare const ProcessingCardView: import("react").ForwardRefExoticComponent<Omit<ProcessingCardViewProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
8
+ export declare const ProcessingCardView: import("react").ForwardRefExoticComponent<Omit<SharedCardViewProps & WithAnalyticsEventsProps & {
9
+ disableAnimation?: boolean | undefined;
10
+ readonly innerRef?: ((instance: HTMLDivElement | null) => void) | undefined;
11
+ }, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
@@ -18,4 +18,17 @@ export type VideoCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps
18
18
  readonly innerRef?: (instance: HTMLDivElement | null) => void;
19
19
  readonly progress?: number;
20
20
  };
21
- export declare const VideoCardView: import("react").ForwardRefExoticComponent<Omit<VideoCardViewProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
21
+ export declare const VideoCardView: import("react").ForwardRefExoticComponent<Omit<SharedCardViewProps & WithAnalyticsEventsProps & {
22
+ status: CardStatus;
23
+ cardPreview: CardPreview;
24
+ readonly alt?: string | undefined;
25
+ readonly resizeMode?: ImageResizeMode | undefined;
26
+ readonly onDisplayImage?: (() => void) | undefined;
27
+ readonly nativeLazyLoad?: boolean | undefined;
28
+ readonly forceSyncDisplay?: boolean | undefined;
29
+ readonly onImageLoad?: ((cardPreview: CardPreview) => void) | undefined;
30
+ readonly onImageError?: ((cardPreview: CardPreview) => void) | undefined;
31
+ metadata?: FileDetails | undefined;
32
+ readonly innerRef?: ((instance: HTMLDivElement | null) => void) | undefined;
33
+ readonly progress?: number | undefined;
34
+ }, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "77.11.0",
3
+ "version": "77.11.2",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,22 +36,21 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@atlaskit/analytics-next": "^9.2.0",
40
- "@atlaskit/dropdown-menu": "^12.8.0",
41
- "@atlaskit/editor-shared-styles": "^2.9.0",
39
+ "@atlaskit/analytics-next": "^9.3.0",
40
+ "@atlaskit/dropdown-menu": "^12.10.0",
41
+ "@atlaskit/editor-shared-styles": "^2.10.0",
42
42
  "@atlaskit/icon": "^22.1.0",
43
- "@atlaskit/media-client": "^26.3.0",
43
+ "@atlaskit/media-client": "^27.0.0",
44
44
  "@atlaskit/media-client-react": "^2.0.0",
45
- "@atlaskit/media-common": "^11.1.0",
45
+ "@atlaskit/media-common": "^11.2.0",
46
46
  "@atlaskit/media-file-preview": "^0.5.0",
47
- "@atlaskit/media-ui": "^25.6.0",
48
- "@atlaskit/media-viewer": "^48.4.0",
47
+ "@atlaskit/media-ui": "^25.10.0",
48
+ "@atlaskit/media-viewer": "^48.5.0",
49
49
  "@atlaskit/platform-feature-flags": "^0.2.2",
50
- "@atlaskit/primitives": "^5.5.0",
51
- "@atlaskit/spinner": "^16.0.0",
50
+ "@atlaskit/spinner": "^16.1.0",
52
51
  "@atlaskit/theme": "^12.7.0",
53
- "@atlaskit/tokens": "^1.43.0",
54
- "@atlaskit/tooltip": "^18.2.0",
52
+ "@atlaskit/tokens": "^1.45.0",
53
+ "@atlaskit/tooltip": "^18.3.0",
55
54
  "@atlaskit/ufo": "^0.2.0",
56
55
  "@atlaskit/ufo-interaction-ignore": "^1.1.0",
57
56
  "@babel/runtime": "^7.0.0",
@@ -70,12 +69,13 @@
70
69
  "@af/integration-testing": "*",
71
70
  "@atlaskit/analytics-listeners": "^8.9.0",
72
71
  "@atlaskit/analytics-namespaced-context": "^6.9.0",
73
- "@atlaskit/inline-message": "^12.0.0",
72
+ "@atlaskit/inline-message": "^12.1.0",
74
73
  "@atlaskit/media-core": "^34.2.0",
75
74
  "@atlaskit/media-picker": "^66.4.0",
76
75
  "@atlaskit/media-state": "^1.0.0",
77
- "@atlaskit/media-test-data": "^1.3.0",
76
+ "@atlaskit/media-test-data": "^2.1.0",
78
77
  "@atlaskit/media-test-helpers": "^33.0.0",
78
+ "@atlaskit/primitives": "^6.1.0",
79
79
  "@atlaskit/ssr": "*",
80
80
  "@atlaskit/visual-regression": "*",
81
81
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
@@ -101,10 +101,6 @@
101
101
  },
102
102
  "platform.media-experience.card-views-refactor_b91lr": {
103
103
  "type": "boolean"
104
- },
105
- "platform.corex.password-protected-pdf_ht8re": {
106
- "type": "boolean",
107
- "referenceOnly": "true"
108
104
  }
109
105
  },
110
106
  "techstack": {