@atlaskit/media-client 26.2.1 → 26.2.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/constants/package.json +1 -1
  3. package/dist/cjs/client/file-fetcher/error.js +1 -1
  4. package/dist/cjs/client/media-client.js +2 -2
  5. package/dist/cjs/client/media-store/error.js +1 -1
  6. package/dist/cjs/models/errors/index.js +1 -1
  7. package/dist/cjs/models/errors/types.js +1 -5
  8. package/dist/cjs/test-helpers/MockedMediaApi/MockedMediaApi.js +7 -8
  9. package/dist/cjs/uploader/error.js +1 -1
  10. package/dist/cjs/utils/hashing/hasher.js +1 -5
  11. package/dist/cjs/utils/hashing/hasherCreator.js +2 -2
  12. package/dist/cjs/utils/hashing/simpleHasher.js +2 -2
  13. package/dist/cjs/utils/mobileUpload/error.js +1 -1
  14. package/dist/cjs/utils/polling/errors.js +1 -1
  15. package/dist/cjs/utils/polling/types.js +1 -5
  16. package/dist/cjs/utils/request/errors.js +1 -1
  17. package/dist/cjs/utils/request/helpers.js +0 -1
  18. package/dist/es2019/models/errors/types.js +0 -1
  19. package/dist/es2019/models/media.js +1 -0
  20. package/dist/es2019/test-helpers/MockedMediaApi/MockedMediaApi.js +2 -3
  21. package/dist/es2019/test-helpers/MockedMediaApi/helpers.js +1 -0
  22. package/dist/es2019/utils/hashing/hasher.js +0 -1
  23. package/dist/es2019/utils/polling/types.js +0 -1
  24. package/dist/es2019/utils/request/helpers.js +0 -1
  25. package/dist/esm/client/file-fetcher/error.js +1 -1
  26. package/dist/esm/client/media-store/error.js +1 -1
  27. package/dist/esm/models/errors/index.js +1 -1
  28. package/dist/esm/models/errors/types.js +0 -1
  29. package/dist/esm/models/media.js +1 -0
  30. package/dist/esm/test-helpers/MockedMediaApi/MockedMediaApi.js +7 -8
  31. package/dist/esm/test-helpers/MockedMediaApi/helpers.js +1 -0
  32. package/dist/esm/uploader/error.js +1 -1
  33. package/dist/esm/utils/hashing/hasher.js +0 -1
  34. package/dist/esm/utils/mobileUpload/error.js +1 -1
  35. package/dist/esm/utils/polling/errors.js +1 -1
  36. package/dist/esm/utils/polling/types.js +0 -1
  37. package/dist/esm/utils/request/errors.js +1 -1
  38. package/dist/esm/utils/request/helpers.js +0 -1
  39. package/dist/types/globalMediaEventEmitter.d.ts +2 -2
  40. package/dist/types/test-helpers/MockedMediaApi/helpers.d.ts +1 -1
  41. package/dist/types/test-helpers/collectionNames.d.ts +1 -1
  42. package/dist/types-ts4.5/globalMediaEventEmitter.d.ts +2 -2
  43. package/dist/types-ts4.5/test-helpers/MockedMediaApi/helpers.d.ts +1 -1
  44. package/dist/types-ts4.5/test-helpers/collectionNames.d.ts +1 -1
  45. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/media-client
2
2
 
3
+ ## 26.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#86762](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86762) [`f3d1602fa574`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f3d1602fa574) - CXP-2655 Implemented a change to an endpoint for Mocked Media API
8
+
9
+ ## 26.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
14
+
3
15
  ## 26.2.1
4
16
 
5
17
  ### Patch Changes
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/constants.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/constants.d.ts"
12
12
  ]
@@ -13,7 +13,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
13
13
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
14
  var _errors = require("../../models/errors");
