@atlaskit/media-viewer 52.3.2 → 52.3.3

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/media-viewer
2
2
 
3
+ ## 52.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#176481](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/176481)
8
+ [`5d43410068866`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5d43410068866) -
9
+ Only show attachment download blocking tooltip when downloads should be blocked
10
+
3
11
  ## 52.3.2
4
12
 
5
13
  ### 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 = "52.3.1";
13
+ var packageVersion = exports.packageVersion = "52.3.2";
14
14
  function getFileAttributes(fileState) {
15
15
  if (!fileState) {
16
16
  return {
@@ -12,7 +12,7 @@ var _mediaCommon = require("@atlaskit/media-common");
12
12
  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; }
13
13
  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; }
14
14
  var packageName = "@atlaskit/media-viewer";
15
- var packageVersion = "52.3.1";
15
+ var packageVersion = "52.3.2";
16
16
  var ufoExperience;
17
17
  var getExperience = function getExperience() {
18
18
  if (!ufoExperience) {
@@ -67,7 +67,7 @@ var ArchiveSidebarFolderEntryBase = /*#__PURE__*/function (_React$Component) {
67
67
  var _this$props2 = _this.props,
68
68
  shouldRenderAbuseModal = _this$props2.shouldRenderAbuseModal,
69
69
  intl = _this$props2.intl;
70
- var tooltip = intl.formatMessage(_mediaUi.messages.download_disabled_security_policy);
70
+ var tooltip = enforceDataSecurityPolicy ? intl.formatMessage(_mediaUi.messages.download_disabled_security_policy) : undefined;
71
71
  var downloadFn = function downloadFn() {
72
72
  return _this.downloadZipEntry(entry, root);
73
73
  };
@@ -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 = "52.3.1";
4
+ const packageVersion = "52.3.2";
5
5
  export { packageName, packageVersion, componentName, componentName as component };
6
6
  export function getFileAttributes(fileState) {
7
7
  if (!fileState) {
@@ -2,7 +2,7 @@ import { UFOExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atl
2
2
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
3
3
  import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
4
4
  const packageName = "@atlaskit/media-viewer";
5
- const packageVersion = "52.3.1";
5
+ const packageVersion = "52.3.2";
6
6
  let ufoExperience;
7
7
  const getExperience = () => {
8
8
  if (!ufoExperience) {
@@ -46,7 +46,7 @@ class ArchiveSidebarFolderEntryBase extends React.Component {
46
46
  shouldRenderAbuseModal,
47
47
  intl
48
48
  } = this.props;
49
- const tooltip = intl.formatMessage(messages.download_disabled_security_policy);
49
+ const tooltip = enforceDataSecurityPolicy ? intl.formatMessage(messages.download_disabled_security_policy) : undefined;
50
50
  const downloadFn = () => this.downloadZipEntry(entry, root);
51
51
  return /*#__PURE__*/React.createElement(ArchiveDownloadButton, {
52
52
  downloadFn: downloadFn,
@@ -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 = "52.3.1";
4
+ var packageVersion = "52.3.2";
5
5
  export { packageName, packageVersion, componentName, componentName as component };
6
6
  export function getFileAttributes(fileState) {
7
7
  if (!fileState) {
@@ -5,7 +5,7 @@ import { UFOExperience, ExperiencePerformanceTypes, ExperienceTypes } from '@atl
5
5
  import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
6
6
  import { getFeatureFlagKeysAllProducts } from '@atlaskit/media-common';
7
7
  var packageName = "@atlaskit/media-viewer";
8
- var packageVersion = "52.3.1";
8
+ var packageVersion = "52.3.2";
9
9
  var ufoExperience;
10
10
  var getExperience = function getExperience() {
11
11
  if (!ufoExperience) {
@@ -60,7 +60,7 @@ var ArchiveSidebarFolderEntryBase = /*#__PURE__*/function (_React$Component) {
60
60
  var _this$props2 = _this.props,
61
61
  shouldRenderAbuseModal = _this$props2.shouldRenderAbuseModal,
62
62
  intl = _this$props2.intl;
63
- var tooltip = intl.formatMessage(messages.download_disabled_security_policy);
63
+ var tooltip = enforceDataSecurityPolicy ? intl.formatMessage(messages.download_disabled_security_policy) : undefined;
64
64
  var downloadFn = function downloadFn() {
65
65
  return _this.downloadZipEntry(entry, root);
66
66
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-viewer",
3
- "version": "52.3.2",
3
+ "version": "52.3.3",
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/"
@@ -42,15 +42,15 @@
42
42
  "@atlaskit/css": "^0.11.0",
43
43
  "@atlaskit/form": "^12.0.0",
44
44
  "@atlaskit/heading": "^5.2.0",
45
- "@atlaskit/icon": "^27.0.0",
45
+ "@atlaskit/icon": "^27.1.0",
46
46
  "@atlaskit/icon-file-type": "^7.0.0",
47
47
  "@atlaskit/icon-lab": "^5.0.0",
48
- "@atlaskit/media-client": "^34.0.0",
48
+ "@atlaskit/media-client": "^34.1.0",
49
49
  "@atlaskit/media-client-react": "^4.1.0",
50
50
  "@atlaskit/media-common": "^12.2.0",
51
51
  "@atlaskit/media-document-viewer": "^0.2.0",
52
52
  "@atlaskit/media-svg": "^2.1.0",
53
- "@atlaskit/media-ui": "^28.3.0",
53
+ "@atlaskit/media-ui": "^28.4.0",
54
54
  "@atlaskit/platform-feature-flags": "^1.1.0",
55
55
  "@atlaskit/portal": "^5.1.0",
56
56
  "@atlaskit/primitives": "^14.9.0",
@@ -58,7 +58,7 @@
58
58
  "@atlaskit/spinner": "^18.0.0",
59
59
  "@atlaskit/textfield": "^8.0.0",
60
60
  "@atlaskit/theme": "^18.0.0",
61
- "@atlaskit/tokens": "^5.3.0",
61
+ "@atlaskit/tokens": "^5.4.0",
62
62
  "@atlaskit/tooltip": "^20.3.0",
63
63
  "@atlaskit/ufo": "^0.4.0",
64
64
  "@babel/runtime": "^7.0.0",