@tanstack/react-form 0.29.0 → 0.29.2
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/dist/cjs/nextjs/createServerValidate.d.cts +0 -1
- package/dist/cjs/nextjs/error.d.cts +0 -1
- package/dist/cjs/nextjs/types.d.cts +0 -1
- package/dist/cjs/start/createServerValidate.d.cts +0 -1
- package/dist/cjs/start/error.d.cts +0 -1
- package/dist/cjs/start/getFormData.d.cts +0 -1
- package/dist/cjs/start/types.d.cts +0 -1
- package/dist/cjs/types.d.cts +0 -1
- package/dist/cjs/useField.d.cts +0 -1
- package/dist/cjs/useForm.d.cts +0 -1
- package/dist/cjs/useIsomorphicLayoutEffect.d.cts +0 -1
- package/dist/cjs/useTransform.d.cts +0 -1
- package/dist/esm/nextjs/createServerValidate.d.ts +0 -1
- package/dist/esm/nextjs/error.d.ts +0 -1
- package/dist/esm/nextjs/types.d.ts +0 -1
- package/dist/esm/start/createServerValidate.d.ts +0 -1
- package/dist/esm/start/error.d.ts +0 -1
- package/dist/esm/start/getFormData.d.ts +0 -1
- package/dist/esm/start/types.d.ts +0 -1
- package/dist/esm/types.d.ts +0 -1
- package/dist/esm/useField.d.ts +0 -1
- package/dist/esm/useForm.d.ts +0 -1
- package/dist/esm/useIsomorphicLayoutEffect.d.ts +0 -1
- package/dist/esm/useTransform.d.ts +0 -1
- package/package.json +5 -5
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { decode } from 'decode-formdata';
|
|
2
2
|
import { FormOptions, ValidationError, Validator } from '@tanstack/form-core';
|
|
3
3
|
import { FetchFn } from '@tanstack/start';
|
|
4
|
-
|
|
5
4
|
type Ctx = Parameters<FetchFn<FormData, unknown>>[1];
|
|
6
5
|
type OnServerValidateFn<TFormData> = (props: {
|
|
7
6
|
value: TFormData;
|
package/dist/cjs/types.d.cts
CHANGED
package/dist/cjs/useField.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FieldApi, DeepKeys, DeepValue, Validator } from '@tanstack/form-core';
|
|
2
2
|
import { NodeType, UseFieldOptions } from './types.cjs';
|
|
3
|
-
|
|
4
3
|
interface ReactFieldApi<TParentData, TFormValidator extends Validator<TParentData, unknown> | undefined = undefined> {
|
|
5
4
|
/**
|
|
6
5
|
* A pre-bound and type-safe sub-field component using this field as a root.
|
package/dist/cjs/useForm.d.cts
CHANGED
|
@@ -2,7 +2,6 @@ import { FormApi, FormOptions, FormState, Validator } from '@tanstack/form-core'
|
|
|
2
2
|
import { FieldComponent, UseField } from './useField.cjs';
|
|
3
3
|
import { NoInfer } from '@tanstack/react-store';
|
|
4
4
|
import { NodeType } from './types.cjs';
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* Fields that are added onto the `FormAPI` from `@tanstack/form-core` and returned from `useForm`
|
|
8
7
|
*/
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { FormApi, FormTransform, Validator } from '@tanstack/form-core';
|
|
2
|
-
|
|
3
2
|
export declare function useTransform<TFormData, TFormValidator extends Validator<TFormData, unknown> | undefined = undefined>(fn: (formBase: FormApi<any, any>) => FormApi<TFormData, TFormValidator>, deps: unknown[]): FormTransform<TFormData, TFormValidator>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { decode } from 'decode-formdata';
|
|
2
2
|
import { FormOptions, ValidationError, Validator } from '@tanstack/form-core';
|
|
3
3
|
import { FetchFn } from '@tanstack/start';
|
|
4
|
-
|
|
5
4
|
type Ctx = Parameters<FetchFn<FormData, unknown>>[1];
|
|
6
5
|
type OnServerValidateFn<TFormData> = (props: {
|
|
7
6
|
value: TFormData;
|
package/dist/esm/types.d.ts
CHANGED
package/dist/esm/useField.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FieldApi, DeepKeys, DeepValue, Validator } from '@tanstack/form-core';
|
|
2
2
|
import { NodeType, UseFieldOptions } from './types.js';
|
|
3
|
-
|
|
4
3
|
interface ReactFieldApi<TParentData, TFormValidator extends Validator<TParentData, unknown> | undefined = undefined> {
|
|
5
4
|
/**
|
|
6
5
|
* A pre-bound and type-safe sub-field component using this field as a root.
|
package/dist/esm/useForm.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { FormApi, FormOptions, FormState, Validator } from '@tanstack/form-core'
|
|
|
2
2
|
import { FieldComponent, UseField } from './useField.js';
|
|
3
3
|
import { NoInfer } from '@tanstack/react-store';
|
|
4
4
|
import { NodeType } from './types.js';
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* Fields that are added onto the `FormAPI` from `@tanstack/form-core` and returned from `useForm`
|
|
8
7
|
*/
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { FormApi, FormTransform, Validator } from '@tanstack/form-core';
|
|
2
|
-
|
|
3
2
|
export declare function useTransform<TFormData, TFormValidator extends Validator<TFormData, unknown> | undefined = undefined>(fn: (formBase: FormApi<any, any>) => FormApi<TFormData, TFormValidator>, deps: unknown[]): FormTransform<TFormData, TFormValidator>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-form",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.2",
|
|
4
4
|
"description": "Powerful, type-safe forms for React.",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,19 +57,19 @@
|
|
|
57
57
|
"src"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@remix-run/node": "^2.11.
|
|
60
|
+
"@remix-run/node": "^2.11.1",
|
|
61
61
|
"@tanstack/react-store": "^0.5.5",
|
|
62
62
|
"decode-formdata": "^0.7.5",
|
|
63
|
-
"@tanstack/form-core": "0.
|
|
63
|
+
"@tanstack/form-core": "0.29.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@tanstack/start": "^1.
|
|
66
|
+
"@tanstack/start": "^1.47.2",
|
|
67
67
|
"@types/react": "^18.3.3",
|
|
68
68
|
"@types/react-dom": "^18.3.0",
|
|
69
69
|
"@vitejs/plugin-react": "^4.3.1",
|
|
70
70
|
"react": "^18.3.1",
|
|
71
71
|
"react-dom": "^18.3.1",
|
|
72
|
-
"vite": "^5.
|
|
72
|
+
"vite": "^5.4.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"@tanstack/start": "^1.43.13",
|