@@ -208,59 +208,59 @@ const createDisplaySignature = (
208208
209209type TargetMenuPanelProps =
210210 | {
211- variant : "display" ;
212- targets ?: CaptureDisplayWithThumbnail [ ] ;
213- onSelect : ( target : CaptureDisplayWithThumbnail ) => void ;
214- }
211+ variant : "display" ;
212+ targets ?: CaptureDisplayWithThumbnail [ ] ;
213+ onSelect : ( target : CaptureDisplayWithThumbnail ) => void ;
214+ }
215215 | {
216- variant : "window" ;
217- targets ?: CaptureWindowWithThumbnail [ ] ;
218- onSelect : ( target : CaptureWindowWithThumbnail ) => void ;
219- }
216+ variant : "window" ;
217+ targets ?: CaptureWindowWithThumbnail [ ] ;
218+ onSelect : ( target : CaptureWindowWithThumbnail ) => void ;
219+ }
220220 | {
221- variant : "recording" ;
222- targets ?: RecordingWithPath [ ] ;
223- onSelect : ( target : RecordingWithPath ) => void ;
224- onViewAll : ( ) => void ;
225- uploadProgress ?: Record < string , number > ;
226- reuploadingPaths ?: Set < string > ;
227- onReupload ?: ( path : string ) => void ;
228- onRefetch ?: ( ) => void ;
229- }
221+ variant : "recording" ;
222+ targets ?: RecordingWithPath [ ] ;
223+ onSelect : ( target : RecordingWithPath ) => void ;
224+ onViewAll : ( ) => void ;
225+ uploadProgress ?: Record < string , number > ;
226+ reuploadingPaths ?: Set < string > ;
227+ onReupload ?: ( path : string ) => void ;
228+ onRefetch ?: ( ) => void ;
229+ }
230230 | {
231- variant : "screenshot" ;
232- targets ?: ScreenshotWithPath [ ] ;
233- onSelect : ( target : ScreenshotWithPath ) => void ;
234- onViewAll : ( ) => void ;
235- }
231+ variant : "screenshot" ;
232+ targets ?: ScreenshotWithPath [ ] ;
233+ onSelect : ( target : ScreenshotWithPath ) => void ;
234+ onViewAll : ( ) => void ;
235+ }
236236 | {
237- variant : "camera" ;
238- targets ?: CameraWithDetails [ ] ;
239- selectedTarget : CameraWithDetails | null ;
240- onSelect : ( target : CameraWithDetails | null ) => void ;
241- permissions ?: OSPermissionsCheck ;
242- deviceSettings ?: RecordingDeviceSettingsStore ;
243- onCameraSettingsChange : (
244- camera : CameraWithDetails ,
245- settings : CameraDeviceSettings ,
246- ) => void ;
247- compatibilityStudioMode : boolean ;
248- initialSettingsTarget ?: CameraWithDetails | null ;
249- }
237+ variant : "camera" ;
238+ targets ?: CameraWithDetails [ ] ;
239+ selectedTarget : CameraWithDetails | null ;
240+ onSelect : ( target : CameraWithDetails | null ) => void ;
241+ permissions ?: OSPermissionsCheck ;
242+ deviceSettings ?: RecordingDeviceSettingsStore ;
243+ onCameraSettingsChange : (
244+ camera : CameraWithDetails ,
245+ settings : CameraDeviceSettings ,
246+ ) => void ;
247+ compatibilityStudioMode : boolean ;
248+ initialSettingsTarget ?: CameraWithDetails | null ;
249+ }
250250 | {
251- variant : "microphone" ;
252- targets ?: MicrophoneWithDetails [ ] ;
253- selectedTarget : MicrophoneWithDetails | null ;
254- onSelect : ( target : MicrophoneWithDetails | null ) => void ;
255- permissions ?: OSPermissionsCheck ;
256- deviceSettings ?: RecordingDeviceSettingsStore ;
257- onMicrophoneSettingsChange : (
258- key : string ,
259- settings : MicrophoneDeviceSettings ,
260- ) => void ;
261- compatibilityStudioMode : boolean ;
262- initialSettingsTarget ?: MicrophoneWithDetails | null ;
263- } ;
251+ variant : "microphone" ;
252+ targets ?: MicrophoneWithDetails [ ] ;
253+ selectedTarget : MicrophoneWithDetails | null ;
254+ onSelect : ( target : MicrophoneWithDetails | null ) => void ;
255+ permissions ?: OSPermissionsCheck ;
256+ deviceSettings ?: RecordingDeviceSettingsStore ;
257+ onMicrophoneSettingsChange : (
258+ key : string ,
259+ settings : MicrophoneDeviceSettings ,
260+ ) => void ;
261+ compatibilityStudioMode : boolean ;
262+ initialSettingsTarget ?: MicrophoneWithDetails | null ;
263+ } ;
264264
265265type SharedTargetMenuProps = {
266266 isLoading : boolean ;
@@ -271,41 +271,41 @@ type SharedTargetMenuProps = {
271271
272272type DeviceListPanelProps =
273273 | {
274- variant : "camera" ;
275- targets : CameraWithDetails [ ] ;
276- selectedTarget : CameraWithDetails | null ;
277- onSelect : ( target : CameraWithDetails | null ) => void ;
278- isLoading ?: boolean ;
279- errorMessage ?: string ;
280- disabled ?: boolean ;
281- emptyMessage ?: string ;
282- permissions ?: OSPermissionsCheck ;
283- deviceSettings ?: RecordingDeviceSettingsStore ;
284- onCameraSettingsChange : (
285- camera : CameraWithDetails ,
286- settings : CameraDeviceSettings ,
287- ) => void ;
288- compatibilityStudioMode : boolean ;
289- initialSettingsTarget ?: CameraWithDetails | null ;
290- }
274+ variant : "camera" ;
275+ targets : CameraWithDetails [ ] ;
276+ selectedTarget : CameraWithDetails | null ;
277+ onSelect : ( target : CameraWithDetails | null ) => void ;
278+ isLoading ?: boolean ;
279+ errorMessage ?: string ;
280+ disabled ?: boolean ;
281+ emptyMessage ?: string ;
282+ permissions ?: OSPermissionsCheck ;
283+ deviceSettings ?: RecordingDeviceSettingsStore ;
284+ onCameraSettingsChange : (
285+ camera : CameraWithDetails ,
286+ settings : CameraDeviceSettings ,
287+ ) => void ;
288+ compatibilityStudioMode : boolean ;
289+ initialSettingsTarget ?: CameraWithDetails | null ;
290+ }
291291 | {
292- variant : "microphone" ;
293- targets : MicrophoneWithDetails [ ] ;
294- selectedTarget : MicrophoneWithDetails | null ;
295- onSelect : ( target : MicrophoneWithDetails | null ) => void ;
296- isLoading ?: boolean ;
297- errorMessage ?: string ;
298- disabled ?: boolean ;
299- emptyMessage ?: string ;
300- permissions ?: OSPermissionsCheck ;
301- deviceSettings ?: RecordingDeviceSettingsStore ;
302- onMicrophoneSettingsChange : (
303- key : string ,
304- settings : MicrophoneDeviceSettings ,
305- ) => void ;
306- compatibilityStudioMode : boolean ;
307- initialSettingsTarget ?: MicrophoneWithDetails | null ;
308- } ;
292+ variant : "microphone" ;
293+ targets : MicrophoneWithDetails [ ] ;
294+ selectedTarget : MicrophoneWithDetails | null ;
295+ onSelect : ( target : MicrophoneWithDetails | null ) => void ;
296+ isLoading ?: boolean ;
297+ errorMessage ?: string ;
298+ disabled ?: boolean ;
299+ emptyMessage ?: string ;
300+ permissions ?: OSPermissionsCheck ;
301+ deviceSettings ?: RecordingDeviceSettingsStore ;
302+ onMicrophoneSettingsChange : (
303+ key : string ,
304+ settings : MicrophoneDeviceSettings ,
305+ ) => void ;
306+ compatibilityStudioMode : boolean ;
307+ initialSettingsTarget ?: MicrophoneWithDetails | null ;
308+ } ;
309309
310310function CameraListItem ( props : {
311311 camera : CameraWithDetails ;
@@ -533,7 +533,7 @@ function CameraSettingsPanel(props: {
533533 props . value ?. width === format . width &&
534534 props . value ?. height === format . height &&
535535 Math . round ( props . value ?. frameRate ?? 0 ) ===
536- Math . round ( format . frameRate ?? 0 ) ;
536+ Math . round ( format . frameRate ?? 0 ) ;
537537
538538 return (
539539 < div class = "flex flex-col gap-3" >
@@ -1694,7 +1694,7 @@ function Page() {
16941694 await commands . uploadExportedVideo (
16951695 path ,
16961696 "Reupload" ,
1697- new Channel < UploadProgress > ( ( ) => { } ) ,
1697+ new Channel < UploadProgress > ( ( ) => { } ) ,
16981698 null ,
16991699 ) ;
17001700 } finally {
@@ -2174,7 +2174,8 @@ function Page() {
21742174 await commands . stopRecording ( ) ;
21752175 } catch ( error ) {
21762176 await dialog . message (
2177- `Failed to stop recording: ${ error instanceof Error ? error . message : String ( error )
2177+ `Failed to stop recording: ${
2178+ error instanceof Error ? error . message : String ( error )
21782179 } `,
21792180 { title : "Stop Recording" , kind : "error" } ,
21802181 ) ;
@@ -2282,7 +2283,7 @@ function Page() {
22822283 class = { cx (
22832284 "flex flex-1 overflow-hidden rounded-lg border border-gray-5 bg-gray-3 ring-1 ring-transparent ring-offset-2 ring-offset-gray-1 transition focus-within:ring-blue-9 focus-within:ring-offset-2 focus-within:ring-offset-gray-1" ,
22842285 ( rawOptions . targetMode === "display" || displayMenuOpen ( ) ) &&
2285- "ring-blue-9" ,
2286+ "ring-blue-9" ,
22862287 ) }
22872288 >
22882289 < TargetTypeButton
@@ -2324,7 +2325,7 @@ function Page() {
23242325 class = { cx (
23252326 "flex flex-1 overflow-hidden rounded-lg border border-gray-5 bg-gray-3 ring-1 ring-transparent ring-offset-2 ring-offset-gray-1 transition focus-within:ring-blue-9 focus-within:ring-offset-2 focus-within:ring-offset-gray-1" ,
23262327 ( rawOptions . targetMode === "window" || windowMenuOpen ( ) ) &&
2327- "ring-blue-9" ,
2328+ "ring-blue-9" ,
23282329 ) }
23292330 >
23302331 < TargetTypeButton
@@ -2400,7 +2401,7 @@ function Page() {
24002401 }
24012402 }
24022403
2403- await signIn . mutateAsync ( abort ) . catch ( ( ) => { } ) ;
2404+ await signIn . mutateAsync ( abort ) . catch ( ( ) => { } ) ;
24042405
24052406 for ( const win of await getAllWebviewWindows ( ) ) {
24062407 if ( win . label . startsWith ( "target-select-overlay" ) ) {
0 commit comments