@atlaskit/media-viewer 48.1.2 → 48.1.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 +13 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/utils/index.js +2 -1
- package/dist/cjs/viewers/archiveSidebar/archive-sidebar-folder-entry.js +0 -1
- package/dist/cjs/viewers/image/index.js +2 -1
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/utils/index.js +2 -1
- package/dist/es2019/viewers/archiveSidebar/archive-sidebar-folder-entry.js +0 -1
- package/dist/es2019/viewers/archiveSidebar/archive-sidebar.js +0 -1
- package/dist/es2019/viewers/image/index.js +2 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/dist/esm/utils/index.js +2 -1
- package/dist/esm/viewers/archiveSidebar/archive-sidebar-folder-entry.js +0 -1
- package/dist/esm/viewers/image/index.js +2 -1
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/media-viewer
|
|
2
2
|
|
|
3
|
+
## 48.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41932](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41932) [`756dd90f1a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/756dd90f1a3) - 1. Deprecate withMediaClient HOC in media-client and migrated it to media-client-react 2. clean up deprecated imports from media-client
|
|
8
|
+
|
|
9
|
+
## 48.1.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#41371](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41371) [`a5766038a35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5766038a35) - Fix TS errors in AFM
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 48.1.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -10,7 +10,7 @@ exports.packageVersion = exports.packageName = void 0;
|
|
|
10
10
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
11
11
|
var componentName = exports.component = exports.componentName = 'mediaViewer';
|
|
12
12
|
var packageName = exports.packageName = "@atlaskit/media-viewer";
|
|
13
|
-
var packageVersion = exports.packageVersion = "48.1.
|
|
13
|
+
var packageVersion = exports.packageVersion = "48.1.4";
|
|
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 = "48.1.
|
|
15
|
+
var packageVersion = "48.1.4";
|
|
16
16
|
var ufoExperience;
|
|
17
17
|
var getExperience = function getExperience() {
|
|
18
18
|
if (!ufoExperience) {
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.rejectAfter = exports.isSameIdentifier = exports.isMacPrivateFile = expo
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _mediaClient = require("@atlaskit/media-client");
|
|
11
|
+
var _mediaCommon = require("@atlaskit/media-common");
|
|
11
12
|
var _mime = require("mime");
|
|
12
13
|
var isSameIdentifier = exports.isSameIdentifier = function isSameIdentifier(id1, id2) {
|
|
13
14
|
if ((0, _mediaClient.isFileIdentifier)(id1) && (0, _mediaClient.isFileIdentifier)(id2)) {
|
|
@@ -28,7 +29,7 @@ var getSelectedIndex = exports.getSelectedIndex = function getSelectedIndex(item
|
|
|
28
29
|
};
|
|
29
30
|
var getMediaTypeFromFilename = exports.getMediaTypeFromFilename = function getMediaTypeFromFilename(filename) {
|
|
30
31
|
var mimeType = getMimeTypeFromFilename(filename);
|
|
31
|
-
return (0,
|
|
32
|
+
return (0, _mediaCommon.getMediaTypeFromMimeType)(mimeType);
|
|
32
33
|
};
|
|
33
34
|
var getMimeTypeFromFilename = exports.getMimeTypeFromFilename = function getMimeTypeFromFilename(filename) {
|
|
34
35
|
var extension = filename.split('.').pop();
|
|
@@ -16,6 +16,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
17
|
var _react = _interopRequireDefault(require("react"));
|
|
18
18
|
var _mediaClient = require("@atlaskit/media-client");
|
|
19
|
+
var _mediaCommon = require("@atlaskit/media-common");
|
|
19
20
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
20
21
|
var _domain = require("../../domain");
|
|
21
22
|
var _errors = require("../../errors");
|
|
@@ -133,7 +134,7 @@ var ImageViewer = exports.ImageViewer = /*#__PURE__*/function (_BaseViewer) {
|
|
|
133
134
|
case 38:
|
|
134
135
|
if (!(!isLocalFileReference &&
|
|
135
136
|
// objectUrl at this point is binary file already
|
|
136
|
-
!(0, _mediaClient.isErrorFileState)(fileState) && fileState.status !== 'uploading' && fileState.mediaType === 'image' && (0,
|
|
137
|
+
!(0, _mediaClient.isErrorFileState)(fileState) && fileState.status !== 'uploading' && fileState.mediaType === 'image' && (0, _mediaCommon.isImageMimeTypeSupportedByBrowser)(fileState.mimeType))) {
|
|
137
138
|
_context.next = 42;
|
|
138
139
|
break;
|
|
139
140
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
2
2
|
const componentName = 'mediaViewer';
|
|
3
3
|
const packageName = "@atlaskit/media-viewer";
|
|
4
|
-
const packageVersion = "48.1.
|
|
4
|
+
const packageVersion = "48.1.4";
|
|
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 = "48.1.
|
|
5
|
+
const packageVersion = "48.1.4";
|
|
6
6
|
let ufoExperience;
|
|
7
7
|
const getExperience = () => {
|
|
8
8
|
if (!ufoExperience) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { isFileIdentifier
|
|
1
|
+
import { isFileIdentifier } from '@atlaskit/media-client';
|
|
2
|
+
import { getMediaTypeFromMimeType } from '@atlaskit/media-common';
|
|
2
3
|
import { getType } from 'mime';
|
|
3
4
|
export const isSameIdentifier = (id1, id2) => {
|
|
4
5
|
if (isFileIdentifier(id1) && isFileIdentifier(id2)) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { isAbortedRequestError, isImageRepresentationReady,
|
|
3
|
+
import { isAbortedRequestError, isImageRepresentationReady, isErrorFileState, addFileAttrsToUrl } from '@atlaskit/media-client';
|
|
4
|
+
import { isImageMimeTypeSupportedByBrowser } from '@atlaskit/media-common';
|
|
4
5
|
import { getOrientation } from '@atlaskit/media-ui';
|
|
5
6
|
import { Outcome } from '../../domain';
|
|
6
7
|
import { MediaViewerError } from '../../errors';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
2
2
|
var componentName = 'mediaViewer';
|
|
3
3
|
var packageName = "@atlaskit/media-viewer";
|
|
4
|
-
var packageVersion = "48.1.
|
|
4
|
+
var packageVersion = "48.1.4";
|
|
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 = "48.1.
|
|
8
|
+
var packageVersion = "48.1.4";
|
|
9
9
|
var ufoExperience;
|
|
10
10
|
var getExperience = function getExperience() {
|
|
11
11
|
if (!ufoExperience) {
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import { isFileIdentifier
|
|
3
|
+
import { isFileIdentifier } from '@atlaskit/media-client';
|
|
4
|
+
import { getMediaTypeFromMimeType } from '@atlaskit/media-common';
|
|
4
5
|
import { getType } from 'mime';
|
|
5
6
|
export var isSameIdentifier = function isSameIdentifier(id1, id2) {
|
|
6
7
|
if (isFileIdentifier(id1) && isFileIdentifier(id2)) {
|
|
@@ -10,7 +10,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
10
10
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import { isAbortedRequestError, isImageRepresentationReady,
|
|
13
|
+
import { isAbortedRequestError, isImageRepresentationReady, isErrorFileState, addFileAttrsToUrl } from '@atlaskit/media-client';
|
|
14
|
+
import { isImageMimeTypeSupportedByBrowser } from '@atlaskit/media-common';
|
|
14
15
|
import { getOrientation } from '@atlaskit/media-ui';
|
|
15
16
|
import { Outcome } from '../../domain';
|
|
16
17
|
import { MediaViewerError } from '../../errors';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "48.1.
|
|
3
|
+
"version": "48.1.4",
|
|
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/"
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
39
|
-
"@atlaskit/button": "^16.
|
|
39
|
+
"@atlaskit/button": "^16.11.0",
|
|
40
40
|
"@atlaskit/code": "^14.6.0",
|
|
41
41
|
"@atlaskit/icon": "^21.12.0",
|
|
42
42
|
"@atlaskit/icon-file-type": "^6.4.0",
|
|
43
43
|
"@atlaskit/media-client": "^24.0.0",
|
|
44
44
|
"@atlaskit/media-common": "^9.0.0",
|
|
45
45
|
"@atlaskit/media-ui": "^25.0.0",
|
|
46
|
-
"@atlaskit/side-navigation": "^
|
|
46
|
+
"@atlaskit/side-navigation": "^3.0.0",
|
|
47
47
|
"@atlaskit/spinner": "^15.6.0",
|
|
48
48
|
"@atlaskit/theme": "^12.6.0",
|
|
49
|
-
"@atlaskit/tokens": "^1.
|
|
49
|
+
"@atlaskit/tokens": "^1.28.0",
|
|
50
50
|
"@atlaskit/ufo": "^0.2.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@kenjiuno/msgreader": "^1.2.6",
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@atlaskit/button": "^16.10.0",
|
|
70
69
|
"@atlaskit/media-core": "^34.1.0",
|
|
71
70
|
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|
|
72
71
|
"@atlaskit/media-test-helpers": "^33.0.0",
|