@aws-amplify/ui-react 3.5.2 → 3.5.3
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/styles.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { AuthenticatorMachineOptions,
|
|
2
|
+
import { AuthenticatorMachineOptions, AmplifyUser } from '@aws-amplify/ui';
|
|
3
3
|
import { UseAuthenticator } from './hooks/useAuthenticator';
|
|
4
4
|
import { ComponentsProviderProps } from './hooks/useCustomComponents';
|
|
5
5
|
import { RouterProps } from './Router';
|
|
6
6
|
export declare type AuthenticatorProps = Partial<AuthenticatorMachineOptions & ComponentsProviderProps & RouterProps & {
|
|
7
7
|
children: React.ReactNode | ((props: {
|
|
8
8
|
signOut?: UseAuthenticator['signOut'];
|
|
9
|
-
user?:
|
|
9
|
+
user?: AmplifyUser;
|
|
10
10
|
}) => JSX.Element);
|
|
11
11
|
}>;
|
|
12
12
|
export declare function AuthenticatorInternal({ children, className, components: customComponents, formFields, hideSignUp, initialState, loginMechanisms, signUpAttributes, services, socialProviders, variation, }: AuthenticatorProps): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Authenticator } from './Authenticator';
|
|
1
|
+
export { Authenticator, AuthenticatorProps } from './Authenticator';
|
|
2
2
|
export { useAuthenticator } from './hooks';
|
|
3
|
-
export { withAuthenticator } from './withAuthenticator';
|
|
3
|
+
export { withAuthenticator, WithAuthenticatorOptions, WithAuthenticatorProps, } from './withAuthenticator';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AuthenticatorProps } from './Authenticator';
|
|
3
|
+
import { AmplifyUser } from '@aws-amplify/ui';
|
|
3
4
|
import { UseAuthenticator } from './hooks/useAuthenticator';
|
|
4
5
|
export declare type WithAuthenticatorOptions = Omit<AuthenticatorProps, 'children'>;
|
|
5
|
-
|
|
6
|
+
export interface WithAuthenticatorProps {
|
|
7
|
+
signOut?: Pick<UseAuthenticator, 'signOut'>;
|
|
8
|
+
user?: AmplifyUser;
|
|
9
|
+
}
|
|
6
10
|
/**
|
|
7
11
|
* [📖 Docs](https://ui.docs.amplify.aws/react/connected-components/authenticator)
|
|
8
12
|
*/
|
|
9
|
-
export declare function withAuthenticator<Props = {}>(Component: React.ComponentType<Props &
|
|
10
|
-
export {};
|
|
13
|
+
export declare function withAuthenticator<Props = {}>(Component: React.ComponentType<Props & WithAuthenticatorProps>, options?: WithAuthenticatorOptions): (props: Props) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"size": "yarn run size-limit"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@aws-amplify/ui": "3.13.
|
|
58
|
+
"@aws-amplify/ui": "3.13.4",
|
|
59
59
|
"@aws-amplify/ui-react-v1": "npm:@aws-amplify/ui-react@1.2.9",
|
|
60
60
|
"@radix-ui/react-accordion": "0.1.6",
|
|
61
61
|
"@radix-ui/react-dropdown-menu": "0.1.6",
|