Files
md-files/.claude/skills/integrate-file-viewer/code/index.ts
T
2026-05-31 20:25:41 +00:00

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';