UNPKG

@lexical/selection

Version:

This package contains utilities and helpers for handling Lexical selection.

34 lines (33 loc) 1.92 kB
/** * 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. * */ const mod = await (process.env.NODE_ENV !== 'production' ? import('./LexicalSelection.dev.mjs') : import('./LexicalSelection.prod.mjs')); export const $addNodeStyle = mod.$addNodeStyle; export const $cloneWithProperties = mod.$cloneWithProperties; export const $copyBlockFormatIndent = mod.$copyBlockFormatIndent; export const $ensureForwardRangeSelection = mod.$ensureForwardRangeSelection; export const $forEachSelectedTextNode = mod.$forEachSelectedTextNode; export const $getComputedStyleForElement = mod.$getComputedStyleForElement; export const $getComputedStyleForParent = mod.$getComputedStyleForParent; export const $getSelectionStyleValueForProperty = mod.$getSelectionStyleValueForProperty; export const $isAtNodeEnd = mod.$isAtNodeEnd; export const $isParentElementRTL = mod.$isParentElementRTL; export const $isParentRTL = mod.$isParentRTL; export const $moveCaretSelection = mod.$moveCaretSelection; export const $moveCharacter = mod.$moveCharacter; export const $patchStyleText = mod.$patchStyleText; export const $selectAll = mod.$selectAll; export const $setBlocksType = mod.$setBlocksType; export const $shouldOverrideDefaultCharacterSelection = mod.$shouldOverrideDefaultCharacterSelection; export const $sliceSelectedTextNodeContent = mod.$sliceSelectedTextNodeContent; export const $trimTextContentFromAnchor = mod.$trimTextContentFromAnchor; export const $wrapNodes = mod.$wrapNodes; export const createDOMRange = mod.createDOMRange; export const createRectsFromDOMRange = mod.createRectsFromDOMRange; export const getCSSFromStyleObject = mod.getCSSFromStyleObject; export const getStyleObjectFromCSS = mod.getStyleObjectFromCSS; export const trimTextContentFromAnchor = mod.trimTextContentFromAnchor;