UNPKG

captide

Version:

Get hundreds of thousands of financial documents into your AI app 🚀

25 lines (24 loc) • 1.07 kB
/** * Captide Document Viewer * * Version 2.0.0: Added support for binary documents (PDF and XLSX) * See docs/BINARY_DOCUMENTS.md for implementation details * * IMPORTANT USAGE NOTE FOR NEXT.JS APPLICATIONS: * When using this component in Next.js applications, it should be imported * with the "use client" directive to ensure proper client-side rendering: * * ```tsx * 'use client' * import { DocumentViewer } from 'captide' * ``` * * This is required because the DocumentViewer uses browser-specific APIs * for rendering PDF and spreadsheet documents. */ import DocumentViewer from './components/DocumentViewer/DocumentViewer'; export { DocumentViewer }; export { DocumentViewerProvider, useDocumentViewer } from './contexts/DocumentViewerContext'; export { parseDocumentViewerParams } from './utils/shareableLinks'; export type { SourceDocument, SourceDocumentBase, TabInfo, SourceType, DocumentViewerState, DocumentViewerContextValue, FetchDocumentFn } from './types'; export type { DocumentViewerProps } from './components/DocumentViewer/types';