@tarojs/plugin-platform-harmony-cpp 4.1.7-beta.3 → 4.1.7-beta.5

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/index.js CHANGED
@@ -15,7 +15,7 @@ var utils = require('@tarojs/vite-runner/dist/utils');
15
15
  var parseCssToStylesheet = require('@tarojs/parse-css-to-stylesheet');
16
16
  var constants = require('@tarojs/vite-runner/dist/harmony/postcss/constants');
17
17
 
18
- var version = "4.1.7-beta.3";
18
+ var version = "4.1.7-beta.5";
19
19
 
20
20
  const PKG_NAME = '@taro-oh/library';
21
21
  const PKG_VERSION = version;
@@ -170,15 +170,16 @@ function appPlugin () {
170
170
  };
171
171
  }
172
172
 
173
- function injectEnv (platform) {
173
+ function injectEnv () {
174
+ const that = this;
174
175
  const packageName = '@tarojs/taro';
175
176
  const bindingName = 'Taro';
176
- const businessId = platform.getConfig().defineConstants?.LOCATION_APIKEY?.replace(/^['"]|['"]$/g, '');
177
+ const businessId = that.getConfig().defineConstants?.LOCATION_APIKEY?.replace(/^['"]|['"]$/g, '');
177
178
  return {
178
179
  name: 'taro:vite-add-method-env',
179
180
  transform(code, id) {
180
181
  const pluginContext = this;
181
- const { runnerUtils } = platform.context;
182
+ const { runnerUtils } = that.context;
182
183
  const { getViteHarmonyCompilerContext } = runnerUtils;
183
184
  const compiler = getViteHarmonyCompilerContext(pluginContext);
184
185
  const exts = Array.from(new Set(compiler?.frameworkExts.concat(helper.SCRIPT_EXT)));
@@ -83,6 +83,7 @@ export const useUnload = createTaroHook('onUnload')
83
83
  /** Mini-Program */
84
84
  export const useAddToFavorites = createTaroHook('onAddToFavorites')
85
85
  export const useOptionMenuClick = createTaroHook('onOptionMenuClick')
86
+ export const useKeyboardHeight = createTaroHook('onKeyboardHeight')
86
87
  export const useSaveExitState = createTaroHook('onSaveExitState')
87
88
  export const useShareAppMessage = createTaroHook('onShareAppMessage')
88
89
  export const useShareTimeline = createTaroHook('onShareTimeline')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/plugin-platform-harmony-cpp",
3
- "version": "4.1.7-beta.3",
3
+ "version": "4.1.7-beta.5",
4
4
  "description": "鸿蒙系统插件 C-API 版本",
5
5
  "author": "O2Team",
6
6
  "homepage": "https://gitee.com/openharmony-sig/taro",
@@ -30,9 +30,9 @@
30
30
  "react-dom": "^18.3.1",
31
31
  "react-reconciler": "0.29.0",
32
32
  "scheduler": "^0.23.2",
33
- "@tarojs/react": "4.1.7-beta.3",
34
- "@tarojs/runner-utils": "4.1.7-beta.3",
35
- "@tarojs/service": "4.1.7-beta.3"
33
+ "@tarojs/react": "4.1.7-beta.5",
34
+ "@tarojs/runner-utils": "4.1.7-beta.5",
35
+ "@tarojs/service": "4.1.7-beta.5"
36
36
  },
37
37
  "devDependencies": {
38
38
  "rollup": "^3.29.4",
@@ -53,30 +53,30 @@
53
53
  "tslib": "^2.6.3",
54
54
  "typescript": "~5.4.5",
55
55
  "vite": "^4.2.0",
56
- "@tarojs/components": "4.1.7-beta.3",
57
- "@tarojs/plugin-framework-react": "4.1.7-beta.3",
58
- "@tarojs/plugin-platform-harmony-ets": "4.1.7-beta.3",
59
- "@tarojs/helper": "4.1.7-beta.3",
60
- "@tarojs/react": "4.1.7-beta.3",
61
- "@tarojs/runtime": "4.1.7-beta.3",
62
- "@tarojs/shared": "4.1.7-beta.3",
63
- "@tarojs/taro": "4.1.7-beta.3",
64
- "@tarojs/vite-runner": "4.1.7-beta.3",
65
- "rollup-plugin-copy": "4.1.7-beta.3"
56
+ "@tarojs/helper": "4.1.7-beta.5",
57
+ "@tarojs/components": "4.1.7-beta.5",
58
+ "@tarojs/plugin-framework-react": "4.1.7-beta.5",
59
+ "@tarojs/plugin-platform-harmony-ets": "4.1.7-beta.5",
60
+ "@tarojs/react": "4.1.7-beta.5",
61
+ "@tarojs/taro": "4.1.7-beta.5",
62
+ "@tarojs/runtime": "4.1.7-beta.5",
63
+ "@tarojs/shared": "4.1.7-beta.5",
64
+ "rollup-plugin-copy": "4.1.7-beta.5",
65
+ "@tarojs/vite-runner": "4.1.7-beta.5"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "less": "^4.2.0",
69
69
  "sass": "^1.75.0",
70
70
  "stylus": "^0.63.0",
71
- "@tarojs/components": "4.1.7-beta.3",
72
- "@tarojs/plugin-platform-harmony-ets": "4.1.7-beta.3",
73
- "@tarojs/helper": "4.1.7-beta.3",
74
- "@tarojs/react": "4.1.7-beta.3",
75
- "@tarojs/plugin-framework-react": "4.1.7-beta.3",
76
- "@tarojs/runtime": "4.1.7-beta.3",
77
- "@tarojs/taro": "4.1.7-beta.3",
78
- "@tarojs/vite-runner": "4.1.7-beta.3",
79
- "@tarojs/shared": "4.1.7-beta.3"
71
+ "@tarojs/components": "4.1.7-beta.5",
72
+ "@tarojs/helper": "4.1.7-beta.5",
73
+ "@tarojs/plugin-platform-harmony-ets": "4.1.7-beta.5",
74
+ "@tarojs/react": "4.1.7-beta.5",
75
+ "@tarojs/runtime": "4.1.7-beta.5",
76
+ "@tarojs/shared": "4.1.7-beta.5",
77
+ "@tarojs/plugin-framework-react": "4.1.7-beta.5",
78
+ "@tarojs/taro": "4.1.7-beta.5",
79
+ "@tarojs/vite-runner": "4.1.7-beta.5"
80
80
  },
81
81
  "scripts": {
82
82
  "prebuild": "rimraf --impl=move-remove dist",