@lynx-js/web-mainthread-apis-canary 0.18.0-canary-20251010-e21c4e23 → 0.18.0-canary-20251011-85a8b583
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 +5 -3
- package/dist/utils/createCrossThreadEvent.js +13 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/web-mainthread-apis
|
|
2
2
|
|
|
3
|
-
## 0.18.0-canary-
|
|
3
|
+
## 0.18.0-canary-20251011065116-85a8b583620e624e5037cf85b54219ffc762d1a5
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
LynxView.updateData(data: Cloneable, processorName?: string | undefined, callback?: (() => void) | undefined): void
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
- feat: mouse event output structures remain aligned ([#1820](https://github.com/lynx-family/lynx-stack/pull/1820))
|
|
18
|
+
|
|
17
19
|
- Updated dependencies [[`77397fd`](https://github.com/lynx-family/lynx-stack/commit/77397fd535cf60556f8f82f7ef8dae8a623d1625)]:
|
|
18
|
-
- @lynx-js/web-constants@0.18.0-canary-
|
|
19
|
-
- @lynx-js/web-style-transformer@0.18.0-canary-
|
|
20
|
+
- @lynx-js/web-constants@0.18.0-canary-20251011065116-85a8b583620e624e5037cf85b54219ffc762d1a5
|
|
21
|
+
- @lynx-js/web-style-transformer@0.18.0-canary-20251011065116-85a8b583620e624e5037cf85b54219ffc762d1a5
|
|
20
22
|
|
|
21
23
|
## 0.17.2
|
|
22
24
|
|
|
@@ -52,6 +52,19 @@ export function createCrossThreadEvent(domEvent, eventName) {
|
|
|
52
52
|
: changedTouches,
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
+
else if (type.startsWith('mouse')) {
|
|
56
|
+
const mouseEvent = domEvent;
|
|
57
|
+
Object.assign(otherProperties, {
|
|
58
|
+
button: mouseEvent.button,
|
|
59
|
+
buttons: mouseEvent.buttons,
|
|
60
|
+
x: mouseEvent.x,
|
|
61
|
+
y: mouseEvent.y,
|
|
62
|
+
pageX: mouseEvent.pageX,
|
|
63
|
+
pageY: mouseEvent.pageY,
|
|
64
|
+
clientX: mouseEvent.clientX,
|
|
65
|
+
clientY: mouseEvent.clientY,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
55
68
|
const currentTargetDatasetString = currentTargetElement?.getAttribute(lynxDatasetAttribute);
|
|
56
69
|
const currentTargetDataset = currentTargetDatasetString
|
|
57
70
|
? JSON.parse(decodeURIComponent(currentTargetDatasetString))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-mainthread-apis-canary",
|
|
3
|
-
"version": "0.18.0-canary-
|
|
3
|
+
"version": "0.18.0-canary-20251011-85a8b583",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"**/*.css"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.0-canary-
|
|
28
|
-
"@lynx-js/web-style-transformer": "npm:@lynx-js/web-style-transformer-canary@0.18.0-canary-
|
|
27
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.0-canary-20251011-85a8b583",
|
|
28
|
+
"@lynx-js/web-style-transformer": "npm:@lynx-js/web-style-transformer-canary@0.18.0-canary-20251011-85a8b583",
|
|
29
29
|
"hyphenate-style-name": "^1.1.0"
|
|
30
30
|
}
|
|
31
31
|
}
|