@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,16 +0,0 @@
|
|
|
1
|
-
export interface SettingsPageLayoutProps {
|
|
2
|
-
/** Page title */
|
|
3
|
-
title: string;
|
|
4
|
-
/** Page description */
|
|
5
|
-
description: string;
|
|
6
|
-
/** Categories to display on this page */
|
|
7
|
-
categories: string[];
|
|
8
|
-
/** Additional CSS class */
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Shared layout component for settings pages.
|
|
13
|
-
* Handles loading and displaying settings for specified categories.
|
|
14
|
-
* Changes are automatically saved after a brief debounce.
|
|
15
|
-
*/
|
|
16
|
-
export declare function SettingsPageLayout({ title, description, categories, className, }: SettingsPageLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Settings components barrel export
|
|
3
|
-
*/
|
|
4
|
-
export { SettingsPageLayout } from './SettingsPageLayout';
|
|
5
|
-
export type { SettingsPageLayoutProps } from './SettingsPageLayout';
|
|
6
|
-
export { AutosaveStatus } from './AutosaveStatus';
|
|
7
|
-
export type { AutosaveStatusProps } from './AutosaveStatus';
|
|
8
|
-
export { SettingsSection, SettingRow, DurationInput, PercentageInput, SelectInput, NumberInput, BooleanInput, SecretInput, TokenListInput, TokenSymbolListInput, } from './settingsInputs';
|
|
9
|
-
export type { SettingsSectionProps } from './settingsInputs';
|
|
10
|
-
export { SETTING_METADATA, CATEGORY_METADATA, PRESET_TOKEN_SYMBOLS, formatDuration, secondsToDuration, } from './settingsMetadata';
|
|
11
|
-
export type { DurationParts, CategoryMeta } from './settingsMetadata';
|
|
12
|
-
export { AuthenticationSettings } from './AuthenticationSettings';
|
|
13
|
-
export type { AuthenticationSettingsProps } from './AuthenticationSettings';
|
|
14
|
-
export { SsoProvidersSettings } from './SsoProvidersSettings';
|
|
15
|
-
export type { SsoProvidersSettingsProps } from './SsoProvidersSettings';
|
|
16
|
-
export { EmbeddedWalletSettings } from './EmbeddedWalletSettings';
|
|
17
|
-
export type { EmbeddedWalletSettingsProps } from './EmbeddedWalletSettings';
|
|
18
|
-
export { FeatureSettings } from './FeatureSettings';
|
|
19
|
-
export type { FeatureSettingsProps } from './FeatureSettings';
|
|
20
|
-
export { SecuritySettings } from './SecuritySettings';
|
|
21
|
-
export type { SecuritySettingsProps } from './SecuritySettings';
|
|
22
|
-
export { EmailSettings } from './EmailSettings';
|
|
23
|
-
export type { EmailSettingsProps } from './EmailSettings';
|
|
24
|
-
export { WebhookSettings } from './WebhookSettings';
|
|
25
|
-
export type { WebhookSettingsProps } from './WebhookSettings';
|
|
26
|
-
export { MessagingSettings } from './MessagingSettings';
|
|
27
|
-
export type { MessagingSettingsProps } from './MessagingSettings';
|
|
28
|
-
export { CreditSystemSettings, PrivacyCashSettings } from './CreditSystemSettings';
|
|
29
|
-
export type { CreditSystemSettingsProps, PrivacyCashSettingsProps } from './CreditSystemSettings';
|
|
30
|
-
export { ServerSettings } from './ServerSettings';
|
|
31
|
-
export type { ServerSettingsProps } from './ServerSettings';
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { SystemSetting } from '../../../types';
|
|
2
|
-
export interface SettingsSectionProps {
|
|
3
|
-
settings: SystemSetting[];
|
|
4
|
-
edits: Record<string, string>;
|
|
5
|
-
onChange: (key: string, value: string) => void;
|
|
6
|
-
/** External warnings keyed by setting key */
|
|
7
|
-
externalWarnings?: Record<string, string>;
|
|
8
|
-
}
|
|
9
|
-
export declare function SettingsSection({ settings, edits, onChange, externalWarnings, }: SettingsSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
interface SettingRowProps {
|
|
11
|
-
setting: SystemSetting;
|
|
12
|
-
editValue?: string;
|
|
13
|
-
onChange: (key: string, value: string) => void;
|
|
14
|
-
/** External warning message that overrides threshold-based warnings */
|
|
15
|
-
externalWarning?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare function SettingRow({ setting, editValue, onChange, externalWarning }: SettingRowProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
interface DurationInputProps {
|
|
19
|
-
value: string;
|
|
20
|
-
onChange: (value: string) => void;
|
|
21
|
-
presets?: {
|
|
22
|
-
label: string;
|
|
23
|
-
value: string;
|
|
24
|
-
}[];
|
|
25
|
-
min?: number;
|
|
26
|
-
}
|
|
27
|
-
export declare function DurationInput({ value, onChange, presets, min }: DurationInputProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
interface PercentageInputProps {
|
|
29
|
-
value: string;
|
|
30
|
-
onChange: (value: string) => void;
|
|
31
|
-
min: number;
|
|
32
|
-
max: number;
|
|
33
|
-
step: number;
|
|
34
|
-
presets?: {
|
|
35
|
-
label: string;
|
|
36
|
-
value: string;
|
|
37
|
-
}[];
|
|
38
|
-
}
|
|
39
|
-
export declare function PercentageInput({ value, onChange, min, max, step, presets }: PercentageInputProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
-
interface SelectInputProps {
|
|
41
|
-
value: string;
|
|
42
|
-
onChange: (value: string) => void;
|
|
43
|
-
presets: {
|
|
44
|
-
label: string;
|
|
45
|
-
value: string;
|
|
46
|
-
}[];
|
|
47
|
-
unit?: string;
|
|
48
|
-
}
|
|
49
|
-
export declare function SelectInput({ value, onChange, presets, unit }: SelectInputProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
-
interface NumberInputProps {
|
|
51
|
-
value: string;
|
|
52
|
-
onChange: (value: string) => void;
|
|
53
|
-
min?: number;
|
|
54
|
-
max?: number;
|
|
55
|
-
unit?: string;
|
|
56
|
-
}
|
|
57
|
-
export declare function NumberInput({ value, onChange, min, max, unit }: NumberInputProps): import("react/jsx-runtime").JSX.Element;
|
|
58
|
-
interface BooleanInputProps {
|
|
59
|
-
value: string;
|
|
60
|
-
onChange: (value: string) => void;
|
|
61
|
-
}
|
|
62
|
-
export declare function BooleanInput({ value, onChange }: BooleanInputProps): import("react/jsx-runtime").JSX.Element;
|
|
63
|
-
interface SecretInputProps {
|
|
64
|
-
value: string;
|
|
65
|
-
onChange: (value: string) => void;
|
|
66
|
-
multiline?: boolean;
|
|
67
|
-
}
|
|
68
|
-
export declare function SecretInput({ value, onChange, multiline }: SecretInputProps): import("react/jsx-runtime").JSX.Element;
|
|
69
|
-
interface TokenListInputProps {
|
|
70
|
-
value: string;
|
|
71
|
-
onChange: (value: string) => void;
|
|
72
|
-
}
|
|
73
|
-
export declare function TokenListInput({ value, onChange }: TokenListInputProps): import("react/jsx-runtime").JSX.Element;
|
|
74
|
-
interface TokenSymbolListInputProps {
|
|
75
|
-
value: string;
|
|
76
|
-
onChange: (value: string) => void;
|
|
77
|
-
}
|
|
78
|
-
export declare function TokenSymbolListInput({ value, onChange }: TokenSymbolListInputProps): import("react/jsx-runtime").JSX.Element;
|
|
79
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SettingMeta } from '../../../types';
|
|
2
|
-
export interface DurationParts {
|
|
3
|
-
days: number;
|
|
4
|
-
hours: number;
|
|
5
|
-
minutes: number;
|
|
6
|
-
seconds: number;
|
|
7
|
-
}
|
|
8
|
-
export declare function secondsToDuration(totalSeconds: number): DurationParts;
|
|
9
|
-
export declare function formatDuration(totalSeconds: number): string;
|
|
10
|
-
export declare const SETTING_METADATA: Record<string, SettingMeta>;
|
|
11
|
-
export interface CategoryMeta {
|
|
12
|
-
label: string;
|
|
13
|
-
description: string;
|
|
14
|
-
icon: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const CATEGORY_METADATA: Record<string, CategoryMeta>;
|
|
17
|
-
/** Preset tokens that are always available without needing to be redefined */
|
|
18
|
-
export declare const PRESET_TOKEN_SYMBOLS: string[];
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface AppleLoginButtonProps {
|
|
2
|
-
onSuccess?: () => void;
|
|
3
|
-
onError?: (error: Error) => void;
|
|
4
|
-
className?: string;
|
|
5
|
-
variant?: 'default' | 'outline';
|
|
6
|
-
size?: 'sm' | 'md' | 'lg';
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Hide the button on non-Apple devices (macOS, iOS, iPadOS).
|
|
10
|
-
* When true (default), button only renders on Apple devices.
|
|
11
|
-
* When false, button always renders regardless of device.
|
|
12
|
-
* @default true
|
|
13
|
-
*/
|
|
14
|
-
hideOnNonApple?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Apple Sign In button
|
|
18
|
-
*
|
|
19
|
-
* Requires `appleClientId` to be configured in CedrosLoginProvider.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```tsx
|
|
23
|
-
* <AppleLoginButton
|
|
24
|
-
* onSuccess={() => console.log('Logged in!')}
|
|
25
|
-
* onError={(err) => console.error(err)}
|
|
26
|
-
* />
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare function AppleLoginButton({ onSuccess, onError, className, variant, size, disabled, hideOnNonApple, }: AppleLoginButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CreditBalanceResponse } from '../../types/deposit';
|
|
2
|
-
export interface CreditBalanceProps {
|
|
3
|
-
/** Show only SOL balance (default) or all currencies */
|
|
4
|
-
showAllCurrencies?: boolean;
|
|
5
|
-
/** Auto-refresh interval in milliseconds (0 to disable) */
|
|
6
|
-
refreshInterval?: number;
|
|
7
|
-
/** Compact display mode */
|
|
8
|
-
compact?: boolean;
|
|
9
|
-
/** Additional CSS classes */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** Callback when balance is loaded */
|
|
12
|
-
onLoad?: (balance: CreditBalanceResponse[]) => void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Credit balance display
|
|
16
|
-
*
|
|
17
|
-
* Shows the user's credit balance. Supports auto-refresh.
|
|
18
|
-
*/
|
|
19
|
-
export declare function CreditBalance({ showAllCurrencies, refreshInterval, compact, className, onLoad, }: CreditBalanceProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { Token } from './tokens';
|
|
2
|
-
import { DepositResponse, DepositConfigResponse } from '../../types/deposit';
|
|
3
|
-
/** Currency configuration mode */
|
|
4
|
-
export type CurrencyMode = 'sol' | 'single-token' | 'multi-token';
|
|
5
|
-
/** Deposit method - how the user will deposit funds */
|
|
6
|
-
export type DepositMethod = 'sign' | 'receive';
|
|
7
|
-
/** Flow step */
|
|
8
|
-
export type DepositFlowStep = 'explainer' | 'unlock' | 'confirm' | 'signing' | 'show-address' | 'waiting' | 'success' | 'error';
|
|
9
|
-
/** Configuration for the optional explainer step */
|
|
10
|
-
export interface ExplainerConfig {
|
|
11
|
-
/** Custom title (default: "How Deposits Work") */
|
|
12
|
-
title?: string;
|
|
13
|
-
/** Custom body text (default explains Solana and suggests exchange) */
|
|
14
|
-
body?: string;
|
|
15
|
-
/** Exchange URL (default: "https://www.coinbase.com") */
|
|
16
|
-
exchangeUrl?: string;
|
|
17
|
-
/** Exchange name (default: "Coinbase") */
|
|
18
|
-
exchangeName?: string;
|
|
19
|
-
/** Whether to show the exchange suggestion (default: true) */
|
|
20
|
-
showExchangeSuggestion?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface DepositFlowProps {
|
|
23
|
-
/** Deposit configuration (required) */
|
|
24
|
-
config: DepositConfigResponse;
|
|
25
|
-
/**
|
|
26
|
-
* Currency mode determines what tokens users can deposit:
|
|
27
|
-
* - 'sol': SOL only (no token selection step)
|
|
28
|
-
* - 'single-token': Single admin-configured token (shows token info, no selection)
|
|
29
|
-
* - 'multi-token': User selects from available tokens
|
|
30
|
-
*/
|
|
31
|
-
currencyMode: CurrencyMode;
|
|
32
|
-
/**
|
|
33
|
-
* Deposit method determines how the user deposits:
|
|
34
|
-
* - 'sign': User has a connected wallet and signs transactions (default for browser wallets)
|
|
35
|
-
* - 'receive': User sends from external source (exchange) to deposit address (embedded wallet)
|
|
36
|
-
*
|
|
37
|
-
* If not specified, auto-detects based on wallet status:
|
|
38
|
-
* - If user has external wallet connected → 'sign'
|
|
39
|
-
* - If user has embedded wallet only → 'receive'
|
|
40
|
-
*/
|
|
41
|
-
depositMethod?: DepositMethod;
|
|
42
|
-
/**
|
|
43
|
-
* Available tokens for single-token or multi-token modes.
|
|
44
|
-
* For single-token mode, only the first token is used.
|
|
45
|
-
* Ignored in 'sol' mode.
|
|
46
|
-
*/
|
|
47
|
-
tokens?: Token[];
|
|
48
|
-
/** Pre-selected token (for multi-token mode) */
|
|
49
|
-
defaultToken?: Token;
|
|
50
|
-
/** Minimum deposit amount (overrides server config) */
|
|
51
|
-
minAmount?: number;
|
|
52
|
-
/** Maximum deposit amount */
|
|
53
|
-
maxAmount?: number;
|
|
54
|
-
/** Callback on successful deposit */
|
|
55
|
-
onSuccess?: (result: DepositFlowResult) => void;
|
|
56
|
-
/** Callback on error */
|
|
57
|
-
onError?: (error: Error) => void;
|
|
58
|
-
/** Callback when user cancels */
|
|
59
|
-
onCancel?: () => void;
|
|
60
|
-
/** Callback to request wallet unlock */
|
|
61
|
-
onUnlockRequired?: () => void;
|
|
62
|
-
/**
|
|
63
|
-
* Callback to authorize deposit with password/PIN.
|
|
64
|
-
* This sends the password to the server to decrypt Share B for withdrawal signing.
|
|
65
|
-
* Returns the session ID for tracking the deposit.
|
|
66
|
-
*
|
|
67
|
-
* For sign mode: amount is the user-entered deposit amount
|
|
68
|
-
* For receive mode: amount is 0 (auto-detected when deposit arrives)
|
|
69
|
-
*/
|
|
70
|
-
onAuthorize?: (password: string, amount: number | null, token: Token) => Promise<{
|
|
71
|
-
sessionId: string;
|
|
72
|
-
depositAddress: string;
|
|
73
|
-
}>;
|
|
74
|
-
/** Additional CSS classes */
|
|
75
|
-
className?: string;
|
|
76
|
-
/** Show step indicator */
|
|
77
|
-
showStepIndicator?: boolean;
|
|
78
|
-
/** Polling interval for checking deposit status in receive mode (ms, default: 5000) */
|
|
79
|
-
pollInterval?: number;
|
|
80
|
-
/** Demo mode - skips wallet checks for Storybook/testing (default: false) */
|
|
81
|
-
demoMode?: boolean;
|
|
82
|
-
/** Demo mode auto-confirm delay in ms (storybook only) */
|
|
83
|
-
demoAutoConfirmMs?: number;
|
|
84
|
-
/** USD price overrides for non-USD tokens (by symbol) */
|
|
85
|
-
tokenPriceUsd?: Record<string, number>;
|
|
86
|
-
/**
|
|
87
|
-
* Show an optional explainer step for non-crypto-native users.
|
|
88
|
-
* This explains Solana and suggests an exchange for purchasing.
|
|
89
|
-
* Admin-controlled setting (default: false)
|
|
90
|
-
*/
|
|
91
|
-
showExplainer?: boolean;
|
|
92
|
-
/** Site name to display in explainer (e.g., "Acme Inc") */
|
|
93
|
-
siteName?: string;
|
|
94
|
-
/** Configuration for the explainer step content */
|
|
95
|
-
explainerConfig?: ExplainerConfig;
|
|
96
|
-
}
|
|
97
|
-
export interface DepositFlowResult {
|
|
98
|
-
/** Selected token (null for SOL) */
|
|
99
|
-
token: Token | null;
|
|
100
|
-
/** Amount in token units */
|
|
101
|
-
amount: number;
|
|
102
|
-
/** Amount in lamports (for SOL) or smallest unit */
|
|
103
|
-
amountSmallestUnit: number;
|
|
104
|
-
/** Transaction signature (for sign mode) */
|
|
105
|
-
txSignature: string;
|
|
106
|
-
/** Session ID for tracking */
|
|
107
|
-
sessionId: string;
|
|
108
|
-
/** Deposit response from server */
|
|
109
|
-
response: DepositResponse;
|
|
110
|
-
/** Deposit method used */
|
|
111
|
-
method: DepositMethod;
|
|
112
|
-
/** Deposit address (for receive mode) */
|
|
113
|
-
depositAddress?: string;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Multi-step deposit flow component
|
|
117
|
-
*/
|
|
118
|
-
export declare function DepositFlow({ config, currencyMode, depositMethod: depositMethodProp, tokens, defaultToken, minAmount, maxAmount, onSuccess, onError, onCancel, onUnlockRequired, onAuthorize, className, showStepIndicator, pollInterval, demoMode, demoAutoConfirmMs, tokenPriceUsd, showExplainer, siteName, explainerConfig, }: DepositFlowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DepositConfigResponse } from '../../types/deposit';
|
|
2
|
-
export interface FeeConfigDisplayProps {
|
|
3
|
-
/** Deposit configuration with fee settings */
|
|
4
|
-
config: DepositConfigResponse;
|
|
5
|
-
/** Show detailed fee breakdown (default: true) */
|
|
6
|
-
showBreakdown?: boolean;
|
|
7
|
-
/** Show tier-specific context (which fees apply to which tier) */
|
|
8
|
-
showTierContext?: boolean;
|
|
9
|
-
/** Additional CSS classes */
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Fee configuration display with warnings
|
|
14
|
-
*/
|
|
15
|
-
export declare function FeeConfigDisplay({ config, showBreakdown, showTierContext, className, }: FeeConfigDisplayProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CreditTransactionResponse, CreditHistoryResponse } from '../../types/deposit';
|
|
2
|
-
/** History tab category for filtering */
|
|
3
|
-
export type HistoryCategory = 'all' | 'deposits' | 'usage' | 'adjustments';
|
|
4
|
-
export interface HistoryProps {
|
|
5
|
-
/** Initially selected tab (default: 'all') */
|
|
6
|
-
defaultTab?: HistoryCategory;
|
|
7
|
-
/** Number of items per page (default: 10) */
|
|
8
|
-
pageSize?: number;
|
|
9
|
-
/** Auto-refresh interval in milliseconds (0 to disable) */
|
|
10
|
-
refreshInterval?: number;
|
|
11
|
-
/** Additional CSS classes */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** Callback when history is loaded */
|
|
14
|
-
onLoad?: (history: CreditHistoryResponse) => void;
|
|
15
|
-
/** Callback when a transaction is clicked */
|
|
16
|
-
onTransactionClick?: (transaction: CreditTransactionResponse) => void;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* History component with tabs
|
|
20
|
-
*/
|
|
21
|
-
export declare function History({ defaultTab, pageSize, refreshInterval, className, onLoad, onTransactionClick, }: HistoryProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DepositConfigResponse } from '../../types/deposit';
|
|
2
|
-
export interface TieredAmountSliderProps {
|
|
3
|
-
/** Deposit configuration with tier thresholds */
|
|
4
|
-
config: DepositConfigResponse;
|
|
5
|
-
/** Current amount in USD */
|
|
6
|
-
valueUsd: number;
|
|
7
|
-
/** Amount change handler */
|
|
8
|
-
onChange: (valueUsd: number) => void;
|
|
9
|
-
/** Cap in USD (default: 10000) */
|
|
10
|
-
maxUsd?: number;
|
|
11
|
-
/** Disabled state */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
/** Additional CSS classes */
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Tiered amount input with deposit tier indicator
|
|
18
|
-
*/
|
|
19
|
-
export declare function TieredAmountSlider({ config, valueUsd, onChange, maxUsd, disabled, className, }: TieredAmountSliderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Token } from './tokens';
|
|
2
|
-
export interface TokenSelectorProps {
|
|
3
|
-
/** List of available tokens */
|
|
4
|
-
tokens: Token[];
|
|
5
|
-
/** Currently selected token */
|
|
6
|
-
selectedToken?: Token;
|
|
7
|
-
/** Callback when token is selected */
|
|
8
|
-
onSelect: (token: Token) => void;
|
|
9
|
-
/** Signal to force-open the dropdown */
|
|
10
|
-
openSignal?: number;
|
|
11
|
-
/** Placeholder text when no token selected */
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
/** Disable the selector */
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
/** Additional CSS classes */
|
|
16
|
-
className?: string;
|
|
17
|
-
/** Show search input */
|
|
18
|
-
searchable?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Token selector dropdown component
|
|
22
|
-
*/
|
|
23
|
-
export declare function TokenSelector({ tokens, selectedToken, onSelect, openSignal, placeholder, disabled, className, searchable, }: TokenSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AdminDepositItem, AdminDepositListResponse } from '../../../types/deposit';
|
|
2
|
-
export interface AdminDepositListProps {
|
|
3
|
-
/** Filter by status (comma-separated) */
|
|
4
|
-
statusFilter?: string;
|
|
5
|
-
/** Number of items per page (default: 20) */
|
|
6
|
-
pageSize?: number;
|
|
7
|
-
/** Auto-refresh interval in milliseconds (0 to disable) */
|
|
8
|
-
refreshInterval?: number;
|
|
9
|
-
/** Additional CSS classes */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** Callback when list is loaded */
|
|
12
|
-
onLoad?: (response: AdminDepositListResponse) => void;
|
|
13
|
-
/** Callback when a deposit is clicked */
|
|
14
|
-
onDepositClick?: (deposit: AdminDepositItem) => void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Admin deposit list display
|
|
18
|
-
*
|
|
19
|
-
* Shows paginated list of all deposits with user info.
|
|
20
|
-
*/
|
|
21
|
-
export declare function AdminDepositList({ statusFilter, pageSize, refreshInterval, className, onLoad, onDepositClick, }: AdminDepositListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AdminDepositStatsResponse } from '../../../types/deposit';
|
|
2
|
-
export interface AdminDepositStatsProps {
|
|
3
|
-
/** Auto-refresh interval in milliseconds (0 to disable) */
|
|
4
|
-
refreshInterval?: number;
|
|
5
|
-
/** Additional CSS classes */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Callback when stats are loaded */
|
|
8
|
-
onLoad?: (stats: AdminDepositStatsResponse) => void;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Admin deposit statistics display
|
|
12
|
-
*
|
|
13
|
-
* Shows total deposits, withdrawals, and pending amounts.
|
|
14
|
-
*/
|
|
15
|
-
export declare function AdminDepositStats({ refreshInterval, className, onLoad, }: AdminDepositStatsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AdminDepositItem, AdminDepositListResponse } from '../../../types/deposit';
|
|
2
|
-
export interface AdminPrivacyPeriodDepositsProps {
|
|
3
|
-
/** Number of items per page (default: 20) */
|
|
4
|
-
pageSize?: number;
|
|
5
|
-
/** Auto-refresh interval in milliseconds (0 to disable) */
|
|
6
|
-
refreshInterval?: number;
|
|
7
|
-
/** Additional CSS classes */
|
|
8
|
-
className?: string;
|
|
9
|
-
/** Callback when list is loaded */
|
|
10
|
-
onLoad?: (response: AdminDepositListResponse) => void;
|
|
11
|
-
/** Callback when a deposit item is clicked */
|
|
12
|
-
onItemClick?: (item: AdminDepositItem) => void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Admin privacy period deposits display
|
|
16
|
-
*
|
|
17
|
-
* Shows deposits that are still in the privacy period (not yet available for withdrawal).
|
|
18
|
-
*/
|
|
19
|
-
export declare function AdminPrivacyPeriodDeposits({ pageSize, refreshInterval, className, onLoad, onItemClick, }: AdminPrivacyPeriodDepositsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AdminDepositItem, AdminDepositListResponse } from '../../../types/deposit';
|
|
2
|
-
export interface AdminWithdrawalHistoryProps {
|
|
3
|
-
/** Number of items per page (default: 20) */
|
|
4
|
-
pageSize?: number;
|
|
5
|
-
/** Auto-refresh interval in milliseconds (0 to disable) */
|
|
6
|
-
refreshInterval?: number;
|
|
7
|
-
/** Additional CSS classes */
|
|
8
|
-
className?: string;
|
|
9
|
-
/** Callback when list is loaded */
|
|
10
|
-
onLoad?: (response: AdminDepositListResponse) => void;
|
|
11
|
-
/** Callback when a withdrawal item is clicked */
|
|
12
|
-
onItemClick?: (item: AdminDepositItem) => void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Admin withdrawal history display
|
|
16
|
-
*
|
|
17
|
-
* Shows deposits that have been fully withdrawn.
|
|
18
|
-
*/
|
|
19
|
-
export declare function AdminWithdrawalHistory({ pageSize, refreshInterval, className, onLoad, onItemClick, }: AdminWithdrawalHistoryProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AdminDepositItem, AdminDepositListResponse, ProcessWithdrawalResponse, ProcessAllWithdrawalsResponse } from '../../../types/deposit';
|
|
2
|
-
export interface AdminWithdrawalQueueProps {
|
|
3
|
-
/** Number of items per page (default: 20) */
|
|
4
|
-
pageSize?: number;
|
|
5
|
-
/** Auto-refresh interval in milliseconds (0 to disable) */
|
|
6
|
-
refreshInterval?: number;
|
|
7
|
-
/** Additional CSS classes */
|
|
8
|
-
className?: string;
|
|
9
|
-
/** Callback when list is loaded */
|
|
10
|
-
onLoad?: (response: AdminDepositListResponse) => void;
|
|
11
|
-
/** Callback when a withdrawal item is clicked */
|
|
12
|
-
onItemClick?: (item: AdminDepositItem) => void;
|
|
13
|
-
/** Callback when a withdrawal is processed */
|
|
14
|
-
onWithdrawalProcessed?: (response: ProcessWithdrawalResponse) => void;
|
|
15
|
-
/** Callback when all withdrawals are processed */
|
|
16
|
-
onAllProcessed?: (response: ProcessAllWithdrawalsResponse) => void;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Admin withdrawal queue display
|
|
20
|
-
*
|
|
21
|
-
* Shows deposits ready for withdrawal processing with action buttons.
|
|
22
|
-
*/
|
|
23
|
-
export declare function AdminWithdrawalQueue({ pageSize, refreshInterval, className, onLoad, onItemClick, onWithdrawalProcessed, onAllProcessed, }: AdminWithdrawalQueueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AdminDepositStatsResponse } from '../../../types/deposit';
|
|
2
|
-
export interface AdminWithdrawalStatsProps {
|
|
3
|
-
/** Auto-refresh interval in milliseconds (0 to disable) */
|
|
4
|
-
refreshInterval?: number;
|
|
5
|
-
/** Additional CSS classes */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Callback when stats are loaded */
|
|
8
|
-
onLoad?: (stats: AdminDepositStatsResponse) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function AdminWithdrawalStats({ refreshInterval, className, onLoad, }: AdminWithdrawalStatsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Feature disabled message component
|
|
3
|
-
*
|
|
4
|
-
* Shows a helpful message when Privacy Cash is not enabled on the server.
|
|
5
|
-
*/
|
|
6
|
-
export interface FeatureDisabledMessageProps {
|
|
7
|
-
/** Feature name to display */
|
|
8
|
-
feature?: string;
|
|
9
|
-
/** Additional CSS classes */
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Message shown when Privacy Cash features are not enabled
|
|
14
|
-
*/
|
|
15
|
-
export declare function FeatureDisabledMessage({ feature, className, }: FeatureDisabledMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PrivacyStatusResponse } from '../../../types/deposit';
|
|
2
|
-
export interface PrivacySystemStatusProps {
|
|
3
|
-
/** Auto-refresh interval in milliseconds (0 to disable) */
|
|
4
|
-
refreshInterval?: number;
|
|
5
|
-
/** Additional CSS classes */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Callback when status is loaded */
|
|
8
|
-
onLoad?: (status: PrivacyStatusResponse) => void;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Privacy Cash system status display
|
|
12
|
-
*
|
|
13
|
-
* Shows configuration including partial withdrawal settings for timing analysis protection.
|
|
14
|
-
*/
|
|
15
|
-
export declare function PrivacySystemStatus({ refreshInterval, className, onLoad, }: PrivacySystemStatusProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Feature disabled error detection utilities
|
|
3
|
-
*
|
|
4
|
-
* Helper functions for detecting if an error indicates a feature is disabled.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Check if an error indicates a feature is disabled.
|
|
8
|
-
*
|
|
9
|
-
* Always returns false — deposits and withdrawals work independently of
|
|
10
|
-
* privacy cash. When the API returns an error, components should use their
|
|
11
|
-
* normal error UI (retry button) instead of the "Privacy Cash Not Enabled"
|
|
12
|
-
* banner.
|
|
13
|
-
*/
|
|
14
|
-
export declare function isFeatureDisabledError(_error: string | null | undefined): boolean;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Admin deposit components
|
|
3
|
-
*
|
|
4
|
-
* Components for system administrators to manage Privacy Cash deposits.
|
|
5
|
-
*/
|
|
6
|
-
export { AdminDepositStats } from './AdminDepositStats';
|
|
7
|
-
export type { AdminDepositStatsProps } from './AdminDepositStats';
|
|
8
|
-
export { AdminWithdrawalStats } from './AdminWithdrawalStats';
|
|
9
|
-
export type { AdminWithdrawalStatsProps } from './AdminWithdrawalStats';
|
|
10
|
-
export { AdminDepositList } from './AdminDepositList';
|
|
11
|
-
export type { AdminDepositListProps } from './AdminDepositList';
|
|
12
|
-
export { AdminWithdrawalQueue } from './AdminWithdrawalQueue';
|
|
13
|
-
export type { AdminWithdrawalQueueProps } from './AdminWithdrawalQueue';
|
|
14
|
-
export { AdminPrivacyPeriodDeposits } from './AdminPrivacyPeriodDeposits';
|
|
15
|
-
export type { AdminPrivacyPeriodDepositsProps } from './AdminPrivacyPeriodDeposits';
|
|
16
|
-
export { AdminWithdrawalHistory } from './AdminWithdrawalHistory';
|
|
17
|
-
export type { AdminWithdrawalHistoryProps } from './AdminWithdrawalHistory';
|
|
18
|
-
export { PrivacySystemStatus } from './PrivacySystemStatus';
|
|
19
|
-
export type { PrivacySystemStatusProps } from './PrivacySystemStatus';
|
|
20
|
-
export { FeatureDisabledMessage } from './FeatureDisabledMessage';
|
|
21
|
-
export type { FeatureDisabledMessageProps } from './FeatureDisabledMessage';
|
|
22
|
-
export { isFeatureDisabledError } from './featureDisabled';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deposit components for Privacy Cash integration
|
|
3
|
-
*/
|
|
4
|
-
export { DepositFlow, type DepositFlowProps, type DepositFlowResult, type CurrencyMode, type DepositMethod, type DepositFlowStep, type ExplainerConfig, } from './DepositFlow';
|
|
5
|
-
export { TokenSelector, type TokenSelectorProps } from './TokenSelector';
|
|
6
|
-
export { SUPPORTED_TOKENS, type Token } from './tokens';
|
|
7
|
-
export { TieredAmountSlider, type TieredAmountSliderProps } from './TieredAmountSlider';
|
|
8
|
-
export { getTierForAmount } from './tierUtils';
|
|
9
|
-
export { FeeConfigDisplay, type FeeConfigDisplayProps } from './FeeConfigDisplay';
|
|
10
|
-
export { CreditBalance, type CreditBalanceProps } from './CreditBalance';
|
|
11
|
-
export { History, type HistoryProps, type HistoryCategory } from './History';
|
|
12
|
-
export { AdminDepositStats, type AdminDepositStatsProps, AdminDepositList, type AdminDepositListProps, AdminWithdrawalQueue, type AdminWithdrawalQueueProps, } from './admin';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DepositConfigResponse, DepositTier } from '../../types/deposit';
|
|
2
|
-
/**
|
|
3
|
-
* Determine which tier an amount falls into
|
|
4
|
-
*
|
|
5
|
-
* When private deposits are disabled (recovery mode enabled), the 'private'
|
|
6
|
-
* tier is not available and amounts that would qualify for it fall back to 'public'.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getTierForAmount(usd: number, config: DepositConfigResponse): DepositTier;
|