@atlaskit/media-picker 59.0.2 → 59.0.3
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 +8 -0
- package/dist/cjs/service/uploadServiceImpl.js +1 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/service/uploadServiceImpl.js +2 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/service/uploadServiceImpl.js +2 -4
- package/dist/esm/version.json +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/media-picker
|
|
2
2
|
|
|
3
|
+
## 59.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6d50e8c688e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6d50e8c688e) - Flexible UI: Add priority badge element
|
|
8
|
+
- [`ef080793757`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ef080793757) - stop caching observable in UploadServiceImpl
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 59.0.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -265,9 +265,7 @@ var UploadServiceImpl = /*#__PURE__*/function () {
|
|
|
265
265
|
_this2.onFileError(mediaFile, 'upload_fail', _error);
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
|
-
_this2.cancellableFilesUploads[id] = cancellableFileUpload;
|
|
269
|
-
|
|
270
|
-
(0, _mediaClient.getFileStreamsCache)().set(id, sourceFileObservable);
|
|
268
|
+
_this2.cancellableFilesUploads[id] = cancellableFileUpload;
|
|
271
269
|
return cancellableFileUpload;
|
|
272
270
|
});
|
|
273
271
|
var mediaFiles = cancellableFileUploads.map(function (cancellableFileUpload) {
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import uuidV4 from 'uuid/v4';
|
|
3
|
-
import { MediaStore, UploadController, getMediaTypeFromMimeType, isMimeTypeSupportedByBrowser,
|
|
3
|
+
import { MediaStore, UploadController, getMediaTypeFromMimeType, isMimeTypeSupportedByBrowser, MediaClient, globalMediaEventEmitter, RequestError } from '@atlaskit/media-client';
|
|
4
4
|
import { RECENTS_COLLECTION } from '@atlaskit/media-client/constants';
|
|
5
5
|
import { EventEmitter2 } from 'eventemitter2';
|
|
6
6
|
import { mapAuthToSourceFileOwner } from '../popup/domain/source-file';
|
|
@@ -209,9 +209,7 @@ export class UploadServiceImpl {
|
|
|
209
209
|
this.onFileError(mediaFile, 'upload_fail', error);
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
|
-
this.cancellableFilesUploads[id] = cancellableFileUpload;
|
|
213
|
-
|
|
214
|
-
getFileStreamsCache().set(id, sourceFileObservable);
|
|
212
|
+
this.cancellableFilesUploads[id] = cancellableFileUpload;
|
|
215
213
|
return cancellableFileUpload;
|
|
216
214
|
});
|
|
217
215
|
const mediaFiles = cancellableFileUploads.map(cancellableFileUpload => cancellableFileUpload.mediaFile);
|
package/dist/es2019/version.json
CHANGED
|
@@ -9,7 +9,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
9
9
|
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) { _defineProperty(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; }
|
|
10
10
|
|
|
11
11
|
import uuidV4 from 'uuid/v4';
|
|
12
|
-
import { MediaStore, UploadController, getMediaTypeFromMimeType, isMimeTypeSupportedByBrowser,
|
|
12
|
+
import { MediaStore, UploadController, getMediaTypeFromMimeType, isMimeTypeSupportedByBrowser, MediaClient, globalMediaEventEmitter, RequestError } from '@atlaskit/media-client';
|
|
13
13
|
import { RECENTS_COLLECTION } from '@atlaskit/media-client/constants';
|
|
14
14
|
import { EventEmitter2 } from 'eventemitter2';
|
|
15
15
|
import { mapAuthToSourceFileOwner } from '../popup/domain/source-file';
|
|
@@ -247,9 +247,7 @@ export var UploadServiceImpl = /*#__PURE__*/function () {
|
|
|
247
247
|
_this2.onFileError(mediaFile, 'upload_fail', _error);
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
|
-
_this2.cancellableFilesUploads[id] = cancellableFileUpload;
|
|
251
|
-
|
|
252
|
-
getFileStreamsCache().set(id, sourceFileObservable);
|
|
250
|
+
_this2.cancellableFilesUploads[id] = cancellableFileUpload;
|
|
253
251
|
return cancellableFileUpload;
|
|
254
252
|
});
|
|
255
253
|
var mediaFiles = cancellableFileUploads.map(function (cancellableFileUpload) {
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-picker",
|
|
3
|
-
"version": "59.0.
|
|
3
|
+
"version": "59.0.3",
|
|
4
4
|
"description": "Library for handling file uploads",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
30
30
|
"@atlaskit/button": "^16.0.0",
|
|
31
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
31
|
+
"@atlaskit/dropdown-menu": "^11.1.0",
|
|
32
32
|
"@atlaskit/flag": "^14.5.0",
|
|
33
33
|
"@atlaskit/icon": "^21.10.0",
|
|
34
|
-
"@atlaskit/media-card": "^73.
|
|
34
|
+
"@atlaskit/media-card": "^73.2.0",
|
|
35
35
|
"@atlaskit/media-client": "^14.3.0",
|
|
36
36
|
"@atlaskit/media-common": "^2.10.0",
|
|
37
37
|
"@atlaskit/media-editor": "^39.0.0",
|
|
38
|
-
"@atlaskit/media-ui": "^
|
|
38
|
+
"@atlaskit/media-ui": "^19.0.0",
|
|
39
39
|
"@atlaskit/modal-dialog": "^12.2.0",
|
|
40
40
|
"@atlaskit/outbound-auth-flow-client": "^3.3.0",
|
|
41
41
|
"@atlaskit/spinner": "^15.0.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"exenv": "^1.2.2",
|
|
49
49
|
"filesize": "^3.2.1",
|
|
50
50
|
"flat-files": "^1.0.6",
|
|
51
|
-
"json-ld-types": "2.
|
|
51
|
+
"json-ld-types": "2.4.0",
|
|
52
52
|
"jwt-decode": "^2.2.0",
|
|
53
53
|
"lodash": "^4.17.21",
|
|
54
54
|
"perf-marks": "^1.5.0",
|
|
@@ -69,14 +69,14 @@
|
|
|
69
69
|
"styled-components": "^3.2.6"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@atlaskit/analytics-listeners": "^8.
|
|
73
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
72
|
+
"@atlaskit/analytics-listeners": "^8.2.0",
|
|
73
|
+
"@atlaskit/analytics-namespaced-context": "^6.4.0",
|
|
74
74
|
"@atlaskit/banner": "^11.3.0",
|
|
75
75
|
"@atlaskit/checkbox": "^12.2.0",
|
|
76
76
|
"@atlaskit/docs": "*",
|
|
77
77
|
"@atlaskit/media-core": "^32.2.0",
|
|
78
78
|
"@atlaskit/media-integration-test-helpers": "^2.5.0",
|
|
79
|
-
"@atlaskit/media-test-helpers": "^29.
|
|
79
|
+
"@atlaskit/media-test-helpers": "^29.1.0",
|
|
80
80
|
"@atlaskit/media-viewer": "^46.0.0",
|
|
81
81
|
"@atlaskit/section-message": "^6.0.0",
|
|
82
82
|
"@atlaskit/select": "^15.2.0",
|