@factorialco/f0-react 4.54.0 → 4.55.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
@@ -1133,6 +1133,13 @@ declare type AlertAction = {
1133
1133
  loadingState: UpsellingButtonProps["loadingState"];
1134
1134
  nextSteps: UpsellingButtonProps["nextSteps"];
1135
1135
  closeLabel: UpsellingButtonProps["closeLabel"];
1136
+ /**
1137
+ * Whether to show the confirmation dialog after the request resolves.
1138
+ * Defaults to `true`. Set to `false` when `onRequest` only opens a modal or
1139
+ * navigates instead of creating an upselling request, so the success dialog
1140
+ * ("request sent") is not shown for an action that sent nothing.
1141
+ */
1142
+ showConfirmation?: UpsellingButtonProps["showConfirmation"];
1136
1143
  };
1137
1144
 
1138
1145
  export declare type AlertAvatarProps = VariantProps<typeof alertAvatarVariants> & {
@@ -17216,7 +17223,7 @@ declare type UpsellActionDefinitionFn = () => UpsellActionDefinition | undefined
17216
17223
 
17217
17224
  export declare const UpsellingAlert: WithDataTestIdReturnType_4<typeof _UpsellingAlert>;
17218
17225
 
17219
- declare function _UpsellingAlert({ icon, title, description, action, }: UpsellingAlertProps): JSX_2.Element;
17226
+ declare function _UpsellingAlert({ icon, title, description, action, onDismiss, }: UpsellingAlertProps): JSX_2.Element;
17220
17227
 
17221
17228
  export declare interface UpsellingAlertProps {
17222
17229
  /**
@@ -17235,6 +17242,16 @@ export declare interface UpsellingAlertProps {
17235
17242
  * The upselling action button configuration.
17236
17243
  */
17237
17244
  action: AlertAction;
17245
+ /**
17246
+ * Called when the user dismisses the alert. When provided, a close button is
17247
+ * shown just to the right of the upselling action button.
17248
+ *
17249
+ * The consumer is responsible for deciding what happens on dismiss — for
17250
+ * example, hiding the alert for a number of days and showing it again later
17251
+ * by persisting the dismissal (e.g. in a cookie or local storage) and
17252
+ * unmounting the component while it should stay hidden.
17253
+ */
17254
+ onDismiss?: () => void;
17238
17255
  }
17239
17256
 
17240
17257
  export declare const UpsellingBanner: WithDataTestIdReturnType_4<ForwardRefExoticComponent<Omit<BaseBannerProps, "children" | "primaryAction" | "secondaryAction"> & {