@atlaskit/media-client 36.0.5 → 36.1.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/CHANGELOG.md +26 -0
- package/dist/cjs/client/file-fetcher/index.js +4 -3
- package/dist/es2019/client/file-fetcher/index.js +4 -3
- package/dist/esm/client/file-fetcher/index.js +4 -3
- package/dist/types/client/file-fetcher/index.d.ts +1 -1
- package/dist/types/uploader/error.d.ts +1 -1
- package/dist/types/utils/createFileDataLoader.d.ts +1 -1
- package/dist/types/utils/polling/errors.d.ts +1 -1
- package/dist/types/utils/request/errors.d.ts +4 -3
- package/dist/types-ts4.5/client/file-fetcher/index.d.ts +1 -1
- package/dist/types-ts4.5/uploader/error.d.ts +1 -1
- package/dist/types-ts4.5/utils/createFileDataLoader.d.ts +1 -1
- package/dist/types-ts4.5/utils/polling/errors.d.ts +1 -1
- package/dist/types-ts4.5/utils/request/errors.d.ts +4 -3
- package/example-helpers/styles.ts +13 -13
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/media-client
|
|
2
2
|
|
|
3
|
+
## 36.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`5653e8be24c05`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5653e8be24c05) -
|
|
8
|
+
Replace `uuid-validate` with an inlined, browser-only `isValidUuid` helper in
|
|
9
|
+
`@atlaskit/media-common`. Removes the `uuid-validate` dependency from `media-card`,
|
|
10
|
+
`media-client`, `media-common` and `media-picker` so consumers no longer pull in the Node `Buffer`
|
|
11
|
+
polyfill purely for a `Buffer.isBuffer` check that always returned `false` in the browser.
|
|
12
|
+
|
|
13
|
+
Adds a new `@atlaskit/media-common/isValidUuid` subpath export so consumers can import the helper
|
|
14
|
+
without going through the package's barrel file (in line with the Debarreling Platform Packages
|
|
15
|
+
initiative).
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
21
|
+
## 36.0.6
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [`4a6982674a571`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4a6982674a571) -
|
|
26
|
+
Anonymize filename in uploadExternal behind platform_media_upload_external_anonymize_filename
|
|
27
|
+
feature flag
|
|
28
|
+
|
|
3
29
|
## 36.0.5
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -26,6 +26,8 @@ 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
|
+
var _isValidUuid = require("@atlaskit/media-common/isValidUuid");
|
|
29
31
|
var _downloadUrl = require("@atlaskit/media-common/downloadUrl");
|
|
30
32
|
var _mediaStore = require("../media-store");
|
|
31
33
|
var _fileState2 = require("../../models/file-state");
|
|
@@ -35,7 +37,6 @@ var _uploader = require("../../uploader");
|
|
|
35
37
|
var _fileStreamsCache = require("../../file-streams-cache");
|
|
36
38
|
var _globalMediaEventEmitter = require("../../globalMediaEventEmitter");
|
|
37
39
|
var _constants = require("../../constants");
|
|
38
|
-
var _uuidValidate = _interopRequireDefault(require("uuid-validate"));
|
|
39
40
|
var _createFileDataLoader = require("../../utils/createFileDataLoader");
|
|
40
41
|
var _getMediaTypeFromUploadableFile = require("../../utils/getMediaTypeFromUploadableFile");
|
|
41
42
|
var _overrideMediaTypeIfUnknown = require("../../utils/overrideMediaTypeIfUnknown");
|
|
@@ -464,7 +465,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
464
465
|
occurrenceKey = options.occurrenceKey,
|
|
465
466
|
includeHashForDuplicateFiles = options.includeHashForDuplicateFiles,
|
|
466
467
|
forceRefresh = options.forceRefresh;
|
|
467
|
-
if (!(0,
|
|
468
|
+
if (!(0, _isValidUuid.isValidUuid)(id)) {
|
|
468
469
|
var subject = (0, _createMediaSubject.createMediaSubject)();
|
|
469
470
|
var err = new _error.FileFetcherError('invalidFileId', {
|
|
470
471
|
id: id,
|
|
@@ -585,7 +586,7 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
585
586
|
return _ref0.apply(this, arguments);
|
|
586
587
|
};
|
|
587
588
|
}());
|
|
588
|
-
name = url.split('/').pop() || ''; // we create a initial fileState with the minimum info that we have at this point
|
|
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
590
|
fileState = {
|
|
590
591
|
status: 'processing',
|
|
591
592
|
name: name,
|
|
@@ -4,6 +4,8 @@ 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
|
+
import { isValidUuid } from '@atlaskit/media-common/isValidUuid';
|
|
7
9
|
import { downloadUrl } from '@atlaskit/media-common/downloadUrl';
|
|
8
10
|
import { MediaStore as MediaApi } from '../media-store';
|
|
9
11
|
import { isErrorFileState, isFinalFileState, isProcessingFileState, mapMediaFileToFileState, mapMediaItemToFileState } from '../../models/file-state';
|
|
@@ -13,7 +15,6 @@ import { uploadFile } from '../../uploader';
|
|
|
13
15
|
import { getFileStreamsCache } from '../../file-streams-cache';
|
|
14
16
|
import { globalMediaEventEmitter } from '../../globalMediaEventEmitter';
|
|
15
17
|
import { RECENTS_COLLECTION } from '../../constants';
|
|
16
|
-
import isValidId from 'uuid-validate';
|
|
17
18
|
import { createFileDataloader } from '../../utils/createFileDataLoader';
|
|
18
19
|
import { getMediaTypeFromUploadableFile } from '../../utils/getMediaTypeFromUploadableFile';
|
|
19
20
|
import { overrideMediaTypeIfUnknown } from '../../utils/overrideMediaTypeIfUnknown';
|
|
@@ -276,7 +277,7 @@ export class FileFetcherImpl {
|
|
|
276
277
|
includeHashForDuplicateFiles,
|
|
277
278
|
forceRefresh
|
|
278
279
|
} = options;
|
|
279
|
-
if (!
|
|
280
|
+
if (!isValidUuid(id)) {
|
|
280
281
|
const subject = createMediaSubject();
|
|
281
282
|
const err = new FileFetcherError('invalidFileId', {
|
|
282
283
|
id,
|
|
@@ -358,7 +359,7 @@ export class FileFetcherImpl {
|
|
|
358
359
|
origin: 'remote'
|
|
359
360
|
});
|
|
360
361
|
});
|
|
361
|
-
const name = url.split('/').pop() || '';
|
|
362
|
+
const name = fg('platform_media_upload_external_anonymize_filename') ? crypto.randomUUID() : url.split('/').pop() || '';
|
|
362
363
|
// we create a initial fileState with the minimum info that we have at this point
|
|
363
364
|
const fileState = {
|
|
364
365
|
status: 'processing',
|
|
@@ -10,6 +10,8 @@ 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
|
+
import { isValidUuid } from '@atlaskit/media-common/isValidUuid';
|
|
13
15
|
import { downloadUrl } from '@atlaskit/media-common/downloadUrl';
|
|
14
16
|
import { MediaStore as MediaApi } from '../media-store';
|
|
15
17
|
import { isErrorFileState, isFinalFileState, isProcessingFileState, mapMediaFileToFileState, mapMediaItemToFileState } from '../../models/file-state';
|
|
@@ -19,7 +21,6 @@ import { uploadFile } from '../../uploader';
|
|
|
19
21
|
import { getFileStreamsCache } from '../../file-streams-cache';
|
|
20
22
|
import { globalMediaEventEmitter } from '../../globalMediaEventEmitter';
|
|
21
23
|
import { RECENTS_COLLECTION } from '../../constants';
|
|
22
|
-
import isValidId from 'uuid-validate';
|
|
23
24
|
import { createFileDataloader } from '../../utils/createFileDataLoader';
|
|
24
25
|
import { getMediaTypeFromUploadableFile } from '../../utils/getMediaTypeFromUploadableFile';
|
|
25
26
|
import { overrideMediaTypeIfUnknown } from '../../utils/overrideMediaTypeIfUnknown';
|
|
@@ -447,7 +448,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
447
448
|
occurrenceKey = options.occurrenceKey,
|
|
448
449
|
includeHashForDuplicateFiles = options.includeHashForDuplicateFiles,
|
|
449
450
|
forceRefresh = options.forceRefresh;
|
|
450
|
-
if (!
|
|
451
|
+
if (!isValidUuid(id)) {
|
|
451
452
|
var subject = createMediaSubject();
|
|
452
453
|
var err = new FileFetcherError('invalidFileId', {
|
|
453
454
|
id: id,
|
|
@@ -568,7 +569,7 @@ export var FileFetcherImpl = /*#__PURE__*/function () {
|
|
|
568
569
|
return _ref0.apply(this, arguments);
|
|
569
570
|
};
|
|
570
571
|
}());
|
|
571
|
-
name = url.split('/').pop() || ''; // we create a initial fileState with the minimum info that we have at this point
|
|
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
573
|
fileState = {
|
|
573
574
|
status: 'processing',
|
|
574
575
|
name: name,
|
|
@@ -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';
|
|
@@ -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:
|
|
21
|
+
reason: 'fileSizeExceedsLimit';
|
|
22
22
|
id: string;
|
|
23
23
|
collectionName: string | undefined;
|
|
24
24
|
occurrenceKey: string | undefined;
|
|
@@ -27,4 +27,4 @@ export type FileIdsByCollection = {
|
|
|
27
27
|
* @param mediaStore instance of MediaStore
|
|
28
28
|
*/
|
|
29
29
|
export declare function createBatchLoadingFunc(mediaStore: MediaStore): (keys: ReadonlyArray<DataloaderKey>) => Promise<Array<DataloaderResult | Error>>;
|
|
30
|
-
export declare function createFileDataloader(mediaStore: MediaStore): Dataloader<DataloaderKey, DataloaderResult
|
|
30
|
+
export declare function createFileDataloader(mediaStore: MediaStore): Dataloader<DataloaderKey, DataloaderResult>;
|
|
@@ -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:
|
|
7
|
+
reason: 'pollingMaxAttemptsExceeded';
|
|
8
8
|
attempts: number;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import type { MediaTraceContext } from '@atlaskit/media-common';
|
|
1
2
|
import { BaseMediaClientError } from '../../models/errors';
|
|
2
|
-
import { type RequestErrorReason, type RequestErrorMetadata, type RequestErrorAttributes } from './types';
|
|
3
|
+
import { type RequestErrorReason, type RequestErrorMetadata, type RequestErrorAttributes, type RequestMethod } from './types';
|
|
3
4
|
export declare class RequestError extends BaseMediaClientError<RequestErrorReason, RequestErrorMetadata | undefined, Error | undefined, RequestErrorAttributes> {
|
|
4
5
|
constructor(reason: RequestErrorReason, metadata?: RequestErrorMetadata, innerError?: Error);
|
|
5
6
|
/** Will be deprecated. Use the properties `reason` and `metadata` instead */
|
|
6
7
|
get attributes(): {
|
|
7
8
|
reason: RequestErrorReason;
|
|
8
|
-
method:
|
|
9
|
+
method: RequestMethod | undefined;
|
|
9
10
|
endpoint: string | undefined;
|
|
10
11
|
mediaRegion: string | undefined;
|
|
11
12
|
mediaEnv: string | undefined;
|
|
@@ -13,7 +14,7 @@ export declare class RequestError extends BaseMediaClientError<RequestErrorReaso
|
|
|
13
14
|
clientExhaustedRetries: boolean | undefined;
|
|
14
15
|
statusCode: number | undefined;
|
|
15
16
|
metadata: {
|
|
16
|
-
traceContext:
|
|
17
|
+
traceContext: MediaTraceContext | undefined;
|
|
17
18
|
};
|
|
18
19
|
innerError: Error | undefined;
|
|
19
20
|
};
|
|
@@ -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';
|
|
@@ -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:
|
|
21
|
+
reason: 'fileSizeExceedsLimit';
|
|
22
22
|
id: string;
|
|
23
23
|
collectionName: string | undefined;
|
|
24
24
|
occurrenceKey: string | undefined;
|
|
@@ -27,4 +27,4 @@ export type FileIdsByCollection = {
|
|
|
27
27
|
* @param mediaStore instance of MediaStore
|
|
28
28
|
*/
|
|
29
29
|
export declare function createBatchLoadingFunc(mediaStore: MediaStore): (keys: ReadonlyArray<DataloaderKey>) => Promise<Array<DataloaderResult | Error>>;
|
|
30
|
-
export declare function createFileDataloader(mediaStore: MediaStore): Dataloader<DataloaderKey, DataloaderResult
|
|
30
|
+
export declare function createFileDataloader(mediaStore: MediaStore): Dataloader<DataloaderKey, DataloaderResult>;
|
|
@@ -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:
|
|
7
|
+
reason: 'pollingMaxAttemptsExceeded';
|
|
8
8
|
attempts: number;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import type { MediaTraceContext } from '@atlaskit/media-common';
|
|
1
2
|
import { BaseMediaClientError } from '../../models/errors';
|
|
2
|
-
import { type RequestErrorReason, type RequestErrorMetadata, type RequestErrorAttributes } from './types';
|
|
3
|
+
import { type RequestErrorReason, type RequestErrorMetadata, type RequestErrorAttributes, type RequestMethod } from './types';
|
|
3
4
|
export declare class RequestError extends BaseMediaClientError<RequestErrorReason, RequestErrorMetadata | undefined, Error | undefined, RequestErrorAttributes> {
|
|
4
5
|
constructor(reason: RequestErrorReason, metadata?: RequestErrorMetadata, innerError?: Error);
|
|
5
6
|
/** Will be deprecated. Use the properties `reason` and `metadata` instead */
|
|
6
7
|
get attributes(): {
|
|
7
8
|
reason: RequestErrorReason;
|
|
8
|
-
method:
|
|
9
|
+
method: RequestMethod | undefined;
|
|
9
10
|
endpoint: string | undefined;
|
|
10
11
|
mediaRegion: string | undefined;
|
|
11
12
|
mediaEnv: string | undefined;
|
|
@@ -13,7 +14,7 @@ export declare class RequestError extends BaseMediaClientError<RequestErrorReaso
|
|
|
13
14
|
clientExhaustedRetries: boolean | undefined;
|
|
14
15
|
statusCode: number | undefined;
|
|
15
16
|
metadata: {
|
|
16
|
-
traceContext:
|
|
17
|
+
traceContext: MediaTraceContext | undefined;
|
|
17
18
|
};
|
|
18
19
|
innerError: Error | undefined;
|
|
19
20
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { token } from '@atlaskit/tokens';
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
|
-
import { css } from '@emotion/react';
|
|
3
|
+
import { css, type SerializedStyles } from '@emotion/react';
|
|
4
4
|
import { type FileStatus } from '../src';
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
|
-
export const wrapperStyles = css({
|
|
7
|
+
export const wrapperStyles: SerializedStyles = css({
|
|
8
8
|
display: 'flex',
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
|
-
export const imagePreviewStyles = css({
|
|
12
|
+
export const imagePreviewStyles: SerializedStyles = css({
|
|
13
13
|
width: '300px',
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
17
|
-
export const previewWrapperStyles = css({
|
|
17
|
+
export const previewWrapperStyles: SerializedStyles = css({
|
|
18
18
|
flex: 1,
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
22
|
-
export const metadataWrapperStyles = css({
|
|
22
|
+
export const metadataWrapperStyles: SerializedStyles = css({
|
|
23
23
|
width: '400px',
|
|
24
24
|
overflow: 'scroll',
|
|
25
25
|
flex: 1,
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
29
|
-
export const fileInputStyles = css({
|
|
29
|
+
export const fileInputStyles: SerializedStyles = css({
|
|
30
30
|
color: 'transparent',
|
|
31
31
|
});
|
|
32
32
|
|
|
@@ -44,7 +44,7 @@ const statusColorMap: { [key in FileStatus]: string } = {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
47
|
-
export const fileWrapperStyles = (status: FileStatus) =>
|
|
47
|
+
export const fileWrapperStyles = (status: FileStatus): SerializedStyles =>
|
|
48
48
|
css({
|
|
49
49
|
padding: '5px',
|
|
50
50
|
margin: '10px',
|
|
@@ -55,7 +55,7 @@ export const fileWrapperStyles = (status: FileStatus) =>
|
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
58
|
-
export const cardsWrapperStyles = css({
|
|
58
|
+
export const cardsWrapperStyles: SerializedStyles = css({
|
|
59
59
|
width: '900px',
|
|
60
60
|
padding: '10px',
|
|
61
61
|
borderRight: `${token('border.width', '1px')} solid ${token('color.border')}`,
|
|
@@ -73,7 +73,7 @@ export const cardsWrapperStyles = css({
|
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
76
|
-
export const headerStyles = css({
|
|
76
|
+
export const headerStyles: SerializedStyles = css({
|
|
77
77
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
78
78
|
button: {
|
|
79
79
|
margin: '5px',
|
|
@@ -81,7 +81,7 @@ export const headerStyles = css({
|
|
|
81
81
|
});
|
|
82
82
|
|
|
83
83
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
84
|
-
export const fileStateWrapperStyles = css({
|
|
84
|
+
export const fileStateWrapperStyles: SerializedStyles = css({
|
|
85
85
|
border: `${token('border.width', '1px')} solid ${token('color.border')}`,
|
|
86
86
|
margin: '10px',
|
|
87
87
|
padding: '10px',
|
|
@@ -89,7 +89,7 @@ export const fileStateWrapperStyles = css({
|
|
|
89
89
|
});
|
|
90
90
|
|
|
91
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
92
|
-
export const uploadTouchWrapperStyles = css({
|
|
92
|
+
export const uploadTouchWrapperStyles: SerializedStyles = css({
|
|
93
93
|
height: '100%',
|
|
94
94
|
width: '100%',
|
|
95
95
|
display: 'flex',
|
|
@@ -101,7 +101,7 @@ export const uploadTouchWrapperStyles = css({
|
|
|
101
101
|
});
|
|
102
102
|
|
|
103
103
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
104
|
-
export const rowStyles = css({
|
|
104
|
+
export const rowStyles: SerializedStyles = css({
|
|
105
105
|
flexDirection: 'row',
|
|
106
106
|
justifyContent: 'center',
|
|
107
107
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -111,7 +111,7 @@ export const rowStyles = css({
|
|
|
111
111
|
});
|
|
112
112
|
|
|
113
113
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
114
|
-
export const responseStyles = css({
|
|
114
|
+
export const responseStyles: SerializedStyles = css({
|
|
115
115
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
116
116
|
fontFamily: 'monospace',
|
|
117
117
|
whiteSpace: 'pre',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-client",
|
|
3
|
-
"version": "36.0
|
|
3
|
+
"version": "36.1.0",
|
|
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.
|
|
34
|
-
"@atlaskit/media-common": "^13.
|
|
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.
|
|
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.
|
|
53
|
+
"@atlaskit/media-state": "^2.1.0",
|
|
55
54
|
"@atlaskit/ssr": "workspace:^",
|
|
56
|
-
"@atlaskit/tokens": "^
|
|
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"
|
|
@@ -77,6 +75,9 @@
|
|
|
77
75
|
}
|
|
78
76
|
},
|
|
79
77
|
"platform-feature-flags": {
|
|
78
|
+
"platform_media_upload_external_anonymize_filename": {
|
|
79
|
+
"type": "boolean"
|
|
80
|
+
},
|
|
80
81
|
"platform_media_cdn_single_host": {
|
|
81
82
|
"type": "boolean"
|
|
82
83
|
},
|