@atlaskit/media-viewer 49.4.0 → 49.4.2
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 +12 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/styleWrappers.js +36 -30
- package/dist/cjs/viewers/archiveSidebar/styleWrappers.js +7 -4
- package/dist/cjs/viewers/doc/pdfRenderer.js +1 -1
- package/dist/cjs/viewers/svg/ImageWrapper.js +9 -6
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/styleWrappers.js +24 -19
- package/dist/es2019/viewers/archiveSidebar/styleWrappers.js +7 -4
- package/dist/es2019/viewers/doc/pdfRenderer.js +1 -1
- package/dist/es2019/viewers/svg/ImageWrapper.js +3 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/dist/esm/styleWrappers.js +36 -30
- package/dist/esm/viewers/archiveSidebar/styleWrappers.js +7 -4
- package/dist/esm/viewers/doc/pdfRenderer.js +1 -1
- package/dist/esm/viewers/svg/ImageWrapper.js +9 -6
- package/example-helpers/NativeMediaPreview.tsx +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -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 = "49.4.
|
|
13
|
+
var packageVersion = exports.packageVersion = "49.4.2";
|
|
14
14
|
function getFileAttributes(fileState) {
|
|
15
15
|
if (!fileState) {
|
|
16
16
|
return {
|
|
@@ -12,7 +12,7 @@ var _mediaCommon = require("@atlaskit/media-common");
|
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
var packageName = "@atlaskit/media-viewer";
|
|
15
|
-
var packageVersion = "49.4.
|
|
15
|
+
var packageVersion = "49.4.2";
|
|
16
16
|
var ufoExperience;
|
|
17
17
|
var getExperience = function getExperience() {
|
|
18
18
|
if (!ufoExperience) {
|
|
@@ -577,18 +577,21 @@ var ImageWrapper = exports.ImageWrapper = /*#__PURE__*/(0, _react2.forwardRef)(f
|
|
|
577
577
|
onClick = _ref26.onClick,
|
|
578
578
|
style = _ref26.style,
|
|
579
579
|
className = _ref26.className;
|
|
580
|
-
return (
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
580
|
+
return (
|
|
581
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
582
|
+
(0, _react.jsx)("div", {
|
|
583
|
+
"data-testid": datatestId,
|
|
584
|
+
onClick: onClick,
|
|
585
|
+
ref: ref,
|
|
586
|
+
css: imageWrapperStyles
|
|
587
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
588
|
+
,
|
|
589
|
+
style: style
|
|
590
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
591
|
+
,
|
|
592
|
+
className: className
|
|
593
|
+
}, children)
|
|
594
|
+
);
|
|
592
595
|
});
|
|
593
596
|
var BaselineExtend = exports.BaselineExtend = function BaselineExtend() {
|
|
594
597
|
return (0, _react.jsx)("div", {
|
|
@@ -615,24 +618,27 @@ var Img = exports.Img = function Img(_ref27) {
|
|
|
615
618
|
return 'auto';
|
|
616
619
|
}
|
|
617
620
|
}, [canDrag, isDragging]);
|
|
618
|
-
return (
|
|
619
|
-
// eslint-disable-next-line
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
621
|
+
return (
|
|
622
|
+
// eslint-disable-next-line jsx-a11y/alt-text, jsx-a11y/no-noninteractive-element-interactions
|
|
623
|
+
(0, _react.jsx)("img", {
|
|
624
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
625
|
+
className: className
|
|
626
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
627
|
+
,
|
|
628
|
+
css: imgStyles({
|
|
629
|
+
cursor: cursor,
|
|
630
|
+
shouldPixelate: shouldPixelate
|
|
631
|
+
}),
|
|
632
|
+
"data-testid": datatestId,
|
|
633
|
+
src: src
|
|
634
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
635
|
+
,
|
|
636
|
+
style: style,
|
|
637
|
+
onLoad: onLoad,
|
|
638
|
+
onError: onError,
|
|
639
|
+
onMouseDown: onMouseDown
|
|
640
|
+
})
|
|
641
|
+
);
|
|
636
642
|
};
|
|
637
643
|
var MedatadataTextWrapper = exports.MedatadataTextWrapper = function MedatadataTextWrapper(_ref28) {
|
|
638
644
|
var children = _ref28.children;
|
|
@@ -136,10 +136,13 @@ var ArchiveSidebarFolderWrapper = exports.ArchiveSidebarFolderWrapper = function
|
|
|
136
136
|
var ArchiveDownloadButtonWrapper = exports.ArchiveDownloadButtonWrapper = function ArchiveDownloadButtonWrapper(_ref4) {
|
|
137
137
|
var children = _ref4.children,
|
|
138
138
|
onClick = _ref4.onClick;
|
|
139
|
-
return (
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
return (
|
|
140
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
141
|
+
(0, _react.jsx)("div", {
|
|
142
|
+
css: archiveDownloadButtonWrapperStyles,
|
|
143
|
+
onClick: onClick
|
|
144
|
+
}, children)
|
|
145
|
+
);
|
|
143
146
|
};
|
|
144
147
|
var SidebarItemWrapper = exports.SidebarItemWrapper = function SidebarItemWrapper(_ref5) {
|
|
145
148
|
var children = _ref5.children;
|
|
@@ -301,7 +301,7 @@ var PDFRendererBase = function PDFRendererBase(_ref2) {
|
|
|
301
301
|
ref: savePdfElement
|
|
302
302
|
},
|
|
303
303
|
/*#__PURE__*/
|
|
304
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
304
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
305
305
|
_react.default.createElement("div", {
|
|
306
306
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
307
307
|
className: pdfViewerClassName,
|
|
@@ -27,10 +27,13 @@ var ImageWrapper = exports.ImageWrapper = /*#__PURE__*/(0, _react2.forwardRef)(f
|
|
|
27
27
|
var children = _ref.children,
|
|
28
28
|
onClick = _ref.onClick,
|
|
29
29
|
isHidden = _ref.isHidden;
|
|
30
|
-
return (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
return (
|
|
31
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
32
|
+
(0, _react.jsx)("div", {
|
|
33
|
+
"data-testid": "media-viewer-svg-wrapper",
|
|
34
|
+
onClick: onClick,
|
|
35
|
+
ref: ref,
|
|
36
|
+
css: [imageWrapperStyles, isHidden && dynamicImageWrapperStyles]
|
|
37
|
+
}, children)
|
|
38
|
+
);
|
|
36
39
|
});
|
|
@@ -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 = "49.4.
|
|
4
|
+
const packageVersion = "49.4.2";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -2,7 +2,7 @@ import { UFOExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atl
|
|
|
2
2
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
3
3
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
4
4
|
const packageName = "@atlaskit/media-viewer";
|
|
5
|
-
const packageVersion = "49.4.
|
|
5
|
+
const packageVersion = "49.4.2";
|
|
6
6
|
let ufoExperience;
|
|
7
7
|
const getExperience = () => {
|
|
8
8
|
if (!ufoExperience) {
|
|
@@ -547,7 +547,9 @@ export const ImageWrapper = /*#__PURE__*/forwardRef(({
|
|
|
547
547
|
onClick,
|
|
548
548
|
style,
|
|
549
549
|
className
|
|
550
|
-
}, ref) =>
|
|
550
|
+
}, ref) =>
|
|
551
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
552
|
+
jsx("div", {
|
|
551
553
|
"data-testid": datatestId,
|
|
552
554
|
onClick: onClick,
|
|
553
555
|
ref: ref,
|
|
@@ -583,24 +585,27 @@ export const Img = ({
|
|
|
583
585
|
return 'auto';
|
|
584
586
|
}
|
|
585
587
|
}, [canDrag, isDragging]);
|
|
586
|
-
return
|
|
587
|
-
// eslint-disable-next-line
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
588
|
+
return (
|
|
589
|
+
// eslint-disable-next-line jsx-a11y/alt-text, jsx-a11y/no-noninteractive-element-interactions
|
|
590
|
+
jsx("img", {
|
|
591
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
592
|
+
className: className
|
|
593
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
594
|
+
,
|
|
595
|
+
css: imgStyles({
|
|
596
|
+
cursor,
|
|
597
|
+
shouldPixelate
|
|
598
|
+
}),
|
|
599
|
+
"data-testid": datatestId,
|
|
600
|
+
src: src
|
|
601
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
602
|
+
,
|
|
603
|
+
style: style,
|
|
604
|
+
onLoad: onLoad,
|
|
605
|
+
onError: onError,
|
|
606
|
+
onMouseDown: onMouseDown
|
|
607
|
+
})
|
|
608
|
+
);
|
|
604
609
|
};
|
|
605
610
|
export const MedatadataTextWrapper = ({
|
|
606
611
|
children
|
|
@@ -133,10 +133,13 @@ export const ArchiveDownloadButtonWrapper = ({
|
|
|
133
133
|
children,
|
|
134
134
|
onClick
|
|
135
135
|
}) => {
|
|
136
|
-
return
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
return (
|
|
137
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
138
|
+
jsx("div", {
|
|
139
|
+
css: archiveDownloadButtonWrapperStyles,
|
|
140
|
+
onClick: onClick
|
|
141
|
+
}, children)
|
|
142
|
+
);
|
|
140
143
|
};
|
|
141
144
|
export const SidebarItemWrapper = ({
|
|
142
145
|
children
|
|
@@ -219,7 +219,7 @@ const PDFRendererBase = ({
|
|
|
219
219
|
ref: savePdfElement
|
|
220
220
|
},
|
|
221
221
|
/*#__PURE__*/
|
|
222
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
222
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
223
223
|
React.createElement("div", {
|
|
224
224
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
225
225
|
className: pdfViewerClassName,
|
|
@@ -20,7 +20,9 @@ export const ImageWrapper = /*#__PURE__*/forwardRef(({
|
|
|
20
20
|
children,
|
|
21
21
|
onClick,
|
|
22
22
|
isHidden
|
|
23
|
-
}, ref) =>
|
|
23
|
+
}, ref) =>
|
|
24
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
25
|
+
jsx("div", {
|
|
24
26
|
"data-testid": "media-viewer-svg-wrapper",
|
|
25
27
|
onClick: onClick,
|
|
26
28
|
ref: ref,
|
|
@@ -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 = "49.4.
|
|
4
|
+
var packageVersion = "49.4.2";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -5,7 +5,7 @@ import { UFOExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atl
|
|
|
5
5
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
6
6
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
7
7
|
var packageName = "@atlaskit/media-viewer";
|
|
8
|
-
var packageVersion = "49.4.
|
|
8
|
+
var packageVersion = "49.4.2";
|
|
9
9
|
var ufoExperience;
|
|
10
10
|
var getExperience = function getExperience() {
|
|
11
11
|
if (!ufoExperience) {
|
|
@@ -569,18 +569,21 @@ export var ImageWrapper = /*#__PURE__*/forwardRef(function (_ref26, ref) {
|
|
|
569
569
|
onClick = _ref26.onClick,
|
|
570
570
|
style = _ref26.style,
|
|
571
571
|
className = _ref26.className;
|
|
572
|
-
return
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
572
|
+
return (
|
|
573
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
574
|
+
jsx("div", {
|
|
575
|
+
"data-testid": datatestId,
|
|
576
|
+
onClick: onClick,
|
|
577
|
+
ref: ref,
|
|
578
|
+
css: imageWrapperStyles
|
|
579
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
580
|
+
,
|
|
581
|
+
style: style
|
|
582
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
583
|
+
,
|
|
584
|
+
className: className
|
|
585
|
+
}, children)
|
|
586
|
+
);
|
|
584
587
|
});
|
|
585
588
|
export var BaselineExtend = function BaselineExtend() {
|
|
586
589
|
return jsx("div", {
|
|
@@ -607,24 +610,27 @@ export var Img = function Img(_ref27) {
|
|
|
607
610
|
return 'auto';
|
|
608
611
|
}
|
|
609
612
|
}, [canDrag, isDragging]);
|
|
610
|
-
return
|
|
611
|
-
// eslint-disable-next-line
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
613
|
+
return (
|
|
614
|
+
// eslint-disable-next-line jsx-a11y/alt-text, jsx-a11y/no-noninteractive-element-interactions
|
|
615
|
+
jsx("img", {
|
|
616
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
617
|
+
className: className
|
|
618
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
619
|
+
,
|
|
620
|
+
css: imgStyles({
|
|
621
|
+
cursor: cursor,
|
|
622
|
+
shouldPixelate: shouldPixelate
|
|
623
|
+
}),
|
|
624
|
+
"data-testid": datatestId,
|
|
625
|
+
src: src
|
|
626
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
627
|
+
,
|
|
628
|
+
style: style,
|
|
629
|
+
onLoad: onLoad,
|
|
630
|
+
onError: onError,
|
|
631
|
+
onMouseDown: onMouseDown
|
|
632
|
+
})
|
|
633
|
+
);
|
|
628
634
|
};
|
|
629
635
|
export var MedatadataTextWrapper = function MedatadataTextWrapper(_ref28) {
|
|
630
636
|
var children = _ref28.children;
|
|
@@ -129,10 +129,13 @@ export var ArchiveSidebarFolderWrapper = function ArchiveSidebarFolderWrapper(_r
|
|
|
129
129
|
export var ArchiveDownloadButtonWrapper = function ArchiveDownloadButtonWrapper(_ref4) {
|
|
130
130
|
var children = _ref4.children,
|
|
131
131
|
onClick = _ref4.onClick;
|
|
132
|
-
return
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
return (
|
|
133
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
134
|
+
jsx("div", {
|
|
135
|
+
css: archiveDownloadButtonWrapperStyles,
|
|
136
|
+
onClick: onClick
|
|
137
|
+
}, children)
|
|
138
|
+
);
|
|
136
139
|
};
|
|
137
140
|
export var SidebarItemWrapper = function SidebarItemWrapper(_ref5) {
|
|
138
141
|
var children = _ref5.children;
|
|
@@ -290,7 +290,7 @@ var PDFRendererBase = function PDFRendererBase(_ref2) {
|
|
|
290
290
|
ref: savePdfElement
|
|
291
291
|
},
|
|
292
292
|
/*#__PURE__*/
|
|
293
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
293
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
294
294
|
React.createElement("div", {
|
|
295
295
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
296
296
|
className: pdfViewerClassName,
|
|
@@ -20,10 +20,13 @@ export var ImageWrapper = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20
20
|
var children = _ref.children,
|
|
21
21
|
onClick = _ref.onClick,
|
|
22
22
|
isHidden = _ref.isHidden;
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
return (
|
|
24
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
25
|
+
jsx("div", {
|
|
26
|
+
"data-testid": "media-viewer-svg-wrapper",
|
|
27
|
+
onClick: onClick,
|
|
28
|
+
ref: ref,
|
|
29
|
+
css: [imageWrapperStyles, isHidden && dynamicImageWrapperStyles]
|
|
30
|
+
}, children)
|
|
31
|
+
);
|
|
29
32
|
});
|
|
@@ -71,7 +71,7 @@ export const NativeMediaPreview = ({
|
|
|
71
71
|
return (
|
|
72
72
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
73
73
|
<Pressable testId="media-native-preview" xcss={nativePreviewButtonStyles} onClick={onClick}>
|
|
74
|
-
{/* eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766 */}
|
|
74
|
+
{/* eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, jsx-a11y/alt-text -- Ignored via go/DSP-18766 */}
|
|
75
75
|
<img style={{ maxWidth: '100%' }} src={url} />
|
|
76
76
|
</Pressable>
|
|
77
77
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "49.4.
|
|
3
|
+
"version": "49.4.2",
|
|
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/"
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
"@atlaskit/button": "^20.3.0",
|
|
39
39
|
"@atlaskit/code": "^15.6.0",
|
|
40
40
|
"@atlaskit/form": "^10.5.0",
|
|
41
|
-
"@atlaskit/icon": "^22.
|
|
41
|
+
"@atlaskit/icon": "^22.26.0",
|
|
42
42
|
"@atlaskit/icon-file-type": "^6.7.0",
|
|
43
43
|
"@atlaskit/media-client": "^28.3.0",
|
|
44
44
|
"@atlaskit/media-client-react": "^2.3.0",
|
|
45
45
|
"@atlaskit/media-common": "^11.7.0",
|
|
46
|
-
"@atlaskit/media-svg": "^0.
|
|
47
|
-
"@atlaskit/media-ui": "^
|
|
46
|
+
"@atlaskit/media-svg": "^1.0.0",
|
|
47
|
+
"@atlaskit/media-ui": "^27.0.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
|
-
"@atlaskit/primitives": "^13.
|
|
49
|
+
"@atlaskit/primitives": "^13.3.0",
|
|
50
50
|
"@atlaskit/side-navigation": "^3.6.0",
|
|
51
51
|
"@atlaskit/spinner": "^16.3.0",
|
|
52
|
-
"@atlaskit/textfield": "^6.
|
|
52
|
+
"@atlaskit/textfield": "^6.6.0",
|
|
53
53
|
"@atlaskit/theme": "^14.0.0",
|
|
54
|
-
"@atlaskit/tokens": "^2.
|
|
54
|
+
"@atlaskit/tokens": "^2.3.0",
|
|
55
55
|
"@atlaskit/ufo": "^0.3.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|
|
57
57
|
"@kenjiuno/msgreader": "^1.2.6",
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
"@atlaskit/media-core": "^34.3.0",
|
|
79
79
|
"@atlaskit/media-integration-test-helpers": "^3.1.0",
|
|
80
80
|
"@atlaskit/media-state": "^1.1.0",
|
|
81
|
-
"@atlaskit/media-test-data": "^2.
|
|
81
|
+
"@atlaskit/media-test-data": "^2.7.0",
|
|
82
82
|
"@atlaskit/media-test-helpers": "^34.6.0",
|
|
83
83
|
"@atlaskit/ssr": "*",
|
|
84
|
-
"@atlaskit/toggle": "13.4.
|
|
84
|
+
"@atlaskit/toggle": "13.4.8",
|
|
85
85
|
"@atlaskit/visual-regression": "*",
|
|
86
86
|
"@atlassian/feature-flags-test-utils": "*",
|
|
87
87
|
"@atlassian/ufo": "^0.4.0",
|