@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.
Files changed (179) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/actions/package.json +1 -8
  3. package/card/classnames/package.json +1 -8
  4. package/cardConstants/package.json +1 -8
  5. package/cardDimensions/package.json +1 -8
  6. package/cardError/package.json +1 -8
  7. package/cardLoader/package.json +1 -8
  8. package/cardLoading/package.json +1 -8
  9. package/cardPlaceholder/package.json +1 -8
  10. package/cardSync/package.json +1 -8
  11. package/classnames/package.json +1 -8
  12. package/dateOverrideContext/package.json +1 -8
  13. package/dist/cjs/card/card.js +1 -1
  14. package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
  15. package/dist/cjs/inline/loader.js +1 -1
  16. package/dist/cjs/utils/ufoExperiences.js +1 -1
  17. package/dist/es2019/card/card.js +1 -1
  18. package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
  19. package/dist/es2019/inline/loader.js +1 -1
  20. package/dist/es2019/utils/ufoExperiences.js +1 -1
  21. package/dist/esm/card/card.js +1 -1
  22. package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
  23. package/dist/esm/inline/loader.js +1 -1
  24. package/dist/esm/utils/ufoExperiences.js +1 -1
  25. package/errors/package.json +1 -8
  26. package/inlinePlayerWrapperStyles/package.json +1 -8
  27. package/loader/package.json +1 -8
  28. package/mediaInlineCardAnalytics/package.json +1 -8
  29. package/package.json +2 -2
  30. package/types/package.json +1 -8
  31. package/dist/types-ts4.5/card/actions.d.ts +0 -15
  32. package/dist/types-ts4.5/card/ai-generating-overlay/AIGeneratingOverlay.d.ts +0 -12
  33. package/dist/types-ts4.5/card/ai-generating-overlay/index.d.ts +0 -2
  34. package/dist/types-ts4.5/card/card.d.ts +0 -7
  35. package/dist/types-ts4.5/card/cardAnalytics.d.ts +0 -10
  36. package/dist/types-ts4.5/card/cardConstants.d.ts +0 -1
  37. package/dist/types-ts4.5/card/cardLoader.d.ts +0 -7
  38. package/dist/types-ts4.5/card/cardSync.d.ts +0 -5
  39. package/dist/types-ts4.5/card/cardView.d.ts +0 -68
  40. package/dist/types-ts4.5/card/cardWithMediaClient.d.ts +0 -3
  41. package/dist/types-ts4.5/card/classnames.d.ts +0 -2
  42. package/dist/types-ts4.5/card/externalImageCard.d.ts +0 -12
  43. package/dist/types-ts4.5/card/fileCard.d.ts +0 -81
  44. package/dist/types-ts4.5/card/getCardStatus.d.ts +0 -4
  45. package/dist/types-ts4.5/card/index.d.ts +0 -2
  46. package/dist/types-ts4.5/card/inlinePlayer.d.ts +0 -24
  47. package/dist/types-ts4.5/card/inlinePlayerLazy.d.ts +0 -3
  48. package/dist/types-ts4.5/card/inlinePlayerWrapper-compiled.d.ts +0 -5
  49. package/dist/types-ts4.5/card/inlinePlayerWrapper.d.ts +0 -3
  50. package/dist/types-ts4.5/card/inlinePlayerWrapperStyles.d.ts +0 -7
  51. package/dist/types-ts4.5/card/media-card-analytics-error-boundary.d.ts +0 -14
  52. package/dist/types-ts4.5/card/performance.d.ts +0 -1
  53. package/dist/types-ts4.5/card/svgView/helpers.d.ts +0 -2
  54. package/dist/types-ts4.5/card/svgView/index.d.ts +0 -1
  55. package/dist/types-ts4.5/card/svgView/svgImage-compiled.d.ts +0 -2
  56. package/dist/types-ts4.5/card/svgView/svgView.d.ts +0 -3
  57. package/dist/types-ts4.5/card/svgView/svgViewV2.d.ts +0 -7
  58. package/dist/types-ts4.5/card/svgView/types.d.ts +0 -12
  59. package/dist/types-ts4.5/card/types.d.ts +0 -20
  60. package/dist/types-ts4.5/card/ui/actionsBar/actionsBar.d.ts +0 -5
  61. package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper-compiled.d.ts +0 -5
  62. package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper.d.ts +0 -3
  63. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionButton-compiled.d.ts +0 -7
  64. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionButton.d.ts +0 -3
  65. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionIconButton.d.ts +0 -15
  66. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.d.ts +0 -12
  67. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsView.d.ts +0 -17
  68. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/index.d.ts +0 -7
  69. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/styles.d.ts +0 -21
  70. package/dist/types-ts4.5/card/ui/actionsBar/styles.d.ts +0 -7
  71. package/dist/types-ts4.5/card/ui/actionsBar/types.d.ts +0 -11
  72. package/dist/types-ts4.5/card/ui/aiBorder/aiBorder.d.ts +0 -3
  73. package/dist/types-ts4.5/card/ui/blanket/blanket-compiled.d.ts +0 -9
  74. package/dist/types-ts4.5/card/ui/blanket/blanket.d.ts +0 -5
  75. package/dist/types-ts4.5/card/ui/blanket/styles.d.ts +0 -7
  76. package/dist/types-ts4.5/card/ui/common.d.ts +0 -23
  77. package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper-compiled.d.ts +0 -2
  78. package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper.d.ts +0 -3
  79. package/dist/types-ts4.5/card/ui/iconMessage/index.d.ts +0 -8
  80. package/dist/types-ts4.5/card/ui/iconMessage/types.d.ts +0 -18
  81. package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper-compiled.d.ts +0 -7
  82. package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper.d.ts +0 -3
  83. package/dist/types-ts4.5/card/ui/iconWrapper/styles.d.ts +0 -8
  84. package/dist/types-ts4.5/card/ui/iconWrapper/types.d.ts +0 -6
  85. package/dist/types-ts4.5/card/ui/imageRenderer/helpers.d.ts +0 -3
  86. package/dist/types-ts4.5/card/ui/imageRenderer/imageRenderer.d.ts +0 -3
  87. package/dist/types-ts4.5/card/ui/imageRenderer/imageRendererV2.d.ts +0 -2
  88. package/dist/types-ts4.5/card/ui/imageRenderer/index.d.ts +0 -3
  89. package/dist/types-ts4.5/card/ui/imageRenderer/resizeModeToMediaImageProps.d.ts +0 -5
  90. package/dist/types-ts4.5/card/ui/imageRenderer/types.d.ts +0 -18
  91. package/dist/types-ts4.5/card/ui/imageRenderer/wrapper.d.ts +0 -4
  92. package/dist/types-ts4.5/card/ui/loadingBar/loadingBar.d.ts +0 -11
  93. package/dist/types-ts4.5/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +0 -12
  94. package/dist/types-ts4.5/card/ui/playButton/playButton.d.ts +0 -2
  95. package/dist/types-ts4.5/card/ui/playButton/playButtonBackground-compiled.d.ts +0 -1
  96. package/dist/types-ts4.5/card/ui/playButton/playButtonBackground.d.ts +0 -6
  97. package/dist/types-ts4.5/card/ui/playButton/playButtonWrapper-compiled.d.ts +0 -1
  98. package/dist/types-ts4.5/card/ui/playButton/playButtonWrapper.d.ts +0 -2
  99. package/dist/types-ts4.5/card/ui/playButton/styles.d.ts +0 -6
  100. package/dist/types-ts4.5/card/ui/progressBar/progressBar.d.ts +0 -11
  101. package/dist/types-ts4.5/card/ui/progressBar/styledBar-compiled.d.ts +0 -13
  102. package/dist/types-ts4.5/card/ui/progressBar/styledBar.d.ts +0 -3
  103. package/dist/types-ts4.5/card/ui/progressBar/styles.d.ts +0 -8
  104. package/dist/types-ts4.5/card/ui/progressBar/types.d.ts +0 -8
  105. package/dist/types-ts4.5/card/ui/styles.d.ts +0 -12
  106. package/dist/types-ts4.5/card/ui/tickBox/styles.d.ts +0 -2
  107. package/dist/types-ts4.5/card/ui/tickBox/tickBox.d.ts +0 -3
  108. package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper-compiled.d.ts +0 -5
  109. package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper.d.ts +0 -6
  110. package/dist/types-ts4.5/card/ui/tickBox/types.d.ts +0 -4
  111. package/dist/types-ts4.5/card/ui/titleBox/failedTitleBox.d.ts +0 -3
  112. package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +0 -24
  113. package/dist/types-ts4.5/card/ui/titleBox/titleBox.d.ts +0 -6
  114. package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents-compiled.d.ts +0 -15
  115. package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents.d.ts +0 -7
  116. package/dist/types-ts4.5/card/ui/titleBox/types.d.ts +0 -34
  117. package/dist/types-ts4.5/card/ui/unhandledErrorCard/contentLoadingErrorMessage.d.ts +0 -6
  118. package/dist/types-ts4.5/card/ui/unhandledErrorCard/index.d.ts +0 -3
  119. package/dist/types-ts4.5/card/ui/unhandledErrorCard/types.d.ts +0 -5
  120. package/dist/types-ts4.5/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.d.ts +0 -9
  121. package/dist/types-ts4.5/card/ui/wrapper/imageContainer-compiled.d.ts +0 -14
  122. package/dist/types-ts4.5/card/ui/wrapper/imageContainer.d.ts +0 -15
  123. package/dist/types-ts4.5/card/ui/wrapper/index.d.ts +0 -2
  124. package/dist/types-ts4.5/card/ui/wrapper/styles.d.ts +0 -6
  125. package/dist/types-ts4.5/card/ui/wrapper/types.d.ts +0 -25
  126. package/dist/types-ts4.5/card/ui/wrapper/wrapper-compiled.d.ts +0 -7
  127. package/dist/types-ts4.5/card/ui/wrapper/wrapper.d.ts +0 -3
  128. package/dist/types-ts4.5/card/useBreakpoint.d.ts +0 -3
  129. package/dist/types-ts4.5/classnames.d.ts +0 -4
  130. package/dist/types-ts4.5/dateOverrideContext.d.ts +0 -7
  131. package/dist/types-ts4.5/errors.d.ts +0 -42
  132. package/dist/types-ts4.5/index.d.ts +0 -17
  133. package/dist/types-ts4.5/inline/index.d.ts +0 -2
  134. package/dist/types-ts4.5/inline/loader.d.ts +0 -26
  135. package/dist/types-ts4.5/inline/mediaInlineAnalyticsErrorBoundary.d.ts +0 -12
  136. package/dist/types-ts4.5/inline/mediaInlineCard.d.ts +0 -31
  137. package/dist/types-ts4.5/inline/mediaInlineCardAnalytics.d.ts +0 -10
  138. package/dist/types-ts4.5/types.d.ts +0 -143
  139. package/dist/types-ts4.5/utils/analytics/analytics.d.ts +0 -159
  140. package/dist/types-ts4.5/utils/analytics/index.d.ts +0 -2
  141. package/dist/types-ts4.5/utils/cardDimensions.d.ts +0 -14
  142. package/dist/types-ts4.5/utils/containsPixelUnit.d.ts +0 -1
  143. package/dist/types-ts4.5/utils/dimensionComparer.d.ts +0 -3
  144. package/dist/types-ts4.5/utils/document.d.ts +0 -2
  145. package/dist/types-ts4.5/utils/generateUniqueId.d.ts +0 -1
  146. package/dist/types-ts4.5/utils/getCSSUnitValue.d.ts +0 -1
  147. package/dist/types-ts4.5/utils/getDataURIDimension.d.ts +0 -26
  148. package/dist/types-ts4.5/utils/getElementDimension.d.ts +0 -2
  149. package/dist/types-ts4.5/utils/getMediaCardCursor.d.ts +0 -6
  150. package/dist/types-ts4.5/utils/globalScope/getSSRData.d.ts +0 -3
  151. package/dist/types-ts4.5/utils/globalScope/globalScope.d.ts +0 -17
  152. package/dist/types-ts4.5/utils/globalScope/index.d.ts +0 -4
  153. package/dist/types-ts4.5/utils/globalScope/types.d.ts +0 -8
  154. package/dist/types-ts4.5/utils/index.d.ts +0 -6
  155. package/dist/types-ts4.5/utils/isNetworkError.d.ts +0 -2
  156. package/dist/types-ts4.5/utils/isRetina.d.ts +0 -1
  157. package/dist/types-ts4.5/utils/isValidPercentageUnit.d.ts +0 -1
  158. package/dist/types-ts4.5/utils/lightCards/cardError.d.ts +0 -7
  159. package/dist/types-ts4.5/utils/lightCards/cardLoading.d.ts +0 -3
  160. package/dist/types-ts4.5/utils/lightCards/cardPlaceholder.d.ts +0 -6
  161. package/dist/types-ts4.5/utils/lightCards/errorIcon/index.d.ts +0 -9
  162. package/dist/types-ts4.5/utils/lightCards/errorIcon/styles.d.ts +0 -2
  163. package/dist/types-ts4.5/utils/lightCards/getDimensionsWithDefault.d.ts +0 -2
  164. package/dist/types-ts4.5/utils/lightCards/lightCardWrappers.d.ts +0 -7
  165. package/dist/types-ts4.5/utils/lightCards/styles.d.ts +0 -3
  166. package/dist/types-ts4.5/utils/lightCards/types.d.ts +0 -13
  167. package/dist/types-ts4.5/utils/mediaPerformanceObserver/durationMetrics.d.ts +0 -44
  168. package/dist/types-ts4.5/utils/mediaPerformanceObserver/mediaPerformanceObserver.d.ts +0 -13
  169. package/dist/types-ts4.5/utils/mediaPerformanceObserver/types.d.ts +0 -8
  170. package/dist/types-ts4.5/utils/mediaPerformanceObserver/ufo.d.ts +0 -2
  171. package/dist/types-ts4.5/utils/metadata.d.ts +0 -2
  172. package/dist/types-ts4.5/utils/mockIntersectionObserver.d.ts +0 -20
  173. package/dist/types-ts4.5/utils/printScript.d.ts +0 -2
  174. package/dist/types-ts4.5/utils/ufoExperiences.d.ts +0 -98
  175. package/dist/types-ts4.5/utils/useCurrentValueRef.d.ts +0 -2
  176. package/dist/types-ts4.5/utils/usePrevious.d.ts +0 -1
  177. package/dist/types-ts4.5/utils/videoIsPlayable.d.ts +0 -2
  178. package/dist/types-ts4.5/utils/videoSnapshot.d.ts +0 -1
  179. 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,3 +0,0 @@
