@aws-amplify/ui-react 3.5.3 → 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 Tue, 20 Sep 2022 22:57:49 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);
@@ -3,9 +3,10 @@ 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
+ signOut?: SignOut;
9
10
  user?: AmplifyUser;
10
11
  }) => JSX.Element);
11
12
  }>;
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
- import { AuthenticatorProps } from './Authenticator';
2
+ import { AuthenticatorProps, SignOut } from './Authenticator';
3
3
  import { AmplifyUser } from '@aws-amplify/ui';
4
- import { UseAuthenticator } from './hooks/useAuthenticator';
5
4
  export declare type WithAuthenticatorOptions = Omit<AuthenticatorProps, 'children'>;
6
5
  export interface WithAuthenticatorProps {
7
- signOut?: Pick<UseAuthenticator, 'signOut'>;
6
+ signOut?: SignOut;
8
7
  user?: AmplifyUser;
9
8
  }
10
9
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react",
3
- "version": "3.5.3",
3
+ "version": "3.5.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {