@pentops/j5-react-realm-auth
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -168,4 +168,4 @@ import React from 'react'; | ||
} | ||
function createRealmAuthStoreHooks(initialState, realmAccessIdGetter = (defaultRealmAccessIdGetter)) { | ||
const useRealmAuthStore = createRealmAuthStore(initialState, realmAccessIdGetter); | ||
function createRealmAuthStoreHooks(initialState, realmAccessIdGetter = (defaultRealmAccessIdGetter), contextChangeActiveAccessSelector = (defaultContextChangeActiveAccessSelector)) { | ||
const useRealmAuthStore = createRealmAuthStore(initialState, realmAccessIdGetter, contextChangeActiveAccessSelector); | ||
return { | ||
@@ -172,0 +172,0 @@ useRealmAuthStore, |
@@ -22,3 +22,3 @@ import { type RealmAccess, type WhoAmIContext } from './types'; | ||
export declare function createRealmAuthStore<TRealmAccess extends RealmAccess = RealmAccess, TContext extends WhoAmIContext<TRealmAccess> = WhoAmIContext<TRealmAccess>>(initialState?: Partial<RealmAuthStore<TRealmAccess, TContext>>, realmAccessIdGetter?: RealmAccessIdGetter<TRealmAccess>, contextChangeActiveAccessSelector?: (context: WhoAmIContext<TRealmAccess> | undefined, activeAccess: TRealmAccess | undefined, realmAccessIdGetter?: RealmAccessIdGetter<TRealmAccess>) => TRealmAccess | undefined): import("zustand").UseBoundStore<import("zustand").StoreApi<RealmAuthStore<TRealmAccess, TContext>>>; | ||
export declare function createRealmAuthStoreHooks<TRealmAccess extends RealmAccess = RealmAccess, TContext extends WhoAmIContext<TRealmAccess> = WhoAmIContext<TRealmAccess>>(initialState?: Partial<RealmAuthStore<TRealmAccess, TContext>>, realmAccessIdGetter?: RealmAccessIdGetter<TRealmAccess>): { | ||
export declare function createRealmAuthStoreHooks<TRealmAccess extends RealmAccess = RealmAccess, TContext extends WhoAmIContext<TRealmAccess> = WhoAmIContext<TRealmAccess>>(initialState?: Partial<RealmAuthStore<TRealmAccess, TContext>>, realmAccessIdGetter?: RealmAccessIdGetter<TRealmAccess>, contextChangeActiveAccessSelector?: (context: WhoAmIContext<TRealmAccess> | undefined, activeAccess: TRealmAccess | undefined, realmAccessIdGetter?: RealmAccessIdGetter<TRealmAccess>) => TRealmAccess | undefined): { | ||
readonly useRealmAuthStore: import("zustand").UseBoundStore<import("zustand").StoreApi<RealmAuthStore<TRealmAccess, TContext>>>; | ||
@@ -25,0 +25,0 @@ readonly useRealmAuthActiveAccess: () => TRealmAccess | undefined; |
{ | ||
"name": "@pentops/j5-react-realm-auth", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
21780