@aws-amplify/ui-react-storage 3.0.1 → 3.0.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.
@@ -38,7 +38,9 @@ function storageManagerStateReducer(state, action) {
38
38
  ...files,
39
39
  {
40
40
  ...currentFile,
41
- status: FileStatus.QUEUED,
41
+ ...(currentFile.status === FileStatus.ADDED
42
+ ? { status: FileStatus.QUEUED }
43
+ : {}),
42
44
  },
43
45
  ];
44
46
  }, []);
@@ -1,3 +1,3 @@
1
- const VERSION = '3.0.1';
1
+ const VERSION = '3.0.3';
2
2
 
3
3
  export { VERSION };
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ function _interopNamespace(e) {
32
32
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
33
33
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
34
34
 
35
- const VERSION = '3.0.1';
35
+ const VERSION = '3.0.3';
36
36
 
37
37
  const StorageImage = ({ accessLevel, className, fallbackSrc, identityId, imgKey, onStorageGetError, validateObjectExistence, ...rest }) => {
38
38
  const resolvedValidateObjectExistence = ui.isUndefined(validateObjectExistence)
@@ -115,7 +115,9 @@ function storageManagerStateReducer(state, action) {
115
115
  ...files,
116
116
  {
117
117
  ...currentFile,
118
- status: FileStatus.QUEUED,
118
+ ...(currentFile.status === FileStatus.ADDED
119
+ ? { status: FileStatus.QUEUED }
120
+ : {}),
119
121
  },
120
122
  ];
121
123
  }, []);
package/dist/styles.css CHANGED
@@ -3905,7 +3905,8 @@ html[dir=rtl] .amplify-field-group__inner-start {
3905
3905
  }
3906
3906
 
3907
3907
  .amplify-liveness-cancel-button {
3908
- background-color: var(--amplify-colors-background-primary);
3908
+ background-color: #fff;
3909
+ color: hsl(190, 95%, 30%);
3909
3910
  }
3910
3911
 
3911
3912
  .amplify-liveness-fade-out {
@@ -3945,6 +3946,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
3945
3946
  left: 0;
3946
3947
  width: 100%;
3947
3948
  height: 100%;
3949
+ transform: scaleX(-1);
3948
3950
  }
3949
3951
 
3950
3952
  .amplify-liveness-freshness-canvas {
@@ -3994,12 +3996,16 @@ html[dir=rtl] .amplify-field-group__inner-start {
3994
3996
  .amplify-liveness-recording-icon {
3995
3997
  flex-direction: column;
3996
3998
  align-items: center;
3997
- background-color: var(--amplify-colors-background-primary);
3999
+ background-color: #fff;
3998
4000
  padding: var(--amplify-space-xxs);
3999
4001
  gap: var(--amplify-space-xxs);
4000
4002
  border-radius: var(--amplify-radii-small);
4001
4003
  }
4002
4004
 
4005
+ .amplify-liveness-recording-icon .amplify-text {
4006
+ color: var(--amplify-colors-black);
4007
+ }
4008
+
4003
4009
  .amplify-liveness-instruction-overlay {
4004
4010
  z-index: 1;
4005
4011
  }
@@ -4020,7 +4026,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
4020
4026
  .amplify-liveness-toast {
4021
4027
  background-color: var(--amplify-colors-background-primary);
4022
4028
  padding: var(--amplify-space-small);
4023
- border-radius: var(--amplify-radii-medium);
4029
+ max-width: 100%;
4024
4030
  }
4025
4031
 
4026
4032
  .amplify-liveness-toast__message {
@@ -4029,8 +4035,13 @@ html[dir=rtl] .amplify-field-group__inner-start {
4029
4035
  flex-direction: column;
4030
4036
  }
4031
4037
 
4038
+ .amplify-liveness-toast--medium {
4039
+ border-radius: var(--amplify-radii-medium);
4040
+ }
4041
+
4032
4042
  .amplify-liveness-toast--large {
4033
- font-size: var(--amplify-font-sizes-xl);
4043
+ font-size: var(--amplify-font-sizes-xxl);
4044
+ padding: 0 var(--amplify-space-xs);
4034
4045
  }
4035
4046
 
4036
4047
  .amplify-liveness-toast--primary {
@@ -4194,9 +4205,10 @@ html[dir=rtl] .amplify-field-group__inner-start {
4194
4205
  }
4195
4206
 
4196
4207
  .amplify-liveness-start-screen-warning {
4197
- color: var(--amplify-colors-orange-80);
4198
- background-color: var(--amplify-colors-orange-20);
4208
+ color: var(--amplify-colors-blue-90);
4209
+ background-color: var(--amplify-colors-blue-20);
4199
4210
  align-items: center;
4211
+ z-index: 3;
4200
4212
  }
4201
4213
 
4202
4214
  .amplify-liveness-start-screen-instructions__heading {
@@ -4215,7 +4227,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
4215
4227
  top: 0;
4216
4228
  width: 100%;
4217
4229
  height: 100%;
4218
- padding: var(--amplify-space-xl);
4230
+ padding: var(--amplify-space-large);
4219
4231
  }
4220
4232
 
4221
4233
  .amplify-liveness-error-modal {
@@ -4270,6 +4282,43 @@ html[dir=rtl] .amplify-field-group__inner-start {
4270
4282
  width: 240px;
4271
4283
  border: 1px solid var(--amplify-colors-border-secondary);
4272
4284
  border-radius: 2px;
4285
+ z-index: 4;
4286
+ }
4287
+
4288
+ .amplify-liveness-start-screen-camera-select {
4289
+ flex-direction: column;
4290
+ position: absolute;
4291
+ left: 0;
4292
+ top: 0;
4293
+ width: 100%;
4294
+ height: 100%;
4295
+ padding: var(--amplify-space-xl);
4296
+ align-items: center;
4297
+ justify-content: flex-end;
4298
+ display: flex;
4299
+ z-index: 2;
4300
+ }
4301
+
4302
+ .amplify-liveness-start-screen-camera-select__container {
4303
+ display: flex;
4304
+ justify-content: space-between;
4305
+ align-items: inherit;
4306
+ gap: var(--amplify-space-xs);
4307
+ }
4308
+
4309
+ .amplify-liveness-start-screen-camera-select__label,
4310
+ .amplify-liveness-start-screen-camera-select .amplify-select,
4311
+ .amplify-liveness-start-screen-camera-select .amplify-select__wrapper,
4312
+ .amplify-liveness-start-screen-camera-select .amplify-select__icon-wrapper {
4313
+ background-color: var(--amplify-colors-background-primary);
4314
+ color: var(--amplify-colors-font-primary);
4315
+ }
4316
+
4317
+ .amplify-liveness-start-screen-camera-waiting {
4318
+ flex-direction: column;
4319
+ align-items: center;
4320
+ justify-content: center;
4321
+ height: 480px;
4273
4322
  }
4274
4323
 
4275
4324
  .amplify-menu__wrapper {
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.1";
1
+ export declare const VERSION = "3.0.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-storage",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -39,9 +39,9 @@
39
39
  "typecheck": "tsc --noEmit"
40
40
  },
41
41
  "dependencies": {
42
- "@aws-amplify/ui": "6.0.0",
43
- "@aws-amplify/ui-react": "6.0.1",
44
- "@aws-amplify/ui-react-core": "3.0.0",
42
+ "@aws-amplify/ui": "6.0.1",
43
+ "@aws-amplify/ui-react": "6.0.2",
44
+ "@aws-amplify/ui-react-core": "3.0.1",
45
45
  "lodash": "4.17.21",
46
46
  "tslib": "^2.5.2"
47
47
  },