@clerk/clerk-react
Advanced tools
Comparing version 3.3.0-staging.0 to 3.3.0-staging.1
@@ -19,2 +19,3 @@ "use strict"; | ||
user: clerk.user, | ||
organization: clerk.organization, | ||
}); | ||
@@ -21,0 +22,0 @@ const derivedState = deriveState(clerkLoaded, state, initialState); |
@@ -6,2 +6,3 @@ "use strict"; | ||
const useOrganization = () => { | ||
// const organization = useOrganizationContext(); | ||
const isomorphicClerk = (0, IsomorphicClerkContext_1.useIsomorphicClerkContext)(); | ||
@@ -18,4 +19,4 @@ if (!isomorphicClerk.loaded) { | ||
return { | ||
isLoaded: true, | ||
organization: clerk.organization, | ||
createOrganization: clerk.createOrganization, | ||
getOrganizationMemberships: clerk.getOrganizationMemberships, | ||
@@ -22,0 +23,0 @@ getOrganization: clerk.getOrganization, |
/** DO NOT EDIT: This file is automatically generated by ../scripts/info.js */ | ||
export declare const LIB_VERSION = "3.3.0-staging.0"; | ||
export declare const LIB_VERSION = "3.3.0-staging.1"; | ||
export declare const LIB_NAME = "@clerk/clerk-react"; | ||
//# sourceMappingURL=info.d.ts.map |
@@ -5,4 +5,4 @@ "use strict"; | ||
/** DO NOT EDIT: This file is automatically generated by ../scripts/info.js */ | ||
exports.LIB_VERSION = '3.3.0-staging.0'; | ||
exports.LIB_VERSION = '3.3.0-staging.1'; | ||
exports.LIB_NAME = '@clerk/clerk-react'; | ||
//# sourceMappingURL=info.js.map |
@@ -38,2 +38,3 @@ import type { ActiveSessionResource, AuthenticateWithMetamaskParams, ClientResource, CreateOrganizationParams, HandleMagicLinkVerificationParams, HandleOAuthCallbackParams, OrganizationMembershipResource, OrganizationResource, RedirectOptions, Resources, SetActiveParams, SignInProps, SignOut, SignUpProps, UserButtonProps, UserProfileProps, UserResource } from '@clerk/types'; | ||
get user(): UserResource | undefined | null; | ||
get organization(): OrganizationResource | undefined | null; | ||
get __unstable__environment(): any; | ||
@@ -40,0 +41,0 @@ setActive: ({ session, organization, beforeEmit }: SetActiveParams) => Promise<void>; |
@@ -380,2 +380,10 @@ "use strict"; | ||
} | ||
get organization() { | ||
if (this.clerkjs) { | ||
return this.clerkjs.organization; | ||
} | ||
else { | ||
return undefined; | ||
} | ||
} | ||
// TODO: Remove temp use of __unstable__environment | ||
@@ -382,0 +390,0 @@ get __unstable__environment() { |
{ | ||
"name": "@clerk/clerk-react", | ||
"version": "3.3.0-staging.0", | ||
"version": "3.3.0-staging.1", | ||
"license": "MIT", | ||
@@ -31,3 +31,3 @@ "description": "Clerk.dev React library", | ||
"dependencies": { | ||
"@clerk/types": "^2.15.0-staging.0", | ||
"@clerk/types": "^2.15.0-staging.1", | ||
"tslib": "^2.3.1" | ||
@@ -71,3 +71,3 @@ }, | ||
"homepage": "https://clerk.dev/", | ||
"gitHead": "8c65c7e07a1ceda423e5615851d61a81ba6645c9" | ||
"gitHead": "358d11f005d7649ec899add9a9acab532cba59e4" | ||
} |
/** DO NOT EDIT: This file is automatically generated by ../scripts/info.js */ | ||
export const LIB_VERSION = '3.3.0-staging.0'; | ||
export const LIB_VERSION = '3.3.0-staging.1'; | ||
export const LIB_NAME = '@clerk/clerk-react'; |
@@ -232,2 +232,10 @@ import type { | ||
get organization(): OrganizationResource | undefined | null { | ||
if (this.clerkjs) { | ||
return this.clerkjs.organization; | ||
} else { | ||
return undefined; | ||
} | ||
} | ||
// TODO: Remove temp use of __unstable__environment | ||
@@ -234,0 +242,0 @@ get __unstable__environment(): any { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
249067
4319