File tree Expand file tree Collapse file tree 5 files changed +5
-6
lines changed Expand file tree Collapse file tree 5 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ export default function FloatingThreadController(props: {
7474 ) ;
7575
7676 // nice to have improvements:
77- // - fade out on close
7877 // - transition transform property so composer box animates when remote document is changed
7978
8079 const Component = props . floatingThread || Thread ;
Original file line number Diff line number Diff line change @@ -129,7 +129,6 @@ export const LinkToolbarController = (props: {
129129 // mouse.
130130 enabled : ! selectionLink && ! ! mouseHoverLink ,
131131 delay : {
132- // TODO: Figure out good values
133132 open : 250 ,
134133 close : 250 ,
135134 } ,
Original file line number Diff line number Diff line change 1- import { ClientRectObject } from "@floating-ui/react" ;
1+ import { ClientRectObject , VirtualElement } from "@floating-ui/react" ;
22import { posToDOMRect } from "@tiptap/core" ;
33import { ReactNode , useMemo , useRef } from "react" ;
44
@@ -22,7 +22,7 @@ export const PositionPopover = (
2222 // not defined.
2323 // TODO: Move this logic to the `GenericPopover`.
2424 const boundingClientRect = useRef < ClientRectObject > ( new DOMRect ( ) ) ;
25- const virtualElement = useMemo (
25+ const virtualElement = useMemo < VirtualElement > (
2626 ( ) => ( {
2727 getBoundingClientRect : ( ) => {
2828 if ( from === undefined || to === undefined ) {
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export const AIMenu = (props: AIMenuProps) => {
130130 props . onManualPromptSubmit || onManualPromptSubmitDefault
131131 }
132132 items = { items }
133- promptText = { prompt }
133+ promptText = { aiResponseStatus === "user-input" ? prompt : undefined }
134134 onPromptTextChange = { setPrompt }
135135 placeholder = { placeholder }
136136 disabled = {
Original file line number Diff line number Diff line change @@ -112,7 +112,8 @@ export const PromptSuggestionMenu = (props: PromptSuggestionMenuProps) => {
112112 </ Components . Generic . Form . Root >
113113 < Components . SuggestionMenu . Root
114114 className = { "bn-combobox-items" }
115- id = { "ai-suggestion-menu" } >
115+ id = { "ai-suggestion-menu" }
116+ >
116117 { items . map ( ( item , i ) => (
117118 < Components . SuggestionMenu . Item
118119 key = { item . title }
You can’t perform that action at this time.
0 commit comments