limbo-component 3.6.4 → 3.7.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.
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.jsx"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAohCC"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.jsx"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA4iCC"}
@@ -1,4 +1,4 @@
1
- export default function Gallery({ onSelect, onCrop, onDelete, deletingId, images, loading, error, filters, debouncedFilters, onFiltersChange, filterConfig, loadingConfig, allowedActions, allowedCategories, resolvedAccept, folderConfig, onFolderChange, }: {
1
+ export default function Gallery({ onSelect, onCrop, onDelete, deletingId, images, loading, error, filters, debouncedFilters, onFiltersChange, filterConfig, loadingConfig, allowedActions, allowedCategories, resolvedAccept, folderConfig, onFolderChange, onRename, }: {
2
2
  onSelect: any;
3
3
  onCrop: any;
4
4
  onDelete: any;
@@ -39,5 +39,6 @@ export default function Gallery({ onSelect, onCrop, onDelete, deletingId, images
39
39
  resolvedAccept?: any;
40
40
  folderConfig?: any;
41
41
  onFolderChange?: any;
42
+ onRename?: any;
42
43
  }): import("react/jsx-runtime").JSX.Element;
43
44
  //# sourceMappingURL=Gallery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Gallery.d.ts","sourceRoot":"","sources":["../../../src/components/Gallery.jsx"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA+aC"}
1
+ {"version":3,"file":"Gallery.d.ts","sourceRoot":"","sources":["../../../src/components/Gallery.jsx"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAibC"}
@@ -1,4 +1,6 @@
1
- export default function ImageCard({ image, onDelete, onCrop, onSelect, onFolderChange, thumbnailSize, isDeleting, showFolderInfo, allowMoveFolder, allowedFolderSlugs, excludedFolderSlugs, allowCreateFolder, allowedActions, }: {
1
+ declare const _default: React.MemoExoticComponent<typeof ImageCard>;
2
+ export default _default;
3
+ declare function ImageCard({ image, onDelete, onCrop, onSelect, onFolderChange, thumbnailSize, isDeleting, showFolderInfo, allowMoveFolder, allowedFolderSlugs, excludedFolderSlugs, allowCreateFolder, allowedActions, onRename, }: {
2
4
  image: any;
3
5
  onDelete: any;
4
6
  onCrop: any;
@@ -18,6 +20,9 @@ export default function ImageCard({ image, onDelete, onCrop, onSelect, onFolderC
18
20
  delete: boolean;
19
21
  crop: boolean;
20
22
  variants: boolean;
23
+ rename: boolean;
21
24
  };
25
+ onRename?: any;
22
26
  }): import("react/jsx-runtime").JSX.Element;
27
+ import React from "react";
23
28
  //# sourceMappingURL=ImageCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImageCard.d.ts","sourceRoot":"","sources":["../../../src/components/ImageCard.jsx"],"names":[],"mappings":"AAyGA;;;;;;;;;;;;;;;;;;;;;4CAw7BC"}
1
+ {"version":3,"file":"ImageCard.d.ts","sourceRoot":"","sources":["../../../src/components/ImageCard.jsx"],"names":[],"mappings":";;AA0GA;;;;;;;;;;;;;;;;;;;;;;;4CAijCC;kBA3pCwE,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"ImagePreview.d.ts","sourceRoot":"","sources":["../../../src/components/ImagePreview.jsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AACH,8JARG;IAAoB,KAAK,EAAjB,IAAI;IACY,SAAS;IACT,OAAO;IACP,UAAU;IACV,QAAQ;IACT,SAAS,EAAxB,OAAO;IACQ,QAAQ,EAAvB,OAAO;CACjB,2CAyRA"}
1
+ {"version":3,"file":"ImagePreview.d.ts","sourceRoot":"","sources":["../../../src/components/ImagePreview.jsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,8JARG;IAAoB,KAAK,EAAjB,IAAI;IACY,SAAS;IACT,OAAO;IACP,UAAU;IACV,QAAQ;IACT,SAAS,EAAxB,OAAO;IACQ,QAAQ,EAAvB,OAAO;CACjB,2CAkSA"}
@@ -74,6 +74,20 @@ export function extractImageUrl(value: string, options?: {
74
74
  export function parseImageData(value: string, options?: {
75
75
  isProd?: boolean;
76
76
  }): any;
77
+ /**
78
+ * Valida un nombre de archivo contra patrones WAF y de seguridad.
79
+ *
80
+ * @param {string} filename - Nombre de archivo a validar
81
+ * @returns {{ valid: boolean, error?: string }}
82
+ *
83
+ * @example
84
+ * validateFilenameForWAF('php-exploit.jpg') // { valid: false, error: 'El nombre no puede empezar por "php"' }
85
+ * validateFilenameForWAF('foto-bonita.jpg') // { valid: true }
86
+ */
87
+ export function validateFilenameForWAF(filename: string): {
88
+ valid: boolean;
89
+ error?: string;
90
+ };
77
91
  /**
78
92
  * Preprocesa campos de imagen en un objeto para enviar a servidor de renderizado
79
93
  * Extrae las URLs y resuelve URLs relativas
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;GAUG;AACH,gCARW,MAAM,WACN,OAAO,GACL,MAAM,CAgBlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACJ,MAAM,CAYlB;AAED;;;;;;GAMG;AACH,qCAHW,MAAM,GACJ,OAAO,CAMnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,uCAnBW,MAAM,YAEd;IAAsC,MAAM,GAApC,MAAM,GAAG,UAAU;IACD,MAAM,GAAxB,OAAO;CACf,GAAU,MAAM,CA8ElB;AAED;;;;;;;;;;;;;;GAcG;AACH,sCAXW,MAAM,YAEd;IAA0B,MAAM,GAAxB,OAAO;CACf,OA0CF;AAED;;;;;;;;GAQG;AACH,iEAHG;IAA0B,MAAM,GAAxB,OAAO;CACf,OAsBF"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;GAUG;AACH,gCARW,MAAM,WACN,OAAO,GACL,MAAM,CAgBlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACJ,MAAM,CAYlB;AAED;;;;;;GAMG;AACH,qCAHW,MAAM,GACJ,OAAO,CAMnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,uCAnBW,MAAM,YAEd;IAAsC,MAAM,GAApC,MAAM,GAAG,UAAU;IACD,MAAM,GAAxB,OAAO;CACf,GAAU,MAAM,CA8ElB;AAED;;;;;;;;;;;;;;GAcG;AACH,sCAXW,MAAM,YAEd;IAA0B,MAAM,GAAxB,OAAO;CACf,OA0CF;AAeD;;;;;;;;;GASG;AACH,iDAPW,MAAM,GACJ;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CA2B9C;AAED;;;;;;;;GAQG;AACH,iEAHG;IAA0B,MAAM,GAAxB,OAAO;CACf,OAsBF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "limbo-component",
3
- "version": "3.6.4",
3
+ "version": "3.7.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Limbo - Highly configurable React image manager component for web portals",