File tree Expand file tree Collapse file tree 4 files changed +373
-392
lines changed Expand file tree Collapse file tree 4 files changed +373
-392
lines changed Original file line number Diff line number Diff line change @@ -409,12 +409,12 @@ const PureToolbar = ({
409
409
blockKind : 'text' | 'code' ;
410
410
} ) => {
411
411
const toolbarRef = useRef < HTMLDivElement > ( null ) ;
412
- const timeoutRef = useRef < ReturnType < typeof setTimeout > > ( ) ;
412
+ const timeoutRef = useRef < ReturnType < typeof setTimeout > | null > ( null ) ;
413
413
414
414
const [ selectedTool , setSelectedTool ] = useState < string | null > ( null ) ;
415
415
const [ isAnimating , setIsAnimating ] = useState ( false ) ;
416
416
417
- useOnClickOutside ( toolbarRef , ( ) => {
417
+ useOnClickOutside ( toolbarRef as React . RefObject < HTMLElement > , ( ) => {
418
418
setIsToolbarVisible ( false ) ;
419
419
setSelectedTool ( null ) ;
420
420
} ) ;
Original file line number Diff line number Diff line change 1
1
import { useEffect , useRef , type RefObject } from 'react' ;
2
2
3
3
export function useScrollToBottom < T extends HTMLElement > ( ) : [
4
- RefObject < T > ,
5
- RefObject < T > ,
4
+ RefObject < T | null > ,
5
+ RefObject < T | null > ,
6
6
] {
7
7
const containerRef = useRef < T > ( null ) ;
8
8
const endRef = useRef < T > ( null ) ;
Original file line number Diff line number Diff line change 50
50
"prosemirror-schema-list" : " ^1.5.0" ,
51
51
"prosemirror-state" : " ^1.4.3" ,
52
52
"prosemirror-view" : " ^1.37.2" ,
53
- "react" : " ^18.3.1 " ,
54
- "react-dom" : " ^18.3.1 " ,
53
+ "react" : " ^19.0.0 " ,
54
+ "react-dom" : " ^19.0.0 " ,
55
55
"react-markdown" : " ^9.0.3" ,
56
56
"react-resizable-panels" : " ^2.1.7" ,
57
57
"remark-gfm" : " ^4.0.0" ,
72
72
"@types/d3-scale" : " ^4.0.8" ,
73
73
"@types/node" : " ^22.13.0" ,
74
74
"@types/pdf-parse" : " ^1.1.4" ,
75
- "@types/react" : " ^18.3.18 " ,
76
- "@types/react-dom" : " ^18.3.5 " ,
75
+ "@types/react" : " ^19.0.0 " ,
76
+ "@types/react-dom" : " ^19.0.0 " ,
77
77
"jsdom" : " ^26.0.0" ,
78
78
"postcss" : " ^8.5.1" ,
79
79
"tailwindcss" : " ^3.4.17" ,
You can’t perform that action at this time.
0 commit comments