UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

29 lines 1.36 kB
import { VueRenderer } from '@tiptap/vue-3'; export function createDefaultVirtualElement(): Object; export function createVirtualElement(clientRect: Function): Object; export function updateFloatingPosition(floatingEl: HTMLElement, virtualEl: Object, options?: { placement: string; middleware: any[]; }): Promise<void>; export function initializeFloatingElement(element: HTMLElement, options?: { zIndex: string; }): void; export function showFloatingElement(element: HTMLElement): void; export function hideFloatingElement(element: HTMLElement): void; export function createEscapeHandler(onEscape: Function, isActive: Function): Function; export function attachEscapeHandler(handler: Function): void; export function detachEscapeHandler(handler: Function): void; export function createSuggestionComponent(listComponent: Object, itemComponent: Object, itemType: string, props: Object): VueRenderer; export function cleanupSuggestionPopup(state: { escHandler: Function; floatingEl: HTMLElement; component: VueRenderer; }): void; export function createSuggestionRenderer(itemComponent: Object, itemType: string, options?: { listComponent: Object; placement: string; zIndex: string; }): Function; export const DEFAULT_PLACEMENT: "top-start"; export const DEFAULT_Z_INDEX: "650"; //# sourceMappingURL=suggestion_utils.d.ts.map