@atlaskit/media-ui 22.1.3 → 22.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 (137) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/MediaButton.js +23 -15
  3. package/dist/cjs/MediaInlineCard/ErroredView/index.js +3 -1
  4. package/dist/cjs/MediaInlineCard/Frame/styled.js +7 -10
  5. package/dist/cjs/MediaInlineCard/IconAndTitleLayout/index.js +5 -1
  6. package/dist/cjs/MediaInlineCard/styled.js +3 -6
  7. package/dist/cjs/customMediaPlayer/index.js +2 -2
  8. package/dist/cjs/customMediaPlayer/playbackSpeedControls.js +14 -4
  9. package/dist/cjs/customMediaPlayer/styled.js +7 -7
  10. package/dist/cjs/errorIcon.js +1 -0
  11. package/dist/cjs/mime-type-icon.js +1 -1
  12. package/dist/cjs/version.json +1 -1
  13. package/dist/es2019/MediaButton.js +27 -14
  14. package/dist/es2019/MediaInlineCard/ErroredView/index.js +2 -1
  15. package/dist/es2019/MediaInlineCard/Frame/styled.js +7 -10
  16. package/dist/es2019/MediaInlineCard/IconAndTitleLayout/index.js +3 -1
  17. package/dist/es2019/MediaInlineCard/styled.js +2 -5
  18. package/dist/es2019/customMediaPlayer/index.js +7 -3
  19. package/dist/es2019/customMediaPlayer/playbackSpeedControls.js +17 -5
  20. package/dist/es2019/customMediaPlayer/styled.js +9 -8
  21. package/dist/es2019/errorIcon.js +1 -0
  22. package/dist/es2019/mime-type-icon.js +1 -1
  23. package/dist/es2019/version.json +1 -1
  24. package/dist/esm/MediaButton.js +26 -14
  25. package/dist/esm/MediaInlineCard/ErroredView/index.js +2 -1
  26. package/dist/esm/MediaInlineCard/Frame/styled.js +7 -10
  27. package/dist/esm/MediaInlineCard/IconAndTitleLayout/index.js +3 -1
  28. package/dist/esm/MediaInlineCard/styled.js +2 -5
  29. package/dist/esm/customMediaPlayer/index.js +6 -3
  30. package/dist/esm/customMediaPlayer/playbackSpeedControls.js +18 -5
  31. package/dist/esm/customMediaPlayer/styled.js +9 -8
  32. package/dist/esm/errorIcon.js +1 -0
  33. package/dist/esm/mime-type-icon.js +1 -1
  34. package/dist/esm/version.json +1 -1
  35. package/dist/types/MediaInlineCard/styled.d.ts +1 -3
  36. package/dist/types/media-type-icon.d.ts +1 -0
  37. package/example-helpers/styled.ts +5 -3
  38. package/package.json +15 -18
  39. package/report.api.md +504 -323
  40. package/dist/types-ts4.0/MediaButton.d.ts +0 -15
  41. package/dist/types-ts4.0/MediaInlineCard/ErroredView/index.d.ts +0 -16
  42. package/dist/types-ts4.0/MediaInlineCard/Frame/index.d.ts +0 -17
  43. package/dist/types-ts4.0/MediaInlineCard/Frame/styled.d.ts +0 -5
  44. package/dist/types-ts4.0/MediaInlineCard/Icon.d.ts +0 -3
  45. package/dist/types-ts4.0/MediaInlineCard/IconAndTitleLayout/index.d.ts +0 -18
  46. package/dist/types-ts4.0/MediaInlineCard/IconAndTitleLayout/styled.d.ts +0 -12
  47. package/dist/types-ts4.0/MediaInlineCard/LoadedView/index.d.ts +0 -18
  48. package/dist/types-ts4.0/MediaInlineCard/LoadingView/index.d.ts +0 -17
  49. package/dist/types-ts4.0/MediaInlineCard/LoadingView/styled.d.ts +0 -14
  50. package/dist/types-ts4.0/MediaInlineCard/index.d.ts +0 -6
  51. package/dist/types-ts4.0/MediaInlineCard/styled.d.ts +0 -4
  52. package/dist/types-ts4.0/browser.d.ts +0 -6
  53. package/dist/types-ts4.0/camera.d.ts +0 -62
  54. package/dist/types-ts4.0/classNames.d.ts +0 -1
  55. package/dist/types-ts4.0/codeViewer.d.ts +0 -8
  56. package/dist/types-ts4.0/customMediaPlayer/analytics/events/screen/customMediaPlayer.d.ts +0 -5
  57. package/dist/types-ts4.0/customMediaPlayer/analytics/events/track/playCount.d.ts +0 -5
  58. package/dist/types-ts4.0/customMediaPlayer/analytics/events/track/played.d.ts +0 -5
  59. package/dist/types-ts4.0/customMediaPlayer/analytics/events/ui/mediaButtonClicked.d.ts +0 -5
  60. package/dist/types-ts4.0/customMediaPlayer/analytics/events/ui/playPauseBlanketClicked.d.ts +0 -5
  61. package/dist/types-ts4.0/customMediaPlayer/analytics/events/ui/playbackSpeedChanged.d.ts +0 -5
  62. package/dist/types-ts4.0/customMediaPlayer/analytics/events/ui/shortcutPressed.d.ts +0 -5
  63. package/dist/types-ts4.0/customMediaPlayer/analytics/events/ui/timeRangeNavigated.d.ts +0 -5
  64. package/dist/types-ts4.0/customMediaPlayer/analytics/index.d.ts +0 -11
  65. package/dist/types-ts4.0/customMediaPlayer/analytics/utils/analytics.d.ts +0 -19
  66. package/dist/types-ts4.0/customMediaPlayer/analytics/utils/playbackAttributes.d.ts +0 -24
  67. package/dist/types-ts4.0/customMediaPlayer/fullscreen.d.ts +0 -5
  68. package/dist/types-ts4.0/customMediaPlayer/getControlsWrapperClassName.d.ts +0 -1
  69. package/dist/types-ts4.0/customMediaPlayer/icons.d.ts +0 -4
  70. package/dist/types-ts4.0/customMediaPlayer/index.d.ts +0 -76
  71. package/dist/types-ts4.0/customMediaPlayer/playPauseBlanket.d.ts +0 -2
  72. package/dist/types-ts4.0/customMediaPlayer/playbackSpeedControls.d.ts +0 -23
  73. package/dist/types-ts4.0/customMediaPlayer/simultaneousPlayManager.d.ts +0 -9
  74. package/dist/types-ts4.0/customMediaPlayer/styled.d.ts +0 -33
  75. package/dist/types-ts4.0/customMediaPlayer/timeRange.d.ts +0 -29
  76. package/dist/types-ts4.0/customMediaPlayer/timeSaver.d.ts +0 -14
  77. package/dist/types-ts4.0/customMediaPlayer/types.d.ts +0 -4
  78. package/dist/types-ts4.0/ellipsify.d.ts +0 -12
  79. package/dist/types-ts4.0/errorIcon.d.ts +0 -2
  80. package/dist/types-ts4.0/formatDate.d.ts +0 -11
  81. package/dist/types-ts4.0/formatDuration.d.ts +0 -1
  82. package/dist/types-ts4.0/humanReadableSize.d.ts +0 -4
  83. package/dist/types-ts4.0/i18n/cs.d.ts +0 -132
  84. package/dist/types-ts4.0/i18n/da.d.ts +0 -132
  85. package/dist/types-ts4.0/i18n/de.d.ts +0 -132
  86. package/dist/types-ts4.0/i18n/en.d.ts +0 -132
  87. package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -132
  88. package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -132
  89. package/dist/types-ts4.0/i18n/es.d.ts +0 -132
  90. package/dist/types-ts4.0/i18n/et.d.ts +0 -94
  91. package/dist/types-ts4.0/i18n/fi.d.ts +0 -132
  92. package/dist/types-ts4.0/i18n/fr.d.ts +0 -132
  93. package/dist/types-ts4.0/i18n/hu.d.ts +0 -132
  94. package/dist/types-ts4.0/i18n/index.d.ts +0 -35
  95. package/dist/types-ts4.0/i18n/is.d.ts +0 -70
  96. package/dist/types-ts4.0/i18n/it.d.ts +0 -132
  97. package/dist/types-ts4.0/i18n/ja.d.ts +0 -132
  98. package/dist/types-ts4.0/i18n/ko.d.ts +0 -132
  99. package/dist/types-ts4.0/i18n/languages.d.ts +0 -27
  100. package/dist/types-ts4.0/i18n/nb.d.ts +0 -132
  101. package/dist/types-ts4.0/i18n/nl.d.ts +0 -132
  102. package/dist/types-ts4.0/i18n/pl.d.ts +0 -132
  103. package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -132
  104. package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -94
  105. package/dist/types-ts4.0/i18n/ro.d.ts +0 -70
  106. package/dist/types-ts4.0/i18n/ru.d.ts +0 -132
  107. package/dist/types-ts4.0/i18n/sk.d.ts +0 -94
  108. package/dist/types-ts4.0/i18n/sv.d.ts +0 -132
  109. package/dist/types-ts4.0/i18n/th.d.ts +0 -132
  110. package/dist/types-ts4.0/i18n/tr.d.ts +0 -132
  111. package/dist/types-ts4.0/i18n/uk.d.ts +0 -132
  112. package/dist/types-ts4.0/i18n/vi.d.ts +0 -132
  113. package/dist/types-ts4.0/i18n/zh.d.ts +0 -132
  114. package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -132
  115. package/dist/types-ts4.0/imageMetaData/imageOrientationUtil.d.ts +0 -5
  116. package/dist/types-ts4.0/imageMetaData/index.d.ts +0 -10
  117. package/dist/types-ts4.0/imageMetaData/metatags.d.ts +0 -2
  118. package/dist/types-ts4.0/imageMetaData/parseJPEG.d.ts +0 -2
  119. package/dist/types-ts4.0/imageMetaData/parsePNG.d.ts +0 -3
  120. package/dist/types-ts4.0/imageMetaData/parsePNGXMP.d.ts +0 -2
  121. package/dist/types-ts4.0/imageMetaData/types.d.ts +0 -46
  122. package/dist/types-ts4.0/inactivityDetector/inactivityDetector.d.ts +0 -24
  123. package/dist/types-ts4.0/inactivityDetector/styled.d.ts +0 -5
  124. package/dist/types-ts4.0/index.d.ts +0 -36
  125. package/dist/types-ts4.0/intersectionObserver.d.ts +0 -1
  126. package/dist/types-ts4.0/locales.d.ts +0 -4
  127. package/dist/types-ts4.0/media-type-icon.d.ts +0 -17
  128. package/dist/types-ts4.0/mediaImage/index.d.ts +0 -29
  129. package/dist/types-ts4.0/mediaImage/styled.d.ts +0 -5
  130. package/dist/types-ts4.0/messages.d.ts +0 -8
  131. package/dist/types-ts4.0/mime-type-icon.d.ts +0 -11
  132. package/dist/types-ts4.0/mixins.d.ts +0 -8
  133. package/dist/types-ts4.0/modalSpinner.d.ts +0 -9
  134. package/dist/types-ts4.0/shortcut.d.ts +0 -28
  135. package/dist/types-ts4.0/truncateText.d.ts +0 -17
  136. package/dist/types-ts4.0/types.d.ts +0 -16
  137. package/dist/types-ts4.0/util.d.ts +0 -23
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. It is a report generated by [API Extractor](https://api-extractor.com/).
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
- export declare const absolute: (top?: number, left?: number) => string;
32
+ // @public (undocumented)
33
+ export const absolute: (top?: number, left?: number) => string;
22
34
 
23
- export declare interface AccessContext {
35
+ // @public (undocumented)
36
+ export interface AccessContext {
37
+ // (undocumented)
24
38
  accessType?: AccessTypes;
39
+ // (undocumented)
25
40
  cloudId?: string;
26
- url?: string;
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
- export declare type AccessTypes =
34
- | 'REQUEST_ACCESS'
35
- | 'PENDING_REQUEST_EXISTS'
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
- | 'ACCESS_EXISTS';
54
+ | 'DENIED_REQUEST_EXISTS'
55
+ | 'DIRECT_ACCESS'
56
+ | 'FORBIDDEN'
57
+ | 'PENDING_REQUEST_EXISTS'
58
+ | 'REQUEST_ACCESS';
41
59
 
42
- export declare const borderRadius: string;
60
+ // @public (undocumented)
61
+ export const borderRadius: string;
43
62
 
44
- export declare const borderRadiusBottom: string;
63
+ // @public (undocumented)
64
+ export const borderRadiusBottom: string;
45
65
 
46
- export declare class Bounds extends Rectangle {
47
- readonly x: number;
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
- get origin(): Vector2;
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
- flipped(): Bounds;
61
- scaled(scale: number): Bounds;
62
- relativeTo(bounds: Bounds): Bounds;
71
+ // (undocumented)
72
+ get center(): Vector2;
73
+ // (undocumented)
63
74
  clone(): Bounds;
64
- map(fn: (value: number) => number): Bounds;
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
- vFlipWithin(containerBounds: Bounds): Bounds;
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
- equals(bounds: Bounds): boolean;
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
- export declare class Camera {
73
- readonly viewport: Rectangle;
74
- readonly originalImg: Rectangle;
115
+ // @public (undocumented)
116
+ export class Camera {
75
117
  constructor(viewport: Rectangle, originalImg: Rectangle);
76
- resizedViewport(newViewport: Rectangle): Camera;
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
- export declare const center =
140
+ // @public (undocumented)
141
+ export const center =
89
142
  '\n display: flex;\n align-items: center;\n justify-content: center;\n';
90
143
 
91
- export declare const CustomMediaPlayer: React_2.ComponentType<
144
+ // @public (undocumented)
145
+ export const CustomMediaPlayer: React_2.ComponentType<
92
146
  CustomMediaPlayerProps & WithAnalyticsEventsProps
93
147
  >;
94
148
 
95
- declare interface CustomMediaPlayerProps
149
+ // @public (undocumented)
150
+ interface CustomMediaPlayerProps
96
151
  extends WithPlaybackProps,
97
152
  WithShowControlMethodProp {
98
- readonly type: CustomMediaPlayerType;
99
- readonly src: string;
153
+ // (undocumented)
154
+ readonly featureFlags?: MediaFeatureFlags;
155
+ // (undocumented)
100
156
  readonly fileId?: string;
101
- readonly onHDToggleClick?: () => void;
157
+ // (undocumented)
102
158
  readonly isShortcutEnabled?: boolean;
159
+ // (undocumented)
103
160
  readonly lastWatchTimeConfig?: TimeSaverConfig;
161
+ // (undocumented)
104
162
  readonly onCanPlay?: () => void;
105
- readonly onError?: () => void;
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
- readonly featureFlags?: MediaFeatureFlags;
175
+ // (undocumented)
111
176
  readonly poster?: string;
177
+ // (undocumented)
178
+ readonly src: string;
179
+ // (undocumented)
180
+ readonly type: CustomMediaPlayerType;
112
181
  }
113
182
 
114
- declare type CustomMediaPlayerType = 'audio' | 'video';
183
+ // @public (undocumented)
184
+ type CustomMediaPlayerType = 'audio' | 'video';
115
185
 
116
- export declare function dataURItoFile(dataURI: string, filename?: string): File;
186
+ // @public (undocumented)
187
+ export function dataURItoFile(dataURI: string, filename?: string): File;
117
188
 
118
- export declare const easeInOutCubic = 'cubic-bezier(0.645, 0.045, 0.355, 1)';
189
+ // @public (undocumented)
190
+ export const easeInOutCubic = 'cubic-bezier(0.645, 0.045, 0.355, 1)';
119
191
 
120
- export declare const Ellipsify: ({
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
- export declare interface EllipsifyProps {
129
- text?: string;
130
- lines: number;
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
- export declare const ellipsis: (maxWidth?: string | number) => string;
215
+ // @public (undocumented)
216
+ export const ellipsis: (maxWidth?: number | string) => string;
137
217
 
138
- export declare const errorIcon: JSX.Element;
218
+ // @public (undocumented)
219
+ export const errorIcon: JSX.Element;
139
220
 
140
- export declare const ExifOrientation: {
221
+ // @public (undocumented)
222
+ export const ExifOrientation: {
141
223
  [key: string]: number;
142
224
  };
143
225
 
144
- export declare const fadeIn: string;
226
+ // @public (undocumented)
227
+ export const fadeIn: string;
145
228
 
146
- export declare type FileInfo = {
229
+ // @public (undocumented)
230
+ export type FileInfo = {
147
231
  file: File;
148
232
  src: string;
149
233
  };
150
234
 
151
- export declare function fileToArrayBuffer(file: File): Promise<Uint8Array>;
235
+ // @public (undocumented)
236
+ export function fileToArrayBuffer(file: File): Promise<Uint8Array>;
152
237
 
153
- export declare function fileToDataURI(blob: Blob): Promise<string>;
238
+ // @public (undocumented)
239
+ export function fileToDataURI(blob: Blob): Promise<string>;
154
240
 
155
- export declare const findParentByClassname: (
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
- export declare const formatDate: (timestamp: number, locale?: string) => string;
248
+ // @public (undocumented)
249
+ export const formatDate: (timestamp: number, locale?: string) => string;
162
250
 
163
- export declare const formatDuration: (seconds: number) => string;
251
+ // @public (undocumented)
252
+ export const formatDuration: (seconds: number) => string;
164
253
 
165
- export declare const getCssFromImageOrientation: (
166
- orientation: number,
167
- ) => string;
254
+ // @public (undocumented)
255
+ export const getCssFromImageOrientation: (orientation: number) => string;
168
256
 
169
- export declare function getFileInfo(
170
- file: File,
171
- src?: string,
172
- ): Promise<FileInfo>;
257
+ // @public (undocumented)
258
+ export function getFileInfo(file: File, src?: string): Promise<FileInfo>;
173
259
 
174
- export declare function getFileInfoFromSrc(
175
- src: string,
176
- file?: File,
177
- ): Promise<FileInfo>;
260
+ // @public (undocumented)
261
+ export function getFileInfoFromSrc(src: string, file?: File): Promise<FileInfo>;
178
262
 
179
- export declare function getImageInfo(
180
- fileInfo: FileInfo,
181
- ): Promise<ImageInfo | null>;
263
+ // @public (undocumented)
264
+ export function getImageInfo(fileInfo: FileInfo): Promise<ImageInfo | null>;
182
265
 
183
- export declare function getMetaTagNumericValue(
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
- export declare function getMimeIcon(
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
- export declare function getOrientation(file: File): Promise<number>;
285
+ // @public (undocumented)
286
+ export function getOrientation(file: File): Promise<number>;
201
287
 
202
- export declare function getScaleFactor(
288
+ // @public (undocumented)
289
+ export function getScaleFactor(
203
290
  file: File,
204
291
  tags: ImageMetaDataTags | null,
205
292
  ): number;
206
293
 
207
- export declare function getScaleFactorFromFile(file: File): number | null;
294
+ // @public (undocumented)
295
+ export function getScaleFactorFromFile(file: File): null | number;
208
296
 
209
- export declare const hideControlsClassName = 'mvng-hide-controls';
297
+ // @public (undocumented)
298
+ export const hideControlsClassName = 'mvng-hide-controls';
210
299
 
211
- export declare type ImageInfo = {
300
+ // @public (undocumented)
301
+ export type ImageInfo = {
212
302
  scaleFactor: number;
213
303
  width: number;
214
304
  height: number;
215
305
  };
216
306
 
217
- export declare type ImageMetaData = {
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
- export declare type ImageMetaDataTags = {
317
+ // @public (undocumented)
318
+ export type ImageMetaDataTags = {
227
319
  Orientation?: string;
228
320
  PixelPerUnitX?: number;
229
321
  PixelPerUnitY?: number;
230
- [key: string]: string | number | undefined;
322
+ [key: string]: number | string | undefined;
231
323
  };
232
324
 
233
- /**
234
- * Hides all the child elements with `hideControlsClassName` classname when user is inactive,
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
- private checkActivityTimeout?;
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
- declare interface InactivityDetectorProps {
340
+ // @public (undocumented)
341
+ interface InactivityDetectorProps {
342
+ // (undocumented)
255
343
  children: (triggerActivityCallback: () => void) => ReactElement;
256
344
  }
257
345
 
258
- declare interface InactivityDetectorState {
346
+ // @public (undocumented)
347
+ interface InactivityDetectorState {
348
+ // (undocumented)
259
349
  controlsAreVisible: boolean;
260
350
  }
261
351
 
262
- declare type InlinePreloaderStyle =
352
+ // @public (undocumented)
353
+ type InlinePreloaderStyle =
263
354
  | 'on-left-with-skeleton'
264
355
  | 'on-right-without-skeleton';
265
356
 
266
- export declare const isIntersectionObserverSupported: () => boolean;
357
+ // @public (undocumented)
358
+ export const isIntersectionObserverSupported: () => boolean;
267
359
 
268
- /**
269
- * Returns true if image rotated 90 or 270 degrees (on it's side)
270
- */
271
- export declare const isRotated: (orientation: number) => boolean;
360
+ // @public
361
+ export const isRotated: (orientation: number) => boolean;
272
362
 
273
- export declare const keyCodes: {
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
- export declare const languages: {
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
- export declare function loadImage(src: string): Promise<HTMLImageElement>;
399
+ // @public (undocumented)
400
+ export function loadImage(src: string): Promise<HTMLImageElement>;
308
401
 
309
- export declare const locales: {
402
+ // @public (undocumented)
403
+ export const locales: {
310
404
  [key: string]: any;
311
405
  };
312
406
 
313
- export declare function MediaButton({
407
+ // @public (undocumented)
408
+ export function MediaButton({
314
409
  appearance,
315
410
  buttonRef,
316
411
  ...rest
317
412
  }: Props): JSX.Element;
318
413
 
319
- declare type MediaButtonAppearance = Appearance;
414
+ // @public (undocumented)
415
+ type MediaButtonAppearance = Appearance;
320
416
 
321
- declare class MediaImage_2 extends Component<MediaImageProps, MediaImageState> {
322
- static defaultProps: Partial<MediaImageProps>;
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
- export declare interface MediaImageProps {
332
- dataURI: string;
433
+ // @public (undocumented)
434
+ export interface MediaImageProps {
435
+ // (undocumented)
333
436
  alt?: string;
437
+ // (undocumented)
334
438
  crop?: boolean;
335
- stretch?: boolean;
336
- previewOrientation?: number;
439
+ // (undocumented)
337
440
  crossOrigin?: '' | 'anonymous' | 'use-credentials';
338
- onImageLoad?: (loadedImage: HTMLImageElement) => void;
339
- onImageError?: () => void;
340
- loading?: 'auto' | 'lazy' | 'eager';
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
- export declare interface MediaImageState {
345
- isImageLoaded: boolean;
346
- imgWidth: number;
457
+ // @public (undocumented)
458
+ export interface MediaImageState {
459
+ // (undocumented)
347
460
  imgHeight: number;
348
- parentWidth: number;
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
- export declare class MediaInlineCardErroredView extends React_2.Component<
353
- MediaInlineCardErroredViewProps
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
- export declare interface MediaInlineCardErroredViewProps {
360
- /** The error message to display */
361
- message: string;
362
- /** The optional click handler */
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
- /** 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 */
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
- export declare class MediaInlineCardLoadedView extends React_2.Component<
372
- MediaInlineCardLoadedViewProps
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
- export declare interface MediaInlineCardLoadedViewProps {
378
- /** The optional con of the service (e.g. Dropbox/Asana/Google/etc) to display */
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
- /** The optional click handler */
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
- /** The Emoji icon prefix that was added to the title text via Add emoji button */
501
+ title?: string;
389
502
  titlePrefix?: React_2.ReactNode;
390
503
  }
391
504
 
392
- export declare class MediaInlineCardLoadingView extends React_2.Component<
393
- MediaInlineCardLoadingViewProps
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
- export declare interface MediaInlineCardLoadingViewProps {
399
- /** The file name to display */
400
- message: string;
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
- /** 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 */
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
- declare type MediaTypeProps = {
523
+ // @public (undocumented)
524
+ type MediaTypeProps = {
412
525
  testId?: string;
413
526
  mediaType?: MediaType;
414
527
  mimeType?: string;
415
528
  name?: string;
416
- size?: 'small' | 'large';
529
+ size?: 'large' | 'small';
417
530
  };
418
531
 
419
- export declare type MessageKey =
420
- | 'retry'
421
- | 'failed_to_load'
422
- | 'failed_to_upload'
423
- | 'recent_uploads'
424
- | 'upload_file'
425
- | 'drag_and_drop_your_files'
426
- | 'drag_and_drop_your_files_and_folders'
427
- | 'drop_your_files'
428
- | 'upload'
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
- | 'search_all_gifs'
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
- | 'try_again'
435
- | 'try_another_account'
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
- | 'invalid_permissions'
449
- | 'invalid_permissions_description'
450
- | 'upload_an_avatar'
451
- | 'loading'
452
- | 'loading_file'
453
- | 'save'
454
- | 'or'
455
- | 'upload_photo'
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
- | 'upload_image'
459
- | 'image_url_invalid_error'
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
- | 'something_went_wrong'
463
- | 'might_be_a_hiccup'
464
- | 'couldnt_generate_preview'
465
- | 'couldnt_generate_encrypted_entry_preview'
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
- | 'not_found_title'
469
- | 'not_found_description'
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
- | 'give_feedback'
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
- | 'document'
510
- | 'audio'
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
- declare type Messages = {
651
+ // @public (undocumented)
652
+ type Messages = {
538
653
  [K in MessageKey]: MessageDescriptor;
539
654
  };
540
655
 
541
- export declare const messages: Messages;
656
+ // @public (undocumented)
657
+ export const messages: Messages;
542
658
 
543
- export declare const MimeTypeIcon: ({
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
- declare interface MimeTypesRepresentation {
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
- export declare const ModalSpinner: ({
678
+ // @public (undocumented)
679
+ export const ModalSpinner: ({
558
680
  blankedColor,
559
681
  invertSpinnerColor,
560
682
  }: Props_2) => JSX.Element;
561
683
 
562
- declare type Props = WithMediaButtonAppearance<CustomThemeButtonProps> & {
684
+ // @public (undocumented)
685
+ type Props = WithMediaButtonAppearance<CustomThemeButtonProps> & {
563
686
  buttonRef?: RefObject<HTMLButtonElement>;
564
687
  };
565
688
 
566
- declare interface Props_2 {
689
+ // @public (undocumented)
690
+ interface Props_2 {
691
+ // (undocumented)
567
692
  blankedColor?: string;
693
+ // (undocumented)
568
694
  invertSpinnerColor?: boolean;
569
695
  }
570
696
 
571
- export declare function readImageMetaData(
697
+ // @public (undocumented)
698
+ export function readImageMetaData(
572
699
  fileInfo: FileInfo,
573
700
  ): Promise<ImageMetaData | null>;
574
701
 
575
- export declare class Rectangle {
576
- readonly width: number;
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
- scaled(scale: number): Rectangle;
582
- resized(width: number, height: number): Rectangle;
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
- clone(): Rectangle;
725
+ // (undocumented)
726
+ readonly width: number;
588
727
  }
589
728
 
590
- declare type RequestAccessMessageKey =
591
- | 'request_access_description'
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
- | 'forbidden_description'
737
+ | 'request_access_pending_description'
598
738
  | 'request_denied_description';
599
739
 
600
- export declare class Shortcut extends Component<ShortcutProps, {}> {
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
- export declare type ShortcutProps = {
750
+ // @public (undocumented)
751
+ export type ShortcutProps = {
610
752
  handler: () => void;
611
- } & (WithKeyCode | WithCode);
753
+ } & (WithCode | WithKeyCode);
612
754
 
613
- export declare const size: (value?: string | number) => string;
755
+ // @public (undocumented)
756
+ export const size: (value?: number | string) => string;
614
757
 
615
- export declare class TimeRange extends Component<
616
- TimeRangeProps,
617
- TimeRangeState
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
- private setWrapperWidth;
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
- export declare interface TimeRangeProps {
634
- currentTime: number;
784
+ // @public (undocumented)
785
+ export interface TimeRangeProps {
786
+ // (undocumented)
635
787
  bufferedTime: number;
636
- duration: number;
637
- onChange: (newTime: number) => void;
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
- export declare interface TimeRangeState {
644
- isDragging: boolean;
802
+ // @public (undocumented)
803
+ export interface TimeRangeState {
804
+ // (undocumented)
645
805
  dragStartClientX: number;
806
+ // (undocumented)
807
+ isDragging: boolean;
646
808
  }
647
809
 
648
- declare interface TimeSaverConfig {
810
+ // @public (undocumented)
811
+ interface TimeSaverConfig {
812
+ // (undocumented)
649
813
  contentId: string;
650
814
  }
651
815
 
652
- /**
653
- * Takes a media (file) size in bytes and returns a human readable string
654
- */
655
- export declare function toHumanReadableMediaSize(size: number): string;
816
+ // @public
817
+ export function toHumanReadableMediaSize(size: number): string;
656
818
 
657
- export declare const Truncate: React_2.FC<TruncateProps>;
819
+ // @public (undocumented)
820
+ export const Truncate: React_2.FC<TruncateProps>;
658
821
 
659
- export declare type TruncateProps = {
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
- export declare class Vector2 {
667
- readonly x: number;
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
- sub({ x: thatX, y: thatY }: Vector2): Vector2;
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
- declare type WithCode = {
853
+ // @public (undocumented)
854
+ type WithCode = {
680
855
  code: string;
681
856
  keyCode?: never;
682
857
  };
683
858
 
684
- declare type WithKeyCode = {
685
- /** @deprecated use code: string instead */
859
+ // @public (undocumented)
860
+ type WithKeyCode = {
686
861
  keyCode: number;
687
862
  code?: never;
688
863
  };
689
864
 
690
- declare type WithMediaButtonAppearance<T> = Omit<T, 'appearance'> & {
865
+ // @public (undocumented)
866
+ type WithMediaButtonAppearance<T> = Omit<T, 'appearance'> & {
691
867
  appearance?: MediaButtonAppearance;
692
868
  };
693
869
 
694
- declare type WithPlaybackProps = {
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
- export declare interface WithShowControlMethodProp {
877
+ // @public (undocumented)
878
+ export interface WithShowControlMethodProp {
879
+ // (undocumented)
701
880
  showControls?: () => void;
702
881
  }
703
882
 
704
- export {};
883
+ // (No @packageDocumentation comment for this package)
705
884
  ```
885
+
886
+ <!--SECTION END: Main Entry Types-->