@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 CHANGED
@@ -1,9 +1,33 @@
1
1
  # @lynx-js/react
2
2
 
3
- ## 0.114.1-canary-20250929065530-43f7563914201d62783986a899655644ef0d6e72
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-20250929-43f75639",
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",
@@ -5,7 +5,7 @@
5
5
  Rslib v0.13.3
6
6
 
7
7
  info build started...
8
- ready built in 0.09 s
8
+ ready built in 0.10 s
9
9
 
10
10
  File (esm) Size 
11
11
  dist/index.js 11.1 kB