@get-bb/plugin-sdk 0.6.164 → 0.6.178
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/bundled-types/bb-plugin-sdk-app.d.ts +292 -127
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +75 -84
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +314 -191
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +5 -2
- package/bundled-types/bb-plugin-sdk-internal-thread-event-gate.d.ts +1 -1
- package/bundled-types/bb-plugin-sdk-internal-thread-status.d.ts +2 -2
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +25 -7
- package/bundled-types/bb-plugin-sdk-testing.d.ts +226 -93
- package/bundled-types/bb-plugin-sdk.d.ts +437 -190
- package/dist/app.js +12 -0
- package/dist/index.js +20 -0
- package/dist/internal/host-policy.js +56 -16
- package/dist/internal/plugin-app-collector.js +15 -3
- package/dist/internal/rpc-query-host.js +12 -0
- package/dist/provider-bridge-acp-next.js +28 -10
- package/dist/provider-bridge-acp.js +28 -10
- package/dist/provider-bridge-testing.js +9 -0
- package/dist/provider-bridge.js +9 -0
- package/dist/testing/app.js +74 -6
- package/dist/testing/index.js +111 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ thread-context action tab resolves against `experimental_newThreadPanelAction`
|
|
|
28
28
|
with the same id. `toggleTab(options)` closes the panel when that tab is
|
|
29
29
|
showing and otherwise opens it, and `close()` closes the panel. Commands,
|
|
30
30
|
thread actions, message actions and panel actions receive the same controller
|
|
31
|
-
as `
|
|
31
|
+
as `panel`.
|
|
32
32
|
|
|
33
33
|
Use `UrlLink` for a real anchor that applies BB's current
|
|
34
34
|
in-app/external-browser preference on ordinary HTTP(S) activation, or
|
|
@@ -199,7 +199,9 @@ await scripts.lifecycle.dispose();
|
|
|
199
199
|
```
|
|
200
200
|
|
|
201
201
|
`loadPluginApp` installs the runtime and validates all registrations; pass the
|
|
202
|
-
imported module or a thunk
|
|
202
|
+
imported module or a thunk, and `{ hasServers: true }` to define the app as bb
|
|
203
|
+
Desktop or the mobile app would (`experimental_hasServers()` is false
|
|
204
|
+
otherwise). `@get-bb/plugin-sdk/app` exports look the runtime
|
|
203
205
|
up when they are called or rendered, so a static import of `app.tsx` or of
|
|
204
206
|
components works too. `mountPluginContentScripts` mirrors the host's ordered mount,
|
|
205
207
|
rollback, independent per-window signal, and exact-once disposal. `renderSlot` supplies
|