@webiny/lexical-nodes 5.40.6 → 5.41.0-beta.1
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/FontColorNode.d.ts +1 -1
- package/HeadingNode.d.ts +1 -1
- package/ImageNode.d.ts +1 -1
- package/LinkNode.d.ts +3 -3
- package/ListItemNode.d.ts +1 -1
- package/ListNode.d.ts +1 -1
- package/ParagraphNode.d.ts +1 -1
- package/QuoteNode.d.ts +1 -1
- package/TypographyNode.d.ts +1 -1
- package/components/ImageNode/SharedHistoryContext.d.ts +1 -1
- package/package.json +5 -5
- package/types.d.ts +1 -1
package/FontColorNode.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const ADD_FONT_COLOR_COMMAND: import("lexical").LexicalCommand<Fo
|
|
|
12
12
|
export interface FontColorPayload {
|
|
13
13
|
color: ThemeColorValue;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type SerializedFontColorNode = Spread<{
|
|
16
16
|
themeColor: string;
|
|
17
17
|
color: string;
|
|
18
18
|
type: "font-color-node";
|
package/HeadingNode.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { HeadingNode as BaseHeadingNode, HeadingTagType, SerializedHeadingNode a
|
|
|
3
3
|
import { WebinyTheme } from "@webiny/lexical-theme";
|
|
4
4
|
import { ParagraphNode } from "./ParagraphNode";
|
|
5
5
|
import { TypographyStylesNode, ThemeStyleValue, TextNodeThemeStyles } from "./types";
|
|
6
|
-
export
|
|
6
|
+
export type SerializeHeadingNode = Spread<{
|
|
7
7
|
styles: ThemeStyleValue[];
|
|
8
8
|
type: "heading-element";
|
|
9
9
|
}, BaseSerializedHeadingNode>;
|
package/ImageNode.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DOMConversionMap, DOMExportOutput, EditorConfig, LexicalEditor, LexicalNode, NodeKey, SerializedEditor, SerializedLexicalNode, Spread } from "lexical";
|
|
3
3
|
import { DecoratorNode } from "lexical";
|
|
4
|
-
export
|
|
4
|
+
export type SerializedImageNode = Spread<{
|
|
5
5
|
id: string;
|
|
6
6
|
altText: string;
|
|
7
7
|
caption: SerializedEditor;
|
package/LinkNode.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { DOMConversionMap, EditorConfig, RangeSelection, LexicalCommand, LexicalNode, NodeKey, SerializedElementNode } from "lexical";
|
|
10
10
|
import { ElementNode, Spread } from "lexical";
|
|
11
|
-
export
|
|
11
|
+
export type LinkAttributes = {
|
|
12
12
|
rel?: null | string;
|
|
13
13
|
target?: null | string;
|
|
14
14
|
title?: null | string;
|
|
@@ -19,7 +19,7 @@ declare global {
|
|
|
19
19
|
alt?: string;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type SerializedLinkNode = Spread<{
|
|
23
23
|
url: string;
|
|
24
24
|
}, Spread<LinkAttributes, SerializedElementNode>>;
|
|
25
25
|
/** @noInheritDoc */
|
|
@@ -73,7 +73,7 @@ export declare function $createLinkNode(url: string, attributes?: LinkAttributes
|
|
|
73
73
|
* @returns true if node is a LinkNode, false otherwise.
|
|
74
74
|
*/
|
|
75
75
|
export declare function $isLinkNode(node: LexicalNode | null | undefined): node is LinkNode;
|
|
76
|
-
export
|
|
76
|
+
export type SerializedAutoLinkNode = SerializedLinkNode;
|
|
77
77
|
export declare class AutoLinkNode extends LinkNode {
|
|
78
78
|
static getType(): string;
|
|
79
79
|
static clone(node: AutoLinkNode): AutoLinkNode;
|
package/ListItemNode.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DOMConversionMap, EditorConfig, ElementNode, LexicalNode, NodeKey, ParagraphNode, RangeSelection, SerializedElementNode, Spread } from "lexical";
|
|
2
|
-
export
|
|
2
|
+
export type SerializedWebinyListItemNode = Spread<{
|
|
3
3
|
checked: boolean | undefined;
|
|
4
4
|
type: "webiny-listitem";
|
|
5
5
|
value: number;
|
package/ListNode.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DOMConversion, DOMConversionMap, EditorConfig, ElementNode, LexicalNode, NodeKey, SerializedElementNode, Spread } from "lexical";
|
|
2
2
|
import { ListNodeTagType } from "@lexical/list/LexicalListNode";
|
|
3
3
|
import { ListType } from "@lexical/list";
|
|
4
|
-
export
|
|
4
|
+
export type SerializedWebinyListNode = Spread<{
|
|
5
5
|
themeStyleId: string;
|
|
6
6
|
listType: ListType;
|
|
7
7
|
start: number;
|
package/ParagraphNode.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { DOMConversionMap, LexicalNode, NodeKey, ParagraphNode as BaseParagraphN
|
|
|
2
2
|
import { EditorConfig } from "lexical";
|
|
3
3
|
import { ThemeEmotionMap } from "@webiny/lexical-theme";
|
|
4
4
|
import { TypographyStylesNode, ThemeStyleValue, TextNodeThemeStyles } from "./types";
|
|
5
|
-
export
|
|
5
|
+
export type SerializeParagraphNode = Spread<{
|
|
6
6
|
styles: ThemeStyleValue[];
|
|
7
7
|
type: "paragraph-element";
|
|
8
8
|
}, SerializedBaseParagraphNode>;
|
package/QuoteNode.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { DOMConversion, DOMConversionMap, EditorConfig, LexicalNode, NodeKey, Sp
|
|
|
2
2
|
import { EditorTheme, ThemeEmotionMap } from "@webiny/lexical-theme";
|
|
3
3
|
import { QuoteNode as BaseQuoteNode, SerializedQuoteNode as BaseSerializedQuoteNode } from "@lexical/rich-text";
|
|
4
4
|
import { TextNodeThemeStyles, ThemeStyleValue, TypographyStylesNode } from "./types";
|
|
5
|
-
export
|
|
5
|
+
export type SerializedQuoteNode = Spread<{
|
|
6
6
|
styleId?: string;
|
|
7
7
|
styles: ThemeStyleValue[];
|
|
8
8
|
type: "webiny-quote";
|
package/TypographyNode.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/lexical-nodes",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.41.0-beta.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@lexical/code": "0.16.1",
|
|
6
6
|
"@lexical/hashtag": "0.16.1",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"@lexical/selection": "0.16.1",
|
|
14
14
|
"@lexical/utils": "0.16.1",
|
|
15
15
|
"@types/prismjs": "1.26.4",
|
|
16
|
-
"@webiny/lexical-theme": "5.
|
|
16
|
+
"@webiny/lexical-theme": "5.41.0-beta.1",
|
|
17
17
|
"lexical": "0.16.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@webiny/cli": "5.
|
|
21
|
-
"@webiny/project-utils": "5.
|
|
20
|
+
"@webiny/cli": "5.41.0-beta.1",
|
|
21
|
+
"@webiny/project-utils": "5.41.0-beta.1",
|
|
22
22
|
"react": "18.2.0"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
]
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "2035c6fdbac9f52545b5024a381bc568c66ca899"
|
|
40
40
|
}
|
package/types.d.ts
CHANGED