@atlaskit/media-viewer 52.5.5 → 52.6.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 +19 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/content.js +1 -1
- package/dist/cjs/download.js +1 -1
- package/dist/cjs/navigation.js +0 -7
- package/dist/cjs/viewers/archiveSidebar/archive-download-button.js +1 -1
- package/dist/cjs/viewers/archiveSidebar/archive-sidebar-header.js +2 -2
- package/dist/cjs/viewers/archiveSidebar/archive.js +0 -7
- package/dist/cjs/viewers/audio.js +0 -7
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/content.js +1 -1
- package/dist/es2019/download.js +1 -1
- package/dist/es2019/navigation.js +0 -7
- package/dist/es2019/viewers/archiveSidebar/archive-download-button.js +1 -1
- package/dist/es2019/viewers/archiveSidebar/archive-sidebar-header.js +2 -2
- package/dist/es2019/viewers/archiveSidebar/archive.js +0 -7
- package/dist/es2019/viewers/audio.js +0 -7
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/dist/esm/content.js +1 -1
- package/dist/esm/download.js +1 -1
- package/dist/esm/navigation.js +0 -7
- package/dist/esm/viewers/archiveSidebar/archive-download-button.js +1 -1
- package/dist/esm/viewers/archiveSidebar/archive-sidebar-header.js +2 -2
- package/dist/esm/viewers/archiveSidebar/archive.js +0 -7
- package/dist/esm/viewers/audio.js +0 -7
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/media-viewer
|
|
2
2
|
|
|
3
|
+
## 52.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`87b12e64ff750`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/87b12e64ff750) -
|
|
8
|
+
Removed usages of LEGACY icon props
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 52.5.6
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`7b2a6c98563cb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b2a6c98563cb) -
|
|
19
|
+
Icon entry point migration update
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 52.5.5
|
|
4
23
|
|
|
5
24
|
### Patch 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 = "52.
|
|
13
|
+
var packageVersion = exports.packageVersion = "52.6.0";
|
|
14
14
|
function getFileAttributes(fileState) {
|
|
15
15
|
if (!fileState) {
|
|
16
16
|
return {
|
|
@@ -13,7 +13,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
13
13
|
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; }
|
|
14
14
|
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; }
|
|
15
15
|
var packageName = "@atlaskit/media-viewer";
|
|
16
|
-
var packageVersion = "52.
|
|
16
|
+
var packageVersion = "52.6.0";
|
|
17
17
|
var ufoExperience;
|
|
18
18
|
var getExperience = function getExperience() {
|
|
19
19
|
if (!ufoExperience) {
|
package/dist/cjs/content.js
CHANGED
|
@@ -12,7 +12,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
12
12
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
13
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
15
|
+
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
|
|
16
16
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
17
17
|
var _styleWrappers = require("./styleWrappers");
|
|
18
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
package/dist/cjs/download.js
CHANGED
|
@@ -12,7 +12,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
14
14
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
15
|
-
var _download = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
15
|
+
var _download = _interopRequireDefault(require("@atlaskit/icon/core/download"));
|
|
16
16
|
var _mediaClient = require("@atlaskit/media-client");
|
|
17
17
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
18
18
|
var _react = _interopRequireWildcard(require("react"));
|
package/dist/cjs/navigation.js
CHANGED
|
@@ -61,13 +61,6 @@ var withIconWrapper = function withIconWrapper(Component) {
|
|
|
61
61
|
testId: testId
|
|
62
62
|
}, /*#__PURE__*/_react.default.createElement(Component, {
|
|
63
63
|
label: label,
|
|
64
|
-
LEGACY_size: "xlarge"
|
|
65
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
66
|
-
,
|
|
67
|
-
LEGACY_primaryColor: "#9FADBC"
|
|
68
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
69
|
-
,
|
|
70
|
-
LEGACY_secondaryColor: "#161A1D",
|
|
71
64
|
color: "currentColor",
|
|
72
65
|
size: "small"
|
|
73
66
|
}));
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.ArchiveDownloadButton = void 0;
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _download = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
11
|
+
var _download = _interopRequireDefault(require("@atlaskit/icon/core/download"));
|
|
12
12
|
var _styleWrappers = require("./styleWrappers");
|
|
13
13
|
var _abuseModal = require("@atlaskit/media-ui/abuseModal");
|
|
14
14
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
@@ -12,8 +12,8 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
12
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
16
|
-
var _home = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
15
|
+
var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/core/arrow-left"));
|
|
16
|
+
var _home = _interopRequireDefault(require("@atlaskit/icon/core/home"));
|
|
17
17
|
var _utils = require("../../utils");
|
|
18
18
|
var _styleWrappers = require("./styleWrappers");
|
|
19
19
|
var _customButtonItem = require("./custom-button-item");
|
|
@@ -348,14 +348,7 @@ var ArchiveViewerBase = exports.ArchiveViewerBase = /*#__PURE__*/function (_Base
|
|
|
348
348
|
"data-testid": "media-viewer-audio-content"
|
|
349
349
|
}, /*#__PURE__*/_react.default.createElement(_styleWrappers.DefaultCoverWrapper, null, /*#__PURE__*/_react.default.createElement(_audio.default, {
|
|
350
350
|
label: "cover",
|
|
351
|
-
LEGACY_size: "xlarge",
|
|
352
351
|
color: "currentColor"
|
|
353
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
354
|
-
,
|
|
355
|
-
LEGACY_primaryColor: "#22272B"
|
|
356
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
357
|
-
,
|
|
358
|
-
LEGACY_secondaryColor: "#9FADBC"
|
|
359
352
|
})), /*#__PURE__*/_react.default.createElement(_styleWrappers.CustomAudioPlayerWrapper, null, /*#__PURE__*/_react.default.createElement(_mediaUi.CustomMediaPlayer, {
|
|
360
353
|
type: "audio",
|
|
361
354
|
isAutoPlay: false,
|
|
@@ -27,14 +27,7 @@ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0,
|
|
|
27
27
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
28
28
|
var defaultCover = /*#__PURE__*/_react.default.createElement(_styleWrappers.DefaultCoverWrapper, null, /*#__PURE__*/_react.default.createElement(_audio.default, {
|
|
29
29
|
label: "cover",
|
|
30
|
-
LEGACY_size: "xlarge",
|
|
31
30
|
color: "currentColor"
|
|
32
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
33
|
-
,
|
|
34
|
-
LEGACY_primaryColor: "#22272B"
|
|
35
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
36
|
-
,
|
|
37
|
-
LEGACY_secondaryColor: "#9FADBC"
|
|
38
31
|
}));
|
|
39
32
|
var getCoverUrl = function getCoverUrl(item, mediaClient, collectionName) {
|
|
40
33
|
return mediaClient.getImageUrl(item.id, {
|
|
@@ -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 = "52.
|
|
4
|
+
const packageVersion = "52.6.0";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -3,7 +3,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
|
3
3
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
5
|
const packageName = "@atlaskit/media-viewer";
|
|
6
|
-
const packageVersion = "52.
|
|
6
|
+
const packageVersion = "52.6.0";
|
|
7
7
|
let ufoExperience;
|
|
8
8
|
const getExperience = () => {
|
|
9
9
|
if (!ufoExperience) {
|
package/dist/es2019/content.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Component } from 'react';
|
|
3
|
-
import CrossIcon from '@atlaskit/icon/core/
|
|
3
|
+
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
4
4
|
import { MediaButton, hideControlsClassName, InactivityDetector } from '@atlaskit/media-ui';
|
|
5
5
|
import { CloseButtonWrapper, ContentWrapper } from './styleWrappers';
|
|
6
6
|
export class Content extends Component {
|
package/dist/es2019/download.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
3
|
-
import DownloadIcon from '@atlaskit/icon/core/
|
|
3
|
+
import DownloadIcon from '@atlaskit/icon/core/download';
|
|
4
4
|
import { isErrorFileState, isExternalImageIdentifier } from '@atlaskit/media-client';
|
|
5
5
|
import { MediaButton, messages } from '@atlaskit/media-ui';
|
|
6
6
|
import React, { useCallback, useState } from 'react';
|
|
@@ -49,13 +49,6 @@ const withIconWrapper = Component => {
|
|
|
49
49
|
testId: testId
|
|
50
50
|
}, /*#__PURE__*/React.createElement(Component, {
|
|
51
51
|
label: label,
|
|
52
|
-
LEGACY_size: "xlarge"
|
|
53
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
54
|
-
,
|
|
55
|
-
LEGACY_primaryColor: "#9FADBC"
|
|
56
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
57
|
-
,
|
|
58
|
-
LEGACY_secondaryColor: "#161A1D",
|
|
59
52
|
color: "currentColor",
|
|
60
53
|
size: "small"
|
|
61
54
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import DownloadIcon from '@atlaskit/icon/core/
|
|
2
|
+
import DownloadIcon from '@atlaskit/icon/core/download';
|
|
3
3
|
import { ArchiveDownloadButtonWrapper, DisabledArchiveDownloadButtonWrapper } from './styleWrappers';
|
|
4
4
|
import { AbuseModal } from '@atlaskit/media-ui/abuseModal';
|
|
5
5
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import ArrowLeftIcon from '@atlaskit/icon/core/
|
|
4
|
-
import HomeIcon from '@atlaskit/icon/core/
|
|
3
|
+
import ArrowLeftIcon from '@atlaskit/icon/core/arrow-left';
|
|
4
|
+
import HomeIcon from '@atlaskit/icon/core/home';
|
|
5
5
|
import { getFormattedFolderName } from '../../utils';
|
|
6
6
|
import { SidebarHeaderEntry, SidebarHeaderIcon, SidebarHeaderWrapper } from './styleWrappers';
|
|
7
7
|
import { CustomButtonItem } from './custom-button-item';
|
|
@@ -232,14 +232,7 @@ export class ArchiveViewerBase extends BaseViewer {
|
|
|
232
232
|
"data-testid": "media-viewer-audio-content"
|
|
233
233
|
}, /*#__PURE__*/React.createElement(DefaultCoverWrapper, null, /*#__PURE__*/React.createElement(AudioIcon, {
|
|
234
234
|
label: "cover",
|
|
235
|
-
LEGACY_size: "xlarge",
|
|
236
235
|
color: "currentColor"
|
|
237
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
238
|
-
,
|
|
239
|
-
LEGACY_primaryColor: "#22272B"
|
|
240
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
241
|
-
,
|
|
242
|
-
LEGACY_secondaryColor: "#9FADBC"
|
|
243
236
|
})), /*#__PURE__*/React.createElement(CustomAudioPlayerWrapper, null, /*#__PURE__*/React.createElement(CustomMediaPlayer, {
|
|
244
237
|
type: "audio",
|
|
245
238
|
isAutoPlay: false,
|
|
@@ -11,14 +11,7 @@ import { CustomMediaPlayer } from '@atlaskit/media-ui';
|
|
|
11
11
|
import { getObjectUrlFromFileState } from '../utils/getObjectUrlFromFileState';
|
|
12
12
|
const defaultCover = /*#__PURE__*/React.createElement(DefaultCoverWrapper, null, /*#__PURE__*/React.createElement(AudioIcon, {
|
|
13
13
|
label: "cover",
|
|
14
|
-
LEGACY_size: "xlarge",
|
|
15
14
|
color: "currentColor"
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
17
|
-
,
|
|
18
|
-
LEGACY_primaryColor: "#22272B"
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
20
|
-
,
|
|
21
|
-
LEGACY_secondaryColor: "#9FADBC"
|
|
22
15
|
}));
|
|
23
16
|
const getCoverUrl = (item, mediaClient, collectionName) => mediaClient.getImageUrl(item.id, {
|
|
24
17
|
collection: collectionName
|
|
@@ -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 = "52.
|
|
4
|
+
var packageVersion = "52.6.0";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -6,7 +6,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
|
6
6
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
var packageName = "@atlaskit/media-viewer";
|
|
9
|
-
var packageVersion = "52.
|
|
9
|
+
var packageVersion = "52.6.0";
|
|
10
10
|
var ufoExperience;
|
|
11
11
|
var getExperience = function getExperience() {
|
|
12
12
|
if (!ufoExperience) {
|
package/dist/esm/content.js
CHANGED
|
@@ -7,7 +7,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { Component } from 'react';
|
|
10
|
-
import CrossIcon from '@atlaskit/icon/core/
|
|
10
|
+
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
11
11
|
import { MediaButton, hideControlsClassName, InactivityDetector } from '@atlaskit/media-ui';
|
|
12
12
|
import { CloseButtonWrapper, ContentWrapper } from './styleWrappers';
|
|
13
13
|
export var Content = /*#__PURE__*/function (_Component) {
|
package/dist/esm/download.js
CHANGED
|
@@ -5,7 +5,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
5
5
|
var _excluded = ["analyticspayload", "onClick", "tooltip"];
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
8
|
-
import DownloadIcon from '@atlaskit/icon/core/
|
|
8
|
+
import DownloadIcon from '@atlaskit/icon/core/download';
|
|
9
9
|
import { isErrorFileState, isExternalImageIdentifier } from '@atlaskit/media-client';
|
|
10
10
|
import { MediaButton, messages } from '@atlaskit/media-ui';
|
|
11
11
|
import React, { useCallback, useState } from 'react';
|
package/dist/esm/navigation.js
CHANGED
|
@@ -56,13 +56,6 @@ var withIconWrapper = function withIconWrapper(Component) {
|
|
|
56
56
|
testId: testId
|
|
57
57
|
}, /*#__PURE__*/React.createElement(Component, {
|
|
58
58
|
label: label,
|
|
59
|
-
LEGACY_size: "xlarge"
|
|
60
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
61
|
-
,
|
|
62
|
-
LEGACY_primaryColor: "#9FADBC"
|
|
63
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
64
|
-
,
|
|
65
|
-
LEGACY_secondaryColor: "#161A1D",
|
|
66
59
|
color: "currentColor",
|
|
67
60
|
size: "small"
|
|
68
61
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import DownloadIcon from '@atlaskit/icon/core/
|
|
3
|
+
import DownloadIcon from '@atlaskit/icon/core/download';
|
|
4
4
|
import { ArchiveDownloadButtonWrapper, DisabledArchiveDownloadButtonWrapper } from './styleWrappers';
|
|
5
5
|
import { AbuseModal } from '@atlaskit/media-ui/abuseModal';
|
|
6
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -7,8 +7,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import ArrowLeftIcon from '@atlaskit/icon/core/
|
|
11
|
-
import HomeIcon from '@atlaskit/icon/core/
|
|
10
|
+
import ArrowLeftIcon from '@atlaskit/icon/core/arrow-left';
|
|
11
|
+
import HomeIcon from '@atlaskit/icon/core/home';
|
|
12
12
|
import { getFormattedFolderName } from '../../utils';
|
|
13
13
|
import { SidebarHeaderEntry, SidebarHeaderIcon, SidebarHeaderWrapper } from './styleWrappers';
|
|
14
14
|
import { CustomButtonItem } from './custom-button-item';
|
|
@@ -342,14 +342,7 @@ export var ArchiveViewerBase = /*#__PURE__*/function (_BaseViewer) {
|
|
|
342
342
|
"data-testid": "media-viewer-audio-content"
|
|
343
343
|
}, /*#__PURE__*/React.createElement(DefaultCoverWrapper, null, /*#__PURE__*/React.createElement(AudioIcon, {
|
|
344
344
|
label: "cover",
|
|
345
|
-
LEGACY_size: "xlarge",
|
|
346
345
|
color: "currentColor"
|
|
347
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
348
|
-
,
|
|
349
|
-
LEGACY_primaryColor: "#22272B"
|
|
350
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
351
|
-
,
|
|
352
|
-
LEGACY_secondaryColor: "#9FADBC"
|
|
353
346
|
})), /*#__PURE__*/React.createElement(CustomAudioPlayerWrapper, null, /*#__PURE__*/React.createElement(CustomMediaPlayer, {
|
|
354
347
|
type: "audio",
|
|
355
348
|
isAutoPlay: false,
|
|
@@ -20,14 +20,7 @@ import { CustomMediaPlayer } from '@atlaskit/media-ui';
|
|
|
20
20
|
import { getObjectUrlFromFileState } from '../utils/getObjectUrlFromFileState';
|
|
21
21
|
var defaultCover = /*#__PURE__*/React.createElement(DefaultCoverWrapper, null, /*#__PURE__*/React.createElement(AudioIcon, {
|
|
22
22
|
label: "cover",
|
|
23
|
-
LEGACY_size: "xlarge",
|
|
24
23
|
color: "currentColor"
|
|
25
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
26
|
-
,
|
|
27
|
-
LEGACY_primaryColor: "#22272B"
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
29
|
-
,
|
|
30
|
-
LEGACY_secondaryColor: "#9FADBC"
|
|
31
24
|
}));
|
|
32
25
|
var getCoverUrl = function getCoverUrl(item, mediaClient, collectionName) {
|
|
33
26
|
return mediaClient.getImageUrl(item.id, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "52.
|
|
3
|
+
"version": "52.6.0",
|
|
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/"
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"@atlaskit/button": "^23.9.0",
|
|
36
36
|
"@atlaskit/code": "^17.4.0",
|
|
37
37
|
"@atlaskit/css": "^0.19.0",
|
|
38
|
-
"@atlaskit/form": "^15.
|
|
38
|
+
"@atlaskit/form": "^15.3.0",
|
|
39
39
|
"@atlaskit/heading": "^5.2.0",
|
|
40
|
-
"@atlaskit/icon": "^29.
|
|
40
|
+
"@atlaskit/icon": "^29.4.0",
|
|
41
41
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
42
|
-
"@atlaskit/icon-lab": "^5.
|
|
42
|
+
"@atlaskit/icon-lab": "^5.14.0",
|
|
43
43
|
"@atlaskit/media-client": "^35.7.0",
|
|
44
44
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
45
45
|
"@atlaskit/media-common": "^12.3.0",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
50
|
"@atlaskit/portal": "^5.1.0",
|
|
51
51
|
"@atlaskit/primitives": "^17.0.0",
|
|
52
|
-
"@atlaskit/side-navigation": "^11.
|
|
52
|
+
"@atlaskit/side-navigation": "^11.1.0",
|
|
53
53
|
"@atlaskit/spinner": "^19.0.0",
|
|
54
54
|
"@atlaskit/textfield": "^8.2.0",
|
|
55
55
|
"@atlaskit/theme": "^21.0.0",
|
|
56
|
-
"@atlaskit/tokens": "^9.
|
|
57
|
-
"@atlaskit/tooltip": "^20.
|
|
56
|
+
"@atlaskit/tokens": "^9.1.0",
|
|
57
|
+
"@atlaskit/tooltip": "^20.12.0",
|
|
58
58
|
"@atlaskit/ufo": "^0.4.0",
|
|
59
59
|
"@babel/runtime": "^7.0.0",
|
|
60
60
|
"@codemirror/language": "6.10.8",
|