@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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ErrorMessage-BXHiYibN.cjs"),r=require("./EmailRegisterForm-DaPLGws2.cjs"),o=require("./validation-BeXIfuHB.cjs");exports.CedrosLoginProvider=e.CedrosLoginProvider;exports.ErrorMessage=e.ErrorMessage;exports.LoadingSpinner=e.LoadingSpinner;exports.useAuth=e.useAuth;exports.useCedrosLogin=e.useCedrosLogin;exports.EmailLoginForm=r.EmailLoginForm;exports.EmailRegisterForm=r.EmailRegisterForm;exports.PasswordInput=r.PasswordInput;exports.useEmailAuth=r.useEmailAuth;exports.validatePassword=o.validatePassword;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./useAuth-DhIDTLRd.cjs"),i=require("./apiClient-CTTKhsYb.cjs"),e=require("./EmailRegisterForm-CxktR-4J.cjs"),o=require("./LoadingSpinner-d6sSxgQN.cjs"),s=require("./ErrorMessage-CHbYbVi2.cjs"),n=require("./validation-BuGQrA-K.cjs");exports.CedrosLoginProvider=r.CedrosLoginProvider;exports.useAuth=r.useAuth;exports.useCedrosLogin=i.useCedrosLogin;exports.EmailLoginForm=e.EmailLoginForm;exports.EmailRegisterForm=e.EmailRegisterForm;exports.PasswordInput=e.PasswordInput;exports.useEmailAuth=e.useEmailAuth;exports.LoadingSpinner=o.LoadingSpinner;exports.ErrorMessage=s.ErrorMessage;exports.validatePassword=n.validatePassword;
@@ -1,16 +1,634 @@
1
- /**
2
- * @cedros/login-react/email-only
3
- *
4
- * Minimal bundle with only email/password authentication (~15KB).
5
- */
6
- export { CedrosLoginProvider } from './context/CedrosLoginProvider';
7
- export { useCedrosLogin } from './context/useCedrosLogin';
8
- export { EmailLoginForm } from './components/email/EmailLoginForm';
9
- export { EmailRegisterForm } from './components/email/EmailRegisterForm';
10
- export { PasswordInput } from './components/email/PasswordInput';
11
- export { LoadingSpinner } from './components/shared/LoadingSpinner';
12
- export { ErrorMessage } from './components/shared/ErrorMessage';
13
- export { useAuth } from './hooks/useAuth';
14
- export { useEmailAuth } from './hooks/useEmailAuth';
15
- export type { AuthMethod, AuthUser, TokenPair, AuthError, AuthErrorCode, AuthResponse, AuthState, PasswordValidation, SessionStorage, ThemeMode, FeatureFlags, SessionConfig, AuthCallbacks, ThemeOverrides, CedrosLoginConfig, } from './types';
16
- export { validatePassword } from './utils/validation';
1
+ import { CSSProperties } from 'react';
2
+ import { InputHTMLAttributes } from 'react';
3
+ import { JSX } from 'react/jsx-runtime';
4
+ import { NamedExoticComponent } from 'react';
5
+ import { ReactNode } from 'react';
6
+
7
+ /**
8
+ * Authentication callbacks
9
+ */
10
+ export declare interface AuthCallbacks {
11
+ /** Called after successful login */
12
+ onLoginSuccess?: (user: AuthUser, method: AuthMethod) => void;
13
+ /** Called when login fails */
14
+ onLoginError?: (error: AuthError) => void;
15
+ /** Called after logout */
16
+ onLogout?: () => void;
17
+ /** Called when session expires */
18
+ onSessionExpired?: () => void;
19
+ }
20
+
21
+ /**
22
+ * Authentication error response
23
+ */
24
+ export declare interface AuthError {
25
+ code: AuthErrorCode;
26
+ message: string;
27
+ details?: Record<string, unknown>;
28
+ }
29
+
30
+ /**
31
+ * Standard error codes
32
+ */
33
+ export declare type AuthErrorCode = 'INVALID_CREDENTIALS' | 'ACCOUNT_LOCKED' | 'EMAIL_EXISTS' | 'WALLET_EXISTS' | 'INVALID_TOKEN' | 'TOKEN_EXPIRED' | 'INVALID_SIGNATURE' | 'INVALID_PUBLIC_KEY' | 'CHALLENGE_EXPIRED' | 'VALIDATION_ERROR' | 'RATE_LIMITED' | 'NOT_FOUND' | 'FORBIDDEN' | 'UNAUTHORIZED' | 'STEP_UP_REQUIRED' | 'TOTP_REQUIRED' | 'INVALID_TOTP_CODE' | 'SERVICE_UNAVAILABLE' | 'SERVER_ERROR' | 'NETWORK_ERROR' | 'UNKNOWN_ERROR';
34
+
35
+ /**
36
+ * Authentication method used for login/registration
37
+ * TYPE-01: Must match backend AuthMethod enum in server/src/models/mod.rs
38
+ */
39
+ export declare type AuthMethod = 'email' | 'google' | 'apple' | 'solana' | 'webauthn' | 'sso';
40
+
41
+ /**
42
+ * Authentication response from server
43
+ */
44
+ export declare interface AuthResponse {
45
+ user: AuthUser;
46
+ tokens?: TokenPair;
47
+ isNewUser: boolean;
48
+ callbackData?: Record<string, unknown>;
49
+ }
50
+
51
+ /**
52
+ * Authentication state
53
+ */
54
+ export declare type AuthState = 'idle' | 'loading' | 'authenticated' | 'unauthenticated' | 'error';
55
+
56
+ /**
57
+ * Auth state context — changes only on login/logout/token refresh.
58
+ *
59
+ * Subscribing to this context alone avoids re-renders from UI state
60
+ * changes (modal open/close, error display).
61
+ */
62
+ declare interface AuthStateContextValue {
63
+ config: CedrosLoginConfig;
64
+ user: AuthUser | null;
65
+ authState: AuthState;
66
+ logout: () => Promise<void>;
67
+ refreshUser: () => Promise<void>;
68
+ _internal?: CedrosLoginInternalAPI;
69
+ }
70
+
71
+ /**
72
+ * UI state context — changes on modal/error state changes.
73
+ *
74
+ * Subscribing to this context alone avoids re-renders from auth state
75
+ * changes (login, token refresh).
76
+ */
77
+ declare interface AuthUIContextValue {
78
+ error: AuthError | null;
79
+ isModalOpen: boolean;
80
+ openModal: () => void;
81
+ closeModal: () => void;
82
+ }
83
+
84
+ /**
85
+ * Authenticated user information
86
+ */
87
+ export declare interface AuthUser {
88
+ id: string;
89
+ email?: string;
90
+ name?: string;
91
+ picture?: string;
92
+ walletAddress?: string;
93
+ authMethods: AuthMethod[];
94
+ emailVerified: boolean;
95
+ /** Whether TOTP 2FA is enabled for this user */
96
+ totpEnabled?: boolean;
97
+ createdAt: string;
98
+ updatedAt: string;
99
+ }
100
+
101
+ /**
102
+ * Full configuration for CedrosLoginProvider
103
+ */
104
+ export declare interface CedrosLoginConfig {
105
+ /** Auth server base URL */
106
+ serverUrl: string;
107
+ /** App name for Solana message: "Login to {appName}". Default: window.location.hostname */
108
+ appName?: string;
109
+ /** Google OAuth client ID. Required if Google auth enabled */
110
+ googleClientId?: string;
111
+ /** Apple Sign In client ID (Services ID). Required if Apple auth enabled */
112
+ appleClientId?: string;
113
+ /** Solana configuration options */
114
+ solana?: SolanaConfig;
115
+ /** Enable/disable auth methods */
116
+ features?: FeatureFlags;
117
+ /** Form behavior configuration (forgot password, terms, email opt-in) */
118
+ forms?: FormConfig;
119
+ /** TOTP/2FA configuration (app-based authenticator) */
120
+ totp?: TotpConfig;
121
+ /** Embedded wallet configuration */
122
+ wallet?: WalletConfig;
123
+ /** Session/token configuration */
124
+ session?: SessionConfig;
125
+ /** Authentication event callbacks */
126
+ callbacks?: AuthCallbacks;
127
+ /** Theme mode. Default: 'auto' */
128
+ theme?: ThemeMode;
129
+ /** CSS variable overrides for custom theming */
130
+ themeOverrides?: ThemeOverrides;
131
+ /** API request timeout in ms. Default: 10000 */
132
+ requestTimeout?: number;
133
+ /** Retry attempts on transient errors. Default: 2 */
134
+ retryAttempts?: number;
135
+ }
136
+
137
+ /**
138
+ * Combined context value (backward-compatible with existing consumers)
139
+ */
140
+ declare interface CedrosLoginContextValue extends AuthStateContextValue, AuthUIContextValue {
141
+ }
142
+
143
+ /**
144
+ * Internal helpers for auth hooks (not part of public API)
145
+ */
146
+ declare interface CedrosLoginInternalAPI {
147
+ handleLoginSuccess: (user: AuthUser, tokens?: TokenPair) => void;
148
+ getAccessToken: () => string | null;
149
+ }
150
+
151
+ /**
152
+ * Provider component that wraps your app and provides authentication context.
153
+ *
154
+ * @example
155
+ * ```tsx
156
+ * <CedrosLoginProvider config={{ serverUrl: 'https://api.example.com' }}>
157
+ * <App />
158
+ * </CedrosLoginProvider>
159
+ * ```
160
+ */
161
+ export declare function CedrosLoginProvider({ config, children }: CedrosLoginProviderProps): JSX.Element;
162
+
163
+ declare interface CedrosLoginProviderProps {
164
+ config: CedrosLoginConfig;
165
+ children: ReactNode;
166
+ }
167
+
168
+ /**
169
+ * UI-08: Standardized error prop type for display components.
170
+ *
171
+ * Use this type for component props that display errors to users.
172
+ * Components should handle both AuthError objects and plain strings:
173
+ * - AuthError: structured error from API with code and message
174
+ * - string: simple error message for form validation or local errors
175
+ * - null: no error state
176
+ *
177
+ * @example
178
+ * ```tsx
179
+ * interface MyFormProps {
180
+ * error?: DisplayError;
181
+ * }
182
+ *
183
+ * // In component:
184
+ * const message = typeof error === 'string' ? error : error?.message;
185
+ * ```
186
+ */
187
+ declare type DisplayError = AuthError | string | null;
188
+
189
+ /**
190
+ * Email/password login form
191
+ */
192
+ export declare function EmailLoginForm({ onSuccess, onSwitchToRegister, onForgotPassword, className, }: EmailLoginFormProps): JSX.Element;
193
+
194
+ declare interface EmailLoginFormProps {
195
+ onSuccess?: () => void;
196
+ onSwitchToRegister?: () => void;
197
+ /** Called when user clicks "Forgot password?" (only in 'reset' mode) */
198
+ onForgotPassword?: () => void;
199
+ className?: string;
200
+ }
201
+
202
+ /**
203
+ * Email marketing opt-in checkbox configuration
204
+ */
205
+ declare interface EmailOptInConfig {
206
+ /** Whether to show the checkbox. @default false */
207
+ show?: boolean;
208
+ /** Default checked state. @default false */
209
+ defaultChecked?: boolean;
210
+ /** Custom label text. @default "Send me updates and news" */
211
+ label?: string;
212
+ }
213
+
214
+ /**
215
+ * Email/password registration form
216
+ */
217
+ export declare function EmailRegisterForm({ onSuccess, onSwitchToLogin, className, }: EmailRegisterFormProps): JSX.Element;
218
+
219
+ declare interface EmailRegisterFormProps {
220
+ onSuccess?: () => void;
221
+ onSwitchToLogin?: () => void;
222
+ className?: string;
223
+ }
224
+
225
+ /**
226
+ * Error message display component with accessibility support.
227
+ * Announces errors to screen readers and optionally focuses the message.
228
+ * Wrapped with React.memo to prevent unnecessary re-renders.
229
+ */
230
+ export declare const ErrorMessage: NamedExoticComponent<ErrorMessageProps>;
231
+
232
+ declare interface ErrorMessageProps {
233
+ error: DisplayError;
234
+ className?: string;
235
+ onDismiss?: () => void;
236
+ /** If true, focus the error message when it appears (for accessibility) */
237
+ autoFocus?: boolean;
238
+ }
239
+
240
+ /**
241
+ * Feature flags to enable/disable auth methods
242
+ */
243
+ export declare interface FeatureFlags {
244
+ /** Enable email/password auth. Default: true */
245
+ email?: boolean;
246
+ /** Enable Google OAuth. Default: true (requires googleClientId) */
247
+ google?: boolean;
248
+ /** Enable Apple Sign In. Default: true (requires appleClientId) */
249
+ apple?: boolean;
250
+ /** Enable Solana wallet sign-in. Default: true */
251
+ solana?: boolean;
252
+ /** Enable WebAuthn passkeys (server-managed). Default: true */
253
+ webauthn?: boolean;
254
+ /** Enable embedded wallet auto-enrollment on registration. Default: true */
255
+ walletEnrollment?: boolean;
256
+ }
257
+
258
+ /**
259
+ * Forgot password behavior configuration
260
+ */
261
+ declare interface ForgotPasswordConfig {
262
+ /**
263
+ * Mode for handling "forgot password" clicks.
264
+ * - 'reset': Shows ForgotPasswordForm (traditional reset flow)
265
+ * - 'instantLink': Sends an instant link for passwordless sign-in
266
+ * @default 'reset'
267
+ */
268
+ mode?: 'reset' | 'instantLink';
269
+ }
270
+
271
+ /**
272
+ * Form behavior configuration
273
+ */
274
+ declare interface FormConfig {
275
+ /** Forgot password behavior on sign in form */
276
+ forgotPassword?: ForgotPasswordConfig;
277
+ /** Terms of service checkbox on register form */
278
+ termsOfService?: TermsOfServiceConfig;
279
+ /** Email marketing opt-in checkbox on register form */
280
+ emailOptIn?: EmailOptInConfig;
281
+ }
282
+
283
+ /**
284
+ * Accessible loading spinner component.
285
+ * Announces loading state to screen readers when announce prop is true.
286
+ * Wrapped with React.memo to prevent unnecessary re-renders.
287
+ */
288
+ export declare const LoadingSpinner: NamedExoticComponent<LoadingSpinnerProps>;
289
+
290
+ declare interface LoadingSpinnerProps {
291
+ size?: 'sm' | 'md' | 'lg' | 'xl';
292
+ className?: string;
293
+ style?: CSSProperties;
294
+ /** Custom label for screen readers (default: "Loading") */
295
+ label?: string;
296
+ /** If true, announce the loading state to screen readers */
297
+ announce?: boolean;
298
+ }
299
+
300
+ /** Union type for login result */
301
+ declare type LoginResult = MfaRequiredResult | LoginSuccessResult;
302
+
303
+ /** Result of successful login (no TOTP required or after TOTP verification) */
304
+ declare interface LoginSuccessResult {
305
+ mfaRequired: false;
306
+ response: AuthResponse;
307
+ }
308
+
309
+ /** Result when MFA verification is required */
310
+ declare interface MfaRequiredResult {
311
+ mfaRequired: true;
312
+ mfaToken: string;
313
+ email: string;
314
+ userId: string;
315
+ }
316
+
317
+ /**
318
+ * Password input with visibility toggle and optional strength meter
319
+ */
320
+ export declare function PasswordInput({ label, labelAction, showStrengthMeter, onValidationChange, error, className, onChange, value, ...props }: PasswordInputProps): JSX.Element;
321
+
322
+ declare interface PasswordInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
323
+ label?: string;
324
+ /** Action element shown on the right side of the label (e.g., "Forgot password?" link) */
325
+ labelAction?: React.ReactNode;
326
+ showStrengthMeter?: boolean;
327
+ onValidationChange?: (validation: PasswordValidation) => void;
328
+ error?: string;
329
+ }
330
+
331
+ /**
332
+ * Password validation result
333
+ */
334
+ export declare interface PasswordValidation {
335
+ isValid: boolean;
336
+ errors: {
337
+ length?: string;
338
+ uppercase?: string;
339
+ lowercase?: string;
340
+ number?: string;
341
+ special?: string;
342
+ };
343
+ strength: 'weak' | 'fair' | 'good' | 'strong';
344
+ }
345
+
346
+ /**
347
+ * Session handling configuration
348
+ *
349
+ * @security For best security, use the default `cookie` storage with `autoRefresh: true`.
350
+ * Avoid `localStorage` in production unless absolutely necessary.
351
+ */
352
+ export declare interface SessionConfig {
353
+ /**
354
+ * Where to store tokens. Default: 'cookie'
355
+ *
356
+ * @security `cookie` is strongly recommended for production use.
357
+ * See {@link SessionStorage} for security implications of each option.
358
+ */
359
+ storage?: SessionStorage;
360
+ /** Auto-refresh tokens before expiry. Default: true */
361
+ autoRefresh?: boolean;
362
+ /** Sync auth state across browser tabs. Default: true */
363
+ syncTabs?: boolean;
364
+ /** Storage key for tokens when using web storage. Default: 'cedros_tokens' */
365
+ persistKey?: string;
366
+ /**
367
+ * Explicitly allow web storage for tokens.
368
+ *
369
+ * @security This is intentionally opt-in because `localStorage` and
370
+ * `sessionStorage` are vulnerable to XSS token theft.
371
+ *
372
+ * If you enable this, also implement a strict CSP and audit any third-party scripts.
373
+ */
374
+ allowWebStorage?: boolean;
375
+ }
376
+
377
+ /**
378
+ * Session storage mode
379
+ *
380
+ * **Security considerations:**
381
+ * - `cookie`: **Recommended.** HttpOnly cookies managed by server. Immune to XSS.
382
+ * - `memory`: Secure but lost on page refresh. Good for high-security applications.
383
+ * - `localStorage`: **Use with caution.** Tokens are accessible to any JavaScript
384
+ * on the page, making them vulnerable to XSS attacks. Only use when cookie-based
385
+ * auth is not possible (e.g., cross-origin scenarios without proper CORS).
386
+ */
387
+ export declare type SessionStorage = 'cookie' | 'memory' | 'localStorage' | 'sessionStorage';
388
+
389
+ /**
390
+ * Solana configuration options
391
+ */
392
+ declare interface SolanaConfig {
393
+ /** Solana network to connect to. Default: 'mainnet-beta' */
394
+ network?: SolanaNetwork;
395
+ /** Auto-reconnect wallet on page load. Default: false */
396
+ autoConnect?: boolean;
397
+ }
398
+
399
+ /**
400
+ * Solana network configuration
401
+ */
402
+ declare type SolanaNetwork = 'mainnet-beta' | 'devnet';
403
+
404
+ /**
405
+ * Terms of service checkbox configuration
406
+ */
407
+ declare interface TermsOfServiceConfig {
408
+ /** Whether to show the checkbox. @default false */
409
+ show?: boolean;
410
+ /** Whether agreement is required to register. @default true (when shown) */
411
+ required?: boolean;
412
+ /** Default checked state. @default false */
413
+ defaultChecked?: boolean;
414
+ /** URL to terms of service page */
415
+ url?: string;
416
+ /** Custom label text. @default "I agree to the Terms of Service" */
417
+ label?: string;
418
+ }
419
+
420
+ /**
421
+ * Theme mode
422
+ */
423
+ export declare type ThemeMode = 'light' | 'dark' | 'auto';
424
+
425
+ /**
426
+ * CSS variable theme overrides
427
+ */
428
+ export declare interface ThemeOverrides {
429
+ '--cedros-primary'?: string;
430
+ '--cedros-primary-foreground'?: string;
431
+ '--cedros-background'?: string;
432
+ '--cedros-foreground'?: string;
433
+ '--cedros-muted'?: string;
434
+ '--cedros-muted-foreground'?: string;
435
+ '--cedros-border'?: string;
436
+ '--cedros-input'?: string;
437
+ '--cedros-ring'?: string;
438
+ '--cedros-radius'?: string;
439
+ '--cedros-destructive'?: string;
440
+ '--cedros-destructive-foreground'?: string;
441
+ [key: string]: string | undefined;
442
+ }
443
+
444
+ /**
445
+ * JWT token pair returned from authentication
446
+ */
447
+ export declare interface TokenPair {
448
+ accessToken: string;
449
+ refreshToken: string;
450
+ expiresIn: number;
451
+ }
452
+
453
+ /**
454
+ * Two-factor authentication (TOTP) configuration
455
+ *
456
+ * Admin-level settings for app-based 2FA using authenticator apps.
457
+ */
458
+ declare interface TotpConfig {
459
+ /**
460
+ * Whether TOTP 2FA is enabled for the application.
461
+ * @default false
462
+ */
463
+ enabled?: boolean;
464
+ /**
465
+ * Whether TOTP 2FA is required for all users.
466
+ * If false, users can optionally enable it for their account.
467
+ * @default false
468
+ */
469
+ required?: boolean;
470
+ /**
471
+ * Issuer name shown in authenticator apps.
472
+ * @default appName or hostname
473
+ */
474
+ issuer?: string;
475
+ }
476
+
477
+ /**
478
+ * Main authentication hook providing user state and actions.
479
+ *
480
+ * @example
481
+ * ```tsx
482
+ * function MyComponent() {
483
+ * const { user, isAuthenticated, logout, openLoginModal } = useAuth();
484
+ *
485
+ * if (!isAuthenticated) {
486
+ * return <button onClick={openLoginModal}>Login</button>;
487
+ * }
488
+ *
489
+ * return (
490
+ * <div>
491
+ * <p>Welcome, {user?.name}</p>
492
+ * <button onClick={logout}>Logout</button>
493
+ * </div>
494
+ * );
495
+ * }
496
+ * ```
497
+ */
498
+ export declare function useAuth(): UseAuthReturn;
499
+
500
+ declare interface UseAuthReturn {
501
+ user: AuthUser | null;
502
+ authState: AuthState;
503
+ error: AuthError | null;
504
+ isAuthenticated: boolean;
505
+ isLoading: boolean;
506
+ logout: () => Promise<void>;
507
+ refreshUser: () => Promise<void>;
508
+ openLoginModal: () => void;
509
+ closeLoginModal: () => void;
510
+ }
511
+
512
+ /**
513
+ * Hook to access the full Cedros Login context.
514
+ * Must be used within a CedrosLoginProvider.
515
+ *
516
+ * For better performance, prefer `useAuthState()` or `useAuthUI()` when you
517
+ * only need a subset of the context. This hook re-renders on any change.
518
+ */
519
+ export declare function useCedrosLogin(): CedrosLoginContextValue;
520
+
521
+ /**
522
+ * Hook for email/password authentication.
523
+ *
524
+ * @example
525
+ * ```tsx
526
+ * function LoginForm() {
527
+ * const { login, isLoading, error } = useEmailAuth();
528
+ *
529
+ * const handleSubmit = async (e) => {
530
+ * e.preventDefault();
531
+ * try {
532
+ * await login(email, password);
533
+ * } catch (err) {
534
+ * // Handle error
535
+ * }
536
+ * };
537
+ * }
538
+ * ```
539
+ */
540
+ export declare function useEmailAuth(): UseEmailAuthReturn;
541
+
542
+ declare interface UseEmailAuthReturn {
543
+ /** Login - may return mfaRequired if 2FA is enabled */
544
+ login: (email: string, password: string) => Promise<LoginResult>;
545
+ register: (email: string, password: string, name?: string) => Promise<AuthResponse>;
546
+ isLoading: boolean;
547
+ error: AuthError | null;
548
+ clearError: () => void;
549
+ /**
550
+ * Number of remaining login attempts before rate limiting.
551
+ *
552
+ * M-10: Snapshot Behavior
553
+ * This value is a point-in-time snapshot computed at render time.
554
+ * It may be briefly stale during rapid requests or concurrent renders.
555
+ * For UI display only - actual rate limiting is enforced inside login/register.
556
+ */
557
+ remainingAttempts: number;
558
+ /**
559
+ * Time in ms until rate limit resets (0 if not rate limited).
560
+ *
561
+ * M-10: Snapshot Behavior
562
+ * This value is a point-in-time snapshot computed at render time.
563
+ * It may be briefly stale - use for UI display, not for logic decisions.
564
+ */
565
+ timeUntilReset: number;
566
+ }
567
+
568
+ /**
569
+ * Password validation rules:
570
+ * - Minimum 10 characters
571
+ * - At least 1 uppercase letter (A-Z)
572
+ * - At least 1 lowercase letter (a-z)
573
+ * - At least 1 number (0-9)
574
+ * - At least 1 special character (@$!%*?&#^())
575
+ *
576
+ * Note: All checks are performed regardless of early failures to prevent
577
+ * timing attacks that could reveal which requirements are met.
578
+ */
579
+ export declare function validatePassword(password: string): PasswordValidation;
580
+
581
+ /**
582
+ * Embedded wallet configuration
583
+ *
584
+ * Controls whether the embedded wallet is advertised to other Cedros modules
585
+ * (like cedros-pay) running in the same application.
586
+ */
587
+ declare interface WalletConfig {
588
+ /**
589
+ * Expose embedded wallet availability via window global.
590
+ *
591
+ * When enabled, sets `window.__CEDROS_EMBEDDED_WALLET__` with:
592
+ * - `available`: boolean - whether user has enrolled SSS wallet
593
+ * - `publicKey`: string | null - Solana public key if available
594
+ *
595
+ * This allows other modules (e.g., cedros-pay) to detect embedded wallet
596
+ * and offer crypto payment options to users without browser wallet extensions.
597
+ *
598
+ * @security The signing function is NOT exposed on window. Signing must go
599
+ * through React context (useTransactionSigning hook) to prevent unauthorized
600
+ * access by arbitrary scripts.
601
+ *
602
+ * @default false
603
+ */
604
+ exposeAvailability?: boolean;
605
+ /**
606
+ * Whether to include the user's wallet public key in the window global.
607
+ *
608
+ * @security This is a privacy tradeoff: exposing a stable identifier on `window`
609
+ * makes it available to any script on the page.
610
+ *
611
+ * If you only need to know whether an embedded wallet exists, keep this `false`.
612
+ *
613
+ * @default false
614
+ */
615
+ exposePublicKey?: boolean;
616
+ /**
617
+ * SEC-004: Allowed domains for WebAuthn RP ID validation.
618
+ *
619
+ * In production, passkey operations will be rejected if the current hostname
620
+ * is not in this list. This prevents passkey registration on malicious domains
621
+ * that might be serving the app.
622
+ *
623
+ * @security Without this, an attacker could phish users to a lookalike domain
624
+ * and get them to register passkeys that only work on the malicious domain.
625
+ * While this doesn't compromise real credentials, it can be used in social
626
+ * engineering attacks.
627
+ *
628
+ * @example ['myapp.com', 'app.myapp.com']
629
+ * @default [] (localhost/127.0.0.1 always allowed for development)
630
+ */
631
+ allowedRpDomains?: string[];
632
+ }
633
+
634
+ export { }
@@ -1,15 +1,18 @@
1
- import { C as r, E as o, L as e, a as i, u as m } from "./ErrorMessage-DU2VBb85.js";
2
- import { E as u, a as d, P as n, u as g } from "./EmailRegisterForm-C0PStlj5.js";
3
- import { v as p } from "./validation-BebL7hMF.js";
1
+ import { C as s, u as a } from "./useAuth-Bge6KaWN.js";
2
+ import { u as i } from "./apiClient-B2JxVPlH.js";
3
+ import { E as t, a as u, P as p, u as d } from "./EmailRegisterForm-BrDL3BZy.js";
4
+ import { L as f } from "./LoadingSpinner-6vml-zwr.js";
5
+ import { E as x } from "./ErrorMessage-CcEK0pYO.js";
6
+ import { v as L } from "./validation-B8kMV3BL.js";
4
7
  export {
5
- r as CedrosLoginProvider,
6
- u as EmailLoginForm,
7
- d as EmailRegisterForm,
8
- o as ErrorMessage,
9
- e as LoadingSpinner,
10
- n as PasswordInput,
11
- i as useAuth,
12
- m as useCedrosLogin,
13
- g as useEmailAuth,
14
- p as validatePassword
8
+ s as CedrosLoginProvider,
9
+ t as EmailLoginForm,
10
+ u as EmailRegisterForm,
11
+ x as ErrorMessage,
12
+ f as LoadingSpinner,
13
+ p as PasswordInput,
14
+ a as useAuth,
15
+ i as useCedrosLogin,
16
+ d as useEmailAuth,
17
+ L as validatePassword
15
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"email-only.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"email-only.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./ErrorMessage-BXHiYibN.cjs"),e=require("./GoogleLoginButton-DoAdOqb3.cjs");exports.CedrosLoginProvider=o.CedrosLoginProvider;exports.ErrorMessage=o.ErrorMessage;exports.LoadingSpinner=o.LoadingSpinner;exports.useAuth=o.useAuth;exports.useCedrosLogin=o.useCedrosLogin;exports.GoogleLoginButton=e.GoogleLoginButton;exports.useGoogleAuth=e.useGoogleAuth;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./useAuth-DhIDTLRd.cjs"),r=require("./apiClient-CTTKhsYb.cjs"),o=require("./GoogleLoginButton-BydKswn4.cjs"),n=require("./LoadingSpinner-d6sSxgQN.cjs"),i=require("./ErrorMessage-CHbYbVi2.cjs");exports.CedrosLoginProvider=e.CedrosLoginProvider;exports.useAuth=e.useAuth;exports.useCedrosLogin=r.useCedrosLogin;exports.GoogleLoginButton=o.GoogleLoginButton;exports.useGoogleAuth=o.useGoogleAuth;exports.LoadingSpinner=n.LoadingSpinner;exports.ErrorMessage=i.ErrorMessage;