@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.
Files changed (116) hide show
  1. package/dist/{admin-app-impl-DERe455D.d.ts → admin-app-impl-__tinVgJ.d.ts} +7 -7
  2. package/dist/{admin-app-impl-DERe455D.d.ts.map → admin-app-impl-__tinVgJ.d.ts.map} +1 -1
  3. package/dist/auth-page-YnM_LtbN.d.ts.map +1 -1
  4. package/dist/cli-auth-confirm-BW3PYpKb.d.ts.map +1 -1
  5. package/dist/clickmap/clickmap-core.js +2 -2
  6. package/dist/clickmap/index.js +2 -2
  7. package/dist/components/api-key-dialogs.d.ts +1 -1
  8. package/dist/components/api-key-dialogs.js +2 -2
  9. package/dist/components/credential-sign-in.js +1 -1
  10. package/dist/components/credential-sign-up.js +1 -1
  11. package/dist/components/magic-link-sign-in.js +1 -1
  12. package/dist/components/message-cards/no-auth-methods-message-card.d.ts +13 -0
  13. package/dist/components/message-cards/no-auth-methods-message-card.d.ts.map +1 -0
  14. package/dist/components/message-cards/no-auth-methods-message-card.js +75 -0
  15. package/dist/components/message-cards/no-auth-methods-message-card.js.map +1 -0
  16. package/dist/components/team-switcher.js +1 -1
  17. package/dist/components-page/account-settings/active-sessions/active-sessions-page.js +1 -1
  18. package/dist/components-page/account-settings/email-and-auth/emails-section.js +1 -1
  19. package/dist/components-page/account-settings/email-and-auth/mfa-section.js +1 -1
  20. package/dist/components-page/account-settings/email-and-auth/password-section.js +1 -1
  21. package/dist/components-page/account-settings/teams/team-creation-page.js +1 -1
  22. package/dist/components-page/account-settings/teams/team-member-invitation-section.js +1 -1
  23. package/dist/components-page/auth-page.js +8 -3
  24. package/dist/components-page/auth-page.js.map +1 -1
  25. package/dist/components-page/cli-auth-confirm.js +8 -2
  26. package/dist/components-page/cli-auth-confirm.js.map +1 -1
  27. package/dist/components-page/cli-auth-confirm.test.js +43 -1
  28. package/dist/components-page/cli-auth-confirm.test.js.map +1 -1
  29. package/dist/components-page/forgot-password.js +1 -1
  30. package/dist/components-page/oauth-callback.js +2 -2
  31. package/dist/components-page/oauth-callback.test.js +1 -1
  32. package/dist/components-page/onboarding.js +1 -1
  33. package/dist/components-page/password-reset.js +1 -1
  34. package/dist/components-page/sign-out.test.js +1 -1
  35. package/dist/components-page/team-creation.js +1 -1
  36. package/dist/dev-tool/dev-tool-core.js +2 -2
  37. package/dist/dev-tool/index.js +2 -2
  38. package/dist/esm/clickmap/clickmap-core.js +2 -2
  39. package/dist/esm/clickmap/index.js +2 -2
  40. package/dist/esm/components/api-key-dialogs.d.ts +1 -1
  41. package/dist/esm/components/api-key-dialogs.js +2 -2
  42. package/dist/esm/components/credential-sign-in.js +1 -1
  43. package/dist/esm/components/credential-sign-up.js +1 -1
  44. package/dist/esm/components/magic-link-sign-in.js +1 -1
  45. package/dist/esm/components/message-cards/no-auth-methods-message-card.d.ts +13 -0
  46. package/dist/esm/components/message-cards/no-auth-methods-message-card.d.ts.map +1 -0
  47. package/dist/esm/components/message-cards/no-auth-methods-message-card.js +74 -0
  48. package/dist/esm/components/message-cards/no-auth-methods-message-card.js.map +1 -0
  49. package/dist/esm/components/team-switcher.js +1 -1
  50. package/dist/esm/components-page/account-settings/active-sessions/active-sessions-page.js +1 -1
  51. package/dist/esm/components-page/account-settings/email-and-auth/emails-section.js +1 -1
  52. package/dist/esm/components-page/account-settings/email-and-auth/mfa-section.js +1 -1
  53. package/dist/esm/components-page/account-settings/email-and-auth/password-section.js +1 -1
  54. package/dist/esm/components-page/account-settings/teams/team-creation-page.js +1 -1
  55. package/dist/esm/components-page/account-settings/teams/team-member-invitation-section.js +1 -1
  56. package/dist/esm/components-page/auth-page.d.ts.map +1 -1
  57. package/dist/esm/components-page/auth-page.js +8 -3
  58. package/dist/esm/components-page/auth-page.js.map +1 -1
  59. package/dist/esm/components-page/cli-auth-confirm.d.ts.map +1 -1
  60. package/dist/esm/components-page/cli-auth-confirm.js +8 -2
  61. package/dist/esm/components-page/cli-auth-confirm.js.map +1 -1
  62. package/dist/esm/components-page/cli-auth-confirm.test.js +43 -1
  63. package/dist/esm/components-page/cli-auth-confirm.test.js.map +1 -1
  64. package/dist/esm/components-page/forgot-password.js +1 -1
  65. package/dist/esm/components-page/oauth-callback.js +2 -2
  66. package/dist/esm/components-page/oauth-callback.test.js +1 -1
  67. package/dist/esm/components-page/onboarding.js +1 -1
  68. package/dist/esm/components-page/password-reset.js +1 -1
  69. package/dist/esm/components-page/sign-out.test.js +1 -1
  70. package/dist/esm/components-page/team-creation.js +1 -1
  71. package/dist/esm/dev-tool/dev-tool-core.js +2 -2
  72. package/dist/esm/dev-tool/index.js +2 -2
  73. package/dist/esm/generated/global-css.d.ts +1 -1
  74. package/dist/esm/generated/global-css.js +1 -1
  75. package/dist/esm/generated/global-css.js.map +1 -1
  76. package/dist/esm/generated/quetzal-translations.d.ts +2 -2
  77. package/dist/esm/lib/auth.js +1 -1
  78. package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts +5 -5
  79. package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.d.ts +2 -2
  80. package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.js +2 -2
  81. package/dist/esm/lib/hexclave-app/apps/implementations/common.js +4 -4
  82. package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.js +1 -1
  83. package/dist/esm/lib/hexclave-app/apps/implementations/server-app-impl.js +1 -1
  84. package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.js +1 -1
  85. package/dist/esm/providers/theme-provider.js +1 -1
  86. package/dist/esm/pushed-config-error-overlay/index.js +2 -2
  87. package/dist/generated/global-css.d.ts +1 -1
  88. package/dist/generated/global-css.js +1 -1
  89. package/dist/generated/global-css.js.map +1 -1
  90. package/dist/generated/quetzal-translations.d.ts +1 -1
  91. package/dist/{hexclave-provider-OGS0uqUZ.d.ts → hexclave-provider-CzT3bPnn.d.ts} +2 -2
  92. package/dist/{hexclave-provider-OGS0uqUZ.d.ts.map → hexclave-provider-CzT3bPnn.d.ts.map} +1 -1
  93. package/dist/index.d.ts +1 -1
  94. package/dist/lib/auth.js +1 -1
  95. package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts +1 -1
  96. package/dist/lib/hexclave-app/apps/implementations/client-app-impl.d.ts +1 -1
  97. package/dist/lib/hexclave-app/apps/implementations/client-app-impl.js +2 -2
  98. package/dist/lib/hexclave-app/apps/implementations/common.js +4 -4
  99. package/dist/lib/hexclave-app/apps/implementations/event-tracker.js +1 -1
  100. package/dist/lib/hexclave-app/apps/implementations/index.d.ts +1 -1
  101. package/dist/lib/hexclave-app/apps/implementations/server-app-impl.d.ts +1 -1
  102. package/dist/lib/hexclave-app/apps/implementations/server-app-impl.js +1 -1
  103. package/dist/lib/hexclave-app/apps/implementations/session-replay.js +1 -1
  104. package/dist/providers/hexclave-provider.d.ts +1 -1
  105. package/dist/providers/theme-provider.js +1 -1
  106. package/dist/providers/translation-provider.d.ts +1 -1
  107. package/dist/pushed-config-error-overlay/index.js +2 -2
  108. package/dist/{quetzal-translations-XeH3zQ9l.d.ts → quetzal-translations-CK45_4Dm.d.ts} +3 -3
  109. package/dist/{quetzal-translations-XeH3zQ9l.d.ts.map → quetzal-translations-CK45_4Dm.d.ts.map} +1 -1
  110. package/dist/{translation-provider-WOaZXqAz.d.ts → translation-provider-DQ3BJepJ.d.ts} +2 -2
  111. package/dist/{translation-provider-WOaZXqAz.d.ts.map → translation-provider-DQ3BJepJ.d.ts.map} +1 -1
  112. package/package.json +3 -3
  113. package/src/components/message-cards/no-auth-methods-message-card.tsx +57 -0
  114. package/src/components-page/auth-page.tsx +18 -1
  115. package/src/components-page/cli-auth-confirm.test.tsx +55 -0
  116. package/src/components-page/cli-auth-confirm.tsx +11 -1
@@ -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-BBoN3hsn").t["Client"]["Read"] | null>) => void;
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-DvkciaL0").r) => () => void;
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-CI-0TBQb").t;
203
- refreshToken: import("@hexclave/shared/dist/sessions-CI-0TBQb").i | null;
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-CI-0TBQb").t;
590
- refreshToken: import("@hexclave/shared/dist/sessions-CI-0TBQb").i | null;
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.63";
18
- if ("js @hexclave/react@1.0.63".startsWith("STACK_COMPILE_TIME"));
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";