@atlaskit/media-card 78.11.0 → 78.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 78.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#162388](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/162388)
8
+ [`95e70f4e28842`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/95e70f4e28842) -
9
+ Move `@atlaskit/ufo-interaction-ignore` to `@atlaskit/react-ufo`
10
+
11
+ ## 78.12.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`6099ac032dd30`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6099ac032dd30) -
16
+ Added viewerOptions to override file preview renderer in media components
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 78.11.0
4
23
 
5
24
  ### Minor Changes
@@ -22,7 +22,7 @@ var _excluded = ["identifier"];
22
22
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
23
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
24
  var packageName = "@atlaskit/media-card";
25
- var packageVersion = "78.11.0";
25
+ var packageVersion = "78.12.1";
26
26
  var CardBase = exports.CardBase = function CardBase(_ref) {
27
27
  var identifier = _ref.identifier,
28
28
  otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
@@ -71,7 +71,8 @@ var FileCard = exports.FileCard = function FileCard(_ref) {
71
71
  mediaViewerItems = _ref.mediaViewerItems,
72
72
  onClick = _ref.onClick,
73
73
  onMouseEnter = _ref.onMouseEnter,
74
- videoControlsWrapperRef = _ref.videoControlsWrapperRef;
74
+ videoControlsWrapperRef = _ref.videoControlsWrapperRef,
75
+ viewerOptions = _ref.viewerOptions;
75
76
  var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
76
77
  createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
77
78
  //----------------------------------------------------------------//
@@ -669,6 +670,7 @@ var FileCard = exports.FileCard = function FileCard(_ref) {
669
670
  setMediaViewerSelectedItem(null);
670
671
  },
671
672
  contextId: contextId,
672
- featureFlags: featureFlags
673
+ featureFlags: featureFlags,
674
+ viewerOptions: viewerOptions
673
675
  }), document.body) : null, getSsrScriptProps && /*#__PURE__*/_react.default.createElement("script", getSsrScriptProps()));
674
676
  };
@@ -90,7 +90,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
90
90
  }(_react.default.Component);
91
91
  (0, _defineProperty2.default)(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
92
92
  var packageName = "@atlaskit/media-card";
93
- var packageVersion = "78.11.0";
93
+ var packageVersion = "78.12.1";
94
94
 
95
95
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
96
96
  var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
@@ -119,7 +119,7 @@ var MediaInlineCardLoader = exports.default = /*#__PURE__*/function (_React$Pure
119
119
  ErrorBoundary = _this$state.ErrorBoundary;
120
120
  var analyticsContext = {
121
121
  packageVersion: "@atlaskit/media-card",
122
- packageName: "78.11.0",
122
+ packageName: "78.12.1",
123
123
  componentName: 'mediaInlineCard',
124
124
  component: 'mediaInlineCard'
125
125
  };
@@ -31,7 +31,8 @@ var MediaInlineCardInternal = exports.MediaInlineCardInternal = function MediaIn
31
31
  isSelected = _ref.isSelected,
32
32
  onClick = _ref.onClick,
33
33
  mediaViewerItems = _ref.mediaViewerItems,
34
- intl = _ref.intl;
34
+ intl = _ref.intl,
35
+ viewerOptions = _ref.viewerOptions;
35
36
  var _useState = (0, _react.useState)(),
36
37
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
37
38
  fileState = _useState2[0],
@@ -88,7 +89,8 @@ var MediaInlineCardInternal = exports.MediaInlineCardInternal = function MediaIn
88
89
  items: mediaViewerItems || [],
89
90
  mediaClientConfig: mediaClient.mediaClientConfig,
90
91
  selectedItem: identifier,
91
- onClose: onMediaViewerClose
92
+ onClose: onMediaViewerClose,
93
+ viewerOptions: viewerOptions
92
94
  }), document.body);
93
95
  }
94
96
  return null;
@@ -15,7 +15,7 @@ var _mediaClient = require("@atlaskit/media-client");
15
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
16
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
17
  var packageName = "@atlaskit/media-card";
18
- var packageVersion = "78.11.0";
18
+ var packageVersion = "78.12.1";
19
19
  var concurrentExperience;
20
20
  var getExperience = function getExperience(id) {
21
21
  if (!concurrentExperience) {
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.ViewportDetector = void 0;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
- var _ufoInteractionIgnore = _interopRequireDefault(require("@atlaskit/ufo-interaction-ignore"));
11
+ var _interactionIgnore = _interopRequireDefault(require("@atlaskit/react-ufo/interaction-ignore"));
12
12
  var _document = _interopRequireDefault(require("./document"));
13
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
14
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -67,7 +67,7 @@ var ViewportObserver = function ViewportObserver(_ref) {
67
67
  intersectionObserver.disconnect();
68
68
  };
69
69
  }, [cardEl, onVisibleCallback]);
