@atlaskit/media-viewer 54.7.3 → 54.7.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 +12 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/analytics/ufoExperiences.js +1 -1
- package/dist/cjs/errorMessage.js +3 -3
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/ufoExperiences.js +1 -1
- package/dist/es2019/errorMessage.js +1 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/ufoExperiences.js +1 -1
- package/dist/esm/errorMessage.js +1 -1
- package/dist/types/viewers/svg/errors.d.ts +1 -1
- package/package.json +3 -3
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.7.
|
|
13
|
+
var packageVersion = exports.packageVersion = "54.7.4";
|
|
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.4";
|
|
18
18
|
var ufoExperience;
|
|
19
19
|
var getExperience = function getExperience() {
|
|
20
20
|
if (!ufoExperience) {
|
package/dist/cjs/errorMessage.js
CHANGED
|
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
var _reactIntl = require("react-intl");
|
|
16
16
|
var _messages = require("@atlaskit/media-ui/messages");
|
|
17
17
|
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
18
|
-
var
|
|
18
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
19
19
|
var _styleWrappers = require("./styleWrappers");
|
|
20
20
|
var _errorImages = require("./error-images");
|
|
21
21
|
var _analytics = require("./analytics");
|
|
@@ -69,7 +69,7 @@ var ErrorMessage = exports.ErrorMessage = /*#__PURE__*/function (_React$Componen
|
|
|
69
69
|
// CodeViewer's 10MB limit aren't a load failure - the file is simply too
|
|
70
70
|
// large for this viewer to preview. Show a dedicated "File is too large to
|
|
71
71
|
// preview" heading instead of the generic "Something went wrong" copy.
|
|
72
|
-
if (ErrorMessage.isPreviewTooLarge(error) && (0,
|
|
72
|
+
if (ErrorMessage.isPreviewTooLarge(error) && (0, _fg.fg)('platform_media_too_large_preview_state')) {
|
|
73
73
|
return {
|
|
74
74
|
icon: errorLoadingFileImage(formatMessage),
|
|
75
75
|
messages: [_messages.messages.file_too_large_to_preview, _messages.messages.file_too_large_description]
|
|
@@ -146,7 +146,7 @@ var ErrorMessage = exports.ErrorMessage = /*#__PURE__*/function (_React$Componen
|
|
|
146
146
|
}, {
|
|
147
147
|
key: "getEventPayload",
|
|
148
148
|
value: function getEventPayload(error, fileId, fileState, traceContext) {
|
|
149
|
-
if (fileState && ErrorMessage.isPreviewTooLarge(error) && (0,
|
|
149
|
+
if (fileState && ErrorMessage.isPreviewTooLarge(error) && (0, _fg.fg)('platform_media_too_large_preview_state')) {
|
|
150
150
|
return (0, _previewTooLarge.createPreviewTooLargeEvent)(error, fileState);
|
|
151
151
|
} else if (fileState && ErrorMessage.isPreviewUnsupported(error)) {
|
|
152
152
|
// this is not an SLI (load failure), its just a useful metric for files
|
|
@@ -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.4";
|
|
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.4";
|
|
8
8
|
let ufoExperience;
|
|
9
9
|
const getExperience = () => {
|
|
10
10
|
if (!ufoExperience) {
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
4
4
|
import { messages as i18nMessages } from '@atlaskit/media-ui/messages';
|
|
5
5
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { ErrorMessageWrapper, ErrorImage } from './styleWrappers';
|
|
8
8
|
import { errorLoadingFile } from './error-images';
|
|
9
9
|
import { fireAnalytics } from './analytics';
|
|
@@ -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.4";
|
|
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.4";
|
|
11
11
|
var ufoExperience;
|
|
12
12
|
var getExperience = function getExperience() {
|
|
13
13
|
if (!ufoExperience) {
|
package/dist/esm/errorMessage.js
CHANGED
|
@@ -12,7 +12,7 @@ import React from 'react';
|
|
|
12
12
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
13
13
|
import { messages as i18nMessages } from '@atlaskit/media-ui/messages';
|
|
14
14
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
16
|
import { ErrorMessageWrapper, ErrorImage } from './styleWrappers';
|
|
17
17
|
import { errorLoadingFile } from './error-images';
|
|
18
18
|
import { fireAnalytics } from './analytics';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MediaSVGErrorReason } from '@atlaskit/media-svg/media-svg-error';
|
|
2
2
|
import { type MediaViewerErrorReason } from '../../errors';
|
|
3
3
|
export declare const getErrorReason: (svgReason: MediaSVGErrorReason) => MediaViewerErrorReason;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-viewer",
|
|
3
|
-
"version": "54.7.
|
|
3
|
+
"version": "54.7.5",
|
|
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/"
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@atlaskit/spinner": "^20.3.0",
|
|
56
56
|
"@atlaskit/textfield": "^10.1.0",
|
|
57
57
|
"@atlaskit/theme": "^28.1.0",
|
|
58
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
59
|
-
"@atlaskit/tokens": "^16.
|
|
58
|
+
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
59
|
+
"@atlaskit/tokens": "^16.9.0",
|
|
60
60
|
"@atlaskit/tooltip": "^24.2.0",
|
|
61
61
|
"@atlaskit/ufo": "^1.0.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|