Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): enable rich text composer by default #12160

Mergedjuliusmarmingemerged 11 commits intomain fromrefs/pull/12160/headmerged by maria-rcks View on GitHub

Showing 28 changed files with 36 additions and 4 deletions (loading 24).

x
0 of 28 viewed, 28 left
34 additions and 2 deletionsapps/web/src/components/chat/ChatComposer.tsxModified
View file
@@ -79,6 +79,7 @@
replaceTextRange,
} from "../../composer-logic";
import { DISCONNECTED_COMPOSER_PLACEHOLDER } from "../../composerPlaceholder";
+import { listContinuationForEnter, listIndentForTab } from "../../composer-list-continuation";
import {
deriveComposerSendState,
getAntigravitySendBlockReason,
@@ -3264,7 +3265,7 @@
}, [setIsComposerScrollCollapsed]);
- * Payloads for chips the prompt no longer references. Lexical's history restores the
+ * Payloads for chips the prompt no longer references. History undo restores the
* reference text but knows nothing about the draft records behind it, so a delete keeps its
* payload here and an undo puts it back rather than leaving a dangling chip.
@@ -3420,6 +3421,7 @@
replacement: string,
options?: {
expectedText?: string;
+ expandedCursorAfterReplace?: number;
focusEditorAfterReplace?: boolean;
citationComment?: { start: number; sourceAnchor: AssistantCitationSourceAnchor };
@@ -3440,7 +3442,10 @@
return false;