@get-bb/plugin-sdk 0.6.150 → 0.6.164
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 -1
- package/bundled-types/bb-plugin-sdk-app.d.ts +707 -86
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +3 -0
- package/bundled-types/bb-plugin-sdk-host.d.ts +4 -1
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +3 -0
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +6 -3
- package/bundled-types/bb-plugin-sdk-internal-thread-event-gate.d.ts +1001 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +56 -6
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +56 -6
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +45 -8
- package/bundled-types/bb-plugin-sdk-testing.d.ts +104 -20
- package/bundled-types/bb-plugin-sdk.d.ts +869 -300
- package/dist/app.js +8 -0
- package/dist/host.js +27 -3
- package/dist/index.js +19 -1
- package/dist/internal/host-policy.js +24 -2
- package/dist/internal/plugin-app-collector.js +20 -0
- package/dist/internal/rpc-query-host.js +1 -0
- package/dist/internal/thread-event-gate.js +95 -0
- package/dist/process.js +7 -1
- package/dist/provider-bridge-acp-next.js +503 -144
- package/dist/provider-bridge-acp.js +503 -144
- package/dist/provider-bridge-testing.js +21 -7
- package/dist/provider-bridge-worker-entry.mjs +9 -3
- package/dist/provider-bridge.js +124 -37
- package/dist/replay-provider-child.mjs +158 -31
- package/dist/testing/app.js +627 -347
- package/dist/testing/index.js +432 -77
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -106,7 +106,10 @@ a React slot. The host supplies `{ pluginId, generation, signal }`, awaits
|
|
|
106
106
|
mount setup, and owns abort plus exact-once reverse-order disposal across hash
|
|
107
107
|
reload, disable, removal, failed replacement, and app-window teardown. The old
|
|
108
108
|
generation is disposed before candidate mounts, so generations never overlap.
|
|
109
|
-
|
|
109
|
+
When the page unloads, the host aborts and cleans up content scripts but leaves
|
|
110
|
+
slot components mounted for the browser to discard, so React effect cleanups do
|
|
111
|
+
not run at unload. Save state as it changes, or flush it from a content script
|
|
112
|
+
cleanup. Content scripts are trusted same-origin page code, not a sandbox.
|
|
110
113
|
|
|
111
114
|
Static styles should stay in the normal imported `app.css`. The host keeps
|
|
112
115
|
that stylesheet active while the plugin has rendered slot, panel-header, or
|