@lynx-js/web-core-canary 0.17.0-canary-20250919-ec48624b → 0.17.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.17.0
|
|
3
|
+
## 0.17.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -36,12 +36,11 @@
|
|
|
36
36
|
|
|
37
37
|
- fix: the default template loader won't fetch twice for one url ([#1709](https://github.com/lynx-family/lynx-stack/pull/1709))
|
|
38
38
|
|
|
39
|
-
- Updated dependencies [[`721635d`](https://github.com/lynx-family/lynx-stack/commit/721635de6c1d2d617c7cbaa86e7d816c42d62930), [`
|
|
40
|
-
- @lynx-js/web-mainthread-apis@0.17.0
|
|
41
|
-
- @lynx-js/web-
|
|
42
|
-
- @lynx-js/web-
|
|
43
|
-
- @lynx-js/web-worker-
|
|
44
|
-
- @lynx-js/web-worker-rpc@0.17.0-canary-20250919153613-ec48624beeb75f579be8a479e4a772afc59c7a17
|
|
39
|
+
- Updated dependencies [[`721635d`](https://github.com/lynx-family/lynx-stack/commit/721635de6c1d2d617c7cbaa86e7d816c42d62930), [`93d707b`](https://github.com/lynx-family/lynx-stack/commit/93d707b82a59f7256952e21da6dcad2999f8233d), [`d150ed4`](https://github.com/lynx-family/lynx-stack/commit/d150ed440a4f1e9d9a3a2911adf6e6fa39a0c589)]:
|
|
40
|
+
- @lynx-js/web-mainthread-apis@0.17.0
|
|
41
|
+
- @lynx-js/web-constants@0.17.0
|
|
42
|
+
- @lynx-js/web-worker-runtime@0.17.0
|
|
43
|
+
- @lynx-js/web-worker-rpc@0.17.0
|
|
45
44
|
|
|
46
45
|
## 0.16.1
|
|
47
46
|
|
|
@@ -304,25 +303,25 @@
|
|
|
304
303
|
lynxView.initI18nResources = [
|
|
305
304
|
{
|
|
306
305
|
options: {
|
|
307
|
-
locale:
|
|
308
|
-
channel:
|
|
309
|
-
fallback_url:
|
|
306
|
+
locale: 'en',
|
|
307
|
+
channel: '1',
|
|
308
|
+
fallback_url: '',
|
|
310
309
|
},
|
|
311
310
|
resource: {
|
|
312
|
-
hello:
|
|
313
|
-
lynx:
|
|
311
|
+
hello: 'hello',
|
|
312
|
+
lynx: 'lynx web platform1',
|
|
314
313
|
},
|
|
315
314
|
},
|
|
316
315
|
];
|
|
317
|
-
lynxView.addEventListener(
|
|
316
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
318
317
|
console.log(e);
|
|
319
318
|
});
|
|
320
319
|
|
|
321
320
|
// mts
|
|
322
321
|
_I18nResourceTranslation({
|
|
323
|
-
locale:
|
|
324
|
-
channel:
|
|
325
|
-
fallback_url:
|
|
322
|
+
locale: 'en',
|
|
323
|
+
channel: '1',
|
|
324
|
+
fallback_url: '',
|
|
326
325
|
});
|
|
327
326
|
```
|
|
328
327
|
|
|
@@ -730,8 +729,8 @@
|
|
|
730
729
|
}
|
|
731
730
|
};`,
|
|
732
731
|
],
|
|
733
|
-
{ type:
|
|
734
|
-
)
|
|
732
|
+
{ type: 'text/javascript' },
|
|
733
|
+
),
|
|
735
734
|
),
|
|
736
735
|
};
|
|
737
736
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -846,8 +845,8 @@
|
|
|
846
845
|
};
|
|
847
846
|
};`,
|
|
848
847
|
],
|
|
849
|
-
{ type:
|
|
850
|
-
)
|
|
848
|
+
{ type: 'text/javascript' },
|
|
849
|
+
),
|
|
851
850
|
);
|
|
852
851
|
|
|
853
852
|
const color_methods = URL.createObjectURL(
|
|
@@ -862,8 +861,8 @@
|
|
|
862
861
|
};
|
|
863
862
|
};`,
|
|
864
863
|
],
|
|
865
|
-
{ type:
|
|
866
|
-
)
|
|
864
|
+
{ type: 'text/javascript' },
|
|
865
|
+
),
|
|
867
866
|
);
|
|
868
867
|
|
|
869
868
|
lynxView.napiModuleMap = {
|
|
@@ -880,7 +879,7 @@
|
|
|
880
879
|
|
|
881
880
|
```js
|
|
882
881
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
883
|
-
if (name ===
|
|
882
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
884
883
|
return data.color;
|
|
885
884
|
}
|
|
886
885
|
};
|
|
@@ -959,8 +958,8 @@
|
|
|
959
958
|
}
|
|
960
959
|
};`,
|
|
961
960
|
],
|
|
962
|
-
{ type:
|
|
963
|
-
)
|
|
961
|
+
{ type: 'text/javascript' },
|
|
962
|
+
),
|
|
964
963
|
);
|
|
965
964
|
```
|
|
966
965
|
|
|
@@ -972,7 +971,7 @@
|
|
|
972
971
|
|
|
973
972
|
```js
|
|
974
973
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
975
|
-
if (name ===
|
|
974
|
+
if (name === 'getColor') {
|
|
976
975
|
callback(data.color);
|
|
977
976
|
}
|
|
978
977
|
};
|
|
@@ -982,7 +981,7 @@
|
|
|
982
981
|
|
|
983
982
|
```js
|
|
984
983
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
985
|
-
if (name ===
|
|
984
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
986
985
|
return data.color;
|
|
987
986
|
}
|
|
988
987
|
};
|
|
@@ -1340,7 +1339,7 @@
|
|
|
1340
1339
|
This flag changes the behaviour of cascading. It provide a way to do this
|
|
1341
1340
|
|
|
1342
1341
|
```jsx
|
|
1343
|
-
<view class=
|
|
1342
|
+
<view class='class-a class-b' />;
|
|
1344
1343
|
```
|
|
1345
1344
|
|
|
1346
1345
|
The class-b will override (cascading) styles of class-a.
|
|
@@ -1440,11 +1439,11 @@
|
|
|
1440
1439
|
There is also a simple way to use this feature
|
|
1441
1440
|
|
|
1442
1441
|
```javascript
|
|
1443
|
-
import { LynxCard } from
|
|
1444
|
-
import { loadElement } from
|
|
1445
|
-
import
|
|
1446
|
-
import
|
|
1447
|
-
import
|
|
1442
|
+
import { LynxCard } from '@lynx-js/web-core';
|
|
1443
|
+
import { loadElement } from '@lynx-js/web-elements/lazy';
|
|
1444
|
+
import '@lynx-js/web-elements/index.css';
|
|
1445
|
+
import '@lynx-js/web-core/index.css';
|
|
1446
|
+
import './index.css';
|
|
1448
1447
|
|
|
1449
1448
|
const lynxcard = new LynxCard({
|
|
1450
1449
|
...beforeConfigs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-canary",
|
|
3
|
-
"version": "0.17.0
|
|
3
|
+
"version": "0.17.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.17.0
|
|
29
|
-
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.17.0
|
|
30
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.0
|
|
31
|
-
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.17.0
|
|
28
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.17.0",
|
|
29
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.17.0",
|
|
30
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.0",
|
|
31
|
+
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.17.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.8.7
|
|
35
|
+
"@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.7"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@lynx-js/lynx-core": "0.1.3",
|