@lynx-js/web-core-canary 0.19.5 → 0.19.6-canary-20260112-9e774c8d

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 +36 -26
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @lynx-js/web-core
2
2
 
3
+ ## 0.19.6-canary-20260112113628-9e774c8db22e4b3e5d677cf8347f3f29869bc65f
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`6c2b51a`](https://github.com/lynx-family/lynx-stack/commit/6c2b51a661ae244eb40671f63f29ee971e084ed4)]:
8
+ - @lynx-js/web-mainthread-apis@0.19.6-canary-20260112113628-9e774c8db22e4b3e5d677cf8347f3f29869bc65f
9
+ - @lynx-js/web-constants@0.19.6-canary-20260112113628-9e774c8db22e4b3e5d677cf8347f3f29869bc65f
10
+ - @lynx-js/web-worker-runtime@0.19.6-canary-20260112113628-9e774c8db22e4b3e5d677cf8347f3f29869bc65f
11
+ - @lynx-js/web-worker-rpc@0.19.6-canary-20260112113628-9e774c8db22e4b3e5d677cf8347f3f29869bc65f
12
+
3
13
  ## 0.19.5
4
14
 
5
15
  ### Patch Changes
@@ -482,25 +492,25 @@
482
492
  lynxView.initI18nResources = [
483
493
  {
484
494
  options: {
485
- locale: 'en',
486
- channel: '1',
487
- fallback_url: '',
495
+ locale: "en",
496
+ channel: "1",
497
+ fallback_url: "",
488
498
  },
489
499
  resource: {
490
- hello: 'hello',
491
- lynx: 'lynx web platform1',
500
+ hello: "hello",
501
+ lynx: "lynx web platform1",
492
502
  },
493
503
  },
494
504
  ];
495
- lynxView.addEventListener('i18nResourceMissed', (e) => {
505
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
496
506
  console.log(e);
497
507
  });
498
508
 
499
509
  // mts
500
510
  _I18nResourceTranslation({
501
- locale: 'en',
502
- channel: '1',
503
- fallback_url: '',
511
+ locale: "en",
512
+ channel: "1",
513
+ fallback_url: "",
504
514
  });
505
515
  ```
506
516
 
@@ -908,8 +918,8 @@
908
918
  }
909
919
  };`,
910
920
  ],
911
- { type: 'text/javascript' },
912
- ),
921
+ { type: "text/javascript" }
922
+ )
913
923
  ),
914
924
  };
915
925
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -1024,8 +1034,8 @@
1024
1034
  };
1025
1035
  };`,
1026
1036
  ],
1027
- { type: 'text/javascript' },
1028
- ),
1037
+ { type: "text/javascript" }
1038
+ )
1029
1039
  );
1030
1040
 
1031
1041
  const color_methods = URL.createObjectURL(
@@ -1040,8 +1050,8 @@
1040
1050
  };
1041
1051
  };`,
1042
1052
  ],
1043
- { type: 'text/javascript' },
1044
- ),
1053
+ { type: "text/javascript" }
1054
+ )
1045
1055
  );
1046
1056
 
1047
1057
  lynxView.napiModuleMap = {
@@ -1058,7 +1068,7 @@
1058
1068
 
1059
1069
  ```js
1060
1070
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
1061
- if (name === 'getColor' && moduleName === 'color_methods') {
1071
+ if (name === "getColor" && moduleName === "color_methods") {
1062
1072
  return data.color;
1063
1073
  }
1064
1074
  };
@@ -1137,8 +1147,8 @@
1137
1147
  }
1138
1148
  };`,
1139
1149
  ],
1140
- { type: 'text/javascript' },
1141
- ),
1150
+ { type: "text/javascript" }
1151
+ )
1142
1152
  );
1143
1153
  ```
1144
1154
 
@@ -1150,7 +1160,7 @@
1150
1160
 
1151
1161
  ```js
1152
1162
  lynxView.onNativeModulesCall = (name, data, callback) => {
1153
- if (name === 'getColor') {
1163
+ if (name === "getColor") {
1154
1164
  callback(data.color);
1155
1165
  }
1156
1166
  };
@@ -1160,7 +1170,7 @@
1160
1170
 
1161
1171
  ```js
1162
1172
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
1163
- if (name === 'getColor' && moduleName === 'bridge') {
1173
+ if (name === "getColor" && moduleName === "bridge") {
1164
1174
  return data.color;
1165
1175
  }
1166
1176
  };
@@ -1518,7 +1528,7 @@
1518
1528
  This flag changes the behaviour of cascading. It provide a way to do this
1519
1529
 
1520
1530
  ```jsx
1521
- <view class='class-a class-b' />;
1531
+ <view class="class-a class-b" />
1522
1532
  ```
1523
1533
 
1524
1534
  The class-b will override (cascading) styles of class-a.
@@ -1618,11 +1628,11 @@
1618
1628
  There is also a simple way to use this feature
1619
1629
 
1620
1630
  ```javascript
1621
- import { LynxCard } from '@lynx-js/web-core';
1622
- import { loadElement } from '@lynx-js/web-elements/lazy';
1623
- import '@lynx-js/web-elements/index.css';
1624
- import '@lynx-js/web-core/index.css';
1625
- import './index.css';
1631
+ import { LynxCard } from "@lynx-js/web-core";
1632
+ import { loadElement } from "@lynx-js/web-elements/lazy";
1633
+ import "@lynx-js/web-elements/index.css";
1634
+ import "@lynx-js/web-core/index.css";
1635
+ import "./index.css";
1626
1636
 
1627
1637
  const lynxcard = new LynxCard({
1628
1638
  ...beforeConfigs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.19.5",
3
+ "version": "0.19.6-canary-20260112-9e774c8d",
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.5",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.5",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.5",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.5"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.6-canary-20260112-9e774c8d",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.6-canary-20260112-9e774c8d",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6-canary-20260112-9e774c8d",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.6-canary-20260112-9e774c8d"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@lynx-js/lynx-core": "0.1.3",