@lexical/code 0.44.1-nightly.20260501.0 → 0.44.1-nightly.20260504.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.
- package/LexicalCode.dev.js +2 -0
- package/LexicalCode.dev.mjs +1 -1
- package/LexicalCode.js.flow +13 -0
- package/LexicalCode.mjs +2 -0
- package/LexicalCode.node.mjs +2 -0
- package/LexicalCode.prod.js +1 -1
- package/LexicalCode.prod.mjs +1 -1
- package/index.d.ts +1 -1
- package/package.json +5 -5
package/LexicalCode.dev.js
CHANGED
|
@@ -63,8 +63,10 @@ exports.$getLastCodeNodeOfLine = codeCore.$getLastCodeNodeOfLine;
|
|
|
63
63
|
exports.$getStartOfCodeInLine = codeCore.$getStartOfCodeInLine;
|
|
64
64
|
exports.$isCodeHighlightNode = codeCore.$isCodeHighlightNode;
|
|
65
65
|
exports.$isCodeNode = codeCore.$isCodeNode;
|
|
66
|
+
exports.$outdentLeadingSpaces = codeCore.$outdentLeadingSpaces;
|
|
66
67
|
exports.CodeExtension = codeCore.CodeExtension;
|
|
67
68
|
exports.CodeHighlightNode = codeCore.CodeHighlightNode;
|
|
69
|
+
exports.CodeIndentExtension = codeCore.CodeIndentExtension;
|
|
68
70
|
exports.CodeNode = codeCore.CodeNode;
|
|
69
71
|
exports.DEFAULT_CODE_LANGUAGE = codeCore.DEFAULT_CODE_LANGUAGE;
|
|
70
72
|
exports.getDefaultCodeLanguage = codeCore.getDefaultCodeLanguage;
|
package/LexicalCode.dev.mjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as LexicalCodePrism from '@lexical/code-prism';
|
|
10
|
-
export { $createCodeHighlightNode, $createCodeNode, $getCodeLineDirection, $getEndOfCodeInLine, $getFirstCodeNodeOfLine, $getLastCodeNodeOfLine, $getStartOfCodeInLine, $isCodeHighlightNode, $isCodeNode, CodeExtension, CodeHighlightNode, CodeNode, DEFAULT_CODE_LANGUAGE, getDefaultCodeLanguage } from '@lexical/code-core';
|
|
10
|
+
export { $createCodeHighlightNode, $createCodeNode, $getCodeLineDirection, $getEndOfCodeInLine, $getFirstCodeNodeOfLine, $getLastCodeNodeOfLine, $getStartOfCodeInLine, $isCodeHighlightNode, $isCodeNode, $outdentLeadingSpaces, CodeExtension, CodeHighlightNode, CodeIndentExtension, CodeNode, DEFAULT_CODE_LANGUAGE, getDefaultCodeLanguage } from '@lexical/code-core';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
package/LexicalCode.js.flow
CHANGED
|
@@ -59,6 +59,12 @@ declare export function $getLastCodeNodeOfLine(
|
|
|
59
59
|
anchor: CodeHighlightNode | TabNode | LineBreakNode,
|
|
60
60
|
): CodeHighlightNode | TabNode | LineBreakNode;
|
|
61
61
|
|
|
62
|
+
declare export function $outdentLeadingSpaces(
|
|
63
|
+
node: CodeHighlightNode,
|
|
64
|
+
tabSize: number,
|
|
65
|
+
selection: RangeSelection,
|
|
66
|
+
): boolean;
|
|
67
|
+
|
|
62
68
|
declare export function $getEndOfCodeInLine(
|
|
63
69
|
anchor: CodeHighlightNode | TabNode,
|
|
64
70
|
): CodeHighlightNode | TabNode;
|
|
@@ -104,6 +110,13 @@ declare export class CodeNode extends ElementNode {
|
|
|
104
110
|
|
|
105
111
|
declare export var CodeExtension: LexicalExtension<ExtensionConfigBase, "@lexical/code", unknown, unknown>;
|
|
106
112
|
|
|
113
|
+
export type CodeIndentConfig = {
|
|
114
|
+
disabled: boolean,
|
|
115
|
+
tabSize: number | void,
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
declare export var CodeIndentExtension: LexicalExtension<CodeIndentConfig, "@lexical/code-indent", unknown, unknown>;
|
|
119
|
+
|
|
107
120
|
/**
|
|
108
121
|
* Deprecated @lexical/code-prism re-exports
|
|
109
122
|
*/
|
package/LexicalCode.mjs
CHANGED
|
@@ -18,10 +18,12 @@ export const $getLastCodeNodeOfLine = mod.$getLastCodeNodeOfLine;
|
|
|
18
18
|
export const $getStartOfCodeInLine = mod.$getStartOfCodeInLine;
|
|
19
19
|
export const $isCodeHighlightNode = mod.$isCodeHighlightNode;
|
|
20
20
|
export const $isCodeNode = mod.$isCodeNode;
|
|
21
|
+
export const $outdentLeadingSpaces = mod.$outdentLeadingSpaces;
|
|
21
22
|
export const CODE_LANGUAGE_FRIENDLY_NAME_MAP = mod.CODE_LANGUAGE_FRIENDLY_NAME_MAP;
|
|
22
23
|
export const CODE_LANGUAGE_MAP = mod.CODE_LANGUAGE_MAP;
|
|
23
24
|
export const CodeExtension = mod.CodeExtension;
|
|
24
25
|
export const CodeHighlightNode = mod.CodeHighlightNode;
|
|
26
|
+
export const CodeIndentExtension = mod.CodeIndentExtension;
|
|
25
27
|
export const CodeNode = mod.CodeNode;
|
|
26
28
|
export const DEFAULT_CODE_LANGUAGE = mod.DEFAULT_CODE_LANGUAGE;
|
|
27
29
|
export const PrismTokenizer = mod.PrismTokenizer;
|
package/LexicalCode.node.mjs
CHANGED
|
@@ -16,10 +16,12 @@ export const $getLastCodeNodeOfLine = mod.$getLastCodeNodeOfLine;
|
|
|
16
16
|
export const $getStartOfCodeInLine = mod.$getStartOfCodeInLine;
|
|
17
17
|
export const $isCodeHighlightNode = mod.$isCodeHighlightNode;
|
|
18
18
|
export const $isCodeNode = mod.$isCodeNode;
|
|
19
|
+
export const $outdentLeadingSpaces = mod.$outdentLeadingSpaces;
|
|
19
20
|
export const CODE_LANGUAGE_FRIENDLY_NAME_MAP = mod.CODE_LANGUAGE_FRIENDLY_NAME_MAP;
|
|
20
21
|
export const CODE_LANGUAGE_MAP = mod.CODE_LANGUAGE_MAP;
|
|
21
22
|
export const CodeExtension = mod.CodeExtension;
|
|
22
23
|
export const CodeHighlightNode = mod.CodeHighlightNode;
|
|
24
|
+
export const CodeIndentExtension = mod.CodeIndentExtension;
|
|
23
25
|
export const CodeNode = mod.CodeNode;
|
|
24
26
|
export const DEFAULT_CODE_LANGUAGE = mod.DEFAULT_CODE_LANGUAGE;
|
|
25
27
|
export const PrismTokenizer = mod.PrismTokenizer;
|
package/LexicalCode.prod.js
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
"use strict";var e=require("@lexical/code-prism"),o=require("@lexical/code-core");function t(e){var o=Object.create(null);if(e)for(var t in e)o[t]=e[t];return o.default=e,o}var
|
|
9
|
+
"use strict";var e=require("@lexical/code-prism"),o=require("@lexical/code-core");function t(e){var o=Object.create(null);if(e)for(var t in e)o[t]=e[t];return o.default=e,o}var d=t(e);const i=d.CODE_LANGUAGE_FRIENDLY_NAME_MAP,n=d.CODE_LANGUAGE_MAP,g=d.getCodeLanguageOptions,r=d.getCodeLanguages,s=d.getCodeThemeOptions,a=d.getLanguageFriendlyName,C=d.normalizeCodeLanguage,L=d.normalizeCodeLanguage,p=d.PrismTokenizer,x=d.registerCodeHighlighting;exports.$createCodeHighlightNode=o.$createCodeHighlightNode,exports.$createCodeNode=o.$createCodeNode,exports.$getCodeLineDirection=o.$getCodeLineDirection,exports.$getEndOfCodeInLine=o.$getEndOfCodeInLine,exports.$getFirstCodeNodeOfLine=o.$getFirstCodeNodeOfLine,exports.$getLastCodeNodeOfLine=o.$getLastCodeNodeOfLine,exports.$getStartOfCodeInLine=o.$getStartOfCodeInLine,exports.$isCodeHighlightNode=o.$isCodeHighlightNode,exports.$isCodeNode=o.$isCodeNode,exports.$outdentLeadingSpaces=o.$outdentLeadingSpaces,exports.CodeExtension=o.CodeExtension,exports.CodeHighlightNode=o.CodeHighlightNode,exports.CodeIndentExtension=o.CodeIndentExtension,exports.CodeNode=o.CodeNode,exports.DEFAULT_CODE_LANGUAGE=o.DEFAULT_CODE_LANGUAGE,exports.getDefaultCodeLanguage=o.getDefaultCodeLanguage,exports.CODE_LANGUAGE_FRIENDLY_NAME_MAP=i,exports.CODE_LANGUAGE_MAP=n,exports.PrismTokenizer=p,exports.getCodeLanguageOptions=g,exports.getCodeLanguages=r,exports.getCodeThemeOptions=s,exports.getLanguageFriendlyName=a,exports.normalizeCodeLang=C,exports.normalizeCodeLanguage=L,exports.registerCodeHighlighting=x;
|
package/LexicalCode.prod.mjs
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import*as e from"@lexical/code-prism";export{$createCodeHighlightNode,$createCodeNode,$getCodeLineDirection,$getEndOfCodeInLine,$getFirstCodeNodeOfLine,$getLastCodeNodeOfLine,$getStartOfCodeInLine,$isCodeHighlightNode,$isCodeNode,CodeExtension,CodeHighlightNode,CodeNode,DEFAULT_CODE_LANGUAGE,getDefaultCodeLanguage}from"@lexical/code-core";const o=e.CODE_LANGUAGE_FRIENDLY_NAME_MAP,
|
|
9
|
+
import*as e from"@lexical/code-prism";export{$createCodeHighlightNode,$createCodeNode,$getCodeLineDirection,$getEndOfCodeInLine,$getFirstCodeNodeOfLine,$getLastCodeNodeOfLine,$getStartOfCodeInLine,$isCodeHighlightNode,$isCodeNode,$outdentLeadingSpaces,CodeExtension,CodeHighlightNode,CodeIndentExtension,CodeNode,DEFAULT_CODE_LANGUAGE,getDefaultCodeLanguage}from"@lexical/code-core";const o=e.CODE_LANGUAGE_FRIENDLY_NAME_MAP,d=e.CODE_LANGUAGE_MAP,i=e.getCodeLanguageOptions,t=e.getCodeLanguages,g=e.getCodeThemeOptions,n=e.getLanguageFriendlyName,a=e.normalizeCodeLanguage,C=e.normalizeCodeLanguage,r=e.PrismTokenizer,L=e.registerCodeHighlighting;export{o as CODE_LANGUAGE_FRIENDLY_NAME_MAP,d as CODE_LANGUAGE_MAP,r as PrismTokenizer,i as getCodeLanguageOptions,t as getCodeLanguages,g as getCodeThemeOptions,n as getLanguageFriendlyName,a as normalizeCodeLang,C as normalizeCodeLanguage,L as registerCodeHighlighting};
|
package/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as LexicalCodePrism from '@lexical/code-prism';
|
|
9
9
|
export type { SerializedCodeNode } from '@lexical/code-core';
|
|
10
|
-
export { $createCodeHighlightNode, $createCodeNode, $getCodeLineDirection, $getEndOfCodeInLine, $getFirstCodeNodeOfLine, $getLastCodeNodeOfLine, $getStartOfCodeInLine, $isCodeHighlightNode, $isCodeNode, CodeExtension, CodeHighlightNode, CodeNode, DEFAULT_CODE_LANGUAGE, getDefaultCodeLanguage, } from '@lexical/code-core';
|
|
10
|
+
export { $createCodeHighlightNode, $createCodeNode, $getCodeLineDirection, $getEndOfCodeInLine, $getFirstCodeNodeOfLine, $getLastCodeNodeOfLine, $getStartOfCodeInLine, $isCodeHighlightNode, $isCodeNode, $outdentLeadingSpaces, CodeExtension, CodeHighlightNode, type CodeIndentConfig, CodeIndentExtension, CodeNode, DEFAULT_CODE_LANGUAGE, getDefaultCodeLanguage, } from '@lexical/code-core';
|
|
11
11
|
/** @deprecated moved to `@lexical/code-prism` */
|
|
12
12
|
export declare const CODE_LANGUAGE_FRIENDLY_NAME_MAP: Record<string, string>;
|
|
13
13
|
/** @deprecated moved to `@lexical/code-prism` */
|
package/package.json
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"code"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"version": "0.44.1-nightly.
|
|
11
|
+
"version": "0.44.1-nightly.20260504.0",
|
|
12
12
|
"main": "LexicalCode.js",
|
|
13
13
|
"types": "index.d.ts",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@lexical/code-core": "0.44.1-nightly.
|
|
16
|
-
"@lexical/code-prism": "0.44.1-nightly.
|
|
17
|
-
"@lexical/extension": "0.44.1-nightly.
|
|
18
|
-
"lexical": "0.44.1-nightly.
|
|
15
|
+
"@lexical/code-core": "0.44.1-nightly.20260504.0",
|
|
16
|
+
"@lexical/code-prism": "0.44.1-nightly.20260504.0",
|
|
17
|
+
"@lexical/extension": "0.44.1-nightly.20260504.0",
|
|
18
|
+
"lexical": "0.44.1-nightly.20260504.0"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|