@atlaskit/media-client 39.2.5 → 39.2.7
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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/media-client
|
|
2
2
|
|
|
3
|
+
## 39.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c33f58ae5e045`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c33f58ae5e045) -
|
|
8
|
+
Clean up experiment cc_maui_polish_changes_batch_8. Anonymized Rovo image uploads now always get a
|
|
9
|
+
MIME-derived file extension.
|
|
10
|
+
|
|
11
|
+
## 39.2.6
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 39.2.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -32,7 +32,6 @@ var _isValidUuid = require("@atlaskit/media-common/isValidUuid");
|
|
|
32
32
|
var _mediaTypeUtils = require("@atlaskit/media-common/mediaTypeUtils");
|
|
33
33
|
var _authToOwner = require("@atlaskit/media-core/auth-to-owner");
|
|
34
34
|
var _mediaStore = require("@atlaskit/media-state/media-store");
|
|
35
|
-
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
36
35
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
37
36
|
var _constants = require("../../constants");
|
|
38
37
|
var _fileStreamsCache = require("../../file-streams-cache");
|
|
@@ -677,7 +676,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
677
676
|
return _context9.abrupt("return", reject('Could not download remote file'));
|
|
678
677
|
case 2:
|
|
679
678
|
type = blob.type, size = blob.size;
|
|
680
|
-
extensionAllowed = anonymizeFilename
|
|
679
|
+
extensionAllowed = anonymizeFilename || (0, _fg.fg)('platform_media_unique_external_upload_name');
|
|
681
680
|
_splitExtension3 = splitExtension(initialName), _splitExtension4 = (0, _slicedToArray2.default)(_splitExtension3, 2), existingExtension = _splitExtension4[1];
|
|
682
681
|
extension = extensionAllowed && !existingExtension ? (0, _mime.getExtension)(type) : undefined;
|
|
683
682
|
name = extension ? "".concat(initialName, ".").concat(extension) : initialName;
|
|
@@ -11,7 +11,6 @@ import { isValidUuid } from '@atlaskit/media-common/isValidUuid';
|
|
|
11
11
|
import { getMediaTypeFromMimeType } from '@atlaskit/media-common/mediaTypeUtils';
|
|
12
12
|
import { authToOwner } from '@atlaskit/media-core/auth-to-owner';
|
|
13
13
|
import { mediaStore } from '@atlaskit/media-state/media-store';
|
|
14
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
15
|
import { RECENTS_COLLECTION } from '../../constants';
|
|
17
16
|
import { getFileStreamsCache } from '../../file-streams-cache';
|
|
@@ -439,7 +438,7 @@ export class FileFetcherImpl {
|
|
|
439
438
|
type,
|
|
440
439
|
size
|
|
441
440
|
} = blob;
|
|
442
|
-
const extensionAllowed = anonymizeFilename
|
|
441
|
+
const extensionAllowed = anonymizeFilename || fg('platform_media_unique_external_upload_name');
|
|
443
442
|
const [, existingExtension] = splitExtension(initialName);
|
|
444
443
|
const extension = extensionAllowed && !existingExtension ? getExtension(type) : undefined;
|
|
445
444
|
const name = extension ? `${initialName}.${extension}` : initialName;
|
|
@@ -18,7 +18,6 @@ import { isValidUuid } from '@atlaskit/media-common/isValidUuid';
|
|
|
18
18
|
import { getMediaTypeFromMimeType } from '@atlaskit/media-common/mediaTypeUtils';
|
|
19
19
|
import { authToOwner } from '@atlaskit/media-core/auth-to-owner';
|
|
20
20
|
import { mediaStore } from '@atlaskit/media-state/media-store';
|
|
21
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
22
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
23
22
|
import { RECENTS_COLLECTION } from '../../constants';
|
|
24
23
|
import { getFileStreamsCache } from '../../file-streams-cache';
|
|
@@ -663,7 +662,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
663
662
|
return _context9.abrupt("return", reject('Could not download remote file'));
|
|
664
663
|
case 2:
|
|
665
664
|
type = blob.type, size = blob.size;
|
|
666
|
-
extensionAllowed = anonymizeFilename
|
|
665
|
+
extensionAllowed = anonymizeFilename || fg('platform_media_unique_external_upload_name');
|
|
667
666
|
_splitExtension3 = splitExtension(initialName), _splitExtension4 = _slicedToArray(_splitExtension3, 2), existingExtension = _splitExtension4[1];
|
|
668
667
|
extension = extensionAllowed && !existingExtension ? getExtension(type) : undefined;
|
|
669
668
|
name = extension ? "".concat(initialName, ".").concat(extension) : initialName;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-client",
|
|
3
|
-
"version": "39.2.
|
|
3
|
+
"version": "39.2.7",
|
|
4
4
|
"description": "Media API Web Client Library",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,9 +24,8 @@
|
|
|
24
24
|
"@atlaskit/atlassian-context": "^2.0.0",
|
|
25
25
|
"@atlaskit/chunkinator": "^8.2.0",
|
|
26
26
|
"@atlaskit/media-common": "^14.7.0",
|
|
27
|
-
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
28
27
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
29
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
28
|
+
"@atlaskit/tmp-editor-statsig": "^246.1.0",
|
|
30
29
|
"@babel/runtime": "^7.0.0",
|
|
31
30
|
"dataloader": "^2.1.0",
|
|
32
31
|
"deep-equal": "^1.0.1",
|
|
@@ -51,7 +50,6 @@
|
|
|
51
50
|
"@atlaskit/ssr": "workspace:^",
|
|
52
51
|
"@atlaskit/tokens": "^20.7.0",
|
|
53
52
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
54
|
-
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
55
53
|
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
56
54
|
"@atlassian/workbench": "workspace:^",
|
|
57
55
|
"@emotion/react": "^11.7.1",
|