@atlaskit/media-card 77.12.0 → 77.12.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 +19 -0
- package/compass.yml +6 -3
- package/dist/cjs/card/card.js +5 -5
- package/dist/cjs/card/cardView.js +1 -1
- package/dist/cjs/card/inlinePlayerWrapper.js +4 -1
- package/dist/cjs/card/inlinePlayerWrapperStyles.js +2 -2
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/ui/actionsBar/actionsBarWrapper.js +4 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton.js +5 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionsView.js +1 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/styles.js +14 -2
- package/dist/cjs/card/ui/actionsBar/styles.js +13 -8
- package/dist/cjs/card/ui/blanket/blanket.js +2 -0
- package/dist/cjs/card/ui/blanket/styles.js +8 -2
- package/dist/cjs/card/ui/iconMessage/iconMessageWrapper.js +3 -0
- package/dist/cjs/card/ui/iconWrapper/iconWrapper.js +4 -1
- package/dist/cjs/card/ui/iconWrapper/styles.js +3 -0
- package/dist/cjs/card/ui/openMediaViewerButton/openMediaViewerButton.js +9 -20
- package/dist/cjs/card/ui/playButton/playButtonBackground.js +2 -1
- package/dist/cjs/card/ui/playButton/playButtonWrapper.js +2 -1
- package/dist/cjs/card/ui/playButton/styles.js +7 -0
- package/dist/cjs/card/ui/progressBar/styledBar.js +4 -1
- package/dist/cjs/card/ui/progressBar/styles.js +3 -0
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper.js +14 -3
- package/dist/cjs/card/ui/titleBox/styles.js +24 -4
- package/dist/cjs/card/ui/titleBox/titleBoxComponents.js +30 -17
- package/dist/cjs/card/ui/unhandledErrorCard/index.js +22 -11
- package/dist/cjs/card/ui/wrapper/imageContainer.js +1 -0
- package/dist/cjs/card/ui/wrapper/styles.js +2 -2
- package/dist/cjs/card/ui/wrapper/wrapper.js +4 -1
- package/dist/cjs/card/v2/cardV2.js +1 -1
- package/dist/cjs/card/v2/cardViewV2.js +1 -1
- package/dist/cjs/card/v2/cardviews/cardViewWrapper.js +1 -0
- package/dist/cjs/card/v2/cardviews/errorCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/iconCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/imageCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/index.js +1 -0
- package/dist/cjs/card/v2/cardviews/loadingCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/processingCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/videoCardView.js +1 -0
- package/dist/cjs/card/v2/fileCard.js +1 -1
- package/dist/cjs/card/v2/svgView/svgView.js +1 -0
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +11 -11
- package/dist/cjs/utils/lightCards/errorIcon/index.js +10 -7
- package/dist/cjs/utils/lightCards/errorIcon/styles.js +3 -0
- package/dist/cjs/utils/lightCards/lightCardWrappers.js +9 -5
- package/dist/cjs/utils/lightCards/styles.js +10 -2
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/es2019/card/card.js +5 -5
- package/dist/es2019/card/cardView.js +1 -0
- package/dist/es2019/card/inlinePlayerWrapper.js +4 -1
- package/dist/es2019/card/inlinePlayerWrapperStyles.js +13 -12
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/actionsBar/actionsBarWrapper.js +4 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton.js +4 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionsView.js +1 -0
- package/dist/es2019/card/ui/actionsBar/cardActions/styles.js +14 -2
- package/dist/es2019/card/ui/actionsBar/styles.js +4 -1
- package/dist/es2019/card/ui/blanket/blanket.js +2 -0
- package/dist/es2019/card/ui/blanket/styles.js +7 -2
- package/dist/es2019/card/ui/iconMessage/iconMessageWrapper.js +2 -0
- package/dist/es2019/card/ui/iconWrapper/iconWrapper.js +4 -1
- package/dist/es2019/card/ui/iconWrapper/styles.js +2 -0
- package/dist/es2019/card/ui/openMediaViewerButton/openMediaViewerButton.js +7 -18
- package/dist/es2019/card/ui/playButton/playButtonBackground.js +2 -1
- package/dist/es2019/card/ui/playButton/playButtonWrapper.js +2 -1
- package/dist/es2019/card/ui/playButton/styles.js +6 -0
- package/dist/es2019/card/ui/progressBar/styledBar.js +4 -1
- package/dist/es2019/card/ui/progressBar/styles.js +2 -0
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper.js +13 -3
- package/dist/es2019/card/ui/titleBox/styles.js +23 -4
- package/dist/es2019/card/ui/titleBox/titleBoxComponents.js +30 -17
- package/dist/es2019/card/ui/unhandledErrorCard/index.js +22 -10
- package/dist/es2019/card/ui/wrapper/imageContainer.js +1 -0
- package/dist/es2019/card/ui/wrapper/styles.js +22 -21
- package/dist/es2019/card/ui/wrapper/wrapper.js +4 -1
- package/dist/es2019/card/v2/cardV2.js +1 -1
- package/dist/es2019/card/v2/cardViewV2.js +1 -0
- package/dist/es2019/card/v2/cardviews/cardViewWrapper.js +1 -0
- package/dist/es2019/card/v2/cardviews/errorCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/iconCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/imageCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/index.js +1 -0
- package/dist/es2019/card/v2/cardviews/loadingCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/processingCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/videoCardView.js +1 -0
- package/dist/es2019/card/v2/fileCard.js +1 -1
- package/dist/es2019/card/v2/svgView/svgView.js +1 -0
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +11 -11
- package/dist/es2019/utils/lightCards/errorIcon/index.js +10 -6
- package/dist/es2019/utils/lightCards/errorIcon/styles.js +3 -0
- package/dist/es2019/utils/lightCards/lightCardWrappers.js +9 -5
- package/dist/es2019/utils/lightCards/styles.js +9 -2
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/card.js +5 -5
- package/dist/esm/card/cardView.js +1 -0
- package/dist/esm/card/inlinePlayerWrapper.js +4 -1
- package/dist/esm/card/inlinePlayerWrapperStyles.js +2 -1
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/ui/actionsBar/actionsBarWrapper.js +4 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton.js +4 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionsView.js +1 -0
- package/dist/esm/card/ui/actionsBar/cardActions/styles.js +14 -2
- package/dist/esm/card/ui/actionsBar/styles.js +12 -8
- package/dist/esm/card/ui/blanket/blanket.js +2 -0
- package/dist/esm/card/ui/blanket/styles.js +7 -2
- package/dist/esm/card/ui/iconMessage/iconMessageWrapper.js +2 -0
- package/dist/esm/card/ui/iconWrapper/iconWrapper.js +4 -1
- package/dist/esm/card/ui/iconWrapper/styles.js +2 -0
- package/dist/esm/card/ui/openMediaViewerButton/openMediaViewerButton.js +7 -18
- package/dist/esm/card/ui/playButton/playButtonBackground.js +2 -1
- package/dist/esm/card/ui/playButton/playButtonWrapper.js +2 -1
- package/dist/esm/card/ui/playButton/styles.js +6 -0
- package/dist/esm/card/ui/progressBar/styledBar.js +4 -1
- package/dist/esm/card/ui/progressBar/styles.js +2 -0
- package/dist/esm/card/ui/tickBox/tickBoxWrapper.js +13 -3
- package/dist/esm/card/ui/titleBox/styles.js +23 -4
- package/dist/esm/card/ui/titleBox/titleBoxComponents.js +30 -17
- package/dist/esm/card/ui/unhandledErrorCard/index.js +22 -10
- package/dist/esm/card/ui/wrapper/imageContainer.js +1 -0
- package/dist/esm/card/ui/wrapper/styles.js +2 -1
- package/dist/esm/card/ui/wrapper/wrapper.js +4 -1
- package/dist/esm/card/v2/cardV2.js +1 -1
- package/dist/esm/card/v2/cardViewV2.js +1 -0
- package/dist/esm/card/v2/cardviews/cardViewWrapper.js +1 -0
- package/dist/esm/card/v2/cardviews/errorCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/iconCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/imageCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/index.js +1 -0
- package/dist/esm/card/v2/cardviews/loadingCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/processingCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/videoCardView.js +1 -0
- package/dist/esm/card/v2/fileCard.js +1 -1
- package/dist/esm/card/v2/svgView/svgView.js +1 -0
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +11 -11
- package/dist/esm/utils/lightCards/errorIcon/index.js +10 -6
- package/dist/esm/utils/lightCards/errorIcon/styles.js +3 -0
- package/dist/esm/utils/lightCards/lightCardWrappers.js +9 -5
- package/dist/esm/utils/lightCards/styles.js +9 -2
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/types/card/ui/iconWrapper/styles.d.ts +1 -1
- package/dist/types/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +0 -1
- package/dist/types/card/ui/titleBox/styles.d.ts +1 -1
- package/dist/types/utils/preventClickThrough.d.ts +1 -1
- package/dist/types/utils/viewportDetector.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/iconWrapper/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +0 -1
- package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +1 -1
- package/dist/types-ts4.5/utils/preventClickThrough.d.ts +1 -1
- package/dist/types-ts4.5/utils/viewportDetector.d.ts +1 -1
- package/example-helpers/DelayedRender.tsx +19 -19
- package/example-helpers/cardViewWrapper.tsx +20 -22
- package/example-helpers/cards.tsx +268 -331
- package/example-helpers/developmentUseMessage.tsx +8 -9
- package/example-helpers/index.tsx +100 -124
- package/example-helpers/selectableCard.tsx +32 -35
- package/example-helpers/ssrHelpers.tsx +19 -29
- package/example-helpers/styles.ts +97 -73
- package/example-helpers/svg-helpers/cardContainer.tsx +22 -21
- package/example-helpers/svg-helpers/controls.tsx +11 -11
- package/example-helpers/svg-helpers/dimensionPicker.tsx +85 -93
- package/example-helpers/svg-helpers/svgContainer.tsx +19 -18
- package/example-helpers/svg-helpers/toggle.tsx +28 -29
- package/example-helpers/svg-helpers/uploader.ts +33 -33
- package/package.json +121 -120
- package/report.api.md +227 -232
|
@@ -7,13 +7,16 @@ exports.TitleBoxWrapper = exports.TitleBoxIcon = exports.TitleBoxHeader = export
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _styles = require("./styles");
|
|
9
9
|
/** @jsx jsx */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
|
|
11
12
|
var TitleBoxWrapper = exports.TitleBoxWrapper = function TitleBoxWrapper(props) {
|
|
12
13
|
var breakpoint = props.breakpoint,
|
|
13
14
|
titleBoxBgColor = props.titleBoxBgColor;
|
|
14
15
|
return (0, _react.jsx)("div", {
|
|
15
16
|
id: "titleBoxWrapper",
|
|
16
|
-
"data-testid": "media-title-box"
|
|
17
|
+
"data-testid": "media-title-box"
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
19
|
+
,
|
|
17
20
|
css: (0, _styles.titleBoxWrapperStyles)({
|
|
18
21
|
breakpoint: breakpoint,
|
|
19
22
|
titleBoxBgColor: titleBoxBgColor
|
|
@@ -22,29 +25,39 @@ var TitleBoxWrapper = exports.TitleBoxWrapper = function TitleBoxWrapper(props)
|
|
|
22
25
|
};
|
|
23
26
|
var TitleBoxHeader = exports.TitleBoxHeader = function TitleBoxHeader(props) {
|
|
24
27
|
var hasIconOverlap = props.hasIconOverlap;
|
|
25
|
-
return (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
return (
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
30
|
+
(0, _react.jsx)("div", {
|
|
31
|
+
id: "titleBoxHeader",
|
|
32
|
+
css: (0, _styles.titleBoxHeaderStyles)({
|
|
33
|
+
hasIconOverlap: hasIconOverlap
|
|
34
|
+
})
|
|
35
|
+
}, props.children)
|
|
36
|
+
);
|
|
31
37
|
};
|
|
32
38
|
var TitleBoxFooter = exports.TitleBoxFooter = function TitleBoxFooter(props) {
|
|
33
39
|
var hasIconOverlap = props.hasIconOverlap;
|
|
34
|
-
return (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
return (
|
|
41
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
42
|
+
(0, _react.jsx)("div", {
|
|
43
|
+
id: "titleBoxFooter",
|
|
44
|
+
css: (0, _styles.titleBoxFooterStyles)({
|
|
45
|
+
hasIconOverlap: hasIconOverlap
|
|
46
|
+
})
|
|
47
|
+
}, props.children)
|
|
48
|
+
);
|
|
40
49
|
};
|
|
41
50
|
var TitleBoxIcon = exports.TitleBoxIcon = function TitleBoxIcon(props) {
|
|
42
|
-
return (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
51
|
+
return (
|
|
52
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
53
|
+
(0, _react.jsx)("div", {
|
|
54
|
+
id: "titleBoxIcon",
|
|
55
|
+
css: _styles.titleBoxIconStyles
|
|
56
|
+
}, props.children)
|
|
57
|
+
);
|
|
46
58
|
};
|
|
47
59
|
var ErrorMessageWrapper = exports.ErrorMessageWrapper = function ErrorMessageWrapper(props) {
|
|
60
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
48
61
|
return (0, _react.jsx)("div", {
|
|
49
62
|
css: _styles.errorMessageWrapperStyles
|
|
50
63
|
}, props.children);
|
|
@@ -18,7 +18,7 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
18
18
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
19
19
|
var _utils = require("../../../utils");
|
|
20
20
|
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); }; }
|
|
21
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
21
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
22
|
var isPercentage = function isPercentage(value) {
|
|
23
23
|
return /^\d+(\.\d+)?%$/.test(value);
|
|
24
24
|
};
|
|
@@ -47,17 +47,25 @@ var getConvertedDimension = function getConvertedDimension(dimensions) {
|
|
|
47
47
|
var wrapperStyles = function wrapperStyles() {
|
|
48
48
|
var dimensions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _utils.defaultImageCardDimensions;
|
|
49
49
|
try {
|
|
50
|
-
return (0, _react2.css)(
|
|
50
|
+
return (0, _react2.css)(
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
52
|
+
_mediaUi.center,
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
54
|
+
_mediaUi.borderRadius, {
|
|
51
55
|
background: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
|
|
52
56
|
color: "var(--ds-text-subtle, ".concat(_colors.N800, ")"),
|
|
53
57
|
maxHeight: '100%',
|
|
54
58
|
maxWidth: '100%'
|
|
55
|
-
},
|
|
59
|
+
},
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
61
|
+
getConvertedDimension(dimensions), {
|
|
56
62
|
display: 'flex',
|
|
57
63
|
flexDirection: 'column',
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
58
65
|
p: {
|
|
59
66
|
fontSize: "".concat((0, _constants.fontSize)(), "px"),
|
|
60
67
|
textAlign: 'center',
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
61
69
|
display: shouldShowText(getConvertedDimension(dimensions)) ? 'block' : 'none'
|
|
62
70
|
}
|
|
63
71
|
});
|
|
@@ -78,14 +86,17 @@ var UnhandledErrorCard = exports.UnhandledErrorCard = /*#__PURE__*/function (_Co
|
|
|
78
86
|
var _this$props = this.props,
|
|
79
87
|
dimensions = _this$props.dimensions,
|
|
80
88
|
onClick = _this$props.onClick;
|
|
81
|
-
return (
|
|
82
|
-
css
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
return (
|
|
90
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
91
|
+
(0, _react2.jsx)("div", {
|
|
92
|
+
css: wrapperStyles(dimensions),
|
|
93
|
+
onClick: onClick
|
|
94
|
+
}, (0, _react2.jsx)(_warning.default, {
|
|
95
|
+
label: "Error",
|
|
96
|
+
primaryColor: "var(--ds-icon-warning, ".concat(_colors.Y500, ")"),
|
|
97
|
+
size: "medium"
|
|
98
|
+
}), (0, _react2.jsx)("p", null, "We couldn't load this content"))
|
|
99
|
+
);
|
|
89
100
|
}
|
|
90
101
|
}]);
|
|
91
102
|
return UnhandledErrorCard;
|
|
@@ -7,6 +7,7 @@ exports.ImageContainer = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _classnames = require("../../classnames");
|
|
9
9
|
/** @jsx jsx */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
|
|
11
12
|
var imageContainerStyles = (0, _react.css)({
|
|
12
13
|
display: 'flex',
|
|
@@ -14,7 +14,7 @@ var _selection = require("@atlaskit/editor-shared-styles/selection");
|
|
|
14
14
|
var _styles = require("../styles");
|
|
15
15
|
var _styles2 = require("../blanket/styles");
|
|
16
16
|
var _styles3 = require("../actionsBar/styles");
|
|
17
|
-
var _templateObject;
|
|
17
|
+
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
var wrapperStyles = exports.wrapperStyles = function wrapperStyles(_ref) {
|
|
19
19
|
var breakpoint = _ref.breakpoint,
|
|
20
20
|
dimensions = _ref.dimensions,
|
|
@@ -26,6 +26,6 @@ var wrapperStyles = exports.wrapperStyles = function wrapperStyles(_ref) {
|
|
|
26
26
|
isTickBoxSelectable = _ref.isTickBoxSelectable,
|
|
27
27
|
shouldDisplayTooltip = _ref.shouldDisplayTooltip,
|
|
28
28
|
mediaCardCursor = _ref.mediaCardCursor;
|
|
29
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
29
|
+
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", "\n\n\tbutton:focus + & {\n\t\toutline: solid 2px ", ";\n\t}\n"])), (0, _styles.transition)(), (0, _constants.fontFamily)(), (0, _styles.getWrapperDimensions)(dimensions, appearance), displayBackground && "background: ".concat("var(--ds-background-neutral, ".concat(_colors.N20, ")"), ";"), _mediaUi.borderRadius, (0, _styles.getCursorStyle)(mediaCardCursor), (0, _styles.getWrapperShadow)(disableOverlay, selected), (0, _styles.generateResponsiveStyles)(breakpoint), _selection.hideNativeBrowserTextSelectionStyles, (0, _styles.getClickablePlayButtonStyles)(isPlayButtonClickable), (0, _styles.getSelectableTickBoxStyles)(isTickBoxSelectable), _styles2.blanketClassName, _styles2.fixedBlanketStyles, _styles3.actionsBarClassName, _styles3.actionsBarClassName, _styles3.fixedActionBarStyles, shouldDisplayTooltip && "> div { width: 100%; height: 100%; }", "var(--ds-border-focused, ".concat(_colors.B100, ")"));
|
|
30
30
|
};
|
|
31
31
|
wrapperStyles.displayName = 'NewFileExperienceWrapper';
|
|
@@ -8,6 +8,7 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _cardConstants = require("../../cardConstants");
|
|
9
9
|
var _styles = require("./styles");
|
|
10
10
|
/**@jsx jsx */
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
12
|
|
|
12
13
|
var Wrapper = exports.Wrapper = function Wrapper(props) {
|
|
13
14
|
var testId = props.testId,
|
|
@@ -29,7 +30,9 @@ var Wrapper = exports.Wrapper = function Wrapper(props) {
|
|
|
29
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
30
31
|
,
|
|
31
32
|
className: _cardConstants.newFileExperienceClassName,
|
|
32
|
-
"data-testid": testId
|
|
33
|
+
"data-testid": testId
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
35
|
+
,
|
|
33
36
|
css: (0, _styles.wrapperStyles)({
|
|
34
37
|
breakpoint: breakpoint,
|
|
35
38
|
dimensions: dimensions,
|
|
@@ -16,7 +16,7 @@ var _externalImageCard = require("./externalImageCard");
|
|
|
16
16
|
var _fileCard = require("./fileCard");
|
|
17
17
|
var _excluded = ["identifier"];
|
|
18
18
|
var packageName = "@atlaskit/media-card";
|
|
19
|
-
var packageVersion = "77.12.
|
|
19
|
+
var packageVersion = "77.12.2";
|
|
20
20
|
var CardV2Base = exports.CardV2Base = function CardV2Base(_ref) {
|
|
21
21
|
var identifier = _ref.identifier,
|
|
22
22
|
otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -35,7 +35,7 @@ var _openMediaViewerButton = _interopRequireDefault(require("../ui/openMediaView
|
|
|
35
35
|
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); }
|
|
36
36
|
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 && Object.prototype.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; }
|
|
37
37
|
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; }
|
|
38
|
-
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; } /** @jsx jsx */
|
|
38
|
+
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; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
39
39
|
var CardViewV2Base = exports.CardViewV2Base = function CardViewV2Base(_ref) {
|
|
40
40
|
var innerRef = _ref.innerRef,
|
|
41
41
|
onImageLoad = _ref.onImageLoad,
|
|
@@ -20,6 +20,7 @@ var _classnames = require("../../classnames");
|
|
|
20
20
|
var _openMediaViewerButton = _interopRequireDefault(require("../../ui/openMediaViewerButton/openMediaViewerButton"));
|
|
21
21
|
var _excluded = ["cardPreview", "testId", "dimensions", "appearance", "metadata", "selected", "selectable", "actions", "breakpoint", "disableOverlay", "titleBoxBgColor", "titleBoxIcon", "shouldHideTooltip", "children", "onClick", "onMouseEnter", "mediaCardCursor", "customBlanket", "customTitleBox", "progressBar", "shouldOpenMediaViewer", "openMediaViewerButtonRef", "overriddenCreationDate"];
|
|
22
22
|
/** @jsx jsx */
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
24
|
var CardViewWrapper = exports.CardViewWrapper = /*#__PURE__*/_react2.default.forwardRef(function (_ref, ref) {
|
|
24
25
|
var cardPreview = _ref.cardPreview,
|
|
25
26
|
testId = _ref.testId,
|
|
@@ -19,6 +19,7 @@ var _iconMessage = require("../../ui/iconMessage");
|
|
|
19
19
|
var _errors = require("../../../errors");
|
|
20
20
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
21
21
|
/** @jsx jsx */
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
23
|
|
|
23
24
|
var IconMessage = function IconMessage(_ref) {
|
|
24
25
|
var error = _ref.error,
|
|
@@ -17,6 +17,7 @@ var _cardViewWrapper = require("./cardViewWrapper");
|
|
|
17
17
|
var _progressBar = require("../../ui/progressBar/progressBar");
|
|
18
18
|
var _blanket = require("../../ui/blanket/blanket");
|
|
19
19
|
/** @jsx jsx */
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
21
|
|
|
21
22
|
// NOTE: should we call this Icon or UploadingCardView since we now have ProgressBar?
|
|
22
23
|
|
|
@@ -16,6 +16,7 @@ var _cardViewWrapper = require("./cardViewWrapper");
|
|
|
16
16
|
var _progressBar = require("../../ui/progressBar/progressBar");
|
|
17
17
|
var _blanket = require("../../ui/blanket/blanket");
|
|
18
18
|
/** @jsx jsx */
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
20
|
|
|
20
21
|
var ImageCardViewBase = function ImageCardViewBase(props) {
|
|
21
22
|
var status = props.status,
|
|
@@ -22,6 +22,7 @@ var _loadingCardView = require("./loadingCardView");
|
|
|
22
22
|
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); }
|
|
23
23
|
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 && Object.prototype.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; }
|
|
24
24
|
/** @jsx jsx */
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
26
|
|
|
26
27
|
var CardViewsBase = exports.CardViewsBase = function CardViewsBase(_ref) {
|
|
27
28
|
var innerRef = _ref.innerRef,
|
|
@@ -15,6 +15,7 @@ var _iconWrapper = require("../../ui/iconWrapper/iconWrapper");
|
|
|
15
15
|
var _useBreakpoint = require("../../useBreakpoint");
|
|
16
16
|
var _cardViewWrapper = require("./cardViewWrapper");
|
|
17
17
|
/** @jsx jsx */
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
19
|
|
|
19
20
|
var LoadingCardViewBase = function LoadingCardViewBase(props) {
|
|
20
21
|
var dimensions = props.dimensions,
|
|
@@ -16,6 +16,7 @@ var _iconMessage = require("../../ui/iconMessage");
|
|
|
16
16
|
var _useBreakpoint = require("../../useBreakpoint");
|
|
17
17
|
var _cardViewWrapper = require("./cardViewWrapper");
|
|
18
18
|
/** @jsx jsx */
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
20
|
|
|
20
21
|
var ProcessingCardViewBase = function ProcessingCardViewBase(props) {
|
|
21
22
|
var disableAnimation = props.disableAnimation,
|
|
@@ -18,6 +18,7 @@ var _cardViewWrapper = require("./cardViewWrapper");
|
|
|
18
18
|
var _progressBar = require("../../ui/progressBar/progressBar");
|
|
19
19
|
var _blanket = require("../../ui/blanket/blanket");
|
|
20
20
|
/** @jsx jsx */
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
22
|
|
|
22
23
|
var VideoCardViewBase = function VideoCardViewBase(props) {
|
|
23
24
|
var status = props.status,
|
|
@@ -449,7 +449,7 @@ var FileCard = exports.FileCard = function FileCard(_ref) {
|
|
|
449
449
|
//----------------------------------------------------------------//
|
|
450
450
|
|
|
451
451
|
(0, _react.useEffect)(function () {
|
|
452
|
-
if ((0, _platformFeatureFlags.getBooleanFF)('platform.media-svg-
|
|
452
|
+
if ((0, _platformFeatureFlags.getBooleanFF)('platform.media-card-svg-rendering_6tdbv') &&
|
|
453
453
|
/**
|
|
454
454
|
* We need to check that the card is visible before switching to SVG
|
|
455
455
|
* in order to avoid race conditions of the ViewportDector being unmounted before
|
|
@@ -23,6 +23,7 @@ var _openMediaViewerButton = _interopRequireDefault(require("../../ui/openMediaV
|
|
|
23
23
|
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); }
|
|
24
24
|
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 && Object.prototype.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; }
|
|
25
25
|
/** @jsx jsx */
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
27
|
|
|
27
28
|
var convertResizeMode = exports.convertResizeMode = function convertResizeMode(resizeMode) {
|
|
28
29
|
switch (resizeMode) {
|
|
@@ -119,7 +119,7 @@ var MediaInlineCardLoader = exports.default = /*#__PURE__*/function (_React$Pure
|
|
|
119
119
|
ErrorBoundary = _this$state.ErrorBoundary;
|
|
120
120
|
var analyticsContext = {
|
|
121
121
|
packageVersion: "@atlaskit/media-card",
|
|
122
|
-
packageName: "77.12.
|
|
122
|
+
packageName: "77.12.2",
|
|
123
123
|
componentName: 'mediaInlineCard',
|
|
124
124
|
component: 'mediaInlineCard'
|
|
125
125
|
};
|
|
@@ -33,17 +33,17 @@ var ErrorBoundaryComponent = function ErrorBoundaryComponent(_ref) {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
/* Note:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
36
|
+
- styling is borrowed from packages/media/media-ui/src/MediaInlineCard/Frame/styled.ts
|
|
37
|
+
- because we are not using styled components, we are not able to use themed(), here is the "themed" property of color and backgroundColor
|
|
38
|
+
color: `${themed({
|
|
39
|
+
light: token('color.text', N900),
|
|
40
|
+
dark: token('color.text', DN600),
|
|
41
|
+
})}`,
|
|
42
|
+
backgroundColor: `${themed({
|
|
43
|
+
light: token('color.background.neutral', N30A),
|
|
44
|
+
dark: token('color.background.neutral', DN80),
|
|
45
|
+
})}`,
|
|
46
|
+
*/
|
|
47
47
|
|
|
48
48
|
var style = _objectSpread({
|
|
49
49
|
lineHeight: '16px',
|
|
@@ -16,7 +16,7 @@ var _react2 = require("react");
|
|
|
16
16
|
var _warning = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/warning"));
|
|
17
17
|
var _styles = require("./styles");
|
|
18
18
|
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); }; }
|
|
19
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**@jsx jsx */
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**@jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
20
|
var ErrorIcon = exports.ErrorIcon = /*#__PURE__*/function (_Component) {
|
|
21
21
|
(0, _inherits2.default)(ErrorIcon, _Component);
|
|
22
22
|
var _super = _createSuper(ErrorIcon);
|
|
@@ -28,12 +28,15 @@ var ErrorIcon = exports.ErrorIcon = /*#__PURE__*/function (_Component) {
|
|
|
28
28
|
key: "render",
|
|
29
29
|
value: function render() {
|
|
30
30
|
var size = this.props.size;
|
|
31
|
-
return (
|
|
32
|
-
css
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
return (
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
33
|
+
(0, _react.jsx)("div", {
|
|
34
|
+
css: _styles.errorIconWrapperStyles
|
|
35
|
+
}, (0, _react.jsx)(_warning.default, {
|
|
36
|
+
label: "Error",
|
|
37
|
+
size: size
|
|
38
|
+
}))
|
|
39
|
+
);
|
|
37
40
|
}
|
|
38
41
|
}]);
|
|
39
42
|
return ErrorIcon;
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.errorIconWrapperStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
11
|
var errorIconWrapperStyles = exports.errorIconWrapperStyles = (0, _react.css)({
|
|
9
12
|
display: 'flex',
|
|
10
13
|
color: "var(--ds-icon-warning, #ff991f)"
|
|
@@ -9,11 +9,15 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _styles = require("./styles");
|
|
11
11
|
/**@jsx jsx */
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
13
|
|
|
13
14
|
var Wrapper = exports.Wrapper = function Wrapper(props) {
|
|
14
|
-
return (
|
|
15
|
-
css
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
return (
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
17
|
+
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
18
|
+
css: (0, _styles.wrapperStyles)({
|
|
19
|
+
dimensions: props.dimensions
|
|
20
|
+
})
|
|
21
|
+
}, props), props.children)
|
|
22
|
+
);
|
|
19
23
|
};
|
|
@@ -7,15 +7,23 @@ exports.wrapperStyles = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
+
|
|
10
12
|
var wrapperStyles = exports.wrapperStyles = function wrapperStyles(_ref) {
|
|
11
13
|
var dimensions = _ref.dimensions;
|
|
12
|
-
return (0, _react.css)(
|
|
14
|
+
return (0, _react.css)(
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
|
+
_mediaUi.center, {
|
|
13
17
|
background: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
|
|
14
18
|
color: "var(--ds-icon, ".concat(_colors.N50, ")")
|
|
15
|
-
},
|
|
19
|
+
},
|
|
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
|
+
_mediaUi.borderRadius, {
|
|
16
22
|
maxHeight: '100%',
|
|
17
23
|
maxWidth: '100%',
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
25
|
width: dimensions.width,
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
27
|
height: dimensions.height
|
|
20
28
|
});
|
|
21
29
|
};
|
|
@@ -14,7 +14,7 @@ var _mediaClient = require("@atlaskit/media-client");
|
|
|
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 packageName = "@atlaskit/media-card";
|
|
17
|
-
var packageVersion = "77.12.
|
|
17
|
+
var packageVersion = "77.12.2";
|
|
18
18
|
var concurrentExperience;
|
|
19
19
|
var getExperience = function getExperience(id) {
|
|
20
20
|
if (!concurrentExperience) {
|
package/dist/es2019/card/card.js
CHANGED
|
@@ -28,7 +28,7 @@ import { completeUfoExperience, startUfoExperience, abortUfoExperience } from '.
|
|
|
28
28
|
import { generateUniqueId } from '../utils/generateUniqueId';
|
|
29
29
|
import { DateOverrideContext } from '../dateOverrideContext';
|
|
30
30
|
const packageName = "@atlaskit/media-card";
|
|
31
|
-
const packageVersion = "77.12.
|
|
31
|
+
const packageVersion = "77.12.2";
|
|
32
32
|
export class CardBase extends Component {
|
|
33
33
|
constructor(props) {
|
|
34
34
|
super(props);
|
|
@@ -220,8 +220,8 @@ export class CardBase extends Component {
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
/*
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
If the cardPreview failed and it comes from server (global scope / ssrData), it means that we have reused it in client and the error counts for both: server & client.
|
|
224
|
+
*/
|
|
225
225
|
|
|
226
226
|
if (isSSRDataPreview(cardPreview)) {
|
|
227
227
|
this.ssrReliability.server = failedSSRObject;
|
|
@@ -272,8 +272,8 @@ export class CardBase extends Component {
|
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
/*
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
If the image loads successfully and it comes from server (global scope / ssrData), it means that we have reused it in client and the success counts for both: server & client.
|
|
276
|
+
*/
|
|
277
277
|
|
|
278
278
|
if (isSSRDataPreview(cardPreview) && this.ssrReliability.server.status === 'unknown') {
|
|
279
279
|
this.ssrReliability.server = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { inlinePlayerWrapperStyles, inlinePlayerClassName } from './inlinePlayerWrapperStyles';
|
|
4
5
|
export const InlinePlayerWrapper = props => {
|
|
@@ -14,7 +15,9 @@ export const InlinePlayerWrapper = props => {
|
|
|
14
15
|
"data-testid": testId
|
|
15
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
17
|
,
|
|
17
|
-
className: inlinePlayerClassName
|
|
18
|
+
className: inlinePlayerClassName
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
20
|
+
,
|
|
18
21
|
css: inlinePlayerWrapperStyles({
|
|
19
22
|
selected,
|
|
20
23
|
dimensions
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
3
4
|
import { getDimensionsWithDefault } from '../utils/lightCards/getDimensionsWithDefault';
|
|
@@ -29,19 +30,19 @@ export const inlinePlayerWrapperStyles = ({
|
|
|
29
30
|
dimensions,
|
|
30
31
|
selected
|
|
31
32
|
}) => css`
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
width: ${getDimensionsWithDefault(dimensions).width || '100%'};
|
|
34
|
+
height: ${getDimensionsWithDefault(dimensions).height || 'auto'};
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
border-radius: ${borderRadius()}px;
|
|
37
|
+
position: relative;
|
|
38
|
+
max-width: 100%;
|
|
39
|
+
max-height: 100%;
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
${getSelectedBorderStyle(selected)}
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
video {
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
}
|
|
46
47
|
`;
|
|
47
48
|
inlinePlayerWrapperStyles.displayName = 'InlinePlayerWrapper';
|
|
@@ -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 = "77.12.
|
|
69
|
+
const packageVersion = "77.12.2";
|
|
70
70
|
const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
71
71
|
packageVersion,
|
|
72
72
|
packageName,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { wrapperStyles, actionsBarClassName } from './styles';
|
|
4
5
|
export const ActionsBarWrapper = props => {
|
|
5
6
|
return jsx("div", {
|
|
6
|
-
id: "actionsBarWrapper"
|
|
7
|
+
id: "actionsBarWrapper"
|
|
8
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
9
|
+
,
|
|
7
10
|
css: wrapperStyles(props.isFixed)
|
|
8
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
9
12
|
,
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/**@jsx jsx */
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { jsx } from '@emotion/react';
|
|
5
6
|
import { cardActionButtonStyles } from './styles';
|
|
6
7
|
export const CardActionButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7
8
|
return jsx("button", _extends({}, props, {
|
|
8
9
|
id: "cardActionButton",
|
|
9
10
|
"data-testid": "media-card-primary-action",
|
|
10
|
-
"aria-label": props.label
|
|
11
|
+
"aria-label": props.label
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
13
|
+
,
|
|
11
14
|
css: cardActionButtonStyles(props)
|
|
12
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
13
16
|
,
|