@atlaskit/media-card 77.1.2 → 77.2.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.
Files changed (152) hide show
  1. package/CHANGELOG.md +13 -0
  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/useBreakpoint.js +29 -0
  5. package/dist/cjs/card/v2/cardV2.js +3 -5
  6. package/dist/cjs/card/v2/cardV2Loader.js +9 -16
  7. package/dist/cjs/card/v2/cardViewV2.js +5 -22
  8. package/dist/cjs/card/v2/inlinePlayerLazyV2.js +35 -0
  9. package/dist/cjs/card/v2/inlinePlayerV2.js +222 -0
  10. package/dist/cjs/inline/loader.js +1 -1
  11. package/dist/cjs/utils/ufoExperiences.js +1 -1
  12. package/dist/es2019/card/card.js +1 -1
  13. package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
  14. package/dist/es2019/card/useBreakpoint.js +22 -0
  15. package/dist/es2019/card/v2/cardV2.js +3 -5
  16. package/dist/es2019/card/v2/cardV2Loader.js +10 -17
  17. package/dist/es2019/card/v2/cardViewV2.js +4 -18
  18. package/dist/es2019/card/v2/inlinePlayerLazyV2.js +10 -0
  19. package/dist/es2019/card/v2/inlinePlayerV2.js +164 -0
  20. package/dist/es2019/inline/loader.js +1 -1
  21. package/dist/es2019/utils/ufoExperiences.js +1 -1
  22. package/dist/esm/card/card.js +1 -1
  23. package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
  24. package/dist/esm/card/useBreakpoint.js +24 -0
  25. package/dist/esm/card/v2/cardV2.js +3 -5
  26. package/dist/esm/card/v2/cardV2Loader.js +9 -16
  27. package/dist/esm/card/v2/cardViewV2.js +7 -24
  28. package/dist/esm/card/v2/inlinePlayerLazyV2.js +23 -0
  29. package/dist/esm/card/v2/inlinePlayerV2.js +212 -0
  30. package/dist/esm/inline/loader.js +1 -1
  31. package/dist/esm/utils/ufoExperiences.js +1 -1
  32. package/dist/types/card/useBreakpoint.d.ts +3 -0
  33. package/dist/types/card/v2/inlinePlayerLazyV2.d.ts +2 -0
  34. package/dist/types/card/v2/inlinePlayerV2.d.ts +23 -0
  35. package/dist/types-ts4.5/card/actions.d.ts +9 -0
  36. package/dist/types-ts4.5/card/card.d.ts +64 -0
  37. package/dist/types-ts4.5/card/cardAnalytics.d.ts +10 -0
  38. package/dist/types-ts4.5/card/cardConstants.d.ts +1 -0
  39. package/dist/types-ts4.5/card/cardLoader.d.ts +6 -0
  40. package/dist/types-ts4.5/card/cardState.d.ts +9 -0
  41. package/dist/types-ts4.5/card/cardSwitcher.d.ts +4 -0
  42. package/dist/types-ts4.5/card/cardView.d.ts +78 -0
  43. package/dist/types-ts4.5/card/classnames.d.ts +2 -0
  44. package/dist/types-ts4.5/card/getCardPreview/cache.d.ts +21 -0
  45. package/dist/types-ts4.5/card/getCardPreview/filePreviewStatus.d.ts +4 -0
  46. package/dist/types-ts4.5/card/getCardPreview/helpers.d.ts +10 -0
  47. package/dist/types-ts4.5/card/getCardPreview/index.d.ts +53 -0
  48. package/dist/types-ts4.5/card/getCardStatus.d.ts +4 -0
  49. package/dist/types-ts4.5/card/index.d.ts +1 -0
  50. package/dist/types-ts4.5/card/inlinePlayer.d.ts +52 -0
  51. package/dist/types-ts4.5/card/inlinePlayerLazy.d.ts +2 -0
  52. package/dist/types-ts4.5/card/inlinePlayerWrapper.d.ts +4 -0
  53. package/dist/types-ts4.5/card/inlinePlayerWrapperStyles.d.ts +6 -0
  54. package/dist/types-ts4.5/card/media-card-analytics-error-boundary.d.ts +14 -0
  55. package/dist/types-ts4.5/card/types.d.ts +13 -0
  56. package/dist/types-ts4.5/card/ui/actionsBar/actionsBar.d.ts +5 -0
  57. package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper.d.ts +4 -0
  58. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionButton.d.ts +3 -0
  59. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionIconButton.d.ts +12 -0
  60. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.d.ts +14 -0
  61. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsView.d.ts +16 -0
  62. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/index.d.ts +7 -0
  63. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/styles.d.ts +18 -0
  64. package/dist/types-ts4.5/card/ui/actionsBar/styles.d.ts +6 -0
  65. package/dist/types-ts4.5/card/ui/actionsBar/types.d.ts +10 -0
  66. package/dist/types-ts4.5/card/ui/blanket/blanket.d.ts +6 -0
  67. package/dist/types-ts4.5/card/ui/blanket/styles.d.ts +6 -0
  68. package/dist/types-ts4.5/card/ui/common.d.ts +23 -0
  69. package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper.d.ts +4 -0
  70. package/dist/types-ts4.5/card/ui/iconMessage/index.d.ts +8 -0
  71. package/dist/types-ts4.5/card/ui/iconMessage/styles.d.ts +5 -0
  72. package/dist/types-ts4.5/card/ui/iconMessage/types.d.ts +19 -0
  73. package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper.d.ts +4 -0
  74. package/dist/types-ts4.5/card/ui/iconWrapper/styles.d.ts +7 -0
  75. package/dist/types-ts4.5/card/ui/iconWrapper/types.d.ts +6 -0
  76. package/dist/types-ts4.5/card/ui/imageRenderer/imageRenderer.d.ts +15 -0
  77. package/dist/types-ts4.5/card/ui/imageRenderer/resizeModeToMediaImageProps.d.ts +5 -0
  78. package/dist/types-ts4.5/card/ui/playButton/playButton.d.ts +2 -0
  79. package/dist/types-ts4.5/card/ui/playButton/playButtonBackground.d.ts +3 -0
  80. package/dist/types-ts4.5/card/ui/playButton/playButtonWrapper.d.ts +3 -0
  81. package/dist/types-ts4.5/card/ui/playButton/styles.d.ts +5 -0
  82. package/dist/types-ts4.5/card/ui/progressBar/progressBar.d.ts +10 -0
  83. package/dist/types-ts4.5/card/ui/progressBar/styledBar.d.ts +4 -0
  84. package/dist/types-ts4.5/card/ui/progressBar/styles.d.ts +7 -0
  85. package/dist/types-ts4.5/card/ui/progressBar/types.d.ts +7 -0
  86. package/dist/types-ts4.5/card/ui/styles.d.ts +13 -0
  87. package/dist/types-ts4.5/card/ui/tickBox/styles.d.ts +7 -0
  88. package/dist/types-ts4.5/card/ui/tickBox/tickBox.d.ts +3 -0
  89. package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper.d.ts +4 -0
  90. package/dist/types-ts4.5/card/ui/tickBox/types.d.ts +4 -0
  91. package/dist/types-ts4.5/card/ui/titleBox/failedTitleBox.d.ts +3 -0
  92. package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +15 -0
  93. package/dist/types-ts4.5/card/ui/titleBox/titleBox.d.ts +4 -0
  94. package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents.d.ts +8 -0
  95. package/dist/types-ts4.5/card/ui/titleBox/types.d.ts +34 -0
  96. package/dist/types-ts4.5/card/ui/unhandledErrorCard/index.d.ts +7 -0
  97. package/dist/types-ts4.5/card/ui/unhandledErrorCard/types.d.ts +6 -0
  98. package/dist/types-ts4.5/card/ui/wrapper/index.d.ts +1 -0
  99. package/dist/types-ts4.5/card/ui/wrapper/styles.d.ts +5 -0
  100. package/dist/types-ts4.5/card/ui/wrapper/types.d.ts +25 -0
  101. package/dist/types-ts4.5/card/ui/wrapper/wrapper.d.ts +4 -0
  102. package/dist/types-ts4.5/card/useBreakpoint.d.ts +3 -0
  103. package/dist/types-ts4.5/card/v2/cardV2.d.ts +63 -0
  104. package/dist/types-ts4.5/card/v2/cardV2Loader.d.ts +4 -0
  105. package/dist/types-ts4.5/card/v2/cardViewV2.d.ts +44 -0
  106. package/dist/types-ts4.5/card/v2/inlinePlayerLazyV2.d.ts +2 -0
  107. package/dist/types-ts4.5/card/v2/inlinePlayerV2.d.ts +23 -0
  108. package/dist/types-ts4.5/classnames.d.ts +5 -0
  109. package/dist/types-ts4.5/errors.d.ts +53 -0
  110. package/dist/types-ts4.5/index.d.ts +15 -0
  111. package/dist/types-ts4.5/inline/index.d.ts +1 -0
  112. package/dist/types-ts4.5/inline/loader.d.ts +26 -0
  113. package/dist/types-ts4.5/inline/mediaInlineAnalyticsErrorBoundary.d.ts +12 -0
  114. package/dist/types-ts4.5/inline/mediaInlineCard.d.ts +15 -0
  115. package/dist/types-ts4.5/inline/mediaInlineCardAnalytics.d.ts +6 -0
  116. package/dist/types-ts4.5/types.d.ts +105 -0
  117. package/dist/types-ts4.5/utils/analytics.d.ts +101 -0
  118. package/dist/types-ts4.5/utils/cardDimensions.d.ts +14 -0
  119. package/dist/types-ts4.5/utils/containsPixelUnit.d.ts +1 -0
  120. package/dist/types-ts4.5/utils/dimensionComparer.d.ts +3 -0
  121. package/dist/types-ts4.5/utils/document.d.ts +2 -0
  122. package/dist/types-ts4.5/utils/generateUniqueId.d.ts +1 -0
  123. package/dist/types-ts4.5/utils/getCSSUnitValue.d.ts +1 -0
  124. package/dist/types-ts4.5/utils/getDataURIDimension.d.ts +9 -0
  125. package/dist/types-ts4.5/utils/getElementDimension.d.ts +2 -0
  126. package/dist/types-ts4.5/utils/getMediaCardCursor.d.ts +6 -0
  127. package/dist/types-ts4.5/utils/globalScope/getSSRData.d.ts +3 -0
  128. package/dist/types-ts4.5/utils/globalScope/globalScope.d.ts +21 -0
  129. package/dist/types-ts4.5/utils/globalScope/index.d.ts +4 -0
  130. package/dist/types-ts4.5/utils/globalScope/types.d.ts +8 -0
  131. package/dist/types-ts4.5/utils/index.d.ts +6 -0
  132. package/dist/types-ts4.5/utils/isRetina.d.ts +1 -0
  133. package/dist/types-ts4.5/utils/isValidPercentageUnit.d.ts +1 -0
  134. package/dist/types-ts4.5/utils/lightCards/cardError.d.ts +12 -0
  135. package/dist/types-ts4.5/utils/lightCards/cardLoading.d.ts +5 -0
  136. package/dist/types-ts4.5/utils/lightCards/errorIcon/index.d.ts +12 -0
  137. package/dist/types-ts4.5/utils/lightCards/errorIcon/styles.d.ts +1 -0
  138. package/dist/types-ts4.5/utils/lightCards/getDimensionsWithDefault.d.ts +2 -0
  139. package/dist/types-ts4.5/utils/lightCards/lightCardWrappers.d.ts +4 -0
  140. package/dist/types-ts4.5/utils/lightCards/styles.d.ts +2 -0
  141. package/dist/types-ts4.5/utils/lightCards/types.d.ts +15 -0
  142. package/dist/types-ts4.5/utils/metadata.d.ts +2 -0
  143. package/dist/types-ts4.5/utils/mockIntersectionObserver.d.ts +20 -0
  144. package/dist/types-ts4.5/utils/objectURLCache.d.ts +12 -0
  145. package/dist/types-ts4.5/utils/preventClickThrough.d.ts +8 -0
  146. package/dist/types-ts4.5/utils/printScript.d.ts +2 -0
  147. package/dist/types-ts4.5/utils/ufoExperiences.d.ts +14 -0
  148. package/dist/types-ts4.5/utils/videoIsPlayable.d.ts +2 -0
  149. package/dist/types-ts4.5/utils/videoSnapshot.d.ts +1 -0
  150. package/dist/types-ts4.5/utils/viewportDetector.d.ts +6 -0
  151. package/package.json +5 -4
  152. package/tmp/api-report-tmp.d.ts +345 -0
