@lynx-js/react 0.115.2 → 0.115.4

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/package.json +2 -2
  3. package/refresh/.turbo/turbo-build.log +2 -2
  4. package/refresh/dist/index.js +3 -3
  5. package/runtime/lib/alog/elementPAPICall.d.ts +1 -0
  6. package/runtime/lib/alog/elementPAPICall.js +115 -0
  7. package/runtime/lib/alog/elementPAPICall.js.map +1 -0
  8. package/runtime/lib/alog/index.js +2 -0
  9. package/runtime/lib/alog/index.js.map +1 -1
  10. package/runtime/lib/debug/printSnapshot.d.ts +4 -1
  11. package/runtime/lib/debug/printSnapshot.js +28 -0
  12. package/runtime/lib/debug/printSnapshot.js.map +1 -1
  13. package/runtime/lib/lifecycle/patch/error.js +5 -1
  14. package/runtime/lib/lifecycle/patch/error.js.map +1 -1
  15. package/runtime/lib/lifecycle/patch/updateMainThread.js +15 -2
  16. package/runtime/lib/lifecycle/patch/updateMainThread.js.map +1 -1
  17. package/runtime/lib/lynx/calledByNative.js +8 -2
  18. package/runtime/lib/lynx/calledByNative.js.map +1 -1
  19. package/runtime/lib/lynx/lazy-bundle.js +5 -1
  20. package/runtime/lib/lynx/lazy-bundle.js.map +1 -1
  21. package/runtime/lib/lynx/tt.js +16 -0
  22. package/runtime/lib/lynx/tt.js.map +1 -1
  23. package/runtime/lib/snapshot.js +6 -1
  24. package/runtime/lib/snapshot.js.map +1 -1
  25. package/testing-library/dist/env/vitest.js +14 -24
  26. package/testing-library/dist/index.js +1 -1
  27. package/testing-library/dist/pure.js +3886 -4098
  28. package/testing-library/dist/rslib-runtime.js +58 -0
  29. package/testing-library/dist/vitest-global-setup.js +2 -0
  30. package/testing-library/dist/vitest.config.js +6 -3
  31. package/transform/dist/wasm.cjs +1 -1
  32. package/worklet-runtime/dist/dev.js +14 -10
  33. package/worklet-runtime/dist/main.js +1 -1
  34. package/worklet-runtime/lib/api/element.d.ts +1 -0
  35. package/worklet-runtime/lib/api/element.js +10 -0
  36. package/worklet-runtime/lib/api/element.js.map +1 -1
@@ -0,0 +1,58 @@
1
+ var __webpack_modules__ = {};
2
+ var __webpack_module_cache__ = {};
3
+ function __webpack_require__(moduleId) {
4
+ var cachedModule = __webpack_module_cache__[moduleId];
5
+ if (void 0 !== cachedModule) return cachedModule.exports;
6
+ var module = __webpack_module_cache__[moduleId] = {
7
+ id: moduleId,
8
+ loaded: false,
9
+ exports: {}
10
+ };
11
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
12
+ module.loaded = true;
13
+ return module.exports;
14
+ }
15
+ __webpack_require__.m = __webpack_modules__;
16
+ (()=>{
17
+ __webpack_require__.add = function(modules) {
18
+ Object.assign(__webpack_require__.m, modules);
19
+ };
20
+ })();
21
+ (()=>{
22
+ __webpack_require__.n = (module)=>{
23
+ var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
24
+ __webpack_require__.d(getter, {
25
+ a: getter
26
+ });
27
+ return getter;
28
+ };
29
+ })();
30
+ (()=>{
31
+ __webpack_require__.d = (exports, definition)=>{
32
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: definition[key]
35
+ });
36
+ };
37
+ })();
38
+ (()=>{
39
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
40
+ })();
41
+ (()=>{
42
+ __webpack_require__.r = (exports)=>{
43
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
44
+ value: 'Module'
45
+ });
46
+ Object.defineProperty(exports, '__esModule', {
47
+ value: true
48
+ });
49
+ };
50
+ })();
51
+ (()=>{
52
+ __webpack_require__.nmd = (module)=>{
53
+ module.paths = [];
54
+ if (!module.children) module.children = [];
55
+ return module;
56
+ };
57
+ })();
58
+ export { __webpack_require__ };
@@ -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
  }