@lynx-js/web-core-canary 0.18.3 → 0.18.4-canary-20251111-eee83b60
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.4-canary-20251111085403-eee83b601f4626c0576e376047356906886e5b59
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: builtinTagTransformMap add `'x-input-ng': 'x-input'` ([#1932](https://github.com/lynx-family/lynx-stack/pull/1932))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @lynx-js/web-constants@0.18.4-canary-20251111085403-eee83b601f4626c0576e376047356906886e5b59
|
|
11
|
+
- @lynx-js/web-mainthread-apis@0.18.4-canary-20251111085403-eee83b601f4626c0576e376047356906886e5b59
|
|
12
|
+
- @lynx-js/web-worker-rpc@0.18.4-canary-20251111085403-eee83b601f4626c0576e376047356906886e5b59
|
|
13
|
+
- @lynx-js/web-worker-runtime@0.18.4-canary-20251111085403-eee83b601f4626c0576e376047356906886e5b59
|
|
14
|
+
|
|
3
15
|
## 0.18.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -390,25 +402,25 @@
|
|
|
390
402
|
lynxView.initI18nResources = [
|
|
391
403
|
{
|
|
392
404
|
options: {
|
|
393
|
-
locale:
|
|
394
|
-
channel:
|
|
395
|
-
fallback_url:
|
|
405
|
+
locale: "en",
|
|
406
|
+
channel: "1",
|
|
407
|
+
fallback_url: "",
|
|
396
408
|
},
|
|
397
409
|
resource: {
|
|
398
|
-
hello:
|
|
399
|
-
lynx:
|
|
410
|
+
hello: "hello",
|
|
411
|
+
lynx: "lynx web platform1",
|
|
400
412
|
},
|
|
401
413
|
},
|
|
402
414
|
];
|
|
403
|
-
lynxView.addEventListener(
|
|
415
|
+
lynxView.addEventListener("i18nResourceMissed", (e) => {
|
|
404
416
|
console.log(e);
|
|
405
417
|
});
|
|
406
418
|
|
|
407
419
|
// mts
|
|
408
420
|
_I18nResourceTranslation({
|
|
409
|
-
locale:
|
|
410
|
-
channel:
|
|
411
|
-
fallback_url:
|
|
421
|
+
locale: "en",
|
|
422
|
+
channel: "1",
|
|
423
|
+
fallback_url: "",
|
|
412
424
|
});
|
|
413
425
|
```
|
|
414
426
|
|
|
@@ -816,8 +828,8 @@
|
|
|
816
828
|
}
|
|
817
829
|
};`,
|
|
818
830
|
],
|
|
819
|
-
{ type:
|
|
820
|
-
)
|
|
831
|
+
{ type: "text/javascript" }
|
|
832
|
+
)
|
|
821
833
|
),
|
|
822
834
|
};
|
|
823
835
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -932,8 +944,8 @@
|
|
|
932
944
|
};
|
|
933
945
|
};`,
|
|
934
946
|
],
|
|
935
|
-
{ type:
|
|
936
|
-
)
|
|
947
|
+
{ type: "text/javascript" }
|
|
948
|
+
)
|
|
937
949
|
);
|
|
938
950
|
|
|
939
951
|
const color_methods = URL.createObjectURL(
|
|
@@ -948,8 +960,8 @@
|
|
|
948
960
|
};
|
|
949
961
|
};`,
|
|
950
962
|
],
|
|
951
|
-
{ type:
|
|
952
|
-
)
|
|
963
|
+
{ type: "text/javascript" }
|
|
964
|
+
)
|
|
953
965
|
);
|
|
954
966
|
|
|
955
967
|
lynxView.napiModuleMap = {
|
|
@@ -966,7 +978,7 @@
|
|
|
966
978
|
|
|
967
979
|
```js
|
|
968
980
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
969
|
-
if (name ===
|
|
981
|
+
if (name === "getColor" && moduleName === "color_methods") {
|
|
970
982
|
return data.color;
|
|
971
983
|
}
|
|
972
984
|
};
|
|
@@ -1045,8 +1057,8 @@
|
|
|
1045
1057
|
}
|
|
1046
1058
|
};`,
|
|
1047
1059
|
],
|
|
1048
|
-
{ type:
|
|
1049
|
-
)
|
|
1060
|
+
{ type: "text/javascript" }
|
|
1061
|
+
)
|
|
1050
1062
|
);
|
|
1051
1063
|
```
|
|
1052
1064
|
|
|
@@ -1058,7 +1070,7 @@
|
|
|
1058
1070
|
|
|
1059
1071
|
```js
|
|
1060
1072
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
1061
|
-
if (name ===
|
|
1073
|
+
if (name === "getColor") {
|
|
1062
1074
|
callback(data.color);
|
|
1063
1075
|
}
|
|
1064
1076
|
};
|
|
@@ -1068,7 +1080,7 @@
|
|
|
1068
1080
|
|
|
1069
1081
|
```js
|
|
1070
1082
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
1071
|
-
if (name ===
|
|
1083
|
+
if (name === "getColor" && moduleName === "bridge") {
|
|
1072
1084
|
return data.color;
|
|
1073
1085
|
}
|
|
1074
1086
|
};
|
|
@@ -1426,7 +1438,7 @@
|
|
|
1426
1438
|
This flag changes the behaviour of cascading. It provide a way to do this
|
|
1427
1439
|
|
|
1428
1440
|
```jsx
|
|
1429
|
-
<view class=
|
|
1441
|
+
<view class="class-a class-b" />
|
|
1430
1442
|
```
|
|
1431
1443
|
|
|
1432
1444
|
The class-b will override (cascading) styles of class-a.
|
|
@@ -1526,11 +1538,11 @@
|
|
|
1526
1538
|
There is also a simple way to use this feature
|
|
1527
1539
|
|
|
1528
1540
|
```javascript
|
|
1529
|
-
import { LynxCard } from
|
|
1530
|
-
import { loadElement } from
|
|
1531
|
-
import
|
|
1532
|
-
import
|
|
1533
|
-
import
|
|
1541
|
+
import { LynxCard } from "@lynx-js/web-core";
|
|
1542
|
+
import { loadElement } from "@lynx-js/web-elements/lazy";
|
|
1543
|
+
import "@lynx-js/web-elements/index.css";
|
|
1544
|
+
import "@lynx-js/web-core/index.css";
|
|
1545
|
+
import "./index.css";
|
|
1534
1546
|
|
|
1535
1547
|
const lynxcard = new LynxCard({
|
|
1536
1548
|
...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.4-canary-20251111-eee83b60",
|
|
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.4-canary-20251111-eee83b60",
|
|
29
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.4-canary-20251111-eee83b60",
|
|
30
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.4-canary-20251111-eee83b60",
|
|
31
|
+
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.4-canary-20251111-eee83b60"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@lynx-js/lynx-core": "0.1.3",
|