hazo_auth 1.2.0 → 1.4.0

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 (495) hide show
  1. package/README.md +383 -774
  2. package/dist/components/index.d.ts +3 -0
  3. package/dist/components/index.d.ts.map +1 -0
  4. package/dist/components/index.js +5 -0
  5. package/dist/components/layouts/email_verification/config/email_verification_field_config.d.ts +23 -0
  6. package/dist/components/layouts/email_verification/config/email_verification_field_config.d.ts.map +1 -0
  7. package/dist/components/layouts/email_verification/config/email_verification_field_config.js +44 -0
  8. package/dist/components/layouts/email_verification/hooks/use_email_verification.d.ts +31 -0
  9. package/dist/components/layouts/email_verification/hooks/use_email_verification.d.ts.map +1 -0
  10. package/dist/components/layouts/email_verification/hooks/use_email_verification.js +222 -0
  11. package/dist/components/layouts/email_verification/index.d.ts +23 -0
  12. package/dist/components/layouts/email_verification/index.d.ts.map +1 -0
  13. package/dist/components/layouts/email_verification/index.js +61 -0
  14. package/dist/components/layouts/forgot_password/config/forgot_password_field_config.d.ts +10 -0
  15. package/dist/components/layouts/forgot_password/config/forgot_password_field_config.d.ts.map +1 -0
  16. package/dist/components/layouts/forgot_password/config/forgot_password_field_config.js +33 -0
  17. package/dist/components/layouts/forgot_password/hooks/use_forgot_password_form.d.ts +22 -0
  18. package/dist/components/layouts/forgot_password/hooks/use_forgot_password_form.d.ts.map +1 -0
  19. package/dist/components/layouts/forgot_password/hooks/use_forgot_password_form.js +127 -0
  20. package/dist/components/layouts/forgot_password/index.d.ts +18 -0
  21. package/dist/components/layouts/forgot_password/index.d.ts.map +1 -0
  22. package/dist/components/layouts/forgot_password/index.js +43 -0
  23. package/dist/components/layouts/index.d.ts +16 -0
  24. package/dist/components/layouts/index.d.ts.map +1 -0
  25. package/dist/components/layouts/index.js +11 -0
  26. package/dist/components/layouts/login/config/login_field_config.d.ts +11 -0
  27. package/dist/components/layouts/login/config/login_field_config.d.ts.map +1 -0
  28. package/dist/components/layouts/login/config/login_field_config.js +42 -0
  29. package/dist/components/layouts/login/hooks/use_login_form.d.ts +34 -0
  30. package/dist/components/layouts/login/hooks/use_login_form.d.ts.map +1 -0
  31. package/dist/components/layouts/login/hooks/use_login_form.js +196 -0
  32. package/dist/components/layouts/login/index.d.ts +31 -0
  33. package/dist/components/layouts/login/index.d.ts.map +1 -0
  34. package/dist/components/layouts/login/index.js +58 -0
  35. package/dist/components/layouts/my_settings/components/editable_field.d.ts +19 -0
  36. package/dist/components/layouts/my_settings/components/editable_field.d.ts.map +1 -0
  37. package/dist/components/layouts/my_settings/components/editable_field.js +73 -0
  38. package/dist/components/layouts/my_settings/components/password_change_dialog.d.ts +28 -0
  39. package/dist/components/layouts/my_settings/components/password_change_dialog.d.ts.map +1 -0
  40. package/dist/components/layouts/my_settings/components/password_change_dialog.js +138 -0
  41. package/dist/components/layouts/my_settings/components/profile_picture_dialog.d.ts +42 -0
  42. package/dist/components/layouts/my_settings/components/profile_picture_dialog.d.ts.map +1 -0
  43. package/dist/components/layouts/my_settings/components/profile_picture_dialog.js +198 -0
  44. package/dist/components/layouts/my_settings/components/profile_picture_display.d.ts +16 -0
  45. package/dist/components/layouts/my_settings/components/profile_picture_display.d.ts.map +1 -0
  46. package/dist/components/layouts/my_settings/components/profile_picture_display.js +33 -0
  47. package/dist/components/layouts/my_settings/components/profile_picture_gravatar_tab.d.ts +17 -0
  48. package/dist/components/layouts/my_settings/components/profile_picture_gravatar_tab.d.ts.map +1 -0
  49. package/dist/components/layouts/my_settings/components/profile_picture_gravatar_tab.js +48 -0
  50. package/dist/components/layouts/my_settings/components/profile_picture_library_tab.d.ts +21 -0
  51. package/dist/components/layouts/my_settings/components/profile_picture_library_tab.d.ts.map +1 -0
  52. package/dist/components/layouts/my_settings/components/profile_picture_library_tab.js +144 -0
  53. package/dist/components/layouts/my_settings/components/profile_picture_upload_tab.d.ts +23 -0
  54. package/dist/components/layouts/my_settings/components/profile_picture_upload_tab.d.ts.map +1 -0
  55. package/dist/components/layouts/my_settings/components/profile_picture_upload_tab.js +169 -0
  56. package/dist/components/layouts/my_settings/config/my_settings_field_config.d.ts +19 -0
  57. package/dist/components/layouts/my_settings/config/my_settings_field_config.d.ts.map +1 -0
  58. package/dist/components/layouts/my_settings/config/my_settings_field_config.js +26 -0
  59. package/dist/components/layouts/my_settings/hooks/use_my_settings.d.ts +46 -0
  60. package/dist/components/layouts/my_settings/hooks/use_my_settings.d.ts.map +1 -0
  61. package/dist/components/layouts/my_settings/hooks/use_my_settings.js +354 -0
  62. package/dist/components/layouts/my_settings/index.d.ts +64 -0
  63. package/dist/components/layouts/my_settings/index.d.ts.map +1 -0
  64. package/dist/components/layouts/my_settings/index.js +65 -0
  65. package/dist/components/layouts/register/config/register_field_config.d.ts +14 -0
  66. package/dist/components/layouts/register/config/register_field_config.d.ts.map +1 -0
  67. package/dist/components/layouts/register/config/register_field_config.js +69 -0
  68. package/dist/components/layouts/register/hooks/use_register_form.d.ts +30 -0
  69. package/dist/components/layouts/register/hooks/use_register_form.d.ts.map +1 -0
  70. package/dist/components/layouts/register/hooks/use_register_form.js +184 -0
  71. package/dist/components/layouts/register/index.d.ts +23 -0
  72. package/dist/components/layouts/register/index.d.ts.map +1 -0
  73. package/dist/components/layouts/register/index.js +58 -0
  74. package/dist/components/layouts/reset_password/config/reset_password_field_config.d.ts +13 -0
  75. package/dist/components/layouts/reset_password/config/reset_password_field_config.d.ts.map +1 -0
  76. package/dist/components/layouts/reset_password/config/reset_password_field_config.js +53 -0
  77. package/dist/components/layouts/reset_password/hooks/use_reset_password_form.d.ts +28 -0
  78. package/dist/components/layouts/reset_password/hooks/use_reset_password_form.d.ts.map +1 -0
  79. package/dist/components/layouts/reset_password/hooks/use_reset_password_form.js +201 -0
  80. package/dist/components/layouts/reset_password/index.d.ts +23 -0
  81. package/dist/components/layouts/reset_password/index.d.ts.map +1 -0
  82. package/dist/components/layouts/reset_password/index.js +53 -0
  83. package/dist/components/layouts/shared/components/already_logged_in_guard.d.ts +20 -0
  84. package/dist/components/layouts/shared/components/already_logged_in_guard.d.ts.map +1 -0
  85. package/dist/components/layouts/shared/components/already_logged_in_guard.js +32 -0
  86. package/dist/components/layouts/shared/components/auth_page_shell.d.ts +7 -0
  87. package/dist/components/layouts/shared/components/auth_page_shell.d.ts.map +1 -0
  88. package/dist/components/layouts/shared/components/auth_page_shell.js +12 -0
  89. package/dist/components/layouts/shared/components/field_error_message.d.ts +7 -0
  90. package/dist/components/layouts/shared/components/field_error_message.d.ts.map +1 -0
  91. package/dist/components/layouts/shared/components/field_error_message.js +6 -0
  92. package/dist/components/layouts/shared/components/form_action_buttons.d.ts +14 -0
  93. package/dist/components/layouts/shared/components/form_action_buttons.d.ts.map +1 -0
  94. package/dist/components/layouts/shared/components/form_action_buttons.js +15 -0
  95. package/dist/components/layouts/shared/components/form_field_wrapper.d.ts +11 -0
  96. package/dist/components/layouts/shared/components/form_field_wrapper.d.ts.map +1 -0
  97. package/dist/components/layouts/shared/components/form_field_wrapper.js +9 -0
  98. package/dist/components/layouts/shared/components/form_header.d.ts +10 -0
  99. package/dist/components/layouts/shared/components/form_header.d.ts.map +1 -0
  100. package/dist/components/layouts/shared/components/form_header.js +5 -0
  101. package/dist/components/layouts/shared/components/logout_button.d.ts +7 -0
  102. package/dist/components/layouts/shared/components/logout_button.d.ts.map +1 -0
  103. package/dist/components/layouts/shared/components/logout_button.js +44 -0
  104. package/dist/components/layouts/shared/components/password_field.d.ts +13 -0
  105. package/dist/components/layouts/shared/components/password_field.d.ts.map +1 -0
  106. package/dist/components/layouts/shared/components/password_field.js +13 -0
  107. package/dist/components/layouts/shared/components/profile_pic_menu.d.ts +22 -0
  108. package/dist/components/layouts/shared/components/profile_pic_menu.d.ts.map +1 -0
  109. package/dist/components/layouts/shared/components/profile_pic_menu.js +169 -0
  110. package/dist/components/layouts/shared/components/profile_pic_menu_wrapper.d.ts +12 -0
  111. package/dist/components/layouts/shared/components/profile_pic_menu_wrapper.d.ts.map +1 -0
  112. package/dist/components/layouts/shared/components/profile_pic_menu_wrapper.js +16 -0
  113. package/dist/components/layouts/shared/components/sidebar_layout_wrapper.d.ts +6 -0
  114. package/dist/components/layouts/shared/components/sidebar_layout_wrapper.d.ts.map +1 -0
  115. package/dist/components/layouts/shared/components/sidebar_layout_wrapper.js +15 -0
  116. package/dist/components/layouts/shared/components/standalone_layout_wrapper.d.ts +11 -0
  117. package/dist/components/layouts/shared/components/standalone_layout_wrapper.d.ts.map +1 -0
  118. package/dist/components/layouts/shared/components/standalone_layout_wrapper.js +10 -0
  119. package/dist/components/layouts/shared/components/two_column_auth_layout.d.ts +12 -0
  120. package/dist/components/layouts/shared/components/two_column_auth_layout.d.ts.map +1 -0
  121. package/dist/components/layouts/shared/components/two_column_auth_layout.js +8 -0
  122. package/dist/components/layouts/shared/components/unauthorized_guard.d.ts +14 -0
  123. package/dist/components/layouts/shared/components/unauthorized_guard.d.ts.map +1 -0
  124. package/dist/components/layouts/shared/components/unauthorized_guard.js +30 -0
  125. package/dist/components/layouts/shared/components/visual_panel.d.ts +9 -0
  126. package/dist/components/layouts/shared/components/visual_panel.d.ts.map +1 -0
  127. package/dist/components/layouts/shared/components/visual_panel.js +10 -0
  128. package/dist/components/layouts/shared/config/layout_customization.d.ts +38 -0
  129. package/dist/components/layouts/shared/config/layout_customization.d.ts.map +1 -0
  130. package/dist/components/layouts/shared/config/layout_customization.js +19 -0
  131. package/dist/components/layouts/shared/data/layout_data_client.d.ts +6 -0
  132. package/dist/components/layouts/shared/data/layout_data_client.d.ts.map +1 -0
  133. package/dist/components/layouts/shared/data/layout_data_client.js +9 -0
  134. package/dist/components/layouts/shared/hooks/use_auth_status.d.ts +20 -0
  135. package/dist/components/layouts/shared/hooks/use_auth_status.d.ts.map +1 -0
  136. package/dist/components/layouts/shared/hooks/use_auth_status.js +71 -0
  137. package/dist/components/layouts/shared/hooks/use_hazo_auth.d.ts +48 -0
  138. package/dist/components/layouts/shared/hooks/use_hazo_auth.d.ts.map +1 -0
  139. package/dist/components/layouts/shared/hooks/use_hazo_auth.js +90 -0
  140. package/dist/components/layouts/shared/index.d.ts +24 -0
  141. package/dist/components/layouts/shared/index.d.ts.map +1 -0
  142. package/dist/components/layouts/shared/index.js +27 -0
  143. package/dist/components/layouts/shared/utils/ip_address.d.ts +7 -0
  144. package/dist/components/layouts/shared/utils/ip_address.d.ts.map +1 -0
  145. package/dist/components/layouts/shared/utils/ip_address.js +34 -0
  146. package/dist/components/layouts/shared/utils/validation.d.ts +15 -0
  147. package/dist/components/layouts/shared/utils/validation.d.ts.map +1 -0
  148. package/dist/components/layouts/shared/utils/validation.js +45 -0
  149. package/dist/components/layouts/user_management/components/roles_matrix.d.ts +29 -0
  150. package/dist/components/layouts/user_management/components/roles_matrix.d.ts.map +1 -0
  151. package/dist/components/layouts/user_management/components/roles_matrix.js +287 -0
  152. package/dist/components/layouts/user_management/index.d.ts +13 -0
  153. package/dist/components/layouts/user_management/index.d.ts.map +1 -0
  154. package/dist/components/layouts/user_management/index.js +495 -0
  155. package/dist/components/ui/alert-dialog.d.ts +21 -0
  156. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  157. package/dist/components/ui/alert-dialog.js +62 -0
  158. package/dist/components/ui/avatar.d.ts +7 -0
  159. package/dist/components/ui/avatar.d.ts.map +1 -0
  160. package/dist/components/ui/avatar.js +32 -0
  161. package/dist/components/ui/button.d.ts +12 -0
  162. package/dist/components/ui/button.d.ts.map +1 -0
  163. package/dist/components/ui/button.js +45 -0
  164. package/dist/components/ui/checkbox.d.ts +5 -0
  165. package/dist/components/ui/checkbox.d.ts.map +1 -0
  166. package/dist/components/ui/checkbox.js +23 -0
  167. package/dist/components/ui/dialog.d.ts +20 -0
  168. package/dist/components/ui/dialog.d.ts.map +1 -0
  169. package/dist/components/ui/dialog.js +52 -0
  170. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  171. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  172. package/dist/components/ui/dropdown-menu.js +72 -0
  173. package/dist/components/ui/hazo_ui_tooltip.d.ts +26 -0
  174. package/dist/components/ui/hazo_ui_tooltip.d.ts.map +1 -0
  175. package/dist/components/ui/hazo_ui_tooltip.js +17 -0
  176. package/dist/components/ui/index.d.ts +20 -0
  177. package/dist/components/ui/index.d.ts.map +1 -0
  178. package/dist/components/ui/index.js +21 -0
  179. package/dist/components/ui/input.d.ts +4 -0
  180. package/dist/components/ui/input.d.ts.map +1 -0
  181. package/dist/components/ui/input.js +20 -0
  182. package/dist/components/ui/label.d.ts +6 -0
  183. package/dist/components/ui/label.d.ts.map +1 -0
  184. package/dist/components/ui/label.js +24 -0
  185. package/dist/components/ui/separator.d.ts +5 -0
  186. package/dist/components/ui/separator.d.ts.map +1 -0
  187. package/dist/components/ui/separator.js +22 -0
  188. package/dist/components/ui/sheet.d.ts +23 -0
  189. package/dist/components/ui/sheet.d.ts.map +1 -0
  190. package/dist/components/ui/sheet.js +66 -0
  191. package/dist/components/ui/sidebar.d.ts +66 -0
  192. package/dist/components/ui/sidebar.d.ts.map +1 -0
  193. package/dist/components/ui/sidebar.js +267 -0
  194. package/dist/components/ui/skeleton.d.ts +3 -0
  195. package/dist/components/ui/skeleton.d.ts.map +1 -0
  196. package/dist/components/ui/skeleton.js +18 -0
  197. package/dist/components/ui/sonner.d.ts +5 -0
  198. package/dist/components/ui/sonner.d.ts.map +1 -0
  199. package/dist/components/ui/sonner.js +28 -0
  200. package/dist/components/ui/switch.d.ts +5 -0
  201. package/dist/components/ui/switch.d.ts.map +1 -0
  202. package/dist/components/ui/switch.js +22 -0
  203. package/dist/components/ui/table.d.ts +11 -0
  204. package/dist/components/ui/table.d.ts.map +1 -0
  205. package/dist/components/ui/table.js +55 -0
  206. package/dist/components/ui/tabs.d.ts +8 -0
  207. package/dist/components/ui/tabs.d.ts.map +1 -0
  208. package/dist/components/ui/tabs.js +33 -0
  209. package/dist/components/ui/tooltip.d.ts +8 -0
  210. package/dist/components/ui/tooltip.d.ts.map +1 -0
  211. package/dist/components/ui/tooltip.js +25 -0
  212. package/dist/components/ui/vertical-tabs.d.ts +8 -0
  213. package/dist/components/ui/vertical-tabs.d.ts.map +1 -0
  214. package/dist/components/ui/vertical-tabs.js +37 -0
  215. package/dist/hooks/use-mobile.d.ts +2 -0
  216. package/dist/hooks/use-mobile.d.ts.map +1 -0
  217. package/dist/hooks/use-mobile.js +15 -0
  218. package/dist/index.d.ts +3 -0
  219. package/dist/index.d.ts.map +1 -0
  220. package/dist/index.js +5 -0
  221. package/dist/lib/already_logged_in_config.server.d.ts +14 -0
  222. package/dist/lib/already_logged_in_config.server.d.ts.map +1 -0
  223. package/dist/lib/already_logged_in_config.server.js +29 -0
  224. package/dist/lib/app_logger.d.ts +12 -0
  225. package/dist/lib/app_logger.d.ts.map +1 -0
  226. package/dist/lib/app_logger.js +14 -0
  227. package/dist/lib/auth/auth_cache.d.ts +83 -0
  228. package/dist/lib/auth/auth_cache.d.ts.map +1 -0
  229. package/dist/lib/auth/auth_cache.js +158 -0
  230. package/dist/lib/auth/auth_rate_limiter.d.ts +39 -0
  231. package/dist/lib/auth/auth_rate_limiter.d.ts.map +1 -0
  232. package/dist/lib/auth/auth_rate_limiter.js +95 -0
  233. package/dist/lib/auth/auth_types.d.ts +53 -0
  234. package/dist/lib/auth/auth_types.d.ts.map +1 -0
  235. package/dist/lib/auth/auth_types.js +16 -0
  236. package/dist/lib/auth/auth_utils.server.d.ts +47 -0
  237. package/dist/lib/auth/auth_utils.server.d.ts.map +1 -0
  238. package/dist/lib/auth/auth_utils.server.js +150 -0
  239. package/dist/lib/auth/hazo_get_auth.server.d.ts +12 -0
  240. package/dist/lib/auth/hazo_get_auth.server.d.ts.map +1 -0
  241. package/dist/lib/auth/hazo_get_auth.server.js +256 -0
  242. package/dist/lib/auth/index.d.ts +9 -0
  243. package/dist/lib/auth/index.d.ts.map +1 -0
  244. package/dist/lib/auth/index.js +12 -0
  245. package/dist/lib/auth/server_auth.d.ts +26 -0
  246. package/dist/lib/auth/server_auth.d.ts.map +1 -0
  247. package/dist/lib/auth/server_auth.js +62 -0
  248. package/dist/lib/auth_utility_config.server.d.ts +20 -0
  249. package/dist/lib/auth_utility_config.server.d.ts.map +1 -0
  250. package/dist/lib/auth_utility_config.server.js +64 -0
  251. package/dist/lib/config/config_loader.server.d.ts +44 -0
  252. package/dist/lib/config/config_loader.server.d.ts.map +1 -0
  253. package/dist/lib/config/config_loader.server.js +122 -0
  254. package/dist/lib/email_verification_config.server.d.ts +14 -0
  255. package/dist/lib/email_verification_config.server.d.ts.map +1 -0
  256. package/dist/lib/email_verification_config.server.js +20 -0
  257. package/dist/lib/file_types_config.server.d.ts +11 -0
  258. package/dist/lib/file_types_config.server.d.ts.map +1 -0
  259. package/dist/lib/file_types_config.server.js +16 -0
  260. package/dist/lib/forgot_password_config.server.d.ts +14 -0
  261. package/dist/lib/forgot_password_config.server.d.ts.map +1 -0
  262. package/dist/lib/forgot_password_config.server.js +20 -0
  263. package/dist/lib/hazo_connect_instance.server.d.ts +17 -0
  264. package/dist/lib/hazo_connect_instance.server.d.ts.map +1 -0
  265. package/dist/lib/hazo_connect_instance.server.js +88 -0
  266. package/dist/lib/hazo_connect_setup.d.ts +2 -0
  267. package/dist/lib/hazo_connect_setup.d.ts.map +1 -0
  268. package/dist/lib/hazo_connect_setup.js +49 -0
  269. package/dist/lib/hazo_connect_setup.server.d.ts +20 -0
  270. package/dist/lib/hazo_connect_setup.server.d.ts.map +1 -0
  271. package/dist/lib/hazo_connect_setup.server.js +138 -0
  272. package/dist/lib/index.d.ts +28 -0
  273. package/dist/lib/index.d.ts.map +1 -0
  274. package/dist/lib/index.js +35 -0
  275. package/dist/lib/login_config.server.d.ts +20 -0
  276. package/dist/lib/login_config.server.d.ts.map +1 -0
  277. package/dist/lib/login_config.server.js +37 -0
  278. package/dist/lib/messages_config.server.d.ts +13 -0
  279. package/dist/lib/messages_config.server.d.ts.map +1 -0
  280. package/dist/lib/messages_config.server.js +18 -0
  281. package/dist/lib/migrations/apply_migration.d.ts +22 -0
  282. package/dist/lib/migrations/apply_migration.d.ts.map +1 -0
  283. package/dist/lib/migrations/apply_migration.js +78 -0
  284. package/dist/lib/my_settings_config.server.d.ts +65 -0
  285. package/dist/lib/my_settings_config.server.d.ts.map +1 -0
  286. package/dist/lib/my_settings_config.server.js +67 -0
  287. package/dist/lib/password_requirements_config.server.d.ts +15 -0
  288. package/dist/lib/password_requirements_config.server.d.ts.map +1 -0
  289. package/dist/lib/password_requirements_config.server.js +26 -0
  290. package/dist/lib/profile_pic_menu_config.server.d.ts +26 -0
  291. package/dist/lib/profile_pic_menu_config.server.d.ts.map +1 -0
  292. package/dist/lib/profile_pic_menu_config.server.js +95 -0
  293. package/dist/lib/profile_picture_config.server.d.ts +16 -0
  294. package/dist/lib/profile_picture_config.server.d.ts.map +1 -0
  295. package/dist/lib/profile_picture_config.server.js +40 -0
  296. package/dist/lib/register_config.server.d.ts +24 -0
  297. package/dist/lib/register_config.server.d.ts.map +1 -0
  298. package/dist/lib/register_config.server.js +39 -0
  299. package/dist/lib/reset_password_config.server.d.ts +25 -0
  300. package/dist/lib/reset_password_config.server.d.ts.map +1 -0
  301. package/dist/lib/reset_password_config.server.js +38 -0
  302. package/dist/lib/services/email_service.d.ts +44 -0
  303. package/dist/lib/services/email_service.d.ts.map +1 -0
  304. package/dist/lib/services/email_service.js +480 -0
  305. package/dist/lib/services/email_verification_service.d.ts +35 -0
  306. package/dist/lib/services/email_verification_service.d.ts.map +1 -0
  307. package/dist/lib/services/email_verification_service.js +208 -0
  308. package/dist/lib/services/index.d.ts +13 -0
  309. package/dist/lib/services/index.d.ts.map +1 -0
  310. package/dist/lib/services/index.js +14 -0
  311. package/dist/lib/services/login_service.d.ts +20 -0
  312. package/dist/lib/services/login_service.d.ts.map +1 -0
  313. package/dist/lib/services/login_service.js +94 -0
  314. package/dist/lib/services/password_change_service.d.ts +19 -0
  315. package/dist/lib/services/password_change_service.d.ts.map +1 -0
  316. package/dist/lib/services/password_change_service.js +118 -0
  317. package/dist/lib/services/password_reset_service.d.ts +52 -0
  318. package/dist/lib/services/password_reset_service.d.ts.map +1 -0
  319. package/dist/lib/services/password_reset_service.js +318 -0
  320. package/dist/lib/services/profile_picture_remove_service.d.ts +15 -0
  321. package/dist/lib/services/profile_picture_remove_service.d.ts.map +1 -0
  322. package/dist/lib/services/profile_picture_remove_service.js +94 -0
  323. package/dist/lib/services/profile_picture_service.d.ts +45 -0
  324. package/dist/lib/services/profile_picture_service.d.ts.map +1 -0
  325. package/dist/lib/services/profile_picture_service.js +183 -0
  326. package/dist/lib/services/profile_picture_source_mapper.d.ts +23 -0
  327. package/dist/lib/services/profile_picture_source_mapper.d.ts.map +1 -0
  328. package/dist/lib/services/profile_picture_source_mapper.js +45 -0
  329. package/dist/lib/services/registration_service.d.ts +20 -0
  330. package/dist/lib/services/registration_service.d.ts.map +1 -0
  331. package/dist/lib/services/registration_service.js +147 -0
  332. package/dist/lib/services/token_service.d.ts +20 -0
  333. package/dist/lib/services/token_service.d.ts.map +1 -0
  334. package/dist/lib/services/token_service.js +201 -0
  335. package/dist/lib/services/user_profiles_service.d.ts +31 -0
  336. package/dist/lib/services/user_profiles_service.d.ts.map +1 -0
  337. package/dist/lib/services/user_profiles_service.js +99 -0
  338. package/dist/lib/services/user_update_service.d.ts +23 -0
  339. package/dist/lib/services/user_update_service.d.ts.map +1 -0
  340. package/dist/lib/services/user_update_service.js +103 -0
  341. package/dist/lib/ui_shell_config.server.d.ts +16 -0
  342. package/dist/lib/ui_shell_config.server.d.ts.map +1 -0
  343. package/dist/lib/ui_shell_config.server.js +28 -0
  344. package/dist/lib/ui_sizes_config.server.d.ts +17 -0
  345. package/dist/lib/ui_sizes_config.server.d.ts.map +1 -0
  346. package/dist/lib/ui_sizes_config.server.js +22 -0
  347. package/dist/lib/user_fields_config.server.d.ts +13 -0
  348. package/dist/lib/user_fields_config.server.d.ts.map +1 -0
  349. package/dist/lib/user_fields_config.server.js +21 -0
  350. package/dist/lib/user_management_config.server.d.ts +10 -0
  351. package/dist/lib/user_management_config.server.d.ts.map +1 -0
  352. package/dist/lib/user_management_config.server.js +26 -0
  353. package/dist/lib/utils/api_route_helpers.d.ts +13 -0
  354. package/dist/lib/utils/api_route_helpers.d.ts.map +1 -0
  355. package/dist/lib/utils/api_route_helpers.js +58 -0
  356. package/dist/lib/utils/error_sanitizer.d.ts +16 -0
  357. package/dist/lib/utils/error_sanitizer.d.ts.map +1 -0
  358. package/dist/lib/utils/error_sanitizer.js +39 -0
  359. package/dist/lib/utils.d.ts +4 -0
  360. package/dist/lib/utils.d.ts.map +1 -0
  361. package/dist/lib/utils.js +9 -0
  362. package/dist/server/config/config_loader.d.ts +26 -0
  363. package/dist/server/config/config_loader.d.ts.map +1 -0
  364. package/dist/server/config/config_loader.js +329 -0
  365. package/dist/server/index.d.ts +2 -0
  366. package/dist/server/index.d.ts.map +1 -0
  367. package/dist/server/index.js +32 -0
  368. package/dist/server/logging/logger_service.d.ts +3 -0
  369. package/dist/server/logging/logger_service.d.ts.map +1 -0
  370. package/dist/server/logging/logger_service.js +37 -0
  371. package/dist/server/routes/root_router.d.ts +3 -0
  372. package/dist/server/routes/root_router.d.ts.map +1 -0
  373. package/dist/server/routes/root_router.js +14 -0
  374. package/dist/server/server.d.ts +3 -0
  375. package/dist/server/server.d.ts.map +1 -0
  376. package/dist/server/server.js +25 -0
  377. package/dist/server/types/app_types.d.ts +53 -0
  378. package/dist/server/types/app_types.d.ts.map +1 -0
  379. package/dist/server/types/app_types.js +1 -0
  380. package/migrations/003_add_url_on_logon_to_hazo_users.sql +8 -0
  381. package/next.config.mjs +12 -0
  382. package/package.json +39 -2
  383. package/scripts/init_users.ts +9 -9
  384. package/src/components/index.ts +7 -0
  385. package/src/components/layouts/email_verification/config/email_verification_field_config.ts +2 -2
  386. package/src/components/layouts/email_verification/hooks/use_email_verification.ts +3 -3
  387. package/src/components/layouts/email_verification/index.tsx +11 -11
  388. package/src/components/layouts/forgot_password/config/forgot_password_field_config.ts +2 -2
  389. package/src/components/layouts/forgot_password/hooks/use_forgot_password_form.ts +3 -3
  390. package/src/components/layouts/forgot_password/index.tsx +10 -10
  391. package/src/components/layouts/index.ts +26 -0
  392. package/src/components/layouts/login/config/login_field_config.ts +2 -2
  393. package/src/components/layouts/login/hooks/use_login_form.ts +5 -5
  394. package/src/components/layouts/login/index.tsx +11 -11
  395. package/src/components/layouts/my_settings/components/editable_field.tsx +3 -3
  396. package/src/components/layouts/my_settings/components/password_change_dialog.tsx +5 -5
  397. package/src/components/layouts/my_settings/components/profile_picture_dialog.tsx +7 -7
  398. package/src/components/layouts/my_settings/components/profile_picture_display.tsx +2 -2
  399. package/src/components/layouts/my_settings/components/profile_picture_gravatar_tab.tsx +3 -3
  400. package/src/components/layouts/my_settings/components/profile_picture_library_tab.tsx +5 -5
  401. package/src/components/layouts/my_settings/components/profile_picture_upload_tab.tsx +4 -4
  402. package/src/components/layouts/my_settings/config/my_settings_field_config.ts +2 -2
  403. package/src/components/layouts/my_settings/hooks/use_my_settings.ts +2 -2
  404. package/src/components/layouts/my_settings/index.tsx +10 -10
  405. package/src/components/layouts/register/config/register_field_config.ts +2 -2
  406. package/src/components/layouts/register/hooks/use_register_form.ts +4 -4
  407. package/src/components/layouts/register/index.tsx +11 -11
  408. package/src/components/layouts/reset_password/config/reset_password_field_config.ts +2 -2
  409. package/src/components/layouts/reset_password/hooks/use_reset_password_form.ts +4 -4
  410. package/src/components/layouts/reset_password/index.tsx +10 -10
  411. package/src/components/layouts/shared/components/already_logged_in_guard.tsx +4 -4
  412. package/src/components/layouts/shared/components/auth_page_shell.tsx +3 -3
  413. package/src/components/layouts/shared/components/form_action_buttons.tsx +2 -2
  414. package/src/components/layouts/shared/components/form_field_wrapper.tsx +2 -2
  415. package/src/components/layouts/shared/components/logout_button.tsx +2 -2
  416. package/src/components/layouts/shared/components/password_field.tsx +3 -3
  417. package/src/components/layouts/shared/components/profile_pic_menu.tsx +5 -5
  418. package/src/components/layouts/shared/components/profile_pic_menu_wrapper.tsx +2 -2
  419. package/src/components/layouts/shared/components/sidebar_layout_wrapper.tsx +3 -3
  420. package/src/components/layouts/shared/components/standalone_layout_wrapper.tsx +1 -1
  421. package/src/components/layouts/shared/components/two_column_auth_layout.tsx +1 -1
  422. package/src/components/layouts/shared/components/unauthorized_guard.tsx +2 -2
  423. package/src/components/layouts/shared/hooks/use_hazo_auth.ts +1 -1
  424. package/src/components/layouts/shared/index.ts +34 -0
  425. package/src/components/layouts/shared/utils/validation.ts +1 -1
  426. package/src/components/layouts/user_management/components/roles_matrix.tsx +7 -7
  427. package/src/components/layouts/user_management/index.tsx +11 -11
  428. package/src/components/ui/alert-dialog.tsx +2 -2
  429. package/src/components/ui/avatar.tsx +1 -1
  430. package/src/components/ui/button.tsx +1 -1
  431. package/src/components/ui/checkbox.tsx +1 -1
  432. package/src/components/ui/dialog.tsx +1 -1
  433. package/src/components/ui/dropdown-menu.tsx +1 -1
  434. package/src/components/ui/hazo_ui_tooltip.tsx +1 -1
  435. package/src/components/ui/index.ts +22 -0
  436. package/src/components/ui/input.tsx +1 -1
  437. package/src/components/ui/label.tsx +1 -1
  438. package/src/components/ui/separator.tsx +1 -1
  439. package/src/components/ui/sheet.tsx +1 -1
  440. package/src/components/ui/sidebar.tsx +8 -8
  441. package/src/components/ui/skeleton.tsx +1 -1
  442. package/src/components/ui/switch.tsx +1 -1
  443. package/src/components/ui/table.tsx +1 -1
  444. package/src/components/ui/tabs.tsx +1 -1
  445. package/src/components/ui/tooltip.tsx +1 -1
  446. package/src/components/ui/vertical-tabs.tsx +1 -1
  447. package/src/index.ts +7 -0
  448. package/src/lib/already_logged_in_config.server.ts +1 -1
  449. package/src/lib/app_logger.ts +1 -1
  450. package/src/lib/auth/auth_cache.ts +1 -1
  451. package/src/lib/auth/auth_utils.server.ts +2 -2
  452. package/src/lib/auth/hazo_get_auth.server.ts +8 -8
  453. package/src/lib/auth/index.ts +23 -0
  454. package/src/lib/auth/server_auth.ts +2 -2
  455. package/src/lib/auth_utility_config.server.ts +1 -1
  456. package/src/lib/config/config_loader.server.ts +1 -1
  457. package/src/lib/email_verification_config.server.ts +1 -1
  458. package/src/lib/file_types_config.server.ts +1 -1
  459. package/src/lib/forgot_password_config.server.ts +1 -1
  460. package/src/lib/hazo_connect_instance.server.ts +2 -2
  461. package/src/lib/hazo_connect_setup.server.ts +2 -2
  462. package/src/lib/index.ts +44 -0
  463. package/src/lib/login_config.server.ts +2 -2
  464. package/src/lib/messages_config.server.ts +1 -1
  465. package/src/lib/my_settings_config.server.ts +7 -7
  466. package/src/lib/password_requirements_config.server.ts +1 -1
  467. package/src/lib/profile_pic_menu_config.server.ts +1 -1
  468. package/src/lib/profile_picture_config.server.ts +2 -2
  469. package/src/lib/register_config.server.ts +4 -4
  470. package/src/lib/reset_password_config.server.ts +3 -3
  471. package/src/lib/services/email_service.ts +2 -2
  472. package/src/lib/services/email_verification_service.ts +3 -3
  473. package/src/lib/services/index.ts +15 -0
  474. package/src/lib/services/login_service.ts +3 -3
  475. package/src/lib/services/password_change_service.ts +3 -3
  476. package/src/lib/services/password_reset_service.ts +3 -3
  477. package/src/lib/services/profile_picture_remove_service.ts +3 -3
  478. package/src/lib/services/profile_picture_service.ts +5 -5
  479. package/src/lib/services/registration_service.ts +8 -8
  480. package/src/lib/services/token_service.ts +2 -2
  481. package/src/lib/services/user_profiles_service.ts +2 -2
  482. package/src/lib/services/user_update_service.ts +4 -4
  483. package/src/lib/ui_shell_config.server.ts +1 -1
  484. package/src/lib/ui_sizes_config.server.ts +1 -1
  485. package/src/lib/user_fields_config.server.ts +1 -1
  486. package/src/lib/user_management_config.server.ts +1 -2
  487. package/src/lib/utils/error_sanitizer.ts +1 -1
  488. package/src/routes/index.ts +34 -0
  489. package/src/server/config/config_loader.ts +2 -2
  490. package/src/server/index.ts +2 -2
  491. package/src/server/logging/logger_service.ts +1 -1
  492. package/src/server/server.ts +2 -2
  493. package/src/server/types/express.d.ts +1 -1
  494. package/tsconfig.build.json +39 -0
  495. package/tsconfig.json +5 -1
