propro-common-components 0.1.303 → 0.1.305
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/useMutate.d.ts +1 -0
- package/dist/main.d.ts +1 -2
- package/dist/propro-common-components.js +1302 -1336
- package/package.json +1 -1
- package/dist/components/AppHOC.d.ts +0 -6
package/dist/api/useMutate.d.ts
CHANGED
@@ -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
@@ -9,7 +9,6 @@ import { AccountManagementComponent } from '../lib/components/AccountManagement'
|
|
9
9
|
import { default as useGet } from './api/useGetx';
|
10
10
|
import { default as useMutate } from './api/useMutate';
|
11
11
|
import { default as useMutateWithKeepAlive } from './api/useMutateWithKeepAlive';
|
12
|
-
import { default as AppHOC } from './components/AppHOC';
|
13
12
|
import { default as AvatarMenu } from './components/AvatarMenu';
|
14
13
|
import { default as Loading } from './components/ui/Loading';
|
15
14
|
import { AppContext, AppProvider } from './context/AppContext';
|
@@ -24,5 +23,5 @@ import { RUNNING_IN_TAURI } from './constants/tauriConstants';
|
|
24
23
|
import { AuthProvider } from './context/AuthContext';
|
25
24
|
import { IconLoader, IconType, PlasmicEmojiAndIconSelection, StyleType, getAvailableStyles, loadIcon, searchIcon } from 'propro-icons';
|
26
25
|
|
27
|
-
export { AccountManagementComponent, AppContext,
|
26
|
+
export { AccountManagementComponent, AppContext, 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
27
|
export type { DefaultSignInSignUpFormProps, IconType, StyleType };
|