70
- return /*#__PURE__*/_react.default.createElement(_ufoInteractionIgnore.default, {
70
+ return /*#__PURE__*/_react.default.createElement(_interactionIgnore.default, {
71
71
  ignore: !isVisible
72
72
  }, children);
73
73
  };
@@ -10,7 +10,7 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next';
10
10
  import { fg } from '@atlaskit/platform-feature-flags';
11
11
  import UFOLabel from '@atlaskit/react-ufo/label';
12
12
  const packageName = "@atlaskit/media-card";
13
- const packageVersion = "78.11.0";
13
+ const packageVersion = "78.12.1";
14
14
  export const CardBase = ({
15
15
  identifier,
16
16
  ...otherProps
@@ -53,7 +53,8 @@ export const FileCard = ({
53
53
  mediaViewerItems,
54
54
  onClick,
55
55
  onMouseEnter,
56
- videoControlsWrapperRef
56
+ videoControlsWrapperRef,
57
+ viewerOptions
57
58
  }) => {
58
59
  const {
59
60
  createAnalyticsEvent
@@ -621,6 +622,7 @@ export const FileCard = ({
621
622
  setMediaViewerSelectedItem(null);
622
623
  },
623
624
  contextId: contextId,
624
- featureFlags: featureFlags
625
+ featureFlags: featureFlags,
626
+ viewerOptions: viewerOptions
625
627
  }), document.body) : null, getSsrScriptProps && /*#__PURE__*/React.createElement("script", getSsrScriptProps()));
626
628
  };
@@ -66,7 +66,7 @@ class WrappedMediaCardAnalyticsErrorBoundary extends React.Component {
66
66
  }
67
67
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
68
68
  const packageName = "@atlaskit/media-card";
69
- const packageVersion = "78.11.0";
69
+ const packageVersion = "78.12.1";
70
70
 
71
71
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
72
72
  const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
@@ -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: "78.11.0",
40
+ packageName: "78.12.1",
41
41
  componentName: 'mediaInlineCard',
42
42
  component: 'mediaInlineCard'
43
43
  };
@@ -20,7 +20,8 @@ export const MediaInlineCardInternal = ({
20
20
  isSelected,
21
21
  onClick,
22
22
  mediaViewerItems,
23
- intl
23
+ intl,
24
+ viewerOptions
24
25
  }) => {
25
26
  const [fileState, setFileState] = useState();
26
27
  const [subscribeError, setSubscribeError] = useState();
@@ -60,7 +61,8 @@ export const MediaInlineCardInternal = ({
60
61
  items: mediaViewerItems || [],
61
62
  mediaClientConfig: mediaClient.mediaClientConfig,
62
63
  selectedItem: identifier,
63
- onClose: onMediaViewerClose
64
+ onClose: onMediaViewerClose,
65
+ viewerOptions: viewerOptions
64
66
  }), document.body);
65
67
  }
66
68
  return null;
@@ -5,7 +5,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
5
5
  import { MediaCardError } from '../errors';
6
6
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
7
7
  const packageName = "@atlaskit/media-card";
8
- const packageVersion = "78.11.0";
8
+ const packageVersion = "78.12.1";
9
9
  let concurrentExperience;
