@aws-amplify/ui-react-storage 3.18.1 → 3.18.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/dist/browser.js CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var internals = require('@aws-amplify/storage/internals');
6
6
  require('aws-amplify');
7
7
  require('@aws-amplify/ui');
8
- var createStorageBrowser = require('./createStorageBrowser-CmLJTupk.js');
8
+ var createStorageBrowser = require('./createStorageBrowser-CIKB1K1X.js');
9
9
  require('@zip.js/zip.js');
10
10
  require('aws-amplify/storage');
11
11
  require('react');
@@ -582,6 +582,11 @@ const download = async (state, { config, data, options }) => {
582
582
  mode: 'cors',
583
583
  signal: state.batchAbort.signal,
584
584
  });
585
+ if (!response.ok) {
586
+ // Release the connection — the error body (S3 error XML) is never consumed.
587
+ response.body?.cancel().catch(() => { });
588
+ throw new Error(`Failed to download ${key}: ${response.status} ${response.statusText}`);
589
+ }
585
590
  if (!response.body)
586
591
  throw new Error(`Empty response body for ${key}`);
587
592
  const size = data.size ?? +(response.headers.get('content-length') ?? 0);
@@ -3912,7 +3917,7 @@ const componentsDefault = {
3912
3917
  Title,
3913
3918
  };
3914
3919
 
3915
- const VERSION = '3.18.1';
3920
+ const VERSION = '3.18.3';
3916
3921
 
3917
3922
  const Fallback = () => (React__namespace["default"].createElement("div", { className: STORAGE_BROWSER_BLOCK_TO_BE_UPDATED },
3918
3923
  React__namespace["default"].createElement("div", { className: `${STORAGE_BROWSER_BLOCK_TO_BE_UPDATED}__error-boundary` }, "Something went wrong.")));
@@ -188,6 +188,11 @@ const download = async (state, { config, data, options }) => {
188
188
  mode: 'cors',
189
189
  signal: state.batchAbort.signal,
190
190
  });
191
+ if (!response.ok) {
192
+ // Release the connection — the error body (S3 error XML) is never consumed.
193
+ response.body?.cancel().catch(() => { });
194
+ throw new Error(`Failed to download ${key}: ${response.status} ${response.statusText}`);
195
+ }
191
196
  if (!response.body)
192
197
  throw new Error(`Empty response body for ${key}`);
193
198
  const size = data.size ?? +(response.headers.get('content-length') ?? 0);
@@ -1,3 +1,3 @@
1
- const VERSION = '3.18.1';
1
+ const VERSION = '3.18.3';
2
2
 
3
3
  export { VERSION };
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ var uiReactCore = require('@aws-amplify/ui-react-core');
9
9
  var auth = require('aws-amplify/auth');
10
10
  var storage = require('aws-amplify/storage');
11
11
  var internal = require('@aws-amplify/ui-react/internal');
12
- var createStorageBrowser = require('./createStorageBrowser-CmLJTupk.js');
12
+ var createStorageBrowser = require('./createStorageBrowser-CIKB1K1X.js');
13
13
  require('@aws-amplify/storage/internals');
14
14
  require('aws-amplify');
15
15
  require('@zip.js/zip.js');
package/dist/styles.css CHANGED
@@ -4246,7 +4246,21 @@ html[dir=rtl] .amplify-field-group__inner-start {
4246
4246
  opacity: 0;
4247
4247
  }
4248
4248
  }
4249
+ .liveness-detector {
4250
+ display: flex;
4251
+ flex-direction: column;
4252
+ height: 100%;
4253
+ min-height: 0;
4254
+ }
4255
+ .liveness-detector > .amplify-flex,
4256
+ .liveness-detector .liveness-detector-check {
4257
+ flex: 1 1 auto;
4258
+ min-height: 0;
4259
+ }
4260
+
4249
4261
  .amplify-liveness-camera-module {
4262
+ flex: 1 1 auto;
4263
+ min-height: 0;
4250
4264
  flex-direction: column;
4251
4265
  align-items: center;
4252
4266
  justify-content: center;
@@ -4323,6 +4337,13 @@ html[dir=rtl] .amplify-field-group__inner-start {
4323
4337
  .amplify-liveness-video-anchor {
4324
4338
  position: relative;
4325
4339
  width: 100%;
4340
+ flex: 1 1 auto;
4341
+ min-height: 200px;
4342
+ overflow: hidden;
4343
+ }
4344
+
4345
+ .amplify-liveness-camera-module--mobile .amplify-liveness-video-anchor {
4346
+ flex: none;
4326
4347
  }
4327
4348
 
4328
4349
  .amplify-liveness-recording-icon-container {
@@ -4663,6 +4684,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
4663
4684
  justify-content: center;
4664
4685
  text-align: center;
4665
4686
  height: 480px;
4687
+ max-height: 100%;
4666
4688
  }
4667
4689
 
4668
4690
  .amplify-menu__wrapper {
@@ -1 +1 @@
1
- export declare const VERSION = "3.18.1";
1
+ export declare const VERSION = "3.18.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-storage",
3
- "version": "3.18.1",
3
+ "version": "3.18.3",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -50,9 +50,9 @@
50
50
  "typecheck": "tsc --noEmit && tsc --project tsconfig.sw.json --noEmit"
51
51
  },
52
52
  "dependencies": {
53
- "@aws-amplify/ui": "6.15.6",
54
- "@aws-amplify/ui-react": "6.15.6",
55
- "@aws-amplify/ui-react-core": "3.6.6",
53
+ "@aws-amplify/ui": "6.15.7",
54
+ "@aws-amplify/ui-react": "6.15.7",
55
+ "@aws-amplify/ui-react-core": "3.6.7",
56
56
  "tslib": "^2.5.2",
57
57
  "@zip.js/zip.js": "^2.7.53"
58
58
  },