@lynx-js/web-mainthread-apis-canary 0.15.6-canary-20250815-7e47c4a7 → 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
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# @lynx-js/web-mainthread-apis
|
|
2
2
|
|
|
3
|
-
## 0.15.6
|
|
3
|
+
## 0.15.6
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- fix: systeminfo in mts function ([#1537](https://github.com/lynx-family/lynx-stack/pull/1537))
|
|
8
|
+
|
|
7
9
|
- refactor: use utf-8 string ([#1473](https://github.com/lynx-family/lynx-stack/pull/1473))
|
|
8
10
|
|
|
9
11
|
- feat: add MTS API: \_\_UpdateComponentInfo ([#1485](https://github.com/lynx-family/lynx-stack/pull/1485))
|
|
@@ -16,9 +18,9 @@
|
|
|
16
18
|
|
|
17
19
|
- feat: add MTS API \_\_GetAttributeByName ([#1486](https://github.com/lynx-family/lynx-stack/pull/1486))
|
|
18
20
|
|
|
19
|
-
- Updated dependencies [[`b8f89e2`](https://github.com/lynx-family/lynx-stack/commit/b8f89e25f106a15ba9d70f2df06dfb684cbb6633), [`f76aae9`](https://github.com/lynx-family/lynx-stack/commit/f76aae9ea06abdc7022ba508d22f9f4eb00864e8), [`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)]:
|
|
20
|
-
- @lynx-js/web-
|
|
21
|
-
- @lynx-js/web-
|
|
21
|
+
- 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), [`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)]:
|
|
22
|
+
- @lynx-js/web-constants@0.15.6
|
|
23
|
+
- @lynx-js/web-style-transformer@0.15.6
|
|
22
24
|
|
|
23
25
|
## 0.15.5
|
|
24
26
|
|
|
@@ -166,25 +168,25 @@
|
|
|
166
168
|
lynxView.initI18nResources = [
|
|
167
169
|
{
|
|
168
170
|
options: {
|
|
169
|
-
locale:
|
|
170
|
-
channel:
|
|
171
|
-
fallback_url:
|
|
171
|
+
locale: 'en',
|
|
172
|
+
channel: '1',
|
|
173
|
+
fallback_url: '',
|
|
172
174
|
},
|
|
173
175
|
resource: {
|
|
174
|
-
hello:
|
|
175
|
-
lynx:
|
|
176
|
+
hello: 'hello',
|
|
177
|
+
lynx: 'lynx web platform1',
|
|
176
178
|
},
|
|
177
179
|
},
|
|
178
180
|
];
|
|
179
|
-
lynxView.addEventListener(
|
|
181
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
180
182
|
console.log(e);
|
|
181
183
|
});
|
|
182
184
|
|
|
183
185
|
// mts
|
|
184
186
|
_I18nResourceTranslation({
|
|
185
|
-
locale:
|
|
186
|
-
channel:
|
|
187
|
-
fallback_url:
|
|
187
|
+
locale: 'en',
|
|
188
|
+
channel: '1',
|
|
189
|
+
fallback_url: '',
|
|
188
190
|
});
|
|
189
191
|
```
|
|
190
192
|
|
|
@@ -442,6 +442,10 @@ export function createMainThreadGlobalThis(config) {
|
|
|
442
442
|
};
|
|
443
443
|
let release = '';
|
|
444
444
|
const isCSSOG = !pageConfig.enableCSSSelector;
|
|
445
|
+
const SystemInfo = {
|
|
446
|
+
...systemInfo,
|
|
447
|
+
...config.browserConfig,
|
|
448
|
+
};
|
|
445
449
|
const mtsGlobalThis = {
|
|
446
450
|
__ElementFromBinary,
|
|
447
451
|
__GetTemplateParts: rootDom.querySelectorAll
|
|
@@ -503,11 +507,8 @@ export function createMainThreadGlobalThis(config) {
|
|
|
503
507
|
__LoadLepusChunk,
|
|
504
508
|
__GetPageElement,
|
|
505
509
|
__globalProps: globalProps,
|
|
506
|
-
SystemInfo
|
|
507
|
-
|
|
508
|
-
...config.browserConfig,
|
|
509
|
-
},
|
|
510
|
-
lynx: createMainThreadLynx(config),
|
|
510
|
+
SystemInfo,
|
|
511
|
+
lynx: createMainThreadLynx(config, SystemInfo),
|
|
511
512
|
_ReportError: (err, _) => callbacks._ReportError(err, _, release),
|
|
512
513
|
_SetSourceMapRelease: (errInfo) => release = errInfo?.release,
|
|
513
514
|
__OnLifecycleEvent: callbacks.__OnLifecycleEvent,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { MainThreadLynx } from '@lynx-js/web-constants';
|
|
2
2
|
import { type MainThreadRuntimeConfig } from './createMainThreadGlobalThis.js';
|
|
3
|
-
export declare function createMainThreadLynx(config: MainThreadRuntimeConfig): MainThreadLynx;
|
|
3
|
+
export declare function createMainThreadLynx(config: MainThreadRuntimeConfig, SystemInfo: Record<string, any>): MainThreadLynx;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {} from './createMainThreadGlobalThis.js';
|
|
2
|
-
export function createMainThreadLynx(config) {
|
|
2
|
+
export function createMainThreadLynx(config, SystemInfo) {
|
|
3
3
|
return {
|
|
4
4
|
getJSContext() {
|
|
5
5
|
return config.jsContext;
|
|
@@ -15,6 +15,7 @@ export function createMainThreadLynx(config) {
|
|
|
15
15
|
return config.customSections[key]?.content;
|
|
16
16
|
},
|
|
17
17
|
markPipelineTiming: config.callbacks.markTiming,
|
|
18
|
+
SystemInfo,
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
//# sourceMappingURL=createMainThreadLynx.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-mainthread-apis-canary",
|
|
3
|
-
"version": "0.15.6
|
|
3
|
+
"version": "0.15.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"**/*.css"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.6
|
|
28
|
-
"@lynx-js/web-style-transformer": "npm:@lynx-js/web-style-transformer-canary@0.15.6
|
|
27
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.6",
|
|
28
|
+
"@lynx-js/web-style-transformer": "npm:@lynx-js/web-style-transformer-canary@0.15.6",
|
|
29
29
|
"hyphenate-style-name": "^1.1.0"
|
|
30
30
|
}
|
|
31
31
|
}
|