@get-bb/plugin-sdk 0.4.8 → 0.4.9

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/dist/app.js CHANGED
@@ -4,6 +4,8 @@ var definePluginApp = runtime.definePluginApp;
4
4
  var ThreadChat = runtime.ThreadChat;
5
5
  var Markdown = runtime.Markdown;
6
6
  var experimental_NewThreadComposer = runtime.experimental_NewThreadComposer;
7
+ var experimental_SourceCode = runtime.experimental_SourceCode;
8
+ var experimental_Diff = runtime.experimental_Diff;
7
9
  var useRpc = runtime.useRpc;
8
10
  var useRealtime = runtime.useRealtime;
9
11
  var useRealtimeConnectionState = runtime.useRealtimeConnectionState;
@@ -20,7 +22,9 @@ export {
20
22
  Markdown,
21
23
  ThreadChat,
22
24
  definePluginApp,
25
+ experimental_Diff,
23
26
  experimental_NewThreadComposer,
27
+ experimental_SourceCode,
24
28
  experimental_useSidebarThreadActions,
25
29
  experimental_useSidebarThreadPullRequest,
26
30
  experimental_useSidebarThreadSplit,
@@ -217,6 +217,8 @@ function collectPluginAppRegistrations(definition, onComposerCustomizationReject
217
217
  threadLists: [],
218
218
  threadHeaderActions: [],
219
219
  fileOpeners: [],
220
+ sourceCodeRenderers: [],
221
+ diffRenderers: [],
220
222
  messageDirectives: [],
221
223
  messageActions: [],
222
224
  providerIcons: [],
@@ -234,6 +236,8 @@ function collectPluginAppRegistrations(definition, onComposerCustomizationReject
234
236
  threadList: /* @__PURE__ */ new Set(),
235
237
  threadHeaderAction: /* @__PURE__ */ new Set(),
236
238
  fileOpener: /* @__PURE__ */ new Set(),
239
+ sourceCodeRenderer: /* @__PURE__ */ new Set(),
240
+ diffRenderer: /* @__PURE__ */ new Set(),
237
241
  messageDirective: /* @__PURE__ */ new Set(),
238
242
  messageAction: /* @__PURE__ */ new Set(),
239
243
  providerIcon: /* @__PURE__ */ new Set(),
@@ -453,6 +457,38 @@ function collectPluginAppRegistrations(definition, onComposerCustomizationReject
453
457
  component: requireComponent(kind, registration.component)
454
458
  });
455
459
  },
460
+ experimental_sourceCodeRenderer(registration) {
461
+ const kind = "slots.experimental_sourceCodeRenderer";
462
+ const id = requireSlotId(kind, registration?.id);
463
+ requireUniqueId(kind, seenIds.sourceCodeRenderer, id);
464
+ const description = requireOptionalString(
465
+ kind,
466
+ "description",
467
+ registration.description
468
+ );
469
+ collected.sourceCodeRenderers.push({
470
+ id,
471
+ title: requireNonEmptyString(kind, "title", registration.title),
472
+ ...description !== void 0 ? { description } : {},
473
+ component: requireComponent(kind, registration.component)
474
+ });
475
+ },
476
+ experimental_diffRenderer(registration) {
477
+ const kind = "slots.experimental_diffRenderer";
478
+ const id = requireSlotId(kind, registration?.id);
479
+ requireUniqueId(kind, seenIds.diffRenderer, id);
480
+ const description = requireOptionalString(
481
+ kind,
482
+ "description",
483
+ registration.description
484
+ );
485
+ collected.diffRenderers.push({
486
+ id,
487
+ title: requireNonEmptyString(kind, "title", registration.title),
488
+ ...description !== void 0 ? { description } : {},
489
+ component: requireComponent(kind, registration.component)
490
+ });
491
+ },
456
492
  messageDirective(registration) {
457
493
  const kind = "slots.messageDirective";
458
494
  const id = requireMessageDirectiveId(kind, registration?.id);