@lynx-js/react-canary 0.114.1-canary-20250929-43f75639 → 0.114.1-canary-20250930-92002b6c
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 +25 -1
- package/package.json +1 -1
- package/refresh/.turbo/turbo-build.log +1 -1
- package/transform/dist/wasm.cjs +1 -1
- package/worklet-runtime/dist/dev.js +41 -5
- package/worklet-runtime/dist/main.js +1 -1
- package/worklet-runtime/lib/bindings/types.d.ts +11 -0
- package/worklet-runtime/lib/bindings/types.js +6 -1
- package/worklet-runtime/lib/bindings/types.js.map +1 -1
- package/worklet-runtime/lib/eventPropagation.d.ts +16 -0
- package/worklet-runtime/lib/eventPropagation.js +44 -0
- package/worklet-runtime/lib/eventPropagation.js.map +1 -0
- package/worklet-runtime/lib/workletRuntime.js +14 -4
- package/worklet-runtime/lib/workletRuntime.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
# @lynx-js/react
|
|
2
2
|
|
|
3
|
-
## 0.114.1-canary-
|
|
3
|
+
## 0.114.1-canary-20250930070225-92002b6c9a4049d7d2a01bbaa79698a90ddc3073
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- Add `event.stopPropagation` and `event.stopImmediatePropagation` in MTS, to help with event propagation control ([#1835](https://github.com/lynx-family/lynx-stack/pull/1835))
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
function App() {
|
|
11
|
+
function handleInnerTap(event: MainThread.TouchEvent) {
|
|
12
|
+
"main thread";
|
|
13
|
+
event.stopPropagation();
|
|
14
|
+
// Or stop immediate propagation with
|
|
15
|
+
// event.stopImmediatePropagation();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// OuterTap will not be triggered
|
|
19
|
+
return (
|
|
20
|
+
<view main-thread:bindtap={handleOuterTap}>
|
|
21
|
+
<view main-thread:bindtap={handleInnerTap}>
|
|
22
|
+
<text>Hello, world</text>
|
|
23
|
+
</view>
|
|
24
|
+
</view>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Note, if this feature is used in [Lazy Loading Standalone Project](https://lynxjs.org/react/code-splitting.html#lazy-loading-standalone-project), both the Producer and the Consumer should update to latest version of `@lynx-js/react` to make sure the feature is available.
|
|
30
|
+
|
|
7
31
|
- fix: optimize main thread event error message ([#1838](https://github.com/lynx-family/lynx-stack/pull/1838))
|
|
8
32
|
|
|
9
33
|
## 0.114.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-canary",
|
|
3
|
-
"version": "0.114.1-canary-
|
|
3
|
+
"version": "0.114.1-canary-20250930-92002b6c",
|
|
4
4
|
"description": "ReactLynx is a framework for developing Lynx applications with familiar React.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|