@atlaskit/media-client 19.1.0 → 20.0.0

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-client
2
2
 
3
+ ## 20.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`2e902a363ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e902a363ad) - MEX-1649 Update uploadChunk and probeChunk functions in mediastore with mandatory params - uploadId and partNumber
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 19.1.1
14
+
15
+ ### Patch Changes
16
+
17
+ - [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
18
+
3
19
  ## 19.1.0
4
20
 
5
21
  ### Minor Changes
@@ -231,22 +231,12 @@ var MediaStore = /*#__PURE__*/function () {
231
231
  }, {
232
232
  key: "uploadChunk",
233
233
  value: function () {
234
- var _uploadChunk = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(etag, blob) {
235
- var _ref,
236
- collectionName,
237
- uploadId,
238
- partNumber,
239
- traceContext,
240
- metadata,
241
- options,
242
- _args3 = arguments;
243
-
234
+ var _uploadChunk = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(etag, blob, uploadId, partNumber, collectionName, traceContext) {
235
+ var metadata, options;
244
236
  return _regenerator.default.wrap(function _callee3$(_context3) {
245
237
  while (1) {
246
238
  switch (_context3.prev = _context3.next) {
247
239
  case 0:
248
- _ref = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : {}, collectionName = _ref.collectionName, uploadId = _ref.uploadId, partNumber = _ref.partNumber;
249
- traceContext = _args3.length > 3 ? _args3[3] : undefined;
250
240
  metadata = {
251
241
  method: 'PUT',
252
242
  endpoint: '/chunk/{etag}'
@@ -262,10 +252,10 @@ var MediaStore = /*#__PURE__*/function () {
262
252
  body: blob,
263
253
  traceContext: traceContext
264
254
  });
265
- _context3.next = 6;
255
+ _context3.next = 4;
266
256
  return this.request("/chunk/".concat(etag), options);
267
257
 
268
- case 6:
258
+ case 4:
269
259
  case "end":
270
260
  return _context3.stop();
271
261
  }
@@ -273,7 +263,7 @@ var MediaStore = /*#__PURE__*/function () {
273
263
  }, _callee3, this);
274
264
  }));
275
265
 
276
- function uploadChunk(_x8, _x9) {
266
+ function uploadChunk(_x8, _x9, _x10, _x11, _x12, _x13) {
277
267
  return _uploadChunk.apply(this, arguments);
278
268
  }
279
269
 
@@ -281,12 +271,7 @@ var MediaStore = /*#__PURE__*/function () {
281
271
  }()
282
272
  }, {
283
273
  key: "probeChunks",
284
- value: function probeChunks(chunks) {
285
- var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
286
- collectionName = _ref2.collectionName,
287
- uploadId = _ref2.uploadId;
288
-
289
- var traceContext = arguments.length > 2 ? arguments[2] : undefined;
274
+ value: function probeChunks(chunks, uploadId, collectionName, traceContext) {
290
275
  var metadata = {
291
276
  method: 'POST',
292
277
  endpoint: '/chunk/probe'
@@ -375,13 +360,13 @@ var MediaStore = /*#__PURE__*/function () {
375
360
  key: "getFileImageURL",
376
361
  value: function () {
377
362
  var _getFileImageURL = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(id, params) {
378
- var _ref3, collectionName, auth;
363
+ var _ref, collectionName, auth;
379
364
 
380
365
  return _regenerator.default.wrap(function _callee4$(_context4) {
381
366
  while (1) {
382
367
  switch (_context4.prev = _context4.next) {
383
368
  case 0:
384
- _ref3 = params || {}, collectionName = _ref3.collection;
369
+ _ref = params || {}, collectionName = _ref.collection;
385
370
  _context4.next = 3;
386
371
  return this.resolveAuth({
387
372
  collectionName: collectionName
@@ -399,7 +384,7 @@ var MediaStore = /*#__PURE__*/function () {
399
384
  }, _callee4, this);
400
385
  }));
401
386
 
402
- function getFileImageURL(_x10, _x11) {
387
+ function getFileImageURL(_x14, _x15) {
403
388
  return _getFileImageURL.apply(this, arguments);
404
389
  }
405
390
 
@@ -455,7 +440,7 @@ var MediaStore = /*#__PURE__*/function () {
455
440
  }, _callee5, this);
456
441
  }));
457
442
 
458
- function getFileBinaryURL(_x12, _x13) {
443
+ function getFileBinaryURL(_x16, _x17) {
459
444
  return _getFileBinaryURL.apply(this, arguments);
460
445
  }
461
446
 
@@ -504,7 +489,7 @@ var MediaStore = /*#__PURE__*/function () {
504
489
  }, _callee6, this);
505
490
  }));
506
491
 
507
- function getArtifactURL(_x14, _x15, _x16) {
492
+ function getArtifactURL(_x18, _x19, _x20) {
508
493
  return _getArtifactURL.apply(this, arguments);
509
494
  }
510
495
 
@@ -549,7 +534,7 @@ var MediaStore = /*#__PURE__*/function () {
549
534
  }, _callee7, this);
550
535
  }));
551
536
 
552
- function getImage(_x17, _x18, _x19, _x20, _x21) {
537
+ function getImage(_x21, _x22, _x23, _x24, _x25) {
553
538
  return _getImage.apply(this, arguments);
554
539
  }
555
540
 
@@ -595,7 +580,7 @@ var MediaStore = /*#__PURE__*/function () {
595
580
  }, _callee8, this);
596
581
  }));
597
582
 
598
- function getItems(_x22, _x23, _x24) {
583
+ function getItems(_x26, _x27, _x28) {
599
584
  return _getItems.apply(this, arguments);
600
585
  }
601
586
 
@@ -631,7 +616,7 @@ var MediaStore = /*#__PURE__*/function () {
631
616
  }, _callee9, this);
632
617
  }));
