@atlaskit/media-card 74.7.1 → 74.7.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 74.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`31717a1fe63`](https://bitbucket.org/atlassian/atlassian-frontend/commits/31717a1fe63) - Fix the bug when clicking on media inline files in Hybrid Renderer, viewer is not opening.
8
+
3
9
  ## 74.7.1
4
10
 
5
11
  ### Patch Changes
@@ -48,7 +48,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
48
48
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
49
49
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
50
50
  var packageName = "@atlaskit/media-card";
51
- var packageVersion = "74.7.1";
51
+ var packageVersion = "74.7.2";
52
52
  var CardBase = /*#__PURE__*/function (_Component) {
53
53
  (0, _inherits2.default)(CardBase, _Component);
54
54
  var _super = _createSuper(CardBase);
@@ -90,7 +90,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
90
90
  }(_react.default.Component);
91
91
  (0, _defineProperty2.default)(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
92
92
  var packageName = "@atlaskit/media-card";
93
- var packageVersion = "74.7.1";
93
+ var packageVersion = "74.7.2";
94
94
  var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
95
95
  packageVersion: packageVersion,
96
96
  packageName: packageName,
@@ -77,7 +77,7 @@ var WrappedMediaInlineAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Com
77
77
  }(_react.default.Component);
78
78
  (0, _defineProperty2.default)(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
79
79
  var packageName = "@atlaskit/media-card";
80
- var packageVersion = "74.7.1";
80
+ var packageVersion = "74.7.2";
81
81
  var MediaInlineAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
82
82
  packageVersion: packageVersion,
83
83
  packageName: packageName,
@@ -22,6 +22,7 @@ var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
22
22
  var mediaClient = _ref.mediaClient,
23
23
  identifier = _ref.identifier,
24
24
  shouldOpenMediaViewer = _ref.shouldOpenMediaViewer,
25
+ shouldDisplayToolTip = _ref.shouldDisplayToolTip,
25
26
  isSelected = _ref.isSelected,
26
27
  onClick = _ref.onClick,
27
28
  mediaViewerDataSource = _ref.mediaViewerDataSource,
@@ -40,12 +41,16 @@ var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
40
41
  isMediaViewerVisible = _useState6[0],
41
42
  setMediaViewerVisible = _useState6[1];
42
43
  var onMediaInlineCardClick = function onMediaInlineCardClick(event) {
44
+ if (onClick) {
45
+ var inlineCardEvent = {
46
+ event: event,
47
+ mediaItemDetails: identifier
48
+ };
49
+ onClick(inlineCardEvent);
50
+ }
43
51
  if (shouldOpenMediaViewer) {
44
52
  setMediaViewerVisible(true);
45
53
  }
46
- if (onClick) {
47
- onClick(event);
48
- }
49
54
  };
50
55
  var onMediaViewerClose = function onMediaViewerClose() {
51
56
  return setMediaViewerVisible(false);
@@ -140,16 +145,25 @@ var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
140
145
  locale = _ref2$locale === void 0 ? 'en' : _ref2$locale;
141
146
  formattedDate = (0, _formatDate.formatDate)(fileState.createdAt, locale);
142
147
  }
143
- return renderContent( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
144
- position: "bottom",
145
- content: formattedDate,
146
- tag: "span"
147
- }, /*#__PURE__*/_react.default.createElement(_mediaUi.MediaInlineCardLoadedView, {
148
- icon: linkIcon,
149
- title: name,
150
- onClick: onMediaInlineCardClick,
151
- isSelected: isSelected
152
- })), mediaViewer));
148
+ if (shouldDisplayToolTip === undefined || shouldDisplayToolTip === true) {
149
+ return renderContent( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
150
+ position: "bottom",
151
+ content: formattedDate,
152
+ tag: "span"
153
+ }, /*#__PURE__*/_react.default.createElement(_mediaUi.MediaInlineCardLoadedView, {
154
+ icon: linkIcon,
155
+ title: name,
156
+ onClick: onMediaInlineCardClick,
157
+ isSelected: isSelected
158
+ })), mediaViewer));
159
+ } else {
160
+ return renderContent( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_mediaUi.MediaInlineCardLoadedView, {
161
+ icon: linkIcon,
162
+ title: name,
163
+ onClick: onMediaInlineCardClick,
164
+ isSelected: isSelected
165
+ }), mediaViewer));
166
+ }
153
167
  };
154
168
  exports.MediaInlineCardInternal = MediaInlineCardInternal;
