Comparing version 0.14.3 to 0.14.4
@@ -1,2 +0,1 @@ | ||
/** @module lexical */ | ||
/** | ||
@@ -10,3 +9,3 @@ * Copyright (c) Meta Platforms, Inc. and affiliates. | ||
export type { PasteCommandType } from './LexicalCommands'; | ||
export type { CommandListener, CommandListenerPriority, CommandPayloadType, CreateEditorArgs, EditableListener, EditorConfig, EditorThemeClasses, HTMLConfig, Klass, KlassConstructor, LexicalCommand, LexicalEditor, LexicalNodeReplacement, MutationListener, NodeMutation, SerializedEditor, Spread, Transform, } from './LexicalEditor'; | ||
export type { CommandListener, CommandListenerPriority, CommandPayloadType, CreateEditorArgs, EditableListener, EditorConfig, EditorSetOptions, EditorThemeClasses, HTMLConfig, Klass, KlassConstructor, LexicalCommand, LexicalEditor, LexicalNodeReplacement, MutationListener, NodeMutation, SerializedEditor, Spread, Transform, } from './LexicalEditor'; | ||
export type { EditorState, SerializedEditorState } from './LexicalEditorState'; | ||
@@ -13,0 +12,0 @@ export type { DOMChildConversion, DOMConversion, DOMConversionFn, DOMConversionMap, DOMConversionOutput, DOMExportOutput, LexicalNode, NodeKey, NodeMap, SerializedLexicalNode, } from './LexicalNode'; |
@@ -8,11 +8,21 @@ /** | ||
*/ | ||
import type { EditorConfig, LexicalEditor } from '../LexicalEditor'; | ||
import type { DOMConversionMap, DOMExportOutput, LexicalNode } from '../LexicalNode'; | ||
import type { EditorConfig, KlassConstructor, LexicalEditor, Spread } from '../LexicalEditor'; | ||
import type { DOMConversionMap, DOMExportOutput, LexicalNode, NodeKey } from '../LexicalNode'; | ||
import type { SerializedElementNode } from './LexicalElementNode'; | ||
import type { RangeSelection } from 'lexical'; | ||
import { ElementNode } from './LexicalElementNode'; | ||
export type SerializedParagraphNode = SerializedElementNode; | ||
import { TextFormatType } from './LexicalTextNode'; | ||
export type SerializedParagraphNode = Spread<{ | ||
textFormat: number; | ||
}, SerializedElementNode>; | ||
/** @noInheritDoc */ | ||
export declare class ParagraphNode extends ElementNode { | ||
['constructor']: KlassConstructor<typeof ParagraphNode>; | ||
/** @internal */ | ||
__textFormat: number; | ||
constructor(key?: NodeKey); | ||
static getType(): string; | ||
getTextFormat(): number; | ||
setTextFormat(type: number): this; | ||
hasTextFormat(type: TextFormatType): boolean; | ||
static clone(node: ParagraphNode): ParagraphNode; | ||
@@ -24,4 +34,4 @@ createDOM(config: EditorConfig): HTMLElement; | ||
static importJSON(serializedNode: SerializedParagraphNode): ParagraphNode; | ||
exportJSON(): SerializedElementNode; | ||
insertNewAfter(_: RangeSelection, restoreSelection: boolean): ParagraphNode; | ||
exportJSON(): SerializedParagraphNode; | ||
insertNewAfter(rangeSelection: RangeSelection, restoreSelection: boolean): ParagraphNode; | ||
collapseAtStart(): boolean; | ||
@@ -28,0 +38,0 @@ } |
@@ -158,3 +158,3 @@ /** | ||
* may be applied to the node. For toggling behavior, consider using {@link TextNode.toggleDirectionless} | ||
* or {@link TextNode.togglerUnmergeable} | ||
* or {@link TextNode.toggleUnmergeable} | ||
* | ||
@@ -161,0 +161,0 @@ * @param detail - TextDetailType or 32-bit integer representing the node detail. |
@@ -12,3 +12,3 @@ { | ||
"license": "MIT", | ||
"version": "0.14.3", | ||
"version": "0.14.4", | ||
"main": "Lexical.js", | ||
@@ -27,2 +27,4 @@ "types": "index.d.ts", | ||
"types": "./index.d.ts", | ||
"development": "./Lexical.dev.mjs", | ||
"production": "./Lexical.prod.mjs", | ||
"node": "./Lexical.node.mjs", | ||
@@ -33,2 +35,4 @@ "default": "./Lexical.mjs" | ||
"types": "./index.d.ts", | ||
"development": "./Lexical.dev.js", | ||
"production": "./Lexical.prod.js", | ||
"default": "./Lexical.js" | ||
@@ -35,0 +39,0 @@ } |
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 not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1021762
21884