@lexical/code 0.2.2 → 0.2.3

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/LexicalCode.d.ts CHANGED
@@ -44,6 +44,9 @@ declare function getLastCodeHighlightNodeOfLine(
44
44
  anchor: LexicalNode,
45
45
  ): null | undefined | CodeHighlightNode;
46
46
 
47
+ declare function getDefaultCodeLanguage(): string;
48
+ declare function getCodeLanguages(): Array<string>;
49
+
47
50
  declare class CodeHighlightNode extends TextNode {
48
51
  __highlightType: null | undefined | string;
49
52
  constructor(text: string, highlightType?: string, key?: NodeKey);
@@ -46,6 +46,9 @@ declare export function getLastCodeHighlightNodeOfLine(
46
46
  anchor: LexicalNode,
47
47
  ): ?CodeHighlightNode;
48
48
 
49
+ declare export function getDefaultCodeLanguage(): string;
50
+ declare export function getCodeLanguages(): Array<string>;
51
+
49
52
  declare export class CodeHighlightNode extends TextNode {
50
53
  __highlightType: ?string;
51
54
  constructor(text: string, highlightType?: string, key?: NodeKey): void;
package/package.json CHANGED
@@ -8,13 +8,13 @@
8
8
  "code"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.2.2",
11
+ "version": "0.2.3",
12
12
  "main": "LexicalCode.js",
13
13
  "peerDependencies": {
14
- "lexical": "0.2.2"
14
+ "lexical": "0.2.3"
15
15
  },
16
16
  "dependencies": {
17
- "@lexical/utils": "0.2.2",
17
+ "@lexical/utils": "0.2.3",
18
18
  "prismjs": "^1.27.0"
19
19
  },
20
20
  "repository": {