@clerk/elements 0.17.1 → 0.17.2-canary.v311ddac

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.
@@ -3,7 +3,7 @@ import {
3
3
  useClerkRouter,
4
4
  usePathnameWithoutCatchAll,
5
5
  useVirtualRouter
6
- } from "../../chunk-WIS4KGWZ.mjs";
6
+ } from "../../chunk-PEFF57AS.mjs";
7
7
  import {
8
8
  Form,
9
9
  FormStoreProvider,
@@ -28,7 +28,7 @@ import {
28
28
  useFormStore,
29
29
  useSignInActiveSessionContext,
30
30
  useSignInStrategy
31
- } from "../../chunk-S3AGKY4R.mjs";
31
+ } from "../../chunk-ZRCYOFRG.mjs";
32
32
 
33
33
  // src/react/sign-in/index.ts
34
34
  import "client-only";
@@ -1504,15 +1504,15 @@ var SignUpRouterMachine = (0, import_xstate7.setup)({
1504
1504
  },
1505
1505
  raiseNext: (0, import_xstate7.raise)({ type: "NEXT" }),
1506
1506
  setActive: ({ context, event }, params) => {
1507
+ var _a;
1507
1508
  if (context.exampleMode) {
1508
1509
  return;
1509
1510
  }
1510
1511
  const session = (params == null ? void 0 : params.sessionId) || (params == null ? void 0 : params.useLastActiveSession) && context.clerk.client.lastActiveSessionId || ((event == null ? void 0 : event.resource) || context.clerk.client.signUp).createdSessionId;
1511
- const beforeEmit = () => {
1512
- var _a, _b;
1513
- return (_b = context.router) == null ? void 0 : _b.push(((_a = context.router) == null ? void 0 : _a.searchParams().get("redirect_url")) || context.clerk.buildAfterSignUpUrl());
1514
- };
1515
- void context.clerk.setActive({ session, beforeEmit });
1512
+ void context.clerk.setActive({
1513
+ session,
1514
+ redirectUrl: ((_a = context.router) == null ? void 0 : _a.searchParams().get("redirect_url")) || context.clerk.buildAfterSignUpUrl()
1515
+ });
1516
1516
  },
1517
1517
  delayedReset: (0, import_xstate7.raise)({ type: "RESET" }, { delay: 3e3 }),
1518
1518
  // Reset machine after 3s delay.