@hexclave/next 1.0.101 → 1.0.102
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/{admin-app-impl-UUvE82LW.d.ts → admin-app-impl-B--_O9fz.d.ts} +4 -4
- package/dist/{admin-app-impl-UUvE82LW.d.ts.map → admin-app-impl-B--_O9fz.d.ts.map} +1 -1
- package/dist/components/api-key-dialogs.d.ts +1 -1
- package/dist/components/api-key-dialogs.js +4 -4
- 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/no-auth-methods-message-card.js +2 -2
- 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 +1 -1
- package/dist/components/user-button.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 +4 -4
- package/dist/components-page/account-settings/email-and-auth/mfa-section.js +1 -1
- package/dist/components-page/account-settings/email-and-auth/passkey-section.js +1 -1
- package/dist/components-page/account-settings/email-and-auth/password-section.js +5 -5
- package/dist/components-page/account-settings/payments/payments-panel.js +1 -1
- package/dist/components-page/account-settings/teams/team-creation-page.js +4 -4
- package/dist/components-page/account-settings/teams/team-member-invitation-section.js +5 -5
- package/dist/components-page/account-settings.js +3 -3
- package/dist/components-page/auth-page.js +1 -1
- package/dist/components-page/cli-auth-confirm.js +1 -1
- package/dist/components-page/forgot-password.js +5 -5
- package/dist/components-page/hexclave-handler-client.js +1 -1
- package/dist/components-page/mfa.js +3 -3
- package/dist/components-page/oauth-callback.js +1 -1
- 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/esm/components/api-key-dialogs.d.ts +1 -1
- package/dist/esm/components/api-key-dialogs.js +4 -4
- 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/no-auth-methods-message-card.js +2 -2
- 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 +1 -1
- package/dist/esm/components/user-button.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 +4 -4
- 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/passkey-section.js +1 -1
- package/dist/esm/components-page/account-settings/email-and-auth/password-section.js +5 -5
- package/dist/esm/components-page/account-settings/payments/payments-panel.js +1 -1
- package/dist/esm/components-page/account-settings/teams/team-creation-page.js +4 -4
- package/dist/esm/components-page/account-settings/teams/team-member-invitation-section.js +5 -5
- package/dist/esm/components-page/account-settings.js +3 -3
- package/dist/esm/components-page/auth-page.js +1 -1
- package/dist/esm/components-page/cli-auth-confirm.js +1 -1
- package/dist/esm/components-page/forgot-password.js +5 -5
- package/dist/esm/components-page/hexclave-handler-client.js +1 -1
- package/dist/esm/components-page/mfa.js +3 -3
- package/dist/esm/components-page/oauth-callback.js +1 -1
- 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/generated/quetzal-translations.d.ts +2 -2
- package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts +3 -3
- package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.d.ts +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/common.js +2 -2
- package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.test.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/server-app-impl.d.ts +2 -2
- package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.test.js +1 -1
- package/dist/esm/lib/hexclave-app/users/index.d.ts +1 -1
- package/dist/generated/quetzal-translations.d.ts +1 -1
- package/dist/{hexclave-provider-DTT6O21q.d.ts → hexclave-provider-BlnLHwzv.d.ts} +2 -2
- package/dist/{hexclave-provider-DTT6O21q.d.ts.map → hexclave-provider-BlnLHwzv.d.ts.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts +1 -1
- package/dist/lib/hexclave-app/apps/implementations/client-app-impl.d.ts +1 -1
- package/dist/lib/hexclave-app/apps/implementations/common.js +2 -2
- package/dist/lib/hexclave-app/apps/implementations/event-tracker.test.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/index.d.ts +1 -1
- package/dist/lib/hexclave-app/apps/implementations/server-app-impl.d.ts +1 -1
- package/dist/lib/hexclave-app/apps/implementations/session-replay.test.js +1 -1
- package/dist/providers/hexclave-provider.d.ts +1 -1
- package/dist/providers/translation-provider.d.ts +1 -1
- package/dist/{quetzal-translations-CK45_4Dm.d.ts → quetzal-translations-CwNB-iql.d.ts} +3 -3
- package/dist/{quetzal-translations-CK45_4Dm.d.ts.map → quetzal-translations-CwNB-iql.d.ts.map} +1 -1
- package/dist/{translation-provider-DQ3BJepJ.d.ts → translation-provider-C0uPBd41.d.ts} +2 -2
- package/dist/{translation-provider-DQ3BJepJ.d.ts.map → translation-provider-C0uPBd41.d.ts.map} +1 -1
- package/package.json +4 -4
|
@@ -4,13 +4,13 @@ let _hexclave_shared_dist_utils_errors = require("@hexclave/shared/dist/utils/er
|
|
|
4
4
|
let react = require("react");
|
|
5
5
|
let ___index_js = require("../index.js");
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
let ___lib_hooks_js = require("../lib/hooks.js");
|
|
8
7
|
let _hexclave_shared = require("@hexclave/shared");
|
|
9
8
|
let _hexclave_shared_dist_utils_react = require("@hexclave/shared/dist/utils/react");
|
|
10
9
|
let ___components_message_cards_known_error_message_card_js = require("../components/message-cards/known-error-message-card.js");
|
|
11
10
|
let ___components_message_cards_message_card_js = require("../components/message-cards/message-card.js");
|
|
12
11
|
let ___components_message_cards_predefined_message_card_js = require("../components/message-cards/predefined-message-card.js");
|
|
13
12
|
let __cli_auth_confirm_js = require("./cli-auth-confirm.js");
|
|
13
|
+
let ___lib_hooks_js = require("../lib/hooks.js");
|
|
14
14
|
let ___lib_hexclave_app_index_js = require("../lib/hexclave-app/index.js");
|
|
15
15
|
let _hexclave_shared_dist_utils_objects = require("@hexclave/shared/dist/utils/objects");
|
|
16
16
|
let _hexclave_shared_dist_utils_urls = require("@hexclave/shared/dist/utils/urls");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
let _hexclave_ui = require("@hexclave/ui");
|
|
4
|
+
let lucide_react = require("lucide-react");
|
|
4
5
|
let react = require("react");
|
|
5
6
|
let ___index_js = require("../index.js");
|
|
6
|
-
let
|
|
7
|
+
let ___components_elements_maybe_full_page_js = require("../components/elements/maybe-full-page.js");
|
|
7
8
|
let ___lib_translations_js = require("../lib/translations.js");
|
|
8
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
10
|
let _hexclave_shared = require("@hexclave/shared");
|
|
10
|
-
let
|
|
11
|
-
let ___components_elements_maybe_full_page_js = require("../components/elements/maybe-full-page.js");
|
|
11
|
+
let ___components_elements_form_warning_js = require("../components/elements/form-warning.js");
|
|
12
12
|
//#region src/components-page/mfa.tsx
|
|
13
13
|
function MfaForm({ onSuccess, onCancel }) {
|
|
14
14
|
const hexclaveApp = (0, ___index_js.useStackApp)();
|
|
@@ -6,9 +6,9 @@ let _hexclave_shared_dist_utils_errors = require("@hexclave/shared/dist/utils/er
|
|
|
6
6
|
let _hexclave_ui = require("@hexclave/ui");
|
|
7
7
|
let react = require("react");
|
|
8
8
|
let ___index_js = require("../index.js");
|
|
9
|
+
let ___components_elements_maybe_full_page_js = require("../components/elements/maybe-full-page.js");
|
|
9
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
11
|
let _hexclave_shared = require("@hexclave/shared");
|
|
11
|
-
let ___components_elements_maybe_full_page_js = require("../components/elements/maybe-full-page.js");
|
|
12
12
|
let __error_page_js = require("./error-page.js");
|
|
13
13
|
//#region src/components-page/oauth-callback.tsx
|
|
14
14
|
function OAuthCallback({ fullPage }) {
|
|
@@ -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");
|
|
11
7
|
let ___lib_translations_js = require("../lib/translations.js");
|
|
12
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
9
|
let ___components_message_cards_message_card_js = require("../components/message-cards/message-card.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/onboarding.tsx
|
|
15
15
|
function Onboarding(props) {
|
|
16
16
|
const { t } = (0, ___lib_translations_js.useTranslation)();
|
|
@@ -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
|
|
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
|
|
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
|
|
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)();
|
|
@@ -3,7 +3,7 @@ import { ApiKey, ApiKeyCreationOptions, ApiKeyType } from "../lib/hexclave-app/a
|
|
|
3
3
|
//#region src/components/api-key-dialogs.d.ts
|
|
4
4
|
declare const neverInMs: number;
|
|
5
5
|
declare const expiresInOptions: {
|
|
6
|
-
readonly [x: number]: "
|
|
6
|
+
readonly [x: number]: "1 day" | "7 days" | "30 days" | "90 days" | "1 year" | "Never";
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Dialog for creating a new API key
|
|
@@ -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 {
|
|
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 {
|
|
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 from "react";
|
|
4
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { XIcon } from "lucide-react";
|
|
6
6
|
import { useStackApp } from "../../index.js";
|
|
7
7
|
import { suspendIfSsr } from "../../utils/react.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
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { KeyRound } from "lucide-react";
|
|
5
|
-
import {
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import { useTranslation } from "../../lib/translations.js";
|
|
6
|
+
import { MaybeFullPage } from "../elements/maybe-full-page.js";
|
|
7
7
|
//#region src/components/message-cards/no-auth-methods-message-card.tsx
|
|
8
8
|
const configSnippet = `auth: {
|
|
9
9
|
password: { allowSignIn: true },
|
|
@@ -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,14 +1,14 @@
|
|
|
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
|
-
import { FormWarningText } from "../../../components/elements/form-warning.js";
|
|
11
10
|
import { KnownErrors } from "@hexclave/shared/dist/known-errors";
|
|
11
|
+
import { FormWarningText } from "../../../components/elements/form-warning.js";
|
|
12
12
|
//#region src/components-page/account-settings/email-and-auth/emails-section.tsx
|
|
13
13
|
function EmailsSection(props) {
|
|
14
14
|
const { t } = useTranslation();
|
|
@@ -5,11 +5,11 @@ import { useEffect, useState } from "react";
|
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useStackApp, useUser } from "../../../lib/hooks.js";
|
|
7
7
|
import { useTranslation } from "../../../lib/translations.js";
|
|
8
|
-
import { Section } from "../section.js";
|
|
9
8
|
import { createTOTPKeyURI, verifyTOTP } from "@oslojs/otp";
|
|
10
9
|
import { useAsyncCallback } from "@hexclave/shared/dist/hooks/use-async-callback";
|
|
11
10
|
import { generateRandomValues } from "@hexclave/shared/dist/utils/crypto";
|
|
12
11
|
import * as QRCode from "qrcode";
|
|
12
|
+
import { Section } from "../section.js";
|
|
13
13
|
//#region src/components-page/account-settings/email-and-auth/mfa-section.tsx
|
|
14
14
|
function MfaSection(props) {
|
|
15
15
|
const { t } = useTranslation();
|
|
@@ -3,8 +3,8 @@ import { useState } from "react";
|
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useUser } from "../../../lib/hooks.js";
|
|
5
5
|
import { useTranslation } from "../../../lib/translations.js";
|
|
6
|
-
import { useStackApp as useStackApp$1 } from "../../../index.js";
|
|
7
6
|
import { Section } from "../section.js";
|
|
7
|
+
import { useStackApp as useStackApp$1 } from "../../../index.js";
|
|
8
8
|
//#region src/components-page/account-settings/email-and-auth/passkey-section.tsx
|
|
9
9
|
function PasskeySection(props) {
|
|
10
10
|
const { t } = useTranslation();
|
|
@@ -1,17 +1,17 @@
|
|
|
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";
|
|
11
11
|
import { useTranslation } from "../../../lib/translations.js";
|
|
12
|
-
import { useStackApp as useStackApp$1 } from "../../../index.js";
|
|
13
|
-
import { Section } from "../section.js";
|
|
14
12
|
import { FormWarningText } from "../../../components/elements/form-warning.js";
|
|
13
|
+
import { Section } from "../section.js";
|
|
14
|
+
import { useStackApp as useStackApp$1 } from "../../../index.js";
|
|
15
15
|
//#region src/components-page/account-settings/email-and-auth/password-section.tsx
|
|
16
16
|
function PasswordSection(props) {
|
|
17
17
|
const { t } = useTranslation();
|
|
@@ -6,11 +6,11 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
import { KnownErrors } from "@hexclave/shared";
|
|
7
7
|
import { Result } from "@hexclave/shared/dist/utils/results";
|
|
8
8
|
import { useTranslation } from "../../../lib/translations.js";
|
|
9
|
+
import { Section } from "../section.js";
|
|
9
10
|
import { useStackApp } from "../../../index.js";
|
|
10
11
|
import { CardElement, Elements, useElements, useStripe } from "@stripe/react-stripe-js";
|
|
11
12
|
import { loadStripe } from "@stripe/stripe-js";
|
|
12
13
|
import { envVars } from "../../../generated/env.js";
|
|
13
|
-
import { Section } from "../section.js";
|
|
14
14
|
//#region src/components-page/account-settings/payments/payments-panel.tsx
|
|
15
15
|
function formatPaymentMethod(pm) {
|
|
16
16
|
return [
|
|
@@ -1,15 +1,15 @@
|
|
|
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";
|
|
11
|
-
import { Section } from "../section.js";
|
|
12
11
|
import { FormWarningText } from "../../../components/elements/form-warning.js";
|
|
12
|
+
import { Section } from "../section.js";
|
|
13
13
|
import { MessageCard } from "../../../components/message-cards/message-card.js";
|
|
14
14
|
//#region src/components-page/account-settings/teams/team-creation-page.tsx
|
|
15
15
|
function TeamCreationPage(props) {
|
|
@@ -1,15 +1,15 @@
|
|
|
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 {
|
|
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
|
-
import { Section } from "../section.js";
|
|
12
11
|
import { FormWarningText } from "../../../components/elements/form-warning.js";
|
|
12
|
+
import { Section } from "../section.js";
|
|
13
13
|
//#region src/components-page/account-settings/teams/team-member-invitation-section.tsx
|
|
14
14
|
function TeamMemberInvitationSection(props) {
|
|
15
15
|
if (!useUser({ or: "redirect" }).usePermission(props.team, "$invite_members")) return null;
|
|
@@ -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 {
|
|
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, useMemo, 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 {
|
|
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 {
|
|
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,9 +5,9 @@ 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 { jsx } from "react/jsx-runtime";
|
|
9
10
|
import { KnownError } from "@hexclave/shared";
|
|
10
|
-
import { MaybeFullPage } from "../components/elements/maybe-full-page.js";
|
|
11
11
|
import { ErrorPage } from "./error-page.js";
|
|
12
12
|
//#region src/components-page/oauth-callback.tsx
|
|
13
13
|
function OAuthCallback({ fullPage }) {
|
|
@@ -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();
|