@clerk/chrome-extension 2.8.7-snapshot.v20251125180024 → 2.8.7-snapshot.v20251127123052
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 +7 -36
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react/index.js +7 -36
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/esm/background/index.js +1 -1
- package/dist/esm/{chunk-CQGCR3OC.js → chunk-7USREJBT.js} +10 -39
- package/dist/esm/chunk-7USREJBT.js.map +1 -0
- package/dist/esm/{chunk-TSHOIDH5.js → chunk-R45RD2LA.js} +4 -4
- package/dist/esm/{chunk-TSHOIDH5.js.map → chunk-R45RD2LA.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-CQGCR3OC.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.7-snapshot.
|
|
432
|
+
version: "2.8.7-snapshot.v20251127123052"
|
|
433
433
|
};
|
|
434
434
|
async function createClerkClient({
|
|
435
435
|
__experimental_syncHostListener = false,
|
package/dist/cjs/index.js
CHANGED
|
@@ -1764,7 +1764,7 @@ function dequal2(foo, bar) {
|
|
|
1764
1764
|
return foo !== foo && bar !== bar;
|
|
1765
1765
|
}
|
|
1766
1766
|
|
|
1767
|
-
// ../shared/dist/runtime/organization-
|
|
1767
|
+
// ../shared/dist/runtime/organization-BaT3MVo3.mjs
|
|
1768
1768
|
function assertContextExists(contextVal, msgOrCtx) {
|
|
1769
1769
|
if (!contextVal) throw typeof msgOrCtx === "string" ? new Error(msgOrCtx) : /* @__PURE__ */ new Error(`${msgOrCtx.displayName} not found`);
|
|
1770
1770
|
}
|
|
@@ -2596,35 +2596,6 @@ var createElementComponent = (type, isServer) => {
|
|
|
2596
2596
|
createElementComponent("payment", typeof window === "undefined");
|
|
2597
2597
|
createContextAndHook("PaymentElementContext");
|
|
2598
2598
|
createContextAndHook("StripeUtilsContext");
|
|
2599
|
-
var PortalRootManager = class {
|
|
2600
|
-
constructor() {
|
|
2601
|
-
__publicField(this, "stack", []);
|
|
2602
|
-
}
|
|
2603
|
-
/**
|
|
2604
|
-
* Push a new portal root getter onto the stack.
|
|
2605
|
-
* @param getContainer Function that returns the container element
|
|
2606
|
-
*/
|
|
2607
|
-
push(getContainer) {
|
|
2608
|
-
this.stack.push(getContainer);
|
|
2609
|
-
}
|
|
2610
|
-
/**
|
|
2611
|
-
* Pop the most recent portal root from the stack.
|
|
2612
|
-
*/
|
|
2613
|
-
pop() {
|
|
2614
|
-
this.stack.pop();
|
|
2615
|
-
}
|
|
2616
|
-
/**
|
|
2617
|
-
* Get the current (topmost) portal root container.
|
|
2618
|
-
* @returns The container element or null if no provider is active
|
|
2619
|
-
*/
|
|
2620
|
-
getCurrent() {
|
|
2621
|
-
if (this.stack.length === 0) return null;
|
|
2622
|
-
const getContainer = this.stack[this.stack.length - 1];
|
|
2623
|
-
return getContainer();
|
|
2624
|
-
}
|
|
2625
|
-
};
|
|
2626
|
-
new PortalRootManager();
|
|
2627
|
-
createContextAndHook("PortalProvider");
|
|
2628
2599
|
function getCurrentOrganizationMembership(organizationMemberships, organizationId) {
|
|
2629
2600
|
return organizationMemberships.find((organizationMembership) => organizationMembership.organization.id === organizationId);
|
|
2630
2601
|
}
|
|
@@ -3598,7 +3569,7 @@ var _UserButton = withClerk(
|
|
|
3598
3569
|
const { customPages, customPagesPortals } = useUserProfileCustomPages(props.children, {
|
|
3599
3570
|
allowForAnyChildren: !!props.__experimental_asProvider
|
|
3600
3571
|
});
|
|
3601
|
-
const userProfileProps =
|
|
3572
|
+
const userProfileProps = { ...props.userProfileProps, customPages };
|
|
3602
3573
|
const { customMenuItems, customMenuItemsPortals } = useUserButtonCustomMenuItems(props.children, {
|
|
3603
3574
|
allowForAnyChildren: !!props.__experimental_asProvider
|
|
3604
3575
|
});
|
|
@@ -3742,7 +3713,7 @@ var _OrganizationSwitcher = withClerk(
|
|
|
3742
3713
|
const { customPages, customPagesPortals } = useOrganizationProfileCustomPages(props.children, {
|
|
3743
3714
|
allowForAnyChildren: !!props.__experimental_asProvider
|
|
3744
3715
|
});
|
|
3745
|
-
const organizationProfileProps =
|
|
3716
|
+
const organizationProfileProps = { ...props.organizationProfileProps, customPages };
|
|
3746
3717
|
const sanitizedChildren = useSanitizedChildren(props.children);
|
|
3747
3718
|
const passableProps = {
|
|
3748
3719
|
mount: clerk2.mountOrganizationSwitcher,
|
|
@@ -4459,7 +4430,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
4459
4430
|
}
|
|
4460
4431
|
var SDK_METADATA = {
|
|
4461
4432
|
name: "@clerk/clerk-react",
|
|
4462
|
-
version: "5.
|
|
4433
|
+
version: "5.58.0-snapshot.v20251127123052",
|
|
4463
4434
|
environment: process.env.NODE_ENV
|
|
4464
4435
|
};
|
|
4465
4436
|
var _status;
|
|
@@ -4631,10 +4602,10 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
4631
4602
|
this.premountMethodCalls.set("buildWaitlistUrl", callback);
|
|
4632
4603
|
}
|
|
4633
4604
|
};
|
|
4634
|
-
this.buildTasksUrl = () => {
|
|
4605
|
+
this.buildTasksUrl = (opts) => {
|
|
4635
4606
|
const callback = () => {
|
|
4636
4607
|
var _a5;
|
|
4637
|
-
return ((_a5 = this.clerkjs) == null ? void 0 : _a5.buildTasksUrl()) || "";
|
|
4608
|
+
return ((_a5 = this.clerkjs) == null ? void 0 : _a5.buildTasksUrl(opts)) || "";
|
|
4638
4609
|
};
|
|
4639
4610
|
if (this.clerkjs && this.loaded) {
|
|
4640
4611
|
return callback();
|
|
@@ -6032,7 +6003,7 @@ var BrowserStorageCache = createBrowserStorageCache();
|
|
|
6032
6003
|
var clerk;
|
|
6033
6004
|
noRhc.Clerk.sdkMetadata = {
|
|
6034
6005
|
name: "@clerk/chrome-extension",
|
|
6035
|
-
version: "2.8.7-snapshot.
|
|
6006
|
+
version: "2.8.7-snapshot.v20251127123052"
|
|
6036
6007
|
};
|
|
6037
6008
|
async function createClerkClient({
|
|
6038
6009
|
__experimental_syncHostListener = false,
|