@xpert-ai/chatkit-ui5 0.4.0 → 0.4.1

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.
@@ -2408,6 +2408,38 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
2408
2408
  }
2409
2409
  return onClientTool({ name, params, id, tool_call_id });
2410
2410
  },
2411
+ onToolOutputAttachmentPreview: async (request) => {
2412
+ var _a2, _b2;
2413
+ const onRequestPreview = (_b2 = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.toolOutputAttachments) == null ? void 0 : _b2.onRequestPreview;
2414
+ if (!onRequestPreview) {
2415
+ __privateMethod(this, _ChatKitElementBase_instances, emitAndThrow_fn).call(this, new IntegrationError(
2416
+ "No handler for tool-output attachment previews. Add toolOutputAttachments.onRequestPreview to your ChatKit options."
2417
+ ));
2418
+ }
2419
+ return onRequestPreview(request);
2420
+ },
2421
+ onWorkbenchClientCommand: async ({
2422
+ commandKey,
2423
+ payload,
2424
+ hostType,
2425
+ hostId,
2426
+ viewKey
2427
+ }) => {
2428
+ var _a2, _b2;
2429
+ const onClientCommand = (_b2 = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.workbench) == null ? void 0 : _b2.onClientCommand;
2430
+ if (!onClientCommand) {
2431
+ __privateMethod(this, _ChatKitElementBase_instances, emitAndThrow_fn).call(this, new IntegrationError(
2432
+ `No handler for workbench client command "${commandKey}". Add workbench.onClientCommand to your ChatKit options.`
2433
+ ));
2434
+ }
2435
+ return onClientCommand({
2436
+ commandKey,
2437
+ payload,
2438
+ hostType,
2439
+ hostId,
2440
+ viewKey
2441
+ });
2442
+ },
2411
2443
  onWidgetAction: async ({
2412
2444
  action,
2413
2445
  widgetItem