@@ -270,78 +270,6 @@ export const WithPlaceholderSavedContext = () => (
270270 />
271271)
272272
273- export const WithPlaceholderSelection = ( ) => (
274- < PromptField
275- value = "Ask about the #Selection"
276- chat_history = { [ ] }
277- on_change = { ( value ) => console . log ( 'Changed:' , value ) }
278- on_submit = { ( ) => console . log ( 'Submitted' ) }
279- on_copy = { ( ) => console . log ( 'Copied' ) }
280- is_connected = { true }
281- is_action_disabled = { false }
282- current_selection = { {
283- text : 'Selected text content' ,
284- start_line : 1 ,
285- start_col : 1 ,
286- end_line : 1 ,
287- end_col : 22
288- } }
289- currently_open_file_path = "/path/to/file"
290- on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
291- target = { TARGET . API }
292- on_target_change = { ( target ) => console . log ( 'Target changed:' , target ) }
293- on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
294- on_hash_sign_click = { ( ) => console . log ( '# clicked' ) }
295- is_web_target = { false }
296- on_submit_with_control = { ( ) => console . log ( 'Submitted with control' ) }
297- selected_files = { [ ] }
298- on_go_to_file = { ( path ) => console . log ( 'Go to file:' , path ) }
299- on_slash_click = { ( ) => { } }
300- on_pasted_lines_click = { ( path , start , end ) =>
301- console . log ( 'Pasted lines clicked:' , path , start , end )
302- }
303- on_open_url = { ( url ) => console . log ( 'Open URL:' , url ) }
304- on_open_website = { ( url ) => console . log ( 'Open website:' , url ) }
305- on_paste_image = { ( content ) => console . log ( 'Paste image:' , content ) }
306- on_paste_long_text = { ( content ) => console . log ( 'Paste long text:' , content ) }
307- on_open_image = { ( hash ) => console . log ( 'Open image:' , hash ) }
308- on_open_pasted_text = { ( hash ) => console . log ( 'Open pasted text:' , hash ) }
309- on_paste_url = { ( url ) => console . log ( 'Paste URL:' , url ) }
310- is_recording = { false }
311- on_recording_started = { ( ) => console . log ( 'Recording started' ) }
312- on_recording_finished = { ( ) => console . log ( 'Recording finished' ) }
313- tabs_count = { 1 }
314- active_tab_index = { 0 }
315- on_tab_change = { ( ) => { } }
316- on_new_tab = { ( ) => { } }
317- on_tab_delete = { ( ) => { } }
318- prompt_token_count = { 0 }
319- translations = { {
320- voice_input : 'Voice input' ,
321- stop_recording : 'Stop recording' ,
322- reference_file : 'Reference file' ,
323- insert_symbol : 'Insert symbol' ,
324- use_template : 'Use template' ,
325- edit_format : 'Edit format' ,
326- edit_format_whole : 'Whole-File Overwrite' ,
327- edit_format_search_replace : 'Search & Replace' ,
328- edit_format_diff : 'Unified Diff' ,
329- edit_format_truncated : 'Ellipsis truncations' ,
330- placeholder_code_history : 'Optional instructions (⇅ for history)' ,
331- placeholder_code : 'Optional instructions' ,
332- placeholder_history : 'Type instructions (⇅ for history)' ,
333- placeholder_default : 'Type instructions' ,
334- send_with : 'Send with' ,
335- send_with_ellipsis : 'Send with...' ,
336- copy_prompt : 'Copy prompt' ,
337- preview_prompt : 'Preview prompt' ,
338- send : 'Send' ,
339- attach_selected_files : 'Attach selected files' ,
340- target : 'Target'
341- } }
342- />
343- )
344-
345273export const WithCommit = ( ) => (
346274 < PromptField
347275 value = 'Ask about #Commit(my-repo:a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0 "Initial commit")'
0 commit comments