hazo_auth 1.0.3 → 1.0.5

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 (108) hide show
  1. package/README.md +22 -1
  2. package/package.json +3 -3
  3. package/src/app/api/hazo_auth/auth/upload_profile_picture/route.ts +8 -8
  4. package/src/app/api/hazo_auth/change_password/route.ts +7 -7
  5. package/src/app/api/hazo_auth/forgot_password/route.ts +4 -4
  6. package/src/app/api/hazo_auth/get_auth/route.ts +4 -4
  7. package/src/app/api/hazo_auth/invalidate_cache/route.ts +5 -5
  8. package/src/app/api/hazo_auth/library_photos/route.ts +3 -3
  9. package/src/app/api/hazo_auth/login/route.ts +4 -4
  10. package/src/app/api/hazo_auth/logout/route.ts +4 -4
  11. package/src/app/api/hazo_auth/me/route.ts +1 -1
  12. package/src/app/api/hazo_auth/profile_picture/[filename]/route.ts +1 -1
  13. package/src/app/api/hazo_auth/register/route.ts +4 -4
  14. package/src/app/api/hazo_auth/remove_profile_picture/route.ts +5 -5
  15. package/src/app/api/hazo_auth/resend_verification/route.ts +4 -4
  16. package/src/app/api/hazo_auth/reset_password/route.ts +5 -5
  17. package/src/app/api/hazo_auth/update_user/route.ts +5 -5
  18. package/src/app/api/hazo_auth/upload_profile_picture/route.ts +8 -8
  19. package/src/app/api/hazo_auth/user_management/permissions/route.ts +4 -4
  20. package/src/app/api/hazo_auth/user_management/roles/route.ts +5 -5
  21. package/src/app/api/hazo_auth/user_management/users/roles/route.ts +5 -5
  22. package/src/app/api/hazo_auth/user_management/users/route.ts +6 -6
  23. package/src/app/api/hazo_auth/validate_reset_token/route.ts +4 -4
  24. package/src/app/api/hazo_auth/verify_email/route.ts +4 -4
  25. package/src/app/api/migrations/apply/route.ts +3 -3
  26. package/src/app/hazo_auth/forgot_password/forgot_password_page_client.tsx +4 -4
  27. package/src/app/hazo_auth/forgot_password/page.tsx +2 -2
  28. package/src/app/hazo_auth/login/login_page_client.tsx +5 -5
  29. package/src/app/hazo_auth/login/page.tsx +2 -2
  30. package/src/app/hazo_auth/my_settings/my_settings_page_client.tsx +3 -3
  31. package/src/app/hazo_auth/my_settings/page.tsx +2 -2
  32. package/src/app/hazo_auth/register/page.tsx +2 -2
  33. package/src/app/hazo_auth/register/register_page_client.tsx +4 -4
  34. package/src/app/hazo_auth/reset_password/page.tsx +2 -2
  35. package/src/app/hazo_auth/reset_password/reset_password_page_client.tsx +4 -4
  36. package/src/app/hazo_auth/user_management/page.tsx +1 -1
  37. package/src/app/hazo_auth/user_management/user_management_page_client.tsx +1 -1
  38. package/src/app/hazo_auth/verify_email/page.tsx +2 -2
  39. package/src/app/hazo_auth/verify_email/verify_email_page_client.tsx +4 -4
  40. package/src/app/hazo_connect/api/sqlite/data/route.ts +1 -1
  41. package/src/app/hazo_connect/api/sqlite/schema/route.ts +1 -1
  42. package/src/app/hazo_connect/api/sqlite/tables/route.ts +1 -1
  43. package/src/app/layout.tsx +1 -1
  44. package/src/app/page.tsx +1 -1
  45. package/src/components/layouts/email_verification/config/email_verification_field_config.ts +2 -2
  46. package/src/components/layouts/email_verification/hooks/use_email_verification.ts +3 -3
  47. package/src/components/layouts/email_verification/index.tsx +11 -11
  48. package/src/components/layouts/forgot_password/config/forgot_password_field_config.ts +2 -2
  49. package/src/components/layouts/forgot_password/hooks/use_forgot_password_form.ts +3 -3
  50. package/src/components/layouts/forgot_password/index.tsx +10 -10
  51. package/src/components/layouts/login/config/login_field_config.ts +2 -2
  52. package/src/components/layouts/login/hooks/use_login_form.ts +5 -5
  53. package/src/components/layouts/login/index.tsx +11 -11
  54. package/src/components/layouts/my_settings/components/editable_field.tsx +3 -3
  55. package/src/components/layouts/my_settings/components/password_change_dialog.tsx +5 -5
  56. package/src/components/layouts/my_settings/components/profile_picture_dialog.tsx +4 -4
  57. package/src/components/layouts/my_settings/components/profile_picture_display.tsx +2 -2
  58. package/src/components/layouts/my_settings/components/profile_picture_gravatar_tab.tsx +3 -3
  59. package/src/components/layouts/my_settings/components/profile_picture_library_tab.tsx +5 -5
  60. package/src/components/layouts/my_settings/components/profile_picture_upload_tab.tsx +4 -4
  61. package/src/components/layouts/my_settings/config/my_settings_field_config.ts +2 -2
  62. package/src/components/layouts/my_settings/hooks/use_my_settings.ts +2 -2
  63. package/src/components/layouts/my_settings/index.tsx +5 -5
  64. package/src/components/layouts/register/config/register_field_config.ts +2 -2
  65. package/src/components/layouts/register/hooks/use_register_form.ts +4 -4
  66. package/src/components/layouts/register/index.tsx +11 -11
  67. package/src/components/layouts/reset_password/config/reset_password_field_config.ts +2 -2
  68. package/src/components/layouts/reset_password/hooks/use_reset_password_form.ts +4 -4
  69. package/src/components/layouts/reset_password/index.tsx +10 -10
  70. package/src/components/layouts/shared/components/already_logged_in_guard.tsx +4 -4
  71. package/src/components/layouts/shared/components/form_action_buttons.tsx +2 -2
  72. package/src/components/layouts/shared/components/form_field_wrapper.tsx +2 -2
  73. package/src/components/layouts/shared/components/logout_button.tsx +2 -2
  74. package/src/components/layouts/shared/components/password_field.tsx +3 -3
  75. package/src/components/layouts/shared/components/profile_pic_menu.tsx +5 -5
  76. package/src/components/layouts/shared/components/profile_pic_menu_wrapper.tsx +1 -1
  77. package/src/components/layouts/shared/components/sidebar_layout_wrapper.tsx +3 -3
  78. package/src/components/layouts/shared/components/two_column_auth_layout.tsx +1 -1
  79. package/src/components/layouts/shared/components/unauthorized_guard.tsx +2 -2
  80. package/src/components/layouts/shared/hooks/use_hazo_auth.ts +1 -1
  81. package/src/components/layouts/shared/utils/validation.ts +1 -1
  82. package/src/components/layouts/user_management/components/roles_matrix.tsx +7 -7
  83. package/src/components/layouts/user_management/index.tsx +10 -10
  84. package/src/components/ui/alert-dialog.tsx +2 -2
  85. package/src/components/ui/avatar.tsx +1 -1
  86. package/src/components/ui/button.tsx +1 -1
  87. package/src/components/ui/checkbox.tsx +1 -1
  88. package/src/components/ui/dialog.tsx +1 -1
  89. package/src/components/ui/dropdown-menu.tsx +1 -1
  90. package/src/components/ui/hazo_ui_tooltip.tsx +1 -1
  91. package/src/components/ui/input.tsx +1 -1
  92. package/src/components/ui/label.tsx +1 -1
  93. package/src/components/ui/separator.tsx +1 -1
  94. package/src/components/ui/sheet.tsx +1 -1
  95. package/src/components/ui/sidebar.tsx +8 -8
  96. package/src/components/ui/skeleton.tsx +1 -1
  97. package/src/components/ui/switch.tsx +1 -1
  98. package/src/components/ui/table.tsx +1 -1
  99. package/src/components/ui/tabs.tsx +1 -1
  100. package/src/components/ui/tooltip.tsx +1 -1
  101. package/src/components/ui/vertical-tabs.tsx +1 -1
  102. package/src/lib/app_logger.ts +1 -1
  103. package/src/lib/hazo_connect_setup.server.ts +2 -2
  104. package/src/stories/email_verification_layout.stories.tsx +2 -2
  105. package/src/stories/forgot_password_layout.stories.tsx +2 -2
  106. package/src/stories/login_layout.stories.tsx +2 -2
  107. package/src/stories/register_layout.stories.tsx +2 -2
  108. package/tsconfig.json +1 -4
