@hexclave/react 1.0.63 → 1.0.65
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-DERe455D.d.ts → admin-app-impl-__tinVgJ.d.ts} +7 -7
- package/dist/{admin-app-impl-DERe455D.d.ts.map → admin-app-impl-__tinVgJ.d.ts.map} +1 -1
- package/dist/auth-page-YnM_LtbN.d.ts.map +1 -1
- package/dist/cli-auth-confirm-BW3PYpKb.d.ts.map +1 -1
- package/dist/clickmap/clickmap-core.js +2 -2
- package/dist/clickmap/index.js +2 -2
- package/dist/components/api-key-dialogs.d.ts +1 -1
- package/dist/components/api-key-dialogs.js +2 -2
- package/dist/components/credential-sign-in.js +1 -1
- package/dist/components/credential-sign-up.js +1 -1
- package/dist/components/magic-link-sign-in.js +1 -1
- package/dist/components/message-cards/no-auth-methods-message-card.d.ts +13 -0
- package/dist/components/message-cards/no-auth-methods-message-card.d.ts.map +1 -0
- package/dist/components/message-cards/no-auth-methods-message-card.js +75 -0
- package/dist/components/message-cards/no-auth-methods-message-card.js.map +1 -0
- package/dist/components/team-switcher.js +1 -1
- package/dist/components-page/account-settings/active-sessions/active-sessions-page.js +1 -1
- 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/password-section.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/components-page/auth-page.js +8 -3
- package/dist/components-page/auth-page.js.map +1 -1
- package/dist/components-page/cli-auth-confirm.js +8 -2
- package/dist/components-page/cli-auth-confirm.js.map +1 -1
- package/dist/components-page/cli-auth-confirm.test.js +43 -1
- package/dist/components-page/cli-auth-confirm.test.js.map +1 -1
- package/dist/components-page/forgot-password.js +1 -1
- package/dist/components-page/oauth-callback.js +2 -2
- package/dist/components-page/oauth-callback.test.js +1 -1
- package/dist/components-page/onboarding.js +1 -1
- package/dist/components-page/password-reset.js +1 -1
- package/dist/components-page/sign-out.test.js +1 -1
- package/dist/components-page/team-creation.js +1 -1
- package/dist/dev-tool/dev-tool-core.js +2 -2
- package/dist/dev-tool/index.js +2 -2
- package/dist/esm/clickmap/clickmap-core.js +2 -2
- package/dist/esm/clickmap/index.js +2 -2
- package/dist/esm/components/api-key-dialogs.d.ts +1 -1
- package/dist/esm/components/api-key-dialogs.js +2 -2
- package/dist/esm/components/credential-sign-in.js +1 -1
- package/dist/esm/components/credential-sign-up.js +1 -1
- package/dist/esm/components/magic-link-sign-in.js +1 -1
- package/dist/esm/components/message-cards/no-auth-methods-message-card.d.ts +13 -0
- package/dist/esm/components/message-cards/no-auth-methods-message-card.d.ts.map +1 -0
- package/dist/esm/components/message-cards/no-auth-methods-message-card.js +74 -0
- package/dist/esm/components/message-cards/no-auth-methods-message-card.js.map +1 -0
- package/dist/esm/components/team-switcher.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/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/password-section.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/components-page/auth-page.d.ts.map +1 -1
- package/dist/esm/components-page/auth-page.js +8 -3
- package/dist/esm/components-page/auth-page.js.map +1 -1
- package/dist/esm/components-page/cli-auth-confirm.d.ts.map +1 -1
- package/dist/esm/components-page/cli-auth-confirm.js +8 -2
- package/dist/esm/components-page/cli-auth-confirm.js.map +1 -1
- package/dist/esm/components-page/cli-auth-confirm.test.js +43 -1
- package/dist/esm/components-page/cli-auth-confirm.test.js.map +1 -1
- package/dist/esm/components-page/forgot-password.js +1 -1
- package/dist/esm/components-page/oauth-callback.js +2 -2
- package/dist/esm/components-page/oauth-callback.test.js +1 -1
- package/dist/esm/components-page/onboarding.js +1 -1
- package/dist/esm/components-page/password-reset.js +1 -1
- package/dist/esm/components-page/sign-out.test.js +1 -1
- package/dist/esm/components-page/team-creation.js +1 -1
- package/dist/esm/dev-tool/dev-tool-core.js +2 -2
- package/dist/esm/dev-tool/index.js +2 -2
- package/dist/esm/generated/global-css.d.ts +1 -1
- package/dist/esm/generated/global-css.js +1 -1
- package/dist/esm/generated/global-css.js.map +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 +5 -5
- package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.d.ts +2 -2
- package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.js +2 -2
- package/dist/esm/lib/hexclave-app/apps/implementations/common.js +4 -4
- package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.js +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/providers/theme-provider.js +1 -1
- package/dist/esm/pushed-config-error-overlay/index.js +2 -2
- package/dist/generated/global-css.d.ts +1 -1
- package/dist/generated/global-css.js +1 -1
- package/dist/generated/global-css.js.map +1 -1
- package/dist/generated/quetzal-translations.d.ts +1 -1
- package/dist/{hexclave-provider-OGS0uqUZ.d.ts → hexclave-provider-CzT3bPnn.d.ts} +2 -2
- package/dist/{hexclave-provider-OGS0uqUZ.d.ts.map → hexclave-provider-CzT3bPnn.d.ts.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/lib/auth.js +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/client-app-impl.js +2 -2
- package/dist/lib/hexclave-app/apps/implementations/common.js +4 -4
- package/dist/lib/hexclave-app/apps/implementations/event-tracker.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/server-app-impl.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/session-replay.js +1 -1
- package/dist/providers/hexclave-provider.d.ts +1 -1
- package/dist/providers/theme-provider.js +1 -1
- package/dist/providers/translation-provider.d.ts +1 -1
- package/dist/pushed-config-error-overlay/index.js +2 -2
- package/dist/{quetzal-translations-XeH3zQ9l.d.ts → quetzal-translations-CK45_4Dm.d.ts} +3 -3
- package/dist/{quetzal-translations-XeH3zQ9l.d.ts.map → quetzal-translations-CK45_4Dm.d.ts.map} +1 -1
- package/dist/{translation-provider-WOaZXqAz.d.ts → translation-provider-DQ3BJepJ.d.ts} +2 -2
- package/dist/{translation-provider-WOaZXqAz.d.ts.map → translation-provider-DQ3BJepJ.d.ts.map} +1 -1
- package/package.json +3 -3
- package/src/components/message-cards/no-auth-methods-message-card.tsx +57 -0
- package/src/components-page/auth-page.tsx +18 -1
- package/src/components-page/cli-auth-confirm.test.tsx +55 -0
- package/src/components-page/cli-auth-confirm.tsx +11 -1
package/dist/esm/lib/auth.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { deindent } from "@hexclave/shared/dist/utils/strings";
|
|
2
1
|
import { HexclaveAssertionError, throwErr } from "@hexclave/shared/dist/utils/errors";
|
|
3
2
|
import { KnownError, KnownErrors } from "@hexclave/shared";
|
|
3
|
+
import { deindent } from "@hexclave/shared/dist/utils/strings";
|
|
4
4
|
import { Result } from "@hexclave/shared/dist/utils/results";
|
|
5
5
|
import { constructRedirectUrl } from "../utils/url.js";
|
|
6
6
|
import { consumeVerifierAndStateCookie, saveVerifierAndState } from "./cookie.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AnalyticsClickmapOptions, AnalyticsClickmapResponse, AnalyticsClickmapTokenResponse, MetricsResponse, MetricsUserCounts, UserActivityResponse } from "@hexclave/shared/dist/interface/admin-metrics";
|
|
2
1
|
import { RestrictedReason } from "@hexclave/shared/dist/schema-fields";
|
|
3
2
|
import { HexclaveAdminInterface } from "@hexclave/shared";
|
|
3
|
+
import { AnalyticsClickmapOptions, AnalyticsClickmapResponse, AnalyticsClickmapTokenResponse, MetricsResponse, MetricsUserCounts, UserActivityResponse } from "@hexclave/shared/dist/interface/admin-metrics";
|
|
4
4
|
import { Result } from "@hexclave/shared/dist/utils/results";
|
|
5
5
|
import { AdminEmailOutbox, AdminSentEmail } from "../../index.js";
|
|
6
6
|
import { EmailConfig, hexclaveAppInternalsSymbol } from "../../common.js";
|
|
@@ -164,7 +164,7 @@ declare class _HexclaveAdminAppImplIncomplete<HasTokenStore extends boolean, Pro
|
|
|
164
164
|
} & {
|
|
165
165
|
uniqueIdentifier: string;
|
|
166
166
|
};
|
|
167
|
-
setCurrentUser: (userJsonPromise: Promise<import("@hexclave/shared/dist/current-user-
|
|
167
|
+
setCurrentUser: (userJsonPromise: Promise<import("@hexclave/shared/dist/current-user-BCkMYzHx").t["Client"]["Read"] | null>) => void;
|
|
168
168
|
getConstructorOptions: () => {
|
|
169
169
|
baseUrl?: string | {
|
|
170
170
|
browser: string;
|
|
@@ -196,11 +196,11 @@ declare class _HexclaveAdminAppImplIncomplete<HasTokenStore extends boolean, Pro
|
|
|
196
196
|
sendAnalyticsEventBatch: (body: string, options: {
|
|
197
197
|
keepalive: boolean;
|
|
198
198
|
}) => Promise<Result<Response, Error>>;
|
|
199
|
-
addRequestListener: (listener: import("@hexclave/shared/dist/client-interface-
|
|
199
|
+
addRequestListener: (listener: import("@hexclave/shared/dist/client-interface-DuVu82ry").r) => () => void;
|
|
200
200
|
sendRequest: (path: string, requestOptions: RequestInit, requestType?: "client" | "server" | "admin") => Promise<Response & {
|
|
201
201
|
usedTokens: {
|
|
202
|
-
accessToken: import("@hexclave/shared/dist/sessions-
|
|
203
|
-
refreshToken: import("@hexclave/shared/dist/sessions-
|
|
202
|
+
accessToken: import("@hexclave/shared/dist/sessions-Cu_D5stb").t;
|
|
203
|
+
refreshToken: import("@hexclave/shared/dist/sessions-Cu_D5stb").i | null;
|
|
204
204
|
} | null;
|
|
205
205
|
}>;
|
|
206
206
|
getUrls: () => Readonly<import("@hexclave/shared/dist/handler-urls-BHt3v8Ai").s>;
|
|
@@ -586,8 +586,8 @@ declare class _HexclaveClientAppImplIncomplete<HasTokenStore extends boolean, Pr
|
|
|
586
586
|
addRequestListener: (listener: RequestListener) => () => void;
|
|
587
587
|
sendRequest: (path: string, requestOptions: RequestInit, requestType?: "client" | "server" | "admin") => Promise<Response & {
|
|
588
588
|
usedTokens: {
|
|
589
|
-
accessToken: import("@hexclave/shared/dist/sessions-
|
|
590
|
-
refreshToken: import("@hexclave/shared/dist/sessions-
|
|
589
|
+
accessToken: import("@hexclave/shared/dist/sessions-Cu_D5stb").t;
|
|
590
|
+
refreshToken: import("@hexclave/shared/dist/sessions-Cu_D5stb").i | null;
|
|
591
591
|
} | null;
|
|
592
592
|
}>;
|
|
593
593
|
getUrls: () => Readonly<ResolvedHandlerUrls$1>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { neverResolve, runAsynchronously, wait } from "@hexclave/shared/dist/utils/promises";
|
|
2
|
-
import { deindent, mergeScopeStrings } from "@hexclave/shared/dist/utils/strings";
|
|
3
1
|
import { HexclaveAssertionError, captureError, throwErr } from "@hexclave/shared/dist/utils/errors";
|
|
2
|
+
import { neverResolve, runAsynchronously, wait } from "@hexclave/shared/dist/utils/promises";
|
|
4
3
|
import React, { useCallback, useMemo } from "react";
|
|
5
4
|
import { HexclaveClientInterface, KnownError, KnownErrors } from "@hexclave/shared";
|
|
6
5
|
import { suspend, suspendIfSsr, use } from "@hexclave/shared/dist/utils/react";
|
|
7
6
|
import { deepPlainEquals, omit } from "@hexclave/shared/dist/utils/objects";
|
|
8
7
|
import { createUrlIfValid, getRelativePart, isRelative } from "@hexclave/shared/dist/utils/urls";
|
|
8
|
+
import { deindent, mergeScopeStrings } from "@hexclave/shared/dist/utils/strings";
|
|
9
9
|
import { Result } from "@hexclave/shared/dist/utils/results";
|
|
10
10
|
import { isBrowserLike } from "@hexclave/shared/dist/utils/env";
|
|
11
11
|
import { clientVersion, createCache, createCacheBySession, createEmptyTokenStore, getAnalyticsBaseUrl, getDefaultExtraRequestHeaders, getDefaultProjectId, getDefaultPublishableClientKey, getUrls, resolveApiUrls, resolveConstructorOptions, useAsyncCache } from "./common.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
2
|
-
import { deindent } from "@hexclave/shared/dist/utils/strings";
|
|
3
1
|
import { captureError, concatStacktraces, throwErr } from "@hexclave/shared/dist/utils/errors";
|
|
2
|
+
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
4
3
|
import React, { useCallback } from "react";
|
|
5
4
|
import { suspendIfSsr, use } from "@hexclave/shared/dist/utils/react";
|
|
6
5
|
import { filterUndefined, omit } from "@hexclave/shared/dist/utils/objects";
|
|
7
6
|
import { getDefaultApiUrls } from "@hexclave/shared/dist/utils/urls";
|
|
8
7
|
import { AsyncCache } from "@hexclave/shared/dist/utils/caches";
|
|
8
|
+
import { deindent } from "@hexclave/shared/dist/utils/strings";
|
|
9
9
|
import { Result } from "@hexclave/shared/dist/utils/results";
|
|
10
10
|
import { isBrowserLike } from "@hexclave/shared/dist/utils/env";
|
|
11
11
|
import { createGlobal, getGlobal } from "@hexclave/shared/dist/utils/globals";
|
|
@@ -14,8 +14,8 @@ import { Store } from "@hexclave/shared/dist/utils/stores";
|
|
|
14
14
|
import { envVars } from "../../../../generated/env.js";
|
|
15
15
|
import { resolveHandlerUrls } from "../../url-targets.js";
|
|
16
16
|
//#region src/lib/hexclave-app/apps/implementations/common.ts
|
|
17
|
-
const clientVersion = "js @hexclave/react@1.0.
|
|
18
|
-
if ("js @hexclave/react@1.0.
|
|
17
|
+
const clientVersion = "js @hexclave/react@1.0.65";
|
|
18
|
+
if ("js @hexclave/react@1.0.65".startsWith("STACK_COMPILE_TIME"));
|
|
19
19
|
const replaceHexclavePortPrefix = (input) => {
|
|
20
20
|
if (!input) return input;
|
|
21
21
|
const prefix = envVars.HEXCLAVE_PORT_PREFIX;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
1
2
|
import { CLICKMAP_ROOT_ID, DEV_TOOL_ROOT_ID } from "@hexclave/shared/dist/utils/dev-tool";
|
|
2
3
|
import { cssEscapeIdent } from "@hexclave/shared/dist/utils/dom";
|
|
3
4
|
import { ELEMENTS_CHAIN_MAX_DEPTH, buildElementsChain } from "@hexclave/shared/dist/utils/elements-chain";
|
|
4
|
-
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
5
5
|
import { isBrowserLike } from "@hexclave/shared/dist/utils/env";
|
|
6
6
|
import { generateUuid, isAdBlockerNetworkError, isAnalyticsNotEnabledError } from "./session-replay.js";
|
|
7
7
|
//#region src/lib/hexclave-app/apps/implementations/event-tracker.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
2
1
|
import { HexclaveAssertionError, captureError, throwErr } from "@hexclave/shared/dist/utils/errors";
|
|
2
|
+
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { HexclaveServerInterface, KnownErrors } from "@hexclave/shared";
|
|
5
5
|
import { suspend } from "@hexclave/shared/dist/utils/react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
2
1
|
import { captureWarning, throwErr } from "@hexclave/shared/dist/utils/errors";
|
|
2
|
+
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
3
3
|
import { Result } from "@hexclave/shared/dist/utils/results";
|
|
4
4
|
import { isBrowserLike } from "@hexclave/shared/dist/utils/env";
|
|
5
5
|
import { KnownErrors } from "@hexclave/shared/dist/known-errors";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { deindent } from "@hexclave/shared/dist/utils/strings";
|
|
3
2
|
import { TooltipProvider } from "@hexclave/ui";
|
|
4
3
|
import "react";
|
|
5
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import Color from "color";
|
|
6
|
+
import { deindent } from "@hexclave/shared/dist/utils/strings";
|
|
7
7
|
import { globalCSS } from "../generated/global-css.js";
|
|
8
8
|
import { BrowserScript } from "../utils/browser-script.js";
|
|
9
9
|
import { DEFAULT_THEME } from "../utils/constants.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { captureError } from "@hexclave/shared/dist/utils/errors";
|
|
1
2
|
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
3
|
+
import { isLocalhost } from "@hexclave/shared/dist/utils/urls";
|
|
2
4
|
import { canMountIntoDom, getGlobalUiInstance, h, setGlobalUiInstance, setHtml } from "../in-page-ui/dom.js";
|
|
3
5
|
import { getInPageUiBaseCSS } from "../in-page-ui/base-styles.js";
|
|
4
|
-
import { captureError } from "@hexclave/shared/dist/utils/errors";
|
|
5
|
-
import { isLocalhost } from "@hexclave/shared/dist/utils/urls";
|
|
6
6
|
import { envVars } from "../generated/env.js";
|
|
7
7
|
//#region src/pushed-config-error-overlay/index.ts
|
|
8
8
|
const GLOBAL_INSTANCE_KEY = "__hexclave-pushed-config-error-overlay";
|