@clerk/elements 0.17.2-snapshot.v5ba8be5 → 0.18.0-canary.v34d673a

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-ZRCYOFRG.mjs";
5
+ } from "./chunk-U3W6ACCG.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-PEFF57AS.mjs.map
110
+ //# sourceMappingURL=chunk-CVLZDETC.mjs.map
@@ -84,8 +84,12 @@ var FormMachine = setup({
84
84
  if (!params.name) {
85
85
  throw new Error("Field name is required");
86
86
  }
87
- if (context.fields.has(params.name)) {
88
- context.fields.get(params.name).feedback = params.feedback;
87
+ const fieldsNameMap = {
88
+ legalAccepted: "__experimental_legalAccepted"
89
+ };
90
+ const fieldName = fieldsNameMap[params.name] || params.name;
91
+ if (context.fields.has(fieldName)) {
92
+ context.fields.get(fieldName).feedback = params.feedback;
89
93
  }
90
94
  return context.fields;
91
95
  }
@@ -2502,11 +2506,16 @@ var ThirdPartyMachine = setup3({
2502
2506
  id: "redirect",
2503
2507
  src: "redirect",
2504
2508
  input: ({ context, event }) => {
2509
+ var _a;
2505
2510
  assertEvent(event, "REDIRECT");
2511
+ const legalAcceptedField = (_a = context.formRef.getSnapshot().context.fields.get("__experimental_legalAccepted")) == null ? void 0 : _a.checked;
2506
2512
  return {
2507
2513
  basePath: context.basePath,
2508
2514
  flow: context.flow,
2509
- params: event.params,
2515
+ params: {
2516
+ ...event.params,
2517
+ __experimental_legalAccepted: legalAcceptedField || void 0
2518
+ },
2510
2519
  parent: context.parent
2511
2520
  };
2512
2521
  },
@@ -3995,4 +4004,4 @@ export {
3995
4004
  SignUpStep,
3996
4005
  Loading
3997
4006
  };
3998
- //# sourceMappingURL=chunk-ZRCYOFRG.mjs.map
4007
+ //# sourceMappingURL=chunk-U3W6ACCG.mjs.map