@@ -0,0 +1,2 @@
1
+ import { FileState } from '@atlaskit/media-client';
2
+ export declare const videoIsPlayable: (isBannedLocalPreview: boolean, fileState?: FileState, mimeType?: string) => boolean;
@@ -0,0 +1 @@
1
+ export declare const takeSnapshot: (blob: Blob) => Promise<string>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export type ViewportDetectorProps = {
3
+ cardEl: HTMLElement | null;
4
+ onVisible: () => void;
5
+ };
6
+ export declare const ViewportDetector: React.FC<ViewportDetectorProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "77.1.2",
3
+ "version": "77.2.1",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,18 +37,18 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@atlaskit/analytics-next": "^9.1.0",
40
- "@atlaskit/dropdown-menu": "^12.0.0",
40
+ "@atlaskit/dropdown-menu": "^12.1.0",
41
41
  "@atlaskit/editor-shared-styles": "^2.8.0",
42
42
  "@atlaskit/icon": "^21.12.0",
43
43
  "@atlaskit/media-client": "^24.0.0",
44
- "@atlaskit/media-client-react": "^1.0.0",
44
+ "@atlaskit/media-client-react": "^1.3.0",
45
45
  "@atlaskit/media-common": "^9.0.0",
46
46
  "@atlaskit/media-ui": "^25.0.0",
