@clerk/react 6.0.0-canary.v20260108181859 → 6.0.0-canary.v20260108195515

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.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Theme, Ui } from '@clerk/ui/internal';
2
2
  import * as _clerk_shared_types from '@clerk/shared/types';
3
- import { Without, APIKeysProps, CreateOrganizationProps, OrganizationListProps, OrganizationProfileProps, OrganizationSwitcherProps, SignInProps, SignUpProps, TaskChooseOrganizationProps, TaskResetPasswordProps, UserAvatarProps, UserButtonProps, UserProfileProps, WaitlistProps, SignInButtonProps, SignOutOptions, SignUpButtonProps, SignInResource, CreateEmailLinkFlowReturn, SignInStartEmailLinkFlowParams, SignUpResource, StartEmailLinkFlowParams, EmailAddressResource, SignInSignalValue, SignUpSignalValue } from '@clerk/shared/types';
3
+ import { Without, APIKeysProps, CreateOrganizationProps, OrganizationListProps, OrganizationProfileProps, OrganizationSwitcherProps, SignInProps, SignUpProps, TaskChooseOrganizationProps, TaskResetPasswordProps, UserAvatarProps, UserButtonProps, UserProfileProps, WaitlistProps, SignInButtonProps, SignOutOptions, SignUpButtonProps, SignInResource, CreateEmailLinkFlowReturn, SignInStartEmailLinkFlowParams, SignUpResource, StartEmailLinkFlowParams, EmailAddressResource, SignInSignalValue, SignUpSignalValue, WaitlistSignalValue } from '@clerk/shared/types';
4
4
  export { BrowserClerk, BrowserClerkConstructor, ClerkProp, HeadlessBrowserClerk, HeadlessBrowserClerkConstructor, IsomorphicClerkOptions } from '@clerk/shared/types';
5
5
  import React, { ReactNode, PropsWithChildren } from 'react';
6
6
  import { W as WithClerkProp, O as OrganizationProfilePageProps, a as OrganizationProfileLinkProps, U as UserProfilePageProps, b as UserProfileLinkProps, c as UserButtonActionProps, d as UserButtonLinkProps, S as SignInWithMetamaskButtonProps, C as ClerkProviderProps } from './types-BLjriGSN.mjs';
@@ -208,7 +208,7 @@ declare function useEmailLink(resource: EmailAddressResource): UseEmailLinkEmail
208
208
  * This hook allows you to access the Signal-based `SignIn` resource.
209
209
  *
210
210
  * @example
211
- * import { useSignInSignal } from "@clerk/react/experimental";
211
+ * import { useSignIn } from "@clerk/react";
212
212
  *
