@atlaskit/media-client 37.1.1 → 37.1.2
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/AGENTS.md
CHANGED
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
> codebase and the docs after any code change. Use the `generate` subcommand to bootstrap the index
|
|
27
27
|
> in a new repository.
|
|
28
28
|
|
|
29
|
-
**Entry point:** `.agents/knowledge-index/INDEX.md`
|
|
30
|
-
`.agents/knowledge-index/domains/media/units/atlaskit-media-client.md`
|
|
31
|
-
|
|
32
|
-
**
|
|
33
|
-
first, edit, then `kg.py edit <path> --message "<reason>"`.
|
|
29
|
+
**Entry point:** `.agents/knowledge-index/INDEX.md`
|
|
30
|
+
**Unit doc:** `.agents/knowledge-index/domains/media/units/atlaskit-media-client.md`
|
|
31
|
+
**Standards page:** `.agents/knowledge-index/domains/media/units/atlaskit-media-client/standards-and-patterns.md`
|
|
32
|
+
**CLI:** `python3 .agents/skills/knowledge-index/scripts/kg.py {find,read,edit,investigate,validate,init,explore,generate} …`
|
|
33
|
+
**Refresh protocol:** never silently bump `Last verified` — always re-read the listed `Sources` first, edit, then `kg.py edit <path> --message "<reason>"`.
|
|
34
34
|
|
|
35
35
|
## Key source files
|
|
36
36
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/media-client
|
|
2
2
|
|
|
3
|
+
## 37.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c16e1619c15f1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c16e1619c15f1) -
|
|
8
|
+
Clean up platform_media_upload_external_anonymize_filename feature flag; anonymizing the external
|
|
9
|
+
upload filename is now controlled solely by the anonymizeFilename argument
|
|
10
|
+
|
|
3
11
|
## 37.1.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -26,7 +26,6 @@ var _Subscription = require("rxjs/Subscription");
|
|
|
26
26
|
var _map = require("rxjs/operators/map");
|
|
27
27
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
28
28
|
var _mediaCore = require("@atlaskit/media-core");
|
|
29
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
30
29
|
var _isValidUuid = require("@atlaskit/media-common/isValidUuid");
|
|
31
30
|
var _downloadUrl = require("@atlaskit/media-common/downloadUrl");
|
|
32
31
|
var _mediaStore = require("../media-store");
|
|
@@ -599,7 +598,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
599
598
|
return _ref0.apply(this, arguments);
|
|
600
599
|
};
|
|
601
600
|
}());
|
|
602
|
-
name = anonymizeFilename
|
|
601
|
+
name = anonymizeFilename ? crypto.randomUUID() : url.split('/').pop() || ''; // we create a initial fileState with the minimum info that we have at this point
|
|
603
602
|
fileState = {
|
|
604
603
|
status: 'processing',
|
|
605
604
|
name: name,
|
|
@@ -4,7 +4,6 @@ import { map } from 'rxjs/operators/map';
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
5
5
|
import uuid from 'uuid/v4';
|
|
6
6
|
import { authToOwner } from '@atlaskit/media-core';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { isValidUuid } from '@atlaskit/media-common/isValidUuid';
|
|
9
8
|
import { downloadUrl } from '@atlaskit/media-common/downloadUrl';
|
|
10
9
|
import { MediaStore as MediaApi } from '../media-store';
|
|
@@ -369,7 +368,7 @@ export class FileFetcherImpl {
|
|
|
369
368
|
origin: 'remote'
|
|
370
369
|
});
|
|
371
370
|
});
|
|
372
|
-
const name = anonymizeFilename
|
|
371
|
+
const name = anonymizeFilename ? crypto.randomUUID() : url.split('/').pop() || '';
|
|
373
372
|
// we create a initial fileState with the minimum info that we have at this point
|
|
374
373
|
const fileState = {
|
|
375
374
|
status: 'processing',
|
|
@@ -10,7 +10,6 @@ import { map } from 'rxjs/operators/map';
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
11
11
|
import uuid from 'uuid/v4';
|
|
12
12
|
import { authToOwner } from '@atlaskit/media-core';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
import { isValidUuid } from '@atlaskit/media-common/isValidUuid';
|
|
15
14
|
import { downloadUrl } from '@atlaskit/media-common/downloadUrl';
|
|
16
15
|
import { MediaStore as MediaApi } from '../media-store';
|
|
@@ -582,7 +581,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
582
581
|
return _ref0.apply(this, arguments);
|
|
583
582
|
};
|
|
584
583
|
}());
|
|
585
|
-
name = anonymizeFilename
|
|
584
|
+
name = anonymizeFilename ? crypto.randomUUID() : url.split('/').pop() || ''; // we create a initial fileState with the minimum info that we have at this point
|
|
586
585
|
fileState = {
|
|
587
586
|
status: 'processing',
|
|
588
587
|
name: name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-client",
|
|
3
|
-
"version": "37.1.
|
|
3
|
+
"version": "37.1.2",
|
|
4
4
|
"description": "Media API Web Client Library",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@atlaskit/media-core": "^38.0.0",
|
|
45
45
|
"@atlaskit/media-state": "^3.0.0",
|
|
46
46
|
"@atlaskit/ssr": "workspace:^",
|
|
47
|
-
"@atlaskit/tokens": "^
|
|
48
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
47
|
+
"@atlaskit/tokens": "^15.0.0",
|
|
48
|
+
"@atlassian/a11y-jest-testing": "^0.13.0",
|
|
49
49
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"@types/deep-equal": "^1.0.1",
|
|
@@ -67,9 +67,6 @@
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"platform-feature-flags": {
|
|
70
|
-
"platform_media_upload_external_anonymize_filename": {
|
|
71
|
-
"type": "boolean"
|
|
72
|
-
},
|
|
73
70
|
"platform_media_cdn_single_host": {
|
|
74
71
|
"type": "boolean"
|
|
75
72
|
},
|