@aws-amplify/ui-react 3.5.2 → 3.5.4

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
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * Do not edit directly
6
- * Generated on Fri, 16 Sep 2022 00:28:14 GMT
6
+ * Generated on Wed, 21 Sep 2022 01:22:22 GMT
7
7
  */
8
8
  :root, [data-amplify-theme] {
9
9
  --amplify-transforms-slide-x-large: translateX(2em);
@@ -1,12 +1,13 @@
1
1
  import * as React from 'react';
2
- import { AuthenticatorMachineOptions, CognitoUserAmplify } from '@aws-amplify/ui';
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
+ export declare type SignOut = UseAuthenticator['signOut'];
6
7
  export declare type AuthenticatorProps = Partial<AuthenticatorMachineOptions & ComponentsProviderProps & RouterProps & {
7
8
  children: React.ReactNode | ((props: {
8
- signOut?: UseAuthenticator['signOut'];
9
- user?: CognitoUserAmplify;
9
+ signOut?: SignOut;
10
+ user?: AmplifyUser;
10
11
  }) => JSX.Element);
11
12
  }>;
12
13
  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,12 @@
1
1
  import React from 'react';
2
- import { AuthenticatorProps } from './Authenticator';
3
- import { UseAuthenticator } from './hooks/useAuthenticator';
2
+ import { AuthenticatorProps, SignOut } from './Authenticator';
3
+ import { AmplifyUser } from '@aws-amplify/ui';
4
4
  export declare type WithAuthenticatorOptions = Omit<AuthenticatorProps, 'children'>;
5
- declare type AuthenticatorHOCProps = Partial<Pick<UseAuthenticator, 'signOut' | 'user'>>;
5
+ export interface WithAuthenticatorProps {
6
+ signOut?: SignOut;
7
+ user?: AmplifyUser;
8
+ }
6
9
  /**
7
10
  * [📖 Docs](https://ui.docs.amplify.aws/react/connected-components/authenticator)
8
11
  */
9
- export declare function withAuthenticator<Props = {}>(Component: React.ComponentType<Props & AuthenticatorHOCProps>, options?: WithAuthenticatorOptions): (props: Props) => JSX.Element;
10
- export {};
12
+ 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.2",
3
+ "version": "3.5.4",
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.3",
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",