155
169
  var MediaInlineCard = (0, _reactIntlNext.injectIntl)(MediaInlineCardInternal, {
@@ -14,7 +14,7 @@ var _mediaClient = require("@atlaskit/media-client");
14
14
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
15
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16
16
  var packageName = "@atlaskit/media-card";
17
- var packageVersion = "74.7.1";
17
+ var packageVersion = "74.7.2";
18
18
  var concurrentExperience;
19
19
  var getExperience = function getExperience(id) {
20
20
  if (!concurrentExperience) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "74.7.1",
3
+ "version": "74.7.2",
4
4
  "sideEffects": false
5
5
  }
@@ -27,7 +27,7 @@ import { getMediaCardCursor } from '../utils/getMediaCardCursor';
27
27
  import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
28
28
  import { generateUniqueId } from '../utils/generateUniqueId';
29
29
  const packageName = "@atlaskit/media-card";
30
- const packageVersion = "74.7.1";
30
+ const packageVersion = "74.7.2";
31
31
  export class CardBase extends Component {
32
32
  // An internalOccurrenceKey is a randomly generated value to differentiate various instances
33
33
  // of Cards regardless of whether it shares the same file (either internal or external)
@@ -66,7 +66,7 @@ class WrappedMediaCardAnalyticsErrorBoundary extends React.Component {
66
66
  }
67
67
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
68
68
  const packageName = "@atlaskit/media-card";
69
- const packageVersion = "74.7.1";
69
+ const packageVersion = "74.7.2";
70
70
  const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
71
71
  packageVersion,
72
72
  packageName,
@@ -54,7 +54,7 @@ class WrappedMediaInlineAnalyticsErrorBoundary extends React.Component {
54
54
  }
55
55
  _defineProperty(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
56
56
  const packageName = "@atlaskit/media-card";
57
- const packageVersion = "74.7.1";
57
+ const packageVersion = "74.7.2";
58
58
  const MediaInlineAnalyticsErrorBoundary = withMediaAnalyticsContext({
59
59
  packageVersion,
60
60
  packageName,
@@ -11,6 +11,7 @@ export const MediaInlineCardInternal = ({
11
11
  mediaClient,
12
12
  identifier,
13
13
  shouldOpenMediaViewer,
14
+ shouldDisplayToolTip,
14
15
  isSelected,
15
16
  onClick,
16
17
  mediaViewerDataSource,
@@ -21,12 +22,16 @@ export const MediaInlineCardInternal = ({
21
22
  const [isErrored, setIsErrored] = useState(false);
22
23
  const [isMediaViewerVisible, setMediaViewerVisible] = useState(false);
23
24
  const onMediaInlineCardClick = event => {
25
+ if (onClick) {
26
+ const inlineCardEvent = {
27
+ event,
28
+ mediaItemDetails: identifier
29
+ };
30
+ onClick(inlineCardEvent);
31
+ }
24
32
  if (shouldOpenMediaViewer) {
25
33
  setMediaViewerVisible(true);
26
34
  }
27
- if (onClick) {
28
- onClick(event);
29
- }
30
35
  };
31
36
  const onMediaViewerClose = () => setMediaViewerVisible(false);
32
37
  const renderMediaViewer = () => {
@@ -121,16 +126,25 @@ export const MediaInlineCardInternal = ({
121
126
  };
122
127
  formattedDate = formatDate(fileState.createdAt, locale);
123
128
  }
124
- return renderContent( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
125
- position: "bottom",
126
- content: formattedDate,
127
- tag: "span"
128
- }, /*#__PURE__*/React.createElement(MediaInlineCardLoadedView, {
129
- icon: linkIcon,
130
- title: name,
131
- onClick: onMediaInlineCardClick,
132
- isSelected: isSelected
133
- })), mediaViewer));
129
+ if (shouldDisplayToolTip === undefined || shouldDisplayToolTip === true) {
130
+ return renderContent( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
131
+ position: "bottom",
132
+ content: formattedDate,
133
+ tag: "span"
134
+ }, /*#__PURE__*/React.createElement(MediaInlineCardLoadedView, {
135
+ icon: linkIcon,
136
+ title: name,
137
+ onClick: onMediaInlineCardClick,
138
+ isSelected: isSelected
139
+ })), mediaViewer));
140
+ } else {
141
+ return renderContent( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MediaInlineCardLoadedView, {
142
+ icon: linkIcon,
143
+ title: name,
144
+ onClick: onMediaInlineCardClick,
145
+ isSelected: isSelected
146
+ }), mediaViewer));
147
+ }
134
148
  };
135
149
  export const MediaInlineCard = injectIntl(MediaInlineCardInternal, {
136
150
  enforceContext: false
@@ -4,7 +4,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
4
4
  import { MediaCardError } from '../errors';
5
5
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
6
6
  const packageName = "@atlaskit/media-card";
7
- const packageVersion = "74.7.1";
7
+ const packageVersion = "74.7.2";
8
8
  let concurrentExperience;
9
9
  const getExperience = id => {
10
10
  if (!concurrentExperience) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "74.7.1",
3
+ "version": "74.7.2",
4
4
  "sideEffects": false
5
5
  }
@@ -40,7 +40,7 @@ import { getMediaCardCursor } from '../utils/getMediaCardCursor';
40
40
  import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
41
41
  import { generateUniqueId } from '../utils/generateUniqueId';
42
42
  var packageName = "@atlaskit/media-card";
43
- var packageVersion = "74.7.1";
43
+ var packageVersion = "74.7.2";
44
44
  export var CardBase = /*#__PURE__*/function (_Component) {
45
45
  _inherits(CardBase, _Component);
46
46
  var _super = _createSuper(CardBase);
@@ -83,7 +83,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
83
83
  }(React.Component);
84
84
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
85
85
  var packageName = "@atlaskit/media-card";
86
- var packageVersion = "74.7.1";
86
+ var packageVersion = "74.7.2";
87
87
  var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
88
88
  packageVersion: packageVersion,
89
89
  packageName: packageName,
@@ -70,7 +70,7 @@ var WrappedMediaInlineAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Com
70
70
  }(React.Component);
71
71
  _defineProperty(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
72
72
  var packageName = "@atlaskit/media-card";
73
- var packageVersion = "74.7.1";
73
+ var packageVersion = "74.7.2";
74
74
  var MediaInlineAnalyticsErrorBoundary = withMediaAnalyticsContext({
75
75
  packageVersion: packageVersion,
76
76
  packageName: packageName,
@@ -12,6 +12,7 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
12
12
  var mediaClient = _ref.mediaClient,
13
13
  identifier = _ref.identifier,
14
14
  shouldOpenMediaViewer = _ref.shouldOpenMediaViewer,
15
+ shouldDisplayToolTip = _ref.shouldDisplayToolTip,
15
16
  isSelected = _ref.isSelected,
16
17
  onClick = _ref.onClick,
17
18
  mediaViewerDataSource = _ref.mediaViewerDataSource,
@@ -30,12 +31,16 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
30
31
  isMediaViewerVisible = _useState6[0],
31
32
  setMediaViewerVisible = _useState6[1];
32
33
  var onMediaInlineCardClick = function onMediaInlineCardClick(event) {
34
+ if (onClick) {
35
+ var inlineCardEvent = {
36
+ event: event,
37
+ mediaItemDetails: identifier
38
+ };
39
+ onClick(inlineCardEvent);
40
+ }
33
41
  if (shouldOpenMediaViewer) {
34
42
  setMediaViewerVisible(true);
35
43
  }
36
- if (onClick) {
37
- onClick(event);
38
- }
39
44
  };
40
45
  var onMediaViewerClose = function onMediaViewerClose() {
41
46
  return setMediaViewerVisible(false);
@@ -130,16 +135,25 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
130
135
  locale = _ref2$locale === void 0 ? 'en' : _ref2$locale;
131
136
  formattedDate = formatDate(fileState.createdAt, locale);
132
137
  }
133
- return renderContent( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
134
- position: "bottom",
135
- content: formattedDate,
136
- tag: "span"
137
- }, /*#__PURE__*/React.createElement(MediaInlineCardLoadedView, {
138
- icon: linkIcon,
139
- title: name,
140
- onClick: onMediaInlineCardClick,
141
- isSelected: isSelected
142
- })), mediaViewer));
138
+ if (shouldDisplayToolTip === undefined || shouldDisplayToolTip === true) {
139
+ return renderContent( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
140
+ position: "bottom",
141
+ content: formattedDate,
142
+ tag: "span"
143
+ }, /*#__PURE__*/React.createElement(MediaInlineCardLoadedView, {
144
+ icon: linkIcon,
145
+ title: name,
146
+ onClick: onMediaInlineCardClick,
147
+ isSelected: isSelected
148
+ })), mediaViewer));
149
+ } else {
150
+ return renderContent( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MediaInlineCardLoadedView, {
151
+ icon: linkIcon,
152
+ title: name,
153
+ onClick: onMediaInlineCardClick,
154
+ isSelected: isSelected
155
+ }), mediaViewer));
156
+ }
143
157
  };
