jubo-sdk 1.5.0 → 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
@@ -102,6 +102,12 @@ declare class JuboSdk {
102
102
  * @param content 内容
103
103
  */
104
104
  saveImageToAlbum(base64: string): void;
105
+ /**
106
+ * 打开指定APP
107
+ * @environment [ios, android]
108
+ * @param type 类型 1: 微信 2: 小红书 3: 抖音 4: 微博
109
+ */
110
+ openSpecifiedApp(type: number): void;
105
111
  /**
106
112
  * 隐藏或显示原生导航栏
107
113
  * @environment [ios, android]
@@ -168,5 +174,10 @@ declare class JuboSdk {
168
174
  * @environment [ios, android, wx]
169
175
  */
170
176
  goHome(): void;
177
+ /**
178
+ * 调用震动
179
+ * @environment [ios, android]
180
+ */
181
+ getShock(): void;
171
182
  }
172
183
  export default JuboSdk;
@@ -100,6 +100,12 @@ declare class OldJuboSdk {
100
100
  * @param base64 内容
101
101
  */
102
102
  saveImageToAlbum(base64: string): void;
103
+ /**
104
+ * 打开指定APP
105
+ * @environment [ios, android]
106
+ * @param type 类型
107
+ */
108
+ openSpecifiedApp(type: number): void;
103
109
  /**
104
110
  * 隐藏或显示原生导航栏
105
111
  * @environment [ios, android]
@@ -160,5 +166,10 @@ declare class OldJuboSdk {
160
166
  * @environment [ios, android, wx]
161
167
  */
162
168
  goHome(): void;
169
+ /**
170
+ * 调用震动
171
+ * @environment [ios, android]
172
+ */
173
+ getShock(): void;
163
174
  }
164
175
  export default OldJuboSdk;
package/dist/index.cjs.js CHANGED
@@ -6808,6 +6808,19 @@ var OldJuboSdk = /** @class */function () {
6808
6808
  console.log('🚀 ~ file: OldJuboSdk.ts:270 ~ OldJuboSdk ~ title:', base64);
6809
6809
  }
6810
6810
  });
6811
+ /**
6812
+ * 打开指定APP
6813
+ * @environment [ios, android]
6814
+ * @param type 类型
6815
+ */
6816
+ Object.defineProperty(OldJuboSdk.prototype, "openSpecifiedApp", {
6817
+ enumerable: false,
6818
+ configurable: true,
6819
+ writable: true,
6820
+ value: function value(type) {
6821
+ console.log('🚀 ~ file: OldJuboSdk.ts:270 ~ OldJuboSdk ~ title:', type);
6822
+ }
6823
+ });
6811
6824
  /**
6812
6825
  * 隐藏或显示原生导航栏
6813
6826
  * @environment [ios, android]
@@ -7164,6 +7177,18 @@ var OldJuboSdk = /** @class */function () {
7164
7177
  this.goRoute(this.options.appHome || APP_HOME$1);
7165
7178
  }
7166
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
+ });
7167
7192
  return OldJuboSdk;
7168
7193
  }();
7169
7194
  window.JuboSdk = OldJuboSdk;
@@ -7695,6 +7720,27 @@ var JuboSdk = /** @class */function () {
7695
7720
  }
7696
7721
  }
7697
7722
  });
7723
+ /**
7724
+ * 打开指定APP
7725
+ * @environment [ios, android]
7726
+ * @param type 类型 1: 微信 2: 小红书 3: 抖音 4: 微博
7727
+ */
7728
+ Object.defineProperty(JuboSdk.prototype, "openSpecifiedApp", {
7729
+ enumerable: false,
7730
+ configurable: true,
7731
+ writable: true,
7732
+ value: function value(type) {
7733
+ console.log('juboSDK.openSpecifiedApp', type);
7734
+ if (!this.detection && this.isMiniProgram) return;
7735
+ try {
7736
+ dsBridge.call('openSpecifiedApp', {
7737
+ type: type
7738
+ });
7739
+ } catch (error) {
7740
+ console.log('🚀 ~ juboSDK.openSpecifiedApp', error);
7741
+ }
7742
+ }
7743
+ });
7698
7744
  /**
7699
7745
  * 隐藏或显示原生导航栏
7700
7746
  * @environment [ios, android]
@@ -7963,6 +8009,24 @@ var JuboSdk = /** @class */function () {
7963
8009
  this.goRoute(this.options.appHome || APP_HOME);
7964
8010
  }
7965
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
+ });
7966
8030
  return JuboSdk;
7967
8031
  }();
7968
8032
  window.JuboSdk = JuboSdk;
@@ -7990,6 +8054,6 @@ exports.default = JuboSdk;
7990
8054
  exports.ls = ls;
7991
8055
 
7992
8056
  if(typeof window !== 'undefined') {
7993
- window._juboSDK_VERSION_ = '1.5.0'
8057
+ window._juboSDK_VERSION_ = '1.6.0-beta.2'
7994
8058
  }
7995
8059
  //# sourceMappingURL=index.cjs.js.map