@@ -1,8 +1,8 @@
1
1
  // file_description: render the reset password page shell and mount the reset password layout component within sidebar
2
2
  // section: imports
3
- import { SidebarLayoutWrapper } from "@/components/layouts/shared/components/sidebar_layout_wrapper";
3
+ import { SidebarLayoutWrapper } from "../../../components/layouts/shared/components/sidebar_layout_wrapper";
4
4
  import { ResetPasswordPageClient } from "./reset_password_page_client";
5
- import { get_reset_password_config } from "@/lib/reset_password_config.server";
5
+ import { get_reset_password_config } from "../../../lib/reset_password_config.server";
6
6
 
7
7
  // section: component
8
8
  export default function reset_password_page() {
@@ -4,10 +4,10 @@
4
4
 
5
5
  // section: imports
6
6
  import { useEffect, useState } from "react";
7
- import reset_password_layout from "@/components/layouts/reset_password";
8
- import { createLayoutDataClient } from "@/components/layouts/shared/data/layout_data_client";
9
- import { create_sqlite_hazo_connect } from "@/lib/hazo_connect_setup";
10
- import type { LayoutDataClient } from "@/components/layouts/shared/data/layout_data_client";
7
+ import reset_password_layout from "../../../components/layouts/reset_password";
8
+ import { createLayoutDataClient } from "../../../components/layouts/shared/data/layout_data_client";
9
+ import { create_sqlite_hazo_connect } from "../../../lib/hazo_connect_setup";
10
+ import type { LayoutDataClient } from "../../../components/layouts/shared/data/layout_data_client";
11
11
 
12
12
  // section: types
13
13
  type ResetPasswordPageClientProps = {
@@ -1,6 +1,6 @@
1
1
  // file_description: render the user management page shell and mount the user management layout component within sidebar
2
2
  // section: imports
3
- import { SidebarLayoutWrapper } from "@/components/layouts/shared/components/sidebar_layout_wrapper";
3
+ import { SidebarLayoutWrapper } from "../../../components/layouts/shared/components/sidebar_layout_wrapper";
4
4
  import { UserManagementPageClient } from "./user_management_page_client";
5
5
 
6
6
  // section: component
@@ -3,7 +3,7 @@
3
3
  "use client";
4
4
 
5
5
  // section: imports
6
- import { UserManagementLayout } from "@/components/layouts/user_management";
6
+ import { UserManagementLayout } from "../../../components/layouts/user_management";
7
7
 
8
8
  // section: component
9
9
  /**
@@ -1,8 +1,8 @@
1
1
  // file_description: render the email verification page shell and mount the email verification layout component within sidebar
2
2
  // section: imports
3
- import { SidebarLayoutWrapper } from "@/components/layouts/shared/components/sidebar_layout_wrapper";
3
+ import { SidebarLayoutWrapper } from "../../../components/layouts/shared/components/sidebar_layout_wrapper";
4
4
  import { VerifyEmailPageClient } from "./verify_email_page_client";
5
- import { get_email_verification_config } from "@/lib/email_verification_config.server";
5
+ import { get_email_verification_config } from "../../../lib/email_verification_config.server";
6
6
 
7
7
  // section: component
8
8
  export default function verify_email_page() {
@@ -4,10 +4,10 @@
4
4
 
5
5
  // section: imports
6
6
  import { useEffect, useState } from "react";
7
- import email_verification_layout from "@/components/layouts/email_verification";
8
- import { createLayoutDataClient } from "@/components/layouts/shared/data/layout_data_client";
9
- import { create_sqlite_hazo_connect } from "@/lib/hazo_connect_setup";
10
- import type { LayoutDataClient } from "@/components/layouts/shared/data/layout_data_client";
7
+ import email_verification_layout from "../../../components/layouts/email_verification";
8
+ import { createLayoutDataClient } from "../../../components/layouts/shared/data/layout_data_client";
9
+ import { create_sqlite_hazo_connect } from "../../../lib/hazo_connect_setup";
10
+ import type { LayoutDataClient } from "../../../components/layouts/shared/data/layout_data_client";
11
11
 
12
12
  // section: types
13
13
  type VerifyEmailPageClientProps = {
@@ -6,7 +6,7 @@ import {
6
6
  type SqliteFilterOperator,
7
7
  type SqliteWhereFilter
8
8
  } from "hazo_connect/server"
9
- import { get_hazo_connect_instance } from "@/lib/hazo_connect_instance.server"
9
+ import { get_hazo_connect_instance } from "../../../../../lib/hazo_connect_instance.server"
10
10
 
11
11
  export const dynamic = "force-dynamic"
12
12
  const allowedOperators: SqliteFilterOperator[] = [
@@ -1,7 +1,7 @@
1
1
  // file_description: API route to get SQLite table schema for admin UI
2
2
  import { NextRequest, NextResponse } from "next/server"
3
3
  import { getSqliteAdminService } from "hazo_connect/server"
4
- import { get_hazo_connect_instance } from "@/lib/hazo_connect_instance.server"
4
+ import { get_hazo_connect_instance } from "../../../../../lib/hazo_connect_instance.server"
5
5
 
6
6
  export const dynamic = "force-dynamic"
7
7
 
@@ -1,7 +1,7 @@
1
1
  // file_description: API route to list SQLite tables for admin UI
2
2
  import { NextResponse } from "next/server"
3
3
  import { getSqliteAdminService } from "hazo_connect/server"
4
- import { get_hazo_connect_instance } from "@/lib/hazo_connect_instance.server"
4
+ import { get_hazo_connect_instance } from "../../../../../lib/hazo_connect_instance.server"
5
5
 
6
6
  export const dynamic = "force-dynamic"
7
7
 
@@ -1,7 +1,7 @@
1
1
  // file_description: define the root layout wrapper for the hazo_auth project
2
2
  import type { Metadata } from "next";
3
3
  import local_font from "next/font/local";
4
- import { Toaster } from "@/components/ui/sonner";
4
+ import { Toaster } from "../components/ui/sonner";
5
5
  import "./globals.css";
6
6
 
7
7
  // section: typography_setup
package/src/app/page.tsx CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  SidebarProvider,
17
17
  SidebarTrigger,
18
18
  SidebarInset,
19
- } from "@/components/ui/sidebar";
19
+ } from "../components/ui/sidebar";
20
20
  import { LogIn, UserPlus, BookOpen, ExternalLink, Database, KeyRound, MailCheck } from "lucide-react";
21
21
 
22
22
  // section: page_component
@@ -1,6 +1,6 @@
1
1
  // file_description: email verification layout specific configuration helpers
2
2
  // section: imports
3
- import type { LayoutFieldMap, LayoutFieldMapOverrides } from "@/components/layouts/shared/config/layout_customization";
3
+ import type { LayoutFieldMap, LayoutFieldMapOverrides } from "../../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 "@/components/layouts/shared/config/layout_customization";
12
+ } from "../../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 "@/components/layouts/shared/data/layout_data_client";
7
- import { EMAIL_VERIFICATION_FIELD_IDS, type EmailVerificationFieldId } from "@/components/layouts/email_verification/config/email_verification_field_config";
8
- import { validateEmail } from "@/components/layouts/shared/utils/validation";
6
+ import type { LayoutDataClient } from "../../shared/data/layout_data_client";
7
+ import { EMAIL_VERIFICATION_FIELD_IDS, type EmailVerificationFieldId } from "../config/email_verification_field_config";
8
+ import { validateEmail } from "../../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 "@/components/ui/input";
7
- import { Button } from "@/components/ui/button";
8
- import { FormFieldWrapper } from "@/components/layouts/shared/components/form_field_wrapper";
9
- import { FormHeader } from "@/components/layouts/shared/components/form_header";
10
- import { FormActionButtons } from "@/components/layouts/shared/components/form_action_buttons";
11
- import { TwoColumnAuthLayout } from "@/components/layouts/shared/components/two_column_auth_layout";
6
+ import { Input } from "../../ui/input";
7
+ import { Button } from "../../ui/button";
8
+ import { FormFieldWrapper } from "../shared/components/form_field_wrapper";
9
+ import { FormHeader } from "../shared/components/form_header";
10
+ import { FormActionButtons } from "../shared/components/form_action_buttons";
11
+ import { TwoColumnAuthLayout } from "../shared/components/two_column_auth_layout";
12
12
  import {
13
13
  type ButtonPaletteOverrides,
14
14
  type LayoutFieldMapOverrides,
15
15
  type LayoutLabelOverrides,
16
- } from "@/components/layouts/shared/config/layout_customization";
16
+ } from "../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 "@/components/layouts/email_verification/config/email_verification_field_config";
26
+ } from "./config/email_verification_field_config";
27
27
  import {
28
28
  use_email_verification,
29
29
  type UseEmailVerificationResult,
30
- } from "@/components/layouts/email_verification/hooks/use_email_verification";
31
- import { type LayoutDataClient } from "@/components/layouts/shared/data/layout_data_client";
30
+ } from "./hooks/use_email_verification";
31
+ import { type LayoutDataClient } from "../shared/data/layout_data_client";
32
32
  import { CheckCircle, XCircle, Loader2 } from "lucide-react";
33
- import { AlreadyLoggedInGuard } from "@/components/layouts/shared/components/already_logged_in_guard";
33
+ import { AlreadyLoggedInGuard } from "../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 "@/components/layouts/shared/config/layout_customization";
3
+ import type { LayoutFieldMap, LayoutFieldMapOverrides } from "../../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 "@/components/layouts/shared/config/layout_customization";
12
+ } from "../../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 "@/components/layouts/shared/data/layout_data_client";
6
- import { FORGOT_PASSWORD_FIELD_IDS, type ForgotPasswordFieldId } from "@/components/layouts/forgot_password/config/forgot_password_field_config";
7
- import { validateEmail } from "@/components/layouts/shared/utils/validation";
5
+ import type { LayoutDataClient } from "../../shared/data/layout_data_client";
6
+ import { FORGOT_PASSWORD_FIELD_IDS, type ForgotPasswordFieldId } from "../config/forgot_password_field_config";
7
+ import { validateEmail } from "../../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 "@/components/ui/input";
7
- import { FormFieldWrapper } from "@/components/layouts/shared/components/form_field_wrapper";
8
- import { FormHeader } from "@/components/layouts/shared/components/form_header";
9
- import { FormActionButtons } from "@/components/layouts/shared/components/form_action_buttons";
10
- import { TwoColumnAuthLayout } from "@/components/layouts/shared/components/two_column_auth_layout";
11
- import { AlreadyLoggedInGuard } from "@/components/layouts/shared/components/already_logged_in_guard";
6
+ import { Input } from "../../ui/input";
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";
11
+ import { AlreadyLoggedInGuard } from "../shared/components/already_logged_in_guard";
12
12
  import {
13
13
  type ButtonPaletteOverrides,
14
14
  type LayoutFieldMapOverrides,
15
15
  type LayoutLabelOverrides,
16
- } from "@/components/layouts/shared/config/layout_customization";
16
+ } from "../shared/config/layout_customization";
17
17
  import {
18
18
  FORGOT_PASSWORD_FIELD_IDS,
19
19
  createForgotPasswordFieldDefinitions,
20
20
  resolveForgotPasswordButtonPalette,
21
21
  resolveForgotPasswordLabels,
22
- } from "@/components/layouts/forgot_password/config/forgot_password_field_config";
22
+ } from "./config/forgot_password_field_config";
23
23
  import {
24
24
  use_forgot_password_form,
25
25
  type UseForgotPasswordFormResult,
26
- } from "@/components/layouts/forgot_password/hooks/use_forgot_password_form";
27
- import { type LayoutDataClient } from "@/components/layouts/shared/data/layout_data_client";
26
+ } from "./hooks/use_forgot_password_form";
27
+ import { type LayoutDataClient } from "../shared/data/layout_data_client";
28
28
 
29
29
  // section: types
30
30
  export type ForgotPasswordLayoutProps<TClient = unknown> = {
@@ -1,6 +1,6 @@
1
1
  // file_description: login layout specific configuration helpers
2
2
  // section: imports
3
- import type { LayoutFieldMap, LayoutFieldMapOverrides } from "@/components/layouts/shared/config/layout_customization";
3
+ import type { LayoutFieldMap, LayoutFieldMapOverrides } from "../../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 "@/components/layouts/shared/config/layout_customization";
12
+ } from "../../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 "@/components/layouts/shared/data/layout_data_client";
6
- import { LOGIN_FIELD_IDS, type LoginFieldId } from "@/components/layouts/login/config/login_field_config";
7
- import { validateEmail } from "@/components/layouts/shared/utils/validation";
8
- import { get_client_ip } from "@/components/layouts/shared/utils/ip_address";
9
- import { trigger_auth_status_refresh } from "@/components/layouts/shared/hooks/use_auth_status";
5
+ import type { LayoutDataClient } from "../../shared/data/layout_data_client";
6
+ import { LOGIN_FIELD_IDS, type LoginFieldId } from "../config/login_field_config";
7
+ import { validateEmail } from "../../shared/utils/validation";
8
+ import { get_client_ip } from "../../shared/utils/ip_address";
9
+ import { trigger_auth_status_refresh } from "../../shared/hooks/use_auth_status";
10
10
 
11
11
  // section: types
12
12
  export type LoginFormValues = Record<LoginFieldId, string>;
@@ -3,30 +3,30 @@
3
3
  "use client";
4
4
 
5
5
  // section: imports
6
- import { Input } from "@/components/ui/input";
7
- import { PasswordField } from "@/components/layouts/shared/components/password_field";
8
- import { FormFieldWrapper } from "@/components/layouts/shared/components/form_field_wrapper";
9
- import { FormHeader } from "@/components/layouts/shared/components/form_header";
10
- import { FormActionButtons } from "@/components/layouts/shared/components/form_action_buttons";
11
- import { TwoColumnAuthLayout } from "@/components/layouts/shared/components/two_column_auth_layout";
6
+ import { Input } from "../../ui/input";
7
+ import { PasswordField } from "../shared/components/password_field";
8
+ import { FormFieldWrapper } from "../shared/components/form_field_wrapper";
9
+ import { FormHeader } from "../shared/components/form_header";
10
+ import { FormActionButtons } from "../shared/components/form_action_buttons";
11
+ import { TwoColumnAuthLayout } from "../shared/components/two_column_auth_layout";
12
12
  import { CheckCircle } from "lucide-react";
13
- import { AlreadyLoggedInGuard } from "@/components/layouts/shared/components/already_logged_in_guard";
13
+ import { AlreadyLoggedInGuard } from "../shared/components/already_logged_in_guard";
14
14
  import {
15
15
  type ButtonPaletteOverrides,
16
16
  type LayoutFieldMapOverrides,
17
17
  type LayoutLabelOverrides,
18
- } from "@/components/layouts/shared/config/layout_customization";
18
+ } from "../shared/config/layout_customization";
19
19
  import {
20
20
  LOGIN_FIELD_IDS,
21
21
  createLoginFieldDefinitions,
22
22
  resolveLoginButtonPalette,
23
23
  resolveLoginLabels,
24
- } from "@/components/layouts/login/config/login_field_config";
24
+ } from "./config/login_field_config";
25
25
  import {
26
26
  use_login_form,
27
27
  type UseLoginFormResult,
28
- } from "@/components/layouts/login/hooks/use_login_form";
29
- import { type LayoutDataClient } from "@/components/layouts/shared/data/layout_data_client";
28
+ } from "./hooks/use_login_form";
29
+ import { type LayoutDataClient } from "../shared/data/layout_data_client";
30
30
 
31
31
  // section: types
32
32
  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 "@/components/ui/input";
8
- import { Label } from "@/components/ui/label";
9
- import { Button } from "@/components/ui/button";
7
+ import { Input } from "../../../ui/input";
8
+ import { Label } from "../../../ui/label";
9
+ import { Button } from "../../../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 "@/components/ui/dialog";
14
- import { Button } from "@/components/ui/button";
15
- import { PasswordField } from "@/components/layouts/shared/components/password_field";
16
- import { FormFieldWrapper } from "@/components/layouts/shared/components/form_field_wrapper";
17
- import type { PasswordRequirementOptions } from "@/components/layouts/shared/config/layout_customization";
13
+ } from "../../../ui/dialog";
14
+ import { Button } from "../../../ui/button";
15
+ import { PasswordField } from "../../shared/components/password_field";
16
+ import { FormFieldWrapper } from "../../shared/components/form_field_wrapper";
17
+ import type { PasswordRequirementOptions } from "../../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 "@/components/ui/dialog";
14
- import { Button } from "@/components/ui/button";
15
- import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
13
+ } from "../../../ui/dialog";
14
+ import { Button } from "../../../ui/button";
15
+ import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../../ui/tabs";
16
16
  import { ProfilePictureUploadTab } from "./profile_picture_upload_tab";
17
17
  import { ProfilePictureLibraryTab } from "./profile_picture_library_tab";
18
18
  import { ProfilePictureGravatarTab } from "./profile_picture_gravatar_tab";
19
19
  import { toast } from "sonner";
20
- import { cn } from "@/lib/utils";
20
+ import { cn } from "../../../../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 "@/components/ui/avatar";
7
- import { Button } from "@/components/ui/button";
6
+ import { Avatar, AvatarImage, AvatarFallback } from "../../../ui/avatar";
7
+ import { Button } from "../../../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 "@/components/ui/switch";
8
- import { Label } from "@/components/ui/label";
9
- import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar";
7
+ import { Switch } from "../../../ui/switch";
8
+ import { Label } from "../../../ui/label";
9
+ import { Avatar, AvatarImage, AvatarFallback } from "../../../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 "@/components/ui/switch";
8
- import { Label } from "@/components/ui/label";
9
- import { Avatar, AvatarFallback } from "@/components/ui/avatar";
10
- import { VerticalTabs, VerticalTabsList, VerticalTabsTrigger, VerticalTabsContent } from "@/components/ui/vertical-tabs";
7
+ import { Switch } from "../../../ui/switch";
8
+ import { Label } from "../../../ui/label";
9
+ import { Avatar, AvatarFallback } from "../../../ui/avatar";
10
+ import { VerticalTabs, VerticalTabsList, VerticalTabsTrigger, VerticalTabsContent } from "../../../ui/vertical-tabs";
11
11
  import { Loader2 } from "lucide-react";
12
- import { HazoUITooltip } from "@/components/ui/hazo_ui_tooltip";
12
+ import { HazoUITooltip } from "../../../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 "@/components/ui/switch";
8
- import { Label } from "@/components/ui/label";
9
- import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar";
7
+ import { Switch } from "../../../ui/switch";
8
+ import { Label } from "../../../ui/label";
9
+ import { Avatar, AvatarImage, AvatarFallback } from "../../../ui/avatar";
10
10
  import { Upload, X, Loader2, Info } from "lucide-react";
11
- import { Button } from "@/components/ui/button";
11
+ import { Button } from "../../../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 "@/components/layouts/shared/config/layout_customization";
3
+ import type { LayoutFieldMap } from "../../shared/config/layout_customization";
4
4
  import {
5
5
  resolveButtonPalette,
6
6
  type ButtonPaletteDefaults,
7
7
  type ButtonPaletteOverrides,
8
8
  type PasswordRequirementOptions,
9
- } from "@/components/layouts/shared/config/layout_customization";
9
+ } from "../../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 "@/components/layouts/shared/hooks/use_auth_status";
7
+ import { use_auth_status, trigger_auth_status_refresh } from "../../shared/hooks/use_auth_status";
8
8
  import { toast } from "sonner";
9
- import type { PasswordRequirementOptions } from "@/components/layouts/shared/config/layout_customization";
9
+ import type { PasswordRequirementOptions } from "../../shared/config/layout_customization";
10
10
 
11
11
  // section: types
12
12
  export type PasswordFields = {
@@ -3,11 +3,11 @@
3
3
  "use client";
4
4
 
5
5
  // section: imports
6
- import { Button } from "@/components/ui/button";
6
+ import { Button } from "../../ui/button";
7
7
  import { EditableField } from "./components/editable_field";
8
8
  import { ProfilePictureDisplay } from "./components/profile_picture_display";
9
9
  import { ProfilePictureDialog } from "./components/profile_picture_dialog";
10
- import { UnauthorizedGuard } from "@/components/layouts/shared/components/unauthorized_guard";
10
+ import { UnauthorizedGuard } from "../shared/components/unauthorized_guard";
11
11
  import { use_my_settings } from "./hooks/use_my_settings";
12
12
  import {
13
13
  resolveMySettingsLabels,
@@ -17,10 +17,10 @@ import {
17
17
  import type {
18
18
  PasswordRequirementOptions,
19
19
  ButtonPaletteOverrides,
20
- } from "@/components/layouts/shared/config/layout_customization";
20
+ } from "../shared/config/layout_customization";
21
21
  import { formatDistanceToNow } from "date-fns";
22
- import { PasswordField } from "@/components/layouts/shared/components/password_field";
23
- import { FormFieldWrapper } from "@/components/layouts/shared/components/form_field_wrapper";
22
+ import { PasswordField } from "../shared/components/password_field";
23
+ import { FormFieldWrapper } from "../shared/components/form_field_wrapper";
24
24
  import { Pencil, Trash2 } from "lucide-react";
25
25
 
26
26
  // section: types
@@ -1,6 +1,6 @@
1
1
  // file_description: register layout specific configuration helpers
2
2
  // section: imports
3
- import type { LayoutFieldMap, LayoutFieldMapOverrides } from "@/components/layouts/shared/config/layout_customization";
3
+ import type { LayoutFieldMap, LayoutFieldMapOverrides } from "../../shared/config/layout_customization";
4
4
  import {
5
5
  resolveButtonPalette,
6
6
  resolveFieldDefinitions,
@@ -12,7 +12,7 @@ import {
12
12
  type LayoutLabelOverrides,
13
13
  type PasswordRequirementOptions,
14
14
  type PasswordRequirementOverrides,
15
- } from "@/components/layouts/shared/config/layout_customization";
15
+ } from "../../shared/config/layout_customization";
16
16
 
17
17
  // section: field_identifiers
18
18
  export const REGISTER_FIELD_IDS = {
@@ -2,10 +2,10 @@
2
2
  // section: imports
3
3
  import { useCallback, useMemo, useState } from "react";
4
4
  import { toast } from "sonner";
5
- import type { LayoutDataClient } from "@/components/layouts/shared/data/layout_data_client";
6
- import type { PasswordRequirementOptions, PasswordRequirementOverrides } from "@/components/layouts/shared/config/layout_customization";
7
- import { REGISTER_FIELD_IDS, type RegisterFieldId } from "@/components/layouts/register/config/register_field_config";
8
- import { validateEmail, validatePassword } from "@/components/layouts/shared/utils/validation";
5
+ import type { LayoutDataClient } from "../../shared/data/layout_data_client";
6
+ import type { PasswordRequirementOptions, PasswordRequirementOverrides } from "../../shared/config/layout_customization";
7
+ import { REGISTER_FIELD_IDS, type RegisterFieldId } from "../config/register_field_config";
8
+ import { validateEmail, validatePassword } from "../../shared/utils/validation";
9
9
 
10
10
  // section: constants
11
11
  const PASSWORD_FIELDS: Array<RegisterFieldId> = [
@@ -3,31 +3,31 @@
3
3
  "use client";
4
4
 
5
5
  // section: imports
6
- import { Input } from "@/components/ui/input";
7
- import { PasswordField } from "@/components/layouts/shared/components/password_field";
8
- import { FormFieldWrapper } from "@/components/layouts/shared/components/form_field_wrapper";
9
- import { FormHeader } from "@/components/layouts/shared/components/form_header";
10
- import { FormActionButtons } from "@/components/layouts/shared/components/form_action_buttons";
11
- import { TwoColumnAuthLayout } from "@/components/layouts/shared/components/two_column_auth_layout";
12
- import { AlreadyLoggedInGuard } from "@/components/layouts/shared/components/already_logged_in_guard";
6
+ import { Input } from "../../ui/input";
7
+ import { PasswordField } from "../shared/components/password_field";
8
+ import { FormFieldWrapper } from "../shared/components/form_field_wrapper";
9
+ import { FormHeader } from "../shared/components/form_header";
10
+ import { FormActionButtons } from "../shared/components/form_action_buttons";
11
+ import { TwoColumnAuthLayout } from "../shared/components/two_column_auth_layout";
12
+ import { AlreadyLoggedInGuard } from "../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 "@/components/layouts/shared/config/layout_customization";
18
+ } from "../shared/config/layout_customization";
19
19
  import {
20
20
  REGISTER_FIELD_IDS,
21
21
  createRegisterFieldDefinitions,
22
22
  resolveRegisterButtonPalette,
23
23
  resolveRegisterLabels,
24
24
  resolveRegisterPasswordRequirements,
25
- } from "@/components/layouts/register/config/register_field_config";
25
+ } from "./config/register_field_config";
26
26
  import {
27
27
  use_register_form,
28
28
  type UseRegisterFormResult,
29
- } from "@/components/layouts/register/hooks/use_register_form";
30
- import { type LayoutDataClient } from "@/components/layouts/shared/data/layout_data_client";
29
+ } from "./hooks/use_register_form";
30
+ import { type LayoutDataClient } from "../shared/data/layout_data_client";
31
31
 
32
32
  // section: types
33
33
  export type RegisterLayoutProps<TClient = unknown> = {