@makolabs/ripple 0.0.1-dev.83 → 0.0.1-dev.84

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.
@@ -262,6 +262,20 @@
262
262
  if (file.isFolder) {
263
263
  navigateToFolder(file.key);
264
264
  } else {
265
+ // Check if this file is allowed to be selected based on actions
266
+ const hasAllowedAction = actions.some((action: FileAction) => {
267
+ // Only check single file actions for individual file selection
268
+ if ('action' in action && typeof action.action === 'function') {
269
+ return action.isAllowed(file);
270
+ }
271
+ return false;
272
+ });
273
+
274
+ // Only allow selection if the file has at least one allowed action
275
+ if (!hasAllowedAction) {
276
+ return; // Exit early if file is not allowed to be selected
277
+ }
278
+
265
279
  // Toggle selection for files
266
280
  const isCurrentlySelected = selectedFiles.includes(file.key);
267
281
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makolabs/ripple",
3
- "version": "0.0.1-dev.83",
3
+ "version": "0.0.1-dev.84",
4
4
  "description": "Simple Svelte 5 powered component library ✨",
5
5
  "repository": {
6
6
  "type": "git",