@atlaskit/media-card 81.8.2 → 81.8.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.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/card/actions.js +2 -2
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/cardView.js +3 -3
- package/dist/cjs/card/inlinePlayer.js +6 -4
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/styles.js +5 -4
- package/dist/cjs/card/ui/iconMessage/index.js +6 -6
- package/dist/cjs/card/ui/imageRenderer/imageRenderer.js +2 -2
- package/dist/cjs/card/ui/openMediaViewerButton/openMediaViewerButton.js +3 -3
- package/dist/cjs/card/ui/progressBar/styles.js +2 -2
- package/dist/cjs/card/ui/titleBox/failedTitleBox.js +2 -2
- package/dist/cjs/card/ui/titleBox/titleBox.js +2 -2
- package/dist/cjs/card/ui/wrapper/styles.js +2 -2
- package/dist/cjs/inline/loader.js +3 -3
- package/dist/cjs/inline/mediaInlineCard.js +17 -14
- package/dist/cjs/utils/analytics/analytics.js +2 -2
- package/dist/cjs/utils/lightCards/styles.js +3 -3
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/es2019/card/actions.js +1 -1
- package/dist/es2019/card/card.js +1 -1
- package/dist/es2019/card/cardView.js +1 -1
- package/dist/es2019/card/inlinePlayer.js +3 -1
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/styles.js +2 -1
- package/dist/es2019/card/ui/iconMessage/index.js +1 -1
- package/dist/es2019/card/ui/imageRenderer/imageRenderer.js +1 -1
- package/dist/es2019/card/ui/openMediaViewerButton/openMediaViewerButton.js +1 -1
- package/dist/es2019/card/ui/progressBar/styles.js +1 -1
- package/dist/es2019/card/ui/titleBox/failedTitleBox.js +1 -1
- package/dist/es2019/card/ui/titleBox/titleBox.js +1 -1
- package/dist/es2019/card/ui/wrapper/styles.js +1 -1
- package/dist/es2019/inline/loader.js +2 -2
- package/dist/es2019/inline/mediaInlineCard.js +4 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/lightCards/styles.js +1 -1
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/actions.js +1 -1
- package/dist/esm/card/card.js +1 -1
- package/dist/esm/card/cardView.js +1 -1
- package/dist/esm/card/inlinePlayer.js +3 -1
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/ui/actionsBar/cardActions/styles.js +2 -1
- package/dist/esm/card/ui/iconMessage/index.js +1 -1
- package/dist/esm/card/ui/imageRenderer/imageRenderer.js +1 -1
- package/dist/esm/card/ui/openMediaViewerButton/openMediaViewerButton.js +1 -1
- package/dist/esm/card/ui/progressBar/styles.js +1 -1
- package/dist/esm/card/ui/titleBox/failedTitleBox.js +1 -1
- package/dist/esm/card/ui/titleBox/titleBox.js +1 -1
- package/dist/esm/card/ui/wrapper/styles.js +1 -1
- package/dist/esm/inline/loader.js +2 -2
- package/dist/esm/inline/mediaInlineCard.js +4 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/lightCards/styles.js +1 -1
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/dist/cjs/card/actions.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.createDownloadAction = void 0;
|
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _download = _interopRequireDefault(require("@atlaskit/icon/core/download"));
|
|
12
|
-
var
|
|
12
|
+
var _messages = require("@atlaskit/media-ui/messages");
|
|
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
|
function attachDetailsToActions(actions, details) {
|
|
@@ -27,7 +27,7 @@ function attachDetailsToActions(actions, details) {
|
|
|
27
27
|
var createDownloadAction = exports.createDownloadAction = function createDownloadAction(baseAction, formatMessage) {
|
|
28
28
|
var isDisabled = baseAction.isDisabled;
|
|
29
29
|
var label = isDisabled ? 'Download Disabled' : 'Download';
|
|
30
|
-
var tooltip = isDisabled ? formatMessage(
|
|
30
|
+
var tooltip = isDisabled ? formatMessage(_messages.messages.download_disabled_security_policy) : undefined;
|
|
31
31
|
return _objectSpread(_objectSpread({}, baseAction), {}, {
|
|
32
32
|
label: label,
|
|
33
33
|
tooltip: tooltip,
|
package/dist/cjs/card/card.js
CHANGED
|
@@ -20,7 +20,7 @@ var _label = _interopRequireDefault(require("@atlaskit/react-ufo/label"));
|
|
|
20
20
|
var _excluded = ["identifier"];
|
|
21
21
|
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); }
|
|
22
22
|
var packageName = "@atlaskit/media-card";
|
|
23
|
-
var packageVersion = "81.8.
|
|
23
|
+
var packageVersion = "81.8.3";
|
|
24
24
|
var CardBase = exports.CardBase = function CardBase(_ref) {
|
|
25
25
|
var identifier = _ref.identifier,
|
|
26
26
|
otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -16,7 +16,7 @@ var _mimeTypeIcon = require("@atlaskit/media-ui/mime-type-icon");
|
|
|
16
16
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
17
17
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
18
18
|
var _useCallbackRef = require("use-callback-ref");
|
|
19
|
-
var
|
|
19
|
+
var _messages = require("@atlaskit/media-ui/messages");
|
|
20
20
|
var _analytics = require("../utils/analytics");
|
|
21
21
|
var _imageRenderer = require("./ui/imageRenderer");
|
|
22
22
|
var _titleBox = require("./ui/titleBox/titleBox");
|
|
@@ -195,10 +195,10 @@ var CardViewBase = exports.CardViewBase = function CardViewBase(_ref) {
|
|
|
195
195
|
var _traceTooltipVariant;
|
|
196
196
|
if ((0, _errors.isUploadError)(error)) {
|
|
197
197
|
_iconMessage = /*#__PURE__*/_react.default.createElement(_iconMessage2.FailedToUpload, null);
|
|
198
|
-
_customTitleMessage =
|
|
198
|
+
_customTitleMessage = _messages.messages.failed_to_upload;
|
|
199
199
|
} else if ((0, _isNetworkError.isNetworkError)(error) && (0, _fg.fg)('media_card_failed_messaging_ui_revamp')) {
|
|
200
200
|
_iconMessage = /*#__PURE__*/_react.default.createElement(_iconMessage2.CheckInternetConnection, null);
|
|
201
|
-
_customTitleMessage =
|
|
201
|
+
_customTitleMessage = _messages.messages.check_internet_connection;
|
|
202
202
|
} else if (!metadata) {
|
|
203
203
|
_iconMessage = /*#__PURE__*/_react.default.createElement(_iconMessage2.FailedToLoad, null);
|
|
204
204
|
_traceTooltipVariant = 'failed-to-load';
|
|
@@ -12,7 +12,9 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _mediaClient = require("@atlaskit/media-client");
|
|
15
|
-
var
|
|
15
|
+
var _customMediaPlayer = require("@atlaskit/media-ui/customMediaPlayer");
|
|
16
|
+
var _mediaPlayer = require("@atlaskit/media-ui/mediaPlayer");
|
|
17
|
+
var _inactivityDetector = require("@atlaskit/media-ui/inactivityDetector");
|
|
16
18
|
var _utils = require("../utils");
|
|
17
19
|
var _cardLoading = require("../utils/lightCards/cardLoading");
|
|
18
20
|
var _progressBar = require("./ui/progressBar/progressBar");
|
|
@@ -208,8 +210,8 @@ var InlinePlayerBase = exports.InlinePlayerBase = function InlinePlayerBase(_ref
|
|
|
208
210
|
onClick: onClick,
|
|
209
211
|
innerRef: forwardRef || undefined,
|
|
210
212
|
dimensions: dimensions
|
|
211
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
212
|
-
return (0, _fg.fg)('platform_media_video_captions') ? /*#__PURE__*/_react.default.createElement(
|
|
213
|
+
}, /*#__PURE__*/_react.default.createElement(_inactivityDetector.InactivityDetector, null, function (checkMouseMovement, controlsAreVisible) {
|
|
214
|
+
return (0, _fg.fg)('platform_media_video_captions') ? /*#__PURE__*/_react.default.createElement(_mediaPlayer.MediaPlayer, {
|
|
213
215
|
identifier: identifier,
|
|
214
216
|
type: "video",
|
|
215
217
|
src: fileSrc,
|
|
@@ -235,7 +237,7 @@ var InlinePlayerBase = exports.InlinePlayerBase = function InlinePlayerBase(_ref
|
|
|
235
237
|
poster: cardPreview === null || cardPreview === void 0 ? void 0 : cardPreview.dataURI,
|
|
236
238
|
videoControlsWrapperRef: videoControlsWrapperRef,
|
|
237
239
|
areControlsVisible: controlsAreVisible
|
|
238
|
-
}) : /*#__PURE__*/_react.default.createElement(
|
|
240
|
+
}) : /*#__PURE__*/_react.default.createElement(_customMediaPlayer.CustomMediaPlayer, {
|
|
239
241
|
type: "video",
|
|
240
242
|
src: fileSrc,
|
|
241
243
|
onFullscreenChange: onFullscreenChange,
|
|
@@ -87,7 +87,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
|
|
|
87
87
|
}(_react.default.Component);
|
|
88
88
|
(0, _defineProperty2.default)(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
|
|
89
89
|
var packageName = "@atlaskit/media-card";
|
|
90
|
-
var packageVersion = "81.8.
|
|
90
|
+
var packageVersion = "81.8.3";
|
|
91
91
|
|
|
92
92
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
93
93
|
var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.cardActionButtonStyles = exports.CardActionIconButtonVariant = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var
|
|
8
|
+
var _mixins = require("@atlaskit/media-ui/mixins");
|
|
9
|
+
var _size = require("@atlaskit/media-ui/size");
|
|
9
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
var CardActionIconButtonVariant = exports.CardActionIconButtonVariant = /*#__PURE__*/function (CardActionIconButtonVariant) {
|
|
11
12
|
CardActionIconButtonVariant["default"] = "default";
|
|
@@ -22,11 +23,11 @@ var cardActionButtonStyles = exports.cardActionButtonStyles = function cardActio
|
|
|
22
23
|
border: 'none'
|
|
23
24
|
},
|
|
24
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
|
-
|
|
26
|
+
_mixins.center,
|
|
26
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
-
|
|
28
|
+
_mixins.borderRadius,
|
|
28
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
|
-
(0,
|
|
30
|
+
(0, _size.size)(26), {
|
|
30
31
|
color: "var(--ds-icon, #292A2E)",
|
|
31
32
|
'&:hover': {
|
|
32
33
|
cursor: 'pointer'
|
|
@@ -8,7 +8,7 @@ exports.PreviewUnavailable = exports.IconMessage = exports.FailedToUpload = expo
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _iconMessageWrapper = require("./iconMessageWrapper");
|
|
11
|
-
var
|
|
11
|
+
var _messages = require("@atlaskit/media-ui/messages");
|
|
12
12
|
var _reactIntl = require("react-intl");
|
|
13
13
|
var IconMessage = exports.IconMessage = function IconMessage(_ref) {
|
|
14
14
|
var messageDescriptor = _ref.messageDescriptor,
|
|
@@ -21,27 +21,27 @@ var IconMessage = exports.IconMessage = function IconMessage(_ref) {
|
|
|
21
21
|
var CreatingPreview = exports.CreatingPreview = function CreatingPreview(_ref2) {
|
|
22
22
|
var disableAnimation = _ref2.disableAnimation;
|
|
23
23
|
return /*#__PURE__*/_react.default.createElement(IconMessage, {
|
|
24
|
-
messageDescriptor:
|
|
24
|
+
messageDescriptor: _messages.messages.creating_preview,
|
|
25
25
|
animated: !disableAnimation
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
var PreviewUnavailable = exports.PreviewUnavailable = function PreviewUnavailable(props) {
|
|
29
29
|
return /*#__PURE__*/_react.default.createElement(IconMessage, (0, _extends2.default)({}, props, {
|
|
30
|
-
messageDescriptor:
|
|
30
|
+
messageDescriptor: _messages.messages.preview_unavailable
|
|
31
31
|
}));
|
|
32
32
|
};
|
|
33
33
|
var FailedToLoad = exports.FailedToLoad = function FailedToLoad(props) {
|
|
34
34
|
return /*#__PURE__*/_react.default.createElement(IconMessage, (0, _extends2.default)({}, props, {
|
|
35
|
-
messageDescriptor:
|
|
35
|
+
messageDescriptor: _messages.messages.failed_to_load
|
|
36
36
|
}));
|
|
37
37
|
};
|
|
38
38
|
var FailedToUpload = exports.FailedToUpload = function FailedToUpload(props) {
|
|
39
39
|
return /*#__PURE__*/_react.default.createElement(IconMessage, (0, _extends2.default)({}, props, {
|
|
40
|
-
messageDescriptor:
|
|
40
|
+
messageDescriptor: _messages.messages.failed_to_upload
|
|
41
41
|
}));
|
|
42
42
|
};
|
|
43
43
|
var CheckInternetConnection = exports.CheckInternetConnection = function CheckInternetConnection(props) {
|
|
44
44
|
return /*#__PURE__*/_react.default.createElement(IconMessage, (0, _extends2.default)({}, props, {
|
|
45
|
-
messageDescriptor:
|
|
45
|
+
messageDescriptor: _messages.messages.check_internet_connection
|
|
46
46
|
}));
|
|
47
47
|
};
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.ImageRenderer = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _mediaImage = require("@atlaskit/media-ui/mediaImage");
|
|
12
12
|
var _resizeModeToMediaImageProps = require("./resizeModeToMediaImageProps");
|
|
13
13
|
var _useCurrentValueRef = require("../../../utils/useCurrentValueRef");
|
|
14
14
|
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); }
|
|
@@ -36,7 +36,7 @@ var ImageRenderer = exports.ImageRenderer = function ImageRenderer(_ref) {
|
|
|
36
36
|
var onError = function onError() {
|
|
37
37
|
onImageError && cardPreview && onImageError(cardPreview);
|
|
38
38
|
};
|
|
39
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(_mediaImage.MediaImage, (0, _extends2.default)({
|
|
40
40
|
dataURI: cardPreview === null || cardPreview === void 0 ? void 0 : cardPreview.dataURI,
|
|
41
41
|
alt: alt,
|
|
42
42
|
previewOrientation: cardPreview === null || cardPreview === void 0 ? void 0 : cardPreview.orientation,
|
|
@@ -9,7 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _reactIntl = require("react-intl");
|
|
12
|
-
var
|
|
12
|
+
var _messages = require("@atlaskit/media-ui/messages");
|
|
13
13
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
14
14
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
15
15
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden/visually-hidden"));
|
|
@@ -22,10 +22,10 @@ var OpenMediaViewerButton = function OpenMediaViewerButton(_ref) {
|
|
|
22
22
|
return /*#__PURE__*/_react.default.createElement(_visuallyHidden.default, null, /*#__PURE__*/_react.default.createElement(_compiled.Pressable, (0, _extends2.default)({
|
|
23
23
|
ref: innerRef
|
|
24
24
|
}, props, (0, _fg.fg)('create_modernization_ga_fixes_drop_2') ? {
|
|
25
|
-
'aria-label': intl.formatMessage(
|
|
25
|
+
'aria-label': intl.formatMessage(_messages.messages.open_file_in_viewer_aria_label, {
|
|
26
26
|
name: fileName
|
|
27
27
|
})
|
|
28
|
-
} : {}), intl.formatMessage(
|
|
28
|
+
} : {}), intl.formatMessage(_messages.messages.open_file_in_viewer, {
|
|
29
29
|
name: fileName
|
|
30
30
|
})));
|
|
31
31
|
};
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.generateResponsiveStyles = generateResponsiveStyles;
|
|
7
7
|
exports.styledBarStyles = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
|
-
var
|
|
9
|
+
var _mixins = require("@atlaskit/media-ui/mixins");
|
|
10
10
|
var _styles = require("../styles");
|
|
11
11
|
var _common = require("../common");
|
|
12
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -36,7 +36,7 @@ var getStyledBarStylesBasedOnProps = function getStyledBarStylesBasedOnProps(_re
|
|
|
36
36
|
breakpoint = _ref.breakpoint,
|
|
37
37
|
positionBottom = _ref.positionBottom,
|
|
38
38
|
showOnTop = _ref.showOnTop;
|
|
39
|
-
return "\n".concat(
|
|
39
|
+
return "\n".concat(_mixins.borderRadius, "\noverflow: hidden;\nposition: absolute;\nwidth: ").concat(width, "%;\nleft: ").concat(left, "%;\nbackground-color: ").concat((0, _styles.rgba)('#FFFFFF', 0.8), ";\nheight: ").concat(height + padding * 2, "px;\npadding: ").concat(padding, "px;\nbox-sizing: border-box;\n\n::before {\n content: '';\n width: ").concat(progress, "%;\n height: 100%;\n background-color: #44546F;\n ").concat(_mixins.borderRadius, "\n display: block;\n}\n").concat(generateResponsiveStyles(breakpoint, positionBottom, showOnTop), "\n");
|
|
40
40
|
};
|
|
41
41
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
42
42
|
|
|
@@ -11,13 +11,13 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _reactIntl = require("react-intl");
|
|
13
13
|
var _statusWarning = _interopRequireDefault(require("@atlaskit/icon/core/status-warning"));
|
|
14
|
-
var
|
|
14
|
+
var _messages = require("@atlaskit/media-ui/messages");
|
|
15
15
|
var _titleBoxComponents = require("./titleBoxComponents");
|
|
16
16
|
var errorMessageWrapperStyles = null;
|
|
17
17
|
var FailedTitleBox = exports.FailedTitleBox = function FailedTitleBox(_ref) {
|
|
18
18
|
var breakpoint = _ref.breakpoint,
|
|
19
19
|
_ref$customMessage = _ref.customMessage,
|
|
20
|
-
customMessage = _ref$customMessage === void 0 ?
|
|
20
|
+
customMessage = _ref$customMessage === void 0 ? _messages.messages.failed_to_load : _ref$customMessage;
|
|
21
21
|
return /*#__PURE__*/_react.default.createElement(_titleBoxComponents.TitleBoxWrapper, {
|
|
22
22
|
breakpoint: breakpoint
|
|
23
23
|
}, /*#__PURE__*/_react.default.createElement(_titleBoxComponents.ErrorMessageWrapper, null, /*#__PURE__*/_react.default.createElement(_statusWarning.default, {
|
|
@@ -8,7 +8,7 @@ exports.TitleBox = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactIntl = require("react-intl");
|
|
10
10
|
var _lockLocked = _interopRequireDefault(require("@atlaskit/icon/core/lock-locked"));
|
|
11
|
-
var
|
|
11
|
+
var _truncate = require("@atlaskit/media-ui/truncateText/truncate");
|
|
12
12
|
var _formatDate = require("@atlaskit/media-ui/formatDate");
|
|
13
13
|
var _titleBoxComponents = require("./titleBoxComponents");
|
|
14
14
|
var placeholderText = ' ';
|
|
@@ -29,7 +29,7 @@ var TitleBox = exports.TitleBox = (0, _reactIntl.injectIntl)(function (_ref) {
|
|
|
29
29
|
titleBoxBgColor: titleBoxBgColor
|
|
30
30
|
}, /*#__PURE__*/_react.default.createElement(_titleBoxComponents.TitleBoxHeader, {
|
|
31
31
|
hasIconOverlap: !!titleBoxIcon && !createdAt
|
|
32
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
32
|
+
}, /*#__PURE__*/_react.default.createElement(_truncate.Truncate, {
|
|
33
33
|
text: name !== null && name !== void 0 ? name : placeholderText
|
|
34
34
|
})), /*#__PURE__*/_react.default.createElement(_titleBoxComponents.TitleBoxFooter, {
|
|
35
35
|
hasIconOverlap: !!titleBoxIcon
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.wrapperStyles = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
|
-
var
|
|
10
|
+
var _mixins = require("@atlaskit/media-ui/mixins");
|
|
11
11
|
var _selection = require("@atlaskit/editor-shared-styles/selection");
|
|
12
12
|
var _styles = require("../styles");
|
|
13
13
|
var _styles2 = require("../blanket/styles");
|
|
@@ -24,6 +24,6 @@ var wrapperStyles = exports.wrapperStyles = function wrapperStyles(_ref) {
|
|
|
24
24
|
isTickBoxSelectable = _ref.isTickBoxSelectable,
|
|
25
25
|
shouldDisplayTooltip = _ref.shouldDisplayTooltip,
|
|
26
26
|
mediaCardCursor = _ref.mediaCardCursor;
|
|
27
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\tbox-sizing: border-box;\n\t* {\n\t\tbox-sizing: border-box;\n\t}\n\tposition: relative;\n\tfont-family: ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\n\t/* We use classnames from here exceptionally to be able to handle styles when the Card is on hover */\n ", "\n ", "\n &:hover .", " {\n\t\t", "\n\t}\n\t&:hover .", ", &:focus-within .", " {\n\t\t", "\n\t}\n\n\t/* Tooltip does not support percentage dimensions. We enforce them here.\n\t Guard skips top-layer elements (eg tooltip, modal); ':where()' keeps specificity unchanged. */\n\t", "\n\n\tbutton:focus + & {\n\t\toutline: solid 2px ", ";\n\t}\n"])), (0, _styles.transition)(), "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", (0, _styles.getWrapperDimensions)(dimensions, appearance), displayBackground && "background: ".concat("var(--ds-background-neutral, #0515240F)", ";"),
|
|
27
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\tbox-sizing: border-box;\n\t* {\n\t\tbox-sizing: border-box;\n\t}\n\tposition: relative;\n\tfont-family: ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\n\t/* We use classnames from here exceptionally to be able to handle styles when the Card is on hover */\n ", "\n ", "\n &:hover .", " {\n\t\t", "\n\t}\n\t&:hover .", ", &:focus-within .", " {\n\t\t", "\n\t}\n\n\t/* Tooltip does not support percentage dimensions. We enforce them here.\n\t Guard skips top-layer elements (eg tooltip, modal); ':where()' keeps specificity unchanged. */\n\t", "\n\n\tbutton:focus + & {\n\t\toutline: solid 2px ", ";\n\t}\n"])), (0, _styles.transition)(), "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", (0, _styles.getWrapperDimensions)(dimensions, appearance), displayBackground && "background: ".concat("var(--ds-background-neutral, #0515240F)", ";"), _mixins.borderRadius, (0, _styles.getCursorStyle)(mediaCardCursor), (0, _styles.getWrapperShadow)(disableOverlay, selected), (0, _styles.generateResponsiveStyles)(breakpoint), selected ? _selection.hideNativeBrowserTextSelectionStyles : '', (0, _styles.getClickablePlayButtonStyles)(isPlayButtonClickable), (0, _styles.getSelectableTickBoxStyles)(isTickBoxSelectable), _styles2.blanketClassName, _styles2.fixedBlanketStyles, _styles3.actionsBarClassName, _styles3.actionsBarClassName, _styles3.fixedActionBarStyles, shouldDisplayTooltip && "> div:not(:where([popover], dialog)) { width: 100%; height: 100%; }", "var(--ds-border-focused, #4688EC)");
|
|
28
28
|
};
|
|
29
29
|
wrapperStyles.displayName = 'NewFileExperienceWrapper';
|
|
@@ -16,7 +16,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
16
16
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
18
|
var _react = _interopRequireDefault(require("react"));
|
|
19
|
-
var
|
|
19
|
+
var _LoadingView = require("@atlaskit/media-ui/LoadingView");
|
|
20
20
|
var _AnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/AnalyticsContext"));
|
|
21
21
|
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 _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
22
22
|
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)); }
|
|
@@ -116,12 +116,12 @@ var MediaInlineCardLoader = exports.default = /*#__PURE__*/function (_React$Pure
|
|
|
116
116
|
ErrorBoundary = _this$state.ErrorBoundary;
|
|
117
117
|
var analyticsContext = {
|
|
118
118
|
packageVersion: "@atlaskit/media-card",
|
|
119
|
-
packageName: "81.8.
|
|
119
|
+
packageName: "81.8.3",
|
|
120
120
|
componentName: 'mediaInlineCard',
|
|
121
121
|
component: 'mediaInlineCard'
|
|
122
122
|
};
|
|
123
123
|
if (!MediaInlineCard || !ErrorBoundary) {
|
|
124
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
124
|
+
return /*#__PURE__*/_react.default.createElement(_LoadingView.MediaInlineCardLoadingView, {
|
|
125
125
|
message: ""
|
|
126
126
|
});
|
|
127
127
|
}
|
|
@@ -9,7 +9,10 @@ exports.MediaInlineCardInternal = exports.MediaInlineCard = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
11
11
|
var _mediaClient = require("@atlaskit/media-client");
|
|
12
|
-
var
|
|
12
|
+
var _ErroredView = require("@atlaskit/media-ui/ErroredView");
|
|
13
|
+
var _LoadedView = require("@atlaskit/media-ui/LoadedView");
|
|
14
|
+
var _LoadingView = require("@atlaskit/media-ui/LoadingView");
|
|
15
|
+
var _messages = require("@atlaskit/media-ui/messages");
|
|
13
16
|
var _formatDate = require("@atlaskit/media-ui/formatDate");
|
|
14
17
|
var _mimeTypeIcon = require("@atlaskit/media-ui/mime-type-icon");
|
|
15
18
|
var _mediaViewer = require("@atlaskit/media-viewer");
|
|
@@ -164,10 +167,10 @@ var MediaInlineCardInternal = exports.MediaInlineCardInternal = function MediaIn
|
|
|
164
167
|
}
|
|
165
168
|
}, [fileState, fallbackMediaNameFetcher]);
|
|
166
169
|
if (subscribeError) {
|
|
167
|
-
var errorMessage = (fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading' ?
|
|
170
|
+
var errorMessage = (fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading' ? _messages.messages.failed_to_upload : _messages.messages.couldnt_load_file;
|
|
168
171
|
var errorReason = (fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading' ? 'upload' : 'metadata-fetch';
|
|
169
172
|
fireFailedOperationalEvent(new _errors.MediaCardError(errorReason, subscribeError));
|
|
170
|
-
return renderContent( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(
|
|
173
|
+
return renderContent( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ErroredView.MediaInlineCardErroredView, {
|
|
171
174
|
innerRef: copyNodeRef,
|
|
172
175
|
message: (intl || defaultIntl).formatMessage(errorMessage),
|
|
173
176
|
isSelected: isSelected,
|
|
@@ -177,9 +180,9 @@ var MediaInlineCardInternal = exports.MediaInlineCardInternal = function MediaIn
|
|
|
177
180
|
if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'error') {
|
|
178
181
|
var error = new _errors.MediaCardError('error-file-state', (0, _mediaClient.toCommonMediaClientError)(fileState));
|
|
179
182
|
fireFailedOperationalEvent(error);
|
|
180
|
-
return renderContent( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(
|
|
183
|
+
return renderContent( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ErroredView.MediaInlineCardErroredView, {
|
|
181
184
|
innerRef: copyNodeRef,
|
|
182
|
-
message: (intl || defaultIntl).formatMessage(
|
|
185
|
+
message: (intl || defaultIntl).formatMessage(_messages.messages.couldnt_load_file),
|
|
183
186
|
isSelected: isSelected,
|
|
184
187
|
onClick: onMediaInlineCardClick
|
|
185
188
|
}), renderMediaViewer()));
|
|
@@ -189,9 +192,9 @@ var MediaInlineCardInternal = exports.MediaInlineCardInternal = function MediaIn
|
|
|
189
192
|
if (fileState && !fileState.name) {
|
|
190
193
|
if (fallbackMediaNameFetcher && !fallbackMediaNameFetchFailed && !fallbackMediaName && (0, _expValEquals.expValEquals)('platform_editor_media_name_fallback', 'isEnabled', true)) {
|
|
191
194
|
// Fetch not yet attempted or in flight — show loading
|
|
192
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
195
|
+
return /*#__PURE__*/_react.default.createElement(_LoadingView.MediaInlineCardLoadingView, {
|
|
193
196
|
innerRef: copyNodeRef,
|
|
194
|
-
message: (intl || defaultIntl).formatMessage(
|
|
197
|
+
message: (intl || defaultIntl).formatMessage(_messages.messages.loading_file),
|
|
195
198
|
isSelected: isSelected
|
|
196
199
|
});
|
|
197
200
|
}
|
|
@@ -201,25 +204,25 @@ var MediaInlineCardInternal = exports.MediaInlineCardInternal = function MediaIn
|
|
|
201
204
|
id: fileState.id
|
|
202
205
|
}));
|
|
203
206
|
fireFailedOperationalEvent(_error);
|
|
204
|
-
return renderContent( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(
|
|
207
|
+
return renderContent( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ErroredView.MediaInlineCardErroredView, {
|
|
205
208
|
innerRef: copyNodeRef,
|
|
206
|
-
message: (intl || defaultIntl).formatMessage(
|
|
209
|
+
message: (intl || defaultIntl).formatMessage(_messages.messages.couldnt_load_file),
|
|
207
210
|
isSelected: isSelected,
|
|
208
211
|
onClick: onMediaInlineCardClick
|
|
209
212
|
}), renderMediaViewer()));
|
|
210
213
|
}
|
|
211
214
|
}
|
|
212
215
|
if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading') {
|
|
213
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
216
|
+
return /*#__PURE__*/_react.default.createElement(_LoadingView.MediaInlineCardLoadingView, {
|
|
214
217
|
innerRef: copyNodeRef,
|
|
215
218
|
message: fileState.name,
|
|
216
219
|
isSelected: isSelected
|
|
217
220
|
});
|
|
218
221
|
}
|
|
219
222
|
if (!fileState) {
|
|
220
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
223
|
+
return /*#__PURE__*/_react.default.createElement(_LoadingView.MediaInlineCardLoadingView, {
|
|
221
224
|
innerRef: copyNodeRef,
|
|
222
|
-
message: (intl || defaultIntl).formatMessage(
|
|
225
|
+
message: (intl || defaultIntl).formatMessage(_messages.messages.loading_file),
|
|
223
226
|
isSelected: isSelected
|
|
224
227
|
});
|
|
225
228
|
}
|
|
@@ -256,7 +259,7 @@ var MediaInlineCardInternal = exports.MediaInlineCardInternal = function MediaIn
|
|
|
256
259
|
position: "bottom",
|
|
257
260
|
content: formattedDate,
|
|
258
261
|
tag: "span"
|
|
259
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
262
|
+
}, /*#__PURE__*/_react.default.createElement(_LoadedView.MediaInlineCardLoadedView, {
|
|
260
263
|
innerRef: copyNodeRef,
|
|
261
264
|
icon: linkIcon,
|
|
262
265
|
title: name,
|
|
@@ -264,7 +267,7 @@ var MediaInlineCardInternal = exports.MediaInlineCardInternal = function MediaIn
|
|
|
264
267
|
isSelected: isSelected
|
|
265
268
|
})), renderMediaViewer()));
|
|
266
269
|
} else {
|
|
267
|
-
return renderContent( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(
|
|
270
|
+
return renderContent( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_LoadedView.MediaInlineCardLoadedView, {
|
|
268
271
|
innerRef: copyNodeRef,
|
|
269
272
|
icon: linkIcon,
|
|
270
273
|
title: name,
|
|
@@ -10,7 +10,7 @@ exports.getRenderSucceededEventPayload = exports.getRenderFailedFileStatusPayloa
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _mediaClient = require("@atlaskit/media-client");
|
|
12
12
|
var _analytics = require("@atlaskit/media-common/analytics");
|
|
13
|
-
var
|
|
13
|
+
var _createAndFireEvents = _interopRequireDefault(require("@atlaskit/analytics-next/createAndFireEvents"));
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
16
|
var getFileAttributes = exports.getFileAttributes = function getFileAttributes(metadata, fileStatus) {
|
|
@@ -274,5 +274,5 @@ function fireMediaCardEvent(payload, createAnalyticsEvent) {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
var createAndFireMediaCardEvent = exports.createAndFireMediaCardEvent = function createAndFireMediaCardEvent(payload) {
|
|
277
|
-
return (0,
|
|
277
|
+
return (0, _createAndFireEvents.default)(_analytics.ANALYTICS_MEDIA_CHANNEL)((0, _analytics.sanitiseAnalyticsPayload)(payload));
|
|
278
278
|
};
|
|
@@ -5,20 +5,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.wrapperStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var
|
|
8
|
+
var _mixins = require("@atlaskit/media-ui/mixins");
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
|
|
11
11
|
var wrapperStyles = exports.wrapperStyles = function wrapperStyles(_ref) {
|
|
12
12
|
var dimensions = _ref.dimensions;
|
|
13
13
|
return (0, _react.css)(
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
|
-
|
|
15
|
+
_mixins.center, {
|
|
16
16
|
position: 'relative',
|
|
17
17
|
background: "var(--ds-surface-sunken, #F8F8F8)",
|
|
18
18
|
color: "var(--ds-icon, #292A2E)"
|
|
19
19
|
},
|
|
20
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
|
-
|
|
21
|
+
_mixins.borderRadius, {
|
|
22
22
|
maxHeight: '100%',
|
|
23
23
|
maxWidth: '100%',
|
|
24
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -22,7 +22,7 @@ var _globalScope = require("./globalScope/globalScope");
|
|
|
22
22
|
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; }
|
|
23
23
|
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; }
|
|
24
24
|
var packageName = "@atlaskit/media-card";
|
|
25
|
-
var packageVersion = "81.8.
|
|
25
|
+
var packageVersion = "81.8.3";
|
|
26
26
|
var SAMPLE_RATE = 0.05;
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import DownloadIcon from '@atlaskit/icon/core/download';
|
|
3
|
-
import { messages } from '@atlaskit/media-ui';
|
|
3
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
4
4
|
export function attachDetailsToActions(actions, details) {
|
|
5
5
|
return actions.map(action => ({
|
|
6
6
|
...action,
|
package/dist/es2019/card/card.js
CHANGED
|
@@ -9,7 +9,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
|
|
|
9
9
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
10
10
|
import UFOLabel from '@atlaskit/react-ufo/label';
|
|
11
11
|
const packageName = "@atlaskit/media-card";
|
|
12
|
-
const packageVersion = "81.8.
|
|
12
|
+
const packageVersion = "81.8.3";
|
|
13
13
|
export const CardBase = ({
|
|
14
14
|
identifier,
|
|
15
15
|
...otherProps
|
|
@@ -6,7 +6,7 @@ import { MimeTypeIcon } from '@atlaskit/media-ui/mime-type-icon';
|
|
|
6
6
|
import SpinnerIcon from '@atlaskit/spinner/spinner';
|
|
7
7
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
8
8
|
import { useMergeRefs } from 'use-callback-ref';
|
|
9
|
-
import { messages } from '@atlaskit/media-ui';
|
|
9
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
10
10
|
import { createAndFireMediaCardEvent } from '../utils/analytics';
|
|
11
11
|
import { ImageRenderer } from './ui/imageRenderer';
|
|
12
12
|
import { TitleBox } from './ui/titleBox/titleBox';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useRef, useState, useEffect, useCallback } from 'react';
|
|
3
3
|
import { globalMediaEventEmitter } from '@atlaskit/media-client';
|
|
4
|
-
import { CustomMediaPlayer
|
|
4
|
+
import { CustomMediaPlayer } from '@atlaskit/media-ui/customMediaPlayer';
|
|
5
|
+
import { MediaPlayer } from '@atlaskit/media-ui/mediaPlayer';
|
|
6
|
+
import { InactivityDetector } from '@atlaskit/media-ui/inactivityDetector';
|
|
5
7
|
import { defaultImageCardDimensions } from '../utils';
|
|
6
8
|
import { CardLoading } from '../utils/lightCards/cardLoading';
|
|
7
9
|
import { ProgressBar } from './ui/progressBar/progressBar';
|
|
@@ -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 = "81.8.
|
|
69
|
+
const packageVersion = "81.8.3";
|
|
70
70
|
|
|
71
71
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
72
72
|
const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { borderRadius,
|
|
3
|
+
import { borderRadius, center } from '@atlaskit/media-ui/mixins';
|
|
4
|
+
import { size } from '@atlaskit/media-ui/size';
|
|
4
5
|
export let CardActionIconButtonVariant = /*#__PURE__*/function (CardActionIconButtonVariant) {
|
|
5
6
|
CardActionIconButtonVariant["default"] = "default";
|
|
6
7
|
CardActionIconButtonVariant["filled"] = "filled";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IconMessageWrapper } from './iconMessageWrapper';
|
|
4
|
-
import { messages } from '@atlaskit/media-ui';
|
|
4
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
export const IconMessage = ({
|
|
7
7
|
messageDescriptor,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
|
-
import { MediaImage } from '@atlaskit/media-ui';
|
|
3
|
+
import { MediaImage } from '@atlaskit/media-ui/mediaImage';
|
|
4
4
|
import { resizeModeToMediaImageProps } from './resizeModeToMediaImageProps';
|
|
5
5
|
import { useCurrentValueRef } from '../../../utils/useCurrentValueRef';
|
|
6
6
|
export const ImageRenderer = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { injectIntl, IntlProvider, useIntl } from 'react-intl';
|
|
4
|
-
import { messages } from '@atlaskit/media-ui';
|
|
4
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
7
7
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { borderRadius } from '@atlaskit/media-ui';
|
|
3
|
+
import { borderRadius } from '@atlaskit/media-ui/mixins';
|
|
4
4
|
import { rgba } from '../styles';
|
|
5
5
|
import { Breakpoint, getTitleBoxHeight, responsiveSettings } from '../common';
|
|
6
6
|
const height = 3;
|
|
@@ -4,7 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import EditorWarningIcon from '@atlaskit/icon/core/status-warning';
|
|
7
|
-
import { messages } from '@atlaskit/media-ui';
|
|
7
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
8
8
|
import { ErrorMessageWrapper, TitleBoxWrapper } from './titleBoxComponents';
|
|
9
9
|
const errorMessageWrapperStyles = null;
|
|
10
10
|
export const FailedTitleBox = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { injectIntl } from 'react-intl';
|
|
3
3
|
import LockFilledIcon from '@atlaskit/icon/core/lock-locked';
|
|
4
|
-
import { Truncate } from '@atlaskit/media-ui/truncateText';
|
|
4
|
+
import { Truncate } from '@atlaskit/media-ui/truncateText/truncate';
|
|
5
5
|
import { formatDate } from '@atlaskit/media-ui/formatDate';
|
|
6
6
|
import { TitleBoxWrapper, TitleBoxFooter, TitleBoxHeader, TitleBoxIcon } from './titleBoxComponents';
|
|
7
7
|
const placeholderText = ' ';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { borderRadius } from '@atlaskit/media-ui';
|
|
3
|
+
import { borderRadius } from '@atlaskit/media-ui/mixins';
|
|
4
4
|
import { hideNativeBrowserTextSelectionStyles } from '@atlaskit/editor-shared-styles/selection';
|
|
5
5
|
import { transition } from '../styles';
|
|
6
6
|
import { fixedBlanketStyles, blanketClassName } from '../blanket/styles';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { MediaInlineCardLoadingView } from '@atlaskit/media-ui';
|
|
3
|
+
import { MediaInlineCardLoadingView } from '@atlaskit/media-ui/LoadingView';
|
|
4
4
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
5
5
|
export default class MediaInlineCardLoader extends React.PureComponent {
|
|
6
6
|
constructor(...args) {
|
|
@@ -37,7 +37,7 @@ export default class MediaInlineCardLoader extends React.PureComponent {
|
|
|
37
37
|
} = this.state;
|
|
38
38
|
const analyticsContext = {
|
|
39
39
|
packageVersion: "@atlaskit/media-card",
|
|
40
|
-
packageName: "81.8.
|
|
40
|
+
packageName: "81.8.3",
|
|
41
41
|
componentName: 'mediaInlineCard',
|
|
42
42
|
component: 'mediaInlineCard'
|
|
43
43
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
2
2
|
import { FileFetcherError, toCommonMediaClientError } from '@atlaskit/media-client';
|
|
3
|
-
import { MediaInlineCardErroredView
|
|
3
|
+
import { MediaInlineCardErroredView } from '@atlaskit/media-ui/ErroredView';
|
|
4
|
+
import { MediaInlineCardLoadedView } from '@atlaskit/media-ui/LoadedView';
|
|
5
|
+
import { MediaInlineCardLoadingView } from '@atlaskit/media-ui/LoadingView';
|
|
6
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
4
7
|
import { formatDate } from '@atlaskit/media-ui/formatDate';
|
|
5
8
|
import { MimeTypeIcon } from '@atlaskit/media-ui/mime-type-icon';
|
|
6
9
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isCommonMediaClientError } from '@atlaskit/media-client';
|
|
2
2
|
import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
|
|
3
|
-
import
|
|
3
|
+
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
4
4
|
export const getFileAttributes = (metadata, fileStatus) => ({
|
|
5
5
|
fileMediatype: metadata.mediaType,
|
|
6
6
|
fileMimetype: metadata.mimeType,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { center, borderRadius } from '@atlaskit/media-ui';
|
|
3
|
+
import { center, borderRadius } from '@atlaskit/media-ui/mixins';
|
|
4
4
|
export const wrapperStyles = ({
|
|
5
5
|
dimensions
|
|
6
6
|
}) => css(
|
|
@@ -11,7 +11,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
|
11
11
|
import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
|
|
12
12
|
import { getMediaGlobalScope } from './globalScope/globalScope';
|
|
13
13
|
const packageName = "@atlaskit/media-card";
|
|
14
|
-
const packageVersion = "81.8.
|
|
14
|
+
const packageVersion = "81.8.3";
|
|
15
15
|
const SAMPLE_RATE = 0.05;
|
|
16
16
|
|
|
17
17
|
/**
|
package/dist/esm/card/actions.js
CHANGED
|
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import DownloadIcon from '@atlaskit/icon/core/download';
|
|
6
|
-
import { messages } from '@atlaskit/media-ui';
|
|
6
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
7
7
|
export function attachDetailsToActions(actions, details) {
|
|
8
8
|
return actions.map(function (action) {
|
|
9
9
|
return _objectSpread(_objectSpread({}, action), {}, {
|
package/dist/esm/card/card.js
CHANGED
|
@@ -11,7 +11,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
|
|
|
11
11
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
12
12
|
import UFOLabel from '@atlaskit/react-ufo/label';
|
|
13
13
|
var packageName = "@atlaskit/media-card";
|
|
14
|
-
var packageVersion = "81.8.
|
|
14
|
+
var packageVersion = "81.8.3";
|
|
15
15
|
export var CardBase = function CardBase(_ref) {
|
|
16
16
|
var identifier = _ref.identifier,
|
|
17
17
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -10,7 +10,7 @@ import { MimeTypeIcon } from '@atlaskit/media-ui/mime-type-icon';
|
|
|
10
10
|
import SpinnerIcon from '@atlaskit/spinner/spinner';
|
|
11
11
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
12
12
|
import { useMergeRefs } from 'use-callback-ref';
|
|
13
|
-
import { messages } from '@atlaskit/media-ui';
|
|
13
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
14
14
|
import { createAndFireMediaCardEvent } from '../utils/analytics';
|
|
15
15
|
import { ImageRenderer } from './ui/imageRenderer';
|
|
16
16
|
import { TitleBox } from './ui/titleBox/titleBox';
|
|
@@ -4,7 +4,9 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
import React, { useRef, useState, useEffect, useCallback } from 'react';
|
|
6
6
|
import { globalMediaEventEmitter } from '@atlaskit/media-client';
|
|
7
|
-
import { CustomMediaPlayer
|
|
7
|
+
import { CustomMediaPlayer } from '@atlaskit/media-ui/customMediaPlayer';
|
|
8
|
+
import { MediaPlayer } from '@atlaskit/media-ui/mediaPlayer';
|
|
9
|
+
import { InactivityDetector } from '@atlaskit/media-ui/inactivityDetector';
|
|
8
10
|
import { defaultImageCardDimensions } from '../utils';
|
|
9
11
|
import { CardLoading } from '../utils/lightCards/cardLoading';
|
|
10
12
|
import { ProgressBar } from './ui/progressBar/progressBar';
|
|
@@ -80,7 +80,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
|
|
|
80
80
|
}(React.Component);
|
|
81
81
|
_defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
|
|
82
82
|
var packageName = "@atlaskit/media-card";
|
|
83
|
-
var packageVersion = "81.8.
|
|
83
|
+
var packageVersion = "81.8.3";
|
|
84
84
|
|
|
85
85
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
86
86
|
var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { borderRadius,
|
|
3
|
+
import { borderRadius, center } from '@atlaskit/media-ui/mixins';
|
|
4
|
+
import { size } from '@atlaskit/media-ui/size';
|
|
4
5
|
export var CardActionIconButtonVariant = /*#__PURE__*/function (CardActionIconButtonVariant) {
|
|
5
6
|
CardActionIconButtonVariant["default"] = "default";
|
|
6
7
|
CardActionIconButtonVariant["filled"] = "filled";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IconMessageWrapper } from './iconMessageWrapper';
|
|
4
|
-
import { messages } from '@atlaskit/media-ui';
|
|
4
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
export var IconMessage = function IconMessage(_ref) {
|
|
7
7
|
var messageDescriptor = _ref.messageDescriptor,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
|
-
import { MediaImage } from '@atlaskit/media-ui';
|
|
3
|
+
import { MediaImage } from '@atlaskit/media-ui/mediaImage';
|
|
4
4
|
import { resizeModeToMediaImageProps } from './resizeModeToMediaImageProps';
|
|
5
5
|
import { useCurrentValueRef } from '../../../utils/useCurrentValueRef';
|
|
6
6
|
export var ImageRenderer = function ImageRenderer(_ref) {
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["fileName", "innerRef"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { injectIntl, IntlProvider, useIntl } from 'react-intl';
|
|
6
|
-
import { messages } from '@atlaskit/media-ui';
|
|
6
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
9
9
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { borderRadius } from '@atlaskit/media-ui';
|
|
3
|
+
import { borderRadius } from '@atlaskit/media-ui/mixins';
|
|
4
4
|
import { rgba } from '../styles';
|
|
5
5
|
import { Breakpoint, getTitleBoxHeight, responsiveSettings } from '../common';
|
|
6
6
|
var height = 3;
|
|
@@ -4,7 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import EditorWarningIcon from '@atlaskit/icon/core/status-warning';
|
|
7
|
-
import { messages } from '@atlaskit/media-ui';
|
|
7
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
8
8
|
import { ErrorMessageWrapper, TitleBoxWrapper } from './titleBoxComponents';
|
|
9
9
|
var errorMessageWrapperStyles = null;
|
|
10
10
|
export var FailedTitleBox = function FailedTitleBox(_ref) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { injectIntl } from 'react-intl';
|
|
3
3
|
import LockFilledIcon from '@atlaskit/icon/core/lock-locked';
|
|
4
|
-
import { Truncate } from '@atlaskit/media-ui/truncateText';
|
|
4
|
+
import { Truncate } from '@atlaskit/media-ui/truncateText/truncate';
|
|
5
5
|
import { formatDate } from '@atlaskit/media-ui/formatDate';
|
|
6
6
|
import { TitleBoxWrapper, TitleBoxFooter, TitleBoxHeader, TitleBoxIcon } from './titleBoxComponents';
|
|
7
7
|
var placeholderText = ' ';
|
|
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
var _templateObject;
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
|
-
import { borderRadius } from '@atlaskit/media-ui';
|
|
5
|
+
import { borderRadius } from '@atlaskit/media-ui/mixins';
|
|
6
6
|
import { hideNativeBrowserTextSelectionStyles } from '@atlaskit/editor-shared-styles/selection';
|
|
7
7
|
import { transition } from '../styles';
|
|
8
8
|
import { fixedBlanketStyles, blanketClassName } from '../blanket/styles';
|
|
@@ -10,7 +10,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import { MediaInlineCardLoadingView } from '@atlaskit/media-ui';
|
|
13
|
+
import { MediaInlineCardLoadingView } from '@atlaskit/media-ui/LoadingView';
|
|
14
14
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
15
15
|
var MediaInlineCardLoader = /*#__PURE__*/function (_React$PureComponent) {
|
|
16
16
|
function MediaInlineCardLoader() {
|
|
@@ -101,7 +101,7 @@ var MediaInlineCardLoader = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
101
101
|
ErrorBoundary = _this$state.ErrorBoundary;
|
|
102
102
|
var analyticsContext = {
|
|
103
103
|
packageVersion: "@atlaskit/media-card",
|
|
104
|
-
packageName: "81.8.
|
|
104
|
+
packageName: "81.8.3",
|
|
105
105
|
componentName: 'mediaInlineCard',
|
|
106
106
|
component: 'mediaInlineCard'
|
|
107
107
|
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
3
3
|
import { FileFetcherError, toCommonMediaClientError } from '@atlaskit/media-client';
|
|
4
|
-
import { MediaInlineCardErroredView
|
|
4
|
+
import { MediaInlineCardErroredView } from '@atlaskit/media-ui/ErroredView';
|
|
5
|
+
import { MediaInlineCardLoadedView } from '@atlaskit/media-ui/LoadedView';
|
|
6
|
+
import { MediaInlineCardLoadingView } from '@atlaskit/media-ui/LoadingView';
|
|
7
|
+
import { messages } from '@atlaskit/media-ui/messages';
|
|
5
8
|
import { formatDate } from '@atlaskit/media-ui/formatDate';
|
|
6
9
|
import { MimeTypeIcon } from '@atlaskit/media-ui/mime-type-icon';
|
|
7
10
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
4
|
import { isCommonMediaClientError } from '@atlaskit/media-client';
|
|
5
5
|
import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
|
|
6
|
-
import
|
|
6
|
+
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
7
7
|
export var getFileAttributes = function getFileAttributes(metadata, fileStatus) {
|
|
8
8
|
return {
|
|
9
9
|
fileMediatype: metadata.mediaType,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { center, borderRadius } from '@atlaskit/media-ui';
|
|
3
|
+
import { center, borderRadius } from '@atlaskit/media-ui/mixins';
|
|
4
4
|
export var wrapperStyles = function wrapperStyles(_ref) {
|
|
5
5
|
var dimensions = _ref.dimensions;
|
|
6
6
|
return css(
|
|
@@ -15,7 +15,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
|
15
15
|
import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
|
|
16
16
|
import { getMediaGlobalScope } from './globalScope/globalScope';
|
|
17
17
|
var packageName = "@atlaskit/media-card";
|
|
18
|
-
var packageVersion = "81.8.
|
|
18
|
+
var packageVersion = "81.8.3";
|
|
19
19
|
var SAMPLE_RATE = 0.05;
|
|
20
20
|
|
|
21
21
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "81.8.
|
|
3
|
+
"version": "81.8.4",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atlaskit/analytics-next": "^12.
|
|
33
|
+
"@atlaskit/analytics-next": "^12.4.0",
|
|
34
34
|
"@atlaskit/dropdown-menu": "^18.2.0",
|
|
35
35
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
36
36
|
"@atlaskit/icon": "^37.5.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/media-client": "^37.5.0",
|
|
40
40
|
"@atlaskit/media-client-react": "^6.2.0",
|
|
41
41
|
"@atlaskit/media-common": "^14.5.0",
|
|
42
|
-
"@atlaskit/media-file-preview": "^1.
|
|
42
|
+
"@atlaskit/media-file-preview": "^1.3.0",
|
|
43
43
|
"@atlaskit/media-state": "^3.1.0",
|
|
44
44
|
"@atlaskit/media-svg": "^3.2.0",
|
|
45
45
|
"@atlaskit/media-ui": "^30.13.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/section-message": "^10.1.0",
|
|
53
53
|
"@atlaskit/spinner": "^20.3.0",
|
|
54
54
|
"@atlaskit/theme": "^28.1.0",
|
|
55
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
55
|
+
"@atlaskit/tmp-editor-statsig": "^163.0.0",
|
|
56
56
|
"@atlaskit/tokens": "^16.8.0",
|
|
57
57
|
"@atlaskit/tooltip": "^24.2.0",
|
|
58
58
|
"@atlaskit/ufo": "^1.0.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@atlaskit/media-test-helpers": "^42.3.0",
|
|
87
87
|
"@atlaskit/radio": "^10.1.0",
|
|
88
88
|
"@atlaskit/range": "^12.1.0",
|
|
89
|
-
"@atlaskit/select": "^22.
|
|
89
|
+
"@atlaskit/select": "^22.10.0",
|
|
90
90
|
"@atlaskit/ssr": "workspace:^",
|
|
91
91
|
"@atlaskit/toggle": "^17.2.0",
|
|
92
92
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|