@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.
Files changed (435) hide show
  1. package/README.md +68 -0
  2. package/dist/AdminDepositList-CyT4VBH8.js +311 -0
  3. package/dist/AdminDepositList-CyT4VBH8.js.map +1 -0
  4. package/dist/AdminDepositList-b2AXtLg0.cjs +1 -0
  5. package/dist/AdminDepositList-b2AXtLg0.cjs.map +1 -0
  6. package/dist/AdminWithdrawalHistory-Cud-yuWy.js +916 -0
  7. package/dist/AdminWithdrawalHistory-Cud-yuWy.js.map +1 -0
  8. package/dist/AdminWithdrawalHistory-DL9zbu2b.cjs +1 -0
  9. package/dist/AdminWithdrawalHistory-DL9zbu2b.cjs.map +1 -0
  10. package/dist/AuthenticationSettings-D739nNul.cjs +1 -0
  11. package/dist/AuthenticationSettings-D739nNul.cjs.map +1 -0
  12. package/dist/AuthenticationSettings-DtLoxQ2z.cjs +1 -0
  13. package/dist/AuthenticationSettings-DtLoxQ2z.cjs.map +1 -0
  14. package/dist/AuthenticationSettings-Dx3JCI3m.js +9 -0
  15. package/dist/AuthenticationSettings-Dx3JCI3m.js.map +1 -0
  16. package/dist/AuthenticationSettings-vowmQPXz.js +525 -0
  17. package/dist/AuthenticationSettings-vowmQPXz.js.map +1 -0
  18. package/dist/AutosaveStatus-CCrZszKA.cjs +1 -0
  19. package/dist/AutosaveStatus-CCrZszKA.cjs.map +1 -0
  20. package/dist/AutosaveStatus-Ciyt350A.js +1497 -0
  21. package/dist/AutosaveStatus-Ciyt350A.js.map +1 -0
  22. package/dist/CreditSystemSettings-BQ3h4CyM.js +210 -0
  23. package/dist/CreditSystemSettings-BQ3h4CyM.js.map +1 -0
  24. package/dist/CreditSystemSettings-C6dUsu72.cjs +1 -0
  25. package/dist/CreditSystemSettings-C6dUsu72.cjs.map +1 -0
  26. package/dist/CreditSystemSettings-CBot8EPW.cjs +1 -0
  27. package/dist/CreditSystemSettings-CBot8EPW.cjs.map +1 -0
  28. package/dist/CreditSystemSettings-bVuNLsqp.js +9 -0
  29. package/dist/CreditSystemSettings-bVuNLsqp.js.map +1 -0
  30. package/dist/DepositsSection-BkKUS4vk.cjs +1 -0
  31. package/dist/DepositsSection-BkKUS4vk.cjs.map +1 -0
  32. package/dist/{DepositsSection-0Hqr0yDm.js → DepositsSection-DD9MKUFt.js} +20 -14
  33. package/dist/DepositsSection-DD9MKUFt.js.map +1 -0
  34. package/dist/EmailRegisterForm-Pvm3I8GP.cjs +1 -0
  35. package/dist/EmailRegisterForm-Pvm3I8GP.cjs.map +1 -0
  36. package/dist/EmailRegisterForm-nI0BOIxR.js +927 -0
  37. package/dist/EmailRegisterForm-nI0BOIxR.js.map +1 -0
  38. package/dist/EmailSettings-B9qwPSiM.cjs +1 -0
  39. package/dist/EmailSettings-B9qwPSiM.cjs.map +1 -0
  40. package/dist/EmailSettings-CCA8dNCi.js +17 -0
  41. package/dist/EmailSettings-CCA8dNCi.js.map +1 -0
  42. package/dist/EmailSettings-RbgAq9FB.cjs +1 -0
  43. package/dist/EmailSettings-RbgAq9FB.cjs.map +1 -0
  44. package/dist/{AuthenticationSettings-BSoIQ58T.js → EmailSettings-mxlKNcPl.js} +3 -3
  45. package/dist/EmailSettings-mxlKNcPl.js.map +1 -0
  46. package/dist/EmbeddedWalletSettings-B4h-8rxB.cjs +1 -0
  47. package/dist/EmbeddedWalletSettings-B4h-8rxB.cjs.map +1 -0
  48. package/dist/EmbeddedWalletSettings-BInZvFZf.js +79 -0
  49. package/dist/EmbeddedWalletSettings-BInZvFZf.js.map +1 -0
  50. package/dist/{EmbeddedWalletSettings-iVf_3pn3.js → EmbeddedWalletSettings-CXlZFFDw.js} +3 -3
  51. package/dist/EmbeddedWalletSettings-CXlZFFDw.js.map +1 -0
  52. package/dist/EmbeddedWalletSettings-D5JXae1L.cjs +1 -0
  53. package/dist/EmbeddedWalletSettings-D5JXae1L.cjs.map +1 -0
  54. package/dist/ErrorMessage-CHbYbVi2.cjs +1 -0
  55. package/dist/ErrorMessage-CHbYbVi2.cjs.map +1 -0
  56. package/dist/ErrorMessage-CcEK0pYO.js +64 -0
  57. package/dist/ErrorMessage-CcEK0pYO.js.map +1 -0
  58. package/dist/{GoogleLoginButton-BzHr545L.js → GoogleLoginButton-CXwp4LsQ.js} +4 -3
  59. package/dist/{GoogleLoginButton-BzHr545L.js.map → GoogleLoginButton-CXwp4LsQ.js.map} +1 -1
  60. package/dist/GoogleLoginButton-zS_69-KV.cjs +1 -0
  61. package/dist/{GoogleLoginButton-DoAdOqb3.cjs.map → GoogleLoginButton-zS_69-KV.cjs.map} +1 -1
  62. package/dist/LoadingSpinner-6vml-zwr.js +79 -0
  63. package/dist/LoadingSpinner-6vml-zwr.js.map +1 -0
  64. package/dist/LoadingSpinner-d6sSxgQN.cjs +1 -0
  65. package/dist/LoadingSpinner-d6sSxgQN.cjs.map +1 -0
  66. package/dist/PermissionsSection-BPbE-hNx.cjs +1 -0
  67. package/dist/PermissionsSection-BPbE-hNx.cjs.map +1 -0
  68. package/dist/PermissionsSection-CighC1p6.js +1026 -0
  69. package/dist/PermissionsSection-CighC1p6.js.map +1 -0
  70. package/dist/ServerSettings-BE8fsE5k.js +84 -0
  71. package/dist/ServerSettings-BE8fsE5k.js.map +1 -0
  72. package/dist/ServerSettings-CYTlQ2xy.cjs +1 -0
  73. package/dist/ServerSettings-CYTlQ2xy.cjs.map +1 -0
  74. package/dist/ServerSettings-DFs9jQ3f.cjs +1 -0
  75. package/dist/ServerSettings-DFs9jQ3f.cjs.map +1 -0
  76. package/dist/{ServerSettings-C_osdbiX.js → ServerSettings-pSmWDC1d.js} +3 -3
  77. package/dist/ServerSettings-pSmWDC1d.js.map +1 -0
  78. package/dist/SettingsPageLayout--GZ_iHLc.js +50 -0
  79. package/dist/SettingsPageLayout--GZ_iHLc.js.map +1 -0
  80. package/dist/SettingsPageLayout-j5lMjEID.cjs +1 -0
  81. package/dist/SettingsPageLayout-j5lMjEID.cjs.map +1 -0
  82. package/dist/SolanaLoginButton-BjOxpE1C.cjs +1 -0
  83. package/dist/{SolanaLoginButton-CPzms0kf.cjs.map → SolanaLoginButton-BjOxpE1C.cjs.map} +1 -1
  84. package/dist/{SolanaLoginButton-C-CfZxAZ.js → SolanaLoginButton-P22QjBaO.js} +5 -4
  85. package/dist/{SolanaLoginButton-C-CfZxAZ.js.map → SolanaLoginButton-P22QjBaO.js.map} +1 -1
  86. package/dist/StatsBar-BX-hHtTq.js +66 -0
  87. package/dist/StatsBar-BX-hHtTq.js.map +1 -0
  88. package/dist/StatsBar-DTUZCwDD.cjs +1 -0
  89. package/dist/StatsBar-DTUZCwDD.cjs.map +1 -0
  90. package/dist/{TeamSection-Bjt72upx.js → TeamSection-BIECkp7g.js} +27 -26
  91. package/dist/TeamSection-BIECkp7g.js.map +1 -0
  92. package/dist/TeamSection-BOH9pv_E.cjs +1 -0
  93. package/dist/TeamSection-BOH9pv_E.cjs.map +1 -0
  94. package/dist/UsersSection-e6q7FHzx.cjs +1 -0
  95. package/dist/UsersSection-e6q7FHzx.cjs.map +1 -0
  96. package/dist/UsersSection-t-zm0jZW.js +33 -0
  97. package/dist/UsersSection-t-zm0jZW.js.map +1 -0
  98. package/dist/{WebhookSettings-IyhyTFes.js → WebhookSettings-Bb70MbFj.js} +4 -4
  99. package/dist/WebhookSettings-Bb70MbFj.js.map +1 -0
  100. package/dist/WebhookSettings-C-gvNAW1.cjs +1 -0
  101. package/dist/WebhookSettings-C-gvNAW1.cjs.map +1 -0
  102. package/dist/WebhookSettings-CGyDKjrm.cjs +1 -0
  103. package/dist/WebhookSettings-CGyDKjrm.cjs.map +1 -0
  104. package/dist/WebhookSettings-kIstSjZi.js +17 -0
  105. package/dist/WebhookSettings-kIstSjZi.js.map +1 -0
  106. package/dist/WithdrawalsSection-sljIyeaz.cjs +1 -0
  107. package/dist/WithdrawalsSection-sljIyeaz.cjs.map +1 -0
  108. package/dist/WithdrawalsSection-yRDTVFsb.js +27 -0
  109. package/dist/WithdrawalsSection-yRDTVFsb.js.map +1 -0
  110. package/dist/admin-only.cjs +1 -0
  111. package/dist/admin-only.cjs.map +1 -0
  112. package/dist/{admin/types.d.ts → admin-only.d.ts} +228 -167
  113. package/dist/admin-only.js +8 -0
  114. package/dist/admin-only.js.map +1 -0
  115. package/dist/assets/argon2Worker-Bi5TuQvD.js.map +1 -1
  116. package/dist/email-only.cjs +1 -1
  117. package/dist/email-only.d.ts +645 -16
  118. package/dist/email-only.js +16 -13
  119. package/dist/email-only.js.map +1 -1
  120. package/dist/google-only.cjs +1 -1
  121. package/dist/google-only.d.ts +554 -13
  122. package/dist/google-only.js +11 -8
  123. package/dist/google-only.js.map +1 -1
  124. package/dist/index.cjs +2061 -1
  125. package/dist/index.cjs.map +1 -1
  126. package/dist/index.d.ts +5030 -144
  127. package/dist/index.js +13482 -117
  128. package/dist/index.js.map +1 -1
  129. package/dist/login-react.css +1 -1
  130. package/dist/plugin-8_dpq7tC.cjs +1 -0
  131. package/dist/plugin-8_dpq7tC.cjs.map +1 -0
  132. package/dist/plugin-D1NdppqC.js +596 -0
  133. package/dist/plugin-D1NdppqC.js.map +1 -0
  134. package/dist/sanitization-Bo_tn-L2.cjs +1 -0
  135. package/dist/sanitization-Bo_tn-L2.cjs.map +1 -0
  136. package/dist/sanitization-CQ-H1MSg.js +39 -0
  137. package/dist/sanitization-CQ-H1MSg.js.map +1 -0
  138. package/dist/shamir-4DyQMJCk.cjs +1 -0
  139. package/dist/shamir-4DyQMJCk.cjs.map +1 -0
  140. package/dist/{solanaKeypair-BlXol3nh.js → shamir-L-s-Tp1Z.js} +765 -757
  141. package/dist/shamir-L-s-Tp1Z.js.map +1 -0
  142. package/dist/silentWalletEnroll-BgTb4H5I.cjs +1 -0
  143. package/dist/silentWalletEnroll-BgTb4H5I.cjs.map +1 -0
  144. package/dist/silentWalletEnroll-DWt6Pr3B.js +41 -0
  145. package/dist/silentWalletEnroll-DWt6Pr3B.js.map +1 -0
  146. package/dist/solana-only.cjs +1 -1
  147. package/dist/solana-only.d.ts +605 -13
  148. package/dist/solana-only.js +12 -9
  149. package/dist/solana-only.js.map +1 -1
  150. package/dist/style.d.ts +1 -0
  151. package/dist/useAdminDeposits-BTSyeAfg.js +151 -0
  152. package/dist/useAdminDeposits-BTSyeAfg.js.map +1 -0
  153. package/dist/useAdminDeposits-BkkCwHWp.cjs +1 -0
  154. package/dist/useAdminDeposits-BkkCwHWp.cjs.map +1 -0
  155. package/dist/{ErrorMessage-DU2VBb85.js → useAuth-C3dpk0po.js} +1005 -1241
  156. package/dist/useAuth-C3dpk0po.js.map +1 -0
  157. package/dist/useAuth-D3Pk_H3z.cjs +1 -0
  158. package/dist/useAuth-D3Pk_H3z.cjs.map +1 -0
  159. package/dist/useCedrosLogin-C9MrcZvh.cjs +1 -0
  160. package/dist/useCedrosLogin-C9MrcZvh.cjs.map +1 -0
  161. package/dist/useCedrosLogin-_94MmGGq.js +216 -0
  162. package/dist/useCedrosLogin-_94MmGGq.js.map +1 -0
  163. package/dist/useOrgs-C3pzMA9h.js +215 -0
  164. package/dist/useOrgs-C3pzMA9h.js.map +1 -0
  165. package/dist/useOrgs-DDVRCaVi.cjs +1 -0
  166. package/dist/useOrgs-DDVRCaVi.cjs.map +1 -0
  167. package/dist/useSystemSettings-DBlAMjFi.js +97 -0
  168. package/dist/useSystemSettings-DBlAMjFi.js.map +1 -0
  169. package/dist/useSystemSettings-DRrreszl.cjs +1 -0
  170. package/dist/useSystemSettings-DRrreszl.cjs.map +1 -0
  171. package/dist/useUsersStatsSummary-8qY7iP4G.cjs +1 -0
  172. package/dist/useUsersStatsSummary-8qY7iP4G.cjs.map +1 -0
  173. package/dist/useUsersStatsSummary-NjEFvWuz.js +1246 -0
  174. package/dist/useUsersStatsSummary-NjEFvWuz.js.map +1 -0
  175. package/dist/{validation-BebL7hMF.js → validation-B8kMV3BL.js} +1 -1
  176. package/dist/{validation-BebL7hMF.js.map → validation-B8kMV3BL.js.map} +1 -1
  177. package/dist/{validation-BeXIfuHB.cjs → validation-BuGQrA-K.cjs} +1 -1
  178. package/dist/{validation-BeXIfuHB.cjs.map → validation-BuGQrA-K.cjs.map} +1 -1
  179. package/package.json +11 -1
  180. package/dist/AuthenticationSettings-BSoIQ58T.js.map +0 -1
  181. package/dist/AuthenticationSettings-CNmWEPFV.cjs +0 -1
  182. package/dist/AuthenticationSettings-CNmWEPFV.cjs.map +0 -1
  183. package/dist/CreditSystemSettings-BYxoFwaP.js +0 -9
  184. package/dist/CreditSystemSettings-BYxoFwaP.js.map +0 -1
  185. package/dist/CreditSystemSettings-D2fLorNx.cjs +0 -1
  186. package/dist/CreditSystemSettings-D2fLorNx.cjs.map +0 -1
  187. package/dist/DepositsSection-0Hqr0yDm.js.map +0 -1
  188. package/dist/DepositsSection-CGKCzM-H.cjs +0 -1
  189. package/dist/DepositsSection-CGKCzM-H.cjs.map +0 -1
  190. package/dist/EmailRegisterForm-C0PStlj5.js +0 -961
  191. package/dist/EmailRegisterForm-C0PStlj5.js.map +0 -1
  192. package/dist/EmailRegisterForm-DaPLGws2.cjs +0 -1
  193. package/dist/EmailRegisterForm-DaPLGws2.cjs.map +0 -1
  194. package/dist/EmailSettings-CiLDwzNb.cjs +0 -1
  195. package/dist/EmailSettings-CiLDwzNb.cjs.map +0 -1
  196. package/dist/EmailSettings-DTjpO65J.js +0 -9
  197. package/dist/EmailSettings-DTjpO65J.js.map +0 -1
  198. package/dist/EmbeddedWalletSettings-CX7sYiPy.cjs +0 -1
  199. package/dist/EmbeddedWalletSettings-CX7sYiPy.cjs.map +0 -1
  200. package/dist/EmbeddedWalletSettings-iVf_3pn3.js.map +0 -1
  201. package/dist/ErrorMessage-BXHiYibN.cjs +0 -1
  202. package/dist/ErrorMessage-BXHiYibN.cjs.map +0 -1
  203. package/dist/ErrorMessage-DU2VBb85.js.map +0 -1
  204. package/dist/GoogleLoginButton-DoAdOqb3.cjs +0 -1
  205. package/dist/ServerSettings-C_osdbiX.js.map +0 -1
  206. package/dist/ServerSettings-HqSb_VDj.cjs +0 -1
  207. package/dist/ServerSettings-HqSb_VDj.cjs.map +0 -1
  208. package/dist/SolanaLoginButton-CPzms0kf.cjs +0 -1
  209. package/dist/TeamSection-Bjt72upx.js.map +0 -1
  210. package/dist/TeamSection-DZeWHkLd.cjs +0 -1
  211. package/dist/TeamSection-DZeWHkLd.cjs.map +0 -1
  212. package/dist/UsersSection-DU86czWP.cjs +0 -1
  213. package/dist/UsersSection-DU86czWP.cjs.map +0 -1
  214. package/dist/UsersSection-hAcyfSZk.js +0 -81
  215. package/dist/UsersSection-hAcyfSZk.js.map +0 -1
  216. package/dist/WebhookSettings-Br9bakAL.cjs +0 -1
  217. package/dist/WebhookSettings-Br9bakAL.cjs.map +0 -1
  218. package/dist/WebhookSettings-IyhyTFes.js.map +0 -1
  219. package/dist/WithdrawalsSection-B1415d-G.js +0 -20
  220. package/dist/WithdrawalsSection-B1415d-G.js.map +0 -1
  221. package/dist/WithdrawalsSection-iZJBuZ7O.cjs +0 -1
  222. package/dist/WithdrawalsSection-iZJBuZ7O.cjs.map +0 -1
  223. package/dist/admin/AdminShell.d.ts +0 -38
  224. package/dist/admin/icons.d.ts +0 -2
  225. package/dist/admin/index.d.ts +0 -10
  226. package/dist/admin/plugin.d.ts +0 -3
  227. package/dist/admin/sections/AuthenticationSettings.d.ts +0 -3
  228. package/dist/admin/sections/CreditSystemSettings.d.ts +0 -3
  229. package/dist/admin/sections/DepositsSection.d.ts +0 -3
  230. package/dist/admin/sections/EmailSettings.d.ts +0 -3
  231. package/dist/admin/sections/EmbeddedWalletSettings.d.ts +0 -3
  232. package/dist/admin/sections/FeatureSettings.d.ts +0 -3
  233. package/dist/admin/sections/InvitesSection.d.ts +0 -3
  234. package/dist/admin/sections/MembersSection.d.ts +0 -3
  235. package/dist/admin/sections/ServerSettings.d.ts +0 -3
  236. package/dist/admin/sections/SettingsSections.d.ts +0 -7
  237. package/dist/admin/sections/TeamSection.d.ts +0 -3
  238. package/dist/admin/sections/UsersSection.d.ts +0 -3
  239. package/dist/admin/sections/WebhookSettings.d.ts +0 -3
  240. package/dist/admin/sections/WithdrawalsSection.d.ts +0 -3
  241. package/dist/components/LoginButton.d.ts +0 -23
  242. package/dist/components/LoginForm.d.ts +0 -9
  243. package/dist/components/LoginModal.d.ts +0 -9
  244. package/dist/components/admin/AdminUserDetail.d.ts +0 -23
  245. package/dist/components/admin/AdminUserList.d.ts +0 -21
  246. package/dist/components/admin/CedrosAdminDashboard.d.ts +0 -52
  247. package/dist/components/admin/PermissionsSection.d.ts +0 -7
  248. package/dist/components/admin/ProfileDropdown.d.ts +0 -34
  249. package/dist/components/admin/SetupWizard.d.ts +0 -30
  250. package/dist/components/admin/StatsBar.d.ts +0 -17
  251. package/dist/components/admin/SystemSettings.d.ts +0 -19
  252. package/dist/components/admin/settings/AuthenticationSettings.d.ts +0 -4
  253. package/dist/components/admin/settings/AutosaveStatus.d.ts +0 -6
  254. package/dist/components/admin/settings/CreditSystemSettings.d.ts +0 -6
  255. package/dist/components/admin/settings/EmailSettings.d.ts +0 -4
  256. package/dist/components/admin/settings/EmbeddedWalletSettings.d.ts +0 -4
  257. package/dist/components/admin/settings/FeatureSettings.d.ts +0 -4
  258. package/dist/components/admin/settings/MessagingSettings.d.ts +0 -4
  259. package/dist/components/admin/settings/SecuritySettings.d.ts +0 -4
  260. package/dist/components/admin/settings/ServerSettings.d.ts +0 -4
  261. package/dist/components/admin/settings/SettingsPageLayout.d.ts +0 -16
  262. package/dist/components/admin/settings/SsoProvidersSettings.d.ts +0 -4
  263. package/dist/components/admin/settings/WebhookSettings.d.ts +0 -4
  264. package/dist/components/admin/settings/index.d.ts +0 -31
  265. package/dist/components/admin/settings/settingsInputs.d.ts +0 -79
  266. package/dist/components/admin/settings/settingsMetadata.d.ts +0 -18
  267. package/dist/components/apple/AppleLoginButton.d.ts +0 -29
  268. package/dist/components/deposit/CreditBalance.d.ts +0 -19
  269. package/dist/components/deposit/DepositFlow.d.ts +0 -118
  270. package/dist/components/deposit/FeeConfigDisplay.d.ts +0 -15
  271. package/dist/components/deposit/History.d.ts +0 -21
  272. package/dist/components/deposit/TieredAmountSlider.d.ts +0 -19
  273. package/dist/components/deposit/TokenSelector.d.ts +0 -23
  274. package/dist/components/deposit/admin/AdminDepositList.d.ts +0 -21
  275. package/dist/components/deposit/admin/AdminDepositStats.d.ts +0 -15
  276. package/dist/components/deposit/admin/AdminPrivacyPeriodDeposits.d.ts +0 -19
  277. package/dist/components/deposit/admin/AdminWithdrawalHistory.d.ts +0 -19
  278. package/dist/components/deposit/admin/AdminWithdrawalQueue.d.ts +0 -23
  279. package/dist/components/deposit/admin/AdminWithdrawalStats.d.ts +0 -10
  280. package/dist/components/deposit/admin/FeatureDisabledMessage.d.ts +0 -15
  281. package/dist/components/deposit/admin/PrivacySystemStatus.d.ts +0 -15
  282. package/dist/components/deposit/admin/featureDisabled.d.ts +0 -14
  283. package/dist/components/deposit/admin/index.d.ts +0 -22
  284. package/dist/components/deposit/index.d.ts +0 -12
  285. package/dist/components/deposit/tierUtils.d.ts +0 -8
  286. package/dist/components/deposit/tokens.d.ts +0 -19
  287. package/dist/components/email/EmailLoginForm.d.ts +0 -11
  288. package/dist/components/email/EmailRegisterForm.d.ts +0 -14
  289. package/dist/components/email/ForgotPasswordForm.d.ts +0 -17
  290. package/dist/components/email/PasswordInput.d.ts +0 -14
  291. package/dist/components/email/ResetPasswordForm.d.ts +0 -22
  292. package/dist/components/google/GoogleLoginButton.d.ts +0 -12
  293. package/dist/components/invites/InviteForm.d.ts +0 -38
  294. package/dist/components/invites/InviteList.d.ts +0 -40
  295. package/dist/components/members/MemberList.d.ts +0 -47
  296. package/dist/components/org/CreateOrgForm.d.ts +0 -7
  297. package/dist/components/org/OrgAvatar.d.ts +0 -7
  298. package/dist/components/org/OrgListView.d.ts +0 -9
  299. package/dist/components/org/OrgSelector.d.ts +0 -52
  300. package/dist/components/org/OrgSwitcher.d.ts +0 -47
  301. package/dist/components/org/icons.d.ts +0 -8
  302. package/dist/components/profile/UserProfileSettings.d.ts +0 -35
  303. package/dist/components/profile/index.d.ts +0 -2
  304. package/dist/components/sessions/SessionList.d.ts +0 -33
  305. package/dist/components/shared/ErrorBoundary.d.ts +0 -38
  306. package/dist/components/shared/ErrorMessage.d.ts +0 -14
  307. package/dist/components/shared/LoadingSpinner.d.ts +0 -16
  308. package/dist/components/solana/SolanaLoginButton.d.ts +0 -49
  309. package/dist/components/templates/FullPageLayout.d.ts +0 -40
  310. package/dist/components/templates/SplitPageLayout.d.ts +0 -44
  311. package/dist/components/templates/index.d.ts +0 -4
  312. package/dist/components/totp/OtpInput.d.ts +0 -32
  313. package/dist/components/totp/QrCode.d.ts +0 -21
  314. package/dist/components/totp/TotpSettings.d.ts +0 -38
  315. package/dist/components/totp/TotpSetup.d.ts +0 -23
  316. package/dist/components/totp/TotpVerify.d.ts +0 -25
  317. package/dist/components/totp/index.d.ts +0 -10
  318. package/dist/components/wallet/CapabilityWarning.d.ts +0 -11
  319. package/dist/components/wallet/PasskeyPrompt.d.ts +0 -34
  320. package/dist/components/wallet/RecoveryPhraseDisplay.d.ts +0 -18
  321. package/dist/components/wallet/RecoveryPhraseInput.d.ts +0 -21
  322. package/dist/components/wallet/WalletAddressRow.d.ts +0 -10
  323. package/dist/components/wallet/WalletEnrollment.d.ts +0 -15
  324. package/dist/components/wallet/WalletManager.d.ts +0 -9
  325. package/dist/components/wallet/WalletRecovery.d.ts +0 -19
  326. package/dist/components/wallet/WalletStatus.d.ts +0 -28
  327. package/dist/components/wallet/WalletUnlock.d.ts +0 -23
  328. package/dist/components/wallet/index.d.ts +0 -23
  329. package/dist/components/webauthn/PasskeyLoginButton.d.ts +0 -8
  330. package/dist/context/CedrosLoginContext.d.ts +0 -24
  331. package/dist/context/CedrosLoginProvider.d.ts +0 -17
  332. package/dist/context/EmbeddedWalletExposure.d.ts +0 -19
  333. package/dist/context/useCedrosLogin.d.ts +0 -12
  334. package/dist/crypto/aesGcm.d.ts +0 -89
  335. package/dist/crypto/argon2.d.ts +0 -65
  336. package/dist/crypto/argon2Worker.d.ts +0 -1
  337. package/dist/crypto/argon2WorkerClient.d.ts +0 -28
  338. package/dist/crypto/bip39.d.ts +0 -106
  339. package/dist/crypto/capabilities.d.ts +0 -35
  340. package/dist/crypto/entropy.d.ts +0 -56
  341. package/dist/crypto/hkdf.d.ts +0 -38
  342. package/dist/crypto/index.d.ts +0 -30
  343. package/dist/crypto/secureWipe.d.ts +0 -71
  344. package/dist/crypto/shamir.d.ts +0 -52
  345. package/dist/crypto/solanaKeypair.d.ts +0 -63
  346. package/dist/crypto/types.d.ts +0 -134
  347. package/dist/crypto/webauthnPrf.d.ts +0 -108
  348. package/dist/hooks/useAdminDeposits.d.ts +0 -10
  349. package/dist/hooks/useAdminUsers.d.ts +0 -28
  350. package/dist/hooks/useAppleAuth.d.ts +0 -52
  351. package/dist/hooks/useAuth.d.ts +0 -34
  352. package/dist/hooks/useAuthSession.d.ts +0 -19
  353. package/dist/hooks/useAuthorize.d.ts +0 -62
  354. package/dist/hooks/useCredits.d.ts +0 -11
  355. package/dist/hooks/useDashboardPermissions.d.ts +0 -45
  356. package/dist/hooks/useDeposit.d.ts +0 -16
  357. package/dist/hooks/useEmailAuth.d.ts +0 -60
  358. package/dist/hooks/useGoogleAuth.d.ts +0 -67
  359. package/dist/hooks/useInstantLink.d.ts +0 -42
  360. package/dist/hooks/useInvites.d.ts +0 -57
  361. package/dist/hooks/useMembers.d.ts +0 -52
  362. package/dist/hooks/useOrgs.d.ts +0 -49
  363. package/dist/hooks/usePasswordReset.d.ts +0 -32
  364. package/dist/hooks/usePendingRecovery.d.ts +0 -34
  365. package/dist/hooks/useProfile.d.ts +0 -35
  366. package/dist/hooks/useRateLimiter.d.ts +0 -58
  367. package/dist/hooks/useServerFeatures.d.ts +0 -55
  368. package/dist/hooks/useSessions.d.ts +0 -45
  369. package/dist/hooks/useSettingsAutosave.d.ts +0 -29
  370. package/dist/hooks/useSetup.d.ts +0 -25
  371. package/dist/hooks/useSolanaAuth.d.ts +0 -30
  372. package/dist/hooks/useSsoProviders.d.ts +0 -52
  373. package/dist/hooks/useSystemSettings.d.ts +0 -47
  374. package/dist/hooks/useThemeManager.d.ts +0 -11
  375. package/dist/hooks/useTotp.d.ts +0 -52
  376. package/dist/hooks/useTotpVerify.d.ts +0 -38
  377. package/dist/hooks/useTransactionSigning.d.ts +0 -45
  378. package/dist/hooks/useWallet.d.ts +0 -10
  379. package/dist/hooks/useWalletDiscovery.d.ts +0 -24
  380. package/dist/hooks/useWalletEnrollment.d.ts +0 -9
  381. package/dist/hooks/useWalletMaterial.d.ts +0 -10
  382. package/dist/hooks/useWalletRecovery.d.ts +0 -9
  383. package/dist/hooks/useWalletSigning.d.ts +0 -31
  384. package/dist/hooks/useWebAuthn.d.ts +0 -25
  385. package/dist/i18n/I18nProvider.d.ts +0 -16
  386. package/dist/i18n/context.d.ts +0 -6
  387. package/dist/i18n/index.d.ts +0 -5
  388. package/dist/i18n/translations.d.ts +0 -66
  389. package/dist/i18n/useI18n.d.ts +0 -9
  390. package/dist/index-ZS9AwAal.cjs +0 -2061
  391. package/dist/index-ZS9AwAal.cjs.map +0 -1
  392. package/dist/index-dgg5tlO7.js +0 -19650
  393. package/dist/index-dgg5tlO7.js.map +0 -1
  394. package/dist/silentWalletEnroll-C3JRAD9_.js +0 -42
  395. package/dist/silentWalletEnroll-C3JRAD9_.js.map +0 -1
  396. package/dist/silentWalletEnroll-DRYQAQfg.cjs +0 -1
  397. package/dist/silentWalletEnroll-DRYQAQfg.cjs.map +0 -1
  398. package/dist/solanaKeypair-BlXol3nh.js.map +0 -1
  399. package/dist/solanaKeypair-C-lIR1JY.cjs +0 -1
  400. package/dist/solanaKeypair-C-lIR1JY.cjs.map +0 -1
  401. package/dist/types/adminUser.d.ts +0 -168
  402. package/dist/types/auth.d.ts +0 -122
  403. package/dist/types/config.d.ts +0 -266
  404. package/dist/types/deposit.d.ts +0 -490
  405. package/dist/types/index.d.ts +0 -13
  406. package/dist/types/invite.d.ts +0 -71
  407. package/dist/types/member.d.ts +0 -45
  408. package/dist/types/org.d.ts +0 -133
  409. package/dist/types/profile.d.ts +0 -56
  410. package/dist/types/session.d.ts +0 -28
  411. package/dist/types/setup.d.ts +0 -47
  412. package/dist/types/systemSettings.d.ts +0 -85
  413. package/dist/types/totp.d.ts +0 -52
  414. package/dist/types/wallet.d.ts +0 -309
  415. package/dist/utils/adminUserApi.d.ts +0 -60
  416. package/dist/utils/apiClient.d.ts +0 -78
  417. package/dist/utils/cryptoShim.d.ts +0 -17
  418. package/dist/utils/csrf.d.ts +0 -1
  419. package/dist/utils/deviceDetection.d.ts +0 -17
  420. package/dist/utils/embeddedWallet.d.ts +0 -75
  421. package/dist/utils/inviteApi.d.ts +0 -31
  422. package/dist/utils/memberApi.d.ts +0 -23
  423. package/dist/utils/orgApi.d.ts +0 -36
  424. package/dist/utils/profileApi.d.ts +0 -26
  425. package/dist/utils/sanitization.d.ts +0 -66
  426. package/dist/utils/sessionApi.d.ts +0 -16
  427. package/dist/utils/setupApi.d.ts +0 -21
  428. package/dist/utils/silentWalletEnroll.d.ts +0 -41
  429. package/dist/utils/systemSettingsApi.d.ts +0 -18
  430. package/dist/utils/tabSync.d.ts +0 -46
  431. package/dist/utils/tokenManager.d.ts +0 -107
  432. package/dist/utils/unlockCredential.d.ts +0 -5
  433. package/dist/utils/validation.d.ts +0 -48
  434. package/dist/utils/walletDetection.d.ts +0 -23
  435. package/dist/utils/webauthnJson.d.ts +0 -21
