@atlaskit/media-card 79.2.0 → 79.2.1
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 +8 -0
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/inlinePlayerWrapper-emotion.js +1 -1
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/ui/actionsBar/actionsBarWrapper-emotion.js +1 -1
- package/dist/cjs/card/ui/openMediaViewerButton/openMediaViewerButton.js +2 -2
- package/dist/cjs/card/ui/unhandledErrorCard/unhandledErrorCard-emotion.js +1 -1
- package/dist/cjs/card/ui/wrapper/wrapper-compiled.js +1 -1
- package/dist/cjs/card/ui/wrapper/wrapper-emotion.js +1 -1
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/es2019/card/card.js +1 -1
- package/dist/es2019/card/inlinePlayerWrapper-emotion.js +1 -1
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/actionsBar/actionsBarWrapper-emotion.js +1 -1
- package/dist/es2019/card/ui/openMediaViewerButton/openMediaViewerButton.js +1 -1
- package/dist/es2019/card/ui/unhandledErrorCard/unhandledErrorCard-emotion.js +1 -1
- package/dist/es2019/card/ui/wrapper/wrapper-compiled.js +1 -1
- package/dist/es2019/card/ui/wrapper/wrapper-emotion.js +1 -1
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/card.js +1 -1
- package/dist/esm/card/inlinePlayerWrapper-emotion.js +1 -1
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/ui/actionsBar/actionsBarWrapper-emotion.js +1 -1
- package/dist/esm/card/ui/openMediaViewerButton/openMediaViewerButton.js +1 -1
- package/dist/esm/card/ui/unhandledErrorCard/unhandledErrorCard-emotion.js +1 -1
- package/dist/esm/card/ui/wrapper/wrapper-compiled.js +1 -1
- package/dist/esm/card/ui/wrapper/wrapper-emotion.js +1 -1
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/example-helpers/svg-helpers/toggle.tsx +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/media-card
|
|
2
2
|
|
|
3
|
+
## 79.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#146064](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/146064)
|
|
8
|
+
[`1467fbda1acd9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1467fbda1acd9) -
|
|
9
|
+
Fixing typo causing the font-size to not be correctly set for media with titlebar in compiled view
|
|
10
|
+
|
|
3
11
|
## 79.2.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/cjs/card/card.js
CHANGED
|
@@ -21,7 +21,7 @@ var _excluded = ["identifier"];
|
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
var packageName = "@atlaskit/media-card";
|
|
24
|
-
var packageVersion = "79.2.
|
|
24
|
+
var packageVersion = "79.2.1";
|
|
25
25
|
var CardBase = exports.CardBase = function CardBase(_ref) {
|
|
26
26
|
var identifier = _ref.identifier,
|
|
27
27
|
otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -22,7 +22,7 @@ var InlinePlayerWrapper = exports.InlinePlayerWrapper = function InlinePlayerWra
|
|
|
22
22
|
onClick = props.onClick,
|
|
23
23
|
innerRef = props.innerRef;
|
|
24
24
|
return (
|
|
25
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
25
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
26
26
|
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
27
27
|
id: "inlinePlayerWrapper",
|
|
28
28
|
"data-testid": testId
|
|
@@ -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 = "79.2.
|
|
90
|
+
var packageVersion = "79.2.1";
|
|
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)({
|
|
@@ -14,7 +14,7 @@ var _styles = require("./styles");
|
|
|
14
14
|
|
|
15
15
|
var ActionsBarWrapper = exports.ActionsBarWrapper = function ActionsBarWrapper(props) {
|
|
16
16
|
return (
|
|
17
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
17
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
18
18
|
(0, _react.jsx)("div", {
|
|
19
19
|
id: "actionsBarWrapper",
|
|
20
20
|
"data-testId": "actionsBarWrapper"
|
|
@@ -10,7 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
12
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
13
|
-
var
|
|
13
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
14
14
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
15
15
|
var _excluded = ["fileName", "innerRef"];
|
|
16
16
|
var OpenMediaViewerButton = function OpenMediaViewerButton(_ref) {
|
|
@@ -18,7 +18,7 @@ var OpenMediaViewerButton = function OpenMediaViewerButton(_ref) {
|
|
|
18
18
|
innerRef = _ref.innerRef,
|
|
19
19
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
20
20
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
21
|
-
return /*#__PURE__*/_react.default.createElement(_visuallyHidden.default, null, /*#__PURE__*/_react.default.createElement(
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_visuallyHidden.default, null, /*#__PURE__*/_react.default.createElement(_compiled.Pressable, (0, _extends2.default)({
|
|
22
22
|
ref: innerRef
|
|
23
23
|
}, props), intl.formatMessage(_mediaUi.messages.open_file_in_viewer, {
|
|
24
24
|
name: fileName
|
|
@@ -88,7 +88,7 @@ var UnhandledErrorCard = exports.UnhandledErrorCard = /*#__PURE__*/function (_Co
|
|
|
88
88
|
onClick = _this$props.onClick;
|
|
89
89
|
var isErrorHidden = !shouldShowText(getConvertedDimension(dimensions !== null && dimensions !== void 0 ? dimensions : _utils.defaultImageCardDimensions));
|
|
90
90
|
return (
|
|
91
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
91
|
+
// eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/design-system/consistent-css-prop-usage, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
92
92
|
(0, _react2.jsx)("div", {
|
|
93
93
|
css: wrapperStyles(dimensions),
|
|
94
94
|
onClick: onClick
|
|
@@ -50,7 +50,7 @@ var selectableTickboxStyle = null;
|
|
|
50
50
|
var tooltipStyle = null;
|
|
51
51
|
var getResponsiveStyles = function getResponsiveStyles(breakpoint) {
|
|
52
52
|
// dynamically setting the properties to avoid ratcheting build errors. These need to be removed however for the compiled transformation.
|
|
53
|
-
return breakpoint === 'small' ? (0, _defineProperty2.default)((0, _defineProperty2.default)({}, 'fontSize', '
|
|
53
|
+
return breakpoint === 'small' ? (0, _defineProperty2.default)((0, _defineProperty2.default)({}, 'fontSize', '11px'), 'lineHeight', '14px') : (0, _defineProperty2.default)((0, _defineProperty2.default)({}, 'fontSize', '14px'), 'lineHeight', '22px');
|
|
54
54
|
};
|
|
55
55
|
var Wrapper = exports.Wrapper = function Wrapper(props) {
|
|
56
56
|
var testId = props.testId,
|
|
@@ -32,7 +32,7 @@ var Wrapper = exports.Wrapper = function Wrapper(props) {
|
|
|
32
32
|
isTickBoxSelectable = props.isTickBoxSelectable,
|
|
33
33
|
shouldDisplayTooltip = props.shouldDisplayTooltip;
|
|
34
34
|
return (
|
|
35
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
35
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
36
36
|
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
37
37
|
id: "newFileExperienceWrapper"
|
|
38
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -117,7 +117,7 @@ var MediaInlineCardLoader = exports.default = /*#__PURE__*/function (_React$Pure
|
|
|
117
117
|
ErrorBoundary = _this$state.ErrorBoundary;
|
|
118
118
|
var analyticsContext = {
|
|
119
119
|
packageVersion: "@atlaskit/media-card",
|
|
120
|
-
packageName: "79.2.
|
|
120
|
+
packageName: "79.2.1",
|
|
121
121
|
componentName: 'mediaInlineCard',
|
|
122
122
|
component: 'mediaInlineCard'
|
|
123
123
|
};
|
|
@@ -15,7 +15,7 @@ var _mediaClient = require("@atlaskit/media-client");
|
|
|
15
15
|
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; }
|
|
16
16
|
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; }
|
|
17
17
|
var packageName = "@atlaskit/media-card";
|
|
18
|
-
var packageVersion = "79.2.
|
|
18
|
+
var packageVersion = "79.2.1";
|
|
19
19
|
var SAMPLE_RATE = 0.05;
|
|
20
20
|
var concurrentExperience;
|
|
21
21
|
var getExperience = function getExperience(id) {
|
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';
|
|
10
10
|
import UFOLabel from '@atlaskit/react-ufo/label';
|
|
11
11
|
const packageName = "@atlaskit/media-card";
|
|
12
|
-
const packageVersion = "79.2.
|
|
12
|
+
const packageVersion = "79.2.1";
|
|
13
13
|
export const CardBase = ({
|
|
14
14
|
identifier,
|
|
15
15
|
...otherProps
|
|
@@ -16,7 +16,7 @@ export const InlinePlayerWrapper = props => {
|
|
|
16
16
|
innerRef
|
|
17
17
|
} = props;
|
|
18
18
|
return (
|
|
19
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
19
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
20
20
|
jsx("div", _extends({
|
|
21
21
|
id: "inlinePlayerWrapper",
|
|
22
22
|
"data-testid": testId
|
|
@@ -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 = "79.2.
|
|
69
|
+
const packageVersion = "79.2.1";
|
|
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({
|
|
@@ -7,7 +7,7 @@ import { jsx } from '@emotion/react';
|
|
|
7
7
|
import { wrapperStyles, actionsBarClassName } from './styles';
|
|
8
8
|
export const ActionsBarWrapper = props => {
|
|
9
9
|
return (
|
|
10
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
10
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
11
11
|
jsx("div", {
|
|
12
12
|
id: "actionsBarWrapper",
|
|
13
13
|
"data-testId": "actionsBarWrapper"
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { injectIntl, IntlProvider, useIntl } from 'react-intl-next';
|
|
4
4
|
import { messages } from '@atlaskit/media-ui';
|
|
5
|
-
import { Pressable } from '@atlaskit/primitives';
|
|
5
|
+
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
6
6
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
7
7
|
const OpenMediaViewerButton = ({
|
|
8
8
|
fileName,
|
|
@@ -68,7 +68,7 @@ export class UnhandledErrorCard extends Component {
|
|
|
68
68
|
} = this.props;
|
|
69
69
|
const isErrorHidden = !shouldShowText(getConvertedDimension(dimensions !== null && dimensions !== void 0 ? dimensions : defaultImageCardDimensions));
|
|
70
70
|
return (
|
|
71
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
71
|
+
// eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/design-system/consistent-css-prop-usage, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
72
72
|
jsx("div", {
|
|
73
73
|
css: wrapperStyles(dimensions),
|
|
74
74
|
onClick: onClick
|
|
@@ -38,7 +38,7 @@ const tooltipStyle = null;
|
|
|
38
38
|
const getResponsiveStyles = breakpoint => {
|
|
39
39
|
// dynamically setting the properties to avoid ratcheting build errors. These need to be removed however for the compiled transformation.
|
|
40
40
|
return breakpoint === 'small' ? {
|
|
41
|
-
['fontSize']: '
|
|
41
|
+
['fontSize']: '11px',
|
|
42
42
|
['lineHeight']: '14px'
|
|
43
43
|
} : {
|
|
44
44
|
['fontSize']: '14px',
|
|
@@ -26,7 +26,7 @@ export const Wrapper = props => {
|
|
|
26
26
|
shouldDisplayTooltip
|
|
27
27
|
} = props;
|
|
28
28
|
return (
|
|
29
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
29
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
30
30
|
jsx("div", _extends({
|
|
31
31
|
id: "newFileExperienceWrapper"
|
|
32
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -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: "79.2.
|
|
40
|
+
packageName: "79.2.1",
|
|
41
41
|
componentName: 'mediaInlineCard',
|
|
42
42
|
component: 'mediaInlineCard'
|
|
43
43
|
};
|
|
@@ -5,7 +5,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
|
|
|
5
5
|
import { MediaCardError } from '../errors';
|
|
6
6
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
7
7
|
const packageName = "@atlaskit/media-card";
|
|
8
|
-
const packageVersion = "79.2.
|
|
8
|
+
const packageVersion = "79.2.1";
|
|
9
9
|
const SAMPLE_RATE = 0.05;
|
|
10
10
|
let concurrentExperience;
|
|
11
11
|
const getExperience = id => {
|
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';
|
|
12
12
|
import UFOLabel from '@atlaskit/react-ufo/label';
|
|
13
13
|
var packageName = "@atlaskit/media-card";
|
|
14
|
-
var packageVersion = "79.2.
|
|
14
|
+
var packageVersion = "79.2.1";
|
|
15
15
|
export var CardBase = function CardBase(_ref) {
|
|
16
16
|
var identifier = _ref.identifier,
|
|
17
17
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -14,7 +14,7 @@ export var InlinePlayerWrapper = function InlinePlayerWrapper(props) {
|
|
|
14
14
|
onClick = props.onClick,
|
|
15
15
|
innerRef = props.innerRef;
|
|
16
16
|
return (
|
|
17
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
17
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
18
18
|
jsx("div", _extends({
|
|
19
19
|
id: "inlinePlayerWrapper",
|
|
20
20
|
"data-testid": testId
|
|
@@ -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 = "79.2.
|
|
83
|
+
var packageVersion = "79.2.1";
|
|
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({
|
|
@@ -7,7 +7,7 @@ import { jsx } from '@emotion/react';
|
|
|
7
7
|
import { wrapperStyles, actionsBarClassName } from './styles';
|
|
8
8
|
export var ActionsBarWrapper = function ActionsBarWrapper(props) {
|
|
9
9
|
return (
|
|
10
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
10
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
11
11
|
jsx("div", {
|
|
12
12
|
id: "actionsBarWrapper",
|
|
13
13
|
"data-testId": "actionsBarWrapper"
|
|
@@ -4,7 +4,7 @@ var _excluded = ["fileName", "innerRef"];
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { injectIntl, IntlProvider, useIntl } from 'react-intl-next';
|
|
6
6
|
import { messages } from '@atlaskit/media-ui';
|
|
7
|
-
import { Pressable } from '@atlaskit/primitives';
|
|
7
|
+
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
9
9
|
var OpenMediaViewerButton = function OpenMediaViewerButton(_ref) {
|
|
10
10
|
var fileName = _ref.fileName,
|
|
@@ -83,7 +83,7 @@ export var UnhandledErrorCard = /*#__PURE__*/function (_Component) {
|
|
|
83
83
|
onClick = _this$props.onClick;
|
|
84
84
|
var isErrorHidden = !shouldShowText(getConvertedDimension(dimensions !== null && dimensions !== void 0 ? dimensions : defaultImageCardDimensions));
|
|
85
85
|
return (
|
|
86
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
86
|
+
// eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/design-system/consistent-css-prop-usage, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
87
87
|
jsx("div", {
|
|
88
88
|
css: wrapperStyles(dimensions),
|
|
89
89
|
onClick: onClick
|
|
@@ -40,7 +40,7 @@ var selectableTickboxStyle = null;
|
|
|
40
40
|
var tooltipStyle = null;
|
|
41
41
|
var getResponsiveStyles = function getResponsiveStyles(breakpoint) {
|
|
42
42
|
// dynamically setting the properties to avoid ratcheting build errors. These need to be removed however for the compiled transformation.
|
|
43
|
-
return breakpoint === 'small' ? _defineProperty(_defineProperty({}, 'fontSize', '
|
|
43
|
+
return breakpoint === 'small' ? _defineProperty(_defineProperty({}, 'fontSize', '11px'), 'lineHeight', '14px') : _defineProperty(_defineProperty({}, 'fontSize', '14px'), 'lineHeight', '22px');
|
|
44
44
|
};
|
|
45
45
|
export var Wrapper = function Wrapper(props) {
|
|
46
46
|
var testId = props.testId,
|
|
@@ -24,7 +24,7 @@ export var Wrapper = function Wrapper(props) {
|
|
|
24
24
|
isTickBoxSelectable = props.isTickBoxSelectable,
|
|
25
25
|
shouldDisplayTooltip = props.shouldDisplayTooltip;
|
|
26
26
|
return (
|
|
27
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
27
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
28
28
|
jsx("div", _extends({
|
|
29
29
|
id: "newFileExperienceWrapper"
|
|
30
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -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: "79.2.
|
|
104
|
+
packageName: "79.2.1",
|
|
105
105
|
componentName: 'mediaInlineCard',
|
|
106
106
|
component: 'mediaInlineCard'
|
|
107
107
|
};
|
|
@@ -8,7 +8,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
|
|
|
8
8
|
import { MediaCardError } from '../errors';
|
|
9
9
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
10
10
|
var packageName = "@atlaskit/media-card";
|
|
11
|
-
var packageVersion = "79.2.
|
|
11
|
+
var packageVersion = "79.2.1";
|
|
12
12
|
var SAMPLE_RATE = 0.05;
|
|
13
13
|
var concurrentExperience;
|
|
14
14
|
var getExperience = function getExperience(id) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "79.2.
|
|
3
|
+
"version": "79.2.1",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
41
|
-
"@atlaskit/dropdown-menu": "^14.
|
|
41
|
+
"@atlaskit/dropdown-menu": "^14.1.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
43
43
|
"@atlaskit/icon": "^25.6.0",
|
|
44
44
|
"@atlaskit/media-client": "^32.0.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/media-viewer": "^52.0.0",
|
|
51
51
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
52
52
|
"@atlaskit/primitives": "^14.4.0",
|
|
53
|
-
"@atlaskit/react-ufo": "^3.
|
|
53
|
+
"@atlaskit/react-ufo": "^3.6.0",
|
|
54
54
|
"@atlaskit/spinner": "^18.0.0",
|
|
55
55
|
"@atlaskit/theme": "^18.0.0",
|
|
56
56
|
"@atlaskit/tokens": "^4.8.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@atlaskit/media-state": "^1.5.0",
|
|
84
84
|
"@atlaskit/media-test-data": "^3.0.0",
|
|
85
85
|
"@atlaskit/media-test-helpers": "^35.0.0",
|
|
86
|
-
"@atlaskit/radio": "^8.
|
|
86
|
+
"@atlaskit/radio": "^8.1.0",
|
|
87
87
|
"@atlaskit/range": "^9.0.0",
|
|
88
88
|
"@atlaskit/ssr": "^0.4.0",
|
|
89
89
|
"@atlaskit/toggle": "^15.0.0",
|