@atlaskit/media-card 77.4.6 → 77.4.8

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 (55) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/card/card.js +4 -7
  3. package/dist/cjs/card/cardView.js +11 -7
  4. package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
  5. package/dist/cjs/card/v2/cardV2.js +1 -1
  6. package/dist/cjs/card/v2/cardViewV2.js +0 -3
  7. package/dist/cjs/card/v2/externalImageCard.js +3 -3
  8. package/dist/cjs/card/v2/fileCard.js +18 -17
  9. package/dist/cjs/card/v2/useFilePreview.js +48 -31
  10. package/dist/cjs/inline/loader.js +1 -1
  11. package/dist/cjs/utils/getDataURIDimension.js +38 -1
  12. package/dist/cjs/utils/globalScope/globalScope.js +4 -10
  13. package/dist/cjs/utils/globalScope/index.js +2 -2
  14. package/dist/cjs/utils/ufoExperiences.js +1 -1
  15. package/dist/es2019/card/card.js +5 -8
  16. package/dist/es2019/card/cardView.js +6 -1
  17. package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
  18. package/dist/es2019/card/v2/cardV2.js +1 -1
  19. package/dist/es2019/card/v2/cardViewV2.js +0 -2
  20. package/dist/es2019/card/v2/externalImageCard.js +3 -3
  21. package/dist/es2019/card/v2/fileCard.js +21 -20
  22. package/dist/es2019/card/v2/useFilePreview.js +51 -32
  23. package/dist/es2019/inline/loader.js +1 -1
  24. package/dist/es2019/utils/getDataURIDimension.js +39 -0
  25. package/dist/es2019/utils/globalScope/globalScope.js +1 -7
  26. package/dist/es2019/utils/globalScope/index.js +1 -1
  27. package/dist/es2019/utils/ufoExperiences.js +1 -1
  28. package/dist/esm/card/card.js +5 -8
  29. package/dist/esm/card/cardView.js +11 -7
  30. package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
  31. package/dist/esm/card/v2/cardV2.js +1 -1
  32. package/dist/esm/card/v2/cardViewV2.js +0 -3
  33. package/dist/esm/card/v2/externalImageCard.js +3 -3
  34. package/dist/esm/card/v2/fileCard.js +21 -20
  35. package/dist/esm/card/v2/useFilePreview.js +50 -32
  36. package/dist/esm/inline/loader.js +1 -1
  37. package/dist/esm/utils/getDataURIDimension.js +38 -0
  38. package/dist/esm/utils/globalScope/globalScope.js +3 -8
  39. package/dist/esm/utils/globalScope/index.js +1 -1
  40. package/dist/esm/utils/ufoExperiences.js +1 -1
  41. package/dist/types/card/v2/cardViewV2.d.ts +17 -6
  42. package/dist/types/card/v2/fileCard.d.ts +40 -6
  43. package/dist/types/card/v2/useFilePreview.d.ts +9 -14
  44. package/dist/types/utils/getDataURIDimension.d.ts +17 -0
  45. package/dist/types/utils/globalScope/globalScope.d.ts +2 -8
  46. package/dist/types/utils/globalScope/index.d.ts +1 -1
  47. package/dist/types/utils/globalScope/types.d.ts +1 -1
  48. package/dist/types-ts4.5/card/v2/cardViewV2.d.ts +17 -6
  49. package/dist/types-ts4.5/card/v2/fileCard.d.ts +40 -6
  50. package/dist/types-ts4.5/card/v2/useFilePreview.d.ts +9 -14
  51. package/dist/types-ts4.5/utils/getDataURIDimension.d.ts +17 -0
  52. package/dist/types-ts4.5/utils/globalScope/globalScope.d.ts +2 -8
  53. package/dist/types-ts4.5/utils/globalScope/index.d.ts +1 -1
  54. package/dist/types-ts4.5/utils/globalScope/types.d.ts +1 -1
  55. package/package.json +7 -3
