@factorialco/f0-react 1.198.0 → 1.199.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.
@@ -2563,6 +2563,11 @@ declare type KanbanLaneDefinition = {
2563
2563
  variant?: Variant;
2564
2564
  };
2565
2565
 
2566
+ declare type KanbanOnMove<TRecord extends RecordType> = (fromLaneId: string, toLaneId: string, sourceRecord: TRecord, destinyRecord: {
2567
+ record: TRecord;
2568
+ position: "above" | "below";
2569
+ } | null) => Promise<TRecord>;
2570
+
2566
2571
  declare type KanbanVisualizationOptions<Record extends RecordType, _Filters extends FiltersDefinition, _Sortings extends SortingsDefinition> = {
2567
2572
  lanes: ReadonlyArray<KanbanLaneDefinition>;
2568
2573
  title?: (record: Record) => string;
@@ -2572,10 +2577,7 @@ declare type KanbanVisualizationOptions<Record extends RecordType, _Filters exte
2572
2577
  icon: IconType;
2573
2578
  property: CardMetadataProperty;
2574
2579
  }>;
2575
- onMove?: (fromLaneId: string, toLaneId: string, sourceRecord: Record, destinyRecord: {
2576
- record: Record;
2577
- position: "above" | "below";
2578
- }) => Promise<void>;
2580
+ onMove?: KanbanOnMove<Record>;
2579
2581
  };
2580
2582
 
2581
2583
  /**