@atlaskit/media-client 36.0.6 → 36.1.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 CHANGED
@@ -1,5 +1,30 @@
1
1
  # @atlaskit/media-client
2
2
 
3
+ ## 36.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`71ee114498663`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/71ee114498663) -
8
+ Parameterized anonymize media file names on upload
9
+
10
+ ## 36.1.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`5653e8be24c05`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5653e8be24c05) -
15
+ Replace `uuid-validate` with an inlined, browser-only `isValidUuid` helper in
16
+ `@atlaskit/media-common`. Removes the `uuid-validate` dependency from `media-card`,
17
+ `media-client`, `media-common` and `media-picker` so consumers no longer pull in the Node `Buffer`
18
+ polyfill purely for a `Buffer.isBuffer` check that always returned `false` in the browser.
19
+
20
+ Adds a new `@atlaskit/media-common/isValidUuid` subpath export so consumers can import the helper
21
+ without going through the package's barrel file (in line with the Debarreling Platform Packages
22
+ initiative).
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 36.0.6
4
29
 
5
30
  ### Patch Changes
@@ -27,6 +27,7 @@ var _map = require("rxjs/operators/map");
27
27
  var _v = _interopRequireDefault(require("uuid/v4"));
28
28
  var _mediaCore = require("@atlaskit/media-core");
29
29
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
30
+ var _isValidUuid = require("@atlaskit/media-common/isValidUuid");
30
31
  var _downloadUrl = require("@atlaskit/media-common/downloadUrl");
31
32
  var _mediaStore = require("../media-store");
32
33
  var _fileState2 = require("../../models/file-state");
@@ -36,7 +37,6 @@ var _uploader = require("../../uploader");
36
37
  var _fileStreamsCache = require("../../file-streams-cache");
37
38
  var _globalMediaEventEmitter = require("../../globalMediaEventEmitter");
38
39
  var _constants = require("../../constants");
39
- var _uuidValidate = _interopRequireDefault(require("uuid-validate"));
40
40
  var _createFileDataLoader = require("../../utils/createFileDataLoader");
41
41
  var _getMediaTypeFromUploadableFile = require("../../utils/getMediaTypeFromUploadableFile");
42
42
  var _overrideMediaTypeIfUnknown = require("../../utils/overrideMediaTypeIfUnknown");
@@ -465,7 +465,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
465
465
  occurrenceKey = options.occurrenceKey,
466
466
  includeHashForDuplicateFiles = options.includeHashForDuplicateFiles,
467
467
  forceRefresh = options.forceRefresh;
468
- if (!(0, _uuidValidate.default)(id)) {
468
+ if (!(0, _isValidUuid.isValidUuid)(id)) {
469
469
  var subject = (0, _createMediaSubject.createMediaSubject)();
470
470
  var err = new _error.FileFetcherError('invalidFileId', {
471
471
  id: id,
@@ -545,7 +545,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
545
545
  }, {
546
546
  key: "uploadExternal",
547
547
  value: function () {
548
- var _uploadExternal = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee0(url, collection, traceContext) {
548
+ var _uploadExternal = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee0(url, collection, traceContext, anonymizeFilename) {
549
549
  var _this3 = this;
550
550
  var uploadableFileUpfrontIds, id, occurrenceKey, subject, deferredBlob, preview, name, fileState;
551
551
  return _regenerator.default.wrap(function _callee0$(_context0) {
@@ -582,11 +582,11 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
582
582
  }
583
583
  }, _callee8);
584
584
  }));
585
- return function (_x17, _x18) {
585
+ return function (_x18, _x19) {
586
586
  return _ref0.apply(this, arguments);
587
587
  };
588
588
  }());
589
- name = (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
589
+ 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
590
590
  fileState = {
591
591
  status: 'processing',
592
592
  name: name,
@@ -662,7 +662,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
662
662
  }
663
663
  }, _callee9, null, [[10, 16]]);
664
664
  }));
665
- return function (_x19, _x20) {
665
+ return function (_x20, _x21) {
666
666
  return _ref1.apply(this, arguments);
667
667
  };
668
668
  }()));
@@ -672,7 +672,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
672
672
  }
673
673
  }, _callee0, this);
674
674
  }));
