@aws-amplify/ui-react-storage 3.0.15 → 3.0.17

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.
@@ -1,6 +1,6 @@
1
1
  import { uploadData } from 'aws-amplify/storage';
2
2
 
3
- function uploadFile({ file, key, level = 'private', progressCallback, errorCallback, completeCallback, ...rest }) {
3
+ function uploadFile({ file, key, level = 'private', progressCallback: onProgress, errorCallback, completeCallback, ...rest }) {
4
4
  const contentType = file.type || 'binary/octet-stream';
5
5
  const input = {
6
6
  key,
@@ -8,7 +8,7 @@ function uploadFile({ file, key, level = 'private', progressCallback, errorCallb
8
8
  options: {
9
9
  accessLevel: level,
10
10
  contentType,
11
- onProgress: ({ transferredBytes, totalBytes }) => progressCallback({ transferredBytes, totalBytes }),
11
+ onProgress,
12
12
  ...rest,
13
13
  },
14
14
  };
@@ -1,3 +1,3 @@
1
- const VERSION = '3.0.15';
1
+ const VERSION = '3.0.17';
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.15';
35
+ const VERSION = '3.0.17';
36
36
 
37
37
  const StorageImage = ({ accessLevel, className, fallbackSrc, identityId, imgKey, onStorageGetError, validateObjectExistence, ...rest }) => {
38
38
  const resolvedValidateObjectExistence = ui.isUndefined(validateObjectExistence)
@@ -303,7 +303,7 @@ function useStorageManager(defaultFiles = []) {
303
303
  };
304
304
  }
305
305
 
306
- function uploadFile({ file, key, level = 'private', progressCallback, errorCallback, completeCallback, ...rest }) {
306
+ function uploadFile({ file, key, level = 'private', progressCallback: onProgress, errorCallback, completeCallback, ...rest }) {
307
307
  const contentType = file.type || 'binary/octet-stream';
308
308
  const input = {
309
309
  key,
@@ -311,7 +311,7 @@ function uploadFile({ file, key, level = 'private', progressCallback, errorCallb
311
311
  options: {
312
312
  accessLevel: level,
313
313
  contentType,
314
- onProgress: ({ transferredBytes, totalBytes }) => progressCallback({ transferredBytes, totalBytes }),
314
+ onProgress,
315
315
  ...rest,
316
316
  },
317
317
  };
package/dist/styles.css CHANGED
@@ -718,7 +718,7 @@
718
718
  --amplify-components-link-focus-color: var(--amplify-colors-font-focus);
719
719
  --amplify-components-link-hover-color: var(--amplify-colors-font-hover);
720
720
  --amplify-components-link-visited-color: var(--amplify-colors-font-interactive);
721
- --amplify-components-liveness-camera-module-background-color: var(--amplify-colors-black);
721
+ --amplify-components-liveness-camera-module-background-color: var(--amplify-colors-background-primary);
722
722
  --amplify-components-loader-width: var(--amplify-font-sizes-medium);
723
723
  --amplify-components-loader-height: var(--amplify-font-sizes-medium);
724
724
  --amplify-components-loader-font-size: var(--amplify-font-sizes-xs);
@@ -4205,7 +4205,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
4205
4205
 
4206
4206
  .amplify-liveness-landscape-error-modal {
4207
4207
  background-color: var(--amplify-colors-background-primary);
4208
- direction: column;
4208
+ flex-direction: column;
4209
4209
  text-align: center;
4210
4210
  align-items: center;
4211
4211
  justify-content: center;
@@ -10,4 +10,4 @@ export type UploadFileProps = {
10
10
  key: string | undefined;
11
11
  }) => void;
12
12
  } & Record<string, any>;
13
- export declare function uploadFile({ file, key, level, progressCallback, errorCallback, completeCallback, ...rest }: UploadFileProps): UploadDataOutput;
13
+ export declare function uploadFile({ file, key, level, progressCallback: onProgress, errorCallback, completeCallback, ...rest }: UploadFileProps): UploadDataOutput;
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.15";
1
+ export declare const VERSION = "3.0.17";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-storage",
3
- "version": "3.0.15",
3
+ "version": "3.0.17",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -39,14 +39,14 @@
39
39
  "typecheck": "tsc --noEmit"
40
40
  },
41
41
  "dependencies": {
42
- "@aws-amplify/ui": "6.0.11",
43
- "@aws-amplify/ui-react": "6.1.5",
44
- "@aws-amplify/ui-react-core": "3.0.11",
42
+ "@aws-amplify/ui": "6.0.13",
43
+ "@aws-amplify/ui-react": "6.1.7",
44
+ "@aws-amplify/ui-react-core": "3.0.13",
45
45
  "lodash": "4.17.21",
46
46
  "tslib": "^2.5.2"
47
47
  },
48
48
  "peerDependencies": {
49
- "aws-amplify": "^6.0.2",
49
+ "aws-amplify": "^6.0.26",
50
50
  "react": "^16.14.0 || ^17.0 || ^18.0",
51
51
  "react-dom": "^16.14.0 || ^17.0 || ^18.0"
52
52
  },