@hexclave/tanstack-start 1.0.59 → 1.0.61

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 (78) hide show
  1. package/dist/{admin-app-impl-CBI31nSt.d.ts → admin-app-impl-AOPFLwlI.d.ts} +8 -8
  2. package/dist/{admin-app-impl-CBI31nSt.d.ts.map → admin-app-impl-AOPFLwlI.d.ts.map} +1 -1
  3. package/dist/components/api-key-dialogs.js +4 -4
  4. package/dist/components/credential-sign-in.js +3 -3
  5. package/dist/components/credential-sign-up.js +5 -5
  6. package/dist/components/elements/sidebar-layout.js +1 -1
  7. package/dist/components/elements/user-avatar.js +1 -1
  8. package/dist/components/magic-link-sign-in.js +5 -5
  9. package/dist/components/message-cards/predefined-message-card.js +1 -1
  10. package/dist/components/passkey-button.js +1 -1
  11. package/dist/components/profile-image-editor.js +1 -1
  12. package/dist/components/team-icon.js +1 -1
  13. package/dist/components/team-switcher.js +1 -1
  14. package/dist/components/user-button.js +1 -1
  15. package/dist/components-page/account-settings/editable-text.js +1 -1
  16. package/dist/components-page/account-settings/email-and-auth/emails-section.js +3 -3
  17. package/dist/components-page/account-settings/email-and-auth/password-section.js +3 -3
  18. package/dist/components-page/account-settings/teams/team-creation-page.js +3 -3
  19. package/dist/components-page/account-settings/teams/team-member-invitation-section.js +4 -4
  20. package/dist/components-page/account-settings.js +3 -3
  21. package/dist/components-page/auth-page.js +1 -1
  22. package/dist/components-page/cli-auth-confirm.js +1 -1
  23. package/dist/components-page/forgot-password.js +5 -5
  24. package/dist/components-page/hexclave-handler-client.js +1 -1
  25. package/dist/components-page/mfa.js +3 -3
  26. package/dist/components-page/oauth-callback.js +1 -1
  27. package/dist/components-page/onboarding.js +4 -4
  28. package/dist/components-page/password-reset.js +8 -8
  29. package/dist/components-page/team-creation.js +5 -5
  30. package/dist/esm/components/api-key-dialogs.js +4 -4
  31. package/dist/esm/components/credential-sign-in.js +3 -3
  32. package/dist/esm/components/credential-sign-up.js +5 -5
  33. package/dist/esm/components/elements/sidebar-layout.js +1 -1
  34. package/dist/esm/components/elements/user-avatar.js +1 -1
  35. package/dist/esm/components/magic-link-sign-in.js +5 -5
  36. package/dist/esm/components/message-cards/predefined-message-card.js +1 -1
  37. package/dist/esm/components/passkey-button.js +1 -1
  38. package/dist/esm/components/profile-image-editor.js +1 -1
  39. package/dist/esm/components/team-icon.js +1 -1
  40. package/dist/esm/components/team-switcher.js +1 -1
  41. package/dist/esm/components/user-button.js +1 -1
  42. package/dist/esm/components-page/account-settings/editable-text.js +1 -1
  43. package/dist/esm/components-page/account-settings/email-and-auth/emails-section.js +3 -3
  44. package/dist/esm/components-page/account-settings/email-and-auth/password-section.js +3 -3
  45. package/dist/esm/components-page/account-settings/teams/team-creation-page.js +3 -3
  46. package/dist/esm/components-page/account-settings/teams/team-member-invitation-section.js +4 -4
  47. package/dist/esm/components-page/account-settings.js +3 -3
  48. package/dist/esm/components-page/auth-page.js +1 -1
  49. package/dist/esm/components-page/cli-auth-confirm.js +1 -1
  50. package/dist/esm/components-page/forgot-password.js +5 -5
  51. package/dist/esm/components-page/hexclave-handler-client.js +1 -1
  52. package/dist/esm/components-page/mfa.js +3 -3
  53. package/dist/esm/components-page/oauth-callback.js +1 -1
  54. package/dist/esm/components-page/onboarding.js +4 -4
  55. package/dist/esm/components-page/password-reset.js +7 -7
  56. package/dist/esm/components-page/team-creation.js +5 -5
  57. package/dist/esm/generated/quetzal-translations.d.ts +2 -2
  58. package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts +5 -5
  59. package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.d.ts +3 -3
  60. package/dist/esm/lib/hexclave-app/apps/implementations/common.js +2 -2
  61. package/dist/esm/lib/hexclave-app/apps/implementations/server-app-impl.d.ts +2 -2
  62. package/dist/esm/lib/hexclave-app/users/index.d.ts +1 -1
  63. package/dist/generated/quetzal-translations.d.ts +1 -1
  64. package/dist/{hexclave-provider-Cbzn8XDz.d.ts → hexclave-provider-Cw3-EPyb.d.ts} +2 -2
  65. package/dist/{hexclave-provider-Cbzn8XDz.d.ts.map → hexclave-provider-Cw3-EPyb.d.ts.map} +1 -1
  66. package/dist/index.d.ts +1 -1
  67. package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts +1 -1
  68. package/dist/lib/hexclave-app/apps/implementations/client-app-impl.d.ts +1 -1
  69. package/dist/lib/hexclave-app/apps/implementations/common.js +2 -2
  70. package/dist/lib/hexclave-app/apps/implementations/index.d.ts +1 -1
  71. package/dist/lib/hexclave-app/apps/implementations/server-app-impl.d.ts +1 -1
  72. package/dist/providers/hexclave-provider.d.ts +1 -1
  73. package/dist/providers/translation-provider.d.ts +1 -1
  74. package/dist/{quetzal-translations-XeH3zQ9l.d.ts → quetzal-translations-5c-vl4-h.d.ts} +3 -3
  75. package/dist/{quetzal-translations-XeH3zQ9l.d.ts.map → quetzal-translations-5c-vl4-h.d.ts.map} +1 -1
  76. package/dist/{translation-provider-WOaZXqAz.d.ts → translation-provider-Ce6RTn0_.d.ts} +2 -2
  77. package/dist/{translation-provider-WOaZXqAz.d.ts.map → translation-provider-Ce6RTn0_.d.ts.map} +1 -1
  78. package/package.json +3 -3
