mtrl-addons 0.6.0 → 0.7.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.
@@ -429,6 +429,13 @@ export interface ListAPI<T extends ListItem = ListItem> {
429
429
  * @returns Set of pending removal IDs
430
430
  */
431
431
  getPendingRemovals(): Set<string | number>;
432
+ /**
433
+ * Mark an item as pending removal without removing it
434
+ * Use this to prevent race conditions when the removal will happen later
435
+ * @param id - The item ID to mark as pending removal
436
+ * @param timeout - Optional timeout in ms to auto-clear (default: 10000)
437
+ */
438
+ markPendingRemoval(id: string | number, timeout?: number): void;
432
439
  /**
433
440
  * Clear a specific pending removal
434
441
  * @param id - The item ID to clear from pending removals