@hirely/hooks 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/README.md +503 -0
- package/dist/context.d.ts +10 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/index.cjs +573 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +535 -0
- package/dist/index.mjs +535 -0
- package/dist/useFormHandler.d.ts +61 -0
- package/dist/useFormHandler.d.ts.map +1 -0
- package/dist/useFormMutation.d.ts +26 -0
- package/dist/useFormMutation.d.ts.map +1 -0
- package/dist/withFormHandler.d.ts +12 -0
- package/dist/withFormHandler.d.ts.map +1 -0
- package/package.json +82 -0
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hirely/hooks",
|
|
3
|
+
"repository": "https://github.com/Mahmovdsayed/hooks",
|
|
4
|
+
"homepage": "https://github.com/Mahmovdsayed/hooks#readme",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"description": "React hooks for forms with Zod validation, optional Axios and Sonner, React Query integration.",
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.mjs",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"require": "./dist/index.cjs",
|
|
15
|
+
"default": "./dist/index.mjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"clean": "rm -rf dist",
|
|
23
|
+
"build": "bun run clean && bun run build:js && bun run build:types",
|
|
24
|
+
"build:js": "bun build ./src/index.ts --banner '\"use client\";' --outfile ./dist/index.mjs --target node --format esm --external react --external react-hook-form --external zod --external @tanstack/react-query --external axios --external sonner && bun build ./src/index.ts --outfile ./dist/index.cjs --target node --format cjs --external react --external react-hook-form --external zod --external @tanstack/react-query --external axios --external sonner && cp ./dist/index.mjs ./dist/index.js",
|
|
25
|
+
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
26
|
+
"test": "bun test",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"prepublishOnly": "bun run build",
|
|
29
|
+
"release": "bun run build && bun publish"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"react": ">=18.0.0",
|
|
33
|
+
"react-hook-form": "^7.0.0",
|
|
34
|
+
"zod": "^3.0.0 || ^4.0.0",
|
|
35
|
+
"@tanstack/react-query": ">=5.0.0",
|
|
36
|
+
"axios": "^1.0.0",
|
|
37
|
+
"sonner": ">=1.0.0"
|
|
38
|
+
},
|
|
39
|
+
"peerDependenciesMeta": {
|
|
40
|
+
"axios": {
|
|
41
|
+
"optional": true
|
|
42
|
+
},
|
|
43
|
+
"sonner": {
|
|
44
|
+
"optional": true
|
|
45
|
+
},
|
|
46
|
+
"@tanstack/react-query": {
|
|
47
|
+
"optional": true
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"keywords": [
|
|
51
|
+
"react",
|
|
52
|
+
"hook",
|
|
53
|
+
"form",
|
|
54
|
+
"zod",
|
|
55
|
+
"axios",
|
|
56
|
+
"sonner",
|
|
57
|
+
"react-query"
|
|
58
|
+
],
|
|
59
|
+
"type": "module",
|
|
60
|
+
"license": "MIT",
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@hookform/resolvers": "^5.9.1",
|
|
66
|
+
"@tanstack/react-query": "^5.102.8",
|
|
67
|
+
"@testing-library/react": "^16.3.3",
|
|
68
|
+
"@types/bun": "latest",
|
|
69
|
+
"@types/react": "^19.2.18",
|
|
70
|
+
"@types/react-dom": "^19.2.7",
|
|
71
|
+
"axios": "^1.20.0",
|
|
72
|
+
"happy-dom": "^20.14.0",
|
|
73
|
+
"react": "^19.2.8",
|
|
74
|
+
"react-dom": "^19.2.8",
|
|
75
|
+
"react-hook-form": "^7.87.0",
|
|
76
|
+
"sonner": "^2.0.8",
|
|
77
|
+
"zod": "^4.5.4"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"@hookform/resolvers": "^5.9.1"
|
|
81
|
+
}
|
|
82
|
+
}
|