@lynx-js/web-mainthread-apis-canary 0.18.4 → 0.18.5-canary-20251202-46bd5eea

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,5 +1,14 @@
1
1
  # @lynx-js/web-mainthread-apis
2
2
 
3
+ ## 0.18.5-canary-20251202065555-46bd5eea324d0c8348f44b3d0b437e745411ab5c
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: the l-p-comp-uid of page should be '1' ([#1970](https://github.com/lynx-family/lynx-stack/pull/1970))
8
+
9
+ - Updated dependencies []:
10
+ - @lynx-js/web-constants@0.18.5-canary-20251202065555-46bd5eea324d0c8348f44b3d0b437e745411ab5c
11
+
3
12
  ## 0.18.4
4
13
 
5
14
  ### Patch Changes
@@ -303,25 +312,25 @@
303
312
  lynxView.initI18nResources = [
304
313
  {
305
314
  options: {
306
- locale: 'en',
307
- channel: '1',
308
- fallback_url: '',
315
+ locale: "en",
316
+ channel: "1",
317
+ fallback_url: "",
309
318
  },
310
319
  resource: {
311
- hello: 'hello',
312
- lynx: 'lynx web platform1',
320
+ hello: "hello",
321
+ lynx: "lynx web platform1",
313
322
  },
314
323
  },
315
324
  ];
316
- lynxView.addEventListener('i18nResourceMissed', (e) => {
325
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
317
326
  console.log(e);
318
327
  });
319
328
 
320
329
  // mts
321
330
  _I18nResourceTranslation({
322
- locale: 'en',
323
- channel: '1',
324
- fallback_url: '',
331
+ locale: "en",
332
+ channel: "1",
333
+ fallback_url: "",
325
334
  });
326
335
  ```
327
336
 
@@ -210,7 +210,7 @@ export function createMainThreadGlobalThis(config) {
210
210
  const page = __CreateElement('page', 0);
211
211
  page.setAttribute('part', 'page');
212
212
  page.setAttribute(cssIdAttribute, cssID + '');
213
- page.setAttribute(parentComponentUniqueIdAttribute, '0');
213
+ page.setAttribute(parentComponentUniqueIdAttribute, '1');
214
214
  page.setAttribute(componentIdAttribute, componentID);
215
215
  __MarkTemplateElement(page);
216
216
  if (pageConfig.defaultDisplayLinear === false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-mainthread-apis-canary",
3
- "version": "0.18.4",
3
+ "version": "0.18.5-canary-20251202-46bd5eea",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -26,7 +26,7 @@
26
26
  "**/*.css"
27
27
  ],
28
28
  "dependencies": {
29
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.4",
29
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.5-canary-20251202-46bd5eea",
30
30
  "hyphenate-style-name": "^1.1.0",
31
31
  "wasm-feature-detect": "^1.8.0"
32
32
  },