@@ -22,6 +22,7 @@ export const Empty = () => (
2222 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
2323 on_search_click = { ( ) => console . log ( 'Search clicked' ) }
2424 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
25+ context_file_paths = { [ ] }
2526 on_curly_braces_click = { ( ) => { } }
2627 />
2728)
@@ -43,6 +44,7 @@ export const WithText = () => (
4344 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
4445 on_search_click = { ( ) => console . log ( 'Search clicked' ) }
4546 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
47+ context_file_paths = { [ ] }
4648 on_curly_braces_click = { ( ) => { } }
4749 />
4850)
@@ -64,6 +66,7 @@ export const LongText = () => (
6466 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
6567 on_search_click = { ( ) => console . log ( 'Search clicked' ) }
6668 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
69+ context_file_paths = { [ ] }
6770 on_curly_braces_click = { ( ) => { } }
6871 />
6972)
@@ -85,6 +88,7 @@ export const WithPlaceholderSavedContext = () => (
8588 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
8689 is_web_mode = { false }
8790 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
91+ context_file_paths = { [ ] }
8892 on_curly_braces_click = { ( ) => { } }
8993 />
9094)
@@ -106,6 +110,7 @@ export const WithPlaceholderSelection = () => (
106110 on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
107111 is_web_mode = { false }
108112 on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
113+ context_file_paths = { [ ] }
109114 on_curly_braces_click = { ( ) => { } }
110115 />
111116)
@@ -138,6 +143,29 @@ export const WithEditFormatSelector = () => {
138143 truncated : 'Use truncated...' ,
139144 diff : 'Use diff...'
140145 } }
146+ context_file_paths = { [ ] }
141147 />
142148 )
143149}
150+
151+ export const WithFilePaths = ( ) => (
152+ < ChatInput
153+ value = "This is about `path/to/my/file.ts` and not about `another/file.txt`"
154+ chat_history = { [ ] }
155+ on_change = { ( value ) => console . log ( 'Changed:' , value ) }
156+ on_submit = { ( ) => console . log ( 'Submitted' ) }
157+ on_copy = { ( ) => console . log ( 'Copied' ) }
158+ is_connected = { true }
159+ is_in_code_completions_mode = { false }
160+ has_active_selection = { false }
161+ has_active_editor = { true }
162+ on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
163+ is_web_mode = { false }
164+ on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
165+ on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
166+ on_search_click = { ( ) => console . log ( 'Search clicked' ) }
167+ on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
168+ on_curly_braces_click = { ( ) => { } }
169+ context_file_paths = { [ 'path/to/my/file.ts' ] }
170+ />
171+ )
0 commit comments