675
- function uploadExternal(_x14, _x15, _x16) {
675
+ function uploadExternal(_x14, _x15, _x16, _x17) {
676
676
  return _uploadExternal.apply(this, arguments);
677
677
  }
678
678
  return uploadExternal;
@@ -774,7 +774,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
774
774
  }
775
775
  }, _callee1, this);
776
776
  }));
777
- function downloadBinary(_x21) {
777
+ function downloadBinary(_x22) {
778
778
  return _downloadBinary.apply(this, arguments);
779
779
  }
780
780
  return downloadBinary;
@@ -817,7 +817,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
817
817
  }
818
818
  }, _callee10, this);
819
819
  }));
820
- function registerCopyIntent(_x22, _x23) {
820
+ function registerCopyIntent(_x23, _x24) {
821
821
  return _registerCopyIntent.apply(this, arguments);
822
822
  }
823
823
  return registerCopyIntent;
@@ -867,7 +867,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
867
867
  }
868
868
  }, _callee11);
869
869
  }));
870
- function copyFileWithToken(_x24, _x25, _x26) {
870
+ function copyFileWithToken(_x25, _x26, _x27) {
871
871
  return _copyFileWithToken.apply(this, arguments);
872
872
  }
873
873
  return copyFileWithToken;
@@ -896,7 +896,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
896
896
  }
897
897
  }, _callee12, this);
898
898
  }));
899
- function copyFileWithIntent(_x27, _x28, _x29) {
899
+ function copyFileWithIntent(_x28, _x29, _x30) {
900
900
  return _copyFileWithIntent.apply(this, arguments);
901
901
  }
902
902
  return copyFileWithIntent;
@@ -1047,7 +1047,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
1047
1047
  }
1048
1048
  }, _callee13, this, [[6, 40]]);
1049
1049
  }));
