@clerk/elements 0.17.1 → 0.17.2-canary.v341fcd6

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.
@@ -2,7 +2,7 @@ import {
2
2
  __privateAdd,
3
3
  __privateGet,
4
4
  __privateSet
5
- } from "./chunk-S3AGKY4R.mjs";
5
+ } from "./chunk-ZRCYOFRG.mjs";
6
6
 
7
7
  // src/react/router/virtual.ts
8
8
  import { useSyncExternalStore } from "react";
@@ -107,4 +107,4 @@ export {
107
107
  useClerkRouter,
108
108
  usePathnameWithoutCatchAll
109
109
  };
110
- //# sourceMappingURL=chunk-WIS4KGWZ.mjs.map
110
+ //# sourceMappingURL=chunk-PEFF57AS.mjs.map
@@ -2848,6 +2848,7 @@ var SignInRouterMachine = setup6({
2848
2848
  },
2849
2849
  raiseNext: raise({ type: "NEXT" }),
2850
2850
  setActive: enqueueActions2(({ enqueue, check, context, event }) => {
2851
+ var _a;
2851
2852
  if (check("isExampleMode")) {
2852
2853
  return;
2853
2854
  }
@@ -2855,11 +2856,10 @@ var SignInRouterMachine = setup6({
2855
2856
  const lastActiveSessionId = context.clerk.client.lastActiveSessionId;
2856
2857
  const createdSessionId = ((event == null ? void 0 : event.resource) || context.clerk.client.signIn).createdSessionId;
2857
2858
  const session = id || createdSessionId || lastActiveSessionId || null;
2858
- const beforeEmit = () => {
2859
- var _a, _b;
2860
- return (_b = context.router) == null ? void 0 : _b.push(((_a = context.router) == null ? void 0 : _a.searchParams().get("redirect_url")) || context.clerk.buildAfterSignInUrl());
2861
- };
2862
- void context.clerk.setActive({ session, beforeEmit });
2859
+ void context.clerk.setActive({
2860
+ session,
2861
+ redirectUrl: ((_a = context.router) == null ? void 0 : _a.searchParams().get("redirect_url")) || context.clerk.buildAfterSignInUrl()
2862
+ });
2863
2863
  enqueue.raise({ type: "RESET" }, { delay: 2e3 });
2864
2864
  }),
2865
2865
  setError: assign4({
@@ -3995,4 +3995,4 @@ export {
3995
3995
  SignUpStep,
3996
3996
  Loading
3997
3997
  };
3998
- //# sourceMappingURL=chunk-S3AGKY4R.mjs.map
3998
+ //# sourceMappingURL=chunk-ZRCYOFRG.mjs.map