633
618
 
634
- function getImageMetadata(_x25, _x26, _x27) {
619
+ function getImageMetadata(_x29, _x30, _x31) {
635
620
  return _getImageMetadata.apply(this, arguments);
636
621
  }
637
622
 
@@ -669,7 +654,7 @@ var MediaStore = /*#__PURE__*/function () {
669
654
  }, _callee10, this);
670
655
  }));
671
656
 
672
- function appendChunksToUpload(_x28, _x29, _x30, _x31) {
657
+ function appendChunksToUpload(_x32, _x33, _x34, _x35) {
673
658
  return _appendChunksToUpload.apply(this, arguments);
674
659
  }
675
660
 
@@ -761,7 +746,7 @@ var MediaStore = /*#__PURE__*/function () {
761
746
  }, _callee11, this);
762
747
  }));
763
748
 
764
- function request(_x32) {
749
+ function request(_x36) {
765
750
  return _request2.apply(this, arguments);
766
751
  }
767
752
 
@@ -62,28 +62,24 @@ var createProbingFunction = function createProbingFunction(store, deferredUpload
62
62
  case 0:
63
63
  _context2.t0 = store;
64
64
  _context2.t1 = hashedChunks(chunks);
65
- _context2.t2 = collectionName;
66
- _context2.next = 5;
65
+ _context2.next = 4;
67
66
  return deferredUploadId;
68
67
 
69
- case 5:
70
- _context2.t3 = _context2.sent;
71
- _context2.t4 = {
72
- collectionName: _context2.t2,
73
- uploadId: _context2.t3
74
- };
75
- _context2.t5 = traceContext;
76
- _context2.next = 10;
77
- return _context2.t0.probeChunks.call(_context2.t0, _context2.t1, _context2.t4, _context2.t5);
68
+ case 4:
69
+ _context2.t2 = _context2.sent;
70
+ _context2.t3 = collectionName;
71
+ _context2.t4 = traceContext;
72
+ _context2.next = 9;
73
+ return _context2.t0.probeChunks.call(_context2.t0, _context2.t1, _context2.t2, _context2.t3, _context2.t4);
78
74
 
79
- case 10:
75
+ case 9:
80
76
  response = _context2.sent;
81
77
  results = response.data.results;
82
78
  return _context2.abrupt("return", Object.values(results).map(function (result) {
83
79
  return result.exists;
84
80
  }));
85
81
 
86
- case 13:
82
+ case 12:
87
83
  case "end":
88
84
  return _context2.stop();
89
85
  }
@@ -107,26 +103,21 @@ var createUploadingFunction = function createUploadingFunction(store, deferredUp
107
103
  _context3.t0 = store;
108
104
  _context3.t1 = chunk.hash;
109
105
  _context3.t2 = chunk.blob;
110
- _context3.t3 = collectionName;
111
- _context3.t4 = chunk.partNumber;
112
- _context3.next = 7;
106
+ _context3.next = 5;
113
107
  return deferredUploadId;
114
108
 
115
- case 7:
116
- _context3.t5 = _context3.sent;
117
- _context3.t6 = {
118
- collectionName: _context3.t3,
119
- partNumber: _context3.t4,
120
- uploadId: _context3.t5
121
- };
122
- _context3.t7 = traceContext;
123
- _context3.next = 12;
124
- return _context3.t0.uploadChunk.call(_context3.t0, _context3.t1, _context3.t2, _context3.t6, _context3.t7);
109
+ case 5:
110
+ _context3.t3 = _context3.sent;
111
+ _context3.t4 = chunk.partNumber;
112
+ _context3.t5 = collectionName;
113
+ _context3.t6 = traceContext;
114
+ _context3.next = 11;
115
+ return _context3.t0.uploadChunk.call(_context3.t0, _context3.t1, _context3.t2, _context3.t3, _context3.t4, _context3.t5, _context3.t6);
125
116
 
126
- case 12:
117
+ case 11:
127
118
  return _context3.abrupt("return", _context3.sent);
128
119
 
129
- case 13:
120
+ case 12:
130
121
  case "end":
131
122
  return _context3.stop();
132
123
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-client",
3
- "version": "19.1.0",
3
+ "version": "20.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -126,11 +126,7 @@ export class MediaStore {
126
126
  return this.request(`/upload`, options).then(createMapResponseToJson(metadata));
127
127
  }
128
128
 
129
- async uploadChunk(etag, blob, {
130
- collectionName,
131
- uploadId,
132
- partNumber
133
- } = {}, traceContext) {
129
+ async uploadChunk(etag, blob, uploadId, partNumber, collectionName, traceContext) {
134
130
  const metadata = {
135
131
  method: 'PUT',
136
132
  endpoint: '/chunk/{etag}'
@@ -149,10 +145,7 @@ export class MediaStore {
149
145
  await this.request(`/chunk/${etag}`, options);
150
146
  }
151
147
 
152
- probeChunks(chunks, {
153
- collectionName,
154
- uploadId
155
- } = {}, traceContext) {
148
+ probeChunks(chunks, uploadId, collectionName, traceContext) {
156
149
  const metadata = {
157
150
  method: 'POST',
158
151
  endpoint: '/chunk/probe'
@@ -12,20 +12,13 @@ const hashingFunction = async blob => {
12
12
  };
13
13
 
14
14
  const createProbingFunction = (store, deferredUploadId, collectionName, traceContext) => async chunks => {
15
- const response = await store.probeChunks(hashedChunks(chunks), {
16
- collectionName,
17
- uploadId: await deferredUploadId
18
- }, traceContext);
15
+ const response = await store.probeChunks(hashedChunks(chunks), await deferredUploadId, collectionName, traceContext);
19
16
  const results = response.data.results;
20
17
  return Object.values(results).map(result => result.exists);
21
18
  };
22
19
 
23
20
  const createUploadingFunction = (store, deferredUploadId, collectionName, traceContext) => async chunk => {
24
- return await store.uploadChunk(chunk.hash, chunk.blob, {
25
- collectionName,
26
- partNumber: chunk.partNumber,
27
- uploadId: await deferredUploadId
28
- }, traceContext);
21
+ return await store.uploadChunk(chunk.hash, chunk.blob, await deferredUploadId, chunk.partNumber, collectionName, traceContext);
29
22
  };
30
23
 
31
24
  const createProcessingFunction = (store, deferredUploadId, collection, traceContext) => {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-client",
3
- "version": "19.1.0",
3
+ "version": "20.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -200,22 +200,12 @@ export var MediaStore = /*#__PURE__*/function () {
200
200
  }, {
201
201
  key: "uploadChunk",
202
202
  value: function () {
203
- var _uploadChunk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(etag, blob) {
204
- var _ref,
205
- collectionName,
206
- uploadId,
207
- partNumber,
208
- traceContext,
209
- metadata,
210
- options,
211
- _args3 = arguments;
212
-
203
+ var _uploadChunk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(etag, blob, uploadId, partNumber, collectionName, traceContext) {
204
+ var metadata, options;
213
205
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
214
206
  while (1) {
215
207
  switch (_context3.prev = _context3.next) {
216
208
  case 0:
217
- _ref = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : {}, collectionName = _ref.collectionName, uploadId = _ref.uploadId, partNumber = _ref.partNumber;
218
- traceContext = _args3.length > 3 ? _args3[3] : undefined;
219
209
  metadata = {
220
210
  method: 'PUT',
221
211
  endpoint: '/chunk/{etag}'
@@ -231,10 +221,10 @@ export var MediaStore = /*#__PURE__*/function () {
231
221
  body: blob,
232
222
  traceContext: traceContext
233
223
  });
234
- _context3.next = 6;
224
+ _context3.next = 4;
235
225
  return this.request("/chunk/".concat(etag), options);
236
226
 
237
- case 6:
227
+ case 4:
238
228
  case "end":
239
229
  return _context3.stop();
240
230
  }
@@ -242,7 +232,7 @@ export var MediaStore = /*#__PURE__*/function () {
242
232
  }, _callee3, this);
243
233
  }));
244
234
 
245
- function uploadChunk(_x8, _x9) {
235
+ function uploadChunk(_x8, _x9, _x10, _x11, _x12, _x13) {
246
236
  return _uploadChunk.apply(this, arguments);
247
237
  }
248
238
 
@@ -250,12 +240,7 @@ export var MediaStore = /*#__PURE__*/function () {
250
240
  }()
251
241
  }, {
252
242
  key: "probeChunks",
253
- value: function probeChunks(chunks) {
254
- var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
255
- collectionName = _ref2.collectionName,
256
- uploadId = _ref2.uploadId;
257
-
258
- var traceContext = arguments.length > 2 ? arguments[2] : undefined;
243
+ value: function probeChunks(chunks, uploadId, collectionName, traceContext) {
259
244
  var metadata = {
260
245
  method: 'POST',
261
246
  endpoint: '/chunk/probe'
@@ -344,13 +329,13 @@ export var MediaStore = /*#__PURE__*/function () {
344
329
  key: "getFileImageURL",
345
330
  value: function () {
346
331
  var _getFileImageURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(id, params) {
347
- var _ref3, collectionName, auth;
332
+ var _ref, collectionName, auth;
348
333
 
349
334
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
350
335
  while (1) {
351
336
  switch (_context4.prev = _context4.next) {
352
337
  case 0:
353
- _ref3 = params || {}, collectionName = _ref3.collection;
338
+ _ref = params || {}, collectionName = _ref.collection;
354
339
  _context4.next = 3;
355
340
  return this.resolveAuth({
356
341
  collectionName: collectionName
@@ -368,7 +353,7 @@ export var MediaStore = /*#__PURE__*/function () {
368
353
  }, _callee4, this);
369
354
  }));
370
355
 
371
- function getFileImageURL(_x10, _x11) {
356
+ function getFileImageURL(_x14, _x15) {
372
357
  return _getFileImageURL.apply(this, arguments);
373
358
  }
374
359
 
@@ -424,7 +409,7 @@ export var MediaStore = /*#__PURE__*/function () {
424
409
  }, _callee5, this);
425
410
  }));
426
411
 
427
- function getFileBinaryURL(_x12, _x13) {
412
+ function getFileBinaryURL(_x16, _x17) {
428
413
  return _getFileBinaryURL.apply(this, arguments);
429
414
  }
430
415
 
@@ -473,7 +458,7 @@ export var MediaStore = /*#__PURE__*/function () {
473
458
  }, _callee6, this);
474
459
  }));
475
460
 
476
- function getArtifactURL(_x14, _x15, _x16) {
461
+ function getArtifactURL(_x18, _x19, _x20) {
477
462
  return _getArtifactURL.apply(this, arguments);
478
463
  }
479
464
 
@@ -518,7 +503,7 @@ export var MediaStore = /*#__PURE__*/function () {
518
503
  }, _callee7, this);
519
504
  }));
520
505
 
521
- function getImage(_x17, _x18, _x19, _x20, _x21) {
506
+ function getImage(_x21, _x22, _x23, _x24, _x25) {
522
507
  return _getImage.apply(this, arguments);
523
508
  }
524
509
 
@@ -564,7 +549,7 @@ export var MediaStore = /*#__PURE__*/function () {
564
549
  }, _callee8, this);
565
550
  }));
566
551
 
567
- function getItems(_x22, _x23, _x24) {
552
+ function getItems(_x26, _x27, _x28) {
568
553
  return _getItems.apply(this, arguments);
569
554
  }
570
555
 
@@ -600,7 +585,7 @@ export var MediaStore = /*#__PURE__*/function () {
600
585
  }, _callee9, this);
601
586
  }));
