@atlaskit/media-viewer 52.4.7 → 52.4.8

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/media-viewer
2
2
 
3
+ ## 52.4.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#187406](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/187406)
8
+ [`849af586beb91`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/849af586beb91) -
9
+ Added role for the media container to make screen reader virtual key navigation appropriate
10
+ - Updated dependencies
11
+
3
12
  ## 52.4.7
4
13
 
5
14
  ### 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.6";
13
+ var packageVersion = exports.packageVersion = "52.4.7";
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.6";
16
+ var packageVersion = "52.4.7";
17
17
  var ufoExperience;
18
18
  var getExperience = function getExperience() {
19
19
  if (!ufoExperience) {
@@ -23,7 +23,7 @@ var _analytics = require("./analytics");
23
23
  var _primitives = require("@atlaskit/primitives");
24
24
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
25
25
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
26
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
26
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
27
27
  var nextNavButtonId = exports.nextNavButtonId = 'media-viewer-navigation-next';
28
28
  var prevNavButtonId = exports.prevNavButtonId = 'media-viewer-navigation-prev';
29
29
  var wrapperStyles = (0, _primitives.xcss)({
@@ -19,7 +19,7 @@ var _primitives = require("@atlaskit/primitives");
19
19
  var _heading = _interopRequireDefault(require("@atlaskit/heading"));
20
20
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
21
21
  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; }
22
- 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; } /* eslint-disable @atlaskit/design-system/use-tokens-typography */
22
+ 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; } /* eslint-disable @atlaskit/design-system/use-tokens-typography */ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
23
23
  var blanketStyles = null;
24
24
  var headerWrapperStyles = null;
25
25
  var archiveHeaderWrapperStyles = null;
@@ -74,8 +74,13 @@ var Blanket = exports.Blanket = function Blanket(_ref) {
74
74
  className = _ref.className,
75
75
  children = _ref.children;
76
76
  return /*#__PURE__*/React.createElement("div", {
77
- "data-testid": datatestId,
78
- className: (0, _runtime.ax)(["_kqsw1n9t _154iidpf _1ltvidpf _94n5idpf _1xi2idpf _bfhk1tzm _1pby1qpw _1e0c1txw", className])
77
+ "data-testid": datatestId
78
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
79
+ ,
80
+ className: (0, _runtime.ax)(["_kqsw1n9t _154iidpf _1ltvidpf _94n5idpf _1xi2idpf _bfhk1tzm _1pby1qpw _1e0c1txw", className]),
81
+ role: "dialog",
82
+ "aria-modal": "true",
83
+ "aria-labelledby": "media.media-viewer.file.name"
79
84
  }, children);
80
85
  };
81
86
  var HeaderWrapper = exports.HeaderWrapper = function HeaderWrapper(_ref2) {
@@ -313,6 +318,7 @@ var MetadataFileName = exports.MetadataFileName = function MetadataFileName(_ref
313
318
  }, /*#__PURE__*/React.createElement(_heading.default, {
314
319
  as: "h1",
315
320
  size: "medium",
321
+ id: "media.media-viewer.file.name",
316
322
  testId: datatestId
317
323
  }, children));
318
324
  };
@@ -25,6 +25,8 @@ var _heading = _interopRequireDefault(require("@atlaskit/heading"));
25
25
  */
26
26
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
27
27
 
28
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
29
+
28
30
  var SIDEBAR_WIDTH = 416;
