@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.
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/components/FileUploader/types.d.ts +1 -1
- package/dist/types/components/FileUploader/utils/getInput.d.ts +1 -2
- package/dist/types/components/StorageImage/types.d.ts +1 -1
- package/dist/types/components/StorageManager/types.d.ts +1 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -5
package/dist/esm/version.mjs
CHANGED
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.
|
|
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,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
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 {
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.3.
|
|
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.
|
|
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.
|
|
43
|
-
"@aws-amplify/ui-react": "6.5.
|
|
44
|
-
"@aws-amplify/ui-react-core": "3.0.
|
|
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"
|