47
47
  "@atlaskit/media-viewer": "^48.1.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.2.2",
49
49
  "@atlaskit/spinner": "^15.6.0",
50
50
  "@atlaskit/theme": "^12.6.0",
51
- "@atlaskit/tokens": "^1.25.0",
51
+ "@atlaskit/tokens": "^1.28.0",
52
52
  "@atlaskit/tooltip": "^17.8.0",
53
53
  "@atlaskit/ufo": "^0.2.0",
54
54
  "@babel/runtime": "^7.0.0",
@@ -78,6 +78,7 @@
78
78
  "@atlassian/ufo": "^0.2.0",
79
79
  "@testing-library/dom": "^8.17.1",
80
80
  "@testing-library/react": "^12.1.5",
81
+ "@testing-library/react-hooks": "^8.0.1",
81
82
  "@testing-library/user-event": "^14.4.3",
82
83
  "@types/classnames": "^2.2.6",
83
84
  "@types/react-loadable": "^5.4.1",
@@ -0,0 +1,345 @@
1
+ ## API Report File for "@atlaskit/media-card"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ /// <reference types="react" />
8
+
9
+ import { Component } from 'react';
10
+ import { FileDetails } from '@atlaskit/media-client';
11
+ import { FileIdentifier } from '@atlaskit/media-client';
12
+ import { FileItem } from '@atlaskit/media-client';
13
+ import { FileState } from '@atlaskit/media-client';
14
+ import { Identifier } from '@atlaskit/media-client';
15
+ import { ImageResizeMode } from '@atlaskit/media-client';
16
+ import { MediaClient } from '@atlaskit/media-client';
17
+ import { MediaFeatureFlags } from '@atlaskit/media-common';
18
+ import { MouseEvent as MouseEvent_2 } from 'react';
19
+ import { NumericalCardDimensions } from '@atlaskit/media-common';
20
+ import { default as React_2 } from 'react';
21
+ import { ReactNode } from 'react';
22
+ import { SSR } from '@atlaskit/media-common';
23
+ import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
24
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
25
+ import { WithMediaClientConfigProps } from '@atlaskit/media-client';
26
+ import { WrappedComponentProps } from 'react-intl-next';
27
+
28
+ // @public (undocumented)
29
+ export function Card(props: CardWithMediaClientConfigProps): JSX.Element;
30
+
31
+ // @public (undocumented)
32
+ export interface CardAction {
33
+ // (undocumented)
34
+ handler: CardEventHandler;
35
+ // (undocumented)
36
+ icon?: ReactNode;
37
+ // (undocumented)
38
+ label?: string;
39
+ }
40
+
41
+ // @public (undocumented)
42
+ export type CardAppearance = 'auto' | 'horizontal' | 'image' | 'square';
43
+
44
+ // @public (undocumented)
45
+ type CardBaseProps = CardProps & WithAnalyticsEventsProps & Partial<WrappedComponentProps>;
46
+
47
+ // @public (undocumented)
48
+ export interface CardDimensions {
49
+ // (undocumented)
50
+ height?: CardDimensionValue;
51
+ // (undocumented)
52
+ width?: CardDimensionValue;
53
+ }
54
+
55
+ // @public (undocumented)
56
+ export type CardDimensionValue = number | string;
57
+
58
+ // @public (undocumented)
59
+ export class CardError extends Component<ErrorCardProps, {}> {
60
+ // (undocumented)
61
+ static defaultProps: {
62
+ size: string;
63
+ };
64
+ // (undocumented)
65
+ get icon(): JSX.Element;
66
+ // (undocumented)
67
+ render(): JSX.Element;
68
+ }
69
+
70
+ // @public (undocumented)
71
+ export interface CardEvent {
72
+ // (undocumented)
73
+ event: MouseEvent_2<HTMLElement>;
74
+ // (undocumented)
75
+ mediaItemDetails?: FileDetails;
76
+ }
77
+
78
+ // @public (undocumented)
79
+ export type CardEventHandler = (item?: FileItem, event?: Event) => void;
80
+
81
+ // @public (undocumented)
82
+ interface CardEventProps {
83
+ // (undocumented)
84
+ readonly onClick?: CardOnClickCallback;
85
+ readonly onFullscreenChange?: (fullscreen: boolean) => void;
86
+ // (undocumented)
87
+ readonly onMouseEnter?: (result: CardEvent) => void;
88
+ }
89
+
90
+ // @public (undocumented)
91
+ export class CardLoading extends Component<StaticCardProps, {}> {
92
+ // (undocumented)
93
+ render(): JSX.Element;
94
+ }
95
+
96
+ // @public (undocumented)
97
+ export interface CardOnClickCallback {
98
+ // (undocumented)
99
+ (result: CardEvent, analyticsEvent?: UIAnalyticsEvent): void;
100
+ }
101
+
102
+ // @public (undocumented)
103
+ export interface CardPreview {
104
+ // (undocumented)
105
+ dataURI: string;
106
+ // (undocumented)
107
+ dimensions?: CardDimensions;
108
+ // (undocumented)
109
+ orientation?: number;
110
+ // (undocumented)
111
+ source: CardPreviewSource;
112
+ }
113
+
114
+ // @public (undocumented)
115
+ type CardPreviewSource = 'cache-local' | 'cache-remote' | 'cache-ssr-client' | 'cache-ssr-server' | 'external' | 'local' | 'remote' | 'ssr-client' | 'ssr-data' | 'ssr-server';
116
+
117
+ // @public (undocumented)
118
+ export interface CardProps extends SharedCardProps, CardEventProps {
119
+ // (undocumented)
120
+ readonly contextId?: string;
121
+ // (undocumented)
122
+ readonly identifier: Identifier;
123
+ // (undocumented)
124
+ readonly isLazy?: boolean;
125
+ // (undocumented)
126
+ readonly mediaClient: MediaClient;
127
+ // (undocumented)
128
+ readonly mediaViewerItems?: Identifier[];
129
+ // (undocumented)
130
+ readonly shouldEnableDownloadButton?: boolean;
131
+ // (undocumented)
132
+ readonly shouldHideTooltip?: boolean;
133
+ // (undocumented)
134
+ readonly shouldOpenMediaViewer?: boolean;
135
+ // (undocumented)
136
+ readonly ssr?: SSR;
137
+ // (undocumented)
138
+ readonly useInlinePlayer?: boolean;
139
+ }
140
+
141
+ // @public (undocumented)
142
+ export interface CardState {
143
+ // (undocumented)
144
+ cardPreview?: CardPreview;
145
+ // (undocumented)
146
+ cardRef: HTMLDivElement | null;
147
+ // (undocumented)
148
+ error?: MediaCardError;
149
+ // (undocumented)
150
+ fileState?: FileState;
151
+ // (undocumented)
152
+ isBannedLocalPreview: boolean;
153
+ // (undocumented)
154
+ isCardVisible: boolean;
155
+ // (undocumented)
156
+ isPlayingFile: boolean;
157
+ // (undocumented)
158
+ mediaViewerSelectedItem?: Identifier;
159
+ // (undocumented)
160
+ previewDidRender: boolean;
161
+ // (undocumented)
162
+ progress?: number;
163
+ // (undocumented)
164
+ shouldAutoplay?: boolean;
165
+ // (undocumented)
166
+ shouldUpdateStateForIdentifier?: boolean;
167
+ // (undocumented)
168
+ status: CardStatus;
169
+ // (undocumented)
170
+ wasResolvedUpfrontPreview: boolean;
171
+ }
172
+
173
+ // @public (undocumented)
174
+ export type CardStatus = 'complete' | 'error' | 'failed-processing' | 'loading' | 'loading-preview' | 'processing' | 'uploading';
175
+
176
+ // @public (undocumented)
177
+ type CardWithMediaClientConfigProps = WithMediaClientConfigProps<CardBaseProps>;
178
+
179
+ // @public (undocumented)
180
+ export const defaultImageCardDimensions: {
181
+ width: number;
182
+ height: number;
183
+ };
184
+
185
+ // @public (undocumented)
186
+ type ErrorBoundaryComponent = React_2.ComponentType<{
187
+ data?: {
188
+ [k: string]: any;
189
+ };
190
+ isSelected?: boolean;
191
+ }>;
192
+
193
+ // @public (undocumented)
194
+ interface ErrorCardProps extends StaticCardProps {
195
+ // (undocumented)
196
+ readonly size: 'large' | 'medium' | 'small' | 'xlarge';
197
+ }
198
+
199
+ // @public (undocumented)
200
+ export const fileCardImageViewSelector = "media-file-card-view";
201
+
202
+ // @public (undocumented)
203
+ type ImageLoadPrimaryReason = 'cache-local-uri' | 'cache-remote-uri' | 'external-uri' | 'local-uri' | 'remote-uri' | 'unknown-uri';
204
+
205
+ // @public (undocumented)
206
+ export interface InlineCardEvent {
207
+ // (undocumented)
208
+ event: MouseEvent_2<HTMLElement> | React.KeyboardEvent;
209
+ // (undocumented)
210
+ mediaItemDetails?: FileDetails;
211
+ }
212
+
213
+ // @public (undocumented)
214
+ export interface InlineCardOnClickCallback {
215
+ // (undocumented)
216
+ (result: InlineCardEvent, analyticsEvent?: UIAnalyticsEvent): void;
217
+ }
218
+
219
+ // @public (undocumented)
220
+ export const inlinePlayerClassName = "media-card-inline-player";
221
+
222
+ // @public (undocumented)
223
+ type LocalPreviewPrimaryReason = 'local-preview-get' | 'local-preview-image' | 'local-preview-rejected' | 'local-preview-unsupported' | 'local-preview-video';
224
+
225
+ // @public (undocumented)
226
+ class MediaCardError extends Error {
227
+ constructor(primaryReason: MediaCardErrorPrimaryReason, secondaryError?: Error | undefined);
228
+ // (undocumented)
229
+ readonly primaryReason: MediaCardErrorPrimaryReason;
230
+ // (undocumented)
231
+ readonly secondaryError?: Error | undefined;
232
+ }
233
+
234
+ // @public
235
+ type MediaCardErrorPrimaryReason = 'error-file-state' | 'metadata-fetch' | 'missing-error-data' | 'preview-fetch' | 'upload' | ImageLoadPrimaryReason | LocalPreviewPrimaryReason | RemotePreviewPrimaryReason | SsrPreviewPrimaryReason;
236
+
237
+ // @public (undocumented)
238
+ export class MediaInlineCard extends React_2.PureComponent<MediaInlineCardWithMediaClientConfigProps & MediaInlineCardLoaderState, MediaInlineCardLoaderState> {
239
+ // (undocumented)
240
+ componentDidMount(): Promise<void>;
241
+ // (undocumented)
242
+ componentWillUnmount(): Promise<void>;
243
+ // (undocumented)
244
+ static displayName: string;
245
+ // (undocumented)
246
+ static ErrorBoundary?: ErrorBoundaryComponent;
247
+ // (undocumented)
248
+ static MediaInlineCard?: MediaInlineCardWithMediaClientConfigComponent;
249
+ // (undocumented)
250
+ mounted: boolean;
251
+ // (undocumented)
252
+ render(): JSX.Element;
253
+ // (undocumented)
254
+ state: MediaInlineCardLoaderState;
255
+ }
256
+
257
+ // @public (undocumented)
258
+ interface MediaInlineCardLoaderState {
259
+ // (undocumented)
260
+ ErrorBoundary?: ErrorBoundaryComponent;
261
+ // (undocumented)
262
+ MediaInlineCard?: MediaInlineCardWithMediaClientConfigComponent;
263
+ }
264
+
265
+ // @public (undocumented)
266
+ interface MediaInlineCardProps {
267
+ // (undocumented)
268
+ identifier: FileIdentifier;
269
+ // (undocumented)
270
+ isSelected?: boolean;
271
+ // (undocumented)
272
+ mediaClient: MediaClient;
273
+ // (undocumented)
274
+ mediaViewerItems?: Identifier[];
275
+ // (undocumented)
276
+ onClick?: InlineCardOnClickCallback;
277
+ // (undocumented)
278
+ shouldDisplayToolTip?: boolean;
279
+ // (undocumented)
280
+ shouldOpenMediaViewer?: boolean;
281
+ }
282
+
283
+ // @public (undocumented)
284
+ type MediaInlineCardWithMediaClientConfigComponent = React_2.ComponentType<MediaInlineCardWithMediaClientConfigProps>;
285
+
286
+ // @public (undocumented)
287
+ type MediaInlineCardWithMediaClientConfigProps = WithMediaClientConfigProps<MediaInlineCardProps>;
288
+
289
+ // @public (undocumented)
290
+ export const newFileExperienceClassName = "new-file-experience-wrapper";
291
+
292
+ export { NumericalCardDimensions }
293
+
294
+ // @public (undocumented)
295
+ type RemotePreviewPrimaryReason = 'remote-preview-fetch' | 'remote-preview-fetch-ssr' | 'remote-preview-not-ready';
296
+
297
+ // @public (undocumented)
298
+ export interface SharedCardProps {
299
+ // (undocumented)
300
+ readonly actions?: Array<CardAction>;
301
+ // (undocumented)
302
+ readonly alt?: string;
303
+ // (undocumented)
304
+ readonly appearance?: CardAppearance;
305
+ // (undocumented)
306
+ readonly dimensions?: CardDimensions;
307
+ // (undocumented)
308
+ readonly disableOverlay?: boolean;
309
+ // (undocumented)
310
+ readonly featureFlags?: MediaFeatureFlags;
311
+ // (undocumented)
312
+ readonly originalDimensions?: NumericalCardDimensions;
313
+ // (undocumented)
314
+ readonly resizeMode?: ImageResizeMode;
315
+ // (undocumented)
316
+ readonly selectable?: boolean;
317
+ // (undocumented)
318
+ readonly selected?: boolean;
319
+ // (undocumented)
320
+ readonly testId?: string;
321
+ // (undocumented)
322
+ readonly titleBoxBgColor?: string;
323
+ // (undocumented)
324
+ readonly titleBoxIcon?: TitleBoxIcon;
325
+ }
326
+
327
+ // @public (undocumented)
328
+ type SsrPreviewPrimaryReason = 'ssr-client-load' | 'ssr-client-uri' | 'ssr-server-load' | 'ssr-server-uri';
329
+
330
+ // @public (undocumented)
331
+ interface StaticCardProps {
332
+ // (undocumented)
333
+ dimensions?: CardDimensions;
334
+ // (undocumented)
335
+ featureFlags?: MediaFeatureFlags;
336
+ // (undocumented)
337
+ testId?: string;
338
+ }
339
+
340
+ // @public (undocumented)
341
+ export type TitleBoxIcon = 'LockFilledIcon';
342
+
343
+ // (No @packageDocumentation comment for this package)
344
+
345
+ ```