@get-bb/plugin-sdk 0.5.31 → 0.6.5
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 +8 -4
- package/bundled-types/bb-plugin-sdk-app.d.ts +261 -102
- package/bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts +457 -0
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +21 -4
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +32 -10
- package/bundled-types/bb-plugin-sdk-testing.d.ts +8 -3
- package/bundled-types/bb-plugin-sdk.d.ts +295 -109
- package/dist/app.js +2 -0
- package/dist/internal/composer-customization-validation.js +37 -27
- package/dist/internal/composer-handle.js +531 -0
- package/dist/internal/plugin-app-collector.js +37 -27
- package/dist/testing/app.js +780 -132
- package/dist/testing/index.js +6 -2
- package/package.json +7 -1
package/dist/testing/index.js
CHANGED
|
@@ -3872,7 +3872,7 @@ function createFakePluginHostInternal(options, sharedState) {
|
|
|
3872
3872
|
async setSettings(values) {
|
|
3873
3873
|
await setSettingsValues(values);
|
|
3874
3874
|
},
|
|
3875
|
-
async callRpc(method, input) {
|
|
3875
|
+
async callRpc(method, input, options2 = {}) {
|
|
3876
3876
|
const record = rpcHandlers.get(method);
|
|
3877
3877
|
if (!record) {
|
|
3878
3878
|
return throwRpcError({
|
|
@@ -3889,7 +3889,11 @@ function createFakePluginHostInternal(options, sharedState) {
|
|
|
3889
3889
|
);
|
|
3890
3890
|
let result;
|
|
3891
3891
|
try {
|
|
3892
|
-
result = await record.handler(validatedInput
|
|
3892
|
+
result = await record.handler(validatedInput, {
|
|
3893
|
+
experimental_caller: options2.experimental_caller ?? {
|
|
3894
|
+
kind: "client"
|
|
3895
|
+
}
|
|
3896
|
+
});
|
|
3893
3897
|
} catch (error) {
|
|
3894
3898
|
return throwRpcError({
|
|
3895
3899
|
code: "handler_error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@get-bb/plugin-sdk",
|
|
3
|
-
"version": "0.5
|
|
3
|
+
"version": "0.6.5",
|
|
4
4
|
"homepage": "https://github.com/get-bb/bb#readme",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/get-bb/bb/issues"
|
|
@@ -74,6 +74,12 @@
|
|
|
74
74
|
"import": "./dist/internal/composer-customization-validation.js",
|
|
75
75
|
"default": "./dist/internal/composer-customization-validation.js"
|
|
76
76
|
},
|
|
77
|
+
"./internal/composer-handle": {
|
|
78
|
+
"source": "./src/internal/composer-handle.ts",
|
|
79
|
+
"types": "./bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts",
|
|
80
|
+
"import": "./dist/internal/composer-handle.js",
|
|
81
|
+
"default": "./dist/internal/composer-handle.js"
|
|
82
|
+
},
|
|
77
83
|
"./internal/composer-view": {
|
|
78
84
|
"source": "./src/internal/composer-view.ts",
|
|
79
85
|
"types": "./bundled-types/bb-plugin-sdk-internal-composer-view.d.ts",
|