15
15
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
16
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
17
17
  var FileFetcherError = exports.FileFetcherError = /*#__PURE__*/function (_BaseMediaClientError) {
18
18
  (0, _inherits2.default)(FileFetcherError, _BaseMediaClientError);
19
19
  var _super = _createSuper(FileFetcherError);
@@ -16,8 +16,8 @@ var _mediaStore = require("./media-store");
16
16
  var _fileFetcher = require("./file-fetcher");
17
17
  var _stargateClient = require("./stargate-client");
18
18
  var _mediaState = require("@atlaskit/media-state");
19
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
21
  var MediaClient = exports.MediaClient = /*#__PURE__*/function () {
22
22
  // mobile upload is lazily loaded
23
23
 
@@ -13,7 +13,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
13
13
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
14
  var _errors = require("../../models/errors");
15
15
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
16
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
17
17
  var MediaStoreError = exports.MediaStoreError = /*#__PURE__*/function (_BaseMediaClientError) {
18
18
  (0, _inherits2.default)(MediaStoreError, _BaseMediaClientError);
19
19
  var _super = _createSuper(MediaStoreError);
@@ -26,7 +26,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
26
26
  var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
27
27
  var _helpers = require("./helpers");
28
28
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
29
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
29
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
30
30
  /**
31
31
  * Base class for media errors
32
32
  */
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -190,20 +190,19 @@ var getMediaApi = function getMediaApi(_ref) {
190
190
  // URL ENDPOINTS
191
191
  // --------------------------------------------------------
192
192
 
193
- // TODO
194
193
  getFileImageURL: function () {
195
- var _getFileImageURL = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
194
+ var _getFileImageURL = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(id) {
196
195
  return _regenerator.default.wrap(function _callee9$(_context9) {
197
196
  while (1) switch (_context9.prev = _context9.next) {
198
197
  case 0:
199
- throw new Error('500 - MockedMediaApi.getFileImageURL: method not implemented');
198
+ return _context9.abrupt("return", "image-url-".concat(id));
200
199
  case 1:
201
200
  case "end":
202
201
  return _context9.stop();
203
202
  }
204
203
  }, _callee9);
205
204
  }));
206
- function getFileImageURL() {
205
+ function getFileImageURL(_x9) {
207
206
  return _getFileImageURL.apply(this, arguments);
208
207
  }
209
208
  return getFileImageURL;
@@ -237,7 +236,7 @@ var getMediaApi = function getMediaApi(_ref) {
237
236
  }
238
237
  }, _callee10);
239
238
  }));
240
- function getFileBinaryURL(_x9) {
239
+ function getFileBinaryURL(_x10) {
241
240
  return _getFileBinaryURL.apply(this, arguments);
242
241
  }
243
242
  return getFileBinaryURL;
@@ -263,7 +262,7 @@ var getMediaApi = function getMediaApi(_ref) {
263
262
  }
264
263
  }, _callee11);
265
264
  }));
266
- function getArtifactURL(_x10, _x11) {
265
+ function getArtifactURL(_x11, _x12) {
267
266
  return _getArtifactURL.apply(this, arguments);
268
267
  }
269
268
  return getArtifactURL;
@@ -297,7 +296,7 @@ var getMediaApi = function getMediaApi(_ref) {
297
296
  }
298
297
  }, _callee12);
299
298
  }));
300
- function getImage(_x12) {
299
+ function getImage(_x13) {
301
300
  return _getImage.apply(this, arguments);
302
301
  }
303
302
  return getImage;
@@ -330,7 +329,7 @@ var getMediaApi = function getMediaApi(_ref) {
330
329
  }
331
330
  }, _callee13);
332
331
  }));
