@xpert-ai/chatkit-web-component 0.4.0 → 0.5.0

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.
@@ -2654,6 +2654,38 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
2654
2654
  }
2655
2655
  return onClientTool({ name, params, id, tool_call_id });
2656
2656
  },
2657
+ onToolOutputAttachmentPreview: async (request) => {
2658
+ var _a2, _b2;
2659
+ const onRequestPreview = (_b2 = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.toolOutputAttachments) == null ? void 0 : _b2.onRequestPreview;
2660
+ if (!onRequestPreview) {
2661
+ __privateMethod(this, _ChatKitElementBase_instances, emitAndThrow_fn).call(this, new IntegrationError(
2662
+ "No handler for tool-output attachment previews. Add toolOutputAttachments.onRequestPreview to your ChatKit options."
2663
+ ));
2664
+ }
2665
+ return onRequestPreview(request);
2666
+ },
2667
+ onWorkbenchClientCommand: async ({
2668
+ commandKey,
2669
+ payload,
2670
+ hostType,
2671
+ hostId,
2672
+ viewKey
2673
+ }) => {
2674
+ var _a2, _b2;
2675
+ const onClientCommand = (_b2 = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.workbench) == null ? void 0 : _b2.onClientCommand;
2676
+ if (!onClientCommand) {
2677
+ __privateMethod(this, _ChatKitElementBase_instances, emitAndThrow_fn).call(this, new IntegrationError(
2678
+ `No handler for workbench client command "${commandKey}". Add workbench.onClientCommand to your ChatKit options.`
2679
+ ));
2680
+ }
2681
+ return onClientCommand({
2682
+ commandKey,
2683
+ payload,
2684
+ hostType,
2685
+ hostId,
2686
+ viewKey
2687
+ });
2688
+ },
2657
2689
  onWidgetAction: async ({
2658
2690
  action,
2659
2691
  widgetItem