@get-bb/plugin-sdk 0.6.31 → 0.6.33
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/bundled-types/bb-plugin-sdk-app.d.ts +43 -276
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +1 -3
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +2 -30
- package/bundled-types/bb-plugin-sdk.d.ts +42 -272
- package/dist/app.js +0 -12
- package/dist/internal/plugin-app-collector.js +0 -22
- package/dist/testing/app.js +0 -98
- package/package.json +1 -1
package/dist/testing/app.js
CHANGED
|
@@ -1174,8 +1174,6 @@ function collectPluginAppRegistrations(definition, onComposerCustomizationReject
|
|
|
1174
1174
|
pendingInteractions: [],
|
|
1175
1175
|
sidebarFooterActions: [],
|
|
1176
1176
|
experimentalSidebarFooterItems: [],
|
|
1177
|
-
experimentalSidebarNavigations: [],
|
|
1178
|
-
experimentalSidebarHeaders: [],
|
|
1179
1177
|
threadLists: [],
|
|
1180
1178
|
threadHeaderActions: [],
|
|
1181
1179
|
browserToolbarActions: [],
|
|
@@ -1204,8 +1202,6 @@ function collectPluginAppRegistrations(definition, onComposerCustomizationReject
|
|
|
1204
1202
|
composerPopup: /* @__PURE__ */ new Set(),
|
|
1205
1203
|
pendingInteraction: /* @__PURE__ */ new Set(),
|
|
1206
1204
|
sidebarFooterItem: /* @__PURE__ */ new Set(),
|
|
1207
|
-
sidebarNavigation: /* @__PURE__ */ new Set(),
|
|
1208
|
-
sidebarHeader: /* @__PURE__ */ new Set(),
|
|
1209
1205
|
threadList: /* @__PURE__ */ new Set(),
|
|
1210
1206
|
threadHeaderAction: /* @__PURE__ */ new Set(),
|
|
1211
1207
|
browserToolbarAction: /* @__PURE__ */ new Set(),
|
|
@@ -1425,24 +1421,6 @@ function collectPluginAppRegistrations(definition, onComposerCustomizationReject
|
|
|
1425
1421
|
collected.sidebarFooterActions.push(legacyRegistration);
|
|
1426
1422
|
sidebarFooterItems.push(adaptSidebarFooterAction(legacyRegistration));
|
|
1427
1423
|
},
|
|
1428
|
-
experimental_sidebarNavigation(registration) {
|
|
1429
|
-
collected.experimentalSidebarNavigations.push(
|
|
1430
|
-
collectTitledComponent(
|
|
1431
|
-
"slots.experimental_sidebarNavigation",
|
|
1432
|
-
seenIds.sidebarNavigation,
|
|
1433
|
-
registration
|
|
1434
|
-
)
|
|
1435
|
-
);
|
|
1436
|
-
},
|
|
1437
|
-
experimental_sidebarHeader(registration) {
|
|
1438
|
-
collected.experimentalSidebarHeaders.push(
|
|
1439
|
-
collectTitledComponent(
|
|
1440
|
-
"slots.experimental_sidebarHeader",
|
|
1441
|
-
seenIds.sidebarHeader,
|
|
1442
|
-
registration
|
|
1443
|
-
)
|
|
1444
|
-
);
|
|
1445
|
-
},
|
|
1446
1424
|
experimental_threadList(registration) {
|
|
1447
1425
|
collected.threadLists.push(
|
|
1448
1426
|
collectTitledComponent(
|
|
@@ -1716,19 +1694,6 @@ function TestThreadTitle({ threadId }) {
|
|
|
1716
1694
|
if (thread === void 0) return null;
|
|
1717
1695
|
return /* @__PURE__ */ jsx("span", { "data-thread-title": threadId, children: thread.displayTitle });
|
|
1718
1696
|
}
|
|
1719
|
-
function TestSidebarNavigationIcon({
|
|
1720
|
-
icon,
|
|
1721
|
-
className
|
|
1722
|
-
}) {
|
|
1723
|
-
return /* @__PURE__ */ jsx(
|
|
1724
|
-
"span",
|
|
1725
|
-
{
|
|
1726
|
-
"aria-hidden": "true",
|
|
1727
|
-
className,
|
|
1728
|
-
"data-sidebar-navigation-icon": icon.kind === "host" ? icon.name : `${icon.pluginId}/${icon.icon ?? ""}`
|
|
1729
|
-
}
|
|
1730
|
-
);
|
|
1731
|
-
}
|
|
1732
1697
|
function SlotLifecycleGuard({
|
|
1733
1698
|
children,
|
|
1734
1699
|
onUnmount
|
|
@@ -2352,28 +2317,6 @@ var testPluginSdkApp = {
|
|
|
2352
2317
|
return env.sidebarShortcuts.get(threadId) ?? null;
|
|
2353
2318
|
},
|
|
2354
2319
|
ThreadTitle: TestThreadTitle,
|
|
2355
|
-
experimental_useSidebarNavigation() {
|
|
2356
|
-
return useSlotEnv("experimental_useSidebarNavigation").sidebarNavigation;
|
|
2357
|
-
},
|
|
2358
|
-
experimental_useSidebarNavigationSplit(itemId, _options) {
|
|
2359
|
-
const env = useSlotEnv("experimental_useSidebarNavigationSplit");
|
|
2360
|
-
return useMemo(
|
|
2361
|
-
() => ({
|
|
2362
|
-
splitProps: {
|
|
2363
|
-
onPointerDown: () => {
|
|
2364
|
-
env.sidebarNavigationCalls.push({
|
|
2365
|
-
method: "beginSplitDrag",
|
|
2366
|
-
itemId
|
|
2367
|
-
});
|
|
2368
|
-
}
|
|
2369
|
-
},
|
|
2370
|
-
isAvailable: true,
|
|
2371
|
-
layout: null
|
|
2372
|
-
}),
|
|
2373
|
-
[env, itemId]
|
|
2374
|
-
);
|
|
2375
|
-
},
|
|
2376
|
-
experimental_SidebarNavigationIcon: TestSidebarNavigationIcon,
|
|
2377
2320
|
useEnvironmentProviders() {
|
|
2378
2321
|
return useSlotEnv("useEnvironmentProviders").environmentProviders;
|
|
2379
2322
|
},
|
|
@@ -2666,43 +2609,6 @@ function renderSlot(registration, props, options = {}) {
|
|
|
2666
2609
|
}
|
|
2667
2610
|
};
|
|
2668
2611
|
const sidebarActionCalls = [];
|
|
2669
|
-
const sidebarNavigationCalls = [];
|
|
2670
|
-
const sidebarNavigation = {
|
|
2671
|
-
items: options.sidebarNavigation?.items ?? [],
|
|
2672
|
-
activeItemId: options.sidebarNavigation?.activeItemId ?? null,
|
|
2673
|
-
isShortcutModifierHeld: options.sidebarNavigation?.isShortcutModifierHeld ?? false,
|
|
2674
|
-
actions: {
|
|
2675
|
-
activate(itemId, activationOptions) {
|
|
2676
|
-
sidebarNavigationCalls.push({
|
|
2677
|
-
method: "activate",
|
|
2678
|
-
itemId,
|
|
2679
|
-
openInSplit: activationOptions.openInSplit
|
|
2680
|
-
});
|
|
2681
|
-
},
|
|
2682
|
-
setVisible(itemId, isVisible) {
|
|
2683
|
-
sidebarNavigationCalls.push({
|
|
2684
|
-
method: "setVisible",
|
|
2685
|
-
itemId,
|
|
2686
|
-
isVisible
|
|
2687
|
-
});
|
|
2688
|
-
},
|
|
2689
|
-
setOrder(itemIds) {
|
|
2690
|
-
sidebarNavigationCalls.push({
|
|
2691
|
-
method: "setOrder",
|
|
2692
|
-
itemIds: [...itemIds]
|
|
2693
|
-
});
|
|
2694
|
-
},
|
|
2695
|
-
openCustomize() {
|
|
2696
|
-
sidebarNavigationCalls.push({ method: "openCustomize" });
|
|
2697
|
-
},
|
|
2698
|
-
openDetails(itemId) {
|
|
2699
|
-
sidebarNavigationCalls.push({ method: "openDetails", itemId });
|
|
2700
|
-
},
|
|
2701
|
-
async disablePlugin(itemId) {
|
|
2702
|
-
sidebarNavigationCalls.push({ method: "disablePlugin", itemId });
|
|
2703
|
-
}
|
|
2704
|
-
}
|
|
2705
|
-
};
|
|
2706
2612
|
const sidebarPullRequests = new Map(
|
|
2707
2613
|
Object.entries(options.sidebarPullRequests ?? {})
|
|
2708
2614
|
);
|
|
@@ -3088,8 +2994,6 @@ ${block}
|
|
|
3088
2994
|
sidebarRowStatuses,
|
|
3089
2995
|
sidebarShortcuts,
|
|
3090
2996
|
sidebarSplitLayout: options.sidebarSplitLayout ?? null,
|
|
3091
|
-
sidebarNavigation,
|
|
3092
|
-
sidebarNavigationCalls,
|
|
3093
2997
|
environmentProviders,
|
|
3094
2998
|
sdk,
|
|
3095
2999
|
sdkCalls,
|
|
@@ -3161,7 +3065,6 @@ ${block}
|
|
|
3161
3065
|
navigateCalls,
|
|
3162
3066
|
experimental_fixedTabOpenCalls,
|
|
3163
3067
|
sidebarActionCalls,
|
|
3164
|
-
sidebarNavigationCalls,
|
|
3165
3068
|
sdkCalls,
|
|
3166
3069
|
experimental_clipboardWrites,
|
|
3167
3070
|
composer: composerLog,
|
|
@@ -3176,7 +3079,6 @@ ${block}
|
|
|
3176
3079
|
navigateCalls,
|
|
3177
3080
|
experimental_fixedTabOpenCalls,
|
|
3178
3081
|
sidebarActionCalls,
|
|
3179
|
-
sidebarNavigationCalls,
|
|
3180
3082
|
sdkCalls,
|
|
3181
3083
|
experimental_clipboardWrites,
|
|
3182
3084
|
composer: composerLog
|