@atlaskit/media-card 81.8.10 → 81.9.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,22 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 81.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 81.9.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
14
+ Remove stale API report artifacts from published Platform packages.
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 81.8.10
4
21
 
5
22
  ### Patch Changes
@@ -20,7 +20,7 @@ var _label = _interopRequireDefault(require("@atlaskit/react-ufo/label"));
20
20
  var _excluded = ["identifier"];
21
21
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
22
22
  var packageName = "@atlaskit/media-card";
23
- var packageVersion = "81.8.9";
23
+ var packageVersion = "81.9.0";
24
24
  var CardBase = exports.CardBase = function CardBase(_ref) {
25
25
  var identifier = _ref.identifier,
26
26
  otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
@@ -87,7 +87,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
87
87
  }(_react.default.Component);
88
88
  (0, _defineProperty2.default)(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
89
89
  var packageName = "@atlaskit/media-card";
90
- var packageVersion = "81.8.9";
90
+ var packageVersion = "81.9.0";
91
91
 
92
92
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
93
93
  var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
@@ -116,7 +116,7 @@ var MediaInlineCardLoader = exports.default = /*#__PURE__*/function (_React$Pure
116
116
  ErrorBoundary = _this$state.ErrorBoundary;
117
117
  var analyticsContext = {
118
118
  packageVersion: "@atlaskit/media-card",
119
- packageName: "81.8.9",
119
+ packageName: "81.9.0",
120
120
  componentName: 'mediaInlineCard',
121
121
  component: 'mediaInlineCard'
122
122
  };
@@ -22,7 +22,7 @@ var _globalScope = require("./globalScope/globalScope");
22
22
  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; }
23
23
  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; }
24
24
  var packageName = "@atlaskit/media-card";
25
- var packageVersion = "81.8.9";
25
+ var packageVersion = "81.9.0";
26
26
  var SAMPLE_RATE = 0.05;
27
27
 
