jubo-sdk 1.5.0 → 1.6.0-beta.1

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/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]
@@ -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]
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]
@@ -7695,6 +7708,27 @@ var JuboSdk = /** @class */function () {
7695
7708
  }
7696
7709
  }
7697
7710
  });
7711
+ /**
7712
+ * 打开指定APP
7713
+ * @environment [ios, android]
7714
+ * @param type 类型 1: 微信 2: 小红书 3: 抖音 4: 微博
7715
+ */
7716
+ Object.defineProperty(JuboSdk.prototype, "openSpecifiedApp", {
7717
+ enumerable: false,
7718
+ configurable: true,
7719
+ writable: true,
7720
+ value: function value(type) {
7721
+ console.log('juboSDK.openSpecifiedApp', type);
7722
+ if (!this.detection && this.isMiniProgram) return;
7723
+ try {
7724
+ dsBridge.call('openSpecifiedApp', {
7725
+ type: type
7726
+ });
7727
+ } catch (error) {
7728
+ console.log('🚀 ~ juboSDK.openSpecifiedApp', error);
7729
+ }
7730
+ }
7731
+ });
7698
7732
  /**
7699
7733
  * 隐藏或显示原生导航栏
7700
7734
  * @environment [ios, android]
@@ -7990,6 +8024,6 @@ exports.default = JuboSdk;
7990
8024
  exports.ls = ls;
7991
8025
 
7992
8026
  if(typeof window !== 'undefined') {
7993
- window._juboSDK_VERSION_ = '1.5.0'
8027
+ window._juboSDK_VERSION_ = '1.6.0-beta.1'
7994
8028
  }
7995
8029
  //# sourceMappingURL=index.cjs.js.map