diff --git a/packages/cli/src/ui/components/__snapshots__/InputPrompt.test.tsx.snap b/packages/cli/src/ui/components/__snapshots__/InputPrompt.test.tsx.snap index ab6fe9b928..38127b05ac 100644 --- a/packages/cli/src/ui/components/__snapshots__/InputPrompt.test.tsx.snap +++ b/packages/cli/src/ui/components/__snapshots__/InputPrompt.test.tsx.snap @@ -4,14 +4,16 @@ exports[`InputPrompt > Highlighting and Cursor Display > multi-line scenarios > "──────────────────────────────────────────────────────────────────────────────────────────────────── │ > first line │ │ second line │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > Highlighting and Cursor Display > multi-line scenarios > should display cursor correctly 'at the end of a line' in a multiline block 1`] = ` "──────────────────────────────────────────────────────────────────────────────────────────────────── │ > first line │ │ second line │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > Highlighting and Cursor Display > multi-line scenarios > should display cursor correctly 'in the middle of a line' in a multiline block 1`] = ` @@ -19,7 +21,8 @@ exports[`InputPrompt > Highlighting and Cursor Display > multi-line scenarios > │ > first line │ │ second line │ │ third line │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > Highlighting and Cursor Display > multi-line scenarios > should display cursor on a blank line in a multiline block 1`] = ` @@ -27,67 +30,78 @@ exports[`InputPrompt > Highlighting and Cursor Display > multi-line scenarios > │ > first line │ │ │ │ third line │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > Highlighting and Cursor Display > single-line scenarios > should display cursor correctly 'after multi-byte unicode characters' 1`] = ` "──────────────────────────────────────────────────────────────────────────────────────────────────── │ > 👍A │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > Highlighting and Cursor Display > single-line scenarios > should display cursor correctly 'at the beginning of the line' 1`] = ` "──────────────────────────────────────────────────────────────────────────────────────────────────── │ > hello │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > Highlighting and Cursor Display > single-line scenarios > should display cursor correctly 'at the end of a line with unicode cha…' 1`] = ` "──────────────────────────────────────────────────────────────────────────────────────────────────── │ > hello 👍 │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > Highlighting and Cursor Display > single-line scenarios > should display cursor correctly 'at the end of a short line with unico…' 1`] = ` "──────────────────────────────────────────────────────────────────────────────────────────────────── │ > 👍 │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > Highlighting and Cursor Display > single-line scenarios > should display cursor correctly 'at the end of the line' 1`] = ` "──────────────────────────────────────────────────────────────────────────────────────────────────── │ > hello │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > Highlighting and Cursor Display > single-line scenarios > should display cursor correctly 'for multi-byte unicode characters' 1`] = ` "──────────────────────────────────────────────────────────────────────────────────────────────────── │ > hello 👍 world │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > Highlighting and Cursor Display > single-line scenarios > should display cursor correctly 'mid-word' 1`] = ` "──────────────────────────────────────────────────────────────────────────────────────────────────── │ > hello world │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > Highlighting and Cursor Display > single-line scenarios > should display cursor correctly 'on a highlighted token' 1`] = ` "──────────────────────────────────────────────────────────────────────────────────────────────────── │ > run @path/to/file │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > Highlighting and Cursor Display > single-line scenarios > should display cursor correctly 'on a space between words' 1`] = ` "──────────────────────────────────────────────────────────────────────────────────────────────────── │ > hello world │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > Highlighting and Cursor Display > single-line scenarios > should display cursor correctly 'on an empty line' 1`] = ` "──────────────────────────────────────────────────────────────────────────────────────────────────── │ > Type your message or @path/to/file │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > History Navigation and Completion Suppression > should not render suggestions during history navigation 1`] = ` @@ -173,13 +187,15 @@ exports[`InputPrompt > multiline rendering > should correctly render multiline i │ > hello │ │ │ │ world │ -────────────────────────────────────────────────────────────────────────────────────────────────────" +──────────────────────────────────────────────────────────────────────────────────────────────────── +" `; exports[`InputPrompt > snapshots > should not show inverted cursor when shell is focused 1`] = ` "▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ > Type your message or @path/to/file -▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄" +▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ +" `; exports[`InputPrompt > snapshots > should render correctly in shell mode 1`] = `