@neuctra/authix 1.1.12 → 1.1.14

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,5 +1,4 @@
1
1
  import "./index.css";
2
2
  export * from "./sdk/index.js";
3
3
  export * from "./react/index.js";
4
- export * from "./vue/index.js";
5
4
  export { setSdkConfig, getSdkConfig } from "./sdk/config.js";
@@ -5,10 +5,5 @@ interface ReactSignedInProps {
5
5
  width?: string;
6
6
  height?: string;
7
7
  }
8
- /**
9
- * ReactSignedIn
10
- * Renders children only when the user is signed in.
11
- * Provides optional width/height props for consistent alignment in layouts.
12
- */
13
8
  export declare const ReactSignedIn: React.FC<ReactSignedInProps>;
14
9
  export {};
@@ -7,8 +7,8 @@ interface ReactSignedOutProps {
7
7
  }
8
8
  /**
9
9
  * ReactSignedOut
10
- * Renders its children only when the user is NOT signed in.
11
- * Uses inline-flex for consistent alignment within navbars or flex layouts.
10
+ * Renders children ONLY when user is NOT signed in.
11
+ * Fully SSR-safe and window-safe.
12
12
  */
13
13
  export declare const ReactSignedOut: React.FC<ReactSignedOutProps>;
14
14
  export {};
@@ -9,6 +9,8 @@ interface SignupFormProps {
9
9
  gradient?: string;
10
10
  darkMode?: boolean;
11
11
  showAvatar?: boolean;
12
+ roles?: string[];
13
+ showRoleSelector?: boolean;
12
14
  loginUrl?: string;
13
15
  onSuccess?: (user: any) => void;
14
16
  onError?: (error: any) => void;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { UserInfo } from "../api/login.js";
3
+ interface ReactEmailVerificationProps {
4
+ user?: UserInfo | null;
5
+ darkMode?: boolean;
6
+ primaryColor?: string;
7
+ onVerify?: (updatedUser: UserInfo) => void;
8
+ }
9
+ export declare const ReactEmailVerification: React.FC<ReactEmailVerificationProps>;
10
+ export {};
@@ -4,3 +4,4 @@ export { ReactSignedIn } from "./SignedIn.js";
4
4
  export { ReactSignedOut } from "./SignedOut.js";
5
5
  export { ReactUserProfile } from "./UserProfile.js";
6
6
  export { ReactUserButton } from "./UserButton.js";
7
+ export { ReactEmailVerification } from "./UserVerify.js";
package/package.json CHANGED
@@ -1,29 +1,28 @@
1
1
  {
2
2
  "name": "@neuctra/authix",
3
- "version": "1.1.12",
4
- "description": "Authentication SDK and UI components library for React and Vue with TailwindCSS",
3
+ "version": "1.1.14",
4
+ "description": "Universal authentication SDK and UI components for React (v16–v19) with TailwindCSS.",
5
5
  "author": "Taha Asif",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
- "main": "dist/neuctra-authix.cjs.js",
9
- "module": "dist/neuctra-authix.es.js",
10
- "types": "dist/index.d.ts",
8
+ "main": "./dist/neuctra-authix.umd.js",
9
+ "module": "./dist/neuctra-authix.es.js",
10
+ "types": "./dist/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
+ "types": "./dist/index.d.ts",
13
14
  "import": "./dist/neuctra-authix.es.js",
14
- "require": "./dist/neuctra-authix.cjs.js"
15
+ "require": "./dist/neuctra-authix.umd.js"
15
16
  },
16
17
  "./react": {
17
- "import": "./dist/react/index.js",
18
- "types": "./dist/react/index.d.ts"
19
- },
20
- "./vue": {
21
- "import": "./dist/vue/index.js",
22
- "types": "./dist/vue/index.d.ts"
18
+ "types": "./dist/react/index.d.ts",
19
+ "import": "./dist/react/index.es.js",
20
+ "require": "./dist/react/index.umd.js"
23
21
  },
24
22
  "./sdk": {
25
- "import": "./dist/sdk/index.js",
26
- "types": "./dist/sdk/index.d.ts"
23
+ "types": "./dist/sdk/index.d.ts",
24
+ "import": "./dist/sdk/index.es.js",
25
+ "require": "./dist/sdk/index.umd.js"
27
26
  }
28
27
  },
29
28
  "files": [
@@ -31,42 +30,42 @@
31
30
  ],
32
31
  "scripts": {
33
32
  "dev": "vite",
34
- "build": "vite build && tsc --emitDeclarationOnly",
33
+ "clean": "rimraf dist",
34
+ "build": "npm run clean && vite build && tsc --emitDeclarationOnly",
35
35
  "preview": "vite preview",
36
- "clean": "rm -rf dist",
37
36
  "release": "npm publish --access public"
38
37
  },
39
- "keywords": [
40
- "ui-components",
41
- "react",
42
- "vue",
43
- "tailwind",
44
- "vite",
45
- "library",
46
- "authentication",
47
- "sdk",
48
- "jwt",
49
- "otp"
50
- ],
38
+ "peerDependencies": {
39
+ "react": ">=16.8.0 <20",
40
+ "react-dom": ">=16.8.0 <20"
41
+ },
51
42
  "devDependencies": {
52
43
  "@tailwindcss/vite": "^4.1.13",
53
- "@types/node": "^20.0.0",
44
+ "@types/node": "^20.11.0",
54
45
  "@types/react": "^18.2.48",
55
46
  "@types/react-dom": "^18.2.18",
56
47
  "@vitejs/plugin-react": "^5.0.3",
57
- "@vitejs/plugin-vue": "^6.0.1",
58
48
  "autoprefixer": "^10.4.21",
59
49
  "axios": "^1.12.2",
60
50
  "lucide-react": "^0.544.0",
61
- "lucide-vue-next": "^0.544.0",
62
51
  "postcss": "^8.5.6",
63
52
  "tailwindcss": "^4.1.13",
64
- "typescript": "^5.9.2",
65
- "vite": "^7.1.7"
53
+ "typescript": "^5.6.3",
54
+ "vite": "^7.1.7",
55
+ "rimraf": "^5.0.5"
66
56
  },
67
- "peerDependencies": {
68
- "react": ">=16",
69
- "react-dom": ">=16",
70
- "vue": ">=3"
71
- }
57
+ "keywords": [
58
+ "neuctra",
59
+ "authix",
60
+ "ui-components",
61
+ "react",
62
+ "tailwind",
63
+ "vite",
64
+ "library",
65
+ "authentication",
66
+ "jwt",
67
+ "otp",
68
+ "sdk",
69
+ "auth"
70
+ ]
72
71
  }
@@ -1 +0,0 @@
1
- export {};