@neuctra/authix 1.0.9 → 1.0.10
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/dist/neuctra-authix.es.js +588 -592
- package/dist/neuctra-authix.umd.js +11 -11
- package/dist/src/react/SignedIn.d.ts +9 -3
- package/dist/src/react/SignedOut.d.ts +8 -2
- package/package.json +1 -1
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
interface
|
|
3
|
-
children
|
|
2
|
+
interface ReactSignedInProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
fallback?: ReactNode;
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
+
/**
|
|
7
|
+
* ReactSignedIn
|
|
8
|
+
* Renders children only when the user is signed in.
|
|
9
|
+
* Uses inline-flex styling for consistent alignment inside navigation bars or flex layouts.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ReactSignedIn: React.FC<ReactSignedInProps>;
|
|
6
12
|
export {};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
interface
|
|
2
|
+
interface ReactSignedOutProps {
|
|
3
3
|
children?: ReactNode;
|
|
4
|
+
fallback?: ReactNode;
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
+
/**
|
|
7
|
+
* ReactSignedOut
|
|
8
|
+
* Shows children only when the user is *not* signed in.
|
|
9
|
+
* Inline styles are used for consistent alignment with flex/inline elements.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ReactSignedOut: React.FC<ReactSignedOutProps>;
|
|
6
12
|
export {};
|