@atlaskit/media-viewer 52.0.8 → 52.0.10

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 (29) hide show
  1. package/CHANGELOG.md +17 -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 +2 -2
  5. package/dist/cjs/styleWrappers-emotion.js +1 -1
  6. package/dist/cjs/viewers/archiveSidebar/archive.js +2 -2
  7. package/dist/cjs/viewers/archiveSidebar/styleWrappers-emotion.js +1 -1
  8. package/dist/cjs/viewers/doc/pdfRenderer.js +2 -2
  9. package/dist/cjs/viewers/image/interactive-img.js +6 -12
  10. package/dist/cjs/viewers/svg/ImageWrapper-emotion.js +1 -1
  11. package/dist/es2019/analytics/index.js +1 -1
  12. package/dist/es2019/analytics/ufoExperiences.js +1 -1
  13. package/dist/es2019/item-viewer.js +1 -1
  14. package/dist/es2019/styleWrappers-emotion.js +1 -1
  15. package/dist/es2019/viewers/archiveSidebar/archive.js +1 -1
  16. package/dist/es2019/viewers/archiveSidebar/styleWrappers-emotion.js +1 -1
  17. package/dist/es2019/viewers/doc/pdfRenderer.js +2 -2
  18. package/dist/es2019/viewers/image/interactive-img.js +6 -12
  19. package/dist/es2019/viewers/svg/ImageWrapper-emotion.js +1 -1
  20. package/dist/esm/analytics/index.js +1 -1
  21. package/dist/esm/analytics/ufoExperiences.js +1 -1
  22. package/dist/esm/item-viewer.js +1 -1
  23. package/dist/esm/styleWrappers-emotion.js +1 -1
  24. package/dist/esm/viewers/archiveSidebar/archive.js +1 -1
  25. package/dist/esm/viewers/archiveSidebar/styleWrappers-emotion.js +1 -1
  26. package/dist/esm/viewers/doc/pdfRenderer.js +2 -2
  27. package/dist/esm/viewers/image/interactive-img.js +6 -12
  28. package/dist/esm/viewers/svg/ImageWrapper-emotion.js +1 -1
  29. package/package.json +9 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/media-viewer
2
2
 
