@atlaskit/media-card 77.11.1 → 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 +1680 -781
- 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/actionsBar/cardActions/styles.js +19 -8
- package/dist/cjs/card/ui/actionsBar/styles.js +8 -4
- package/dist/cjs/card/ui/blanket/blanket.js +3 -1
- package/dist/cjs/card/ui/blanket/styles.js +9 -4
- package/dist/cjs/card/ui/iconWrapper/styles.js +9 -4
- 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/playButton/styles.js +23 -5
- package/dist/cjs/card/ui/progressBar/styles.js +1 -4
- package/dist/cjs/card/ui/styles.js +9 -3
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper.js +3 -1
- package/dist/cjs/card/ui/titleBox/styles.js +35 -8
- package/dist/cjs/card/ui/unhandledErrorCard/index.js +15 -5
- 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/lightCards/errorIcon/styles.js +4 -4
- package/dist/cjs/utils/lightCards/styles.js +9 -4
- 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/actionsBar/cardActions/styles.js +18 -27
- package/dist/es2019/card/ui/actionsBar/styles.js +8 -10
- package/dist/es2019/card/ui/blanket/blanket.js +3 -1
- package/dist/es2019/card/ui/blanket/styles.js +9 -11
- package/dist/es2019/card/ui/iconWrapper/styles.js +9 -9
- 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/playButton/styles.js +22 -22
- package/dist/es2019/card/ui/progressBar/styles.js +1 -3
- package/dist/es2019/card/ui/styles.js +9 -10
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper.js +3 -1
- package/dist/es2019/card/ui/titleBox/styles.js +33 -38
- package/dist/es2019/card/ui/unhandledErrorCard/index.js +13 -16
- 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/lightCards/errorIcon/styles.js +4 -4
- package/dist/es2019/utils/lightCards/styles.js +9 -10
- 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/actionsBar/cardActions/styles.js +19 -7
- package/dist/esm/card/ui/actionsBar/styles.js +8 -3
- package/dist/esm/card/ui/blanket/blanket.js +3 -1
- package/dist/esm/card/ui/blanket/styles.js +9 -3
- package/dist/esm/card/ui/iconWrapper/styles.js +9 -3
- 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/playButton/styles.js +23 -4
- package/dist/esm/card/ui/progressBar/styles.js +1 -3
- package/dist/esm/card/ui/styles.js +9 -3
- package/dist/esm/card/ui/tickBox/tickBoxWrapper.js +3 -1
- package/dist/esm/card/ui/titleBox/styles.js +35 -7
- package/dist/esm/card/ui/unhandledErrorCard/index.js +14 -3
- 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/lightCards/errorIcon/styles.js +4 -3
- package/dist/esm/utils/lightCards/styles.js +9 -3
- 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 +4 -3
- 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 +3 -3
- 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 +11 -10
- 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 +9 -5
- package/dist/types/card/v2/cardviews/iconCardView.d.ts +9 -4
- package/dist/types/card/v2/cardviews/imageCardView.d.ts +18 -5
- package/dist/types/card/v2/cardviews/index.d.ts +10 -9
- package/dist/types/card/v2/cardviews/loadingCardView.d.ts +8 -4
- package/dist/types/card/v2/cardviews/processingCardView.d.ts +6 -3
- package/dist/types/card/v2/cardviews/videoCardView.d.ts +18 -5
- 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 +4 -3
- 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 +3 -3
- 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 +11 -10
- 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 +9 -5
- package/dist/types-ts4.5/card/v2/cardviews/iconCardView.d.ts +9 -4
- package/dist/types-ts4.5/card/v2/cardviews/imageCardView.d.ts +18 -5
- package/dist/types-ts4.5/card/v2/cardviews/index.d.ts +10 -9
- package/dist/types-ts4.5/card/v2/cardviews/loadingCardView.d.ts +8 -4
- package/dist/types-ts4.5/card/v2/cardviews/processingCardView.d.ts +6 -3
- package/dist/types-ts4.5/card/v2/cardviews/videoCardView.d.ts +18 -5
- 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 +18 -24
|
@@ -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
|
};
|
|
@@ -47,13 +47,17 @@ const ErrorBoundaryComponent = ({
|
|
|
47
47
|
userSelect: 'text'
|
|
48
48
|
})
|
|
49
49
|
};
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
return (
|
|
51
|
+
/*#__PURE__*/
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
53
|
+
React.createElement("span", {
|
|
54
|
+
style: style
|
|
55
|
+
}, /*#__PURE__*/React.createElement(WarningIcon, {
|
|
56
|
+
label: "error",
|
|
57
|
+
size: "small",
|
|
58
|
+
primaryColor: `var(--ds-icon-danger, ${R300})`
|
|
59
|
+
}), message)
|
|
60
|
+
);
|
|
57
61
|
};
|
|
58
62
|
class WrappedMediaInlineAnalyticsErrorBoundary extends React.Component {
|
|
59
63
|
constructor(props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
export const errorIconWrapperStyles = css
|
|
3
|
-
display: flex
|
|
4
|
-
color:
|
|
5
|
-
|
|
2
|
+
export const errorIconWrapperStyles = css({
|
|
3
|
+
display: 'flex',
|
|
4
|
+
color: "var(--ds-icon-warning, #ff991f)"
|
|
5
|
+
});
|
|
@@ -3,13 +3,12 @@ import { center, borderRadius } from '@atlaskit/media-ui';
|
|
|
3
3
|
import { N20, N50 } from '@atlaskit/theme/colors';
|
|
4
4
|
export const wrapperStyles = ({
|
|
5
5
|
dimensions
|
|
6
|
-
}) => css
|
|
7
|
-
${
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
`;
|
|
6
|
+
}) => css(center, {
|
|
7
|
+
background: `var(--ds-background-neutral, ${N20})`,
|
|
8
|
+
color: `var(--ds-icon, ${N50})`
|
|
9
|
+
}, borderRadius, {
|
|
10
|
+
maxHeight: '100%',
|
|
11
|
+
maxWidth: '100%',
|
|
12
|
+
width: dimensions.width,
|
|
13
|
+
height: dimensions.height
|
|
14
|
+
});
|
|
@@ -4,7 +4,7 @@ import { extractErrorInfo, getRenderErrorRequestMetadata } from './analytics';
|
|
|
4
4
|
import { MediaCardError } from '../errors';
|
|
5
5
|
import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
6
6
|
const packageName = "@atlaskit/media-card";
|
|
7
|
-
const packageVersion = "77.11.
|
|
7
|
+
const packageVersion = "77.11.3";
|
|
8
8
|
let concurrentExperience;
|
|
9
9
|
const getExperience = id => {
|
|
10
10
|
if (!concurrentExperience) {
|
package/dist/esm/card/card.js
CHANGED
|
@@ -41,7 +41,7 @@ import { completeUfoExperience, startUfoExperience, abortUfoExperience } from '.
|
|
|
41
41
|
import { generateUniqueId } from '../utils/generateUniqueId';
|
|
42
42
|
import { DateOverrideContext } from '../dateOverrideContext';
|
|
43
43
|
var packageName = "@atlaskit/media-card";
|
|
44
|
-
var packageVersion = "77.11.
|
|
44
|
+
var packageVersion = "77.11.3";
|
|
45
45
|
export var CardBase = /*#__PURE__*/function (_Component) {
|
|
46
46
|
_inherits(CardBase, _Component);
|
|
47
47
|
var _super = _createSuper(CardBase);
|
|
@@ -201,7 +201,9 @@ export var CardViewBase = /*#__PURE__*/function (_React$Component) {
|
|
|
201
201
|
name = _ref3.name;
|
|
202
202
|
var hasTitleBox = !!renderTitleBox || !!renderFailedTitleBox;
|
|
203
203
|
return jsx(React.Fragment, null, jsx("div", {
|
|
204
|
-
css: cardImageContainerStyles
|
|
204
|
+
css: cardImageContainerStyles
|
|
205
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
206
|
+
,
|
|
205
207
|
className: fileCardImageViewSelector,
|
|
206
208
|
"data-testid": fileCardImageViewSelector,
|
|
207
209
|
"data-test-media-name": name,
|
|
@@ -9,7 +9,9 @@ export var InlinePlayerWrapper = function InlinePlayerWrapper(props) {
|
|
|
9
9
|
innerRef = props.innerRef;
|
|
10
10
|
return jsx("div", {
|
|
11
11
|
id: "inlinePlayerWrapper",
|
|
12
|
-
"data-testid": testId
|
|
12
|
+
"data-testid": testId
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
14
|
+
,
|
|
13
15
|
className: inlinePlayerClassName,
|
|
14
16
|
css: inlinePlayerWrapperStyles({
|
|
15
17
|
selected: selected,
|
|
@@ -83,7 +83,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
|
|
|
83
83
|
}(React.Component);
|
|
84
84
|
_defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
|
|
85
85
|
var packageName = "@atlaskit/media-card";
|
|
86
|
-
var packageVersion = "77.11.
|
|
86
|
+
var packageVersion = "77.11.3";
|
|
87
87
|
var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
88
88
|
packageVersion: packageVersion,
|
|
89
89
|
packageName: packageName,
|
|
@@ -4,7 +4,9 @@ import { wrapperStyles, actionsBarClassName } from './styles';
|
|
|
4
4
|
export var ActionsBarWrapper = function 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 var CardActionButton = /*#__PURE__*/forwardRef(function (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,
|
|
@@ -38,7 +38,9 @@ export var CardActionIconButton = /*#__PURE__*/function (_Component) {
|
|
|
38
38
|
variant = _this$props.variant;
|
|
39
39
|
return /*#__PURE__*/React.createElement(CardActionButton, {
|
|
40
40
|
onClick: onClick,
|
|
41
|
-
onMouseDown: this.onMouseDown
|
|
41
|
+
onMouseDown: this.onMouseDown
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
43
|
+
,
|
|
42
44
|
style: {
|
|
43
45
|
color: triggerColor
|
|
44
46
|
},
|
|
@@ -72,7 +72,9 @@ export var CardActionsDropdownMenu = /*#__PURE__*/function (_Component) {
|
|
|
72
72
|
var triggerRef = _ref.triggerRef,
|
|
73
73
|
providedProps = _objectWithoutProperties(_ref, _excluded);
|
|
74
74
|
return /*#__PURE__*/React.createElement(CardActionButtonWithAnalytics, _extends({
|
|
75
|
-
variant: triggerVariant
|
|
75
|
+
variant: triggerVariant
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
77
|
+
,
|
|
76
78
|
style: {
|
|
77
79
|
color: triggerColor
|
|
78
80
|
},
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
import { N500, N0 } from '@atlaskit/theme/colors';
|
|
5
3
|
import { borderRadius, size, center } from '@atlaskit/media-ui';
|
|
6
4
|
import { rgba } from '../../styles';
|
|
7
5
|
import { fontFamily } from '@atlaskit/theme/constants';
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
export var wrapperStyles = css({
|
|
7
|
+
boxSizing: 'border-box',
|
|
8
|
+
fontFamily: fontFamily(),
|
|
9
|
+
'*': {
|
|
10
|
+
boxSizing: 'border-box'
|
|
11
|
+
},
|
|
12
|
+
display: 'flex',
|
|
13
|
+
position: 'relative',
|
|
14
|
+
lineHeight: 0
|
|
15
|
+
});
|
|
12
16
|
export var CardActionIconButtonVariant = /*#__PURE__*/function (CardActionIconButtonVariant) {
|
|
13
17
|
CardActionIconButtonVariant["default"] = "default";
|
|
14
18
|
CardActionIconButtonVariant["filled"] = "filled";
|
|
@@ -19,5 +23,13 @@ var getVariantStyles = function getVariantStyles(variant) {
|
|
|
19
23
|
};
|
|
20
24
|
export var cardActionButtonStyles = function cardActionButtonStyles(_ref) {
|
|
21
25
|
var variant = _ref.variant;
|
|
22
|
-
return css(
|
|
26
|
+
return css({
|
|
27
|
+
appearance: 'none',
|
|
28
|
+
border: 'none'
|
|
29
|
+
}, center, borderRadius, size(26), {
|
|
30
|
+
color: "var(--ds-icon, ".concat(N500, ")"),
|
|
31
|
+
'&:hover': {
|
|
32
|
+
cursor: 'pointer'
|
|
33
|
+
}
|
|
34
|
+
}, getVariantStyles(variant));
|
|
23
35
|
};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
import { transition } from '../styles';
|
|
5
3
|
export var actionsBarClassName = 'media-card-actions-bar';
|
|
6
4
|
export var fixedActionBarStyles = "opacity: 1;";
|
|
7
5
|
export var wrapperStyles = function wrapperStyles(isFixed) {
|
|
8
|
-
return css(
|
|
6
|
+
return css(isFixed ? fixedActionBarStyles : 'opacity: 0;', transition(), {
|
|
7
|
+
position: 'absolute',
|
|
8
|
+
top: "var(--ds-space-100, 8px)",
|
|
9
|
+
right: "var(--ds-space-100, 8px)",
|
|
10
|
+
display: 'flex',
|
|
11
|
+
flexFlow: 'row nowrap',
|
|
12
|
+
alignItems: 'center'
|
|
13
|
+
});
|
|
9
14
|
};
|
|
10
15
|
wrapperStyles.displayName = 'ActionsBarWrapper';
|
|
@@ -4,7 +4,9 @@ import { blanketStyles, blanketClassName } from './styles';
|
|
|
4
4
|
export var Blanket = function Blanket(props) {
|
|
5
5
|
var isFixed = props.isFixed;
|
|
6
6
|
return jsx("div", {
|
|
7
|
-
css: blanketStyles(isFixed)
|
|
7
|
+
css: blanketStyles(isFixed)
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
9
|
+
,
|
|
8
10
|
className: blanketClassName,
|
|
9
11
|
"data-testid": "media-card-blanket"
|
|
10
12
|
});
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
import { transition } from '../styles';
|
|
5
3
|
import { N90A } from '@atlaskit/theme/colors';
|
|
6
4
|
export var blanketClassName = 'media-card-blanket';
|
|
7
5
|
export var fixedBlanketStyles = "background-color: ".concat("var(--ds-blanket, ".concat(N90A, ")"), ";");
|
|
8
6
|
export var blanketStyles = function blanketStyles(isFixed) {
|
|
9
|
-
return css(
|
|
7
|
+
return css(transition(), {
|
|
8
|
+
position: 'absolute',
|
|
9
|
+
width: '100%',
|
|
10
|
+
height: '100%',
|
|
11
|
+
maxHeight: '100%',
|
|
12
|
+
maxWidth: '100%',
|
|
13
|
+
left: 0,
|
|
14
|
+
top: 0
|
|
15
|
+
}, isFixed ? fixedBlanketStyles : '');
|
|
10
16
|
};
|
|
11
17
|
blanketStyles.displayName = 'Blanket';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
import { getTitleBoxHeight } from '../common';
|
|
5
3
|
export function titleBoxHeight(hasTitleBox, breakpoint) {
|
|
@@ -15,6 +13,14 @@ export function titleBoxHeight(hasTitleBox, breakpoint) {
|
|
|
15
13
|
export var iconWrapperStyles = function iconWrapperStyles(_ref) {
|
|
16
14
|
var hasTitleBox = _ref.hasTitleBox,
|
|
17
15
|
breakpoint = _ref.breakpoint;
|
|
18
|
-
return css(
|
|
16
|
+
return css({
|
|
17
|
+
position: 'absolute',
|
|
18
|
+
width: '100%',
|
|
19
|
+
height: "calc(100% - ".concat(titleBoxHeight(hasTitleBox, breakpoint), ")"),
|
|
20
|
+
display: 'flex',
|
|
21
|
+
flexDirection: 'column',
|
|
22
|
+
justifyContent: 'center',
|
|
23
|
+
alignItems: 'center'
|
|
24
|
+
});
|
|
19
25
|
};
|
|
20
26
|
iconWrapperStyles.displayName = 'MediaIconWrapper';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { backgroundStyles, bkgClassName } from './styles';
|
|
4
4
|
export var PlayButtonBackground = function 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 var PlayButtonWrapper = function 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
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
import { N0, N90A } from '@atlaskit/theme/colors';
|
|
5
3
|
export var playButtonClassName = 'media-card-play-button';
|
|
@@ -7,5 +5,26 @@ export var bkgClassName = 'play-icon-background';
|
|
|
7
5
|
var discSize = 48;
|
|
8
6
|
var discSizeHover = 56;
|
|
9
7
|
export var fixedPlayButtonStyles = "\n .".concat(bkgClassName, " {\n width: ").concat(discSizeHover, "px;\n height: ").concat(discSizeHover, "px;\n }\n");
|
|
10
|
-
export var playButtonWrapperStyles = css(
|
|
11
|
-
|
|
8
|
+
export var playButtonWrapperStyles = css({
|
|
9
|
+
position: 'absolute',
|
|
10
|
+
top: 0,
|
|
11
|
+
left: 0,
|
|
12
|
+
width: '100%',
|
|
13
|
+
height: '100%',
|
|
14
|
+
display: 'flex',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
justifyContent: 'center',
|
|
17
|
+
color: "var(--ds-icon-inverse, ".concat(N0, ")"),
|
|
18
|
+
span: {
|
|
19
|
+
position: 'absolute'
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export var backgroundStyles = css({
|
|
23
|
+
transitionProperty: 'width, height',
|
|
24
|
+
transitionDuration: '0.1s',
|
|
25
|
+
position: 'absolute',
|
|
26
|
+
width: "".concat(discSize, "px"),
|
|
27
|
+
height: "".concat(discSize, "px"),
|
|
28
|
+
background: "var(--ds-background-neutral-bold, ".concat(N90A, ")"),
|
|
29
|
+
borderRadius: '100%'
|
|
30
|
+
});
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
import { borderRadius } from '@atlaskit/media-ui';
|
|
5
3
|
import { rgba } from '../styles';
|
|
@@ -35,6 +33,6 @@ var getStyledBarStylesBasedOnProps = function getStyledBarStylesBasedOnProps(_re
|
|
|
35
33
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
36
34
|
|
|
37
35
|
export var styledBarStyles = function styledBarStyles(props) {
|
|
38
|
-
return css(
|
|
36
|
+
return css(getStyledBarStylesBasedOnProps(props));
|
|
39
37
|
};
|
|
40
38
|
styledBarStyles.displayName = 'StyledProgressBar';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
var _templateObject;
|
|
4
2
|
import { css } from '@emotion/react';
|
|
5
3
|
import { borderRadius } from '@atlaskit/media-ui';
|
|
6
4
|
import { N60A } from '@atlaskit/theme/colors';
|
|
@@ -61,7 +59,15 @@ export var getSelectableTickBoxStyles = function getSelectableTickBoxStyles(isTi
|
|
|
61
59
|
}
|
|
62
60
|
return "\n &:hover .".concat(tickBoxClassName, " {\n ").concat(tickboxFixedStyles, "\n }\n ");
|
|
63
61
|
};
|
|
64
|
-
export var cardImageContainerStyles = css(
|
|
62
|
+
export var cardImageContainerStyles = css({
|
|
63
|
+
display: 'flex',
|
|
64
|
+
position: 'relative',
|
|
65
|
+
maxWidth: '100%',
|
|
66
|
+
width: '100%',
|
|
67
|
+
height: '100%',
|
|
68
|
+
maxHeight: '100%',
|
|
69
|
+
overflow: 'hidden'
|
|
70
|
+
}, borderRadius);
|
|
65
71
|
var defaultTransitionDuration = '.3s';
|
|
66
72
|
export var transition = function transition() {
|
|
67
73
|
var propertyName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'all';
|
|
@@ -29,7 +29,9 @@ wrapperStyles.displayName = 'TickBoxWrapper';
|
|
|
29
29
|
export var TickBoxWrapper = function TickBoxWrapper(props) {
|
|
30
30
|
return jsx("div", {
|
|
31
31
|
id: "tickBoxWrapper",
|
|
32
|
-
css: wrapperStyles(props.selected)
|
|
32
|
+
css: wrapperStyles(props.selected)
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
34
|
+
,
|
|
33
35
|
className: tickBoxClassName
|
|
34
36
|
}, props.children);
|
|
35
37
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
import { responsiveSettings, getTitleBoxHeight, Breakpoint } from '../common';
|
|
5
3
|
import { N0, N800 } from '@atlaskit/theme/colors';
|
|
@@ -16,20 +14,50 @@ var HEX_REGEX = /^#[0-9A-F]{6}$/i;
|
|
|
16
14
|
export var titleBoxWrapperStyles = function titleBoxWrapperStyles(_ref) {
|
|
17
15
|
var breakpoint = _ref.breakpoint,
|
|
18
16
|
titleBoxBgColor = _ref.titleBoxBgColor;
|
|
19
|
-
return css(
|
|
17
|
+
return css({
|
|
18
|
+
position: 'absolute',
|
|
19
|
+
bottom: 0,
|
|
20
|
+
width: '100%',
|
|
21
|
+
backgroundColor: "var(--ds-surface, ".concat(rgba(titleBoxBgColor && HEX_REGEX.test(titleBoxBgColor) ? titleBoxBgColor : N0, 1), ")"),
|
|
22
|
+
color: "var(--ds-text, ".concat(N800, ")"),
|
|
23
|
+
cursor: 'inherit',
|
|
24
|
+
pointerEvents: 'none',
|
|
25
|
+
display: 'flex',
|
|
26
|
+
flexDirection: 'column',
|
|
27
|
+
justifyContent: 'center'
|
|
28
|
+
}, generateResponsiveStyles(breakpoint));
|
|
20
29
|
};
|
|
21
30
|
titleBoxWrapperStyles.displayName = 'TitleBoxWrapper';
|
|
22
31
|
var infoStyles = "white-space: nowrap;overflow: hidden;";
|
|
23
32
|
var iconOverlapStyles = "padding-right: 10px;";
|
|
24
33
|
export var titleBoxHeaderStyles = function titleBoxHeaderStyles(_ref2) {
|
|
25
34
|
var hasIconOverlap = _ref2.hasIconOverlap;
|
|
26
|
-
return css(
|
|
35
|
+
return css({
|
|
36
|
+
fontWeight: 600
|
|
37
|
+
}, infoStyles, hasIconOverlap && iconOverlapStyles);
|
|
27
38
|
};
|
|
28
39
|
titleBoxHeaderStyles.displayName = 'FailedTitleBoxHeader';
|
|
29
40
|
export var titleBoxFooterStyles = function titleBoxFooterStyles(_ref3) {
|
|
30
41
|
var hasIconOverlap = _ref3.hasIconOverlap;
|
|
31
|
-
return css(
|
|
42
|
+
return css({
|
|
43
|
+
textOverflow: 'ellipsis'
|
|
44
|
+
}, infoStyles, hasIconOverlap && iconOverlapStyles);
|
|
32
45
|
};
|
|
33
46
|
titleBoxFooterStyles.displayName = 'TitleBoxFooter';
|
|
34
|
-
export var titleBoxIconStyles = css(
|
|
35
|
-
|
|
47
|
+
export var titleBoxIconStyles = css({
|
|
48
|
+
position: 'absolute',
|
|
49
|
+
right: "var(--ds-space-050, 4px)",
|
|
50
|
+
bottom: '0px'
|
|
51
|
+
});
|
|
52
|
+
export var errorMessageWrapperStyles = css({
|
|
53
|
+
display: 'flex',
|
|
54
|
+
alignItems: 'center',
|
|
55
|
+
justifyContent: 'flex-start',
|
|
56
|
+
span: {
|
|
57
|
+
verticalAlign: 'middle',
|
|
58
|
+
':nth-child(2)': {
|
|
59
|
+
marginLeft: "var(--ds-space-050, 4px)",
|
|
60
|
+
marginRight: "var(--ds-space-050, 4px)"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
});
|
|
@@ -3,8 +3,6 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
7
|
-
var _templateObject;
|
|
8
6
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
8
|
/** @jsx jsx */
|
|
@@ -43,7 +41,20 @@ var getConvertedDimension = function getConvertedDimension(dimensions) {
|
|
|
43
41
|
var wrapperStyles = function wrapperStyles() {
|
|
44
42
|
var dimensions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultImageCardDimensions;
|
|
45
43
|
try {
|
|
46
|
-
return css(
|
|
44
|
+
return css(center, borderRadius, {
|
|
45
|
+
background: "var(--ds-background-neutral, ".concat(N20, ")"),
|
|
46
|
+
color: "var(--ds-text-subtle, ".concat(N800, ")"),
|
|
47
|
+
maxHeight: '100%',
|
|
48
|
+
maxWidth: '100%'
|
|
49
|
+
}, getConvertedDimension(dimensions), {
|
|
50
|
+
display: 'flex',
|
|
51
|
+
flexDirection: 'column',
|
|
52
|
+
p: {
|
|
53
|
+
fontSize: "".concat(fontSize(), "px"),
|
|
54
|
+
textAlign: 'center',
|
|
55
|
+
display: shouldShowText(getConvertedDimension(dimensions)) ? 'block' : 'none'
|
|
56
|
+
}
|
|
57
|
+
});
|
|
47
58
|
} catch (e) {
|
|
48
59
|
return null;
|
|
49
60
|
}
|
|
@@ -18,7 +18,9 @@ export var Wrapper = function Wrapper(props) {
|
|
|
18
18
|
isTickBoxSelectable = props.isTickBoxSelectable,
|
|
19
19
|
shouldDisplayTooltip = props.shouldDisplayTooltip;
|
|
20
20
|
return jsx("div", {
|
|
21
|
-
id: "newFileExperienceWrapper"
|
|
21
|
+
id: "newFileExperienceWrapper"
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
23
|
+
,
|
|
22
24
|
className: newFileExperienceClassName,
|
|
23
25
|
"data-testid": testId,
|
|
24
26
|
css: wrapperStyles({
|
|
@@ -9,7 +9,7 @@ import { IntlProvider, injectIntl } from 'react-intl-next';
|
|
|
9
9
|
import { ExternalImageCard } from './externalImageCard';
|
|
10
10
|
import { FileCard } from './fileCard';
|
|
11
11
|
var packageName = "@atlaskit/media-card";
|
|
12
|
-
var packageVersion = "77.11.
|
|
12
|
+
var packageVersion = "77.11.3";
|
|
13
13
|
export var CardV2Base = function CardV2Base(_ref) {
|
|
14
14
|
var identifier = _ref.identifier,
|
|
15
15
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|