1
- import React from 'react';
2
- import { type StyledBarProps } from './types';
3
- export declare const StyledBar: (props: StyledBarProps) => React.JSX.Element;
@@ -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,8 +0,0 @@
1
- import { type Breakpoint } from '../common';
2
- export type StyledBarProps = {
3
- progress?: number;
4
- breakpoint: Breakpoint;
5
- positionBottom: boolean;
6
- showOnTop: boolean;
7
- ariaLabel?: 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,2 +0,0 @@
1
- export declare const tickBoxClassName = "media-card-tickbox";
2
- export declare const tickboxFixedStyles: string;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { type TickBoxProps } from './types';
3
- export declare const TickBox: ({ selected }: TickBoxProps) => React.JSX.Element;
@@ -1,5 +0,0 @@
1
- import { type TickBoxProps } from './types';
2
- export declare const TickBoxWrapper: {
3
- (props: TickBoxProps): JSX.Element;
4
- displayName: string;
5
- };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { type TickBoxProps } from './types';
3
- export declare const TickBoxWrapper: {
4
- (props: TickBoxProps): React.JSX.Element;
5
- displayName: string;
6
- };
@@ -1,4 +0,0 @@
1
- export type TickBoxProps = {
2
- selected?: boolean;
3
- children?: any;
4
- };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { type FailedTitleBoxProps } from './types';
3
- export declare const FailedTitleBox: React.FC<FailedTitleBoxProps>;
@@ -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,6 +0,0 @@
1
- import React from 'react';
2
- type ContentLoadingErrorMessageProps = {
3
- isHidden?: boolean;
4
- };
5
- export declare const ContentLoadingErrorMessage: ({ isHidden, }: ContentLoadingErrorMessageProps) => React.JSX.Element;
6
- export {};
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { type UnhandledErrorCardProps } from './types';
3
- export declare const UnhandledErrorCard: (props: UnhandledErrorCardProps) => React.JSX.Element;
@@ -1,5 +0,0 @@
1
- import { type CardDimensions } from '../../../types';
2
- export interface UnhandledErrorCardProps {
3
- dimensions?: CardDimensions;
4
- onClick?: (event: React.MouseEvent<HTMLElement>) => void;
5
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { Component } from 'react';
6
- import { type UnhandledErrorCardProps } from './types';
7
- export declare class UnhandledErrorCard extends Component<UnhandledErrorCardProps, {}> {
8
- render(): JSX.Element;
9
- }
@@ -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,2 +0,0 @@
1
- export { Wrapper } from './wrapper';
2
- export { ImageContainer } from './imageContainer';
@@ -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,3 +0,0 @@
1
- import React from 'react';
2
- import { type WrapperProps } from './types';
3
- export declare const Wrapper: (props: WrapperProps) => React.JSX.Element;
@@ -1,3 +0,0 @@
1
- import { type Breakpoint } from './ui/common';
2
- import { type CardDimensionValue } from '../types';
3
- export declare const useBreakpoint: (dimensionWidth: CardDimensionValue | undefined, divRef: React.RefObject<HTMLDivElement>) => Breakpoint;
@@ -1,4 +0,0 @@
1
- /**
2
- * Entry Point: @atlaskit/media-card/classnames
3
- */
4
- export { fileCardImageViewSelector } from './card/classnames';
@@ -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,2 +0,0 @@
1
- export { default as MediaInlineCard } from './loader';
2
- export { fireFailedOperationalEvent as fireFailedMediaInlineEvent, fireSucceededOperationalEvent as fireSucceededMediaInlineEvent, } from './mediaInlineCardAnalytics';
@@ -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
- }