@understudy/connector@0.3.0
Minor Changes
-
432e2cc: Add JavaScript-dialog handling breadth.
- protocol: new
dialogEvent ({ type, tabId, dialogType: alert | confirm | prompt | beforeunload, message, url, defaultPrompt?, disposition: accept | dismiss }) plusDialogTypeSchema/DialogDispositionSchemaexports. Emitted unsolicited (likepage_event) after the extension locally handles a page dialog, so a consumer learns what the page said and how it was answered. - connector:
browser.observegains aget_dialogsread returning the session's recent dialogs (ObserveOutput.dialogs), read fromGET /v1/sessions/:id.
The extension now applies a type-aware local disposition (alert/beforeunload accept, confirm/prompt dismiss) instead of blindly dismissing every dialog — a
beforeunloaddismiss previously cancelled navigations. Dispositions are decided synchronously extension-side because an open dialog blocks the single CDP channel; the consumer is notified, never in the response path. - protocol: new
Patch Changes
- Updated dependencies [432e2cc]
- @understudy/protocol@0.5.0