zmp-sdk 2.15.0-rc.2 → 2.15.0-rc.3
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/dist/browser.min.js +9 -3
- package/dist/index.es.js +9 -3
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/src/types/inputData.d.ts +1 -0
- package/package.json +1 -1
package/dist/browser.min.js
CHANGED
|
@@ -36793,7 +36793,7 @@
|
|
|
36793
36793
|
}
|
|
36794
36794
|
};
|
|
36795
36795
|
|
|
36796
|
-
var version = "2.15.0-rc.
|
|
36796
|
+
var version = "2.15.0-rc.3";
|
|
36797
36797
|
|
|
36798
36798
|
class Basics {
|
|
36799
36799
|
/**
|
|
@@ -38672,6 +38672,11 @@
|
|
|
38672
38672
|
vi: '',
|
|
38673
38673
|
en: ''
|
|
38674
38674
|
};
|
|
38675
|
+
let path = `${currentUrl.pathname}${currentUrl.search}`;
|
|
38676
|
+
if (object.data.path) {
|
|
38677
|
+
path = `/zapps/${this.getAppId()}${object.data.path[0] === '/' ? '' : '/'}${object.data.path}`;
|
|
38678
|
+
}
|
|
38679
|
+
const validUrl = new URL(`https://zalo.me/app/link${path}`);
|
|
38675
38680
|
if (lodash.isString(object.data.description)) {
|
|
38676
38681
|
description.en = description.vi = object.data.description;
|
|
38677
38682
|
}
|
|
@@ -38682,7 +38687,7 @@
|
|
|
38682
38687
|
params.append('title', object.data.title);
|
|
38683
38688
|
params.append('description', description.vi || description.en);
|
|
38684
38689
|
params.append('thumbnail', object.data.thumbnail);
|
|
38685
|
-
params.append('url',
|
|
38690
|
+
params.append('url', validUrl.href);
|
|
38686
38691
|
const config = {
|
|
38687
38692
|
headers: {
|
|
38688
38693
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
@@ -41384,7 +41389,8 @@
|
|
|
41384
41389
|
chatOnly: 'boolean',
|
|
41385
41390
|
id: 'string',
|
|
41386
41391
|
title: 'string',
|
|
41387
|
-
thumbnail: 'url'
|
|
41392
|
+
thumbnail: 'url',
|
|
41393
|
+
path: 'string'
|
|
41388
41394
|
}, 'data')),
|
|
41389
41395
|
__param(0, required('type', 'data'))
|
|
41390
41396
|
], SDKCreator.prototype, "openShareSheet", null);
|
package/dist/index.es.js
CHANGED
|
@@ -36790,7 +36790,7 @@ const apiResponse = {
|
|
|
36790
36790
|
}
|
|
36791
36791
|
};
|
|
36792
36792
|
|
|
36793
|
-
var version = "2.15.0-rc.
|
|
36793
|
+
var version = "2.15.0-rc.3";
|
|
36794
36794
|
|
|
36795
36795
|
class Basics {
|
|
36796
36796
|
/**
|
|
@@ -38669,6 +38669,11 @@ class Zalo {
|
|
|
38669
38669
|
vi: '',
|
|
38670
38670
|
en: ''
|
|
38671
38671
|
};
|
|
38672
|
+
let path = `${currentUrl.pathname}${currentUrl.search}`;
|
|
38673
|
+
if (object.data.path) {
|
|
38674
|
+
path = `/zapps/${this.getAppId()}${object.data.path[0] === '/' ? '' : '/'}${object.data.path}`;
|
|
38675
|
+
}
|
|
38676
|
+
const validUrl = new URL(`https://zalo.me/app/link${path}`);
|
|
38672
38677
|
if (lodash.isString(object.data.description)) {
|
|
38673
38678
|
description.en = description.vi = object.data.description;
|
|
38674
38679
|
}
|
|
@@ -38679,7 +38684,7 @@ class Zalo {
|
|
|
38679
38684
|
params.append('title', object.data.title);
|
|
38680
38685
|
params.append('description', description.vi || description.en);
|
|
38681
38686
|
params.append('thumbnail', object.data.thumbnail);
|
|
38682
|
-
params.append('url',
|
|
38687
|
+
params.append('url', validUrl.href);
|
|
38683
38688
|
const config = {
|
|
38684
38689
|
headers: {
|
|
38685
38690
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
@@ -41381,7 +41386,8 @@ __decorate([
|
|
|
41381
41386
|
chatOnly: 'boolean',
|
|
41382
41387
|
id: 'string',
|
|
41383
41388
|
title: 'string',
|
|
41384
|
-
thumbnail: 'url'
|
|
41389
|
+
thumbnail: 'url',
|
|
41390
|
+
path: 'string'
|
|
41385
41391
|
}, 'data')),
|
|
41386
41392
|
__param(0, required('type', 'data'))
|
|
41387
41393
|
], SDKCreator.prototype, "openShareSheet", null);
|