@atlaskit/media-card 75.0.1 → 76.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/cardState.js +1 -1
- package/dist/cjs/card/cardView.js +102 -196
- package/dist/cjs/card/getCardStatus.js +2 -41
- package/dist/cjs/card/inlinePlayerWrapper.js +3 -3
- package/dist/cjs/card/inlinePlayerWrapperStyles.js +30 -0
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/ui/actionsBar/actionsBar.js +1 -1
- package/dist/cjs/{utils → card/ui/actionsBar}/cardActions/cardActionsDropdownMenu.js +1 -1
- package/dist/cjs/{utils → card/ui/actionsBar}/cardActions/cardActionsView.js +2 -2
- package/dist/cjs/{utils → card/ui/actionsBar}/cardActions/styles.js +9 -6
- package/dist/cjs/card/ui/actionsBar/styles.js +1 -1
- package/dist/cjs/card/ui/blanket/styles.js +1 -1
- package/dist/cjs/card/ui/imageRenderer/imageRenderer.js +1 -1
- package/dist/cjs/card/ui/progressBar/styles.js +2 -2
- package/dist/cjs/card/ui/styles.js +16 -2
- package/dist/cjs/card/ui/tickBox/styles.js +1 -1
- package/dist/cjs/card/ui/titleBox/styles.js +3 -3
- package/dist/cjs/card/ui/wrapper/index.js +12 -0
- package/dist/cjs/card/ui/{newFileExperience → wrapper}/styles.js +7 -8
- package/dist/cjs/card/ui/{newFileExperience/newFileExperienceWrapper.js → wrapper/wrapper.js} +4 -4
- package/dist/cjs/classnames.js +1 -7
- package/dist/cjs/index.js +3 -9
- package/dist/cjs/inline/loader.js +15 -6
- package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +1 -9
- package/dist/cjs/inline/mediaInlineCard.js +61 -12
- package/dist/cjs/inline/mediaInlineCardAnalytics.js +60 -0
- package/dist/cjs/utils/cardDimensions.js +1 -86
- package/dist/cjs/utils/index.js +1 -128
- package/dist/cjs/utils/lightCards/cardError.js +1 -1
- package/dist/cjs/utils/lightCards/cardLoading.js +3 -16
- package/dist/cjs/utils/lightCards/lightCardWrappers.js +2 -12
- package/dist/cjs/utils/lightCards/styles.js +4 -10
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/card/card.js +1 -1
- package/dist/es2019/card/cardState.js +1 -1
- package/dist/es2019/card/cardView.js +54 -154
- package/dist/es2019/card/getCardStatus.js +1 -41
- package/dist/es2019/card/inlinePlayerWrapper.js +1 -1
- package/dist/es2019/card/inlinePlayerWrapperStyles.js +47 -0
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/actionsBar/actionsBar.js +1 -1
- package/dist/es2019/{utils → card/ui/actionsBar}/cardActions/cardActionsDropdownMenu.js +1 -1
- package/dist/es2019/{utils → card/ui/actionsBar}/cardActions/cardActionsView.js +2 -2
- package/dist/es2019/{utils → card/ui/actionsBar}/cardActions/styles.js +10 -2
- package/dist/es2019/card/ui/actionsBar/styles.js +1 -1
- package/dist/es2019/card/ui/blanket/styles.js +1 -1
- package/dist/es2019/card/ui/imageRenderer/imageRenderer.js +1 -1
- package/dist/es2019/card/ui/progressBar/styles.js +1 -1
- package/dist/es2019/card/ui/styles.js +10 -1
- package/dist/es2019/card/ui/tickBox/styles.js +1 -1
- package/dist/es2019/card/ui/titleBox/styles.js +1 -1
- package/dist/es2019/card/ui/wrapper/index.js +1 -0
- package/dist/es2019/card/ui/{newFileExperience → wrapper}/styles.js +3 -3
- package/dist/es2019/card/ui/{newFileExperience/newFileExperienceWrapper.js → wrapper/wrapper.js} +3 -3
- package/dist/es2019/classnames.js +1 -1
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/inline/loader.js +15 -6
- package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +1 -9
- package/dist/es2019/inline/mediaInlineCard.js +50 -8
- package/dist/es2019/inline/mediaInlineCardAnalytics.js +48 -0
- package/dist/es2019/utils/cardDimensions.js +0 -76
- package/dist/es2019/utils/index.js +1 -5
- package/dist/es2019/utils/lightCards/cardError.js +1 -1
- package/dist/es2019/utils/lightCards/cardLoading.js +4 -17
- package/dist/es2019/utils/lightCards/lightCardWrappers.js +1 -10
- package/dist/es2019/utils/lightCards/styles.js +1 -20
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/card/card.js +1 -1
- package/dist/esm/card/cardState.js +1 -1
- package/dist/esm/card/cardView.js +104 -198
- package/dist/esm/card/getCardStatus.js +2 -41
- package/dist/esm/card/inlinePlayerWrapper.js +1 -1
- package/dist/esm/card/inlinePlayerWrapperStyles.js +22 -0
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/ui/actionsBar/actionsBar.js +1 -1
- package/dist/esm/{utils → card/ui/actionsBar}/cardActions/cardActionsDropdownMenu.js +1 -1
- package/dist/esm/{utils → card/ui/actionsBar}/cardActions/cardActionsView.js +2 -2
- package/dist/esm/{utils → card/ui/actionsBar}/cardActions/styles.js +8 -5
- package/dist/esm/card/ui/actionsBar/styles.js +1 -1
- package/dist/esm/card/ui/blanket/styles.js +1 -1
- package/dist/esm/card/ui/imageRenderer/imageRenderer.js +1 -1
- package/dist/esm/card/ui/progressBar/styles.js +1 -1
- package/dist/esm/card/ui/styles.js +13 -1
- package/dist/esm/card/ui/tickBox/styles.js +1 -1
- package/dist/esm/card/ui/titleBox/styles.js +1 -1
- package/dist/esm/card/ui/wrapper/index.js +1 -0
- package/dist/esm/card/ui/{newFileExperience → wrapper}/styles.js +3 -3
- package/dist/esm/card/ui/{newFileExperience/newFileExperienceWrapper.js → wrapper/wrapper.js} +3 -3
- package/dist/esm/classnames.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/inline/loader.js +15 -6
- package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +1 -9
- package/dist/esm/inline/mediaInlineCard.js +61 -12
- package/dist/esm/inline/mediaInlineCardAnalytics.js +50 -0
- package/dist/esm/utils/cardDimensions.js +0 -76
- package/dist/esm/utils/index.js +1 -5
- package/dist/esm/utils/lightCards/cardError.js +1 -1
- package/dist/esm/utils/lightCards/cardLoading.js +4 -17
- package/dist/esm/utils/lightCards/lightCardWrappers.js +1 -10
- package/dist/esm/utils/lightCards/styles.js +3 -7
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/card/cardView.d.ts +3 -6
- package/dist/types/card/getCardStatus.d.ts +1 -2
- package/dist/{types-ts4.5/card/styles/styles.d.ts → types/card/inlinePlayerWrapperStyles.d.ts} +1 -5
- package/dist/types/card/types.d.ts +1 -12
- package/dist/{types-ts4.5/utils → types/card/ui/actionsBar}/cardActions/cardActionsDropdownMenu.d.ts +1 -1
- package/dist/{types-ts4.5/utils → types/card/ui/actionsBar}/cardActions/cardActionsView.d.ts +1 -1
- package/dist/types/card/ui/styles.d.ts +2 -0
- package/dist/types/card/ui/wrapper/index.d.ts +1 -0
- package/dist/types/card/ui/wrapper/styles.d.ts +5 -0
- package/dist/{types-ts4.5/card/ui/newFileExperience → types/card/ui/wrapper}/types.d.ts +1 -1
- package/dist/{types-ts4.5/card/cardImageView/cardViewWrapper.d.ts → types/card/ui/wrapper/wrapper.d.ts} +1 -1
- package/dist/types/classnames.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/inline/loader.d.ts +1 -1
- package/dist/types/inline/mediaInlineCardAnalytics.d.ts +6 -0
- package/dist/types/utils/analytics.d.ts +7 -1
- package/dist/types/utils/cardDimensions.d.ts +0 -35
- package/dist/types/utils/index.d.ts +1 -9
- package/dist/types/utils/lightCards/lightCardWrappers.d.ts +0 -1
- package/dist/types/utils/lightCards/styles.d.ts +0 -2
- package/dist/types-ts4.5/card/cardView.d.ts +3 -6
- package/dist/types-ts4.5/card/getCardStatus.d.ts +1 -2
- package/dist/{types/card/styles/styles.d.ts → types-ts4.5/card/inlinePlayerWrapperStyles.d.ts} +1 -5
- package/dist/types-ts4.5/card/types.d.ts +1 -12
- package/dist/{types/utils → types-ts4.5/card/ui/actionsBar}/cardActions/cardActionsDropdownMenu.d.ts +1 -1
- package/dist/{types/utils → types-ts4.5/card/ui/actionsBar}/cardActions/cardActionsView.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/styles.d.ts +2 -0
- package/dist/types-ts4.5/card/ui/wrapper/index.d.ts +1 -0
- package/dist/types-ts4.5/card/ui/wrapper/styles.d.ts +5 -0
- package/dist/{types/card/ui/newFileExperience → types-ts4.5/card/ui/wrapper}/types.d.ts +1 -1
- package/dist/{types/card/cardImageView/cardViewWrapper.d.ts → types-ts4.5/card/ui/wrapper/wrapper.d.ts} +1 -1
- package/dist/types-ts4.5/classnames.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/inline/loader.d.ts +1 -1
- package/dist/types-ts4.5/inline/mediaInlineCardAnalytics.d.ts +6 -0
- package/dist/types-ts4.5/utils/analytics.d.ts +7 -1
- package/dist/types-ts4.5/utils/cardDimensions.d.ts +0 -35
- package/dist/types-ts4.5/utils/index.d.ts +1 -9
- package/dist/types-ts4.5/utils/lightCards/lightCardWrappers.d.ts +0 -1
- package/dist/types-ts4.5/utils/lightCards/styles.d.ts +0 -2
- package/package.json +4 -4
- package/report.api.md +2 -6
- package/dist/cjs/card/cardImageView/cardImageViewWrapper.js +0 -51
- package/dist/cjs/card/cardImageView/cardOverlay/cardOverlayComponents.js +0 -51
- package/dist/cjs/card/cardImageView/cardOverlay/index.js +0 -183
- package/dist/cjs/card/cardImageView/cardOverlay/styles.js +0 -63
- package/dist/cjs/card/cardImageView/cardViewWrapper.js +0 -32
- package/dist/cjs/card/cardImageView/fileCardImageView.js +0 -310
- package/dist/cjs/card/cardImageView/index.js +0 -12
- package/dist/cjs/card/cardImageView/styles.js +0 -48
- package/dist/cjs/card/styles/animations.js +0 -12
- package/dist/cjs/card/styles/config.js +0 -8
- package/dist/cjs/card/styles/easing.js +0 -10
- package/dist/cjs/card/styles/getSelectedBorderStyle.js +0 -17
- package/dist/cjs/card/styles/index.js +0 -121
- package/dist/cjs/card/styles/mixins.js +0 -45
- package/dist/cjs/card/styles/styles.js +0 -41
- package/dist/cjs/card/ui/loadingRateLimited/styles.js +0 -27
- package/dist/cjs/utils/breakpoint.js +0 -42
- package/dist/cjs/utils/fileIcon/index.js +0 -54
- package/dist/cjs/utils/fileIcon/styles.js +0 -13
- package/dist/cjs/utils/getErrorMessage.js +0 -14
- package/dist/cjs/utils/progressBar/index.js +0 -45
- package/dist/cjs/utils/progressBar/styles.js +0 -14
- package/dist/cjs/utils/shouldDisplayImageThumbnail.js +0 -17
- package/dist/es2019/card/cardImageView/cardImageViewWrapper.js +0 -43
- package/dist/es2019/card/cardImageView/cardOverlay/cardOverlayComponents.js +0 -41
- package/dist/es2019/card/cardImageView/cardOverlay/index.js +0 -158
- package/dist/es2019/card/cardImageView/cardOverlay/styles.js +0 -240
- package/dist/es2019/card/cardImageView/cardViewWrapper.js +0 -26
- package/dist/es2019/card/cardImageView/fileCardImageView.js +0 -291
- package/dist/es2019/card/cardImageView/index.js +0 -1
- package/dist/es2019/card/cardImageView/styles.js +0 -131
- package/dist/es2019/card/styles/animations.js +0 -4
- package/dist/es2019/card/styles/config.js +0 -1
- package/dist/es2019/card/styles/easing.js +0 -2
- package/dist/es2019/card/styles/getSelectedBorderStyle.js +0 -24
- package/dist/es2019/card/styles/index.js +0 -18
- package/dist/es2019/card/styles/mixins.js +0 -51
- package/dist/es2019/card/styles/styles.js +0 -42
- package/dist/es2019/card/ui/loadingRateLimited/styles.js +0 -41
- package/dist/es2019/utils/breakpoint.js +0 -83
- package/dist/es2019/utils/fileIcon/index.js +0 -31
- package/dist/es2019/utils/fileIcon/styles.js +0 -11
- package/dist/es2019/utils/getErrorMessage.js +0 -4
- package/dist/es2019/utils/progressBar/index.js +0 -21
- package/dist/es2019/utils/progressBar/styles.js +0 -15
- package/dist/es2019/utils/shouldDisplayImageThumbnail.js +0 -10
- package/dist/esm/card/cardImageView/cardImageViewWrapper.js +0 -41
- package/dist/esm/card/cardImageView/cardOverlay/cardOverlayComponents.js +0 -39
- package/dist/esm/card/cardImageView/cardOverlay/index.js +0 -176
- package/dist/esm/card/cardImageView/cardOverlay/styles.js +0 -42
- package/dist/esm/card/cardImageView/cardViewWrapper.js +0 -24
- package/dist/esm/card/cardImageView/fileCardImageView.js +0 -300
- package/dist/esm/card/cardImageView/index.js +0 -1
- package/dist/esm/card/cardImageView/styles.js +0 -33
- package/dist/esm/card/styles/animations.js +0 -4
- package/dist/esm/card/styles/config.js +0 -1
- package/dist/esm/card/styles/easing.js +0 -2
- package/dist/esm/card/styles/getSelectedBorderStyle.js +0 -11
- package/dist/esm/card/styles/index.js +0 -13
- package/dist/esm/card/styles/mixins.js +0 -27
- package/dist/esm/card/styles/styles.js +0 -31
- package/dist/esm/card/ui/loadingRateLimited/styles.js +0 -15
- package/dist/esm/utils/breakpoint.js +0 -33
- package/dist/esm/utils/fileIcon/index.js +0 -47
- package/dist/esm/utils/fileIcon/styles.js +0 -5
- package/dist/esm/utils/getErrorMessage.js +0 -6
- package/dist/esm/utils/progressBar/index.js +0 -38
- package/dist/esm/utils/progressBar/styles.js +0 -6
- package/dist/esm/utils/shouldDisplayImageThumbnail.js +0 -10
- package/dist/types/card/cardImageView/cardImageViewWrapper.d.ts +0 -6
- package/dist/types/card/cardImageView/cardOverlay/cardOverlayComponents.d.ts +0 -8
- package/dist/types/card/cardImageView/cardOverlay/index.d.ts +0 -39
- package/dist/types/card/cardImageView/cardOverlay/styles.d.ts +0 -26
- package/dist/types/card/cardImageView/fileCardImageView.d.ts +0 -49
- package/dist/types/card/cardImageView/index.d.ts +0 -2
- package/dist/types/card/cardImageView/styles.d.ts +0 -24
- package/dist/types/card/styles/animations.d.ts +0 -1
- package/dist/types/card/styles/config.d.ts +0 -1
- package/dist/types/card/styles/easing.d.ts +0 -2
- package/dist/types/card/styles/getSelectedBorderStyle.d.ts +0 -3
- package/dist/types/card/styles/index.d.ts +0 -8
- package/dist/types/card/styles/mixins.d.ts +0 -21
- package/dist/types/card/ui/loadingRateLimited/styles.d.ts +0 -13
- package/dist/types/card/ui/newFileExperience/newFileExperienceWrapper.d.ts +0 -4
- package/dist/types/card/ui/newFileExperience/styles.d.ts +0 -5
- package/dist/types/utils/breakpoint.d.ts +0 -11
- package/dist/types/utils/fileIcon/index.d.ts +0 -12
- package/dist/types/utils/fileIcon/styles.d.ts +0 -1
- package/dist/types/utils/getErrorMessage.d.ts +0 -2
- package/dist/types/utils/progressBar/index.d.ts +0 -9
- package/dist/types/utils/progressBar/styles.d.ts +0 -1
- package/dist/types/utils/shouldDisplayImageThumbnail.d.ts +0 -3
- package/dist/types-ts4.5/card/cardImageView/cardImageViewWrapper.d.ts +0 -6
- package/dist/types-ts4.5/card/cardImageView/cardOverlay/cardOverlayComponents.d.ts +0 -8
- package/dist/types-ts4.5/card/cardImageView/cardOverlay/index.d.ts +0 -39
- package/dist/types-ts4.5/card/cardImageView/cardOverlay/styles.d.ts +0 -26
- package/dist/types-ts4.5/card/cardImageView/fileCardImageView.d.ts +0 -49
- package/dist/types-ts4.5/card/cardImageView/index.d.ts +0 -2
- package/dist/types-ts4.5/card/cardImageView/styles.d.ts +0 -24
- package/dist/types-ts4.5/card/styles/animations.d.ts +0 -1
- package/dist/types-ts4.5/card/styles/config.d.ts +0 -1
- package/dist/types-ts4.5/card/styles/easing.d.ts +0 -2
- package/dist/types-ts4.5/card/styles/getSelectedBorderStyle.d.ts +0 -3
- package/dist/types-ts4.5/card/styles/index.d.ts +0 -8
- package/dist/types-ts4.5/card/styles/mixins.d.ts +0 -21
- package/dist/types-ts4.5/card/ui/loadingRateLimited/styles.d.ts +0 -13
- package/dist/types-ts4.5/card/ui/newFileExperience/newFileExperienceWrapper.d.ts +0 -4
- package/dist/types-ts4.5/card/ui/newFileExperience/styles.d.ts +0 -5
- package/dist/types-ts4.5/utils/breakpoint.d.ts +0 -11
- package/dist/types-ts4.5/utils/fileIcon/index.d.ts +0 -12
- package/dist/types-ts4.5/utils/fileIcon/styles.d.ts +0 -1
- package/dist/types-ts4.5/utils/getErrorMessage.d.ts +0 -2
- package/dist/types-ts4.5/utils/progressBar/index.d.ts +0 -9
- package/dist/types-ts4.5/utils/progressBar/styles.d.ts +0 -1
- package/dist/types-ts4.5/utils/shouldDisplayImageThumbnail.d.ts +0 -3
- /package/dist/cjs/card/{cardImageView/classnames.js → classnames.js} +0 -0
- /package/dist/cjs/{utils → card/ui/actionsBar}/cardActions/cardActionButton.js +0 -0
- /package/dist/cjs/{utils → card/ui/actionsBar}/cardActions/cardActionIconButton.js +0 -0
- /package/dist/cjs/{utils → card/ui/actionsBar}/cardActions/index.js +0 -0
- /package/dist/cjs/{utils → card/ui/imageRenderer}/resizeModeToMediaImageProps.js +0 -0
- /package/dist/cjs/card/ui/{newFileExperience → wrapper}/types.js +0 -0
- /package/dist/cjs/utils/{errorIcon → lightCards/errorIcon}/index.js +0 -0
- /package/dist/cjs/utils/{errorIcon → lightCards/errorIcon}/styles.js +0 -0
- /package/dist/es2019/card/{cardImageView/classnames.js → classnames.js} +0 -0
- /package/dist/es2019/{utils → card/ui/actionsBar}/cardActions/cardActionButton.js +0 -0
- /package/dist/es2019/{utils → card/ui/actionsBar}/cardActions/cardActionIconButton.js +0 -0
- /package/dist/es2019/{utils → card/ui/actionsBar}/cardActions/index.js +0 -0
- /package/dist/es2019/{utils → card/ui/imageRenderer}/resizeModeToMediaImageProps.js +0 -0
- /package/dist/es2019/card/ui/{newFileExperience → wrapper}/types.js +0 -0
- /package/dist/es2019/utils/{errorIcon → lightCards/errorIcon}/index.js +0 -0
- /package/dist/es2019/utils/{errorIcon → lightCards/errorIcon}/styles.js +0 -0
- /package/dist/esm/card/{cardImageView/classnames.js → classnames.js} +0 -0
- /package/dist/esm/{utils → card/ui/actionsBar}/cardActions/cardActionButton.js +0 -0
- /package/dist/esm/{utils → card/ui/actionsBar}/cardActions/cardActionIconButton.js +0 -0
- /package/dist/esm/{utils → card/ui/actionsBar}/cardActions/index.js +0 -0
- /package/dist/esm/{utils → card/ui/imageRenderer}/resizeModeToMediaImageProps.js +0 -0
- /package/dist/esm/card/ui/{newFileExperience → wrapper}/types.js +0 -0
- /package/dist/esm/utils/{errorIcon → lightCards/errorIcon}/index.js +0 -0
- /package/dist/esm/utils/{errorIcon → lightCards/errorIcon}/styles.js +0 -0
- /package/dist/types/card/{cardImageView/classnames.d.ts → classnames.d.ts} +0 -0
- /package/dist/types/{utils → card/ui/actionsBar}/cardActions/cardActionButton.d.ts +0 -0
- /package/dist/types/{utils → card/ui/actionsBar}/cardActions/cardActionIconButton.d.ts +0 -0
- /package/dist/types/{utils → card/ui/actionsBar}/cardActions/index.d.ts +0 -0
- /package/dist/types/{utils → card/ui/actionsBar}/cardActions/styles.d.ts +0 -0
- /package/dist/types/{utils → card/ui/imageRenderer}/resizeModeToMediaImageProps.d.ts +0 -0
- /package/dist/types/utils/{errorIcon → lightCards/errorIcon}/index.d.ts +0 -0
- /package/dist/types/utils/{errorIcon → lightCards/errorIcon}/styles.d.ts +0 -0
- /package/dist/types-ts4.5/card/{cardImageView/classnames.d.ts → classnames.d.ts} +0 -0
- /package/dist/types-ts4.5/{utils → card/ui/actionsBar}/cardActions/cardActionButton.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → card/ui/actionsBar}/cardActions/cardActionIconButton.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → card/ui/actionsBar}/cardActions/index.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → card/ui/actionsBar}/cardActions/styles.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → card/ui/imageRenderer}/resizeModeToMediaImageProps.d.ts +0 -0
- /package/dist/types-ts4.5/utils/{errorIcon → lightCards/errorIcon}/index.d.ts +0 -0
- /package/dist/types-ts4.5/utils/{errorIcon → lightCards/errorIcon}/styles.d.ts +0 -0
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
|
-
import { borderRadius } from '@atlaskit/theme/constants';
|
|
5
|
-
import { getCSSUnitValue } from '../../utils/getCSSUnitValue';
|
|
6
|
-
import { breakpointStyles } from '../../utils/breakpoint';
|
|
7
|
-
import { getSelectedBorderStyle } from './getSelectedBorderStyle';
|
|
8
|
-
import { getDimensionsWithDefault } from '../../utils/lightCards/getDimensionsWithDefault';
|
|
9
|
-
export var inlinePlayerClassName = 'media-card-inline-player';
|
|
10
|
-
var getWrapperHeight = function getWrapperHeight(dimensions) {
|
|
11
|
-
return dimensions && dimensions.height ? "height: ".concat(getCSSUnitValue(dimensions.height), "; max-height: 100%;") : '';
|
|
12
|
-
};
|
|
13
|
-
var getWrapperWidth = function getWrapperWidth(dimensions) {
|
|
14
|
-
return dimensions && dimensions.width ? "width: ".concat(getCSSUnitValue(dimensions.width), "; max-width: 100%;") : '';
|
|
15
|
-
};
|
|
16
|
-
export var wrapperStyles = function wrapperStyles(_ref) {
|
|
17
|
-
var dimensions = _ref.dimensions,
|
|
18
|
-
_ref$breakpointSize = _ref.breakpointSize,
|
|
19
|
-
breakpointSize = _ref$breakpointSize === void 0 ? 'medium' : _ref$breakpointSize,
|
|
20
|
-
shouldUsePointerCursor = _ref.shouldUsePointerCursor;
|
|
21
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n ", "\n ", "\n cursor: ", ";\n"])), breakpointStyles({
|
|
22
|
-
breakpointSize: breakpointSize
|
|
23
|
-
}), getWrapperHeight(dimensions), getWrapperWidth(dimensions), shouldUsePointerCursor ? 'pointer' : 'default');
|
|
24
|
-
};
|
|
25
|
-
wrapperStyles.displayName = 'CardViewWrapper';
|
|
26
|
-
export var inlinePlayerWrapperStyles = function inlinePlayerWrapperStyles(_ref2) {
|
|
27
|
-
var dimensions = _ref2.dimensions,
|
|
28
|
-
selected = _ref2.selected;
|
|
29
|
-
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n overflow: hidden;\n border-radius: ", "px;\n position: relative;\n max-width: 100%;\n max-height: 100%;\n\n ", "\n\n video {\n width: 100%;\n height: 100%;\n }\n"])), getDimensionsWithDefault(dimensions).width || '100%', getDimensionsWithDefault(dimensions).height || 'auto', borderRadius(), getSelectedBorderStyle(selected));
|
|
30
|
-
};
|
|
31
|
-
inlinePlayerWrapperStyles.displayName = 'InlinePlayerWrapper';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
|
-
import { generateResponsiveStyles } from '../progressBar/styles';
|
|
5
|
-
import { N300 } from '@atlaskit/theme/colors';
|
|
6
|
-
export var loadingRateLimitedContainerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n"])));
|
|
7
|
-
export var warningIconWrapperStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n justify-content: center;\n display: flex;\n /* Required to allow end users to select text in the error message */\n cursor: auto;\n user-select: text;\n > svg {\n width: 45px;\n }\n"])));
|
|
8
|
-
export var loadingRateLimitedTextWrapperStyles = function loadingRateLimitedTextWrapperStyles(_ref) {
|
|
9
|
-
var breakpoint = _ref.breakpoint,
|
|
10
|
-
positionBottom = _ref.positionBottom;
|
|
11
|
-
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-top: 10px;\n overflow: hidden;\n color: ", ";\n display: block;\n width: 100%;\n text-align: center;\n ", "\n"])), "var(--ds-text-subtlest, ".concat(N300, ")"), generateResponsiveStyles(breakpoint, positionBottom, false, 1));
|
|
12
|
-
};
|
|
13
|
-
loadingRateLimitedTextWrapperStyles.displayName = 'LoadingRateLimitedTextWrapper';
|
|
14
|
-
export var couldntLoadWrapperStyles = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-weight: 550;\n"])));
|
|
15
|
-
export var errorWrapperStyles = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-weight: 350;\n"])));
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { size } from '@atlaskit/media-ui';
|
|
2
|
-
export var breakpointSize = function breakpointSize(width) {
|
|
3
|
-
var sizes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : cardBreakpointSizes;
|
|
4
|
-
var value = parseInt("".concat(width), 10); // Normalize value
|
|
5
|
-
var keys = Object.keys(sizes);
|
|
6
|
-
var defaultValue = keys[0];
|
|
7
|
-
var breakpoint;
|
|
8
|
-
keys.forEach(function (label) {
|
|
9
|
-
if (value < sizes[label] && !breakpoint) {
|
|
10
|
-
breakpoint = label;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
return breakpoint || defaultValue;
|
|
14
|
-
};
|
|
15
|
-
export var cardBreakpointSizes = {
|
|
16
|
-
small: 173,
|
|
17
|
-
medium: 225,
|
|
18
|
-
large: 300,
|
|
19
|
-
xlarge: Infinity
|
|
20
|
-
};
|
|
21
|
-
export var breakpointStyles = function breakpointStyles(_ref) {
|
|
22
|
-
var breakpointSize = _ref.breakpointSize;
|
|
23
|
-
switch (breakpointSize) {
|
|
24
|
-
case 'small':
|
|
25
|
-
return "\n .title {\n font-size: 12px;\n }\n .file-type-icon span {\n // We need to use important here since we can't use the dimensions provided by the Icon component\n ".concat(size('14px !important'), "\n }\n ");
|
|
26
|
-
case 'medium':
|
|
27
|
-
return "\n .title {\n font-size: 14px;\n }\n .file-type-icon span {\n ".concat(size('16px !important'), "\n }\n ");
|
|
28
|
-
case 'large':
|
|
29
|
-
return "\n .overlay {\n padding: 24px;\n }\n .title {\n font-size: 14px;\n }\n .file-size {\n font-size: 14px;\n }\n .file-type-icon span {\n ".concat(size('18px !important'), "\n }\n ");
|
|
30
|
-
case 'xlarge':
|
|
31
|
-
return "\n border-radius: 2px;\n\n .title {\n font-size: 16px;\n }\n\n .file-size {\n font-size: 14px;\n }\n \n .wrapper, .img-wrapper {\n border-radius: 2px;\n }\n\n .overlay {\n padding: 24px;\n }\n\n .file-type-icon span {\n ".concat(size('18px !important'), "\n }\n ");
|
|
32
|
-
}
|
|
33
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
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); }; }
|
|
7
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
8
|
-
/**@jsx jsx */
|
|
9
|
-
import { jsx } from '@emotion/react';
|
|
10
|
-
import { Component } from 'react';
|
|
11
|
-
import { MediaTypeIcon } from '@atlaskit/media-ui/media-type-icon';
|
|
12
|
-
import { fileTypeIconStyles } from './styles';
|
|
13
|
-
var fileTypeIconClass = 'file-type-icon';
|
|
14
|
-
export var FileIcon = /*#__PURE__*/function (_Component) {
|
|
15
|
-
_inherits(FileIcon, _Component);
|
|
16
|
-
var _super = _createSuper(FileIcon);
|
|
17
|
-
function FileIcon() {
|
|
18
|
-
_classCallCheck(this, FileIcon);
|
|
19
|
-
return _super.apply(this, arguments);
|
|
20
|
-
}
|
|
21
|
-
_createClass(FileIcon, [{
|
|
22
|
-
key: "render",
|
|
23
|
-
value: function render() {
|
|
24
|
-
var _this$props = this.props,
|
|
25
|
-
mediaType = _this$props.mediaType,
|
|
26
|
-
iconUrl = _this$props.iconUrl,
|
|
27
|
-
style = _this$props.style;
|
|
28
|
-
var type = mediaType || 'unknown';
|
|
29
|
-
var defaultIcon = jsx(MediaTypeIcon, {
|
|
30
|
-
type: mediaType,
|
|
31
|
-
size: "small",
|
|
32
|
-
className: fileTypeIconClass
|
|
33
|
-
});
|
|
34
|
-
var icon = iconUrl ? jsx("img", {
|
|
35
|
-
src: iconUrl,
|
|
36
|
-
className: "custom-icon",
|
|
37
|
-
alt: type
|
|
38
|
-
}) : defaultIcon;
|
|
39
|
-
return jsx("div", {
|
|
40
|
-
css: fileTypeIconStyles,
|
|
41
|
-
style: style,
|
|
42
|
-
className: fileTypeIconClass
|
|
43
|
-
}, icon);
|
|
44
|
-
}
|
|
45
|
-
}]);
|
|
46
|
-
return FileIcon;
|
|
47
|
-
}(Component);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
|
-
import { size } from '@atlaskit/media-ui';
|
|
5
|
-
export var fileTypeIconStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n float: left;\n margin-right: 6px;\n position: relative;\n top: 1px;\n img {\n ", ";\n }\n"])), size('12px !important'));
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormattedMessage } from 'react-intl-next';
|
|
3
|
-
import { messages } from '@atlaskit/media-ui';
|
|
4
|
-
export var getErrorMessage = function getErrorMessage(status) {
|
|
5
|
-
return status === 'error' && /*#__PURE__*/React.createElement(FormattedMessage, messages.failed_to_load);
|
|
6
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
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); }; }
|
|
7
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
8
|
-
/**@jsx jsx */
|
|
9
|
-
import { jsx } from '@emotion/react';
|
|
10
|
-
import { Component } from 'react';
|
|
11
|
-
import { progressWrapperStyles } from './styles';
|
|
12
|
-
export var ProgressBar = /*#__PURE__*/function (_Component) {
|
|
13
|
-
_inherits(ProgressBar, _Component);
|
|
14
|
-
var _super = _createSuper(ProgressBar);
|
|
15
|
-
function ProgressBar() {
|
|
16
|
-
_classCallCheck(this, ProgressBar);
|
|
17
|
-
return _super.apply(this, arguments);
|
|
18
|
-
}
|
|
19
|
-
_createClass(ProgressBar, [{
|
|
20
|
-
key: "render",
|
|
21
|
-
value: function render() {
|
|
22
|
-
if (typeof this.props.progress !== 'number') {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
var progress = Math.min(1, Math.max(0, this.props.progress));
|
|
26
|
-
var progressBarStyle = {
|
|
27
|
-
width: "".concat(progress * 100, "%")
|
|
28
|
-
};
|
|
29
|
-
return jsx("div", {
|
|
30
|
-
css: progressWrapperStyles
|
|
31
|
-
}, jsx("div", {
|
|
32
|
-
className: 'progressBar',
|
|
33
|
-
style: progressBarStyle
|
|
34
|
-
}));
|
|
35
|
-
}
|
|
36
|
-
}]);
|
|
37
|
-
return ProgressBar;
|
|
38
|
-
}(Component);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
4
|
-
import { css } from '@emotion/react';
|
|
5
|
-
import { borderRadius } from '@atlaskit/media-ui';
|
|
6
|
-
export var progressWrapperStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", " z-index: 30;\n overflow: hidden;\n background-color: rgba(255, 255, 255, 0.3);\n\n .progressBar {\n width: 0%;\n height: 3px;\n transition: width 0.25s ease-in;\n background-color: white;\n }\n"])), borderRadius);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { isMimeTypeSupportedByBrowser } from '@atlaskit/media-client';
|
|
2
|
-
export var shouldDisplayImageThumbnail = function shouldDisplayImageThumbnail(cardStatus, mediaItemType, dataURI, mediaType, mimeType) {
|
|
3
|
-
if (mediaType === 'doc' || !mimeType && mediaItemType === 'file') {
|
|
4
|
-
return false;
|
|
5
|
-
}
|
|
6
|
-
if (dataURI) {
|
|
7
|
-
return mediaItemType === 'external-image' || mimeType && isMimeTypeSupportedByBrowser(mimeType) || cardStatus === 'complete' || cardStatus === 'loading-preview';
|
|
8
|
-
}
|
|
9
|
-
return false;
|
|
10
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**@jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { WrapperProps } from './styles';
|
|
4
|
-
export declare const CardImageViewWrapper: (props: WrapperProps) => jsx.JSX.Element;
|
|
5
|
-
export declare const PlayIconWrapper: (props: any) => jsx.JSX.Element;
|
|
6
|
-
export declare const ProgressBarWrapper: (props: any) => jsx.JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**@jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { OverlayProps } from './styles';
|
|
4
|
-
export declare const Overlay: (props: OverlayProps) => jsx.JSX.Element;
|
|
5
|
-
export declare const ErrorMessage: (props: any) => jsx.JSX.Element;
|
|
6
|
-
export declare const AltWrapper: (props: any) => jsx.JSX.Element;
|
|
7
|
-
export declare const TitleWrapper: (props: any) => jsx.JSX.Element;
|
|
8
|
-
export declare const Metadata: (props: any) => jsx.JSX.Element;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**@jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { MouseEvent, Component, ReactNode } from 'react';
|
|
4
|
-
import { MediaType } from '@atlaskit/media-client';
|
|
5
|
-
import { CardAction, CardEventHandler } from '../../actions';
|
|
6
|
-
import { CardStatus } from '../../../types';
|
|
7
|
-
export interface CardOverlayProps {
|
|
8
|
-
readonly cardStatus: CardStatus;
|
|
9
|
-
mediaType?: MediaType;
|
|
10
|
-
mediaName?: string;
|
|
11
|
-
subtitle?: string;
|
|
12
|
-
selectable?: boolean;
|
|
13
|
-
selected?: boolean;
|
|
14
|
-
persistent: boolean;
|
|
15
|
-
error?: ReactNode;
|
|
16
|
-
alt?: string;
|
|
17
|
-
noHover?: boolean;
|
|
18
|
-
actions?: Array<CardAction>;
|
|
19
|
-
icon?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface CardOverlayState {
|
|
22
|
-
isMenuExpanded: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare class CardOverlay extends Component<CardOverlayProps, CardOverlayState> {
|
|
25
|
-
static defaultProps: {
|
|
26
|
-
actions: never[];
|
|
27
|
-
mediaName: string;
|
|
28
|
-
};
|
|
29
|
-
constructor(props: CardOverlayProps);
|
|
30
|
-
private get wrapperClassNames();
|
|
31
|
-
render(): jsx.JSX.Element;
|
|
32
|
-
errorLine(): false | "" | 0 | jsx.JSX.Element | null | undefined;
|
|
33
|
-
tickBox(): false | jsx.JSX.Element | undefined;
|
|
34
|
-
bottomLeftColumn(): jsx.JSX.Element | undefined;
|
|
35
|
-
onMenuToggle: (attrs: {
|
|
36
|
-
isOpen: boolean;
|
|
37
|
-
}) => void;
|
|
38
|
-
removeBtnClick(handler: CardEventHandler): (e: MouseEvent<HTMLDivElement, any>) => void;
|
|
39
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Everything about this file change is just wrong.
|
|
3
|
-
* Mostly because we do bad things with classes.
|
|
4
|
-
* This is all wrong and hopefully will be removed from existence with card v3,
|
|
5
|
-
* so please don’t be too sad about all this!
|
|
6
|
-
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
import { GlobalThemeTokens } from '@atlaskit/theme/components';
|
|
9
|
-
export interface OverlayProps {
|
|
10
|
-
hasError?: boolean;
|
|
11
|
-
noHover?: boolean;
|
|
12
|
-
className?: string;
|
|
13
|
-
children?: JSX.Element[];
|
|
14
|
-
}
|
|
15
|
-
export declare const tickBoxStyles: import("@emotion/react").SerializedStyles;
|
|
16
|
-
export declare const overlayStyles: (props: OverlayProps) => import("@emotion/react").SerializedStyles;
|
|
17
|
-
export declare const errorLineStyles: import("@emotion/react").SerializedStyles;
|
|
18
|
-
export declare const leftColumnStyles: import("@emotion/react").SerializedStyles;
|
|
19
|
-
export declare const topRowStyles: import("@emotion/react").SerializedStyles;
|
|
20
|
-
export declare const bottomRowStyles: import("@emotion/react").SerializedStyles;
|
|
21
|
-
export declare const rightColumnStyles: import("@emotion/react").SerializedStyles;
|
|
22
|
-
export declare const errorMessageStyles: import("@emotion/react").SerializedStyles;
|
|
23
|
-
export declare const altWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
24
|
-
export declare const titleWrapperStyles: (theme: GlobalThemeTokens) => import("@emotion/react").SerializedStyles;
|
|
25
|
-
export declare const subtitleStyles: import("@emotion/react").SerializedStyles;
|
|
26
|
-
export declare const metadataStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**@jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { Component, ReactNode } from 'react';
|
|
4
|
-
import { MediaItemType, MediaType, ImageResizeMode } from '@atlaskit/media-client';
|
|
5
|
-
import { CardStatus, CardPreview, CardDimensions } from '../../types';
|
|
6
|
-
import { CardAction } from '../actions';
|
|
7
|
-
export interface FileCardImageViewProps {
|
|
8
|
-
readonly mediaName?: string;
|
|
9
|
-
readonly mediaType?: MediaType;
|
|
10
|
-
readonly mimeType?: string;
|
|
11
|
-
readonly fileSize?: string;
|
|
12
|
-
readonly dataURI?: string;
|
|
13
|
-
readonly alt?: string;
|
|
14
|
-
readonly progress?: number;
|
|
15
|
-
readonly status: CardStatus;
|
|
16
|
-
readonly mediaItemType: MediaItemType;
|
|
17
|
-
readonly dimensions?: CardDimensions;
|
|
18
|
-
readonly resizeMode?: ImageResizeMode;
|
|
19
|
-
readonly disableOverlay?: boolean;
|
|
20
|
-
readonly selectable?: boolean;
|
|
21
|
-
readonly selected?: boolean;
|
|
22
|
-
readonly error?: ReactNode;
|
|
23
|
-
readonly actions?: CardAction[];
|
|
24
|
-
readonly onDisplayImage?: () => void;
|
|
25
|
-
readonly previewOrientation?: number;
|
|
26
|
-
readonly onImageError?: (cardPreview: CardPreview) => void;
|
|
27
|
-
readonly onImageLoad?: (cardPreview: CardPreview) => void;
|
|
28
|
-
readonly cardPreview: CardPreview;
|
|
29
|
-
}
|
|
30
|
-
export declare class FileCardImageView extends Component<FileCardImageViewProps> {
|
|
31
|
-
private wasThumbnailDisplayed;
|
|
32
|
-
static defaultProps: Partial<FileCardImageViewProps>;
|
|
33
|
-
render(): jsx.JSX.Element;
|
|
34
|
-
private renderCardContents;
|
|
35
|
-
private renderLoadingContents;
|
|
36
|
-
private renderErrorContents;
|
|
37
|
-
private renderFailedContents;
|
|
38
|
-
private renderUploadingCardOverlay;
|
|
39
|
-
private renderPlayButton;
|
|
40
|
-
onImageLoad: () => void;
|
|
41
|
-
onImageError: () => void;
|
|
42
|
-
private renderMediaImage;
|
|
43
|
-
private renderProgressBar;
|
|
44
|
-
private renderSuccessCardContents;
|
|
45
|
-
private renderSuccessCardOverlay;
|
|
46
|
-
private get isFileCardImageReadyForDisplay();
|
|
47
|
-
private get isCropped();
|
|
48
|
-
private get isStretched();
|
|
49
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { GlobalThemeTokens } from '@atlaskit/theme/components';
|
|
3
|
-
import { CardStatus } from '../../types';
|
|
4
|
-
export interface WrapperProps {
|
|
5
|
-
disableOverlay?: boolean;
|
|
6
|
-
selectable?: boolean;
|
|
7
|
-
selected?: boolean;
|
|
8
|
-
hasOnClick?: boolean;
|
|
9
|
-
mediaType?: string;
|
|
10
|
-
mediaName?: string;
|
|
11
|
-
progress?: number;
|
|
12
|
-
status?: CardStatus;
|
|
13
|
-
theme?: GlobalThemeTokens;
|
|
14
|
-
children?: JSX.Element | JSX.Element[];
|
|
15
|
-
}
|
|
16
|
-
export declare const wrapperStyles: (props: WrapperProps) => import("@emotion/react").SerializedStyles;
|
|
17
|
-
export declare const playIconWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
18
|
-
export declare const playIconBackgroundStyles: import("@emotion/react").SerializedStyles;
|
|
19
|
-
export declare const progressBarWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
20
|
-
export declare const overlayStyles: import("@emotion/react").SerializedStyles;
|
|
21
|
-
export declare const titleStyles: import("@emotion/react").SerializedStyles;
|
|
22
|
-
export declare const bodyStyles: import("@emotion/react").SerializedStyles;
|
|
23
|
-
export declare const progressWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
24
|
-
export declare const cardActionsWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const spin: import("@emotion/serialize").Keyframes;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const defaultTransitionDuration = ".3s";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { defaultTransitionDuration } from './config';
|
|
2
|
-
export { antialiased, borderRadiusLeft, capitalize, centerSelf, centerSelfX, centerSelfY, centerX, hexToRgb, rgba, spaceAround, transition, withAppearance, } from './mixins';
|
|
3
|
-
export type { WithAppearanceProps } from './mixins';
|
|
4
|
-
export { easeOutCubic, easeOutExpo } from './easing';
|
|
5
|
-
export { spin } from './animations';
|
|
6
|
-
export declare const rootStyles: () => import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const cardShadow: string;
|
|
8
|
-
export default rootStyles;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CardAppearance } from '../../types';
|
|
2
|
-
export declare const centerX = "\n display: flex;\n justify-content: center;\n";
|
|
3
|
-
export declare const antialiased = "\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n";
|
|
4
|
-
export declare const centerSelfY = "\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n";
|
|
5
|
-
export declare const centerSelfX = "\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n";
|
|
6
|
-
export declare const centerSelf = "\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n";
|
|
7
|
-
export declare const borderRadiusLeft: string;
|
|
8
|
-
export declare const spaceAround = "\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n";
|
|
9
|
-
export declare const transition: (propertyName?: string) => string;
|
|
10
|
-
export declare const hexToRgb: (hex: any) => string | null;
|
|
11
|
-
export declare const rgba: (hex: any, opacity: any) => string;
|
|
12
|
-
export declare const capitalize = "\n &::first-letter {\n text-transform: uppercase;\n }\n";
|
|
13
|
-
export interface WithAppearanceProps {
|
|
14
|
-
appearance?: CardAppearance;
|
|
15
|
-
}
|
|
16
|
-
export declare const withAppearance: (styleMap: {
|
|
17
|
-
auto?: string | undefined;
|
|
18
|
-
image?: string | undefined;
|
|
19
|
-
square?: string | undefined;
|
|
20
|
-
horizontal?: string | undefined;
|
|
21
|
-
}) => ({ appearance }: WithAppearanceProps) => string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Breakpoint } from '../common';
|
|
2
|
-
export declare const loadingRateLimitedContainerStyles: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const warningIconWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export type StyledTextProps = {
|
|
5
|
-
breakpoint: Breakpoint;
|
|
6
|
-
positionBottom: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const loadingRateLimitedTextWrapperStyles: {
|
|
9
|
-
({ breakpoint, positionBottom, }: StyledTextProps): import("@emotion/react").SerializedStyles;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const couldntLoadWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
13
|
-
export declare const errorWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { NewFileExperienceWrapperProps } from './types';
|
|
2
|
-
export declare const newFileExperienceWrapperStyles: {
|
|
3
|
-
({ breakpoint, dimensions, appearance, disableOverlay, displayBackground, selected, isPlayButtonClickable, isTickBoxSelectable, shouldDisplayTooltip, mediaCardCursor, theme, }: NewFileExperienceWrapperProps): import("@emotion/react").SerializedStyles;
|
|
4
|
-
displayName: string;
|
|
5
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CardDimensionValue } from '../types';
|
|
2
|
-
export type BreakpointSizeValue = 'small' | 'medium' | 'large' | 'xlarge';
|
|
3
|
-
export declare const breakpointSize: (width: CardDimensionValue, sizes?: any) => BreakpointSizeValue;
|
|
4
|
-
export interface BreakpointProps {
|
|
5
|
-
breakpointSize: BreakpointSizeValue;
|
|
6
|
-
}
|
|
7
|
-
export type CardBreakpoint = {
|
|
8
|
-
[P in BreakpointSizeValue]?: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const cardBreakpointSizes: CardBreakpoint;
|
|
11
|
-
export declare const breakpointStyles: ({ breakpointSize }: BreakpointProps) => string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**@jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { Component } from 'react';
|
|
4
|
-
import { MediaType } from '@atlaskit/media-client';
|
|
5
|
-
export interface FileIconProps {
|
|
6
|
-
mediaType?: MediaType;
|
|
7
|
-
style?: any;
|
|
8
|
-
iconUrl?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class FileIcon extends Component<FileIconProps, {}> {
|
|
11
|
-
render(): jsx.JSX.Element;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const fileTypeIconStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**@jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { Component } from 'react';
|
|
4
|
-
export interface ProgressBarProps {
|
|
5
|
-
progress?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare class ProgressBar extends Component<ProgressBarProps, {}> {
|
|
8
|
-
render(): jsx.JSX.Element | null;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const progressWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { MediaItemType, MediaType } from '@atlaskit/media-client';
|
|
2
|
-
import { CardStatus } from '../types';
|
|
3
|
-
export declare const shouldDisplayImageThumbnail: (cardStatus: CardStatus, mediaItemType: MediaItemType, dataURI?: string, mediaType?: MediaType, mimeType?: string) => boolean;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**@jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { WrapperProps } from './styles';
|
|
4
|
-
export declare const CardImageViewWrapper: (props: WrapperProps) => jsx.JSX.Element;
|
|
5
|
-
export declare const PlayIconWrapper: (props: any) => jsx.JSX.Element;
|
|
6
|
-
export declare const ProgressBarWrapper: (props: any) => jsx.JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**@jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { OverlayProps } from './styles';
|
|
4
|
-
export declare const Overlay: (props: OverlayProps) => jsx.JSX.Element;
|
|
5
|
-
export declare const ErrorMessage: (props: any) => jsx.JSX.Element;
|
|
6
|
-
export declare const AltWrapper: (props: any) => jsx.JSX.Element;
|
|
7
|
-
export declare const TitleWrapper: (props: any) => jsx.JSX.Element;
|
|
8
|
-
export declare const Metadata: (props: any) => jsx.JSX.Element;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**@jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { MouseEvent, Component, ReactNode } from 'react';
|
|
4
|
-
import { MediaType } from '@atlaskit/media-client';
|
|
5
|
-
import { CardAction, CardEventHandler } from '../../actions';
|
|
6
|
-
import { CardStatus } from '../../../types';
|
|
7
|
-
export interface CardOverlayProps {
|
|
8
|
-
readonly cardStatus: CardStatus;
|
|
9
|
-
mediaType?: MediaType;
|
|
10
|
-
mediaName?: string;
|
|
11
|
-
subtitle?: string;
|
|
12
|
-
selectable?: boolean;
|
|
13
|
-
selected?: boolean;
|
|
14
|
-
persistent: boolean;
|
|
15
|
-
error?: ReactNode;
|
|
16
|
-
alt?: string;
|
|
17
|
-
noHover?: boolean;
|
|
18
|
-
actions?: Array<CardAction>;
|
|
19
|
-
icon?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface CardOverlayState {
|
|
22
|
-
isMenuExpanded: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare class CardOverlay extends Component<CardOverlayProps, CardOverlayState> {
|
|
25
|
-
static defaultProps: {
|
|
26
|
-
actions: never[];
|
|
27
|
-
mediaName: string;
|
|
28
|
-
};
|
|
29
|
-
constructor(props: CardOverlayProps);
|
|
30
|
-
private get wrapperClassNames();
|
|
31
|
-
render(): jsx.JSX.Element;
|
|
32
|
-
errorLine(): false | "" | 0 | jsx.JSX.Element | null | undefined;
|
|
33
|
-
tickBox(): false | jsx.JSX.Element | undefined;
|
|
34
|
-
bottomLeftColumn(): jsx.JSX.Element | undefined;
|
|
35
|
-
onMenuToggle: (attrs: {
|
|
36
|
-
isOpen: boolean;
|
|
37
|
-
}) => void;
|
|
38
|
-
removeBtnClick(handler: CardEventHandler): (e: MouseEvent<HTMLDivElement, any>) => void;
|
|
39
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* Everything about this file change is just wrong.
|
|
4
|
-
* Mostly because we do bad things with classes.
|
|
5
|
-
* This is all wrong and hopefully will be removed from existence with card v3,
|
|
6
|
-
* so please don’t be too sad about all this!
|
|
7
|
-
*/
|
|
8
|
-
import { GlobalThemeTokens } from '@atlaskit/theme/components';
|
|
9
|
-
export interface OverlayProps {
|
|
10
|
-
hasError?: boolean;
|
|
11
|
-
noHover?: boolean;
|
|
12
|
-
className?: string;
|
|
13
|
-
children?: JSX.Element[];
|
|
14
|
-
}
|
|
15
|
-
export declare const tickBoxStyles: import("@emotion/react").SerializedStyles;
|
|
16
|
-
export declare const overlayStyles: (props: OverlayProps) => import("@emotion/react").SerializedStyles;
|
|
17
|
-
export declare const errorLineStyles: import("@emotion/react").SerializedStyles;
|
|
18
|
-
export declare const leftColumnStyles: import("@emotion/react").SerializedStyles;
|
|
19
|
-
export declare const topRowStyles: import("@emotion/react").SerializedStyles;
|
|
20
|
-
export declare const bottomRowStyles: import("@emotion/react").SerializedStyles;
|
|
21
|
-
export declare const rightColumnStyles: import("@emotion/react").SerializedStyles;
|
|
22
|
-
export declare const errorMessageStyles: import("@emotion/react").SerializedStyles;
|
|
23
|
-
export declare const altWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
24
|
-
export declare const titleWrapperStyles: (theme: GlobalThemeTokens) => import("@emotion/react").SerializedStyles;
|
|
25
|
-
export declare const subtitleStyles: import("@emotion/react").SerializedStyles;
|
|
26
|
-
export declare const metadataStyles: import("@emotion/react").SerializedStyles;
|