@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
|
@@ -429,7 +429,7 @@ var BrowserStorageCache = createBrowserStorageCache();
|
|
|
429
429
|
var clerk;
|
|
430
430
|
noRhc.Clerk.sdkMetadata = {
|
|
431
431
|
name: "@clerk/chrome-extension",
|
|
432
|
-
version: "2.8.9
|
|
432
|
+
version: "2.8.9"
|
|
433
433
|
};
|
|
434
434
|
async function createClerkClient({
|
|
435
435
|
__experimental_syncHostListener = false,
|
package/dist/cjs/index.js
CHANGED
|
@@ -186,7 +186,7 @@ function isClerkAPIResponseError(err) {
|
|
|
186
186
|
return err && "clerkError" in err;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
// ../shared/dist/runtime/authorization-
|
|
189
|
+
// ../shared/dist/runtime/authorization-D2ans7vW.mjs
|
|
190
190
|
var TYPES_TO_OBJECTS = {
|
|
191
191
|
strict_mfa: {
|
|
192
192
|
afterMinutes: 10,
|
|
@@ -460,7 +460,7 @@ var createDeferredPromise = () => {
|
|
|
460
460
|
};
|
|
461
461
|
};
|
|
462
462
|
|
|
463
|
-
// ../shared/dist/runtime/organization-
|
|
463
|
+
// ../shared/dist/runtime/organization-BqxdOtRG.mjs
|
|
464
464
|
function getCurrentOrganizationMembership(organizationMemberships, organizationId) {
|
|
465
465
|
return organizationMemberships.find((organizationMembership) => organizationMembership.organization.id === organizationId);
|
|
466
466
|
}
|
|
@@ -3904,6 +3904,27 @@ withClerk(
|
|
|
3904
3904
|
},
|
|
3905
3905
|
{ component: "TaskChooseOrganization", renderWhileLoading: true }
|
|
3906
3906
|
);
|
|
3907
|
+
withClerk(
|
|
3908
|
+
({ clerk: clerk2, component, fallback, ...props }) => {
|
|
3909
|
+
const mountingStatus = useWaitForComponentMount(component);
|
|
3910
|
+
const shouldShowFallback = mountingStatus === "rendering" || !clerk2.loaded;
|
|
3911
|
+
const rendererRootProps = {
|
|
3912
|
+
...shouldShowFallback && fallback && { style: { display: "none" } }
|
|
3913
|
+
};
|
|
3914
|
+
return /* @__PURE__ */ React7__default.default.createElement(React7__default.default.Fragment, null, shouldShowFallback && fallback, clerk2.loaded && /* @__PURE__ */ React7__default.default.createElement(
|
|
3915
|
+
ClerkHostRenderer,
|
|
3916
|
+
{
|
|
3917
|
+
component,
|
|
3918
|
+
mount: clerk2.mountTaskResetPassword,
|
|
3919
|
+
unmount: clerk2.unmountTaskResetPassword,
|
|
3920
|
+
updateProps: clerk2.__unstable__updateProps,
|
|
3921
|
+
props,
|
|
3922
|
+
rootProps: rendererRootProps
|
|
3923
|
+
}
|
|
3924
|
+
));
|
|
3925
|
+
},
|
|
3926
|
+
{ component: "TaskResetPassword", renderWhileLoading: true }
|
|
3927
|
+
);
|
|
3907
3928
|
|
|
3908
3929
|
// ../react/dist/chunk-OANWQR3B.mjs
|
|
3909
3930
|
var __typeError = (msg) => {
|
|
@@ -4432,7 +4453,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
4432
4453
|
}
|
|
4433
4454
|
var SDK_METADATA = {
|
|
4434
4455
|
name: "@clerk/clerk-react",
|
|
4435
|
-
version: "5.
|
|
4456
|
+
version: "5.58.0",
|
|
4436
4457
|
environment: process.env.NODE_ENV
|
|
4437
4458
|
};
|
|
4438
4459
|
var _status;
|
|
@@ -4475,6 +4496,7 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
4475
4496
|
this.premountAPIKeysNodes = /* @__PURE__ */ new Map();
|
|
4476
4497
|
this.premountOAuthConsentNodes = /* @__PURE__ */ new Map();
|
|
4477
4498
|
this.premountTaskChooseOrganizationNodes = /* @__PURE__ */ new Map();
|
|
4499
|
+
this.premountTaskResetPasswordNodes = /* @__PURE__ */ new Map();
|
|
4478
4500
|
this.premountAddListenerCalls = /* @__PURE__ */ new Map();
|
|
4479
4501
|
this.loadedListeners = [];
|
|
4480
4502
|
__privateAdd2(this, _status, "loading");
|
|
@@ -4753,6 +4775,9 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
4753
4775
|
this.premountTaskChooseOrganizationNodes.forEach((props, node) => {
|
|
4754
4776
|
clerkjs.mountTaskChooseOrganization(node, props);
|
|
4755
4777
|
});
|
|
4778
|
+
this.premountTaskResetPasswordNodes.forEach((props, node) => {
|
|
4779
|
+
clerkjs.mountTaskResetPassword(node, props);
|
|
4780
|
+
});
|
|
4756
4781
|
if (typeof this.clerkjs.status === "undefined") {
|
|
4757
4782
|
__privateGet2(this, _eventBus).emit(clerkEvents.Status, "ready");
|
|
4758
4783
|
}
|
|
@@ -5151,6 +5176,20 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
5151
5176
|
this.premountTaskChooseOrganizationNodes.delete(node);
|
|
5152
5177
|
}
|
|
5153
5178
|
};
|
|
5179
|
+
this.mountTaskResetPassword = (node, props) => {
|
|
5180
|
+
if (this.clerkjs && this.loaded) {
|
|
5181
|
+
this.clerkjs.mountTaskResetPassword(node, props);
|
|
5182
|
+
} else {
|
|
5183
|
+
this.premountTaskResetPasswordNodes.set(node, props);
|
|
5184
|
+
}
|
|
5185
|
+
};
|
|
5186
|
+
this.unmountTaskResetPassword = (node) => {
|
|
5187
|
+
if (this.clerkjs && this.loaded) {
|
|
5188
|
+
this.clerkjs.unmountTaskResetPassword(node);
|
|
5189
|
+
} else {
|
|
5190
|
+
this.premountTaskResetPasswordNodes.delete(node);
|
|
5191
|
+
}
|
|
5192
|
+
};
|
|
5154
5193
|
this.addListener = (listener) => {
|
|
5155
5194
|
if (this.clerkjs) {
|
|
5156
5195
|
return this.clerkjs.addListener(listener);
|
|
@@ -6005,7 +6044,7 @@ var BrowserStorageCache = createBrowserStorageCache();
|
|
|
6005
6044
|
var clerk;
|
|
6006
6045
|
noRhc.Clerk.sdkMetadata = {
|
|
6007
6046
|
name: "@clerk/chrome-extension",
|
|
6008
|
-
version: "2.8.9
|
|
6047
|
+
version: "2.8.9"
|
|
6009
6048
|
};
|
|
6010
6049
|
async function createClerkClient({
|
|
6011
6050
|
__experimental_syncHostListener = false,
|