@cedros/login-react 0.0.11 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (428) hide show
  1. package/README.md +68 -0
  2. package/dist/AdminDepositList-Cx0xRwES.js +305 -0
  3. package/dist/AdminDepositList-Cx0xRwES.js.map +1 -0
  4. package/dist/AdminDepositList-UEcyRZkA.cjs +1 -0
  5. package/dist/AdminDepositList-UEcyRZkA.cjs.map +1 -0
  6. package/dist/AdminUserDetail-BzEIdNJh.cjs +1 -0
  7. package/dist/AdminUserDetail-BzEIdNJh.cjs.map +1 -0
  8. package/dist/AdminUserDetail-DHFDzY8B.js +1195 -0
  9. package/dist/AdminUserDetail-DHFDzY8B.js.map +1 -0
  10. package/dist/AdminWithdrawalHistory-0yxtMh6q.cjs +1 -0
  11. package/dist/AdminWithdrawalHistory-0yxtMh6q.cjs.map +1 -0
  12. package/dist/AdminWithdrawalHistory-BGjfrIe3.js +904 -0
  13. package/dist/AdminWithdrawalHistory-BGjfrIe3.js.map +1 -0
  14. package/dist/AuthenticationSettings-5Vi7Ib_A.cjs +1 -0
  15. package/dist/AuthenticationSettings-5Vi7Ib_A.cjs.map +1 -0
  16. package/dist/AuthenticationSettings-BPAh1my6.cjs +1 -0
  17. package/dist/AuthenticationSettings-BPAh1my6.cjs.map +1 -0
  18. package/dist/AuthenticationSettings-CJg8CJY9.js +9 -0
  19. package/dist/AuthenticationSettings-CJg8CJY9.js.map +1 -0
  20. package/dist/AuthenticationSettings-CR_i6TTS.js +495 -0
  21. package/dist/AuthenticationSettings-CR_i6TTS.js.map +1 -0
  22. package/dist/AutosaveStatus-CYkC2aI_.cjs +1 -0
  23. package/dist/AutosaveStatus-CYkC2aI_.cjs.map +1 -0
  24. package/dist/AutosaveStatus-N4uNS6-2.js +1497 -0
  25. package/dist/AutosaveStatus-N4uNS6-2.js.map +1 -0
  26. package/dist/CreditSystemSettings-BnAOK_tT.cjs +1 -0
  27. package/dist/CreditSystemSettings-BnAOK_tT.cjs.map +1 -0
  28. package/dist/CreditSystemSettings-CIf_SfJq.js +210 -0
  29. package/dist/CreditSystemSettings-CIf_SfJq.js.map +1 -0
  30. package/dist/CreditSystemSettings-CePYGgev.js +9 -0
  31. package/dist/CreditSystemSettings-CePYGgev.js.map +1 -0
  32. package/dist/CreditSystemSettings-Ck5WIMp3.cjs +1 -0
  33. package/dist/CreditSystemSettings-Ck5WIMp3.cjs.map +1 -0
  34. package/dist/{DepositsSection-BH5K162Q.js → DepositsSection-DA89uR9A.js} +5 -5
  35. package/dist/{DepositsSection-BH5K162Q.js.map → DepositsSection-DA89uR9A.js.map} +1 -1
  36. package/dist/DepositsSection-i6XdhLNs.cjs +1 -0
  37. package/dist/{DepositsSection-DpRn0koq.cjs.map → DepositsSection-i6XdhLNs.cjs.map} +1 -1
  38. package/dist/EmailRegisterForm-BrDL3BZy.js +927 -0
  39. package/dist/EmailRegisterForm-BrDL3BZy.js.map +1 -0
  40. package/dist/EmailRegisterForm-CxktR-4J.cjs +1 -0
  41. package/dist/EmailRegisterForm-CxktR-4J.cjs.map +1 -0
  42. package/dist/EmailSettings-B8xwgd6_.cjs +1 -0
  43. package/dist/EmailSettings-B8xwgd6_.cjs.map +1 -0
  44. package/dist/{AuthenticationSettings-DlVILxY4.js → EmailSettings-Bna7Z53E.js} +3 -3
  45. package/dist/EmailSettings-Bna7Z53E.js.map +1 -0
  46. package/dist/EmailSettings-DZywTTRq.cjs +1 -0
  47. package/dist/EmailSettings-DZywTTRq.cjs.map +1 -0
  48. package/dist/EmailSettings-DbMDfVaM.js +17 -0
  49. package/dist/EmailSettings-DbMDfVaM.js.map +1 -0
  50. package/dist/{EmbeddedWalletSettings-Bff6raAT.js → EmbeddedWalletSettings-ANbhj3Lt.js} +3 -3
  51. package/dist/EmbeddedWalletSettings-ANbhj3Lt.js.map +1 -0
  52. package/dist/EmbeddedWalletSettings-BEztqO19.js +79 -0
  53. package/dist/EmbeddedWalletSettings-BEztqO19.js.map +1 -0
  54. package/dist/EmbeddedWalletSettings-D6M7pwgk.cjs +1 -0
  55. package/dist/EmbeddedWalletSettings-D6M7pwgk.cjs.map +1 -0
  56. package/dist/EmbeddedWalletSettings-DivEPn39.cjs +1 -0
  57. package/dist/EmbeddedWalletSettings-DivEPn39.cjs.map +1 -0
  58. package/dist/ErrorMessage-CHbYbVi2.cjs +1 -0
  59. package/dist/ErrorMessage-CHbYbVi2.cjs.map +1 -0
  60. package/dist/ErrorMessage-CcEK0pYO.js +64 -0
  61. package/dist/ErrorMessage-CcEK0pYO.js.map +1 -0
  62. package/dist/{GoogleLoginButton-BzHr545L.js → GoogleLoginButton-B3uRMJ_n.js} +4 -3
  63. package/dist/{GoogleLoginButton-BzHr545L.js.map → GoogleLoginButton-B3uRMJ_n.js.map} +1 -1
  64. package/dist/GoogleLoginButton-BydKswn4.cjs +1 -0
  65. package/dist/{GoogleLoginButton-DoAdOqb3.cjs.map → GoogleLoginButton-BydKswn4.cjs.map} +1 -1
  66. package/dist/LoadingSpinner-6vml-zwr.js +79 -0
  67. package/dist/LoadingSpinner-6vml-zwr.js.map +1 -0
  68. package/dist/LoadingSpinner-d6sSxgQN.cjs +1 -0
  69. package/dist/LoadingSpinner-d6sSxgQN.cjs.map +1 -0
  70. package/dist/PermissionsSection-BGaj_sI7.js +1026 -0
  71. package/dist/PermissionsSection-BGaj_sI7.js.map +1 -0
  72. package/dist/PermissionsSection-CKXXDfqi.cjs +1 -0
  73. package/dist/PermissionsSection-CKXXDfqi.cjs.map +1 -0
  74. package/dist/ServerSettings-B2RKhJtZ.js +84 -0
  75. package/dist/ServerSettings-B2RKhJtZ.js.map +1 -0
  76. package/dist/ServerSettings-BZXlm1BX.cjs +1 -0
  77. package/dist/ServerSettings-BZXlm1BX.cjs.map +1 -0
  78. package/dist/{ServerSettings-UIVR0R4l.js → ServerSettings-Bqm4-bt2.js} +3 -3
  79. package/dist/ServerSettings-Bqm4-bt2.js.map +1 -0
  80. package/dist/ServerSettings-DZUKo6By.cjs +1 -0
  81. package/dist/ServerSettings-DZUKo6By.cjs.map +1 -0
  82. package/dist/SettingsPageLayout-COSYLMu7.cjs +1 -0
  83. package/dist/SettingsPageLayout-COSYLMu7.cjs.map +1 -0
  84. package/dist/SettingsPageLayout-DpgNEkuu.js +50 -0
  85. package/dist/SettingsPageLayout-DpgNEkuu.js.map +1 -0
  86. package/dist/{SolanaLoginButton-C-CfZxAZ.js → SolanaLoginButton-C_u9OppS.js} +5 -4
  87. package/dist/{SolanaLoginButton-C-CfZxAZ.js.map → SolanaLoginButton-C_u9OppS.js.map} +1 -1
  88. package/dist/SolanaLoginButton-fAW7kRUu.cjs +1 -0
  89. package/dist/{SolanaLoginButton-CPzms0kf.cjs.map → SolanaLoginButton-fAW7kRUu.cjs.map} +1 -1
  90. package/dist/StatsBar-BX-hHtTq.js +66 -0
  91. package/dist/StatsBar-BX-hHtTq.js.map +1 -0
  92. package/dist/StatsBar-DTUZCwDD.cjs +1 -0
  93. package/dist/StatsBar-DTUZCwDD.cjs.map +1 -0
  94. package/dist/{TeamSection-DnJudC38.js → TeamSection-CvrCoa9D.js} +27 -26
  95. package/dist/TeamSection-CvrCoa9D.js.map +1 -0
  96. package/dist/TeamSection-DlUD5kp5.cjs +1 -0
  97. package/dist/TeamSection-DlUD5kp5.cjs.map +1 -0
  98. package/dist/UsersSection-C2U8Tb7V.cjs +1 -0
  99. package/dist/{UsersSection-Ce7xVKfp.cjs.map → UsersSection-C2U8Tb7V.cjs.map} +1 -1
  100. package/dist/{UsersSection-mOOjcUEv.js → UsersSection-Dbh9PTSA.js} +17 -15
  101. package/dist/{UsersSection-mOOjcUEv.js.map → UsersSection-Dbh9PTSA.js.map} +1 -1
  102. package/dist/WebhookSettings-BT5q6AZ8.js +17 -0
  103. package/dist/WebhookSettings-BT5q6AZ8.js.map +1 -0
  104. package/dist/WebhookSettings-BWl_wsvg.cjs +1 -0
  105. package/dist/WebhookSettings-BWl_wsvg.cjs.map +1 -0
  106. package/dist/WebhookSettings-DXNH5bal.cjs +1 -0
  107. package/dist/WebhookSettings-DXNH5bal.cjs.map +1 -0
  108. package/dist/{WebhookSettings-D0i0JhQD.js → WebhookSettings-bUg2u_p0.js} +4 -4
  109. package/dist/WebhookSettings-bUg2u_p0.js.map +1 -0
  110. package/dist/WithdrawalsSection-BL_LOUq8.cjs +1 -0
  111. package/dist/{WithdrawalsSection-igRQJfjj.cjs.map → WithdrawalsSection-BL_LOUq8.cjs.map} +1 -1
  112. package/dist/WithdrawalsSection-CN-lLnqX.js +20 -0
  113. package/dist/{WithdrawalsSection-Grebjjks.js.map → WithdrawalsSection-CN-lLnqX.js.map} +1 -1
  114. package/dist/admin-only.cjs +1 -0
  115. package/dist/admin-only.cjs.map +1 -0
  116. package/dist/{admin/types.d.ts → admin-only.d.ts} +228 -167
  117. package/dist/admin-only.js +8 -0
  118. package/dist/admin-only.js.map +1 -0
  119. package/dist/apiClient-B2JxVPlH.js +216 -0
  120. package/dist/apiClient-B2JxVPlH.js.map +1 -0
  121. package/dist/apiClient-CTTKhsYb.cjs +1 -0
  122. package/dist/apiClient-CTTKhsYb.cjs.map +1 -0
  123. package/dist/assets/argon2Worker-Bi5TuQvD.js.map +1 -1
  124. package/dist/email-only.cjs +1 -1
  125. package/dist/email-only.d.ts +634 -16
  126. package/dist/email-only.js +16 -13
  127. package/dist/email-only.js.map +1 -1
  128. package/dist/google-only.cjs +1 -1
  129. package/dist/google-only.d.ts +543 -13
  130. package/dist/google-only.js +11 -8
  131. package/dist/google-only.js.map +1 -1
  132. package/dist/index.cjs +2061 -1
  133. package/dist/index.cjs.map +1 -1
  134. package/dist/index.d.ts +5007 -144
  135. package/dist/index.js +13507 -116
  136. package/dist/index.js.map +1 -1
  137. package/dist/login-react.css +1 -1
  138. package/dist/plugin-5qRh-YhX.js +596 -0
  139. package/dist/plugin-5qRh-YhX.js.map +1 -0
  140. package/dist/plugin-BtYBW6JY.cjs +1 -0
  141. package/dist/plugin-BtYBW6JY.cjs.map +1 -0
  142. package/dist/sanitization-Bo_tn-L2.cjs +1 -0
  143. package/dist/sanitization-Bo_tn-L2.cjs.map +1 -0
  144. package/dist/sanitization-CQ-H1MSg.js +39 -0
  145. package/dist/sanitization-CQ-H1MSg.js.map +1 -0
  146. package/dist/shamir-AeLLfw0p.cjs +1 -0
  147. package/dist/shamir-AeLLfw0p.cjs.map +1 -0
  148. package/dist/{solanaKeypair-BlXol3nh.js → shamir-B0wConeK.js} +765 -757
  149. package/dist/shamir-B0wConeK.js.map +1 -0
  150. package/dist/silentWalletEnroll-B8pgdKZO.cjs +1 -0
  151. package/dist/silentWalletEnroll-B8pgdKZO.cjs.map +1 -0
  152. package/dist/silentWalletEnroll-DR2kPw7W.js +41 -0
  153. package/dist/silentWalletEnroll-DR2kPw7W.js.map +1 -0
  154. package/dist/solana-only.cjs +1 -1
  155. package/dist/solana-only.d.ts +594 -13
  156. package/dist/solana-only.js +12 -9
  157. package/dist/solana-only.js.map +1 -1
  158. package/dist/style.d.ts +1 -0
  159. package/dist/useAdminDeposits-BDY5KJ0-.js +151 -0
  160. package/dist/useAdminDeposits-BDY5KJ0-.js.map +1 -0
  161. package/dist/useAdminDeposits-Dvx3_UUE.cjs +1 -0
  162. package/dist/useAdminDeposits-Dvx3_UUE.cjs.map +1 -0
  163. package/dist/{ErrorMessage-DU2VBb85.js → useAuth-Bge6KaWN.js} +954 -1226
  164. package/dist/useAuth-Bge6KaWN.js.map +1 -0
  165. package/dist/useAuth-DhIDTLRd.cjs +1 -0
  166. package/dist/useAuth-DhIDTLRd.cjs.map +1 -0
  167. package/dist/useOrgs-Be3KH4ib.js +215 -0
  168. package/dist/useOrgs-Be3KH4ib.js.map +1 -0
  169. package/dist/useOrgs-CVbacmaQ.cjs +1 -0
  170. package/dist/useOrgs-CVbacmaQ.cjs.map +1 -0
  171. package/dist/useSystemSettings-D9Cr7ZTl.cjs +1 -0
  172. package/dist/useSystemSettings-D9Cr7ZTl.cjs.map +1 -0
  173. package/dist/useSystemSettings-DN5YqfNq.js +97 -0
  174. package/dist/useSystemSettings-DN5YqfNq.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-D8oXHkM6.cjs +0 -1
  181. package/dist/AuthenticationSettings-D8oXHkM6.cjs.map +0 -1
  182. package/dist/AuthenticationSettings-DlVILxY4.js.map +0 -1
  183. package/dist/CreditSystemSettings-Bv6u9lTs.js +0 -9
  184. package/dist/CreditSystemSettings-Bv6u9lTs.js.map +0 -1
  185. package/dist/CreditSystemSettings-D45pwDZM.cjs +0 -1
  186. package/dist/CreditSystemSettings-D45pwDZM.cjs.map +0 -1
  187. package/dist/DepositsSection-DpRn0koq.cjs +0 -1
  188. package/dist/EmailRegisterForm-C0PStlj5.js +0 -961
  189. package/dist/EmailRegisterForm-C0PStlj5.js.map +0 -1
  190. package/dist/EmailRegisterForm-DaPLGws2.cjs +0 -1
  191. package/dist/EmailRegisterForm-DaPLGws2.cjs.map +0 -1
  192. package/dist/EmailSettings-DdjoMO_c.cjs +0 -1
  193. package/dist/EmailSettings-DdjoMO_c.cjs.map +0 -1
  194. package/dist/EmailSettings-khmiWqhx.js +0 -9
  195. package/dist/EmailSettings-khmiWqhx.js.map +0 -1
  196. package/dist/EmbeddedWalletSettings-Bff6raAT.js.map +0 -1
  197. package/dist/EmbeddedWalletSettings-C5qkJtAr.cjs +0 -1
  198. package/dist/EmbeddedWalletSettings-C5qkJtAr.cjs.map +0 -1
  199. package/dist/ErrorMessage-BXHiYibN.cjs +0 -1
  200. package/dist/ErrorMessage-BXHiYibN.cjs.map +0 -1
  201. package/dist/ErrorMessage-DU2VBb85.js.map +0 -1
  202. package/dist/GoogleLoginButton-DoAdOqb3.cjs +0 -1
  203. package/dist/ServerSettings-BpZhkxh6.cjs +0 -1
  204. package/dist/ServerSettings-BpZhkxh6.cjs.map +0 -1
  205. package/dist/ServerSettings-UIVR0R4l.js.map +0 -1
  206. package/dist/SolanaLoginButton-CPzms0kf.cjs +0 -1
  207. package/dist/TeamSection-BoGqQhD5.cjs +0 -1
  208. package/dist/TeamSection-BoGqQhD5.cjs.map +0 -1
  209. package/dist/TeamSection-DnJudC38.js.map +0 -1
  210. package/dist/UsersSection-Ce7xVKfp.cjs +0 -1
  211. package/dist/WebhookSettings-Cx-BxzNQ.cjs +0 -1
  212. package/dist/WebhookSettings-Cx-BxzNQ.cjs.map +0 -1
  213. package/dist/WebhookSettings-D0i0JhQD.js.map +0 -1
  214. package/dist/WithdrawalsSection-Grebjjks.js +0 -20
  215. package/dist/WithdrawalsSection-igRQJfjj.cjs +0 -1
  216. package/dist/admin/AdminShell.d.ts +0 -38
  217. package/dist/admin/icons.d.ts +0 -2
  218. package/dist/admin/index.d.ts +0 -10
  219. package/dist/admin/plugin.d.ts +0 -3
  220. package/dist/admin/sections/AuthenticationSettings.d.ts +0 -3
  221. package/dist/admin/sections/CreditSystemSettings.d.ts +0 -3
  222. package/dist/admin/sections/DepositsSection.d.ts +0 -3
  223. package/dist/admin/sections/EmailSettings.d.ts +0 -3
  224. package/dist/admin/sections/EmbeddedWalletSettings.d.ts +0 -3
  225. package/dist/admin/sections/FeatureSettings.d.ts +0 -3
  226. package/dist/admin/sections/InvitesSection.d.ts +0 -3
  227. package/dist/admin/sections/MembersSection.d.ts +0 -3
  228. package/dist/admin/sections/ServerSettings.d.ts +0 -3
  229. package/dist/admin/sections/SettingsSections.d.ts +0 -7
  230. package/dist/admin/sections/TeamSection.d.ts +0 -3
  231. package/dist/admin/sections/UsersSection.d.ts +0 -3
  232. package/dist/admin/sections/WebhookSettings.d.ts +0 -3
  233. package/dist/admin/sections/WithdrawalsSection.d.ts +0 -3
  234. package/dist/components/LoginButton.d.ts +0 -23
  235. package/dist/components/LoginForm.d.ts +0 -9
  236. package/dist/components/LoginModal.d.ts +0 -9
  237. package/dist/components/admin/AdminUserDetail.d.ts +0 -23
  238. package/dist/components/admin/AdminUserList.d.ts +0 -21
  239. package/dist/components/admin/CedrosAdminDashboard.d.ts +0 -52
  240. package/dist/components/admin/PermissionsSection.d.ts +0 -7
  241. package/dist/components/admin/ProfileDropdown.d.ts +0 -34
  242. package/dist/components/admin/SetupWizard.d.ts +0 -30
  243. package/dist/components/admin/StatsBar.d.ts +0 -17
  244. package/dist/components/admin/SystemSettings.d.ts +0 -19
  245. package/dist/components/admin/settings/AuthenticationSettings.d.ts +0 -4
  246. package/dist/components/admin/settings/AutosaveStatus.d.ts +0 -6
  247. package/dist/components/admin/settings/CreditSystemSettings.d.ts +0 -6
  248. package/dist/components/admin/settings/EmailSettings.d.ts +0 -4
  249. package/dist/components/admin/settings/EmbeddedWalletSettings.d.ts +0 -4
  250. package/dist/components/admin/settings/FeatureSettings.d.ts +0 -4
  251. package/dist/components/admin/settings/MessagingSettings.d.ts +0 -4
  252. package/dist/components/admin/settings/SecuritySettings.d.ts +0 -4
  253. package/dist/components/admin/settings/ServerSettings.d.ts +0 -4
  254. package/dist/components/admin/settings/SettingsPageLayout.d.ts +0 -16
  255. package/dist/components/admin/settings/SsoProvidersSettings.d.ts +0 -4
  256. package/dist/components/admin/settings/WebhookSettings.d.ts +0 -4
  257. package/dist/components/admin/settings/index.d.ts +0 -31
  258. package/dist/components/admin/settings/settingsInputs.d.ts +0 -79
  259. package/dist/components/admin/settings/settingsMetadata.d.ts +0 -18
  260. package/dist/components/apple/AppleLoginButton.d.ts +0 -29
  261. package/dist/components/deposit/CreditBalance.d.ts +0 -19
  262. package/dist/components/deposit/DepositFlow.d.ts +0 -118
  263. package/dist/components/deposit/FeeConfigDisplay.d.ts +0 -15
  264. package/dist/components/deposit/History.d.ts +0 -21
  265. package/dist/components/deposit/TieredAmountSlider.d.ts +0 -19
  266. package/dist/components/deposit/TokenSelector.d.ts +0 -23
  267. package/dist/components/deposit/admin/AdminDepositList.d.ts +0 -21
  268. package/dist/components/deposit/admin/AdminDepositStats.d.ts +0 -15
  269. package/dist/components/deposit/admin/AdminPrivacyPeriodDeposits.d.ts +0 -19
  270. package/dist/components/deposit/admin/AdminWithdrawalHistory.d.ts +0 -19
  271. package/dist/components/deposit/admin/AdminWithdrawalQueue.d.ts +0 -23
  272. package/dist/components/deposit/admin/AdminWithdrawalStats.d.ts +0 -10
  273. package/dist/components/deposit/admin/FeatureDisabledMessage.d.ts +0 -15
  274. package/dist/components/deposit/admin/PrivacySystemStatus.d.ts +0 -15
  275. package/dist/components/deposit/admin/featureDisabled.d.ts +0 -14
  276. package/dist/components/deposit/admin/index.d.ts +0 -22
  277. package/dist/components/deposit/index.d.ts +0 -12
  278. package/dist/components/deposit/tierUtils.d.ts +0 -8
  279. package/dist/components/deposit/tokens.d.ts +0 -19
  280. package/dist/components/email/EmailLoginForm.d.ts +0 -11
  281. package/dist/components/email/EmailRegisterForm.d.ts +0 -14
  282. package/dist/components/email/ForgotPasswordForm.d.ts +0 -17
  283. package/dist/components/email/PasswordInput.d.ts +0 -14
  284. package/dist/components/email/ResetPasswordForm.d.ts +0 -22
  285. package/dist/components/google/GoogleLoginButton.d.ts +0 -12
  286. package/dist/components/invites/InviteForm.d.ts +0 -38
  287. package/dist/components/invites/InviteList.d.ts +0 -40
  288. package/dist/components/members/MemberList.d.ts +0 -47
  289. package/dist/components/org/CreateOrgForm.d.ts +0 -7
  290. package/dist/components/org/OrgAvatar.d.ts +0 -7
  291. package/dist/components/org/OrgListView.d.ts +0 -9
  292. package/dist/components/org/OrgSelector.d.ts +0 -52
  293. package/dist/components/org/OrgSwitcher.d.ts +0 -47
  294. package/dist/components/org/icons.d.ts +0 -8
  295. package/dist/components/profile/UserProfileSettings.d.ts +0 -35
  296. package/dist/components/profile/index.d.ts +0 -2
  297. package/dist/components/sessions/SessionList.d.ts +0 -33
  298. package/dist/components/shared/ErrorBoundary.d.ts +0 -38
  299. package/dist/components/shared/ErrorMessage.d.ts +0 -14
  300. package/dist/components/shared/LoadingSpinner.d.ts +0 -16
  301. package/dist/components/solana/SolanaLoginButton.d.ts +0 -49
  302. package/dist/components/templates/FullPageLayout.d.ts +0 -40
  303. package/dist/components/templates/SplitPageLayout.d.ts +0 -44
  304. package/dist/components/templates/index.d.ts +0 -4
  305. package/dist/components/totp/OtpInput.d.ts +0 -32
  306. package/dist/components/totp/QrCode.d.ts +0 -21
  307. package/dist/components/totp/TotpSettings.d.ts +0 -38
  308. package/dist/components/totp/TotpSetup.d.ts +0 -23
  309. package/dist/components/totp/TotpVerify.d.ts +0 -25
  310. package/dist/components/totp/index.d.ts +0 -10
  311. package/dist/components/wallet/CapabilityWarning.d.ts +0 -11
  312. package/dist/components/wallet/PasskeyPrompt.d.ts +0 -34
  313. package/dist/components/wallet/RecoveryPhraseDisplay.d.ts +0 -18
  314. package/dist/components/wallet/RecoveryPhraseInput.d.ts +0 -21
  315. package/dist/components/wallet/WalletAddressRow.d.ts +0 -10
  316. package/dist/components/wallet/WalletEnrollment.d.ts +0 -15
  317. package/dist/components/wallet/WalletManager.d.ts +0 -9
  318. package/dist/components/wallet/WalletRecovery.d.ts +0 -19
  319. package/dist/components/wallet/WalletStatus.d.ts +0 -28
  320. package/dist/components/wallet/WalletUnlock.d.ts +0 -23
  321. package/dist/components/wallet/index.d.ts +0 -23
  322. package/dist/components/webauthn/PasskeyLoginButton.d.ts +0 -8
  323. package/dist/context/CedrosLoginContext.d.ts +0 -24
  324. package/dist/context/CedrosLoginProvider.d.ts +0 -17
  325. package/dist/context/EmbeddedWalletExposure.d.ts +0 -19
  326. package/dist/context/useCedrosLogin.d.ts +0 -12
  327. package/dist/crypto/aesGcm.d.ts +0 -89
  328. package/dist/crypto/argon2.d.ts +0 -65
  329. package/dist/crypto/argon2Worker.d.ts +0 -1
  330. package/dist/crypto/argon2WorkerClient.d.ts +0 -28
  331. package/dist/crypto/bip39.d.ts +0 -106
  332. package/dist/crypto/capabilities.d.ts +0 -35
  333. package/dist/crypto/entropy.d.ts +0 -56
  334. package/dist/crypto/hkdf.d.ts +0 -38
  335. package/dist/crypto/index.d.ts +0 -30
  336. package/dist/crypto/secureWipe.d.ts +0 -71
  337. package/dist/crypto/shamir.d.ts +0 -52
  338. package/dist/crypto/solanaKeypair.d.ts +0 -63
  339. package/dist/crypto/types.d.ts +0 -134
  340. package/dist/crypto/webauthnPrf.d.ts +0 -108
  341. package/dist/hooks/useAdminDeposits.d.ts +0 -10
  342. package/dist/hooks/useAdminUsers.d.ts +0 -28
  343. package/dist/hooks/useAppleAuth.d.ts +0 -52
  344. package/dist/hooks/useAuth.d.ts +0 -34
  345. package/dist/hooks/useAuthSession.d.ts +0 -19
  346. package/dist/hooks/useAuthorize.d.ts +0 -62
  347. package/dist/hooks/useCredits.d.ts +0 -11
  348. package/dist/hooks/useDashboardPermissions.d.ts +0 -45
  349. package/dist/hooks/useDeposit.d.ts +0 -16
  350. package/dist/hooks/useEmailAuth.d.ts +0 -60
  351. package/dist/hooks/useGoogleAuth.d.ts +0 -67
  352. package/dist/hooks/useInstantLink.d.ts +0 -42
  353. package/dist/hooks/useInvites.d.ts +0 -57
  354. package/dist/hooks/useMembers.d.ts +0 -52
  355. package/dist/hooks/useOrgs.d.ts +0 -49
  356. package/dist/hooks/usePasswordReset.d.ts +0 -32
  357. package/dist/hooks/usePendingRecovery.d.ts +0 -34
  358. package/dist/hooks/useProfile.d.ts +0 -35
  359. package/dist/hooks/useRateLimiter.d.ts +0 -58
  360. package/dist/hooks/useServerFeatures.d.ts +0 -55
  361. package/dist/hooks/useSessions.d.ts +0 -45
  362. package/dist/hooks/useSettingsAutosave.d.ts +0 -29
  363. package/dist/hooks/useSetup.d.ts +0 -25
  364. package/dist/hooks/useSolanaAuth.d.ts +0 -30
  365. package/dist/hooks/useSsoProviders.d.ts +0 -52
  366. package/dist/hooks/useSystemSettings.d.ts +0 -47
  367. package/dist/hooks/useThemeManager.d.ts +0 -11
  368. package/dist/hooks/useTotp.d.ts +0 -52
  369. package/dist/hooks/useTotpVerify.d.ts +0 -38
  370. package/dist/hooks/useTransactionSigning.d.ts +0 -45
  371. package/dist/hooks/useWallet.d.ts +0 -10
  372. package/dist/hooks/useWalletDiscovery.d.ts +0 -24
  373. package/dist/hooks/useWalletEnrollment.d.ts +0 -9
  374. package/dist/hooks/useWalletMaterial.d.ts +0 -10
  375. package/dist/hooks/useWalletRecovery.d.ts +0 -9
  376. package/dist/hooks/useWalletSigning.d.ts +0 -31
  377. package/dist/hooks/useWebAuthn.d.ts +0 -25
  378. package/dist/i18n/I18nProvider.d.ts +0 -16
  379. package/dist/i18n/context.d.ts +0 -6
  380. package/dist/i18n/index.d.ts +0 -5
  381. package/dist/i18n/translations.d.ts +0 -66
  382. package/dist/i18n/useI18n.d.ts +0 -9
  383. package/dist/index-BI9Bj9DF.js +0 -19650
  384. package/dist/index-BI9Bj9DF.js.map +0 -1
  385. package/dist/index-CDRTfEJz.cjs +0 -2061
  386. package/dist/index-CDRTfEJz.cjs.map +0 -1
  387. package/dist/silentWalletEnroll-C3JRAD9_.js +0 -42
  388. package/dist/silentWalletEnroll-C3JRAD9_.js.map +0 -1
  389. package/dist/silentWalletEnroll-DRYQAQfg.cjs +0 -1
  390. package/dist/silentWalletEnroll-DRYQAQfg.cjs.map +0 -1
  391. package/dist/solanaKeypair-BlXol3nh.js.map +0 -1
  392. package/dist/solanaKeypair-C-lIR1JY.cjs +0 -1
  393. package/dist/solanaKeypair-C-lIR1JY.cjs.map +0 -1
  394. package/dist/types/adminUser.d.ts +0 -168
  395. package/dist/types/auth.d.ts +0 -122
  396. package/dist/types/config.d.ts +0 -266
  397. package/dist/types/deposit.d.ts +0 -490
  398. package/dist/types/index.d.ts +0 -13
  399. package/dist/types/invite.d.ts +0 -71
  400. package/dist/types/member.d.ts +0 -45
  401. package/dist/types/org.d.ts +0 -133
  402. package/dist/types/profile.d.ts +0 -56
  403. package/dist/types/session.d.ts +0 -28
  404. package/dist/types/setup.d.ts +0 -47
  405. package/dist/types/systemSettings.d.ts +0 -85
  406. package/dist/types/totp.d.ts +0 -52
  407. package/dist/types/wallet.d.ts +0 -309
  408. package/dist/utils/adminUserApi.d.ts +0 -60
  409. package/dist/utils/apiClient.d.ts +0 -78
  410. package/dist/utils/cryptoShim.d.ts +0 -17
  411. package/dist/utils/csrf.d.ts +0 -1
  412. package/dist/utils/deviceDetection.d.ts +0 -17
  413. package/dist/utils/embeddedWallet.d.ts +0 -75
  414. package/dist/utils/inviteApi.d.ts +0 -31
  415. package/dist/utils/memberApi.d.ts +0 -23
  416. package/dist/utils/orgApi.d.ts +0 -36
  417. package/dist/utils/profileApi.d.ts +0 -26
  418. package/dist/utils/sanitization.d.ts +0 -66
  419. package/dist/utils/sessionApi.d.ts +0 -16
  420. package/dist/utils/setupApi.d.ts +0 -21
  421. package/dist/utils/silentWalletEnroll.d.ts +0 -41
  422. package/dist/utils/systemSettingsApi.d.ts +0 -18
  423. package/dist/utils/tabSync.d.ts +0 -46
  424. package/dist/utils/tokenManager.d.ts +0 -107
  425. package/dist/utils/unlockCredential.d.ts +0 -5
  426. package/dist/utils/validation.d.ts +0 -48
  427. package/dist/utils/walletDetection.d.ts +0 -23
  428. package/dist/utils/webauthnJson.d.ts +0 -21
