@atlaskit/media-picker 61.0.0 → 61.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/components/dropzone/dropzone.js +3 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/dropzone/dropzone.js +5 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/dropzone/dropzone.js +3 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/browser/browser.d.ts +3 -2
- package/dist/types/components/browser/index.d.ts +1 -5
- package/dist/types/components/clipboard/clipboard.d.ts +1 -1
- package/dist/types/components/clipboard/index.d.ts +1 -5
- package/dist/types/components/dropzone/dropzone.d.ts +1 -1
- package/dist/types/components/dropzone/index.d.ts +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -181,7 +181,9 @@ var DropzoneBase = /*#__PURE__*/function (_LocalUploadComponent) {
|
|
|
181
181
|
var toArray = Array.from(items); //function to check if a file entry is a folder
|
|
182
182
|
|
|
183
183
|
var hasFolder = function hasFolder(item) {
|
|
184
|
-
|
|
184
|
+
var _item$webkitGetAsEntr;
|
|
185
|
+
|
|
186
|
+
return (_item$webkitGetAsEntr = item.webkitGetAsEntry()) === null || _item$webkitGetAsEntr === void 0 ? void 0 : _item$webkitGetAsEntr.isDirectory;
|
|
185
187
|
}; //how many folders are in a single drag and drop event
|
|
186
188
|
|
|
187
189
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -103,7 +103,11 @@ export class DropzoneBase extends LocalUploadComponentReact {
|
|
|
103
103
|
//convert DataTransferItemList into an array of DataTransferItem(s)
|
|
104
104
|
const toArray = Array.from(items); //function to check if a file entry is a folder
|
|
105
105
|
|
|
106
|
-
const hasFolder = item =>
|
|
106
|
+
const hasFolder = item => {
|
|
107
|
+
var _item$webkitGetAsEntr;
|
|
108
|
+
|
|
109
|
+
return (_item$webkitGetAsEntr = item.webkitGetAsEntry()) === null || _item$webkitGetAsEntr === void 0 ? void 0 : _item$webkitGetAsEntr.isDirectory;
|
|
110
|
+
}; //how many folders are in a single drag and drop event
|
|
107
111
|
|
|
108
112
|
|
|
109
113
|
var folderCount = toArray.filter(item => hasFolder(item)).length; // fires analytic events if number of folders is more than 0
|
package/dist/es2019/version.json
CHANGED
|
@@ -166,7 +166,9 @@ export var DropzoneBase = /*#__PURE__*/function (_LocalUploadComponent) {
|
|
|
166
166
|
var toArray = Array.from(items); //function to check if a file entry is a folder
|
|
167
167
|
|
|
168
168
|
var hasFolder = function hasFolder(item) {
|
|
169
|
-
|
|
169
|
+
var _item$webkitGetAsEntr;
|
|
170
|
+
|
|
171
|
+
return (_item$webkitGetAsEntr = item.webkitGetAsEntry()) === null || _item$webkitGetAsEntr === void 0 ? void 0 : _item$webkitGetAsEntr.isDirectory;
|
|
170
172
|
}; //how many folders are in a single drag and drop event
|
|
171
173
|
|
|
172
174
|
|
package/dist/esm/version.json
CHANGED
|
@@ -13,6 +13,7 @@ export interface BrowserOwnProps {
|
|
|
13
13
|
onCancelFn?: (cancel: (uniqueIdentifier: string) => void) => void;
|
|
14
14
|
children?: (browse: () => void) => React.ReactChild;
|
|
15
15
|
}
|
|
16
|
+
export declare type BrowseFn = () => void;
|
|
16
17
|
export declare type BrowserProps = LocalUploadComponentBaseProps & BrowserOwnProps;
|
|
17
18
|
export declare class BrowserBase extends LocalUploadComponentReact<BrowserProps> {
|
|
18
19
|
private browserRef;
|
|
@@ -23,9 +24,9 @@ export declare class BrowserBase extends LocalUploadComponentReact<BrowserProps>
|
|
|
23
24
|
private onFilePicked;
|
|
24
25
|
componentDidMount(): void;
|
|
25
26
|
UNSAFE_componentWillReceiveProps(nextProps: BrowserProps): void;
|
|
26
|
-
browse:
|
|
27
|
+
browse: BrowseFn;
|
|
27
28
|
render(): JSX.Element;
|
|
28
29
|
}
|
|
29
|
-
export declare const Browser: React.ForwardRefExoticComponent<Pick<Pick<
|
|
30
|
+
export declare const Browser: React.ForwardRefExoticComponent<Pick<Pick<Omit<BrowserProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "mediaClient" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "children" | "onCancelFn" | "isOpen" | "onClose" | "onBrowseFn"> & Partial<Pick<Omit<BrowserProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "config">> & Partial<Pick<{
|
|
30
31
|
config: BrowserConfig;
|
|
31
32
|
}, never>> & React.RefAttributes<any>, "mediaClient" | "config" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "children" | "onCancelFn" | "key" | "isOpen" | "onClose" | "onBrowseFn"> & React.RefAttributes<any>>;
|
|
@@ -14,11 +14,7 @@ export declare class BrowserLoader extends React.PureComponent<BrowserWithMediaC
|
|
|
14
14
|
static displayName: string;
|
|
15
15
|
static Browser?: BrowserWithMediaClientConfigComponent;
|
|
16
16
|
state: {
|
|
17
|
-
Browser:
|
|
18
|
-
config?: BrowserConfig | undefined;
|
|
19
|
-
}>, any> | React.FunctionComponent<WithMediaClientConfigProps<Pick<BrowserProps, "mediaClient" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "createAnalyticsEvent" | "ref" | "children" | "onCancelFn" | "isOpen" | "onClose" | "onBrowseFn"> & {
|
|
20
|
-
config?: BrowserConfig | undefined;
|
|
21
|
-
}>> | undefined;
|
|
17
|
+
Browser: BrowserWithMediaClientConfigComponent | undefined;
|
|
22
18
|
};
|
|
23
19
|
componentDidMount(): void;
|
|
24
20
|
componentWillUnmount(): void;
|
|
@@ -32,7 +32,7 @@ export declare class ClipboardBase extends LocalUploadComponentReact<ClipboardPr
|
|
|
32
32
|
componentWillUnmount(): void;
|
|
33
33
|
render(): null;
|
|
34
34
|
}
|
|
35
|
-
export declare const Clipboard: import("react").ForwardRefExoticComponent<Pick<Pick<
|
|
35
|
+
export declare const Clipboard: import("react").ForwardRefExoticComponent<Pick<Pick<Omit<ClipboardProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "mediaClient" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags"> & Partial<Pick<Omit<ClipboardProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "config">> & Partial<Pick<{
|
|
36
36
|
config: ClipboardConfig;
|
|
37
37
|
}, never>> & import("react").RefAttributes<any>, "mediaClient" | "config" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "key"> & import("react").RefAttributes<any>>;
|
|
38
38
|
export {};
|
|
@@ -13,11 +13,7 @@ export declare class ClipboardLoader extends React.PureComponent<ClipboardWithMe
|
|
|
13
13
|
static displayName: string;
|
|
14
14
|
static Clipboard?: ClipboardWithMediaClientConfigComponent;
|
|
15
15
|
state: {
|
|
16
|
-
Clipboard:
|
|
17
|
-
config?: ClipboardConfig | undefined;
|
|
18
|
-
}>, any> | React.FunctionComponent<WithMediaClientConfigProps<Pick<ClipboardProps, "mediaClient" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "createAnalyticsEvent" | "ref"> & {
|
|
19
|
-
config?: ClipboardConfig | undefined;
|
|
20
|
-
}>> | undefined;
|
|
16
|
+
Clipboard: ClipboardWithMediaClientConfigComponent | undefined;
|
|
21
17
|
};
|
|
22
18
|
UNSAFE_componentWillMount(): Promise<void>;
|
|
23
19
|
render(): JSX.Element | null;
|
|
@@ -33,4 +33,4 @@ export declare class DropzoneBase extends LocalUploadComponentReact<DropzoneProp
|
|
|
33
33
|
private fireAnalyticsEvent;
|
|
34
34
|
render(): null;
|
|
35
35
|
}
|
|
36
|
-
export declare const Dropzone: import("react").ForwardRefExoticComponent<Pick<
|
|
36
|
+
export declare const Dropzone: import("react").ForwardRefExoticComponent<Pick<Omit<DropzoneProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & import("react").RefAttributes<any>, "mediaClient" | "config" | "onUploadsStart" | "onPreviewUpdate" | "onEnd" | "onError" | "featureFlags" | "onDrop" | "onDragEnter" | "onDragLeave" | "onCancelFn" | "key"> & import("react").RefAttributes<any>>;
|
|
@@ -14,8 +14,8 @@ export declare class DropzoneLoader extends React.PureComponent<DropzoneWithMedi
|
|
|
14
14
|
static Dropzone?: DropzoneWithMediaClientConfigComponent;
|
|
15
15
|
static MediaPickerErrorBoundary?: MediaPickerErrorBoundaryComponent;
|
|
16
16
|
state: {
|
|
17
|
-
Dropzone:
|
|
18
|
-
MediaPickerErrorBoundary:
|
|
17
|
+
Dropzone: DropzoneWithMediaClientConfigComponent | undefined;
|
|
18
|
+
MediaPickerErrorBoundary: MediaPickerErrorBoundaryComponent | undefined;
|
|
19
19
|
};
|
|
20
20
|
UNSAFE_componentWillMount(): Promise<void>;
|
|
21
21
|
render(): JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-picker",
|
|
3
|
-
"version": "61.0.
|
|
3
|
+
"version": "61.0.1",
|
|
4
4
|
"description": "Library for handling file uploads",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
30
|
-
"@atlaskit/media-client": "^15.
|
|
30
|
+
"@atlaskit/media-client": "^15.1.0",
|
|
31
31
|
"@atlaskit/media-common": "^2.12.0",
|
|
32
32
|
"@atlaskit/media-ui": "^21.1.0",
|
|
33
33
|
"@atlaskit/ufo": "^0.1.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"uuid-validate": "^0.0.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@atlaskit/media-core": "^32.3.
|
|
45
|
+
"@atlaskit/media-core": "^32.3.1",
|
|
46
46
|
"react": "^16.8.0",
|
|
47
47
|
"react-dom": "^16.8.0",
|
|
48
48
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@atlaskit/analytics-listeners": "^8.2.0",
|
|
53
53
|
"@atlaskit/analytics-namespaced-context": "^6.4.0",
|
|
54
|
-
"@atlaskit/button": "^16.
|
|
54
|
+
"@atlaskit/button": "^16.3.0",
|
|
55
55
|
"@atlaskit/docs": "*",
|
|
56
56
|
"@atlaskit/dropdown-menu": "^11.1.0",
|
|
57
57
|
"@atlaskit/media-card": "^73.5.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"react": "^16.8.0",
|
|
73
73
|
"react-dom": "^16.8.0",
|
|
74
74
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
75
|
-
"typescript": "
|
|
75
|
+
"typescript": "4.2.4",
|
|
76
76
|
"wait-for-expect": "^1.2.0"
|
|
77
77
|
},
|
|
78
78
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|