@factorialco/f0-react 2.20.0 → 2.20.1

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/f0.d.ts CHANGED
@@ -7790,10 +7790,14 @@ export declare interface F0FormDefinitionPerSection<T extends F0PerSectionSchema
7790
7790
  defaultValues?: {
7791
7791
  [K in keyof T]?: Partial<z.infer<T[K]>>;
7792
7792
  };
7793
+ /** Raw async function for resolving defaultValues — resolved by F0Form at render time */
7794
+ asyncDefaultValues?: (signal: AbortSignal) => Promise<{
7795
+ [K in keyof T]?: Partial<z.infer<T[K]>>;
7796
+ }>;
7793
7797
  onSubmit: (arg: F0WizardFormPerSectionSubmitArg<T>) => Promise<F0FormSubmitResult> | F0FormSubmitResult;
7794
7798
  submitConfig?: F0PerSectionSubmitConfig;
7795
7799
  errorTriggerMode?: F0FormErrorTriggerMode;
7796
- /** Whether async defaultValues are still being resolved */
7800
+ /** Whether async initialFiles are still being resolved */
7797
7801
  isLoading?: boolean;
7798
7802
  /** Zod schema describing params the AI can supply when calling presentForm */
7799
7803
  defaultValuesParamsSchema?: ZodType;
@@ -7819,10 +7823,12 @@ export declare interface F0FormDefinitionSingleSchema<TSchema extends F0FormSche
7819
7823
  schema: TSchema;
7820
7824
  sections?: Record<string, F0SectionConfig>;
7821
7825
  defaultValues?: Partial<z.infer<TSchema>>;
7826
+ /** Raw async function for resolving defaultValues — resolved by F0Form at render time */
7827
+ asyncDefaultValues?: (signal: AbortSignal) => Promise<Partial<z.infer<TSchema>>>;
7822
7828
  onSubmit: (arg: F0WizardFormSingleSubmitArg<TSchema>) => Promise<F0FormSubmitResult> | F0FormSubmitResult;
7823
7829
  submitConfig?: F0FormSubmitConfig;
7824
7830
  errorTriggerMode?: F0FormErrorTriggerMode;
7825
- /** Whether async defaultValues are still being resolved */
7831
+ /** Whether async initialFiles are still being resolved */
7826
7832
  isLoading?: boolean;
7827
7833
  /** Zod schema describing params the AI can supply when calling presentForm */
7828
7834
  defaultValuesParamsSchema?: ZodType;