@lynx-js/react-canary 0.121.0 → 0.121.1-canary-20260518-bce22d4d
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 +48 -59
- package/package.json +1 -1
- package/runtime/lib/core/lynx-data-processors.d.ts +2 -0
- package/runtime/lib/core/lynx-data-processors.js +53 -0
- package/runtime/lib/core/lynx-data-processors.js.map +1 -0
- package/runtime/lib/element-template/client/root.d.ts +7 -0
- package/runtime/lib/element-template/client/root.js +3 -6
- package/runtime/lib/element-template/client/root.js.map +1 -1
- package/runtime/lib/element-template/index.d.ts +1 -0
- package/runtime/lib/element-template/lynx/env.js +5 -48
- package/runtime/lib/element-template/lynx/env.js.map +1 -1
- package/runtime/lib/snapshot/list/listUpdateInfo.js +3 -2
- package/runtime/lib/snapshot/list/listUpdateInfo.js.map +1 -1
- package/runtime/lib/snapshot/lynx/env.js +5 -51
- package/runtime/lib/snapshot/lynx/env.js.map +1 -1
- package/runtime/lib/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lynx-js/react
|
|
2
2
|
|
|
3
|
+
## 0.121.1-canary-20260518110045-bce22d4d437daab1e835670a9a9f1d750a2cbe8c
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix list update indices when existing items are updated after inserting siblings before them. ([#2518](https://github.com/lynx-family/lynx-stack/pull/2518))
|
|
8
|
+
|
|
3
9
|
## 0.121.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -7,7 +13,7 @@
|
|
|
7
13
|
- Support `React.createElement(type, props, children)` API. ([#2360](https://github.com/lynx-family/lynx-stack/pull/2360))
|
|
8
14
|
|
|
9
15
|
```jsx
|
|
10
|
-
React.createElement(
|
|
16
|
+
React.createElement("view", { style }, <text>hello</text>);
|
|
11
17
|
// equivalent to
|
|
12
18
|
<view style={style}>
|
|
13
19
|
<text>hello</text>
|
|
@@ -69,7 +75,6 @@
|
|
|
69
75
|
- Fix ref callbacks not being cleaned up or re-applied correctly when the ref at the same element slot changes across rerenders that happen before hydration (e.g. a `useEffect` triggering `setState` during the initial background render). ([#2500](https://github.com/lynx-family/lynx-stack/pull/2500))
|
|
70
76
|
|
|
71
77
|
- fix: reduce redundant updates for main-thread handlers and gestures ([#2188](https://github.com/lynx-family/lynx-stack/pull/2188))
|
|
72
|
-
|
|
73
78
|
- Updates are faster when the main-thread event handler or gesture object is stable across rerenders (fewer unnecessary native updates).
|
|
74
79
|
- Spread props rerenders that don't semantically change the handler/gesture no longer trigger redundant updates.
|
|
75
80
|
- Removing a gesture from spread props reliably clears the gesture state on the target element.
|
|
@@ -89,7 +94,6 @@
|
|
|
89
94
|
- Remove stale gestures when gestures are removed ([#2297](https://github.com/lynx-family/lynx-stack/pull/2297))
|
|
90
95
|
|
|
91
96
|
- Trace refactor ([#2466](https://github.com/lynx-family/lynx-stack/pull/2466))
|
|
92
|
-
|
|
93
97
|
- Remove `ReactLynx::renderOpcodes` from the trace
|
|
94
98
|
- Use `ReactLynx::transferRoot` to measure the time spent transferring the root to the background thread
|
|
95
99
|
|
|
@@ -100,8 +104,8 @@
|
|
|
100
104
|
Create a config file `rstest.config.ts` with the following content:
|
|
101
105
|
|
|
102
106
|
```ts
|
|
103
|
-
import { defineConfig } from
|
|
104
|
-
import { withLynxConfig } from
|
|
107
|
+
import { defineConfig } from "@rstest/core";
|
|
108
|
+
import { withLynxConfig } from "@lynx-js/react/testing-library/rstest-config";
|
|
105
109
|
|
|
106
110
|
export default defineConfig({
|
|
107
111
|
extends: withLynxConfig(),
|
|
@@ -151,7 +155,6 @@
|
|
|
151
155
|
### Minor Changes
|
|
152
156
|
|
|
153
157
|
- feat: export `GlobalPropsProvider`, `GlobalPropsConsumer`, `useGlobalProps` and `useGlobalPropsChanged` for `__globalProps` ([#2346](https://github.com/lynx-family/lynx-stack/pull/2346))
|
|
154
|
-
|
|
155
158
|
- `GlobalPropsProvider`: A Provider component that accepts `children`. It is used to provide the `lynx.__globalProps` context.
|
|
156
159
|
- `GlobalPropsConsumer`: A Consumer component that accepts a function as a child. It is used to consume the `lynx.__globalProps` context.
|
|
157
160
|
- `useGlobalProps`: A hook that returns the `lynx.__globalProps` object. It triggers a re-render when `lynx.__globalProps` changes.
|
|
@@ -166,7 +169,6 @@
|
|
|
166
169
|
Upgrade preact from [f7693b72](https://github.com/preactjs/preact/commit/f7693b72ecb4a40c66e6e47f54e2d4edc374c9f0) to [55254ef7](https://github.com/preactjs/preact/commit/55254ef7021e563cc1a86fb816058964a1b6a29a), see diffs at [f7693b72...55254ef7](https://github.com/preactjs/preact/compare/f7693b72ecb4a40c66e6e47f54e2d4edc374c9f0...preactjs:preact:55254ef7021e563cc1a86fb816058964a1b6a29a?expand=1).
|
|
167
170
|
|
|
168
171
|
- feat: add `globalPropsMode` option to `PluginReactLynxOptions` ([#2346](https://github.com/lynx-family/lynx-stack/pull/2346))
|
|
169
|
-
|
|
170
172
|
- When configured to `"event"`, `updateGlobalProps` will only trigger a global event and skip the `runWithForce` flow.
|
|
171
173
|
- Defaults to `"reactive"`, which means `updateGlobalProps` will trigger re-render automatically.
|
|
172
174
|
|
|
@@ -186,7 +188,6 @@
|
|
|
186
188
|
|
|
187
189
|
- Improve React runtime hook profiling. ([#2235](https://github.com/lynx-family/lynx-stack/pull/2235))
|
|
188
190
|
Enable Profiling recording first, then enter the target page so the trace includes full render/hydrate phases.
|
|
189
|
-
|
|
190
191
|
- Record trace events for `useEffect` / `useLayoutEffect` hook entry, callback, and cleanup phases.
|
|
191
192
|
- Log trace events for `useState` setter calls.
|
|
192
193
|
- Wire `profileFlowId` support in debug profile utilities and attach flow IDs to related hook traces.
|
|
@@ -235,7 +236,6 @@
|
|
|
235
236
|
- Bump `swc_core` v56. ([#2154](https://github.com/lynx-family/lynx-stack/pull/2154))
|
|
236
237
|
|
|
237
238
|
- Use `disableDeprecatedWarning` option to suppress BROKEN warnings during compilation. ([#2157](https://github.com/lynx-family/lynx-stack/pull/2157))
|
|
238
|
-
|
|
239
239
|
1. BROKEN: `getNodeRef`/`getNodeRefFromRoot`/`createSelectorQuery` on component instance is broken and MUST be migrated in ReactLynx 3.0, please use ref or lynx.createSelectorQuery instead.
|
|
240
240
|
2. BROKEN: `getElementById` on component instance is broken and MUST be migrated in ReactLynx 3.0, please use ref or lynx.getElementById instead.
|
|
241
241
|
|
|
@@ -273,9 +273,9 @@
|
|
|
273
273
|
|
|
274
274
|
```typescript
|
|
275
275
|
function getStyle(ele: MainThread.Element) {
|
|
276
|
-
|
|
277
|
-
const width = ele.getComputedStyleProperty(
|
|
278
|
-
const transformMatrix = ele.getComputedStyleProperty(
|
|
276
|
+
"main thread";
|
|
277
|
+
const width = ele.getComputedStyleProperty("width"); // Returns 300px
|
|
278
|
+
const transformMatrix = ele.getComputedStyleProperty("transform"); // Returns matrix(2, 0, 0, 2, 200, 400)
|
|
279
279
|
}
|
|
280
280
|
```
|
|
281
281
|
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
```ts
|
|
291
291
|
const LazyComponent = lazy(async () => {
|
|
292
292
|
try {
|
|
293
|
-
const mod = await import(
|
|
293
|
+
const mod = await import("./lazy-bundle");
|
|
294
294
|
return mod.default;
|
|
295
295
|
} catch (error) {
|
|
296
296
|
console.error(`Lazy Bundle load failed message: ${error.message}`);
|
|
@@ -318,14 +318,13 @@
|
|
|
318
318
|
- Auto define lynx.loadLazyBundle when using `import(/* relative path */)`. ([#1956](https://github.com/lynx-family/lynx-stack/pull/1956))
|
|
319
319
|
|
|
320
320
|
- feat: support declaring cross-thread shared modules via Import Attributes, enabling Main Thread Functions to call standard JS functions directly. ([#1968](https://github.com/lynx-family/lynx-stack/pull/1968))
|
|
321
|
-
|
|
322
321
|
- Usage: Add `with { runtime: "shared" }` to the `import` statement. For example:
|
|
323
322
|
|
|
324
323
|
```ts
|
|
325
|
-
import { func } from
|
|
324
|
+
import { func } from "./utils.js" with { runtime: "shared" };
|
|
326
325
|
|
|
327
326
|
function worklet() {
|
|
328
|
-
|
|
327
|
+
"main thread";
|
|
329
328
|
func(); // callable inside a main thread function
|
|
330
329
|
}
|
|
331
330
|
```
|
|
@@ -341,13 +340,11 @@
|
|
|
341
340
|
- **BREAKING CHANGE**: Delay the `createSnapshot` operation to `Snapshot` constructor to speed up IFR. ([#1899](https://github.com/lynx-family/lynx-stack/pull/1899))
|
|
342
341
|
|
|
343
342
|
This change refactors how snapshots are created and registered:
|
|
344
|
-
|
|
345
343
|
- Removed the `entryUniqID` function
|
|
346
344
|
- Snapshots are now lazily created via `snapshotCreatorMap` instead of eagerly at bundle load time
|
|
347
345
|
- Snapshot IDs are generated at compile time and only prefixed with `${globDynamicComponentEntry}:` for standalone lazy bundles
|
|
348
346
|
|
|
349
347
|
**⚠️ Lazy Bundle Compatibility:**
|
|
350
|
-
|
|
351
348
|
- **Backward compatibility (new runtime → old lazy bundles)**: ✅ **Supported**. Old lazy bundles will work with the new runtime.
|
|
352
349
|
|
|
353
350
|
- **Forward compatibility (old runtime → new lazy bundles)**: ❌ **NOT Supported**. Lower version consumers **will not be able to load lazy bundles produced by this version** due to the changed snapshot creation mechanism.
|
|
@@ -402,11 +399,11 @@
|
|
|
402
399
|
- Support testing React Compiler in testing library. Enable React Compiler by setting the `experimental_enableReactCompiler` option of `createVitestConfig` to `true`. ([#1269](https://github.com/lynx-family/lynx-stack/pull/1269))
|
|
403
400
|
|
|
404
401
|
```js
|
|
405
|
-
import { defineConfig, mergeConfig } from
|
|
406
|
-
import { createVitestConfig } from
|
|
402
|
+
import { defineConfig, mergeConfig } from "vitest/config";
|
|
403
|
+
import { createVitestConfig } from "@lynx-js/react/testing-library/vitest-config";
|
|
407
404
|
|
|
408
405
|
const defaultConfig = await createVitestConfig({
|
|
409
|
-
runtimePkgName:
|
|
406
|
+
runtimePkgName: "@lynx-js/react",
|
|
410
407
|
experimental_enableReactCompiler: true,
|
|
411
408
|
});
|
|
412
409
|
|
|
@@ -436,7 +433,7 @@
|
|
|
436
433
|
```tsx
|
|
437
434
|
function App() {
|
|
438
435
|
function handleInnerTap(event: MainThread.TouchEvent) {
|
|
439
|
-
|
|
436
|
+
"main thread";
|
|
440
437
|
event.stopPropagation();
|
|
441
438
|
// Or stop immediate propagation with
|
|
442
439
|
// event.stopImmediatePropagation();
|
|
@@ -534,10 +531,10 @@
|
|
|
534
531
|
- 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))
|
|
535
532
|
|
|
536
533
|
```ts
|
|
537
|
-
import type { MainThread } from
|
|
534
|
+
import type { MainThread } from "@lynx-js/types";
|
|
538
535
|
|
|
539
536
|
function startAnimation(ele: MainThread.Element) {
|
|
540
|
-
|
|
537
|
+
"main thread";
|
|
541
538
|
const animation = ele.animate([{ opacity: 0 }, { opacity: 1 }], {
|
|
542
539
|
duration: 3000,
|
|
543
540
|
});
|
|
@@ -566,13 +563,12 @@
|
|
|
566
563
|
- Supports `recyclable` attribute in `<list-item>` to control whether the list item is recyclable. The `recyclable` attribute depends on Lynx Engine 3.4 or later. ([#1388](https://github.com/lynx-family/lynx-stack/pull/1388))
|
|
567
564
|
|
|
568
565
|
```jsx
|
|
569
|
-
<list-item recyclable={false}
|
|
566
|
+
<list-item recyclable={false} />
|
|
570
567
|
```
|
|
571
568
|
|
|
572
569
|
- feat: Support using a host element as direct child of Suspense ([#1455](https://github.com/lynx-family/lynx-stack/pull/1455))
|
|
573
570
|
|
|
574
571
|
- Add profile in production build: ([#1336](https://github.com/lynx-family/lynx-stack/pull/1336))
|
|
575
|
-
|
|
576
572
|
1. `diff:__COMPONENT_NAME__`: how long ReactLynx diff took.
|
|
577
573
|
2. `render:__COMPONENT_NAME__`: how long your render function took.
|
|
578
574
|
3. `setState`: an instant trace event, indicate when your setState was called.
|
|
@@ -587,7 +583,7 @@
|
|
|
587
583
|
|
|
588
584
|
```ts
|
|
589
585
|
function handleTap() {
|
|
590
|
-
|
|
586
|
+
"main thread";
|
|
591
587
|
// The following check always returned false before this fix
|
|
592
588
|
if (myHandleTap) {
|
|
593
589
|
runOnBackground(myHandleTap)();
|
|
@@ -610,7 +606,6 @@
|
|
|
610
606
|
- feat: Force synchronous rendering for background initial renders to support Suspense fallbacks ([#1323](https://github.com/lynx-family/lynx-stack/pull/1323))
|
|
611
607
|
|
|
612
608
|
- Introduces `@lynx-js/react/compat` submodule exporting Preact implementations of: ([#1316](https://github.com/lynx-family/lynx-stack/pull/1316))
|
|
613
|
-
|
|
614
609
|
- `startTransition`
|
|
615
610
|
- `useTransition`
|
|
616
611
|
|
|
@@ -648,10 +643,10 @@
|
|
|
648
643
|
Add the import to `@lynx-js/react/debug` at the first line of the entry:
|
|
649
644
|
|
|
650
645
|
```js
|
|
651
|
-
import
|
|
652
|
-
import { root } from
|
|
646
|
+
import "@lynx-js/react/debug";
|
|
647
|
+
import { root } from "@lynx-js/react";
|
|
653
648
|
|
|
654
|
-
import { App } from
|
|
649
|
+
import { App } from "./App.jsx";
|
|
655
650
|
|
|
656
651
|
root.render(<App />);
|
|
657
652
|
```
|
|
@@ -661,9 +656,9 @@
|
|
|
661
656
|
For example, you can use it like this:
|
|
662
657
|
|
|
663
658
|
```jsx
|
|
664
|
-
<list-item defer={{ unmountRecycled: true }} item-key=
|
|
659
|
+
<list-item defer={{ unmountRecycled: true }} item-key="1">
|
|
665
660
|
<WillBeUnmountIfRecycled />
|
|
666
|
-
</list-item
|
|
661
|
+
</list-item>
|
|
667
662
|
```
|
|
668
663
|
|
|
669
664
|
Now the component will be unmounted when it is recycled, which can help with performance in certain scenarios.
|
|
@@ -671,7 +666,7 @@
|
|
|
671
666
|
- Avoid some unexpected `__SetAttribute` in hydrate when `undefined` is passed as an attribute value to intrinsic elements, for example: ([#1318](https://github.com/lynx-family/lynx-stack/pull/1318))
|
|
672
667
|
|
|
673
668
|
```jsx
|
|
674
|
-
<image async-mode={undefined}
|
|
669
|
+
<image async-mode={undefined} />
|
|
675
670
|
```
|
|
676
671
|
|
|
677
672
|
## 0.111.1
|
|
@@ -710,14 +705,13 @@
|
|
|
710
705
|
- Fixed: An issue where the `lynxViewDidUpdate` callback did not trigger when data was updated from native. ([#1171](https://github.com/lynx-family/lynx-stack/pull/1171))
|
|
711
706
|
|
|
712
707
|
Notice:
|
|
713
|
-
|
|
714
708
|
- Even if no data changes are actually processed after calling `updateData()`, the `lynxViewDidUpdate` callback will still be triggered.
|
|
715
709
|
- Only one `lynxViewDidUpdate` callback will be triggered per render cycle. Consequently, if multiple `updateData()` calls are made within a single cycle but the data updates are batched, the number of `lynxViewDidUpdate` callbacks triggered may be less than the number of `updateData()` calls.
|
|
716
710
|
|
|
717
711
|
- Supports `act` in testing library. ([#1182](https://github.com/lynx-family/lynx-stack/pull/1182))
|
|
718
712
|
|
|
719
713
|
```js
|
|
720
|
-
import { act } from
|
|
714
|
+
import { act } from "@lynx-js/react/testing-library";
|
|
721
715
|
|
|
722
716
|
act(() => {
|
|
723
717
|
// ...
|
|
@@ -737,14 +731,12 @@
|
|
|
737
731
|
- Fixed closure variable capture issue in effect hooks to prevent stale values and ensured proper execution order between refs, effects, and event handlers. ([#770](https://github.com/lynx-family/lynx-stack/pull/770))
|
|
738
732
|
|
|
739
733
|
**Breaking Changes**:
|
|
740
|
-
|
|
741
734
|
- The execution timing of `ref`, `useEffect()` callback, `componentDidMount`, `componentDidUpdate`, `componentWillUnmount` and the callback of `setState` have been moved forward. These effects will now execute before hydration is complete, rather than waiting for the main thread update to complete.
|
|
742
735
|
- For components inside `<list />`, `ref` callbacks will now be triggered during background thread rendering, regardless of component visibility. If your code depends on component visibility timing, use `main-thread:ref` instead of regular `ref`.
|
|
743
736
|
|
|
744
737
|
### Patch Changes
|
|
745
738
|
|
|
746
739
|
- Fixed two memory leaks: ([#1071](https://github.com/lynx-family/lynx-stack/pull/1071))
|
|
747
|
-
|
|
748
740
|
1. When JSX is rendered on the main thread and removed, FiberElement can still be referenced by `__root.__jsx` through `props.children`;
|
|
749
741
|
|
|
750
742
|
2. When the SnapshotInstance tree is removed from the root node, its child nodes form a cycle reference because the `__previousSibling` and `__nextSibling` properties point to each other, thus causing a FiberElement leak.
|
|
@@ -823,8 +815,7 @@
|
|
|
823
815
|
* 3: Full Resolution - Batch render with async property and element tree resolution for list item subtree
|
|
824
816
|
*/
|
|
825
817
|
experimental-batch-render-strategy={3}
|
|
826
|
-
>
|
|
827
|
-
</list>;
|
|
818
|
+
></list>
|
|
828
819
|
```
|
|
829
820
|
|
|
830
821
|
- rename @lynx-js/test-environment to @lynx-js/testing-environment ([#704](https://github.com/lynx-family/lynx-stack/pull/704))
|
|
@@ -850,7 +841,6 @@
|
|
|
850
841
|
### Minor Changes
|
|
851
842
|
|
|
852
843
|
- Some of the timing keys are renamed to match the naming convention of the Lynx Engine. ([#438](https://github.com/lynx-family/lynx-stack/pull/438))
|
|
853
|
-
|
|
854
844
|
- `update_set_state_trigger` -> `updateSetStateTrigger`
|
|
855
845
|
- `update_diff_vdom_start` -> `updateDiffVdomStart`
|
|
856
846
|
- `update_diff_vdom_end` -> `updateDiffVdomEnd`
|
|
@@ -942,7 +932,7 @@
|
|
|
942
932
|
You can now use `useErrorBoundary` it in TypeScript like this:
|
|
943
933
|
|
|
944
934
|
```tsx
|
|
945
|
-
import { useErrorBoundary } from
|
|
935
|
+
import { useErrorBoundary } from "@lynx-js/react";
|
|
946
936
|
```
|
|
947
937
|
|
|
948
938
|
- Modified the format of data sent from background threads to the main thread. ([#207](https://github.com/lynx-family/lynx-stack/pull/207))
|
|
@@ -994,13 +984,13 @@
|
|
|
994
984
|
Now you can get the return value from `runOnBackground()` and `runOnMainThread()`, which enables more flexible data flow between the main thread and the background thread.
|
|
995
985
|
|
|
996
986
|
```js
|
|
997
|
-
import { runOnBackground } from
|
|
987
|
+
import { runOnBackground } from "@lynx-js/react";
|
|
998
988
|
|
|
999
989
|
const onTap = async () => {
|
|
1000
|
-
|
|
990
|
+
"main thread";
|
|
1001
991
|
const text = await runOnBackground(() => {
|
|
1002
|
-
|
|
1003
|
-
return
|
|
992
|
+
"background only";
|
|
993
|
+
return "Hello, world!";
|
|
1004
994
|
})();
|
|
1005
995
|
console.log(text);
|
|
1006
996
|
};
|
|
@@ -1035,9 +1025,9 @@
|
|
|
1035
1025
|
|
|
1036
1026
|
```ts
|
|
1037
1027
|
// These imports will be removed from the final bundle
|
|
1038
|
-
import type { Foo } from
|
|
1039
|
-
import { type Bar } from
|
|
1040
|
-
import { xyz } from
|
|
1028
|
+
import type { Foo } from "xyz";
|
|
1029
|
+
import { type Bar } from "xyz";
|
|
1030
|
+
import { xyz } from "xyz"; // When xyz is not used
|
|
1041
1031
|
```
|
|
1042
1032
|
|
|
1043
1033
|
See [TypeScript - verbatimModuleSyntax](https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax) for details.
|
|
@@ -1077,7 +1067,7 @@
|
|
|
1077
1067
|
const f = undefined;
|
|
1078
1068
|
|
|
1079
1069
|
function mts() {
|
|
1080
|
-
|
|
1070
|
+
"main thread";
|
|
1081
1071
|
// throws in background rendering
|
|
1082
1072
|
f && runOnBackground(f)();
|
|
1083
1073
|
}
|
|
@@ -1111,14 +1101,14 @@
|
|
|
1111
1101
|
- a30c83d: Add `compat.removeComponentAttrRegex`.
|
|
1112
1102
|
|
|
1113
1103
|
```js
|
|
1114
|
-
import { pluginReactLynx } from
|
|
1115
|
-
import { defineConfig } from
|
|
1104
|
+
import { pluginReactLynx } from "@lynx-js/react-rsbuild-plugin";
|
|
1105
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
1116
1106
|
|
|
1117
1107
|
export default defineConfig({
|
|
1118
1108
|
plugins: [
|
|
1119
1109
|
pluginReactLynx({
|
|
1120
1110
|
compat: {
|
|
1121
|
-
removeComponentAttrRegex:
|
|
1111
|
+
removeComponentAttrRegex: "YOUR REGEX",
|
|
1122
1112
|
},
|
|
1123
1113
|
}),
|
|
1124
1114
|
],
|
|
@@ -1195,7 +1185,6 @@
|
|
|
1195
1185
|
</table>
|
|
1196
1186
|
|
|
1197
1187
|
This requires `@lynx-js/react-rsbuild-plugin` v0.5.1 to work.
|
|
1198
|
-
|
|
1199
1188
|
- Inject `globDynamicComponentEntry` for background script. ([#311](https://github.com/lynx-wg/lynx-stack/pull/311))
|
|
1200
1189
|
- Inject `globDynamicComponentEntry` for main thread script. ([#312](https://github.com/lynx-wg/lynx-stack/pull/312))
|
|
1201
1190
|
|
|
@@ -1204,22 +1193,22 @@
|
|
|
1204
1193
|
Gesture Handler is a set of gesture handling capabilities built on top of the Main Thread Script. It currently supports drag, inertial scrolling, long press, and tap gestures for `<view>`, `<scroll-view>`, `<list>`, and `<text>`. In the future, it will also support multi-finger zoom, multi-finger rotation, and other gesture capabilities.
|
|
1205
1194
|
|
|
1206
1195
|
```tsx
|
|
1207
|
-
import { useGesture, PanGesture } from
|
|
1196
|
+
import { useGesture, PanGesture } from "@lynx-js/gesture-runtime";
|
|
1208
1197
|
|
|
1209
1198
|
function App() {
|
|
1210
1199
|
const pan = useGesture(PanGesture);
|
|
1211
1200
|
|
|
1212
1201
|
pan
|
|
1213
1202
|
.onBegin((event, stateManager) => {
|
|
1214
|
-
|
|
1203
|
+
"main thread";
|
|
1215
1204
|
// some logic
|
|
1216
1205
|
})
|
|
1217
1206
|
.onUpdate((event, stateManager) => {
|
|
1218
|
-
|
|
1207
|
+
"main thread";
|
|
1219
1208
|
// some logic
|
|
1220
1209
|
})
|
|
1221
1210
|
.onEnd((event, stateManager) => {
|
|
1222
|
-
|
|
1211
|
+
"main thread";
|
|
1223
1212
|
// some logic
|
|
1224
1213
|
});
|
|
1225
1214
|
|
|
@@ -1239,7 +1228,7 @@
|
|
|
1239
1228
|
return;
|
|
1240
1229
|
}
|
|
1241
1230
|
|
|
1242
|
-
console.log(
|
|
1231
|
+
console.log("not __LEPUS__"); // This can be removed now
|
|
1243
1232
|
}
|
|
1244
1233
|
```
|
|
1245
1234
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { profileEnd, profileStart } from '../shared/profile.js';
|
|
2
|
+
export function createProcessData(dataProcessorDefinition) {
|
|
3
|
+
let hasDefaultDataProcessorExecuted = false;
|
|
4
|
+
return (data, processorName) => {
|
|
5
|
+
if (typeof __PROFILE__ !== 'undefined' && __PROFILE__) {
|
|
6
|
+
profileStart('processData');
|
|
7
|
+
}
|
|
8
|
+
let result;
|
|
9
|
+
try {
|
|
10
|
+
if (processorName) {
|
|
11
|
+
result = dataProcessorDefinition?.dataProcessors?.[processorName]?.(data) ?? data;
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
result = dataProcessorDefinition?.defaultDataProcessor?.(data) ?? data;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
catch (error) {
|
|
18
|
+
lynx.reportError(error);
|
|
19
|
+
result = {};
|
|
20
|
+
}
|
|
21
|
+
if (typeof __PROFILE__ !== 'undefined' && __PROFILE__) {
|
|
22
|
+
profileEnd();
|
|
23
|
+
}
|
|
24
|
+
if (!hasDefaultDataProcessorExecuted) {
|
|
25
|
+
result = appendInitDataMetadata(result);
|
|
26
|
+
}
|
|
27
|
+
if (!processorName) {
|
|
28
|
+
hasDefaultDataProcessorExecuted = true;
|
|
29
|
+
}
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function appendInitDataMetadata(result) {
|
|
34
|
+
// @ts-expect-error todo: add types to i18n logic
|
|
35
|
+
const i18nResourceTranslation = globalThis.__I18N_RESOURCE_TRANSLATION__;
|
|
36
|
+
if (i18nResourceTranslation) {
|
|
37
|
+
result = {
|
|
38
|
+
...result,
|
|
39
|
+
__I18N_RESOURCE_TRANSLATION__: i18nResourceTranslation,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
// @ts-expect-error todo: add types to __EXTRACT_STR__
|
|
43
|
+
if (__EXTRACT_STR__) {
|
|
44
|
+
// @ts-expect-error todo: add types to __EXTRACT_STR__
|
|
45
|
+
const extractStrIdentFlag = __EXTRACT_STR_IDENT_FLAG__;
|
|
46
|
+
result = {
|
|
47
|
+
...result,
|
|
48
|
+
_EXTRACT_STR: extractStrIdentFlag,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=lynx-data-processors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lynx-data-processors.js","sourceRoot":"","sources":["../../src/core/lynx-data-processors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,UAAU,iBAAiB,CAC/B,uBAAiD;IAEjD,IAAI,+BAA+B,GAAG,KAAK,CAAC;IAE5C,OAAO,CAAC,IAAI,EAAE,aAAa,EAAE,EAAE;QAC7B,IAAI,OAAO,WAAW,KAAK,WAAW,IAAI,WAAW,EAAE,CAAC;YACtD,YAAY,CAAC,aAAa,CAAC,CAAC;QAC9B,CAAC;QAED,IAAI,MAA8B,CAAC;QACnC,IAAI,CAAC;YACH,IAAI,aAAa,EAAE,CAAC;gBAClB,MAAM,GAAG,uBAAuB,EAAE,cAAc,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,IAAI,CAAa,IAAI,IAAI,CAAC;YAChG,CAAC;iBAAM,CAAC;gBACN,MAAM,GAAG,uBAAuB,EAAE,oBAAoB,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;YACzE,CAAC;QACH,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,IAAI,CAAC,WAAW,CAAC,KAAc,CAAC,CAAC;YACjC,MAAM,GAAG,EAAE,CAAC;QACd,CAAC;QAED,IAAI,OAAO,WAAW,KAAK,WAAW,IAAI,WAAW,EAAE,CAAC;YACtD,UAAU,EAAE,CAAC;QACf,CAAC;QAED,IAAI,CAAC,+BAA+B,EAAE,CAAC;YACrC,MAAM,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;QAC1C,CAAC;QAED,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,+BAA+B,GAAG,IAAI,CAAC;QACzC,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,sBAAsB,CAAC,MAA8B;IAC5D,iDAAiD;IACjD,MAAM,uBAAuB,GAAY,UAAU,CAAC,6BAA6B,CAAC;IAClF,IAAI,uBAAuB,EAAE,CAAC;QAC5B,MAAM,GAAG;YACP,GAAG,MAAM;YACT,6BAA6B,EAAE,uBAAuB;SACvD,CAAC;IACJ,CAAC;IAED,sDAAsD;IACtD,IAAI,eAAe,EAAE,CAAC;QACpB,sDAAsD;QACtD,MAAM,mBAAmB,GAAY,0BAA0B,CAAC;QAChE,MAAM,GAAG;YACP,GAAG,MAAM;YACT,YAAY,EAAE,mBAAmB;SAClC,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import type { DataProcessorDefinition } from '../../lynx-api.js';
|
|
2
3
|
/**
|
|
3
4
|
* The default root exported by `@lynx-js/react` for you to render a JSX
|
|
4
5
|
* @public
|
|
@@ -23,6 +24,12 @@ export interface Root {
|
|
|
23
24
|
* @public
|
|
24
25
|
*/
|
|
25
26
|
render: (jsx: ReactNode) => void;
|
|
27
|
+
/**
|
|
28
|
+
* {@inheritDoc Lynx.registerDataProcessors}
|
|
29
|
+
* @deprecated use {@link Lynx.registerDataProcessors | lynx.registerDataProcessors} instead
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
registerDataProcessors: (dataProcessorDefinition?: DataProcessorDefinition) => void;
|
|
26
33
|
}
|
|
27
34
|
/**
|
|
28
35
|
* The default and only root of ReactLynx for you to render JSX
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { render } from 'preact';
|
|
2
|
-
// import { factory, withInitDataInState } from '../../compat/initData.js';
|
|
3
2
|
import { profileEnd, profileStart } from '../debug/profile.js';
|
|
4
|
-
// import { useLynxGlobalEventListener } from '../../core/hooks/useLynxGlobalEventListener.js';
|
|
5
3
|
import { __root } from '../runtime/page/root-instance.js';
|
|
6
4
|
/**
|
|
7
5
|
* The default and only root of ReactLynx for you to render JSX
|
|
@@ -25,9 +23,8 @@ export const root = {
|
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
25
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// },
|
|
26
|
+
registerDataProcessors: (dataProcessorDefinition) => {
|
|
27
|
+
lynx.registerDataProcessors(dataProcessorDefinition);
|
|
28
|
+
},
|
|
32
29
|
};
|
|
33
30
|
//# sourceMappingURL=root.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.js","sourceRoot":"","sources":["../../../src/element-template/client/root.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"root.js","sourceRoot":"","sources":["../../../src/element-template/client/root.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAkC1D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,MAAM,EAAE,CAAC,GAAc,EAAQ,EAAE;QAC/B,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC;QACnB,IAAI,cAAc,EAAE,CAAC;YACnB,IAAI,WAAW,EAAE,CAAC;gBAChB,YAAY,CAAC,6BAA6B,CAAC,CAAC;YAC9C,CAAC;YACD,MAAM,CAAC,GAAqB,EAAE,MAAkC,CAAC,CAAC;YAClE,IAAI,WAAW,EAAE,CAAC;gBAChB,UAAU,EAAE,CAAC;YACf,CAAC;QACH,CAAC;IACH,CAAC;IACD,sBAAsB,EAAE,CAAC,uBAAiD,EAAQ,EAAE;QAClF,IAAI,CAAC,sBAAsB,CAAC,uBAAuB,CAAC,CAAC;IACvD,CAAC;CACF,CAAC"}
|
|
@@ -5,3 +5,4 @@ export { PureComponent } from 'preact/compat';
|
|
|
5
5
|
export * from './hooks/react.js';
|
|
6
6
|
export { Children, createRef, Fragment, isValidElement, memo, forwardRef, lazy, createElement, cloneElement, useSyncExternalStore, };
|
|
7
7
|
export * from './client/root.js';
|
|
8
|
+
export type { DataProcessorDefinition, DataProcessors, InitData, InitDataRaw } from '../lynx-api.js';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
import { createProcessData } from '../../core/lynx-data-processors.js';
|
|
2
5
|
export function setupLynxEnv() {
|
|
3
6
|
if (!__LEPUS__) {
|
|
4
7
|
let initData = {};
|
|
@@ -35,53 +38,7 @@ export function setupLynxEnv() {
|
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
40
|
lynx.registerDataProcessors = function (dataProcessorDefinition) {
|
|
38
|
-
|
|
39
|
-
globalThis.processData = (data, processorName) => {
|
|
40
|
-
if (__PROFILE__) {
|
|
41
|
-
profileStart('processData');
|
|
42
|
-
}
|
|
43
|
-
let r;
|
|
44
|
-
try {
|
|
45
|
-
if (processorName) {
|
|
46
|
-
r = dataProcessorDefinition?.dataProcessors?.[processorName]?.(data) ?? data;
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
r = dataProcessorDefinition?.defaultDataProcessor?.(data) ?? data;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
catch (e) {
|
|
53
|
-
lynx.reportError(e);
|
|
54
|
-
r = {};
|
|
55
|
-
}
|
|
56
|
-
if (__PROFILE__) {
|
|
57
|
-
profileEnd();
|
|
58
|
-
}
|
|
59
|
-
if (hasDefaultDataProcessorExecuted === false) {
|
|
60
|
-
// @ts-expect-error todo: add types to i18n logic
|
|
61
|
-
if (globalThis.__I18N_RESOURCE_TRANSLATION__) {
|
|
62
|
-
r = {
|
|
63
|
-
...r,
|
|
64
|
-
// @ts-expect-error todo: add types to i18n logic
|
|
65
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
66
|
-
__I18N_RESOURCE_TRANSLATION__: globalThis.__I18N_RESOURCE_TRANSLATION__,
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
// @ts-expect-error todo: add types to __EXTRACT_STR__
|
|
70
|
-
if (__EXTRACT_STR__) {
|
|
71
|
-
r = {
|
|
72
|
-
...r,
|
|
73
|
-
// @ts-expect-error todo: add types to __EXTRACT_STR__
|
|
74
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
75
|
-
_EXTRACT_STR: __EXTRACT_STR_IDENT_FLAG__,
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
if (processorName) { }
|
|
80
|
-
else {
|
|
81
|
-
hasDefaultDataProcessorExecuted = true;
|
|
82
|
-
}
|
|
83
|
-
return r;
|
|
84
|
-
};
|
|
41
|
+
globalThis.processData = createProcessData(dataProcessorDefinition);
|
|
85
42
|
};
|
|
86
43
|
lynx.registerDataProcessors();
|
|
87
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../../src/element-template/lynx/env.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../../src/element-template/lynx/env.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,yEAAyE;AACzE,0DAA0D;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAGvE,MAAM,UAAU,YAAY;IAC1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,IA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AC;IAChC,CAAC;AACH,CAAC"}
|
|
@@ -97,11 +97,12 @@ export class ListUpdateInfoRecording {
|
|
|
97
97
|
let j = 0;
|
|
98
98
|
for (let i = 0; i < this.oldChildNodes.length; i++, j++) {
|
|
99
99
|
const child = this.oldChildNodes[i];
|
|
100
|
+
const insertedBefore = insertBefore.get(child)?.length ?? 0;
|
|
100
101
|
if (platformInfoUpdate.has(child)) {
|
|
101
102
|
updates.push({
|
|
102
103
|
...platformInfoUpdate.get(child),
|
|
103
|
-
from: +j,
|
|
104
|
-
to: +j,
|
|
104
|
+
from: +j + insertedBefore,
|
|
105
|
+
to: +j + insertedBefore,
|
|
105
106
|
// no flush
|
|
106
107
|
flush: false,
|
|
107
108
|
type: child.type,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listUpdateInfo.js","sourceRoot":"","sources":["../../../src/snapshot/list/listUpdateInfo.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,yEAAyE;AACzE,0DAA0D;AAC1D,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAoDxD,MAAM,OAAO,uBAAuB;IACd;IAApB,YAAoB,IAAsB;QAAtB,SAAI,GAAJ,IAAI,CAAkB;QACxC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC;QACrC,uDAAuD;IACzD,CAAC;IAED,+BAA+B;IAC/B,kEAAkE;IAClE,+CAA+C;IAC/C,yDAAyD;IACzD,+BAA+B;IAC/B,+BAA+B;IAC/B,+BAA+B;IAC/B,iCAAiC;IACjC,qCAAqC;IACrC,IAAI;IAEJ,KAAK;QACH,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YAC1B,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,MAA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