limbo-component 3.4.2 → 3.5.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 +128 -112
- 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/ImageCard.d.ts.map +1 -1
- package/dist/types/components/TabUpload.d.ts.map +1 -1
- package/dist/types/components/previews/AudioPreviewContent.d.ts.map +1 -1
- package/dist/types/components/previews/GenericFilePreview.d.ts.map +1 -1
- package/dist/types/components/viewers/AudioViewer.d.ts.map +1 -1
- package/dist/types/components/viewers/DocumentViewer.d.ts.map +1 -1
- package/dist/types/components/viewers/PdfViewer.d.ts.map +1 -1
- package/dist/types/components/viewers/TextViewer.d.ts +25 -0
- package/dist/types/components/viewers/TextViewer.d.ts.map +1 -0
- package/dist/types/components/viewers/VideoViewer.d.ts.map +1 -1
- package/dist/types/components/viewers/index.d.ts +1 -0
- package/dist/types/hooks/useImages.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":"AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.jsx"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA88BC"}
|
|
@@ -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":"AAwGA;;;;;;;;;;;;;;;;;;;;;4CAy7BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabUpload.d.ts","sourceRoot":"","sources":["../../../src/components/TabUpload.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabUpload.d.ts","sourceRoot":"","sources":["../../../src/components/TabUpload.jsx"],"names":[],"mappings":"AAgCA;;;;;;;;;;;;4CA0MC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AudioPreviewContent.d.ts","sourceRoot":"","sources":["../../../../src/components/previews/AudioPreviewContent.jsx"],"names":[],"mappings":"AAGA;;;;GAIG;AACH;;;;
|
|
1
|
+
{"version":3,"file":"AudioPreviewContent.d.ts","sourceRoot":"","sources":["../../../../src/components/previews/AudioPreviewContent.jsx"],"names":[],"mappings":"AAGA;;;;GAIG;AACH;;;;4CA0IC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFilePreview.d.ts","sourceRoot":"","sources":["../../../../src/components/previews/GenericFilePreview.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GenericFilePreview.d.ts","sourceRoot":"","sources":["../../../../src/components/previews/GenericFilePreview.jsx"],"names":[],"mappings":"AAgEA,mEAuBC;AAGD,mDAMC;AAED;;;;4CAgCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AudioViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/viewers/AudioViewer.jsx"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,gFANG;IAAuB,MAAM,EAArB,OAAO;IACO,GAAG,EAAjB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,QAAQ,EAAtB,MAAM;IACU,OAAO;CACjC,2CA+
|
|
1
|
+
{"version":3,"file":"AudioViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/viewers/AudioViewer.jsx"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,gFANG;IAAuB,MAAM,EAArB,OAAO;IACO,GAAG,EAAjB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,QAAQ,EAAtB,MAAM;IACU,OAAO;CACjC,2CA+OA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/viewers/DocumentViewer.jsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,uGARG;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,
|
|
1
|
+
{"version":3,"file":"DocumentViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/viewers/DocumentViewer.jsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,uGARG;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,2CA+GA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PdfViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/viewers/PdfViewer.jsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,8EANG;IAAuB,MAAM,EAArB,OAAO;IACO,GAAG,EAAjB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,QAAQ,EAAtB,MAAM;IACU,OAAO;CACjC,
|
|
1
|
+
{"version":3,"file":"PdfViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/viewers/PdfViewer.jsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,8EANG;IAAuB,MAAM,EAArB,OAAO;IACO,GAAG,EAAjB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,QAAQ,EAAtB,MAAM;IACU,OAAO;CACjC,2CA0JA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TextViewer - Inline viewer for text-based files (TXT, CSV, JSON, XML, etc.)
|
|
3
|
+
*
|
|
4
|
+
* Fetches the file content as text and renders it in a scrollable <pre>.
|
|
5
|
+
* For large files (>2MB), truncates with a warning.
|
|
6
|
+
*
|
|
7
|
+
* @param {Object} props
|
|
8
|
+
* @param {boolean} props.isOpen - Whether the viewer is visible
|
|
9
|
+
* @param {string} props.src - File URL (signed URL)
|
|
10
|
+
* @param {string} props.title - Filename
|
|
11
|
+
* @param {string} props.subtitle - File info (extension, size)
|
|
12
|
+
* @param {string} props.mimeType - MIME type for context
|
|
13
|
+
* @param {number} props.fileSize - File size in bytes (for truncation warning)
|
|
14
|
+
* @param {Function} props.onClose - Close callback
|
|
15
|
+
*/
|
|
16
|
+
export default function TextViewer({ isOpen, src, title, subtitle, mimeType, fileSize, onClose, }: {
|
|
17
|
+
isOpen: boolean;
|
|
18
|
+
src: string;
|
|
19
|
+
title: string;
|
|
20
|
+
subtitle: string;
|
|
21
|
+
mimeType: string;
|
|
22
|
+
fileSize: number;
|
|
23
|
+
onClose: Function;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=TextViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/viewers/TextViewer.jsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,mGARG;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,2CAmNA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/viewers/VideoViewer.jsx"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,gFANG;IAAuB,MAAM,EAArB,OAAO;IACO,GAAG,EAAjB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,QAAQ,EAAtB,MAAM;IACU,OAAO;CACjC,
|
|
1
|
+
{"version":3,"file":"VideoViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/viewers/VideoViewer.jsx"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,gFANG;IAAuB,MAAM,EAArB,OAAO;IACO,GAAG,EAAjB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,QAAQ,EAAtB,MAAM;IACU,OAAO;CACjC,2CA8JA"}
|
|
@@ -3,4 +3,5 @@ export { default as VideoViewer } from "./VideoViewer";
|
|
|
3
3
|
export { default as AudioViewer } from "./AudioViewer";
|
|
4
4
|
export { default as PdfViewer } from "./PdfViewer";
|
|
5
5
|
export { default as DocumentViewer } from "./DocumentViewer";
|
|
6
|
+
export { default as TextViewer } from "./TextViewer";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useImages.d.ts","sourceRoot":"","sources":["../../../src/hooks/useImages.js"],"names":[],"mappings":"AA4CA;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useImages.d.ts","sourceRoot":"","sources":["../../../src/hooks/useImages.js"],"names":[],"mappings":"AA4CA;;;;;;;;EAmIC"}
|