@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.
@@ -1,6 +1,12 @@
1
1
  import React, { ReactNode } from "react";
2
- interface SignInComponentProps {
3
- children?: ReactNode;
2
+ interface ReactSignedInProps {
3
+ children: ReactNode;
4
+ fallback?: ReactNode;
4
5
  }
5
- export declare const ReactSignedIn: React.FC<SignInComponentProps>;
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 SignOutComponentProps {
2
+ interface ReactSignedOutProps {
3
3
  children?: ReactNode;
4
+ fallback?: ReactNode;
4
5
  }
5
- export declare const ReactSignedOut: React.FC<SignOutComponentProps>;
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neuctra/authix",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Authentication SDK and UI components library for React and Vue with TailwindCSS",
5
5
  "author": "Taha Asif",
6
6
  "license": "MIT",