@bud-fe/h5-native-bridge 1.0.7 → 1.0.8

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.
@@ -67,6 +67,11 @@ declare module "../core" {
67
67
  * 关闭当前WebView页面
68
68
  */
69
69
  closeCurrentPage: () => Promise<void>;
70
+ /**
71
+ * 获取原生页面高度
72
+ * @returns 页面高度数值
73
+ */
74
+ getStatusBarHeight: () => Promise<number>;
70
75
  }
71
76
  interface NativeBridgeCore extends PluginMethods {
72
77
  }
@@ -99,6 +104,11 @@ declare class NavigatePlugin implements BridgePlugin {
99
104
  * @returns Promise<void>
100
105
  */
101
106
  closeCurrentPage(): Promise<void>;
107
+ /**
108
+ * 获取原生页面高度
109
+ * @returns Promise<number> 页面高度数值
110
+ */
111
+ getStatusBarHeight(): Promise<number>;
102
112
  }
103
113
  export declare const navigatePlugin: NavigatePlugin;
104
114
  export default navigatePlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bud-fe/h5-native-bridge",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "H5与原生App通信工具库",
5
5
  "type": "module",
6
6
  "main": "./dist/native-bridge.umd.js",