@lynx-js/react 0.115.1 → 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.
- package/CHANGELOG.md +32 -0
- package/package.json +3 -3
- package/refresh/.turbo/turbo-build.log +6 -1
- package/runtime/lib/alog/elementPAPICall.d.ts +1 -0
- package/runtime/lib/alog/elementPAPICall.js +115 -0
- package/runtime/lib/alog/elementPAPICall.js.map +1 -0
- package/runtime/lib/alog/index.js +2 -0
- package/runtime/lib/alog/index.js.map +1 -1
- package/runtime/lib/backgroundSnapshot.d.ts +1 -0
- package/runtime/lib/backgroundSnapshot.js +13 -1
- package/runtime/lib/backgroundSnapshot.js.map +1 -1
- package/runtime/lib/debug/printSnapshot.d.ts +4 -1
- package/runtime/lib/debug/printSnapshot.js +28 -0
- package/runtime/lib/debug/printSnapshot.js.map +1 -1
- package/runtime/lib/lifecycle/patch/error.js +5 -1
- package/runtime/lib/lifecycle/patch/error.js.map +1 -1
- package/runtime/lib/lifecycle/patch/updateMainThread.js +15 -2
- package/runtime/lib/lifecycle/patch/updateMainThread.js.map +1 -1
- package/runtime/lib/lynx/lazy-bundle.js +5 -1
- package/runtime/lib/lynx/lazy-bundle.js.map +1 -1
- package/runtime/lib/lynx/tt.js +16 -0
- package/runtime/lib/lynx/tt.js.map +1 -1
- package/runtime/lib/snapshot.js +13 -5
- package/runtime/lib/snapshot.js.map +1 -1
- package/testing-library/dist/env/vitest.js +1 -0
- package/testing-library/dist/index.js +1 -1
- package/testing-library/dist/pure.js +190 -190
- package/testing-library/dist/vitest-global-setup.js +2 -0
- package/testing-library/dist/vitest.config.js +6 -3
- package/transform/dist/wasm.cjs +1 -1
- package/worklet-runtime/dist/dev.js +3 -4
|
@@ -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
|
}
|