@webiny/lexical-nodes 5.40.6 → 5.41.0-beta.0

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.
@@ -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 declare type SerializedFontColorNode = Spread<{
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 declare type SerializeHeadingNode = Spread<{
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 declare type SerializedImageNode = Spread<{
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 declare type LinkAttributes = {
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 declare type SerializedLinkNode = Spread<{
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 declare type SerializedAutoLinkNode = SerializedLinkNode;
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 declare type SerializedWebinyListItemNode = Spread<{
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 declare type SerializedWebinyListNode = Spread<{
4
+ export type SerializedWebinyListNode = Spread<{
5
5
  themeStyleId: string;
6
6
  listType: ListType;
7
7
  start: number;
@@ -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 declare type SerializeParagraphNode = Spread<{
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 declare type SerializedQuoteNode = Spread<{
5
+ export type SerializedQuoteNode = Spread<{
6
6
  styleId?: string;
7
7
  styles: ThemeStyleValue[];
8
8
  type: "webiny-quote";
@@ -6,7 +6,7 @@ export interface TypographyPayload {
6
6
  caption?: LexicalEditor;
7
7
  key?: NodeKey;
8
8
  }
9
- export declare type SerializedTypographyNode = Spread<{
9
+ export type SerializedTypographyNode = Spread<{
10
10
  tag: TypographyHTMLTag;
11
11
  styleId: string;
12
12
  name: string;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from "react";
2
2
  import { HistoryState } from "@lexical/history";
3
- declare type ContextShape = {
3
+ type ContextShape = {
4
4
  historyState?: HistoryState;
5
5
  };
6
6
  export declare const SharedHistoryContext: ({ children }: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/lexical-nodes",
3
- "version": "5.40.6",
3
+ "version": "5.41.0-beta.0",
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.40.6",
16
+ "@webiny/lexical-theme": "5.41.0-beta.0",
17
17
  "lexical": "0.16.1"
18
18
  },
19
19
  "devDependencies": {
20
- "@webiny/cli": "5.40.6",
21
- "@webiny/project-utils": "5.40.6",
20
+ "@webiny/cli": "5.41.0-beta.0",
21
+ "@webiny/project-utils": "5.41.0-beta.0",
22
22
  "react": "18.2.0"
23
23
  },
24
24
  "publishConfig": {
@@ -36,5 +36,5 @@
36
36
  ]
37
37
  }
38
38
  },
39
- "gitHead": "f9da84b373e62f9f269599c4301e5e4418a98d51"
39
+ "gitHead": "9ce5e75fc577aa4de2cf08d5ca734b3c98fe65b6"
40
40
  }
package/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type ThemeStyleType = "typography" | "colors" | "fonts";
1
+ export type ThemeStyleType = "typography" | "colors" | "fonts";
2
2
  export interface ThemeStyleValue {
3
3
  styleId: string;
4
4
  type: ThemeStyleType;