@factorialco/f0-react 1.221.0 → 1.223.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.
@@ -2716,6 +2716,8 @@ declare type KanbanLaneDefinition = {
2716
2716
  variant?: Variant;
2717
2717
  };
2718
2718
 
2719
+ declare type KanbanOnCreate = (laneId: string) => void | Promise<void>;
2720
+
2719
2721
  declare type KanbanOnMove<TRecord extends RecordType> = (fromLaneId: string, toLaneId: string, sourceRecord: TRecord, destinyRecord: {
2720
2722
  record: TRecord;
2721
2723
  position: "above" | "below";
@@ -2731,6 +2733,7 @@ declare type KanbanVisualizationOptions<Record extends RecordType, _Filters exte
2731
2733
  property: CardMetadataProperty;
2732
2734
  }>;
2733
2735
  onMove?: KanbanOnMove<Record>;
2736
+ onCreate?: KanbanOnCreate;
2734
2737
  };
2735
2738
 
2736
2739
  /**
@@ -3781,12 +3784,16 @@ declare type ProductUpdatesProp = {
3781
3784
  title: string;
3782
3785
  description: string;
3783
3786
  onClick: () => void;
3784
- module: ModuleId;
3785
3787
  dismissable: boolean;
3786
3788
  onClose?: () => void;
3787
3789
  trackVisibility?: (open: boolean) => void;
3788
- type?: "one-campaign" | undefined;
3789
- }>;
3790
+ } & ({
3791
+ module?: never;
3792
+ type: "one-campaign";
3793
+ } | {
3794
+ module: ModuleId;
3795
+ type?: never;
3796
+ })>;
3790
3797
  };
3791
3798
  };
3792
3799