@atlaskit/media-ui 22.1.2 → 22.2.0
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 +27 -0
- package/browser/package.json +8 -1
- package/classNames/package.json +8 -1
- package/codeViewer/package.json +8 -1
- package/dist/cjs/MediaButton.js +23 -15
- package/dist/cjs/MediaInlineCard/ErroredView/index.js +3 -1
- package/dist/cjs/MediaInlineCard/Frame/styled.js +7 -10
- package/dist/cjs/MediaInlineCard/IconAndTitleLayout/index.js +5 -1
- package/dist/cjs/MediaInlineCard/styled.js +3 -6
- package/dist/cjs/customMediaPlayer/index.js +2 -2
- package/dist/cjs/customMediaPlayer/playbackSpeedControls.js +14 -4
- package/dist/cjs/customMediaPlayer/styled.js +7 -7
- package/dist/cjs/errorIcon.js +1 -0
- package/dist/cjs/mime-type-icon.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/MediaButton.js +27 -14
- package/dist/es2019/MediaInlineCard/ErroredView/index.js +2 -1
- package/dist/es2019/MediaInlineCard/Frame/styled.js +7 -10
- package/dist/es2019/MediaInlineCard/IconAndTitleLayout/index.js +3 -1
- package/dist/es2019/MediaInlineCard/styled.js +2 -5
- package/dist/es2019/customMediaPlayer/index.js +7 -3
- package/dist/es2019/customMediaPlayer/playbackSpeedControls.js +17 -5
- package/dist/es2019/customMediaPlayer/styled.js +9 -8
- package/dist/es2019/errorIcon.js +1 -0
- package/dist/es2019/mime-type-icon.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/MediaButton.js +26 -14
- package/dist/esm/MediaInlineCard/ErroredView/index.js +2 -1
- package/dist/esm/MediaInlineCard/Frame/styled.js +7 -10
- package/dist/esm/MediaInlineCard/IconAndTitleLayout/index.js +3 -1
- package/dist/esm/MediaInlineCard/styled.js +2 -5
- package/dist/esm/customMediaPlayer/index.js +6 -3
- package/dist/esm/customMediaPlayer/playbackSpeedControls.js +18 -5
- package/dist/esm/customMediaPlayer/styled.js +9 -8
- package/dist/esm/errorIcon.js +1 -0
- package/dist/esm/mime-type-icon.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/MediaInlineCard/styled.d.ts +1 -3
- package/dist/types/media-type-icon.d.ts +1 -0
- package/errorIcon/package.json +8 -1
- package/example-helpers/styled.ts +5 -3
- package/formatDate/package.json +8 -1
- package/locales/package.json +8 -1
- package/media-type-icon/package.json +8 -1
- package/messages/package.json +8 -1
- package/mime-type-icon/package.json +8 -1
- package/modalSpinner/package.json +8 -1
- package/package.json +20 -16
- package/report.api.md +504 -323
- package/truncateText/package.json +8 -1
- package/types/package.json +8 -1
- package/util/package.json +8 -1
package/report.api.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
<!-- API Report Version: 2.2 -->
|
|
2
|
+
|
|
1
3
|
## API Report File for "@atlaskit/media-ui"
|
|
2
4
|
|
|
3
|
-
> Do not edit this file.
|
|
5
|
+
> Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
|
|
6
|
+
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
|
+
|
|
8
|
+
### Table of contents
|
|
9
|
+
|
|
10
|
+
- [Main Entry Types](#main-entry-types)
|
|
11
|
+
|
|
12
|
+
### Main Entry Types
|
|
13
|
+
|
|
14
|
+
<!--SECTION START: Main Entry Types-->
|
|
4
15
|
|
|
5
16
|
```ts
|
|
6
17
|
/// <reference types="react" />
|
|
@@ -18,106 +29,168 @@ import { RefObject } from 'react';
|
|
|
18
29
|
import SourceCodeIcon from '@atlaskit/icon-file-type/glyph/source-code/24';
|
|
19
30
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
20
31
|
|
|
21
|
-
|
|
32
|
+
// @public (undocumented)
|
|
33
|
+
export const absolute: (top?: number, left?: number) => string;
|
|
22
34
|
|
|
23
|
-
|
|
35
|
+
// @public (undocumented)
|
|
36
|
+
export interface AccessContext {
|
|
37
|
+
// (undocumented)
|
|
24
38
|
accessType?: AccessTypes;
|
|
39
|
+
// (undocumented)
|
|
25
40
|
cloudId?: string;
|
|
26
|
-
|
|
41
|
+
// (undocumented)
|
|
27
42
|
smartLinksAccessMetadataExperimentCohort?:
|
|
28
|
-
| 'experiment'
|
|
29
43
|
| 'control'
|
|
44
|
+
| 'experiment'
|
|
30
45
|
| 'not-enrolled';
|
|
46
|
+
// (undocumented)
|
|
47
|
+
url?: string;
|
|
31
48
|
}
|
|
32
49
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
| '
|
|
36
|
-
| 'FORBIDDEN'
|
|
37
|
-
| 'DIRECT_ACCESS'
|
|
38
|
-
| 'DENIED_REQUEST_EXISTS'
|
|
50
|
+
// @public (undocumented)
|
|
51
|
+
export type AccessTypes =
|
|
52
|
+
| 'ACCESS_EXISTS'
|
|
39
53
|
| 'APPROVED_REQUEST_EXISTS'
|
|
40
|
-
| '
|
|
54
|
+
| 'DENIED_REQUEST_EXISTS'
|
|
55
|
+
| 'DIRECT_ACCESS'
|
|
56
|
+
| 'FORBIDDEN'
|
|
57
|
+
| 'PENDING_REQUEST_EXISTS'
|
|
58
|
+
| 'REQUEST_ACCESS';
|
|
41
59
|
|
|
42
|
-
|
|
60
|
+
// @public (undocumented)
|
|
61
|
+
export const borderRadius: string;
|
|
43
62
|
|
|
44
|
-
|
|
63
|
+
// @public (undocumented)
|
|
64
|
+
export const borderRadiusBottom: string;
|
|
45
65
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
readonly y: number;
|
|
49
|
-
readonly width: number;
|
|
50
|
-
readonly height: number;
|
|
66
|
+
// @public (undocumented)
|
|
67
|
+
export class Bounds extends Rectangle {
|
|
51
68
|
constructor(x: number, y: number, width: number, height: number);
|
|
52
|
-
|
|
53
|
-
get corner(): Vector2;
|
|
54
|
-
get center(): Vector2;
|
|
55
|
-
get rect(): Rectangle;
|
|
56
|
-
get left(): number;
|
|
57
|
-
get top(): number;
|
|
58
|
-
get right(): number;
|
|
69
|
+
// (undocumented)
|
|
59
70
|
get bottom(): number;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
71
|
+
// (undocumented)
|
|
72
|
+
get center(): Vector2;
|
|
73
|
+
// (undocumented)
|
|
63
74
|
clone(): Bounds;
|
|
64
|
-
|
|
75
|
+
// (undocumented)
|
|
76
|
+
get corner(): Vector2;
|
|
77
|
+
// (undocumented)
|
|
78
|
+
equals(bounds: Bounds): boolean;
|
|
79
|
+
// (undocumented)
|
|
80
|
+
flipped(): Bounds;
|
|
81
|
+
// (undocumented)
|
|
82
|
+
readonly height: number;
|
|
83
|
+
// (undocumented)
|
|
65
84
|
hFlipWithin(containerBounds: Bounds): Bounds;
|
|
66
|
-
|
|
85
|
+
// (undocumented)
|
|
86
|
+
get left(): number;
|
|
87
|
+
// (undocumented)
|
|
88
|
+
map(fn: (value: number) => number): Bounds;
|
|
89
|
+
// (undocumented)
|
|
90
|
+
get origin(): Vector2;
|
|
91
|
+
// (undocumented)
|
|
92
|
+
get rect(): Rectangle;
|
|
93
|
+
// (undocumented)
|
|
94
|
+
relativeTo(bounds: Bounds): Bounds;
|
|
95
|
+
// (undocumented)
|
|
96
|
+
get right(): number;
|
|
97
|
+
// (undocumented)
|
|
67
98
|
rotate90DegWithin(containerBounds: Bounds): Bounds;
|
|
99
|
+
// (undocumented)
|
|
100
|
+
scaled(scale: number): Bounds;
|
|
101
|
+
// (undocumented)
|
|
102
|
+
get top(): number;
|
|
103
|
+
// (undocumented)
|
|
68
104
|
translated(xDelta: number, yDelta: number): Bounds;
|
|
69
|
-
|
|
105
|
+
// (undocumented)
|
|
106
|
+
vFlipWithin(containerBounds: Bounds): Bounds;
|
|
107
|
+
// (undocumented)
|
|
108
|
+
readonly width: number;
|
|
109
|
+
// (undocumented)
|
|
110
|
+
readonly x: number;
|
|
111
|
+
// (undocumented)
|
|
112
|
+
readonly y: number;
|
|
70
113
|
}
|
|
71
114
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
readonly originalImg: Rectangle;
|
|
115
|
+
// @public (undocumented)
|
|
116
|
+
export class Camera {
|
|
75
117
|
constructor(viewport: Rectangle, originalImg: Rectangle);
|
|
76
|
-
|
|
77
|
-
get scaleToFit(): number;
|
|
78
|
-
get scaleDownToFit(): number;
|
|
118
|
+
// (undocumented)
|
|
79
119
|
get fittedImg(): Rectangle;
|
|
120
|
+
// (undocumented)
|
|
121
|
+
readonly originalImg: Rectangle;
|
|
122
|
+
// (undocumented)
|
|
123
|
+
resizedViewport(newViewport: Rectangle): Camera;
|
|
124
|
+
// (undocumented)
|
|
80
125
|
scaledImg(newScale: number): Rectangle;
|
|
126
|
+
// (undocumented)
|
|
81
127
|
scaledOffset(
|
|
82
128
|
prevOffset: Vector2,
|
|
83
129
|
prevScale: number,
|
|
84
130
|
newScale: number,
|
|
85
131
|
): Vector2;
|
|
132
|
+
// (undocumented)
|
|
133
|
+
get scaleDownToFit(): number;
|
|
134
|
+
// (undocumented)
|
|
135
|
+
get scaleToFit(): number;
|
|
136
|
+
// (undocumented)
|
|
137
|
+
readonly viewport: Rectangle;
|
|
86
138
|
}
|
|
87
139
|
|
|
88
|
-
|
|
140
|
+
// @public (undocumented)
|
|
141
|
+
export const center =
|
|
89
142
|
'\n display: flex;\n align-items: center;\n justify-content: center;\n';
|
|
90
143
|
|
|
91
|
-
|
|
144
|
+
// @public (undocumented)
|
|
145
|
+
export const CustomMediaPlayer: React_2.ComponentType<
|
|
92
146
|
CustomMediaPlayerProps & WithAnalyticsEventsProps
|
|
93
147
|
>;
|
|
94
148
|
|
|
95
|
-
|
|
149
|
+
// @public (undocumented)
|
|
150
|
+
interface CustomMediaPlayerProps
|
|
96
151
|
extends WithPlaybackProps,
|
|
97
152
|
WithShowControlMethodProp {
|
|
98
|
-
|
|
99
|
-
readonly
|
|
153
|
+
// (undocumented)
|
|
154
|
+
readonly featureFlags?: MediaFeatureFlags;
|
|
155
|
+
// (undocumented)
|
|
100
156
|
readonly fileId?: string;
|
|
101
|
-
|
|
157
|
+
// (undocumented)
|
|
102
158
|
readonly isShortcutEnabled?: boolean;
|
|
159
|
+
// (undocumented)
|
|
103
160
|
readonly lastWatchTimeConfig?: TimeSaverConfig;
|
|
161
|
+
// (undocumented)
|
|
104
162
|
readonly onCanPlay?: () => void;
|
|
105
|
-
|
|
163
|
+
// (undocumented)
|
|
106
164
|
readonly onDownloadClick?: () => void;
|
|
165
|
+
// (undocumented)
|
|
166
|
+
readonly onError?: () => void;
|
|
167
|
+
// (undocumented)
|
|
107
168
|
readonly onFirstPlay?: () => void;
|
|
169
|
+
// (undocumented)
|
|
108
170
|
readonly onFullscreenChange?: (fullscreen: boolean) => void;
|
|
171
|
+
// (undocumented)
|
|
172
|
+
readonly onHDToggleClick?: () => void;
|
|
173
|
+
// (undocumented)
|
|
109
174
|
readonly originalDimensions?: NumericalCardDimensions;
|
|
110
|
-
|
|
175
|
+
// (undocumented)
|
|
111
176
|
readonly poster?: string;
|
|
177
|
+
// (undocumented)
|
|
178
|
+
readonly src: string;
|
|
179
|
+
// (undocumented)
|
|
180
|
+
readonly type: CustomMediaPlayerType;
|
|
112
181
|
}
|
|
113
182
|
|
|
114
|
-
|
|
183
|
+
// @public (undocumented)
|
|
184
|
+
type CustomMediaPlayerType = 'audio' | 'video';
|
|
115
185
|
|
|
116
|
-
|
|
186
|
+
// @public (undocumented)
|
|
187
|
+
export function dataURItoFile(dataURI: string, filename?: string): File;
|
|
117
188
|
|
|
118
|
-
|
|
189
|
+
// @public (undocumented)
|
|
190
|
+
export const easeInOutCubic = 'cubic-bezier(0.645, 0.045, 0.355, 1)';
|
|
119
191
|
|
|
120
|
-
|
|
192
|
+
// @public (undocumented)
|
|
193
|
+
export const Ellipsify: ({
|
|
121
194
|
text,
|
|
122
195
|
lines,
|
|
123
196
|
endLength,
|
|
@@ -125,96 +198,114 @@ export declare const Ellipsify: ({
|
|
|
125
198
|
testId,
|
|
126
199
|
}: EllipsifyProps) => JSX.Element;
|
|
127
200
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
201
|
+
// @public (undocumented)
|
|
202
|
+
export interface EllipsifyProps {
|
|
203
|
+
// (undocumented)
|
|
131
204
|
endLength?: number;
|
|
205
|
+
// (undocumented)
|
|
132
206
|
inline?: boolean;
|
|
207
|
+
// (undocumented)
|
|
208
|
+
lines: number;
|
|
209
|
+
// (undocumented)
|
|
133
210
|
testId?: string;
|
|
211
|
+
// (undocumented)
|
|
212
|
+
text?: string;
|
|
134
213
|
}
|
|
135
214
|
|
|
136
|
-
|
|
215
|
+
// @public (undocumented)
|
|
216
|
+
export const ellipsis: (maxWidth?: number | string) => string;
|
|
137
217
|
|
|
138
|
-
|
|
218
|
+
// @public (undocumented)
|
|
219
|
+
export const errorIcon: JSX.Element;
|
|
139
220
|
|
|
140
|
-
|
|
221
|
+
// @public (undocumented)
|
|
222
|
+
export const ExifOrientation: {
|
|
141
223
|
[key: string]: number;
|
|
142
224
|
};
|
|
143
225
|
|
|
144
|
-
|
|
226
|
+
// @public (undocumented)
|
|
227
|
+
export const fadeIn: string;
|
|
145
228
|
|
|
146
|
-
|
|
229
|
+
// @public (undocumented)
|
|
230
|
+
export type FileInfo = {
|
|
147
231
|
file: File;
|
|
148
232
|
src: string;
|
|
149
233
|
};
|
|
150
234
|
|
|
151
|
-
|
|
235
|
+
// @public (undocumented)
|
|
236
|
+
export function fileToArrayBuffer(file: File): Promise<Uint8Array>;
|
|
152
237
|
|
|
153
|
-
|
|
238
|
+
// @public (undocumented)
|
|
239
|
+
export function fileToDataURI(blob: Blob): Promise<string>;
|
|
154
240
|
|
|
155
|
-
|
|
241
|
+
// @public (undocumented)
|
|
242
|
+
export const findParentByClassname: (
|
|
156
243
|
element: HTMLElement,
|
|
157
244
|
className: string,
|
|
158
245
|
maxParentElement?: HTMLElement,
|
|
159
246
|
) => HTMLElement | undefined;
|
|
160
247
|
|
|
161
|
-
|
|
248
|
+
// @public (undocumented)
|
|
249
|
+
export const formatDate: (timestamp: number, locale?: string) => string;
|
|
162
250
|
|
|
163
|
-
|
|
251
|
+
// @public (undocumented)
|
|
252
|
+
export const formatDuration: (seconds: number) => string;
|
|
164
253
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
) => string;
|
|
254
|
+
// @public (undocumented)
|
|
255
|
+
export const getCssFromImageOrientation: (orientation: number) => string;
|
|
168
256
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
src?: string,
|
|
172
|
-
): Promise<FileInfo>;
|
|
257
|
+
// @public (undocumented)
|
|
258
|
+
export function getFileInfo(file: File, src?: string): Promise<FileInfo>;
|
|
173
259
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
file?: File,
|
|
177
|
-
): Promise<FileInfo>;
|
|
260
|
+
// @public (undocumented)
|
|
261
|
+
export function getFileInfoFromSrc(src: string, file?: File): Promise<FileInfo>;
|
|
178
262
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
): Promise<ImageInfo | null>;
|
|
263
|
+
// @public (undocumented)
|
|
264
|
+
export function getImageInfo(fileInfo: FileInfo): Promise<ImageInfo | null>;
|
|
182
265
|
|
|
183
|
-
|
|
266
|
+
// @public (undocumented)
|
|
267
|
+
export function getMetaTagNumericValue(
|
|
184
268
|
tags: ImageMetaDataTags,
|
|
185
269
|
key: string,
|
|
186
270
|
defaultValue: number,
|
|
187
271
|
): number;
|
|
188
272
|
|
|
189
|
-
|
|
273
|
+
// @public (undocumented)
|
|
274
|
+
export function getMimeIcon(
|
|
190
275
|
mimeType: string,
|
|
191
276
|
fileName: string,
|
|
192
277
|
):
|
|
193
278
|
| MimeTypesRepresentation
|
|
279
|
+
| undefined
|
|
194
280
|
| {
|
|
195
281
|
label: string;
|
|
196
282
|
icon: typeof SourceCodeIcon;
|
|
197
|
-
}
|
|
198
|
-
| undefined;
|
|
283
|
+
};
|
|
199
284
|
|
|
200
|
-
|
|
285
|
+
// @public (undocumented)
|
|
286
|
+
export function getOrientation(file: File): Promise<number>;
|
|
201
287
|
|
|
202
|
-
|
|
288
|
+
// @public (undocumented)
|
|
289
|
+
export function getScaleFactor(
|
|
203
290
|
file: File,
|
|
204
291
|
tags: ImageMetaDataTags | null,
|
|
205
292
|
): number;
|
|
206
293
|
|
|
207
|
-
|
|
294
|
+
// @public (undocumented)
|
|
295
|
+
export function getScaleFactorFromFile(file: File): null | number;
|
|
208
296
|
|
|
209
|
-
|
|
297
|
+
// @public (undocumented)
|
|
298
|
+
export const hideControlsClassName = 'mvng-hide-controls';
|
|
210
299
|
|
|
211
|
-
|
|
300
|
+
// @public (undocumented)
|
|
301
|
+
export type ImageInfo = {
|
|
212
302
|
scaleFactor: number;
|
|
213
303
|
width: number;
|
|
214
304
|
height: number;
|
|
215
305
|
};
|
|
216
306
|
|
|
217
|
-
|
|
307
|
+
// @public (undocumented)
|
|
308
|
+
export type ImageMetaData = {
|
|
218
309
|
type: string;
|
|
219
310
|
width: number;
|
|
220
311
|
height: number;
|
|
@@ -223,61 +314,62 @@ export declare type ImageMetaData = {
|
|
|
223
314
|
tags: ImageMetaDataTags | null;
|
|
224
315
|
};
|
|
225
316
|
|
|
226
|
-
|
|
317
|
+
// @public (undocumented)
|
|
318
|
+
export type ImageMetaDataTags = {
|
|
227
319
|
Orientation?: string;
|
|
228
320
|
PixelPerUnitX?: number;
|
|
229
321
|
PixelPerUnitY?: number;
|
|
230
|
-
[key: string]:
|
|
322
|
+
[key: string]: number | string | undefined;
|
|
231
323
|
};
|
|
232
324
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
* which means they haven't moved mouse over the component for `mouseMovementDelay` ms.
|
|
236
|
-
* Exception is if user holding mouse over one of the hideable elements (those that have specified classname).
|
|
237
|
-
*
|
|
238
|
-
*/
|
|
239
|
-
export declare class InactivityDetector extends Component<
|
|
325
|
+
// @public
|
|
326
|
+
export class InactivityDetector extends Component<
|
|
240
327
|
InactivityDetectorProps,
|
|
241
328
|
InactivityDetectorState
|
|
242
329
|
> {
|
|
243
|
-
|
|
244
|
-
private contentWrapperElement;
|
|
245
|
-
state: InactivityDetectorState;
|
|
246
|
-
private clearTimeout;
|
|
247
|
-
private hideControls;
|
|
248
|
-
private checkMouseMovement;
|
|
330
|
+
// (undocumented)
|
|
249
331
|
componentDidMount(): void;
|
|
332
|
+
// (undocumented)
|
|
250
333
|
componentWillUnmount(): void;
|
|
334
|
+
// (undocumented)
|
|
251
335
|
render(): JSX.Element;
|
|
336
|
+
// (undocumented)
|
|
337
|
+
state: InactivityDetectorState;
|
|
252
338
|
}
|
|
253
339
|
|
|
254
|
-
|
|
340
|
+
// @public (undocumented)
|
|
341
|
+
interface InactivityDetectorProps {
|
|
342
|
+
// (undocumented)
|
|
255
343
|
children: (triggerActivityCallback: () => void) => ReactElement;
|
|
256
344
|
}
|
|
257
345
|
|
|
258
|
-
|
|
346
|
+
// @public (undocumented)
|
|
347
|
+
interface InactivityDetectorState {
|
|
348
|
+
// (undocumented)
|
|
259
349
|
controlsAreVisible: boolean;
|
|
260
350
|
}
|
|
261
351
|
|
|
262
|
-
|
|
352
|
+
// @public (undocumented)
|
|
353
|
+
type InlinePreloaderStyle =
|
|
263
354
|
| 'on-left-with-skeleton'
|
|
264
355
|
| 'on-right-without-skeleton';
|
|
265
356
|
|
|
266
|
-
|
|
357
|
+
// @public (undocumented)
|
|
358
|
+
export const isIntersectionObserverSupported: () => boolean;
|
|
267
359
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
*/
|
|
271
|
-
export declare const isRotated: (orientation: number) => boolean;
|
|
360
|
+
// @public
|
|
361
|
+
export const isRotated: (orientation: number) => boolean;
|
|
272
362
|
|
|
273
|
-
|
|
363
|
+
// @public (undocumented)
|
|
364
|
+
export const keyCodes: {
|
|
274
365
|
space: string;
|
|
275
366
|
m: string;
|
|
276
367
|
rightArrow: string;
|
|
277
368
|
leftArrow: string;
|
|
278
369
|
};
|
|
279
370
|
|
|
280
|
-
|
|
371
|
+
// @public (undocumented)
|
|
372
|
+
export const languages: {
|
|
281
373
|
zh: string;
|
|
282
374
|
cs: string;
|
|
283
375
|
da: string;
|
|
@@ -304,243 +396,268 @@ export declare const languages: {
|
|
|
304
396
|
sv: string;
|
|
305
397
|
};
|
|
306
398
|
|
|
307
|
-
|
|
399
|
+
// @public (undocumented)
|
|
400
|
+
export function loadImage(src: string): Promise<HTMLImageElement>;
|
|
308
401
|
|
|
309
|
-
|
|
402
|
+
// @public (undocumented)
|
|
403
|
+
export const locales: {
|
|
310
404
|
[key: string]: any;
|
|
311
405
|
};
|
|
312
406
|
|
|
313
|
-
|
|
407
|
+
// @public (undocumented)
|
|
408
|
+
export function MediaButton({
|
|
314
409
|
appearance,
|
|
315
410
|
buttonRef,
|
|
316
411
|
...rest
|
|
317
412
|
}: Props): JSX.Element;
|
|
318
413
|
|
|
319
|
-
|
|
414
|
+
// @public (undocumented)
|
|
415
|
+
type MediaButtonAppearance = Appearance;
|
|
320
416
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
imageRef: React_2.RefObject<HTMLImageElement>;
|
|
417
|
+
// @public (undocumented)
|
|
418
|
+
class MediaImage_2 extends Component<MediaImageProps, MediaImageState> {
|
|
324
419
|
constructor(props: MediaImageProps);
|
|
420
|
+
// (undocumented)
|
|
325
421
|
componentDidMount(): void;
|
|
422
|
+
// (undocumented)
|
|
423
|
+
static defaultProps: Partial<MediaImageProps>;
|
|
424
|
+
// (undocumented)
|
|
425
|
+
imageRef: React_2.RefObject<HTMLImageElement>;
|
|
426
|
+
// (undocumented)
|
|
326
427
|
onImageLoad: (e: React_2.SyntheticEvent<HTMLImageElement>) => void;
|
|
428
|
+
// (undocumented)
|
|
327
429
|
render(): JSX.Element;
|
|
328
430
|
}
|
|
329
431
|
export { MediaImage_2 as MediaImage };
|
|
330
432
|
|
|
331
|
-
|
|
332
|
-
|
|
433
|
+
// @public (undocumented)
|
|
434
|
+
export interface MediaImageProps {
|
|
435
|
+
// (undocumented)
|
|
333
436
|
alt?: string;
|
|
437
|
+
// (undocumented)
|
|
334
438
|
crop?: boolean;
|
|
335
|
-
|
|
336
|
-
previewOrientation?: number;
|
|
439
|
+
// (undocumented)
|
|
337
440
|
crossOrigin?: '' | 'anonymous' | 'use-credentials';
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
441
|
+
// (undocumented)
|
|
442
|
+
dataURI: string;
|
|
443
|
+
// (undocumented)
|
|
341
444
|
forceSyncDisplay?: boolean;
|
|
445
|
+
// (undocumented)
|
|
446
|
+
loading?: 'auto' | 'eager' | 'lazy';
|
|
447
|
+
// (undocumented)
|
|
448
|
+
onImageError?: () => void;
|
|
449
|
+
// (undocumented)
|
|
450
|
+
onImageLoad?: (loadedImage: HTMLImageElement) => void;
|
|
451
|
+
// (undocumented)
|
|
452
|
+
previewOrientation?: number;
|
|
453
|
+
// (undocumented)
|
|
454
|
+
stretch?: boolean;
|
|
342
455
|
}
|
|
343
456
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
457
|
+
// @public (undocumented)
|
|
458
|
+
export interface MediaImageState {
|
|
459
|
+
// (undocumented)
|
|
347
460
|
imgHeight: number;
|
|
348
|
-
|
|
461
|
+
// (undocumented)
|
|
462
|
+
imgWidth: number;
|
|
463
|
+
// (undocumented)
|
|
464
|
+
isImageLoaded: boolean;
|
|
465
|
+
// (undocumented)
|
|
349
466
|
parentHeight: number;
|
|
467
|
+
// (undocumented)
|
|
468
|
+
parentWidth: number;
|
|
350
469
|
}
|
|
351
470
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
renderMessage: () => JSX.Element;
|
|
471
|
+
// @public (undocumented)
|
|
472
|
+
export class MediaInlineCardErroredView extends React_2.Component<MediaInlineCardErroredViewProps> {
|
|
473
|
+
// (undocumented)
|
|
356
474
|
render(): JSX.Element;
|
|
475
|
+
// (undocumented)
|
|
476
|
+
renderMessage: () => JSX.Element;
|
|
357
477
|
}
|
|
358
478
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
onClick?: React_2.EventHandler<React_2.MouseEvent | React_2.KeyboardEvent>;
|
|
364
|
-
/** A flag that determines whether the card is selected in edit mode. */
|
|
479
|
+
// @public (undocumented)
|
|
480
|
+
export interface MediaInlineCardErroredViewProps {
|
|
481
|
+
// (undocumented)
|
|
482
|
+
icon?: React_2.ReactNode;
|
|
365
483
|
isSelected?: boolean;
|
|
366
|
-
|
|
484
|
+
message: string;
|
|
485
|
+
onClick?: React_2.EventHandler<React_2.KeyboardEvent | React_2.MouseEvent>;
|
|
367
486
|
testId?: string;
|
|
368
|
-
icon?: React_2.ReactNode;
|
|
369
487
|
}
|
|
370
488
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
489
|
+
// @public (undocumented)
|
|
490
|
+
export class MediaInlineCardLoadedView extends React_2.Component<MediaInlineCardLoadedViewProps> {
|
|
491
|
+
// (undocumented)
|
|
374
492
|
render(): JSX.Element;
|
|
375
493
|
}
|
|
376
494
|
|
|
377
|
-
|
|
378
|
-
|
|
495
|
+
// @public (undocumented)
|
|
496
|
+
export interface MediaInlineCardLoadedViewProps {
|
|
379
497
|
icon?: React_2.ReactNode;
|
|
380
|
-
/** The name of the resource */
|
|
381
|
-
title?: string;
|
|
382
|
-
/** A flag that determines whether the card is selected in edit mode. */
|
|
383
498
|
isSelected?: boolean;
|
|
384
|
-
|
|
385
|
-
onClick?: React_2.EventHandler<React_2.MouseEvent | React_2.KeyboardEvent>;
|
|
386
|
-
/** A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests */
|
|
499
|
+
onClick?: React_2.EventHandler<React_2.KeyboardEvent | React_2.MouseEvent>;
|
|
387
500
|
testId?: string;
|
|
388
|
-
|
|
501
|
+
title?: string;
|
|
389
502
|
titlePrefix?: React_2.ReactNode;
|
|
390
503
|
}
|
|
391
504
|
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
505
|
+
// @public (undocumented)
|
|
506
|
+
export class MediaInlineCardLoadingView extends React_2.Component<MediaInlineCardLoadingViewProps> {
|
|
507
|
+
// (undocumented)
|
|
395
508
|
render(): JSX.Element;
|
|
396
509
|
}
|
|
397
510
|
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
511
|
+
// @public (undocumented)
|
|
512
|
+
export interface MediaInlineCardLoadingViewProps {
|
|
513
|
+
// (undocumented)
|
|
401
514
|
inlinePreloaderStyle?: InlinePreloaderStyle;
|
|
402
|
-
/** The optional click handler */
|
|
403
|
-
onClick?: React_2.EventHandler<React_2.MouseEvent | React_2.KeyboardEvent>;
|
|
404
|
-
/** A flag that determines whether the card is selected in edit mode. */
|
|
405
515
|
isSelected?: boolean;
|
|
406
|
-
|
|
516
|
+
message: string;
|
|
517
|
+
onClick?: React_2.EventHandler<React_2.KeyboardEvent | React_2.MouseEvent>;
|
|
407
518
|
testId?: string;
|
|
519
|
+
// (undocumented)
|
|
408
520
|
withoutHover?: boolean;
|
|
409
521
|
}
|
|
410
522
|
|
|
411
|
-
|
|
523
|
+
// @public (undocumented)
|
|
524
|
+
type MediaTypeProps = {
|
|
412
525
|
testId?: string;
|
|
413
526
|
mediaType?: MediaType;
|
|
414
527
|
mimeType?: string;
|
|
415
528
|
name?: string;
|
|
416
|
-
size?: '
|
|
529
|
+
size?: 'large' | 'small';
|
|
417
530
|
};
|
|
418
531
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
| '
|
|
422
|
-
| '
|
|
423
|
-
| '
|
|
424
|
-
| '
|
|
425
|
-
| '
|
|
426
|
-
| '
|
|
427
|
-
| '
|
|
428
|
-
| '
|
|
532
|
+
// @public (undocumented)
|
|
533
|
+
export type MessageKey =
|
|
534
|
+
| 'accounts'
|
|
535
|
+
| 'actions'
|
|
536
|
+
| 'add_account'
|
|
537
|
+
| 'annotate'
|
|
538
|
+
| 'annotate_confirmation_close_anyway'
|
|
539
|
+
| 'annotate_confirmation_content'
|
|
540
|
+
| 'annotate_confirmation_heading'
|
|
541
|
+
| 'annotate_tool_arrow'
|
|
542
|
+
| 'annotate_tool_blur'
|
|
543
|
+
| 'annotate_tool_brush'
|
|
544
|
+
| 'annotate_tool_color'
|
|
545
|
+
| 'annotate_tool_line_thickness'
|
|
546
|
+
| 'annotate_tool_shape'
|
|
547
|
+
| 'annotate_tool_text'
|
|
548
|
+
| 'archive'
|
|
549
|
+
| 'audio'
|
|
429
550
|
| 'cancel'
|
|
430
|
-
| '
|
|
431
|
-
| 'cant_retrieve_gifs'
|
|
551
|
+
| 'cant_preview_file_type'
|
|
432
552
|
| 'cant_retrieve_files'
|
|
553
|
+
| 'cant_retrieve_gifs'
|
|
554
|
+
| 'changeView'
|
|
433
555
|
| 'check_your_network'
|
|
434
|
-
| '
|
|
435
|
-
| '
|
|
436
|
-
| 'no_gifs_found'
|
|
437
|
-
| 'no_gifs_found_suggestion'
|
|
438
|
-
| 'load_more_gifs'
|
|
439
|
-
| 'add_account'
|
|
440
|
-
| 'unlink_account'
|
|
441
|
-
| 'upload_file_from'
|
|
442
|
-
| 'connect_to'
|
|
556
|
+
| 'close'
|
|
557
|
+
| 'close_and_reopen'
|
|
443
558
|
| 'connect_account_description'
|
|
444
559
|
| 'connect_link_account'
|
|
445
560
|
| 'connect_link_account_card'
|
|
446
|
-
| 'connect_link_account_card_name'
|
|
447
561
|
| 'connect_link_account_card_description'
|
|
448
|
-
| '
|
|
449
|
-
| '
|
|
450
|
-
| '
|
|
451
|
-
| '
|
|
452
|
-
| '
|
|
453
|
-
| '
|
|
454
|
-
| '
|
|
455
|
-
| '
|
|
562
|
+
| 'connect_link_account_card_name'
|
|
563
|
+
| 'connect_to'
|
|
564
|
+
| 'could_not_load_editor'
|
|
565
|
+
| 'could_not_load_link'
|
|
566
|
+
| 'could_not_save_image'
|
|
567
|
+
| 'couldnt_generate_encrypted_entry_preview'
|
|
568
|
+
| 'couldnt_generate_preview'
|
|
569
|
+
| 'couldnt_load_file'
|
|
570
|
+
| 'creating_preview'
|
|
456
571
|
| 'default_avatars'
|
|
572
|
+
| 'disable_fullscreen'
|
|
573
|
+
| 'displayThumbnail'
|
|
574
|
+
| 'document'
|
|
575
|
+
| 'download'
|
|
457
576
|
| 'drag_and_drop_images_here'
|
|
458
|
-
| '
|
|
459
|
-
| '
|
|
577
|
+
| 'drag_and_drop_your_files'
|
|
578
|
+
| 'drag_and_drop_your_files_and_folders'
|
|
579
|
+
| 'drop_your_files'
|
|
580
|
+
| 'drop_your_files_here'
|
|
581
|
+
| 'email'
|
|
582
|
+
| 'enable_fullscreen'
|
|
583
|
+
| 'error_429'
|
|
584
|
+
| 'error_generating_preview'
|
|
585
|
+
| 'error_hint_critical'
|
|
586
|
+
| 'error_hint_retry'
|
|
587
|
+
| 'error_loading_file'
|
|
588
|
+
| 'failed_to_load'
|
|
589
|
+
| 'failed_to_upload'
|
|
590
|
+
| 'give_feedback'
|
|
591
|
+
| 'image'
|
|
460
592
|
| 'image_format_invalid_error'
|
|
461
593
|
| 'image_size_too_large_error'
|
|
462
|
-
| '
|
|
463
|
-
| '
|
|
464
|
-
| '
|
|
465
|
-
| '
|
|
466
|
-
| 'cant_preview_file_type'
|
|
594
|
+
| 'image_url_invalid_error'
|
|
595
|
+
| 'insert_files'
|
|
596
|
+
| 'invalid_permissions'
|
|
597
|
+
| 'invalid_permissions_description'
|
|
467
598
|
| 'item_not_found_in_list'
|
|
468
|
-
| '
|
|
469
|
-
| '
|
|
599
|
+
| 'learn_more'
|
|
600
|
+
| 'load_more_gifs'
|
|
601
|
+
| 'loading'
|
|
602
|
+
| 'loading_file'
|
|
603
|
+
| 'might_be_a_hiccup'
|
|
604
|
+
| 'no_gifs_found'
|
|
605
|
+
| 'no_gifs_found_suggestion'
|
|
470
606
|
| 'no_pdf_artifacts'
|
|
471
|
-
| '
|
|
607
|
+
| 'not_found_description'
|
|
608
|
+
| 'not_found_title'
|
|
609
|
+
| 'or'
|
|
610
|
+
| 'pause'
|
|
611
|
+
| 'play'
|
|
612
|
+
| 'playbackDefaultSpeed'
|
|
613
|
+
| 'playbackSpeed'
|
|
614
|
+
| 'preview'
|
|
615
|
+
| 'preview_currently_unavailable'
|
|
616
|
+
| 'preview_unavailable'
|
|
617
|
+
| 'recent_uploads'
|
|
618
|
+
| 'remove_image'
|
|
619
|
+
| 'retry'
|
|
620
|
+
| 'save'
|
|
621
|
+
| 'search'
|
|
622
|
+
| 'search_all_gifs'
|
|
623
|
+
| 'share_files_instantly'
|
|
624
|
+
| 'skipBackward'
|
|
625
|
+
| 'skipForward'
|
|
626
|
+
| 'something_went_wrong'
|
|
627
|
+
| 'text'
|
|
628
|
+
| 'try_again'
|
|
629
|
+
| 'try_another_account'
|
|
472
630
|
| 'try_downloading_file'
|
|
473
|
-
| 'webgl_warning_description'
|
|
474
631
|
| 'unable_to_annotate_image'
|
|
475
|
-
| 'learn_more'
|
|
476
|
-
| 'accounts'
|
|
477
|
-
| 'actions'
|
|
478
|
-
| 'error_hint_retry'
|
|
479
|
-
| 'error_hint_critical'
|
|
480
|
-
| 'close'
|
|
481
|
-
| 'could_not_load_editor'
|
|
482
|
-
| 'could_not_save_image'
|
|
483
|
-
| 'could_not_load_link'
|
|
484
|
-
| 'annotate'
|
|
485
|
-
| 'annotate_tool_arrow'
|
|
486
|
-
| 'annotate_tool_text'
|
|
487
|
-
| 'annotate_tool_shape'
|
|
488
|
-
| 'annotate_tool_brush'
|
|
489
|
-
| 'annotate_tool_blur'
|
|
490
|
-
| 'annotate_tool_line_thickness'
|
|
491
|
-
| 'annotate_tool_color'
|
|
492
|
-
| 'annotate_confirmation_close_anyway'
|
|
493
|
-
| 'annotate_confirmation_heading'
|
|
494
|
-
| 'annotate_confirmation_content'
|
|
495
|
-
| 'drop_your_files_here'
|
|
496
|
-
| 'share_files_instantly'
|
|
497
|
-
| 'insert_files'
|
|
498
|
-
| 'zoom_out'
|
|
499
|
-
| 'zoom_in'
|
|
500
|
-
| 'remove_image'
|
|
501
|
-
| 'play'
|
|
502
|
-
| 'pause'
|
|
503
|
-
| 'disable_fullscreen'
|
|
504
|
-
| 'enable_fullscreen'
|
|
505
|
-
| 'error_loading_file'
|
|
506
|
-
| 'error_generating_preview'
|
|
507
|
-
| 'download'
|
|
508
632
|
| 'unknown'
|
|
509
|
-
| '
|
|
510
|
-
| '
|
|
633
|
+
| 'unlink_account'
|
|
634
|
+
| 'upload'
|
|
635
|
+
| 'upload_an_avatar'
|
|
636
|
+
| 'upload_file'
|
|
637
|
+
| 'upload_file_from'
|
|
638
|
+
| 'upload_image'
|
|
639
|
+
| 'upload_photo'
|
|
511
640
|
| 'video'
|
|
512
|
-
| 'image'
|
|
513
|
-
| 'archive'
|
|
514
|
-
| 'email'
|
|
515
|
-
| 'text'
|
|
516
|
-
| 'displayThumbnail'
|
|
517
|
-
| 'search'
|
|
518
641
|
| 'view'
|
|
519
642
|
| 'viewIn'
|
|
520
643
|
| 'viewOriginal'
|
|
521
|
-
| 'changeView'
|
|
522
|
-
| 'playbackSpeed'
|
|
523
|
-
| 'skipBackward'
|
|
524
|
-
| 'skipForward'
|
|
525
|
-
| 'playbackDefaultSpeed'
|
|
526
|
-
| 'preview'
|
|
527
|
-
| 'preview_unavailable'
|
|
528
|
-
| 'preview_currently_unavailable'
|
|
529
|
-
| 'creating_preview'
|
|
530
|
-
| 'couldnt_load_file'
|
|
531
|
-
| 'error_429'
|
|
532
|
-
| 'close_and_reopen'
|
|
533
644
|
| 'viewer_rateLimited'
|
|
645
|
+
| 'webgl_warning_description'
|
|
534
646
|
| 'zip_entry_load_fail'
|
|
647
|
+
| 'zoom_in'
|
|
648
|
+
| 'zoom_out'
|
|
535
649
|
| RequestAccessMessageKey;
|
|
536
650
|
|
|
537
|
-
|
|
651
|
+
// @public (undocumented)
|
|
652
|
+
type Messages = {
|
|
538
653
|
[K in MessageKey]: MessageDescriptor;
|
|
539
654
|
};
|
|
540
655
|
|
|
541
|
-
|
|
656
|
+
// @public (undocumented)
|
|
657
|
+
export const messages: Messages;
|
|
542
658
|
|
|
543
|
-
|
|
659
|
+
// @public (undocumented)
|
|
660
|
+
export const MimeTypeIcon: ({
|
|
544
661
|
mediaType,
|
|
545
662
|
mimeType,
|
|
546
663
|
name,
|
|
@@ -548,158 +665,222 @@ export declare const MimeTypeIcon: ({
|
|
|
548
665
|
size,
|
|
549
666
|
}: MediaTypeProps) => JSX.Element;
|
|
550
667
|
|
|
551
|
-
|
|
668
|
+
// @public (undocumented)
|
|
669
|
+
interface MimeTypesRepresentation {
|
|
670
|
+
// (undocumented)
|
|
671
|
+
icon: any;
|
|
672
|
+
// (undocumented)
|
|
552
673
|
label: string;
|
|
674
|
+
// (undocumented)
|
|
553
675
|
mimeTypes: string[];
|
|
554
|
-
icon: any;
|
|
555
676
|
}
|
|
556
677
|
|
|
557
|
-
|
|
678
|
+
// @public (undocumented)
|
|
679
|
+
export const ModalSpinner: ({
|
|
558
680
|
blankedColor,
|
|
559
681
|
invertSpinnerColor,
|
|
560
682
|
}: Props_2) => JSX.Element;
|
|
561
683
|
|
|
562
|
-
|
|
684
|
+
// @public (undocumented)
|
|
685
|
+
type Props = WithMediaButtonAppearance<CustomThemeButtonProps> & {
|
|
563
686
|
buttonRef?: RefObject<HTMLButtonElement>;
|
|
564
687
|
};
|
|
565
688
|
|
|
566
|
-
|
|
689
|
+
// @public (undocumented)
|
|
690
|
+
interface Props_2 {
|
|
691
|
+
// (undocumented)
|
|
567
692
|
blankedColor?: string;
|
|
693
|
+
// (undocumented)
|
|
568
694
|
invertSpinnerColor?: boolean;
|
|
569
695
|
}
|
|
570
696
|
|
|
571
|
-
|
|
697
|
+
// @public (undocumented)
|
|
698
|
+
export function readImageMetaData(
|
|
572
699
|
fileInfo: FileInfo,
|
|
573
700
|
): Promise<ImageMetaData | null>;
|
|
574
701
|
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
readonly height: number;
|
|
702
|
+
// @public (undocumented)
|
|
703
|
+
export class Rectangle {
|
|
578
704
|
constructor(width: number, height: number);
|
|
705
|
+
// (undocumented)
|
|
579
706
|
get aspectRatio(): number;
|
|
707
|
+
// (undocumented)
|
|
580
708
|
get center(): Vector2;
|
|
581
|
-
|
|
582
|
-
|
|
709
|
+
// (undocumented)
|
|
710
|
+
clone(): Rectangle;
|
|
711
|
+
// (undocumented)
|
|
583
712
|
flipped(): Rectangle;
|
|
713
|
+
// (undocumented)
|
|
714
|
+
readonly height: number;
|
|
715
|
+
// (undocumented)
|
|
716
|
+
resized(width: number, height: number): Rectangle;
|
|
717
|
+
// (undocumented)
|
|
718
|
+
scaled(scale: number): Rectangle;
|
|
719
|
+
// (undocumented)
|
|
584
720
|
scaleToFit(containing: Rectangle): number;
|
|
721
|
+
// (undocumented)
|
|
585
722
|
scaleToFitLargestSide(containing: Rectangle): number;
|
|
723
|
+
// (undocumented)
|
|
586
724
|
scaleToFitSmallestSide(containing: Rectangle): number;
|
|
587
|
-
|
|
725
|
+
// (undocumented)
|
|
726
|
+
readonly width: number;
|
|
588
727
|
}
|
|
589
728
|
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
| 'click_to_join_description'
|
|
593
|
-
| 'request_access_pending_description'
|
|
729
|
+
// @public (undocumented)
|
|
730
|
+
type RequestAccessMessageKey =
|
|
594
731
|
| 'click_to_join'
|
|
732
|
+
| 'click_to_join_description'
|
|
733
|
+
| 'forbidden_description'
|
|
595
734
|
| 'request_access'
|
|
735
|
+
| 'request_access_description'
|
|
596
736
|
| 'request_access_pending'
|
|
597
|
-
| '
|
|
737
|
+
| 'request_access_pending_description'
|
|
598
738
|
| 'request_denied_description';
|
|
599
739
|
|
|
600
|
-
|
|
740
|
+
// @public (undocumented)
|
|
741
|
+
export class Shortcut extends Component<ShortcutProps, {}> {
|
|
742
|
+
// (undocumented)
|
|
601
743
|
componentDidMount(): void;
|
|
744
|
+
// (undocumented)
|
|
602
745
|
componentWillUnmount(): void;
|
|
746
|
+
// (undocumented)
|
|
603
747
|
render(): null;
|
|
604
|
-
private keyHandler;
|
|
605
|
-
private init;
|
|
606
|
-
private release;
|
|
607
748
|
}
|
|
608
749
|
|
|
609
|
-
|
|
750
|
+
// @public (undocumented)
|
|
751
|
+
export type ShortcutProps = {
|
|
610
752
|
handler: () => void;
|
|
611
|
-
} & (
|
|
753
|
+
} & (WithCode | WithKeyCode);
|
|
612
754
|
|
|
613
|
-
|
|
755
|
+
// @public (undocumented)
|
|
756
|
+
export const size: (value?: number | string) => string;
|
|
614
757
|
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
> {
|
|
619
|
-
thumbElement: React_2.RefObject<HTMLDivElement>;
|
|
620
|
-
wrapperElement: React_2.RefObject<HTMLDivElement>;
|
|
621
|
-
wrapperElementWidth: number;
|
|
622
|
-
state: TimeRangeState;
|
|
623
|
-
static defaultProps: Partial<TimeRangeProps>;
|
|
758
|
+
// @public (undocumented)
|
|
759
|
+
export class TimeRange extends Component<TimeRangeProps, TimeRangeState> {
|
|
760
|
+
// (undocumented)
|
|
624
761
|
componentDidMount(): void;
|
|
762
|
+
// (undocumented)
|
|
625
763
|
componentWillUnmount(): void;
|
|
626
|
-
|
|
764
|
+
// (undocumented)
|
|
765
|
+
static defaultProps: Partial<TimeRangeProps>;
|
|
766
|
+
// (undocumented)
|
|
627
767
|
onMouseMove: (e: MouseEvent) => void;
|
|
768
|
+
// (undocumented)
|
|
628
769
|
onMouseUp: () => void;
|
|
770
|
+
// (undocumented)
|
|
629
771
|
onThumbMouseDown: (e: React_2.SyntheticEvent<HTMLDivElement>) => void;
|
|
772
|
+
// (undocumented)
|
|
630
773
|
render(): JSX.Element;
|
|
774
|
+
// (undocumented)
|
|
775
|
+
state: TimeRangeState;
|
|
776
|
+
// (undocumented)
|
|
777
|
+
thumbElement: React_2.RefObject<HTMLDivElement>;
|
|
778
|
+
// (undocumented)
|
|
779
|
+
wrapperElement: React_2.RefObject<HTMLDivElement>;
|
|
780
|
+
// (undocumented)
|
|
781
|
+
wrapperElementWidth: number;
|
|
631
782
|
}
|
|
632
783
|
|
|
633
|
-
|
|
634
|
-
|
|
784
|
+
// @public (undocumented)
|
|
785
|
+
export interface TimeRangeProps {
|
|
786
|
+
// (undocumented)
|
|
635
787
|
bufferedTime: number;
|
|
636
|
-
|
|
637
|
-
|
|
788
|
+
// (undocumented)
|
|
789
|
+
currentTime: number;
|
|
790
|
+
// (undocumented)
|
|
638
791
|
disableThumbTooltip: boolean;
|
|
792
|
+
// (undocumented)
|
|
793
|
+
duration: number;
|
|
794
|
+
// (undocumented)
|
|
639
795
|
isAlwaysActive: boolean;
|
|
796
|
+
// (undocumented)
|
|
797
|
+
onChange: (newTime: number) => void;
|
|
798
|
+
// (undocumented)
|
|
640
799
|
onChanged?: () => void;
|
|
641
800
|
}
|
|
642
801
|
|
|
643
|
-
|
|
644
|
-
|
|
802
|
+
// @public (undocumented)
|
|
803
|
+
export interface TimeRangeState {
|
|
804
|
+
// (undocumented)
|
|
645
805
|
dragStartClientX: number;
|
|
806
|
+
// (undocumented)
|
|
807
|
+
isDragging: boolean;
|
|
646
808
|
}
|
|
647
809
|
|
|
648
|
-
|
|
810
|
+
// @public (undocumented)
|
|
811
|
+
interface TimeSaverConfig {
|
|
812
|
+
// (undocumented)
|
|
649
813
|
contentId: string;
|
|
650
814
|
}
|
|
651
815
|
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
*/
|
|
655
|
-
export declare function toHumanReadableMediaSize(size: number): string;
|
|
816
|
+
// @public
|
|
817
|
+
export function toHumanReadableMediaSize(size: number): string;
|
|
656
818
|
|
|
657
|
-
|
|
819
|
+
// @public (undocumented)
|
|
820
|
+
export const Truncate: React_2.FC<TruncateProps>;
|
|
658
821
|
|
|
659
|
-
|
|
822
|
+
// @public (undocumented)
|
|
823
|
+
export type TruncateProps = {
|
|
660
824
|
text: string;
|
|
661
825
|
fontSizePX?: number;
|
|
662
826
|
startFixedChars?: number;
|
|
663
827
|
endFixedChars?: number;
|
|
664
828
|
};
|
|
665
829
|
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
readonly y: number;
|
|
830
|
+
// @public (undocumented)
|
|
831
|
+
export class Vector2 {
|
|
669
832
|
constructor(x: number, y: number);
|
|
833
|
+
// (undocumented)
|
|
670
834
|
add({ x: thatX, y: thatY }: Vector2): Vector2;
|
|
671
|
-
|
|
672
|
-
scaled(scalar: number): Vector2;
|
|
673
|
-
map(fn: (component: number) => number): Vector2;
|
|
835
|
+
// (undocumented)
|
|
674
836
|
clone(): Vector2;
|
|
837
|
+
// (undocumented)
|
|
838
|
+
map(fn: (component: number) => number): Vector2;
|
|
839
|
+
// (undocumented)
|
|
675
840
|
rounded(): Vector2;
|
|
841
|
+
// (undocumented)
|
|
842
|
+
scaled(scalar: number): Vector2;
|
|
843
|
+
// (undocumented)
|
|
844
|
+
sub({ x: thatX, y: thatY }: Vector2): Vector2;
|
|
845
|
+
// (undocumented)
|
|
676
846
|
toString(): string;
|
|
847
|
+
// (undocumented)
|
|
848
|
+
readonly x: number;
|
|
849
|
+
// (undocumented)
|
|
850
|
+
readonly y: number;
|
|
677
851
|
}
|
|
678
852
|
|
|
679
|
-
|
|
853
|
+
// @public (undocumented)
|
|
854
|
+
type WithCode = {
|
|
680
855
|
code: string;
|
|
681
856
|
keyCode?: never;
|
|
682
857
|
};
|
|
683
858
|
|
|
684
|
-
|
|
685
|
-
|
|
859
|
+
// @public (undocumented)
|
|
860
|
+
type WithKeyCode = {
|
|
686
861
|
keyCode: number;
|
|
687
862
|
code?: never;
|
|
688
863
|
};
|
|
689
864
|
|
|
690
|
-
|
|
865
|
+
// @public (undocumented)
|
|
866
|
+
type WithMediaButtonAppearance<T> = Omit<T, 'appearance'> & {
|
|
691
867
|
appearance?: MediaButtonAppearance;
|
|
692
868
|
};
|
|
693
869
|
|
|
694
|
-
|
|
870
|
+
// @public (undocumented)
|
|
871
|
+
type WithPlaybackProps = {
|
|
695
872
|
readonly isAutoPlay: boolean;
|
|
696
873
|
readonly isHDAvailable?: boolean;
|
|
697
874
|
readonly isHDActive?: boolean;
|
|
698
875
|
};
|
|
699
876
|
|
|
700
|
-
|
|
877
|
+
// @public (undocumented)
|
|
878
|
+
export interface WithShowControlMethodProp {
|
|
879
|
+
// (undocumented)
|
|
701
880
|
showControls?: () => void;
|
|
702
881
|
}
|
|
703
882
|
|
|
704
|
-
|
|
883
|
+
// (No @packageDocumentation comment for this package)
|
|
705
884
|
```
|
|
885
|
+
|
|
886
|
+
<!--SECTION END: Main Entry Types-->
|