@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.
@@ -9,7 +9,7 @@ import {
9
9
  Label,
10
10
  Loading,
11
11
  Submit
12
- } from "../../chunk-S3AGKY4R.mjs";
12
+ } from "../../chunk-ZRCYOFRG.mjs";
13
13
  export {
14
14
  Connection,
15
15
  Field,
@@ -1500,6 +1500,7 @@ var SignInRouterMachine = (0, import_xstate7.setup)({
1500
1500
  },
1501
1501
  raiseNext: (0, import_xstate7.raise)({ type: "NEXT" }),
1502
1502
  setActive: (0, import_xstate7.enqueueActions)(({ enqueue, check, context, event }) => {
1503
+ var _a;
1503
1504
  if (check("isExampleMode")) {
1504
1505
  return;
1505
1506
  }
@@ -1507,11 +1508,10 @@ var SignInRouterMachine = (0, import_xstate7.setup)({
1507
1508
  const lastActiveSessionId = context.clerk.client.lastActiveSessionId;
1508
1509
  const createdSessionId = ((event == null ? void 0 : event.resource) || context.clerk.client.signIn).createdSessionId;
1509
1510
  const session = id || createdSessionId || lastActiveSessionId || null;
1510
- const beforeEmit = () => {
1511
- var _a, _b;
1512
- return (_b = context.router) == null ? void 0 : _b.push(((_a = context.router) == null ? void 0 : _a.searchParams().get("redirect_url")) || context.clerk.buildAfterSignInUrl());
1513
- };
1514
- void context.clerk.setActive({ session, beforeEmit });
1511
+ void context.clerk.setActive({
1512
+ session,
1513
+ redirectUrl: ((_a = context.router) == null ? void 0 : _a.searchParams().get("redirect_url")) || context.clerk.buildAfterSignInUrl()
1514
+ });
1515
1515
  enqueue.raise({ type: "RESET" }, { delay: 2e3 });
1516
1516
  }),
1517
1517
  setError: (0, import_xstate7.assign)({