29
31
  var blanketStyles = (0, _react.css)({
30
32
  position: 'fixed',
@@ -382,14 +384,16 @@ var Blanket = exports.Blanket = function Blanket(_ref6) {
382
384
  var datatestId = _ref6['data-testid'],
383
385
  className = _ref6.className,
384
386
  children = _ref6.children;
385
- return (
387
+ return (0, _react.jsx)("div", {
388
+ css: blanketStyles,
389
+ "data-testid": datatestId
386
390
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
387
- (0, _react.jsx)("div", {
388
- css: blanketStyles,
389
- "data-testid": datatestId,
390
- className: className
391
- }, children)
392
- );
391
+ ,
392
+ className: className,
393
+ role: "dialog",
394
+ "aria-modal": "true",
395
+ "aria-labelledby": "media.media-viewer.file.name"
396
+ }, children);
393
397
  };
394
398
  var HeaderWrapper = exports.HeaderWrapper = function HeaderWrapper(_ref7) {
395
399
  var className = _ref7.className,
@@ -673,6 +677,7 @@ var MetadataFileName = exports.MetadataFileName = function MetadataFileName(_ref
673
677
  css: metadataFileNameStyles
674
678
  }, (0, _react.jsx)(_heading.default, {
675
679
  as: "h1",
680
+ id: "media.media-viewer.file.name",
676
681
  size: "medium",
677
682
  testId: datatestId
678
683
  }, children));
@@ -23,6 +23,7 @@ var _primitives = require("@atlaskit/primitives");
23
23
  var _error = _interopRequireDefault(require("@atlaskit/icon/core/migration/error"));
24
24
  var _heading = _interopRequireDefault(require("@atlaskit/heading"));
25
25
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
26
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
26
27
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
27
28
  var COLOR_SHADE = '#b6c2cf';
28
29
  var ERROR_COLOR = '#FD9891';
@@ -24,6 +24,8 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
24
24
  * @jsx jsx
25
25
  */
26
26
 
27
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
28
+
27
29
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
28
30
 
29
31
  var COLOR_SHADE = '#b6c2cf';
@@ -23,6 +23,7 @@ var _primitives = require("@atlaskit/primitives");
23
23
  var _error = _interopRequireDefault(require("@atlaskit/icon/core/migration/error"));
24
24
  var _heading = _interopRequireDefault(require("@atlaskit/heading"));
25
25
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
26
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
26
27
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
27
28
  var COLOR_SHADE = '#b6c2cf';
28
29
  var ERROR_COLOR = '#FD9891';
@@ -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.6";
4
+ const packageVersion = "52.4.7";
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";
6
+ const packageVersion = "52.4.7";
7
7
  let ufoExperience;
8
8
  const getExperience = () => {
9
9
  if (!ufoExperience) {
@@ -10,6 +10,7 @@ import { ArrowsWrapper, RightWrapper, LeftWrapper, Arrow } from './styleWrappers
10
10
  import { getSelectedIndex } from './utils';
11
11
  import { createNavigatedEvent } from './analytics/events/ui/navigated';
12
12
  import { fireAnalytics } from './analytics';
13
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
13
14
  import { Pressable, xcss } from '@atlaskit/primitives';
14
15
  export const nextNavButtonId = 'media-viewer-navigation-next';
15
16
  export const prevNavButtonId = 'media-viewer-navigation-prev';
@@ -8,6 +8,7 @@ import { ax, ix } from "@compiled/react/runtime";
8
8
  import { forwardRef, useMemo } from 'react';
9
9
  import { TouchScrollable } from 'react-scrolllock';
10
10
  import { useMergeRefs } from 'use-callback-ref';
11
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
11
12
  import { Box, xcss } from '@atlaskit/primitives';
12
13
  import Heading from '@atlaskit/heading';
13
14
  const blanketStyles = null;
@@ -64,8 +65,13 @@ export const Blanket = ({
64
65
  className,
65
66
  children
66
67
  }) => /*#__PURE__*/React.createElement("div", {
67
- "data-testid": datatestId,
68
- className: ax(["_kqsw1n9t _154iidpf _1ltvidpf _94n5idpf _1xi2idpf _bfhk1tzm _1pby1qpw _1e0c1txw", className])
68
+ "data-testid": datatestId
69
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
70
+ ,
71
+ className: ax(["_kqsw1n9t _154iidpf _1ltvidpf _94n5idpf _1xi2idpf _bfhk1tzm _1pby1qpw _1e0c1txw", className]),
72
+ role: "dialog",
73
+ "aria-modal": "true",
74
+ "aria-labelledby": "media.media-viewer.file.name"
69
75
  }, children);
70
76
  export const HeaderWrapper = ({
71
77
  className,
@@ -281,6 +287,7 @@ export const MetadataFileName = ({
281
287
  }, /*#__PURE__*/React.createElement(Heading, {
282
288
  as: "h1",
283
289
  size: "medium",
290
+ id: "media.media-viewer.file.name",
284
291
  testId: datatestId
285
292
  }, children));
286
293
  export const MetadataSubText = ({
@@ -14,6 +14,7 @@ import { useMergeRefs } from 'use-callback-ref';
14
14
  import { headerAndSidebarBackgroundColor } from './viewers/modalSpinner';
15
15
  import { ArchiveSideBarWidth } from './viewers/archiveSidebar/styles';
16
16
  import { borderRadius } from '@atlaskit/theme/constants';
17
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
17
18
  import { Box, xcss } from '@atlaskit/primitives';
18
19
  import Heading from '@atlaskit/heading';
19
20
  const SIDEBAR_WIDTH = 416;
@@ -377,12 +378,15 @@ export const Blanket = ({
377
378
  'data-testid': datatestId,
378
379
  className,
379
380
  children
380
- }) =>
381
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
382
- jsx("div", {
381
+ }) => jsx("div", {
383
382
  css: blanketStyles,
384
- "data-testid": datatestId,
385
- className: className
383
+ "data-testid": datatestId
384
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
385
+ ,
386
+ className: className,
387
+ role: "dialog",
388
+ "aria-modal": "true",
389
+ "aria-labelledby": "media.media-viewer.file.name"
386
390
  }, children);
387
391
  export const HeaderWrapper = ({
388
392
  className,
@@ -638,6 +642,7 @@ export const MetadataFileName = ({
638
642
  css: metadataFileNameStyles
639
643
  }, jsx(Heading, {
640
644
  as: "h1",
645
+ id: "media.media-viewer.file.name",
641
646
  size: "medium",
642
647
  testId: datatestId
643
648
  }, children));
@@ -10,6 +10,7 @@ import LockIcon from '@atlaskit/icon/core/migration/lock-locked--lock';
10
10
  import Form, { Field } from '@atlaskit/form';
11
11
  import { FormattedMessage, useIntl } from 'react-intl-next';
12
12
  import { messages } from '@atlaskit/media-ui';
13
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
13
14
  import { xcss, Box, Flex, Text } from '@atlaskit/primitives';
14
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
16
  import ErrorIcon from '@atlaskit/icon/core/migration/error';
@@ -10,6 +10,7 @@ import LockIcon from '@atlaskit/icon/core/migration/lock-locked--lock';
10
10
  import Form, { Field } from '@atlaskit/form';
11
11
  import { FormattedMessage, useIntl } from 'react-intl-next';
12
12
  import { messages } from '@atlaskit/media-ui';
13
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
13
14
  import { xcss, Box, Flex } from '@atlaskit/primitives';
14
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
16
  import { jsx, css } from '@emotion/react';
@@ -10,6 +10,7 @@ import LockIcon from '@atlaskit/icon/core/migration/lock-locked--lock';
10
10
  import Form, { Field } from '@atlaskit/form';
11
11
  import { FormattedMessage, useIntl } from 'react-intl-next';
12
12
  import { messages } from '@atlaskit/media-ui';
13
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
13
14
  import { xcss, Box, Flex, Text } from '@atlaskit/primitives';
14
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
16
  import ErrorIcon from '@atlaskit/icon/core/migration/error';
@@ -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.6";
4
+ var packageVersion = "52.4.7";
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.6";
9
+ var packageVersion = "52.4.7";
10
10
  var ufoExperience;
11
11
  var getExperience = function getExperience() {
12
12
  if (!ufoExperience) {
@@ -17,6 +17,7 @@ import { ArrowsWrapper, RightWrapper, LeftWrapper, Arrow } from './styleWrappers
17
17
  import { getSelectedIndex } from './utils';
18
18
  import { createNavigatedEvent } from './analytics/events/ui/navigated';
19
19
  import { fireAnalytics } from './analytics';
20
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
20
21
  import { Pressable, xcss } from '@atlaskit/primitives';
21
22
  export var nextNavButtonId = 'media-viewer-navigation-next';
22
23
  export var prevNavButtonId = 'media-viewer-navigation-prev';
@@ -11,6 +11,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
11
11
  import { forwardRef, useMemo } from 'react';
12
12
  import { TouchScrollable } from 'react-scrolllock';
13
13
  import { useMergeRefs } from 'use-callback-ref';
14
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
14
15
  import { Box, xcss } from '@atlaskit/primitives';
15
16
  import Heading from '@atlaskit/heading';
16
17
  var blanketStyles = null;
@@ -67,8 +68,13 @@ export var Blanket = function Blanket(_ref) {
67
68
  className = _ref.className,
68
69
  children = _ref.children;
69
70
  return /*#__PURE__*/React.createElement("div", {
70
- "data-testid": datatestId,
71
- className: ax(["_kqsw1n9t _154iidpf _1ltvidpf _94n5idpf _1xi2idpf _bfhk1tzm _1pby1qpw _1e0c1txw", className])
71
+ "data-testid": datatestId
72
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
73
+ ,
74
+ className: ax(["_kqsw1n9t _154iidpf _1ltvidpf _94n5idpf _1xi2idpf _bfhk1tzm _1pby1qpw _1e0c1txw", className]),
75
+ role: "dialog",
76
+ "aria-modal": "true",
77
+ "aria-labelledby": "media.media-viewer.file.name"
72
78
  }, children);
73
79
  };
74
80
  export var HeaderWrapper = function HeaderWrapper(_ref2) {
@@ -306,6 +312,7 @@ export var MetadataFileName = function MetadataFileName(_ref23) {
306
312
  }, /*#__PURE__*/React.createElement(Heading, {
307
313
  as: "h1",
308
314
  size: "medium",
315
+ id: "media.media-viewer.file.name",
309
316
  testId: datatestId
310
317
  }, children));
311
318
  };
@@ -15,6 +15,7 @@ import { useMergeRefs } from 'use-callback-ref';
15
15
  import { headerAndSidebarBackgroundColor } from './viewers/modalSpinner';
16
16
  import { ArchiveSideBarWidth } from './viewers/archiveSidebar/styles';
17
17
  import { borderRadius } from '@atlaskit/theme/constants';
18
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
18
19
  import { Box, xcss } from '@atlaskit/primitives';
19
20
  import Heading from '@atlaskit/heading';
20
21
  var SIDEBAR_WIDTH = 416;
@@ -374,14 +375,16 @@ export var Blanket = function Blanket(_ref6) {
374
375
  var datatestId = _ref6['data-testid'],
375
376
  className = _ref6.className,
376
377
  children = _ref6.children;
377
- return (
378
+ return jsx("div", {
379
+ css: blanketStyles,
380
+ "data-testid": datatestId
378
381
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
379
- jsx("div", {
380
- css: blanketStyles,
381
- "data-testid": datatestId,
382
- className: className
383
- }, children)
384
- );
382
+ ,
383
+ className: className,
384
+ role: "dialog",
385
+ "aria-modal": "true",
386
+ "aria-labelledby": "media.media-viewer.file.name"
387
+ }, children);
385
388
  };
386
389
  export var HeaderWrapper = function HeaderWrapper(_ref7) {
387
390
  var className = _ref7.className,
@@ -665,6 +668,7 @@ export var MetadataFileName = function MetadataFileName(_ref28) {
665
668
  css: metadataFileNameStyles
666
669
  }, jsx(Heading, {
667
670
  as: "h1",
671
+ id: "media.media-viewer.file.name",
668
672
  size: "medium",
669
673
  testId: datatestId
670
674
  }, children));
@@ -11,6 +11,7 @@ import LockIcon from '@atlaskit/icon/core/migration/lock-locked--lock';
11
11
  import Form, { Field } from '@atlaskit/form';
12
12
  import { FormattedMessage, useIntl } from 'react-intl-next';
13
13
  import { messages } from '@atlaskit/media-ui';
14
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
14
15
  import { xcss, Box, Flex, Text } from '@atlaskit/primitives';
15
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
17
  import ErrorIcon from '@atlaskit/icon/core/migration/error';
@@ -11,6 +11,7 @@ import LockIcon from '@atlaskit/icon/core/migration/lock-locked--lock';
11
11
  import Form, { Field } from '@atlaskit/form';
12
12
  import { FormattedMessage, useIntl } from 'react-intl-next';
13
13
  import { messages } from '@atlaskit/media-ui';
14
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
14
15
  import { xcss, Box, Flex } from '@atlaskit/primitives';
15
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
17
  import { jsx, css } from '@emotion/react';
@@ -11,6 +11,7 @@ import LockIcon from '@atlaskit/icon/core/migration/lock-locked--lock';
11
11
  import Form, { Field } from '@atlaskit/form';
12
12
  import { FormattedMessage, useIntl } from 'react-intl-next';
13
13
  import { messages } from '@atlaskit/media-ui';
14
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
14
15
  import { xcss, Box, Flex, Text } from '@atlaskit/primitives';
15
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
17
  import ErrorIcon from '@atlaskit/icon/core/migration/error';
@@ -1,6 +1,7 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
 
3
3
  import { type MediaClient, type Identifier, type MediaFileArtifacts } from '@atlaskit/media-client';
4
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
4
5
  import { Pressable, xcss } from '@atlaskit/primitives';
5
6
 
6
7
  type NativeMediaViewerProps = {
@@ -1,4 +1,5 @@
1
1
  import React, { type ReactNode } from 'react';
2
+ // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
2
3
  import { Stack, xcss, Box } from '@atlaskit/primitives';
3
4
 
4
5
  const centeredFormStyles = xcss({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-viewer",
3
- "version": "52.4.7",
3
+ "version": "52.4.8",
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,9 +41,9 @@
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.3.0",
44
+ "@atlaskit/icon": "^27.5.0",
45
45
  "@atlaskit/icon-file-type": "^7.0.0",
46
- "@atlaskit/icon-lab": "^5.1.0",
46
+ "@atlaskit/icon-lab": "^5.2.0",
47
47
  "@atlaskit/media-client": "^35.1.0",
48
48
  "@atlaskit/media-client-react": "^4.1.0",
49
49
  "@atlaskit/media-common": "^12.3.0",
@@ -57,7 +57,7 @@
57
57
  "@atlaskit/spinner": "^18.0.0",
58
58
  "@atlaskit/textfield": "^8.0.0",
59
59
  "@atlaskit/theme": "^19.0.0",
60
- "@atlaskit/tokens": "^5.5.0",
60
+ "@atlaskit/tokens": "^5.6.0",
61
61
  "@atlaskit/tooltip": "^20.3.0",
62
62
  "@atlaskit/ufo": "^0.4.0",
63
63
  "@babel/runtime": "^7.0.0",