isdata-customer-sdk 0.1.84 → 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.common.js +12 -1
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +12 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -29578,6 +29578,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29578
29578
|
getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
|
|
29579
29579
|
getAuthPic: function() { return /* reexport */ getAuthPic; },
|
|
29580
29580
|
getChildrenOfficeInfosByID: function() { return /* reexport */ getChildrenOfficeInfosByID; },
|
|
29581
|
+
getCurrentAppID: function() { return /* reexport */ getCurrentAppID; },
|
|
29581
29582
|
getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
|
|
29582
29583
|
getDifyFileType: function() { return /* reexport */ getDifyFileType; },
|
|
29583
29584
|
getFileSize: function() { return /* reexport */ getFileSize; },
|
|
@@ -29813,10 +29814,14 @@ let prefixPath = window.prefixPath || "";
|
|
|
29813
29814
|
const getPoratlAppID = () => {
|
|
29814
29815
|
let portal_app_id = window.sessionStorage.getItem("iportal_app_id");
|
|
29815
29816
|
if (!portal_app_id) {
|
|
29816
|
-
portal_app_id =
|
|
29817
|
+
portal_app_id = getCurrentAppID();
|
|
29817
29818
|
}
|
|
29818
29819
|
return portal_app_id;
|
|
29819
29820
|
};
|
|
29821
|
+
const getCurrentAppID = () => {
|
|
29822
|
+
let app_id = window.appSdk.getAppId() || window.localStorage.MobileAppId;
|
|
29823
|
+
return app_id;
|
|
29824
|
+
};
|
|
29820
29825
|
|
|
29821
29826
|
/**
|
|
29822
29827
|
* 取门户应用菜单数据
|
|
@@ -32487,6 +32492,7 @@ const removeEventAction = eventKey => {
|
|
|
32487
32492
|
delete window.sdataEventActions[eventKey];
|
|
32488
32493
|
};
|
|
32489
32494
|
const initFrameWindowListener = () => {
|
|
32495
|
+
if (window.isFrameWindowInited) return;
|
|
32490
32496
|
let SDATA_WINDOW_TRUSTED_ORIGINS = window.SDATA_WINDOW_TRUSTED_ORIGINS;
|
|
32491
32497
|
if (!SDATA_WINDOW_TRUSTED_ORIGINS) window.SDATA_WINDOW_TRUSTED_ORIGINS = [];
|
|
32492
32498
|
let sdataEventActions = window.sdataEventActions;
|
|
@@ -32523,6 +32529,7 @@ const initFrameWindowListener = () => {
|
|
|
32523
32529
|
event.source.postMessage(responseData, eventSourceKey);
|
|
32524
32530
|
}
|
|
32525
32531
|
});
|
|
32532
|
+
window.isFrameWindowInited = true;
|
|
32526
32533
|
};
|
|
32527
32534
|
const sendWindowMessage = async (targetWindow, originKey, eventKey, data, callback) => {
|
|
32528
32535
|
let timestamp = new Date().getTime();
|
|
@@ -32646,6 +32653,10 @@ class ChatClientMgr {
|
|
|
32646
32653
|
return "IM_SINGLE_MODE";
|
|
32647
32654
|
case 2:
|
|
32648
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";
|
|
32649
32660
|
default:
|
|
32650
32661
|
return "IM_MULTIPLE_MODE";
|
|
32651
32662
|
}
|