@lynx-js/web-core-canary 0.19.3 → 0.19.4-canary-20251231-29d2e04f

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.19.4-canary-20251231064206-29d2e04fe915b6e7a54e204af10969aa928fb090
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`1bb269b`](https://github.com/lynx-family/lynx-stack/commit/1bb269b6c6f58fba293587a98f3fa8e3160cbbba), [`bba05e2`](https://github.com/lynx-family/lynx-stack/commit/bba05e2ed06cca8009ad415fd9777e8334a0887a), [`34065b5`](https://github.com/lynx-family/lynx-stack/commit/34065b5c34d4c753efe23c2752c539b319122248)]:
8
+ - @lynx-js/web-elements@0.10.1-canary-20251231064206-29d2e04fe915b6e7a54e204af10969aa928fb090
9
+ - @lynx-js/web-worker-rpc@0.19.4-canary-20251231064206-29d2e04fe915b6e7a54e204af10969aa928fb090
10
+ - @lynx-js/web-constants@0.19.4-canary-20251231064206-29d2e04fe915b6e7a54e204af10969aa928fb090
11
+ - @lynx-js/web-worker-runtime@0.19.4-canary-20251231064206-29d2e04fe915b6e7a54e204af10969aa928fb090
12
+ - @lynx-js/web-mainthread-apis@0.19.4-canary-20251231064206-29d2e04fe915b6e7a54e204af10969aa928fb090
13
+
3
14
  ## 0.19.3
4
15
 
5
16
  ### Patch Changes
@@ -460,25 +471,25 @@
460
471
  lynxView.initI18nResources = [
461
472
  {
462
473
  options: {
463
- locale: 'en',
464
- channel: '1',
465
- fallback_url: '',
474
+ locale: "en",
475
+ channel: "1",
476
+ fallback_url: "",
466
477
  },
467
478
  resource: {
468
- hello: 'hello',
469
- lynx: 'lynx web platform1',
479
+ hello: "hello",
480
+ lynx: "lynx web platform1",
470
481
  },
471
482
  },
472
483
  ];
473
- lynxView.addEventListener('i18nResourceMissed', (e) => {
484
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
474
485
  console.log(e);
475
486
  });
476
487
 
477
488
  // mts
478
489
  _I18nResourceTranslation({
479
- locale: 'en',
480
- channel: '1',
481
- fallback_url: '',
490
+ locale: "en",
491
+ channel: "1",
492
+ fallback_url: "",
482
493
  });
483
494
  ```
484
495
 
@@ -886,8 +897,8 @@
886
897
  }
887
898
  };`,
888
899
  ],
889
- { type: 'text/javascript' },
890
- ),
900
+ { type: "text/javascript" }
901
+ )
891
902
  ),
892
903
  };
893
904
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -1002,8 +1013,8 @@
1002
1013
  };
1003
1014
  };`,
1004
1015
  ],
1005
- { type: 'text/javascript' },
1006
- ),
1016
+ { type: "text/javascript" }
1017
+ )
1007
1018
  );
1008
1019
 
1009
1020
  const color_methods = URL.createObjectURL(
@@ -1018,8 +1029,8 @@
1018
1029
  };
1019
1030
  };`,
1020
1031
  ],
1021
- { type: 'text/javascript' },
1022
- ),
1032
+ { type: "text/javascript" }
1033
+ )
1023
1034
  );
1024
1035
 
1025
1036
  lynxView.napiModuleMap = {
@@ -1036,7 +1047,7 @@
1036
1047
 
1037
1048
  ```js
1038
1049
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
1039
- if (name === 'getColor' && moduleName === 'color_methods') {
1050
+ if (name === "getColor" && moduleName === "color_methods") {
1040
1051
  return data.color;
1041
1052
  }
1042
1053
  };
@@ -1115,8 +1126,8 @@
1115
1126
  }
1116
1127
  };`,
1117
1128
  ],
1118
- { type: 'text/javascript' },
1119
- ),
1129
+ { type: "text/javascript" }
1130
+ )
1120
1131
  );
1121
1132
  ```
1122
1133
 
@@ -1128,7 +1139,7 @@
1128
1139
 
1129
1140
  ```js
1130
1141
  lynxView.onNativeModulesCall = (name, data, callback) => {
1131
- if (name === 'getColor') {
1142
+ if (name === "getColor") {
1132
1143
  callback(data.color);
1133
1144
  }
1134
1145
  };
@@ -1138,7 +1149,7 @@
1138
1149
 
1139
1150
  ```js
1140
1151
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
1141
- if (name === 'getColor' && moduleName === 'bridge') {
1152
+ if (name === "getColor" && moduleName === "bridge") {
1142
1153
  return data.color;
1143
1154
  }
1144
1155
  };
@@ -1496,7 +1507,7 @@
1496
1507
  This flag changes the behaviour of cascading. It provide a way to do this
1497
1508
 
1498
1509
  ```jsx
1499
- <view class='class-a class-b' />;
1510
+ <view class="class-a class-b" />
1500
1511
  ```
1501
1512
 
1502
1513
  The class-b will override (cascading) styles of class-a.
@@ -1596,11 +1607,11 @@
1596
1607
  There is also a simple way to use this feature
1597
1608
 
1598
1609
  ```javascript
1599
- import { LynxCard } from '@lynx-js/web-core';
1600
- import { loadElement } from '@lynx-js/web-elements/lazy';
1601
- import '@lynx-js/web-elements/index.css';
1602
- import '@lynx-js/web-core/index.css';
1603
- import './index.css';
1610
+ import { LynxCard } from "@lynx-js/web-core";
1611
+ import { loadElement } from "@lynx-js/web-elements/lazy";
1612
+ import "@lynx-js/web-elements/index.css";
1613
+ import "@lynx-js/web-core/index.css";
1614
+ import "./index.css";
1604
1615
 
1605
1616
  const lynxcard = new LynxCard({
1606
1617
  ...beforeConfigs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.19.3",
3
+ "version": "0.19.4-canary-20251231-29d2e04f",
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.19.3",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.3",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.3",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.3"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.4-canary-20251231-29d2e04f",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.4-canary-20251231-29d2e04f",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.4-canary-20251231-29d2e04f",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.4-canary-20251231-29d2e04f"
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.10.0"
35
+ "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.10.1-canary-20251231-29d2e04f"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@lynx-js/lynx-core": "0.1.3",