@lynx-js/react 0.121.2 → 0.122.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 (151) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/package.json +2 -2
  3. package/runtime/lib/core/background-function/exec-map.d.ts +11 -0
  4. package/runtime/lib/core/background-function/exec-map.js +39 -0
  5. package/runtime/lib/core/background-function/exec-map.js.map +1 -0
  6. package/runtime/lib/core/background-function/handle.d.ts +8 -0
  7. package/runtime/lib/core/background-function/handle.js +25 -0
  8. package/runtime/lib/core/background-function/handle.js.map +1 -0
  9. package/runtime/lib/core/background-function/run-on-background.d.ts +8 -0
  10. package/runtime/lib/{snapshot/worklet/call/runOnBackground.js → core/background-function/run-on-background.js} +39 -33
  11. package/runtime/lib/core/background-function/run-on-background.js.map +1 -0
  12. package/runtime/lib/core/initData.js +35 -0
  13. package/runtime/lib/core/initData.js.map +1 -1
  14. package/runtime/lib/core/lynx-page-data.js +6 -0
  15. package/runtime/lib/core/lynx-page-data.js.map +1 -1
  16. package/runtime/lib/core/lynx-update-data.js +6 -0
  17. package/runtime/lib/core/lynx-update-data.js.map +1 -1
  18. package/runtime/lib/core/runtime-destroy.d.ts +4 -0
  19. package/runtime/lib/core/runtime-destroy.js +18 -0
  20. package/runtime/lib/core/runtime-destroy.js.map +1 -0
  21. package/runtime/lib/core/thread-function-call/main-thread.d.ts +5 -0
  22. package/runtime/lib/core/thread-function-call/main-thread.js +69 -0
  23. package/runtime/lib/core/thread-function-call/main-thread.js.map +1 -0
  24. package/runtime/lib/core/thread-function-call/return-value.d.ts +2 -0
  25. package/runtime/lib/core/thread-function-call/return-value.js +67 -0
  26. package/runtime/lib/core/thread-function-call/return-value.js.map +1 -0
  27. package/runtime/lib/element-template/background/attr-slots.d.ts +1 -1
  28. package/runtime/lib/element-template/background/attr-slots.js +8 -7
  29. package/runtime/lib/element-template/background/attr-slots.js.map +1 -1
  30. package/runtime/lib/element-template/background/commit-hook.js +79 -59
  31. package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
  32. package/runtime/lib/element-template/background/destroy.js +4 -0
  33. package/runtime/lib/element-template/background/destroy.js.map +1 -1
  34. package/runtime/lib/element-template/background/hydrate.js +29 -6
  35. package/runtime/lib/element-template/background/hydrate.js.map +1 -1
  36. package/runtime/lib/element-template/background/hydration-listener.js +33 -14
  37. package/runtime/lib/element-template/background/hydration-listener.js.map +1 -1
  38. package/runtime/lib/element-template/background/instance.d.ts +1 -1
  39. package/runtime/lib/element-template/background/instance.js +10 -3
  40. package/runtime/lib/element-template/background/instance.js.map +1 -1
  41. package/runtime/lib/element-template/background/render-scope.d.ts +4 -0
  42. package/runtime/lib/element-template/background/render-scope.js +43 -0
  43. package/runtime/lib/element-template/background/render-scope.js.map +1 -0
  44. package/runtime/lib/element-template/index.d.ts +2 -0
  45. package/runtime/lib/element-template/index.js +2 -0
  46. package/runtime/lib/element-template/index.js.map +1 -1
  47. package/runtime/lib/element-template/internal.d.ts +4 -1
  48. package/runtime/lib/element-template/internal.js +5 -5
  49. package/runtime/lib/element-template/internal.js.map +1 -1
  50. package/runtime/lib/element-template/lynx/env.js +2 -0
  51. package/runtime/lib/element-template/lynx/env.js.map +1 -1
  52. package/runtime/lib/element-template/native/index.js +2 -0
  53. package/runtime/lib/element-template/native/index.js.map +1 -1
  54. package/runtime/lib/element-template/native/mts-destroy.js +4 -0
  55. package/runtime/lib/element-template/native/mts-destroy.js.map +1 -1
  56. package/runtime/lib/element-template/native/patch-listener.js +41 -16
  57. package/runtime/lib/element-template/native/patch-listener.js.map +1 -1
  58. package/runtime/lib/element-template/native/reload-main-thread.js +4 -0
  59. package/runtime/lib/element-template/native/reload-main-thread.js.map +1 -1
  60. package/runtime/lib/element-template/prop-adapters/spread.d.ts +1 -4
  61. package/runtime/lib/element-template/prop-adapters/spread.js +1 -1
  62. package/runtime/lib/element-template/prop-adapters/spread.js.map +1 -1
  63. package/runtime/lib/element-template/protocol/template-type.d.ts +19 -0
  64. package/runtime/lib/element-template/protocol/template-type.js +23 -1
  65. package/runtime/lib/element-template/protocol/template-type.js.map +1 -1
  66. package/runtime/lib/element-template/protocol/types.d.ts +5 -2
  67. package/runtime/lib/element-template/protocol/types.js.map +1 -1
  68. package/runtime/lib/element-template/protocol/update-event.d.ts +15 -0
  69. package/runtime/lib/element-template/protocol/update-event.js +24 -0
  70. package/runtime/lib/element-template/protocol/update-event.js.map +1 -0
  71. package/runtime/lib/element-template/runtime/patch.d.ts +1 -1
  72. package/runtime/lib/element-template/runtime/patch.js +23 -3
  73. package/runtime/lib/element-template/runtime/patch.js.map +1 -1
  74. package/runtime/lib/element-template/runtime/render/render-opcodes.js +5 -2
  75. package/runtime/lib/element-template/runtime/render/render-opcodes.js.map +1 -1
  76. package/runtime/lib/element-template/runtime/template/attr-slot-plan.d.ts +7 -5
  77. package/runtime/lib/element-template/runtime/template/attr-slot-plan.js +17 -4
  78. package/runtime/lib/element-template/runtime/template/attr-slot-plan.js.map +1 -1
  79. package/runtime/lib/element-template/runtime/template/handle.js +7 -1
  80. package/runtime/lib/element-template/runtime/template/handle.js.map +1 -1
  81. package/runtime/lib/element-template/runtime/template/main-thread-background-function.d.ts +10 -0
  82. package/runtime/lib/element-template/runtime/template/main-thread-background-function.js +30 -0
  83. package/runtime/lib/element-template/runtime/template/main-thread-background-function.js.map +1 -0
  84. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.d.ts +15 -0
  85. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js +91 -0
  86. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js.map +1 -0
  87. package/runtime/lib/element-template/runtime/template/main-thread-event-ctx.d.ts +15 -0
  88. package/runtime/lib/element-template/runtime/template/main-thread-event-ctx.js +29 -0
  89. package/runtime/lib/element-template/runtime/template/main-thread-event-ctx.js.map +1 -0
  90. package/runtime/lib/element-template/runtime/template/main-thread-function.d.ts +6 -0
  91. package/runtime/lib/element-template/runtime/template/main-thread-function.js +24 -0
  92. package/runtime/lib/element-template/runtime/template/main-thread-function.js.map +1 -0
  93. package/runtime/lib/index.d.ts +3 -1
  94. package/runtime/lib/index.js +2 -1
  95. package/runtime/lib/index.js.map +1 -1
  96. package/runtime/lib/internal.d.ts +1 -1
  97. package/runtime/lib/internal.js +1 -1
  98. package/runtime/lib/internal.js.map +1 -1
  99. package/runtime/lib/lynx-api.d.ts +1 -1
  100. package/runtime/lib/lynx-api.js +1 -1
  101. package/runtime/lib/lynx-api.js.map +1 -1
  102. package/runtime/lib/{snapshot/worklet/indexMap.d.ts → shared/index-map.d.ts} +2 -2
  103. package/runtime/lib/{snapshot/worklet/indexMap.js → shared/index-map.js} +5 -3
  104. package/runtime/lib/shared/index-map.js.map +1 -0
  105. package/runtime/lib/snapshot/lifecycle/patch/commit.js +1 -1
  106. package/runtime/lib/snapshot/lifecycle/patch/commit.js.map +1 -1
  107. package/runtime/lib/snapshot/lynx/children.d.ts +13 -0
  108. package/runtime/lib/snapshot/lynx/children.js +19 -0
  109. package/runtime/lib/snapshot/lynx/children.js.map +1 -0
  110. package/runtime/lib/snapshot/lynx/tt.js +1 -1
  111. package/runtime/lib/snapshot/lynx/tt.js.map +1 -1
  112. package/runtime/lib/snapshot/worklet/call/runOnMainThread.js +10 -31
  113. package/runtime/lib/snapshot/worklet/call/runOnMainThread.js.map +1 -1
  114. package/runtime/lib/snapshot/worklet/ctx.js +2 -2
  115. package/runtime/lib/snapshot/worklet/ctx.js.map +1 -1
  116. package/runtime/lib/snapshot/worklet/destroy.d.ts +0 -1
  117. package/runtime/lib/snapshot/worklet/destroy.js +2 -5
  118. package/runtime/lib/snapshot/worklet/destroy.js.map +1 -1
  119. package/runtime/lib/tsconfig.tsbuildinfo +1 -1
  120. package/runtime/lib/worklet-runtime/bindings/observers.d.ts +7 -0
  121. package/runtime/lib/worklet-runtime/bindings/observers.js +14 -1
  122. package/runtime/lib/worklet-runtime/bindings/observers.js.map +1 -1
  123. package/runtime/lib/worklet-runtime/delayRunOnBackground.d.ts +2 -1
  124. package/runtime/lib/worklet-runtime/delayRunOnBackground.js +6 -2
  125. package/runtime/lib/worklet-runtime/delayRunOnBackground.js.map +1 -1
  126. package/runtime/lib/worklet-runtime/hydrate.js +3 -0
  127. package/runtime/lib/worklet-runtime/hydrate.js.map +1 -1
  128. package/runtime/lib/worklet-runtime/jsFunctionLifecycle.d.ts +1 -1
  129. package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js +1 -1
  130. package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js.map +1 -1
  131. package/runtime/lib/worklet-runtime/workletRuntime.js +17 -2
  132. package/runtime/lib/worklet-runtime/workletRuntime.js.map +1 -1
  133. package/runtime/worklet-runtime/dev.js +26 -8
  134. package/runtime/worklet-runtime/main.js +1 -1
  135. package/transform/dist/wasm.cjs +1 -1
  136. package/types/react.docs.d.ts +14 -0
  137. package/runtime/lib/snapshot/worklet/call/delayedRunOnMainThreadData.d.ts +0 -3
  138. package/runtime/lib/snapshot/worklet/call/delayedRunOnMainThreadData.js +0 -10
  139. package/runtime/lib/snapshot/worklet/call/delayedRunOnMainThreadData.js.map +0 -1
  140. package/runtime/lib/snapshot/worklet/call/execMap.d.ts +0 -1
  141. package/runtime/lib/snapshot/worklet/call/execMap.js +0 -43
  142. package/runtime/lib/snapshot/worklet/call/execMap.js.map +0 -1
  143. package/runtime/lib/snapshot/worklet/call/functionCall.d.ts +0 -1
  144. package/runtime/lib/snapshot/worklet/call/functionCall.js +0 -33
  145. package/runtime/lib/snapshot/worklet/call/functionCall.js.map +0 -1
  146. package/runtime/lib/snapshot/worklet/call/runOnBackground.d.ts +0 -20
  147. package/runtime/lib/snapshot/worklet/call/runOnBackground.js.map +0 -1
  148. package/runtime/lib/snapshot/worklet/call/transformToWorklet.d.ts +0 -1
  149. package/runtime/lib/snapshot/worklet/call/transformToWorklet.js +0 -22
  150. package/runtime/lib/snapshot/worklet/call/transformToWorklet.js.map +0 -1
  151. package/runtime/lib/snapshot/worklet/indexMap.js.map +0 -1

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.