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
@@ -3,7 +3,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
4
  import { Button } from "../ui/button.js";
5
5
  import { InputOTP, InputOTPGroup, InputOTPSlot } from "../ui/input-otp.js";
6
- export function OTPVerifyForm({ email, on_success, api_base = "/api/hazo_auth", submit_label = "Verify", pending_label = "Verifying…", resend_label = "Resend code", className, redirect_url, }) {
6
+ import en from "../../locales/en.json" with { type: "json" };
7
+ import { createPackageT } from "hazo_core/i18n";
8
+ const t = createPackageT("hazo_auth", en);
9
+ export function OTPVerifyForm({ email, on_success, api_base = "/api/hazo_auth", submit_label = t("otp.verify.submit_label"), pending_label = t("otp.verify.pending_label"), resend_label = t("otp.verify.resend_label"), className, redirect_url, }) {
7
10
  const [code, set_code] = React.useState("");
8
11
  const [pending, set_pending] = React.useState(false);
9
12
  const [error, set_error] = React.useState(null);
@@ -22,7 +25,7 @@ export function OTPVerifyForm({ email, on_success, api_base = "/api/hazo_auth",
22
25
  body: JSON.stringify({ email, code }),
23
26
  });
24
27
  if (!res.ok) {
25
- set_error("Invalid or expired code.");
28
+ set_error(t("otp.verify.error.invalid_code"));
26
29
  return;
27
30
  }
28
31
  const body = (await res.json());
@@ -33,11 +36,11 @@ export function OTPVerifyForm({ email, on_success, api_base = "/api/hazo_auth",
33
36
  }
34
37
  }
35
38
  else {
36
- set_error("Invalid or expired code.");
39
+ set_error(t("otp.verify.error.invalid_code"));
37
40
  }
38
41
  }
39
42
  catch (_a) {
40
- set_error("Network error. Please try again.");
43
+ set_error(t("otp.verify.error.network"));
41
44
  }
42
45
  finally {
43
46
  set_pending(false);
@@ -60,16 +63,16 @@ export function OTPVerifyForm({ email, on_success, api_base = "/api/hazo_auth",
60
63
  return;
61
64
  }
62
65
  if (!res.ok) {
63
- set_error("Could not resend code.");
66
+ set_error(t("otp.verify.error.resend_failed"));
64
67
  set_resend_state("idle");
65
68
  return;
66
69
  }
67
70
  set_resend_state("sent");
68
71
  }
69
72
  catch (_b) {
70
- set_error("Network error.");
73
+ set_error(t("otp.verify.error.resend_network"));
71
74
  set_resend_state("idle");
72
75
  }
73
76
  }
74
- return (_jsxs("form", { onSubmit: on_submit, className: className, "aria-label": "Enter sign-in code", children: [_jsxs("p", { className: "text-sm text-muted-foreground mb-3", children: ["Enter the 6-digit code sent to ", _jsx("strong", { children: email }), "."] }), _jsx(InputOTP, { maxLength: 6, value: code, onChange: (v) => set_code(v), inputMode: "numeric", autoComplete: "one-time-code", disabled: pending, "aria-label": "One-time code", children: _jsxs(InputOTPGroup, { children: [_jsx(InputOTPSlot, { index: 0 }), _jsx(InputOTPSlot, { index: 1 }), _jsx(InputOTPSlot, { index: 2 }), _jsx(InputOTPSlot, { index: 3 }), _jsx(InputOTPSlot, { index: 4 }), _jsx(InputOTPSlot, { index: 5 })] }) }), error && (_jsx("p", { role: "alert", className: "mt-3 text-sm text-destructive", children: error })), _jsx(Button, { type: "submit", disabled: pending || code.length !== 6, className: "mt-4 w-full", children: pending ? pending_label : submit_label }), _jsx("div", { className: "mt-3 text-sm text-center", children: resend_state === "sent" ? (_jsx("span", { className: "text-muted-foreground", children: "Code sent." })) : resend_state === "rate_limited" ? (_jsxs("span", { className: "text-muted-foreground", children: ["Wait ", resend_wait, "s before resending."] })) : (_jsx("button", { type: "button", onClick: on_resend, disabled: resend_state === "sending", className: "underline text-muted-foreground hover:text-foreground", children: resend_label })) })] }));
77
+ return (_jsxs("form", { onSubmit: on_submit, className: className, "aria-label": t("otp.verify.aria_form"), children: [_jsx("p", { className: "text-sm text-muted-foreground mb-3", children: t("otp.verify.description", { email }) }), _jsx(InputOTP, { maxLength: 6, value: code, onChange: (v) => set_code(v), inputMode: "numeric", autoComplete: "one-time-code", disabled: pending, "aria-label": t("otp.verify.aria_input"), children: _jsxs(InputOTPGroup, { children: [_jsx(InputOTPSlot, { index: 0 }), _jsx(InputOTPSlot, { index: 1 }), _jsx(InputOTPSlot, { index: 2 }), _jsx(InputOTPSlot, { index: 3 }), _jsx(InputOTPSlot, { index: 4 }), _jsx(InputOTPSlot, { index: 5 })] }) }), error && (_jsx("p", { role: "alert", className: "mt-3 text-sm text-destructive", children: error })), _jsx(Button, { type: "submit", disabled: pending || code.length !== 6, className: "mt-4 w-full", children: pending ? pending_label : submit_label }), _jsx("div", { className: "mt-3 text-sm text-center", children: resend_state === "sent" ? (_jsx("span", { className: "text-muted-foreground", children: "Code sent." })) : resend_state === "rate_limited" ? (_jsxs("span", { className: "text-muted-foreground", children: ["Wait ", resend_wait, "s before resending."] })) : (_jsx("button", { type: "button", onClick: on_resend, disabled: resend_state === "sending", className: "underline text-muted-foreground hover:text-foreground", children: resend_label })) })] }));
75
78
  }
