This commit is contained in:
Ole
2026-05-31 20:25:41 +00:00
commit 0a07ab8593
275 changed files with 52660 additions and 0 deletions
@@ -0,0 +1,40 @@
// 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';