@abpjs/account 0.7.6
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/LICENSE +165 -0
- package/README.md +316 -0
- package/dist/components/LoginForm/LoginForm.d.ts +48 -0
- package/dist/components/LoginForm/image-placeholder.d.ts +1 -0
- package/dist/components/LoginForm/index.d.ts +2 -0
- package/dist/components/RegisterForm/RegisterForm.d.ts +50 -0
- package/dist/components/RegisterForm/index.d.ts +2 -0
- package/dist/components/TenantBox/TenantBox.d.ts +21 -0
- package/dist/components/TenantBox/index.d.ts +2 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/usePasswordFlow.d.ts +27 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +574 -0
- package/dist/index.mjs +552 -0
- package/dist/models/index.d.ts +42 -0
- package/dist/pages/LoginPage.d.ts +25 -0
- package/dist/pages/RegisterPage.d.ts +25 -0
- package/dist/pages/index.d.ts +2 -0
- package/dist/providers/AccountProvider.d.ts +40 -0
- package/dist/providers/index.d.ts +1 -0
- package/dist/routes/index.d.ts +24 -0
- package/package.json +70 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ABP } from '@abpjs/core';
|
|
2
|
+
/**
|
|
3
|
+
* Account module routes configuration
|
|
4
|
+
*
|
|
5
|
+
* This is the React equivalent of Angular's ACCOUNT_ROUTES constant.
|
|
6
|
+
* These routes are registered with the ABP routing system.
|
|
7
|
+
*
|
|
8
|
+
* Route structure:
|
|
9
|
+
* - /account (invisible, uses account layout)
|
|
10
|
+
* - /account/login
|
|
11
|
+
* - /account/register
|
|
12
|
+
*/
|
|
13
|
+
export declare const ACCOUNT_ROUTES: ABP.FullRoute[];
|
|
14
|
+
/**
|
|
15
|
+
* Default redirect path after login
|
|
16
|
+
*/
|
|
17
|
+
export declare const DEFAULT_REDIRECT_URL = "/";
|
|
18
|
+
/**
|
|
19
|
+
* Account route paths for easy reference
|
|
20
|
+
*/
|
|
21
|
+
export declare const ACCOUNT_PATHS: {
|
|
22
|
+
readonly login: "/account/login";
|
|
23
|
+
readonly register: "/account/register";
|
|
24
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@abpjs/account",
|
|
3
|
+
"version": "0.7.6",
|
|
4
|
+
"description": "ABP Framework Account module for React - Translation of @abp/ng.account",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/abpjs/abp-react"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://docs.abpjs.io/docs/packages/account/overview",
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/abpjs/abp-react/issues"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"abp",
|
|
32
|
+
"react",
|
|
33
|
+
"framework",
|
|
34
|
+
"account",
|
|
35
|
+
"login",
|
|
36
|
+
"register",
|
|
37
|
+
"authentication",
|
|
38
|
+
"oauth"
|
|
39
|
+
],
|
|
40
|
+
"author": "tekthar.com",
|
|
41
|
+
"license": "LGPL-3.0",
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": "^18.2.0",
|
|
44
|
+
"react-dom": "^18.2.0",
|
|
45
|
+
"react-router-dom": ">=6.0.0"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@chakra-ui/react": "^3.2.0",
|
|
49
|
+
"@emotion/react": "^11.11.0",
|
|
50
|
+
"@hookform/resolvers": "^3.3.0",
|
|
51
|
+
"react-hook-form": "^7.48.0",
|
|
52
|
+
"zod": "^3.22.0",
|
|
53
|
+
"react-icons": "^5.0.0",
|
|
54
|
+
"@abpjs/theme-shared": "0.7.6",
|
|
55
|
+
"@abpjs/core": "0.7.6"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@abp/ng.account": "0.7.6"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "tsup src/index.ts --format cjs,esm --clean && tsc -p tsconfig.build.json",
|
|
62
|
+
"dev": "tsup src/index.ts --format cjs,esm --watch",
|
|
63
|
+
"lint": "eslint src",
|
|
64
|
+
"lint:fix": "eslint src --fix",
|
|
65
|
+
"format": "prettier --write \"src/**/*.{ts,tsx,json,md}\"",
|
|
66
|
+
"format:check": "prettier --check \"src/**/*.{ts,tsx,json,md}\"",
|
|
67
|
+
"type-check": "tsc --noEmit",
|
|
68
|
+
"test": "vitest"
|
|
69
|
+
}
|
|
70
|
+
}
|