@atlaskit/media-card 78.5.4 → 78.6.0
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 +14 -0
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper.js +19 -11
- 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/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper.js +19 -11
- 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/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/ui/tickBox/tickBoxWrapper.js +19 -11
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/types/card/cardView.d.ts +1 -1
- package/dist/types/card/svgView/svgView.d.ts +1 -1
- package/dist/types-ts4.5/card/cardView.d.ts +1 -1
- package/dist/types-ts4.5/card/svgView/svgView.d.ts +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/media-card
|
|
2
2
|
|
|
3
|
+
## 78.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#152007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152007)
|
|
8
|
+
[`02bbd6c761bcc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/02bbd6c761bcc) -
|
|
9
|
+
[ux] Tickbox size fix for new icons (https://product-fabric.atlassian.net/browse/DSP-20944)
|
|
10
|
+
|
|
11
|
+
## 78.5.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 78.5.4
|
|
4
18
|
|
|
5
19
|
### Patch 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 = "78.
|
|
24
|
+
var packageVersion = "78.6.0";
|
|
25
25
|
var CardBase = exports.CardBase = function CardBase(_ref) {
|
|
26
26
|
var identifier = _ref.identifier,
|
|
27
27
|
otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -90,7 +90,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
|
|
|
90
90
|
}(_react.default.Component);
|
|
91
91
|
(0, _defineProperty2.default)(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
|
|
92
92
|
var packageName = "@atlaskit/media-card";
|
|
93
|
-
var packageVersion = "78.
|
|
93
|
+
var packageVersion = "78.6.0";
|
|
94
94
|
|
|
95
95
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
96
96
|
var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.TickBoxWrapper = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
9
|
var _styles = require("./styles");
|
|
9
10
|
var _styles2 = require("../styles");
|
|
10
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
@@ -19,25 +20,32 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
19
20
|
var getSelectedStyles = function getSelectedStyles(selected) {
|
|
20
21
|
return selected ? "background-color: ".concat("var(--ds-icon-information, ".concat(_colors.B200, ")"), ";\n color: ", "var(--ds-icon-inverse, white)", ";") : "";
|
|
21
22
|
};
|
|
23
|
+
var oldWrapperStyes = (0, _react.css)({
|
|
24
|
+
width: '14px',
|
|
25
|
+
height: '14px',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
+
span: {
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
|
+
svg: {
|
|
30
|
+
height: '14px'
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
22
34
|
var wrapperStyles = function wrapperStyles(selected) {
|
|
23
35
|
return (0, _react.css)(
|
|
24
36
|
// 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
37
|
_styles2.transition && (0, _styles2.transition)(), {
|
|
26
38
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
27
|
-
width:
|
|
28
|
-
height:
|
|
39
|
+
width: "var(--ds-space-200, 16px)",
|
|
40
|
+
height: "var(--ds-space-200, 16px)",
|
|
29
41
|
position: 'absolute',
|
|
30
42
|
top: "var(--ds-space-075, 7px)",
|
|
31
43
|
left: "var(--ds-space-075, 7px)",
|
|
32
|
-
borderRadius:
|
|
44
|
+
borderRadius: "var(--ds-space-250, 20px)",
|
|
33
45
|
color: 'transparent',
|
|
34
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
47
|
span: {
|
|
36
|
-
display: 'block'
|
|
37
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
38
|
-
svg: {
|
|
39
|
-
height: '14px'
|
|
40
|
-
}
|
|
48
|
+
display: 'block'
|
|
41
49
|
},
|
|
42
50
|
display: 'grid',
|
|
43
51
|
placeItems: 'center'
|
|
@@ -48,10 +56,10 @@ var wrapperStyles = function wrapperStyles(selected) {
|
|
|
48
56
|
wrapperStyles.displayName = 'TickBoxWrapper';
|
|
49
57
|
var TickBoxWrapper = exports.TickBoxWrapper = function TickBoxWrapper(props) {
|
|
50
58
|
return (0, _react.jsx)("div", {
|
|
51
|
-
id: "tickBoxWrapper"
|
|
59
|
+
id: "tickBoxWrapper",
|
|
60
|
+
css: [
|
|
52
61
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
53
|
-
,
|
|
54
|
-
css: wrapperStyles(props.selected)
|
|
62
|
+
wrapperStyles(props.selected), !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && oldWrapperStyes]
|
|
55
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
56
64
|
,
|
|
57
65
|
className: _styles.tickBoxClassName
|
|
@@ -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: "78.
|
|
122
|
+
packageName: "78.6.0",
|
|
123
123
|
componentName: 'mediaInlineCard',
|
|
124
124
|
component: 'mediaInlineCard'
|
|
125
125
|
};
|
|
@@ -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 = "78.
|
|
18
|
+
var packageVersion = "78.6.0";
|
|
19
19
|
var concurrentExperience;
|
|
20
20
|
var getExperience = function getExperience(id) {
|
|
21
21
|
if (!concurrentExperience) {
|
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 { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
const packageName = "@atlaskit/media-card";
|
|
12
|
-
const packageVersion = "78.
|
|
12
|
+
const packageVersion = "78.6.0";
|
|
13
13
|
export const CardBase = ({
|
|
14
14
|
identifier,
|
|
15
15
|
...otherProps
|
|
@@ -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 = "78.
|
|
69
|
+
const packageVersion = "78.6.0";
|
|
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({
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { tickBoxClassName } from './styles';
|
|
8
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
10
|
import { css } from '@emotion/react';
|
|
@@ -11,24 +12,31 @@ import { transition } from '../styles';
|
|
|
11
12
|
import { B200 } from '@atlaskit/theme/colors';
|
|
12
13
|
const getSelectedStyles = selected => selected ? `background-color: ${`var(--ds-icon-information, ${B200})`};
|
|
13
14
|
color: ${"var(--ds-icon-inverse, white)"};` : ``;
|
|
15
|
+
const oldWrapperStyes = css({
|
|
16
|
+
width: '14px',
|
|
17
|
+
height: '14px',
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
19
|
+
span: {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
|
+
svg: {
|
|
22
|
+
height: '14px'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
14
26
|
const wrapperStyles = selected => css(
|
|
15
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
|
|
16
28
|
transition && transition(), {
|
|
17
29
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
18
|
-
width:
|
|
19
|
-
height:
|
|
30
|
+
width: "var(--ds-space-200, 16px)",
|
|
31
|
+
height: "var(--ds-space-200, 16px)",
|
|
20
32
|
position: 'absolute',
|
|
21
33
|
top: "var(--ds-space-075, 7px)",
|
|
22
34
|
left: "var(--ds-space-075, 7px)",
|
|
23
|
-
borderRadius:
|
|
35
|
+
borderRadius: "var(--ds-space-250, 20px)",
|
|
24
36
|
color: 'transparent',
|
|
25
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
38
|
span: {
|
|
27
|
-
display: 'block'
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
|
-
svg: {
|
|
30
|
-
height: '14px'
|
|
31
|
-
}
|
|
39
|
+
display: 'block'
|
|
32
40
|
},
|
|
33
41
|
display: 'grid',
|
|
34
42
|
placeItems: 'center'
|
|
@@ -38,10 +46,10 @@ getSelectedStyles(selected));
|
|
|
38
46
|
wrapperStyles.displayName = 'TickBoxWrapper';
|
|
39
47
|
export const TickBoxWrapper = props => {
|
|
40
48
|
return jsx("div", {
|
|
41
|
-
id: "tickBoxWrapper"
|
|
49
|
+
id: "tickBoxWrapper",
|
|
50
|
+
css: [
|
|
42
51
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
43
|
-
,
|
|
44
|
-
css: wrapperStyles(props.selected)
|
|
52
|
+
wrapperStyles(props.selected), !fg('platform-visual-refresh-icons') && oldWrapperStyes]
|
|
45
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
46
54
|
,
|
|
47
55
|
className: tickBoxClassName
|
|
@@ -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: "78.
|
|
40
|
+
packageName: "78.6.0",
|
|
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 = "78.
|
|
8
|
+
const packageVersion = "78.6.0";
|
|
9
9
|
let concurrentExperience;
|
|
10
10
|
const getExperience = id => {
|
|
11
11
|
if (!concurrentExperience) {
|
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 { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
var packageName = "@atlaskit/media-card";
|
|
14
|
-
var packageVersion = "78.
|
|
14
|
+
var packageVersion = "78.6.0";
|
|
15
15
|
export var CardBase = function CardBase(_ref) {
|
|
16
16
|
var identifier = _ref.identifier,
|
|
17
17
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -83,7 +83,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
|
|
|
83
83
|
}(React.Component);
|
|
84
84
|
_defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
|
|
85
85
|
var packageName = "@atlaskit/media-card";
|
|
86
|
-
var packageVersion = "78.
|
|
86
|
+
var packageVersion = "78.6.0";
|
|
87
87
|
|
|
88
88
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
89
89
|
var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { tickBoxClassName } from './styles';
|
|
8
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
10
|
import { css } from '@emotion/react';
|
|
@@ -12,25 +13,32 @@ import { B200 } from '@atlaskit/theme/colors';
|
|
|
12
13
|
var getSelectedStyles = function getSelectedStyles(selected) {
|
|
13
14
|
return selected ? "background-color: ".concat("var(--ds-icon-information, ".concat(B200, ")"), ";\n color: ", "var(--ds-icon-inverse, white)", ";") : "";
|
|
14
15
|
};
|
|
16
|
+
var oldWrapperStyes = css({
|
|
17
|
+
width: '14px',
|
|
18
|
+
height: '14px',
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
|
+
span: {
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
|
+
svg: {
|
|
23
|
+
height: '14px'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
15
27
|
var wrapperStyles = function wrapperStyles(selected) {
|
|
16
28
|
return css(
|
|
17
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
|
|
18
30
|
transition && transition(), {
|
|
19
31
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
20
|
-
width:
|
|
21
|
-
height:
|
|
32
|
+
width: "var(--ds-space-200, 16px)",
|
|
33
|
+
height: "var(--ds-space-200, 16px)",
|
|
22
34
|
position: 'absolute',
|
|
23
35
|
top: "var(--ds-space-075, 7px)",
|
|
24
36
|
left: "var(--ds-space-075, 7px)",
|
|
25
|
-
borderRadius:
|
|
37
|
+
borderRadius: "var(--ds-space-250, 20px)",
|
|
26
38
|
color: 'transparent',
|
|
27
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
40
|
span: {
|
|
29
|
-
display: 'block'
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
|
-
svg: {
|
|
32
|
-
height: '14px'
|
|
33
|
-
}
|
|
41
|
+
display: 'block'
|
|
34
42
|
},
|
|
35
43
|
display: 'grid',
|
|
36
44
|
placeItems: 'center'
|
|
@@ -41,10 +49,10 @@ var wrapperStyles = function wrapperStyles(selected) {
|
|
|
41
49
|
wrapperStyles.displayName = 'TickBoxWrapper';
|
|
42
50
|
export var TickBoxWrapper = function TickBoxWrapper(props) {
|
|
43
51
|
return jsx("div", {
|
|
44
|
-
id: "tickBoxWrapper"
|
|
52
|
+
id: "tickBoxWrapper",
|
|
53
|
+
css: [
|
|
45
54
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
46
|
-
,
|
|
47
|
-
css: wrapperStyles(props.selected)
|
|
55
|
+
wrapperStyles(props.selected), !fg('platform-visual-refresh-icons') && oldWrapperStyes]
|
|
48
56
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
49
57
|
,
|
|
50
58
|
className: tickBoxClassName
|
|
@@ -103,7 +103,7 @@ var MediaInlineCardLoader = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
103
103
|
ErrorBoundary = _this$state.ErrorBoundary;
|
|
104
104
|
var analyticsContext = {
|
|
105
105
|
packageVersion: "@atlaskit/media-card",
|
|
106
|
-
packageName: "78.
|
|
106
|
+
packageName: "78.6.0",
|
|
107
107
|
componentName: 'mediaInlineCard',
|
|
108
108
|
component: 'mediaInlineCard'
|
|
109
109
|
};
|
|
@@ -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 = "78.
|
|
11
|
+
var packageVersion = "78.6.0";
|
|
12
12
|
var concurrentExperience;
|
|
13
13
|
var getExperience = function getExperience(id) {
|
|
14
14
|
if (!concurrentExperience) {
|
|
@@ -59,4 +59,4 @@ export interface RenderConfigByStatus {
|
|
|
59
59
|
customTitleMessage?: MessageDescriptor;
|
|
60
60
|
}
|
|
61
61
|
export declare const CardViewBase: ({ innerRef, onImageLoad, onImageError, dimensions, onClick, onMouseEnter, testId, metadata, status, selected, selectable, cardPreview, mediaCardCursor, shouldHideTooltip, progress, alt, resizeMode, onDisplayImage, nativeLazyLoad, forceSyncDisplay, actions, disableOverlay, titleBoxBgColor, titleBoxIcon, error, disableAnimation, openMediaViewerButtonRef, shouldOpenMediaViewer, overriddenCreationDate, }: CardViewBaseProps) => jsx.JSX.Element;
|
|
62
|
-
export declare const CardView: React.ForwardRefExoticComponent<Omit<CardViewProps
|
|
62
|
+
export declare const CardView: React.ForwardRefExoticComponent<Omit<CardViewProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
@@ -31,4 +31,4 @@ export interface SvgViewBaseOwnProps {
|
|
|
31
31
|
}
|
|
32
32
|
export type SvgViewProps = SvgViewBaseOwnProps & WithAnalyticsEventsProps;
|
|
33
33
|
export declare const SvgViewBase: ({ identifier, cardDimensions, onClick, onMouseEnter, testId, status, selected, fileName, cardPreview, mediaCardCursor, progress, alt, resizeMode, shouldOpenMediaViewer, openMediaViewerButtonRef, onLoad, onError, }: SvgViewProps) => jsx.JSX.Element;
|
|
34
|
-
export declare const SvgView: React.ForwardRefExoticComponent<Omit<SvgViewBaseOwnProps
|
|
34
|
+
export declare const SvgView: React.ForwardRefExoticComponent<Omit<SvgViewBaseOwnProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
@@ -59,4 +59,4 @@ export interface RenderConfigByStatus {
|
|
|
59
59
|
customTitleMessage?: MessageDescriptor;
|
|
60
60
|
}
|
|
61
61
|
export declare const CardViewBase: ({ innerRef, onImageLoad, onImageError, dimensions, onClick, onMouseEnter, testId, metadata, status, selected, selectable, cardPreview, mediaCardCursor, shouldHideTooltip, progress, alt, resizeMode, onDisplayImage, nativeLazyLoad, forceSyncDisplay, actions, disableOverlay, titleBoxBgColor, titleBoxIcon, error, disableAnimation, openMediaViewerButtonRef, shouldOpenMediaViewer, overriddenCreationDate, }: CardViewBaseProps) => jsx.JSX.Element;
|
|
62
|
-
export declare const CardView: React.ForwardRefExoticComponent<Omit<CardViewProps
|
|
62
|
+
export declare const CardView: React.ForwardRefExoticComponent<Omit<CardViewProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
@@ -31,4 +31,4 @@ export interface SvgViewBaseOwnProps {
|
|
|
31
31
|
}
|
|
32
32
|
export type SvgViewProps = SvgViewBaseOwnProps & WithAnalyticsEventsProps;
|
|
33
33
|
export declare const SvgViewBase: ({ identifier, cardDimensions, onClick, onMouseEnter, testId, status, selected, fileName, cardPreview, mediaCardCursor, progress, alt, resizeMode, shouldOpenMediaViewer, openMediaViewerButtonRef, onLoad, onError, }: SvgViewProps) => jsx.JSX.Element;
|
|
34
|
-
export declare const SvgView: React.ForwardRefExoticComponent<Omit<SvgViewBaseOwnProps
|
|
34
|
+
export declare const SvgView: React.ForwardRefExoticComponent<Omit<SvgViewBaseOwnProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "78.
|
|
3
|
+
"version": "78.6.0",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
39
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
39
|
+
"@atlaskit/dropdown-menu": "^12.20.0",
|
|
40
40
|
"@atlaskit/editor-shared-styles": "^3.0.0",
|
|
41
|
-
"@atlaskit/icon": "^22.
|
|
41
|
+
"@atlaskit/icon": "^22.22.0",
|
|
42
42
|
"@atlaskit/media-client": "^28.0.0",
|
|
43
43
|
"@atlaskit/media-client-react": "^2.2.0",
|
|
44
|
-
"@atlaskit/media-common": "^11.
|
|
44
|
+
"@atlaskit/media-common": "^11.6.0",
|
|
45
45
|
"@atlaskit/media-file-preview": "^0.9.0",
|
|
46
46
|
"@atlaskit/media-svg": "^0.2.0",
|
|
47
47
|
"@atlaskit/media-ui": "^25.15.0",
|
|
48
|
-
"@atlaskit/media-viewer": "^
|
|
48
|
+
"@atlaskit/media-viewer": "^49.1.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
50
50
|
"@atlaskit/primitives": "^12.2.0",
|
|
51
51
|
"@atlaskit/spinner": "^16.3.0",
|
|
52
|
-
"@atlaskit/theme": "^13.
|
|
52
|
+
"@atlaskit/theme": "^13.1.0",
|
|
53
53
|
"@atlaskit/tokens": "^2.0.0",
|
|
54
|
-
"@atlaskit/tooltip": "^18.
|
|
54
|
+
"@atlaskit/tooltip": "^18.8.0",
|
|
55
55
|
"@atlaskit/ufo": "^0.3.0",
|
|
56
56
|
"@atlaskit/ufo-interaction-ignore": "^1.3.0",
|
|
57
57
|
"@atlaskit/visually-hidden": "^1.5.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@atlaskit/media-picker": "^66.7.0",
|
|
79
79
|
"@atlaskit/media-state": "^1.1.0",
|
|
80
80
|
"@atlaskit/media-test-data": "^2.6.0",
|
|
81
|
-
"@atlaskit/media-test-helpers": "^34.
|
|
81
|
+
"@atlaskit/media-test-helpers": "^34.5.0",
|
|
82
82
|
"@atlaskit/radio": "^6.5.0",
|
|
83
83
|
"@atlaskit/range": "^7.4.0",
|
|
84
84
|
"@atlaskit/ssr": "*",
|