@atlaskit/media-common 11.2.1 → 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
+ });
@@ -58,7 +58,8 @@ var defaultMediaFeatureFlags = exports.defaultMediaFeatureFlags = {
58
58
  // TODO https://product-fabric.atlassian.net/browse/MEX-104
59
59
  folderUploads: false,
60
60
  commentsOnMedia: false,
61
- commentsOnMediaIncludePage: false
61
+ commentsOnMediaIncludePage: false,
62
+ commentsOnMediaInsertExcerpt: false
62
63
  };
63
64
 
64
65
  /**
@@ -12,14 +12,16 @@ var productKeys = {
12
12
  mediaInline: 'confluence.frontend.fabric.editor.media.inline',
13
13
  folderUploads: 'confluence.frontend.media.picker.folder.uploads',
14
14
  commentsOnMedia: 'confluence.frontend.renderer.comments-on-media',
15
- commentsOnMediaIncludePage: 'confluence.frontend.comments-on-media.bug.include.page_tnawt'
15
+ commentsOnMediaIncludePage: 'confluence.frontend.comments-on-media.bug.include.page_tnawt',
16
+ commentsOnMediaInsertExcerpt: 'confluence.frontend.comments-on-media.bug.insert.excerpt'
16
17
  },
17
18
  jira: {
18
19
  // Manged by Linking Platform. No Rollout plan found for Jira
19
20
  mediaInline: '',
20
21
  folderUploads: 'issue.details.media-picker-folder-upload',
21
22
  commentsOnMedia: '',
22
- commentsOnMediaIncludePage: ''
23
+ commentsOnMediaIncludePage: '',
24
+ commentsOnMediaInsertExcerpt: ''
23
25
  }
24
26
  };
25
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 {};
@@ -37,7 +37,8 @@ export const defaultMediaFeatureFlags = {
37
37
  // TODO https://product-fabric.atlassian.net/browse/MEX-104
38
38
  folderUploads: false,
39
39
  commentsOnMedia: false,
40
- commentsOnMediaIncludePage: false
40
+ commentsOnMediaIncludePage: false,
41
+ commentsOnMediaInsertExcerpt: false
41
42
  };
42
43
 
43
44
  /**
@@ -6,14 +6,16 @@ const productKeys = {
6
6
  mediaInline: 'confluence.frontend.fabric.editor.media.inline',
7
7
  folderUploads: 'confluence.frontend.media.picker.folder.uploads',
8
8
  commentsOnMedia: 'confluence.frontend.renderer.comments-on-media',
9
- commentsOnMediaIncludePage: 'confluence.frontend.comments-on-media.bug.include.page_tnawt'
9
+ commentsOnMediaIncludePage: 'confluence.frontend.comments-on-media.bug.include.page_tnawt',
10
+ commentsOnMediaInsertExcerpt: 'confluence.frontend.comments-on-media.bug.insert.excerpt'
10
11
  },
11
12
  jira: {
12
13
  // Manged by Linking Platform. No Rollout plan found for Jira
13
14
  mediaInline: '',
14
15
  folderUploads: 'issue.details.media-picker-folder-upload',
15
16
  commentsOnMedia: '',
16
- commentsOnMediaIncludePage: ''
17
+ commentsOnMediaIncludePage: '',
18
+ commentsOnMediaInsertExcerpt: ''
17
19
  }
18
20
  };
19
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 {};
@@ -50,7 +50,8 @@ export var defaultMediaFeatureFlags = {
50
50
  // TODO https://product-fabric.atlassian.net/browse/MEX-104
51
51
  folderUploads: false,
52
52
  commentsOnMedia: false,
53
- commentsOnMediaIncludePage: false
53
+ commentsOnMediaIncludePage: false,
54
+ commentsOnMediaInsertExcerpt: false
54
55
  };
55
56
 
56
57
  /**
@@ -6,14 +6,16 @@ var productKeys = {
6
6
  mediaInline: 'confluence.frontend.fabric.editor.media.inline',
7
7
  folderUploads: 'confluence.frontend.media.picker.folder.uploads',
8
8
  commentsOnMedia: 'confluence.frontend.renderer.comments-on-media',
9
- commentsOnMediaIncludePage: 'confluence.frontend.comments-on-media.bug.include.page_tnawt'
9
+ commentsOnMediaIncludePage: 'confluence.frontend.comments-on-media.bug.include.page_tnawt',
10
+ commentsOnMediaInsertExcerpt: 'confluence.frontend.comments-on-media.bug.insert.excerpt'
10
11
  },
11
12
  jira: {
12
13
  // Manged by Linking Platform. No Rollout plan found for Jira
13
14
  mediaInline: '',
14
15
  folderUploads: 'issue.details.media-picker-folder-upload',
15
16
  commentsOnMedia: '',
16
- commentsOnMediaIncludePage: ''
17
+ commentsOnMediaIncludePage: '',
18
+ commentsOnMediaInsertExcerpt: ''
17
19
  }
18
20
  };
19
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
  *
@@ -3,6 +3,7 @@ export interface MediaFeatureFlags {
3
3
  folderUploads?: boolean;
4
4
  commentsOnMedia?: boolean;
5
5
  commentsOnMediaIncludePage?: boolean;
6
+ commentsOnMediaInsertExcerpt?: boolean;
6
7
  }
7
8
  export interface WithMediaFeatureFlags {
8
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
  *
@@ -3,6 +3,7 @@ export interface MediaFeatureFlags {
3
3
  folderUploads?: boolean;
4
4
  commentsOnMedia?: boolean;
5
5
  commentsOnMediaIncludePage?: boolean;
6
+ commentsOnMediaInsertExcerpt?: boolean;
6
7
  }
7
8
  export interface WithMediaFeatureFlags {
8
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.1",
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
  }