@lynx-js/web-core-canary 0.19.0 → 0.19.1-canary-20251210-47cc2bc6

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,15 @@
1
1
  # @lynx-js/web-core
2
2
 
3
+ ## 0.19.1-canary-20251210073827-47cc2bc694d0da12b41d55e459c4e78338e8b77a
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`f7256d5`](https://github.com/lynx-family/lynx-stack/commit/f7256d5bd920b2f6c0cadab44455585c35621b35)]:
8
+ - @lynx-js/web-mainthread-apis@0.19.1-canary-20251210073827-47cc2bc694d0da12b41d55e459c4e78338e8b77a
9
+ - @lynx-js/web-worker-runtime@0.19.1-canary-20251210073827-47cc2bc694d0da12b41d55e459c4e78338e8b77a
10
+ - @lynx-js/web-constants@0.19.1-canary-20251210073827-47cc2bc694d0da12b41d55e459c4e78338e8b77a
11
+ - @lynx-js/web-worker-rpc@0.19.1-canary-20251210073827-47cc2bc694d0da12b41d55e459c4e78338e8b77a
12
+
3
13
  ## 0.19.0
4
14
 
5
15
  ### Minor Changes
@@ -416,25 +426,25 @@
416
426
  lynxView.initI18nResources = [
417
427
  {
418
428
  options: {
419
- locale: 'en',
420
- channel: '1',
421
- fallback_url: '',
429
+ locale: "en",
430
+ channel: "1",
431
+ fallback_url: "",
422
432
  },
423
433
  resource: {
424
- hello: 'hello',
425
- lynx: 'lynx web platform1',
434
+ hello: "hello",
435
+ lynx: "lynx web platform1",
426
436
  },
427
437
  },
428
438
  ];
429
- lynxView.addEventListener('i18nResourceMissed', (e) => {
439
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
430
440
  console.log(e);
431
441
  });
432
442
 
433
443
  // mts
434
444
  _I18nResourceTranslation({
435
- locale: 'en',
436
- channel: '1',
437
- fallback_url: '',
445
+ locale: "en",
446
+ channel: "1",
447
+ fallback_url: "",
438
448
  });
439
449
  ```
440
450
 
@@ -842,8 +852,8 @@
842
852
  }
843
853
  };`,
844
854
  ],
845
- { type: 'text/javascript' },
846
- ),
855
+ { type: "text/javascript" }
856
+ )
847
857
  ),
848
858
  };
849
859
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -958,8 +968,8 @@
958
968
  };
959
969
  };`,
960
970
  ],
961
- { type: 'text/javascript' },
962
- ),
971
+ { type: "text/javascript" }
972
+ )
963
973
  );
964
974
 
965
975
  const color_methods = URL.createObjectURL(
@@ -974,8 +984,8 @@
974
984
  };
975
985
  };`,
976
986
  ],
977
- { type: 'text/javascript' },
978
- ),
987
+ { type: "text/javascript" }
988
+ )
979
989
  );
980
990
 
981
991
  lynxView.napiModuleMap = {
@@ -992,7 +1002,7 @@
992
1002
 
993
1003
  ```js
994
1004
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
995
- if (name === 'getColor' && moduleName === 'color_methods') {
1005
+ if (name === "getColor" && moduleName === "color_methods") {
996
1006
  return data.color;
997
1007
  }
998
1008
  };
@@ -1071,8 +1081,8 @@
1071
1081
  }
1072
1082
  };`,
1073
1083
  ],
1074
- { type: 'text/javascript' },
1075
- ),
1084
+ { type: "text/javascript" }
1085
+ )
1076
1086
  );
1077
1087
  ```
1078
1088
 
@@ -1084,7 +1094,7 @@
1084
1094
 
1085
1095
  ```js
1086
1096
  lynxView.onNativeModulesCall = (name, data, callback) => {
1087
- if (name === 'getColor') {
1097
+ if (name === "getColor") {
1088
1098
  callback(data.color);
1089
1099
  }
1090
1100
  };
@@ -1094,7 +1104,7 @@
1094
1104
 
1095
1105
  ```js
1096
1106
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
1097
- if (name === 'getColor' && moduleName === 'bridge') {
1107
+ if (name === "getColor" && moduleName === "bridge") {
1098
1108
  return data.color;
1099
1109
  }
1100
1110
  };
@@ -1452,7 +1462,7 @@
1452
1462
  This flag changes the behaviour of cascading. It provide a way to do this
1453
1463
 
1454
1464
  ```jsx
1455
- <view class='class-a class-b' />;
1465
+ <view class="class-a class-b" />
1456
1466
  ```
1457
1467
 
1458
1468
  The class-b will override (cascading) styles of class-a.
@@ -1552,11 +1562,11 @@
1552
1562
  There is also a simple way to use this feature
1553
1563
 
1554
1564
  ```javascript
1555
- import { LynxCard } from '@lynx-js/web-core';
1556
- import { loadElement } from '@lynx-js/web-elements/lazy';
1557
- import '@lynx-js/web-elements/index.css';
1558
- import '@lynx-js/web-core/index.css';
1559
- import './index.css';
1565
+ import { LynxCard } from "@lynx-js/web-core";
1566
+ import { loadElement } from "@lynx-js/web-elements/lazy";
1567
+ import "@lynx-js/web-elements/index.css";
1568
+ import "@lynx-js/web-core/index.css";
1569
+ import "./index.css";
1560
1570
 
1561
1571
  const lynxcard = new LynxCard({
1562
1572
  ...beforeConfigs,
@@ -90,7 +90,7 @@ export function createRenderAllOnUI(mainToBackgroundRpc, shadowRoot, loadTemplat
90
90
  }, triggerI18nResourceFallback, (initI18nResources) => {
91
91
  i18nResources.setData(initI18nResources);
92
92
  return i18nResources;
93
- }, loadTemplate);
93
+ }, loadTemplate, undefined, true);
94
94
  const start = async (configs) => {
95
95
  if (ssrDumpInfo) {
96
96
  const lynxUniqueIdToElement = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.19.0",
3
+ "version": "0.19.1-canary-20251210-47cc2bc6",
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.4",
28
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.0",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.0",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.0",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.0"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.1-canary-20251210-47cc2bc6",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.1-canary-20251210-47cc2bc6",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.1-canary-20251210-47cc2bc6",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.1-canary-20251210-47cc2bc6"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@lynx-js/lynx-core": "0.1.3",