@lynx-js/react 0.111.1 → 0.112.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.
Files changed (171) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/components/lib/DeferredListItem.d.ts +3 -1
  3. package/components/lib/DeferredListItem.jsx +4 -2
  4. package/components/lib/DeferredListItem.jsx.map +1 -1
  5. package/components/lib/Page.js.map +1 -1
  6. package/components/src/DeferredListItem.tsx +5 -3
  7. package/components/src/Page.ts +2 -2
  8. package/package.json +15 -2
  9. package/refresh/.turbo/turbo-build.log +2 -2
  10. package/runtime/compat/index.d.ts +40 -0
  11. package/runtime/compat/index.js +15 -0
  12. package/runtime/debug/index.cjs +8 -0
  13. package/runtime/debug/index.d.ts +4 -0
  14. package/runtime/debug/index.js +5 -0
  15. package/runtime/lazy/compat.js +51 -0
  16. package/runtime/lazy/import.js +9 -0
  17. package/runtime/lazy/target.js +1 -0
  18. package/runtime/lib/alog/index.d.ts +1 -0
  19. package/runtime/lib/alog/index.js +8 -0
  20. package/runtime/lib/alog/index.js.map +1 -0
  21. package/runtime/lib/alog/render.d.ts +1 -0
  22. package/runtime/lib/alog/render.js +19 -0
  23. package/runtime/lib/alog/render.js.map +1 -0
  24. package/runtime/lib/backgroundSnapshot.d.ts +1 -0
  25. package/runtime/lib/backgroundSnapshot.js +31 -17
  26. package/runtime/lib/backgroundSnapshot.js.map +1 -1
  27. package/runtime/lib/debug/component-stack.d.ts +33 -0
  28. package/runtime/lib/debug/component-stack.js +145 -0
  29. package/runtime/lib/debug/component-stack.js.map +1 -0
  30. package/runtime/lib/debug/formatPatch.d.ts +2 -0
  31. package/runtime/lib/debug/formatPatch.js +27 -0
  32. package/runtime/lib/debug/formatPatch.js.map +1 -0
  33. package/runtime/lib/debug/printSnapshot.d.ts +1 -1
  34. package/runtime/lib/debug/printSnapshot.js +0 -4
  35. package/runtime/lib/debug/printSnapshot.js.map +1 -1
  36. package/runtime/lib/debug/profile.js +3 -5
  37. package/runtime/lib/debug/profile.js.map +1 -1
  38. package/runtime/lib/hydrate.js +11 -7
  39. package/runtime/lib/hydrate.js.map +1 -1
  40. package/runtime/lib/index.js +3 -5
  41. package/runtime/lib/index.js.map +1 -1
  42. package/runtime/lib/lifecycle/patch/commit.js +3 -3
  43. package/runtime/lib/lifecycle/patch/commit.js.map +1 -1
  44. package/runtime/lib/lifecycle/patch/isMainThreadHydrating.d.ts +2 -0
  45. package/runtime/lib/lifecycle/patch/{isMainThreadHydrationFinished.js → isMainThreadHydrating.js} +5 -5
  46. package/runtime/lib/lifecycle/patch/isMainThreadHydrating.js.map +1 -0
  47. package/runtime/lib/lifecycle/patch/snapshotPatch.d.ts +4 -0
  48. package/runtime/lib/lifecycle/patch/snapshotPatch.js +28 -0
  49. package/runtime/lib/lifecycle/patch/snapshotPatch.js.map +1 -1
  50. package/runtime/lib/lifecycle/patch/updateMainThread.js +20 -13
  51. package/runtime/lib/lifecycle/patch/updateMainThread.js.map +1 -1
  52. package/runtime/lib/lifecycle/reload.js +0 -2
  53. package/runtime/lib/lifecycle/reload.js.map +1 -1
  54. package/runtime/lib/lynx/lazy-bundle.js +0 -19
  55. package/runtime/lib/lynx/lazy-bundle.js.map +1 -1
  56. package/runtime/lib/lynx/performance.js +2 -2
  57. package/runtime/lib/lynx/performance.js.map +1 -1
  58. package/runtime/lib/lynx/runWithForce.js +2 -2
  59. package/runtime/lib/lynx/runWithForce.js.map +1 -1
  60. package/runtime/lib/lynx-api.js +17 -3
  61. package/runtime/lib/lynx-api.js.map +1 -1
  62. package/runtime/lib/lynx.js +16 -1
  63. package/runtime/lib/lynx.js.map +1 -1
  64. package/runtime/lib/pendingListUpdates.d.ts +2 -1
  65. package/runtime/lib/pendingListUpdates.js +16 -4
  66. package/runtime/lib/pendingListUpdates.js.map +1 -1
  67. package/runtime/lib/renderToOpcodes/constants.d.ts +2 -0
  68. package/runtime/lib/renderToOpcodes/constants.js +2 -0
  69. package/runtime/lib/renderToOpcodes/constants.js.map +1 -1
  70. package/runtime/lib/renderToOpcodes/index.js +36 -11
  71. package/runtime/lib/renderToOpcodes/index.js.map +1 -1
  72. package/runtime/lib/root.d.ts +6 -0
  73. package/runtime/lib/root.js +4 -0
  74. package/runtime/lib/root.js.map +1 -1
  75. package/runtime/lib/snapshot/gesture.js +2 -2
  76. package/runtime/lib/snapshot/gesture.js.map +1 -1
  77. package/runtime/lib/snapshot/platformInfo.js +5 -3
  78. package/runtime/lib/snapshot/platformInfo.js.map +1 -1
  79. package/runtime/lib/snapshot/ref.d.ts +2 -2
  80. package/runtime/lib/snapshot/spread.js +3 -1
  81. package/runtime/lib/snapshot/spread.js.map +1 -1
  82. package/runtime/lib/snapshot/workletEvent.js +2 -2
  83. package/runtime/lib/snapshot/workletEvent.js.map +1 -1
  84. package/runtime/lib/snapshot/workletRef.js +2 -2
  85. package/runtime/lib/snapshot/workletRef.js.map +1 -1
  86. package/runtime/lib/snapshot.js +13 -7
  87. package/runtime/lib/snapshot.js.map +1 -1
  88. package/runtime/lib/utils.d.ts +2 -0
  89. package/runtime/lib/utils.js +23 -2
  90. package/runtime/lib/utils.js.map +1 -1
  91. package/testing-library/dist/env/vitest.js +20 -10
  92. package/testing-library/dist/vitest-global-setup.js +0 -6
  93. package/testing-library/dist/vitest.config.js +1 -4
  94. package/transform/dist/wasm.cjs +1 -1
  95. package/types/react.d.ts +13 -1
  96. package/runtime/lib/lifecycle/patch/isMainThreadHydrationFinished.d.ts +0 -2
  97. package/runtime/lib/lifecycle/patch/isMainThreadHydrationFinished.js.map +0 -1
  98. package/runtime/src/backgroundSnapshot.ts +0 -501
  99. package/runtime/src/compat/componentIs.ts +0 -30
  100. package/runtime/src/compat/initData.ts +0 -150
  101. package/runtime/src/compat/lynxComponent.ts +0 -79
  102. package/runtime/src/debug/debug.ts +0 -9
  103. package/runtime/src/debug/printSnapshot.ts +0 -28
  104. package/runtime/src/debug/profile.ts +0 -55
  105. package/runtime/src/document.ts +0 -84
  106. package/runtime/src/gesture/processGesture.ts +0 -89
  107. package/runtime/src/gesture/processGestureBagkround.ts +0 -19
  108. package/runtime/src/gesture/types.ts +0 -44
  109. package/runtime/src/hooks/react.ts +0 -62
  110. package/runtime/src/hooks/useLynxGlobalEventListener.ts +0 -59
  111. package/runtime/src/hydrate.ts +0 -368
  112. package/runtime/src/index.ts +0 -94
  113. package/runtime/src/internal.ts +0 -63
  114. package/runtime/src/legacy-react-runtime/index.ts +0 -42
  115. package/runtime/src/lifecycle/destroy.ts +0 -34
  116. package/runtime/src/lifecycle/event/delayEvents.ts +0 -11
  117. package/runtime/src/lifecycle/event/delayLifecycleEvents.ts +0 -15
  118. package/runtime/src/lifecycle/event/jsReady.ts +0 -34
  119. package/runtime/src/lifecycle/pass.ts +0 -14
  120. package/runtime/src/lifecycle/patch/commit.ts +0 -214
  121. package/runtime/src/lifecycle/patch/error.ts +0 -61
  122. package/runtime/src/lifecycle/patch/isMainThreadHydrationFinished.ts +0 -13
  123. package/runtime/src/lifecycle/patch/snapshotPatch.ts +0 -65
  124. package/runtime/src/lifecycle/patch/snapshotPatchApply.ts +0 -145
  125. package/runtime/src/lifecycle/patch/updateMainThread.ts +0 -64
  126. package/runtime/src/lifecycle/ref/delay.ts +0 -99
  127. package/runtime/src/lifecycle/reload.ts +0 -97
  128. package/runtime/src/lifecycle/render.ts +0 -54
  129. package/runtime/src/lifecycleConstant.ts +0 -21
  130. package/runtime/src/list.ts +0 -307
  131. package/runtime/src/listUpdateInfo.ts +0 -221
  132. package/runtime/src/lynx/calledByNative.ts +0 -160
  133. package/runtime/src/lynx/component.ts +0 -113
  134. package/runtime/src/lynx/dynamic-js.ts +0 -36
  135. package/runtime/src/lynx/env.ts +0 -109
  136. package/runtime/src/lynx/injectLepusMethods.ts +0 -53
  137. package/runtime/src/lynx/lazy-bundle.ts +0 -175
  138. package/runtime/src/lynx/performance.ts +0 -148
  139. package/runtime/src/lynx/runWithForce.ts +0 -67
  140. package/runtime/src/lynx/tt.ts +0 -215
  141. package/runtime/src/lynx-api.ts +0 -455
  142. package/runtime/src/lynx.ts +0 -58
  143. package/runtime/src/opcodes.ts +0 -155
  144. package/runtime/src/pendingListUpdates.ts +0 -18
  145. package/runtime/src/renderToOpcodes/constants.ts +0 -24
  146. package/runtime/src/renderToOpcodes/index.ts +0 -306
  147. package/runtime/src/root.ts +0 -23
  148. package/runtime/src/snapshot/dynamicPartType.ts +0 -16
  149. package/runtime/src/snapshot/event.ts +0 -33
  150. package/runtime/src/snapshot/gesture.ts +0 -30
  151. package/runtime/src/snapshot/list.ts +0 -36
  152. package/runtime/src/snapshot/platformInfo.ts +0 -62
  153. package/runtime/src/snapshot/ref.ts +0 -139
  154. package/runtime/src/snapshot/spread.ts +0 -330
  155. package/runtime/src/snapshot/workletEvent.ts +0 -35
  156. package/runtime/src/snapshot/workletRef.ts +0 -88
  157. package/runtime/src/snapshot.ts +0 -634
  158. package/runtime/src/snapshotInstanceHydrationMap.ts +0 -17
  159. package/runtime/src/utils.ts +0 -44
  160. package/runtime/src/worklet/ctx.ts +0 -22
  161. package/runtime/src/worklet/destroy.ts +0 -16
  162. package/runtime/src/worklet/execMap.ts +0 -51
  163. package/runtime/src/worklet/functionCall.ts +0 -42
  164. package/runtime/src/worklet/functionality.ts +0 -29
  165. package/runtime/src/worklet/hmr.ts +0 -34
  166. package/runtime/src/worklet/indexMap.ts +0 -23
  167. package/runtime/src/worklet/runOnBackground.ts +0 -147
  168. package/runtime/src/worklet/runOnMainThread.ts +0 -50
  169. package/runtime/src/worklet/transformToWorklet.ts +0 -26
  170. package/runtime/src/worklet/workletRef.ts +0 -231
  171. package/runtime/src/worklet/workletRefPool.ts +0 -29

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.