@aws-amplify/ui 3.0.3 → 3.0.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/esm/index.js +13 -14
- package/dist/esm/index.js.map +2 -2
- package/dist/index.d.ts +9 -5
- package/dist/index.js +12 -13
- package/dist/index.js.map +2 -2
- package/dist/styles.css +28 -3
- package/dist/theme.css +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as amazon_cognito_identity_js from 'amazon-cognito-identity-js';
|
|
2
|
+
import { CognitoUser, CodeDeliveryDetails } from 'amazon-cognito-identity-js';
|
|
1
3
|
import * as xstate from 'xstate';
|
|
2
4
|
import { State, Interpreter, Sender } from 'xstate';
|
|
3
|
-
import { CognitoUser } from 'amazon-cognito-identity-js';
|
|
4
5
|
import { PartialDeep } from 'type-fest';
|
|
5
6
|
|
|
6
7
|
declare type ValidationError = Record<string, string>;
|
|
@@ -32,11 +33,12 @@ interface BaseFormContext {
|
|
|
32
33
|
remoteError?: string;
|
|
33
34
|
user?: CognitoUserAmplify;
|
|
34
35
|
validationError?: ValidationError;
|
|
36
|
+
codeDeliveryDetails?: CodeDeliveryDetails;
|
|
35
37
|
country_code?: string;
|
|
36
38
|
}
|
|
37
39
|
interface SignInContext extends BaseFormContext {
|
|
38
|
-
loginMechanisms: AuthContext['config']['loginMechanisms'];
|
|
39
|
-
socialProviders: AuthContext['config']['socialProviders'];
|
|
40
|
+
loginMechanisms: Required<AuthContext>['config']['loginMechanisms'];
|
|
41
|
+
socialProviders: Required<AuthContext>['config']['socialProviders'];
|
|
40
42
|
attributeToVerify?: string;
|
|
41
43
|
redirectIntent?: string;
|
|
42
44
|
unverifiedAttributes?: Record<string, string>;
|
|
@@ -47,8 +49,8 @@ declare type SignUpFieldsWithDefaults = typeof signUpFieldsWithDefault[number];
|
|
|
47
49
|
declare type SignUpFieldsWithoutDefaults = typeof signUpFieldsWithoutDefault[number];
|
|
48
50
|
declare type SignUpAttribute = SignUpFieldsWithDefaults | SignUpFieldsWithoutDefaults;
|
|
49
51
|
interface SignUpContext extends BaseFormContext {
|
|
50
|
-
loginMechanisms: AuthContext['config']['loginMechanisms'];
|
|
51
|
-
socialProviders: AuthContext['config']['socialProviders'];
|
|
52
|
+
loginMechanisms: Required<AuthContext>['config']['loginMechanisms'];
|
|
53
|
+
socialProviders: Required<AuthContext>['config']['socialProviders'];
|
|
52
54
|
unverifiedAttributes?: Record<string, string>;
|
|
53
55
|
}
|
|
54
56
|
interface ResetPasswordContext extends BaseFormContext {
|
|
@@ -168,6 +170,7 @@ declare const getServiceContextFacade: (state: AuthMachineState) => {
|
|
|
168
170
|
validationErrors: {
|
|
169
171
|
[x: string]: string;
|
|
170
172
|
};
|
|
173
|
+
codeDeliveryDetails: amazon_cognito_identity_js.CodeDeliveryDetails;
|
|
171
174
|
};
|
|
172
175
|
declare const getServiceFacade: ({ send, state }: {
|
|
173
176
|
send: any;
|
|
@@ -181,6 +184,7 @@ declare const getServiceFacade: ({ send, state }: {
|
|
|
181
184
|
validationErrors: {
|
|
182
185
|
[x: string]: string;
|
|
183
186
|
};
|
|
187
|
+
codeDeliveryDetails: amazon_cognito_identity_js.CodeDeliveryDetails;
|
|
184
188
|
resendCode: (data?: AuthEventData) => void;
|
|
185
189
|
signOut: (data?: AuthEventData) => void;
|
|
186
190
|
submitForm: (data?: AuthEventData) => void;
|