@lynx-js/web-mainthread-apis-canary 0.18.2 → 0.18.3-canary-20251104-e7d186a6
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 +19 -9
- package/dist/utils/createCrossThreadEvent.js +8 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @lynx-js/web-mainthread-apis
|
|
2
2
|
|
|
3
|
+
## 0.18.3-canary-20251104063141-e7d186a6fcf08fecf18b5ab82b004b955bb1a2b3
|
|
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-20251104063141-e7d186a6fcf08fecf18b5ab82b004b955bb1a2b3
|
|
11
|
+
- @lynx-js/web-style-transformer@0.18.3-canary-20251104063141-e7d186a6fcf08fecf18b5ab82b004b955bb1a2b3
|
|
12
|
+
|
|
3
13
|
## 0.18.2
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -286,25 +296,25 @@
|
|
|
286
296
|
lynxView.initI18nResources = [
|
|
287
297
|
{
|
|
288
298
|
options: {
|
|
289
|
-
locale:
|
|
290
|
-
channel:
|
|
291
|
-
fallback_url:
|
|
299
|
+
locale: "en",
|
|
300
|
+
channel: "1",
|
|
301
|
+
fallback_url: "",
|
|
292
302
|
},
|
|
293
303
|
resource: {
|
|
294
|
-
hello:
|
|
295
|
-
lynx:
|
|
304
|
+
hello: "hello",
|
|
305
|
+
lynx: "lynx web platform1",
|
|
296
306
|
},
|
|
297
307
|
},
|
|
298
308
|
];
|
|
299
|
-
lynxView.addEventListener(
|
|
309
|
+
lynxView.addEventListener("i18nResourceMissed", (e) => {
|
|
300
310
|
console.log(e);
|
|
301
311
|
});
|
|
302
312
|
|
|
303
313
|
// mts
|
|
304
314
|
_I18nResourceTranslation({
|
|
305
|
-
locale:
|
|
306
|
-
channel:
|
|
307
|
-
fallback_url:
|
|
315
|
+
locale: "en",
|
|
316
|
+
channel: "1",
|
|
317
|
+
fallback_url: "",
|
|
308
318
|
});
|
|
309
319
|
```
|
|
310
320
|
|
|
@@ -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-20251104-e7d186a6",
|
|
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-20251104-e7d186a6",
|
|
28
|
+
"@lynx-js/web-style-transformer": "npm:@lynx-js/web-style-transformer-canary@0.18.3-canary-20251104-e7d186a6",
|
|
29
29
|
"hyphenate-style-name": "^1.1.0"
|
|
30
30
|
}
|
|
31
31
|
}
|