@clerk/chrome-extension 2.8.7-snapshot.v20251125180024 → 2.8.7-snapshot.v20251126014211
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 +5 -34
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react/index.js +5 -34
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/esm/background/index.js +1 -1
- package/dist/esm/{chunk-TSHOIDH5.js → chunk-CNG5PTWE.js} +4 -4
- package/dist/esm/{chunk-TSHOIDH5.js.map → chunk-CNG5PTWE.js.map} +1 -1
- package/dist/esm/{chunk-CQGCR3OC.js → chunk-S2BDNNQ5.js} +8 -37
- package/dist/esm/chunk-S2BDNNQ5.js.map +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/react/index.js +2 -2
- package/package.json +4 -4
- package/dist/esm/chunk-CQGCR3OC.js.map +0 -1
package/dist/cjs/react/index.js
CHANGED
|
@@ -844,7 +844,7 @@ function dequal2(foo, bar) {
|
|
|
844
844
|
return foo !== foo && bar !== bar;
|
|
845
845
|
}
|
|
846
846
|
|
|
847
|
-
// ../shared/dist/runtime/organization-
|
|
847
|
+
// ../shared/dist/runtime/organization-BaT3MVo3.mjs
|
|
848
848
|
function assertContextExists(contextVal, msgOrCtx) {
|
|
849
849
|
if (!contextVal) throw typeof msgOrCtx === "string" ? new Error(msgOrCtx) : /* @__PURE__ */ new Error(`${msgOrCtx.displayName} not found`);
|
|
850
850
|
}
|
|
@@ -1058,35 +1058,6 @@ var createElementComponent = (type, isServer) => {
|
|
|
1058
1058
|
createElementComponent("payment", typeof window === "undefined");
|
|
1059
1059
|
createContextAndHook("PaymentElementContext");
|
|
1060
1060
|
createContextAndHook("StripeUtilsContext");
|
|
1061
|
-
var PortalRootManager = class {
|
|
1062
|
-
constructor() {
|
|
1063
|
-
__publicField(this, "stack", []);
|
|
1064
|
-
}
|
|
1065
|
-
/**
|
|
1066
|
-
* Push a new portal root getter onto the stack.
|
|
1067
|
-
* @param getContainer Function that returns the container element
|
|
1068
|
-
*/
|
|
1069
|
-
push(getContainer) {
|
|
1070
|
-
this.stack.push(getContainer);
|
|
1071
|
-
}
|
|
1072
|
-
/**
|
|
1073
|
-
* Pop the most recent portal root from the stack.
|
|
1074
|
-
*/
|
|
1075
|
-
pop() {
|
|
1076
|
-
this.stack.pop();
|
|
1077
|
-
}
|
|
1078
|
-
/**
|
|
1079
|
-
* Get the current (topmost) portal root container.
|
|
1080
|
-
* @returns The container element or null if no provider is active
|
|
1081
|
-
*/
|
|
1082
|
-
getCurrent() {
|
|
1083
|
-
if (this.stack.length === 0) return null;
|
|
1084
|
-
const getContainer = this.stack[this.stack.length - 1];
|
|
1085
|
-
return getContainer();
|
|
1086
|
-
}
|
|
1087
|
-
};
|
|
1088
|
-
new PortalRootManager();
|
|
1089
|
-
createContextAndHook("PortalProvider");
|
|
1090
1061
|
var errorThrower = buildErrorThrower({ packageName: "@clerk/clerk-react" });
|
|
1091
1062
|
function setErrorThrowerOptions(options) {
|
|
1092
1063
|
errorThrower.setMessages(options).setPackageName(options);
|
|
@@ -1844,7 +1815,7 @@ var _UserButton = withClerk(
|
|
|
1844
1815
|
const { customPages, customPagesPortals } = useUserProfileCustomPages(props.children, {
|
|
1845
1816
|
allowForAnyChildren: !!props.__experimental_asProvider
|
|
1846
1817
|
});
|
|
1847
|
-
const userProfileProps =
|
|
1818
|
+
const userProfileProps = { ...props.userProfileProps, customPages };
|
|
1848
1819
|
const { customMenuItems, customMenuItemsPortals } = useUserButtonCustomMenuItems(props.children, {
|
|
1849
1820
|
allowForAnyChildren: !!props.__experimental_asProvider
|
|
1850
1821
|
});
|
|
@@ -1988,7 +1959,7 @@ var _OrganizationSwitcher = withClerk(
|
|
|
1988
1959
|
const { customPages, customPagesPortals } = useOrganizationProfileCustomPages(props.children, {
|
|
1989
1960
|
allowForAnyChildren: !!props.__experimental_asProvider
|
|
1990
1961
|
});
|
|
1991
|
-
const organizationProfileProps =
|
|
1962
|
+
const organizationProfileProps = { ...props.organizationProfileProps, customPages };
|
|
1992
1963
|
const sanitizedChildren = useSanitizedChildren(props.children);
|
|
1993
1964
|
const passableProps = {
|
|
1994
1965
|
mount: clerk2.mountOrganizationSwitcher,
|
|
@@ -2705,7 +2676,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
2705
2676
|
}
|
|
2706
2677
|
var SDK_METADATA = {
|
|
2707
2678
|
name: "@clerk/clerk-react",
|
|
2708
|
-
version: "5.57.1-snapshot.
|
|
2679
|
+
version: "5.57.1-snapshot.v20251126014211",
|
|
2709
2680
|
environment: process.env.NODE_ENV
|
|
2710
2681
|
};
|
|
2711
2682
|
var _status;
|
|
@@ -4278,7 +4249,7 @@ var BrowserStorageCache = createBrowserStorageCache();
|
|
|
4278
4249
|
var clerk;
|
|
4279
4250
|
noRhc.Clerk.sdkMetadata = {
|
|
4280
4251
|
name: "@clerk/chrome-extension",
|
|
4281
|
-
version: "2.8.7-snapshot.
|
|
4252
|
+
version: "2.8.7-snapshot.v20251126014211"
|
|
4282
4253
|
};
|
|
4283
4254
|
async function createClerkClient({
|
|
4284
4255
|
__experimental_syncHostListener = false,
|