Comparing version 0.10.0 to 0.11.0
@@ -18,7 +18,7 @@ /** @module lexical */ | ||
export type { SerializedTextNode, TextFormatType, TextModeType, } from './nodes/LexicalTextNode'; | ||
export { BLUR_COMMAND, CAN_REDO_COMMAND, CAN_UNDO_COMMAND, CLEAR_EDITOR_COMMAND, CLEAR_HISTORY_COMMAND, CLICK_COMMAND, CONTROLLED_TEXT_INSERTION_COMMAND, COPY_COMMAND, createCommand, CUT_COMMAND, DELETE_CHARACTER_COMMAND, DELETE_LINE_COMMAND, DELETE_WORD_COMMAND, DRAGEND_COMMAND, DRAGOVER_COMMAND, DRAGSTART_COMMAND, DROP_COMMAND, FOCUS_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, INDENT_CONTENT_COMMAND, INSERT_LINE_BREAK_COMMAND, INSERT_PARAGRAPH_COMMAND, KEY_ARROW_DOWN_COMMAND, KEY_ARROW_LEFT_COMMAND, KEY_ARROW_RIGHT_COMMAND, KEY_ARROW_UP_COMMAND, KEY_BACKSPACE_COMMAND, KEY_DELETE_COMMAND, KEY_DOWN_COMMAND, KEY_ENTER_COMMAND, KEY_ESCAPE_COMMAND, KEY_MODIFIER_COMMAND, KEY_SPACE_COMMAND, KEY_TAB_COMMAND, MOVE_TO_END, MOVE_TO_START, OUTDENT_CONTENT_COMMAND, PASTE_COMMAND, REDO_COMMAND, REMOVE_TEXT_COMMAND, SELECTION_CHANGE_COMMAND, UNDO_COMMAND, } from './LexicalCommands'; | ||
export { BLUR_COMMAND, CAN_REDO_COMMAND, CAN_UNDO_COMMAND, CLEAR_EDITOR_COMMAND, CLEAR_HISTORY_COMMAND, CLICK_COMMAND, CONTROLLED_TEXT_INSERTION_COMMAND, COPY_COMMAND, createCommand, CUT_COMMAND, DELETE_CHARACTER_COMMAND, DELETE_LINE_COMMAND, DELETE_WORD_COMMAND, DRAGEND_COMMAND, DRAGOVER_COMMAND, DRAGSTART_COMMAND, DROP_COMMAND, FOCUS_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, INDENT_CONTENT_COMMAND, INSERT_LINE_BREAK_COMMAND, INSERT_PARAGRAPH_COMMAND, INSERT_TAB_COMMAND, KEY_ARROW_DOWN_COMMAND, KEY_ARROW_LEFT_COMMAND, KEY_ARROW_RIGHT_COMMAND, KEY_ARROW_UP_COMMAND, KEY_BACKSPACE_COMMAND, KEY_DELETE_COMMAND, KEY_DOWN_COMMAND, KEY_ENTER_COMMAND, KEY_ESCAPE_COMMAND, KEY_MODIFIER_COMMAND, KEY_SPACE_COMMAND, KEY_TAB_COMMAND, MOVE_TO_END, MOVE_TO_START, OUTDENT_CONTENT_COMMAND, PASTE_COMMAND, REDO_COMMAND, REMOVE_TEXT_COMMAND, SELECTION_CHANGE_COMMAND, UNDO_COMMAND, } from './LexicalCommands'; | ||
export { COMMAND_PRIORITY_CRITICAL, COMMAND_PRIORITY_EDITOR, COMMAND_PRIORITY_HIGH, COMMAND_PRIORITY_LOW, COMMAND_PRIORITY_NORMAL, createEditor, } from './LexicalEditor'; | ||
export type { EventHandler } from './LexicalEvents'; | ||
export { $normalizeSelection as $normalizeSelection__EXPERIMENTAL } from './LexicalNormalization'; | ||
export { $createNodeSelection, $createRangeSelection, $getPreviousSelection, $getSelection, $getTextContent, $insertNodes, $isNodeSelection, $isRangeSelection, DEPRECATED_$computeGridMap, DEPRECATED_$createGridSelection, DEPRECATED_$getNodeTriplet, DEPRECATED_$isGridSelection, } from './LexicalSelection'; | ||
export { $createNodeSelection, $createRangeSelection, $getPreviousSelection, $getSelection, $getTextContent, $insertNodes, $isBlockElementNode, $isNodeSelection, $isRangeSelection, DEPRECATED_$computeGridMap, DEPRECATED_$createGridSelection, DEPRECATED_$getNodeTriplet, DEPRECATED_$isGridSelection, } from './LexicalSelection'; | ||
export { $parseSerializedNode } from './LexicalUpdates'; | ||
@@ -36,2 +36,4 @@ export { $addUpdateTag, $applyNodeReplacement, $copyNode, $getAdjacentNode, $getNearestNodeFromDOMNode, $getNearestRootOrShadowRoot, $getNodeByKey, $getRoot, $hasAncestor, $hasUpdateTag, $isInlineElementOrDecoratorNode, $isLeafNode, $isRootOrShadowRoot, $nodesOfType, $setCompositionKey, $setSelection, $splitNode, getNearestEditorFromDOMNode, isSelectionCapturedInDecoratorInput, isSelectionWithinEditor, } from './LexicalUtils'; | ||
export { $isRootNode, RootNode } from './nodes/LexicalRootNode'; | ||
export type { SerializedTabNode } from './nodes/LexicalTabNode'; | ||
export { $createTabNode, $isTabNode, TabNode } from './nodes/LexicalTabNode'; | ||
export { $createTextNode, $isTextNode, TextNode } from './nodes/LexicalTextNode'; |
@@ -37,2 +37,3 @@ /** | ||
export declare const KEY_TAB_COMMAND: LexicalCommand<KeyboardEvent>; | ||
export declare const INSERT_TAB_COMMAND: LexicalCommand<void>; | ||
export declare const INDENT_CONTENT_COMMAND: LexicalCommand<void>; | ||
@@ -39,0 +40,0 @@ export declare const OUTDENT_CONTENT_COMMAND: LexicalCommand<void>; |
@@ -21,3 +21,3 @@ /** | ||
}; | ||
export declare type DOMConversionFn<T extends HTMLElement = HTMLElement> = (element: T, parent?: Node, preformatted?: boolean) => DOMConversionOutput | null; | ||
export declare type DOMConversionFn<T extends HTMLElement = HTMLElement> = (element: T) => DOMConversionOutput | null; | ||
export declare type DOMChildConversion = (lexicalNode: LexicalNode, parentLexicalNode: LexicalNode | null | undefined) => LexicalNode | null | undefined; | ||
@@ -29,4 +29,3 @@ export declare type DOMConversionMap<T extends HTMLElement = HTMLElement> = Record<NodeName, (node: T) => DOMConversion<T> | null>; | ||
forChild?: DOMChildConversion; | ||
node: LexicalNode | null; | ||
preformatted?: boolean; | ||
node: null | LexicalNode | Array<LexicalNode>; | ||
}; | ||
@@ -33,0 +32,0 @@ export declare type DOMExportOutput = { |
@@ -144,2 +144,3 @@ /** | ||
export declare function $isNodeSelection(x: unknown): x is NodeSelection; | ||
export declare function $isBlockElementNode(node: LexicalNode | null | undefined): node is ElementNode; | ||
export declare function internalMakeRangeSelection(anchorKey: NodeKey, anchorOffset: number, focusKey: NodeKey, focusOffset: number, anchorType: 'text' | 'element', focusType: 'text' | 'element'): RangeSelection; | ||
@@ -146,0 +147,0 @@ export declare function $createRangeSelection(): RangeSelection; |
@@ -68,3 +68,2 @@ /** | ||
insertNewAfter(selection: RangeSelection, restoreSelection?: boolean): null | LexicalNode; | ||
canInsertTab(): boolean; | ||
canIndent(): boolean; | ||
@@ -71,0 +70,0 @@ collapseAtStart(selection: RangeSelection): boolean; |
@@ -11,4 +11,4 @@ /** | ||
export declare type SerializedGridCellNode = Spread<{ | ||
colSpan: number; | ||
rowSpan: number; | ||
colSpan?: number; | ||
rowSpan?: number; | ||
}, SerializedElementNode>; | ||
@@ -15,0 +15,0 @@ /** @noInheritDoc */ |
@@ -74,3 +74,2 @@ /** | ||
canInsertTextAfter(): boolean; | ||
canContainTabs(): boolean; | ||
splitText(...splitOffsets: Array<number>): Array<TextNode>; | ||
@@ -80,3 +79,4 @@ mergeWithSibling(target: TextNode): TextNode; | ||
} | ||
export declare function findParentPreDOMNode(node: Node): Node | null; | ||
export declare function $createTextNode(text?: string): TextNode; | ||
export declare function $isTextNode(node: LexicalNode | null | undefined): node is TextNode; |
@@ -12,3 +12,3 @@ { | ||
"license": "MIT", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"main": "Lexical.js", | ||
@@ -15,0 +15,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
557431
31
11270