@atlaskit/media-card 74.1.4 → 74.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/classnames/package.json +1 -1
- package/dist/cjs/root/card/getCardPreview/helpers.js +4 -4
- package/dist/cjs/root/card/getCardPreview/index.js +1 -1
- package/dist/cjs/root/card/index.js +1 -1
- package/dist/cjs/root/inlinePlayer.js +2 -2
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/root/card/getCardPreview/helpers.js +4 -4
- package/dist/es2019/root/card/getCardPreview/index.js +1 -1
- package/dist/es2019/root/card/index.js +1 -1
- package/dist/es2019/root/inlinePlayer.js +2 -2
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/root/card/getCardPreview/helpers.js +4 -4
- package/dist/esm/root/card/getCardPreview/index.js +1 -1
- package/dist/esm/root/card/index.js +1 -1
- package/dist/esm/root/inlinePlayer.js +2 -2
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types-ts4.0/__tests_external__/index.d.ts +1 -0
- package/dist/types-ts4.0/__tests_external__/page-objects/MediaCard.d.ts +8 -0
- package/dist/types-ts4.0/actions.d.ts +9 -0
- package/dist/types-ts4.0/classnames.d.ts +1 -0
- package/dist/types-ts4.0/errors.d.ts +41 -0
- package/dist/types-ts4.0/files/cardImageView/cardImageViewWrapper.d.ts +6 -0
- package/dist/types-ts4.0/files/cardImageView/cardOverlay/cardOverlayComponents.d.ts +8 -0
- package/dist/types-ts4.0/files/cardImageView/cardOverlay/index.d.ts +39 -0
- package/dist/types-ts4.0/files/cardImageView/cardOverlay/styles.d.ts +26 -0
- package/dist/types-ts4.0/files/cardImageView/classnames.d.ts +2 -0
- package/dist/types-ts4.0/files/cardImageView/index.d.ts +50 -0
- package/dist/types-ts4.0/files/cardImageView/styles.d.ts +24 -0
- package/dist/types-ts4.0/files/index.d.ts +2 -0
- package/dist/types-ts4.0/in-product.d.ts +1 -0
- package/dist/types-ts4.0/index.d.ts +77 -0
- package/dist/types-ts4.0/root/card/cardAnalytics.d.ts +9 -0
- package/dist/types-ts4.0/root/card/cardConstants.d.ts +1 -0
- package/dist/types-ts4.0/root/card/cardLoader.d.ts +6 -0
- package/dist/types-ts4.0/root/card/cardState.d.ts +5 -0
- package/dist/types-ts4.0/root/card/getCardPreview/cache.d.ts +19 -0
- package/dist/types-ts4.0/root/card/getCardPreview/filePreviewStatus.d.ts +5 -0
- package/dist/types-ts4.0/root/card/getCardPreview/helpers.d.ts +9 -0
- package/dist/types-ts4.0/root/card/getCardPreview/index.d.ts +56 -0
- package/dist/types-ts4.0/root/card/getCardStatus.d.ts +4 -0
- package/dist/types-ts4.0/root/card/imageRefetchingAnalytics.d.ts +10 -0
- package/dist/types-ts4.0/root/card/index.d.ts +58 -0
- package/dist/types-ts4.0/root/cardView.d.ts +80 -0
- package/dist/types-ts4.0/root/cardViewWrapper.d.ts +4 -0
- package/dist/types-ts4.0/root/index.d.ts +2 -0
- package/dist/types-ts4.0/root/inline/loader.d.ts +25 -0
- package/dist/types-ts4.0/root/inline/mediaInlineCard.d.ts +14 -0
- package/dist/types-ts4.0/root/inlinePlayer.d.ts +51 -0
- package/dist/types-ts4.0/root/inlinePlayerLazy.d.ts +2 -0
- package/dist/types-ts4.0/root/inlinePlayerWrapper.d.ts +4 -0
- package/dist/types-ts4.0/root/media-card-analytics-error-boundary.d.ts +10 -0
- package/dist/types-ts4.0/root/styles.d.ts +10 -0
- package/dist/types-ts4.0/root/types.d.ts +24 -0
- package/dist/types-ts4.0/root/ui/actionsBar/actionsBar.d.ts +5 -0
- package/dist/types-ts4.0/root/ui/actionsBar/actionsBarWrapper.d.ts +4 -0
- package/dist/types-ts4.0/root/ui/actionsBar/styles.d.ts +6 -0
- package/dist/types-ts4.0/root/ui/actionsBar/types.d.ts +10 -0
- package/dist/types-ts4.0/root/ui/blanket/blanket.d.ts +6 -0
- package/dist/types-ts4.0/root/ui/blanket/styles.d.ts +6 -0
- package/dist/types-ts4.0/root/ui/common.d.ts +23 -0
- package/dist/types-ts4.0/root/ui/iconMessage/iconMessageWrapper.d.ts +4 -0
- package/dist/types-ts4.0/root/ui/iconMessage/index.d.ts +8 -0
- package/dist/types-ts4.0/root/ui/iconMessage/styles.d.ts +5 -0
- package/dist/types-ts4.0/root/ui/iconMessage/types.d.ts +19 -0
- package/dist/types-ts4.0/root/ui/iconWrapper/iconWrapper.d.ts +4 -0
- package/dist/types-ts4.0/root/ui/iconWrapper/styles.d.ts +7 -0
- package/dist/types-ts4.0/root/ui/iconWrapper/types.d.ts +6 -0
- package/dist/types-ts4.0/root/ui/imageRenderer/imageRenderer.d.ts +15 -0
- package/dist/types-ts4.0/root/ui/loadingRateLimited/styles.d.ts +13 -0
- package/dist/types-ts4.0/root/ui/newFileExperience/newFileExperienceWrapper.d.ts +4 -0
- package/dist/types-ts4.0/root/ui/newFileExperience/styles.d.ts +5 -0
- package/dist/types-ts4.0/root/ui/newFileExperience/types.d.ts +23 -0
- package/dist/types-ts4.0/root/ui/playButton/playButton.d.ts +2 -0
- package/dist/types-ts4.0/root/ui/playButton/playButtonBackground.d.ts +3 -0
- package/dist/types-ts4.0/root/ui/playButton/playButtonWrapper.d.ts +3 -0
- package/dist/types-ts4.0/root/ui/playButton/styles.d.ts +5 -0
- package/dist/types-ts4.0/root/ui/progressBar/progressBar.d.ts +10 -0
- package/dist/types-ts4.0/root/ui/progressBar/styledBar.d.ts +4 -0
- package/dist/types-ts4.0/root/ui/progressBar/styles.d.ts +7 -0
- package/dist/types-ts4.0/root/ui/progressBar/types.d.ts +7 -0
- package/dist/types-ts4.0/root/ui/styles.d.ts +11 -0
- package/dist/types-ts4.0/root/ui/tickBox/styles.d.ts +7 -0
- package/dist/types-ts4.0/root/ui/tickBox/tickBox.d.ts +3 -0
- package/dist/types-ts4.0/root/ui/tickBox/tickBoxWrapper.d.ts +4 -0
- package/dist/types-ts4.0/root/ui/tickBox/types.d.ts +4 -0
- package/dist/types-ts4.0/root/ui/titleBox/failedTitleBox.d.ts +3 -0
- package/dist/types-ts4.0/root/ui/titleBox/styles.d.ts +15 -0
- package/dist/types-ts4.0/root/ui/titleBox/titleBox.d.ts +4 -0
- package/dist/types-ts4.0/root/ui/titleBox/titleBoxComponents.d.ts +8 -0
- package/dist/types-ts4.0/root/ui/titleBox/types.d.ts +32 -0
- package/dist/types-ts4.0/styles/animations.d.ts +1 -0
- package/dist/types-ts4.0/styles/config.d.ts +1 -0
- package/dist/types-ts4.0/styles/easing.d.ts +2 -0
- package/dist/types-ts4.0/styles/getSelectedBorderStyle.d.ts +3 -0
- package/dist/types-ts4.0/styles/index.d.ts +9 -0
- package/dist/types-ts4.0/styles/mixins.d.ts +21 -0
- package/dist/types-ts4.0/types.d.ts +25 -0
- package/dist/types-ts4.0/utils/analytics.d.ts +78 -0
- package/dist/types-ts4.0/utils/breakpoint.d.ts +11 -0
- package/dist/types-ts4.0/utils/cardActions/cardActionButton.d.ts +4 -0
- package/dist/types-ts4.0/utils/cardActions/cardActionIconButton.d.ts +12 -0
- package/dist/types-ts4.0/utils/cardActions/cardActionsDropdownMenu.d.ts +14 -0
- package/dist/types-ts4.0/utils/cardActions/cardActionsView.d.ts +16 -0
- package/dist/types-ts4.0/utils/cardActions/index.d.ts +7 -0
- package/dist/types-ts4.0/utils/cardActions/styles.d.ts +18 -0
- package/dist/types-ts4.0/utils/cardDimensions.d.ts +53 -0
- package/dist/types-ts4.0/utils/containsPixelUnit.d.ts +1 -0
- package/dist/types-ts4.0/utils/dimensionComparer.d.ts +3 -0
- package/dist/types-ts4.0/utils/document.d.ts +2 -0
- package/dist/types-ts4.0/utils/errorIcon/index.d.ts +12 -0
- package/dist/types-ts4.0/utils/errorIcon/styles.d.ts +1 -0
- package/dist/types-ts4.0/utils/fileIcon/index.d.ts +12 -0
- package/dist/types-ts4.0/utils/fileIcon/styles.d.ts +1 -0
- package/dist/types-ts4.0/utils/generateUniqueId.d.ts +1 -0
- package/dist/types-ts4.0/utils/getCSSUnitValue.d.ts +1 -0
- package/dist/types-ts4.0/utils/getDataURIDimension.d.ts +9 -0
- package/dist/types-ts4.0/utils/getElementDimension.d.ts +2 -0
- package/dist/types-ts4.0/utils/getErrorMessage.d.ts +2 -0
- package/dist/types-ts4.0/utils/getMediaCardCursor.d.ts +6 -0
- package/dist/types-ts4.0/utils/globalScope/getSSRData.d.ts +3 -0
- package/dist/types-ts4.0/utils/globalScope/globalScope.d.ts +21 -0
- package/dist/types-ts4.0/utils/globalScope/index.d.ts +4 -0
- package/dist/types-ts4.0/utils/globalScope/types.d.ts +8 -0
- package/dist/types-ts4.0/utils/index.d.ts +15 -0
- package/dist/types-ts4.0/utils/isRetina.d.ts +1 -0
- package/dist/types-ts4.0/utils/isValidPercentageUnit.d.ts +1 -0
- package/dist/types-ts4.0/utils/lightCards/cardError.d.ts +12 -0
- package/dist/types-ts4.0/utils/lightCards/cardLoading.d.ts +5 -0
- package/dist/types-ts4.0/utils/lightCards/getDimensionsWithDefault.d.ts +2 -0
- package/dist/types-ts4.0/utils/lightCards/lightCardWrappers.d.ts +5 -0
- package/dist/types-ts4.0/utils/lightCards/styles.d.ts +4 -0
- package/dist/types-ts4.0/utils/lightCards/types.d.ts +15 -0
- package/dist/types-ts4.0/utils/mediaTypeIcon/iconWrapper.d.ts +4 -0
- package/dist/types-ts4.0/utils/mediaTypeIcon/index.d.ts +10 -0
- package/dist/types-ts4.0/utils/mediaTypeIcon/styles.d.ts +2 -0
- package/dist/types-ts4.0/utils/mediaTypeIcon/types.d.ts +6 -0
- package/dist/types-ts4.0/utils/metadata.d.ts +2 -0
- package/dist/types-ts4.0/utils/objectURLCache.d.ts +11 -0
- package/dist/types-ts4.0/utils/preventClickThrough.d.ts +8 -0
- package/dist/types-ts4.0/utils/printScript.d.ts +2 -0
- package/dist/types-ts4.0/utils/progressBar/index.d.ts +9 -0
- package/dist/types-ts4.0/utils/progressBar/styles.d.ts +1 -0
- package/dist/types-ts4.0/utils/resizeModeToMediaImageProps.d.ts +5 -0
- package/dist/types-ts4.0/utils/shouldDisplayImageThumbnail.d.ts +3 -0
- package/dist/types-ts4.0/utils/ufoExperiences.d.ts +7 -0
- package/dist/types-ts4.0/utils/videoSnapshot.d.ts +1 -0
- package/dist/types-ts4.0/utils/viewportDetector.d.ts +6 -0
- package/in-product/package.json +1 -1
- package/package.json +9 -2
- package/types/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { StaticCardProps } from './types';
|
|
3
|
+
export interface ErrorCardProps extends StaticCardProps {
|
|
4
|
+
readonly size: 'small' | 'medium' | 'large' | 'xlarge';
|
|
5
|
+
}
|
|
6
|
+
export declare class CardError extends Component<ErrorCardProps, {}> {
|
|
7
|
+
static defaultProps: {
|
|
8
|
+
size: string;
|
|
9
|
+
};
|
|
10
|
+
render(): JSX.Element;
|
|
11
|
+
get icon(): JSX.Element;
|
|
12
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { WrapperProps } from './types';
|
|
2
|
+
export declare const blinkLoadingAnimation: import("@emotion/react").Keyframes;
|
|
3
|
+
export declare const wrapperStyles: ({ dimensions, theme }: WrapperProps) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const animatedWrapperStyles: (props: WrapperProps) => import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardDimensions } from '../../utils/cardDimensions';
|
|
3
|
+
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
4
|
+
import { GlobalThemeTokens } from '@atlaskit/theme/components';
|
|
5
|
+
export interface StaticCardProps {
|
|
6
|
+
dimensions?: CardDimensions;
|
|
7
|
+
testId?: string;
|
|
8
|
+
featureFlags?: MediaFeatureFlags;
|
|
9
|
+
}
|
|
10
|
+
export interface WrapperProps {
|
|
11
|
+
dimensions: CardDimensions;
|
|
12
|
+
testId?: string;
|
|
13
|
+
children?: JSX.Element;
|
|
14
|
+
theme?: GlobalThemeTokens;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MediaType } from '@atlaskit/media-client';
|
|
3
|
+
export interface FileIconProps {
|
|
4
|
+
type?: MediaType;
|
|
5
|
+
size?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class MediaTypeIcon extends React.Component<FileIconProps, {}> {
|
|
9
|
+
render(): JSX.Element;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CardPreview } from '../';
|
|
2
|
+
export declare const PREVIEW_CACHE_LRU_SIZE = 50;
|
|
3
|
+
export declare class ObjectURLCache {
|
|
4
|
+
private readonly cache;
|
|
5
|
+
constructor(size: number);
|
|
6
|
+
has(key: string): boolean;
|
|
7
|
+
get(key: string): CardPreview | undefined;
|
|
8
|
+
set(key: string, value: CardPreview): void;
|
|
9
|
+
remove(key: string): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const createObjectURLCache: () => ObjectURLCache;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export declare type PreventClickThroughProps = {
|
|
4
|
+
readonly children?: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare function PreventClickThrough({ children, }: PreventClickThroughProps): JSX.Element;
|
|
7
|
+
export declare type CreatePreventClickThrough = <T>(onClick: () => void) => (event: React.MouseEvent<T, MouseEvent>) => void;
|
|
8
|
+
export declare const createPreventClickThrough: CreatePreventClickThrough;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**@jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import { Component } from 'react';
|
|
4
|
+
export interface ProgressBarProps {
|
|
5
|
+
progress?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class ProgressBar extends Component<ProgressBarProps, {}> {
|
|
8
|
+
render(): jsx.JSX.Element | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const progressWrapperStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MediaItemType, MediaType } from '@atlaskit/media-client';
|
|
2
|
+
import { CardStatus } from '..';
|
|
3
|
+
export declare const shouldDisplayImageThumbnail: (cardStatus: CardStatus, mediaItemType: MediaItemType, dataURI?: string | undefined, mediaType?: MediaType | undefined, mimeType?: string | undefined) => boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CardStatus } from '../../src';
|
|
2
|
+
import { FileAttributes } from '@atlaskit/media-common';
|
|
3
|
+
import { SSRStatus } from './analytics';
|
|
4
|
+
import { MediaCardError } from '../errors';
|
|
5
|
+
import { FileStateFlags } from '../types';
|
|
6
|
+
export declare const startUfoExperience: (id: string) => void;
|
|
7
|
+
export declare const completeUfoExperience: (id: string, status: CardStatus, fileAttributes: FileAttributes, fileStateFlags: FileStateFlags, ssrReliability: SSRStatus, error?: MediaCardError) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const takeSnapshot: (blob: Blob) => Promise<string>;
|
package/in-product/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "74.1.
|
|
3
|
+
"version": "74.1.5",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,6 +12,13 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.0 <4.5": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.0/*"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
15
22
|
"sideEffects": false,
|
|
16
23
|
"atlaskit:src": "src/index.ts",
|
|
17
24
|
"af:exports": {
|
|
@@ -83,7 +90,7 @@
|
|
|
83
90
|
"react": "^16.8.0",
|
|
84
91
|
"react-dom": "^16.8.0",
|
|
85
92
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
86
|
-
"typescript": "4.
|
|
93
|
+
"typescript": "4.5.5",
|
|
87
94
|
"uuid": "^3.1.0",
|
|
88
95
|
"wait-for-expect": "^1.2.0"
|
|
89
96
|
},
|