Open a dialog that displays essential information about the application
Get the operating system platform
If the browser window is in full screen
Open a browser to the platform's OpenRPC documentation
Open a link in a new browser window. Like window.open
in the frontend with
target='_blank'
Consider using a visual indication along with this. E.g. for a menu
download the https://lucide.dev/icons/external-link icon, add it to your extension's assets
folder and use it like
"iconPathAfter": "papi-extension://<yourExtension>/assets/icons/external-link.svg"
. We plan
to provide a common set of icons via an API in the future.For a button that opens external urls add
aria-label="{localizedStrings['%ariaLabel_opensInBrowser%']}"
<ExternalLink />
Shut down the application
Restart the application
Function types for each command available on the papi. Each extension can extend this interface to add commands that it registers on the papi with
papi.commands.registerCommand
.Note: Command names must consist of two strings separated by at least one period. We recommend one period and lower camel case in case we expand the api in the future to allow dot notation.
An extension can extend this interface to add types for the commands it registers by adding the following to its
.d.ts
file:Example