@clerk/shared 3.40.0 → 3.41.1
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/runtime/alternativePhoneCode.d.mts +1 -1
- package/dist/runtime/alternativePhoneCode.d.ts +1 -1
- package/dist/runtime/{apiUrlFromPublishableKey-BK2JHLjb.d.ts → apiUrlFromPublishableKey-DOAlYzda.d.ts} +2 -2
- package/dist/runtime/apiUrlFromPublishableKey-DOAlYzda.d.ts.map +1 -0
- package/dist/runtime/apiUrlFromPublishableKey.d.ts +1 -1
- package/dist/runtime/authorization-errors.d.mts +1 -1
- package/dist/runtime/authorization-errors.d.ts +1 -1
- package/dist/runtime/authorization.d.mts +1 -1
- package/dist/runtime/authorization.d.ts +1 -1
- package/dist/runtime/authorization.d.ts.map +1 -1
- package/dist/runtime/clerkEventBus.d.mts +1 -1
- package/dist/runtime/clerkEventBus.d.ts +1 -1
- package/dist/runtime/{color-DKh9g5UO.d.mts → color-BLLAl-EC.d.mts} +2 -2
- package/dist/runtime/{color-DKh9g5UO.d.mts.map → color-BLLAl-EC.d.mts.map} +1 -1
- package/dist/runtime/{color-DPr2u1h5.d.ts → color-DOtT8qir.d.ts} +2 -2
- package/dist/runtime/{color-DPr2u1h5.d.ts.map → color-DOtT8qir.d.ts.map} +1 -1
- package/dist/runtime/color.d.mts +2 -2
- package/dist/runtime/color.d.ts +2 -2
- package/dist/runtime/date-DIGfFkoy.d.mts.map +1 -1
- package/dist/runtime/{deriveState-yJTMc4pW.d.mts → deriveState-BOtpW9a_.d.mts} +2 -2
- package/dist/runtime/{deriveState-yJTMc4pW.d.mts.map → deriveState-BOtpW9a_.d.mts.map} +1 -1
- package/dist/runtime/{deriveState-DrOyX2Ps.d.ts → deriveState-CRY7AL8U.d.ts} +2 -2
- package/dist/runtime/{deriveState-DrOyX2Ps.d.ts.map → deriveState-CRY7AL8U.d.ts.map} +1 -1
- package/dist/runtime/deriveState.d.mts +2 -2
- package/dist/runtime/deriveState.d.ts +2 -2
- package/dist/runtime/{error-Br-YqsCJ.d.mts → error-BN1GdoFe.d.mts} +40 -26
- package/dist/runtime/error-BN1GdoFe.d.mts.map +1 -0
- package/dist/runtime/{error-DoMi9mmc.d.ts → error-Ctf6feLU.d.ts} +40 -26
- package/dist/runtime/error-Ctf6feLU.d.ts.map +1 -0
- package/dist/runtime/{error-CzUWlI0-.js → error-DIeXY7Ki.js} +77 -37
- package/dist/runtime/error-DIeXY7Ki.js.map +1 -0
- package/dist/runtime/{error-CC05ENkI.mjs → error-Dl9xmUf3.mjs} +60 -38
- package/dist/runtime/error-Dl9xmUf3.mjs.map +1 -0
- package/dist/runtime/error.d.mts +3 -3
- package/dist/runtime/error.d.ts +3 -3
- package/dist/runtime/error.js +4 -1
- package/dist/runtime/error.mjs +2 -2
- package/dist/runtime/{index-Bv-b2tpK.d.mts → index-BnRZtxqr.d.mts} +51 -6
- package/dist/runtime/index-BnRZtxqr.d.mts.map +1 -0
- package/dist/runtime/{index-DdjCCA79.d.ts → index-kcd5CugB.d.ts} +51 -6
- package/dist/runtime/index-kcd5CugB.d.ts.map +1 -0
- package/dist/runtime/index.d.mts +8 -8
- package/dist/runtime/index.d.ts +9 -9
- package/dist/runtime/index.js +7 -4
- package/dist/runtime/index.mjs +5 -5
- package/dist/runtime/jwtPayloadParser.d.mts +1 -1
- package/dist/runtime/jwtPayloadParser.d.ts +1 -1
- package/dist/runtime/{keys-J5tiM3qN.d.ts → keys-CPkJ1cer.d.ts} +2 -2
- package/dist/runtime/{keys-J5tiM3qN.d.ts.map → keys-CPkJ1cer.d.ts.map} +1 -1
- package/dist/runtime/{keys-DmQ5NbMq.d.mts → keys-CrHz1jNi.d.mts} +2 -2
- package/dist/runtime/{keys-DmQ5NbMq.d.mts.map → keys-CrHz1jNi.d.mts.map} +1 -1
- package/dist/runtime/keys.d.mts +2 -2
- package/dist/runtime/keys.d.ts +2 -2
- package/dist/runtime/{loadClerkJsScript-D_5LvPw8.d.ts → loadClerkJsScript-Dra6zdsP.d.ts} +2 -2
- package/dist/runtime/{loadClerkJsScript-D_5LvPw8.d.ts.map → loadClerkJsScript-Dra6zdsP.d.ts.map} +1 -1
- package/dist/runtime/{loadClerkJsScript-1cZgmGoL.d.mts → loadClerkJsScript-hLO3uTCg.d.mts} +2 -2
- package/dist/runtime/{loadClerkJsScript-1cZgmGoL.d.mts.map → loadClerkJsScript-hLO3uTCg.d.mts.map} +1 -1
- package/dist/runtime/{loadClerkJsScript-wNYW7daM.mjs → loadClerkJsScript-qRGdRMGp.mjs} +3 -3
- package/dist/runtime/{loadClerkJsScript-wNYW7daM.mjs.map → loadClerkJsScript-qRGdRMGp.mjs.map} +1 -1
- package/dist/runtime/{loadClerkJsScript-DIHZ-yUI.js → loadClerkJsScript-riYcpx0H.js} +3 -3
- package/dist/runtime/{loadClerkJsScript-DIHZ-yUI.js.map → loadClerkJsScript-riYcpx0H.js.map} +1 -1
- package/dist/runtime/loadClerkJsScript.d.mts +2 -2
- package/dist/runtime/loadClerkJsScript.d.ts +2 -2
- package/dist/runtime/loadClerkJsScript.js +3 -3
- package/dist/runtime/loadClerkJsScript.mjs +3 -3
- package/dist/runtime/oauth.d.mts +1 -1
- package/dist/runtime/oauth.d.ts +1 -1
- package/dist/runtime/organization.d.mts +1 -1
- package/dist/runtime/organization.d.ts +1 -1
- package/dist/runtime/{pathMatcher-B4FCLCFC.d.mts → pathMatcher-B-p8iMDM.d.mts} +2 -2
- package/dist/runtime/{pathMatcher-B4FCLCFC.d.mts.map → pathMatcher-B-p8iMDM.d.mts.map} +1 -1
- package/dist/runtime/{pathMatcher-DdphdGYT.d.ts → pathMatcher-BqJAEZXr.d.ts} +2 -2
- package/dist/runtime/pathMatcher-BqJAEZXr.d.ts.map +1 -0
- package/dist/runtime/pathMatcher.d.mts +2 -2
- package/dist/runtime/pathMatcher.d.ts +2 -2
- package/dist/runtime/poller-CIrx6NwR.d.ts.map +1 -1
- package/dist/runtime/poller-I92Dozmd.d.mts.map +1 -1
- package/dist/runtime/react/index.d.mts +7 -7
- package/dist/runtime/react/index.d.mts.map +1 -1
- package/dist/runtime/react/index.d.ts +8 -8
- package/dist/runtime/react/index.js +1 -1
- package/dist/runtime/react/index.mjs +1 -1
- package/dist/runtime/router.d.mts +1 -1
- package/dist/runtime/router.d.ts +1 -1
- package/dist/runtime/saml.d.mts +1 -1
- package/dist/runtime/saml.d.ts +1 -1
- package/dist/runtime/telemetry.d.mts +1 -1
- package/dist/runtime/telemetry.d.ts +1 -1
- package/dist/runtime/types/index.d.mts +1 -1
- package/dist/runtime/types/index.d.ts +1 -1
- package/dist/runtime/utils/index.js +1 -1
- package/dist/runtime/utils/index.mjs +1 -1
- package/dist/runtime/{utils-H_S828Pv.js → utils-4vju2Zr4.js} +2 -2
- package/dist/runtime/utils-4vju2Zr4.js.map +1 -0
- package/dist/runtime/{utils-DnE51LOo.mjs → utils-BjdCqECo.mjs} +2 -2
- package/dist/runtime/utils-BjdCqECo.mjs.map +1 -0
- package/dist/runtime/{versionSelector-ThQQIAng.mjs → versionSelector-D29MCAQA.mjs} +3 -3
- package/dist/runtime/{versionSelector-ThQQIAng.mjs.map → versionSelector-D29MCAQA.mjs.map} +1 -1
- package/dist/runtime/{versionSelector-2OiQNsY2.js → versionSelector-ySDLH9qB.js} +3 -3
- package/dist/runtime/{versionSelector-2OiQNsY2.js.map → versionSelector-ySDLH9qB.js.map} +1 -1
- package/dist/runtime/versionSelector.js +1 -1
- package/dist/runtime/versionSelector.mjs +1 -1
- package/dist/runtime/web3.d.mts +1 -1
- package/dist/runtime/web3.d.ts +1 -1
- package/dist/types/index.d.mts +8 -4
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.d.ts +8 -4
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/runtime/apiUrlFromPublishableKey-BK2JHLjb.d.ts.map +0 -1
- package/dist/runtime/error-Br-YqsCJ.d.mts.map +0 -1
- package/dist/runtime/error-CC05ENkI.mjs.map +0 -1
- package/dist/runtime/error-CzUWlI0-.js.map +0 -1
- package/dist/runtime/error-DoMi9mmc.d.ts.map +0 -1
- package/dist/runtime/index-Bv-b2tpK.d.mts.map +0 -1
- package/dist/runtime/index-DdjCCA79.d.ts.map +0 -1
- package/dist/runtime/pathMatcher-DdphdGYT.d.ts.map +0 -1
- package/dist/runtime/utils-DnE51LOo.mjs.map +0 -1
- package/dist/runtime/utils-H_S828Pv.js.map +0 -1
package/dist/types/index.d.mts
CHANGED
|
@@ -2015,7 +2015,7 @@ declare global {
|
|
|
2015
2015
|
/**
|
|
2016
2016
|
* The `User` object holds all of the information for a single user of your application and provides a set of methods to manage their account.
|
|
2017
2017
|
*
|
|
2018
|
-
* A user can be contacted at their primary email address or primary phone number. They can have more than one registered email address, but only one of them will be their primary email address. This goes for phone numbers as well; a user can have more than one, but only one phone number will be their primary. At the same time, a user can also have one or more external accounts by connecting to [social providers](https://clerk.com/docs/guides/configure/auth-strategies/social-connections/
|
|
2018
|
+
* A user can be contacted at their primary email address or primary phone number. They can have more than one registered email address, but only one of them will be their primary email address. This goes for phone numbers as well; a user can have more than one, but only one phone number will be their primary. At the same time, a user can also have one or more external accounts by connecting to [social providers](https://clerk.com/docs/guides/configure/auth-strategies/social-connections/overview) such as Google, Apple, Facebook, and many more.
|
|
2019
2019
|
*
|
|
2020
2020
|
* Finally, a `User` object holds profile data like the user's name, profile picture, and a set of [metadata](/docs/guides/users/extending) that can be used internally to store arbitrary information. The metadata are split into `publicMetadata` and `privateMetadata`. Both types are set from the [Backend API](https://clerk.com/docs/reference/backend-api){{ target: '_blank' }}, but public metadata can also be accessed from the [Frontend API](https://clerk.com/docs/reference/frontend-api){{ target: '_blank' }}.
|
|
2021
2021
|
*
|
|
@@ -7567,6 +7567,10 @@ type __internal_LocalizationResource = {
|
|
|
7567
7567
|
action__createOrganization: LocalizationValue;
|
|
7568
7568
|
action__invitationAccept: LocalizationValue;
|
|
7569
7569
|
};
|
|
7570
|
+
organizationCreationDisabled: {
|
|
7571
|
+
title: LocalizationValue;
|
|
7572
|
+
subtitle: LocalizationValue;
|
|
7573
|
+
};
|
|
7570
7574
|
};
|
|
7571
7575
|
taskResetPassword: {
|
|
7572
7576
|
title: LocalizationValue;
|
|
@@ -7691,11 +7695,11 @@ type UnstableErrors = WithParamName<{
|
|
|
7691
7695
|
}>;
|
|
7692
7696
|
//#endregion
|
|
7693
7697
|
//#region src/errors/clerkApiError.d.ts
|
|
7694
|
-
type
|
|
7698
|
+
type ClerkAPIErrorMeta = Record<string, unknown>;
|
|
7695
7699
|
/**
|
|
7696
7700
|
* This error contains the specific error message, code, and any additional metadata that was returned by the Clerk API.
|
|
7697
7701
|
*/
|
|
7698
|
-
declare class ClerkAPIError$1<Meta extends
|
|
7702
|
+
declare class ClerkAPIError$1<Meta extends ClerkAPIErrorMeta = any> implements ClerkAPIError {
|
|
7699
7703
|
static kind: string;
|
|
7700
7704
|
readonly code: string;
|
|
7701
7705
|
readonly message: string;
|
|
@@ -7748,7 +7752,7 @@ declare class ClerkRuntimeError$1 extends ClerkError {
|
|
|
7748
7752
|
* be returned when using Clerk hooks.
|
|
7749
7753
|
*/
|
|
7750
7754
|
declare function createClerkGlobalHookError(error: ClerkError): ClerkError & {
|
|
7751
|
-
readonly
|
|
7755
|
+
readonly isClerkAPIResponseError: {
|
|
7752
7756
|
(error: unknown): error is ClerkAPIResponseError$1;
|
|
7753
7757
|
(this: unknown): this is ClerkAPIResponseError$1;
|
|
7754
7758
|
};
|