@bigbinary/neeto-commons-frontend 2.0.17 → 2.0.18
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/README.md +17 -20
- package/initializers.cjs.js +13 -24
- package/initializers.js +13 -24
- package/package.json +2 -1
- package/react-utils.cjs.js +1681 -582
- package/react-utils.d.ts +0 -20
- package/react-utils.js +1675 -575
- package/utils.cjs.js +3 -1
- package/utils.js +3 -1
package/react-utils.d.ts
CHANGED
|
@@ -81,26 +81,6 @@ export function useOnClickOutside<T>(
|
|
|
81
81
|
export function usePrevious<T>(value: T): T;
|
|
82
82
|
export function useUpdateEffect(effect: () => void, deps: any[]): void;
|
|
83
83
|
|
|
84
|
-
export function createContext<T>(initialValue: T): {
|
|
85
|
-
Provider: React.FC<{}>;
|
|
86
|
-
useState: T;
|
|
87
|
-
useSetState: React.Dispatch<React.SetStateAction<T>>;
|
|
88
|
-
useContext: [T, React.Dispatch<React.SetStateAction<T>>];
|
|
89
|
-
};
|
|
90
|
-
type ActionType<T> = {
|
|
91
|
-
type: string;
|
|
92
|
-
payload: Partial<T> | ObjectAndPrimitives;
|
|
93
|
-
};
|
|
94
|
-
export function createContext<T>(
|
|
95
|
-
initialValue: T,
|
|
96
|
-
reducer: (prevState: T, action: ActionType<T>) => T
|
|
97
|
-
): {
|
|
98
|
-
Provider: React.FC<{}>;
|
|
99
|
-
useState: T;
|
|
100
|
-
useDispatch: (action: ActionType<T>) => void;
|
|
101
|
-
useContext: [T, (action: ActionType<T>) => void];
|
|
102
|
-
};
|
|
103
|
-
|
|
104
84
|
export const ErrorPage: React.FC<{ homeUrl?: string }>;
|
|
105
85
|
export const LoginPage: React.FC<{
|
|
106
86
|
handleSubmit: (data: {
|