@mindly/ui-components 6.6.0-dev.2 → 6.6.0-dev.5
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.
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
+
import { User } from '@capacitor-firebase/authentication';
|
|
2
3
|
import { AuthContextType } from './types';
|
|
3
4
|
export declare const AuthContext: React.Context<AuthContextType | null>;
|
|
4
|
-
|
|
5
|
+
type AuthProviderProps = {
|
|
6
|
+
/**
|
|
7
|
+
* REMOVE WHEN WE MOVE AUTH TO NATIVE CAPACITOR PLUGIN
|
|
8
|
+
*/
|
|
9
|
+
webAuthListener?: (callback: (user: User | null) => void) => () => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const AuthProvider: FC<AuthProviderProps>;
|
|
12
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -2266,7 +2266,13 @@ type AuthContextType = {
|
|
|
2266
2266
|
};
|
|
2267
2267
|
|
|
2268
2268
|
declare const AuthContext: React__default.Context<AuthContextType | null>;
|
|
2269
|
-
|
|
2269
|
+
type AuthProviderProps = {
|
|
2270
|
+
/**
|
|
2271
|
+
* REMOVE WHEN WE MOVE AUTH TO NATIVE CAPACITOR PLUGIN
|
|
2272
|
+
*/
|
|
2273
|
+
webAuthListener?: (callback: (user: User | null) => void) => () => void;
|
|
2274
|
+
};
|
|
2275
|
+
declare const AuthProvider: FC<AuthProviderProps>;
|
|
2270
2276
|
|
|
2271
2277
|
declare function useDomRef<T extends HTMLElement = HTMLElement>(ref: React$1.RefObject<T | null> | React$1.ForwardedRef<T | null>): React$1.RefObject<T>;
|
|
2272
2278
|
|