@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
|
@@ -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);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.errorIconWrapperStyles = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
7
|
var _react = require("@emotion/react");
|
|
10
|
-
var
|
|
11
|
-
|
|
8
|
+
var errorIconWrapperStyles = exports.errorIconWrapperStyles = (0, _react.css)({
|
|
9
|
+
display: 'flex',
|
|
10
|
+
color: "var(--ds-icon-warning, #ff991f)"
|
|
11
|
+
});
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.wrapperStyles = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
7
|
var _react = require("@emotion/react");
|
|
10
8
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
11
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
|
-
var _templateObject;
|
|
13
10
|
var wrapperStyles = exports.wrapperStyles = function wrapperStyles(_ref) {
|
|
14
11
|
var dimensions = _ref.dimensions;
|
|
15
|
-
return (0, _react.css)(
|
|
12
|
+
return (0, _react.css)(_mediaUi.center, {
|
|
13
|
+
background: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
|
|
14
|
+
color: "var(--ds-icon, ".concat(_colors.N50, ")")
|
|
15
|
+
}, _mediaUi.borderRadius, {
|
|
16
|
+
maxHeight: '100%',
|
|
17
|
+
maxWidth: '100%',
|
|
18
|
+
width: dimensions.width,
|
|
19
|
+
height: dimensions.height
|
|
20
|
+
});
|
|
16
21
|
};
|
|
@@ -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
|
},
|
|
@@ -3,20 +3,16 @@ import { N500, N0 } from '@atlaskit/theme/colors';
|
|
|
3
3
|
import { borderRadius, size, center } from '@atlaskit/media-ui';
|
|
4
4
|
import { rgba } from '../../styles';
|
|
5
5
|
import { fontFamily } from '@atlaskit/theme/constants';
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
display: flex;
|
|
17
|
-
position: relative;
|
|
18
|
-
line-height: 0;
|
|
19
|
-
`;
|
|
6
|
+
export const 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
|
+
});
|
|
20
16
|
export let CardActionIconButtonVariant = /*#__PURE__*/function (CardActionIconButtonVariant) {
|
|
21
17
|
CardActionIconButtonVariant["default"] = "default";
|
|
22
18
|
CardActionIconButtonVariant["filled"] = "filled";
|
|
@@ -42,17 +38,12 @@ const getVariantStyles = variant => {
|
|
|
42
38
|
};
|
|
43
39
|
export const cardActionButtonStyles = ({
|
|
44
40
|
variant
|
|
45
|
-
}) => css
|
|
46
|
-
appearance: none
|
|
47
|
-
border: none
|
|
48
|
-
|
|
49
|
-
${
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
&:hover {
|
|
54
|
-
cursor: pointer;
|
|
41
|
+
}) => css({
|
|
42
|
+
appearance: 'none',
|
|
43
|
+
border: 'none'
|
|
44
|
+
}, center, borderRadius, size(26), {
|
|
45
|
+
color: `var(--ds-icon, ${N500})`,
|
|
46
|
+
'&:hover': {
|
|
47
|
+
cursor: 'pointer'
|
|
55
48
|
}
|
|
56
|
-
|
|
57
|
-
${getVariantStyles(variant)}
|
|
58
|
-
`;
|
|
49
|
+
}, getVariantStyles(variant));
|
|
@@ -2,14 +2,12 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { transition } from '../styles';
|
|
3
3
|
export const actionsBarClassName = 'media-card-actions-bar';
|
|
4
4
|
export const fixedActionBarStyles = `opacity: 1;`;
|
|
5
|
-
export const wrapperStyles = isFixed => css
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
align-items: center;
|
|
14
|
-
`;
|
|
5
|
+
export const wrapperStyles = isFixed => css(isFixed ? fixedActionBarStyles : 'opacity: 0;', transition(), {
|
|
6
|
+
position: 'absolute',
|
|
7
|
+
top: "var(--ds-space-100, 8px)",
|
|
8
|
+
right: "var(--ds-space-100, 8px)",
|
|
9
|
+
display: 'flex',
|
|
10
|
+
flexFlow: 'row nowrap',
|
|
11
|
+
alignItems: 'center'
|
|
12
|
+
});
|
|
15
13
|
wrapperStyles.displayName = 'ActionsBarWrapper';
|
|
@@ -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
|
});
|
|
@@ -3,15 +3,13 @@ import { transition } from '../styles';
|
|
|
3
3
|
import { N90A } from '@atlaskit/theme/colors';
|
|
4
4
|
export const blanketClassName = 'media-card-blanket';
|
|
5
5
|
export const fixedBlanketStyles = `background-color: ${`var(--ds-blanket, ${N90A})`};`;
|
|
6
|
-
export const blanketStyles = isFixed => css
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
${isFixed ? fixedBlanketStyles : ''}
|
|
16
|
-
`;
|
|
6
|
+
export const blanketStyles = isFixed => css(transition(), {
|
|
7
|
+
position: 'absolute',
|
|
8
|
+
width: '100%',
|
|
9
|
+
height: '100%',
|
|
10
|
+
maxHeight: '100%',
|
|
11
|
+
maxWidth: '100%',
|
|
12
|
+
left: 0,
|
|
13
|
+
top: 0
|
|
14
|
+
}, isFixed ? fixedBlanketStyles : '');
|
|
17
15
|
blanketStyles.displayName = 'Blanket';
|
|
@@ -13,13 +13,13 @@ export function titleBoxHeight(hasTitleBox, breakpoint) {
|
|
|
13
13
|
export const iconWrapperStyles = ({
|
|
14
14
|
hasTitleBox,
|
|
15
15
|
breakpoint
|
|
16
|
-
}) => css
|
|
17
|
-
position: absolute
|
|
18
|
-
width: 100
|
|
19
|
-
height: calc(100% - ${titleBoxHeight(hasTitleBox, breakpoint)})
|
|
20
|
-
display: flex
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
}) => css({
|
|
17
|
+
position: 'absolute',
|
|
18
|
+
width: '100%',
|
|
19
|
+
height: `calc(100% - ${titleBoxHeight(hasTitleBox, breakpoint)})`,
|
|
20
|
+
display: 'flex',
|
|
21
|
+
flexDirection: 'column',
|
|
22
|
+
justifyContent: 'center',
|
|
23
|
+
alignItems: 'center'
|
|
24
|
+
});
|
|
25
25
|
iconWrapperStyles.displayName = 'MediaIconWrapper';
|
|
@@ -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
|
};
|
|
@@ -10,26 +10,26 @@ export const fixedPlayButtonStyles = `
|
|
|
10
10
|
height: ${discSizeHover}px;
|
|
11
11
|
}
|
|
12
12
|
`;
|
|
13
|
-
export const playButtonWrapperStyles = css
|
|
14
|
-
position: absolute
|
|
15
|
-
top: 0
|
|
16
|
-
left: 0
|
|
17
|
-
width: 100
|
|
18
|
-
height: 100
|
|
19
|
-
display: flex
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
color:
|
|
23
|
-
span {
|
|
24
|
-
position: absolute
|
|
13
|
+
export const playButtonWrapperStyles = css({
|
|
14
|
+
position: 'absolute',
|
|
15
|
+
top: 0,
|
|
16
|
+
left: 0,
|
|
17
|
+
width: '100%',
|
|
18
|
+
height: '100%',
|
|
19
|
+
display: 'flex',
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
justifyContent: 'center',
|
|
22
|
+
color: `var(--ds-icon-inverse, ${N0})`,
|
|
23
|
+
span: {
|
|
24
|
+
position: 'absolute'
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
export const backgroundStyles = css
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
position: absolute
|
|
31
|
-
width:
|
|
32
|
-
height:
|
|
33
|
-
background:
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
});
|
|
27
|
+
export const backgroundStyles = css({
|
|
28
|
+
transitionProperty: 'width, height',
|
|
29
|
+
transitionDuration: '0.1s',
|
|
30
|
+
position: 'absolute',
|
|
31
|
+
width: `${discSize}px`,
|
|
32
|
+
height: `${discSize}px`,
|
|
33
|
+
background: `var(--ds-background-neutral-bold, ${N90A})`,
|
|
34
|
+
borderRadius: '100%'
|
|
35
|
+
});
|
|
@@ -53,8 +53,6 @@ ${generateResponsiveStyles(breakpoint, positionBottom, showOnTop)}
|
|
|
53
53
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
54
54
|
|
|
55
55
|
export const styledBarStyles = props => {
|
|
56
|
-
return css
|
|
57
|
-
${getStyledBarStylesBasedOnProps(props)}
|
|
58
|
-
`;
|
|
56
|
+
return css(getStyledBarStylesBasedOnProps(props));
|
|
59
57
|
};
|
|
60
58
|
styledBarStyles.displayName = 'StyledProgressBar';
|
|
@@ -65,16 +65,15 @@ export const getSelectableTickBoxStyles = isTickBoxSelectable => {
|
|
|
65
65
|
}
|
|
66
66
|
`;
|
|
67
67
|
};
|
|
68
|
-
export const cardImageContainerStyles = css
|
|
69
|
-
display: flex
|
|
70
|
-
position: relative
|
|
71
|
-
|
|
72
|
-
width: 100
|
|
73
|
-
height: 100
|
|
74
|
-
|
|
75
|
-
overflow: hidden
|
|
76
|
-
|
|
77
|
-
`;
|
|
68
|
+
export const cardImageContainerStyles = css({
|
|
69
|
+
display: 'flex',
|
|
70
|
+
position: 'relative',
|
|
71
|
+
maxWidth: '100%',
|
|
72
|
+
width: '100%',
|
|
73
|
+
height: '100%',
|
|
74
|
+
maxHeight: '100%',
|
|
75
|
+
overflow: 'hidden'
|
|
76
|
+
}, borderRadius);
|
|
78
77
|
const defaultTransitionDuration = '.3s';
|
|
79
78
|
export const transition = (propertyName = 'all') => `
|
|
80
79
|
transition: ${propertyName} ${defaultTransitionDuration};
|
|
@@ -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
|
};
|
|
@@ -14,52 +14,47 @@ const HEX_REGEX = /^#[0-9A-F]{6}$/i;
|
|
|
14
14
|
export const titleBoxWrapperStyles = ({
|
|
15
15
|
breakpoint,
|
|
16
16
|
titleBoxBgColor
|
|
17
|
-
}) => css
|
|
18
|
-
position: absolute
|
|
19
|
-
bottom: 0
|
|
20
|
-
width: 100
|
|
21
|
-
|
|
22
|
-
color:
|
|
23
|
-
cursor: inherit
|
|
24
|
-
|
|
25
|
-
display: flex
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
`;
|
|
17
|
+
}) => css({
|
|
18
|
+
position: 'absolute',
|
|
19
|
+
bottom: 0,
|
|
20
|
+
width: '100%',
|
|
21
|
+
backgroundColor: `var(--ds-surface, ${rgba(titleBoxBgColor && HEX_REGEX.test(titleBoxBgColor) ? titleBoxBgColor : N0, 1)})`,
|
|
22
|
+
color: `var(--ds-text, ${N800})`,
|
|
23
|
+
cursor: 'inherit',
|
|
24
|
+
pointerEvents: 'none',
|
|
25
|
+
display: 'flex',
|
|
26
|
+
flexDirection: 'column',
|
|
27
|
+
justifyContent: 'center'
|
|
28
|
+
}, generateResponsiveStyles(breakpoint));
|
|
30
29
|
titleBoxWrapperStyles.displayName = 'TitleBoxWrapper';
|
|
31
30
|
const infoStyles = `white-space: nowrap;overflow: hidden;`;
|
|
32
31
|
const iconOverlapStyles = `padding-right: 10px;`;
|
|
33
32
|
export const titleBoxHeaderStyles = ({
|
|
34
33
|
hasIconOverlap
|
|
35
|
-
}) => css
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
${hasIconOverlap && iconOverlapStyles}
|
|
39
|
-
`;
|
|
34
|
+
}) => css({
|
|
35
|
+
fontWeight: 600
|
|
36
|
+
}, infoStyles, hasIconOverlap && iconOverlapStyles);
|
|
40
37
|
titleBoxHeaderStyles.displayName = 'FailedTitleBoxHeader';
|
|
41
38
|
export const titleBoxFooterStyles = ({
|
|
42
39
|
hasIconOverlap
|
|
43
|
-
}) => css
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
${hasIconOverlap && iconOverlapStyles}
|
|
47
|
-
`;
|
|
40
|
+
}) => css({
|
|
41
|
+
textOverflow: 'ellipsis'
|
|
42
|
+
}, infoStyles, hasIconOverlap && iconOverlapStyles);
|
|
48
43
|
titleBoxFooterStyles.displayName = 'TitleBoxFooter';
|
|
49
|
-
export const titleBoxIconStyles = css
|
|
50
|
-
position: absolute
|
|
51
|
-
right:
|
|
52
|
-
bottom: 0px
|
|
53
|
-
|
|
54
|
-
export const errorMessageWrapperStyles = css
|
|
55
|
-
display: flex
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
span {
|
|
59
|
-
|
|
60
|
-
:nth-child(2) {
|
|
61
|
-
|
|
62
|
-
|
|
44
|
+
export const titleBoxIconStyles = css({
|
|
45
|
+
position: 'absolute',
|
|
46
|
+
right: "var(--ds-space-050, 4px)",
|
|
47
|
+
bottom: '0px'
|
|
48
|
+
});
|
|
49
|
+
export const errorMessageWrapperStyles = css({
|
|
50
|
+
display: 'flex',
|
|
51
|
+
alignItems: 'center',
|
|
52
|
+
justifyContent: 'flex-start',
|
|
53
|
+
span: {
|
|
54
|
+
verticalAlign: 'middle',
|
|
55
|
+
':nth-child(2)': {
|
|
56
|
+
marginLeft: "var(--ds-space-050, 4px)",
|
|
57
|
+
marginRight: "var(--ds-space-050, 4px)"
|
|
63
58
|
}
|
|
64
59
|
}
|
|
65
|
-
|
|
60
|
+
});
|
|
@@ -32,23 +32,20 @@ const getConvertedDimension = dimensions => {
|
|
|
32
32
|
};
|
|
33
33
|
const wrapperStyles = (dimensions = defaultImageCardDimensions) => {
|
|
34
34
|
try {
|
|
35
|
-
return css
|
|
36
|
-
${
|
|
37
|
-
${
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
font-size: ${fontSize()}px;
|
|
48
|
-
text-align: center;
|
|
49
|
-
display: ${shouldShowText(getConvertedDimension(dimensions)) ? 'block' : 'none'};
|
|
35
|
+
return css(center, borderRadius, {
|
|
36
|
+
background: `var(--ds-background-neutral, ${N20})`,
|
|
37
|
+
color: `var(--ds-text-subtle, ${N800})`,
|
|
38
|
+
maxHeight: '100%',
|
|
39
|
+
maxWidth: '100%'
|
|
40
|
+
}, getConvertedDimension(dimensions), {
|
|
41
|
+
display: 'flex',
|
|
42
|
+
flexDirection: 'column',
|
|
43
|
+
p: {
|
|
44
|
+
fontSize: `${fontSize()}px`,
|
|
45
|
+
textAlign: 'center',
|
|
46
|
+
display: shouldShowText(getConvertedDimension(dimensions)) ? 'block' : 'none'
|
|
50
47
|
}
|
|
51
|
-
|
|
48
|
+
});
|
|
52
49
|
} catch (e) {
|
|
53
50
|
return null;
|
|
54
51
|
}
|
|
@@ -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
|