@@ -5,24 +5,24 @@ Object.defineProperties(exports, {
5
5
  });
6
6
  const require_rolldown_runtime = require("../rolldown-runtime-D6vf50IK.js");
7
7
  let _hexclave_shared_dist_utils_promises = require("@hexclave/shared/dist/utils/promises");
8
- let _hookform_resolvers_yup = require("@hookform/resolvers/yup");
9
- let _hexclave_shared_dist_schema_fields = require("@hexclave/shared/dist/schema-fields");
10
8
  let _hexclave_ui = require("@hexclave/ui");
11
9
  let react = require("react");
12
- let react_hook_form = require("react-hook-form");
13
10
  let ___index_js = require("../index.js");
14
- let ___components_elements_form_warning_js = require("../components/elements/form-warning.js");
11
+ let ___components_elements_maybe_full_page_js = require("../components/elements/maybe-full-page.js");
15
12
  let ___lib_translations_js = require("../lib/translations.js");
16
13
  let react_jsx_runtime = require("react/jsx-runtime");
17
- let _hexclave_shared_dist_helpers_password = require("@hexclave/shared/dist/helpers/password");
18
- let yup = require("yup");
19
- yup = require_rolldown_runtime.__toESM(yup);
20
14
  let _hexclave_shared = require("@hexclave/shared");
21
- let ___components_elements_maybe_full_page_js = require("../components/elements/maybe-full-page.js");
22
15
  let _hexclave_shared_dist_utils_react = require("@hexclave/shared/dist/utils/react");
23
16
  let ___components_message_cards_message_card_js = require("../components/message-cards/message-card.js");
24
17
  let ___components_message_cards_predefined_message_card_js = require("../components/message-cards/predefined-message-card.js");