10
10
  const getExperience = id => {
11
11
  if (!concurrentExperience) {
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useCallback, useState } from 'react';
2
- import UFOInteractionIgnore from '@atlaskit/ufo-interaction-ignore';
2
+ import UFOInteractionIgnore from '@atlaskit/react-ufo/interaction-ignore';
3
3
  import getDocument from './document';
4
4
  const ABS_VIEWPORT_ANCHOR_OFFSET_TOP = 900; //px
5
5
 
@@ -12,7 +12,7 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next';
12
12
  import { fg } from '@atlaskit/platform-feature-flags';
13
13
  import UFOLabel from '@atlaskit/react-ufo/label';
14
14
  var packageName = "@atlaskit/media-card";
15
- var packageVersion = "78.11.0";
15
+ var packageVersion = "78.12.1";
16
16
  export var CardBase = function CardBase(_ref) {
17
17
  var identifier = _ref.identifier,
18
18
  otherProps = _objectWithoutProperties(_ref, _excluded);
@@ -62,7 +62,8 @@ export var FileCard = function FileCard(_ref) {
62
62
  mediaViewerItems = _ref.mediaViewerItems,
63
63
  onClick = _ref.onClick,
64
64
  onMouseEnter = _ref.onMouseEnter,
65
- videoControlsWrapperRef = _ref.videoControlsWrapperRef;
65
+ videoControlsWrapperRef = _ref.videoControlsWrapperRef,
66
+ viewerOptions = _ref.viewerOptions;
66
67
  var _useAnalyticsEvents = useAnalyticsEvents(),
67
68
  createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
68
69
  //----------------------------------------------------------------//
@@ -660,6 +661,7 @@ export var FileCard = function FileCard(_ref) {
660
661
  setMediaViewerSelectedItem(null);
661
662
  },
662
663
  contextId: contextId,
663
- featureFlags: featureFlags
664
+ featureFlags: featureFlags,
665
+ viewerOptions: viewerOptions
664
666
  }), document.body) : null, getSsrScriptProps && /*#__PURE__*/React.createElement("script", getSsrScriptProps()));
665
667
  };
@@ -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 = "78.11.0";
86
+ var packageVersion = "78.12.1";
87
87
 
88
88
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
89
89
  var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
@@ -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: "78.11.0",
106
+ packageName: "78.12.1",
107
107
  componentName: 'mediaInlineCard',
108
108
  component: 'mediaInlineCard'
109
109
  };
@@ -21,7 +21,8 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
21
21
  isSelected = _ref.isSelected,
22
22
  onClick = _ref.onClick,
23
23
  mediaViewerItems = _ref.mediaViewerItems,
24
- intl = _ref.intl;
24
+ intl = _ref.intl,
25
+ viewerOptions = _ref.viewerOptions;
25
26
  var _useState = useState(),
26
27
  _useState2 = _slicedToArray(_useState, 2),
27
28
  fileState = _useState2[0],
@@ -78,7 +79,8 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
78
79
  items: mediaViewerItems || [],
79
80
  mediaClientConfig: mediaClient.mediaClientConfig,
80
81
  selectedItem: identifier,
81
- onClose: onMediaViewerClose
82
+ onClose: onMediaViewerClose,
83
+ viewerOptions: viewerOptions
82
84
  }), document.body);
83
85
  }
84
86
  return null;
@@ -8,7 +8,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
8
8
  import { MediaCardError } from '../errors';
9
9
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
10
10
  var packageName = "@atlaskit/media-card";
11
- var packageVersion = "78.11.0";
11
+ var packageVersion = "78.12.1";
12
12
  var concurrentExperience;
