prong-editor
Version:
Prong (PRojectional jsON Gui) is an editor framework for creating bespoke in-browser editors for JSON-based domain-specific languages (such as [Vega](https://vega.github.io/vega/), [Vega-Lite](https://vega.github.io/vega-lite/), [Tracery](https://tracery.
12 lines (11 loc) • 484 B
TypeScript
import { MenuRow } from "./compute-menu-contents";
import { SyntaxNode } from "@lezer/common";
export declare function filterContents(searchTerm: string, rows: MenuRow[]): MenuRow[];
/**
* This function potentially filters the content depending on some heuristics
* @param targetNode
* @param fullCode
* @param contents
* @returns MenuRow[]
*/
export declare function potentiallyFilterContentForGesture(targetNode: SyntaxNode, fullCode: string, contents: MenuRow[]): MenuRow[];