import { CardStack, CardStackContent, CardStackEntryField, } from "@executor-js/react/components/card-stack"; import { Input } from "@executor-js/react/components/input"; import { Textarea } from "@executor-js/react/components/textarea"; import { IntegrationIdentityFieldRows, type IntegrationIdentity, } from "@executor-js/react/plugins/integration-identity"; export function GraphqlIntegrationFields(props: { readonly endpoint: string; readonly onEndpointChange: (endpoint: string) => void; readonly identity: IntegrationIdentity; /** The integration's agent-visible description. Blank = the backend falls * back to the introspected schema's own description, then the name. */ readonly description?: string; readonly onDescriptionChange?: (value: string) => void; readonly endpointDisabled?: boolean; readonly namespaceReadOnly?: boolean; }) { return ( props.onEndpointChange((e.target as HTMLInputElement).value)} placeholder="https://api.example.com/graphql" className="font-mono text-sm" disabled={props.endpointDisabled} /> {props.onDescriptionChange && (