@aws-amplify/ui-react-storage 3.6.1 → 3.7.1

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.
Files changed (53) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/{createAmplifyAuthAdapter-va4cyg_O.js → createAmplifyAuthAdapter-D6MKiBgI.js} +4 -2
  3. package/dist/esm/components/StorageBrowser/actions/handlers/constants.mjs +3 -0
  4. package/dist/esm/components/StorageBrowser/actions/handlers/createFolder.mjs +2 -0
  5. package/dist/esm/components/StorageBrowser/actions/handlers/upload.mjs +2 -2
  6. package/dist/esm/version.mjs +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/types/components/FileUploader/ui/Container/Container.d.ts +1 -1
  9. package/dist/types/components/FileUploader/ui/DropZone/DropZone.d.ts +2 -2
  10. package/dist/types/components/FileUploader/ui/DropZone/types.d.ts +0 -1
  11. package/dist/types/components/FileUploader/ui/FileList/FileControl.d.ts +2 -2
  12. package/dist/types/components/FileUploader/ui/FileList/FileDetails.d.ts +2 -2
  13. package/dist/types/components/FileUploader/ui/FileList/FileList.d.ts +2 -2
  14. package/dist/types/components/FileUploader/ui/FileList/FileRemoveButton.d.ts +2 -2
  15. package/dist/types/components/FileUploader/ui/FileList/FileStatusMessage.d.ts +2 -2
  16. package/dist/types/components/FileUploader/ui/FileList/FileThumbnail.d.ts +2 -2
  17. package/dist/types/components/FileUploader/ui/FileListFooter/FileListFooter.d.ts +2 -2
  18. package/dist/types/components/FileUploader/ui/FileListHeader/FileListHeader.d.ts +2 -2
  19. package/dist/types/components/FileUploader/ui/FilePicker/FilePicker.d.ts +2 -2
  20. package/dist/types/components/StorageBrowser/actions/configs/context.d.ts +0 -1
  21. package/dist/types/components/StorageBrowser/actions/handlers/constants.d.ts +1 -0
  22. package/dist/types/components/StorageBrowser/actions/handlers/upload.d.ts +0 -1
  23. package/dist/types/components/StorageBrowser/composables/context.d.ts +0 -1
  24. package/dist/types/components/StorageBrowser/composables/types.d.ts +0 -1
  25. package/dist/types/components/StorageBrowser/context/elements/defaults.d.ts +1 -1
  26. package/dist/types/components/StorageBrowser/context/elements/definitions.d.ts +1 -2
  27. package/dist/types/components/StorageBrowser/controls/context.d.ts +0 -1
  28. package/dist/types/components/StorageBrowser/controls/types.d.ts +0 -1
  29. package/dist/types/components/StorageBrowser/providers/store/actionType/types.d.ts +0 -1
  30. package/dist/types/components/StorageBrowser/providers/store/files/types.d.ts +0 -1
  31. package/dist/types/components/StorageBrowser/useAction/context.d.ts +0 -1
  32. package/dist/types/components/StorageBrowser/views/LocationActionView/CopyView/types.d.ts +0 -1
  33. package/dist/types/components/StorageBrowser/views/LocationActionView/CreateFolderView/types.d.ts +0 -1
  34. package/dist/types/components/StorageBrowser/views/LocationActionView/DeleteView/types.d.ts +0 -1
  35. package/dist/types/components/StorageBrowser/views/LocationActionView/UploadView/types.d.ts +0 -1
  36. package/dist/types/components/StorageBrowser/views/LocationActionView/types.d.ts +0 -1
  37. package/dist/types/components/StorageBrowser/views/LocationDetailView/types.d.ts +0 -1
  38. package/dist/types/components/StorageBrowser/views/LocationsView/types.d.ts +0 -1
  39. package/dist/types/components/StorageImage/StorageImage.d.ts +2 -2
  40. package/dist/types/components/StorageManager/ui/Container/Container.d.ts +1 -1
  41. package/dist/types/components/StorageManager/ui/DropZone/DropZone.d.ts +2 -2
  42. package/dist/types/components/StorageManager/ui/DropZone/types.d.ts +0 -1
  43. package/dist/types/components/StorageManager/ui/FileList/FileControl.d.ts +2 -2
  44. package/dist/types/components/StorageManager/ui/FileList/FileDetails.d.ts +2 -2
  45. package/dist/types/components/StorageManager/ui/FileList/FileList.d.ts +2 -2
  46. package/dist/types/components/StorageManager/ui/FileList/FileRemoveButton.d.ts +2 -2
  47. package/dist/types/components/StorageManager/ui/FileList/FileStatusMessage.d.ts +2 -2
  48. package/dist/types/components/StorageManager/ui/FileList/FileThumbnail.d.ts +2 -2
  49. package/dist/types/components/StorageManager/ui/FileListFooter/FileListFooter.d.ts +2 -2
  50. package/dist/types/components/StorageManager/ui/FileListHeader/FileListHeader.d.ts +2 -2
  51. package/dist/types/components/StorageManager/ui/FilePicker/FilePicker.d.ts +2 -2
  52. package/dist/types/version.d.ts +1 -1
  53. package/package.json +8 -8
