@atlaskit/media-card 79.2.5 → 79.3.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 +16 -0
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/cardWithMediaClient.js +4 -0
- package/dist/cjs/card/inlinePlayer.js +27 -2
- package/dist/cjs/card/media-card-analytics-error-boundary.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/cardWithMediaClient.js +5 -1
- package/dist/es2019/card/inlinePlayer.js +27 -2
- package/dist/es2019/card/media-card-analytics-error-boundary.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/cardWithMediaClient.js +5 -1
- package/dist/esm/card/inlinePlayer.js +28 -3
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/package.json +18 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/media-card
|
|
2
2
|
|
|
3
|
+
## 79.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#153282](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/153282)
|
|
8
|
+
[`b271b4820aef9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b271b4820aef9) -
|
|
9
|
+
Added support for Video Captions (experimental)
|
|
10
|
+
- [#157095](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157095)
|
|
11
|
+
[`ec7b5d3268aaf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ec7b5d3268aaf) -
|
|
12
|
+
We are testing the migration to the ADS Link component behind a feature flag. If this fix is
|
|
13
|
+
successful it will be available in a later release.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 79.2.5
|
|
4
20
|
|
|
5
21
|
### 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 = "79.
|
|
24
|
+
var packageVersion = "79.3.0";
|
|
25
25
|
var CardBase = exports.CardBase = function CardBase(_ref) {
|
|
26
26
|
var identifier = _ref.identifier,
|
|
27
27
|
otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -9,10 +9,14 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _mediaClientReact = require("@atlaskit/media-client-react");
|
|
10
10
|
var _mediaCardAnalyticsErrorBoundary = _interopRequireDefault(require("./media-card-analytics-error-boundary"));
|
|
11
11
|
var _card = require("./card");
|
|
12
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
13
|
var CardWithMediaClient = exports.CardWithMediaClient = function CardWithMediaClient(props) {
|
|
13
14
|
var dimensions = props.dimensions,
|
|
14
15
|
onClick = props.onClick;
|
|
15
16
|
var Card = _react.default.useMemo(function () {
|
|
17
|
+
if ((0, _platformFeatureFlags.fg)('platform_media_video_captions')) {
|
|
18
|
+
return (0, _mediaClientReact.withMediaClientAndSettings)(_card.Card);
|
|
19
|
+
}
|
|
16
20
|
return (0, _mediaClientReact.withMediaClient)(_card.Card);
|
|
17
21
|
}, []);
|
|
18
22
|
return /*#__PURE__*/_react.default.createElement(_mediaCardAnalyticsErrorBoundary.default, {
|
|
@@ -19,6 +19,7 @@ var _progressBar = require("./ui/progressBar/progressBar");
|
|
|
19
19
|
var _inlinePlayerWrapper = require("./inlinePlayerWrapper");
|
|
20
20
|
var _useBreakpoint = require("./useBreakpoint");
|
|
21
21
|
var _mediaClientReact = require("@atlaskit/media-client-react");
|
|
22
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
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); }
|
|
23
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 && {}.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
25
|
var getPreferredVideoArtifact = exports.getPreferredVideoArtifact = function getPreferredVideoArtifact(fileState) {
|
|
@@ -182,8 +183,32 @@ var InlinePlayerBase = exports.InlinePlayerBase = function InlinePlayerBase(_ref
|
|
|
182
183
|
onClick: onClick,
|
|
183
184
|
innerRef: forwardRef || undefined,
|
|
184
185
|
dimensions: dimensions
|
|
185
|
-
}, /*#__PURE__*/_react.default.createElement(_mediaUi.InactivityDetector, null, function (checkMouseMovement) {
|
|
186
|
-
return /*#__PURE__*/_react.default.createElement(_mediaUi.
|
|
186
|
+
}, /*#__PURE__*/_react.default.createElement(_mediaUi.InactivityDetector, null, function (checkMouseMovement, controlsAreVisible) {
|
|
187
|
+
return (0, _platformFeatureFlags.fg)('platform_media_video_captions') ? /*#__PURE__*/_react.default.createElement(_mediaUi.MediaPlayer, {
|
|
188
|
+
identifier: identifier,
|
|
189
|
+
type: "video",
|
|
190
|
+
src: fileSrc,
|
|
191
|
+
onFullscreenChange: onFullscreenChange,
|
|
192
|
+
isAutoPlay: autoplay,
|
|
193
|
+
isHDAvailable: false,
|
|
194
|
+
onDownloadClick: function onDownloadClick() {
|
|
195
|
+
mediaClient.file.downloadBinary(id, undefined, collectionName);
|
|
196
|
+
},
|
|
197
|
+
onFirstPlay: function onFirstPlay() {
|
|
198
|
+
_mediaClient.globalMediaEventEmitter.emit('media-viewed', {
|
|
199
|
+
fileId: id,
|
|
200
|
+
viewingLevel: 'full'
|
|
201
|
+
});
|
|
202
|
+
},
|
|
203
|
+
lastWatchTimeConfig: {
|
|
204
|
+
contentId: id
|
|
205
|
+
},
|
|
206
|
+
originalDimensions: originalDimensions,
|
|
207
|
+
showControls: checkMouseMovement,
|
|
208
|
+
poster: cardPreview === null || cardPreview === void 0 ? void 0 : cardPreview.dataURI,
|
|
209
|
+
videoControlsWrapperRef: videoControlsWrapperRef,
|
|
210
|
+
areControlsVisible: controlsAreVisible
|
|
211
|
+
}) : /*#__PURE__*/_react.default.createElement(_mediaUi.CustomMediaPlayer, {
|
|
187
212
|
type: "video",
|
|
188
213
|
src: fileSrc,
|
|
189
214
|
onFullscreenChange: onFullscreenChange,
|
|
@@ -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 = "79.
|
|
90
|
+
var packageVersion = "79.3.0";
|
|
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)({
|
|
@@ -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: "79.
|
|
120
|
+
packageName: "79.3.0",
|
|
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 = "79.
|
|
18
|
+
var packageVersion = "79.3.0";
|
|
19
19
|
var SAMPLE_RATE = 0.05;
|
|
20
20
|
var concurrentExperience;
|
|
21
21
|
var getExperience = function getExperience(id) {
|
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 = "79.
|
|
12
|
+
const packageVersion = "79.3.0";
|
|
13
13
|
export const CardBase = ({
|
|
14
14
|
identifier,
|
|
15
15
|
...otherProps
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { withMediaClient } from '@atlaskit/media-client-react';
|
|
2
|
+
import { withMediaClientAndSettings, withMediaClient } from '@atlaskit/media-client-react';
|
|
3
3
|
import MediaCardAnalyticsErrorBoundary from './media-card-analytics-error-boundary';
|
|
4
4
|
import { Card as InternalCard } from './card';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
export const CardWithMediaClient = props => {
|
|
6
7
|
const {
|
|
7
8
|
dimensions,
|
|
8
9
|
onClick
|
|
9
10
|
} = props;
|
|
10
11
|
const Card = React.useMemo(() => {
|
|
12
|
+
if (fg('platform_media_video_captions')) {
|
|
13
|
+
return withMediaClientAndSettings(InternalCard);
|
|
14
|
+
}
|
|
11
15
|
return withMediaClient(InternalCard);
|
|
12
16
|
}, []);
|
|
13
17
|
return /*#__PURE__*/React.createElement(MediaCardAnalyticsErrorBoundary, {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useRef, useState, useEffect } from 'react';
|
|
3
3
|
import { globalMediaEventEmitter } from '@atlaskit/media-client';
|
|
4
|
-
import { CustomMediaPlayer, InactivityDetector } from '@atlaskit/media-ui';
|
|
4
|
+
import { CustomMediaPlayer, MediaPlayer, InactivityDetector } from '@atlaskit/media-ui';
|
|
5
5
|
import { defaultImageCardDimensions } from '../utils';
|
|
6
6
|
import { CardLoading } from '../utils/lightCards/cardLoading';
|
|
7
7
|
import { ProgressBar } from './ui/progressBar/progressBar';
|
|
8
8
|
import { InlinePlayerWrapper } from './inlinePlayerWrapper';
|
|
9
9
|
import { useBreakpoint } from './useBreakpoint';
|
|
10
10
|
import { useFileState, useMediaClient } from '@atlaskit/media-client-react';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
export const getPreferredVideoArtifact = fileState => {
|
|
12
13
|
if (fileState.status === 'processed' || fileState.status === 'processing') {
|
|
13
14
|
const {
|
|
@@ -126,7 +127,31 @@ export const InlinePlayerBase = ({
|
|
|
126
127
|
onClick: onClick,
|
|
127
128
|
innerRef: forwardRef || undefined,
|
|
128
129
|
dimensions: dimensions
|
|
129
|
-
}, /*#__PURE__*/React.createElement(InactivityDetector, null, checkMouseMovement => /*#__PURE__*/React.createElement(
|
|
130
|
+
}, /*#__PURE__*/React.createElement(InactivityDetector, null, (checkMouseMovement, controlsAreVisible) => fg('platform_media_video_captions') ? /*#__PURE__*/React.createElement(MediaPlayer, {
|
|
131
|
+
identifier: identifier,
|
|
132
|
+
type: "video",
|
|
133
|
+
src: fileSrc,
|
|
134
|
+
onFullscreenChange: onFullscreenChange,
|
|
135
|
+
isAutoPlay: autoplay,
|
|
136
|
+
isHDAvailable: false,
|
|
137
|
+
onDownloadClick: () => {
|
|
138
|
+
mediaClient.file.downloadBinary(id, undefined, collectionName);
|
|
139
|
+
},
|
|
140
|
+
onFirstPlay: () => {
|
|
141
|
+
globalMediaEventEmitter.emit('media-viewed', {
|
|
142
|
+
fileId: id,
|
|
143
|
+
viewingLevel: 'full'
|
|
144
|
+
});
|
|
145
|
+
},
|
|
146
|
+
lastWatchTimeConfig: {
|
|
147
|
+
contentId: id
|
|
148
|
+
},
|
|
149
|
+
originalDimensions: originalDimensions,
|
|
150
|
+
showControls: checkMouseMovement,
|
|
151
|
+
poster: cardPreview === null || cardPreview === void 0 ? void 0 : cardPreview.dataURI,
|
|
152
|
+
videoControlsWrapperRef: videoControlsWrapperRef,
|
|
153
|
+
areControlsVisible: controlsAreVisible
|
|
154
|
+
}) : /*#__PURE__*/React.createElement(CustomMediaPlayer, {
|
|
130
155
|
type: "video",
|
|
131
156
|
src: fileSrc,
|
|
132
157
|
onFullscreenChange: onFullscreenChange,
|
|
@@ -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 = "79.
|
|
69
|
+
const packageVersion = "79.3.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({
|
|
@@ -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: "79.
|
|
40
|
+
packageName: "79.3.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 = "79.
|
|
8
|
+
const packageVersion = "79.3.0";
|
|
9
9
|
const SAMPLE_RATE = 0.05;
|
|
10
10
|
let concurrentExperience;
|
|
11
11
|
const getExperience = id => {
|
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 = "79.
|
|
14
|
+
var packageVersion = "79.3.0";
|
|
15
15
|
export var CardBase = function CardBase(_ref) {
|
|
16
16
|
var identifier = _ref.identifier,
|
|
17
17
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { withMediaClient } from '@atlaskit/media-client-react';
|
|
2
|
+
import { withMediaClientAndSettings, withMediaClient } from '@atlaskit/media-client-react';
|
|
3
3
|
import MediaCardAnalyticsErrorBoundary from './media-card-analytics-error-boundary';
|
|
4
4
|
import { Card as InternalCard } from './card';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
export var CardWithMediaClient = function CardWithMediaClient(props) {
|
|
6
7
|
var dimensions = props.dimensions,
|
|
7
8
|
onClick = props.onClick;
|
|
8
9
|
var Card = React.useMemo(function () {
|
|
10
|
+
if (fg('platform_media_video_captions')) {
|
|
11
|
+
return withMediaClientAndSettings(InternalCard);
|
|
12
|
+
}
|
|
9
13
|
return withMediaClient(InternalCard);
|
|
10
14
|
}, []);
|
|
11
15
|
return /*#__PURE__*/React.createElement(MediaCardAnalyticsErrorBoundary, {
|
|
@@ -4,13 +4,14 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
import React, { useRef, useState, useEffect } from 'react';
|
|
6
6
|
import { globalMediaEventEmitter } from '@atlaskit/media-client';
|
|
7
|
-
import { CustomMediaPlayer, InactivityDetector } from '@atlaskit/media-ui';
|
|
7
|
+
import { CustomMediaPlayer, MediaPlayer, InactivityDetector } from '@atlaskit/media-ui';
|
|
8
8
|
import { defaultImageCardDimensions } from '../utils';
|
|
9
9
|
import { CardLoading } from '../utils/lightCards/cardLoading';
|
|
10
10
|
import { ProgressBar } from './ui/progressBar/progressBar';
|
|
11
11
|
import { InlinePlayerWrapper } from './inlinePlayerWrapper';
|
|
12
12
|
import { useBreakpoint } from './useBreakpoint';
|
|
13
13
|
import { useFileState, useMediaClient } from '@atlaskit/media-client-react';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
export var getPreferredVideoArtifact = function getPreferredVideoArtifact(fileState) {
|
|
15
16
|
if (fileState.status === 'processed' || fileState.status === 'processing') {
|
|
16
17
|
var artifacts = fileState.artifacts;
|
|
@@ -172,8 +173,32 @@ export var InlinePlayerBase = function InlinePlayerBase(_ref) {
|
|
|
172
173
|
onClick: onClick,
|
|
173
174
|
innerRef: forwardRef || undefined,
|
|
174
175
|
dimensions: dimensions
|
|
175
|
-
}, /*#__PURE__*/React.createElement(InactivityDetector, null, function (checkMouseMovement) {
|
|
176
|
-
return /*#__PURE__*/React.createElement(
|
|
176
|
+
}, /*#__PURE__*/React.createElement(InactivityDetector, null, function (checkMouseMovement, controlsAreVisible) {
|
|
177
|
+
return fg('platform_media_video_captions') ? /*#__PURE__*/React.createElement(MediaPlayer, {
|
|
178
|
+
identifier: identifier,
|
|
179
|
+
type: "video",
|
|
180
|
+
src: fileSrc,
|
|
181
|
+
onFullscreenChange: onFullscreenChange,
|
|
182
|
+
isAutoPlay: autoplay,
|
|
183
|
+
isHDAvailable: false,
|
|
184
|
+
onDownloadClick: function onDownloadClick() {
|
|
185
|
+
mediaClient.file.downloadBinary(id, undefined, collectionName);
|
|
186
|
+
},
|
|
187
|
+
onFirstPlay: function onFirstPlay() {
|
|
188
|
+
globalMediaEventEmitter.emit('media-viewed', {
|
|
189
|
+
fileId: id,
|
|
190
|
+
viewingLevel: 'full'
|
|
191
|
+
});
|
|
192
|
+
},
|
|
193
|
+
lastWatchTimeConfig: {
|
|
194
|
+
contentId: id
|
|
195
|
+
},
|
|
196
|
+
originalDimensions: originalDimensions,
|
|
197
|
+
showControls: checkMouseMovement,
|
|
198
|
+
poster: cardPreview === null || cardPreview === void 0 ? void 0 : cardPreview.dataURI,
|
|
199
|
+
videoControlsWrapperRef: videoControlsWrapperRef,
|
|
200
|
+
areControlsVisible: controlsAreVisible
|
|
201
|
+
}) : /*#__PURE__*/React.createElement(CustomMediaPlayer, {
|
|
177
202
|
type: "video",
|
|
178
203
|
src: fileSrc,
|
|
179
204
|
onFullscreenChange: onFullscreenChange,
|
|
@@ -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 = "79.
|
|
83
|
+
var packageVersion = "79.3.0";
|
|
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({
|
|
@@ -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: "79.
|
|
104
|
+
packageName: "79.3.0",
|
|
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 = "79.
|
|
11
|
+
var packageVersion = "79.3.0";
|
|
12
12
|
var SAMPLE_RATE = 0.05;
|
|
13
13
|
var concurrentExperience;
|
|
14
14
|
var getExperience = function getExperience(id) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "79.
|
|
3
|
+
"version": "79.3.0",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,22 +38,23 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
41
|
-
"@atlaskit/dropdown-menu": "^15.
|
|
41
|
+
"@atlaskit/dropdown-menu": "^15.2.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
43
|
-
"@atlaskit/icon": "^26.
|
|
43
|
+
"@atlaskit/icon": "^26.1.0",
|
|
44
|
+
"@atlaskit/link": "^3.2.0",
|
|
44
45
|
"@atlaskit/media-client": "^33.3.0",
|
|
45
46
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
46
|
-
"@atlaskit/media-common": "^12.
|
|
47
|
+
"@atlaskit/media-common": "^12.1.0",
|
|
47
48
|
"@atlaskit/media-file-preview": "^0.11.0",
|
|
48
|
-
"@atlaskit/media-svg": "^2.
|
|
49
|
-
"@atlaskit/media-ui": "^28.
|
|
50
|
-
"@atlaskit/media-viewer": "^52.
|
|
49
|
+
"@atlaskit/media-svg": "^2.1.0",
|
|
50
|
+
"@atlaskit/media-ui": "^28.2.0",
|
|
51
|
+
"@atlaskit/media-viewer": "^52.1.0",
|
|
51
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
52
|
-
"@atlaskit/primitives": "^14.
|
|
53
|
-
"@atlaskit/react-ufo": "^3.
|
|
53
|
+
"@atlaskit/primitives": "^14.8.0",
|
|
54
|
+
"@atlaskit/react-ufo": "^3.13.0",
|
|
54
55
|
"@atlaskit/spinner": "^18.0.0",
|
|
55
56
|
"@atlaskit/theme": "^18.0.0",
|
|
56
|
-
"@atlaskit/tokens": "^4.
|
|
57
|
+
"@atlaskit/tokens": "^4.9.0",
|
|
57
58
|
"@atlaskit/tooltip": "^20.0.0",
|
|
58
59
|
"@atlaskit/ufo": "^0.4.0",
|
|
59
60
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
78
79
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
79
80
|
"@atlaskit/form": "^12.0.0",
|
|
80
|
-
"@atlaskit/inline-message": "^15.
|
|
81
|
+
"@atlaskit/inline-message": "^15.2.0",
|
|
81
82
|
"@atlaskit/media-core": "^36.1.0",
|
|
82
83
|
"@atlaskit/media-picker": "^69.0.0",
|
|
83
84
|
"@atlaskit/media-state": "^1.6.0",
|
|
@@ -132,6 +133,12 @@
|
|
|
132
133
|
},
|
|
133
134
|
"platform_media_card_image_render": {
|
|
134
135
|
"type": "boolean"
|
|
136
|
+
},
|
|
137
|
+
"dst-a11y__replace-anchor-with-link__media-exif": {
|
|
138
|
+
"type": "boolean"
|
|
139
|
+
},
|
|
140
|
+
"platform_media_video_captions": {
|
|
141
|
+
"type": "boolean"
|
|
135
142
|
}
|
|
136
143
|
},
|
|
137
144
|
"techstack": {
|