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