@@ -1,21 +1,16 @@
1
- import React from 'react';
2
- import { FileIdentifier, MediaClient, ImageResizeMode, MediaBlobUrlAttrs } from '@atlaskit/media-client';
3
- import { MediaTraceContext, SSR } from '@atlaskit/media-common';
1
+ /// <reference types="react" />
2
+ import { FileIdentifier, ImageResizeMode, MediaBlobUrlAttrs } from '@atlaskit/media-client';
3
+ import { MediaTraceContext, NumericalCardDimensions, SSR } from '@atlaskit/media-common';
4
4
  import { MediaCardError } from '../../errors';
5
- import { CardDimensions, CardPreview } from '../../types';
5
+ import { CardPreview } from '../../types';
6
6
  import { SSRStatus } from '../../utils/analytics';
7
- import { NumericalCardDimensions } from '@atlaskit/media-common';
8
7
  export interface UseFilePreviewParams {
9
8
  /** Instance of file identifier. */
10
9
  readonly identifier: FileIdentifier;
11
- /** Instance of MediaClient. */
12
- readonly mediaClient: MediaClient;
13
10
  /** Resize the media to 'crop' | 'fit' | 'full-fit' | 'stretchy-fit' */
14
11
  readonly resizeMode?: ImageResizeMode;
15
- /** Custom media card dimension like width and height. */
16
- readonly dimensions?: CardDimensions;
17
- /** Dimensions to be requested to the server */
18
- readonly requestedDimensions: NumericalCardDimensions;
12
+ /** Dimensions to be requested to the server. Will be scaled x2 in Retina Displays */
13
+ readonly dimensions?: Partial<NumericalCardDimensions>;
19
14
  /** Server-Side-Rendering modes are "server" and "client" */
20
15
  readonly ssr?: SSR;
21
16
  /** Attributes to attach to the created Blob Url */
@@ -27,12 +22,12 @@ export interface UseFilePreviewParams {
27
22
  /** Do not fetch a remote preview. Helpful for lazy loading */
28
23
  readonly skipRemote?: boolean;
29
24
  }
30
- export declare const useFilePreview: ({ resizeMode, identifier, ssr, mediaClient, dimensions, requestedDimensions, traceContext, previewDidRender, skipRemote, mediaBlobUrlAttrs, }: UseFilePreviewParams) => {
25
+ export declare const useFilePreview: ({ resizeMode, identifier, ssr, dimensions, traceContext, previewDidRender, skipRemote, mediaBlobUrlAttrs, }: UseFilePreviewParams) => {
31
26
  cardPreview: CardPreview | undefined;
32
27
  error: MediaCardError | undefined;
33
28
  nonCriticalError: MediaCardError | undefined;
34
- ssrReliabilityRef: React.MutableRefObject<SSRStatus>;
29
+ ssrReliabilityRef: import("react").MutableRefObject<SSRStatus>;
35
30
  onImageError: (newCardPreview?: CardPreview) => void;
36
31
  onImageLoad: (newCardPreview?: CardPreview) => void;
37
- StoreSSRDataScript: () => JSX.Element;
32
+ getScriptProps: () => import("react").ScriptHTMLAttributes<HTMLScriptElement>;
38
33
  };
@@ -1,9 +1,26 @@
1
1
  import { CardDimensions } from '../types';
2
2
  import { ElementDimension } from './getElementDimension';
3
3
  import { NumericalCardDimensions } from '@atlaskit/media-common';
4
+ /**
5
+ * ************************************************
6
+ * For Card v1
7
+ * ************************************************
8
+ */
4
9
  export type getDataURIDimensionOptions = {
5
10
  element?: Element | null;
6
11
  dimensions?: CardDimensions;
7
12
  };
8
13
  export declare const getDataURIDimension: (dimension: ElementDimension, options: getDataURIDimensionOptions) => number;
9
14
  export declare const getRequestedDimensions: (options: getDataURIDimensionOptions) => NumericalCardDimensions;
15
+ /**
16
+ * ************************************************
17
+ * For Card v2
18
+ * ************************************************
19
+ */
20
+ type ResolveCardDimensionOptions = {
21
+ element?: Element | null;
22
+ dimensions?: CardDimensions;
23
+ };
24
+ export declare const resolveCardPreviewDimension: (dimensionName: ElementDimension, { dimensions, element }: ResolveCardDimensionOptions) => number;
25
+ export declare const resolveCardPreviewDimensions: (options: ResolveCardDimensionOptions) => NumericalCardDimensions;
26
+ export {};
@@ -11,11 +11,5 @@ export type MediaGlobalScope = {
11
11
  export declare function getMediaGlobalScope(globalScope?: any): MediaGlobalScope;
12
12
  export declare function getMediaCardSSR(globalScope?: any): MediaCardSsr;
13
13
  export declare const getKey: ({ id, collectionName, occurrenceKey }: FileIdentifier) => string;
14
- export declare const storeDataURI: (key: string, dataURI?: string, dimensions?: NumericalCardDimensions, error?: MediaCardErrorInfo, globalScope?: any) => void;
15
- export type StoreSSRDataScriptProps = {
16
- identifier: FileIdentifier;
17
- dataURI?: string;
18
- dimensions?: NumericalCardDimensions;
19
- error?: MediaCardErrorInfo;
20
- };
21
- export declare const StoreSSRDataScript: React.FC<StoreSSRDataScriptProps>;
14
+ export declare const storeDataURI: (key: string, dataURI?: string, dimensions?: Partial<NumericalCardDimensions>, error?: MediaCardErrorInfo, globalScope?: any) => void;
15
+ export declare const generateScriptProps: (identifier: FileIdentifier, dataURI?: string, dimensions?: Partial<NumericalCardDimensions>, error?: MediaCardErrorInfo) => React.ScriptHTMLAttributes<HTMLScriptElement>;
@@ -1,4 +1,4 @@
1
- export { StoreSSRDataScript, GLOBAL_MEDIA_NAMESPACE, GLOBAL_MEDIA_CARD_SSR, getKey, } from './globalScope';
1
+ export { GLOBAL_MEDIA_NAMESPACE, GLOBAL_MEDIA_CARD_SSR, generateScriptProps, getKey, } from './globalScope';
2
2
  export { getSSRData } from './getSSRData';
3
3
  export type { MediaCardSsrData, MediaCardSsr } from './types';
4
4
  export type { MediaGlobalScope } from './globalScope';
@@ -2,7 +2,7 @@ import { NumericalCardDimensions } from '@atlaskit/media-common';
2
2
  import { MediaCardErrorInfo } from '../../utils/analytics';
3
3
  export type MediaCardSsrData = {
4
4
  dataURI?: string;
5
- dimensions?: NumericalCardDimensions;
5
+ dimensions?: Partial<NumericalCardDimensions>;
6
6
  error?: MediaCardErrorInfo;
7
7
  };
8
8
  export type MediaCardSsr = Record<string, MediaCardSsrData>;
@@ -2,11 +2,22 @@
2
2
  import { jsx } from '@emotion/react';
3
3
  import React, { MouseEvent } from 'react';
4
4
  import { MessageDescriptor } from 'react-intl-next';
5
- import { MediaItemType, FileDetails } from '@atlaskit/media-client';
5
+ import { MediaItemType, FileDetails, ImageResizeMode } from '@atlaskit/media-client';
6
6
  import { WithAnalyticsEventsProps, UIAnalyticsEvent } from '@atlaskit/analytics-next';
7
- import { SharedCardProps, CardStatus, CardPreview, MediaCardCursor } from '../../types';
7
+ import { CardStatus, CardPreview, MediaCardCursor, CardDimensions, TitleBoxIcon } from '../../types';
8
+ import { CardAction } from '../actions';
8
9
  import { MediaCardError } from '../../errors';
9
- export interface CardViewV2OwnProps extends SharedCardProps {
10
+ export interface CardViewV2Props {
11
+ readonly disableOverlay?: boolean;
12
+ readonly resizeMode?: ImageResizeMode;
13
+ readonly dimensions: CardDimensions;
14
+ readonly actions?: Array<CardAction>;
15
+ readonly selectable?: boolean;
16
+ readonly selected?: boolean;
17
+ readonly alt?: string;
18
+ readonly testId?: string;
19
+ readonly titleBoxBgColor?: string;
20
+ readonly titleBoxIcon?: TitleBoxIcon;
10
21
  readonly status: CardStatus;
11
22
  readonly mediaItemType: MediaItemType;
12
23
  readonly mediaCardCursor?: MediaCardCursor;
@@ -25,7 +36,7 @@ export interface CardViewV2OwnProps extends SharedCardProps {
25
36
  disableAnimation?: boolean;
26
37
  shouldHideTooltip?: boolean;
27
38
  }
28
- export type CardViewV2Props = CardViewV2OwnProps & WithAnalyticsEventsProps;
39
+ export type CardViewV2BaseProps = CardViewV2Props & WithAnalyticsEventsProps;
29
40
  export interface RenderConfigByStatusV2 {
30
41
  renderTypeIcon?: boolean;
31
42
  iconMessage?: JSX.Element;
@@ -40,5 +51,5 @@ export interface RenderConfigByStatusV2 {
40
51
  renderTickBox?: boolean;
41
52
  customTitleMessage?: MessageDescriptor;
42
53
  }
43
- export declare const CardViewV2Base: ({ innerRef, onImageLoad, onImageError, dimensions, appearance, onClick, onMouseEnter, testId, metadata, status, selected, selectable, cardPreview, mediaCardCursor, shouldHideTooltip, progress, alt, resizeMode, onDisplayImage, nativeLazyLoad, forceSyncDisplay, actions, disableOverlay, titleBoxBgColor, titleBoxIcon, error, disableAnimation, }: CardViewV2Props) => jsx.JSX.Element;
44
- export declare const CardViewV2: React.ForwardRefExoticComponent<Omit<CardViewV2Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
54
+ export declare const CardViewV2Base: ({ innerRef, onImageLoad, onImageError, dimensions, onClick, onMouseEnter, testId, metadata, status, selected, selectable, cardPreview, mediaCardCursor, shouldHideTooltip, progress, alt, resizeMode, onDisplayImage, nativeLazyLoad, forceSyncDisplay, actions, disableOverlay, titleBoxBgColor, titleBoxIcon, error, disableAnimation, }: CardViewV2BaseProps) => jsx.JSX.Element;
55
+ export declare const CardViewV2: React.ForwardRefExoticComponent<Omit<CardViewV2BaseProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
@@ -1,19 +1,53 @@
1
1
  /// <reference types="react" />
2
2
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { FileIdentifier, Identifier, MediaClient } from '@atlaskit/media-client';
4
- import { SSR } from '@atlaskit/media-common';
5
- import { CardEventProps, SharedCardProps } from '../../types';
6
- export interface FileCardProps extends SharedCardProps, CardEventProps {
7
- readonly mediaClient: MediaClient;
3
+ import { FileIdentifier, Identifier, ImageResizeMode } from '@atlaskit/media-client';
4
+ import { MediaFeatureFlags, NumericalCardDimensions, SSR } from '@atlaskit/media-common';
5
+ import { CardAppearance, CardDimensions, CardEventProps, TitleBoxIcon } from '../../types';
6
+ import { CardAction } from '../actions';
7
+ export interface FileCardProps extends CardEventProps {
8
+ /** Overlay the media file. */
9
+ readonly disableOverlay?: boolean;
10
+ /** Resize the media to 'crop' | 'fit' | 'full-fit' | 'stretchy-fit'. */
11
+ readonly resizeMode?: ImageResizeMode;
12
+ readonly featureFlags?: MediaFeatureFlags;
13
+ /** Sets meida card appearance */
14
+ readonly appearance?: CardAppearance;
15
+ /** Custom media card dimension like width and height. */
16
+ readonly dimensions?: CardDimensions;
17
+ /** Original media card dimension like width and height. */
18
+ readonly originalDimensions?: NumericalCardDimensions;
19
+ /** Array of additional media card actions. */
20
+ readonly actions?: Array<CardAction>;
21
+ /** Enable media card selectable. */
22
+ readonly selectable?: boolean;
23
+ /** Renders media card as selected, if selected is true. */
24
+ readonly selected?: boolean;
25
+ /** Alternate text for an media card. */
26
+ readonly alt?: string;
27
+ /** ID for testing the media card. */
28
+ readonly testId?: string;
29
+ /** Sets the title box background color. */
30
+ readonly titleBoxBgColor?: string;
31
+ /** Sets the title box icon. */
32
+ readonly titleBoxIcon?: TitleBoxIcon;
33
+ /** Instance of file identifier. */
8
34
  readonly identifier: FileIdentifier;
35
+ /** Lazy loads the media file. */
9
36
  readonly isLazy?: boolean;
37
+ /** Uses the inline player for media file. */
10
38
  readonly useInlinePlayer?: boolean;
39
+ /** Uses media MediaViewer to preview the media file. */
11
40
  readonly shouldOpenMediaViewer?: boolean;
41
+ /** Media file list to display in Media Viewer. */
12
42
  readonly mediaViewerItems?: Identifier[];
43
+ /** Retrieve auth based on a given context. */
13
44
  readonly contextId?: string;
45
+ /** Enables the download button for media file. */
14
46
  readonly shouldEnableDownloadButton?: boolean;
47
+ /** Server-Side-Rendering modes are "server" and "client" */
15
48
  readonly ssr?: SSR;
49
+ /** Disable tooltip for the card */
16
50
  readonly shouldHideTooltip?: boolean;
17
51
  }
18
52
  export type FileCardBaseProps = FileCardProps & WithAnalyticsEventsProps;
19
- export declare const FileCard: ({ appearance, resizeMode, isLazy, disableOverlay, featureFlags, identifier, ssr, mediaClient, dimensions, originalDimensions, contextId, alt, actions, shouldEnableDownloadButton, useInlinePlayer, shouldOpenMediaViewer, onFullscreenChange, selectable, selected, testId, titleBoxBgColor, titleBoxIcon, shouldHideTooltip, mediaViewerItems, onClick, onMouseEnter, createAnalyticsEvent, }: FileCardBaseProps) => JSX.Element;
53
+ export declare const FileCard: ({ appearance, resizeMode, isLazy, disableOverlay, featureFlags, identifier, ssr, dimensions, originalDimensions, contextId, alt, actions, shouldEnableDownloadButton, useInlinePlayer, shouldOpenMediaViewer, onFullscreenChange, selectable, selected, testId, titleBoxBgColor, titleBoxIcon, shouldHideTooltip, mediaViewerItems, onClick, onMouseEnter, createAnalyticsEvent, }: FileCardBaseProps) => JSX.Element;
@@ -1,21 +1,16 @@
1
- import React from 'react';
2
- import { FileIdentifier, MediaClient, ImageResizeMode, MediaBlobUrlAttrs } from '@atlaskit/media-client';
3
- import { MediaTraceContext, SSR } from '@atlaskit/media-common';
1
+ /// <reference types="react" />
2
+ import { FileIdentifier, ImageResizeMode, MediaBlobUrlAttrs } from '@atlaskit/media-client';
3
+ import { MediaTraceContext, NumericalCardDimensions, SSR } from '@atlaskit/media-common';
4
4
  import { MediaCardError } from '../../errors';
5
- import { CardDimensions, CardPreview } from '../../types';
5
+ import { CardPreview } from '../../types';
6
6
  import { SSRStatus } from '../../utils/analytics';
7
- import { NumericalCardDimensions } from '@atlaskit/media-common';
8
7
  export interface UseFilePreviewParams {
9
8
  /** Instance of file identifier. */
10
9
  readonly identifier: FileIdentifier;
11
- /** Instance of MediaClient. */
12
- readonly mediaClient: MediaClient;
13
10
  /** Resize the media to 'crop' | 'fit' | 'full-fit' | 'stretchy-fit' */
14
11
  readonly resizeMode?: ImageResizeMode;
15
- /** Custom media card dimension like width and height. */
16
- readonly dimensions?: CardDimensions;
17
- /** Dimensions to be requested to the server */
18
- readonly requestedDimensions: NumericalCardDimensions;
12
+ /** Dimensions to be requested to the server. Will be scaled x2 in Retina Displays */
13
+ readonly dimensions?: Partial<NumericalCardDimensions>;
19
14
  /** Server-Side-Rendering modes are "server" and "client" */
20
15
  readonly ssr?: SSR;
21
16
  /** Attributes to attach to the created Blob Url */
@@ -27,12 +22,12 @@ export interface UseFilePreviewParams {
27
22
  /** Do not fetch a remote preview. Helpful for lazy loading */
28
23
  readonly skipRemote?: boolean;
29
24
  }
30
- export declare const useFilePreview: ({ resizeMode, identifier, ssr, mediaClient, dimensions, requestedDimensions, traceContext, previewDidRender, skipRemote, mediaBlobUrlAttrs, }: UseFilePreviewParams) => {
25
+ export declare const useFilePreview: ({ resizeMode, identifier, ssr, dimensions, traceContext, previewDidRender, skipRemote, mediaBlobUrlAttrs, }: UseFilePreviewParams) => {
31
26
  cardPreview: CardPreview | undefined;
32
27
  error: MediaCardError | undefined;
33
28
  nonCriticalError: MediaCardError | undefined;
34
- ssrReliabilityRef: React.MutableRefObject<SSRStatus>;
29
+ ssrReliabilityRef: import("react").MutableRefObject<SSRStatus>;
35
30
  onImageError: (newCardPreview?: CardPreview) => void;
36
31
  onImageLoad: (newCardPreview?: CardPreview) => void;
37
- StoreSSRDataScript: () => JSX.Element;
32
+ getScriptProps: () => import("react").ScriptHTMLAttributes<HTMLScriptElement>;
38
33
  };
@@ -1,9 +1,26 @@
1
1
  import { CardDimensions } from '../types';
2
2
  import { ElementDimension } from './getElementDimension';
3
3
  import { NumericalCardDimensions } from '@atlaskit/media-common';
4
+ /**
5
+ * ************************************************
6
+ * For Card v1
7
+ * ************************************************
8
+ */
4
9
  export type getDataURIDimensionOptions = {
5
10
  element?: Element | null;
6
11
  dimensions?: CardDimensions;
7
12
  };
8
13
  export declare const getDataURIDimension: (dimension: ElementDimension, options: getDataURIDimensionOptions) => number;
9
14
  export declare const getRequestedDimensions: (options: getDataURIDimensionOptions) => NumericalCardDimensions;
15
+ /**
16
+ * ************************************************
17
+ * For Card v2
18
+ * ************************************************
19
+ */
20
+ type ResolveCardDimensionOptions = {
21
+ element?: Element | null;
22
+ dimensions?: CardDimensions;
23
+ };
24
+ export declare const resolveCardPreviewDimension: (dimensionName: ElementDimension, { dimensions, element }: ResolveCardDimensionOptions) => number;
25
+ export declare const resolveCardPreviewDimensions: (options: ResolveCardDimensionOptions) => NumericalCardDimensions;
26
+ export {};
@@ -11,11 +11,5 @@ export type MediaGlobalScope = {
11
11
  export declare function getMediaGlobalScope(globalScope?: any): MediaGlobalScope;
12
12
  export declare function getMediaCardSSR(globalScope?: any): MediaCardSsr;
13
13
  export declare const getKey: ({ id, collectionName, occurrenceKey }: FileIdentifier) => string;
14
- export declare const storeDataURI: (key: string, dataURI?: string, dimensions?: NumericalCardDimensions, error?: MediaCardErrorInfo, globalScope?: any) => void;
15
- export type StoreSSRDataScriptProps = {
16
- identifier: FileIdentifier;
17
- dataURI?: string;
18
- dimensions?: NumericalCardDimensions;
19
- error?: MediaCardErrorInfo;
20
- };
21
- export declare const StoreSSRDataScript: React.FC<StoreSSRDataScriptProps>;
14
+ export declare const storeDataURI: (key: string, dataURI?: string, dimensions?: Partial<NumericalCardDimensions>, error?: MediaCardErrorInfo, globalScope?: any) => void;
15
+ export declare const generateScriptProps: (identifier: FileIdentifier, dataURI?: string, dimensions?: Partial<NumericalCardDimensions>, error?: MediaCardErrorInfo) => React.ScriptHTMLAttributes<HTMLScriptElement>;
@@ -1,4 +1,4 @@
1
- export { StoreSSRDataScript, GLOBAL_MEDIA_NAMESPACE, GLOBAL_MEDIA_CARD_SSR, getKey, } from './globalScope';
1
+ export { GLOBAL_MEDIA_NAMESPACE, GLOBAL_MEDIA_CARD_SSR, generateScriptProps, getKey, } from './globalScope';
2
2
  export { getSSRData } from './getSSRData';
3
3
  export type { MediaCardSsrData, MediaCardSsr } from './types';
4
4
  export type { MediaGlobalScope } from './globalScope';
@@ -2,7 +2,7 @@ import { NumericalCardDimensions } from '@atlaskit/media-common';
2
2
  import { MediaCardErrorInfo } from '../../utils/analytics';
3
3
  export type MediaCardSsrData = {
4
4
  dataURI?: string;
5
- dimensions?: NumericalCardDimensions;
5
+ dimensions?: Partial<NumericalCardDimensions>;
6
6
  error?: MediaCardErrorInfo;
7
7
  };
8
8
  export type MediaCardSsr = Record<string, MediaCardSsrData>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "77.4.6",
3
+ "version": "77.4.8",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/editor-shared-styles": "^2.8.0",
42
42
  "@atlaskit/icon": "^22.0.0",
43
43
  "@atlaskit/media-client": "^25.1.0",
44
- "@atlaskit/media-client-react": "^1.4.0",
44
+ "@atlaskit/media-client-react": "^2.0.0",
45
45
  "@atlaskit/media-common": "^11.0.0",
46
46
  "@atlaskit/media-ui": "^25.0.0",
47
47
  "@atlaskit/media-viewer": "^48.2.0",
@@ -64,16 +64,17 @@
64
64
  "react-intl-next": "npm:react-intl@^5.18.1"
65
65
  },
66
66
  "devDependencies": {
67
+ "@af/integration-testing": "*",
67
68
  "@atlaskit/analytics-listeners": "^8.7.0",
68
69
  "@atlaskit/analytics-namespaced-context": "^6.7.0",
69
70
  "@atlaskit/inline-message": "^12.0.0",
70
71
  "@atlaskit/media-core": "^34.1.0",
71
72
  "@atlaskit/media-picker": "^66.2.0",
72
73
  "@atlaskit/media-state": "^1.0.0",
74
+ "@atlaskit/media-test-data": "^1.0.0",
73
75
  "@atlaskit/media-test-helpers": "^33.0.0",
74
76
  "@atlaskit/ssr": "*",
75
77
  "@atlaskit/visual-regression": "*",
76
- "@atlaskit/webdriver-runner": "*",
77
78
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
78
79
  "@atlassian/ufo": "^0.2.0",
79
80
  "@testing-library/dom": "^8.17.1",
@@ -95,6 +96,9 @@
95
96
  "platform-feature-flags": {
96
97
  "platform.media-experience.cardv2_7zann": {
97
98
  "type": "boolean"
99
+ },
100
+ "platform.editor.a11y-media_er96o": {
101
+ "type": "boolean"
98
102
  }
99
103
  },
100
104
  "techstack": {