@atlaskit/media-card 78.0.10 → 78.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/media-card-analytics-error-boundary.js +3 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.js +16 -11
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.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 +3 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.js +5 -1
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +2 -0
- 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 +3 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.js +16 -11
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +1 -1
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/dist/cjs/card/card.js
CHANGED
|
@@ -15,7 +15,7 @@ var _externalImageCard = require("./externalImageCard");
|
|
|
15
15
|
var _fileCard = require("./fileCard");
|
|
16
16
|
var _excluded = ["identifier"];
|
|
17
17
|
var packageName = "@atlaskit/media-card";
|
|
18
|
-
var packageVersion = "78.0.
|
|
18
|
+
var packageVersion = "78.0.12";
|
|
19
19
|
var CardBase = exports.CardBase = function CardBase(_ref) {
|
|
20
20
|
var identifier = _ref.identifier,
|
|
21
21
|
otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -90,7 +90,9 @@ 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.0.
|
|
93
|
+
var packageVersion = "78.0.12";
|
|
94
|
+
|
|
95
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
94
96
|
var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
95
97
|
packageVersion: packageVersion,
|
|
96
98
|
packageName: packageName,
|
|
@@ -32,6 +32,7 @@ var CardActionButtonWithAnalytics = (0, _analyticsNext.withAnalyticsEvents)({
|
|
|
32
32
|
actionSubjectId: 'mediaCardDropDownMenu',
|
|
33
33
|
attributes: {}
|
|
34
34
|
})
|
|
35
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
35
36
|
})(_cardActionButton.CardActionButton);
|
|
36
37
|
// Trick applied due to the lack of props type of DropdownItem
|
|
37
38
|
var DropdownItemWithProps = function DropdownItemWithProps(props) {
|
|
@@ -80,17 +81,21 @@ var CardActionsDropdownMenu = exports.CardActionsDropdownMenu = /*#__PURE__*/fun
|
|
|
80
81
|
trigger: function trigger(_ref) {
|
|
81
82
|
var triggerRef = _ref.triggerRef,
|
|
82
83
|
providedProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
83
|
-
return
|
|
84
|
-
|
|
85
|
-
//
|
|
86
|
-
,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
84
|
+
return (
|
|
85
|
+
/*#__PURE__*/
|
|
86
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
87
|
+
_react.default.createElement(CardActionButtonWithAnalytics, (0, _extends2.default)({
|
|
88
|
+
variant: triggerVariant
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
90
|
+
,
|
|
91
|
+
style: {
|
|
92
|
+
color: triggerColor
|
|
93
|
+
},
|
|
94
|
+
ref: triggerRef
|
|
95
|
+
}, providedProps), /*#__PURE__*/_react.default.createElement(_more.default, {
|
|
96
|
+
label: "more"
|
|
97
|
+
}))
|
|
98
|
+
);
|
|
94
99
|
}
|
|
95
100
|
}, /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItemGroup, null, actions.map(createDropdownItemWithAnalytics)));
|
|
96
101
|
} else {
|
|
@@ -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.0.
|
|
122
|
+
packageName: "78.0.12",
|
|
123
123
|
componentName: 'mediaInlineCard',
|
|
124
124
|
component: 'mediaInlineCard'
|
|
125
125
|
};
|
|
@@ -127,7 +127,7 @@ var WrappedMediaInlineAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Com
|
|
|
127
127
|
}
|
|
128
128
|
}]);
|
|
129
129
|
return WrappedMediaInlineAnalyticsErrorBoundary;
|
|
130
|
-
}(_react.default.Component);
|
|
130
|
+
}(_react.default.Component); // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
131
131
|
(0, _defineProperty2.default)(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
|
|
132
132
|
var MediaInlineAnalyticsErrorBoundary = (0, _analyticsNext.withAnalyticsEvents)()(WrappedMediaInlineAnalyticsErrorBoundary);
|
|
133
133
|
var _default = exports.default = MediaInlineAnalyticsErrorBoundary;
|
|
@@ -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.0.
|
|
18
|
+
var packageVersion = "78.0.12";
|
|
19
19
|
var concurrentExperience;
|
|
20
20
|
var getExperience = function getExperience(id) {
|
|
21
21
|
if (!concurrentExperience) {
|
package/dist/es2019/card/card.js
CHANGED
|
@@ -6,7 +6,7 @@ import { IntlProvider, injectIntl } from 'react-intl-next';
|
|
|
6
6
|
import { ExternalImageCard } from './externalImageCard';
|
|
7
7
|
import { FileCard } from './fileCard';
|
|
8
8
|
const packageName = "@atlaskit/media-card";
|
|
9
|
-
const packageVersion = "78.0.
|
|
9
|
+
const packageVersion = "78.0.12";
|
|
10
10
|
export const CardBase = ({
|
|
11
11
|
identifier,
|
|
12
12
|
...otherProps
|
|
@@ -66,7 +66,9 @@ class WrappedMediaCardAnalyticsErrorBoundary extends React.Component {
|
|
|
66
66
|
}
|
|
67
67
|
_defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
|
|
68
68
|
const packageName = "@atlaskit/media-card";
|
|
69
|
-
const packageVersion = "78.0.
|
|
69
|
+
const packageVersion = "78.0.12";
|
|
70
|
+
|
|
71
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
70
72
|
const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
71
73
|
packageVersion,
|
|
72
74
|
packageName,
|
|
@@ -14,6 +14,7 @@ const CardActionButtonWithAnalytics = withAnalyticsEvents({
|
|
|
14
14
|
actionSubjectId: 'mediaCardDropDownMenu',
|
|
15
15
|
attributes: {}
|
|
16
16
|
})
|
|
17
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
17
18
|
})(CardActionButton);
|
|
18
19
|
// Trick applied due to the lack of props type of DropdownItem
|
|
19
20
|
const DropdownItemWithProps = props => /*#__PURE__*/React.createElement(DropdownItem, _extends({
|
|
@@ -55,7 +56,10 @@ export class CardActionsDropdownMenu extends Component {
|
|
|
55
56
|
trigger: ({
|
|
56
57
|
triggerRef,
|
|
57
58
|
...providedProps
|
|
58
|
-
}) =>
|
|
59
|
+
}) =>
|
|
60
|
+
/*#__PURE__*/
|
|
61
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
62
|
+
React.createElement(CardActionButtonWithAnalytics, _extends({
|
|
59
63
|
variant: triggerVariant
|
|
60
64
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
61
65
|
,
|
|
@@ -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.0.
|
|
40
|
+
packageName: "78.0.12",
|
|
41
41
|
componentName: 'mediaInlineCard',
|
|
42
42
|
component: 'mediaInlineCard'
|
|
43
43
|
};
|
|
@@ -108,6 +108,8 @@ class WrappedMediaInlineAnalyticsErrorBoundary extends React.Component {
|
|
|
108
108
|
}) : children;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
+
|
|
112
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
111
113
|
_defineProperty(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
|
|
112
114
|
const MediaInlineAnalyticsErrorBoundary = withAnalyticsEvents()(WrappedMediaInlineAnalyticsErrorBoundary);
|
|
113
115
|
export default MediaInlineAnalyticsErrorBoundary;
|
|
@@ -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.0.
|
|
8
|
+
const packageVersion = "78.0.12";
|
|
9
9
|
let concurrentExperience;
|
|
10
10
|
const getExperience = id => {
|
|
11
11
|
if (!concurrentExperience) {
|
package/dist/esm/card/card.js
CHANGED
|
@@ -8,7 +8,7 @@ import { IntlProvider, injectIntl } from 'react-intl-next';
|
|
|
8
8
|
import { ExternalImageCard } from './externalImageCard';
|
|
9
9
|
import { FileCard } from './fileCard';
|
|
10
10
|
var packageName = "@atlaskit/media-card";
|
|
11
|
-
var packageVersion = "78.0.
|
|
11
|
+
var packageVersion = "78.0.12";
|
|
12
12
|
export var CardBase = function CardBase(_ref) {
|
|
13
13
|
var identifier = _ref.identifier,
|
|
14
14
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -83,7 +83,9 @@ 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.0.
|
|
86
|
+
var packageVersion = "78.0.12";
|
|
87
|
+
|
|
88
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
87
89
|
var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
88
90
|
packageVersion: packageVersion,
|
|
89
91
|
packageName: packageName,
|
|
@@ -23,6 +23,7 @@ var CardActionButtonWithAnalytics = withAnalyticsEvents({
|
|
|
23
23
|
actionSubjectId: 'mediaCardDropDownMenu',
|
|
24
24
|
attributes: {}
|
|
25
25
|
})
|
|
26
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
26
27
|
})(CardActionButton);
|
|
27
28
|
// Trick applied due to the lack of props type of DropdownItem
|
|
28
29
|
var DropdownItemWithProps = function DropdownItemWithProps(props) {
|
|
@@ -71,17 +72,21 @@ export var CardActionsDropdownMenu = /*#__PURE__*/function (_Component) {
|
|
|
71
72
|
trigger: function trigger(_ref) {
|
|
72
73
|
var triggerRef = _ref.triggerRef,
|
|
73
74
|
providedProps = _objectWithoutProperties(_ref, _excluded);
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
//
|
|
77
|
-
,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
75
|
+
return (
|
|
76
|
+
/*#__PURE__*/
|
|
77
|
+
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
78
|
+
React.createElement(CardActionButtonWithAnalytics, _extends({
|
|
79
|
+
variant: triggerVariant
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
81
|
+
,
|
|
82
|
+
style: {
|
|
83
|
+
color: triggerColor
|
|
84
|
+
},
|
|
85
|
+
ref: triggerRef
|
|
86
|
+
}, providedProps), /*#__PURE__*/React.createElement(MoreIcon, {
|
|
87
|
+
label: "more"
|
|
88
|
+
}))
|
|
89
|
+
);
|
|
85
90
|
}
|
|
86
91
|
}, /*#__PURE__*/React.createElement(DropdownItemGroup, null, actions.map(createDropdownItemWithAnalytics)));
|
|
87
92
|
} else {
|
|
@@ -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.0.
|
|
106
|
+
packageName: "78.0.12",
|
|
107
107
|
componentName: 'mediaInlineCard',
|
|
108
108
|
component: 'mediaInlineCard'
|
|
109
109
|
};
|
|
@@ -120,7 +120,7 @@ var WrappedMediaInlineAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Com
|
|
|
120
120
|
}
|
|
121
121
|
}]);
|
|
122
122
|
return WrappedMediaInlineAnalyticsErrorBoundary;
|
|
123
|
-
}(React.Component);
|
|
123
|
+
}(React.Component); // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
124
124
|
_defineProperty(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
|
|
125
125
|
var MediaInlineAnalyticsErrorBoundary = withAnalyticsEvents()(WrappedMediaInlineAnalyticsErrorBoundary);
|
|
126
126
|
export default MediaInlineAnalyticsErrorBoundary;
|
|
@@ -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.0.
|
|
11
|
+
var packageVersion = "78.0.12";
|
|
12
12
|
var concurrentExperience;
|
|
13
13
|
var getExperience = function getExperience(id) {
|
|
14
14
|
if (!concurrentExperience) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "78.0.
|
|
3
|
+
"version": "78.0.12",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/analytics-next": "^
|
|
40
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
39
|
+
"@atlaskit/analytics-next": "^10.0.0",
|
|
40
|
+
"@atlaskit/dropdown-menu": "^12.16.0",
|
|
41
41
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
42
|
+
"@atlaskit/icon": "^22.11.0",
|
|
43
43
|
"@atlaskit/media-client": "^27.3.0",
|
|
44
44
|
"@atlaskit/media-client-react": "^2.0.0",
|
|
45
45
|
"@atlaskit/media-common": "^11.3.0",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"@atlaskit/media-ui": "^25.10.0",
|
|
49
49
|
"@atlaskit/media-viewer": "^48.6.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
51
|
-
"@atlaskit/primitives": "^
|
|
51
|
+
"@atlaskit/primitives": "^12.0.0",
|
|
52
52
|
"@atlaskit/spinner": "^16.2.0",
|
|
53
53
|
"@atlaskit/theme": "^12.11.0",
|
|
54
|
-
"@atlaskit/tokens": "^1.
|
|
55
|
-
"@atlaskit/tooltip": "^18.
|
|
54
|
+
"@atlaskit/tokens": "^1.57.0",
|
|
55
|
+
"@atlaskit/tooltip": "^18.6.0",
|
|
56
56
|
"@atlaskit/ufo": "^0.2.0",
|
|
57
57
|
"@atlaskit/ufo-interaction-ignore": "^1.1.0",
|
|
58
58
|
"@atlaskit/visually-hidden": "^1.4.0",
|