@aws-amplify/ui 3.0.12 → 3.0.15
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/README.md +1 -1
- package/dist/esm/index.js +15 -15
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/styles.css +123 -79
- package/dist/theme.css +37 -31
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,11 @@ declare const defaultServices: {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
declare type AuthFormData = Record<string, string>;
|
|
48
|
+
interface ActorDoneData {
|
|
49
|
+
authAttributes?: AuthFormData;
|
|
50
|
+
intent?: string;
|
|
51
|
+
user?: CognitoUserAmplify;
|
|
52
|
+
}
|
|
48
53
|
interface AuthContext {
|
|
49
54
|
actorRef?: any;
|
|
50
55
|
config?: {
|
|
@@ -59,6 +64,7 @@ interface AuthContext {
|
|
|
59
64
|
password?: string;
|
|
60
65
|
code?: string;
|
|
61
66
|
mfaType?: AuthChallengeNames.SMS_MFA | AuthChallengeNames.SOFTWARE_TOKEN_MFA;
|
|
67
|
+
actorDoneData?: Omit<ActorDoneData, 'user'>;
|
|
62
68
|
}
|
|
63
69
|
interface ServicesContext {
|
|
64
70
|
username?: string;
|
|
@@ -116,6 +122,12 @@ declare type AuthActorContext = ActorContextWithForms | SignOutContext;
|
|
|
116
122
|
declare type AuthActorState = State<AuthActorContext, AuthEvent>;
|
|
117
123
|
interface CognitoUserAmplify extends CognitoUser {
|
|
118
124
|
username?: string;
|
|
125
|
+
attributes?: CognitoAttributes;
|
|
126
|
+
}
|
|
127
|
+
interface CognitoAttributes {
|
|
128
|
+
email: string;
|
|
129
|
+
phone_number: string;
|
|
130
|
+
[key: string]: string;
|
|
119
131
|
}
|
|
120
132
|
declare type InvokeActorEventTypes = 'done.invoke.signInActor' | 'done.invoke.signUpActor' | 'done.invoke.signOutActor' | 'done.invoke.resetPasswordActor';
|
|
121
133
|
declare type AuthEventTypes = 'CHANGE' | 'BLUR' | 'FEDERATED_SIGN_IN' | 'RESEND' | 'RESET_PASSWORD' | 'SIGN_IN' | 'SIGN_OUT' | 'SIGN_UP' | 'SKIP' | 'SUBMIT' | 'INIT' | InvokeActorEventTypes;
|
|
@@ -254,6 +266,9 @@ declare const listenToAuthHub: (send: AuthMachineSend) => () => void;
|
|
|
254
266
|
declare type ContactMethod = 'Email' | 'Phone Number';
|
|
255
267
|
declare const censorAllButFirstAndLast: (value: string) => string;
|
|
256
268
|
declare const censorPhoneNumber: (val: string) => string;
|
|
269
|
+
declare const getFormDataFromEvent: (event: Event) => {
|
|
270
|
+
[k: string]: FormDataEntryValue;
|
|
271
|
+
};
|
|
257
272
|
|
|
258
273
|
declare const countryDialCodes: string[];
|
|
259
274
|
|
|
@@ -446,9 +461,13 @@ interface OrdinalVariation<DesignTokenType = DesignToken<ColorValue>> {
|
|
|
446
461
|
}
|
|
447
462
|
|
|
448
463
|
declare type ScaleKeys = 10 | 20 | 40 | 60 | 80 | 90 | 100;
|
|
464
|
+
declare type OverlayKeys = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;
|
|
449
465
|
declare type ColorScale<DesignTokenType = DesignToken<ColorValue>> = {
|
|
450
466
|
[key in ScaleKeys]: DesignTokenType;
|
|
451
467
|
};
|
|
468
|
+
declare type OverlayColors<DesignTokenType = DesignToken<ColorValue>> = {
|
|
469
|
+
[key in OverlayKeys]: DesignTokenType;
|
|
470
|
+
};
|
|
452
471
|
declare type FontColors<DesignTokenType = DesignToken<ColorValue>> = {
|
|
453
472
|
inverse: DesignTokenType;
|
|
454
473
|
interactive: DesignTokenType;
|
|
@@ -488,6 +507,7 @@ declare type Colors = {
|
|
|
488
507
|
primary: ColorScale;
|
|
489
508
|
secondary: ColorScale;
|
|
490
509
|
};
|
|
510
|
+
overlay: OverlayColors;
|
|
491
511
|
[key: string]: ColorTypes | Record<string, ColorTypes>;
|
|
492
512
|
};
|
|
493
513
|
declare type WebColors = {
|
|
@@ -509,6 +529,7 @@ declare type WebColors = {
|
|
|
509
529
|
primary: ColorScale<WebDesignToken<ColorValue>>;
|
|
510
530
|
secondary: ColorScale<WebDesignToken<ColorValue>>;
|
|
511
531
|
};
|
|
532
|
+
overlay: OverlayColors<WebDesignToken<ColorValue>>;
|
|
512
533
|
[key: string]: WebColorTypes | Record<string, WebColorTypes>;
|
|
513
534
|
};
|
|
514
535
|
|
|
@@ -841,4 +862,4 @@ declare function createTheme(theme?: Theme, baseTheme?: BaseTheme): WebTheme;
|
|
|
841
862
|
|
|
842
863
|
declare const defaultTheme: WebTheme;
|
|
843
864
|
|
|
844
|
-
export { ActorContextWithForms, AuthActorContext, AuthActorState, AuthChallengeNames, AuthContext, AuthEvent, AuthEventData, AuthEventTypes, AuthFieldsWithDefaults, AuthFormData, AuthInputAttributes, AuthInterpreter, AuthMachineSend, AuthMachineState, AuthenticatorMachineOptions, BaseTheme, BorderWidthValue, CognitoUserAmplify, ColorModeOverride, ColorValue, ContactMethod, DefaultTexts, DesignToken, Dict, FederatedIdentityProviders, FontSizeValue, FontValue, FontWeightValue, InputAttributes, InvokeActorEventTypes, LineHeightValue, LoginMechanism, LoginMechanismArray, MediaQueryOverride, NoInfer, OpacityValue, OutlineOffsetValue, OutlineWidthValue, Override, Phrase, RadiusValue, ResetPasswordContext, ResetPasswordState, SelectorOverride, ServicesContext, ShadowValue, SignInContext, SignInResult, SignInState, SignInTypes, SignOutContext, SignOutState, SignUpAttribute, SignUpContext, SignUpFieldsWithDefaults, SignUpFieldsWithoutDefaults, SignUpState, SocialProvider, SpaceValue, Theme, TimeValue, TransformValue, ValidationError, Validator, ValidatorResult, WebDesignToken, WebTheme, authInputAttributes, censorAllButFirstAndLast, censorPhoneNumber, countryDialCodes, createAuthenticatorMachine, createTheme, defaultTheme, getActorContext, getActorState, getAliasInfoFromContext, getConfiguredAliases, getSendEventAliases, getServiceContextFacade, getServiceFacade, hasTranslation, isDesignToken, listenToAuthHub, signUpFieldsWithDefault, signUpFieldsWithoutDefault, translate, translations };
|
|
865
|
+
export { ActorContextWithForms, ActorDoneData, AuthActorContext, AuthActorState, AuthChallengeNames, AuthContext, AuthEvent, AuthEventData, AuthEventTypes, AuthFieldsWithDefaults, AuthFormData, AuthInputAttributes, AuthInterpreter, AuthMachineSend, AuthMachineState, AuthenticatorMachineOptions, BaseTheme, BorderWidthValue, CognitoAttributes, CognitoUserAmplify, ColorModeOverride, ColorValue, ContactMethod, DefaultTexts, DesignToken, Dict, FederatedIdentityProviders, FontSizeValue, FontValue, FontWeightValue, InputAttributes, InvokeActorEventTypes, LineHeightValue, LoginMechanism, LoginMechanismArray, MediaQueryOverride, NoInfer, OpacityValue, OutlineOffsetValue, OutlineWidthValue, Override, Phrase, RadiusValue, ResetPasswordContext, ResetPasswordState, SelectorOverride, ServicesContext, ShadowValue, SignInContext, SignInResult, SignInState, SignInTypes, SignOutContext, SignOutState, SignUpAttribute, SignUpContext, SignUpFieldsWithDefaults, SignUpFieldsWithoutDefaults, SignUpState, SocialProvider, SpaceValue, Theme, TimeValue, TransformValue, ValidationError, Validator, ValidatorResult, WebDesignToken, WebTheme, authInputAttributes, censorAllButFirstAndLast, censorPhoneNumber, countryDialCodes, createAuthenticatorMachine, createTheme, defaultTheme, getActorContext, getActorState, getAliasInfoFromContext, getConfiguredAliases, getFormDataFromEvent, getSendEventAliases, getServiceContextFacade, getServiceFacade, hasTranslation, isDesignToken, listenToAuthHub, signUpFieldsWithDefault, signUpFieldsWithoutDefault, translate, translations };
|