@lynx-js/web-core-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.
Files changed (2) hide show
  1. package/CHANGELOG.md +37 -26
  2. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @lynx-js/web-core
2
2
 
3
+ ## 0.18.5-canary-20251202065555-46bd5eea324d0c8348f44b3d0b437e745411ab5c
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`55cb796`](https://github.com/lynx-family/lynx-stack/commit/55cb79610b397ede867ad89496c432f8046a6e64), [`46bd5ee`](https://github.com/lynx-family/lynx-stack/commit/46bd5eea324d0c8348f44b3d0b437e745411ab5c)]:
8
+ - @lynx-js/web-elements@0.8.12-canary-20251202065555-46bd5eea324d0c8348f44b3d0b437e745411ab5c
9
+ - @lynx-js/web-mainthread-apis@0.18.5-canary-20251202065555-46bd5eea324d0c8348f44b3d0b437e745411ab5c
10
+ - @lynx-js/web-worker-runtime@0.18.5-canary-20251202065555-46bd5eea324d0c8348f44b3d0b437e745411ab5c
11
+ - @lynx-js/web-constants@0.18.5-canary-20251202065555-46bd5eea324d0c8348f44b3d0b437e745411ab5c
12
+ - @lynx-js/web-worker-rpc@0.18.5-canary-20251202065555-46bd5eea324d0c8348f44b3d0b437e745411ab5c
13
+
3
14
  ## 0.18.4
4
15
 
5
16
  ### Patch Changes
@@ -402,25 +413,25 @@
402
413
  lynxView.initI18nResources = [
403
414
  {
404
415
  options: {
405
- locale: 'en',
406
- channel: '1',
407
- fallback_url: '',
416
+ locale: "en",
417
+ channel: "1",
418
+ fallback_url: "",
408
419
  },
409
420
  resource: {
410
- hello: 'hello',
411
- lynx: 'lynx web platform1',
421
+ hello: "hello",
422
+ lynx: "lynx web platform1",
412
423
  },
413
424
  },
414
425
  ];
415
- lynxView.addEventListener('i18nResourceMissed', (e) => {
426
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
416
427
  console.log(e);
417
428
  });
418
429
 
419
430
  // mts
420
431
  _I18nResourceTranslation({
421
- locale: 'en',
422
- channel: '1',
423
- fallback_url: '',
432
+ locale: "en",
433
+ channel: "1",
434
+ fallback_url: "",
424
435
  });
425
436
  ```
426
437
 
@@ -828,8 +839,8 @@
828
839
  }
829
840
  };`,
830
841
  ],
831
- { type: 'text/javascript' },
832
- ),
842
+ { type: "text/javascript" }
843
+ )
833
844
  ),
834
845
  };
835
846
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -944,8 +955,8 @@
944
955
  };
945
956
  };`,
946
957
  ],
947
- { type: 'text/javascript' },
948
- ),
958
+ { type: "text/javascript" }
959
+ )
949
960
  );
950
961
 
951
962
  const color_methods = URL.createObjectURL(
@@ -960,8 +971,8 @@
960
971
  };
961
972
  };`,
962
973
  ],
963
- { type: 'text/javascript' },
964
- ),
974
+ { type: "text/javascript" }
975
+ )
965
976
  );
966
977
 
967
978
  lynxView.napiModuleMap = {
@@ -978,7 +989,7 @@
978
989
 
979
990
  ```js
980
991
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
981
- if (name === 'getColor' && moduleName === 'color_methods') {
992
+ if (name === "getColor" && moduleName === "color_methods") {
982
993
  return data.color;
983
994
  }
984
995
  };
@@ -1057,8 +1068,8 @@
1057
1068
  }
1058
1069
  };`,
1059
1070
  ],
1060
- { type: 'text/javascript' },
1061
- ),
1071
+ { type: "text/javascript" }
1072
+ )
1062
1073
  );
1063
1074
  ```
1064
1075
 
@@ -1070,7 +1081,7 @@
1070
1081
 
1071
1082
  ```js
1072
1083
  lynxView.onNativeModulesCall = (name, data, callback) => {
1073
- if (name === 'getColor') {
1084
+ if (name === "getColor") {
1074
1085
  callback(data.color);
1075
1086
  }
1076
1087
  };
@@ -1080,7 +1091,7 @@
1080
1091
 
1081
1092
  ```js
1082
1093
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
1083
- if (name === 'getColor' && moduleName === 'bridge') {
1094
+ if (name === "getColor" && moduleName === "bridge") {
1084
1095
  return data.color;
1085
1096
  }
1086
1097
  };
@@ -1438,7 +1449,7 @@
1438
1449
  This flag changes the behaviour of cascading. It provide a way to do this
1439
1450
 
1440
1451
  ```jsx
1441
- <view class='class-a class-b' />;
1452
+ <view class="class-a class-b" />
1442
1453
  ```
1443
1454
 
1444
1455
  The class-b will override (cascading) styles of class-a.
@@ -1538,11 +1549,11 @@
1538
1549
  There is also a simple way to use this feature
1539
1550
 
1540
1551
  ```javascript
1541
- import { LynxCard } from '@lynx-js/web-core';
1542
- import { loadElement } from '@lynx-js/web-elements/lazy';
1543
- import '@lynx-js/web-elements/index.css';
1544
- import '@lynx-js/web-core/index.css';
1545
- import './index.css';
1552
+ import { LynxCard } from "@lynx-js/web-core";
1553
+ import { loadElement } from "@lynx-js/web-elements/lazy";
1554
+ import "@lynx-js/web-elements/index.css";
1555
+ import "@lynx-js/web-core/index.css";
1556
+ import "./index.css";
1546
1557
 
1547
1558
  const lynxcard = new LynxCard({
1548
1559
  ...beforeConfigs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.18.4",
3
+ "version": "0.18.5-canary-20251202-46bd5eea",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -25,14 +25,14 @@
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.18.4",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.4",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.4",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.4"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.5-canary-20251202-46bd5eea",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.5-canary-20251202-46bd5eea",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.5-canary-20251202-46bd5eea",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.5-canary-20251202-46bd5eea"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@lynx-js/lynx-core": "0.1.3",
35
- "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.11"
35
+ "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.12-canary-20251202-46bd5eea"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@lynx-js/lynx-core": "0.1.3",