zmp-sdk 2.18.1 → 2.18.4

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.
@@ -19689,7 +19689,7 @@
19689
19689
  })(PostFeedType || (PostFeedType = {}));
19690
19690
  var ShareSheetType;
19691
19691
  (function (ShareSheetType) {
19692
- ShareSheetType[ShareSheetType["image"] = 21] = "image";
19692
+ ShareSheetType[ShareSheetType["image"] = 1] = "image";
19693
19693
  ShareSheetType[ShareSheetType["gif"] = 11] = "gif";
19694
19694
  ShareSheetType[ShareSheetType["video"] = 12] = "video";
19695
19695
  ShareSheetType[ShareSheetType["link"] = 4] = "link";
@@ -21616,7 +21616,7 @@
21616
21616
  }
21617
21617
  _ZJSBridgeProvider_bridge = new WeakMap();
21618
21618
 
21619
- var version = "2.18.1";
21619
+ var version = "2.18.4";
21620
21620
 
21621
21621
  class Basics {
21622
21622
  /**
@@ -23414,6 +23414,7 @@
23414
23414
  }
23415
23415
  reqData = {
23416
23416
  photoUrls: photoUrls,
23417
+ photoUrl: object.data.imageUrl,
23417
23418
  caption: object.data.caption
23418
23419
  };
23419
23420
  break;
@@ -25241,7 +25242,7 @@
25241
25242
  __param(0, checkType('object', {
25242
25243
  title: checkData('string', { maxLength: 100 }),
25243
25244
  'thumbnail?': checkData('url'),
25244
- 'path?': checkData('url'),
25245
+ 'path?': checkData('string'),
25245
25246
  description: checkData(['string'], { maxLength: 400 })
25246
25247
  }, {
25247
25248
  description: ''
@@ -25262,7 +25263,6 @@
25262
25263
  }
25263
25264
  }
25264
25265
 
25265
- var _a;
25266
25266
  // Zalo Mini App API
25267
25267
  const platform = checkPlatform();
25268
25268
  let app;
@@ -25276,11 +25276,8 @@
25276
25276
  ZaloJSBridge.getInstance().onMultiJSCall(key, data);
25277
25277
  };
25278
25278
  };
25279
- const zalo_h5_event_handler = (_a = window === null || window === void 0 ? void 0 : window.zaloJSV2) === null || _a === void 0 ? void 0 : _a.zalo_h5_event_handler;
25280
25279
  window.zaloJSV2 = {
25281
25280
  zalo_h5_event_handler: function (eventId, eventName, eventData) {
25282
- typeof zalo_h5_event_handler === 'function' &&
25283
- zalo_h5_event_handler(eventId, eventName, eventData);
25284
25281
  ZaloJSBridge.getInstance().nativeEventHandler(eventId, eventName, eventData);
25285
25282
  }
25286
25283
  };
package/dist/index.es.js CHANGED
@@ -19686,7 +19686,7 @@ var PostFeedType;
19686
19686
  })(PostFeedType || (PostFeedType = {}));
19687
19687
  var ShareSheetType;
19688
19688
  (function (ShareSheetType) {
19689
- ShareSheetType[ShareSheetType["image"] = 21] = "image";
19689
+ ShareSheetType[ShareSheetType["image"] = 1] = "image";
19690
19690
  ShareSheetType[ShareSheetType["gif"] = 11] = "gif";
19691
19691
  ShareSheetType[ShareSheetType["video"] = 12] = "video";
19692
19692
  ShareSheetType[ShareSheetType["link"] = 4] = "link";
@@ -21613,7 +21613,7 @@ class ZJSBridgeProvider {
21613
21613
  }
21614
21614
  _ZJSBridgeProvider_bridge = new WeakMap();
21615
21615
 
21616
- var version = "2.18.1";
21616
+ var version = "2.18.4";
21617
21617
 
21618
21618
  class Basics {
21619
21619
  /**
@@ -23411,6 +23411,7 @@ class Zalo {
23411
23411
  }
23412
23412
  reqData = {
23413
23413
  photoUrls: photoUrls,
23414
+ photoUrl: object.data.imageUrl,
23414
23415
  caption: object.data.caption
23415
23416
  };
23416
23417
  break;
@@ -26370,7 +26371,7 @@ __decorate([
26370
26371
  __param(0, checkType('object', {
26371
26372
  title: checkData('string', { maxLength: 100 }),
26372
26373
  'thumbnail?': checkData('url'),
26373
- 'path?': checkData('url'),
26374
+ 'path?': checkData('string'),
26374
26375
  description: checkData(['string'], { maxLength: 400 })
26375
26376
  }, {
26376
26377
  description: ''
@@ -26391,7 +26392,6 @@ class MockSDKCreator extends SDKCreator {
26391
26392
  }
26392
26393
  }
26393
26394
 
26394
- var _a;
26395
26395
  // Zalo Mini App API
26396
26396
  const platform = checkPlatform();
26397
26397
  let app;
@@ -26405,11 +26405,8 @@ window.onMultiJSCall = (key) => {
26405
26405
  ZaloJSBridge.getInstance().onMultiJSCall(key, data);
26406
26406
  };
26407
26407
  };
26408
- const zalo_h5_event_handler = (_a = window === null || window === void 0 ? void 0 : window.zaloJSV2) === null || _a === void 0 ? void 0 : _a.zalo_h5_event_handler;
26409
26408
  window.zaloJSV2 = {
26410
26409
  zalo_h5_event_handler: function (eventId, eventName, eventData) {
26411
- typeof zalo_h5_event_handler === 'function' &&
26412
- zalo_h5_event_handler(eventId, eventName, eventData);
26413
26410
  ZaloJSBridge.getInstance().nativeEventHandler(eventId, eventName, eventData);
26414
26411
  }
26415
26412
  };