@clerk/clerk-react 5.60.2 → 5.61.0

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/index.mjs CHANGED
@@ -26,6 +26,7 @@ import {
26
26
  SignUp,
27
27
  TaskChooseOrganization,
28
28
  TaskResetPassword,
29
+ TaskSetupMFA,
29
30
  UserAvatar,
30
31
  UserButton,
31
32
  UserProfile,
@@ -35,7 +36,7 @@ import {
35
36
  normalizeWithDefaultValue,
36
37
  safeExecute,
37
38
  withMaxAllowedInstancesGuard
38
- } from "./chunk-Z4HQK7I2.mjs";
39
+ } from "./chunk-THNCS7QR.mjs";
39
40
  import {
40
41
  AuthContext,
41
42
  IsomorphicClerkContext,
@@ -523,7 +524,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
523
524
  }
524
525
  var SDK_METADATA = {
525
526
  name: "@clerk/clerk-react",
526
- version: "5.60.2",
527
+ version: "5.61.0",
527
528
  environment: process.env.NODE_ENV
528
529
  };
529
530
  var _status, _domain, _proxyUrl, _publishableKey, _eventBus, _stateProxy, _instance, _IsomorphicClerk_instances, waitForClerkJS_fn;
@@ -559,6 +560,7 @@ var _IsomorphicClerk = class _IsomorphicClerk {
559
560
  this.premountOAuthConsentNodes = /* @__PURE__ */ new Map();
560
561
  this.premountTaskChooseOrganizationNodes = /* @__PURE__ */ new Map();
561
562
  this.premountTaskResetPasswordNodes = /* @__PURE__ */ new Map();
563
+ this.premountTaskSetupMFANodes = /* @__PURE__ */ new Map();
562
564
  // A separate Map of `addListener` method calls to handle multiple listeners.
563
565
  this.premountAddListenerCalls = /* @__PURE__ */ new Map();
564
566
  this.loadedListeners = [];
@@ -847,6 +849,9 @@ var _IsomorphicClerk = class _IsomorphicClerk {
847
849
  this.premountTaskResetPasswordNodes.forEach((props, node) => {
848
850
  clerkjs.mountTaskResetPassword(node, props);
849
851
  });
852
+ this.premountTaskSetupMFANodes.forEach((props, node) => {
853
+ clerkjs.mountTaskSetupMFA(node, props);
854
+ });
850
855
  if (typeof this.clerkjs.status === "undefined") {
851
856
  __privateGet(this, _eventBus).emit(clerkEvents.Status, "ready");
852
857
  }
@@ -1263,6 +1268,20 @@ var _IsomorphicClerk = class _IsomorphicClerk {
1263
1268
  this.premountTaskResetPasswordNodes.delete(node);
1264
1269
  }
1265
1270
  };
1271
+ this.mountTaskSetupMFA = (node, props) => {
1272
+ if (this.clerkjs && this.loaded) {
1273
+ this.clerkjs.mountTaskSetupMFA(node, props);
1274
+ } else {
1275
+ this.premountTaskSetupMFANodes.set(node, props);
1276
+ }
1277
+ };
1278
+ this.unmountTaskSetupMFA = (node) => {
1279
+ if (this.clerkjs && this.loaded) {
1280
+ this.clerkjs.unmountTaskSetupMFA(node);
1281
+ } else {
1282
+ this.premountTaskSetupMFANodes.delete(node);
1283
+ }
1284
+ };
1266
1285
  this.addListener = (listener) => {
1267
1286
  if (this.clerkjs) {
1268
1287
  return this.clerkjs.addListener(listener);
@@ -1980,6 +1999,7 @@ export {
1980
1999
  SignedOut,
1981
2000
  TaskChooseOrganization,
1982
2001
  TaskResetPassword,
2002
+ TaskSetupMFA,
1983
2003
  UserAvatar,
1984
2004
  UserButton,
1985
2005
  UserProfile,