@@ -3,10 +3,10 @@
3
3
  import { useCallback, useMemo, useState, useEffect } from "react";
4
4
  import { useSearchParams, useRouter } from "next/navigation";
5
5
  import { toast } from "sonner";
6
- import type { LayoutDataClient } from "../../shared/data/layout_data_client";
7
- import type { PasswordRequirementOptions } from "../../shared/config/layout_customization";
8
- import { RESET_PASSWORD_FIELD_IDS, type ResetPasswordFieldId } from "../config/reset_password_field_config";
9
- import { validatePassword } from "../../shared/utils/validation";
6
+ import type { LayoutDataClient } from "hazo_auth/components/layouts/shared/data/layout_data_client";
7
+ import type { PasswordRequirementOptions } from "hazo_auth/components/layouts/shared/config/layout_customization";
8
+ import { RESET_PASSWORD_FIELD_IDS, type ResetPasswordFieldId } from "hazo_auth/components/layouts/reset_password/config/reset_password_field_config";
9
+ import { validatePassword } from "hazo_auth/components/layouts/shared/utils/validation";
10
10
 
11
11
  // section: constants
12
12
  const PASSWORD_FIELDS: Array<ResetPasswordFieldId> = [
@@ -3,31 +3,31 @@
3
3
  "use client";
4
4
 
5
5
  // section: imports
6
- import { PasswordField } from "../shared/components/password_field";
7
- import { FormFieldWrapper } from "../shared/components/form_field_wrapper";
8
- import { FormHeader } from "../shared/components/form_header";
9
- import { FormActionButtons } from "../shared/components/form_action_buttons";
10
- import { TwoColumnAuthLayout } from "../shared/components/two_column_auth_layout";
6
+ import { PasswordField } from "hazo_auth/components/layouts/shared/components/password_field";
7
+ import { FormFieldWrapper } from "hazo_auth/components/layouts/shared/components/form_field_wrapper";
8
+ import { FormHeader } from "hazo_auth/components/layouts/shared/components/form_header";
9
+ import { FormActionButtons } from "hazo_auth/components/layouts/shared/components/form_action_buttons";
10
+ import { TwoColumnAuthLayout } from "hazo_auth/components/layouts/shared/components/two_column_auth_layout";
11
11
  import { CheckCircle, XCircle, Loader2 } from "lucide-react";
12
- import { AlreadyLoggedInGuard } from "../shared/components/already_logged_in_guard";
12
+ import { AlreadyLoggedInGuard } from "hazo_auth/components/layouts/shared/components/already_logged_in_guard";
13
13
  import {
14
14
  type ButtonPaletteOverrides,
15
15
  type LayoutFieldMapOverrides,
16
16
  type LayoutLabelOverrides,
17
17
  type PasswordRequirementOverrides,
18
- } from "../shared/config/layout_customization";
18
+ } from "hazo_auth/components/layouts/shared/config/layout_customization";
19
19
  import {
20
20
  RESET_PASSWORD_FIELD_IDS,
21
21
  createResetPasswordFieldDefinitions,
22
22
  resolveResetPasswordButtonPalette,
23
23
  resolveResetPasswordLabels,
24
24
  resolveResetPasswordPasswordRequirements,
25
- } from "./config/reset_password_field_config";
25
+ } from "hazo_auth/components/layouts/reset_password/config/reset_password_field_config";
26
26
  import {
27
27
  use_reset_password_form,
28
28
  type UseResetPasswordFormResult,
29
- } from "./hooks/use_reset_password_form";
30
- import { type LayoutDataClient } from "../shared/data/layout_data_client";
29
+ } from "hazo_auth/components/layouts/reset_password/hooks/use_reset_password_form";
30
+ import { type LayoutDataClient } from "hazo_auth/components/layouts/shared/data/layout_data_client";
31
31
  import Link from "next/link";
