@clerk/react 6.0.0-snapshot.v20251203203405 → 6.0.0-snapshot.v20251204143242
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/{chunk-EDVV4QQ6.mjs → chunk-ZXC453V5.mjs} +15 -15
- package/dist/chunk-ZXC453V5.mjs.map +1 -0
- package/dist/experimental.d.mts +1 -1
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.js +14 -14
- package/dist/experimental.js.map +1 -1
- package/dist/experimental.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +27 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -14
- package/dist/index.mjs.map +1 -1
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/{types-B2PyH8vw.d.mts → types-Bjumu7Zt.d.mts} +1 -1
- package/dist/{types-B2PyH8vw.d.ts → types-Bjumu7Zt.d.ts} +1 -1
- package/dist/{useAuth-PQ5yhSW8.d.mts → useAuth-C6dUCIl3.d.mts} +1 -1
- package/dist/{useAuth-C4krT3ZR.d.ts → useAuth-hGxwSzMQ.d.ts} +1 -1
- package/package.json +4 -4
- package/dist/chunk-EDVV4QQ6.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
normalizeWithDefaultValue,
|
|
35
35
|
safeExecute,
|
|
36
36
|
withMaxAllowedInstancesGuard
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ZXC453V5.mjs";
|
|
38
38
|
import {
|
|
39
39
|
AuthContext,
|
|
40
40
|
__experimental_CheckoutProvider,
|
|
@@ -585,7 +585,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
585
585
|
}
|
|
586
586
|
var SDK_METADATA = {
|
|
587
587
|
name: "@clerk/react",
|
|
588
|
-
version: "6.0.0-snapshot.
|
|
588
|
+
version: "6.0.0-snapshot.v20251204143242",
|
|
589
589
|
environment: process.env.NODE_ENV
|
|
590
590
|
};
|
|
591
591
|
var _status, _domain, _proxyUrl, _publishableKey, _eventBus, _stateProxy, _instance, _IsomorphicClerk_instances, waitForClerkJS_fn;
|
|
@@ -915,10 +915,10 @@ var _IsomorphicClerk = class _IsomorphicClerk {
|
|
|
915
915
|
return this.loaded && this.clerkjs ? this.clerkjs.__experimental_checkout(...args) : __privateGet(this, _stateProxy).checkoutSignal(...args);
|
|
916
916
|
};
|
|
917
917
|
// TODO @userland-errors:
|
|
918
|
-
this.
|
|
918
|
+
this.__internal_updateProps = async (props) => {
|
|
919
919
|
const clerkjs = await __privateMethod(this, _IsomorphicClerk_instances, waitForClerkJS_fn).call(this);
|
|
920
|
-
if (clerkjs && "
|
|
921
|
-
return clerkjs.
|
|
920
|
+
if (clerkjs && "__internal_updateProps" in clerkjs) {
|
|
921
|
+
return clerkjs.__internal_updateProps(props);
|
|
922
922
|
}
|
|
923
923
|
};
|
|
924
924
|
/**
|
|
@@ -1777,10 +1777,10 @@ var _IsomorphicClerk = class _IsomorphicClerk {
|
|
|
1777
1777
|
domain: this.domain,
|
|
1778
1778
|
nonce: this.options.nonce
|
|
1779
1779
|
});
|
|
1780
|
-
if (!global.
|
|
1780
|
+
if (!global.__internal_ClerkUiCtor) {
|
|
1781
1781
|
throw new Error("Failed to download latest Clerk UI. Contact support@clerk.com.");
|
|
1782
1782
|
}
|
|
1783
|
-
return global.
|
|
1783
|
+
return global.__internal_ClerkUiCtor;
|
|
1784
1784
|
}
|
|
1785
1785
|
get version() {
|
|
1786
1786
|
var _a;
|
|
@@ -1821,9 +1821,9 @@ var _IsomorphicClerk = class _IsomorphicClerk {
|
|
|
1821
1821
|
return void 0;
|
|
1822
1822
|
}
|
|
1823
1823
|
}
|
|
1824
|
-
get
|
|
1824
|
+
get __internal_environment() {
|
|
1825
1825
|
if (this.clerkjs) {
|
|
1826
|
-
return this.clerkjs.
|
|
1826
|
+
return this.clerkjs.__internal_environment;
|
|
1827
1827
|
} else {
|
|
1828
1828
|
return void 0;
|
|
1829
1829
|
}
|
|
@@ -1846,9 +1846,9 @@ var _IsomorphicClerk = class _IsomorphicClerk {
|
|
|
1846
1846
|
var _a;
|
|
1847
1847
|
return (_a = this.clerkjs) == null ? void 0 : _a.apiKeys;
|
|
1848
1848
|
}
|
|
1849
|
-
|
|
1850
|
-
if (this.clerkjs && "
|
|
1851
|
-
this.clerkjs.
|
|
1849
|
+
__internal_setEnvironment(...args) {
|
|
1850
|
+
if (this.clerkjs && "__internal_setEnvironment" in this.clerkjs) {
|
|
1851
|
+
this.clerkjs.__internal_setEnvironment(args);
|
|
1852
1852
|
} else {
|
|
1853
1853
|
return void 0;
|
|
1854
1854
|
}
|
|
@@ -1945,10 +1945,10 @@ var useLoadedIsomorphicClerk = (options) => {
|
|
|
1945
1945
|
const isomorphicClerkRef = React5.useRef(IsomorphicClerk.getOrCreateInstance(options));
|
|
1946
1946
|
const [clerkStatus, setClerkStatus] = React5.useState(isomorphicClerkRef.current.status);
|
|
1947
1947
|
React5.useEffect(() => {
|
|
1948
|
-
void isomorphicClerkRef.current.
|
|
1948
|
+
void isomorphicClerkRef.current.__internal_updateProps({ appearance: options.appearance });
|
|
1949
1949
|
}, [options.appearance]);
|
|
1950
1950
|
React5.useEffect(() => {
|
|
1951
|
-
void isomorphicClerkRef.current.
|
|
1951
|
+
void isomorphicClerkRef.current.__internal_updateProps({ options });
|
|
1952
1952
|
}, [options.localization]);
|
|
1953
1953
|
React5.useEffect(() => {
|
|
1954
1954
|
isomorphicClerkRef.current.on("status", setClerkStatus);
|