@clerk/shared 4.0.0-snapshot.v20251211120550 → 4.0.0-snapshot.v20251215210631

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.
Files changed (113) hide show
  1. package/dist/runtime/alternativePhoneCode.d.mts +1 -1
  2. package/dist/runtime/alternativePhoneCode.d.ts +1 -1
  3. package/dist/runtime/authorization-errors.d.mts +1 -1
  4. package/dist/runtime/authorization-errors.d.ts +1 -1
  5. package/dist/runtime/authorization.d.mts +1 -1
  6. package/dist/runtime/authorization.d.ts +1 -1
  7. package/dist/runtime/clerkEventBus.d.mts +1 -1
  8. package/dist/runtime/clerkEventBus.d.ts +1 -1
  9. package/dist/runtime/color.d.mts +1 -1
  10. package/dist/runtime/color.d.ts +1 -1
  11. package/dist/runtime/deriveState.d.mts +1 -1
  12. package/dist/runtime/deriveState.d.ts +1 -1
  13. package/dist/runtime/{error-Du4UdKtF.d.ts → error-Btp0PBNP.d.mts} +3 -40
  14. package/dist/runtime/error-Btp0PBNP.d.mts.map +1 -0
  15. package/dist/runtime/{error-CJmIhSJi.js → error-C4TyorFL.js} +1 -47
  16. package/dist/runtime/error-C4TyorFL.js.map +1 -0
  17. package/dist/runtime/{error--xlRIO4Z.mjs → error-D6MGXq-n.mjs} +2 -42
  18. package/dist/runtime/error-D6MGXq-n.mjs.map +1 -0
  19. package/dist/runtime/{error-Bar-OO4s.d.mts → error-FQfTKcEF.d.ts} +3 -40
  20. package/dist/runtime/error-FQfTKcEF.d.ts.map +1 -0
  21. package/dist/runtime/error.d.mts +3 -3
  22. package/dist/runtime/error.d.ts +3 -3
  23. package/dist/runtime/error.js +1 -2
  24. package/dist/runtime/error.mjs +2 -2
  25. package/dist/runtime/{index-CPEYkfCA.d.mts → index-6lIp5q8s.d.mts} +58 -15
  26. package/dist/runtime/index-6lIp5q8s.d.mts.map +1 -0
  27. package/dist/runtime/{index-D42gIYCP.d.ts → index-TCL_gZUn.d.ts} +58 -15
  28. package/dist/runtime/index-TCL_gZUn.d.ts.map +1 -0
  29. package/dist/runtime/internal/clerk-js/completeSignUpFlow.d.mts +1 -1
  30. package/dist/runtime/internal/clerk-js/completeSignUpFlow.d.ts +1 -1
  31. package/dist/runtime/internal/clerk-js/componentGuards.d.mts +1 -1
  32. package/dist/runtime/internal/clerk-js/componentGuards.d.ts +1 -1
  33. package/dist/runtime/internal/clerk-js/injectedWeb3Providers.d.mts +1 -1
  34. package/dist/runtime/internal/clerk-js/injectedWeb3Providers.d.ts +1 -1
  35. package/dist/runtime/internal/clerk-js/passkeys.d.mts +2 -2
  36. package/dist/runtime/internal/clerk-js/passkeys.d.ts +2 -2
  37. package/dist/runtime/internal/clerk-js/passkeys.js +1 -1
  38. package/dist/runtime/internal/clerk-js/passkeys.mjs +1 -1
  39. package/dist/runtime/internal/clerk-js/passwords/complexity.d.mts +1 -1
  40. package/dist/runtime/internal/clerk-js/passwords/complexity.d.ts +1 -1
  41. package/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.mts +1 -1
  42. package/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.ts +1 -1
  43. package/dist/runtime/internal/clerk-js/passwords/password.d.mts +1 -1
  44. package/dist/runtime/internal/clerk-js/passwords/password.d.ts +1 -1
  45. package/dist/runtime/internal/clerk-js/passwords/strength.d.mts +1 -1
  46. package/dist/runtime/internal/clerk-js/passwords/strength.d.ts +1 -1
  47. package/dist/runtime/internal/clerk-js/queryParams.d.mts +2 -2
  48. package/dist/runtime/internal/clerk-js/queryParams.d.ts +2 -2
  49. package/dist/runtime/internal/clerk-js/redirectUrls.d.mts +1 -1
  50. package/dist/runtime/internal/clerk-js/redirectUrls.d.ts +1 -1
  51. package/dist/runtime/internal/clerk-js/sessionTasks.d.mts +2 -2
  52. package/dist/runtime/internal/clerk-js/sessionTasks.d.ts +2 -2
  53. package/dist/runtime/internal/clerk-js/url.d.mts +2 -2
  54. package/dist/runtime/internal/clerk-js/url.d.ts +2 -2
  55. package/dist/runtime/internal/clerk-js/user.d.mts +1 -1
  56. package/dist/runtime/internal/clerk-js/user.d.ts +1 -1
  57. package/dist/runtime/internal/clerk-js/web3.d.mts +1 -1
  58. package/dist/runtime/internal/clerk-js/web3.d.ts +1 -1
  59. package/dist/runtime/jwtPayloadParser.d.mts +1 -1
  60. package/dist/runtime/jwtPayloadParser.d.ts +1 -1
  61. package/dist/runtime/keys.d.mts +1 -1
  62. package/dist/runtime/keys.d.ts +1 -1
  63. package/dist/runtime/loadClerkJsScript.d.mts +1 -1
  64. package/dist/runtime/loadClerkJsScript.d.ts +1 -1
  65. package/dist/runtime/loadClerkJsScript.js +3 -3
  66. package/dist/runtime/loadClerkJsScript.mjs +3 -3
  67. package/dist/runtime/oauth.d.mts +1 -1
  68. package/dist/runtime/oauth.d.ts +1 -1
  69. package/dist/runtime/organization.d.mts +1 -1
  70. package/dist/runtime/organization.d.ts +1 -1
  71. package/dist/runtime/pathMatcher.d.mts +1 -1
  72. package/dist/runtime/pathMatcher.d.ts +1 -1
  73. package/dist/runtime/react/index.d.mts +45 -3
  74. package/dist/runtime/react/index.d.mts.map +1 -1
  75. package/dist/runtime/react/index.d.ts +45 -3
  76. package/dist/runtime/react/index.d.ts.map +1 -1
  77. package/dist/runtime/react/index.js +86 -1
  78. package/dist/runtime/react/index.js.map +1 -1
  79. package/dist/runtime/react/index.mjs +85 -2
  80. package/dist/runtime/react/index.mjs.map +1 -1
  81. package/dist/runtime/router.d.mts +1 -1
  82. package/dist/runtime/router.d.ts +1 -1
  83. package/dist/runtime/saml.d.mts +1 -1
  84. package/dist/runtime/saml.d.ts +1 -1
  85. package/dist/runtime/telemetry.d.mts +1 -1
  86. package/dist/runtime/telemetry.d.ts +1 -1
  87. package/dist/runtime/types/index.d.mts +1 -1
  88. package/dist/runtime/types/index.d.ts +1 -1
  89. package/dist/runtime/ui/index.d.mts +1 -1
  90. package/dist/runtime/ui/index.d.ts +1 -1
  91. package/dist/runtime/{url-B0fryQyT.d.ts → url-8kDLvJOc.d.ts} +2 -2
  92. package/dist/runtime/{url-B0fryQyT.d.ts.map → url-8kDLvJOc.d.ts.map} +1 -1
  93. package/dist/runtime/{url-BXe3Tvsn.d.mts → url-CixoZcz6.d.mts} +2 -2
  94. package/dist/runtime/{url-BXe3Tvsn.d.mts.map → url-CixoZcz6.d.mts.map} +1 -1
  95. package/dist/runtime/{versionSelector-v6LvGO6I.mjs → versionSelector-lqQkdqJf.mjs} +2 -2
  96. package/dist/runtime/{versionSelector-v6LvGO6I.mjs.map → versionSelector-lqQkdqJf.mjs.map} +1 -1
  97. package/dist/runtime/{versionSelector-BMFwS2IR.js → versionSelector-v2gh8THR.js} +2 -2
  98. package/dist/runtime/{versionSelector-BMFwS2IR.js.map → versionSelector-v2gh8THR.js.map} +1 -1
  99. package/dist/runtime/versionSelector.js +1 -1
  100. package/dist/runtime/versionSelector.mjs +1 -1
  101. package/dist/runtime/web3.d.mts +1 -1
  102. package/dist/runtime/web3.d.ts +1 -1
  103. package/dist/types/index.d.mts +57 -14
  104. package/dist/types/index.d.mts.map +1 -1
  105. package/dist/types/index.d.ts +57 -14
  106. package/dist/types/index.d.ts.map +1 -1
  107. package/package.json +1 -1
  108. package/dist/runtime/error--xlRIO4Z.mjs.map +0 -1
  109. package/dist/runtime/error-Bar-OO4s.d.mts.map +0 -1
  110. package/dist/runtime/error-CJmIhSJi.js.map +0 -1
  111. package/dist/runtime/error-Du4UdKtF.d.ts.map +0 -1
  112. package/dist/runtime/index-CPEYkfCA.d.mts.map +0 -1
  113. package/dist/runtime/index-D42gIYCP.d.ts.map +0 -1
