@lexical/code 0.48.0 → 0.48.1-nightly.20260720.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.
@@ -40,9 +40,7 @@ declare export function $isCodeHighlightNode(
40
40
 
41
41
  declare export class CodeHighlightNode extends TextNode {
42
42
  __highlightType: ?string;
43
- constructor(text: string, highlightType?: string, key?: NodeKey): void;
44
- static getType(): string;
45
- static clone(node: CodeHighlightNode): CodeHighlightNode;
43
+ constructor(text?: string, highlightType?: string, key?: NodeKey): void;
46
44
  createDOM(config: EditorConfig): HTMLElement;
47
45
  setFormat(format: number): this;
48
46
  }
@@ -95,9 +93,7 @@ declare export function $isCodeNode(
95
93
 
96
94
  declare export class CodeNode extends ElementNode {
97
95
  __language: string | null | void;
98
- static getType(): string;
99
- static clone(node: CodeNode): CodeNode;
100
- constructor(language: ?string, key?: NodeKey): void;
96
+ constructor(language?: ?string, key?: NodeKey): void;
101
97
  createDOM(config: EditorConfig): HTMLElement;
102
98
  insertNewAfter(
103
99
  selection: RangeSelection,
package/package.json CHANGED
@@ -8,14 +8,14 @@
8
8
  "code"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.48.0",
11
+ "version": "0.48.1-nightly.20260720.0",
12
12
  "main": "./dist/LexicalCode.js",
13
13
  "types": "./dist/typescript-too-old.d.ts",
14
14
  "dependencies": {
15
- "@lexical/code-core": "0.48.0",
16
- "@lexical/code-prism": "0.48.0",
17
- "lexical": "0.48.0",
18
- "@lexical/extension": "0.48.0"
15
+ "@lexical/code-prism": "0.48.1-nightly.20260720.0",
16
+ "@lexical/extension": "0.48.1-nightly.20260720.0",
17
+ "@lexical/code-core": "0.48.1-nightly.20260720.0",
18
+ "lexical": "0.48.1-nightly.20260720.0"
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",