@lynx-js/web-core-canary 0.15.6 → 0.15.7-canary-20250818-19021aba

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.15.7-canary-20250818140150-19021abafe4e9cb78e5eadeeca39b92f269b02a5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`70863fb`](https://github.com/lynx-family/lynx-stack/commit/70863fbc311d8885ebda40855668097b0631f521)]:
8
+ - @lynx-js/web-mainthread-apis@0.15.7-canary-20250818140150-19021abafe4e9cb78e5eadeeca39b92f269b02a5
9
+ - @lynx-js/web-constants@0.15.7-canary-20250818140150-19021abafe4e9cb78e5eadeeca39b92f269b02a5
10
+ - @lynx-js/web-worker-runtime@0.15.7-canary-20250818140150-19021abafe4e9cb78e5eadeeca39b92f269b02a5
11
+ - @lynx-js/web-worker-rpc@0.15.7-canary-20250818140150-19021abafe4e9cb78e5eadeeca39b92f269b02a5
12
+
3
13
  ## 0.15.6
4
14
 
5
15
  ### Patch Changes
@@ -204,25 +214,25 @@
204
214
  lynxView.initI18nResources = [
205
215
  {
206
216
  options: {
207
- locale: 'en',
208
- channel: '1',
209
- fallback_url: '',
217
+ locale: "en",
218
+ channel: "1",
219
+ fallback_url: "",
210
220
  },
211
221
  resource: {
212
- hello: 'hello',
213
- lynx: 'lynx web platform1',
222
+ hello: "hello",
223
+ lynx: "lynx web platform1",
214
224
  },
215
225
  },
216
226
  ];
217
- lynxView.addEventListener('i18nResourceMissed', (e) => {
227
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
218
228
  console.log(e);
219
229
  });
220
230
 
221
231
  // mts
222
232
  _I18nResourceTranslation({
223
- locale: 'en',
224
- channel: '1',
225
- fallback_url: '',
233
+ locale: "en",
234
+ channel: "1",
235
+ fallback_url: "",
226
236
  });
227
237
  ```
228
238
 
@@ -630,8 +640,8 @@
630
640
  }
631
641
  };`,
632
642
  ],
633
- { type: 'text/javascript' },
634
- ),
643
+ { type: "text/javascript" }
644
+ )
635
645
  ),
636
646
  };
637
647
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -746,8 +756,8 @@
746
756
  };
747
757
  };`,
748
758
  ],
749
- { type: 'text/javascript' },
750
- ),
759
+ { type: "text/javascript" }
760
+ )
751
761
  );
752
762
 
753
763
  const color_methods = URL.createObjectURL(
@@ -762,8 +772,8 @@
762
772
  };
763
773
  };`,
764
774
  ],
765
- { type: 'text/javascript' },
766
- ),
775
+ { type: "text/javascript" }
776
+ )
767
777
  );
768
778
 
769
779
  lynxView.napiModuleMap = {
@@ -780,7 +790,7 @@
780
790
 
781
791
  ```js
782
792
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
783
- if (name === 'getColor' && moduleName === 'color_methods') {
793
+ if (name === "getColor" && moduleName === "color_methods") {
784
794
  return data.color;
785
795
  }
786
796
  };
@@ -859,8 +869,8 @@
859
869
  }
860
870
  };`,
861
871
  ],
862
- { type: 'text/javascript' },
863
- ),
872
+ { type: "text/javascript" }
873
+ )
864
874
  );
865
875
  ```
866
876
 
@@ -872,7 +882,7 @@
872
882
 
873
883
  ```js
874
884
  lynxView.onNativeModulesCall = (name, data, callback) => {
875
- if (name === 'getColor') {
885
+ if (name === "getColor") {
876
886
  callback(data.color);
877
887
  }
878
888
  };
@@ -882,7 +892,7 @@
882
892
 
883
893
  ```js
884
894
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
885
- if (name === 'getColor' && moduleName === 'bridge') {
895
+ if (name === "getColor" && moduleName === "bridge") {
886
896
  return data.color;
887
897
  }
888
898
  };
@@ -1240,7 +1250,7 @@
1240
1250
  This flag changes the behaviour of cascading. It provide a way to do this
1241
1251
 
1242
1252
  ```jsx
1243
- <view class='class-a class-b' />;
1253
+ <view class="class-a class-b" />
1244
1254
  ```
1245
1255
 
1246
1256
  The class-b will override (cascading) styles of class-a.
@@ -1340,11 +1350,11 @@
1340
1350
  There is also a simple way to use this feature
1341
1351
 
1342
1352
  ```javascript
1343
- import { LynxCard } from '@lynx-js/web-core';
1344
- import { loadElement } from '@lynx-js/web-elements/lazy';
1345
- import '@lynx-js/web-elements/index.css';
1346
- import '@lynx-js/web-core/index.css';
1347
- import './index.css';
1353
+ import { LynxCard } from "@lynx-js/web-core";
1354
+ import { loadElement } from "@lynx-js/web-elements/lazy";
1355
+ import "@lynx-js/web-elements/index.css";
1356
+ import "@lynx-js/web-core/index.css";
1357
+ import "./index.css";
1348
1358
 
1349
1359
  const lynxcard = new LynxCard({
1350
1360
  ...beforeConfigs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.15.6",
3
+ "version": "0.15.7-canary-20250818-19021aba",
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.3",
28
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.6",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.6",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.6",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.15.6"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.7-canary-20250818-19021aba",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.7-canary-20250818-19021aba",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.7-canary-20250818-19021aba",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.15.7-canary-20250818-19021aba"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@lynx-js/lynx-core": "0.1.3",