@neuctra/authix 1.1.10 → 1.1.12

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