41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
// Component
|
|
export { CogniteFileViewer } from './CogniteFileViewer';
|
|
|
|
// Annotation overlay (for custom compositions)
|
|
export {
|
|
DocumentAnnotationOverlay,
|
|
getAnnotationColor,
|
|
getAllAnnotationColors,
|
|
} from './DocumentAnnotationOverlay';
|
|
export type { DocumentAnnotationOverlayProps } from './DocumentAnnotationOverlay';
|
|
|
|
// Hooks (for advanced / custom usage)
|
|
export { useFileResolver } from './useFileResolver';
|
|
export { useDocumentAnnotations, clearAnnotationCache } from './useDocumentAnnotations';
|
|
|
|
// File resolution utilities
|
|
export { resolveFileDownloadConfig, clearFileCache, clearAllFileCache } from './fileResolution';
|
|
|
|
// MIME type utilities
|
|
export {
|
|
getViewerType,
|
|
getComputedMimeType,
|
|
inferMimeTypeFromUrl,
|
|
isNativelySupportedMimeType,
|
|
doesDocumentPreviewApiSupportFile,
|
|
} from './mimeTypes';
|
|
|
|
// Types
|
|
export type {
|
|
FileSource,
|
|
FileViewerType,
|
|
DocumentAnnotation,
|
|
AnnotationResourceType,
|
|
BoundingRect,
|
|
OverlayRenderInfo,
|
|
ResolvedFile,
|
|
UseFileResolverResult,
|
|
UseDocumentAnnotationsResult,
|
|
CogniteFileViewerProps,
|
|
} from './types';
|