@clerk/shared 4.7.0 → 4.8.0-snapshot.v20260413204347

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 (104) 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.d.mts +1 -1
  14. package/dist/runtime/error.d.ts +1 -1
  15. package/dist/runtime/getToken.d.mts +1 -1
  16. package/dist/runtime/getToken.d.ts +1 -1
  17. package/dist/runtime/globs.d.mts.map +1 -1
  18. package/dist/runtime/{index-ZRXKVsvy.d.ts → index-BCMY4XCy.d.ts} +59 -7
  19. package/dist/runtime/{index-ZRXKVsvy.d.ts.map → index-BCMY4XCy.d.ts.map} +1 -1
  20. package/dist/runtime/{index-C9wUzGPD.d.mts → index-Bhvl6dbt.d.mts} +59 -7
  21. package/dist/runtime/index-Bhvl6dbt.d.mts.map +1 -0
  22. package/dist/runtime/internal/clerk-js/completeSignUpFlow.d.mts +1 -1
  23. package/dist/runtime/internal/clerk-js/completeSignUpFlow.d.ts +1 -1
  24. package/dist/runtime/internal/clerk-js/componentGuards.d.mts +1 -1
  25. package/dist/runtime/internal/clerk-js/componentGuards.d.ts +1 -1
  26. package/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.mts +1 -1
  27. package/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.ts +1 -1
  28. package/dist/runtime/internal/clerk-js/passkeys.d.mts +1 -1
  29. package/dist/runtime/internal/clerk-js/passkeys.d.ts +1 -1
  30. package/dist/runtime/internal/clerk-js/passwords/complexity.d.mts +1 -1
  31. package/dist/runtime/internal/clerk-js/passwords/complexity.d.ts +1 -1
  32. package/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.mts +1 -1
  33. package/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.ts +1 -1
  34. package/dist/runtime/internal/clerk-js/passwords/password.d.mts +1 -1
  35. package/dist/runtime/internal/clerk-js/passwords/password.d.ts +1 -1
  36. package/dist/runtime/internal/clerk-js/passwords/strength.d.mts +1 -1
  37. package/dist/runtime/internal/clerk-js/passwords/strength.d.ts +1 -1
  38. package/dist/runtime/internal/clerk-js/queryParams.d.mts +1 -1
  39. package/dist/runtime/internal/clerk-js/queryParams.d.ts +1 -1
  40. package/dist/runtime/internal/clerk-js/redirectUrls.d.mts +1 -1
  41. package/dist/runtime/internal/clerk-js/redirectUrls.d.ts +1 -1
  42. package/dist/runtime/internal/clerk-js/sessionTasks.d.mts +2 -2
  43. package/dist/runtime/internal/clerk-js/sessionTasks.d.ts +2 -2
  44. package/dist/runtime/internal/clerk-js/url.d.mts +2 -2
  45. package/dist/runtime/internal/clerk-js/url.d.ts +2 -2
  46. package/dist/runtime/internal/clerk-js/user.d.mts +1 -1
  47. package/dist/runtime/internal/clerk-js/user.d.ts +1 -1
  48. package/dist/runtime/internal/clerk-js/web3.d.mts +1 -1
  49. package/dist/runtime/internal/clerk-js/web3.d.ts +1 -1
  50. package/dist/runtime/jwtPayloadParser.d.mts +1 -1
  51. package/dist/runtime/jwtPayloadParser.d.ts +1 -1
  52. package/dist/runtime/keys.d.mts +1 -1
  53. package/dist/runtime/keys.d.ts +1 -1
  54. package/dist/runtime/loadClerkJsScript.d.mts +1 -1
  55. package/dist/runtime/loadClerkJsScript.d.ts +1 -1
  56. package/dist/runtime/loadClerkJsScript.js +2 -2
  57. package/dist/runtime/loadClerkJsScript.js.map +1 -1
  58. package/dist/runtime/loadClerkJsScript.mjs +2 -2
  59. package/dist/runtime/loadClerkJsScript.mjs.map +1 -1
  60. package/dist/runtime/oauth.d.mts +1 -1
  61. package/dist/runtime/oauth.d.ts +1 -1
  62. package/dist/runtime/organization.d.mts +1 -1
  63. package/dist/runtime/organization.d.ts +1 -1
  64. package/dist/runtime/pathMatcher.d.mts +1 -1
  65. package/dist/runtime/pathMatcher.d.ts +1 -1
  66. package/dist/runtime/poller.d.mts.map +1 -1
  67. package/dist/runtime/poller.d.ts.map +1 -1
  68. package/dist/runtime/react/index.d.mts +9 -21
  69. package/dist/runtime/react/index.d.mts.map +1 -1
  70. package/dist/runtime/react/index.d.ts +9 -21
  71. package/dist/runtime/react/index.d.ts.map +1 -1
  72. package/dist/runtime/react/index.js +5 -38
  73. package/dist/runtime/react/index.js.map +1 -1
  74. package/dist/runtime/react/index.mjs +5 -38
  75. package/dist/runtime/react/index.mjs.map +1 -1
  76. package/dist/runtime/router.d.mts +1 -1
  77. package/dist/runtime/router.d.mts.map +1 -1
  78. package/dist/runtime/router.d.ts +1 -1
  79. package/dist/runtime/saml.d.mts +1 -1
  80. package/dist/runtime/saml.d.ts +1 -1
  81. package/dist/runtime/telemetry.d.mts +1 -1
  82. package/dist/runtime/telemetry.d.ts +1 -1
  83. package/dist/runtime/types/index.d.mts +1 -1
  84. package/dist/runtime/types/index.d.ts +1 -1
  85. package/dist/runtime/ui/index.d.mts +1 -1
  86. package/dist/runtime/ui/index.d.ts +1 -1
  87. package/dist/runtime/{url-CAID6gbO.d.ts → url-B-cgAJP0.d.ts} +2 -2
  88. package/dist/runtime/{url-CAID6gbO.d.ts.map → url-B-cgAJP0.d.ts.map} +1 -1
  89. package/dist/runtime/{url-Djbje5O8.d.mts → url-lzDebkho.d.mts} +2 -2
  90. package/dist/runtime/{url-Djbje5O8.d.mts.map → url-lzDebkho.d.mts.map} +1 -1
  91. package/dist/runtime/{versionSelector-D31OXlbt.js → versionSelector-91fpOSIy.js} +2 -2
  92. package/dist/runtime/{versionSelector-D31OXlbt.js.map → versionSelector-91fpOSIy.js.map} +1 -1
  93. package/dist/runtime/{versionSelector-CXCT3bU9.mjs → versionSelector-BkPu3jWV.mjs} +2 -2
  94. package/dist/runtime/{versionSelector-CXCT3bU9.mjs.map → versionSelector-BkPu3jWV.mjs.map} +1 -1
  95. package/dist/runtime/versionSelector.js +1 -1
  96. package/dist/runtime/versionSelector.mjs +1 -1
  97. package/dist/runtime/web3.d.mts +1 -1
  98. package/dist/runtime/web3.d.ts +1 -1
  99. package/dist/types/index.d.mts +58 -6
  100. package/dist/types/index.d.mts.map +1 -1
  101. package/dist/types/index.d.ts +58 -6
  102. package/dist/types/index.d.ts.map +1 -1
  103. package/package.json +1 -1
  104. package/dist/runtime/index-C9wUzGPD.d.mts.map +0 -1
