limbo-component 4.0.3 → 4.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/dist/limbo.cjs.js +1 -1
- package/dist/limbo.cjs.map +1 -1
- package/dist/limbo.css +1 -1
- package/dist/limbo.es.js +272 -242
- 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/src/App.d.ts +2 -1
- package/dist/types/src/App.d.ts.map +1 -1
- package/dist/types/src/components/AiStarterPromptBlock.d.ts +7 -0
- package/dist/types/src/components/AiStarterPromptBlock.d.ts.map +1 -0
- package/dist/types/src/components/AssetPreview.d.ts +1 -1
- package/dist/types/src/components/AssetPreview.d.ts.map +1 -1
- package/dist/types/src/components/CropperTab.d.ts.map +1 -1
- package/dist/types/src/components/CropperView.d.ts +2 -2
- package/dist/types/src/components/CropperView.d.ts.map +1 -1
- package/dist/types/src/components/EditAssetModal.d.ts +7 -0
- package/dist/types/src/components/EditAssetModal.d.ts.map +1 -0
- package/dist/types/src/components/Gallery.d.ts +2 -1
- package/dist/types/src/components/Gallery.d.ts.map +1 -1
- package/dist/types/src/components/GalleryTab.d.ts +2 -1
- package/dist/types/src/components/GalleryTab.d.ts.map +1 -1
- package/dist/types/src/components/ImageCard.d.ts +2 -2
- package/dist/types/src/components/ImageCard.d.ts.map +1 -1
- package/dist/types/src/components/ImageViewer.d.ts +3 -1
- package/dist/types/src/components/ImageViewer.d.ts.map +1 -1
- package/dist/types/src/components/TabAI.d.ts +2 -1
- package/dist/types/src/components/TabAI.d.ts.map +1 -1
- package/dist/types/src/components/TabUpload.d.ts +3 -2
- package/dist/types/src/components/TabUpload.d.ts.map +1 -1
- package/dist/types/src/components/TagsInput.d.ts +9 -0
- package/dist/types/src/components/TagsInput.d.ts.map +1 -0
- package/dist/types/src/components/UploadForm.d.ts +4 -1
- package/dist/types/src/components/UploadForm.d.ts.map +1 -1
- package/dist/types/src/components/UploadTab.d.ts +4 -1
- package/dist/types/src/components/UploadTab.d.ts.map +1 -1
- package/dist/types/src/components/previews/GenericFilePreview.d.ts.map +1 -1
- package/dist/types/src/components/viewers/TextViewer.d.ts +1 -1
- package/dist/types/src/components/viewers/TextViewer.d.ts.map +1 -1
- package/dist/types/src/core/ConfigManager.d.ts +1 -0
- package/dist/types/src/core/ConfigManager.d.ts.map +1 -1
- package/dist/types/src/hooks/useCropper.d.ts.map +1 -1
- package/dist/types/src/hooks/useGalleryActions.d.ts.map +1 -1
- package/dist/types/src/hooks/useImages.d.ts.map +1 -1
- package/dist/types/src/hooks/useUploadActions.d.ts +2 -2
- package/dist/types/src/hooks/useUploadActions.d.ts.map +1 -1
- package/dist/types/src/hooks/useUploadImage.d.ts +1 -1
- package/dist/types/src/services/assetsApi.d.ts +10 -1
- package/dist/types/src/services/assetsApi.d.ts.map +1 -1
- package/dist/types/src/services/responseAdapters.d.ts.map +1 -1
- package/dist/types/src/utils/aiPrompt.d.ts +37 -0
- package/dist/types/src/utils/aiPrompt.d.ts.map +1 -0
- package/dist/types/src/utils/downloadImage.d.ts.map +1 -1
- package/dist/types/src/utils/i18n.d.ts +176 -0
- package/dist/types/src/utils/i18n.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types/src/App.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function App({ apiKey, onClose, prod, features, modeUI, ui, callbacks, instanceId, itemsPerPage, _externalImage, cropperConfig, folderConfig, allowedCategories, accept, returnConfig, }: {
|
|
1
|
+
export default function App({ apiKey, onClose, prod, features, modeUI, ui, callbacks, instanceId, itemsPerPage, _externalImage, cropperConfig, folderConfig, allowedCategories, accept, returnConfig, aiStarterPrompt, }: {
|
|
2
2
|
apiKey: any;
|
|
3
3
|
onClose: any;
|
|
4
4
|
prod?: boolean;
|
|
@@ -31,5 +31,6 @@ export default function App({ apiKey, onClose, prod, features, modeUI, ui, callb
|
|
|
31
31
|
allowedCategories?: any;
|
|
32
32
|
accept?: any;
|
|
33
33
|
returnConfig?: any;
|
|
34
|
+
aiStarterPrompt: any;
|
|
34
35
|
}): import("react/jsx-runtime").JSX.Element;
|
|
35
36
|
//# sourceMappingURL=App.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.jsx"],"names":[],"mappings":"AA4BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAsrBC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default AiStarterPromptBlock;
|
|
2
|
+
declare function AiStarterPromptBlock({ aiStarterPrompt, useStarter, onUseStarterChange }: {
|
|
3
|
+
aiStarterPrompt: any;
|
|
4
|
+
useStarter: any;
|
|
5
|
+
onUseStarterChange: any;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=AiStarterPromptBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiStarterPromptBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/AiStarterPromptBlock.jsx"],"names":[],"mappings":";AAGA;;;;4CA6HC"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @param {boolean} props.disabled - Disable action buttons (default: false)
|
|
15
15
|
* @param {boolean} props.showCropButton - Whether to show crop-related text (default: auto-detect)
|
|
16
16
|
*/
|
|
17
|
-
export default function AssetPreview({ file, image, onDiscard, onRetry, onDownload, onSelect, showRetry, disabled, showCropButton, selectedFolder, onFolderChange, folderConfig, }: {
|
|
17
|
+
export default function AssetPreview({ file, image, onDiscard, onRetry, onDownload, onSelect, showRetry, disabled, showCropButton, onTagsChange, tags, selectedFolder, onFolderChange, folderConfig, }: {
|
|
18
18
|
file: File;
|
|
19
19
|
onDiscard: Function;
|
|
20
20
|
onRetry: Function;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssetPreview.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetPreview.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AssetPreview.d.ts","sourceRoot":"","sources":["../../../../src/components/AssetPreview.jsx"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;GAeG;AACH,wMATG;IAAoB,IAAI,EAAhB,IAAI;IACY,SAAS;IACT,OAAO;IACP,UAAU;IACV,QAAQ;IACT,SAAS,EAAxB,OAAO;IACQ,QAAQ,EAAvB,OAAO;IACQ,cAAc,EAA7B,OAAO;CACjB,2CA2ZA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CropperTab.d.ts","sourceRoot":"","sources":["../../../../src/components/CropperTab.jsx"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"CropperTab.d.ts","sourceRoot":"","sources":["../../../../src/components/CropperTab.jsx"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;4CA2GC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function CropperView({ image, onSave, onCancel, onDelete, onError, deleting, onVariantCreated, onUpload, uploading, cropperConfig, }: {
|
|
1
|
+
export default function CropperView({ image, onSave, onCancel, onDelete: ON_DELETE, onError, deleting: DELETING, onVariantCreated, onUpload, uploading, cropperConfig, }: {
|
|
2
2
|
image: any;
|
|
3
3
|
onSave: any;
|
|
4
4
|
onCancel: any;
|
|
5
|
-
onDelete
|
|
5
|
+
onDelete?: any;
|
|
6
6
|
onError?: any;
|
|
7
7
|
deleting?: boolean;
|
|
8
8
|
onVariantCreated?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CropperView.d.ts","sourceRoot":"","sources":["../../../../src/components/CropperView.jsx"],"names":[],"mappings":"AAYA;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"CropperView.d.ts","sourceRoot":"","sources":["../../../../src/components/CropperView.jsx"],"names":[],"mappings":"AAYA;;;;;;;;;;;4CAsxGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditAssetModal.d.ts","sourceRoot":"","sources":["../../../../src/components/EditAssetModal.jsx"],"names":[],"mappings":"AAKA;;;;;4CAkIC"}
|
|
@@ -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, onRename, }: {
|
|
1
|
+
export default function Gallery({ onSelect, onCrop, onDelete, deletingId, images, loading, error, filters, debouncedFilters, onFiltersChange, filterConfig, loadingConfig, allowedActions, allowedCategories, resolvedAccept, folderConfig, onFolderChange, onRename, onEdit, }: {
|
|
2
2
|
onSelect: any;
|
|
3
3
|
onCrop: any;
|
|
4
4
|
onDelete: any;
|
|
@@ -40,5 +40,6 @@ export default function Gallery({ onSelect, onCrop, onDelete, deletingId, images
|
|
|
40
40
|
folderConfig?: any;
|
|
41
41
|
onFolderChange?: any;
|
|
42
42
|
onRename?: any;
|
|
43
|
+
onEdit?: any;
|
|
43
44
|
}): import("react/jsx-runtime").JSX.Element;
|
|
44
45
|
//# sourceMappingURL=Gallery.d.ts.map
|
|
@@ -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":"AAmBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAmbC"}
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
* Extrae el bloque JSX de App.jsx (activeTab === "gallery") al componente.
|
|
4
4
|
* REFACT-05: Extraído literalmente de App.jsx ~1012-1076.
|
|
5
5
|
*/
|
|
6
|
-
export default function GalleryTab({ onSelect, onCrop, onDelete, onFolderChange, onRename, onPageChange, onFiltersChange, images, loadingImages, imagesError, deleting, uploadedImage, pagination, currentPage, galleryFilters, debouncedFilters, allowedActions, resolvedAccept, allowedCategories, folderConfig, filterConfig, loadingConfig, resetUpload, }: {
|
|
6
|
+
export default function GalleryTab({ onSelect, onCrop, onDelete, onFolderChange, onRename, onEdit, onPageChange, onFiltersChange, images, loadingImages, imagesError, deleting, uploadedImage, pagination, currentPage, galleryFilters, debouncedFilters, allowedActions, resolvedAccept, allowedCategories, folderConfig, filterConfig, loadingConfig, resetUpload, }: {
|
|
7
7
|
onSelect: any;
|
|
8
8
|
onCrop: any;
|
|
9
9
|
onDelete: any;
|
|
10
10
|
onFolderChange: any;
|
|
11
11
|
onRename: any;
|
|
12
|
+
onEdit: any;
|
|
12
13
|
onPageChange: any;
|
|
13
14
|
onFiltersChange: any;
|
|
14
15
|
images: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryTab.d.ts","sourceRoot":"","sources":["../../../../src/components/GalleryTab.jsx"],"names":[],"mappings":"AAMA;;;;GAIG;AACH
|
|
1
|
+
{"version":3,"file":"GalleryTab.d.ts","sourceRoot":"","sources":["../../../../src/components/GalleryTab.jsx"],"names":[],"mappings":"AAMA;;;;GAIG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;4CAyEC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: React.MemoExoticComponent<typeof ImageCard>;
|
|
2
2
|
export default _default;
|
|
3
|
-
declare function ImageCard({ image, onDelete, onCrop, onSelect, onFolderChange, thumbnailSize, isDeleting, showFolderInfo, allowMoveFolder, allowedFolderSlugs, excludedFolderSlugs, allowCreateFolder, allowedActions,
|
|
3
|
+
declare function ImageCard({ image, onDelete, onCrop, onSelect, onFolderChange, thumbnailSize, isDeleting, showFolderInfo, allowMoveFolder, allowedFolderSlugs, excludedFolderSlugs, allowCreateFolder, allowedActions, onEdit, }: {
|
|
4
4
|
image: any;
|
|
5
5
|
onDelete: any;
|
|
6
6
|
onCrop: any;
|
|
@@ -22,7 +22,7 @@ declare function ImageCard({ image, onDelete, onCrop, onSelect, onFolderChange,
|
|
|
22
22
|
variants: boolean;
|
|
23
23
|
rename: boolean;
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
onEdit?: any;
|
|
26
26
|
}): import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
import React from "react";
|
|
28
28
|
//# sourceMappingURL=ImageCard.d.ts.map
|
|
@@ -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":";;AAqHA;;;;;;;;;;;;;;;;;;;;;;;4CA2+BC;kBAhmCwE,OAAO"}
|
|
@@ -17,13 +17,15 @@
|
|
|
17
17
|
* @param {string} props.subtitle - Subtítulo (dimensiones, tamaño, etc.)
|
|
18
18
|
* @param {Function} props.onClose - Callback para cerrar el visor
|
|
19
19
|
* @param {boolean} props.isOpen - Si el visor está abierto
|
|
20
|
+
* @param {string[]} props.tags - Array de tags del asset (Phase 9 — TAGS-07)
|
|
20
21
|
*/
|
|
21
|
-
export default function ImageViewer({ src, alt, title, subtitle, onClose, isOpen, }: {
|
|
22
|
+
export default function ImageViewer({ src, alt, title, subtitle, onClose, isOpen, tags, }: {
|
|
22
23
|
src: string;
|
|
23
24
|
alt: string;
|
|
24
25
|
title: string;
|
|
25
26
|
subtitle: string;
|
|
26
27
|
onClose: Function;
|
|
27
28
|
isOpen: boolean;
|
|
29
|
+
tags: string[];
|
|
28
30
|
}): import("react/jsx-runtime").JSX.Element;
|
|
29
31
|
//# sourceMappingURL=ImageViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/ImageViewer.jsx"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"ImageViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/ImageViewer.jsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,2FARG;IAAsB,GAAG,EAAjB,MAAM;IACQ,GAAG,EAAjB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,QAAQ,EAAtB,MAAM;IACU,OAAO;IACR,MAAM,EAArB,OAAO;IACS,IAAI,EAApB,MAAM,EAAE;CAClB,2CAsaA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export default function TabAI({ prod, disabled, onSelect, selectedFolder, onFolderChange, folderConfig, }: {
|
|
1
|
+
export default function TabAI({ prod, disabled, onSelect, selectedFolder, onFolderChange, folderConfig, aiStarterPrompt, }: {
|
|
2
2
|
prod: any;
|
|
3
3
|
disabled: any;
|
|
4
4
|
onSelect: any;
|
|
5
5
|
selectedFolder: any;
|
|
6
6
|
onFolderChange: any;
|
|
7
7
|
folderConfig: any;
|
|
8
|
+
aiStarterPrompt: any;
|
|
8
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
//# sourceMappingURL=TabAI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabAI.d.ts","sourceRoot":"","sources":["../../../../src/components/TabAI.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabAI.d.ts","sourceRoot":"","sources":["../../../../src/components/TabAI.jsx"],"names":[],"mappings":"AAmBA;;;;;;;;4CAuyBC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export default function TabUpload({ file, setFile,
|
|
1
|
+
export default function TabUpload({ file, setFile, setPreviewUrl, fileInputRef, onSelect, disabled, allowedCategories, resolvedAccept, selectedFolder, onFolderChange, folderConfig, tags, onTagsChange, }: {
|
|
2
2
|
file: any;
|
|
3
3
|
setFile: any;
|
|
4
|
-
previewUrl: any;
|
|
5
4
|
setPreviewUrl: any;
|
|
6
5
|
fileInputRef: any;
|
|
7
6
|
onSelect: any;
|
|
@@ -11,5 +10,7 @@ export default function TabUpload({ file, setFile, previewUrl, setPreviewUrl, fi
|
|
|
11
10
|
selectedFolder?: any;
|
|
12
11
|
onFolderChange?: any;
|
|
13
12
|
folderConfig?: any;
|
|
13
|
+
tags?: any[];
|
|
14
|
+
onTagsChange?: any;
|
|
14
15
|
}): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
//# sourceMappingURL=TabUpload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabUpload.d.ts","sourceRoot":"","sources":["../../../../src/components/TabUpload.jsx"],"names":[],"mappings":"AAiCA
|
|
1
|
+
{"version":3,"file":"TabUpload.d.ts","sourceRoot":"","sources":["../../../../src/components/TabUpload.jsx"],"names":[],"mappings":"AAiCA;;;;;;;;;;;;;;4CAiOC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default function TagsInput({ value, onChange, placeholder, disabled, id, ariaLabel }: {
|
|
2
|
+
value?: any[];
|
|
3
|
+
onChange: any;
|
|
4
|
+
placeholder: any;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
id: any;
|
|
7
|
+
ariaLabel: any;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=TagsInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagsInput.d.ts","sourceRoot":"","sources":["../../../../src/components/TagsInput.jsx"],"names":[],"mappings":"AAKA;;;;;;;4CAyMC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function UploadForm({ onSelect, onVideoSelect, disabled, apiKey, prod, allowedCategories, resolvedAccept, returnConfig, folderConfig, selectedFolder, onFolderChange, }: {
|
|
1
|
+
export default function UploadForm({ onSelect, onVideoSelect, disabled, apiKey, prod, allowedCategories, resolvedAccept, returnConfig, folderConfig, selectedFolder, onFolderChange, aiStarterPrompt, tags, onTagsChange, }: {
|
|
2
2
|
onSelect: any;
|
|
3
3
|
onVideoSelect: any;
|
|
4
4
|
disabled?: boolean;
|
|
@@ -10,5 +10,8 @@ export default function UploadForm({ onSelect, onVideoSelect, disabled, apiKey,
|
|
|
10
10
|
folderConfig?: any;
|
|
11
11
|
selectedFolder?: any;
|
|
12
12
|
onFolderChange?: any;
|
|
13
|
+
aiStarterPrompt: any;
|
|
14
|
+
tags?: any[];
|
|
15
|
+
onTagsChange?: any;
|
|
13
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
17
|
//# sourceMappingURL=UploadForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadForm.d.ts","sourceRoot":"","sources":["../../../../src/components/UploadForm.jsx"],"names":[],"mappings":"AAcA
|
|
1
|
+
{"version":3,"file":"UploadForm.d.ts","sourceRoot":"","sources":["../../../../src/components/UploadForm.jsx"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;;;4CA+PC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Extrae el bloque JSX de App.jsx (activeTab === "upload") al componente.
|
|
4
4
|
* REFACT-05: Extraído literalmente de App.jsx ~1078-1110.
|
|
5
5
|
*/
|
|
6
|
-
export default function UploadTab({ onSelect, onVideoSelect, onFolderChange, uploading, uploadError, uploadedImage, selectedUploadFolder, apiKey, prod, allowedCategories, resolvedAccept, returnConfig, folderConfig, resetUpload, }: {
|
|
6
|
+
export default function UploadTab({ onSelect, onVideoSelect, onFolderChange, uploading, uploadError, uploadedImage, selectedUploadFolder, apiKey, prod, allowedCategories, resolvedAccept, returnConfig, folderConfig, aiStarterPrompt, resetUpload, tags, onTagsChange, }: {
|
|
7
7
|
onSelect: any;
|
|
8
8
|
onVideoSelect: any;
|
|
9
9
|
onFolderChange: any;
|
|
@@ -17,6 +17,9 @@ export default function UploadTab({ onSelect, onVideoSelect, onFolderChange, upl
|
|
|
17
17
|
resolvedAccept: any;
|
|
18
18
|
returnConfig: any;
|
|
19
19
|
folderConfig: any;
|
|
20
|
+
aiStarterPrompt: any;
|
|
20
21
|
resetUpload: any;
|
|
22
|
+
tags: any;
|
|
23
|
+
onTagsChange: any;
|
|
21
24
|
}): import("react/jsx-runtime").JSX.Element;
|
|
22
25
|
//# sourceMappingURL=UploadTab.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadTab.d.ts","sourceRoot":"","sources":["../../../../src/components/UploadTab.jsx"],"names":[],"mappings":"AAKA;;;;GAIG;AACH
|
|
1
|
+
{"version":3,"file":"UploadTab.d.ts","sourceRoot":"","sources":["../../../../src/components/UploadTab.jsx"],"names":[],"mappings":"AAKA;;;;GAIG;AACH;;;;;;;;;;;;;;;;;;4CA4DC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFilePreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/previews/GenericFilePreview.jsx"],"names":[],"mappings":"AAgEA,mEAuBC;
|
|
1
|
+
{"version":3,"file":"GenericFilePreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/previews/GenericFilePreview.jsx"],"names":[],"mappings":"AAgEA,mEAuBC;AAED,mDAMC;AAED;;;;4CAgCC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @param {number} props.fileSize - File size in bytes (for truncation warning)
|
|
14
14
|
* @param {Function} props.onClose - Close callback
|
|
15
15
|
*/
|
|
16
|
-
export default function TextViewer({ isOpen, src, title, subtitle, mimeType,
|
|
16
|
+
export default function TextViewer({ isOpen, src, title, subtitle, mimeType, onClose, }: {
|
|
17
17
|
isOpen: boolean;
|
|
18
18
|
src: string;
|
|
19
19
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextViewer.d.ts","sourceRoot":"","sources":["../../../../../src/components/viewers/TextViewer.jsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,
|
|
1
|
+
{"version":3,"file":"TextViewer.d.ts","sourceRoot":"","sources":["../../../../../src/components/viewers/TextViewer.jsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,yFARG;IAAuB,MAAM,EAArB,OAAO;IACO,GAAG,EAAjB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,QAAQ,EAAtB,MAAM;IACQ,QAAQ,EAAtB,MAAM;IACQ,QAAQ,EAAtB,MAAM;IACU,OAAO;CACjC,2CAkNA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigManager.d.ts","sourceRoot":"","sources":["../../../../src/core/ConfigManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConfigManager.d.ts","sourceRoot":"","sources":["../../../../src/core/ConfigManager.js"],"names":[],"mappings":"AASA;IAEI,iBAAsB;IACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2MC;IAGH;;OAEG;IACH,6BAGC;IAED;;OAEG;IACH,gBAEC;IAED;;;OAGG;IACH,+BASC;IAED;;OAEG;IACH,kCAkBC;IAED;;OAEG;IACH,oCAGC;IAED;;OAEG;IACH,mBAEC;IAED;;OAEG;IACH,sBAGC;IAED;;OAEG;IACH,kCAGC;IAED;;OAEG;IACH,iCAGC;IAED;;OAEG;IACH,0CAIC;IAED;;OAEG;IACH,uDAWC;IAED;;OAEG;IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmLC;IAED;;OAEG;IACH,sCAyCC;IAED;;OAEG;IACH,sDAQC;IAED;;OAEG;IACH,oDAGC;IAED;;OAEG;IACH,sCAGC;IAED;;OAEG;IACH,oCAGC;IAED;;OAEG;IACH,8BAcC;IAED;;OAEG;IACH;;;MA0CC;IAED;;;;;OAKG;IACH,mBAJW,MAAM,cACN,MAAM,uBAiBhB;IAED;;OAEG;IACH;;;;;;;;MAWC;IAED;;OAEG;IACH,uCAGC;IAED;;OAEG;IACH,0CAGC;IAED;;;OAGG;IACH,uCAYC;IAED;;;;OAIG;IAEH;;OAEG;IACH,qCAGC;IAED;;OAEG;IACH,yCAGC;IAED;;OAEG;IACH,yCAGC;IAED;;OAEG;IACH,2CAGC;IAED;;OAEG;IACH,6CAGC;IAED;;OAEG;IACH,oCAGC;IAED;;OAEG;IACH,wCAGC;IAED;;;;OAIG;IAEH;;OAEG;IACH,qCAGC;IAED;;OAEG;IACH,2DAGC;IAED;;OAEG;IACH,2CAGC;IAED;;OAEG;IACH,2CAGC;IAED;;OAEG;IACH,+CAGC;IAED;;OAEG;IACH,uCAGC;IAED;;OAEG;IACH,0CAGC;IAED;;OAEG;IACH,wCAGC;IAED;;OAEG;IACH,mCAGC;IAED;;;;OAIG;IAEH;;OAEG;IACH,mCAGC;IAED;;OAEG;IACH,wCAGC;IAED;;;OAGG;IACH;;;;MAiBC;IAED;;OAEG;IACH,kDAGC;IAED;;OAEG;IACH,iDAGC;IAED;;OAEG;IACH,uCAGC;IAED;;OAEG;IACH,0CAGC;IAED;;;OAGG;IACH,yCAIC;IAED;;;;OAIG;IAEH;;;OAGG;IACH,oCAFa,QAAM,IAAI,CAKtB;IAED;;OAEG;IACH,wDAOC;IAED;;OAEG;IACH,0CAKC;IAED;;OAEG;IACH,sCAGC;IAED;;;OAGG;IACH;;;QAmBC;IAED;;;OAGG;IACH,iCAFa,MAAM,CAWlB;CACF;qBArhCoB,kBAAkB"}
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuKN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGalleryActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useGalleryActions.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AACH,4MAdG;IAA+C,YAAY,EAAnD,qCAAgC;IACjB,SAAS;IACT,cAAc;IACd,eAAe;IACf,eAAe;IAClB,MAAM;IACH,SAAS;IACT,cAAc;IACrB,aAAa,EAArB,GAAC;IACc,gBAAgB;IAChB,YAAY;CAEnC,GAAU;IAAE,YAAY,MAAC;IAAC,uBAAuB,MAAC;IAAC,iBAAiB,MAAC;IAAC,oBAAoB,MAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"useGalleryActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useGalleryActions.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AACH,4MAdG;IAA+C,YAAY,EAAnD,qCAAgC;IACjB,SAAS;IACT,cAAc;IACd,eAAe;IACf,eAAe;IAClB,MAAM;IACH,SAAS;IACT,cAAc;IACrB,aAAa,EAArB,GAAC;IACc,gBAAgB;IAChB,YAAY;CAEnC,GAAU;IAAE,YAAY,MAAC;IAAC,uBAAuB,MAAC;IAAC,iBAAiB,MAAC;IAAC,oBAAoB,MAAA;CAAE,CA2I9F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useImages.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useImages.js"],"names":[],"mappings":"AAiFA;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useImages.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useImages.js"],"names":[],"mappings":"AAiFA;;;;;;;;EAuIC;AA3JM,iDAON"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @param {*} deps.selectedUploadFolder - Estado de App.jsx
|
|
15
15
|
* @param {React.MutableRefObject} deps.tempBlobUrlRef - Ref de App.jsx (evitar memory leaks de blob URLs)
|
|
16
16
|
*/
|
|
17
|
-
export default function useUploadActions({ callbacksRef, upload, refetch, activeFeatures, setActiveTab, setSelectedImage, setCurrentPage, setSuccessMessage, instanceId, selectedUploadFolder, tempBlobUrlRef, }: {
|
|
17
|
+
export default function useUploadActions({ callbacksRef, upload, refetch, activeFeatures, setActiveTab, setSelectedImage, setCurrentPage, setSuccessMessage, instanceId, selectedUploadFolder, tempBlobUrlRef, uploadTags, }: {
|
|
18
18
|
callbacksRef: import("react").MutableRefObject<any>;
|
|
19
19
|
upload: Function;
|
|
20
20
|
refetch: Function;
|
|
@@ -27,7 +27,7 @@ export default function useUploadActions({ callbacksRef, upload, refetch, active
|
|
|
27
27
|
selectedUploadFolder: any;
|
|
28
28
|
tempBlobUrlRef: import("react").MutableRefObject<any>;
|
|
29
29
|
}): {
|
|
30
|
-
handleUploadAndCrop: (file: any) => Promise<void>;
|
|
30
|
+
handleUploadAndCrop: (file: any, tags?: any) => Promise<void>;
|
|
31
31
|
handleVideoSelect: (videoMeta: any) => void;
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=useUploadActions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUploadActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useUploadActions.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH,
|
|
1
|
+
{"version":3,"file":"useUploadActions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useUploadActions.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH,8NAZG;IAAqC,YAAY;IAC1B,MAAM;IACN,OAAO;IACP,cAAc,EAA7B,MAAM,EAAE;IACO,YAAY;IACZ,gBAAgB;IAChB,cAAc;IACd,iBAAiB;IACjB,UAAU,EAAzB,MAAM;IACS,oBAAoB,EAAnC,GAAC;IAC4B,cAAc;CACrD;;;EAoJA"}
|
|
@@ -12,8 +12,17 @@ export function listAssets(params?: any): Promise<any>;
|
|
|
12
12
|
* @param {string|null} uploaded_by - User identifier
|
|
13
13
|
* @param {boolean} store_original - Store original file
|
|
14
14
|
* @param {string|null} folder - Folder slug or ID to organize the asset
|
|
15
|
+
* @param {string[]|null} tags - Array of tags to assign to the asset
|
|
15
16
|
*/
|
|
16
|
-
export function uploadAsset(file: File, uploaded_by?: string | null, store_original?: boolean, folder?: string | null): Promise<any>;
|
|
17
|
+
export function uploadAsset(file: File, uploaded_by?: string | null, store_original?: boolean, folder?: string | null, tags?: string[] | null): Promise<any>;
|
|
18
|
+
/**
|
|
19
|
+
* Lista tags disponibles para autocomplete
|
|
20
|
+
* Maps to: GET /api/tags
|
|
21
|
+
*
|
|
22
|
+
* @param {Object} params - Parámetros (search, limit)
|
|
23
|
+
* @returns {Promise<Object>} Lista de tags { tags: [{ tag, count }] }
|
|
24
|
+
*/
|
|
25
|
+
export function listTags({ search, limit }?: any): Promise<any>;
|
|
17
26
|
/**
|
|
18
27
|
* Get specific asset
|
|
19
28
|
* Maps to: GET /api/assets/{id}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetsApi.d.ts","sourceRoot":"","sources":["../../../../src/services/assetsApi.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,0CAFa,OAAO,KAAQ,CAuB3B;AAED
|
|
1
|
+
{"version":3,"file":"assetsApi.d.ts","sourceRoot":"","sources":["../../../../src/services/assetsApi.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,0CAFa,OAAO,KAAQ,CAuB3B;AAED;;;;;;;;;GASG;AACH,kCANW,IAAI,gBACJ,MAAM,GAAC,IAAI,mBACX,OAAO,WACP,MAAM,GAAC,IAAI,SACX,MAAM,EAAE,GAAC,IAAI,gBA0BvB;AAED;;;;;;GAMG;AACH,mDAFa,OAAO,KAAQ,CAoB3B;AAED;;;;;;;;GAQG;AACH,kCALW,MAAM,oBACN,OAAO,oBACP,OAAO,eACP,MAAM,gBAqBhB;AAED;;;;;;;;;;;GAWG;AACH,qCARW,MAAM,QAEd;IAAqB,QAAQ,EAArB,MAAM;IACO,MAAM,EAAnB,MAAM;IACO,QAAQ,EAArB,MAAM;IACO,eAAe;CACpC,GAAU,OAAO,KAAQ,CAgB3B;AAED;;;GAGG;AACH,wDAaC;AAED;;;GAGG;AACH;;;;;;;;iBAuCC;AAED;;;;;;GAMG;AACH,sCAHW,MAAM,eACN,MAAM,gBAqBhB;AAED;;;GAGG;AACH,0EAaC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,2CAVW,MAAM,QACN,IAAI,YAEZ;IAAwB,IAAI,EAApB,MAAM;IACU,KAAK,EAArB,MAAM;IACU,MAAM,EAAtB,MAAM;IACU,MAAM,EAAtB,MAAM;IACW,YAAY,EAA7B,OAAO;CACf,GAAU,OAAO,KAAQ,CAiC3B;AAKD;;;GAGG;AACH,6DAGC;AAED;;;GAGG;AACH,+EAGC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responseAdapters.d.ts","sourceRoot":"","sources":["../../../../src/services/responseAdapters.js"],"names":[],"mappings":"AA8DA;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"responseAdapters.d.ts","sourceRoot":"","sources":["../../../../src/services/responseAdapters.js"],"names":[],"mappings":"AA8DA;;;;GAIG;AACH,uDAiDC;AAED;;;;GAIG;AACH,4DAwDC;AAED;;;;GAIG;AACH,8DAiCC;AAED;;;;GAIG;AACH,8DAkBC;AAED;;;;GAIG;AACH,wDAiDC;AAED;;;;GAIG;AACH,mEAuEC;AAED;;;;GAIG;AACH,6DAqBC;AAED;;;;GAIG;AACH,wDAoBC;AAED;;;;GAIG;AACH,wCAHW,KAAK,GACH,KAAK,CAkBjB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compose the final prompt string to send to the AI generation API.
|
|
3
|
+
*
|
|
4
|
+
* When `useStarter` is truthy and `starter` is a non-empty string, wraps both prompts
|
|
5
|
+
* in the corporate editorial format (D-07). Otherwise returns `user` as-is.
|
|
6
|
+
*
|
|
7
|
+
* @param {object} input
|
|
8
|
+
* @param {string|null|undefined} input.starter - Starter/instructions prompt (corporate default or portal override).
|
|
9
|
+
* @param {string|null|undefined} input.user - User-provided generation request. Not validated here (D-09).
|
|
10
|
+
* @param {*} input.useStarter - Whether to apply the starter wrapper (truthy/falsy, D-10).
|
|
11
|
+
* @returns {string} Final prompt string ready to send to the AI API.
|
|
12
|
+
*/
|
|
13
|
+
export function composeAiPrompt({ starter, user, useStarter }: {
|
|
14
|
+
starter: string | null | undefined;
|
|
15
|
+
user: string | null | undefined;
|
|
16
|
+
useStarter: any;
|
|
17
|
+
}): string;
|
|
18
|
+
/**
|
|
19
|
+
* AI Prompt Composition
|
|
20
|
+
*
|
|
21
|
+
* Pure helpers + corporate default starter prompt for the AI image generation feature.
|
|
22
|
+
*
|
|
23
|
+
* Used by:
|
|
24
|
+
* - src/core/ConfigManager.js → sets aiStarterPrompt default (Plan 06-02)
|
|
25
|
+
* - src/services/aiApi.js → composes the final prompt before sending (Plan 06-08 / Phase 8)
|
|
26
|
+
*
|
|
27
|
+
* This module has zero imports and zero side effects. It is safe to import from any layer.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Default editorial corporate starter prompt.
|
|
31
|
+
*
|
|
32
|
+
* Hardcoded text provided by Lefebvre editorial team (D-12).
|
|
33
|
+
* Portals can override it via Limbo.configure({ aiStarterPrompt: "..." }).
|
|
34
|
+
* Passing "" or null is valid and means "no instructions" (see ConfigManager merge semantics).
|
|
35
|
+
*/
|
|
36
|
+
export const DEFAULT_AI_STARTER_PROMPT: string;
|
|
37
|
+
//# sourceMappingURL=aiPrompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiPrompt.d.ts","sourceRoot":"","sources":["../../../../src/utils/aiPrompt.js"],"names":[],"mappings":"AA4BA;;;;;;;;;;;GAWG;AACH,+DALG;IAAqC,OAAO,EAApC,MAAM,GAAC,IAAI,GAAC,SAAS;IACQ,IAAI,EAAjC,MAAM,GAAC,IAAI,GAAC,SAAS;IACQ,UAAU,EAAvC,GAAC;CACT,GAAU,MAAM,CAclB;AApDD;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,+CAO2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"downloadImage.d.ts","sourceRoot":"","sources":["../../../../src/utils/downloadImage.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AACH,2CAVW,MAAM,YACN,MAAM,YAEd;IAAwB,MAAM,EAAtB,MAAM;IACU,cAAc,EAA9B,MAAM;IACY,SAAS;IACT,OAAO;IACT,oBAAoB;CAC5C,GAAU,OAAO,CAAC,OAAO,CAAC,CAyH5B;
|
|
1
|
+
{"version":3,"file":"downloadImage.d.ts","sourceRoot":"","sources":["../../../../src/utils/downloadImage.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AACH,2CAVW,MAAM,YACN,MAAM,YAEd;IAAwB,MAAM,EAAtB,MAAM;IACU,cAAc,EAA9B,MAAM;IACY,SAAS;IACT,OAAO;IACT,oBAAoB;CAC5C,GAAU,OAAO,CAAC,OAAO,CAAC,CAyH5B;AAqFD;;;;;;;GAOG;AACH,4CALW,KAAK,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC,CAAC,gBACtC,MAAM,kBAEJ,OAAO,CAAC,OAAO,CAAC,CAiF5B;AAED;;;;;GAKG;AACH,6CAHW,MAAM,GACJ,MAAM,CAKlB"}
|