@atlaskit/media-common 2.10.2 → 2.10.3

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.10.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5293a48368e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5293a48368e) - fix image size in layout with ref and width observer
8
+
3
9
  ## 2.10.2
4
10
 
5
11
  ### Patch Changes
@@ -19,7 +19,8 @@ var defaultMediaFeatureFlags = {
19
19
  // We can't yet switch this feature on
20
20
  // TODO https://product-fabric.atlassian.net/browse/MEX-104
21
21
  folderUploads: false,
22
- timestampOnVideo: false
22
+ timestampOnVideo: false,
23
+ observedWidth: false
23
24
  };
24
25
  /**
25
26
  * Public accessor from components to fallback to defaults if flags not passed,
@@ -78,7 +79,8 @@ var areEqualFeatureFlags = function areEqualFeatureFlags(ffA, ffB) {
78
79
  captions: ffA.captions === ffB.captions,
79
80
  mediaInline: ffA.mediaInline === ffB.mediaInline,
80
81
  folderUploads: ffA.folderUploads === ffB.folderUploads,
81
- timestampOnVideo: ffA.timestampOnVideo === ffB.timestampOnVideo
82
+ timestampOnVideo: ffA.timestampOnVideo === ffB.timestampOnVideo,
83
+ observedWidth: ffA.observedWidth === ffB.observedWidth
82
84
  };
83
85
  return Object.values(results).every(function (result) {
84
86
  return result;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-common",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "sideEffects": false
5
5
  }
@@ -9,7 +9,8 @@ export const defaultMediaFeatureFlags = {
9
9
  // We can't yet switch this feature on
10
10
  // TODO https://product-fabric.atlassian.net/browse/MEX-104
11
11
  folderUploads: false,
12
- timestampOnVideo: false
12
+ timestampOnVideo: false,
13
+ observedWidth: false
13
14
  };
14
15
  /**
15
16
  * Public accessor from components to fallback to defaults if flags not passed,
@@ -64,7 +65,8 @@ export const areEqualFeatureFlags = (ffA, ffB) => {
64
65
  captions: ffA.captions === ffB.captions,
65
66
  mediaInline: ffA.mediaInline === ffB.mediaInline,
66
67
  folderUploads: ffA.folderUploads === ffB.folderUploads,
67
- timestampOnVideo: ffA.timestampOnVideo === ffB.timestampOnVideo
68
+ timestampOnVideo: ffA.timestampOnVideo === ffB.timestampOnVideo,
69
+ observedWidth: ffA.observedWidth === ffB.observedWidth
68
70
  };
69
71
  return Object.values(results).every(result => result);
70
72
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-common",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "sideEffects": false
5
5
  }
@@ -9,7 +9,8 @@ export var defaultMediaFeatureFlags = {
9
9
  // We can't yet switch this feature on
10
10
  // TODO https://product-fabric.atlassian.net/browse/MEX-104
11
11
  folderUploads: false,
12
- timestampOnVideo: false
12
+ timestampOnVideo: false,
13
+ observedWidth: false
13
14
  };
14
15
  /**
15
16
  * Public accessor from components to fallback to defaults if flags not passed,
@@ -64,7 +65,8 @@ export var areEqualFeatureFlags = function areEqualFeatureFlags(ffA, ffB) {
64
65
  captions: ffA.captions === ffB.captions,
65
66
  mediaInline: ffA.mediaInline === ffB.mediaInline,
66
67
  folderUploads: ffA.folderUploads === ffB.folderUploads,
67
- timestampOnVideo: ffA.timestampOnVideo === ffB.timestampOnVideo
68
+ timestampOnVideo: ffA.timestampOnVideo === ffB.timestampOnVideo,
69
+ observedWidth: ffA.observedWidth === ffB.observedWidth
68
70
  };
69
71
  return Object.values(results).every(function (result) {
70
72
  return result;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-common",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "sideEffects": false
5
5
  }
@@ -4,6 +4,7 @@ export interface MediaFeatureFlags {
4
4
  mediaInline?: boolean;
5
5
  folderUploads?: boolean;
6
6
  timestampOnVideo?: boolean;
7
+ observedWidth?: boolean;
7
8
  }
8
9
  export interface WithMediaFeatureFlags {
9
10
  featureFlags?: MediaFeatureFlags;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-common",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "description": "Includes common utilities used by other media packages",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -33,7 +33,7 @@
33
33
  "scripts": {},
34
34
  "dependencies": {
35
35
  "@atlaskit/analytics-gas-types": "^5.0.5",
36
- "@atlaskit/analytics-namespaced-context": "^6.2.0",
36
+ "@atlaskit/analytics-namespaced-context": "^6.4.0",
37
37
  "@atlaskit/analytics-next": "^8.1.1",
38
38
  "@atlaskit/section-message": "^6.0.0",
39
39
  "@babel/runtime": "^7.0.0"
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@atlaskit/docs": "*",
47
- "@atlaskit/media-test-helpers": "^29.0.0",
47
+ "@atlaskit/media-test-helpers": "^29.1.0",
48
48
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
49
49
  "enzyme": "^3.10.0",
50
50
  "lodash": "^4.17.21",