@lynx-js/web-mainthread-apis-canary 0.18.0-canary-20251010-2da147d2 → 0.18.0-canary-20251011-7d90ed52

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,6 @@
1
1
  # @lynx-js/web-mainthread-apis
2
2
 
3
- ## 0.18.0-canary-20251010113641-2da147d28e1ea3e48eeaba4eac9923e0285300d4
3
+ ## 0.18.0-canary-20251011064323-7d90ed52a20fd7665a3517507800e7e29426f6f9
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-20251010113641-2da147d28e1ea3e48eeaba4eac9923e0285300d4
19
- - @lynx-js/web-style-transformer@0.18.0-canary-20251010113641-2da147d28e1ea3e48eeaba4eac9923e0285300d4
20
+ - @lynx-js/web-constants@0.18.0-canary-20251011064323-7d90ed52a20fd7665a3517507800e7e29426f6f9
21
+ - @lynx-js/web-style-transformer@0.18.0-canary-20251011064323-7d90ed52a20fd7665a3517507800e7e29426f6f9
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-20251010-2da147d2",
3
+ "version": "0.18.0-canary-20251011-7d90ed52",
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-20251010-2da147d2",
28
- "@lynx-js/web-style-transformer": "npm:@lynx-js/web-style-transformer-canary@0.18.0-canary-20251010-2da147d2",
27
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.0-canary-20251011-7d90ed52",
28
+ "@lynx-js/web-style-transformer": "npm:@lynx-js/web-style-transformer-canary@0.18.0-canary-20251011-7d90ed52",
29
29
  "hyphenate-style-name": "^1.1.0"
30
30
  }
31
31
  }