@atlaskit/media-common 11.2.0 → 11.2.2

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.
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _MediaAnalyticsContext = require("@atlaskit/analytics-namespaced-context/MediaAnalyticsContext");
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -57,7 +57,9 @@ var defaultMediaFeatureFlags = exports.defaultMediaFeatureFlags = {
57
57
  // We can't yet switch this feature on
58
58
  // TODO https://product-fabric.atlassian.net/browse/MEX-104
59
59
  folderUploads: false,
60
- commentsOnMedia: false
60
+ commentsOnMedia: false,
61
+ commentsOnMediaIncludePage: false,
62
+ commentsOnMediaInsertExcerpt: false
61
63
  };
62
64
 
63
65
  /**
@@ -11,13 +11,17 @@ var productKeys = {
11
11
  */
12
12
  mediaInline: 'confluence.frontend.fabric.editor.media.inline',
13
13
  folderUploads: 'confluence.frontend.media.picker.folder.uploads',
14
- commentsOnMedia: 'confluence.frontend.renderer.comments-on-media'
14
+ commentsOnMedia: 'confluence.frontend.renderer.comments-on-media',
15
+ commentsOnMediaIncludePage: 'confluence.frontend.comments-on-media.bug.include.page_tnawt',
16
+ commentsOnMediaInsertExcerpt: 'confluence.frontend.comments-on-media.bug.insert.excerpt'
15
17
  },
16
18
  jira: {
17
19
  // Manged by Linking Platform. No Rollout plan found for Jira
18
20
  mediaInline: '',
19
21
  folderUploads: 'issue.details.media-picker-folder-upload',
20
- commentsOnMedia: ''
22
+ commentsOnMedia: '',
23
+ commentsOnMediaIncludePage: '',
24
+ commentsOnMediaInsertExcerpt: ''
21
25
  }
22
26
  };
23
27
  var getProductKeys = exports.getProductKeys = function getProductKeys() {
@@ -1,19 +1 @@
1
- import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context/MediaAnalyticsContext';
2
-
3
- // Base Media Analytics Event Shape
4
-
5
- // Base Attributes ...
6
-
7
- // Operational Events ...
8
- // https://hello.atlassian.net/wiki/spaces/MEASURE/pages/134329315/Operational+Events
9
-
10
- // UI Events ...
11
- // https://hello.atlassian.net/wiki/spaces/MEASURE/pages/134329336/UI+Events
12
-
13
- // Screen Events ...
14
- // https://hello.atlassian.net/wiki/spaces/MEASURE/pages/134329341/Screen+Events
15
-
16
- // Track Events ...
17
- // https://hello.atlassian.net/wiki/spaces/MEASURE/pages/134329319/Track+Events
18
-
19
- // Media Analytics Context Types
1
+ export {};
@@ -36,7 +36,9 @@ export const defaultMediaFeatureFlags = {
36
36
  // We can't yet switch this feature on
37
37
  // TODO https://product-fabric.atlassian.net/browse/MEX-104
38
38
  folderUploads: false,
39
- commentsOnMedia: false
39
+ commentsOnMedia: false,
40
+ commentsOnMediaIncludePage: false,
41
+ commentsOnMediaInsertExcerpt: false
40
42
  };
41
43
 
42
44
  /**
@@ -5,13 +5,17 @@ const productKeys = {
5
5
  */
6
6
  mediaInline: 'confluence.frontend.fabric.editor.media.inline',
7
7
  folderUploads: 'confluence.frontend.media.picker.folder.uploads',
8
- commentsOnMedia: 'confluence.frontend.renderer.comments-on-media'
8
+ commentsOnMedia: 'confluence.frontend.renderer.comments-on-media',
9
+ commentsOnMediaIncludePage: 'confluence.frontend.comments-on-media.bug.include.page_tnawt',
10
+ commentsOnMediaInsertExcerpt: 'confluence.frontend.comments-on-media.bug.insert.excerpt'
9
11
  },