package/dist/browser.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var createAmplifyAuthAdapter = require('./createAmplifyAuthAdapter-va4cyg_O.js');
5
+ var createAmplifyAuthAdapter = require('./createAmplifyAuthAdapter-D6MKiBgI.js');
6
6
  var internals = require('@aws-amplify/storage/internals');
7
7
  require('@aws-amplify/ui');
8
8
  require('aws-amplify/storage');
@@ -32,7 +32,7 @@ function _interopNamespace(e) {
32
32
 
33
33
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
34
34
 
35
- const VERSION = '3.6.1';
35
+ const VERSION = '3.7.1';
36
36
 
37
37
  const constructBucket = ({ bucket: bucketName, region, }) => ({ bucketName, region });
38
38
  const parseAccessGrantLocation = (location) => {
@@ -159,6 +159,8 @@ const copyHandler = (input) => {
159
159
  };
160
160
  };
161
161
 
162
+ const DEFAULT_CHECKSUM_ALGORITHM = 'crc-32';
163
+
162
164
  const createFolderHandler = (input) => {
163
165
  const { config, data, options } = input;
164
166
  const { accountId, credentials, customEndpoint } = config;
@@ -178,6 +180,7 @@ const createFolderHandler = (input) => {
178
180
  onProgress(data, getProgress(event));
179
181
  },
180
182
  preventOverwrite,
183
+ checksumAlgorithm: DEFAULT_CHECKSUM_ALGORITHM,
181
184
  },
182
185
  });
183
186
  return {
@@ -348,7 +351,6 @@ const isFileTooBig = (file) => file.size > UPLOAD_FILE_SIZE_LIMIT;
348
351
  // 5MB for multipart upload
349
352
  // https://github.com/aws-amplify/amplify-js/blob/1a5366d113c9af4ce994168653df3aadb142c581/packages/storage/src/providers/s3/utils/constants.ts#L16
350
353
  const MULTIPART_UPLOAD_THRESHOLD_BYTES = 5 * 1024 * 1024;
351
- const DEFAULT_CHECKSUM_ALGORITHM = 'crc-32';
352
354
  const UNDEFINED_CALLBACKS = {
353
355
  cancel: undefined,
354
356
  pause: undefined,
@@ -0,0 +1,3 @@
1
+ const DEFAULT_CHECKSUM_ALGORITHM = 'crc-32';
2
+
3
+ export { DEFAULT_CHECKSUM_ALGORITHM };
@@ -1,6 +1,7 @@
1
1
  import { isFunction } from '@aws-amplify/ui';
2
2
  import { uploadData } from '@aws-amplify/storage/internals';
3
3
  import { getProgress, constructBucket } from './utils.mjs';
4
+ import { DEFAULT_CHECKSUM_ALGORITHM } from './constants.mjs';
4
5
 
5
6
  const createFolderHandler = (input) => {
6
7
  const { config, data, options } = input;
@@ -21,6 +22,7 @@ const createFolderHandler = (input) => {
21
22
  onProgress(data, getProgress(event));
22
23
  },
23
24
  preventOverwrite,
25
+ checksumAlgorithm: DEFAULT_CHECKSUM_ALGORITHM,
24
26
  },
25
27
  });
