@atlaskit/media-client 28.0.3 → 28.0.4
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,14 @@
|
|
|
1
1
|
# @atlaskit/media-client
|
|
2
2
|
|
|
3
|
+
## 28.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#151581](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151581)
|
|
8
|
+
[`906487ee4e09a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/906487ee4e09a) -
|
|
9
|
+
fix media viewer for video when no 1280 artifact available
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 28.0.3
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -7,10 +7,11 @@ exports.getArtifactUrl = void 0;
|
|
|
7
7
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
8
|
var _isCommercial = require("../utils/isCommercial");
|
|
9
9
|
var getArtifactUrl = exports.getArtifactUrl = function getArtifactUrl(artifacts, prop) {
|
|
10
|
-
var _artifacts$
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
var _artifacts$prop, _artifacts$prop3;
|
|
11
|
+
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
12
|
+
if ((0, _isCommercial.isCommercial)() && (0, _platformFeatureFlags.fg)('platform.media-cdn-delivery') && (_artifacts$prop = artifacts[prop]) !== null && _artifacts$prop !== void 0 && _artifacts$prop.url) {
|
|
13
|
+
var _artifacts$prop2;
|
|
14
|
+
return "".concat((_artifacts$prop2 = artifacts[prop]) === null || _artifacts$prop2 === void 0 ? void 0 : _artifacts$prop2.url, "/cdn");
|
|
14
15
|
}
|
|
15
|
-
return (_artifacts$
|
|
16
|
+
return (_artifacts$prop3 = artifacts[prop]) === null || _artifacts$prop3 === void 0 ? void 0 : _artifacts$prop3.url;
|
|
16
17
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
2
|
import { isCommercial } from '../utils/isCommercial';
|
|
3
3
|
export const getArtifactUrl = (artifacts, prop) => {
|
|
4
|
-
var _artifacts$
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
var _artifacts$prop, _artifacts$prop3;
|
|
5
|
+
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
6
|
+
if (isCommercial() && fg('platform.media-cdn-delivery') && (_artifacts$prop = artifacts[prop]) !== null && _artifacts$prop !== void 0 && _artifacts$prop.url) {
|
|
7
|
+
var _artifacts$prop2;
|
|
8
|
+
return `${(_artifacts$prop2 = artifacts[prop]) === null || _artifacts$prop2 === void 0 ? void 0 : _artifacts$prop2.url}/cdn`;
|
|
8
9
|
}
|
|
9
|
-
return (_artifacts$
|
|
10
|
+
return (_artifacts$prop3 = artifacts[prop]) === null || _artifacts$prop3 === void 0 ? void 0 : _artifacts$prop3.url;
|
|
10
11
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
2
|
import { isCommercial } from '../utils/isCommercial';
|
|
3
3
|
export var getArtifactUrl = function getArtifactUrl(artifacts, prop) {
|
|
4
|
-
var _artifacts$
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
var _artifacts$prop, _artifacts$prop3;
|
|
5
|
+
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
6
|
+
if (isCommercial() && fg('platform.media-cdn-delivery') && (_artifacts$prop = artifacts[prop]) !== null && _artifacts$prop !== void 0 && _artifacts$prop.url) {
|
|
7
|
+
var _artifacts$prop2;
|
|
8
|
+
return "".concat((_artifacts$prop2 = artifacts[prop]) === null || _artifacts$prop2 === void 0 ? void 0 : _artifacts$prop2.url, "/cdn");
|
|
8
9
|
}
|
|
9
|
-
return (_artifacts$
|
|
10
|
+
return (_artifacts$prop3 = artifacts[prop]) === null || _artifacts$prop3 === void 0 ? void 0 : _artifacts$prop3.url;
|
|
10
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-client",
|
|
3
|
-
"version": "28.0.
|
|
3
|
+
"version": "28.0.4",
|
|
4
4
|
"description": "Media API Web Client Library",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@atlaskit/chunkinator": "^6.1.0",
|
|
38
|
-
"@atlaskit/media-common": "^11.
|
|
38
|
+
"@atlaskit/media-common": "^11.6.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "0.3.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
41
|
"dataloader": "^2.1.0",
|