213
213
  * function SignInForm() {
214
214
  * const { signIn, errors, fetchStatus } = useSignInSignal();
@@ -222,7 +222,7 @@ declare function useSignIn(): SignInSignalValue;
222
222
  * This hook allows you to access the Signal-based `SignUp` resource.
223
223
  *
224
224
  * @example
225
- * import { useSignUpSignal } from "@clerk/react/experimental";
225
+ * import { useSignUp } from "@clerk/react";
226
226
  *
227
227
  * function SignUpForm() {
228
228
  * const { signUp, errors, fetchStatus } = useSignUpSignal();
@@ -232,5 +232,19 @@ declare function useSignIn(): SignInSignalValue;
232
232
  * @experimental This experimental API is subject to change.
233
233
  */
234
234
  declare function useSignUp(): SignUpSignalValue;
235
+ /**
236
+ * This hook allows you to access the Signal-based `Waitlist` resource.
237
+ *
238
+ * @example
239
+ * import { useWaitlist } from "@clerk/react";
240
+ *
241
+ * function WaitlistForm() {
242
+ * const { waitlist, errors, fetchStatus } = useWaitlist();
243
+ * //
244
+ * }
245
+ *
246
+ * @experimental This experimental API is subject to change.
247
+ */
248
+ declare function useWaitlist(): WaitlistSignalValue;
235
249
 
236
- export { APIKeys, ClerkProvider, ClerkProviderProps, CreateOrganization, GoogleOneTap, OrganizationList, OrganizationProfile, OrganizationSwitcher, PricingTable, SignIn, SignInButton, SignInWithMetamaskButton, SignOutButton, SignUp, SignUpButton, TaskChooseOrganization, TaskResetPassword, UserAvatar, UserButton, UserProfile, Waitlist, useEmailLink, useSignIn, useSignUp };
250
+ export { APIKeys, ClerkProvider, ClerkProviderProps, CreateOrganization, GoogleOneTap, OrganizationList, OrganizationProfile, OrganizationSwitcher, PricingTable, SignIn, SignInButton, SignInWithMetamaskButton, SignOutButton, SignUp, SignUpButton, TaskChooseOrganization, TaskResetPassword, UserAvatar, UserButton, UserProfile, Waitlist, useEmailLink, useSignIn, useSignUp, useWaitlist };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Theme, Ui } from '@clerk/ui/internal';
2
2
  import * as _clerk_shared_types from '@clerk/shared/types';
3
- import { Without, APIKeysProps, CreateOrganizationProps, OrganizationListProps, OrganizationProfileProps, OrganizationSwitcherProps, SignInProps, SignUpProps, TaskChooseOrganizationProps, TaskResetPasswordProps, UserAvatarProps, UserButtonProps, UserProfileProps, WaitlistProps, SignInButtonProps, SignOutOptions, SignUpButtonProps, SignInResource, CreateEmailLinkFlowReturn, SignInStartEmailLinkFlowParams, SignUpResource, StartEmailLinkFlowParams, EmailAddressResource, SignInSignalValue, SignUpSignalValue } from '@clerk/shared/types';
3
+ import { Without, APIKeysProps, CreateOrganizationProps, OrganizationListProps, OrganizationProfileProps, OrganizationSwitcherProps, SignInProps, SignUpProps, TaskChooseOrganizationProps, TaskResetPasswordProps, UserAvatarProps, UserButtonProps, UserProfileProps, WaitlistProps, SignInButtonProps, SignOutOptions, SignUpButtonProps, SignInResource, CreateEmailLinkFlowReturn, SignInStartEmailLinkFlowParams, SignUpResource, StartEmailLinkFlowParams, EmailAddressResource, SignInSignalValue, SignUpSignalValue, WaitlistSignalValue } from '@clerk/shared/types';
4
4
  export { BrowserClerk, BrowserClerkConstructor, ClerkProp, HeadlessBrowserClerk, HeadlessBrowserClerkConstructor, IsomorphicClerkOptions } from '@clerk/shared/types';
5
5
  import React, { ReactNode, PropsWithChildren } from 'react';
6
6
  import { W as WithClerkProp, O as OrganizationProfilePageProps, a as OrganizationProfileLinkProps, U as UserProfilePageProps, b as UserProfileLinkProps, c as UserButtonActionProps, d as UserButtonLinkProps, S as SignInWithMetamaskButtonProps, C as ClerkProviderProps } from './types-BLjriGSN.js';
@@ -208,7 +208,7 @@ declare function useEmailLink(resource: EmailAddressResource): UseEmailLinkEmail
208
208
  * This hook allows you to access the Signal-based `SignIn` resource.
209
209
  *
210
210
  * @example
211
- * import { useSignInSignal } from "@clerk/react/experimental";
211
+ * import { useSignIn } from "@clerk/react";
212
212
  *
213
213
  * function SignInForm() {
214
214
  * const { signIn, errors, fetchStatus } = useSignInSignal();
@@ -222,7 +222,7 @@ declare function useSignIn(): SignInSignalValue;
222
222
  * This hook allows you to access the Signal-based `SignUp` resource.
223
223
  *
224
224
  * @example
225
- * import { useSignUpSignal } from "@clerk/react/experimental";
225
+ * import { useSignUp } from "@clerk/react";
226
226
  *
227
227
  * function SignUpForm() {
228
228
  * const { signUp, errors, fetchStatus } = useSignUpSignal();
@@ -232,5 +232,19 @@ declare function useSignIn(): SignInSignalValue;
232
232
  * @experimental This experimental API is subject to change.
233
233
  */
234
234
  declare function useSignUp(): SignUpSignalValue;
235
+ /**
236
+ * This hook allows you to access the Signal-based `Waitlist` resource.
237
+ *
238
+ * @example
239
+ * import { useWaitlist } from "@clerk/react";
240
+ *
241
+ * function WaitlistForm() {
242
+ * const { waitlist, errors, fetchStatus } = useWaitlist();
243
+ * //
244
+ * }
245
+ *
246
+ * @experimental This experimental API is subject to change.
247
+ */
248
+ declare function useWaitlist(): WaitlistSignalValue;
235
249
 
236
- export { APIKeys, ClerkProvider, ClerkProviderProps, CreateOrganization, GoogleOneTap, OrganizationList, OrganizationProfile, OrganizationSwitcher, PricingTable, SignIn, SignInButton, SignInWithMetamaskButton, SignOutButton, SignUp, SignUpButton, TaskChooseOrganization, TaskResetPassword, UserAvatar, UserButton, UserProfile, Waitlist, useEmailLink, useSignIn, useSignUp };
250
+ export { APIKeys, ClerkProvider, ClerkProviderProps, CreateOrganization, GoogleOneTap, OrganizationList, OrganizationProfile, OrganizationSwitcher, PricingTable, SignIn, SignInButton, SignInWithMetamaskButton, SignOutButton, SignUp, SignUpButton, TaskChooseOrganization, TaskResetPassword, UserAvatar, UserButton, UserProfile, Waitlist, useEmailLink, useSignIn, useSignUp, useWaitlist };
package/dist/index.js CHANGED
@@ -85,7 +85,8 @@ __export(src_exports, {
85
85
  useSessionList: () => import_react19.useSessionList,
86
86
  useSignIn: () => useSignIn,
87
87
  useSignUp: () => useSignUp,
88
- useUser: () => import_react19.useUser
88
+ useUser: () => import_react19.useUser,
89
+ useWaitlist: () => useWaitlist
89
90
  });
90
91
  module.exports = __toCommonJS(src_exports);
91
92
 
@@ -1276,7 +1277,7 @@ function useEmailLink(resource) {
1276
1277
  var import_telemetry2 = require("@clerk/shared/telemetry");
1277
1278
  var import_react18 = require("react");
1278
1279
  function useClerkSignal(signal) {
1279
- var _a, _b;
1280
+ var _a, _b, _c;
1280
1281
  useAssertWrappedByClerkProvider("useClerkSignal");
1281
1282
  const clerk = useIsomorphicClerkContext();
1282
1283
  switch (signal) {
@@ -1286,6 +1287,9 @@ function useClerkSignal(signal) {
1286
1287
  case "signUp":
1287
1288
  (_b = clerk.telemetry) == null ? void 0 : _b.record((0, import_telemetry2.eventMethodCalled)("useSignUp", { apiVersion: "2025-11" }));
1288
1289
  break;
1290
+ case "waitlist":
1291
+ (_c = clerk.telemetry) == null ? void 0 : _c.record((0, import_telemetry2.eventMethodCalled)("useWaitlist", { apiVersion: "2025-11" }));
1292
+ break;
1289
1293
  default:
1290
1294
  break;
1291
1295
  }
@@ -1303,6 +1307,9 @@ function useClerkSignal(signal) {
1303
1307
  case "signUp":
1304
1308
  clerk.__internal_state.signUpSignal();
1305
1309
  break;
1310
+ case "waitlist":
1311
+ clerk.__internal_state.waitlistSignal();
1312
+ break;
1306
1313
  default:
1307
1314
  throw new Error(`Unknown signal: ${signal}`);
1308
1315
  }
@@ -1317,6 +1324,8 @@ function useClerkSignal(signal) {
1317
1324
  return clerk.__internal_state.signInSignal();
1318
1325
  case "signUp":
1319
1326
  return clerk.__internal_state.signUpSignal();
1327
+ case "waitlist":
1328
+ return clerk.__internal_state.waitlistSignal();
1320
1329
  default:
1321
1330
  throw new Error(`Unknown signal: ${signal}`);
1322
1331
  }
@@ -1330,6 +1339,9 @@ function useSignIn() {
1330
1339
  function useSignUp() {
1331
1340
  return useClerkSignal("signUp");
1332
1341
  }
1342
+ function useWaitlist() {
1343
+ return useClerkSignal("waitlist");
1344
+ }
1333
1345
 
1334
1346
  // src/hooks/index.ts
1335
1347
  var import_react19 = require("@clerk/shared/react");
@@ -1631,11 +1643,19 @@ var defaultSignUpErrors = () => ({
1631
1643
  raw: null,
1632
1644
  global: null
1633
1645
  });
1646
+ var defaultWaitlistErrors = () => ({
1647
+ fields: {
1648
+ emailAddress: null
1649
+ },
1650
+ raw: null,
1651
+ global: null
1652
+ });
1634
1653
  var StateProxy = class {
1635
1654
  constructor(isomorphicClerk) {
1636
1655
  this.isomorphicClerk = isomorphicClerk;
1637
1656
  this.signInSignalProxy = this.buildSignInProxy();
1638
1657
  this.signUpSignalProxy = this.buildSignUpProxy();
1658
+ this.waitlistSignalProxy = this.buildWaitlistProxy();
1639
1659
  }
1640
1660
  signInSignal() {
1641
1661
  return this.signInSignalProxy;
@@ -1643,6 +1663,12 @@ var StateProxy = class {
1643
1663
  signUpSignal() {
1644
1664
  return this.signUpSignalProxy;
1645
1665
  }
1666
+ waitlistSignal() {
1667
+ return this.waitlistSignalProxy;
1668
+ }
1669
+ get __internal_waitlist() {
1670
+ return this.state.__internal_waitlist;
1671
+ }
1646
1672
  checkoutSignal(params) {
1647
1673
  return this.buildCheckoutProxy(params);
1648
1674
  }
@@ -1836,6 +1862,31 @@ var StateProxy = class {
1836
1862
  }
1837
1863
  };
1838
1864
  }
1865
+ buildWaitlistProxy() {
1866
+ const gateProperty = this.gateProperty.bind(this);
1867
+ const gateMethod = this.gateMethod.bind(this);
1868
+ const target = () => {
1869
+ return this.state.__internal_waitlist;
1870
+ };
1871
+ return {
1872
+ errors: defaultWaitlistErrors(),
1873
+ fetchStatus: "idle",
1874
+ waitlist: {
1875
+ pathRoot: "/waitlist",
1876
+ get id() {
1877
+ return gateProperty(target, "id", "");
1878
+ },
1879
+ get createdAt() {
1880
+ return gateProperty(target, "createdAt", null);
1881
+ },
1882
+ get updatedAt() {
1883
+ return gateProperty(target, "updatedAt", null);
1884
+ },
1885
+ join: gateMethod(target, "join"),
1886
+ reload: gateMethod(target, "reload")
1887
+ }
1888
+ };
1889
+ }
1839
1890
  buildCheckoutProxy(params) {
1840
1891
  const gateProperty = this.gateProperty.bind(this);
1841
1892
  const targetCheckout = () => this.checkout(params);
@@ -1895,6 +1946,13 @@ var StateProxy = class {
1895
1946
  __internal_computed(_) {
1896
1947
  throw new Error("__internal_computed called before Clerk is loaded");
1897
1948
  }
1949
+ get state() {
1950
+ const s = this.isomorphicClerk.__internal_state;
1951
+ if (!s) {
1952
+ throw new Error("Clerk state not ready");
1953
+ }
1954
+ return s;
1955
+ }
1898
1956
  get client() {
1899
1957
  const c = this.isomorphicClerk.client;
1900
1958
  if (!c) {
@@ -1954,7 +2012,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
1954
2012
  }
1955
2013
  var SDK_METADATA = {
1956
2014
  name: "@clerk/react",
1957
- version: "6.0.0-canary.v20260108181859",
2015
+ version: "6.0.0-canary.v20260108195515",
1958
2016
  environment: process.env.NODE_ENV
1959
2017
  };
1960
2018
  var _status, _domain, _proxyUrl, _publishableKey, _eventBus, _stateProxy, _instance, _IsomorphicClerk_instances, waitForClerkJS_fn;
@@ -3428,6 +3486,7 @@ setErrorThrowerOptions({ packageName: "@clerk/react" });
3428
3486
  useSessionList,
3429
3487
  useSignIn,
3430
3488
  useSignUp,
3431
- useUser
3489
+ useUser,
3490
+ useWaitlist
3432
3491
  });
3433
3492
  //# sourceMappingURL=index.js.map