@atlaskit/media-viewer 52.4.2 → 52.4.4

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/analytics/index.js +1 -1
  3. package/dist/cjs/analytics/ufoExperiences.js +1 -1
  4. package/dist/cjs/item-viewer.js +3 -1
  5. package/dist/cjs/styleWrappers-emotion.js +3 -1
  6. package/dist/cjs/viewers/archiveSidebar/archive.js +1 -0
  7. package/dist/cjs/viewers/image/index.js +5 -1
  8. package/dist/cjs/viewers/image/interactive-img.js +2 -1
  9. package/dist/es2019/analytics/index.js +1 -1
  10. package/dist/es2019/analytics/ufoExperiences.js +1 -1
  11. package/dist/es2019/item-viewer.js +3 -1
  12. package/dist/es2019/styleWrappers-emotion.js +3 -1
  13. package/dist/es2019/viewers/archiveSidebar/archive.js +1 -0
  14. package/dist/es2019/viewers/image/index.js +5 -1
  15. package/dist/es2019/viewers/image/interactive-img.js +2 -1
  16. package/dist/esm/analytics/index.js +1 -1
  17. package/dist/esm/analytics/ufoExperiences.js +1 -1
  18. package/dist/esm/item-viewer.js +3 -1
  19. package/dist/esm/styleWrappers-emotion.js +3 -1
  20. package/dist/esm/viewers/archiveSidebar/archive.js +1 -0
  21. package/dist/esm/viewers/image/index.js +5 -1
  22. package/dist/esm/viewers/image/interactive-img.js +2 -1
  23. package/dist/types/styleWrappers-emotion.d.ts +2 -1
  24. package/dist/types/styleWrappers.d.ts +1 -0
  25. package/dist/types/viewers/image/index.d.ts +1 -1
  26. package/dist/types/viewers/image/interactive-img.d.ts +1 -0
  27. package/dist/types-ts4.5/styleWrappers-emotion.d.ts +2 -1
  28. package/dist/types-ts4.5/styleWrappers.d.ts +1 -0
  29. package/dist/types-ts4.5/viewers/image/index.d.ts +1 -1
  30. package/dist/types-ts4.5/viewers/image/interactive-img.d.ts +1 -0
  31. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/media-viewer
2
2
 
3
+ ## 52.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#180471](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/180471)
8
+ [`c45881148e552`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c45881148e552) -
9
+ Added image alt tags for a11y compliance
10
+
11
+ ## 52.4.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 52.4.2
4
18
 
5
19
  ### 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.1";
13
+ var packageVersion = exports.packageVersion = "52.4.3";
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 = "52.4.1";
15
+ var packageVersion = "52.4.3";
16
16
  var ufoExperience;
