Registers a context menu action in the given ContextMenuScope.
When the user triggers the action, Live invokes the command identified by
commandId. Depending on the scope, the command receives either the triggered
object's Handle, an ArrangementSelection, or a
ClipSlotSelection as its first argument.
Returns a function that unregisters the action when called.
Opens a modal dialog that loads the given URL. Supported URL schemes are
file:, data:, https:, and http://localhost.
To return a result and close the dialog, the dialog's HTML must post the message
{ method: "close_and_send", params: [resultString] } to the host's message
handler — window.webkit.messageHandlers.live.postMessage on macOS or
window.chrome.webview.postMessage on Windows. The returned promise resolves
with that string.
Rejects if url is malformed or an unexpected error occurred.
Shows a progress dialog while callback runs.
The callback receives an update function to change the text/progress
(progress is a percentage, 0–100), and an AbortSignal that fires if
the user cancels the dialog.
The dialog closes automatically when the callback resolves or rejects.
Service for UI interactions: context menus, modal dialogs, and progress dialogs.