@atlaskit/media-viewer 48.9.0 → 48.10.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 +14 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/content.js +4 -2
- package/dist/cjs/download.js +3 -1
- package/dist/cjs/navigation.js +10 -2
- package/dist/cjs/styleWrappers.js +1 -0
- package/dist/cjs/viewers/archiveSidebar/archive-sidebar-folder-entry.js +3 -1
- package/dist/cjs/viewers/archiveSidebar/archive-sidebar-header.js +6 -2
- package/dist/cjs/viewers/archiveSidebar/archive.js +8 -6
- package/dist/cjs/viewers/audio.js +8 -6
- package/dist/cjs/viewers/doc/pdfPasswordInput.js +9 -7
- package/dist/cjs/zoomControls.js +8 -4
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/content.js +3 -1
- package/dist/es2019/download.js +3 -1
- package/dist/es2019/navigation.js +10 -2
- package/dist/es2019/styleWrappers.js +1 -0
- package/dist/es2019/viewers/archiveSidebar/archive-sidebar-folder-entry.js +3 -1
- package/dist/es2019/viewers/archiveSidebar/archive-sidebar-header.js +6 -2
- package/dist/es2019/viewers/archiveSidebar/archive.js +7 -5
- package/dist/es2019/viewers/audio.js +7 -5
- package/dist/es2019/viewers/doc/pdfPasswordInput.js +8 -6
- package/dist/es2019/zoomControls.js +6 -2
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/dist/esm/content.js +3 -1
- package/dist/esm/download.js +3 -1
- package/dist/esm/navigation.js +10 -2
- package/dist/esm/styleWrappers.js +1 -0
- package/dist/esm/viewers/archiveSidebar/archive-sidebar-folder-entry.js +3 -1
- package/dist/esm/viewers/archiveSidebar/archive-sidebar-header.js +6 -2
- package/dist/esm/viewers/archiveSidebar/archive.js +7 -5
- package/dist/esm/viewers/audio.js +7 -5
- package/dist/esm/viewers/doc/pdfPasswordInput.js +8 -6
- package/dist/esm/zoomControls.js +6 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/media-viewer
|
|
2
2
|
|
|
3
|
+
## 48.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 48.10.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#141509](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141509)
|
|
14
|
+
[`60385582ed07f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/60385582ed07f) -
|
|
15
|
+
[ux] Enable new icons behind a feature flag.
|
|
16
|
+
|
|
3
17
|
## 48.9.0
|
|
4
18
|
|
|
5
19
|
### 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 = "48.
|
|
13
|
+
var packageVersion = exports.packageVersion = "48.10.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 = "48.
|
|
15
|
+
var packageVersion = "48.10.1";
|
|
16
16
|
var ufoExperience;
|
|
17
17
|
var getExperience = function getExperience() {
|
|
18
18
|
if (!ufoExperience) {
|
package/dist/cjs/content.js
CHANGED
|
@@ -12,7 +12,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
12
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
var
|
|
15
|
+
var _closeCross = _interopRequireDefault(require("@atlaskit/icon/core/migration/close--cross"));
|
|
16
16
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
17
17
|
var _styleWrappers = require("./styleWrappers");
|
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -49,7 +49,9 @@ var Content = exports.Content = /*#__PURE__*/function (_Component) {
|
|
|
49
49
|
}, /*#__PURE__*/_react.default.createElement(_mediaUi.MediaButton, {
|
|
50
50
|
testId: "media-viewer-close-button",
|
|
51
51
|
onClick: onClose,
|
|
52
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(
|
|
52
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(_closeCross.default, {
|
|
53
|
+
color: "currentColor",
|
|
54
|
+
spacing: "spacious",
|
|
53
55
|
label: "Close"
|
|
54
56
|
})
|
|
55
57
|
})), children);
|
package/dist/cjs/download.js
CHANGED
|
@@ -10,7 +10,7 @@ exports.DownloadButton = DownloadButton;
|
|
|
10
10
|
exports.createItemDownloader = exports.ToolbarDownloadButton = exports.ErrorViewDownloadButton = void 0;
|
|
11
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
-
var _download = _interopRequireDefault(require("@atlaskit/icon/
|
|
13
|
+
var _download = _interopRequireDefault(require("@atlaskit/icon/core/migration/download"));
|
|
14
14
|
var _mediaClient = require("@atlaskit/media-client");
|
|
15
15
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -23,6 +23,8 @@ var _excluded = ["analyticspayload", "onClick"];
|
|
|
23
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
24
24
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
25
|
var downloadIcon = /*#__PURE__*/_react.default.createElement(_download.default, {
|
|
26
|
+
color: "currentColor",
|
|
27
|
+
spacing: "spacious",
|
|
26
28
|
label: "Download"
|
|
27
29
|
});
|
|
28
30
|
function noop() {}
|
package/dist/cjs/navigation.js
CHANGED
|
@@ -92,7 +92,11 @@ var NavigationBase = exports.NavigationBase = /*#__PURE__*/function (_Component)
|
|
|
92
92
|
}), /*#__PURE__*/_react.default.createElement(_standardButton.default, {
|
|
93
93
|
testId: prevNavButtonId,
|
|
94
94
|
onClick: prev('mouse'),
|
|
95
|
-
iconBefore:
|
|
95
|
+
iconBefore:
|
|
96
|
+
/*#__PURE__*/
|
|
97
|
+
// TODO: https://product-fabric.atlassian.net/browse/DSP-20917
|
|
98
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
99
|
+
_react.default.createElement(_chevronLeftCircle.default
|
|
96
100
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
97
101
|
, {
|
|
98
102
|
primaryColor: "#9FADBC"
|
|
@@ -114,7 +118,11 @@ var NavigationBase = exports.NavigationBase = /*#__PURE__*/function (_Component)
|
|
|
114
118
|
}), /*#__PURE__*/_react.default.createElement(_standardButton.default, {
|
|
115
119
|
testId: nextNavButtonId,
|
|
116
120
|
onClick: next('mouse'),
|
|
117
|
-
iconBefore:
|
|
121
|
+
iconBefore:
|
|
122
|
+
/*#__PURE__*/
|
|
123
|
+
// TODO: https://product-fabric.atlassian.net/browse/DSP-20917
|
|
124
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
125
|
+
_react.default.createElement(_chevronRightCircle.default
|
|
118
126
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
119
127
|
, {
|
|
120
128
|
primaryColor: "#9FADBC"
|
|
@@ -324,6 +324,7 @@ var defaultCoverWrapperStyles = (0, _react.css)({
|
|
|
324
324
|
display: 'flex',
|
|
325
325
|
alignItems: 'center',
|
|
326
326
|
justifyContent: 'center',
|
|
327
|
+
color: "var(--ds-text, #9FADBC)",
|
|
327
328
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
328
329
|
'> *': {
|
|
329
330
|
transform: 'scale(2)'
|
|
@@ -17,7 +17,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
17
17
|
var _react = _interopRequireDefault(require("react"));
|
|
18
18
|
var _sideNavigation = require("@atlaskit/side-navigation");
|
|
19
19
|
var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/folder/24"));
|
|
20
|
-
var _download = _interopRequireDefault(require("@atlaskit/icon/
|
|
20
|
+
var _download = _interopRequireDefault(require("@atlaskit/icon/core/migration/download"));
|
|
21
21
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
22
22
|
var _mediaTypeIcon = require("@atlaskit/media-ui/media-type-icon");
|
|
23
23
|
var _styleWrappers = require("./styleWrappers");
|
|
@@ -72,6 +72,8 @@ var ArchiveSidebarFolderEntry = exports.ArchiveSidebarFolderEntry = /*#__PURE__*
|
|
|
72
72
|
return _this.downloadZipEntry(entry, root);
|
|
73
73
|
}
|
|
74
74
|
}, /*#__PURE__*/_react.default.createElement(_download.default, {
|
|
75
|
+
color: "currentColor",
|
|
76
|
+
spacing: "spacious",
|
|
75
77
|
label: "Download"
|
|
76
78
|
}));
|
|
77
79
|
});
|
|
@@ -13,9 +13,9 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
|
-
var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/
|
|
16
|
+
var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/core/migration/arrow-left"));
|
|
17
17
|
var _sideNavigation = require("@atlaskit/side-navigation");
|
|
18
|
-
var _home = _interopRequireDefault(require("@atlaskit/icon/
|
|
18
|
+
var _home = _interopRequireDefault(require("@atlaskit/icon/core/migration/home"));
|
|
19
19
|
var _utils = require("../../utils");
|
|
20
20
|
var _styleWrappers = require("./styleWrappers");
|
|
21
21
|
var _styles = require("./styles");
|
|
@@ -33,8 +33,12 @@ var ArchiveSidebarHeader = exports.ArchiveSidebarHeader = /*#__PURE__*/function
|
|
|
33
33
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
34
34
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getHeaderIcon", function () {
|
|
35
35
|
return !!_this.props.folderName ? /*#__PURE__*/_react.default.createElement(_arrowLeft.default, {
|
|
36
|
+
color: "currentColor",
|
|
37
|
+
spacing: "spacious",
|
|
36
38
|
label: "Back"
|
|
37
39
|
}) : /*#__PURE__*/_react.default.createElement(_home.default, {
|
|
40
|
+
color: "currentColor",
|
|
41
|
+
spacing: "spacious",
|
|
38
42
|
label: "Home"
|
|
39
43
|
});
|
|
40
44
|
});
|
|
@@ -21,12 +21,11 @@ var _mediaUi = require("@atlaskit/media-ui");
|
|
|
21
21
|
var _codeViewer = require("@atlaskit/media-ui/codeViewer");
|
|
22
22
|
var _domain = require("../../domain");
|
|
23
23
|
var _styleWrappers = require("../../styleWrappers");
|
|
24
|
-
var
|
|
24
|
+
var _audioMediaServicesAudio = _interopRequireDefault(require("@atlaskit/icon/core/migration/audio--media-services-audio"));
|
|
25
25
|
var _errorMessage = _interopRequireDefault(require("../../errorMessage"));
|
|
26
26
|
var _baseViewer = require("../base-viewer");
|
|
27
27
|
var _interactiveImg = require("../image/interactive-img");
|
|
28
28
|
var _pdfRenderer = require("../doc/pdfRenderer");
|
|
29
|
-
var _styles = require("../../styles");
|
|
30
29
|
var _styleWrappers2 = require("./styleWrappers");
|
|
31
30
|
var _archiveSidebarRenderer = _interopRequireDefault(require("./archive-sidebar-renderer"));
|
|
32
31
|
var _utils = require("../../utils");
|
|
@@ -296,13 +295,16 @@ var ArchiveViewerBase = exports.ArchiveViewerBase = /*#__PURE__*/function (_Base
|
|
|
296
295
|
case 'audio':
|
|
297
296
|
return /*#__PURE__*/_react.default.createElement(_styleWrappers2.ArchiveItemViewerWrapper, null, /*#__PURE__*/_react.default.createElement(_styleWrappers.AudioPlayer, {
|
|
298
297
|
"data-testid": "media-viewer-audio-content"
|
|
299
|
-
}, /*#__PURE__*/_react.default.createElement(_styleWrappers.DefaultCoverWrapper, null, /*#__PURE__*/_react.default.createElement(
|
|
298
|
+
}, /*#__PURE__*/_react.default.createElement(_styleWrappers.DefaultCoverWrapper, null, /*#__PURE__*/_react.default.createElement(_audioMediaServicesAudio.default, {
|
|
300
299
|
label: "cover",
|
|
301
|
-
|
|
302
|
-
|
|
300
|
+
LEGACY_size: "xlarge",
|
|
301
|
+
color: "currentColor"
|
|
303
302
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
304
303
|
,
|
|
305
|
-
|
|
304
|
+
LEGACY_primaryColor: "#22272B"
|
|
305
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
306
|
+
,
|
|
307
|
+
LEGACY_secondaryColor: "#9FADBC"
|
|
306
308
|
})), /*#__PURE__*/_react.default.createElement(_styleWrappers.CustomAudioPlayerWrapper, null, /*#__PURE__*/_react.default.createElement(_mediaUi.CustomMediaPlayer, {
|
|
307
309
|
type: "audio",
|
|
308
310
|
isAutoPlay: false,
|
|
@@ -16,7 +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
|
|
19
|
+
var _audioMediaServicesAudio = _interopRequireDefault(require("@atlaskit/icon/core/migration/audio--media-services-audio"));
|
|
20
20
|
var _domain = require("../domain");
|
|
21
21
|
var _errors = require("../errors");
|
|
22
22
|
var _styleWrappers = require("../styleWrappers");
|
|
@@ -24,16 +24,18 @@ var _baseViewer = require("./base-viewer");
|
|
|
24
24
|
var _isIE = require("../utils/isIE");
|
|
25
25
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
26
26
|
var _getObjectUrlFromFileState = require("../utils/getObjectUrlFromFileState");
|
|
27
|
-
var _styles = require("../styles");
|
|
28
27
|
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
|
|
29
28
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
30
|
-
var defaultCover = /*#__PURE__*/_react.default.createElement(_styleWrappers.DefaultCoverWrapper, null, /*#__PURE__*/_react.default.createElement(
|
|
29
|
+
var defaultCover = /*#__PURE__*/_react.default.createElement(_styleWrappers.DefaultCoverWrapper, null, /*#__PURE__*/_react.default.createElement(_audioMediaServicesAudio.default, {
|
|
31
30
|
label: "cover",
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
LEGACY_size: "xlarge",
|
|
32
|
+
color: "currentColor"
|
|
34
33
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
35
34
|
,
|
|
36
|
-
|
|
35
|
+
LEGACY_primaryColor: "#22272B"
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
37
|
+
,
|
|
38
|
+
LEGACY_secondaryColor: "#9FADBC"
|
|
37
39
|
}));
|
|
38
40
|
var getCoverUrl = function getCoverUrl(item, mediaClient, collectionName) {
|
|
39
41
|
return mediaClient.getImageUrl(item.id, {
|
|
@@ -11,13 +11,13 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
13
13
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
14
|
-
var
|
|
14
|
+
var _lockLockedLock = _interopRequireDefault(require("@atlaskit/icon/core/migration/lock-locked--lock"));
|
|
15
15
|
var _form = _interopRequireWildcard(require("@atlaskit/form"));
|
|
16
16
|
var _reactIntlNext = require("react-intl-next");
|
|
17
17
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
18
18
|
var _primitives = require("@atlaskit/primitives");
|
|
19
19
|
var _react2 = require("@emotion/react");
|
|
20
|
-
var _error = _interopRequireDefault(require("@atlaskit/icon/
|
|
20
|
+
var _error = _interopRequireDefault(require("@atlaskit/icon/utility/migration/error"));
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
/**
|
|
@@ -39,7 +39,8 @@ var errorMessageWrapperStyle = (0, _react2.css)({
|
|
|
39
39
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
40
40
|
color: '#FD9891',
|
|
41
41
|
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
42
|
-
display: 'flex'
|
|
42
|
+
display: 'flex',
|
|
43
|
+
alignItems: 'center'
|
|
43
44
|
});
|
|
44
45
|
var errorMessageStyle = (0, _react2.css)({
|
|
45
46
|
marginTop: '0px',
|
|
@@ -87,10 +88,10 @@ var PDFPasswordInput = exports.PDFPasswordInput = function PDFPasswordInput(_ref
|
|
|
87
88
|
submitting = _ref2.submitting;
|
|
88
89
|
return (0, _react2.jsx)("form", formProps, (0, _react2.jsx)(_primitives.Flex, {
|
|
89
90
|
justifyContent: "center"
|
|
90
|
-
}, (0, _react2.jsx)(
|
|
91
|
+
}, (0, _react2.jsx)(_lockLockedLock.default, {
|
|
91
92
|
label: "",
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
LEGACY_size: "xlarge",
|
|
94
|
+
color: COLOR_SHADE
|
|
94
95
|
})), (0, _react2.jsx)(_primitives.Box, {
|
|
95
96
|
xcss: headerStyles
|
|
96
97
|
}, (0, _react2.jsx)("h1", {
|
|
@@ -117,7 +118,8 @@ var PDFPasswordInput = exports.PDFPasswordInput = function PDFPasswordInput(_ref
|
|
|
117
118
|
css: errorMessageWrapperStyle,
|
|
118
119
|
id: "".concat(fieldProps.id, "-error")
|
|
119
120
|
}, (0, _react2.jsx)(_error.default, {
|
|
120
|
-
|
|
121
|
+
color: "currentColor",
|
|
122
|
+
LEGACY_size: "small",
|
|
121
123
|
label: ""
|
|
122
124
|
}), (0, _react2.jsx)("p", {
|
|
123
125
|
css: errorMessageStyle
|
package/dist/cjs/zoomControls.js
CHANGED
|
@@ -15,8 +15,8 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
18
|
-
var
|
|
19
|
-
var
|
|
18
|
+
var _zoomOutMediaServicesZoomOut = _interopRequireDefault(require("@atlaskit/icon/core/migration/zoom-out--media-services-zoom-out"));
|
|
19
|
+
var _zoomInMediaServicesZoomIn = _interopRequireDefault(require("@atlaskit/icon/core/migration/zoom-in--media-services-zoom-in"));
|
|
20
20
|
var _styleWrappers = require("./styleWrappers");
|
|
21
21
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
22
22
|
var _analytics = require("./analytics/");
|
|
@@ -76,13 +76,17 @@ var ZoomControlsBase = exports.ZoomControlsBase = /*#__PURE__*/function (_Compon
|
|
|
76
76
|
}, /*#__PURE__*/_react.default.createElement(_styleWrappers.ZoomCenterControls, null, /*#__PURE__*/_react.default.createElement(_mediaUi.MediaButton, {
|
|
77
77
|
isDisabled: !zoomLevel.canZoomOut,
|
|
78
78
|
onClick: this.zoomOut,
|
|
79
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(
|
|
79
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(_zoomOutMediaServicesZoomOut.default, {
|
|
80
|
+
color: "currentColor",
|
|
81
|
+
spacing: "spacious",
|
|
80
82
|
label: formatMessage(_mediaUi.messages.zoom_out)
|
|
81
83
|
})
|
|
82
84
|
}), /*#__PURE__*/_react.default.createElement(_mediaUi.MediaButton, {
|
|
83
85
|
isDisabled: !zoomLevel.canZoomIn,
|
|
84
86
|
onClick: this.zoomIn,
|
|
85
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(
|
|
87
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(_zoomInMediaServicesZoomIn.default, {
|
|
88
|
+
color: "currentColor",
|
|
89
|
+
spacing: "spacious",
|
|
86
90
|
label: formatMessage(_mediaUi.messages.zoom_in)
|
|
87
91
|
})
|
|
88
92
|
})), /*#__PURE__*/_react.default.createElement(_styleWrappers.ZoomRightControls, null, children, /*#__PURE__*/_react.default.createElement(_styleWrappers.ZoomLevelIndicator, null, zoomLevel.asPercentage)))
|
|
@@ -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 = "48.
|
|
4
|
+
const packageVersion = "48.10.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 = "48.
|
|
5
|
+
const packageVersion = "48.10.1";
|
|
6
6
|
let ufoExperience;
|
|
7
7
|
const getExperience = () => {
|
|
8
8
|
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/
|
|
3
|
+
import CrossIcon from '@atlaskit/icon/core/migration/close--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 {
|
|
@@ -25,6 +25,8 @@ export class Content extends Component {
|
|
|
25
25
|
testId: "media-viewer-close-button",
|
|
26
26
|
onClick: onClose,
|
|
27
27
|
iconBefore: /*#__PURE__*/React.createElement(CrossIcon, {
|
|
28
|
+
color: "currentColor",
|
|
29
|
+
spacing: "spacious",
|
|
28
30
|
label: "Close"
|
|
29
31
|
})
|
|
30
32
|
})), children);
|
package/dist/es2019/download.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import DownloadIcon from '@atlaskit/icon/
|
|
2
|
+
import DownloadIcon from '@atlaskit/icon/core/migration/download';
|
|
3
3
|
import { isErrorFileState, isExternalImageIdentifier } from '@atlaskit/media-client';
|
|
4
4
|
import { MediaButton, messages } from '@atlaskit/media-ui';
|
|
5
5
|
import React, { useCallback } from 'react';
|
|
@@ -9,6 +9,8 @@ import { createDownloadButtonClickedEvent } from './analytics/events/ui/download
|
|
|
9
9
|
import { createFailedPreviewDownloadButtonClickedEvent } from './analytics/events/ui/failedPreviewDownloadButtonClicked';
|
|
10
10
|
import { DownloadButtonWrapper } from './styleWrappers';
|
|
11
11
|
const downloadIcon = /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
12
|
+
color: "currentColor",
|
|
13
|
+
spacing: "spacious",
|
|
12
14
|
label: "Download"
|
|
13
15
|
});
|
|
14
16
|
function noop() {}
|
|
@@ -67,7 +67,11 @@ export class NavigationBase extends Component {
|
|
|
67
67
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
68
68
|
testId: prevNavButtonId,
|
|
69
69
|
onClick: prev('mouse'),
|
|
70
|
-
iconBefore:
|
|
70
|
+
iconBefore:
|
|
71
|
+
/*#__PURE__*/
|
|
72
|
+
// TODO: https://product-fabric.atlassian.net/browse/DSP-20917
|
|
73
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
74
|
+
React.createElement(ArrowLeftCircleIcon
|
|
71
75
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
72
76
|
, {
|
|
73
77
|
primaryColor: "#9FADBC"
|
|
@@ -89,7 +93,11 @@ export class NavigationBase extends Component {
|
|
|
89
93
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
90
94
|
testId: nextNavButtonId,
|
|
91
95
|
onClick: next('mouse'),
|
|
92
|
-
iconBefore:
|
|
96
|
+
iconBefore:
|
|
97
|
+
/*#__PURE__*/
|
|
98
|
+
// TODO: https://product-fabric.atlassian.net/browse/DSP-20917
|
|
99
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
100
|
+
React.createElement(ArrowRightCircleIcon
|
|
93
101
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
94
102
|
, {
|
|
95
103
|
primaryColor: "#9FADBC"
|
|
@@ -319,6 +319,7 @@ const defaultCoverWrapperStyles = css({
|
|
|
319
319
|
display: 'flex',
|
|
320
320
|
alignItems: 'center',
|
|
321
321
|
justifyContent: 'center',
|
|
322
|
+
color: "var(--ds-text, #9FADBC)",
|
|
322
323
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
323
324
|
'> *': {
|
|
324
325
|
transform: 'scale(2)'
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ButtonItem } from '@atlaskit/side-navigation';
|
|
4
4
|
import Folder24Icon from '@atlaskit/icon-file-type/glyph/folder/24';
|
|
5
|
-
import DownloadIcon from '@atlaskit/icon/
|
|
5
|
+
import DownloadIcon from '@atlaskit/icon/core/migration/download';
|
|
6
6
|
import { downloadUrl } from '@atlaskit/media-common';
|
|
7
7
|
import { MediaTypeIcon } from '@atlaskit/media-ui/media-type-icon';
|
|
8
8
|
import { ArchiveSidebarFolderWrapper, ArchiveSidebarFileEntryWrapper, ArchiveDownloadButtonWrapper, SidebarItemWrapper } from './styleWrappers';
|
|
@@ -43,6 +43,8 @@ export class ArchiveSidebarFolderEntry extends React.Component {
|
|
|
43
43
|
return /*#__PURE__*/React.createElement(ArchiveDownloadButtonWrapper, {
|
|
44
44
|
onClick: () => this.downloadZipEntry(entry, root)
|
|
45
45
|
}, /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
46
|
+
color: "currentColor",
|
|
47
|
+
spacing: "spacious",
|
|
46
48
|
label: "Download"
|
|
47
49
|
}));
|
|
48
50
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import ArrowLeftIcon from '@atlaskit/icon/
|
|
3
|
+
import ArrowLeftIcon from '@atlaskit/icon/core/migration/arrow-left';
|
|
4
4
|
import { ButtonItem } from '@atlaskit/side-navigation';
|
|
5
|
-
import HomeIcon from '@atlaskit/icon/
|
|
5
|
+
import HomeIcon from '@atlaskit/icon/core/migration/home';
|
|
6
6
|
import { getFormattedFolderName } from '../../utils';
|
|
7
7
|
import { SidebarHeaderEntry, SidebarHeaderIcon, SidebarHeaderWrapper } from './styleWrappers';
|
|
8
8
|
import { itemStyle } from './styles';
|
|
@@ -10,8 +10,12 @@ export class ArchiveSidebarHeader extends React.Component {
|
|
|
10
10
|
constructor(...args) {
|
|
11
11
|
super(...args);
|
|
12
12
|
_defineProperty(this, "getHeaderIcon", () => !!this.props.folderName ? /*#__PURE__*/React.createElement(ArrowLeftIcon, {
|
|
13
|
+
color: "currentColor",
|
|
14
|
+
spacing: "spacious",
|
|
13
15
|
label: "Back"
|
|
14
16
|
}) : /*#__PURE__*/React.createElement(HomeIcon, {
|
|
17
|
+
color: "currentColor",
|
|
18
|
+
spacing: "spacious",
|
|
15
19
|
label: "Home"
|
|
16
20
|
}));
|
|
17
21
|
}
|
|
@@ -7,12 +7,11 @@ import { CustomMediaPlayer, messages } from '@atlaskit/media-ui';
|
|
|
7
7
|
import { getLanguageType, isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
|
|
8
8
|
import { Outcome } from '../../domain';
|
|
9
9
|
import { CustomVideoPlayerWrapper, AudioPlayer, CustomAudioPlayerWrapper, DefaultCoverWrapper, ListWrapper } from '../../styleWrappers';
|
|
10
|
-
import AudioIcon from '@atlaskit/icon/
|
|
10
|
+
import AudioIcon from '@atlaskit/icon/core/migration/audio--media-services-audio';
|
|
11
11
|
import ErrorMessage from '../../errorMessage';
|
|
12
12
|
import { BaseViewer } from '../base-viewer';
|
|
13
13
|
import { InteractiveImg } from '../image/interactive-img';
|
|
14
14
|
import { PDFRenderer } from '../doc/pdfRenderer';
|
|
15
|
-
import { blanketColor } from '../../styles';
|
|
16
15
|
import { ArchiveItemViewerWrapper, ArchiveLayout, ArchiveViewerWrapper } from './styleWrappers';
|
|
17
16
|
import ArchiveSidebarRenderer from './archive-sidebar-renderer';
|
|
18
17
|
import { getMediaTypeFromFilename, getMimeTypeFromFilename, rejectAfter } from '../../utils';
|
|
@@ -202,11 +201,14 @@ export class ArchiveViewerBase extends BaseViewer {
|
|
|
202
201
|
"data-testid": "media-viewer-audio-content"
|
|
203
202
|
}, /*#__PURE__*/React.createElement(DefaultCoverWrapper, null, /*#__PURE__*/React.createElement(AudioIcon, {
|
|
204
203
|
label: "cover",
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
LEGACY_size: "xlarge",
|
|
205
|
+
color: "currentColor"
|
|
207
206
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
208
207
|
,
|
|
209
|
-
|
|
208
|
+
LEGACY_primaryColor: "#22272B"
|
|
209
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
210
|
+
,
|
|
211
|
+
LEGACY_secondaryColor: "#9FADBC"
|
|
210
212
|
})), /*#__PURE__*/React.createElement(CustomAudioPlayerWrapper, null, /*#__PURE__*/React.createElement(CustomMediaPlayer, {
|
|
211
213
|
type: "audio",
|
|
212
214
|
isAutoPlay: false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { globalMediaEventEmitter } from '@atlaskit/media-client';
|
|
4
|
-
import AudioIcon from '@atlaskit/icon/
|
|
4
|
+
import AudioIcon from '@atlaskit/icon/core/migration/audio--media-services-audio';
|
|
5
5
|
import { Outcome } from '../domain';
|
|
6
6
|
import { MediaViewerError } from '../errors';
|
|
7
7
|
import { AudioPlayer, AudioCover, Audio, DefaultCoverWrapper, CustomAudioPlayerWrapper } from '../styleWrappers';
|
|
@@ -9,14 +9,16 @@ import { BaseViewer } from './base-viewer';
|
|
|
9
9
|
import { isIE } from '../utils/isIE';
|
|
10
10
|
import { CustomMediaPlayer } from '@atlaskit/media-ui';
|
|
11
11
|
import { getObjectUrlFromFileState } from '../utils/getObjectUrlFromFileState';
|
|
12
|
-
import { blanketColor } from '../styles';
|
|
13
12
|
const defaultCover = /*#__PURE__*/React.createElement(DefaultCoverWrapper, null, /*#__PURE__*/React.createElement(AudioIcon, {
|
|
14
13
|
label: "cover",
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
LEGACY_size: "xlarge",
|
|
15
|
+
color: "currentColor"
|
|
17
16
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
18
17
|
,
|
|
19
|
-
|
|
18
|
+
LEGACY_primaryColor: "#22272B"
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
20
|
+
,
|
|
21
|
+
LEGACY_secondaryColor: "#9FADBC"
|
|
20
22
|
}));
|
|
21
23
|
const getCoverUrl = (item, mediaClient, collectionName) => mediaClient.getImageUrl(item.id, {
|
|
22
24
|
collection: collectionName
|
|
@@ -6,14 +6,14 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
6
6
|
import { useEffect, useRef, useState } from 'react';
|
|
7
7
|
import Button from '@atlaskit/button/new';
|
|
8
8
|
import TextField from '@atlaskit/textfield';
|
|
9
|
-
import LockIcon from '@atlaskit/icon/
|
|
9
|
+
import LockIcon from '@atlaskit/icon/core/migration/lock-locked--lock';
|
|
10
10
|
import Form, { Field } from '@atlaskit/form';
|
|
11
11
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
12
12
|
import { messages } from '@atlaskit/media-ui';
|
|
13
13
|
import { xcss, Box, Flex } from '@atlaskit/primitives';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
import { jsx, css } from '@emotion/react';
|
|
16
|
-
import ErrorIcon from '@atlaskit/icon/
|
|
16
|
+
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
17
17
|
const COLOR_SHADE = '#b6c2cf';
|
|
18
18
|
const headingStyle = css({
|
|
19
19
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
@@ -26,7 +26,8 @@ const errorMessageWrapperStyle = css({
|
|
|
26
26
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
27
27
|
color: '#FD9891',
|
|
28
28
|
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
29
|
-
display: 'flex'
|
|
29
|
+
display: 'flex',
|
|
30
|
+
alignItems: 'center'
|
|
30
31
|
});
|
|
31
32
|
const errorMessageStyle = css({
|
|
32
33
|
marginTop: '0px',
|
|
@@ -74,8 +75,8 @@ export const PDFPasswordInput = ({
|
|
|
74
75
|
justifyContent: "center"
|
|
75
76
|
}, jsx(LockIcon, {
|
|
76
77
|
label: "",
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
LEGACY_size: "xlarge",
|
|
79
|
+
color: COLOR_SHADE
|
|
79
80
|
})), jsx(Box, {
|
|
80
81
|
xcss: headerStyles
|
|
81
82
|
}, jsx("h1", {
|
|
@@ -102,7 +103,8 @@ export const PDFPasswordInput = ({
|
|
|
102
103
|
css: errorMessageWrapperStyle,
|
|
103
104
|
id: `${fieldProps.id}-error`
|
|
104
105
|
}, jsx(ErrorIcon, {
|
|
105
|
-
|
|
106
|
+
color: "currentColor",
|
|
107
|
+
LEGACY_size: "small",
|
|
106
108
|
label: ""
|
|
107
109
|
}), jsx("p", {
|
|
108
110
|
css: errorMessageStyle
|
|
@@ -2,8 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Component } from 'react';
|
|
4
4
|
import { hideControlsClassName, MediaButton } from '@atlaskit/media-ui';
|
|
5
|
-
import ZoomOutIcon from '@atlaskit/icon/
|
|
6
|
-
import ZoomInIcon from '@atlaskit/icon/
|
|
5
|
+
import ZoomOutIcon from '@atlaskit/icon/core/migration/zoom-out--media-services-zoom-out';
|
|
6
|
+
import ZoomInIcon from '@atlaskit/icon/core/migration/zoom-in--media-services-zoom-in';
|
|
7
7
|
import { ZoomWrapper, ZoomCenterControls, ZoomRightControls, ZoomLevelIndicator } from './styleWrappers';
|
|
8
8
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
9
9
|
import { fireAnalytics } from './analytics/';
|
|
@@ -56,12 +56,16 @@ export class ZoomControlsBase extends Component {
|
|
|
56
56
|
isDisabled: !zoomLevel.canZoomOut,
|
|
57
57
|
onClick: this.zoomOut,
|
|
58
58
|
iconBefore: /*#__PURE__*/React.createElement(ZoomOutIcon, {
|
|
59
|
+
color: "currentColor",
|
|
60
|
+
spacing: "spacious",
|
|
59
61
|
label: formatMessage(messages.zoom_out)
|
|
60
62
|
})
|
|
61
63
|
}), /*#__PURE__*/React.createElement(MediaButton, {
|
|
62
64
|
isDisabled: !zoomLevel.canZoomIn,
|
|
63
65
|
onClick: this.zoomIn,
|
|
64
66
|
iconBefore: /*#__PURE__*/React.createElement(ZoomInIcon, {
|
|
67
|
+
color: "currentColor",
|
|
68
|
+
spacing: "spacious",
|
|
65
69
|
label: formatMessage(messages.zoom_in)
|
|
66
70
|
})
|
|
67
71
|
})), /*#__PURE__*/React.createElement(ZoomRightControls, null, children, /*#__PURE__*/React.createElement(ZoomLevelIndicator, null, zoomLevel.asPercentage)))
|
|
@@ -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 = "48.
|
|
4
|
+
var packageVersion = "48.10.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 = "48.
|
|
8
|
+
var packageVersion = "48.10.1";
|
|
9
9
|
var ufoExperience;
|
|
10
10
|
var getExperience = function getExperience() {
|
|
11
11
|
if (!ufoExperience) {
|
package/dist/esm/content.js
CHANGED
|
@@ -7,7 +7,7 @@ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function
|
|
|
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/
|
|
10
|
+
import CrossIcon from '@atlaskit/icon/core/migration/close--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) {
|
|
@@ -41,6 +41,8 @@ export var Content = /*#__PURE__*/function (_Component) {
|
|
|
41
41
|
testId: "media-viewer-close-button",
|
|
42
42
|
onClick: onClose,
|
|
43
43
|
iconBefore: /*#__PURE__*/React.createElement(CrossIcon, {
|
|
44
|
+
color: "currentColor",
|
|
45
|
+
spacing: "spacious",
|
|
44
46
|
label: "Close"
|
|
45
47
|
})
|
|
46
48
|
})), children);
|
package/dist/esm/download.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["analyticspayload", "onClick"];
|
|
4
|
-
import DownloadIcon from '@atlaskit/icon/
|
|
4
|
+
import DownloadIcon from '@atlaskit/icon/core/migration/download';
|
|
5
5
|
import { isErrorFileState, isExternalImageIdentifier } from '@atlaskit/media-client';
|
|
6
6
|
import { MediaButton, messages } from '@atlaskit/media-ui';
|
|
7
7
|
import React, { useCallback } from 'react';
|
|
@@ -11,6 +11,8 @@ import { createDownloadButtonClickedEvent } from './analytics/events/ui/download
|
|
|
11
11
|
import { createFailedPreviewDownloadButtonClickedEvent } from './analytics/events/ui/failedPreviewDownloadButtonClicked';
|
|
12
12
|
import { DownloadButtonWrapper } from './styleWrappers';
|
|
13
13
|
var downloadIcon = /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
14
|
+
color: "currentColor",
|
|
15
|
+
spacing: "spacious",
|
|
14
16
|
label: "Download"
|
|
15
17
|
});
|
|
16
18
|
function noop() {}
|
package/dist/esm/navigation.js
CHANGED
|
@@ -85,7 +85,11 @@ export var NavigationBase = /*#__PURE__*/function (_Component) {
|
|
|
85
85
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
86
86
|
testId: prevNavButtonId,
|
|
87
87
|
onClick: prev('mouse'),
|
|
88
|
-
iconBefore:
|
|
88
|
+
iconBefore:
|
|
89
|
+
/*#__PURE__*/
|
|
90
|
+
// TODO: https://product-fabric.atlassian.net/browse/DSP-20917
|
|
91
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
92
|
+
React.createElement(ArrowLeftCircleIcon
|
|
89
93
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
90
94
|
, {
|
|
91
95
|
primaryColor: "#9FADBC"
|
|
@@ -107,7 +111,11 @@ export var NavigationBase = /*#__PURE__*/function (_Component) {
|
|
|
107
111
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
108
112
|
testId: nextNavButtonId,
|
|
109
113
|
onClick: next('mouse'),
|
|
110
|
-
iconBefore:
|
|
114
|
+
iconBefore:
|
|
115
|
+
/*#__PURE__*/
|
|
116
|
+
// TODO: https://product-fabric.atlassian.net/browse/DSP-20917
|
|
117
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
118
|
+
React.createElement(ArrowRightCircleIcon
|
|
111
119
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
112
120
|
, {
|
|
113
121
|
primaryColor: "#9FADBC"
|
|
@@ -316,6 +316,7 @@ var defaultCoverWrapperStyles = css({
|
|
|
316
316
|
display: 'flex',
|
|
317
317
|
alignItems: 'center',
|
|
318
318
|
justifyContent: 'center',
|
|
319
|
+
color: "var(--ds-text, #9FADBC)",
|
|
319
320
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
320
321
|
'> *': {
|
|
321
322
|
transform: 'scale(2)'
|
|
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { ButtonItem } from '@atlaskit/side-navigation';
|
|
14
14
|
import Folder24Icon from '@atlaskit/icon-file-type/glyph/folder/24';
|
|
15
|
-
import DownloadIcon from '@atlaskit/icon/
|
|
15
|
+
import DownloadIcon from '@atlaskit/icon/core/migration/download';
|
|
16
16
|
import { downloadUrl } from '@atlaskit/media-common';
|
|
17
17
|
import { MediaTypeIcon } from '@atlaskit/media-ui/media-type-icon';
|
|
18
18
|
import { ArchiveSidebarFolderWrapper, ArchiveSidebarFileEntryWrapper, ArchiveDownloadButtonWrapper, SidebarItemWrapper } from './styleWrappers';
|
|
@@ -65,6 +65,8 @@ export var ArchiveSidebarFolderEntry = /*#__PURE__*/function (_React$Component)
|
|
|
65
65
|
return _this.downloadZipEntry(entry, root);
|
|
66
66
|
}
|
|
67
67
|
}, /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
68
|
+
color: "currentColor",
|
|
69
|
+
spacing: "spacious",
|
|
68
70
|
label: "Download"
|
|
69
71
|
}));
|
|
70
72
|
});
|
|
@@ -8,9 +8,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import ArrowLeftIcon from '@atlaskit/icon/
|
|
11
|
+
import ArrowLeftIcon from '@atlaskit/icon/core/migration/arrow-left';
|
|
12
12
|
import { ButtonItem } from '@atlaskit/side-navigation';
|
|
13
|
-
import HomeIcon from '@atlaskit/icon/
|
|
13
|
+
import HomeIcon from '@atlaskit/icon/core/migration/home';
|
|
14
14
|
import { getFormattedFolderName } from '../../utils';
|
|
15
15
|
import { SidebarHeaderEntry, SidebarHeaderIcon, SidebarHeaderWrapper } from './styleWrappers';
|
|
16
16
|
import { itemStyle } from './styles';
|
|
@@ -26,8 +26,12 @@ export var ArchiveSidebarHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26
26
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
27
27
|
_defineProperty(_assertThisInitialized(_this), "getHeaderIcon", function () {
|
|
28
28
|
return !!_this.props.folderName ? /*#__PURE__*/React.createElement(ArrowLeftIcon, {
|
|
29
|
+
color: "currentColor",
|
|
30
|
+
spacing: "spacious",
|
|
29
31
|
label: "Back"
|
|
30
32
|
}) : /*#__PURE__*/React.createElement(HomeIcon, {
|
|
33
|
+
color: "currentColor",
|
|
34
|
+
spacing: "spacious",
|
|
31
35
|
label: "Home"
|
|
32
36
|
});
|
|
33
37
|
});
|
|
@@ -19,12 +19,11 @@ import { CustomMediaPlayer, messages } from '@atlaskit/media-ui';
|
|
|
19
19
|
import { getLanguageType, isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
|
|
20
20
|
import { Outcome } from '../../domain';
|
|
21
21
|
import { CustomVideoPlayerWrapper, AudioPlayer, CustomAudioPlayerWrapper, DefaultCoverWrapper, ListWrapper } from '../../styleWrappers';
|
|
22
|
-
import AudioIcon from '@atlaskit/icon/
|
|
22
|
+
import AudioIcon from '@atlaskit/icon/core/migration/audio--media-services-audio';
|
|
23
23
|
import ErrorMessage from '../../errorMessage';
|
|
24
24
|
import { BaseViewer } from '../base-viewer';
|
|
25
25
|
import { InteractiveImg } from '../image/interactive-img';
|
|
26
26
|
import { PDFRenderer } from '../doc/pdfRenderer';
|
|
27
|
-
import { blanketColor } from '../../styles';
|
|
28
27
|
import { ArchiveItemViewerWrapper, ArchiveLayout, ArchiveViewerWrapper } from './styleWrappers';
|
|
29
28
|
import ArchiveSidebarRenderer from './archive-sidebar-renderer';
|
|
30
29
|
import { getMediaTypeFromFilename, getMimeTypeFromFilename, rejectAfter } from '../../utils';
|
|
@@ -292,11 +291,14 @@ export var ArchiveViewerBase = /*#__PURE__*/function (_BaseViewer) {
|
|
|
292
291
|
"data-testid": "media-viewer-audio-content"
|
|
293
292
|
}, /*#__PURE__*/React.createElement(DefaultCoverWrapper, null, /*#__PURE__*/React.createElement(AudioIcon, {
|
|
294
293
|
label: "cover",
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
LEGACY_size: "xlarge",
|
|
295
|
+
color: "currentColor"
|
|
297
296
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
298
297
|
,
|
|
299
|
-
|
|
298
|
+
LEGACY_primaryColor: "#22272B"
|
|
299
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
300
|
+
,
|
|
301
|
+
LEGACY_secondaryColor: "#9FADBC"
|
|
300
302
|
})), /*#__PURE__*/React.createElement(CustomAudioPlayerWrapper, null, /*#__PURE__*/React.createElement(CustomMediaPlayer, {
|
|
301
303
|
type: "audio",
|
|
302
304
|
isAutoPlay: false,
|
|
@@ -11,7 +11,7 @@ function _createSuper(t) { var r = _isNativeReflectConstruct(); return function
|
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { globalMediaEventEmitter } from '@atlaskit/media-client';
|
|
14
|
-
import AudioIcon from '@atlaskit/icon/
|
|
14
|
+
import AudioIcon from '@atlaskit/icon/core/migration/audio--media-services-audio';
|
|
15
15
|
import { Outcome } from '../domain';
|
|
16
16
|
import { MediaViewerError } from '../errors';
|
|
17
17
|
import { AudioPlayer, AudioCover, Audio, DefaultCoverWrapper, CustomAudioPlayerWrapper } from '../styleWrappers';
|
|
@@ -19,14 +19,16 @@ import { BaseViewer } from './base-viewer';
|
|
|
19
19
|
import { isIE } from '../utils/isIE';
|
|
20
20
|
import { CustomMediaPlayer } from '@atlaskit/media-ui';
|
|
21
21
|
import { getObjectUrlFromFileState } from '../utils/getObjectUrlFromFileState';
|
|
22
|
-
import { blanketColor } from '../styles';
|
|
23
22
|
var defaultCover = /*#__PURE__*/React.createElement(DefaultCoverWrapper, null, /*#__PURE__*/React.createElement(AudioIcon, {
|
|
24
23
|
label: "cover",
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
LEGACY_size: "xlarge",
|
|
25
|
+
color: "currentColor"
|
|
27
26
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
28
27
|
,
|
|
29
|
-
|
|
28
|
+
LEGACY_primaryColor: "#22272B"
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
30
|
+
,
|
|
31
|
+
LEGACY_secondaryColor: "#9FADBC"
|
|
30
32
|
}));
|
|
31
33
|
var getCoverUrl = function getCoverUrl(item, mediaClient, collectionName) {
|
|
32
34
|
return mediaClient.getImageUrl(item.id, {
|
|
@@ -7,14 +7,14 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
7
7
|
import { useEffect, useRef, useState } from 'react';
|
|
8
8
|
import Button from '@atlaskit/button/new';
|
|
9
9
|
import TextField from '@atlaskit/textfield';
|
|
10
|
-
import LockIcon from '@atlaskit/icon/
|
|
10
|
+
import LockIcon from '@atlaskit/icon/core/migration/lock-locked--lock';
|
|
11
11
|
import Form, { Field } from '@atlaskit/form';
|
|
12
12
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
13
13
|
import { messages } from '@atlaskit/media-ui';
|
|
14
14
|
import { xcss, Box, Flex } from '@atlaskit/primitives';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
import { jsx, css } from '@emotion/react';
|
|
17
|
-
import ErrorIcon from '@atlaskit/icon/
|
|
17
|
+
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
18
18
|
var COLOR_SHADE = '#b6c2cf';
|
|
19
19
|
var headingStyle = css({
|
|
20
20
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
@@ -27,7 +27,8 @@ var errorMessageWrapperStyle = css({
|
|
|
27
27
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
28
28
|
color: '#FD9891',
|
|
29
29
|
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
30
|
-
display: 'flex'
|
|
30
|
+
display: 'flex',
|
|
31
|
+
alignItems: 'center'
|
|
31
32
|
});
|
|
32
33
|
var errorMessageStyle = css({
|
|
33
34
|
marginTop: '0px',
|
|
@@ -77,8 +78,8 @@ export var PDFPasswordInput = function PDFPasswordInput(_ref) {
|
|
|
77
78
|
justifyContent: "center"
|
|
78
79
|
}, jsx(LockIcon, {
|
|
79
80
|
label: "",
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
LEGACY_size: "xlarge",
|
|
82
|
+
color: COLOR_SHADE
|
|
82
83
|
})), jsx(Box, {
|
|
83
84
|
xcss: headerStyles
|
|
84
85
|
}, jsx("h1", {
|
|
@@ -105,7 +106,8 @@ export var PDFPasswordInput = function PDFPasswordInput(_ref) {
|
|
|
105
106
|
css: errorMessageWrapperStyle,
|
|
106
107
|
id: "".concat(fieldProps.id, "-error")
|
|
107
108
|
}, jsx(ErrorIcon, {
|
|
108
|
-
|
|
109
|
+
color: "currentColor",
|
|
110
|
+
LEGACY_size: "small",
|
|
109
111
|
label: ""
|
|
110
112
|
}), jsx("p", {
|
|
111
113
|
css: errorMessageStyle
|
package/dist/esm/zoomControls.js
CHANGED
|
@@ -10,8 +10,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { Component } from 'react';
|
|
12
12
|
import { hideControlsClassName, MediaButton } from '@atlaskit/media-ui';
|
|
13
|
-
import ZoomOutIcon from '@atlaskit/icon/
|
|
14
|
-
import ZoomInIcon from '@atlaskit/icon/
|
|
13
|
+
import ZoomOutIcon from '@atlaskit/icon/core/migration/zoom-out--media-services-zoom-out';
|
|
14
|
+
import ZoomInIcon from '@atlaskit/icon/core/migration/zoom-in--media-services-zoom-in';
|
|
15
15
|
import { ZoomWrapper, ZoomCenterControls, ZoomRightControls, ZoomLevelIndicator } from './styleWrappers';
|
|
16
16
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
17
17
|
import { fireAnalytics } from './analytics/';
|
|
@@ -69,12 +69,16 @@ export var ZoomControlsBase = /*#__PURE__*/function (_Component) {
|
|
|
69
69
|
isDisabled: !zoomLevel.canZoomOut,
|
|
70
70
|
onClick: this.zoomOut,
|
|
71
71
|
iconBefore: /*#__PURE__*/React.createElement(ZoomOutIcon, {
|
|
72
|
+
color: "currentColor",
|
|
73
|
+
spacing: "spacious",
|
|
72
74
|
label: formatMessage(messages.zoom_out)
|
|
73
75
|
})
|
|
74
76
|
}), /*#__PURE__*/React.createElement(MediaButton, {
|
|
75
77
|
isDisabled: !zoomLevel.canZoomIn,
|
|
76
78
|
onClick: this.zoomIn,
|
|
77
79
|
iconBefore: /*#__PURE__*/React.createElement(ZoomInIcon, {
|
|
80
|
+
color: "currentColor",
|
|
81
|
+
spacing: "spacious",
|
|
78
82
|
label: formatMessage(messages.zoom_in)
|
|
79
83
|
})
|
|
80
84
|
})), /*#__PURE__*/React.createElement(ZoomRightControls, null, children, /*#__PURE__*/React.createElement(ZoomLevelIndicator, null, zoomLevel.asPercentage)))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "48.
|
|
3
|
+
"version": "48.10.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/"
|
|
@@ -35,23 +35,23 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
38
|
-
"@atlaskit/button": "^20.
|
|
38
|
+
"@atlaskit/button": "^20.2.0",
|
|
39
39
|
"@atlaskit/code": "^15.6.0",
|
|
40
40
|
"@atlaskit/form": "^10.5.0",
|
|
41
41
|
"@atlaskit/icon": "^22.18.0",
|
|
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.5.0",
|
|
46
46
|
"@atlaskit/media-svg": "^0.2.0",
|
|
47
|
-
"@atlaskit/media-ui": "^25.
|
|
47
|
+
"@atlaskit/media-ui": "^25.15.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
|
-
"@atlaskit/primitives": "^12.
|
|
49
|
+
"@atlaskit/primitives": "^12.2.0",
|
|
50
50
|
"@atlaskit/side-navigation": "^3.5.0",
|
|
51
51
|
"@atlaskit/spinner": "^16.3.0",
|
|
52
52
|
"@atlaskit/textfield": "^6.5.0",
|
|
53
53
|
"@atlaskit/theme": "^13.0.0",
|
|
54
|
-
"@atlaskit/tokens": "^
|
|
54
|
+
"@atlaskit/tokens": "^2.0.0",
|
|
55
55
|
"@atlaskit/ufo": "^0.3.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|
|
57
57
|
"@kenjiuno/msgreader": "^1.2.6",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"@atlaskit/media-integration-test-helpers": "^3.1.0",
|
|
80
80
|
"@atlaskit/media-state": "^1.1.0",
|
|
81
81
|
"@atlaskit/media-test-data": "^2.6.0",
|
|
82
|
-
"@atlaskit/media-test-helpers": "^34.
|
|
82
|
+
"@atlaskit/media-test-helpers": "^34.4.0",
|
|
83
83
|
"@atlaskit/ssr": "*",
|
|
84
|
-
"@atlaskit/toggle": "13.4.
|
|
84
|
+
"@atlaskit/toggle": "13.4.2",
|
|
85
85
|
"@atlaskit/visual-regression": "*",
|
|
86
86
|
"@atlassian/feature-flags-test-utils": "*",
|
|
87
87
|
"@atlassian/ufo": "^0.4.0",
|