@paragrav/rhf-utils 0.0.68 → 0.0.69
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/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@paragrav/rhf-utils",
|
|
3
3
|
"author": "paragrav.dev",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.69",
|
|
6
6
|
"description": "Integration utilities for react-hook-form.",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"sideEffects": false,
|
|
@@ -166,20 +166,6 @@
|
|
|
166
166
|
"types": "./dist/types/submit/useSubmitFormOnChange.d.ts"
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
|
-
"scripts": {
|
|
170
|
-
"build": "npm install && npm run validate && vite build",
|
|
171
|
-
"build:dev": "vite build --config vite.config.dev.ts",
|
|
172
|
-
"dev": "vite --config vite.config.dev.ts",
|
|
173
|
-
"lint": "eslint --ignore-path ./.gitignore --ext ts,tsx --report-unused-disable-directives --max-warnings 0 .",
|
|
174
|
-
"preinstall": "npx only-allow npm",
|
|
175
|
-
"prepare": "husky",
|
|
176
|
-
"preview": "vite preview --config vite.config.dev.ts",
|
|
177
|
-
"test": "vitest",
|
|
178
|
-
"test:ct": "playwright test -c playwright-ct.config.ts",
|
|
179
|
-
"test:ct:ui": "playwright test -c playwright-ct.config.ts --ui",
|
|
180
|
-
"tsc": "tsc",
|
|
181
|
-
"validate": "cross-env CI=1 npm run tsc & npm run lint & npm run test & npm run test:ct"
|
|
182
|
-
},
|
|
183
169
|
"peerDependencies": {
|
|
184
170
|
"@hookform/devtools": "^4",
|
|
185
171
|
"flat": "^6",
|
|
@@ -219,9 +205,8 @@
|
|
|
219
205
|
},
|
|
220
206
|
"engines": {
|
|
221
207
|
"node": ">=20.12",
|
|
222
|
-
"
|
|
208
|
+
"pnpm": ">=9.0.6"
|
|
223
209
|
},
|
|
224
|
-
"packageManager": "npm@10.2.4",
|
|
225
210
|
"repository": {
|
|
226
211
|
"type": "git",
|
|
227
212
|
"url": "git+https://github.com/paragrav/rhf-utils.git"
|
|
@@ -239,5 +224,18 @@
|
|
|
239
224
|
"utilities",
|
|
240
225
|
"utils",
|
|
241
226
|
"zod"
|
|
242
|
-
]
|
|
243
|
-
|
|
227
|
+
],
|
|
228
|
+
"scripts": {
|
|
229
|
+
"build": "vite build",
|
|
230
|
+
"build:dev": "vite build --config vite.config.dev.ts",
|
|
231
|
+
"dev": "vite --config vite.config.dev.ts",
|
|
232
|
+
"lint": "eslint --ignore-path ./.gitignore --ext ts,tsx --report-unused-disable-directives --max-warnings 0 .",
|
|
233
|
+
"preinstall": "npx only-allow pnpm",
|
|
234
|
+
"preview": "vite preview --config vite.config.dev.ts",
|
|
235
|
+
"test": "vitest",
|
|
236
|
+
"test:ct": "playwright test -c playwright-ct.config.ts",
|
|
237
|
+
"test:ct:ui": "playwright test -c playwright-ct.config.ts --ui",
|
|
238
|
+
"tsc": "tsc",
|
|
239
|
+
"validate": "cross-env CI=1 pnpm install && pnpm tsc & pnpm lint & pnpm test && pnpm test:ct"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Determined if there are orphan errors and no field errors.
|
|
3
|
-
* (May be useful when reporting or displaying a specific message to user.)
|
|
4
|
-
* RHF doesn't seem to have any other mechanism to indicate a failed submit but to `setErrors()`.
|
|
5
|
-
* Therefore, we have no way of distinguishing between "placeholder" root error and actual error.
|
|
6
|
-
* (e.g., "Please fix form errors above." vs "Start date must be less than end date.")
|
|
7
|
-
*/
|
|
8
|
-
declare const useFormHasOrphanAndNoFieldErrors: (formRef: React.RefObject<HTMLFormElement>) => boolean;
|
|
9
|
-
export default useFormHasOrphanAndNoFieldErrors;
|