@lexical/code 0.6.3 → 0.6.4

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/CodeNode.d.ts CHANGED
@@ -19,7 +19,7 @@ import 'prismjs/components/prism-python';
19
19
  import 'prismjs/components/prism-rust';
20
20
  import 'prismjs/components/prism-swift';
21
21
  import { ElementNode } from 'lexical';
22
- declare type SerializedCodeNode = Spread<{
22
+ export declare type SerializedCodeNode = Spread<{
23
23
  language: string | null | undefined;
24
24
  type: 'code';
25
25
  version: 1;
@@ -45,4 +45,3 @@ export declare class CodeNode extends ElementNode {
45
45
  }
46
46
  export declare function $createCodeNode(language?: string | null | undefined): CodeNode;
47
47
  export declare function $isCodeNode(node: LexicalNode | null | undefined): node is CodeNode;
48
- export {};
package/index.d.ts CHANGED
@@ -9,4 +9,5 @@
9
9
  */
10
10
  export { getEndOfCodeInLine, getStartOfCodeInLine, PrismTokenizer, registerCodeHighlighting, } from './CodeHighlighter';
11
11
  export { $createCodeHighlightNode, $isCodeHighlightNode, CODE_LANGUAGE_FRIENDLY_NAME_MAP, CODE_LANGUAGE_MAP, CodeHighlightNode, DEFAULT_CODE_LANGUAGE, getCodeLanguages, getDefaultCodeLanguage, getFirstCodeHighlightNodeOfLine, getLanguageFriendlyName, getLastCodeHighlightNodeOfLine, normalizeCodeLang, } from './CodeHighlightNode';
12
+ export type { SerializedCodeNode } from './CodeNode';
12
13
  export { $createCodeNode, $isCodeNode, CodeNode } from './CodeNode';
package/package.json CHANGED
@@ -8,13 +8,13 @@
8
8
  "code"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.6.3",
11
+ "version": "0.6.4",
12
12
  "main": "LexicalCode.js",
13
13
  "peerDependencies": {
14
- "lexical": "0.6.3"
14
+ "lexical": "0.6.4"
15
15
  },
16
16
  "dependencies": {
17
- "@lexical/utils": "0.6.3",
17
+ "@lexical/utils": "0.6.4",
18
18
  "prismjs": "^1.27.0"
19
19
  },
20
20
  "repository": {