@@ -2114,7 +2114,7 @@ type Web3WalletIdentifier = 'web3_wallet';
2114
2114
  type EmailAddressOrPhoneNumberIdentifier = 'email_address_or_phone_number';
2115
2115
  //#endregion
2116
2116
  //#region src/types/signInCommon.d.ts
2117
- type SignInStatus = 'needs_identifier' | 'needs_first_factor' | 'needs_second_factor' | 'needs_new_password' | 'complete';
2117
+ type SignInStatus = 'needs_identifier' | 'needs_first_factor' | 'needs_second_factor' | 'needs_client_trust' | 'needs_new_password' | 'complete';
2118
2118
  type SignInIdentifier = UsernameIdentifier | EmailAddressIdentifier | PhoneNumberIdentifier | Web3WalletIdentifier;
2119
2119
  type SignInFirstFactor = EmailCodeFactor | EmailLinkFactor | PhoneCodeFactor | PasswordFactor | PasskeyFactor | ResetPasswordPhoneCodeFactor | ResetPasswordEmailCodeFactor | Web3SignatureFactor | OauthFactor | EnterpriseSSOFactor;
2120
2120
  type SignInSecondFactor = PhoneCodeFactor | TOTPFactor | BackupCodeFactor | EmailCodeFactor | EmailLinkFactor;