@@ -7249,6 +7249,22 @@ type __internal_LocalizationResource = {
7249
7249
  suggestionsAcceptedLabel: LocalizationValue;
7250
7250
  action__createOrganization: LocalizationValue;
7251
7251
  };
7252
+ oauthConsent: {
7253
+ subtitle: LocalizationValue<'applicationName' | 'identifier'>;
7254
+ scopeList: {
7255
+ title: LocalizationValue<'applicationName'>;
7256
+ };
7257
+ action__deny: LocalizationValue;
7258
+ action__allow: LocalizationValue;
7259
+ warning: LocalizationValue<'applicationName' | 'domainAction'>;
7260
+ redirectNotice: LocalizationValue<'domainAction'>;
7261
+ offlineAccessNotice: LocalizationValue;
7262
+ viewFullUrl: LocalizationValue;
7263
+ redirectUriModal: {
7264
+ title: LocalizationValue;
7265
+ subtitle: LocalizationValue<'applicationName'>;
7266
+ };
7267
+ };
7252
7268
  unstable__errors: UnstableErrors;
7253
7269
  dates: {
7254
7270
  previous6Days: LocalizationValue<'date'>;
@@ -7651,6 +7667,15 @@ interface OAuthApplicationNamespace {
7651
7667
  * Loads consent metadata for the given OAuth client for the signed-in user.
7652
7668
  */
7653
7669
  getConsentInfo: (params: GetOAuthConsentInfoParams) => Promise<OAuthConsentInfo>;
7670
+ /**
7671
+ * Returns the URL to use as the `action` attribute of the consent form.
7672
+ * Includes `_clerk_session_id` and, in development, the dev browser JWT.
7673
+ * Custom-flow developers building their own consent UI use this alongside
7674
+ * the `useOAuthConsent` hook.
7675
+ */
7676
+ buildConsentActionUrl: (params: {
7677
+ clientId: string;
7678
+ }) => string;
7654
7679
  }
7655
7680
  //#endregion
7656
7681
  //#region src/types/waitlist.d.ts
@@ -9885,39 +9910,66 @@ type __experimental_SubscriptionDetailsButtonProps = {
9885
9910
  };
9886
9911
  };
