@atlaskit/media-common 4.1.2 → 5.0.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 +6 -0
- package/dist/cjs/mediaFeatureFlags/mediaFeatureFlags.js +2 -4
- package/dist/cjs/mediaFeatureFlags/productKeys.js +5 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/mediaFeatureFlags/mediaFeatureFlags.js +2 -4
- package/dist/es2019/mediaFeatureFlags/productKeys.js +5 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/mediaFeatureFlags/mediaFeatureFlags.js +2 -4
- package/dist/esm/mediaFeatureFlags/productKeys.js +5 -4
- package/dist/esm/version.json +1 -1
- package/dist/types/mediaFeatureFlags/types.d.ts +0 -1
- package/dist/types-ts4.5/mediaFeatureFlags/types.d.ts +0 -1
- package/package.json +1 -1
- package/report.api.md +5 -10
package/CHANGELOG.md
CHANGED
|
@@ -27,8 +27,7 @@ var areEqualFeatureFlags = function areEqualFeatureFlags(ffA, ffB) {
|
|
|
27
27
|
folderUploads: ffA.folderUploads === ffB.folderUploads,
|
|
28
28
|
observedWidth: ffA.observedWidth === ffB.observedWidth,
|
|
29
29
|
timestampOnVideo: ffA.timestampOnVideo === ffB.timestampOnVideo,
|
|
30
|
-
memoryCacheLogging: ffA.memoryCacheLogging === ffB.memoryCacheLogging
|
|
31
|
-
fetchFileStateAfterUpload: ffA.fetchFileStateAfterUpload === ffB.fetchFileStateAfterUpload
|
|
30
|
+
memoryCacheLogging: ffA.memoryCacheLogging === ffB.memoryCacheLogging
|
|
32
31
|
};
|
|
33
32
|
return Object.values(results).every(function (result) {
|
|
34
33
|
return result;
|
|
@@ -87,8 +86,7 @@ var defaultMediaFeatureFlags = {
|
|
|
87
86
|
folderUploads: false,
|
|
88
87
|
observedWidth: false,
|
|
89
88
|
timestampOnVideo: false,
|
|
90
|
-
memoryCacheLogging: false
|
|
91
|
-
fetchFileStateAfterUpload: false
|
|
89
|
+
memoryCacheLogging: false
|
|
92
90
|
};
|
|
93
91
|
|
|
94
92
|
/**
|
|
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getProductKeys = void 0;
|
|
7
7
|
var productKeys = {
|
|
8
8
|
confluence: {
|
|
9
|
+
/**
|
|
10
|
+
* Note: Confluence Flags must be prefixed with "confluence.frontend" in order to integrate properly with the product
|
|
11
|
+
*/
|
|
9
12
|
newCardExperience: 'confluence.frontend.media.cards.new.experience',
|
|
10
13
|
captions: 'confluence.frontend.fabric.editor.media.captions',
|
|
11
14
|
mediaInline: 'confluence.frontend.fabric.editor.media.inline',
|
|
@@ -13,8 +16,7 @@ var productKeys = {
|
|
|
13
16
|
//TODO fill the value after https://product-fabric.atlassian.net/browse/MEX-1593
|
|
14
17
|
observedWidth: '',
|
|
15
18
|
timestampOnVideo: 'confluence.frontend.media.timestamp.on.video',
|
|
16
|
-
memoryCacheLogging: 'confluence-frontend-media-card-memory-cache-logging'
|
|
17
|
-
fetchFileStateAfterUpload: 'confluence-frontend-media-client-fetch-file-state-after-upload'
|
|
19
|
+
memoryCacheLogging: 'confluence-frontend-media-card-memory-cache-logging'
|
|
18
20
|
},
|
|
19
21
|
jira: {
|
|
20
22
|
newCardExperience: 'issue.details.media-cards-new-experience',
|
|
@@ -25,8 +27,7 @@ var productKeys = {
|
|
|
25
27
|
//TODO fill the value after https://product-fabric.atlassian.net/browse/MEX-1593
|
|
26
28
|
observedWidth: '',
|
|
27
29
|
timestampOnVideo: 'issue.details.media-cards-timestamp-on-video',
|
|
28
|
-
memoryCacheLogging: 'jira-frontend-media-card-memory-cache-logging'
|
|
29
|
-
fetchFileStateAfterUpload: 'jira-frontend-media-client-fetch-file-state-after-upload'
|
|
30
|
+
memoryCacheLogging: 'jira-frontend-media-card-memory-cache-logging'
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
33
|
var getProductKeys = function getProductKeys() {
|
package/dist/cjs/version.json
CHANGED
|
@@ -16,8 +16,7 @@ export const areEqualFeatureFlags = (ffA, ffB) => {
|
|
|
16
16
|
folderUploads: ffA.folderUploads === ffB.folderUploads,
|
|
17
17
|
observedWidth: ffA.observedWidth === ffB.observedWidth,
|
|
18
18
|
timestampOnVideo: ffA.timestampOnVideo === ffB.timestampOnVideo,
|
|
19
|
-
memoryCacheLogging: ffA.memoryCacheLogging === ffB.memoryCacheLogging
|
|
20
|
-
fetchFileStateAfterUpload: ffA.fetchFileStateAfterUpload === ffB.fetchFileStateAfterUpload
|
|
19
|
+
memoryCacheLogging: ffA.memoryCacheLogging === ffB.memoryCacheLogging
|
|
21
20
|
};
|
|
22
21
|
return Object.values(results).every(result => result);
|
|
23
22
|
};
|
|
@@ -60,8 +59,7 @@ export const defaultMediaFeatureFlags = {
|
|
|
60
59
|
folderUploads: false,
|
|
61
60
|
observedWidth: false,
|
|
62
61
|
timestampOnVideo: false,
|
|
63
|
-
memoryCacheLogging: false
|
|
64
|
-
fetchFileStateAfterUpload: false
|
|
62
|
+
memoryCacheLogging: false
|
|
65
63
|
};
|
|
66
64
|
|
|
67
65
|
/**
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const productKeys = {
|
|
2
2
|
confluence: {
|
|
3
|
+
/**
|
|
4
|
+
* Note: Confluence Flags must be prefixed with "confluence.frontend" in order to integrate properly with the product
|
|
5
|
+
*/
|
|
3
6
|
newCardExperience: 'confluence.frontend.media.cards.new.experience',
|
|
4
7
|
captions: 'confluence.frontend.fabric.editor.media.captions',
|
|
5
8
|
mediaInline: 'confluence.frontend.fabric.editor.media.inline',
|
|
@@ -7,8 +10,7 @@ const productKeys = {
|
|
|
7
10
|
//TODO fill the value after https://product-fabric.atlassian.net/browse/MEX-1593
|
|
8
11
|
observedWidth: '',
|
|
9
12
|
timestampOnVideo: 'confluence.frontend.media.timestamp.on.video',
|
|
10
|
-
memoryCacheLogging: 'confluence-frontend-media-card-memory-cache-logging'
|
|
11
|
-
fetchFileStateAfterUpload: 'confluence-frontend-media-client-fetch-file-state-after-upload'
|
|
13
|
+
memoryCacheLogging: 'confluence-frontend-media-card-memory-cache-logging'
|
|
12
14
|
},
|
|
13
15
|
jira: {
|
|
14
16
|
newCardExperience: 'issue.details.media-cards-new-experience',
|
|
@@ -19,8 +21,7 @@ const productKeys = {
|
|
|
19
21
|
//TODO fill the value after https://product-fabric.atlassian.net/browse/MEX-1593
|
|
20
22
|
observedWidth: '',
|
|
21
23
|
timestampOnVideo: 'issue.details.media-cards-timestamp-on-video',
|
|
22
|
-
memoryCacheLogging: 'jira-frontend-media-card-memory-cache-logging'
|
|
23
|
-
fetchFileStateAfterUpload: 'jira-frontend-media-client-fetch-file-state-after-upload'
|
|
24
|
+
memoryCacheLogging: 'jira-frontend-media-card-memory-cache-logging'
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
export const getProductKeys = () => productKeys;
|
package/dist/es2019/version.json
CHANGED
|
@@ -18,8 +18,7 @@ export var areEqualFeatureFlags = function areEqualFeatureFlags(ffA, ffB) {
|
|
|
18
18
|
folderUploads: ffA.folderUploads === ffB.folderUploads,
|
|
19
19
|
observedWidth: ffA.observedWidth === ffB.observedWidth,
|
|
20
20
|
timestampOnVideo: ffA.timestampOnVideo === ffB.timestampOnVideo,
|
|
21
|
-
memoryCacheLogging: ffA.memoryCacheLogging === ffB.memoryCacheLogging
|
|
22
|
-
fetchFileStateAfterUpload: ffA.fetchFileStateAfterUpload === ffB.fetchFileStateAfterUpload
|
|
21
|
+
memoryCacheLogging: ffA.memoryCacheLogging === ffB.memoryCacheLogging
|
|
23
22
|
};
|
|
24
23
|
return Object.values(results).every(function (result) {
|
|
25
24
|
return result;
|
|
@@ -75,8 +74,7 @@ export var defaultMediaFeatureFlags = {
|
|
|
75
74
|
folderUploads: false,
|
|
76
75
|
observedWidth: false,
|
|
77
76
|
timestampOnVideo: false,
|
|
78
|
-
memoryCacheLogging: false
|
|
79
|
-
fetchFileStateAfterUpload: false
|
|
77
|
+
memoryCacheLogging: false
|
|
80
78
|
};
|
|
81
79
|
|
|
82
80
|
/**
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
var productKeys = {
|
|
2
2
|
confluence: {
|
|
3
|
+
/**
|
|
4
|
+
* Note: Confluence Flags must be prefixed with "confluence.frontend" in order to integrate properly with the product
|
|
5
|
+
*/
|
|
3
6
|
newCardExperience: 'confluence.frontend.media.cards.new.experience',
|
|
4
7
|
captions: 'confluence.frontend.fabric.editor.media.captions',
|
|
5
8
|
mediaInline: 'confluence.frontend.fabric.editor.media.inline',
|
|
@@ -7,8 +10,7 @@ var productKeys = {
|
|
|
7
10
|
//TODO fill the value after https://product-fabric.atlassian.net/browse/MEX-1593
|
|
8
11
|
observedWidth: '',
|
|
9
12
|
timestampOnVideo: 'confluence.frontend.media.timestamp.on.video',
|
|
10
|
-
memoryCacheLogging: 'confluence-frontend-media-card-memory-cache-logging'
|
|
11
|
-
fetchFileStateAfterUpload: 'confluence-frontend-media-client-fetch-file-state-after-upload'
|
|
13
|
+
memoryCacheLogging: 'confluence-frontend-media-card-memory-cache-logging'
|
|
12
14
|
},
|
|
13
15
|
jira: {
|
|
14
16
|
newCardExperience: 'issue.details.media-cards-new-experience',
|
|
@@ -19,8 +21,7 @@ var productKeys = {
|
|
|
19
21
|
//TODO fill the value after https://product-fabric.atlassian.net/browse/MEX-1593
|
|
20
22
|
observedWidth: '',
|
|
21
23
|
timestampOnVideo: 'issue.details.media-cards-timestamp-on-video',
|
|
22
|
-
memoryCacheLogging: 'jira-frontend-media-card-memory-cache-logging'
|
|
23
|
-
fetchFileStateAfterUpload: 'jira-frontend-media-client-fetch-file-state-after-upload'
|
|
24
|
+
memoryCacheLogging: 'jira-frontend-media-card-memory-cache-logging'
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
export var getProductKeys = function getProductKeys() {
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
package/report.api.md
CHANGED
|
@@ -23,8 +23,8 @@ export const ANALYTICS_MEDIA_CHANNEL = 'media';
|
|
|
23
23
|
|
|
24
24
|
// @public (undocumented)
|
|
25
25
|
export const areEqualFeatureFlags: (
|
|
26
|
-
ffA?: MediaFeatureFlags
|
|
27
|
-
ffB?: MediaFeatureFlags
|
|
26
|
+
ffA?: MediaFeatureFlags,
|
|
27
|
+
ffB?: MediaFeatureFlags,
|
|
28
28
|
) => boolean;
|
|
29
29
|
|
|
30
30
|
// @public (undocumented)
|
|
@@ -54,10 +54,7 @@ export const debounce: (
|
|
|
54
54
|
export const defaultMediaFeatureFlags: Required<MediaFeatureFlags>;
|
|
55
55
|
|
|
56
56
|
// @public (undocumented)
|
|
57
|
-
export const downloadUrl: (
|
|
58
|
-
url: string,
|
|
59
|
-
options?: DownloadUrlOptions | undefined,
|
|
60
|
-
) => void;
|
|
57
|
+
export const downloadUrl: (url: string, options?: DownloadUrlOptions) => void;
|
|
61
58
|
|
|
62
59
|
// @public (undocumented)
|
|
63
60
|
interface DownloadUrlOptions {
|
|
@@ -154,8 +151,6 @@ export interface MediaFeatureFlags {
|
|
|
154
151
|
// (undocumented)
|
|
155
152
|
captions?: boolean;
|
|
156
153
|
// (undocumented)
|
|
157
|
-
fetchFileStateAfterUpload?: boolean;
|
|
158
|
-
// (undocumented)
|
|
159
154
|
folderUploads?: boolean;
|
|
160
155
|
// (undocumented)
|
|
161
156
|
mediaInline?: boolean;
|
|
@@ -242,7 +237,7 @@ export type PerformanceAttributes = {
|
|
|
242
237
|
|
|
243
238
|
// @public (undocumented)
|
|
244
239
|
export const pick: (
|
|
245
|
-
obj?: Object
|
|
240
|
+
obj?: Object,
|
|
246
241
|
keys?: Array<String>,
|
|
247
242
|
) => {
|
|
248
243
|
[k: string]: any;
|
|
@@ -318,7 +313,7 @@ export type UIEventPayload<
|
|
|
318
313
|
|
|
319
314
|
// @public (undocumented)
|
|
320
315
|
export const useMemoizeFeatureFlags: (
|
|
321
|
-
featureFlags?: MediaFeatureFlags
|
|
316
|
+
featureFlags?: MediaFeatureFlags,
|
|
322
317
|
) => MediaFeatureFlags | undefined;
|
|
323
318
|
|
|
324
319
|
// @public (undocumented)
|