@tarojs/plugin-platform-harmony-ets 4.1.4 → 4.1.5-beta.0

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.
@@ -4,5 +4,5 @@ export declare function setPageById(inst: any, id: string): void;
4
4
  export declare function getPageById(id: string): any;
5
5
  export declare function removePageById(id: string): void;
6
6
  export declare function createNativePageConfig(Component: any, pageName: string, react: typeof React, reactDOM: typeof ReactDOM, pageConfig: any): Record<string, any>;
7
- export declare function createNativeComponentConfig(Component: any, react: typeof React, reactdom: any, componentConfig: any): Record<string, any>;
7
+ export declare function createNativeComponentConfig(Component: any, react: typeof React, reactDOM: any, componentConfig: any): Record<string, any>;
8
8
  export {};
@@ -26,7 +26,7 @@ interface InitNativeComponentEntryParams {
26
26
  R: typeof React
27
27
  ReactDOM: typeof ReactDOM
28
28
  cb?: TFunc
29
- // 是否使用默认的 DOM 入口 - app;默认为true,false的时候,会创建一个新的dom并且把它挂载在 app 下面
29
+ // 是否使用默认的 DOM 入口 - app;默认为 true,false 的时候,会创建一个新的 dom 并且把它挂载在 app 下面
30
30
  isDefaultEntryDom?: boolean
31
31
  isUseReact18?: boolean
32
32
  }
@@ -320,7 +320,7 @@ export function createNativePageConfig (
320
320
  const $taroPath = this.$taroPath
321
321
  // 销毁当前页面的上下文信息
322
322
  window.trigger(CONTEXT_ACTIONS.DESTORY, $taroPath)
323
- // 触发onUnload生命周期
323
+ // 触发 onUnload 生命周期
324
324
  safeExecute($taroPath, ONUNLOAD)
325
325
 
326
326
 
@@ -381,7 +381,7 @@ export function createNativePageConfig (
381
381
 
382
382
  function resetCurrent () {
383
383
  if (Current.page === this) {
384
- // 小程序插件页面卸载之后返回到宿主页面时,需重置Current页面和路由。否则引发插件组件二次加载异常 fix:#11991
384
+ // 小程序插件页面卸载之后返回到宿主页面时,需重置 Current 页面和路由。否则引发插件组件二次加载异常 fix:#11991
385
385
  Current.page = null
386
386
  Current.router = null
387
387
  }
@@ -418,12 +418,12 @@ export function createNativePageConfig (
418
418
  export function createNativeComponentConfig (
419
419
  Component,
420
420
  react: typeof React,
421
- reactdom,
421
+ reactDOM,
422
422
  componentConfig
423
423
  ) {
424
424
  reactMeta.R = react
425
425
  h = react.createElement
426
- ReactDOM = reactdom
426
+ ReactDOM = reactDOM
427
427
  setReconciler(ReactDOM)
428
428
  const { isNewBlended, isUseReact18 } = componentConfig
429
429
 
@@ -448,7 +448,7 @@ export function createNativeComponentConfig (
448
448
  const el = document.getElementById(compId)
449
449
 
450
450
  if (!el) {
451
- throw new Error(`没有找到组件实例。`)
451
+ throw new Error('没有找到组件实例。')
452
452
  } else {
453
453
  el.ctx = this
454
454
  cb && cb(el)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/plugin-platform-harmony-ets",
3
- "version": "4.1.4",
3
+ "version": "4.1.5-beta.0",
4
4
  "description": "OpenHarmony & 鸿蒙系统插件",
5
5
  "author": "O2Team",
6
6
  "homepage": "https://gitee.com/openharmony-sig/taro",
@@ -28,13 +28,13 @@
28
28
  "webpack-sources": "^3.2.3",
29
29
  "@babel/preset-react": "^7.24.1",
30
30
  "webpack": "5.91.0",
31
- "@tarojs/components": "4.1.4",
32
- "@tarojs/runner-utils": "4.1.4",
33
- "@tarojs/service": "4.1.4",
34
- "@tarojs/shared": "4.1.4",
35
- "@tarojs/runtime": "4.1.4",
36
- "@tarojs/helper": "4.1.4",
37
- "@tarojs/taro": "4.1.4"
31
+ "@tarojs/components": "4.1.5-beta.0",
32
+ "@tarojs/runner-utils": "4.1.5-beta.0",
33
+ "@tarojs/helper": "4.1.5-beta.0",
34
+ "@tarojs/runtime": "4.1.5-beta.0",
35
+ "@tarojs/service": "4.1.5-beta.0",
36
+ "@tarojs/shared": "4.1.5-beta.0",
37
+ "@tarojs/taro": "4.1.5-beta.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "fast-glob": "^3.3.1",
@@ -43,7 +43,7 @@
43
43
  "@rollup/plugin-typescript": "^12.1.2",
44
44
  "solid-js": "^1.8.16",
45
45
  "tslib": "^2.4.0",
46
- "rollup-plugin-copy": "4.1.4"
46
+ "rollup-plugin-copy": "4.1.5-beta.0"
47
47
  },
48
48
  "scripts": {
49
49
  "prod": "pnpm run build",