@lexical/code
Version:
This package contains the functionality for the code blocks and code highlighting for Lexical.
43 lines (37 loc) • 2.28 kB
JavaScript
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import * as LexicalCodePrism 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';
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
/** @deprecated moved to `@lexical/code-prism` */
const CODE_LANGUAGE_FRIENDLY_NAME_MAP = LexicalCodePrism.CODE_LANGUAGE_FRIENDLY_NAME_MAP;
/** @deprecated moved to `@lexical/code-prism` */
const CODE_LANGUAGE_MAP = LexicalCodePrism.CODE_LANGUAGE_MAP;
/** @deprecated moved to `@lexical/code-prism` */
const getCodeLanguageOptions = LexicalCodePrism.getCodeLanguageOptions;
/** @deprecated moved to `@lexical/code-prism` */
const getCodeLanguages = LexicalCodePrism.getCodeLanguages;
/** @deprecated moved to `@lexical/code-prism` */
const getCodeThemeOptions = LexicalCodePrism.getCodeThemeOptions;
/** @deprecated moved to `@lexical/code-prism` */
const getLanguageFriendlyName = LexicalCodePrism.getLanguageFriendlyName;
/** @deprecated renamed to `normalizeCodeLanguage` and moved to `@lexical/code-prism` */
const normalizeCodeLang = LexicalCodePrism.normalizeCodeLanguage;
/** @deprecated moved to `@lexical/code-prism` */
const normalizeCodeLanguage = LexicalCodePrism.normalizeCodeLanguage;
/** @deprecated moved to `@lexical/code-prism` */
const PrismTokenizer = LexicalCodePrism.PrismTokenizer;
/** @deprecated moved to `@lexical/code-prism` */
const registerCodeHighlighting = LexicalCodePrism.registerCodeHighlighting;
export { CODE_LANGUAGE_FRIENDLY_NAME_MAP, CODE_LANGUAGE_MAP, PrismTokenizer, getCodeLanguageOptions, getCodeLanguages, getCodeThemeOptions, getLanguageFriendlyName, normalizeCodeLang, normalizeCodeLanguage, registerCodeHighlighting };