open-index/open-npm huggingface dataset:
npm package: @pc-nexus/bridge
Description: The Nexus UI bridge is a JavaScript API that enables nexus apps to securely integrate with PingCode.
Latest version: 0.1.0

# Nexus Bridge API

The Nexus UI bridge is a JavaScript API that enables nexus apps to securely integrate with PingCode.

```ts
import { view } from "@pc-nexus/bridge";

await view.getContext();
```

```ts
import { dialog } from "@pc-nexus/bridge";

const dialogRef = await dialog.open({
  resource: "abc",
  context: { example: "from dialog" },
});
```