@atlaskit/media-card 77.10.9 → 77.10.10
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 +6 -0
- package/classnames/package.json +1 -1
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/v2/cardV2.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/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/v2/cardV2.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/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/v2/cardV2.js +1 -1
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/types/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +2 -2
- package/dist/types/card/ui/playButton/styles.d.ts +1 -1
- package/dist/types/card/ui/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/playButton/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/styles.d.ts +1 -1
- package/package.json +6 -6
- package/types/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/media-card
|
|
2
2
|
|
|
3
|
+
## 77.10.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
|
+
|
|
3
9
|
## 77.10.9
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/classnames/package.json
CHANGED
package/dist/cjs/card/card.js
CHANGED
|
@@ -50,7 +50,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
50
50
|
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); }; }
|
|
51
51
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
52
52
|
var packageName = "@atlaskit/media-card";
|
|
53
|
-
var packageVersion = "77.10.
|
|
53
|
+
var packageVersion = "77.10.10";
|
|
54
54
|
var CardBase = exports.CardBase = /*#__PURE__*/function (_Component) {
|
|
55
55
|
(0, _inherits2.default)(CardBase, _Component);
|
|
56
56
|
var _super = _createSuper(CardBase);
|
|
@@ -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 = "77.10.
|
|
93
|
+
var packageVersion = "77.10.10";
|
|
94
94
|
var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
95
95
|
packageVersion: packageVersion,
|
|
96
96
|
packageName: packageName,
|
|
@@ -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.10.
|
|
19
|
+
var packageVersion = "77.10.10";
|
|
20
20
|
var CardV2Base = exports.CardV2Base = function CardV2Base(_ref) {
|
|
21
21
|
var identifier = _ref.identifier,
|
|
22
22
|
otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -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.10.
|
|
122
|
+
packageName: "77.10.10",
|
|
123
123
|
componentName: 'mediaInlineCard',
|
|
124
124
|
component: 'mediaInlineCard'
|
|
125
125
|
};
|
|
@@ -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.10.
|
|
17
|
+
var packageVersion = "77.10.10";
|
|
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.10.
|
|
31
|
+
const packageVersion = "77.10.10";
|
|
32
32
|
export class CardBase extends Component {
|
|
33
33
|
constructor(props) {
|
|
34
34
|
super(props);
|
|
@@ -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.10.
|
|
69
|
+
const packageVersion = "77.10.10";
|
|
70
70
|
const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
71
71
|
packageVersion,
|
|
72
72
|
packageName,
|
|
@@ -7,7 +7,7 @@ import { IntlProvider, injectIntl } from 'react-intl-next';
|
|
|
7
7
|
import { ExternalImageCard } from './externalImageCard';
|
|
8
8
|
import { FileCard } from './fileCard';
|
|
9
9
|
const packageName = "@atlaskit/media-card";
|
|
10
|
-
const packageVersion = "77.10.
|
|
10
|
+
const packageVersion = "77.10.10";
|
|
11
11
|
export const CardV2Base = ({
|
|
12
12
|
identifier,
|
|
13
13
|
...otherProps
|
|
@@ -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: "77.10.
|
|
40
|
+
packageName: "77.10.10",
|
|
41
41
|
componentName: 'mediaInlineCard',
|
|
42
42
|
component: 'mediaInlineCard'
|
|
43
43
|
};
|
|
@@ -4,7 +4,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
|
|
|
4
4
|
import { MediaCardError } from '../errors';
|
|
5
5
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
6
6
|
const packageName = "@atlaskit/media-card";
|
|
7
|
-
const packageVersion = "77.10.
|
|
7
|
+
const packageVersion = "77.10.10";
|
|
8
8
|
let concurrentExperience;
|
|
9
9
|
const getExperience = id => {
|
|
10
10
|
if (!concurrentExperience) {
|
package/dist/esm/card/card.js
CHANGED
|
@@ -41,7 +41,7 @@ import { completeUfoExperience, startUfoExperience, abortUfoExperience } from '.
|
|
|
41
41
|
import { generateUniqueId } from '../utils/generateUniqueId';
|
|
42
42
|
import { DateOverrideContext } from '../dateOverrideContext';
|
|
43
43
|
var packageName = "@atlaskit/media-card";
|
|
44
|
-
var packageVersion = "77.10.
|
|
44
|
+
var packageVersion = "77.10.10";
|
|
45
45
|
export var CardBase = /*#__PURE__*/function (_Component) {
|
|
46
46
|
_inherits(CardBase, _Component);
|
|
47
47
|
var _super = _createSuper(CardBase);
|
|
@@ -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 = "77.10.
|
|
86
|
+
var packageVersion = "77.10.10";
|
|
87
87
|
var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
88
88
|
packageVersion: packageVersion,
|
|
89
89
|
packageName: packageName,
|
|
@@ -9,7 +9,7 @@ import { IntlProvider, injectIntl } from 'react-intl-next';
|
|
|
9
9
|
import { ExternalImageCard } from './externalImageCard';
|
|
10
10
|
import { FileCard } from './fileCard';
|
|
11
11
|
var packageName = "@atlaskit/media-card";
|
|
12
|
-
var packageVersion = "77.10.
|
|
12
|
+
var packageVersion = "77.10.10";
|
|
13
13
|
export var CardV2Base = function CardV2Base(_ref) {
|
|
14
14
|
var identifier = _ref.identifier,
|
|
15
15
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -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: "77.10.
|
|
106
|
+
packageName: "77.10.10",
|
|
107
107
|
componentName: 'mediaInlineCard',
|
|
108
108
|
component: 'mediaInlineCard'
|
|
109
109
|
};
|
|
@@ -7,7 +7,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
|
|
|
7
7
|
import { MediaCardError } from '../errors';
|
|
8
8
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
9
9
|
var packageName = "@atlaskit/media-card";
|
|
10
|
-
var packageVersion = "77.10.
|
|
10
|
+
var packageVersion = "77.10.10";
|
|
11
11
|
var concurrentExperience;
|
|
12
12
|
var getExperience = function getExperience(id) {
|
|
13
13
|
if (!concurrentExperience) {
|
|
@@ -4,10 +4,10 @@ export declare const visuallyHiddenStyles: import("@emotion/react").SerializedSt
|
|
|
4
4
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
5
5
|
fileName: string;
|
|
6
6
|
innerRef: React.Ref<HTMLButtonElement>;
|
|
7
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement> & WrappedComponentProps
|
|
7
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & WrappedComponentProps>> & {
|
|
8
8
|
WrappedComponent: React.ComponentType<{
|
|
9
9
|
fileName: string;
|
|
10
10
|
innerRef: React.Ref<HTMLButtonElement>;
|
|
11
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement> & WrappedComponentProps
|
|
11
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & WrappedComponentProps>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const playButtonClassName = "media-card-play-button";
|
|
2
2
|
export declare const bkgClassName = "play-icon-background";
|
|
3
|
-
export declare const fixedPlayButtonStyles:
|
|
3
|
+
export declare const fixedPlayButtonStyles = "\n .play-icon-background {\n width: 56px;\n height: 56px;\n }\n";
|
|
4
4
|
export declare const playButtonWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const backgroundStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -6,7 +6,7 @@ export declare const generateResponsiveStyles: (breakpoint?: Breakpoint) => stri
|
|
|
6
6
|
export declare const getWrapperDimensions: (dimensions?: CardDimensions, appearance?: CardAppearance) => string;
|
|
7
7
|
export declare const getWrapperShadow: (disableOverlay: boolean, selected: boolean) => string;
|
|
8
8
|
export declare const getCursorStyle: (cursor: MediaCardCursor | undefined) => string;
|
|
9
|
-
export declare const getClickablePlayButtonStyles: (isPlayButtonClickable: boolean) =>
|
|
9
|
+
export declare const getClickablePlayButtonStyles: (isPlayButtonClickable: boolean) => "" | "\n &:hover .media-card-play-button {\n \n .play-icon-background {\n width: 56px;\n height: 56px;\n }\n\n }\n ";
|
|
10
10
|
export declare const getSelectableTickBoxStyles: (isTickBoxSelectable: boolean) => string;
|
|
11
11
|
export declare const cardImageContainerStyles: import("@emotion/react").SerializedStyles;
|
|
12
12
|
export declare const transition: (propertyName?: string) => string;
|
|
@@ -4,10 +4,10 @@ export declare const visuallyHiddenStyles: import("@emotion/react").SerializedSt
|
|
|
4
4
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
5
5
|
fileName: string;
|
|
6
6
|
innerRef: React.Ref<HTMLButtonElement>;
|
|
7
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement> & WrappedComponentProps
|
|
7
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & WrappedComponentProps>> & {
|
|
8
8
|
WrappedComponent: React.ComponentType<{
|
|
9
9
|
fileName: string;
|
|
10
10
|
innerRef: React.Ref<HTMLButtonElement>;
|
|
11
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement> & WrappedComponentProps
|
|
11
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & WrappedComponentProps>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const playButtonClassName = "media-card-play-button";
|
|
2
2
|
export declare const bkgClassName = "play-icon-background";
|
|
3
|
-
export declare const fixedPlayButtonStyles:
|
|
3
|
+
export declare const fixedPlayButtonStyles = "\n .play-icon-background {\n width: 56px;\n height: 56px;\n }\n";
|
|
4
4
|
export declare const playButtonWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const backgroundStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -6,7 +6,7 @@ export declare const generateResponsiveStyles: (breakpoint?: Breakpoint) => stri
|
|
|
6
6
|
export declare const getWrapperDimensions: (dimensions?: CardDimensions, appearance?: CardAppearance) => string;
|
|
7
7
|
export declare const getWrapperShadow: (disableOverlay: boolean, selected: boolean) => string;
|
|
8
8
|
export declare const getCursorStyle: (cursor: MediaCardCursor | undefined) => string;
|
|
9
|
-
export declare const getClickablePlayButtonStyles: (isPlayButtonClickable: boolean) =>
|
|
9
|
+
export declare const getClickablePlayButtonStyles: (isPlayButtonClickable: boolean) => "" | "\n &:hover .media-card-play-button {\n \n .play-icon-background {\n width: 56px;\n height: 56px;\n }\n\n }\n ";
|
|
10
10
|
export declare const getSelectableTickBoxStyles: (isTickBoxSelectable: boolean) => string;
|
|
11
11
|
export declare const cardImageContainerStyles: import("@emotion/react").SerializedStyles;
|
|
12
12
|
export declare const transition: (propertyName?: string) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "77.10.
|
|
3
|
+
"version": "77.10.10",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"@atlaskit/media-common": "^11.1.0",
|
|
46
46
|
"@atlaskit/media-file-preview": "^0.5.0",
|
|
47
47
|
"@atlaskit/media-ui": "^25.4.0",
|
|
48
|
-
"@atlaskit/media-viewer": "^48.
|
|
48
|
+
"@atlaskit/media-viewer": "^48.4.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^0.2.2",
|
|
50
|
-
"@atlaskit/primitives": "^5.
|
|
50
|
+
"@atlaskit/primitives": "^5.1.0",
|
|
51
51
|
"@atlaskit/spinner": "^16.0.0",
|
|
52
52
|
"@atlaskit/theme": "^12.6.0",
|
|
53
|
-
"@atlaskit/tokens": "^1.
|
|
53
|
+
"@atlaskit/tokens": "^1.42.0",
|
|
54
54
|
"@atlaskit/tooltip": "^18.1.0",
|
|
55
55
|
"@atlaskit/ufo": "^0.2.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"react": "^16.8.0",
|
|
91
91
|
"react-dom": "^16.8.0",
|
|
92
92
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
93
|
-
"typescript": "~4.
|
|
93
|
+
"typescript": "~5.4.2",
|
|
94
94
|
"uuid": "^3.1.0",
|
|
95
95
|
"wait-for-expect": "^1.2.0"
|
|
96
96
|
},
|
|
@@ -115,4 +115,4 @@
|
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
118
|
-
}
|
|
118
|
+
}
|