@aws-amplify/ui-react-storage 3.3.6 → 3.3.7

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,3 +1,3 @@
1
- const VERSION = '3.3.6';
1
+ const VERSION = '3.3.7';
2
2
 
3
3
  export { VERSION };
package/dist/index.js CHANGED
@@ -546,7 +546,7 @@ function FilePicker$1({ children, className = ui.ComponentClassName.FileUploader
546
546
  return (React__namespace["default"].createElement(uiReact.Button, { ...props, className: className, size: size }, children));
547
547
  }
548
548
 
549
- const VERSION = '3.3.6';
549
+ const VERSION = '3.3.7';
550
550
 
551
551
  const logger$1 = ui.getLogger('Storage');
552
552
  const MISSING_REQUIRED_PROPS_MESSAGE$1 = '`FileUploader` requires a `maxFileCount` prop to be provided.';
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import type { StorageAccessLevel } from '@aws-amplify/core';
3
2
  import { ContainerProps, DropZoneProps, FileListHeaderProps, FileListFooterProps, FileListProps, FilePickerProps } from './ui';
4
3
  import { FileUploaderDisplayText, PathCallback, UploadTask } from './utils';
5
4
  export declare enum FileStatus {
@@ -32,6 +31,7 @@ export type ProcessFile = (params: ProcessFileParams) => Promise<ProcessFilePara
32
31
  export interface FileUploaderHandle {
33
32
  clearFiles: () => void;
34
33
  }
34
+ export type StorageAccessLevel = 'guest' | 'protected' | 'private';
35
35
  export interface FileUploaderProps {
36
36
  /**
37
37
  * List of accepted File types, values of `['*']` or undefined allow any files
@@ -1,6 +1,5 @@
1
- import { StorageAccessLevel } from '@aws-amplify/core';
2
1
  import { UploadDataWithPathInput, UploadDataInput } from 'aws-amplify/storage';
3
- import { ProcessFile } from '../types';
2
+ import { ProcessFile, StorageAccessLevel } from '../types';
4
3
  import { PathCallback, PathInput } from './uploadFile';
5
4
  export interface GetInputParams {
6
5
  accessLevel: StorageAccessLevel | undefined;
@@ -1,5 +1,5 @@
1
- import { StorageAccessLevel } from '@aws-amplify/core';
2
1
  import { ImageProps } from '@aws-amplify/ui-react';
2
+ type StorageAccessLevel = 'guest' | 'protected' | 'private';
3
3
  export interface StorageImageProps extends Omit<ImageProps, 'src'> {
4
4
  /**
5
5
  * @deprecated
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { StorageAccessLevel } from '@aws-amplify/core';
3
- import { FileStatus } from '../FileUploader/types';
2
+ import { FileStatus, StorageAccessLevel } from '../FileUploader/types';
4
3
  import { FileUploaderDisplayText as StorageManagerDisplayText, PathCallback, UploadTask } from '../FileUploader/utils';
5
4
  import { ContainerProps, DropZoneProps, FileListHeaderProps, FileListFooterProps, FileListProps, FilePickerProps } from './ui';
6
5
  export interface StorageFile {
@@ -1 +1 @@
1
- export declare const VERSION = "3.3.6";
1
+ export declare const VERSION = "3.3.7";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-storage",
3
- "version": "3.3.6",
3
+ "version": "3.3.7",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -39,14 +39,13 @@
39
39
  "typecheck": "tsc --noEmit"
40
40
  },
41
41
  "dependencies": {
42
- "@aws-amplify/ui": "6.6.2",
43
- "@aws-amplify/ui-react": "6.5.2",
44
- "@aws-amplify/ui-react-core": "3.0.26",
42
+ "@aws-amplify/ui": "6.6.3",
43
+ "@aws-amplify/ui-react": "6.5.3",
44
+ "@aws-amplify/ui-react-core": "3.0.27",
45
45
  "lodash": "4.17.21",
46
46
  "tslib": "^2.5.2"
47
47
  },
48
48
  "peerDependencies": {
49
- "@aws-amplify/core": "*",
50
49
  "aws-amplify": "^6.6.0",
51
50
  "react": "^16.14.0 || ^17.0 || ^18.0",
52
51
  "react-dom": "^16.14.0 || ^17.0 || ^18.0"