@atlaskit/media-card 76.1.1 → 76.2.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 +19 -0
- package/dist/cjs/card/actions.js +2 -2
- package/dist/cjs/card/card.js +3 -3
- package/dist/cjs/card/cardLoader.js +2 -5
- package/dist/cjs/card/cardSwitcher.js +12 -0
- package/dist/cjs/card/cardView.js +3 -4
- package/dist/cjs/card/getCardPreview/cache.js +3 -0
- package/dist/cjs/card/getCardPreview/index.js +2 -2
- package/dist/cjs/card/index.js +2 -2
- package/dist/cjs/card/media-card-analytics-error-boundary.js +3 -3
- package/dist/cjs/card/ui/progressBar/styledBar.js +1 -0
- package/dist/cjs/card/ui/titleBox/titleBoxComponents.js +1 -0
- package/dist/cjs/card/v2/cardV2.js +1054 -0
- package/dist/cjs/card/v2/cardV2Loader.js +95 -0
- package/dist/cjs/errors.js +89 -31
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +2 -2
- package/dist/cjs/inline/mediaInlineCardAnalytics.js +2 -2
- package/dist/cjs/utils/analytics.js +18 -8
- package/dist/cjs/utils/objectURLCache.js +5 -0
- package/dist/cjs/utils/ufoExperiences.js +3 -3
- package/dist/es2019/card/card.js +1 -1
- package/dist/es2019/card/cardLoader.js +2 -5
- package/dist/es2019/card/cardSwitcher.js +4 -0
- package/dist/es2019/card/cardView.js +1 -2
- package/dist/es2019/card/getCardPreview/cache.js +3 -0
- package/dist/es2019/card/index.js +1 -1
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/progressBar/styledBar.js +1 -0
- package/dist/es2019/card/ui/titleBox/titleBoxComponents.js +1 -0
- package/dist/es2019/card/v2/cardV2.js +1031 -0
- package/dist/es2019/card/v2/cardV2Loader.js +58 -0
- package/dist/es2019/errors.js +45 -0
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/utils/analytics.js +17 -7
- package/dist/es2019/utils/objectURLCache.js +3 -0
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/actions.js +2 -2
- package/dist/esm/card/card.js +3 -3
- package/dist/esm/card/cardLoader.js +2 -5
- package/dist/esm/card/cardSwitcher.js +4 -0
- package/dist/esm/card/cardView.js +3 -4
- package/dist/esm/card/getCardPreview/cache.js +3 -0
- package/dist/esm/card/getCardPreview/index.js +2 -2
- package/dist/esm/card/index.js +1 -1
- package/dist/esm/card/media-card-analytics-error-boundary.js +3 -3
- package/dist/esm/card/ui/progressBar/styledBar.js +1 -0
- package/dist/esm/card/ui/titleBox/titleBoxComponents.js +1 -0
- package/dist/esm/card/v2/cardV2.js +1043 -0
- package/dist/esm/card/v2/cardV2Loader.js +78 -0
- package/dist/esm/errors.js +83 -30
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +2 -2
- package/dist/esm/inline/mediaInlineCardAnalytics.js +2 -2
- package/dist/esm/utils/analytics.js +19 -9
- package/dist/esm/utils/objectURLCache.js +5 -0
- package/dist/esm/utils/ufoExperiences.js +3 -3
- package/dist/types/card/cardSwitcher.d.ts +3 -0
- package/dist/types/card/getCardPreview/cache.d.ts +2 -0
- package/dist/types/card/index.d.ts +1 -1
- package/dist/types/card/v2/cardV2.d.ts +62 -0
- package/dist/types/card/v2/cardV2Loader.d.ts +4 -0
- package/dist/types/errors.d.ts +12 -0
- package/dist/types/types.d.ts +1 -0
- package/dist/types/utils/objectURLCache.d.ts +1 -0
- package/dist/types-ts4.5/card/cardSwitcher.d.ts +3 -0
- package/dist/types-ts4.5/card/getCardPreview/cache.d.ts +2 -0
- package/dist/types-ts4.5/card/index.d.ts +1 -1
- package/dist/types-ts4.5/card/v2/cardV2.d.ts +62 -0
- package/dist/types-ts4.5/card/v2/cardV2Loader.d.ts +4 -0
- package/dist/types-ts4.5/errors.d.ts +12 -0
- package/dist/types-ts4.5/types.d.ts +1 -0
- package/dist/types-ts4.5/utils/objectURLCache.d.ts +1 -0
- package/package.json +18 -9
- package/report.api.md +4 -1
- package/tmp/api-report-tmp.d.ts +4 -1
- package/dist/cjs/version.json +0 -5
- package/dist/es2019/version.json +0 -5
- package/dist/esm/version.json +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "76.
|
|
3
|
+
"version": "76.2.0",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,16 +37,18 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
40
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
41
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
40
|
+
"@atlaskit/dropdown-menu": "^11.12.0",
|
|
41
|
+
"@atlaskit/editor-shared-styles": "^2.6.0",
|
|
42
42
|
"@atlaskit/icon": "^21.12.0",
|
|
43
|
-
"@atlaskit/media-client": "^
|
|
44
|
-
"@atlaskit/media-
|
|
45
|
-
"@atlaskit/media-
|
|
43
|
+
"@atlaskit/media-client": "^24.0.0",
|
|
44
|
+
"@atlaskit/media-client-react": "^1.0.0",
|
|
45
|
+
"@atlaskit/media-common": "^9.0.0",
|
|
46
|
+
"@atlaskit/media-ui": "^24.0.0",
|
|
46
47
|
"@atlaskit/media-viewer": "^48.0.0",
|
|
48
|
+
"@atlaskit/platform-feature-flags": "^0.2.2",
|
|
47
49
|
"@atlaskit/spinner": "^15.5.0",
|
|
48
|
-
"@atlaskit/theme": "^12.
|
|
49
|
-
"@atlaskit/tokens": "^1.
|
|
50
|
+
"@atlaskit/theme": "^12.6.0",
|
|
51
|
+
"@atlaskit/tokens": "^1.20.0",
|
|
50
52
|
"@atlaskit/tooltip": "^17.8.0",
|
|
51
53
|
"@atlaskit/ufo": "^0.2.0",
|
|
52
54
|
"@babel/runtime": "^7.0.0",
|
|
@@ -66,7 +68,8 @@
|
|
|
66
68
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
67
69
|
"@atlaskit/inline-message": "^11.5.0",
|
|
68
70
|
"@atlaskit/media-core": "^34.1.0",
|
|
69
|
-
"@atlaskit/media-picker": "^66.
|
|
71
|
+
"@atlaskit/media-picker": "^66.2.0",
|
|
72
|
+
"@atlaskit/media-state": "^1.0.0",
|
|
70
73
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
71
74
|
"@atlaskit/ssr": "*",
|
|
72
75
|
"@atlaskit/visual-regression": "*",
|
|
@@ -75,6 +78,7 @@
|
|
|
75
78
|
"@atlassian/ufo": "^0.2.0",
|
|
76
79
|
"@testing-library/dom": "^8.17.1",
|
|
77
80
|
"@testing-library/react": "^12.1.5",
|
|
81
|
+
"@testing-library/user-event": "^14.4.3",
|
|
78
82
|
"@types/classnames": "^2.2.6",
|
|
79
83
|
"@types/react-loadable": "^5.4.1",
|
|
80
84
|
"deepcopy": "0.6.3",
|
|
@@ -87,6 +91,11 @@
|
|
|
87
91
|
"uuid": "^3.1.0",
|
|
88
92
|
"wait-for-expect": "^1.2.0"
|
|
89
93
|
},
|
|
94
|
+
"platform-feature-flags": {
|
|
95
|
+
"platform.media-experience.cardv2_7zann": {
|
|
96
|
+
"type": "boolean"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
90
99
|
"techstack": {
|
|
91
100
|
"@repo/internal": {
|
|
92
101
|
"design-tokens": [
|
package/report.api.md
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
/// <reference types="react" />
|
|
19
19
|
|
|
20
20
|
import { Component } from 'react';
|
|
21
|
+
import { FC } from 'react';
|
|
21
22
|
import { FileDetails } from '@atlaskit/media-client';
|
|
22
23
|
import { FileIdentifier } from '@atlaskit/media-client';
|
|
23
24
|
import { FileItem } from '@atlaskit/media-client';
|
|
@@ -37,7 +38,7 @@ import { WithMediaClientConfigProps } from '@atlaskit/media-client';
|
|
|
37
38
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
38
39
|
|
|
39
40
|
// @public (undocumented)
|
|
40
|
-
export const Card:
|
|
41
|
+
export const Card: FC<CardWithMediaClientConfigProps>;
|
|
41
42
|
|
|
42
43
|
// @public (undocumented)
|
|
43
44
|
export interface CardAction {
|
|
@@ -186,6 +187,8 @@ export interface CardState {
|
|
|
186
187
|
// (undocumented)
|
|
187
188
|
shouldAutoplay?: boolean;
|
|
188
189
|
// (undocumented)
|
|
190
|
+
shouldUpdateStateForIdentifier?: boolean;
|
|
191
|
+
// (undocumented)
|
|
189
192
|
status: CardStatus;
|
|
190
193
|
// (undocumented)
|
|
191
194
|
wasResolvedUpfrontPreview: boolean;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
/// <reference types="react" />
|
|
8
8
|
|
|
9
9
|
import { Component } from 'react';
|
|
10
|
+
import { FC } from 'react';
|
|
10
11
|
import { FileDetails } from '@atlaskit/media-client';
|
|
11
12
|
import { FileIdentifier } from '@atlaskit/media-client';
|
|
12
13
|
import { FileItem } from '@atlaskit/media-client';
|
|
@@ -26,7 +27,7 @@ import { WithMediaClientConfigProps } from '@atlaskit/media-client';
|
|
|
26
27
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
27
28
|
|
|
28
29
|
// @public (undocumented)
|
|
29
|
-
export const Card:
|
|
30
|
+
export const Card: FC<CardWithMediaClientConfigProps>;
|
|
30
31
|
|
|
31
32
|
// @public (undocumented)
|
|
32
33
|
export interface CardAction {
|
|
@@ -163,6 +164,8 @@ export interface CardState {
|
|
|
163
164
|
// (undocumented)
|
|
164
165
|
shouldAutoplay?: boolean;
|
|
165
166
|
// (undocumented)
|
|
167
|
+
shouldUpdateStateForIdentifier?: boolean;
|
|
168
|
+
// (undocumented)
|
|
166
169
|
status: CardStatus;
|
|
167
170
|
// (undocumented)
|
|
168
171
|
wasResolvedUpfrontPreview: boolean;
|
package/dist/cjs/version.json
DELETED
package/dist/es2019/version.json
DELETED