333
- function copyFileWithToken(_x13) {
332
+ function copyFileWithToken(_x14) {
334
333
  return _copyFileWithToken.apply(this, arguments);
335
334
  }
336
335
  return copyFileWithToken;
@@ -13,7 +13,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
13
13
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
14
  var _errors = require("../models/errors");
15
15
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
16
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
17
17
  var UploaderError = exports.UploaderError = /*#__PURE__*/function (_BaseMediaClientError) {
18
18
  (0, _inherits2.default)(UploaderError, _BaseMediaClientError);
19
19
  var _super = _createSuper(UploaderError);
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -9,8 +9,8 @@ exports.destroyHasher = exports.createHasher = void 0;
9
9
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
10
10
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
11
11
  var _mediaCore = require("@atlaskit/media-core");
12
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
14
  var hasher = null;
15
15
  var sha256Hasher = null;
16
16
  var destroyHasher = exports.destroyHasher = function destroyHasher() {
@@ -9,8 +9,8 @@ exports.SimpleHasher = void 0;
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
11
  var Rusha = _interopRequireWildcard(require("rusha"));
12
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
14
  var SimpleHasher = exports.SimpleHasher = /*#__PURE__*/function () {
15
15
  function SimpleHasher() {
16
16
  (0, _classCallCheck2.default)(this, SimpleHasher);
@@ -13,7 +13,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
13
13
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
14
  var _errors = require("../../models/errors");
15
15
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
16
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
17
17
  var MobileUploadError = exports.MobileUploadError = /*#__PURE__*/function (_BaseMediaClientError) {
18
18
  (0, _inherits2.default)(MobileUploadError, _BaseMediaClientError);
19
19
  var _super = _createSuper(MobileUploadError);
@@ -13,7 +13,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
13
13
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
14
  var _errors = require("../../models/errors");
15
15
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
16
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
17
17
  var PollingError = exports.PollingError = /*#__PURE__*/function (_BaseMediaClientError) {
18
18
  (0, _inherits2.default)(PollingError, _BaseMediaClientError);
19
19
  var _super = _createSuper(PollingError);
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -13,7 +13,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
13
13
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
14
  var _errors = require("../../models/errors");
15
15
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
16
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
16
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
17
17
  var RequestError = exports.RequestError = /*#__PURE__*/function (_BaseMediaClientError) {
18
18
  (0, _inherits2.default)(RequestError, _BaseMediaClientError);
19
19
  var _super = _createSuper(RequestError);
@@ -159,7 +159,6 @@ var DEFAULT_RETRY_OPTIONS = exports.DEFAULT_RETRY_OPTIONS = {
159
159
  // Current test delay is 60s, so retries should finish before if a promise takes < 1s
160
160
  factor: 2 // Good for polling, which is out main use case
161
161
  };
162
-
163
162
  function cloneRequestError(error, extraMetadata) {
164
163
  var reason = error.reason,
165
164
  metadata = error.metadata,
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +1,6 @@
1
1
  // Warning! You can't add new media file processing status!
2
2
  // See packages/media/media-core/src/__tests__/cache-backward-compatibility.spec.ts
3
+
3
4
  export const isPreviewableType = type => {
4
5
  const defaultPreviewableTypes = ['audio', 'video', 'image', 'doc'];
5
6
  return defaultPreviewableTypes.indexOf(type) > -1;
@@ -61,9 +61,8 @@ const getMediaApi = ({
61
61
  // URL ENDPOINTS
62
62
  // --------------------------------------------------------
63
63
 
64
- // TODO
65
- getFileImageURL: async () => {
66
- throw new Error('500 - MockedMediaApi.getFileImageURL: method not implemented');
64
+ getFileImageURL: async id => {
65
+ return `image-url-${id}`;
67
66
  },
68
67
  getFileImageURLSync: id => {
69
68
  return `image-url-sync-${id}`;
@@ -2,6 +2,7 @@ import uuid from 'uuid/v4';
2
2
  // --------------------------------------------------------
3
3
  // Factory Utils
4
4
  // --------------------------------------------------------
5
+
5
6
  export const normaliseInput = input => !input ? [] : input instanceof Array ? input : [input];
6
7
 
7
8
  // --------------------------------------------------------
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -102,7 +102,6 @@ export const DEFAULT_RETRY_OPTIONS = {
102
102
  // Current test delay is 60s, so retries should finish before if a promise takes < 1s
103
103
  factor: 2 // Good for polling, which is out main use case
104
104
  };
105
-
106
105
  export function cloneRequestError(error, extraMetadata) {
107
106
  const {
108
107
  reason,
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import { BaseMediaClientError } from '../../models/errors';
9
9
  export var FileFetcherError = /*#__PURE__*/function (_BaseMediaClientError) {
10
10
  _inherits(FileFetcherError, _BaseMediaClientError);
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import { BaseMediaClientError } from '../../models/errors';
9
9
  export var MediaStoreError = /*#__PURE__*/function (_BaseMediaClientError) {
10
10
  _inherits(MediaStoreError, _BaseMediaClientError);
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  export { isMediaClientError, getMediaClientErrorReason } from './helpers';
11
11
 
12
12
  /**
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +1,6 @@
1
1
  // Warning! You can't add new media file processing status!
2
2
  // See packages/media/media-core/src/__tests__/cache-backward-compatibility.spec.ts
3
+
3
4
  export var isPreviewableType = function isPreviewableType(type) {
4
5
  var defaultPreviewableTypes = ['audio', 'video', 'image', 'doc'];
5
6
  return defaultPreviewableTypes.indexOf(type) > -1;
@@ -183,20 +183,19 @@ var getMediaApi = function getMediaApi(_ref) {
183
183
  // URL ENDPOINTS
184
184
  // --------------------------------------------------------
185
185
 
186
- // TODO
187
186
  getFileImageURL: function () {
188
- var _getFileImageURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
187
+ var _getFileImageURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(id) {
189
188
  return _regeneratorRuntime.wrap(function _callee9$(_context9) {
190
189
  while (1) switch (_context9.prev = _context9.next) {
191
190
  case 0:
192
- throw new Error('500 - MockedMediaApi.getFileImageURL: method not implemented');
191
+ return _context9.abrupt("return", "image-url-".concat(id));
193
192
  case 1:
194
193
  case "end":
195
194
  return _context9.stop();
196
195
  }
197
196
  }, _callee9);
198
197
  }));
199
- function getFileImageURL() {
198
+ function getFileImageURL(_x9) {
200
199
  return _getFileImageURL.apply(this, arguments);
201
200
  }
202
201
  return getFileImageURL;
@@ -230,7 +229,7 @@ var getMediaApi = function getMediaApi(_ref) {
230
229
  }
231
230
  }, _callee10);
232
231
  }));
233
- function getFileBinaryURL(_x9) {
232
+ function getFileBinaryURL(_x10) {
234
233
  return _getFileBinaryURL.apply(this, arguments);
235
234
  }
236
235
  return getFileBinaryURL;
@@ -256,7 +255,7 @@ var getMediaApi = function getMediaApi(_ref) {
256
255
  }
257
256
  }, _callee11);
258
257
  }));
259
- function getArtifactURL(_x10, _x11) {
258
+ function getArtifactURL(_x11, _x12) {
260
259
  return _getArtifactURL.apply(this, arguments);
261
260
  }
262
261
  return getArtifactURL;
@@ -290,7 +289,7 @@ var getMediaApi = function getMediaApi(_ref) {
290
289
  }
291
290
  }, _callee12);
292
291
  }));
293
- function getImage(_x12) {
292
+ function getImage(_x13) {
294
293
  return _getImage.apply(this, arguments);
295
294
  }
296
295
  return getImage;
@@ -323,7 +322,7 @@ var getMediaApi = function getMediaApi(_ref) {
323
322
  }
324
323
  }, _callee13);
325
324
  }));
326
- function copyFileWithToken(_x13) {
325
+ function copyFileWithToken(_x14) {
327
326
  return _copyFileWithToken.apply(this, arguments);
328
327
  }
329
328
  return copyFileWithToken;
@@ -6,6 +6,7 @@ import uuid from 'uuid/v4';
6
6
  // --------------------------------------------------------
7
7
  // Factory Utils
8
8
  // --------------------------------------------------------
9
+
9
10
  export var normaliseInput = function normaliseInput(input) {
10
11
  return !input ? [] : input instanceof Array ? input : [input];
11
12
  };
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import { BaseMediaClientError } from '../models/errors';
9
9
  export var UploaderError = /*#__PURE__*/function (_BaseMediaClientError) {
10
10
  _inherits(UploaderError, _BaseMediaClientError);
@@ -1 +0,0 @@
1
- export {};
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import { BaseMediaClientError } from '../../models/errors';
9
9
  export var MobileUploadError = /*#__PURE__*/function (_BaseMediaClientError) {
10
10
  _inherits(MobileUploadError, _BaseMediaClientError);
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import { BaseMediaClientError } from '../../models/errors';
9
9
  export var PollingError = /*#__PURE__*/function (_BaseMediaClientError) {
10
10
  _inherits(PollingError, _BaseMediaClientError);
@@ -1 +0,0 @@
1
- export {};
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import { BaseMediaClientError } from '../../models/errors';
9
9
  export var RequestError = /*#__PURE__*/function (_BaseMediaClientError) {
10
10
  _inherits(RequestError, _BaseMediaClientError);
@@ -137,7 +137,6 @@ export var DEFAULT_RETRY_OPTIONS = {
137
137
  // Current test delay is 60s, so retries should finish before if a promise takes < 1s
138
138
  factor: 2 // Good for polling, which is out main use case
139
139
  };
140
-
141
140
  export function cloneRequestError(error, extraMetadata) {
142
141
  var reason = error.reason,
143
142
  metadata = error.metadata,
@@ -1,6 +1,6 @@
1
1
  import { UploadEventPayloadMap, EventPayloadListener } from './client/events';
2
2
  export declare const globalMediaEventEmitter: {
3
- on<E extends keyof UploadEventPayloadMap>(event: E, listener: EventPayloadListener<UploadEventPayloadMap, E, any>): void;
4
- off<E_1 extends keyof UploadEventPayloadMap>(event: E_1, listener: EventPayloadListener<UploadEventPayloadMap, E_1, any>): void;
3
+ on<E extends keyof UploadEventPayloadMap>(event: E, listener: EventPayloadListener<UploadEventPayloadMap, E>): void;
4
+ off<E_1 extends keyof UploadEventPayloadMap>(event: E_1, listener: EventPayloadListener<UploadEventPayloadMap, E_1>): void;
5
5
  emit<E_2 extends keyof UploadEventPayloadMap>(event: E_2, payload: UploadEventPayloadMap[E_2]): boolean | undefined;
6
6
  };
@@ -2,7 +2,7 @@ import { UploadingFileState, ErrorFileState, FileState } from '@atlaskit/media-s
2
2
  import { MediaFile } from '../../models/media';
3
3
  import { ResponseFileItem } from '../../client/media-store/types';
4
4
  import type { FileIdentifier } from '../../identifier';
5
- export declare const normaliseInput: <T>(input?: T | T[] | undefined) => T[];
5
+ export declare const normaliseInput: <T>(input?: T | T[]) => T[];
6
6
  export declare const getMediaFile: (fileItem: ResponseFileItem) => MediaFile;
7
7
  export declare const createEmptyFileItem: (id: string, collection?: string) => ResponseFileItem;
8
8
  /**
@@ -1,5 +1,5 @@
1
1
  export declare const defaultCollectionName = "MediaServicesSample";
2
2
  export declare const onlyAnimatedGifsCollectionName = "only-animated-gifs";
3
- export declare const fileCollectionName: string;
3
+ export declare const fileCollectionName = "MediaServicesSampleFiles";
4
4
  export declare const defaultMediaPickerCollectionName = "mediapicker-test";
5
5
  export declare const collectionNames: string[];
@@ -1,6 +1,6 @@
1
1
  import { UploadEventPayloadMap, EventPayloadListener } from './client/events';
2
2
  export declare const globalMediaEventEmitter: {
3
- on<E extends keyof UploadEventPayloadMap>(event: E, listener: EventPayloadListener<UploadEventPayloadMap, E, any>): void;
4
- off<E_1 extends keyof UploadEventPayloadMap>(event: E_1, listener: EventPayloadListener<UploadEventPayloadMap, E_1, any>): void;
3
+ on<E extends keyof UploadEventPayloadMap>(event: E, listener: EventPayloadListener<UploadEventPayloadMap, E>): void;
4
+ off<E_1 extends keyof UploadEventPayloadMap>(event: E_1, listener: EventPayloadListener<UploadEventPayloadMap, E_1>): void;
5
5
  emit<E_2 extends keyof UploadEventPayloadMap>(event: E_2, payload: UploadEventPayloadMap[E_2]): boolean | undefined;
6
6
  };
@@ -2,7 +2,7 @@ import { UploadingFileState, ErrorFileState, FileState } from '@atlaskit/media-s
2
2
  import { MediaFile } from '../../models/media';
3
3
  import { ResponseFileItem } from '../../client/media-store/types';
4
4
  import type { FileIdentifier } from '../../identifier';
5
- export declare const normaliseInput: <T>(input?: T | T[] | undefined) => T[];
5
+ export declare const normaliseInput: <T>(input?: T | T[]) => T[];
6
6
  export declare const getMediaFile: (fileItem: ResponseFileItem) => MediaFile;
7
7
  export declare const createEmptyFileItem: (id: string, collection?: string) => ResponseFileItem;
8
8
  /**
@@ -1,5 +1,5 @@
1
1
  export declare const defaultCollectionName = "MediaServicesSample";
2
2
  export declare const onlyAnimatedGifsCollectionName = "only-animated-gifs";
3
- export declare const fileCollectionName: string;
3
+ export declare const fileCollectionName = "MediaServicesSampleFiles";
4
4
  export declare const defaultMediaPickerCollectionName = "mediapicker-test";
5
5
  export declare const collectionNames: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-client",
3
- "version": "26.2.1",
3
+ "version": "26.2.3",
4
4
  "description": "Media API Web Client Library",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@atlaskit/chunkinator": "^6.0.0",
40
- "@atlaskit/media-common": "^11.0.0",
40
+ "@atlaskit/media-common": "^11.1.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "dataloader": "^2.0.0",
43
43
  "deep-equal": "^1.0.1",
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/media-core": "^34.2.0",
60
60
  "@atlaskit/media-state": "^1.0.0",
61
61
  "@atlaskit/ssr": "*",
62
- "@atlaskit/tokens": "^1.38.0",
62
+ "@atlaskit/tokens": "^1.43.0",
63
63
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
64
64
  "@emotion/react": "^11.7.1",
65
65
  "@types/deep-equal": "^1.0.1",
@@ -67,7 +67,7 @@
67
67
  "fetch-mock": "^8.0.0",
68
68
  "react": "^16.8.0",
69
69
  "react-dom": "^16.8.0",
70
- "typescript": "~4.9.5"
70
+ "typescript": "~5.4.2"
71
71
  },
72
72
  "techstack": {
73
73
  "@atlassian/frontend": {
@@ -83,4 +83,4 @@
83
83
  }
84
84
  },
85
85
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
86
- }
86
+ }