@hexclave/next 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/api-key-dialogs.js +5 -5
- package/dist/components/credential-sign-in.js +3 -3
- package/dist/components/credential-sign-up.js +5 -5
- package/dist/components/elements/sidebar-layout.js +1 -1
- package/dist/components/elements/user-avatar.js +1 -1
- package/dist/components/magic-link-sign-in.js +5 -5
- package/dist/components/message-cards/predefined-message-card.js +1 -1
- package/dist/components/passkey-button.js +1 -1
- package/dist/components/profile-image-editor.js +1 -1
- package/dist/components/team-icon.js +1 -1
- package/dist/components/team-switcher.js +2 -2
- package/dist/components/user-button.js +1 -1
- package/dist/components-page/account-settings/active-sessions/active-sessions-page.js +1 -1
- package/dist/components-page/account-settings/editable-text.js +1 -1
- package/dist/components-page/account-settings/email-and-auth/emails-section.js +3 -3
- package/dist/components-page/account-settings/email-and-auth/mfa-section.js +1 -1
- package/dist/components-page/account-settings/email-and-auth/password-section.js +3 -3
- package/dist/components-page/account-settings/teams/team-api-keys-section.js +1 -1
- package/dist/components-page/account-settings/teams/team-creation-page.js +3 -3
- package/dist/components-page/account-settings/teams/team-member-invitation-section.js +4 -4
- package/dist/components-page/account-settings.js +3 -3
- package/dist/components-page/auth-page.js +2 -2
- package/dist/components-page/cli-auth-confirm.js +1 -1
- package/dist/components-page/email-verification.js +1 -1
- package/dist/components-page/forgot-password.js +5 -5
- package/dist/components-page/hexclave-handler-client.js +2 -2
- package/dist/components-page/magic-link-callback.js +1 -1
- package/dist/components-page/mfa.js +3 -3
- package/dist/components-page/oauth-callback.js +2 -2
- package/dist/components-page/onboarding.js +4 -4
- package/dist/components-page/password-reset.js +8 -8
- package/dist/components-page/team-creation.js +5 -5
- package/dist/dev-tool/index.js +1 -1
- package/dist/esm/components/api-key-dialogs.js +5 -5
- package/dist/esm/components/credential-sign-in.js +3 -3
- package/dist/esm/components/credential-sign-up.js +5 -5
- package/dist/esm/components/elements/sidebar-layout.js +1 -1
- package/dist/esm/components/elements/user-avatar.js +1 -1
- package/dist/esm/components/magic-link-sign-in.js +5 -5
- package/dist/esm/components/message-cards/predefined-message-card.js +1 -1
- package/dist/esm/components/passkey-button.js +1 -1
- package/dist/esm/components/profile-image-editor.js +1 -1
- package/dist/esm/components/team-icon.js +1 -1
- package/dist/esm/components/team-switcher.js +2 -2
- package/dist/esm/components/user-button.js +1 -1
- package/dist/esm/components-page/account-settings/active-sessions/active-sessions-page.js +1 -1
- package/dist/esm/components-page/account-settings/editable-text.js +1 -1
- package/dist/esm/components-page/account-settings/email-and-auth/emails-section.js +3 -3
- package/dist/esm/components-page/account-settings/email-and-auth/mfa-section.js +1 -1
- package/dist/esm/components-page/account-settings/email-and-auth/password-section.js +3 -3
- package/dist/esm/components-page/account-settings/teams/team-api-keys-section.js +1 -1
- package/dist/esm/components-page/account-settings/teams/team-creation-page.js +3 -3
- package/dist/esm/components-page/account-settings/teams/team-member-invitation-section.js +4 -4
- package/dist/esm/components-page/account-settings.d.ts +1 -1
- package/dist/esm/components-page/account-settings.js +3 -3
- package/dist/esm/components-page/auth-page.js +2 -2
- package/dist/esm/components-page/cli-auth-confirm.js +1 -1
- package/dist/esm/components-page/email-verification.js +1 -1
- package/dist/esm/components-page/forgot-password.js +5 -5
- package/dist/esm/components-page/hexclave-handler-client.js +2 -2
- package/dist/esm/components-page/magic-link-callback.js +1 -1
- package/dist/esm/components-page/mfa.js +3 -3
- package/dist/esm/components-page/oauth-callback.js +2 -2
- package/dist/esm/components-page/onboarding.js +4 -4
- package/dist/esm/components-page/password-reset.js +7 -7
- package/dist/esm/components-page/team-creation.js +5 -5
- package/dist/esm/dev-tool/index.js +1 -1
- package/dist/esm/generated/quetzal-translations.d.ts +2 -2
- package/dist/esm/lib/auth.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/common.js +2 -2
- package/dist/esm/lib/hexclave-app/apps/implementations/server-app-impl.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/server-app-impl.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.js +1 -1
- package/dist/esm/lib/hexclave-app/users/index.d.ts +1 -1
- package/dist/esm/providers/translation-provider.js +1 -1
- package/dist/generated/quetzal-translations.d.ts +2 -2
- package/dist/lib/auth.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/client-app-impl.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/common.js +2 -2
- package/dist/lib/hexclave-app/apps/implementations/server-app-impl.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/session-replay.js +1 -1
- package/dist/providers/translation-provider.js +1 -1
- package/package.json +4 -4
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
4
|
-
import { yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
|
|
5
|
-
import { captureError } from "@hexclave/shared/dist/utils/errors";
|
|
6
3
|
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
7
4
|
import { ActionDialog, Button, CopyField, Input, Label, Typography } from "@hexclave/ui";
|
|
8
5
|
import { useState } from "react";
|
|
9
|
-
import { useForm } from "react-hook-form";
|
|
10
6
|
import { useUser } from "../index.js";
|
|
11
|
-
import { FormWarningText } from "../components/elements/form-warning.js";
|
|
12
7
|
import { useTranslation } from "../lib/translations.js";
|
|
13
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { captureError } from "@hexclave/shared/dist/utils/errors";
|
|
10
|
+
import { yupResolver } from "@hookform/resolvers/yup";
|
|
11
|
+
import { yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
|
|
12
|
+
import { useForm } from "react-hook-form";
|
|
13
|
+
import { FormWarningText } from "../components/elements/form-warning.js";
|
|
14
14
|
|
|
15
15
|
//#region src/components/api-key-dialogs.tsx
|
|
16
16
|
const neverInMs = 1e3 * 60 * 60 * 24 * 365 * 200;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
4
|
-
import { passwordSchema, strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
|
|
5
3
|
import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
|
|
6
4
|
import { Button, Input, Label, PasswordInput } from "@hexclave/ui";
|
|
7
5
|
import { useState } from "react";
|
|
8
|
-
import { useForm } from "react-hook-form";
|
|
9
6
|
import { useStackApp } from "../index.js";
|
|
10
7
|
import { useTranslation } from "../lib/translations.js";
|
|
11
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { yupResolver } from "@hookform/resolvers/yup";
|
|
10
|
+
import { passwordSchema, strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
|
|
11
|
+
import { useForm } from "react-hook-form";
|
|
12
12
|
import { FormWarningText } from "./elements/form-warning.js";
|
|
13
13
|
import { StyledLink } from "./link.js";
|
|
14
14
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
4
|
-
import { passwordSchema, strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
|
|
5
3
|
import { runAsynchronously, runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
|
|
6
4
|
import { Button, Input, Label, PasswordInput } from "@hexclave/ui";
|
|
7
5
|
import React, { useState } from "react";
|
|
8
|
-
import { useForm } from "react-hook-form";
|
|
9
6
|
import { useTranslation } from "../lib/translations.js";
|
|
10
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import {
|
|
8
|
+
import { useStackApp } from "../lib/hooks.js";
|
|
9
|
+
import { yupResolver } from "@hookform/resolvers/yup";
|
|
10
|
+
import { passwordSchema, strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
|
|
11
|
+
import { useForm } from "react-hook-form";
|
|
12
12
|
import { getPasswordError } from "@hexclave/shared/dist/helpers/password";
|
|
13
13
|
import * as yup from "yup";
|
|
14
|
-
import {
|
|
14
|
+
import { FormWarningText } from "./elements/form-warning.js";
|
|
15
15
|
|
|
16
16
|
//#region src/components/credential-sign-up.tsx
|
|
17
17
|
function CredentialSignUp(props) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { Button, Typography, cn } from "@hexclave/ui";
|
|
4
|
+
import { XIcon } from "lucide-react";
|
|
4
5
|
import React from "react";
|
|
5
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { XIcon } from "lucide-react";
|
|
7
7
|
import { useHash } from "@hexclave/shared/dist/hooks/use-hash";
|
|
8
8
|
import { useStackApp } from "../../index.js";
|
|
9
9
|
|
|
@@ -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
|
|
|
5
5
|
//#region src/components/elements/user-avatar.tsx
|
|
6
6
|
const defaultSize = 34;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
4
|
-
import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
|
|
5
3
|
import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
|
|
6
4
|
import { Button, Input, InputOTP, InputOTPGroup, InputOTPSlot, Label, Typography } from "@hexclave/ui";
|
|
7
5
|
import { useEffect, useState } from "react";
|
|
8
|
-
import { useForm } from "react-hook-form";
|
|
9
6
|
import { useTranslation } from "../lib/translations.js";
|
|
10
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import { FormWarningText } from "./elements/form-warning.js";
|
|
12
|
-
import { useStackApp } from "../lib/hooks.js";
|
|
13
8
|
import { KnownErrors } from "@hexclave/shared";
|
|
9
|
+
import { useStackApp } from "../lib/hooks.js";
|
|
10
|
+
import { yupResolver } from "@hookform/resolvers/yup";
|
|
11
|
+
import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
|
|
12
|
+
import { useForm } from "react-hook-form";
|
|
13
|
+
import { FormWarningText } from "./elements/form-warning.js";
|
|
14
14
|
|
|
15
15
|
//#region src/components/magic-link-sign-in.tsx
|
|
16
16
|
function OTP(props) {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { Typography } from "@hexclave/ui";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { useTranslation } from "../../lib/translations.js";
|
|
5
6
|
import { useStackApp } from "../../index.js";
|
|
6
7
|
import { MessageCard } from "./message-card.js";
|
|
7
|
-
import { useTranslation } from "../../lib/translations.js";
|
|
8
8
|
|
|
9
9
|
//#region src/components/message-cards/predefined-message-card.tsx
|
|
10
10
|
function PredefinedMessageCard({ type, fullPage = false }) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { Button } from "@hexclave/ui";
|
|
4
|
+
import { KeyRound } from "lucide-react";
|
|
4
5
|
import { useId } from "react";
|
|
5
6
|
import { useStackApp } from "../index.js";
|
|
6
7
|
import { useTranslation } from "../lib/translations.js";
|
|
7
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { KeyRound } from "lucide-react";
|
|
9
9
|
|
|
10
10
|
//#region src/components/passkey-button.tsx
|
|
11
11
|
function PasskeyButton({ type }) {
|
|
@@ -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,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { HexclaveAssertionError } from "@hexclave/shared/dist/utils/errors";
|
|
4
3
|
import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
|
|
5
4
|
import { Button, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Skeleton, Typography, cn } from "@hexclave/ui";
|
|
5
|
+
import { PlusCircle, Settings } from "lucide-react";
|
|
6
6
|
import { Suspense, useMemo } from "react";
|
|
7
7
|
import { useStackApp, useUser } from "../index.js";
|
|
8
8
|
import { useTranslation } from "../lib/translations.js";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import {
|
|
10
|
+
import { HexclaveAssertionError } from "@hexclave/shared/dist/utils/errors";
|
|
11
11
|
import { TeamIcon } from "./team-icon.js";
|
|
12
12
|
|
|
13
13
|
//#region src/components/team-switcher.tsx
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
|
|
4
4
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, Skeleton, Typography } from "@hexclave/ui";
|
|
5
|
+
import { CircleUser, LogIn, LogOut, SunMoon, UserPlus } from "lucide-react";
|
|
5
6
|
import React, { Suspense } from "react";
|
|
6
7
|
import { useStackApp, useUser } from "../index.js";
|
|
7
8
|
import { useTranslation } from "../lib/translations.js";
|
|
8
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { CircleUser, LogIn, LogOut, SunMoon, UserPlus } from "lucide-react";
|
|
10
10
|
import { UserAvatar } from "./elements/user-avatar.js";
|
|
11
11
|
|
|
12
12
|
//#region src/components/user-button.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { captureError } from "@hexclave/shared/dist/utils/errors";
|
|
2
1
|
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
3
2
|
import { ActionCell, Badge, Button, Skeleton, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Typography } from "@hexclave/ui";
|
|
4
3
|
import { useEffect, useState } from "react";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { captureError } from "@hexclave/shared/dist/utils/errors";
|
|
6
6
|
import { fromNow } from "@hexclave/shared/dist/utils/dates";
|
|
7
7
|
import { useUser } from "../../../lib/hooks.js";
|
|
8
8
|
import { useTranslation } from "../../../lib/translations.js";
|
|
@@ -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
|
|
|
7
7
|
//#region src/components-page/account-settings/editable-text.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
2
|
-
import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
|
|
3
1
|
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
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,8 +1,8 @@
|
|
|
1
|
-
import { throwErr } from "@hexclave/shared/dist/utils/errors";
|
|
2
1
|
import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
|
|
3
2
|
import { Button, Input, Typography } from "@hexclave/ui";
|
|
4
3
|
import { useEffect, useState } from "react";
|
|
5
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { throwErr } from "@hexclave/shared/dist/utils/errors";
|
|
6
6
|
import { useStackApp, useUser } from "../../../lib/hooks.js";
|
|
7
7
|
import { useTranslation } from "../../../lib/translations.js";
|
|
8
8
|
import { createTOTPKeyURI, verifyTOTP } from "@oslojs/otp";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
2
|
-
import { passwordSchema, yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
|
|
3
1
|
import { runAsynchronously, runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { HexclaveAssertionError } from "@hexclave/shared/dist/utils/errors";
|
|
2
1
|
import { Button } from "@hexclave/ui";
|
|
3
2
|
import { useState } from "react";
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { HexclaveAssertionError } from "@hexclave/shared/dist/utils/errors";
|
|
5
5
|
import { useStackApp, useUser } from "../../../lib/hooks.js";
|
|
6
6
|
import { useTranslation } from "../../../lib/translations.js";
|
|
7
7
|
import { CreateApiKeyDialog, ShowApiKeyDialog } from "../../../components/api-key-dialogs.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
2
|
-
import { yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
|
|
3
1
|
import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
|
|
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
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
2
|
-
import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
|
|
3
1
|
import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
|
|
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 {
|
|
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";
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
|
|
4
4
|
import { Skeleton, Typography } from "@hexclave/ui";
|
|
5
|
+
import { Bell, CirclePlus, Contact, CreditCard, Key, Monitor, Settings, ShieldCheck } from "lucide-react";
|
|
5
6
|
import React, { Suspense, useEffect, useMemo, useRef, useState } from "react";
|
|
6
7
|
import { useStackApp, useUser } from "../index.js";
|
|
7
|
-
import { useTranslation } from "../lib/translations.js";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { Bell, CirclePlus, Contact, CreditCard, Key, Monitor, Settings, ShieldCheck } from "lucide-react";
|
|
10
8
|
import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
|
|
11
9
|
import { SidebarLayout } from "../components/elements/sidebar-layout.js";
|
|
12
10
|
import { TeamIcon } from "../components/team-icon.js";
|
|
11
|
+
import { useTranslation } from "../lib/translations.js";
|
|
13
12
|
import { ActiveSessionsPage } from "./account-settings/active-sessions/active-sessions-page.js";
|
|
14
13
|
import { ApiKeysPage } from "./account-settings/api-keys/api-keys-page.js";
|
|
15
14
|
import { EmailsAndAuthPage } from "./account-settings/email-and-auth/email-and-auth-page.js";
|
|
@@ -19,6 +18,7 @@ import { PaymentsPage } from "./account-settings/payments/payments-page.js";
|
|
|
19
18
|
import { SettingsPage } from "./account-settings/settings/settings-page.js";
|
|
20
19
|
import { TeamCreationPage } from "./account-settings/teams/team-creation-page.js";
|
|
21
20
|
import { TeamPage } from "./account-settings/teams/team-page.js";
|
|
21
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
22
|
|
|
23
23
|
//#region src/components-page/account-settings.tsx
|
|
24
24
|
const iconMap = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { captureError } from "@hexclave/shared/dist/utils/errors";
|
|
4
3
|
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
5
4
|
import { Skeleton, Tabs, TabsContent, TabsList, TabsTrigger, Typography, cn } from "@hexclave/ui";
|
|
6
5
|
import { Suspense, useMemo } from "react";
|
|
7
6
|
import { useStackApp, useUser } from "../index.js";
|
|
7
|
+
import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
|
|
8
8
|
import { useTranslation } from "../lib/translations.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { KnownError } from "@hexclave/shared";
|
|
11
|
-
import {
|
|
11
|
+
import { captureError } from "@hexclave/shared/dist/utils/errors";
|
|
12
12
|
import { use } from "@hexclave/shared/dist/utils/react";
|
|
13
13
|
import { CredentialSignIn } from "../components/credential-sign-in.js";
|
|
14
14
|
import { CredentialSignUp } from "../components/credential-sign-up.js";
|
|
@@ -5,9 +5,9 @@ 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";
|
|
10
9
|
import { hexclaveAppInternalsSymbol } from "../lib/hexclave-app/common.js";
|
|
10
|
+
import { useStackApp } from "../lib/hooks.js";
|
|
11
11
|
|
|
12
12
|
//#region src/components-page/cli-auth-confirm.tsx
|
|
13
13
|
async function postCliAuthComplete(app, body) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { throwErr } from "@hexclave/shared/dist/utils/errors";
|
|
4
3
|
import React from "react";
|
|
5
4
|
import { useStackApp, useUser } from "../index.js";
|
|
6
5
|
import { useTranslation } from "../lib/translations.js";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
import { KnownErrors } from "@hexclave/shared";
|
|
8
|
+
import { throwErr } from "@hexclave/shared/dist/utils/errors";
|
|
9
9
|
import { MessageCard as MessageCard$1 } from "../components/message-cards/message-card.js";
|
|
10
10
|
|
|
11
11
|
//#region src/components-page/email-verification.tsx
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
4
|
-
import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
|
|
5
3
|
import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
|
|
6
4
|
import { Button, Input, Label, Typography, cn } from "@hexclave/ui";
|
|
7
5
|
import { useState } from "react";
|
|
8
|
-
import { useForm } from "react-hook-form";
|
|
9
6
|
import { useStackApp, useUser } from "../index.js";
|
|
10
|
-
import {
|
|
7
|
+
import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
|
|
11
8
|
import { useTranslation } from "../lib/translations.js";
|
|
12
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
|
|
14
10
|
import { StyledLink } from "../components/link.js";
|
|
15
11
|
import { PredefinedMessageCard } from "../components/message-cards/predefined-message-card.js";
|
|
12
|
+
import { yupResolver } from "@hookform/resolvers/yup";
|
|
13
|
+
import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
|
|
14
|
+
import { useForm } from "react-hook-form";
|
|
15
|
+
import { FormWarningText } from "../components/elements/form-warning.js";
|
|
16
16
|
|
|
17
17
|
//#region src/components-page/forgot-password.tsx
|
|
18
18
|
function ForgotPasswordForm({ onSent }) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { HexclaveAssertionError, captureError } from "@hexclave/shared/dist/utils/errors";
|
|
4
3
|
import { Suspense, useMemo, useSyncExternalStore } from "react";
|
|
5
4
|
import { SignIn, SignUp } from "../index.js";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import { useStackApp as useStackApp$1 } from "../lib/hooks.js";
|
|
8
6
|
import { KnownError } from "@hexclave/shared";
|
|
7
|
+
import { HexclaveAssertionError, captureError } from "@hexclave/shared/dist/utils/errors";
|
|
9
8
|
import { use } from "@hexclave/shared/dist/utils/react";
|
|
10
9
|
import { KnownErrorMessageCard } from "../components/message-cards/known-error-message-card.js";
|
|
11
10
|
import { MessageCard as MessageCard$1 } from "../components/message-cards/message-card.js";
|
|
12
11
|
import { PredefinedMessageCard } from "../components/message-cards/predefined-message-card.js";
|
|
13
12
|
import { CliAuthConfirmation } from "./cli-auth-confirm.js";
|
|
13
|
+
import { useStackApp as useStackApp$1 } from "../lib/hooks.js";
|
|
14
14
|
import { hexclaveAppInternalsSymbol } from "../lib/hexclave-app/index.js";
|
|
15
15
|
import { filterUndefined } from "@hexclave/shared/dist/utils/objects";
|
|
16
16
|
import { getRelativePart } from "@hexclave/shared/dist/utils/urls";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { throwErr } from "@hexclave/shared/dist/utils/errors";
|
|
4
3
|
import React from "react";
|
|
5
4
|
import { useStackApp, useUser } from "../index.js";
|
|
6
5
|
import { useTranslation } from "../lib/translations.js";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
import { KnownErrors } from "@hexclave/shared";
|
|
8
|
+
import { throwErr } from "@hexclave/shared/dist/utils/errors";
|
|
9
9
|
import { MessageCard as MessageCard$1 } from "../components/message-cards/message-card.js";
|
|
10
10
|
import { PredefinedMessageCard } from "../components/message-cards/predefined-message-card.js";
|
|
11
11
|
import { cacheFunction } from "@hexclave/shared/dist/utils/caches";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { Button, InputOTP, InputOTPGroup, InputOTPSlot, Spinner, Typography, cn } from "@hexclave/ui";
|
|
4
|
+
import { CheckIcon } from "lucide-react";
|
|
4
5
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
5
6
|
import { useStackApp } from "../index.js";
|
|
6
|
-
import {
|
|
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 { KnownErrors } from "@hexclave/shared";
|
|
10
|
-
import {
|
|
11
|
-
import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
|
|
11
|
+
import { FormWarningText } from "../components/elements/form-warning.js";
|
|
12
12
|
|
|
13
13
|
//#region src/components-page/mfa.tsx
|
|
14
14
|
function MfaForm({ onSuccess, onCancel }) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { captureError } from "@hexclave/shared/dist/utils/errors";
|
|
4
3
|
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
5
4
|
import { Spinner, cn } from "@hexclave/ui";
|
|
6
5
|
import { useEffect, useRef, useState } from "react";
|
|
7
6
|
import { useStackApp } from "../index.js";
|
|
7
|
+
import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
|
|
8
8
|
import { useTranslation } from "../lib/translations.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { KnownError } from "@hexclave/shared";
|
|
11
|
-
import {
|
|
11
|
+
import { captureError } from "@hexclave/shared/dist/utils/errors";
|
|
12
12
|
import { StyledLink } from "../components/link.js";
|
|
13
13
|
import { hexclaveAppInternalsSymbol } from "../lib/hexclave-app/index.js";
|
|
14
14
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
4
|
-
import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
|
|
5
3
|
import { runAsynchronously, runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
|
|
6
4
|
import { Button, Input, Typography } from "@hexclave/ui";
|
|
7
5
|
import { useState } from "react";
|
|
8
|
-
import { useForm } from "react-hook-form";
|
|
9
6
|
import { useStackApp, 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";
|
|
13
9
|
import { MessageCard as MessageCard$1 } from "../components/message-cards/message-card.js";
|
|
10
|
+
import { yupResolver } from "@hookform/resolvers/yup";
|
|
11
|
+
import { strictEmailSchema, yupObject } from "@hexclave/shared/dist/schema-fields";
|
|
12
|
+
import { useForm } from "react-hook-form";
|
|
13
|
+
import { FormWarningText } from "../components/elements/form-warning.js";
|
|
14
14
|
|
|
15
15
|
//#region src/components-page/onboarding.tsx
|
|
16
16
|
function Onboarding(props) {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
4
|
-
import { passwordSchema, yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
|
|
5
3
|
import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises";
|
|
6
4
|
import { Button, Label, PasswordInput, Typography, cn } from "@hexclave/ui";
|
|
7
5
|
import { useState } from "react";
|
|
8
|
-
import { useForm } from "react-hook-form";
|
|
9
6
|
import { useStackApp } from "../index.js";
|
|
10
|
-
import {
|
|
7
|
+
import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
|
|
11
8
|
import { useTranslation } from "../lib/translations.js";
|
|
12
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { getPasswordError } from "@hexclave/shared/dist/helpers/password";
|
|
14
|
-
import * as yup from "yup";
|
|
15
10
|
import { KnownErrors } from "@hexclave/shared";
|
|
16
|
-
import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
|
|
17
11
|
import { use } from "@hexclave/shared/dist/utils/react";
|
|
18
12
|
import { MessageCard as MessageCard$1 } from "../components/message-cards/message-card.js";
|
|
19
13
|
import { PredefinedMessageCard } from "../components/message-cards/predefined-message-card.js";
|
|
14
|
+
import { yupResolver } from "@hookform/resolvers/yup";
|
|
15
|
+
import { passwordSchema, yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
|
|
16
|
+
import { useForm } from "react-hook-form";
|
|
17
|
+
import { FormWarningText } from "../components/elements/form-warning.js";
|
|
20
18
|
import { cacheFunction } from "@hexclave/shared/dist/utils/caches";
|
|
19
|
+
import { getPasswordError } from "@hexclave/shared/dist/helpers/password";
|
|
20
|
+
import * as yup from "yup";
|
|
21
21
|
|
|
22
22
|
//#region src/components-page/password-reset.tsx
|
|
23
23
|
function PasswordResetForm(props) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { yupResolver } from "@hookform/resolvers/yup";
|
|
4
|
-
import { yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
|
|
5
3
|
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
6
4
|
import { Button, Input, Label, Typography } from "@hexclave/ui";
|
|
7
5
|
import { useState } from "react";
|
|
8
|
-
import { useForm } from "react-hook-form";
|
|
9
6
|
import { MessageCard, useStackApp, useUser } from "../index.js";
|
|
10
|
-
import {
|
|
7
|
+
import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
|
|
11
8
|
import { useTranslation } from "../lib/translations.js";
|
|
12
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
10
|
+
import { yupResolver } from "@hookform/resolvers/yup";
|
|
11
|
+
import { yupObject, yupString } from "@hexclave/shared/dist/schema-fields";
|
|
12
|
+
import { useForm } from "react-hook-form";
|
|
13
|
+
import { FormWarningText } from "../components/elements/form-warning.js";
|
|
14
14
|
|
|
15
15
|
//#region src/components-page/team-creation.tsx
|
|
16
16
|
function TeamCreation(props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { captureError } from "@hexclave/shared/dist/utils/errors";
|
|
2
1
|
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
2
|
+
import { captureError } from "@hexclave/shared/dist/utils/errors";
|
|
3
3
|
import { isLocalhost } from "@hexclave/shared/dist/utils/urls";
|
|
4
4
|
|
|
5
5
|
//#region src/dev-tool/index.ts
|