@lynx-js/web-core-canary 0.18.2 → 0.18.3-canary-20251104-e7d186a6

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.3-canary-20251104063141-e7d186a6fcf08fecf18b5ab82b004b955bb1a2b3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`fece7d0`](https://github.com/lynx-family/lynx-stack/commit/fece7d0a92fa76948488373757a27dff52a90437), [`c282f54`](https://github.com/lynx-family/lynx-stack/commit/c282f54b636d64e9cb899faaad7dcd8e5695544a)]:
8
+ - @lynx-js/web-mainthread-apis@0.18.3-canary-20251104063141-e7d186a6fcf08fecf18b5ab82b004b955bb1a2b3
9
+ - @lynx-js/web-elements@0.8.10-canary-20251104063141-e7d186a6fcf08fecf18b5ab82b004b955bb1a2b3
10
+ - @lynx-js/web-worker-runtime@0.18.3-canary-20251104063141-e7d186a6fcf08fecf18b5ab82b004b955bb1a2b3
11
+ - @lynx-js/web-constants@0.18.3-canary-20251104063141-e7d186a6fcf08fecf18b5ab82b004b955bb1a2b3
12
+ - @lynx-js/web-worker-rpc@0.18.3-canary-20251104063141-e7d186a6fcf08fecf18b5ab82b004b955bb1a2b3
13
+
3
14
  ## 0.18.2
4
15
 
5
16
  ### Patch Changes
@@ -380,25 +391,25 @@
380
391
  lynxView.initI18nResources = [
381
392
  {
382
393
  options: {
383
- locale: 'en',
384
- channel: '1',
385
- fallback_url: '',
394
+ locale: "en",
395
+ channel: "1",
396
+ fallback_url: "",
386
397
  },
387
398
  resource: {
388
- hello: 'hello',
389
- lynx: 'lynx web platform1',
399
+ hello: "hello",
400
+ lynx: "lynx web platform1",
390
401
  },
391
402
  },
392
403
  ];
393
- lynxView.addEventListener('i18nResourceMissed', (e) => {
404
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
394
405
  console.log(e);
395
406
  });
396
407
 
397
408
  // mts
398
409
  _I18nResourceTranslation({
399
- locale: 'en',
400
- channel: '1',
401
- fallback_url: '',
410
+ locale: "en",
411
+ channel: "1",
412
+ fallback_url: "",
402
413
  });
403
414
  ```
404
415
 
@@ -806,8 +817,8 @@
806
817
  }
807
818
  };`,
808
819
  ],
809
- { type: 'text/javascript' },
810
- ),
820
+ { type: "text/javascript" }
821
+ )
811
822
  ),
812
823
  };
813
824
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -922,8 +933,8 @@
922
933
  };
923
934
  };`,
924
935
  ],
925
- { type: 'text/javascript' },
926
- ),
936
+ { type: "text/javascript" }
937
+ )
927
938
  );
928
939
 
929
940
  const color_methods = URL.createObjectURL(
@@ -938,8 +949,8 @@
938
949
  };
939
950
  };`,
940
951
  ],
941
- { type: 'text/javascript' },
942
- ),
952
+ { type: "text/javascript" }
953
+ )
943
954
  );
944
955
 
945
956
  lynxView.napiModuleMap = {
@@ -956,7 +967,7 @@
956
967
 
957
968
  ```js
958
969
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
959
- if (name === 'getColor' && moduleName === 'color_methods') {
970
+ if (name === "getColor" && moduleName === "color_methods") {
960
971
  return data.color;
961
972
  }
962
973
  };
@@ -1035,8 +1046,8 @@
1035
1046
  }
1036
1047
  };`,
1037
1048
  ],
1038
- { type: 'text/javascript' },
1039
- ),
1049
+ { type: "text/javascript" }
1050
+ )
1040
1051
  );
1041
1052
  ```
1042
1053
 
@@ -1048,7 +1059,7 @@
1048
1059
 
1049
1060
  ```js
1050
1061
  lynxView.onNativeModulesCall = (name, data, callback) => {
1051
- if (name === 'getColor') {
1062
+ if (name === "getColor") {
1052
1063
  callback(data.color);
1053
1064
  }
1054
1065
  };
@@ -1058,7 +1069,7 @@
1058
1069
 
1059
1070
  ```js
1060
1071
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
1061
- if (name === 'getColor' && moduleName === 'bridge') {
1072
+ if (name === "getColor" && moduleName === "bridge") {
1062
1073
  return data.color;
1063
1074
  }
1064
1075
  };
@@ -1416,7 +1427,7 @@
1416
1427
  This flag changes the behaviour of cascading. It provide a way to do this
1417
1428
 
1418
1429
  ```jsx
1419
- <view class='class-a class-b' />;
1430
+ <view class="class-a class-b" />
1420
1431
  ```
1421
1432
 
1422
1433
  The class-b will override (cascading) styles of class-a.
@@ -1516,11 +1527,11 @@
1516
1527
  There is also a simple way to use this feature
1517
1528
 
1518
1529
  ```javascript
1519
- import { LynxCard } from '@lynx-js/web-core';
1520
- import { loadElement } from '@lynx-js/web-elements/lazy';
1521
- import '@lynx-js/web-elements/index.css';
1522
- import '@lynx-js/web-core/index.css';
1523
- import './index.css';
1530
+ import { LynxCard } from "@lynx-js/web-core";
1531
+ import { loadElement } from "@lynx-js/web-elements/lazy";
1532
+ import "@lynx-js/web-elements/index.css";
1533
+ import "@lynx-js/web-core/index.css";
1534
+ import "./index.css";
1524
1535
 
1525
1536
  const lynxcard = new LynxCard({
1526
1537
  ...beforeConfigs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.18.2",
3
+ "version": "0.18.3-canary-20251104-e7d186a6",
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.2",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.2",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.2",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.2"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.3-canary-20251104-e7d186a6",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.3-canary-20251104-e7d186a6",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.3-canary-20251104-e7d186a6",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.3-canary-20251104-e7d186a6"
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.9"
35
+ "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.10-canary-20251104-e7d186a6"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@lynx-js/lynx-core": "0.1.3",