@lynx-js/web-core-canary 0.19.2 → 0.19.3-canary-20251224-a26be78a
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 +37 -26
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @lynx-js/web-core
|
|
2
2
|
|
|
3
|
+
## 0.19.3-canary-20251224033157-a26be78a7918c8dbf4a8446a82a75901b77bd5e7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`986761d`](https://github.com/lynx-family/lynx-stack/commit/986761dd1e9e631f8118faec68188f29f78e9236), [`e51b080`](https://github.com/lynx-family/lynx-stack/commit/e51b080350101c40fbae8443a23372bd3169c717)]:
|
|
8
|
+
- @lynx-js/web-worker-rpc@0.19.3-canary-20251224033157-a26be78a7918c8dbf4a8446a82a75901b77bd5e7
|
|
9
|
+
- @lynx-js/web-elements@0.9.1-canary-20251224033157-a26be78a7918c8dbf4a8446a82a75901b77bd5e7
|
|
10
|
+
- @lynx-js/web-constants@0.19.3-canary-20251224033157-a26be78a7918c8dbf4a8446a82a75901b77bd5e7
|
|
11
|
+
- @lynx-js/web-worker-runtime@0.19.3-canary-20251224033157-a26be78a7918c8dbf4a8446a82a75901b77bd5e7
|
|
12
|
+
- @lynx-js/web-mainthread-apis@0.19.3-canary-20251224033157-a26be78a7918c8dbf4a8446a82a75901b77bd5e7
|
|
13
|
+
|
|
3
14
|
## 0.19.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -450,25 +461,25 @@
|
|
|
450
461
|
lynxView.initI18nResources = [
|
|
451
462
|
{
|
|
452
463
|
options: {
|
|
453
|
-
locale:
|
|
454
|
-
channel:
|
|
455
|
-
fallback_url:
|
|
464
|
+
locale: "en",
|
|
465
|
+
channel: "1",
|
|
466
|
+
fallback_url: "",
|
|
456
467
|
},
|
|
457
468
|
resource: {
|
|
458
|
-
hello:
|
|
459
|
-
lynx:
|
|
469
|
+
hello: "hello",
|
|
470
|
+
lynx: "lynx web platform1",
|
|
460
471
|
},
|
|
461
472
|
},
|
|
462
473
|
];
|
|
463
|
-
lynxView.addEventListener(
|
|
474
|
+
lynxView.addEventListener("i18nResourceMissed", (e) => {
|
|
464
475
|
console.log(e);
|
|
465
476
|
});
|
|
466
477
|
|
|
467
478
|
// mts
|
|
468
479
|
_I18nResourceTranslation({
|
|
469
|
-
locale:
|
|
470
|
-
channel:
|
|
471
|
-
fallback_url:
|
|
480
|
+
locale: "en",
|
|
481
|
+
channel: "1",
|
|
482
|
+
fallback_url: "",
|
|
472
483
|
});
|
|
473
484
|
```
|
|
474
485
|
|
|
@@ -876,8 +887,8 @@
|
|
|
876
887
|
}
|
|
877
888
|
};`,
|
|
878
889
|
],
|
|
879
|
-
{ type:
|
|
880
|
-
)
|
|
890
|
+
{ type: "text/javascript" }
|
|
891
|
+
)
|
|
881
892
|
),
|
|
882
893
|
};
|
|
883
894
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -992,8 +1003,8 @@
|
|
|
992
1003
|
};
|
|
993
1004
|
};`,
|
|
994
1005
|
],
|
|
995
|
-
{ type:
|
|
996
|
-
)
|
|
1006
|
+
{ type: "text/javascript" }
|
|
1007
|
+
)
|
|
997
1008
|
);
|
|
998
1009
|
|
|
999
1010
|
const color_methods = URL.createObjectURL(
|
|
@@ -1008,8 +1019,8 @@
|
|
|
1008
1019
|
};
|
|
1009
1020
|
};`,
|
|
1010
1021
|
],
|
|
1011
|
-
{ type:
|
|
1012
|
-
)
|
|
1022
|
+
{ type: "text/javascript" }
|
|
1023
|
+
)
|
|
1013
1024
|
);
|
|
1014
1025
|
|
|
1015
1026
|
lynxView.napiModuleMap = {
|
|
@@ -1026,7 +1037,7 @@
|
|
|
1026
1037
|
|
|
1027
1038
|
```js
|
|
1028
1039
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
1029
|
-
if (name ===
|
|
1040
|
+
if (name === "getColor" && moduleName === "color_methods") {
|
|
1030
1041
|
return data.color;
|
|
1031
1042
|
}
|
|
1032
1043
|
};
|
|
@@ -1105,8 +1116,8 @@
|
|
|
1105
1116
|
}
|
|
1106
1117
|
};`,
|
|
1107
1118
|
],
|
|
1108
|
-
{ type:
|
|
1109
|
-
)
|
|
1119
|
+
{ type: "text/javascript" }
|
|
1120
|
+
)
|
|
1110
1121
|
);
|
|
1111
1122
|
```
|
|
1112
1123
|
|
|
@@ -1118,7 +1129,7 @@
|
|
|
1118
1129
|
|
|
1119
1130
|
```js
|
|
1120
1131
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
1121
|
-
if (name ===
|
|
1132
|
+
if (name === "getColor") {
|
|
1122
1133
|
callback(data.color);
|
|
1123
1134
|
}
|
|
1124
1135
|
};
|
|
@@ -1128,7 +1139,7 @@
|
|
|
1128
1139
|
|
|
1129
1140
|
```js
|
|
1130
1141
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
1131
|
-
if (name ===
|
|
1142
|
+
if (name === "getColor" && moduleName === "bridge") {
|
|
1132
1143
|
return data.color;
|
|
1133
1144
|
}
|
|
1134
1145
|
};
|
|
@@ -1486,7 +1497,7 @@
|
|
|
1486
1497
|
This flag changes the behaviour of cascading. It provide a way to do this
|
|
1487
1498
|
|
|
1488
1499
|
```jsx
|
|
1489
|
-
<view class=
|
|
1500
|
+
<view class="class-a class-b" />
|
|
1490
1501
|
```
|
|
1491
1502
|
|
|
1492
1503
|
The class-b will override (cascading) styles of class-a.
|
|
@@ -1586,11 +1597,11 @@
|
|
|
1586
1597
|
There is also a simple way to use this feature
|
|
1587
1598
|
|
|
1588
1599
|
```javascript
|
|
1589
|
-
import { LynxCard } from
|
|
1590
|
-
import { loadElement } from
|
|
1591
|
-
import
|
|
1592
|
-
import
|
|
1593
|
-
import
|
|
1600
|
+
import { LynxCard } from "@lynx-js/web-core";
|
|
1601
|
+
import { loadElement } from "@lynx-js/web-elements/lazy";
|
|
1602
|
+
import "@lynx-js/web-elements/index.css";
|
|
1603
|
+
import "@lynx-js/web-core/index.css";
|
|
1604
|
+
import "./index.css";
|
|
1594
1605
|
|
|
1595
1606
|
const lynxcard = new LynxCard({
|
|
1596
1607
|
...beforeConfigs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-canary",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3-canary-20251224-a26be78a",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4",
|
|
28
|
-
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.
|
|
29
|
-
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.
|
|
30
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.
|
|
31
|
-
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.
|
|
28
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.3-canary-20251224-a26be78a",
|
|
29
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.3-canary-20251224-a26be78a",
|
|
30
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.3-canary-20251224-a26be78a",
|
|
31
|
+
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.3-canary-20251224-a26be78a"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@lynx-js/lynx-core": "0.1.3",
|
|
35
|
-
"@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.9.
|
|
35
|
+
"@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.9.1-canary-20251224-a26be78a"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@lynx-js/lynx-core": "0.1.3",
|