-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Sreeram Sama <12038441+sreeramsama@users.noreply.github.com> Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com> Co-authored-by: kwwendt <78572512+kwwendt@users.noreply.github.com> Co-authored-by: Chenwei Zhang <40295569+zchenwei@users.noreply.github.com> Co-authored-by: William Lee <43682783+wlee221@users.noreply.github.com>
- Loading branch information
1 parent
65a89fc
commit c19278b
Showing
227 changed files
with
8,486 additions
and
23,914 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
'@aws-amplify/ui-react-storage': major | ||
--- | ||
|
||
What changed: | ||
|
||
- Wrapped StorageManager with ForwardRef to allow for exposed imperative handles and potential future DOM manipulation. | ||
- This allows for clearing of the files list from a separate component where the Storage Manager component is being used. | ||
|
||
Why was the change made: | ||
|
||
- There was no easy way to clear the list of files without unmounting the component. | ||
- This capability is important when using Storage Manager inside a form. After submit, clear all entries including uploaded files. | ||
|
||
How should a customer update their code: | ||
|
||
- No changes are required by the customer since the added prop is optional in the Storage Manager component. | ||
- If customers want to take advantage of this change, they can create a files ref and include it in the Storage Manager component, then made calls to clearFiles from the ref. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"@aws-amplify/ui-react": major | ||
"@aws-amplify/ui-react-liveness": patch | ||
"@aws-amplify/ui-react-notifications": patch | ||
--- | ||
|
||
**Breaking Changes**: | ||
|
||
- `@aws-amplify/ui-react@5.x` removes the `to` prop on `Link` component and instead have it extended from the underlying rendered third-party `Link` if it contains a `to` prop ([PR](https://github.com/aws-amplify/amplify-ui/pull/4011)). | ||
|
||
- `@aws-amplify/ui-react@5.x` strictly types the `View` component and updates all component types to include the underlying rendered HTML element's attributes ([PR](https://github.com/aws-amplify/amplify-ui/pull/4011)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 21 additions & 19 deletions
40
docs/src/pages/[platform]/components/textareafield/useTextAreaFieldProps.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...orm]/connected-components/storage/storagemanager/examples/StorageManagerHandleExample.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as React from 'react'; | ||
import { Button } from '@aws-amplify/ui-react'; | ||
import { StorageManager } from '@aws-amplify/ui-react-storage'; | ||
|
||
export const StorageManagerHandleExample = () => { | ||
const ref = React.useRef(null); | ||
|
||
return ( | ||
<> | ||
<StorageManager | ||
acceptedFileTypes={['image/*']} | ||
accessLevel="public" | ||
maxFileCount={3} | ||
ref={ref} | ||
/> | ||
<Button onClick={() => ref.current.clearFiles()}>Clear Files</Button> | ||
</> | ||
); | ||
}; |
Oops, something went wrong.