@atlaskit/media-card 77.11.2 → 77.12.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 +2815 -2809
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/cardView.js +6 -8
- package/dist/cjs/card/inlinePlayerWrapper.js +3 -1
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/ui/actionsBar/actionsBarWrapper.js +3 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton.js +3 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionIconButton.js +3 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.js +3 -1
- package/dist/cjs/card/ui/blanket/blanket.js +3 -1
- package/dist/cjs/card/ui/playButton/playButtonBackground.js +1 -0
- package/dist/cjs/card/ui/playButton/playButtonWrapper.js +7 -4
- package/dist/cjs/card/ui/styles.js +1 -12
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper.js +3 -1
- package/dist/cjs/card/ui/wrapper/imageContainer.js +52 -0
- package/dist/cjs/card/ui/wrapper/index.js +8 -1
- package/dist/cjs/card/ui/wrapper/wrapper.js +3 -1
- package/dist/cjs/card/v2/cardV2.js +1 -1
- package/dist/cjs/card/v2/cardViewV2.js +15 -17
- package/dist/cjs/card/v2/cardviews/cardViewWrapper.js +8 -9
- package/dist/cjs/card/v2/cardviews/index.js +4 -2
- package/dist/cjs/card/v2/fileCard.js +71 -21
- package/dist/cjs/card/v2/svgView/helpers.js +16 -0
- package/dist/cjs/card/v2/svgView/index.js +12 -0
- package/dist/cjs/card/v2/svgView/svgView.js +134 -0
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +11 -7
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/es2019/card/card.js +1 -1
- package/dist/es2019/card/cardView.js +8 -10
- package/dist/es2019/card/inlinePlayerWrapper.js +3 -1
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/actionsBar/actionsBarWrapper.js +3 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton.js +3 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionIconButton.js +3 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.js +3 -1
- package/dist/es2019/card/ui/blanket/blanket.js +3 -1
- package/dist/es2019/card/ui/playButton/playButtonBackground.js +1 -0
- package/dist/es2019/card/ui/playButton/playButtonWrapper.js +7 -4
- package/dist/es2019/card/ui/styles.js +0 -11
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper.js +3 -1
- package/dist/es2019/card/ui/wrapper/imageContainer.js +44 -0
- package/dist/es2019/card/ui/wrapper/index.js +2 -1
- package/dist/es2019/card/ui/wrapper/wrapper.js +3 -1
- package/dist/es2019/card/v2/cardV2.js +1 -1
- package/dist/es2019/card/v2/cardViewV2.js +16 -18
- package/dist/es2019/card/v2/cardviews/cardViewWrapper.js +8 -9
- package/dist/es2019/card/v2/cardviews/index.js +4 -2
- package/dist/es2019/card/v2/fileCard.js +57 -9
- package/dist/es2019/card/v2/svgView/helpers.js +12 -0
- package/dist/es2019/card/v2/svgView/index.js +1 -0
- package/dist/es2019/card/v2/svgView/svgView.js +113 -0
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +11 -7
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/card.js +1 -1
- package/dist/esm/card/cardView.js +8 -10
- package/dist/esm/card/inlinePlayerWrapper.js +3 -1
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/ui/actionsBar/actionsBarWrapper.js +3 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton.js +3 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionIconButton.js +3 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.js +3 -1
- package/dist/esm/card/ui/blanket/blanket.js +3 -1
- package/dist/esm/card/ui/playButton/playButtonBackground.js +1 -0
- package/dist/esm/card/ui/playButton/playButtonWrapper.js +7 -4
- package/dist/esm/card/ui/styles.js +0 -11
- package/dist/esm/card/ui/tickBox/tickBoxWrapper.js +3 -1
- package/dist/esm/card/ui/wrapper/imageContainer.js +45 -0
- package/dist/esm/card/ui/wrapper/index.js +2 -1
- package/dist/esm/card/ui/wrapper/wrapper.js +3 -1
- package/dist/esm/card/v2/cardV2.js +1 -1
- package/dist/esm/card/v2/cardViewV2.js +16 -18
- package/dist/esm/card/v2/cardviews/cardViewWrapper.js +9 -10
- package/dist/esm/card/v2/cardviews/index.js +4 -2
- package/dist/esm/card/v2/fileCard.js +72 -21
- package/dist/esm/card/v2/svgView/helpers.js +10 -0
- package/dist/esm/card/v2/svgView/index.js +1 -0
- package/dist/esm/card/v2/svgView/svgView.js +123 -0
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +11 -7
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/types/card/actions.d.ts +2 -2
- package/dist/types/card/card.d.ts +5 -5
- package/dist/types/card/cardAnalytics.d.ts +4 -4
- package/dist/types/card/cardState.d.ts +2 -2
- package/dist/types/card/cardSwitcher.d.ts +1 -1
- package/dist/types/card/cardView.d.ts +8 -8
- package/dist/types/card/getCardPreview/cache.d.ts +3 -3
- package/dist/types/card/getCardPreview/filePreviewStatus.d.ts +2 -2
- package/dist/types/card/getCardPreview/helpers.d.ts +3 -3
- package/dist/types/card/getCardPreview/index.d.ts +5 -5
- package/dist/types/card/getCardStatus.d.ts +2 -2
- package/dist/types/card/inlinePlayer.d.ts +4 -4
- package/dist/types/card/inlinePlayerWrapper.d.ts +1 -1
- package/dist/types/card/inlinePlayerWrapperStyles.d.ts +1 -1
- package/dist/types/card/media-card-analytics-error-boundary.d.ts +4 -4
- package/dist/types/card/types.d.ts +4 -3
- package/dist/types/card/ui/actionsBar/actionsBar.d.ts +1 -1
- package/dist/types/card/ui/actionsBar/actionsBarWrapper.d.ts +1 -1
- package/dist/types/card/ui/actionsBar/cardActions/cardActionButton.d.ts +1 -1
- package/dist/types/card/ui/actionsBar/cardActions/cardActionIconButton.d.ts +2 -2
- package/dist/types/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.d.ts +2 -2
- package/dist/types/card/ui/actionsBar/cardActions/cardActionsView.d.ts +2 -2
- package/dist/types/card/ui/actionsBar/cardActions/styles.d.ts +3 -2
- package/dist/types/card/ui/actionsBar/types.d.ts +2 -2
- package/dist/types/card/ui/iconMessage/iconMessageWrapper.d.ts +1 -1
- package/dist/types/card/ui/iconMessage/index.d.ts +1 -1
- package/dist/types/card/ui/iconMessage/types.d.ts +2 -2
- package/dist/types/card/ui/iconWrapper/iconWrapper.d.ts +1 -1
- package/dist/types/card/ui/iconWrapper/styles.d.ts +2 -2
- package/dist/types/card/ui/iconWrapper/types.d.ts +1 -1
- package/dist/types/card/ui/imageRenderer/imageRenderer.d.ts +2 -2
- package/dist/types/card/ui/imageRenderer/resizeModeToMediaImageProps.d.ts +1 -1
- package/dist/types/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +1 -1
- package/dist/types/card/ui/progressBar/styledBar.d.ts +1 -1
- package/dist/types/card/ui/progressBar/styles.d.ts +1 -1
- package/dist/types/card/ui/progressBar/types.d.ts +1 -1
- package/dist/types/card/ui/styles.d.ts +2 -3
- package/dist/types/card/ui/tickBox/tickBox.d.ts +1 -1
- package/dist/types/card/ui/tickBox/tickBoxWrapper.d.ts +1 -1
- package/dist/types/card/ui/titleBox/failedTitleBox.d.ts +1 -1
- package/dist/types/card/ui/titleBox/styles.d.ts +1 -1
- package/dist/types/card/ui/titleBox/titleBox.d.ts +1 -1
- package/dist/types/card/ui/titleBox/titleBoxComponents.d.ts +1 -1
- package/dist/types/card/ui/titleBox/types.d.ts +3 -3
- package/dist/types/card/ui/unhandledErrorCard/index.d.ts +1 -1
- package/dist/types/card/ui/unhandledErrorCard/types.d.ts +1 -1
- package/dist/types/card/ui/wrapper/imageContainer.d.ts +15 -0
- package/dist/types/card/ui/wrapper/index.d.ts +1 -0
- package/dist/types/card/ui/wrapper/styles.d.ts +1 -1
- package/dist/types/card/ui/wrapper/types.d.ts +6 -5
- package/dist/types/card/ui/wrapper/wrapper.d.ts +1 -1
- package/dist/types/card/useBreakpoint.d.ts +2 -2
- package/dist/types/card/v2/cardV2.d.ts +3 -3
- package/dist/types/card/v2/cardV2Loader.d.ts +1 -1
- package/dist/types/card/v2/cardViewV2.d.ts +10 -9
- package/dist/types/card/v2/cardWithMediaClientV2.d.ts +1 -1
- package/dist/types/card/v2/cardviews/cardViewWrapper.d.ts +8 -7
- package/dist/types/card/v2/cardviews/errorCardView.d.ts +4 -4
- package/dist/types/card/v2/cardviews/iconCardView.d.ts +3 -3
- package/dist/types/card/v2/cardviews/imageCardView.d.ts +4 -4
- package/dist/types/card/v2/cardviews/index.d.ts +9 -8
- package/dist/types/card/v2/cardviews/loadingCardView.d.ts +3 -3
- package/dist/types/card/v2/cardviews/processingCardView.d.ts +2 -2
- package/dist/types/card/v2/cardviews/videoCardView.d.ts +4 -4
- package/dist/types/card/v2/externalImageCard.d.ts +3 -3
- package/dist/types/card/v2/fileCard.d.ts +5 -5
- package/dist/types/card/v2/inlinePlayerV2.d.ts +4 -4
- package/dist/types/card/v2/svgView/helpers.d.ts +3 -0
- package/dist/types/card/v2/svgView/index.d.ts +1 -0
- package/dist/types/card/v2/svgView/svgView.d.ts +31 -0
- package/dist/types/errors.d.ts +2 -2
- package/dist/types/inline/loader.d.ts +3 -3
- package/dist/types/inline/mediaInlineAnalyticsErrorBoundary.d.ts +3 -3
- package/dist/types/inline/mediaInlineCard.d.ts +4 -4
- package/dist/types/inline/mediaInlineCardAnalytics.d.ts +2 -2
- package/dist/types/types.d.ts +6 -6
- package/dist/types/utils/analytics/analytics.d.ts +5 -5
- package/dist/types/utils/cardDimensions.d.ts +1 -1
- package/dist/types/utils/dimensionComparer.d.ts +1 -1
- package/dist/types/utils/getDataURIDimension.d.ts +3 -3
- package/dist/types/utils/getMediaCardCursor.d.ts +1 -1
- package/dist/types/utils/globalScope/getSSRData.d.ts +1 -1
- package/dist/types/utils/globalScope/globalScope.d.ts +5 -5
- package/dist/types/utils/globalScope/types.d.ts +2 -2
- package/dist/types/utils/lightCards/cardError.d.ts +1 -1
- package/dist/types/utils/lightCards/cardLoading.d.ts +1 -1
- package/dist/types/utils/lightCards/getDimensionsWithDefault.d.ts +1 -1
- package/dist/types/utils/lightCards/lightCardWrappers.d.ts +1 -1
- package/dist/types/utils/lightCards/styles.d.ts +1 -1
- package/dist/types/utils/lightCards/types.d.ts +2 -2
- package/dist/types/utils/metadata.d.ts +1 -1
- package/dist/types/utils/objectURLCache.d.ts +1 -1
- package/dist/types/utils/preventClickThrough.d.ts +1 -1
- package/dist/types/utils/ufoExperiences.d.ts +4 -4
- package/dist/types/utils/useCurrentValueRef.d.ts +1 -1
- package/dist/types/utils/videoIsPlayable.d.ts +1 -1
- package/dist/types/utils/viewportDetector.d.ts +1 -1
- package/dist/types-ts4.5/card/actions.d.ts +2 -2
- package/dist/types-ts4.5/card/card.d.ts +5 -5
- package/dist/types-ts4.5/card/cardAnalytics.d.ts +4 -4
- package/dist/types-ts4.5/card/cardState.d.ts +2 -2
- package/dist/types-ts4.5/card/cardSwitcher.d.ts +1 -1
- package/dist/types-ts4.5/card/cardView.d.ts +8 -8
- package/dist/types-ts4.5/card/getCardPreview/cache.d.ts +3 -3
- package/dist/types-ts4.5/card/getCardPreview/filePreviewStatus.d.ts +2 -2
- package/dist/types-ts4.5/card/getCardPreview/helpers.d.ts +3 -3
- package/dist/types-ts4.5/card/getCardPreview/index.d.ts +5 -5
- package/dist/types-ts4.5/card/getCardStatus.d.ts +2 -2
- package/dist/types-ts4.5/card/inlinePlayer.d.ts +4 -4
- package/dist/types-ts4.5/card/inlinePlayerWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/inlinePlayerWrapperStyles.d.ts +1 -1
- package/dist/types-ts4.5/card/media-card-analytics-error-boundary.d.ts +4 -4
- package/dist/types-ts4.5/card/types.d.ts +4 -3
- package/dist/types-ts4.5/card/ui/actionsBar/actionsBar.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionButton.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionIconButton.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsView.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/styles.d.ts +3 -2
- package/dist/types-ts4.5/card/ui/actionsBar/types.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/iconMessage/index.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/iconMessage/types.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/iconWrapper/styles.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/iconWrapper/types.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/imageRenderer/imageRenderer.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/imageRenderer/resizeModeToMediaImageProps.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/progressBar/styledBar.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/progressBar/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/progressBar/types.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/styles.d.ts +2 -3
- package/dist/types-ts4.5/card/ui/tickBox/tickBox.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/failedTitleBox.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/titleBox.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/types.d.ts +3 -3
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/index.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/types.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/wrapper/imageContainer.d.ts +15 -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 +1 -1
- package/dist/types-ts4.5/card/ui/wrapper/types.d.ts +6 -5
- package/dist/types-ts4.5/card/ui/wrapper/wrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/useBreakpoint.d.ts +2 -2
- package/dist/types-ts4.5/card/v2/cardV2.d.ts +3 -3
- package/dist/types-ts4.5/card/v2/cardV2Loader.d.ts +1 -1
- package/dist/types-ts4.5/card/v2/cardViewV2.d.ts +10 -9
- package/dist/types-ts4.5/card/v2/cardWithMediaClientV2.d.ts +1 -1
- package/dist/types-ts4.5/card/v2/cardviews/cardViewWrapper.d.ts +8 -7
- package/dist/types-ts4.5/card/v2/cardviews/errorCardView.d.ts +4 -4
- package/dist/types-ts4.5/card/v2/cardviews/iconCardView.d.ts +3 -3
- package/dist/types-ts4.5/card/v2/cardviews/imageCardView.d.ts +4 -4
- package/dist/types-ts4.5/card/v2/cardviews/index.d.ts +9 -8
- package/dist/types-ts4.5/card/v2/cardviews/loadingCardView.d.ts +3 -3
- package/dist/types-ts4.5/card/v2/cardviews/processingCardView.d.ts +2 -2
- package/dist/types-ts4.5/card/v2/cardviews/videoCardView.d.ts +4 -4
- package/dist/types-ts4.5/card/v2/externalImageCard.d.ts +3 -3
- package/dist/types-ts4.5/card/v2/fileCard.d.ts +5 -5
- package/dist/types-ts4.5/card/v2/inlinePlayerV2.d.ts +4 -4
- package/dist/types-ts4.5/card/v2/svgView/helpers.d.ts +3 -0
- package/dist/types-ts4.5/card/v2/svgView/index.d.ts +1 -0
- package/dist/types-ts4.5/card/v2/svgView/svgView.d.ts +31 -0
- 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/example-helpers/svg-helpers/cardContainer.tsx +30 -0
- package/example-helpers/svg-helpers/controls.tsx +21 -0
- package/example-helpers/svg-helpers/delayApiResponses.ts +31 -0
- package/example-helpers/svg-helpers/dimensionPicker.tsx +124 -0
- package/example-helpers/svg-helpers/index.ts +7 -0
- package/example-helpers/svg-helpers/svgContainer.tsx +32 -0
- package/example-helpers/svg-helpers/toggle.tsx +43 -0
- package/example-helpers/svg-helpers/uploader.ts +44 -0
- package/package.json +20 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CardDimensions, CardAppearance } from '../../types';
|
|
1
|
+
import { type CardDimensions, type CardAppearance } from '../../types';
|
|
2
2
|
import { Breakpoint } from './common';
|
|
3
|
-
import { MediaCardCursor } from '../../types';
|
|
3
|
+
import { type MediaCardCursor } from '../../types';
|
|
4
4
|
export declare const calcBreakpointSize: (wrapperWidth?: number) => Breakpoint;
|
|
5
5
|
export declare const generateResponsiveStyles: (breakpoint?: Breakpoint) => string;
|
|
6
6
|
export declare const getWrapperDimensions: (dimensions?: CardDimensions, appearance?: CardAppearance) => string;
|
|
@@ -8,6 +8,5 @@ export declare const getWrapperShadow: (disableOverlay: boolean, selected: boole
|
|
|
8
8
|
export declare const getCursorStyle: (cursor: MediaCardCursor | undefined) => string;
|
|
9
9
|
export declare const getClickablePlayButtonStyles: (isPlayButtonClickable: boolean) => "" | "\n &:hover .media-card-play-button {\n \n .play-icon-background {\n width: 56px;\n height: 56px;\n }\n\n }\n ";
|
|
10
10
|
export declare const getSelectableTickBoxStyles: (isTickBoxSelectable: boolean) => string;
|
|
11
|
-
export declare const cardImageContainerStyles: import("@emotion/react").SerializedStyles;
|
|
12
11
|
export declare const transition: (propertyName?: string) => string;
|
|
13
12
|
export declare const rgba: (hex: any, opacity: any) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TitleBoxFooterProps, TitleBoxHeaderProps, TitleBoxWrapperProps } from './types';
|
|
1
|
+
import { type TitleBoxFooterProps, type TitleBoxHeaderProps, type TitleBoxWrapperProps } from './types';
|
|
2
2
|
export declare const titleBoxWrapperStyles: {
|
|
3
3
|
({ breakpoint, titleBoxBgColor, }: TitleBoxWrapperProps): import("@emotion/react").SerializedStyles;
|
|
4
4
|
displayName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormattedDateProps, TitleBoxProps } from './types';
|
|
2
|
+
import { type FormattedDateProps, type TitleBoxProps } from './types';
|
|
3
3
|
export declare const FormattedDate: React.ComponentType<FormattedDateProps>;
|
|
4
4
|
export declare const TitleBox: ({ name, createdAt, breakpoint, titleBoxBgColor, titleBoxIcon, }: TitleBoxProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { TitleBoxFooterProps, TitleBoxHeaderProps, TitleBoxWrapperProps } from './types';
|
|
3
|
+
import { type TitleBoxFooterProps, type TitleBoxHeaderProps, type TitleBoxWrapperProps } from './types';
|
|
4
4
|
export declare const TitleBoxWrapper: (props: TitleBoxWrapperProps) => jsx.JSX.Element;
|
|
5
5
|
export declare const TitleBoxHeader: (props: TitleBoxHeaderProps) => jsx.JSX.Element;
|
|
6
6
|
export declare const TitleBoxFooter: (props: TitleBoxFooterProps) => jsx.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
3
|
-
import { Breakpoint } from '../common';
|
|
4
|
-
import { TitleBoxIcon as TitleBoxIconType } from '../../../types';
|
|
2
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
3
|
+
import { type Breakpoint } from '../common';
|
|
4
|
+
import { type TitleBoxIcon as TitleBoxIconType } from '../../../types';
|
|
5
5
|
export type TitleBoxProps = {
|
|
6
6
|
name: string;
|
|
7
7
|
breakpoint: Breakpoint;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { UnhandledErrorCardProps } from './types';
|
|
4
|
+
import { type UnhandledErrorCardProps } from './types';
|
|
5
5
|
export declare class UnhandledErrorCard extends Component<UnhandledErrorCardProps, {}> {
|
|
6
6
|
render(): jsx.JSX.Element;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CardDimensions } from '../../../types';
|
|
2
|
+
import { type CardDimensions } from '../../../types';
|
|
3
3
|
export interface UnhandledErrorCardProps {
|
|
4
4
|
dimensions?: CardDimensions;
|
|
5
5
|
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
type ImageContainerProps = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
centerElements?: boolean;
|
|
7
|
+
testId: string;
|
|
8
|
+
mediaName?: string;
|
|
9
|
+
status?: string;
|
|
10
|
+
progress?: number;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
source?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const ImageContainer: ({ children, testId, mediaName, status, progress, selected, source, centerElements, }: ImageContainerProps) => jsx.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WrapperProps } from './types';
|
|
1
|
+
import { type WrapperProps } from './types';
|
|
2
2
|
export declare const wrapperStyles: {
|
|
3
3
|
({ breakpoint, dimensions, appearance, disableOverlay, displayBackground, selected, isPlayButtonClickable, isTickBoxSelectable, shouldDisplayTooltip, mediaCardCursor, }: WrapperProps): import("@emotion/react").SerializedStyles;
|
|
4
4
|
displayName: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { type MouseEvent } from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
+
import { type CardDimensions, type CardAppearance } from '../../../types';
|
|
5
|
+
import { type Breakpoint } from '../common';
|
|
6
|
+
import { type MediaCardCursor } from '../../../types';
|
|
6
7
|
export interface WrapperProps {
|
|
7
8
|
testId?: string;
|
|
8
9
|
breakpoint: Breakpoint;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Breakpoint } from './ui/common';
|
|
2
|
-
import { CardDimensionValue } from '../types';
|
|
1
|
+
import { type Breakpoint } from './ui/common';
|
|
2
|
+
import { type CardDimensionValue } from '../types';
|
|
3
3
|
export declare const useBreakpoint: (dimensionWidth: CardDimensionValue | undefined, divRef: React.RefObject<HTMLDivElement>) => Breakpoint;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
1
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { CardProps } from '../../types';
|
|
3
|
+
import { type WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import { type CardProps } from '../../types';
|
|
5
5
|
export type CardV2BaseProps = CardProps & WithAnalyticsEventsProps & Partial<WrappedComponentProps>;
|
|
6
6
|
export declare const CardV2Base: ({ identifier, ...otherProps }: CardV2BaseProps & WrappedComponentProps) => JSX.Element;
|
|
7
7
|
export declare const CardV2: React.ComponentType<CardV2BaseProps>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import React, { MouseEvent } from 'react';
|
|
4
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
5
|
-
import { MediaItemType, FileDetails, ImageResizeMode } from '@atlaskit/media-client';
|
|
6
|
-
import { WithAnalyticsEventsProps, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
|
-
import { CardStatus, MediaCardCursor, CardDimensions, TitleBoxIcon } from '../../types';
|
|
8
|
-
import { MediaFilePreview } from '@atlaskit/media-file-preview';
|
|
9
|
-
import { CardAction } from '../actions';
|
|
10
|
-
import { MediaCardError } from '../../errors';
|
|
3
|
+
import React, { type MouseEvent } from 'react';
|
|
4
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
5
|
+
import { type MediaItemType, type FileDetails, type ImageResizeMode } from '@atlaskit/media-client';
|
|
6
|
+
import { type WithAnalyticsEventsProps, type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
|
+
import { type CardStatus, type MediaCardCursor, type CardDimensions, type TitleBoxIcon } from '../../types';
|
|
8
|
+
import { type MediaFilePreview } from '@atlaskit/media-file-preview';
|
|
9
|
+
import { type CardAction } from '../actions';
|
|
10
|
+
import { type MediaCardError } from '../../errors';
|
|
11
11
|
export interface CardViewV2Props {
|
|
12
12
|
readonly disableOverlay?: boolean;
|
|
13
13
|
readonly resizeMode?: ImageResizeMode;
|
|
@@ -38,6 +38,7 @@ export interface CardViewV2Props {
|
|
|
38
38
|
readonly forceSyncDisplay?: boolean;
|
|
39
39
|
disableAnimation?: boolean;
|
|
40
40
|
shouldHideTooltip?: boolean;
|
|
41
|
+
overriddenCreationDate?: number;
|
|
41
42
|
}
|
|
42
43
|
export type CardViewV2BaseProps = CardViewV2Props & WithAnalyticsEventsProps;
|
|
43
44
|
export interface RenderConfigByStatusV2 {
|
|
@@ -54,5 +55,5 @@ export interface RenderConfigByStatusV2 {
|
|
|
54
55
|
renderTickBox?: boolean;
|
|
55
56
|
customTitleMessage?: MessageDescriptor;
|
|
56
57
|
}
|
|
57
|
-
export declare const CardViewV2Base: ({ innerRef, onImageLoad, onImageError, dimensions, onClick, onMouseEnter, testId, metadata, status, selected, selectable, cardPreview, mediaCardCursor, shouldHideTooltip, progress, alt, resizeMode, onDisplayImage, nativeLazyLoad, forceSyncDisplay, actions, disableOverlay, titleBoxBgColor, titleBoxIcon, error, disableAnimation, openMediaViewerButtonRef, shouldOpenMediaViewer, }: CardViewV2BaseProps) => jsx.JSX.Element;
|
|
58
|
+
export declare const CardViewV2Base: ({ innerRef, onImageLoad, onImageError, dimensions, onClick, onMouseEnter, testId, metadata, status, selected, selectable, cardPreview, mediaCardCursor, shouldHideTooltip, progress, alt, resizeMode, onDisplayImage, nativeLazyLoad, forceSyncDisplay, actions, disableOverlay, titleBoxBgColor, titleBoxIcon, error, disableAnimation, openMediaViewerButtonRef, shouldOpenMediaViewer, overriddenCreationDate, }: CardViewV2BaseProps) => jsx.JSX.Element;
|
|
58
59
|
export declare const CardViewV2: React.ForwardRefExoticComponent<Omit<CardViewV2Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, { MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { FileDetails } from '@atlaskit/media-client';
|
|
3
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
-
import { CardAppearance, CardDimensions, MediaCardCursor, TitleBoxIcon } from '../../../types';
|
|
5
|
-
import { CardAction } from '../../actions';
|
|
6
|
-
import { Breakpoint } from '../../ui/common';
|
|
7
|
-
import { MediaFilePreview } from '@atlaskit/media-file-preview';
|
|
1
|
+
import React, { type MouseEvent, type ReactNode } from 'react';
|
|
2
|
+
import { type FileDetails } from '@atlaskit/media-client';
|
|
3
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
+
import { type CardAppearance, type CardDimensions, type MediaCardCursor, type TitleBoxIcon } from '../../../types';
|
|
5
|
+
import { type CardAction } from '../../actions';
|
|
6
|
+
import { type Breakpoint } from '../../ui/common';
|
|
7
|
+
import { type MediaFilePreview } from '@atlaskit/media-file-preview';
|
|
8
8
|
export type SharedCardViewProps = {
|
|
9
9
|
readonly cardPreview?: MediaFilePreview;
|
|
10
10
|
readonly testId?: string;
|
|
@@ -23,6 +23,7 @@ export type SharedCardViewProps = {
|
|
|
23
23
|
readonly titleBoxIcon?: TitleBoxIcon;
|
|
24
24
|
readonly mediaCardCursor?: MediaCardCursor;
|
|
25
25
|
readonly shouldHideTooltip?: boolean;
|
|
26
|
+
overriddenCreationDate?: number;
|
|
26
27
|
};
|
|
27
28
|
export type CardViewWrapperProps = SharedCardViewProps & {
|
|
28
29
|
children: React.ReactNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
import { FileDetails } from '@atlaskit/media-client';
|
|
4
|
-
import { SharedCardViewProps } from './cardViewWrapper';
|
|
5
|
-
import { MediaCardError } from '../../../errors';
|
|
2
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type FileDetails } from '@atlaskit/media-client';
|
|
4
|
+
import { type SharedCardViewProps } from './cardViewWrapper';
|
|
5
|
+
import { type MediaCardError } from '../../../errors';
|
|
6
6
|
export type ErrorCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps & {
|
|
7
7
|
metadata?: FileDetails;
|
|
8
8
|
disableAnimation?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
import { FileDetails } from '@atlaskit/media-client';
|
|
4
|
-
import { SharedCardViewProps } from './cardViewWrapper';
|
|
2
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type FileDetails } from '@atlaskit/media-client';
|
|
4
|
+
import { type SharedCardViewProps } from './cardViewWrapper';
|
|
5
5
|
import type { CardStatus } from '../../../types';
|
|
6
6
|
export type IconCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps & {
|
|
7
7
|
status: CardStatus;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ImageResizeMode } from '@atlaskit/media-client';
|
|
3
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
-
import { FileDetails } from '@atlaskit/media-client';
|
|
2
|
+
import { type ImageResizeMode } from '@atlaskit/media-client';
|
|
3
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
+
import { type FileDetails } from '@atlaskit/media-client';
|
|
5
5
|
import type { CardPreview, CardStatus } from '../../../types';
|
|
6
|
-
import { SharedCardViewProps } from './cardViewWrapper';
|
|
6
|
+
import { type SharedCardViewProps } from './cardViewWrapper';
|
|
7
7
|
export type ImageCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps & {
|
|
8
8
|
status: CardStatus;
|
|
9
9
|
cardPreview: CardPreview;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import React, { MouseEvent } from 'react';
|
|
4
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
5
|
-
import { MediaItemType, FileDetails } from '@atlaskit/media-client';
|
|
6
|
-
import { WithAnalyticsEventsProps, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
|
-
import { SharedCardProps, CardStatus, MediaCardCursor } from '../../../types';
|
|
8
|
-
import { MediaCardError } from '../../../errors';
|
|
9
|
-
import { MediaFilePreview } from '@atlaskit/media-file-preview';
|
|
3
|
+
import React, { type MouseEvent } from 'react';
|
|
4
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
5
|
+
import { type MediaItemType, type FileDetails } from '@atlaskit/media-client';
|
|
6
|
+
import { type WithAnalyticsEventsProps, type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
|
+
import { type SharedCardProps, type CardStatus, type MediaCardCursor } from '../../../types';
|
|
8
|
+
import { type MediaCardError } from '../../../errors';
|
|
9
|
+
import { type MediaFilePreview } from '@atlaskit/media-file-preview';
|
|
10
10
|
export interface CardViewsOwnProps extends SharedCardProps {
|
|
11
11
|
readonly status: CardStatus;
|
|
12
12
|
readonly mediaItemType: MediaItemType;
|
|
@@ -27,6 +27,7 @@ export interface CardViewsOwnProps extends SharedCardProps {
|
|
|
27
27
|
shouldHideTooltip?: boolean;
|
|
28
28
|
readonly openMediaViewerButtonRef?: React.Ref<HTMLButtonElement>;
|
|
29
29
|
readonly shouldOpenMediaViewer?: boolean;
|
|
30
|
+
overriddenCreationDate?: number;
|
|
30
31
|
}
|
|
31
32
|
export type CardViewV2Props = CardViewsOwnProps & WithAnalyticsEventsProps;
|
|
32
33
|
export interface RenderConfigByStatusV2 {
|
|
@@ -43,5 +44,5 @@ export interface RenderConfigByStatusV2 {
|
|
|
43
44
|
renderTickBox?: boolean;
|
|
44
45
|
customTitleMessage?: MessageDescriptor;
|
|
45
46
|
}
|
|
46
|
-
export declare const CardViewsBase: ({ innerRef, onImageLoad, onImageError, dimensions, appearance, onClick, onMouseEnter, testId, metadata, status, selected, selectable, cardPreview, mediaCardCursor, shouldHideTooltip, progress, alt, resizeMode, onDisplayImage, nativeLazyLoad, forceSyncDisplay, actions, disableOverlay, titleBoxBgColor, titleBoxIcon, error, disableAnimation, shouldOpenMediaViewer, openMediaViewerButtonRef, }: CardViewV2Props) => jsx.JSX.Element;
|
|
47
|
+
export declare const CardViewsBase: ({ innerRef, onImageLoad, onImageError, dimensions, appearance, onClick, onMouseEnter, testId, metadata, status, selected, selectable, cardPreview, mediaCardCursor, shouldHideTooltip, progress, alt, resizeMode, onDisplayImage, nativeLazyLoad, forceSyncDisplay, actions, disableOverlay, titleBoxBgColor, titleBoxIcon, error, disableAnimation, shouldOpenMediaViewer, openMediaViewerButtonRef, overriddenCreationDate, }: CardViewV2Props) => jsx.JSX.Element;
|
|
47
48
|
export declare const CardViews: React.ForwardRefExoticComponent<Omit<CardViewsOwnProps & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
import { FileDetails } from '@atlaskit/media-client';
|
|
4
|
-
import { SharedCardViewProps } from './cardViewWrapper';
|
|
2
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type FileDetails } from '@atlaskit/media-client';
|
|
4
|
+
import { type SharedCardViewProps } from './cardViewWrapper';
|
|
5
5
|
export type LoadingCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps & {
|
|
6
6
|
metadata?: FileDetails;
|
|
7
7
|
disableAnimation?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
import { SharedCardViewProps } from './cardViewWrapper';
|
|
2
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type SharedCardViewProps } from './cardViewWrapper';
|
|
4
4
|
export type ProcessingCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps & {
|
|
5
5
|
disableAnimation?: boolean;
|
|
6
6
|
readonly innerRef?: (instance: HTMLDivElement | null) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ImageResizeMode } from '@atlaskit/media-client';
|
|
3
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
-
import { FileDetails } from '@atlaskit/media-client';
|
|
2
|
+
import { type ImageResizeMode } from '@atlaskit/media-client';
|
|
3
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
+
import { type FileDetails } from '@atlaskit/media-client';
|
|
5
5
|
import type { CardPreview, CardStatus } from '../../../types';
|
|
6
|
-
import { SharedCardViewProps } from './cardViewWrapper';
|
|
6
|
+
import { type SharedCardViewProps } from './cardViewWrapper';
|
|
7
7
|
export type VideoCardViewProps = SharedCardViewProps & WithAnalyticsEventsProps & {
|
|
8
8
|
status: CardStatus;
|
|
9
9
|
cardPreview: CardPreview;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
import { ExternalImageIdentifier, Identifier, MediaClient } from '@atlaskit/media-client';
|
|
4
|
-
import { CardEventProps, SharedCardProps } from '../../types';
|
|
2
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type ExternalImageIdentifier, type Identifier, type MediaClient } from '@atlaskit/media-client';
|
|
4
|
+
import { type CardEventProps, type SharedCardProps } from '../../types';
|
|
5
5
|
export interface ExternalImageCardProps extends SharedCardProps, CardEventProps {
|
|
6
6
|
readonly mediaClient: MediaClient;
|
|
7
7
|
readonly identifier: ExternalImageIdentifier;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
import { FileIdentifier, Identifier, ImageResizeMode } from '@atlaskit/media-client';
|
|
4
|
-
import { MediaFeatureFlags, NumericalCardDimensions, SSR } from '@atlaskit/media-common';
|
|
5
|
-
import { CardAppearance, CardDimensions, CardEventProps, TitleBoxIcon } from '../../types';
|
|
6
|
-
import { CardAction } from '../actions';
|
|
2
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type FileIdentifier, type Identifier, type ImageResizeMode } from '@atlaskit/media-client';
|
|
4
|
+
import { type MediaFeatureFlags, type NumericalCardDimensions, type SSR } from '@atlaskit/media-common';
|
|
5
|
+
import { type CardAppearance, type CardDimensions, type CardEventProps, type TitleBoxIcon } from '../../types';
|
|
6
|
+
import { type CardAction } from '../actions';
|
|
7
7
|
export interface FileCardProps extends CardEventProps {
|
|
8
8
|
/** Overlay the media file. */
|
|
9
9
|
readonly disableOverlay?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FileIdentifier, FileState, MediaFileArtifacts } from '@atlaskit/media-client';
|
|
3
|
-
import { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
4
|
-
import { CardDimensions } from '../../types';
|
|
5
|
-
import { WithAnalyticsEventsProps, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import { type FileIdentifier, type FileState, type MediaFileArtifacts } from '@atlaskit/media-client';
|
|
3
|
+
import { type NumericalCardDimensions } from '@atlaskit/media-common';
|
|
4
|
+
import { type CardDimensions } from '../../types';
|
|
5
|
+
import { type WithAnalyticsEventsProps, type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
6
|
import type { CardPreview } from '../../types';
|
|
7
7
|
export interface InlinePlayerOwnProps {
|
|
8
8
|
identifier: FileIdentifier;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvgView } from './svgView';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import React, { type MouseEvent } from 'react';
|
|
4
|
+
import { type FileIdentifier, type ImageResizeMode } from '@atlaskit/media-client';
|
|
5
|
+
import { type WithAnalyticsEventsProps, type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
|
+
import { type CardStatus, type MediaCardCursor, type CardDimensions } from '../../../types';
|
|
7
|
+
import { type MediaFilePreview } from '@atlaskit/media-file-preview';
|
|
8
|
+
export declare const convertResizeMode: (resizeMode?: ImageResizeMode) => React.CSSProperties['objectFit'];
|
|
9
|
+
export type OnClickFn = (event: React.MouseEvent<HTMLDivElement | HTMLButtonElement>, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
10
|
+
export interface SvgViewBaseOwnProps {
|
|
11
|
+
readonly testId?: string;
|
|
12
|
+
identifier: FileIdentifier;
|
|
13
|
+
readonly status: CardStatus;
|
|
14
|
+
readonly dimensions: CardDimensions;
|
|
15
|
+
readonly onClick?: OnClickFn;
|
|
16
|
+
readonly onMouseEnter?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
17
|
+
readonly selected?: boolean;
|
|
18
|
+
readonly fileName?: string;
|
|
19
|
+
readonly cardPreview?: MediaFilePreview;
|
|
20
|
+
readonly mediaCardCursor?: MediaCardCursor;
|
|
21
|
+
readonly progress?: number;
|
|
22
|
+
readonly alt?: string;
|
|
23
|
+
readonly resizeMode?: ImageResizeMode;
|
|
24
|
+
readonly onImageLoad?: (cardPreview: MediaFilePreview) => void;
|
|
25
|
+
readonly onImageError?: (cardPreview: MediaFilePreview) => void;
|
|
26
|
+
readonly shouldOpenMediaViewer?: boolean;
|
|
27
|
+
readonly openMediaViewerButtonRef?: React.Ref<HTMLButtonElement>;
|
|
28
|
+
}
|
|
29
|
+
export type SvgViewProps = SvgViewBaseOwnProps & WithAnalyticsEventsProps;
|
|
30
|
+
export declare const SvgViewBase: ({ identifier, dimensions, onClick, onMouseEnter, testId, status, selected, fileName, cardPreview, mediaCardCursor, progress, alt, resizeMode, shouldOpenMediaViewer, openMediaViewerButtonRef, }: SvgViewProps) => jsx.JSX.Element;
|
|
31
|
+
export declare const SvgView: React.ForwardRefExoticComponent<Omit<SvgViewBaseOwnProps & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MediaClientErrorReason } from '@atlaskit/media-client';
|
|
2
|
-
import { CardPreview } from './types';
|
|
1
|
+
import { type MediaClientErrorReason } from '@atlaskit/media-client';
|
|
2
|
+
import { type CardPreview } from './types';
|
|
3
3
|
import { MediaFileStateError } from '@atlaskit/media-client-react';
|
|
4
4
|
/**
|
|
5
5
|
* Primary reason is logged through Data Portal.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { WithMediaClientConfigProps } from '@atlaskit/media-client-react';
|
|
3
|
-
import { MediaInlineCardProps } from './mediaInlineCard';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type WithMediaClientConfigProps } from '@atlaskit/media-client-react';
|
|
3
|
+
import { type MediaInlineCardProps } from './mediaInlineCard';
|
|
4
4
|
export type MediaInlineCardWithMediaClientConfigProps = WithMediaClientConfigProps<MediaInlineCardProps>;
|
|
5
5
|
type MediaInlineCardWithMediaClientConfigComponent = React.ComponentType<MediaInlineCardWithMediaClientConfigProps>;
|
|
6
6
|
type ErrorBoundaryComponent = React.ComponentType<PropsWithChildren<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
3
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type MediaFeatureFlags } from '@atlaskit/media-common';
|
|
3
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
4
|
export type MediaInlineAnalyticsErrorBoundaryProps = PropsWithChildren<{
|
|
5
5
|
isSelected?: boolean;
|
|
6
6
|
data?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FileIdentifier, Identifier, MediaClient } from '@atlaskit/media-client';
|
|
2
|
-
import React, { FC } from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { InlineCardOnClickCallback } from '../types';
|
|
1
|
+
import { type FileIdentifier, type Identifier, type MediaClient } from '@atlaskit/media-client';
|
|
2
|
+
import React, { type FC } from 'react';
|
|
3
|
+
import { type WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import { type InlineCardOnClickCallback } from '../types';
|
|
5
5
|
export interface MediaInlineCardProps {
|
|
6
6
|
identifier: FileIdentifier;
|
|
7
7
|
mediaClient: MediaClient;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FileState } from '@atlaskit/media-client';
|
|
2
|
-
import { RenderInlineCardFailedEventPayload, RenderInlineCardSucceededEventPayload } from '../utils/analytics';
|
|
1
|
+
import { type FileState } from '@atlaskit/media-client';
|
|
2
|
+
import { type RenderInlineCardFailedEventPayload, type RenderInlineCardSucceededEventPayload } from '../utils/analytics';
|
|
3
3
|
import { MediaCardError } from '../errors';
|
|
4
4
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
5
|
export declare const getSucceededStatusPayload: (fileState?: FileState) => RenderInlineCardSucceededEventPayload;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Entry Point: @atlaskit/media-card/types
|
|
3
3
|
* tsconfig.entry-points.json
|
|
4
4
|
*/
|
|
5
|
-
import { MouseEvent } from 'react';
|
|
6
|
-
import { FileDetails, MediaClient, Identifier, ImageResizeMode, FileState } from '@atlaskit/media-client';
|
|
7
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
8
|
-
import { MediaFeatureFlags, NumericalCardDimensions, SSR } from '@atlaskit/media-common';
|
|
9
|
-
import { CardAction } from './card/actions';
|
|
10
|
-
import { MediaCardError } from './errors';
|
|
5
|
+
import { type MouseEvent } from 'react';
|
|
6
|
+
import { type FileDetails, type MediaClient, type Identifier, type ImageResizeMode, type FileState } from '@atlaskit/media-client';
|
|
7
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
8
|
+
import { type MediaFeatureFlags, type NumericalCardDimensions, type SSR } from '@atlaskit/media-common';
|
|
9
|
+
import { type CardAction } from './card/actions';
|
|
10
|
+
import { type MediaCardError } from './errors';
|
|
11
11
|
export type CardStatus = 'uploading' | 'loading' | 'processing' | 'loading-preview' | 'complete' | 'error' | 'failed-processing';
|
|
12
12
|
export type FilePreviewStatus = {
|
|
13
13
|
hasFilesize: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FileDetails, FileStatus, MediaClientErrorReason, RequestMetadata } from '@atlaskit/media-client';
|
|
2
|
-
import { FileAttributes, PerformanceAttributes, OperationalEventPayload, UIEventPayload, WithFileAttributes, WithPerformanceAttributes, SuccessAttributes, FailureAttributes, ScreenEventPayload, ScreenAttributes, MediaTraceContext, WithTraceContext } from '@atlaskit/media-common/analytics';
|
|
3
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
-
import { MediaCardError, MediaCardErrorPrimaryReason } from '../../errors';
|
|
5
|
-
import { CardPreviewSource, CardDimensions, CardStatus } from '../../types';
|
|
1
|
+
import { type FileDetails, type FileStatus, type MediaClientErrorReason, type RequestMetadata } from '@atlaskit/media-client';
|
|
2
|
+
import { type FileAttributes, type PerformanceAttributes, type OperationalEventPayload, type UIEventPayload, type WithFileAttributes, type WithPerformanceAttributes, type SuccessAttributes, type FailureAttributes, type ScreenEventPayload, type ScreenAttributes, type MediaTraceContext, type WithTraceContext } from '@atlaskit/media-common/analytics';
|
|
3
|
+
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
+
import { type MediaCardError, type MediaCardErrorPrimaryReason } from '../../errors';
|
|
5
|
+
import { type CardPreviewSource, type CardDimensions, type CardStatus } from '../../types';
|
|
6
6
|
export type CardPreviewAttributes = {
|
|
7
7
|
fileId: string;
|
|
8
8
|
prevDimensions: CardDimensions | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CardDimensionValue, CardDimensions } from '../types';
|
|
1
|
+
import { type CardDimensionValue, type CardDimensions } from '../types';
|
|
2
2
|
export declare const canCompareDimension: (current?: CardDimensionValue, next?: CardDimensionValue) => boolean;
|
|
3
3
|
export declare const isBigger: (current?: CardDimensions, next?: CardDimensions) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CardDimensions } from '../types';
|
|
2
|
-
import { ElementDimension } from './getElementDimension';
|
|
3
|
-
import { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
1
|
+
import { type CardDimensions } from '../types';
|
|
2
|
+
import { type ElementDimension } from './getElementDimension';
|
|
3
|
+
import { type NumericalCardDimensions } from '@atlaskit/media-common';
|
|
4
4
|
/**
|
|
5
5
|
* ************************************************
|
|
6
6
|
* For Card v1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MediaCardCursor } from '../types';
|
|
2
|
-
import { MediaType } from '@atlaskit/media-client';
|
|
2
|
+
import { type MediaType } from '@atlaskit/media-client';
|
|
3
3
|
/**
|
|
4
4
|
* When the returned value is undefined, we'd expect the media card to take the parent's cursor style.
|
|
5
5
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FileIdentifier } from '@atlaskit/media-client';
|
|
3
|
-
import { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
4
|
-
import { MediaCardErrorInfo } from '../../utils/analytics';
|
|
5
|
-
import { MediaCardSsr } from './types';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type FileIdentifier } from '@atlaskit/media-client';
|
|
3
|
+
import { type NumericalCardDimensions } from '@atlaskit/media-common';
|
|
4
|
+
import { type MediaCardErrorInfo } from '../../utils/analytics';
|
|
5
|
+
import { type MediaCardSsr } from './types';
|
|
6
6
|
export declare const GLOBAL_MEDIA_CARD_SSR = "mediaCardSsr";
|
|
7
7
|
export declare const GLOBAL_MEDIA_NAMESPACE = "__MEDIA_INTERNAL";
|
|
8
8
|
export type MediaGlobalScope = {
|