13
13
  var getExperience = function getExperience(id) {
14
14
  if (!concurrentExperience) {
@@ -3,7 +3,7 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
3
3
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
4
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
5
  import React, { useEffect, useCallback, useState } from 'react';
6
- import UFOInteractionIgnore from '@atlaskit/ufo-interaction-ignore';
6
+ import UFOInteractionIgnore from '@atlaskit/react-ufo/interaction-ignore';
7
7
  import getDocument from './document';
8
8
  var ABS_VIEWPORT_ANCHOR_OFFSET_TOP = 900; //px
9
9
 
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { type FileIdentifier, type Identifier, type ImageResizeMode } from '@atlaskit/media-client';
3
3
  import { type MediaFeatureFlags, type NumericalCardDimensions, type SSR } from '@atlaskit/media-common';
4
+ import { type ViewerOptionsProps } from '@atlaskit/media-viewer';
4
5
  import { type CardAppearance, type CardDimensions, type CardEventProps, type TitleBoxIcon } from '../types';
5
6
  import { type CardAction } from './actions';
6
7
  export interface FileCardProps extends CardEventProps {
@@ -47,5 +48,7 @@ export interface FileCardProps extends CardEventProps {
47
48
  readonly ssr?: SSR;
48
49
  /** Disable tooltip for the card */
49
50
  readonly shouldHideTooltip?: boolean;
51
+ /** Sets options for viewer **/
52
+ readonly viewerOptions?: ViewerOptionsProps;
50
53
  }
51
- export declare const FileCard: ({ appearance, resizeMode, isLazy, disableOverlay, featureFlags, identifier, ssr, dimensions, originalDimensions, contextId, alt, actions, shouldEnableDownloadButton, useInlinePlayer, shouldOpenMediaViewer, onFullscreenChange, selectable, selected, testId, titleBoxBgColor, titleBoxIcon, shouldHideTooltip, mediaViewerItems, onClick, onMouseEnter, videoControlsWrapperRef, }: FileCardProps) => JSX.Element;
54
+ export declare const FileCard: ({ appearance, resizeMode, isLazy, disableOverlay, featureFlags, identifier, ssr, dimensions, originalDimensions, contextId, alt, actions, shouldEnableDownloadButton, useInlinePlayer, shouldOpenMediaViewer, onFullscreenChange, selectable, selected, testId, titleBoxBgColor, titleBoxIcon, shouldHideTooltip, mediaViewerItems, onClick, onMouseEnter, videoControlsWrapperRef, viewerOptions, }: FileCardProps) => JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { type FileIdentifier, type Identifier, type MediaClient } from '@atlaskit/media-client';
2
+ import { type ViewerOptionsProps } from '@atlaskit/media-viewer';
2
3
  import React, { type FC } from 'react';
3
4
  import { type WrappedComponentProps } from 'react-intl-next';
4
5
  import { type InlineCardOnClickCallback } from '../types';
@@ -10,6 +11,7 @@ export interface MediaInlineCardProps {
10
11
  isSelected?: boolean;
11
12
  onClick?: InlineCardOnClickCallback;
12
13
  mediaViewerItems?: Identifier[];
14
+ viewerOptions?: ViewerOptionsProps;
13
15
  }
14
16
  export declare const MediaInlineCardInternal: FC<MediaInlineCardProps & WrappedComponentProps>;
15
17
  export declare const MediaInlineCard: React.FC<MediaInlineCardProps>;
@@ -8,6 +8,7 @@ import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
8
8
  import { type MediaFeatureFlags, type NumericalCardDimensions, type SSR } from '@atlaskit/media-common';
9
9
  import { type CardAction } from './card/actions';
10
10
  import { type MediaCardError } from './errors';
11
+ import { type ViewerOptionsProps } from '@atlaskit/media-viewer';
11
12
  export type CardStatus = 'uploading' | 'loading' | 'processing' | 'loading-preview' | 'complete' | 'error' | 'failed-processing';
12
13
  export type FilePreviewStatus = {
13
14
  hasFilesize: boolean;
@@ -63,6 +64,7 @@ export interface SharedCardProps {
63
64
  readonly testId?: string;
64
65
  readonly titleBoxBgColor?: string;
65
66
  readonly titleBoxIcon?: TitleBoxIcon;
67
+ readonly viewerOptions?: ViewerOptionsProps;
66
68
  }
67
69
  export interface CardOnClickCallback {
68
70
  (result: CardEvent, analyticsEvent?: UIAnalyticsEvent): void;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { type FileIdentifier, type Identifier, type ImageResizeMode } from '@atlaskit/media-client';
3
3
  import { type MediaFeatureFlags, type NumericalCardDimensions, type SSR } from '@atlaskit/media-common';
4
+ import { type ViewerOptionsProps } from '@atlaskit/media-viewer';
4
5
  import { type CardAppearance, type CardDimensions, type CardEventProps, type TitleBoxIcon } from '../types';
5
6
  import { type CardAction } from './actions';
6
7
  export interface FileCardProps extends CardEventProps {
@@ -47,5 +48,7 @@ export interface FileCardProps extends CardEventProps {
47
48
  readonly ssr?: SSR;
48
49
  /** Disable tooltip for the card */
49
50
  readonly shouldHideTooltip?: boolean;
51
+ /** Sets options for viewer **/
52
+ readonly viewerOptions?: ViewerOptionsProps;
50
53
  }
51
- export declare const FileCard: ({ appearance, resizeMode, isLazy, disableOverlay, featureFlags, identifier, ssr, dimensions, originalDimensions, contextId, alt, actions, shouldEnableDownloadButton, useInlinePlayer, shouldOpenMediaViewer, onFullscreenChange, selectable, selected, testId, titleBoxBgColor, titleBoxIcon, shouldHideTooltip, mediaViewerItems, onClick, onMouseEnter, videoControlsWrapperRef, }: FileCardProps) => JSX.Element;
54
+ export declare const FileCard: ({ appearance, resizeMode, isLazy, disableOverlay, featureFlags, identifier, ssr, dimensions, originalDimensions, contextId, alt, actions, shouldEnableDownloadButton, useInlinePlayer, shouldOpenMediaViewer, onFullscreenChange, selectable, selected, testId, titleBoxBgColor, titleBoxIcon, shouldHideTooltip, mediaViewerItems, onClick, onMouseEnter, videoControlsWrapperRef, viewerOptions, }: FileCardProps) => JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { type FileIdentifier, type Identifier, type MediaClient } from '@atlaskit/media-client';
2
+ import { type ViewerOptionsProps } from '@atlaskit/media-viewer';
2
3
  import React, { type FC } from 'react';
3
4
  import { type WrappedComponentProps } from 'react-intl-next';
4
5
  import { type InlineCardOnClickCallback } from '../types';
@@ -10,6 +11,7 @@ export interface MediaInlineCardProps {
10
11
  isSelected?: boolean;
11
12
  onClick?: InlineCardOnClickCallback;
12
13
  mediaViewerItems?: Identifier[];
14
+ viewerOptions?: ViewerOptionsProps;
13
15
  }
14
16
  export declare const MediaInlineCardInternal: FC<MediaInlineCardProps & WrappedComponentProps>;
15
17
  export declare const MediaInlineCard: React.FC<MediaInlineCardProps>;
@@ -8,6 +8,7 @@ import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
8
8
  import { type MediaFeatureFlags, type NumericalCardDimensions, type SSR } from '@atlaskit/media-common';
9
9
  import { type CardAction } from './card/actions';
10
10
  import { type MediaCardError } from './errors';
11
+ import { type ViewerOptionsProps } from '@atlaskit/media-viewer';
11
12
  export type CardStatus = 'uploading' | 'loading' | 'processing' | 'loading-preview' | 'complete' | 'error' | 'failed-processing';
12
13
  export type FilePreviewStatus = {
13
14
  hasFilesize: boolean;
@@ -63,6 +64,7 @@ export interface SharedCardProps {
63
64
  readonly testId?: string;
64
65
  readonly titleBoxBgColor?: string;
65
66
  readonly titleBoxIcon?: TitleBoxIcon;
67
+ readonly viewerOptions?: ViewerOptionsProps;
66
68
  }
67
69
  export interface CardOnClickCallback {
68
70
  (result: CardEvent, analyticsEvent?: UIAnalyticsEvent): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "78.11.0",
3
+ "version": "78.12.1",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,22 +39,21 @@
39
39
  "@atlaskit/dropdown-menu": "^12.22.0",
40
40
  "@atlaskit/editor-shared-styles": "^3.2.0",
41
41
  "@atlaskit/icon": "^22.24.0",
42
- "@atlaskit/media-client": "^28.0.0",
42
+ "@atlaskit/media-client": "^28.2.0",
43
43
  "@atlaskit/media-client-react": "^2.3.0",
44
44
  "@atlaskit/media-common": "^11.7.0",
45
45
  "@atlaskit/media-file-preview": "^0.9.0",
46
46
  "@atlaskit/media-svg": "^0.2.0",
47
- "@atlaskit/media-ui": "^26.0.0",
48
- "@atlaskit/media-viewer": "^49.2.0",
47
+ "@atlaskit/media-ui": "^26.1.0",
48
+ "@atlaskit/media-viewer": "^49.3.0",
49
49
  "@atlaskit/platform-feature-flags": "^0.3.0",
50
- "@atlaskit/primitives": "^13.0.0",
50
+ "@atlaskit/primitives": "^13.1.0",
51
51
  "@atlaskit/react-ufo": "^2.2.0",
52
52
  "@atlaskit/spinner": "^16.3.0",
53
53
  "@atlaskit/theme": "^14.0.0",
54
54
  "@atlaskit/tokens": "^2.2.0",
55
- "@atlaskit/tooltip": "^18.8.0",
55
+ "@atlaskit/tooltip": "^18.9.0",
56
56
  "@atlaskit/ufo": "^0.3.0",
57
- "@atlaskit/ufo-interaction-ignore": "^1.3.0",
58
57
  "@atlaskit/visually-hidden": "^1.5.0",
59
58
  "@babel/runtime": "^7.0.0",
60
59
  "classnames": "^2.2.5",
@@ -79,7 +78,7 @@
79
78
  "@atlaskit/media-picker": "^67.0.0",
80
79
  "@atlaskit/media-state": "^1.1.0",
81
80
  "@atlaskit/media-test-data": "^2.6.0",
82
- "@atlaskit/media-test-helpers": "^34.5.0",
81
+ "@atlaskit/media-test-helpers": "^34.6.0",
83
82
  "@atlaskit/radio": "^6.5.0",
84
83
  "@atlaskit/range": "^7.4.0",
85
84
  "@atlaskit/ssr": "*",