32
32
 
33
33
  // section: types
@@ -3,10 +3,10 @@
3
3
  "use client";
4
4
 
5
5
  // section: imports
6
- import { use_auth_status } from "../hooks/use_auth_status";
7
- import { LogoutButton } from "./logout_button";
8
- import { Button } from "../../../ui/button";
9
- import { TwoColumnAuthLayout } from "./two_column_auth_layout";
6
+ import { use_auth_status } from "hazo_auth/components/layouts/shared/hooks/use_auth_status";
7
+ import { LogoutButton } from "hazo_auth/components/layouts/shared/components/logout_button";
8
+ import { Button } from "hazo_auth/components/ui/button";
9
+ import { TwoColumnAuthLayout } from "hazo_auth/components/layouts/shared/components/two_column_auth_layout";
10
10
  import { useRouter } from "next/navigation";
11
11
  import { Home } from "lucide-react";
12
12
 
@@ -1,9 +1,9 @@
1
1
  // file_description: server component that chooses between sidebar shell and standalone shell
2
2
  // section: imports
3
3
  import type { ReactNode } from "react";
4
- import { SidebarLayoutWrapper } from "./sidebar_layout_wrapper";
5
- import { StandaloneLayoutWrapper } from "./standalone_layout_wrapper";
6
- import { get_ui_shell_config } from "../../../../lib/ui_shell_config.server";
4
+ import { SidebarLayoutWrapper } from "hazo_auth/components/layouts/shared/components/sidebar_layout_wrapper";
5
+ import { StandaloneLayoutWrapper } from "hazo_auth/components/layouts/shared/components/standalone_layout_wrapper";
6
+ import { get_ui_shell_config } from "hazo_auth/lib/ui_shell_config.server";
7
7
 
