@hexclave/react 1.0.27 → 1.0.28
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-page/account-settings/email-and-auth/emails-section.js +1 -1
- 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 +2 -2
- package/dist/components-page/account-settings/payments/payments-panel.js +1 -1
- package/dist/components-page/account-settings/teams/team-creation-page.js +1 -1
- package/dist/components-page/account-settings/teams/team-member-invitation-section.js +1 -1
- package/dist/dev-tool/dev-tool-core.js +1 -1
- package/dist/dev-tool/dev-tool-core.js.map +1 -1
- package/dist/esm/components-page/account-settings/email-and-auth/emails-section.js +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/esm/components-page/account-settings/teams/team-member-invitation-section.js +1 -1
- package/dist/esm/dev-tool/dev-tool-core.js +1 -1
- package/dist/esm/dev-tool/dev-tool-core.js.map +1 -1
- package/dist/esm/generated/quetzal-translations.d.ts +2 -2
- package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.js +6 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.js.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/common.js +1 -1
- package/dist/generated/quetzal-translations.d.ts +2 -2
- package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts.map +1 -1
- package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.js +6 -1
- package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.js.map +1 -1
- package/dist/lib/hexclave-app/apps/implementations/common.js +1 -1
- package/package.json +4 -4
- package/src/dev-tool/dev-tool-core.ts +1 -1
- package/src/lib/hexclave-app/apps/implementations/admin-app-impl.ts +2 -1
|
@@ -7,8 +7,8 @@ import { useForm } from "react-hook-form";
|
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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
|
|
|
13
13
|
//#region src/components-page/account-settings/email-and-auth/emails-section.tsx
|
|
14
14
|
function EmailsSection(props) {
|
|
@@ -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
|
|
|
14
14
|
//#region src/components-page/account-settings/email-and-auth/mfa-section.tsx
|
|
15
15
|
function MfaSection(props) {
|
|
@@ -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
|
|
|
9
9
|
//#region src/components-page/account-settings/email-and-auth/passkey-section.tsx
|
|
10
10
|
function PasskeySection(props) {
|
|
@@ -9,9 +9,9 @@ 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
|
|
|
16
16
|
//#region src/components-page/account-settings/email-and-auth/password-section.tsx
|
|
17
17
|
function PasswordSection(props) {
|
|
@@ -7,11 +7,11 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { KnownErrors } from "@hexclave/shared";
|
|
8
8
|
import { Result } from "@hexclave/shared/dist/utils/results";
|
|
9
9
|
import { useTranslation } from "../../../lib/translations.js";
|
|
10
|
+
import { Section } from "../section.js";
|
|
10
11
|
import { useStackApp } from "../../../index.js";
|
|
11
12
|
import { CardElement, Elements, useElements, useStripe } from "@stripe/react-stripe-js";
|
|
12
13
|
import { loadStripe } from "@stripe/stripe-js";
|
|
13
14
|
import { envVars } from "../../../generated/env.js";
|
|
14
|
-
import { Section } from "../section.js";
|
|
15
15
|
|
|
16
16
|
//#region src/components-page/account-settings/payments/payments-panel.tsx
|
|
17
17
|
function formatPaymentMethod(pm) {
|
|
@@ -8,8 +8,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
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
|
|
|
15
15
|
//#region src/components-page/account-settings/teams/team-creation-page.tsx
|
|
@@ -8,8 +8,8 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
8
8
|
import { Trash } from "lucide-react";
|
|
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
|
|
|
14
14
|
//#region src/components-page/account-settings/teams/team-member-invitation-section.tsx
|
|
15
15
|
function TeamMemberInvitationSection(props) {
|
|
@@ -179,7 +179,7 @@ function generateRandomEmail() {
|
|
|
179
179
|
const chars = "abcdefghijklmnopqrstuvwxyz0123456789";
|
|
180
180
|
let id = "";
|
|
181
181
|
for (let i = 0; i < 8; i++) id += chars[Math.floor(Math.random() * 36)];
|
|
182
|
-
return `dev-${id}@
|
|
182
|
+
return `dev-${id}@devtool-quick-sign-up.example.com`;
|
|
183
183
|
}
|
|
184
184
|
function appendInlineMarkdown(container, text) {
|
|
185
185
|
const tokenPattern = /(\[[^\]]+\]\([^)]+\)|`[^`\n]+`|\*\*[^*\n]+\*\*|__[^_\n]+__|\*[^*\n]+\*|_[^_\n]+_)/g;
|