26
28
  return {
@@ -2,11 +2,11 @@ import { isCancelError } from 'aws-amplify/storage';
2
2
  import { isFunction } from '@aws-amplify/ui';
3
3
  import { uploadData } from '@aws-amplify/storage/internals';
4
4
  import { constructBucket, getProgress } from './utils.mjs';
5
+ import { DEFAULT_CHECKSUM_ALGORITHM } from './constants.mjs';
5
6
 
6
7
  // 5MB for multipart upload
7
8
  // https://github.com/aws-amplify/amplify-js/blob/1a5366d113c9af4ce994168653df3aadb142c581/packages/storage/src/providers/s3/utils/constants.ts#L16
8
9
  const MULTIPART_UPLOAD_THRESHOLD_BYTES = 5 * 1024 * 1024;
9
- const DEFAULT_CHECKSUM_ALGORITHM = 'crc-32';
10
10
  const UNDEFINED_CALLBACKS = {
11
11
  cancel: undefined,
12
12
  pause: undefined,
@@ -55,4 +55,4 @@ const uploadHandler = ({ config, data, options }) => {
55
55
  };
56
56
  };
57
57
 
58
- export { DEFAULT_CHECKSUM_ALGORITHM, MULTIPART_UPLOAD_THRESHOLD_BYTES, UNDEFINED_CALLBACKS, uploadHandler };
58
+ export { MULTIPART_UPLOAD_THRESHOLD_BYTES, UNDEFINED_CALLBACKS, uploadHandler };
@@ -1,3 +1,3 @@
1
- const VERSION = '3.6.1';
1
+ const VERSION = '3.7.1';
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 createAmplifyAuthAdapter = require('./createAmplifyAuthAdapter-va4cyg_O.js');
12
+ var createAmplifyAuthAdapter = require('./createAmplifyAuthAdapter-D6MKiBgI.js');
13
13
  require('@aws-amplify/storage/internals');
14
14
  require('@aws-amplify/ui-react-core/elements');
15
15
  require('aws-amplify');
@@ -3,4 +3,4 @@ export interface ContainerProps {
3
3
  children: React.ReactNode;
4
4
  className: string;
5
5
  }
6
- export declare function Container({ children, className, }: ContainerProps): JSX.Element;
6
+ export declare function Container({ children, className, }: ContainerProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { DropZoneProps } from './types';
3
- export declare function DropZone({ children, displayText, inDropZone, onDragEnter, onDragLeave, onDragOver, onDragStart, onDrop, testId, }: DropZoneProps): JSX.Element;
3
+ export declare function DropZone({ children, displayText, inDropZone, onDragEnter, onDragLeave, onDragOver, onDragStart, onDrop, testId, }: DropZoneProps): React.JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FileUploaderDisplayText } from '../../utils/displayText';
3
2
  export interface DropZoneProps {
4
3
  children?: React.ReactNode;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileControlProps } from './types';
3
- export declare function FileControl({ onPause, onResume, displayName, errorMessage, isImage, isResumable, loaderIsDeterminate, onRemove, progress, showThumbnails, size, status, displayText, thumbnailUrl, }: FileControlProps): JSX.Element;
3
+ export declare function FileControl({ onPause, onResume, displayName, errorMessage, isImage, isResumable, loaderIsDeterminate, onRemove, progress, showThumbnails, size, status, displayText, thumbnailUrl, }: FileControlProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { UploadDetailsProps } from './types';
3
- export declare const UploadDetails: ({ displayName, fileSize, }: UploadDetailsProps) => JSX.Element;
3
+ export declare const UploadDetails: ({ displayName, fileSize, }: UploadDetailsProps) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileListProps } from './types';
3
- export declare function FileList({ displayText, files, hasMaxFilesError, isResumable, onCancelUpload, onDeleteUpload, onResume, onPause, showThumbnails, maxFileCount, }: FileListProps): JSX.Element | null;
3
+ export declare function FileList({ displayText, files, hasMaxFilesError, isResumable, onCancelUpload, onDeleteUpload, onResume, onPause, showThumbnails, maxFileCount, }: FileListProps): React.JSX.Element | null;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileRemoveButtonProps } from './types';
3
- export declare const FileRemoveButton: ({ altText, onClick, }: FileRemoveButtonProps) => JSX.Element;
3
+ export declare const FileRemoveButton: ({ altText, onClick, }: FileRemoveButtonProps) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileStatusMessageProps } from './types';
3
- export declare const FileStatusMessage: ({ errorMessage, getPausedText, getUploadingText, percentage, status, uploadSuccessfulText, }: FileStatusMessageProps) => JSX.Element | null;
3
+ export declare const FileStatusMessage: ({ errorMessage, getPausedText, getUploadingText, percentage, status, uploadSuccessfulText, }: FileStatusMessageProps) => React.JSX.Element | null;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileThumbnailProps } from './types';
3
- export declare const FileThumbnail: ({ fileName, isImage, url, }: FileThumbnailProps) => JSX.Element;
3
+ export declare const FileThumbnail: ({ fileName, isImage, url, }: FileThumbnailProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileUploaderDisplayTextDefault } from '../../utils';
3
3
  export interface FileListFooterProps {
4
4
  remainingFilesCount: number;
@@ -6,4 +6,4 @@ export interface FileListFooterProps {
6
6
  onClearAll: () => void;
7
7
  onUploadAll: () => void;
8
8
  }
9
- export declare function FileListFooter({ displayText, remainingFilesCount, onClearAll, onUploadAll, }: FileListFooterProps): JSX.Element;
9
+ export declare function FileListFooter({ displayText, remainingFilesCount, onClearAll, onUploadAll, }: FileListFooterProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileUploaderDisplayTextDefault } from '../../utils';
3
3
  export interface FileListHeaderProps {
4
4
  allUploadsSuccessful: boolean;
@@ -7,4 +7,4 @@ export interface FileListHeaderProps {
7
7
  remainingFilesCount: number;
8
8
  selectedFilesCount?: number;
9
9
  }
10
- export declare function FileListHeader({ allUploadsSuccessful, displayText, fileCount, remainingFilesCount, selectedFilesCount, }: FileListHeaderProps): JSX.Element;
10
+ export declare function FileListHeader({ allUploadsSuccessful, displayText, fileCount, remainingFilesCount, selectedFilesCount, }: FileListHeaderProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { ButtonProps } from '@aws-amplify/ui-react';
3
3
  export type FilePickerProps = ButtonProps;
4
- export declare function FilePicker({ children, className, size, ...props }: FilePickerProps): JSX.Element;
4
+ export declare function FilePicker({ children, className, size, ...props }: FilePickerProps): React.JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionViewConfigs } from './types';
3
2
  export interface ActionConfigsProviderProps {
4
3
  actionConfigs: ActionViewConfigs;
@@ -0,0 +1 @@
1
+ export declare const DEFAULT_CHECKSUM_ALGORITHM = "crc-32";
@@ -16,7 +16,6 @@ export interface UploadHandlerOutput extends TaskHandlerOutput<{
16
16
  export interface UploadHandler extends TaskHandler<UploadHandlerInput, UploadHandlerOutput> {
17
17
  }
18
18
  export declare const MULTIPART_UPLOAD_THRESHOLD_BYTES: number;
19
- export declare const DEFAULT_CHECKSUM_ALGORITHM = "crc-32";
20
19
  export declare const UNDEFINED_CALLBACKS: {
21
20
  cancel: undefined;
22
21
  pause: undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ComposablesContext } from './types';
3
2
  export declare const useComposables: (params?: {
4
3
  errorMessage?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionCancelProps } from './ActionCancel';
3
2
  import { ActionDestinationProps } from './ActionDestination';
4
3
  import { ActionExitProps } from './ActionExit';
@@ -19,7 +19,7 @@ export declare const elementsDefault: {
19
19
  DescriptionTerm: typeof DescriptionTerm;
20
20
  Input: typeof Input;
21
21
  Label: typeof Label;
22
- Nav: (props: NavElementProps) => JSX.Element;
22
+ Nav: (props: NavElementProps) => React.JSX.Element;
23
23
  Heading: typeof Heading;
24
24
  Span: typeof Span;
25
25
  Table: typeof Table;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconElement } from './IconElement';
3
2
  export interface StorageBrowserElements {
4
3
  Button: typeof ButtonElement;
@@ -81,7 +80,7 @@ export interface ProgressBarElementProps extends React.ComponentProps<typeof Pro
81
80
  }
82
81
  export declare const ProgressBarElement: import("@aws-amplify/ui-react-core/elements").BaseElement<import("@aws-amplify/ui-react-core/elements").BaseElementProps<never, string, import("react").SVGProps<SVGSVGElement>>>;
83
82
  export type InputElementProps = React.ComponentProps<typeof InputElement>;
84
- export declare const InputElement: import("@aws-amplify/ui-react-core/elements").BaseElement<import("@aws-amplify/ui-react-core/elements").BaseElementProps<"id" | "defaultChecked" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "onKeyUp" | "type" | "disabled" | "value" | "checked", string, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>>;
83
+ export declare const InputElement: import("@aws-amplify/ui-react-core/elements").BaseElement<import("@aws-amplify/ui-react-core/elements").BaseElementProps<"id" | "defaultChecked" | "onFocus" | "onBlur" | "onChange" | "onKeyUp" | "type" | "disabled" | "value" | "checked" | "placeholder", string, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>>;
85
84
  export interface ButtonElementProps extends React.ComponentProps<typeof ButtonElement> {
86
85
  }
87
86
  export declare const ButtonElement: import("@aws-amplify/ui-react-core/elements").BaseElement<import("@aws-amplify/ui-react-core/elements").BaseElementProps<"role" | "onClick" | "type" | "disabled" | "value", ButtonElementVariant, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlsContext } from './types';
3
2
  export declare const useControlsContext: (params?: {
4
3
  errorMessage?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LocationData } from '../actions';
3
2
  import { ActionListItem } from '../composables/ActionsList';
4
3
  import { DataTableSortHeader, DataTableProps } from '../composables/DataTable';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type ActionTypeAction = {
3
2
  type: 'SET_ACTION_TYPE';
4
3
  actionType: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LocationItemType, TaskData } from '../../../actions';
3
2
  /**
4
3
  * native OS file picker type. to restrict selectable file types, define the picker types
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionHandlersContext } from './types';
3
2
  export declare const ActionHandlersProvider: import("react").ComponentType<import("react").PropsWithChildren<ActionHandlersContext>>, useActionHandlers: (params?: {
4
3
  errorMessage?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FolderData, CopyHandlerData, LocationData } from '../../../actions';
3
2
  import { LocationState } from '../../../providers/store/location';
4
3
  import { ActionViewType, ActionViewProps, ActionViewState } from '../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CreateFolderHandlerData, LocationData } from '../../../actions';
3
2
  import { ActionViewType, ActionViewState, ActionViewProps } from '../types';
4
3
  export interface CreateFolderViewState extends Omit<ActionViewState<CreateFolderHandlerData>, 'onActionCancel'> {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DeleteHandlerData, LocationData } from '../../../actions';
3
2
  import { ActionViewType, ActionViewProps, ActionViewState } from '../types';
4
3
  export interface DeleteViewState extends ActionViewState<DeleteHandlerData> {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LocationData, UploadHandlerData } from '../../../actions';
3
2
  import { FileItem, FileItems } from '../../../providers';
4
3
  import { ActionViewType, ActionViewProps, ActionViewState } from '../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LocationData, TaskData } from '../../actions';
3
2
  import { LocationState } from '../../providers/store/location';
4
3
  import { StatusCounts, Task, Tasks } from '../../tasks';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FileData, FileDataItem, LocationData, LocationItemData } from '../../actions';
3
2
  import { ActionListItem } from '../../composables/ActionsList';
4
3
  import { LocationState } from '../../providers/store/location';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LocationData } from '../../actions';
3
2
  import { ListViewProps } from '../types';
4
3
  export interface LocationsViewState {
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import type { StorageImageProps, StorageImagePathProps } from './types';
3
3
  export declare const MISSING_REQUIRED_PROP_MESSAGE = "`StorageImage` requires either an `imgKey` or `path` prop.";
4
4
  export declare const HAS_DEPRECATED_PROPS_MESSAGE = "`imgKey`, `accessLevel`, and `identityId` will be replaced with `path` in a future major version. See https://ui.docs.amplify.aws/react/connected-components/storage/storageimage#props";
5
5
  export declare const HAS_PATH_AND_KEY_MESSAGE = "`imgKey` is ignored when both `imgKey` and `path` props are provided.";
6
6
  export declare const HAS_PATH_AND_UNSUPPORTED_OPTIONS_MESSAGE = "`accessLevel` and `identityId` are ignored when the `path` prop is provided.";
7
- export declare const StorageImage: ({ accessLevel, className, fallbackSrc, identityId, imgKey, path, onStorageGetError, onGetUrlError, validateObjectExistence, ...rest }: StorageImageProps | StorageImagePathProps) => JSX.Element;
7
+ export declare const StorageImage: ({ accessLevel, className, fallbackSrc, identityId, imgKey, path, onStorageGetError, onGetUrlError, validateObjectExistence, ...rest }: StorageImageProps | StorageImagePathProps) => React.JSX.Element;
@@ -3,4 +3,4 @@ export interface ContainerProps {
3
3
  children: React.ReactNode;
4
4
  className: string;
5
5
  }
6
- export declare function Container({ children, className, }: ContainerProps): JSX.Element;
6
+ export declare function Container({ children, className, }: ContainerProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { DropZoneProps } from './types';
3
- export declare function DropZone({ children, displayText, inDropZone, onDragEnter, onDragLeave, onDragOver, onDragStart, onDrop, testId, }: DropZoneProps): JSX.Element;
3
+ export declare function DropZone({ children, displayText, inDropZone, onDragEnter, onDragLeave, onDragOver, onDragStart, onDrop, testId, }: DropZoneProps): React.JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FileUploaderDisplayText as StorageManagerDisplayText } from '../../../FileUploader/utils/displayText';
3
2
  export interface DropZoneProps {
4
3
  children?: React.ReactNode;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileControlProps } from './types';
3
- export declare function FileControl({ onPause, onResume, displayName, errorMessage, isImage, isResumable, loaderIsDeterminate, onRemove, progress, showThumbnails, size, status, displayText, thumbnailUrl, }: FileControlProps): JSX.Element;
3
+ export declare function FileControl({ onPause, onResume, displayName, errorMessage, isImage, isResumable, loaderIsDeterminate, onRemove, progress, showThumbnails, size, status, displayText, thumbnailUrl, }: FileControlProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { UploadDetailsProps } from './types';
3
- export declare const UploadDetails: ({ displayName, fileSize, }: UploadDetailsProps) => JSX.Element;
3
+ export declare const UploadDetails: ({ displayName, fileSize, }: UploadDetailsProps) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileListProps } from './types';
3
- export declare function FileList({ displayText, files, hasMaxFilesError, isResumable, onCancelUpload, onDeleteUpload, onResume, onPause, showThumbnails, maxFileCount, }: FileListProps): JSX.Element | null;
3
+ export declare function FileList({ displayText, files, hasMaxFilesError, isResumable, onCancelUpload, onDeleteUpload, onResume, onPause, showThumbnails, maxFileCount, }: FileListProps): React.JSX.Element | null;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileRemoveButtonProps } from './types';
3
- export declare const FileRemoveButton: ({ altText, onClick, }: FileRemoveButtonProps) => JSX.Element;
3
+ export declare const FileRemoveButton: ({ altText, onClick, }: FileRemoveButtonProps) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileStatusMessageProps } from './types';
3
- export declare const FileStatusMessage: ({ errorMessage, getPausedText, getUploadingText, percentage, status, uploadSuccessfulText, }: FileStatusMessageProps) => JSX.Element | null;
3
+ export declare const FileStatusMessage: ({ errorMessage, getPausedText, getUploadingText, percentage, status, uploadSuccessfulText, }: FileStatusMessageProps) => React.JSX.Element | null;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileThumbnailProps } from './types';
3
- export declare const FileThumbnail: ({ fileName, isImage, url, }: FileThumbnailProps) => JSX.Element;
3
+ export declare const FileThumbnail: ({ fileName, isImage, url, }: FileThumbnailProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileUploaderDisplayTextDefault as StorageManagerDisplayTextDefault } from '../../../FileUploader/utils';
3
3
  export interface FileListFooterProps {
4
4
  remainingFilesCount: number;
@@ -6,4 +6,4 @@ export interface FileListFooterProps {
6
6
  onClearAll: () => void;
7
7
  onUploadAll: () => void;
8
8
  }
9
- export declare function FileListFooter({ displayText, remainingFilesCount, onClearAll, onUploadAll, }: FileListFooterProps): JSX.Element;
9
+ export declare function FileListFooter({ displayText, remainingFilesCount, onClearAll, onUploadAll, }: FileListFooterProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileUploaderDisplayTextDefault as StorageManagerDisplayTextDefault } from '../../../FileUploader/utils';
3
3
  export interface FileListHeaderProps {
4
4
  allUploadsSuccessful: boolean;
@@ -7,4 +7,4 @@ export interface FileListHeaderProps {
7
7
  remainingFilesCount: number;
8
8
  selectedFilesCount?: number;
9
9
  }
10
- export declare function FileListHeader({ allUploadsSuccessful, displayText, fileCount, remainingFilesCount, selectedFilesCount, }: FileListHeaderProps): JSX.Element;
10
+ export declare function FileListHeader({ allUploadsSuccessful, displayText, fileCount, remainingFilesCount, selectedFilesCount, }: FileListHeaderProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { ButtonProps } from '@aws-amplify/ui-react';
3
3
  export type FilePickerProps = ButtonProps;
4
- export declare function FilePicker({ children, className, size, ...props }: FilePickerProps): JSX.Element;
4
+ export declare function FilePicker({ children, className, size, ...props }: FilePickerProps): React.JSX.Element;
@@ -1 +1 @@
1
- export declare const VERSION = "3.6.1";
1
+ export declare const VERSION = "3.7.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-storage",
3
- "version": "3.6.1",
3
+ "version": "3.7.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -47,15 +47,15 @@
47
47
  "typecheck": "tsc --noEmit"
48
48
  },
49
49
  "dependencies": {
50
- "@aws-amplify/ui": "6.7.2",
51
- "@aws-amplify/ui-react": "6.8.1",
52
- "@aws-amplify/ui-react-core": "3.2.1",
50
+ "@aws-amplify/ui": "6.8.1",
51
+ "@aws-amplify/ui-react": "6.9.1",
52
+ "@aws-amplify/ui-react-core": "3.3.1",
53
53
  "tslib": "^2.5.2"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "aws-amplify": "^6.9.0",
57
- "react": "^16.14.0 || ^17.0 || ^18.0",
58
- "react-dom": "^16.14.0 || ^17.0 || ^18.0"
57
+ "react": "^16.14 || ^17 || ^18 || ^19",
58
+ "react-dom": "^16.14 || ^17 || ^18 || ^19"
59
59
  },
60
60
  "devDependencies": {
61
61
  "jest-tsd": "^0.2.2",
@@ -70,7 +70,7 @@
70
70
  "name": "createStorageBrowser",
71
71
  "path": "dist/esm/browser.mjs",
72
72
  "import": "{ createStorageBrowser }",
73
- "limit": "60.5 kB",
73
+ "limit": "63 kB",
74
74
  "ignore": [
75
75
  "@aws-amplify/storage"
76
76
  ]
@@ -79,7 +79,7 @@
79
79
  "name": "StorageBrowser",
80
80
  "path": "dist/esm/index.mjs",
81
81
  "import": "{ StorageBrowser }",
82
- "limit": "83 kB"
82
+ "limit": "85.1 kB"
83
83
  },
84
84
  {
85
85
  "name": "FileUploader",