jubo-sdk 1.6.0-beta.2 → 1.6.0-beta.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/README.md +10 -0
- package/dist/JuboSdk.d.ts +5 -0
- package/dist/OldJuboSdk.d.ts +5 -0
- package/dist/index.cjs.js +34 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +34 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +34 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/types/juboSdk.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -399,6 +399,16 @@ Saigo = "Saigo"
|
|
|
399
399
|
| ------- | ----------- | ------- |
|
|
400
400
|
| √ | √ | x |
|
|
401
401
|
|
|
402
|
+
### getShockOnPhone()
|
|
403
|
+
|
|
404
|
+
调用手机震动
|
|
405
|
+
|
|
406
|
+
#### 平台差异说明
|
|
407
|
+
|
|
408
|
+
| **ios** | **android** | **小程序** |
|
|
409
|
+
| ------- | ----------- | ------- |
|
|
410
|
+
| √ | √ | x |
|
|
411
|
+
|
|
402
412
|
### setMessage()
|
|
403
413
|
|
|
404
414
|
传值至小程序
|
package/dist/JuboSdk.d.ts
CHANGED
package/dist/OldJuboSdk.d.ts
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -7181,12 +7181,24 @@ var OldJuboSdk = /** @class */function () {
|
|
|
7181
7181
|
* 调用震动
|
|
7182
7182
|
* @environment [ios, android]
|
|
7183
7183
|
*/
|
|
7184
|
+
Object.defineProperty(OldJuboSdk.prototype, "getShockOnPhone", {
|
|
7185
|
+
enumerable: false,
|
|
7186
|
+
configurable: true,
|
|
7187
|
+
writable: true,
|
|
7188
|
+
value: function value() {
|
|
7189
|
+
console.log('juboSDK.getShockOnPhone');
|
|
7190
|
+
}
|
|
7191
|
+
});
|
|
7192
|
+
/**
|
|
7193
|
+
* 调用手机震动
|
|
7194
|
+
* @environment [ios, android]
|
|
7195
|
+
*/
|
|
7184
7196
|
Object.defineProperty(OldJuboSdk.prototype, "getShock", {
|
|
7185
7197
|
enumerable: false,
|
|
7186
7198
|
configurable: true,
|
|
7187
7199
|
writable: true,
|
|
7188
7200
|
value: function value() {
|
|
7189
|
-
console.log('juboSDK.
|
|
7201
|
+
console.log('juboSDK.getShock');
|
|
7190
7202
|
}
|
|
7191
7203
|
});
|
|
7192
7204
|
return OldJuboSdk;
|
|
@@ -7572,7 +7584,8 @@ var JuboSdk = /** @class */function () {
|
|
|
7572
7584
|
imgUrl: options.thumbImage,
|
|
7573
7585
|
title: options.title,
|
|
7574
7586
|
base64: options.base64,
|
|
7575
|
-
webpage: options.webpage
|
|
7587
|
+
webpage: options.webpage,
|
|
7588
|
+
type: options.type || 0
|
|
7576
7589
|
});
|
|
7577
7590
|
this.postReport('NewUserInvite', {
|
|
7578
7591
|
page_url: options.webpage,
|
|
@@ -8027,6 +8040,24 @@ var JuboSdk = /** @class */function () {
|
|
|
8027
8040
|
}
|
|
8028
8041
|
}
|
|
8029
8042
|
});
|
|
8043
|
+
/**
|
|
8044
|
+
* 调用手机震动
|
|
8045
|
+
* @environment [ios, android]
|
|
8046
|
+
*/
|
|
8047
|
+
Object.defineProperty(JuboSdk.prototype, "getShockOnPhone", {
|
|
8048
|
+
enumerable: false,
|
|
8049
|
+
configurable: true,
|
|
8050
|
+
writable: true,
|
|
8051
|
+
value: function value() {
|
|
8052
|
+
console.log('juboSDK.getShockOnPhone');
|
|
8053
|
+
if (!this.detection && this.isMiniProgram) return;
|
|
8054
|
+
try {
|
|
8055
|
+
dsBridge.call('shockOnPhone', {});
|
|
8056
|
+
} catch (error) {
|
|
8057
|
+
console.log('🚀 ~ juboSDK.getShockOnPhone', error);
|
|
8058
|
+
}
|
|
8059
|
+
}
|
|
8060
|
+
});
|
|
8030
8061
|
return JuboSdk;
|
|
8031
8062
|
}();
|
|
8032
8063
|
window.JuboSdk = JuboSdk;
|
|
@@ -8054,6 +8085,6 @@ exports.default = JuboSdk;
|
|
|
8054
8085
|
exports.ls = ls;
|
|
8055
8086
|
|
|
8056
8087
|
if(typeof window !== 'undefined') {
|
|
8057
|
-
window._juboSDK_VERSION_ = '1.6.0-beta.
|
|
8088
|
+
window._juboSDK_VERSION_ = '1.6.0-beta.4'
|
|
8058
8089
|
}
|
|
8059
8090
|
//# sourceMappingURL=index.cjs.js.map
|