mtrl-addons 0.2.6 → 0.2.8

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.
@@ -342,6 +342,13 @@ export interface ListAPI<T extends ListItem = ListItem> {
342
342
  clear(): void;
343
343
  /** Add items */
344
344
  addItems(items: T[], position?: "start" | "end"): void;
345
+ /**
346
+ * Add a single item to the collection
347
+ * Convenience method that wraps addItems for single item use case
348
+ * @param item - Item to add
349
+ * @param position - Where to add item: "start" (default) or "end"
350
+ */
351
+ addItem(item: T, position?: "start" | "end"): void;
345
352
  /** Remove items by indices */
346
353
  removeItems(indices: number[]): void;
347
354
  /**
@@ -575,8 +582,6 @@ export interface VListConfig<T extends ListItem = ListItem> {
575
582
  orientation?: "vertical" | "horizontal";
576
583
  animation?: boolean;
577
584
  measureItems?: boolean;
578
- /** Stop scrolling when clicking on the viewport (default: true) */
579
- stopOnClick?: boolean;
580
585
  };
581
586
  performance?: {
582
587
  recycleElements?: boolean;
@@ -9,8 +9,6 @@ interface MomentumConfig {
9
9
  minVelocity?: number;
10
10
  minDuration?: number;
11
11
  minVelocityThreshold?: number;
12
- /** Stop momentum when clicking on the viewport (default: true) */
13
- stopOnClick?: boolean;
14
12
  }
15
13
  /**
16
14
  * Adds momentum scrolling to viewport
@@ -8,8 +8,6 @@ export interface ScrollingConfig {
8
8
  sensitivity?: number;
9
9
  smoothing?: boolean;
10
10
  idleTimeout?: number;
11
- /** Stop scrolling when clicking on the viewport (default: true) */
12
- stopOnClick?: boolean;
13
11
  }
14
12
  /**
15
13
  * Scrolling feature for viewport
@@ -55,8 +55,6 @@ export interface ViewportConfig {
55
55
  orientation?: "vertical" | "horizontal";
56
56
  animation?: boolean;
57
57
  sensitivity?: number;
58
- /** Stop scrolling when clicking on the viewport (default: true) */
59
- stopOnClick?: boolean;
60
58
  };
61
59
  scrollbar?: {
62
60
  enabled?: boolean;