@atlaskit/media-viewer 54.5.39 → 54.5.41
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 +12 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/viewers/image/interactive-img.js +0 -1
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/viewers/image/interactive-img.js +0 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/dist/esm/viewers/image/interactive-img.js +0 -1
- package/package.json +4 -4
- package/media-viewer.docs.tsx +0 -46
package/CHANGELOG.md
CHANGED
|
@@ -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.5.
|
|
13
|
+
var packageVersion = exports.packageVersion = "54.5.40";
|
|
14
14
|
function getFileAttributes(fileState) {
|
|
15
15
|
if (!fileState) {
|
|
16
16
|
return {
|
|
@@ -13,7 +13,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
13
13
|
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; }
|
|
14
14
|
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; }
|
|
15
15
|
var packageName = "@atlaskit/media-viewer";
|
|
16
|
-
var packageVersion = "54.5.
|
|
16
|
+
var packageVersion = "54.5.40";
|
|
17
17
|
var ufoExperience;
|
|
18
18
|
var getExperience = function getExperience() {
|
|
19
19
|
if (!ufoExperience) {
|
|
@@ -253,7 +253,6 @@ var InteractiveImgComponent = exports.InteractiveImgComponent = /*#__PURE__*/fun
|
|
|
253
253
|
isDragging = _this$state5.isDragging;
|
|
254
254
|
var canDrag = camera && zoomLevel.value > camera.scaleToFit || false;
|
|
255
255
|
// We use style attr instead of SC prop for perf reasons
|
|
256
|
-
// @ts-ignore
|
|
257
256
|
var imgStyle = camera && camera.scaledImg(zoomLevel.value) || {
|
|
258
257
|
visibility: 'hidden'
|
|
259
258
|
};
|
|
@@ -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.5.
|
|
4
|
+
const packageVersion = "54.5.40";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -3,7 +3,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
|
3
3
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
5
|
const packageName = "@atlaskit/media-viewer";
|
|
6
|
-
const packageVersion = "54.5.
|
|
6
|
+
const packageVersion = "54.5.40";
|
|
7
7
|
let ufoExperience;
|
|
8
8
|
const getExperience = () => {
|
|
9
9
|
if (!ufoExperience) {
|
|
@@ -241,7 +241,6 @@ export class InteractiveImgComponent extends React.Component {
|
|
|
241
241
|
} = this.state;
|
|
242
242
|
const canDrag = camera && zoomLevel.value > camera.scaleToFit || false;
|
|
243
243
|
// We use style attr instead of SC prop for perf reasons
|
|
244
|
-
// @ts-ignore
|
|
245
244
|
const imgStyle = camera && camera.scaledImg(zoomLevel.value) || {
|
|
246
245
|
visibility: 'hidden'
|
|
247
246
|
};
|
|
@@ -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.5.
|
|
4
|
+
var packageVersion = "54.5.40";
|
|
5
5
|
export { packageName, packageVersion, componentName, componentName as component };
|
|
6
6
|
export function getFileAttributes(fileState) {
|
|
7
7
|
if (!fileState) {
|
|
@@ -6,7 +6,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
|
|
|
6
6
|
import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
var packageName = "@atlaskit/media-viewer";
|
|
9
|
-
var packageVersion = "54.5.
|
|
9
|
+
var packageVersion = "54.5.40";
|
|
10
10
|
var ufoExperience;
|
|
11
11
|
var getExperience = function getExperience() {
|
|
12
12
|
if (!ufoExperience) {
|
|
@@ -245,7 +245,6 @@ export var InteractiveImgComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
245
245
|
isDragging = _this$state5.isDragging;
|
|
246
246
|
var canDrag = camera && zoomLevel.value > camera.scaleToFit || false;
|
|
247
247
|
// We use style attr instead of SC prop for perf reasons
|
|
248
|
-
// @ts-ignore
|
|
249
248
|
var imgStyle = camera && camera.scaledImg(zoomLevel.value) || {
|
|
250
249
|
visibility: 'hidden'
|
|
251
250
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "54.5.
|
|
3
|
+
"version": "54.5.41",
|
|
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/"
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"@atlaskit/spinner": "^20.1.0",
|
|
55
55
|
"@atlaskit/textfield": "^10.0.0",
|
|
56
56
|
"@atlaskit/theme": "^28.0.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
58
|
-
"@atlaskit/tokens": "^16.
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^148.0.0",
|
|
58
|
+
"@atlaskit/tokens": "^16.7.0",
|
|
59
59
|
"@atlaskit/tooltip": "^24.0.0",
|
|
60
60
|
"@atlaskit/ufo": "^1.0.0",
|
|
61
61
|
"@babel/runtime": "^7.0.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@codemirror/language-data": "6.5.1",
|
|
64
64
|
"@codemirror/state": "6.5.1",
|
|
65
65
|
"@codemirror/view": "6.36.2",
|
|
66
|
-
"@compiled/react": "^1.0.
|
|
66
|
+
"@compiled/react": "^1.0.2",
|
|
67
67
|
"@kenjiuno/msgreader": "^1.2.6",
|
|
68
68
|
"@lezer/highlight": "1.2.1",
|
|
69
69
|
"deep-equal": "^1.0.1",
|
package/media-viewer.docs.tsx
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
|
-
|
|
3
|
-
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
4
|
-
|
|
5
|
-
import packageJson from './package.json';
|
|
6
|
-
|
|
7
|
-
const packagePath = path.resolve(__dirname);
|
|
8
|
-
|
|
9
|
-
const documentation: StructuredContentSource = {
|
|
10
|
-
components: [
|
|
11
|
-
{
|
|
12
|
-
name: 'MediaViewer',
|
|
13
|
-
description:
|
|
14
|
-
"MediaViewer is Atlassian's powerful solution for viewing files on the web. It supports images, video, audio, documents, and more in a full-screen overlay.",
|
|
15
|
-
status: 'general-availability',
|
|
16
|
-
import: {
|
|
17
|
-
name: 'MediaViewer',
|
|
18
|
-
package: '@atlaskit/media-viewer',
|
|
19
|
-
type: 'named',
|
|
20
|
-
packagePath,
|
|
21
|
-
packageJson,
|
|
22
|
-
},
|
|
23
|
-
usageGuidelines: [
|
|
24
|
-
'Use MediaViewer to provide a full-screen preview of files and media.',
|
|
25
|
-
'Use for viewing images, videos, PDFs, and other document types without leaving the current context.',
|
|
26
|
-
'Supports navigation between multiple files in a collection.',
|
|
27
|
-
],
|
|
28
|
-
examples: [
|
|
29
|
-
{
|
|
30
|
-
name: 'Basic',
|
|
31
|
-
description: 'Basic usage of MediaViewer with a single file.',
|
|
32
|
-
source: path.resolve(packagePath, './examples/0-basic-example.tsx'),
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: 'Multi-file',
|
|
36
|
-
description: 'MediaViewer with multiple files and navigation.',
|
|
37
|
-
source: path.resolve(packagePath, './examples/1-multi-file-previews.tsx'),
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
keywords: ['media', 'viewer', 'preview', 'file', 'image', 'video', 'pdf'],
|
|
41
|
-
categories: ['media', 'overlay'],
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export default documentation;
|