1050
- function copyFile(_x30, _x31) {
1050
+ function copyFile(_x31, _x32) {
1051
1051
  return _copyFile.apply(this, arguments);
1052
1052
  }
1053
1053
  return copyFile;
@@ -5,6 +5,7 @@ import { map } from 'rxjs/operators/map';
5
5
  import uuid from 'uuid/v4';
6
6
  import { authToOwner } from '@atlaskit/media-core';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { isValidUuid } from '@atlaskit/media-common/isValidUuid';
8
9
  import { downloadUrl } from '@atlaskit/media-common/downloadUrl';
9
10
  import { MediaStore as MediaApi } from '../media-store';
10
11
  import { isErrorFileState, isFinalFileState, isProcessingFileState, mapMediaFileToFileState, mapMediaItemToFileState } from '../../models/file-state';
@@ -14,7 +15,6 @@ import { uploadFile } from '../../uploader';
14
15
  import { getFileStreamsCache } from '../../file-streams-cache';
15
16
  import { globalMediaEventEmitter } from '../../globalMediaEventEmitter';
16
17
  import { RECENTS_COLLECTION } from '../../constants';
17
- import isValidId from 'uuid-validate';
18
18
  import { createFileDataloader } from '../../utils/createFileDataLoader';
19
19
  import { getMediaTypeFromUploadableFile } from '../../utils/getMediaTypeFromUploadableFile';
20
20
  import { overrideMediaTypeIfUnknown } from '../../utils/overrideMediaTypeIfUnknown';
@@ -277,7 +277,7 @@ export class FileFetcherImpl {
277
277
  includeHashForDuplicateFiles,
278
278
  forceRefresh
279
279
  } = options;
280
- if (!isValidId(id)) {
280
+ if (!isValidUuid(id)) {
281
281
  const subject = createMediaSubject();
282
282
  const err = new FileFetcherError('invalidFileId', {
283
283
  id,
@@ -341,7 +341,7 @@ export class FileFetcherImpl {
341
341
  deferredUploadId
342
342
  };
343
343
  }
344
- async uploadExternal(url, collection, traceContext) {
344
+ async uploadExternal(url, collection, traceContext, anonymizeFilename) {
345
345
  const uploadableFileUpfrontIds = this.generateUploadableFileUpfrontIds(collection, traceContext);
346
346
  const {
347
347
  id,
@@ -359,7 +359,7 @@ export class FileFetcherImpl {
359
359
  origin: 'remote'
360
360
  });
361
361
  });
362
- const name = fg('platform_media_upload_external_anonymize_filename') ? crypto.randomUUID() : url.split('/').pop() || '';
362
+ const name = anonymizeFilename && fg('platform_media_upload_external_anonymize_filename') ? crypto.randomUUID() : url.split('/').pop() || '';
363
363
  // we create a initial fileState with the minimum info that we have at this point
364
364
  const fileState = {
365
365
  status: 'processing',
@@ -11,6 +11,7 @@ import { map } from 'rxjs/operators/map';
11
11
  import uuid from 'uuid/v4';
12
12
  import { authToOwner } from '@atlaskit/media-core';
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
14
+ import { isValidUuid } from '@atlaskit/media-common/isValidUuid';
14
15
  import { downloadUrl } from '@atlaskit/media-common/downloadUrl';
15
16
  import { MediaStore as MediaApi } from '../media-store';
16
17
  import { isErrorFileState, isFinalFileState, isProcessingFileState, mapMediaFileToFileState, mapMediaItemToFileState } from '../../models/file-state';
@@ -20,7 +21,6 @@ import { uploadFile } from '../../uploader';
20
21
  import { getFileStreamsCache } from '../../file-streams-cache';
21
22
  import { globalMediaEventEmitter } from '../../globalMediaEventEmitter';
22
23
  import { RECENTS_COLLECTION } from '../../constants';
23
- import isValidId from 'uuid-validate';
24
24
  import { createFileDataloader } from '../../utils/createFileDataLoader';
25
25
  import { getMediaTypeFromUploadableFile } from '../../utils/getMediaTypeFromUploadableFile';
26
26
  import { overrideMediaTypeIfUnknown } from '../../utils/overrideMediaTypeIfUnknown';
@@ -448,7 +448,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
448
448
  occurrenceKey = options.occurrenceKey,
449
449
  includeHashForDuplicateFiles = options.includeHashForDuplicateFiles,
450
450
  forceRefresh = options.forceRefresh;
451
- if (!isValidId(id)) {
451
+ if (!isValidUuid(id)) {
452
452
  var subject = createMediaSubject();
453
453
  var err = new FileFetcherError('invalidFileId', {
454
454
  id: id,
@@ -528,7 +528,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
528
528
  }, {
529
529
  key: "uploadExternal",
530
530
  value: function () {
531
- var _uploadExternal = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee0(url, collection, traceContext) {
531
+ var _uploadExternal = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee0(url, collection, traceContext, anonymizeFilename) {
532
532
  var _this3 = this;
533
533
  var uploadableFileUpfrontIds, id, occurrenceKey, subject, deferredBlob, preview, name, fileState;
534
534
  return _regeneratorRuntime.wrap(function _callee0$(_context0) {
@@ -565,11 +565,11 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
565
565
  }
566
566
  }, _callee8);
567
567
  }));
568
- return function (_x17, _x18) {
568
+ return function (_x18, _x19) {
569
569
  return _ref0.apply(this, arguments);
570
570
  };
571
571
  }());
572
- name = 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
572
+ 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
573
573
  fileState = {
574
574
  status: 'processing',
575
575
  name: name,
@@ -645,7 +645,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
645
645
  }
646
646
  }, _callee9, null, [[10, 16]]);
647
647
  }));
648
- return function (_x19, _x20) {
648
+ return function (_x20, _x21) {
649
649
  return _ref1.apply(this, arguments);
650
650
  };
651
651
  }()));
@@ -655,7 +655,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
655
655
  }
656
656
  }, _callee0, this);
657
657
  }));
658
- function uploadExternal(_x14, _x15, _x16) {
658
+ function uploadExternal(_x14, _x15, _x16, _x17) {
659
659
  return _uploadExternal.apply(this, arguments);
660
660
  }
661
661
  return uploadExternal;
@@ -757,7 +757,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
757
757
  }
758
758
  }, _callee1, this);
759
759
  }));
760
- function downloadBinary(_x21) {
760
+ function downloadBinary(_x22) {
761
761
  return _downloadBinary.apply(this, arguments);
762
762
  }
763
763
  return downloadBinary;
@@ -800,7 +800,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
800
800
  }
