@atlaskit/media-card 74.2.0 → 74.3.1
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 +20 -0
- package/dist/cjs/card/card.js +4 -4
- package/dist/cjs/card/cardImageView/cardOverlay/index.js +3 -1
- package/dist/cjs/card/cardImageView/cardOverlay/styles.js +8 -6
- package/dist/cjs/card/cardImageView/fileCardImageView.js +3 -1
- package/dist/cjs/card/cardImageView/styles.js +11 -7
- package/dist/cjs/card/getCardPreview/helpers.js +2 -2
- package/dist/cjs/card/getCardPreview/index.js +5 -5
- package/dist/cjs/card/styles/index.js +3 -1
- package/dist/cjs/card/ui/blanket/styles.js +3 -1
- package/dist/cjs/card/ui/iconMessage/styles.js +3 -1
- package/dist/cjs/card/ui/loadingRateLimited/styles.js +3 -1
- package/dist/cjs/card/ui/newFileExperience/styles.js +3 -1
- package/dist/cjs/card/ui/playButton/styles.js +4 -2
- package/dist/cjs/card/ui/progressBar/styles.js +5 -1
- package/dist/cjs/card/ui/styles.js +3 -1
- package/dist/cjs/card/ui/tickBox/styles.js +4 -2
- package/dist/cjs/card/ui/titleBox/failedTitleBox.js +3 -1
- package/dist/cjs/card/ui/titleBox/styles.js +3 -1
- package/dist/cjs/utils/cardActions/styles.js +6 -2
- package/dist/cjs/utils/errorIcon/styles.js +3 -1
- package/dist/cjs/utils/fileIcon/index.js +1 -1
- package/dist/cjs/utils/lightCards/styles.js +6 -4
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/card/card.js +4 -4
- package/dist/es2019/card/cardImageView/cardOverlay/index.js +2 -1
- package/dist/es2019/card/cardImageView/cardOverlay/styles.js +24 -55
- package/dist/es2019/card/cardImageView/fileCardImageView.js +3 -3
- package/dist/es2019/card/cardImageView/styles.js +10 -7
- package/dist/es2019/card/getCardPreview/helpers.js +2 -2
- package/dist/es2019/card/getCardPreview/index.js +4 -4
- package/dist/es2019/card/styles/index.js +2 -1
- package/dist/es2019/card/ui/blanket/styles.js +2 -1
- package/dist/es2019/card/ui/iconMessage/styles.js +2 -1
- package/dist/es2019/card/ui/loadingRateLimited/styles.js +2 -1
- package/dist/es2019/card/ui/newFileExperience/styles.js +9 -8
- package/dist/es2019/card/ui/playButton/styles.js +3 -2
- package/dist/es2019/card/ui/progressBar/styles.js +5 -2
- package/dist/es2019/card/ui/styles.js +2 -1
- package/dist/es2019/card/ui/tickBox/styles.js +5 -4
- package/dist/es2019/card/ui/titleBox/failedTitleBox.js +2 -1
- package/dist/es2019/card/ui/titleBox/styles.js +2 -1
- package/dist/es2019/utils/cardActions/styles.js +6 -5
- package/dist/es2019/utils/errorIcon/styles.js +2 -1
- package/dist/es2019/utils/fileIcon/index.js +1 -1
- package/dist/es2019/utils/lightCards/styles.js +6 -6
- package/dist/es2019/utils/progressBar/styles.js +1 -0
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/card/card.js +4 -4
- package/dist/esm/card/cardImageView/cardOverlay/index.js +2 -1
- package/dist/esm/card/cardImageView/cardOverlay/styles.js +8 -7
- package/dist/esm/card/cardImageView/fileCardImageView.js +3 -3
- package/dist/esm/card/cardImageView/styles.js +10 -7
- package/dist/esm/card/getCardPreview/helpers.js +2 -2
- package/dist/esm/card/getCardPreview/index.js +5 -5
- package/dist/esm/card/styles/index.js +2 -1
- package/dist/esm/card/ui/blanket/styles.js +2 -1
- package/dist/esm/card/ui/iconMessage/styles.js +2 -1
- package/dist/esm/card/ui/loadingRateLimited/styles.js +2 -1
- package/dist/esm/card/ui/newFileExperience/styles.js +2 -1
- package/dist/esm/card/ui/playButton/styles.js +3 -2
- package/dist/esm/card/ui/progressBar/styles.js +5 -2
- package/dist/esm/card/ui/styles.js +2 -1
- package/dist/esm/card/ui/tickBox/styles.js +3 -2
- package/dist/esm/card/ui/titleBox/failedTitleBox.js +2 -1
- package/dist/esm/card/ui/titleBox/styles.js +2 -1
- package/dist/esm/utils/cardActions/styles.js +4 -2
- package/dist/esm/utils/errorIcon/styles.js +2 -1
- package/dist/esm/utils/fileIcon/index.js +1 -1
- package/dist/esm/utils/lightCards/styles.js +6 -6
- package/dist/esm/utils/progressBar/styles.js +1 -0
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/card/getCardPreview/helpers.d.ts +2 -1
- package/dist/types/card/getCardPreview/index.d.ts +4 -4
- package/dist/types/card/styles/index.d.ts +1 -1
- package/example-helpers/styles.ts +10 -6
- package/package.json +13 -15
- package/report.api.md +44 -39
- package/dist/cjs/utils/mediaTypeIcon/iconWrapper.js +0 -20
- package/dist/cjs/utils/mediaTypeIcon/index.js +0 -81
- package/dist/cjs/utils/mediaTypeIcon/styles.js +0 -37
- package/dist/cjs/utils/mediaTypeIcon/types.js +0 -5
- package/dist/es2019/utils/mediaTypeIcon/iconWrapper.js +0 -9
- package/dist/es2019/utils/mediaTypeIcon/index.js +0 -35
- package/dist/es2019/utils/mediaTypeIcon/styles.js +0 -22
- package/dist/es2019/utils/mediaTypeIcon/types.js +0 -1
- package/dist/esm/utils/mediaTypeIcon/iconWrapper.js +0 -9
- package/dist/esm/utils/mediaTypeIcon/index.js +0 -59
- package/dist/esm/utils/mediaTypeIcon/styles.js +0 -24
- package/dist/esm/utils/mediaTypeIcon/types.js +0 -1
- package/dist/types/utils/mediaTypeIcon/iconWrapper.d.ts +0 -4
- package/dist/types/utils/mediaTypeIcon/index.d.ts +0 -10
- package/dist/types/utils/mediaTypeIcon/styles.d.ts +0 -2
- package/dist/types/utils/mediaTypeIcon/types.d.ts +0 -6
- package/dist/types-ts4.0/card/actions.d.ts +0 -9
- package/dist/types-ts4.0/card/card.d.ts +0 -60
- package/dist/types-ts4.0/card/cardAnalytics.d.ts +0 -9
- package/dist/types-ts4.0/card/cardConstants.d.ts +0 -1
- package/dist/types-ts4.0/card/cardImageView/cardImageViewWrapper.d.ts +0 -6
- package/dist/types-ts4.0/card/cardImageView/cardOverlay/cardOverlayComponents.d.ts +0 -8
- package/dist/types-ts4.0/card/cardImageView/cardOverlay/index.d.ts +0 -39
- package/dist/types-ts4.0/card/cardImageView/cardOverlay/styles.d.ts +0 -26
- package/dist/types-ts4.0/card/cardImageView/cardViewWrapper.d.ts +0 -4
- package/dist/types-ts4.0/card/cardImageView/classnames.d.ts +0 -2
- package/dist/types-ts4.0/card/cardImageView/fileCardImageView.d.ts +0 -49
- package/dist/types-ts4.0/card/cardImageView/index.d.ts +0 -2
- package/dist/types-ts4.0/card/cardImageView/styles.d.ts +0 -24
- package/dist/types-ts4.0/card/cardLoader.d.ts +0 -6
- package/dist/types-ts4.0/card/cardState.d.ts +0 -5
- package/dist/types-ts4.0/card/cardView.d.ts +0 -80
- package/dist/types-ts4.0/card/getCardPreview/cache.d.ts +0 -19
- package/dist/types-ts4.0/card/getCardPreview/filePreviewStatus.d.ts +0 -5
- package/dist/types-ts4.0/card/getCardPreview/helpers.d.ts +0 -9
- package/dist/types-ts4.0/card/getCardPreview/imageRefetchingAnalytics.d.ts +0 -10
- package/dist/types-ts4.0/card/getCardPreview/index.d.ts +0 -58
- package/dist/types-ts4.0/card/getCardStatus.d.ts +0 -4
- package/dist/types-ts4.0/card/index.d.ts +0 -1
- package/dist/types-ts4.0/card/inlinePlayer.d.ts +0 -52
- package/dist/types-ts4.0/card/inlinePlayerLazy.d.ts +0 -2
- package/dist/types-ts4.0/card/inlinePlayerWrapper.d.ts +0 -4
- package/dist/types-ts4.0/card/styles/animations.d.ts +0 -1
- package/dist/types-ts4.0/card/styles/config.d.ts +0 -1
- package/dist/types-ts4.0/card/styles/easing.d.ts +0 -2
- package/dist/types-ts4.0/card/styles/getSelectedBorderStyle.d.ts +0 -3
- package/dist/types-ts4.0/card/styles/index.d.ts +0 -9
- package/dist/types-ts4.0/card/styles/mixins.d.ts +0 -21
- package/dist/types-ts4.0/card/styles/styles.d.ts +0 -10
- package/dist/types-ts4.0/card/types.d.ts +0 -24
- package/dist/types-ts4.0/card/ui/actionsBar/actionsBar.d.ts +0 -5
- package/dist/types-ts4.0/card/ui/actionsBar/actionsBarWrapper.d.ts +0 -4
- package/dist/types-ts4.0/card/ui/actionsBar/styles.d.ts +0 -6
- package/dist/types-ts4.0/card/ui/actionsBar/types.d.ts +0 -10
- package/dist/types-ts4.0/card/ui/blanket/blanket.d.ts +0 -6
- package/dist/types-ts4.0/card/ui/blanket/styles.d.ts +0 -6
- package/dist/types-ts4.0/card/ui/common.d.ts +0 -23
- package/dist/types-ts4.0/card/ui/iconMessage/iconMessageWrapper.d.ts +0 -4
- package/dist/types-ts4.0/card/ui/iconMessage/index.d.ts +0 -8
- package/dist/types-ts4.0/card/ui/iconMessage/styles.d.ts +0 -5
- package/dist/types-ts4.0/card/ui/iconMessage/types.d.ts +0 -19
- package/dist/types-ts4.0/card/ui/iconWrapper/iconWrapper.d.ts +0 -4
- package/dist/types-ts4.0/card/ui/iconWrapper/styles.d.ts +0 -7
- package/dist/types-ts4.0/card/ui/iconWrapper/types.d.ts +0 -6
- package/dist/types-ts4.0/card/ui/imageRenderer/imageRenderer.d.ts +0 -15
- package/dist/types-ts4.0/card/ui/loadingRateLimited/styles.d.ts +0 -13
- package/dist/types-ts4.0/card/ui/newFileExperience/newFileExperienceWrapper.d.ts +0 -4
- package/dist/types-ts4.0/card/ui/newFileExperience/styles.d.ts +0 -5
- package/dist/types-ts4.0/card/ui/newFileExperience/types.d.ts +0 -23
- package/dist/types-ts4.0/card/ui/playButton/playButton.d.ts +0 -2
- package/dist/types-ts4.0/card/ui/playButton/playButtonBackground.d.ts +0 -3
- package/dist/types-ts4.0/card/ui/playButton/playButtonWrapper.d.ts +0 -3
- package/dist/types-ts4.0/card/ui/playButton/styles.d.ts +0 -5
- package/dist/types-ts4.0/card/ui/progressBar/progressBar.d.ts +0 -10
- package/dist/types-ts4.0/card/ui/progressBar/styledBar.d.ts +0 -4
- package/dist/types-ts4.0/card/ui/progressBar/styles.d.ts +0 -7
- package/dist/types-ts4.0/card/ui/progressBar/types.d.ts +0 -7
- package/dist/types-ts4.0/card/ui/styles.d.ts +0 -11
- package/dist/types-ts4.0/card/ui/tickBox/styles.d.ts +0 -7
- package/dist/types-ts4.0/card/ui/tickBox/tickBox.d.ts +0 -3
- package/dist/types-ts4.0/card/ui/tickBox/tickBoxWrapper.d.ts +0 -4
- package/dist/types-ts4.0/card/ui/tickBox/types.d.ts +0 -4
- package/dist/types-ts4.0/card/ui/titleBox/failedTitleBox.d.ts +0 -3
- package/dist/types-ts4.0/card/ui/titleBox/styles.d.ts +0 -15
- package/dist/types-ts4.0/card/ui/titleBox/titleBox.d.ts +0 -4
- package/dist/types-ts4.0/card/ui/titleBox/titleBoxComponents.d.ts +0 -8
- package/dist/types-ts4.0/card/ui/titleBox/types.d.ts +0 -32
- package/dist/types-ts4.0/classnames.d.ts +0 -5
- package/dist/types-ts4.0/errors.d.ts +0 -41
- package/dist/types-ts4.0/index.d.ts +0 -15
- package/dist/types-ts4.0/inline/index.d.ts +0 -1
- package/dist/types-ts4.0/inline/loader.d.ts +0 -25
- package/dist/types-ts4.0/inline/mediaInlineCard.d.ts +0 -14
- package/dist/types-ts4.0/types.d.ts +0 -96
- package/dist/types-ts4.0/utils/analytics.d.ts +0 -77
- package/dist/types-ts4.0/utils/breakpoint.d.ts +0 -11
- package/dist/types-ts4.0/utils/cardActions/cardActionButton.d.ts +0 -3
- package/dist/types-ts4.0/utils/cardActions/cardActionIconButton.d.ts +0 -12
- package/dist/types-ts4.0/utils/cardActions/cardActionsDropdownMenu.d.ts +0 -14
- package/dist/types-ts4.0/utils/cardActions/cardActionsView.d.ts +0 -16
- package/dist/types-ts4.0/utils/cardActions/index.d.ts +0 -7
- package/dist/types-ts4.0/utils/cardActions/styles.d.ts +0 -18
- package/dist/types-ts4.0/utils/cardDimensions.d.ts +0 -49
- package/dist/types-ts4.0/utils/containsPixelUnit.d.ts +0 -1
- package/dist/types-ts4.0/utils/dimensionComparer.d.ts +0 -3
- package/dist/types-ts4.0/utils/document.d.ts +0 -2
- package/dist/types-ts4.0/utils/errorIcon/index.d.ts +0 -12
- package/dist/types-ts4.0/utils/errorIcon/styles.d.ts +0 -1
- package/dist/types-ts4.0/utils/fileIcon/index.d.ts +0 -12
- package/dist/types-ts4.0/utils/fileIcon/styles.d.ts +0 -1
- package/dist/types-ts4.0/utils/generateUniqueId.d.ts +0 -1
- package/dist/types-ts4.0/utils/getCSSUnitValue.d.ts +0 -1
- package/dist/types-ts4.0/utils/getDataURIDimension.d.ts +0 -9
- package/dist/types-ts4.0/utils/getElementDimension.d.ts +0 -2
- package/dist/types-ts4.0/utils/getErrorMessage.d.ts +0 -2
- package/dist/types-ts4.0/utils/getMediaCardCursor.d.ts +0 -6
- package/dist/types-ts4.0/utils/globalScope/getSSRData.d.ts +0 -3
- package/dist/types-ts4.0/utils/globalScope/globalScope.d.ts +0 -21
- package/dist/types-ts4.0/utils/globalScope/index.d.ts +0 -4
- package/dist/types-ts4.0/utils/globalScope/types.d.ts +0 -8
- package/dist/types-ts4.0/utils/index.d.ts +0 -14
- package/dist/types-ts4.0/utils/isRetina.d.ts +0 -1
- package/dist/types-ts4.0/utils/isValidPercentageUnit.d.ts +0 -1
- package/dist/types-ts4.0/utils/lightCards/cardError.d.ts +0 -12
- package/dist/types-ts4.0/utils/lightCards/cardLoading.d.ts +0 -5
- package/dist/types-ts4.0/utils/lightCards/getDimensionsWithDefault.d.ts +0 -2
- package/dist/types-ts4.0/utils/lightCards/lightCardWrappers.d.ts +0 -5
- package/dist/types-ts4.0/utils/lightCards/styles.d.ts +0 -4
- package/dist/types-ts4.0/utils/lightCards/types.d.ts +0 -15
- package/dist/types-ts4.0/utils/media-card-analytics-error-boundary.d.ts +0 -10
- package/dist/types-ts4.0/utils/mediaTypeIcon/iconWrapper.d.ts +0 -4
- package/dist/types-ts4.0/utils/mediaTypeIcon/index.d.ts +0 -10
- package/dist/types-ts4.0/utils/mediaTypeIcon/styles.d.ts +0 -2
- package/dist/types-ts4.0/utils/mediaTypeIcon/types.d.ts +0 -6
- package/dist/types-ts4.0/utils/metadata.d.ts +0 -2
- package/dist/types-ts4.0/utils/objectURLCache.d.ts +0 -11
- package/dist/types-ts4.0/utils/preventClickThrough.d.ts +0 -8
- package/dist/types-ts4.0/utils/printScript.d.ts +0 -2
- package/dist/types-ts4.0/utils/progressBar/index.d.ts +0 -9
- package/dist/types-ts4.0/utils/progressBar/styles.d.ts +0 -1
- package/dist/types-ts4.0/utils/resizeModeToMediaImageProps.d.ts +0 -5
- package/dist/types-ts4.0/utils/shouldDisplayImageThumbnail.d.ts +0 -3
- package/dist/types-ts4.0/utils/ufoExperiences.d.ts +0 -7
- package/dist/types-ts4.0/utils/videoSnapshot.d.ts +0 -1
- package/dist/types-ts4.0/utils/viewportDetector.d.ts +0 -6
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { MouseEvent, ReactElement, RefObject } from 'react';
|
|
2
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { CardDimensions } from '../types';
|
|
4
|
-
import { BreakpointSizeValue } from '../utils/breakpoint';
|
|
5
|
-
export interface WrapperProps {
|
|
6
|
-
testId?: string;
|
|
7
|
-
shouldUsePointerCursor?: boolean;
|
|
8
|
-
dimensions?: CardDimensions;
|
|
9
|
-
breakpointSize?: BreakpointSizeValue;
|
|
10
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
11
|
-
onMouseEnter?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
12
|
-
innerRef?: RefObject<HTMLDivElement>;
|
|
13
|
-
children?: JSX.Element;
|
|
14
|
-
}
|
|
15
|
-
export declare type InlinePlayerWrapperProps = {
|
|
16
|
-
testId?: string;
|
|
17
|
-
dimensions?: CardDimensions;
|
|
18
|
-
selected: {
|
|
19
|
-
selected?: boolean | undefined;
|
|
20
|
-
};
|
|
21
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
22
|
-
innerRef?: RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | undefined;
|
|
23
|
-
children?: JSX.Element[] | ReactElement<any, any> | null | any;
|
|
24
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const actionsBarClassName = "media-card-actions-bar";
|
|
2
|
-
export declare const fixedActionBarStyles = "opacity: 1;";
|
|
3
|
-
export declare const wrapperStyles: {
|
|
4
|
-
(isFixed?: boolean | undefined): import("@emotion/react").SerializedStyles;
|
|
5
|
-
displayName: string;
|
|
6
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { CardAction } from '../../actions';
|
|
3
|
-
export interface ActionsBarProps {
|
|
4
|
-
actions: Array<CardAction>;
|
|
5
|
-
isFixed?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare type ActionBarWrapperProps = {
|
|
8
|
-
isFixed?: boolean;
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
};
|
|
@@ -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 { InternalIconMessageProps, 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 PreviewCurrentlyUnavailable: React.FC;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
3
|
-
export declare type InternalIconMessageProps = {
|
|
4
|
-
messageDescriptor: MessageDescriptor;
|
|
5
|
-
animated?: boolean;
|
|
6
|
-
reducedFont?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare type CreatingPreviewProps = {
|
|
9
|
-
disableAnimation?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare type StyledTextProps = {
|
|
12
|
-
animated?: boolean;
|
|
13
|
-
reducedFont?: boolean;
|
|
14
|
-
};
|
|
15
|
-
export declare type IconMessageWrapperProps = {
|
|
16
|
-
animated?: boolean;
|
|
17
|
-
reducedFont?: boolean;
|
|
18
|
-
children?: ReactNode;
|
|
19
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Breakpoint } from '../common';
|
|
2
|
-
import { IconWrapperProps } from './types';
|
|
3
|
-
export declare function titleBoxHeight(hasTitleBox: boolean, breakpoint: Breakpoint): string;
|
|
4
|
-
export declare const iconWrapperStyles: {
|
|
5
|
-
({ hasTitleBox, breakpoint, }: IconWrapperProps): import("@emotion/react").SerializedStyles;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MediaType, ImageResizeMode } from '@atlaskit/media-client';
|
|
3
|
-
import { CardPreview } from '../../../types';
|
|
4
|
-
export declare type ImageRendererProps = {
|
|
5
|
-
readonly cardPreview: CardPreview;
|
|
6
|
-
readonly mediaType: MediaType;
|
|
7
|
-
readonly alt?: string;
|
|
8
|
-
readonly resizeMode?: ImageResizeMode;
|
|
9
|
-
readonly onDisplayImage?: () => void;
|
|
10
|
-
readonly onImageError?: (cardPreview: CardPreview) => void;
|
|
11
|
-
readonly onImageLoad?: (cardPreview: CardPreview) => void;
|
|
12
|
-
readonly nativeLazyLoad?: boolean;
|
|
13
|
-
readonly forceSyncDisplay?: boolean;
|
|
14
|
-
};
|
|
15
|
-
export declare const ImageRenderer: React.FC<ImageRendererProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Breakpoint } from '../common';
|
|
2
|
-
export declare const loadingRateLimitedContainerStyles: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const warningIconWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare type StyledTextProps = {
|
|
5
|
-
breakpoint: Breakpoint;
|
|
6
|
-
positionBottom: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const loadingRateLimitedTextWrapperStyles: {
|
|
9
|
-
({ breakpoint, positionBottom, }: StyledTextProps): import("@emotion/react").SerializedStyles;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const couldntLoadWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
13
|
-
export declare const errorWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { NewFileExperienceWrapperProps } from './types';
|
|
2
|
-
export declare const newFileExperienceWrapperStyles: {
|
|
3
|
-
({ breakpoint, dimensions, appearance, disableOverlay, displayBackground, selected, isPlayButtonClickable, isTickBoxSelectable, shouldDisplayTooltip, mediaCardCursor, }: NewFileExperienceWrapperProps): import("@emotion/react").SerializedStyles;
|
|
4
|
-
displayName: string;
|
|
5
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { MouseEvent, RefObject } from 'react';
|
|
2
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { CardDimensions, CardAppearance } from '../../../types';
|
|
4
|
-
import { Breakpoint } from '../common';
|
|
5
|
-
import { MediaCardCursor } from '../../../types';
|
|
6
|
-
export interface NewFileExperienceWrapperProps {
|
|
7
|
-
testId?: string;
|
|
8
|
-
breakpoint: Breakpoint;
|
|
9
|
-
mediaCardCursor?: MediaCardCursor;
|
|
10
|
-
dimensions?: CardDimensions;
|
|
11
|
-
appearance?: CardAppearance;
|
|
12
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
13
|
-
onMouseEnter?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
14
|
-
mediaType?: string;
|
|
15
|
-
disableOverlay: boolean;
|
|
16
|
-
displayBackground: boolean;
|
|
17
|
-
selected: boolean;
|
|
18
|
-
isPlayButtonClickable: boolean;
|
|
19
|
-
isTickBoxSelectable: boolean;
|
|
20
|
-
shouldDisplayTooltip: boolean;
|
|
21
|
-
innerRef?: RefObject<HTMLDivElement>;
|
|
22
|
-
children?: JSX.Element;
|
|
23
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const playButtonClassName = "media-card-play-button";
|
|
2
|
-
export declare const bkgClassName = "play-icon-background";
|
|
3
|
-
export declare const fixedPlayButtonStyles: string;
|
|
4
|
-
export declare const playButtonWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const backgroundStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Breakpoint } from '../common';
|
|
3
|
-
export declare type ProgressBarProps = {
|
|
4
|
-
progress?: number;
|
|
5
|
-
breakpoint?: Breakpoint;
|
|
6
|
-
positionBottom?: boolean;
|
|
7
|
-
showOnTop?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const getNormalizedProgress: (progress?: number | undefined) => number;
|
|
10
|
-
export declare const ProgressBar: ({ progress, breakpoint, positionBottom, showOnTop, }: ProgressBarProps) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Breakpoint } from '../common';
|
|
2
|
-
import { StyledBarProps } from './types';
|
|
3
|
-
export declare function generateResponsiveStyles(breakpoint: Breakpoint, positionBottom: boolean, showOnTop: boolean, multiplier?: number): string;
|
|
4
|
-
export declare const styledBarStyles: {
|
|
5
|
-
(props: StyledBarProps): import("@emotion/react").SerializedStyles;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CardDimensions, CardAppearance } from '../../types';
|
|
2
|
-
import { Breakpoint } from './common';
|
|
3
|
-
import { 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 | undefined, appearance?: CardAppearance | undefined) => 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) => string;
|
|
10
|
-
export declare const getSelectableTickBoxStyles: (isTickBoxSelectable: boolean) => string;
|
|
11
|
-
export declare const cardImageContainerStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const tickBoxClassName = "media-card-tickbox";
|
|
2
|
-
export declare const tickboxFixedStyles: string;
|
|
3
|
-
export declare const getSelectedStyles: (selected?: boolean | undefined) => string;
|
|
4
|
-
export declare const wrapperStyles: {
|
|
5
|
-
(selected?: boolean | undefined): import("@emotion/react").SerializedStyles;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TitleBoxFooterProps, TitleBoxHeaderProps, TitleBoxWrapperProps } from './types';
|
|
2
|
-
export declare const titleBoxWrapperStyles: {
|
|
3
|
-
({ breakpoint, titleBoxBgColor, }: TitleBoxWrapperProps): import("@emotion/react").SerializedStyles;
|
|
4
|
-
displayName: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const titleBoxHeaderStyles: {
|
|
7
|
-
({ hasIconOverlap, }: TitleBoxHeaderProps): import("@emotion/react").SerializedStyles;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const titleBoxFooterStyles: {
|
|
11
|
-
({ hasIconOverlap, }: TitleBoxFooterProps): import("@emotion/react").SerializedStyles;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const titleBoxIconStyles: import("@emotion/react").SerializedStyles;
|
|
15
|
-
export declare const errorMessageWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormattedDateProps, TitleBoxProps } from './types';
|
|
3
|
-
export declare const FormattedDate: React.ComponentType<FormattedDateProps>;
|
|
4
|
-
export declare const TitleBox: ({ name, createdAt, breakpoint, titleBoxBgColor, titleBoxIcon, }: TitleBoxProps) => JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { TitleBoxFooterProps, TitleBoxHeaderProps, TitleBoxWrapperProps } from './types';
|
|
4
|
-
export declare const TitleBoxWrapper: (props: TitleBoxWrapperProps) => jsx.JSX.Element;
|
|
5
|
-
export declare const TitleBoxHeader: (props: TitleBoxHeaderProps) => jsx.JSX.Element;
|
|
6
|
-
export declare const TitleBoxFooter: (props: TitleBoxFooterProps) => jsx.JSX.Element;
|
|
7
|
-
export declare const TitleBoxIcon: (props: any) => jsx.JSX.Element;
|
|
8
|
-
export declare const ErrorMessageWrapper: (props: any) => jsx.JSX.Element;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
3
|
-
import { Breakpoint } from '../common';
|
|
4
|
-
import { TitleBoxIcon as TitleBoxIconType } from '../../../types';
|
|
5
|
-
export declare type TitleBoxProps = {
|
|
6
|
-
name: string;
|
|
7
|
-
breakpoint: Breakpoint;
|
|
8
|
-
createdAt?: number;
|
|
9
|
-
titleBoxBgColor?: string;
|
|
10
|
-
titleBoxIcon?: TitleBoxIconType;
|
|
11
|
-
};
|
|
12
|
-
export declare type FormattedDateProps = {
|
|
13
|
-
timestamp: number;
|
|
14
|
-
};
|
|
15
|
-
export declare type TitleBoxWrapperProps = {
|
|
16
|
-
breakpoint: Breakpoint;
|
|
17
|
-
titleBoxBgColor?: string;
|
|
18
|
-
children?: JSX.Element | JSX.Element[] | any;
|
|
19
|
-
};
|
|
20
|
-
export declare type TitleBoxFooterProps = {
|
|
21
|
-
hasIconOverlap: boolean;
|
|
22
|
-
children?: JSX.Element;
|
|
23
|
-
};
|
|
24
|
-
export declare type TitleBoxHeaderProps = {
|
|
25
|
-
hasIconOverlap: boolean;
|
|
26
|
-
children?: JSX.Element;
|
|
27
|
-
};
|
|
28
|
-
export declare type OnRetryFunction = () => void;
|
|
29
|
-
export declare type FailedTitleBoxProps = {
|
|
30
|
-
breakpoint: Breakpoint;
|
|
31
|
-
customMessage?: MessageDescriptor;
|
|
32
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { 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 declare type MediaCardErrorPrimaryReason = 'upload' | 'metadata-fetch' | 'error-file-state' | RemotePreviewPrimaryReason | LocalPreviewPrimaryReason | ImageLoadPrimaryReason | SsrPreviewPrimaryReason | 'missing-error-data' | 'preview-fetch';
|
|
7
|
-
export declare type ImageLoadPrimaryReason = 'cache-remote-uri' | 'cache-local-uri' | 'local-uri' | 'remote-uri' | 'external-uri' | 'unknown-uri';
|
|
8
|
-
export declare type RemotePreviewPrimaryReason = 'remote-preview-fetch' | 'remote-preview-not-ready';
|
|
9
|
-
export declare type LocalPreviewPrimaryReason = 'local-preview-get' | 'local-preview-unsupported' | 'local-preview-rejected' | 'local-preview-image' | 'local-preview-video';
|
|
10
|
-
export declare type SsrPreviewPrimaryReason = 'ssr-client-uri' | 'ssr-client-load' | 'ssr-server-uri' | 'ssr-server-load';
|
|
11
|
-
export declare class MediaCardError extends Error {
|
|
12
|
-
readonly primaryReason: MediaCardErrorPrimaryReason;
|
|
13
|
-
readonly secondaryError?: Error | undefined;
|
|
14
|
-
constructor(primaryReason: MediaCardErrorPrimaryReason, secondaryError?: Error | undefined);
|
|
15
|
-
}
|
|
16
|
-
export declare class LocalPreviewError extends MediaCardError {
|
|
17
|
-
readonly primaryReason: LocalPreviewPrimaryReason;
|
|
18
|
-
readonly secondaryError?: Error | undefined;
|
|
19
|
-
constructor(primaryReason: LocalPreviewPrimaryReason, secondaryError?: Error | undefined);
|
|
20
|
-
}
|
|
21
|
-
export declare class RemotePreviewError extends MediaCardError {
|
|
22
|
-
readonly primaryReason: RemotePreviewPrimaryReason;
|
|
23
|
-
readonly secondaryError?: Error | undefined;
|
|
24
|
-
constructor(primaryReason: RemotePreviewPrimaryReason, secondaryError?: Error | undefined);
|
|
25
|
-
}
|
|
26
|
-
export declare class SsrPreviewError extends MediaCardError {
|
|
27
|
-
readonly primaryReason: SsrPreviewPrimaryReason;
|
|
28
|
-
readonly secondaryError?: Error | undefined;
|
|
29
|
-
constructor(primaryReason: SsrPreviewPrimaryReason, secondaryError?: Error | undefined);
|
|
30
|
-
}
|
|
31
|
-
export declare const getImageLoadPrimaryReason: (source?: import("./types").CardPreviewSource | undefined) => ImageLoadPrimaryReason;
|
|
32
|
-
export declare class ImageLoadError extends MediaCardError {
|
|
33
|
-
constructor(source?: CardPreview['source']);
|
|
34
|
-
}
|
|
35
|
-
export declare function isMediaCardError(err: Error): err is MediaCardError;
|
|
36
|
-
export declare const isLocalPreviewError: (err: Error) => err is LocalPreviewError;
|
|
37
|
-
export declare const isRemotePreviewError: (err: Error) => err is LocalPreviewError;
|
|
38
|
-
export declare const isUnsupportedLocalPreviewError: (err: Error) => boolean;
|
|
39
|
-
export declare function isImageLoadError(err: Error): err is ImageLoadError;
|
|
40
|
-
export declare const ensureMediaCardError: (primaryReason: MediaCardErrorPrimaryReason, error: Error) => MediaCardError;
|
|
41
|
-
export declare const isUploadError: (error?: MediaCardError | undefined) => boolean | undefined;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Entry Point: @atlaskit/media-card
|
|
3
|
-
* tsconfig.entry-points.json
|
|
4
|
-
*/
|
|
5
|
-
export type { NumericalCardDimensions } from '@atlaskit/media-common';
|
|
6
|
-
export type { CardAction, CardEventHandler } from './card/actions';
|
|
7
|
-
export type { CardStatus, CardAppearance, CardDimensionValue, CardPreview, TitleBoxIcon, CardEvent, SharedCardProps, CardOnClickCallback, CardProps, CardState, CardDimensions, } from './types';
|
|
8
|
-
export { Card } from './card';
|
|
9
|
-
export { MediaInlineCard } from './inline';
|
|
10
|
-
export { CardLoading } from './utils/lightCards/cardLoading';
|
|
11
|
-
export { CardError } from './utils/lightCards/cardError';
|
|
12
|
-
export { defaultImageCardDimensions } from './utils/cardDimensions';
|
|
13
|
-
export { fileCardImageViewSelector, fileCardImageViewSelectedSelector, } from './card/cardImageView/classnames';
|
|
14
|
-
export { inlinePlayerClassName } from './card/styles/styles';
|
|
15
|
-
export { newFileExperienceClassName } from './card/cardConstants';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as MediaInlineCard } from './loader';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { WithMediaClientConfigProps } from '@atlaskit/media-client';
|
|
3
|
-
import { MediaInlineCardProps } from './mediaInlineCard';
|
|
4
|
-
export declare type MediaInlineCardWithMediaClientConfigProps = WithMediaClientConfigProps<MediaInlineCardProps>;
|
|
5
|
-
declare type MediaInlineCardWithMediaClientConfigComponent = React.ComponentType<MediaInlineCardWithMediaClientConfigProps>;
|
|
6
|
-
declare type ErrorBoundaryComponent = React.ComponentType<{
|
|
7
|
-
data?: {
|
|
8
|
-
[k: string]: any;
|
|
9
|
-
};
|
|
10
|
-
}>;
|
|
11
|
-
export interface MediaInlineCardLoaderState {
|
|
12
|
-
MediaInlineCard?: MediaInlineCardWithMediaClientConfigComponent;
|
|
13
|
-
ErrorBoundary?: ErrorBoundaryComponent;
|
|
14
|
-
}
|
|
15
|
-
export default class MediaInlineCardLoader extends React.PureComponent<MediaInlineCardWithMediaClientConfigProps & MediaInlineCardLoaderState, MediaInlineCardLoaderState> {
|
|
16
|
-
static displayName: string;
|
|
17
|
-
static MediaInlineCard?: MediaInlineCardWithMediaClientConfigComponent;
|
|
18
|
-
static ErrorBoundary?: ErrorBoundaryComponent;
|
|
19
|
-
isMounted: boolean;
|
|
20
|
-
state: MediaInlineCardLoaderState;
|
|
21
|
-
componentDidMount(): Promise<void>;
|
|
22
|
-
componentWillUnmount(): Promise<void>;
|
|
23
|
-
render(): JSX.Element;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import { FileIdentifier, MediaClient } from '@atlaskit/media-client';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { MediaViewerDataSource } from '@atlaskit/media-viewer';
|
|
5
|
-
export interface MediaInlineCardProps {
|
|
6
|
-
identifier: FileIdentifier;
|
|
7
|
-
mediaClient: MediaClient;
|
|
8
|
-
shouldOpenMediaViewer?: boolean;
|
|
9
|
-
isSelected?: boolean;
|
|
10
|
-
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
11
|
-
mediaViewerDataSource?: MediaViewerDataSource;
|
|
12
|
-
}
|
|
13
|
-
export declare const MediaInlineCardInternal: FC<MediaInlineCardProps & WrappedComponentProps>;
|
|
14
|
-
export declare const MediaInlineCard: React.FC<MediaInlineCardProps>;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Entry Point: @atlaskit/media-card/types
|
|
3
|
-
* tsconfig.entry-points.json
|
|
4
|
-
*/
|
|
5
|
-
import { MouseEvent } from 'react';
|
|
6
|
-
import { FileDetails, MediaClient, Identifier, ImageResizeMode, FileState } from '@atlaskit/media-client';
|
|
7
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
8
|
-
import { MediaFeatureFlags, NumericalCardDimensions, SSR } from '@atlaskit/media-common';
|
|
9
|
-
import { CardAction } from './card/actions';
|
|
10
|
-
import { MediaViewerDataSource } from '@atlaskit/media-viewer';
|
|
11
|
-
import { MediaCardError } from './errors';
|
|
12
|
-
export declare type CardStatus = 'uploading' | 'loading' | 'processing' | 'loading-preview' | 'complete' | 'error' | 'failed-processing';
|
|
13
|
-
export declare type FilePreviewStatus = {
|
|
14
|
-
hasFilesize: boolean;
|
|
15
|
-
isPreviewable: boolean;
|
|
16
|
-
hasPreview: boolean;
|
|
17
|
-
isSupportedByBrowser: boolean;
|
|
18
|
-
};
|
|
19
|
-
export declare type FileStateFlags = {
|
|
20
|
-
wasStatusProcessing: boolean;
|
|
21
|
-
wasStatusUploading: boolean;
|
|
22
|
-
};
|
|
23
|
-
export declare type CardAppearance = 'auto' | 'image' | 'square' | 'horizontal';
|
|
24
|
-
export declare type CardDimensionValue = number | string;
|
|
25
|
-
export declare type CardPreviewSource = 'local' | 'remote' | 'ssr-server' | 'ssr-client' | 'ssr-data' | 'cache-local' | 'cache-remote' | 'cache-ssr-client' | 'cache-ssr-server' | 'external';
|
|
26
|
-
export interface CardPreview {
|
|
27
|
-
dataURI: string;
|
|
28
|
-
orientation?: number;
|
|
29
|
-
dimensions?: CardDimensions;
|
|
30
|
-
source: CardPreviewSource;
|
|
31
|
-
}
|
|
32
|
-
export declare enum MediaCardCursor {
|
|
33
|
-
Action = "pointer",
|
|
34
|
-
NotReady = "wait"
|
|
35
|
-
}
|
|
36
|
-
export interface CardDimensions {
|
|
37
|
-
width?: CardDimensionValue;
|
|
38
|
-
height?: CardDimensionValue;
|
|
39
|
-
}
|
|
40
|
-
export declare type TitleBoxIcon = 'LockFilledIcon';
|
|
41
|
-
export interface CardEvent {
|
|
42
|
-
event: MouseEvent<HTMLElement>;
|
|
43
|
-
mediaItemDetails?: FileDetails;
|
|
44
|
-
}
|
|
45
|
-
export interface SharedCardProps {
|
|
46
|
-
readonly disableOverlay?: boolean;
|
|
47
|
-
readonly resizeMode?: ImageResizeMode;
|
|
48
|
-
readonly featureFlags?: MediaFeatureFlags;
|
|
49
|
-
readonly appearance?: CardAppearance;
|
|
50
|
-
readonly dimensions?: CardDimensions;
|
|
51
|
-
readonly originalDimensions?: NumericalCardDimensions;
|
|
52
|
-
readonly actions?: Array<CardAction>;
|
|
53
|
-
readonly selectable?: boolean;
|
|
54
|
-
readonly selected?: boolean;
|
|
55
|
-
readonly alt?: string;
|
|
56
|
-
readonly testId?: string;
|
|
57
|
-
readonly titleBoxBgColor?: string;
|
|
58
|
-
readonly titleBoxIcon?: TitleBoxIcon;
|
|
59
|
-
}
|
|
60
|
-
export interface CardOnClickCallback {
|
|
61
|
-
(result: CardEvent, analyticsEvent?: UIAnalyticsEvent): void;
|
|
62
|
-
}
|
|
63
|
-
export interface CardEventProps {
|
|
64
|
-
readonly onClick?: CardOnClickCallback;
|
|
65
|
-
readonly onMouseEnter?: (result: CardEvent) => void;
|
|
66
|
-
/** Callback function to be called when video enters and exit fullscreen.
|
|
67
|
-
* `fullscreen = true` indicates video enters fullscreen
|
|
68
|
-
* `fullscreen = false` indicates video exits fullscreen
|
|
69
|
-
*/
|
|
70
|
-
readonly onFullscreenChange?: (fullscreen: boolean) => void;
|
|
71
|
-
}
|
|
72
|
-
export interface CardProps extends SharedCardProps, CardEventProps {
|
|
73
|
-
readonly mediaClient: MediaClient;
|
|
74
|
-
readonly identifier: Identifier;
|
|
75
|
-
readonly isLazy?: boolean;
|
|
76
|
-
readonly useInlinePlayer?: boolean;
|
|
77
|
-
readonly shouldOpenMediaViewer?: boolean;
|
|
78
|
-
readonly mediaViewerDataSource?: MediaViewerDataSource;
|
|
79
|
-
readonly contextId?: string;
|
|
80
|
-
readonly shouldEnableDownloadButton?: boolean;
|
|
81
|
-
readonly ssr?: SSR;
|
|
82
|
-
}
|
|
83
|
-
export interface CardState {
|
|
84
|
-
status: CardStatus;
|
|
85
|
-
isCardVisible: boolean;
|
|
86
|
-
shouldAutoplay?: boolean;
|
|
87
|
-
isPlayingFile: boolean;
|
|
88
|
-
mediaViewerSelectedItem?: Identifier;
|
|
89
|
-
fileState?: FileState;
|
|
90
|
-
progress?: number;
|
|
91
|
-
cardPreview?: CardPreview;
|
|
92
|
-
error?: MediaCardError;
|
|
93
|
-
cardRef: HTMLDivElement | null;
|
|
94
|
-
isBannedLocalPreview: boolean;
|
|
95
|
-
previewDidRender: boolean;
|
|
96
|
-
}
|