@atlaskit/media-card 77.11.1 → 77.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1680 -781
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/cardView.js +3 -1
- package/dist/cjs/card/inlinePlayerWrapper.js +3 -1
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/ui/actionsBar/actionsBarWrapper.js +3 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton.js +3 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionIconButton.js +3 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.js +3 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/styles.js +19 -8
- package/dist/cjs/card/ui/actionsBar/styles.js +8 -4
- package/dist/cjs/card/ui/blanket/blanket.js +3 -1
- package/dist/cjs/card/ui/blanket/styles.js +9 -4
- package/dist/cjs/card/ui/iconWrapper/styles.js +9 -4
- package/dist/cjs/card/ui/playButton/playButtonBackground.js +1 -0
- package/dist/cjs/card/ui/playButton/playButtonWrapper.js +7 -4
- package/dist/cjs/card/ui/playButton/styles.js +23 -5
- package/dist/cjs/card/ui/progressBar/styles.js +1 -4
- package/dist/cjs/card/ui/styles.js +9 -3
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper.js +3 -1
- package/dist/cjs/card/ui/titleBox/styles.js +35 -8
- package/dist/cjs/card/ui/unhandledErrorCard/index.js +15 -5
- package/dist/cjs/card/ui/wrapper/wrapper.js +3 -1
- package/dist/cjs/card/v2/cardV2.js +1 -1
- package/dist/cjs/card/v2/cardViewV2.js +6 -3
- package/dist/cjs/card/v2/cardviews/cardViewWrapper.js +6 -3
- package/dist/cjs/card/v2/cardviews/index.js +4 -2
- package/dist/cjs/card/v2/fileCard.js +5 -1
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +11 -7
- package/dist/cjs/utils/lightCards/errorIcon/styles.js +4 -4
- package/dist/cjs/utils/lightCards/styles.js +9 -4
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/es2019/card/card.js +1 -1
- package/dist/es2019/card/cardView.js +3 -1
- package/dist/es2019/card/inlinePlayerWrapper.js +3 -1
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/actionsBar/actionsBarWrapper.js +3 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton.js +3 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionIconButton.js +3 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.js +3 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/styles.js +18 -27
- package/dist/es2019/card/ui/actionsBar/styles.js +8 -10
- package/dist/es2019/card/ui/blanket/blanket.js +3 -1
- package/dist/es2019/card/ui/blanket/styles.js +9 -11
- package/dist/es2019/card/ui/iconWrapper/styles.js +9 -9
- package/dist/es2019/card/ui/playButton/playButtonBackground.js +1 -0
- package/dist/es2019/card/ui/playButton/playButtonWrapper.js +7 -4
- package/dist/es2019/card/ui/playButton/styles.js +22 -22
- package/dist/es2019/card/ui/progressBar/styles.js +1 -3
- package/dist/es2019/card/ui/styles.js +9 -10
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper.js +3 -1
- package/dist/es2019/card/ui/titleBox/styles.js +33 -38
- package/dist/es2019/card/ui/unhandledErrorCard/index.js +13 -16
- package/dist/es2019/card/ui/wrapper/wrapper.js +3 -1
- package/dist/es2019/card/v2/cardV2.js +1 -1
- package/dist/es2019/card/v2/cardViewV2.js +6 -3
- package/dist/es2019/card/v2/cardviews/cardViewWrapper.js +5 -2
- package/dist/es2019/card/v2/cardviews/index.js +4 -2
- package/dist/es2019/card/v2/fileCard.js +6 -1
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +11 -7
- package/dist/es2019/utils/lightCards/errorIcon/styles.js +4 -4
- package/dist/es2019/utils/lightCards/styles.js +9 -10
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/card.js +1 -1
- package/dist/esm/card/cardView.js +3 -1
- package/dist/esm/card/inlinePlayerWrapper.js +3 -1
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/ui/actionsBar/actionsBarWrapper.js +3 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton.js +3 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionIconButton.js +3 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.js +3 -1
- package/dist/esm/card/ui/actionsBar/cardActions/styles.js +19 -7
- package/dist/esm/card/ui/actionsBar/styles.js +8 -3
- package/dist/esm/card/ui/blanket/blanket.js +3 -1
- package/dist/esm/card/ui/blanket/styles.js +9 -3
- package/dist/esm/card/ui/iconWrapper/styles.js +9 -3
- package/dist/esm/card/ui/playButton/playButtonBackground.js +1 -0
- package/dist/esm/card/ui/playButton/playButtonWrapper.js +7 -4
- package/dist/esm/card/ui/playButton/styles.js +23 -4
- package/dist/esm/card/ui/progressBar/styles.js +1 -3
- package/dist/esm/card/ui/styles.js +9 -3
- package/dist/esm/card/ui/tickBox/tickBoxWrapper.js +3 -1
- package/dist/esm/card/ui/titleBox/styles.js +35 -7
- package/dist/esm/card/ui/unhandledErrorCard/index.js +14 -3
- package/dist/esm/card/ui/wrapper/wrapper.js +3 -1
- package/dist/esm/card/v2/cardV2.js +1 -1
- package/dist/esm/card/v2/cardViewV2.js +6 -3
- package/dist/esm/card/v2/cardviews/cardViewWrapper.js +6 -3
- package/dist/esm/card/v2/cardviews/index.js +4 -2
- package/dist/esm/card/v2/fileCard.js +6 -1
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +11 -7
- package/dist/esm/utils/lightCards/errorIcon/styles.js +4 -3
- package/dist/esm/utils/lightCards/styles.js +9 -3
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/types/card/actions.d.ts +2 -2
- package/dist/types/card/card.d.ts +5 -5
- package/dist/types/card/cardAnalytics.d.ts +4 -4
- package/dist/types/card/cardState.d.ts +2 -2
- package/dist/types/card/cardSwitcher.d.ts +1 -1
- package/dist/types/card/cardView.d.ts +8 -8
- package/dist/types/card/getCardPreview/cache.d.ts +3 -3
- package/dist/types/card/getCardPreview/filePreviewStatus.d.ts +2 -2
- package/dist/types/card/getCardPreview/helpers.d.ts +3 -3
- package/dist/types/card/getCardPreview/index.d.ts +5 -5
- package/dist/types/card/getCardStatus.d.ts +2 -2
- package/dist/types/card/inlinePlayer.d.ts +4 -4
- package/dist/types/card/inlinePlayerWrapper.d.ts +1 -1
- package/dist/types/card/inlinePlayerWrapperStyles.d.ts +1 -1
- package/dist/types/card/media-card-analytics-error-boundary.d.ts +4 -4
- package/dist/types/card/types.d.ts +4 -3
- package/dist/types/card/ui/actionsBar/actionsBar.d.ts +1 -1
- package/dist/types/card/ui/actionsBar/actionsBarWrapper.d.ts +1 -1
- package/dist/types/card/ui/actionsBar/cardActions/cardActionButton.d.ts +1 -1
- package/dist/types/card/ui/actionsBar/cardActions/cardActionIconButton.d.ts +2 -2
- package/dist/types/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.d.ts +2 -2
- package/dist/types/card/ui/actionsBar/cardActions/cardActionsView.d.ts +2 -2
- package/dist/types/card/ui/actionsBar/cardActions/styles.d.ts +4 -3
- package/dist/types/card/ui/actionsBar/types.d.ts +2 -2
- package/dist/types/card/ui/iconMessage/iconMessageWrapper.d.ts +1 -1
- package/dist/types/card/ui/iconMessage/index.d.ts +1 -1
- package/dist/types/card/ui/iconMessage/types.d.ts +2 -2
- package/dist/types/card/ui/iconWrapper/iconWrapper.d.ts +1 -1
- package/dist/types/card/ui/iconWrapper/styles.d.ts +2 -2
- package/dist/types/card/ui/iconWrapper/types.d.ts +1 -1
- package/dist/types/card/ui/imageRenderer/imageRenderer.d.ts +2 -2
- package/dist/types/card/ui/imageRenderer/resizeModeToMediaImageProps.d.ts +1 -1
- package/dist/types/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +1 -1
- package/dist/types/card/ui/progressBar/styledBar.d.ts +1 -1
- package/dist/types/card/ui/progressBar/styles.d.ts +1 -1
- package/dist/types/card/ui/progressBar/types.d.ts +1 -1
- package/dist/types/card/ui/styles.d.ts +2 -2
- package/dist/types/card/ui/tickBox/tickBox.d.ts +1 -1
- package/dist/types/card/ui/tickBox/tickBoxWrapper.d.ts +1 -1
- package/dist/types/card/ui/titleBox/failedTitleBox.d.ts +1 -1
- package/dist/types/card/ui/titleBox/styles.d.ts +3 -3
- package/dist/types/card/ui/titleBox/titleBox.d.ts +1 -1
- package/dist/types/card/ui/titleBox/titleBoxComponents.d.ts +1 -1
- package/dist/types/card/ui/titleBox/types.d.ts +3 -3
- package/dist/types/card/ui/unhandledErrorCard/index.d.ts +1 -1
- package/dist/types/card/ui/unhandledErrorCard/types.d.ts +1 -1
- package/dist/types/card/ui/wrapper/styles.d.ts +1 -1
- package/dist/types/card/ui/wrapper/types.d.ts +6 -5
- package/dist/types/card/ui/wrapper/wrapper.d.ts +1 -1
- package/dist/types/card/useBreakpoint.d.ts +2 -2
- package/dist/types/card/v2/cardV2.d.ts +3 -3
- package/dist/types/card/v2/cardV2Loader.d.ts +1 -1
- package/dist/types/card/v2/cardViewV2.d.ts +11 -10
- package/dist/types/card/v2/cardWithMediaClientV2.d.ts +1 -1
- package/dist/types/card/v2/cardviews/cardViewWrapper.d.ts +8 -7
- package/dist/types/card/v2/cardviews/errorCardView.d.ts +9 -5
- package/dist/types/card/v2/cardviews/iconCardView.d.ts +9 -4
- package/dist/types/card/v2/cardviews/imageCardView.d.ts +18 -5
- package/dist/types/card/v2/cardviews/index.d.ts +10 -9
- package/dist/types/card/v2/cardviews/loadingCardView.d.ts +8 -4
- package/dist/types/card/v2/cardviews/processingCardView.d.ts +6 -3
- package/dist/types/card/v2/cardviews/videoCardView.d.ts +18 -5
- package/dist/types/card/v2/externalImageCard.d.ts +3 -3
- package/dist/types/card/v2/fileCard.d.ts +5 -5
- package/dist/types/card/v2/inlinePlayerV2.d.ts +4 -4
- package/dist/types/errors.d.ts +2 -2
- package/dist/types/inline/loader.d.ts +3 -3
- package/dist/types/inline/mediaInlineAnalyticsErrorBoundary.d.ts +3 -3
- package/dist/types/inline/mediaInlineCard.d.ts +4 -4
- package/dist/types/inline/mediaInlineCardAnalytics.d.ts +2 -2
- package/dist/types/types.d.ts +6 -6
- package/dist/types/utils/analytics/analytics.d.ts +5 -5
- package/dist/types/utils/cardDimensions.d.ts +1 -1
- package/dist/types/utils/dimensionComparer.d.ts +1 -1
- package/dist/types/utils/getDataURIDimension.d.ts +3 -3
- package/dist/types/utils/getMediaCardCursor.d.ts +1 -1
- package/dist/types/utils/globalScope/getSSRData.d.ts +1 -1
- package/dist/types/utils/globalScope/globalScope.d.ts +5 -5
- package/dist/types/utils/globalScope/types.d.ts +2 -2
- package/dist/types/utils/lightCards/cardError.d.ts +1 -1
- package/dist/types/utils/lightCards/cardLoading.d.ts +1 -1
- package/dist/types/utils/lightCards/getDimensionsWithDefault.d.ts +1 -1
- package/dist/types/utils/lightCards/lightCardWrappers.d.ts +1 -1
- package/dist/types/utils/lightCards/styles.d.ts +1 -1
- package/dist/types/utils/lightCards/types.d.ts +2 -2
- package/dist/types/utils/metadata.d.ts +1 -1
- package/dist/types/utils/objectURLCache.d.ts +1 -1
- package/dist/types/utils/preventClickThrough.d.ts +1 -1
- package/dist/types/utils/ufoExperiences.d.ts +4 -4
- package/dist/types/utils/useCurrentValueRef.d.ts +1 -1
- package/dist/types/utils/videoIsPlayable.d.ts +1 -1
- package/dist/types/utils/viewportDetector.d.ts +1 -1
- package/dist/types-ts4.5/card/actions.d.ts +2 -2
- package/dist/types-ts4.5/card/card.d.ts +5 -5
- package/dist/types-ts4.5/card/cardAnalytics.d.ts +4 -4
- package/dist/types-ts4.5/card/cardState.d.ts +2 -2
- package/dist/types-ts4.5/card/cardSwitcher.d.ts +1 -1
- package/dist/types-ts4.5/card/cardView.d.ts +8 -8
- package/dist/types-ts4.5/card/getCardPreview/cache.d.ts +3 -3
- package/dist/types-ts4.5/card/getCardPreview/filePreviewStatus.d.ts +2 -2
- package/dist/types-ts4.5/card/getCardPreview/helpers.d.ts +3 -3
- package/dist/types-ts4.5/card/getCardPreview/index.d.ts +5 -5
- package/dist/types-ts4.5/card/getCardStatus.d.ts +2 -2
- package/dist/types-ts4.5/card/inlinePlayer.d.ts +4 -4
- package/dist/types-ts4.5/card/inlinePlayerWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/inlinePlayerWrapperStyles.d.ts +1 -1
- package/dist/types-ts4.5/card/media-card-analytics-error-boundary.d.ts +4 -4
- package/dist/types-ts4.5/card/types.d.ts +4 -3
- package/dist/types-ts4.5/card/ui/actionsBar/actionsBar.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionButton.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionIconButton.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsView.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/styles.d.ts +4 -3
- package/dist/types-ts4.5/card/ui/actionsBar/types.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/iconMessage/index.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/iconMessage/types.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/iconWrapper/styles.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/iconWrapper/types.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/imageRenderer/imageRenderer.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/imageRenderer/resizeModeToMediaImageProps.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/progressBar/styledBar.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/progressBar/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/progressBar/types.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/styles.d.ts +2 -2
- package/dist/types-ts4.5/card/ui/tickBox/tickBox.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/failedTitleBox.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +3 -3
- package/dist/types-ts4.5/card/ui/titleBox/titleBox.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/types.d.ts +3 -3
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/index.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/types.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/wrapper/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/wrapper/types.d.ts +6 -5
- package/dist/types-ts4.5/card/ui/wrapper/wrapper.d.ts +1 -1
- package/dist/types-ts4.5/card/useBreakpoint.d.ts +2 -2
- package/dist/types-ts4.5/card/v2/cardV2.d.ts +3 -3
- package/dist/types-ts4.5/card/v2/cardV2Loader.d.ts +1 -1
- package/dist/types-ts4.5/card/v2/cardViewV2.d.ts +11 -10
- package/dist/types-ts4.5/card/v2/cardWithMediaClientV2.d.ts +1 -1
- package/dist/types-ts4.5/card/v2/cardviews/cardViewWrapper.d.ts +8 -7
- package/dist/types-ts4.5/card/v2/cardviews/errorCardView.d.ts +9 -5
- package/dist/types-ts4.5/card/v2/cardviews/iconCardView.d.ts +9 -4
- package/dist/types-ts4.5/card/v2/cardviews/imageCardView.d.ts +18 -5
- package/dist/types-ts4.5/card/v2/cardviews/index.d.ts +10 -9
- package/dist/types-ts4.5/card/v2/cardviews/loadingCardView.d.ts +8 -4
- package/dist/types-ts4.5/card/v2/cardviews/processingCardView.d.ts +6 -3
- package/dist/types-ts4.5/card/v2/cardviews/videoCardView.d.ts +18 -5
- package/dist/types-ts4.5/card/v2/externalImageCard.d.ts +3 -3
- package/dist/types-ts4.5/card/v2/fileCard.d.ts +5 -5
- package/dist/types-ts4.5/card/v2/inlinePlayerV2.d.ts +4 -4
- package/dist/types-ts4.5/errors.d.ts +2 -2
- package/dist/types-ts4.5/inline/loader.d.ts +3 -3
- package/dist/types-ts4.5/inline/mediaInlineAnalyticsErrorBoundary.d.ts +3 -3
- package/dist/types-ts4.5/inline/mediaInlineCard.d.ts +4 -4
- package/dist/types-ts4.5/inline/mediaInlineCardAnalytics.d.ts +2 -2
- package/dist/types-ts4.5/types.d.ts +6 -6
- package/dist/types-ts4.5/utils/analytics/analytics.d.ts +5 -5
- package/dist/types-ts4.5/utils/cardDimensions.d.ts +1 -1
- package/dist/types-ts4.5/utils/dimensionComparer.d.ts +1 -1
- package/dist/types-ts4.5/utils/getDataURIDimension.d.ts +3 -3
- package/dist/types-ts4.5/utils/getMediaCardCursor.d.ts +1 -1
- package/dist/types-ts4.5/utils/globalScope/getSSRData.d.ts +1 -1
- package/dist/types-ts4.5/utils/globalScope/globalScope.d.ts +5 -5
- package/dist/types-ts4.5/utils/globalScope/types.d.ts +2 -2
- package/dist/types-ts4.5/utils/lightCards/cardError.d.ts +1 -1
- package/dist/types-ts4.5/utils/lightCards/cardLoading.d.ts +1 -1
- package/dist/types-ts4.5/utils/lightCards/getDimensionsWithDefault.d.ts +1 -1
- package/dist/types-ts4.5/utils/lightCards/lightCardWrappers.d.ts +1 -1
- package/dist/types-ts4.5/utils/lightCards/styles.d.ts +1 -1
- package/dist/types-ts4.5/utils/lightCards/types.d.ts +2 -2
- package/dist/types-ts4.5/utils/metadata.d.ts +1 -1
- package/dist/types-ts4.5/utils/objectURLCache.d.ts +1 -1
- package/dist/types-ts4.5/utils/preventClickThrough.d.ts +1 -1
- package/dist/types-ts4.5/utils/ufoExperiences.d.ts +4 -4
- package/dist/types-ts4.5/utils/useCurrentValueRef.d.ts +1 -1
- package/dist/types-ts4.5/utils/videoIsPlayable.d.ts +1 -1
- package/dist/types-ts4.5/utils/viewportDetector.d.ts +1 -1
- package/example-helpers/cards.tsx +3 -1
- package/example-helpers/developmentUseMessage.tsx +1 -0
- package/example-helpers/index.tsx +4 -4
- package/example-helpers/selectableCard.tsx +2 -2
- package/package.json +18 -24
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CardDimensions } from '../../types';
|
|
3
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
2
|
+
import { type CardDimensions } from '../../types';
|
|
3
|
+
import { type MediaFeatureFlags } from '@atlaskit/media-common';
|
|
4
4
|
export interface StaticCardProps {
|
|
5
5
|
dimensions?: CardDimensions;
|
|
6
6
|
testId?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FileState, FileDetails, Identifier } from '@atlaskit/media-client';
|
|
1
|
+
import { type FileState, type FileDetails, type Identifier } from '@atlaskit/media-client';
|
|
2
2
|
export declare const getFileDetails: (identifier: Identifier, fileState?: FileState) => FileDetails;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CardStatus } from '../types';
|
|
2
|
-
import { FileAttributes } from '@atlaskit/media-common';
|
|
3
|
-
import { SSRStatus } from './analytics';
|
|
1
|
+
import { type CardStatus } from '../types';
|
|
2
|
+
import { type FileAttributes } from '@atlaskit/media-common';
|
|
3
|
+
import { type SSRStatus } from './analytics';
|
|
4
4
|
import { MediaCardError } from '../errors';
|
|
5
|
-
import { FileStateFlags } from '../types';
|
|
5
|
+
import { type FileStateFlags } from '../types';
|
|
6
6
|
type SucceedUfoPayload = {
|
|
7
7
|
fileAttributes: FileAttributes;
|
|
8
8
|
ssrReliability: SSRStatus;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MutableRefObject } from 'react';
|
|
1
|
+
import { type MutableRefObject } from 'react';
|
|
2
2
|
export declare function useCurrentValueRef<T>(value: T): MutableRefObject<T>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FileState } from '@atlaskit/media-client';
|
|
1
|
+
import { type FileState } from '@atlaskit/media-client';
|
|
2
2
|
export declare const videoIsPlayable: (isBannedLocalPreview: boolean, fileState?: FileState, mimeType?: string) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FileItem, FileDetails } from '@atlaskit/media-client';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { type FileItem, type FileDetails } from '@atlaskit/media-client';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
3
|
export interface CardAction {
|
|
4
4
|
label?: string;
|
|
5
5
|
handler: CardEventHandler;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import { UIAnalyticsEvent, WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
import { FileIdentifier, FileState, MediaSubscription } from '@atlaskit/media-client';
|
|
4
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
import { CardAction } from './actions';
|
|
6
|
-
import { CardProps, CardState, CardStatus } from '../types';
|
|
2
|
+
import { type UIAnalyticsEvent, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type FileIdentifier, type FileState, type MediaSubscription } from '@atlaskit/media-client';
|
|
4
|
+
import { type WrappedComponentProps } from 'react-intl-next';
|
|
5
|
+
import { type CardAction } from './actions';
|
|
6
|
+
import { type CardProps, type CardState, type CardStatus } from '../types';
|
|
7
7
|
export type CardBaseProps = CardProps & WithAnalyticsEventsProps & Partial<WrappedComponentProps> & {
|
|
8
8
|
dateOverride?: number;
|
|
9
9
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FileAttributes, MediaTraceContext, PerformanceAttributes } from '@atlaskit/media-common';
|
|
2
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { SSRStatus } from '../utils/analytics';
|
|
4
|
-
import { CardStatus } from '../types';
|
|
1
|
+
import { type FileAttributes, type MediaTraceContext, type PerformanceAttributes } from '@atlaskit/media-common';
|
|
2
|
+
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type SSRStatus } from '../utils/analytics';
|
|
4
|
+
import { type CardStatus } from '../types';
|
|
5
5
|
import { MediaCardError } from '../errors';
|
|
6
6
|
export declare const fireOperationalEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, status: CardStatus, fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus, error: MediaCardError | undefined, traceContext: MediaTraceContext, metadataTraceContext?: MediaTraceContext) => void;
|
|
7
7
|
export declare const fireCommencedEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, traceContext: MediaTraceContext) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FileState } from '@atlaskit/media-client';
|
|
2
|
-
import { CardState } from '../types';
|
|
1
|
+
import { type FileState } from '@atlaskit/media-client';
|
|
2
|
+
import { type CardState } from '../types';
|
|
3
3
|
import { MediaCardError } from '../errors';
|
|
4
4
|
/**
|
|
5
5
|
* From docs: "Both state and props received by the updater function are guaranteed to be up-to-date.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CardWithMediaClientConfigProps } from './types';
|
|
2
|
+
import { type CardWithMediaClientConfigProps } from './types';
|
|
3
3
|
declare function CardSwitcher(props: CardWithMediaClientConfigProps): JSX.Element;
|
|
4
4
|
export default CardSwitcher;
|
|
@@ -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 } from '@atlaskit/media-client';
|
|
6
|
-
import { WithAnalyticsEventsProps, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
|
-
import { SharedCardProps, CardStatus } from '../types';
|
|
8
|
-
import { MediaCardError } from '../errors';
|
|
9
|
-
import { CardPreview } from '../types';
|
|
10
|
-
import { MediaCardCursor } from '../types';
|
|
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 } from '../types';
|
|
8
|
+
import { type MediaCardError } from '../errors';
|
|
9
|
+
import { type CardPreview } from '../types';
|
|
10
|
+
import { type MediaCardCursor } from '../types';
|
|
11
11
|
export interface CardViewOwnProps extends SharedCardProps {
|
|
12
12
|
readonly status: CardStatus;
|
|
13
13
|
readonly mediaItemType: MediaItemType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ImageResizeMode } from '@atlaskit/media-client';
|
|
2
|
-
import { ObjectURLCache } from '../../utils/objectURLCache';
|
|
3
|
-
import { CardPreview } from '../../types';
|
|
1
|
+
import { type ImageResizeMode } from '@atlaskit/media-client';
|
|
2
|
+
import { type ObjectURLCache } from '../../utils/objectURLCache';
|
|
3
|
+
import { type CardPreview } from '../../types';
|
|
4
4
|
type Mode = ImageResizeMode | undefined;
|
|
5
5
|
export declare const getCacheKey: (id: string, mode: Mode) => string;
|
|
6
6
|
export interface CardPreviewCache {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CardStatus, FilePreviewStatus } from '../../types';
|
|
2
|
-
import { FileState } from '@atlaskit/media-client';
|
|
1
|
+
import { type CardStatus, type FilePreviewStatus } from '../../types';
|
|
2
|
+
import { type FileState } from '@atlaskit/media-client';
|
|
3
3
|
export declare const extractFilePreviewStatus: (fileState: FileState, isBannedLocalPreview: boolean) => FilePreviewStatus;
|
|
4
4
|
export declare const isPreviewableStatus: (cardStatus: CardStatus, { isPreviewable, hasPreview, isSupportedByBrowser }: FilePreviewStatus) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MediaClient, FilePreview, MediaStoreGetFileImageParams, MediaType } from '@atlaskit/media-client';
|
|
2
|
-
import { MediaTraceContext } from '@atlaskit/media-common';
|
|
3
|
-
import { CardPreview } from '../../types';
|
|
1
|
+
import { type MediaClient, type FilePreview, type MediaStoreGetFileImageParams, type MediaType } from '@atlaskit/media-client';
|
|
2
|
+
import { type MediaTraceContext } from '@atlaskit/media-common';
|
|
3
|
+
import { type CardPreview } from '../../types';
|
|
4
4
|
/**
|
|
5
5
|
* This method tells the support for the media
|
|
6
6
|
* types covered in getCardPreviewFromFilePreview
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MediaClient, FilePreview, FileState, MediaStoreGetFileImageParams, MediaBlobUrlAttrs } from '@atlaskit/media-client';
|
|
2
|
-
import { SSR, MediaTraceContext } from '@atlaskit/media-common';
|
|
3
|
-
import { ImageResizeMode } from '@atlaskit/media-client';
|
|
4
|
-
import { CardDimensions } from '../../types';
|
|
1
|
+
import { type MediaClient, type FilePreview, type FileState, type MediaStoreGetFileImageParams, type MediaBlobUrlAttrs } from '@atlaskit/media-client';
|
|
2
|
+
import { type SSR, type MediaTraceContext } from '@atlaskit/media-common';
|
|
3
|
+
import { type ImageResizeMode } from '@atlaskit/media-client';
|
|
4
|
+
import { type CardDimensions } from '../../types';
|
|
5
5
|
import { MediaCardError } from '../../errors';
|
|
6
|
-
import { CardStatus, CardPreview } from '../../types';
|
|
6
|
+
import { type CardStatus, type CardPreview } from '../../types';
|
|
7
7
|
export { getCardPreviewFromFilePreview, getCardPreviewFromBackend, isSupportedLocalPreview, } from './helpers';
|
|
8
8
|
export { extractFilePreviewStatus } from './filePreviewStatus';
|
|
9
9
|
export declare const getCardPreviewFromCache: (id: string, mode: ImageResizeMode | undefined) => CardPreview | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FileStatus } from '@atlaskit/media-client';
|
|
2
|
-
import { CardStatus, FilePreviewStatus } from '../types';
|
|
1
|
+
import { type FileStatus } from '@atlaskit/media-client';
|
|
2
|
+
import { type CardStatus, type FilePreviewStatus } from '../types';
|
|
3
3
|
export declare const isFinalCardStatus: (status: CardStatus) => boolean;
|
|
4
4
|
export declare const getCardStatus: (fileStatus: FileStatus, { isPreviewable, hasPreview }: FilePreviewStatus) => CardStatus;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Component } from 'react';
|
|
3
|
-
import { MediaClient, FileIdentifier, FileState, MediaFileArtifacts, MediaSubscription } from '@atlaskit/media-client';
|
|
4
|
-
import { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
5
|
-
import { CardDimensions } from '../types';
|
|
6
|
-
import { WithAnalyticsEventsProps, UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type MediaClient, type FileIdentifier, type FileState, type MediaFileArtifacts, type MediaSubscription } from '@atlaskit/media-client';
|
|
4
|
+
import { type NumericalCardDimensions } from '@atlaskit/media-common';
|
|
5
|
+
import { type CardDimensions } from '../types';
|
|
6
|
+
import { type WithAnalyticsEventsProps, type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
7
|
import type { CardPreview } from '../types';
|
|
8
8
|
export interface InlinePlayerOwnProps {
|
|
9
9
|
identifier: FileIdentifier;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InlinePlayerWrapperProps } from './types';
|
|
1
|
+
import { type InlinePlayerWrapperProps } from './types';
|
|
2
2
|
export declare const inlinePlayerClassName = "media-card-inline-player";
|
|
3
3
|
export declare const inlinePlayerWrapperStyles: {
|
|
4
4
|
({ dimensions, selected, }: InlinePlayerWrapperProps): import("@emotion/react").SerializedStyles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
3
|
-
import { CardDimensions, CardOnClickCallback } from '../types';
|
|
4
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type MediaFeatureFlags } from '@atlaskit/media-common';
|
|
3
|
+
import { type CardDimensions, type CardOnClickCallback } from '../types';
|
|
4
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
5
5
|
export type MediaCardAnalyticsErrorBoundaryProps = PropsWithChildren<{
|
|
6
6
|
dimensions?: CardDimensions;
|
|
7
7
|
data?: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { type ReactElement, type RefObject } from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
4
|
import type { WithMediaClientConfigProps } from '@atlaskit/media-client-react';
|
|
4
5
|
import type { CardBaseProps } from './card';
|
|
5
|
-
import { CardDimensions } from '../types';
|
|
6
|
+
import { type CardDimensions } from '../types';
|
|
6
7
|
export type InlinePlayerWrapperProps = {
|
|
7
8
|
testId?: string;
|
|
8
9
|
dimensions?: CardDimensions;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CardActionButtonOwnProps } from './styles';
|
|
2
|
+
import { type CardActionButtonOwnProps } from './styles';
|
|
3
3
|
export declare const CardActionButton: import("react").ForwardRefExoticComponent<CardActionButtonOwnProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Component, ReactNode, MouseEvent } from 'react';
|
|
2
|
-
import { CardActionIconButtonVariant } from './styles';
|
|
1
|
+
import { Component, type ReactNode, type MouseEvent } from 'react';
|
|
2
|
+
import { type CardActionIconButtonVariant } from './styles';
|
|
3
3
|
export type CardActionIconButtonProps = {
|
|
4
4
|
readonly icon: ReactNode;
|
|
5
5
|
readonly label?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import { CardAction } from '../../../actions';
|
|
3
|
-
import { CardActionIconButtonVariant } from './styles';
|
|
2
|
+
import { type CardAction } from '../../../actions';
|
|
3
|
+
import { type CardActionIconButtonVariant } from './styles';
|
|
4
4
|
export type CardActionsDropdownMenuProps = {
|
|
5
5
|
readonly actions: CardAction[];
|
|
6
6
|
readonly triggerColor?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import { CardAction } from '../../../actions';
|
|
3
|
-
import { CardActionIconButtonVariant } from './styles';
|
|
2
|
+
import { type CardAction } from '../../../actions';
|
|
3
|
+
import { type CardActionIconButtonVariant } from './styles';
|
|
4
4
|
export interface CardActionsViewProps {
|
|
5
5
|
readonly actions: CardAction[];
|
|
6
6
|
readonly filename?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { type MouseEvent, type HTMLAttributes } from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
4
|
export declare const wrapperStyles: import("@emotion/react").SerializedStyles;
|
|
4
5
|
export declare enum CardActionIconButtonVariant {
|
|
5
6
|
default = "default",
|
|
@@ -16,4 +17,4 @@ export type CardActionButtonOwnProps = {
|
|
|
16
17
|
children?: React.ReactNode;
|
|
17
18
|
};
|
|
18
19
|
export type CardActionButtonProps = CardActionButtonOwnProps & HTMLAttributes<HTMLButtonElement>;
|
|
19
|
-
export declare const cardActionButtonStyles: ({ variant
|
|
20
|
+
export declare const cardActionButtonStyles: ({ variant }: CardActionButtonProps) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { InternalIconMessageProps, CreatingPreviewProps } from './types';
|
|
2
|
+
import { type InternalIconMessageProps, type CreatingPreviewProps } from './types';
|
|
3
3
|
export declare const IconMessage: React.FC<InternalIconMessageProps>;
|
|
4
4
|
export declare const CreatingPreview: React.FC<CreatingPreviewProps>;
|
|
5
5
|
export declare const PreviewUnavailable: React.FC;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
export type InternalIconMessageProps = {
|
|
4
4
|
messageDescriptor: MessageDescriptor;
|
|
5
5
|
animated?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Breakpoint } from '../common';
|
|
2
|
-
import { IconWrapperProps } from './types';
|
|
1
|
+
import { type Breakpoint } from '../common';
|
|
2
|
+
import { type IconWrapperProps } from './types';
|
|
3
3
|
export declare function titleBoxHeight(hasTitleBox: boolean, breakpoint: Breakpoint): string;
|
|
4
4
|
export declare const iconWrapperStyles: {
|
|
5
5
|
({ hasTitleBox, breakpoint, }: IconWrapperProps): import("@emotion/react").SerializedStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MediaType, ImageResizeMode } from '@atlaskit/media-client';
|
|
3
|
-
import { CardPreview } from '../../../types';
|
|
2
|
+
import { type MediaType, type ImageResizeMode } from '@atlaskit/media-client';
|
|
3
|
+
import { type CardPreview } from '../../../types';
|
|
4
4
|
export type ImageRendererProps = {
|
|
5
5
|
readonly cardPreview: CardPreview;
|
|
6
6
|
readonly mediaType: MediaType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export declare const visuallyHiddenStyles: import("@emotion/react").SerializedStyles;
|
|
4
4
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
5
5
|
fileName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Breakpoint } from '../common';
|
|
2
|
-
import { StyledBarProps } from './types';
|
|
2
|
+
import { type StyledBarProps } from './types';
|
|
3
3
|
export declare function generateResponsiveStyles(breakpoint: Breakpoint, positionBottom: boolean, showOnTop: boolean, multiplier?: number): string;
|
|
4
4
|
export declare const styledBarStyles: {
|
|
5
5
|
(props: StyledBarProps): import("@emotion/react").SerializedStyles;
|
|
@@ -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;
|
|
@@ -1,14 +1,14 @@
|
|
|
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;
|
|
5
5
|
};
|
|
6
6
|
export declare const titleBoxHeaderStyles: {
|
|
7
|
-
({ hasIconOverlap
|
|
7
|
+
({ hasIconOverlap }: TitleBoxHeaderProps): import("@emotion/react").SerializedStyles;
|
|
8
8
|
displayName: string;
|
|
9
9
|
};
|
|
10
10
|
export declare const titleBoxFooterStyles: {
|
|
11
|
-
({ hasIconOverlap
|
|
11
|
+
({ hasIconOverlap }: TitleBoxFooterProps): import("@emotion/react").SerializedStyles;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const titleBoxIconStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -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;
|
|
@@ -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>;
|