@@ -1,4 +0,0 @@
1
- export { FullPageLayout } from './FullPageLayout';
2
- export type { FullPageLayoutProps } from './FullPageLayout';
3
- export { SplitPageLayout } from './SplitPageLayout';
4
- export type { SplitPageLayoutProps } from './SplitPageLayout';
@@ -1,32 +0,0 @@
1
- /**
2
- * OTP Input component (shadcn-style)
3
- *
4
- * A 6-digit input with separate boxes for each digit,
5
- * designed for TOTP verification codes.
6
- */
7
- export interface OtpInputProps {
8
- /** Current value (up to 6 digits) */
9
- value?: string;
10
- /** Called when the value changes */
11
- onChange?: (value: string) => void;
12
- /** Called when all 6 digits are entered */
13
- onComplete?: (value: string) => void;
14
- /** Whether the input is disabled */
15
- disabled?: boolean;
16
- /** Error message to display */
17
- error?: string;
18
- /** Auto-focus the first input on mount */
19
- autoFocus?: boolean;
20
- /** Additional CSS class */
21
- className?: string;
22
- }
23
- /**
24
- * OTP input with separate boxes for each digit (shadcn pattern)
25
- *
26
- * Features:
27
- * - Auto-advances to next input on digit entry
28
- * - Backspace moves to previous input
29
- * - Supports paste of full code
30
- * - Numeric keyboard on mobile
31
- */
32
- export declare function OtpInput({ value, onChange, onComplete, disabled, error, autoFocus, className, }: OtpInputProps): import("react/jsx-runtime").JSX.Element;
@@ -1,21 +0,0 @@
1
- /**
2
- * QR Code component for TOTP setup
3
- *
4
- * Generates QR codes client-side using the qrcode library.
5
- * SECURITY: Never sends the TOTP secret to external services.
6
- */
7
- export interface QrCodeProps {
8
- /** The data to encode in the QR code (e.g., otpauth:// URL) */
9
- value: string;
10
- /** Size in pixels (width and height) */
11
- size?: number;
12
- /** Alt text for accessibility */
13
- alt?: string;
14
- /** Additional CSS class */
15
- className?: string;
16
- }
17
- /**
18
- * Renders a QR code as a canvas element.
19
- * Generated entirely client-side for security.
20
- */
21
- export declare function QrCode({ value, size, alt, className }: QrCodeProps): import("react/jsx-runtime").JSX.Element;
@@ -1,38 +0,0 @@
1
- /**
2
- * TOTP Settings component for managing two-factor authentication
3
- *
4
- * Allows users to:
5
- * - View current 2FA status
6
- * - Enable 2FA (via TotpSetup wizard)
7
- * - Disable 2FA (requires verification)
8
- * - Regenerate backup codes
9
- */
10
- export interface TotpSettingsProps {
11
- /** Called when 2FA status changes */
12
- onStatusChange?: (enabled: boolean) => void;
13
- /** Additional CSS class */
14
- className?: string;
15
- }
16
- /**
17
- * Two-factor authentication settings panel.
18
- *
19
- * Shows current 2FA status and provides controls for
20
- * enabling, disabling, and managing backup codes.
21
- *
22
- * @example
23
- * ```tsx
24
- * function SecuritySettings() {
25
- * return (
26
- * <div>
27
- * <h2>Security</h2>
28
- * <TotpSettings
29
- * onStatusChange={(enabled) => {
30
- * console.log('2FA is now', enabled ? 'enabled' : 'disabled');
31
- * }}
32
- * />
33
- * </div>
34
- * );
35
- * }
36
- * ```
37
- */
38
- export declare function TotpSettings({ onStatusChange, className }: TotpSettingsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,23 +0,0 @@
1
- /**
2
- * TOTP Setup component for enabling two-factor authentication
3
- *
4
- * Guides users through:
5
- * 1. Scanning QR code with authenticator app
6
- * 2. Saving backup codes
7
- * 3. Verifying setup with a code
8
- */
9
- export interface TotpSetupProps {
10
- /** Called when setup is completed successfully */
11
- onSuccess?: () => void;
12
- /** Called when user cancels setup */
13
- onCancel?: () => void;
14
- /** Additional CSS class */
15
- className?: string;
16
- }
17
- /**
18
- * Two-factor authentication setup wizard.
19
- *
20
- * Displays QR code for authenticator app scanning,
21
- * recovery codes for account recovery, and verification step.
22
- */
23
- export declare function TotpSetup({ onSuccess, onCancel, className }: TotpSetupProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,25 +0,0 @@
1
- /**
2
- * TOTP Verification component for login flow
3
- *
4
- * Displayed when a user with 2FA enabled needs to
5
- * enter their verification code to complete login.
6
- */
7
- export interface TotpVerifyProps {
8
- /** Temporary token from password authentication */
9
- mfaToken: string;
10
- /** Email address (for display) */
11
- email?: string;
12
- /** Called when verification succeeds */
13
- onSuccess?: () => void;
14
- /** Called when user wants to go back */
15
- onBack?: () => void;
16
- /** Additional CSS class */
17
- className?: string;
18
- }
19
- /**
20
- * Two-factor authentication verification for login.
21
- *
22
- * Accepts 6-digit codes from authenticator apps
23
- * or recovery codes for account recovery.
24
- */
25
- export declare function TotpVerify({ mfaToken, email, onSuccess, onBack, className, }: TotpVerifyProps): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- export { OtpInput } from './OtpInput';
2
- export type { OtpInputProps } from './OtpInput';
3
- export { QrCode } from './QrCode';
4
- export type { QrCodeProps } from './QrCode';
5
- export { TotpSetup } from './TotpSetup';
6
- export type { TotpSetupProps } from './TotpSetup';
7
- export { TotpVerify } from './TotpVerify';
8
- export type { TotpVerifyProps } from './TotpVerify';
9
- export { TotpSettings } from './TotpSettings';
10
- export type { TotpSettingsProps } from './TotpSettings';
@@ -1,11 +0,0 @@
1
- import { CryptoCapabilities } from '../../crypto';
2
- export interface CapabilityWarningProps {
3
- /** Capability check results */
4
- capabilities: CryptoCapabilities;
5
- /** Optional class name */
6
- className?: string;
7
- }
8
- /**
9
- * Warning display for missing capabilities
10
- */
11
- export declare function CapabilityWarning({ capabilities, className }: CapabilityWarningProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,34 +0,0 @@
1
- /**
2
- * Passkey prompt component for WebAuthn interactions
3
- *
4
- * Provides visual feedback during WebAuthn ceremonies:
5
- * - Registration of new passkeys
6
- * - Authentication with existing passkeys
7
- * - PRF extension operations
8
- */
9
- export interface PasskeyPromptProps {
10
- /** Type of WebAuthn operation */
11
- mode: 'register' | 'authenticate';
12
- /** Whether the operation is in progress */
13
- isLoading?: boolean;
14
- /** Error message if operation failed */
15
- error?: string;
16
- /** Callback to trigger the operation */
17
- onPrompt?: () => void;
18
- /** Callback to retry after error */
19
- onRetry?: () => void;
20
- /** Callback to cancel the operation */
21
- onCancel?: () => void;
22
- /** Optional custom title */
23
- title?: string;
24
- /** Optional custom description */
25
- description?: string;
26
- /** Additional CSS classes */
27
- className?: string;
28
- }
29
- /**
30
- * WebAuthn passkey interaction prompt
31
- *
32
- * Displays appropriate UI and messaging for passkey operations.
33
- */
34
- export declare function PasskeyPrompt({ mode, isLoading, error, onPrompt, onRetry, onCancel, title, description, className, }: PasskeyPromptProps): import("react/jsx-runtime").JSX.Element;
@@ -1,18 +0,0 @@
1
- /**
2
- * Component to display BIP-39 recovery phrase
3
- *
4
- * Shows 12 words in a grid format with copy functionality.
5
- * Includes security warnings about storing the phrase safely.
6
- */
7
- export interface RecoveryPhraseDisplayProps {
8
- /** Array of 12 mnemonic words */
9
- words: string[];
10
- /** Callback when user confirms they've saved the phrase */
11
- onConfirm: () => void;
12
- /** Optional class name */
13
- className?: string;
14
- }
15
- /**
16
- * Display recovery phrase with security warnings
17
- */
18
- export declare function RecoveryPhraseDisplay({ words, onConfirm, className, }: RecoveryPhraseDisplayProps): import("react/jsx-runtime").JSX.Element;
@@ -1,21 +0,0 @@
1
- /**
2
- * Component for entering BIP-39 recovery phrase
3
- *
4
- * Provides input fields for 12 words with validation and autocomplete.
5
- */
6
- export interface RecoveryPhraseInputProps {
7
- /** Callback when valid phrase is entered */
8
- onSubmit: (words: string[]) => void;
9
- /** Callback to cancel */
10
- onCancel?: () => void;
11
- /** Whether submission is in progress */
12
- isSubmitting?: boolean;
13
- /** Error message to display */
14
- error?: string;
15
- /** Optional class name */
16
- className?: string;
17
- }
18
- /**
19
- * Input form for recovery phrase
20
- */
21
- export declare function RecoveryPhraseInput({ onSubmit, onCancel, isSubmitting, error, className, }: RecoveryPhraseInputProps): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- export interface WalletAddressRowProps {
2
- address: string;
3
- label?: string;
4
- showCopy?: boolean;
5
- showExplorerLink?: boolean;
6
- /** If address is long, show a truncated preview with a reveal toggle. */
7
- allowReveal?: boolean;
8
- className?: string;
9
- }
10
- export declare function WalletAddressRow({ address, label, showCopy, showExplorerLink, allowReveal, className, }: WalletAddressRowProps): import("react/jsx-runtime").JSX.Element;
@@ -1,15 +0,0 @@
1
- import { ShareAAuthMethod } from '../../types/wallet';
2
- export interface WalletEnrollmentProps {
3
- /** Callback when enrollment completes */
4
- onComplete?: (solanaPubkey: string) => void;
5
- /** Callback to cancel enrollment */
6
- onCancel?: () => void;
7
- /** Optional class name */
8
- className?: string;
9
- /** Force a specific auth method (otherwise auto-detected) */
10
- forceAuthMethod?: ShareAAuthMethod;
11
- }
12
- /**
13
- * Wallet enrollment wizard
14
- */
15
- export declare function WalletEnrollment({ onComplete, onCancel, className, forceAuthMethod, }: WalletEnrollmentProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- export interface WalletManagerProps {
2
- className?: string;
3
- showActions?: boolean;
4
- }
5
- /**
6
- * Orchestrates embedded wallet flows in one cohesive surface:
7
- * status -> enroll/unlock/recover.
8
- */
9
- export declare function WalletManager({ className, showActions }: WalletManagerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- import { ShareAAuthMethod } from '../../types/wallet';
2
- export interface WalletRecoveryProps {
3
- /** Callback when recovery completes successfully */
4
- onComplete?: () => void;
5
- /** Callback when user cancels recovery */
6
- onCancel?: () => void;
7
- /** Additional CSS classes */
8
- className?: string;
9
- /** Default auth method (optional) */
10
- defaultAuthMethod?: ShareAAuthMethod;
11
- }
12
- /**
13
- * Wallet recovery wizard
14
- *
15
- * Two-phase flow:
16
- * 1. Enter recovery phrase
17
- * 2. Enter new credential (password/passkey)
18
- */
19
- export declare function WalletRecovery({ onComplete, onCancel, className, defaultAuthMethod, }: WalletRecoveryProps): import("react/jsx-runtime").JSX.Element;
@@ -1,28 +0,0 @@
1
- import { WalletStatus as WalletStatusType } from '../../types/wallet';
2
- export interface WalletStatusProps {
3
- /** Controlled mode: Override wallet status (for demos/stories) */
4
- status?: WalletStatusType;
5
- /** Controlled mode: Override public key display */
6
- publicKey?: string;
7
- /** Controlled mode: Override lock state */
8
- onLock?: () => void;
9
- /** Callback when user wants to create a wallet */
10
- onEnroll?: () => void;
11
- /** Callback when user wants to unlock wallet */
12
- onUnlock?: () => void;
13
- /** Callback when user wants to recover wallet */
14
- onRecover?: () => void;
15
- /** Whether to show action buttons */
16
- showActions?: boolean;
17
- /** Compact display mode */
18
- compact?: boolean;
19
- /** Additional CSS classes */
20
- className?: string;
21
- }
22
- /**
23
- * Wallet status indicator
24
- *
25
- * Shows current wallet state with optional action buttons.
26
- * Pass `status` prop to use in controlled mode (bypasses hook).
27
- */
28
- export declare function WalletStatus({ status: controlledStatus, publicKey: controlledPubkey, onLock: _onLock, onEnroll, onUnlock, onRecover, showActions, compact, className, }: WalletStatusProps): import("react/jsx-runtime").JSX.Element;
@@ -1,23 +0,0 @@
1
- import { ShareAAuthMethod } from '../../types/wallet';
2
- export interface WalletUnlockProps {
3
- /** Callback when wallet is successfully unlocked */
4
- onUnlock?: () => void;
5
- /** Callback when unlock is cancelled */
6
- onCancel?: () => void;
7
- /** Whether to show the cancel button */
8
- showCancel?: boolean;
9
- /** The wallet's auth method (if known) */
10
- authMethod?: ShareAAuthMethod;
11
- /** Additional CSS classes */
12
- className?: string;
13
- }
14
- /**
15
- * Wallet unlock form
16
- *
17
- * Simple single-credential flow:
18
- * - Password users: Enter password
19
- * - Passkey users: Authenticate with passkey
20
- *
21
- * Server validates credential and caches derived key for session signing.
22
- */
23
- export declare function WalletUnlock({ onUnlock, onCancel, showCancel, authMethod: propAuthMethod, className, }: WalletUnlockProps): import("react/jsx-runtime").JSX.Element;
@@ -1,23 +0,0 @@
1
- /**
2
- * Wallet component exports
3
- */
4
- export { RecoveryPhraseDisplay } from './RecoveryPhraseDisplay';
5
- export type { RecoveryPhraseDisplayProps } from './RecoveryPhraseDisplay';
6
- export { RecoveryPhraseInput } from './RecoveryPhraseInput';
7
- export type { RecoveryPhraseInputProps } from './RecoveryPhraseInput';
8
- export { CapabilityWarning } from './CapabilityWarning';
9
- export type { CapabilityWarningProps } from './CapabilityWarning';
10
- export { WalletEnrollment } from './WalletEnrollment';
11
- export type { WalletEnrollmentProps } from './WalletEnrollment';
12
- export { WalletUnlock } from './WalletUnlock';
13
- export type { WalletUnlockProps } from './WalletUnlock';
14
- export { WalletRecovery } from './WalletRecovery';
15
- export type { WalletRecoveryProps } from './WalletRecovery';
16
- export { WalletManager } from './WalletManager';
17
- export type { WalletManagerProps } from './WalletManager';
18
- export { WalletStatus } from './WalletStatus';
19
- export type { WalletStatusProps } from './WalletStatus';
20
- export { WalletAddressRow } from './WalletAddressRow';
21
- export type { WalletAddressRowProps } from './WalletAddressRow';
22
- export { PasskeyPrompt } from './PasskeyPrompt';
23
- export type { PasskeyPromptProps } from './PasskeyPrompt';
@@ -1,8 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface PasskeyLoginButtonProps {
3
- onSuccess?: () => void;
4
- className?: string;
5
- children?: ReactNode;
6
- disabled?: boolean;
7
- }
8
- export declare function PasskeyLoginButton({ onSuccess, className, children, disabled, }: PasskeyLoginButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,24 +0,0 @@
1
- import { CedrosLoginConfig, AuthUser, AuthState, AuthError, TokenPair } from '../types';
2
- /**
3
- * Internal helpers for auth hooks (not part of public API)
4
- */
5
- export interface CedrosLoginInternalAPI {
6
- handleLoginSuccess: (user: AuthUser, tokens?: TokenPair) => void;
7
- getAccessToken: () => string | null;
8
- }
9
- /**
10
- * Context value provided by CedrosLoginProvider
11
- */
12
- export interface CedrosLoginContextValue {
13
- config: CedrosLoginConfig;
14
- user: AuthUser | null;
15
- authState: AuthState;
16
- error: AuthError | null;
17
- logout: () => Promise<void>;
18
- refreshUser: () => Promise<void>;
19
- isModalOpen: boolean;
20
- openModal: () => void;
21
- closeModal: () => void;
22
- _internal?: CedrosLoginInternalAPI;
23
- }
24
- export declare const CedrosLoginContext: import('react').Context<CedrosLoginContextValue | null>;
@@ -1,17 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { CedrosLoginConfig } from '../types';
3
- export interface CedrosLoginProviderProps {
4
- config: CedrosLoginConfig;
5
- children: ReactNode;
6
- }
7
- /**
8
- * Provider component that wraps your app and provides authentication context.
9
- *
10
- * @example
11
- * ```tsx
12
- * <CedrosLoginProvider config={{ serverUrl: 'https://api.example.com' }}>
13
- * <App />
14
- * </CedrosLoginProvider>
15
- * ```
16
- */
17
- export declare function CedrosLoginProvider({ config, children }: CedrosLoginProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- /**
2
- * Internal component that exposes embedded wallet availability
3
- *
4
- * This component must be rendered inside CedrosLoginProvider since
5
- * it uses hooks that depend on the login context.
6
- *
7
- * @internal
8
- */
9
- /**
10
- * Exposes embedded wallet availability via window global when enabled
11
- *
12
- * Only exposes info when:
13
- * 1. config.wallet.exposeAvailability is true
14
- * 2. User is logged in
15
- * 3. Wallet status is known
16
- *
17
- * @internal
18
- */
19
- export declare function EmbeddedWalletExposure(): null;
@@ -1,12 +0,0 @@
1
- import { CedrosLoginContextValue } from './CedrosLoginContext';
2
- /**
3
- * Hook to access the Cedros Login context.
4
- * Must be used within a CedrosLoginProvider.
5
- */
6
- export declare function useCedrosLogin(): CedrosLoginContextValue;
7
- /**
8
- * Optional version of useCedrosLogin that returns null instead of throwing
9
- * when used outside a CedrosLoginProvider. Useful for components that need
10
- * to work in both provider and non-provider contexts (e.g., Storybook demos).
11
- */
12
- export declare function useCedrosLoginOptional(): CedrosLoginContextValue | null;
@@ -1,89 +0,0 @@
1
- import { EncryptionKey, AesNonce } from './types';
2
- /** Result of AES-GCM encryption */
3
- export interface AesGcmEncryptResult {
4
- /** Ciphertext including authentication tag */
5
- ciphertext: Uint8Array;
6
- /** 12-byte nonce used */
7
- nonce: AesNonce;
8
- }
9
- /**
10
- * Encrypt plaintext using AES-256-GCM
11
- *
12
- * @param plaintext - Data to encrypt
13
- * @param key - 32-byte encryption key
14
- * @param nonce - Optional 12-byte nonce (generated if not provided)
15
- * @returns Ciphertext and nonce
16
- * @throws Error if encryption fails
17
- */
18
- export declare function aesGcmEncrypt(plaintext: Uint8Array, key: EncryptionKey, nonce?: AesNonce): Promise<AesGcmEncryptResult>;
19
- /**
20
- * Decrypt ciphertext using AES-256-GCM
21
- *
22
- * @param ciphertext - Data to decrypt (includes auth tag)
23
- * @param key - 32-byte encryption key
24
- * @param nonce - 12-byte nonce used during encryption
25
- * @returns Decrypted plaintext
26
- * @throws Error if decryption or authentication fails
27
- */
28
- export declare function aesGcmDecrypt(ciphertext: Uint8Array, key: EncryptionKey, nonce: AesNonce): Promise<Uint8Array>;
29
- /**
30
- * Encrypt plaintext and return base64-encoded results
31
- *
32
- * @param plaintext - Data to encrypt
33
- * @param key - 32-byte encryption key
34
- * @returns Base64-encoded ciphertext and nonce
35
- */
36
- export declare function aesGcmEncryptToBase64(plaintext: Uint8Array, key: EncryptionKey): Promise<{
37
- ciphertext: string;
38
- nonce: string;
39
- }>;
40
- /**
41
- * Decrypt base64-encoded ciphertext
42
- *
43
- * @param ciphertextB64 - Base64-encoded ciphertext
44
- * @param nonceB64 - Base64-encoded nonce
45
- * @param key - 32-byte encryption key
46
- * @returns Decrypted plaintext
47
- */
48
- export declare function aesGcmDecryptFromBase64(ciphertextB64: string, nonceB64: string, key: EncryptionKey): Promise<Uint8Array>;
49
- /**
50
- * Encrypt with automatic key derivation from password
51
- *
52
- * This is a convenience wrapper that combines Argon2 KDF with AES-GCM.
53
- * For more control, use argon2 and aesGcmEncrypt separately.
54
- *
55
- * @param plaintext - Data to encrypt
56
- * @param passwordKey - Key derived from password via Argon2
57
- * @returns Encrypted result with nonce
58
- */
59
- export declare function encryptWithPasswordKey(plaintext: Uint8Array, passwordKey: Uint8Array): Promise<AesGcmEncryptResult>;
60
- /**
61
- * Decrypt with password-derived key
62
- *
63
- * @param ciphertext - Data to decrypt
64
- * @param nonce - Nonce used during encryption
65
- * @param passwordKey - Key derived from password via Argon2
66
- * @returns Decrypted plaintext
67
- */
68
- export declare function decryptWithPasswordKey(ciphertext: Uint8Array, nonce: AesNonce, passwordKey: Uint8Array): Promise<Uint8Array>;
69
- /**
70
- * Convert Uint8Array to base64 string
71
- *
72
- * MAINT-01: Uses chunked String.fromCharCode for O(n) performance.
73
- * Simple concatenation (`binary += char`) would be O(n²).
74
- */
75
- export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
76
- /**
77
- * Convert base64 string to Uint8Array
78
- *
79
- * @throws Error if input is not valid base64
80
- */
81
- export declare function base64ToUint8Array(base64: string): Uint8Array;
82
- /**
83
- * Encrypt and securely wipe plaintext after encryption
84
- *
85
- * @param plaintext - Data to encrypt (will be wiped)
86
- * @param key - Encryption key
87
- * @returns Encrypted result
88
- */
89
- export declare function encryptAndWipe(plaintext: Uint8Array, key: EncryptionKey): Promise<AesGcmEncryptResult>;
@@ -1,65 +0,0 @@
1
- import { EncryptionKey, Argon2Salt, KdfParams } from './types';
2
- /**
3
- * Derive an encryption key from a password using Argon2id
4
- *
5
- * @security H-01: The password string cannot be wiped from memory after use.
6
- * For sensitive applications, prefer argon2DeriveFromBytes() which accepts
7
- * Uint8Array that CAN be securely wiped.
8
- *
9
- * @param password - User password or PIN
10
- * @param salt - Unique salt (16+ bytes)
11
- * @param params - KDF parameters (memory, time, parallelism)
12
- * @returns 32-byte encryption key
13
- */
14
- export declare function argon2Derive(password: string, salt: Argon2Salt, params?: KdfParams): Promise<EncryptionKey>;
15
- /**
16
- * Derive key from password bytes (for non-string passwords like PINs)
17
- *
18
- * @param passwordBytes - Password as bytes
19
- * @param salt - Unique salt
20
- * @param params - KDF parameters
21
- * @returns 32-byte encryption key
22
- */
23
- export declare function argon2DeriveFromBytes(passwordBytes: Uint8Array, salt: Argon2Salt, params?: KdfParams): Promise<EncryptionKey>;
24
- /**
25
- * Validate KDF parameters are within safe bounds
26
- *
27
- * Prevents DoS attacks via excessive resource consumption.
28
- *
29
- * @param params - Parameters to validate
30
- * @throws Error if parameters are out of bounds
31
- */
32
- export declare function validateKdfParams(params: KdfParams): void;
33
- /**
34
- * Check if Argon2 WASM is available and working
35
- *
36
- * @returns true if Argon2 can be used
37
- */
38
- export declare function isArgon2Supported(): Promise<boolean>;
39
- /**
40
- * Verify a password against stored parameters
41
- *
42
- * This is primarily for testing/validation, not for authentication
43
- * (the server handles authentication).
44
- *
45
- * M-06: Timing Leak Note
46
- * The length check at the start of comparison returns early on mismatch,
47
- * creating a timing side-channel. This is acceptable because:
48
- * 1. Server handles real authentication (not this client-side code)
49
- * 2. Key lengths are fixed (32 bytes), so mismatch indicates corruption not attack
50
- * 3. Argon2 derivation dominates timing regardless of comparison path
51
- *
52
- * @param password - Password to verify
53
- * @param salt - Salt used during original derivation
54
- * @param params - KDF parameters used
55
- * @param expectedKey - Expected derived key
56
- * @returns true if password produces the same key
57
- */
58
- export declare function verifyPassword(password: string, salt: Argon2Salt, params: KdfParams, expectedKey: Uint8Array): Promise<boolean>;
59
- /**
60
- * Get recommended KDF parameters based on target duration
61
- *
62
- * @param targetMs - Target duration in milliseconds (default: 500ms)
63
- * @returns Recommended parameters
64
- */
65
- export declare function getRecommendedParams(targetMs?: number): KdfParams;
@@ -1 +0,0 @@
1
- export {};
@@ -1,28 +0,0 @@
1
- import { Argon2Salt, EncryptionKey, KdfParams } from './types';
2
- /**
3
- * Derive an encryption key from password using Argon2id in a Web Worker.
4
- *
5
- * Offloads CPU-intensive Argon2id KDF to a background thread to avoid
6
- * blocking the main thread. Falls back to synchronous derivation if
7
- * Web Workers are not available.
8
- *
9
- * @param password - User's password
10
- * @param salt - 16-byte random salt
11
- * @param params - KDF parameters (memory, iterations, parallelism)
12
- * @returns 32-byte encryption key
13
- *
14
- * @security **CALLER MUST WIPE RETURNED KEY AFTER USE**
15
- * The returned key contains sensitive cryptographic material.
16
- * Callers are responsible for wiping it when no longer needed:
17
- * ```ts
18
- * const key = await argon2DeriveInWorker(password, salt);
19
- * try {
20
- * // use key for encryption/decryption
21
- * } finally {
22
- * wipeBytes(key);
23
- * }
24
- * ```
25
- * Failure to wipe may leave key material in memory, vulnerable to memory
26
- * dump attacks.
27
- */
28
- export declare function argon2DeriveInWorker(password: string, salt: Argon2Salt, params?: KdfParams): Promise<EncryptionKey>;