@lynx-js/web-core-canary 0.17.1-canary-20250925-df40a0a6 → 0.17.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 +31 -31
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# @lynx-js/web-core
|
|
2
2
|
|
|
3
|
-
## 0.17.1
|
|
3
|
+
## 0.17.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies []:
|
|
8
|
-
- @lynx-js/web-constants@0.17.1
|
|
9
|
-
- @lynx-js/web-mainthread-apis@0.17.1
|
|
10
|
-
- @lynx-js/web-worker-rpc@0.17.1
|
|
11
|
-
- @lynx-js/web-worker-runtime@0.17.1
|
|
8
|
+
- @lynx-js/web-constants@0.17.1
|
|
9
|
+
- @lynx-js/web-mainthread-apis@0.17.1
|
|
10
|
+
- @lynx-js/web-worker-rpc@0.17.1
|
|
11
|
+
- @lynx-js/web-worker-runtime@0.17.1
|
|
12
12
|
|
|
13
13
|
## 0.17.0
|
|
14
14
|
|
|
@@ -313,25 +313,25 @@
|
|
|
313
313
|
lynxView.initI18nResources = [
|
|
314
314
|
{
|
|
315
315
|
options: {
|
|
316
|
-
locale:
|
|
317
|
-
channel:
|
|
318
|
-
fallback_url:
|
|
316
|
+
locale: 'en',
|
|
317
|
+
channel: '1',
|
|
318
|
+
fallback_url: '',
|
|
319
319
|
},
|
|
320
320
|
resource: {
|
|
321
|
-
hello:
|
|
322
|
-
lynx:
|
|
321
|
+
hello: 'hello',
|
|
322
|
+
lynx: 'lynx web platform1',
|
|
323
323
|
},
|
|
324
324
|
},
|
|
325
325
|
];
|
|
326
|
-
lynxView.addEventListener(
|
|
326
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
327
327
|
console.log(e);
|
|
328
328
|
});
|
|
329
329
|
|
|
330
330
|
// mts
|
|
331
331
|
_I18nResourceTranslation({
|
|
332
|
-
locale:
|
|
333
|
-
channel:
|
|
334
|
-
fallback_url:
|
|
332
|
+
locale: 'en',
|
|
333
|
+
channel: '1',
|
|
334
|
+
fallback_url: '',
|
|
335
335
|
});
|
|
336
336
|
```
|
|
337
337
|
|
|
@@ -739,8 +739,8 @@
|
|
|
739
739
|
}
|
|
740
740
|
};`,
|
|
741
741
|
],
|
|
742
|
-
{ type:
|
|
743
|
-
)
|
|
742
|
+
{ type: 'text/javascript' },
|
|
743
|
+
),
|
|
744
744
|
),
|
|
745
745
|
};
|
|
746
746
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -855,8 +855,8 @@
|
|
|
855
855
|
};
|
|
856
856
|
};`,
|
|
857
857
|
],
|
|
858
|
-
{ type:
|
|
859
|
-
)
|
|
858
|
+
{ type: 'text/javascript' },
|
|
859
|
+
),
|
|
860
860
|
);
|
|
861
861
|
|
|
862
862
|
const color_methods = URL.createObjectURL(
|
|
@@ -871,8 +871,8 @@
|
|
|
871
871
|
};
|
|
872
872
|
};`,
|
|
873
873
|
],
|
|
874
|
-
{ type:
|
|
875
|
-
)
|
|
874
|
+
{ type: 'text/javascript' },
|
|
875
|
+
),
|
|
876
876
|
);
|
|
877
877
|
|
|
878
878
|
lynxView.napiModuleMap = {
|
|
@@ -889,7 +889,7 @@
|
|
|
889
889
|
|
|
890
890
|
```js
|
|
891
891
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
892
|
-
if (name ===
|
|
892
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
893
893
|
return data.color;
|
|
894
894
|
}
|
|
895
895
|
};
|
|
@@ -968,8 +968,8 @@
|
|
|
968
968
|
}
|
|
969
969
|
};`,
|
|
970
970
|
],
|
|
971
|
-
{ type:
|
|
972
|
-
)
|
|
971
|
+
{ type: 'text/javascript' },
|
|
972
|
+
),
|
|
973
973
|
);
|
|
974
974
|
```
|
|
975
975
|
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
|
|
982
982
|
```js
|
|
983
983
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
984
|
-
if (name ===
|
|
984
|
+
if (name === 'getColor') {
|
|
985
985
|
callback(data.color);
|
|
986
986
|
}
|
|
987
987
|
};
|
|
@@ -991,7 +991,7 @@
|
|
|
991
991
|
|
|
992
992
|
```js
|
|
993
993
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
994
|
-
if (name ===
|
|
994
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
995
995
|
return data.color;
|
|
996
996
|
}
|
|
997
997
|
};
|
|
@@ -1349,7 +1349,7 @@
|
|
|
1349
1349
|
This flag changes the behaviour of cascading. It provide a way to do this
|
|
1350
1350
|
|
|
1351
1351
|
```jsx
|
|
1352
|
-
<view class=
|
|
1352
|
+
<view class='class-a class-b' />;
|
|
1353
1353
|
```
|
|
1354
1354
|
|
|
1355
1355
|
The class-b will override (cascading) styles of class-a.
|
|
@@ -1449,11 +1449,11 @@
|
|
|
1449
1449
|
There is also a simple way to use this feature
|
|
1450
1450
|
|
|
1451
1451
|
```javascript
|
|
1452
|
-
import { LynxCard } from
|
|
1453
|
-
import { loadElement } from
|
|
1454
|
-
import
|
|
1455
|
-
import
|
|
1456
|
-
import
|
|
1452
|
+
import { LynxCard } from '@lynx-js/web-core';
|
|
1453
|
+
import { loadElement } from '@lynx-js/web-elements/lazy';
|
|
1454
|
+
import '@lynx-js/web-elements/index.css';
|
|
1455
|
+
import '@lynx-js/web-core/index.css';
|
|
1456
|
+
import './index.css';
|
|
1457
1457
|
|
|
1458
1458
|
const lynxcard = new LynxCard({
|
|
1459
1459
|
...beforeConfigs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-canary",
|
|
3
|
-
"version": "0.17.1
|
|
3
|
+
"version": "0.17.1",
|
|
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.17.1
|
|
29
|
-
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.17.1
|
|
30
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.1
|
|
31
|
-
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.17.1
|
|
28
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.17.1",
|
|
29
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.17.1",
|
|
30
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.1",
|
|
31
|
+
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.17.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@lynx-js/lynx-core": "0.1.3",
|