@atlaskit/media-common 2.9.0 → 2.9.1
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.js +1 -5
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/mediaFeatureFlags.js +3 -6
- package/dist/es2019/version.json +1 -1
- package/dist/esm/mediaFeatureFlags.js +3 -6
- package/dist/esm/version.json +1 -1
- package/dist/types/mediaFeatureFlags.d.ts +1 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,11 +14,7 @@ var defaultMediaFeatureFlags = {
|
|
|
14
14
|
zipPreviews: false,
|
|
15
15
|
captions: false,
|
|
16
16
|
folderUploads: false,
|
|
17
|
-
codeViewer: false
|
|
18
|
-
poll_intervalMs: 3000,
|
|
19
|
-
poll_maxAttempts: 30,
|
|
20
|
-
poll_backoffFactor: 1.25,
|
|
21
|
-
poll_maxIntervalMs: 200000
|
|
17
|
+
codeViewer: false
|
|
22
18
|
};
|
|
23
19
|
/**
|
|
24
20
|
* Public accessor from components to fallback to defaults if flags not passed,
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { getLocalMediaFeatureFlag } from './mediaFeatureFlag-local';
|
|
1
|
+
import { getLocalMediaFeatureFlag } from './mediaFeatureFlag-local'; // Media feature flags - type and defaults defined here in one source of truth
|
|
2
|
+
|
|
2
3
|
// default values defined here, not necessary for components to know directly as they should use the function below
|
|
3
4
|
export const defaultMediaFeatureFlags = {
|
|
4
5
|
newCardExperience: false,
|
|
5
6
|
zipPreviews: false,
|
|
6
7
|
captions: false,
|
|
7
8
|
folderUploads: false,
|
|
8
|
-
codeViewer: false
|
|
9
|
-
poll_intervalMs: 3000,
|
|
10
|
-
poll_maxAttempts: 30,
|
|
11
|
-
poll_backoffFactor: 1.25,
|
|
12
|
-
poll_maxIntervalMs: 200000
|
|
9
|
+
codeViewer: false
|
|
13
10
|
};
|
|
14
11
|
/**
|
|
15
12
|
* Public accessor from components to fallback to defaults if flags not passed,
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { getLocalMediaFeatureFlag } from './mediaFeatureFlag-local';
|
|
1
|
+
import { getLocalMediaFeatureFlag } from './mediaFeatureFlag-local'; // Media feature flags - type and defaults defined here in one source of truth
|
|
2
|
+
|
|
2
3
|
// default values defined here, not necessary for components to know directly as they should use the function below
|
|
3
4
|
export var defaultMediaFeatureFlags = {
|
|
4
5
|
newCardExperience: false,
|
|
5
6
|
zipPreviews: false,
|
|
6
7
|
captions: false,
|
|
7
8
|
folderUploads: false,
|
|
8
|
-
codeViewer: false
|
|
9
|
-
poll_intervalMs: 3000,
|
|
10
|
-
poll_maxAttempts: 30,
|
|
11
|
-
poll_backoffFactor: 1.25,
|
|
12
|
-
poll_maxIntervalMs: 200000
|
|
9
|
+
codeViewer: false
|
|
13
10
|
};
|
|
14
11
|
/**
|
|
15
12
|
* Public accessor from components to fallback to defaults if flags not passed,
|
package/dist/esm/version.json
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
poll_intervalMs?: number;
|
|
3
|
-
poll_maxAttempts?: number;
|
|
4
|
-
poll_backoffFactor?: number;
|
|
5
|
-
poll_maxIntervalMs?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface MediaFeatureFlags extends PollingOptions {
|
|
1
|
+
export interface MediaFeatureFlags {
|
|
8
2
|
newCardExperience?: boolean;
|
|
9
3
|
zipPreviews?: boolean;
|
|
10
4
|
captions?: boolean;
|