@atlaskit/media-client 26.1.0 → 26.1.1

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.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#65817](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65817) [`3be0ec786219`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3be0ec786219) - Updated mocked Media Api mothod
8
+
3
9
  ## 26.1.0
4
10
 
5
11
  ### Minor Changes
@@ -208,9 +208,8 @@ var getMediaApi = function getMediaApi(_ref) {
208
208
  }
209
209
  return getFileImageURL;
210
210
  }(),
211
- // TODO
212
- getFileImageURLSync: function getFileImageURLSync() {
213
- throw new Error('500 - MockedMediaApi.getFileImageURLSync: method not implemented');
211
+ getFileImageURLSync: function getFileImageURLSync(id) {
212
+ return "image-url-sync-".concat(id);
214
213
  },
215
214
  getFileBinaryURL: function () {
216
215
  var _getFileBinaryURL = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(id) {
@@ -65,9 +65,8 @@ const getMediaApi = ({
65
65
  getFileImageURL: async () => {
66
66
  throw new Error('500 - MockedMediaApi.getFileImageURL: method not implemented');
67
67
  },
68
- // TODO
69
- getFileImageURLSync: () => {
70
- throw new Error('500 - MockedMediaApi.getFileImageURLSync: method not implemented');
68
+ getFileImageURLSync: id => {
69
+ return `image-url-sync-${id}`;
71
70
  },
72
71
  getFileBinaryURL: async id => {
73
72
  const fileItem = getItem(id);
@@ -201,9 +201,8 @@ var getMediaApi = function getMediaApi(_ref) {
201
201
  }
202
202
  return getFileImageURL;
203
203
  }(),
204
- // TODO
205
- getFileImageURLSync: function getFileImageURLSync() {
206
- throw new Error('500 - MockedMediaApi.getFileImageURLSync: method not implemented');
204
+ getFileImageURLSync: function getFileImageURLSync(id) {
205
+ return "image-url-sync-".concat(id);
207
206
  },
208
207
  getFileBinaryURL: function () {
209
208
  var _getFileBinaryURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(id) {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@atlaskit/media-client",
3
- "version": "26.1.0",
3
+ "version": "26.1.1",
4
4
  "description": "Media API Web Client Library",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
7
7
  },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
9
  "author": "Atlassian Pty Ltd",
10
10
  "license": "Apache-2.0",
11
11
  "main": "dist/cjs/index.js",
@@ -58,7 +58,7 @@
58
58
  "@atlaskit/media-core": "^34.1.0",
59
59
  "@atlaskit/media-state": "^1.0.0",
60
60
  "@atlaskit/ssr": "*",
61
- "@atlaskit/tokens": "^1.30.0",
61
+ "@atlaskit/tokens": "^1.35.0",
62
62
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
63
63
  "@emotion/react": "^11.7.1",
64
64
  "@types/deep-equal": "^1.0.1",