Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/lexical/utils/src/ |
Upload File : |
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict */ import type { EditorState, LexicalEditor, LexicalNode, ElementNode, } from 'ui.lexical.core'; export type DFSNode = $ReadOnly<{ depth: number, node: LexicalNode, }>; declare export function addClassNamesToElement( element: HTMLElement, ...classNames: Array<typeof undefined | boolean | null | string> ): void; declare export function removeClassNamesFromElement( element: HTMLElement, ...classNames: Array<typeof undefined | boolean | null | string> ): void; declare export function isMimeType( file: File, acceptableMimeTypes: Array<string>, ): boolean; declare export function mediaFileReader( files: Array<File>, acceptableMimeTypes: Array<string>, ): Promise<Array<$ReadOnly<{file: File, result: string}>>>; declare export function $dfs( startingNode?: LexicalNode, endingNode?: LexicalNode, ): Array<DFSNode>; declare function $getDepth(node: LexicalNode): number; declare export function $getNearestNodeOfType<T: LexicalNode>( node: LexicalNode, klass: Class<T>, ): T | null; export type DOMNodeToLexicalConversion = (element: Node) => LexicalNode; export type DOMNodeToLexicalConversionMap = { [string]: DOMNodeToLexicalConversion, }; declare export function $findMatchingParent( startingNode: LexicalNode, findFn: (LexicalNode) => boolean, ): LexicalNode | null; type Func = () => void; declare export function mergeRegister(...func: Array<Func>): () => void; declare export function $getNearestBlockElementAncestorOrThrow( startNode: LexicalNode, ): ElementNode; declare export function registerNestedElementResolver<N: ElementNode>( editor: LexicalEditor, targetNode: Class<N>, cloneNode: (from: N) => N, handleOverlap: (from: N, to: N) => void, ): () => void; declare export function unstable_convertLegacyJSONEditorState( editor: LexicalEditor, maybeStringifiedEditorState: string, ): EditorState; declare export function $restoreEditorState( editor: LexicalEditor, editorState: EditorState, ): void; declare export function $insertNodeToNearestRoot<T: LexicalNode>(node: T): T; declare export function $wrapNodeInElement( node: LexicalNode, createElementNode: () => ElementNode, ): ElementNode; declare export function $splitNode( node: ElementNode, offset: number, ): [ElementNode | null, ElementNode];