@mesob/auth-react 0.4.0 → 0.4.2

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 (371) hide show
  1. package/dist/chunk-35TCGAW3.js +98 -0
  2. package/dist/chunk-35TCGAW3.js.map +1 -0
  3. package/dist/chunk-3BZC4VVD.js +36 -0
  4. package/dist/chunk-3BZC4VVD.js.map +1 -0
  5. package/dist/chunk-45UCLKH2.js +188 -0
  6. package/dist/chunk-45UCLKH2.js.map +1 -0
  7. package/dist/chunk-55BMNC4S.js +115 -0
  8. package/dist/chunk-55BMNC4S.js.map +1 -0
  9. package/dist/chunk-5F5FZMHE.js +94 -0
  10. package/dist/chunk-5F5FZMHE.js.map +1 -0
  11. package/dist/chunk-5M7I7WNH.js +31 -0
  12. package/dist/chunk-5M7I7WNH.js.map +1 -0
  13. package/dist/chunk-72YRO3A7.js +288 -0
  14. package/dist/chunk-72YRO3A7.js.map +1 -0
  15. package/dist/chunk-7KXTL6NT.js +48 -0
  16. package/dist/chunk-7KXTL6NT.js.map +1 -0
  17. package/dist/chunk-AIMD6R6U.js +466 -0
  18. package/dist/chunk-AIMD6R6U.js.map +1 -0
  19. package/dist/chunk-BGSHXIHI.js +953 -0
  20. package/dist/chunk-BGSHXIHI.js.map +1 -0
  21. package/dist/chunk-BZ42QPXE.js +271 -0
  22. package/dist/chunk-BZ42QPXE.js.map +1 -0
  23. package/dist/chunk-C26NPUPI.js +272 -0
  24. package/dist/chunk-C26NPUPI.js.map +1 -0
  25. package/dist/chunk-C2KFZ57H.js +194 -0
  26. package/dist/chunk-C2KFZ57H.js.map +1 -0
  27. package/dist/chunk-C5ZW7FD2.js +46 -0
  28. package/dist/chunk-C5ZW7FD2.js.map +1 -0
  29. package/dist/chunk-DPH2PHK3.js +32 -0
  30. package/dist/chunk-DPH2PHK3.js.map +1 -0
  31. package/dist/chunk-EQ4346FE.js +139 -0
  32. package/dist/chunk-EQ4346FE.js.map +1 -0
  33. package/dist/chunk-FAHN63DA.js +535 -0
  34. package/dist/chunk-FAHN63DA.js.map +1 -0
  35. package/dist/chunk-FFR5UHTS.js +99 -0
  36. package/dist/chunk-FFR5UHTS.js.map +1 -0
  37. package/dist/chunk-FHOLUOOZ.js +164 -0
  38. package/dist/chunk-FHOLUOOZ.js.map +1 -0
  39. package/dist/chunk-G2AW2H36.js +11 -0
  40. package/dist/chunk-G2AW2H36.js.map +1 -0
  41. package/dist/chunk-G7SCXCCM.js +89 -0
  42. package/dist/chunk-G7SCXCCM.js.map +1 -0
  43. package/dist/chunk-GP7GIUI3.js +64 -0
  44. package/dist/chunk-GP7GIUI3.js.map +1 -0
  45. package/dist/chunk-GRT6EBR6.js +93 -0
  46. package/dist/chunk-GRT6EBR6.js.map +1 -0
  47. package/dist/chunk-GXKBVCVS.js +102 -0
  48. package/dist/chunk-GXKBVCVS.js.map +1 -0
  49. package/dist/chunk-HB2RZTHS.js +338 -0
  50. package/dist/chunk-HB2RZTHS.js.map +1 -0
  51. package/dist/chunk-HOO2VLNM.js +305 -0
  52. package/dist/chunk-HOO2VLNM.js.map +1 -0
  53. package/dist/chunk-II5MLBSB.js +183 -0
  54. package/dist/chunk-II5MLBSB.js.map +1 -0
  55. package/dist/chunk-ISNNPMF7.js +95 -0
  56. package/dist/chunk-ISNNPMF7.js.map +1 -0
  57. package/dist/chunk-JB6XVST4.js +141 -0
  58. package/dist/chunk-JB6XVST4.js.map +1 -0
  59. package/dist/chunk-JUHBVG5Q.js +303 -0
  60. package/dist/chunk-JUHBVG5Q.js.map +1 -0
  61. package/dist/chunk-JZZJCBAE.js +118 -0
  62. package/dist/chunk-JZZJCBAE.js.map +1 -0
  63. package/dist/chunk-KWG4DSB5.js +55 -0
  64. package/dist/chunk-KWG4DSB5.js.map +1 -0
  65. package/dist/chunk-L4CGIO2I.js +265 -0
  66. package/dist/chunk-L4CGIO2I.js.map +1 -0
  67. package/dist/chunk-LNG736CV.js +19 -0
  68. package/dist/chunk-LNG736CV.js.map +1 -0
  69. package/dist/chunk-LSYKVFJA.js +98 -0
  70. package/dist/chunk-LSYKVFJA.js.map +1 -0
  71. package/dist/chunk-LZR4YUDV.js +107 -0
  72. package/dist/chunk-LZR4YUDV.js.map +1 -0
  73. package/dist/chunk-MELNS4QH.js +255 -0
  74. package/dist/chunk-MELNS4QH.js.map +1 -0
  75. package/dist/chunk-MS2JUZ3N.js +94 -0
  76. package/dist/chunk-MS2JUZ3N.js.map +1 -0
  77. package/dist/chunk-NEO72TMH.js +32 -0
  78. package/dist/chunk-NEO72TMH.js.map +1 -0
  79. package/dist/chunk-NJPNTAAT.js +68 -0
  80. package/dist/chunk-NJPNTAAT.js.map +1 -0
  81. package/dist/chunk-NPW7D2HZ.js +16 -0
  82. package/dist/chunk-NPW7D2HZ.js.map +1 -0
  83. package/dist/chunk-OAN4EXU4.js +310 -0
  84. package/dist/chunk-OAN4EXU4.js.map +1 -0
  85. package/dist/chunk-OFLSINVU.js +138 -0
  86. package/dist/chunk-OFLSINVU.js.map +1 -0
  87. package/dist/chunk-OHIIMUQC.js +286 -0
  88. package/dist/chunk-OHIIMUQC.js.map +1 -0
  89. package/dist/chunk-OQGJX37L.js +239 -0
  90. package/dist/chunk-OQGJX37L.js.map +1 -0
  91. package/dist/chunk-OYHH7HQG.js +65 -0
  92. package/dist/chunk-OYHH7HQG.js.map +1 -0
  93. package/dist/chunk-PSRIZMWJ.js +486 -0
  94. package/dist/chunk-PSRIZMWJ.js.map +1 -0
  95. package/dist/chunk-QNCE2B5O.js +23 -0
  96. package/dist/chunk-QNCE2B5O.js.map +1 -0
  97. package/dist/chunk-RLPZFLAS.js +23 -0
  98. package/dist/chunk-RLPZFLAS.js.map +1 -0
  99. package/dist/chunk-RT5C7IAE.js +38 -0
  100. package/dist/chunk-RT5C7IAE.js.map +1 -0
  101. package/dist/chunk-S3CXCCKL.js +272 -0
  102. package/dist/chunk-S3CXCCKL.js.map +1 -0
  103. package/dist/chunk-SOCZK4CV.js +69 -0
  104. package/dist/chunk-SOCZK4CV.js.map +1 -0
  105. package/dist/chunk-T6P7UHVP.js +34 -0
  106. package/dist/chunk-T6P7UHVP.js.map +1 -0
  107. package/dist/chunk-TFVBER3Y.js +52 -0
  108. package/dist/chunk-TFVBER3Y.js.map +1 -0
  109. package/dist/chunk-UXOZ2TME.js +104 -0
  110. package/dist/chunk-UXOZ2TME.js.map +1 -0
  111. package/dist/chunk-V2W3WPCZ.js +22 -0
  112. package/dist/chunk-V2W3WPCZ.js.map +1 -0
  113. package/dist/chunk-YZ264S2L.js +286 -0
  114. package/dist/chunk-YZ264S2L.js.map +1 -0
  115. package/dist/chunk-ZESFGO3K.js +28 -0
  116. package/dist/chunk-ZESFGO3K.js.map +1 -0
  117. package/dist/chunk-ZG6WFZHX.js +143 -0
  118. package/dist/chunk-ZG6WFZHX.js.map +1 -0
  119. package/dist/components/auth/auth-card.d.ts +3 -6
  120. package/dist/components/auth/auth-card.js +3 -7
  121. package/dist/components/auth/auth-card.js.map +1 -1
  122. package/dist/components/auth/auth-layout.d.ts +3 -6
  123. package/dist/components/auth/auth-layout.js +3 -28
  124. package/dist/components/auth/auth-layout.js.map +1 -1
  125. package/dist/components/auth/countdown.d.ts +2 -5
  126. package/dist/components/auth/countdown.js +5 -130
  127. package/dist/components/auth/countdown.js.map +1 -1
  128. package/dist/components/auth/forgot-password.d.ts +1 -5
  129. package/dist/components/auth/forgot-password.js +6 -365
  130. package/dist/components/auth/forgot-password.js.map +1 -1
  131. package/dist/components/auth/reset-password-form.d.ts +2 -5
  132. package/dist/components/auth/reset-password-form.js +6 -487
  133. package/dist/components/auth/reset-password-form.js.map +1 -1
  134. package/dist/components/auth/set-password.d.ts +2 -5
  135. package/dist/components/auth/set-password.js +7 -521
  136. package/dist/components/auth/set-password.js.map +1 -1
  137. package/dist/components/auth/sign-in.d.ts +2 -5
  138. package/dist/components/auth/sign-in.js +7 -561
  139. package/dist/components/auth/sign-in.js.map +1 -1
  140. package/dist/components/auth/sign-up.d.ts +2 -5
  141. package/dist/components/auth/sign-up.js +6 -511
  142. package/dist/components/auth/sign-up.js.map +1 -1
  143. package/dist/components/auth/verification-form.d.ts +13 -2
  144. package/dist/components/auth/verification-form.js +5 -217
  145. package/dist/components/auth/verification-form.js.map +1 -1
  146. package/dist/components/auth/verify-email.d.ts +2 -5
  147. package/dist/components/auth/verify-email.js +8 -527
  148. package/dist/components/auth/verify-email.js.map +1 -1
  149. package/dist/components/auth/verify-phone.d.ts +2 -5
  150. package/dist/components/auth/verify-phone.js +8 -532
  151. package/dist/components/auth/verify-phone.js.map +1 -1
  152. package/dist/components/authorization/deny.d.ts +3 -6
  153. package/dist/components/authorization/deny.js +4 -47
  154. package/dist/components/authorization/deny.js.map +1 -1
  155. package/dist/components/authorization/grant.d.ts +3 -6
  156. package/dist/components/authorization/grant.js +4 -52
  157. package/dist/components/authorization/grant.js.map +1 -1
  158. package/dist/components/error-boundary.d.ts +6 -10
  159. package/dist/components/error-boundary.js +4 -43
  160. package/dist/components/error-boundary.js.map +1 -1
  161. package/dist/components/iam/permission-selector.d.ts +3 -6
  162. package/dist/components/iam/permission-selector.js +3 -116
  163. package/dist/components/iam/permission-selector.js.map +1 -1
  164. package/dist/components/iam/permissions-page.d.ts +1 -0
  165. package/dist/components/iam/permissions-page.js +10 -0
  166. package/dist/components/iam/permissions-page.js.map +1 -0
  167. package/dist/components/iam/permissions.d.ts +1 -5
  168. package/dist/components/iam/permissions.js +5 -198
  169. package/dist/components/iam/permissions.js.map +1 -1
  170. package/dist/components/iam/role-detail-layout.d.ts +3 -6
  171. package/dist/components/iam/role-detail-layout.js +3 -131
  172. package/dist/components/iam/role-detail-layout.js.map +1 -1
  173. package/dist/components/iam/role-detail-page.d.ts +2 -5
  174. package/dist/components/iam/role-detail-page.js +3 -223
  175. package/dist/components/iam/role-detail-page.js.map +1 -1
  176. package/dist/components/iam/role-permissions-page.d.ts +2 -5
  177. package/dist/components/iam/role-permissions-page.js +4 -391
  178. package/dist/components/iam/role-permissions-page.js.map +1 -1
  179. package/dist/components/iam/roles-page.d.ts +1 -0
  180. package/dist/components/iam/roles-page.js +13 -0
  181. package/dist/components/iam/roles-page.js.map +1 -0
  182. package/dist/components/iam/roles.d.ts +1 -5
  183. package/dist/components/iam/roles.js +5 -218
  184. package/dist/components/iam/roles.js.map +1 -1
  185. package/dist/components/iam/sessions-page.d.ts +1 -0
  186. package/dist/components/iam/sessions-page.js +12 -0
  187. package/dist/components/iam/sessions-page.js.map +1 -0
  188. package/dist/components/iam/sessions.d.ts +1 -5
  189. package/dist/components/iam/sessions.js +5 -198
  190. package/dist/components/iam/sessions.js.map +1 -1
  191. package/dist/components/iam/tenants-page.d.ts +1 -0
  192. package/dist/components/iam/tenants-page.js +13 -0
  193. package/dist/components/iam/tenants-page.js.map +1 -0
  194. package/dist/components/iam/tenants.d.ts +1 -5
  195. package/dist/components/iam/tenants.js +5 -204
  196. package/dist/components/iam/tenants.js.map +1 -1
  197. package/dist/components/iam/users-page.d.ts +1 -0
  198. package/dist/components/iam/users-page.js +13 -0
  199. package/dist/components/iam/users-page.js.map +1 -0
  200. package/dist/components/iam/users.d.ts +1 -5
  201. package/dist/components/iam/users.js +5 -207
  202. package/dist/components/iam/users.js.map +1 -1
  203. package/dist/components/profile/account.d.ts +1 -5
  204. package/dist/components/profile/account.js +4 -151
  205. package/dist/components/profile/account.js.map +1 -1
  206. package/dist/components/profile/change-email-form.d.ts +1 -5
  207. package/dist/components/profile/change-email-form.js +9 -735
  208. package/dist/components/profile/change-email-form.js.map +1 -1
  209. package/dist/components/profile/change-password-form.d.ts +1 -5
  210. package/dist/components/profile/change-password-form.js +3 -262
  211. package/dist/components/profile/change-password-form.js.map +1 -1
  212. package/dist/components/profile/change-phone-form.d.ts +1 -5
  213. package/dist/components/profile/change-phone-form.js +10 -772
  214. package/dist/components/profile/change-phone-form.js.map +1 -1
  215. package/dist/components/profile/change-profile.d.ts +3 -7
  216. package/dist/components/profile/change-profile.js +2 -40
  217. package/dist/components/profile/change-profile.js.map +1 -1
  218. package/dist/components/profile/otp-verification-modal.d.ts +2 -5
  219. package/dist/components/profile/otp-verification-modal.js +6 -266
  220. package/dist/components/profile/otp-verification-modal.js.map +1 -1
  221. package/dist/components/profile/profile-layout.d.ts +4 -0
  222. package/dist/components/profile/profile-layout.js +10 -0
  223. package/dist/components/profile/profile-layout.js.map +1 -0
  224. package/dist/components/profile/request-change-email-form.d.ts +2 -5
  225. package/dist/components/profile/request-change-email-form.js +4 -285
  226. package/dist/components/profile/request-change-email-form.js.map +1 -1
  227. package/dist/components/profile/request-change-phone-form.d.ts +2 -5
  228. package/dist/components/profile/request-change-phone-form.js +5 -323
  229. package/dist/components/profile/request-change-phone-form.js.map +1 -1
  230. package/dist/components/profile/security.d.ts +1 -5
  231. package/dist/components/profile/security.js +15 -1508
  232. package/dist/components/profile/security.js.map +1 -1
  233. package/dist/components/profile/verify-change-email-form.d.ts +2 -5
  234. package/dist/components/profile/verify-change-email-form.js +7 -407
  235. package/dist/components/profile/verify-change-email-form.js.map +1 -1
  236. package/dist/components/profile/verify-change-phone-form.d.ts +2 -5
  237. package/dist/components/profile/verify-change-phone-form.js +7 -411
  238. package/dist/components/profile/verify-change-phone-form.js.map +1 -1
  239. package/dist/components/shared/data-table.d.ts +5 -8
  240. package/dist/components/shared/data-table.js +3 -79
  241. package/dist/components/shared/data-table.js.map +1 -1
  242. package/dist/components/skeletons/auth-form-skeleton.d.ts +1 -5
  243. package/dist/components/skeletons/auth-form-skeleton.js +3 -27
  244. package/dist/components/skeletons/auth-form-skeleton.js.map +1 -1
  245. package/dist/components/skeletons/profile-skeleton.d.ts +1 -5
  246. package/dist/components/skeletons/profile-skeleton.js +3 -28
  247. package/dist/components/skeletons/profile-skeleton.js.map +1 -1
  248. package/dist/components/skeletons/table-skeleton.d.ts +2 -5
  249. package/dist/components/skeletons/table-skeleton.js +3 -34
  250. package/dist/components/skeletons/table-skeleton.js.map +1 -1
  251. package/dist/constants/auth.error.codes.d.ts +5 -0
  252. package/dist/hooks/use-session-cookie-name.d.ts +1 -0
  253. package/dist/hooks/use-translator.d.ts +1 -0
  254. package/dist/index.d.ts +50 -92
  255. package/dist/index.js +147 -4936
  256. package/dist/index.js.map +1 -1
  257. package/dist/lib/query-options.d.ts +10 -0
  258. package/dist/lib/translations.d.ts +3 -0
  259. package/dist/pages/auth/forgot-password.d.ts +3 -7
  260. package/dist/pages/auth/forgot-password.js +8 -770
  261. package/dist/pages/auth/forgot-password.js.map +1 -1
  262. package/dist/pages/auth/layout.d.ts +3 -7
  263. package/dist/pages/auth/layout.js +13 -536
  264. package/dist/pages/auth/layout.js.map +1 -1
  265. package/dist/pages/auth/reset-password.d.ts +4 -7
  266. package/dist/pages/auth/reset-password.js +8 -888
  267. package/dist/pages/auth/reset-password.js.map +1 -1
  268. package/dist/pages/auth/set-password.d.ts +4 -7
  269. package/dist/pages/auth/set-password.js +9 -927
  270. package/dist/pages/auth/set-password.js.map +1 -1
  271. package/dist/pages/auth/sign-in.d.ts +4 -7
  272. package/dist/pages/auth/sign-in.js +9 -967
  273. package/dist/pages/auth/sign-in.js.map +1 -1
  274. package/dist/pages/auth/sign-up.d.ts +4 -7
  275. package/dist/pages/auth/sign-up.js +8 -915
  276. package/dist/pages/auth/sign-up.js.map +1 -1
  277. package/dist/pages/auth/verify-email.d.ts +4 -7
  278. package/dist/pages/auth/verify-email.js +10 -922
  279. package/dist/pages/auth/verify-email.js.map +1 -1
  280. package/dist/pages/auth/verify-phone.d.ts +4 -7
  281. package/dist/pages/auth/verify-phone.js +10 -927
  282. package/dist/pages/auth/verify-phone.js.map +1 -1
  283. package/dist/pages/iam/permissions/_components/permission-card.d.ts +6 -0
  284. package/dist/pages/iam/permissions/_components/permissions-data.d.ts +7 -0
  285. package/dist/pages/iam/permissions/_components/permissions-list.d.ts +14 -0
  286. package/dist/pages/iam/permissions.d.ts +1 -5
  287. package/dist/pages/iam/permissions.js +4 -302
  288. package/dist/pages/iam/permissions.js.map +1 -1
  289. package/dist/pages/iam/role-detail-layout.d.ts +3 -6
  290. package/dist/pages/iam/role-detail-layout.js +5 -132
  291. package/dist/pages/iam/role-detail-layout.js.map +1 -1
  292. package/dist/pages/iam/role-detail.d.ts +4 -7
  293. package/dist/pages/iam/role-detail.js +5 -224
  294. package/dist/pages/iam/role-detail.js.map +1 -1
  295. package/dist/pages/iam/role-permissions.d.ts +4 -7
  296. package/dist/pages/iam/role-permissions.js +6 -392
  297. package/dist/pages/iam/role-permissions.js.map +1 -1
  298. package/dist/pages/iam/role-users.d.ts +4 -7
  299. package/dist/pages/iam/role-users.js +9 -808
  300. package/dist/pages/iam/role-users.js.map +1 -1
  301. package/dist/pages/iam/roles/_components/role-card.d.ts +7 -0
  302. package/dist/pages/iam/roles/_components/role-form.d.ts +9 -0
  303. package/dist/pages/iam/roles/_components/role-selector.d.ts +11 -0
  304. package/dist/pages/iam/roles/_components/roles-data.d.ts +16 -0
  305. package/dist/pages/iam/roles/_components/roles-list.d.ts +15 -0
  306. package/dist/pages/iam/roles/users/_components/role-users-page.d.ts +5 -0
  307. package/dist/pages/iam/roles.d.ts +1 -5
  308. package/dist/pages/iam/roles.js +7 -678
  309. package/dist/pages/iam/roles.js.map +1 -1
  310. package/dist/pages/iam/sessions/_components/session-card.d.ts +6 -0
  311. package/dist/pages/iam/sessions/_components/sessions-data.d.ts +7 -0
  312. package/dist/pages/iam/sessions/_components/sessions-list.d.ts +14 -0
  313. package/dist/pages/iam/sessions.d.ts +1 -5
  314. package/dist/pages/iam/sessions.js +6 -309
  315. package/dist/pages/iam/sessions.js.map +1 -1
  316. package/dist/pages/iam/shared/navigation.d.ts +8 -0
  317. package/dist/pages/iam/shared/page-helpers.d.ts +12 -0
  318. package/dist/pages/iam/tenant-detail.d.ts +2 -5
  319. package/dist/pages/iam/tenant-detail.js +6 -174
  320. package/dist/pages/iam/tenant-detail.js.map +1 -1
  321. package/dist/pages/iam/tenants/_components/tenant-card.d.ts +6 -0
  322. package/dist/pages/iam/tenants/_components/tenant-form.d.ts +9 -0
  323. package/dist/pages/iam/tenants/_components/tenant-selector.d.ts +13 -0
  324. package/dist/pages/iam/tenants/_components/tenants-data.d.ts +12 -0
  325. package/dist/pages/iam/tenants/_components/tenants-list.d.ts +15 -0
  326. package/dist/pages/iam/tenants/tenant-detail-page-content.d.ts +5 -0
  327. package/dist/pages/iam/tenants.d.ts +1 -5
  328. package/dist/pages/iam/tenants.js +7 -604
  329. package/dist/pages/iam/tenants.js.map +1 -1
  330. package/dist/pages/iam/user-activity.d.ts +2 -5
  331. package/dist/pages/iam/user-activity.js +9 -838
  332. package/dist/pages/iam/user-activity.js.map +1 -1
  333. package/dist/pages/iam/user-detail-layout.d.ts +3 -6
  334. package/dist/pages/iam/user-detail-layout.js +5 -93
  335. package/dist/pages/iam/user-detail-layout.js.map +1 -1
  336. package/dist/pages/iam/user-detail.d.ts +2 -5
  337. package/dist/pages/iam/user-detail.js +5 -92
  338. package/dist/pages/iam/user-detail.js.map +1 -1
  339. package/dist/pages/iam/users/_components/bulk-invite-user-form.d.ts +6 -0
  340. package/dist/pages/iam/users/_components/invite-user-form.d.ts +6 -0
  341. package/dist/pages/iam/users/_components/invite-user-shared.d.ts +25 -0
  342. package/dist/pages/iam/users/_components/user-card.d.ts +6 -0
  343. package/dist/pages/iam/users/_components/user-detail-layout-content.d.ts +6 -0
  344. package/dist/pages/iam/users/_components/user-detail-page-content.d.ts +5 -0
  345. package/dist/pages/iam/users/_components/user-form.d.ts +9 -0
  346. package/dist/pages/iam/users/_components/user-selector.d.ts +12 -0
  347. package/dist/pages/iam/users/_components/users-data.d.ts +22 -0
  348. package/dist/pages/iam/users/_components/users-list.d.ts +15 -0
  349. package/dist/pages/iam/users/activity/_components/role-section.d.ts +3 -0
  350. package/dist/pages/iam/users/activity/user-activity-page-content.d.ts +5 -0
  351. package/dist/pages/iam/users.d.ts +1 -5
  352. package/dist/pages/iam/users.js +7 -1269
  353. package/dist/pages/iam/users.js.map +1 -1
  354. package/dist/pages/profile/_components/profile-sidebar.d.ts +1 -0
  355. package/dist/pages/profile/account.d.ts +1 -5
  356. package/dist/pages/profile/account.js +9 -158
  357. package/dist/pages/profile/account.js.map +1 -1
  358. package/dist/pages/profile/layout.d.ts +1 -8
  359. package/dist/pages/profile/layout.js +5 -128
  360. package/dist/pages/profile/layout.js.map +1 -1
  361. package/dist/pages/profile/security.d.ts +1 -5
  362. package/dist/pages/profile/security.js +20 -1515
  363. package/dist/pages/profile/security.js.map +1 -1
  364. package/dist/provider.d.ts +53 -0
  365. package/dist/{types-g9QcNRxT.d.ts → types.d.ts} +33 -12
  366. package/dist/utils/cookie.d.ts +2 -0
  367. package/dist/utils/custom-fetch.d.ts +2 -0
  368. package/dist/utils/handle-error.d.ts +7 -0
  369. package/dist/utils/normalize-phone.d.ts +1 -0
  370. package/package.json +4 -4
  371. package/dist/verification-form-ipSRTtQB.d.ts +0 -22
