UNPKG

polen

Version:

A framework for delightful GraphQL developer portals

39 lines 1.32 kB
/** * Interactive overlay for GraphQL identifiers */ import type { React } from '#dep/react/index'; import type { DOMPosition } from '../positioning-simple.js'; import type { SchemaResolution } from '../schema-integration.js'; import type { Identifier } from '../types.js'; export interface IdentifierLinkProps { /** The GraphQL identifier */ identifier: Identifier; /** Schema resolution information */ resolution: SchemaResolution; /** DOM position for overlay placement */ position: DOMPosition; /** Navigation handler */ onNavigate: (url: string) => void; /** Whether to show debug visuals */ debug?: boolean; /** Whether this tooltip is open */ isOpen: boolean; /** Whether this tooltip is pinned */ isPinned: boolean; /** Handle hover start */ onHoverStart: () => void; /** Handle hover end */ onHoverEnd: () => void; /** Toggle pin state */ onTogglePin: () => void; /** Handle tooltip hover */ onTooltipHover: () => void; } /** * Interactive overlay for a GraphQL identifier * * Renders an invisible clickable area over the identifier text * with hover popovers and navigation to schema reference pages. */ export declare const IdentifierLink: React.FC<IdentifierLinkProps>; //# sourceMappingURL=IdentifierLink.d.ts.map