@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,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
export type LoadingBarProps = {
|
|
7
|
-
animationDisabled?: boolean;
|
|
8
|
-
testId?: string;
|
|
9
|
-
interactionName?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const LoadingBar: ({ animationDisabled, testId, interactionName, }: LoadingBarProps) => React.JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
|
|
3
|
-
declare const _default_1: React.FC<WithIntlProps<{
|
|
4
|
-
fileName: string;
|
|
5
|
-
innerRef: React.Ref<HTMLButtonElement>;
|
|
6
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement> & WrappedComponentProps>> & {
|
|
7
|
-
WrappedComponent: React.ComponentType<{
|
|
8
|
-
fileName: string;
|
|
9
|
-
innerRef: React.Ref<HTMLButtonElement>;
|
|
10
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement> & WrappedComponentProps>;
|
|
11
|
-
};
|
|
12
|
-
export default _default_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PlayButtonBackground: () => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PlayButtonWrapper: (props: any) => JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
-
export declare const playButtonClassName = "media-card-play-button";
|
|
3
|
-
export declare const bkgClassName = "play-icon-background";
|
|
4
|
-
export declare const fixedPlayButtonStyles: '\n .play-icon-background {\n width: 56px;\n height: 56px;\n }\n';
|
|
5
|
-
export declare const playButtonWrapperStyles: SerializedStyles;
|
|
6
|
-
export declare const backgroundStyles: SerializedStyles;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Breakpoint } from '../common';
|
|
3
|
-
export type ProgressBarProps = {
|
|
4
|
-
progress?: number;
|
|
5
|
-
breakpoint?: Breakpoint;
|
|
6
|
-
positionBottom?: boolean;
|
|
7
|
-
showOnTop?: boolean;
|
|
8
|
-
ariaLabel?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const getNormalizedProgress: (progress?: number) => number;
|
|
11
|
-
export declare const ProgressBar: ({ progress, breakpoint, positionBottom, showOnTop, ariaLabel, }: ProgressBarProps) => React.JSX.Element;
|
|
@@ -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;
|