@lynx-js/web-mainthread-apis-canary 0.18.2-canary-20251030-53eed0a5 → 0.18.3-canary-20251103-fece7d0a
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 +13 -3
- package/dist/utils/createCrossThreadEvent.js +8 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
# @lynx-js/web-mainthread-apis
|
|
2
2
|
|
|
3
|
-
## 0.18.
|
|
3
|
+
## 0.18.3-canary-20251103115041-fece7d0a92fa76948488373757a27dff52a90437
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: The `e.detail` in the `bindtap` callback needs to correctly include `x` and `y`. ([#1913](https://github.com/lynx-family/lynx-stack/pull/1913))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @lynx-js/web-constants@0.18.3-canary-20251103115041-fece7d0a92fa76948488373757a27dff52a90437
|
|
11
|
+
- @lynx-js/web-style-transformer@0.18.3-canary-20251103115041-fece7d0a92fa76948488373757a27dff52a90437
|
|
12
|
+
|
|
13
|
+
## 0.18.2
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
6
16
|
|
|
7
17
|
- Updated dependencies []:
|
|
8
|
-
- @lynx-js/web-constants@0.18.2
|
|
9
|
-
- @lynx-js/web-style-transformer@0.18.2
|
|
18
|
+
- @lynx-js/web-constants@0.18.2
|
|
19
|
+
- @lynx-js/web-style-transformer@0.18.2
|
|
10
20
|
|
|
11
21
|
## 0.18.1
|
|
12
22
|
|
|
@@ -23,6 +23,7 @@ export function createCrossThreadEvent(domEvent, eventName) {
|
|
|
23
23
|
const params = {};
|
|
24
24
|
const isTrusted = domEvent.isTrusted;
|
|
25
25
|
const otherProperties = {};
|
|
26
|
+
let detail = domEvent.detail ?? {};
|
|
26
27
|
if (type.match(/^transition/)) {
|
|
27
28
|
Object.assign(params, {
|
|
28
29
|
'animation_type': 'keyframe-animation',
|
|
@@ -65,6 +66,12 @@ export function createCrossThreadEvent(domEvent, eventName) {
|
|
|
65
66
|
clientY: mouseEvent.clientY,
|
|
66
67
|
});
|
|
67
68
|
}
|
|
69
|
+
else if (type === 'click') {
|
|
70
|
+
detail = {
|
|
71
|
+
x: domEvent.x,
|
|
72
|
+
y: domEvent.y,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
68
75
|
const currentTargetDatasetString = currentTargetElement?.getAttribute(lynxDatasetAttribute);
|
|
69
76
|
const currentTargetDataset = currentTargetDatasetString
|
|
70
77
|
? JSON.parse(decodeURIComponent(currentTargetDatasetString))
|
|
@@ -89,7 +96,7 @@ export function createCrossThreadEvent(domEvent, eventName) {
|
|
|
89
96
|
}
|
|
90
97
|
: null,
|
|
91
98
|
// @ts-expect-error
|
|
92
|
-
detail
|
|
99
|
+
detail,
|
|
93
100
|
params,
|
|
94
101
|
...otherProperties,
|
|
95
102
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-mainthread-apis-canary",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.3-canary-20251103-fece7d0a",
|
|
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.
|
|
28
|
-
"@lynx-js/web-style-transformer": "npm:@lynx-js/web-style-transformer-canary@0.18.
|
|
27
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.3-canary-20251103-fece7d0a",
|
|
28
|
+
"@lynx-js/web-style-transformer": "npm:@lynx-js/web-style-transformer-canary@0.18.3-canary-20251103-fece7d0a",
|
|
29
29
|
"hyphenate-style-name": "^1.1.0"
|
|
30
30
|
}
|
|
31
31
|
}
|