9887
9912
  type __internal_OAuthConsentProps = {
9913
+ /**
9914
+ * Customize the appearance of the component.
9915
+ */
9888
9916
  appearance?: ClerkAppearanceTheme;
9917
+ /**
9918
+ * Override the OAuth client ID. Defaults to the `client_id` query parameter
9919
+ * from the current URL.
9920
+ */
9921
+ oauthClientId?: string;
9922
+ /**
9923
+ * Override the OAuth scope. Defaults to the `scope` query parameter from
9924
+ * the current URL.
9925
+ */
9926
+ scope?: string;
9889
9927
  /**
9890
9928
  * Name of the OAuth application.
9929
+ *
9930
+ * @deprecated Used by the accounts portal. Pass `client_id` and `redirect_uri` as URL parameters instead.
9891
9931
  */
9892
- oAuthApplicationName: string;
9932
+ oAuthApplicationName?: string;
9893
9933
  /**
9894
9934
  * Logo URL of the OAuth application.
9935
+ *
9936
+ * @deprecated Used by the accounts portal. Pass `client_id` and `redirect_uri` as URL parameters instead.
9895
9937
  */
9896
9938
  oAuthApplicationLogoUrl?: string;
9897
9939
  /**
9898
9940
  * URL of the OAuth application.
9941
+ *
9942
+ * @deprecated Used by the accounts portal. Pass `client_id` and `redirect_uri` as URL parameters instead.
9899
9943
  */
9900
9944
  oAuthApplicationUrl?: string;
9901
9945
  /**
9902
9946
  * Scopes requested by the OAuth application.
9947
+ *
9948
+ * @deprecated Used by the accounts portal. Pass `client_id` and `redirect_uri` as URL parameters instead.
9903
9949
  */
9904
- scopes: {
9950
+ scopes?: {
9905
9951
  scope: string;
9906
9952
  description: string | null;
9907
9953
  requires_consent: boolean;
9908
9954
  }[];
9909
9955
  /**
9910
- * Full URL or path to navigate to after the user allows access.
9956
+ * Full URL or path to navigate to after the user allows or denies access.
9957
+ *
9958
+ * @deprecated Used by the accounts portal. Pass `client_id` and `redirect_uri` as URL parameters instead.
9911
9959
  */
9912
- redirectUrl: string;
9960
+ redirectUrl?: string;
9913
9961
  /**
9914
9962
  * Called when user allows access.
9963
+ *
9964
+ * @deprecated Used by the accounts portal. Pass `client_id` and `redirect_uri` as URL parameters instead.
9915
9965
  */
9916
- onAllow: () => void;
9966
+ onAllow?: () => void;
9917
9967
  /**
9918
9968
  * Called when user denies access.
9969
+ *
9970
+ * @deprecated Used by the accounts portal. Pass `client_id` and `redirect_uri` as URL parameters instead.
9919
9971
  */
9920
- onDeny: () => void;
9972
+ onDeny?: () => void;
9921
9973
  };
9922
9974
  interface HandleEmailLinkVerificationParams {
9923
9975
  /**