@cedros/login-react 0.0.12 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (435) hide show
  1. package/README.md +68 -0
  2. package/dist/AdminDepositList-CyT4VBH8.js +311 -0
  3. package/dist/AdminDepositList-CyT4VBH8.js.map +1 -0
  4. package/dist/AdminDepositList-b2AXtLg0.cjs +1 -0
  5. package/dist/AdminDepositList-b2AXtLg0.cjs.map +1 -0
  6. package/dist/AdminWithdrawalHistory-Cud-yuWy.js +916 -0
  7. package/dist/AdminWithdrawalHistory-Cud-yuWy.js.map +1 -0
  8. package/dist/AdminWithdrawalHistory-DL9zbu2b.cjs +1 -0
  9. package/dist/AdminWithdrawalHistory-DL9zbu2b.cjs.map +1 -0
  10. package/dist/AuthenticationSettings-D739nNul.cjs +1 -0
  11. package/dist/AuthenticationSettings-D739nNul.cjs.map +1 -0
  12. package/dist/AuthenticationSettings-DtLoxQ2z.cjs +1 -0
  13. package/dist/AuthenticationSettings-DtLoxQ2z.cjs.map +1 -0
  14. package/dist/AuthenticationSettings-Dx3JCI3m.js +9 -0
  15. package/dist/AuthenticationSettings-Dx3JCI3m.js.map +1 -0
  16. package/dist/AuthenticationSettings-vowmQPXz.js +525 -0
  17. package/dist/AuthenticationSettings-vowmQPXz.js.map +1 -0
  18. package/dist/AutosaveStatus-CCrZszKA.cjs +1 -0
  19. package/dist/AutosaveStatus-CCrZszKA.cjs.map +1 -0
  20. package/dist/AutosaveStatus-Ciyt350A.js +1497 -0
  21. package/dist/AutosaveStatus-Ciyt350A.js.map +1 -0
  22. package/dist/CreditSystemSettings-BQ3h4CyM.js +210 -0
  23. package/dist/CreditSystemSettings-BQ3h4CyM.js.map +1 -0
  24. package/dist/CreditSystemSettings-C6dUsu72.cjs +1 -0
  25. package/dist/CreditSystemSettings-C6dUsu72.cjs.map +1 -0
  26. package/dist/CreditSystemSettings-CBot8EPW.cjs +1 -0
  27. package/dist/CreditSystemSettings-CBot8EPW.cjs.map +1 -0
  28. package/dist/CreditSystemSettings-bVuNLsqp.js +9 -0
  29. package/dist/CreditSystemSettings-bVuNLsqp.js.map +1 -0
  30. package/dist/DepositsSection-BkKUS4vk.cjs +1 -0
  31. package/dist/DepositsSection-BkKUS4vk.cjs.map +1 -0
  32. package/dist/{DepositsSection-0Hqr0yDm.js → DepositsSection-DD9MKUFt.js} +20 -14
  33. package/dist/DepositsSection-DD9MKUFt.js.map +1 -0
  34. package/dist/EmailRegisterForm-Pvm3I8GP.cjs +1 -0
  35. package/dist/EmailRegisterForm-Pvm3I8GP.cjs.map +1 -0
  36. package/dist/EmailRegisterForm-nI0BOIxR.js +927 -0
  37. package/dist/EmailRegisterForm-nI0BOIxR.js.map +1 -0
  38. package/dist/EmailSettings-B9qwPSiM.cjs +1 -0
  39. package/dist/EmailSettings-B9qwPSiM.cjs.map +1 -0
  40. package/dist/EmailSettings-CCA8dNCi.js +17 -0
  41. package/dist/EmailSettings-CCA8dNCi.js.map +1 -0
  42. package/dist/EmailSettings-RbgAq9FB.cjs +1 -0
  43. package/dist/EmailSettings-RbgAq9FB.cjs.map +1 -0
  44. package/dist/{AuthenticationSettings-BSoIQ58T.js → EmailSettings-mxlKNcPl.js} +3 -3
  45. package/dist/EmailSettings-mxlKNcPl.js.map +1 -0
  46. package/dist/EmbeddedWalletSettings-B4h-8rxB.cjs +1 -0
  47. package/dist/EmbeddedWalletSettings-B4h-8rxB.cjs.map +1 -0
  48. package/dist/EmbeddedWalletSettings-BInZvFZf.js +79 -0
  49. package/dist/EmbeddedWalletSettings-BInZvFZf.js.map +1 -0
  50. package/dist/{EmbeddedWalletSettings-iVf_3pn3.js → EmbeddedWalletSettings-CXlZFFDw.js} +3 -3
  51. package/dist/EmbeddedWalletSettings-CXlZFFDw.js.map +1 -0
  52. package/dist/EmbeddedWalletSettings-D5JXae1L.cjs +1 -0
  53. package/dist/EmbeddedWalletSettings-D5JXae1L.cjs.map +1 -0
  54. package/dist/ErrorMessage-CHbYbVi2.cjs +1 -0
  55. package/dist/ErrorMessage-CHbYbVi2.cjs.map +1 -0
  56. package/dist/ErrorMessage-CcEK0pYO.js +64 -0
  57. package/dist/ErrorMessage-CcEK0pYO.js.map +1 -0
  58. package/dist/{GoogleLoginButton-BzHr545L.js → GoogleLoginButton-CXwp4LsQ.js} +4 -3
  59. package/dist/{GoogleLoginButton-BzHr545L.js.map → GoogleLoginButton-CXwp4LsQ.js.map} +1 -1
  60. package/dist/GoogleLoginButton-zS_69-KV.cjs +1 -0
  61. package/dist/{GoogleLoginButton-DoAdOqb3.cjs.map → GoogleLoginButton-zS_69-KV.cjs.map} +1 -1
  62. package/dist/LoadingSpinner-6vml-zwr.js +79 -0
  63. package/dist/LoadingSpinner-6vml-zwr.js.map +1 -0
  64. package/dist/LoadingSpinner-d6sSxgQN.cjs +1 -0
  65. package/dist/LoadingSpinner-d6sSxgQN.cjs.map +1 -0
  66. package/dist/PermissionsSection-BPbE-hNx.cjs +1 -0
  67. package/dist/PermissionsSection-BPbE-hNx.cjs.map +1 -0
  68. package/dist/PermissionsSection-CighC1p6.js +1026 -0
  69. package/dist/PermissionsSection-CighC1p6.js.map +1 -0
  70. package/dist/ServerSettings-BE8fsE5k.js +84 -0
  71. package/dist/ServerSettings-BE8fsE5k.js.map +1 -0
  72. package/dist/ServerSettings-CYTlQ2xy.cjs +1 -0
  73. package/dist/ServerSettings-CYTlQ2xy.cjs.map +1 -0
  74. package/dist/ServerSettings-DFs9jQ3f.cjs +1 -0
  75. package/dist/ServerSettings-DFs9jQ3f.cjs.map +1 -0
  76. package/dist/{ServerSettings-C_osdbiX.js → ServerSettings-pSmWDC1d.js} +3 -3
  77. package/dist/ServerSettings-pSmWDC1d.js.map +1 -0
  78. package/dist/SettingsPageLayout--GZ_iHLc.js +50 -0
  79. package/dist/SettingsPageLayout--GZ_iHLc.js.map +1 -0
  80. package/dist/SettingsPageLayout-j5lMjEID.cjs +1 -0
  81. package/dist/SettingsPageLayout-j5lMjEID.cjs.map +1 -0
  82. package/dist/SolanaLoginButton-BjOxpE1C.cjs +1 -0
  83. package/dist/{SolanaLoginButton-CPzms0kf.cjs.map → SolanaLoginButton-BjOxpE1C.cjs.map} +1 -1
  84. package/dist/{SolanaLoginButton-C-CfZxAZ.js → SolanaLoginButton-P22QjBaO.js} +5 -4
  85. package/dist/{SolanaLoginButton-C-CfZxAZ.js.map → SolanaLoginButton-P22QjBaO.js.map} +1 -1
  86. package/dist/StatsBar-BX-hHtTq.js +66 -0
  87. package/dist/StatsBar-BX-hHtTq.js.map +1 -0
  88. package/dist/StatsBar-DTUZCwDD.cjs +1 -0
  89. package/dist/StatsBar-DTUZCwDD.cjs.map +1 -0
  90. package/dist/{TeamSection-Bjt72upx.js → TeamSection-BIECkp7g.js} +27 -26
  91. package/dist/TeamSection-BIECkp7g.js.map +1 -0
  92. package/dist/TeamSection-BOH9pv_E.cjs +1 -0
  93. package/dist/TeamSection-BOH9pv_E.cjs.map +1 -0
  94. package/dist/UsersSection-e6q7FHzx.cjs +1 -0
  95. package/dist/UsersSection-e6q7FHzx.cjs.map +1 -0
  96. package/dist/UsersSection-t-zm0jZW.js +33 -0
  97. package/dist/UsersSection-t-zm0jZW.js.map +1 -0
  98. package/dist/{WebhookSettings-IyhyTFes.js → WebhookSettings-Bb70MbFj.js} +4 -4
  99. package/dist/WebhookSettings-Bb70MbFj.js.map +1 -0
  100. package/dist/WebhookSettings-C-gvNAW1.cjs +1 -0
  101. package/dist/WebhookSettings-C-gvNAW1.cjs.map +1 -0
  102. package/dist/WebhookSettings-CGyDKjrm.cjs +1 -0
  103. package/dist/WebhookSettings-CGyDKjrm.cjs.map +1 -0
  104. package/dist/WebhookSettings-kIstSjZi.js +17 -0
  105. package/dist/WebhookSettings-kIstSjZi.js.map +1 -0
  106. package/dist/WithdrawalsSection-sljIyeaz.cjs +1 -0
  107. package/dist/WithdrawalsSection-sljIyeaz.cjs.map +1 -0
  108. package/dist/WithdrawalsSection-yRDTVFsb.js +27 -0
  109. package/dist/WithdrawalsSection-yRDTVFsb.js.map +1 -0
  110. package/dist/admin-only.cjs +1 -0
  111. package/dist/admin-only.cjs.map +1 -0
  112. package/dist/{admin/types.d.ts → admin-only.d.ts} +228 -167
  113. package/dist/admin-only.js +8 -0
  114. package/dist/admin-only.js.map +1 -0
  115. package/dist/assets/argon2Worker-Bi5TuQvD.js.map +1 -1
  116. package/dist/email-only.cjs +1 -1
  117. package/dist/email-only.d.ts +645 -16
  118. package/dist/email-only.js +16 -13
  119. package/dist/email-only.js.map +1 -1
  120. package/dist/google-only.cjs +1 -1
  121. package/dist/google-only.d.ts +554 -13
  122. package/dist/google-only.js +11 -8
  123. package/dist/google-only.js.map +1 -1
  124. package/dist/index.cjs +2061 -1
  125. package/dist/index.cjs.map +1 -1
  126. package/dist/index.d.ts +5030 -144
  127. package/dist/index.js +13482 -117
  128. package/dist/index.js.map +1 -1
  129. package/dist/login-react.css +1 -1
  130. package/dist/plugin-8_dpq7tC.cjs +1 -0
  131. package/dist/plugin-8_dpq7tC.cjs.map +1 -0
  132. package/dist/plugin-D1NdppqC.js +596 -0
  133. package/dist/plugin-D1NdppqC.js.map +1 -0
  134. package/dist/sanitization-Bo_tn-L2.cjs +1 -0
  135. package/dist/sanitization-Bo_tn-L2.cjs.map +1 -0
  136. package/dist/sanitization-CQ-H1MSg.js +39 -0
  137. package/dist/sanitization-CQ-H1MSg.js.map +1 -0
  138. package/dist/shamir-4DyQMJCk.cjs +1 -0
  139. package/dist/shamir-4DyQMJCk.cjs.map +1 -0
  140. package/dist/{solanaKeypair-BlXol3nh.js → shamir-L-s-Tp1Z.js} +765 -757
  141. package/dist/shamir-L-s-Tp1Z.js.map +1 -0
  142. package/dist/silentWalletEnroll-BgTb4H5I.cjs +1 -0
  143. package/dist/silentWalletEnroll-BgTb4H5I.cjs.map +1 -0
  144. package/dist/silentWalletEnroll-DWt6Pr3B.js +41 -0
  145. package/dist/silentWalletEnroll-DWt6Pr3B.js.map +1 -0
  146. package/dist/solana-only.cjs +1 -1
  147. package/dist/solana-only.d.ts +605 -13
  148. package/dist/solana-only.js +12 -9
  149. package/dist/solana-only.js.map +1 -1
  150. package/dist/style.d.ts +1 -0
  151. package/dist/useAdminDeposits-BTSyeAfg.js +151 -0
  152. package/dist/useAdminDeposits-BTSyeAfg.js.map +1 -0
  153. package/dist/useAdminDeposits-BkkCwHWp.cjs +1 -0
  154. package/dist/useAdminDeposits-BkkCwHWp.cjs.map +1 -0
  155. package/dist/{ErrorMessage-DU2VBb85.js → useAuth-C3dpk0po.js} +1005 -1241
  156. package/dist/useAuth-C3dpk0po.js.map +1 -0
  157. package/dist/useAuth-D3Pk_H3z.cjs +1 -0
  158. package/dist/useAuth-D3Pk_H3z.cjs.map +1 -0
  159. package/dist/useCedrosLogin-C9MrcZvh.cjs +1 -0
  160. package/dist/useCedrosLogin-C9MrcZvh.cjs.map +1 -0
  161. package/dist/useCedrosLogin-_94MmGGq.js +216 -0
  162. package/dist/useCedrosLogin-_94MmGGq.js.map +1 -0
  163. package/dist/useOrgs-C3pzMA9h.js +215 -0
  164. package/dist/useOrgs-C3pzMA9h.js.map +1 -0
  165. package/dist/useOrgs-DDVRCaVi.cjs +1 -0
  166. package/dist/useOrgs-DDVRCaVi.cjs.map +1 -0
  167. package/dist/useSystemSettings-DBlAMjFi.js +97 -0
  168. package/dist/useSystemSettings-DBlAMjFi.js.map +1 -0
  169. package/dist/useSystemSettings-DRrreszl.cjs +1 -0
  170. package/dist/useSystemSettings-DRrreszl.cjs.map +1 -0
  171. package/dist/useUsersStatsSummary-8qY7iP4G.cjs +1 -0
  172. package/dist/useUsersStatsSummary-8qY7iP4G.cjs.map +1 -0
  173. package/dist/useUsersStatsSummary-NjEFvWuz.js +1246 -0
  174. package/dist/useUsersStatsSummary-NjEFvWuz.js.map +1 -0
  175. package/dist/{validation-BebL7hMF.js → validation-B8kMV3BL.js} +1 -1
  176. package/dist/{validation-BebL7hMF.js.map → validation-B8kMV3BL.js.map} +1 -1
  177. package/dist/{validation-BeXIfuHB.cjs → validation-BuGQrA-K.cjs} +1 -1
  178. package/dist/{validation-BeXIfuHB.cjs.map → validation-BuGQrA-K.cjs.map} +1 -1
  179. package/package.json +11 -1
  180. package/dist/AuthenticationSettings-BSoIQ58T.js.map +0 -1
  181. package/dist/AuthenticationSettings-CNmWEPFV.cjs +0 -1
  182. package/dist/AuthenticationSettings-CNmWEPFV.cjs.map +0 -1
  183. package/dist/CreditSystemSettings-BYxoFwaP.js +0 -9
  184. package/dist/CreditSystemSettings-BYxoFwaP.js.map +0 -1
  185. package/dist/CreditSystemSettings-D2fLorNx.cjs +0 -1
  186. package/dist/CreditSystemSettings-D2fLorNx.cjs.map +0 -1
  187. package/dist/DepositsSection-0Hqr0yDm.js.map +0 -1
  188. package/dist/DepositsSection-CGKCzM-H.cjs +0 -1
  189. package/dist/DepositsSection-CGKCzM-H.cjs.map +0 -1
  190. package/dist/EmailRegisterForm-C0PStlj5.js +0 -961
  191. package/dist/EmailRegisterForm-C0PStlj5.js.map +0 -1
  192. package/dist/EmailRegisterForm-DaPLGws2.cjs +0 -1
  193. package/dist/EmailRegisterForm-DaPLGws2.cjs.map +0 -1
  194. package/dist/EmailSettings-CiLDwzNb.cjs +0 -1
  195. package/dist/EmailSettings-CiLDwzNb.cjs.map +0 -1
  196. package/dist/EmailSettings-DTjpO65J.js +0 -9
  197. package/dist/EmailSettings-DTjpO65J.js.map +0 -1
  198. package/dist/EmbeddedWalletSettings-CX7sYiPy.cjs +0 -1
  199. package/dist/EmbeddedWalletSettings-CX7sYiPy.cjs.map +0 -1
  200. package/dist/EmbeddedWalletSettings-iVf_3pn3.js.map +0 -1
  201. package/dist/ErrorMessage-BXHiYibN.cjs +0 -1
  202. package/dist/ErrorMessage-BXHiYibN.cjs.map +0 -1
  203. package/dist/ErrorMessage-DU2VBb85.js.map +0 -1
  204. package/dist/GoogleLoginButton-DoAdOqb3.cjs +0 -1
  205. package/dist/ServerSettings-C_osdbiX.js.map +0 -1
  206. package/dist/ServerSettings-HqSb_VDj.cjs +0 -1
  207. package/dist/ServerSettings-HqSb_VDj.cjs.map +0 -1
  208. package/dist/SolanaLoginButton-CPzms0kf.cjs +0 -1
  209. package/dist/TeamSection-Bjt72upx.js.map +0 -1
  210. package/dist/TeamSection-DZeWHkLd.cjs +0 -1
  211. package/dist/TeamSection-DZeWHkLd.cjs.map +0 -1
  212. package/dist/UsersSection-DU86czWP.cjs +0 -1
  213. package/dist/UsersSection-DU86czWP.cjs.map +0 -1
  214. package/dist/UsersSection-hAcyfSZk.js +0 -81
  215. package/dist/UsersSection-hAcyfSZk.js.map +0 -1
  216. package/dist/WebhookSettings-Br9bakAL.cjs +0 -1
  217. package/dist/WebhookSettings-Br9bakAL.cjs.map +0 -1
  218. package/dist/WebhookSettings-IyhyTFes.js.map +0 -1
  219. package/dist/WithdrawalsSection-B1415d-G.js +0 -20
  220. package/dist/WithdrawalsSection-B1415d-G.js.map +0 -1
  221. package/dist/WithdrawalsSection-iZJBuZ7O.cjs +0 -1
  222. package/dist/WithdrawalsSection-iZJBuZ7O.cjs.map +0 -1
  223. package/dist/admin/AdminShell.d.ts +0 -38
  224. package/dist/admin/icons.d.ts +0 -2
  225. package/dist/admin/index.d.ts +0 -10
  226. package/dist/admin/plugin.d.ts +0 -3
  227. package/dist/admin/sections/AuthenticationSettings.d.ts +0 -3
  228. package/dist/admin/sections/CreditSystemSettings.d.ts +0 -3
  229. package/dist/admin/sections/DepositsSection.d.ts +0 -3
  230. package/dist/admin/sections/EmailSettings.d.ts +0 -3
  231. package/dist/admin/sections/EmbeddedWalletSettings.d.ts +0 -3
  232. package/dist/admin/sections/FeatureSettings.d.ts +0 -3
  233. package/dist/admin/sections/InvitesSection.d.ts +0 -3
  234. package/dist/admin/sections/MembersSection.d.ts +0 -3
  235. package/dist/admin/sections/ServerSettings.d.ts +0 -3
  236. package/dist/admin/sections/SettingsSections.d.ts +0 -7
  237. package/dist/admin/sections/TeamSection.d.ts +0 -3
  238. package/dist/admin/sections/UsersSection.d.ts +0 -3
  239. package/dist/admin/sections/WebhookSettings.d.ts +0 -3
  240. package/dist/admin/sections/WithdrawalsSection.d.ts +0 -3
  241. package/dist/components/LoginButton.d.ts +0 -23
  242. package/dist/components/LoginForm.d.ts +0 -9
  243. package/dist/components/LoginModal.d.ts +0 -9
  244. package/dist/components/admin/AdminUserDetail.d.ts +0 -23
  245. package/dist/components/admin/AdminUserList.d.ts +0 -21
  246. package/dist/components/admin/CedrosAdminDashboard.d.ts +0 -52
  247. package/dist/components/admin/PermissionsSection.d.ts +0 -7
  248. package/dist/components/admin/ProfileDropdown.d.ts +0 -34
  249. package/dist/components/admin/SetupWizard.d.ts +0 -30
  250. package/dist/components/admin/StatsBar.d.ts +0 -17
  251. package/dist/components/admin/SystemSettings.d.ts +0 -19
  252. package/dist/components/admin/settings/AuthenticationSettings.d.ts +0 -4
  253. package/dist/components/admin/settings/AutosaveStatus.d.ts +0 -6
  254. package/dist/components/admin/settings/CreditSystemSettings.d.ts +0 -6
  255. package/dist/components/admin/settings/EmailSettings.d.ts +0 -4
  256. package/dist/components/admin/settings/EmbeddedWalletSettings.d.ts +0 -4
  257. package/dist/components/admin/settings/FeatureSettings.d.ts +0 -4
  258. package/dist/components/admin/settings/MessagingSettings.d.ts +0 -4
  259. package/dist/components/admin/settings/SecuritySettings.d.ts +0 -4
  260. package/dist/components/admin/settings/ServerSettings.d.ts +0 -4
  261. package/dist/components/admin/settings/SettingsPageLayout.d.ts +0 -16
  262. package/dist/components/admin/settings/SsoProvidersSettings.d.ts +0 -4
  263. package/dist/components/admin/settings/WebhookSettings.d.ts +0 -4
  264. package/dist/components/admin/settings/index.d.ts +0 -31
  265. package/dist/components/admin/settings/settingsInputs.d.ts +0 -79
  266. package/dist/components/admin/settings/settingsMetadata.d.ts +0 -18
  267. package/dist/components/apple/AppleLoginButton.d.ts +0 -29
  268. package/dist/components/deposit/CreditBalance.d.ts +0 -19
  269. package/dist/components/deposit/DepositFlow.d.ts +0 -118
  270. package/dist/components/deposit/FeeConfigDisplay.d.ts +0 -15
  271. package/dist/components/deposit/History.d.ts +0 -21
  272. package/dist/components/deposit/TieredAmountSlider.d.ts +0 -19
  273. package/dist/components/deposit/TokenSelector.d.ts +0 -23
  274. package/dist/components/deposit/admin/AdminDepositList.d.ts +0 -21
  275. package/dist/components/deposit/admin/AdminDepositStats.d.ts +0 -15
  276. package/dist/components/deposit/admin/AdminPrivacyPeriodDeposits.d.ts +0 -19
  277. package/dist/components/deposit/admin/AdminWithdrawalHistory.d.ts +0 -19
  278. package/dist/components/deposit/admin/AdminWithdrawalQueue.d.ts +0 -23
  279. package/dist/components/deposit/admin/AdminWithdrawalStats.d.ts +0 -10
  280. package/dist/components/deposit/admin/FeatureDisabledMessage.d.ts +0 -15
  281. package/dist/components/deposit/admin/PrivacySystemStatus.d.ts +0 -15
  282. package/dist/components/deposit/admin/featureDisabled.d.ts +0 -14
  283. package/dist/components/deposit/admin/index.d.ts +0 -22
  284. package/dist/components/deposit/index.d.ts +0 -12
  285. package/dist/components/deposit/tierUtils.d.ts +0 -8
  286. package/dist/components/deposit/tokens.d.ts +0 -19
  287. package/dist/components/email/EmailLoginForm.d.ts +0 -11
  288. package/dist/components/email/EmailRegisterForm.d.ts +0 -14
  289. package/dist/components/email/ForgotPasswordForm.d.ts +0 -17
  290. package/dist/components/email/PasswordInput.d.ts +0 -14
  291. package/dist/components/email/ResetPasswordForm.d.ts +0 -22
  292. package/dist/components/google/GoogleLoginButton.d.ts +0 -12
  293. package/dist/components/invites/InviteForm.d.ts +0 -38
  294. package/dist/components/invites/InviteList.d.ts +0 -40
  295. package/dist/components/members/MemberList.d.ts +0 -47
  296. package/dist/components/org/CreateOrgForm.d.ts +0 -7
  297. package/dist/components/org/OrgAvatar.d.ts +0 -7
  298. package/dist/components/org/OrgListView.d.ts +0 -9
  299. package/dist/components/org/OrgSelector.d.ts +0 -52
  300. package/dist/components/org/OrgSwitcher.d.ts +0 -47
  301. package/dist/components/org/icons.d.ts +0 -8
  302. package/dist/components/profile/UserProfileSettings.d.ts +0 -35
  303. package/dist/components/profile/index.d.ts +0 -2
  304. package/dist/components/sessions/SessionList.d.ts +0 -33
  305. package/dist/components/shared/ErrorBoundary.d.ts +0 -38
  306. package/dist/components/shared/ErrorMessage.d.ts +0 -14
  307. package/dist/components/shared/LoadingSpinner.d.ts +0 -16
  308. package/dist/components/solana/SolanaLoginButton.d.ts +0 -49
  309. package/dist/components/templates/FullPageLayout.d.ts +0 -40
  310. package/dist/components/templates/SplitPageLayout.d.ts +0 -44
  311. package/dist/components/templates/index.d.ts +0 -4
  312. package/dist/components/totp/OtpInput.d.ts +0 -32
  313. package/dist/components/totp/QrCode.d.ts +0 -21
  314. package/dist/components/totp/TotpSettings.d.ts +0 -38
  315. package/dist/components/totp/TotpSetup.d.ts +0 -23
  316. package/dist/components/totp/TotpVerify.d.ts +0 -25
  317. package/dist/components/totp/index.d.ts +0 -10
  318. package/dist/components/wallet/CapabilityWarning.d.ts +0 -11
  319. package/dist/components/wallet/PasskeyPrompt.d.ts +0 -34
  320. package/dist/components/wallet/RecoveryPhraseDisplay.d.ts +0 -18
  321. package/dist/components/wallet/RecoveryPhraseInput.d.ts +0 -21
  322. package/dist/components/wallet/WalletAddressRow.d.ts +0 -10
  323. package/dist/components/wallet/WalletEnrollment.d.ts +0 -15
  324. package/dist/components/wallet/WalletManager.d.ts +0 -9
  325. package/dist/components/wallet/WalletRecovery.d.ts +0 -19
  326. package/dist/components/wallet/WalletStatus.d.ts +0 -28
  327. package/dist/components/wallet/WalletUnlock.d.ts +0 -23
  328. package/dist/components/wallet/index.d.ts +0 -23
  329. package/dist/components/webauthn/PasskeyLoginButton.d.ts +0 -8
  330. package/dist/context/CedrosLoginContext.d.ts +0 -24
  331. package/dist/context/CedrosLoginProvider.d.ts +0 -17
  332. package/dist/context/EmbeddedWalletExposure.d.ts +0 -19
  333. package/dist/context/useCedrosLogin.d.ts +0 -12
  334. package/dist/crypto/aesGcm.d.ts +0 -89
  335. package/dist/crypto/argon2.d.ts +0 -65
  336. package/dist/crypto/argon2Worker.d.ts +0 -1
  337. package/dist/crypto/argon2WorkerClient.d.ts +0 -28
  338. package/dist/crypto/bip39.d.ts +0 -106
  339. package/dist/crypto/capabilities.d.ts +0 -35
  340. package/dist/crypto/entropy.d.ts +0 -56
  341. package/dist/crypto/hkdf.d.ts +0 -38
  342. package/dist/crypto/index.d.ts +0 -30
  343. package/dist/crypto/secureWipe.d.ts +0 -71
  344. package/dist/crypto/shamir.d.ts +0 -52
  345. package/dist/crypto/solanaKeypair.d.ts +0 -63
  346. package/dist/crypto/types.d.ts +0 -134
  347. package/dist/crypto/webauthnPrf.d.ts +0 -108
  348. package/dist/hooks/useAdminDeposits.d.ts +0 -10
  349. package/dist/hooks/useAdminUsers.d.ts +0 -28
  350. package/dist/hooks/useAppleAuth.d.ts +0 -52
  351. package/dist/hooks/useAuth.d.ts +0 -34
  352. package/dist/hooks/useAuthSession.d.ts +0 -19
  353. package/dist/hooks/useAuthorize.d.ts +0 -62
  354. package/dist/hooks/useCredits.d.ts +0 -11
  355. package/dist/hooks/useDashboardPermissions.d.ts +0 -45
  356. package/dist/hooks/useDeposit.d.ts +0 -16
  357. package/dist/hooks/useEmailAuth.d.ts +0 -60
  358. package/dist/hooks/useGoogleAuth.d.ts +0 -67
  359. package/dist/hooks/useInstantLink.d.ts +0 -42
  360. package/dist/hooks/useInvites.d.ts +0 -57
  361. package/dist/hooks/useMembers.d.ts +0 -52
  362. package/dist/hooks/useOrgs.d.ts +0 -49
  363. package/dist/hooks/usePasswordReset.d.ts +0 -32
  364. package/dist/hooks/usePendingRecovery.d.ts +0 -34
  365. package/dist/hooks/useProfile.d.ts +0 -35
  366. package/dist/hooks/useRateLimiter.d.ts +0 -58
  367. package/dist/hooks/useServerFeatures.d.ts +0 -55
  368. package/dist/hooks/useSessions.d.ts +0 -45
  369. package/dist/hooks/useSettingsAutosave.d.ts +0 -29
  370. package/dist/hooks/useSetup.d.ts +0 -25
  371. package/dist/hooks/useSolanaAuth.d.ts +0 -30
  372. package/dist/hooks/useSsoProviders.d.ts +0 -52
  373. package/dist/hooks/useSystemSettings.d.ts +0 -47
  374. package/dist/hooks/useThemeManager.d.ts +0 -11
  375. package/dist/hooks/useTotp.d.ts +0 -52
  376. package/dist/hooks/useTotpVerify.d.ts +0 -38
  377. package/dist/hooks/useTransactionSigning.d.ts +0 -45
  378. package/dist/hooks/useWallet.d.ts +0 -10
  379. package/dist/hooks/useWalletDiscovery.d.ts +0 -24
  380. package/dist/hooks/useWalletEnrollment.d.ts +0 -9
  381. package/dist/hooks/useWalletMaterial.d.ts +0 -10
  382. package/dist/hooks/useWalletRecovery.d.ts +0 -9
  383. package/dist/hooks/useWalletSigning.d.ts +0 -31
  384. package/dist/hooks/useWebAuthn.d.ts +0 -25
  385. package/dist/i18n/I18nProvider.d.ts +0 -16
  386. package/dist/i18n/context.d.ts +0 -6
  387. package/dist/i18n/index.d.ts +0 -5
  388. package/dist/i18n/translations.d.ts +0 -66
  389. package/dist/i18n/useI18n.d.ts +0 -9
  390. package/dist/index-ZS9AwAal.cjs +0 -2061
  391. package/dist/index-ZS9AwAal.cjs.map +0 -1
  392. package/dist/index-dgg5tlO7.js +0 -19650
  393. package/dist/index-dgg5tlO7.js.map +0 -1
  394. package/dist/silentWalletEnroll-C3JRAD9_.js +0 -42
  395. package/dist/silentWalletEnroll-C3JRAD9_.js.map +0 -1
  396. package/dist/silentWalletEnroll-DRYQAQfg.cjs +0 -1
  397. package/dist/silentWalletEnroll-DRYQAQfg.cjs.map +0 -1
  398. package/dist/solanaKeypair-BlXol3nh.js.map +0 -1
  399. package/dist/solanaKeypair-C-lIR1JY.cjs +0 -1
  400. package/dist/solanaKeypair-C-lIR1JY.cjs.map +0 -1
  401. package/dist/types/adminUser.d.ts +0 -168
  402. package/dist/types/auth.d.ts +0 -122
  403. package/dist/types/config.d.ts +0 -266
  404. package/dist/types/deposit.d.ts +0 -490
  405. package/dist/types/index.d.ts +0 -13
  406. package/dist/types/invite.d.ts +0 -71
  407. package/dist/types/member.d.ts +0 -45
  408. package/dist/types/org.d.ts +0 -133
  409. package/dist/types/profile.d.ts +0 -56
  410. package/dist/types/session.d.ts +0 -28
  411. package/dist/types/setup.d.ts +0 -47
  412. package/dist/types/systemSettings.d.ts +0 -85
  413. package/dist/types/totp.d.ts +0 -52
  414. package/dist/types/wallet.d.ts +0 -309
  415. package/dist/utils/adminUserApi.d.ts +0 -60
  416. package/dist/utils/apiClient.d.ts +0 -78
  417. package/dist/utils/cryptoShim.d.ts +0 -17
  418. package/dist/utils/csrf.d.ts +0 -1
  419. package/dist/utils/deviceDetection.d.ts +0 -17
  420. package/dist/utils/embeddedWallet.d.ts +0 -75
  421. package/dist/utils/inviteApi.d.ts +0 -31
  422. package/dist/utils/memberApi.d.ts +0 -23
  423. package/dist/utils/orgApi.d.ts +0 -36
  424. package/dist/utils/profileApi.d.ts +0 -26
  425. package/dist/utils/sanitization.d.ts +0 -66
  426. package/dist/utils/sessionApi.d.ts +0 -16
  427. package/dist/utils/setupApi.d.ts +0 -21
  428. package/dist/utils/silentWalletEnroll.d.ts +0 -41
  429. package/dist/utils/systemSettingsApi.d.ts +0 -18
  430. package/dist/utils/tabSync.d.ts +0 -46
  431. package/dist/utils/tokenManager.d.ts +0 -107
  432. package/dist/utils/unlockCredential.d.ts +0 -5
  433. package/dist/utils/validation.d.ts +0 -48
  434. package/dist/utils/walletDetection.d.ts +0 -23
  435. package/dist/utils/webauthnJson.d.ts +0 -21