801
801
  }, _callee10, this);
802
802
  }));
803
- function registerCopyIntent(_x22, _x23) {
803
+ function registerCopyIntent(_x23, _x24) {
804
804
  return _registerCopyIntent.apply(this, arguments);
805
805
  }
806
806
  return registerCopyIntent;
@@ -850,7 +850,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
850
850
  }
851
851
  }, _callee11);
852
852
  }));
853
- function copyFileWithToken(_x24, _x25, _x26) {
853
+ function copyFileWithToken(_x25, _x26, _x27) {
854
854
  return _copyFileWithToken.apply(this, arguments);
855
855
  }
856
856
  return copyFileWithToken;
@@ -879,7 +879,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
879
879
  }
880
880
  }, _callee12, this);
881
881
  }));
882
- function copyFileWithIntent(_x27, _x28, _x29) {
882
+ function copyFileWithIntent(_x28, _x29, _x30) {
883
883
  return _copyFileWithIntent.apply(this, arguments);
884
884
  }
885
885
  return copyFileWithIntent;
@@ -1030,7 +1030,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
1030
1030
  }
1031
1031
  }, _callee13, this, [[6, 40]]);
1032
1032
  }));
1033
- function copyFile(_x30, _x31) {
1033
+ function copyFile(_x31, _x32) {
1034
1034
  return _copyFile.apply(this, arguments);
1035
1035
  }
1036
1036
  return copyFile;
@@ -1,4 +1,5 @@
1
1
  import { type AuthProvider } from '@atlaskit/media-core';
2
+ import { type MediaTraceContext } from '@atlaskit/media-common';
2
3
  import { type MediaFileArtifacts } from '@atlaskit/media-state';
3
4
  import { MediaStore as MediaApi, type MediaStoreCopyFileWithTokenParams, type TouchedFiles, type TouchFileDescriptor } from '../media-store';
4
5
  import { type GetFileOptions } from '../../models/file-state';
@@ -7,7 +8,6 @@ import { type UploadableFile, type UploadableFileUpfrontIds } from '../../upload
7
8
  import { type UploadController } from '../../upload-controller';
8
9
  import { type MediaSubscribable } from '../../utils/mediaSubscribable';
9
10
  import { type Dimensions } from '../../utils/getDimensionsFromBlob';
10
- import { type MediaTraceContext } from '@atlaskit/media-common';
11
11
  import { type FilePreview, type FileState, type MediaStore } from '@atlaskit/media-state';
12
12
  import { type UploadArtifactParams } from '../media-store/types';
13
13
  export type { FileFetcherErrorAttributes, FileFetcherErrorReason } from './error';
@@ -36,7 +36,7 @@ export interface FileFetcher {
36
36
  getArtifactURL(artifacts: MediaFileArtifacts, artifactName: keyof MediaFileArtifacts, collectionName?: string): Promise<string>;
37
37
  touchFiles(descriptors: TouchFileDescriptor[], collection?: string, traceContext?: MediaTraceContext): Promise<TouchedFiles>;
38
38
  upload(file: UploadableFile, controller?: UploadController, uploadableFileUpfrontIds?: UploadableFileUpfrontIds, traceContext?: MediaTraceContext): MediaSubscribable;
39
- uploadExternal(url: string, collection?: string, traceContext?: MediaTraceContext): Promise<ExternalUploadPayload>;
39
+ uploadExternal(url: string, collection?: string, traceContext?: MediaTraceContext, anonymizeFilename?: boolean): Promise<ExternalUploadPayload>;
40
40
  downloadBinary(id: string, name?: string, collectionName?: string, traceContext?: MediaTraceContext): Promise<void>;
41
41
  getCurrentState(id: string, options?: GetFileOptions): Promise<FileState>;
42
42
  copyFile(source: CopySourceFile, destination: CopyDestination, options?: CopyFileOptions, traceContext?: MediaTraceContext): Promise<MediaFile>;
@@ -67,7 +67,7 @@ export declare class FileFetcherImpl implements FileFetcher {
67
67
  private createDownloadFileStream;
68
68
  touchFiles(descriptors: TouchFileDescriptor[], collection?: string, traceContext?: MediaTraceContext): Promise<TouchedFiles>;
69
69
  private generateUploadableFileUpfrontIds;
70
- uploadExternal(url: string, collection?: string, traceContext?: MediaTraceContext): Promise<ExternalUploadPayload>;
70
+ uploadExternal(url: string, collection?: string, traceContext?: MediaTraceContext, anonymizeFilename?: boolean): Promise<ExternalUploadPayload>;
71
71
  private getUploadingFileStateBase;
72
72
  upload(file: UploadableFile, controller?: UploadController, uploadableFileUpfrontIds?: UploadableFileUpfrontIds, traceContext?: MediaTraceContext): MediaSubscribable;
73
73
  downloadBinary(id: string, name?: string, collectionName?: string, traceContext?: MediaTraceContext): Promise<void>;
@@ -18,7 +18,7 @@ export declare class UploaderError extends BaseMediaClientError<UploaderErrorRea
18
18
  constructor(reason: UploaderErrorReason, metadata: UploaderErrorMetadata);
19
19
  /** Will be deprecated. Use the properties `reason` and `metadata` instead */
20
20
  get attributes(): {
21
- reason: "fileSizeExceedsLimit";
21
+ reason: 'fileSizeExceedsLimit';
22
22
  id: string;
23
23
  collectionName: string | undefined;
24
24
  occurrenceKey: string | undefined;
@@ -4,7 +4,7 @@ export declare class PollingError extends BaseMediaClientError<PollingErrorReaso
4
4
  constructor(reason: PollingErrorReason, metadata: PollingErrorMetadata);
5
5
  /** Will be deprecated. Use the properties `reason` and `metadata` instead */
6
6
  get attributes(): {
7
- reason: "pollingMaxAttemptsExceeded";
7
+ reason: 'pollingMaxAttemptsExceeded';
8
8
  attempts: number;
9
9
  };
10
10
  }
@@ -1,4 +1,5 @@
1
1
  import { type AuthProvider } from '@atlaskit/media-core';
2
+ import { type MediaTraceContext } from '@atlaskit/media-common';
2
3
  import { type MediaFileArtifacts } from '@atlaskit/media-state';
3
4
  import { MediaStore as MediaApi, type MediaStoreCopyFileWithTokenParams, type TouchedFiles, type TouchFileDescriptor } from '../media-store';
4
5
  import { type GetFileOptions } from '../../models/file-state';
@@ -7,7 +8,6 @@ import { type UploadableFile, type UploadableFileUpfrontIds } from '../../upload
7
8
  import { type UploadController } from '../../upload-controller';
8
9
  import { type MediaSubscribable } from '../../utils/mediaSubscribable';
9
10
  import { type Dimensions } from '../../utils/getDimensionsFromBlob';
10
- import { type MediaTraceContext } from '@atlaskit/media-common';
11
11
  import { type FilePreview, type FileState, type MediaStore } from '@atlaskit/media-state';
12
12
  import { type UploadArtifactParams } from '../media-store/types';
13
13
  export type { FileFetcherErrorAttributes, FileFetcherErrorReason } from './error';
@@ -36,7 +36,7 @@ export interface FileFetcher {
36
36
  getArtifactURL(artifacts: MediaFileArtifacts, artifactName: keyof MediaFileArtifacts, collectionName?: string): Promise<string>;
37
37
  touchFiles(descriptors: TouchFileDescriptor[], collection?: string, traceContext?: MediaTraceContext): Promise<TouchedFiles>;
38
38
  upload(file: UploadableFile, controller?: UploadController, uploadableFileUpfrontIds?: UploadableFileUpfrontIds, traceContext?: MediaTraceContext): MediaSubscribable;
39
- uploadExternal(url: string, collection?: string, traceContext?: MediaTraceContext): Promise<ExternalUploadPayload>;
39
+ uploadExternal(url: string, collection?: string, traceContext?: MediaTraceContext, anonymizeFilename?: boolean): Promise<ExternalUploadPayload>;
40
40
  downloadBinary(id: string, name?: string, collectionName?: string, traceContext?: MediaTraceContext): Promise<void>;
41
41
  getCurrentState(id: string, options?: GetFileOptions): Promise<FileState>;
42
42
  copyFile(source: CopySourceFile, destination: CopyDestination, options?: CopyFileOptions, traceContext?: MediaTraceContext): Promise<MediaFile>;
@@ -67,7 +67,7 @@ export declare class FileFetcherImpl implements FileFetcher {
67
67
  private createDownloadFileStream;
68
68
  touchFiles(descriptors: TouchFileDescriptor[], collection?: string, traceContext?: MediaTraceContext): Promise<TouchedFiles>;
69
69
  private generateUploadableFileUpfrontIds;
70
- uploadExternal(url: string, collection?: string, traceContext?: MediaTraceContext): Promise<ExternalUploadPayload>;
70
+ uploadExternal(url: string, collection?: string, traceContext?: MediaTraceContext, anonymizeFilename?: boolean): Promise<ExternalUploadPayload>;
71
71
  private getUploadingFileStateBase;
72
72
  upload(file: UploadableFile, controller?: UploadController, uploadableFileUpfrontIds?: UploadableFileUpfrontIds, traceContext?: MediaTraceContext): MediaSubscribable;
73
73
  downloadBinary(id: string, name?: string, collectionName?: string, traceContext?: MediaTraceContext): Promise<void>;
@@ -18,7 +18,7 @@ export declare class UploaderError extends BaseMediaClientError<UploaderErrorRea
18
18
  constructor(reason: UploaderErrorReason, metadata: UploaderErrorMetadata);
19
19
  /** Will be deprecated. Use the properties `reason` and `metadata` instead */
20
20
  get attributes(): {
21
- reason: "fileSizeExceedsLimit";
21
+ reason: 'fileSizeExceedsLimit';
22
22
  id: string;
23
23
  collectionName: string | undefined;
24
24
  occurrenceKey: string | undefined;
@@ -4,7 +4,7 @@ export declare class PollingError extends BaseMediaClientError<PollingErrorReaso
4
4
  constructor(reason: PollingErrorReason, metadata: PollingErrorMetadata);
5
5
  /** Will be deprecated. Use the properties `reason` and `metadata` instead */
6
6
  get attributes(): {
7
- reason: "pollingMaxAttemptsExceeded";
7
+ reason: 'pollingMaxAttemptsExceeded';
8
8
  attempts: number;
9
9
  };
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-client",
3
- "version": "36.0.6",
3
+ "version": "36.1.1",
4
4
  "description": "Media API Web Client Library",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@atlaskit/atlassian-context": "^0.8.0",
33
- "@atlaskit/chunkinator": "^7.0.0",
34
- "@atlaskit/media-common": "^13.0.0",
33
+ "@atlaskit/chunkinator": "^7.1.0",
34
+ "@atlaskit/media-common": "^13.2.0",
35
35
  "@atlaskit/platform-feature-flags": "^1.1.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "dataloader": "^2.1.0",
@@ -42,23 +42,21 @@
42
42
  "rusha": "^0.8.13",
43
43
  "rxjs": "^5.5.0",
44
44
  "uuid": "^3.1.0",
45
- "uuid-validate": "^0.0.3",
46
45
  "xstate": "4.20.0"
47
46
  },
48
47
  "peerDependencies": {
49
48
  "@atlaskit/media-core": "^37.0.0",
50
- "@atlaskit/media-state": "^2.0.0"
49
+ "@atlaskit/media-state": "^2.1.0"
51
50
  },
52
51
  "devDependencies": {
53
52
  "@atlaskit/media-core": "^37.0.0",
54
- "@atlaskit/media-state": "^2.0.0",
53
+ "@atlaskit/media-state": "^2.1.0",
55
54
  "@atlaskit/ssr": "workspace:^",
56
- "@atlaskit/tokens": "^12.0.0",
55
+ "@atlaskit/tokens": "^13.0.0",
57
56
  "@atlassian/a11y-jest-testing": "^0.11.0",
58
57
  "@atlassian/feature-flags-test-utils": "^1.0.0",
59
58
  "@emotion/react": "^11.7.1",
60
59
  "@types/deep-equal": "^1.0.1",
61
- "@types/uuid-validate": "^0.0.2",
62
60
  "fetch-mock": "^8.0.0",
63
61
  "react": "^18.2.0",
64
62
  "react-dom": "^18.2.0"