@lynx-js/react-canary 0.112.5-canary-20250830-d7d0b9b9 → 0.112.6-canary-20250901-65bacc17
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,6 +1,12 @@
|
|
|
1
1
|
# @lynx-js/react
|
|
2
2
|
|
|
3
|
-
## 0.112.
|
|
3
|
+
## 0.112.6-canary-20250901015836-65bacc17460fac569f35982033b63445b0ea8904
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix `fireEvent` type error in testing library ([#1596](https://github.com/lynx-family/lynx-stack/pull/1596))
|
|
8
|
+
|
|
9
|
+
## 0.112.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-canary",
|
|
3
|
-
"version": "0.112.
|
|
3
|
+
"version": "0.112.6-canary-20250901-65bacc17",
|
|
4
4
|
"description": "ReactLynx is a framework for developing Lynx applications with familiar React.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -324,7 +324,7 @@ options?: {EventType?: string; defaultInit?: {}},
|
|
|
324
324
|
) => Event
|
|
325
325
|
|
|
326
326
|
export declare type CreateObject = {
|
|
327
|
-
[K in
|
|
327
|
+
[K in EventType_2]: (
|
|
328
328
|
element: Document | Element | Window | Node,
|
|
329
329
|
options?: {},
|
|
330
330
|
) => Event
|
|
@@ -348,6 +348,44 @@ export declare type ElementTree = ReturnType<typeof initElementTree>;
|
|
|
348
348
|
declare type ElementTreeGlobals = PickUnderscoreKeys<ElementTree>;
|
|
349
349
|
|
|
350
350
|
export declare type EventType =
|
|
351
|
+
| 'focus'
|
|
352
|
+
| 'blur'
|
|
353
|
+
| 'scroll'
|
|
354
|
+
| 'wheel'
|
|
355
|
+
| 'tap'
|
|
356
|
+
| 'longtap'
|
|
357
|
+
| 'bgload'
|
|
358
|
+
| 'bgerror'
|
|
359
|
+
| 'touchstart'
|
|
360
|
+
| 'touchmove'
|
|
361
|
+
| 'touchcancel'
|
|
362
|
+
| 'touchend'
|
|
363
|
+
| 'longpress'
|
|
364
|
+
| 'transitionstart'
|
|
365
|
+
| 'transitioncancel'
|
|
366
|
+
| 'transitionend'
|
|
367
|
+
| 'animationstart'
|
|
368
|
+
| 'animationiteration'
|
|
369
|
+
| 'animationcancel'
|
|
370
|
+
| 'animationend'
|
|
371
|
+
| 'mousedown'
|
|
372
|
+
| 'mouseup'
|
|
373
|
+
| 'mousemove'
|
|
374
|
+
| 'mouseclick'
|
|
375
|
+
| 'mousedblclick'
|
|
376
|
+
| 'mouselongpress'
|
|
377
|
+
| 'keydown'
|
|
378
|
+
| 'keyup'
|
|
379
|
+
| 'layoutchange'
|
|
380
|
+
| 'scrolltoupper'
|
|
381
|
+
| 'scrolltolower'
|
|
382
|
+
| 'scrollend'
|
|
383
|
+
| 'contentsizechanged'
|
|
384
|
+
| 'scrolltoupperedge'
|
|
385
|
+
| 'scrolltoloweredge'
|
|
386
|
+
| 'scrolltonormalstate';
|
|
387
|
+
|
|
388
|
+
declare type EventType_2 =
|
|
351
389
|
| 'copy'
|
|
352
390
|
| 'cut'
|
|
353
391
|
| 'paste'
|
|
@@ -571,7 +609,11 @@ event: Event,
|
|
|
571
609
|
) => boolean
|
|
572
610
|
|
|
573
611
|
export declare type FireObject = {
|
|
574
|
-
[K in EventType]:
|
|
612
|
+
[K in EventType]: FireObject_2[EventType_2];
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
declare type FireObject_2 = {
|
|
616
|
+
[K in EventType_2]: (
|
|
575
617
|
element: Document | Element | Window | Node,
|
|
576
618
|
options?: {},
|
|
577
619
|
) => boolean
|
|
@@ -10,9 +10,56 @@
|
|
|
10
10
|
import { queries, Queries, BoundFunction } from '@testing-library/dom';
|
|
11
11
|
import { LynxElement, type ElementTree, type LynxTestingEnv } from '@lynx-js/testing-environment';
|
|
12
12
|
import { act } from 'preact/test-utils';
|
|
13
|
+
import type { EventType, FireFunction, FireObject } from '@testing-library/dom';
|
|
13
14
|
export * from '@testing-library/dom';
|
|
14
15
|
export { ElementTree, LynxTestingEnv, act };
|
|
15
16
|
|
|
17
|
+
declare type LynxEventType =
|
|
18
|
+
| 'focus'
|
|
19
|
+
| 'blur'
|
|
20
|
+
| 'scroll'
|
|
21
|
+
| 'wheel'
|
|
22
|
+
| 'tap'
|
|
23
|
+
| 'longtap'
|
|
24
|
+
| 'bgload'
|
|
25
|
+
| 'bgerror'
|
|
26
|
+
| 'touchstart'
|
|
27
|
+
| 'touchmove'
|
|
28
|
+
| 'touchcancel'
|
|
29
|
+
| 'touchend'
|
|
30
|
+
| 'longpress'
|
|
31
|
+
| 'transitionstart'
|
|
32
|
+
| 'transitioncancel'
|
|
33
|
+
| 'transitionend'
|
|
34
|
+
| 'animationstart'
|
|
35
|
+
| 'animationiteration'
|
|
36
|
+
| 'animationcancel'
|
|
37
|
+
| 'animationend'
|
|
38
|
+
| 'mousedown'
|
|
39
|
+
| 'mouseup'
|
|
40
|
+
| 'mousemove'
|
|
41
|
+
| 'mouseclick'
|
|
42
|
+
| 'mousedblclick'
|
|
43
|
+
| 'mouselongpress'
|
|
44
|
+
| 'keydown'
|
|
45
|
+
| 'keyup'
|
|
46
|
+
| 'layoutchange'
|
|
47
|
+
| 'scrolltoupper'
|
|
48
|
+
| 'scrolltolower'
|
|
49
|
+
| 'scrollend'
|
|
50
|
+
| 'contentsizechanged'
|
|
51
|
+
| 'scrolltoupperedge'
|
|
52
|
+
| 'scrolltoloweredge'
|
|
53
|
+
| 'scrolltonormalstate';
|
|
54
|
+
|
|
55
|
+
declare type LynxFireObject = {
|
|
56
|
+
[K in LynxEventType]: FireObject[EventType];
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
declare const fireEvent: FireFunction & LynxFireObject;
|
|
60
|
+
|
|
61
|
+
export { fireEvent, LynxEventType as EventType, LynxFireObject as FireObject };
|
|
62
|
+
|
|
16
63
|
/**
|
|
17
64
|
* The options for {@link render}.
|
|
18
65
|
*
|