isdata-customer-sdk 0.1.85 → 0.1.86

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.
@@ -32482,6 +32482,7 @@ const removeEventAction = eventKey => {
32482
32482
  delete window.sdataEventActions[eventKey];
32483
32483
  };
32484
32484
  const initFrameWindowListener = () => {
32485
+ if (window.isFrameWindowInited) return;
32485
32486
  let SDATA_WINDOW_TRUSTED_ORIGINS = window.SDATA_WINDOW_TRUSTED_ORIGINS;
32486
32487
  if (!SDATA_WINDOW_TRUSTED_ORIGINS) window.SDATA_WINDOW_TRUSTED_ORIGINS = [];
32487
32488
  let sdataEventActions = window.sdataEventActions;
@@ -32518,6 +32519,7 @@ const initFrameWindowListener = () => {
32518
32519
  event.source.postMessage(responseData, eventSourceKey);
32519
32520
  }
32520
32521
  });
32522
+ window.isFrameWindowInited = true;
32521
32523
  };
32522
32524
  const sendWindowMessage = async (targetWindow, originKey, eventKey, data, callback) => {
32523
32525
  let timestamp = new Date().getTime();
@@ -32641,6 +32643,10 @@ class ChatClientMgr {
32641
32643
  return "IM_SINGLE_MODE";
32642
32644
  case 2:
32643
32645
  return "IM_EMBED_MODE";
32646
+ case 3:
32647
+ return "IM_MOBILE_MULTIPLE_EMBED_MODE";
32648
+ case 4:
32649
+ return "IM_MOBILE_SINGLE_EMBED_MODE";
32644
32650
  default:
32645
32651
  return "IM_MULTIPLE_MODE";
32646
32652
  }