@makolabs/ripple 0.0.5 → 0.0.6

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.
@@ -192,7 +192,6 @@
192
192
  // Retain selected files that are still valid
193
193
  // We need to filter out any folder paths that might no longer exist
194
194
  selectedFiles = previousSelectedFiles;
195
- debugger;
196
195
  fileQueue = previousFileQueue;
197
196
  } catch (err) {
198
197
  console.error('Error fetching files:', err);
@@ -250,7 +249,6 @@
250
249
  // Update selection
251
250
  if (filesToSelect.length > 0) {
252
251
  selectedFiles = filesToSelect;
253
- debugger;
254
252
  selected = displayFiles.filter((file) => filesToSelect.includes(file.key));
255
253
  }
256
254
 
@@ -381,22 +379,22 @@
381
379
  }
382
380
 
383
381
  // Effect to update the Table component's selection state when selectedFiles changes
384
- $effect(() => {
385
- if (displayFiles.length === 0) return;
386
-
387
- // Get all files that should be selected based on our current selection state
388
- const filesToSelect = displayFiles.filter((file) => isRowSelected(file));
389
-
390
- // We need to update the Table's internal selection state without triggering additional updates
391
- // This ensures the UI is properly updated
392
- if (
393
- JSON.stringify(selected.map((f) => f.key).sort()) !==
394
- JSON.stringify(filesToSelect.map((f) => f.key).sort())
395
- ) {
396
- // Only update if the selection has actually changed
397
- selected = filesToSelect;
398
- }
399
- });
382
+ // $effect(() => {
383
+ // if (displayFiles.length === 0) return;
384
+
385
+ // // Get all files that should be selected based on our current selection state
386
+ // const filesToSelect = displayFiles.filter((file) => isRowSelected(file));
387
+
388
+ // // We need to update the Table's internal selection state without triggering additional updates
389
+ // // This ensures the UI is properly updated
390
+ // if (
391
+ // JSON.stringify(selected.map((f) => f.key).sort()) !==
392
+ // JSON.stringify(filesToSelect.map((f) => f.key).sort())
393
+ // ) {
394
+ // // Only update if the selection has actually changed
395
+ // selected = filesToSelect;
396
+ // }
397
+ // });
400
398
 
401
399
  // Track the selected items for the Table component's internal state
402
400
  let selected = $state<FileItem[]>([]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makolabs/ripple",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Simple Svelte 5 powered component library ✨",
5
5
  "repository": {
6
6
  "type": "git",