carconnect-gatherleads-ui-lib 3.7.0-GL-1700-Modulo-Rendimiento-ROI.4 → 3.7.0-GL-1700-Modulo-Rendimiento-ROI.5

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.
@@ -2156,6 +2156,11 @@ export declare interface GatherFormBuilderProps<T extends FieldValues> {
2156
2156
  setError: UseFormSetError<T>;
2157
2157
  watch: UseFormWatch<T>;
2158
2158
  }) => void;
2159
+ /**
2160
+ * Callback invoked whenever the form's validity state changes.
2161
+ * Useful for disabling/enabling external submit buttons.
2162
+ */
2163
+ onValidityChange?: (isValid: boolean) => void;
2159
2164
  /**
2160
2165
  * Modo de validación de React Hook Form
2161
2166
  * @default 'onChange'
@@ -2243,6 +2248,18 @@ export declare interface GatherFormBuilderRef<T extends FieldValues> {
2243
2248
  * Observa cambios en campos específicos
2244
2249
  */
2245
2250
  watch: UseFormReturn<T>['watch'];
2251
+ /**
2252
+ * Triggers validation for one or more fields
2253
+ */
2254
+ trigger: UseFormReturn<T>['trigger'];
2255
+ /**
2256
+ * Current form state (errors, isSubmitting, isValid)
2257
+ */
2258
+ formState: {
2259
+ errors: UseFormReturn<T>['formState']['errors'];
2260
+ isSubmitting: boolean;
2261
+ isValid: boolean;
2262
+ };
2246
2263
  }
2247
2264
 
2248
2265
  /**