@lynx-js/web-core-server-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 +11 -9
- package/dist/index.js +6 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @lynx-js/web-core-server
|
|
2
2
|
|
|
3
|
+
## 0.18.3-canary-20251104063141-e7d186a6fcf08fecf18b5ab82b004b955bb1a2b3
|
|
4
|
+
|
|
3
5
|
## 0.18.2
|
|
4
6
|
|
|
5
7
|
### Patch Changes
|
|
@@ -119,25 +121,25 @@
|
|
|
119
121
|
lynxView.initI18nResources = [
|
|
120
122
|
{
|
|
121
123
|
options: {
|
|
122
|
-
locale:
|
|
123
|
-
channel:
|
|
124
|
-
fallback_url:
|
|
124
|
+
locale: "en",
|
|
125
|
+
channel: "1",
|
|
126
|
+
fallback_url: "",
|
|
125
127
|
},
|
|
126
128
|
resource: {
|
|
127
|
-
hello:
|
|
128
|
-
lynx:
|
|
129
|
+
hello: "hello",
|
|
130
|
+
lynx: "lynx web platform1",
|
|
129
131
|
},
|
|
130
132
|
},
|
|
131
133
|
];
|
|
132
|
-
lynxView.addEventListener(
|
|
134
|
+
lynxView.addEventListener("i18nResourceMissed", (e) => {
|
|
133
135
|
console.log(e);
|
|
134
136
|
});
|
|
135
137
|
|
|
136
138
|
// mts
|
|
137
139
|
_I18nResourceTranslation({
|
|
138
|
-
locale:
|
|
139
|
-
channel:
|
|
140
|
-
fallback_url:
|
|
140
|
+
locale: "en",
|
|
141
|
+
channel: "1",
|
|
142
|
+
fallback_url: "",
|
|
141
143
|
});
|
|
142
144
|
```
|
|
143
145
|
|
package/dist/index.js
CHANGED
|
@@ -1275,6 +1275,7 @@ function createCrossThreadEvent(domEvent, eventName) {
|
|
|
1275
1275
|
const params = {};
|
|
1276
1276
|
const isTrusted = domEvent.isTrusted;
|
|
1277
1277
|
const otherProperties = {};
|
|
1278
|
+
let detail = domEvent.detail ?? {};
|
|
1278
1279
|
if (type.match(/^transition/)) Object.assign(params, {
|
|
1279
1280
|
animation_type: 'keyframe-animation',
|
|
1280
1281
|
animation_name: domEvent.propertyName,
|
|
@@ -1313,7 +1314,10 @@ function createCrossThreadEvent(domEvent, eventName) {
|
|
|
1313
1314
|
clientX: mouseEvent.clientX,
|
|
1314
1315
|
clientY: mouseEvent.clientY
|
|
1315
1316
|
});
|
|
1316
|
-
}
|
|
1317
|
+
} else if ('click' === type) detail = {
|
|
1318
|
+
x: domEvent.x,
|
|
1319
|
+
y: domEvent.y
|
|
1320
|
+
};
|
|
1317
1321
|
const currentTargetDatasetString = currentTargetElement?.getAttribute("l-dset");
|
|
1318
1322
|
const currentTargetDataset = currentTargetDatasetString ? JSON.parse(decodeURIComponent(currentTargetDatasetString)) : {};
|
|
1319
1323
|
const targetDatasetString = targetElement.getAttribute("l-dset");
|
|
@@ -1331,7 +1335,7 @@ function createCrossThreadEvent(domEvent, eventName) {
|
|
|
1331
1335
|
dataset: currentTargetDataset,
|
|
1332
1336
|
uniqueId: Number(currentTargetElement.getAttribute("l-uid"))
|
|
1333
1337
|
} : null,
|
|
1334
|
-
detail
|
|
1338
|
+
detail,
|
|
1335
1339
|
params,
|
|
1336
1340
|
...otherProperties
|
|
1337
1341
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-server-canary",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.3-canary-20251104-e7d186a6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"rsbuild-plugin-arethetypeswrong": "0.1.1",
|
|
27
27
|
"rsbuild-plugin-publint": "0.3.3",
|
|
28
|
-
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.2",
|
|
29
28
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4",
|
|
30
|
-
"@lynx-js/web-
|
|
31
|
-
"@lynx-js/web-
|
|
32
|
-
"@lynx-js/web-
|
|
29
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.3-canary-20251104-e7d186a6",
|
|
30
|
+
"@lynx-js/web-elements-template": "npm:@lynx-js/web-elements-template-canary@0.8.10-canary-20251104-e7d186a6",
|
|
31
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.3-canary-20251104-e7d186a6",
|
|
32
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.3-canary-20251104-e7d186a6"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "rslib build",
|