@reactodia/workspace
Version:
Reactodia Workspace -- library for visual interaction with graphs in a form of a diagram.
28 lines • 896 B
TypeScript
import { Element } from '../diagram/elements';
export interface ConnectionsMenuProps {
openAllByDefault?: boolean;
suggestProperties?: PropertySuggestionHandler;
}
export interface ConnectionsMenuCommands {
findCapabilities: {
readonly capabilities: Array<Record<string, never>>;
};
show: {
readonly targets: ReadonlyArray<Element>;
readonly openAll?: boolean;
};
}
export type PropertySuggestionHandler = (params: PropertySuggestionParams) => Promise<PropertyScore[]>;
export interface PropertySuggestionParams {
elementId: string;
token: string;
properties: readonly string[];
lang: string;
signal: AbortSignal | undefined;
}
export interface PropertyScore {
propertyIri: string;
score: number;
}
export declare function ConnectionsMenu(props: ConnectionsMenuProps): null;
//# sourceMappingURL=connectionsMenu.d.ts.map