@asteby/metacore-auth 2.0.0

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 (59) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +101 -0
  3. package/dist/api-client.d.ts +35 -0
  4. package/dist/api-client.d.ts.map +1 -0
  5. package/dist/api-client.js +57 -0
  6. package/dist/api-client.js.map +1 -0
  7. package/dist/components/index.d.ts +4 -0
  8. package/dist/components/index.d.ts.map +1 -0
  9. package/dist/components/index.js +3 -0
  10. package/dist/components/index.js.map +1 -0
  11. package/dist/components/password-input.d.ts +7 -0
  12. package/dist/components/password-input.d.ts.map +1 -0
  13. package/dist/components/password-input.js +10 -0
  14. package/dist/components/password-input.js.map +1 -0
  15. package/dist/components/sign-out-dialog.d.ts +16 -0
  16. package/dist/components/sign-out-dialog.d.ts.map +1 -0
  17. package/dist/components/sign-out-dialog.js +20 -0
  18. package/dist/components/sign-out-dialog.js.map +1 -0
  19. package/dist/guards.d.ts +28 -0
  20. package/dist/guards.d.ts.map +1 -0
  21. package/dist/guards.js +33 -0
  22. package/dist/guards.js.map +1 -0
  23. package/dist/index.d.ts +11 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.js +13 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/pages/auth-layout.d.ts +14 -0
  28. package/dist/pages/auth-layout.d.ts.map +1 -0
  29. package/dist/pages/auth-layout.js +9 -0
  30. package/dist/pages/auth-layout.js.map +1 -0
  31. package/dist/pages/forgot-password.d.ts +21 -0
  32. package/dist/pages/forgot-password.d.ts.map +1 -0
  33. package/dist/pages/forgot-password.js +33 -0
  34. package/dist/pages/forgot-password.js.map +1 -0
  35. package/dist/pages/index.d.ts +11 -0
  36. package/dist/pages/index.d.ts.map +1 -0
  37. package/dist/pages/index.js +6 -0
  38. package/dist/pages/index.js.map +1 -0
  39. package/dist/pages/otp.d.ts +37 -0
  40. package/dist/pages/otp.d.ts.map +1 -0
  41. package/dist/pages/otp.js +50 -0
  42. package/dist/pages/otp.js.map +1 -0
  43. package/dist/pages/sign-in.d.ts +54 -0
  44. package/dist/pages/sign-in.d.ts.map +1 -0
  45. package/dist/pages/sign-in.js +41 -0
  46. package/dist/pages/sign-in.js.map +1 -0
  47. package/dist/pages/sign-up.d.ts +32 -0
  48. package/dist/pages/sign-up.d.ts.map +1 -0
  49. package/dist/pages/sign-up.js +54 -0
  50. package/dist/pages/sign-up.js.map +1 -0
  51. package/dist/provider.d.ts +35 -0
  52. package/dist/provider.d.ts.map +1 -0
  53. package/dist/provider.js +48 -0
  54. package/dist/provider.js.map +1 -0
  55. package/dist/store.d.ts +40 -0
  56. package/dist/store.d.ts.map +1 -0
  57. package/dist/store.js +47 -0
  58. package/dist/store.js.map +1 -0
  59. package/package.json +81 -0
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "@asteby/metacore-auth",
3
+ "version": "2.0.0",
4
+ "description": "Metacore auth kit — Zustand store, API client factory, login/signup/forgot pages, guards for TanStack Router",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/asteby/metacore-sdk",
9
+ "directory": "packages/auth"
10
+ },
11
+ "type": "module",
12
+ "main": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
+ "files": [
15
+ "dist",
16
+ "README.md"
17
+ ],
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "import": "./dist/index.js"
22
+ },
23
+ "./store": {
24
+ "types": "./dist/store.d.ts",
25
+ "import": "./dist/store.js"
26
+ },
27
+ "./provider": {
28
+ "types": "./dist/provider.d.ts",
29
+ "import": "./dist/provider.js"
30
+ },
31
+ "./api-client": {
32
+ "types": "./dist/api-client.d.ts",
33
+ "import": "./dist/api-client.js"
34
+ },
35
+ "./guards": {
36
+ "types": "./dist/guards.d.ts",
37
+ "import": "./dist/guards.js"
38
+ },
39
+ "./pages": {
40
+ "types": "./dist/pages/index.d.ts",
41
+ "import": "./dist/pages/index.js"
42
+ },
43
+ "./components": {
44
+ "types": "./dist/components/index.d.ts",
45
+ "import": "./dist/components/index.js"
46
+ }
47
+ },
48
+ "peerDependencies": {
49
+ "react": ">=18",
50
+ "react-dom": ">=18",
51
+ "@tanstack/react-router": ">=1.100",
52
+ "zustand": ">=5",
53
+ "@asteby/metacore-ui": "^0.3.0"
54
+ },
55
+ "dependencies": {
56
+ "@hookform/resolvers": "^3.9.0",
57
+ "axios": "^1.7.7",
58
+ "lucide-react": "^0.460.0",
59
+ "react-hook-form": "^7.72.0",
60
+ "zod": "^4.3.0"
61
+ },
62
+ "devDependencies": {
63
+ "@types/react": "^19.0.0",
64
+ "@types/react-dom": "^19.0.0",
65
+ "@tanstack/react-router": "^1.168.0",
66
+ "react": "^19.2.4",
67
+ "react-dom": "^19.2.4",
68
+ "typescript": "^5.6.0",
69
+ "zustand": "^5.0.0",
70
+ "@asteby/metacore-ui": "0.3.0"
71
+ },
72
+ "publishConfig": {
73
+ "access": "public"
74
+ },
75
+ "scripts": {
76
+ "build": "tsc -p tsconfig.json",
77
+ "dev": "tsc -w -p tsconfig.json",
78
+ "typecheck": "tsc -p tsconfig.json --noEmit",
79
+ "clean": "rm -rf dist"
80
+ }
81
+ }