@lynx-js/web-core-canary 0.19.1-canary-20251212-9c715ffe → 0.19.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,16 +1,16 @@
|
|
|
1
1
|
# @lynx-js/web-core
|
|
2
2
|
|
|
3
|
-
## 0.19.1
|
|
3
|
+
## 0.19.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- fix: support CSP for mts ([#1994](https://github.com/lynx-family/lynx-stack/pull/1994))
|
|
8
8
|
|
|
9
9
|
- Updated dependencies [[`f7256d5`](https://github.com/lynx-family/lynx-stack/commit/f7256d5bd920b2f6c0cadab44455585c35621b35)]:
|
|
10
|
-
- @lynx-js/web-mainthread-apis@0.19.1
|
|
11
|
-
- @lynx-js/web-worker-runtime@0.19.1
|
|
12
|
-
- @lynx-js/web-constants@0.19.1
|
|
13
|
-
- @lynx-js/web-worker-rpc@0.19.1
|
|
10
|
+
- @lynx-js/web-mainthread-apis@0.19.1
|
|
11
|
+
- @lynx-js/web-worker-runtime@0.19.1
|
|
12
|
+
- @lynx-js/web-constants@0.19.1
|
|
13
|
+
- @lynx-js/web-worker-rpc@0.19.1
|
|
14
14
|
|
|
15
15
|
## 0.19.0
|
|
16
16
|
|
|
@@ -428,25 +428,25 @@
|
|
|
428
428
|
lynxView.initI18nResources = [
|
|
429
429
|
{
|
|
430
430
|
options: {
|
|
431
|
-
locale:
|
|
432
|
-
channel:
|
|
433
|
-
fallback_url:
|
|
431
|
+
locale: 'en',
|
|
432
|
+
channel: '1',
|
|
433
|
+
fallback_url: '',
|
|
434
434
|
},
|
|
435
435
|
resource: {
|
|
436
|
-
hello:
|
|
437
|
-
lynx:
|
|
436
|
+
hello: 'hello',
|
|
437
|
+
lynx: 'lynx web platform1',
|
|
438
438
|
},
|
|
439
439
|
},
|
|
440
440
|
];
|
|
441
|
-
lynxView.addEventListener(
|
|
441
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
442
442
|
console.log(e);
|
|
443
443
|
});
|
|
444
444
|
|
|
445
445
|
// mts
|
|
446
446
|
_I18nResourceTranslation({
|
|
447
|
-
locale:
|
|
448
|
-
channel:
|
|
449
|
-
fallback_url:
|
|
447
|
+
locale: 'en',
|
|
448
|
+
channel: '1',
|
|
449
|
+
fallback_url: '',
|
|
450
450
|
});
|
|
451
451
|
```
|
|
452
452
|
|
|
@@ -854,8 +854,8 @@
|
|
|
854
854
|
}
|
|
855
855
|
};`,
|
|
856
856
|
],
|
|
857
|
-
{ type:
|
|
858
|
-
)
|
|
857
|
+
{ type: 'text/javascript' },
|
|
858
|
+
),
|
|
859
859
|
),
|
|
860
860
|
};
|
|
861
861
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -970,8 +970,8 @@
|
|
|
970
970
|
};
|
|
971
971
|
};`,
|
|
972
972
|
],
|
|
973
|
-
{ type:
|
|
974
|
-
)
|
|
973
|
+
{ type: 'text/javascript' },
|
|
974
|
+
),
|
|
975
975
|
);
|
|
976
976
|
|
|
977
977
|
const color_methods = URL.createObjectURL(
|
|
@@ -986,8 +986,8 @@
|
|
|
986
986
|
};
|
|
987
987
|
};`,
|
|
988
988
|
],
|
|
989
|
-
{ type:
|
|
990
|
-
)
|
|
989
|
+
{ type: 'text/javascript' },
|
|
990
|
+
),
|
|
991
991
|
);
|
|
992
992
|
|
|
993
993
|
lynxView.napiModuleMap = {
|
|
@@ -1004,7 +1004,7 @@
|
|
|
1004
1004
|
|
|
1005
1005
|
```js
|
|
1006
1006
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
1007
|
-
if (name ===
|
|
1007
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
1008
1008
|
return data.color;
|
|
1009
1009
|
}
|
|
1010
1010
|
};
|
|
@@ -1083,8 +1083,8 @@
|
|
|
1083
1083
|
}
|
|
1084
1084
|
};`,
|
|
1085
1085
|
],
|
|
1086
|
-
{ type:
|
|
1087
|
-
)
|
|
1086
|
+
{ type: 'text/javascript' },
|
|
1087
|
+
),
|
|
1088
1088
|
);
|
|
1089
1089
|
```
|
|
1090
1090
|
|
|
@@ -1096,7 +1096,7 @@
|
|
|
1096
1096
|
|
|
1097
1097
|
```js
|
|
1098
1098
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
1099
|
-
if (name ===
|
|
1099
|
+
if (name === 'getColor') {
|
|
1100
1100
|
callback(data.color);
|
|
1101
1101
|
}
|
|
1102
1102
|
};
|
|
@@ -1106,7 +1106,7 @@
|
|
|
1106
1106
|
|
|
1107
1107
|
```js
|
|
1108
1108
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
1109
|
-
if (name ===
|
|
1109
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
1110
1110
|
return data.color;
|
|
1111
1111
|
}
|
|
1112
1112
|
};
|
|
@@ -1464,7 +1464,7 @@
|
|
|
1464
1464
|
This flag changes the behaviour of cascading. It provide a way to do this
|
|
1465
1465
|
|
|
1466
1466
|
```jsx
|
|
1467
|
-
<view class=
|
|
1467
|
+
<view class='class-a class-b' />;
|
|
1468
1468
|
```
|
|
1469
1469
|
|
|
1470
1470
|
The class-b will override (cascading) styles of class-a.
|
|
@@ -1564,11 +1564,11 @@
|
|
|
1564
1564
|
There is also a simple way to use this feature
|
|
1565
1565
|
|
|
1566
1566
|
```javascript
|
|
1567
|
-
import { LynxCard } from
|
|
1568
|
-
import { loadElement } from
|
|
1569
|
-
import
|
|
1570
|
-
import
|
|
1571
|
-
import
|
|
1567
|
+
import { LynxCard } from '@lynx-js/web-core';
|
|
1568
|
+
import { loadElement } from '@lynx-js/web-elements/lazy';
|
|
1569
|
+
import '@lynx-js/web-elements/index.css';
|
|
1570
|
+
import '@lynx-js/web-core/index.css';
|
|
1571
|
+
import './index.css';
|
|
1572
1572
|
|
|
1573
1573
|
const lynxcard = new LynxCard({
|
|
1574
1574
|
...beforeConfigs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-canary",
|
|
3
|
-
"version": "0.19.1
|
|
3
|
+
"version": "0.19.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.19.1
|
|
29
|
-
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.1
|
|
30
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.1
|
|
31
|
-
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.1
|
|
28
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.1",
|
|
29
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.1",
|
|
30
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.1",
|
|
31
|
+
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@lynx-js/lynx-core": "0.1.3",
|