@clerk/chrome-extension 2.8.5-snapshot.v20251125145744 → 2.8.5-snapshot.v20251125223005
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/cjs/background/index.js +1 -1
- package/dist/cjs/index.js +41 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react/index.js +41 -2
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/esm/background/index.js +1 -1
- package/dist/esm/{chunk-B7OIRSBS.js → chunk-4ZP5LLQF.js} +44 -5
- package/dist/esm/chunk-4ZP5LLQF.js.map +1 -0
- package/dist/esm/{chunk-3JQPWHS4.js → chunk-O7O3LA5M.js} +3 -3
- package/dist/esm/{chunk-3JQPWHS4.js.map → chunk-O7O3LA5M.js.map} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/react/index.js +2 -2
- package/dist/types/internal/utils/errors.d.ts +1 -1
- package/package.json +4 -4
- package/dist/esm/chunk-B7OIRSBS.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __export, buildErrorThrower, createDevOrStagingUrlCache, createClerkClient, isClerkAPIResponseError, ClerkRuntimeError, isPublishableKey } from './chunk-
|
|
1
|
+
import { __export, buildErrorThrower, createDevOrStagingUrlCache, createClerkClient, isClerkAPIResponseError, ClerkRuntimeError, isPublishableKey } from './chunk-O7O3LA5M.js';
|
|
2
2
|
import React7, { createContext, useContext, useState, useRef, useEffect, createElement, useCallback, useMemo, useLayoutEffect, useDebugValue } from 'react';
|
|
3
3
|
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js';
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
@@ -3664,6 +3664,27 @@ withClerk(
|
|
|
3664
3664
|
},
|
|
3665
3665
|
{ component: "TaskChooseOrganization", renderWhileLoading: true }
|
|
3666
3666
|
);
|
|
3667
|
+
withClerk(
|
|
3668
|
+
({ clerk, component, fallback, ...props }) => {
|
|
3669
|
+
const mountingStatus = useWaitForComponentMount(component);
|
|
3670
|
+
const shouldShowFallback = mountingStatus === "rendering" || !clerk.loaded;
|
|
3671
|
+
const rendererRootProps = {
|
|
3672
|
+
...shouldShowFallback && fallback && { style: { display: "none" } }
|
|
3673
|
+
};
|
|
3674
|
+
return /* @__PURE__ */ React7.createElement(React7.Fragment, null, shouldShowFallback && fallback, clerk.loaded && /* @__PURE__ */ React7.createElement(
|
|
3675
|
+
ClerkHostRenderer,
|
|
3676
|
+
{
|
|
3677
|
+
component,
|
|
3678
|
+
mount: clerk.mountTaskResetPassword,
|
|
3679
|
+
unmount: clerk.unmountTaskResetPassword,
|
|
3680
|
+
updateProps: clerk.__unstable__updateProps,
|
|
3681
|
+
props,
|
|
3682
|
+
rootProps: rendererRootProps
|
|
3683
|
+
}
|
|
3684
|
+
));
|
|
3685
|
+
},
|
|
3686
|
+
{ component: "TaskResetPassword", renderWhileLoading: true }
|
|
3687
|
+
);
|
|
3667
3688
|
|
|
3668
3689
|
// ../react/dist/chunk-OANWQR3B.mjs
|
|
3669
3690
|
var __typeError = (msg) => {
|
|
@@ -3675,7 +3696,7 @@ var __privateAdd2 = (obj, member, value) => member.has(obj) ? __typeError("Canno
|
|
|
3675
3696
|
var __privateSet2 = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
3676
3697
|
var __privateMethod2 = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
3677
3698
|
|
|
3678
|
-
// ../shared/dist/runtime/loadClerkJsScript-
|
|
3699
|
+
// ../shared/dist/runtime/loadClerkJsScript-M-M5qpTc.mjs
|
|
3679
3700
|
var { isDevOrStagingUrl } = createDevOrStagingUrlCache();
|
|
3680
3701
|
var errorThrower2 = buildErrorThrower({ packageName: "@clerk/shared" });
|
|
3681
3702
|
function setClerkJsLoadingErrorPackageName(packageName) {
|
|
@@ -4195,7 +4216,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
4195
4216
|
}
|
|
4196
4217
|
var SDK_METADATA = {
|
|
4197
4218
|
name: "@clerk/clerk-react",
|
|
4198
|
-
version: "5.57.0-snapshot.
|
|
4219
|
+
version: "5.57.0-snapshot.v20251125223005",
|
|
4199
4220
|
environment: process.env.NODE_ENV
|
|
4200
4221
|
};
|
|
4201
4222
|
var _status;
|
|
@@ -4238,6 +4259,7 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
4238
4259
|
this.premountAPIKeysNodes = /* @__PURE__ */ new Map();
|
|
4239
4260
|
this.premountOAuthConsentNodes = /* @__PURE__ */ new Map();
|
|
4240
4261
|
this.premountTaskChooseOrganizationNodes = /* @__PURE__ */ new Map();
|
|
4262
|
+
this.premountTaskResetPasswordNodes = /* @__PURE__ */ new Map();
|
|
4241
4263
|
this.premountAddListenerCalls = /* @__PURE__ */ new Map();
|
|
4242
4264
|
this.loadedListeners = [];
|
|
4243
4265
|
__privateAdd2(this, _status, "loading");
|
|
@@ -4516,6 +4538,9 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
4516
4538
|
this.premountTaskChooseOrganizationNodes.forEach((props, node) => {
|
|
4517
4539
|
clerkjs.mountTaskChooseOrganization(node, props);
|
|
4518
4540
|
});
|
|
4541
|
+
this.premountTaskResetPasswordNodes.forEach((props, node) => {
|
|
4542
|
+
clerkjs.mountTaskResetPassword(node, props);
|
|
4543
|
+
});
|
|
4519
4544
|
if (typeof this.clerkjs.status === "undefined") {
|
|
4520
4545
|
__privateGet2(this, _eventBus).emit(clerkEvents.Status, "ready");
|
|
4521
4546
|
}
|
|
@@ -4914,6 +4939,20 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
4914
4939
|
this.premountTaskChooseOrganizationNodes.delete(node);
|
|
4915
4940
|
}
|
|
4916
4941
|
};
|
|
4942
|
+
this.__experimental_mountTaskResetPassword = (node, props) => {
|
|
4943
|
+
if (this.clerkjs && this.loaded) {
|
|
4944
|
+
this.clerkjs.mountTaskResetPassword(node, props);
|
|
4945
|
+
} else {
|
|
4946
|
+
this.premountTaskResetPasswordNodes.set(node, props);
|
|
4947
|
+
}
|
|
4948
|
+
};
|
|
4949
|
+
this.unmountTaskResetPassword = (node) => {
|
|
4950
|
+
if (this.clerkjs && this.loaded) {
|
|
4951
|
+
this.clerkjs.unmountTaskResetPassword(node);
|
|
4952
|
+
} else {
|
|
4953
|
+
this.premountTaskResetPasswordNodes.delete(node);
|
|
4954
|
+
}
|
|
4955
|
+
};
|
|
4917
4956
|
this.addListener = (listener) => {
|
|
4918
4957
|
if (this.clerkjs) {
|
|
4919
4958
|
return this.clerkjs.addListener(listener);
|
|
@@ -5597,5 +5636,5 @@ function ClerkProvider2(props) {
|
|
|
5597
5636
|
var GoogleOneTap2 = () => null;
|
|
5598
5637
|
|
|
5599
5638
|
export { APIKeys, AuthenticateWithRedirectCallback, ClerkDegraded, ClerkFailed, ClerkLoaded, ClerkLoading, ClerkProvider2 as ClerkProvider, CreateOrganization, GoogleOneTap2 as GoogleOneTap, OrganizationList, OrganizationProfile, OrganizationSwitcher, PricingTable, Protect, RedirectToCreateOrganization, RedirectToOrganizationProfile, RedirectToSignIn, RedirectToSignUp, RedirectToUserProfile, SignIn, SignInButton, SignInWithMetamaskButton, SignOutButton, SignUp, SignUpButton, SignedIn, SignedOut, UserAvatar, UserButton, UserProfile, Waitlist, setErrorThrowerOptions, useAuth, useClerk, useEmailLink, useOrganization, useOrganizationList, useReverification, useSession, useSessionList, useSignIn, useSignUp, useUser };
|
|
5600
|
-
//# sourceMappingURL=chunk-
|
|
5601
|
-
//# sourceMappingURL=chunk-
|
|
5639
|
+
//# sourceMappingURL=chunk-4ZP5LLQF.js.map
|
|
5640
|
+
//# sourceMappingURL=chunk-4ZP5LLQF.js.map
|