@atlaskit/media-card 78.17.0 → 78.17.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 +16 -0
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/inlinePlayerWrapperStyles.js +1 -1
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/ui/actionsBar/styles.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/inlinePlayerWrapperStyles.js +1 -1
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/actionsBar/styles.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/inlinePlayerWrapperStyles.js +1 -1
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/ui/actionsBar/styles.js +1 -1
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/media-card
|
|
2
2
|
|
|
3
|
+
## 78.17.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#99141](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99141)
|
|
8
|
+
[`ea40627d37ed3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ea40627d37ed3) -
|
|
9
|
+
Fixed meida card hiding selection / highlighting styles
|
|
10
|
+
|
|
11
|
+
## 78.17.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#98553](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98553)
|
|
16
|
+
[`d3cdb7e8e6bfb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d3cdb7e8e6bfb) -
|
|
17
|
+
Fixed Media Card Actions click through. Media Viewer opens correctly
|
|
18
|
+
|
|
3
19
|
## 78.17.0
|
|
4
20
|
|
|
5
21
|
### 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 = "78.17.
|
|
24
|
+
var packageVersion = "78.17.2";
|
|
25
25
|
var CardBase = exports.CardBase = function CardBase(_ref) {
|
|
26
26
|
var identifier = _ref.identifier,
|
|
27
27
|
otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -17,7 +17,7 @@ var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/u
|
|
|
17
17
|
*/
|
|
18
18
|
var getSelectedBorderStyle = function getSelectedBorderStyle(_ref) {
|
|
19
19
|
var selected = _ref.selected;
|
|
20
|
-
return "\n ".concat(_selection.hideNativeBrowserTextSelectionStyles, "\n\n &::after {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n box-sizing: border-box;\n pointer-events: none;\n ").concat(_constants.borderRadius, "\n ").concat(selected ? (0, _selection.getSelectionStyles)([_selection.SelectionStyle.Border]) : '', "\n }\n ");
|
|
20
|
+
return "\n ".concat(selected ? _selection.hideNativeBrowserTextSelectionStyles : '', "\n\n &::after {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n box-sizing: border-box;\n pointer-events: none;\n ").concat(_constants.borderRadius, "\n ").concat(selected ? (0, _selection.getSelectionStyles)([_selection.SelectionStyle.Border]) : '', "\n }\n ");
|
|
21
21
|
};
|
|
22
22
|
var inlinePlayerClassName = exports.inlinePlayerClassName = 'media-card-inline-player';
|
|
23
23
|
var inlinePlayerWrapperStyles = exports.inlinePlayerWrapperStyles = function inlinePlayerWrapperStyles(_ref2) {
|
|
@@ -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 = "78.17.
|
|
90
|
+
var packageVersion = "78.17.2";
|
|
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)({
|
|
@@ -16,10 +16,10 @@ var wrapperStyles = exports.wrapperStyles = function wrapperStyles(isFixed) {
|
|
|
16
16
|
(0, _react.css)(isFixed ? fixedActionBarStyles : 'opacity: 0;', (0, _styles.transition)(), {
|
|
17
17
|
position: 'absolute',
|
|
18
18
|
top: 0,
|
|
19
|
+
right: 0,
|
|
19
20
|
display: 'flex',
|
|
20
21
|
flexFlow: 'row nowrap',
|
|
21
22
|
justifyContent: 'right',
|
|
22
|
-
width: '100%',
|
|
23
23
|
padding: "var(--ds-space-100, 8px)",
|
|
24
24
|
gap: "var(--ds-space-100, 8px)"
|
|
25
25
|
})
|
|
@@ -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: "78.17.
|
|
120
|
+
packageName: "78.17.2",
|
|
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 = "78.17.
|
|
18
|
+
var packageVersion = "78.17.2";
|
|
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 UFOLabel from '@atlaskit/react-ufo/label';
|
|
11
11
|
const packageName = "@atlaskit/media-card";
|
|
12
|
-
const packageVersion = "78.17.
|
|
12
|
+
const packageVersion = "78.17.2";
|
|
13
13
|
export const CardBase = ({
|
|
14
14
|
identifier,
|
|
15
15
|
...otherProps
|
|
@@ -11,7 +11,7 @@ import { getSelectionStyles, SelectionStyle, hideNativeBrowserTextSelectionStyle
|
|
|
11
11
|
const getSelectedBorderStyle = ({
|
|
12
12
|
selected
|
|
13
13
|
}) => `
|
|
14
|
-
${hideNativeBrowserTextSelectionStyles}
|
|
14
|
+
${selected ? hideNativeBrowserTextSelectionStyles : ''}
|
|
15
15
|
|
|
16
16
|
&::after {
|
|
17
17
|
content: '';
|
|
@@ -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.17.
|
|
69
|
+
const packageVersion = "78.17.2";
|
|
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({
|
|
@@ -8,10 +8,10 @@ export const wrapperStyles = isFixed =>
|
|
|
8
8
|
css(isFixed ? fixedActionBarStyles : 'opacity: 0;', transition(), {
|
|
9
9
|
position: 'absolute',
|
|
10
10
|
top: 0,
|
|
11
|
+
right: 0,
|
|
11
12
|
display: 'flex',
|
|
12
13
|
flexFlow: 'row nowrap',
|
|
13
14
|
justifyContent: 'right',
|
|
14
|
-
width: '100%',
|
|
15
15
|
padding: "var(--ds-space-100, 8px)",
|
|
16
16
|
gap: "var(--ds-space-100, 8px)"
|
|
17
17
|
});
|
|
@@ -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.17.
|
|
40
|
+
packageName: "78.17.2",
|
|
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.17.
|
|
8
|
+
const packageVersion = "78.17.2";
|
|
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 UFOLabel from '@atlaskit/react-ufo/label';
|
|
13
13
|
var packageName = "@atlaskit/media-card";
|
|
14
|
-
var packageVersion = "78.17.
|
|
14
|
+
var packageVersion = "78.17.2";
|
|
15
15
|
export var CardBase = function CardBase(_ref) {
|
|
16
16
|
var identifier = _ref.identifier,
|
|
17
17
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -12,7 +12,7 @@ import { getSelectionStyles, SelectionStyle, hideNativeBrowserTextSelectionStyle
|
|
|
12
12
|
*/
|
|
13
13
|
var getSelectedBorderStyle = function getSelectedBorderStyle(_ref) {
|
|
14
14
|
var selected = _ref.selected;
|
|
15
|
-
return "\n ".concat(hideNativeBrowserTextSelectionStyles, "\n\n &::after {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n box-sizing: border-box;\n pointer-events: none;\n ").concat(borderRadius, "\n ").concat(selected ? getSelectionStyles([SelectionStyle.Border]) : '', "\n }\n ");
|
|
15
|
+
return "\n ".concat(selected ? hideNativeBrowserTextSelectionStyles : '', "\n\n &::after {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n box-sizing: border-box;\n pointer-events: none;\n ").concat(borderRadius, "\n ").concat(selected ? getSelectionStyles([SelectionStyle.Border]) : '', "\n }\n ");
|
|
16
16
|
};
|
|
17
17
|
export var inlinePlayerClassName = 'media-card-inline-player';
|
|
18
18
|
export var inlinePlayerWrapperStyles = function inlinePlayerWrapperStyles(_ref2) {
|
|
@@ -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 = "78.17.
|
|
83
|
+
var packageVersion = "78.17.2";
|
|
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({
|
|
@@ -9,10 +9,10 @@ export var wrapperStyles = function wrapperStyles(isFixed) {
|
|
|
9
9
|
css(isFixed ? fixedActionBarStyles : 'opacity: 0;', transition(), {
|
|
10
10
|
position: 'absolute',
|
|
11
11
|
top: 0,
|
|
12
|
+
right: 0,
|
|
12
13
|
display: 'flex',
|
|
13
14
|
flexFlow: 'row nowrap',
|
|
14
15
|
justifyContent: 'right',
|
|
15
|
-
width: '100%',
|
|
16
16
|
padding: "var(--ds-space-100, 8px)",
|
|
17
17
|
gap: "var(--ds-space-100, 8px)"
|
|
18
18
|
})
|
|
@@ -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: "78.17.
|
|
104
|
+
packageName: "78.17.2",
|
|
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 = "78.17.
|
|
11
|
+
var packageVersion = "78.17.2";
|
|
12
12
|
var concurrentExperience;
|
|
13
13
|
var getExperience = function getExperience(id) {
|
|
14
14
|
if (!concurrentExperience) {
|
package/package.json
CHANGED