602
587
 
603
- function getImageMetadata(_x25, _x26, _x27) {
588
+ function getImageMetadata(_x29, _x30, _x31) {
604
589
  return _getImageMetadata.apply(this, arguments);
605
590
  }
606
591
 
@@ -638,7 +623,7 @@ export var MediaStore = /*#__PURE__*/function () {
638
623
  }, _callee10, this);
639
624
  }));
640
625
 
641
- function appendChunksToUpload(_x28, _x29, _x30, _x31) {
626
+ function appendChunksToUpload(_x32, _x33, _x34, _x35) {
642
627
  return _appendChunksToUpload.apply(this, arguments);
643
628
  }
644
629
 
@@ -730,7 +715,7 @@ export var MediaStore = /*#__PURE__*/function () {
730
715
  }, _callee11, this);
731
716
  }));
732
717
 
733
- function request(_x32) {
718
+ function request(_x36) {
734
719
  return _request2.apply(this, arguments);
735
720
  }
736
721
 
@@ -45,28 +45,24 @@ var createProbingFunction = function createProbingFunction(store, deferredUpload
45
45
  case 0:
46
46
  _context2.t0 = store;
47
47
  _context2.t1 = hashedChunks(chunks);
48
- _context2.t2 = collectionName;
49
- _context2.next = 5;
48
+ _context2.next = 4;
50
49
  return deferredUploadId;
51
50
 
52
- case 5:
53
- _context2.t3 = _context2.sent;
54
- _context2.t4 = {
55
- collectionName: _context2.t2,
56
- uploadId: _context2.t3
57
- };
58
- _context2.t5 = traceContext;
59
- _context2.next = 10;
60
- return _context2.t0.probeChunks.call(_context2.t0, _context2.t1, _context2.t4, _context2.t5);
51
+ case 4:
52
+ _context2.t2 = _context2.sent;
53
+ _context2.t3 = collectionName;
54
+ _context2.t4 = traceContext;
55
+ _context2.next = 9;
56
+ return _context2.t0.probeChunks.call(_context2.t0, _context2.t1, _context2.t2, _context2.t3, _context2.t4);
61
57
 
62
- case 10:
58
+ case 9:
63
59
  response = _context2.sent;
64
60
  results = response.data.results;
65
61
  return _context2.abrupt("return", Object.values(results).map(function (result) {
66
62
  return result.exists;
67
63
  }));
68
64
 
69
- case 13:
65
+ case 12:
70
66
  case "end":
71
67
  return _context2.stop();
72
68
  }
@@ -90,26 +86,21 @@ var createUploadingFunction = function createUploadingFunction(store, deferredUp
90
86
  _context3.t0 = store;
91
87
  _context3.t1 = chunk.hash;
92
88
  _context3.t2 = chunk.blob;
93
- _context3.t3 = collectionName;
94
- _context3.t4 = chunk.partNumber;
95
- _context3.next = 7;
89
+ _context3.next = 5;
96
90
  return deferredUploadId;
97
91
 
98
- case 7:
99
- _context3.t5 = _context3.sent;
100
- _context3.t6 = {
101
- collectionName: _context3.t3,
102
- partNumber: _context3.t4,
103
- uploadId: _context3.t5
104
- };
105
- _context3.t7 = traceContext;
106
- _context3.next = 12;
107
- return _context3.t0.uploadChunk.call(_context3.t0, _context3.t1, _context3.t2, _context3.t6, _context3.t7);
92
+ case 5:
93
+ _context3.t3 = _context3.sent;
94
+ _context3.t4 = chunk.partNumber;
95
+ _context3.t5 = collectionName;
96
+ _context3.t6 = traceContext;
97
+ _context3.next = 11;
98
+ return _context3.t0.uploadChunk.call(_context3.t0, _context3.t1, _context3.t2, _context3.t3, _context3.t4, _context3.t5, _context3.t6);
108
99
 
109
- case 12:
100
+ case 11:
110
101
  return _context3.abrupt("return", _context3.sent);
111
102
 
112
- case 13:
103
+ case 12:
113
104
  case "end":
114
105
  return _context3.stop();
115
106
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/media-client",
3
- "version": "19.1.0",
3
+ "version": "20.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -12,15 +12,8 @@ export declare class MediaStore {
12
12
  getCollectionItems(collectionName: string, params?: MediaStoreGetCollectionItemsParams, traceContext?: MediaTraceContext): Promise<MediaStoreResponse<MediaCollectionItems>>;
13
13
  removeCollectionFile(id: string, collectionName: string, occurrenceKey?: string, traceContext?: MediaTraceContext): Promise<void>;
14
14
  createUpload(createUpTo?: number, collectionName?: string, traceContext?: MediaTraceContext): Promise<MediaStoreResponse<MediaUpload[]>>;
15
- uploadChunk(etag: string, blob: Blob, { collectionName, uploadId, partNumber, }?: {
16
- collectionName?: string;
17
- uploadId?: string;
18
- partNumber?: number;
19
- }, traceContext?: MediaTraceContext): Promise<void>;
20
- probeChunks(chunks: string[], { collectionName, uploadId, }?: {
21
- collectionName?: string;
22
- uploadId?: string;
23
- }, traceContext?: MediaTraceContext): Promise<MediaStoreResponse<MediaChunksProbe>>;
15
+ uploadChunk(etag: string, blob: Blob, uploadId: string, partNumber: number, collectionName?: string, traceContext?: MediaTraceContext): Promise<void>;
16
+ probeChunks(chunks: string[], uploadId: string, collectionName?: string, traceContext?: MediaTraceContext): Promise<MediaStoreResponse<MediaChunksProbe>>;
24
17
  createFileFromUpload(body: MediaStoreCreateFileFromUploadBody, params?: MediaStoreCreateFileFromUploadParams, traceContext?: MediaTraceContext): Promise<MediaStoreResponse<MediaFile>>;
25
18
  touchFiles(body: MediaStoreTouchFileBody, params?: MediaStoreTouchFileParams, traceContext?: MediaTraceContext): Promise<MediaStoreResponse<TouchedFiles>>;
26
19
  getFile(fileId: string, params?: MediaStoreGetFileParams, traceContext?: MediaTraceContext): Promise<MediaStoreResponse<MediaFile>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-client",
3
- "version": "19.1.0",
3
+ "version": "20.0.0",
4
4
  "description": "Media API Web Client Library",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
package/report.api.md CHANGED
@@ -8,6 +8,7 @@
8
8
  ### Table of contents
9
9
 
10
10
  - [Main Entry Types](#main-entry-types)
11
+ - [Peer Dependencies](#peer-dependencies)
11
12
 
12
13
  ### Main Entry Types
13
14
 
@@ -1024,13 +1025,8 @@ export class MediaStore {
1024
1025
  // (undocumented)
1025
1026
  probeChunks(
1026
1027
  chunks: string[],
1027
- {
1028
- collectionName,
1029
- uploadId,
1030
- }?: {
1031
- collectionName?: string;
1032
- uploadId?: string;
1033
- },
1028
+ uploadId: string,
1029
+ collectionName?: string,
1034
1030
  traceContext?: MediaTraceContext,
1035
1031
  ): Promise<MediaStoreResponse<MediaChunksProbe>>;
1036
1032
  // (undocumented)
@@ -1060,15 +1056,9 @@ export class MediaStore {
1060
1056
  uploadChunk(
1061
1057
  etag: string,
1062
1058
  blob: Blob,
1063
- {
1064
- collectionName,
1065
- uploadId,
1066
- partNumber,
1067
- }?: {
1068
- collectionName?: string;
1069
- uploadId?: string;
1070
- partNumber?: number;
1071
- },
1059
+ uploadId: string,
1060
+ partNumber: number,
1061
+ collectionName?: string,
1072
1062
  traceContext?: MediaTraceContext,
1073
1063
  ): Promise<void>;
1074
1064
  }
@@ -1718,3 +1708,17 @@ export type WithMediaClientFunction = <P extends WithMediaClient>(
1718
1708
  ```
1719
1709
 
1720
1710
  <!--SECTION END: Main Entry Types-->
1711
+
1712
+ ### Peer Dependencies
1713
+
1714
+ <!--SECTION START: Peer Dependencies-->
1715
+
1716
+ ```json
1717
+ {
1718
+ "@atlaskit/media-core": "^34.0.1",
1719
+ "@emotion/react": "^11.7.1",
1720
+ "react": "^16.8.0"
1721
+ }
1722
+ ```
1723
+
1724
+ <!--SECTION END: Peer Dependencies-->