Initial Commit
This commit is contained in:
222
packages/ui/react/react-auth/package.json
Normal file
222
packages/ui/react/react-auth/package.json
Normal file
@@ -0,0 +1,222 @@
|
||||
{
|
||||
"name": "@suaveplan/react-auth",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"description": "React authentication core: Better-Auth client wrapper, AuthProvider context, AuthGuard, useAuthGuard/usePermission hooks, locale packs.",
|
||||
"license": "MIT",
|
||||
"author": "Suaveplan Team",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"./client/auth-client": {
|
||||
"import": {
|
||||
"types": "./dist/client/auth-client.d.ts",
|
||||
"default": "./dist/client/auth-client.js"
|
||||
}
|
||||
},
|
||||
"./lib/better-auth-adapter": {
|
||||
"import": {
|
||||
"types": "./dist/lib/better-auth-adapter.d.ts",
|
||||
"default": "./dist/lib/better-auth-adapter.js"
|
||||
}
|
||||
},
|
||||
"./context/auth-context": {
|
||||
"import": {
|
||||
"types": "./dist/context/auth-context.d.ts",
|
||||
"default": "./dist/context/auth-context.js"
|
||||
}
|
||||
},
|
||||
"./hooks/use-auth-guard": {
|
||||
"import": {
|
||||
"types": "./dist/hooks/use-auth-guard.d.ts",
|
||||
"default": "./dist/hooks/use-auth-guard.js"
|
||||
}
|
||||
},
|
||||
"./hooks/use-permission": {
|
||||
"import": {
|
||||
"types": "./dist/hooks/use-permission.d.ts",
|
||||
"default": "./dist/hooks/use-permission.js"
|
||||
}
|
||||
},
|
||||
"./components/auth-guard": {
|
||||
"import": {
|
||||
"types": "./dist/components/auth-guard/auth-guard.d.ts",
|
||||
"default": "./dist/components/auth-guard/auth-guard.js"
|
||||
}
|
||||
},
|
||||
"./components/auth-provider": {
|
||||
"import": {
|
||||
"types": "./dist/components/auth-provider/auth-provider.d.ts",
|
||||
"default": "./dist/components/auth-provider/auth-provider.js"
|
||||
}
|
||||
},
|
||||
"./components/login-form": {
|
||||
"import": {
|
||||
"types": "./dist/components/login-form/login-form.d.ts",
|
||||
"default": "./dist/components/login-form/login-form.js"
|
||||
}
|
||||
},
|
||||
"./components/register-form": {
|
||||
"import": {
|
||||
"types": "./dist/components/register-form/register-form.d.ts",
|
||||
"default": "./dist/components/register-form/register-form.js"
|
||||
}
|
||||
},
|
||||
"./components/forgot-password-form": {
|
||||
"import": {
|
||||
"types": "./dist/components/forgot-password-form/forgot-password-form.d.ts",
|
||||
"default": "./dist/components/forgot-password-form/forgot-password-form.js"
|
||||
}
|
||||
},
|
||||
"./components/reset-password-form": {
|
||||
"import": {
|
||||
"types": "./dist/components/reset-password-form/reset-password-form.d.ts",
|
||||
"default": "./dist/components/reset-password-form/reset-password-form.js"
|
||||
}
|
||||
},
|
||||
"./components/email-verification-view": {
|
||||
"import": {
|
||||
"types": "./dist/components/email-verification-view/email-verification-view.d.ts",
|
||||
"default": "./dist/components/email-verification-view/email-verification-view.js"
|
||||
}
|
||||
},
|
||||
"./components/permission-gate": {
|
||||
"import": {
|
||||
"types": "./dist/components/permission-gate/permission-gate.d.ts",
|
||||
"default": "./dist/components/permission-gate/permission-gate.js"
|
||||
}
|
||||
},
|
||||
"./pages/login": {
|
||||
"import": {
|
||||
"types": "./dist/pages/login/login.d.ts",
|
||||
"default": "./dist/pages/login/login.js"
|
||||
}
|
||||
},
|
||||
"./pages/register": {
|
||||
"import": {
|
||||
"types": "./dist/pages/register/register.d.ts",
|
||||
"default": "./dist/pages/register/register.js"
|
||||
}
|
||||
},
|
||||
"./pages/forgot-password": {
|
||||
"import": {
|
||||
"types": "./dist/pages/forgot-password/forgot-password.d.ts",
|
||||
"default": "./dist/pages/forgot-password/forgot-password.js"
|
||||
}
|
||||
},
|
||||
"./pages/reset-password": {
|
||||
"import": {
|
||||
"types": "./dist/pages/reset-password/reset-password.d.ts",
|
||||
"default": "./dist/pages/reset-password/reset-password.js"
|
||||
}
|
||||
},
|
||||
"./pages/email-verification": {
|
||||
"import": {
|
||||
"types": "./dist/pages/email-verification/email-verification.d.ts",
|
||||
"default": "./dist/pages/email-verification/email-verification.js"
|
||||
}
|
||||
},
|
||||
"./pages/profile": {
|
||||
"import": {
|
||||
"types": "./dist/pages/profile/profile.d.ts",
|
||||
"default": "./dist/pages/profile/profile.js"
|
||||
}
|
||||
},
|
||||
"./types": {
|
||||
"import": {
|
||||
"types": "./dist/types/index.d.ts",
|
||||
"default": "./dist/types/index.js"
|
||||
}
|
||||
},
|
||||
"./translations": {
|
||||
"import": {
|
||||
"types": "./dist/translations/index.d.ts",
|
||||
"default": "./dist/translations/index.js"
|
||||
}
|
||||
},
|
||||
"./error-codes": {
|
||||
"import": {
|
||||
"types": "./dist/error-codes/error-codes.d.ts",
|
||||
"default": "./dist/error-codes/error-codes.js"
|
||||
}
|
||||
},
|
||||
"./observability": {
|
||||
"import": {
|
||||
"types": "./dist/observability/react-auth-metrics.d.ts",
|
||||
"default": "./dist/observability/react-auth-metrics.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"test": "vitest run --passWithNoTests",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage --passWithNoTests",
|
||||
"lint": "bunx biome check src/",
|
||||
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
|
||||
"format": "bunx biome format --write --max-diagnostics 500 src/",
|
||||
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
|
||||
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
||||
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@hookform/resolvers": "catalog:forms",
|
||||
"@suaveplan/error": "workspace:^",
|
||||
"@suaveplan/react-ui": "workspace:^",
|
||||
"@suaveplan/types": "workspace:^",
|
||||
"@opentelemetry/api": "catalog:observability",
|
||||
"better-auth": "catalog:auth",
|
||||
"lucide-react": "catalog:ui",
|
||||
"react-hook-form": "catalog:forms",
|
||||
"tslib": "catalog:build",
|
||||
"zod": "catalog:forms"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"react-router-dom": "^7.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@suaveplan/i18n": "workspace:^",
|
||||
"@suaveplan/react-i18n": "workspace:^",
|
||||
"@suaveplan/testing": "workspace:^",
|
||||
"@testing-library/jest-dom": "catalog:testing",
|
||||
"@testing-library/react": "catalog:testing",
|
||||
"@testing-library/user-event": "catalog:testing",
|
||||
"@types/node": "catalog:",
|
||||
"@types/react": "catalog:testing",
|
||||
"@types/react-dom": "catalog:testing",
|
||||
"@vitejs/plugin-react": "catalog:testing",
|
||||
"@vitest/coverage-istanbul": "catalog:testing",
|
||||
"happy-dom": "catalog:testing",
|
||||
"react": "catalog:testing",
|
||||
"react-dom": "catalog:testing",
|
||||
"react-router-dom": "catalog:react",
|
||||
"typescript": "catalog:",
|
||||
"vite": "catalog:build",
|
||||
"vite-plugin-dts": "catalog:build",
|
||||
"vitest": "catalog:testing"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://npmjs.fq.io/",
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user