@@ -6735,10 +6735,12 @@ type UnstableErrors = WithParamName<{
6735
6735
  form_param_type_invalid: LocalizationValue;
6736
6736
  form_param_type_invalid__phone_number: LocalizationValue;
6737
6737
  form_param_type_invalid__email_address: LocalizationValue;
6738
+ form_email_address_blocked: LocalizationValue;
6738
6739
  form_password_length_too_short: LocalizationValue;
6739
6740
  form_param_nil: LocalizationValue;
6740
6741
  form_code_incorrect: LocalizationValue;
6741
6742
  form_password_incorrect: LocalizationValue;
6743
+ form_password_or_identifier_incorrect: LocalizationValue;
6742
6744
  form_password_validation_failed: LocalizationValue;
6743
6745
  not_allowed_access: LocalizationValue;
6744
6746
  form_identifier_exists: LocalizationValue;
@@ -7895,13 +7897,6 @@ interface Clerk {
7895
7897
  * initiated outside of the Clerk class.
7896
7898
  */
7897
7899
  __internal_setActiveInProgress: boolean;
7898
- /**
7899
- * Retrieves the session token from the browser cookie.
7900
- * This is useful as a fallback when the in-memory lastActiveToken is not available.
7901
- *
7902
- * @internal
7903
- */
7904
- __internal_getSessionCookie?: () => string | undefined;
7905
7900
  /**
7906
7901
  * API Keys Object
7907
7902
  *
@@ -8308,8 +8303,21 @@ interface TransferableOption {
8308
8303
  */
8309
8304
  transferable?: boolean;
8310
8305
  }
8311
- type SignInModalProps = WithoutRouting<SignInProps>;
8306
+ type SignInModalProps = WithoutRouting<SignInProps> & {
8307
+ /**
8308
+ * Function that returns the container element where portals should be rendered.
8309
+ * This allows Clerk components to render inside external dialogs/popovers
8310
+ * (e.g., Radix Dialog, React Aria Components) instead of document.body.
8311
+ */
8312
+ getContainer?: () => HTMLElement | null;
8313
+ };
8312
8314
  type __internal_UserVerificationProps = RoutingOptions & {
8315
+ /**
8316
+ * Function that returns the container element where portals should be rendered.
8317
+ * This allows Clerk components to render inside external dialogs/popovers
8318
+ * (e.g., Radix Dialog, React Aria Components) instead of document.body.
8319
+ */
8320
+ getContainer?: () => HTMLElement | null;
8313
8321
  /**
8314
8322
  * Non-awaitable callback for when verification is completed successfully
8315
8323
  */
@@ -8427,7 +8435,14 @@ type SignUpProps = RoutingOptions & {
8427
8435
  */
8428
8436
  oidcPrompt?: string;
8429
8437
  } & SignInFallbackRedirectUrl & SignInForceRedirectUrl & AfterSignOutUrl;
8430
- type SignUpModalProps = WithoutRouting<SignUpProps>;
8438
+ type SignUpModalProps = WithoutRouting<SignUpProps> & {
8439
+ /**
8440
+ * Function that returns the container element where portals should be rendered.
8441
+ * This allows Clerk components to render inside external dialogs/popovers
8442
+ * (e.g., Radix Dialog, React Aria Components) instead of document.body.
8443
+ */
8444
+ getContainer?: () => HTMLElement | null;
8445
+ };
8431
8446
  type UserProfileProps = RoutingOptions & {
8432
8447
  /**
8433
8448
  * Customisation options to fully match the Clerk components to your own brand.
@@ -8460,7 +8475,14 @@ type UserProfileProps = RoutingOptions & {
8460
8475
  hide?: boolean;
8461
8476
  };
8462
8477
  };
8463
- type UserProfileModalProps = WithoutRouting<UserProfileProps>;
8478
+ type UserProfileModalProps = WithoutRouting<UserProfileProps> & {
8479
+ /**
8480
+ * Function that returns the container element where portals should be rendered.
8481
+ * This allows Clerk components to render inside external dialogs/popovers
8482
+ * (e.g., Radix Dialog, React Aria Components) instead of document.body.
8483
+ */
8484
+ getContainer?: () => HTMLElement | null;
8485
+ };
8464
8486
  type OrganizationProfileProps = RoutingOptions & {
8465
8487
  /**
8466
8488
  * Full URL or path to navigate to after the user leaves the currently Active Organization.
@@ -8498,7 +8520,14 @@ type OrganizationProfileProps = RoutingOptions & {
8498
8520
  hide?: boolean;
8499
8521
  };
8500
8522
  };
8501
- type OrganizationProfileModalProps = WithoutRouting<OrganizationProfileProps>;
8523
+ type OrganizationProfileModalProps = WithoutRouting<OrganizationProfileProps> & {
8524
+ /**
8525
+ * Function that returns the container element where portals should be rendered.
8526
+ * This allows Clerk components to render inside external dialogs/popovers
8527
+ * (e.g., Radix Dialog, React Aria Components) instead of document.body.
8528
+ */
8529
+ getContainer?: () => HTMLElement | null;
8530
+ };
8502
8531
  type CreateOrganizationProps = RoutingOptions & {
8503
8532
  /**
8504
8533
  * Full URL or path to navigate to after creating a new Organization.
@@ -8520,7 +8549,14 @@ type CreateOrganizationProps = RoutingOptions & {
8520
8549
  */
8521
8550
  appearance?: ClerkAppearanceTheme;
8522
8551
  };
8523
- type CreateOrganizationModalProps = WithoutRouting<CreateOrganizationProps>;
8552
+ type CreateOrganizationModalProps = WithoutRouting<CreateOrganizationProps> & {
8553
+ /**
8554
+ * Function that returns the container element where portals should be rendered.
8555
+ * This allows Clerk components to render inside external dialogs/popovers
8556
+ * (e.g., Radix Dialog, React Aria Components) instead of document.body.
8557
+ */
8558
+ getContainer?: () => HTMLElement | null;
8559
+ };
8524
8560
  type UserProfileMode = 'modal' | 'navigation';
8525
8561
  type UserButtonProfileMode = {
8526
8562
  userProfileUrl?: never;
@@ -8714,7 +8750,14 @@ type WaitlistProps = {
8714
8750
  */
8715
8751
  signInUrl?: string;
8716
8752
  };
8717
- type WaitlistModalProps = WaitlistProps;
8753
+ type WaitlistModalProps = WaitlistProps & {
8754
+ /**
8755
+ * Function that returns the container element where portals should be rendered.
8756
+ * This allows Clerk components to render inside external dialogs/popovers
8757
+ * (e.g., Radix Dialog, React Aria Components) instead of document.body.
8758
+ */
8759
+ getContainer?: () => HTMLElement | null;
8760
+ };
8718
8761
  type PricingTableDefaultProps = {
8719
8762
  /**
8720
8763
  * The position of the CTA button.