]> BookStack Code Mirror - bookstack/blob - resources/js/wysiwyg/lexical/selection/index.ts
Add optional OIDC avatar fetching from the “picture” claim
[bookstack] / resources / js / wysiwyg / lexical / selection / index.ts
1 /**
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  *
7  */
8
9 import {
10   $addNodeStyle,
11   $isAtNodeEnd,
12   $patchStyleText,
13   $sliceSelectedTextNodeContent,
14   $trimTextContentFromAnchor,
15 } from './lexical-node';
16 import {
17   $getSelectionStyleValueForProperty,
18   $isParentElementRTL,
19   $moveCaretSelection,
20   $moveCharacter,
21   $selectAll,
22   $setBlocksType,
23   $shouldOverrideDefaultCharacterSelection,
24   $wrapNodes,
25 } from './range-selection';
26 import {
27   createDOMRange,
28   createRectsFromDOMRange,
29   getStyleObjectFromCSS,
30 } from './utils';
31
32 export {
33   /** @deprecated moved to the lexical package */ $cloneWithProperties,
34 } from 'lexical';
35 export {
36   $addNodeStyle,
37   $isAtNodeEnd,
38   $patchStyleText,
39   $sliceSelectedTextNodeContent,
40   $trimTextContentFromAnchor,
41 };
42 /** @deprecated renamed to {@link $trimTextContentFromAnchor} by @lexical/eslint-plugin rules-of-lexical */
43 export const trimTextContentFromAnchor = $trimTextContentFromAnchor;
44
45 export {
46   $getSelectionStyleValueForProperty,
47   $isParentElementRTL,
48   $moveCaretSelection,
49   $moveCharacter,
50   $selectAll,
51   $setBlocksType,
52   $shouldOverrideDefaultCharacterSelection,
53   $wrapNodes,
54 };
55
56 export {createDOMRange, createRectsFromDOMRange, getStyleObjectFromCSS};