@tanstack/react-form 0.5.0 → 0.6.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.
@@ -1,6 +1,5 @@
1
1
  import { FormOptions, FormApi } from '@tanstack/form-core';
2
2
  import { UseField, FieldComponent } from './useField.cjs';
3
- import 'react';
4
3
  import './types.cjs';
5
4
 
6
5
  type FormFactory<TFormData, FormValidator> = {
@@ -1,6 +1,5 @@
1
1
  import { FormOptions, FormApi } from '@tanstack/form-core';
2
2
  import { UseField, FieldComponent } from './useField.js';
3
- import 'react';
4
3
  import './types.js';
5
4
 
6
5
  type FormFactory<TFormData, FormValidator> = {
@@ -1,4 +1,3 @@
1
- import React__default from 'react';
2
1
  import { DeepKeys, DeepValue, Narrow, FieldApi } from '@tanstack/form-core';
3
2
  import { UseFieldOptions } from './types.cjs';
4
3
 
@@ -23,6 +22,6 @@ type FieldComponentProps<TParentData, TName extends DeepKeys<TParentData>, Valid
23
22
  type FieldComponent<TParentData, FormValidator> = <TName extends DeepKeys<TParentData>, ValidatorType, TData extends DeepValue<TParentData, TName> = DeepValue<TParentData, TName>>({ children, ...fieldOptions }: FieldComponentProps<TParentData, TName, ValidatorType, FormValidator, TData>) => any;
24
23
  declare function Field<TParentData, TName extends DeepKeys<TParentData>, ValidatorType, FormValidator>({ children, ...fieldOptions }: {
25
24
  children: (fieldApi: FieldApi<TParentData, TName, ValidatorType, FormValidator>) => any;
26
- } & UseFieldOptions<TParentData, TName, ValidatorType, FormValidator>): React__default.JSX.Element;
25
+ } & UseFieldOptions<TParentData, TName, ValidatorType, FormValidator>): JSX.Element;
27
26
 
28
27
  export { Field, FieldComponent, UseField, useField };
@@ -1,4 +1,3 @@
1
- import React__default from 'react';
2
1
  import { DeepKeys, DeepValue, Narrow, FieldApi } from '@tanstack/form-core';
3
2
  import { UseFieldOptions } from './types.js';
4
3
 
@@ -23,6 +22,6 @@ type FieldComponentProps<TParentData, TName extends DeepKeys<TParentData>, Valid
23
22
  type FieldComponent<TParentData, FormValidator> = <TName extends DeepKeys<TParentData>, ValidatorType, TData extends DeepValue<TParentData, TName> = DeepValue<TParentData, TName>>({ children, ...fieldOptions }: FieldComponentProps<TParentData, TName, ValidatorType, FormValidator, TData>) => any;
24
23
  declare function Field<TParentData, TName extends DeepKeys<TParentData>, ValidatorType, FormValidator>({ children, ...fieldOptions }: {
25
24
  children: (fieldApi: FieldApi<TParentData, TName, ValidatorType, FormValidator>) => any;
26
- } & UseFieldOptions<TParentData, TName, ValidatorType, FormValidator>): React__default.JSX.Element;
25
+ } & UseFieldOptions<TParentData, TName, ValidatorType, FormValidator>): JSX.Element;
27
26
 
28
27
  export { Field, FieldComponent, UseField, useField };
@@ -1,6 +1,5 @@
1
1
  import { FormOptions, FormApi } from '@tanstack/form-core';
2
2
  import { UseField, FieldComponent } from './useField.cjs';
3
- import 'react';
4
3
  import './types.cjs';
5
4
 
6
5
  type FormFactory<TFormData, FormValidator> = {
@@ -1,6 +1,5 @@
1
1
  import { FormOptions, FormApi } from '@tanstack/form-core';
2
2
  import { UseField, FieldComponent } from './useField.js';
3
- import 'react';
4
3
  import './types.js';
5
4
 
6
5
  type FormFactory<TFormData, FormValidator> = {
@@ -1,4 +1,3 @@
1
- import React__default from 'react';
2
1
  import { DeepKeys, DeepValue, Narrow, FieldApi } from '@tanstack/form-core';
3
2
  import { UseFieldOptions } from './types.cjs';
4
3
 
@@ -23,6 +22,6 @@ type FieldComponentProps<TParentData, TName extends DeepKeys<TParentData>, Valid
23
22
  type FieldComponent<TParentData, FormValidator> = <TName extends DeepKeys<TParentData>, ValidatorType, TData extends DeepValue<TParentData, TName> = DeepValue<TParentData, TName>>({ children, ...fieldOptions }: FieldComponentProps<TParentData, TName, ValidatorType, FormValidator, TData>) => any;
24
23
  declare function Field<TParentData, TName extends DeepKeys<TParentData>, ValidatorType, FormValidator>({ children, ...fieldOptions }: {
25
24
  children: (fieldApi: FieldApi<TParentData, TName, ValidatorType, FormValidator>) => any;
26
- } & UseFieldOptions<TParentData, TName, ValidatorType, FormValidator>): React__default.JSX.Element;
25
+ } & UseFieldOptions<TParentData, TName, ValidatorType, FormValidator>): JSX.Element;
27
26
 
28
27
  export { Field, FieldComponent, UseField, useField };
@@ -1,4 +1,3 @@
1
- import React__default from 'react';
2
1
  import { DeepKeys, DeepValue, Narrow, FieldApi } from '@tanstack/form-core';
3
2
  import { UseFieldOptions } from './types.js';
4
3
 
@@ -23,6 +22,6 @@ type FieldComponentProps<TParentData, TName extends DeepKeys<TParentData>, Valid
23
22
  type FieldComponent<TParentData, FormValidator> = <TName extends DeepKeys<TParentData>, ValidatorType, TData extends DeepValue<TParentData, TName> = DeepValue<TParentData, TName>>({ children, ...fieldOptions }: FieldComponentProps<TParentData, TName, ValidatorType, FormValidator, TData>) => any;
24
23
  declare function Field<TParentData, TName extends DeepKeys<TParentData>, ValidatorType, FormValidator>({ children, ...fieldOptions }: {
25
24
  children: (fieldApi: FieldApi<TParentData, TName, ValidatorType, FormValidator>) => any;
26
- } & UseFieldOptions<TParentData, TName, ValidatorType, FormValidator>): React__default.JSX.Element;
25
+ } & UseFieldOptions<TParentData, TName, ValidatorType, FormValidator>): JSX.Element;
27
26
 
28
27
  export { Field, FieldComponent, UseField, useField };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-form",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Powerful, type-safe forms for React.",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -54,7 +54,7 @@
54
54
  "@tanstack/react-store": "0.1.3",
55
55
  "@tanstack/store": "0.1.3",
56
56
  "use-isomorphic-layout-effect": "^1.1.2",
57
- "@tanstack/form-core": "0.5.0"
57
+ "@tanstack/form-core": "0.6.0"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "react": "^17.0.0 || ^18.0.0",