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