hazo_auth 1.3.0 → 1.4.1
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.
- package/README.md +398 -773
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +5 -0
- package/dist/components/layouts/email_verification/config/email_verification_field_config.d.ts +23 -0
- package/dist/components/layouts/email_verification/config/email_verification_field_config.d.ts.map +1 -0
- package/dist/components/layouts/email_verification/config/email_verification_field_config.js +44 -0
- package/dist/components/layouts/email_verification/hooks/use_email_verification.d.ts +31 -0
- package/dist/components/layouts/email_verification/hooks/use_email_verification.d.ts.map +1 -0
- package/dist/components/layouts/email_verification/hooks/use_email_verification.js +222 -0
- package/dist/components/layouts/email_verification/index.d.ts +23 -0
- package/dist/components/layouts/email_verification/index.d.ts.map +1 -0
- package/dist/components/layouts/email_verification/index.js +61 -0
- package/dist/components/layouts/forgot_password/config/forgot_password_field_config.d.ts +10 -0
- package/dist/components/layouts/forgot_password/config/forgot_password_field_config.d.ts.map +1 -0
- package/dist/components/layouts/forgot_password/config/forgot_password_field_config.js +33 -0
- package/dist/components/layouts/forgot_password/hooks/use_forgot_password_form.d.ts +22 -0
- package/dist/components/layouts/forgot_password/hooks/use_forgot_password_form.d.ts.map +1 -0
- package/dist/components/layouts/forgot_password/hooks/use_forgot_password_form.js +127 -0
- package/dist/components/layouts/forgot_password/index.d.ts +18 -0
- package/dist/components/layouts/forgot_password/index.d.ts.map +1 -0
- package/dist/components/layouts/forgot_password/index.js +43 -0
- package/dist/components/layouts/index.d.ts +16 -0
- package/dist/components/layouts/index.d.ts.map +1 -0
- package/dist/components/layouts/index.js +11 -0
- package/dist/components/layouts/login/config/login_field_config.d.ts +11 -0
- package/dist/components/layouts/login/config/login_field_config.d.ts.map +1 -0
- package/dist/components/layouts/login/config/login_field_config.js +42 -0
- package/dist/components/layouts/login/hooks/use_login_form.d.ts +34 -0
- package/dist/components/layouts/login/hooks/use_login_form.d.ts.map +1 -0
- package/dist/components/layouts/login/hooks/use_login_form.js +196 -0
- package/dist/components/layouts/login/index.d.ts +31 -0
- package/dist/components/layouts/login/index.d.ts.map +1 -0
- package/dist/components/layouts/login/index.js +58 -0
- package/dist/components/layouts/my_settings/components/editable_field.d.ts +19 -0
- package/dist/components/layouts/my_settings/components/editable_field.d.ts.map +1 -0
- package/dist/components/layouts/my_settings/components/editable_field.js +73 -0
- package/dist/components/layouts/my_settings/components/password_change_dialog.d.ts +28 -0
- package/dist/components/layouts/my_settings/components/password_change_dialog.d.ts.map +1 -0
- package/dist/components/layouts/my_settings/components/password_change_dialog.js +138 -0
- package/dist/components/layouts/my_settings/components/profile_picture_dialog.d.ts +42 -0
- package/dist/components/layouts/my_settings/components/profile_picture_dialog.d.ts.map +1 -0
- package/dist/components/layouts/my_settings/components/profile_picture_dialog.js +198 -0
- package/dist/components/layouts/my_settings/components/profile_picture_display.d.ts +16 -0
- package/dist/components/layouts/my_settings/components/profile_picture_display.d.ts.map +1 -0
- package/dist/components/layouts/my_settings/components/profile_picture_display.js +33 -0
- package/dist/components/layouts/my_settings/components/profile_picture_gravatar_tab.d.ts +17 -0
- package/dist/components/layouts/my_settings/components/profile_picture_gravatar_tab.d.ts.map +1 -0
- package/dist/components/layouts/my_settings/components/profile_picture_gravatar_tab.js +48 -0
- package/dist/components/layouts/my_settings/components/profile_picture_library_tab.d.ts +21 -0
- package/dist/components/layouts/my_settings/components/profile_picture_library_tab.d.ts.map +1 -0
- package/dist/components/layouts/my_settings/components/profile_picture_library_tab.js +144 -0
- package/dist/components/layouts/my_settings/components/profile_picture_upload_tab.d.ts +23 -0
- package/dist/components/layouts/my_settings/components/profile_picture_upload_tab.d.ts.map +1 -0
- package/dist/components/layouts/my_settings/components/profile_picture_upload_tab.js +169 -0
- package/dist/components/layouts/my_settings/config/my_settings_field_config.d.ts +19 -0
- package/dist/components/layouts/my_settings/config/my_settings_field_config.d.ts.map +1 -0
- package/dist/components/layouts/my_settings/config/my_settings_field_config.js +26 -0
- package/dist/components/layouts/my_settings/hooks/use_my_settings.d.ts +46 -0
- package/dist/components/layouts/my_settings/hooks/use_my_settings.d.ts.map +1 -0
- package/dist/components/layouts/my_settings/hooks/use_my_settings.js +354 -0
- package/dist/components/layouts/my_settings/index.d.ts +64 -0
- package/dist/components/layouts/my_settings/index.d.ts.map +1 -0
- package/dist/components/layouts/my_settings/index.js +65 -0
- package/dist/components/layouts/register/config/register_field_config.d.ts +14 -0
- package/dist/components/layouts/register/config/register_field_config.d.ts.map +1 -0
- package/dist/components/layouts/register/config/register_field_config.js +69 -0
- package/dist/components/layouts/register/hooks/use_register_form.d.ts +30 -0
- package/dist/components/layouts/register/hooks/use_register_form.d.ts.map +1 -0
- package/dist/components/layouts/register/hooks/use_register_form.js +184 -0
- package/dist/components/layouts/register/index.d.ts +23 -0
- package/dist/components/layouts/register/index.d.ts.map +1 -0
- package/dist/components/layouts/register/index.js +58 -0
- package/dist/components/layouts/reset_password/config/reset_password_field_config.d.ts +13 -0
- package/dist/components/layouts/reset_password/config/reset_password_field_config.d.ts.map +1 -0
- package/dist/components/layouts/reset_password/config/reset_password_field_config.js +53 -0
- package/dist/components/layouts/reset_password/hooks/use_reset_password_form.d.ts +28 -0
- package/dist/components/layouts/reset_password/hooks/use_reset_password_form.d.ts.map +1 -0
- package/dist/components/layouts/reset_password/hooks/use_reset_password_form.js +201 -0
- package/dist/components/layouts/reset_password/index.d.ts +23 -0
- package/dist/components/layouts/reset_password/index.d.ts.map +1 -0
- package/dist/components/layouts/reset_password/index.js +53 -0
- package/dist/components/layouts/shared/components/already_logged_in_guard.d.ts +20 -0
- package/dist/components/layouts/shared/components/already_logged_in_guard.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/already_logged_in_guard.js +32 -0
- package/dist/components/layouts/shared/components/auth_page_shell.d.ts +7 -0
- package/dist/components/layouts/shared/components/auth_page_shell.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/auth_page_shell.js +12 -0
- package/dist/components/layouts/shared/components/field_error_message.d.ts +7 -0
- package/dist/components/layouts/shared/components/field_error_message.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/field_error_message.js +6 -0
- package/dist/components/layouts/shared/components/form_action_buttons.d.ts +14 -0
- package/dist/components/layouts/shared/components/form_action_buttons.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/form_action_buttons.js +15 -0
- package/dist/components/layouts/shared/components/form_field_wrapper.d.ts +11 -0
- package/dist/components/layouts/shared/components/form_field_wrapper.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/form_field_wrapper.js +9 -0
- package/dist/components/layouts/shared/components/form_header.d.ts +10 -0
- package/dist/components/layouts/shared/components/form_header.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/form_header.js +5 -0
- package/dist/components/layouts/shared/components/logout_button.d.ts +7 -0
- package/dist/components/layouts/shared/components/logout_button.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/logout_button.js +44 -0
- package/dist/components/layouts/shared/components/password_field.d.ts +13 -0
- package/dist/components/layouts/shared/components/password_field.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/password_field.js +13 -0
- package/dist/components/layouts/shared/components/profile_pic_menu.d.ts +22 -0
- package/dist/components/layouts/shared/components/profile_pic_menu.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/profile_pic_menu.js +169 -0
- package/dist/components/layouts/shared/components/profile_pic_menu_wrapper.d.ts +12 -0
- package/dist/components/layouts/shared/components/profile_pic_menu_wrapper.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/profile_pic_menu_wrapper.js +16 -0
- package/dist/components/layouts/shared/components/sidebar_layout_wrapper.d.ts +6 -0
- package/dist/components/layouts/shared/components/sidebar_layout_wrapper.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/sidebar_layout_wrapper.js +15 -0
- package/dist/components/layouts/shared/components/standalone_layout_wrapper.d.ts +11 -0
- package/dist/components/layouts/shared/components/standalone_layout_wrapper.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/standalone_layout_wrapper.js +10 -0
- package/dist/components/layouts/shared/components/two_column_auth_layout.d.ts +12 -0
- package/dist/components/layouts/shared/components/two_column_auth_layout.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/two_column_auth_layout.js +8 -0
- package/dist/components/layouts/shared/components/unauthorized_guard.d.ts +14 -0
- package/dist/components/layouts/shared/components/unauthorized_guard.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/unauthorized_guard.js +30 -0
- package/dist/components/layouts/shared/components/visual_panel.d.ts +9 -0
- package/dist/components/layouts/shared/components/visual_panel.d.ts.map +1 -0
- package/dist/components/layouts/shared/components/visual_panel.js +10 -0
- package/dist/components/layouts/shared/config/layout_customization.d.ts +38 -0
- package/dist/components/layouts/shared/config/layout_customization.d.ts.map +1 -0
- package/dist/components/layouts/shared/config/layout_customization.js +19 -0
- package/dist/components/layouts/shared/data/layout_data_client.d.ts +6 -0
- package/dist/components/layouts/shared/data/layout_data_client.d.ts.map +1 -0
- package/dist/components/layouts/shared/data/layout_data_client.js +9 -0
- package/dist/components/layouts/shared/hooks/use_auth_status.d.ts +20 -0
- package/dist/components/layouts/shared/hooks/use_auth_status.d.ts.map +1 -0
- package/dist/components/layouts/shared/hooks/use_auth_status.js +71 -0
- package/dist/components/layouts/shared/hooks/use_hazo_auth.d.ts +48 -0
- package/dist/components/layouts/shared/hooks/use_hazo_auth.d.ts.map +1 -0
- package/dist/components/layouts/shared/hooks/use_hazo_auth.js +90 -0
- package/dist/components/layouts/shared/index.d.ts +24 -0
- package/dist/components/layouts/shared/index.d.ts.map +1 -0
- package/dist/components/layouts/shared/index.js +27 -0
- package/dist/components/layouts/shared/utils/ip_address.d.ts +7 -0
- package/dist/components/layouts/shared/utils/ip_address.d.ts.map +1 -0
- package/dist/components/layouts/shared/utils/ip_address.js +34 -0
- package/dist/components/layouts/shared/utils/validation.d.ts +15 -0
- package/dist/components/layouts/shared/utils/validation.d.ts.map +1 -0
- package/dist/components/layouts/shared/utils/validation.js +45 -0
- package/dist/components/layouts/user_management/components/roles_matrix.d.ts +29 -0
- package/dist/components/layouts/user_management/components/roles_matrix.d.ts.map +1 -0
- package/dist/components/layouts/user_management/components/roles_matrix.js +287 -0
- package/dist/components/layouts/user_management/index.d.ts +13 -0
- package/dist/components/layouts/user_management/index.d.ts.map +1 -0
- package/dist/components/layouts/user_management/index.js +495 -0
- package/dist/components/ui/alert-dialog.d.ts +21 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +62 -0
- package/dist/components/ui/avatar.d.ts +7 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +32 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +45 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +23 -0
- package/dist/components/ui/dialog.d.ts +20 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +52 -0
- package/dist/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +72 -0
- package/dist/components/ui/hazo_ui_tooltip.d.ts +26 -0
- package/dist/components/ui/hazo_ui_tooltip.d.ts.map +1 -0
- package/dist/components/ui/hazo_ui_tooltip.js +17 -0
- package/dist/components/ui/index.d.ts +20 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/index.js +21 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +20 -0
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +24 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +22 -0
- package/dist/components/ui/sheet.d.ts +23 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +66 -0
- package/dist/components/ui/sidebar.d.ts +66 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +267 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +18 -0
- package/dist/components/ui/sonner.d.ts +5 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/sonner.js +28 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +22 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +55 -0
- package/dist/components/ui/tabs.d.ts +8 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +33 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +25 -0
- package/dist/components/ui/vertical-tabs.d.ts +8 -0
- package/dist/components/ui/vertical-tabs.d.ts.map +1 -0
- package/dist/components/ui/vertical-tabs.js +37 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +15 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/lib/already_logged_in_config.server.d.ts +14 -0
- package/dist/lib/already_logged_in_config.server.d.ts.map +1 -0
- package/dist/lib/already_logged_in_config.server.js +29 -0
- package/dist/lib/app_logger.d.ts +12 -0
- package/dist/lib/app_logger.d.ts.map +1 -0
- package/dist/lib/app_logger.js +14 -0
- package/dist/lib/auth/auth_cache.d.ts +83 -0
- package/dist/lib/auth/auth_cache.d.ts.map +1 -0
- package/dist/lib/auth/auth_cache.js +158 -0
- package/dist/lib/auth/auth_rate_limiter.d.ts +39 -0
- package/dist/lib/auth/auth_rate_limiter.d.ts.map +1 -0
- package/dist/lib/auth/auth_rate_limiter.js +95 -0
- package/dist/lib/auth/auth_types.d.ts +53 -0
- package/dist/lib/auth/auth_types.d.ts.map +1 -0
- package/dist/lib/auth/auth_types.js +16 -0
- package/dist/lib/auth/auth_utils.server.d.ts +47 -0
- package/dist/lib/auth/auth_utils.server.d.ts.map +1 -0
- package/dist/lib/auth/auth_utils.server.js +150 -0
- package/dist/lib/auth/hazo_get_auth.server.d.ts +12 -0
- package/dist/lib/auth/hazo_get_auth.server.d.ts.map +1 -0
- package/dist/lib/auth/hazo_get_auth.server.js +256 -0
- package/dist/lib/auth/index.d.ts +9 -0
- package/dist/lib/auth/index.d.ts.map +1 -0
- package/dist/lib/auth/index.js +12 -0
- package/dist/lib/auth/server_auth.d.ts +26 -0
- package/dist/lib/auth/server_auth.d.ts.map +1 -0
- package/dist/lib/auth/server_auth.js +62 -0
- package/dist/lib/auth_utility_config.server.d.ts +20 -0
- package/dist/lib/auth_utility_config.server.d.ts.map +1 -0
- package/dist/lib/auth_utility_config.server.js +64 -0
- package/dist/lib/config/config_loader.server.d.ts +44 -0
- package/dist/lib/config/config_loader.server.d.ts.map +1 -0
- package/dist/lib/config/config_loader.server.js +122 -0
- package/dist/lib/email_verification_config.server.d.ts +14 -0
- package/dist/lib/email_verification_config.server.d.ts.map +1 -0
- package/dist/lib/email_verification_config.server.js +20 -0
- package/dist/lib/file_types_config.server.d.ts +11 -0
- package/dist/lib/file_types_config.server.d.ts.map +1 -0
- package/dist/lib/file_types_config.server.js +16 -0
- package/dist/lib/forgot_password_config.server.d.ts +14 -0
- package/dist/lib/forgot_password_config.server.d.ts.map +1 -0
- package/dist/lib/forgot_password_config.server.js +20 -0
- package/dist/lib/hazo_connect_instance.server.d.ts +17 -0
- package/dist/lib/hazo_connect_instance.server.d.ts.map +1 -0
- package/dist/lib/hazo_connect_instance.server.js +88 -0
- package/dist/lib/hazo_connect_setup.d.ts +2 -0
- package/dist/lib/hazo_connect_setup.d.ts.map +1 -0
- package/dist/lib/hazo_connect_setup.js +49 -0
- package/dist/lib/hazo_connect_setup.server.d.ts +20 -0
- package/dist/lib/hazo_connect_setup.server.d.ts.map +1 -0
- package/dist/lib/hazo_connect_setup.server.js +138 -0
- package/dist/lib/index.d.ts +28 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/index.js +35 -0
- package/dist/lib/login_config.server.d.ts +20 -0
- package/dist/lib/login_config.server.d.ts.map +1 -0
- package/dist/lib/login_config.server.js +37 -0
- package/dist/lib/messages_config.server.d.ts +13 -0
- package/dist/lib/messages_config.server.d.ts.map +1 -0
- package/dist/lib/messages_config.server.js +18 -0
- package/dist/lib/migrations/apply_migration.d.ts +22 -0
- package/dist/lib/migrations/apply_migration.d.ts.map +1 -0
- package/dist/lib/migrations/apply_migration.js +78 -0
- package/dist/lib/my_settings_config.server.d.ts +65 -0
- package/dist/lib/my_settings_config.server.d.ts.map +1 -0
- package/dist/lib/my_settings_config.server.js +67 -0
- package/dist/lib/password_requirements_config.server.d.ts +15 -0
- package/dist/lib/password_requirements_config.server.d.ts.map +1 -0
- package/dist/lib/password_requirements_config.server.js +26 -0
- package/dist/lib/profile_pic_menu_config.server.d.ts +26 -0
- package/dist/lib/profile_pic_menu_config.server.d.ts.map +1 -0
- package/dist/lib/profile_pic_menu_config.server.js +95 -0
- package/dist/lib/profile_picture_config.server.d.ts +16 -0
- package/dist/lib/profile_picture_config.server.d.ts.map +1 -0
- package/dist/lib/profile_picture_config.server.js +40 -0
- package/dist/lib/register_config.server.d.ts +24 -0
- package/dist/lib/register_config.server.d.ts.map +1 -0
- package/dist/lib/register_config.server.js +39 -0
- package/dist/lib/reset_password_config.server.d.ts +25 -0
- package/dist/lib/reset_password_config.server.d.ts.map +1 -0
- package/dist/lib/reset_password_config.server.js +38 -0
- package/dist/lib/services/email_service.d.ts +44 -0
- package/dist/lib/services/email_service.d.ts.map +1 -0
- package/dist/lib/services/email_service.js +480 -0
- package/dist/lib/services/email_verification_service.d.ts +35 -0
- package/dist/lib/services/email_verification_service.d.ts.map +1 -0
- package/dist/lib/services/email_verification_service.js +208 -0
- package/dist/lib/services/index.d.ts +13 -0
- package/dist/lib/services/index.d.ts.map +1 -0
- package/dist/lib/services/index.js +14 -0
- package/dist/lib/services/login_service.d.ts +20 -0
- package/dist/lib/services/login_service.d.ts.map +1 -0
- package/dist/lib/services/login_service.js +94 -0
- package/dist/lib/services/password_change_service.d.ts +19 -0
- package/dist/lib/services/password_change_service.d.ts.map +1 -0
- package/dist/lib/services/password_change_service.js +118 -0
- package/dist/lib/services/password_reset_service.d.ts +52 -0
- package/dist/lib/services/password_reset_service.d.ts.map +1 -0
- package/dist/lib/services/password_reset_service.js +318 -0
- package/dist/lib/services/profile_picture_remove_service.d.ts +15 -0
- package/dist/lib/services/profile_picture_remove_service.d.ts.map +1 -0
- package/dist/lib/services/profile_picture_remove_service.js +94 -0
- package/dist/lib/services/profile_picture_service.d.ts +45 -0
- package/dist/lib/services/profile_picture_service.d.ts.map +1 -0
- package/dist/lib/services/profile_picture_service.js +183 -0
- package/dist/lib/services/profile_picture_source_mapper.d.ts +23 -0
- package/dist/lib/services/profile_picture_source_mapper.d.ts.map +1 -0
- package/dist/lib/services/profile_picture_source_mapper.js +45 -0
- package/dist/lib/services/registration_service.d.ts +20 -0
- package/dist/lib/services/registration_service.d.ts.map +1 -0
- package/dist/lib/services/registration_service.js +147 -0
- package/dist/lib/services/token_service.d.ts +20 -0
- package/dist/lib/services/token_service.d.ts.map +1 -0
- package/dist/lib/services/token_service.js +201 -0
- package/dist/lib/services/user_profiles_service.d.ts +31 -0
- package/dist/lib/services/user_profiles_service.d.ts.map +1 -0
- package/dist/lib/services/user_profiles_service.js +99 -0
- package/dist/lib/services/user_update_service.d.ts +23 -0
- package/dist/lib/services/user_update_service.d.ts.map +1 -0
- package/dist/lib/services/user_update_service.js +103 -0
- package/dist/lib/ui_shell_config.server.d.ts +16 -0
- package/dist/lib/ui_shell_config.server.d.ts.map +1 -0
- package/dist/lib/ui_shell_config.server.js +28 -0
- package/dist/lib/ui_sizes_config.server.d.ts +17 -0
- package/dist/lib/ui_sizes_config.server.d.ts.map +1 -0
- package/dist/lib/ui_sizes_config.server.js +22 -0
- package/dist/lib/user_fields_config.server.d.ts +13 -0
- package/dist/lib/user_fields_config.server.d.ts.map +1 -0
- package/dist/lib/user_fields_config.server.js +21 -0
- package/dist/lib/user_management_config.server.d.ts +10 -0
- package/dist/lib/user_management_config.server.d.ts.map +1 -0
- package/dist/lib/user_management_config.server.js +26 -0
- package/dist/lib/utils/api_route_helpers.d.ts +13 -0
- package/dist/lib/utils/api_route_helpers.d.ts.map +1 -0
- package/dist/lib/utils/api_route_helpers.js +58 -0
- package/dist/lib/utils/error_sanitizer.d.ts +16 -0
- package/dist/lib/utils/error_sanitizer.d.ts.map +1 -0
- package/dist/lib/utils/error_sanitizer.js +39 -0
- package/dist/lib/utils.d.ts +4 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +9 -0
- package/dist/server/config/config_loader.d.ts +26 -0
- package/dist/server/config/config_loader.d.ts.map +1 -0
- package/dist/server/config/config_loader.js +329 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +32 -0
- package/dist/server/logging/logger_service.d.ts +3 -0
- package/dist/server/logging/logger_service.d.ts.map +1 -0
- package/dist/server/logging/logger_service.js +37 -0
- package/dist/server/routes/root_router.d.ts +3 -0
- package/dist/server/routes/root_router.d.ts.map +1 -0
- package/dist/server/routes/root_router.js +14 -0
- package/dist/server/server.d.ts +3 -0
- package/dist/server/server.d.ts.map +1 -0
- package/dist/server/server.js +25 -0
- package/dist/server/types/app_types.d.ts +53 -0
- package/dist/server/types/app_types.d.ts.map +1 -0
- package/dist/server/types/app_types.js +1 -0
- package/migrations/003_add_url_on_logon_to_hazo_users.sql +8 -0
- package/next.config.mjs +12 -0
- package/package.json +150 -1
- package/src/components/index.ts +7 -0
- package/src/components/layouts/email_verification/config/email_verification_field_config.ts +2 -2
- package/src/components/layouts/email_verification/hooks/use_email_verification.ts +3 -3
- package/src/components/layouts/email_verification/index.tsx +11 -11
- package/src/components/layouts/forgot_password/config/forgot_password_field_config.ts +2 -2
- package/src/components/layouts/forgot_password/hooks/use_forgot_password_form.ts +3 -3
- package/src/components/layouts/forgot_password/index.tsx +10 -10
- package/src/components/layouts/index.ts +26 -0
- package/src/components/layouts/login/config/login_field_config.ts +2 -2
- package/src/components/layouts/login/hooks/use_login_form.ts +5 -5
- package/src/components/layouts/login/index.tsx +11 -11
- package/src/components/layouts/my_settings/components/editable_field.tsx +3 -3
- package/src/components/layouts/my_settings/components/password_change_dialog.tsx +5 -5
- package/src/components/layouts/my_settings/components/profile_picture_dialog.tsx +7 -7
- package/src/components/layouts/my_settings/components/profile_picture_display.tsx +2 -2
- package/src/components/layouts/my_settings/components/profile_picture_gravatar_tab.tsx +3 -3
- package/src/components/layouts/my_settings/components/profile_picture_library_tab.tsx +5 -5
- package/src/components/layouts/my_settings/components/profile_picture_upload_tab.tsx +4 -4
- package/src/components/layouts/my_settings/config/my_settings_field_config.ts +2 -2
- package/src/components/layouts/my_settings/hooks/use_my_settings.ts +2 -2
- package/src/components/layouts/my_settings/index.tsx +10 -10
- package/src/components/layouts/register/config/register_field_config.ts +2 -2
- package/src/components/layouts/register/hooks/use_register_form.ts +4 -4
- package/src/components/layouts/register/index.tsx +11 -11
- package/src/components/layouts/reset_password/config/reset_password_field_config.ts +2 -2
- package/src/components/layouts/reset_password/hooks/use_reset_password_form.ts +4 -4
- package/src/components/layouts/reset_password/index.tsx +10 -10
- package/src/components/layouts/shared/components/already_logged_in_guard.tsx +4 -4
- package/src/components/layouts/shared/components/auth_page_shell.tsx +3 -3
- package/src/components/layouts/shared/components/form_action_buttons.tsx +2 -2
- package/src/components/layouts/shared/components/form_field_wrapper.tsx +2 -2
- package/src/components/layouts/shared/components/logout_button.tsx +2 -2
- package/src/components/layouts/shared/components/password_field.tsx +3 -3
- package/src/components/layouts/shared/components/profile_pic_menu.tsx +5 -5
- package/src/components/layouts/shared/components/profile_pic_menu_wrapper.tsx +2 -2
- package/src/components/layouts/shared/components/sidebar_layout_wrapper.tsx +3 -3
- package/src/components/layouts/shared/components/standalone_layout_wrapper.tsx +1 -1
- package/src/components/layouts/shared/components/two_column_auth_layout.tsx +1 -1
- package/src/components/layouts/shared/components/unauthorized_guard.tsx +2 -2
- package/src/components/layouts/shared/hooks/use_hazo_auth.ts +1 -1
- package/src/components/layouts/shared/index.ts +34 -0
- package/src/components/layouts/shared/utils/validation.ts +1 -1
- package/src/components/layouts/user_management/components/roles_matrix.tsx +7 -7
- package/src/components/layouts/user_management/index.tsx +11 -11
- package/src/components/ui/alert-dialog.tsx +2 -2
- package/src/components/ui/avatar.tsx +1 -1
- package/src/components/ui/button.tsx +1 -1
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/dialog.tsx +1 -1
- package/src/components/ui/dropdown-menu.tsx +1 -1
- package/src/components/ui/hazo_ui_tooltip.tsx +1 -1
- package/src/components/ui/index.ts +22 -0
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/sheet.tsx +1 -1
- package/src/components/ui/sidebar.tsx +8 -8
- package/src/components/ui/skeleton.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/table.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
- package/src/components/ui/vertical-tabs.tsx +1 -1
- package/src/index.ts +7 -0
- package/src/lib/already_logged_in_config.server.ts +1 -1
- package/src/lib/app_logger.ts +1 -1
- package/src/lib/auth/auth_cache.ts +1 -1
- package/src/lib/auth/auth_utils.server.ts +2 -2
- package/src/lib/auth/hazo_get_auth.server.ts +8 -8
- package/src/lib/auth/index.ts +23 -0
- package/src/lib/auth/server_auth.ts +2 -2
- package/src/lib/auth_utility_config.server.ts +1 -1
- package/src/lib/config/config_loader.server.ts +1 -1
- package/src/lib/email_verification_config.server.ts +1 -1
- package/src/lib/file_types_config.server.ts +1 -1
- package/src/lib/forgot_password_config.server.ts +1 -1
- package/src/lib/hazo_connect_instance.server.ts +2 -2
- package/src/lib/hazo_connect_setup.server.ts +2 -2
- package/src/lib/index.ts +44 -0
- package/src/lib/login_config.server.ts +2 -2
- package/src/lib/messages_config.server.ts +1 -1
- package/src/lib/my_settings_config.server.ts +7 -7
- package/src/lib/password_requirements_config.server.ts +1 -1
- package/src/lib/profile_pic_menu_config.server.ts +1 -1
- package/src/lib/profile_picture_config.server.ts +2 -2
- package/src/lib/register_config.server.ts +4 -4
- package/src/lib/reset_password_config.server.ts +3 -3
- package/src/lib/services/email_service.ts +2 -2
- package/src/lib/services/email_verification_service.ts +3 -3
- package/src/lib/services/index.ts +15 -0
- package/src/lib/services/login_service.ts +3 -3
- package/src/lib/services/password_change_service.ts +3 -3
- package/src/lib/services/password_reset_service.ts +3 -3
- package/src/lib/services/profile_picture_remove_service.ts +3 -3
- package/src/lib/services/profile_picture_service.ts +5 -5
- package/src/lib/services/registration_service.ts +8 -8
- package/src/lib/services/token_service.ts +2 -2
- package/src/lib/services/user_profiles_service.ts +2 -2
- package/src/lib/services/user_update_service.ts +4 -4
- package/src/lib/ui_shell_config.server.ts +1 -1
- package/src/lib/ui_sizes_config.server.ts +1 -1
- package/src/lib/user_fields_config.server.ts +1 -1
- package/src/lib/user_management_config.server.ts +1 -2
- package/src/lib/utils/error_sanitizer.ts +1 -1
- package/src/routes/index.ts +34 -0
- package/src/server/config/config_loader.ts +2 -2
- package/src/server/index.ts +2 -2
- package/src/server/logging/logger_service.ts +1 -1
- package/src/server/server.ts +2 -2
- package/src/server/types/express.d.ts +1 -1
- package/tsconfig.build.json +39 -0
- package/tsconfig.json +5 -1
package/package.json
CHANGED
|
@@ -1,7 +1,153 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hazo_auth",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./components": {
|
|
13
|
+
"types": "./dist/components/index.d.ts",
|
|
14
|
+
"import": "./dist/components/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./components/*": {
|
|
17
|
+
"types": "./dist/components/*.d.ts",
|
|
18
|
+
"import": "./dist/components/*.js"
|
|
19
|
+
},
|
|
20
|
+
"./components/ui/*": {
|
|
21
|
+
"types": "./dist/components/ui/*.d.ts",
|
|
22
|
+
"import": "./dist/components/ui/*.js"
|
|
23
|
+
},
|
|
24
|
+
"./components/layouts": {
|
|
25
|
+
"types": "./dist/components/layouts/index.d.ts",
|
|
26
|
+
"import": "./dist/components/layouts/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./components/layouts/*": {
|
|
29
|
+
"types": "./dist/components/layouts/*.d.ts",
|
|
30
|
+
"import": "./dist/components/layouts/*.js"
|
|
31
|
+
},
|
|
32
|
+
"./components/layouts/login": {
|
|
33
|
+
"types": "./dist/components/layouts/login/index.d.ts",
|
|
34
|
+
"import": "./dist/components/layouts/login/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./components/layouts/login/*": {
|
|
37
|
+
"types": "./dist/components/layouts/login/*.d.ts",
|
|
38
|
+
"import": "./dist/components/layouts/login/*.js"
|
|
39
|
+
},
|
|
40
|
+
"./components/layouts/register": {
|
|
41
|
+
"types": "./dist/components/layouts/register/index.d.ts",
|
|
42
|
+
"import": "./dist/components/layouts/register/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./components/layouts/register/*": {
|
|
45
|
+
"types": "./dist/components/layouts/register/*.d.ts",
|
|
46
|
+
"import": "./dist/components/layouts/register/*.js"
|
|
47
|
+
},
|
|
48
|
+
"./components/layouts/forgot_password": {
|
|
49
|
+
"types": "./dist/components/layouts/forgot_password/index.d.ts",
|
|
50
|
+
"import": "./dist/components/layouts/forgot_password/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./components/layouts/forgot_password/*": {
|
|
53
|
+
"types": "./dist/components/layouts/forgot_password/*.d.ts",
|
|
54
|
+
"import": "./dist/components/layouts/forgot_password/*.js"
|
|
55
|
+
},
|
|
56
|
+
"./components/layouts/reset_password": {
|
|
57
|
+
"types": "./dist/components/layouts/reset_password/index.d.ts",
|
|
58
|
+
"import": "./dist/components/layouts/reset_password/index.js"
|
|
59
|
+
},
|
|
60
|
+
"./components/layouts/reset_password/*": {
|
|
61
|
+
"types": "./dist/components/layouts/reset_password/*.d.ts",
|
|
62
|
+
"import": "./dist/components/layouts/reset_password/*.js"
|
|
63
|
+
},
|
|
64
|
+
"./components/layouts/verify_email": {
|
|
65
|
+
"types": "./dist/components/layouts/verify_email/index.d.ts",
|
|
66
|
+
"import": "./dist/components/layouts/verify_email/index.js"
|
|
67
|
+
},
|
|
68
|
+
"./components/layouts/verify_email/*": {
|
|
69
|
+
"types": "./dist/components/layouts/verify_email/*.d.ts",
|
|
70
|
+
"import": "./dist/components/layouts/verify_email/*.js"
|
|
71
|
+
},
|
|
72
|
+
"./components/layouts/email_verification": {
|
|
73
|
+
"types": "./dist/components/layouts/email_verification/index.d.ts",
|
|
74
|
+
"import": "./dist/components/layouts/email_verification/index.js"
|
|
75
|
+
},
|
|
76
|
+
"./components/layouts/email_verification/*": {
|
|
77
|
+
"types": "./dist/components/layouts/email_verification/*.d.ts",
|
|
78
|
+
"import": "./dist/components/layouts/email_verification/*.js"
|
|
79
|
+
},
|
|
80
|
+
"./components/layouts/my_settings": {
|
|
81
|
+
"types": "./dist/components/layouts/my_settings/index.d.ts",
|
|
82
|
+
"import": "./dist/components/layouts/my_settings/index.js"
|
|
83
|
+
},
|
|
84
|
+
"./components/layouts/my_settings/*": {
|
|
85
|
+
"types": "./dist/components/layouts/my_settings/*.d.ts",
|
|
86
|
+
"import": "./dist/components/layouts/my_settings/*.js"
|
|
87
|
+
},
|
|
88
|
+
"./components/layouts/user_management": {
|
|
89
|
+
"types": "./dist/components/layouts/user_management/index.d.ts",
|
|
90
|
+
"import": "./dist/components/layouts/user_management/index.js"
|
|
91
|
+
},
|
|
92
|
+
"./components/layouts/user_management/*": {
|
|
93
|
+
"types": "./dist/components/layouts/user_management/*.d.ts",
|
|
94
|
+
"import": "./dist/components/layouts/user_management/*.js"
|
|
95
|
+
},
|
|
96
|
+
"./components/layouts/shared": {
|
|
97
|
+
"types": "./dist/components/layouts/shared/index.d.ts",
|
|
98
|
+
"import": "./dist/components/layouts/shared/index.js"
|
|
99
|
+
},
|
|
100
|
+
"./components/layouts/shared/*": {
|
|
101
|
+
"types": "./dist/components/layouts/shared/*.d.ts",
|
|
102
|
+
"import": "./dist/components/layouts/shared/*.js"
|
|
103
|
+
},
|
|
104
|
+
"./components/layouts/shared/components/*": {
|
|
105
|
+
"types": "./dist/components/layouts/shared/components/*.d.ts",
|
|
106
|
+
"import": "./dist/components/layouts/shared/components/*.js"
|
|
107
|
+
},
|
|
108
|
+
"./components/layouts/shared/hooks/*": {
|
|
109
|
+
"types": "./dist/components/layouts/shared/hooks/*.d.ts",
|
|
110
|
+
"import": "./dist/components/layouts/shared/hooks/*.js"
|
|
111
|
+
},
|
|
112
|
+
"./lib": {
|
|
113
|
+
"types": "./dist/lib/index.d.ts",
|
|
114
|
+
"import": "./dist/lib/index.js"
|
|
115
|
+
},
|
|
116
|
+
"./lib/*": {
|
|
117
|
+
"types": "./dist/lib/*.d.ts",
|
|
118
|
+
"import": "./dist/lib/*.js"
|
|
119
|
+
},
|
|
120
|
+
"./lib/auth/*": {
|
|
121
|
+
"types": "./dist/lib/auth/*.d.ts",
|
|
122
|
+
"import": "./dist/lib/auth/*.js"
|
|
123
|
+
},
|
|
124
|
+
"./lib/config/*": {
|
|
125
|
+
"types": "./dist/lib/config/*.d.ts",
|
|
126
|
+
"import": "./dist/lib/config/*.js"
|
|
127
|
+
},
|
|
128
|
+
"./lib/services/*": {
|
|
129
|
+
"types": "./dist/lib/services/*.d.ts",
|
|
130
|
+
"import": "./dist/lib/services/*.js"
|
|
131
|
+
},
|
|
132
|
+
"./lib/utils/*": {
|
|
133
|
+
"types": "./dist/lib/utils/*.d.ts",
|
|
134
|
+
"import": "./dist/lib/utils/*.js"
|
|
135
|
+
},
|
|
136
|
+
"./hooks/*": {
|
|
137
|
+
"types": "./dist/hooks/*.d.ts",
|
|
138
|
+
"import": "./dist/hooks/*.js"
|
|
139
|
+
},
|
|
140
|
+
"./server": {
|
|
141
|
+
"types": "./dist/server/index.d.ts",
|
|
142
|
+
"import": "./dist/server/index.js"
|
|
143
|
+
},
|
|
144
|
+
"./server/*": {
|
|
145
|
+
"types": "./dist/server/*.d.ts",
|
|
146
|
+
"import": "./dist/server/*.js"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
4
149
|
"files": [
|
|
150
|
+
"dist/**/*",
|
|
5
151
|
"src/**/*",
|
|
6
152
|
"public/file.svg",
|
|
7
153
|
"public/globe.svg",
|
|
@@ -14,6 +160,7 @@
|
|
|
14
160
|
"README.md",
|
|
15
161
|
"LICENSE",
|
|
16
162
|
"tsconfig.json",
|
|
163
|
+
"tsconfig.build.json",
|
|
17
164
|
"tailwind.config.ts",
|
|
18
165
|
"postcss.config.mjs",
|
|
19
166
|
"next.config.mjs",
|
|
@@ -25,6 +172,8 @@
|
|
|
25
172
|
"scripts": {
|
|
26
173
|
"dev": "next dev",
|
|
27
174
|
"build": "next build",
|
|
175
|
+
"build:pkg": "tsc -p tsconfig.build.json",
|
|
176
|
+
"prepublishOnly": "npm run build:pkg",
|
|
28
177
|
"start": "next start",
|
|
29
178
|
"lint": "next lint",
|
|
30
179
|
"storybook": "storybook dev -p 6006",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: email verification layout specific configuration helpers
|
|
2
2
|
// section: imports
|
|
3
|
-
import type { LayoutFieldMap, LayoutFieldMapOverrides } from "
|
|
3
|
+
import type { LayoutFieldMap, LayoutFieldMapOverrides } from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
4
4
|
import {
|
|
5
5
|
resolveButtonPalette,
|
|
6
6
|
resolveFieldDefinitions,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
type ButtonPaletteOverrides,
|
|
10
10
|
type LayoutLabelDefaults,
|
|
11
11
|
type LayoutLabelOverrides,
|
|
12
|
-
} from "
|
|
12
|
+
} from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
13
13
|
|
|
14
14
|
// section: field_identifiers
|
|
15
15
|
export const EMAIL_VERIFICATION_FIELD_IDS = {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
4
4
|
import { useRouter, useSearchParams } from "next/navigation";
|
|
5
5
|
import { toast } from "sonner";
|
|
6
|
-
import type { LayoutDataClient } from "
|
|
7
|
-
import { EMAIL_VERIFICATION_FIELD_IDS, type EmailVerificationFieldId } from "
|
|
8
|
-
import { validateEmail } from "
|
|
6
|
+
import type { LayoutDataClient } from "hazo_auth/components/layouts/shared/data/layout_data_client";
|
|
7
|
+
import { EMAIL_VERIFICATION_FIELD_IDS, type EmailVerificationFieldId } from "hazo_auth/components/layouts/email_verification/config/email_verification_field_config";
|
|
8
|
+
import { validateEmail } from "hazo_auth/components/layouts/shared/utils/validation";
|
|
9
9
|
|
|
10
10
|
// section: types
|
|
11
11
|
export type EmailVerificationFormValues = Record<EmailVerificationFieldId, string>;
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
|
|
5
5
|
// section: imports
|
|
6
|
-
import { Input } from "
|
|
7
|
-
import { Button } from "
|
|
8
|
-
import { FormFieldWrapper } from "
|
|
9
|
-
import { FormHeader } from "
|
|
10
|
-
import { FormActionButtons } from "
|
|
11
|
-
import { TwoColumnAuthLayout } from "
|
|
6
|
+
import { Input } from "hazo_auth/components/ui/input";
|
|
7
|
+
import { Button } from "hazo_auth/components/ui/button";
|
|
8
|
+
import { FormFieldWrapper } from "hazo_auth/components/layouts/shared/components/form_field_wrapper";
|
|
9
|
+
import { FormHeader } from "hazo_auth/components/layouts/shared/components/form_header";
|
|
10
|
+
import { FormActionButtons } from "hazo_auth/components/layouts/shared/components/form_action_buttons";
|
|
11
|
+
import { TwoColumnAuthLayout } from "hazo_auth/components/layouts/shared/components/two_column_auth_layout";
|
|
12
12
|
import {
|
|
13
13
|
type ButtonPaletteOverrides,
|
|
14
14
|
type LayoutFieldMapOverrides,
|
|
15
15
|
type LayoutLabelOverrides,
|
|
16
|
-
} from "
|
|
16
|
+
} from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
17
17
|
import {
|
|
18
18
|
EMAIL_VERIFICATION_FIELD_IDS,
|
|
19
19
|
createEmailVerificationFieldDefinitions,
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
EMAIL_VERIFICATION_ERROR_LABEL_DEFAULTS,
|
|
24
24
|
type EmailVerificationSuccessLabels,
|
|
25
25
|
type EmailVerificationErrorLabels,
|
|
26
|
-
} from "
|
|
26
|
+
} from "hazo_auth/components/layouts/email_verification/config/email_verification_field_config";
|
|
27
27
|
import {
|
|
28
28
|
use_email_verification,
|
|
29
29
|
type UseEmailVerificationResult,
|
|
30
|
-
} from "
|
|
31
|
-
import { type LayoutDataClient } from "
|
|
30
|
+
} from "hazo_auth/components/layouts/email_verification/hooks/use_email_verification";
|
|
31
|
+
import { type LayoutDataClient } from "hazo_auth/components/layouts/shared/data/layout_data_client";
|
|
32
32
|
import { CheckCircle, XCircle, Loader2 } from "lucide-react";
|
|
33
|
-
import { AlreadyLoggedInGuard } from "
|
|
33
|
+
import { AlreadyLoggedInGuard } from "hazo_auth/components/layouts/shared/components/already_logged_in_guard";
|
|
34
34
|
|
|
35
35
|
// section: types
|
|
36
36
|
export type EmailVerificationLayoutProps<TClient = unknown> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: forgot password layout specific configuration helpers
|
|
2
2
|
// section: imports
|
|
3
|
-
import type { LayoutFieldMap, LayoutFieldMapOverrides } from "
|
|
3
|
+
import type { LayoutFieldMap, LayoutFieldMapOverrides } from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
4
4
|
import {
|
|
5
5
|
resolveButtonPalette,
|
|
6
6
|
resolveFieldDefinitions,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
type ButtonPaletteOverrides,
|
|
10
10
|
type LayoutLabelDefaults,
|
|
11
11
|
type LayoutLabelOverrides,
|
|
12
|
-
} from "
|
|
12
|
+
} from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
13
13
|
|
|
14
14
|
// section: field_identifiers
|
|
15
15
|
export const FORGOT_PASSWORD_FIELD_IDS = {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// section: imports
|
|
3
3
|
import { useCallback, useMemo, useState } from "react";
|
|
4
4
|
import { toast } from "sonner";
|
|
5
|
-
import type { LayoutDataClient } from "
|
|
6
|
-
import { FORGOT_PASSWORD_FIELD_IDS, type ForgotPasswordFieldId } from "
|
|
7
|
-
import { validateEmail } from "
|
|
5
|
+
import type { LayoutDataClient } from "hazo_auth/components/layouts/shared/data/layout_data_client";
|
|
6
|
+
import { FORGOT_PASSWORD_FIELD_IDS, type ForgotPasswordFieldId } from "hazo_auth/components/layouts/forgot_password/config/forgot_password_field_config";
|
|
7
|
+
import { validateEmail } from "hazo_auth/components/layouts/shared/utils/validation";
|
|
8
8
|
|
|
9
9
|
// section: types
|
|
10
10
|
export type ForgotPasswordFormValues = Record<ForgotPasswordFieldId, string>;
|
|
@@ -3,28 +3,28 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
|
|
5
5
|
// section: imports
|
|
6
|
-
import { Input } from "
|
|
7
|
-
import { FormFieldWrapper } from "
|
|
8
|
-
import { FormHeader } from "
|
|
9
|
-
import { FormActionButtons } from "
|
|
10
|
-
import { TwoColumnAuthLayout } from "
|
|
11
|
-
import { AlreadyLoggedInGuard } from "
|
|
6
|
+
import { Input } from "hazo_auth/components/ui/input";
|
|
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
|
+
import { AlreadyLoggedInGuard } from "hazo_auth/components/layouts/shared/components/already_logged_in_guard";
|
|
12
12
|
import {
|
|
13
13
|
type ButtonPaletteOverrides,
|
|
14
14
|
type LayoutFieldMapOverrides,
|
|
15
15
|
type LayoutLabelOverrides,
|
|
16
|
-
} from "
|
|
16
|
+
} from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
17
17
|
import {
|
|
18
18
|
FORGOT_PASSWORD_FIELD_IDS,
|
|
19
19
|
createForgotPasswordFieldDefinitions,
|
|
20
20
|
resolveForgotPasswordButtonPalette,
|
|
21
21
|
resolveForgotPasswordLabels,
|
|
22
|
-
} from "
|
|
22
|
+
} from "hazo_auth/components/layouts/forgot_password/config/forgot_password_field_config";
|
|
23
23
|
import {
|
|
24
24
|
use_forgot_password_form,
|
|
25
25
|
type UseForgotPasswordFormResult,
|
|
26
|
-
} from "
|
|
27
|
-
import { type LayoutDataClient } from "
|
|
26
|
+
} from "hazo_auth/components/layouts/forgot_password/hooks/use_forgot_password_form";
|
|
27
|
+
import { type LayoutDataClient } from "hazo_auth/components/layouts/shared/data/layout_data_client";
|
|
28
28
|
|
|
29
29
|
// section: types
|
|
30
30
|
export type ForgotPasswordLayoutProps<TClient = unknown> = {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// file_description: barrel export for all layout components
|
|
2
|
+
// section: layout_exports
|
|
3
|
+
export { default as LoginLayout } from "./login/index";
|
|
4
|
+
export type { LoginLayoutProps } from "./login/index";
|
|
5
|
+
|
|
6
|
+
export { default as RegisterLayout } from "./register/index";
|
|
7
|
+
export type { RegisterLayoutProps } from "./register/index";
|
|
8
|
+
|
|
9
|
+
export { default as ForgotPasswordLayout } from "./forgot_password/index";
|
|
10
|
+
export type { ForgotPasswordLayoutProps } from "./forgot_password/index";
|
|
11
|
+
|
|
12
|
+
export { default as ResetPasswordLayout } from "./reset_password/index";
|
|
13
|
+
export type { ResetPasswordLayoutProps } from "./reset_password/index";
|
|
14
|
+
|
|
15
|
+
export { default as EmailVerificationLayout } from "./email_verification/index";
|
|
16
|
+
export type { EmailVerificationLayoutProps } from "./email_verification/index";
|
|
17
|
+
|
|
18
|
+
export { default as MySettingsLayout } from "./my_settings/index";
|
|
19
|
+
export type { MySettingsLayoutProps } from "./my_settings/index";
|
|
20
|
+
|
|
21
|
+
export { UserManagementLayout } from "./user_management/index";
|
|
22
|
+
export type { UserManagementLayoutProps } from "./user_management/index";
|
|
23
|
+
|
|
24
|
+
// section: shared_exports
|
|
25
|
+
export * from "./shared/index";
|
|
26
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// file_description: login layout specific configuration helpers
|
|
2
2
|
// section: imports
|
|
3
|
-
import type { LayoutFieldMap, LayoutFieldMapOverrides } from "
|
|
3
|
+
import type { LayoutFieldMap, LayoutFieldMapOverrides } from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
4
4
|
import {
|
|
5
5
|
resolveButtonPalette,
|
|
6
6
|
resolveFieldDefinitions,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
type ButtonPaletteOverrides,
|
|
10
10
|
type LayoutLabelDefaults,
|
|
11
11
|
type LayoutLabelOverrides,
|
|
12
|
-
} from "
|
|
12
|
+
} from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
13
13
|
|
|
14
14
|
// section: field_identifiers
|
|
15
15
|
export const LOGIN_FIELD_IDS = {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// section: imports
|
|
3
3
|
import { useCallback, useMemo, useState, useEffect } from "react";
|
|
4
4
|
import { useRouter } from "next/navigation";
|
|
5
|
-
import type { LayoutDataClient } from "
|
|
6
|
-
import { LOGIN_FIELD_IDS, type LoginFieldId } from "
|
|
7
|
-
import { validateEmail } from "
|
|
8
|
-
import { get_client_ip } from "
|
|
9
|
-
import { trigger_auth_status_refresh } from "
|
|
5
|
+
import type { LayoutDataClient } from "hazo_auth/components/layouts/shared/data/layout_data_client";
|
|
6
|
+
import { LOGIN_FIELD_IDS, type LoginFieldId } from "hazo_auth/components/layouts/login/config/login_field_config";
|
|
7
|
+
import { validateEmail } from "hazo_auth/components/layouts/shared/utils/validation";
|
|
8
|
+
import { get_client_ip } from "hazo_auth/components/layouts/shared/utils/ip_address";
|
|
9
|
+
import { trigger_auth_status_refresh } from "hazo_auth/components/layouts/shared/hooks/use_auth_status";
|
|
10
10
|
|
|
11
11
|
// section: types
|
|
12
12
|
export type LoginFormValues = Record<LoginFieldId, string>;
|
|
@@ -4,30 +4,30 @@
|
|
|
4
4
|
|
|
5
5
|
// section: imports
|
|
6
6
|
import Link from "next/link";
|
|
7
|
-
import { Input } from "
|
|
8
|
-
import { PasswordField } from "
|
|
9
|
-
import { FormFieldWrapper } from "
|
|
10
|
-
import { FormHeader } from "
|
|
11
|
-
import { FormActionButtons } from "
|
|
12
|
-
import { TwoColumnAuthLayout } from "
|
|
7
|
+
import { Input } from "hazo_auth/components/ui/input";
|
|
8
|
+
import { PasswordField } from "hazo_auth/components/layouts/shared/components/password_field";
|
|
9
|
+
import { FormFieldWrapper } from "hazo_auth/components/layouts/shared/components/form_field_wrapper";
|
|
10
|
+
import { FormHeader } from "hazo_auth/components/layouts/shared/components/form_header";
|
|
11
|
+
import { FormActionButtons } from "hazo_auth/components/layouts/shared/components/form_action_buttons";
|
|
12
|
+
import { TwoColumnAuthLayout } from "hazo_auth/components/layouts/shared/components/two_column_auth_layout";
|
|
13
13
|
import { CheckCircle } from "lucide-react";
|
|
14
|
-
import { AlreadyLoggedInGuard } from "
|
|
14
|
+
import { AlreadyLoggedInGuard } from "hazo_auth/components/layouts/shared/components/already_logged_in_guard";
|
|
15
15
|
import {
|
|
16
16
|
type ButtonPaletteOverrides,
|
|
17
17
|
type LayoutFieldMapOverrides,
|
|
18
18
|
type LayoutLabelOverrides,
|
|
19
|
-
} from "
|
|
19
|
+
} from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
20
20
|
import {
|
|
21
21
|
LOGIN_FIELD_IDS,
|
|
22
22
|
createLoginFieldDefinitions,
|
|
23
23
|
resolveLoginButtonPalette,
|
|
24
24
|
resolveLoginLabels,
|
|
25
|
-
} from "
|
|
25
|
+
} from "hazo_auth/components/layouts/login/config/login_field_config";
|
|
26
26
|
import {
|
|
27
27
|
use_login_form,
|
|
28
28
|
type UseLoginFormResult,
|
|
29
|
-
} from "
|
|
30
|
-
import { type LayoutDataClient } from "
|
|
29
|
+
} from "hazo_auth/components/layouts/login/hooks/use_login_form";
|
|
30
|
+
import { type LayoutDataClient } from "hazo_auth/components/layouts/shared/data/layout_data_client";
|
|
31
31
|
|
|
32
32
|
// section: types
|
|
33
33
|
export type LoginLayoutProps<TClient = unknown> = {
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
// section: imports
|
|
6
6
|
import { useState } from "react";
|
|
7
|
-
import { Input } from "
|
|
8
|
-
import { Label } from "
|
|
9
|
-
import { Button } from "
|
|
7
|
+
import { Input } from "hazo_auth/components/ui/input";
|
|
8
|
+
import { Label } from "hazo_auth/components/ui/label";
|
|
9
|
+
import { Button } from "hazo_auth/components/ui/button";
|
|
10
10
|
import { Pencil, CheckCircle2, XCircle } from "lucide-react";
|
|
11
11
|
|
|
12
12
|
// section: types
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
DialogHeader,
|
|
11
11
|
DialogTitle,
|
|
12
12
|
DialogDescription,
|
|
13
|
-
} from "
|
|
14
|
-
import { Button } from "
|
|
15
|
-
import { PasswordField } from "
|
|
16
|
-
import { FormFieldWrapper } from "
|
|
17
|
-
import type { PasswordRequirementOptions } from "
|
|
13
|
+
} from "hazo_auth/components/ui/dialog";
|
|
14
|
+
import { Button } from "hazo_auth/components/ui/button";
|
|
15
|
+
import { PasswordField } from "hazo_auth/components/layouts/shared/components/password_field";
|
|
16
|
+
import { FormFieldWrapper } from "hazo_auth/components/layouts/shared/components/form_field_wrapper";
|
|
17
|
+
import type { PasswordRequirementOptions } from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
18
18
|
|
|
19
19
|
// section: types
|
|
20
20
|
export type ButtonPalette = {
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
DialogHeader,
|
|
11
11
|
DialogTitle,
|
|
12
12
|
DialogDescription,
|
|
13
|
-
} from "
|
|
14
|
-
import { Button } from "
|
|
15
|
-
import { Tabs, TabsContent, TabsList, TabsTrigger } from "
|
|
16
|
-
import { ProfilePictureUploadTab } from "
|
|
17
|
-
import { ProfilePictureLibraryTab } from "
|
|
18
|
-
import { ProfilePictureGravatarTab } from "
|
|
13
|
+
} from "hazo_auth/components/ui/dialog";
|
|
14
|
+
import { Button } from "hazo_auth/components/ui/button";
|
|
15
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "hazo_auth/components/ui/tabs";
|
|
16
|
+
import { ProfilePictureUploadTab } from "hazo_auth/components/layouts/my_settings/components/profile_picture_upload_tab";
|
|
17
|
+
import { ProfilePictureLibraryTab } from "hazo_auth/components/layouts/my_settings/components/profile_picture_library_tab";
|
|
18
|
+
import { ProfilePictureGravatarTab } from "hazo_auth/components/layouts/my_settings/components/profile_picture_gravatar_tab";
|
|
19
19
|
import { toast } from "sonner";
|
|
20
|
-
import { cn } from "
|
|
20
|
+
import { cn } from "hazo_auth/lib/utils";
|
|
21
21
|
|
|
22
22
|
// section: types
|
|
23
23
|
export type ProfilePictureDialogProps = {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
|
|
5
5
|
// section: imports
|
|
6
|
-
import { Avatar, AvatarImage, AvatarFallback } from "
|
|
7
|
-
import { Button } from "
|
|
6
|
+
import { Avatar, AvatarImage, AvatarFallback } from "hazo_auth/components/ui/avatar";
|
|
7
|
+
import { Button } from "hazo_auth/components/ui/button";
|
|
8
8
|
import { Pencil } from "lucide-react";
|
|
9
9
|
|
|
10
10
|
// section: types
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
// section: imports
|
|
6
6
|
import { useState, useEffect } from "react";
|
|
7
|
-
import { Switch } from "
|
|
8
|
-
import { Label } from "
|
|
9
|
-
import { Avatar, AvatarImage, AvatarFallback } from "
|
|
7
|
+
import { Switch } from "hazo_auth/components/ui/switch";
|
|
8
|
+
import { Label } from "hazo_auth/components/ui/label";
|
|
9
|
+
import { Avatar, AvatarImage, AvatarFallback } from "hazo_auth/components/ui/avatar";
|
|
10
10
|
import { Info } from "lucide-react";
|
|
11
11
|
import gravatarUrl from "gravatar-url";
|
|
12
12
|
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
// section: imports
|
|
6
6
|
import { useState, useEffect } from "react";
|
|
7
|
-
import { Switch } from "
|
|
8
|
-
import { Label } from "
|
|
9
|
-
import { Avatar, AvatarFallback } from "
|
|
10
|
-
import { VerticalTabs, VerticalTabsList, VerticalTabsTrigger, VerticalTabsContent } from "
|
|
7
|
+
import { Switch } from "hazo_auth/components/ui/switch";
|
|
8
|
+
import { Label } from "hazo_auth/components/ui/label";
|
|
9
|
+
import { Avatar, AvatarFallback } from "hazo_auth/components/ui/avatar";
|
|
10
|
+
import { VerticalTabs, VerticalTabsList, VerticalTabsTrigger, VerticalTabsContent } from "hazo_auth/components/ui/vertical-tabs";
|
|
11
11
|
import { Loader2 } from "lucide-react";
|
|
12
|
-
import { HazoUITooltip } from "
|
|
12
|
+
import { HazoUITooltip } from "hazo_auth/components/ui/hazo_ui_tooltip";
|
|
13
13
|
|
|
14
14
|
// section: types
|
|
15
15
|
export type ProfilePictureLibraryTabProps = {
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
// section: imports
|
|
6
6
|
import { useState, useCallback, useEffect } from "react";
|
|
7
|
-
import { Switch } from "
|
|
8
|
-
import { Label } from "
|
|
9
|
-
import { Avatar, AvatarImage, AvatarFallback } from "
|
|
7
|
+
import { Switch } from "hazo_auth/components/ui/switch";
|
|
8
|
+
import { Label } from "hazo_auth/components/ui/label";
|
|
9
|
+
import { Avatar, AvatarImage, AvatarFallback } from "hazo_auth/components/ui/avatar";
|
|
10
10
|
import { Upload, X, Loader2, Info } from "lucide-react";
|
|
11
|
-
import { Button } from "
|
|
11
|
+
import { Button } from "hazo_auth/components/ui/button";
|
|
12
12
|
import imageCompression from "browser-image-compression";
|
|
13
13
|
|
|
14
14
|
// section: types
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// file_description: my settings layout specific configuration helpers
|
|
2
2
|
// section: imports
|
|
3
|
-
import type { LayoutFieldMap } from "
|
|
3
|
+
import type { LayoutFieldMap } from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
4
4
|
import {
|
|
5
5
|
resolveButtonPalette,
|
|
6
6
|
type ButtonPaletteDefaults,
|
|
7
7
|
type ButtonPaletteOverrides,
|
|
8
8
|
type PasswordRequirementOptions,
|
|
9
|
-
} from "
|
|
9
|
+
} from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
10
10
|
|
|
11
11
|
// section: field_identifiers
|
|
12
12
|
export const MY_SETTINGS_FIELD_IDS = {
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
// section: imports
|
|
6
6
|
import { useState, useEffect, useCallback } from "react";
|
|
7
|
-
import { use_auth_status, trigger_auth_status_refresh } from "
|
|
7
|
+
import { use_auth_status, trigger_auth_status_refresh } from "hazo_auth/components/layouts/shared/hooks/use_auth_status";
|
|
8
8
|
import { toast } from "sonner";
|
|
9
|
-
import type { PasswordRequirementOptions } from "
|
|
9
|
+
import type { PasswordRequirementOptions } from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
10
10
|
|
|
11
11
|
// section: types
|
|
12
12
|
export type PasswordFields = {
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
|
|
5
5
|
// section: imports
|
|
6
|
-
import { Button } from "
|
|
7
|
-
import { EditableField } from "
|
|
8
|
-
import { ProfilePictureDisplay } from "
|
|
9
|
-
import { ProfilePictureDialog } from "
|
|
10
|
-
import { UnauthorizedGuard } from "
|
|
11
|
-
import { use_my_settings } from "
|
|
6
|
+
import { Button } from "hazo_auth/components/ui/button";
|
|
7
|
+
import { EditableField } from "hazo_auth/components/layouts/my_settings/components/editable_field";
|
|
8
|
+
import { ProfilePictureDisplay } from "hazo_auth/components/layouts/my_settings/components/profile_picture_display";
|
|
9
|
+
import { ProfilePictureDialog } from "hazo_auth/components/layouts/my_settings/components/profile_picture_dialog";
|
|
10
|
+
import { UnauthorizedGuard } from "hazo_auth/components/layouts/shared/components/unauthorized_guard";
|
|
11
|
+
import { use_my_settings } from "hazo_auth/components/layouts/my_settings/hooks/use_my_settings";
|
|
12
12
|
import {
|
|
13
13
|
resolveMySettingsLabels,
|
|
14
14
|
resolveMySettingsButtonPalette,
|
|
15
15
|
type MySettingsLabelOverrides,
|
|
16
|
-
} from "
|
|
16
|
+
} from "hazo_auth/components/layouts/my_settings/config/my_settings_field_config";
|
|
17
17
|
import type {
|
|
18
18
|
PasswordRequirementOptions,
|
|
19
19
|
ButtonPaletteOverrides,
|
|
20
|
-
} from "
|
|
20
|
+
} from "hazo_auth/components/layouts/shared/config/layout_customization";
|
|
21
21
|
import { formatDistanceToNow } from "date-fns";
|
|
22
|
-
import { PasswordField } from "
|
|
23
|
-
import { FormFieldWrapper } from "
|
|
22
|
+
import { PasswordField } from "hazo_auth/components/layouts/shared/components/password_field";
|
|
23
|
+
import { FormFieldWrapper } from "hazo_auth/components/layouts/shared/components/form_field_wrapper";
|
|
24
24
|
import { Pencil, Trash2 } from "lucide-react";
|
|
25
25
|
|
|
26
26
|
// section: types
|