@atlaskit/media-picker 65.0.0 → 65.0.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 +7 -0
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/ufoExperiences.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/util/ufoExperiences.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/util/ufoExperiences.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/browser/browser.d.ts +2 -2
- package/dist/types/components/browser/index.d.ts +3 -3
- package/dist/types/components/clipboard/clipboard.d.ts +1 -1
- package/dist/types/components/clipboard/index.d.ts +3 -3
- package/dist/types/components/dropzone/dropzone.d.ts +1 -1
- package/dist/types/components/dropzone/index.d.ts +4 -4
- package/dist/types/components/localUploadReact.d.ts +2 -2
- package/dist/types/components/media-picker-analytics-error-boundary.d.ts +1 -1
- package/dist/types/components/types.d.ts +1 -1
- package/dist/types/service/types.d.ts +3 -3
- package/dist/types/types.d.ts +23 -23
- package/dist/types/util/analytics.d.ts +1 -1
- package/dist/types/util/eventEmitter.d.ts +2 -2
- package/dist/types/util/ufoExperiences.d.ts +2 -2
- package/package.json +11 -3
- package/types/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/media-picker
|
|
2
2
|
|
|
3
|
+
## 65.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 65.0.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -9,7 +9,7 @@ var _mediaClient = require("@atlaskit/media-client");
|
|
|
9
9
|
// Component name will be prefixed with "media-picker-" in logs. Check ufoExperiences in utils files
|
|
10
10
|
|
|
11
11
|
var packageName = "@atlaskit/media-picker";
|
|
12
|
-
var packageVersion = "65.0.
|
|
12
|
+
var packageVersion = "65.0.1";
|
|
13
13
|
function getPackageAttributes(componentName) {
|
|
14
14
|
return {
|
|
15
15
|
packageName: packageName,
|
|
@@ -12,7 +12,7 @@ var _mediaClient = require("@atlaskit/media-client");
|
|
|
12
12
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13
13
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14
14
|
var packageName = "@atlaskit/media-picker";
|
|
15
|
-
var packageVersion = "65.0.
|
|
15
|
+
var packageVersion = "65.0.1";
|
|
16
16
|
var ufoExperience;
|
|
17
17
|
var initExperience = function initExperience(id, componentName) {
|
|
18
18
|
if (!ufoExperience) {
|
package/dist/cjs/version.json
CHANGED
|
@@ -3,7 +3,7 @@ import { isRequestError } from '@atlaskit/media-client';
|
|
|
3
3
|
// Component name will be prefixed with "media-picker-" in logs. Check ufoExperiences in utils files
|
|
4
4
|
|
|
5
5
|
const packageName = "@atlaskit/media-picker";
|
|
6
|
-
const packageVersion = "65.0.
|
|
6
|
+
const packageVersion = "65.0.1";
|
|
7
7
|
export function getPackageAttributes(componentName) {
|
|
8
8
|
return {
|
|
9
9
|
packageName,
|
|
@@ -2,7 +2,7 @@ import { ConcurrentExperience, ExperiencePerformanceTypes, ExperienceTypes } fro
|
|
|
2
2
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
3
3
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
4
4
|
const packageName = "@atlaskit/media-picker";
|
|
5
|
-
const packageVersion = "65.0.
|
|
5
|
+
const packageVersion = "65.0.1";
|
|
6
6
|
let ufoExperience;
|
|
7
7
|
const initExperience = (id, componentName) => {
|
|
8
8
|
if (!ufoExperience) {
|
package/dist/es2019/version.json
CHANGED
|
@@ -3,7 +3,7 @@ import { isRequestError } from '@atlaskit/media-client';
|
|
|
3
3
|
// Component name will be prefixed with "media-picker-" in logs. Check ufoExperiences in utils files
|
|
4
4
|
|
|
5
5
|
var packageName = "@atlaskit/media-picker";
|
|
6
|
-
var packageVersion = "65.0.
|
|
6
|
+
var packageVersion = "65.0.1";
|
|
7
7
|
export function getPackageAttributes(componentName) {
|
|
8
8
|
return {
|
|
9
9
|
packageName: packageName,
|
|
@@ -5,7 +5,7 @@ import { ConcurrentExperience, ExperiencePerformanceTypes, ExperienceTypes } fro
|
|
|
5
5
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
6
6
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
7
7
|
var packageName = "@atlaskit/media-picker";
|
|
8
|
-
var packageVersion = "65.0.
|
|
8
|
+
var packageVersion = "65.0.1";
|
|
9
9
|
var ufoExperience;
|
|
10
10
|
var initExperience = function initExperience(id, componentName) {
|
|
11
11
|
if (!ufoExperience) {
|
package/dist/esm/version.json
CHANGED
|
@@ -17,8 +17,8 @@ export interface BrowserOwnProps {
|
|
|
17
17
|
onCancelFn?: (cancel: (uniqueIdentifier: string) => void) => void;
|
|
18
18
|
children?: (browse: () => void) => React.ReactChild;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
21
|
-
export
|
|
20
|
+
export type BrowseFn = () => void;
|
|
21
|
+
export type BrowserProps = LocalUploadComponentBaseProps & BrowserOwnProps;
|
|
22
22
|
export declare class BrowserBase extends LocalUploadComponentReact<BrowserProps> {
|
|
23
23
|
private browserRef;
|
|
24
24
|
constructor(props: BrowserProps);
|
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { BrowserProps } from './browser';
|
|
3
3
|
import { WithMediaClientConfigProps } from '@atlaskit/media-client';
|
|
4
4
|
import { BrowserConfig } from '../../types';
|
|
5
|
-
|
|
5
|
+
type BrowserWithMediaClientConfigProps = WithMediaClientConfigProps<Omit<BrowserProps, 'config'> & {
|
|
6
6
|
config?: BrowserConfig;
|
|
7
7
|
}>;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
type BrowserWithMediaClientConfigComponent = React.ComponentType<BrowserWithMediaClientConfigProps>;
|
|
9
|
+
type State = {
|
|
10
10
|
Browser?: BrowserWithMediaClientConfigComponent;
|
|
11
11
|
};
|
|
12
12
|
export declare class BrowserLoader extends React.PureComponent<BrowserWithMediaClientConfigProps, State> {
|
|
@@ -8,7 +8,7 @@ export declare const getFilesFromClipboard: (files: FileList) => File[];
|
|
|
8
8
|
export interface ClipboardOwnProps {
|
|
9
9
|
config: ClipboardConfig;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type ClipboardProps = LocalUploadComponentBaseProps & {
|
|
12
12
|
config: ClipboardConfig;
|
|
13
13
|
};
|
|
14
14
|
declare class ClipboardImpl {
|
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { ClipboardProps } from './clipboard';
|
|
3
3
|
import { ClipboardConfig } from '../../types';
|
|
4
4
|
import { WithMediaClientConfigProps } from '@atlaskit/media-client';
|
|
5
|
-
|
|
5
|
+
type ClipboardWithMediaClientConfigProps = WithMediaClientConfigProps<Omit<ClipboardProps, 'config'> & {
|
|
6
6
|
config?: ClipboardConfig;
|
|
7
7
|
}>;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
type ClipboardWithMediaClientConfigComponent = React.ComponentType<ClipboardWithMediaClientConfigProps>;
|
|
9
|
+
type State = {
|
|
10
10
|
Clipboard?: ClipboardWithMediaClientConfigComponent;
|
|
11
11
|
};
|
|
12
12
|
export declare class ClipboardLoader extends React.PureComponent<ClipboardWithMediaClientConfigProps, State> {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { LocalUploadComponentReact, LocalUploadComponentBaseProps } from '../localUploadReact';
|
|
3
3
|
import { DropzoneConfig } from '../../types';
|
|
4
4
|
import { DropzoneDragEnterEventPayload, DropzoneDragLeaveEventPayload, DropzoneUploadEventPayloadMap } from '../types';
|
|
5
|
-
export
|
|
5
|
+
export type DropzoneProps = LocalUploadComponentBaseProps & {
|
|
6
6
|
config: DropzoneConfig;
|
|
7
7
|
onDrop?: () => void;
|
|
8
8
|
onDragEnter?: (payload: DropzoneDragEnterEventPayload) => void;
|
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { WithMediaClientConfigProps } from '@atlaskit/media-client';
|
|
3
3
|
import { DropzoneProps } from './dropzone';
|
|
4
4
|
import { MediaPickerAnalyticsErrorBoundaryProps } from '../media-picker-analytics-error-boundary';
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
5
|
+
export type DropzoneWithMediaClientConfigProps = WithMediaClientConfigProps<DropzoneProps>;
|
|
6
|
+
type DropzoneWithMediaClientConfigComponent = React.ComponentType<DropzoneWithMediaClientConfigProps>;
|
|
7
|
+
type MediaPickerErrorBoundaryComponent = React.ComponentType<MediaPickerAnalyticsErrorBoundaryProps>;
|
|
8
|
+
export type State = {
|
|
9
9
|
Dropzone?: DropzoneWithMediaClientConfigComponent;
|
|
10
10
|
MediaPickerErrorBoundary?: MediaPickerErrorBoundaryComponent;
|
|
11
11
|
};
|
|
@@ -8,7 +8,7 @@ import { LocalUploadConfig } from './types';
|
|
|
8
8
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
9
9
|
import { AnalyticsEventPayload } from '../types';
|
|
10
10
|
import { ComponentName } from '../util/analytics';
|
|
11
|
-
export
|
|
11
|
+
export type LocalUploadComponentBaseProps = {
|
|
12
12
|
mediaClient: MediaClient;
|
|
13
13
|
config: LocalUploadConfig;
|
|
14
14
|
onUploadsStart?: (payload: UploadsStartEventPayload) => void;
|
|
@@ -26,7 +26,7 @@ export declare class LocalUploadComponentReact<Props extends LocalUploadComponen
|
|
|
26
26
|
private fireUploadSucceeded;
|
|
27
27
|
private fireUploadFailed;
|
|
28
28
|
protected createAndFireAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
|
|
29
|
-
cancel: (uniqueIdentifier?: string
|
|
29
|
+
cancel: (uniqueIdentifier?: string) => void;
|
|
30
30
|
setUploadParams(uploadParams: UploadParams): void;
|
|
31
31
|
private onFilesAdded;
|
|
32
32
|
private onFilePreviewUpdate;
|
|
@@ -11,7 +11,7 @@ export interface DropzoneDragEnterEventPayload {
|
|
|
11
11
|
export interface DropzoneDragLeaveEventPayload {
|
|
12
12
|
length: number;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type DropzoneUploadEventPayloadMap = UploadEventPayloadMap & {
|
|
15
15
|
readonly drop: undefined;
|
|
16
16
|
readonly 'drag-enter': DropzoneDragEnterEventPayload;
|
|
17
17
|
readonly 'drag-leave': DropzoneDragLeaveEventPayload;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
2
2
|
import { UploadEndEventPayload, UploadErrorEventPayload, UploadPreviewUpdateEventPayload, UploadsStartEventPayload, UploadParams } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export type UploadServiceEventPayloadTypes = {
|
|
4
4
|
readonly 'files-added': UploadsStartEventPayload;
|
|
5
5
|
readonly 'file-preview-update': UploadPreviewUpdateEventPayload;
|
|
6
6
|
readonly 'file-converting': UploadEndEventPayload;
|
|
7
7
|
readonly 'file-upload-error': UploadErrorEventPayload;
|
|
8
8
|
readonly 'file-dropped': DragEvent;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type UploadServiceEventListener<E extends keyof UploadServiceEventPayloadTypes> = (payload: UploadServiceEventPayloadTypes[E]) => void;
|
|
11
11
|
export declare const MAX_FILE_SIZE_FOR_PREVIEW = 10000000;
|
|
12
12
|
export interface UploadService {
|
|
13
13
|
setUploadParams(uploadParams: UploadParams): void;
|
|
@@ -19,7 +19,7 @@ export interface UploadService {
|
|
|
19
19
|
off<E extends keyof UploadServiceEventPayloadTypes>(event: E, listener: UploadServiceEventListener<E>): void;
|
|
20
20
|
onFileRejection(handler: (rejectionData: RejectionData) => void): void;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type RejectionData = {
|
|
23
23
|
reason: 'fileSizeLimitExceeded';
|
|
24
24
|
file: File;
|
|
25
25
|
limit: number;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface UploadParams {
|
|
|
6
6
|
collection?: string;
|
|
7
7
|
expireAfter?: number;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type MediaFile = {
|
|
10
10
|
readonly id: string;
|
|
11
11
|
readonly name: string;
|
|
12
12
|
readonly size: number;
|
|
@@ -14,37 +14,37 @@ export declare type MediaFile = {
|
|
|
14
14
|
readonly type: string;
|
|
15
15
|
readonly occurrenceKey?: string;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type NonImagePreview = {
|
|
18
18
|
readonly file?: Blob;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type ImagePreview = NonImagePreview & {
|
|
21
21
|
readonly dimensions: {
|
|
22
22
|
readonly width: number;
|
|
23
23
|
readonly height: number;
|
|
24
24
|
};
|
|
25
25
|
readonly scaleFactor: number;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
28
|
-
export
|
|
27
|
+
export type Preview = NonImagePreview | ImagePreview;
|
|
28
|
+
export type UploadsStartEventPayload = {
|
|
29
29
|
readonly files: MediaFile[];
|
|
30
30
|
readonly traceContext?: MediaTraceContext;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type UploadPreviewUpdateEventPayload = {
|
|
33
33
|
readonly file: MediaFile & {
|
|
34
34
|
readonly collectionName?: string;
|
|
35
35
|
};
|
|
36
36
|
readonly preview: Preview;
|
|
37
37
|
};
|
|
38
|
-
export
|
|
38
|
+
export type UploadEndEventPayload = {
|
|
39
39
|
readonly file: MediaFile;
|
|
40
40
|
readonly traceContext?: MediaTraceContext;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
42
|
+
export type UploadErrorEventPayload = {
|
|
43
43
|
readonly fileId: string;
|
|
44
44
|
readonly error: MediaError;
|
|
45
45
|
readonly traceContext?: MediaTraceContext;
|
|
46
46
|
};
|
|
47
|
-
export
|
|
47
|
+
export type UploadEventPayloadMap = {
|
|
48
48
|
readonly 'plugin-items-inserted': PluginItemPayload[];
|
|
49
49
|
readonly 'uploads-start': UploadsStartEventPayload;
|
|
50
50
|
readonly 'upload-preview-update': UploadPreviewUpdateEventPayload;
|
|
@@ -62,8 +62,8 @@ export interface DropzoneConfig extends LocalUploadConfig {
|
|
|
62
62
|
container?: HTMLElement;
|
|
63
63
|
headless?: boolean;
|
|
64
64
|
}
|
|
65
|
-
export
|
|
66
|
-
export
|
|
65
|
+
export type MediaErrorName = 'object_create_fail' | 'metadata_fetch_fail' | 'token_fetch_fail' | 'token_update_fail' | 'token_source_empty' | 'upload_fail' | 'user_token_fetch_fail' | 'remote_upload_fail' | 'invalid_uuid';
|
|
66
|
+
export type MediaError = {
|
|
67
67
|
readonly fileId?: string;
|
|
68
68
|
readonly name: MediaErrorName;
|
|
69
69
|
readonly description: string;
|
|
@@ -71,7 +71,7 @@ export declare type MediaError = {
|
|
|
71
71
|
};
|
|
72
72
|
export type { PluginItemPayload } from './domain/plugin';
|
|
73
73
|
export type { DropzoneDragEnterEventPayload } from './components/types';
|
|
74
|
-
export
|
|
74
|
+
export type ButtonClickedPayload = UIEventPayload<UIAttributes & {
|
|
75
75
|
fileId?: string;
|
|
76
76
|
fileCount?: number;
|
|
77
77
|
collectionName?: string;
|
|
@@ -86,39 +86,39 @@ export declare type ButtonClickedPayload = UIEventPayload<UIAttributes & {
|
|
|
86
86
|
fileAge?: string;
|
|
87
87
|
}>;
|
|
88
88
|
}, 'clicked', 'button'>;
|
|
89
|
-
export
|
|
89
|
+
export type ClipboardPastePayload = UIEventPayload<UIAttributes & {
|
|
90
90
|
fileCount?: number;
|
|
91
91
|
fileAttributes: Array<{
|
|
92
92
|
fileMimetype: string;
|
|
93
93
|
fileSize: number;
|
|
94
94
|
}>;
|
|
95
95
|
}, 'pasted', 'clipboard'>;
|
|
96
|
-
export
|
|
97
|
-
export
|
|
96
|
+
export type DropzoneEventAction = 'draggedOut' | 'draggedInto' | 'droppedInto' | 'folderDroppedInto';
|
|
97
|
+
export type DropzoneEventPayload = UIEventPayload<UIAttributes & {
|
|
98
98
|
fileCount: number;
|
|
99
99
|
}, DropzoneEventAction, 'dropzone'>;
|
|
100
|
-
export
|
|
101
|
-
export
|
|
102
|
-
export
|
|
100
|
+
export type MediaUploadType = 'localMedia' | 'cloudMedia';
|
|
101
|
+
export type MediaUploadSource = 'local' | 'cloud';
|
|
102
|
+
export type MediaUploadCommencedPayload = OperationalEventPayload<OperationalAttributes & {
|
|
103
103
|
sourceType: MediaUploadSource;
|
|
104
104
|
serviceName: string;
|
|
105
105
|
}, 'commenced', 'mediaUpload', MediaUploadType>;
|
|
106
|
-
export
|
|
106
|
+
export type MediaUploadSuccessPayload = OperationalEventPayload<OperationalAttributes & SuccessAttributes & {
|
|
107
107
|
sourceType: MediaUploadSource;
|
|
108
108
|
serviceName: string;
|
|
109
109
|
uploadDurationMsec: number;
|
|
110
110
|
}, 'succeeded', 'mediaUpload', MediaUploadType>;
|
|
111
|
-
export
|
|
111
|
+
export type MediaUploadFailurePayload = OperationalEventPayload<OperationalAttributes & FailureAttributes & {
|
|
112
112
|
sourceType: MediaUploadSource;
|
|
113
113
|
serviceName: string;
|
|
114
114
|
uploadDurationMsec: number;
|
|
115
115
|
request?: RequestMetadata;
|
|
116
116
|
}, 'failed', 'mediaUpload', MediaUploadType>;
|
|
117
|
-
export
|
|
117
|
+
export type UnhandledErrorPayload = OperationalEventPayload<OperationalAttributes & FailureAttributes & {
|
|
118
118
|
browserInfo: string;
|
|
119
119
|
info?: string;
|
|
120
120
|
}, 'unhandledError', 'error'>;
|
|
121
|
-
export
|
|
121
|
+
export type UUIDValidationErrorPayload = OperationalEventPayload<OperationalAttributes & FailureAttributes & {
|
|
122
122
|
uuid: string;
|
|
123
123
|
}, 'failed', 'mediaUpload'>;
|
|
124
|
-
export
|
|
124
|
+
export type AnalyticsEventPayload = ButtonClickedPayload | ClipboardPastePayload | MediaUploadCommencedPayload | MediaUploadSuccessPayload | MediaUploadFailurePayload | UnhandledErrorPayload | UUIDValidationErrorPayload;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestMetadata } from '@atlaskit/media-client';
|
|
2
2
|
import { PackageAttributes } from '@atlaskit/media-common';
|
|
3
|
-
export
|
|
3
|
+
export type ComponentName = 'browser' | 'clipboard' | 'dropzone';
|
|
4
4
|
export declare function getPackageAttributes(componentName: ComponentName): PackageAttributes;
|
|
5
5
|
export declare function getRequestMetadata(error?: Error): RequestMetadata | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type EventPayloadMap<P = any> = {
|
|
2
2
|
readonly [event: string]: P;
|
|
3
3
|
};
|
|
4
|
-
export
|
|
4
|
+
export type EventPayloadListener<M extends EventPayloadMap<P>, E extends keyof M, P = any> = (payload: M[E]) => void;
|
|
5
5
|
export interface EventEmitter<M extends EventPayloadMap<P>, P = any> {
|
|
6
6
|
once<E extends keyof M>(event: E, listener: EventPayloadListener<M, E>): void;
|
|
7
7
|
on<E extends keyof M>(event: E, listener: EventPayloadListener<M, E>): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileAttributes, WithFileAttributes } from '@atlaskit/media-common';
|
|
2
2
|
import { RequestMetadata } from '@atlaskit/media-client';
|
|
3
3
|
import { ComponentName } from './analytics';
|
|
4
|
-
export
|
|
4
|
+
export type UFOFailedEventPayload = {
|
|
5
5
|
failReason: string;
|
|
6
6
|
error?: string;
|
|
7
7
|
errorDetail?: string | undefined;
|
|
@@ -10,4 +10,4 @@ export declare type UFOFailedEventPayload = {
|
|
|
10
10
|
} & WithFileAttributes;
|
|
11
11
|
export declare const startMediaUploadUfoExperience: (id: string, componentName: ComponentName) => void;
|
|
12
12
|
export declare const succeedMediaUploadUfoExperience: (id: string, properties: FileAttributes) => void;
|
|
13
|
-
export declare const failMediaUploadUfoExperience: (id: string, properties?: UFOFailedEventPayload
|
|
13
|
+
export declare const failMediaUploadUfoExperience: (id: string, properties?: UFOFailedEventPayload) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-picker",
|
|
3
|
-
"version": "65.0.
|
|
3
|
+
"version": "65.0.1",
|
|
4
4
|
"description": "Library for handling file uploads",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"atlaskit:src": "src/index.ts",
|
|
16
24
|
"af:exports": {
|
|
17
25
|
"./types": "./src/types.ts",
|
|
@@ -40,7 +48,7 @@
|
|
|
40
48
|
"uuid-validate": "^0.0.3"
|
|
41
49
|
},
|
|
42
50
|
"peerDependencies": {
|
|
43
|
-
"@atlaskit/media-core": "^34.1.
|
|
51
|
+
"@atlaskit/media-core": "^34.1.1",
|
|
44
52
|
"react": "^16.8.0",
|
|
45
53
|
"react-dom": "^16.8.0",
|
|
46
54
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -68,7 +76,7 @@
|
|
|
68
76
|
"react": "^16.8.0",
|
|
69
77
|
"react-dom": "^16.8.0",
|
|
70
78
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
71
|
-
"typescript": "4.
|
|
79
|
+
"typescript": "~4.9.5",
|
|
72
80
|
"wait-for-expect": "^1.2.0"
|
|
73
81
|
},
|
|
74
82
|
"techstack": {
|
package/types/package.json
CHANGED