@atlaskit/media-card 77.11.2 → 77.11.3
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 +2803 -2809
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/cardView.js +3 -1
- package/dist/cjs/card/inlinePlayerWrapper.js +3 -1
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/ui/actionsBar/actionsBarWrapper.js +3 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton.js +3 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionIconButton.js +3 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.js +3 -1
- package/dist/cjs/card/ui/blanket/blanket.js +3 -1
- package/dist/cjs/card/ui/playButton/playButtonBackground.js +1 -0
- package/dist/cjs/card/ui/playButton/playButtonWrapper.js +7 -4
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper.js +3 -1
- package/dist/cjs/card/ui/wrapper/wrapper.js +3 -1
- package/dist/cjs/card/v2/cardV2.js +1 -1
- package/dist/cjs/card/v2/cardViewV2.js +6 -3
- package/dist/cjs/card/v2/cardviews/cardViewWrapper.js +6 -3
- package/dist/cjs/card/v2/cardviews/index.js +4 -2
- package/dist/cjs/card/v2/fileCard.js +5 -1
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +11 -7
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/es2019/card/card.js +1 -1
- package/dist/es2019/card/cardView.js +3 -1
- package/dist/es2019/card/inlinePlayerWrapper.js +3 -1
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/actionsBar/actionsBarWrapper.js +3 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton.js +3 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionIconButton.js +3 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.js +3 -1
- package/dist/es2019/card/ui/blanket/blanket.js +3 -1
- package/dist/es2019/card/ui/playButton/playButtonBackground.js +1 -0
- package/dist/es2019/card/ui/playButton/playButtonWrapper.js +7 -4
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper.js +3 -1
- package/dist/es2019/card/ui/wrapper/wrapper.js +3 -1
- package/dist/es2019/card/v2/cardV2.js +1 -1
- package/dist/es2019/card/v2/cardViewV2.js +6 -3
- package/dist/es2019/card/v2/cardviews/cardViewWrapper.js +5 -2
- package/dist/es2019/card/v2/cardviews/index.js +4 -2
- package/dist/es2019/card/v2/fileCard.js +6 -1
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +11 -7
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/card.js +1 -1
- package/dist/esm/card/cardView.js +3 -1
- package/dist/esm/card/inlinePlayerWrapper.js +3 -1
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/ui/actionsBar/actionsBarWrapper.js +3 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton.js +3 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionIconButton.js +3 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.js +3 -1
- package/dist/esm/card/ui/blanket/blanket.js +3 -1
- package/dist/esm/card/ui/playButton/playButtonBackground.js +1 -0
- package/dist/esm/card/ui/playButton/playButtonWrapper.js +7 -4
- package/dist/esm/card/ui/tickBox/tickBoxWrapper.js +3 -1
- package/dist/esm/card/ui/wrapper/wrapper.js +3 -1
- package/dist/esm/card/v2/cardV2.js +1 -1
- package/dist/esm/card/v2/cardViewV2.js +6 -3
- package/dist/esm/card/v2/cardviews/cardViewWrapper.js +6 -3
- package/dist/esm/card/v2/cardviews/index.js +4 -2
- package/dist/esm/card/v2/fileCard.js +6 -1
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +11 -7
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/types/card/actions.d.ts +2 -2
- package/dist/types/card/card.d.ts +5 -5
- package/dist/types/card/cardAnalytics.d.ts +4 -4
- package/dist/types/card/cardState.d.ts +2 -2
- package/dist/types/card/cardSwitcher.d.ts +1 -1
- package/dist/types/card/cardView.d.ts +8 -8
- package/dist/types/card/getCardPreview/cache.d.ts +3 -3
- package/dist/types/card/getCardPreview/filePreviewStatus.d.ts +2 -2
- package/dist/types/card/getCardPreview/helpers.d.ts +3 -3
- package/dist/types/card/getCardPreview/index.d.ts +5 -5
- package/dist/types/card/getCardStatus.d.ts +2 -2
- package/dist/types/card/inlinePlayer.d.ts +4 -4
- package/dist/types/card/inlinePlayerWrapper.d.ts +1 -1
- package/dist/types/card/inlinePlayerWrapperStyles.d.ts +1 -1
- package/dist/types/card/media-card-analytics-error-boundary.d.ts +4 -4
- package/dist/types/card/types.d.ts +4 -3
- package/dist/types/card/ui/actionsBar/actionsBar.d.ts +1 -1
- package/dist/types/card/ui/actionsBar/actionsBarWrapper.d.ts +1 -1
- package/dist/types/card/ui/actionsBar/cardActions/cardActionButton.d.ts +1 -1
- package/dist/types/card/ui/actionsBar/cardActions/cardActionIconButton.d.ts +2 -2
- package/dist/types/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.d.ts +2 -2
- package/dist/types/card/ui/actionsBar/cardActions/cardActionsView.d.ts +2 -2
- package/dist/types/card/ui/actionsBar/cardActions/styles.d.ts +3 -2
- package/dist/types/card/ui/actionsBar/types.d.ts +2 -2
- package/dist/types/card/ui/iconMessage/iconMessageWrapper.d.ts +1 -1
- package/dist/types/card/ui/iconMessage/index.d.ts +1 -1
- package/dist/types/card/ui/iconMessage/types.d.ts +2 -2
- package/dist/types/card/ui/iconWrapper/iconWrapper.d.ts +1 -1
- package/dist/types/card/ui/iconWrapper/styles.d.ts +2 -2
- package/dist/types/card/ui/iconWrapper/types.d.ts +1 -1
- package/dist/types/card/ui/imageRenderer/imageRenderer.d.ts +2 -2
- package/dist/types/card/ui/imageRenderer/resizeModeToMediaImageProps.d.ts +1 -1
- package/dist/types/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +1 -1
- package/dist/types/card/ui/progressBar/styledBar.d.ts +1 -1
- package/dist/types/card/ui/progressBar/styles.d.ts +1 -1
- package/dist/types/card/ui/progressBar/types.d.ts +1 -1
- package/dist/types/card/ui/styles.d.ts +2 -2
- package/dist/types/card/ui/tickBox/tickBox.d.ts +1 -1
- package/dist/types/card/ui/tickBox/tickBoxWrapper.d.ts +1 -1
- package/dist/types/card/ui/titleBox/failedTitleBox.d.ts +1 -1
- package/dist/types/card/ui/titleBox/styles.d.ts +1 -1
- package/dist/types/card/ui/titleBox/titleBox.d.ts +1 -1
- package/dist/types/card/ui/titleBox/titleBoxComponents.d.ts +1 -1
- package/dist/types/card/ui/titleBox/types.d.ts +3 -3
- package/dist/types/card/ui/unhandledErrorCard/index.d.ts +1 -1
- package/dist/types/card/ui/unhandledErrorCard/types.d.ts +1 -1
- package/dist/types/card/ui/wrapper/styles.d.ts +1 -1
- package/dist/types/card/ui/wrapper/types.d.ts +6 -5
- package/dist/types/card/ui/wrapper/wrapper.d.ts +1 -1
- package/dist/types/card/useBreakpoint.d.ts +2 -2
- package/dist/types/card/v2/cardV2.d.ts +3 -3
- package/dist/types/card/v2/cardV2Loader.d.ts +1 -1
- package/dist/types/card/v2/cardViewV2.d.ts +10 -9
- package/dist/types/card/v2/cardWithMediaClientV2.d.ts +1 -1
- package/dist/types/card/v2/cardviews/cardViewWrapper.d.ts +8 -7
- package/dist/types/card/v2/cardviews/errorCardView.d.ts +4 -4
- package/dist/types/card/v2/cardviews/iconCardView.d.ts +3 -3
- package/dist/types/card/v2/cardviews/imageCardView.d.ts +4 -4
- package/dist/types/card/v2/cardviews/index.d.ts +9 -8
- package/dist/types/card/v2/cardviews/loadingCardView.d.ts +3 -3
- package/dist/types/card/v2/cardviews/processingCardView.d.ts +2 -2
- package/dist/types/card/v2/cardviews/videoCardView.d.ts +4 -4
- package/dist/types/card/v2/externalImageCard.d.ts +3 -3
- package/dist/types/card/v2/fileCard.d.ts +5 -5
- package/dist/types/card/v2/inlinePlayerV2.d.ts +4 -4
- package/dist/types/errors.d.ts +2 -2
- package/dist/types/inline/loader.d.ts +3 -3
- package/dist/types/inline/mediaInlineAnalyticsErrorBoundary.d.ts +3 -3
- package/dist/types/inline/mediaInlineCard.d.ts +4 -4
- package/dist/types/inline/mediaInlineCardAnalytics.d.ts +2 -2
- package/dist/types/types.d.ts +6 -6
- package/dist/types/utils/analytics/analytics.d.ts +5 -5
- package/dist/types/utils/cardDimensions.d.ts +1 -1
- package/dist/types/utils/dimensionComparer.d.ts +1 -1
- package/dist/types/utils/getDataURIDimension.d.ts +3 -3
- package/dist/types/utils/getMediaCardCursor.d.ts +1 -1
- package/dist/types/utils/globalScope/getSSRData.d.ts +1 -1
- package/dist/types/utils/globalScope/globalScope.d.ts +5 -5
- package/dist/types/utils/globalScope/types.d.ts +2 -2
- package/dist/types/utils/lightCards/cardError.d.ts +1 -1
- package/dist/types/utils/lightCards/cardLoading.d.ts +1 -1
- package/dist/types/utils/lightCards/getDimensionsWithDefault.d.ts +1 -1
- package/dist/types/utils/lightCards/lightCardWrappers.d.ts +1 -1
- package/dist/types/utils/lightCards/styles.d.ts +1 -1
- package/dist/types/utils/lightCards/types.d.ts +2 -2
- package/dist/types/utils/metadata.d.ts +1 -1
- package/dist/types/utils/objectURLCache.d.ts +1 -1
- package/dist/types/utils/preventClickThrough.d.ts +1 -1
- package/dist/types/utils/ufoExperiences.d.ts +4 -4
- package/dist/types/utils/useCurrentValueRef.d.ts +1 -1
- package/dist/types/utils/videoIsPlayable.d.ts +1 -1
- package/dist/types/utils/viewportDetector.d.ts +1 -1
- package/dist/types-ts4.5/card/actions.d.ts +2 -2
- package/dist/types-ts4.5/card/card.d.ts +5 -5
- package/dist/types-ts4.5/card/cardAnalytics.d.ts +4 -4
- package/dist/types-ts4.5/card/cardState.d.ts +2 -2
- package/dist/types-ts4.5/card/cardSwitcher.d.ts +1 -1
- package/dist/types-ts4.5/card/cardView.d.ts +8 -8
- package/dist/types-ts4.5/card/getCardPreview/cache.d.ts +3 -3
- package/dist/types-ts4.5/card/getCardPreview/filePreviewStatus.d.ts +2 -2
- package/dist/types-ts4.5/card/getCardPreview/helpers.d.ts +3 -3
- package/dist/types-ts4.5/card/getCardPreview/index.d.ts +5 -5
- package/dist/types-ts4.5/card/getCardStatus.d.ts +2 -2
- package/dist/types-ts4.5/card/inlinePlayer.d.ts +4 -4
- package/dist/types-ts4.5/card/inlinePlayerWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/inlinePlayerWrapperStyles.d.ts +1 -1
- package/dist/types-ts4.5/card/media-card-analytics-error-boundary.d.ts +4 -4
- package/dist/types-ts4.5/card/types.d.ts +4 -3
- package/dist/types-ts4.5/card/ui/actionsBar/actionsBar.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionButton.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionIconButton.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsView.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/styles.d.ts +3 -2
- package/dist/types-ts4.5/card/ui/actionsBar/types.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/iconMessage/index.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/iconMessage/types.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/iconWrapper/styles.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/iconWrapper/types.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/imageRenderer/imageRenderer.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/imageRenderer/resizeModeToMediaImageProps.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/progressBar/styledBar.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/progressBar/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/progressBar/types.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/styles.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/tickBox/tickBox.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/failedTitleBox.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/titleBox.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/types.d.ts +3 -3
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/index.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/types.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/wrapper/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/wrapper/types.d.ts +6 -5
- package/dist/types-ts4.5/card/ui/wrapper/wrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/useBreakpoint.d.ts +2 -2
- package/dist/types-ts4.5/card/v2/cardV2.d.ts +3 -3
- package/dist/types-ts4.5/card/v2/cardV2Loader.d.ts +1 -1
- package/dist/types-ts4.5/card/v2/cardViewV2.d.ts +10 -9
- package/dist/types-ts4.5/card/v2/cardWithMediaClientV2.d.ts +1 -1
- package/dist/types-ts4.5/card/v2/cardviews/cardViewWrapper.d.ts +8 -7
- package/dist/types-ts4.5/card/v2/cardviews/errorCardView.d.ts +4 -4
- package/dist/types-ts4.5/card/v2/cardviews/iconCardView.d.ts +3 -3
- package/dist/types-ts4.5/card/v2/cardviews/imageCardView.d.ts +4 -4
- package/dist/types-ts4.5/card/v2/cardviews/index.d.ts +9 -8
- package/dist/types-ts4.5/card/v2/cardviews/loadingCardView.d.ts +3 -3
- package/dist/types-ts4.5/card/v2/cardviews/processingCardView.d.ts +2 -2
- package/dist/types-ts4.5/card/v2/cardviews/videoCardView.d.ts +4 -4
- package/dist/types-ts4.5/card/v2/externalImageCard.d.ts +3 -3
- package/dist/types-ts4.5/card/v2/fileCard.d.ts +5 -5
- package/dist/types-ts4.5/card/v2/inlinePlayerV2.d.ts +4 -4
- package/dist/types-ts4.5/errors.d.ts +2 -2
- package/dist/types-ts4.5/inline/loader.d.ts +3 -3
- package/dist/types-ts4.5/inline/mediaInlineAnalyticsErrorBoundary.d.ts +3 -3
- package/dist/types-ts4.5/inline/mediaInlineCard.d.ts +4 -4
- package/dist/types-ts4.5/inline/mediaInlineCardAnalytics.d.ts +2 -2
- package/dist/types-ts4.5/types.d.ts +6 -6
- package/dist/types-ts4.5/utils/analytics/analytics.d.ts +5 -5
- package/dist/types-ts4.5/utils/cardDimensions.d.ts +1 -1
- package/dist/types-ts4.5/utils/dimensionComparer.d.ts +1 -1
- package/dist/types-ts4.5/utils/getDataURIDimension.d.ts +3 -3
- package/dist/types-ts4.5/utils/getMediaCardCursor.d.ts +1 -1
- package/dist/types-ts4.5/utils/globalScope/getSSRData.d.ts +1 -1
- package/dist/types-ts4.5/utils/globalScope/globalScope.d.ts +5 -5
- package/dist/types-ts4.5/utils/globalScope/types.d.ts +2 -2
- package/dist/types-ts4.5/utils/lightCards/cardError.d.ts +1 -1
- package/dist/types-ts4.5/utils/lightCards/cardLoading.d.ts +1 -1
- package/dist/types-ts4.5/utils/lightCards/getDimensionsWithDefault.d.ts +1 -1
- package/dist/types-ts4.5/utils/lightCards/lightCardWrappers.d.ts +1 -1
- package/dist/types-ts4.5/utils/lightCards/styles.d.ts +1 -1
- package/dist/types-ts4.5/utils/lightCards/types.d.ts +2 -2
- package/dist/types-ts4.5/utils/metadata.d.ts +1 -1
- package/dist/types-ts4.5/utils/objectURLCache.d.ts +1 -1
- package/dist/types-ts4.5/utils/preventClickThrough.d.ts +1 -1
- package/dist/types-ts4.5/utils/ufoExperiences.d.ts +4 -4
- package/dist/types-ts4.5/utils/useCurrentValueRef.d.ts +1 -1
- package/dist/types-ts4.5/utils/videoIsPlayable.d.ts +1 -1
- package/dist/types-ts4.5/utils/viewportDetector.d.ts +1 -1
- package/example-helpers/cards.tsx +3 -1
- package/example-helpers/developmentUseMessage.tsx +1 -0
- package/example-helpers/index.tsx +4 -4
- package/example-helpers/selectableCard.tsx +2 -2
- package/package.json +12 -14
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.11.
|
|
53
|
+
var packageVersion = "77.11.3";
|
|
54
54
|
var CardBase = exports.CardBase = /*#__PURE__*/function (_Component) {
|
|
55
55
|
(0, _inherits2.default)(CardBase, _Component);
|
|
56
56
|
var _super = _createSuper(CardBase);
|
|
@@ -207,7 +207,9 @@ var CardViewBase = exports.CardViewBase = /*#__PURE__*/function (_React$Componen
|
|
|
207
207
|
name = _ref3.name;
|
|
208
208
|
var hasTitleBox = !!renderTitleBox || !!renderFailedTitleBox;
|
|
209
209
|
return (0, _react.jsx)(_react2.default.Fragment, null, (0, _react.jsx)("div", {
|
|
210
|
-
css: _styles.cardImageContainerStyles
|
|
210
|
+
css: _styles.cardImageContainerStyles
|
|
211
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
212
|
+
,
|
|
211
213
|
className: _classnames.fileCardImageViewSelector,
|
|
212
214
|
"data-testid": _classnames.fileCardImageViewSelector,
|
|
213
215
|
"data-test-media-name": name,
|
|
@@ -16,7 +16,9 @@ var InlinePlayerWrapper = exports.InlinePlayerWrapper = function InlinePlayerWra
|
|
|
16
16
|
innerRef = props.innerRef;
|
|
17
17
|
return (0, _react.jsx)("div", {
|
|
18
18
|
id: "inlinePlayerWrapper",
|
|
19
|
-
"data-testid": testId
|
|
19
|
+
"data-testid": testId
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
21
|
+
,
|
|
20
22
|
className: _inlinePlayerWrapperStyles.inlinePlayerClassName,
|
|
21
23
|
css: (0, _inlinePlayerWrapperStyles.inlinePlayerWrapperStyles)({
|
|
22
24
|
selected: selected,
|
|
@@ -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.11.
|
|
93
|
+
var packageVersion = "77.11.3";
|
|
94
94
|
var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
95
95
|
packageVersion: packageVersion,
|
|
96
96
|
packageName: packageName,
|
|
@@ -11,7 +11,9 @@ var _styles = require("./styles");
|
|
|
11
11
|
var ActionsBarWrapper = exports.ActionsBarWrapper = function ActionsBarWrapper(props) {
|
|
12
12
|
return (0, _react.jsx)("div", {
|
|
13
13
|
id: "actionsBarWrapper",
|
|
14
|
-
css: (0, _styles.wrapperStyles)(props.isFixed)
|
|
14
|
+
css: (0, _styles.wrapperStyles)(props.isFixed)
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
|
+
,
|
|
15
17
|
className: _styles.actionsBarClassName
|
|
16
18
|
}, props.children);
|
|
17
19
|
};
|
|
@@ -16,7 +16,9 @@ var CardActionButton = exports.CardActionButton = /*#__PURE__*/(0, _react.forwar
|
|
|
16
16
|
id: "cardActionButton",
|
|
17
17
|
"data-testid": "media-card-primary-action",
|
|
18
18
|
"aria-label": props.label,
|
|
19
|
-
css: (0, _styles.cardActionButtonStyles)(props)
|
|
19
|
+
css: (0, _styles.cardActionButtonStyles)(props)
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
21
|
+
,
|
|
20
22
|
style: props.style,
|
|
21
23
|
onClick: props.onClick,
|
|
22
24
|
onMouseDown: props.onMouseDown,
|
|
@@ -47,7 +47,9 @@ var CardActionIconButton = exports.CardActionIconButton = /*#__PURE__*/function
|
|
|
47
47
|
variant = _this$props.variant;
|
|
48
48
|
return /*#__PURE__*/_react.default.createElement(_cardActionButton.CardActionButton, {
|
|
49
49
|
onClick: onClick,
|
|
50
|
-
onMouseDown: this.onMouseDown
|
|
50
|
+
onMouseDown: this.onMouseDown
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
52
|
+
,
|
|
51
53
|
style: {
|
|
52
54
|
color: triggerColor
|
|
53
55
|
},
|
|
@@ -81,7 +81,9 @@ var CardActionsDropdownMenu = exports.CardActionsDropdownMenu = /*#__PURE__*/fun
|
|
|
81
81
|
var triggerRef = _ref.triggerRef,
|
|
82
82
|
providedProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
83
83
|
return /*#__PURE__*/_react.default.createElement(CardActionButtonWithAnalytics, (0, _extends2.default)({
|
|
84
|
-
variant: triggerVariant
|
|
84
|
+
variant: triggerVariant
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
86
|
+
,
|
|
85
87
|
style: {
|
|
86
88
|
color: triggerColor
|
|
87
89
|
},
|
|
@@ -11,7 +11,9 @@ var _styles = require("./styles");
|
|
|
11
11
|
var Blanket = exports.Blanket = function Blanket(props) {
|
|
12
12
|
var isFixed = props.isFixed;
|
|
13
13
|
return (0, _react.jsx)("div", {
|
|
14
|
-
css: (0, _styles.blanketStyles)(isFixed)
|
|
14
|
+
css: (0, _styles.blanketStyles)(isFixed)
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
|
+
,
|
|
15
17
|
className: _styles.blanketClassName,
|
|
16
18
|
"data-testid": "media-card-blanket"
|
|
17
19
|
});
|
|
@@ -9,6 +9,7 @@ var _styles = require("./styles");
|
|
|
9
9
|
/**@jsx jsx */
|
|
10
10
|
|
|
11
11
|
var PlayButtonBackground = exports.PlayButtonBackground = function PlayButtonBackground() {
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
12
13
|
return (0, _react.jsx)("div", {
|
|
13
14
|
css: _styles.backgroundStyles,
|
|
14
15
|
className: _styles.bkgClassName
|
|
@@ -9,8 +9,11 @@ var _styles = require("./styles");
|
|
|
9
9
|
/**@jsx jsx */
|
|
10
10
|
|
|
11
11
|
var PlayButtonWrapper = exports.PlayButtonWrapper = function PlayButtonWrapper(props) {
|
|
12
|
-
return (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
return (
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
14
|
+
(0, _react.jsx)("div", {
|
|
15
|
+
css: _styles.playButtonWrapperStyles,
|
|
16
|
+
className: _styles.playButtonClassName
|
|
17
|
+
}, props.children)
|
|
18
|
+
);
|
|
16
19
|
};
|
|
@@ -35,7 +35,9 @@ wrapperStyles.displayName = 'TickBoxWrapper';
|
|
|
35
35
|
var TickBoxWrapper = exports.TickBoxWrapper = function TickBoxWrapper(props) {
|
|
36
36
|
return (0, _react.jsx)("div", {
|
|
37
37
|
id: "tickBoxWrapper",
|
|
38
|
-
css: wrapperStyles(props.selected)
|
|
38
|
+
css: wrapperStyles(props.selected)
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
40
|
+
,
|
|
39
41
|
className: _styles.tickBoxClassName
|
|
40
42
|
}, props.children);
|
|
41
43
|
};
|
|
@@ -25,7 +25,9 @@ var Wrapper = exports.Wrapper = function Wrapper(props) {
|
|
|
25
25
|
isTickBoxSelectable = props.isTickBoxSelectable,
|
|
26
26
|
shouldDisplayTooltip = props.shouldDisplayTooltip;
|
|
27
27
|
return (0, _react.jsx)("div", {
|
|
28
|
-
id: "newFileExperienceWrapper"
|
|
28
|
+
id: "newFileExperienceWrapper"
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
30
|
+
,
|
|
29
31
|
className: _cardConstants.newFileExperienceClassName,
|
|
30
32
|
"data-testid": testId,
|
|
31
33
|
css: (0, _styles.wrapperStyles)({
|
|
@@ -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.11.
|
|
19
|
+
var packageVersion = "77.11.3";
|
|
20
20
|
var CardV2Base = exports.CardV2Base = function CardV2Base(_ref) {
|
|
21
21
|
var identifier = _ref.identifier,
|
|
22
22
|
otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -66,7 +66,8 @@ var CardViewV2Base = exports.CardViewV2Base = function CardViewV2Base(_ref) {
|
|
|
66
66
|
disableAnimation = _ref.disableAnimation,
|
|
67
67
|
_ref$openMediaViewerB = _ref.openMediaViewerButtonRef,
|
|
68
68
|
openMediaViewerButtonRef = _ref$openMediaViewerB === void 0 ? null : _ref$openMediaViewerB,
|
|
69
|
-
shouldOpenMediaViewer = _ref.shouldOpenMediaViewer
|
|
69
|
+
shouldOpenMediaViewer = _ref.shouldOpenMediaViewer,
|
|
70
|
+
overriddenCreationDate = _ref.overriddenCreationDate;
|
|
70
71
|
var _useState = (0, _react2.useState)(false),
|
|
71
72
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
72
73
|
didImageRender = _useState2[0],
|
|
@@ -210,7 +211,9 @@ var CardViewV2Base = exports.CardViewV2Base = function CardViewV2Base(_ref) {
|
|
|
210
211
|
createdAt = _ref5.createdAt;
|
|
211
212
|
var actionsWithDetails = metadata && actions ? (0, _actions.attachDetailsToActions)(actions, metadata) : [];
|
|
212
213
|
var contents = (0, _react.jsx)(_react2.default.Fragment, null, (0, _react.jsx)("div", {
|
|
213
|
-
css: _styles.cardImageContainerStyles
|
|
214
|
+
css: _styles.cardImageContainerStyles
|
|
215
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
216
|
+
,
|
|
214
217
|
className: _classnames.fileCardImageViewSelector,
|
|
215
218
|
"data-testid": _classnames.fileCardImageViewSelector,
|
|
216
219
|
"data-test-media-name": name,
|
|
@@ -249,7 +252,7 @@ var CardViewV2Base = exports.CardViewV2Base = function CardViewV2Base(_ref) {
|
|
|
249
252
|
isFixed: isFixedBlanket
|
|
250
253
|
}), renderTitleBox && name && (0, _react.jsx)(_titleBox.TitleBox, {
|
|
251
254
|
name: name,
|
|
252
|
-
createdAt: createdAt,
|
|
255
|
+
createdAt: overriddenCreationDate !== null && overriddenCreationDate !== void 0 ? overriddenCreationDate : createdAt,
|
|
253
256
|
breakpoint: breakpoint,
|
|
254
257
|
titleBoxIcon: titleBoxIcon,
|
|
255
258
|
titleBoxBgColor: titleBoxBgColor
|
|
@@ -19,7 +19,7 @@ var _blanket = require("../../ui/blanket/blanket");
|
|
|
19
19
|
var _actionsBar = require("../../ui/actionsBar/actionsBar");
|
|
20
20
|
var _classnames = require("../../classnames");
|
|
21
21
|
var _openMediaViewerButton = _interopRequireDefault(require("../../ui/openMediaViewerButton/openMediaViewerButton"));
|
|
22
|
-
var _excluded = ["cardPreview", "testId", "dimensions", "appearance", "metadata", "selected", "selectable", "actions", "breakpoint", "disableOverlay", "titleBoxBgColor", "titleBoxIcon", "shouldHideTooltip", "children", "onClick", "onMouseEnter", "mediaCardCursor", "customBlanket", "customTitleBox", "progressBar", "shouldOpenMediaViewer", "openMediaViewerButtonRef"];
|
|
22
|
+
var _excluded = ["cardPreview", "testId", "dimensions", "appearance", "metadata", "selected", "selectable", "actions", "breakpoint", "disableOverlay", "titleBoxBgColor", "titleBoxIcon", "shouldHideTooltip", "children", "onClick", "onMouseEnter", "mediaCardCursor", "customBlanket", "customTitleBox", "progressBar", "shouldOpenMediaViewer", "openMediaViewerButtonRef", "overriddenCreationDate"];
|
|
23
23
|
/** @jsx jsx */
|
|
24
24
|
var CardViewWrapper = exports.CardViewWrapper = /*#__PURE__*/_react2.default.forwardRef(function (_ref, ref) {
|
|
25
25
|
var cardPreview = _ref.cardPreview,
|
|
@@ -46,6 +46,7 @@ var CardViewWrapper = exports.CardViewWrapper = /*#__PURE__*/_react2.default.for
|
|
|
46
46
|
shouldOpenMediaViewer = _ref.shouldOpenMediaViewer,
|
|
47
47
|
_ref$openMediaViewerB = _ref.openMediaViewerButtonRef,
|
|
48
48
|
openMediaViewerButtonRef = _ref$openMediaViewerB === void 0 ? null : _ref$openMediaViewerB,
|
|
49
|
+
overriddenCreationDate = _ref.overriddenCreationDate,
|
|
49
50
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
50
51
|
var _ref2 = metadata || {},
|
|
51
52
|
name = _ref2.name,
|
|
@@ -55,13 +56,15 @@ var CardViewWrapper = exports.CardViewWrapper = /*#__PURE__*/_react2.default.for
|
|
|
55
56
|
var defaultBlanket = !disableOverlay && (0, _react.jsx)(_blanket.Blanket, null);
|
|
56
57
|
var defaultTitleBox = !disableOverlay && !!name && (0, _react.jsx)(_titleBox.TitleBox, {
|
|
57
58
|
name: name,
|
|
58
|
-
createdAt: createdAt,
|
|
59
|
+
createdAt: overriddenCreationDate !== null && overriddenCreationDate !== void 0 ? overriddenCreationDate : createdAt,
|
|
59
60
|
breakpoint: breakpoint,
|
|
60
61
|
titleBoxIcon: titleBoxIcon,
|
|
61
62
|
titleBoxBgColor: titleBoxBgColor
|
|
62
63
|
});
|
|
63
64
|
var contents = (0, _react.jsx)(_react2.default.Fragment, null, (0, _react.jsx)("div", (0, _extends2.default)({
|
|
64
|
-
css: _styles.cardImageContainerStyles
|
|
65
|
+
css: _styles.cardImageContainerStyles
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
67
|
+
,
|
|
65
68
|
className: _classnames.fileCardImageViewSelector,
|
|
66
69
|
"data-testid": _classnames.fileCardImageViewSelector,
|
|
67
70
|
"data-test-media-name": name,
|
|
@@ -53,7 +53,8 @@ var CardViewsBase = exports.CardViewsBase = function CardViewsBase(_ref) {
|
|
|
53
53
|
error = _ref.error,
|
|
54
54
|
disableAnimation = _ref.disableAnimation,
|
|
55
55
|
shouldOpenMediaViewer = _ref.shouldOpenMediaViewer,
|
|
56
|
-
openMediaViewerButtonRef = _ref.openMediaViewerButtonRef
|
|
56
|
+
openMediaViewerButtonRef = _ref.openMediaViewerButtonRef,
|
|
57
|
+
overriddenCreationDate = _ref.overriddenCreationDate;
|
|
57
58
|
var _useState = (0, _react2.useState)(false),
|
|
58
59
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
59
60
|
didImageRender = _useState2[0],
|
|
@@ -112,7 +113,8 @@ var CardViewsBase = exports.CardViewsBase = function CardViewsBase(_ref) {
|
|
|
112
113
|
mediaCardCursor: mediaCardCursor,
|
|
113
114
|
innerRef: innerRef,
|
|
114
115
|
shouldOpenMediaViewer: shouldOpenMediaViewer,
|
|
115
|
-
openMediaViewerButtonRef: openMediaViewerButtonRef
|
|
116
|
+
openMediaViewerButtonRef: openMediaViewerButtonRef,
|
|
117
|
+
overriddenCreationDate: overriddenCreationDate
|
|
116
118
|
};
|
|
117
119
|
switch (status) {
|
|
118
120
|
case 'uploading':
|
|
@@ -35,6 +35,7 @@ var _cardviews = require("./cardviews");
|
|
|
35
35
|
var _inlinePlayerLazyV = require("./inlinePlayerLazyV2");
|
|
36
36
|
var _mediaFilePreview = require("@atlaskit/media-file-preview");
|
|
37
37
|
var _performance = require("./performance");
|
|
38
|
+
var _dateOverrideContext = require("../../dateOverrideContext");
|
|
38
39
|
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); }
|
|
39
40
|
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 && Object.prototype.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; }
|
|
40
41
|
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; }
|
|
@@ -113,6 +114,8 @@ var FileCard = exports.FileCard = function FileCard(_ref) {
|
|
|
113
114
|
return prevFileState;
|
|
114
115
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
115
116
|
}, [fileState]);
|
|
117
|
+
var dateOverrides = (0, _react.useContext)(_dateOverrideContext.DateOverrideContext);
|
|
118
|
+
var overridenDate = dateOverrides === null || dateOverrides === void 0 ? void 0 : dateOverrides[identifier.id];
|
|
116
119
|
|
|
117
120
|
//----------------------------------------------------------------//
|
|
118
121
|
//------------ State, Refs & Initial Values ----------------------//
|
|
@@ -564,7 +567,8 @@ var FileCard = exports.FileCard = function FileCard(_ref) {
|
|
|
564
567
|
nativeLazyLoad: nativeLazyLoad,
|
|
565
568
|
forceSyncDisplay: forceSyncDisplay,
|
|
566
569
|
mediaCardCursor: mediaCardCursor,
|
|
567
|
-
shouldHideTooltip: shouldHideTooltip
|
|
570
|
+
shouldHideTooltip: shouldHideTooltip,
|
|
571
|
+
overriddenCreationDate: overridenDate
|
|
568
572
|
});
|
|
569
573
|
return isLazyWithOverride ? /*#__PURE__*/_react.default.createElement(_viewportDetector.ViewportDetector, {
|
|
570
574
|
cardEl: cardElement,
|
|
@@ -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.11.
|
|
122
|
+
packageName: "77.11.3",
|
|
123
123
|
componentName: 'mediaInlineCard',
|
|
124
124
|
component: 'mediaInlineCard'
|
|
125
125
|
};
|
|
@@ -60,13 +60,17 @@ var ErrorBoundaryComponent = function ErrorBoundaryComponent(_ref) {
|
|
|
60
60
|
}, isSelected ? _objectSpread({}, selectedStyle) : {
|
|
61
61
|
userSelect: 'text'
|
|
62
62
|
});
|
|
63
|
-
return
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
return (
|
|
64
|
+
/*#__PURE__*/
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
66
|
+
_react.default.createElement("span", {
|
|
67
|
+
style: style
|
|
68
|
+
}, /*#__PURE__*/_react.default.createElement(_warning.default, {
|
|
69
|
+
label: "error",
|
|
70
|
+
size: "small",
|
|
71
|
+
primaryColor: "var(--ds-icon-danger, ".concat(_colors.R300, ")")
|
|
72
|
+
}), message)
|
|
73
|
+
);
|
|
70
74
|
};
|
|
71
75
|
var WrappedMediaInlineAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
72
76
|
(0, _inherits2.default)(WrappedMediaInlineAnalyticsErrorBoundary, _React$Component);
|
|
@@ -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.11.
|
|
17
|
+
var packageVersion = "77.11.3";
|
|
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.11.
|
|
31
|
+
const packageVersion = "77.11.3";
|
|
32
32
|
export class CardBase extends Component {
|
|
33
33
|
constructor(props) {
|
|
34
34
|
super(props);
|
|
@@ -205,7 +205,9 @@ export class CardViewBase extends React.Component {
|
|
|
205
205
|
} = metadata || {};
|
|
206
206
|
const hasTitleBox = !!renderTitleBox || !!renderFailedTitleBox;
|
|
207
207
|
return jsx(React.Fragment, null, jsx("div", {
|
|
208
|
-
css: cardImageContainerStyles
|
|
208
|
+
css: cardImageContainerStyles
|
|
209
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
210
|
+
,
|
|
209
211
|
className: fileCardImageViewSelector,
|
|
210
212
|
"data-testid": fileCardImageViewSelector,
|
|
211
213
|
"data-test-media-name": name,
|
|
@@ -11,7 +11,9 @@ export const InlinePlayerWrapper = props => {
|
|
|
11
11
|
} = props;
|
|
12
12
|
return jsx("div", {
|
|
13
13
|
id: "inlinePlayerWrapper",
|
|
14
|
-
"data-testid": testId
|
|
14
|
+
"data-testid": testId
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
|
+
,
|
|
15
17
|
className: inlinePlayerClassName,
|
|
16
18
|
css: inlinePlayerWrapperStyles({
|
|
17
19
|
selected,
|
|
@@ -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.11.
|
|
69
|
+
const packageVersion = "77.11.3";
|
|
70
70
|
const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
71
71
|
packageVersion,
|
|
72
72
|
packageName,
|
|
@@ -4,7 +4,9 @@ import { wrapperStyles, actionsBarClassName } from './styles';
|
|
|
4
4
|
export const ActionsBarWrapper = props => {
|
|
5
5
|
return jsx("div", {
|
|
6
6
|
id: "actionsBarWrapper",
|
|
7
|
-
css: wrapperStyles(props.isFixed)
|
|
7
|
+
css: wrapperStyles(props.isFixed)
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
9
|
+
,
|
|
8
10
|
className: actionsBarClassName
|
|
9
11
|
}, props.children);
|
|
10
12
|
};
|
|
@@ -8,7 +8,9 @@ export const CardActionButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8
8
|
id: "cardActionButton",
|
|
9
9
|
"data-testid": "media-card-primary-action",
|
|
10
10
|
"aria-label": props.label,
|
|
11
|
-
css: cardActionButtonStyles(props)
|
|
11
|
+
css: cardActionButtonStyles(props)
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
13
|
+
,
|
|
12
14
|
style: props.style,
|
|
13
15
|
onClick: props.onClick,
|
|
14
16
|
onMouseDown: props.onMouseDown,
|
|
@@ -21,7 +21,9 @@ export class CardActionIconButton extends Component {
|
|
|
21
21
|
} = this.props;
|
|
22
22
|
return /*#__PURE__*/React.createElement(CardActionButton, {
|
|
23
23
|
onClick: onClick,
|
|
24
|
-
onMouseDown: this.onMouseDown
|
|
24
|
+
onMouseDown: this.onMouseDown
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
26
|
+
,
|
|
25
27
|
style: {
|
|
26
28
|
color: triggerColor
|
|
27
29
|
},
|
|
@@ -56,7 +56,9 @@ export class CardActionsDropdownMenu extends Component {
|
|
|
56
56
|
triggerRef,
|
|
57
57
|
...providedProps
|
|
58
58
|
}) => /*#__PURE__*/React.createElement(CardActionButtonWithAnalytics, _extends({
|
|
59
|
-
variant: triggerVariant
|
|
59
|
+
variant: triggerVariant
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
61
|
+
,
|
|
60
62
|
style: {
|
|
61
63
|
color: triggerColor
|
|
62
64
|
},
|
|
@@ -6,7 +6,9 @@ export const Blanket = props => {
|
|
|
6
6
|
isFixed
|
|
7
7
|
} = props;
|
|
8
8
|
return jsx("div", {
|
|
9
|
-
css: blanketStyles(isFixed)
|
|
9
|
+
css: blanketStyles(isFixed)
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
11
|
+
,
|
|
10
12
|
className: blanketClassName,
|
|
11
13
|
"data-testid": "media-card-blanket"
|
|
12
14
|
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { backgroundStyles, bkgClassName } from './styles';
|
|
4
4
|
export const PlayButtonBackground = () => {
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
5
6
|
return jsx("div", {
|
|
6
7
|
css: backgroundStyles,
|
|
7
8
|
className: bkgClassName
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { playButtonClassName, playButtonWrapperStyles } from './styles';
|
|
4
4
|
export const PlayButtonWrapper = props => {
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
return (
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
7
|
+
jsx("div", {
|
|
8
|
+
css: playButtonWrapperStyles,
|
|
9
|
+
className: playButtonClassName
|
|
10
|
+
}, props.children)
|
|
11
|
+
);
|
|
9
12
|
};
|
|
@@ -26,7 +26,9 @@ wrapperStyles.displayName = 'TickBoxWrapper';
|
|
|
26
26
|
export const TickBoxWrapper = props => {
|
|
27
27
|
return jsx("div", {
|
|
28
28
|
id: "tickBoxWrapper",
|
|
29
|
-
css: wrapperStyles(props.selected)
|
|
29
|
+
css: wrapperStyles(props.selected)
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
31
|
+
,
|
|
30
32
|
className: tickBoxClassName
|
|
31
33
|
}, props.children);
|
|
32
34
|
};
|
|
@@ -20,7 +20,9 @@ export const Wrapper = props => {
|
|
|
20
20
|
shouldDisplayTooltip
|
|
21
21
|
} = props;
|
|
22
22
|
return jsx("div", {
|
|
23
|
-
id: "newFileExperienceWrapper"
|
|
23
|
+
id: "newFileExperienceWrapper"
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
25
|
+
,
|
|
24
26
|
className: newFileExperienceClassName,
|
|
25
27
|
"data-testid": testId,
|
|
26
28
|
css: wrapperStyles({
|
|
@@ -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.11.
|
|
10
|
+
const packageVersion = "77.11.3";
|
|
11
11
|
export const CardV2Base = ({
|
|
12
12
|
identifier,
|
|
13
13
|
...otherProps
|
|
@@ -52,7 +52,8 @@ export const CardViewV2Base = ({
|
|
|
52
52
|
error,
|
|
53
53
|
disableAnimation,
|
|
54
54
|
openMediaViewerButtonRef = null,
|
|
55
|
-
shouldOpenMediaViewer
|
|
55
|
+
shouldOpenMediaViewer,
|
|
56
|
+
overriddenCreationDate
|
|
56
57
|
}) => {
|
|
57
58
|
const [didImageRender, setDidImageRender] = useState(false);
|
|
58
59
|
const divRef = useRef(null);
|
|
@@ -205,7 +206,9 @@ export const CardViewV2Base = ({
|
|
|
205
206
|
} = metadata || {};
|
|
206
207
|
const actionsWithDetails = metadata && actions ? attachDetailsToActions(actions, metadata) : [];
|
|
207
208
|
const contents = jsx(React.Fragment, null, jsx("div", {
|
|
208
|
-
css: cardImageContainerStyles
|
|
209
|
+
css: cardImageContainerStyles
|
|
210
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
211
|
+
,
|
|
209
212
|
className: fileCardImageViewSelector,
|
|
210
213
|
"data-testid": fileCardImageViewSelector,
|
|
211
214
|
"data-test-media-name": name,
|
|
@@ -244,7 +247,7 @@ export const CardViewV2Base = ({
|
|
|
244
247
|
isFixed: isFixedBlanket
|
|
245
248
|
}), renderTitleBox && name && jsx(TitleBox, {
|
|
246
249
|
name: name,
|
|
247
|
-
createdAt: createdAt,
|
|
250
|
+
createdAt: overriddenCreationDate !== null && overriddenCreationDate !== void 0 ? overriddenCreationDate : createdAt,
|
|
248
251
|
breakpoint: breakpoint,
|
|
249
252
|
titleBoxIcon: titleBoxIcon,
|
|
250
253
|
titleBoxBgColor: titleBoxBgColor
|
|
@@ -35,6 +35,7 @@ export const CardViewWrapper = /*#__PURE__*/React.forwardRef(({
|
|
|
35
35
|
progressBar,
|
|
36
36
|
shouldOpenMediaViewer,
|
|
37
37
|
openMediaViewerButtonRef = null,
|
|
38
|
+
overriddenCreationDate,
|
|
38
39
|
...props
|
|
39
40
|
}, ref) => {
|
|
40
41
|
const {
|
|
@@ -46,13 +47,15 @@ export const CardViewWrapper = /*#__PURE__*/React.forwardRef(({
|
|
|
46
47
|
const defaultBlanket = !disableOverlay && jsx(Blanket, null);
|
|
47
48
|
const defaultTitleBox = !disableOverlay && !!name && jsx(TitleBox, {
|
|
48
49
|
name: name,
|
|
49
|
-
createdAt: createdAt,
|
|
50
|
+
createdAt: overriddenCreationDate !== null && overriddenCreationDate !== void 0 ? overriddenCreationDate : createdAt,
|
|
50
51
|
breakpoint: breakpoint,
|
|
51
52
|
titleBoxIcon: titleBoxIcon,
|
|
52
53
|
titleBoxBgColor: titleBoxBgColor
|
|
53
54
|
});
|
|
54
55
|
const contents = jsx(React.Fragment, null, jsx("div", _extends({
|
|
55
|
-
css: cardImageContainerStyles
|
|
56
|
+
css: cardImageContainerStyles
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
58
|
+
,
|
|
56
59
|
className: fileCardImageViewSelector,
|
|
57
60
|
"data-testid": fileCardImageViewSelector,
|
|
58
61
|
"data-test-media-name": name,
|
|
@@ -40,7 +40,8 @@ export const CardViewsBase = ({
|
|
|
40
40
|
error,
|
|
41
41
|
disableAnimation,
|
|
42
42
|
shouldOpenMediaViewer,
|
|
43
|
-
openMediaViewerButtonRef
|
|
43
|
+
openMediaViewerButtonRef,
|
|
44
|
+
overriddenCreationDate
|
|
44
45
|
}) => {
|
|
45
46
|
const [didImageRender, setDidImageRender] = useState(false);
|
|
46
47
|
const divRef = useRef(null);
|
|
@@ -98,7 +99,8 @@ export const CardViewsBase = ({
|
|
|
98
99
|
mediaCardCursor,
|
|
99
100
|
innerRef,
|
|
100
101
|
shouldOpenMediaViewer,
|
|
101
|
-
openMediaViewerButtonRef
|
|
102
|
+
openMediaViewerButtonRef,
|
|
103
|
+
overriddenCreationDate
|
|
102
104
|
};
|
|
103
105
|
switch (status) {
|
|
104
106
|
case 'uploading':
|
|
@@ -24,6 +24,8 @@ import { CardViews } from './cardviews';
|
|
|
24
24
|
import { InlinePlayerLazyV2 } from './inlinePlayerLazyV2';
|
|
25
25
|
import { useFilePreview } from '@atlaskit/media-file-preview';
|
|
26
26
|
import { performanceNow } from './performance';
|
|
27
|
+
import { useContext } from 'react';
|
|
28
|
+
import { DateOverrideContext } from '../../dateOverrideContext';
|
|
27
29
|
const LoadedCardView = getBooleanFF('platform.media-experience.card-views-refactor_b91lr') ? CardViews : CardViewV2;
|
|
28
30
|
export const FileCard = ({
|
|
29
31
|
appearance = 'auto',
|
|
@@ -87,6 +89,8 @@ export const FileCard = ({
|
|
|
87
89
|
return prevFileState;
|
|
88
90
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
89
91
|
}, [fileState]);
|
|
92
|
+
const dateOverrides = useContext(DateOverrideContext);
|
|
93
|
+
const overridenDate = dateOverrides === null || dateOverrides === void 0 ? void 0 : dateOverrides[identifier.id];
|
|
90
94
|
|
|
91
95
|
//----------------------------------------------------------------//
|
|
92
96
|
//------------ State, Refs & Initial Values ----------------------//
|
|
@@ -517,7 +521,8 @@ export const FileCard = ({
|
|
|
517
521
|
nativeLazyLoad: nativeLazyLoad,
|
|
518
522
|
forceSyncDisplay: forceSyncDisplay,
|
|
519
523
|
mediaCardCursor: mediaCardCursor,
|
|
520
|
-
shouldHideTooltip: shouldHideTooltip
|
|
524
|
+
shouldHideTooltip: shouldHideTooltip,
|
|
525
|
+
overriddenCreationDate: overridenDate
|
|
521
526
|
});
|
|
522
527
|
return isLazyWithOverride ? /*#__PURE__*/React.createElement(ViewportDetector, {
|
|
523
528
|
cardEl: cardElement,
|
|
@@ -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.11.
|
|
40
|
+
packageName: "77.11.3",
|
|
41
41
|
componentName: 'mediaInlineCard',
|
|
42
42
|
component: 'mediaInlineCard'
|
|
43
43
|
};
|