@atlaskit/media-card 79.3.7 → 79.3.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.
- package/CHANGELOG.md +6 -0
- package/dist/types/types.d.ts +13 -0
- package/dist/types-ts4.5/types.d.ts +13 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/dist/types/types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type MouseEvent } from 'react';
|
|
6
6
|
import { type FileDetails, type MediaClient, type Identifier, type ImageResizeMode, type FileState } from '@atlaskit/media-client';
|
|
7
|
+
import { type MediaSettings } from '@atlaskit/media-client-react';
|
|
7
8
|
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
8
9
|
import { type MediaFeatureFlags, type NumericalCardDimensions, type SSR } from '@atlaskit/media-common';
|
|
9
10
|
import { type CardAction } from './card/actions';
|
|
@@ -85,16 +86,28 @@ export interface CardEventProps {
|
|
|
85
86
|
readonly videoControlsWrapperRef?: React.Ref<HTMLDivElement>;
|
|
86
87
|
}
|
|
87
88
|
export interface CardProps extends SharedCardProps, CardEventProps {
|
|
89
|
+
/** Instance of MediaClient. */
|
|
88
90
|
readonly mediaClient: MediaClient;
|
|
91
|
+
/** Instance of file identifier. */
|
|
89
92
|
readonly identifier: Identifier;
|
|
93
|
+
/** Lazy loads the media file. */
|
|
90
94
|
readonly isLazy?: boolean;
|
|
95
|
+
/** Uses the inline player for media file. */
|
|
91
96
|
readonly useInlinePlayer?: boolean;
|
|
97
|
+
/** Uses media MediaViewer to preview the media file. */
|
|
92
98
|
readonly shouldOpenMediaViewer?: boolean;
|
|
99
|
+
/** Media file list to display in Media Viewer. */
|
|
93
100
|
readonly mediaViewerItems?: Identifier[];
|
|
101
|
+
/** Retrieve auth based on a given context. */
|
|
94
102
|
readonly contextId?: string;
|
|
103
|
+
/** Enables the download button for media file. */
|
|
95
104
|
readonly shouldEnableDownloadButton?: boolean;
|
|
105
|
+
/** Server-Side-Rendering modes are "server" and "client" */
|
|
96
106
|
readonly ssr?: SSR;
|
|
107
|
+
/** Disable tooltip for the card */
|
|
97
108
|
readonly shouldHideTooltip?: boolean;
|
|
109
|
+
/** General Media Settings */
|
|
110
|
+
readonly mediaSettings?: MediaSettings;
|
|
98
111
|
}
|
|
99
112
|
export interface CardState {
|
|
100
113
|
status: CardStatus;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type MouseEvent } from 'react';
|
|
6
6
|
import { type FileDetails, type MediaClient, type Identifier, type ImageResizeMode, type FileState } from '@atlaskit/media-client';
|
|
7
|
+
import { type MediaSettings } from '@atlaskit/media-client-react';
|
|
7
8
|
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
8
9
|
import { type MediaFeatureFlags, type NumericalCardDimensions, type SSR } from '@atlaskit/media-common';
|
|
9
10
|
import { type CardAction } from './card/actions';
|
|
@@ -85,16 +86,28 @@ export interface CardEventProps {
|
|
|
85
86
|
readonly videoControlsWrapperRef?: React.Ref<HTMLDivElement>;
|
|
86
87
|
}
|
|
87
88
|
export interface CardProps extends SharedCardProps, CardEventProps {
|
|
89
|
+
/** Instance of MediaClient. */
|
|
88
90
|
readonly mediaClient: MediaClient;
|
|
91
|
+
/** Instance of file identifier. */
|
|
89
92
|
readonly identifier: Identifier;
|
|
93
|
+
/** Lazy loads the media file. */
|
|
90
94
|
readonly isLazy?: boolean;
|
|
95
|
+
/** Uses the inline player for media file. */
|
|
91
96
|
readonly useInlinePlayer?: boolean;
|
|
97
|
+
/** Uses media MediaViewer to preview the media file. */
|
|
92
98
|
readonly shouldOpenMediaViewer?: boolean;
|
|
99
|
+
/** Media file list to display in Media Viewer. */
|
|
93
100
|
readonly mediaViewerItems?: Identifier[];
|
|
101
|
+
/** Retrieve auth based on a given context. */
|
|
94
102
|
readonly contextId?: string;
|
|
103
|
+
/** Enables the download button for media file. */
|
|
95
104
|
readonly shouldEnableDownloadButton?: boolean;
|
|
105
|
+
/** Server-Side-Rendering modes are "server" and "client" */
|
|
96
106
|
readonly ssr?: SSR;
|
|
107
|
+
/** Disable tooltip for the card */
|
|
97
108
|
readonly shouldHideTooltip?: boolean;
|
|
109
|
+
/** General Media Settings */
|
|
110
|
+
readonly mediaSettings?: MediaSettings;
|
|
98
111
|
}
|
|
99
112
|
export interface CardState {
|
|
100
113
|
status: CardStatus;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "79.3.
|
|
3
|
+
"version": "79.3.8",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
41
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
41
|
+
"@atlaskit/dropdown-menu": "^16.1.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
43
43
|
"@atlaskit/icon": "^27.0.0",
|
|
44
44
|
"@atlaskit/link": "^3.2.0",
|
|
45
|
-
"@atlaskit/media-client": "^
|
|
45
|
+
"@atlaskit/media-client": "^34.0.0",
|
|
46
46
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
47
47
|
"@atlaskit/media-common": "^12.2.0",
|
|
48
48
|
"@atlaskit/media-file-preview": "^0.11.0",
|
|
49
49
|
"@atlaskit/media-svg": "^2.1.0",
|
|
50
50
|
"@atlaskit/media-ui": "^28.3.0",
|
|
51
|
-
"@atlaskit/media-viewer": "^52.
|
|
51
|
+
"@atlaskit/media-viewer": "^52.3.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/primitives": "^14.8.0",
|
|
54
54
|
"@atlaskit/react-ufo": "^3.13.0",
|
|
@@ -79,11 +79,11 @@
|
|
|
79
79
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
80
80
|
"@atlaskit/form": "^12.0.0",
|
|
81
81
|
"@atlaskit/inline-message": "^15.3.0",
|
|
82
|
-
"@atlaskit/media-core": "^
|
|
83
|
-
"@atlaskit/media-picker": "^
|
|
82
|
+
"@atlaskit/media-core": "^37.0.0",
|
|
83
|
+
"@atlaskit/media-picker": "^70.0.0",
|
|
84
84
|
"@atlaskit/media-state": "^1.6.0",
|
|
85
85
|
"@atlaskit/media-test-data": "^3.1.0",
|
|
86
|
-
"@atlaskit/media-test-helpers": "^
|
|
86
|
+
"@atlaskit/media-test-helpers": "^37.0.0",
|
|
87
87
|
"@atlaskit/radio": "^8.1.0",
|
|
88
88
|
"@atlaskit/range": "^9.1.0",
|
|
89
89
|
"@atlaskit/ssr": "workspace:^",
|