@clerk/chrome-extension 2.8.9-snapshot.v20251204210152 → 2.8.9
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 +43 -4
- 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-KOGAPF74.js → chunk-7WRXULN3.js} +46 -7
- package/dist/esm/chunk-7WRXULN3.js.map +1 -0
- package/dist/esm/{chunk-QK2TFLXK.js → chunk-GQGT3THU.js} +3 -3
- package/dist/esm/{chunk-QK2TFLXK.js.map → chunk-GQGT3THU.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-KOGAPF74.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { __export, buildErrorThrower, createDevOrStagingUrlCache, createClerkClient, isClerkAPIResponseError, ClerkRuntimeError, isPublishableKey } from './chunk-
|
|
1
|
+
import { __export, buildErrorThrower, createDevOrStagingUrlCache, createClerkClient, isClerkAPIResponseError, ClerkRuntimeError, isPublishableKey } from './chunk-GQGT3THU.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';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
// ../shared/dist/runtime/authorization-
|
|
7
|
+
// ../shared/dist/runtime/authorization-D2ans7vW.mjs
|
|
8
8
|
var TYPES_TO_OBJECTS = {
|
|
9
9
|
strict_mfa: {
|
|
10
10
|
afterMinutes: 10,
|
|
@@ -222,7 +222,7 @@ var createDeferredPromise = () => {
|
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
224
|
|
|
225
|
-
// ../shared/dist/runtime/organization-
|
|
225
|
+
// ../shared/dist/runtime/organization-BqxdOtRG.mjs
|
|
226
226
|
function getCurrentOrganizationMembership(organizationMemberships, organizationId) {
|
|
227
227
|
return organizationMemberships.find((organizationMembership) => organizationMembership.organization.id === organizationId);
|
|
228
228
|
}
|
|
@@ -3666,6 +3666,27 @@ withClerk(
|
|
|
3666
3666
|
},
|
|
3667
3667
|
{ component: "TaskChooseOrganization", renderWhileLoading: true }
|
|
3668
3668
|
);
|
|
3669
|
+
withClerk(
|
|
3670
|
+
({ clerk, component, fallback, ...props }) => {
|
|
3671
|
+
const mountingStatus = useWaitForComponentMount(component);
|
|
3672
|
+
const shouldShowFallback = mountingStatus === "rendering" || !clerk.loaded;
|
|
3673
|
+
const rendererRootProps = {
|
|
3674
|
+
...shouldShowFallback && fallback && { style: { display: "none" } }
|
|
3675
|
+
};
|
|
3676
|
+
return /* @__PURE__ */ React7.createElement(React7.Fragment, null, shouldShowFallback && fallback, clerk.loaded && /* @__PURE__ */ React7.createElement(
|
|
3677
|
+
ClerkHostRenderer,
|
|
3678
|
+
{
|
|
3679
|
+
component,
|
|
3680
|
+
mount: clerk.mountTaskResetPassword,
|
|
3681
|
+
unmount: clerk.unmountTaskResetPassword,
|
|
3682
|
+
updateProps: clerk.__unstable__updateProps,
|
|
3683
|
+
props,
|
|
3684
|
+
rootProps: rendererRootProps
|
|
3685
|
+
}
|
|
3686
|
+
));
|
|
3687
|
+
},
|
|
3688
|
+
{ component: "TaskResetPassword", renderWhileLoading: true }
|
|
3689
|
+
);
|
|
3669
3690
|
|
|
3670
3691
|
// ../react/dist/chunk-OANWQR3B.mjs
|
|
3671
3692
|
var __typeError = (msg) => {
|
|
@@ -3677,7 +3698,7 @@ var __privateAdd2 = (obj, member, value) => member.has(obj) ? __typeError("Canno
|
|
|
3677
3698
|
var __privateSet2 = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
3678
3699
|
var __privateMethod2 = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
3679
3700
|
|
|
3680
|
-
// ../shared/dist/runtime/loadClerkJsScript-
|
|
3701
|
+
// ../shared/dist/runtime/loadClerkJsScript-FELa8qS5.mjs
|
|
3681
3702
|
var { isDevOrStagingUrl } = createDevOrStagingUrlCache();
|
|
3682
3703
|
var errorThrower2 = buildErrorThrower({ packageName: "@clerk/shared" });
|
|
3683
3704
|
function setClerkJsLoadingErrorPackageName(packageName) {
|
|
@@ -4197,7 +4218,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
4197
4218
|
}
|
|
4198
4219
|
var SDK_METADATA = {
|
|
4199
4220
|
name: "@clerk/clerk-react",
|
|
4200
|
-
version: "5.
|
|
4221
|
+
version: "5.58.0",
|
|
4201
4222
|
environment: process.env.NODE_ENV
|
|
4202
4223
|
};
|
|
4203
4224
|
var _status;
|
|
@@ -4240,6 +4261,7 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
4240
4261
|
this.premountAPIKeysNodes = /* @__PURE__ */ new Map();
|
|
4241
4262
|
this.premountOAuthConsentNodes = /* @__PURE__ */ new Map();
|
|
4242
4263
|
this.premountTaskChooseOrganizationNodes = /* @__PURE__ */ new Map();
|
|
4264
|
+
this.premountTaskResetPasswordNodes = /* @__PURE__ */ new Map();
|
|
4243
4265
|
this.premountAddListenerCalls = /* @__PURE__ */ new Map();
|
|
4244
4266
|
this.loadedListeners = [];
|
|
4245
4267
|
__privateAdd2(this, _status, "loading");
|
|
@@ -4518,6 +4540,9 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
4518
4540
|
this.premountTaskChooseOrganizationNodes.forEach((props, node) => {
|
|
4519
4541
|
clerkjs.mountTaskChooseOrganization(node, props);
|
|
4520
4542
|
});
|
|
4543
|
+
this.premountTaskResetPasswordNodes.forEach((props, node) => {
|
|
4544
|
+
clerkjs.mountTaskResetPassword(node, props);
|
|
4545
|
+
});
|
|
4521
4546
|
if (typeof this.clerkjs.status === "undefined") {
|
|
4522
4547
|
__privateGet2(this, _eventBus).emit(clerkEvents.Status, "ready");
|
|
4523
4548
|
}
|
|
@@ -4916,6 +4941,20 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
4916
4941
|
this.premountTaskChooseOrganizationNodes.delete(node);
|
|
4917
4942
|
}
|
|
4918
4943
|
};
|
|
4944
|
+
this.mountTaskResetPassword = (node, props) => {
|
|
4945
|
+
if (this.clerkjs && this.loaded) {
|
|
4946
|
+
this.clerkjs.mountTaskResetPassword(node, props);
|
|
4947
|
+
} else {
|
|
4948
|
+
this.premountTaskResetPasswordNodes.set(node, props);
|
|
4949
|
+
}
|
|
4950
|
+
};
|
|
4951
|
+
this.unmountTaskResetPassword = (node) => {
|
|
4952
|
+
if (this.clerkjs && this.loaded) {
|
|
4953
|
+
this.clerkjs.unmountTaskResetPassword(node);
|
|
4954
|
+
} else {
|
|
4955
|
+
this.premountTaskResetPasswordNodes.delete(node);
|
|
4956
|
+
}
|
|
4957
|
+
};
|
|
4919
4958
|
this.addListener = (listener) => {
|
|
4920
4959
|
if (this.clerkjs) {
|
|
4921
4960
|
return this.clerkjs.addListener(listener);
|
|
@@ -5599,5 +5638,5 @@ function ClerkProvider2(props) {
|
|
|
5599
5638
|
var GoogleOneTap2 = () => null;
|
|
5600
5639
|
|
|
5601
5640
|
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 };
|
|
5602
|
-
//# sourceMappingURL=chunk-
|
|
5603
|
-
//# sourceMappingURL=chunk-
|
|
5641
|
+
//# sourceMappingURL=chunk-7WRXULN3.js.map
|
|
5642
|
+
//# sourceMappingURL=chunk-7WRXULN3.js.map
|