28
28
  /**
@@ -9,7 +9,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
9
9
  import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
10
10
  import UFOLabel from '@atlaskit/react-ufo/label';
11
11
  const packageName = "@atlaskit/media-card";
12
- const packageVersion = "81.8.9";
12
+ const packageVersion = "81.9.0";
13
13
  export const CardBase = ({
14
14
  identifier,
15
15
  ...otherProps
@@ -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 = "81.8.9";
69
+ const packageVersion = "81.9.0";
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: "81.8.9",
40
+ packageName: "81.9.0",
41
41
  componentName: 'mediaInlineCard',
42
42
  component: 'mediaInlineCard'
43
43
  };
@@ -11,7 +11,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
11
11
  import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
12
12
  import { getMediaGlobalScope } from './globalScope/globalScope';
13
13
  const packageName = "@atlaskit/media-card";
14
- const packageVersion = "81.8.9";
14
+ const packageVersion = "81.9.0";
15
15
  const SAMPLE_RATE = 0.05;
16
16
 
17
17
  /**
@@ -11,7 +11,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
11
11
  import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
12
12
  import UFOLabel from '@atlaskit/react-ufo/label';
13
13
  var packageName = "@atlaskit/media-card";
14
- var packageVersion = "81.8.9";
14
+ var packageVersion = "81.9.0";
15
15
  export var CardBase = function CardBase(_ref) {
16
16
  var identifier = _ref.identifier,
17
17
  otherProps = _objectWithoutProperties(_ref, _excluded);
@@ -80,7 +80,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
80
80
  }(React.Component);
81
81
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
82
82
  var packageName = "@atlaskit/media-card";
83
- var packageVersion = "81.8.9";
83
+ var packageVersion = "81.9.0";
84
84
 
85
85
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
86
86
  var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
@@ -101,7 +101,7 @@ var MediaInlineCardLoader = /*#__PURE__*/function (_React$PureComponent) {
101
101
  ErrorBoundary = _this$state.ErrorBoundary;
102
102
  var analyticsContext = {
103
103
  packageVersion: "@atlaskit/media-card",
104
- packageName: "81.8.9",
104
+ packageName: "81.9.0",
105
105
  componentName: 'mediaInlineCard',
106
106
  component: 'mediaInlineCard'
107
107
  };
@@ -15,7 +15,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
15
15
  import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
16
16
  import { getMediaGlobalScope } from './globalScope/globalScope';
17
17
  var packageName = "@atlaskit/media-card";
18
- var packageVersion = "81.8.9";
18
+ var packageVersion = "81.9.0";
19
19
  var SAMPLE_RATE = 0.05;
20
20
 
21
21
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "81.8.10",
3
+ "version": "81.9.1",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,33 +30,33 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/analytics-next": "^12.4.0",
34
- "@atlaskit/dropdown-menu": "^18.2.0",
35
- "@atlaskit/editor-shared-styles": "^4.0.0",
36
- "@atlaskit/icon": "^37.5.0",
37
- "@atlaskit/interaction-context": "^4.0.0",
33
+ "@atlaskit/analytics-next": "^12.5.0",
34
+ "@atlaskit/dropdown-menu": "^18.3.0",
35
+ "@atlaskit/editor-shared-styles": "^4.1.0",
36
+ "@atlaskit/icon": "^37.6.0",
37
+ "@atlaskit/interaction-context": "^4.1.0",
38
38
  "@atlaskit/link": "^5.1.0",
39
- "@atlaskit/media-client": "^37.5.0",
40
- "@atlaskit/media-client-react": "^6.2.0",
41
- "@atlaskit/media-common": "^14.5.0",
39
+ "@atlaskit/media-client": "^37.6.0",
40
+ "@atlaskit/media-client-react": "^6.3.0",
41
+ "@atlaskit/media-common": "^14.6.0",
42
42
  "@atlaskit/media-file-preview": "^1.3.0",
43
- "@atlaskit/media-state": "^3.1.0",
43
+ "@atlaskit/media-state": "^3.2.0",
44
44
  "@atlaskit/media-svg": "^3.3.0",
45
- "@atlaskit/media-ui": "^30.14.0",
46
- "@atlaskit/media-viewer": "^54.7.0",
47
- "@atlaskit/platform-feature-flags": "^2.1.0",
48
- "@atlaskit/primitives": "^22.4.0",
49
- "@atlaskit/progress-bar": "^5.2.0",
45
+ "@atlaskit/media-ui": "^30.15.0",
46
+ "@atlaskit/media-viewer": "^54.8.0",
47
+ "@atlaskit/platform-feature-flags": "^2.2.0",
48
+ "@atlaskit/primitives": "^22.5.0",
49
+ "@atlaskit/progress-bar": "^5.3.0",
50
50
  "@atlaskit/react-compiler-gating": "^0.2.0",
51
51
  "@atlaskit/react-ufo": "^7.7.0",
52
- "@atlaskit/section-message": "^10.1.0",
53
- "@atlaskit/spinner": "^20.3.0",
54
- "@atlaskit/theme": "^28.1.0",
55
- "@atlaskit/tmp-editor-statsig": "^168.0.0",
56
- "@atlaskit/tokens": "^16.9.0",
57
- "@atlaskit/tooltip": "^24.2.0",
58
- "@atlaskit/ufo": "^1.0.0",
59
- "@atlaskit/visually-hidden": "^4.3.0",
52
+ "@atlaskit/section-message": "^10.2.0",
53
+ "@atlaskit/spinner": "^20.4.0",
54
+ "@atlaskit/theme": "^28.2.0",
55
+ "@atlaskit/tmp-editor-statsig": "^169.0.0",
56
+ "@atlaskit/tokens": "^16.10.0",
57
+ "@atlaskit/tooltip": "^24.3.0",
58
+ "@atlaskit/ufo": "^1.1.0",
59
+ "@atlaskit/visually-hidden": "^4.4.0",
60
60
  "@babel/runtime": "^7.0.0",
61
61
  "@compiled/react": "^1.0.2",
62
62
  "classnames": "^2.2.5",
@@ -73,26 +73,26 @@
73
73
  },
