@lynx-js/web-core-canary 0.19.0-canary-20251205-6400f87b → 0.19.0
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 +32 -33
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/web-core
|
|
2
2
|
|
|
3
|
-
## 0.19.0
|
|
3
|
+
## 0.19.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -8,12 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
|
-
- Updated dependencies [[`
|
|
12
|
-
- @lynx-js/web-
|
|
13
|
-
- @lynx-js/web-
|
|
14
|
-
- @lynx-js/web-
|
|
15
|
-
- @lynx-js/web-
|
|
16
|
-
- @lynx-js/web-worker-rpc@0.19.0-canary-20251205074811-6400f87b9b0370e5fe53ce37711d45932fede695
|
|
11
|
+
- Updated dependencies [[`40c3a1a`](https://github.com/lynx-family/lynx-stack/commit/40c3a1a0436701e46b505301c4ba66a8f68de7c0), [`46bd5ee`](https://github.com/lynx-family/lynx-stack/commit/46bd5eea324d0c8348f44b3d0b437e745411ab5c)]:
|
|
12
|
+
- @lynx-js/web-mainthread-apis@0.19.0
|
|
13
|
+
- @lynx-js/web-worker-runtime@0.19.0
|
|
14
|
+
- @lynx-js/web-constants@0.19.0
|
|
15
|
+
- @lynx-js/web-worker-rpc@0.19.0
|
|
17
16
|
|
|
18
17
|
## 0.18.4
|
|
19
18
|
|
|
@@ -417,25 +416,25 @@
|
|
|
417
416
|
lynxView.initI18nResources = [
|
|
418
417
|
{
|
|
419
418
|
options: {
|
|
420
|
-
locale:
|
|
421
|
-
channel:
|
|
422
|
-
fallback_url:
|
|
419
|
+
locale: 'en',
|
|
420
|
+
channel: '1',
|
|
421
|
+
fallback_url: '',
|
|
423
422
|
},
|
|
424
423
|
resource: {
|
|
425
|
-
hello:
|
|
426
|
-
lynx:
|
|
424
|
+
hello: 'hello',
|
|
425
|
+
lynx: 'lynx web platform1',
|
|
427
426
|
},
|
|
428
427
|
},
|
|
429
428
|
];
|
|
430
|
-
lynxView.addEventListener(
|
|
429
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
431
430
|
console.log(e);
|
|
432
431
|
});
|
|
433
432
|
|
|
434
433
|
// mts
|
|
435
434
|
_I18nResourceTranslation({
|
|
436
|
-
locale:
|
|
437
|
-
channel:
|
|
438
|
-
fallback_url:
|
|
435
|
+
locale: 'en',
|
|
436
|
+
channel: '1',
|
|
437
|
+
fallback_url: '',
|
|
439
438
|
});
|
|
440
439
|
```
|
|
441
440
|
|
|
@@ -843,8 +842,8 @@
|
|
|
843
842
|
}
|
|
844
843
|
};`,
|
|
845
844
|
],
|
|
846
|
-
{ type:
|
|
847
|
-
)
|
|
845
|
+
{ type: 'text/javascript' },
|
|
846
|
+
),
|
|
848
847
|
),
|
|
849
848
|
};
|
|
850
849
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -959,8 +958,8 @@
|
|
|
959
958
|
};
|
|
960
959
|
};`,
|
|
961
960
|
],
|
|
962
|
-
{ type:
|
|
963
|
-
)
|
|
961
|
+
{ type: 'text/javascript' },
|
|
962
|
+
),
|
|
964
963
|
);
|
|
965
964
|
|
|
966
965
|
const color_methods = URL.createObjectURL(
|
|
@@ -975,8 +974,8 @@
|
|
|
975
974
|
};
|
|
976
975
|
};`,
|
|
977
976
|
],
|
|
978
|
-
{ type:
|
|
979
|
-
)
|
|
977
|
+
{ type: 'text/javascript' },
|
|
978
|
+
),
|
|
980
979
|
);
|
|
981
980
|
|
|
982
981
|
lynxView.napiModuleMap = {
|
|
@@ -993,7 +992,7 @@
|
|
|
993
992
|
|
|
994
993
|
```js
|
|
995
994
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
996
|
-
if (name ===
|
|
995
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
997
996
|
return data.color;
|
|
998
997
|
}
|
|
999
998
|
};
|
|
@@ -1072,8 +1071,8 @@
|
|
|
1072
1071
|
}
|
|
1073
1072
|
};`,
|
|
1074
1073
|
],
|
|
1075
|
-
{ type:
|
|
1076
|
-
)
|
|
1074
|
+
{ type: 'text/javascript' },
|
|
1075
|
+
),
|
|
1077
1076
|
);
|
|
1078
1077
|
```
|
|
1079
1078
|
|
|
@@ -1085,7 +1084,7 @@
|
|
|
1085
1084
|
|
|
1086
1085
|
```js
|
|
1087
1086
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
1088
|
-
if (name ===
|
|
1087
|
+
if (name === 'getColor') {
|
|
1089
1088
|
callback(data.color);
|
|
1090
1089
|
}
|
|
1091
1090
|
};
|
|
@@ -1095,7 +1094,7 @@
|
|
|
1095
1094
|
|
|
1096
1095
|
```js
|
|
1097
1096
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
1098
|
-
if (name ===
|
|
1097
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
1099
1098
|
return data.color;
|
|
1100
1099
|
}
|
|
1101
1100
|
};
|
|
@@ -1453,7 +1452,7 @@
|
|
|
1453
1452
|
This flag changes the behaviour of cascading. It provide a way to do this
|
|
1454
1453
|
|
|
1455
1454
|
```jsx
|
|
1456
|
-
<view class=
|
|
1455
|
+
<view class='class-a class-b' />;
|
|
1457
1456
|
```
|
|
1458
1457
|
|
|
1459
1458
|
The class-b will override (cascading) styles of class-a.
|
|
@@ -1553,11 +1552,11 @@
|
|
|
1553
1552
|
There is also a simple way to use this feature
|
|
1554
1553
|
|
|
1555
1554
|
```javascript
|
|
1556
|
-
import { LynxCard } from
|
|
1557
|
-
import { loadElement } from
|
|
1558
|
-
import
|
|
1559
|
-
import
|
|
1560
|
-
import
|
|
1555
|
+
import { LynxCard } from '@lynx-js/web-core';
|
|
1556
|
+
import { loadElement } from '@lynx-js/web-elements/lazy';
|
|
1557
|
+
import '@lynx-js/web-elements/index.css';
|
|
1558
|
+
import '@lynx-js/web-core/index.css';
|
|
1559
|
+
import './index.css';
|
|
1561
1560
|
|
|
1562
1561
|
const lynxcard = new LynxCard({
|
|
1563
1562
|
...beforeConfigs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-canary",
|
|
3
|
-
"version": "0.19.0
|
|
3
|
+
"version": "0.19.0",
|
|
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.0
|
|
29
|
-
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.0
|
|
30
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.0
|
|
31
|
-
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.0
|
|
28
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.0",
|
|
29
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.0",
|
|
30
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.0",
|
|
31
|
+
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.0"
|
|
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.0
|
|
35
|
+
"@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.9.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@lynx-js/lynx-core": "0.1.3",
|