@atlaskit/media-card 80.8.13 → 80.8.14
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 +6 -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 +2 -2
- 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,13 +0,0 @@
|
|
|
1
|
-
import { type StyledBarProps } from './types';
|
|
2
|
-
import { Breakpoint } from '../common';
|
|
3
|
-
export declare function generateResponsiveStyles(breakpoint: Breakpoint, positionBottom: boolean, showOnTop: boolean, multiplier?: number): {
|
|
4
|
-
top: string;
|
|
5
|
-
bottom?: undefined;
|
|
6
|
-
} | {
|
|
7
|
-
bottom: string;
|
|
8
|
-
top?: undefined;
|
|
9
|
-
};
|
|
10
|
-
export declare const StyledBar: {
|
|
11
|
-
(props: StyledBarProps): JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
-
import { Breakpoint } from '../common';
|
|
3
|
-
import { type StyledBarProps } from './types';
|
|
4
|
-
export declare function generateResponsiveStyles(breakpoint: Breakpoint, positionBottom: boolean, showOnTop: boolean, multiplier?: number): string;
|
|
5
|
-
export declare const styledBarStyles: {
|
|
6
|
-
(props: StyledBarProps): SerializedStyles;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type CardDimensions, type CardAppearance } from '../../types';
|
|
2
|
-
import { Breakpoint } from './common';
|
|
3
|
-
import { type MediaCardCursor } from '../../types';
|
|
4
|
-
export declare const calcBreakpointSize: (wrapperWidth?: number) => Breakpoint;
|
|
5
|
-
export declare const generateResponsiveStyles: (breakpoint?: Breakpoint) => string;
|
|
6
|
-
export declare const getWrapperDimensions: (dimensions?: CardDimensions, appearance?: CardAppearance) => string;
|
|
7
|
-
export declare const getWrapperShadow: (disableOverlay: boolean, selected: boolean) => string;
|
|
8
|
-
export declare const getCursorStyle: (cursor: MediaCardCursor | undefined) => string;
|
|
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
|
-
export declare const getSelectableTickBoxStyles: (isTickBoxSelectable: boolean) => string;
|
|
11
|
-
export declare const transition: (propertyName?: string) => string;
|
|
12
|
-
export declare const rgba: (hex: any, opacity: any) => string;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
-
import { Breakpoint } from '../common';
|
|
3
|
-
import { type TitleBoxFooterProps, type TitleBoxHeaderProps } from './types';
|
|
4
|
-
type TitleBoxWrapperStyleArgs = {
|
|
5
|
-
breakpoint: Breakpoint;
|
|
6
|
-
titleBoxBgColor?: string;
|
|
7
|
-
display?: 'none' | 'flex';
|
|
8
|
-
};
|
|
9
|
-
export declare const titleBoxWrapperStyles: {
|
|
10
|
-
({ breakpoint, display }: TitleBoxWrapperStyleArgs): SerializedStyles;
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const titleBoxHeaderStyles: {
|
|
14
|
-
({ hasIconOverlap }: TitleBoxHeaderProps): SerializedStyles;
|
|
15
|
-
displayName: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const titleBoxFooterStyles: {
|
|
18
|
-
({ hasIconOverlap }: TitleBoxFooterProps): SerializedStyles;
|
|
19
|
-
displayName: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const titleBoxIconStyles: SerializedStyles;
|
|
22
|
-
export declare const newTitleBoxIconStyles: SerializedStyles;
|
|
23
|
-
export declare const errorMessageWrapperStyles: SerializedStyles;
|
|
24
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import { type TitleBoxProps } from './types';
|
|
4
|
-
export declare const TitleBox: React.FC<WithIntlProps<TitleBoxProps & WrappedComponentProps>> & {
|
|
5
|
-
WrappedComponent: React.ComponentType<TitleBoxProps & WrappedComponentProps>;
|
|
6
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type TitleBoxFooterProps, type TitleBoxHeaderProps, type TitleBoxWrapperProps } from './types';
|
|
2
|
-
export declare const TitleBoxWrapper: {
|
|
3
|
-
(props: TitleBoxWrapperProps): JSX.Element;
|
|
4
|
-
displayName: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const TitleBoxHeader: {
|
|
7
|
-
(props: TitleBoxHeaderProps): JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const TitleBoxFooter: {
|
|
11
|
-
(props: TitleBoxFooterProps): JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const TitleBoxIcon: (props: any) => JSX.Element;
|
|
15
|
-
export declare const ErrorMessageWrapper: (props: any) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type TitleBoxFooterProps, type TitleBoxHeaderProps, type TitleBoxWrapperProps } from './types';
|
|
3
|
-
export declare const TitleBoxWrapper: (props: TitleBoxWrapperProps) => React.JSX.Element;
|
|
4
|
-
export declare const TitleBoxHeader: (props: TitleBoxHeaderProps) => React.JSX.Element;
|
|
5
|
-
export declare const TitleBoxFooter: (props: TitleBoxFooterProps) => React.JSX.Element;
|
|
6
|
-
export declare const TitleBoxIcon: (props: any) => React.JSX.Element;
|
|
7
|
-
export declare const ErrorMessageWrapper: (props: any) => React.JSX.Element;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { type MessageDescriptor } from 'react-intl';
|
|
2
|
-
import { type Breakpoint } from '../common';
|
|
3
|
-
import { type TitleBoxIcon as TitleBoxIconType } from '../../../types';
|
|
4
|
-
export type TitleBoxProps = {
|
|
5
|
-
name?: string;
|
|
6
|
-
breakpoint: Breakpoint;
|
|
7
|
-
createdAt?: number;
|
|
8
|
-
titleBoxBgColor?: string;
|
|
9
|
-
titleBoxIcon?: TitleBoxIconType;
|
|
10
|
-
hidden?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export type FormattedDateProps = {
|
|
13
|
-
timestamp: number;
|
|
14
|
-
};
|
|
15
|
-
export type TitleBoxWrapperProps = {
|
|
16
|
-
breakpoint: Breakpoint;
|
|
17
|
-
hidden?: boolean;
|
|
18
|
-
titleBoxBgColor?: string;
|
|
19
|
-
children?: JSX.Element | JSX.Element[] | any;
|
|
20
|
-
};
|
|
21
|
-
export type TitleBoxFooterProps = {
|
|
22
|
-
hasIconOverlap: boolean;
|
|
23
|
-
suppressHydrationWarning?: boolean;
|
|
24
|
-
children?: React.ReactNode;
|
|
25
|
-
};
|
|
26
|
-
export type TitleBoxHeaderProps = {
|
|
27
|
-
hasIconOverlap: boolean;
|
|
28
|
-
children?: JSX.Element;
|
|
29
|
-
};
|
|
30
|
-
export type OnRetryFunction = () => void;
|
|
31
|
-
export type FailedTitleBoxProps = {
|
|
32
|
-
breakpoint: Breakpoint;
|
|
33
|
-
customMessage?: MessageDescriptor;
|
|
34
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { MediaCardCursor } from '../../../types';
|
|
2
|
-
type ImageContainerProps = {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
centerElements?: boolean;
|
|
5
|
-
testId: string;
|
|
6
|
-
mediaCardCursor?: MediaCardCursor;
|
|
7
|
-
mediaName?: string;
|
|
8
|
-
status?: string;
|
|
9
|
-
progress?: number;
|
|
10
|
-
selected?: boolean;
|
|
11
|
-
source?: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const ImageContainer: ({ children, mediaName, status, progress, selected, source, centerElements, mediaCardCursor, }: ImageContainerProps) => JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MediaCardCursor } from '../../../types';
|
|
3
|
-
type ImageContainerProps = {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
centerElements?: boolean;
|
|
6
|
-
testId: string;
|
|
7
|
-
mediaCardCursor?: MediaCardCursor;
|
|
8
|
-
mediaName?: string;
|
|
9
|
-
status?: string;
|
|
10
|
-
progress?: number;
|
|
11
|
-
selected?: boolean;
|
|
12
|
-
source?: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const ImageContainer: (props: ImageContainerProps) => React.JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
-
import { type WrapperProps } from './types';
|
|
3
|
-
export declare const wrapperStyles: {
|
|
4
|
-
({ breakpoint, dimensions, appearance, disableOverlay, displayBackground, selected, isPlayButtonClickable, isTickBoxSelectable, shouldDisplayTooltip, mediaCardCursor, }: WrapperProps): SerializedStyles;
|
|
5
|
-
displayName: string;
|
|
6
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
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';
|
|
7
|
-
export interface WrapperProps {
|
|
8
|
-
testId?: string;
|
|
9
|
-
breakpoint: Breakpoint;
|
|
10
|
-
mediaCardCursor?: MediaCardCursor;
|
|
11
|
-
dimensions?: CardDimensions;
|
|
12
|
-
appearance?: CardAppearance;
|
|
13
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
14
|
-
onMouseEnter?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
15
|
-
mediaType?: string;
|
|
16
|
-
disableOverlay: boolean;
|
|
17
|
-
displayBackground: boolean;
|
|
18
|
-
selected: boolean;
|
|
19
|
-
isPlayButtonClickable: boolean;
|
|
20
|
-
isTickBoxSelectable: boolean;
|
|
21
|
-
shouldDisplayTooltip: boolean;
|
|
22
|
-
innerRef?: React.Ref<HTMLDivElement>;
|
|
23
|
-
children?: JSX.Element;
|
|
24
|
-
ariaLabel?: string;
|
|
25
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type WrapperProps } from './types';
|
|
2
|
-
export declare const LOCAL_WIDTH_VARIABLE = "--media-wrapper-width";
|
|
3
|
-
export declare const LOCAL_HEIGHT_VARIABLE = "--media-wrapper-height";
|
|
4
|
-
export declare const Wrapper: {
|
|
5
|
-
(props: WrapperProps): JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type Context } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Provide capacity to override creation date
|
|
4
|
-
* `DateOverrideContext` is a stopgap for a specific bug (https://product-fabric.atlassian.net/browse/CXP-2840)
|
|
5
|
-
* This is a temporal solution, please consult before usage
|
|
6
|
-
*/
|
|
7
|
-
export declare const DateOverrideContext: Context<Record<string, number> | undefined>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { type CardPreview } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Primary reason is logged through Data Portal.
|
|
4
|
-
* Make sure all the values are whitelisted in Measure -> Event Regitry -> "mediaCardRender failed" event
|
|
5
|
-
*/
|
|
6
|
-
export type MediaCardErrorPrimaryReason = 'upload' | 'metadata-fetch' | 'error-file-state' | 'failed-processing' | RemotePreviewPrimaryReason | LocalPreviewPrimaryReason | ImageLoadPrimaryReason | SsrPreviewPrimaryReason | SvgPrimaryReason | 'missing-error-data' | 'preview-fetch' | 'download';
|
|
7
|
-
export type ImageLoadPrimaryReason = 'cache-remote-uri' | 'cache-local-uri' | 'local-uri' | 'remote-uri' | 'external-uri' | 'unknown-uri';
|
|
8
|
-
export type RemotePreviewPrimaryReason = 'remote-preview-fetch' | 'remote-preview-not-ready' | 'remote-preview-fetch-ssr';
|
|
9
|
-
export type LocalPreviewPrimaryReason = 'local-preview-get' | 'local-preview-unsupported' | 'local-preview-rejected' | 'local-preview-image' | 'local-preview-video';
|
|
10
|
-
export type SsrPreviewPrimaryReason = 'ssr-client-uri' | 'ssr-client-load' | 'ssr-server-uri' | 'ssr-server-load';
|
|
11
|
-
export type SvgPrimaryReason = 'svg-img-error' | 'svg-binary-fetch' | 'svg-blob-to-datauri' | 'svg-unknown-error';
|
|
12
|
-
export declare class MediaCardError extends Error {
|
|
13
|
-
readonly primaryReason: MediaCardErrorPrimaryReason;
|
|
14
|
-
readonly secondaryError?: Error | undefined;
|
|
15
|
-
constructor(primaryReason: MediaCardErrorPrimaryReason, secondaryError?: Error | undefined);
|
|
16
|
-
}
|
|
17
|
-
export declare class LocalPreviewError extends MediaCardError {
|
|
18
|
-
readonly primaryReason: LocalPreviewPrimaryReason;
|
|
19
|
-
readonly secondaryError?: Error | undefined;
|
|
20
|
-
constructor(primaryReason: LocalPreviewPrimaryReason, secondaryError?: Error | undefined);
|
|
21
|
-
}
|
|
22
|
-
export declare class RemotePreviewError extends MediaCardError {
|
|
23
|
-
readonly primaryReason: RemotePreviewPrimaryReason;
|
|
24
|
-
readonly secondaryError?: Error | undefined;
|
|
25
|
-
constructor(primaryReason: RemotePreviewPrimaryReason, secondaryError?: Error | undefined);
|
|
26
|
-
}
|
|
27
|
-
export declare class SsrPreviewError extends MediaCardError {
|
|
28
|
-
readonly primaryReason: SsrPreviewPrimaryReason;
|
|
29
|
-
readonly secondaryError?: Error | undefined;
|
|
30
|
-
constructor(primaryReason: SsrPreviewPrimaryReason, secondaryError?: Error | undefined);
|
|
31
|
-
}
|
|
32
|
-
export declare const getImageLoadPrimaryReason: (source?: CardPreview["source"]) => ImageLoadPrimaryReason;
|
|
33
|
-
export declare class ImageLoadError extends MediaCardError {
|
|
34
|
-
constructor(source?: CardPreview['source']);
|
|
35
|
-
}
|
|
36
|
-
export declare function isMediaCardError(err: Error): err is MediaCardError;
|
|
37
|
-
export declare const isLocalPreviewError: (err: Error) => err is LocalPreviewError;
|
|
38
|
-
export declare const isRemotePreviewError: (err: Error) => err is LocalPreviewError;
|
|
39
|
-
export declare const isUnsupportedLocalPreviewError: (err: Error) => boolean;
|
|
40
|
-
export declare function isImageLoadError(err: Error): err is ImageLoadError;
|
|
41
|
-
export declare const ensureMediaCardError: (primaryReason: MediaCardErrorPrimaryReason, error: Error, updatePrimaryReason?: boolean) => MediaCardError;
|
|
42
|
-
export declare const isUploadError: (error?: MediaCardError) => boolean | undefined;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Entry Point: @atlaskit/media-card
|
|
3
|
-
*/
|
|
4
|
-
export type { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
5
|
-
export type { CardAction, CardEventHandler } from './card/actions';
|
|
6
|
-
export type { CardStatus, CardAppearance, CardDimensionValue, CardPreview, TitleBoxIcon, CardEvent, InlineCardEvent, SharedCardProps, CardOnClickCallback, InlineCardOnClickCallback, CardProps, CardState, CardDimensions, } from './types';
|
|
7
|
-
export { Card, CardSync } from './card';
|
|
8
|
-
export { MediaInlineCard, fireFailedMediaInlineEvent, fireSucceededMediaInlineEvent, } from './inline';
|
|
9
|
-
export { MediaCardError } from './errors';
|
|
10
|
-
export { CardPlaceholder } from './utils/lightCards/cardPlaceholder';
|
|
11
|
-
export { CardLoading } from './utils/lightCards/cardLoading';
|
|
12
|
-
export { CardError } from './utils/lightCards/cardError';
|
|
13
|
-
export { defaultImageCardDimensions } from './utils/cardDimensions';
|
|
14
|
-
export { fileCardImageViewSelector } from './card/classnames';
|
|
15
|
-
export { inlinePlayerClassName } from './card/inlinePlayerWrapperStyles';
|
|
16
|
-
export { newFileExperienceClassName } from './card/cardConstants';
|
|
17
|
-
export { DateOverrideContext } from './dateOverrideContext';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
import { type WithMediaClientConfigProps } from '@atlaskit/media-client-react';
|
|
3
|
-
import { type MediaInlineCardProps } from './mediaInlineCard';
|
|
4
|
-
export type MediaInlineCardWithMediaClientConfigProps = WithMediaClientConfigProps<MediaInlineCardProps>;
|
|
5
|
-
type MediaInlineCardWithMediaClientConfigComponent = React.ComponentType<MediaInlineCardWithMediaClientConfigProps>;
|
|
6
|
-
type ErrorBoundaryComponent = React.ComponentType<PropsWithChildren<{
|
|
7
|
-
data?: {
|
|
8
|
-
[k: string]: any;
|
|
9
|
-
};
|
|
10
|
-
isSelected?: boolean;
|
|
11
|
-
}>>;
|
|
12
|
-
export interface MediaInlineCardLoaderState {
|
|
13
|
-
MediaInlineCard?: MediaInlineCardWithMediaClientConfigComponent;
|
|
14
|
-
ErrorBoundary?: ErrorBoundaryComponent;
|
|
15
|
-
}
|
|
16
|
-
export default class MediaInlineCardLoader extends React.PureComponent<MediaInlineCardWithMediaClientConfigProps & MediaInlineCardLoaderState, MediaInlineCardLoaderState> {
|
|
17
|
-
static displayName: string;
|
|
18
|
-
static MediaInlineCard?: MediaInlineCardWithMediaClientConfigComponent;
|
|
19
|
-
static ErrorBoundary?: ErrorBoundaryComponent;
|
|
20
|
-
mounted: boolean;
|
|
21
|
-
state: MediaInlineCardLoaderState;
|
|
22
|
-
componentDidMount(): Promise<void>;
|
|
23
|
-
componentWillUnmount(): Promise<void>;
|
|
24
|
-
render(): React.JSX.Element;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
import { type MediaFeatureFlags } from '@atlaskit/media-common';
|
|
3
|
-
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
-
export type MediaInlineAnalyticsErrorBoundaryProps = PropsWithChildren<{
|
|
5
|
-
isSelected?: boolean;
|
|
6
|
-
data?: {
|
|
7
|
-
[k: string]: any;
|
|
8
|
-
};
|
|
9
|
-
featureFlags?: MediaFeatureFlags;
|
|
10
|
-
} & WithAnalyticsEventsProps>;
|
|
11
|
-
declare const MediaInlineAnalyticsErrorBoundary: React.ComponentType<MediaInlineAnalyticsErrorBoundaryProps & WithAnalyticsEventsProps>;
|
|
12
|
-
export default MediaInlineAnalyticsErrorBoundary;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type FileIdentifier, type FileState, type Identifier, type MediaClient } from '@atlaskit/media-client';
|
|
2
|
-
import { type ViewerOptionsProps } from '@atlaskit/media-viewer';
|
|
3
|
-
import React, { type FC } from 'react';
|
|
4
|
-
import { type WrappedComponentProps } from 'react-intl';
|
|
5
|
-
import { type InlineCardOnClickCallback } from '../types';
|
|
6
|
-
export interface MediaInlineCardProps {
|
|
7
|
-
identifier: FileIdentifier;
|
|
8
|
-
mediaClient: MediaClient;
|
|
9
|
-
shouldOpenMediaViewer?: boolean;
|
|
10
|
-
shouldDisplayToolTip?: boolean;
|
|
11
|
-
isSelected?: boolean;
|
|
12
|
-
onClick?: InlineCardOnClickCallback;
|
|
13
|
-
mediaViewerItems?: Identifier[];
|
|
14
|
-
viewerOptions?: ViewerOptionsProps;
|
|
15
|
-
/**
|
|
16
|
-
* Optional fallback fetcher to retrieve the media filename from another service
|
|
17
|
-
* Workaround for #hot-301450 where media service is missing filenames for DC -> Cloud migrated media
|
|
18
|
-
* Receives the file ID and should resolve to the filename string.
|
|
19
|
-
*/
|
|
20
|
-
fallbackMediaNameFetcher?: (id: string) => Promise<string>;
|
|
21
|
-
/**
|
|
22
|
-
* Pre-hydrated SSR metadata from a Relay fragment (Media Platform Phase 5b).
|
|
23
|
-
* When provided and `fg('platform_media_ssr_data_seed')` is on, the card seeds
|
|
24
|
-
* `useFileState` with this data and skips the `items()` API call for files
|
|
25
|
-
* whose `processingStatus` is `succeeded`.
|
|
26
|
-
* @see https://product-fabric.atlassian.net/browse/BMPT-7914
|
|
27
|
-
*/
|
|
28
|
-
readonly ssrFileState?: FileState;
|
|
29
|
-
}
|
|
30
|
-
export declare const MediaInlineCardInternal: FC<MediaInlineCardProps & WrappedComponentProps>;
|
|
31
|
-
export declare const MediaInlineCard: React.FC<MediaInlineCardProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type FileState } from '@atlaskit/media-client';
|
|
2
|
-
import { type RenderInlineCardFailedEventPayload, type RenderInlineCardSucceededEventPayload } from '../utils/analytics';
|
|
3
|
-
import { MediaCardError } from '../errors';
|
|
4
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
|
-
import { type ProcessingFailReason } from '@atlaskit/media-state';
|
|
6
|
-
export declare const getSucceededStatusPayload: (fileState?: FileState) => RenderInlineCardSucceededEventPayload;
|
|
7
|
-
export declare const getErrorStatusPayload: (fileId: string, error: MediaCardError, fileState?: FileState) => RenderInlineCardFailedEventPayload;
|
|
8
|
-
export declare const getFailedProcessingStatusPayload: (fileId: string, fileState?: FileState, processingFailReason?: ProcessingFailReason) => RenderInlineCardFailedEventPayload;
|
|
9
|
-
export declare const fireFailedOperationalEvent: (fileState: FileState, error?: MediaCardError, failReason?: "failed-processing", createAnalyticsEvent?: CreateUIAnalyticsEvent) => void;
|
|
10
|
-
export declare const fireSucceededOperationalEvent: (fileState: FileState, createAnalyticsEvent?: CreateUIAnalyticsEvent) => void;
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Entry Point: @atlaskit/media-card/types
|
|
3
|
-
*/
|
|
4
|
-
import { type MouseEvent } from 'react';
|
|
5
|
-
import { type FileDetails, type MediaClient, type Identifier, type ImageResizeMode, type FileState } from '@atlaskit/media-client';
|
|
6
|
-
import { type MediaSettings } from '@atlaskit/media-client-react';
|
|
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, type MediaCardErrorPrimaryReason } from './errors';
|
|
11
|
-
import { type ViewerOptionsProps, type MediaViewerExtensions } from '@atlaskit/media-viewer';
|
|
12
|
-
import type { MediaFilePreviewErrorPrimaryReason } from '@atlaskit/media-file-preview';
|
|
13
|
-
export type CardStatus = 'uploading' | 'loading' | 'processing' | 'loading-preview' | 'complete' | 'error' | 'failed-processing';
|
|
14
|
-
export type FilePreviewStatus = {
|
|
15
|
-
hasFilesize: boolean;
|
|
16
|
-
isPreviewable: boolean;
|
|
17
|
-
hasPreview: boolean;
|
|
18
|
-
isSupportedByBrowser: boolean;
|
|
19
|
-
};
|
|
20
|
-
export type FileStateFlags = {
|
|
21
|
-
wasStatusProcessing: boolean;
|
|
22
|
-
wasStatusUploading: boolean;
|
|
23
|
-
};
|
|
24
|
-
export type CardAppearance = 'auto' | 'image' | 'square' | 'horizontal';
|
|
25
|
-
export declare type CardDimensionValue = number | string;
|
|
26
|
-
export type CardPreviewSource = 'local' | 'remote' | 'ssr-server' | 'ssr-client' | 'ssr-data' | 'cache-local' | 'cache-remote' | 'cache-ssr-client' | 'cache-ssr-server' | 'external';
|
|
27
|
-
export interface CardPreview {
|
|
28
|
-
dataURI: string;
|
|
29
|
-
orientation?: number;
|
|
30
|
-
dimensions?: CardDimensions;
|
|
31
|
-
source: CardPreviewSource;
|
|
32
|
-
srcSet?: string;
|
|
33
|
-
}
|
|
34
|
-
export declare const isSSRPreview: (preview: CardPreview) => boolean;
|
|
35
|
-
export declare const isSSRServerPreview: (preview: CardPreview) => boolean;
|
|
36
|
-
export declare const isSSRClientPreview: (preview: CardPreview) => boolean;
|
|
37
|
-
export declare const isSSRDataPreview: (preview: CardPreview) => boolean;
|
|
38
|
-
export declare enum MediaCardCursor {
|
|
39
|
-
Action = "pointer",
|
|
40
|
-
NotReady = "wait"
|
|
41
|
-
}
|
|
42
|
-
export interface CardDimensions {
|
|
43
|
-
width?: CardDimensionValue;
|
|
44
|
-
height?: CardDimensionValue;
|
|
45
|
-
}
|
|
46
|
-
export type TitleBoxIcon = 'LockFilledIcon';
|
|
47
|
-
export interface CardEvent {
|
|
48
|
-
event: MouseEvent<HTMLElement>;
|
|
49
|
-
mediaItemDetails?: FileDetails;
|
|
50
|
-
}
|
|
51
|
-
export interface InlineCardEvent {
|
|
52
|
-
event: MouseEvent<HTMLElement> | React.KeyboardEvent;
|
|
53
|
-
mediaItemDetails?: FileDetails;
|
|
54
|
-
}
|
|
55
|
-
export interface SharedCardProps {
|
|
56
|
-
readonly disableOverlay?: boolean;
|
|
57
|
-
readonly resizeMode?: ImageResizeMode;
|
|
58
|
-
readonly featureFlags?: MediaFeatureFlags;
|
|
59
|
-
readonly appearance?: CardAppearance;
|
|
60
|
-
readonly dimensions?: CardDimensions;
|
|
61
|
-
readonly originalDimensions?: NumericalCardDimensions;
|
|
62
|
-
readonly actions?: Array<CardAction>;
|
|
63
|
-
readonly selectable?: boolean;
|
|
64
|
-
readonly selected?: boolean;
|
|
65
|
-
readonly alt?: string;
|
|
66
|
-
readonly testId?: string;
|
|
67
|
-
readonly titleBoxBgColor?: string;
|
|
68
|
-
readonly backgroundColor?: React.CSSProperties['backgroundColor'];
|
|
69
|
-
readonly titleBoxIcon?: TitleBoxIcon;
|
|
70
|
-
readonly isAIGenerating?: boolean;
|
|
71
|
-
readonly onPreviewRender?: (fileId: string) => void;
|
|
72
|
-
readonly viewerOptions?: ViewerOptionsProps;
|
|
73
|
-
/** Sets options for viewer **/
|
|
74
|
-
readonly includeHashForDuplicateFiles?: boolean;
|
|
75
|
-
}
|
|
76
|
-
export interface CardOnClickCallback {
|
|
77
|
-
(result: CardEvent, analyticsEvent?: UIAnalyticsEvent): void;
|
|
78
|
-
}
|
|
79
|
-
export interface InlineCardOnClickCallback {
|
|
80
|
-
(result: InlineCardEvent, analyticsEvent?: UIAnalyticsEvent): void;
|
|
81
|
-
}
|
|
82
|
-
export interface CardEventProps {
|
|
83
|
-
readonly onClick?: CardOnClickCallback;
|
|
84
|
-
readonly onMouseEnter?: (result: CardEvent) => void;
|
|
85
|
-
/** Callback function to be called when video enters and exit fullscreen.
|
|
86
|
-
* `fullscreen = true` indicates video enters fullscreen
|
|
87
|
-
* `fullscreen = false` indicates video exits fullscreen
|
|
88
|
-
*/
|
|
89
|
-
readonly onFullscreenChange?: (fullscreen: boolean) => void;
|
|
90
|
-
readonly videoControlsWrapperRef?: React.Ref<HTMLDivElement>;
|
|
91
|
-
}
|
|
92
|
-
export interface CardProps extends SharedCardProps, CardEventProps {
|
|
93
|
-
/** Instance of MediaClient. */
|
|
94
|
-
readonly mediaClient: MediaClient;
|
|
95
|
-
/** Instance of file identifier. */
|
|
96
|
-
readonly identifier: Identifier;
|
|
97
|
-
/** Lazy loads the media file. */
|
|
98
|
-
readonly isLazy?: boolean;
|
|
99
|
-
/** Uses the inline player for media file. */
|
|
100
|
-
readonly useInlinePlayer?: boolean;
|
|
101
|
-
/** Uses media MediaViewer to preview the media file. */
|
|
102
|
-
readonly shouldOpenMediaViewer?: boolean;
|
|
103
|
-
/** Media file list to display in Media Viewer. */
|
|
104
|
-
readonly mediaViewerItems?: Identifier[];
|
|
105
|
-
/** Retrieve auth based on a given context. */
|
|
106
|
-
readonly contextId?: string;
|
|
107
|
-
/** Enables the download button for media file. */
|
|
108
|
-
readonly shouldEnableDownloadButton?: boolean;
|
|
109
|
-
/** Server-Side-Rendering modes are "server" and "client" */
|
|
110
|
-
readonly ssr?: SSR;
|
|
111
|
-
/** Disable tooltip for the card */
|
|
112
|
-
readonly shouldHideTooltip?: boolean;
|
|
113
|
-
/** General Media Settings */
|
|
114
|
-
readonly mediaSettings?: MediaSettings;
|
|
115
|
-
/**
|
|
116
|
-
* Pre-hydrated SSR metadata from a Relay fragment.
|
|
117
|
-
* When provided and `fg('platform_media_ssr_data_seed')` is on, the card seeds
|
|
118
|
-
* `useFileState` with this data and skips the `items()` API call for files
|
|
119
|
-
* whose `processingStatus` is `succeeded`.
|
|
120
|
-
* @see https://product-fabric.atlassian.net/browse/BMPT-7914
|
|
121
|
-
*/
|
|
122
|
-
readonly ssrFileState?: FileState;
|
|
123
|
-
/** General Error handling include status errors and display errors*/
|
|
124
|
-
readonly onError?: (reason: MediaFilePreviewErrorPrimaryReason | MediaCardErrorPrimaryReason) => void;
|
|
125
|
-
/** Extensions for the media viewer (e.g. comment button in header). */
|
|
126
|
-
readonly mediaViewerExtensions?: MediaViewerExtensions;
|
|
127
|
-
}
|
|
128
|
-
export interface CardState {
|
|
129
|
-
status: CardStatus;
|
|
130
|
-
isCardVisible: boolean;
|
|
131
|
-
shouldAutoplay?: boolean;
|
|
132
|
-
isPlayingFile: boolean;
|
|
133
|
-
mediaViewerSelectedItem?: Identifier;
|
|
134
|
-
fileState?: FileState;
|
|
135
|
-
progress?: number;
|
|
136
|
-
cardPreview?: CardPreview;
|
|
137
|
-
error?: MediaCardError;
|
|
138
|
-
cardRef: HTMLDivElement | null;
|
|
139
|
-
isBannedLocalPreview: boolean;
|
|
140
|
-
previewDidRender: boolean;
|
|
141
|
-
wasResolvedUpfrontPreview: boolean;
|
|
142
|
-
shouldUpdateStateForIdentifier?: boolean;
|
|
143
|
-
}
|