@lynx-js/react 0.123.0 → 0.123.1
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 +10 -0
- package/components/lib/DeferredListItem.d.ts +8 -2
- package/components/lib/DeferredListItem.jsx.map +1 -1
- package/components/src/DeferredListItem.tsx +7 -2
- package/package.json +4 -4
- package/refresh/dist/index.js +4 -2
- package/runtime/lib/index.d.ts +1 -0
- package/runtime/lib/index.js.map +1 -1
- package/runtime/lib/snapshot/lynx/element.d.ts +28 -5
- package/runtime/lib/snapshot/lynx/element.js +9 -5
- package/runtime/lib/snapshot/lynx/element.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/list.js +8 -1
- package/runtime/lib/snapshot/snapshot/list.js.map +1 -1
- package/runtime/lib/tsconfig.tsbuildinfo +1 -1
- package/testing-library/dist/index.d.ts +2 -2
- package/testing-library/dist/pure.js +1 -1
- package/testing-library/dist/rstest-config.js +1 -1
- package/transform/dist/wasm.cjs +5 -5
- package/types/react.docs.d.ts +22 -2
- /package/testing-library/dist/{0~@rstest → 0-@rstest}/adapter-rsbuild.js +0 -0
- /package/testing-library/dist/{0~rslib-runtime.js → 0-rslib-runtime.js} +0 -0
|
@@ -761,7 +761,7 @@ declare const initElementTree: () => {
|
|
|
761
761
|
__CreateWrapperElement(parentComponentUniqueId: number): LynxElement;
|
|
762
762
|
__AddInlineStyle(e: HTMLElement, key: number, value: string): void;
|
|
763
763
|
__AppendElement(parent: LynxElement, child: LynxElement): void;
|
|
764
|
-
__SetCSSId(e: LynxElement
|
|
764
|
+
__SetCSSId(e: LynxElement | LynxElement[], id: string, entryName?: string): void;
|
|
765
765
|
__SetAttribute(e: LynxElement, key: string, value: any): void;
|
|
766
766
|
__AddEvent(e: LynxElement, eventType: string, eventName: string, eventHandler: string | Record<string, any>): void;
|
|
767
767
|
__GetEvent(e: LynxElement, eventType: string, eventName: string): {
|
|
@@ -777,7 +777,7 @@ declare const initElementTree: () => {
|
|
|
777
777
|
__RemoveGestureDetector(e: LynxElement, id: number): void;
|
|
778
778
|
__GetDataset(e: LynxElement): DOMStringMap;
|
|
779
779
|
__RemoveElement(parent: LynxElement, child: LynxElement): void;
|
|
780
|
-
__InsertElementBefore(parent: LynxElement, child: LynxElement, ref?: LynxElement
|
|
780
|
+
__InsertElementBefore(parent: LynxElement, child: LynxElement, ref?: LynxElement): void;
|
|
781
781
|
__ReplaceElement(newElement: LynxElement, oldElement: LynxElement): void;
|
|
782
782
|
__FlushElementTree(): void;
|
|
783
783
|
__UpdateListComponents(_list: LynxElement, _components: string[]): void;
|
|
@@ -6,7 +6,7 @@ import { act } from "preact/test-utils";
|
|
|
6
6
|
import { __root } from "@lynx-js/react/internal";
|
|
7
7
|
import { flushDelayedLifecycleEvents } from "../../runtime/lib/snapshot/lynx/tt.js";
|
|
8
8
|
import { clearPage } from "../../runtime/lib/snapshot/index.js";
|
|
9
|
-
import { __webpack_require__ } from "./0
|
|
9
|
+
import { __webpack_require__ } from "./0-rslib-runtime.js";
|
|
10
10
|
__webpack_require__.add({
|
|
11
11
|
"../../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js" (module1) {
|
|
12
12
|
module1.exports = ({ onlyFirst = false } = {})=>{
|
|
@@ -29,7 +29,7 @@ function withLynxConfig(options) {
|
|
|
29
29
|
cwd: options?.rootPath,
|
|
30
30
|
configPath: options?.configPath
|
|
31
31
|
});
|
|
32
|
-
const { toRstestConfig } = await import("./0
|
|
32
|
+
const { toRstestConfig } = await import("./0-@rstest/adapter-rsbuild.js");
|
|
33
33
|
const rstestConfig = toRstestConfig({
|
|
34
34
|
rsbuildConfig: lynxConfig.content
|
|
35
35
|
});
|