@cedros/login-react 0.0.12 → 0.0.14
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-CyT4VBH8.js +311 -0
- package/dist/AdminDepositList-CyT4VBH8.js.map +1 -0
- package/dist/AdminDepositList-b2AXtLg0.cjs +1 -0
- package/dist/AdminDepositList-b2AXtLg0.cjs.map +1 -0
- package/dist/AdminWithdrawalHistory-Cud-yuWy.js +916 -0
- package/dist/AdminWithdrawalHistory-Cud-yuWy.js.map +1 -0
- package/dist/AdminWithdrawalHistory-DL9zbu2b.cjs +1 -0
- package/dist/AdminWithdrawalHistory-DL9zbu2b.cjs.map +1 -0
- package/dist/AuthenticationSettings-D739nNul.cjs +1 -0
- package/dist/AuthenticationSettings-D739nNul.cjs.map +1 -0
- package/dist/AuthenticationSettings-DtLoxQ2z.cjs +1 -0
- package/dist/AuthenticationSettings-DtLoxQ2z.cjs.map +1 -0
- package/dist/AuthenticationSettings-Dx3JCI3m.js +9 -0
- package/dist/AuthenticationSettings-Dx3JCI3m.js.map +1 -0
- package/dist/AuthenticationSettings-vowmQPXz.js +525 -0
- package/dist/AuthenticationSettings-vowmQPXz.js.map +1 -0
- package/dist/AutosaveStatus-CCrZszKA.cjs +1 -0
- package/dist/AutosaveStatus-CCrZszKA.cjs.map +1 -0
- package/dist/AutosaveStatus-Ciyt350A.js +1497 -0
- package/dist/AutosaveStatus-Ciyt350A.js.map +1 -0
- package/dist/CreditSystemSettings-BQ3h4CyM.js +210 -0
- package/dist/CreditSystemSettings-BQ3h4CyM.js.map +1 -0
- package/dist/CreditSystemSettings-C6dUsu72.cjs +1 -0
- package/dist/CreditSystemSettings-C6dUsu72.cjs.map +1 -0
- package/dist/CreditSystemSettings-CBot8EPW.cjs +1 -0
- package/dist/CreditSystemSettings-CBot8EPW.cjs.map +1 -0
- package/dist/CreditSystemSettings-bVuNLsqp.js +9 -0
- package/dist/CreditSystemSettings-bVuNLsqp.js.map +1 -0
- package/dist/DepositsSection-BkKUS4vk.cjs +1 -0
- package/dist/DepositsSection-BkKUS4vk.cjs.map +1 -0
- package/dist/{DepositsSection-0Hqr0yDm.js → DepositsSection-DD9MKUFt.js} +20 -14
- package/dist/DepositsSection-DD9MKUFt.js.map +1 -0
- package/dist/EmailRegisterForm-Pvm3I8GP.cjs +1 -0
- package/dist/EmailRegisterForm-Pvm3I8GP.cjs.map +1 -0
- package/dist/EmailRegisterForm-nI0BOIxR.js +927 -0
- package/dist/EmailRegisterForm-nI0BOIxR.js.map +1 -0
- package/dist/EmailSettings-B9qwPSiM.cjs +1 -0
- package/dist/EmailSettings-B9qwPSiM.cjs.map +1 -0
- package/dist/EmailSettings-CCA8dNCi.js +17 -0
- package/dist/EmailSettings-CCA8dNCi.js.map +1 -0
- package/dist/EmailSettings-RbgAq9FB.cjs +1 -0
- package/dist/EmailSettings-RbgAq9FB.cjs.map +1 -0
- package/dist/{AuthenticationSettings-BSoIQ58T.js → EmailSettings-mxlKNcPl.js} +3 -3
- package/dist/EmailSettings-mxlKNcPl.js.map +1 -0
- package/dist/EmbeddedWalletSettings-B4h-8rxB.cjs +1 -0
- package/dist/EmbeddedWalletSettings-B4h-8rxB.cjs.map +1 -0
- package/dist/EmbeddedWalletSettings-BInZvFZf.js +79 -0
- package/dist/EmbeddedWalletSettings-BInZvFZf.js.map +1 -0
- package/dist/{EmbeddedWalletSettings-iVf_3pn3.js → EmbeddedWalletSettings-CXlZFFDw.js} +3 -3
- package/dist/EmbeddedWalletSettings-CXlZFFDw.js.map +1 -0
- package/dist/EmbeddedWalletSettings-D5JXae1L.cjs +1 -0
- package/dist/EmbeddedWalletSettings-D5JXae1L.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-CXwp4LsQ.js} +4 -3
- package/dist/{GoogleLoginButton-BzHr545L.js.map → GoogleLoginButton-CXwp4LsQ.js.map} +1 -1
- package/dist/GoogleLoginButton-zS_69-KV.cjs +1 -0
- package/dist/{GoogleLoginButton-DoAdOqb3.cjs.map → GoogleLoginButton-zS_69-KV.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-BPbE-hNx.cjs +1 -0
- package/dist/PermissionsSection-BPbE-hNx.cjs.map +1 -0
- package/dist/PermissionsSection-CighC1p6.js +1026 -0
- package/dist/PermissionsSection-CighC1p6.js.map +1 -0
- package/dist/ServerSettings-BE8fsE5k.js +84 -0
- package/dist/ServerSettings-BE8fsE5k.js.map +1 -0
- package/dist/ServerSettings-CYTlQ2xy.cjs +1 -0
- package/dist/ServerSettings-CYTlQ2xy.cjs.map +1 -0
- package/dist/ServerSettings-DFs9jQ3f.cjs +1 -0
- package/dist/ServerSettings-DFs9jQ3f.cjs.map +1 -0
- package/dist/{ServerSettings-C_osdbiX.js → ServerSettings-pSmWDC1d.js} +3 -3
- package/dist/ServerSettings-pSmWDC1d.js.map +1 -0
- package/dist/SettingsPageLayout--GZ_iHLc.js +50 -0
- package/dist/SettingsPageLayout--GZ_iHLc.js.map +1 -0
- package/dist/SettingsPageLayout-j5lMjEID.cjs +1 -0
- package/dist/SettingsPageLayout-j5lMjEID.cjs.map +1 -0
- package/dist/SolanaLoginButton-BjOxpE1C.cjs +1 -0
- package/dist/{SolanaLoginButton-CPzms0kf.cjs.map → SolanaLoginButton-BjOxpE1C.cjs.map} +1 -1
- package/dist/{SolanaLoginButton-C-CfZxAZ.js → SolanaLoginButton-P22QjBaO.js} +5 -4
- package/dist/{SolanaLoginButton-C-CfZxAZ.js.map → SolanaLoginButton-P22QjBaO.js.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-BIECkp7g.js} +27 -26
- package/dist/TeamSection-BIECkp7g.js.map +1 -0
- package/dist/TeamSection-BOH9pv_E.cjs +1 -0
- package/dist/TeamSection-BOH9pv_E.cjs.map +1 -0
- package/dist/UsersSection-e6q7FHzx.cjs +1 -0
- package/dist/UsersSection-e6q7FHzx.cjs.map +1 -0
- package/dist/UsersSection-t-zm0jZW.js +33 -0
- package/dist/UsersSection-t-zm0jZW.js.map +1 -0
- package/dist/{WebhookSettings-IyhyTFes.js → WebhookSettings-Bb70MbFj.js} +4 -4
- package/dist/WebhookSettings-Bb70MbFj.js.map +1 -0
- package/dist/WebhookSettings-C-gvNAW1.cjs +1 -0
- package/dist/WebhookSettings-C-gvNAW1.cjs.map +1 -0
- package/dist/WebhookSettings-CGyDKjrm.cjs +1 -0
- package/dist/WebhookSettings-CGyDKjrm.cjs.map +1 -0
- package/dist/WebhookSettings-kIstSjZi.js +17 -0
- package/dist/WebhookSettings-kIstSjZi.js.map +1 -0
- package/dist/WithdrawalsSection-sljIyeaz.cjs +1 -0
- package/dist/WithdrawalsSection-sljIyeaz.cjs.map +1 -0
- package/dist/WithdrawalsSection-yRDTVFsb.js +27 -0
- package/dist/WithdrawalsSection-yRDTVFsb.js.map +1 -0
- 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/assets/argon2Worker-Bi5TuQvD.js.map +1 -1
- package/dist/email-only.cjs +1 -1
- package/dist/email-only.d.ts +645 -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 +554 -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 +5030 -144
- package/dist/index.js +13482 -117
- package/dist/index.js.map +1 -1
- package/dist/login-react.css +1 -1
- package/dist/plugin-8_dpq7tC.cjs +1 -0
- package/dist/plugin-8_dpq7tC.cjs.map +1 -0
- package/dist/plugin-D1NdppqC.js +596 -0
- package/dist/plugin-D1NdppqC.js.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-4DyQMJCk.cjs +1 -0
- package/dist/shamir-4DyQMJCk.cjs.map +1 -0
- package/dist/{solanaKeypair-BlXol3nh.js → shamir-L-s-Tp1Z.js} +765 -757
- package/dist/shamir-L-s-Tp1Z.js.map +1 -0
- package/dist/silentWalletEnroll-BgTb4H5I.cjs +1 -0
- package/dist/silentWalletEnroll-BgTb4H5I.cjs.map +1 -0
- package/dist/silentWalletEnroll-DWt6Pr3B.js +41 -0
- package/dist/silentWalletEnroll-DWt6Pr3B.js.map +1 -0
- package/dist/solana-only.cjs +1 -1
- package/dist/solana-only.d.ts +605 -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-BTSyeAfg.js +151 -0
- package/dist/useAdminDeposits-BTSyeAfg.js.map +1 -0
- package/dist/useAdminDeposits-BkkCwHWp.cjs +1 -0
- package/dist/useAdminDeposits-BkkCwHWp.cjs.map +1 -0
- package/dist/{ErrorMessage-DU2VBb85.js → useAuth-C3dpk0po.js} +1005 -1241
- package/dist/useAuth-C3dpk0po.js.map +1 -0
- package/dist/useAuth-D3Pk_H3z.cjs +1 -0
- package/dist/useAuth-D3Pk_H3z.cjs.map +1 -0
- package/dist/useCedrosLogin-C9MrcZvh.cjs +1 -0
- package/dist/useCedrosLogin-C9MrcZvh.cjs.map +1 -0
- package/dist/useCedrosLogin-_94MmGGq.js +216 -0
- package/dist/useCedrosLogin-_94MmGGq.js.map +1 -0
- package/dist/useOrgs-C3pzMA9h.js +215 -0
- package/dist/useOrgs-C3pzMA9h.js.map +1 -0
- package/dist/useOrgs-DDVRCaVi.cjs +1 -0
- package/dist/useOrgs-DDVRCaVi.cjs.map +1 -0
- package/dist/useSystemSettings-DBlAMjFi.js +97 -0
- package/dist/useSystemSettings-DBlAMjFi.js.map +1 -0
- package/dist/useSystemSettings-DRrreszl.cjs +1 -0
- package/dist/useSystemSettings-DRrreszl.cjs.map +1 -0
- package/dist/useUsersStatsSummary-8qY7iP4G.cjs +1 -0
- package/dist/useUsersStatsSummary-8qY7iP4G.cjs.map +1 -0
- package/dist/useUsersStatsSummary-NjEFvWuz.js +1246 -0
- package/dist/useUsersStatsSummary-NjEFvWuz.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-0Hqr0yDm.js.map +0 -1
- package/dist/DepositsSection-CGKCzM-H.cjs +0 -1
- package/dist/DepositsSection-CGKCzM-H.cjs.map +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/UsersSection-DU86czWP.cjs.map +0 -1
- package/dist/UsersSection-hAcyfSZk.js +0 -81
- package/dist/UsersSection-hAcyfSZk.js.map +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-B1415d-G.js.map +0 -1
- package/dist/WithdrawalsSection-iZJBuZ7O.cjs +0 -1
- package/dist/WithdrawalsSection-iZJBuZ7O.cjs.map +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
|
@@ -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;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Token types and constants for deposit currency selection
|
|
3
|
-
*/
|
|
4
|
-
export interface Token {
|
|
5
|
-
/** Token mint address */
|
|
6
|
-
mint: string;
|
|
7
|
-
/** Token symbol (e.g., SOL, USDC) */
|
|
8
|
-
symbol: string;
|
|
9
|
-
/** Token name (e.g., Solana, USD Coin) */
|
|
10
|
-
name: string;
|
|
11
|
-
/** Token decimals */
|
|
12
|
-
decimals: number;
|
|
13
|
-
/** Token logo URL */
|
|
14
|
-
logoUrl?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Supported stablecoins for deposits
|
|
18
|
-
*/
|
|
19
|
-
export declare const SUPPORTED_TOKENS: Token[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface EmailLoginFormProps {
|
|
2
|
-
onSuccess?: () => void;
|
|
3
|
-
onSwitchToRegister?: () => void;
|
|
4
|
-
/** Called when user clicks "Forgot password?" (only in 'reset' mode) */
|
|
5
|
-
onForgotPassword?: () => void;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Email/password login form
|
|
10
|
-
*/
|
|
11
|
-
export declare function EmailLoginForm({ onSuccess, onSwitchToRegister, onForgotPassword, className, }: EmailLoginFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface EmailRegisterFormProps {
|
|
2
|
-
onSuccess?: () => void;
|
|
3
|
-
onSwitchToLogin?: () => void;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
/** Values collected from the registration form (for callback) */
|
|
7
|
-
export interface RegistrationData {
|
|
8
|
-
termsAccepted: boolean;
|
|
9
|
-
emailOptIn: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Email/password registration form
|
|
13
|
-
*/
|
|
14
|
-
export declare function EmailRegisterForm({ onSuccess, onSwitchToLogin, className, }: EmailRegisterFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface ForgotPasswordFormProps {
|
|
2
|
-
onSuccess?: () => void;
|
|
3
|
-
onCancel?: () => void;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Form for requesting a password reset email.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* <ForgotPasswordForm
|
|
12
|
-
* onSuccess={() => console.log('Email sent!')}
|
|
13
|
-
* onCancel={() => setShowForgotPassword(false)}
|
|
14
|
-
* />
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export declare function ForgotPasswordForm({ onSuccess, onCancel, className, }: ForgotPasswordFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { PasswordValidation } from '../../types';
|
|
3
|
-
export interface PasswordInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
4
|
-
label?: string;
|
|
5
|
-
/** Action element shown on the right side of the label (e.g., "Forgot password?" link) */
|
|
6
|
-
labelAction?: React.ReactNode;
|
|
7
|
-
showStrengthMeter?: boolean;
|
|
8
|
-
onValidationChange?: (validation: PasswordValidation) => void;
|
|
9
|
-
error?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Password input with visibility toggle and optional strength meter
|
|
13
|
-
*/
|
|
14
|
-
export declare function PasswordInput({ label, labelAction, showStrengthMeter, onValidationChange, error, className, onChange, value, ...props }: PasswordInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface ResetPasswordFormProps {
|
|
2
|
-
token: string;
|
|
3
|
-
onSuccess?: () => void;
|
|
4
|
-
onLoginClick?: () => void;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Form for resetting password using a reset token.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* // Get token from URL params
|
|
13
|
-
* const token = new URLSearchParams(location.search).get('token');
|
|
14
|
-
*
|
|
15
|
-
* <ResetPasswordForm
|
|
16
|
-
* token={token}
|
|
17
|
-
* onSuccess={() => navigate('/login')}
|
|
18
|
-
* onLoginClick={() => navigate('/login')}
|
|
19
|
-
* />
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function ResetPasswordForm({ token, onSuccess, onLoginClick, className, }: ResetPasswordFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface GoogleLoginButtonProps {
|
|
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
|
-
/**
|
|
10
|
-
* Google OAuth login button
|
|
11
|
-
*/
|
|
12
|
-
export declare function GoogleLoginButton({ onSuccess, onError, className, variant, size, disabled, }: GoogleLoginButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { OrgRole, DisplayError } from '../../types';
|
|
2
|
-
type InviteRole = Exclude<OrgRole, 'owner'>;
|
|
3
|
-
export interface InviteFormProps {
|
|
4
|
-
/** Callback when invite is submitted */
|
|
5
|
-
onSubmit: (email: string, role: InviteRole) => Promise<void>;
|
|
6
|
-
/** Loading state */
|
|
7
|
-
isLoading?: boolean;
|
|
8
|
-
/** Error message */
|
|
9
|
-
error?: DisplayError;
|
|
10
|
-
/** Available roles for invite (default: admin, member) */
|
|
11
|
-
availableRoles?: InviteRole[];
|
|
12
|
-
/** Default role for new invites */
|
|
13
|
-
defaultRole?: InviteRole;
|
|
14
|
-
/** Additional CSS class */
|
|
15
|
-
className?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Form for inviting new members to an organization.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* function InviteManager() {
|
|
23
|
-
* const { activeOrg } = useOrgs();
|
|
24
|
-
* const { createInvite, isLoading, error } = useInvites(activeOrg?.id);
|
|
25
|
-
*
|
|
26
|
-
* return (
|
|
27
|
-
* <InviteForm
|
|
28
|
-
* onSubmit={createInvite}
|
|
29
|
-
* isLoading={isLoading}
|
|
30
|
-
* error={error?.message}
|
|
31
|
-
* defaultRole="member"
|
|
32
|
-
* />
|
|
33
|
-
* );
|
|
34
|
-
* }
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export declare function InviteForm({ onSubmit, isLoading, error, availableRoles, defaultRole, className, }: InviteFormProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Invite, DisplayError } from '../../types';
|
|
2
|
-
export interface InviteListProps {
|
|
3
|
-
/** List of pending invites */
|
|
4
|
-
invites: Invite[];
|
|
5
|
-
/** Loading state */
|
|
6
|
-
isLoading?: boolean;
|
|
7
|
-
/** Error message */
|
|
8
|
-
error?: DisplayError;
|
|
9
|
-
/** Whether the current user can manage invites */
|
|
10
|
-
canManage?: boolean;
|
|
11
|
-
/** Callback when invite is cancelled */
|
|
12
|
-
onCancel?: (inviteId: string) => Promise<void>;
|
|
13
|
-
/** Callback when invite is resent */
|
|
14
|
-
onResend?: (inviteId: string) => Promise<void>;
|
|
15
|
-
/** Additional CSS class */
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Display and manage pending organization invites.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```tsx
|
|
23
|
-
* function PendingInvites() {
|
|
24
|
-
* const { activeOrg, hasPermission } = useOrgs();
|
|
25
|
-
* const { invites, isLoading, error, cancelInvite, resendInvite } = useInvites(activeOrg?.id);
|
|
26
|
-
*
|
|
27
|
-
* return (
|
|
28
|
-
* <InviteList
|
|
29
|
-
* invites={invites}
|
|
30
|
-
* isLoading={isLoading}
|
|
31
|
-
* error={error?.message}
|
|
32
|
-
* canManage={hasPermission('invite:cancel')}
|
|
33
|
-
* onCancel={cancelInvite}
|
|
34
|
-
* onResend={resendInvite}
|
|
35
|
-
* />
|
|
36
|
-
* );
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export declare function InviteList({ invites, isLoading, error, canManage, onCancel, onResend, className, }: InviteListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Member, OrgRole, DisplayError } from '../../types';
|
|
2
|
-
export interface MemberListProps {
|
|
3
|
-
/** List of members to display */
|
|
4
|
-
members: Member[];
|
|
5
|
-
/** Current user's ID (to prevent self-actions) */
|
|
6
|
-
currentUserId?: string;
|
|
7
|
-
/** Loading state */
|
|
8
|
-
isLoading?: boolean;
|
|
9
|
-
/** Error message */
|
|
10
|
-
error?: DisplayError;
|
|
11
|
-
/** Whether the current user can manage members */
|
|
12
|
-
canManage?: boolean;
|
|
13
|
-
/** Whether the current user can change roles */
|
|
14
|
-
canChangeRoles?: boolean;
|
|
15
|
-
/** Callback when role is updated */
|
|
16
|
-
onUpdateRole?: (userId: string, role: OrgRole) => Promise<void>;
|
|
17
|
-
/** Callback when member is removed */
|
|
18
|
-
onRemove?: (userId: string) => Promise<void>;
|
|
19
|
-
/** Additional CSS class */
|
|
20
|
-
className?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Display and manage organization members.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```tsx
|
|
27
|
-
* function TeamMembers() {
|
|
28
|
-
* const { activeOrg, hasPermission } = useOrgs();
|
|
29
|
-
* const { members, isLoading, error, updateMemberRole, removeMember } = useMembers(activeOrg?.id);
|
|
30
|
-
* const { user } = useAuth();
|
|
31
|
-
*
|
|
32
|
-
* return (
|
|
33
|
-
* <MemberList
|
|
34
|
-
* members={members}
|
|
35
|
-
* currentUserId={user?.id}
|
|
36
|
-
* isLoading={isLoading}
|
|
37
|
-
* error={error?.message}
|
|
38
|
-
* canManage={hasPermission('member:remove')}
|
|
39
|
-
* canChangeRoles={hasPermission('member:role_change')}
|
|
40
|
-
* onUpdateRole={updateMemberRole}
|
|
41
|
-
* onRemove={removeMember}
|
|
42
|
-
* />
|
|
43
|
-
* );
|
|
44
|
-
* }
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
export declare function MemberList({ members, currentUserId, isLoading, error, canManage, canChangeRoles, onUpdateRole, onRemove, className, }: MemberListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CreateOrgRequest } from '../../types';
|
|
2
|
-
export interface CreateOrgFormProps {
|
|
3
|
-
isLoading: boolean;
|
|
4
|
-
onSubmit: (data: CreateOrgRequest) => Promise<void>;
|
|
5
|
-
onCancel: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function CreateOrgForm({ isLoading, onSubmit, onCancel }: CreateOrgFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { OrgWithMembership } from '../../types';
|
|
2
|
-
export interface OrgAvatarProps {
|
|
3
|
-
org: OrgWithMembership;
|
|
4
|
-
size?: 'sm' | 'lg';
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function OrgAvatar({ org, size, className }: OrgAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OrgWithMembership } from '../../types';
|
|
2
|
-
export interface OrgListViewProps {
|
|
3
|
-
orgs: OrgWithMembership[];
|
|
4
|
-
activeOrg: OrgWithMembership | null;
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
onSelect: (orgId: string) => void;
|
|
7
|
-
onCreateClick?: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare function OrgListView({ orgs, activeOrg, isLoading, onSelect, onCreateClick, }: OrgListViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { OrgWithMembership } from '../../types';
|
|
2
|
-
export interface OrgSelectorProps {
|
|
3
|
-
/** List of organizations to display */
|
|
4
|
-
orgs: OrgWithMembership[];
|
|
5
|
-
/** Currently active organization */
|
|
6
|
-
activeOrg: OrgWithMembership | null;
|
|
7
|
-
/** Loading state */
|
|
8
|
-
isLoading?: boolean;
|
|
9
|
-
/** Callback when organization is selected */
|
|
10
|
-
onSelect: (orgId: string) => void;
|
|
11
|
-
/** Callback when "Create organization" is clicked */
|
|
12
|
-
onCreateClick?: () => void;
|
|
13
|
-
/** Additional CSS class */
|
|
14
|
-
className?: string;
|
|
15
|
-
/** Placeholder when no orgs */
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Dropdown selector for switching between organizations.
|
|
20
|
-
*
|
|
21
|
-
* ## A11Y-02: Keyboard Navigation Limitation
|
|
22
|
-
*
|
|
23
|
-
* Currently supports:
|
|
24
|
-
* - Tab/Shift+Tab: Move focus between trigger and items
|
|
25
|
-
* - Escape: Close dropdown
|
|
26
|
-
* - Enter/Space: Select focused item
|
|
27
|
-
*
|
|
28
|
-
* FUTURE: Consider implementing arrow key navigation for enhanced accessibility:
|
|
29
|
-
* - ArrowUp/ArrowDown: Navigate between items in the list
|
|
30
|
-
* - Home/End: Jump to first/last item
|
|
31
|
-
* - Type-ahead: Focus item starting with typed character
|
|
32
|
-
*
|
|
33
|
-
* See WAI-ARIA Listbox Pattern for reference implementation.
|
|
34
|
-
* Currently the component meets basic accessibility requirements.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```tsx
|
|
38
|
-
* function Header() {
|
|
39
|
-
* const { orgs, activeOrg, switchOrg } = useOrgs();
|
|
40
|
-
*
|
|
41
|
-
* return (
|
|
42
|
-
* <OrgSelector
|
|
43
|
-
* orgs={orgs}
|
|
44
|
-
* activeOrg={activeOrg}
|
|
45
|
-
* onSelect={switchOrg}
|
|
46
|
-
* onCreateClick={() => setShowCreateModal(true)}
|
|
47
|
-
* />
|
|
48
|
-
* );
|
|
49
|
-
* }
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
export declare function OrgSelector({ orgs, activeOrg, isLoading, onSelect, onCreateClick, className, placeholder, }: OrgSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { OrgWithMembership, CreateOrgRequest, DisplayError } from '../../types';
|
|
2
|
-
export interface OrgSwitcherProps {
|
|
3
|
-
/** Whether the modal is open */
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
/** Callback to close the modal */
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
/** List of organizations */
|
|
8
|
-
orgs: OrgWithMembership[];
|
|
9
|
-
/** Currently active organization */
|
|
10
|
-
activeOrg: OrgWithMembership | null;
|
|
11
|
-
/** Loading state */
|
|
12
|
-
isLoading?: boolean;
|
|
13
|
-
/** Error message */
|
|
14
|
-
error?: DisplayError;
|
|
15
|
-
/** Callback when organization is selected */
|
|
16
|
-
onSelect: (orgId: string) => void;
|
|
17
|
-
/** Callback when new organization is created */
|
|
18
|
-
onCreate?: (data: CreateOrgRequest) => Promise<void>;
|
|
19
|
-
/** Additional CSS class */
|
|
20
|
-
className?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Modal for switching organizations and creating new ones.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```tsx
|
|
27
|
-
* function App() {
|
|
28
|
-
* const [isOpen, setIsOpen] = useState(false);
|
|
29
|
-
* const { orgs, activeOrg, switchOrg, createOrg } = useOrgs();
|
|
30
|
-
*
|
|
31
|
-
* return (
|
|
32
|
-
* <>
|
|
33
|
-
* <button onClick={() => setIsOpen(true)}>Switch org</button>
|
|
34
|
-
* <OrgSwitcher
|
|
35
|
-
* isOpen={isOpen}
|
|
36
|
-
* onClose={() => setIsOpen(false)}
|
|
37
|
-
* orgs={orgs}
|
|
38
|
-
* activeOrg={activeOrg}
|
|
39
|
-
* onSelect={switchOrg}
|
|
40
|
-
* onCreate={createOrg}
|
|
41
|
-
* />
|
|
42
|
-
* </>
|
|
43
|
-
* );
|
|
44
|
-
* }
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
export declare function OrgSwitcher({ isOpen, onClose, orgs, activeOrg, isLoading, error, onSelect, onCreate, className, }: OrgSwitcherProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Icon components for organization UI
|
|
3
|
-
*
|
|
4
|
-
* Extracted from OrgSwitcher.tsx (F-02)
|
|
5
|
-
*/
|
|
6
|
-
export declare function CloseIcon(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function CheckIcon(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare function PlusIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* User Profile Settings component
|
|
3
|
-
*
|
|
4
|
-
* Allows users to:
|
|
5
|
-
* - View their profile information
|
|
6
|
-
* - Change their password
|
|
7
|
-
* - (Future) Update name and picture when backend supports it
|
|
8
|
-
*/
|
|
9
|
-
export interface UserProfileSettingsProps {
|
|
10
|
-
/** Called when password is changed successfully */
|
|
11
|
-
onPasswordChange?: () => void;
|
|
12
|
-
/** Called when user requests to close/cancel */
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
/** Additional CSS class */
|
|
15
|
-
className?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* User profile settings panel.
|
|
19
|
-
*
|
|
20
|
-
* Shows user profile information and provides controls for
|
|
21
|
-
* changing password and managing profile settings.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```tsx
|
|
25
|
-
* function SettingsPage() {
|
|
26
|
-
* return (
|
|
27
|
-
* <UserProfileSettings
|
|
28
|
-
* onPasswordChange={() => console.log('Password changed')}
|
|
29
|
-
* onClose={() => navigate('/dashboard')}
|
|
30
|
-
* />
|
|
31
|
-
* );
|
|
32
|
-
* }
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export declare function UserProfileSettings({ onPasswordChange, onClose, className, }: UserProfileSettingsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Session, DisplayError } from '../../types';
|
|
2
|
-
export interface SessionListProps {
|
|
3
|
-
/** List of active sessions */
|
|
4
|
-
sessions: Session[];
|
|
5
|
-
/** Loading state */
|
|
6
|
-
isLoading?: boolean;
|
|
7
|
-
/** Error message */
|
|
8
|
-
error?: DisplayError;
|
|
9
|
-
/** Callback to revoke all other sessions */
|
|
10
|
-
onRevokeAll?: () => Promise<void>;
|
|
11
|
-
/** Additional CSS class */
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Display active sessions and allow revoking all other sessions.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```tsx
|
|
19
|
-
* function SecuritySettings() {
|
|
20
|
-
* const { sessions, isLoading, error, revokeAllSessions } = useSessions();
|
|
21
|
-
*
|
|
22
|
-
* return (
|
|
23
|
-
* <SessionList
|
|
24
|
-
* sessions={sessions}
|
|
25
|
-
* isLoading={isLoading}
|
|
26
|
-
* error={error?.message}
|
|
27
|
-
* onRevokeAll={revokeAllSessions}
|
|
28
|
-
* />
|
|
29
|
-
* );
|
|
30
|
-
* }
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare function SessionList({ sessions, isLoading, error, onRevokeAll, className, }: SessionListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Component, ReactNode, ErrorInfo } from 'react';
|
|
2
|
-
export interface ErrorBoundaryProps {
|
|
3
|
-
/** Child components to render */
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
/** Custom fallback UI to show when an error occurs */
|
|
6
|
-
fallback?: ReactNode;
|
|
7
|
-
/** Callback when an error is caught */
|
|
8
|
-
onError?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
9
|
-
/** Whether to show error details (useful for development) */
|
|
10
|
-
showDetails?: boolean;
|
|
11
|
-
}
|
|
12
|
-
interface ErrorBoundaryState {
|
|
13
|
-
hasError: boolean;
|
|
14
|
-
error: Error | null;
|
|
15
|
-
errorInfo: ErrorInfo | null;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Error Boundary component that catches JavaScript errors in child components.
|
|
19
|
-
* Prevents the entire app from crashing and shows a fallback UI.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```tsx
|
|
23
|
-
* <ErrorBoundary
|
|
24
|
-
* fallback={<div>Something went wrong</div>}
|
|
25
|
-
* onError={(error) => logError(error)}
|
|
26
|
-
* >
|
|
27
|
-
* <LoginForm />
|
|
28
|
-
* </ErrorBoundary>
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
32
|
-
constructor(props: ErrorBoundaryProps);
|
|
33
|
-
static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState>;
|
|
34
|
-
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
35
|
-
handleRetry: () => void;
|
|
36
|
-
render(): ReactNode;
|
|
37
|
-
}
|
|
38
|
-
export {};
|