3
+ ## 52.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#138829](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/138829)
8
+ [`4838615c1e10f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4838615c1e10f) -
9
+ Replaced HD icon for Images and Video
10
+ - Updated dependencies
11
+
12
+ ## 52.0.9
13
+
14
+ ### Patch Changes
15
+
16
+ - [#145195](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/145195)
17
+ [`8fa3712b27618`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8fa3712b27618) -
18
+ Internal change to move towards Compiled CSS-in-JS styling.
19
+
3
20
  ## 52.0.8
4
21
 
5
22
  ### 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.0.8";
13
+ var packageVersion = exports.packageVersion = "52.0.10";
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.0.8";
15
+ var packageVersion = "52.0.10";
16
16
  var ufoExperience;
17
17
  var getExperience = function getExperience() {
18
18
  if (!ufoExperience) {
@@ -11,7 +11,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _reactLoadable = _interopRequireDefault(require("react-loadable"));
13
13
  var _mediaClient = require("@atlaskit/media-client");
14
- var _primitives = require("@atlaskit/primitives");
14
+ var _compiled = require("@atlaskit/primitives/compiled");
15
15
  var _reactIntlNext = require("react-intl-next");
16
16
  var _mediaUi = require("@atlaskit/media-ui");
17
17
  var _codeViewer = require("@atlaskit/media-ui/codeViewer");
@@ -302,7 +302,7 @@ var ItemViewerBase = exports.ItemViewerBase = function ItemViewerBase(_ref) {
302
302
  fileState: _fileState,
303
303
  fileStateFlags: fileStateFlagsRef.current,
304
304
  traceContext: traceContext
305
- }, /*#__PURE__*/_react.default.createElement(_primitives.Text, null, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _mediaUi.messages.try_downloading_file)), renderDownloadButton(_fileState, error));
305
+ }, /*#__PURE__*/_react.default.createElement(_compiled.Text, null, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _mediaUi.messages.try_downloading_file)), renderDownloadButton(_fileState, error));
306
306
  } else {
307
307
  return /*#__PURE__*/_react.default.createElement(_errorMessage.default, {
308
308
  fileId: (0, _mediaClient.isFileIdentifier)(identifier) ? identifier.id : 'undefined',
@@ -579,7 +579,7 @@ var ImageWrapper = exports.ImageWrapper = /*#__PURE__*/(0, _react2.forwardRef)(f
579
579
  style = _ref26.style,
580
580
  className = _ref26.className;
581
581
  return (
582
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
582
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
583
583
  (0, _react.jsx)("div", {
584
584
  "data-testid": datatestId,
585
585
  onClick: onClick,
@@ -18,7 +18,7 @@ var _unzipit = require("unzipit");
18
18
  var _reactIntlNext = require("react-intl-next");
19
19
  var _mediaUi = require("@atlaskit/media-ui");
20
20
  var _codeViewer = require("@atlaskit/media-ui/codeViewer");
21
- var _primitives = require("@atlaskit/primitives");
21
+ var _compiled = require("@atlaskit/primitives/compiled");
22
22
  var _domain = require("../../domain");
23
23
  var _styleWrappers = require("../../styleWrappers");
24
24
  var _audioMediaServicesAudio = _interopRequireDefault(require("@atlaskit/icon/core/migration/audio--media-services-audio"));
@@ -381,7 +381,7 @@ var ArchiveViewerBase = exports.ArchiveViewerBase = /*#__PURE__*/function (_Base
381
381
  fileState: item,
382
382
  error: error,
383
383
  supressAnalytics: true
384
- }, /*#__PURE__*/_react.default.createElement(_primitives.Text, null, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _mediaUi.messages.try_downloading_file))));
384
+ }, /*#__PURE__*/_react.default.createElement(_compiled.Text, null, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _mediaUi.messages.try_downloading_file))));
385
385
  }
386
386
  }]);
387
387
  }(_baseViewer.BaseViewer);
@@ -146,7 +146,7 @@ var ArchiveDownloadButtonWrapper = exports.ArchiveDownloadButtonWrapper = functi
146
146
  var children = _ref4.children,
147
147
  onClick = _ref4.onClick;
148
148
  return (
149
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
149
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
150
150
  (0, _react2.jsx)("div", {
151
151
  css: archiveDownloadButtonWrapperStyles,
152
152
  onClick: onClick,
@@ -245,9 +245,9 @@ var PDFRendererBase = function PDFRendererBase(_ref2) {
245
245
  ref: savePdfElement
246
246
  },
247
247
  /*#__PURE__*/
248
- // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
248
+ // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
249
249
  _react.default.createElement("div", {
250
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
250
+ // eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
251
251
  className: pdfViewerClassName,
252
252
  onClick: (0, _closeOnDirectClick.closeOnDirectClick)(onClose)
253
253
  }), /*#__PURE__*/_react.default.createElement(_zoomControls.ZoomControls, {
@@ -17,9 +17,9 @@ var _mediaUi = require("@atlaskit/media-ui");
17
17
  var _mediaCommon = require("@atlaskit/media-common");
18
18
  var _constants = require("@atlaskit/media-client/constants");
19
19
  var _analyticsNext = require("@atlaskit/analytics-next");
20
- var _vidHdCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/vid-hd-circle"));
20
+ var _videoHd = _interopRequireDefault(require("@atlaskit/icon-lab/core/video-hd"));
21
+ var _videoHdFilled = _interopRequireDefault(require("@atlaskit/icon-lab/core/video-hd-filled"));
21
22
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
22
- var _colors = require("@atlaskit/theme/colors");
23
23
  var _styleWrappers = require("../../styleWrappers");
24
24
  var _zoomLevel = require("../../domain/zoomLevel");
25
25
  var _closeOnDirectClick = require("../../utils/closeOnDirectClick");
@@ -223,11 +223,6 @@ var InteractiveImgComponent = exports.InteractiveImgComponent = /*#__PURE__*/fun
223
223
  if (!isHDAvailable) {
224
224
  return null;
225
225
  }
226
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
227
- var hdPrimaryColor = isHDActivating ? _colors.B75 : isHDActive ? _colors.B200 : _colors.DN400;
228
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
229
- var hdSecondaryColor = isHDActive && !isHDActivating ? _colors.N0 : _colors.DN60;
230
- var testId = isHDActivating ? 'hd-activating' : isHDActive ? 'hd-active' : 'hd-inactive';
231
226
  return (
232
227
  /*#__PURE__*/
233
228
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -235,11 +230,10 @@ var InteractiveImgComponent = exports.InteractiveImgComponent = /*#__PURE__*/fun
235
230
  className: _mediaUi.hideControlsClassName
236
231
  }, isHDActivating ? /*#__PURE__*/_react.default.createElement(_spinner.default, {
237
232
  appearance: "invert"
238
- }) : undefined, /*#__PURE__*/_react.default.createElement(_vidHdCircle.default, {
239
- primaryColor: hdPrimaryColor,
240
- secondaryColor: hdSecondaryColor,
241
- label: "hd",
242
- testId: testId
233
+ }) : undefined, isHDActive ? /*#__PURE__*/_react.default.createElement(_videoHdFilled.default, {
234
+ label: "hd active"
235
+ }) : /*#__PURE__*/_react.default.createElement(_videoHd.default, {
236
+ label: "hd"
243
237
  }))
244
238
  );
245
239
  }
@@ -28,7 +28,7 @@ var ImageWrapper = exports.ImageWrapper = /*#__PURE__*/(0, _react2.forwardRef)(f
28
28
  onClick = _ref.onClick,
29
29
  isHidden = _ref.isHidden;
30
30
  return (
31
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
31
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
32
32
  (0, _react.jsx)("div", {
33
33
  "data-testid": "media-viewer-svg-wrapper",
34
34
  onClick: onClick,
@@ -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.0.8";
4
+ const packageVersion = "52.0.10";
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.0.8";
5
+ const packageVersion = "52.0.10";
6
6
  let ufoExperience;
7
7
  const getExperience = () => {
8
8
  if (!ufoExperience) {
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useCallback, useEffect, useState, useRef } from 'react';
3
3
  import Loadable from 'react-loadable';
4
4
  import { isExternalImageIdentifier, isFileIdentifier, toCommonMediaClientError } from '@atlaskit/media-client';
5
- import { Text } from '@atlaskit/primitives';
5
+ import { Text } from '@atlaskit/primitives/compiled';
6
6
  import { FormattedMessage } from 'react-intl-next';
7
7
  import { messages } from '@atlaskit/media-ui';
8
8
  import { isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
@@ -549,7 +549,7 @@ export const ImageWrapper = /*#__PURE__*/forwardRef(({
549
549
  style,
550
550
  className
551
551
  }, ref) =>
552
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
552
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
553
553
  jsx("div", {
554
554
  "data-testid": datatestId,
555
555
  onClick: onClick,
@@ -5,7 +5,7 @@ import { unzip, HTTPRangeReader } from 'unzipit';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
6
  import { CustomMediaPlayer, messages } from '@atlaskit/media-ui';
7
7
  import { getLanguageType, isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
8
- import { Text } from '@atlaskit/primitives';
8
+ import { Text } from '@atlaskit/primitives/compiled';
9
9
  import { Outcome } from '../../domain';
10
10
  import { CustomVideoPlayerWrapper, AudioPlayer, CustomAudioPlayerWrapper, DefaultCoverWrapper, ListWrapper } from '../../styleWrappers';
11
11
  import AudioIcon from '@atlaskit/icon/core/migration/audio--media-services-audio';
@@ -143,7 +143,7 @@ export const ArchiveDownloadButtonWrapper = ({
143
143
  onClick
144
144
  }) => {
145
145
  return (
146
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
146
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
147
147
  jsx("div", {
148
148
  css: archiveDownloadButtonWrapperStyles,
149
149
  onClick: onClick,
@@ -164,9 +164,9 @@ const PDFRendererBase = ({
164
164
  ref: savePdfElement
165
165
  },
166
166
  /*#__PURE__*/
167
- // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
167
+ // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
168
168
  React.createElement("div", {
169
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
169
+ // eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
170
170
  className: pdfViewerClassName,
171
171
  onClick: closeOnDirectClick(onClose)
172
172
  }), /*#__PURE__*/React.createElement(ZoomControls, {
@@ -4,9 +4,9 @@ import { Camera, getCssFromImageOrientation, hideControlsClassName, Rectangle, V
4
4
  import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
5
5
  import { MAX_RESOLUTION } from '@atlaskit/media-client/constants';
6
6
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
7
- import HDIcon from '@atlaskit/icon/glyph/vid-hd-circle';
7
+ import VideoHdIcon from '@atlaskit/icon-lab/core/video-hd';
8
+ import VideoHdFilledIcon from '@atlaskit/icon-lab/core/video-hd-filled';
8
9
  import Spinner from '@atlaskit/spinner';
9
- import { B75, B200, DN400, DN60, N0 } from '@atlaskit/theme/colors';
10
10
  import { BaselineExtend, HDIconGroupWrapper, ImageWrapper, Img } from '../../styleWrappers';
11
11
  import { ZoomLevel } from '../../domain/zoomLevel';
12
12
  import { closeOnDirectClick } from '../../utils/closeOnDirectClick';
@@ -211,11 +211,6 @@ export class InteractiveImgComponent extends React.Component {
211
211
  if (!isHDAvailable) {
212
212
  return null;
213
213
  }
214
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
215
- const hdPrimaryColor = isHDActivating ? B75 : isHDActive ? B200 : DN400;
216
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
217
- const hdSecondaryColor = isHDActive && !isHDActivating ? N0 : DN60;
218
- const testId = isHDActivating ? 'hd-activating' : isHDActive ? 'hd-active' : 'hd-inactive';
219
214
  return (
220
215
  /*#__PURE__*/
221
216
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -223,11 +218,10 @@ export class InteractiveImgComponent extends React.Component {
223
218
  className: hideControlsClassName
224
219
  }, isHDActivating ? /*#__PURE__*/React.createElement(Spinner, {
225
220
  appearance: "invert"
226
- }) : undefined, /*#__PURE__*/React.createElement(HDIcon, {
227
- primaryColor: hdPrimaryColor,
228
- secondaryColor: hdSecondaryColor,
229
- label: "hd",
230
- testId: testId
221
+ }) : undefined, isHDActive ? /*#__PURE__*/React.createElement(VideoHdFilledIcon, {
222
+ label: "hd active"
223
+ }) : /*#__PURE__*/React.createElement(VideoHdIcon, {
224
+ label: "hd"
231
225
  }))
232
226
  );
233
227
  }
@@ -21,7 +21,7 @@ export const ImageWrapper = /*#__PURE__*/forwardRef(({
21
21
  onClick,
22
22
  isHidden
23
23
  }, ref) =>
24
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
24
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
25
25
  jsx("div", {
26
26
  "data-testid": "media-viewer-svg-wrapper",
27
27
  onClick: onClick,
@@ -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.0.8";
4
+ var packageVersion = "52.0.10";
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.0.8";
8
+ var packageVersion = "52.0.10";
9
9
  var ufoExperience;
10
10
  var getExperience = function getExperience() {
11
11
  if (!ufoExperience) {
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import React, { useCallback, useEffect, useState, useRef } from 'react';
4
4
  import Loadable from 'react-loadable';
5
5
  import { isExternalImageIdentifier, isFileIdentifier, toCommonMediaClientError } from '@atlaskit/media-client';
6
- import { Text } from '@atlaskit/primitives';
6
+ import { Text } from '@atlaskit/primitives/compiled';
7
7
  import { FormattedMessage } from 'react-intl-next';
8
8
  import { messages } from '@atlaskit/media-ui';
9
9
  import { isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
@@ -571,7 +571,7 @@ export var ImageWrapper = /*#__PURE__*/forwardRef(function (_ref26, ref) {
571
571
  style = _ref26.style,
572
572
  className = _ref26.className;
573
573
  return (
574
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
574
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
575
575
  jsx("div", {
576
576
  "data-testid": datatestId,
577
577
  onClick: onClick,
@@ -16,7 +16,7 @@ import { unzip, HTTPRangeReader } from 'unzipit';
16
16
  import { FormattedMessage } from 'react-intl-next';
17
17
  import { CustomMediaPlayer, messages } from '@atlaskit/media-ui';
18
18
  import { getLanguageType, isCodeViewerItem } from '@atlaskit/media-ui/codeViewer';
19
- import { Text } from '@atlaskit/primitives';
19
+ import { Text } from '@atlaskit/primitives/compiled';
20
20
  import { Outcome } from '../../domain';
21
21
  import { CustomVideoPlayerWrapper, AudioPlayer, CustomAudioPlayerWrapper, DefaultCoverWrapper, ListWrapper } from '../../styleWrappers';
22
22
  import AudioIcon from '@atlaskit/icon/core/migration/audio--media-services-audio';
@@ -137,7 +137,7 @@ export var ArchiveDownloadButtonWrapper = function ArchiveDownloadButtonWrapper(
137
137
  var children = _ref4.children,
138
138
  onClick = _ref4.onClick;
139
139
  return (
140
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
140
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
141
141
  jsx("div", {
142
142
  css: archiveDownloadButtonWrapperStyles,
143
143
  onClick: onClick,
@@ -235,9 +235,9 @@ var PDFRendererBase = function PDFRendererBase(_ref2) {
235
235
  ref: savePdfElement
236
236
  },
237
237
  /*#__PURE__*/
238
- // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
238
+ // eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
239
239
  React.createElement("div", {
240
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
240
+ // eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
241
241
  className: pdfViewerClassName,
242
242
  onClick: closeOnDirectClick(onClose)
243
243
  }), /*#__PURE__*/React.createElement(ZoomControls, {
@@ -11,9 +11,9 @@ import { Camera, getCssFromImageOrientation, hideControlsClassName, Rectangle, V
11
11
  import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
12
12
  import { MAX_RESOLUTION } from '@atlaskit/media-client/constants';
13
13
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
14
- import HDIcon from '@atlaskit/icon/glyph/vid-hd-circle';
14
+ import VideoHdIcon from '@atlaskit/icon-lab/core/video-hd';
15
+ import VideoHdFilledIcon from '@atlaskit/icon-lab/core/video-hd-filled';
15
16
  import Spinner from '@atlaskit/spinner';
16
- import { B75, B200, DN400, DN60, N0 } from '@atlaskit/theme/colors';
17
17
  import { BaselineExtend, HDIconGroupWrapper, ImageWrapper, Img } from '../../styleWrappers';
18
18
  import { ZoomLevel } from '../../domain/zoomLevel';
19
19
  import { closeOnDirectClick } from '../../utils/closeOnDirectClick';
@@ -215,11 +215,6 @@ export var InteractiveImgComponent = /*#__PURE__*/function (_React$Component) {
215
215
  if (!isHDAvailable) {
216
216
  return null;
217
217
  }
218
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
219
- var hdPrimaryColor = isHDActivating ? B75 : isHDActive ? B200 : DN400;
220
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
221
- var hdSecondaryColor = isHDActive && !isHDActivating ? N0 : DN60;
222
- var testId = isHDActivating ? 'hd-activating' : isHDActive ? 'hd-active' : 'hd-inactive';
223
218
  return (
224
219
  /*#__PURE__*/
225
220
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -227,11 +222,10 @@ export var InteractiveImgComponent = /*#__PURE__*/function (_React$Component) {
227
222
  className: hideControlsClassName
228
223
  }, isHDActivating ? /*#__PURE__*/React.createElement(Spinner, {
229
224
  appearance: "invert"
230
- }) : undefined, /*#__PURE__*/React.createElement(HDIcon, {
231
- primaryColor: hdPrimaryColor,
232
- secondaryColor: hdSecondaryColor,
233
- label: "hd",
234
- testId: testId
225
+ }) : undefined, isHDActive ? /*#__PURE__*/React.createElement(VideoHdFilledIcon, {
226
+ label: "hd active"
227
+ }) : /*#__PURE__*/React.createElement(VideoHdIcon, {
228
+ label: "hd"
235
229
  }))
236
230
  );
237
231
  }
@@ -21,7 +21,7 @@ export var ImageWrapper = /*#__PURE__*/forwardRef(function (_ref, ref) {
21
21
  onClick = _ref.onClick,
22
22
  isHidden = _ref.isHidden;
23
23
  return (
24
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
24
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
25
25
  jsx("div", {
26
26
  "data-testid": "media-viewer-svg-wrapper",
27
27
  onClick: onClick,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-viewer",
3
- "version": "52.0.8",
3
+ "version": "52.0.10",
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,8 +41,9 @@
41
41
  "@atlaskit/code": "^17.0.0",
42
42
  "@atlaskit/form": "^12.0.0",
43
43
  "@atlaskit/heading": "^5.2.0",
44
- "@atlaskit/icon": "^25.5.0",
44
+ "@atlaskit/icon": "^25.6.0",
45
45
  "@atlaskit/icon-file-type": "^7.0.0",
46
+ "@atlaskit/icon-lab": "^4.9.0",
46
47
  "@atlaskit/media-client": "^32.0.0",
47
48
  "@atlaskit/media-client-react": "^4.0.0",
48
49
  "@atlaskit/media-common": "^12.0.0",
@@ -55,7 +56,7 @@
55
56
  "@atlaskit/spinner": "^18.0.0",
56
57
  "@atlaskit/textfield": "^8.0.0",
57
58
  "@atlaskit/theme": "^18.0.0",
58
- "@atlaskit/tokens": "^4.7.0",
59
+ "@atlaskit/tokens": "^4.8.0",
59
60
  "@atlaskit/tooltip": "^20.0.0",
60
61
  "@atlaskit/ufo": "^0.4.0",
61
62
  "@babel/runtime": "^7.0.0",
@@ -79,16 +80,16 @@
79
80
  "react-intl-next": "npm:react-intl@^5.18.1"
80
81
  },
81
82
  "devDependencies": {
82
- "@af/integration-testing": "^0.5.0",
83
- "@af/visual-regression": "^1.3.0",
83
+ "@af/integration-testing": "workspace:^",
84
+ "@af/visual-regression": "workspace:^",
84
85
  "@atlaskit/media-core": "^35.0.0",
85
- "@atlaskit/media-integration-test-helpers": "^4.0.0",
86
+ "@atlaskit/media-integration-test-helpers": "workspace:^",
86
87
  "@atlaskit/media-state": "^1.5.0",
87
88
  "@atlaskit/media-test-data": "^3.0.0",
88
89
  "@atlaskit/media-test-helpers": "^35.0.0",
89
- "@atlaskit/ssr": "^0.4.0",
90
+ "@atlaskit/ssr": "workspace:^",
90
91
  "@atlaskit/toggle": "^15.0.0",
91
- "@atlaskit/visual-regression": "^0.10.0",
92
+ "@atlaskit/visual-regression": "workspace:^",
92
93
  "@atlassian/feature-flags-test-utils": "^0.3.0",
93
94
  "@atlassian/ufo": "^0.6.0",
94
95
  "@testing-library/dom": "^10.1.0",