@@ -1,34 +0,0 @@
1
- /**
2
- * Profile Dropdown Component
3
- *
4
- * Displays user avatar/name with a dropdown menu for settings and logout.
5
- */
6
- export interface ProfileDropdownProps {
7
- /** User's display name */
8
- name?: string;
9
- /** User's email */
10
- email?: string;
11
- /** User's profile picture URL */
12
- picture?: string;
13
- /** Callback when Settings is clicked */
14
- onSettings?: () => void;
15
- /** Callback when Logout is clicked */
16
- onLogout?: () => void;
17
- /** Additional CSS class */
18
- className?: string;
19
- }
20
- /**
21
- * Profile dropdown button with settings and logout options.
22
- *
23
- * @example
24
- * ```tsx
25
- * <ProfileDropdown
26
- * name={user.name}
27
- * email={user.email}
28
- * picture={user.picture}
29
- * onSettings={() => navigate('/settings')}
30
- * onLogout={logout}
31
- * />
32
- * ```
33
- */
34
- export declare function ProfileDropdown({ name, email, picture, onSettings, onLogout, className, }: ProfileDropdownProps): import("react/jsx-runtime").JSX.Element;
@@ -1,30 +0,0 @@
1
- /**
2
- * Setup Wizard Component
3
- *
4
- * Displayed during first-run when no admin user exists.
5
- * Allows creating the first admin account.
6
- *
7
- * @example
8
- * ```tsx
9
- * function AdminApp() {
10
- * const { status, isLoading, checkStatus, createAdmin } = useSetup();
11
- *
12
- * useEffect(() => {
13
- * checkStatus();
14
- * }, [checkStatus]);
15
- *
16
- * if (isLoading) return <LoadingSpinner />;
17
- * if (status?.needsSetup) {
18
- * return <SetupWizard onComplete={() => window.location.reload()} />;
19
- * }
20
- * return <CedrosAdminDashboard />;
21
- * }
22
- * ```
23
- */
24
- export interface SetupWizardProps {
25
- /** Callback when setup is complete */
26
- onComplete?: () => void;
27
- /** Additional CSS class */
28
- className?: string;
29
- }
30
- export declare function SetupWizard({ onComplete, className }: SetupWizardProps): import("react/jsx-runtime").JSX.Element;
@@ -1,17 +0,0 @@
1
- /**
2
- * StatsBar Component
3
- *
4
- * A reusable horizontal stats display for admin sections.
5
- */
6
- export interface StatItem {
7
- label: string;
8
- value: string | number;
9
- description?: string;
10
- variant?: 'default' | 'success' | 'warning' | 'muted';
11
- }
12
- export interface StatsBarProps {
13
- stats: StatItem[];
14
- isLoading?: boolean;
15
- onRefresh?: () => void;
16
- }
17
- export declare function StatsBar({ stats, isLoading, onRefresh }: StatsBarProps): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- export interface SystemSettingsProps {
2
- /** Whether to show section descriptions */
3
- showDescriptions?: boolean;
4
- /** Additional CSS class */
5
- className?: string;
6
- /** Callback when settings are saved */
7
- onSave?: () => void;
8
- }
9
- /**
10
- * System settings management component for administrators.
11
- *
12
- * Features:
13
- * - Duration inputs with human-readable display
14
- * - Percentage sliders
15
- * - Preset dropdown selectors
16
- * - Warning indicators for extreme values
17
- * - Rich descriptions for each setting
18
- */
19
- export declare function SystemSettings({ showDescriptions, className, onSave, }: SystemSettingsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export interface AuthenticationSettingsProps {
2
- className?: string;
3
- }
4
- export declare function AuthenticationSettings({ className }: AuthenticationSettingsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { AutosaveStatus as Status } from '../../../hooks/useSettingsAutosave';
2
- export interface AutosaveStatusProps {
3
- status: Status;
4
- error?: string | null;
5
- }
6
- export declare function AutosaveStatus({ status, error }: AutosaveStatusProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +0,0 @@
1
- export interface CreditSystemSettingsProps {
2
- className?: string;
3
- }
4
- export declare function CreditSystemSettings({ className }: CreditSystemSettingsProps): import("react/jsx-runtime").JSX.Element;
5
- export { CreditSystemSettings as PrivacyCashSettings };
6
- export type { CreditSystemSettingsProps as PrivacyCashSettingsProps };
@@ -1,4 +0,0 @@
1
- export interface EmailSettingsProps {
2
- className?: string;
3
- }
4
- export declare function EmailSettings({ className }: EmailSettingsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export interface EmbeddedWalletSettingsProps {
2
- className?: string;
3
- }
4
- export declare function EmbeddedWalletSettings({ className }: EmbeddedWalletSettingsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export interface FeatureSettingsProps {
2
- className?: string;
3
- }
4
- export declare function FeatureSettings({ className }: FeatureSettingsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export interface MessagingSettingsProps {
2
- className?: string;
3
- }
4
- export declare function MessagingSettings({ className }: MessagingSettingsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export interface SecuritySettingsProps {
2
- className?: string;
3
- }
4
- export declare function SecuritySettings({ className }: SecuritySettingsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export interface ServerSettingsProps {
2
- className?: string;
3
- }
4
- export declare function ServerSettings({ className }: ServerSettingsProps): import("react/jsx-runtime").JSX.Element;
@@ -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,4 +0,0 @@
1
- export interface SsoProvidersSettingsProps {
2
- className?: string;
3
- }
4
- export declare function SsoProvidersSettings({ className }: SsoProvidersSettingsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export interface WebhookSettingsProps {
2
- className?: string;
3
- }
4
- export declare function WebhookSettings({ className }: WebhookSettingsProps): 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;