74
74
  "devDependencies": {
75
75
  "@af/integration-testing": "workspace:^",
76
- "@atlaskit/analytics-listeners": "^11.2.0",
77
- "@atlaskit/analytics-namespaced-context": "^8.1.0",
78
- "@atlaskit/button": "^25.2.0",
79
- "@atlaskit/checkbox": "^19.1.0",
80
- "@atlaskit/form": "^17.1.0",
81
- "@atlaskit/heading": "^7.1.0",
82
- "@atlaskit/inline-message": "^16.3.0",
83
- "@atlaskit/media-core": "^38.1.0",
84
- "@atlaskit/media-picker": "^72.3.0",
76
+ "@atlaskit/analytics-listeners": "^11.3.0",
77
+ "@atlaskit/analytics-namespaced-context": "^8.2.0",
78
+ "@atlaskit/button": "^25.3.0",
79
+ "@atlaskit/checkbox": "^19.2.0",
80
+ "@atlaskit/form": "^17.2.0",
81
+ "@atlaskit/heading": "^7.2.0",
82
+ "@atlaskit/inline-message": "^16.4.0",
83
+ "@atlaskit/media-core": "^38.2.0",
84
+ "@atlaskit/media-picker": "^72.4.0",
85
85
  "@atlaskit/media-test-data": "^4.0.0",
86
- "@atlaskit/media-test-helpers": "^42.3.0",
87
- "@atlaskit/radio": "^10.1.0",
88
- "@atlaskit/range": "^12.1.0",
89
- "@atlaskit/select": "^22.10.0",
86
+ "@atlaskit/media-test-helpers": "^42.4.0",
87
+ "@atlaskit/radio": "^10.2.0",
88
+ "@atlaskit/range": "^12.2.0",
89
+ "@atlaskit/select": "^22.11.0",
90
90
  "@atlaskit/ssr": "workspace:^",
91
- "@atlaskit/toggle": "^17.2.0",
91
+ "@atlaskit/toggle": "^17.3.0",
92
92
  "@atlassian/a11y-jest-testing": "^0.17.0",
93
- "@atlassian/feature-flags-test-utils": "^1.2.0",
93
+ "@atlassian/feature-flags-test-utils": "^1.3.0",
94
94
  "@atlassian/testing-library": "^0.11.0",
95
- "@atlassian/ufo": "^0.9.0",
95
+ "@atlassian/ufo": "^0.10.0",
96
96
  "@testing-library/dom": "^10.1.0",
97
97
  "@testing-library/react": "^16.3.0",
98
98
  "@testing-library/user-event": "^14.4.3",
package/report.api.md DELETED
@@ -1,424 +0,0 @@
1
- <!-- API Report Version: 2.3 -->
2
-
3
- ## API Report File for "@atlaskit/media-card"
4
-
5
- > Do not edit this file. This report is auto-generated using
6
- > [API Extractor](https://api-extractor.com/).
7
- > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
8
-
9
- ### Table of contents
10
-
11
- - [Main Entry Types](#main-entry-types)
12
- - [Peer Dependencies](#peer-dependencies)
13
-
14
- ### Main Entry Types
15
-
16
- <!--SECTION START: Main Entry Types-->
17
-
18
- ```ts
19
- /// <reference types="react" />
20
-
21
- import { Component } from 'react';
22
- import { FileDetails } from '@atlaskit/media-client';
23
- import { FileIdentifier } from '@atlaskit/media-client';
24
- import { FileItem } from '@atlaskit/media-client';
25
- import { FileState } from '@atlaskit/media-client';
26
- import { Identifier } from '@atlaskit/media-client';
27
- import { ImageResizeMode } from '@atlaskit/media-client';
28
- import { MediaClient } from '@atlaskit/media-client';
29
- import { MediaFeatureFlags } from '@atlaskit/media-common';
30
- import { MediaItemSSRData } from '@atlaskit/media-common';
31
- import { MouseEvent as MouseEvent_2 } from 'react';
32
- import { NumericalCardDimensions } from '@atlaskit/media-common';
33
- import { default as React_2 } from 'react';
34
- import { ReactNode } from 'react';
35
- import { SSR } from '@atlaskit/media-common';
36
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
37
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
38
- import { WithMediaClientConfigProps } from '@atlaskit/media-client-react';
39
- import { WrappedComponentProps } from 'react-intl';
40
-
41
- // @public (undocumented)
42
- export function Card(props: CardWithMediaClientConfigProps): JSX.Element;
43
-
44
- // @public (undocumented)
45
- export interface CardAction {
46
- // (undocumented)
47
- handler: CardEventHandler;
48
- // (undocumented)
49
- icon?: ReactNode;
50
- // (undocumented)
51
- label?: string;
52
- }
53
-
54
- // @public (undocumented)
55
- export type CardAppearance = 'auto' | 'horizontal' | 'image' | 'square';
56
-
57
- // @public (undocumented)
58
- type CardBaseProps = CardProps & WithAnalyticsEventsProps & Partial<WrappedComponentProps>;
59
-
60
- // @public (undocumented)
61
- export interface CardDimensions {
62
- // (undocumented)
63
- height?: CardDimensionValue;
64
- // (undocumented)
65
- width?: CardDimensionValue;
66
- }
67
-
68
- // @public (undocumented)
69
- export type CardDimensionValue = number | string;
70
-
71
- // @public (undocumented)
72
- export class CardError extends Component<ErrorCardProps, {}> {
73
- // (undocumented)
74
- static defaultProps: {
75
- size: string;
76
- };
77
- // (undocumented)
78
- get icon(): JSX.Element;
79
- // (undocumented)
80
- render(): JSX.Element;
81
- }
82
-
83
- // @public (undocumented)
84
- export interface CardEvent {
85
- // (undocumented)
86
- event: MouseEvent_2<HTMLElement>;
87
- // (undocumented)
88
- mediaItemDetails?: FileDetails;
89
- }
90
-
91
- // @public (undocumented)
92
- export type CardEventHandler = (item?: FileItem, event?: Event) => void;
93
-
94
- // @public (undocumented)
95
- interface CardEventProps {
96
- // (undocumented)
97
- readonly onClick?: CardOnClickCallback;
98
- readonly onFullscreenChange?: (fullscreen: boolean) => void;
99
- // (undocumented)
100
- readonly onMouseEnter?: (result: CardEvent) => void;
101
- }
102
-
103
- // @public (undocumented)
104
- export class CardLoading extends Component<StaticCardProps, {}> {
105
- // (undocumented)
106
- render(): JSX.Element;
107
- }
108
-
109
- // @public (undocumented)
110
- export interface CardOnClickCallback {
111
- // (undocumented)
112
- (result: CardEvent, analyticsEvent?: UIAnalyticsEvent): void;
113
- }
114
-
115
- // @public (undocumented)
116
- export interface CardPreview {
117
- // (undocumented)
118
- dataURI: string;
119
- // (undocumented)
120
- dimensions?: CardDimensions;
121
- // (undocumented)
122
- orientation?: number;
123
- // (undocumented)
124
- source: CardPreviewSource;
125
- }
126
-
127
- // @public (undocumented)
128
- type CardPreviewSource =
129
- | 'cache-local'
130
- | 'cache-remote'
131
- | 'cache-ssr-client'
132
- | 'cache-ssr-server'
133
- | 'external'
134
- | 'local'
135
- | 'remote'
136
- | 'ssr-client'
137
- | 'ssr-data'
138
- | 'ssr-server';
139
-
140
- // @public (undocumented)
141
- export interface CardProps extends SharedCardProps, CardEventProps {
142
- // (undocumented)
143
- readonly contextId?: string;
144
- // (undocumented)
145
- readonly identifier: Identifier;
146
- // (undocumented)
147
- readonly isLazy?: boolean;
148
- // (undocumented)
149
- readonly mediaClient: MediaClient;
150
- // (undocumented)
151
- readonly mediaViewerItems?: Identifier[];
152
- // (undocumented)
153
- readonly shouldEnableDownloadButton?: boolean;
154
- // (undocumented)
155
- readonly shouldHideTooltip?: boolean;
156
- // (undocumented)
157
- readonly shouldOpenMediaViewer?: boolean;
158
- // (undocumented)
159
- readonly ssr?: SSR;
160
- // (undocumented)
161
- readonly ssrFileState?: FileState;
162
- // (undocumented)
163
- readonly useInlinePlayer?: boolean;
164
- }
165
-
166
- // @public (undocumented)
167
- export interface CardState {
168
- // (undocumented)
169
- cardPreview?: CardPreview;
170
- // (undocumented)
171
- cardRef: HTMLDivElement | null;
172
- // (undocumented)
173
- error?: MediaCardError;
174
- // (undocumented)
175
- fileState?: FileState;
176
- // (undocumented)
177
- isBannedLocalPreview: boolean;
178
- // (undocumented)
179
- isCardVisible: boolean;
180
- // (undocumented)
181
- isPlayingFile: boolean;
182
- // (undocumented)
183
- mediaViewerSelectedItem?: Identifier;
184
- // (undocumented)
185
- previewDidRender: boolean;
186
- // (undocumented)
187
- progress?: number;
188
- // (undocumented)
189
- shouldAutoplay?: boolean;
190
- // (undocumented)
191
- shouldUpdateStateForIdentifier?: boolean;
192
- // (undocumented)
193
- status: CardStatus;
194
- // (undocumented)
195
- wasResolvedUpfrontPreview: boolean;
196
- }
197
-
198
- // @public (undocumented)
199
- export type CardStatus =
200
- | 'complete'
201
- | 'error'
202
- | 'failed-processing'
203
- | 'loading'
204
- | 'loading-preview'
205
- | 'processing'
206
- | 'uploading';
207
-
208
- // @public (undocumented)
209
- type CardWithMediaClientConfigProps = WithMediaClientConfigProps<CardBaseProps>;
210
-
211
- // @public (undocumented)
212
- export const defaultImageCardDimensions: {
213
- width: number;
214
- height: number;
215
- };
216
-
217
- // @public (undocumented)
218
- type ErrorBoundaryComponent = React_2.ComponentType<{
219
- data?: {
220
- [k: string]: any;
221
- };
222
- isSelected?: boolean;
223
- }>;
224
-
225
- // @public (undocumented)
226
- interface ErrorCardProps extends StaticCardProps {
227
- // (undocumented)
228
- readonly size: 'large' | 'medium' | 'small' | 'xlarge';
229
- }
230
-
231
- // @public (undocumented)
232
- export const fileCardImageViewSelector = 'media-file-card-view';
233
-
234
- // @public (undocumented)
235
- type ImageLoadPrimaryReason =
236
- | 'cache-local-uri'
237
- | 'cache-remote-uri'
238
- | 'external-uri'
239
- | 'local-uri'
240
- | 'remote-uri'
241
- | 'unknown-uri';
242
-
243
- // @public (undocumented)
244
- export interface InlineCardEvent {
245
- // (undocumented)
246
- event: MouseEvent_2<HTMLElement> | React.KeyboardEvent;
247
- // (undocumented)
248
- mediaItemDetails?: FileDetails;
249
- }
250
-
251
- // @public (undocumented)
252
- export interface InlineCardOnClickCallback {
253
- // (undocumented)
254
- (result: InlineCardEvent, analyticsEvent?: UIAnalyticsEvent): void;
255
- }
256
-
257
- // @public (undocumented)
258
- export const inlinePlayerClassName = 'media-card-inline-player';
259
-
260
- // @public (undocumented)
261
- type LocalPreviewPrimaryReason =
262
- | 'local-preview-get'
263
- | 'local-preview-image'
264
- | 'local-preview-rejected'
265
- | 'local-preview-unsupported'
266
- | 'local-preview-video';
267
-
268
- // @public (undocumented)
269
- class MediaCardError extends Error {
270
- constructor(primaryReason: MediaCardErrorPrimaryReason, secondaryError?: Error | undefined);
271
- // (undocumented)
272
- readonly primaryReason: MediaCardErrorPrimaryReason;
273
- // (undocumented)
274
- readonly secondaryError?: Error | undefined;
275
- }
276
-
277
- // @public
278
- type MediaCardErrorPrimaryReason =
279
- | 'error-file-state'
280
- | 'metadata-fetch'
281
- | 'missing-error-data'
282
- | 'preview-fetch'
283
- | 'upload'
284
- | ImageLoadPrimaryReason
285
- | LocalPreviewPrimaryReason
286
- | RemotePreviewPrimaryReason
287
- | SsrPreviewPrimaryReason;
288
-
289
- // @public (undocumented)
290
- export class MediaInlineCard extends React_2.PureComponent<
291
- MediaInlineCardWithMediaClientConfigProps & MediaInlineCardLoaderState,
292
- MediaInlineCardLoaderState
293
- > {
294
- // (undocumented)
295
- componentDidMount(): Promise<void>;
296
- // (undocumented)
297
- componentWillUnmount(): Promise<void>;
298
- // (undocumented)
299
- static displayName: string;
300
- // (undocumented)
301
- static ErrorBoundary?: ErrorBoundaryComponent;
302
- // (undocumented)
303
- static MediaInlineCard?: MediaInlineCardWithMediaClientConfigComponent;
304
- // (undocumented)
305
- mounted: boolean;
306
- // (undocumented)
307
- render(): JSX.Element;
308
- // (undocumented)
309
- state: MediaInlineCardLoaderState;
310
- }
311
-
312
- // @public (undocumented)
313
- interface MediaInlineCardLoaderState {
314
- // (undocumented)
315
- ErrorBoundary?: ErrorBoundaryComponent;
316
- // (undocumented)
317
- MediaInlineCard?: MediaInlineCardWithMediaClientConfigComponent;
318
- }
319
-
320
- // @public (undocumented)
321
- interface MediaInlineCardProps {
322
- // (undocumented)
323
- identifier: FileIdentifier;
324
- // (undocumented)
325
- isSelected?: boolean;
326
- // (undocumented)
327
- mediaClient: MediaClient;
328
- // (undocumented)
329
- mediaViewerItems?: Identifier[];
330
- // (undocumented)
331
- onClick?: InlineCardOnClickCallback;
332
- // (undocumented)
333
- shouldDisplayToolTip?: boolean;
334
- // (undocumented)
335
- shouldOpenMediaViewer?: boolean;
336
- }
337
-
338
- // @public (undocumented)
339
- type MediaInlineCardWithMediaClientConfigComponent =
340
- React_2.ComponentType<MediaInlineCardWithMediaClientConfigProps>;
341
-
342
- // @public (undocumented)
343
- type MediaInlineCardWithMediaClientConfigProps = WithMediaClientConfigProps<MediaInlineCardProps>;
344
-
345
- // @public (undocumented)
346
- export const newFileExperienceClassName = 'new-file-experience-wrapper';
347
-
348
- export { NumericalCardDimensions };
349
-
350
- // @public (undocumented)
351
- type RemotePreviewPrimaryReason =
352
- | 'remote-preview-fetch'
353
- | 'remote-preview-fetch-ssr'
354
- | 'remote-preview-not-ready';
355
-
356
- // @public (undocumented)
357
- export interface SharedCardProps {
358
- // (undocumented)
359
- readonly actions?: Array<CardAction>;
360
- // (undocumented)
361
- readonly alt?: string;
362
- // (undocumented)
363
- readonly appearance?: CardAppearance;
364
- // (undocumented)
365
- readonly dimensions?: CardDimensions;
366
- // (undocumented)
367
- readonly disableOverlay?: boolean;
368
- // (undocumented)
369
- readonly featureFlags?: MediaFeatureFlags;
370
- // (undocumented)
371
- readonly originalDimensions?: NumericalCardDimensions;
372
- // (undocumented)
373
- readonly resizeMode?: ImageResizeMode;
374
- // (undocumented)
375
- readonly selectable?: boolean;
376
- // (undocumented)
377
- readonly selected?: boolean;
378
- // (undocumented)
379
- readonly testId?: string;
380
- // (undocumented)
381
- readonly titleBoxBgColor?: string;
382
- // (undocumented)
383
- readonly titleBoxIcon?: TitleBoxIcon;
384
- }
385
-
386
- // @public (undocumented)
387
- type SsrPreviewPrimaryReason =
388
- | 'ssr-client-load'
389
- | 'ssr-client-uri'
390
- | 'ssr-server-load'
391
- | 'ssr-server-uri';
392
-
393
- // @public (undocumented)
394
- interface StaticCardProps {
395
- // (undocumented)
396
- dimensions?: CardDimensions;
397
- // (undocumented)
398
- featureFlags?: MediaFeatureFlags;
399
- // (undocumented)
400
- testId?: string;
401
- }
402
-
403
- // @public (undocumented)
404
- export type TitleBoxIcon = 'LockFilledIcon';
405
-
406
- // (No @packageDocumentation comment for this package)
407
- ```
408
-
409
- <!--SECTION END: Main Entry Types-->
410
-
411
- ### Peer Dependencies
412
-
413
- <!--SECTION START: Peer Dependencies-->
414
-
415
- ```json
416
- {
417
- "@emotion/react": "^11.7.1",
418
- "react": "^16.8.0",
419
- "react-dom": "^16.8.0",
420
- "react-intl": "npm:react-intl@^5.18.1"
421
- }
422
- ```
423
-
424
- <!--SECTION END: Peer Dependencies-->