hazo_auth 10.18.3 → 10.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/cli-src/lib/utils/password_validator.ts +12 -5
  2. package/dist/components/layouts/email_verification/config/email_verification_field_config.d.ts.map +1 -1
  3. package/dist/components/layouts/email_verification/config/email_verification_field_config.js +18 -15
  4. package/dist/components/layouts/email_verification/hooks/use_email_verification.d.ts.map +1 -1
  5. package/dist/components/layouts/email_verification/hooks/use_email_verification.js +12 -9
  6. package/dist/components/layouts/email_verification/index.d.ts.map +1 -1
  7. package/dist/components/layouts/email_verification/index.js +6 -3
  8. package/dist/components/layouts/forgot_password/config/forgot_password_field_config.d.ts.map +1 -1
  9. package/dist/components/layouts/forgot_password/config/forgot_password_field_config.js +11 -8
  10. package/dist/components/layouts/forgot_password/hooks/use_forgot_password_form.d.ts.map +1 -1
  11. package/dist/components/layouts/forgot_password/hooks/use_forgot_password_form.js +8 -5
  12. package/dist/components/layouts/forgot_password/index.d.ts.map +1 -1
  13. package/dist/components/layouts/forgot_password/index.js +6 -3
  14. package/dist/components/layouts/login/config/login_field_config.d.ts.map +1 -1
  15. package/dist/components/layouts/login/config/login_field_config.js +14 -11
  16. package/dist/components/layouts/login/hooks/use_login_form.d.ts.map +1 -1
  17. package/dist/components/layouts/login/hooks/use_login_form.js +7 -4
  18. package/dist/components/layouts/login/index.d.ts.map +1 -1
  19. package/dist/components/layouts/login/index.js +11 -8
  20. package/dist/components/layouts/my_settings/components/connected_accounts_section.d.ts.map +1 -1
  21. package/dist/components/layouts/my_settings/components/connected_accounts_section.js +7 -4
  22. package/dist/components/layouts/my_settings/components/danger_zone_section.d.ts.map +1 -1
  23. package/dist/components/layouts/my_settings/components/danger_zone_section.js +8 -5
  24. package/dist/components/layouts/my_settings/components/set_password_section.d.ts.map +1 -1
  25. package/dist/components/layouts/my_settings/components/set_password_section.js +20 -13
  26. package/dist/components/layouts/my_settings/config/my_settings_field_config.d.ts.map +1 -1
  27. package/dist/components/layouts/my_settings/config/my_settings_field_config.js +9 -6
  28. package/dist/components/layouts/otp/index.d.ts.map +1 -1
  29. package/dist/components/layouts/otp/index.js +4 -1
  30. package/dist/components/layouts/register/config/register_field_config.d.ts.map +1 -1
  31. package/dist/components/layouts/register/config/register_field_config.js +20 -17
  32. package/dist/components/layouts/register/hooks/use_register_form.d.ts.map +1 -1
  33. package/dist/components/layouts/register/hooks/use_register_form.js +8 -5
  34. package/dist/components/layouts/register/index.d.ts.map +1 -1
  35. package/dist/components/layouts/register/index.js +11 -8
  36. package/dist/components/layouts/reset_password/config/reset_password_field_config.d.ts +1 -1
  37. package/dist/components/layouts/reset_password/config/reset_password_field_config.d.ts.map +1 -1
  38. package/dist/components/layouts/reset_password/config/reset_password_field_config.js +14 -11
  39. package/dist/components/layouts/reset_password/hooks/use_reset_password_form.d.ts.map +1 -1
  40. package/dist/components/layouts/reset_password/hooks/use_reset_password_form.js +13 -10
  41. package/dist/components/layouts/reset_password/index.d.ts.map +1 -1
  42. package/dist/components/layouts/reset_password/index.js +7 -4
  43. package/dist/components/layouts/shared/components/already_logged_in_guard.d.ts.map +1 -1
  44. package/dist/components/layouts/shared/components/already_logged_in_guard.js +4 -1
  45. package/dist/components/layouts/shared/components/facebook_sign_in_button.d.ts.map +1 -1
  46. package/dist/components/layouts/shared/components/facebook_sign_in_button.js +5 -2
  47. package/dist/components/layouts/shared/components/form_action_buttons.d.ts.map +1 -1
  48. package/dist/components/layouts/shared/components/form_action_buttons.js +4 -1
  49. package/dist/components/layouts/shared/components/google_sign_in_button.d.ts.map +1 -1
  50. package/dist/components/layouts/shared/components/google_sign_in_button.js +5 -2
  51. package/dist/components/layouts/shared/components/logout_button.d.ts.map +1 -1
  52. package/dist/components/layouts/shared/components/logout_button.js +7 -4
  53. package/dist/components/layouts/shared/components/oauth_divider.d.ts.map +1 -1
  54. package/dist/components/layouts/shared/components/oauth_divider.js +4 -1
  55. package/dist/components/layouts/shared/components/password_field.d.ts.map +1 -1
  56. package/dist/components/layouts/shared/components/password_field.js +4 -1
  57. package/dist/components/layouts/shared/components/unauthorized_guard.d.ts.map +1 -1
  58. package/dist/components/layouts/shared/components/unauthorized_guard.js +6 -3
  59. package/dist/components/layouts/shared/config/layout_customization.d.ts +5 -0
  60. package/dist/components/layouts/shared/config/layout_customization.d.ts.map +1 -1
  61. package/dist/components/layouts/shared/config/layout_customization.js +14 -0
  62. package/dist/components/layouts/shared/utils/validation.d.ts +4 -0
  63. package/dist/components/layouts/shared/utils/validation.d.ts.map +1 -1
  64. package/dist/components/layouts/shared/utils/validation.js +18 -6
  65. package/dist/components/layouts/user_management/components/roles_matrix.d.ts.map +1 -1
  66. package/dist/components/layouts/user_management/components/roles_matrix.js +22 -17
  67. package/dist/components/layouts/user_management/components/scope_hierarchy_tab.d.ts.map +1 -1
  68. package/dist/components/layouts/user_management/components/scope_hierarchy_tab.js +29 -26
  69. package/dist/components/layouts/user_management/components/user_scopes_tab.d.ts.map +1 -1
  70. package/dist/components/layouts/user_management/components/user_scopes_tab.js +27 -19
  71. package/dist/components/layouts/user_management/components/user_signup_stats_cards.d.ts +2 -1
  72. package/dist/components/layouts/user_management/components/user_signup_stats_cards.d.ts.map +1 -1
  73. package/dist/components/layouts/user_management/components/user_signup_stats_cards.js +64 -21
  74. package/dist/components/layouts/user_management/index.d.ts.map +1 -1
  75. package/dist/components/layouts/user_management/index.js +48 -42
  76. package/dist/components/otp/OTPRequestForm.d.ts.map +1 -1
  77. package/dist/components/otp/OTPRequestForm.js +8 -5
  78. package/dist/components/otp/OTPVerifyForm.d.ts.map +1 -1
  79. package/dist/components/otp/OTPVerifyForm.js +10 -7
  80. package/dist/components/permission_denied_dialog.client.d.ts.map +1 -1
  81. package/dist/components/permission_denied_dialog.client.js +12 -9
  82. package/dist/lib/utils/password_validator.d.ts.map +1 -1
  83. package/dist/lib/utils/password_validator.js +5 -5
  84. package/dist/locales/en.json +383 -0
  85. package/dist/server/routes/library_photos.d.ts +2 -2
  86. package/dist/server/routes/set_password.js +1 -1
  87. package/dist/strings/default_strings.d.ts.map +1 -1
  88. package/dist/strings/default_strings.js +14 -11
  89. package/package.json +22 -17
