@hexclave/next 1.0.24 → 1.0.26
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/hexclave-handler-client.js +5 -4
- package/dist/components-page/hexclave-handler-client.js.map +1 -1
- package/dist/dev-tool/dev-tool-core.d.ts.map +1 -1
- package/dist/dev-tool/dev-tool-core.js +4 -68
- package/dist/dev-tool/dev-tool-core.js.map +1 -1
- package/dist/esm/components-page/hexclave-handler-client.js +5 -4
- package/dist/esm/components-page/hexclave-handler-client.js.map +1 -1
- package/dist/esm/dev-tool/dev-tool-core.d.ts.map +1 -1
- package/dist/esm/dev-tool/dev-tool-core.js +4 -68
- package/dist/esm/dev-tool/dev-tool-core.js.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts +7 -0
- 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 +35 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.js.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.d.ts +1 -0
- package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.d.ts.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.js +18 -11
- package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.js.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/common.js +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.d.ts.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.js +2 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.js.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.test.js +26 -0
- package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.test.js.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.d.ts +7 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.d.ts.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.js +11 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.js.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.test.js +43 -0
- package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.test.js.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/interfaces/admin-app.d.ts +2 -1
- package/dist/esm/lib/hexclave-app/apps/interfaces/admin-app.d.ts.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/interfaces/admin-app.js.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/interfaces/client-app.d.ts +1 -0
- package/dist/esm/lib/hexclave-app/apps/interfaces/client-app.d.ts.map +1 -1
- package/dist/esm/lib/hexclave-app/apps/interfaces/client-app.js.map +1 -1
- package/dist/esm/lib/hexclave-app/index.d.ts +2 -1
- package/dist/esm/lib/hexclave-app/plan-usage/index.d.ts +27 -0
- package/dist/esm/lib/hexclave-app/plan-usage/index.d.ts.map +1 -0
- package/dist/esm/lib/hexclave-app/plan-usage/index.js +1 -0
- package/dist/esm/lib/hexclave-app/projects/index.d.ts +7 -0
- package/dist/esm/lib/hexclave-app/projects/index.d.ts.map +1 -1
- package/dist/esm/lib/hexclave-app/projects/index.js.map +1 -1
- package/dist/esm/pushed-config-error-overlay/index.d.ts +7 -0
- package/dist/esm/pushed-config-error-overlay/index.d.ts.map +1 -0
- package/dist/esm/pushed-config-error-overlay/index.js +464 -0
- package/dist/esm/pushed-config-error-overlay/index.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts +7 -0
- 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 +35 -1
- package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.js.map +1 -1
- package/dist/lib/hexclave-app/apps/implementations/client-app-impl.d.ts +1 -0
- package/dist/lib/hexclave-app/apps/implementations/client-app-impl.d.ts.map +1 -1
- package/dist/lib/hexclave-app/apps/implementations/client-app-impl.js +18 -11
- package/dist/lib/hexclave-app/apps/implementations/client-app-impl.js.map +1 -1
- package/dist/lib/hexclave-app/apps/implementations/common.js +1 -1
- package/dist/lib/hexclave-app/apps/implementations/event-tracker.d.ts.map +1 -1
- package/dist/lib/hexclave-app/apps/implementations/event-tracker.js +1 -0
- package/dist/lib/hexclave-app/apps/implementations/event-tracker.js.map +1 -1
- package/dist/lib/hexclave-app/apps/implementations/event-tracker.test.js +26 -0
- package/dist/lib/hexclave-app/apps/implementations/event-tracker.test.js.map +1 -1
- package/dist/lib/hexclave-app/apps/implementations/session-replay.d.ts +7 -1
- package/dist/lib/hexclave-app/apps/implementations/session-replay.d.ts.map +1 -1
- package/dist/lib/hexclave-app/apps/implementations/session-replay.js +11 -0
- package/dist/lib/hexclave-app/apps/implementations/session-replay.js.map +1 -1
- package/dist/lib/hexclave-app/apps/implementations/session-replay.test.js +43 -0
- package/dist/lib/hexclave-app/apps/implementations/session-replay.test.js.map +1 -1
- package/dist/lib/hexclave-app/apps/interfaces/admin-app.d.ts +2 -1
- package/dist/lib/hexclave-app/apps/interfaces/admin-app.d.ts.map +1 -1
- package/dist/lib/hexclave-app/apps/interfaces/admin-app.js.map +1 -1
- package/dist/lib/hexclave-app/apps/interfaces/client-app.d.ts +1 -0
- package/dist/lib/hexclave-app/apps/interfaces/client-app.d.ts.map +1 -1
- package/dist/lib/hexclave-app/apps/interfaces/client-app.js.map +1 -1
- package/dist/lib/hexclave-app/index.d.ts +2 -1
- package/dist/lib/hexclave-app/plan-usage/index.d.ts +27 -0
- package/dist/lib/hexclave-app/plan-usage/index.d.ts.map +1 -0
- package/dist/lib/hexclave-app/plan-usage/index.js +0 -0
- package/dist/lib/hexclave-app/projects/index.d.ts +7 -0
- package/dist/lib/hexclave-app/projects/index.d.ts.map +1 -1
- package/dist/lib/hexclave-app/projects/index.js.map +1 -1
- package/dist/pushed-config-error-overlay/index.d.ts +7 -0
- package/dist/pushed-config-error-overlay/index.d.ts.map +1 -0
- package/dist/pushed-config-error-overlay/index.js +466 -0
- package/dist/pushed-config-error-overlay/index.js.map +1 -0
- package/package.json +4 -4
- package/src/components-page/hexclave-handler-client.tsx +5 -4
- package/src/dev-tool/dev-tool-core.ts +5 -59
- package/src/lib/hexclave-app/apps/implementations/admin-app-impl.ts +44 -1
- package/src/lib/hexclave-app/apps/implementations/client-app-impl.ts +20 -11
- package/src/lib/hexclave-app/apps/implementations/event-tracker.test.ts +33 -0
- package/src/lib/hexclave-app/apps/implementations/event-tracker.ts +6 -1
- package/src/lib/hexclave-app/apps/implementations/session-replay.test.ts +52 -0
- package/src/lib/hexclave-app/apps/implementations/session-replay.ts +20 -0
- package/src/lib/hexclave-app/apps/interfaces/admin-app.ts +2 -0
- package/src/lib/hexclave-app/apps/interfaces/client-app.ts +1 -0
- package/src/lib/hexclave-app/index.ts +8 -0
- package/src/lib/hexclave-app/plan-usage/index.ts +29 -0
- package/src/lib/hexclave-app/projects/index.ts +3 -0
- package/src/pushed-config-error-overlay/index.ts +548 -0
|
@@ -20,18 +20,18 @@ let ______common_js = require("../../common.js");
|
|
|
20
20
|
let ______projects_index_js = require("../../projects/index.js");
|
|
21
21
|
let _hexclave_shared_dist_sessions = require("@hexclave/shared/dist/sessions");
|
|
22
22
|
let _hexclave_shared_dist_utils_stores = require("@hexclave/shared/dist/utils/stores");
|
|
23
|
-
let _simplewebauthn_browser = require("@simplewebauthn/browser");
|
|
24
23
|
let _hexclave_shared_dist_utils_compile_time = require("@hexclave/shared/dist/utils/compile-time");
|
|
25
24
|
let _hexclave_shared_dist_utils_json = require("@hexclave/shared/dist/utils/json");
|
|
26
25
|
let _hexclave_shared_dist_utils_maps = require("@hexclave/shared/dist/utils/maps");
|
|
27
26
|
let _hexclave_shared_dist_utils_turnstile_flow = require("@hexclave/shared/dist/utils/turnstile-flow");
|
|
28
27
|
let _hexclave_shared_dist_utils_uuids = require("@hexclave/shared/dist/utils/uuids");
|
|
28
|
+
let _simplewebauthn_browser = require("@simplewebauthn/browser");
|
|
29
29
|
let cookie = require("cookie");
|
|
30
30
|
cookie = require_chunk.__toESM(cookie);
|
|
31
|
+
let ____________generated_env_js = require("../../../../generated/env.js");
|
|
31
32
|
let ____________utils_url_js = require("../../../../utils/url.js");
|
|
32
33
|
let _________auth_js = require("../../../auth.js");
|
|
33
34
|
let _________cookie_js = require("../../../cookie.js");
|
|
34
|
-
let ____________generated_env_js = require("../../../../generated/env.js");
|
|
35
35
|
let ______api_keys_index_js = require("../../api-keys/index.js");
|
|
36
36
|
let ______contact_channels_index_js = require("../../contact-channels/index.js");
|
|
37
37
|
let ______teams_index_js = require("../../teams/index.js");
|
|
@@ -43,6 +43,7 @@ let __session_refresh_subscription_js = require("./session-refresh-subscription.
|
|
|
43
43
|
let __session_replay_js = require("./session-replay.js");
|
|
44
44
|
let ____________clickmap_index_js = require("../../../../clickmap/index.js");
|
|
45
45
|
let ____________dev_tool_index_js = require("../../../../dev-tool/index.js");
|
|
46
|
+
let ____________pushed_config_error_overlay_index_js = require("../../../../pushed-config-error-overlay/index.js");
|
|
46
47
|
let _hexclave_sc = require("@hexclave/sc");
|
|
47
48
|
_hexclave_sc = require_chunk.__toESM(_hexclave_sc);
|
|
48
49
|
|
|
@@ -148,7 +149,7 @@ var _HexclaveClientAppImplIncomplete = class _HexclaveClientAppImplIncomplete {
|
|
|
148
149
|
const location = await (0, _________auth_js.getNewOAuthProviderOrScopeUrl)(this._interface, {
|
|
149
150
|
provider: options.providerId,
|
|
150
151
|
redirectUrl: this._getOAuthCallbackRedirectUri(),
|
|
151
|
-
errorRedirectUrl: this.
|
|
152
|
+
errorRedirectUrl: this._getUrls().error,
|
|
152
153
|
providerScope: (0, _hexclave_shared_dist_utils_strings.mergeScopeStrings)(options.scope || "", (this._oauthScopesOnSignIn[options.providerId] ?? []).join(" "))
|
|
153
154
|
}, options.session);
|
|
154
155
|
await this._redirectTo({ url: location });
|
|
@@ -283,7 +284,7 @@ var _HexclaveClientAppImplIncomplete = class _HexclaveClientAppImplIncomplete {
|
|
|
283
284
|
const location = await (0, _________auth_js.getNewOAuthProviderOrScopeUrl)(this._interface, {
|
|
284
285
|
provider,
|
|
285
286
|
redirectUrl: this._getOAuthCallbackRedirectUri(),
|
|
286
|
-
errorRedirectUrl: this.
|
|
287
|
+
errorRedirectUrl: this._getUrls().error,
|
|
287
288
|
providerScope: (0, _hexclave_shared_dist_utils_strings.mergeScopeStrings)(scopeString, (this._oauthScopesOnSignIn[provider] ?? []).join(" "))
|
|
288
289
|
}, session);
|
|
289
290
|
await this._redirectTo({ url: location });
|
|
@@ -469,7 +470,10 @@ var _HexclaveClientAppImplIncomplete = class _HexclaveClientAppImplIncomplete {
|
|
|
469
470
|
});
|
|
470
471
|
}
|
|
471
472
|
if ((0, _hexclave_shared_dist_utils_env.isBrowserLike)() && resolvedOptions.devTool !== false) (0, ____________dev_tool_index_js.mountDevTool)(this, resolvedOptions.devTool);
|
|
472
|
-
if ((0, _hexclave_shared_dist_utils_env.isBrowserLike)())
|
|
473
|
+
if ((0, _hexclave_shared_dist_utils_env.isBrowserLike)()) {
|
|
474
|
+
(0, ____________clickmap_index_js.mountClickmapOverlay)(this);
|
|
475
|
+
(0, ____________pushed_config_error_overlay_index_js.mountPushedConfigErrorOverlay)(this);
|
|
476
|
+
}
|
|
473
477
|
}
|
|
474
478
|
_initUniqueIdentifier() {
|
|
475
479
|
if (!this._uniqueIdentifier) throw new _hexclave_shared_dist_utils_errors.HexclaveAssertionError("Unique identifier not initialized");
|
|
@@ -530,7 +534,7 @@ var _HexclaveClientAppImplIncomplete = class _HexclaveClientAppImplIncomplete {
|
|
|
530
534
|
return currentUrl.searchParams.has("code") && currentUrl.searchParams.has("state") && currentUrl.searchParams.has(nestedCrossDomainAuthQueryParams.refreshTokenId);
|
|
531
535
|
}
|
|
532
536
|
_getOAuthCallbackRedirectUri() {
|
|
533
|
-
if (!this._isOAuthCallbackUrlHosted()) return this.
|
|
537
|
+
if (!this._isOAuthCallbackUrlHosted()) return this._getUrls().oauthCallback;
|
|
534
538
|
if (typeof window === "undefined") throw new _hexclave_shared_dist_utils_errors.HexclaveAssertionError("Hosted OAuth callback URLs require a browser environment to use the current URL as the redirect URI");
|
|
535
539
|
const currentUrl = new URL(window.location.href);
|
|
536
540
|
for (const param of oauthCallbackResponseQueryParams) currentUrl.searchParams.delete(param);
|
|
@@ -1068,6 +1072,8 @@ var _HexclaveClientAppImplIncomplete = class _HexclaveClientAppImplIncomplete {
|
|
|
1068
1072
|
return {
|
|
1069
1073
|
id: crud.id,
|
|
1070
1074
|
displayName: crud.display_name,
|
|
1075
|
+
pushedConfigError: crud.pushed_config_error == null ? null : { message: crud.pushed_config_error.message },
|
|
1076
|
+
configWarnings: crud.config_warnings.map((warning) => ({ message: warning.message })),
|
|
1071
1077
|
config: {
|
|
1072
1078
|
signUpEnabled: crud.config.sign_up_enabled,
|
|
1073
1079
|
credentialEnabled: crud.config.credential_enabled,
|
|
@@ -2251,10 +2257,10 @@ var _HexclaveClientAppImplIncomplete = class _HexclaveClientAppImplIncomplete {
|
|
|
2251
2257
|
return await this._redirectToHandler("mfa", options);
|
|
2252
2258
|
}
|
|
2253
2259
|
async sendForgotPasswordEmail(email, options) {
|
|
2254
|
-
return await this._interface.sendForgotPasswordEmail(email, options?.callbackUrl ?? (0, ____________utils_url_js.constructRedirectUrl)(this.
|
|
2260
|
+
return await this._interface.sendForgotPasswordEmail(email, options?.callbackUrl ?? (0, ____________utils_url_js.constructRedirectUrl)(this._getUrls().passwordReset, "callbackUrl"));
|
|
2255
2261
|
}
|
|
2256
2262
|
async sendMagicLinkEmail(email, options) {
|
|
2257
|
-
const callbackUrl = options?.callbackUrl ?? (0, ____________utils_url_js.constructRedirectUrl)(this.
|
|
2263
|
+
const callbackUrl = options?.callbackUrl ?? (0, ____________utils_url_js.constructRedirectUrl)(this._getUrls().magicLinkCallback, "callbackUrl");
|
|
2258
2264
|
return await this._executeResultWithBotChallengeFlow({
|
|
2259
2265
|
action: "send_magic_link_email",
|
|
2260
2266
|
execute: async (challenge) => {
|
|
@@ -2441,7 +2447,7 @@ var _HexclaveClientAppImplIncomplete = class _HexclaveClientAppImplIncomplete {
|
|
|
2441
2447
|
return await this._interface.authorizeOAuth({
|
|
2442
2448
|
provider,
|
|
2443
2449
|
redirectUrl: (0, ____________utils_url_js.constructRedirectUrl)(this._getOAuthCallbackRedirectUri(), "redirectUrl"),
|
|
2444
|
-
errorRedirectUrl: (0, ____________utils_url_js.constructRedirectUrl)(this.
|
|
2450
|
+
errorRedirectUrl: (0, ____________utils_url_js.constructRedirectUrl)(this._getUrls().error, "errorRedirectUrl"),
|
|
2445
2451
|
afterCallbackRedirectUrl,
|
|
2446
2452
|
type: "authenticate",
|
|
2447
2453
|
providerScope: this._oauthScopesOnSignIn[provider]?.join(" "),
|
|
@@ -2514,7 +2520,7 @@ var _HexclaveClientAppImplIncomplete = class _HexclaveClientAppImplIncomplete {
|
|
|
2514
2520
|
if (options.noVerificationCallback && options.verificationCallbackUrl) throw new _hexclave_shared_dist_utils_errors.HexclaveAssertionError("verificationCallbackUrl is not allowed when noVerificationCallback is true");
|
|
2515
2521
|
this._ensurePersistentTokenStore();
|
|
2516
2522
|
const session = await this._getSession();
|
|
2517
|
-
const emailVerificationRedirectUrl = options.noVerificationCallback ? void 0 : options.verificationCallbackUrl ?? (0, ____________utils_url_js.constructRedirectUrl)(this.
|
|
2523
|
+
const emailVerificationRedirectUrl = options.noVerificationCallback ? void 0 : options.verificationCallbackUrl ?? (0, ____________utils_url_js.constructRedirectUrl)(this._getUrls().emailVerification, "verificationCallbackUrl");
|
|
2518
2524
|
const executeSignUp = async (challenge) => {
|
|
2519
2525
|
let result = await this._interface.signUpWithCredential(options.email, options.password, emailVerificationRedirectUrl, session, this._toInterfaceBotChallengeInput(challenge));
|
|
2520
2526
|
if (result.status === "error" && result.error instanceof _hexclave_shared.KnownErrors.RedirectUrlNotWhitelisted && emailVerificationRedirectUrl !== void 0) {
|
|
@@ -2608,7 +2614,7 @@ var _HexclaveClientAppImplIncomplete = class _HexclaveClientAppImplIncomplete {
|
|
|
2608
2614
|
const pollingCode = initResult.polling_code;
|
|
2609
2615
|
const loginCode = initResult.login_code;
|
|
2610
2616
|
const url = (0, ______url_targets_js.buildCliAuthConfirmUrl)({
|
|
2611
|
-
cliAuthConfirmUrl: this.
|
|
2617
|
+
cliAuthConfirmUrl: this._getUrls().cliAuthConfirm,
|
|
2612
2618
|
appUrl: options.appUrl,
|
|
2613
2619
|
loginCode
|
|
2614
2620
|
});
|
|
@@ -2910,6 +2916,7 @@ var _HexclaveClientAppImplIncomplete = class _HexclaveClientAppImplIncomplete {
|
|
|
2910
2916
|
sendRequest: async (path, requestOptions, requestType = "client") => {
|
|
2911
2917
|
return await this._interface.sendClientRequest(path, requestOptions, await this._getSession(), requestType);
|
|
2912
2918
|
},
|
|
2919
|
+
getUrls: () => this._getUrls(),
|
|
2913
2920
|
getRedirectMethod: () => this._redirectMethod ?? (0, _hexclave_shared_dist_utils_errors.throwErr)("Redirect method should have been initialized in the Stack client app constructor"),
|
|
2914
2921
|
redirectToUrl: async (url, options) => {
|
|
2915
2922
|
await this._redirectTo({
|