zmp-sdk 2.16.5 → 2.16.6

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.
@@ -36740,7 +36740,7 @@
36740
36740
  }
36741
36741
  _ZJSBridgeProvider_bridge = new WeakMap();
36742
36742
 
36743
- var version = "2.16.5";
36743
+ var version = "2.16.6";
36744
36744
 
36745
36745
  class Basics {
36746
36746
  /**
@@ -38180,7 +38180,7 @@
38180
38180
  return Promise.reject(error);
38181
38181
  }
38182
38182
  },
38183
- delay: this.isIOS ? 200 : 0
38183
+ delay: this.isIOS ? 400 : 0
38184
38184
  });
38185
38185
  });
38186
38186
  }
@@ -38287,7 +38287,7 @@
38287
38287
  return Promise.reject(error);
38288
38288
  }
38289
38289
  },
38290
- delay: this.isIOS ? 200 : 0
38290
+ delay: this.isIOS ? 400 : 0
38291
38291
  });
38292
38292
  });
38293
38293
  }
@@ -38773,7 +38773,7 @@
38773
38773
  var _ZaloMiniProgramSDKService_zAppId, _ZaloMiniProgramSDKService_appId, _ZaloMiniProgramSDKService_appConfig, _ZaloMiniProgramSDKService_zOAuth, _ZaloMiniProgramSDKService_zOAuthVrf, _ZaloMiniProgramSDKService_accessToken, _ZaloMiniProgramSDKService_refreshToken, _ZaloMiniProgramSDKService_cache, _ZaloMiniProgramSDKService_prevGetTokenTimestamp, _ZaloMiniProgramSDKService_tokenExpiresIn, _ZaloMiniProgramSDKService_cookies, _ZaloMiniProgramSDKService_actionBarConfig, _ZaloMiniProgramSDKService_callJump, _ZaloMiniProgramSDKService_setNavigationBarRightButton, _ZaloMiniProgramSDKService_getActionsSupported;
38774
38774
  class ZaloMiniProgramSDKService extends ZJSBridgeProvider {
38775
38775
  constructor() {
38776
- var _a, _b, _c, _d, _e, _f, _g, _h;
38776
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
38777
38777
  super();
38778
38778
  _ZaloMiniProgramSDKService_zAppId.set(this, ZAPP_ID);
38779
38779
  _ZaloMiniProgramSDKService_appId.set(this, APP_ID);
@@ -38896,20 +38896,20 @@
38896
38896
  ? ACTION_LEFT_BUTTON_TYPE.SHOW_HOME
38897
38897
  : ACTION_LEFT_BUTTON_TYPE.HIDE_HOME;
38898
38898
  const currentUrl = new URL(location.href);
38899
- const actionBarType = lodash.isString(__classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig).app.headerColor) &&
38900
- __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig).app.headerColor.length > 0
38899
+ const actionBarType = lodash.isString((_f = (_e = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _e === void 0 ? void 0 : _e.app) === null || _f === void 0 ? void 0 : _f.headerColor) &&
38900
+ ((_j = (_h = (_g = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _g === void 0 ? void 0 : _g.app) === null || _h === void 0 ? void 0 : _h.headerColor) === null || _j === void 0 ? void 0 : _j.length) > 0
38901
38901
  ? SHOW_ACTION_BAR
38902
38902
  : HIDE_ACTION_BAR;
38903
- const leftButtonType = ((_f = (_e = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _e === void 0 ? void 0 : _e.app) === null || _f === void 0 ? void 0 : _f.leftButton) === 'none' ||
38904
- ((_h = (_g = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _g === void 0 ? void 0 : _g.app) === null || _h === void 0 ? void 0 : _h.leftButton) === 'home'
38903
+ const leftButtonType = ((_l = (_k = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _k === void 0 ? void 0 : _k.app) === null || _l === void 0 ? void 0 : _l.leftButton) === 'none' ||
38904
+ ((_o = (_m = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _m === void 0 ? void 0 : _m.app) === null || _o === void 0 ? void 0 : _o.leftButton) === 'home'
38905
38905
  ? ACTION_LEFT_BUTTON_TYPE.HIDE_BACK
38906
38906
  : ACTION_LEFT_BUTTON_TYPE.SHOW_BACK;
38907
38907
  __classPrivateFieldSet(this, _ZaloMiniProgramSDKService_actionBarConfig, {
38908
38908
  actionbarType: actionBarType,
38909
38909
  buttonType: leftButtonType,
38910
38910
  dataConfig: {
38911
- backgroundColor: __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig).app.headerColor || '',
38912
- textColor: __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig).app.textColor || '',
38911
+ backgroundColor: ((_q = (_p = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _p === void 0 ? void 0 : _p.app) === null || _q === void 0 ? void 0 : _q.headerColor) || '',
38912
+ textColor: ((_s = (_r = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _r === void 0 ? void 0 : _r.app) === null || _s === void 0 ? void 0 : _s.textColor) || '',
38913
38913
  viewInLeftType: leftButtonType,
38914
38914
  confirmToExit: 1
38915
38915
  },
package/dist/index.es.js CHANGED
@@ -36737,7 +36737,7 @@ class ZJSBridgeProvider {
36737
36737
  }
36738
36738
  _ZJSBridgeProvider_bridge = new WeakMap();
36739
36739
 
36740
- var version = "2.16.5";
36740
+ var version = "2.16.6";
36741
36741
 
36742
36742
  class Basics {
36743
36743
  /**
@@ -38177,7 +38177,7 @@ class OpenApi {
38177
38177
  return Promise.reject(error);
38178
38178
  }
38179
38179
  },
38180
- delay: this.isIOS ? 200 : 0
38180
+ delay: this.isIOS ? 400 : 0
38181
38181
  });
38182
38182
  });
38183
38183
  }
@@ -38284,7 +38284,7 @@ class Location {
38284
38284
  return Promise.reject(error);
38285
38285
  }
38286
38286
  },
38287
- delay: this.isIOS ? 200 : 0
38287
+ delay: this.isIOS ? 400 : 0
38288
38288
  });
38289
38289
  });
38290
38290
  }
@@ -38770,7 +38770,7 @@ class Routing {
38770
38770
  var _ZaloMiniProgramSDKService_zAppId, _ZaloMiniProgramSDKService_appId, _ZaloMiniProgramSDKService_appConfig, _ZaloMiniProgramSDKService_zOAuth, _ZaloMiniProgramSDKService_zOAuthVrf, _ZaloMiniProgramSDKService_accessToken, _ZaloMiniProgramSDKService_refreshToken, _ZaloMiniProgramSDKService_cache, _ZaloMiniProgramSDKService_prevGetTokenTimestamp, _ZaloMiniProgramSDKService_tokenExpiresIn, _ZaloMiniProgramSDKService_cookies, _ZaloMiniProgramSDKService_actionBarConfig, _ZaloMiniProgramSDKService_callJump, _ZaloMiniProgramSDKService_setNavigationBarRightButton, _ZaloMiniProgramSDKService_getActionsSupported;
38771
38771
  class ZaloMiniProgramSDKService extends ZJSBridgeProvider {
38772
38772
  constructor() {
38773
- var _a, _b, _c, _d, _e, _f, _g, _h;
38773
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
38774
38774
  super();
38775
38775
  _ZaloMiniProgramSDKService_zAppId.set(this, ZAPP_ID);
38776
38776
  _ZaloMiniProgramSDKService_appId.set(this, APP_ID);
@@ -38893,20 +38893,20 @@ class ZaloMiniProgramSDKService extends ZJSBridgeProvider {
38893
38893
  ? ACTION_LEFT_BUTTON_TYPE.SHOW_HOME
38894
38894
  : ACTION_LEFT_BUTTON_TYPE.HIDE_HOME;
38895
38895
  const currentUrl = new URL(location.href);
38896
- const actionBarType = lodash.isString(__classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig).app.headerColor) &&
38897
- __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig).app.headerColor.length > 0
38896
+ const actionBarType = lodash.isString((_f = (_e = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _e === void 0 ? void 0 : _e.app) === null || _f === void 0 ? void 0 : _f.headerColor) &&
38897
+ ((_j = (_h = (_g = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _g === void 0 ? void 0 : _g.app) === null || _h === void 0 ? void 0 : _h.headerColor) === null || _j === void 0 ? void 0 : _j.length) > 0
38898
38898
  ? SHOW_ACTION_BAR
38899
38899
  : HIDE_ACTION_BAR;
38900
- const leftButtonType = ((_f = (_e = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _e === void 0 ? void 0 : _e.app) === null || _f === void 0 ? void 0 : _f.leftButton) === 'none' ||
38901
- ((_h = (_g = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _g === void 0 ? void 0 : _g.app) === null || _h === void 0 ? void 0 : _h.leftButton) === 'home'
38900
+ const leftButtonType = ((_l = (_k = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _k === void 0 ? void 0 : _k.app) === null || _l === void 0 ? void 0 : _l.leftButton) === 'none' ||
38901
+ ((_o = (_m = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _m === void 0 ? void 0 : _m.app) === null || _o === void 0 ? void 0 : _o.leftButton) === 'home'
38902
38902
  ? ACTION_LEFT_BUTTON_TYPE.HIDE_BACK
38903
38903
  : ACTION_LEFT_BUTTON_TYPE.SHOW_BACK;
38904
38904
  __classPrivateFieldSet(this, _ZaloMiniProgramSDKService_actionBarConfig, {
38905
38905
  actionbarType: actionBarType,
38906
38906
  buttonType: leftButtonType,
38907
38907
  dataConfig: {
38908
- backgroundColor: __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig).app.headerColor || '',
38909
- textColor: __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig).app.textColor || '',
38908
+ backgroundColor: ((_q = (_p = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _p === void 0 ? void 0 : _p.app) === null || _q === void 0 ? void 0 : _q.headerColor) || '',
38909
+ textColor: ((_s = (_r = __classPrivateFieldGet(this, _ZaloMiniProgramSDKService_appConfig)) === null || _r === void 0 ? void 0 : _r.app) === null || _s === void 0 ? void 0 : _s.textColor) || '',
38910
38910
  viewInLeftType: leftButtonType,
38911
38911
  confirmToExit: 1
38912
38912
  },