@atlaskit/media-viewer 54.6.5 → 54.7.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 +21 -0
- package/dist/cjs/analytics/events/operational/previewTooLarge.js +29 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/content.js +6 -4
- package/dist/cjs/download.js +6 -5
- package/dist/cjs/errorMessage.js +31 -6
- package/dist/cjs/header.js +24 -19
- package/dist/cjs/item-viewer.js +5 -5
- package/dist/cjs/list.js +2 -2
- package/dist/cjs/loading.js +2 -2
- package/dist/cjs/media-viewer.js +2 -2
- package/dist/cjs/navigation.js +6 -5
- package/dist/cjs/viewers/archiveSidebar/archive-sidebar-folder-entry.js +2 -2
- package/dist/cjs/viewers/archiveSidebar/archive.js +9 -7
- package/dist/cjs/viewers/archiveSidebar/styleWrappers.js +2 -2
- package/dist/cjs/viewers/audio.js +2 -2
- package/dist/cjs/viewers/base-viewer.js +2 -2
- package/dist/cjs/viewers/codeViewer/index.js +4 -3
- package/dist/cjs/viewers/doc/passwordInput.js +6 -6
- package/dist/cjs/viewers/image/index.js +2 -2
- package/dist/cjs/viewers/image/interactive-img.js +14 -10
- package/dist/cjs/viewers/svg/index.js +9 -7
- package/dist/cjs/viewers/svg/utils.js +3 -3
- package/dist/cjs/viewers/video.js +4 -3
- package/dist/cjs/zoomControls.js +8 -6
- package/dist/es2019/analytics/events/operational/previewTooLarge.js +24 -0
- 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 +2 -1
- package/dist/es2019/errorMessage.js +26 -2
- package/dist/es2019/header.js +7 -2
- package/dist/es2019/item-viewer.js +2 -2
- package/dist/es2019/list.js +1 -1
- 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/viewers/archiveSidebar/archive-sidebar-folder-entry.js +1 -1
- package/dist/es2019/viewers/archiveSidebar/archive.js +4 -2
- package/dist/es2019/viewers/archiveSidebar/styleWrappers.js +1 -1
- package/dist/es2019/viewers/audio.js +1 -1
- package/dist/es2019/viewers/base-viewer.js +1 -1
- package/dist/es2019/viewers/codeViewer/index.js +2 -1
- package/dist/es2019/viewers/doc/passwordInput.js +1 -1
- package/dist/es2019/viewers/image/index.js +1 -1
- package/dist/es2019/viewers/image/interactive-img.js +5 -1
- package/dist/es2019/viewers/svg/index.js +3 -1
- package/dist/es2019/viewers/svg/utils.js +1 -1
- package/dist/es2019/viewers/video.js +2 -1
- package/dist/es2019/zoomControls.js +3 -2
- package/dist/esm/analytics/events/operational/previewTooLarge.js +23 -0
- 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 +2 -1
- package/dist/esm/errorMessage.js +27 -2
- package/dist/esm/header.js +7 -2
- package/dist/esm/item-viewer.js +2 -2
- package/dist/esm/list.js +1 -1
- 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/viewers/archiveSidebar/archive-sidebar-folder-entry.js +1 -1
- package/dist/esm/viewers/archiveSidebar/archive.js +4 -2
- package/dist/esm/viewers/archiveSidebar/styleWrappers.js +1 -1
- package/dist/esm/viewers/audio.js +1 -1
- package/dist/esm/viewers/base-viewer.js +1 -1
- package/dist/esm/viewers/codeViewer/index.js +2 -1
- package/dist/esm/viewers/doc/passwordInput.js +1 -1
- package/dist/esm/viewers/image/index.js +1 -1
- package/dist/esm/viewers/image/interactive-img.js +5 -1
- package/dist/esm/viewers/svg/index.js +3 -1
- package/dist/esm/viewers/svg/utils.js +1 -1
- package/dist/esm/viewers/video.js +2 -1
- package/dist/esm/zoomControls.js +3 -2
- package/dist/types/analytics/events/index.d.ts +2 -1
- package/dist/types/analytics/events/operational/_mediaFile.d.ts +1 -1
- package/dist/types/analytics/events/operational/previewTooLarge.d.ts +9 -0
- package/dist/types/content.d.ts +1 -1
- package/dist/types/errorMessage.d.ts +4 -1
- package/dist/types/item-viewer.d.ts +1 -1
- package/dist/types/list.d.ts +1 -1
- package/dist/types/viewers/audio.d.ts +1 -1
- package/dist/types/viewers/image/interactive-img.d.ts +2 -1
- package/dist/types/viewers/svg/utils.d.ts +2 -1
- package/dist/types/viewers/video.d.ts +1 -1
- package/example-helpers/MainWrapper.tsx +1 -1
- package/package.json +9 -6
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { isImageRepresentationReady, isErrorFileState, addFileAttrsToUrl } from '@atlaskit/media-client';
|
|
4
4
|
import { isImageMimeTypeSupportedByBrowser } from '@atlaskit/media-common';
|
|
5
|
-
import { getOrientation } from '@atlaskit/media-ui';
|
|
5
|
+
import { getOrientation } from '@atlaskit/media-ui/imageMetaData/getOrientation';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { Outcome } from '../../domain';
|
|
8
8
|
import { buildImgErrorDiagnostics, MediaViewerError } from '../../errors';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Camera
|
|
3
|
+
import { Camera } from '@atlaskit/media-ui/camera/camera';
|
|
4
|
+
import { getCssFromImageOrientation } from '@atlaskit/media-ui/imageMetaData/getCssFromImageOrientation';
|
|
5
|
+
import { hideControlsClassName } from '@atlaskit/media-ui/classNames';
|
|
6
|
+
import { Rectangle } from '@atlaskit/media-ui/rectangle';
|
|
7
|
+
import { Vector2 } from '@atlaskit/media-ui/vector2';
|
|
4
8
|
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
5
9
|
import { MAX_RESOLUTION } from '@atlaskit/media-client/constants';
|
|
6
10
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect, useCallback, useLayoutEffect } from 'react';
|
|
2
|
-
import { Camera
|
|
2
|
+
import { Camera } from '@atlaskit/media-ui/camera/camera';
|
|
3
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
4
|
+
import { Vector2 } from '@atlaskit/media-ui/vector2';
|
|
3
5
|
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
4
6
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
5
7
|
import { BaselineExtend } from '../../styleWrappers';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { getArtifactUrl, globalMediaEventEmitter, isFileIdentifier } from '@atlaskit/media-client';
|
|
4
|
-
import { CustomMediaPlayer
|
|
4
|
+
import { CustomMediaPlayer } from '@atlaskit/media-ui/customMediaPlayer';
|
|
5
|
+
import { MediaPlayer } from '@atlaskit/media-ui/mediaPlayer';
|
|
5
6
|
import { Outcome } from '../domain';
|
|
6
7
|
import { buildVideoErrorDiagnostics, MediaViewerError } from '../errors';
|
|
7
8
|
import { Video, CustomVideoPlayerWrapper } from '../styleWrappers';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Component } from 'react';
|
|
4
|
-
import { hideControlsClassName
|
|
4
|
+
import { hideControlsClassName } from '@atlaskit/media-ui/classNames';
|
|
5
|
+
import MediaButton from '@atlaskit/media-ui/MediaButton';
|
|
5
6
|
import ZoomOutIcon from '@atlaskit/icon/core/zoom-out';
|
|
6
7
|
import ZoomInIcon from '@atlaskit/icon/core/zoom-in';
|
|
7
8
|
import { ZoomWrapper, ZoomCenterControls, ZoomRightControls, ZoomLevelIndicator } from './styleWrappers';
|
|
@@ -10,7 +11,7 @@ import { fireAnalytics } from './analytics/';
|
|
|
10
11
|
import { createZoomInButtonClickEvent } from './analytics/events/ui/zoomInButtonClicked';
|
|
11
12
|
import { createZoomOutButtonClickedEvent } from './analytics/events/ui/zoomOutButtonClicked';
|
|
12
13
|
import { injectIntl } from 'react-intl';
|
|
13
|
-
import { messages } from '@atlaskit/media-ui';
|
|
14
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
14
15
|
export class ZoomControlsBase extends Component {
|
|
15
16
|
constructor(...args) {
|
|
16
17
|
super(...args);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getFileAttributes } from '../..';
|
|
2
|
+
import { getPrimaryErrorReason } from '../../../errors';
|
|
3
|
+
export var createPreviewTooLargeEvent = function createPreviewTooLargeEvent(error, fileState) {
|
|
4
|
+
var _getFileAttributes = getFileAttributes(fileState),
|
|
5
|
+
fileId = _getFileAttributes.fileId,
|
|
6
|
+
fileMediatype = _getFileAttributes.fileMediatype,
|
|
7
|
+
fileMimetype = _getFileAttributes.fileMimetype,
|
|
8
|
+
fileSize = _getFileAttributes.fileSize;
|
|
9
|
+
return {
|
|
10
|
+
eventType: 'operational',
|
|
11
|
+
actionSubject: 'mediaFile',
|
|
12
|
+
action: 'previewTooLarge',
|
|
13
|
+
attributes: {
|
|
14
|
+
failReason: getPrimaryErrorReason(error),
|
|
15
|
+
fileAttributes: {
|
|
16
|
+
fileId: fileId,
|
|
17
|
+
fileMediatype: fileMediatype,
|
|
18
|
+
fileMimetype: fileMimetype,
|
|
19
|
+
fileSize: fileSize
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -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.6.
|
|
4
|
+
var packageVersion = "54.6.6";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -7,7 +7,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
|
7
7
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
9
|
var packageName = "@atlaskit/media-viewer";
|
|
10
|
-
var packageVersion = "54.6.
|
|
10
|
+
var packageVersion = "54.6.6";
|
|
11
11
|
var ufoExperience;
|
|
12
12
|
var getExperience = function getExperience() {
|
|
13
13
|
if (!ufoExperience) {
|
package/dist/esm/content.js
CHANGED
|
@@ -8,7 +8,9 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { Component } from 'react';
|
|
10
10
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
11
|
-
import
|
|
11
|
+
import MediaButton from '@atlaskit/media-ui/MediaButton';
|
|
12
|
+
import { hideControlsClassName } from '@atlaskit/media-ui/classNames';
|
|
13
|
+
import { InactivityDetector } from '@atlaskit/media-ui/inactivityDetector';
|
|
12
14
|
import { CloseButtonWrapper, ContentWrapper } from './styleWrappers';
|
|
13
15
|
export var Content = /*#__PURE__*/function (_Component) {
|
|
14
16
|
function Content() {
|
package/dist/esm/download.js
CHANGED
|
@@ -7,7 +7,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
7
7
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
8
8
|
import DownloadIcon from '@atlaskit/icon/core/download';
|
|
9
9
|
import { isErrorFileState, isExternalImageIdentifier } from '@atlaskit/media-client';
|
|
10
|
-
import
|
|
10
|
+
import MediaButton from '@atlaskit/media-ui/MediaButton';
|
|
11
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
11
12
|
import React, { useCallback, useState } from 'react';
|
|
12
13
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
13
14
|
import { createDownloadButtonClickedEvent } from './analytics/events/ui/downloadButtonClicked';
|
package/dist/esm/errorMessage.js
CHANGED
|
@@ -10,14 +10,16 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
13
|
-
import { messages as i18nMessages } from '@atlaskit/media-ui';
|
|
13
|
+
import { messages as i18nMessages } from '@atlaskit/media-ui/messages';
|
|
14
14
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
16
|
import { ErrorMessageWrapper, ErrorImage } from './styleWrappers';
|
|
16
17
|
import { errorLoadingFile } from './error-images';
|
|
17
18
|
import { fireAnalytics } from './analytics';
|
|
18
19
|
import { getPrimaryErrorReason, getSecondaryErrorReason } from './errors';
|
|
19
20
|
import { createLoadFailedEvent } from './analytics/events/operational/loadFailed';
|
|
20
21
|
import { createPreviewUnsupportedEvent } from './analytics/events/operational/previewUnsupported';
|
|
22
|
+
import { createPreviewTooLargeEvent } from './analytics/events/operational/previewTooLarge';
|
|
21
23
|
import { failMediaFileUfoExperience } from './analytics/ufoExperiences';
|
|
22
24
|
var errorLoadingFileImage = function errorLoadingFileImage(formatMessage) {
|
|
23
25
|
return /*#__PURE__*/React.createElement(ErrorImage, {
|
|
@@ -55,6 +57,17 @@ export var ErrorMessage = /*#__PURE__*/function (_React$Component) {
|
|
|
55
57
|
messages: [i18nMessages.unsupported_file_format, i18nMessages.archive_format_not_supported]
|
|
56
58
|
};
|
|
57
59
|
}
|
|
60
|
+
|
|
61
|
+
// Code/text files (in the main viewer or inside a ZIP archive) over the
|
|
62
|
+
// CodeViewer's 10MB limit aren't a load failure - the file is simply too
|
|
63
|
+
// large for this viewer to preview. Show a dedicated "File is too large to
|
|
64
|
+
// preview" heading instead of the generic "Something went wrong" copy.
|
|
65
|
+
if (ErrorMessage.isPreviewTooLarge(error) && fg('platform_media_too_large_preview_state')) {
|
|
66
|
+
return {
|
|
67
|
+
icon: errorLoadingFileImage(formatMessage),
|
|
68
|
+
messages: [i18nMessages.file_too_large_to_preview, i18nMessages.file_too_large_description]
|
|
69
|
+
};
|
|
70
|
+
}
|
|
58
71
|
var errorInfo = {
|
|
59
72
|
icon: errorLoadingFileImage(formatMessage),
|
|
60
73
|
messages: [i18nMessages.something_went_wrong, i18nMessages.couldnt_generate_preview]
|
|
@@ -114,10 +127,21 @@ export var ErrorMessage = /*#__PURE__*/function (_React$Component) {
|
|
|
114
127
|
value: function isPreviewUnsupported(error) {
|
|
115
128
|
return ErrorMessage.previewUnsupportedReasons.includes(getPrimaryErrorReason(error));
|
|
116
129
|
}
|
|
130
|
+
|
|
131
|
+
// Error reasons that mean the file exceeds the size limit supported by the
|
|
132
|
+
// browser-based viewer (not a load failure). These are reported as the
|
|
133
|
+
// informational, non-SLI `previewTooLarge` metric instead of `loadFailed`.
|
|
134
|
+
}, {
|
|
135
|
+
key: "isPreviewTooLarge",
|
|
136
|
+
value: function isPreviewTooLarge(error) {
|
|
137
|
+
return ErrorMessage.previewTooLargeReasons.includes(getPrimaryErrorReason(error));
|
|
138
|
+
}
|
|
117
139
|
}, {
|
|
118
140
|
key: "getEventPayload",
|
|
119
141
|
value: function getEventPayload(error, fileId, fileState, traceContext) {
|
|
120
|
-
if (fileState && ErrorMessage.
|
|
142
|
+
if (fileState && ErrorMessage.isPreviewTooLarge(error) && fg('platform_media_too_large_preview_state')) {
|
|
143
|
+
return createPreviewTooLargeEvent(error, fileState);
|
|
144
|
+
} else if (fileState && ErrorMessage.isPreviewUnsupported(error)) {
|
|
121
145
|
// this is not an SLI (load failure), its just a useful metric for files
|
|
122
146
|
// whose format the browser-based viewer can't preview.
|
|
123
147
|
return createPreviewUnsupportedEvent(fileState);
|
|
@@ -130,5 +154,6 @@ export var ErrorMessage = /*#__PURE__*/function (_React$Component) {
|
|
|
130
154
|
|
|
131
155
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
132
156
|
_defineProperty(ErrorMessage, "previewUnsupportedReasons", ['unsupported', 'imageviewer-unsupported-mime']);
|
|
157
|
+
_defineProperty(ErrorMessage, "previewTooLargeReasons", ['codeviewer-file-size-exceeds', 'archiveviewer-codeviewer-file-size-exceeds']);
|
|
133
158
|
var ErroMsg = withAnalyticsEvents()(injectIntl(ErrorMessage));
|
|
134
159
|
export default ErroMsg;
|
package/dist/esm/header.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { isExternalImageIdentifier, isErrorFileState, toCommonMediaClientError } from '@atlaskit/media-client';
|
|
4
|
-
import { hideControlsClassName
|
|
5
|
-
import {
|
|
4
|
+
import { hideControlsClassName } from '@atlaskit/media-ui/classNames';
|
|
5
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
6
|
+
import { toHumanReadableMediaSize } from '@atlaskit/media-ui/humanReadableSize';
|
|
7
|
+
import MediaButton from '@atlaskit/media-ui/MediaButton';
|
|
8
|
+
import { getLanguageType } from '@atlaskit/media-ui/getLanguageType';
|
|
9
|
+
import { getExtension } from '@atlaskit/media-ui/getExtension';
|
|
10
|
+
import { isCodeViewerItem } from '@atlaskit/media-ui/isCodeViewerItem';
|
|
6
11
|
import { isZipMimeType } from '@atlaskit/media-common/isZipMimeType';
|
|
7
12
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
13
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
package/dist/esm/item-viewer.js
CHANGED
|
@@ -5,8 +5,8 @@ import Loadable from 'react-loadable';
|
|
|
5
5
|
import { isExternalImageIdentifier, isFileIdentifier, toCommonMediaClientError } from '@atlaskit/media-client';
|
|
6
6
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
7
7
|
import { FormattedMessage } from 'react-intl';
|
|
8
|
-
import { messages } from '@atlaskit/media-ui';
|
|
9
|
-
import { isCodeViewerItem } from '@atlaskit/media-ui/
|
|
8
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
9
|
+
import { isCodeViewerItem } from '@atlaskit/media-ui/isCodeViewerItem';
|
|
10
10
|
import { useFileState } from '@atlaskit/media-client-react/use-file-state';
|
|
11
11
|
import { useMediaClient } from '@atlaskit/media-client-react/use-media-client';
|
|
12
12
|
import { Outcome } from './domain';
|
package/dist/esm/list.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useState, useRef } from 'react';
|
|
3
|
-
import { hideControlsClassName } from '@atlaskit/media-ui';
|
|
3
|
+
import { hideControlsClassName } from '@atlaskit/media-ui/classNames';
|
|
4
4
|
import { ItemViewer } from './item-viewer';
|
|
5
5
|
import { HeaderWrapper, ListWrapper } from './styleWrappers';
|
|
6
6
|
import { Navigation } from './navigation';
|
package/dist/esm/loading.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import AkSpinner from '@atlaskit/spinner/spinner';
|
|
4
|
-
import { messages } from '@atlaskit/media-ui';
|
|
4
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
export var Spinner = function Spinner(_ref) {
|
|
7
7
|
_objectDestructuringEmpty(_ref);
|
package/dist/esm/media-viewer.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import React, { useState, useLayoutEffect, useRef } from 'react';
|
|
4
4
|
import { IntlProvider, injectIntl } from 'react-intl';
|
|
5
|
-
import { Shortcut } from '@atlaskit/media-ui';
|
|
5
|
+
import { Shortcut } from '@atlaskit/media-ui/shortcut';
|
|
6
6
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
7
7
|
import { fireAnalytics } from './analytics';
|
|
8
8
|
import { createModalEvent } from './analytics/events/screen/modal';
|
package/dist/esm/navigation.js
CHANGED
|
@@ -10,8 +10,8 @@ import React from 'react';
|
|
|
10
10
|
import { Component } from 'react';
|
|
11
11
|
import ArrowLeftCircleIcon from '@atlaskit/icon/core/chevron-left';
|
|
12
12
|
import ArrowRightCircleIcon from '@atlaskit/icon/core/chevron-right';
|
|
13
|
-
import { hideControlsClassName } from '@atlaskit/media-ui';
|
|
14
|
-
import { Shortcut } from '@atlaskit/media-ui';
|
|
13
|
+
import { hideControlsClassName } from '@atlaskit/media-ui/classNames';
|
|
14
|
+
import { Shortcut } from '@atlaskit/media-ui/shortcut';
|
|
15
15
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
16
16
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
17
|
import { ArrowsWrapper, RightWrapper, LeftWrapper, Arrow } from './styleWrappers';
|
|
@@ -17,7 +17,7 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
17
17
|
import { ArchiveSidebarFolderWrapper, ArchiveSidebarFileEntryWrapper, SidebarItemWrapper } from './styleWrappers';
|
|
18
18
|
import { getMediaTypeFromFilename, isMacPrivateFile, rejectAfter } from '../../utils';
|
|
19
19
|
import { CustomButtonItem } from './custom-button-item';
|
|
20
|
-
import { messages } from '@atlaskit/media-ui';
|
|
20
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
21
21
|
import { ArchiveDownloadButton } from './archive-download-button';
|
|
22
22
|
import { injectIntl } from 'react-intl';
|
|
23
23
|
var ArchiveSidebarFolderEntryBase = /*#__PURE__*/function (_React$Component) {
|
|
@@ -16,8 +16,10 @@ import { unzip, HTTPRangeReader } from 'unzipit';
|
|
|
16
16
|
import { FormattedMessage } from 'react-intl';
|
|
17
17
|
import { isErrorFileState } from '@atlaskit/media-client';
|
|
18
18
|
import { isZipMimeType } from '@atlaskit/media-common/isZipMimeType';
|
|
19
|
-
import { CustomMediaPlayer
|
|
20
|
-
import {
|
|
19
|
+
import { CustomMediaPlayer } from '@atlaskit/media-ui/customMediaPlayer';
|
|
20
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
21
|
+
import { getLanguageType } from '@atlaskit/media-ui/getLanguageType';
|
|
22
|
+
import { isCodeViewerItem } from '@atlaskit/media-ui/isCodeViewerItem';
|
|
21
23
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
22
24
|
import { Outcome } from '../../domain';
|
|
23
25
|
import { CustomVideoPlayerWrapper, AudioPlayer, CustomAudioPlayerWrapper, DefaultCoverWrapper, ListWrapper } from '../../styleWrappers';
|
|
@@ -7,7 +7,7 @@ import { forwardRef } from 'react';
|
|
|
7
7
|
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
9
|
import { useIntl } from 'react-intl';
|
|
10
|
-
import { messages } from '@atlaskit/media-ui';
|
|
10
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
11
11
|
export var ARCHIVE_SIDE_BAR_WIDTH = 300;
|
|
12
12
|
var archiveItemViewerWrapperStyles = null;
|
|
13
13
|
var archiveSideBarStyles = null;
|
|
@@ -16,7 +16,7 @@ import { MediaViewerError } from '../errors';
|
|
|
16
16
|
import { AudioPlayer, AudioCover, Audio, DefaultCoverWrapper, CustomAudioPlayerWrapper } from '../styleWrappers';
|
|
17
17
|
import { BaseViewer } from './base-viewer';
|
|
18
18
|
import { isIE } from '../utils/isIE';
|
|
19
|
-
import { CustomMediaPlayer } from '@atlaskit/media-ui';
|
|
19
|
+
import { CustomMediaPlayer } from '@atlaskit/media-ui/customMediaPlayer';
|
|
20
20
|
import { getObjectUrlFromFileState } from '../utils/getObjectUrlFromFileState';
|
|
21
21
|
var defaultCover = /*#__PURE__*/React.createElement(DefaultCoverWrapper, null, /*#__PURE__*/React.createElement(AudioIcon, {
|
|
22
22
|
label: "cover",
|
|
@@ -10,7 +10,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React, { Fragment } from 'react';
|
|
12
12
|
import { FormattedMessage } from 'react-intl';
|
|
13
|
-
import { messages } from '@atlaskit/media-ui';
|
|
13
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
14
14
|
import deepEqual from 'deep-equal';
|
|
15
15
|
import { globalMediaEventEmitter } from '@atlaskit/media-client';
|
|
16
16
|
import ErrorMessage from '../errorMessage';
|
|
@@ -14,7 +14,8 @@ import { MediaViewerError } from '../../errors';
|
|
|
14
14
|
import { Spinner } from '../../loading';
|
|
15
15
|
import { BaseViewer } from '../base-viewer';
|
|
16
16
|
import { DEFAULT_LANGUAGE, normaliseLineBreaks } from './util';
|
|
17
|
-
import { getLanguageType
|
|
17
|
+
import { getLanguageType } from '@atlaskit/media-ui/getLanguageType';
|
|
18
|
+
import { getExtension } from '@atlaskit/media-ui/getExtension';
|
|
18
19
|
import { msgToText } from './msg-parser';
|
|
19
20
|
import { CodeRendererAdvanced } from './CodeRendererAdvanced/CodeRendererAdvanced';
|
|
20
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -11,7 +11,7 @@ import LockIcon from '@atlaskit/icon/core/lock-locked';
|
|
|
11
11
|
import Form from '@atlaskit/form/form';
|
|
12
12
|
import Field from '@atlaskit/form/field';
|
|
13
13
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
14
|
-
import { messages } from '@atlaskit/media-ui';
|
|
14
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
16
16
|
import { xcss, Box, Flex, Text } from '@atlaskit/primitives';
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -11,7 +11,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { isImageRepresentationReady, isErrorFileState, addFileAttrsToUrl } from '@atlaskit/media-client';
|
|
13
13
|
import { isImageMimeTypeSupportedByBrowser } from '@atlaskit/media-common';
|
|
14
|
-
import { getOrientation } from '@atlaskit/media-ui';
|
|
14
|
+
import { getOrientation } from '@atlaskit/media-ui/imageMetaData/getOrientation';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
16
|
import { Outcome } from '../../domain';
|
|
17
17
|
import { buildImgErrorDiagnostics, MediaViewerError } from '../../errors';
|
|
@@ -7,7 +7,11 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { Camera
|
|
10
|
+
import { Camera } from '@atlaskit/media-ui/camera/camera';
|
|
11
|
+
import { getCssFromImageOrientation } from '@atlaskit/media-ui/imageMetaData/getCssFromImageOrientation';
|
|
12
|
+
import { hideControlsClassName } from '@atlaskit/media-ui/classNames';
|
|
13
|
+
import { Rectangle } from '@atlaskit/media-ui/rectangle';
|
|
14
|
+
import { Vector2 } from '@atlaskit/media-ui/vector2';
|
|
11
15
|
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
12
16
|
import { MAX_RESOLUTION } from '@atlaskit/media-client/constants';
|
|
13
17
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useState, useRef, useEffect, useCallback, useLayoutEffect } from 'react';
|
|
3
|
-
import { Camera
|
|
3
|
+
import { Camera } from '@atlaskit/media-ui/camera/camera';
|
|
4
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
5
|
+
import { Vector2 } from '@atlaskit/media-ui/vector2';
|
|
4
6
|
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
5
7
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
6
8
|
import { BaselineExtend } from '../../styleWrappers';
|
|
@@ -10,7 +10,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { getArtifactUrl, globalMediaEventEmitter, isFileIdentifier } from '@atlaskit/media-client';
|
|
13
|
-
import { CustomMediaPlayer
|
|
13
|
+
import { CustomMediaPlayer } from '@atlaskit/media-ui/customMediaPlayer';
|
|
14
|
+
import { MediaPlayer } from '@atlaskit/media-ui/mediaPlayer';
|
|
14
15
|
import { Outcome } from '../domain';
|
|
15
16
|
import { buildVideoErrorDiagnostics, MediaViewerError } from '../errors';
|
|
16
17
|
import { Video, CustomVideoPlayerWrapper } from '../styleWrappers';
|
package/dist/esm/zoomControls.js
CHANGED
|
@@ -8,7 +8,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { Component } from 'react';
|
|
11
|
-
import { hideControlsClassName
|
|
11
|
+
import { hideControlsClassName } from '@atlaskit/media-ui/classNames';
|
|
12
|
+
import MediaButton from '@atlaskit/media-ui/MediaButton';
|
|
12
13
|
import ZoomOutIcon from '@atlaskit/icon/core/zoom-out';
|
|
13
14
|
import ZoomInIcon from '@atlaskit/icon/core/zoom-in';
|
|
14
15
|
import { ZoomWrapper, ZoomCenterControls, ZoomRightControls, ZoomLevelIndicator } from './styleWrappers';
|
|
@@ -17,7 +18,7 @@ import { fireAnalytics } from './analytics/';
|
|
|
17
18
|
import { createZoomInButtonClickEvent } from './analytics/events/ui/zoomInButtonClicked';
|
|
18
19
|
import { createZoomOutButtonClickedEvent } from './analytics/events/ui/zoomOutButtonClicked';
|
|
19
20
|
import { injectIntl } from 'react-intl';
|
|
20
|
-
import { messages } from '@atlaskit/media-ui';
|
|
21
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
21
22
|
export var ZoomControlsBase = /*#__PURE__*/function (_Component) {
|
|
22
23
|
function ZoomControlsBase() {
|
|
23
24
|
var _this;
|
|
@@ -3,6 +3,7 @@ import { type LoadFailedEventPayload } from './operational/loadFailed';
|
|
|
3
3
|
import { type DownloadFailedEventPayload, type DownloadSucceededEventPayload } from './operational/download';
|
|
4
4
|
import { type LoadSucceededEventPayload } from './operational/loadSucceeded';
|
|
5
5
|
import { type PreviewUnsupportedEventPayload } from './operational/previewUnsupported';
|
|
6
|
+
import { type PreviewTooLargeEventPayload } from './operational/previewTooLarge';
|
|
6
7
|
import { type ZipEntryLoadFailedEventPayload } from './operational/zipEntryLoadFailed';
|
|
7
8
|
import { type ZipEntryLoadSucceededEventPayload } from './operational/zipEntryLoadSucceeded';
|
|
8
9
|
import { type ModalEventPayload } from './screen/modal';
|
|
@@ -14,4 +15,4 @@ import { type FailedPreviewDownloadButtonClickedEventPayload } from './ui/failed
|
|
|
14
15
|
import { type NavigatedEventPayload } from './ui/navigated';
|
|
15
16
|
import { type ZoomInButtonClickEventPayload } from './ui/zoomInButtonClicked';
|
|
16
17
|
import { type ZoomOutButtonClickEventPayload } from './ui/zoomOutButtonClicked';
|
|
17
|
-
export type MediaViewerEventPayload = CommencedEventPayload | LoadFailedEventPayload | LoadSucceededEventPayload | PreviewUnsupportedEventPayload | ZipEntryLoadFailedEventPayload | ZipEntryLoadSucceededEventPayload | ModalEventPayload | PdfPasswordInputScreenEventPayload | PasswordPdfScreenEventPayload | ClosedEventPayload | DownloadButtonClickedEventPayload | FailedPreviewDownloadButtonClickedEventPayload | NavigatedEventPayload | ZoomInButtonClickEventPayload | ZoomOutButtonClickEventPayload | DownloadFailedEventPayload | DownloadSucceededEventPayload;
|
|
18
|
+
export type MediaViewerEventPayload = CommencedEventPayload | LoadFailedEventPayload | LoadSucceededEventPayload | PreviewUnsupportedEventPayload | PreviewTooLargeEventPayload | ZipEntryLoadFailedEventPayload | ZipEntryLoadSucceededEventPayload | ModalEventPayload | PdfPasswordInputScreenEventPayload | PasswordPdfScreenEventPayload | ClosedEventPayload | DownloadButtonClickedEventPayload | FailedPreviewDownloadButtonClickedEventPayload | NavigatedEventPayload | ZoomInButtonClickEventPayload | ZoomOutButtonClickEventPayload | DownloadFailedEventPayload | DownloadSucceededEventPayload;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type OperationalEventPayload, type OperationalAttributes } from '@atlaskit/media-common';
|
|
2
2
|
/** common definition used by other mediaFile events */
|
|
3
|
-
export type MediaFileEventPayload<Attributes extends OperationalAttributes, Action extends 'commenced' | 'loadSucceeded' | 'loadFailed' | 'previewUnsupported' | 'zipEntryLoadSucceeded' | 'zipEntryLoadFailed' | 'downloadSucceeded' | 'downloadFailed'> = OperationalEventPayload<Attributes, Action, 'mediaFile'>;
|
|
3
|
+
export type MediaFileEventPayload<Attributes extends OperationalAttributes, Action extends 'commenced' | 'loadSucceeded' | 'loadFailed' | 'previewUnsupported' | 'previewTooLarge' | 'zipEntryLoadSucceeded' | 'zipEntryLoadFailed' | 'downloadSucceeded' | 'downloadFailed'> = OperationalEventPayload<Attributes, Action, 'mediaFile'>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FileState } from '@atlaskit/media-client';
|
|
2
|
+
import { type WithFileAttributes } from '@atlaskit/media-common';
|
|
3
|
+
import { type MediaFileEventPayload } from './_mediaFile';
|
|
4
|
+
import { type MediaViewerError, type PrimaryErrorReason } from '../../../errors';
|
|
5
|
+
export type PreviewTooLargeAttributes = WithFileAttributes & {
|
|
6
|
+
failReason: PrimaryErrorReason;
|
|
7
|
+
};
|
|
8
|
+
export type PreviewTooLargeEventPayload = MediaFileEventPayload<PreviewTooLargeAttributes, 'previewTooLarge'>;
|
|
9
|
+
export declare const createPreviewTooLargeEvent: (error: MediaViewerError, fileState: FileState) => PreviewTooLargeEventPayload;
|
package/dist/types/content.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Component, type ReactElement } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import type { WithShowControlMethodProp } from '@atlaskit/media-ui/types';
|
|
4
4
|
export interface ContentProps {
|
|
5
5
|
onClose?: () => void;
|
|
6
6
|
children: ReactElement<WithShowControlMethodProp>;
|
|
@@ -6,6 +6,7 @@ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnal
|
|
|
6
6
|
import { type PrimaryErrorReason, type SecondaryErrorReason, type MediaViewerError } from './errors';
|
|
7
7
|
import { type LoadFailedEventPayload } from './analytics/events/operational/loadFailed';
|
|
8
8
|
import { type PreviewUnsupportedEventPayload } from './analytics/events/operational/previewUnsupported';
|
|
9
|
+
import { type PreviewTooLargeEventPayload } from './analytics/events/operational/previewTooLarge';
|
|
9
10
|
import { type FileStateFlags } from './components/types';
|
|
10
11
|
import { type MediaTraceContext } from '@atlaskit/media-common';
|
|
11
12
|
export type Props = Readonly<{
|
|
@@ -28,7 +29,9 @@ export declare class ErrorMessage extends React.Component<Props & WrappedCompone
|
|
|
28
29
|
componentDidMount(): void;
|
|
29
30
|
private static readonly previewUnsupportedReasons;
|
|
30
31
|
static isPreviewUnsupported(error: MediaViewerError): boolean;
|
|
31
|
-
static
|
|
32
|
+
private static readonly previewTooLargeReasons;
|
|
33
|
+
static isPreviewTooLarge(error: MediaViewerError): boolean;
|
|
34
|
+
static getEventPayload(error: MediaViewerError, fileId: string, fileState?: FileState, traceContext?: MediaTraceContext): PreviewUnsupportedEventPayload | PreviewTooLargeEventPayload | LoadFailedEventPayload;
|
|
32
35
|
render(): React.JSX.Element;
|
|
33
36
|
}
|
|
34
37
|
declare const ErroMsg: React.ComponentType<Props & WithAnalyticsEventsProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type FileState, type Identifier } from '@atlaskit/media-client';
|
|
3
|
-
import {
|
|
3
|
+
import type { WithShowControlMethodProp } from '@atlaskit/media-ui/types';
|
|
4
4
|
import { Outcome } from './domain';
|
|
5
5
|
import { MediaViewerError } from './errors';
|
|
6
6
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
package/dist/types/list.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Identifier } from '@atlaskit/media-client';
|
|
3
|
-
import {
|
|
3
|
+
import type { WithShowControlMethodProp } from '@atlaskit/media-ui/types';
|
|
4
4
|
import { type MediaViewerExtensions } from './components/types';
|
|
5
5
|
import { type MediaFeatureFlags } from '@atlaskit/media-common';
|
|
6
6
|
import { type ViewerOptionsProps } from './viewerOptions';
|
|
@@ -3,7 +3,7 @@ import { type MediaClient, type FileState } from '@atlaskit/media-client';
|
|
|
3
3
|
import { Outcome } from '../domain';
|
|
4
4
|
import { MediaViewerError } from '../errors';
|
|
5
5
|
import { type BaseState, BaseViewer } from './base-viewer';
|
|
6
|
-
import {
|
|
6
|
+
import type { WithShowControlMethodProp } from '@atlaskit/media-ui/types';
|
|
7
7
|
import { type MediaTraceContext } from '@atlaskit/media-common';
|
|
8
8
|
export type Props = Readonly<{
|
|
9
9
|
item: FileState;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Camera
|
|
2
|
+
import { Camera } from '@atlaskit/media-ui/camera/camera';
|
|
3
|
+
import { Vector2 } from '@atlaskit/media-ui/vector2';
|
|
3
4
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
4
5
|
import { ZoomLevel } from '../../domain/zoomLevel';
|
|
5
6
|
export declare function zoomLevelAfterResize(newCamera: Camera, oldCamera: Camera, oldZoomLevel: ZoomLevel): ZoomLevel;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Rectangle
|
|
1
|
+
import { Rectangle } from '@atlaskit/media-ui/rectangle';
|
|
2
|
+
import type { Camera } from '@atlaskit/media-ui/camera/camera';
|
|
2
3
|
import { ZoomLevel } from '../../domain/zoomLevel';
|
|
3
4
|
export declare const clientRectangle: (el: HTMLElement) => Rectangle;
|
|
4
5
|
export declare const naturalSizeRectangle: (el: HTMLImageElement) => Rectangle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type MediaClient, type FileState, type Identifier } from '@atlaskit/media-client';
|
|
3
|
-
import {
|
|
3
|
+
import type { WithShowControlMethodProp } from '@atlaskit/media-ui/types';
|
|
4
4
|
import { Outcome } from '../domain';
|
|
5
5
|
import { MediaViewerError } from '../errors';
|
|
6
6
|
import { type BaseState, BaseViewer } from './base-viewer';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { type ReactNode, type FC } from 'react';
|
|
8
8
|
import { enableMediaUfoLogger } from '@atlaskit/media-test-helpers';
|
|
9
|
-
import { payloadPublisher } from '@atlassian/ufo';
|
|
9
|
+
import { payloadPublisher } from '@atlassian/ufo/publisher';
|
|
10
10
|
import {
|
|
11
11
|
containerStyles,
|
|
12
12
|
groupStyles,
|