@factorialco/f0-react 2.45.0 → 2.46.0

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
@@ -9014,30 +9014,51 @@ export declare type F0HeadingProps = Omit<TextProps, "className" | "variant" | "
9014
9014
  as?: HeadingTags;
9015
9015
  };
9016
9016
 
9017
- export declare const F0HILActionConfirmation: ({ text, confirmationText, onConfirm, cancelText, onCancel, }: F0HILActionConfirmationProps) => JSX_2.Element;
9017
+ export declare const F0HILActionConfirmation: ({ text, description, avatar, confirmationText, onConfirm, cancelText, onCancel, stackAt, }: F0HILActionConfirmationProps) => JSX_2.Element;
9018
9018
 
9019
9019
  /**
9020
- * Props for the F0HILActionConfirmation component
9020
+ * Props for the F0HILActionConfirmation component.
9021
+ *
9022
+ * Renders an inline approve/reject row built on `F0CardRow`'s confirm/reject
9023
+ * variant: the prompt as the row title, with icon-only ✓ (confirm) and ✗
9024
+ * (reject) buttons at the trailing edge.
9021
9025
  */
9022
9026
  export declare type F0HILActionConfirmationProps = {
9023
9027
  /**
9024
- * Optional descriptive text shown above the action buttons
9028
+ * The prompt shown as the row title (e.g. the action awaiting confirmation).
9029
+ * Required — a confirmation without a prompt has no meaning.
9030
+ */
9031
+ text: string;
9032
+ /**
9033
+ * Optional secondary line shown beneath the title (single line, truncated).
9034
+ */
9035
+ description?: F0CardRowProps["description"];
9036
+ /**
9037
+ * Optional avatar rendered on the left of the row. Accepts any avatar type in
9038
+ * the system (person, company, team, file, icon, emoji, …).
9039
+ */
9040
+ avatar?: F0CardRowProps["avatar"];
9041
+ /**
9042
+ * Container width at which the ✓/✗ actions drop onto their own line instead of
9043
+ * staying inline. Prevents the buttons from overlapping the prompt in narrow
9044
+ * containers. Set to `"never"` to keep them inline at every width.
9045
+ * @default "sm"
9025
9046
  */
9026
- text?: string;
9047
+ stackAt?: F0CardRowProps["stackAt"];
9027
9048
  /**
9028
- * Text displayed on the confirmation button
9049
+ * Accessible label and tooltip for the confirm (✓) button.
9029
9050
  */
9030
9051
  confirmationText: string;
9031
9052
  /**
9032
- * Callback fired when the confirmation button is clicked
9053
+ * Callback fired when the confirm button is clicked.
9033
9054
  */
9034
9055
  onConfirm: () => void;
9035
9056
  /**
9036
- * Text displayed on the cancel button
9057
+ * Accessible label and tooltip for the reject (✗) button.
9037
9058
  */
9038
9059
  cancelText: string;
9039
9060
  /**
9040
- * Callback fired when the cancel button is clicked
9061
+ * Callback fired when the reject button is clicked.
9041
9062
  */
9042
9063
  onCancel: () => void;
9043
9064
  };
@@ -15719,11 +15740,16 @@ declare module "gridstack" {
15719
15740
  }
15720
15741
 
15721
15742
 
15743
+ declare namespace Calendar {
15744
+ var displayName: string;
15745
+ }
15746
+
15747
+
15722
15748
  declare module "@tiptap/core" {
15723
15749
  interface Commands<ReturnType> {
15724
- aiBlock: {
15725
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
15726
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
15750
+ enhanceHighlight: {
15751
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
15752
+ clearEnhanceHighlight: () => ReturnType;
15727
15753
  };
15728
15754
  }
15729
15755
  }
@@ -15731,9 +15757,9 @@ declare module "@tiptap/core" {
15731
15757
 
15732
15758
  declare module "@tiptap/core" {
15733
15759
  interface Commands<ReturnType> {
15734
- enhanceHighlight: {
15735
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
15736
- clearEnhanceHighlight: () => ReturnType;
15760
+ aiBlock: {
15761
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
15762
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
15737
15763
  };
15738
15764
  }
15739
15765
  }
@@ -15768,11 +15794,6 @@ declare module "@tiptap/core" {
15768
15794
  }
15769
15795
 
15770
15796
 
15771
- declare namespace Calendar {
15772
- var displayName: string;
15773
- }
15774
-
15775
-
15776
15797
  declare namespace F0GraphNodeWrapperInner {
15777
15798
  var displayName: string;
15778
15799
  }