propro-common-components 0.1.302 → 0.1.304

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,7 @@ interface UseMutateParams<TData, TError, TVariables, _TContext> {
19
19
  };
20
20
  onSuccess?: (res: TData, variables?: TVariables) => void;
21
21
  onError?: (err: TError, variables?: TVariables) => void;
22
+ shouldCheckAccessToken?: boolean;
22
23
  }
23
24
  declare const useMutate: <TData = unknown, TError = AxiosError<unknown, any>, TVariables = unknown, TContext = unknown>(params: UseMutateParams<TData, TError, TVariables, TContext>, options?: Omit<UseMutationOptions<TData, TError, TVariables, TContext>, 'mutationFn' | 'onSuccess' | 'onError'>) => UseMutationResult<TData, TError, TVariables, TContext>;
24
25
  export default useMutate;
package/dist/main.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ListGridSwitch } from './components/switch/ListGridSwitch';
2
2
  import { default as axiosInstance } from './utils/axiosInstance';
3
- import { isUserLoggedIn } from './utils/checkAccessToken';
3
+ import { default as checkAccessToken, isUserLoggedIn } from './utils/checkAccessToken';
4
4
  import { default as getCookie } from './utils/getCookie';
5
5
  import { default as getStorage, removeStorage, setStorage } from './utils/getStorage';
6
6
  import { default as logout } from './utils/logout';
@@ -24,5 +24,5 @@ import { RUNNING_IN_TAURI } from './constants/tauriConstants';
24
24
  import { AuthProvider } from './context/AuthContext';
25
25
  import { IconLoader, IconType, PlasmicEmojiAndIconSelection, StyleType, getAvailableStyles, loadIcon, searchIcon } from 'propro-icons';
26
26
 
27
- export { AccountManagementComponent, AppContext, AppHOC, AppProvider, AuthProvider, AvatarMenu, Footer, IconLoader, ListGridSwitch, Loading, PlasmicEmojiAndIconSelection, PlasmicSignInSignUpForm, PrivateRoute, RUNNING_IN_TAURI, SignInSignUpForm, SignInSignUpFormLayout, TextInputFromProPro, axiosInstance, getAvailableStyles, getCookie, getStorage, handleAuth, isUserLoggedIn, loadIcon, logout, removeStorage, searchIcon, setCookie, setStorage, useGet, useMutate, useMutateWithKeepAlive, };
27
+ export { AccountManagementComponent, AppContext, AppHOC, AppProvider, AuthProvider, AvatarMenu, Footer, IconLoader, ListGridSwitch, Loading, PlasmicEmojiAndIconSelection, PlasmicSignInSignUpForm, PrivateRoute, RUNNING_IN_TAURI, SignInSignUpForm, SignInSignUpFormLayout, TextInputFromProPro, axiosInstance, checkAccessToken, getAvailableStyles, getCookie, getStorage, handleAuth, isUserLoggedIn, loadIcon, logout, removeStorage, searchIcon, setCookie, setStorage, useGet, useMutate, useMutateWithKeepAlive, };
28
28
  export type { DefaultSignInSignUpFormProps, IconType, StyleType };