lexical 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Lexical.dev.js +232 -157
- package/Lexical.js.flow +2 -1
- package/Lexical.prod.js +170 -168
- package/LexicalConstants.d.ts +4 -3
- package/LexicalEditor.d.ts +9 -10
- package/LexicalNode.d.ts +7 -7
- package/LexicalSelection.d.ts +6 -6
- package/LexicalUtils.d.ts +6 -7
- package/LexicalVersion.d.ts +1 -1
- package/index.d.ts +1 -1
- package/nodes/LexicalElementNode.d.ts +1 -1
- package/nodes/LexicalTextNode.d.ts +3 -2
- package/package.json +1 -4
package/Lexical.js.flow
CHANGED
|
@@ -196,6 +196,7 @@ type TextNodeThemeClasses = {
|
|
|
196
196
|
superscript?: EditorThemeClassName,
|
|
197
197
|
};
|
|
198
198
|
export type EditorThemeClasses = {
|
|
199
|
+
characterLimit?: EditorThemeClassName,
|
|
199
200
|
ltr?: EditorThemeClassName,
|
|
200
201
|
rtl?: EditorThemeClassName,
|
|
201
202
|
text?: TextNodeThemeClasses,
|
|
@@ -302,7 +303,7 @@ export type DOMChildConversion = (
|
|
|
302
303
|
parentLexicalNode: ?LexicalNode | null,
|
|
303
304
|
) => LexicalNode | null | void;
|
|
304
305
|
export type DOMConversionMap = {
|
|
305
|
-
[NodeName]: (node:
|
|
306
|
+
[NodeName]: <T: HTMLElement>(node: T) => DOMConversion | null,
|
|
306
307
|
};
|
|
307
308
|
type NodeName = string;
|
|
308
309
|
export type DOMConversionOutput = {
|