@@ -1 +1 @@
1
- {"version":3,"file":"permission_denied_dialog.client.d.ts","sourceRoot":"","sources":["../../src/components/permission_denied_dialog.client.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,MAAM,WAAW,uBAAuB;IACtC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;CAC5C;AAkDD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,IAAI,EACJ,YAAY,EACZ,eAAoH,EACpH,gBAAgB,GACjB,EAAE,2BAA2B,4BAuJ7B"}
1
+ {"version":3,"file":"permission_denied_dialog.client.d.ts","sourceRoot":"","sources":["../../src/components/permission_denied_dialog.client.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,MAAM,WAAW,uBAAuB;IACtC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;CAC5C;AAkDD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,IAAI,EACJ,YAAY,EACZ,eAAwD,EACxD,gBAAgB,GACjB,EAAE,2BAA2B,4BAuJ7B"}
@@ -4,6 +4,9 @@
4
4
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  // section: imports
6
6
  import React, { useEffect, useState } from 'react';
7
+ import en from '../locales/en.json' with { type: 'json' };
8
+ import { createPackageT } from 'hazo_core/i18n';
9
+ const t = createPackageT('hazo_auth', en);
7
10
  // section: ui_probe
8
11
  // Lazy-loaded hazo_ui Dialog + Accordion primitives.
9
12
  // We use dynamic import so the build never hard-requires hazo_ui to be resolvable.
@@ -55,7 +58,7 @@ function sanitizeHref(url) {
55
58
  * Dialog shown when a user attempts an action they don't have permission for.
56
59
  * Uses hazo_ui primitives when available, falls back to plain HTML overlay if not.
57
60
  */
58
- export function PermissionDeniedDialog({ open, onOpenChange, friendlyMessage = "You don't have permission to perform this action. A request has been sent to your administrator.", technicalDetails, }) {
61
+ export function PermissionDeniedDialog({ open, onOpenChange, friendlyMessage = t('permission_denied.default_message'), technicalDetails, }) {
59
62
  var _a, _b, _c;
60
63
  const [uiReady, setUiReady] = useState(false);
61
64
  useEffect(() => {
@@ -83,23 +86,23 @@ export function PermissionDeniedDialog({ open, onOpenChange, friendlyMessage = "
83
86
  padding: 24,
84
87
  maxWidth: 480,
85
88
  width: '100%',
86
- }, children: [_jsx("h2", { style: { margin: '0 0 8px', fontSize: 18, fontWeight: 600 }, children: "Access Required" }), _jsx("p", { style: { margin: '0 0 16px', color: '#555' }, children: friendlyMessage }), _jsx("button", { onClick: () => onOpenChange(false), style: {
89
+ }, children: [_jsx("h2", { style: { margin: '0 0 8px', fontSize: 18, fontWeight: 600 }, children: t('permission_denied.heading') }), _jsx("p", { style: { margin: '0 0 16px', color: '#555' }, children: friendlyMessage }), _jsx("button", { onClick: () => onOpenChange(false), style: {
87
90
  padding: '8px 16px',
88
91
  background: '#000',
89
92
  color: '#fff',
90
93
  border: 'none',
91
94
  borderRadius: 4,
92
95
  cursor: 'pointer',
93
- }, children: "Close" })] }) }));
96
+ }, children: t('permission_denied.close_button') })] }) }));
94
97
  }
95
98
  // Full hazo_ui dialog with optional technical-details accordion
