@lynx-js/web-core-canary 0.18.2-canary-20251030-53eed0a5 → 0.18.2
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 +31 -31
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# @lynx-js/web-core
|
|
2
2
|
|
|
3
|
-
## 0.18.2
|
|
3
|
+
## 0.18.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- feat: builtinTagTransformMap add `'input': 'x-input'` ([#1907](https://github.com/lynx-family/lynx-stack/pull/1907))
|
|
8
8
|
|
|
9
9
|
- Updated dependencies []:
|
|
10
|
-
- @lynx-js/web-constants@0.18.2
|
|
11
|
-
- @lynx-js/web-mainthread-apis@0.18.2
|
|
12
|
-
- @lynx-js/web-worker-rpc@0.18.2
|
|
13
|
-
- @lynx-js/web-worker-runtime@0.18.2
|
|
10
|
+
- @lynx-js/web-constants@0.18.2
|
|
11
|
+
- @lynx-js/web-mainthread-apis@0.18.2
|
|
12
|
+
- @lynx-js/web-worker-rpc@0.18.2
|
|
13
|
+
- @lynx-js/web-worker-runtime@0.18.2
|
|
14
14
|
|
|
15
15
|
## 0.18.1
|
|
16
16
|
|
|
@@ -380,25 +380,25 @@
|
|
|
380
380
|
lynxView.initI18nResources = [
|
|
381
381
|
{
|
|
382
382
|
options: {
|
|
383
|
-
locale:
|
|
384
|
-
channel:
|
|
385
|
-
fallback_url:
|
|
383
|
+
locale: 'en',
|
|
384
|
+
channel: '1',
|
|
385
|
+
fallback_url: '',
|
|
386
386
|
},
|
|
387
387
|
resource: {
|
|
388
|
-
hello:
|
|
389
|
-
lynx:
|
|
388
|
+
hello: 'hello',
|
|
389
|
+
lynx: 'lynx web platform1',
|
|
390
390
|
},
|
|
391
391
|
},
|
|
392
392
|
];
|
|
393
|
-
lynxView.addEventListener(
|
|
393
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
394
394
|
console.log(e);
|
|
395
395
|
});
|
|
396
396
|
|
|
397
397
|
// mts
|
|
398
398
|
_I18nResourceTranslation({
|
|
399
|
-
locale:
|
|
400
|
-
channel:
|
|
401
|
-
fallback_url:
|
|
399
|
+
locale: 'en',
|
|
400
|
+
channel: '1',
|
|
401
|
+
fallback_url: '',
|
|
402
402
|
});
|
|
403
403
|
```
|
|
404
404
|
|
|
@@ -806,8 +806,8 @@
|
|
|
806
806
|
}
|
|
807
807
|
};`,
|
|
808
808
|
],
|
|
809
|
-
{ type:
|
|
810
|
-
)
|
|
809
|
+
{ type: 'text/javascript' },
|
|
810
|
+
),
|
|
811
811
|
),
|
|
812
812
|
};
|
|
813
813
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -922,8 +922,8 @@
|
|
|
922
922
|
};
|
|
923
923
|
};`,
|
|
924
924
|
],
|
|
925
|
-
{ type:
|
|
926
|
-
)
|
|
925
|
+
{ type: 'text/javascript' },
|
|
926
|
+
),
|
|
927
927
|
);
|
|
928
928
|
|
|
929
929
|
const color_methods = URL.createObjectURL(
|
|
@@ -938,8 +938,8 @@
|
|
|
938
938
|
};
|
|
939
939
|
};`,
|
|
940
940
|
],
|
|
941
|
-
{ type:
|
|
942
|
-
)
|
|
941
|
+
{ type: 'text/javascript' },
|
|
942
|
+
),
|
|
943
943
|
);
|
|
944
944
|
|
|
945
945
|
lynxView.napiModuleMap = {
|
|
@@ -956,7 +956,7 @@
|
|
|
956
956
|
|
|
957
957
|
```js
|
|
958
958
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
959
|
-
if (name ===
|
|
959
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
960
960
|
return data.color;
|
|
961
961
|
}
|
|
962
962
|
};
|
|
@@ -1035,8 +1035,8 @@
|
|
|
1035
1035
|
}
|
|
1036
1036
|
};`,
|
|
1037
1037
|
],
|
|
1038
|
-
{ type:
|
|
1039
|
-
)
|
|
1038
|
+
{ type: 'text/javascript' },
|
|
1039
|
+
),
|
|
1040
1040
|
);
|
|
1041
1041
|
```
|
|
1042
1042
|
|
|
@@ -1048,7 +1048,7 @@
|
|
|
1048
1048
|
|
|
1049
1049
|
```js
|
|
1050
1050
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
1051
|
-
if (name ===
|
|
1051
|
+
if (name === 'getColor') {
|
|
1052
1052
|
callback(data.color);
|
|
1053
1053
|
}
|
|
1054
1054
|
};
|
|
@@ -1058,7 +1058,7 @@
|
|
|
1058
1058
|
|
|
1059
1059
|
```js
|
|
1060
1060
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
1061
|
-
if (name ===
|
|
1061
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
1062
1062
|
return data.color;
|
|
1063
1063
|
}
|
|
1064
1064
|
};
|
|
@@ -1416,7 +1416,7 @@
|
|
|
1416
1416
|
This flag changes the behaviour of cascading. It provide a way to do this
|
|
1417
1417
|
|
|
1418
1418
|
```jsx
|
|
1419
|
-
<view class=
|
|
1419
|
+
<view class='class-a class-b' />;
|
|
1420
1420
|
```
|
|
1421
1421
|
|
|
1422
1422
|
The class-b will override (cascading) styles of class-a.
|
|
@@ -1516,11 +1516,11 @@
|
|
|
1516
1516
|
There is also a simple way to use this feature
|
|
1517
1517
|
|
|
1518
1518
|
```javascript
|
|
1519
|
-
import { LynxCard } from
|
|
1520
|
-
import { loadElement } from
|
|
1521
|
-
import
|
|
1522
|
-
import
|
|
1523
|
-
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';
|
|
1524
1524
|
|
|
1525
1525
|
const lynxcard = new LynxCard({
|
|
1526
1526
|
...beforeConfigs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-canary",
|
|
3
|
-
"version": "0.18.2
|
|
3
|
+
"version": "0.18.2",
|
|
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.2
|
|
29
|
-
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.2
|
|
30
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.2
|
|
31
|
-
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.2
|
|
28
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.2",
|
|
29
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.2",
|
|
30
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.2",
|
|
31
|
+
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@lynx-js/lynx-core": "0.1.3",
|