@atlaskit/media-viewer 48.3.7 → 48.3.8

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,12 @@
1
1
  # @atlaskit/media-viewer
2
2
 
3
+ ## 48.3.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#80866](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80866) [`5f63192be3ab`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5f63192be3ab) - Sanitise file id before logging to prevent PII/UGC leaks
8
+ - Updated dependencies
9
+
3
10
  ## 48.3.7
4
11
 
5
12
  ### Patch Changes
@@ -7,10 +7,10 @@ exports.componentName = exports.component = void 0;
7
7
  exports.fireAnalytics = fireAnalytics;
8
8
  exports.getFileAttributes = getFileAttributes;
9
9
  exports.packageVersion = exports.packageName = void 0;
10
- var _mediaCommon = require("@atlaskit/media-common");
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 = "48.3.7";
13
+ var packageVersion = exports.packageVersion = "48.3.8";
14
14
  function getFileAttributes(fileState) {
15
15
  if (!fileState) {
16
16
  return {
@@ -43,7 +43,7 @@ function getFileAttributes(fileState) {
43
43
 
44
44
  function fireAnalytics(payload, createAnalyticsEvent) {
45
45
  if (createAnalyticsEvent) {
46
- var ev = createAnalyticsEvent(payload);
47
- ev.fire(_mediaCommon.ANALYTICS_MEDIA_CHANNEL);
46
+ var ev = createAnalyticsEvent((0, _analytics.sanitiseAnalyticsPayload)(payload));
47
+ ev.fire(_analytics.ANALYTICS_MEDIA_CHANNEL);
48
48
  }
49
49
  }
@@ -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 = "48.3.7";
15
+ var packageVersion = "48.3.8";
16
16
  var ufoExperience;
17
17
  var getExperience = function getExperience() {
18
18
  if (!ufoExperience) {
@@ -1,7 +1,7 @@
1
- import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
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 = "48.3.7";
4
+ const packageVersion = "48.3.8";
5
5
  export { packageName, packageVersion, componentName, componentName as component };
6
6
  export function getFileAttributes(fileState) {
7
7
  if (!fileState) {
@@ -39,7 +39,7 @@ export function getFileAttributes(fileState) {
39
39
 
40
40
  export function fireAnalytics(payload, createAnalyticsEvent) {
41
41
  if (createAnalyticsEvent) {
42
- const ev = createAnalyticsEvent(payload);
42
+ const ev = createAnalyticsEvent(sanitiseAnalyticsPayload(payload));
43
43
  ev.fire(ANALYTICS_MEDIA_CHANNEL);
44
44
  }
45
45
  }
@@ -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 = "48.3.7";
5
+ const packageVersion = "48.3.8";
6
6
  let ufoExperience;
7
7
  const getExperience = () => {
8
8
  if (!ufoExperience) {
@@ -1,7 +1,7 @@
1
- import { ANALYTICS_MEDIA_CHANNEL } from '@atlaskit/media-common';
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 = "48.3.7";
4
+ var packageVersion = "48.3.8";
5
5
  export { packageName, packageVersion, componentName, componentName as component };
6
6
  export function getFileAttributes(fileState) {
7
7
  if (!fileState) {
@@ -35,7 +35,7 @@ export function getFileAttributes(fileState) {
35
35
 
36
36
  export function fireAnalytics(payload, createAnalyticsEvent) {
37
37
  if (createAnalyticsEvent) {
38
- var ev = createAnalyticsEvent(payload);
38
+ var ev = createAnalyticsEvent(sanitiseAnalyticsPayload(payload));
39
39
  ev.fire(ANALYTICS_MEDIA_CHANNEL);
40
40
  }
41
41
  }
@@ -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 = "48.3.7";
8
+ var packageVersion = "48.3.8";
9
9
  var ufoExperience;
10
10
  var getExperience = function getExperience() {
11
11
  if (!ufoExperience) {
@@ -1,5 +1,5 @@
1
1
  import { FileState, RequestMetadata } from '@atlaskit/media-client';
2
- import { FileAttributes, WithFileAttributes, FailureAttributes, WithTraceContext } from '@atlaskit/media-common';
2
+ import { FileAttributes, WithFileAttributes, FailureAttributes, WithTraceContext } from '@atlaskit/media-common/analytics';
3
3
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  import { PrimaryErrorReason } from '../errors';
5
5
  import { MediaViewerEventPayload } from './events';
@@ -1,5 +1,5 @@
1
1
  import { FileState, RequestMetadata } from '@atlaskit/media-client';
2
- import { FileAttributes, WithFileAttributes, FailureAttributes, WithTraceContext } from '@atlaskit/media-common';
2
+ import { FileAttributes, WithFileAttributes, FailureAttributes, WithTraceContext } from '@atlaskit/media-common/analytics';
3
3
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
4
  import { PrimaryErrorReason } from '../errors';
5
5
  import { MediaViewerEventPayload } from './events';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-viewer",
3
- "version": "48.3.7",
3
+ "version": "48.3.8",
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/"
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/icon-file-type": "^6.4.0",
44
44
  "@atlaskit/media-client": "^26.2.0",
45
45
  "@atlaskit/media-client-react": "^2.0.0",
46
- "@atlaskit/media-common": "^11.0.0",
46
+ "@atlaskit/media-common": "^11.1.0",
47
47
  "@atlaskit/media-ui": "^25.4.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.2.4",
49
49
  "@atlaskit/primitives": "^4.1.0",