@@ -1,18 +1,21 @@
1
+ import en from "../locales/en.json" with { type: "json" };
2
+ import { createPackageT } from "hazo_core/i18n";
3
+ const t = createPackageT("hazo_auth", en);
1
4
  export const DEFAULT_STRINGS = {
2
5
  login: {
3
- title: "Sign in to your account",
4
- subtitle: "Enter your credentials to access your secure workspace.",
5
- ctaText: "Login",
6
+ title: t("login.heading"),
7
+ subtitle: t("login.sub_heading"),
8
+ ctaText: t("login.submit_button"),
6
9
  legalText: "",
7
10
  errors: {
8
- link_blocked_unverified: "This email is already registered but not verified. Please verify your email before linking a social account.",
11
+ link_blocked_unverified: t("login.errors.link_blocked_unverified"),
9
12
  },
10
13
  },
11
- register: { title: "Create your hazo account", subtitle: "Secure your access with editable fields powered by shadcn components.", ctaText: "Register", legalText: "" },
12
- forgot_password: { title: "Forgot your password?", subtitle: "Enter your email address and we'll send you a link to reset your password.", ctaText: "Send reset link" },
13
- reset_password: { title: "Reset your password", subtitle: "Enter your new password below.", ctaText: "Reset password" },
14
- verify_email: { title: "Email verification", subtitle: "Verifying your email address..." },
15
- otp: { title: "Sign in with email code", subtitle: "Enter the code we sent to your email", ctaText: "Verify" },
16
- my_settings: { title: "Account Settings" },
17
- create_firm: { title: "Create Your Firm", subtitle: "Set up your organisation to get started", ctaText: "Create Firm" },
14
+ register: { title: t("register.heading"), subtitle: t("register.sub_heading"), ctaText: t("register.submit_button"), legalText: "" },
15
+ forgot_password: { title: t("forgot_password.heading"), subtitle: t("forgot_password.sub_heading"), ctaText: t("forgot_password.submit_button") },
16
+ reset_password: { title: t("reset_password.heading"), subtitle: t("reset_password.sub_heading"), ctaText: t("reset_password.submit_button") },
17
+ verify_email: { title: t("email_verification.heading"), subtitle: t("email_verification.sub_heading") },
18
+ otp: { title: t("otp.layout.title"), subtitle: t("otp.layout.subtitle"), ctaText: t("otp.verify.submit_label") },
19
+ my_settings: { title: t("my_settings.page_title") },
20
+ create_firm: { title: t("create_firm.title"), subtitle: t("create_firm.subtitle"), ctaText: t("create_firm.cta") },
18
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hazo_auth",
3
- "version": "10.18.3",
3
+ "version": "10.19.0",
4
4
  "description": "Zero-config authentication UI components for Next.js with RBAC, OAuth, scope-based multi-tenancy, and invitations",
5
5
  "keywords": [
6
6
  "authentication",
@@ -246,6 +246,7 @@
246
246
  "clsx": "^2.1.1",
247
247
  "date-fns": "^4.1.0",
248
248
  "gravatar-url": "^4.0.1",
249
+ "hazo_auth": "^10.18.3",
249
250
  "ini": "^6.0.0",
250
251
  "input-otp": "^1.4.0",
251
252
  "jose": "^5.9.6",
@@ -272,14 +273,15 @@
272
273
  "multer": "^2.0.2"
273
274
  },
274
275
  "peerDependencies": {
275
- "hazo_config": "^2.4.3",
276
- "hazo_connect": "^4.1.0",
277
- "hazo_core": "^2.2.0",
278
- "hazo_logs": "^2.2.1",
279
- "hazo_notify": "^6.2.0",
280
- "hazo_secure": "^1.7.4",
281
- "hazo_theme": "^1.3.1",
282
- "hazo_ui": "^6.11.0",
276
+ "hazo_config": "^2.6.0",
277
+ "hazo_connect": "^4.3.0",
278
+ "hazo_core": "^2.4.0",
279
+ "hazo_i18n": "^0.5.0",
280
+ "hazo_logs": "^2.3.0",
281
+ "hazo_notify": "^6.3.0",
282
+ "hazo_secure": "^1.8.1",
283
+ "hazo_theme": "^1.4.0",
284
+ "hazo_ui": "^6.12.0",
283
285
  "next": "^14.0.0 || ^15.0.0 || ^16.0.0",
284
286
  "next-auth": "^4.24.0",
285
287
  "react": "^18.0.0 || ^19.0.0",
@@ -295,6 +297,9 @@
295
297
  "hazo_core": {
296
298
  "optional": false
297
299
  },
300
+ "hazo_i18n": {
301
+ "optional": true
302
+ },
298
303
  "hazo_logs": {
299
304
  "optional": false
300
305
  },
@@ -354,14 +359,14 @@
354
359
  "eslint": "^9.39.1",
355
360
  "eslint-config-next": "^16.0.4",
356
361
  "eslint-plugin-storybook": "^10.0.6",
357
- "hazo_api": "^2.6.1",
358
- "hazo_config": "^2.4.3",
359
- "hazo_connect": "^4.1.0",
360
- "hazo_core": "^2.2.0",
361
- "hazo_logs": "^2.2.1",
362
- "hazo_notify": "^6.2.0",
363
- "hazo_theme": "^1.3.1",
364
- "hazo_ui": "^6.11.0",
362
+ "hazo_api": "^2.8.0",
363
+ "hazo_config": "^2.6.0",
364
+ "hazo_connect": "^4.3.0",
365
+ "hazo_core": "^2.4.0",
366
+ "hazo_logs": "^2.3.0",
367
+ "hazo_notify": "^6.3.0",
368
+ "hazo_theme": "^1.4.0",
369
+ "hazo_ui": "^6.12.0",
365
370
  "input-otp": "^1.4.0",
366
371
  "jest": "^30.2.0",
367
372
  "jest-environment-jsdom": "^30.0.0",