@clerk/react 6.0.0-canary.v20260108183840 → 6.0.0-canary.v20260108210350

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
@@ -11,7 +11,7 @@ import {
11
11
  RedirectToTasks,
12
12
  RedirectToUserProfile,
13
13
  Show
14
- } from "./chunk-RG4XQAGC.mjs";
14
+ } from "./chunk-IN25TELJ.mjs";
15
15
  import {
16
16
  APIKeys,
17
17
  CreateOrganization,
@@ -33,7 +33,7 @@ import {
33
33
  normalizeWithDefaultValue,
34
34
  safeExecute,
35
35
  withMaxAllowedInstancesGuard
36
- } from "./chunk-YKGYOPLG.mjs";
36
+ } from "./chunk-UVXO5DHM.mjs";
37
37
  import {
38
38
  AuthContext,
39
39
  __experimental_CheckoutProvider,
@@ -54,8 +54,9 @@ import {
54
54
  useSignIn,
55
55
  useSignUp,
56
56
  useUser,
57
+ useWaitlist,
57
58
  withClerk
58
- } from "./chunk-J32KHXBI.mjs";
59
+ } from "./chunk-SF47H7L3.mjs";
59
60
  import {
60
61
  IsomorphicClerkContext,
61
62
  errorThrower,
@@ -261,11 +262,19 @@ var defaultSignUpErrors = () => ({
261
262
  raw: null,
262
263
  global: null
263
264
  });
265
+ var defaultWaitlistErrors = () => ({
266
+ fields: {
267
+ emailAddress: null
268
+ },
269
+ raw: null,
270
+ global: null
271
+ });
264
272
  var StateProxy = class {
265
273
  constructor(isomorphicClerk) {
266
274
  this.isomorphicClerk = isomorphicClerk;
267
275
  this.signInSignalProxy = this.buildSignInProxy();
268
276
  this.signUpSignalProxy = this.buildSignUpProxy();
277
+ this.waitlistSignalProxy = this.buildWaitlistProxy();
269
278
  }
270
279
  signInSignal() {
271
280
  return this.signInSignalProxy;
@@ -273,6 +282,12 @@ var StateProxy = class {
273
282
  signUpSignal() {
274
283
  return this.signUpSignalProxy;
275
284
  }
285
+ waitlistSignal() {
286
+ return this.waitlistSignalProxy;
287
+ }
288
+ get __internal_waitlist() {
289
+ return this.state.__internal_waitlist;
290
+ }
276
291
  checkoutSignal(params) {
277
292
  return this.buildCheckoutProxy(params);
278
293
  }
@@ -466,6 +481,31 @@ var StateProxy = class {
466
481
  }
467
482
  };
468
483
  }
484
+ buildWaitlistProxy() {
485
+ const gateProperty = this.gateProperty.bind(this);
486
+ const gateMethod = this.gateMethod.bind(this);
487
+ const target = () => {
488
+ return this.state.__internal_waitlist;
489
+ };
490
+ return {
491
+ errors: defaultWaitlistErrors(),
492
+ fetchStatus: "idle",
493
+ waitlist: {
494
+ pathRoot: "/waitlist",
495
+ get id() {
496
+ return gateProperty(target, "id", "");
497
+ },
498
+ get createdAt() {
499
+ return gateProperty(target, "createdAt", null);
500
+ },
501
+ get updatedAt() {
502
+ return gateProperty(target, "updatedAt", null);
503
+ },
504
+ join: gateMethod(target, "join"),
505
+ reload: gateMethod(target, "reload")
506
+ }
507
+ };
508
+ }
469
509
  buildCheckoutProxy(params) {
470
510
  const gateProperty = this.gateProperty.bind(this);
471
511
  const targetCheckout = () => this.checkout(params);
@@ -525,6 +565,13 @@ var StateProxy = class {
525
565
  __internal_computed(_) {
526
566
  throw new Error("__internal_computed called before Clerk is loaded");
527
567
  }
568
+ get state() {
569
+ const s = this.isomorphicClerk.__internal_state;
570
+ if (!s) {
571
+ throw new Error("Clerk state not ready");
572
+ }
573
+ return s;
574
+ }
528
575
  get client() {
529
576
  const c = this.isomorphicClerk.client;
530
577
  if (!c) {
@@ -584,7 +631,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
584
631
  }
585
632
  var SDK_METADATA = {
586
633
  name: "@clerk/react",
587
- version: "6.0.0-canary.v20260108183840",
634
+ version: "6.0.0-canary.v20260108210350",
588
635
  environment: process.env.NODE_ENV
589
636
  };
590
637
  var _status, _domain, _proxyUrl, _publishableKey, _eventBus, _stateProxy, _instance, _IsomorphicClerk_instances, waitForClerkJS_fn;
@@ -2057,6 +2104,7 @@ export {
2057
2104
  useSessionList,
2058
2105
  useSignIn,
2059
2106
  useSignUp,
2060
- useUser
2107
+ useUser,
2108
+ useWaitlist
2061
2109
  };
2062
2110
  //# sourceMappingURL=index.mjs.map