@conciergus/chat - v0.3.1
    Preparing search index...

    Interface ConciergusSourcesDisplayProps

    Props for ConciergusSourcesDisplay component

    interface ConciergusSourcesDisplayProps {
        sources: EnhancedSource[];
        mode?: SourcesDisplayMode;
        showPreviews?: boolean;
        showScores?: boolean;
        showCitations?: boolean;
        enableClustering?: boolean;
        maxSources?: number;
        filters?: SourceFilter;
        sortBy?: SourceSortBy;
        sortOrder?: SourceSortOrder;
        enableSearch?: boolean;
        enableFiltering?: boolean;
        citationFormat?: CitationFormat;
        enableExport?: boolean;
        formatCitation?: (source: EnhancedSource, format: CitationFormat) => string;
        onSourceSelect?: (source: EnhancedSource) => void;
        onSourceExpand?: (source: EnhancedSource) => void;
        onCitationCopy?: (citation: string, source: EnhancedSource) => void;
        onFiltersChange?: (filters: SourceFilter) => void;
        sourceRenderer?: ComponentType<SourcesRendererProps>;
        clusterRenderer?: ComponentType<ClusterRendererProps>;
        headerRenderer?: ComponentType<
            { sources: EnhancedSource[]; clusters: SourceCluster[] },
        >;
        className?: string;
        theme?: "light" | "dark" | "auto";
        ariaLabel?: string;
        ariaDescription?: string;
        [key: string]: any;
    }

    Indexable

    • [key: string]: any

      Additional props

    Index

    Properties

    sources: EnhancedSource[]

    Sources to display

    Display mode

    showPreviews?: boolean

    Show source previews

    showScores?: boolean

    Show quality scores

    showCitations?: boolean

    Show citation counts

    enableClustering?: boolean

    Enable clustering

    maxSources?: number

    Maximum sources to display

    filters?: SourceFilter

    Initial filters

    sortBy?: SourceSortBy

    Sort by field

    sortOrder?: SourceSortOrder

    Sort order

    enableSearch?: boolean

    Enable search

    enableFiltering?: boolean

    Enable filtering

    citationFormat?: CitationFormat

    Citation format

    enableExport?: boolean

    Enable citation export

    formatCitation?: (source: EnhancedSource, format: CitationFormat) => string

    Custom citation formatter

    onSourceSelect?: (source: EnhancedSource) => void

    Source selection handler

    onSourceExpand?: (source: EnhancedSource) => void

    Source expansion handler

    onCitationCopy?: (citation: string, source: EnhancedSource) => void

    Citation copy handler

    onFiltersChange?: (filters: SourceFilter) => void

    Filter change handler

    sourceRenderer?: ComponentType<SourcesRendererProps>

    Custom source renderer

    clusterRenderer?: ComponentType<ClusterRendererProps>

    Custom cluster renderer

    headerRenderer?: ComponentType<
        { sources: EnhancedSource[]; clusters: SourceCluster[] },
    >

    Custom header renderer

    className?: string

    Additional CSS classes

    theme?: "light" | "dark" | "auto"

    Color theme

    ariaLabel?: string

    Accessibility label

    ariaDescription?: string

    Accessibility description