zmp-sdk 2.16.1 → 2.16.2

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.
@@ -36707,6 +36707,11 @@
36707
36707
  const error = new NativeError(-5, `${action}: Client isn't support this action`);
36708
36708
  return reject(error);
36709
36709
  }
36710
+ else if (option === null || option === void 0 ? void 0 : option.delay) {
36711
+ setTimeout(() => {
36712
+ __classPrivateFieldGet(this, _ZJSBridgeProvider_bridge).jsCall(action, data, fn, option === null || option === void 0 ? void 0 : option.isMultiCallback, option === null || option === void 0 ? void 0 : option.nRetry, option === null || option === void 0 ? void 0 : option.haveTimeout);
36713
+ }, option.delay);
36714
+ }
36710
36715
  else {
36711
36716
  __classPrivateFieldGet(this, _ZJSBridgeProvider_bridge).jsCall(action, data, fn, option === null || option === void 0 ? void 0 : option.isMultiCallback, option === null || option === void 0 ? void 0 : option.nRetry, option === null || option === void 0 ? void 0 : option.haveTimeout);
36712
36717
  }
@@ -36715,7 +36720,7 @@
36715
36720
  }
36716
36721
  _ZJSBridgeProvider_bridge = new WeakMap();
36717
36722
 
36718
- var version = "2.16.1";
36723
+ var version = "2.16.2";
36719
36724
 
36720
36725
  class Basics {
36721
36726
  /**
@@ -38159,7 +38164,8 @@
38159
38164
  else {
38160
38165
  return Promise.reject(error);
38161
38166
  }
38162
- }
38167
+ },
38168
+ delay: this.isIOS ? 200 : 0
38163
38169
  });
38164
38170
  });
38165
38171
  }
@@ -38263,7 +38269,8 @@
38263
38269
  else {
38264
38270
  return Promise.reject(error);
38265
38271
  }
38266
- }
38272
+ },
38273
+ delay: this.isIOS ? 200 : 0
38267
38274
  });
38268
38275
  });
38269
38276
  }
@@ -38764,6 +38771,7 @@
38764
38771
  _ZaloMiniProgramSDK_tokenExpiresIn.set(this, void 0);
38765
38772
  _ZaloMiniProgramSDK_cookies.set(this, null);
38766
38773
  this.events = ZMPEEmitter.getInstance();
38774
+ this.isIOS = checkPlatform().isIOS;
38767
38775
  _ZaloMiniProgramSDK_actionBarConfig.set(this, void 0);
38768
38776
  this.getActionBarConfig = () => {
38769
38777
  return __classPrivateFieldGet(this, _ZaloMiniProgramSDK_actionBarConfig);
@@ -41351,12 +41359,9 @@
41351
41359
  title: checkData('string', { maxLength: 100 }),
41352
41360
  'thumbnail?': checkData('url'),
41353
41361
  'path?': checkData('url'),
41354
- description: checkData(['string'], { maxLength: 400 }),
41362
+ description: checkData(['string'], { maxLength: 400 })
41355
41363
  }, {
41356
- description: {
41357
- vi: '',
41358
- en: ''
41359
- }
41364
+ description: ''
41360
41365
  }))
41361
41366
  ], SDKCreator.prototype, "getShareableLink", null);
41362
41367
  class ZaloMiniAppSDKCreator extends SDKCreator {
package/dist/index.es.js CHANGED
@@ -36704,6 +36704,11 @@ class ZJSBridgeProvider {
36704
36704
  const error = new NativeError(-5, `${action}: Client isn't support this action`);
36705
36705
  return reject(error);
36706
36706
  }
36707
+ else if (option === null || option === void 0 ? void 0 : option.delay) {
36708
+ setTimeout(() => {
36709
+ __classPrivateFieldGet(this, _ZJSBridgeProvider_bridge).jsCall(action, data, fn, option === null || option === void 0 ? void 0 : option.isMultiCallback, option === null || option === void 0 ? void 0 : option.nRetry, option === null || option === void 0 ? void 0 : option.haveTimeout);
36710
+ }, option.delay);
36711
+ }
36707
36712
  else {
36708
36713
  __classPrivateFieldGet(this, _ZJSBridgeProvider_bridge).jsCall(action, data, fn, option === null || option === void 0 ? void 0 : option.isMultiCallback, option === null || option === void 0 ? void 0 : option.nRetry, option === null || option === void 0 ? void 0 : option.haveTimeout);
36709
36714
  }
@@ -36712,7 +36717,7 @@ class ZJSBridgeProvider {
36712
36717
  }
36713
36718
  _ZJSBridgeProvider_bridge = new WeakMap();
36714
36719
 
36715
- var version = "2.16.1";
36720
+ var version = "2.16.2";
36716
36721
 
36717
36722
  class Basics {
36718
36723
  /**
@@ -38156,7 +38161,8 @@ class OpenApi {
38156
38161
  else {
38157
38162
  return Promise.reject(error);
38158
38163
  }
38159
- }
38164
+ },
38165
+ delay: this.isIOS ? 200 : 0
38160
38166
  });
38161
38167
  });
38162
38168
  }
@@ -38260,7 +38266,8 @@ class Location {
38260
38266
  else {
38261
38267
  return Promise.reject(error);
38262
38268
  }
38263
- }
38269
+ },
38270
+ delay: this.isIOS ? 200 : 0
38264
38271
  });
38265
38272
  });
38266
38273
  }
@@ -38761,6 +38768,7 @@ class ZaloMiniProgramSDK extends ZJSBridgeProvider {
38761
38768
  _ZaloMiniProgramSDK_tokenExpiresIn.set(this, void 0);
38762
38769
  _ZaloMiniProgramSDK_cookies.set(this, null);
38763
38770
  this.events = ZMPEEmitter.getInstance();
38771
+ this.isIOS = checkPlatform().isIOS;
38764
38772
  _ZaloMiniProgramSDK_actionBarConfig.set(this, void 0);
38765
38773
  this.getActionBarConfig = () => {
38766
38774
  return __classPrivateFieldGet(this, _ZaloMiniProgramSDK_actionBarConfig);
@@ -41348,12 +41356,9 @@ __decorate([
41348
41356
  title: checkData('string', { maxLength: 100 }),
41349
41357
  'thumbnail?': checkData('url'),
41350
41358
  'path?': checkData('url'),
41351
- description: checkData(['string'], { maxLength: 400 }),
41359
+ description: checkData(['string'], { maxLength: 400 })
41352
41360
  }, {
41353
- description: {
41354
- vi: '',
41355
- en: ''
41356
- }
41361
+ description: ''
41357
41362
  }))
41358
41363
  ], SDKCreator.prototype, "getShareableLink", null);
41359
41364
  class ZaloMiniAppSDKCreator extends SDKCreator {