@lynx-js/web-core-canary 0.16.1-canary-20250915-59a0d600 → 0.16.1
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.16.1
|
|
3
|
+
## 0.16.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -8,12 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
- feat: supports lazy bundle. (This feature requires `@lynx-js/lynx-core >= 0.1.3`) ([#1235](https://github.com/lynx-family/lynx-stack/pull/1235))
|
|
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.16.1-canary-20250915090032-59a0d600e111d2ae5136f5ee7cd768bc38de018b
|
|
11
|
+
- Updated dependencies [[`608f375`](https://github.com/lynx-family/lynx-stack/commit/608f375e20732cc4c9f141bfbf9800ba6896100b)]:
|
|
12
|
+
- @lynx-js/web-mainthread-apis@0.16.1
|
|
13
|
+
- @lynx-js/web-worker-runtime@0.16.1
|
|
14
|
+
- @lynx-js/web-constants@0.16.1
|
|
15
|
+
- @lynx-js/web-worker-rpc@0.16.1
|
|
17
16
|
|
|
18
17
|
## 0.16.0
|
|
19
18
|
|
|
@@ -262,25 +261,25 @@
|
|
|
262
261
|
lynxView.initI18nResources = [
|
|
263
262
|
{
|
|
264
263
|
options: {
|
|
265
|
-
locale:
|
|
266
|
-
channel:
|
|
267
|
-
fallback_url:
|
|
264
|
+
locale: 'en',
|
|
265
|
+
channel: '1',
|
|
266
|
+
fallback_url: '',
|
|
268
267
|
},
|
|
269
268
|
resource: {
|
|
270
|
-
hello:
|
|
271
|
-
lynx:
|
|
269
|
+
hello: 'hello',
|
|
270
|
+
lynx: 'lynx web platform1',
|
|
272
271
|
},
|
|
273
272
|
},
|
|
274
273
|
];
|
|
275
|
-
lynxView.addEventListener(
|
|
274
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
276
275
|
console.log(e);
|
|
277
276
|
});
|
|
278
277
|
|
|
279
278
|
// mts
|
|
280
279
|
_I18nResourceTranslation({
|
|
281
|
-
locale:
|
|
282
|
-
channel:
|
|
283
|
-
fallback_url:
|
|
280
|
+
locale: 'en',
|
|
281
|
+
channel: '1',
|
|
282
|
+
fallback_url: '',
|
|
284
283
|
});
|
|
285
284
|
```
|
|
286
285
|
|
|
@@ -688,8 +687,8 @@
|
|
|
688
687
|
}
|
|
689
688
|
};`,
|
|
690
689
|
],
|
|
691
|
-
{ type:
|
|
692
|
-
)
|
|
690
|
+
{ type: 'text/javascript' },
|
|
691
|
+
),
|
|
693
692
|
),
|
|
694
693
|
};
|
|
695
694
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -804,8 +803,8 @@
|
|
|
804
803
|
};
|
|
805
804
|
};`,
|
|
806
805
|
],
|
|
807
|
-
{ type:
|
|
808
|
-
)
|
|
806
|
+
{ type: 'text/javascript' },
|
|
807
|
+
),
|
|
809
808
|
);
|
|
810
809
|
|
|
811
810
|
const color_methods = URL.createObjectURL(
|
|
@@ -820,8 +819,8 @@
|
|
|
820
819
|
};
|
|
821
820
|
};`,
|
|
822
821
|
],
|
|
823
|
-
{ type:
|
|
824
|
-
)
|
|
822
|
+
{ type: 'text/javascript' },
|
|
823
|
+
),
|
|
825
824
|
);
|
|
826
825
|
|
|
827
826
|
lynxView.napiModuleMap = {
|
|
@@ -838,7 +837,7 @@
|
|
|
838
837
|
|
|
839
838
|
```js
|
|
840
839
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
841
|
-
if (name ===
|
|
840
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
842
841
|
return data.color;
|
|
843
842
|
}
|
|
844
843
|
};
|
|
@@ -917,8 +916,8 @@
|
|
|
917
916
|
}
|
|
918
917
|
};`,
|
|
919
918
|
],
|
|
920
|
-
{ type:
|
|
921
|
-
)
|
|
919
|
+
{ type: 'text/javascript' },
|
|
920
|
+
),
|
|
922
921
|
);
|
|
923
922
|
```
|
|
924
923
|
|
|
@@ -930,7 +929,7 @@
|
|
|
930
929
|
|
|
931
930
|
```js
|
|
932
931
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
933
|
-
if (name ===
|
|
932
|
+
if (name === 'getColor') {
|
|
934
933
|
callback(data.color);
|
|
935
934
|
}
|
|
936
935
|
};
|
|
@@ -940,7 +939,7 @@
|
|
|
940
939
|
|
|
941
940
|
```js
|
|
942
941
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
943
|
-
if (name ===
|
|
942
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
944
943
|
return data.color;
|
|
945
944
|
}
|
|
946
945
|
};
|
|
@@ -1298,7 +1297,7 @@
|
|
|
1298
1297
|
This flag changes the behaviour of cascading. It provide a way to do this
|
|
1299
1298
|
|
|
1300
1299
|
```jsx
|
|
1301
|
-
<view class=
|
|
1300
|
+
<view class='class-a class-b' />;
|
|
1302
1301
|
```
|
|
1303
1302
|
|
|
1304
1303
|
The class-b will override (cascading) styles of class-a.
|
|
@@ -1398,11 +1397,11 @@
|
|
|
1398
1397
|
There is also a simple way to use this feature
|
|
1399
1398
|
|
|
1400
1399
|
```javascript
|
|
1401
|
-
import { LynxCard } from
|
|
1402
|
-
import { loadElement } from
|
|
1403
|
-
import
|
|
1404
|
-
import
|
|
1405
|
-
import
|
|
1400
|
+
import { LynxCard } from '@lynx-js/web-core';
|
|
1401
|
+
import { loadElement } from '@lynx-js/web-elements/lazy';
|
|
1402
|
+
import '@lynx-js/web-elements/index.css';
|
|
1403
|
+
import '@lynx-js/web-core/index.css';
|
|
1404
|
+
import './index.css';
|
|
1406
1405
|
|
|
1407
1406
|
const lynxcard = new LynxCard({
|
|
1408
1407
|
...beforeConfigs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-canary",
|
|
3
|
-
"version": "0.16.1
|
|
3
|
+
"version": "0.16.1",
|
|
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.16.1
|
|
29
|
-
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.16.1
|
|
30
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.16.1
|
|
31
|
-
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.16.1
|
|
28
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.16.1",
|
|
29
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.16.1",
|
|
30
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.16.1",
|
|
31
|
+
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.16.1"
|
|
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.6
|
|
35
|
+
"@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.6"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@lynx-js/lynx-core": "0.1.3",
|