@atlaskit/media-viewer 54.5.49 → 54.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 +26 -0
- package/dist/cjs/analytics/events/operational/loadSucceeded.js +2 -2
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +9 -8
- package/dist/cjs/components/media-viewer.js +6 -5
- package/dist/cjs/components/portal.js +1 -1
- package/dist/cjs/download.js +5 -5
- package/dist/cjs/errorMessage.js +2 -2
- package/dist/cjs/header.js +6 -5
- package/dist/cjs/item-viewer.js +14 -13
- package/dist/cjs/loading.js +1 -1
- package/dist/cjs/media-viewer.js +2 -2
- package/dist/cjs/navigation.js +5 -5
- package/dist/cjs/styleWrappers.js +1 -1
- package/dist/cjs/viewers/archiveSidebar/archive-download-button.js +2 -2
- package/dist/cjs/viewers/archiveSidebar/archive-sidebar-folder-entry.js +2 -2
- package/dist/cjs/viewers/archiveSidebar/archive.js +5 -5
- package/dist/cjs/viewers/archiveSidebar/custom-button-item.js +2 -2
- package/dist/cjs/viewers/codeViewer/codeViewerRenderer-compiled.js +2 -2
- package/dist/cjs/viewers/codeViewer/index.js +2 -2
- package/dist/cjs/viewers/doc/doc-viewer.js +7 -6
- package/dist/cjs/viewers/doc/index.js +2 -2
- package/dist/cjs/viewers/doc/passwordInput.js +8 -7
- package/dist/cjs/viewers/image/index.js +3 -3
- package/dist/cjs/viewers/image/interactive-img.js +3 -3
- package/dist/cjs/viewers/svg/index.js +3 -3
- package/dist/cjs/viewers/video.js +5 -5
- package/dist/cjs/zoomControls.js +2 -2
- package/dist/es2019/analytics/events/operational/loadSucceeded.js +1 -1
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/ufoExperiences.js +4 -3
- package/dist/es2019/components/media-viewer.js +3 -2
- package/dist/es2019/components/portal.js +1 -1
- package/dist/es2019/download.js +2 -2
- package/dist/es2019/errorMessage.js +1 -1
- package/dist/es2019/header.js +3 -2
- package/dist/es2019/item-viewer.js +4 -3
- package/dist/es2019/loading.js +1 -1
- package/dist/es2019/media-viewer.js +1 -1
- package/dist/es2019/navigation.js +2 -2
- package/dist/es2019/styleWrappers.js +1 -1
- package/dist/es2019/viewers/archiveSidebar/archive-download-button.js +1 -1
- package/dist/es2019/viewers/archiveSidebar/archive-sidebar-folder-entry.js +1 -1
- package/dist/es2019/viewers/archiveSidebar/archive.js +2 -2
- package/dist/es2019/viewers/archiveSidebar/custom-button-item.js +1 -1
- package/dist/es2019/viewers/codeViewer/codeViewerRenderer-compiled.js +1 -1
- package/dist/es2019/viewers/codeViewer/index.js +1 -1
- package/dist/es2019/viewers/doc/doc-viewer.js +4 -3
- package/dist/es2019/viewers/doc/index.js +1 -1
- package/dist/es2019/viewers/doc/passwordInput.js +5 -4
- package/dist/es2019/viewers/image/index.js +1 -1
- package/dist/es2019/viewers/image/interactive-img.js +2 -2
- package/dist/es2019/viewers/svg/index.js +2 -2
- package/dist/es2019/viewers/video.js +1 -1
- package/dist/es2019/zoomControls.js +1 -1
- package/dist/esm/analytics/events/operational/loadSucceeded.js +1 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/ufoExperiences.js +4 -3
- package/dist/esm/components/media-viewer.js +3 -2
- package/dist/esm/components/portal.js +1 -1
- package/dist/esm/download.js +2 -2
- package/dist/esm/errorMessage.js +1 -1
- package/dist/esm/header.js +3 -2
- package/dist/esm/item-viewer.js +4 -3
- package/dist/esm/loading.js +1 -1
- package/dist/esm/media-viewer.js +1 -1
- package/dist/esm/navigation.js +2 -2
- package/dist/esm/styleWrappers.js +1 -1
- package/dist/esm/viewers/archiveSidebar/archive-download-button.js +1 -1
- package/dist/esm/viewers/archiveSidebar/archive-sidebar-folder-entry.js +1 -1
- package/dist/esm/viewers/archiveSidebar/archive.js +2 -2
- package/dist/esm/viewers/archiveSidebar/custom-button-item.js +1 -1
- package/dist/esm/viewers/codeViewer/codeViewerRenderer-compiled.js +1 -1
- package/dist/esm/viewers/codeViewer/index.js +1 -1
- package/dist/esm/viewers/doc/doc-viewer.js +4 -3
- package/dist/esm/viewers/doc/index.js +1 -1
- package/dist/esm/viewers/doc/passwordInput.js +5 -4
- package/dist/esm/viewers/image/index.js +1 -1
- package/dist/esm/viewers/image/interactive-img.js +2 -2
- package/dist/esm/viewers/svg/index.js +2 -2
- package/dist/esm/viewers/video.js +1 -1
- package/dist/esm/zoomControls.js +1 -1
- package/dist/types/analytics/index.d.ts +1 -1
- package/dist/types/components/types.d.ts +1 -1
- package/dist/types/errorMessage.d.ts +1 -1
- package/dist/types/item-viewer.d.ts +1 -1
- package/dist/types/navigation.d.ts +1 -1
- package/dist/types/viewers/archiveSidebar/archive.d.ts +1 -1
- package/dist/types/viewers/archiveSidebar/custom-button-item.d.ts +1 -1
- package/dist/types/viewers/codeViewer/codeViewerRenderer-compiled.d.ts +1 -1
- package/dist/types/viewers/codeViewer/codeViewerRenderer.d.ts +1 -1
- package/dist/types/viewers/doc/passwordInput.d.ts +1 -1
- package/dist/types/viewers/image/interactive-img.d.ts +1 -1
- package/dist/types/viewers/svg/index.d.ts +1 -1
- package/dist/types/zoomControls.d.ts +1 -1
- package/example-helpers/svg/toggle.tsx +1 -1
- package/example-helpers/svg/uploader.ts +1 -1
- package/package.json +28 -25
|
@@ -18,7 +18,7 @@ var _domain = require("../../domain");
|
|
|
18
18
|
var _baseViewer = require("../base-viewer");
|
|
19
19
|
var _zoomLevel = require("../../domain/zoomLevel");
|
|
20
20
|
var _docViewer = require("./doc-viewer");
|
|
21
|
-
var
|
|
21
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
22
22
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
23
23
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
24
|
var DocViewer = exports.DocViewer = /*#__PURE__*/function (_BaseViewer) {
|
|
@@ -63,7 +63,7 @@ var DocViewer = exports.DocViewer = /*#__PURE__*/function (_BaseViewer) {
|
|
|
63
63
|
this.setState({
|
|
64
64
|
content: _domain.Outcome.successful(item.id)
|
|
65
65
|
});
|
|
66
|
-
if ((0,
|
|
66
|
+
if ((0, _fg.fg)('download_event_for_jira_attachments')) {
|
|
67
67
|
this.onMediaDisplayed();
|
|
68
68
|
}
|
|
69
69
|
case 1:
|
|
@@ -13,15 +13,16 @@ var React = _react;
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
|
-
var
|
|
17
|
-
var
|
|
16
|
+
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
17
|
+
var _textField = _interopRequireDefault(require("@atlaskit/textfield/text-field"));
|
|
18
18
|
var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
|
|
19
|
-
var _form =
|
|
19
|
+
var _form = _interopRequireDefault(require("@atlaskit/form/form"));
|
|
20
|
+
var _field = _interopRequireDefault(require("@atlaskit/form/field"));
|
|
20
21
|
var _reactIntl = require("react-intl");
|
|
21
22
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
22
23
|
var _primitives = require("@atlaskit/primitives");
|
|
23
24
|
var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
|
|
24
|
-
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
25
|
+
var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
|
|
25
26
|
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); }
|
|
26
27
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
27
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -82,7 +83,7 @@ var PasswordInput = exports.PasswordInput = function PasswordInput(_ref) {
|
|
|
82
83
|
}, /*#__PURE__*/React.createElement(_heading.default, {
|
|
83
84
|
as: "h1",
|
|
84
85
|
size: "medium"
|
|
85
|
-
}, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.password_protected_pdf)))), /*#__PURE__*/React.createElement(
|
|
86
|
+
}, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.password_protected_pdf)))), /*#__PURE__*/React.createElement(_field.default, {
|
|
86
87
|
name: "password",
|
|
87
88
|
defaultValue: "",
|
|
88
89
|
isRequired: true
|
|
@@ -90,7 +91,7 @@ var PasswordInput = exports.PasswordInput = function PasswordInput(_ref) {
|
|
|
90
91
|
var fieldProps = _ref3.fieldProps;
|
|
91
92
|
return /*#__PURE__*/React.createElement(_primitives.Box, {
|
|
92
93
|
xcss: inputStyle
|
|
93
|
-
}, /*#__PURE__*/React.createElement(
|
|
94
|
+
}, /*#__PURE__*/React.createElement(_textField.default, (0, _extends2.default)({}, fieldProps, {
|
|
94
95
|
type: "password",
|
|
95
96
|
"aria-label": intl.formatMessage(_mediaUi.messages.password),
|
|
96
97
|
placeholder: intl.formatMessage(_mediaUi.messages.enter_password),
|
|
@@ -115,7 +116,7 @@ var PasswordInput = exports.PasswordInput = function PasswordInput(_ref) {
|
|
|
115
116
|
}, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _mediaUi.messages.incorrect_password)))));
|
|
116
117
|
}), /*#__PURE__*/React.createElement(_primitives.Box, {
|
|
117
118
|
xcss: footerStyles
|
|
118
|
-
}, /*#__PURE__*/React.createElement(
|
|
119
|
+
}, /*#__PURE__*/React.createElement(_button.default, {
|
|
119
120
|
appearance: "primary",
|
|
120
121
|
type: "submit",
|
|
121
122
|
isLoading: submitting
|
|
@@ -17,7 +17,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
17
17
|
var _mediaClient = require("@atlaskit/media-client");
|
|
18
18
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
19
19
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
20
|
-
var
|
|
20
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
21
21
|
var _domain = require("../../domain");
|
|
22
22
|
var _errors = require("../../errors");
|
|
23
23
|
var _interactiveImg = require("./interactive-img");
|
|
@@ -156,7 +156,7 @@ var ImageViewer = exports.ImageViewer = /*#__PURE__*/function (_BaseViewer) {
|
|
|
156
156
|
break;
|
|
157
157
|
}
|
|
158
158
|
// Prefer the MIME type of the actual fetched bytes over the declared one.
|
|
159
|
-
effectiveMimeType = (0,
|
|
159
|
+
effectiveMimeType = (0, _fg.fg)('platform_media_unsupported_mime_routing') ? renderedBlobMimeType !== null && renderedBlobMimeType !== void 0 ? renderedBlobMimeType : fileState.mimeType : fileState.mimeType;
|
|
160
160
|
if (!(0, _mediaCommon.isImageMimeTypeSupportedByBrowser)(effectiveMimeType)) {
|
|
161
161
|
_context.next = 16;
|
|
162
162
|
break;
|
|
@@ -168,7 +168,7 @@ var ImageViewer = exports.ImageViewer = /*#__PURE__*/function (_BaseViewer) {
|
|
|
168
168
|
_context.next = 17;
|
|
169
169
|
break;
|
|
170
170
|
case 16:
|
|
171
|
-
if (!(0,
|
|
171
|
+
if (!(0, _fg.fg)('platform_media_unsupported_mime_routing')) {
|
|
172
172
|
_context.next = 17;
|
|
173
173
|
break;
|
|
174
174
|
}
|
|
@@ -16,10 +16,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
16
16
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
17
17
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
18
18
|
var _constants = require("@atlaskit/media-client/constants");
|
|
19
|
-
var
|
|
19
|
+
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
20
20
|
var _videoHd = _interopRequireDefault(require("@atlaskit/icon-lab/core/video-hd"));
|
|
21
21
|
var _videoHdFilled = _interopRequireDefault(require("@atlaskit/icon-lab/core/video-hd-filled"));
|
|
22
|
-
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
22
|
+
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
23
23
|
var _styleWrappers = require("../../styleWrappers");
|
|
24
24
|
var _zoomLevel = require("../../domain/zoomLevel");
|
|
25
25
|
var _closeOnDirectClick = require("../../utils/closeOnDirectClick");
|
|
@@ -301,7 +301,7 @@ var InteractiveImgComponent = exports.InteractiveImgComponent = /*#__PURE__*/fun
|
|
|
301
301
|
}
|
|
302
302
|
}]);
|
|
303
303
|
}(_react.default.Component);
|
|
304
|
-
var InteractiveImg = exports.InteractiveImg = (0,
|
|
304
|
+
var InteractiveImg = exports.InteractiveImg = (0, _withAnalyticsEvents.default)({
|
|
305
305
|
onBlanketClicked: function onBlanketClicked(createAnalyticsEvent) {
|
|
306
306
|
var event = createAnalyticsEvent((0, _closed.createClosedEvent)('blanket'));
|
|
307
307
|
event.fire(_mediaCommon.ANALYTICS_MEDIA_CHANNEL);
|
|
@@ -10,12 +10,12 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
12
12
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
13
|
-
var
|
|
13
|
+
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
14
14
|
var _styleWrappers = require("../../styleWrappers");
|
|
15
15
|
var _zoomLevel = require("../../domain/zoomLevel");
|
|
16
16
|
var _zoomControls = require("../../zoomControls");
|
|
17
17
|
var _closed = require("../../analytics/events/ui/closed");
|
|
18
|
-
var _mediaSvg = _interopRequireDefault(require("@atlaskit/media-svg"));
|
|
18
|
+
var _mediaSvg = _interopRequireDefault(require("@atlaskit/media-svg/media-svg"));
|
|
19
19
|
var _errors = require("../../errors");
|
|
20
20
|
var _utils = require("./utils");
|
|
21
21
|
var _ImageWrapper = require("./ImageWrapper");
|
|
@@ -180,7 +180,7 @@ var SvgViewerBase = function SvgViewerBase(_ref) {
|
|
|
180
180
|
onChange: onZoomChange
|
|
181
181
|
}));
|
|
182
182
|
};
|
|
183
|
-
var SvgViewer = exports.SvgViewer = (0,
|
|
183
|
+
var SvgViewer = exports.SvgViewer = (0, _withAnalyticsEvents.default)({
|
|
184
184
|
onBlanketClicked: function onBlanketClicked(createAnalyticsEvent) {
|
|
185
185
|
var event = createAnalyticsEvent((0, _closed.createClosedEvent)('blanket'));
|
|
186
186
|
event.fire(_mediaCommon.ANALYTICS_MEDIA_CHANNEL);
|
|
@@ -22,7 +22,7 @@ var _styleWrappers = require("../styleWrappers");
|
|
|
22
22
|
var _isIE = require("../utils/isIE");
|
|
23
23
|
var _baseViewer = require("./base-viewer");
|
|
24
24
|
var _getObjectUrlFromFileState = require("../utils/getObjectUrlFromFileState");
|
|
25
|
-
var
|
|
25
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
26
26
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
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 hdArtifact = 'video_1280.mp4';
|
|
@@ -46,12 +46,12 @@ var VideoViewer = exports.VideoViewer = /*#__PURE__*/function (_BaseViewer) {
|
|
|
46
46
|
onCanPlay && onCanPlay();
|
|
47
47
|
});
|
|
48
48
|
(0, _defineProperty2.default)(_this, "onPlay", function () {
|
|
49
|
-
if ((0,
|
|
49
|
+
if ((0, _fg.fg)('platform_media_resume_video_on_token_expiry')) {
|
|
50
50
|
_this.init();
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
(0, _defineProperty2.default)(_this, "onTimeChanged", function () {
|
|
54
|
-
if ((0,
|
|
54
|
+
if ((0, _fg.fg)('platform_media_resume_video_on_token_expiry')) {
|
|
55
55
|
_this.init();
|
|
56
56
|
}
|
|
57
57
|
});
|
|
@@ -91,7 +91,7 @@ var VideoViewer = exports.VideoViewer = /*#__PURE__*/function (_BaseViewer) {
|
|
|
91
91
|
var hdAvailable = isHDAvailable(item);
|
|
92
92
|
return useCustomVideoPlayer ? /*#__PURE__*/_react.default.createElement(_styleWrappers.CustomVideoPlayerWrapper, {
|
|
93
93
|
"data-testid": "media-viewer-video-content"
|
|
94
|
-
}, (0, _mediaClient.isFileIdentifier)(identifier) && (0,
|
|
94
|
+
}, (0, _mediaClient.isFileIdentifier)(identifier) && (0, _fg.fg)('platform_media_video_captions') ? /*#__PURE__*/_react.default.createElement(_mediaUi.MediaPlayer, {
|
|
95
95
|
identifier: identifier,
|
|
96
96
|
type: "video",
|
|
97
97
|
isAutoPlay: isAutoPlay,
|
|
@@ -143,7 +143,7 @@ var VideoViewer = exports.VideoViewer = /*#__PURE__*/function (_BaseViewer) {
|
|
|
143
143
|
_context.next = 7;
|
|
144
144
|
break;
|
|
145
145
|
}
|
|
146
|
-
if (!(0,
|
|
146
|
+
if (!(0, _fg.fg)('platform_media_video_sd_fallback')) {
|
|
147
147
|
_context.next = 3;
|
|
148
148
|
break;
|
|
149
149
|
}
|
package/dist/cjs/zoomControls.js
CHANGED
|
@@ -17,7 +17,7 @@ var _mediaUi = require("@atlaskit/media-ui");
|
|
|
17
17
|
var _zoomOut = _interopRequireDefault(require("@atlaskit/icon/core/zoom-out"));
|
|
18
18
|
var _zoomIn = _interopRequireDefault(require("@atlaskit/icon/core/zoom-in"));
|
|
19
19
|
var _styleWrappers = require("./styleWrappers");
|
|
20
|
-
var
|
|
20
|
+
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
21
21
|
var _analytics = require("./analytics/");
|
|
22
22
|
var _zoomInButtonClicked = require("./analytics/events/ui/zoomInButtonClicked");
|
|
23
23
|
var _zoomOutButtonClicked = require("./analytics/events/ui/zoomOutButtonClicked");
|
|
@@ -91,4 +91,4 @@ var ZoomControlsBase = exports.ZoomControlsBase = /*#__PURE__*/function (_Compon
|
|
|
91
91
|
}
|
|
92
92
|
}]);
|
|
93
93
|
}(_react.Component); // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
94
|
-
var ZoomControls = exports.ZoomControls = (0,
|
|
94
|
+
var ZoomControls = exports.ZoomControls = (0, _withAnalyticsEvents.default)({})((0, _reactIntl.injectIntl)(ZoomControlsBase));
|
|
@@ -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 = "54.5.
|
|
4
|
+
const packageVersion = "54.5.50";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { UFOExperience
|
|
1
|
+
import { UFOExperience } from '@atlaskit/ufo/experience';
|
|
2
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
2
3
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
3
4
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
6
|
const packageName = "@atlaskit/media-viewer";
|
|
6
|
-
const packageVersion = "54.5.
|
|
7
|
+
const packageVersion = "54.5.50";
|
|
7
8
|
let ufoExperience;
|
|
8
9
|
const getExperience = () => {
|
|
9
10
|
if (!ufoExperience) {
|
|
@@ -2,8 +2,9 @@ import React, { useEffect, useMemo } from 'react';
|
|
|
2
2
|
import { MediaViewer as MediaViewerNextGen } from '../media-viewer';
|
|
3
3
|
import { isSameIdentifier } from '../utils';
|
|
4
4
|
import { isFileIdentifier } from '@atlaskit/media-client';
|
|
5
|
-
import { withMediaClient
|
|
6
|
-
import {
|
|
5
|
+
import { withMediaClient } from '@atlaskit/media-client-react/with-media-client';
|
|
6
|
+
import { withMediaClientAndSettings } from '@atlaskit/media-client-react/with-media-client-and-settings';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
8
|
const ensureCollectionName = (identifier, collectionName) => isFileIdentifier(identifier) ? {
|
|
8
9
|
...identifier,
|
|
9
10
|
collectionName: identifier.collectionName || collectionName
|
package/dist/es2019/download.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
2
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
3
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';
|
|
@@ -12,7 +12,7 @@ import { createFailedPreviewDownloadButtonClickedEvent } from './analytics/event
|
|
|
12
12
|
import { DownloadButtonWrapper } from './styleWrappers';
|
|
13
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
14
|
import { MediaViewerError } from './errors';
|
|
15
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
15
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
16
16
|
import { AbuseModal } from '@atlaskit/media-ui/abuseModal';
|
|
17
17
|
const downloadIcon = /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
18
18
|
color: "currentColor",
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
4
4
|
import { messages as i18nMessages } from '@atlaskit/media-ui';
|
|
5
|
-
import
|
|
5
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
6
6
|
import { ErrorMessageWrapper, ErrorImage } from './styleWrappers';
|
|
7
7
|
import { errorLoadingFile } from './error-images';
|
|
8
8
|
import { fireAnalytics } from './analytics';
|
package/dist/es2019/header.js
CHANGED
|
@@ -3,12 +3,13 @@ import { isExternalImageIdentifier, isErrorFileState, toCommonMediaClientError }
|
|
|
3
3
|
import { hideControlsClassName, messages, toHumanReadableMediaSize, MediaButton } from '@atlaskit/media-ui';
|
|
4
4
|
import { getLanguageType, getExtension, isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
|
|
5
5
|
import { isZipMimeType } from '@atlaskit/media-common/isZipMimeType';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
8
8
|
import { Outcome } from './domain';
|
|
9
9
|
import { Header as HeaderWrapper, LeftHeader, RightHeader, MetadataWrapper, MetadataSubText, MedatadataTextWrapper, MetadataIconWrapper, MetadataFileName, FormattedMessageWrapper } from './styleWrappers';
|
|
10
10
|
import { ToolbarDownloadButton, DisabledToolbarDownloadButton } from './download';
|
|
11
|
-
import { useFileState
|
|
11
|
+
import { useFileState } from '@atlaskit/media-client-react/use-file-state';
|
|
12
|
+
import { useMediaClient } from '@atlaskit/media-client-react/use-media-client';
|
|
12
13
|
import { MimeTypeIcon } from '@atlaskit/media-ui/mime-type-icon';
|
|
13
14
|
import { getFormat } from './viewers/codeViewer/util';
|
|
14
15
|
import { MediaViewerError } from './errors';
|
|
@@ -6,19 +6,20 @@ import { Text } from '@atlaskit/primitives/compiled';
|
|
|
6
6
|
import { FormattedMessage } from 'react-intl';
|
|
7
7
|
import { messages } from '@atlaskit/media-ui';
|
|
8
8
|
import { isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
|
|
9
|
-
import { useFileState
|
|
9
|
+
import { useFileState } from '@atlaskit/media-client-react/use-file-state';
|
|
10
|
+
import { useMediaClient } from '@atlaskit/media-client-react/use-media-client';
|
|
10
11
|
import { Outcome } from './domain';
|
|
11
12
|
import { Spinner } from './loading';
|
|
12
13
|
import ErrorMessage from './errorMessage';
|
|
13
14
|
import { MediaViewerError } from './errors';
|
|
14
15
|
import { ErrorViewDownloadButton } from './download';
|
|
15
|
-
import
|
|
16
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
16
17
|
import { createCommencedEvent } from './analytics/events/operational/commenced';
|
|
17
18
|
import { createLoadSucceededEvent } from './analytics/events/operational/loadSucceeded';
|
|
18
19
|
import { fireAnalytics, getFileAttributes } from './analytics';
|
|
19
20
|
import { InteractiveImg } from './viewers/image/interactive-img';
|
|
20
21
|
import ArchiveViewerLoader from './viewers/archiveSidebar/archiveViewerLoader';
|
|
21
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
23
|
import { startMediaFileUfoExperience, succeedMediaFileUfoExperience } from './analytics/ufoExperiences';
|
|
23
24
|
import { CustomViewer } from './viewers/customViewer/customViewer';
|
|
24
25
|
function loadImageViewer() {
|
package/dist/es2019/loading.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useState, useLayoutEffect, useRef } from 'react';
|
|
3
3
|
import { IntlProvider, injectIntl } from 'react-intl';
|
|
4
4
|
import { Shortcut } from '@atlaskit/media-ui';
|
|
5
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
5
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
6
6
|
import { fireAnalytics } from './analytics';
|
|
7
7
|
import { createModalEvent } from './analytics/events/screen/modal';
|
|
8
8
|
import { createClosedEvent } from './analytics/events/ui/closed';
|
|
@@ -5,8 +5,8 @@ import ArrowLeftCircleIcon from '@atlaskit/icon/core/chevron-left';
|
|
|
5
5
|
import ArrowRightCircleIcon from '@atlaskit/icon/core/chevron-right';
|
|
6
6
|
import { hideControlsClassName } from '@atlaskit/media-ui';
|
|
7
7
|
import { Shortcut } from '@atlaskit/media-ui';
|
|
8
|
-
import
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { ArrowsWrapper, RightWrapper, LeftWrapper, Arrow } from './styleWrappers';
|
|
11
11
|
import { getSelectedIndex } from './utils';
|
|
12
12
|
import { createNavigatedEvent } from './analytics/events/ui/navigated';
|
|
@@ -10,7 +10,7 @@ import { TouchScrollable } from 'react-scrolllock';
|
|
|
10
10
|
import { useMergeRefs } from 'use-callback-ref';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
12
12
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
13
|
-
import Heading from '@atlaskit/heading';
|
|
13
|
+
import Heading from '@atlaskit/heading/heading';
|
|
14
14
|
const blanketStyles = null;
|
|
15
15
|
const headerWrapperStyles = null;
|
|
16
16
|
const archiveHeaderWrapperStyles = null;
|
|
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
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
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
5
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
6
6
|
export const ArchiveDownloadButton = ({
|
|
7
7
|
downloadFn,
|
|
8
8
|
shouldRenderAbuseModal,
|
|
@@ -4,7 +4,7 @@ import Folder24Icon from '@atlaskit/icon-file-type/glyph/folder/24';
|
|
|
4
4
|
import { downloadUrl } from '@atlaskit/media-common';
|
|
5
5
|
import { MediaTypeIcon } from '@atlaskit/media-ui/media-type-icon';
|
|
6
6
|
import { globalMediaEventEmitter } from '@atlaskit/media-client';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { ArchiveSidebarFolderWrapper, ArchiveSidebarFileEntryWrapper, SidebarItemWrapper } from './styleWrappers';
|
|
9
9
|
import { getMediaTypeFromFilename, isMacPrivateFile, rejectAfter } from '../../utils';
|
|
10
10
|
import { CustomButtonItem } from './custom-button-item';
|
|
@@ -19,7 +19,7 @@ import ArchiveSidebarRenderer from './archive-sidebar-renderer';
|
|
|
19
19
|
import { getMediaTypeFromFilename, getMimeTypeFromFilename, rejectAfter } from '../../utils';
|
|
20
20
|
import { Spinner } from '../../loading';
|
|
21
21
|
import { ENCRYPTED_ENTRY_ERROR_MESSAGE } from './consts';
|
|
22
|
-
import
|
|
22
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
23
23
|
import { fireAnalytics } from '../../analytics';
|
|
24
24
|
import { ArchiveViewerError, buildVideoErrorDiagnostics, isMediaViewerError } from '../../errors';
|
|
25
25
|
import { createZipEntryLoadSucceededEvent } from '../../analytics/events/operational/zipEntryLoadSucceeded';
|
|
@@ -29,7 +29,7 @@ import { CodeViewRenderer } from '../codeViewer/codeViewerRenderer';
|
|
|
29
29
|
import { DEFAULT_LANGUAGE } from '../codeViewer/util';
|
|
30
30
|
import { MAX_FILE_SIZE_SUPPORTED_BY_CODEVIEWER } from '../../item-viewer';
|
|
31
31
|
import { NativePdfViewer } from './nativePdfViewer';
|
|
32
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
32
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
33
33
|
export const getArchiveEntriesFromFileState = async (fileState, mediaClient, collectionName) => {
|
|
34
34
|
// The browser-based archive viewer relies on `unzipit`, which only supports
|
|
35
35
|
// the ZIP container format. Media classifies 40+ archive formats (.tar, .gz,
|
|
@@ -4,7 +4,7 @@ import "./custom-button-item.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
7
|
-
import { ButtonItem } from '@atlaskit/side-navigation';
|
|
7
|
+
import { ButtonItem } from '@atlaskit/side-navigation/button-item';
|
|
8
8
|
const itemStyles = null;
|
|
9
9
|
export function CustomButtonItem({
|
|
10
10
|
children,
|
|
@@ -8,7 +8,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
8
8
|
import { Component, forwardRef } from 'react';
|
|
9
9
|
import { Outcome } from '../../domain';
|
|
10
10
|
import { Spinner } from '../../loading';
|
|
11
|
-
import CodeBlock from '@atlaskit/code/block';
|
|
11
|
+
import CodeBlock from '@atlaskit/code/code-block';
|
|
12
12
|
import ErrorMessage from '../../errorMessage';
|
|
13
13
|
import { MediaViewerError } from '../../errors';
|
|
14
14
|
import { lineCount } from './util';
|
|
@@ -8,7 +8,7 @@ import { DEFAULT_LANGUAGE, normaliseLineBreaks } from './util';
|
|
|
8
8
|
import { getLanguageType, getExtension } from '@atlaskit/media-ui/codeViewer';
|
|
9
9
|
import { msgToText } from './msg-parser';
|
|
10
10
|
import { CodeRendererAdvanced } from './CodeRendererAdvanced/CodeRendererAdvanced';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
12
|
const moduleLoader = () => import( /* webpackChunkName: "@atlaskit-internal_media-code-viewer" */'./codeViewerRenderer');
|
|
13
13
|
const componentLoader = () => moduleLoader().then(module => module.CodeViewRenderer);
|
|
14
14
|
export class CodeViewer extends BaseViewer {
|
|
@@ -3,14 +3,15 @@ import "./doc-viewer.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useReducer } from 'react';
|
|
5
5
|
import { isCommonMediaClientError } from '@atlaskit/media-client';
|
|
6
|
-
import { DOCUMENT_SCROLL_ROOT_ID
|
|
6
|
+
import { DOCUMENT_SCROLL_ROOT_ID } from '@atlaskit/media-document-viewer/get-document-root';
|
|
7
|
+
import { DocumentViewer } from '@atlaskit/media-document-viewer/document-viewer';
|
|
7
8
|
import { useStaticCallback } from '@atlaskit/media-common';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
10
|
import { MediaViewerError } from '../../errors';
|
|
10
11
|
import { ZoomControls } from '../../zoomControls';
|
|
11
12
|
import { ZoomLevel } from '../../domain/zoomLevel';
|
|
12
13
|
import { PasswordInput } from './passwordInput';
|
|
13
|
-
import Spinner from '@atlaskit/spinner';
|
|
14
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
14
15
|
import { isExcelFile } from '@atlaskit/media-common/mediaTypeUtils';
|
|
15
16
|
const initialState = {
|
|
16
17
|
isMissingPassword: false,
|
|
@@ -4,7 +4,7 @@ import { Outcome } from '../../domain';
|
|
|
4
4
|
import { BaseViewer } from '../base-viewer';
|
|
5
5
|
import { ZoomLevel } from '../../domain/zoomLevel';
|
|
6
6
|
import { DocViewer as DocViewerComponent } from './doc-viewer';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
export class DocViewer extends BaseViewer {
|
|
9
9
|
constructor(...args) {
|
|
10
10
|
super(...args);
|
|
@@ -4,17 +4,18 @@ import "./passwordInput.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useEffect, useRef, useState } from 'react';
|
|
7
|
-
import Button from '@atlaskit/button/
|
|
8
|
-
import TextField from '@atlaskit/textfield';
|
|
7
|
+
import Button from '@atlaskit/button/default/button';
|
|
8
|
+
import TextField from '@atlaskit/textfield/text-field';
|
|
9
9
|
import LockIcon from '@atlaskit/icon/core/lock-locked';
|
|
10
|
-
import Form
|
|
10
|
+
import Form from '@atlaskit/form/form';
|
|
11
|
+
import Field from '@atlaskit/form/field';
|
|
11
12
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
12
13
|
import { messages } from '@atlaskit/media-ui';
|
|
13
14
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
14
15
|
import { xcss, Box, Flex, Text } from '@atlaskit/primitives';
|
|
15
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
17
|
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
17
|
-
import Heading from '@atlaskit/heading';
|
|
18
|
+
import Heading from '@atlaskit/heading/heading';
|
|
18
19
|
const COLOR_SHADE = '#b6c2cf';
|
|
19
20
|
const ERROR_COLOR = '#FD9891';
|
|
20
21
|
const headingStyle = null;
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { isImageRepresentationReady, isErrorFileState, addFileAttrsToUrl } from '@atlaskit/media-client';
|
|
4
4
|
import { isImageMimeTypeSupportedByBrowser } from '@atlaskit/media-common';
|
|
5
5
|
import { getOrientation } from '@atlaskit/media-ui';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { Outcome } from '../../domain';
|
|
8
8
|
import { buildImgErrorDiagnostics, MediaViewerError } from '../../errors';
|
|
9
9
|
import { InteractiveImg } from './interactive-img';
|
|
@@ -3,10 +3,10 @@ import React from 'react';
|
|
|
3
3
|
import { Camera, getCssFromImageOrientation, hideControlsClassName, Rectangle, Vector2 } from '@atlaskit/media-ui';
|
|
4
4
|
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
5
5
|
import { MAX_RESOLUTION } from '@atlaskit/media-client/constants';
|
|
6
|
-
import
|
|
6
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
7
7
|
import VideoHdIcon from '@atlaskit/icon-lab/core/video-hd';
|
|
8
8
|
import VideoHdFilledIcon from '@atlaskit/icon-lab/core/video-hd-filled';
|
|
9
|
-
import Spinner from '@atlaskit/spinner';
|
|
9
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
10
10
|
import { BaselineExtend, HDIconGroupWrapper, ImageWrapper, Img } from '../../styleWrappers';
|
|
11
11
|
import { ZoomLevel } from '../../domain/zoomLevel';
|
|
12
12
|
import { closeOnDirectClick } from '../../utils/closeOnDirectClick';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect, useCallback, useLayoutEffect } from 'react';
|
|
2
2
|
import { Camera, messages, Vector2 } from '@atlaskit/media-ui';
|
|
3
3
|
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
4
|
-
import
|
|
4
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
5
5
|
import { BaselineExtend } from '../../styleWrappers';
|
|
6
6
|
import { ZoomLevel } from '../../domain/zoomLevel';
|
|
7
7
|
import { ZoomControls } from '../../zoomControls';
|
|
8
8
|
import { createClosedEvent } from '../../analytics/events/ui/closed';
|
|
9
|
-
import MediaSvg from '@atlaskit/media-svg';
|
|
9
|
+
import MediaSvg from '@atlaskit/media-svg/media-svg';
|
|
10
10
|
import { MediaViewerError } from '../../errors';
|
|
11
11
|
import { clientRectangle, naturalSizeRectangle, zoomLevelAfterResize } from './utils';
|
|
12
12
|
import { ImageWrapper } from './ImageWrapper';
|
|
@@ -8,7 +8,7 @@ import { Video, CustomVideoPlayerWrapper } from '../styleWrappers';
|
|
|
8
8
|
import { isIE } from '../utils/isIE';
|
|
9
9
|
import { BaseViewer } from './base-viewer';
|
|
10
10
|
import { getObjectUrlFromFileState } from '../utils/getObjectUrlFromFileState';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
12
|
const hdArtifact = 'video_1280.mp4';
|
|
13
13
|
const sdArtifact = 'video_640.mp4';
|
|
14
14
|
export class VideoViewer extends BaseViewer {
|
|
@@ -5,7 +5,7 @@ import { hideControlsClassName, MediaButton } from '@atlaskit/media-ui';
|
|
|
5
5
|
import ZoomOutIcon from '@atlaskit/icon/core/zoom-out';
|
|
6
6
|
import ZoomInIcon from '@atlaskit/icon/core/zoom-in';
|
|
7
7
|
import { ZoomWrapper, ZoomCenterControls, ZoomRightControls, ZoomLevelIndicator } from './styleWrappers';
|
|
8
|
-
import
|
|
8
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
9
9
|
import { fireAnalytics } from './analytics/';
|
|
10
10
|
import { createZoomInButtonClickEvent } from './analytics/events/ui/zoomInButtonClicked';
|
|
11
11
|
import { createZoomOutButtonClickedEvent } from './analytics/events/ui/zoomOutButtonClicked';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
2
2
|
export var createLoadSucceededEvent = function createLoadSucceededEvent(_ref, traceContext) {
|
|
3
3
|
var fileId = _ref.fileId,
|
|
4
4
|
fileMediatype = _ref.fileMediatype,
|
|
@@ -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 = "54.5.
|
|
4
|
+
var packageVersion = "54.5.50";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
|
-
import { UFOExperience
|
|
4
|
+
import { UFOExperience } from '@atlaskit/ufo/experience';
|
|
5
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
5
6
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
6
7
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
9
|
var packageName = "@atlaskit/media-viewer";
|
|
9
|
-
var packageVersion = "54.5.
|
|
10
|
+
var packageVersion = "54.5.50";
|
|
10
11
|
var ufoExperience;
|
|
11
12
|
var getExperience = function getExperience() {
|
|
12
13
|
if (!ufoExperience) {
|
|
@@ -6,8 +6,9 @@ import React, { useEffect, useMemo } from 'react';
|
|
|
6
6
|
import { MediaViewer as MediaViewerNextGen } from '../media-viewer';
|
|
7
7
|
import { isSameIdentifier } from '../utils';
|
|
8
8
|
import { isFileIdentifier } from '@atlaskit/media-client';
|
|
9
|
-
import { withMediaClient
|
|
10
|
-
import {
|
|
9
|
+
import { withMediaClient } from '@atlaskit/media-client-react/with-media-client';
|
|
10
|
+
import { withMediaClientAndSettings } from '@atlaskit/media-client-react/with-media-client-and-settings';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
12
|
var ensureCollectionName = function ensureCollectionName(identifier, collectionName) {
|
|
12
13
|
return isFileIdentifier(identifier) ? _objectSpread(_objectSpread({}, identifier), {}, {
|
|
13
14
|
collectionName: identifier.collectionName || collectionName
|