zmp-sdk 2.53.3 → 2.53.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.
- package/apis/apis/openShareSheet.js +1 -1
- package/apis/common/apis/general/getZMPShareInfo.js +1 -1
- package/apis/common/apis/general/openShareSheet.js +1 -1
- package/apis/index.d.ts +3 -16
- package/apis/package.json.js +1 -1
- package/apis/types/enum.js +1 -1
- package/browser.min.js +2 -2
- package/index.d.ts +3 -17
- package/index.es.js +2 -2
- package/index.js +2 -2
- package/index.umd.js +3 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ declare enum ShareSheetType {
|
|
|
71
71
|
video = 12,
|
|
72
72
|
link = 4,
|
|
73
73
|
oa = 5,
|
|
74
|
-
zmp = 20,
|
|
75
74
|
multi_image = 21,
|
|
76
75
|
zmp_deep_link = 4,
|
|
77
76
|
text = 22
|
|
@@ -3979,7 +3978,7 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
3979
3978
|
title: string;
|
|
3980
3979
|
thumbnail: string;
|
|
3981
3980
|
};
|
|
3982
|
-
type: "
|
|
3981
|
+
type: "zmp_deep_link" | "zmp";
|
|
3983
3982
|
}, {
|
|
3984
3983
|
data: {
|
|
3985
3984
|
path?: string | undefined;
|
|
@@ -3987,7 +3986,7 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
3987
3986
|
title: string;
|
|
3988
3987
|
thumbnail: string;
|
|
3989
3988
|
};
|
|
3990
|
-
type: "
|
|
3989
|
+
type: "zmp_deep_link" | "zmp";
|
|
3991
3990
|
}>]>[];
|
|
3992
3991
|
/**
|
|
3993
3992
|
* API cho phép ứng dụng mở giao diện chia sẻ để người dùng chia sẻ thông tin với bạn bè Zalo.
|
|
@@ -4002,7 +4001,7 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
4002
4001
|
* - `oa`: Chia sẻ Official Account.
|
|
4003
4002
|
* - `gif`: Chia sẻ ảnh động.
|
|
4004
4003
|
* - `video`: Chia sẻ video.
|
|
4005
|
-
* - `zmp`:
|
|
4004
|
+
* - `zmp`: Đã ngừng hỗ trợ. SDK tự chuyển sang `zmp_deep_link`, Mini App nên đổi sang dùng `zmp_deep_link`.
|
|
4006
4005
|
* - `zmp_deep_link`: Chia sẻ page hiện tại của Zalo Mini App thông qua deep link (hỗ trợ từ API 2.25.7).
|
|
4007
4006
|
* @param {object} data Nội dung cần chia sẻ, tùy thuộc vào `type`.
|
|
4008
4007
|
*
|
|
@@ -4081,19 +4080,6 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
4081
4080
|
* console.log(data);
|
|
4082
4081
|
* ```
|
|
4083
4082
|
*
|
|
4084
|
-
* @example Chia sẻ page hiện tại của Zalo Mini App:
|
|
4085
|
-
* ```ts
|
|
4086
|
-
* const data = await openShareSheet({
|
|
4087
|
-
* type: "zmp",
|
|
4088
|
-
* data: {
|
|
4089
|
-
* title: "My Zalo Mini App - HomePage",
|
|
4090
|
-
* description: "Home page",
|
|
4091
|
-
* thumbnail: "https://sample-videos.com/img/Sample-jpg-image-50kb.jpg",
|
|
4092
|
-
* },
|
|
4093
|
-
* });
|
|
4094
|
-
* console.log(data);
|
|
4095
|
-
* ```
|
|
4096
|
-
*
|
|
4097
4083
|
* @example Chia sẻ page hiện tại của Zalo Mini App thông qua deep link:
|
|
4098
4084
|
* ```ts
|
|
4099
4085
|
* const data = await openShareSheet({
|