@lynx-js/web-core-canary 0.18.1 → 0.18.2-canary-20251030-53eed0a5
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 +38 -26
- package/dist/apis/LynxView.js +1 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @lynx-js/web-core
|
|
2
2
|
|
|
3
|
+
## 0.18.2-canary-20251030071334-53eed0a562fb32455214a94d198f1516cb4359eb
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: builtinTagTransformMap add `'input': 'x-input'` ([#1907](https://github.com/lynx-family/lynx-stack/pull/1907))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @lynx-js/web-constants@0.18.2-canary-20251030071334-53eed0a562fb32455214a94d198f1516cb4359eb
|
|
11
|
+
- @lynx-js/web-mainthread-apis@0.18.2-canary-20251030071334-53eed0a562fb32455214a94d198f1516cb4359eb
|
|
12
|
+
- @lynx-js/web-worker-rpc@0.18.2-canary-20251030071334-53eed0a562fb32455214a94d198f1516cb4359eb
|
|
13
|
+
- @lynx-js/web-worker-runtime@0.18.2-canary-20251030071334-53eed0a562fb32455214a94d198f1516cb4359eb
|
|
14
|
+
|
|
3
15
|
## 0.18.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -368,25 +380,25 @@
|
|
|
368
380
|
lynxView.initI18nResources = [
|
|
369
381
|
{
|
|
370
382
|
options: {
|
|
371
|
-
locale:
|
|
372
|
-
channel:
|
|
373
|
-
fallback_url:
|
|
383
|
+
locale: "en",
|
|
384
|
+
channel: "1",
|
|
385
|
+
fallback_url: "",
|
|
374
386
|
},
|
|
375
387
|
resource: {
|
|
376
|
-
hello:
|
|
377
|
-
lynx:
|
|
388
|
+
hello: "hello",
|
|
389
|
+
lynx: "lynx web platform1",
|
|
378
390
|
},
|
|
379
391
|
},
|
|
380
392
|
];
|
|
381
|
-
lynxView.addEventListener(
|
|
393
|
+
lynxView.addEventListener("i18nResourceMissed", (e) => {
|
|
382
394
|
console.log(e);
|
|
383
395
|
});
|
|
384
396
|
|
|
385
397
|
// mts
|
|
386
398
|
_I18nResourceTranslation({
|
|
387
|
-
locale:
|
|
388
|
-
channel:
|
|
389
|
-
fallback_url:
|
|
399
|
+
locale: "en",
|
|
400
|
+
channel: "1",
|
|
401
|
+
fallback_url: "",
|
|
390
402
|
});
|
|
391
403
|
```
|
|
392
404
|
|
|
@@ -794,8 +806,8 @@
|
|
|
794
806
|
}
|
|
795
807
|
};`,
|
|
796
808
|
],
|
|
797
|
-
{ type:
|
|
798
|
-
)
|
|
809
|
+
{ type: "text/javascript" }
|
|
810
|
+
)
|
|
799
811
|
),
|
|
800
812
|
};
|
|
801
813
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -910,8 +922,8 @@
|
|
|
910
922
|
};
|
|
911
923
|
};`,
|
|
912
924
|
],
|
|
913
|
-
{ type:
|
|
914
|
-
)
|
|
925
|
+
{ type: "text/javascript" }
|
|
926
|
+
)
|
|
915
927
|
);
|
|
916
928
|
|
|
917
929
|
const color_methods = URL.createObjectURL(
|
|
@@ -926,8 +938,8 @@
|
|
|
926
938
|
};
|
|
927
939
|
};`,
|
|
928
940
|
],
|
|
929
|
-
{ type:
|
|
930
|
-
)
|
|
941
|
+
{ type: "text/javascript" }
|
|
942
|
+
)
|
|
931
943
|
);
|
|
932
944
|
|
|
933
945
|
lynxView.napiModuleMap = {
|
|
@@ -944,7 +956,7 @@
|
|
|
944
956
|
|
|
945
957
|
```js
|
|
946
958
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
947
|
-
if (name ===
|
|
959
|
+
if (name === "getColor" && moduleName === "color_methods") {
|
|
948
960
|
return data.color;
|
|
949
961
|
}
|
|
950
962
|
};
|
|
@@ -1023,8 +1035,8 @@
|
|
|
1023
1035
|
}
|
|
1024
1036
|
};`,
|
|
1025
1037
|
],
|
|
1026
|
-
{ type:
|
|
1027
|
-
)
|
|
1038
|
+
{ type: "text/javascript" }
|
|
1039
|
+
)
|
|
1028
1040
|
);
|
|
1029
1041
|
```
|
|
1030
1042
|
|
|
@@ -1036,7 +1048,7 @@
|
|
|
1036
1048
|
|
|
1037
1049
|
```js
|
|
1038
1050
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
1039
|
-
if (name ===
|
|
1051
|
+
if (name === "getColor") {
|
|
1040
1052
|
callback(data.color);
|
|
1041
1053
|
}
|
|
1042
1054
|
};
|
|
@@ -1046,7 +1058,7 @@
|
|
|
1046
1058
|
|
|
1047
1059
|
```js
|
|
1048
1060
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
1049
|
-
if (name ===
|
|
1061
|
+
if (name === "getColor" && moduleName === "bridge") {
|
|
1050
1062
|
return data.color;
|
|
1051
1063
|
}
|
|
1052
1064
|
};
|
|
@@ -1404,7 +1416,7 @@
|
|
|
1404
1416
|
This flag changes the behaviour of cascading. It provide a way to do this
|
|
1405
1417
|
|
|
1406
1418
|
```jsx
|
|
1407
|
-
<view class=
|
|
1419
|
+
<view class="class-a class-b" />
|
|
1408
1420
|
```
|
|
1409
1421
|
|
|
1410
1422
|
The class-b will override (cascading) styles of class-a.
|
|
@@ -1504,11 +1516,11 @@
|
|
|
1504
1516
|
There is also a simple way to use this feature
|
|
1505
1517
|
|
|
1506
1518
|
```javascript
|
|
1507
|
-
import { LynxCard } from
|
|
1508
|
-
import { loadElement } from
|
|
1509
|
-
import
|
|
1510
|
-
import
|
|
1511
|
-
import
|
|
1519
|
+
import { LynxCard } from "@lynx-js/web-core";
|
|
1520
|
+
import { loadElement } from "@lynx-js/web-elements/lazy";
|
|
1521
|
+
import "@lynx-js/web-elements/index.css";
|
|
1522
|
+
import "@lynx-js/web-core/index.css";
|
|
1523
|
+
import "./index.css";
|
|
1512
1524
|
|
|
1513
1525
|
const lynxcard = new LynxCard({
|
|
1514
1526
|
...beforeConfigs,
|
package/dist/apis/LynxView.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-canary",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2-canary-20251030-53eed0a5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -25,10 +25,10 @@
|
|
|
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.18.
|
|
29
|
-
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.
|
|
30
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.
|
|
31
|
-
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.
|
|
28
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.2-canary-20251030-53eed0a5",
|
|
29
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.2-canary-20251030-53eed0a5",
|
|
30
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.2-canary-20251030-53eed0a5",
|
|
31
|
+
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.2-canary-20251030-53eed0a5"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@lynx-js/lynx-core": "0.1.3",
|