@lynx-js/web-core-canary 0.15.6-canary-20250815-405a9170 → 0.15.6
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,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/web-core
|
|
2
2
|
|
|
3
|
-
## 0.15.6
|
|
3
|
+
## 0.15.6
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
- Fix mtsGlobalThis race condition in createRenderAllOnUI ([#1506](https://github.com/lynx-family/lynx-stack/pull/1506))
|
|
12
12
|
|
|
13
13
|
- Updated dependencies [[`405a917`](https://github.com/lynx-family/lynx-stack/commit/405a9170442ae32603b7687549b49ab4b34aff92), [`b8f89e2`](https://github.com/lynx-family/lynx-stack/commit/b8f89e25f106a15ba9d70f2df06dfb684cbb6633), [`f76aae9`](https://github.com/lynx-family/lynx-stack/commit/f76aae9ea06abdc7022ba508d22f9f4eb00864e8), [`b8b060b`](https://github.com/lynx-family/lynx-stack/commit/b8b060b9bef722bb47bd90c33fab3922160c711d), [`d8381a5`](https://github.com/lynx-family/lynx-stack/commit/d8381a58d12af6424cab4955617251e798bdc9f1), [`214898b`](https://github.com/lynx-family/lynx-stack/commit/214898bb9c74fc9b44e68cb220a4c02485102ce2), [`ab8cee4`](https://github.com/lynx-family/lynx-stack/commit/ab8cee4bab384fa905c045c4b4b93e5d4a95d57f)]:
|
|
14
|
-
- @lynx-js/web-mainthread-apis@0.15.6
|
|
15
|
-
- @lynx-js/web-constants@0.15.6
|
|
16
|
-
- @lynx-js/web-worker-runtime@0.15.6
|
|
17
|
-
- @lynx-js/web-worker-rpc@0.15.6
|
|
14
|
+
- @lynx-js/web-mainthread-apis@0.15.6
|
|
15
|
+
- @lynx-js/web-constants@0.15.6
|
|
16
|
+
- @lynx-js/web-worker-runtime@0.15.6
|
|
17
|
+
- @lynx-js/web-worker-rpc@0.15.6
|
|
18
18
|
|
|
19
19
|
## 0.15.5
|
|
20
20
|
|
|
@@ -204,25 +204,25 @@
|
|
|
204
204
|
lynxView.initI18nResources = [
|
|
205
205
|
{
|
|
206
206
|
options: {
|
|
207
|
-
locale:
|
|
208
|
-
channel:
|
|
209
|
-
fallback_url:
|
|
207
|
+
locale: 'en',
|
|
208
|
+
channel: '1',
|
|
209
|
+
fallback_url: '',
|
|
210
210
|
},
|
|
211
211
|
resource: {
|
|
212
|
-
hello:
|
|
213
|
-
lynx:
|
|
212
|
+
hello: 'hello',
|
|
213
|
+
lynx: 'lynx web platform1',
|
|
214
214
|
},
|
|
215
215
|
},
|
|
216
216
|
];
|
|
217
|
-
lynxView.addEventListener(
|
|
217
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
218
218
|
console.log(e);
|
|
219
219
|
});
|
|
220
220
|
|
|
221
221
|
// mts
|
|
222
222
|
_I18nResourceTranslation({
|
|
223
|
-
locale:
|
|
224
|
-
channel:
|
|
225
|
-
fallback_url:
|
|
223
|
+
locale: 'en',
|
|
224
|
+
channel: '1',
|
|
225
|
+
fallback_url: '',
|
|
226
226
|
});
|
|
227
227
|
```
|
|
228
228
|
|
|
@@ -630,8 +630,8 @@
|
|
|
630
630
|
}
|
|
631
631
|
};`,
|
|
632
632
|
],
|
|
633
|
-
{ type:
|
|
634
|
-
)
|
|
633
|
+
{ type: 'text/javascript' },
|
|
634
|
+
),
|
|
635
635
|
),
|
|
636
636
|
};
|
|
637
637
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -746,8 +746,8 @@
|
|
|
746
746
|
};
|
|
747
747
|
};`,
|
|
748
748
|
],
|
|
749
|
-
{ type:
|
|
750
|
-
)
|
|
749
|
+
{ type: 'text/javascript' },
|
|
750
|
+
),
|
|
751
751
|
);
|
|
752
752
|
|
|
753
753
|
const color_methods = URL.createObjectURL(
|
|
@@ -762,8 +762,8 @@
|
|
|
762
762
|
};
|
|
763
763
|
};`,
|
|
764
764
|
],
|
|
765
|
-
{ type:
|
|
766
|
-
)
|
|
765
|
+
{ type: 'text/javascript' },
|
|
766
|
+
),
|
|
767
767
|
);
|
|
768
768
|
|
|
769
769
|
lynxView.napiModuleMap = {
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
|
|
781
781
|
```js
|
|
782
782
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
783
|
-
if (name ===
|
|
783
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
784
784
|
return data.color;
|
|
785
785
|
}
|
|
786
786
|
};
|
|
@@ -859,8 +859,8 @@
|
|
|
859
859
|
}
|
|
860
860
|
};`,
|
|
861
861
|
],
|
|
862
|
-
{ type:
|
|
863
|
-
)
|
|
862
|
+
{ type: 'text/javascript' },
|
|
863
|
+
),
|
|
864
864
|
);
|
|
865
865
|
```
|
|
866
866
|
|
|
@@ -872,7 +872,7 @@
|
|
|
872
872
|
|
|
873
873
|
```js
|
|
874
874
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
875
|
-
if (name ===
|
|
875
|
+
if (name === 'getColor') {
|
|
876
876
|
callback(data.color);
|
|
877
877
|
}
|
|
878
878
|
};
|
|
@@ -882,7 +882,7 @@
|
|
|
882
882
|
|
|
883
883
|
```js
|
|
884
884
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
885
|
-
if (name ===
|
|
885
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
886
886
|
return data.color;
|
|
887
887
|
}
|
|
888
888
|
};
|
|
@@ -1240,7 +1240,7 @@
|
|
|
1240
1240
|
This flag changes the behaviour of cascading. It provide a way to do this
|
|
1241
1241
|
|
|
1242
1242
|
```jsx
|
|
1243
|
-
<view class=
|
|
1243
|
+
<view class='class-a class-b' />;
|
|
1244
1244
|
```
|
|
1245
1245
|
|
|
1246
1246
|
The class-b will override (cascading) styles of class-a.
|
|
@@ -1340,11 +1340,11 @@
|
|
|
1340
1340
|
There is also a simple way to use this feature
|
|
1341
1341
|
|
|
1342
1342
|
```javascript
|
|
1343
|
-
import { LynxCard } from
|
|
1344
|
-
import { loadElement } from
|
|
1345
|
-
import
|
|
1346
|
-
import
|
|
1347
|
-
import
|
|
1343
|
+
import { LynxCard } from '@lynx-js/web-core';
|
|
1344
|
+
import { loadElement } from '@lynx-js/web-elements/lazy';
|
|
1345
|
+
import '@lynx-js/web-elements/index.css';
|
|
1346
|
+
import '@lynx-js/web-core/index.css';
|
|
1347
|
+
import './index.css';
|
|
1348
1348
|
|
|
1349
1349
|
const lynxcard = new LynxCard({
|
|
1350
1350
|
...beforeConfigs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-canary",
|
|
3
|
-
"version": "0.15.6
|
|
3
|
+
"version": "0.15.6",
|
|
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.3",
|
|
28
|
-
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.6
|
|
29
|
-
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.6
|
|
30
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.6
|
|
31
|
-
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.15.6
|
|
28
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.6",
|
|
29
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.6",
|
|
30
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.6",
|
|
31
|
+
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.15.6"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@lynx-js/lynx-core": "0.1.3",
|