@atlaskit/media-client 26.2.2 → 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 26.2.2
4
10
 
5
11
  ### Patch Changes
@@ -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;
@@ -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}`;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-client",
3
- "version": "26.2.2",
3
+ "version": "26.2.3",
4
4
  "description": "Media API Web Client Library",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -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.42.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",