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.
package/dist/index.umd.js
CHANGED
|
@@ -32492,6 +32492,7 @@ const removeEventAction = eventKey => {
|
|
|
32492
32492
|
delete window.sdataEventActions[eventKey];
|
|
32493
32493
|
};
|
|
32494
32494
|
const initFrameWindowListener = () => {
|
|
32495
|
+
if (window.isFrameWindowInited) return;
|
|
32495
32496
|
let SDATA_WINDOW_TRUSTED_ORIGINS = window.SDATA_WINDOW_TRUSTED_ORIGINS;
|
|
32496
32497
|
if (!SDATA_WINDOW_TRUSTED_ORIGINS) window.SDATA_WINDOW_TRUSTED_ORIGINS = [];
|
|
32497
32498
|
let sdataEventActions = window.sdataEventActions;
|
|
@@ -32528,6 +32529,7 @@ const initFrameWindowListener = () => {
|
|
|
32528
32529
|
event.source.postMessage(responseData, eventSourceKey);
|
|
32529
32530
|
}
|
|
32530
32531
|
});
|
|
32532
|
+
window.isFrameWindowInited = true;
|
|
32531
32533
|
};
|
|
32532
32534
|
const sendWindowMessage = async (targetWindow, originKey, eventKey, data, callback) => {
|
|
32533
32535
|
let timestamp = new Date().getTime();
|
|
@@ -32651,6 +32653,10 @@ class ChatClientMgr {
|
|
|
32651
32653
|
return "IM_SINGLE_MODE";
|
|
32652
32654
|
case 2:
|
|
32653
32655
|
return "IM_EMBED_MODE";
|
|
32656
|
+
case 3:
|
|
32657
|
+
return "IM_MOBILE_MULTIPLE_EMBED_MODE";
|
|
32658
|
+
case 4:
|
|
32659
|
+
return "IM_MOBILE_SINGLE_EMBED_MODE";
|
|
32654
32660
|
default:
|
|
32655
32661
|
return "IM_MULTIPLE_MODE";
|
|
32656
32662
|
}
|