10
12
  jira: {
11
13
  // Manged by Linking Platform. No Rollout plan found for Jira
12
14
  mediaInline: '',
13
15
  folderUploads: 'issue.details.media-picker-folder-upload',
14
- commentsOnMedia: ''
16
+ commentsOnMedia: '',
17
+ commentsOnMediaIncludePage: '',
18
+ commentsOnMediaInsertExcerpt: ''
15
19
  }
16
20
  };
17
21
  export const getProductKeys = () => productKeys;
@@ -1,19 +1 @@
1
- import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context/MediaAnalyticsContext';
2
-
3
- // Base Media Analytics Event Shape
4
-
5
- // Base Attributes ...
6
-
7
- // Operational Events ...
8
- // https://hello.atlassian.net/wiki/spaces/MEASURE/pages/134329315/Operational+Events
9
-
10
- // UI Events ...
11
- // https://hello.atlassian.net/wiki/spaces/MEASURE/pages/134329336/UI+Events
12
-
13
- // Screen Events ...
14
- // https://hello.atlassian.net/wiki/spaces/MEASURE/pages/134329341/Screen+Events
15
-
16
- // Track Events ...
17
- // https://hello.atlassian.net/wiki/spaces/MEASURE/pages/134329319/Track+Events
18
-
19
- // Media Analytics Context Types
1
+ export {};
@@ -49,7 +49,9 @@ export var defaultMediaFeatureFlags = {
49
49
  // We can't yet switch this feature on
50
50
  // TODO https://product-fabric.atlassian.net/browse/MEX-104
51
51
  folderUploads: false,
52
- commentsOnMedia: false
52
+ commentsOnMedia: false,
53
+ commentsOnMediaIncludePage: false,
54
+ commentsOnMediaInsertExcerpt: false
53
55
  };
54
56
 
55
57
  /**
@@ -5,13 +5,17 @@ var productKeys = {
5
5
  */
6
6
  mediaInline: 'confluence.frontend.fabric.editor.media.inline',
7
7
  folderUploads: 'confluence.frontend.media.picker.folder.uploads',
8
- commentsOnMedia: 'confluence.frontend.renderer.comments-on-media'
8
+ commentsOnMedia: 'confluence.frontend.renderer.comments-on-media',
9
+ commentsOnMediaIncludePage: 'confluence.frontend.comments-on-media.bug.include.page_tnawt',
10
+ commentsOnMediaInsertExcerpt: 'confluence.frontend.comments-on-media.bug.insert.excerpt'
9
11
  },
10
12
  jira: {
11
13
  // Manged by Linking Platform. No Rollout plan found for Jira
12
14
  mediaInline: '',
13
15
  folderUploads: 'issue.details.media-picker-folder-upload',
14
- commentsOnMedia: ''
16
+ commentsOnMedia: '',
17
+ commentsOnMediaIncludePage: '',
18
+ commentsOnMediaInsertExcerpt: ''
15
19
  }
16
20
  };
