@paragrav/rhf-utils 0.0.141 → 0.0.142
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
CHANGED
|
@@ -383,7 +383,7 @@ _If you include the marker in bulk error lists, it will defeat the purpose of th
|
|
|
383
383
|
|
|
384
384
|
## Other Features
|
|
385
385
|
|
|
386
|
-
### Form Groups _(0.
|
|
386
|
+
### Form Groups _(0.7kB min+gzip)_
|
|
387
387
|
|
|
388
388
|
Sometimes you need to group multiple forms together.
|
|
389
389
|
|
|
@@ -408,7 +408,7 @@ In children forms, there are two options. You can choose to consider form "busy"
|
|
|
408
408
|
|
|
409
409
|
Both hooks return `boolean` value indicating whether parent form is busy.
|
|
410
410
|
|
|
411
|
-
### TRPC.io Utils _(0.
|
|
411
|
+
### TRPC.io Utils _(0.4kB min+gzip)_
|
|
412
412
|
|
|
413
413
|
#### `trpcClientErrorToFormSubmitFieldErrorsSchemaTransformer`
|
|
414
414
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type { Register } from '../register';
|
|
2
|
+
export type { RhfUtilsClientConfig } from '../client/config/RhfUtilsClientConfig';
|
|
3
|
+
export { default as RhfUtilsClientForZodContextProvider } from '../client/zod/context/RhfUtilsClientForZodContextProvider';
|
|
4
|
+
export { default as RhfUtilsZodForm } from '../client/zod/context/RhfUtilsZodForm';
|
|
5
|
+
export { default as useRhfUtilsZodForm } from '../client/zod/context/useRhfUtilsZodForm';
|
|
6
|
+
export type { RhfUtilsUseFormChildrenZodFC } from '../client/zod/RhfUtilsUseFormChildrenZodFC';
|
|
7
|
+
export type { RhfUtilsUseFormChildrenZodProps } from '../client/zod/RhfUtilsUseFormChildrenZodProps';
|
|
8
|
+
export { default as useFlatFieldErrorsContext } from '../errors/flat/context/useFlatFieldErrorsContext';
|
|
9
|
+
export { default as useFlatFieldErrorsContextHasOnlyOrphans } from '../errors/flat/context/useFlatFieldErrorsContextHasOnlyOrphans';
|
|
10
|
+
export { default as RhfUtilsNonFieldErrorMarker } from '../errors/nonfield/RhfUtilsNonFieldErrorMarker';
|
|
11
|
+
export type { RhfUtilsFormOptions } from '../form/RhfUtilsFormOptions';
|
|
12
|
+
export type { SafeFieldValues } from '../form/SafeFieldValues';
|
|
13
|
+
export type { UseRhfUtilsFormChildrenProps } from '../form/UseRhfUtilsFormChildrenProps';
|
|
14
|
+
export { default as useRhfUtilsContext } from '../form/context/utils/useRhfUtilsContext';
|
|
15
|
+
export { FormSubmitError } from '../submit/error/FormSubmitError';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as FormGroupContextProvider } from '../form/context/group/FormGroupContextProvider';
|
|
2
|
+
import { default as useFormGroupChildIsMountedTracker } from '../form/context/group/useFormGroupChildIsMountedTracker';
|
|
3
|
+
import { default as useFormGroupChildIsSubmittingTracker } from '../form/context/group/useFormGroupChildIsSubmittingTracker';
|
|
4
|
+
import { default as useFormGroupChildTracker } from '../form/context/group/useFormGroupChildTracker';
|
|
5
|
+
import { default as useFormGroupIsAnyBusy } from '../form/context/group/useFormGroupIsAnyBusy';
|
|
6
|
+
import { default as useFormGroupIsChildBusy } from '../form/context/group/useFormGroupIsChildBusy';
|
|
7
|
+
import { default as useFormGroupIsParentBusy } from '../form/context/group/useFormGroupIsParentBusy';
|
|
8
|
+
import { default as useFormGroupParentTracker } from '../form/context/group/useFormGroupParentTracker';
|
|
9
|
+
import { default as useFormOrParentIsBusy } from '../form/context/group/useFormOrParentIsBusy';
|
|
10
|
+
|
|
11
|
+
export { FormGroupContextProvider }
|
|
12
|
+
|
|
13
|
+
export { useFormGroupChildIsMountedTracker }
|
|
14
|
+
|
|
15
|
+
export { useFormGroupChildIsSubmittingTracker }
|
|
16
|
+
|
|
17
|
+
export { useFormGroupChildTracker }
|
|
18
|
+
|
|
19
|
+
export { useFormGroupIsAnyBusy }
|
|
20
|
+
|
|
21
|
+
export { useFormGroupIsChildBusy }
|
|
22
|
+
|
|
23
|
+
export { useFormGroupIsParentBusy }
|
|
24
|
+
|
|
25
|
+
export { useFormGroupParentTracker }
|
|
26
|
+
|
|
27
|
+
export { useFormOrParentIsBusy }
|
|
28
|
+
|
|
29
|
+
export { }
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as makeOnSubmitTrpcClientErrorHandler } from '../errors/trpc/makeOnSubmitTrpcClientErrorHandler';
|
|
2
|
+
import { default as trpcClientErrorToFormSubmitFieldErrorsSchemaTransformer } from '../errors/trpc/trpcClientErrorToFormSubmitFieldErrorsSchemaTransformer';
|
|
3
|
+
|
|
4
|
+
export { makeOnSubmitTrpcClientErrorHandler }
|
|
5
|
+
|
|
6
|
+
export { trpcClientErrorToFormSubmitFieldErrorsSchemaTransformer }
|
|
7
|
+
|
|
8
|
+
export { }
|
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.142",
|
|
6
6
|
"description": "Integration utilities for react-hook-form.",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"sideEffects": false,
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"dist/esm/*",
|
|
11
11
|
"dist/types/*"
|
|
12
12
|
],
|
|
13
|
-
"module": "./dist/esm/
|
|
13
|
+
"module": "./dist/esm/index.mjs",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
16
|
"import": {
|
|
17
|
-
"default": "./dist/esm/
|
|
18
|
-
"types": "./dist/types/_exports/
|
|
17
|
+
"default": "./dist/esm/index.mjs",
|
|
18
|
+
"types": "./dist/types/_exports/index.d.ts"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"./group": {
|
|
File without changes
|