@get-bb/plugin-sdk 0.6.79 → 0.6.89
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 +26 -23
- package/bundled-types/bb-plugin-sdk-app.d.ts +1009 -896
- package/bundled-types/bb-plugin-sdk-internal-file-navigation-validation.d.ts +7 -0
- package/bundled-types/bb-plugin-sdk-process.d.ts +61 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +40 -21
- package/bundled-types/bb-plugin-sdk-testing.d.ts +11 -0
- package/bundled-types/bb-plugin-sdk.d.ts +1006 -894
- package/dist/app.js +4 -0
- package/dist/host.js +557 -13
- package/dist/index.js +1 -1
- package/dist/internal/file-navigation-validation.js +14 -3
- package/dist/internal/host-policy.js +1 -1
- package/dist/internal/plugin-app-collector.js +11 -3
- package/dist/internal/rpc-query-host.js +333 -489
- package/dist/process.js +694 -0
- package/dist/provider-bridge-acp-next.js +724 -317
- package/dist/provider-bridge-acp.js +724 -317
- package/dist/provider-bridge-testing.js +677 -43
- package/dist/provider-bridge-worker-entry.mjs +534 -66
- package/dist/provider-bridge.js +605 -212
- package/dist/testing/app.js +563 -617
- package/dist/testing/index.js +126 -108
- package/package.json +7 -1
|
@@ -580,9 +580,9 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
|
|
|
580
580
|
throw new Error(`${kind}: run and params require action availability`);
|
|
581
581
|
}
|
|
582
582
|
const target = registration.experimental_target;
|
|
583
|
-
if (target !== void 0 && (
|
|
583
|
+
if (target !== void 0 && (availability !== "fixed" || typeof target?.validate !== "function")) {
|
|
584
584
|
throw new Error(
|
|
585
|
-
`${kind}: experimental_target requires a
|
|
585
|
+
`${kind}: experimental_target requires a fixed tab and a validate function`
|
|
586
586
|
);
|
|
587
587
|
}
|
|
588
588
|
const validated = {
|
|
@@ -937,6 +937,11 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
|
|
|
937
937
|
if (registration.useData !== void 0 && typeof registration.useData !== "function") {
|
|
938
938
|
throw new Error(`${kind}: "useData" must be a function`);
|
|
939
939
|
}
|
|
940
|
+
if (registration.experimental_bulkItem !== void 0 && typeof registration.experimental_bulkItem !== "function") {
|
|
941
|
+
throw new Error(
|
|
942
|
+
`${kind}: "experimental_bulkItem" must be a function`
|
|
943
|
+
);
|
|
944
|
+
}
|
|
940
945
|
collected.threadActions.push({
|
|
941
946
|
id,
|
|
942
947
|
title: requireNonEmptyString(kind, "title", registration.title),
|
|
@@ -944,7 +949,10 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
|
|
|
944
949
|
group: requireNonEmptyString(kind, "group", registration.group),
|
|
945
950
|
...requireOptionalOrder(kind, registration.order),
|
|
946
951
|
...registration.useData !== void 0 ? { useData: registration.useData } : {},
|
|
947
|
-
item: registration.item
|
|
952
|
+
item: registration.item,
|
|
953
|
+
...registration.experimental_bulkItem !== void 0 ? {
|
|
954
|
+
experimental_bulkItem: registration.experimental_bulkItem
|
|
955
|
+
} : {}
|
|
948
956
|
});
|
|
949
957
|
},
|
|
950
958
|
experimental_browserToolbarAction(registration) {
|