UNPKG

ngx-tiptap-editor

Version:

[![Build and Publish](https://github.com/HuiiBuh/ngx-tiptap-editor/actions/workflows/publish.yml/badge.svg)](https://github.com/HuiiBuh/ngx-tiptap-editor/actions/workflows/publish.yml) [![Deploy to Github Pages](https://github.com/HuiiBuh/ngx-tiptap-edito

30 lines (29 loc) 1.29 kB
import { ChangeDetectorRef, InjectionToken } from '@angular/core'; import { Editor } from '@tiptap/core'; import { SuggestionProps } from '@tiptap/suggestion'; import { MentionData } from './ngx-mention'; import * as i0 from "@angular/core"; export declare const MENTION_FETCH: InjectionToken<MentionFetchFunction>; export declare type MentionFetchFunction = (query: string) => MentionData[] | Promise<MentionData[]>; export interface MentionPreviewInterface { handleKeyPress(event: KeyboardEvent): boolean; updateProps(props: SuggestionProps): void; } export declare class MentionPreviewComponent implements MentionPreviewInterface { private ngZone; private cd; private editor; private fetchFunction; queryResult: { id: string; }[]; private mentionProps; constructor(ngZone: ChangeDetectorRef, cd: ChangeDetectorRef, editor: Editor, fetchFunction: MentionFetchFunction); handleKeyPress(event: KeyboardEvent): boolean; updateProps(props: SuggestionProps): Promise<void>; setMention(mention: { id: string; }): void; static ɵfac: i0.ɵɵFactoryDeclaration<MentionPreviewComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MentionPreviewComponent, "tip-mention-select", never, {}, {}, never, never>; }