17
21
  export var getProductKeys = function getProductKeys() {
@@ -1,6 +1,6 @@
1
- import { GasCorePayload } from '@atlaskit/analytics-gas-types';
2
- import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context/MediaAnalyticsContext';
3
- import { MediaType, FileStatus, WithMediaFeatureFlags } from '..';
1
+ import { type GasCorePayload } from '@atlaskit/analytics-gas-types';
2
+ import { type MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context/MediaAnalyticsContext';
3
+ import { type MediaType, type FileStatus, type WithMediaFeatureFlags } from '..';
4
4
  export type BaseAttributes = {};
5
5
  export type PackageAttributes = {
6
6
  packageName: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ContextPublicAttributes } from './types';
2
+ import { type ContextPublicAttributes } from './types';
3
3
  /**
4
4
  * HOC for attaching MediaAnalyticsContext to a top-level React Component.
5
5
  *
@@ -2,6 +2,8 @@ export interface MediaFeatureFlags {
2
2
  mediaInline?: boolean;
3
3
  folderUploads?: boolean;
4
4
  commentsOnMedia?: boolean;
5
+ commentsOnMediaIncludePage?: boolean;
6
+ commentsOnMediaInsertExcerpt?: boolean;
5
7
  }
6
8
  export interface WithMediaFeatureFlags {
7
9
  featureFlags?: MediaFeatureFlags;
@@ -1,4 +1,4 @@
1
- import { MediaType } from '..';
1
+ import { type MediaType } from '..';
2
2
  export { isImageMimeTypeSupportedByBrowser, isDocumentMimeTypeSupportedByBrowser, isAudioMimeTypeSupportedByBrowser, isVideoMimeTypeSupportedByBrowser, isMimeTypeSupportedByBrowser, } from './isMimeTypeSupportedByBrowser';
3
3
  export { isImageMimeTypeSupportedByServer, isDocumentMimeTypeSupportedByServer, isAudioMimeTypeSupportedByServer, isVideoMimeTypeSupportedByServer, isUnknownMimeTypeSupportedByServer, isMimeTypeSupportedByServer, } from './isMimeTypeSupportedByServer';
4
4
  export declare const getMediaTypeFromMimeType: (mimeType: string) => MediaType;
@@ -1,6 +1,6 @@
1
- import { GasCorePayload } from '@atlaskit/analytics-gas-types';
2
- import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context/MediaAnalyticsContext';
3
- import { MediaType, FileStatus, WithMediaFeatureFlags } from '..';
1
+ import { type GasCorePayload } from '@atlaskit/analytics-gas-types';
2
+ import { type MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context/MediaAnalyticsContext';
3
+ import { type MediaType, type FileStatus, type WithMediaFeatureFlags } from '..';
4
4
  export type BaseAttributes = {};
5
5
  export type PackageAttributes = {
6
6
  packageName: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ContextPublicAttributes } from './types';
2
+ import { type ContextPublicAttributes } from './types';
3
3
  /**
4
4
  * HOC for attaching MediaAnalyticsContext to a top-level React Component.
5
5
  *
@@ -2,6 +2,8 @@ export interface MediaFeatureFlags {
2
2
  mediaInline?: boolean;
3
3
  folderUploads?: boolean;
4
4
  commentsOnMedia?: boolean;
5
+ commentsOnMediaIncludePage?: boolean;
6
+ commentsOnMediaInsertExcerpt?: boolean;
5
7
  }
6
8
  export interface WithMediaFeatureFlags {
7
9
  featureFlags?: MediaFeatureFlags;
@@ -1,4 +1,4 @@
1
- import { MediaType } from '..';
1
+ import { type MediaType } from '..';
2
2
  export { isImageMimeTypeSupportedByBrowser, isDocumentMimeTypeSupportedByBrowser, isAudioMimeTypeSupportedByBrowser, isVideoMimeTypeSupportedByBrowser, isMimeTypeSupportedByBrowser, } from './isMimeTypeSupportedByBrowser';
3
3
  export { isImageMimeTypeSupportedByServer, isDocumentMimeTypeSupportedByServer, isAudioMimeTypeSupportedByServer, isVideoMimeTypeSupportedByServer, isUnknownMimeTypeSupportedByServer, isMimeTypeSupportedByServer, } from './isMimeTypeSupportedByServer';
4
4
  export declare const getMediaTypeFromMimeType: (mimeType: string) => MediaType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-common",
3
- "version": "11.2.0",
3
+ "version": "11.2.2",
4
4
  "description": "Includes common utilities used by other media packages",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -60,11 +60,9 @@
60
60
  }
61
61
  },
62
62
  "devDependencies": {
63
- "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
64
63
  "enzyme": "^3.10.0",
65
64
  "react": "^16.8.0",
66
65
  "react-dom": "^16.8.0",
67
66
  "typescript": "~5.4.2"
68
- },
69
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
67
+ }
70
68
  }