@aws-amplify/ui 3.13.3 → 3.13.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 Tue, 20 Sep 2022 22:57:49 GMT
7
7
  */
8
8
  :root, [data-amplify-theme] {
9
9
  --amplify-transforms-slide-x-large: translateX(2em);
package/dist/theme.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 16 Sep 2022 00:28:14 GMT
3
+ * Generated on Tue, 20 Sep 2022 22:57:49 GMT
4
4
  */
5
5
 
6
6
  :root, [data-amplify-theme] {
@@ -4,7 +4,7 @@
4
4
  * `useAuthenticator` hook/composable/service.
5
5
  */
6
6
  import { Sender } from 'xstate';
7
- import { AuthEvent, AuthEventData, AuthMachineState, CodeDeliveryDetails, CognitoUserAmplify, ValidationError } from '../../types';
7
+ import { AuthEvent, AuthEventData, AuthMachineState, CodeDeliveryDetails, AmplifyUser, ValidationError } from '../../types';
8
8
  declare type AuthenticatorRoute = 'authenticated' | 'autoSignIn' | 'confirmResetPassword' | 'confirmSignIn' | 'confirmSignUp' | 'confirmVerifyUser' | 'forceNewPassword' | 'idle' | 'resetPassword' | 'setup' | 'signOut' | 'setupTOTP' | 'signIn' | 'signUp' | 'verifyUser';
9
9
  declare type AuthenticatorValidationErrors = ValidationError;
10
10
  declare type AuthStatus = 'configuring' | 'authenticated' | 'unauthenticated';
@@ -15,7 +15,7 @@ interface AuthenticatorServiceContextFacade {
15
15
  hasValidationErrors: boolean;
16
16
  isPending: boolean;
17
17
  route: AuthenticatorRoute;
18
- user: CognitoUserAmplify;
18
+ user: AmplifyUser;
19
19
  validationErrors: AuthenticatorValidationErrors;
20
20
  }
21
21
  declare type SendEventAlias = 'resendCode' | 'signOut' | 'submitForm' | 'updateForm' | 'updateBlur' | 'toFederatedSignIn' | 'toResetPassword' | 'toSignIn' | 'toSignUp' | 'skipVerification';
@@ -1,6 +1,6 @@
1
1
  import { ValidationError } from '../validator';
2
2
  import { AuthFormData, AuthFormFields } from '../form';
3
- import { AuthChallengeName, CognitoUserAmplify } from '../user';
3
+ import { AuthChallengeName, AmplifyUser } from '../user';
4
4
  import { CodeDeliveryDetails as CognitoCodeDeliveryDetails } from 'amazon-cognito-identity-js';
5
5
  import { LoginMechanism, SignUpAttribute, SocialProvider } from '../attributes';
6
6
  import { defaultServices } from '../../../machines/authenticator/defaultServices';
@@ -14,7 +14,7 @@ export interface ActorDoneData {
14
14
  /** String that indicates where authMachine should next transition to */
15
15
  intent?: string;
16
16
  /** User returned by the actor it's done */
17
- user?: CognitoUserAmplify;
17
+ user?: AmplifyUser;
18
18
  }
19
19
  /**
20
20
  * Context interface for the top-level machine
@@ -31,7 +31,7 @@ export interface AuthContext {
31
31
  passwordSettings?: PasswordSettings;
32
32
  };
33
33
  services?: Partial<typeof defaultServices>;
34
- user?: CognitoUserAmplify;
34
+ user?: AmplifyUser;
35
35
  username?: string;
36
36
  password?: string;
37
37
  code?: string;
@@ -60,7 +60,7 @@ interface BaseFormContext {
60
60
  /** Error returned from remote service / API */
61
61
  remoteError?: string;
62
62
  /** Current user inteface the actor is working with */
63
- user?: CognitoUserAmplify;
63
+ user?: AmplifyUser;
64
64
  /** Maps each input to its validation error, if any */
65
65
  validationError?: ValidationError;
66
66
  /** Maps each password validation rule */
@@ -93,7 +93,7 @@ export interface SignOutContext {
93
93
  authAttributes?: Record<string, any>;
94
94
  challengeName?: AuthChallengeName;
95
95
  unverifiedAttributes?: Record<string, string>;
96
- user?: CognitoUserAmplify;
96
+ user?: AmplifyUser;
97
97
  formFields?: AuthFormFields;
98
98
  }
99
99
  /**
@@ -16,8 +16,17 @@ export interface CognitoAttributes {
16
16
  phone_number: string;
17
17
  [key: string]: string;
18
18
  }
19
- /** Cognito User Interface */
20
- export interface CognitoUserAmplify extends CognitoUser {
19
+ /**
20
+ * Amplify User Interface
21
+ */
22
+ export interface AmplifyUser extends CognitoUser {
21
23
  username?: string;
22
24
  attributes?: CognitoAttributes;
23
25
  }
26
+ /**
27
+ * @deprecated please use `AmplifyUser`
28
+ *
29
+ * Cognito User Interface
30
+ */
31
+ export interface CognitoUserAmplify extends AmplifyUser {
32
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui",
3
- "version": "3.13.3",
3
+ "version": "3.13.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {