@atlaskit/media-card 74.7.0 → 74.7.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 +13 -0
- package/dist/cjs/card/card.js +1 -3
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +1 -1
- package/dist/cjs/inline/mediaInlineCard.js +27 -13
- package/dist/cjs/utils/analytics.js +1 -15
- package/dist/cjs/utils/ufoExperiences.js +3 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/card/card.js +2 -4
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +1 -1
- package/dist/es2019/inline/mediaInlineCard.js +27 -13
- package/dist/es2019/utils/analytics.js +1 -13
- package/dist/es2019/utils/ufoExperiences.js +4 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/card/card.js +2 -4
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +1 -1
- package/dist/esm/inline/mediaInlineCard.js +27 -13
- package/dist/esm/utils/analytics.js +1 -13
- package/dist/esm/utils/ufoExperiences.js +4 -3
- package/dist/esm/version.json +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/inline/mediaInlineCard.d.ts +3 -1
- package/dist/types/types.d.ts +7 -0
- package/dist/types/utils/analytics.d.ts +0 -2
- package/example-helpers/index.tsx +1 -4
- package/package.json +7 -7
- package/report.api.md +17 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/media-card
|
|
2
2
|
|
|
3
|
+
## 74.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`31717a1fe63`](https://bitbucket.org/atlassian/atlassian-frontend/commits/31717a1fe63) - Fix the bug when clicking on media inline files in Hybrid Renderer, viewer is not opening.
|
|
8
|
+
|
|
9
|
+
## 74.7.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`b37723f2cfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b37723f2cfa) - The component now logs the full provided feature flags object
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 74.7.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/dist/cjs/card/card.js
CHANGED
|
@@ -48,7 +48,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
48
48
|
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); }; }
|
|
49
49
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
50
50
|
var packageName = "@atlaskit/media-card";
|
|
51
|
-
var packageVersion = "74.7.
|
|
51
|
+
var packageVersion = "74.7.2";
|
|
52
52
|
var CardBase = /*#__PURE__*/function (_Component) {
|
|
53
53
|
(0, _inherits2.default)(CardBase, _Component);
|
|
54
54
|
var _super = _createSuper(CardBase);
|
|
@@ -1028,8 +1028,6 @@ var Card = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
|
1028
1028
|
packageName: packageName,
|
|
1029
1029
|
componentName: 'mediaCard',
|
|
1030
1030
|
component: 'mediaCard'
|
|
1031
|
-
}, {
|
|
1032
|
-
filterFeatureFlags: _analytics.LOGGED_FEATURE_FLAGS
|
|
1033
1031
|
})((0, _analyticsNext.withAnalyticsEvents)()((0, _reactIntlNext.injectIntl)(CardBase, {
|
|
1034
1032
|
enforceContext: false
|
|
1035
1033
|
})));
|
|
@@ -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 = "74.7.
|
|
93
|
+
var packageVersion = "74.7.2";
|
|
94
94
|
var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
95
95
|
packageVersion: packageVersion,
|
|
96
96
|
packageName: packageName,
|
|
@@ -77,7 +77,7 @@ var WrappedMediaInlineAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Com
|
|
|
77
77
|
}(_react.default.Component);
|
|
78
78
|
(0, _defineProperty2.default)(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
|
|
79
79
|
var packageName = "@atlaskit/media-card";
|
|
80
|
-
var packageVersion = "74.7.
|
|
80
|
+
var packageVersion = "74.7.2";
|
|
81
81
|
var MediaInlineAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
82
82
|
packageVersion: packageVersion,
|
|
83
83
|
packageName: packageName,
|
|
@@ -22,6 +22,7 @@ var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
|
|
|
22
22
|
var mediaClient = _ref.mediaClient,
|
|
23
23
|
identifier = _ref.identifier,
|
|
24
24
|
shouldOpenMediaViewer = _ref.shouldOpenMediaViewer,
|
|
25
|
+
shouldDisplayToolTip = _ref.shouldDisplayToolTip,
|
|
25
26
|
isSelected = _ref.isSelected,
|
|
26
27
|
onClick = _ref.onClick,
|
|
27
28
|
mediaViewerDataSource = _ref.mediaViewerDataSource,
|
|
@@ -40,12 +41,16 @@ var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
|
|
|
40
41
|
isMediaViewerVisible = _useState6[0],
|
|
41
42
|
setMediaViewerVisible = _useState6[1];
|
|
42
43
|
var onMediaInlineCardClick = function onMediaInlineCardClick(event) {
|
|
44
|
+
if (onClick) {
|
|
45
|
+
var inlineCardEvent = {
|
|
46
|
+
event: event,
|
|
47
|
+
mediaItemDetails: identifier
|
|
48
|
+
};
|
|
49
|
+
onClick(inlineCardEvent);
|
|
50
|
+
}
|
|
43
51
|
if (shouldOpenMediaViewer) {
|
|
44
52
|
setMediaViewerVisible(true);
|
|
45
53
|
}
|
|
46
|
-
if (onClick) {
|
|
47
|
-
onClick(event);
|
|
48
|
-
}
|
|
49
54
|
};
|
|
50
55
|
var onMediaViewerClose = function onMediaViewerClose() {
|
|
51
56
|
return setMediaViewerVisible(false);
|
|
@@ -140,16 +145,25 @@ var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
|
|
|
140
145
|
locale = _ref2$locale === void 0 ? 'en' : _ref2$locale;
|
|
141
146
|
formattedDate = (0, _formatDate.formatDate)(fileState.createdAt, locale);
|
|
142
147
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
148
|
+
if (shouldDisplayToolTip === undefined || shouldDisplayToolTip === true) {
|
|
149
|
+
return renderContent( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
150
|
+
position: "bottom",
|
|
151
|
+
content: formattedDate,
|
|
152
|
+
tag: "span"
|
|
153
|
+
}, /*#__PURE__*/_react.default.createElement(_mediaUi.MediaInlineCardLoadedView, {
|
|
154
|
+
icon: linkIcon,
|
|
155
|
+
title: name,
|
|
156
|
+
onClick: onMediaInlineCardClick,
|
|
157
|
+
isSelected: isSelected
|
|
158
|
+
})), mediaViewer));
|
|
159
|
+
} else {
|
|
160
|
+
return renderContent( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_mediaUi.MediaInlineCardLoadedView, {
|
|
161
|
+
icon: linkIcon,
|
|
162
|
+
title: name,
|
|
163
|
+
onClick: onMediaInlineCardClick,
|
|
164
|
+
isSelected: isSelected
|
|
165
|
+
}), mediaViewer));
|
|
166
|
+
}
|
|
153
167
|
};
|
|
154
168
|
exports.MediaInlineCardInternal = MediaInlineCardInternal;
|
|
155
169
|
var MediaInlineCard = (0, _reactIntlNext.injectIntl)(MediaInlineCardInternal, {
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.extractErrorInfo = exports.createAndFireMediaCardEvent =
|
|
7
|
+
exports.extractErrorInfo = exports.createAndFireMediaCardEvent = void 0;
|
|
8
8
|
exports.fireMediaCardEvent = fireMediaCardEvent;
|
|
9
9
|
exports.getRenderSucceededEventPayload = exports.getRenderPreviewableCardPayload = exports.getRenderFailedFileStatusPayload = exports.getRenderFailedExternalUriPayload = exports.getRenderErrorRequestMetadata = exports.getRenderErrorFailReason = exports.getRenderErrorEventPayload = exports.getRenderErrorErrorReason = exports.getRenderErrorErrorDetail = exports.getRenderCommencedEventPayload = exports.getRemoteSuccessEventPayload = exports.getFileAttributes = exports.getErrorTraceContext = exports.getErrorEventPayload = exports.getCopiedFilePayload = exports.getCacheHitEventPayload = void 0;
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
@@ -14,20 +14,6 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
14
14
|
var _errors = require("../errors");
|
|
15
15
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
16
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
17
|
-
var relevantFlags = {
|
|
18
|
-
newCardExperience: true,
|
|
19
|
-
captions: true,
|
|
20
|
-
timestampOnVideo: true,
|
|
21
|
-
observedWidth: true,
|
|
22
|
-
mediaInline: false,
|
|
23
|
-
folderUploads: false,
|
|
24
|
-
memoryCacheLogging: true,
|
|
25
|
-
fetchFileStateAfterUpload: true
|
|
26
|
-
};
|
|
27
|
-
var LOGGED_FEATURE_FLAGS = (0, _mediaCommon.filterFeatureFlagNames)(relevantFlags);
|
|
28
|
-
exports.LOGGED_FEATURE_FLAGS = LOGGED_FEATURE_FLAGS;
|
|
29
|
-
var LOGGED_FEATURE_FLAG_KEYS = (0, _mediaCommon.filterFeatureFlagKeysAllProducts)(relevantFlags);
|
|
30
|
-
exports.LOGGED_FEATURE_FLAG_KEYS = LOGGED_FEATURE_FLAG_KEYS;
|
|
31
17
|
var getFileAttributes = function getFileAttributes(metadata, fileStatus) {
|
|
32
18
|
return {
|
|
33
19
|
fileMediatype: metadata.mediaType,
|
|
@@ -7,13 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.startUfoExperience = exports.completeUfoExperience = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _ufo = require("@atlaskit/ufo");
|
|
10
|
+
var _mediaCommon = require("@atlaskit/media-common");
|
|
10
11
|
var _analytics = require("./analytics");
|
|
11
12
|
var _errors = require("../errors");
|
|
12
13
|
var _mediaClient = require("@atlaskit/media-client");
|
|
13
14
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
15
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
16
|
var packageName = "@atlaskit/media-card";
|
|
16
|
-
var packageVersion = "74.7.
|
|
17
|
+
var packageVersion = "74.7.2";
|
|
17
18
|
var concurrentExperience;
|
|
18
19
|
var getExperience = function getExperience(id) {
|
|
19
20
|
if (!concurrentExperience) {
|
|
@@ -23,7 +24,7 @@ var getExperience = function getExperience(id) {
|
|
|
23
24
|
},
|
|
24
25
|
type: _ufo.ExperienceTypes.Experience,
|
|
25
26
|
performanceType: _ufo.ExperiencePerformanceTypes.InlineResult,
|
|
26
|
-
featureFlags:
|
|
27
|
+
featureFlags: (0, _mediaCommon.getFeatureFlagKeysAllProducts)()
|
|
27
28
|
};
|
|
28
29
|
concurrentExperience = new _ufo.ConcurrentExperience('media-card-render', inlineExperience);
|
|
29
30
|
}
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/card/card.js
CHANGED
|
@@ -15,7 +15,7 @@ import { getRequestedDimensions } from '../utils/getDataURIDimension';
|
|
|
15
15
|
import { getCardPreview, getCardPreviewFromCache, removeCardPreviewFromCache, getFilePreviewFromFileState, shouldResolvePreview, getSSRCardPreview, isLocalPreview, isSSRPreview, isSSRClientPreview, isSSRDataPreview, fetchAndCacheRemotePreview } from './getCardPreview';
|
|
16
16
|
import { getFileDetails } from '../utils/metadata';
|
|
17
17
|
import { InlinePlayerLazy } from './inlinePlayerLazy';
|
|
18
|
-
import { getFileAttributes, extractErrorInfo
|
|
18
|
+
import { getFileAttributes, extractErrorInfo } from '../utils/analytics';
|
|
19
19
|
import { isLocalPreviewError, MediaCardError, ensureMediaCardError, ImageLoadError } from '../errors';
|
|
20
20
|
import { fireOperationalEvent, fireCommencedEvent, fireCopiedEvent, fireScreenEvent, fireNonCriticalErrorEvent } from './cardAnalytics';
|
|
21
21
|
import getDocument from '../utils/document';
|
|
@@ -27,7 +27,7 @@ import { getMediaCardCursor } from '../utils/getMediaCardCursor';
|
|
|
27
27
|
import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
|
|
28
28
|
import { generateUniqueId } from '../utils/generateUniqueId';
|
|
29
29
|
const packageName = "@atlaskit/media-card";
|
|
30
|
-
const packageVersion = "74.7.
|
|
30
|
+
const packageVersion = "74.7.2";
|
|
31
31
|
export class CardBase extends Component {
|
|
32
32
|
// An internalOccurrenceKey is a randomly generated value to differentiate various instances
|
|
33
33
|
// of Cards regardless of whether it shares the same file (either internal or external)
|
|
@@ -997,8 +997,6 @@ export const Card = withMediaAnalyticsContext({
|
|
|
997
997
|
packageName,
|
|
998
998
|
componentName: 'mediaCard',
|
|
999
999
|
component: 'mediaCard'
|
|
1000
|
-
}, {
|
|
1001
|
-
filterFeatureFlags: LOGGED_FEATURE_FLAGS
|
|
1002
1000
|
})(withAnalyticsEvents()(injectIntl(CardBase, {
|
|
1003
1001
|
enforceContext: false
|
|
1004
1002
|
})));
|
|
@@ -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 = "74.7.
|
|
69
|
+
const packageVersion = "74.7.2";
|
|
70
70
|
const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
71
71
|
packageVersion,
|
|
72
72
|
packageName,
|
|
@@ -54,7 +54,7 @@ class WrappedMediaInlineAnalyticsErrorBoundary extends React.Component {
|
|
|
54
54
|
}
|
|
55
55
|
_defineProperty(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
|
|
56
56
|
const packageName = "@atlaskit/media-card";
|
|
57
|
-
const packageVersion = "74.7.
|
|
57
|
+
const packageVersion = "74.7.2";
|
|
58
58
|
const MediaInlineAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
59
59
|
packageVersion,
|
|
60
60
|
packageName,
|
|
@@ -11,6 +11,7 @@ export const MediaInlineCardInternal = ({
|
|
|
11
11
|
mediaClient,
|
|
12
12
|
identifier,
|
|
13
13
|
shouldOpenMediaViewer,
|
|
14
|
+
shouldDisplayToolTip,
|
|
14
15
|
isSelected,
|
|
15
16
|
onClick,
|
|
16
17
|
mediaViewerDataSource,
|
|
@@ -21,12 +22,16 @@ export const MediaInlineCardInternal = ({
|
|
|
21
22
|
const [isErrored, setIsErrored] = useState(false);
|
|
22
23
|
const [isMediaViewerVisible, setMediaViewerVisible] = useState(false);
|
|
23
24
|
const onMediaInlineCardClick = event => {
|
|
25
|
+
if (onClick) {
|
|
26
|
+
const inlineCardEvent = {
|
|
27
|
+
event,
|
|
28
|
+
mediaItemDetails: identifier
|
|
29
|
+
};
|
|
30
|
+
onClick(inlineCardEvent);
|
|
31
|
+
}
|
|
24
32
|
if (shouldOpenMediaViewer) {
|
|
25
33
|
setMediaViewerVisible(true);
|
|
26
34
|
}
|
|
27
|
-
if (onClick) {
|
|
28
|
-
onClick(event);
|
|
29
|
-
}
|
|
30
35
|
};
|
|
31
36
|
const onMediaViewerClose = () => setMediaViewerVisible(false);
|
|
32
37
|
const renderMediaViewer = () => {
|
|
@@ -121,16 +126,25 @@ export const MediaInlineCardInternal = ({
|
|
|
121
126
|
};
|
|
122
127
|
formattedDate = formatDate(fileState.createdAt, locale);
|
|
123
128
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
129
|
+
if (shouldDisplayToolTip === undefined || shouldDisplayToolTip === true) {
|
|
130
|
+
return renderContent( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
131
|
+
position: "bottom",
|
|
132
|
+
content: formattedDate,
|
|
133
|
+
tag: "span"
|
|
134
|
+
}, /*#__PURE__*/React.createElement(MediaInlineCardLoadedView, {
|
|
135
|
+
icon: linkIcon,
|
|
136
|
+
title: name,
|
|
137
|
+
onClick: onMediaInlineCardClick,
|
|
138
|
+
isSelected: isSelected
|
|
139
|
+
})), mediaViewer));
|
|
140
|
+
} else {
|
|
141
|
+
return renderContent( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MediaInlineCardLoadedView, {
|
|
142
|
+
icon: linkIcon,
|
|
143
|
+
title: name,
|
|
144
|
+
onClick: onMediaInlineCardClick,
|
|
145
|
+
isSelected: isSelected
|
|
146
|
+
}), mediaViewer));
|
|
147
|
+
}
|
|
134
148
|
};
|
|
135
149
|
export const MediaInlineCard = injectIntl(MediaInlineCardInternal, {
|
|
136
150
|
enforceContext: false
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import { getMediaClientErrorReason, isRequestError } from '@atlaskit/media-client';
|
|
2
|
-
import { ANALYTICS_MEDIA_CHANNEL
|
|
2
|
+
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
3
3
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
4
4
|
import { isMediaCardError } from '../errors';
|
|
5
|
-
const relevantFlags = {
|
|
6
|
-
newCardExperience: true,
|
|
7
|
-
captions: true,
|
|
8
|
-
timestampOnVideo: true,
|
|
9
|
-
observedWidth: true,
|
|
10
|
-
mediaInline: false,
|
|
11
|
-
folderUploads: false,
|
|
12
|
-
memoryCacheLogging: true,
|
|
13
|
-
fetchFileStateAfterUpload: true
|
|
14
|
-
};
|
|
15
|
-
export const LOGGED_FEATURE_FLAGS = filterFeatureFlagNames(relevantFlags);
|
|
16
|
-
export const LOGGED_FEATURE_FLAG_KEYS = filterFeatureFlagKeysAllProducts(relevantFlags);
|
|
17
5
|
export const getFileAttributes = (metadata, fileStatus) => ({
|
|
18
6
|
fileMediatype: metadata.mediaType,
|
|
19
7
|
fileMimetype: metadata.mimeType,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ConcurrentExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo';
|
|
2
|
-
import {
|
|
2
|
+
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
3
|
+
import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
|
|
3
4
|
import { MediaCardError } from '../errors';
|
|
4
5
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
5
6
|
const packageName = "@atlaskit/media-card";
|
|
6
|
-
const packageVersion = "74.7.
|
|
7
|
+
const packageVersion = "74.7.2";
|
|
7
8
|
let concurrentExperience;
|
|
8
9
|
const getExperience = id => {
|
|
9
10
|
if (!concurrentExperience) {
|
|
@@ -13,7 +14,7 @@ const getExperience = id => {
|
|
|
13
14
|
},
|
|
14
15
|
type: ExperienceTypes.Experience,
|
|
15
16
|
performanceType: ExperiencePerformanceTypes.InlineResult,
|
|
16
|
-
featureFlags:
|
|
17
|
+
featureFlags: getFeatureFlagKeysAllProducts()
|
|
17
18
|
};
|
|
18
19
|
concurrentExperience = new ConcurrentExperience('media-card-render', inlineExperience);
|
|
19
20
|
}
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/card/card.js
CHANGED
|
@@ -28,7 +28,7 @@ import { getRequestedDimensions } from '../utils/getDataURIDimension';
|
|
|
28
28
|
import { getCardPreview, getCardPreviewFromCache, removeCardPreviewFromCache, getFilePreviewFromFileState, shouldResolvePreview, getSSRCardPreview, isLocalPreview, isSSRPreview, isSSRClientPreview, isSSRDataPreview, fetchAndCacheRemotePreview } from './getCardPreview';
|
|
29
29
|
import { getFileDetails } from '../utils/metadata';
|
|
30
30
|
import { InlinePlayerLazy } from './inlinePlayerLazy';
|
|
31
|
-
import { getFileAttributes, extractErrorInfo
|
|
31
|
+
import { getFileAttributes, extractErrorInfo } from '../utils/analytics';
|
|
32
32
|
import { isLocalPreviewError, MediaCardError, ensureMediaCardError, ImageLoadError } from '../errors';
|
|
33
33
|
import { fireOperationalEvent as _fireOperationalEvent, fireCommencedEvent as _fireCommencedEvent, fireCopiedEvent, fireScreenEvent, fireNonCriticalErrorEvent } from './cardAnalytics';
|
|
34
34
|
import getDocument from '../utils/document';
|
|
@@ -40,7 +40,7 @@ import { getMediaCardCursor } from '../utils/getMediaCardCursor';
|
|
|
40
40
|
import { completeUfoExperience, startUfoExperience } from '../utils/ufoExperiences';
|
|
41
41
|
import { generateUniqueId } from '../utils/generateUniqueId';
|
|
42
42
|
var packageName = "@atlaskit/media-card";
|
|
43
|
-
var packageVersion = "74.7.
|
|
43
|
+
var packageVersion = "74.7.2";
|
|
44
44
|
export var CardBase = /*#__PURE__*/function (_Component) {
|
|
45
45
|
_inherits(CardBase, _Component);
|
|
46
46
|
var _super = _createSuper(CardBase);
|
|
@@ -1019,8 +1019,6 @@ export var Card = withMediaAnalyticsContext({
|
|
|
1019
1019
|
packageName: packageName,
|
|
1020
1020
|
componentName: 'mediaCard',
|
|
1021
1021
|
component: 'mediaCard'
|
|
1022
|
-
}, {
|
|
1023
|
-
filterFeatureFlags: LOGGED_FEATURE_FLAGS
|
|
1024
1022
|
})(withAnalyticsEvents()(injectIntl(CardBase, {
|
|
1025
1023
|
enforceContext: false
|
|
1026
1024
|
})));
|
|
@@ -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 = "74.7.
|
|
86
|
+
var packageVersion = "74.7.2";
|
|
87
87
|
var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
88
88
|
packageVersion: packageVersion,
|
|
89
89
|
packageName: packageName,
|
|
@@ -70,7 +70,7 @@ var WrappedMediaInlineAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Com
|
|
|
70
70
|
}(React.Component);
|
|
71
71
|
_defineProperty(WrappedMediaInlineAnalyticsErrorBoundary, "displayName", 'MediaInlineAnalyticsErrorBoundary');
|
|
72
72
|
var packageName = "@atlaskit/media-card";
|
|
73
|
-
var packageVersion = "74.7.
|
|
73
|
+
var packageVersion = "74.7.2";
|
|
74
74
|
var MediaInlineAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
75
75
|
packageVersion: packageVersion,
|
|
76
76
|
packageName: packageName,
|
|
@@ -12,6 +12,7 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
|
|
|
12
12
|
var mediaClient = _ref.mediaClient,
|
|
13
13
|
identifier = _ref.identifier,
|
|
14
14
|
shouldOpenMediaViewer = _ref.shouldOpenMediaViewer,
|
|
15
|
+
shouldDisplayToolTip = _ref.shouldDisplayToolTip,
|
|
15
16
|
isSelected = _ref.isSelected,
|
|
16
17
|
onClick = _ref.onClick,
|
|
17
18
|
mediaViewerDataSource = _ref.mediaViewerDataSource,
|
|
@@ -30,12 +31,16 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
|
|
|
30
31
|
isMediaViewerVisible = _useState6[0],
|
|
31
32
|
setMediaViewerVisible = _useState6[1];
|
|
32
33
|
var onMediaInlineCardClick = function onMediaInlineCardClick(event) {
|
|
34
|
+
if (onClick) {
|
|
35
|
+
var inlineCardEvent = {
|
|
36
|
+
event: event,
|
|
37
|
+
mediaItemDetails: identifier
|
|
38
|
+
};
|
|
39
|
+
onClick(inlineCardEvent);
|
|
40
|
+
}
|
|
33
41
|
if (shouldOpenMediaViewer) {
|
|
34
42
|
setMediaViewerVisible(true);
|
|
35
43
|
}
|
|
36
|
-
if (onClick) {
|
|
37
|
-
onClick(event);
|
|
38
|
-
}
|
|
39
44
|
};
|
|
40
45
|
var onMediaViewerClose = function onMediaViewerClose() {
|
|
41
46
|
return setMediaViewerVisible(false);
|
|
@@ -130,16 +135,25 @@ export var MediaInlineCardInternal = function MediaInlineCardInternal(_ref) {
|
|
|
130
135
|
locale = _ref2$locale === void 0 ? 'en' : _ref2$locale;
|
|
131
136
|
formattedDate = formatDate(fileState.createdAt, locale);
|
|
132
137
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
if (shouldDisplayToolTip === undefined || shouldDisplayToolTip === true) {
|
|
139
|
+
return renderContent( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
140
|
+
position: "bottom",
|
|
141
|
+
content: formattedDate,
|
|
142
|
+
tag: "span"
|
|
143
|
+
}, /*#__PURE__*/React.createElement(MediaInlineCardLoadedView, {
|
|
144
|
+
icon: linkIcon,
|
|
145
|
+
title: name,
|
|
146
|
+
onClick: onMediaInlineCardClick,
|
|
147
|
+
isSelected: isSelected
|
|
148
|
+
})), mediaViewer));
|
|
149
|
+
} else {
|
|
150
|
+
return renderContent( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MediaInlineCardLoadedView, {
|
|
151
|
+
icon: linkIcon,
|
|
152
|
+
title: name,
|
|
153
|
+
onClick: onMediaInlineCardClick,
|
|
154
|
+
isSelected: isSelected
|
|
155
|
+
}), mediaViewer));
|
|
156
|
+
}
|
|
143
157
|
};
|
|
144
158
|
export var MediaInlineCard = injectIntl(MediaInlineCardInternal, {
|
|
145
159
|
enforceContext: false
|
|
@@ -2,21 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
import { getMediaClientErrorReason, isRequestError } from '@atlaskit/media-client';
|
|
5
|
-
import { ANALYTICS_MEDIA_CHANNEL
|
|
5
|
+
import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
|
|
6
6
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
7
7
|
import { isMediaCardError } from '../errors';
|
|
8
|
-
var relevantFlags = {
|
|
9
|
-
newCardExperience: true,
|
|
10
|
-
captions: true,
|
|
11
|
-
timestampOnVideo: true,
|
|
12
|
-
observedWidth: true,
|
|
13
|
-
mediaInline: false,
|
|
14
|
-
folderUploads: false,
|
|
15
|
-
memoryCacheLogging: true,
|
|
16
|
-
fetchFileStateAfterUpload: true
|
|
17
|
-
};
|
|
18
|
-
export var LOGGED_FEATURE_FLAGS = filterFeatureFlagNames(relevantFlags);
|
|
19
|
-
export var LOGGED_FEATURE_FLAG_KEYS = filterFeatureFlagKeysAllProducts(relevantFlags);
|
|
20
8
|
export var getFileAttributes = function getFileAttributes(metadata, fileStatus) {
|
|
21
9
|
return {
|
|
22
10
|
fileMediatype: metadata.mediaType,
|
|
@@ -2,11 +2,12 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
import { ConcurrentExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo';
|
|
5
|
-
import {
|
|
5
|
+
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
6
|
+
import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
|
|
6
7
|
import { MediaCardError } from '../errors';
|
|
7
8
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
8
9
|
var packageName = "@atlaskit/media-card";
|
|
9
|
-
var packageVersion = "74.7.
|
|
10
|
+
var packageVersion = "74.7.2";
|
|
10
11
|
var concurrentExperience;
|
|
11
12
|
var getExperience = function getExperience(id) {
|
|
12
13
|
if (!concurrentExperience) {
|
|
@@ -16,7 +17,7 @@ var getExperience = function getExperience(id) {
|
|
|
16
17
|
},
|
|
17
18
|
type: ExperienceTypes.Experience,
|
|
18
19
|
performanceType: ExperiencePerformanceTypes.InlineResult,
|
|
19
|
-
featureFlags:
|
|
20
|
+
featureFlags: getFeatureFlagKeysAllProducts()
|
|
20
21
|
};
|
|
21
22
|
concurrentExperience = new ConcurrentExperience('media-card-render', inlineExperience);
|
|
22
23
|
}
|
package/dist/esm/version.json
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export type { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
6
6
|
export type { CardAction, CardEventHandler } from './card/actions';
|
|
7
|
-
export type { CardStatus, CardAppearance, CardDimensionValue, CardPreview, TitleBoxIcon, CardEvent, SharedCardProps, CardOnClickCallback, CardProps, CardState, CardDimensions, } from './types';
|
|
7
|
+
export type { CardStatus, CardAppearance, CardDimensionValue, CardPreview, TitleBoxIcon, CardEvent, InlineCardEvent, SharedCardProps, CardOnClickCallback, InlineCardOnClickCallback, CardProps, CardState, CardDimensions, } from './types';
|
|
8
8
|
export { Card } from './card';
|
|
9
9
|
export { MediaInlineCard } from './inline';
|
|
10
10
|
export { CardLoading } from './utils/lightCards/cardLoading';
|
|
@@ -2,12 +2,14 @@ import React, { FC } from 'react';
|
|
|
2
2
|
import { FileIdentifier, Identifier, MediaClient } from '@atlaskit/media-client';
|
|
3
3
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { MediaViewerDataSource } from '@atlaskit/media-viewer';
|
|
5
|
+
import { InlineCardOnClickCallback } from '../types';
|
|
5
6
|
export interface MediaInlineCardProps {
|
|
6
7
|
identifier: FileIdentifier;
|
|
7
8
|
mediaClient: MediaClient;
|
|
8
9
|
shouldOpenMediaViewer?: boolean;
|
|
10
|
+
shouldDisplayToolTip?: boolean;
|
|
9
11
|
isSelected?: boolean;
|
|
10
|
-
onClick?:
|
|
12
|
+
onClick?: InlineCardOnClickCallback;
|
|
11
13
|
/**
|
|
12
14
|
* Includes data source like collection name,
|
|
13
15
|
* media file list.
|
package/dist/types/types.d.ts
CHANGED
|
@@ -42,6 +42,10 @@ export interface CardEvent {
|
|
|
42
42
|
event: MouseEvent<HTMLElement>;
|
|
43
43
|
mediaItemDetails?: FileDetails;
|
|
44
44
|
}
|
|
45
|
+
export interface InlineCardEvent {
|
|
46
|
+
event: MouseEvent<HTMLElement> | React.KeyboardEvent;
|
|
47
|
+
mediaItemDetails?: FileDetails;
|
|
48
|
+
}
|
|
45
49
|
export interface SharedCardProps {
|
|
46
50
|
readonly disableOverlay?: boolean;
|
|
47
51
|
readonly resizeMode?: ImageResizeMode;
|
|
@@ -60,6 +64,9 @@ export interface SharedCardProps {
|
|
|
60
64
|
export interface CardOnClickCallback {
|
|
61
65
|
(result: CardEvent, analyticsEvent?: UIAnalyticsEvent): void;
|
|
62
66
|
}
|
|
67
|
+
export interface InlineCardOnClickCallback {
|
|
68
|
+
(result: InlineCardEvent, analyticsEvent?: UIAnalyticsEvent): void;
|
|
69
|
+
}
|
|
63
70
|
export interface CardEventProps {
|
|
64
71
|
readonly onClick?: CardOnClickCallback;
|
|
65
72
|
readonly onMouseEnter?: (result: CardEvent) => void;
|
|
@@ -13,8 +13,6 @@ export declare type CardPreviewAttributes = {
|
|
|
13
13
|
declare type WithCardPreviewCacheAttributes = {
|
|
14
14
|
cardPreviewAttributes: CardPreviewAttributes;
|
|
15
15
|
};
|
|
16
|
-
export declare const LOGGED_FEATURE_FLAGS: (keyof import("@atlaskit/media-common").MediaFeatureFlags)[];
|
|
17
|
-
export declare const LOGGED_FEATURE_FLAG_KEYS: string[];
|
|
18
16
|
export declare type FileUriFailReason = 'local-uri' | 'remote-uri' | `unknown-uri`;
|
|
19
17
|
export declare type FailedErrorFailReason = MediaCardErrorPrimaryReason | 'nativeError';
|
|
20
18
|
export declare type MediaCardErrorInfo = {
|
|
@@ -20,7 +20,6 @@ import { SelectableCard } from './selectableCard';
|
|
|
20
20
|
import { Card, CardAppearance, CardEvent, CardAction } from '../src';
|
|
21
21
|
import { MediaCardError } from '../src/errors';
|
|
22
22
|
import DevelopmentUseMessage from './developmentUseMessage';
|
|
23
|
-
import { LOGGED_FEATURE_FLAGS } from '../src/utils/analytics';
|
|
24
23
|
|
|
25
24
|
const mediaClientConfig = createStorybookMediaClientConfig();
|
|
26
25
|
|
|
@@ -141,9 +140,7 @@ export const MainWrapper: React.FC<MainWrapperProps> = ({
|
|
|
141
140
|
<>
|
|
142
141
|
{developmentOnly && <DevelopmentUseMessage />}
|
|
143
142
|
{!disableFeatureFlagWrapper ? (
|
|
144
|
-
<FeatureFlagsWrapper
|
|
145
|
-
{children}
|
|
146
|
-
</FeatureFlagsWrapper>
|
|
143
|
+
<FeatureFlagsWrapper>{children}</FeatureFlagsWrapper>
|
|
147
144
|
) : (
|
|
148
145
|
<>{children}</>
|
|
149
146
|
)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "74.7.
|
|
3
|
+
"version": "74.7.2",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@atlaskit/dropdown-menu": "^11.7.0",
|
|
33
33
|
"@atlaskit/editor-shared-styles": "^2.3.0",
|
|
34
34
|
"@atlaskit/icon": "^21.11.0",
|
|
35
|
-
"@atlaskit/media-client": "^20.
|
|
36
|
-
"@atlaskit/media-common": "^
|
|
35
|
+
"@atlaskit/media-client": "^20.2.0",
|
|
36
|
+
"@atlaskit/media-common": "^4.0.0",
|
|
37
37
|
"@atlaskit/media-ui": "^22.3.0",
|
|
38
38
|
"@atlaskit/media-viewer": "^47.5.0",
|
|
39
39
|
"@atlaskit/spinner": "^15.4.0",
|
|
40
|
-
"@atlaskit/theme": "^12.
|
|
40
|
+
"@atlaskit/theme": "^12.3.0",
|
|
41
41
|
"@atlaskit/tokens": "^1.2.0",
|
|
42
42
|
"@atlaskit/tooltip": "^17.7.0",
|
|
43
43
|
"@atlaskit/ufo": "^0.1.0",
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@atlaskit/analytics-listeners": "^8.5.0",
|
|
58
58
|
"@atlaskit/analytics-namespaced-context": "^6.6.0",
|
|
59
|
-
"@atlaskit/button": "^16.
|
|
59
|
+
"@atlaskit/button": "^16.6.0",
|
|
60
60
|
"@atlaskit/checkbox": "^12.4.0",
|
|
61
61
|
"@atlaskit/docs": "*",
|
|
62
62
|
"@atlaskit/inline-message": "^11.4.0",
|
|
63
63
|
"@atlaskit/media-core": "^34.0.0",
|
|
64
|
-
"@atlaskit/media-picker": "^64.
|
|
65
|
-
"@atlaskit/media-test-helpers": "^
|
|
64
|
+
"@atlaskit/media-picker": "^64.3.0",
|
|
65
|
+
"@atlaskit/media-test-helpers": "^31.0.0",
|
|
66
66
|
"@atlaskit/radio": "^5.4.0",
|
|
67
67
|
"@atlaskit/range": "^7.0.0",
|
|
68
68
|
"@atlaskit/section-message": "^6.3.0",
|
package/report.api.md
CHANGED
|
@@ -240,6 +240,20 @@ type ImageLoadPrimaryReason =
|
|
|
240
240
|
| 'remote-uri'
|
|
241
241
|
| 'unknown-uri';
|
|
242
242
|
|
|
243
|
+
// @public (undocumented)
|
|
244
|
+
export interface InlineCardEvent {
|
|
245
|
+
// (undocumented)
|
|
246
|
+
event: MouseEvent_2<HTMLElement> | React.KeyboardEvent;
|
|
247
|
+
// (undocumented)
|
|
248
|
+
mediaItemDetails?: FileDetails;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// @public (undocumented)
|
|
252
|
+
export interface InlineCardOnClickCallback {
|
|
253
|
+
// (undocumented)
|
|
254
|
+
(result: InlineCardEvent, analyticsEvent?: UIAnalyticsEvent): void;
|
|
255
|
+
}
|
|
256
|
+
|
|
243
257
|
// @public (undocumented)
|
|
244
258
|
export const inlinePlayerClassName = 'media-card-inline-player';
|
|
245
259
|
|
|
@@ -319,7 +333,9 @@ interface MediaInlineCardProps {
|
|
|
319
333
|
// (undocumented)
|
|
320
334
|
mediaViewerItems?: Identifier[];
|
|
321
335
|
// (undocumented)
|
|
322
|
-
onClick?:
|
|
336
|
+
onClick?: InlineCardOnClickCallback;
|
|
337
|
+
// (undocumented)
|
|
338
|
+
shouldDisplayToolTip?: boolean;
|
|
323
339
|
// (undocumented)
|
|
324
340
|
shouldOpenMediaViewer?: boolean;
|
|
325
341
|
}
|