@lexical/react 0.39.1-nightly.20260114.0 → 0.39.1-nightly.20260116.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.
@@ -5,4 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- export declare function SelectionAlwaysOnDisplay(): null;
8
+ type Props = Readonly<{
9
+ onReposition?: (node: Array<HTMLElement>) => void;
10
+ }>;
11
+ export declare function SelectionAlwaysOnDisplay({ onReposition }: Props): null;
12
+ export {};
@@ -20,11 +20,13 @@ var react = require('react');
20
20
  *
21
21
  */
22
22
 
23
- function SelectionAlwaysOnDisplay() {
23
+ function SelectionAlwaysOnDisplay({
24
+ onReposition
25
+ }) {
24
26
  const [editor] = LexicalComposerContext.useLexicalComposerContext();
25
27
  react.useEffect(() => {
26
- return utils.selectionAlwaysOnDisplay(editor);
27
- }, [editor]);
28
+ return utils.selectionAlwaysOnDisplay(editor, onReposition);
29
+ }, [editor, onReposition]);
28
30
  return null;
29
31
  }
30
32
 
@@ -18,11 +18,13 @@ import { useEffect } from 'react';
18
18
  *
19
19
  */
20
20
 
21
- function SelectionAlwaysOnDisplay() {
21
+ function SelectionAlwaysOnDisplay({
22
+ onReposition
23
+ }) {
22
24
  const [editor] = useLexicalComposerContext();
23
25
  useEffect(() => {
24
- return selectionAlwaysOnDisplay(editor);
25
- }, [editor]);
26
+ return selectionAlwaysOnDisplay(editor, onReposition);
27
+ }, [editor, onReposition]);
26
28
  return null;
27
29
  }
28
30
 
@@ -10,4 +10,6 @@
10
10
  /**
11
11
  * LexicalSelectionAlwaysOnDisplay
12
12
  */
13
- declare export function SelectionAlwaysOnDisplay(): null;
13
+ declare export function SelectionAlwaysOnDisplay({
14
+ onReposition?: (node: Array<HTMLElement>) => void,
15
+ }): null;
@@ -6,4 +6,4 @@
6
6
  *
7
7
  */
8
8
 
9
- "use strict";var e=require("@lexical/react/LexicalComposerContext"),t=require("@lexical/utils"),l=require("react");exports.SelectionAlwaysOnDisplay=function(){const[r]=e.useLexicalComposerContext();return l.useEffect(()=>t.selectionAlwaysOnDisplay(r),[r]),null};
9
+ "use strict";var e=require("@lexical/react/LexicalComposerContext"),t=require("@lexical/utils"),i=require("react");exports.SelectionAlwaysOnDisplay=function({onReposition:l}){const[r]=e.useLexicalComposerContext();return i.useEffect(()=>t.selectionAlwaysOnDisplay(r,l),[r,l]),null};
@@ -6,4 +6,4 @@
6
6
  *
7
7
  */
8
8
 
9
- import{useLexicalComposerContext as o}from"@lexical/react/LexicalComposerContext";import{selectionAlwaysOnDisplay as r}from"@lexical/utils";import{useEffect as t}from"react";function e(){const[e]=o();return t(()=>r(e),[e]),null}export{e as SelectionAlwaysOnDisplay};
9
+ import{useLexicalComposerContext as o}from"@lexical/react/LexicalComposerContext";import{selectionAlwaysOnDisplay as t}from"@lexical/utils";import{useEffect as r}from"react";function e({onReposition:e}){const[i]=o();return r(()=>t(i,e),[i,e]),null}export{e as SelectionAlwaysOnDisplay};
package/package.json CHANGED
@@ -8,26 +8,26 @@
8
8
  "rich-text"
9
9
  ],
10
10
  "license": "MIT",
11
- "version": "0.39.1-nightly.20260114.0",
11
+ "version": "0.39.1-nightly.20260116.0",
12
12
  "dependencies": {
13
13
  "@floating-ui/react": "^0.27.16",
14
- "@lexical/devtools-core": "0.39.1-nightly.20260114.0",
15
- "@lexical/dragon": "0.39.1-nightly.20260114.0",
16
- "@lexical/extension": "0.39.1-nightly.20260114.0",
17
- "@lexical/hashtag": "0.39.1-nightly.20260114.0",
18
- "@lexical/history": "0.39.1-nightly.20260114.0",
19
- "@lexical/link": "0.39.1-nightly.20260114.0",
20
- "@lexical/list": "0.39.1-nightly.20260114.0",
21
- "@lexical/mark": "0.39.1-nightly.20260114.0",
22
- "@lexical/markdown": "0.39.1-nightly.20260114.0",
23
- "@lexical/overflow": "0.39.1-nightly.20260114.0",
24
- "@lexical/plain-text": "0.39.1-nightly.20260114.0",
25
- "@lexical/rich-text": "0.39.1-nightly.20260114.0",
26
- "@lexical/table": "0.39.1-nightly.20260114.0",
27
- "@lexical/text": "0.39.1-nightly.20260114.0",
28
- "@lexical/utils": "0.39.1-nightly.20260114.0",
29
- "@lexical/yjs": "0.39.1-nightly.20260114.0",
30
- "lexical": "0.39.1-nightly.20260114.0",
14
+ "@lexical/devtools-core": "0.39.1-nightly.20260116.0",
15
+ "@lexical/dragon": "0.39.1-nightly.20260116.0",
16
+ "@lexical/extension": "0.39.1-nightly.20260116.0",
17
+ "@lexical/hashtag": "0.39.1-nightly.20260116.0",
18
+ "@lexical/history": "0.39.1-nightly.20260116.0",
19
+ "@lexical/link": "0.39.1-nightly.20260116.0",
20
+ "@lexical/list": "0.39.1-nightly.20260116.0",
21
+ "@lexical/mark": "0.39.1-nightly.20260116.0",
22
+ "@lexical/markdown": "0.39.1-nightly.20260116.0",
23
+ "@lexical/overflow": "0.39.1-nightly.20260116.0",
24
+ "@lexical/plain-text": "0.39.1-nightly.20260116.0",
25
+ "@lexical/rich-text": "0.39.1-nightly.20260116.0",
26
+ "@lexical/table": "0.39.1-nightly.20260116.0",
27
+ "@lexical/text": "0.39.1-nightly.20260116.0",
28
+ "@lexical/utils": "0.39.1-nightly.20260116.0",
29
+ "@lexical/yjs": "0.39.1-nightly.20260116.0",
30
+ "lexical": "0.39.1-nightly.20260116.0",
31
31
  "react-error-boundary": "^6.0.0"
32
32
  },
33
33
  "peerDependencies": {