@cedros/login-react 0.0.11 → 0.0.13
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 +68 -0
- package/dist/AdminDepositList-Cx0xRwES.js +305 -0
- package/dist/AdminDepositList-Cx0xRwES.js.map +1 -0
- package/dist/AdminDepositList-UEcyRZkA.cjs +1 -0
- package/dist/AdminDepositList-UEcyRZkA.cjs.map +1 -0
- package/dist/AdminUserDetail-BzEIdNJh.cjs +1 -0
- package/dist/AdminUserDetail-BzEIdNJh.cjs.map +1 -0
- package/dist/AdminUserDetail-DHFDzY8B.js +1195 -0
- package/dist/AdminUserDetail-DHFDzY8B.js.map +1 -0
- package/dist/AdminWithdrawalHistory-0yxtMh6q.cjs +1 -0
- package/dist/AdminWithdrawalHistory-0yxtMh6q.cjs.map +1 -0
- package/dist/AdminWithdrawalHistory-BGjfrIe3.js +904 -0
- package/dist/AdminWithdrawalHistory-BGjfrIe3.js.map +1 -0
- package/dist/AuthenticationSettings-5Vi7Ib_A.cjs +1 -0
- package/dist/AuthenticationSettings-5Vi7Ib_A.cjs.map +1 -0
- package/dist/AuthenticationSettings-BPAh1my6.cjs +1 -0
- package/dist/AuthenticationSettings-BPAh1my6.cjs.map +1 -0
- package/dist/AuthenticationSettings-CJg8CJY9.js +9 -0
- package/dist/AuthenticationSettings-CJg8CJY9.js.map +1 -0
- package/dist/AuthenticationSettings-CR_i6TTS.js +495 -0
- package/dist/AuthenticationSettings-CR_i6TTS.js.map +1 -0
- package/dist/AutosaveStatus-CYkC2aI_.cjs +1 -0
- package/dist/AutosaveStatus-CYkC2aI_.cjs.map +1 -0
- package/dist/AutosaveStatus-N4uNS6-2.js +1497 -0
- package/dist/AutosaveStatus-N4uNS6-2.js.map +1 -0
- package/dist/CreditSystemSettings-BnAOK_tT.cjs +1 -0
- package/dist/CreditSystemSettings-BnAOK_tT.cjs.map +1 -0
- package/dist/CreditSystemSettings-CIf_SfJq.js +210 -0
- package/dist/CreditSystemSettings-CIf_SfJq.js.map +1 -0
- package/dist/CreditSystemSettings-CePYGgev.js +9 -0
- package/dist/CreditSystemSettings-CePYGgev.js.map +1 -0
- package/dist/CreditSystemSettings-Ck5WIMp3.cjs +1 -0
- package/dist/CreditSystemSettings-Ck5WIMp3.cjs.map +1 -0
- package/dist/{DepositsSection-BH5K162Q.js → DepositsSection-DA89uR9A.js} +5 -5
- package/dist/{DepositsSection-BH5K162Q.js.map → DepositsSection-DA89uR9A.js.map} +1 -1
- package/dist/DepositsSection-i6XdhLNs.cjs +1 -0
- package/dist/{DepositsSection-DpRn0koq.cjs.map → DepositsSection-i6XdhLNs.cjs.map} +1 -1
- package/dist/EmailRegisterForm-BrDL3BZy.js +927 -0
- package/dist/EmailRegisterForm-BrDL3BZy.js.map +1 -0
- package/dist/EmailRegisterForm-CxktR-4J.cjs +1 -0
- package/dist/EmailRegisterForm-CxktR-4J.cjs.map +1 -0
- package/dist/EmailSettings-B8xwgd6_.cjs +1 -0
- package/dist/EmailSettings-B8xwgd6_.cjs.map +1 -0
- package/dist/{AuthenticationSettings-DlVILxY4.js → EmailSettings-Bna7Z53E.js} +3 -3
- package/dist/EmailSettings-Bna7Z53E.js.map +1 -0
- package/dist/EmailSettings-DZywTTRq.cjs +1 -0
- package/dist/EmailSettings-DZywTTRq.cjs.map +1 -0
- package/dist/EmailSettings-DbMDfVaM.js +17 -0
- package/dist/EmailSettings-DbMDfVaM.js.map +1 -0
- package/dist/{EmbeddedWalletSettings-Bff6raAT.js → EmbeddedWalletSettings-ANbhj3Lt.js} +3 -3
- package/dist/EmbeddedWalletSettings-ANbhj3Lt.js.map +1 -0
- package/dist/EmbeddedWalletSettings-BEztqO19.js +79 -0
- package/dist/EmbeddedWalletSettings-BEztqO19.js.map +1 -0
- package/dist/EmbeddedWalletSettings-D6M7pwgk.cjs +1 -0
- package/dist/EmbeddedWalletSettings-D6M7pwgk.cjs.map +1 -0
- package/dist/EmbeddedWalletSettings-DivEPn39.cjs +1 -0
- package/dist/EmbeddedWalletSettings-DivEPn39.cjs.map +1 -0
- package/dist/ErrorMessage-CHbYbVi2.cjs +1 -0
- package/dist/ErrorMessage-CHbYbVi2.cjs.map +1 -0
- package/dist/ErrorMessage-CcEK0pYO.js +64 -0
- package/dist/ErrorMessage-CcEK0pYO.js.map +1 -0
- package/dist/{GoogleLoginButton-BzHr545L.js → GoogleLoginButton-B3uRMJ_n.js} +4 -3
- package/dist/{GoogleLoginButton-BzHr545L.js.map → GoogleLoginButton-B3uRMJ_n.js.map} +1 -1
- package/dist/GoogleLoginButton-BydKswn4.cjs +1 -0
- package/dist/{GoogleLoginButton-DoAdOqb3.cjs.map → GoogleLoginButton-BydKswn4.cjs.map} +1 -1
- package/dist/LoadingSpinner-6vml-zwr.js +79 -0
- package/dist/LoadingSpinner-6vml-zwr.js.map +1 -0
- package/dist/LoadingSpinner-d6sSxgQN.cjs +1 -0
- package/dist/LoadingSpinner-d6sSxgQN.cjs.map +1 -0
- package/dist/PermissionsSection-BGaj_sI7.js +1026 -0
- package/dist/PermissionsSection-BGaj_sI7.js.map +1 -0
- package/dist/PermissionsSection-CKXXDfqi.cjs +1 -0
- package/dist/PermissionsSection-CKXXDfqi.cjs.map +1 -0
- package/dist/ServerSettings-B2RKhJtZ.js +84 -0
- package/dist/ServerSettings-B2RKhJtZ.js.map +1 -0
- package/dist/ServerSettings-BZXlm1BX.cjs +1 -0
- package/dist/ServerSettings-BZXlm1BX.cjs.map +1 -0
- package/dist/{ServerSettings-UIVR0R4l.js → ServerSettings-Bqm4-bt2.js} +3 -3
- package/dist/ServerSettings-Bqm4-bt2.js.map +1 -0
- package/dist/ServerSettings-DZUKo6By.cjs +1 -0
- package/dist/ServerSettings-DZUKo6By.cjs.map +1 -0
- package/dist/SettingsPageLayout-COSYLMu7.cjs +1 -0
- package/dist/SettingsPageLayout-COSYLMu7.cjs.map +1 -0
- package/dist/SettingsPageLayout-DpgNEkuu.js +50 -0
- package/dist/SettingsPageLayout-DpgNEkuu.js.map +1 -0
- package/dist/{SolanaLoginButton-C-CfZxAZ.js → SolanaLoginButton-C_u9OppS.js} +5 -4
- package/dist/{SolanaLoginButton-C-CfZxAZ.js.map → SolanaLoginButton-C_u9OppS.js.map} +1 -1
- package/dist/SolanaLoginButton-fAW7kRUu.cjs +1 -0
- package/dist/{SolanaLoginButton-CPzms0kf.cjs.map → SolanaLoginButton-fAW7kRUu.cjs.map} +1 -1
- package/dist/StatsBar-BX-hHtTq.js +66 -0
- package/dist/StatsBar-BX-hHtTq.js.map +1 -0
- package/dist/StatsBar-DTUZCwDD.cjs +1 -0
- package/dist/StatsBar-DTUZCwDD.cjs.map +1 -0
- package/dist/{TeamSection-DnJudC38.js → TeamSection-CvrCoa9D.js} +27 -26
- package/dist/TeamSection-CvrCoa9D.js.map +1 -0
- package/dist/TeamSection-DlUD5kp5.cjs +1 -0
- package/dist/TeamSection-DlUD5kp5.cjs.map +1 -0
- package/dist/UsersSection-C2U8Tb7V.cjs +1 -0
- package/dist/{UsersSection-Ce7xVKfp.cjs.map → UsersSection-C2U8Tb7V.cjs.map} +1 -1
- package/dist/{UsersSection-mOOjcUEv.js → UsersSection-Dbh9PTSA.js} +17 -15
- package/dist/{UsersSection-mOOjcUEv.js.map → UsersSection-Dbh9PTSA.js.map} +1 -1
- package/dist/WebhookSettings-BT5q6AZ8.js +17 -0
- package/dist/WebhookSettings-BT5q6AZ8.js.map +1 -0
- package/dist/WebhookSettings-BWl_wsvg.cjs +1 -0
- package/dist/WebhookSettings-BWl_wsvg.cjs.map +1 -0
- package/dist/WebhookSettings-DXNH5bal.cjs +1 -0
- package/dist/WebhookSettings-DXNH5bal.cjs.map +1 -0
- package/dist/{WebhookSettings-D0i0JhQD.js → WebhookSettings-bUg2u_p0.js} +4 -4
- package/dist/WebhookSettings-bUg2u_p0.js.map +1 -0
- package/dist/WithdrawalsSection-BL_LOUq8.cjs +1 -0
- package/dist/{WithdrawalsSection-igRQJfjj.cjs.map → WithdrawalsSection-BL_LOUq8.cjs.map} +1 -1
- package/dist/WithdrawalsSection-CN-lLnqX.js +20 -0
- package/dist/{WithdrawalsSection-Grebjjks.js.map → WithdrawalsSection-CN-lLnqX.js.map} +1 -1
- package/dist/admin-only.cjs +1 -0
- package/dist/admin-only.cjs.map +1 -0
- package/dist/{admin/types.d.ts → admin-only.d.ts} +228 -167
- package/dist/admin-only.js +8 -0
- package/dist/admin-only.js.map +1 -0
- package/dist/apiClient-B2JxVPlH.js +216 -0
- package/dist/apiClient-B2JxVPlH.js.map +1 -0
- package/dist/apiClient-CTTKhsYb.cjs +1 -0
- package/dist/apiClient-CTTKhsYb.cjs.map +1 -0
- package/dist/assets/argon2Worker-Bi5TuQvD.js.map +1 -1
- package/dist/email-only.cjs +1 -1
- package/dist/email-only.d.ts +634 -16
- package/dist/email-only.js +16 -13
- package/dist/email-only.js.map +1 -1
- package/dist/google-only.cjs +1 -1
- package/dist/google-only.d.ts +543 -13
- package/dist/google-only.js +11 -8
- package/dist/google-only.js.map +1 -1
- package/dist/index.cjs +2061 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5007 -144
- package/dist/index.js +13507 -116
- package/dist/index.js.map +1 -1
- package/dist/login-react.css +1 -1
- package/dist/plugin-5qRh-YhX.js +596 -0
- package/dist/plugin-5qRh-YhX.js.map +1 -0
- package/dist/plugin-BtYBW6JY.cjs +1 -0
- package/dist/plugin-BtYBW6JY.cjs.map +1 -0
- package/dist/sanitization-Bo_tn-L2.cjs +1 -0
- package/dist/sanitization-Bo_tn-L2.cjs.map +1 -0
- package/dist/sanitization-CQ-H1MSg.js +39 -0
- package/dist/sanitization-CQ-H1MSg.js.map +1 -0
- package/dist/shamir-AeLLfw0p.cjs +1 -0
- package/dist/shamir-AeLLfw0p.cjs.map +1 -0
- package/dist/{solanaKeypair-BlXol3nh.js → shamir-B0wConeK.js} +765 -757
- package/dist/shamir-B0wConeK.js.map +1 -0
- package/dist/silentWalletEnroll-B8pgdKZO.cjs +1 -0
- package/dist/silentWalletEnroll-B8pgdKZO.cjs.map +1 -0
- package/dist/silentWalletEnroll-DR2kPw7W.js +41 -0
- package/dist/silentWalletEnroll-DR2kPw7W.js.map +1 -0
- package/dist/solana-only.cjs +1 -1
- package/dist/solana-only.d.ts +594 -13
- package/dist/solana-only.js +12 -9
- package/dist/solana-only.js.map +1 -1
- package/dist/style.d.ts +1 -0
- package/dist/useAdminDeposits-BDY5KJ0-.js +151 -0
- package/dist/useAdminDeposits-BDY5KJ0-.js.map +1 -0
- package/dist/useAdminDeposits-Dvx3_UUE.cjs +1 -0
- package/dist/useAdminDeposits-Dvx3_UUE.cjs.map +1 -0
- package/dist/{ErrorMessage-DU2VBb85.js → useAuth-Bge6KaWN.js} +954 -1226
- package/dist/useAuth-Bge6KaWN.js.map +1 -0
- package/dist/useAuth-DhIDTLRd.cjs +1 -0
- package/dist/useAuth-DhIDTLRd.cjs.map +1 -0
- package/dist/useOrgs-Be3KH4ib.js +215 -0
- package/dist/useOrgs-Be3KH4ib.js.map +1 -0
- package/dist/useOrgs-CVbacmaQ.cjs +1 -0
- package/dist/useOrgs-CVbacmaQ.cjs.map +1 -0
- package/dist/useSystemSettings-D9Cr7ZTl.cjs +1 -0
- package/dist/useSystemSettings-D9Cr7ZTl.cjs.map +1 -0
- package/dist/useSystemSettings-DN5YqfNq.js +97 -0
- package/dist/useSystemSettings-DN5YqfNq.js.map +1 -0
- package/dist/{validation-BebL7hMF.js → validation-B8kMV3BL.js} +1 -1
- package/dist/{validation-BebL7hMF.js.map → validation-B8kMV3BL.js.map} +1 -1
- package/dist/{validation-BeXIfuHB.cjs → validation-BuGQrA-K.cjs} +1 -1
- package/dist/{validation-BeXIfuHB.cjs.map → validation-BuGQrA-K.cjs.map} +1 -1
- package/package.json +11 -1
- package/dist/AuthenticationSettings-D8oXHkM6.cjs +0 -1
- package/dist/AuthenticationSettings-D8oXHkM6.cjs.map +0 -1
- package/dist/AuthenticationSettings-DlVILxY4.js.map +0 -1
- package/dist/CreditSystemSettings-Bv6u9lTs.js +0 -9
- package/dist/CreditSystemSettings-Bv6u9lTs.js.map +0 -1
- package/dist/CreditSystemSettings-D45pwDZM.cjs +0 -1
- package/dist/CreditSystemSettings-D45pwDZM.cjs.map +0 -1
- package/dist/DepositsSection-DpRn0koq.cjs +0 -1
- package/dist/EmailRegisterForm-C0PStlj5.js +0 -961
- package/dist/EmailRegisterForm-C0PStlj5.js.map +0 -1
- package/dist/EmailRegisterForm-DaPLGws2.cjs +0 -1
- package/dist/EmailRegisterForm-DaPLGws2.cjs.map +0 -1
- package/dist/EmailSettings-DdjoMO_c.cjs +0 -1
- package/dist/EmailSettings-DdjoMO_c.cjs.map +0 -1
- package/dist/EmailSettings-khmiWqhx.js +0 -9
- package/dist/EmailSettings-khmiWqhx.js.map +0 -1
- package/dist/EmbeddedWalletSettings-Bff6raAT.js.map +0 -1
- package/dist/EmbeddedWalletSettings-C5qkJtAr.cjs +0 -1
- package/dist/EmbeddedWalletSettings-C5qkJtAr.cjs.map +0 -1
- package/dist/ErrorMessage-BXHiYibN.cjs +0 -1
- package/dist/ErrorMessage-BXHiYibN.cjs.map +0 -1
- package/dist/ErrorMessage-DU2VBb85.js.map +0 -1
- package/dist/GoogleLoginButton-DoAdOqb3.cjs +0 -1
- package/dist/ServerSettings-BpZhkxh6.cjs +0 -1
- package/dist/ServerSettings-BpZhkxh6.cjs.map +0 -1
- package/dist/ServerSettings-UIVR0R4l.js.map +0 -1
- package/dist/SolanaLoginButton-CPzms0kf.cjs +0 -1
- package/dist/TeamSection-BoGqQhD5.cjs +0 -1
- package/dist/TeamSection-BoGqQhD5.cjs.map +0 -1
- package/dist/TeamSection-DnJudC38.js.map +0 -1
- package/dist/UsersSection-Ce7xVKfp.cjs +0 -1
- package/dist/WebhookSettings-Cx-BxzNQ.cjs +0 -1
- package/dist/WebhookSettings-Cx-BxzNQ.cjs.map +0 -1
- package/dist/WebhookSettings-D0i0JhQD.js.map +0 -1
- package/dist/WithdrawalsSection-Grebjjks.js +0 -20
- package/dist/WithdrawalsSection-igRQJfjj.cjs +0 -1
- package/dist/admin/AdminShell.d.ts +0 -38
- package/dist/admin/icons.d.ts +0 -2
- package/dist/admin/index.d.ts +0 -10
- package/dist/admin/plugin.d.ts +0 -3
- package/dist/admin/sections/AuthenticationSettings.d.ts +0 -3
- package/dist/admin/sections/CreditSystemSettings.d.ts +0 -3
- package/dist/admin/sections/DepositsSection.d.ts +0 -3
- package/dist/admin/sections/EmailSettings.d.ts +0 -3
- package/dist/admin/sections/EmbeddedWalletSettings.d.ts +0 -3
- package/dist/admin/sections/FeatureSettings.d.ts +0 -3
- package/dist/admin/sections/InvitesSection.d.ts +0 -3
- package/dist/admin/sections/MembersSection.d.ts +0 -3
- package/dist/admin/sections/ServerSettings.d.ts +0 -3
- package/dist/admin/sections/SettingsSections.d.ts +0 -7
- package/dist/admin/sections/TeamSection.d.ts +0 -3
- package/dist/admin/sections/UsersSection.d.ts +0 -3
- package/dist/admin/sections/WebhookSettings.d.ts +0 -3
- package/dist/admin/sections/WithdrawalsSection.d.ts +0 -3
- package/dist/components/LoginButton.d.ts +0 -23
- package/dist/components/LoginForm.d.ts +0 -9
- package/dist/components/LoginModal.d.ts +0 -9
- package/dist/components/admin/AdminUserDetail.d.ts +0 -23
- package/dist/components/admin/AdminUserList.d.ts +0 -21
- package/dist/components/admin/CedrosAdminDashboard.d.ts +0 -52
- package/dist/components/admin/PermissionsSection.d.ts +0 -7
- package/dist/components/admin/ProfileDropdown.d.ts +0 -34
- package/dist/components/admin/SetupWizard.d.ts +0 -30
- package/dist/components/admin/StatsBar.d.ts +0 -17
- package/dist/components/admin/SystemSettings.d.ts +0 -19
- package/dist/components/admin/settings/AuthenticationSettings.d.ts +0 -4
- package/dist/components/admin/settings/AutosaveStatus.d.ts +0 -6
- package/dist/components/admin/settings/CreditSystemSettings.d.ts +0 -6
- package/dist/components/admin/settings/EmailSettings.d.ts +0 -4
- package/dist/components/admin/settings/EmbeddedWalletSettings.d.ts +0 -4
- package/dist/components/admin/settings/FeatureSettings.d.ts +0 -4
- package/dist/components/admin/settings/MessagingSettings.d.ts +0 -4
- package/dist/components/admin/settings/SecuritySettings.d.ts +0 -4
- package/dist/components/admin/settings/ServerSettings.d.ts +0 -4
- package/dist/components/admin/settings/SettingsPageLayout.d.ts +0 -16
- package/dist/components/admin/settings/SsoProvidersSettings.d.ts +0 -4
- package/dist/components/admin/settings/WebhookSettings.d.ts +0 -4
- package/dist/components/admin/settings/index.d.ts +0 -31
- package/dist/components/admin/settings/settingsInputs.d.ts +0 -79
- package/dist/components/admin/settings/settingsMetadata.d.ts +0 -18
- package/dist/components/apple/AppleLoginButton.d.ts +0 -29
- package/dist/components/deposit/CreditBalance.d.ts +0 -19
- package/dist/components/deposit/DepositFlow.d.ts +0 -118
- package/dist/components/deposit/FeeConfigDisplay.d.ts +0 -15
- package/dist/components/deposit/History.d.ts +0 -21
- package/dist/components/deposit/TieredAmountSlider.d.ts +0 -19
- package/dist/components/deposit/TokenSelector.d.ts +0 -23
- package/dist/components/deposit/admin/AdminDepositList.d.ts +0 -21
- package/dist/components/deposit/admin/AdminDepositStats.d.ts +0 -15
- package/dist/components/deposit/admin/AdminPrivacyPeriodDeposits.d.ts +0 -19
- package/dist/components/deposit/admin/AdminWithdrawalHistory.d.ts +0 -19
- package/dist/components/deposit/admin/AdminWithdrawalQueue.d.ts +0 -23
- package/dist/components/deposit/admin/AdminWithdrawalStats.d.ts +0 -10
- package/dist/components/deposit/admin/FeatureDisabledMessage.d.ts +0 -15
- package/dist/components/deposit/admin/PrivacySystemStatus.d.ts +0 -15
- package/dist/components/deposit/admin/featureDisabled.d.ts +0 -14
- package/dist/components/deposit/admin/index.d.ts +0 -22
- package/dist/components/deposit/index.d.ts +0 -12
- package/dist/components/deposit/tierUtils.d.ts +0 -8
- package/dist/components/deposit/tokens.d.ts +0 -19
- package/dist/components/email/EmailLoginForm.d.ts +0 -11
- package/dist/components/email/EmailRegisterForm.d.ts +0 -14
- package/dist/components/email/ForgotPasswordForm.d.ts +0 -17
- package/dist/components/email/PasswordInput.d.ts +0 -14
- package/dist/components/email/ResetPasswordForm.d.ts +0 -22
- package/dist/components/google/GoogleLoginButton.d.ts +0 -12
- package/dist/components/invites/InviteForm.d.ts +0 -38
- package/dist/components/invites/InviteList.d.ts +0 -40
- package/dist/components/members/MemberList.d.ts +0 -47
- package/dist/components/org/CreateOrgForm.d.ts +0 -7
- package/dist/components/org/OrgAvatar.d.ts +0 -7
- package/dist/components/org/OrgListView.d.ts +0 -9
- package/dist/components/org/OrgSelector.d.ts +0 -52
- package/dist/components/org/OrgSwitcher.d.ts +0 -47
- package/dist/components/org/icons.d.ts +0 -8
- package/dist/components/profile/UserProfileSettings.d.ts +0 -35
- package/dist/components/profile/index.d.ts +0 -2
- package/dist/components/sessions/SessionList.d.ts +0 -33
- package/dist/components/shared/ErrorBoundary.d.ts +0 -38
- package/dist/components/shared/ErrorMessage.d.ts +0 -14
- package/dist/components/shared/LoadingSpinner.d.ts +0 -16
- package/dist/components/solana/SolanaLoginButton.d.ts +0 -49
- package/dist/components/templates/FullPageLayout.d.ts +0 -40
- package/dist/components/templates/SplitPageLayout.d.ts +0 -44
- package/dist/components/templates/index.d.ts +0 -4
- package/dist/components/totp/OtpInput.d.ts +0 -32
- package/dist/components/totp/QrCode.d.ts +0 -21
- package/dist/components/totp/TotpSettings.d.ts +0 -38
- package/dist/components/totp/TotpSetup.d.ts +0 -23
- package/dist/components/totp/TotpVerify.d.ts +0 -25
- package/dist/components/totp/index.d.ts +0 -10
- package/dist/components/wallet/CapabilityWarning.d.ts +0 -11
- package/dist/components/wallet/PasskeyPrompt.d.ts +0 -34
- package/dist/components/wallet/RecoveryPhraseDisplay.d.ts +0 -18
- package/dist/components/wallet/RecoveryPhraseInput.d.ts +0 -21
- package/dist/components/wallet/WalletAddressRow.d.ts +0 -10
- package/dist/components/wallet/WalletEnrollment.d.ts +0 -15
- package/dist/components/wallet/WalletManager.d.ts +0 -9
- package/dist/components/wallet/WalletRecovery.d.ts +0 -19
- package/dist/components/wallet/WalletStatus.d.ts +0 -28
- package/dist/components/wallet/WalletUnlock.d.ts +0 -23
- package/dist/components/wallet/index.d.ts +0 -23
- package/dist/components/webauthn/PasskeyLoginButton.d.ts +0 -8
- package/dist/context/CedrosLoginContext.d.ts +0 -24
- package/dist/context/CedrosLoginProvider.d.ts +0 -17
- package/dist/context/EmbeddedWalletExposure.d.ts +0 -19
- package/dist/context/useCedrosLogin.d.ts +0 -12
- package/dist/crypto/aesGcm.d.ts +0 -89
- package/dist/crypto/argon2.d.ts +0 -65
- package/dist/crypto/argon2Worker.d.ts +0 -1
- package/dist/crypto/argon2WorkerClient.d.ts +0 -28
- package/dist/crypto/bip39.d.ts +0 -106
- package/dist/crypto/capabilities.d.ts +0 -35
- package/dist/crypto/entropy.d.ts +0 -56
- package/dist/crypto/hkdf.d.ts +0 -38
- package/dist/crypto/index.d.ts +0 -30
- package/dist/crypto/secureWipe.d.ts +0 -71
- package/dist/crypto/shamir.d.ts +0 -52
- package/dist/crypto/solanaKeypair.d.ts +0 -63
- package/dist/crypto/types.d.ts +0 -134
- package/dist/crypto/webauthnPrf.d.ts +0 -108
- package/dist/hooks/useAdminDeposits.d.ts +0 -10
- package/dist/hooks/useAdminUsers.d.ts +0 -28
- package/dist/hooks/useAppleAuth.d.ts +0 -52
- package/dist/hooks/useAuth.d.ts +0 -34
- package/dist/hooks/useAuthSession.d.ts +0 -19
- package/dist/hooks/useAuthorize.d.ts +0 -62
- package/dist/hooks/useCredits.d.ts +0 -11
- package/dist/hooks/useDashboardPermissions.d.ts +0 -45
- package/dist/hooks/useDeposit.d.ts +0 -16
- package/dist/hooks/useEmailAuth.d.ts +0 -60
- package/dist/hooks/useGoogleAuth.d.ts +0 -67
- package/dist/hooks/useInstantLink.d.ts +0 -42
- package/dist/hooks/useInvites.d.ts +0 -57
- package/dist/hooks/useMembers.d.ts +0 -52
- package/dist/hooks/useOrgs.d.ts +0 -49
- package/dist/hooks/usePasswordReset.d.ts +0 -32
- package/dist/hooks/usePendingRecovery.d.ts +0 -34
- package/dist/hooks/useProfile.d.ts +0 -35
- package/dist/hooks/useRateLimiter.d.ts +0 -58
- package/dist/hooks/useServerFeatures.d.ts +0 -55
- package/dist/hooks/useSessions.d.ts +0 -45
- package/dist/hooks/useSettingsAutosave.d.ts +0 -29
- package/dist/hooks/useSetup.d.ts +0 -25
- package/dist/hooks/useSolanaAuth.d.ts +0 -30
- package/dist/hooks/useSsoProviders.d.ts +0 -52
- package/dist/hooks/useSystemSettings.d.ts +0 -47
- package/dist/hooks/useThemeManager.d.ts +0 -11
- package/dist/hooks/useTotp.d.ts +0 -52
- package/dist/hooks/useTotpVerify.d.ts +0 -38
- package/dist/hooks/useTransactionSigning.d.ts +0 -45
- package/dist/hooks/useWallet.d.ts +0 -10
- package/dist/hooks/useWalletDiscovery.d.ts +0 -24
- package/dist/hooks/useWalletEnrollment.d.ts +0 -9
- package/dist/hooks/useWalletMaterial.d.ts +0 -10
- package/dist/hooks/useWalletRecovery.d.ts +0 -9
- package/dist/hooks/useWalletSigning.d.ts +0 -31
- package/dist/hooks/useWebAuthn.d.ts +0 -25
- package/dist/i18n/I18nProvider.d.ts +0 -16
- package/dist/i18n/context.d.ts +0 -6
- package/dist/i18n/index.d.ts +0 -5
- package/dist/i18n/translations.d.ts +0 -66
- package/dist/i18n/useI18n.d.ts +0 -9
- package/dist/index-BI9Bj9DF.js +0 -19650
- package/dist/index-BI9Bj9DF.js.map +0 -1
- package/dist/index-CDRTfEJz.cjs +0 -2061
- package/dist/index-CDRTfEJz.cjs.map +0 -1
- package/dist/silentWalletEnroll-C3JRAD9_.js +0 -42
- package/dist/silentWalletEnroll-C3JRAD9_.js.map +0 -1
- package/dist/silentWalletEnroll-DRYQAQfg.cjs +0 -1
- package/dist/silentWalletEnroll-DRYQAQfg.cjs.map +0 -1
- package/dist/solanaKeypair-BlXol3nh.js.map +0 -1
- package/dist/solanaKeypair-C-lIR1JY.cjs +0 -1
- package/dist/solanaKeypair-C-lIR1JY.cjs.map +0 -1
- package/dist/types/adminUser.d.ts +0 -168
- package/dist/types/auth.d.ts +0 -122
- package/dist/types/config.d.ts +0 -266
- package/dist/types/deposit.d.ts +0 -490
- package/dist/types/index.d.ts +0 -13
- package/dist/types/invite.d.ts +0 -71
- package/dist/types/member.d.ts +0 -45
- package/dist/types/org.d.ts +0 -133
- package/dist/types/profile.d.ts +0 -56
- package/dist/types/session.d.ts +0 -28
- package/dist/types/setup.d.ts +0 -47
- package/dist/types/systemSettings.d.ts +0 -85
- package/dist/types/totp.d.ts +0 -52
- package/dist/types/wallet.d.ts +0 -309
- package/dist/utils/adminUserApi.d.ts +0 -60
- package/dist/utils/apiClient.d.ts +0 -78
- package/dist/utils/cryptoShim.d.ts +0 -17
- package/dist/utils/csrf.d.ts +0 -1
- package/dist/utils/deviceDetection.d.ts +0 -17
- package/dist/utils/embeddedWallet.d.ts +0 -75
- package/dist/utils/inviteApi.d.ts +0 -31
- package/dist/utils/memberApi.d.ts +0 -23
- package/dist/utils/orgApi.d.ts +0 -36
- package/dist/utils/profileApi.d.ts +0 -26
- package/dist/utils/sanitization.d.ts +0 -66
- package/dist/utils/sessionApi.d.ts +0 -16
- package/dist/utils/setupApi.d.ts +0 -21
- package/dist/utils/silentWalletEnroll.d.ts +0 -41
- package/dist/utils/systemSettingsApi.d.ts +0 -18
- package/dist/utils/tabSync.d.ts +0 -46
- package/dist/utils/tokenManager.d.ts +0 -107
- package/dist/utils/unlockCredential.d.ts +0 -5
- package/dist/utils/validation.d.ts +0 -48
- package/dist/utils/walletDetection.d.ts +0 -23
- package/dist/utils/webauthnJson.d.ts +0 -21
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Input sanitization utilities for security
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Sanitizes an image URL to prevent XSS and other attacks.
|
|
6
|
-
*
|
|
7
|
-
* ## Security Properties
|
|
8
|
-
*
|
|
9
|
-
* - Only allows HTTPS URLs (prevents protocol-based attacks)
|
|
10
|
-
* - Blocks javascript:, data:, vbscript:, file: protocols
|
|
11
|
-
* - Returns undefined for invalid URLs
|
|
12
|
-
*
|
|
13
|
-
* ## Limitations (S-20/SEC-08)
|
|
14
|
-
*
|
|
15
|
-
* This function validates the URL protocol but does NOT validate the domain.
|
|
16
|
-
* Any HTTPS URL will pass validation, including URLs from untrusted domains.
|
|
17
|
-
* This is intentional - domain allowlisting is application-specific and should
|
|
18
|
-
* be implemented at the consumer level (see example below).
|
|
19
|
-
*
|
|
20
|
-
* If your application requires domain validation (e.g., only allowing images
|
|
21
|
-
* from trusted CDNs), implement additional validation:
|
|
22
|
-
*
|
|
23
|
-
* @example Domain allowlisting (application-level)
|
|
24
|
-
* ```ts
|
|
25
|
-
* const ALLOWED_DOMAINS = ['cdn.example.com', 'images.trusted.org'];
|
|
26
|
-
*
|
|
27
|
-
* function isAllowedImageUrl(url: string): boolean {
|
|
28
|
-
* const sanitized = sanitizeImageUrl(url);
|
|
29
|
-
* if (!sanitized) return false;
|
|
30
|
-
*
|
|
31
|
-
* try {
|
|
32
|
-
* const hostname = new URL(sanitized).hostname;
|
|
33
|
-
* return ALLOWED_DOMAINS.some(d => hostname === d || hostname.endsWith('.' + d));
|
|
34
|
-
* } catch {
|
|
35
|
-
* return false;
|
|
36
|
-
* }
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @param url - The URL to sanitize
|
|
41
|
-
* @returns The sanitized URL or undefined if invalid
|
|
42
|
-
*
|
|
43
|
-
* @example Basic usage
|
|
44
|
-
* ```ts
|
|
45
|
-
* sanitizeImageUrl('https://example.com/avatar.png') // 'https://example.com/avatar.png'
|
|
46
|
-
* sanitizeImageUrl('javascript:alert(1)') // undefined
|
|
47
|
-
* sanitizeImageUrl('data:image/svg+xml,...') // undefined
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export declare function sanitizeImageUrl(url: string | undefined | null): string | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Sanitizes an external link URL for use in href attributes.
|
|
53
|
-
*
|
|
54
|
-
* Security goals:
|
|
55
|
-
* - Block dangerous protocols (javascript:, data:, vbscript:, file:)
|
|
56
|
-
* - Only allow http/https absolute URLs
|
|
57
|
-
*/
|
|
58
|
-
export declare function sanitizeExternalUrl(url: string | undefined | null): string | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Sanitizes user-provided text to prevent XSS in text content.
|
|
61
|
-
* Escapes HTML special characters.
|
|
62
|
-
*
|
|
63
|
-
* @param text - The text to sanitize
|
|
64
|
-
* @returns The sanitized text
|
|
65
|
-
*/
|
|
66
|
-
export declare function sanitizeText(text: string | undefined | null): string;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Session, RevokeAllSessionsResponse } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* API client for session management operations
|
|
4
|
-
*/
|
|
5
|
-
export declare class SessionApiClient {
|
|
6
|
-
private client;
|
|
7
|
-
constructor(baseUrl: string, timeoutMs?: number, retryAttempts?: number, getAccessToken?: () => string | null);
|
|
8
|
-
/**
|
|
9
|
-
* List all active sessions for the current user
|
|
10
|
-
*/
|
|
11
|
-
listSessions(): Promise<Session[]>;
|
|
12
|
-
/**
|
|
13
|
-
* Revoke all sessions (logout from all devices)
|
|
14
|
-
*/
|
|
15
|
-
revokeAllSessions(): Promise<RevokeAllSessionsResponse>;
|
|
16
|
-
}
|
package/dist/utils/setupApi.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { SetupStatusResponse, CreateFirstAdminRequest, CreateFirstAdminResponse } from '../types/setup';
|
|
2
|
-
/**
|
|
3
|
-
* API client for setup operations (unauthenticated)
|
|
4
|
-
*
|
|
5
|
-
* These endpoints are used during first-run configuration before
|
|
6
|
-
* any admin user exists.
|
|
7
|
-
*/
|
|
8
|
-
export declare class SetupApiClient {
|
|
9
|
-
private client;
|
|
10
|
-
constructor(baseUrl: string, timeoutMs?: number, retryAttempts?: number);
|
|
11
|
-
/**
|
|
12
|
-
* Check if initial setup is required
|
|
13
|
-
* Returns whether the system needs initial setup (no admin exists)
|
|
14
|
-
*/
|
|
15
|
-
getStatus(): Promise<SetupStatusResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* Create the first admin user
|
|
18
|
-
* Only works when no admin users exist
|
|
19
|
-
*/
|
|
20
|
-
createFirstAdmin(request: CreateFirstAdminRequest): Promise<CreateFirstAdminResponse>;
|
|
21
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Silent wallet enrollment utility
|
|
3
|
-
*
|
|
4
|
-
* Performs wallet enrollment in the background without UI interaction.
|
|
5
|
-
* Used for auto-enrolling wallets during registration.
|
|
6
|
-
*
|
|
7
|
-
* Security: Uses the same Shamir Secret Sharing scheme as manual enrollment.
|
|
8
|
-
* The recovery phrase is not shown - user can retrieve it later if needed.
|
|
9
|
-
*/
|
|
10
|
-
export interface SilentEnrollOptions {
|
|
11
|
-
/** User's password for Share A encryption */
|
|
12
|
-
password: string;
|
|
13
|
-
/** Server base URL */
|
|
14
|
-
serverUrl: string;
|
|
15
|
-
/** Access token for authentication (optional if using cookies) */
|
|
16
|
-
accessToken?: string;
|
|
17
|
-
/** Request timeout in ms */
|
|
18
|
-
timeoutMs?: number;
|
|
19
|
-
}
|
|
20
|
-
export interface SilentEnrollResult {
|
|
21
|
-
success: boolean;
|
|
22
|
-
solanaPubkey?: string;
|
|
23
|
-
error?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Silently enroll a wallet for a user
|
|
27
|
-
*
|
|
28
|
-
* This function performs the complete wallet enrollment process:
|
|
29
|
-
* 1. Generate 32-byte seed
|
|
30
|
-
* 2. Split into 3 Shamir shares (threshold 2)
|
|
31
|
-
* 3. Encrypt Share A with password-derived key (Argon2id)
|
|
32
|
-
* 4. Derive Solana public key from seed
|
|
33
|
-
* 5. Upload encrypted Share A + plaintext Share B to server
|
|
34
|
-
*
|
|
35
|
-
* The recovery phrase (Share C) is not returned - user can recover it
|
|
36
|
-
* later through the wallet recovery flow if needed.
|
|
37
|
-
*
|
|
38
|
-
* @param options - Enrollment options
|
|
39
|
-
* @returns Result with success status and Solana public key
|
|
40
|
-
*/
|
|
41
|
-
export declare function silentWalletEnroll(options: SilentEnrollOptions): Promise<SilentEnrollResult>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ListSystemSettingsResponse, UpdateSettingRequest, UpdateSystemSettingsResponse } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* API client for system settings operations (admin only)
|
|
4
|
-
*/
|
|
5
|
-
export declare class SystemSettingsApiClient {
|
|
6
|
-
private client;
|
|
7
|
-
constructor(baseUrl: string, timeoutMs?: number, retryAttempts?: number, getAccessToken?: () => string | null);
|
|
8
|
-
/**
|
|
9
|
-
* Get all system settings grouped by category
|
|
10
|
-
* Requires system admin privileges
|
|
11
|
-
*/
|
|
12
|
-
getSettings(): Promise<ListSystemSettingsResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* Update one or more system settings
|
|
15
|
-
* Requires system admin privileges
|
|
16
|
-
*/
|
|
17
|
-
updateSettings(settings: UpdateSettingRequest[]): Promise<UpdateSystemSettingsResponse>;
|
|
18
|
-
}
|
package/dist/utils/tabSync.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { AuthUser } from '../types';
|
|
2
|
-
type AuthSyncEvent = {
|
|
3
|
-
type: 'login';
|
|
4
|
-
user: AuthUser;
|
|
5
|
-
} | {
|
|
6
|
-
type: 'logout';
|
|
7
|
-
} | {
|
|
8
|
-
type: 'refresh';
|
|
9
|
-
};
|
|
10
|
-
type AuthSyncCallback = (event: AuthSyncEvent) => void;
|
|
11
|
-
/**
|
|
12
|
-
* Cross-tab synchronization for auth state using BroadcastChannel
|
|
13
|
-
* UI-6 FIX: Use addEventListener/removeEventListener for proper cleanup.
|
|
14
|
-
*/
|
|
15
|
-
export declare class TabSync {
|
|
16
|
-
private channel;
|
|
17
|
-
private callback;
|
|
18
|
-
private boundHandler;
|
|
19
|
-
constructor();
|
|
20
|
-
/**
|
|
21
|
-
* Handle incoming sync messages
|
|
22
|
-
*/
|
|
23
|
-
private handleMessage;
|
|
24
|
-
/**
|
|
25
|
-
* Set the callback for sync events from other tabs
|
|
26
|
-
*/
|
|
27
|
-
setCallback(callback: AuthSyncCallback): void;
|
|
28
|
-
/**
|
|
29
|
-
* Broadcast login event to other tabs
|
|
30
|
-
*/
|
|
31
|
-
broadcastLogin(user: AuthUser): void;
|
|
32
|
-
/**
|
|
33
|
-
* Broadcast logout event to other tabs
|
|
34
|
-
*/
|
|
35
|
-
broadcastLogout(): void;
|
|
36
|
-
/**
|
|
37
|
-
* Broadcast token refresh event to other tabs
|
|
38
|
-
*/
|
|
39
|
-
broadcastRefresh(): void;
|
|
40
|
-
/**
|
|
41
|
-
* Close the channel and clean up references
|
|
42
|
-
* UI-6: Use removeEventListener for proper cleanup
|
|
43
|
-
*/
|
|
44
|
-
close(): void;
|
|
45
|
-
}
|
|
46
|
-
export {};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { TokenPair, SessionStorage } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Token manager for storing and auto-refreshing tokens
|
|
4
|
-
*
|
|
5
|
-
* ## Security Warning: localStorage Storage
|
|
6
|
-
*
|
|
7
|
-
* When using `localStorage` or `sessionStorage`, tokens are stored in the browser
|
|
8
|
-
* and are **vulnerable to XSS attacks**. Any JavaScript running
|
|
9
|
-
* on your page (including third-party scripts, browser extensions, or malicious
|
|
10
|
-
* code injected via XSS) can read these tokens.
|
|
11
|
-
*
|
|
12
|
-
* **Recommendations:**
|
|
13
|
-
* - Use `cookie` storage with httpOnly cookies (tokens stored server-side)
|
|
14
|
-
* - If localStorage is required, implement strong Content Security Policy (CSP)
|
|
15
|
-
* - Sanitize all user input and output
|
|
16
|
-
* - Regularly audit third-party dependencies
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* // Recommended: cookie storage (tokens in httpOnly cookies)
|
|
20
|
-
* const manager = new TokenManager('cookie');
|
|
21
|
-
*
|
|
22
|
-
* // Use with caution: localStorage (XSS vulnerable)
|
|
23
|
-
* const manager = new TokenManager('localStorage');
|
|
24
|
-
*/
|
|
25
|
-
export interface TokenManagerOptions {
|
|
26
|
-
/**
|
|
27
|
-
* Allow `localStorage`/`sessionStorage` token persistence.
|
|
28
|
-
*
|
|
29
|
-
* @security This is intentionally opt-in because these storage modes are vulnerable
|
|
30
|
-
* to XSS token theft.
|
|
31
|
-
*/
|
|
32
|
-
allowWebStorage?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare class TokenManager {
|
|
35
|
-
private storage;
|
|
36
|
-
private requestedStorage;
|
|
37
|
-
private storageKey;
|
|
38
|
-
private tokens;
|
|
39
|
-
private expiresAt;
|
|
40
|
-
private refreshTimer;
|
|
41
|
-
private onRefreshNeeded;
|
|
42
|
-
private onSessionExpired;
|
|
43
|
-
private onRefreshError;
|
|
44
|
-
private isDestroyed;
|
|
45
|
-
private allowWebStorage;
|
|
46
|
-
constructor(storage?: SessionStorage, persistKey?: string, options?: TokenManagerOptions);
|
|
47
|
-
/**
|
|
48
|
-
* S-18/UI-XSS: Warn about localStorage XSS vulnerability in all environments.
|
|
49
|
-
* Security warnings should not be suppressed in production - operators need
|
|
50
|
-
* to be aware of the security implications of their storage choices.
|
|
51
|
-
*/
|
|
52
|
-
private warnIfLocalStorage;
|
|
53
|
-
/**
|
|
54
|
-
* Set the callback for when tokens need to be refreshed
|
|
55
|
-
*/
|
|
56
|
-
setRefreshCallback(callback: () => Promise<void>): void;
|
|
57
|
-
/**
|
|
58
|
-
* Set the callback for when session expires
|
|
59
|
-
*/
|
|
60
|
-
setSessionExpiredCallback(callback: () => void): void;
|
|
61
|
-
/**
|
|
62
|
-
* Set the callback for when token refresh fails
|
|
63
|
-
* This allows the UI to show an error message to the user
|
|
64
|
-
*/
|
|
65
|
-
setRefreshErrorCallback(callback: (error: Error) => void): void;
|
|
66
|
-
/**
|
|
67
|
-
* Store tokens and schedule auto-refresh
|
|
68
|
-
*/
|
|
69
|
-
setTokens(tokens: TokenPair): void;
|
|
70
|
-
/**
|
|
71
|
-
* Get the current access token
|
|
72
|
-
* UI-4 FIX: Store token in local variable before expiry check to eliminate TOCTOU race.
|
|
73
|
-
* UI-TOK-01 FIX: Check isDestroyed to prevent access after manager is cleaned up.
|
|
74
|
-
*/
|
|
75
|
-
getAccessToken(): string | null;
|
|
76
|
-
/**
|
|
77
|
-
* Get the current refresh token
|
|
78
|
-
*/
|
|
79
|
-
getRefreshToken(): string | null;
|
|
80
|
-
/**
|
|
81
|
-
* Clear stored tokens
|
|
82
|
-
*/
|
|
83
|
-
clear(): void;
|
|
84
|
-
/**
|
|
85
|
-
* Check if tokens are stored
|
|
86
|
-
*/
|
|
87
|
-
hasTokens(): boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Destroy the token manager and clean up resources.
|
|
90
|
-
* Call this when unmounting components or cleaning up to prevent memory leaks.
|
|
91
|
-
* P-02: Also sets isDestroyed flag to prevent timer callbacks from executing.
|
|
92
|
-
*/
|
|
93
|
-
destroy(): void;
|
|
94
|
-
/**
|
|
95
|
-
* Get time until token expiry in ms
|
|
96
|
-
*/
|
|
97
|
-
getTimeUntilExpiry(): number;
|
|
98
|
-
private scheduleRefresh;
|
|
99
|
-
private cancelRefresh;
|
|
100
|
-
private loadFromStorage;
|
|
101
|
-
/**
|
|
102
|
-
* Validate that parsed data matches expected StoredTokenData structure
|
|
103
|
-
*/
|
|
104
|
-
private isValidStoredTokenData;
|
|
105
|
-
private saveToStorage;
|
|
106
|
-
private clearStorage;
|
|
107
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { PasswordValidation } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Password validation rules:
|
|
4
|
-
* - Minimum 10 characters
|
|
5
|
-
* - At least 1 uppercase letter (A-Z)
|
|
6
|
-
* - At least 1 lowercase letter (a-z)
|
|
7
|
-
* - At least 1 number (0-9)
|
|
8
|
-
* - At least 1 special character (@$!%*?&#^())
|
|
9
|
-
*
|
|
10
|
-
* Note: All checks are performed regardless of early failures to prevent
|
|
11
|
-
* timing attacks that could reveal which requirements are met.
|
|
12
|
-
*/
|
|
13
|
-
export declare function validatePassword(password: string): PasswordValidation;
|
|
14
|
-
/**
|
|
15
|
-
* Validate email format with robust validation.
|
|
16
|
-
*
|
|
17
|
-
* Validates:
|
|
18
|
-
* - Proper format with @ symbol
|
|
19
|
-
* - Valid characters in local and domain parts
|
|
20
|
-
* - Domain must have at least one dot (TLD required)
|
|
21
|
-
* - Maximum length per RFC 5321
|
|
22
|
-
*
|
|
23
|
-
* UI-13: Note on case normalization - This function validates format only,
|
|
24
|
-
* it does NOT normalize case. Per RFC 5321, local-part is technically
|
|
25
|
-
* case-sensitive (though most providers ignore case). Callers should
|
|
26
|
-
* normalize emails (e.g., toLowerCase) before API calls and storage.
|
|
27
|
-
*
|
|
28
|
-
* @param email - The email address to validate
|
|
29
|
-
* @returns true if the email format is valid
|
|
30
|
-
*/
|
|
31
|
-
export declare function validateEmail(email: string): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Validate Solana public key format.
|
|
34
|
-
*
|
|
35
|
-
* A valid Solana public key:
|
|
36
|
-
* - Is 43-44 characters long (base58 encoding of 32 bytes)
|
|
37
|
-
* - Contains only valid base58 characters
|
|
38
|
-
*
|
|
39
|
-
* @param publicKey - The public key string to validate
|
|
40
|
-
* @returns true if the public key format is valid
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* validateSolanaPublicKey('DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263') // true
|
|
45
|
-
* validateSolanaPublicKey('invalid') // false
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
export declare function validateSolanaPublicKey(publicKey: string): boolean;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wallet detection utilities for Solana browser wallets
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Detects if any Solana wallet extensions are installed in the browser.
|
|
6
|
-
* Checks for common wallet adapters like Phantom, Solflare, Backpack, etc.
|
|
7
|
-
*
|
|
8
|
-
* @returns true if at least one Solana wallet is detected
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* if (detectSolanaWallets()) {
|
|
13
|
-
* // Show Solana login button
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export declare function detectSolanaWallets(): boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Returns list of detected Solana wallet names (for debugging/display)
|
|
20
|
-
*
|
|
21
|
-
* @returns Array of detected wallet provider names
|
|
22
|
-
*/
|
|
23
|
-
export declare function getDetectedWalletNames(): string[];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type Base64UrlString = string;
|
|
2
|
-
export declare function base64UrlToArrayBuffer(b64url: Base64UrlString): ArrayBuffer;
|
|
3
|
-
export declare function arrayBufferToBase64Url(buffer: ArrayBuffer): Base64UrlString;
|
|
4
|
-
export type ServerCreationOptions = {
|
|
5
|
-
publicKey: Record<string, unknown>;
|
|
6
|
-
};
|
|
7
|
-
export declare function parseCreationOptionsFromServer(options: ServerCreationOptions): PublicKeyCredentialCreationOptions;
|
|
8
|
-
export type ServerRequestOptions = {
|
|
9
|
-
publicKey: Record<string, unknown>;
|
|
10
|
-
};
|
|
11
|
-
export declare function parseRequestOptionsFromServer(options: ServerRequestOptions): PublicKeyCredentialRequestOptions;
|
|
12
|
-
export type PublicKeyCredentialJSON = {
|
|
13
|
-
id: string;
|
|
14
|
-
rawId: string;
|
|
15
|
-
type: string;
|
|
16
|
-
authenticatorAttachment?: string;
|
|
17
|
-
clientExtensionResults?: AuthenticationExtensionsClientOutputs;
|
|
18
|
-
response: Record<string, unknown>;
|
|
19
|
-
};
|
|
20
|
-
export declare function credentialToServerJson(cred: PublicKeyCredential): PublicKeyCredentialJSON;
|
|
21
|
-
export {};
|