@thunderid/react 0.0.1
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/LICENSE +201 -0
- package/dist/ThunderIDReactClient.d.ts +87 -0
- package/dist/ThunderIDReactClient.d.ts.map +1 -0
- package/dist/__temp__/api.d.ts +258 -0
- package/dist/__temp__/api.d.ts.map +1 -0
- package/dist/__temp__/models.d.ts +98 -0
- package/dist/__temp__/models.d.ts.map +1 -0
- package/dist/api/createOrganization.d.ts +86 -0
- package/dist/api/createOrganization.d.ts.map +1 -0
- package/dist/api/getAllOrganizations.d.ts +78 -0
- package/dist/api/getAllOrganizations.d.ts.map +1 -0
- package/dist/api/getMeOrganizations.d.ts +82 -0
- package/dist/api/getMeOrganizations.d.ts.map +1 -0
- package/dist/api/getOrganization.d.ts +74 -0
- package/dist/api/getOrganization.d.ts.map +1 -0
- package/dist/api/getSchemas.d.ts +72 -0
- package/dist/api/getSchemas.d.ts.map +1 -0
- package/dist/api/getScim2Me.d.ts +72 -0
- package/dist/api/getScim2Me.d.ts.map +1 -0
- package/dist/api/updateMeProfile.d.ts +60 -0
- package/dist/api/updateMeProfile.d.ts.map +1 -0
- package/dist/api/updateOrganization.d.ts +81 -0
- package/dist/api/updateOrganization.d.ts.map +1 -0
- package/dist/cjs/index.js +20320 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/components/actions/SignInButton/BaseSignInButton.d.ts +71 -0
- package/dist/components/actions/SignInButton/BaseSignInButton.d.ts.map +1 -0
- package/dist/components/actions/SignInButton/SignInButton.d.ts +71 -0
- package/dist/components/actions/SignInButton/SignInButton.d.ts.map +1 -0
- package/dist/components/actions/SignOutButton/BaseSignOutButton.d.ts +71 -0
- package/dist/components/actions/SignOutButton/BaseSignOutButton.d.ts.map +1 -0
- package/dist/components/actions/SignOutButton/SignOutButton.d.ts +66 -0
- package/dist/components/actions/SignOutButton/SignOutButton.d.ts.map +1 -0
- package/dist/components/actions/SignUpButton/BaseSignUpButton.d.ts +71 -0
- package/dist/components/actions/SignUpButton/BaseSignUpButton.d.ts.map +1 -0
- package/dist/components/actions/SignUpButton/SignUpButton.d.ts +67 -0
- package/dist/components/actions/SignUpButton/SignUpButton.d.ts.map +1 -0
- package/dist/components/adapters/CheckboxInput.d.ts +25 -0
- package/dist/components/adapters/CheckboxInput.d.ts.map +1 -0
- package/dist/components/adapters/Consent.d.ts +80 -0
- package/dist/components/adapters/Consent.d.ts.map +1 -0
- package/dist/components/adapters/ConsentCheckboxList.d.ts +95 -0
- package/dist/components/adapters/ConsentCheckboxList.d.ts.map +1 -0
- package/dist/components/adapters/ConsentCheckboxList.styles.d.ts +21 -0
- package/dist/components/adapters/ConsentCheckboxList.styles.d.ts.map +1 -0
- package/dist/components/adapters/DateInput.d.ts +25 -0
- package/dist/components/adapters/DateInput.d.ts.map +1 -0
- package/dist/components/adapters/DividerComponent.d.ts +25 -0
- package/dist/components/adapters/DividerComponent.d.ts.map +1 -0
- package/dist/components/adapters/EmailInput.d.ts +25 -0
- package/dist/components/adapters/EmailInput.d.ts.map +1 -0
- package/dist/components/adapters/FacebookButton.d.ts +32 -0
- package/dist/components/adapters/FacebookButton.d.ts.map +1 -0
- package/dist/components/adapters/FlowTimer.d.ts +63 -0
- package/dist/components/adapters/FlowTimer.d.ts.map +1 -0
- package/dist/components/adapters/FormContainer.d.ts +25 -0
- package/dist/components/adapters/FormContainer.d.ts.map +1 -0
- package/dist/components/adapters/GitHubButton.d.ts +32 -0
- package/dist/components/adapters/GitHubButton.d.ts.map +1 -0
- package/dist/components/adapters/GoogleButton.d.ts +32 -0
- package/dist/components/adapters/GoogleButton.d.ts.map +1 -0
- package/dist/components/adapters/ImageComponent.d.ts +25 -0
- package/dist/components/adapters/ImageComponent.d.ts.map +1 -0
- package/dist/components/adapters/LinkedInButton.d.ts +32 -0
- package/dist/components/adapters/LinkedInButton.d.ts.map +1 -0
- package/dist/components/adapters/MicrosoftButton.d.ts +32 -0
- package/dist/components/adapters/MicrosoftButton.d.ts.map +1 -0
- package/dist/components/adapters/NumberInput.d.ts +25 -0
- package/dist/components/adapters/NumberInput.d.ts.map +1 -0
- package/dist/components/adapters/PasswordInput.d.ts +25 -0
- package/dist/components/adapters/PasswordInput.d.ts.map +1 -0
- package/dist/components/adapters/SelectInput.d.ts +25 -0
- package/dist/components/adapters/SelectInput.d.ts.map +1 -0
- package/dist/components/adapters/SignInWithEthereumButton.d.ts +32 -0
- package/dist/components/adapters/SignInWithEthereumButton.d.ts.map +1 -0
- package/dist/components/adapters/SmsOtpButton.d.ts +32 -0
- package/dist/components/adapters/SmsOtpButton.d.ts.map +1 -0
- package/dist/components/adapters/SocialButton.d.ts +25 -0
- package/dist/components/adapters/SocialButton.d.ts.map +1 -0
- package/dist/components/adapters/SubmitButton.d.ts +25 -0
- package/dist/components/adapters/SubmitButton.d.ts.map +1 -0
- package/dist/components/adapters/TelephoneInput.d.ts +25 -0
- package/dist/components/adapters/TelephoneInput.d.ts.map +1 -0
- package/dist/components/adapters/TextInput.d.ts +25 -0
- package/dist/components/adapters/TextInput.d.ts.map +1 -0
- package/dist/components/adapters/Typography.d.ts +25 -0
- package/dist/components/adapters/Typography.d.ts.map +1 -0
- package/dist/components/auth/Callback/Callback.d.ts +52 -0
- package/dist/components/auth/Callback/Callback.d.ts.map +1 -0
- package/dist/components/control/Loading.d.ts +48 -0
- package/dist/components/control/Loading.d.ts.map +1 -0
- package/dist/components/control/OrganizationContext/OrganizationContext.d.ts +40 -0
- package/dist/components/control/OrganizationContext/OrganizationContext.d.ts.map +1 -0
- package/dist/components/control/OrganizationContext/OrganizationContextController.d.ts +35 -0
- package/dist/components/control/OrganizationContext/OrganizationContextController.d.ts.map +1 -0
- package/dist/components/control/SignedIn.d.ts +48 -0
- package/dist/components/control/SignedIn.d.ts.map +1 -0
- package/dist/components/control/SignedOut.d.ts +48 -0
- package/dist/components/control/SignedOut.d.ts.map +1 -0
- package/dist/components/factories/FieldFactory.d.ts +107 -0
- package/dist/components/factories/FieldFactory.d.ts.map +1 -0
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.d.ts +60 -0
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.d.ts.map +1 -0
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.d.ts +27 -0
- package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.d.ts.map +1 -0
- package/dist/components/presentation/CreateOrganization/CreateOrganization.d.ts +68 -0
- package/dist/components/presentation/CreateOrganization/CreateOrganization.d.ts.map +1 -0
- package/dist/components/presentation/LanguageSwitcher/BaseLanguageSwitcher.d.ts +80 -0
- package/dist/components/presentation/LanguageSwitcher/BaseLanguageSwitcher.d.ts.map +1 -0
- package/dist/components/presentation/LanguageSwitcher/BaseLanguageSwitcher.styles.d.ts +21 -0
- package/dist/components/presentation/LanguageSwitcher/BaseLanguageSwitcher.styles.d.ts.map +1 -0
- package/dist/components/presentation/LanguageSwitcher/LanguageSwitcher.d.ts +78 -0
- package/dist/components/presentation/LanguageSwitcher/LanguageSwitcher.d.ts.map +1 -0
- package/dist/components/presentation/Organization/BaseOrganization.d.ts +67 -0
- package/dist/components/presentation/Organization/BaseOrganization.d.ts.map +1 -0
- package/dist/components/presentation/Organization/Organization.d.ts +67 -0
- package/dist/components/presentation/Organization/Organization.d.ts.map +1 -0
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.d.ts +135 -0
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.d.ts.map +1 -0
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.d.ts +27 -0
- package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.d.ts.map +1 -0
- package/dist/components/presentation/OrganizationList/OrganizationList.d.ts +93 -0
- package/dist/components/presentation/OrganizationList/OrganizationList.d.ts.map +1 -0
- package/dist/components/presentation/OrganizationList/OrganizationList.styles.d.ts +27 -0
- package/dist/components/presentation/OrganizationList/OrganizationList.styles.d.ts.map +1 -0
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.d.ts +160 -0
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.d.ts.map +1 -0
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.d.ts +27 -0
- package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.d.ts.map +1 -0
- package/dist/components/presentation/OrganizationProfile/OrganizationProfile.d.ts +120 -0
- package/dist/components/presentation/OrganizationProfile/OrganizationProfile.d.ts.map +1 -0
- package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.d.ts +149 -0
- package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.d.ts.map +1 -0
- package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.d.ts +27 -0
- package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.d.ts.map +1 -0
- package/dist/components/presentation/OrganizationSwitcher/OrganizationSwitcher.d.ts +71 -0
- package/dist/components/presentation/OrganizationSwitcher/OrganizationSwitcher.d.ts.map +1 -0
- package/dist/components/presentation/User/BaseUser.d.ts +67 -0
- package/dist/components/presentation/User/BaseUser.d.ts.map +1 -0
- package/dist/components/presentation/User/User.d.ts +63 -0
- package/dist/components/presentation/User/User.d.ts.map +1 -0
- package/dist/components/presentation/UserDropdown/BaseUserDropdown.d.ts +89 -0
- package/dist/components/presentation/UserDropdown/BaseUserDropdown.d.ts.map +1 -0
- package/dist/components/presentation/UserDropdown/BaseUserDropdown.styles.d.ts +27 -0
- package/dist/components/presentation/UserDropdown/BaseUserDropdown.styles.d.ts.map +1 -0
- package/dist/components/presentation/UserDropdown/UserDropdown.d.ts +109 -0
- package/dist/components/presentation/UserDropdown/UserDropdown.d.ts.map +1 -0
- package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +73 -0
- package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts.map +1 -0
- package/dist/components/presentation/UserProfile/BaseUserProfile.styles.d.ts +27 -0
- package/dist/components/presentation/UserProfile/BaseUserProfile.styles.d.ts.map +1 -0
- package/dist/components/presentation/UserProfile/UserProfile.d.ts +60 -0
- package/dist/components/presentation/UserProfile/UserProfile.d.ts.map +1 -0
- package/dist/components/presentation/auth/AcceptInvite/index.d.ts +22 -0
- package/dist/components/presentation/auth/AcceptInvite/index.d.ts.map +1 -0
- package/dist/components/presentation/auth/AcceptInvite/v2/AcceptInvite.d.ts +125 -0
- package/dist/components/presentation/auth/AcceptInvite/v2/AcceptInvite.d.ts.map +1 -0
- package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.d.ts +202 -0
- package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.d.ts.map +1 -0
- package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.styles.d.ts +27 -0
- package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.styles.d.ts.map +1 -0
- package/dist/components/presentation/auth/AuthOptionFactory.d.ts +114 -0
- package/dist/components/presentation/auth/AuthOptionFactory.d.ts.map +1 -0
- package/dist/components/presentation/auth/InviteUser/index.d.ts +22 -0
- package/dist/components/presentation/auth/InviteUser/index.d.ts.map +1 -0
- package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.d.ts +191 -0
- package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.d.ts.map +1 -0
- package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.styles.d.ts +27 -0
- package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.styles.d.ts.map +1 -0
- package/dist/components/presentation/auth/InviteUser/v2/InviteUser.d.ts +104 -0
- package/dist/components/presentation/auth/InviteUser/v2/InviteUser.d.ts.map +1 -0
- package/dist/components/presentation/auth/OrganizationUnitPicker/index.d.ts +20 -0
- package/dist/components/presentation/auth/OrganizationUnitPicker/index.d.ts.map +1 -0
- package/dist/components/presentation/auth/OrganizationUnitPicker/v2/OrganizationUnitPicker.d.ts +30 -0
- package/dist/components/presentation/auth/OrganizationUnitPicker/v2/OrganizationUnitPicker.d.ts.map +1 -0
- package/dist/components/presentation/auth/OrganizationUnitPicker/v2/OrganizationUnitPicker.styles.d.ts +21 -0
- package/dist/components/presentation/auth/OrganizationUnitPicker/v2/OrganizationUnitPicker.styles.d.ts.map +1 -0
- package/dist/components/presentation/auth/Recovery/BaseRecovery.d.ts +24 -0
- package/dist/components/presentation/auth/Recovery/BaseRecovery.d.ts.map +1 -0
- package/dist/components/presentation/auth/Recovery/Recovery.d.ts +57 -0
- package/dist/components/presentation/auth/Recovery/Recovery.d.ts.map +1 -0
- package/dist/components/presentation/auth/Recovery/v1/BaseRecovery.d.ts +74 -0
- package/dist/components/presentation/auth/Recovery/v1/BaseRecovery.d.ts.map +1 -0
- package/dist/components/presentation/auth/Recovery/v1/Recovery.d.ts +26 -0
- package/dist/components/presentation/auth/Recovery/v1/Recovery.d.ts.map +1 -0
- package/dist/components/presentation/auth/Recovery/v1/RecoveryOptionFactory.d.ts +46 -0
- package/dist/components/presentation/auth/Recovery/v1/RecoveryOptionFactory.d.ts.map +1 -0
- package/dist/components/presentation/auth/Recovery/v2/BaseRecovery.d.ts +83 -0
- package/dist/components/presentation/auth/Recovery/v2/BaseRecovery.d.ts.map +1 -0
- package/dist/components/presentation/auth/Recovery/v2/Recovery.d.ts +56 -0
- package/dist/components/presentation/auth/Recovery/v2/Recovery.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/BaseSignIn.d.ts +28 -0
- package/dist/components/presentation/auth/SignIn/BaseSignIn.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/BaseSignIn.styles.d.ts +27 -0
- package/dist/components/presentation/auth/SignIn/BaseSignIn.styles.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/SignIn.d.ts +63 -0
- package/dist/components/presentation/auth/SignIn/SignIn.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/v1/BaseSignIn.d.ts +131 -0
- package/dist/components/presentation/auth/SignIn/v1/BaseSignIn.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/v1/options/EmailOtp.d.ts +26 -0
- package/dist/components/presentation/auth/SignIn/v1/options/EmailOtp.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/v1/options/IdentifierFirst.d.ts +26 -0
- package/dist/components/presentation/auth/SignIn/v1/options/IdentifierFirst.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/v1/options/MultiOptionButton.d.ts +27 -0
- package/dist/components/presentation/auth/SignIn/v1/options/MultiOptionButton.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/v1/options/SignInOptionFactory.d.ts +77 -0
- package/dist/components/presentation/auth/SignIn/v1/options/SignInOptionFactory.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/v1/options/SmsOtp.d.ts +26 -0
- package/dist/components/presentation/auth/SignIn/v1/options/SmsOtp.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/v1/options/SocialButton.d.ts +26 -0
- package/dist/components/presentation/auth/SignIn/v1/options/SocialButton.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/v1/options/Totp.d.ts +26 -0
- package/dist/components/presentation/auth/SignIn/v1/options/Totp.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/v1/options/UsernamePassword.d.ts +26 -0
- package/dist/components/presentation/auth/SignIn/v1/options/UsernamePassword.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/v1/types.d.ts +125 -0
- package/dist/components/presentation/auth/SignIn/v1/types.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/v2/BaseSignIn.d.ts +222 -0
- package/dist/components/presentation/auth/SignIn/v2/BaseSignIn.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignIn/v2/SignIn.d.ts +165 -0
- package/dist/components/presentation/auth/SignIn/v2/SignIn.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignUp/BaseSignUp.d.ts +28 -0
- package/dist/components/presentation/auth/SignUp/BaseSignUp.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignUp/BaseSignUp.styles.d.ts +27 -0
- package/dist/components/presentation/auth/SignUp/BaseSignUp.styles.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignUp/SignUp.d.ts +98 -0
- package/dist/components/presentation/auth/SignUp/SignUp.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignUp/v1/BaseSignUp.d.ts +174 -0
- package/dist/components/presentation/auth/SignUp/v1/BaseSignUp.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignUp/v1/SignUp.d.ts +39 -0
- package/dist/components/presentation/auth/SignUp/v1/SignUp.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignUp/v1/SignUpOptionFactory.d.ts +46 -0
- package/dist/components/presentation/auth/SignUp/v1/SignUpOptionFactory.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignUp/v2/BaseSignUp.d.ts +186 -0
- package/dist/components/presentation/auth/SignUp/v2/BaseSignUp.d.ts.map +1 -0
- package/dist/components/presentation/auth/SignUp/v2/SignUp.d.ts +39 -0
- package/dist/components/presentation/auth/SignUp/v2/SignUp.d.ts.map +1 -0
- package/dist/components/primitives/Alert/Alert.d.ts +76 -0
- package/dist/components/primitives/Alert/Alert.d.ts.map +1 -0
- package/dist/components/primitives/Alert/Alert.styles.d.ts +29 -0
- package/dist/components/primitives/Alert/Alert.styles.d.ts.map +1 -0
- package/dist/components/primitives/Avatar/Avatar.d.ts +60 -0
- package/dist/components/primitives/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/primitives/Avatar/Avatar.styles.d.ts +31 -0
- package/dist/components/primitives/Avatar/Avatar.styles.d.ts.map +1 -0
- package/dist/components/primitives/Button/Button.d.ts +88 -0
- package/dist/components/primitives/Button/Button.d.ts.map +1 -0
- package/dist/components/primitives/Button/Button.styles.d.ts +36 -0
- package/dist/components/primitives/Button/Button.styles.d.ts.map +1 -0
- package/dist/components/primitives/Card/Card.d.ts +133 -0
- package/dist/components/primitives/Card/Card.d.ts.map +1 -0
- package/dist/components/primitives/Card/Card.styles.d.ts +30 -0
- package/dist/components/primitives/Card/Card.styles.d.ts.map +1 -0
- package/dist/components/primitives/Checkbox/Checkbox.d.ts +43 -0
- package/dist/components/primitives/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/primitives/Checkbox/Checkbox.styles.d.ts +29 -0
- package/dist/components/primitives/Checkbox/Checkbox.styles.d.ts.map +1 -0
- package/dist/components/primitives/CopyableText/CopyableText.d.ts +37 -0
- package/dist/components/primitives/CopyableText/CopyableText.d.ts.map +1 -0
- package/dist/components/primitives/CopyableText/CopyableText.styles.d.ts +21 -0
- package/dist/components/primitives/CopyableText/CopyableText.styles.d.ts.map +1 -0
- package/dist/components/primitives/CopyableText/index.d.ts +20 -0
- package/dist/components/primitives/CopyableText/index.d.ts.map +1 -0
- package/dist/components/primitives/DatePicker/DatePicker.d.ts +51 -0
- package/dist/components/primitives/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/components/primitives/DatePicker/DatePicker.styles.d.ts +29 -0
- package/dist/components/primitives/DatePicker/DatePicker.styles.d.ts.map +1 -0
- package/dist/components/primitives/Dialog/Dialog.d.ts +62 -0
- package/dist/components/primitives/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/primitives/Dialog/Dialog.styles.d.ts +27 -0
- package/dist/components/primitives/Dialog/Dialog.styles.d.ts.map +1 -0
- package/dist/components/primitives/Divider/Divider.d.ts +59 -0
- package/dist/components/primitives/Divider/Divider.d.ts.map +1 -0
- package/dist/components/primitives/Divider/Divider.styles.d.ts +33 -0
- package/dist/components/primitives/Divider/Divider.styles.d.ts.map +1 -0
- package/dist/components/primitives/FormControl/FormControl.d.ts +52 -0
- package/dist/components/primitives/FormControl/FormControl.d.ts.map +1 -0
- package/dist/components/primitives/FormControl/FormControl.styles.d.ts +31 -0
- package/dist/components/primitives/FormControl/FormControl.styles.d.ts.map +1 -0
- package/dist/components/primitives/Icons/ArrowLeftRight.d.ts +30 -0
- package/dist/components/primitives/Icons/ArrowLeftRight.d.ts.map +1 -0
- package/dist/components/primitives/Icons/ArrowRightLeft.d.ts +30 -0
- package/dist/components/primitives/Icons/ArrowRightLeft.d.ts.map +1 -0
- package/dist/components/primitives/Icons/Building.d.ts +41 -0
- package/dist/components/primitives/Icons/Building.d.ts.map +1 -0
- package/dist/components/primitives/Icons/BuildingAlt.d.ts +41 -0
- package/dist/components/primitives/Icons/BuildingAlt.d.ts.map +1 -0
- package/dist/components/primitives/Icons/Check.d.ts +41 -0
- package/dist/components/primitives/Icons/Check.d.ts.map +1 -0
- package/dist/components/primitives/Icons/ChevronDown.d.ts +41 -0
- package/dist/components/primitives/Icons/ChevronDown.d.ts.map +1 -0
- package/dist/components/primitives/Icons/CircleAlert.d.ts +24 -0
- package/dist/components/primitives/Icons/CircleAlert.d.ts.map +1 -0
- package/dist/components/primitives/Icons/CircleCheck.d.ts +24 -0
- package/dist/components/primitives/Icons/CircleCheck.d.ts.map +1 -0
- package/dist/components/primitives/Icons/Eye.d.ts +24 -0
- package/dist/components/primitives/Icons/Eye.d.ts.map +1 -0
- package/dist/components/primitives/Icons/EyeOff.d.ts +24 -0
- package/dist/components/primitives/Icons/EyeOff.d.ts.map +1 -0
- package/dist/components/primitives/Icons/Info.d.ts +24 -0
- package/dist/components/primitives/Icons/Info.d.ts.map +1 -0
- package/dist/components/primitives/Icons/LogOut.d.ts +24 -0
- package/dist/components/primitives/Icons/LogOut.d.ts.map +1 -0
- package/dist/components/primitives/Icons/Plus.d.ts +24 -0
- package/dist/components/primitives/Icons/Plus.d.ts.map +1 -0
- package/dist/components/primitives/Icons/Settings.d.ts +1 -0
- package/dist/components/primitives/Icons/Settings.d.ts.map +1 -0
- package/dist/components/primitives/Icons/TriangleAlert.d.ts +24 -0
- package/dist/components/primitives/Icons/TriangleAlert.d.ts.map +1 -0
- package/dist/components/primitives/Icons/User.d.ts +24 -0
- package/dist/components/primitives/Icons/User.d.ts.map +1 -0
- package/dist/components/primitives/Icons/X.d.ts +24 -0
- package/dist/components/primitives/Icons/X.d.ts.map +1 -0
- package/dist/components/primitives/Icons/flowIconRegistry.d.ts +29 -0
- package/dist/components/primitives/Icons/flowIconRegistry.d.ts.map +1 -0
- package/dist/components/primitives/Icons/index.d.ts +29 -0
- package/dist/components/primitives/Icons/index.d.ts.map +1 -0
- package/dist/components/primitives/InputLabel/InputLabel.d.ts +52 -0
- package/dist/components/primitives/InputLabel/InputLabel.d.ts.map +1 -0
- package/dist/components/primitives/InputLabel/InputLabel.styles.d.ts +31 -0
- package/dist/components/primitives/InputLabel/InputLabel.styles.d.ts.map +1 -0
- package/dist/components/primitives/KeyValueInput/KeyValueInput.d.ts +124 -0
- package/dist/components/primitives/KeyValueInput/KeyValueInput.d.ts.map +1 -0
- package/dist/components/primitives/KeyValueInput/KeyValueInput.styles.d.ts +30 -0
- package/dist/components/primitives/KeyValueInput/KeyValueInput.styles.d.ts.map +1 -0
- package/dist/components/primitives/Logo/Logo.d.ts +53 -0
- package/dist/components/primitives/Logo/Logo.d.ts.map +1 -0
- package/dist/components/primitives/Logo/Logo.styles.d.ts +29 -0
- package/dist/components/primitives/Logo/Logo.styles.d.ts.map +1 -0
- package/dist/components/primitives/MultiInput/MultiInput.d.ts +89 -0
- package/dist/components/primitives/MultiInput/MultiInput.d.ts.map +1 -0
- package/dist/components/primitives/MultiInput/MultiInput.styles.d.ts +33 -0
- package/dist/components/primitives/MultiInput/MultiInput.styles.d.ts.map +1 -0
- package/dist/components/primitives/OtpField/OtpField.d.ts +88 -0
- package/dist/components/primitives/OtpField/OtpField.d.ts.map +1 -0
- package/dist/components/primitives/OtpField/OtpField.styles.d.ts +31 -0
- package/dist/components/primitives/OtpField/OtpField.styles.d.ts.map +1 -0
- package/dist/components/primitives/PasswordField/PasswordField.d.ts +32 -0
- package/dist/components/primitives/PasswordField/PasswordField.d.ts.map +1 -0
- package/dist/components/primitives/PasswordField/PasswordField.styles.d.ts +30 -0
- package/dist/components/primitives/PasswordField/PasswordField.styles.d.ts.map +1 -0
- package/dist/components/primitives/Select/Select.d.ts +65 -0
- package/dist/components/primitives/Select/Select.d.ts.map +1 -0
- package/dist/components/primitives/Select/Select.styles.d.ts +29 -0
- package/dist/components/primitives/Select/Select.styles.d.ts.map +1 -0
- package/dist/components/primitives/Spinner/Spinner.d.ts +55 -0
- package/dist/components/primitives/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/primitives/Spinner/Spinner.styles.d.ts +30 -0
- package/dist/components/primitives/Spinner/Spinner.styles.d.ts.map +1 -0
- package/dist/components/primitives/TextField/TextField.d.ts +63 -0
- package/dist/components/primitives/TextField/TextField.d.ts.map +1 -0
- package/dist/components/primitives/TextField/TextField.styles.d.ts +31 -0
- package/dist/components/primitives/TextField/TextField.styles.d.ts.map +1 -0
- package/dist/components/primitives/Toggle/Toggle.d.ts +41 -0
- package/dist/components/primitives/Toggle/Toggle.d.ts.map +1 -0
- package/dist/components/primitives/Toggle/Toggle.styles.d.ts +21 -0
- package/dist/components/primitives/Toggle/Toggle.styles.d.ts.map +1 -0
- package/dist/components/primitives/Typography/Typography.d.ts +80 -0
- package/dist/components/primitives/Typography/Typography.d.ts.map +1 -0
- package/dist/components/primitives/Typography/Typography.styles.d.ts +39 -0
- package/dist/components/primitives/Typography/Typography.styles.d.ts.map +1 -0
- package/dist/contexts/Branding/BrandingContext.d.ts +53 -0
- package/dist/contexts/Branding/BrandingContext.d.ts.map +1 -0
- package/dist/contexts/Branding/BrandingProvider.d.ts +89 -0
- package/dist/contexts/Branding/BrandingProvider.d.ts.map +1 -0
- package/dist/contexts/Branding/useBrandingContext.d.ts +45 -0
- package/dist/contexts/Branding/useBrandingContext.d.ts.map +1 -0
- package/dist/contexts/ComponentRenderer/ComponentRendererContext.d.ts +37 -0
- package/dist/contexts/ComponentRenderer/ComponentRendererContext.d.ts.map +1 -0
- package/dist/contexts/ComponentRenderer/ComponentRendererProvider.d.ts +25 -0
- package/dist/contexts/ComponentRenderer/ComponentRendererProvider.d.ts.map +1 -0
- package/dist/contexts/Flow/FlowContext.d.ts +75 -0
- package/dist/contexts/Flow/FlowContext.d.ts.map +1 -0
- package/dist/contexts/Flow/FlowProvider.d.ts +47 -0
- package/dist/contexts/Flow/FlowProvider.d.ts.map +1 -0
- package/dist/contexts/Flow/useFlow.d.ts +49 -0
- package/dist/contexts/Flow/useFlow.d.ts.map +1 -0
- package/dist/contexts/FlowMeta/FlowMetaContext.d.ts +45 -0
- package/dist/contexts/FlowMeta/FlowMetaContext.d.ts.map +1 -0
- package/dist/contexts/FlowMeta/FlowMetaProvider.d.ts +51 -0
- package/dist/contexts/FlowMeta/FlowMetaProvider.d.ts.map +1 -0
- package/dist/contexts/FlowMeta/useFlowMeta.d.ts +21 -0
- package/dist/contexts/FlowMeta/useFlowMeta.d.ts.map +1 -0
- package/dist/contexts/I18n/ComponentPreferencesContext.d.ts +27 -0
- package/dist/contexts/I18n/ComponentPreferencesContext.d.ts.map +1 -0
- package/dist/contexts/I18n/I18nContext.d.ts +49 -0
- package/dist/contexts/I18n/I18nContext.d.ts.map +1 -0
- package/dist/contexts/I18n/I18nProvider.d.ts +32 -0
- package/dist/contexts/I18n/I18nProvider.d.ts.map +1 -0
- package/dist/contexts/I18n/useI18n.d.ts +28 -0
- package/dist/contexts/I18n/useI18n.d.ts.map +1 -0
- package/dist/contexts/Organization/OrganizationContext.d.ts +41 -0
- package/dist/contexts/Organization/OrganizationContext.d.ts.map +1 -0
- package/dist/contexts/Organization/OrganizationProvider.d.ts +94 -0
- package/dist/contexts/Organization/OrganizationProvider.d.ts.map +1 -0
- package/dist/contexts/Organization/useOrganization.d.ts +105 -0
- package/dist/contexts/Organization/useOrganization.d.ts.map +1 -0
- package/dist/contexts/Theme/ThemeContext.d.ts +43 -0
- package/dist/contexts/Theme/ThemeContext.d.ts.map +1 -0
- package/dist/contexts/Theme/ThemeProvider.d.ts +86 -0
- package/dist/contexts/Theme/ThemeProvider.d.ts.map +1 -0
- package/dist/contexts/Theme/types.d.ts +131 -0
- package/dist/contexts/Theme/types.d.ts.map +1 -0
- package/dist/contexts/Theme/useTheme.d.ts +21 -0
- package/dist/contexts/Theme/useTheme.d.ts.map +1 -0
- package/dist/contexts/Theme/v1/ThemeProvider.d.ts +89 -0
- package/dist/contexts/Theme/v1/ThemeProvider.d.ts.map +1 -0
- package/dist/contexts/Theme/v2/ThemeProvider.d.ts +58 -0
- package/dist/contexts/Theme/v2/ThemeProvider.d.ts.map +1 -0
- package/dist/contexts/ThunderID/ThunderIDContext.d.ts +184 -0
- package/dist/contexts/ThunderID/ThunderIDContext.d.ts.map +1 -0
- package/dist/contexts/ThunderID/ThunderIDProvider.d.ts +26 -0
- package/dist/contexts/ThunderID/ThunderIDProvider.d.ts.map +1 -0
- package/dist/contexts/ThunderID/useThunderID.d.ts +21 -0
- package/dist/contexts/ThunderID/useThunderID.d.ts.map +1 -0
- package/dist/contexts/User/UserContext.d.ts +42 -0
- package/dist/contexts/User/UserContext.d.ts.map +1 -0
- package/dist/contexts/User/UserProvider.d.ts +65 -0
- package/dist/contexts/User/UserProvider.d.ts.map +1 -0
- package/dist/contexts/User/useUser.d.ts +95 -0
- package/dist/contexts/User/useUser.d.ts.map +1 -0
- package/dist/hooks/useBranding.d.ts +128 -0
- package/dist/hooks/useBranding.d.ts.map +1 -0
- package/dist/hooks/useBrowserUrl.d.ts +56 -0
- package/dist/hooks/useBrowserUrl.d.ts.map +1 -0
- package/dist/hooks/useForm.d.ts +194 -0
- package/dist/hooks/useForm.d.ts.map +1 -0
- package/dist/hooks/useTranslation.d.ts +53 -0
- package/dist/hooks/useTranslation.d.ts.map +1 -0
- package/dist/hooks/v2/useOAuthCallback.d.ts +83 -0
- package/dist/hooks/v2/useOAuthCallback.d.ts.map +1 -0
- package/dist/index.d.ts +206 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20044 -0
- package/dist/index.js.map +1 -0
- package/dist/models/adapters.d.ts +69 -0
- package/dist/models/adapters.d.ts.map +1 -0
- package/dist/models/config.d.ts +20 -0
- package/dist/models/config.d.ts.map +1 -0
- package/dist/utils/applyThemeToDOM.d.ts +25 -0
- package/dist/utils/applyThemeToDOM.d.ts.map +1 -0
- package/dist/utils/getDisplayName.d.ts +44 -0
- package/dist/utils/getDisplayName.d.ts.map +1 -0
- package/dist/utils/getMappedUserProfileValue.d.ts +52 -0
- package/dist/utils/getMappedUserProfileValue.d.ts.map +1 -0
- package/dist/utils/normalizeThemeConfig.d.ts +31 -0
- package/dist/utils/normalizeThemeConfig.d.ts.map +1 -0
- package/dist/utils/oauth.d.ts +25 -0
- package/dist/utils/oauth.d.ts.map +1 -0
- package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts +34 -0
- package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts.map +1 -0
- package/dist/utils/v2/flowTransformer.d.ts +121 -0
- package/dist/utils/v2/flowTransformer.d.ts.map +1 -0
- package/dist/utils/v2/getAuthComponentHeadings.d.ts +70 -0
- package/dist/utils/v2/getAuthComponentHeadings.d.ts.map +1 -0
- package/dist/utils/v2/passkey.d.ts +32 -0
- package/dist/utils/v2/passkey.d.ts.map +1 -0
- package/dist/utils/v2/resolveTranslationsInArray.d.ts +30 -0
- package/dist/utils/v2/resolveTranslationsInArray.d.ts.map +1 -0
- package/dist/utils/v2/resolveTranslationsInObject.d.ts +30 -0
- package/dist/utils/v2/resolveTranslationsInObject.d.ts.map +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { EmbeddedFlowComponent } from '@thunderid/browser';
|
|
19
|
+
import { ReactElement } from 'react';
|
|
20
|
+
import { AdapterProps } from '../../../../../models/adapters';
|
|
21
|
+
/**
|
|
22
|
+
* Creates the appropriate recovery component based on the component type.
|
|
23
|
+
*/
|
|
24
|
+
export declare const createRecoveryComponent: ({ component, onSubmit, ...rest }: AdapterProps) => ReactElement;
|
|
25
|
+
/**
|
|
26
|
+
* Convenience function that creates the appropriate recovery component from flow component data.
|
|
27
|
+
*/
|
|
28
|
+
export declare const createRecoveryOptionFromComponent: (component: EmbeddedFlowComponent, formValues: Record<string, string>, touchedFields: Record<string, boolean>, formErrors: Record<string, string>, isLoading: boolean, isFormValid: boolean, onInputChange: (name: string, value: string) => void, options?: {
|
|
29
|
+
buttonClassName?: string;
|
|
30
|
+
inputClassName?: string;
|
|
31
|
+
key?: string | number;
|
|
32
|
+
onSubmit?: (component: EmbeddedFlowComponent, data?: Record<string, any>) => void;
|
|
33
|
+
size?: "small" | "medium" | "large";
|
|
34
|
+
variant?: any;
|
|
35
|
+
}) => ReactElement;
|
|
36
|
+
/**
|
|
37
|
+
* Processes an array of components and renders them as React elements for recovery flow.
|
|
38
|
+
*/
|
|
39
|
+
export declare const renderRecoveryComponents: (components: EmbeddedFlowComponent[], formValues: Record<string, string>, touchedFields: Record<string, boolean>, formErrors: Record<string, string>, isLoading: boolean, isFormValid: boolean, onInputChange: (name: string, value: string) => void, options?: {
|
|
40
|
+
buttonClassName?: string;
|
|
41
|
+
inputClassName?: string;
|
|
42
|
+
onSubmit?: (component: EmbeddedFlowComponent, data?: Record<string, any>) => void;
|
|
43
|
+
size?: "small" | "medium" | "large";
|
|
44
|
+
variant?: any;
|
|
45
|
+
}) => ReactElement[];
|
|
46
|
+
//# sourceMappingURL=RecoveryOptionFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecoveryOptionFactory.d.ts","sourceRoot":"","sources":["../../../../../../src/components/presentation/auth/Recovery/v1/RecoveryOptionFactory.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,qBAAqB,EAA4B,MAAM,oBAAoB,CAAC;AACpF,OAAO,EAAC,YAAY,EAAC,MAAM,OAAO,CAAC;AACnC,OAAO,EAAC,YAAY,EAAC,MAAM,gCAAgC,CAAC;AAsB5D;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,kCAAgC,YAAY,KAAG,YAgHtF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iCAAiC,GAC5C,WAAW,qBAAqB,EAChC,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,WAAW,OAAO,EAClB,aAAa,OAAO,EACpB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,EACpD,UAAU;IACR,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAClF,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,KACA,YAUC,CAAC;AAEL;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,YAAY,qBAAqB,EAAE,EACnC,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,WAAW,OAAO,EAClB,aAAa,OAAO,EACpB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,EACpD,UAAU;IACR,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAClF,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,KACA,YAAY,EAkBK,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { EmbeddedFlowExecuteRequestPayload, EmbeddedFlowExecuteResponse, Preferences, FlowMetadataResponse } from '@thunderid/browser';
|
|
19
|
+
import { FC, ReactNode } from 'react';
|
|
20
|
+
import { CardProps } from '../../../../primitives/Card/Card';
|
|
21
|
+
/**
|
|
22
|
+
* Render props for custom UI rendering.
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseRecoveryRenderProps {
|
|
25
|
+
components: any[];
|
|
26
|
+
error?: Error | null;
|
|
27
|
+
fieldErrors: Record<string, string>;
|
|
28
|
+
handleInputChange: (name: string, value: string) => void;
|
|
29
|
+
handleSubmit: (component: any, data?: Record<string, any>) => Promise<void>;
|
|
30
|
+
isLoading: boolean;
|
|
31
|
+
isValid: boolean;
|
|
32
|
+
messages: {
|
|
33
|
+
message: string;
|
|
34
|
+
type: string;
|
|
35
|
+
}[];
|
|
36
|
+
meta: FlowMetadataResponse | null;
|
|
37
|
+
subtitle: string;
|
|
38
|
+
title: string;
|
|
39
|
+
touched: Record<string, boolean>;
|
|
40
|
+
validateForm: () => {
|
|
41
|
+
fieldErrors: Record<string, string>;
|
|
42
|
+
isValid: boolean;
|
|
43
|
+
};
|
|
44
|
+
values: Record<string, string>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Props for the BaseRecovery component.
|
|
48
|
+
*/
|
|
49
|
+
export interface BaseRecoveryProps {
|
|
50
|
+
afterRecoveryUrl?: string;
|
|
51
|
+
buttonClassName?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Render props function for custom UI or static content
|
|
54
|
+
*/
|
|
55
|
+
children?: ((props: BaseRecoveryRenderProps) => ReactNode) | ReactNode;
|
|
56
|
+
className?: string;
|
|
57
|
+
error?: Error | null;
|
|
58
|
+
errorClassName?: string;
|
|
59
|
+
inputClassName?: string;
|
|
60
|
+
isInitialized?: boolean;
|
|
61
|
+
messageClassName?: string;
|
|
62
|
+
onComplete?: (response: EmbeddedFlowExecuteResponse) => void;
|
|
63
|
+
onError?: (error: Error) => void;
|
|
64
|
+
onFlowChange?: (response: EmbeddedFlowExecuteResponse) => void;
|
|
65
|
+
onInitialize?: (payload?: EmbeddedFlowExecuteRequestPayload) => Promise<EmbeddedFlowExecuteResponse>;
|
|
66
|
+
onSubmit?: (payload: EmbeddedFlowExecuteRequestPayload) => Promise<EmbeddedFlowExecuteResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Component-level preferences to override global i18n and theme settings.
|
|
69
|
+
*/
|
|
70
|
+
preferences?: Preferences;
|
|
71
|
+
showLogo?: boolean;
|
|
72
|
+
showSubtitle?: boolean;
|
|
73
|
+
showTitle?: boolean;
|
|
74
|
+
size?: 'small' | 'medium' | 'large';
|
|
75
|
+
variant?: CardProps['variant'];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* BaseRecovery component for ThunderIDV2 that provides an embedded account/password recovery flow.
|
|
79
|
+
* Accepts API functions as props to maintain framework independence.
|
|
80
|
+
*/
|
|
81
|
+
declare const BaseRecovery: FC<BaseRecoveryProps>;
|
|
82
|
+
export default BaseRecovery;
|
|
83
|
+
//# sourceMappingURL=BaseRecovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseRecovery.d.ts","sourceRoot":"","sources":["../../../../../../src/components/presentation/auth/Recovery/v2/BaseRecovery.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAI3B,WAAW,EACX,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,EAAE,EAAgB,SAAS,EAAuD,MAAM,OAAO,CAAC;AAcxG,OAAsB,EAAC,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAO1E;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,GAAG,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,YAAY,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5E,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,EAAE,CAAC;IAC5C,IAAI,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,YAAY,EAAE,MAAM;QAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAC,CAAC;IAC5E,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,uBAAuB,KAAK,SAAS,CAAC,GAAG,SAAS,CAAC;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,2BAA2B,KAAK,IAAI,CAAC;IAC7D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,2BAA2B,KAAK,IAAI,CAAC;IAC/D,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,iCAAiC,KAAK,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACrG,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,iCAAiC,KAAK,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAChG;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAChC;AAmcD;;;GAGG;AACH,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAwBvC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FC, PropsWithChildren } from 'react';
|
|
19
|
+
import { BaseRecoveryProps } from './BaseRecovery';
|
|
20
|
+
export type RecoveryProps = PropsWithChildren<BaseRecoveryProps & {
|
|
21
|
+
/**
|
|
22
|
+
* URL query parameter name that carries the recovery token when the user lands via a recovery link.
|
|
23
|
+
* When set and both `executionId` and this param are present in the URL, the component resumes the
|
|
24
|
+
* existing flow instead of starting a new one.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // For a link like /recovery?executionId=xxx&recoveryToken=yyy
|
|
28
|
+
* <Recovery tokenUrlParam="recoveryToken" />
|
|
29
|
+
*/
|
|
30
|
+
tokenUrlParam?: string;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Recovery component for ThunderIDV2 that provides an embedded account/password recovery flow.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* // Default UI
|
|
38
|
+
* <Recovery
|
|
39
|
+
* afterRecoveryUrl="/sign-in"
|
|
40
|
+
* onComplete={(response) => console.log('Recovery complete', response)}
|
|
41
|
+
* onError={(error) => console.error('Recovery failed', error)}
|
|
42
|
+
* />
|
|
43
|
+
*
|
|
44
|
+
* // Custom UI with render props
|
|
45
|
+
* <Recovery>
|
|
46
|
+
* {({ values, fieldErrors, handleInputChange, handleSubmit, isLoading, components }) => (
|
|
47
|
+
* <form onSubmit={(e) => { e.preventDefault(); handleSubmit(components[0], values); }}>
|
|
48
|
+
* ...
|
|
49
|
+
* </form>
|
|
50
|
+
* )}
|
|
51
|
+
* </Recovery>
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
declare const Recovery: FC<RecoveryProps>;
|
|
55
|
+
export default Recovery;
|
|
56
|
+
//# sourceMappingURL=Recovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Recovery.d.ts","sourceRoot":"","sources":["../../../../../../src/components/presentation/auth/Recovery/v2/Recovery.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,EAAE,EAAE,iBAAiB,EAA4B,MAAM,OAAO,CAAC;AACvE,OAAqB,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AAG/D,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAC3C,iBAAiB,GAAG;IAClB;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,QAAA,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA6E/B,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FC } from 'react';
|
|
19
|
+
import { BaseSignInProps as BaseSignInV1Props } from './v1/BaseSignIn';
|
|
20
|
+
import { BaseSignInProps as BaseSignInV2Props } from './v2/BaseSignIn';
|
|
21
|
+
/**
|
|
22
|
+
* Props for the BaseSignIn component.
|
|
23
|
+
* Extends BaseSignInV1Props & BaseSignInV2Props for full compatibility with both React BaseSignIn components.
|
|
24
|
+
*/
|
|
25
|
+
export type BaseSignInProps = BaseSignInV1Props | BaseSignInV2Props;
|
|
26
|
+
declare const BaseSignIn: FC<BaseSignInProps>;
|
|
27
|
+
export default BaseSignIn;
|
|
28
|
+
//# sourceMappingURL=BaseSignIn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseSignIn.d.ts","sourceRoot":"","sources":["../../../../../src/components/presentation/auth/SignIn/BaseSignIn.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,EAAE,EAAC,MAAM,OAAO,CAAC;AACzB,OAAqB,EAAC,eAAe,IAAI,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AACnF,OAAqB,EAAC,eAAe,IAAI,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAGnF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;AAEpE,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAQnC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { Theme } from '@thunderid/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Creates styles for the BaseSignIn component
|
|
21
|
+
* @param theme - The theme object containing design tokens
|
|
22
|
+
* @param colorScheme - The current color scheme (used for memoization)
|
|
23
|
+
* @returns Object containing CSS class names for component styling
|
|
24
|
+
*/
|
|
25
|
+
declare const useStyles: (theme: Theme, colorScheme: string) => Record<string, string>;
|
|
26
|
+
export default useStyles;
|
|
27
|
+
//# sourceMappingURL=BaseSignIn.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseSignIn.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/presentation/auth/SignIn/BaseSignIn.styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAGzC;;;;;GAKG;AACH,QAAA,MAAM,SAAS,GAAI,OAAO,KAAK,EAAE,aAAa,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAkKxE,CAAC;AAEL,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { Preferences } from '@thunderid/browser';
|
|
19
|
+
import { FC, ReactElement } from 'react';
|
|
20
|
+
import { BaseSignInProps } from './BaseSignIn';
|
|
21
|
+
import { SignInRenderProps } from './v2/SignIn';
|
|
22
|
+
/**
|
|
23
|
+
* Props for the SignIn component.
|
|
24
|
+
* Extends BaseSignInProps for full compatibility with the React BaseSignIn component
|
|
25
|
+
*/
|
|
26
|
+
export type SignInProps = Pick<BaseSignInProps, 'className' | 'onSuccess' | 'onError' | 'variant' | 'size'> & {
|
|
27
|
+
/**
|
|
28
|
+
* Render function for custom UI (render props pattern).
|
|
29
|
+
*/
|
|
30
|
+
children?: (props: SignInRenderProps) => ReactElement;
|
|
31
|
+
/**
|
|
32
|
+
* Component-level preferences to override global i18n and theme settings.
|
|
33
|
+
*/
|
|
34
|
+
preferences?: Preferences;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* A styled SignIn component that provides native authentication flow with pre-built styling.
|
|
38
|
+
* This component handles the API calls for authentication and delegates UI logic to BaseSignIn.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* import { SignIn } from '@thunderid/react';
|
|
43
|
+
*
|
|
44
|
+
* const App = () => {
|
|
45
|
+
* return (
|
|
46
|
+
* <SignIn
|
|
47
|
+
* onSuccess={(authData) => {
|
|
48
|
+
* console.log('Authentication successful:', authData);
|
|
49
|
+
* // Handle successful authentication (e.g., redirect, store tokens)
|
|
50
|
+
* }}
|
|
51
|
+
* onError={(error) => {
|
|
52
|
+
* console.error('Authentication failed:', error);
|
|
53
|
+
* }}
|
|
54
|
+
* size="medium"
|
|
55
|
+
* variant="outlined"
|
|
56
|
+
* />
|
|
57
|
+
* );
|
|
58
|
+
* };
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
declare const SignIn: FC<SignInProps>;
|
|
62
|
+
export default SignIn;
|
|
63
|
+
//# sourceMappingURL=SignIn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../../../../src/components/presentation/auth/SignIn/SignIn.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAKL,WAAW,EACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,EAAE,EAAE,YAAY,EAAC,MAAM,OAAO,CAAC;AACvC,OAAmB,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AACzD,OAAiB,EAAC,iBAAiB,EAAC,MAAM,aAAa,CAAC;AAGxD;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC,GAAG;IAC5G;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,YAAY,CAAC;IACtD;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAiE3B,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { EmbeddedSignInFlowInitiateResponse, EmbeddedSignInFlowHandleResponse, EmbeddedSignInFlowHandleRequestPayload, EmbeddedFlowExecuteRequestConfig } from '@thunderid/browser';
|
|
19
|
+
import { FC } from 'react';
|
|
20
|
+
import { CardProps } from '../../../../primitives/Card/Card';
|
|
21
|
+
/**
|
|
22
|
+
* Props for the BaseSignIn component.
|
|
23
|
+
*/
|
|
24
|
+
export interface BaseSignInProps {
|
|
25
|
+
afterSignInUrl?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Custom CSS class name for the submit button.
|
|
28
|
+
*/
|
|
29
|
+
buttonClassName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Custom CSS class name for the form container.
|
|
32
|
+
*/
|
|
33
|
+
className?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Custom CSS class name for error messages.
|
|
36
|
+
*/
|
|
37
|
+
errorClassName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Custom CSS class name for form inputs.
|
|
40
|
+
*/
|
|
41
|
+
inputClassName?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Flag to determine the component is ready to be rendered.
|
|
44
|
+
*/
|
|
45
|
+
isLoading?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Custom CSS class name for info messages.
|
|
48
|
+
*/
|
|
49
|
+
messageClassName?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Callback function called when authentication fails.
|
|
52
|
+
* @param error - The error that occurred during authentication.
|
|
53
|
+
*/
|
|
54
|
+
onError?: (error: Error) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Callback function called when authentication flow status changes.
|
|
57
|
+
* @param response - The current authentication response.
|
|
58
|
+
*/
|
|
59
|
+
onFlowChange?: (response: EmbeddedSignInFlowInitiateResponse | EmbeddedSignInFlowHandleResponse) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Function to initialize authentication flow.
|
|
62
|
+
* @returns Promise resolving to the initial authentication response.
|
|
63
|
+
*/
|
|
64
|
+
onInitialize?: () => Promise<EmbeddedSignInFlowInitiateResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Function to handle authentication steps.
|
|
67
|
+
* @param payload - The authentication payload.
|
|
68
|
+
* @returns Promise resolving to the authentication response.
|
|
69
|
+
*/
|
|
70
|
+
onSubmit?: (payload: EmbeddedSignInFlowHandleRequestPayload, request: EmbeddedFlowExecuteRequestConfig) => Promise<EmbeddedSignInFlowHandleResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Callback function called when authentication is successful.
|
|
73
|
+
* @param authData - The authentication data returned upon successful completion.
|
|
74
|
+
*/
|
|
75
|
+
onSuccess?: (authData: Record<string, any>) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Whether to show the logo.
|
|
78
|
+
*/
|
|
79
|
+
showLogo?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Whether to show the subtitle.
|
|
82
|
+
*/
|
|
83
|
+
showSubtitle?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Whether to show the title.
|
|
86
|
+
*/
|
|
87
|
+
showTitle?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Size variant for the component.
|
|
90
|
+
*/
|
|
91
|
+
size?: 'small' | 'medium' | 'large';
|
|
92
|
+
/**
|
|
93
|
+
* Theme variant for the component.
|
|
94
|
+
*/
|
|
95
|
+
variant?: CardProps['variant'];
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Base SignIn component that provides native authentication flow.
|
|
99
|
+
* This component handles both the presentation layer and authentication flow logic.
|
|
100
|
+
* It accepts API functions as props to maintain framework independence.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```tsx
|
|
104
|
+
* import { BaseSignIn } from '@thunderid/react';
|
|
105
|
+
*
|
|
106
|
+
* const MySignIn = () => {
|
|
107
|
+
* return (
|
|
108
|
+
* <BaseSignIn
|
|
109
|
+
* onInitialize={async () => {
|
|
110
|
+
* // Your API call to initialize authentication
|
|
111
|
+
* return await initializeAuth();
|
|
112
|
+
* }}
|
|
113
|
+
* onSubmit={async (payload) => {
|
|
114
|
+
* // Your API call to handle authentication
|
|
115
|
+
* return await handleAuth(payload);
|
|
116
|
+
* }}
|
|
117
|
+
* onSuccess={(authData) => {
|
|
118
|
+
* console.log('Success:', authData);
|
|
119
|
+
* }}
|
|
120
|
+
* onError={(error) => {
|
|
121
|
+
* console.error('Error:', error);
|
|
122
|
+
* }}
|
|
123
|
+
* className="max-w-md mx-auto"
|
|
124
|
+
* />
|
|
125
|
+
* );
|
|
126
|
+
* };
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
declare const BaseSignIn: FC<BaseSignInProps>;
|
|
130
|
+
export default BaseSignIn;
|
|
131
|
+
//# sourceMappingURL=BaseSignIn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseSignIn.d.ts","sourceRoot":"","sources":["../../../../../../src/components/presentation/auth/SignIn/v1/BaseSignIn.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAEL,kCAAkC,EAClC,gCAAgC,EAOhC,sCAAsC,EACtC,gCAAgC,EAGjC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,EAAE,EAA+E,MAAM,OAAO,CAAC;AAQvG,OAAsB,EAAC,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAoB1E;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,kCAAkC,GAAG,gCAAgC,KAAK,IAAI,CAAC;IAEzG;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC,kCAAkC,CAAC,CAAC;IAEjE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CACT,OAAO,EAAE,sCAAsC,EAC/C,OAAO,EAAE,gCAAgC,KACtC,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAE/C;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAEpD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAEpC;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAChC;AAwiCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAgBnC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FC } from 'react';
|
|
19
|
+
import { BaseSignInOptionProps } from './SignInOptionFactory';
|
|
20
|
+
/**
|
|
21
|
+
* Email OTP Sign-In Option Component.
|
|
22
|
+
* Handles email-based OTP authentication.
|
|
23
|
+
*/
|
|
24
|
+
declare const EmailOtp: FC<BaseSignInOptionProps>;
|
|
25
|
+
export default EmailOtp;
|
|
26
|
+
//# sourceMappingURL=EmailOtp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailOtp.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/presentation/auth/SignIn/v1/options/EmailOtp.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,EAAE,EAA0B,MAAM,OAAO,CAAC;AAElD,OAAO,EAAC,qBAAqB,EAAC,MAAM,uBAAuB,CAAC;AAQ5D;;;GAGG;AACH,QAAA,MAAM,QAAQ,EAAE,EAAE,CAAC,qBAAqB,CA2EvC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FC } from 'react';
|
|
19
|
+
import { BaseSignInOptionProps } from './SignInOptionFactory';
|
|
20
|
+
/**
|
|
21
|
+
* Identifier First Sign-In Option Component.
|
|
22
|
+
* Handles identifier-first authentication flow (username first, then password).
|
|
23
|
+
*/
|
|
24
|
+
declare const IdentifierFirst: FC<BaseSignInOptionProps>;
|
|
25
|
+
export default IdentifierFirst;
|
|
26
|
+
//# sourceMappingURL=IdentifierFirst.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentifierFirst.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/presentation/auth/SignIn/v1/options/IdentifierFirst.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,EAAE,EAA0B,MAAM,OAAO,CAAC;AAElD,OAAO,EAAC,qBAAqB,EAAC,MAAM,uBAAuB,CAAC;AAO5D;;;GAGG;AACH,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,qBAAqB,CA2D9C,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FC } from 'react';
|
|
19
|
+
import { BaseSignInOptionProps } from './SignInOptionFactory';
|
|
20
|
+
/**
|
|
21
|
+
* Multi Option Button Component.
|
|
22
|
+
* Renders authenticators as selectable buttons for multi-option prompts.
|
|
23
|
+
* Used when authenticators don't require immediate user input but need to be selected first.
|
|
24
|
+
*/
|
|
25
|
+
declare const MultiOptionButton: FC<BaseSignInOptionProps>;
|
|
26
|
+
export default MultiOptionButton;
|
|
27
|
+
//# sourceMappingURL=MultiOptionButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiOptionButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/presentation/auth/SignIn/v1/options/MultiOptionButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH,OAAO,EAAC,EAAE,EAAe,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAC,qBAAqB,EAAC,MAAM,uBAAuB,CAAC;AAI5D;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,qBAAqB,CAuHhD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { EmbeddedSignInFlowAuthenticator, WithPreferences } from '@thunderid/browser';
|
|
19
|
+
import { ReactElement } from 'react';
|
|
20
|
+
/**
|
|
21
|
+
* Base props that all sign-in option components share.
|
|
22
|
+
*/
|
|
23
|
+
export interface BaseSignInOptionProps extends WithPreferences {
|
|
24
|
+
/**
|
|
25
|
+
* The authenticator configuration.
|
|
26
|
+
*/
|
|
27
|
+
authenticator?: EmbeddedSignInFlowAuthenticator;
|
|
28
|
+
/**
|
|
29
|
+
* Custom CSS class name for the submit button.
|
|
30
|
+
*/
|
|
31
|
+
buttonClassName?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Error message to display.
|
|
34
|
+
*/
|
|
35
|
+
error?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Current form values.
|
|
38
|
+
*/
|
|
39
|
+
formValues: Record<string, string>;
|
|
40
|
+
/**
|
|
41
|
+
* Custom CSS class name for form inputs.
|
|
42
|
+
*/
|
|
43
|
+
inputClassName?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the component is in loading state.
|
|
46
|
+
*/
|
|
47
|
+
isLoading: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Callback function called when input values change.
|
|
50
|
+
*/
|
|
51
|
+
onInputChange: (param: string, value: string) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Callback function called when the option is submitted.
|
|
54
|
+
*/
|
|
55
|
+
onSubmit?: (authenticator: EmbeddedSignInFlowAuthenticator, formData?: Record<string, string>) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Text for the submit button.
|
|
58
|
+
*/
|
|
59
|
+
submitButtonText?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Touched state for form fields.
|
|
62
|
+
*/
|
|
63
|
+
touchedFields: Record<string, boolean>;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Creates the appropriate sign-in option component based on the authenticator's ID.
|
|
67
|
+
*/
|
|
68
|
+
export declare const createSignInOption: ({ authenticator, onSubmit, buttonClassName, preferences, ...rest }: BaseSignInOptionProps) => ReactElement;
|
|
69
|
+
/**
|
|
70
|
+
* Convenience function that creates the appropriate sign-in option component from an authenticator.
|
|
71
|
+
*/
|
|
72
|
+
export declare const createSignInOptionFromAuthenticator: (authenticator: EmbeddedSignInFlowAuthenticator, formValues: Record<string, string>, touchedFields: Record<string, boolean>, isLoading: boolean, onInputChange: (param: string, value: string) => void, onSubmit: (authenticator: EmbeddedSignInFlowAuthenticator, formData?: Record<string, string>) => void, options?: {
|
|
73
|
+
buttonClassName?: string;
|
|
74
|
+
error?: string | null;
|
|
75
|
+
inputClassName?: string;
|
|
76
|
+
}) => ReactElement;
|
|
77
|
+
//# sourceMappingURL=SignInOptionFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignInOptionFactory.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/presentation/auth/SignIn/v1/options/SignInOptionFactory.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,+BAA+B,EAG/B,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAC,YAAY,EAAC,MAAM,OAAO,CAAC;AAsBnC;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D;;OAEG;IACH,aAAa,CAAC,EAAE,+BAA+B,CAAC;IAEhD;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEnC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtD;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,+BAA+B,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAEvG;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,oEAMhC,qBAAqB,KAAG,YA6H1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mCAAmC,GAC9C,eAAe,+BAA+B,EAC9C,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,WAAW,OAAO,EAClB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,EACrD,UAAU,CAAC,aAAa,EAAE,+BAA+B,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,EACrG,UAAU;IACR,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,KACA,YASC,CAAC"}
|