@factorialco/f0-react 1.478.1 → 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';
@@ -1580,6 +1581,7 @@ export declare type BorderWidthToken = "none" | "default" | "thick";
1580
1581
  declare type BoxVariantProps = VariantProps<typeof boxVariants>;
1581
1582
 
1582
1583
  declare const boxVariants: (props?: ({
1584
+ zIndex?: "0" | "auto" | "10" | "20" | "50" | "40" | "30" | undefined;
1583
1585
  divider?: "x" | "y" | undefined;
1584
1586
  dividerColor?: "info" | "bold" | "default" | "secondary" | "critical" | "warning" | "positive" | "promote" | "selected" | "critical-bold" | "info-bold" | "warning-bold" | "positive-bold" | "selected-bold" | undefined;
1585
1587
  overflow?: "hidden" | "auto" | "scroll" | "visible" | undefined;
@@ -1630,6 +1632,10 @@ declare const boxVariants: (props?: ({
1630
1632
  paddingBottom?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | undefined;
1631
1633
  paddingLeft?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | undefined;
1632
1634
  paddingRight?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | undefined;
1635
+ top?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | undefined;
1636
+ right?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | undefined;
1637
+ bottom?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | undefined;
1638
+ left?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | undefined;
1633
1639
  display?: "block" | "inline" | "flex" | "grid" | "inline-flex" | "none" | undefined;
1634
1640
  position?: "fixed" | "sticky" | "absolute" | "relative" | "static" | undefined;
1635
1641
  } & ({
@@ -7036,6 +7042,7 @@ export declare const F0Form: {
7036
7042
  <T extends F0PerSectionSchema>(props: F0FormPropsWithPerSectionSchema<T>): React.ReactElement;
7037
7043
  <TSchema extends F0FormSchema>(props: F0FormPropsWithSingleSchemaDefinition<TSchema>): React.ReactElement;
7038
7044
  <T extends F0PerSectionSchema>(props: F0FormPropsWithPerSectionDefinition<T>): React.ReactElement;
7045
+ (props: F0FormPropsWithDefinition): React.ReactElement;
7039
7046
  };
7040
7047
 
7041
7048
  /**
@@ -7509,6 +7516,33 @@ export declare type F0FormLikeComponent = React.ComponentType<F0FormCommonProps>
7509
7516
  */
7510
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;
7511
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
+
7512
7546
  /**
7513
7547
  * Props for F0Form using a formDefinition (per-section schema mode).
7514
7548
  * Form-related props are extracted from the definition; only rendering/integration
@@ -9890,6 +9924,9 @@ declare interface InsertBeforeNotesTextEditorPageDocumentPatch {
9890
9924
  blocks: JSONContent[];
9891
9925
  }
9892
9926
 
9927
+ /** Position offsets */
9928
+ export declare type InsetToken = SpacingToken;
9929
+
9893
9930
  declare const internalAvatarColors: readonly ["viridian", "malibu", "yellow", "purple", "lilac", "barbie", "smoke", "army", "flubber", "indigo", "camel"];
9894
9931
 
9895
9932
  declare type InternalAvatarProps = React_2.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> & {
@@ -11664,6 +11701,11 @@ declare type ResourceHeaderProps = Props_4;
11664
11701
  export declare interface ResponsiveStyleProps {
11665
11702
  display?: DisplayToken;
11666
11703
  position?: PositionToken;
11704
+ top?: InsetToken;
11705
+ right?: InsetToken;
11706
+ bottom?: InsetToken;
11707
+ left?: InsetToken;
11708
+ zIndex?: ZIndexToken;
11667
11709
  padding?: SpacingToken;
11668
11710
  paddingX?: SpacingToken;
11669
11711
  paddingY?: SpacingToken;
@@ -13758,6 +13800,9 @@ declare interface WithTooltipDescription {
13758
13800
  description?: string;
13759
13801
  }
13760
13802
 
13803
+ /** z-index values */
13804
+ export declare type ZIndexToken = "auto" | "0" | "10" | "20" | "30" | "40" | "50";
13805
+
13761
13806
  /**
13762
13807
  * Zod type names for type checking without instanceof
13763
13808
  * Using _def.typeName is more reliable across module boundaries than instanceof
@@ -13811,9 +13856,9 @@ declare namespace Calendar {
13811
13856
 
13812
13857
  declare module "@tiptap/core" {
13813
13858
  interface Commands<ReturnType> {
13814
- enhanceHighlight: {
13815
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
13816
- clearEnhanceHighlight: () => ReturnType;
13859
+ aiBlock: {
13860
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
13861
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
13817
13862
  };
13818
13863
  }
13819
13864
  }
@@ -13821,9 +13866,9 @@ declare module "@tiptap/core" {
13821
13866
 
13822
13867
  declare module "@tiptap/core" {
13823
13868
  interface Commands<ReturnType> {
13824
- aiBlock: {
13825
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
13826
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
13869
+ enhanceHighlight: {
13870
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
13871
+ clearEnhanceHighlight: () => ReturnType;
13827
13872
  };
13828
13873
  }
13829
13874
  }