@kit-data-manager/pid-component
Version:
The PID-Component is a web component that can be used to evaluate and display FAIR Digital Objects, PIDs, ORCiDs, and possibly other identifiers in a user-friendly way. It is easily extensible to support other identifier types.
12 lines (11 loc) • 427 B
TypeScript
export interface DetectionEntry {
key: string;
check: (value: string) => boolean;
autoDiscoverableByDefault: boolean;
}
export declare const detectionRegistry: DetectionEntry[];
export declare function sanitizeToken(token: string): {
sanitized: string;
leadingStripped: number;
};
export declare function detectBestFit(value: string, orderedRendererKeys?: string[], fallbackToAll?: boolean): string | null;