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.
@@ -29568,6 +29568,7 @@ __webpack_require__.d(__webpack_exports__, {
29568
29568
  getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
29569
29569
  getAuthPic: function() { return /* reexport */ getAuthPic; },
29570
29570
  getChildrenOfficeInfosByID: function() { return /* reexport */ getChildrenOfficeInfosByID; },
29571
+ getCurrentAppID: function() { return /* reexport */ getCurrentAppID; },
29571
29572
  getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
29572
29573
  getDifyFileType: function() { return /* reexport */ getDifyFileType; },
29573
29574
  getFileSize: function() { return /* reexport */ getFileSize; },
@@ -29803,10 +29804,14 @@ let prefixPath = window.prefixPath || "";
29803
29804
  const getPoratlAppID = () => {
29804
29805
  let portal_app_id = window.sessionStorage.getItem("iportal_app_id");
29805
29806
  if (!portal_app_id) {
29806
- portal_app_id = window.appSdk.getAppId();
29807
+ portal_app_id = getCurrentAppID();
29807
29808
  }
29808
29809
  return portal_app_id;
29809
29810
  };
29811
+ const getCurrentAppID = () => {
29812
+ let app_id = window.appSdk.getAppId() || window.localStorage.MobileAppId;
29813
+ return app_id;
29814
+ };
29810
29815
 
29811
29816
  /**
29812
29817
  * 取门户应用菜单数据
@@ -32477,6 +32482,7 @@ const removeEventAction = eventKey => {
32477
32482
  delete window.sdataEventActions[eventKey];
32478
32483
  };
32479
32484
  const initFrameWindowListener = () => {
32485
+ if (window.isFrameWindowInited) return;
32480
32486
  let SDATA_WINDOW_TRUSTED_ORIGINS = window.SDATA_WINDOW_TRUSTED_ORIGINS;
32481
32487
  if (!SDATA_WINDOW_TRUSTED_ORIGINS) window.SDATA_WINDOW_TRUSTED_ORIGINS = [];
32482
32488
  let sdataEventActions = window.sdataEventActions;
@@ -32513,6 +32519,7 @@ const initFrameWindowListener = () => {
32513
32519
  event.source.postMessage(responseData, eventSourceKey);
32514
32520
  }
32515
32521
  });
32522
+ window.isFrameWindowInited = true;
32516
32523
  };
32517
32524
  const sendWindowMessage = async (targetWindow, originKey, eventKey, data, callback) => {
32518
32525
  let timestamp = new Date().getTime();
@@ -32636,6 +32643,10 @@ class ChatClientMgr {
32636
32643
  return "IM_SINGLE_MODE";
32637
32644
  case 2:
32638
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";
32639
32650
  default:
32640
32651
  return "IM_MULTIPLE_MODE";
32641
32652
  }