@atlaskit/media-client 37.1.1 → 37.2.0

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
@@ -27,7 +27,9 @@
27
27
  > in a new repository.
28
28
 
29
29
  **Entry point:** `.agents/knowledge-index/INDEX.md` **Unit doc:**
30
- `.agents/knowledge-index/domains/media/units/atlaskit-media-client.md` **CLI:**
30
+ `.agents/knowledge-index/domains/media/units/atlaskit-media-client.md` **Standards page:**
31
+ `.agents/knowledge-index/domains/media/units/atlaskit-media-client/standards-and-patterns.md`
32
+ **CLI:**
31
33
  `python3 .agents/skills/knowledge-index/scripts/kg.py {find,read,edit,investigate,validate,init,explore,generate} …`
32
34
  **Refresh protocol:** never silently bump `Last verified` — always re-read the listed `Sources`
33
35
  first, edit, then `kg.py edit <path> --message "<reason>"`.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/media-client
2
2
 
3
+ ## 37.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c2d43ab375005`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c2d43ab375005) -
8
+ Autofix: add explicit package exports (barrel removal)
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 37.1.2
15
+
16
+ ### Patch Changes
17
+
18
+ - [`c16e1619c15f1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c16e1619c15f1) -
19
+ Clean up platform_media_upload_external_anonymize_filename feature flag; anonymizing the external
20
+ upload filename is now controlled solely by the anonymizeFilename argument
21
+
3
22
  ## 37.1.1
4
23
 
5
24
  ### Patch Changes
package/compass.yml CHANGED
@@ -1,39 +1,59 @@
1
1
  name: Media Client
2
- id: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/652381b6-c323-4b50-bf31-c94941a0b6ef'
2
+ id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/652381b6-c323-4b50-bf31-c94941a0b6ef
3
3
  description: Media API Web Client Library
4
4
  configVersion: 1
5
5
  typeId: UI_ELEMENT
6
- ownerId: 'ari:cloud:teams::team/3bee892f-cb1b-496c-b866-0f08d9e0296c'
6
+ ownerId: ari:cloud:teams::team/3bee892f-cb1b-496c-b866-0f08d9e0296c # Media EXIF
7
7
  fields:
8
- lifecycle: Active
9
8
  tier: 4
9
+ lifecycle: Active
10
+ isMonorepoProject: true
10
11
  labels:
11
12
  - atlassian-platform
13
+ - platform-code
14
+ - platform-afm
12
15
  links:
13
16
  - name: Root Repository
14
17
  type: REPOSITORY
15
18
  url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
16
19
  - name: ''
17
20
  type: REPOSITORY
18
- url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/media/media-client/'
21
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/media/media-client/
19
22
  - name: ''
20
23
  type: DOCUMENT
21
- url: 'https://atlaskit.atlassian.com/packages/media/media-client'
22
- #- name: '' # Tome Capability
23
- # type: OTHER_LINK
24
- # url: ''
24
+ url: https://atlaskit.atlassian.com/packages/media/media-client
25
25
  - name: Media By Product
26
26
  type: DASHBOARD
27
- url: 'https://atlassian.signalfx.com/#/dashboard/E-vk3wqAwAA?groupId=E-vkzo1AwAA&configId=E-vk5fsAwAA&startTime=-7d&endTime=Now'
27
+ url: https://atlassian.signalfx.com/#/dashboard/E-vk3wqAwAA?groupId=E-vkzo1AwAA&configId=E-vk5fsAwAA&startTime=-7d&endTime=Now
28
28
  - name: ''
29
29
  type: CHAT_CHANNEL
30
- url: 'https://atlassian.slack.com/archives/C05J5GNHPLN'
30
+ url: https://atlassian.slack.com/archives/C05J5GNHPLN
31
31
  - name: ''
32
32
  type: ON_CALL
33
- url: 'https://atlassian.app.opsgenie.com/settings/schedule/detail/b62291ff-4029-4f26-b7fc-d75d46d7aebc'
33
+ url: https://atlassian.app.opsgenie.com/settings/schedule/detail/b62291ff-4029-4f26-b7fc-d75d46d7aebc
34
34
  - name: ''
35
35
  type: PROJECT
36
- url: 'https://product-fabric.atlassian.net/jira/software/c/projects/BMPT/boards/5090'
36
+ url: https://product-fabric.atlassian.net/jira/software/c/projects/BMPT/boards/5090
37
+ - name: Slack Channel
38
+ type: CHAT_CHANNEL
39
+ url: https://atlassian.enterprise.slack.com/archives/C05J5GNHPLN # #help-media-platform
40
+ - name: Media Client
41
+ type: REPOSITORY
42
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/media/media-client
37
43
  relationships: {}
38
- # Learn more about formatting compass.yml:
39
- # https://go.atlassian.com/compass-yml-format
44
+ customFields:
45
+ - name: Department
46
+ type: text
47
+ value: Eng - Automation
48
+ - name: Technical Owner
49
+ type: user
50
+ value: ari:cloud:identity::user/712020:678ede01-221b-4b2f-9fce-adcc0b0d095e # Anupama Majety
51
+ - name: Required Reviewers Opt In
52
+ type: boolean
53
+ value: true
54
+ - name: Reviewer Selection Mechanism
55
+ type: text
56
+ value: random(2)
57
+ - name: Required Reviewer Approvals
58
+ type: number
59
+ value: 1
@@ -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 && (0, _platformFeatureFlags.fg)('platform_media_upload_external_anonymize_filename') ? crypto.randomUUID() : url.split('/').pop() || ''; // we create a initial fileState with the minimum info that we have at this point
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,
package/dist/cjs/index.js CHANGED
@@ -368,4 +368,4 @@ var _url = require("./utils/url");
368
368
  var _mediaSubscribable = require("./utils/mediaSubscribable");
369
369
  var _constants = require("./constants");
370
370
  var _fileStreamsCache = require("./file-streams-cache");
371
- var _mediaCore = require("@atlaskit/media-core");
371
+ var _mediaCore = require("./media-core");
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "ChunkHashAlgorithm", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _mediaCore.ChunkHashAlgorithm;
10
+ }
11
+ });
12
+ var _mediaCore = require("@atlaskit/media-core");
@@ -0,0 +1 @@
1
+ "use strict";
@@ -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 && fg('platform_media_upload_external_anonymize_filename') ? crypto.randomUUID() : url.split('/').pop() || '';
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',
@@ -21,4 +21,4 @@ export { isMediaBlobUrl, getAttrsFromUrl, addFileAttrsToUrl, objectToQueryString
21
21
  export { createMediaSubscribable, fromObservable } from './utils/mediaSubscribable';
22
22
  export { RECENTS_COLLECTION, MAX_RESOLUTION } from './constants';
23
23
  export { getFileStreamsCache } from './file-streams-cache';
24
- export { ChunkHashAlgorithm } from '@atlaskit/media-core';
24
+ export { ChunkHashAlgorithm } from './media-core';
@@ -0,0 +1 @@
1
+ export { ChunkHashAlgorithm } from '@atlaskit/media-core';
File without changes
@@ -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 && fg('platform_media_upload_external_anonymize_filename') ? crypto.randomUUID() : url.split('/').pop() || ''; // we create a initial fileState with the minimum info that we have at this point
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/dist/esm/index.js CHANGED
@@ -21,4 +21,4 @@ export { isMediaBlobUrl, getAttrsFromUrl, addFileAttrsToUrl, objectToQueryString
21
21
  export { createMediaSubscribable, fromObservable } from './utils/mediaSubscribable';
22
22
  export { RECENTS_COLLECTION, MAX_RESOLUTION } from './constants';
23
23
  export { getFileStreamsCache } from './file-streams-cache';
24
- export { ChunkHashAlgorithm } from '@atlaskit/media-core';
24
+ export { ChunkHashAlgorithm } from './media-core';
@@ -0,0 +1 @@
1
+ export { ChunkHashAlgorithm } from '@atlaskit/media-core';
File without changes
@@ -10,7 +10,7 @@ export { isMediaClientError, getMediaClientErrorReason, isCommonMediaClientError
10
10
  export type { MediaClientError, MediaClientErrorReason, MediaClientErrorAttributes, } from './models/errors';
11
11
  export { isUploadingFileState, isProcessingFileState, isProcessedFileState, isErrorFileState, isPreviewableFileState, isFinalFileState, isImageRepresentationReady, isNonErrorFinalFileState, mapMediaFileToFileState, mapMediaItemToFileState, hasArtifacts, } from './models/file-state';
12
12
  export type { FileStatus, PreviewOptions, GetFileOptions, NonErrorFileState, PreviewableFileState, } from './models/file-state';
13
- export type { FileState, FilePreview, ErrorFileState, UploadingFileState, ProcessingFileState, ProcessedFileState, ProcessingFailedState, MediaFileArtifact, MediaFileArtifacts, } from '@atlaskit/media-state';
13
+ export type { FileState, FilePreview, ErrorFileState, UploadingFileState, ProcessingFileState, ProcessedFileState, ProcessingFailedState, MediaFileArtifact, MediaFileArtifacts, } from './media-state';
14
14
  export type { MobileUpload, MobileUploadStartEvent, MobileUploadProgressEvent, MobileUploadEndEvent, MobileUploadErrorEvent, } from './models/mobile-upload';
15
15
  export { uploadFile } from './uploader';
16
16
  export type { UploadableFile, UploadableFileUpfrontIds, UploadFileCallbacks, UploadFileResult, } from './uploader';
@@ -34,7 +34,7 @@ export { createMediaSubject } from './utils/createMediaSubject';
34
34
  export { isFileIdentifier, isExternalImageIdentifier, isDifferentIdentifier } from './identifier';
35
35
  export type { Identifier, FileIdentifier, ExternalImageIdentifier } from './identifier';
36
36
  export type { EventPayloadListener, UploadEventPayloadMap, MediaViewedEventPayload, AuthProviderSucceededEventPayload, AuthProviderFailedEventPayload, } from './client/events';
37
- export type { MediaClientConfig } from '@atlaskit/media-core';
37
+ export type { MediaClientConfig } from './media-core';
38
38
  export { globalMediaEventEmitter } from './globalMediaEventEmitter';
39
39
  export { isMediaBlobUrl, getAttrsFromUrl, addFileAttrsToUrl, objectToQueryString, } from './utils/url';
40
40
  export type { MediaBlobUrlAttrs } from './utils/url';
@@ -42,4 +42,4 @@ export { createMediaSubscribable, fromObservable } from './utils/mediaSubscribab
42
42
  export type { MediaSubscribable, MediaSubscription, MediaObserver, } from './utils/mediaSubscribable';
43
43
  export { RECENTS_COLLECTION, MAX_RESOLUTION } from './constants';
44
44
  export { getFileStreamsCache } from './file-streams-cache';
45
- export { ChunkHashAlgorithm } from '@atlaskit/media-core';
45
+ export { ChunkHashAlgorithm } from './media-core';
@@ -0,0 +1,2 @@
1
+ export { ChunkHashAlgorithm } from '@atlaskit/media-core';
2
+ export type { MediaClientConfig } from '@atlaskit/media-core';
@@ -0,0 +1 @@
1
+ export type { FileState, FilePreview, ErrorFileState, UploadingFileState, ProcessingFileState, ProcessedFileState, ProcessingFailedState, MediaFileArtifact, MediaFileArtifacts, } from '@atlaskit/media-state';
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "@atlaskit/media-client/media-core",
3
+ "main": "../dist/cjs/media-core.js",
4
+ "module": "../dist/esm/media-core.js",
5
+ "module:es2019": "../dist/es2019/media-core.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/media-core.d.ts"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "@atlaskit/media-client/media-state",
3
+ "main": "../dist/cjs/media-state.js",
4
+ "module": "../dist/esm/media-state.js",
5
+ "module:es2019": "../dist/es2019/media-state.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/media-state.d.ts"
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-client",
3
- "version": "37.1.1",
3
+ "version": "37.2.0",
4
4
  "description": "Media API Web Client Library",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/atlassian-context": "^1.0.0",
25
25
  "@atlaskit/chunkinator": "^8.0.0",
26
- "@atlaskit/media-common": "^14.1.0",
26
+ "@atlaskit/media-common": "^14.2.0",
27
27
  "@atlaskit/platform-feature-flags": "^2.0.0",
28
28
  "@babel/runtime": "^7.0.0",
29
29
  "dataloader": "^2.1.0",
@@ -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": "^14.0.0",
48
- "@atlassian/a11y-jest-testing": "^0.12.0",
47
+ "@atlaskit/tokens": "^15.4.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
  },