18
+ let _hookform_resolvers_yup = require("@hookform/resolvers/yup");
19
+ let _hexclave_shared_dist_schema_fields = require("@hexclave/shared/dist/schema-fields");
20
+ let react_hook_form = require("react-hook-form");
21
+ let ___components_elements_form_warning_js = require("../components/elements/form-warning.js");
25
22
  let _hexclave_shared_dist_utils_caches = require("@hexclave/shared/dist/utils/caches");
23
+ let _hexclave_shared_dist_helpers_password = require("@hexclave/shared/dist/helpers/password");
24
+ let yup = require("yup");
25
+ yup = require_rolldown_runtime.__toESM(yup);
26
26
  //#region src/components-page/password-reset.tsx
27
27
  function PasswordResetForm(props) {
28
28
  const { t } = (0, ___lib_translations_js.useTranslation)();
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  let _hexclave_shared_dist_utils_promises = require("@hexclave/shared/dist/utils/promises");
4
- let _hookform_resolvers_yup = require("@hookform/resolvers/yup");
5
- let _hexclave_shared_dist_schema_fields = require("@hexclave/shared/dist/schema-fields");
6
4
  let _hexclave_ui = require("@hexclave/ui");
7
5
  let react = require("react");
8
- let react_hook_form = require("react-hook-form");
9
6
  let ___index_js = require("../index.js");
10
- let ___components_elements_form_warning_js = require("../components/elements/form-warning.js");
7
+ let ___components_elements_maybe_full_page_js = require("../components/elements/maybe-full-page.js");
11
8
  let ___lib_translations_js = require("../lib/translations.js");
12
9
  let react_jsx_runtime = require("react/jsx-runtime");
13
- let ___components_elements_maybe_full_page_js = require("../components/elements/maybe-full-page.js");
10
+ let _hookform_resolvers_yup = require("@hookform/resolvers/yup");
11
+ let _hexclave_shared_dist_schema_fields = require("@hexclave/shared/dist/schema-fields");
12
+ let react_hook_form = require("react-hook-form");
13
+ let ___components_elements_form_warning_js = require("../components/elements/form-warning.js");
14
14
  //#region src/components-page/team-creation.tsx
15
15
  function TeamCreation(props) {
16
16
  const { t } = (0, ___lib_translations_js.useTranslation)();
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
3
3
  import { captureError } from "@hexclave/shared/dist/utils/errors";
4
- import { yupResolver } from "@hookform/resolvers/yup";
5
- import { yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
6
4
  import { ActionDialog, Button, CopyField, Input, Label, Typography } from "@hexclave/ui";
7
5
  import { useState } from "react";
8
- import { useForm } from "react-hook-form";
9
6
  import { useUser } from "../index.js";
10
- import { FormWarningText } from "../components/elements/form-warning.js";
11
7
  import { useTranslation } from "../lib/translations.js";
12
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { yupResolver } from "@hookform/resolvers/yup";
10
+ import { yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
11
+ import { useForm } from "react-hook-form";
12
+ import { FormWarningText } from "../components/elements/form-warning.js";
13
13
  //#region src/components/api-key-dialogs.tsx
14
14
  const neverInMs = 1e3 * 60 * 60 * 24 * 365 * 200;
15
15
  const expiresInOptions = {
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
3
- import { yupResolver } from "@hookform/resolvers/yup";
4
- import { passwordSchema, strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
5
3
  import { Button, Input, Label, PasswordInput } from "@hexclave/ui";
6
4
  import { useState } from "react";
7
- import { useForm } from "react-hook-form";
8
5
  import { useStackApp } from "../index.js";
9
6
  import { useTranslation } from "../lib/translations.js";
10
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { yupResolver } from "@hookform/resolvers/yup";
9
+ import { passwordSchema, strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
10
+ import { useForm } from "react-hook-form";
11
11
  import { FormWarningText } from "./elements/form-warning.js";
12
12
  import { StyledLink } from "./link.js";
13
13
  //#region src/components/credential-sign-in.tsx
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { runAsynchronously, runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
3
- import { yupResolver } from "@hookform/resolvers/yup";
4
- import { passwordSchema, strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
5
3
  import { Button, Input, Label, PasswordInput } from "@hexclave/ui";
6
4
  import { useState } from "react";
7
- import { useForm } from "react-hook-form";
8
5
  import { useTranslation } from "../lib/translations.js";
9
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
- import { FormWarningText } from "./elements/form-warning.js";
7
+ import { useStackApp } from "../lib/hooks.js";
8
+ import { yupResolver } from "@hookform/resolvers/yup";
9
+ import { passwordSchema, strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
10
+ import { useForm } from "react-hook-form";
11
11
  import { getPasswordError } from "@hexclave/shared/dist/helpers/password";
12
12
  import * as yup from "yup";
13
- import { useStackApp } from "../lib/hooks.js";
13
+ import { FormWarningText } from "./elements/form-warning.js";
14
14
  //#region src/components/credential-sign-up.tsx
15
15
  function CredentialSignUp(props) {
16
16
  const { t } = useTranslation();
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { Button, Typography, cn } from "@hexclave/ui";
3
+ import { XIcon } from "lucide-react";
3
4
  import "react";
4
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
- import { XIcon } from "lucide-react";
6
6
  import { useHash } from "@hexclave/shared/dist/hooks/use-hash";
7
7
  import { useStackApp } from "../../index.js";
8
8
  //#region src/components/elements/sidebar-layout.tsx
@@ -1,6 +1,6 @@
1
1
  import { Avatar, AvatarFallback, AvatarImage } from "@hexclave/ui";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
2
  import { UserRound } from "lucide-react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/components/elements/user-avatar.tsx
5
5
  const defaultSize = 34;
6
6
  function UserAvatar(props) {
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
3
- import { yupResolver } from "@hookform/resolvers/yup";
4
- import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
5
3
  import { Button, Input, InputOTP, InputOTPGroup, InputOTPSlot, Label, Typography } from "@hexclave/ui";
6
4
  import { useEffect, useState } from "react";
7
- import { useForm } from "react-hook-form";
8
5
  import { useTranslation } from "../lib/translations.js";
9
6
  import { jsx, jsxs } from "react/jsx-runtime";
10
- import { FormWarningText } from "./elements/form-warning.js";
11
- import { useStackApp } from "../lib/hooks.js";
12
7
  import { KnownErrors } from "@hexclave/shared";
8
+ import { useStackApp } from "../lib/hooks.js";
9
+ import { yupResolver } from "@hookform/resolvers/yup";
10
+ import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
11
+ import { useForm } from "react-hook-form";
12
+ import { FormWarningText } from "./elements/form-warning.js";
13
13
  //#region src/components/magic-link-sign-in.tsx
14
14
  function OTP(props) {
15
15
  const { t } = useTranslation();
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { Typography } from "@hexclave/ui";
3
3
  import { jsx } from "react/jsx-runtime";
4
+ import { useTranslation } from "../../lib/translations.js";
4
5
  import { useStackApp } from "../../index.js";
5
6
  import { MessageCard } from "./message-card.js";
6
- import { useTranslation } from "../../lib/translations.js";
7
7
  //#region src/components/message-cards/predefined-message-card.tsx
8
8
  function PredefinedMessageCard({ type, fullPage = false }) {
9
9
  const hexclaveApp = useStackApp();
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { Button } from "@hexclave/ui";
3
+ import { KeyRound } from "lucide-react";
3
4
  import { useId } from "react";
4
5
  import { useStackApp } from "../index.js";
5
6
  import { useTranslation } from "../lib/translations.js";
6
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
- import { KeyRound } from "lucide-react";
8
8
  //#region src/components/passkey-button.tsx
9
9
  function PasskeyButton({ type }) {
10
10
  const { t } = useTranslation();
@@ -1,9 +1,9 @@
1
1
  import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
2
2
  import { Button, Slider, Typography } from "@hexclave/ui";
3
+ import { Upload } from "lucide-react";
3
4
  import { useCallback, useState } from "react";
4
5
  import { useTranslation } from "../lib/translations.js";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
- import { Upload } from "lucide-react";
7
7
  import { fileToBase64 } from "@hexclave/shared/dist/utils/base64";
8
8
  import imageCompression from "browser-image-compression";
9
9
  import Cropper from "react-easy-crop";
@@ -1,6 +1,6 @@
1
1
  import { Avatar, AvatarImage, Typography } from "@hexclave/ui";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import { User2 } from "lucide-react";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/components/team-icon.tsx
5
5
  function TeamIcon(props) {
6
6
  if (props.team === "personal") return /* @__PURE__ */ jsx("div", {
@@ -2,11 +2,11 @@
2
2
  import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
3
3
  import { HexclaveAssertionError } from "@hexclave/shared/dist/utils/errors";
4
4
  import { Button, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Skeleton, Typography, cn } from "@hexclave/ui";
5
+ import { PlusCircle, Settings } from "lucide-react";
5
6
  import { Suspense, useMemo } from "react";
6
7
  import { useStackApp, useUser } from "../index.js";
7
8
  import { useTranslation } from "../lib/translations.js";
8
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
- import { PlusCircle, Settings } from "lucide-react";
10
10
  import { TeamIcon } from "./team-icon.js";
11
11
  //#region src/components/team-switcher.tsx
12
12
  function TeamSwitcher(props) {
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
3
3
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, Skeleton, Typography } from "@hexclave/ui";
4
+ import { CircleUser, LogIn, LogOut, SunMoon, UserPlus } from "lucide-react";
4
5
  import { Suspense } from "react";
5
6
  import { useStackApp, useUser } from "../index.js";
6
7
  import { useTranslation } from "../lib/translations.js";
7
8
  import { jsx, jsxs } from "react/jsx-runtime";
8
- import { CircleUser, LogIn, LogOut, SunMoon, UserPlus } from "lucide-react";
9
9
  import { UserAvatar } from "./elements/user-avatar.js";
10
10
  //#region src/components/user-button.tsx
11
11
  function Item(props) {
@@ -1,7 +1,7 @@
1
1
  import { Button, Input, Typography } from "@hexclave/ui";
2
+ import { Edit } from "lucide-react";
2
3
  import { useState } from "react";
3
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
- import { Edit } from "lucide-react";
5
5
  import { useTranslation } from "../../lib/translations.js";
6
6
  //#region src/components-page/account-settings/editable-text.tsx
7
7
  function EditableText(props) {
@@ -1,10 +1,10 @@
1
1
  import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
2
- import { yupResolver } from "@hookform/resolvers/yup";
3
- import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
4
2
  import { ActionCell, Badge, Button, Input, Table, TableBody, TableCell, TableRow, Typography } from "@hexclave/ui";
5
3
  import { useEffect, useState } from "react";
6
- import { useForm } from "react-hook-form";
7
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { yupResolver } from "@hookform/resolvers/yup";
6
+ import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
7
+ import { useForm } from "react-hook-form";
8
8
  import { useUser } from "../../../lib/hooks.js";
9
9
  import { useTranslation } from "../../../lib/translations.js";
10
10
  import { KnownErrors } from "@hexclave/shared/dist/known-errors";
@@ -1,10 +1,10 @@
1
1
  import { runAsynchronously, runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
2
- import { yupResolver } from "@hookform/resolvers/yup";
3
- import { passwordSchema, yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
4
2
  import { Button, Input, Label, PasswordInput, Typography } from "@hexclave/ui";
5
3
  import { useState } from "react";
6
- import { useForm } from "react-hook-form";
7
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
+ import { yupResolver } from "@hookform/resolvers/yup";
6
+ import { passwordSchema, yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
7
+ import { useForm } from "react-hook-form";
8
8
  import { getPasswordError } from "@hexclave/shared/dist/helpers/password";
9
9
  import * as yup from "yup";
10
10
  import { useUser } from "../../../lib/hooks.js";
@@ -1,10 +1,10 @@
1
1
  import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
2
- import { yupResolver } from "@hookform/resolvers/yup";
3
- import { yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
4
2
  import { Button, Input } from "@hexclave/ui";
5
3
  import { useState } from "react";
6
- import { useForm } from "react-hook-form";
7
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { yupResolver } from "@hookform/resolvers/yup";
6
+ import { yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
7
+ import { useForm } from "react-hook-form";
8
8
  import { useStackApp, useUser } from "../../../lib/hooks.js";
9
9
  import { useTranslation } from "../../../lib/translations.js";
10
10
  import { PageLayout } from "../page-layout.js";
@@ -1,11 +1,11 @@
1
1
  import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
2
- import { yupResolver } from "@hookform/resolvers/yup";
3
- import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
4
2
  import { Button, Input, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Typography } from "@hexclave/ui";
3
+ import { Trash } from "lucide-react";
5
4
  import { useEffect, useState } from "react";
6
- import { useForm } from "react-hook-form";
7
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
- import { Trash } from "lucide-react";
6
+ import { yupResolver } from "@hookform/resolvers/yup";
7
+ import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
8
+ import { useForm } from "react-hook-form";
9
9
  import { useUser } from "../../../lib/hooks.js";
10
10
  import { useTranslation } from "../../../lib/translations.js";
11
11
  import { FormWarningText } from "../../../components/elements/form-warning.js";
@@ -1,14 +1,13 @@
1
1
  "use client";
2
2
  import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
3
3
  import { Skeleton, Typography } from "@hexclave/ui";
4
+ import { Bell, CirclePlus, Contact, CreditCard, Key, Monitor, Settings, ShieldCheck } from "lucide-react";
4
5
  import { Suspense, useEffect, useMemo, useRef, useState } from "react";
5
6
  import { useStackApp, useUser } from "../index.js";
6
- import { useTranslation } from "../lib/translations.js";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
- import { Bell, CirclePlus, Contact, CreditCard, Key, Monitor, Settings, ShieldCheck } from "lucide-react";
9
7
  import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
10
8
  import { SidebarLayout } from "../components/elements/sidebar-layout.js";
11
9
  import { TeamIcon } from "../components/team-icon.js";
10
+ import { useTranslation } from "../lib/translations.js";
12
11
  import { ActiveSessionsPage } from "./account-settings/active-sessions/active-sessions-page.js";
13
12
  import { ApiKeysPage } from "./account-settings/api-keys/api-keys-page.js";
14
13
  import { EmailsAndAuthPage } from "./account-settings/email-and-auth/email-and-auth-page.js";
@@ -18,6 +17,7 @@ import { PaymentsPage } from "./account-settings/payments/payments-page.js";
18
17
  import { SettingsPage } from "./account-settings/settings/settings-page.js";
19
18
  import { TeamCreationPage } from "./account-settings/teams/team-creation-page.js";
20
19
  import { TeamPage } from "./account-settings/teams/team-page.js";
20
+ import { jsx, jsxs } from "react/jsx-runtime";
21
21
  //#region src/components-page/account-settings.tsx
22
22
  const iconMap = {
23
23
  Contact,
@@ -4,10 +4,10 @@ import { captureError } from "@hexclave/shared/dist/utils/errors";
4
4
  import { Skeleton, Tabs, TabsContent, TabsList, TabsTrigger, Typography, cn } from "@hexclave/ui";
5
5
  import { Suspense, useMemo } from "react";
6
6
  import { useStackApp, useUser } from "../index.js";
7
+ import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
7
8
  import { useTranslation } from "../lib/translations.js";
8
9
  import { jsx, jsxs } from "react/jsx-runtime";
9
10
  import { KnownError } from "@hexclave/shared";
10
- import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
11
11
  import { use } from "@hexclave/shared/dist/utils/react";
12
12
  import { CredentialSignIn } from "../components/credential-sign-in.js";
13
13
  import { CredentialSignUp } from "../components/credential-sign-up.js";
@@ -5,8 +5,8 @@ import { Typography } from "@hexclave/ui";
5
5
  import { useCallback, useEffect, useRef, useState } from "react";
6
6
  import { useTranslation } from "../lib/translations.js";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
- import { useStackApp } from "../lib/hooks.js";
9
8
  import { MessageCard } from "../components/message-cards/message-card.js";
9
+ import { useStackApp } from "../lib/hooks.js";
10
10
  //#region src/components-page/cli-auth-confirm.tsx
11
11
  async function postCliAuthComplete(app, body) {
12
12
  return await app[hexclaveAppInternalsSymbol].sendRequest("/auth/cli/complete", {
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
3
- import { yupResolver } from "@hookform/resolvers/yup";
4
- import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
5
3
  import { Button, Input, Label, Typography, cn } from "@hexclave/ui";
6
4
  import { useState } from "react";
7
- import { useForm } from "react-hook-form";
8
5
  import { useStackApp, useUser } from "../index.js";
9
- import { FormWarningText } from "../components/elements/form-warning.js";
6
+ import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
10
7
  import { useTranslation } from "../lib/translations.js";
11
8
  import { jsx, jsxs } from "react/jsx-runtime";
12
- import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
13
9
  import { StyledLink } from "../components/link.js";
14
10
  import { PredefinedMessageCard } from "../components/message-cards/predefined-message-card.js";
11
+ import { yupResolver } from "@hookform/resolvers/yup";
12
+ import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
13
+ import { useForm } from "react-hook-form";
14
+ import { FormWarningText } from "../components/elements/form-warning.js";
15
15
  //#region src/components-page/forgot-password.tsx
16
16
  function ForgotPasswordForm({ onSent }) {
17
17
  const { t } = useTranslation();
@@ -3,13 +3,13 @@ import { HexclaveAssertionError, captureError } from "@hexclave/shared/dist/util
3
3
  import { Suspense, useEffect, useMemo, useRef, useSyncExternalStore } from "react";
4
4
  import { SignIn, SignUp } from "../index.js";
5
5
  import { jsx } from "react/jsx-runtime";
6
- import { useStackApp as useStackApp$1 } from "../lib/hooks.js";
7
6
  import { KnownError } from "@hexclave/shared";
8
7
  import { use } from "@hexclave/shared/dist/utils/react";
9
8
  import { KnownErrorMessageCard } from "../components/message-cards/known-error-message-card.js";
10
9
  import { MessageCard as MessageCard$1 } from "../components/message-cards/message-card.js";
11
10
  import { PredefinedMessageCard } from "../components/message-cards/predefined-message-card.js";
12
11
  import { CliAuthConfirmation } from "./cli-auth-confirm.js";
12
+ import { useStackApp as useStackApp$1 } from "../lib/hooks.js";
13
13
  import { hexclaveAppInternalsSymbol } from "../lib/hexclave-app/index.js";
14
14
  import { filterUndefined } from "@hexclave/shared/dist/utils/objects";
15
15
  import { getRelativePart } from "@hexclave/shared/dist/utils/urls";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { Button, InputOTP, InputOTPGroup, InputOTPSlot, Spinner, Typography, cn } from "@hexclave/ui";
3
+ import { CheckIcon } from "lucide-react";
3
4
  import { useEffect, useMemo, useRef, useState } from "react";
4
5
  import { useStackApp } from "../index.js";
5
- import { FormWarningText } from "../components/elements/form-warning.js";
6
+ import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
6
7
  import { useTranslation } from "../lib/translations.js";
7
8
  import { jsx, jsxs } from "react/jsx-runtime";
8
9
  import { KnownErrors } from "@hexclave/shared";
9
- import { CheckIcon } from "lucide-react";
10
- import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
10
+ import { FormWarningText } from "../components/elements/form-warning.js";
11
11
  //#region src/components-page/mfa.tsx
12
12
  function MfaForm({ onSuccess, onCancel }) {
13
13
  const hexclaveApp = useStackApp();
@@ -5,10 +5,10 @@ import { captureError } from "@hexclave/shared/dist/utils/errors";
5
5
  import { Spinner, cn } from "@hexclave/ui";
6
6
  import { useEffect, useRef, useState } from "react";
7
7
  import { useStackApp } from "../index.js";
8
+ import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
8
9
  import { useTranslation } from "../lib/translations.js";
9
10
  import { jsx, jsxs } from "react/jsx-runtime";
10
11
  import { KnownError } from "@hexclave/shared";
11
- import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
12
12
  import { StyledLink } from "../components/link.js";
13
13
  import { ErrorPage } from "./error-page.js";
14
14
  //#region src/components-page/oauth-callback.tsx
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { runAsynchronously, runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
3
- import { yupResolver } from "@hookform/resolvers/yup";
4
- import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
5
3
  import { Button, Input, Typography } from "@hexclave/ui";
6
4
  import { useState } from "react";
7
- import { useForm } from "react-hook-form";
8
5
  import { useStackApp, useUser } from "../index.js";
9
- import { FormWarningText } from "../components/elements/form-warning.js";
10
6
  import { useTranslation } from "../lib/translations.js";
11
7
  import { jsx, jsxs } from "react/jsx-runtime";
12
8
  import { MessageCard as MessageCard$1 } from "../components/message-cards/message-card.js";
9
+ import { yupResolver } from "@hookform/resolvers/yup";
10
+ import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
11
+ import { useForm } from "react-hook-form";
12
+ import { FormWarningText } from "../components/elements/form-warning.js";
13
13
  //#region src/components-page/onboarding.tsx
14
14
  function Onboarding(props) {
15
15
  const { t } = useTranslation();
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
  import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
3
- import { yupResolver } from "@hookform/resolvers/yup";
4
- import { passwordSchema, yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
5
3
  import { Button, Label, PasswordInput, Typography, cn } from "@hexclave/ui";
6
4
  import { useState } from "react";
7
- import { useForm } from "react-hook-form";
8
5
  import { useStackApp } from "../index.js";
9
- import { FormWarningText } from "../components/elements/form-warning.js";
6
+ import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
10
7
  import { useTranslation } from "../lib/translations.js";
11
8
  import { jsx, jsxs } from "react/jsx-runtime";
12
- import { getPasswordError } from "@hexclave/shared/dist/helpers/password";
13
- import * as yup from "yup";
14
9
  import { KnownErrors } from "@hexclave/shared";
15
- import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
16
10
  import { use } from "@hexclave/shared/dist/utils/react";
17
11
  import { MessageCard as MessageCard$1 } from "../components/message-cards/message-card.js";
18
12
  import { PredefinedMessageCard } from "../components/message-cards/predefined-message-card.js";
13
+ import { yupResolver } from "@hookform/resolvers/yup";
14
+ import { passwordSchema, yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
15
+ import { useForm } from "react-hook-form";
16
+ import { FormWarningText } from "../components/elements/form-warning.js";
19
17
  import { cacheFunction } from "@hexclave/shared/dist/utils/caches";
18
+ import { getPasswordError } from "@hexclave/shared/dist/helpers/password";
19
+ import * as yup from "yup";
20
20
  //#region src/components-page/password-reset.tsx
21
21
  function PasswordResetForm(props) {
22
22
  const { t } = useTranslation();
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
3
- import { yupResolver } from "@hookform/resolvers/yup";
4
- import { yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
5
3
  import { Button, Input, Label, Typography } from "@hexclave/ui";
6
4
  import { useState } from "react";
7
- import { useForm } from "react-hook-form";
8
5
  import { MessageCard, useStackApp, useUser } from "../index.js";
9
- import { FormWarningText } from "../components/elements/form-warning.js";
6
+ import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
10
7
  import { useTranslation } from "../lib/translations.js";
11
8
  import { jsx, jsxs } from "react/jsx-runtime";
12
- import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
9
+ import { yupResolver } from "@hookform/resolvers/yup";
10
+ import { yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
11
+ import { useForm } from "react-hook-form";
12
+ import { FormWarningText } from "../components/elements/form-warning.js";
13
13
  //#region src/components-page/team-creation.tsx
14
14
  function TeamCreation(props) {
15
15
  const { t } = useTranslation();