17
17
  var getExperience = function getExperience() {
18
18
  if (!ufoExperience) {
@@ -335,9 +335,11 @@ var ItemViewerBase = exports.ItemViewerBase = function ItemViewerBase(_ref) {
335
335
  if (fileItem === 'external-image') {
336
336
  // render an external image
337
337
  var _ref2 = identifier,
338
- dataURI = _ref2.dataURI;
338
+ dataURI = _ref2.dataURI,
339
+ name = _ref2.name;
339
340
  return /*#__PURE__*/_react.default.createElement(_interactiveImg.InteractiveImg, {
340
341
  src: dataURI,
342
+ alt: name !== null && name !== void 0 ? name : '',
341
343
  onLoad: function onLoad() {
342
344
  (0, _analytics.fireAnalytics)((0, _loadSucceeded.createLoadSucceededEvent)({
343
345
  fileId: 'external-image'
@@ -620,6 +620,7 @@ var Img = exports.Img = function Img(_ref25) {
620
620
  onLoad = _ref25.onLoad,
621
621
  onError = _ref25.onError,
622
622
  onMouseDown = _ref25.onMouseDown,
623
+ alt = _ref25.alt,
623
624
  className = _ref25.className;
624
625
  var cursor = (0, _react2.useMemo)(function () {
625
626
  if (canDrag && isDragging) {
@@ -631,7 +632,7 @@ var Img = exports.Img = function Img(_ref25) {
631
632
  }
632
633
  }, [canDrag, isDragging]);
633
634
  return (
634
- // eslint-disable-next-line jsx-a11y/alt-text, jsx-a11y/no-noninteractive-element-interactions
635
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
635
636
  (0, _react.jsx)("img", {
636
637
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
637
638
  className: className
@@ -641,6 +642,7 @@ var Img = exports.Img = function Img(_ref25) {
641
642
  cursor: cursor,
642
643
  shouldPixelate: shouldPixelate
643
644
  }),
645
+ alt: alt,
644
646
  "data-testid": datatestId,
645
647
  src: src
646
648
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -321,6 +321,7 @@ var ArchiveViewerBase = exports.ArchiveViewerBase = /*#__PURE__*/function (_Base
321
321
  case 'image':
322
322
  return /*#__PURE__*/_react.default.createElement(_styleWrappers2.ArchiveItemViewerWrapper, null, /*#__PURE__*/_react.default.createElement(_interactiveImg.InteractiveImg, {
323
323
  src: src,
324
+ alt: name,
324
325
  onLoad: this.onViewerLoad(selectedArchiveEntry),
325
326
  onError: this.onViewerError('archiveviewer-imageviewer-onerror', selectedArchiveEntry)
326
327
  }));
@@ -65,7 +65,7 @@ var ImageViewer = exports.ImageViewer = /*#__PURE__*/function (_BaseViewer) {
65
65
  while (1) switch (_context.prev = _context.next) {
66
66
  case 0:
67
67
  _this$props = this.props, fileState = _this$props.item, mediaClient = _this$props.mediaClient, collectionName = _this$props.collectionName, traceContext = _this$props.traceContext;
68
- if (!(fileState.status === 'error')) {
68
+ if (!(0, _mediaClient.isErrorFileState)(fileState)) {
69
69
  _context.next = 3;
70
70
  break;
71
71
  }
@@ -199,6 +199,9 @@ var ImageViewer = exports.ImageViewer = /*#__PURE__*/function (_BaseViewer) {
199
199
  onClose = _this$props2.onClose,
200
200
  contextId = _this$props2.contextId,
201
201
  collectionName = _this$props2.collectionName;
202
+ if ((0, _mediaClient.isErrorFileState)(item)) {
203
+ return null;
204
+ }
202
205
  var src = contextId ? (0, _mediaClient.addFileAttrsToUrl)(content.objectUrl, {
203
206
  id: item.id,
204
207
  contextId: contextId,
@@ -208,6 +211,7 @@ var ImageViewer = exports.ImageViewer = /*#__PURE__*/function (_BaseViewer) {
208
211
  onLoad: this.onLoad,
209
212
  onError: this.onImgError,
210
213
  src: src,
214
+ alt: item.name,
211
215
  originalBinaryImageSrc: content.originalBinaryImageUrl,
212
216
  orientation: content.orientation,
213
217
  onClose: onClose
@@ -283,7 +283,8 @@ var InteractiveImgComponent = exports.InteractiveImgComponent = /*#__PURE__*/fun
283
283
  "data-testid": "media-viewer-image",
284
284
  canDrag: canDrag,
285
285
  isDragging: isDragging,
286
- src: srcToDisplay
286
+ src: srcToDisplay,
287
+ alt: this.props.alt
287
288
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
288
289
  ,
289
290
  style: imgStyle,
@@ -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.1";
4
+ const packageVersion = "52.4.3";
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 = "52.4.1";
5
+ const packageVersion = "52.4.3";
6
6
  let ufoExperience;
7
7
  const getExperience = () => {
8
8
  if (!ufoExperience) {
@@ -265,10 +265,12 @@ export const ItemViewerBase = ({
265
265
  if (fileItem === 'external-image') {
266
266
  // render an external image
267
267
  const {
268
- dataURI
268
+ dataURI,
269
+ name
269
270
  } = identifier;
270
271
  return /*#__PURE__*/React.createElement(InteractiveImg, {
271
272
  src: dataURI,
273
+ alt: name !== null && name !== void 0 ? name : '',
272
274
  onLoad: () => {
273
275
  fireAnalytics(createLoadSucceededEvent({
274
276
  fileId: 'external-image'
@@ -586,6 +586,7 @@ export const Img = ({
586
586
  onLoad,
587
587
  onError,
588
588
  onMouseDown,
589
+ alt,
589
590
  className
590
591
  }) => {
591
592
  const cursor = useMemo(() => {
@@ -598,7 +599,7 @@ export const Img = ({
598
599
  }
599
600
  }, [canDrag, isDragging]);
600
601
  return (
601
- // eslint-disable-next-line jsx-a11y/alt-text, jsx-a11y/no-noninteractive-element-interactions
602
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
602
603
  jsx("img", {
603
604
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
604
605
  className: className
@@ -608,6 +609,7 @@ export const Img = ({
608
609
  cursor,
609
610
  shouldPixelate
610
611
  }),
612
+ alt: alt,
611
613
  "data-testid": datatestId,
612
614
  src: src
613
615
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -205,6 +205,7 @@ export class ArchiveViewerBase extends BaseViewer {
205
205
  case 'image':
206
206
  return /*#__PURE__*/React.createElement(ArchiveItemViewerWrapper, null, /*#__PURE__*/React.createElement(InteractiveImg, {
207
207
  src: src,
208
+ alt: name,
208
209
  onLoad: this.onViewerLoad(selectedArchiveEntry),
209
210
  onError: this.onViewerError('archiveviewer-imageviewer-onerror', selectedArchiveEntry)
210
211
  }));
@@ -38,7 +38,7 @@ export class ImageViewer extends BaseViewer {
38
38
  collectionName,
39
39
  traceContext
40
40
  } = this.props;
41
- if (fileState.status === 'error') {
41
+ if (isErrorFileState(fileState)) {
42
42
  return;
43
43
  }
44
44
  const controller = typeof AbortController !== 'undefined' ? new AbortController() : undefined;
@@ -121,6 +121,9 @@ export class ImageViewer extends BaseViewer {
121
121
  contextId,
122
122
  collectionName
123
123
  } = this.props;
124
+ if (isErrorFileState(item)) {
125
+ return null;
126
+ }
124
127
  const src = contextId ? addFileAttrsToUrl(content.objectUrl, {
125
128
  id: item.id,
126
129
  contextId,
@@ -130,6 +133,7 @@ export class ImageViewer extends BaseViewer {
130
133
  onLoad: this.onLoad,
131
134
  onError: this.onImgError,
132
135
  src: src,
136
+ alt: item.name,
133
137
  originalBinaryImageSrc: content.originalBinaryImageUrl,
134
138
  orientation: content.orientation,
135
139
  onClose: onClose
@@ -271,7 +271,8 @@ export class InteractiveImgComponent extends React.Component {
271
271
  "data-testid": "media-viewer-image",
272
272
  canDrag: canDrag,
273
273
  isDragging: isDragging,
274
- src: srcToDisplay
274
+ src: srcToDisplay,
275
+ alt: this.props.alt
275
276
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
276
277
  ,
277
278
  style: imgStyle,
@@ -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.1";
4
+ var packageVersion = "52.4.3";
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 = "52.4.1";
8
+ var packageVersion = "52.4.3";
9
9
  var ufoExperience;
10
10
  var getExperience = function getExperience() {
11
11
  if (!ufoExperience) {
@@ -312,9 +312,11 @@ export var ItemViewerBase = function ItemViewerBase(_ref) {
312
312
  if (fileItem === 'external-image') {
313
313
  // render an external image
314
314
  var _ref2 = identifier,
315
- dataURI = _ref2.dataURI;
315
+ dataURI = _ref2.dataURI,
316
+ name = _ref2.name;
316
317
  return /*#__PURE__*/React.createElement(InteractiveImg, {
317
318
  src: dataURI,
319
+ alt: name !== null && name !== void 0 ? name : '',
318
320
  onLoad: function onLoad() {
319
321
  fireAnalytics(createLoadSucceededEvent({
320
322
  fileId: 'external-image'
@@ -612,6 +612,7 @@ export var Img = function Img(_ref25) {
612
612
  onLoad = _ref25.onLoad,
613
613
  onError = _ref25.onError,
614
614
  onMouseDown = _ref25.onMouseDown,
615
+ alt = _ref25.alt,
615
616
  className = _ref25.className;
616
617
  var cursor = useMemo(function () {
617
618
  if (canDrag && isDragging) {
@@ -623,7 +624,7 @@ export var Img = function Img(_ref25) {
623
624
  }
624
625
  }, [canDrag, isDragging]);
625
626
  return (
626
- // eslint-disable-next-line jsx-a11y/alt-text, jsx-a11y/no-noninteractive-element-interactions
627
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
627
628
  jsx("img", {
628
629
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
629
630
  className: className
@@ -633,6 +634,7 @@ export var Img = function Img(_ref25) {
633
634
  cursor: cursor,
634
635
  shouldPixelate: shouldPixelate
635
636
  }),
637
+ alt: alt,
636
638
  "data-testid": datatestId,
637
639
  src: src
638
640
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
@@ -315,6 +315,7 @@ export var ArchiveViewerBase = /*#__PURE__*/function (_BaseViewer) {
315
315
  case 'image':
316
316
  return /*#__PURE__*/React.createElement(ArchiveItemViewerWrapper, null, /*#__PURE__*/React.createElement(InteractiveImg, {
317
317
  src: src,
318
+ alt: name,
318
319
  onLoad: this.onViewerLoad(selectedArchiveEntry),
319
320
  onError: this.onViewerError('archiveviewer-imageviewer-onerror', selectedArchiveEntry)
320
321
  }));
@@ -58,7 +58,7 @@ export var ImageViewer = /*#__PURE__*/function (_BaseViewer) {
58
58
  while (1) switch (_context.prev = _context.next) {
59
59
  case 0:
60
60
  _this$props = this.props, fileState = _this$props.item, mediaClient = _this$props.mediaClient, collectionName = _this$props.collectionName, traceContext = _this$props.traceContext;
61
- if (!(fileState.status === 'error')) {
61
+ if (!isErrorFileState(fileState)) {
62
62
  _context.next = 3;
63
63
  break;
64
64
  }
@@ -192,6 +192,9 @@ export var ImageViewer = /*#__PURE__*/function (_BaseViewer) {
192
192
  onClose = _this$props2.onClose,
193
193
  contextId = _this$props2.contextId,
194
194
  collectionName = _this$props2.collectionName;
195
+ if (isErrorFileState(item)) {
196
+ return null;
197
+ }
195
198
  var src = contextId ? addFileAttrsToUrl(content.objectUrl, {
196
199
  id: item.id,
197
200
  contextId: contextId,
@@ -201,6 +204,7 @@ export var ImageViewer = /*#__PURE__*/function (_BaseViewer) {
201
204
  onLoad: this.onLoad,
202
205
  onError: this.onImgError,
203
206
  src: src,
207
+ alt: item.name,
204
208
  originalBinaryImageSrc: content.originalBinaryImageUrl,
205
209
  orientation: content.orientation,
206
210
  onClose: onClose
@@ -275,7 +275,8 @@ export var InteractiveImgComponent = /*#__PURE__*/function (_React$Component) {
275
275
  "data-testid": "media-viewer-image",
276
276
  canDrag: canDrag,
277
277
  isDragging: isDragging,
278
- src: srcToDisplay
278
+ src: srcToDisplay,
279
+ alt: this.props.alt
279
280
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
280
281
  ,
281
282
  style: imgStyle,
@@ -84,8 +84,9 @@ export type ImgProps = {
84
84
  onLoad: (ev: React.SyntheticEvent<HTMLImageElement>) => void;
85
85
  onMouseDown: (ev: MouseEvent<{}>) => void;
86
86
  onError: (() => void) | undefined;
87
+ alt: string;
87
88
  } & DataTestID & ClassName;
88
- export declare const Img: ({ canDrag, isDragging, shouldPixelate, "data-testid": datatestId, src, style, onLoad, onError, onMouseDown, className, }: ImgProps) => jsx.JSX.Element;
89
+ export declare const Img: ({ canDrag, isDragging, shouldPixelate, "data-testid": datatestId, src, style, onLoad, onError, onMouseDown, alt, className, }: ImgProps) => jsx.JSX.Element;
89
90
  export declare const MedatadataTextWrapper: ({ children }: Children) => jsx.JSX.Element;
90
91
  export declare const MetadataWrapper: ({ children }: Children) => jsx.JSX.Element;
91
92
  type MetadataFileNameProps = DataTestID & Children;
@@ -79,6 +79,7 @@ export type ImgProps = {
79
79
  onLoad: (ev: React.SyntheticEvent<HTMLImageElement>) => void;
80
80
  onMouseDown: (ev: MouseEvent<{}>) => void;
81
81
  onError: (() => void) | undefined;
82
+ alt: string;
82
83
  } & DataTestID & ClassName;
83
84
  export declare const Img: (props: ImgProps) => React.JSX.Element;
84
85
  export declare const MedatadataTextWrapper: (props: Children) => React.JSX.Element;
@@ -28,7 +28,7 @@ export declare class ImageViewer extends BaseViewer<ImageViewerContent, ImageVie
28
28
  protected init(): Promise<void>;
29
29
  protected release(): void;
30
30
  revokeObjectUrl(objectUrl: string): void;
31
- protected renderSuccessful(content: ImageViewerContent): React.JSX.Element;
31
+ protected renderSuccessful(content: ImageViewerContent): React.JSX.Element | null;
32
32
  private onLoad;
33
33
  private onImgError;
34
34
  }
@@ -5,6 +5,7 @@ import { ZoomLevel } from '../../domain/zoomLevel';
5
5
  export declare function zoomLevelAfterResize(newCamera: Camera, oldCamera: Camera, oldZoomLevel: ZoomLevel): ZoomLevel;
6
6
  export interface Props extends WithAnalyticsEventsProps {
7
7
  src: string;
8
+ alt: string;
8
9
  originalBinaryImageSrc?: string;
9
10
  orientation?: number;
10
11
  onClose?: () => void;
@@ -84,8 +84,9 @@ export type ImgProps = {
84
84
  onLoad: (ev: React.SyntheticEvent<HTMLImageElement>) => void;
85
85
  onMouseDown: (ev: MouseEvent<{}>) => void;
86
86
  onError: (() => void) | undefined;
87
+ alt: string;
87
88
  } & DataTestID & ClassName;
88
- export declare const Img: ({ canDrag, isDragging, shouldPixelate, "data-testid": datatestId, src, style, onLoad, onError, onMouseDown, className, }: ImgProps) => jsx.JSX.Element;
89
+ export declare const Img: ({ canDrag, isDragging, shouldPixelate, "data-testid": datatestId, src, style, onLoad, onError, onMouseDown, alt, className, }: ImgProps) => jsx.JSX.Element;
89
90
  export declare const MedatadataTextWrapper: ({ children }: Children) => jsx.JSX.Element;
90
91
  export declare const MetadataWrapper: ({ children }: Children) => jsx.JSX.Element;
91
92
  type MetadataFileNameProps = DataTestID & Children;
@@ -79,6 +79,7 @@ export type ImgProps = {
79
79
  onLoad: (ev: React.SyntheticEvent<HTMLImageElement>) => void;
80
80
  onMouseDown: (ev: MouseEvent<{}>) => void;
81
81
  onError: (() => void) | undefined;
82
+ alt: string;
82
83
  } & DataTestID & ClassName;
83
84
  export declare const Img: (props: ImgProps) => React.JSX.Element;
84
85
  export declare const MedatadataTextWrapper: (props: Children) => React.JSX.Element;
@@ -28,7 +28,7 @@ export declare class ImageViewer extends BaseViewer<ImageViewerContent, ImageVie
28
28
  protected init(): Promise<void>;
29
29
  protected release(): void;
30
30
  revokeObjectUrl(objectUrl: string): void;
31
- protected renderSuccessful(content: ImageViewerContent): React.JSX.Element;
31
+ protected renderSuccessful(content: ImageViewerContent): React.JSX.Element | null;
32
32
  private onLoad;
33
33
  private onImgError;
34
34
  }
@@ -5,6 +5,7 @@ import { ZoomLevel } from '../../domain/zoomLevel';
5
5
  export declare function zoomLevelAfterResize(newCamera: Camera, oldCamera: Camera, oldZoomLevel: ZoomLevel): ZoomLevel;
6
6
  export interface Props extends WithAnalyticsEventsProps {
7
7
  src: string;
8
+ alt: string;
8
9
  originalBinaryImageSrc?: string;
9
10
  orientation?: number;
10
11
  onClose?: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-viewer",
3
- "version": "52.4.2",
3
+ "version": "52.4.4",
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/"
@@ -44,12 +44,12 @@
44
44
  "@atlaskit/icon": "^27.2.0",
45
45
  "@atlaskit/icon-file-type": "^7.0.0",
46
46
  "@atlaskit/icon-lab": "^5.1.0",
47
- "@atlaskit/media-client": "^34.2.0",
47
+ "@atlaskit/media-client": "^35.0.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",
51
51
  "@atlaskit/media-svg": "^2.1.0",
52
- "@atlaskit/media-ui": "^28.5.0",
52
+ "@atlaskit/media-ui": "^28.6.0",
53
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
54
54
  "@atlaskit/portal": "^5.1.0",
55
55
  "@atlaskit/primitives": "^14.10.0",
@@ -91,7 +91,7 @@
91
91
  "@atlaskit/media-core": "^37.0.0",
92
92
  "@atlaskit/media-integration-test-helpers": "workspace:^",
93
93
  "@atlaskit/media-state": "^1.7.0",
94
- "@atlaskit/media-test-data": "^3.1.0",
94
+ "@atlaskit/media-test-data": "^3.2.0",
95
95
  "@atlaskit/media-test-helpers": "^37.0.0",
96
96
  "@atlaskit/ssr": "workspace:^",
97
97
  "@atlaskit/toggle": "^15.0.0",