limbo-component 2.1.0 → 2.2.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.
- package/CHANGELOG.md +0 -1
- package/README.md +205 -75
- package/dist/limbo.cjs.js +1 -12
- package/dist/limbo.cjs.map +1 -1
- package/dist/limbo.css +1 -1
- package/dist/limbo.es.js +506 -26797
- package/dist/limbo.es.map +1 -1
- package/dist/limbo.min.js +1 -3
- package/dist/limbo.min.js.map +1 -1
- package/dist/limbo.umd.js +1 -3
- package/dist/limbo.umd.js.map +1 -1
- package/dist/types/App.d.ts +2 -1
- package/dist/types/App.d.ts.map +1 -1
- package/dist/types/components/CropperView.d.ts +2 -1
- package/dist/types/components/CropperView.d.ts.map +1 -1
- package/dist/types/components/Gallery.d.ts.map +1 -1
- package/dist/types/components/ImageCard.d.ts.map +1 -1
- package/dist/types/components/ImagePreview.d.ts.map +1 -1
- package/dist/types/components/ImageVariantsModal.d.ts.map +1 -1
- package/dist/types/components/ImageViewer.d.ts +29 -0
- package/dist/types/components/ImageViewer.d.ts.map +1 -0
- package/dist/types/components/TabAI.d.ts.map +1 -1
- package/dist/types/components/TabPortals.d.ts.map +1 -1
- package/dist/types/core/AutoInputManager.d.ts +13 -0
- package/dist/types/core/AutoInputManager.d.ts.map +1 -1
- package/dist/types/core/LimboCore.d.ts +7 -0
- package/dist/types/core/LimboCore.d.ts.map +1 -1
- package/dist/types/core/ModalManager.d.ts.map +1 -1
- package/dist/types/hooks/useAiServices.d.ts.map +1 -1
- package/dist/types/hooks/useExternalImages.d.ts +3 -1
- package/dist/types/hooks/useExternalImages.d.ts.map +1 -1
- package/dist/types/hooks/useIsAllowedAll.d.ts.map +1 -1
- package/dist/types/services/portalsApi.d.ts +23 -1
- package/dist/types/services/portalsApi.d.ts.map +1 -1
- package/package.json +6 -13
package/dist/types/App.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function App({ apiKey, prod, url, features, modeUI, ui, callbacks, instanceId, itemsPerPage, _externalImage, }: {
|
|
1
|
+
export default function App({ apiKey, prod, url, features, modeUI, ui, callbacks, instanceId, itemsPerPage, _externalImage, cropperConfig, }: {
|
|
2
2
|
apiKey: any;
|
|
3
3
|
prod?: boolean;
|
|
4
4
|
url?: boolean;
|
|
@@ -16,5 +16,6 @@ export default function App({ apiKey, prod, url, features, modeUI, ui, callbacks
|
|
|
16
16
|
instanceId?: any;
|
|
17
17
|
itemsPerPage?: number;
|
|
18
18
|
_externalImage?: any;
|
|
19
|
+
cropperConfig?: any;
|
|
19
20
|
}): import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
//# sourceMappingURL=App.d.ts.map
|
package/dist/types/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.jsx"],"names":[],"mappings":"AAeA
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.jsx"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;4CAysBC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function CropperView({ image, onSave, onCancel, onDelete, onError, deleting, onVariantCreated, onUpload, uploading, }: {
|
|
1
|
+
export default function CropperView({ image, onSave, onCancel, onDelete, onError, deleting, onVariantCreated, onUpload, uploading, cropperConfig, }: {
|
|
2
2
|
image: any;
|
|
3
3
|
onSave: any;
|
|
4
4
|
onCancel: any;
|
|
@@ -8,5 +8,6 @@ export default function CropperView({ image, onSave, onCancel, onDelete, onError
|
|
|
8
8
|
onVariantCreated?: any;
|
|
9
9
|
onUpload?: any;
|
|
10
10
|
uploading?: boolean;
|
|
11
|
+
cropperConfig?: any;
|
|
11
12
|
}): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
//# sourceMappingURL=CropperView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CropperView.d.ts","sourceRoot":"","sources":["../../../src/components/CropperView.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CropperView.d.ts","sourceRoot":"","sources":["../../../src/components/CropperView.jsx"],"names":[],"mappings":"AASA;;;;;;;;;;;4CAi7FC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gallery.d.ts","sourceRoot":"","sources":["../../../src/components/Gallery.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Gallery.d.ts","sourceRoot":"","sources":["../../../src/components/Gallery.jsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAkPC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageCard.d.ts","sourceRoot":"","sources":["../../../src/components/ImageCard.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageCard.d.ts","sourceRoot":"","sources":["../../../src/components/ImageCard.jsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;4CAicC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImagePreview.d.ts","sourceRoot":"","sources":["../../../src/components/ImagePreview.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImagePreview.d.ts","sourceRoot":"","sources":["../../../src/components/ImagePreview.jsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,gHARG;IAAoB,KAAK,EAAjB,IAAI;IACY,SAAS;IACT,OAAO;IACP,UAAU;IACV,QAAQ;IACT,SAAS,EAAxB,OAAO;IACQ,QAAQ,EAAvB,OAAO;CACjB,2CAqNA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageVariantsModal.d.ts","sourceRoot":"","sources":["../../../src/components/ImageVariantsModal.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageVariantsModal.d.ts","sourceRoot":"","sources":["../../../src/components/ImageVariantsModal.jsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;4CAwlBC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ImageViewer Component - Lightbox con controles de zoom
|
|
3
|
+
*
|
|
4
|
+
* Features:
|
|
5
|
+
* - Zoom con botones (+/-)
|
|
6
|
+
* - Zoom con Ctrl + rueda del ratón
|
|
7
|
+
* - Zoom con Ctrl + / Ctrl -
|
|
8
|
+
* - Arrastrar imagen cuando está ampliada
|
|
9
|
+
* - Reset zoom con doble click
|
|
10
|
+
* - ESC para cerrar
|
|
11
|
+
* - Accesibilidad completa
|
|
12
|
+
*
|
|
13
|
+
* @param {Object} props
|
|
14
|
+
* @param {string} props.src - URL de la imagen
|
|
15
|
+
* @param {string} props.alt - Texto alternativo
|
|
16
|
+
* @param {string} props.title - Título de la imagen (opcional)
|
|
17
|
+
* @param {string} props.subtitle - Subtítulo (dimensiones, tamaño, etc.)
|
|
18
|
+
* @param {Function} props.onClose - Callback para cerrar el visor
|
|
19
|
+
* @param {boolean} props.isOpen - Si el visor está abierto
|
|
20
|
+
*/
|
|
21
|
+
export default function ImageViewer({ src, alt, title, subtitle, onClose, isOpen, }: {
|
|
22
|
+
src: string;
|
|
23
|
+
alt: string;
|
|
24
|
+
title: string;
|
|
25
|
+
subtitle: string;
|
|
26
|
+
onClose: Function;
|
|
27
|
+
isOpen: boolean;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=ImageViewer.d.ts.map
|
|
@@ -0,0 +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,2CAyWA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabAI.d.ts","sourceRoot":"","sources":["../../../src/components/TabAI.jsx"],"names":[],"mappings":"AAOA;;;;
|
|
1
|
+
{"version":3,"file":"TabAI.d.ts","sourceRoot":"","sources":["../../../src/components/TabAI.jsx"],"names":[],"mappings":"AAOA;;;;4CA6hBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabPortals.d.ts","sourceRoot":"","sources":["../../../src/components/TabPortals.jsx"],"names":[],"mappings":"AAqCA;;;;
|
|
1
|
+
{"version":3,"file":"TabPortals.d.ts","sourceRoot":"","sources":["../../../src/components/TabPortals.jsx"],"names":[],"mappings":"AAqCA;;;;4CA0qBC"}
|
|
@@ -93,6 +93,12 @@ export class AutoInputManager {
|
|
|
93
93
|
};
|
|
94
94
|
/**
|
|
95
95
|
* Formatear datos de imagen según configuración
|
|
96
|
+
*
|
|
97
|
+
* Formato estándar de imageData (desde LimboCore):
|
|
98
|
+
* {
|
|
99
|
+
* original: { url, width, height, assetId },
|
|
100
|
+
* images: [{ url, width, height, name }, ...] // Solo si hay recortes
|
|
101
|
+
* }
|
|
96
102
|
*/
|
|
97
103
|
_formatImageData(imageData: any, inputConfig?: any): Promise<any>;
|
|
98
104
|
/**
|
|
@@ -126,7 +132,9 @@ export class AutoInputManager {
|
|
|
126
132
|
allowMultiple: any;
|
|
127
133
|
closeOnSelect: boolean;
|
|
128
134
|
autoAssign: any;
|
|
135
|
+
allowSelectNew: boolean;
|
|
129
136
|
};
|
|
137
|
+
initialImageUrl: any;
|
|
130
138
|
returnConfig: {
|
|
131
139
|
format: any;
|
|
132
140
|
quality: any;
|
|
@@ -192,6 +200,11 @@ export class AutoInputManager {
|
|
|
192
200
|
inputId: any;
|
|
193
201
|
inputName: any;
|
|
194
202
|
inputType: any;
|
|
203
|
+
mandatoryCrops: any;
|
|
204
|
+
allowAdditionalCrops: boolean;
|
|
205
|
+
maxCrops: number;
|
|
206
|
+
allowSelectNew: boolean;
|
|
207
|
+
initialImageUrl: any;
|
|
195
208
|
};
|
|
196
209
|
/**
|
|
197
210
|
* Generar ID único para input sin ID
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoInputManager.d.ts","sourceRoot":"","sources":["../../../src/core/AutoInputManager.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;IAEQ,YAAkB;IAClB,yBAA0B;IAC1B,2BAAoB;IACpB,qBAAwB;IAG5B;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"AutoInputManager.d.ts","sourceRoot":"","sources":["../../../src/core/AutoInputManager.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;IAEQ,YAAkB;IAClB,yBAA0B;IAC1B,2BAAoB;IACpB,qBAAwB;IAG5B;;OAEG;IACH,qEA+CC;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,6CA6BC;IAED;;OAEG;IACH,kDAmFC;IAED;;OAEG;IACH,mDAKC;IAEH;;OAEG;IACH,qCAUC;IAEC;;OAEG;IACH,iEA8EC;IAED;;OAEG;IACH,8DA+BC;IAED;;OAEG;IACH;;;;;;;;;;;;;;;;;;;;;;;;;MA0CC;IAED;;;;;;;;OAQG;IACH,kEA8CC;IAED;;OAEG;IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0DC;IAED;;OAEG;IACH,yCAkFC;IAED;;OAEG;IACH,2CAWC;IAED;;OAEG;IACH,0CA4BC;IAED;;OAEG;IACH,6BAEC;IAED;;OAEG;IACH,sDAEC;IAED;;OAEG;IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8GC;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"}
|
|
@@ -86,6 +86,13 @@ export class LimboCore {
|
|
|
86
86
|
config: any;
|
|
87
87
|
callback: any;
|
|
88
88
|
}): void;
|
|
89
|
+
/**
|
|
90
|
+
* 🆕 Extraer asset ID de una URL de Limbo
|
|
91
|
+
* Las URLs de Limbo tienen formato: /files/{portal_id}/{year}/{month}/{day}/{asset_id}/...
|
|
92
|
+
* @param {string} url - URL de la imagen
|
|
93
|
+
* @returns {string|null} - Asset ID si se encuentra, null si no
|
|
94
|
+
*/
|
|
95
|
+
_extractAssetIdFromUrl(url: string): string | null;
|
|
89
96
|
/**
|
|
90
97
|
* 🎨 Abrir galería de imágenes en modal
|
|
91
98
|
* Caso de uso: Selector rápido de imágenes existentes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LimboCore.d.ts","sourceRoot":"","sources":["../../../src/core/LimboCore.js"],"names":[],"mappings":"AASA;;;GAGG;AACH;IAEI,sBAAiC;IACjC,2BAAsC;IACtC,6BAAwC;IACxC,qBAAgC;IAChC,qBAAgC;IAChC,oBAA+B;IAC/B,4FAAoD;IAMtD;;OAEG;IACH,uCAiBC;IAED;;OAEG;IACH,2BAGC;IAED;;OAEG;IACH,iEAGC;IAED;;OAEG;IACH,oDAEC;IAED;;OAEG;IACH,iCAaC;IAED;;OAEG;IACH;;;;;MAEC;IAED;;OAEG;IACH;;;;MA0CC;IAED;;OAEG;IACH,oCAWC;IAED;;OAEG;IACH,qCAmBC;IAED;;OAEG;IACH,+DAGC;IAED;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH,gBAKC;IAED;;;;;;;MASC;IAED;;OAEG;IACH,gCAKC;IAED;;OAEG;IACH;;;
|
|
1
|
+
{"version":3,"file":"LimboCore.d.ts","sourceRoot":"","sources":["../../../src/core/LimboCore.js"],"names":[],"mappings":"AASA;;;GAGG;AACH;IAEI,sBAAiC;IACjC,2BAAsC;IACtC,6BAAwC;IACxC,qBAAgC;IAChC,qBAAgC;IAChC,oBAA+B;IAC/B,4FAAoD;IAMtD;;OAEG;IACH,uCAiBC;IAED;;OAEG;IACH,2BAGC;IAED;;OAEG;IACH,iEAGC;IAED;;OAEG;IACH,oDAEC;IAED;;OAEG;IACH,iCAaC;IAED;;OAEG;IACH;;;;;MAEC;IAED;;OAEG;IACH;;;;MA0CC;IAED;;OAEG;IACH,oCAWC;IAED;;OAEG;IACH,qCAmBC;IAED;;OAEG;IACH,+DAGC;IAED;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH,gBAKC;IAED;;;;;;;MASC;IAED;;OAEG;IACH,gCAKC;IAED;;OAEG;IACH;;;aA4IC;IAED;;;;;OAKG;IACH,4BAHW,MAAM,GACJ,MAAM,GAAC,IAAI,CAuBvB;IAMD;;;;;;;;;;;;;OAaG;IACH,sBATG;QAA0B,QAAQ;QACV,OAAO;KAC/B,OA8BF;IAED;;;;;;;;;;;;;;OAcG;IACH,uBAVG;QAA0B,QAAQ;QACT,iBAAiB;KAC1C,OAmCF;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,wCAfG;QAAuB,cAAc;QACX,UAAU;QACV,WAAW;KACrC,OAkEF;IAED;;;;;;;;;;;;OAYG;IACH,+BATW,SAAO,WAAW,sBAqB5B;IAED;;;;;;;;;;;;OAYG;IACH,gCATW,SAAO,WAAW,sBAoB5B;IAED;;;;;;;;;;;;;;;OAeG;IACH,mCAZW,SAAO,WAAW,wCAmD5B;IAED;;;;;;;;;;;;;OAaG;IACH,8BAVW,SAAO,WAAW,sBAwB5B;CACF;8BAnsB6B,oBAAoB;gCAClB,sBAAsB;iCACrB,uBAAuB;6BAC3B,mBAAmB;6BACnB,mBAAmB;6BACnB,0BAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalManager.d.ts","sourceRoot":"","sources":["../../../src/core/ModalManager.js"],"names":[],"mappings":"AACA;;;GAGG;AACH;IAEI,uBAA6B;IAC7B,mBAAuB;IACvB,2BAOY;IACZ,qBAAwB;IAK1B;;OAEG;IACH,gCAIC;IAED;;OAEG;IACH,kCAOC;IAED;;OAEG;IACH,uBAGC;IAED;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH;;;MAKC;IAED;;OAEG;IACH,2BAEC;IAED;;OAEG;IACH,8BAEC;IAED;;OAEG;IACH,yBAEC;IAED;;OAEG;IACH,+BAEC;IAED;;OAEG;IACH,uCAcC;IAED;;OAEG;IACH,6CAoBC;IAED;;OAEG;IACH,6BAMC;IAHC,uCAA+D;IAKjE;;OAEG;IACH,gBASC;CACF;AAED;;;GAGG;AACH;IACE,gDAuBC;IAtBC,QAAY;IACZ,YAaC;IACD,aAAsB;IACtB,wBAAmB;IACnB,yBAAoB;IACpB,gBAAmB;IACnB,uBAAyB;IAK3B;;OAEG;IACH,gBAIC;IAED;;OAEG;IACH,wBAuBC;IAED;;OAEG;IACH;;KAEC;IACD,
|
|
1
|
+
{"version":3,"file":"ModalManager.d.ts","sourceRoot":"","sources":["../../../src/core/ModalManager.js"],"names":[],"mappings":"AACA;;;GAGG;AACH;IAEI,uBAA6B;IAC7B,mBAAuB;IACvB,2BAOY;IACZ,qBAAwB;IAK1B;;OAEG;IACH,gCAIC;IAED;;OAEG;IACH,kCAOC;IAED;;OAEG;IACH,uBAGC;IAED;;OAEG;IACH,sBAEC;IAED;;OAEG;IACH;;;MAKC;IAED;;OAEG;IACH,2BAEC;IAED;;OAEG;IACH,8BAEC;IAED;;OAEG;IACH,yBAEC;IAED;;OAEG;IACH,+BAEC;IAED;;OAEG;IACH,uCAcC;IAED;;OAEG;IACH,6CAoBC;IAED;;OAEG;IACH,6BAMC;IAHC,uCAA+D;IAKjE;;OAEG;IACH,gBASC;CACF;AAED;;;GAGG;AACH;IACE,gDAuBC;IAtBC,QAAY;IACZ,YAaC;IACD,aAAsB;IACtB,wBAAmB;IACnB,yBAAoB;IACpB,gBAAmB;IACnB,uBAAyB;IAK3B;;OAEG;IACH,gBAIC;IAED;;OAEG;IACH,wBAuBC;IAED;;OAEG;IACH;;KAEC;IACD,qBA2EC;IAED;;OAEG;IACH,sBA6EC;IAED;;OAEG;IACH,oBA0BC;IAED;;OAEG;IACH,sBAGC;IADC,8BAAyD;IAG3D;;OAEG;IACH,aAkEC;IAED;;OAEG;IACH,cA+CC;IAED;;OAEG;IACH,gBAQC;IAED;;OAEG;IACH,4BAEC;IAED;;OAEG;IACH,8BAEC;IAED;;OAEG;IACH,aAEC;IAED,oBAEC;IAED,iBAEC;IAED;;OAEG;IACH,iBAiBC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAiServices.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAiServices.js"],"names":[],"mappings":"AAMA;;;;;
|
|
1
|
+
{"version":3,"file":"useAiServices.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAiServices.js"],"names":[],"mappings":"AAMA;;;;;EA6DC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
export default function useExternalImages(
|
|
1
|
+
export default function useExternalImages(prod?: boolean): {
|
|
2
2
|
search: (params: any) => Promise<{
|
|
3
3
|
success: any;
|
|
4
4
|
data: any;
|
|
5
5
|
images: any[];
|
|
6
|
+
pagination: any;
|
|
6
7
|
} | {
|
|
7
8
|
success: boolean;
|
|
8
9
|
images: any[];
|
|
9
10
|
data?: undefined;
|
|
11
|
+
pagination?: undefined;
|
|
10
12
|
}>;
|
|
11
13
|
loading: boolean;
|
|
12
14
|
error: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExternalImages.d.ts","sourceRoot":"","sources":["../../../src/hooks/useExternalImages.js"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"useExternalImages.d.ts","sourceRoot":"","sources":["../../../src/hooks/useExternalImages.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;EAqEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsAllowedAll.d.ts","sourceRoot":"","sources":["../../../src/hooks/useIsAllowedAll.js"],"names":[],"mappings":"AAOA;;;;;
|
|
1
|
+
{"version":3,"file":"useIsAllowedAll.d.ts","sourceRoot":"","sources":["../../../src/hooks/useIsAllowedAll.js"],"names":[],"mappings":"AAOA;;;;;EAqDC"}
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Obtiene los portales externos disponibles (NUEVO SISTEMA)
|
|
3
|
+
* Endpoint: GET /api/external-portals
|
|
4
|
+
*/
|
|
1
5
|
export function getExternalImageSources(prod?: boolean): Promise<any>;
|
|
2
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Busca artículos en portales externos con imágenes (NUEVO SISTEMA)
|
|
8
|
+
* Endpoint: POST /api/external-portals/articles
|
|
9
|
+
*
|
|
10
|
+
* @param {Object} params - Parámetros de búsqueda
|
|
11
|
+
* @param {string[]} params.portal_ids - IDs de portales a buscar
|
|
12
|
+
* @param {string} params.search - Término de búsqueda (opcional)
|
|
13
|
+
* @param {boolean} params.has_image - Filtrar solo artículos con imagen (default: true)
|
|
14
|
+
* @param {number} params.page - Página actual
|
|
15
|
+
* @param {number} params.limit - Límite de resultados por página
|
|
16
|
+
* @param {boolean} prod - Si es producción o no
|
|
17
|
+
*/
|
|
18
|
+
export function getExternalImages(params: {
|
|
19
|
+
portal_ids: string[];
|
|
20
|
+
search: string;
|
|
21
|
+
has_image: boolean;
|
|
22
|
+
page: number;
|
|
23
|
+
limit: number;
|
|
24
|
+
}, prod?: boolean): Promise<any>;
|
|
3
25
|
//# sourceMappingURL=portalsApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portalsApi.d.ts","sourceRoot":"","sources":["../../../src/services/portalsApi.js"],"names":[],"mappings":"AAKA,sEAMC;AAED,
|
|
1
|
+
{"version":3,"file":"portalsApi.d.ts","sourceRoot":"","sources":["../../../src/services/portalsApi.js"],"names":[],"mappings":"AAKA;;;GAGG;AACH,sEAMC;AAED;;;;;;;;;;;GAWG;AACH,0CAPG;IAAyB,UAAU,EAA3B,MAAM,EAAE;IACO,MAAM,EAArB,MAAM;IACU,SAAS,EAAzB,OAAO;IACQ,IAAI,EAAnB,MAAM;IACS,KAAK,EAApB,MAAM;CACd,SAAQ,OAAO,gBAmBjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "limbo-component",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Limbo - Highly configurable React image manager component for web portals",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@tailwindcss/vite": "^4.1.12",
|
|
58
58
|
"cropperjs": "^2.0.1",
|
|
59
|
-
"react": "^19.
|
|
60
|
-
"react-dom": "^19.
|
|
59
|
+
"react": "^19.2.3",
|
|
60
|
+
"react-dom": "^19.2.3",
|
|
61
61
|
"tailwindcss": "^4.1.12"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"@types/react": "^19.1.10",
|
|
67
67
|
"@types/react-dom": "^19.1.7",
|
|
68
68
|
"@vitejs/plugin-react": "^5.0.0",
|
|
69
|
+
"baseline-browser-mapping": "^2.8.32",
|
|
69
70
|
"eslint": "^9.33.0",
|
|
70
71
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
71
72
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
@@ -74,13 +75,5 @@
|
|
|
74
75
|
"terser": "^5.44.0",
|
|
75
76
|
"typescript": "^5.9.2",
|
|
76
77
|
"vite": "^7.1.2"
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
"type": "git",
|
|
80
|
-
"url": "git+https://github.com/Lefebvre-El-Derecho-SA/component-image-manager-bundle.git"
|
|
81
|
-
},
|
|
82
|
-
"bugs": {
|
|
83
|
-
"url": "https://github.com/Lefebvre-El-Derecho-SA/component-image-manager-bundle/issues"
|
|
84
|
-
},
|
|
85
|
-
"homepage": "https://github.com/Lefebvre-El-Derecho-SA/component-image-manager-bundle#readme"
|
|
86
|
-
}
|
|
78
|
+
}
|
|
79
|
+
}
|