@atlaskit/media-client 22.0.5 → 23.0.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 +10 -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 +2 -2
- package/report.api.md +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/media-client
|
|
2
2
|
|
|
3
|
+
## 23.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`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
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 22.0.5
|
|
4
14
|
|
|
5
15
|
### 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.0",
|
|
4
4
|
"description": "Media API Web Client Library",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/chunkinator": "^4.2.0",
|
|
39
|
-
"@atlaskit/media-common": "^
|
|
39
|
+
"@atlaskit/media-common": "^6.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: (
|