limbo-component 3.7.11 → 3.7.12
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.
- package/dist/limbo.cjs.js +1 -1
- package/dist/limbo.cjs.map +1 -1
- package/dist/limbo.es.js +136 -136
- package/dist/limbo.es.map +1 -1
- package/dist/limbo.min.js +1 -1
- package/dist/limbo.min.js.map +1 -1
- package/dist/limbo.umd.js +1 -1
- package/dist/limbo.umd.js.map +1 -1
- package/dist/types/App.d.ts.map +1 -1
- package/dist/types/components/CropperView.d.ts.map +1 -1
- package/dist/types/components/ImageCard.d.ts.map +1 -1
- package/dist/types/components/TabPortals.d.ts.map +1 -1
- package/dist/types/core/AutoInputManager.d.ts.map +1 -1
- package/dist/types/core/LimboSelector.d.ts +31 -0
- package/dist/types/core/LimboSelector.d.ts.map +1 -0
- package/dist/types/hooks/useCropper.d.ts.map +1 -1
- package/dist/types/hooks/useImageCache.d.ts +3 -1
- package/dist/types/hooks/useImageCache.d.ts.map +1 -1
- package/dist/types/hooks/useImages.d.ts.map +1 -1
- package/dist/types/index-refactored.d.ts +2 -0
- package/dist/types/index-refactored.d.ts.map +1 -1
- package/dist/types/utils/acceptUtils.d.ts +13 -0
- package/dist/types/utils/acceptUtils.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.jsx"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.jsx"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA6kCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CropperView.d.ts","sourceRoot":"","sources":["../../../src/components/CropperView.jsx"],"names":[],"mappings":"AAWA;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"CropperView.d.ts","sourceRoot":"","sources":["../../../src/components/CropperView.jsx"],"names":[],"mappings":"AAWA;;;;;;;;;;;4CA0wGC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageCard.d.ts","sourceRoot":"","sources":["../../../src/components/ImageCard.jsx"],"names":[],"mappings":";;AAqHA;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ImageCard.d.ts","sourceRoot":"","sources":["../../../src/components/ImageCard.jsx"],"names":[],"mappings":";;AAqHA;;;;;;;;;;;;;;;;;;;;;;;4CA4mCC;kBAjuCwE,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabPortals.d.ts","sourceRoot":"","sources":["../../../src/components/TabPortals.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabPortals.d.ts","sourceRoot":"","sources":["../../../src/components/TabPortals.jsx"],"names":[],"mappings":"AA2DA;;;;;;;;;;4CAsmBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoInputManager.d.ts","sourceRoot":"","sources":["../../../src/core/AutoInputManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AutoInputManager.d.ts","sourceRoot":"","sources":["../../../src/core/AutoInputManager.js"],"names":[],"mappings":"AAQA;IAEQ,YAAkB;IAClB,yBAA0B;IAC1B,2BAAoB;IACpB,qBAAwB;IAG5B;;OAEG;IACH,qEAmDC;IALG,mBAAkC;IAClC,kBAAgC;IAMpC;;OAEG;IACH,gBAcC;IAED;;OAEG;IACH;;;;;MAOC;IAED;;OAEG;IACH,oBAWC;IAED;;OAEG;IACH,4BAOC;IAED;;OAEG;IACH,gCA6BC;IAED;;OAEG;IACH,6CA+BC;IAED;;OAEG;IACH,kDAmFC;IAED;;OAEG;IACH,mDAKC;IAEH;;OAEG;IACH,qCAUC;IAEC;;OAEG;IACH,iEA4IC;IAED;;OAEG;IACH,wDAmEC;IAED;;OAEG;IACH,uEA+BC;IAED;;OAEG;IACH;;;;;;;;;;;;;;;;;;;;;;;;;MA0CC;IAED;;;;;;;;OAQG;IACH,kEAsFC;IAED;;OAEG;IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+DC;IAED;;OAEG;IACH,yCAsFC;IAED;;OAEG;IACH,2CAWC;IAED;;OAEG;IACH,0CA4BC;IAED;;;;OAIG;IACH,6BAWC;IAED;;OAEG;IACH,sDAEC;IAED;;OAEG;IACH,iCA0HC;IAED;;;;;;;OAOG;IACH,qCAHW,MAAM,OA2DhB;IAED;;OAEG;IACH,2BAIC;IAED;;OAEG;IACH,6BAEC;IAED;;OAEG;IACH,6CAEC;IAED;;OAEG;IACH,6CAKC;IAED;;OAEG;IACH,uBAeC;IAED;;OAEG;IACH,oCAeC;CACJ"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registra el custom element `<limbo-selector>` (idempotente).
|
|
3
|
+
*
|
|
4
|
+
* @param {string} [tagName='limbo-selector'] - Nombre del tag (debe incluir guión)
|
|
5
|
+
*/
|
|
6
|
+
export function registerLimboSelector(tagName?: string): void;
|
|
7
|
+
export class LimboSelector extends HTMLElement {
|
|
8
|
+
static get observedAttributes(): string[];
|
|
9
|
+
/** @type {HTMLButtonElement|null} */
|
|
10
|
+
_btn: HTMLButtonElement | null;
|
|
11
|
+
/** @type {object|null} Instancia Limbo activa */
|
|
12
|
+
_limboInstance: object | null;
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
disconnectedCallback(): void;
|
|
15
|
+
attributeChangedCallback(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Marca el selector como "tiene archivo seleccionado".
|
|
18
|
+
* @param {string} [url] - URL del archivo (opcional, para usar como imagen inicial)
|
|
19
|
+
*/
|
|
20
|
+
markSelected(url?: string): void;
|
|
21
|
+
/** Vuelve al estado sin archivo. */
|
|
22
|
+
clearSelection(): void;
|
|
23
|
+
/** Abre el modal de Limbo programáticamente. */
|
|
24
|
+
open(): void;
|
|
25
|
+
_ensureButton(): void;
|
|
26
|
+
_syncButton(): void;
|
|
27
|
+
_open(): void;
|
|
28
|
+
_handleResult(data: any, instance: any): void;
|
|
29
|
+
_destroyLimboInstance(): void;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=LimboSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LimboSelector.d.ts","sourceRoot":"","sources":["../../../src/core/LimboSelector.js"],"names":[],"mappings":"AAiVA;;;;GAIG;AACH,gDAFW,MAAM,QAMhB;AA1PD;IAoBE,0CAaC;IA9BC,qCAAqC;IACrC,MADW,iBAAiB,GAAC,IAAI,CACjB;IAChB,iDAAiD;IACjD,gBADW,MAAM,GAAC,IAAI,CACI;IAK5B,0BAGC;IAED,6BAEC;IAiBD,iCAGC;IAID;;;OAGG;IACH,mBAFW,MAAM,QAMhB;IAED,oCAAoC;IACpC,uBAIC;IAED,gDAAgD;IAChD,aAEC;IAID,sBAYC;IAED,oBAmDC;IAED,cAkEC;IAED,8CA8BC;IAED,8BAKC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCropper.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCropper.js"],"names":[],"mappings":"AAOO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useCropper.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCropper.js"],"names":[],"mappings":"AAOO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsKN"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export function preloadImage(url: string
|
|
1
|
+
export function preloadImage(url: string, { bypassHttpCache }?: {
|
|
2
|
+
bypassHttpCache?: boolean;
|
|
3
|
+
}): Promise<string>;
|
|
2
4
|
export function getCachedUrl(originalUrl: string): string;
|
|
3
5
|
export function isImageCached(url: string): boolean;
|
|
4
6
|
export function preloadImages(urls: string[], concurrency?: number): Promise<Map<string, string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useImageCache.d.ts","sourceRoot":"","sources":["../../../src/hooks/useImageCache.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useImageCache.d.ts","sourceRoot":"","sources":["../../../src/hooks/useImageCache.js"],"names":[],"mappings":"AAiCO,kCAPI,MAAM,wBAEd;IAAuB,eAAe,GAA9B,OAAO;CAGf,GAAU,OAAO,CAAC,MAAM,CAAC,CAmE3B;AAOM,0CAHI,MAAM,GACJ,MAAM,CAQlB;AAOM,mCAHI,MAAM,GACJ,OAAO,CAKnB;AAQM,oCAJI,MAAM,EAAE,gBACR,MAAM,GACJ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAsCxC;AAMM,oCAFI,MAAM,QAchB;AAKM,wCAWN;AAKM,4CAkBN;AAMM,sCAFM,MAAM,CAoBlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useImages.d.ts","sourceRoot":"","sources":["../../../src/hooks/useImages.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useImages.d.ts","sourceRoot":"","sources":["../../../src/hooks/useImages.js"],"names":[],"mappings":"AAyDA;;;;;;;;EAsIC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { getButtonLabel } from "./utils/acceptUtils.js";
|
|
1
2
|
export default Limbo;
|
|
2
3
|
/**
|
|
3
4
|
* 🚀 LIMBO IMAGE MANAGER - VERSIÓN REFACTORIZADA
|
|
@@ -7,4 +8,5 @@ export default Limbo;
|
|
|
7
8
|
declare const Limbo: LimboCore;
|
|
8
9
|
import { LimboCore } from "./core/LimboCore.js";
|
|
9
10
|
export { extractImageUrl, parseImageData, resolveUrl, isValidImageUrl, decodeHtmlEntities, prepareImageFieldsForPreview, LIMBO_BASE_URL } from "./utils/helpers.js";
|
|
11
|
+
export { LimboSelector, registerLimboSelector } from "./core/LimboSelector.js";
|
|
10
12
|
//# sourceMappingURL=index-refactored.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-refactored.d.ts","sourceRoot":"","sources":["../../src/index-refactored.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index-refactored.d.ts","sourceRoot":"","sources":["../../src/index-refactored.jsx"],"names":[],"mappings":";;AAmBA;;;;GAIG;AAGH,+BAA8B;0BAzBJ,qBAAqB"}
|
|
@@ -27,6 +27,19 @@ export function getAcceptLabel(resolved: object): string;
|
|
|
27
27
|
* @returns {string[]|null} Array of categories, or null for all
|
|
28
28
|
*/
|
|
29
29
|
export function getAllowedCategories(resolved: object): string[] | null;
|
|
30
|
+
/**
|
|
31
|
+
* Obtiene el texto del botón según el tipo de contenido permitido.
|
|
32
|
+
*
|
|
33
|
+
* Reglas:
|
|
34
|
+
* - Solo imágenes (image/* o extensiones de imagen): "Seleccionar imagen" / "Cambiar imagen"
|
|
35
|
+
* - Solo vídeos (video/* o extensiones de vídeo): "Seleccionar vídeo" / "Cambiar vídeo"
|
|
36
|
+
* - Cualquier otro caso (mixto, documentos, null): "Seleccionar archivo"/ "Cambiar archivo"
|
|
37
|
+
*
|
|
38
|
+
* @param {string|null} accept - Filtro accept (sintaxis HTML input accept), o null para todo
|
|
39
|
+
* @param {boolean} hasFile - true si ya hay un archivo seleccionado
|
|
40
|
+
* @returns {string} Texto del botón
|
|
41
|
+
*/
|
|
42
|
+
export function getButtonLabel(accept: string | null, hasFile?: boolean): string;
|
|
30
43
|
export namespace EXT_TO_MIME {
|
|
31
44
|
let jpg: string[];
|
|
32
45
|
let jpeg: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acceptUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/acceptUtils.js"],"names":[],"mappings":"AAmIA;;;;;GAKG;AACH,sCAHW,MAAM,GAAC,MAAM,EAAE,GAAC,IAAI,GAClB,MAAM,CA0DlB;AAED;;;;;;GAMG;AACH,wCAJW,MAAM,YACN,MAAM,GACJ,OAAO,CAenB;AAED;;;;;GAKG;AACH,yCAHW,MAAM,GACJ,MAAM,CA6BlB;AAED;;;;;GAKG;AACH,+CAHW,MAAM,GACJ,MAAM,EAAE,GAAC,IAAI,CA2BzB"}
|
|
1
|
+
{"version":3,"file":"acceptUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/acceptUtils.js"],"names":[],"mappings":"AAmIA;;;;;GAKG;AACH,sCAHW,MAAM,GAAC,MAAM,EAAE,GAAC,IAAI,GAClB,MAAM,CA0DlB;AAED;;;;;;GAMG;AACH,wCAJW,MAAM,YACN,MAAM,GACJ,OAAO,CAenB;AAED;;;;;GAKG;AACH,yCAHW,MAAM,GACJ,MAAM,CA6BlB;AAED;;;;;GAKG;AACH,+CAHW,MAAM,GACJ,MAAM,EAAE,GAAC,IAAI,CA2BzB;AAED;;;;;;;;;;;GAWG;AACH,uCAJW,MAAM,GAAC,IAAI,YACX,OAAO,GACL,MAAM,CAsBlB"}
|