Comparing version 0.1.0 to 0.1.1
@@ -861,2 +861,3 @@ "use strict"; | ||
get().focusFirstInvalidField(); | ||
await mutableImplStore.onInvalidSubmit?.(); | ||
return; | ||
@@ -1613,2 +1614,3 @@ } | ||
onSubmitFailure, | ||
onInvalidSubmit, | ||
validationBehaviorConfig, | ||
@@ -1628,3 +1630,4 @@ submitSource, | ||
onSubmitSuccess, | ||
onSubmitFailure | ||
onSubmitFailure, | ||
onInvalidSubmit | ||
}; | ||
@@ -1631,0 +1634,0 @@ const store = createFormStateStore({ |
@@ -203,2 +203,3 @@ import * as zustand_react from 'zustand/react'; | ||
onSubmitFailure: (error: unknown) => void | Promise<void>; | ||
onInvalidSubmit: () => void | Promise<void>; | ||
}; | ||
@@ -244,2 +245,3 @@ type FormStoreInit = { | ||
onSubmitFailure: (error: unknown) => void | Promise<void>; | ||
onInvalidSubmit: () => void | Promise<void>; | ||
formProps: StoreFormProps; | ||
@@ -268,3 +270,3 @@ flags: StoreFlags; | ||
} | ||
declare const createFormScope: <FormInputData extends FieldValues, FormOutputData>({ defaultValues, serverValidationErrors, validator, onSubmit, onSubmitSuccess, onSubmitFailure, validationBehaviorConfig, submitSource, formProps, flags, }: FormInit<FormInputData, FormOutputData>) => FormScope<FormInputData>; | ||
declare const createFormScope: <FormInputData extends FieldValues, FormOutputData>({ defaultValues, serverValidationErrors, validator, onSubmit, onSubmitSuccess, onSubmitFailure, onInvalidSubmit, validationBehaviorConfig, submitSource, formProps, flags, }: FormInit<FormInputData, FormOutputData>) => FormScope<FormInputData>; | ||
declare const scopeFormScope: (parentForm: FormScope<unknown>, prefix: string) => FormScope<unknown>; | ||
@@ -271,0 +273,0 @@ |
@@ -794,2 +794,3 @@ var __getOwnPropNames = Object.getOwnPropertyNames; | ||
get().focusFirstInvalidField(); | ||
await mutableImplStore.onInvalidSubmit?.(); | ||
return; | ||
@@ -1548,2 +1549,3 @@ } | ||
onSubmitFailure, | ||
onInvalidSubmit, | ||
validationBehaviorConfig, | ||
@@ -1563,3 +1565,4 @@ submitSource, | ||
onSubmitSuccess, | ||
onSubmitFailure | ||
onSubmitFailure, | ||
onInvalidSubmit | ||
}; | ||
@@ -1566,0 +1569,0 @@ const store = createFormStateStore({ |
{ | ||
"name": "@rvf/core", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Easy, predictable form state management for React", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13111237
122234