144
158
  export var MediaInlineCard = injectIntl(MediaInlineCardInternal, {
145
159
  enforceContext: false
@@ -7,7 +7,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
7
7
  import { MediaCardError } from '../errors';
8
8
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
9
9
  var packageName = "@atlaskit/media-card";
10
- var packageVersion = "74.7.1";
10
+ var packageVersion = "74.7.2";
11
11
  var concurrentExperience;
12
12
  var getExperience = function getExperience(id) {
13
13
  if (!concurrentExperience) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "74.7.1",
3
+ "version": "74.7.2",
4
4
  "sideEffects": false
5
5
  }
@@ -4,7 +4,7 @@
4
4
  */
5
5
  export type { NumericalCardDimensions } from '@atlaskit/media-common';
6
6
  export type { CardAction, CardEventHandler } from './card/actions';
7
- export type { CardStatus, CardAppearance, CardDimensionValue, CardPreview, TitleBoxIcon, CardEvent, SharedCardProps, CardOnClickCallback, CardProps, CardState, CardDimensions, } from './types';
7
+ export type { CardStatus, CardAppearance, CardDimensionValue, CardPreview, TitleBoxIcon, CardEvent, InlineCardEvent, SharedCardProps, CardOnClickCallback, InlineCardOnClickCallback, CardProps, CardState, CardDimensions, } from './types';
8
8
  export { Card } from './card';
9
9
  export { MediaInlineCard } from './inline';
10
10
  export { CardLoading } from './utils/lightCards/cardLoading';
@@ -2,12 +2,14 @@ import React, { FC } from 'react';
2
2
  import { FileIdentifier, Identifier, MediaClient } from '@atlaskit/media-client';
3
3
  import { WrappedComponentProps } from 'react-intl-next';
4
4
  import { MediaViewerDataSource } from '@atlaskit/media-viewer';
5
+ import { InlineCardOnClickCallback } from '../types';
5
6
  export interface MediaInlineCardProps {
6
7
  identifier: FileIdentifier;
7
8
  mediaClient: MediaClient;
8
9
  shouldOpenMediaViewer?: boolean;
10
+ shouldDisplayToolTip?: boolean;
9
11
  isSelected?: boolean;
10
- onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
12
+ onClick?: InlineCardOnClickCallback;
11
13
  /**
12
14
  * Includes data source like collection name,
13
15
  * media file list.
@@ -42,6 +42,10 @@ export interface CardEvent {
42
42
  event: MouseEvent<HTMLElement>;
43
43
  mediaItemDetails?: FileDetails;
44
44
  }
45
+ export interface InlineCardEvent {
46
+ event: MouseEvent<HTMLElement> | React.KeyboardEvent;
47
+ mediaItemDetails?: FileDetails;
48
+ }
45
49
  export interface SharedCardProps {
46
50
  readonly disableOverlay?: boolean;
47
51
  readonly resizeMode?: ImageResizeMode;
@@ -60,6 +64,9 @@ export interface SharedCardProps {
60
64
  export interface CardOnClickCallback {
61
65
  (result: CardEvent, analyticsEvent?: UIAnalyticsEvent): void;
62
66
  }
67
+ export interface InlineCardOnClickCallback {
68
+ (result: InlineCardEvent, analyticsEvent?: UIAnalyticsEvent): void;
69
+ }
63
70
  export interface CardEventProps {
64
71
  readonly onClick?: CardOnClickCallback;
65
72
  readonly onMouseEnter?: (result: CardEvent) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "74.7.1",
3
+ "version": "74.7.2",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -61,7 +61,7 @@
61
61
  "@atlaskit/docs": "*",
62
62
  "@atlaskit/inline-message": "^11.4.0",
63
63
  "@atlaskit/media-core": "^34.0.0",
64
- "@atlaskit/media-picker": "^64.2.0",
64
+ "@atlaskit/media-picker": "^64.3.0",
65
65
  "@atlaskit/media-test-helpers": "^31.0.0",
66
66
  "@atlaskit/radio": "^5.4.0",
67
67
  "@atlaskit/range": "^7.0.0",
package/report.api.md CHANGED
@@ -240,6 +240,20 @@ type ImageLoadPrimaryReason =
240
240
  | 'remote-uri'
241
241
  | 'unknown-uri';
242
242
 
243
+ // @public (undocumented)
244
+ export interface InlineCardEvent {
245
+ // (undocumented)
246
+ event: MouseEvent_2<HTMLElement> | React.KeyboardEvent;
247
+ // (undocumented)
248
+ mediaItemDetails?: FileDetails;
249
+ }
250
+
251
+ // @public (undocumented)
252
+ export interface InlineCardOnClickCallback {
253
+ // (undocumented)
254
+ (result: InlineCardEvent, analyticsEvent?: UIAnalyticsEvent): void;
255
+ }
256
+
243
257
  // @public (undocumented)
244
258
  export const inlinePlayerClassName = 'media-card-inline-player';
245
259
 
@@ -319,7 +333,9 @@ interface MediaInlineCardProps {
319
333
  // (undocumented)
320
334
  mediaViewerItems?: Identifier[];
321
335
  // (undocumented)
322
- onClick?: React_2.EventHandler<React_2.KeyboardEvent | React_2.MouseEvent>;
336
+ onClick?: InlineCardOnClickCallback;
337
+ // (undocumented)
338
+ shouldDisplayToolTip?: boolean;
323
339
  // (undocumented)
324
340
  shouldOpenMediaViewer?: boolean;
325
341
  }