@atlaskit/media-client 22.0.5 → 23.0.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 +16 -0
- package/dist/cjs/models/media.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/models/media.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/models/media.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/models/media.d.ts +2 -2
- package/dist/types-ts4.5/models/media.d.ts +2 -2
- package/package.json +3 -3
- package/report.api.md +4 -6
- package/tmp/api-report-tmp.d.ts +1325 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/media-client
|
|
2
2
|
|
|
3
|
+
## 23.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 23.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [`eedf90fbaa9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eedf90fbaa9) - 'isPreviewableType' no longer requires feature flags to be passed as an argument since we are removing the new card experience feature flag
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 22.0.5
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/models/media.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.isPreviewableType = exports.DATA_UNIT = void 0;
|
|
|
7
7
|
// Warning! You can't add new media file processing status!
|
|
8
8
|
// See packages/media/media-core/src/__tests__/cache-backward-compatibility.spec.ts
|
|
9
9
|
|
|
10
|
-
var isPreviewableType = function isPreviewableType(type
|
|
10
|
+
var isPreviewableType = function isPreviewableType(type) {
|
|
11
11
|
var defaultPreviewableTypes = ['audio', 'video', 'image', 'doc'];
|
|
12
12
|
return defaultPreviewableTypes.indexOf(type) > -1;
|
|
13
13
|
};
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Warning! You can't add new media file processing status!
|
|
2
2
|
// See packages/media/media-core/src/__tests__/cache-backward-compatibility.spec.ts
|
|
3
|
-
export const isPreviewableType =
|
|
3
|
+
export const isPreviewableType = type => {
|
|
4
4
|
const defaultPreviewableTypes = ['audio', 'video', 'image', 'doc'];
|
|
5
5
|
return defaultPreviewableTypes.indexOf(type) > -1;
|
|
6
6
|
};
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/models/media.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Warning! You can't add new media file processing status!
|
|
2
2
|
// See packages/media/media-core/src/__tests__/cache-backward-compatibility.spec.ts
|
|
3
|
-
export var isPreviewableType = function isPreviewableType(type
|
|
3
|
+
export var isPreviewableType = function isPreviewableType(type) {
|
|
4
4
|
var defaultPreviewableTypes = ['audio', 'video', 'image', 'doc'];
|
|
5
5
|
return defaultPreviewableTypes.indexOf(type) > -1;
|
|
6
6
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MediaTraceContext,
|
|
1
|
+
import { MediaTraceContext, MediaType } from '@atlaskit/media-common';
|
|
2
2
|
import type { MediaFileArtifacts } from './artifacts';
|
|
3
3
|
export type MediaFileProcessingStatus = 'pending' | 'succeeded' | 'failed';
|
|
4
4
|
export type { MediaType } from '@atlaskit/media-common';
|
|
5
|
-
export declare const isPreviewableType: (type: MediaType
|
|
5
|
+
export declare const isPreviewableType: (type: MediaType) => boolean;
|
|
6
6
|
export type MediaFile = {
|
|
7
7
|
readonly id: string;
|
|
8
8
|
readonly mediaType: MediaType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MediaTraceContext,
|
|
1
|
+
import { MediaTraceContext, MediaType } from '@atlaskit/media-common';
|
|
2
2
|
import type { MediaFileArtifacts } from './artifacts';
|
|
3
3
|
export type MediaFileProcessingStatus = 'pending' | 'succeeded' | 'failed';
|
|
4
4
|
export type { MediaType } from '@atlaskit/media-common';
|
|
5
|
-
export declare const isPreviewableType: (type: MediaType
|
|
5
|
+
export declare const isPreviewableType: (type: MediaType) => boolean;
|
|
6
6
|
export type MediaFile = {
|
|
7
7
|
readonly id: string;
|
|
8
8
|
readonly mediaType: MediaType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.1",
|
|
4
4
|
"description": "Media API Web Client Library",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"atlassian": {
|
|
30
30
|
"team": "Media Experience",
|
|
31
31
|
"inPublicMirror": true,
|
|
32
|
-
"releaseModel": "
|
|
32
|
+
"releaseModel": "continuous",
|
|
33
33
|
"website": {
|
|
34
34
|
"name": "Media Client"
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/chunkinator": "^4.2.0",
|
|
39
|
-
"@atlaskit/media-common": "^
|
|
39
|
+
"@atlaskit/media-common": "^7.0.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
41
|
"dataloader": "^2.0.0",
|
|
42
42
|
"deep-equal": "^1.0.1",
|
package/report.api.md
CHANGED
|
@@ -614,10 +614,7 @@ export const isPreviewableFileState: (
|
|
|
614
614
|
PreviewableFileState;
|
|
615
615
|
|
|
616
616
|
// @public (undocumented)
|
|
617
|
-
export const isPreviewableType: (
|
|
618
|
-
type: MediaType,
|
|
619
|
-
featureFlags?: MediaFeatureFlags,
|
|
620
|
-
) => boolean;
|
|
617
|
+
export const isPreviewableType: (type: MediaType) => boolean;
|
|
621
618
|
|
|
622
619
|
// @public (undocumented)
|
|
623
620
|
export const isProcessedFileState: (
|
|
@@ -1038,8 +1035,8 @@ export type MediaStoreCreateFileFromUploadBody = {
|
|
|
1038
1035
|
|
|
1039
1036
|
// @public (undocumented)
|
|
1040
1037
|
export type MediaStoreCreateFileFromUploadConditions = {
|
|
1041
|
-
readonly hash
|
|
1042
|
-
readonly size
|
|
1038
|
+
readonly hash?: string;
|
|
1039
|
+
readonly size?: number;
|
|
1043
1040
|
};
|
|
1044
1041
|
|
|
1045
1042
|
// @public (undocumented)
|
|
@@ -1554,6 +1551,7 @@ export type UploadableFile = {
|
|
|
1554
1551
|
name?: string;
|
|
1555
1552
|
mimeType?: string;
|
|
1556
1553
|
collection?: string;
|
|
1554
|
+
size?: number;
|
|
1557
1555
|
};
|
|
1558
1556
|
|
|
1559
1557
|
// @public (undocumented)
|