isdata-customer-sdk 0.1.75 → 0.1.76

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/index.umd.js CHANGED
@@ -31091,6 +31091,9 @@ class ChatClientMgr {
31091
31091
  this.handler.addChatListener(this.makeKey(`sdata_close_frame_window`), async (data, event) => {
31092
31092
  return this.handler.closeWindow();
31093
31093
  });
31094
+ this.handler.addChatListener(this.makeKey(`sdata_chat_aiAgent_event`), async (data, event) => {
31095
+ return this.handler.onAIAgentEvent(data, event);
31096
+ });
31094
31097
  this.handler.addChatListener(this.makeKey(`sdata_alllife_event_regist`), async (data, event) => {
31095
31098
  this.appSKID = data.appid;
31096
31099
  this.imType = data.im_type;
@@ -31100,7 +31103,7 @@ class ChatClientMgr {
31100
31103
  singleChatID: this.singleChatID,
31101
31104
  customParams: this.customParams
31102
31105
  };
31103
- console.log("charParams", charParams);
31106
+ // console.log("charParams", charParams);
31104
31107
  this.handler.fireEventToChatWindow(event, this.chartOrigin, this.makeKey("sdata_alllife_initChat"), charParams, result => {
31105
31108
  if (result) {
31106
31109
  this.handler.onChatInitFinished();
@@ -31387,6 +31390,9 @@ const getIMHanlder = customerHanlder => {
31387
31390
  },
31388
31391
  onChatInitFinished: async () => {
31389
31392
  // this.chatInitFinish = true;
31393
+ },
31394
+ onAIAgentEvent: async (data, event) => {
31395
+ // this.onAIAgentEvent(data,event);
31390
31396
  }
31391
31397
  };
31392
31398
  handler = {