@neuctra/authix 2.0.1 → 3.0.1

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.
Files changed (34) hide show
  1. package/README.md +14 -28
  2. package/dist/index.d.ts +0 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/neuctra-authix.es.js +1112 -5347
  5. package/dist/neuctra-authix.umd.js +6 -281
  6. package/dist/sdk/index.d.ts.map +1 -1
  7. package/dist/sdk/interfaces.d.ts +1 -1
  8. package/package.json +6 -28
  9. package/dist/react/Provider/AuthixProvider.d.ts +0 -9
  10. package/dist/react/Provider/AuthixProvider.d.ts.map +0 -1
  11. package/dist/react/SignedIn.d.ts +0 -8
  12. package/dist/react/SignedIn.d.ts.map +0 -1
  13. package/dist/react/SignedOut.d.ts +0 -8
  14. package/dist/react/SignedOut.d.ts.map +0 -1
  15. package/dist/react/UserButton.d.ts +0 -31
  16. package/dist/react/UserButton.d.ts.map +0 -1
  17. package/dist/react/UserLogin.d.ts +0 -15
  18. package/dist/react/UserLogin.d.ts.map +0 -1
  19. package/dist/react/UserProfile.d.ts +0 -90
  20. package/dist/react/UserProfile.d.ts.map +0 -1
  21. package/dist/react/UserSignUp.d.ts +0 -19
  22. package/dist/react/UserSignUp.d.ts.map +0 -1
  23. package/dist/react/UserVerify.d.ts +0 -43
  24. package/dist/react/UserVerify.d.ts.map +0 -1
  25. package/dist/react/components/AvatarModal.d.ts +0 -66
  26. package/dist/react/components/AvatarModal.d.ts.map +0 -1
  27. package/dist/react/components/ChangePasswordModal.d.ts +0 -60
  28. package/dist/react/components/ChangePasswordModal.d.ts.map +0 -1
  29. package/dist/react/components/DeleteAccountModal.d.ts +0 -75
  30. package/dist/react/components/DeleteAccountModal.d.ts.map +0 -1
  31. package/dist/react/components/EmailVerificationModal.d.ts +0 -76
  32. package/dist/react/components/EmailVerificationModal.d.ts.map +0 -1
  33. package/dist/react/index.d.ts +0 -9
  34. package/dist/react/index.d.ts.map +0 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Neuctra Authix SDK & UI Components
1
+ # Neuctra Authix JavaScript SDK
2
2
 
3
- **Neuctra Authix** is an authentication SDK and UI component library for **React** and **Vue**.
3
+ **Neuctra Authix** is a framework-agnostic JavaScript/TypeScript SDK for authentication.
4
4
  It provides ready-to-use APIs, authentication flows, and user management utilities with **JWT**, **API Key**, **OTP verification**, and **extra user data management**.
5
5
 
6
6
  ---
@@ -9,13 +9,13 @@ It provides ready-to-use APIs, authentication flows, and user management utiliti
9
9
 
10
10
  ```bash
11
11
  # Install via npm
12
- npm install neuctra-authix
12
+ npm install @neuctra/authix
13
13
 
14
14
  # Or using yarn
15
- yarn add neuctra-authix
15
+ yarn add @neuctra/authix
16
16
 
17
17
  # Or pnpm
18
- pnpm add neuctra-authix
18
+ pnpm add @neuctra/authix
19
19
  ```
20
20
 
21
21
  ---
@@ -26,7 +26,7 @@ pnpm add neuctra-authix
26
26
  * 👤 **User Management** (Update, Delete, Change Password, Extra Data)
27
27
  * 📂 **User Data Store** (Flexible key/value objects per user)
28
28
  * 🛡 **Secure API Requests** (JWT & API Key)
29
- * 🎨 **UI Components** (React + Vue with TailwindCSS)
29
+ * ⚛️ **React UI Components** available separately in `@neuctra/authix-react`
30
30
 
31
31
  ---
32
32
 
@@ -40,7 +40,7 @@ client-exposed environment variables. Frontends should call a backend you
40
40
  control.
41
41
 
42
42
  ```ts
43
- import { setSdkConfig, getSdkConfig } from "neuctra-authix/sdk";
43
+ import { setSdkConfig, getSdkConfig } from "@neuctra/authix";
44
44
 
45
45
  setSdkConfig({
46
46
  baseUrl: "https://server.authix.neuctra.com/api",
@@ -55,7 +55,7 @@ console.log(getSdkConfig());
55
55
  Alternatively, you can use the class-based client:
56
56
 
57
57
  ```ts
58
- import { NeuctraAuthix } from "neuctra-authix/sdk";
58
+ import { NeuctraAuthix } from "@neuctra/authix";
59
59
 
60
60
  const client = new NeuctraAuthix({
61
61
  baseUrl: "https://server.authix.neuctra.com/api",
@@ -200,25 +200,14 @@ await client.deleteUserData({ userId: "12345", dataId: "data123" });
200
200
 
201
201
  ---
202
202
 
203
- ## 🎨 UI Components
203
+ ## 🎨 React UI Components
204
204
 
205
- ```tsx
206
- import { LoginForm, SignupForm } from "neuctra-authix/react";
205
+ This package is a framework-agnostic JavaScript/TypeScript SDK. Pre-built React
206
+ components (login, sign-up, profile, user button, …) now live in a separate
207
+ package: [`@neuctra/authix-react`](https://www.npmjs.com/package/@neuctra/authix-react).
207
208
 
208
- <LoginForm onSuccess={(session) => console.log("Logged in:", session)} />
209
- <SignupForm onSuccess={(user) => console.log("Signed up:", user)} />
210
- ```
211
-
212
- Vue components are also supported:
213
-
214
- ```vue
215
- <script setup>
216
- import { LoginForm } from "neuctra-authix/vue";
217
- </script>
218
-
219
- <template>
220
- <LoginForm @success="(session) => console.log('Logged in:', session)" />
221
- </template>
209
+ ```bash
210
+ npm install @neuctra/authix @neuctra/authix-react
222
211
  ```
223
212
 
224
213
  ---
@@ -227,10 +216,7 @@ import { LoginForm } from "neuctra-authix/vue";
227
216
 
228
217
  * **TypeScript**
229
218
  * **Vite**
230
- * **React / Vue**
231
- * **TailwindCSS**
232
219
  * **Axios**
233
- * **Lucide Icons**
234
220
 
235
221
  ---
236
222
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from "./sdk/index.js";
2
- export * from "./react/index.js";
3
2
  export type * from "./sdk/interfaces.js";
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAG/B,cAAc,kBAAkB,CAAC;AAGjC,mBAAmB,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAG/B,mBAAmB,qBAAqB,CAAC"}