@aiquants/authz-react-router 0.1.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.
- package/LICENSE +21 -0
- package/README.md +118 -0
- package/dist/index.d.mts +474 -0
- package/dist/index.d.ts +474 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +77 -0
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aiquants/authz-react-router",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "React Router (v7) adapter for @aiquants/authz-core: requirePermission/getMyPermissions guards, usePermission hook, and MyPermissionIndicator component.",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.mjs",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"require": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"rbac",
|
|
23
|
+
"authorization",
|
|
24
|
+
"react-router",
|
|
25
|
+
"react",
|
|
26
|
+
"typescript"
|
|
27
|
+
],
|
|
28
|
+
"author": {
|
|
29
|
+
"name": "fehde-k",
|
|
30
|
+
"url": "https://x.com/fehdek"
|
|
31
|
+
},
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@aiquants/authz-core": "0.1.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
38
|
+
"@testing-library/react": "^16.3.2",
|
|
39
|
+
"@types/react": "^19.2.7",
|
|
40
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
41
|
+
"jsdom": "^27.4.0",
|
|
42
|
+
"react": "^19.2.7",
|
|
43
|
+
"react-dom": "^19.2.7",
|
|
44
|
+
"react-router": "^7.13.0",
|
|
45
|
+
"rimraf": "^6.1.2",
|
|
46
|
+
"tsup": "^8.5.1",
|
|
47
|
+
"typescript": "^5.9.3",
|
|
48
|
+
"vitest": "^4.1.8"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"react": ">=18",
|
|
52
|
+
"react-router": "^7.0.0"
|
|
53
|
+
},
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=18.0.0",
|
|
56
|
+
"pnpm": ">=8.0.0"
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "tsup",
|
|
63
|
+
"build:watch": "tsup --watch",
|
|
64
|
+
"dev": "tsup --watch",
|
|
65
|
+
"typecheck": "tsc --noEmit",
|
|
66
|
+
"clean": "rimraf dist",
|
|
67
|
+
"publish:patch": "npm version patch && pnpm publish --no-git-checks",
|
|
68
|
+
"publish:minor": "npm version minor && pnpm publish --no-git-checks",
|
|
69
|
+
"publish:major": "npm version major && pnpm publish --no-git-checks",
|
|
70
|
+
"lint": "biome lint src/",
|
|
71
|
+
"check": "biome check src/",
|
|
72
|
+
"check:fix": "biome check --write src/",
|
|
73
|
+
"license-check": "pnpm dlx license-checker --production --onlyAllow \"MIT;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;Unlicense\"",
|
|
74
|
+
"test": "vitest run",
|
|
75
|
+
"test:coverage": "vitest run --coverage"
|
|
76
|
+
}
|
|
77
|
+
}
|