@@ -1,42 +0,0 @@
1
- import { AuthError, AuthResponse, MfaRequiredResponse } from '../types';
2
- export interface UseInstantLinkReturn {
3
- /** Send an instant link email to the given address */
4
- sendInstantLink: (email: string) => Promise<void>;
5
- /** Verify an instant link token and sign in */
6
- verifyInstantLink: (token: string) => Promise<AuthResponse | MfaRequiredResponse>;
7
- /** Whether a request is in progress */
8
- isLoading: boolean;
9
- /** Whether the instant link was sent successfully */
10
- isSuccess: boolean;
11
- /** Error from the last request */
12
- error: AuthError | null;
13
- /** Clear the error state */
14
- clearError: () => void;
15
- /** Reset to initial state */
16
- reset: () => void;
17
- /** Number of remaining attempts before rate limiting */
18
- remainingAttempts: number;
19
- }
20
- /**
21
- * Hook for instant link (passwordless) authentication.
22
- *
23
- * Sends an instant link email that allows the user to sign in
24
- * without entering their password.
25
- *
26
- * @example
27
- * ```tsx
28
- * function InstantLinkForm() {
29
- * const { sendInstantLink, isLoading, isSuccess, error } = useInstantLink();
30
- *
31
- * const handleSubmit = async (e) => {
32
- * e.preventDefault();
33
- * await sendInstantLink(email);
34
- * };
35
- *
36
- * if (isSuccess) {
37
- * return <p>Check your email for the sign-in link</p>;
38
- * }
39
- * }
40
- * ```
41
- */
42
- export declare function useInstantLink(): UseInstantLinkReturn;
@@ -1,57 +0,0 @@
1
- import { Invite, OrgRole, AuthError, AcceptInviteResponse } from '../types';
2
- export interface UseInvitesReturn {
3
- /** List of pending invites */
4
- invites: Invite[];
5
- /** Total pending invites available on the server */
6
- total: number;
7
- /** Loading state */
8
- isLoading: boolean;
9
- /** Error state */
10
- error: AuthError | null;
11
- /** Fetch/refresh invites list */
12
- fetchInvites: (options?: {
13
- limit?: number;
14
- offset?: number;
15
- }) => Promise<void>;
16
- /** Create a new invite */
17
- createInvite: (email: string, role?: Exclude<OrgRole, 'owner'>) => Promise<void>;
18
- /** Cancel a pending invite */
19
- cancelInvite: (inviteId: string) => Promise<void>;
20
- /** Resend an invite email */
21
- resendInvite: (inviteId: string) => Promise<void>;
22
- /** Accept an invite (public) */
23
- acceptInvite: (token: string) => Promise<AcceptInviteResponse>;
24
- }
25
- /**
26
- * Hook for managing organization invites.
27
- *
28
- * @param orgId - The organization ID to manage invites for
29
- *
30
- * @example
31
- * ```tsx
32
- * function InviteManager() {
33
- * const { activeOrg } = useOrgs();
34
- * const { invites, createInvite, cancelInvite, resendInvite } = useInvites(activeOrg?.id);
35
- *
36
- * const handleInvite = async (email: string) => {
37
- * await createInvite(email, 'member');
38
- * };
39
- *
40
- * return (
41
- * <div>
42
- * <InviteForm onSubmit={handleInvite} />
43
- * <ul>
44
- * {invites.map(invite => (
45
- * <li key={invite.id}>
46
- * {invite.email} ({invite.role})
47
- * <button onClick={() => resendInvite(invite.id)}>Resend</button>
48
- * <button onClick={() => cancelInvite(invite.id)}>Cancel</button>
49
- * </li>
50
- * ))}
51
- * </ul>
52
- * </div>
53
- * );
54
- * }
55
- * ```
56
- */
57
- export declare function useInvites(orgId: string | undefined): UseInvitesReturn;
@@ -1,52 +0,0 @@
1
- import { Member, OrgRole, AuthError } from '../types';
2
- export interface UseMembersReturn {
3
- /** List of members */
4
- members: Member[];
5
- /** Total members available on the server */
6
- total: number;
7
- /** Loading state */
8
- isLoading: boolean;
9
- /** Error state */
10
- error: AuthError | null;
11
- /** Fetch/refresh members list */
12
- fetchMembers: (options?: {
13
- limit?: number;
14
- offset?: number;
15
- }) => Promise<void>;
16
- /** Update a member's role */
17
- updateMemberRole: (userId: string, role: OrgRole) => Promise<void>;
18
- /** Remove a member */
19
- removeMember: (userId: string) => Promise<void>;
20
- }
21
- /**
22
- * Hook for managing organization members.
23
- *
24
- * @param orgId - The organization ID to manage members for
25
- *
26
- * @example
27
- * ```tsx
28
- * function MembersList() {
29
- * const { activeOrg } = useOrgs();
30
- * const { members, isLoading, updateMemberRole, removeMember } = useMembers(activeOrg?.id);
31
- *
32
- * if (!activeOrg) return null;
33
- *
34
- * return (
35
- * <ul>
36
- * {members.map(member => (
37
- * <li key={member.id}>
38
- * {member.user.name} - {member.role}
39
- * <button onClick={() => updateMemberRole(member.userId, 'admin')}>
40
- * Make Admin
41
- * </button>
42
- * <button onClick={() => removeMember(member.userId)}>
43
- * Remove
44
- * </button>
45
- * </li>
46
- * ))}
47
- * </ul>
48
- * );
49
- * }
50
- * ```
51
- */
52
- export declare function useMembers(orgId: string | undefined): UseMembersReturn;
@@ -1,49 +0,0 @@
1
- import { OrgWithMembership, Organization, CreateOrgRequest, UpdateOrgRequest, Permission, OrgRole, AuthError } from '../types';
2
- export interface UseOrgsReturn {
3
- /** All organizations the user belongs to */
4
- orgs: OrgWithMembership[];
5
- /** Currently active organization */
6
- activeOrg: OrgWithMembership | null;
7
- /** User's permissions in the active org */
8
- permissions: Permission[];
9
- /** User's role in the active org */
10
- role: OrgRole | null;
11
- /** Loading state */
12
- isLoading: boolean;
13
- /** Error state */
14
- error: AuthError | null;
15
- /** Fetch/refresh organizations list */
16
- fetchOrgs: () => Promise<void>;
17
- /** Switch to a different organization */
18
- switchOrg: (orgId: string) => Promise<void>;
19
- /** Create a new organization */
20
- createOrg: (data: CreateOrgRequest) => Promise<Organization>;
21
- /** Update an organization */
22
- updateOrg: (orgId: string, data: UpdateOrgRequest) => Promise<Organization>;
23
- /** Delete an organization */
24
- deleteOrg: (orgId: string) => Promise<void>;
25
- /** Check if user has a specific permission */
26
- hasPermission: (permission: Permission) => boolean;
27
- }
28
- /**
29
- * Hook for managing organizations, memberships, and permissions.
30
- *
31
- * @example
32
- * ```tsx
33
- * function OrgSelector() {
34
- * const { orgs, activeOrg, switchOrg, hasPermission } = useOrgs();
35
- *
36
- * return (
37
- * <select
38
- * value={activeOrg?.id}
39
- * onChange={(e) => switchOrg(e.target.value)}
40
- * >
41
- * {orgs.map(org => (
42
- * <option key={org.id} value={org.id}>{org.name}</option>
43
- * ))}
44
- * </select>
45
- * );
46
- * }
47
- * ```
48
- */
49
- export declare function useOrgs(): UseOrgsReturn;
@@ -1,32 +0,0 @@
1
- import { AuthError } from '../types';
2
- export interface UsePasswordResetReturn {
3
- forgotPassword: (email: string) => Promise<void>;
4
- resetPassword: (token: string, newPassword: string) => Promise<void>;
5
- isLoading: boolean;
6
- isSuccess: boolean;
7
- error: AuthError | null;
8
- clearError: () => void;
9
- reset: () => void;
10
- /** Number of remaining attempts before rate limiting */
11
- remainingAttempts: number;
12
- }
13
- /**
14
- * Hook for password reset functionality.
15
- *
16
- * @example
17
- * ```tsx
18
- * function ForgotPasswordForm() {
19
- * const { forgotPassword, isLoading, isSuccess, error } = usePasswordReset();
20
- *
21
- * const handleSubmit = async (e) => {
22
- * e.preventDefault();
23
- * await forgotPassword(email);
24
- * };
25
- *
26
- * if (isSuccess) {
27
- * return <p>Check your email for reset instructions</p>;
28
- * }
29
- * }
30
- * ```
31
- */
32
- export declare function usePasswordReset(): UsePasswordResetReturn;
@@ -1,34 +0,0 @@
1
- /**
2
- * Hook for pending wallet recovery management
3
- *
4
- * After wallet enrollment, if recovery mode is enabled, the server stores
5
- * recovery data temporarily. This hook fetches that data and allows the
6
- * user to acknowledge receipt (after which the data is deleted from server).
7
- */
8
- export interface UsePendingRecoveryReturn {
9
- /** Whether there is pending recovery data */
10
- hasPendingRecovery: boolean;
11
- /** Recovery type: 'share_c' or 'full_seed' */
12
- recoveryType: string | null;
13
- /** Recovery phrase (base64-encoded seed) */
14
- recoveryPhrase: string | null;
15
- /** When the recovery data expires */
16
- expiresAt: Date | null;
17
- /** Fetch pending recovery data from server */
18
- fetchPendingRecovery: () => Promise<void>;
19
- /** Acknowledge that user has saved the recovery phrase (deletes from server) */
20
- acknowledgeRecovery: () => Promise<void>;
21
- /** Whether request is in progress */
22
- isLoading: boolean;
23
- /** Error from last request */
24
- error: string | null;
25
- /** Clear error */
26
- clearError: () => void;
27
- }
28
- /**
29
- * Hook for managing pending wallet recovery data
30
- *
31
- * Use this after wallet enrollment to show the user their recovery phrase
32
- * and allow them to acknowledge receipt.
33
- */
34
- export declare function usePendingRecovery(): UsePendingRecoveryReturn;
@@ -1,35 +0,0 @@
1
- import { UseProfileReturn } from '../types';
2
- /**
3
- * Hook for managing user profile operations.
4
- *
5
- * Provides methods for updating profile information and changing password.
6
- *
7
- * @example
8
- * ```tsx
9
- * function ProfileSettings() {
10
- * const { isLoading, error, changePassword, clearError } = useProfile();
11
- *
12
- * const handlePasswordChange = async () => {
13
- * try {
14
- * await changePassword({
15
- * currentPassword: 'oldpass',
16
- * newPassword: 'newpass123',
17
- * });
18
- * // Success - other sessions have been revoked
19
- * } catch (err) {
20
- * // Error is available via the error property
21
- * }
22
- * };
23
- *
24
- * return (
25
- * <div>
26
- * {error && <p className="error">{error.message}</p>}
27
- * <button onClick={handlePasswordChange} disabled={isLoading}>
28
- * Change Password
29
- * </button>
30
- * </div>
31
- * );
32
- * }
33
- * ```
34
- */
35
- export declare function useProfile(): UseProfileReturn;
@@ -1,58 +0,0 @@
1
- export interface UseRateLimiterOptions {
2
- /** Maximum number of attempts allowed within the window */
3
- maxAttempts?: number;
4
- /** Time window in milliseconds */
5
- windowMs?: number;
6
- }
7
- export interface UseRateLimiterReturn {
8
- /**
9
- * Check if an action is allowed. Throws an error if rate limited.
10
- * Call this before performing the action.
11
- */
12
- checkLimit: () => void;
13
- /**
14
- * Check if an action is allowed without throwing.
15
- * Returns true if allowed, false if rate limited.
16
- */
17
- isAllowed: () => boolean;
18
- /**
19
- * Get remaining attempts in current window
20
- */
21
- getRemainingAttempts: () => number;
22
- /**
23
- * Get time until rate limit resets (in ms)
24
- */
25
- getTimeUntilReset: () => number;
26
- /**
27
- * Reset the rate limiter (e.g., after successful action)
28
- */
29
- reset: () => void;
30
- }
31
- /**
32
- * Rate limiting hook to prevent excessive API calls from the client.
33
- *
34
- * @param options - Rate limiter configuration
35
- * @returns Rate limiter functions
36
- *
37
- * @example
38
- * ```tsx
39
- * function LoginForm() {
40
- * const { checkLimit, getRemainingAttempts } = useRateLimiter({
41
- * maxAttempts: 5,
42
- * windowMs: 60000, // 1 minute
43
- * });
44
- *
45
- * const handleLogin = async () => {
46
- * try {
47
- * checkLimit(); // Throws if rate limited
48
- * await login(email, password);
49
- * } catch (err) {
50
- * if (err.message.includes('Too many attempts')) {
51
- * // Show rate limit message
52
- * }
53
- * }
54
- * };
55
- * }
56
- * ```
57
- */
58
- export declare function useRateLimiter(options?: UseRateLimiterOptions): UseRateLimiterReturn;
@@ -1,55 +0,0 @@
1
- /**
2
- * Server-side feature flags stored in system settings.
3
- *
4
- * These control which features are available in the application.
5
- * Unlike client-side FeatureFlags (passed to CedrosLoginProvider),
6
- * these can be toggled at runtime via the admin dashboard.
7
- */
8
- export interface ServerFeatures {
9
- /** Enable multi-tenant organizations. Controls: Team, Invites sections */
10
- organizations: boolean;
11
- /** Enable Enterprise SSO for organizations */
12
- sso: boolean;
13
- /** Enable two-factor authentication (TOTP) */
14
- mfa: boolean;
15
- /** Enable embedded wallet for transaction signing */
16
- walletSigning: boolean;
17
- /** Enable deposits and credits system. Controls: Deposits, Withdrawals, Credit System sections */
18
- credits: boolean;
19
- /** Enable Cedros Pay integration. Controls: Products, Transactions, Refunds, etc. */
20
- cedrosPay: boolean;
21
- }
22
- export interface UseServerFeaturesReturn {
23
- /** Current feature flag states */
24
- features: ServerFeatures;
25
- /** Whether settings are still loading */
26
- isLoading: boolean;
27
- /** Error if settings failed to load */
28
- error: Error | null;
29
- /** Refresh feature flags from server */
30
- refetch: () => Promise<void>;
31
- /** Check if a specific feature is enabled */
32
- isEnabled: (feature: keyof ServerFeatures) => boolean;
33
- }
34
- /**
35
- * Hook for reading server-side feature flags from system settings.
36
- *
37
- * Use this to conditionally show/hide features based on admin settings.
38
- *
39
- * @example
40
- * ```tsx
41
- * function AdminDashboard() {
42
- * const { features, isLoading, isEnabled } = useServerFeatures();
43
- *
44
- * if (isLoading) return <LoadingSpinner />;
45
- *
46
- * return (
47
- * <nav>
48
- * {isEnabled('organizations') && <NavItem>Team</NavItem>}
49
- * {isEnabled('credits') && <NavItem>Deposits</NavItem>}
50
- * </nav>
51
- * );
52
- * }
53
- * ```
54
- */
55
- export declare function useServerFeatures(): UseServerFeaturesReturn;
@@ -1,45 +0,0 @@
1
- import { Session, AuthError, RevokeAllSessionsResponse } from '../types';
2
- export interface UseSessionsReturn {
3
- /** List of active sessions */
4
- sessions: Session[];
5
- /** Loading state */
6
- isLoading: boolean;
7
- /** Error state */
8
- error: AuthError | null;
9
- /** Fetch/refresh sessions list */
10
- fetchSessions: () => Promise<void>;
11
- /** Revoke all sessions (logout everywhere) */
12
- revokeAllSessions: () => Promise<RevokeAllSessionsResponse>;
13
- /** Number of other active sessions (excluding current) */
14
- otherSessionCount: number;
15
- }
16
- /**
17
- * Hook for managing user sessions across devices.
18
- *
19
- * @example
20
- * ```tsx
21
- * function SessionManager() {
22
- * const { sessions, isLoading, revokeAllSessions, otherSessionCount } = useSessions();
23
- *
24
- * return (
25
- * <div>
26
- * <h3>Active Sessions ({sessions.length})</h3>
27
- * <ul>
28
- * {sessions.map(session => (
29
- * <li key={session.id}>
30
- * {session.userAgent}
31
- * {session.isCurrent && ' (current)'}
32
- * </li>
33
- * ))}
34
- * </ul>
35
- * {otherSessionCount > 0 && (
36
- * <button onClick={revokeAllSessions}>
37
- * Sign out of {otherSessionCount} other device(s)
38
- * </button>
39
- * )}
40
- * </div>
41
- * );
42
- * }
43
- * ```
44
- */
45
- export declare function useSessions(): UseSessionsReturn;
@@ -1,29 +0,0 @@
1
- /** Autosave status */
2
- export type AutosaveStatus = 'idle' | 'pending' | 'saving' | 'saved' | 'error';
3
- export interface UseSettingsAutosaveReturn {
4
- /** Settings grouped by category */
5
- settings: Record<string, import('../types').SystemSetting[]>;
6
- /** Current edits (key -> value) */
7
- edits: Record<string, string>;
8
- /** Whether initial load is in progress */
9
- isLoading: boolean;
10
- /** Current autosave status */
11
- autosaveStatus: AutosaveStatus;
12
- /** Error message if autosave failed */
13
- autosaveError: string | null;
14
- /** Loading error */
15
- error: Error | null;
16
- /** Fetch settings from server */
17
- fetchSettings: () => Promise<void>;
18
- /** Handle a setting change (triggers autosave) */
19
- handleChange: (key: string, value: string) => void;
20
- /** Get effective value (edit or original) */
21
- getEffectiveValue: (key: string) => string;
22
- }
23
- /**
24
- * Hook for managing system settings with autosave.
25
- *
26
- * Automatically saves changes after a debounce period.
27
- * Provides status feedback for the autosave process.
28
- */
29
- export declare function useSettingsAutosave(): UseSettingsAutosaveReturn;
@@ -1,25 +0,0 @@
1
- import { UseSetupReturn } from '../types/setup';
2
- /**
3
- * Hook for first-run setup operations.
4
- *
5
- * Checks if setup is needed (no admin exists) and provides
6
- * ability to create the first admin user.
7
- *
8
- * @example
9
- * ```tsx
10
- * function SetupCheck() {
11
- * const { status, isLoading, checkStatus, createAdmin } = useSetup();
12
- *
13
- * useEffect(() => {
14
- * checkStatus();
15
- * }, [checkStatus]);
16
- *
17
- * if (isLoading) return <Loading />;
18
- * if (status?.needsSetup) {
19
- * return <SetupWizard onCreateAdmin={createAdmin} />;
20
- * }
21
- * return <Dashboard />;
22
- * }
23
- * ```
24
- */
25
- export declare function useSetup(): UseSetupReturn;
@@ -1,30 +0,0 @@
1
- import { AuthResponse, AuthError, ChallengeResponse } from '../types';
2
- export interface UseSolanaAuthReturn {
3
- requestChallenge: (publicKey: string) => Promise<ChallengeResponse>;
4
- signIn: (publicKey: string, signature: string, message: string) => Promise<AuthResponse>;
5
- isLoading: boolean;
6
- error: AuthError | null;
7
- clearError: () => void;
8
- }
9
- /**
10
- * Hook for Solana wallet authentication.
11
- *
12
- * @example
13
- * ```tsx
14
- * function SolanaLogin() {
15
- * const { requestChallenge, signIn, isLoading } = useSolanaAuth();
16
- * const { publicKey, signMessage } = useWallet();
17
- *
18
- * const handleLogin = async () => {
19
- * const challenge = await requestChallenge(publicKey.toBase58());
20
- * const signature = await signMessage(new TextEncoder().encode(challenge.message));
21
- * const result = await signIn(
22
- * publicKey.toBase58(),
23
- * Buffer.from(signature).toString('base64'),
24
- * challenge.message
25
- * );
26
- * };
27
- * }
28
- * ```
29
- */
30
- export declare function useSolanaAuth(): UseSolanaAuthReturn;
@@ -1,52 +0,0 @@
1
- export interface SsoProvider {
2
- id: string;
3
- orgId: string;
4
- name: string;
5
- issuerUrl: string;
6
- clientId: string;
7
- scopes: string[];
8
- enabled: boolean;
9
- allowRegistration: boolean;
10
- emailDomain: string | null;
11
- createdAt: string;
12
- updatedAt: string;
13
- }
14
- export interface CreateSsoProviderInput {
15
- orgId: string;
16
- name: string;
17
- issuerUrl: string;
18
- clientId: string;
19
- clientSecret: string;
20
- scopes?: string[];
21
- enabled?: boolean;
22
- allowRegistration?: boolean;
23
- emailDomain?: string | null;
24
- }
25
- export interface UpdateSsoProviderInput {
26
- name?: string;
27
- issuerUrl?: string;
28
- clientId?: string;
29
- clientSecret?: string;
30
- scopes?: string[];
31
- enabled?: boolean;
32
- allowRegistration?: boolean;
33
- emailDomain?: string | null;
34
- }
35
- interface ListResponse {
36
- providers: SsoProvider[];
37
- total: number;
38
- limit: number;
39
- offset: number;
40
- }
41
- export declare function useSsoProviders(): {
42
- providers: SsoProvider[];
43
- total: number;
44
- isLoading: boolean;
45
- error: Error | null;
46
- fetchProviders: (orgId?: string, limit?: number, offset?: number) => Promise<ListResponse>;
47
- createProvider: (input: CreateSsoProviderInput) => Promise<SsoProvider>;
48
- updateProvider: (id: string, input: UpdateSsoProviderInput) => Promise<SsoProvider>;
49
- deleteProvider: (id: string) => Promise<void>;
50
- toggleProvider: (id: string, enabled: boolean) => Promise<SsoProvider>;
51
- };
52
- export {};
@@ -1,47 +0,0 @@
1
- import { UseSystemSettingsReturn } from '../types';
2
- /**
3
- * Hook for managing system settings (admin only).
4
- *
5
- * Provides CRUD operations for system-wide configuration settings
6
- * stored in the database. Only accessible to system administrators.
7
- *
8
- * @example
9
- * ```tsx
10
- * function SystemSettingsPanel() {
11
- * const {
12
- * settings,
13
- * isLoading,
14
- * error,
15
- * fetchSettings,
16
- * updateSettings,
17
- * getValue,
18
- * } = useSystemSettings();
19
- *
20
- * useEffect(() => {
21
- * fetchSettings();
22
- * }, [fetchSettings]);
23
- *
24
- * const handleSave = async () => {
25
- * await updateSettings([
26
- * { key: 'privacy_period_secs', value: '1209600' },
27
- * ]);
28
- * };
29
- *
30
- * return (
31
- * <div>
32
- * {Object.entries(settings).map(([category, items]) => (
33
- * <section key={category}>
34
- * <h3>{category}</h3>
35
- * {items.map(item => (
36
- * <div key={item.key}>
37
- * {item.key}: {item.value}
38
- * </div>
39
- * ))}
40
- * </section>
41
- * ))}
42
- * </div>
43
- * );
44
- * }
45
- * ```
46
- */
47
- export declare function useSystemSettings(): UseSystemSettingsReturn;
@@ -1,11 +0,0 @@
1
- import { ThemeMode, ThemeOverrides } from '../types';
2
- export interface UseThemeManagerOptions {
3
- theme?: ThemeMode;
4
- themeOverrides?: ThemeOverrides;
5
- }
6
- /**
7
- * Hook that manages theme application to the document root.
8
- * Handles light/dark/auto themes and custom CSS variable overrides.
9
- * Properly cleans up styles on unmount to prevent memory leaks.
10
- */
11
- export declare function useThemeManager({ theme, themeOverrides }: UseThemeManagerOptions): void;