@cedros/login-react 0.0.12 → 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-0Hqr0yDm.js → DepositsSection-DA89uR9A.js} +5 -5
- package/dist/{DepositsSection-0Hqr0yDm.js.map → DepositsSection-DA89uR9A.js.map} +1 -1
- package/dist/DepositsSection-i6XdhLNs.cjs +1 -0
- package/dist/{DepositsSection-CGKCzM-H.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-BSoIQ58T.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-iVf_3pn3.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-C_osdbiX.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-Bjt72upx.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-DU86czWP.cjs.map → UsersSection-C2U8Tb7V.cjs.map} +1 -1
- package/dist/{UsersSection-hAcyfSZk.js → UsersSection-Dbh9PTSA.js} +17 -15
- package/dist/{UsersSection-hAcyfSZk.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-IyhyTFes.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-iZJBuZ7O.cjs.map → WithdrawalsSection-BL_LOUq8.cjs.map} +1 -1
- package/dist/WithdrawalsSection-CN-lLnqX.js +20 -0
- package/dist/{WithdrawalsSection-B1415d-G.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-BSoIQ58T.js.map +0 -1
- package/dist/AuthenticationSettings-CNmWEPFV.cjs +0 -1
- package/dist/AuthenticationSettings-CNmWEPFV.cjs.map +0 -1
- package/dist/CreditSystemSettings-BYxoFwaP.js +0 -9
- package/dist/CreditSystemSettings-BYxoFwaP.js.map +0 -1
- package/dist/CreditSystemSettings-D2fLorNx.cjs +0 -1
- package/dist/CreditSystemSettings-D2fLorNx.cjs.map +0 -1
- package/dist/DepositsSection-CGKCzM-H.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-CiLDwzNb.cjs +0 -1
- package/dist/EmailSettings-CiLDwzNb.cjs.map +0 -1
- package/dist/EmailSettings-DTjpO65J.js +0 -9
- package/dist/EmailSettings-DTjpO65J.js.map +0 -1
- package/dist/EmbeddedWalletSettings-CX7sYiPy.cjs +0 -1
- package/dist/EmbeddedWalletSettings-CX7sYiPy.cjs.map +0 -1
- package/dist/EmbeddedWalletSettings-iVf_3pn3.js.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-C_osdbiX.js.map +0 -1
- package/dist/ServerSettings-HqSb_VDj.cjs +0 -1
- package/dist/ServerSettings-HqSb_VDj.cjs.map +0 -1
- package/dist/SolanaLoginButton-CPzms0kf.cjs +0 -1
- package/dist/TeamSection-Bjt72upx.js.map +0 -1
- package/dist/TeamSection-DZeWHkLd.cjs +0 -1
- package/dist/TeamSection-DZeWHkLd.cjs.map +0 -1
- package/dist/UsersSection-DU86czWP.cjs +0 -1
- package/dist/WebhookSettings-Br9bakAL.cjs +0 -1
- package/dist/WebhookSettings-Br9bakAL.cjs.map +0 -1
- package/dist/WebhookSettings-IyhyTFes.js.map +0 -1
- package/dist/WithdrawalsSection-B1415d-G.js +0 -20
- package/dist/WithdrawalsSection-iZJBuZ7O.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-ZS9AwAal.cjs +0 -2061
- package/dist/index-ZS9AwAal.cjs.map +0 -1
- package/dist/index-dgg5tlO7.js +0 -19650
- package/dist/index-dgg5tlO7.js.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
package/dist/hooks/useOrgs.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { OrgWithMembership, Organization, CreateOrgRequest, UpdateOrgRequest, Permission, OrgRole, AuthError } from '../types';
|
|
2
|
-
export interface UseOrgsReturn {
|
|
3
|
-
/** All organizations the user belongs to */
|
|
4
|
-
orgs: OrgWithMembership[];
|
|
5
|
-
/** Currently active organization */
|
|
6
|
-
activeOrg: OrgWithMembership | null;
|
|
7
|
-
/** User's permissions in the active org */
|
|
8
|
-
permissions: Permission[];
|
|
9
|
-
/** User's role in the active org */
|
|
10
|
-
role: OrgRole | null;
|
|
11
|
-
/** Loading state */
|
|
12
|
-
isLoading: boolean;
|
|
13
|
-
/** Error state */
|
|
14
|
-
error: AuthError | null;
|
|
15
|
-
/** Fetch/refresh organizations list */
|
|
16
|
-
fetchOrgs: () => Promise<void>;
|
|
17
|
-
/** Switch to a different organization */
|
|
18
|
-
switchOrg: (orgId: string) => Promise<void>;
|
|
19
|
-
/** Create a new organization */
|
|
20
|
-
createOrg: (data: CreateOrgRequest) => Promise<Organization>;
|
|
21
|
-
/** Update an organization */
|
|
22
|
-
updateOrg: (orgId: string, data: UpdateOrgRequest) => Promise<Organization>;
|
|
23
|
-
/** Delete an organization */
|
|
24
|
-
deleteOrg: (orgId: string) => Promise<void>;
|
|
25
|
-
/** Check if user has a specific permission */
|
|
26
|
-
hasPermission: (permission: Permission) => boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Hook for managing organizations, memberships, and permissions.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```tsx
|
|
33
|
-
* function OrgSelector() {
|
|
34
|
-
* const { orgs, activeOrg, switchOrg, hasPermission } = useOrgs();
|
|
35
|
-
*
|
|
36
|
-
* return (
|
|
37
|
-
* <select
|
|
38
|
-
* value={activeOrg?.id}
|
|
39
|
-
* onChange={(e) => switchOrg(e.target.value)}
|
|
40
|
-
* >
|
|
41
|
-
* {orgs.map(org => (
|
|
42
|
-
* <option key={org.id} value={org.id}>{org.name}</option>
|
|
43
|
-
* ))}
|
|
44
|
-
* </select>
|
|
45
|
-
* );
|
|
46
|
-
* }
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
export declare function useOrgs(): UseOrgsReturn;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { AuthError } from '../types';
|
|
2
|
-
export interface UsePasswordResetReturn {
|
|
3
|
-
forgotPassword: (email: string) => Promise<void>;
|
|
4
|
-
resetPassword: (token: string, newPassword: string) => Promise<void>;
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
isSuccess: boolean;
|
|
7
|
-
error: AuthError | null;
|
|
8
|
-
clearError: () => void;
|
|
9
|
-
reset: () => void;
|
|
10
|
-
/** Number of remaining attempts before rate limiting */
|
|
11
|
-
remainingAttempts: number;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Hook for password reset functionality.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* function ForgotPasswordForm() {
|
|
19
|
-
* const { forgotPassword, isLoading, isSuccess, error } = usePasswordReset();
|
|
20
|
-
*
|
|
21
|
-
* const handleSubmit = async (e) => {
|
|
22
|
-
* e.preventDefault();
|
|
23
|
-
* await forgotPassword(email);
|
|
24
|
-
* };
|
|
25
|
-
*
|
|
26
|
-
* if (isSuccess) {
|
|
27
|
-
* return <p>Check your email for reset instructions</p>;
|
|
28
|
-
* }
|
|
29
|
-
* }
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export declare function usePasswordReset(): UsePasswordResetReturn;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook for pending wallet recovery management
|
|
3
|
-
*
|
|
4
|
-
* After wallet enrollment, if recovery mode is enabled, the server stores
|
|
5
|
-
* recovery data temporarily. This hook fetches that data and allows the
|
|
6
|
-
* user to acknowledge receipt (after which the data is deleted from server).
|
|
7
|
-
*/
|
|
8
|
-
export interface UsePendingRecoveryReturn {
|
|
9
|
-
/** Whether there is pending recovery data */
|
|
10
|
-
hasPendingRecovery: boolean;
|
|
11
|
-
/** Recovery type: 'share_c' or 'full_seed' */
|
|
12
|
-
recoveryType: string | null;
|
|
13
|
-
/** Recovery phrase (base64-encoded seed) */
|
|
14
|
-
recoveryPhrase: string | null;
|
|
15
|
-
/** When the recovery data expires */
|
|
16
|
-
expiresAt: Date | null;
|
|
17
|
-
/** Fetch pending recovery data from server */
|
|
18
|
-
fetchPendingRecovery: () => Promise<void>;
|
|
19
|
-
/** Acknowledge that user has saved the recovery phrase (deletes from server) */
|
|
20
|
-
acknowledgeRecovery: () => Promise<void>;
|
|
21
|
-
/** Whether request is in progress */
|
|
22
|
-
isLoading: boolean;
|
|
23
|
-
/** Error from last request */
|
|
24
|
-
error: string | null;
|
|
25
|
-
/** Clear error */
|
|
26
|
-
clearError: () => void;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Hook for managing pending wallet recovery data
|
|
30
|
-
*
|
|
31
|
-
* Use this after wallet enrollment to show the user their recovery phrase
|
|
32
|
-
* and allow them to acknowledge receipt.
|
|
33
|
-
*/
|
|
34
|
-
export declare function usePendingRecovery(): UsePendingRecoveryReturn;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { UseProfileReturn } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Hook for managing user profile operations.
|
|
4
|
-
*
|
|
5
|
-
* Provides methods for updating profile information and changing password.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* function ProfileSettings() {
|
|
10
|
-
* const { isLoading, error, changePassword, clearError } = useProfile();
|
|
11
|
-
*
|
|
12
|
-
* const handlePasswordChange = async () => {
|
|
13
|
-
* try {
|
|
14
|
-
* await changePassword({
|
|
15
|
-
* currentPassword: 'oldpass',
|
|
16
|
-
* newPassword: 'newpass123',
|
|
17
|
-
* });
|
|
18
|
-
* // Success - other sessions have been revoked
|
|
19
|
-
* } catch (err) {
|
|
20
|
-
* // Error is available via the error property
|
|
21
|
-
* }
|
|
22
|
-
* };
|
|
23
|
-
*
|
|
24
|
-
* return (
|
|
25
|
-
* <div>
|
|
26
|
-
* {error && <p className="error">{error.message}</p>}
|
|
27
|
-
* <button onClick={handlePasswordChange} disabled={isLoading}>
|
|
28
|
-
* Change Password
|
|
29
|
-
* </button>
|
|
30
|
-
* </div>
|
|
31
|
-
* );
|
|
32
|
-
* }
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export declare function useProfile(): UseProfileReturn;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export interface UseRateLimiterOptions {
|
|
2
|
-
/** Maximum number of attempts allowed within the window */
|
|
3
|
-
maxAttempts?: number;
|
|
4
|
-
/** Time window in milliseconds */
|
|
5
|
-
windowMs?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface UseRateLimiterReturn {
|
|
8
|
-
/**
|
|
9
|
-
* Check if an action is allowed. Throws an error if rate limited.
|
|
10
|
-
* Call this before performing the action.
|
|
11
|
-
*/
|
|
12
|
-
checkLimit: () => void;
|
|
13
|
-
/**
|
|
14
|
-
* Check if an action is allowed without throwing.
|
|
15
|
-
* Returns true if allowed, false if rate limited.
|
|
16
|
-
*/
|
|
17
|
-
isAllowed: () => boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Get remaining attempts in current window
|
|
20
|
-
*/
|
|
21
|
-
getRemainingAttempts: () => number;
|
|
22
|
-
/**
|
|
23
|
-
* Get time until rate limit resets (in ms)
|
|
24
|
-
*/
|
|
25
|
-
getTimeUntilReset: () => number;
|
|
26
|
-
/**
|
|
27
|
-
* Reset the rate limiter (e.g., after successful action)
|
|
28
|
-
*/
|
|
29
|
-
reset: () => void;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Rate limiting hook to prevent excessive API calls from the client.
|
|
33
|
-
*
|
|
34
|
-
* @param options - Rate limiter configuration
|
|
35
|
-
* @returns Rate limiter functions
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```tsx
|
|
39
|
-
* function LoginForm() {
|
|
40
|
-
* const { checkLimit, getRemainingAttempts } = useRateLimiter({
|
|
41
|
-
* maxAttempts: 5,
|
|
42
|
-
* windowMs: 60000, // 1 minute
|
|
43
|
-
* });
|
|
44
|
-
*
|
|
45
|
-
* const handleLogin = async () => {
|
|
46
|
-
* try {
|
|
47
|
-
* checkLimit(); // Throws if rate limited
|
|
48
|
-
* await login(email, password);
|
|
49
|
-
* } catch (err) {
|
|
50
|
-
* if (err.message.includes('Too many attempts')) {
|
|
51
|
-
* // Show rate limit message
|
|
52
|
-
* }
|
|
53
|
-
* }
|
|
54
|
-
* };
|
|
55
|
-
* }
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
export declare function useRateLimiter(options?: UseRateLimiterOptions): UseRateLimiterReturn;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Server-side feature flags stored in system settings.
|
|
3
|
-
*
|
|
4
|
-
* These control which features are available in the application.
|
|
5
|
-
* Unlike client-side FeatureFlags (passed to CedrosLoginProvider),
|
|
6
|
-
* these can be toggled at runtime via the admin dashboard.
|
|
7
|
-
*/
|
|
8
|
-
export interface ServerFeatures {
|
|
9
|
-
/** Enable multi-tenant organizations. Controls: Team, Invites sections */
|
|
10
|
-
organizations: boolean;
|
|
11
|
-
/** Enable Enterprise SSO for organizations */
|
|
12
|
-
sso: boolean;
|
|
13
|
-
/** Enable two-factor authentication (TOTP) */
|
|
14
|
-
mfa: boolean;
|
|
15
|
-
/** Enable embedded wallet for transaction signing */
|
|
16
|
-
walletSigning: boolean;
|
|
17
|
-
/** Enable deposits and credits system. Controls: Deposits, Withdrawals, Credit System sections */
|
|
18
|
-
credits: boolean;
|
|
19
|
-
/** Enable Cedros Pay integration. Controls: Products, Transactions, Refunds, etc. */
|
|
20
|
-
cedrosPay: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface UseServerFeaturesReturn {
|
|
23
|
-
/** Current feature flag states */
|
|
24
|
-
features: ServerFeatures;
|
|
25
|
-
/** Whether settings are still loading */
|
|
26
|
-
isLoading: boolean;
|
|
27
|
-
/** Error if settings failed to load */
|
|
28
|
-
error: Error | null;
|
|
29
|
-
/** Refresh feature flags from server */
|
|
30
|
-
refetch: () => Promise<void>;
|
|
31
|
-
/** Check if a specific feature is enabled */
|
|
32
|
-
isEnabled: (feature: keyof ServerFeatures) => boolean;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Hook for reading server-side feature flags from system settings.
|
|
36
|
-
*
|
|
37
|
-
* Use this to conditionally show/hide features based on admin settings.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```tsx
|
|
41
|
-
* function AdminDashboard() {
|
|
42
|
-
* const { features, isLoading, isEnabled } = useServerFeatures();
|
|
43
|
-
*
|
|
44
|
-
* if (isLoading) return <LoadingSpinner />;
|
|
45
|
-
*
|
|
46
|
-
* return (
|
|
47
|
-
* <nav>
|
|
48
|
-
* {isEnabled('organizations') && <NavItem>Team</NavItem>}
|
|
49
|
-
* {isEnabled('credits') && <NavItem>Deposits</NavItem>}
|
|
50
|
-
* </nav>
|
|
51
|
-
* );
|
|
52
|
-
* }
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
export declare function useServerFeatures(): UseServerFeaturesReturn;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Session, AuthError, RevokeAllSessionsResponse } from '../types';
|
|
2
|
-
export interface UseSessionsReturn {
|
|
3
|
-
/** List of active sessions */
|
|
4
|
-
sessions: Session[];
|
|
5
|
-
/** Loading state */
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
/** Error state */
|
|
8
|
-
error: AuthError | null;
|
|
9
|
-
/** Fetch/refresh sessions list */
|
|
10
|
-
fetchSessions: () => Promise<void>;
|
|
11
|
-
/** Revoke all sessions (logout everywhere) */
|
|
12
|
-
revokeAllSessions: () => Promise<RevokeAllSessionsResponse>;
|
|
13
|
-
/** Number of other active sessions (excluding current) */
|
|
14
|
-
otherSessionCount: number;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Hook for managing user sessions across devices.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* function SessionManager() {
|
|
22
|
-
* const { sessions, isLoading, revokeAllSessions, otherSessionCount } = useSessions();
|
|
23
|
-
*
|
|
24
|
-
* return (
|
|
25
|
-
* <div>
|
|
26
|
-
* <h3>Active Sessions ({sessions.length})</h3>
|
|
27
|
-
* <ul>
|
|
28
|
-
* {sessions.map(session => (
|
|
29
|
-
* <li key={session.id}>
|
|
30
|
-
* {session.userAgent}
|
|
31
|
-
* {session.isCurrent && ' (current)'}
|
|
32
|
-
* </li>
|
|
33
|
-
* ))}
|
|
34
|
-
* </ul>
|
|
35
|
-
* {otherSessionCount > 0 && (
|
|
36
|
-
* <button onClick={revokeAllSessions}>
|
|
37
|
-
* Sign out of {otherSessionCount} other device(s)
|
|
38
|
-
* </button>
|
|
39
|
-
* )}
|
|
40
|
-
* </div>
|
|
41
|
-
* );
|
|
42
|
-
* }
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
export declare function useSessions(): UseSessionsReturn;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/** Autosave status */
|
|
2
|
-
export type AutosaveStatus = 'idle' | 'pending' | 'saving' | 'saved' | 'error';
|
|
3
|
-
export interface UseSettingsAutosaveReturn {
|
|
4
|
-
/** Settings grouped by category */
|
|
5
|
-
settings: Record<string, import('../types').SystemSetting[]>;
|
|
6
|
-
/** Current edits (key -> value) */
|
|
7
|
-
edits: Record<string, string>;
|
|
8
|
-
/** Whether initial load is in progress */
|
|
9
|
-
isLoading: boolean;
|
|
10
|
-
/** Current autosave status */
|
|
11
|
-
autosaveStatus: AutosaveStatus;
|
|
12
|
-
/** Error message if autosave failed */
|
|
13
|
-
autosaveError: string | null;
|
|
14
|
-
/** Loading error */
|
|
15
|
-
error: Error | null;
|
|
16
|
-
/** Fetch settings from server */
|
|
17
|
-
fetchSettings: () => Promise<void>;
|
|
18
|
-
/** Handle a setting change (triggers autosave) */
|
|
19
|
-
handleChange: (key: string, value: string) => void;
|
|
20
|
-
/** Get effective value (edit or original) */
|
|
21
|
-
getEffectiveValue: (key: string) => string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Hook for managing system settings with autosave.
|
|
25
|
-
*
|
|
26
|
-
* Automatically saves changes after a debounce period.
|
|
27
|
-
* Provides status feedback for the autosave process.
|
|
28
|
-
*/
|
|
29
|
-
export declare function useSettingsAutosave(): UseSettingsAutosaveReturn;
|
package/dist/hooks/useSetup.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { UseSetupReturn } from '../types/setup';
|
|
2
|
-
/**
|
|
3
|
-
* Hook for first-run setup operations.
|
|
4
|
-
*
|
|
5
|
-
* Checks if setup is needed (no admin exists) and provides
|
|
6
|
-
* ability to create the first admin user.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* function SetupCheck() {
|
|
11
|
-
* const { status, isLoading, checkStatus, createAdmin } = useSetup();
|
|
12
|
-
*
|
|
13
|
-
* useEffect(() => {
|
|
14
|
-
* checkStatus();
|
|
15
|
-
* }, [checkStatus]);
|
|
16
|
-
*
|
|
17
|
-
* if (isLoading) return <Loading />;
|
|
18
|
-
* if (status?.needsSetup) {
|
|
19
|
-
* return <SetupWizard onCreateAdmin={createAdmin} />;
|
|
20
|
-
* }
|
|
21
|
-
* return <Dashboard />;
|
|
22
|
-
* }
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export declare function useSetup(): UseSetupReturn;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { AuthResponse, AuthError, ChallengeResponse } from '../types';
|
|
2
|
-
export interface UseSolanaAuthReturn {
|
|
3
|
-
requestChallenge: (publicKey: string) => Promise<ChallengeResponse>;
|
|
4
|
-
signIn: (publicKey: string, signature: string, message: string) => Promise<AuthResponse>;
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
error: AuthError | null;
|
|
7
|
-
clearError: () => void;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Hook for Solana wallet authentication.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* function SolanaLogin() {
|
|
15
|
-
* const { requestChallenge, signIn, isLoading } = useSolanaAuth();
|
|
16
|
-
* const { publicKey, signMessage } = useWallet();
|
|
17
|
-
*
|
|
18
|
-
* const handleLogin = async () => {
|
|
19
|
-
* const challenge = await requestChallenge(publicKey.toBase58());
|
|
20
|
-
* const signature = await signMessage(new TextEncoder().encode(challenge.message));
|
|
21
|
-
* const result = await signIn(
|
|
22
|
-
* publicKey.toBase58(),
|
|
23
|
-
* Buffer.from(signature).toString('base64'),
|
|
24
|
-
* challenge.message
|
|
25
|
-
* );
|
|
26
|
-
* };
|
|
27
|
-
* }
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export declare function useSolanaAuth(): UseSolanaAuthReturn;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export interface SsoProvider {
|
|
2
|
-
id: string;
|
|
3
|
-
orgId: string;
|
|
4
|
-
name: string;
|
|
5
|
-
issuerUrl: string;
|
|
6
|
-
clientId: string;
|
|
7
|
-
scopes: string[];
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
allowRegistration: boolean;
|
|
10
|
-
emailDomain: string | null;
|
|
11
|
-
createdAt: string;
|
|
12
|
-
updatedAt: string;
|
|
13
|
-
}
|
|
14
|
-
export interface CreateSsoProviderInput {
|
|
15
|
-
orgId: string;
|
|
16
|
-
name: string;
|
|
17
|
-
issuerUrl: string;
|
|
18
|
-
clientId: string;
|
|
19
|
-
clientSecret: string;
|
|
20
|
-
scopes?: string[];
|
|
21
|
-
enabled?: boolean;
|
|
22
|
-
allowRegistration?: boolean;
|
|
23
|
-
emailDomain?: string | null;
|
|
24
|
-
}
|
|
25
|
-
export interface UpdateSsoProviderInput {
|
|
26
|
-
name?: string;
|
|
27
|
-
issuerUrl?: string;
|
|
28
|
-
clientId?: string;
|
|
29
|
-
clientSecret?: string;
|
|
30
|
-
scopes?: string[];
|
|
31
|
-
enabled?: boolean;
|
|
32
|
-
allowRegistration?: boolean;
|
|
33
|
-
emailDomain?: string | null;
|
|
34
|
-
}
|
|
35
|
-
interface ListResponse {
|
|
36
|
-
providers: SsoProvider[];
|
|
37
|
-
total: number;
|
|
38
|
-
limit: number;
|
|
39
|
-
offset: number;
|
|
40
|
-
}
|
|
41
|
-
export declare function useSsoProviders(): {
|
|
42
|
-
providers: SsoProvider[];
|
|
43
|
-
total: number;
|
|
44
|
-
isLoading: boolean;
|
|
45
|
-
error: Error | null;
|
|
46
|
-
fetchProviders: (orgId?: string, limit?: number, offset?: number) => Promise<ListResponse>;
|
|
47
|
-
createProvider: (input: CreateSsoProviderInput) => Promise<SsoProvider>;
|
|
48
|
-
updateProvider: (id: string, input: UpdateSsoProviderInput) => Promise<SsoProvider>;
|
|
49
|
-
deleteProvider: (id: string) => Promise<void>;
|
|
50
|
-
toggleProvider: (id: string, enabled: boolean) => Promise<SsoProvider>;
|
|
51
|
-
};
|
|
52
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { UseSystemSettingsReturn } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Hook for managing system settings (admin only).
|
|
4
|
-
*
|
|
5
|
-
* Provides CRUD operations for system-wide configuration settings
|
|
6
|
-
* stored in the database. Only accessible to system administrators.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* function SystemSettingsPanel() {
|
|
11
|
-
* const {
|
|
12
|
-
* settings,
|
|
13
|
-
* isLoading,
|
|
14
|
-
* error,
|
|
15
|
-
* fetchSettings,
|
|
16
|
-
* updateSettings,
|
|
17
|
-
* getValue,
|
|
18
|
-
* } = useSystemSettings();
|
|
19
|
-
*
|
|
20
|
-
* useEffect(() => {
|
|
21
|
-
* fetchSettings();
|
|
22
|
-
* }, [fetchSettings]);
|
|
23
|
-
*
|
|
24
|
-
* const handleSave = async () => {
|
|
25
|
-
* await updateSettings([
|
|
26
|
-
* { key: 'privacy_period_secs', value: '1209600' },
|
|
27
|
-
* ]);
|
|
28
|
-
* };
|
|
29
|
-
*
|
|
30
|
-
* return (
|
|
31
|
-
* <div>
|
|
32
|
-
* {Object.entries(settings).map(([category, items]) => (
|
|
33
|
-
* <section key={category}>
|
|
34
|
-
* <h3>{category}</h3>
|
|
35
|
-
* {items.map(item => (
|
|
36
|
-
* <div key={item.key}>
|
|
37
|
-
* {item.key}: {item.value}
|
|
38
|
-
* </div>
|
|
39
|
-
* ))}
|
|
40
|
-
* </section>
|
|
41
|
-
* ))}
|
|
42
|
-
* </div>
|
|
43
|
-
* );
|
|
44
|
-
* }
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
export declare function useSystemSettings(): UseSystemSettingsReturn;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ThemeMode, ThemeOverrides } from '../types';
|
|
2
|
-
export interface UseThemeManagerOptions {
|
|
3
|
-
theme?: ThemeMode;
|
|
4
|
-
themeOverrides?: ThemeOverrides;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Hook that manages theme application to the document root.
|
|
8
|
-
* Handles light/dark/auto themes and custom CSS variable overrides.
|
|
9
|
-
* Properly cleans up styles on unmount to prevent memory leaks.
|
|
10
|
-
*/
|
|
11
|
-
export declare function useThemeManager({ theme, themeOverrides }: UseThemeManagerOptions): void;
|
package/dist/hooks/useTotp.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { AuthError, TotpStatus, TotpSetupResponse, TotpBackupCodesResponse, TotpSetupState } from '../types';
|
|
2
|
-
export interface UseTotpReturn {
|
|
3
|
-
/** Current TOTP status for the user */
|
|
4
|
-
status: TotpStatus | null;
|
|
5
|
-
/** Setup state for the enrollment flow */
|
|
6
|
-
setupState: TotpSetupState;
|
|
7
|
-
/** Setup data (secret, QR URL, backup codes) */
|
|
8
|
-
setupData: TotpSetupResponse | null;
|
|
9
|
-
/** Whether a request is in progress */
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
/** Error from the last request */
|
|
12
|
-
error: AuthError | null;
|
|
13
|
-
/** Fetch current TOTP status */
|
|
14
|
-
getStatus: () => Promise<TotpStatus>;
|
|
15
|
-
/** Start TOTP setup (generates secret and backup codes) */
|
|
16
|
-
beginSetup: () => Promise<TotpSetupResponse>;
|
|
17
|
-
/** Verify code and enable TOTP */
|
|
18
|
-
enableTotp: (code: string) => Promise<void>;
|
|
19
|
-
/** Disable TOTP (requires password confirmation) */
|
|
20
|
-
disableTotp: (password: string) => Promise<void>;
|
|
21
|
-
/** Regenerate recovery codes (requires current authenticator code) */
|
|
22
|
-
regenerateBackupCodes: (code: string) => Promise<TotpBackupCodesResponse>;
|
|
23
|
-
/** Clear error state */
|
|
24
|
-
clearError: () => void;
|
|
25
|
-
/** Reset to initial state */
|
|
26
|
-
reset: () => void;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Hook for TOTP (Time-based One-Time Password) two-factor authentication.
|
|
30
|
-
*
|
|
31
|
-
* Provides methods for:
|
|
32
|
-
* - Setting up TOTP with authenticator apps
|
|
33
|
-
* - Enabling/disabling TOTP for the user's account
|
|
34
|
-
* - Managing backup codes
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```tsx
|
|
38
|
-
* function TotpSettings() {
|
|
39
|
-
* const { status, beginSetup, enableTotp, setupData } = useTotp();
|
|
40
|
-
*
|
|
41
|
-
* if (status?.enabled) {
|
|
42
|
-
* return <p>2FA is enabled</p>;
|
|
43
|
-
* }
|
|
44
|
-
*
|
|
45
|
-
* const handleSetup = async () => {
|
|
46
|
-
* const data = await beginSetup();
|
|
47
|
-
* // Show QR code from data.otpauthUri
|
|
48
|
-
* };
|
|
49
|
-
* }
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
export declare function useTotp(): UseTotpReturn;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { AuthError, AuthResponse, TotpVerifyState } from '../types';
|
|
2
|
-
export interface UseTotpVerifyReturn {
|
|
3
|
-
/** Verification state */
|
|
4
|
-
state: TotpVerifyState;
|
|
5
|
-
/** Whether verification is in progress */
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
/** Error from the last request */
|
|
8
|
-
error: AuthError | null;
|
|
9
|
-
/** Verify MFA code during login */
|
|
10
|
-
verifyTotp: (mfaToken: string, code: string) => Promise<AuthResponse>;
|
|
11
|
-
/** Clear error state */
|
|
12
|
-
clearError: () => void;
|
|
13
|
-
/** Reset to initial state */
|
|
14
|
-
reset: () => void;
|
|
15
|
-
/** Number of remaining verification attempts before rate limiting */
|
|
16
|
-
remainingAttempts: number;
|
|
17
|
-
/** Time in ms until rate limit resets (0 if not rate limited) */
|
|
18
|
-
timeUntilReset: number;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Hook for verifying TOTP codes during the login flow.
|
|
22
|
-
*
|
|
23
|
-
* Used when a user has TOTP enabled and needs to provide
|
|
24
|
-
* their 6-digit code after password authentication.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* function TotpVerifyStep({ mfaToken }) {
|
|
29
|
-
* const { verifyTotp, isLoading, error } = useTotpVerify();
|
|
30
|
-
*
|
|
31
|
-
* const handleVerify = async (code: string) => {
|
|
32
|
-
* const response = await verifyTotp(mfaToken, code);
|
|
33
|
-
* // User is now authenticated
|
|
34
|
-
* };
|
|
35
|
-
* }
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export declare function useTotpVerify(): UseTotpVerifyReturn;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { UnlockCredential } from '../types/wallet';
|
|
2
|
-
/** Signing method in use */
|
|
3
|
-
export type SigningMethod = 'external' | 'sss' | 'none';
|
|
4
|
-
/** Options for external wallet signing */
|
|
5
|
-
export interface ExternalSignOptions {
|
|
6
|
-
/**
|
|
7
|
-
* Callback to sign transaction with external wallet adapter.
|
|
8
|
-
* Only called when user has external Solana wallet.
|
|
9
|
-
*
|
|
10
|
-
* @param transaction - Transaction bytes to sign
|
|
11
|
-
* @returns Signature bytes (64 bytes Ed25519)
|
|
12
|
-
*/
|
|
13
|
-
onExternalSign?: (transaction: Uint8Array) => Promise<Uint8Array>;
|
|
14
|
-
}
|
|
15
|
-
/** Return type for useTransactionSigning hook */
|
|
16
|
-
export interface UseTransactionSigningReturn {
|
|
17
|
-
/** Sign a transaction (routes to appropriate method) */
|
|
18
|
-
signTransaction: (transaction: Uint8Array, credential?: UnlockCredential) => Promise<Uint8Array>;
|
|
19
|
-
/** Which signing method is available */
|
|
20
|
-
signingMethod: SigningMethod;
|
|
21
|
-
/** Whether user can sign transactions */
|
|
22
|
-
canSign: boolean;
|
|
23
|
-
/** Whether signing is in progress */
|
|
24
|
-
isSigning: boolean;
|
|
25
|
-
/** Solana public key (from either wallet type) */
|
|
26
|
-
publicKey: string | null;
|
|
27
|
-
/** Whether user has external Solana wallet */
|
|
28
|
-
hasExternalWallet: boolean;
|
|
29
|
-
/** Whether SSS wallet is enrolled */
|
|
30
|
-
hasSssWallet: boolean;
|
|
31
|
-
/** Whether SSS wallet is unlocked (for session-based signing) */
|
|
32
|
-
isSssUnlocked: boolean;
|
|
33
|
-
/** Error from last signing attempt */
|
|
34
|
-
error: string | null;
|
|
35
|
-
/** Clear error */
|
|
36
|
-
clearError: () => void;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Unified transaction signing hook
|
|
40
|
-
*
|
|
41
|
-
* Automatically routes signing requests to the appropriate method:
|
|
42
|
-
* - External wallet: Uses provided callback
|
|
43
|
-
* - SSS wallet: Uses server-side signing
|
|
44
|
-
*/
|
|
45
|
-
export declare function useTransactionSigning(options?: ExternalSignOptions): UseTransactionSigningReturn;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { WalletContextValue } from '../types/wallet';
|
|
2
|
-
/**
|
|
3
|
-
* Main wallet hook
|
|
4
|
-
*
|
|
5
|
-
* Provides wallet status, capabilities, and refresh functionality.
|
|
6
|
-
* Distinguishes between external Solana wallet and SSS embedded wallet.
|
|
7
|
-
*
|
|
8
|
-
* Returns safe defaults when called outside CedrosLoginProvider.
|
|
9
|
-
*/
|
|
10
|
-
export declare function useWallet(): WalletContextValue;
|