@lynx-js/react 0.115.2 → 0.115.3

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.
@@ -7,6 +7,7 @@ import { injectUpdateMainThread } from "../../runtime/lib/lifecycle/patch/update
7
7
  import { injectUpdateMTRefInitValue } from "../../runtime/lib/worklet/ref/updateInitValue.js";
8
8
  import { injectCalledByNative } from "../../runtime/lib/lynx/calledByNative.js";
9
9
  import { flushDelayedLifecycleEvents, injectTt } from "../../runtime/lib/lynx/tt.js";
10
+ import { initElementPAPICallAlog } from "../../runtime/lib/alog/elementPAPICall.js";
10
11
  import { addCtxNotFoundEventListener } from "../../runtime/lib/lifecycle/patch/error.js";
11
12
  import { setRoot } from "../../runtime/lib/root.js";
12
13
  import { SnapshotInstance, backgroundSnapshotInstanceManager, snapshotInstanceManager } from "../../runtime/lib/snapshot.js";
@@ -72,6 +73,7 @@ globalThis.onInjectMainThreadGlobals = (target)=>{
72
73
  }
73
74
  target._document = setupDocument({});
74
75
  target.globalPipelineOptions = void 0;
76
+ initElementPAPICallAlog(target);
75
77
  };
76
78
  globalThis.onInjectBackgroundThreadGlobals = (target)=>{
77
79
  if (onInjectBackgroundThreadGlobals) onInjectBackgroundThreadGlobals(target);
@@ -59,7 +59,8 @@ const createVitestConfig = async (options)=>{
59
59
  find: /^react$/,
60
60
  replacement: vitest_config_require.resolve(runtimeOSSPkgName, {
61
61
  paths: [
62
- runtimeDir
62
+ runtimeDir,
63
+ vitest_config_dirname
63
64
  ]
64
65
  })
65
66
  },
@@ -67,7 +68,8 @@ const createVitestConfig = async (options)=>{
67
68
  find: /^react\/jsx-runtime$/,
68
69
  replacement: vitest_config_require.resolve(path.posix.join(runtimeOSSPkgName, 'jsx-runtime'), {
69
70
  paths: [
70
- runtimeDir
71
+ runtimeDir,
72
+ vitest_config_dirname
71
73
  ]
72
74
  })
73
75
  },
@@ -75,7 +77,8 @@ const createVitestConfig = async (options)=>{
75
77
  find: /^react\/jsx-dev-runtime$/,
76
78
  replacement: vitest_config_require.resolve(path.posix.join(runtimeOSSPkgName, 'jsx-dev-runtime'), {
77
79
  paths: [
78
- runtimeDir
80
+ runtimeDir,
81
+ vitest_config_dirname
79
82
  ]
80
83
  })
81
84
  }