UNPKG

@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.

49 lines (48 loc) 1.48 kB
import { FunctionalComponent } from '../stencil-public-runtime'; import { GenericIdentifierType } from '../utils/GenericIdentifierType'; interface SPDXLicense { licenseId: string; name: string; reference?: string; detailsUrl?: string; referenceNumber?: string; isDeprecatedLicenseId?: boolean; isOsiApproved?: boolean; isFsfLibre?: boolean; deprecatedVersion?: string; licenseText?: string; standardLicenseHeader?: string; seeAlso?: string[]; } export declare class SPDXType extends GenericIdentifierType { private licenseData; private licenseId; private readonly corsFallback; private readonly corsProxy; private readonly spdxBaseUrl; private readonly fileFormat; private readonly requestTimeout; getSettingsKey(): string; hasCorrectFormat(): Promise<boolean>; private validateLicense; private buildLicenseApiUrl; get data(): SPDXLicense | null; logLicenseData(): void; init(): Promise<void>; private extractLicenseIdFromInput; private fetchLicenseData; private tryFallbackOptions; private buildApiUrl; private populateLicenseData; private addDeprecationInfo; private addFsfInfo; private addRelatedUrls; private addActionButtons; private addOfficialLicenseLink; private findOfficialUrl; private handleInitError; private addBasicErrorInfo; private addNetworkIssueInfo; renderPreview(): FunctionalComponent; } export {};