@atlaskit/media-viewer 54.7.5 → 54.8.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 +11 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/package.json +31 -31
- package/report.api.md +0 -129
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/media-viewer
|
|
2
2
|
|
|
3
|
+
## 54.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
8
|
+
Remove stale API report artifacts from published Platform packages.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 54.7.5
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -10,7 +10,7 @@ exports.packageVersion = exports.packageName = void 0;
|
|
|
10
10
|
var _analytics = require("@atlaskit/media-common/analytics");
|
|
11
11
|
var componentName = exports.component = exports.componentName = 'mediaViewer';
|
|
12
12
|
var packageName = exports.packageName = "@atlaskit/media-viewer";
|
|
13
|
-
var packageVersion = exports.packageVersion = "54.7.
|
|
13
|
+
var packageVersion = exports.packageVersion = "54.7.5";
|
|
14
14
|
function getFileAttributes(fileState) {
|
|
15
15
|
if (!fileState) {
|
|
16
16
|
return {
|
|
@@ -14,7 +14,7 @@ var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
16
|
var packageName = "@atlaskit/media-viewer";
|
|
17
|
-
var packageVersion = "54.7.
|
|
17
|
+
var packageVersion = "54.7.5";
|
|
18
18
|
var ufoExperience;
|
|
19
19
|
var getExperience = function getExperience() {
|
|
20
20
|
if (!ufoExperience) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
|
|
2
2
|
const componentName = 'mediaViewer';
|
|
3
3
|
const packageName = "@atlaskit/media-viewer";
|
|
4
|
-
const packageVersion = "54.7.
|
|
4
|
+
const packageVersion = "54.7.5";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -4,7 +4,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
|
4
4
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
const packageName = "@atlaskit/media-viewer";
|
|
7
|
-
const packageVersion = "54.7.
|
|
7
|
+
const packageVersion = "54.7.5";
|
|
8
8
|
let ufoExperience;
|
|
9
9
|
const getExperience = () => {
|
|
10
10
|
if (!ufoExperience) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ANALYTICS_MEDIA_CHANNEL, sanitiseAnalyticsPayload } from '@atlaskit/media-common/analytics';
|
|
2
2
|
var componentName = 'mediaViewer';
|
|
3
3
|
var packageName = "@atlaskit/media-viewer";
|
|
4
|
-
var packageVersion = "54.7.
|
|
4
|
+
var packageVersion = "54.7.5";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -7,7 +7,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
|
7
7
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
9
|
var packageName = "@atlaskit/media-viewer";
|
|
10
|
-
var packageVersion = "54.7.
|
|
10
|
+
var packageVersion = "54.7.5";
|
|
11
11
|
var ufoExperience;
|
|
12
12
|
var getExperience = function getExperience() {
|
|
13
13
|
if (!ufoExperience) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "54.
|
|
3
|
+
"version": "54.8.0",
|
|
4
4
|
"description": "MediaViewer is Atlassian's powerful solution for viewing files on the web. It's both powerful and extendable yet easy-to-integrate",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,35 +30,35 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atlaskit/analytics-next": "^12.
|
|
34
|
-
"@atlaskit/button": "^25.
|
|
35
|
-
"@atlaskit/code": "^19.
|
|
33
|
+
"@atlaskit/analytics-next": "^12.5.0",
|
|
34
|
+
"@atlaskit/button": "^25.3.0",
|
|
35
|
+
"@atlaskit/code": "^19.2.0",
|
|
36
36
|
"@atlaskit/css": "^1.1.0",
|
|
37
|
-
"@atlaskit/form": "^17.
|
|
38
|
-
"@atlaskit/heading": "^7.
|
|
39
|
-
"@atlaskit/icon": "^37.
|
|
40
|
-
"@atlaskit/icon-file-type": "^8.
|
|
37
|
+
"@atlaskit/form": "^17.2.0",
|
|
38
|
+
"@atlaskit/heading": "^7.2.0",
|
|
39
|
+
"@atlaskit/icon": "^37.6.0",
|
|
40
|
+
"@atlaskit/icon-file-type": "^8.3.0",
|
|
41
41
|
"@atlaskit/icon-lab": "^7.7.0",
|
|
42
|
-
"@atlaskit/media-client": "^37.
|
|
43
|
-
"@atlaskit/media-client-react": "^6.
|
|
44
|
-
"@atlaskit/media-common": "^14.
|
|
42
|
+
"@atlaskit/media-client": "^37.6.0",
|
|
43
|
+
"@atlaskit/media-client-react": "^6.3.0",
|
|
44
|
+
"@atlaskit/media-common": "^14.6.0",
|
|
45
45
|
"@atlaskit/media-document-viewer": "^2.1.0",
|
|
46
|
-
"@atlaskit/media-state": "^3.
|
|
46
|
+
"@atlaskit/media-state": "^3.2.0",
|
|
47
47
|
"@atlaskit/media-svg": "^3.3.0",
|
|
48
|
-
"@atlaskit/media-ui": "^30.
|
|
49
|
-
"@atlaskit/menu": "^10.
|
|
50
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
51
|
-
"@atlaskit/portal": "^6.
|
|
52
|
-
"@atlaskit/primitives": "^22.
|
|
48
|
+
"@atlaskit/media-ui": "^30.15.0",
|
|
49
|
+
"@atlaskit/menu": "^10.2.0",
|
|
50
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
51
|
+
"@atlaskit/portal": "^6.4.0",
|
|
52
|
+
"@atlaskit/primitives": "^22.5.0",
|
|
53
53
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
54
|
-
"@atlaskit/side-navigation": "^13.
|
|
55
|
-
"@atlaskit/spinner": "^20.
|
|
56
|
-
"@atlaskit/textfield": "^10.
|
|
57
|
-
"@atlaskit/theme": "^28.
|
|
54
|
+
"@atlaskit/side-navigation": "^13.3.0",
|
|
55
|
+
"@atlaskit/spinner": "^20.4.0",
|
|
56
|
+
"@atlaskit/textfield": "^10.2.0",
|
|
57
|
+
"@atlaskit/theme": "^28.2.0",
|
|
58
58
|
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
59
|
-
"@atlaskit/tokens": "^16.
|
|
60
|
-
"@atlaskit/tooltip": "^24.
|
|
61
|
-
"@atlaskit/ufo": "^1.
|
|
59
|
+
"@atlaskit/tokens": "^16.10.0",
|
|
60
|
+
"@atlaskit/tooltip": "^24.3.0",
|
|
61
|
+
"@atlaskit/ufo": "^1.1.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@codemirror/language": "6.10.8",
|
|
64
64
|
"@codemirror/language-data": "6.5.1",
|
|
@@ -87,18 +87,18 @@
|
|
|
87
87
|
"@af/integration-testing": "workspace:^",
|
|
88
88
|
"@af/suppress-react-warnings": "workspace:^",
|
|
89
89
|
"@af/visual-regression": "workspace:^",
|
|
90
|
-
"@atlaskit/media-core": "^38.
|
|
90
|
+
"@atlaskit/media-core": "^38.2.0",
|
|
91
91
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
92
92
|
"@atlaskit/media-test-data": "^4.0.0",
|
|
93
|
-
"@atlaskit/media-test-helpers": "^42.
|
|
94
|
-
"@atlaskit/modal-dialog": "^16.
|
|
95
|
-
"@atlaskit/select": "^22.
|
|
93
|
+
"@atlaskit/media-test-helpers": "^42.4.0",
|
|
94
|
+
"@atlaskit/modal-dialog": "^16.6.0",
|
|
95
|
+
"@atlaskit/select": "^22.11.0",
|
|
96
96
|
"@atlaskit/ssr": "workspace:^",
|
|
97
|
-
"@atlaskit/toggle": "^17.
|
|
97
|
+
"@atlaskit/toggle": "^17.3.0",
|
|
98
98
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
99
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
99
|
+
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
100
100
|
"@atlassian/testing-library": "^0.11.0",
|
|
101
|
-
"@atlassian/ufo": "^0.
|
|
101
|
+
"@atlassian/ufo": "^0.10.0",
|
|
102
102
|
"@testing-library/dom": "^10.1.0",
|
|
103
103
|
"@testing-library/react": "^16.3.0",
|
|
104
104
|
"@testing-library/user-event": "^14.4.3",
|
package/report.api.md
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
<!-- API Report Version: 2.3 -->
|
|
2
|
-
|
|
3
|
-
## API Report File for "@atlaskit/media-viewer"
|
|
4
|
-
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
6
|
-
> [API Extractor](https://api-extractor.com/).
|
|
7
|
-
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
8
|
-
|
|
9
|
-
### Table of contents
|
|
10
|
-
|
|
11
|
-
- [Main Entry Types](#main-entry-types)
|
|
12
|
-
- [Peer Dependencies](#peer-dependencies)
|
|
13
|
-
|
|
14
|
-
### Main Entry Types
|
|
15
|
-
|
|
16
|
-
<!--SECTION START: Main Entry Types-->
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
import { Identifier } from '@atlaskit/media-client';
|
|
20
|
-
import { MediaClient } from '@atlaskit/media-client';
|
|
21
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
22
|
-
import { default as React_2 } from 'react';
|
|
23
|
-
import { ReactNode } from 'react';
|
|
24
|
-
import type { WithMediaClientConfigProps } from '@atlaskit/media-client-react';
|
|
25
|
-
|
|
26
|
-
// @public (undocumented)
|
|
27
|
-
interface AsyncMediaViewerState {
|
|
28
|
-
// (undocumented)
|
|
29
|
-
MediaViewer?: MediaViewerWithMediaClientConfigComponent;
|
|
30
|
-
// (undocumented)
|
|
31
|
-
MediaViewerErrorBoundary?: MediaViewerErrorBoundaryComponent;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// @public (undocumented)
|
|
35
|
-
export type MediaMessage = {
|
|
36
|
-
source: 'media';
|
|
37
|
-
event: 'mediaViewerClosed' | 'mediaViewerOpened';
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
// @public (undocumented)
|
|
41
|
-
export class MediaViewer extends React_2.PureComponent<
|
|
42
|
-
MediaViewerWithMediaClientConfigProps,
|
|
43
|
-
AsyncMediaViewerState
|
|
44
|
-
> {
|
|
45
|
-
// (undocumented)
|
|
46
|
-
static displayName: string;
|
|
47
|
-
// (undocumented)
|
|
48
|
-
static MediaViewer?: MediaViewerWithMediaClientConfigComponent;
|
|
49
|
-
// (undocumented)
|
|
50
|
-
static MediaViewerErrorBoundary?: MediaViewerErrorBoundaryComponent;
|
|
51
|
-
// (undocumented)
|
|
52
|
-
render(): JSX.Element;
|
|
53
|
-
// (undocumented)
|
|
54
|
-
state: AsyncMediaViewerState;
|
|
55
|
-
// (undocumented)
|
|
56
|
-
UNSAFE_componentWillMount(): Promise<void>;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// @public (undocumented)
|
|
60
|
-
type MediaViewerAnalyticsErrorBoundaryProps = {
|
|
61
|
-
data?: {
|
|
62
|
-
[k: string]: any;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
// @public (undocumented)
|
|
67
|
-
type MediaViewerErrorBoundaryComponent =
|
|
68
|
-
React_2.ComponentType<MediaViewerAnalyticsErrorBoundaryProps>;
|
|
69
|
-
|
|
70
|
-
// @public (undocumented)
|
|
71
|
-
export interface MediaViewerExtensions {
|
|
72
|
-
// (undocumented)
|
|
73
|
-
sidebar?: {
|
|
74
|
-
icon: ReactNode;
|
|
75
|
-
renderer: (selectedIdentifier: Identifier, actions: MediaViewerExtensionsActions) => ReactNode;
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// @public (undocumented)
|
|
80
|
-
export interface MediaViewerExtensionsActions {
|
|
81
|
-
// (undocumented)
|
|
82
|
-
close: () => void;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// @public (undocumented)
|
|
86
|
-
export interface MediaViewerProps {
|
|
87
|
-
// (undocumented)
|
|
88
|
-
readonly collectionName: string;
|
|
89
|
-
// (undocumented)
|
|
90
|
-
readonly contextId?: string;
|
|
91
|
-
// (undocumented)
|
|
92
|
-
readonly extensions?: MediaViewerExtensions;
|
|
93
|
-
// (undocumented)
|
|
94
|
-
readonly featureFlags?: MediaFeatureFlags;
|
|
95
|
-
// (undocumented)
|
|
96
|
-
readonly items: Array<Identifier>;
|
|
97
|
-
// (undocumented)
|
|
98
|
-
readonly mediaClient: MediaClient;
|
|
99
|
-
// (undocumented)
|
|
100
|
-
readonly onClose?: () => void;
|
|
101
|
-
// (undocumented)
|
|
102
|
-
readonly selectedItem: Identifier;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// @public (undocumented)
|
|
106
|
-
type MediaViewerWithMediaClientConfigComponent =
|
|
107
|
-
React_2.ComponentType<MediaViewerWithMediaClientConfigProps>;
|
|
108
|
-
|
|
109
|
-
// @public (undocumented)
|
|
110
|
-
type MediaViewerWithMediaClientConfigProps = WithMediaClientConfigProps<MediaViewerProps>;
|
|
111
|
-
|
|
112
|
-
// (No @packageDocumentation comment for this package)
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
<!--SECTION END: Main Entry Types-->
|
|
116
|
-
|
|
117
|
-
### Peer Dependencies
|
|
118
|
-
|
|
119
|
-
<!--SECTION START: Peer Dependencies-->
|
|
120
|
-
|
|
121
|
-
```json
|
|
122
|
-
{
|
|
123
|
-
"@emotion/react": "^11.7.1",
|
|
124
|
-
"react": "^16.8.0",
|
|
125
|
-
"react-intl": "npm:react-intl@^5.18.1"
|
|
126
|
-
}
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
<!--SECTION END: Peer Dependencies-->
|