@lynx-js/react-canary 0.112.4-canary-20250825-e4d116b6 → 0.112.4-canary-20250826-bc7f532b

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,10 +1,10 @@
1
1
  # @lynx-js/react
2
2
 
3
- ## 0.112.4-canary-20250825092028-e4d116b6e5eaf49ced08c505c99f7e878a58dfb1
3
+ ## 0.112.4-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - fix \`withInitDataInState\` got wrong state in 2nd or more times `defaultDataProcessor`, now it will keep its own state. ([#1478](https://github.com/lynx-family/lynx-stack/pull/1478))
7
+ - fix `withInitDataInState` got wrong state in 2nd or more times `defaultDataProcessor`, now it will keep its own state. ([#1478](https://github.com/lynx-family/lynx-stack/pull/1478))
8
8
 
9
9
  - change `__CreateElement('raw-text')` to `__CreateRawText('')` to avoid `setNativeProps` not working ([#1570](https://github.com/lynx-family/lynx-stack/pull/1570))
10
10
 
@@ -16,17 +16,17 @@
16
16
 
17
17
  - Add `animate` API in Main Thread Script(MTS), so you can now control a CSS animation imperatively ([#1534](https://github.com/lynx-family/lynx-stack/pull/1534))
18
18
 
19
- ```
20
- function startAnimation() {
21
- 'main thread'
22
- const animation = ele.animate([
23
- { opacity: 0 },
24
- { opacity: 1 },
25
- ], {
26
- duration: 3000
27
- })
28
-
29
- animation.pause()
19
+ ```ts
20
+ import type { MainThread } from "@lynx-js/types";
21
+
22
+ function startAnimation(ele: MainThread.Element) {
23
+ "main thread";
24
+ const animation = ele.animate([{ opacity: 0 }, { opacity: 1 }], {
25
+ duration: 3000,
26
+ });
27
+
28
+ // Can also be paused
29
+ // animation.pause()
30
30
  }
31
31
  ```
32
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-canary",
3
- "version": "0.112.4-canary-20250825-e4d116b6",
3
+ "version": "0.112.4-canary-20250826-bc7f532b",
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.12.2
6
6
 
7
7
  info build started...
8
- ready built in 0.11 s
8
+ ready built in 0.13 s
9
9
 
10
10
  File (esm) Size 
11
11
  dist/index.js 11.1 kB