isdata-customer-sdk 0.2.2 → 0.2.4

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
@@ -32704,6 +32704,7 @@ class ChatClientMgr {
32704
32704
  return this.handler.onAIAgentEvent(data, event);
32705
32705
  });
32706
32706
  this.handler.addChatListener(this.makeKey(`sdata_alllife_event_regist`), async (data, event) => {
32707
+ console.log("recive chat regist event data:", data);
32707
32708
  this.appSKID = data.appid;
32708
32709
  this.imType = data.im_type;
32709
32710
  await this.initChatAIs();
@@ -32712,9 +32713,9 @@ class ChatClientMgr {
32712
32713
  singleChatID: this.singleChatID,
32713
32714
  customParams: this.customParams
32714
32715
  };
32715
- // console.log("charParams", charParams);
32716
32716
  this.handler.fireEventToChatWindow(event, this.chartOrigin, this.makeKey("sdata_alllife_initChat"), charParams, result => {
32717
32717
  if (result) {
32718
+ console.log("chat init finished:", result);
32718
32719
  this.handler.onChatInitFinished();
32719
32720
  }
32720
32721
  });
@@ -33121,7 +33122,7 @@ const check = element => {
33121
33122
  if (innerHTML.includes("序号") || innerHTML.includes("Serial No.")) {
33122
33123
  console.log("检查smardaten平台表格 序号 元素:", innerHTML);
33123
33124
  let tempHTMLMatch = {
33124
- oldValue: '$L{PLATFORM_SERIAL_NO}'
33125
+ oldValue: '$L{序号}'
33125
33126
  };
33126
33127
  checkResult.result = true;
33127
33128
  checkResult.innerHTMLMatch = tempHTMLMatch;
@@ -33130,7 +33131,7 @@ const check = element => {
33130
33131
  if (innerHTML.includes("操作")) {
33131
33132
  console.log("检查smardaten平台表格 操作 元素:", innerHTML);
33132
33133
  let tempHTMLMatch = {
33133
- oldValue: '$L{PLATFORM_OPERATE}'
33134
+ oldValue: '$L{操作}'
33134
33135
  };
33135
33136
  checkResult.result = true;
33136
33137
  checkResult.innerHTMLMatch = tempHTMLMatch;
@@ -33143,7 +33144,7 @@ const check = element => {
33143
33144
  if (innerHTML.includes("导出进度") || innerHTML.includes("Export progress")) {
33144
33145
  console.log("检查smardaten平台表格 导出按钮 元素:", innerHTML);
33145
33146
  let tempHTMLMatch = {
33146
- oldValue: '$L{PLATFORM_EXPORT_ALL}'
33147
+ oldValue: '$L{导出进度}'
33147
33148
  };
33148
33149
  checkResult.result = true;
33149
33150
  checkResult.innerHTMLMatch = tempHTMLMatch;
@@ -33165,13 +33166,13 @@ const check = element => {
33165
33166
  }
33166
33167
  let scriptNodes = [{
33167
33168
  nodeType: Node.TEXT_NODE,
33168
- key: 'PLATFORM_TOTAL'
33169
+ key: ''
33169
33170
  }, {
33170
33171
  nodeType: "SCRIPTNODE",
33171
33172
  node: scriptNode
33172
33173
  }, {
33173
33174
  nodeType: Node.TEXT_NODE,
33174
- key: 'PLATFORM_PIECES'
33175
+ key: ''
33175
33176
  }];
33176
33177
  for (let i = 0; i < element.childNodes.length; i++) {
33177
33178
  let childNode = element.childNodes[i];
@@ -33214,13 +33215,13 @@ const check = element => {
33214
33215
  }
33215
33216
  let scriptNodes = [{
33216
33217
  nodeType: Node.TEXT_NODE,
33217
- key: 'PLATFORM_JUNPTO'
33218
+ key: '跳至'
33218
33219
  }, {
33219
33220
  nodeType: "SCRIPTNODE",
33220
33221
  node: scriptNode
33221
33222
  }, {
33222
33223
  nodeType: Node.TEXT_NODE,
33223
- key: 'PLATFORM_PAGE'
33224
+ key: ''
33224
33225
  }];
33225
33226
  for (let i = 0; i < element.childNodes.length; i++) {
33226
33227
  let childNode = element.childNodes[i];
@@ -33255,13 +33256,13 @@ const check = element => {
33255
33256
  if (innerHTML.includes("/") && innerHTML.includes("page") || innerHTML.includes("/") && innerHTML.includes("条") && innerHTML.includes("页")) {
33256
33257
  let oldValue = element.innerHTML;
33257
33258
  if (innerHTML.includes("page")) {
33258
- oldValue = oldValue.replace('page', '$L{PLATFORM_PAGE}');
33259
+ oldValue = oldValue.replace('page', '$L{}');
33259
33260
  }
33260
33261
  if (innerHTML.includes("页")) {
33261
- oldValue = oldValue.replace('页', '$L{PLATFORM_PAGE}');
33262
+ oldValue = oldValue.replace('页', '$L{}');
33262
33263
  }
33263
33264
  if (innerHTML.includes("条")) {
33264
- oldValue = oldValue.replace('条', '$L{PLATFORM_PIECES}');
33265
+ oldValue = oldValue.replace('条', '$L{}');
33265
33266
  }
33266
33267
  let tempHTMLMatch = {
33267
33268
  oldValue: oldValue
@@ -33277,7 +33278,7 @@ const check = element => {
33277
33278
  if (innerHTML.includes("确认执行:") || innerHTML.includes("Confirm Execution:")) {
33278
33279
  console.log("检查smardaten平台删除提问对话框:", innerHTML);
33279
33280
  let tempHTMLMatch = {
33280
- oldValue: '$L{PLATFORM_DELETE_CONFIRM_TITLE}'
33281
+ oldValue: '$L{操作确认:删除?}'
33281
33282
  };
33282
33283
  checkResult.result = true;
33283
33284
  checkResult.innerHTMLMatch = tempHTMLMatch;
@@ -33290,7 +33291,7 @@ const check = element => {
33290
33291
  if (innerHTML.includes("Cancel") || innerHTML.includes("取消")) {
33291
33292
  console.log("检查smardaten平台 Tip提问取消删除按钮:", innerHTML);
33292
33293
  let tempHTMLMatch = {
33293
- oldValue: '$L{PLATFORM_CANCEL}'
33294
+ oldValue: '$L{取消}'
33294
33295
  };
33295
33296
  checkResult.result = true;
33296
33297
  checkResult.innerHTMLMatch = tempHTMLMatch;
@@ -33299,7 +33300,7 @@ const check = element => {
33299
33300
  if (innerHTML.includes("确认") || innerHTML.includes("OK")) {
33300
33301
  console.log("检查smardaten平台 Tip提问确认删除按钮:", innerHTML);
33301
33302
  let tempHTMLMatch = {
33302
- oldValue: '$L{PLATFORM_OK}'
33303
+ oldValue: '$L{确认}'
33303
33304
  };
33304
33305
  checkResult.result = true;
33305
33306
  checkResult.innerHTMLMatch = tempHTMLMatch;