@atlaskit/media-viewer 49.1.0 → 49.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 +8 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/utils/index.js +2 -2
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/utils/index.js +2 -2
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/dist/esm/utils/index.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/media-viewer
|
|
2
2
|
|
|
3
|
+
## 49.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#152434](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152434)
|
|
8
|
+
[`9ee6e64e25508`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9ee6e64e25508) -
|
|
9
|
+
[ux] fix media viewer navigation for archieve file
|
|
10
|
+
|
|
3
11
|
## 49.1.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -10,7 +10,7 @@ exports.packageVersion = exports.packageName = void 0;
|
|
|
10
10
|
var _analytics = require("@atlaskit/media-common/analytics");
|
|
11
11
|
var componentName = exports.component = exports.componentName = 'mediaViewer';
|
|
12
12
|
var packageName = exports.packageName = "@atlaskit/media-viewer";
|
|
13
|
-
var packageVersion = exports.packageVersion = "49.1.
|
|
13
|
+
var packageVersion = exports.packageVersion = "49.1.1";
|
|
14
14
|
function getFileAttributes(fileState) {
|
|
15
15
|
if (!fileState) {
|
|
16
16
|
return {
|
|
@@ -12,7 +12,7 @@ var _mediaCommon = require("@atlaskit/media-common");
|
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
var packageName = "@atlaskit/media-viewer";
|
|
15
|
-
var packageVersion = "49.1.
|
|
15
|
+
var packageVersion = "49.1.1";
|
|
16
16
|
var ufoExperience;
|
|
17
17
|
var getExperience = function getExperience() {
|
|
18
18
|
if (!ufoExperience) {
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -45,11 +45,11 @@ var getMimeTypeFromFilename = exports.getMimeTypeFromFilename = function getMime
|
|
|
45
45
|
var getFolderParent = exports.getFolderParent = function getFolderParent(path) {
|
|
46
46
|
var pathParts = path.substring(0, path.length - 1).split('/');
|
|
47
47
|
pathParts.pop();
|
|
48
|
-
var parent = pathParts.
|
|
48
|
+
var parent = pathParts.at(-1);
|
|
49
49
|
if (!parent) {
|
|
50
50
|
return ''; // root
|
|
51
51
|
}
|
|
52
|
-
return
|
|
52
|
+
return pathParts.join('/') + '/';
|
|
53
53
|
};
|
|
54
54
|
var extractArchiveFolderName = exports.extractArchiveFolderName = function extractArchiveFolderName(folderName) {
|
|
55
55
|
var index = folderName.lastIndexOf('.');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
|
|
2
2
|
const componentName = 'mediaViewer';
|
|
3
3
|
const packageName = "@atlaskit/media-viewer";
|
|
4
|
-
const packageVersion = "49.1.
|
|
4
|
+
const packageVersion = "49.1.1";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -2,7 +2,7 @@ import { UFOExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atl
|
|
|
2
2
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
3
3
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
4
4
|
const packageName = "@atlaskit/media-viewer";
|
|
5
|
-
const packageVersion = "49.1.
|
|
5
|
+
const packageVersion = "49.1.1";
|
|
6
6
|
let ufoExperience;
|
|
7
7
|
const getExperience = () => {
|
|
8
8
|
if (!ufoExperience) {
|
|
@@ -34,11 +34,11 @@ export const getMimeTypeFromFilename = filename => {
|
|
|
34
34
|
export const getFolderParent = path => {
|
|
35
35
|
const pathParts = path.substring(0, path.length - 1).split('/');
|
|
36
36
|
pathParts.pop();
|
|
37
|
-
const parent = pathParts.
|
|
37
|
+
const parent = pathParts.at(-1);
|
|
38
38
|
if (!parent) {
|
|
39
39
|
return ''; // root
|
|
40
40
|
}
|
|
41
|
-
return
|
|
41
|
+
return pathParts.join('/') + '/';
|
|
42
42
|
};
|
|
43
43
|
export const extractArchiveFolderName = folderName => {
|
|
44
44
|
const index = folderName.lastIndexOf('.');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
|
|
2
2
|
var componentName = 'mediaViewer';
|
|
3
3
|
var packageName = "@atlaskit/media-viewer";
|
|
4
|
-
var packageVersion = "49.1.
|
|
4
|
+
var packageVersion = "49.1.1";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -5,7 +5,7 @@ import { UFOExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atl
|
|
|
5
5
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
6
6
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
7
7
|
var packageName = "@atlaskit/media-viewer";
|
|
8
|
-
var packageVersion = "49.1.
|
|
8
|
+
var packageVersion = "49.1.1";
|
|
9
9
|
var ufoExperience;
|
|
10
10
|
var getExperience = function getExperience() {
|
|
11
11
|
if (!ufoExperience) {
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -38,11 +38,11 @@ export var getMimeTypeFromFilename = function getMimeTypeFromFilename(filename)
|
|
|
38
38
|
export var getFolderParent = function getFolderParent(path) {
|
|
39
39
|
var pathParts = path.substring(0, path.length - 1).split('/');
|
|
40
40
|
pathParts.pop();
|
|
41
|
-
var parent = pathParts.
|
|
41
|
+
var parent = pathParts.at(-1);
|
|
42
42
|
if (!parent) {
|
|
43
43
|
return ''; // root
|
|
44
44
|
}
|
|
45
|
-
return
|
|
45
|
+
return pathParts.join('/') + '/';
|
|
46
46
|
};
|
|
47
47
|
export var extractArchiveFolderName = function extractArchiveFolderName(folderName) {
|
|
48
48
|
var index = folderName.lastIndexOf('.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "49.1.
|
|
3
|
+
"version": "49.1.1",
|
|
4
4
|
"description": "MediaViewer is Atlassian's powerful solution for viewing files on the web. It's both powerful and extendable yet easy-to-integrate",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@atlaskit/icon-file-type": "^6.5.0",
|
|
43
43
|
"@atlaskit/media-client": "^28.0.0",
|
|
44
44
|
"@atlaskit/media-client-react": "^2.2.0",
|
|
45
|
-
"@atlaskit/media-common": "^11.
|
|
45
|
+
"@atlaskit/media-common": "^11.6.0",
|
|
46
46
|
"@atlaskit/media-svg": "^0.2.0",
|
|
47
47
|
"@atlaskit/media-ui": "^25.15.0",
|
|
48
48
|
"@atlaskit/primitives": "^12.2.0",
|
|
49
49
|
"@atlaskit/side-navigation": "^3.5.0",
|
|
50
50
|
"@atlaskit/spinner": "^16.3.0",
|
|
51
51
|
"@atlaskit/textfield": "^6.5.0",
|
|
52
|
-
"@atlaskit/theme": "^13.
|
|
52
|
+
"@atlaskit/theme": "^13.1.0",
|
|
53
53
|
"@atlaskit/tokens": "^2.0.0",
|
|
54
54
|
"@atlaskit/ufo": "^0.3.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@atlaskit/media-integration-test-helpers": "^3.1.0",
|
|
79
79
|
"@atlaskit/media-state": "^1.1.0",
|
|
80
80
|
"@atlaskit/media-test-data": "^2.6.0",
|
|
81
|
-
"@atlaskit/media-test-helpers": "^34.
|
|
81
|
+
"@atlaskit/media-test-helpers": "^34.5.0",
|
|
82
82
|
"@atlaskit/ssr": "*",
|
|
83
83
|
"@atlaskit/toggle": "13.4.5",
|
|
84
84
|
"@atlaskit/visual-regression": "*",
|