@@ -14,7 +14,7 @@ export const Empty = () => (
1414 on_copy = { ( ) => console . log ( 'Copied' ) }
1515 is_connected = { true }
1616 prompt_type = "edit-context"
17- current_selection = ""
17+ current_selection = { null }
1818 currently_open_file_path = "/path/to/file"
1919 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
2020 is_web_mode = { false }
@@ -33,6 +33,9 @@ export const Empty = () => (
3333 on_prune_context_instructions_prefix_change = { ( val ) =>
3434 console . log ( 'Prune prefix changed:' , val )
3535 }
36+ on_pasted_lines_click = { ( path , start , end ) =>
37+ console . log ( 'Pasted lines clicked:' , path , start , end )
38+ }
3639 />
3740)
3841
@@ -45,7 +48,7 @@ export const WithText = () => (
4548 on_copy = { ( ) => console . log ( 'Copied' ) }
4649 is_connected = { true }
4750 prompt_type = "edit-context"
48- current_selection = ""
51+ current_selection = { null }
4952 currently_open_file_path = "/path/to/file"
5053 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
5154 is_web_mode = { false }
@@ -64,6 +67,9 @@ export const WithText = () => (
6467 on_prune_context_instructions_prefix_change = { ( val ) =>
6568 console . log ( 'Prune prefix changed:' , val )
6669 }
70+ on_pasted_lines_click = { ( path , start , end ) =>
71+ console . log ( 'Pasted lines clicked:' , path , start , end )
72+ }
6773 />
6874)
6975
@@ -76,7 +82,7 @@ export const LongText = () => (
7682 on_copy = { ( ) => console . log ( 'Copied' ) }
7783 is_connected = { true }
7884 prompt_type = "edit-context"
79- current_selection = ""
85+ current_selection = { null }
8086 currently_open_file_path = "/path/to/file"
8187 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
8288 is_web_mode = { false }
@@ -95,6 +101,9 @@ export const LongText = () => (
95101 on_prune_context_instructions_prefix_change = { ( val ) =>
96102 console . log ( 'Prune prefix changed:' , val )
97103 }
104+ on_pasted_lines_click = { ( path , start , end ) =>
105+ console . log ( 'Pasted lines clicked:' , path , start , end )
106+ }
98107 />
99108)
100109
@@ -107,7 +116,7 @@ export const WithPlaceholderSavedContext = () => (
107116 on_copy = { ( ) => console . log ( 'Copied' ) }
108117 is_connected = { true }
109118 prompt_type = "edit-context"
110- current_selection = ""
119+ current_selection = { null }
111120 currently_open_file_path = "/path/to/file"
112121 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
113122 on_search_click = { ( ) => console . log ( 'Search clicked' ) }
@@ -126,6 +135,9 @@ export const WithPlaceholderSavedContext = () => (
126135 on_prune_context_instructions_prefix_change = { ( val ) =>
127136 console . log ( 'Prune prefix changed:' , val )
128137 }
138+ on_pasted_lines_click = { ( path , start , end ) =>
139+ console . log ( 'Pasted lines clicked:' , path , start , end )
140+ }
129141 />
130142)
131143
@@ -138,7 +150,13 @@ export const WithPlaceholderSelection = () => (
138150 on_copy = { ( ) => console . log ( 'Copied' ) }
139151 is_connected = { true }
140152 prompt_type = "edit-context"
141- current_selection = "Selected text content"
153+ current_selection = { {
154+ text : 'Selected text content' ,
155+ start_line : 1 ,
156+ start_col : 1 ,
157+ end_line : 1 ,
158+ end_col : 22
159+ } }
142160 currently_open_file_path = "/path/to/file"
143161 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
144162 on_search_click = { ( ) => console . log ( 'Search clicked' ) }
@@ -157,6 +175,9 @@ export const WithPlaceholderSelection = () => (
157175 on_prune_context_instructions_prefix_change = { ( val ) =>
158176 console . log ( 'Prune prefix changed:' , val )
159177 }
178+ on_pasted_lines_click = { ( path , start , end ) =>
179+ console . log ( 'Pasted lines clicked:' , path , start , end )
180+ }
160181 />
161182)
162183
@@ -169,7 +190,7 @@ export const WithCommit = () => (
169190 on_copy = { ( ) => console . log ( 'Copied' ) }
170191 is_connected = { true }
171192 prompt_type = "edit-context"
172- current_selection = ""
193+ current_selection = { null }
173194 currently_open_file_path = "/path/to/file"
174195 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
175196 on_search_click = { ( ) => console . log ( 'Search clicked' ) }
@@ -188,6 +209,9 @@ export const WithCommit = () => (
188209 on_prune_context_instructions_prefix_change = { ( val ) =>
189210 console . log ( 'Prune prefix changed:' , val )
190211 }
212+ on_pasted_lines_click = { ( path , start , end ) =>
213+ console . log ( 'Pasted lines clicked:' , path , start , end )
214+ }
191215 />
192216)
193217
@@ -200,7 +224,7 @@ export const WithCommitWithQuotes = () => (
200224 on_copy = { ( ) => console . log ( 'Copied' ) }
201225 is_connected = { true }
202226 prompt_type = "edit-context"
203- current_selection = ""
227+ current_selection = { null }
204228 currently_open_file_path = "/path/to/file"
205229 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
206230 on_search_click = { ( ) => console . log ( 'Search clicked' ) }
@@ -219,6 +243,9 @@ export const WithCommitWithQuotes = () => (
219243 on_prune_context_instructions_prefix_change = { ( val ) =>
220244 console . log ( 'Prune prefix changed:' , val )
221245 }
246+ on_pasted_lines_click = { ( path , start , end ) =>
247+ console . log ( 'Pasted lines clicked:' , path , start , end )
248+ }
222249 />
223250)
224251export const WithContextAtCommit = ( ) => (
@@ -230,7 +257,7 @@ export const WithContextAtCommit = () => (
230257 on_copy = { ( ) => console . log ( 'Copied' ) }
231258 is_connected = { true }
232259 prompt_type = "edit-context"
233- current_selection = ""
260+ current_selection = { null }
234261 currently_open_file_path = "/path/to/file"
235262 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
236263 on_search_click = { ( ) => console . log ( 'Search clicked' ) }
@@ -249,6 +276,9 @@ export const WithContextAtCommit = () => (
249276 on_prune_context_instructions_prefix_change = { ( val ) =>
250277 console . log ( 'Prune prefix changed:' , val )
251278 }
279+ on_pasted_lines_click = { ( path , start , end ) =>
280+ console . log ( 'Pasted lines clicked:' , path , start , end )
281+ }
252282 />
253283)
254284
@@ -263,7 +293,7 @@ export const WithEditFormatSelector = () => {
263293 on_copy = { ( ) => console . log ( 'Copied' ) }
264294 is_connected = { true }
265295 prompt_type = "edit-context"
266- current_selection = ""
296+ current_selection = { null }
267297 currently_open_file_path = "/path/to/file"
268298 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
269299 is_web_mode = { false }
@@ -283,6 +313,9 @@ export const WithEditFormatSelector = () => {
283313 on_prune_context_instructions_prefix_change = { ( val ) =>
284314 console . log ( 'Prune prefix changed:' , val )
285315 }
316+ on_pasted_lines_click = { ( path , start , end ) =>
317+ console . log ( 'Pasted lines clicked:' , path , start , end )
318+ }
286319 />
287320 )
288321}
@@ -296,7 +329,7 @@ export const WithFilePaths = () => (
296329 on_copy = { ( ) => console . log ( 'Copied' ) }
297330 is_connected = { true }
298331 prompt_type = "edit-context"
299- current_selection = ""
332+ current_selection = { null }
300333 currently_open_file_path = "/path/to/file"
301334 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
302335 is_web_mode = { false }
@@ -315,5 +348,8 @@ export const WithFilePaths = () => (
315348 on_prune_context_instructions_prefix_change = { ( val ) =>
316349 console . log ( 'Prune prefix changed:' , val )
317350 }
351+ on_pasted_lines_click = { ( path , start , end ) =>
352+ console . log ( 'Pasted lines clicked:' , path , start , end )
353+ }
318354 />
319355)
0 commit comments