@atlaskit/media-file-preview 0.8.2 → 0.8.4
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 +14 -0
- package/dist/cjs/errors.js +1 -1
- package/dist/cjs/getPreview/objectURLCache.js +1 -1
- package/dist/cjs/useFilePreview.js +1 -1
- package/dist/es2019/useFilePreview.js +1 -1
- package/dist/esm/errors.js +1 -1
- package/dist/esm/getPreview/objectURLCache.js +1 -1
- package/dist/esm/useFilePreview.js +1 -1
- package/package.json +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/media-file-preview
|
|
2
2
|
|
|
3
|
+
## 0.8.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.8.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`eaacfc7b03414`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eaacfc7b03414) -
|
|
14
|
+
Changed the feature flag used for analytics publishing to prevent spamming due to cached clients
|
|
15
|
+
using bugged versions of Card
|
|
16
|
+
|
|
3
17
|
## 0.8.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/errors.js
CHANGED
|
@@ -18,7 +18,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
18
18
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
19
19
|
var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
|
|
20
20
|
var _mediaClientReact = require("@atlaskit/media-client-react");
|
|
21
|
-
function _createSuper(
|
|
21
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
|
|
22
22
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
23
|
/**
|
|
24
24
|
* Primary reason is logged through Data Portal.
|
|
@@ -13,7 +13,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _eventemitter = require("eventemitter2");
|
|
15
15
|
var _lru_map = require("lru_map");
|
|
16
|
-
function _createSuper(
|
|
16
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
|
|
17
17
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
18
18
|
var PREVIEW_CACHE_LRU_SIZE = exports.PREVIEW_CACHE_LRU_SIZE = 50;
|
|
19
19
|
var ExtendedLRUCache = /*#__PURE__*/function (_LRUMap) {
|
|
@@ -74,7 +74,7 @@ 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-
|
|
77
|
+
if ((0, _platformFeatureFlags.fg)('platform.media-card-performance-observer_a803k')) {
|
|
78
78
|
imageURLParams = _objectSpread(_objectSpread({}, imageURLParams), {}, {
|
|
79
79
|
source: source
|
|
80
80
|
});
|
package/dist/esm/errors.js
CHANGED
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import { MediaFileStateError } from '@atlaskit/media-client-react';
|
|
11
11
|
|
|
@@ -4,7 +4,7 @@ import _get from "@babel/runtime/helpers/get";
|
|
|
4
4
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
|
-
function _createSuper(
|
|
7
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import { EventEmitter2 } from 'eventemitter2';
|
|
10
10
|
import { LRUMap } from 'lru_map';
|
|
@@ -67,7 +67,7 @@ export var useFilePreview = function useFilePreview(_ref) {
|
|
|
67
67
|
upscale: upscale,
|
|
68
68
|
'max-age': maxAge
|
|
69
69
|
});
|
|
70
|
-
if (fg('platform.media-card-performance-
|
|
70
|
+
if (fg('platform.media-card-performance-observer_a803k')) {
|
|
71
71
|
imageURLParams = _objectSpread(_objectSpread({}, imageURLParams), {}, {
|
|
72
72
|
source: source
|
|
73
73
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-file-preview",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
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",
|
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Media Experience",
|
|
12
|
-
"inPublicMirror": false,
|
|
13
|
-
"releaseModel": "continuous",
|
|
14
12
|
"website": {
|
|
15
13
|
"name": "MediaFilePreview",
|
|
16
14
|
"category": "Components"
|
|
@@ -36,8 +34,8 @@
|
|
|
36
34
|
".": "./src/index.ts"
|
|
37
35
|
},
|
|
38
36
|
"dependencies": {
|
|
39
|
-
"@atlaskit/media-client": "^
|
|
40
|
-
"@atlaskit/media-client-react": "^2.
|
|
37
|
+
"@atlaskit/media-client": "^28.0.0",
|
|
38
|
+
"@atlaskit/media-client-react": "^2.2.0",
|
|
41
39
|
"@atlaskit/media-common": "^11.4.0",
|
|
42
40
|
"@atlaskit/media-ui": "^25.11.0",
|
|
43
41
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
@@ -99,7 +97,7 @@
|
|
|
99
97
|
}
|
|
100
98
|
},
|
|
101
99
|
"platform-feature-flags": {
|
|
102
|
-
"platform.media-card-performance-
|
|
100
|
+
"platform.media-card-performance-observer_a803k": {
|
|
103
101
|
"type": "boolean"
|
|
104
102
|
}
|
|
105
103
|
}
|