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.
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.jsx"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA08BC"}
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":"AAwEA;;;;;;;;;;;;;;;;;;;;;4CAq3BC"}
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":"AA8BA;;;;;;;;;;;;4CA0MC"}
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;;;;4CA4HC"}
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":"AAuDA,mEAuBC;AAGD,mDAMC;AAED;;;;4CAgCC"}
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+LA"}
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,2CAoGA"}
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,2CAsKA"}
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,2CA8GA"}
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;;;;;;;;EAwHC"}
1
+ {"version":3,"file":"useImages.d.ts","sourceRoot":"","sources":["../../../src/hooks/useImages.js"],"names":[],"mappings":"AA4CA;;;;;;;;EAmIC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "limbo-component",
3
- "version": "3.4.2",
3
+ "version": "3.5.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Limbo - Highly configurable React image manager component for web portals",