@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 +29 -0
- package/dist/cjs/mediaFeatureFlags/mediaFeatureFlags.js +2 -2
- package/dist/cjs/mediaFeatureFlags/productKeys.js +2 -2
- package/dist/es2019/mediaFeatureFlags/mediaFeatureFlags.js +2 -2
- package/dist/es2019/mediaFeatureFlags/productKeys.js +2 -2
- package/dist/esm/mediaFeatureFlags/mediaFeatureFlags.js +2 -2
- package/dist/esm/mediaFeatureFlags/productKeys.js +2 -2
- package/dist/types/mediaFeatureFlags/types.d.ts +1 -1
- package/dist/types-ts4.5/mediaFeatureFlags/types.d.ts +1 -1
- package/package.json +1 -1
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +1 -1
- package/dist/cjs/version.json +0 -5
- package/dist/es2019/version.json +0 -5
- package/dist/esm/version.json +0 -5
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
16
|
+
securedClipboard: 'issue.details.media-picker-secured-clipboard'
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
export var getProductKeys = function getProductKeys() {
|
package/package.json
CHANGED
package/report.api.md
CHANGED
package/tmp/api-report-tmp.d.ts
CHANGED
package/dist/cjs/version.json
DELETED
package/dist/es2019/version.json
DELETED