@lynx-js/web-core-canary 0.15.5-canary-20250808-0232eb7e → 0.15.5
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.15.5
|
|
3
|
+
## 0.15.5
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -18,12 +18,11 @@
|
|
|
18
18
|
|
|
19
19
|
- fix: `onNativeModulesCall` && `onNapiModulesCall` use getter to get. ([#1466](https://github.com/lynx-family/lynx-stack/pull/1466))
|
|
20
20
|
|
|
21
|
-
- Updated dependencies [[`29434ae`](https://github.com/lynx-family/lynx-stack/commit/29434aec853f14242f521316429cf07a93b8c371), [`fb7096b`](https://github.com/lynx-family/lynx-stack/commit/fb7096bb3c79166cd619a407095b8206eccb7918)
|
|
22
|
-
- @lynx-js/web-mainthread-apis@0.15.5
|
|
23
|
-
- @lynx-js/web-constants@0.15.5
|
|
24
|
-
- @lynx-js/web-worker-runtime@0.15.5
|
|
25
|
-
- @lynx-js/web-
|
|
26
|
-
- @lynx-js/web-worker-rpc@0.15.5-canary-20250808125855-0232eb7e58c3d51c830cd5686714672b4589432f
|
|
21
|
+
- Updated dependencies [[`29434ae`](https://github.com/lynx-family/lynx-stack/commit/29434aec853f14242f521316429cf07a93b8c371), [`fb7096b`](https://github.com/lynx-family/lynx-stack/commit/fb7096bb3c79166cd619a407095b8206eccb7918)]:
|
|
22
|
+
- @lynx-js/web-mainthread-apis@0.15.5
|
|
23
|
+
- @lynx-js/web-constants@0.15.5
|
|
24
|
+
- @lynx-js/web-worker-runtime@0.15.5
|
|
25
|
+
- @lynx-js/web-worker-rpc@0.15.5
|
|
27
26
|
|
|
28
27
|
## 0.15.4
|
|
29
28
|
|
|
@@ -189,25 +188,25 @@
|
|
|
189
188
|
lynxView.initI18nResources = [
|
|
190
189
|
{
|
|
191
190
|
options: {
|
|
192
|
-
locale:
|
|
193
|
-
channel:
|
|
194
|
-
fallback_url:
|
|
191
|
+
locale: 'en',
|
|
192
|
+
channel: '1',
|
|
193
|
+
fallback_url: '',
|
|
195
194
|
},
|
|
196
195
|
resource: {
|
|
197
|
-
hello:
|
|
198
|
-
lynx:
|
|
196
|
+
hello: 'hello',
|
|
197
|
+
lynx: 'lynx web platform1',
|
|
199
198
|
},
|
|
200
199
|
},
|
|
201
200
|
];
|
|
202
|
-
lynxView.addEventListener(
|
|
201
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
203
202
|
console.log(e);
|
|
204
203
|
});
|
|
205
204
|
|
|
206
205
|
// mts
|
|
207
206
|
_I18nResourceTranslation({
|
|
208
|
-
locale:
|
|
209
|
-
channel:
|
|
210
|
-
fallback_url:
|
|
207
|
+
locale: 'en',
|
|
208
|
+
channel: '1',
|
|
209
|
+
fallback_url: '',
|
|
211
210
|
});
|
|
212
211
|
```
|
|
213
212
|
|
|
@@ -615,8 +614,8 @@
|
|
|
615
614
|
}
|
|
616
615
|
};`,
|
|
617
616
|
],
|
|
618
|
-
{ type:
|
|
619
|
-
)
|
|
617
|
+
{ type: 'text/javascript' },
|
|
618
|
+
),
|
|
620
619
|
),
|
|
621
620
|
};
|
|
622
621
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -731,8 +730,8 @@
|
|
|
731
730
|
};
|
|
732
731
|
};`,
|
|
733
732
|
],
|
|
734
|
-
{ type:
|
|
735
|
-
)
|
|
733
|
+
{ type: 'text/javascript' },
|
|
734
|
+
),
|
|
736
735
|
);
|
|
737
736
|
|
|
738
737
|
const color_methods = URL.createObjectURL(
|
|
@@ -747,8 +746,8 @@
|
|
|
747
746
|
};
|
|
748
747
|
};`,
|
|
749
748
|
],
|
|
750
|
-
{ type:
|
|
751
|
-
)
|
|
749
|
+
{ type: 'text/javascript' },
|
|
750
|
+
),
|
|
752
751
|
);
|
|
753
752
|
|
|
754
753
|
lynxView.napiModuleMap = {
|
|
@@ -765,7 +764,7 @@
|
|
|
765
764
|
|
|
766
765
|
```js
|
|
767
766
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
768
|
-
if (name ===
|
|
767
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
769
768
|
return data.color;
|
|
770
769
|
}
|
|
771
770
|
};
|
|
@@ -844,8 +843,8 @@
|
|
|
844
843
|
}
|
|
845
844
|
};`,
|
|
846
845
|
],
|
|
847
|
-
{ type:
|
|
848
|
-
)
|
|
846
|
+
{ type: 'text/javascript' },
|
|
847
|
+
),
|
|
849
848
|
);
|
|
850
849
|
```
|
|
851
850
|
|
|
@@ -857,7 +856,7 @@
|
|
|
857
856
|
|
|
858
857
|
```js
|
|
859
858
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
860
|
-
if (name ===
|
|
859
|
+
if (name === 'getColor') {
|
|
861
860
|
callback(data.color);
|
|
862
861
|
}
|
|
863
862
|
};
|
|
@@ -867,7 +866,7 @@
|
|
|
867
866
|
|
|
868
867
|
```js
|
|
869
868
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
870
|
-
if (name ===
|
|
869
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
871
870
|
return data.color;
|
|
872
871
|
}
|
|
873
872
|
};
|
|
@@ -1225,7 +1224,7 @@
|
|
|
1225
1224
|
This flag changes the behaviour of cascading. It provide a way to do this
|
|
1226
1225
|
|
|
1227
1226
|
```jsx
|
|
1228
|
-
<view class=
|
|
1227
|
+
<view class='class-a class-b' />;
|
|
1229
1228
|
```
|
|
1230
1229
|
|
|
1231
1230
|
The class-b will override (cascading) styles of class-a.
|
|
@@ -1325,11 +1324,11 @@
|
|
|
1325
1324
|
There is also a simple way to use this feature
|
|
1326
1325
|
|
|
1327
1326
|
```javascript
|
|
1328
|
-
import { LynxCard } from
|
|
1329
|
-
import { loadElement } from
|
|
1330
|
-
import
|
|
1331
|
-
import
|
|
1332
|
-
import
|
|
1327
|
+
import { LynxCard } from '@lynx-js/web-core';
|
|
1328
|
+
import { loadElement } from '@lynx-js/web-elements/lazy';
|
|
1329
|
+
import '@lynx-js/web-elements/index.css';
|
|
1330
|
+
import '@lynx-js/web-core/index.css';
|
|
1331
|
+
import './index.css';
|
|
1333
1332
|
|
|
1334
1333
|
const lynxcard = new LynxCard({
|
|
1335
1334
|
...beforeConfigs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-canary",
|
|
3
|
-
"version": "0.15.5
|
|
3
|
+
"version": "0.15.5",
|
|
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.3",
|
|
28
|
-
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.5
|
|
29
|
-
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.5
|
|
30
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.5
|
|
31
|
-
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.15.5
|
|
28
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.5",
|
|
29
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.5",
|
|
30
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.5",
|
|
31
|
+
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.15.5"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@lynx-js/lynx-core": "0.1.2",
|
|
35
|
-
"@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.4
|
|
35
|
+
"@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.4"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@lynx-js/lynx-core": "0.1.2",
|