96
- return React.createElement(_Dialog, { open, onOpenChange }, React.createElement(_DialogContent, { className: 'sm:max-w-[480px]' }, React.createElement(_DialogHeader, null, React.createElement(_DialogTitle, null, 'Access Required'), React.createElement(_DialogDescription, null, friendlyMessage)), hasTechnical &&
97
- React.createElement(_Accordion, { type: 'single', collapsible: true, className: 'mt-4' }, React.createElement(_AccordionItem, { value: 'details' }, React.createElement(_AccordionTrigger, { className: 'text-sm text-gray-500' }, 'Technical details'), React.createElement(_AccordionContent, null, React.createElement('div', { className: 'text-xs text-gray-600 space-y-2 pt-2' }, ((_c = technicalDetails === null || technicalDetails === void 0 ? void 0 : technicalDetails.missing_permissions) === null || _c === void 0 ? void 0 : _c.length)
98
- ? React.createElement('div', null, React.createElement('span', { className: 'font-medium' }, 'Missing permissions: '), technicalDetails.missing_permissions.join(', '))
99
+ return React.createElement(_Dialog, { open, onOpenChange }, React.createElement(_DialogContent, { className: 'sm:max-w-[480px]' }, React.createElement(_DialogHeader, null, React.createElement(_DialogTitle, null, t('permission_denied.heading')), React.createElement(_DialogDescription, null, friendlyMessage)), hasTechnical &&
100
+ React.createElement(_Accordion, { type: 'single', collapsible: true, className: 'mt-4' }, React.createElement(_AccordionItem, { value: 'details' }, React.createElement(_AccordionTrigger, { className: 'text-sm text-gray-500' }, t('permission_denied.technical_details_label')), React.createElement(_AccordionContent, null, React.createElement('div', { className: 'text-xs text-gray-600 space-y-2 pt-2' }, ((_c = technicalDetails === null || technicalDetails === void 0 ? void 0 : technicalDetails.missing_permissions) === null || _c === void 0 ? void 0 : _c.length)
101
+ ? React.createElement('div', null, React.createElement('span', { className: 'font-medium' }, t('permission_denied.missing_permissions_label')), technicalDetails.missing_permissions.join(', '))
99
102
  : null, (technicalDetails === null || technicalDetails === void 0 ? void 0 : technicalDetails.action_label)
100
- ? React.createElement('div', null, React.createElement('span', { className: 'font-medium' }, 'Action: '), technicalDetails.action_label)
103
+ ? React.createElement('div', null, React.createElement('span', { className: 'font-medium' }, t('permission_denied.action_label')), technicalDetails.action_label)
101
104
  : null, (technicalDetails === null || technicalDetails === void 0 ? void 0 : technicalDetails.origin_url)
102
- ? React.createElement('div', null, React.createElement('span', { className: 'font-medium' }, 'Return to: '), (() => {
105
+ ? React.createElement('div', null, React.createElement('span', { className: 'font-medium' }, t('permission_denied.return_to_label')), (() => {
103
106
  const safe = sanitizeHref(technicalDetails.origin_url);
104
107
  return safe
105
108
  ? React.createElement('a', { href: safe, className: 'underline text-blue-600' }, technicalDetails.origin_url)
@@ -108,5 +111,5 @@ export function PermissionDeniedDialog({ open, onOpenChange, friendlyMessage = "
108
111
  : null)))), React.createElement('div', { className: 'mt-6 flex justify-end' }, React.createElement('button', {
109
112
  onClick: () => onOpenChange(false),
110
113
  className: 'px-4 py-2 text-sm font-medium bg-gray-900 text-white rounded-md hover:bg-gray-800',
111
- }, 'Close'))));
114
+ }, t('permission_denied.close_button')))));
112
115
  }
@@ -1 +1 @@
1
- {"version":3,"file":"password_validator.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/password_validator.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,0BAA0B,GAAG;IACvC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAGF;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,0BAA0B,GACvC,wBAAwB,CAuC1B"}
1
+ {"version":3,"file":"password_validator.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/password_validator.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,0BAA0B,GAAG;IACvC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAGF;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,0BAA0B,GACvC,wBAAwB,CAuC1B"}
@@ -14,20 +14,20 @@ export function validate_password(password, requirements) {
14
14
  };
15
15
  }
16
16
  if (password.length < requirements.minimum_length) {
17
- errors.push(`Password must be at least ${requirements.minimum_length} characters`);
17
+ errors.push(`Password must be at least ${requirements.minimum_length} characters.`);
18
18
  }
19
19
  if (requirements.require_uppercase && !/[A-Z]/.test(password)) {
20
- errors.push("Password must include at least one uppercase letter");
20
+ errors.push("Password must include at least one uppercase letter.");
21
21
  }
22
22
  if (requirements.require_lowercase && !/[a-z]/.test(password)) {
23
- errors.push("Password must include at least one lowercase letter");
23
+ errors.push("Password must include at least one lowercase letter.");
24
24
  }
25
25
  if (requirements.require_number && !/\d/.test(password)) {
26
- errors.push("Password must include at least one number");
26
+ errors.push("Password must include at least one number.");
27
27
  }
28
28
  if (requirements.require_special &&
29
29
  !/[!@#$%^&*(),.?":{}|<>\-_+=\[\];'/\\]/.test(password)) {
30
- errors.push("Password must include at least one special character");
30
+ errors.push("Password must include at least one special character.");
31
31
  }
32
32
  return {
33
33
  valid: errors.length === 0,
@@ -0,0 +1,383 @@
1
+ {
2
+ "validation.email_invalid": "enter a valid email address",
3
+ "validation.password_too_short": "Password must be at least {{count}} characters.",
4
+ "validation.password_missing_uppercase": "Password must include at least one uppercase letter.",
5
+ "validation.password_missing_lowercase": "Password must include at least one lowercase letter.",
6
+ "validation.password_missing_number": "Password must include at least one number.",
7
+ "validation.password_missing_special": "Password must include at least one special character.",
8
+ "validation.passwords_do_not_match": "Passwords do not match",
9
+ "shared.field.email.label": "Email address",
10
+ "shared.field.email.placeholder": "Enter your email address",
11
+ "shared.field.email.aria_label": "Email address input field",
12
+ "shared.cancel_button": "Cancel",
13
+ "shared.guard.already_logged_in_message": "You're already logged in.",
14
+ "shared.guard.already_logged_in_prop_default": "You are already logged in",
15
+ "shared.guard.return_home_default": "Return home",
16
+ "shared.guard.unauthorized_message_default": "You must be logged in to access this page.",
17
+ "shared.guard.login_button_default": "Go to login",
18
+ "shared.guard.access_denied_heading": "Access Denied",
19
+ "shared.guard.loading": "Loading...",
20
+ "shared.oauth_divider_default": "or continue with email",
21
+ "shared.oauth.google_button_default": "Continue with Google",
22
+ "shared.oauth.facebook_button_default": "Continue with Facebook",
23
+ "shared.oauth.signing_in": "Signing in...",
24
+ "shared.oauth_error.access_denied": "Access was denied. You may have cancelled the sign-in or your account is not authorized.",
25
+ "shared.oauth_error.signin_failed": "Something went wrong with Google sign-in. Please try again.",
26
+ "shared.oauth_error.generic": "An error occurred during sign-in. Please try again.",
27
+ "shared.password_field.show": "Show",
28
+ "shared.password_field.hide": "Hide",
29
+ "shared.form_action.submit_aria_default": "Submit form",
30
+ "shared.form_action.cancel_aria_default": "Cancel form",
31
+ "shared.logout.label": "Logout",
32
+ "shared.logout.logging_out": "Logging out...",
33
+ "shared.logout.success_toast": "Logged out successfully",
34
+ "shared.logout.error_default": "Logout failed",
35
+ "shared.logout.error_retry": "Logout failed. Please try again.",
36
+ "shared.sign_in_default": "Sign in",
37
+ "shared.unknown_error": "Unknown error occurred",
38
+ "shared.generic_error": "An error occurred",
39
+ "shared.invalid_server_response": "Server returned an invalid response. Please try again later.",
40
+ "shared.save_button": "Save",
41
+ "user_management.tabs.users": "Manage Users",
42
+ "user_management.tabs.roles": "Roles",
43
+ "user_management.tabs.permissions": "Permissions",
44
+ "user_management.tabs.scope_hierarchy": "Scope Hierarchy",
45
+ "user_management.tabs.user_scopes": "User Scopes",
46
+ "user_management.tabs.legal_docs": "Legal Docs",
47
+ "user_management.toast.load_users_failed": "Failed to load users",
48
+ "user_management.toast.load_permissions_failed": "Failed to load permissions",
49
+ "user_management.toast.deactivate_success": "User deactivated successfully",
50
+ "user_management.toast.deactivate_failed": "Failed to deactivate user",
51
+ "user_management.toast.delete_success": "User deleted successfully",
52
+ "user_management.toast.delete_failed": "Failed to delete user",
53
+ "user_management.toast.reset_password_success": "Password reset email sent successfully",
54
+ "user_management.toast.reset_password_failed": "Failed to send password reset email",
55
+ "user_management.toast.user_type_update_success": "User type updated successfully",
56
+ "user_management.toast.user_type_update_failed": "Failed to update user type",
57
+ "user_management.toast.migrate_success": "Migrated {{created_count}} permission(s) to database. {{skipped_count}} already existed.",
58
+ "user_management.toast.migrate_failed": "Failed to migrate permissions",
59
+ "user_management.toast.migrate_none_needed": "All permissions already exist in database. {{skipped_count}} skipped.",
60
+ "user_management.toast.migrate_created_list": "Created: {{list}}",
61
+ "user_management.toast.migrate_skipped_list": "Skipped: {{list}}",
62
+ "user_management.toast.permission_update_success": "Permission updated successfully",
63
+ "user_management.toast.permission_update_failed": "Failed to update permission",
64
+ "user_management.toast.permission_name_required": "Permission name is required",
65
+ "user_management.toast.permission_create_success": "Permission created successfully",
66
+ "user_management.toast.permission_create_failed": "Failed to create permission",
67
+ "user_management.toast.permission_delete_success": "Permission deleted successfully",
68
+ "user_management.toast.permission_delete_failed": "Failed to delete permission",
69
+ "user_management.deactivate_dialog.title": "Deactivate User",
70
+ "user_management.deactivate_dialog.description": "Are you sure you want to deactivate {{user}}? They will not be able to log in until reactivated.",
71
+ "user_management.deactivate_dialog.confirming": "Deactivating...",
72
+ "user_management.deactivate_dialog.confirm": "Deactivate",
73
+ "user_management.delete_dialog.title": "Delete User",
74
+ "user_management.delete_dialog.description": "This will permanently delete {{user}}'s account and all associated data. This cannot be undone.",
75
+ "user_management.delete_dialog.confirming": "Deleting...",
76
+ "user_management.delete_dialog.confirm": "Delete",
77
+ "user_management.reset_password_dialog.title": "Reset Password",
78
+ "user_management.reset_password_dialog.description": "Send a password reset email to {{email}}? They will receive a link to reset their password.",
79
+ "user_management.reset_password_dialog.confirming": "Sending...",
80
+ "user_management.reset_password_dialog.confirm": "Send Reset Email",
81
+ "user_management.edit_permission_dialog.title": "Edit Permission",
82
+ "user_management.edit_permission_dialog.description": "Update the description for permission: {{permission_name}}",
83
+ "user_management.edit_permission_dialog.description_label": "Description",
84
+ "user_management.edit_permission_dialog.description_placeholder": "Enter permission description",
85
+ "user_management.edit_permission_dialog.saving": "Saving...",
86
+ "user_management.add_permission_dialog.title": "Add New Permission",
87
+ "user_management.add_permission_dialog.description": "Create a new permission that can be assigned to roles.",
88
+ "user_management.add_permission_dialog.name_label": "Permission Name *",
89
+ "user_management.add_permission_dialog.name_placeholder": "Enter permission name (e.g., READ_USERS)",
90
+ "user_management.add_permission_dialog.description_placeholder": "Enter permission description (optional)",
91
+ "user_management.add_permission_dialog.creating": "Creating...",
92
+ "user_management.add_permission_dialog.create": "Create Permission",
93
+ "user_management.assign_roles_dialog.title": "Assign Roles to User",
94
+ "user_management.assign_roles_dialog.description": "Select roles to assign to {{user}}. Check the roles you want to assign, then click Save.",
95
+ "roles_matrix.add_role_button": "Add Role",
96
+ "roles_matrix.table.role_name_header": "Role Name",
97
+ "roles_matrix.table.permissions_header": "Permissions",
98
+ "roles_matrix.table.actions_header": "Actions",
99
+ "roles_matrix.table.empty": "No roles found. Add a role to get started.",
100
+ "roles_matrix.table.no_permissions": "No permissions assigned",
101
+ "roles_matrix.table.more_tag": "+{{count}} more",
102
+ "roles_matrix.table.show_less": "Show less",
103
+ "roles_matrix.table.collapse_title": "Click to collapse",
104
+ "roles_matrix.table.expand_title": "Click to expand all {{count}} permissions",
105
+ "roles_matrix.table.edit_title": "Click to edit all {{count}} permissions",
106
+ "roles_matrix.table.edit_permissions_title": "Edit permissions",
107
+ "roles_matrix.footer.saving": "Saving...",
108
+ "roles_matrix.add_dialog.title": "Add New Role",
109
+ "roles_matrix.add_dialog.description": "Enter a name for the new role. You can assign permissions after creating the role.",
110
+ "roles_matrix.add_dialog.name_label": "Role Name",
111
+ "roles_matrix.add_dialog.name_placeholder": "Enter role name",
112
+ "roles_matrix.edit_permissions_dialog.title": "Edit Permissions for: {{role_name}}",
113
+ "roles_matrix.edit_permissions_dialog.description": "Select which permissions to assign to this role.",
114
+ "roles_matrix.edit_permissions_dialog.select_all": "Select All",
115
+ "roles_matrix.edit_permissions_dialog.unselect_all": "Unselect All",
116
+ "roles_matrix.toast.load_failed": "Failed to load roles and permissions",
117
+ "roles_matrix.toast.role_name_required": "Role name is required",
118
+ "roles_matrix.toast.role_exists": "Role with this name already exists",
119
+ "roles_matrix.toast.role_added": "Role added. Don't forget to save changes.",
120
+ "roles_matrix.toast.changes_cancelled": "Changes cancelled. State reset to database values.",
121
+ "roles_matrix.toast.user_roles_update_success": "User roles updated successfully",
122
+ "roles_matrix.toast.user_roles_update_failed": "Failed to update user roles",
123
+ "roles_matrix.toast.save_success": "Roles and permissions saved successfully",
124
+ "roles_matrix.toast.save_failed": "Failed to save roles and permissions",
125
+ "scope_hierarchy.toast.load_failed": "Failed to load scope hierarchy",
126
+ "scope_hierarchy.toast.name_required": "Name is required",
127
+ "scope_hierarchy.toast.level_required": "Level is required",
128
+ "scope_hierarchy.toast.create_success": "Scope created successfully",
129
+ "scope_hierarchy.toast.create_failed": "Failed to create scope",
130
+ "scope_hierarchy.toast.update_success": "Scope updated successfully",
131
+ "scope_hierarchy.toast.update_failed": "Failed to update scope",
132
+ "scope_hierarchy.toast.delete_success": "Scope deleted successfully",
133
+ "scope_hierarchy.toast.delete_failed": "Failed to delete scope",
134
+ "user_scopes.toast.load_user_scopes_failed": "Failed to load user scopes",
135
+ "user_scopes.toast.select_scope_required": "Please select a scope from the tree",
136
+ "user_scopes.toast.select_role_required": "Please select a role",
137
+ "user_scopes.toast.assign_success": "Scope assigned successfully",
138
+ "user_scopes.toast.assign_failed": "Failed to assign scope",
139
+ "user_scopes.toast.remove_success": "Scope removed successfully",
140
+ "user_scopes.toast.remove_failed": "Failed to remove scope",
141
+ "login.heading": "Sign in to your account",
142
+ "login.sub_heading": "Enter your credentials to access your secure workspace.",
143
+ "login.submit_button": "Login",
144
+ "login.field.password.label": "Password",
145
+ "login.field.password.placeholder": "Enter your password",
146
+ "login.field.password.aria_label": "Password input field",
147
+ "login.forgot_password_link_default": "Forgot password?",
148
+ "login.create_account_link_default": "Create account",
149
+ "login.success_message_default": "Successfully logged in",
150
+ "login.aria.form": "Login form",
151
+ "login.aria.submit": "Submit login form",
152
+ "login.aria.cancel": "Cancel login form",
153
+ "login.aria.forgot_password_link": "Go to forgot password page",
154
+ "login.aria.create_account_link": "Go to create account page",
155
+ "login.email_not_verified_message": "Your email address has not been verified. Please verify your email to continue.",
156
+ "login.failed_message": "Login failed. Please try again.",
157
+ "login.errors.link_blocked_unverified": "This email is already registered but not verified. Please verify your email before linking a social account.",
158
+ "register.heading": "Create your hazo account",
159
+ "register.sub_heading": "Secure your access with editable fields powered by shadcn components.",
160
+ "register.submit_button": "Register",
161
+ "register.field.name.label": "Full name",
162
+ "register.field.name.placeholder": "Enter your full name",
163
+ "register.field.name.aria_label": "Full name input field",
164
+ "register.field.password.label": "Password",
165
+ "register.field.password.placeholder": "Enter your password",
166
+ "register.field.password.aria_label": "Password input field",
167
+ "register.field.confirm_password.label": "Re-enter password",
168
+ "register.field.confirm_password.placeholder": "Re-enter your password",
169
+ "register.field.confirm_password.aria_label": "Re-enter password input field",
170
+ "register.oauth.google_button_default": "Sign up with Google",
171
+ "register.aria.form": "Registration form",
172
+ "register.aria.submit": "Submit registration form",
173
+ "register.aria.cancel": "Cancel registration form",
174
+ "register.aria.sign_in_link": "Go to sign in page",
175
+ "register.sign_in_prompt": "Already have an account?",
176
+ "register.submitting_indicator": "Registering...",
177
+ "register.success_toast_title": "Registration successful!",
178
+ "register.success_toast_description": "Your account has been created successfully.",
179
+ "register.failed_message": "Registration failed",
180
+ "forgot_password.heading": "Forgot your password?",
181
+ "forgot_password.sub_heading": "Enter your email address and we'll send you a link to reset your password.",
182
+ "forgot_password.submit_button": "Send reset link",
183
+ "forgot_password.aria.form": "Forgot password form",
184
+ "forgot_password.aria.submit": "Submit forgot password form",
185
+ "forgot_password.aria.cancel": "Cancel forgot password form",
186
+ "forgot_password.submitting_indicator": "Sending reset link...",
187
+ "forgot_password.sign_in_prompt": "Remember your password?",
188
+ "forgot_password.google_only.heading": "Google Account Detected",
189
+ "forgot_password.google_only.message": "Your account was created using Google Sign-In and doesn't have a password set.",
190
+ "forgot_password.google_only.help_text": "Sign in with Google, then set a password in your account settings if you'd like to use email/password login.",
191
+ "forgot_password.google_only.sign_in_google": "Sign in with Google",
192
+ "forgot_password.my_settings_label_default": "Go to Settings",
193
+ "forgot_password.back_to": "Back to {{sign_in_label}}",
194
+ "forgot_password.success_toast_title": "Password reset link sent",
195
+ "forgot_password.success_toast_description": "If an account with that email exists, a password reset link has been sent.",
196
+ "forgot_password.failed_toast_title": "Password reset failed",
197
+ "forgot_password.request_failed": "Password reset request failed",
198
+ "forgot_password.request_failed_retry": "Password reset request failed. Please try again.",
199
+ "reset_password.heading": "Reset your password",
200
+ "reset_password.sub_heading": "Enter your new password below.",
201
+ "reset_password.submit_button": "Reset password",
202
+ "reset_password.field.password.label": "New password",
203
+ "reset_password.field.password.placeholder": "Enter your new password",
204
+ "reset_password.field.password.aria_label": "New password input field",
205
+ "reset_password.field.confirm_password.label": "Confirm new password",
206
+ "reset_password.field.confirm_password.placeholder": "Re-enter your new password",
207
+ "reset_password.field.confirm_password.aria_label": "Confirm new password input field",
208
+ "reset_password.link_invalid_message": "Reset password link invalid or has expired. Please go to Reset Password page to get a new link.",
209
+ "reset_password.success_message_default": "Password reset successfully. Redirecting to login...",
210
+ "reset_password.validating_message": "Validating reset token...",
211
+ "reset_password.invalid_link_heading": "Invalid Reset Link",
212
+ "reset_password.invalid_link_page_link": "Go to Reset Password page",
213
+ "reset_password.aria.form": "Reset password form",
214
+ "reset_password.aria.submit": "Submit reset password form",
215
+ "reset_password.aria.cancel": "Cancel reset password form",
216
+ "reset_password.submitting_indicator": "Resetting password...",
217
+ "reset_password.token_missing": "Reset token is missing",
218
+ "reset_password.success_toast": "Password reset successfully",
219
+ "reset_password.failed_message": "Failed to reset password",
220
+ "email_verification.heading": "Email verification",
221
+ "email_verification.sub_heading": "Verifying your email address...",
222
+ "email_verification.submit_button": "Resend verification email",
223
+ "email_verification.success.heading": "Email verified successfully",
224
+ "email_verification.success.message": "Your email address has been verified. You can now log in to your account.",
225
+ "email_verification.success.redirect_message": "Redirecting to login page in",
226
+ "email_verification.success.go_to_login_button": "Go to login",
227
+ "email_verification.error.heading": "Verification failed",
228
+ "email_verification.error.message": "The verification link is invalid or has expired.",
229
+ "email_verification.error.resend_form_heading": "Resend verification email",
230
+ "email_verification.no_token_message": "No verification token provided",
231
+ "email_verification.failed_message": "Email verification failed",
232
+ "email_verification.failed_retry_message": "Email verification failed. Please try again.",
233
+ "email_verification.resend_failed_title": "Failed to resend verification email",
234
+ "email_verification.resend_success_title": "Verification email sent",
235
+ "email_verification.resend_success_description": "If an account with that email exists and is not verified, a verification link has been sent.",
236
+ "email_verification.resend_failed_retry_message": "Failed to resend verification email. Please try again.",
237
+ "email_verification.resend_email_prompt": "Enter your email address to receive a new verification link.",
238
+ "email_verification.aria.resend_form": "Resend verification email form",
239
+ "email_verification.aria.resend_submit": "Submit resend verification email form",
240
+ "email_verification.aria.resend_cancel": "Cancel resend verification email form",
241
+ "email_verification.sending_indicator": "Sending verification email...",
242
+ "email_verification.already_verified_prompt": "Already verified?",
243
+ "email_verification.redirect_seconds_suffix": "seconds...",
244
+ "my_settings.heading": "My Settings",
245
+ "my_settings.page_title": "Account Settings",
246
+ "my_settings.profile_tab": "Profile",
247
+ "my_settings.security_tab": "Security",
248
+ "my_settings.last_logged_in_label": "Last logged in",
249
+ "my_settings.profile_picture_label": "Profile Picture",
250
+ "my_settings.change_password_button": "Change Password",
251
+ "my_settings.set_password.heading": "Set Password",
252
+ "my_settings.set_password.description": "Add a password to your account to enable email/password login in addition to Google sign-in.",
253
+ "my_settings.set_password.new_password_label": "New Password",
254
+ "my_settings.set_password.confirm_password_label": "Confirm Password",
255
+ "my_settings.set_password.submit_button": "Set Password",
256
+ "my_settings.set_password.new_password_placeholder": "Enter your new password",
257
+ "my_settings.set_password.confirm_password_placeholder": "Confirm your new password",
258
+ "my_settings.set_password.submitting": "Setting password...",
259
+ "my_settings.set_password.validation.min_length": "Password must be at least {{length}} characters long",
260
+ "my_settings.set_password.validation.uppercase_item": "uppercase letter",
261
+ "my_settings.set_password.validation.lowercase_item": "lowercase letter",
262
+ "my_settings.set_password.validation.number_item": "number",
263
+ "my_settings.set_password.validation.special_item": "special character",
264
+ "my_settings.set_password.validation.missing_requirements": "Password must contain at least one: {{list}}",
265
+ "my_settings.set_password.validation.confirm_required": "Please confirm your new password",
266
+ "my_settings.set_password.validation.mismatch": "Passwords do not match",
267
+ "my_settings.set_password.error.default": "Failed to set password",
268
+ "my_settings.set_password.success": "Password set successfully! You can now sign in with your email and password.",
269
+ "my_settings.connected_accounts.heading": "Connected Accounts",
270
+ "my_settings.connected_accounts.google_name": "Google",
271
+ "my_settings.connected_accounts.loading": "Loading...",
272
+ "my_settings.connected_accounts.connected": "Connected",
273
+ "my_settings.connected_accounts.not_connected": "Not connected",
274
+ "my_settings.connected_accounts.help_connected": "Your Google account is linked. You can sign in using either your password or Google.",
275
+ "my_settings.connected_accounts.help_not_connected": "Link your Google account to enable quick sign-in with Google.",
276
+ "otp.request.email_label": "Email address",
277
+ "otp.request.submit_label": "Send code",
278
+ "otp.request.pending_label": "Sending…",
279
+ "otp.request.aria_form": "Request sign-in code",
280
+ "otp.request.error.rate_limited": "Too many requests. Try again in {{seconds}}s.",
281
+ "otp.request.error.send_failed": "Could not send code. Please check the email address and try again.",
282
+ "otp.request.error.network": "Network error. Please try again.",
283
+ "otp.verify.submit_label": "Verify",
284
+ "otp.verify.pending_label": "Verifying…",
285
+ "otp.verify.resend_label": "Resend code",
286
+ "otp.verify.aria_form": "Enter sign-in code",
287
+ "otp.verify.aria_input": "One-time code",
288
+ "otp.verify.description": "Enter the 6-digit code sent to {{email}}.",
289
+ "otp.verify.error.invalid_code": "Invalid or expired code.",
290
+ "otp.verify.error.network": "Network error. Please try again.",
291
+ "otp.verify.resend.sent": "Code sent.",
292
+ "otp.verify.resend.rate_limited": "Wait {{seconds}}s before resending.",
293
+ "otp.verify.error.resend_failed": "Could not resend code.",
294
+ "otp.verify.error.resend_network": "Network error.",
295
+ "otp.layout.title": "Sign in with email code",
296
+ "otp.layout.subtitle": "Enter the code we sent to your email",
297
+ "otp.layout.image_alt": "Sign in with a one-time code",
298
+ "create_firm.title": "Create Your Firm",
299
+ "create_firm.subtitle": "Set up your organisation to get started",
300
+ "create_firm.cta": "Create Firm",
301
+ "user_scopes.tab.select_user_heading": "Select User",
302
+ "user_scopes.tab.search_placeholder": "Search users...",
303
+ "user_scopes.tab.no_users_found": "No users found.",
304
+ "user_scopes.tab.select_user_prompt": "Select a user to view scopes",
305
+ "user_scopes.tab.scopes_for": "Scopes for {{user}}",
306
+ "user_scopes.tab.inherited_scopes": "Also has access to {{count}} inherited scope(s)",
307
+ "user_scopes.tab.add_scope_button": "Add Scope",
308
+ "user_scopes.tab.no_user_selected": "Select a user from the left panel to manage their scope assignments.",
309
+ "user_scopes.tab.no_scopes_assigned": "No scopes assigned to this user.",
310
+ "user_scopes.tab.assign_first_scope": "Assign First Scope",
311
+ "user_scopes.tab.table.scope_name": "Scope Name",
312
+ "user_scopes.tab.table.level": "Level",
313
+ "user_scopes.tab.table.scope_id": "Scope ID",
314
+ "user_scopes.tab.table.assigned": "Assigned",
315
+ "user_scopes.tab.table.actions": "Actions",
316
+ "user_scopes.tab.table.unknown": "Unknown",
317
+ "user_scopes.tab.add_dialog.title": "Add Scope Assignment",
318
+ "user_scopes.tab.add_dialog.description": "Select a scope from the tree to assign to {{user}}.",
319
+ "user_scopes.tab.add_dialog.select_scope_label": "Select Scope",
320
+ "user_scopes.tab.add_dialog.no_scopes": "No scopes available. Create scopes in the Scope Hierarchy tab first.",
321
+ "user_scopes.tab.add_dialog.selected_prefix": "Selected:",
322
+ "user_scopes.tab.add_dialog.assign_role_label": "Assign Role",
323
+ "user_scopes.tab.add_dialog.loading_roles": "Loading roles...",
324
+ "user_scopes.tab.add_dialog.no_roles": "No roles available. Create roles in the Roles tab first.",
325
+ "user_scopes.tab.add_dialog.select_role_placeholder": "Select a role",
326
+ "user_scopes.tab.add_dialog.assigning": "Assigning...",
327
+ "user_scopes.tab.add_dialog.assign_button": "Assign Scope",
328
+ "user_scopes.tab.delete_dialog.title": "Remove Scope Assignment",
329
+ "user_scopes.tab.delete_dialog.description": "Are you sure you want to remove the scope \"{{scope}}\" from {{user}}? This will also revoke access to any child scopes.",
330
+ "user_scopes.tab.delete_dialog.removing": "Removing...",
331
+ "user_scopes.tab.delete_dialog.confirm": "Remove",
332
+ "scope_hierarchy.tab.manage_branding_title": "Manage branding",
333
+ "scope_hierarchy.tab.add_child_title": "Add child scope",
334
+ "scope_hierarchy.tab.edit_title": "Edit scope",
335
+ "scope_hierarchy.tab.delete_title": "Delete scope",
336
+ "scope_hierarchy.tab.refresh_button": "Refresh",
337
+ "scope_hierarchy.tab.add_root_button": "Add Root Scope",
338
+ "scope_hierarchy.tab.empty_message": "No scopes found. Create a root scope to get started.",
339
+ "scope_hierarchy.tab.create_first_button": "Create First Scope",
340
+ "scope_hierarchy.tab.selected_scope_heading": "Selected Scope",
341
+ "scope_hierarchy.tab.name_label": "Name:",
342
+ "scope_hierarchy.tab.level_label": "Level:",
343
+ "scope_hierarchy.tab.id_label": "ID:",
344
+ "scope_hierarchy.tab.parent_id_label": "Parent ID:",
345
+ "scope_hierarchy.tab.add_dialog.title_child": "Add Child Scope to \"{{parent}}\"",
346
+ "scope_hierarchy.tab.add_dialog.title_root": "Add Root Scope",
347
+ "scope_hierarchy.tab.add_dialog.description_child": "Create a new scope under \"{{parent}}\".",
348
+ "scope_hierarchy.tab.add_dialog.description_root": "Create a new root-level scope.",
349
+ "scope_hierarchy.tab.add_dialog.name_label": "Name *",
350
+ "scope_hierarchy.tab.add_dialog.name_placeholder": "e.g., Sydney Office",
351
+ "scope_hierarchy.tab.add_dialog.level_label": "Level Label *",
352
+ "scope_hierarchy.tab.add_dialog.level_placeholder": "e.g., HQ, Division, Department, Branch",
353
+ "scope_hierarchy.tab.add_dialog.level_help": "A descriptive label for this hierarchy level (e.g., \"HQ\", \"Division\", \"Department\")",
354
+ "scope_hierarchy.tab.add_dialog.creating": "Creating...",
355
+ "scope_hierarchy.tab.add_dialog.create_button": "Create",
356
+ "scope_hierarchy.tab.edit_dialog.title": "Edit Scope",
357
+ "scope_hierarchy.tab.edit_dialog.description": "Update scope: {{name}}",
358
+ "scope_hierarchy.tab.edit_dialog.name_placeholder": "Enter scope name",
359
+ "scope_hierarchy.tab.edit_dialog.level_placeholder": "e.g., HQ, Division, Department",
360
+ "scope_hierarchy.tab.edit_dialog.saving": "Saving...",
361
+ "scope_hierarchy.tab.edit_dialog.save_button": "Save",
362
+ "scope_hierarchy.tab.delete_dialog.title": "Delete Scope",
363
+ "scope_hierarchy.tab.delete_dialog.description": "Are you sure you want to delete \"{{name}}\"? This action cannot be undone and will also delete all child scopes.",
364
+ "scope_hierarchy.tab.delete_dialog.deleting": "Deleting...",
365
+ "scope_hierarchy.tab.delete_dialog.confirm": "Delete",
366
+ "permission_denied.default_message": "You don't have permission to perform this action. A request has been sent to your administrator.",
367
+ "permission_denied.heading": "Access Required",
368
+ "permission_denied.close_button": "Close",
369
+ "permission_denied.technical_details_label": "Technical details",
370
+ "permission_denied.missing_permissions_label": "Missing permissions: ",
371
+ "permission_denied.action_label": "Action: ",
372
+ "permission_denied.return_to_label": "Return to: ",
373
+ "my_settings.danger_zone.heading": "Danger Zone",
374
+ "my_settings.danger_zone.description": "Permanently delete your account and all associated data. This action cannot be undone.",
375
+ "my_settings.danger_zone.delete_button": "Delete my account",
376
+ "my_settings.danger_zone.dialog_title": "Delete your account?",
377
+ "my_settings.danger_zone.dialog_description": "This will permanently delete your account and all associated data. This action cannot be undone. To confirm, type your email address below.",
378
+ "my_settings.danger_zone.confirm_input_label": "Type your email address to confirm",
379
+ "my_settings.danger_zone.confirm_button": "Permanently delete my account",
380
+ "my_settings.danger_zone.deleting": "Deleting...",
381
+ "my_settings.danger_zone.error.default": "Failed to delete account",
382
+ "my_settings.danger_zone.success": "Your account has been deleted."
383
+ }
@@ -11,11 +11,11 @@ export declare function GET(request: NextRequest): Promise<NextResponse<{
11
11
  has_more: boolean;
12
12
  total_pages: number;
13
13
  };
14
- source: "node_modules" | "project";
14
+ source: "project" | "node_modules";
15
15
  }> | NextResponse<{
16
16
  success: boolean;
17
17
  categories: string[];
18
- source: "node_modules" | "project" | null;
18
+ source: "project" | "node_modules" | null;
19
19
  }> | NextResponse<{
20
20
  error: string;
21
21
  }>>;
@@ -46,7 +46,7 @@ export async function POST(request) {
46
46
  const password_config = get_password_requirements_config();
47
47
  const validation_result = validate_password(new_password, password_config);
48
48
  if (!validation_result.valid) {
49
- return NextResponse.json({ error: validation_result.errors.join(". ") }, { status: 400 });
49
+ return NextResponse.json({ error: validation_result.errors.join(" ") }, { status: 400 });
50
50
  }
51
51
  // Hash the new password
52
52
  const password_hash = await argon2.hash(new_password);
@@ -1 +1 @@
1
- {"version":3,"file":"default_strings.d.ts","sourceRoot":"","sources":["../../src/strings/default_strings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,SAAS,CAAC;QACrB,MAAM,CAAC,EAAE;YACP,uBAAuB,CAAC,EAAE,MAAM,CAAC;SAClC,CAAC;KACH,CAAC;IACF,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,SAAS,CAAA;KAAE,CAAC;IACrF,eAAe,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,cAAc,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,YAAY,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAClD,GAAG,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACnE;AAED,eAAO,MAAM,eAAe,EAAE,eAiB7B,CAAC"}
1
+ {"version":3,"file":"default_strings.d.ts","sourceRoot":"","sources":["../../src/strings/default_strings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,SAAS,CAAC;QACrB,MAAM,CAAC,EAAE;YACP,uBAAuB,CAAC,EAAE,MAAM,CAAC;SAClC,CAAC;KACH,CAAC;IACF,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,SAAS,CAAA;KAAE,CAAC;IACrF,eAAe,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,cAAc,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,YAAY,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAClD,GAAG,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACnE;AAED,eAAO,MAAM,eAAe,EAAE,eAiB7B,CAAC"}