@lynx-js/web-mainthread-apis-canary 0.15.6 → 0.15.7-canary-20250818-19021aba
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 +19 -9
- package/dist/createMainThreadGlobalThis.js +4 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @lynx-js/web-mainthread-apis
|
|
2
2
|
|
|
3
|
+
## 0.15.7-canary-20250818140150-19021abafe4e9cb78e5eadeeca39b92f269b02a5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: globalThis is never accessible in MTS ([#1531](https://github.com/lynx-family/lynx-stack/pull/1531))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`70863fb`](https://github.com/lynx-family/lynx-stack/commit/70863fbc311d8885ebda40855668097b0631f521)]:
|
|
10
|
+
- @lynx-js/web-constants@0.15.7-canary-20250818140150-19021abafe4e9cb78e5eadeeca39b92f269b02a5
|
|
11
|
+
- @lynx-js/web-style-transformer@0.15.7-canary-20250818140150-19021abafe4e9cb78e5eadeeca39b92f269b02a5
|
|
12
|
+
|
|
3
13
|
## 0.15.6
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -168,25 +178,25 @@
|
|
|
168
178
|
lynxView.initI18nResources = [
|
|
169
179
|
{
|
|
170
180
|
options: {
|
|
171
|
-
locale:
|
|
172
|
-
channel:
|
|
173
|
-
fallback_url:
|
|
181
|
+
locale: "en",
|
|
182
|
+
channel: "1",
|
|
183
|
+
fallback_url: "",
|
|
174
184
|
},
|
|
175
185
|
resource: {
|
|
176
|
-
hello:
|
|
177
|
-
lynx:
|
|
186
|
+
hello: "hello",
|
|
187
|
+
lynx: "lynx web platform1",
|
|
178
188
|
},
|
|
179
189
|
},
|
|
180
190
|
];
|
|
181
|
-
lynxView.addEventListener(
|
|
191
|
+
lynxView.addEventListener("i18nResourceMissed", (e) => {
|
|
182
192
|
console.log(e);
|
|
183
193
|
});
|
|
184
194
|
|
|
185
195
|
// mts
|
|
186
196
|
_I18nResourceTranslation({
|
|
187
|
-
locale:
|
|
188
|
-
channel:
|
|
189
|
-
fallback_url:
|
|
197
|
+
locale: "en",
|
|
198
|
+
channel: "1",
|
|
199
|
+
fallback_url: "",
|
|
190
200
|
});
|
|
191
201
|
```
|
|
192
202
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2023 The Lynx Authors. All rights reserved.
|
|
2
2
|
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
3
|
// LICENSE file in the root directory of this source tree.
|
|
4
|
-
import { lynxUniqueIdAttribute, systemInfo, parentComponentUniqueIdAttribute, componentIdAttribute, LynxEventNameToW3cByTagName, LynxEventNameToW3cCommon, lynxTagAttribute, W3cEventNameToLynx, cssIdAttribute, lynxDefaultDisplayLinearAttribute, __lynx_timing_flag, lynxDisposedAttribute, } from '@lynx-js/web-constants';
|
|
4
|
+
import { lynxUniqueIdAttribute, systemInfo, parentComponentUniqueIdAttribute, componentIdAttribute, LynxEventNameToW3cByTagName, LynxEventNameToW3cCommon, lynxTagAttribute, W3cEventNameToLynx, cssIdAttribute, lynxDefaultDisplayLinearAttribute, __lynx_timing_flag, lynxDisposedAttribute, globalDisallowedVars, } from '@lynx-js/web-constants';
|
|
5
5
|
import { globalMuteableVars } from '@lynx-js/web-constants';
|
|
6
6
|
import { createMainThreadLynx } from './createMainThreadLynx.js';
|
|
7
7
|
import { flattenStyleInfo, genCssContent, genCssOGInfo, transformToWebCss, } from './utils/processStyleInfo.js';
|
|
@@ -529,6 +529,9 @@ export function createMainThreadGlobalThis(config) {
|
|
|
529
529
|
};
|
|
530
530
|
mtsGlobalThis.globalThis = new Proxy(mtsGlobalThis, {
|
|
531
531
|
get: (target, prop) => {
|
|
532
|
+
if (typeof prop === 'string' && globalDisallowedVars.includes(prop)) {
|
|
533
|
+
return undefined;
|
|
534
|
+
}
|
|
532
535
|
if (prop === 'globalThis') {
|
|
533
536
|
return target;
|
|
534
537
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-mainthread-apis-canary",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.7-canary-20250818-19021aba",
|
|
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.
|
|
28
|
-
"@lynx-js/web-style-transformer": "npm:@lynx-js/web-style-transformer-canary@0.15.
|
|
27
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.7-canary-20250818-19021aba",
|
|
28
|
+
"@lynx-js/web-style-transformer": "npm:@lynx-js/web-style-transformer-canary@0.15.7-canary-20250818-19021aba",
|
|
29
29
|
"hyphenate-style-name": "^1.1.0"
|
|
30
30
|
}
|
|
31
31
|
}
|