@atlaskit/media-viewer 52.4.12 → 52.4.13
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 +8 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/viewers/archiveSidebar/styleWrappers-compiled.compiled.css +1 -1
- package/dist/cjs/viewers/archiveSidebar/styleWrappers-compiled.js +2 -2
- package/dist/cjs/viewers/archiveSidebar/styleWrappers-emotion.js +4 -2
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/viewers/archiveSidebar/styleWrappers-compiled.compiled.css +1 -1
- package/dist/es2019/viewers/archiveSidebar/styleWrappers-compiled.js +2 -2
- package/dist/es2019/viewers/archiveSidebar/styleWrappers-emotion.js +4 -2
- package/dist/es2019/viewers/doc/extractCompressedBase64.js +1 -0
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/dist/esm/viewers/archiveSidebar/styleWrappers-compiled.compiled.css +1 -1
- package/dist/esm/viewers/archiveSidebar/styleWrappers-compiled.js +2 -2
- package/dist/esm/viewers/archiveSidebar/styleWrappers-emotion.js +4 -2
- package/dist/types/item-viewer.d.ts +4 -4
- package/dist/types/navigation.d.ts +1 -1
- package/dist/types/viewerOptions.d.ts +0 -1
- package/dist/types/viewers/archiveSidebar/custom-button-item.d.ts +0 -1
- package/dist/types/viewers/codeViewer/CodeRendererAdvanced/CodeRendererAdvanced.d.ts +0 -1
- package/dist/types/viewers/codeViewer/codeViewerRenderer.d.ts +1 -1
- package/dist/types/viewers/codeViewer/msg-parser.d.ts +1 -1
- package/dist/types/viewers/doc/pdfPasswordInput-compiled.d.ts +0 -1
- package/dist/types/viewers/doc/pdfRenderer.d.ts +4 -4
- package/dist/types/viewers/doc-next/doc-viewer.d.ts +0 -1
- package/dist/types/viewers/doc-next/passwordInput.d.ts +0 -1
- package/dist/types-ts4.5/item-viewer.d.ts +4 -4
- package/dist/types-ts4.5/navigation.d.ts +1 -1
- package/dist/types-ts4.5/viewerOptions.d.ts +0 -1
- package/dist/types-ts4.5/viewers/archiveSidebar/custom-button-item.d.ts +0 -1
- package/dist/types-ts4.5/viewers/codeViewer/CodeRendererAdvanced/CodeRendererAdvanced.d.ts +0 -1
- package/dist/types-ts4.5/viewers/codeViewer/codeViewerRenderer.d.ts +1 -1
- package/dist/types-ts4.5/viewers/codeViewer/msg-parser.d.ts +1 -1
- package/dist/types-ts4.5/viewers/doc/pdfPasswordInput-compiled.d.ts +0 -1
- package/dist/types-ts4.5/viewers/doc/pdfRenderer.d.ts +4 -4
- package/dist/types-ts4.5/viewers/doc-next/doc-viewer.d.ts +0 -1
- package/dist/types-ts4.5/viewers/doc-next/passwordInput.d.ts +0 -1
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/media-viewer
|
|
2
2
|
|
|
3
|
+
## 52.4.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#199353](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/199353)
|
|
8
|
+
[`f2d4ca35574b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2d4ca35574b8) -
|
|
9
|
+
Internal changes to how border radius values are applied. No visual change.
|
|
10
|
+
|
|
3
11
|
## 52.4.12
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -10,7 +10,7 @@ exports.packageVersion = exports.packageName = void 0;
|
|
|
10
10
|
var _analytics = require("@atlaskit/media-common/analytics");
|
|
11
11
|
var componentName = exports.component = exports.componentName = 'mediaViewer';
|
|
12
12
|
var packageName = exports.packageName = "@atlaskit/media-viewer";
|
|
13
|
-
var packageVersion = exports.packageVersion = "52.4.
|
|
13
|
+
var packageVersion = exports.packageVersion = "52.4.12";
|
|
14
14
|
function getFileAttributes(fileState) {
|
|
15
15
|
if (!fileState) {
|
|
16
16
|
return {
|
|
@@ -13,7 +13,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
13
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
14
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
15
|
var packageName = "@atlaskit/media-viewer";
|
|
16
|
-
var packageVersion = "52.4.
|
|
16
|
+
var packageVersion = "52.4.12";
|
|
17
17
|
var ufoExperience;
|
|
18
18
|
var getExperience = function getExperience() {
|
|
19
19
|
if (!ufoExperience) {
|
|
@@ -57,14 +57,14 @@ var ArchiveDownloadButtonWrapper = exports.ArchiveDownloadButtonWrapper = functi
|
|
|
57
57
|
return /*#__PURE__*/React.createElement("div", {
|
|
58
58
|
onClick: onClick,
|
|
59
59
|
"data-testid": "media-archiveDownloadButton",
|
|
60
|
-
className: (0, _runtime.ax)(["_19itglyw
|
|
60
|
+
className: (0, _runtime.ax)(["_19itglyw _2rkosqtm _ca0qu2gc _u5f31v6z _n3td14y2 _19bvu2gc _bfhk1j28 _syazwydc _d0altlke _irr3ebx2 _1qamtlke _1di6j4ot"])
|
|
61
61
|
}, children);
|
|
62
62
|
};
|
|
63
63
|
var DisabledArchiveDownloadButtonWrapper = exports.DisabledArchiveDownloadButtonWrapper = function DisabledArchiveDownloadButtonWrapper(_ref5) {
|
|
64
64
|
var children = _ref5.children;
|
|
65
65
|
return /*#__PURE__*/React.createElement("div", {
|
|
66
66
|
"data-testid": "media-disabledArchiveDownloadButton",
|
|
67
|
-
className: (0, _runtime.ax)(["_19itglyw
|
|
67
|
+
className: (0, _runtime.ax)(["_19itglyw _2rkosqtm _ca0qu2gc _u5f31v6z _n3td14y2 _19bvu2gc _bfhk1j28 _syazwydc _80om13gf"])
|
|
68
68
|
}, children);
|
|
69
69
|
};
|
|
70
70
|
var SidebarItemWrapper = exports.SidebarItemWrapper = function SidebarItemWrapper(_ref6) {
|
|
@@ -47,7 +47,8 @@ var slideDown = (0, _react2.keyframes)({
|
|
|
47
47
|
var archiveDownloadButtonWrapperStyles = (0, _react2.css)({
|
|
48
48
|
padding: "var(--ds-space-100, 8px)".concat(" 7px 5px ", "var(--ds-space-100, 8px)"),
|
|
49
49
|
border: 'none',
|
|
50
|
-
|
|
50
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
51
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
51
52
|
backgroundColor: 'transparent',
|
|
52
53
|
color: "var(--ds-icon, #9FADBC)",
|
|
53
54
|
'&:hover': {
|
|
@@ -62,7 +63,8 @@ var archiveDownloadButtonWrapperStyles = (0, _react2.css)({
|
|
|
62
63
|
var disabledArchiveDownloadButtonWrapperStyles = (0, _react2.css)({
|
|
63
64
|
padding: "var(--ds-space-100, 8px)".concat(" 7px 5px ", "var(--ds-space-100, 8px)"),
|
|
64
65
|
border: 'none',
|
|
65
|
-
|
|
66
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
67
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
66
68
|
backgroundColor: 'transparent',
|
|
67
69
|
color: "var(--ds-icon, #9FADBC)",
|
|
68
70
|
cursor: 'not-allowed'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
|
|
2
2
|
const componentName = 'mediaViewer';
|
|
3
3
|
const packageName = "@atlaskit/media-viewer";
|
|
4
|
-
const packageVersion = "52.4.
|
|
4
|
+
const packageVersion = "52.4.12";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -3,7 +3,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
|
3
3
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
5
|
const packageName = "@atlaskit/media-viewer";
|
|
6
|
-
const packageVersion = "52.4.
|
|
6
|
+
const packageVersion = "52.4.12";
|
|
7
7
|
let ufoExperience;
|
|
8
8
|
const getExperience = () => {
|
|
9
9
|
if (!ufoExperience) {
|
|
@@ -51,7 +51,7 @@ export const ArchiveDownloadButtonWrapper = ({
|
|
|
51
51
|
return /*#__PURE__*/React.createElement("div", {
|
|
52
52
|
onClick: onClick,
|
|
53
53
|
"data-testid": "media-archiveDownloadButton",
|
|
54
|
-
className: ax(["_19itglyw
|
|
54
|
+
className: ax(["_19itglyw _2rkosqtm _ca0qu2gc _u5f31v6z _n3td14y2 _19bvu2gc _bfhk1j28 _syazwydc _d0altlke _irr3ebx2 _1qamtlke _1di6j4ot"])
|
|
55
55
|
}, children);
|
|
56
56
|
};
|
|
57
57
|
export const DisabledArchiveDownloadButtonWrapper = ({
|
|
@@ -59,7 +59,7 @@ export const DisabledArchiveDownloadButtonWrapper = ({
|
|
|
59
59
|
}) => {
|
|
60
60
|
return /*#__PURE__*/React.createElement("div", {
|
|
61
61
|
"data-testid": "media-disabledArchiveDownloadButton",
|
|
62
|
-
className: ax(["_19itglyw
|
|
62
|
+
className: ax(["_19itglyw _2rkosqtm _ca0qu2gc _u5f31v6z _n3td14y2 _19bvu2gc _bfhk1j28 _syazwydc _80om13gf"])
|
|
63
63
|
}, children);
|
|
64
64
|
};
|
|
65
65
|
export const SidebarItemWrapper = ({
|
|
@@ -37,7 +37,8 @@ const slideDown = keyframes({
|
|
|
37
37
|
const archiveDownloadButtonWrapperStyles = css({
|
|
38
38
|
padding: `${"var(--ds-space-100, 8px)"} 7px 5px ${"var(--ds-space-100, 8px)"}`,
|
|
39
39
|
border: 'none',
|
|
40
|
-
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
41
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
41
42
|
backgroundColor: 'transparent',
|
|
42
43
|
color: "var(--ds-icon, #9FADBC)",
|
|
43
44
|
'&:hover': {
|
|
@@ -52,7 +53,8 @@ const archiveDownloadButtonWrapperStyles = css({
|
|
|
52
53
|
const disabledArchiveDownloadButtonWrapperStyles = css({
|
|
53
54
|
padding: `${"var(--ds-space-100, 8px)"} 7px 5px ${"var(--ds-space-100, 8px)"}`,
|
|
54
55
|
border: 'none',
|
|
55
|
-
|
|
56
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
57
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
56
58
|
backgroundColor: 'transparent',
|
|
57
59
|
color: "var(--ds-icon, #9FADBC)",
|
|
58
60
|
cursor: 'not-allowed'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
|
|
2
2
|
var componentName = 'mediaViewer';
|
|
3
3
|
var packageName = "@atlaskit/media-viewer";
|
|
4
|
-
var packageVersion = "52.4.
|
|
4
|
+
var packageVersion = "52.4.12";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -6,7 +6,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
|
6
6
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
var packageName = "@atlaskit/media-viewer";
|
|
9
|
-
var packageVersion = "52.4.
|
|
9
|
+
var packageVersion = "52.4.12";
|
|
10
10
|
var ufoExperience;
|
|
11
11
|
var getExperience = function getExperience() {
|
|
12
12
|
if (!ufoExperience) {
|
|
@@ -50,14 +50,14 @@ export var ArchiveDownloadButtonWrapper = function ArchiveDownloadButtonWrapper(
|
|
|
50
50
|
return /*#__PURE__*/React.createElement("div", {
|
|
51
51
|
onClick: onClick,
|
|
52
52
|
"data-testid": "media-archiveDownloadButton",
|
|
53
|
-
className: ax(["_19itglyw
|
|
53
|
+
className: ax(["_19itglyw _2rkosqtm _ca0qu2gc _u5f31v6z _n3td14y2 _19bvu2gc _bfhk1j28 _syazwydc _d0altlke _irr3ebx2 _1qamtlke _1di6j4ot"])
|
|
54
54
|
}, children);
|
|
55
55
|
};
|
|
56
56
|
export var DisabledArchiveDownloadButtonWrapper = function DisabledArchiveDownloadButtonWrapper(_ref5) {
|
|
57
57
|
var children = _ref5.children;
|
|
58
58
|
return /*#__PURE__*/React.createElement("div", {
|
|
59
59
|
"data-testid": "media-disabledArchiveDownloadButton",
|
|
60
|
-
className: ax(["_19itglyw
|
|
60
|
+
className: ax(["_19itglyw _2rkosqtm _ca0qu2gc _u5f31v6z _n3td14y2 _19bvu2gc _bfhk1j28 _syazwydc _80om13gf"])
|
|
61
61
|
}, children);
|
|
62
62
|
};
|
|
63
63
|
export var SidebarItemWrapper = function SidebarItemWrapper(_ref6) {
|
|
@@ -38,7 +38,8 @@ var slideDown = keyframes({
|
|
|
38
38
|
var archiveDownloadButtonWrapperStyles = css({
|
|
39
39
|
padding: "var(--ds-space-100, 8px)".concat(" 7px 5px ", "var(--ds-space-100, 8px)"),
|
|
40
40
|
border: 'none',
|
|
41
|
-
|
|
41
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
42
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
42
43
|
backgroundColor: 'transparent',
|
|
43
44
|
color: "var(--ds-icon, #9FADBC)",
|
|
44
45
|
'&:hover': {
|
|
@@ -53,7 +54,8 @@ var archiveDownloadButtonWrapperStyles = css({
|
|
|
53
54
|
var disabledArchiveDownloadButtonWrapperStyles = css({
|
|
54
55
|
padding: "var(--ds-space-100, 8px)".concat(" 7px 5px ", "var(--ds-space-100, 8px)"),
|
|
55
56
|
border: 'none',
|
|
56
|
-
|
|
57
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
58
|
+
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
57
59
|
backgroundColor: 'transparent',
|
|
58
60
|
color: "var(--ds-icon, #9FADBC)",
|
|
59
61
|
cursor: 'not-allowed'
|
|
@@ -23,10 +23,10 @@ export declare const MAX_FILE_SIZE_SUPPORTED_BY_CODEVIEWER: number;
|
|
|
23
23
|
export declare const ItemViewerBase: ({ identifier, showControls, onClose, previewCount, contextId, createAnalyticsEvent, viewerOptions, traceContext, }: Props) => React.ReactElement | null;
|
|
24
24
|
export declare const ItemViewer: React.ForwardRefExoticComponent<Omit<Readonly<{
|
|
25
25
|
identifier: Identifier;
|
|
26
|
-
onClose?: (
|
|
26
|
+
onClose?: () => void;
|
|
27
27
|
previewCount: number;
|
|
28
|
-
contextId?: string
|
|
29
|
-
featureFlags?: MediaFeatureFlags
|
|
30
|
-
viewerOptions?: ViewerOptionsProps
|
|
28
|
+
contextId?: string;
|
|
29
|
+
featureFlags?: MediaFeatureFlags;
|
|
30
|
+
viewerOptions?: ViewerOptionsProps;
|
|
31
31
|
traceContext: MediaTraceContext;
|
|
32
32
|
}> & WithShowControlMethodProp, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
@@ -21,5 +21,5 @@ export declare const Navigation: React.ForwardRefExoticComponent<Omit<Readonly<{
|
|
|
21
21
|
items: Identifier[];
|
|
22
22
|
selectedItem: Identifier;
|
|
23
23
|
onChange: (item: Identifier) => void;
|
|
24
|
-
isArchiveSideBarVisible?: boolean
|
|
24
|
+
isArchiveSideBarVisible?: boolean;
|
|
25
25
|
}>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
@@ -5,7 +5,7 @@ import type { SupportedLanguages } from '@atlaskit/code/types';
|
|
|
5
5
|
import { type MediaViewerError } from '../../errors';
|
|
6
6
|
export declare const CodeViewWrapper: (props: {
|
|
7
7
|
children: ReactNode;
|
|
8
|
-
|
|
8
|
+
"data-testid": string | undefined;
|
|
9
9
|
}) => React.JSX.Element;
|
|
10
10
|
export declare const CodeViewerHeaderBar: () => React.JSX.Element;
|
|
11
11
|
export type Props = {
|
|
@@ -5,4 +5,4 @@ export declare function formatMessage(text: string): string;
|
|
|
5
5
|
export declare function parseHeaders(headers: string): {
|
|
6
6
|
[key: string]: string;
|
|
7
7
|
};
|
|
8
|
-
export declare function getMsgDate(rawHeaders: string): "-"
|
|
8
|
+
export declare function getMsgDate(rawHeaders: string): Date | "-";
|
|
@@ -14,8 +14,8 @@ export type Props = {
|
|
|
14
14
|
export declare const PDFRenderer: React.ForwardRefExoticComponent<Omit<{
|
|
15
15
|
item: FileState;
|
|
16
16
|
src: string;
|
|
17
|
-
workerUrl?: string
|
|
18
|
-
onClose?: (
|
|
19
|
-
onSuccess?: (
|
|
20
|
-
onError?: (
|
|
17
|
+
workerUrl?: string;
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
onSuccess?: () => void;
|
|
20
|
+
onError?: (error: MediaViewerError) => void;
|
|
21
21
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
@@ -23,10 +23,10 @@ export declare const MAX_FILE_SIZE_SUPPORTED_BY_CODEVIEWER: number;
|
|
|
23
23
|
export declare const ItemViewerBase: ({ identifier, showControls, onClose, previewCount, contextId, createAnalyticsEvent, viewerOptions, traceContext, }: Props) => React.ReactElement | null;
|
|
24
24
|
export declare const ItemViewer: React.ForwardRefExoticComponent<Omit<Readonly<{
|
|
25
25
|
identifier: Identifier;
|
|
26
|
-
onClose?: (
|
|
26
|
+
onClose?: () => void;
|
|
27
27
|
previewCount: number;
|
|
28
|
-
contextId?: string
|
|
29
|
-
featureFlags?: MediaFeatureFlags
|
|
30
|
-
viewerOptions?: ViewerOptionsProps
|
|
28
|
+
contextId?: string;
|
|
29
|
+
featureFlags?: MediaFeatureFlags;
|
|
30
|
+
viewerOptions?: ViewerOptionsProps;
|
|
31
31
|
traceContext: MediaTraceContext;
|
|
32
32
|
}> & WithShowControlMethodProp, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
@@ -21,5 +21,5 @@ export declare const Navigation: React.ForwardRefExoticComponent<Omit<Readonly<{
|
|
|
21
21
|
items: Identifier[];
|
|
22
22
|
selectedItem: Identifier;
|
|
23
23
|
onChange: (item: Identifier) => void;
|
|
24
|
-
isArchiveSideBarVisible?: boolean
|
|
24
|
+
isArchiveSideBarVisible?: boolean;
|
|
25
25
|
}>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
@@ -5,7 +5,7 @@ import type { SupportedLanguages } from '@atlaskit/code/types';
|
|
|
5
5
|
import { type MediaViewerError } from '../../errors';
|
|
6
6
|
export declare const CodeViewWrapper: (props: {
|
|
7
7
|
children: ReactNode;
|
|
8
|
-
|
|
8
|
+
"data-testid": string | undefined;
|
|
9
9
|
}) => React.JSX.Element;
|
|
10
10
|
export declare const CodeViewerHeaderBar: () => React.JSX.Element;
|
|
11
11
|
export type Props = {
|
|
@@ -5,4 +5,4 @@ export declare function formatMessage(text: string): string;
|
|
|
5
5
|
export declare function parseHeaders(headers: string): {
|
|
6
6
|
[key: string]: string;
|
|
7
7
|
};
|
|
8
|
-
export declare function getMsgDate(rawHeaders: string): "-"
|
|
8
|
+
export declare function getMsgDate(rawHeaders: string): Date | "-";
|
|
@@ -14,8 +14,8 @@ export type Props = {
|
|
|
14
14
|
export declare const PDFRenderer: React.ForwardRefExoticComponent<Omit<{
|
|
15
15
|
item: FileState;
|
|
16
16
|
src: string;
|
|
17
|
-
workerUrl?: string
|
|
18
|
-
onClose?: (
|
|
19
|
-
onSuccess?: (
|
|
20
|
-
onError?: (
|
|
17
|
+
workerUrl?: string;
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
onSuccess?: () => void;
|
|
20
|
+
onError?: (error: MediaViewerError) => void;
|
|
21
21
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "52.4.
|
|
3
|
+
"version": "52.4.13",
|
|
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/"
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"@atlaskit/css": "^0.12.0",
|
|
42
42
|
"@atlaskit/form": "^12.0.0",
|
|
43
43
|
"@atlaskit/heading": "^5.2.0",
|
|
44
|
-
"@atlaskit/icon": "^27.
|
|
44
|
+
"@atlaskit/icon": "^27.11.0",
|
|
45
45
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
46
|
-
"@atlaskit/icon-lab": "^5.
|
|
47
|
-
"@atlaskit/media-client": "^35.
|
|
46
|
+
"@atlaskit/icon-lab": "^5.4.0",
|
|
47
|
+
"@atlaskit/media-client": "^35.3.0",
|
|
48
48
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
49
49
|
"@atlaskit/media-common": "^12.3.0",
|
|
50
50
|
"@atlaskit/media-document-viewer": "^0.3.0",
|
|
@@ -111,7 +111,6 @@
|
|
|
111
111
|
"react-dom": "^18.2.0",
|
|
112
112
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
113
113
|
"rxjs": "^5.5.0",
|
|
114
|
-
"typescript": "~5.4.2",
|
|
115
114
|
"wait-for-expect": "^1.2.0"
|
|
116
115
|
},
|
|
117
116
|
"platform-feature-flags": {
|