8
8
  // section: types
9
9
  type AuthPageShellProps = {
@@ -1,8 +1,8 @@
1
1
  // file_description: reusable form action buttons component with submit (positive, left) and cancel (negative, right) buttons
2
2
  // section: imports
3
3
  import { CircleCheckBig, CircleX } from "lucide-react";
4
- import { Button } from "../../../ui/button";
5
- import type { ButtonPaletteDefaults } from "../config/layout_customization";
4
+ import { Button } from "hazo_auth/components/ui/button";
5
+ import type { ButtonPaletteDefaults } from "hazo_auth/components/layouts/shared/config/layout_customization";
6
6
 
7
7
  // section: types
8
8
  type FormActionButtonsProps = {
@@ -1,7 +1,7 @@
1
1
  // file_description: reusable wrapper component for form fields that standardizes label, input, and error message structure
2
2
  // section: imports
3
- import { Label } from "../../../ui/label";
4
- import { FieldErrorMessage } from "./field_error_message";
3
+ import { Label } from "hazo_auth/components/ui/label";
4
+ import { FieldErrorMessage } from "hazo_auth/components/layouts/shared/components/field_error_message";
5
5
 
6
6
  // section: types
7
7
  type FormFieldWrapperProps = {
@@ -5,10 +5,10 @@
5
5
  // section: imports
6
6
  import { useState } from "react";
7
7
  import { useRouter } from "next/navigation";
8
- import { Button } from "../../../ui/button";
8
+ import { Button } from "hazo_auth/components/ui/button";
9
9
  import { LogOut } from "lucide-react";
10
10
  import { toast } from "sonner";
11
- import { trigger_auth_status_refresh } from "../hooks/use_auth_status";
11
+ import { trigger_auth_status_refresh } from "hazo_auth/components/layouts/shared/hooks/use_auth_status";
12
12
 
13
13
  // section: types
14
14
  export type LogoutButtonProps = {
@@ -4,9 +4,9 @@
4
4
 
5
5
  // section: imports
6
6
  import { Eye, EyeOff } from "lucide-react";
7
- import { Button } from "../../../ui/button";
8
- import { Input } from "../../../ui/input";
9
- import { FieldErrorMessage } from "./field_error_message";
7
+ import { Button } from "hazo_auth/components/ui/button";
8
+ import { Input } from "hazo_auth/components/ui/input";
9
+ import { FieldErrorMessage } from "hazo_auth/components/layouts/shared/components/field_error_message";
10
10
 
11
11
  // section: types
12
12
  export type PasswordFieldProps = {
@@ -6,20 +6,20 @@
6
6
  import { useState, useMemo } from "react";
7
7
  import { useRouter } from "next/navigation";
8
8
  import Link from "next/link";
9
- import { Avatar, AvatarImage, AvatarFallback } from "../../../ui/avatar";
10
- import { Button } from "../../../ui/button";
9
+ import { Avatar, AvatarImage, AvatarFallback } from "hazo_auth/components/ui/avatar";
10
+ import { Button } from "hazo_auth/components/ui/button";
11
11
  import {
12
12
  DropdownMenu,
13
13
  DropdownMenuContent,
14
14
  DropdownMenuItem,
15
15
  DropdownMenuSeparator,
16
16
  DropdownMenuTrigger,
17
- } from "../../../ui/dropdown-menu";
17
+ } from "hazo_auth/components/ui/dropdown-menu";
18
18
  import { Settings, LogOut } from "lucide-react";
19
19
  import { toast } from "sonner";
20
- import { use_auth_status, trigger_auth_status_refresh } from "../hooks/use_auth_status";
20
+ import { use_auth_status, trigger_auth_status_refresh } from "hazo_auth/components/layouts/shared/hooks/use_auth_status";
21
21
  // Type-only import from server file is safe (types are erased at runtime)
22
- import type { ProfilePicMenuMenuItem } from "../../../../lib/profile_pic_menu_config.server";
22
+ import type { ProfilePicMenuMenuItem } from "hazo_auth/lib/profile_pic_menu_config.server";
23
23
 
24
24
  // section: types
25
25
  export type ProfilePicMenuProps = {
@@ -1,7 +1,7 @@
1
1
  // file_description: server wrapper component that loads profile picture menu configuration and passes to client component
2
2
  // section: imports
3
- import { ProfilePicMenu } from "./profile_pic_menu";
4
- import { get_profile_pic_menu_config } from "../../../../lib/profile_pic_menu_config.server";
3
+ import { ProfilePicMenu } from "hazo_auth/components/layouts/shared/components/profile_pic_menu";
4
+ import { get_profile_pic_menu_config } from "hazo_auth/lib/profile_pic_menu_config.server";
5
5
 
6
6
  // section: types
7
7
  export type ProfilePicMenuWrapperProps = {
@@ -16,10 +16,10 @@ import {
16
16
  SidebarProvider,
17
17
  SidebarTrigger,
18
18
  SidebarInset,
19
- } from "../../../ui/sidebar";
19
+ } from "hazo_auth/components/ui/sidebar";
20
20
  import { LogIn, UserPlus, BookOpen, ExternalLink, Database, KeyRound, MailCheck, Key, Settings, User } from "lucide-react";
21
- import { use_auth_status } from "../hooks/use_auth_status";
22
- import { ProfilePicMenu } from "./profile_pic_menu";
21
+ import { use_auth_status } from "hazo_auth/components/layouts/shared/hooks/use_auth_status";
22
+ import { ProfilePicMenu } from "hazo_auth/components/layouts/shared/components/profile_pic_menu";
23
23
 
24
24
  // section: types
25
25
  type SidebarLayoutWrapperProps = {
@@ -3,7 +3,7 @@
3
3
  "use client";
4
4
 
5
5
  // section: imports
6
- import { cn } from "../../../../lib/utils";
6
+ import { cn } from "hazo_auth/lib/utils";
7
7
 
8
8
  // section: types
9
9
  export type StandaloneLayoutWrapperProps = {
@@ -1,6 +1,6 @@
1
1
  // file_description: reusable two-column authentication layout shell that combines visual panel and form content
2
2
  // section: imports
3
- import { VisualPanel } from "./visual_panel";
3
+ import { VisualPanel } from "hazo_auth/components/layouts/shared/components/visual_panel";
4
4
 
5
5
  // section: types
6
6
  type TwoColumnAuthLayoutProps = {
@@ -3,8 +3,8 @@
3
3
  "use client";
4
4
 
5
5
  // section: imports
6
- import { use_auth_status } from "../hooks/use_auth_status";
7
- import { Button } from "../../../ui/button";
6
+ import { use_auth_status } from "hazo_auth/components/layouts/shared/hooks/use_auth_status";
7
+ import { Button } from "hazo_auth/components/ui/button";
8
8
  import { useRouter } from "next/navigation";
9
9
  import { LogIn } from "lucide-react";
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  // section: imports
6
6
  import { useState, useEffect, useCallback } from "react";
7
- import type { HazoAuthResult } from "../../../../lib/auth/auth_types";
7
+ import type { HazoAuthResult } from "hazo_auth/lib/auth/auth_types";
8
8
 
9
9
  // section: types
10
10
 
@@ -0,0 +1,34 @@
1
+ // file_description: barrel export for shared layout components, hooks, and utilities
2
+ // section: component_exports
3
+ export { AlreadyLoggedInGuard } from "./components/already_logged_in_guard";
4
+ export { AuthPageShell } from "./components/auth_page_shell";
5
+ export { FieldErrorMessage } from "./components/field_error_message";
6
+ export { FormActionButtons } from "./components/form_action_buttons";
7
+ export { FormFieldWrapper } from "./components/form_field_wrapper";
8
+ export { FormHeader } from "./components/form_header";
9
+ export { LogoutButton } from "./components/logout_button";
10
+ export { PasswordField } from "./components/password_field";
11
+ export { ProfilePicMenuWrapper } from "./components/profile_pic_menu_wrapper";
12
+ export { ProfilePicMenu } from "./components/profile_pic_menu";
13
+ export { SidebarLayoutWrapper } from "./components/sidebar_layout_wrapper";
14
+ export { StandaloneLayoutWrapper } from "./components/standalone_layout_wrapper";
15
+ export { TwoColumnAuthLayout } from "./components/two_column_auth_layout";
16
+ export { UnauthorizedGuard } from "./components/unauthorized_guard";
17
+ export { VisualPanel } from "./components/visual_panel";
18
+
19
+ // section: hook_exports
20
+ export { use_auth_status } from "./hooks/use_auth_status";
21
+ export { use_hazo_auth, trigger_hazo_auth_refresh } from "./hooks/use_hazo_auth";
22
+ export type { UseHazoAuthOptions, UseHazoAuthResult } from "./hooks/use_hazo_auth";
23
+
24
+ // section: config_exports
25
+ export * from "./config/layout_customization";
26
+
27
+ // section: data_exports
28
+ export { createLayoutDataClient } from "./data/layout_data_client";
29
+ export type { LayoutDataClient } from "./data/layout_data_client";
30
+
31
+ // section: utility_exports
32
+ export { get_client_ip } from "./utils/ip_address";
33
+ export * from "./utils/validation";
34
+
@@ -1,6 +1,6 @@
1
1
  // file_description: provide shared validation utilities for email and password fields across layout components
2
2
  // section: imports
3
- import type { PasswordRequirementOptions } from "../config/layout_customization";
3
+ import type { PasswordRequirementOptions } from "hazo_auth/components/layouts/shared/config/layout_customization";
4
4
 
5
5
  // section: constants
6
6
  const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
@@ -4,8 +4,8 @@
4
4
 
5
5
  // section: imports
6
6
  import { useState, useEffect, useMemo } from "react";
7
- import { Button } from "../../../ui/button";
8
- import { Checkbox } from "../../../ui/checkbox";
7
+ import { Button } from "hazo_auth/components/ui/button";
8
+ import { Checkbox } from "hazo_auth/components/ui/checkbox";
9
9
  import {
10
10
  Table,
11
11
  TableBody,
@@ -13,7 +13,7 @@ import {
13
13
  TableHead,
14
14
  TableHeader,
15
15
  TableRow,
16
- } from "../../../ui/table";
16
+ } from "hazo_auth/components/ui/table";
17
17
  import {
18
18
  Dialog,
19
19
  DialogContent,
@@ -21,12 +21,12 @@ import {
21
21
  DialogFooter,
22
22
  DialogHeader,
23
23
  DialogTitle,
24
- } from "../../../ui/dialog";
25
- import { Input } from "../../../ui/input";
26
- import { Label } from "../../../ui/label";
24
+ } from "hazo_auth/components/ui/dialog";
25
+ import { Input } from "hazo_auth/components/ui/input";
26
+ import { Label } from "hazo_auth/components/ui/label";
27
27
  import { Plus, Save, Loader2, CircleCheck, CircleX } from "lucide-react";
28
28
  import { toast } from "sonner";
29
- import { Avatar, AvatarImage, AvatarFallback } from "../../../ui/avatar";
29
+ import { Avatar, AvatarImage, AvatarFallback } from "hazo_auth/components/ui/avatar";
30
30
 
31
31
  // section: types
32
32
  export type RolesMatrixData = {
@@ -4,8 +4,8 @@
4
4
 
5
5
  // section: imports
6
6
  import { useState, useEffect, useCallback } from "react";
7
- import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../ui/tabs";
8
- import { use_hazo_auth } from "../shared/hooks/use_hazo_auth";
7
+ import { Tabs, TabsContent, TabsList, TabsTrigger } from "hazo_auth/components/ui/tabs";
8
+ import { use_hazo_auth } from "hazo_auth/components/layouts/shared/hooks/use_hazo_auth";
9
9
  import {
10
10
  Table,
11
11
  TableBody,
@@ -13,9 +13,9 @@ import {
13
13
  TableHead,
14
14
  TableHeader,
15
15
  TableRow,
16
- } from "../../ui/table";
17
- import { Button } from "../../ui/button";
18
- import { Avatar, AvatarImage, AvatarFallback } from "../../ui/avatar";
16
+ } from "hazo_auth/components/ui/table";
17
+ import { Button } from "hazo_auth/components/ui/button";
18
+ import { Avatar, AvatarImage, AvatarFallback } from "hazo_auth/components/ui/avatar";
19
19
  import {
20
20
  AlertDialog,
21
21
  AlertDialogAction,
@@ -25,7 +25,7 @@ import {
25
25
  AlertDialogFooter,
26
26
  AlertDialogHeader,
27
27
  AlertDialogTitle,
28
- } from "../../ui/alert-dialog";
28
+ } from "hazo_auth/components/ui/alert-dialog";
29
29
  import {
30
30
  Dialog,
31
31
  DialogContent,
@@ -33,13 +33,13 @@ import {
33
33
  DialogFooter,
34
34
  DialogHeader,
35
35
  DialogTitle,
36
- } from "../../ui/dialog";
37
- import { Input } from "../../ui/input";
38
- import { Label } from "../../ui/label";
39
- import { RolesMatrix } from "./components/roles_matrix";
36
+ } from "hazo_auth/components/ui/dialog";
37
+ import { Input } from "hazo_auth/components/ui/input";
38
+ import { Label } from "hazo_auth/components/ui/label";
39
+ import { RolesMatrix } from "hazo_auth/components/layouts/user_management/components/roles_matrix";
40
40
  import { UserX, KeyRound, Edit, Trash2, Loader2, CircleCheck, CircleX, Plus, UserPlus } from "lucide-react";
41
41
  import { toast } from "sonner";
42
- import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../ui/tooltip";
42
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "hazo_auth/components/ui/tooltip";
43
43
 
44
44
  // section: types
45
45
  export type UserManagementLayoutProps = {
@@ -3,8 +3,8 @@
3
3
  import * as React from "react"
4
4
  import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"
5
5
 
6
- import { cn } from "../../lib/utils"
7
- import { buttonVariants } from "./button"
6
+ import { cn } from "hazo_auth/lib/utils"
7
+ import { buttonVariants } from "hazo_auth/components/ui/button"
8
8
 
9
9
  const AlertDialog = AlertDialogPrimitive.Root
10
10
 
@@ -3,7 +3,7 @@
3
3
  import * as React from "react"
4
4
  import * as AvatarPrimitive from "@radix-ui/react-avatar"
5
5
 
6
- import { cn } from "../../lib/utils"
6
+ import { cn } from "hazo_auth/lib/utils"
7
7
 
8
8
  const Avatar = React.forwardRef<
9
9
  React.ElementRef<typeof AvatarPrimitive.Root>,
@@ -2,7 +2,7 @@ import * as React from "react"
2
2
  import { Slot } from "@radix-ui/react-slot"
3
3
  import { cva, type VariantProps } from "class-variance-authority"
4
4
 
5
- import { cn } from "../../lib/utils"
5
+ import { cn } from "hazo_auth/lib/utils"
6
6
 
7
7
  const buttonVariants = cva(
8
8
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
@@ -4,7 +4,7 @@ import * as React from "react"
4
4
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
5
5
  import { Check } from "lucide-react"
6
6
 
7
- import { cn } from "../../lib/utils"
7
+ import { cn } from "hazo_auth/lib/utils"
8
8
 
9
9
  const Checkbox = React.forwardRef<
10
10
  React.ElementRef<typeof CheckboxPrimitive.Root>,
@@ -4,7 +4,7 @@ import * as React from "react"
4
4
  import * as DialogPrimitive from "@radix-ui/react-dialog"
5
5
  import { X } from "lucide-react"
6
6
 
7
- import { cn } from "../../lib/utils"
7
+ import { cn } from "hazo_auth/lib/utils"
8
8
 
9
9
  const Dialog = DialogPrimitive.Root
10
10
 
@@ -4,7 +4,7 @@ import * as React from "react"
4
4
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
5
5
  import { Check, ChevronRight, Circle } from "lucide-react"
6
6
 
7
- import { cn } from "../../lib/utils"
7
+ import { cn } from "hazo_auth/lib/utils"
8
8
 
9
9
  const DropdownMenu = DropdownMenuPrimitive.Root
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  // section: imports
6
6
  import { HelpCircle } from "lucide-react";
7
- import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip";
7
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "hazo_auth/components/ui/tooltip";
8
8
 
9
9
  // section: types
10
10
  export type HazoUITooltipProps = {
@@ -0,0 +1,22 @@
1
+ // file_description: barrel export for all UI components
2
+ // section: exports
3
+ export * from "./alert-dialog";
4
+ export * from "./avatar";
5
+ export * from "./button";
6
+ export * from "./checkbox";
7
+ export * from "./dialog";
8
+ export * from "./dropdown-menu";
9
+ export * from "./hazo_ui_tooltip";
10
+ export * from "./input";
11
+ export * from "./label";
12
+ export * from "./separator";
13
+ export * from "./sheet";
14
+ export * from "./sidebar";
15
+ export * from "./skeleton";
16
+ export * from "./sonner";
17
+ export * from "./switch";
18
+ export * from "./table";
19
+ export * from "./tabs";
20
+ export * from "./tooltip";
21
+ export * from "./vertical-tabs";
22
+
@@ -1,6 +1,6 @@
1
1
  import * as React from "react"
2
2
 
3
- import { cn } from "../../lib/utils"
3
+ import { cn } from "hazo_auth/lib/utils"
4
4
 
5
5
  const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
6
6
  ({ className, type, ...props }, ref) => {
@@ -4,7 +4,7 @@ import * as React from "react"
4
4
  import * as LabelPrimitive from "@radix-ui/react-label"
5
5
  import { cva, type VariantProps } from "class-variance-authority"
6
6
 
7
- import { cn } from "../../lib/utils"
7
+ import { cn } from "hazo_auth/lib/utils"
8
8
 
9
9
  const labelVariants = cva(
10
10
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
@@ -3,7 +3,7 @@
3
3
  import * as React from "react"
4
4
  import * as SeparatorPrimitive from "@radix-ui/react-separator"
5
5
 
6
- import { cn } from "../../lib/utils"
6
+ import { cn } from "hazo_auth/lib/utils"
7
7
 
8
8
  const Separator = React.forwardRef<
9
9
  React.ElementRef<typeof SeparatorPrimitive.Root>,
@@ -5,7 +5,7 @@ import * as SheetPrimitive from "@radix-ui/react-dialog"
5
5
  import { cva, type VariantProps } from "class-variance-authority"
6
6
  import { X } from "lucide-react"
7
7
 
8
- import { cn } from "../../lib/utils"
8
+ import { cn } from "hazo_auth/lib/utils"
9
9
 
10
10
  const Sheet = SheetPrimitive.Root
11
11
 
@@ -5,25 +5,25 @@ import { Slot } from "@radix-ui/react-slot"
5
5
  import { cva, type VariantProps } from "class-variance-authority"
6
6
  import { PanelLeft } from "lucide-react"
7
7
 
8
- import { useIsMobile } from "../../hooks/use-mobile"
9
- import { cn } from "../../lib/utils"
10
- import { Button } from "./button"
11
- import { Input } from "./input"
12
- import { Separator } from "./separator"
8
+ import { useIsMobile } from "hazo_auth/hooks/use-mobile"
9
+ import { cn } from "hazo_auth/lib/utils"
10
+ import { Button } from "hazo_auth/components/ui/button"
11
+ import { Input } from "hazo_auth/components/ui/input"
12
+ import { Separator } from "hazo_auth/components/ui/separator"
13
13
  import {
14
14
  Sheet,
15
15
  SheetContent,
16
16
  SheetDescription,
17
17
  SheetHeader,
18
18
  SheetTitle,
19
- } from "./sheet"
20
- import { Skeleton } from "./skeleton"
19
+ } from "hazo_auth/components/ui/sheet"
20
+ import { Skeleton } from "hazo_auth/components/ui/skeleton"
21
21
  import {
22
22
  Tooltip,
23
23
  TooltipContent,
24
24
  TooltipProvider,
25
25
  TooltipTrigger,
26
- } from "./tooltip"
26
+ } from "hazo_auth/components/ui/tooltip"
27
27
 
28
28
  const SIDEBAR_COOKIE_NAME = "sidebar_state"
29
29
  const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7
@@ -1,4 +1,4 @@
1
- import { cn } from "../../lib/utils"
1
+ import { cn } from "hazo_auth/lib/utils"
2
2
 
3
3
  function Skeleton({
4
4
  className,
@@ -3,7 +3,7 @@
3
3
  import * as React from "react"
4
4
  import * as SwitchPrimitives from "@radix-ui/react-switch"
5
5
 
6
- import { cn } from "../../lib/utils"
6
+ import { cn } from "hazo_auth/lib/utils"
7
7
 
8
8
  const Switch = React.forwardRef<
9
9
  React.ElementRef<typeof SwitchPrimitives.Root>,
@@ -1,6 +1,6 @@
1
1
  import * as React from "react"
2
2
 
3
- import { cn } from "../../lib/utils"
3
+ import { cn } from "hazo_auth/lib/utils"
4
4
 
5
5
  const Table = React.forwardRef<
6
6
  HTMLTableElement,
@@ -3,7 +3,7 @@
3
3
  import * as React from "react"
4
4
  import * as TabsPrimitive from "@radix-ui/react-tabs"
5
5
 
6
- import { cn } from "../../lib/utils"
6
+ import { cn } from "hazo_auth/lib/utils"
7
7
 
8
8
  const Tabs = TabsPrimitive.Root
9
9
 
@@ -3,7 +3,7 @@
3
3
  import * as React from "react"
4
4
  import * as TooltipPrimitive from "@radix-ui/react-tooltip"
5
5
 
6
- import { cn } from "../../lib/utils"
6
+ import { cn } from "hazo_auth/lib/utils"
7
7
 
8
8
  const TooltipProvider = TooltipPrimitive.Provider
9
9
 
@@ -5,7 +5,7 @@
5
5
  // section: imports
6
6
  import * as React from "react";
7
7
  import * as TabsPrimitive from "@radix-ui/react-tabs";
8
- import { cn } from "../../lib/utils";
8
+ import { cn } from "hazo_auth/lib/utils";
9
9
 
10
10
  // section: components
11
11
  const VerticalTabs = TabsPrimitive.Root;
package/src/index.ts ADDED
@@ -0,0 +1,7 @@
1
+ // file_description: main entry point for hazo_auth package - exports all public APIs
2
+ // section: component_exports
3
+ export * from "./components/index";
4
+
5
+ // section: lib_exports
6
+ export * from "./lib/index";
7
+
@@ -1,6 +1,6 @@
1
1
  // file_description: server-only helper to read already logged in configuration from hazo_auth_config.ini
2
2
  // section: imports
3
- import { get_config_value, get_config_boolean } from "./config/config_loader.server";
3
+ import { get_config_value, get_config_boolean } from "hazo_auth/lib/config/config_loader.server";
4
4
 
5
5
  // section: types
6
6
  export type AlreadyLoggedInConfig = {
@@ -1,6 +1,6 @@
1
1
  // file_description: client-accessible wrapper for the main app logging service
2
2
  // section: imports
3
- import { create_logger_service } from "../server/logging/logger_service";
3
+ import { create_logger_service } from "hazo_auth/server/logging/logger_service";
4
4
 
5
5
  // section: constants
6
6
  const APP_NAMESPACE = "hazo_auth_ui";