@clerk/chrome-extension 2.8.9-snapshot.v20251204194024 → 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-L2RFJ2W7.js → chunk-7WRXULN3.js} +46 -7
- package/dist/esm/chunk-7WRXULN3.js.map +1 -0
- package/dist/esm/{chunk-6LYSNOF5.js → chunk-GQGT3THU.js} +3 -3
- package/dist/esm/{chunk-6LYSNOF5.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-L2RFJ2W7.js.map +0 -1
package/dist/cjs/react/index.js
CHANGED
|
@@ -2148,6 +2148,27 @@ withClerk(
|
|
|
2148
2148
|
},
|
|
2149
2149
|
{ component: "TaskChooseOrganization", renderWhileLoading: true }
|
|
2150
2150
|
);
|
|
2151
|
+
withClerk(
|
|
2152
|
+
({ clerk: clerk2, component, fallback, ...props }) => {
|
|
2153
|
+
const mountingStatus = useWaitForComponentMount(component);
|
|
2154
|
+
const shouldShowFallback = mountingStatus === "rendering" || !clerk2.loaded;
|
|
2155
|
+
const rendererRootProps = {
|
|
2156
|
+
...shouldShowFallback && fallback && { style: { display: "none" } }
|
|
2157
|
+
};
|
|
2158
|
+
return /* @__PURE__ */ React7__default.default.createElement(React7__default.default.Fragment, null, shouldShowFallback && fallback, clerk2.loaded && /* @__PURE__ */ React7__default.default.createElement(
|
|
2159
|
+
ClerkHostRenderer,
|
|
2160
|
+
{
|
|
2161
|
+
component,
|
|
2162
|
+
mount: clerk2.mountTaskResetPassword,
|
|
2163
|
+
unmount: clerk2.unmountTaskResetPassword,
|
|
2164
|
+
updateProps: clerk2.__unstable__updateProps,
|
|
2165
|
+
props,
|
|
2166
|
+
rootProps: rendererRootProps
|
|
2167
|
+
}
|
|
2168
|
+
));
|
|
2169
|
+
},
|
|
2170
|
+
{ component: "TaskResetPassword", renderWhileLoading: true }
|
|
2171
|
+
);
|
|
2151
2172
|
|
|
2152
2173
|
// ../react/dist/chunk-OANWQR3B.mjs
|
|
2153
2174
|
var __typeError = (msg) => {
|
|
@@ -2676,7 +2697,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
2676
2697
|
}
|
|
2677
2698
|
var SDK_METADATA = {
|
|
2678
2699
|
name: "@clerk/clerk-react",
|
|
2679
|
-
version: "5.
|
|
2700
|
+
version: "5.58.0",
|
|
2680
2701
|
environment: process.env.NODE_ENV
|
|
2681
2702
|
};
|
|
2682
2703
|
var _status;
|
|
@@ -2719,6 +2740,7 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
2719
2740
|
this.premountAPIKeysNodes = /* @__PURE__ */ new Map();
|
|
2720
2741
|
this.premountOAuthConsentNodes = /* @__PURE__ */ new Map();
|
|
2721
2742
|
this.premountTaskChooseOrganizationNodes = /* @__PURE__ */ new Map();
|
|
2743
|
+
this.premountTaskResetPasswordNodes = /* @__PURE__ */ new Map();
|
|
2722
2744
|
this.premountAddListenerCalls = /* @__PURE__ */ new Map();
|
|
2723
2745
|
this.loadedListeners = [];
|
|
2724
2746
|
__privateAdd2(this, _status, "loading");
|
|
@@ -2997,6 +3019,9 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
2997
3019
|
this.premountTaskChooseOrganizationNodes.forEach((props, node) => {
|
|
2998
3020
|
clerkjs.mountTaskChooseOrganization(node, props);
|
|
2999
3021
|
});
|
|
3022
|
+
this.premountTaskResetPasswordNodes.forEach((props, node) => {
|
|
3023
|
+
clerkjs.mountTaskResetPassword(node, props);
|
|
3024
|
+
});
|
|
3000
3025
|
if (typeof this.clerkjs.status === "undefined") {
|
|
3001
3026
|
__privateGet2(this, _eventBus).emit(clerkEvents.Status, "ready");
|
|
3002
3027
|
}
|
|
@@ -3395,6 +3420,20 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
3395
3420
|
this.premountTaskChooseOrganizationNodes.delete(node);
|
|
3396
3421
|
}
|
|
3397
3422
|
};
|
|
3423
|
+
this.mountTaskResetPassword = (node, props) => {
|
|
3424
|
+
if (this.clerkjs && this.loaded) {
|
|
3425
|
+
this.clerkjs.mountTaskResetPassword(node, props);
|
|
3426
|
+
} else {
|
|
3427
|
+
this.premountTaskResetPasswordNodes.set(node, props);
|
|
3428
|
+
}
|
|
3429
|
+
};
|
|
3430
|
+
this.unmountTaskResetPassword = (node) => {
|
|
3431
|
+
if (this.clerkjs && this.loaded) {
|
|
3432
|
+
this.clerkjs.unmountTaskResetPassword(node);
|
|
3433
|
+
} else {
|
|
3434
|
+
this.premountTaskResetPasswordNodes.delete(node);
|
|
3435
|
+
}
|
|
3436
|
+
};
|
|
3398
3437
|
this.addListener = (listener) => {
|
|
3399
3438
|
if (this.clerkjs) {
|
|
3400
3439
|
return this.clerkjs.addListener(listener);
|
|
@@ -4249,7 +4288,7 @@ var BrowserStorageCache = createBrowserStorageCache();
|
|
|
4249
4288
|
var clerk;
|
|
4250
4289
|
noRhc.Clerk.sdkMetadata = {
|
|
4251
4290
|
name: "@clerk/chrome-extension",
|
|
4252
|
-
version: "2.8.9
|
|
4291
|
+
version: "2.8.9"
|
|
4253
4292
|
};
|
|
4254
4293
|
async function createClerkClient({
|
|
4255
4294
|
__experimental_syncHostListener = false,
|