@factorialco/f0-react 1.479.0 → 1.479.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/ai.d.ts CHANGED
@@ -3431,9 +3431,9 @@ declare namespace Calendar {
3431
3431
 
3432
3432
  declare module "@tiptap/core" {
3433
3433
  interface Commands<ReturnType> {
3434
- enhanceHighlight: {
3435
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
3436
- clearEnhanceHighlight: () => ReturnType;
3434
+ aiBlock: {
3435
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
3436
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
3437
3437
  };
3438
3438
  }
3439
3439
  }
@@ -3441,9 +3441,9 @@ declare module "@tiptap/core" {
3441
3441
 
3442
3442
  declare module "@tiptap/core" {
3443
3443
  interface Commands<ReturnType> {
3444
- aiBlock: {
3445
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
3446
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
3444
+ enhanceHighlight: {
3445
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
3446
+ clearEnhanceHighlight: () => ReturnType;
3447
3447
  };
3448
3448
  }
3449
3449
  }
@@ -8163,9 +8163,9 @@ declare namespace Calendar {
8163
8163
 
8164
8164
  declare module "@tiptap/core" {
8165
8165
  interface Commands<ReturnType> {
8166
- enhanceHighlight: {
8167
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
8168
- clearEnhanceHighlight: () => ReturnType;
8166
+ aiBlock: {
8167
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
8168
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
8169
8169
  };
8170
8170
  }
8171
8171
  }
@@ -8173,9 +8173,9 @@ declare module "@tiptap/core" {
8173
8173
 
8174
8174
  declare module "@tiptap/core" {
8175
8175
  interface Commands<ReturnType> {
8176
- aiBlock: {
8177
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
8178
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
8176
+ enhanceHighlight: {
8177
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
8178
+ clearEnhanceHighlight: () => ReturnType;
8179
8179
  };
8180
8180
  }
8181
8181
  }
package/dist/f0.d.ts CHANGED
@@ -55,6 +55,7 @@ import { F0AvatarTeamProps as F0AvatarTeamProps_2 } from './F0AvatarTeam';
55
55
  import { F0DataChartProps as F0DataChartProps_2 } from './types';
56
56
  import { F0DialogInternalProps } from './internal-types';
57
57
  import { F0DurationInputProps as F0DurationInputProps_2 } from './types';
58
+ import { F0FormDefinition as F0FormDefinition_2 } from './f0';
58
59
  import { F0FormDefinitionPerSection as F0FormDefinitionPerSection_2 } from './f0';
59
60
  import { F0FormDefinitionSingleSchema as F0FormDefinitionSingleSchema_2 } from './f0';
60
61
  import { F0GridStackProps as F0GridStackProps_2 } from './F0GridStack';
@@ -7041,6 +7042,7 @@ export declare const F0Form: {
7041
7042
  <T extends F0PerSectionSchema>(props: F0FormPropsWithPerSectionSchema<T>): React.ReactElement;
7042
7043
  <TSchema extends F0FormSchema>(props: F0FormPropsWithSingleSchemaDefinition<TSchema>): React.ReactElement;
7043
7044
  <T extends F0PerSectionSchema>(props: F0FormPropsWithPerSectionDefinition<T>): React.ReactElement;
7045
+ (props: F0FormPropsWithDefinition): React.ReactElement;
7044
7046
  };
7045
7047
 
7046
7048
  /**
@@ -7514,6 +7516,33 @@ export declare type F0FormLikeComponent = React.ComponentType<F0FormCommonProps>
7514
7516
  */
7515
7517
  export declare type F0FormProps<TSchema extends F0FormSchema | F0PerSectionSchema = F0FormSchema | F0PerSectionSchema> = TSchema extends F0FormSchema ? F0FormPropsWithSingleSchema<TSchema> | F0FormPropsWithSingleSchemaDefinition<TSchema> : TSchema extends F0PerSectionSchema ? F0FormPropsWithPerSectionSchema<TSchema> | F0FormPropsWithPerSectionDefinition<TSchema> : never;
7516
7518
 
7519
+ /**
7520
+ * Props for F0Form when the formDefinition is a union (`F0FormDefinition`).
7521
+ * This non-generic variant allows passing a definition whose exact schema
7522
+ * branch is not statically known (e.g. stored in state or returned from a
7523
+ * generic helper).
7524
+ */
7525
+ declare interface F0FormPropsWithDefinition {
7526
+ formDefinition: F0FormDefinition_2;
7527
+ className?: string;
7528
+ styling?: F0FormStylingConfig;
7529
+ formRef?: React.MutableRefObject<F0FormRef | null>;
7530
+ initialFiles?: InitialFile[];
7531
+ /** Upload hook shared by all file fields in the form. */
7532
+ useUpload?: UseFileUpload;
7533
+ /**
7534
+ * Callback that renders custom fields identified by `customFieldName`.
7535
+ * When a field has `customFieldName`, this function is called instead of the inline `render`.
7536
+ */
7537
+ renderCustomField?: RenderCustomFieldFunction;
7538
+ /**
7539
+ * Whether async defaultValues are still being resolved.
7540
+ * When true, the form renders with loading indicators inside each field
7541
+ * instead of replacing the entire form with skeleton placeholders.
7542
+ */
7543
+ isLoading?: boolean;
7544
+ }
7545
+
7517
7546
  /**
7518
7547
  * Props for F0Form using a formDefinition (per-section schema mode).
7519
7548
  * Form-related props are extracted from the definition; only rendering/integration
@@ -13827,9 +13856,9 @@ declare namespace Calendar {
13827
13856
 
13828
13857
  declare module "@tiptap/core" {
13829
13858
  interface Commands<ReturnType> {
13830
- enhanceHighlight: {
13831
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
13832
- clearEnhanceHighlight: () => ReturnType;
13859
+ aiBlock: {
13860
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
13861
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
13833
13862
  };
13834
13863
  }
13835
13864
  }
@@ -13837,9 +13866,9 @@ declare module "@tiptap/core" {
13837
13866
 
13838
13867
  declare module "@tiptap/core" {
13839
13868
  interface Commands<ReturnType> {
13840
- aiBlock: {
13841
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
13842
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
13869
+ enhanceHighlight: {
13870
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
13871
+ clearEnhanceHighlight: () => ReturnType;
13843
13872
  };
13844
13873
  }
13845
13874
  }
@@ -838,9 +838,9 @@ declare namespace Calendar {
838
838
 
839
839
  declare module "@tiptap/core" {
840
840
  interface Commands<ReturnType> {
841
- enhanceHighlight: {
842
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
843
- clearEnhanceHighlight: () => ReturnType;
841
+ aiBlock: {
842
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
843
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
844
844
  };
845
845
  }
846
846
  }
@@ -848,9 +848,9 @@ declare module "@tiptap/core" {
848
848
 
849
849
  declare module "@tiptap/core" {
850
850
  interface Commands<ReturnType> {
851
- aiBlock: {
852
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
853
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
851
+ enhanceHighlight: {
852
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
853
+ clearEnhanceHighlight: () => ReturnType;
854
854
  };
855
855
  }
856
856
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.479.0",
3
+ "version": "1.479.1",
4
4
  "private": false,
5
5
  "files": [
6
6
  "assets",