@factorialco/f0-react 2.45.0 → 2.47.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
@@ -1824,6 +1824,11 @@ declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "clas
1824
1824
  * The style of the button.
1825
1825
  */
1826
1826
  style?: React.CSSProperties;
1827
+ /**
1828
+ * @private
1829
+ * If true, the button will stretch to the full width of its container.
1830
+ */
1831
+ block?: boolean;
1827
1832
  } & ({
1828
1833
  /**
1829
1834
  * The URL to navigate to when the button is clicked.
@@ -4267,6 +4272,7 @@ export declare const defaultTranslations: {
4267
4272
  readonly save: "Save";
4268
4273
  readonly send: "Send";
4269
4274
  readonly cancel: "Cancel";
4275
+ readonly ok: "Ok";
4270
4276
  readonly delete: "Delete";
4271
4277
  readonly copy: "Copy";
4272
4278
  readonly paste: "Paste";
@@ -6694,7 +6700,7 @@ export declare interface F0BoxProps extends Omit<React.ComponentPropsWithoutRef<
6694
6700
  xl?: ResponsiveStyleProps;
6695
6701
  }
6696
6702
 
6697
- export declare const F0Button: WithDataTestIdReturnType_3<ForwardRefExoticComponent<Omit<ButtonInternalProps, "style" | "className" | "variant" | "pressed" | "append" | "compact" | "noAutoTooltip" | "noTitle"> & {
6703
+ export declare const F0Button: WithDataTestIdReturnType_3<ForwardRefExoticComponent<Omit<ButtonInternalProps, "style" | "className" | "block" | "variant" | "pressed" | "append" | "compact" | "noAutoTooltip" | "noTitle"> & {
6698
6704
  variant?: Exclude<ButtonInternalProps["variant"], "ai">;
6699
6705
  } & RefAttributes<HTMLAnchorElement | HTMLButtonElement>>>;
6700
6706
 
@@ -9014,30 +9020,51 @@ export declare type F0HeadingProps = Omit<TextProps, "className" | "variant" | "
9014
9020
  as?: HeadingTags;
9015
9021
  };
9016
9022
 
9017
- export declare const F0HILActionConfirmation: ({ text, confirmationText, onConfirm, cancelText, onCancel, }: F0HILActionConfirmationProps) => JSX_2.Element;
9023
+ export declare const F0HILActionConfirmation: ({ text, description, avatar, confirmationText, onConfirm, cancelText, onCancel, stackAt, }: F0HILActionConfirmationProps) => JSX_2.Element;
9018
9024
 
9019
9025
  /**
9020
- * Props for the F0HILActionConfirmation component
9026
+ * Props for the F0HILActionConfirmation component.
9027
+ *
9028
+ * Renders an inline approve/reject row built on `F0CardRow`'s confirm/reject
9029
+ * variant: the prompt as the row title, with icon-only ✓ (confirm) and ✗
9030
+ * (reject) buttons at the trailing edge.
9021
9031
  */
9022
9032
  export declare type F0HILActionConfirmationProps = {
9023
9033
  /**
9024
- * Optional descriptive text shown above the action buttons
9034
+ * The prompt shown as the row title (e.g. the action awaiting confirmation).
9035
+ * Required — a confirmation without a prompt has no meaning.
9036
+ */
9037
+ text: string;
9038
+ /**
9039
+ * Optional secondary line shown beneath the title (single line, truncated).
9040
+ */
9041
+ description?: F0CardRowProps["description"];
9042
+ /**
9043
+ * Optional avatar rendered on the left of the row. Accepts any avatar type in
9044
+ * the system (person, company, team, file, icon, emoji, …).
9045
+ */
9046
+ avatar?: F0CardRowProps["avatar"];
9047
+ /**
9048
+ * Container width at which the ✓/✗ actions drop onto their own line instead of
9049
+ * staying inline. Prevents the buttons from overlapping the prompt in narrow
9050
+ * containers. Set to `"never"` to keep them inline at every width.
9051
+ * @default "sm"
9025
9052
  */
9026
- text?: string;
9053
+ stackAt?: F0CardRowProps["stackAt"];
9027
9054
  /**
9028
- * Text displayed on the confirmation button
9055
+ * Accessible label and tooltip for the confirm (✓) button.
9029
9056
  */
9030
9057
  confirmationText: string;
9031
9058
  /**
9032
- * Callback fired when the confirmation button is clicked
9059
+ * Callback fired when the confirm button is clicked.
9033
9060
  */
9034
9061
  onConfirm: () => void;
9035
9062
  /**
9036
- * Text displayed on the cancel button
9063
+ * Accessible label and tooltip for the reject (✗) button.
9037
9064
  */
9038
9065
  cancelText: string;
9039
9066
  /**
9040
- * Callback fired when the cancel button is clicked
9067
+ * Callback fired when the reject button is clicked.
9041
9068
  */
9042
9069
  onCancel: () => void;
9043
9070
  };
@@ -12832,7 +12859,7 @@ export declare const PrivacyModeProvider: React_2.FC<{
12832
12859
  children: ReactNode;
12833
12860
  }>;
12834
12861
 
12835
- declare const privateProps: readonly ["append", "className", "pressed", "compact", "noTitle", "noAutoTooltip", "style"];
12862
+ declare const privateProps: readonly ["append", "className", "pressed", "compact", "noTitle", "noAutoTooltip", "style", "block"];
12836
12863
 
12837
12864
  declare const privateProps_2: readonly ["withBorder"];
12838
12865
 
@@ -15721,9 +15748,9 @@ declare module "gridstack" {
15721
15748
 
15722
15749
  declare module "@tiptap/core" {
15723
15750
  interface Commands<ReturnType> {
15724
- aiBlock: {
15725
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
15726
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
15751
+ enhanceHighlight: {
15752
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
15753
+ clearEnhanceHighlight: () => ReturnType;
15727
15754
  };
15728
15755
  }
15729
15756
  }
@@ -15731,9 +15758,9 @@ declare module "@tiptap/core" {
15731
15758
 
15732
15759
  declare module "@tiptap/core" {
15733
15760
  interface Commands<ReturnType> {
15734
- enhanceHighlight: {
15735
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
15736
- clearEnhanceHighlight: () => ReturnType;
15761
+ aiBlock: {
15762
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
15763
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
15737
15764
  };
15738
15765
  }
15739
15766
  }