@@ -1,544 +1,21 @@
1
1
  "use client";
2
-
3
- // src/pages/auth/layout.tsx
4
- import { Spinner as Spinner5 } from "@mesob/ui/components";
5
- import { useEffect as useEffect12, useRef } from "react";
6
-
7
- // src/components/auth/auth-card.tsx
8
- import { Card } from "@mesob/ui/components";
9
- import { jsx } from "react/jsx-runtime";
10
- var AuthCard = ({ children }) => {
11
- return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen w-full p-4 items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "w-full min-w-[280px] max-w-[28rem] shrink-0", children: /* @__PURE__ */ jsx(Card, { padding: "lg", children }) }) });
12
- };
13
-
14
- // src/components/auth/forgot-password.tsx
15
- import { zodResolver } from "@hookform/resolvers/zod";
16
2
  import {
17
- Alert,
18
- AlertDescription,
19
- AlertTitle,
20
- Button,
21
- Form,
22
- FormControl,
23
- FormField,
24
- FormItem,
25
- FormLabel,
26
- FormMessage,
27
- Input
28
- } from "@mesob/ui/components";
29
- import { useMesob as useMesob2 } from "@mesob/ui/providers";
30
- import { IconAlertCircle } from "@tabler/icons-react";
31
- import { useEffect, useState as useState2 } from "react";
32
- import { useForm } from "react-hook-form";
33
- import { toast } from "sonner";
34
- import { z } from "zod";
35
-
36
- // src/hooks/use-translator.ts
37
- import { useMesob } from "@mesob/ui/providers";
38
-
39
- // src/provider.tsx
40
- import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
41
- import { deepmerge } from "deepmerge-ts";
42
- import createFetchClient from "openapi-fetch";
43
- import createClient from "openapi-react-query";
44
- import { createContext, useContext, useMemo, useState } from "react";
45
-
46
- // src/utils/cookie.ts
47
- var isProduction = typeof process !== "undefined" && process.env.NODE_ENV === "production";
48
-
49
- // src/provider.tsx
50
- import { jsx as jsx2 } from "react/jsx-runtime";
51
- var SessionContext = createContext(null);
52
- var ApiContext = createContext(null);
53
- var ConfigContext = createContext(null);
54
- var queryClient = new QueryClient({
55
- defaultOptions: {
56
- queries: {
57
- refetchOnWindowFocus: false
58
- }
59
- }
60
- });
61
- function useSession() {
62
- const context = useContext(SessionContext);
63
- if (!context) {
64
- throw new Error("useSession must be used within MesobAuthProvider");
65
- }
66
- return context;
67
- }
68
- function useConfig() {
69
- const context = useContext(ConfigContext);
70
- if (!context) {
71
- throw new Error("useConfig must be used within MesobAuthProvider");
72
- }
73
- return context;
74
- }
75
-
76
- // src/constants/auth.error.codes.ts
77
- var AUTH_ERROR_MAPPING = {
78
- USER_NOT_FOUND: {
79
- title: "Account Not Found",
80
- description: "We could not find an account with that identifier. Please check your spelling or sign up."
81
- },
82
- INVALID_PASSWORD: {
83
- title: "Invalid Password",
84
- description: "The password you entered is incorrect. Please try again."
85
- },
86
- USER_EXISTS: {
87
- title: "Account Already Exists",
88
- description: "An account with this identifier already exists. Please sign in instead."
89
- },
90
- VERIFICATION_EXPIRED: {
91
- title: "Verification Expired",
92
- description: "The verification code or link has expired. Please request a new one."
93
- },
94
- VERIFICATION_MISMATCH: {
95
- title: "Invalid Code",
96
- description: "The verification code you entered is invalid. Please double-check and try again."
97
- },
98
- VERIFICATION_NOT_FOUND: {
99
- title: "Verification Not Found",
100
- description: "We could not find a pending verification request. Please restart the process."
101
- },
102
- TOO_MANY_ATTEMPTS: {
103
- title: "Too Many Attempts",
104
- description: "You have made too many requests recently. Please wait a moment before trying again."
105
- },
106
- REQUIRES_VERIFICATION: {
107
- title: "Verification Required",
108
- description: "You need to verify your account before you can continue. Please check your email or phone."
109
- },
110
- UNAUTHORIZED: {
111
- title: "Unauthorized",
112
- description: "You are not authorized to perform this action. Please sign in again."
113
- },
114
- ACCESS_DENIED: {
115
- title: "Access Denied",
116
- description: "You do not have permission to access this resource. Please contact support if you believe this is an error."
117
- },
118
- HAS_NO_PASSWORD: {
119
- title: "No Password Set",
120
- description: "Your account does not have a password yet. Continue to set a password before signing in."
121
- },
122
- PASSWORD_ALREADY_SET: {
123
- title: "Password Already Set",
124
- description: "This account already has a password. Use the normal sign-in form instead."
125
- }
126
- };
127
- var validCodes = Object.keys(AUTH_ERROR_MAPPING);
128
-
129
- // src/components/auth/auth-layout.tsx
130
- import { jsx as jsx3, jsxs } from "react/jsx-runtime";
131
-
132
- // src/components/auth/forgot-password.tsx
133
- import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
134
-
135
- // src/components/auth/reset-password-form.tsx
136
- import { zodResolver as zodResolver2 } from "@hookform/resolvers/zod";
137
- import {
138
- Alert as Alert2,
139
- AlertDescription as AlertDescription2,
140
- AlertTitle as AlertTitle2,
141
- Button as Button2,
142
- Form as Form2,
143
- FormControl as FormControl2,
144
- FormField as FormField2,
145
- FormItem as FormItem2,
146
- FormLabel as FormLabel2,
147
- FormMessage as FormMessage2,
148
- Input as Input2,
149
- InputOTP,
150
- InputOTPGroup,
151
- InputOTPSlot,
152
- useFormField
153
- } from "@mesob/ui/components";
154
- import { useMesob as useMesob3 } from "@mesob/ui/providers";
155
- import { IconAlertCircle as IconAlertCircle2, IconEye, IconEyeOff } from "@tabler/icons-react";
156
- import { useEffect as useEffect2, useState as useState3 } from "react";
157
- import { useForm as useForm2 } from "react-hook-form";
158
- import { toast as toast2 } from "sonner";
159
- import { z as z2 } from "zod";
160
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
161
-
162
- // src/components/auth/set-password.tsx
163
- import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
164
- import {
165
- Alert as Alert3,
166
- AlertDescription as AlertDescription3,
167
- AlertTitle as AlertTitle3,
168
- Button as Button3,
169
- Form as Form3,
170
- FormControl as FormControl3,
171
- FormField as FormField3,
172
- FormItem as FormItem3,
173
- FormLabel as FormLabel3,
174
- FormMessage as FormMessage3,
175
- Input as Input3,
176
- useFormField as useFormField2
177
- } from "@mesob/ui/components";
178
- import { useMesob as useMesob4 } from "@mesob/ui/providers";
179
- import { IconAlertCircle as IconAlertCircle3, IconEye as IconEye2, IconEyeOff as IconEyeOff2 } from "@tabler/icons-react";
180
- import { useEffect as useEffect3, useEffectEvent, useState as useState4 } from "react";
181
- import { useForm as useForm3 } from "react-hook-form";
182
- import { toast as toast3 } from "sonner";
183
- import { z as z3 } from "zod";
184
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
185
-
186
- // src/components/auth/sign-in.tsx
187
- import { zodResolver as zodResolver4 } from "@hookform/resolvers/zod";
188
- import {
189
- Alert as Alert4,
190
- AlertDescription as AlertDescription4,
191
- AlertTitle as AlertTitle4,
192
- Button as Button4,
193
- Form as Form4,
194
- FormControl as FormControl4,
195
- FormField as FormField4,
196
- FormItem as FormItem4,
197
- FormLabel as FormLabel4,
198
- FormMessage as FormMessage4,
199
- Input as Input4,
200
- useFormField as useFormField3
201
- } from "@mesob/ui/components";
202
- import { useMesob as useMesob5 } from "@mesob/ui/providers";
203
- import { IconAlertCircle as IconAlertCircle4, IconEye as IconEye3, IconEyeOff as IconEyeOff3 } from "@tabler/icons-react";
204
- import { useEffect as useEffect4, useState as useState5 } from "react";
205
- import { useForm as useForm4 } from "react-hook-form";
206
- import { toast as toast4 } from "sonner";
207
- import { z as z4 } from "zod";
208
- import { Fragment, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
209
-
210
- // src/components/auth/sign-up.tsx
211
- import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
212
- import {
213
- Alert as Alert5,
214
- AlertDescription as AlertDescription5,
215
- AlertTitle as AlertTitle5,
216
- Button as Button5,
217
- Form as Form5,
218
- FormControl as FormControl5,
219
- FormField as FormField5,
220
- FormItem as FormItem5,
221
- FormLabel as FormLabel5,
222
- FormMessage as FormMessage5,
223
- Input as Input5,
224
- useFormField as useFormField4
225
- } from "@mesob/ui/components";
226
- import { useMesob as useMesob6 } from "@mesob/ui/providers";
227
- import { IconAlertCircle as IconAlertCircle5, IconEye as IconEye4, IconEyeOff as IconEyeOff4 } from "@tabler/icons-react";
228
- import { useEffect as useEffect5, useState as useState6 } from "react";
229
- import { useForm as useForm5 } from "react-hook-form";
230
- import { toast as toast5 } from "sonner";
231
- import { z as z5 } from "zod";
232
- import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
233
-
234
- // src/components/auth/verification-form.tsx
235
- import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
236
- import {
237
- Button as Button6,
238
- Form as Form6,
239
- FormControl as FormControl6,
240
- FormField as FormField6,
241
- FormItem as FormItem6,
242
- FormLabel as FormLabel6,
243
- FormMessage as FormMessage6,
244
- InputOTP as InputOTP2,
245
- InputOTPGroup as InputOTPGroup2,
246
- InputOTPSlot as InputOTPSlot2
247
- } from "@mesob/ui/components";
248
- import { useForm as useForm6 } from "react-hook-form";
249
- import { z as z6 } from "zod";
250
-
251
- // src/components/auth/countdown.tsx
252
- import { Spinner } from "@mesob/ui/components";
253
- import { useEffect as useEffect6, useState as useState7 } from "react";
254
- import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
255
-
256
- // src/components/auth/verification-form.tsx
257
- import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
258
-
259
- // src/components/auth/verify-email.tsx
260
- import { Alert as Alert6, AlertDescription as AlertDescription6, AlertTitle as AlertTitle6 } from "@mesob/ui/components";
261
- import { useMesob as useMesob7 } from "@mesob/ui/providers";
262
- import { IconAlertCircle as IconAlertCircle6 } from "@tabler/icons-react";
263
- import { useEffect as useEffect7, useState as useState8 } from "react";
264
- import { toast as toast6 } from "sonner";
265
- import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
266
-
267
- // src/components/auth/verify-phone.tsx
268
- import { Alert as Alert7, AlertDescription as AlertDescription7, AlertTitle as AlertTitle7 } from "@mesob/ui/components";
269
- import { useMesob as useMesob8 } from "@mesob/ui/providers";
270
- import { IconAlertCircle as IconAlertCircle7 } from "@tabler/icons-react";
271
- import { useEffect as useEffect8, useState as useState9 } from "react";
272
- import { toast as toast7 } from "sonner";
273
- import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
274
-
275
- // src/components/authorization/deny.tsx
276
- import { deny as canDeny } from "@mesob/common";
277
- import { Fragment as Fragment2, jsx as jsx13 } from "react/jsx-runtime";
278
-
279
- // src/components/authorization/grant.tsx
280
- import { grant as canGrant } from "@mesob/common";
281
- import { Fragment as Fragment3, jsx as jsx14 } from "react/jsx-runtime";
282
-
283
- // src/components/error-boundary.tsx
284
- import { Button as Button7 } from "@mesob/ui/components";
285
- import { Component } from "react";
286
- import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
287
-
288
- // src/components/iam/permission-selector.tsx
3
+ AuthCard
4
+ } from "../../chunk-G2AW2H36.js";
289
5
  import {
290
- Badge,
291
- EntitySelector,
292
- useEntitySectionState
293
- } from "@mesob/ui/components";
294
- import { IconKey } from "@tabler/icons-react";
295
- import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
296
-
297
- // src/components/iam/permissions.tsx
298
- import { Badge as Badge2, Button as Button8 } from "@mesob/ui/components";
299
- import { useState as useState10 } from "react";
300
-
301
- // src/components/shared/data-table.tsx
302
- import {
303
- Table,
304
- TableBody,
305
- TableCell,
306
- TableHead,
307
- TableHeader,
308
- TableRow
309
- } from "@mesob/ui/components";
310
-
311
- // src/components/skeletons/table-skeleton.tsx
312
- import { Skeleton } from "@mesob/ui/components";
313
- import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
314
-
315
- // src/components/shared/data-table.tsx
316
- import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
317
-
318
- // src/components/iam/permissions.tsx
319
- import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
320
-
321
- // src/components/iam/role-detail-layout.tsx
322
- import {
323
- EntityDetailHeader,
324
- EntityEmptyState,
325
- PageContainer,
326
- useBreadcrumbs
327
- } from "@mesob/ui/components";
328
- import { IconShield } from "@tabler/icons-react";
329
- import { useMemo as useMemo2 } from "react";
330
- import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
331
-
332
- // src/components/iam/role-detail-page.tsx
333
- import { zodResolver as zodResolver7 } from "@hookform/resolvers/zod";
334
- import {
335
- EntityFormActions,
336
- Form as Form7,
337
- FormControl as FormControl7,
338
- FormField as FormField7,
339
- FormItem as FormItem7,
340
- FormLabel as FormLabel7,
341
- FormMessage as FormMessage7,
342
- Input as Input6,
343
- LocaleInputText,
344
- LocaleInputTextarea,
345
- Section,
346
- Skeleton as Skeleton2
347
- } from "@mesob/ui/components";
348
- import { useLocaleSchemas } from "@mesob/ui/providers";
349
- import { useQueryClient } from "@tanstack/react-query";
350
- import { useEffect as useEffect9, useMemo as useMemo3 } from "react";
351
- import { useForm as useForm7 } from "react-hook-form";
352
- import { toast as toast8 } from "sonner";
353
- import { z as z7 } from "zod";
354
- import { jsx as jsx21, jsxs as jsxs17 } from "react/jsx-runtime";
355
-
356
- // src/components/iam/role-permissions-page.tsx
357
- import {
358
- Badge as Badge3,
359
- Button as Button9,
360
- DataTablePagination,
361
- DeleteConfirmButton,
362
- DisplayTable,
363
- EntityEmptyState as EntityEmptyState2,
364
- EntityFilter,
365
- EntityHeader,
366
- EntityLoadingState,
367
- EntitySearch,
368
- EntitySort,
369
- EntityViewToggle,
370
- PageBody,
371
- Tbody,
372
- Td,
373
- Th,
374
- Thead,
375
- Tr,
376
- useEntityPagination,
377
- useEntityParams
378
- } from "@mesob/ui/components";
379
- import { IconKey as IconKey2, IconPlus, IconTrash } from "@tabler/icons-react";
380
- import { useQueryClient as useQueryClient2 } from "@tanstack/react-query";
381
- import { useMemo as useMemo4 } from "react";
382
- import { toast as toast9 } from "sonner";
383
- import { jsx as jsx22, jsxs as jsxs18 } from "react/jsx-runtime";
384
-
385
- // src/components/iam/roles.tsx
386
- import { Badge as Badge4, Button as Button10 } from "@mesob/ui/components";
387
- import { useLocale } from "next-intl";
388
- import { useState as useState11 } from "react";
389
- import { jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
390
-
391
- // src/components/iam/sessions.tsx
392
- import { Button as Button11 } from "@mesob/ui/components";
393
- import { useState as useState12 } from "react";
394
- import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
395
-
396
- // src/components/iam/tenants.tsx
397
- import { Badge as Badge5, Button as Button12 } from "@mesob/ui/components";
398
- import { useState as useState13 } from "react";
399
- import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
400
-
401
- // src/components/iam/users.tsx
402
- import { Badge as Badge6, Button as Button13 } from "@mesob/ui/components";
403
- import { useState as useState14 } from "react";
404
- import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
405
-
406
- // src/components/profile/account.tsx
407
- import { Badge as Badge8, Card as Card2, CardContent, Separator } from "@mesob/ui/components";
408
-
409
- // src/components/profile/change-profile.tsx
410
- import {
411
- Avatar,
412
- AvatarFallback,
413
- AvatarImage,
414
- Badge as Badge7,
415
- Button as Button14
416
- } from "@mesob/ui/components";
417
- import { useState as useState15 } from "react";
418
- import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
419
-
420
- // src/components/profile/account.tsx
421
- import { jsx as jsx28, jsxs as jsxs24 } from "react/jsx-runtime";
422
-
423
- // src/components/profile/security.tsx
424
- import { Badge as Badge9, Card as Card3, CardContent as CardContent2, Separator as Separator2 } from "@mesob/ui/components";
425
-
426
- // src/components/profile/change-email-form.tsx
427
- import {
428
- Button as Button16,
429
- Collapsible,
430
- CollapsibleContent,
431
- CollapsibleTrigger
432
- } from "@mesob/ui/components";
433
- import { IconChevronDown } from "@tabler/icons-react";
434
- import { useState as useState18 } from "react";
435
-
436
- // src/components/profile/request-change-email-form.tsx
437
- import { zodResolver as zodResolver8 } from "@hookform/resolvers/zod";
438
- import { Button as Button15, Input as Input7, Label, Spinner as Spinner2 } from "@mesob/ui/components";
439
- import { IconEye as IconEye5, IconEyeOff as IconEyeOff5 } from "@tabler/icons-react";
440
- import { useEffect as useEffect10, useState as useState16 } from "react";
441
- import { useForm as useForm8 } from "react-hook-form";
442
- import { toast as toast10 } from "sonner";
443
- import { z as z8 } from "zod";
444
- import { jsx as jsx29, jsxs as jsxs25 } from "react/jsx-runtime";
445
- var emailPasswordSchema = z8.object({
446
- email: z8.string().email("Invalid email address"),
447
- password: z8.string().min(8, "Password must be at least 8 characters").max(128, "Password too long")
448
- });
449
-
450
- // src/components/profile/verify-change-email-form.tsx
451
- import { useState as useState17 } from "react";
452
- import { toast as toast11 } from "sonner";
453
-
454
- // src/components/profile/otp-verification-modal.tsx
455
- import {
456
- Dialog,
457
- DialogContent,
458
- DialogDescription,
459
- DialogHeader,
460
- DialogTitle
461
- } from "@mesob/ui/components";
462
- import { jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
463
-
464
- // src/components/profile/verify-change-email-form.tsx
465
- import { jsx as jsx31 } from "react/jsx-runtime";
466
-
467
- // src/components/profile/change-email-form.tsx
468
- import { jsx as jsx32, jsxs as jsxs27 } from "react/jsx-runtime";
469
-
470
- // src/components/profile/change-password-form.tsx
471
- import { zodResolver as zodResolver9 } from "@hookform/resolvers/zod";
472
- import {
473
- Button as Button17,
474
- Collapsible as Collapsible2,
475
- CollapsibleContent as CollapsibleContent2,
476
- CollapsibleTrigger as CollapsibleTrigger2,
477
- Input as Input8,
478
- Label as Label2,
479
- Spinner as Spinner3
480
- } from "@mesob/ui/components";
481
- import { IconChevronDown as IconChevronDown2, IconEye as IconEye6, IconEyeOff as IconEyeOff6 } from "@tabler/icons-react";
482
- import { useState as useState19 } from "react";
483
- import { useForm as useForm9 } from "react-hook-form";
484
- import { toast as toast12 } from "sonner";
485
- import { z as z9 } from "zod";
486
- import { jsx as jsx33, jsxs as jsxs28 } from "react/jsx-runtime";
487
- var changePasswordSchema = z9.object({
488
- currentPassword: z9.string().min(8, "Password must be at least 8 characters"),
489
- newPassword: z9.string().min(8, "Password must be at least 8 characters"),
490
- confirmPassword: z9.string().min(8, "Password must be at least 8 characters")
491
- }).refine((data) => data.newPassword === data.confirmPassword, {
492
- message: "Passwords don't match",
493
- path: ["confirmPassword"]
494
- });
495
-
496
- // src/components/profile/change-phone-form.tsx
497
- import {
498
- Button as Button19,
499
- Collapsible as Collapsible3,
500
- CollapsibleContent as CollapsibleContent3,
501
- CollapsibleTrigger as CollapsibleTrigger3
502
- } from "@mesob/ui/components";
503
- import { IconChevronDown as IconChevronDown3 } from "@tabler/icons-react";
504
- import { useState as useState22 } from "react";
505
-
506
- // src/components/profile/request-change-phone-form.tsx
507
- import { zodResolver as zodResolver10 } from "@hookform/resolvers/zod";
508
- import { Button as Button18, Input as Input9, Label as Label3, Spinner as Spinner4 } from "@mesob/ui/components";
509
- import { IconEye as IconEye7, IconEyeOff as IconEyeOff7 } from "@tabler/icons-react";
510
- import { useEffect as useEffect11, useState as useState20 } from "react";
511
- import { useForm as useForm10 } from "react-hook-form";
512
- import { toast as toast13 } from "sonner";
513
- import { z as z10 } from "zod";
514
- import { jsx as jsx34, jsxs as jsxs29 } from "react/jsx-runtime";
515
-
516
- // src/components/profile/verify-change-phone-form.tsx
517
- import { useState as useState21 } from "react";
518
- import { toast as toast14 } from "sonner";
519
- import { jsx as jsx35 } from "react/jsx-runtime";
520
-
521
- // src/components/profile/change-phone-form.tsx
522
- import { jsx as jsx36, jsxs as jsxs30 } from "react/jsx-runtime";
523
-
524
- // src/components/profile/security.tsx
525
- import { jsx as jsx37, jsxs as jsxs31 } from "react/jsx-runtime";
526
-
527
- // src/components/skeletons/auth-form-skeleton.tsx
528
- import { Skeleton as Skeleton3 } from "@mesob/ui/components";
529
- import { jsx as jsx38, jsxs as jsxs32 } from "react/jsx-runtime";
530
-
531
- // src/components/skeletons/profile-skeleton.tsx
532
- import { Skeleton as Skeleton4 } from "@mesob/ui/components";
533
- import { jsx as jsx39, jsxs as jsxs33 } from "react/jsx-runtime";
6
+ useConfig,
7
+ useSession
8
+ } from "../../chunk-72YRO3A7.js";
534
9
 
535
10
  // src/pages/auth/layout.tsx
536
- import { jsx as jsx40 } from "react/jsx-runtime";
537
- function AuthLayout2({ children }) {
11
+ import { Spinner } from "@mesob/ui/components";
12
+ import { useEffect, useRef } from "react";
13
+ import { jsx } from "react/jsx-runtime";
14
+ function AuthLayout({ children }) {
538
15
  const { isLoading, isAuthenticated } = useSession();
539
16
  const { config } = useConfig();
540
17
  const hasRedirected = useRef(false);
541
- useEffect12(() => {
18
+ useEffect(() => {
542
19
  if (isAuthenticated && !hasRedirected.current) {
543
20
  hasRedirected.current = true;
544
21
  if (config.navigation?.onNavigate) {
@@ -549,14 +26,14 @@ function AuthLayout2({ children }) {
549
26
  }
550
27
  }, [config.navigation, isAuthenticated]);
551
28
  if (isLoading) {
552
- return /* @__PURE__ */ jsx40("div", { className: "flex min-h-svh items-center justify-center", children: /* @__PURE__ */ jsx40(Spinner5, { className: "size-8" }) });
29
+ return /* @__PURE__ */ jsx("div", { className: "flex min-h-svh items-center justify-center", children: /* @__PURE__ */ jsx(Spinner, { className: "size-8" }) });
553
30
  }
554
31
  if (isAuthenticated) {
555
32
  return null;
556
33
  }
557
- return /* @__PURE__ */ jsx40("div", { className: "bg-primary/5", children: /* @__PURE__ */ jsx40(AuthCard, { children }) });
34
+ return /* @__PURE__ */ jsx("div", { className: "bg-primary/5", children: /* @__PURE__ */ jsx(AuthCard, { children }) });
558
35
  }
559
36
  export {
560
- AuthLayout2 as default
37
+ AuthLayout as default
561
38
  };
562
39
  //# sourceMappingURL=layout.js.map