@atlaskit/media-common 7.1.0 → 8.1.0

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,34 @@
1
1
  # @atlaskit/media-common
2
2
 
3
+ ## 8.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b06cd74349c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b06cd74349c) - # Media Picker
8
+
9
+ Make Clipboard secured by adding `container` and `onPaste()` to `config` `prop`. These two params address customer dissatisfaction when attachments are pasted duplicated, or to unwanted Jira issues (https://product-fabric.atlassian.net/browse/MEX-2454).
10
+
11
+ Note for migration:
12
+ The added `container` parameter sets a boundary for copy-paste zone. This is to filter out noise from existing practice that is problematic. **To ensure the effectiveness of this fix, please avoid using global `document` as `container` in best effort; please avoid overlapped boundary in best effort**.
13
+
14
+ When `container` is not added, the behaviour falls back to legacy mechanism.
15
+
16
+ # Media Common
17
+
18
+ Add feature toggle (`securedClipboard` in `MediaFeatureFlags`) to control the rollout of Secured Clipboard (https://product-fabric.atlassian.net/browse/MEX-2454).
19
+
20
+ # Editor Core
21
+
22
+ Add support of the Secured Clipboard (https://product-fabric.atlassian.net/browse/MEX-2454).
23
+
24
+ Use feature flag `securedClipboard` to protect such change.
25
+
26
+ ## 8.0.0
27
+
28
+ ### Major Changes
29
+
30
+ - [`ed81e630547`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ed81e630547) - MEX-2089 Remove timestamp feature flag on AFP
31
+
3
32
  ## 7.1.0
4
33
 
5
34
  ### Minor Changes
@@ -24,7 +24,7 @@ var areEqualFeatureFlags = function areEqualFeatureFlags(ffA, ffB) {
24
24
  captions: ffA.captions === ffB.captions,
25
25
  mediaInline: ffA.mediaInline === ffB.mediaInline,
26
26
  folderUploads: ffA.folderUploads === ffB.folderUploads,
27
- timestampOnVideo: ffA.timestampOnVideo === ffB.timestampOnVideo
27
+ securedClipboard: ffA.securedClipboard === ffB.securedClipboard
28
28
  };
29
29
  return Object.values(results).every(function (result) {
30
30
  return result;
@@ -80,7 +80,7 @@ var defaultMediaFeatureFlags = {
80
80
  // We can't yet switch this feature on
81
81
  // TODO https://product-fabric.atlassian.net/browse/MEX-104
82
82
  folderUploads: false,
83
- timestampOnVideo: false
83
+ securedClipboard: false
84
84
  };
85
85
 
86
86
  /**
@@ -12,14 +12,14 @@ var productKeys = {
12
12
  captions: 'confluence.frontend.fabric.editor.media.captions',
13
13
  mediaInline: 'confluence.frontend.fabric.editor.media.inline',
14
14
  folderUploads: 'confluence.frontend.media.picker.folder.uploads',
15
- timestampOnVideo: 'confluence.frontend.media.timestamp.on.video'
15
+ securedClipboard: 'confluence.frontend.media.picker.secured.clipboard'
16
16
  },
17
17
  jira: {
18
18
  captions: 'issue.details.editor.media.captions',
19
19
  // Manged by Linking Platform. No Rollout plan found for Jira
20
20
  mediaInline: '',
21
21
  folderUploads: 'issue.details.media-picker-folder-upload',
22
- timestampOnVideo: 'issue.details.media-cards-timestamp-on-video'
22
+ securedClipboard: 'issue.details.media-picker-secured-clipboard'
23
23
  }
24
24
  };
25
25
  var getProductKeys = function getProductKeys() {
@@ -13,7 +13,7 @@ export const areEqualFeatureFlags = (ffA, ffB) => {
13
13
  captions: ffA.captions === ffB.captions,
14
14
  mediaInline: ffA.mediaInline === ffB.mediaInline,
15
15
  folderUploads: ffA.folderUploads === ffB.folderUploads,
16
- timestampOnVideo: ffA.timestampOnVideo === ffB.timestampOnVideo
16
+ securedClipboard: ffA.securedClipboard === ffB.securedClipboard
17
17
  };
18
18
  return Object.values(results).every(result => result);
19
19
  };
@@ -53,7 +53,7 @@ export const defaultMediaFeatureFlags = {
53
53
  // We can't yet switch this feature on
54
54
  // TODO https://product-fabric.atlassian.net/browse/MEX-104
55
55
  folderUploads: false,
56
- timestampOnVideo: false
56
+ securedClipboard: false
57
57
  };
58
58
 
59
59
  /**
@@ -6,14 +6,14 @@ const productKeys = {
6
6
  captions: 'confluence.frontend.fabric.editor.media.captions',
7
7
  mediaInline: 'confluence.frontend.fabric.editor.media.inline',
8
8
  folderUploads: 'confluence.frontend.media.picker.folder.uploads',
9
- timestampOnVideo: 'confluence.frontend.media.timestamp.on.video'
9
+ securedClipboard: 'confluence.frontend.media.picker.secured.clipboard'
10
10
  },
11
11
  jira: {
12
12
  captions: 'issue.details.editor.media.captions',
13
13
  // Manged by Linking Platform. No Rollout plan found for Jira
14
14
  mediaInline: '',
15
15
  folderUploads: 'issue.details.media-picker-folder-upload',
16
- timestampOnVideo: 'issue.details.media-cards-timestamp-on-video'
16
+ securedClipboard: 'issue.details.media-picker-secured-clipboard'
17
17
  }
18
18
  };
19
19
  export const getProductKeys = () => productKeys;
@@ -15,7 +15,7 @@ export var areEqualFeatureFlags = function areEqualFeatureFlags(ffA, ffB) {
15
15
  captions: ffA.captions === ffB.captions,
16
16
  mediaInline: ffA.mediaInline === ffB.mediaInline,
17
17
  folderUploads: ffA.folderUploads === ffB.folderUploads,
18
- timestampOnVideo: ffA.timestampOnVideo === ffB.timestampOnVideo
18
+ securedClipboard: ffA.securedClipboard === ffB.securedClipboard
19
19
  };
20
20
  return Object.values(results).every(function (result) {
21
21
  return result;
@@ -68,7 +68,7 @@ export var defaultMediaFeatureFlags = {
68
68
  // We can't yet switch this feature on
69
69
  // TODO https://product-fabric.atlassian.net/browse/MEX-104
70
70
  folderUploads: false,
71
- timestampOnVideo: false
71
+ securedClipboard: false
72
72
  };
73
73
 
74
74
  /**
@@ -6,14 +6,14 @@ var productKeys = {
6
6
  captions: 'confluence.frontend.fabric.editor.media.captions',
7
7
  mediaInline: 'confluence.frontend.fabric.editor.media.inline',
8
8
  folderUploads: 'confluence.frontend.media.picker.folder.uploads',
9
- timestampOnVideo: 'confluence.frontend.media.timestamp.on.video'
9
+ securedClipboard: 'confluence.frontend.media.picker.secured.clipboard'
10
10
  },
11
11
  jira: {
12
12
  captions: 'issue.details.editor.media.captions',
13
13
  // Manged by Linking Platform. No Rollout plan found for Jira
14
14
  mediaInline: '',
15
15
  folderUploads: 'issue.details.media-picker-folder-upload',
16
- timestampOnVideo: 'issue.details.media-cards-timestamp-on-video'
16
+ securedClipboard: 'issue.details.media-picker-secured-clipboard'
17
17
  }
18
18
  };
19
19
  export var getProductKeys = function getProductKeys() {
@@ -2,7 +2,7 @@ export interface MediaFeatureFlags {
2
2
  captions?: boolean;
3
3
  mediaInline?: boolean;
4
4
  folderUploads?: boolean;
5
- timestampOnVideo?: boolean;
5
+ securedClipboard?: boolean;
6
6
  }
7
7
  export interface WithMediaFeatureFlags {
8
8
  featureFlags?: MediaFeatureFlags;
@@ -2,7 +2,7 @@ export interface MediaFeatureFlags {
2
2
  captions?: boolean;
3
3
  mediaInline?: boolean;
4
4
  folderUploads?: boolean;
5
- timestampOnVideo?: boolean;
5
+ securedClipboard?: boolean;
6
6
  }
7
7
  export interface WithMediaFeatureFlags {
8
8
  featureFlags?: MediaFeatureFlags;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-common",
3
- "version": "7.1.0",
3
+ "version": "8.1.0",
4
4
  "description": "Includes common utilities used by other media packages",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
package/report.api.md CHANGED
@@ -155,7 +155,7 @@ export interface MediaFeatureFlags {
155
155
  // (undocumented)
156
156
  mediaInline?: boolean;
157
157
  // (undocumented)
158
- timestampOnVideo?: boolean;
158
+ securedClipboard?: boolean;
159
159
  }
160
160
 
161
161
  // @public (undocumented)
@@ -123,7 +123,7 @@ export interface MediaFeatureFlags {
123
123
  // (undocumented)
124
124
  mediaInline?: boolean;
125
125
  // (undocumented)
126
- timestampOnVideo?: boolean;
126
+ securedClipboard?: boolean;
127
127
  }
128
128
 
129
129
  // @public (undocumented)
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/media-common",
3
- "version": "7.1.0",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/media-common",
3
- "version": "7.1.0",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/media-common",
3
- "version": "7.1.0",
4
- "sideEffects": false
5
- }