@clerk/shared 3.12.1 → 3.12.2
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/apiUrlFromPublishableKey.d.mts +1 -1
- package/dist/apiUrlFromPublishableKey.d.ts +1 -1
- package/dist/{chunk-2PH4RWTJ.mjs → chunk-KTOPXA2L.mjs} +3 -3
- package/dist/{chunk-INIIHNPN.mjs → chunk-QCJ4X7ET.mjs} +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/loadClerkJsScript.js +2 -2
- package/dist/loadClerkJsScript.mjs +2 -2
- package/dist/react/index.d.mts +2 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs.map +1 -1
- package/dist/versionSelector.js +2 -2
- package/dist/versionSelector.mjs +1 -1
- package/package.json +2 -2
- /package/dist/{chunk-2PH4RWTJ.mjs.map → chunk-KTOPXA2L.mjs.map} +0 -0
- /package/dist/{chunk-INIIHNPN.mjs.map → chunk-QCJ4X7ET.mjs.map} +0 -0
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* @param publishableKey - The publishable key to parse.
|
|
5
5
|
* @returns One of Clerk's API URLs.
|
|
6
6
|
*/
|
|
7
|
-
declare const apiUrlFromPublishableKey: (publishableKey: string) => "https://api.
|
|
7
|
+
declare const apiUrlFromPublishableKey: (publishableKey: string) => "https://api.clerk.com" | "https://api.lclclerk.com" | "https://api.clerkstage.dev";
|
|
8
8
|
|
|
9
9
|
export { apiUrlFromPublishableKey };
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* @param publishableKey - The publishable key to parse.
|
|
5
5
|
* @returns One of Clerk's API URLs.
|
|
6
6
|
*/
|
|
7
|
-
declare const apiUrlFromPublishableKey: (publishableKey: string) => "https://api.
|
|
7
|
+
declare const apiUrlFromPublishableKey: (publishableKey: string) => "https://api.clerk.com" | "https://api.lclclerk.com" | "https://api.clerkstage.dev";
|
|
8
8
|
|
|
9
9
|
export { apiUrlFromPublishableKey };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// src/versionSelector.ts
|
|
2
|
-
var versionSelector = (clerkJSVersion, packageVersion = "5.73.
|
|
2
|
+
var versionSelector = (clerkJSVersion, packageVersion = "5.73.1") => {
|
|
3
3
|
if (clerkJSVersion) {
|
|
4
4
|
return clerkJSVersion;
|
|
5
5
|
}
|
|
6
6
|
const prereleaseTag = getPrereleaseTag(packageVersion);
|
|
7
7
|
if (prereleaseTag) {
|
|
8
8
|
if (prereleaseTag === "snapshot") {
|
|
9
|
-
return "5.73.
|
|
9
|
+
return "5.73.1";
|
|
10
10
|
}
|
|
11
11
|
return prereleaseTag;
|
|
12
12
|
}
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
versionSelector,
|
|
20
20
|
getMajorVersion
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=chunk-
|
|
22
|
+
//# sourceMappingURL=chunk-KTOPXA2L.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
versionSelector
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KTOPXA2L.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isValidProxyUrl,
|
|
6
6
|
proxyUrlToAbsoluteURL
|
|
@@ -97,4 +97,4 @@ export {
|
|
|
97
97
|
clerkJsScriptUrl,
|
|
98
98
|
buildClerkJsScriptAttributes
|
|
99
99
|
};
|
|
100
|
-
//# sourceMappingURL=chunk-
|
|
100
|
+
//# sourceMappingURL=chunk-QCJ4X7ET.mjs.map
|
package/dist/index.js
CHANGED
|
@@ -1274,14 +1274,14 @@ var ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
|
|
|
1274
1274
|
var isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);
|
|
1275
1275
|
|
|
1276
1276
|
// src/versionSelector.ts
|
|
1277
|
-
var versionSelector = (clerkJSVersion, packageVersion = "5.73.
|
|
1277
|
+
var versionSelector = (clerkJSVersion, packageVersion = "5.73.1") => {
|
|
1278
1278
|
if (clerkJSVersion) {
|
|
1279
1279
|
return clerkJSVersion;
|
|
1280
1280
|
}
|
|
1281
1281
|
const prereleaseTag = getPrereleaseTag(packageVersion);
|
|
1282
1282
|
if (prereleaseTag) {
|
|
1283
1283
|
if (prereleaseTag === "snapshot") {
|
|
1284
|
-
return "5.73.
|
|
1284
|
+
return "5.73.1";
|
|
1285
1285
|
}
|
|
1286
1286
|
return prereleaseTag;
|
|
1287
1287
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
clerkJsScriptUrl,
|
|
37
37
|
loadClerkJsScript,
|
|
38
38
|
setClerkJsLoadingErrorPackageName
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-QCJ4X7ET.mjs";
|
|
40
40
|
import {
|
|
41
41
|
versionSelector
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KTOPXA2L.mjs";
|
|
43
43
|
import {
|
|
44
44
|
isHttpOrHttps,
|
|
45
45
|
isProxyUrlRelative,
|
|
@@ -334,14 +334,14 @@ function addClerkPrefix(str) {
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
// src/versionSelector.ts
|
|
337
|
-
var versionSelector = (clerkJSVersion, packageVersion = "5.73.
|
|
337
|
+
var versionSelector = (clerkJSVersion, packageVersion = "5.73.1") => {
|
|
338
338
|
if (clerkJSVersion) {
|
|
339
339
|
return clerkJSVersion;
|
|
340
340
|
}
|
|
341
341
|
const prereleaseTag = getPrereleaseTag(packageVersion);
|
|
342
342
|
if (prereleaseTag) {
|
|
343
343
|
if (prereleaseTag === "snapshot") {
|
|
344
|
-
return "5.73.
|
|
344
|
+
return "5.73.1";
|
|
345
345
|
}
|
|
346
346
|
return prereleaseTag;
|
|
347
347
|
}
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
clerkJsScriptUrl,
|
|
4
4
|
loadClerkJsScript,
|
|
5
5
|
setClerkJsLoadingErrorPackageName
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-QCJ4X7ET.mjs";
|
|
7
|
+
import "./chunk-KTOPXA2L.mjs";
|
|
8
8
|
import "./chunk-6NDGN2IU.mjs";
|
|
9
9
|
import "./chunk-IFTVZ2LQ.mjs";
|
|
10
10
|
import "./chunk-3TMSNP4L.mjs";
|
package/dist/react/index.d.mts
CHANGED
|
@@ -182,6 +182,7 @@ type UseOrganizationParams = {
|
|
|
182
182
|
*/
|
|
183
183
|
invitations?: true | PaginatedHookConfig<GetInvitationsParams>;
|
|
184
184
|
/**
|
|
185
|
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
|
|
185
186
|
* If set to `true`, all default properties will be used.<br />
|
|
186
187
|
* Otherwise, accepts an object with the following optional properties:
|
|
187
188
|
* <ul>
|
|
@@ -224,6 +225,7 @@ type UseOrganizationReturn<T extends UseOrganizationParams> = {
|
|
|
224
225
|
*/
|
|
225
226
|
invitations: PaginatedResourcesWithDefault<OrganizationInvitationResource>;
|
|
226
227
|
/**
|
|
228
|
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
|
|
227
229
|
* Includes a paginated list of the organization's subscriptions.
|
|
228
230
|
*/
|
|
229
231
|
subscriptions: PaginatedResourcesWithDefault<CommerceSubscriptionResource>;
|
package/dist/react/index.d.ts
CHANGED
|
@@ -182,6 +182,7 @@ type UseOrganizationParams = {
|
|
|
182
182
|
*/
|
|
183
183
|
invitations?: true | PaginatedHookConfig<GetInvitationsParams>;
|
|
184
184
|
/**
|
|
185
|
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
|
|
185
186
|
* If set to `true`, all default properties will be used.<br />
|
|
186
187
|
* Otherwise, accepts an object with the following optional properties:
|
|
187
188
|
* <ul>
|
|
@@ -224,6 +225,7 @@ type UseOrganizationReturn<T extends UseOrganizationParams> = {
|
|
|
224
225
|
*/
|
|
225
226
|
invitations: PaginatedResourcesWithDefault<OrganizationInvitationResource>;
|
|
226
227
|
/**
|
|
228
|
+
* @experimental This is an experimental API for the Billing feature that is available under a public beta, and the API is subject to change.
|
|
227
229
|
* Includes a paginated list of the organization's subscriptions.
|
|
228
230
|
*/
|
|
229
231
|
subscriptions: PaginatedResourcesWithDefault<CommerceSubscriptionResource>;
|