@get-bb/plugin-sdk 0.6.65 → 0.6.73

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
@@ -88,6 +88,20 @@ var experimental_THREAD_ACTION_GROUPS = {
88
88
  lifecycle: "4_lifecycle"
89
89
  };
90
90
 
91
+ // src/thread-info-groups.ts
92
+ var experimental_THREAD_INFO_ROW_GROUPS = {
93
+ thread: "1_thread",
94
+ environment: "2_environment",
95
+ git: "3_git",
96
+ pullRequest: "4_pullRequest",
97
+ lifecycle: "5_lifecycle"
98
+ };
99
+ var experimental_THREAD_INFO_SECTION_GROUPS = {
100
+ related: "1_related",
101
+ changes: "2_changes",
102
+ storage: "3_storage"
103
+ };
104
+
91
105
  // src/app.ts
92
106
  function runtimeHost() {
93
107
  return globalThis.__bbPluginRuntime;
@@ -162,6 +176,16 @@ var experimental_SourceCode = runtimeComponent(
162
176
  "experimental_SourceCode"
163
177
  );
164
178
  var experimental_Diff = runtimeComponent("experimental_Diff");
179
+ var experimental_InfoSection = runtimeComponent(
180
+ "experimental_InfoSection"
181
+ );
182
+ var experimental_DetailRow = runtimeComponent(
183
+ "experimental_DetailRow"
184
+ );
185
+ var experimental_InfoList = runtimeComponent("experimental_InfoList");
186
+ var experimental_InfoListRow = runtimeComponent(
187
+ "experimental_InfoListRow"
188
+ );
165
189
  var experimental_useRpcQuery = runtimeFunction(
166
190
  "experimental_useRpcQuery"
167
191
  );
@@ -196,6 +220,57 @@ var experimental_useFixedTabTarget = runtimeFunction(
196
220
  );
197
221
  var useComposer = runtimeFunction("useComposer");
198
222
  var useComposers = runtimeFunction("useComposers");
223
+ var experimental_useComposerRenderer = runtimeFunction(
224
+ "experimental_useComposerRenderer"
225
+ );
226
+ var experimental_useThreadTitleDisplayText = runtimeFunction(
227
+ "experimental_useThreadTitleDisplayText"
228
+ );
229
+ var experimental_useComposerContributions = runtimeFunction(
230
+ "experimental_useComposerContributions"
231
+ );
232
+ var experimental_useComposerMentionSearch = runtimeFunction(
233
+ "experimental_useComposerMentionSearch"
234
+ );
235
+ var experimental_useComposerCommandSearch = runtimeFunction(
236
+ "experimental_useComposerCommandSearch"
237
+ );
238
+ var experimental_ComposerRoot = runtimeComponent(
239
+ "experimental_ComposerRoot"
240
+ );
241
+ var experimental_VoiceInputButton = runtimeComponent(
242
+ "experimental_VoiceInputButton"
243
+ );
244
+ var experimental_VoiceRecordingBar = runtimeComponent(
245
+ "experimental_VoiceRecordingBar"
246
+ );
247
+ var experimental_FailedVoiceRecordings = runtimeComponent(
248
+ "experimental_FailedVoiceRecordings"
249
+ );
250
+ var experimental_ShortcutHint = runtimeComponent(
251
+ "experimental_ShortcutHint"
252
+ );
253
+ var experimental_ImageLightbox = runtimeComponent(
254
+ "experimental_ImageLightbox"
255
+ );
256
+ var experimental_PromptMentionIcon = runtimeComponent(
257
+ "experimental_PromptMentionIcon"
258
+ );
259
+ var experimental_describePromptMention = runtimeFunction(
260
+ "experimental_describePromptMention"
261
+ );
262
+ var experimental_promptMentionClipboardAttributes = runtimeFunction(
263
+ "experimental_promptMentionClipboardAttributes"
264
+ );
265
+ var experimental_readPromptMentionClipboard = runtimeFunction(
266
+ "experimental_readPromptMentionClipboard"
267
+ );
268
+ var experimental_PluginIcon = runtimeComponent(
269
+ "experimental_PluginIcon"
270
+ );
271
+ var experimental_ThreadTitleText = runtimeComponent(
272
+ "experimental_ThreadTitleText"
273
+ );
199
274
  var useComposerView = runtimeFunction("useComposerView");
200
275
  var experimental_useSidebarThreads = runtimeFunction(
201
276
  "experimental_useSidebarThreads"
@@ -218,9 +293,6 @@ var experimental_ThreadActionsMenu = runtimeComponent(
218
293
  var experimental_ThreadActionsContextMenu = runtimeComponent(
219
294
  "experimental_ThreadActionsContextMenu"
220
295
  );
221
- var experimental_useSidebarThreadPullRequest = runtimeFunction(
222
- "experimental_useSidebarThreadPullRequest"
223
- );
224
296
  var experimental_useSidebarThreadSplit = runtimeFunction(
225
297
  "experimental_useSidebarThreadSplit"
226
298
  );
@@ -272,28 +344,50 @@ export {
272
344
  UrlLink,
273
345
  definePluginApp,
274
346
  experimental_BranchPicker,
347
+ experimental_ComposerRoot,
348
+ experimental_DetailRow,
275
349
  experimental_Diff,
350
+ experimental_FailedVoiceRecordings,
276
351
  experimental_FileLink,
277
352
  experimental_Icon,
353
+ experimental_ImageLightbox,
354
+ experimental_InfoList,
355
+ experimental_InfoListRow,
356
+ experimental_InfoSection,
278
357
  experimental_NewThreadComposer,
279
358
  experimental_PermissionModePicker,
359
+ experimental_PluginIcon,
280
360
  experimental_PluginRpcCallError,
361
+ experimental_PromptMentionIcon,
281
362
  experimental_ProviderIcon,
282
363
  experimental_ProviderModelPicker,
364
+ experimental_ShortcutHint,
283
365
  experimental_SidebarNavigationIcon,
284
366
  experimental_SourceCode,
285
367
  experimental_THREAD_ACTION_GROUPS,
368
+ experimental_THREAD_INFO_ROW_GROUPS,
369
+ experimental_THREAD_INFO_SECTION_GROUPS,
286
370
  experimental_ThreadActionsContextMenu,
287
371
  experimental_ThreadActionsMenu,
288
372
  experimental_ThreadStatusGlyph,
373
+ experimental_ThreadTitleText,
374
+ experimental_VoiceInputButton,
289
375
  experimental_VoiceInputTextarea,
376
+ experimental_VoiceRecordingBar,
290
377
  experimental_copyToClipboard,
378
+ experimental_describePromptMention,
379
+ experimental_promptMentionClipboardAttributes,
380
+ experimental_readPromptMentionClipboard,
291
381
  experimental_saveFile,
292
382
  experimental_useAppPanel,
293
383
  experimental_useArchiveEnvironmentThreads,
294
384
  experimental_useBranches,
295
385
  experimental_useCheckoutState,
296
386
  experimental_useCodeTheme,
387
+ experimental_useComposerCommandSearch,
388
+ experimental_useComposerContributions,
389
+ experimental_useComposerMentionSearch,
390
+ experimental_useComposerRenderer,
297
391
  experimental_useFixedTabTarget,
298
392
  experimental_usePluginId,
299
393
  experimental_useProviders,
@@ -305,11 +399,11 @@ export {
305
399
  experimental_useSidebarNavigation,
306
400
  experimental_useSidebarNavigationSplit,
307
401
  experimental_useSidebarThreadActions,
308
- experimental_useSidebarThreadPullRequest,
309
402
  experimental_useSidebarThreadSplit,
310
403
  experimental_useSidebarThreads,
311
404
  experimental_useThreadActionRegistrations,
312
405
  experimental_useThreadActions,
406
+ experimental_useThreadTitleDisplayText,
313
407
  useBbContext,
314
408
  useBbNavigate,
315
409
  useComposer,
package/dist/index.js CHANGED
@@ -900,6 +900,20 @@ var experimental_THREAD_ACTION_GROUPS = {
900
900
  settings: "3_settings",
901
901
  lifecycle: "4_lifecycle"
902
902
  };
903
+
904
+ // src/thread-info-groups.ts
905
+ var experimental_THREAD_INFO_ROW_GROUPS = {
906
+ thread: "1_thread",
907
+ environment: "2_environment",
908
+ git: "3_git",
909
+ pullRequest: "4_pullRequest",
910
+ lifecycle: "5_lifecycle"
911
+ };
912
+ var experimental_THREAD_INFO_SECTION_GROUPS = {
913
+ related: "1_related",
914
+ changes: "2_changes",
915
+ storage: "3_storage"
916
+ };
903
917
  export {
904
918
  PLUGIN_CLI_OUTPUT_MAX_BYTES,
905
919
  PluginCliError,
@@ -909,5 +923,7 @@ export {
909
923
  experimental_PluginRpcCallError,
910
924
  experimental_PluginRpcRefusal,
911
925
  experimental_THREAD_ACTION_GROUPS,
926
+ experimental_THREAD_INFO_ROW_GROUPS,
927
+ experimental_THREAD_INFO_SECTION_GROUPS,
912
928
  experimental_defineHostEntry
913
929
  };
@@ -365,30 +365,29 @@ function createComposerHandleBinding(key, initial) {
365
365
  }
366
366
  target().setDraft(appendComposerDraft(target().getDraft(), value, block));
367
367
  };
368
- const submit = async (options) => {
368
+ const submit = async (options = {}) => {
369
369
  requireAvailable();
370
- const hostSubmit = target().submit;
371
- if (hostSubmit === void 0) {
372
- throw new Error("This composer cannot submit programmatically.");
373
- }
374
370
  if (options.sendAt !== void 0 && (!Number.isFinite(options.sendAt) || options.sendAt <= Date.now())) {
375
371
  throw new Error("Pick a time in the future.");
376
372
  }
377
373
  const errorBefore = editorState().attachmentError;
378
- await waitForUploads(target());
374
+ if (editorState().isAttaching) await waitForUploads(target());
379
375
  const state = editorState();
380
376
  if (state.attachmentError !== null && state.attachmentError !== errorBefore) {
381
377
  throw new Error(state.attachmentError);
382
378
  }
383
- if (state.isSubmittingBlocked) {
384
- throw new Error(
385
- state.submittingBlockedReason ?? "This composer can't submit right now."
386
- );
387
- }
388
- await hostSubmit(
389
- options,
390
- options.experimental_data === void 0 ? void 0 : { pluginId: controller.pluginId, data: options.experimental_data }
391
- );
379
+ const submission = target().editorSubmit({
380
+ mode: options.experimental_mode ?? "enter",
381
+ ...options.sendAt === void 0 ? {} : { sendAt: options.sendAt },
382
+ ...options.experimental_data === void 0 ? {} : {
383
+ pluginSubmission: {
384
+ pluginId: controller.pluginId,
385
+ data: options.experimental_data
386
+ }
387
+ }
388
+ });
389
+ if (submission === null) throw new Error(OFF_SCREEN_MESSAGE);
390
+ await submission;
392
391
  };
393
392
  const setSelection = async (selection) => {
394
393
  requireAvailable();