@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/media-common
2
2
 
3
+ ## 2.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fe9ced0cd70`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe9ced0cd70) - Removed feature flags for polling settings
8
+
3
9
  ## 2.9.0
4
10
 
5
11
  ### Minor Changes
@@ -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,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-common",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "sideEffects": false
5
5
  }
@@ -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,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-common",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "sideEffects": false
5
5
  }
@@ -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,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-common",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,10 +1,4 @@
1
- export interface PollingOptions {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-common",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "Includes common utilities used by other media packages",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"