@atlaskit/media-file-preview 0.8.1 → 0.8.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,21 @@
1
1
  # @atlaskit/media-file-preview
2
2
 
3
+ ## 0.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`eaacfc7b03414`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eaacfc7b03414) -
8
+ Changed the feature flag used for analytics publishing to prevent spamming due to cached clients
9
+ using bugged versions of Card
10
+
11
+ ## 0.8.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [#132917](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/132917)
16
+ [`c940f8ae45182`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c940f8ae45182) -
17
+ Removed the additional `ssr` parameter to the image endpoint
18
+
3
19
  ## 0.8.1
4
20
 
5
21
  ### Patch Changes
@@ -74,10 +74,9 @@ var useFilePreview = exports.useFilePreview = function useFilePreview(_ref) {
74
74
  upscale: upscale,
75
75
  'max-age': maxAge
76
76
  });
77
- if ((0, _platformFeatureFlags.fg)('platform.media-card-performance-observer_lgc7b')) {
77
+ if ((0, _platformFeatureFlags.fg)('platform.media-card-performance-observer_a803k')) {
78
78
  imageURLParams = _objectSpread(_objectSpread({}, imageURLParams), {}, {
79
- source: source,
80
- ssr: ssr
79
+ source: source
81
80
  });
82
81
  }
83
82
  var previewInitializer = function previewInitializer() {
@@ -46,11 +46,10 @@ export const useFilePreview = ({
46
46
  upscale,
47
47
  'max-age': maxAge
48
48
  };
49
- if (fg('platform.media-card-performance-observer_lgc7b')) {
49
+ if (fg('platform.media-card-performance-observer_a803k')) {
50
50
  imageURLParams = {
51
51
  ...imageURLParams,
52
- source,
53
- ssr
52
+ source
54
53
  };
55
54
  }
56
55
  const previewInitializer = () => {
@@ -67,10 +67,9 @@ export var useFilePreview = function useFilePreview(_ref) {
67
67
  upscale: upscale,
68
68
  'max-age': maxAge
69
69
  });
70
- if (fg('platform.media-card-performance-observer_lgc7b')) {
70
+ if (fg('platform.media-card-performance-observer_a803k')) {
71
71
  imageURLParams = _objectSpread(_objectSpread({}, imageURLParams), {}, {
72
- source: source,
73
- ssr: ssr
72
+ source: source
74
73
  });
75
74
  }
76
75
  var previewInitializer = function previewInitializer() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-file-preview",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "description": "A React Hook to fetch and render file previews. It's overloaded with fancy features like SSR, lazy loading, memory cache and local preview.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,7 +36,7 @@
36
36
  ".": "./src/index.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@atlaskit/media-client": "^27.4.0",
39
+ "@atlaskit/media-client": "^27.5.0",
40
40
  "@atlaskit/media-client-react": "^2.1.0",
41
41
  "@atlaskit/media-common": "^11.4.0",
42
42
  "@atlaskit/media-ui": "^25.11.0",
@@ -99,7 +99,7 @@
99
99
  }
100
100
  },
101
101
  "platform-feature-flags": {
102
- "platform.media-card-performance-observer_lgc7b": {
102
+ "platform.media-card-performance-observer_a803k": {
103
103
  "type": "boolean"
104
104
  }
105
105
  }