@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.
- package/dist/authix.css +1 -1
- package/dist/neuctra-authix.es.js +2694 -2313
- package/dist/neuctra-authix.umd.js +51 -51
- package/dist/src/index.d.ts +0 -1
- package/dist/src/react/SignedIn.d.ts +0 -5
- package/dist/src/react/SignedOut.d.ts +2 -2
- package/dist/src/react/UserSignUp.d.ts +2 -0
- package/dist/src/react/UserVerify.d.ts +10 -0
- package/dist/src/react/index.d.ts +1 -0
- package/package.json +37 -38
- package/dist/src/vue/index.d.ts +0 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -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
|
|
11
|
-
*
|
|
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 {};
|
|
@@ -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 {};
|
package/package.json
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neuctra/authix",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "
|
|
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.
|
|
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.
|
|
15
|
+
"require": "./dist/neuctra-authix.umd.js"
|
|
15
16
|
},
|
|
16
17
|
"./react": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
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
|
-
"
|
|
26
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"react"
|
|
42
|
-
|
|
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.
|
|
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.
|
|
65
|
-
"vite": "^7.1.7"
|
|
53
|
+
"typescript": "^5.6.3",
|
|
54
|
+
"vite": "^7.1.7",
|
|
55
|
+
"rimraf": "^5.0.5"
|
|
66
56
|
},
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
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
|
}
|
package/dist/src/vue/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|