jubo-sdk 1.6.0-beta.1 → 1.6.0-beta.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.
package/README.md CHANGED
@@ -388,3 +388,77 @@ Saigo = "Saigo"
388
388
  ### goHome()
389
389
 
390
390
  跳转到首页
391
+
392
+ ### getShock()
393
+
394
+ 调用震动
395
+
396
+ #### 平台差异说明
397
+
398
+ | **ios** | **android** | **小程序** |
399
+ | ------- | ----------- | ------- |
400
+ | √ | √ | x |
401
+
402
+ ### setMessage()
403
+
404
+ 传值至小程序
405
+
406
+ #### 平台差异说明
407
+
408
+ | **ios** | **android** | **小程序** |
409
+ | ------- | ----------- | ------- |
410
+ | x | x | √ |
411
+
412
+ #### 参数说明
413
+
414
+ | **参数名** | **类型** | **是否必填** | **默认值** | **描述** |
415
+ | ------- | ------ | -------- | ------- | ------ |
416
+ | message | any | 是 | 无 | 传值内容 |
417
+
418
+ ### openSpecifiedApp(type: number)
419
+
420
+ 打开指定APP
421
+
422
+ #### 平台差异说明
423
+
424
+ | **ios** | **android** | **小程序** |
425
+ | ------- | ----------- | ------- |
426
+ | √ | √ | x |
427
+
428
+ #### 参数说明
429
+
430
+ | **参数名** | **类型** | **是否必填** | **默认值** | **描述** |
431
+ | ------- | ------ | -------- | ------- | ------ |
432
+ | type | number | 是 | 无 | 类型 1: 微信 2: 小红书 3: 抖音 4: 微博 |
433
+
434
+ ### saveImageToAlbum()
435
+
436
+ 保存图片到相册
437
+
438
+ #### 平台差异说明
439
+
440
+ | **ios** | **android** | **小程序** |
441
+ | ------- | ----------- | ------- |
442
+ | √ | √ | x |
443
+
444
+ #### 参数说明
445
+
446
+ | **参数名** | **类型** | **是否必填** | **默认值** | **描述** |
447
+ | ------- | ------ | -------- | ------- | ------ |
448
+ | base64 | string | 是 | 无 | 图片base64 |
449
+
450
+ ### writeToClipboard(content: string)
451
+
452
+ 写入剪贴板
453
+
454
+ #### 平台差异说明
455
+
456
+ | **ios** | **android** | **小程序** |
457
+ | ------- | ----------- | ------- |
458
+ | x | x | √ |
459
+
460
+ #### 参数说明
461
+
462
+ | **参数名** | **类型** | **是否必填** | **默认值** | **描述** |
463
+ | ------- | ------ | -------- | ------- | ------ |
464
+ | content | string | 是 | 无 | 内容 |
package/dist/JuboSdk.d.ts CHANGED
@@ -174,5 +174,10 @@ declare class JuboSdk {
174
174
  * @environment [ios, android, wx]
175
175
  */
176
176
  goHome(): void;
177
+ /**
178
+ * 调用震动
179
+ * @environment [ios, android]
180
+ */
181
+ getShock(): void;
177
182
  }
178
183
  export default JuboSdk;
@@ -166,5 +166,10 @@ declare class OldJuboSdk {
166
166
  * @environment [ios, android, wx]
167
167
  */
168
168
  goHome(): void;
169
+ /**
170
+ * 调用震动
171
+ * @environment [ios, android]
172
+ */
173
+ getShock(): void;
169
174
  }
170
175
  export default OldJuboSdk;
package/dist/index.cjs.js CHANGED
@@ -7177,6 +7177,18 @@ var OldJuboSdk = /** @class */function () {
7177
7177
  this.goRoute(this.options.appHome || APP_HOME$1);
7178
7178
  }
7179
7179
  });
7180
+ /**
7181
+ * 调用震动
7182
+ * @environment [ios, android]
7183
+ */
7184
+ Object.defineProperty(OldJuboSdk.prototype, "getShock", {
7185
+ enumerable: false,
7186
+ configurable: true,
7187
+ writable: true,
7188
+ value: function value() {
7189
+ console.log('juboSDK.shock');
7190
+ }
7191
+ });
7180
7192
  return OldJuboSdk;
7181
7193
  }();
7182
7194
  window.JuboSdk = OldJuboSdk;
@@ -7997,6 +8009,24 @@ var JuboSdk = /** @class */function () {
7997
8009
  this.goRoute(this.options.appHome || APP_HOME);
7998
8010
  }
7999
8011
  });
8012
+ /**
8013
+ * 调用震动
8014
+ * @environment [ios, android]
8015
+ */
8016
+ Object.defineProperty(JuboSdk.prototype, "getShock", {
8017
+ enumerable: false,
8018
+ configurable: true,
8019
+ writable: true,
8020
+ value: function value() {
8021
+ console.log('juboSDK.getShock');
8022
+ if (!this.detection && this.isMiniProgram) return;
8023
+ try {
8024
+ dsBridge.call('shock', {});
8025
+ } catch (error) {
8026
+ console.log('🚀 ~ juboSDK.shock', error);
8027
+ }
8028
+ }
8029
+ });
8000
8030
  return JuboSdk;
8001
8031
  }();
8002
8032
  window.JuboSdk = JuboSdk;
@@ -8024,6 +8054,6 @@ exports.default = JuboSdk;
8024
8054
  exports.ls = ls;
8025
8055
 
8026
8056
  if(typeof window !== 'undefined') {
8027
- window._juboSDK_VERSION_ = '1.6.0-beta.1'
8057
+ window._juboSDK_VERSION_ = '1.6.0-beta.2'
8028
8058
  }
8029
8059
  //# sourceMappingURL=index.cjs.js.map