limbo-component 2.4.2 → 2.5.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.
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.jsx"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;4CA0tBC"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.jsx"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;;;;;;4CAguBC"}
@@ -1,4 +1,4 @@
1
- export default function Gallery({ onSelect, onCrop, onDelete, deletingId, images, loading, error, filters, onFiltersChange, filterConfig, loadingConfig, allowedActions, }: {
1
+ export default function Gallery({ onSelect, onCrop, onDelete, deletingId, images, loading, error, filters, debouncedFilters, onFiltersChange, filterConfig, loadingConfig, allowedActions, }: {
2
2
  onSelect: any;
3
3
  onCrop: any;
4
4
  onDelete: any;
@@ -12,6 +12,7 @@ export default function Gallery({ onSelect, onCrop, onDelete, deletingId, images
12
12
  dateTo: string;
13
13
  uploadedBy: string;
14
14
  };
15
+ debouncedFilters?: any;
15
16
  onFiltersChange: any;
16
17
  filterConfig?: {
17
18
  showNameFilter: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Gallery.d.ts","sourceRoot":"","sources":["../../../src/components/Gallery.jsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAmQC"}
1
+ {"version":3,"file":"Gallery.d.ts","sourceRoot":"","sources":["../../../src/components/Gallery.jsx"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA2SC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ImageCard.d.ts","sourceRoot":"","sources":["../../../src/components/ImageCard.jsx"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;4CA+hBC"}
1
+ {"version":3,"file":"ImageCard.d.ts","sourceRoot":"","sources":["../../../src/components/ImageCard.jsx"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;4CAuiBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ImageViewer.d.ts","sourceRoot":"","sources":["../../../src/components/ImageViewer.jsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qFAPG;IAAsB,GAAG,EAAjB,MAAM;IACQ,GAAG,EAAjB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,QAAQ,EAAtB,MAAM;IACU,OAAO;IACR,MAAM,EAArB,OAAO;CACjB,2CA8XA"}
1
+ {"version":3,"file":"ImageViewer.d.ts","sourceRoot":"","sources":["../../../src/components/ImageViewer.jsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qFAPG;IAAsB,GAAG,EAAjB,MAAM;IACQ,GAAG,EAAjB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,QAAQ,EAAtB,MAAM;IACU,OAAO;IACR,MAAM,EAArB,OAAO;CACjB,2CAidA"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Hook para detectar si hay una búsqueda pendiente de ejecutarse
3
+ *
4
+ * Compara los filtros actuales con los valores debounced para determinar
5
+ * si el usuario está escribiendo y el debounce aún no ha terminado.
6
+ *
7
+ * @param {Object} currentFilters - Filtros actuales (valores inmediatos)
8
+ * @param {Object} debouncedFilters - Filtros con debounce aplicado
9
+ * @param {boolean} isLoading - Si la API está cargando
10
+ * @returns {Object} - { isSearching, searchPending }
11
+ * - isSearching: true mientras se está buscando (debounce activo O cargando)
12
+ * - searchPending: true solo cuando hay cambios pendientes de aplicar
13
+ */
14
+ export default function useSearching(currentFilters: any, debouncedFilters: any, isLoading: boolean): any;
15
+ //# sourceMappingURL=useSearching.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSearching.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSearching.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,4FALW,OAAO,OA2CjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "limbo-component",
3
- "version": "2.4.2",
3
+ "version": "2.5.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Limbo - Highly configurable React image manager component for web portals",
@@ -77,4 +77,4 @@
77
77
  "typescript": "^5.9.2",
78
78
  "vite": "^7.1.2"
79
79
  }
80
- }
80
+ }