@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.
- package/CHANGELOG.md +27 -0
- 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/example-helpers/styled.ts +5 -3
- package/package.json +15 -18
- package/report.api.md +504 -323
- package/dist/types-ts4.0/MediaButton.d.ts +0 -15
- package/dist/types-ts4.0/MediaInlineCard/ErroredView/index.d.ts +0 -16
- package/dist/types-ts4.0/MediaInlineCard/Frame/index.d.ts +0 -17
- package/dist/types-ts4.0/MediaInlineCard/Frame/styled.d.ts +0 -5
- package/dist/types-ts4.0/MediaInlineCard/Icon.d.ts +0 -3
- package/dist/types-ts4.0/MediaInlineCard/IconAndTitleLayout/index.d.ts +0 -18
- package/dist/types-ts4.0/MediaInlineCard/IconAndTitleLayout/styled.d.ts +0 -12
- package/dist/types-ts4.0/MediaInlineCard/LoadedView/index.d.ts +0 -18
- package/dist/types-ts4.0/MediaInlineCard/LoadingView/index.d.ts +0 -17
- package/dist/types-ts4.0/MediaInlineCard/LoadingView/styled.d.ts +0 -14
- package/dist/types-ts4.0/MediaInlineCard/index.d.ts +0 -6
- package/dist/types-ts4.0/MediaInlineCard/styled.d.ts +0 -4
- package/dist/types-ts4.0/browser.d.ts +0 -6
- package/dist/types-ts4.0/camera.d.ts +0 -62
- package/dist/types-ts4.0/classNames.d.ts +0 -1
- package/dist/types-ts4.0/codeViewer.d.ts +0 -8
- package/dist/types-ts4.0/customMediaPlayer/analytics/events/screen/customMediaPlayer.d.ts +0 -5
- package/dist/types-ts4.0/customMediaPlayer/analytics/events/track/playCount.d.ts +0 -5
- package/dist/types-ts4.0/customMediaPlayer/analytics/events/track/played.d.ts +0 -5
- package/dist/types-ts4.0/customMediaPlayer/analytics/events/ui/mediaButtonClicked.d.ts +0 -5
- package/dist/types-ts4.0/customMediaPlayer/analytics/events/ui/playPauseBlanketClicked.d.ts +0 -5
- package/dist/types-ts4.0/customMediaPlayer/analytics/events/ui/playbackSpeedChanged.d.ts +0 -5
- package/dist/types-ts4.0/customMediaPlayer/analytics/events/ui/shortcutPressed.d.ts +0 -5
- package/dist/types-ts4.0/customMediaPlayer/analytics/events/ui/timeRangeNavigated.d.ts +0 -5
- package/dist/types-ts4.0/customMediaPlayer/analytics/index.d.ts +0 -11
- package/dist/types-ts4.0/customMediaPlayer/analytics/utils/analytics.d.ts +0 -19
- package/dist/types-ts4.0/customMediaPlayer/analytics/utils/playbackAttributes.d.ts +0 -24
- package/dist/types-ts4.0/customMediaPlayer/fullscreen.d.ts +0 -5
- package/dist/types-ts4.0/customMediaPlayer/getControlsWrapperClassName.d.ts +0 -1
- package/dist/types-ts4.0/customMediaPlayer/icons.d.ts +0 -4
- package/dist/types-ts4.0/customMediaPlayer/index.d.ts +0 -76
- package/dist/types-ts4.0/customMediaPlayer/playPauseBlanket.d.ts +0 -2
- package/dist/types-ts4.0/customMediaPlayer/playbackSpeedControls.d.ts +0 -23
- package/dist/types-ts4.0/customMediaPlayer/simultaneousPlayManager.d.ts +0 -9
- package/dist/types-ts4.0/customMediaPlayer/styled.d.ts +0 -33
- package/dist/types-ts4.0/customMediaPlayer/timeRange.d.ts +0 -29
- package/dist/types-ts4.0/customMediaPlayer/timeSaver.d.ts +0 -14
- package/dist/types-ts4.0/customMediaPlayer/types.d.ts +0 -4
- package/dist/types-ts4.0/ellipsify.d.ts +0 -12
- package/dist/types-ts4.0/errorIcon.d.ts +0 -2
- package/dist/types-ts4.0/formatDate.d.ts +0 -11
- package/dist/types-ts4.0/formatDuration.d.ts +0 -1
- package/dist/types-ts4.0/humanReadableSize.d.ts +0 -4
- package/dist/types-ts4.0/i18n/cs.d.ts +0 -132
- package/dist/types-ts4.0/i18n/da.d.ts +0 -132
- package/dist/types-ts4.0/i18n/de.d.ts +0 -132
- package/dist/types-ts4.0/i18n/en.d.ts +0 -132
- package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -132
- package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -132
- package/dist/types-ts4.0/i18n/es.d.ts +0 -132
- package/dist/types-ts4.0/i18n/et.d.ts +0 -94
- package/dist/types-ts4.0/i18n/fi.d.ts +0 -132
- package/dist/types-ts4.0/i18n/fr.d.ts +0 -132
- package/dist/types-ts4.0/i18n/hu.d.ts +0 -132
- package/dist/types-ts4.0/i18n/index.d.ts +0 -35
- package/dist/types-ts4.0/i18n/is.d.ts +0 -70
- package/dist/types-ts4.0/i18n/it.d.ts +0 -132
- package/dist/types-ts4.0/i18n/ja.d.ts +0 -132
- package/dist/types-ts4.0/i18n/ko.d.ts +0 -132
- package/dist/types-ts4.0/i18n/languages.d.ts +0 -27
- package/dist/types-ts4.0/i18n/nb.d.ts +0 -132
- package/dist/types-ts4.0/i18n/nl.d.ts +0 -132
- package/dist/types-ts4.0/i18n/pl.d.ts +0 -132
- package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -132
- package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -94
- package/dist/types-ts4.0/i18n/ro.d.ts +0 -70
- package/dist/types-ts4.0/i18n/ru.d.ts +0 -132
- package/dist/types-ts4.0/i18n/sk.d.ts +0 -94
- package/dist/types-ts4.0/i18n/sv.d.ts +0 -132
- package/dist/types-ts4.0/i18n/th.d.ts +0 -132
- package/dist/types-ts4.0/i18n/tr.d.ts +0 -132
- package/dist/types-ts4.0/i18n/uk.d.ts +0 -132
- package/dist/types-ts4.0/i18n/vi.d.ts +0 -132
- package/dist/types-ts4.0/i18n/zh.d.ts +0 -132
- package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -132
- package/dist/types-ts4.0/imageMetaData/imageOrientationUtil.d.ts +0 -5
- package/dist/types-ts4.0/imageMetaData/index.d.ts +0 -10
- package/dist/types-ts4.0/imageMetaData/metatags.d.ts +0 -2
- package/dist/types-ts4.0/imageMetaData/parseJPEG.d.ts +0 -2
- package/dist/types-ts4.0/imageMetaData/parsePNG.d.ts +0 -3
- package/dist/types-ts4.0/imageMetaData/parsePNGXMP.d.ts +0 -2
- package/dist/types-ts4.0/imageMetaData/types.d.ts +0 -46
- package/dist/types-ts4.0/inactivityDetector/inactivityDetector.d.ts +0 -24
- package/dist/types-ts4.0/inactivityDetector/styled.d.ts +0 -5
- package/dist/types-ts4.0/index.d.ts +0 -36
- package/dist/types-ts4.0/intersectionObserver.d.ts +0 -1
- package/dist/types-ts4.0/locales.d.ts +0 -4
- package/dist/types-ts4.0/media-type-icon.d.ts +0 -17
- package/dist/types-ts4.0/mediaImage/index.d.ts +0 -29
- package/dist/types-ts4.0/mediaImage/styled.d.ts +0 -5
- package/dist/types-ts4.0/messages.d.ts +0 -8
- package/dist/types-ts4.0/mime-type-icon.d.ts +0 -11
- package/dist/types-ts4.0/mixins.d.ts +0 -8
- package/dist/types-ts4.0/modalSpinner.d.ts +0 -9
- package/dist/types-ts4.0/shortcut.d.ts +0 -28
- package/dist/types-ts4.0/truncateText.d.ts +0 -17
- package/dist/types-ts4.0/types.d.ts +0 -16
- package/dist/types-ts4.0/util.d.ts +0 -23
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'fabric.media.accounts': string;
|
|
3
|
-
'fabric.media.actions': string;
|
|
4
|
-
'fabric.media.add_account': string;
|
|
5
|
-
'fabric.media.annotate': string;
|
|
6
|
-
'fabric.media.annotate.confirmation.close.anyway': string;
|
|
7
|
-
'fabric.media.annotate.confirmation.content': string;
|
|
8
|
-
'fabric.media.annotate.confirmation.heading': string;
|
|
9
|
-
'fabric.media.annotate.tool.arrow': string;
|
|
10
|
-
'fabric.media.annotate.tool.blur': string;
|
|
11
|
-
'fabric.media.annotate.tool.brush': string;
|
|
12
|
-
'fabric.media.annotate.tool.color': string;
|
|
13
|
-
'fabric.media.annotate.tool.line.thickness': string;
|
|
14
|
-
'fabric.media.annotate.tool.shape': string;
|
|
15
|
-
'fabric.media.annotate.tool.text': string;
|
|
16
|
-
'fabric.media.archive': string;
|
|
17
|
-
'fabric.media.audio': string;
|
|
18
|
-
'fabric.media.cancel': string;
|
|
19
|
-
'fabric.media.cant_preview_file_type': string;
|
|
20
|
-
'fabric.media.cant_retrieve_files': string;
|
|
21
|
-
'fabric.media.cant_retrieve_gifs': string;
|
|
22
|
-
'fabric.media.change_view': string;
|
|
23
|
-
'fabric.media.check_your_network': string;
|
|
24
|
-
'fabric.media.click_to_join': string;
|
|
25
|
-
'fabric.media.click_to_join_description': string;
|
|
26
|
-
'fabric.media.close': string;
|
|
27
|
-
'fabric.media.close_and_reopen': string;
|
|
28
|
-
'fabric.media.connect_account_description': string;
|
|
29
|
-
'fabric.media.connect_link_account': string;
|
|
30
|
-
'fabric.media.connect_link_account_card_view': string;
|
|
31
|
-
'fabric.media.connect_link_account_card_view_description': string;
|
|
32
|
-
'fabric.media.connect_link_account_card_view_name': string;
|
|
33
|
-
'fabric.media.connect_to': string;
|
|
34
|
-
'fabric.media.could_not_load_editor': string;
|
|
35
|
-
'fabric.media.could_not_save_image': string;
|
|
36
|
-
'fabric.media.couldnt_generate_encrypted_entry_preview': string;
|
|
37
|
-
'fabric.media.couldnt_generate_preview': string;
|
|
38
|
-
'fabric.media.couldnt_load_file': string;
|
|
39
|
-
'fabric.media.couldnt_load_link': string;
|
|
40
|
-
'fabric.media.creating_preview': string;
|
|
41
|
-
'fabric.media.default_avatars': string;
|
|
42
|
-
'fabric.media.disable_fullscreen': string;
|
|
43
|
-
'fabric.media.display_thumbnail': string;
|
|
44
|
-
'fabric.media.document': string;
|
|
45
|
-
'fabric.media.download': string;
|
|
46
|
-
'fabric.media.drag_and_drop_images_here': string;
|
|
47
|
-
'fabric.media.drag_and_drop_your_files': string;
|
|
48
|
-
'fabric.media.drag_and_drop_your_files_and_folders': string;
|
|
49
|
-
'fabric.media.drop_your_files': string;
|
|
50
|
-
'fabric.media.drop_your_files_here': string;
|
|
51
|
-
'fabric.media.email': string;
|
|
52
|
-
'fabric.media.enable_fullscreen': string;
|
|
53
|
-
'fabric.media.error_429': string;
|
|
54
|
-
'fabric.media.error_generating_preview': string;
|
|
55
|
-
'fabric.media.error_hint_critical': string;
|
|
56
|
-
'fabric.media.error_hint_retry': string;
|
|
57
|
-
'fabric.media.error_loading_file': string;
|
|
58
|
-
'fabric.media.failed_to_load': string;
|
|
59
|
-
'fabric.media.failed_to_upload': string;
|
|
60
|
-
'fabric.media.forbidden_description': string;
|
|
61
|
-
'fabric.media.give_feedback': string;
|
|
62
|
-
'fabric.media.image': string;
|
|
63
|
-
'fabric.media.image_format_invalid_error': string;
|
|
64
|
-
'fabric.media.image_size_too_large_error': string;
|
|
65
|
-
'fabric.media.image_url_invalid_error': string;
|
|
66
|
-
'fabric.media.insert_files': string;
|
|
67
|
-
'fabric.media.invalid_permissions': string;
|
|
68
|
-
'fabric.media.invalid_permissions_description': string;
|
|
69
|
-
'fabric.media.item_not_found_in_list': string;
|
|
70
|
-
'fabric.media.learn_more': string;
|
|
71
|
-
'fabric.media.load_more_gifs': string;
|
|
72
|
-
'fabric.media.loading': string;
|
|
73
|
-
'fabric.media.loading_file': string;
|
|
74
|
-
'fabric.media.might_be_a_hiccup': string;
|
|
75
|
-
'fabric.media.no_gifs_found': string;
|
|
76
|
-
'fabric.media.no_gifs_found_suggestion': string;
|
|
77
|
-
'fabric.media.no_pdf_artifacts': string;
|
|
78
|
-
'fabric.media.not_found_description': string;
|
|
79
|
-
'fabric.media.not_found_title': string;
|
|
80
|
-
'fabric.media.or': string;
|
|
81
|
-
'fabric.media.pause': string;
|
|
82
|
-
'fabric.media.play': string;
|
|
83
|
-
'fabric.media.playback_default_speed': string;
|
|
84
|
-
'fabric.media.playback_speed': string;
|
|
85
|
-
'fabric.media.preview': string;
|
|
86
|
-
'fabric.media.preview_currently_unavailable': string;
|
|
87
|
-
'fabric.media.preview_unavailable': string;
|
|
88
|
-
'fabric.media.recent_uploads': string;
|
|
89
|
-
'fabric.media.remove_image': string;
|
|
90
|
-
'fabric.media.request_access': string;
|
|
91
|
-
'fabric.media.request_access_description': string;
|
|
92
|
-
'fabric.media.request_access_pending': string;
|
|
93
|
-
'fabric.media.request_access_pending_description': string;
|
|
94
|
-
'fabric.media.request_denied_description': string;
|
|
95
|
-
'fabric.media.retry': string;
|
|
96
|
-
'fabric.media.save': string;
|
|
97
|
-
'fabric.media.search': string;
|
|
98
|
-
'fabric.media.search_all_gifs': string;
|
|
99
|
-
'fabric.media.share_files_instantly': string;
|
|
100
|
-
'fabric.media.skip_backward': string;
|
|
101
|
-
'fabric.media.skip_forward': string;
|
|
102
|
-
'fabric.media.something_went_wrong': string;
|
|
103
|
-
'fabric.media.srclink': string;
|
|
104
|
-
'fabric.media.srclinkunknown': string;
|
|
105
|
-
'fabric.media.text': string;
|
|
106
|
-
'fabric.media.try_again': string;
|
|
107
|
-
'fabric.media.try_another_account': string;
|
|
108
|
-
'fabric.media.try_downloading_file': string;
|
|
109
|
-
'fabric.media.unable_to_annotate_image': string;
|
|
110
|
-
'fabric.media.unknown': string;
|
|
111
|
-
'fabric.media.unlink_account': string;
|
|
112
|
-
'fabric.media.upload': string;
|
|
113
|
-
'fabric.media.upload_an_avatar': string;
|
|
114
|
-
'fabric.media.upload_file': string;
|
|
115
|
-
'fabric.media.upload_file_from': string;
|
|
116
|
-
'fabric.media.upload_image': string;
|
|
117
|
-
'fabric.media.upload_photo': string;
|
|
118
|
-
'fabric.media.video': string;
|
|
119
|
-
'fabric.media.view': string;
|
|
120
|
-
'fabric.media.viewer_rateLimited': string;
|
|
121
|
-
'fabric.media.webgl_warning_description': string;
|
|
122
|
-
'fabric.media.zip_entry_load_failed': string;
|
|
123
|
-
'fabric.media.zoom_in': string;
|
|
124
|
-
'fabric.media.zoom_out': string;
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* NOTE:
|
|
128
|
-
*
|
|
129
|
-
* This file is automatically generated by Traduki 2.0.
|
|
130
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
131
|
-
*/
|
|
132
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ImageInfo, ImageMetaData, ImageMetaDataTags, FileInfo } from './types';
|
|
2
|
-
export { ExifOrientation } from './types';
|
|
3
|
-
export type { ImageInfo, ImageMetaData, ImageMetaDataTags, FileInfo, } from './types';
|
|
4
|
-
export declare function getImageInfo(fileInfo: FileInfo): Promise<ImageInfo | null>;
|
|
5
|
-
export declare function getScaleFactor(file: File, tags: ImageMetaDataTags | null): number;
|
|
6
|
-
export declare function getOrientation(file: File): Promise<number>;
|
|
7
|
-
export declare function getMetaTagNumericValue(tags: ImageMetaDataTags, key: string, defaultValue: number): number;
|
|
8
|
-
export declare function getScaleFactorFromFile(file: File): number | null;
|
|
9
|
-
export declare function readImageMetaData(fileInfo: FileInfo): Promise<ImageMetaData | null>;
|
|
10
|
-
export { getCssFromImageOrientation, isRotated } from './imageOrientationUtil';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export declare type ImageMetaDataTags = {
|
|
2
|
-
Orientation?: string;
|
|
3
|
-
PixelPerUnitX?: number;
|
|
4
|
-
PixelPerUnitY?: number;
|
|
5
|
-
[key: string]: string | number | undefined;
|
|
6
|
-
};
|
|
7
|
-
export declare type ImageMetaData = {
|
|
8
|
-
type: string;
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
naturalWidth: number;
|
|
12
|
-
naturalHeight: number;
|
|
13
|
-
tags: ImageMetaDataTags | null;
|
|
14
|
-
};
|
|
15
|
-
export declare type ImageInfo = {
|
|
16
|
-
scaleFactor: number;
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
};
|
|
20
|
-
export declare enum ImageType {
|
|
21
|
-
JPEG = "image/jpeg",
|
|
22
|
-
PNG = "image/png"
|
|
23
|
-
}
|
|
24
|
-
export declare enum SupportedImageMetaTag {
|
|
25
|
-
XResolution = "XResolution",
|
|
26
|
-
YResolution = "YResolution",
|
|
27
|
-
Orientation = "Orientation"
|
|
28
|
-
}
|
|
29
|
-
export declare type FileInfo = {
|
|
30
|
-
file: File;
|
|
31
|
-
src: string;
|
|
32
|
-
};
|
|
33
|
-
export declare const ExifOrientation: {
|
|
34
|
-
[key: string]: number;
|
|
35
|
-
};
|
|
36
|
-
export declare type PNGMetaData = {
|
|
37
|
-
iTXt: string;
|
|
38
|
-
pHYs: {
|
|
39
|
-
PixelPerUnitX?: number;
|
|
40
|
-
PixelPerUnitY?: number;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export declare type PNGChunk = {
|
|
44
|
-
name: string;
|
|
45
|
-
data: Uint8Array;
|
|
46
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Component, ReactElement } from 'react';
|
|
2
|
-
export interface InactivityDetectorProps {
|
|
3
|
-
children: (triggerActivityCallback: () => void) => ReactElement;
|
|
4
|
-
}
|
|
5
|
-
export interface InactivityDetectorState {
|
|
6
|
-
controlsAreVisible: boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Hides all the child elements with `hideControlsClassName` classname when user is inactive,
|
|
10
|
-
* which means they haven't moved mouse over the component for `mouseMovementDelay` ms.
|
|
11
|
-
* Exception is if user holding mouse over one of the hideable elements (those that have specified classname).
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
export declare class InactivityDetector extends Component<InactivityDetectorProps, InactivityDetectorState> {
|
|
15
|
-
private checkActivityTimeout?;
|
|
16
|
-
private contentWrapperElement;
|
|
17
|
-
state: InactivityDetectorState;
|
|
18
|
-
private clearTimeout;
|
|
19
|
-
private hideControls;
|
|
20
|
-
private checkMouseMovement;
|
|
21
|
-
componentDidMount(): void;
|
|
22
|
-
componentWillUnmount(): void;
|
|
23
|
-
render(): JSX.Element;
|
|
24
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface ContentWrapperProps {
|
|
3
|
-
controlsAreVisible: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const InactivityDetectorWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContentWrapperProps, object>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
declare const locales: {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
};
|
|
4
|
-
export { MediaInlineCardErroredView, MediaInlineCardLoadedView, MediaInlineCardLoadingView, } from './MediaInlineCard';
|
|
5
|
-
export type { MediaInlineCardErroredViewProps, MediaInlineCardLoadedViewProps, MediaInlineCardLoadingViewProps, } from './MediaInlineCard';
|
|
6
|
-
export { Ellipsify } from './ellipsify';
|
|
7
|
-
export type { EllipsifyProps } from './ellipsify';
|
|
8
|
-
export { toHumanReadableMediaSize } from './humanReadableSize';
|
|
9
|
-
export { absolute, borderRadius, borderRadiusBottom, center, easeInOutCubic, ellipsis, fadeIn, size, } from './mixins';
|
|
10
|
-
export { Bounds, Camera, Rectangle, Vector2 } from './camera';
|
|
11
|
-
export { messages } from './messages';
|
|
12
|
-
export type { MessageKey } from './messages';
|
|
13
|
-
export { default as languages } from './i18n/languages';
|
|
14
|
-
export { locales };
|
|
15
|
-
export { ExifOrientation, getCssFromImageOrientation, getImageInfo, getMetaTagNumericValue, getOrientation, getScaleFactor, getScaleFactorFromFile, isRotated, readImageMetaData, } from './imageMetaData';
|
|
16
|
-
export type { FileInfo, ImageInfo, ImageMetaData, ImageMetaDataTags, } from './imageMetaData';
|
|
17
|
-
export { dataURItoFile, fileToArrayBuffer, fileToDataURI, getFileInfo, getFileInfoFromSrc, loadImage, findParentByClassname, getMimeIcon, } from './util';
|
|
18
|
-
export { MimeTypeIcon } from './mime-type-icon';
|
|
19
|
-
export { CustomMediaPlayer } from './customMediaPlayer/index';
|
|
20
|
-
export { TimeRange } from './customMediaPlayer/timeRange';
|
|
21
|
-
export type { TimeRangeProps, TimeRangeState, } from './customMediaPlayer/timeRange';
|
|
22
|
-
export { hideControlsClassName } from './classNames';
|
|
23
|
-
export { Shortcut, keyCodes } from './shortcut';
|
|
24
|
-
export type { ShortcutProps } from './shortcut';
|
|
25
|
-
export { formatDuration } from './formatDuration';
|
|
26
|
-
export { default as MediaButton } from './MediaButton';
|
|
27
|
-
export { default as ModalSpinner } from './modalSpinner';
|
|
28
|
-
export { MediaImage } from './mediaImage';
|
|
29
|
-
export type { MediaImageProps, MediaImageState } from './mediaImage';
|
|
30
|
-
export { InactivityDetector } from './inactivityDetector/inactivityDetector';
|
|
31
|
-
export type { WithShowControlMethodProp, AccessTypes, AccessContext, } from './types';
|
|
32
|
-
export { isIntersectionObserverSupported } from './intersectionObserver';
|
|
33
|
-
export { Truncate } from './truncateText';
|
|
34
|
-
export type { TruncateProps } from './truncateText';
|
|
35
|
-
export { errorIcon } from './errorIcon';
|
|
36
|
-
export { formatDate } from './formatDate';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isIntersectionObserverSupported: () => boolean;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MediaType } from '@atlaskit/media-common';
|
|
3
|
-
export interface IconWrapperProps {
|
|
4
|
-
type: MediaType;
|
|
5
|
-
}
|
|
6
|
-
export interface FileIconProps {
|
|
7
|
-
testId?: string;
|
|
8
|
-
type?: MediaType;
|
|
9
|
-
size?: 'small' | 'large';
|
|
10
|
-
}
|
|
11
|
-
export declare const IconWrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
12
|
-
size: Required<FileIconProps['size']>;
|
|
13
|
-
}, object>;
|
|
14
|
-
export declare class MediaTypeIcon extends React.Component<FileIconProps, {}> {
|
|
15
|
-
static defaultProps: FileIconProps;
|
|
16
|
-
render(): JSX.Element;
|
|
17
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Component } from 'react';
|
|
3
|
-
export interface MediaImageProps {
|
|
4
|
-
dataURI: string;
|
|
5
|
-
alt?: string;
|
|
6
|
-
crop?: boolean;
|
|
7
|
-
stretch?: boolean;
|
|
8
|
-
previewOrientation?: number;
|
|
9
|
-
crossOrigin?: '' | 'anonymous' | 'use-credentials';
|
|
10
|
-
onImageLoad?: (loadedImage: HTMLImageElement) => void;
|
|
11
|
-
onImageError?: () => void;
|
|
12
|
-
loading?: 'auto' | 'lazy' | 'eager';
|
|
13
|
-
forceSyncDisplay?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface MediaImageState {
|
|
16
|
-
isImageLoaded: boolean;
|
|
17
|
-
imgWidth: number;
|
|
18
|
-
imgHeight: number;
|
|
19
|
-
parentWidth: number;
|
|
20
|
-
parentHeight: number;
|
|
21
|
-
}
|
|
22
|
-
export declare class MediaImage extends Component<MediaImageProps, MediaImageState> {
|
|
23
|
-
static defaultProps: Partial<MediaImageProps>;
|
|
24
|
-
imageRef: React.RefObject<HTMLImageElement>;
|
|
25
|
-
constructor(props: MediaImageProps);
|
|
26
|
-
componentDidMount(): void;
|
|
27
|
-
onImageLoad: (e: React.SyntheticEvent<HTMLImageElement>) => void;
|
|
28
|
-
render(): JSX.Element;
|
|
29
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const ImageComponent: React.FC<React.ClassAttributes<HTMLImageElement> & React.ImgHTMLAttributes<HTMLImageElement> & {
|
|
3
|
-
loading?: 'auto' | 'lazy' | 'eager';
|
|
4
|
-
imageRef?: ((instance: HTMLImageElement | null) => void) | React.RefObject<HTMLImageElement> | null;
|
|
5
|
-
}>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
2
|
-
export declare type RequestAccessMessageKey = 'request_access_description' | 'click_to_join_description' | 'request_access_pending_description' | 'click_to_join' | 'request_access' | 'request_access_pending' | 'forbidden_description' | 'request_denied_description';
|
|
3
|
-
export declare type MessageKey = 'retry' | 'failed_to_load' | 'failed_to_upload' | 'recent_uploads' | 'upload_file' | 'drag_and_drop_your_files' | 'drag_and_drop_your_files_and_folders' | 'drop_your_files' | 'upload' | 'cancel' | 'search_all_gifs' | 'cant_retrieve_gifs' | 'cant_retrieve_files' | 'check_your_network' | 'try_again' | 'try_another_account' | 'no_gifs_found' | 'no_gifs_found_suggestion' | 'load_more_gifs' | 'add_account' | 'unlink_account' | 'upload_file_from' | 'connect_to' | 'connect_account_description' | 'connect_link_account' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'invalid_permissions' | 'invalid_permissions_description' | 'upload_an_avatar' | 'loading' | 'loading_file' | 'save' | 'or' | 'upload_photo' | 'default_avatars' | 'drag_and_drop_images_here' | 'upload_image' | 'image_url_invalid_error' | 'image_format_invalid_error' | 'image_size_too_large_error' | 'something_went_wrong' | 'might_be_a_hiccup' | 'couldnt_generate_preview' | 'couldnt_generate_encrypted_entry_preview' | 'cant_preview_file_type' | 'item_not_found_in_list' | 'not_found_title' | 'not_found_description' | 'no_pdf_artifacts' | 'give_feedback' | 'try_downloading_file' | 'webgl_warning_description' | 'unable_to_annotate_image' | 'learn_more' | 'accounts' | 'actions' | 'error_hint_retry' | 'error_hint_critical' | 'close' | 'could_not_load_editor' | 'could_not_save_image' | 'could_not_load_link' | 'annotate' | 'annotate_tool_arrow' | 'annotate_tool_text' | 'annotate_tool_shape' | 'annotate_tool_brush' | 'annotate_tool_blur' | 'annotate_tool_line_thickness' | 'annotate_tool_color' | 'annotate_confirmation_close_anyway' | 'annotate_confirmation_heading' | 'annotate_confirmation_content' | 'drop_your_files_here' | 'share_files_instantly' | 'insert_files' | 'zoom_out' | 'zoom_in' | 'remove_image' | 'play' | 'pause' | 'disable_fullscreen' | 'enable_fullscreen' | 'error_loading_file' | 'error_generating_preview' | 'download' | 'unknown' | 'document' | 'audio' | 'video' | 'image' | 'archive' | 'email' | 'text' | 'displayThumbnail' | 'search' | 'view' | 'viewIn' | 'viewOriginal' | 'changeView' | 'playbackSpeed' | 'skipBackward' | 'skipForward' | 'playbackDefaultSpeed' | 'preview' | 'preview_unavailable' | 'preview_currently_unavailable' | 'creating_preview' | 'couldnt_load_file' | 'error_429' | 'close_and_reopen' | 'viewer_rateLimited' | 'zip_entry_load_fail' | RequestAccessMessageKey;
|
|
4
|
-
declare type Messages = {
|
|
5
|
-
[K in MessageKey]: MessageDescriptor;
|
|
6
|
-
};
|
|
7
|
-
export declare const messages: Messages;
|
|
8
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MediaType } from '@atlaskit/media-common';
|
|
3
|
-
declare type MediaTypeProps = {
|
|
4
|
-
testId?: string;
|
|
5
|
-
mediaType?: MediaType;
|
|
6
|
-
mimeType?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
size?: 'small' | 'large';
|
|
9
|
-
};
|
|
10
|
-
export declare const MimeTypeIcon: ({ mediaType, mimeType, name, testId, size, }: MediaTypeProps) => JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const ellipsis: (maxWidth?: string | number) => string;
|
|
2
|
-
export declare const size: (value?: string | number) => string;
|
|
3
|
-
export declare const center = "\n display: flex;\n align-items: center;\n justify-content: center;\n";
|
|
4
|
-
export declare const absolute: (top?: number, left?: number) => string;
|
|
5
|
-
export declare const borderRadius: string;
|
|
6
|
-
export declare const borderRadiusBottom: string;
|
|
7
|
-
export declare const easeInOutCubic = "cubic-bezier(0.645, 0.045, 0.355, 1)";
|
|
8
|
-
export declare const fadeIn: string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const Blanket: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement>>, object>;
|
|
3
|
-
export declare const SpinnerWrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement>>, object>;
|
|
4
|
-
interface Props {
|
|
5
|
-
blankedColor?: string;
|
|
6
|
-
invertSpinnerColor?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: ({ blankedColor, invertSpinnerColor }: Props) => JSX.Element;
|
|
9
|
-
export default _default;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
export declare const keyCodes: {
|
|
3
|
-
space: string;
|
|
4
|
-
m: string;
|
|
5
|
-
rightArrow: string;
|
|
6
|
-
leftArrow: string;
|
|
7
|
-
};
|
|
8
|
-
declare type WithKeyCode = {
|
|
9
|
-
/** @deprecated use code: string instead */
|
|
10
|
-
keyCode: number;
|
|
11
|
-
code?: never;
|
|
12
|
-
};
|
|
13
|
-
declare type WithCode = {
|
|
14
|
-
code: string;
|
|
15
|
-
keyCode?: never;
|
|
16
|
-
};
|
|
17
|
-
export declare type ShortcutProps = {
|
|
18
|
-
handler: () => void;
|
|
19
|
-
} & (WithKeyCode | WithCode);
|
|
20
|
-
export declare class Shortcut extends Component<ShortcutProps, {}> {
|
|
21
|
-
componentDidMount(): void;
|
|
22
|
-
componentWillUnmount(): void;
|
|
23
|
-
render(): null;
|
|
24
|
-
private keyHandler;
|
|
25
|
-
private init;
|
|
26
|
-
private release;
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type TruncateStyledProps = Omit<Required<TruncateProps>, 'text'>;
|
|
3
|
-
export declare const TruncateLeft: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TruncateStyledProps, object>;
|
|
4
|
-
export declare const TruncateRight: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TruncateStyledProps, object>;
|
|
5
|
-
export declare type TruncateProps = {
|
|
6
|
-
text: string;
|
|
7
|
-
fontSizePX?: number;
|
|
8
|
-
startFixedChars?: number;
|
|
9
|
-
endFixedChars?: number;
|
|
10
|
-
};
|
|
11
|
-
export declare type TruncateOutput = {
|
|
12
|
-
left: string;
|
|
13
|
-
right: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const calculateTruncation: (text: string, startFixedChars: number, endFixedChars: number) => TruncateOutput;
|
|
16
|
-
export declare const Truncate: React.FC<TruncateProps>;
|
|
17
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface WithShowControlMethodProp {
|
|
3
|
-
showControls?: () => void;
|
|
4
|
-
}
|
|
5
|
-
export interface ContextViewModel {
|
|
6
|
-
icon?: ReactNode;
|
|
7
|
-
text: string;
|
|
8
|
-
}
|
|
9
|
-
export declare type AccessTypes = 'REQUEST_ACCESS' | 'PENDING_REQUEST_EXISTS' | 'FORBIDDEN' | 'DIRECT_ACCESS' | 'DENIED_REQUEST_EXISTS' | 'APPROVED_REQUEST_EXISTS' | 'ACCESS_EXISTS';
|
|
10
|
-
export interface AccessContext {
|
|
11
|
-
accessType?: AccessTypes;
|
|
12
|
-
cloudId?: string;
|
|
13
|
-
url?: string;
|
|
14
|
-
smartLinksAccessMetadataExperimentCohort?: 'experiment' | 'control' | 'not-enrolled';
|
|
15
|
-
}
|
|
16
|
-
export declare type InlinePreloaderStyle = 'on-left-with-skeleton' | 'on-right-without-skeleton';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { FileInfo } from './imageMetaData/types';
|
|
2
|
-
import SourceCodeIcon from '@atlaskit/icon-file-type/glyph/source-code/24';
|
|
3
|
-
export declare function dataURItoFile(dataURI: string, filename?: string): File;
|
|
4
|
-
export declare function fileToDataURI(blob: Blob): Promise<string>;
|
|
5
|
-
export declare function getFileInfo(file: File, src?: string): Promise<FileInfo>;
|
|
6
|
-
export declare function getFileInfoFromSrc(src: string, file?: File): Promise<FileInfo>;
|
|
7
|
-
export declare function fileToArrayBuffer(file: File): Promise<Uint8Array>;
|
|
8
|
-
export declare function loadImage(src: string): Promise<HTMLImageElement>;
|
|
9
|
-
export declare function readImageNaturalOrientationFromDOM(img: HTMLImageElement): {
|
|
10
|
-
width: number;
|
|
11
|
-
height: number;
|
|
12
|
-
};
|
|
13
|
-
export declare const findParentByClassname: (element: HTMLElement, className: string, maxParentElement?: HTMLElement) => HTMLElement | undefined;
|
|
14
|
-
interface MimeTypesRepresentation {
|
|
15
|
-
label: string;
|
|
16
|
-
mimeTypes: string[];
|
|
17
|
-
icon: any;
|
|
18
|
-
}
|
|
19
|
-
export declare function getMimeIcon(mimeType: string, fileName: string): MimeTypesRepresentation | {
|
|
20
|
-
label: string;
|
|
21
|
-
icon: typeof SourceCodeIcon;
|
|
22
|
-
} | undefined;
|
|
23
|
-
export {};
|