mtrl-addons 0.3.0 → 0.3.1

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.
@@ -17,6 +17,10 @@ export interface CollectionConfig {
17
17
  selectId?: string | number;
18
18
  autoLoad?: boolean;
19
19
  autoSelectFirst?: boolean;
20
+ /** Maximum items to keep in memory (default: 1000) */
21
+ maxCachedItems?: number;
22
+ /** Extra items to keep around visible range during eviction (default: 150) */
23
+ evictionBuffer?: number;
20
24
  }
21
25
  export interface CollectionComponent {
22
26
  collection: {
@@ -78,6 +78,12 @@ export interface ViewportConfig {
78
78
  bufferSize?: number;
79
79
  renderDebounce?: number;
80
80
  };
81
+ cache?: {
82
+ /** Maximum items to keep in memory (default: 1000) */
83
+ maxItems?: number;
84
+ /** Extra items to keep around visible range during eviction (default: 150) */
85
+ evictionBuffer?: number;
86
+ };
81
87
  placeholders?: {
82
88
  enabled?: boolean;
83
89
  template?: (index: number) => string | HTMLElement;