@atlaskit/media-card 80.8.13 → 81.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/actions/package.json +1 -8
- package/card/classnames/package.json +1 -8
- package/cardConstants/package.json +1 -8
- package/cardDimensions/package.json +1 -8
- package/cardError/package.json +1 -8
- package/cardLoader/package.json +1 -8
- package/cardLoading/package.json +1 -8
- package/cardPlaceholder/package.json +1 -8
- package/cardSync/package.json +1 -8
- package/classnames/package.json +1 -8
- package/dateOverrideContext/package.json +1 -8
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/es2019/card/card.js +1 -1
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/card.js +1 -1
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/errors/package.json +1 -8
- package/inlinePlayerWrapperStyles/package.json +1 -8
- package/loader/package.json +1 -8
- package/mediaInlineCardAnalytics/package.json +1 -8
- package/package.json +37 -45
- package/types/package.json +1 -8
- package/dist/types-ts4.5/card/actions.d.ts +0 -15
- package/dist/types-ts4.5/card/ai-generating-overlay/AIGeneratingOverlay.d.ts +0 -12
- package/dist/types-ts4.5/card/ai-generating-overlay/index.d.ts +0 -2
- package/dist/types-ts4.5/card/card.d.ts +0 -7
- package/dist/types-ts4.5/card/cardAnalytics.d.ts +0 -10
- package/dist/types-ts4.5/card/cardConstants.d.ts +0 -1
- package/dist/types-ts4.5/card/cardLoader.d.ts +0 -7
- package/dist/types-ts4.5/card/cardSync.d.ts +0 -5
- package/dist/types-ts4.5/card/cardView.d.ts +0 -68
- package/dist/types-ts4.5/card/cardWithMediaClient.d.ts +0 -3
- package/dist/types-ts4.5/card/classnames.d.ts +0 -2
- package/dist/types-ts4.5/card/externalImageCard.d.ts +0 -12
- package/dist/types-ts4.5/card/fileCard.d.ts +0 -81
- package/dist/types-ts4.5/card/getCardStatus.d.ts +0 -4
- package/dist/types-ts4.5/card/index.d.ts +0 -2
- package/dist/types-ts4.5/card/inlinePlayer.d.ts +0 -24
- package/dist/types-ts4.5/card/inlinePlayerLazy.d.ts +0 -3
- package/dist/types-ts4.5/card/inlinePlayerWrapper-compiled.d.ts +0 -5
- package/dist/types-ts4.5/card/inlinePlayerWrapper.d.ts +0 -3
- package/dist/types-ts4.5/card/inlinePlayerWrapperStyles.d.ts +0 -7
- package/dist/types-ts4.5/card/media-card-analytics-error-boundary.d.ts +0 -14
- package/dist/types-ts4.5/card/performance.d.ts +0 -1
- package/dist/types-ts4.5/card/svgView/helpers.d.ts +0 -2
- package/dist/types-ts4.5/card/svgView/index.d.ts +0 -1
- package/dist/types-ts4.5/card/svgView/svgImage-compiled.d.ts +0 -2
- package/dist/types-ts4.5/card/svgView/svgView.d.ts +0 -3
- package/dist/types-ts4.5/card/svgView/svgViewV2.d.ts +0 -7
- package/dist/types-ts4.5/card/svgView/types.d.ts +0 -12
- package/dist/types-ts4.5/card/types.d.ts +0 -20
- package/dist/types-ts4.5/card/ui/actionsBar/actionsBar.d.ts +0 -5
- package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper-compiled.d.ts +0 -5
- package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionButton-compiled.d.ts +0 -7
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionButton.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionIconButton.d.ts +0 -15
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.d.ts +0 -12
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsView.d.ts +0 -17
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/index.d.ts +0 -7
- package/dist/types-ts4.5/card/ui/actionsBar/cardActions/styles.d.ts +0 -21
- package/dist/types-ts4.5/card/ui/actionsBar/styles.d.ts +0 -7
- package/dist/types-ts4.5/card/ui/actionsBar/types.d.ts +0 -11
- package/dist/types-ts4.5/card/ui/aiBorder/aiBorder.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/blanket/blanket-compiled.d.ts +0 -9
- package/dist/types-ts4.5/card/ui/blanket/blanket.d.ts +0 -5
- package/dist/types-ts4.5/card/ui/blanket/styles.d.ts +0 -7
- package/dist/types-ts4.5/card/ui/common.d.ts +0 -23
- package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper-compiled.d.ts +0 -2
- package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/iconMessage/index.d.ts +0 -8
- package/dist/types-ts4.5/card/ui/iconMessage/types.d.ts +0 -18
- package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper-compiled.d.ts +0 -7
- package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/iconWrapper/styles.d.ts +0 -8
- package/dist/types-ts4.5/card/ui/iconWrapper/types.d.ts +0 -6
- package/dist/types-ts4.5/card/ui/imageRenderer/helpers.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/imageRenderer/imageRenderer.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/imageRenderer/imageRendererV2.d.ts +0 -2
- package/dist/types-ts4.5/card/ui/imageRenderer/index.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/imageRenderer/resizeModeToMediaImageProps.d.ts +0 -5
- package/dist/types-ts4.5/card/ui/imageRenderer/types.d.ts +0 -18
- package/dist/types-ts4.5/card/ui/imageRenderer/wrapper.d.ts +0 -4
- package/dist/types-ts4.5/card/ui/loadingBar/loadingBar.d.ts +0 -11
- package/dist/types-ts4.5/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +0 -12
- package/dist/types-ts4.5/card/ui/playButton/playButton.d.ts +0 -2
- package/dist/types-ts4.5/card/ui/playButton/playButtonBackground-compiled.d.ts +0 -1
- package/dist/types-ts4.5/card/ui/playButton/playButtonBackground.d.ts +0 -6
- package/dist/types-ts4.5/card/ui/playButton/playButtonWrapper-compiled.d.ts +0 -1
- package/dist/types-ts4.5/card/ui/playButton/playButtonWrapper.d.ts +0 -2
- package/dist/types-ts4.5/card/ui/playButton/styles.d.ts +0 -6
- package/dist/types-ts4.5/card/ui/progressBar/progressBar.d.ts +0 -11
- package/dist/types-ts4.5/card/ui/progressBar/styledBar-compiled.d.ts +0 -13
- package/dist/types-ts4.5/card/ui/progressBar/styledBar.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/progressBar/styles.d.ts +0 -8
- package/dist/types-ts4.5/card/ui/progressBar/types.d.ts +0 -8
- package/dist/types-ts4.5/card/ui/styles.d.ts +0 -12
- package/dist/types-ts4.5/card/ui/tickBox/styles.d.ts +0 -2
- package/dist/types-ts4.5/card/ui/tickBox/tickBox.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper-compiled.d.ts +0 -5
- package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper.d.ts +0 -6
- package/dist/types-ts4.5/card/ui/tickBox/types.d.ts +0 -4
- package/dist/types-ts4.5/card/ui/titleBox/failedTitleBox.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +0 -24
- package/dist/types-ts4.5/card/ui/titleBox/titleBox.d.ts +0 -6
- package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents-compiled.d.ts +0 -15
- package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents.d.ts +0 -7
- package/dist/types-ts4.5/card/ui/titleBox/types.d.ts +0 -34
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/contentLoadingErrorMessage.d.ts +0 -6
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/index.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/types.d.ts +0 -5
- package/dist/types-ts4.5/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.d.ts +0 -9
- package/dist/types-ts4.5/card/ui/wrapper/imageContainer-compiled.d.ts +0 -14
- package/dist/types-ts4.5/card/ui/wrapper/imageContainer.d.ts +0 -15
- package/dist/types-ts4.5/card/ui/wrapper/index.d.ts +0 -2
- package/dist/types-ts4.5/card/ui/wrapper/styles.d.ts +0 -6
- package/dist/types-ts4.5/card/ui/wrapper/types.d.ts +0 -25
- package/dist/types-ts4.5/card/ui/wrapper/wrapper-compiled.d.ts +0 -7
- package/dist/types-ts4.5/card/ui/wrapper/wrapper.d.ts +0 -3
- package/dist/types-ts4.5/card/useBreakpoint.d.ts +0 -3
- package/dist/types-ts4.5/classnames.d.ts +0 -4
- package/dist/types-ts4.5/dateOverrideContext.d.ts +0 -7
- package/dist/types-ts4.5/errors.d.ts +0 -42
- package/dist/types-ts4.5/index.d.ts +0 -17
- package/dist/types-ts4.5/inline/index.d.ts +0 -2
- package/dist/types-ts4.5/inline/loader.d.ts +0 -26
- package/dist/types-ts4.5/inline/mediaInlineAnalyticsErrorBoundary.d.ts +0 -12
- package/dist/types-ts4.5/inline/mediaInlineCard.d.ts +0 -31
- package/dist/types-ts4.5/inline/mediaInlineCardAnalytics.d.ts +0 -10
- package/dist/types-ts4.5/types.d.ts +0 -143
- package/dist/types-ts4.5/utils/analytics/analytics.d.ts +0 -159
- package/dist/types-ts4.5/utils/analytics/index.d.ts +0 -2
- package/dist/types-ts4.5/utils/cardDimensions.d.ts +0 -14
- package/dist/types-ts4.5/utils/containsPixelUnit.d.ts +0 -1
- package/dist/types-ts4.5/utils/dimensionComparer.d.ts +0 -3
- package/dist/types-ts4.5/utils/document.d.ts +0 -2
- package/dist/types-ts4.5/utils/generateUniqueId.d.ts +0 -1
- package/dist/types-ts4.5/utils/getCSSUnitValue.d.ts +0 -1
- package/dist/types-ts4.5/utils/getDataURIDimension.d.ts +0 -26
- package/dist/types-ts4.5/utils/getElementDimension.d.ts +0 -2
- package/dist/types-ts4.5/utils/getMediaCardCursor.d.ts +0 -6
- package/dist/types-ts4.5/utils/globalScope/getSSRData.d.ts +0 -3
- package/dist/types-ts4.5/utils/globalScope/globalScope.d.ts +0 -17
- package/dist/types-ts4.5/utils/globalScope/index.d.ts +0 -4
- package/dist/types-ts4.5/utils/globalScope/types.d.ts +0 -8
- package/dist/types-ts4.5/utils/index.d.ts +0 -6
- package/dist/types-ts4.5/utils/isNetworkError.d.ts +0 -2
- package/dist/types-ts4.5/utils/isRetina.d.ts +0 -1
- package/dist/types-ts4.5/utils/isValidPercentageUnit.d.ts +0 -1
- package/dist/types-ts4.5/utils/lightCards/cardError.d.ts +0 -7
- package/dist/types-ts4.5/utils/lightCards/cardLoading.d.ts +0 -3
- package/dist/types-ts4.5/utils/lightCards/cardPlaceholder.d.ts +0 -6
- package/dist/types-ts4.5/utils/lightCards/errorIcon/index.d.ts +0 -9
- package/dist/types-ts4.5/utils/lightCards/errorIcon/styles.d.ts +0 -2
- package/dist/types-ts4.5/utils/lightCards/getDimensionsWithDefault.d.ts +0 -2
- package/dist/types-ts4.5/utils/lightCards/lightCardWrappers.d.ts +0 -7
- package/dist/types-ts4.5/utils/lightCards/styles.d.ts +0 -3
- package/dist/types-ts4.5/utils/lightCards/types.d.ts +0 -13
- package/dist/types-ts4.5/utils/mediaPerformanceObserver/durationMetrics.d.ts +0 -44
- package/dist/types-ts4.5/utils/mediaPerformanceObserver/mediaPerformanceObserver.d.ts +0 -13
- package/dist/types-ts4.5/utils/mediaPerformanceObserver/types.d.ts +0 -8
- package/dist/types-ts4.5/utils/mediaPerformanceObserver/ufo.d.ts +0 -2
- package/dist/types-ts4.5/utils/metadata.d.ts +0 -2
- package/dist/types-ts4.5/utils/mockIntersectionObserver.d.ts +0 -20
- package/dist/types-ts4.5/utils/printScript.d.ts +0 -2
- package/dist/types-ts4.5/utils/ufoExperiences.d.ts +0 -98
- package/dist/types-ts4.5/utils/useCurrentValueRef.d.ts +0 -2
- package/dist/types-ts4.5/utils/usePrevious.d.ts +0 -1
- package/dist/types-ts4.5/utils/videoIsPlayable.d.ts +0 -2
- package/dist/types-ts4.5/utils/videoSnapshot.d.ts +0 -1
- package/dist/types-ts4.5/utils/viewportDetector.d.ts +0 -6
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import React, { type MouseEvent } from 'react';
|
|
2
|
-
import { type MessageDescriptor } from 'react-intl';
|
|
3
|
-
import { type MediaItemType, type FileDetails, type ImageResizeMode, type Identifier } from '@atlaskit/media-client';
|
|
4
|
-
import { type WithAnalyticsEventsProps, type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
|
-
import { type CardStatus, type MediaCardCursor, type CardDimensions, type TitleBoxIcon } from '../types';
|
|
6
|
-
import { type MediaFilePreview } from '@atlaskit/media-file-preview';
|
|
7
|
-
import { type CardAction } from './actions';
|
|
8
|
-
import { type MediaCardError } from '../errors';
|
|
9
|
-
export interface CardViewProps {
|
|
10
|
-
readonly identifier: Identifier;
|
|
11
|
-
readonly disableOverlay?: boolean;
|
|
12
|
-
readonly resizeMode?: ImageResizeMode;
|
|
13
|
-
readonly dimensions: CardDimensions;
|
|
14
|
-
readonly actions?: Array<CardAction>;
|
|
15
|
-
readonly selectable?: boolean;
|
|
16
|
-
readonly selected?: boolean;
|
|
17
|
-
readonly alt?: string;
|
|
18
|
-
readonly testId?: string;
|
|
19
|
-
readonly titleBoxBgColor?: string;
|
|
20
|
-
readonly titleBoxIcon?: TitleBoxIcon;
|
|
21
|
-
readonly backgroundColor?: React.CSSProperties['backgroundColor'];
|
|
22
|
-
readonly status: CardStatus;
|
|
23
|
-
readonly mediaItemType: MediaItemType;
|
|
24
|
-
readonly mediaCardCursor?: MediaCardCursor;
|
|
25
|
-
readonly metadata?: FileDetails;
|
|
26
|
-
readonly error?: MediaCardError;
|
|
27
|
-
readonly onClick?: (event: React.MouseEvent<HTMLDivElement | HTMLButtonElement>, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
28
|
-
readonly openMediaViewerButtonRef?: React.Ref<HTMLButtonElement>;
|
|
29
|
-
readonly shouldOpenMediaViewer?: boolean;
|
|
30
|
-
readonly onMouseEnter?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
31
|
-
readonly onDisplayImage?: () => void;
|
|
32
|
-
readonly cardPreview?: MediaFilePreview;
|
|
33
|
-
readonly progress?: number;
|
|
34
|
-
readonly innerRef?: React.Ref<HTMLDivElement>;
|
|
35
|
-
readonly onImageLoad?: (cardPreview: MediaFilePreview) => void;
|
|
36
|
-
readonly onImageError?: (cardPreview: MediaFilePreview) => void;
|
|
37
|
-
readonly onSvgError?: (error: MediaCardError) => void;
|
|
38
|
-
readonly onSvgLoad?: () => void;
|
|
39
|
-
readonly nativeLazyLoad?: boolean;
|
|
40
|
-
readonly forceSyncDisplay?: boolean;
|
|
41
|
-
readonly traceId?: string;
|
|
42
|
-
disableAnimation?: boolean;
|
|
43
|
-
shouldHideTooltip?: boolean;
|
|
44
|
-
overriddenCreationDate?: number;
|
|
45
|
-
readonly isAIGenerating?: boolean;
|
|
46
|
-
}
|
|
47
|
-
export type CardViewBaseProps = CardViewProps & WithAnalyticsEventsProps;
|
|
48
|
-
type TraceTooltipVariant = 'preview-unavailable' | 'failed-to-load';
|
|
49
|
-
export interface RenderConfigByStatus {
|
|
50
|
-
renderTypeIcon?: boolean;
|
|
51
|
-
iconMessage?: JSX.Element;
|
|
52
|
-
renderImageRenderer?: boolean;
|
|
53
|
-
renderSvgView?: boolean;
|
|
54
|
-
renderPlayButton?: boolean;
|
|
55
|
-
renderTitleBox?: boolean;
|
|
56
|
-
renderBlanket?: boolean;
|
|
57
|
-
isFixedBlanket?: boolean;
|
|
58
|
-
renderProgressBar?: boolean;
|
|
59
|
-
renderAIBorder?: boolean;
|
|
60
|
-
renderSpinner?: boolean;
|
|
61
|
-
renderFailedTitleBox?: boolean;
|
|
62
|
-
renderTickBox?: boolean;
|
|
63
|
-
customTitleMessage?: MessageDescriptor;
|
|
64
|
-
traceTooltipVariant?: TraceTooltipVariant;
|
|
65
|
-
}
|
|
66
|
-
export declare const CardViewBase: ({ identifier, 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, onSvgError, onSvgLoad, traceId, isAIGenerating, backgroundColor, }: CardViewBaseProps) => React.JSX.Element;
|
|
67
|
-
export declare const CardView: React.ForwardRefExoticComponent<Omit<CardViewProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
68
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type ExternalImageIdentifier, type Identifier, type MediaClient } from '@atlaskit/media-client';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { type CardEventProps, type SharedCardProps } from '../types';
|
|
4
|
-
export interface ExternalImageCardProps extends SharedCardProps, CardEventProps {
|
|
5
|
-
readonly mediaClient: MediaClient;
|
|
6
|
-
readonly identifier: ExternalImageIdentifier;
|
|
7
|
-
readonly shouldOpenMediaViewer?: boolean;
|
|
8
|
-
readonly mediaViewerItems?: Identifier[];
|
|
9
|
-
readonly contextId?: string;
|
|
10
|
-
readonly shouldHideTooltip?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare const ExternalImageCard: ({ mediaClient, appearance, resizeMode, disableOverlay, featureFlags, identifier, dimensions, contextId, alt, actions, shouldOpenMediaViewer, selectable, selected, testId, titleBoxBgColor, titleBoxIcon, shouldHideTooltip, mediaViewerItems, onClick, onMouseEnter, }: ExternalImageCardProps) => React.JSX.Element;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { type FileIdentifier, type FileState, type Identifier, type ImageResizeMode } from '@atlaskit/media-client';
|
|
2
|
-
import { type MediaFeatureFlags, type NumericalCardDimensions, type SSR } from '@atlaskit/media-common';
|
|
3
|
-
import { type ViewerOptionsProps, type MediaViewerExtensions } from '@atlaskit/media-viewer';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { type MediaCardErrorPrimaryReason } from '../errors';
|
|
6
|
-
import { type CardAppearance, type CardDimensions, type CardEventProps, type TitleBoxIcon } from '../types';
|
|
7
|
-
import { type MediaFilePreviewErrorPrimaryReason } from '@atlaskit/media-file-preview';
|
|
8
|
-
import { type CardAction } from './actions';
|
|
9
|
-
import type { SsrItemDetails } from './types';
|
|
10
|
-
export interface FileCardProps extends CardEventProps {
|
|
11
|
-
/** Overlay the media file. */
|
|
12
|
-
readonly disableOverlay?: boolean;
|
|
13
|
-
/** Resize the media to 'crop' | 'fit' | 'full-fit' | 'stretchy-fit'. */
|
|
14
|
-
readonly resizeMode?: ImageResizeMode;
|
|
15
|
-
readonly featureFlags?: MediaFeatureFlags;
|
|
16
|
-
/** Sets meida card appearance */
|
|
17
|
-
readonly appearance?: CardAppearance;
|
|
18
|
-
/** Custom media card dimension like width and height. */
|
|
19
|
-
readonly dimensions?: CardDimensions;
|
|
20
|
-
/** Original media card dimension like width and height. */
|
|
21
|
-
readonly originalDimensions?: NumericalCardDimensions;
|
|
22
|
-
/** Array of additional media card actions. */
|
|
23
|
-
readonly actions?: Array<CardAction>;
|
|
24
|
-
/** Enable media card selectable. */
|
|
25
|
-
readonly selectable?: boolean;
|
|
26
|
-
/** Renders media card as selected, if selected is true. */
|
|
27
|
-
readonly selected?: boolean;
|
|
28
|
-
/** Alternate text for an media card. */
|
|
29
|
-
readonly alt?: string;
|
|
30
|
-
/** ID for testing the media card. */
|
|
31
|
-
readonly testId?: string;
|
|
32
|
-
/** Sets the title box background color. */
|
|
33
|
-
readonly titleBoxBgColor?: string;
|
|
34
|
-
/** Sets the title box icon. */
|
|
35
|
-
readonly titleBoxIcon?: TitleBoxIcon;
|
|
36
|
-
/** Overrides the background color for media rendering (e.g. the default white background used for SVG transparency). */
|
|
37
|
-
readonly backgroundColor?: React.CSSProperties['backgroundColor'];
|
|
38
|
-
/** Indicates the media card is being generated by AI (e.g. Rovo image-create). */
|
|
39
|
-
readonly isAIGenerating?: boolean;
|
|
40
|
-
/** Callback fired when the media card's image preview has rendered. */
|
|
41
|
-
readonly onPreviewRender?: (fileId: string) => void;
|
|
42
|
-
/** Instance of file identifier. */
|
|
43
|
-
readonly identifier: FileIdentifier;
|
|
44
|
-
/** Lazy loads the media file. */
|
|
45
|
-
readonly isLazy?: boolean;
|
|
46
|
-
/** Uses the inline player for media file. */
|
|
47
|
-
readonly useInlinePlayer?: boolean;
|
|
48
|
-
/** Uses media MediaViewer to preview the media file. */
|
|
49
|
-
readonly shouldOpenMediaViewer?: boolean;
|
|
50
|
-
/** Media file list to display in Media Viewer. */
|
|
51
|
-
readonly mediaViewerItems?: Identifier[];
|
|
52
|
-
/** Retrieve auth based on a given context. */
|
|
53
|
-
readonly contextId?: string;
|
|
54
|
-
/** Enables the download button for media file. */
|
|
55
|
-
readonly shouldEnableDownloadButton?: boolean;
|
|
56
|
-
/** Server-Side-Rendering modes are "server" and "client" */
|
|
57
|
-
readonly ssr?: SSR;
|
|
58
|
-
/** Disable tooltip for the card */
|
|
59
|
-
readonly shouldHideTooltip?: boolean;
|
|
60
|
-
/** Sets options for viewer **/
|
|
61
|
-
readonly viewerOptions?: ViewerOptionsProps;
|
|
62
|
-
/** Sets options for viewer **/
|
|
63
|
-
readonly includeHashForDuplicateFiles?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* @deprecated Use `ssrFileState` instead (Phase 5b). Will be removed in a future major.
|
|
66
|
-
*/
|
|
67
|
-
readonly ssrItemDetails?: SsrItemDetails;
|
|
68
|
-
/**
|
|
69
|
-
* Pre-hydrated SSR metadata from a Relay fragment (Media Platform Phase 5b).
|
|
70
|
-
* When provided and `fg('platform_media_ssr_data_seed')` is on, the card seeds
|
|
71
|
-
* `useFileState` with this data and skips the `items()` API call for files
|
|
72
|
-
* whose `processingStatus` is `succeeded`.
|
|
73
|
-
* @see https://product-fabric.atlassian.net/browse/BMPT-7914
|
|
74
|
-
*/
|
|
75
|
-
readonly ssrFileState?: FileState;
|
|
76
|
-
/** General Error handling include status errors and display errors*/
|
|
77
|
-
readonly onError?: (reason: MediaFilePreviewErrorPrimaryReason | MediaCardErrorPrimaryReason) => void;
|
|
78
|
-
/** Extensions for the media viewer (e.g. comment button in header). */
|
|
79
|
-
readonly mediaViewerExtensions?: MediaViewerExtensions;
|
|
80
|
-
}
|
|
81
|
-
export declare const FileCard: ({ appearance, resizeMode, isLazy, disableOverlay, featureFlags, identifier, ssr, dimensions, originalDimensions, contextId, alt, actions, shouldEnableDownloadButton, useInlinePlayer, shouldOpenMediaViewer, onFullscreenChange, selectable, selected, testId, titleBoxBgColor, titleBoxIcon, backgroundColor, isAIGenerating, onPreviewRender, shouldHideTooltip, mediaViewerItems, onClick, onMouseEnter, videoControlsWrapperRef, viewerOptions, includeHashForDuplicateFiles, ssrItemDetails, ssrFileState, onError, mediaViewerExtensions, }: FileCardProps) => React.JSX.Element;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type FileStatus } from '@atlaskit/media-client';
|
|
2
|
-
import { type CardStatus, type FilePreviewStatus } from '../types';
|
|
3
|
-
export declare const isFinalCardStatus: (status: CardStatus) => boolean;
|
|
4
|
-
export declare const getCardStatus: (fileStatus: FileStatus, { isPreviewable, hasPreview }: FilePreviewStatus) => CardStatus;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
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
|
-
import type { CardPreview } from '../types';
|
|
7
|
-
export interface InlinePlayerOwnProps {
|
|
8
|
-
identifier: FileIdentifier;
|
|
9
|
-
dimensions?: CardDimensions;
|
|
10
|
-
originalDimensions?: NumericalCardDimensions;
|
|
11
|
-
autoplay: boolean;
|
|
12
|
-
selected?: boolean;
|
|
13
|
-
onFullscreenChange?: (fullscreen: boolean) => void;
|
|
14
|
-
onError?: (error: Error) => void;
|
|
15
|
-
readonly onClick?: (event: React.MouseEvent<HTMLDivElement>, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
16
|
-
testId?: string;
|
|
17
|
-
readonly cardPreview?: CardPreview;
|
|
18
|
-
readonly forwardRef?: React.Ref<HTMLDivElement>;
|
|
19
|
-
readonly videoControlsWrapperRef?: React.Ref<HTMLDivElement>;
|
|
20
|
-
}
|
|
21
|
-
export type InlinePlayerProps = InlinePlayerOwnProps & WithAnalyticsEventsProps;
|
|
22
|
-
export declare const getPreferredVideoArtifact: (fileState: FileState) => keyof MediaFileArtifacts | undefined;
|
|
23
|
-
export declare const InlinePlayerBase: ({ identifier, onError, onClick, dimensions, originalDimensions, selected, testId, forwardRef, autoplay, cardPreview, onFullscreenChange, videoControlsWrapperRef, }: InlinePlayerProps) => React.JSX.Element;
|
|
24
|
-
export declare const InlinePlayer: React.ForwardRefExoticComponent<Omit<InlinePlayerProps, 'ref'> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type ForwardRefExoticComponent, type LazyExoticComponent, type RefAttributes } from 'react';
|
|
2
|
-
import type { InlinePlayerProps } from './inlinePlayer';
|
|
3
|
-
export declare const InlinePlayerLazy: LazyExoticComponent<ForwardRefExoticComponent<Omit<InlinePlayerProps, 'ref'> & RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type InlinePlayerWrapperProps } from './types';
|
|
2
|
-
export declare const inlinePlayerClassName = "media-card-inline-player";
|
|
3
|
-
export declare const LOCAL_WIDTH_VARIABLE = "--media-inline-player-wrapper-width";
|
|
4
|
-
export declare const LOCAL_HEIGHT_VARIABLE = "--media-inline-player-wrapper-height";
|
|
5
|
-
export declare const InlinePlayerWrapper: (props: InlinePlayerWrapperProps) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
-
import { type InlinePlayerWrapperProps } from './types';
|
|
3
|
-
export declare const inlinePlayerClassName = "media-card-inline-player";
|
|
4
|
-
export declare const inlinePlayerWrapperStyles: {
|
|
5
|
-
({ dimensions, selected }: InlinePlayerWrapperProps): SerializedStyles;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
export type MediaCardAnalyticsErrorBoundaryProps = PropsWithChildren<{
|
|
6
|
-
dimensions?: CardDimensions;
|
|
7
|
-
data?: {
|
|
8
|
-
[k: string]: any;
|
|
9
|
-
};
|
|
10
|
-
onClick?: CardOnClickCallback;
|
|
11
|
-
featureFlags?: MediaFeatureFlags;
|
|
12
|
-
} & WithAnalyticsEventsProps>;
|
|
13
|
-
declare const MediaCardAnalyticsErrorBoundary: React.ComponentType<MediaCardAnalyticsErrorBoundaryProps & WithAnalyticsEventsProps>;
|
|
14
|
-
export default MediaCardAnalyticsErrorBoundary;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const performanceNow: () => number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SvgView } from './svgView';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { SvgViewProps } from './types';
|
|
7
|
-
export declare const SvgView: ({ identifier, resizeMode, onLoad, onError, wrapperRef, alt, backgroundColor, }: SvgViewProps) => React.JSX.Element | null;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type FileIdentifier, type ImageResizeMode } from '@atlaskit/media-client';
|
|
2
|
-
import { type MediaCardError } from '../../errors';
|
|
3
|
-
export type ContentSource = 'remote' | 'local';
|
|
4
|
-
export type SvgViewProps = {
|
|
5
|
-
readonly identifier: FileIdentifier;
|
|
6
|
-
readonly resizeMode: ImageResizeMode;
|
|
7
|
-
readonly onLoad?: () => void;
|
|
8
|
-
readonly onError?: (error: MediaCardError) => void;
|
|
9
|
-
readonly wrapperRef: React.RefObject<HTMLDivElement>;
|
|
10
|
-
readonly alt?: string;
|
|
11
|
-
readonly backgroundColor?: React.CSSProperties['backgroundColor'];
|
|
12
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type ReactElement, type RefObject } from 'react';
|
|
2
|
-
import type React from 'react';
|
|
3
|
-
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
-
import type { WithMediaClientConfigProps } from '@atlaskit/media-client-react';
|
|
5
|
-
import type { CardBaseProps } from './card';
|
|
6
|
-
import { type CardDimensions } from '../types';
|
|
7
|
-
export type InlinePlayerWrapperProps = {
|
|
8
|
-
testId?: string;
|
|
9
|
-
dimensions?: CardDimensions;
|
|
10
|
-
selected?: boolean;
|
|
11
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
12
|
-
innerRef?: RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | undefined;
|
|
13
|
-
children?: JSX.Element[] | ReactElement<any, any> | null | any;
|
|
14
|
-
};
|
|
15
|
-
export type SsrItemDetails = {
|
|
16
|
-
filename: string;
|
|
17
|
-
mimetype: string;
|
|
18
|
-
createdDate: number;
|
|
19
|
-
};
|
|
20
|
-
export type CardWithMediaClientConfigProps = WithMediaClientConfigProps<CardBaseProps>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
6
|
-
import { type CardActionButtonOwnProps } from './styles';
|
|
7
|
-
export declare const CardActionButton: ForwardRefExoticComponent<CardActionButtonOwnProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ReactNode, type MouseEvent } from 'react';
|
|
3
|
-
import { type CardActionIconButtonVariant } from './styles';
|
|
4
|
-
export type CardActionIconButtonProps = {
|
|
5
|
-
readonly icon: ReactNode;
|
|
6
|
-
readonly label?: string;
|
|
7
|
-
readonly isPrimary?: boolean;
|
|
8
|
-
readonly filename?: string;
|
|
9
|
-
readonly variant?: CardActionIconButtonVariant;
|
|
10
|
-
readonly triggerColor?: string;
|
|
11
|
-
readonly isDisabled?: boolean;
|
|
12
|
-
readonly tooltip?: string;
|
|
13
|
-
readonly onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
14
|
-
};
|
|
15
|
-
export declare const CardActionIconButton: ({ icon, label, filename, triggerColor, onClick, isPrimary, variant, isDisabled, tooltip, }: CardActionIconButtonProps) => React.JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type CardAction } from '../../../actions';
|
|
3
|
-
import { type CardActionIconButtonVariant } from './styles';
|
|
4
|
-
export type CardActionsDropdownMenuProps = {
|
|
5
|
-
readonly actions: CardAction[];
|
|
6
|
-
readonly triggerColor?: string;
|
|
7
|
-
readonly triggerVariant?: CardActionIconButtonVariant;
|
|
8
|
-
readonly onOpenChange?: (attrs: {
|
|
9
|
-
isOpen: boolean;
|
|
10
|
-
}) => void;
|
|
11
|
-
};
|
|
12
|
-
export declare const CardActionsDropdownMenu: ({ actions, triggerColor, onOpenChange, triggerVariant, }: CardActionsDropdownMenuProps) => React.JSX.Element | null;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import { type CardAction } from '../../../actions';
|
|
3
|
-
import { type CardActionIconButtonVariant } from './styles';
|
|
4
|
-
export interface CardActionsViewProps {
|
|
5
|
-
readonly actions: CardAction[];
|
|
6
|
-
readonly filename?: string;
|
|
7
|
-
readonly onToggle?: (attrs: {
|
|
8
|
-
isOpen: boolean;
|
|
9
|
-
}) => void;
|
|
10
|
-
readonly triggerColor?: string;
|
|
11
|
-
readonly variant?: CardActionIconButtonVariant;
|
|
12
|
-
}
|
|
13
|
-
export declare class CardActionsView extends Component<CardActionsViewProps> {
|
|
14
|
-
render(): JSX.Element | null;
|
|
15
|
-
private renderActionIconButton;
|
|
16
|
-
private renderOtherActionButtons;
|
|
17
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { CardActionsView as default, CardActionsView } from './cardActionsView';
|
|
2
|
-
export type { CardActionsViewProps } from './cardActionsView';
|
|
3
|
-
export { CardActionIconButton } from './cardActionIconButton';
|
|
4
|
-
export type { CardActionIconButtonProps } from './cardActionIconButton';
|
|
5
|
-
export { CardActionsDropdownMenu } from './cardActionsDropdownMenu';
|
|
6
|
-
export type { CardActionsDropdownMenuProps } from './cardActionsDropdownMenu';
|
|
7
|
-
export { CardActionIconButtonVariant } from './styles';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
-
import { type MouseEvent, type HTMLAttributes } from 'react';
|
|
3
|
-
import type React from 'react';
|
|
4
|
-
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
|
-
export declare enum CardActionIconButtonVariant {
|
|
6
|
-
default = "default",
|
|
7
|
-
filled = "filled"
|
|
8
|
-
}
|
|
9
|
-
export type CardActionButtonOwnProps = {
|
|
10
|
-
variant?: CardActionIconButtonVariant;
|
|
11
|
-
label?: string;
|
|
12
|
-
style?: {
|
|
13
|
-
color: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
16
|
-
onMouseDown?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
children?: React.ReactNode;
|
|
19
|
-
};
|
|
20
|
-
export type CardActionButtonProps = CardActionButtonOwnProps & HTMLAttributes<HTMLButtonElement>;
|
|
21
|
-
export declare const cardActionButtonStyles: ({ variant }: CardActionButtonProps) => SerializedStyles;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
-
export declare const actionsBarClassName = "media-card-actions-bar";
|
|
3
|
-
export declare const fixedActionBarStyles = "opacity: 1;";
|
|
4
|
-
export declare const wrapperStyles: {
|
|
5
|
-
(isFixed?: boolean): SerializedStyles;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type CardAction } from '../../actions';
|
|
3
|
-
export interface ActionsBarProps {
|
|
4
|
-
actions: Array<CardAction>;
|
|
5
|
-
filename?: string;
|
|
6
|
-
isFixed?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export type ActionBarWrapperProps = {
|
|
9
|
-
isFixed?: boolean;
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const blanketClassName = "media-card-blanket";
|
|
2
|
-
export declare const fixedBlanketStyles: string;
|
|
3
|
-
export interface BlanketProps {
|
|
4
|
-
isFixed?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const Blanket: {
|
|
7
|
-
(props: BlanketProps): JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
-
export declare const blanketClassName = "media-card-blanket";
|
|
3
|
-
export declare const fixedBlanketStyles: string;
|
|
4
|
-
export declare const blanketStyles: {
|
|
5
|
-
(isFixed?: boolean): SerializedStyles;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare enum Breakpoint {
|
|
2
|
-
SMALL = "small",
|
|
3
|
-
LARGE = "large"
|
|
4
|
-
}
|
|
5
|
-
export declare const responsiveSettings: {
|
|
6
|
-
small: {
|
|
7
|
-
fontSize: number;
|
|
8
|
-
lineHeight: number;
|
|
9
|
-
titleBox: {
|
|
10
|
-
verticalPadding: number;
|
|
11
|
-
horizontalPadding: number;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
large: {
|
|
15
|
-
fontSize: number;
|
|
16
|
-
lineHeight: number;
|
|
17
|
-
titleBox: {
|
|
18
|
-
verticalPadding: number;
|
|
19
|
-
horizontalPadding: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare const getTitleBoxHeight: (breakpoint: Breakpoint) => number;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type InternalIconMessageProps, type CreatingPreviewProps } from './types';
|
|
3
|
-
export declare const IconMessage: React.FC<InternalIconMessageProps>;
|
|
4
|
-
export declare const CreatingPreview: React.FC<CreatingPreviewProps>;
|
|
5
|
-
export declare const PreviewUnavailable: React.FC;
|
|
6
|
-
export declare const FailedToLoad: React.FC;
|
|
7
|
-
export declare const FailedToUpload: React.FC;
|
|
8
|
-
export declare const CheckInternetConnection: React.FC;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type MessageDescriptor } from 'react-intl';
|
|
3
|
-
export type InternalIconMessageProps = {
|
|
4
|
-
messageDescriptor: MessageDescriptor;
|
|
5
|
-
animated?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export type CreatingPreviewProps = {
|
|
8
|
-
disableAnimation?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export type StyledTextProps = {
|
|
11
|
-
animated?: boolean;
|
|
12
|
-
reducedFont?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export type IconMessageWrapperProps = {
|
|
15
|
-
animated?: boolean;
|
|
16
|
-
reducedFont?: boolean;
|
|
17
|
-
children?: ReactNode;
|
|
18
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type IconWrapperProps } from './types';
|
|
2
|
-
import { type Breakpoint } from '../common';
|
|
3
|
-
export declare function titleBoxHeight(hasTitleBox: boolean, breakpoint: Breakpoint): string;
|
|
4
|
-
export declare const IconWrapper: {
|
|
5
|
-
(props: IconWrapperProps): JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
-
import { type Breakpoint } from '../common';
|
|
3
|
-
import { type IconWrapperProps } from './types';
|
|
4
|
-
export declare function titleBoxHeight(hasTitleBox: boolean, breakpoint: Breakpoint): string;
|
|
5
|
-
export declare const iconWrapperStyles: {
|
|
6
|
-
({ hasTitleBox, breakpoint }: IconWrapperProps): SerializedStyles;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type ImageResizeMode } from '@atlaskit/media-client';
|
|
2
|
-
export declare const calculateDimensions: (imgElement: HTMLImageElement, parentElement: HTMLElement, resizeMode: ImageResizeMode) => React.CSSProperties;
|
|
3
|
-
export declare const calculateInitialDimensions: (resizeMode: ImageResizeMode) => React.CSSProperties;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ImageRendererProps } from './types';
|
|
3
|
-
export declare const ImageRenderer: ({ cardPreview, alt, resizeMode, onImageLoad, onImageError, onDisplayImage, mediaType, nativeLazyLoad, forceSyncDisplay, }: ImageRendererProps) => React.JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { ImageRendererProps } from './types';
|
|
2
|
-
export declare const ImageRenderer: ({ cardPreview, alt, resizeMode, onImageLoad, onImageError, onDisplayImage, mediaType, nativeLazyLoad, forceSyncDisplay, identifier, wrapperRef, useWhiteBackground, backgroundColor, testId, }: ImageRendererProps) => JSX.Element | null;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type MediaType, type ImageResizeMode, type Identifier } from '@atlaskit/media-client';
|
|
2
|
-
import { type CardPreview } from '../../../types';
|
|
3
|
-
export type ImageRendererProps = {
|
|
4
|
-
readonly cardPreview?: CardPreview;
|
|
5
|
-
readonly mediaType: MediaType;
|
|
6
|
-
readonly alt?: string;
|
|
7
|
-
readonly resizeMode?: ImageResizeMode;
|
|
8
|
-
readonly onDisplayImage?: () => void;
|
|
9
|
-
readonly onImageError?: (cardPreview: CardPreview) => void;
|
|
10
|
-
readonly onImageLoad?: (cardPreview: CardPreview) => void;
|
|
11
|
-
readonly nativeLazyLoad?: boolean;
|
|
12
|
-
readonly forceSyncDisplay?: boolean;
|
|
13
|
-
readonly wrapperRef: React.RefObject<HTMLDivElement>;
|
|
14
|
-
readonly identifier: Identifier;
|
|
15
|
-
readonly useWhiteBackground?: boolean;
|
|
16
|
-
readonly backgroundColor?: React.CSSProperties['backgroundColor'];
|
|
17
|
-
readonly testId?: string;
|
|
18
|
-
};
|