@lynx-js/web-core-canary 0.16.0-canary-20250830-d7d0b9b9 → 0.16.0

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 +32 -32
  2. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lynx-js/web-core
2
2
 
3
- ## 0.16.0-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
3
+ ## 0.16.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -25,11 +25,11 @@
25
25
  - fix: the SystemInfo in bts should be assigned to the globalThis ([#1599](https://github.com/lynx-family/lynx-stack/pull/1599))
26
26
 
27
27
  - Updated dependencies [[`1a32dd8`](https://github.com/lynx-family/lynx-stack/commit/1a32dd886fe736c95639f67028cf7685377d9769), [`bb53d9a`](https://github.com/lynx-family/lynx-stack/commit/bb53d9a035f607e7c89952098d4ed77877a2e3c1), [`1a32dd8`](https://github.com/lynx-family/lynx-stack/commit/1a32dd886fe736c95639f67028cf7685377d9769), [`c1f8715`](https://github.com/lynx-family/lynx-stack/commit/c1f8715a81b2e69ff46fc363013626db4468c209)]:
28
- - @lynx-js/web-mainthread-apis@0.16.0-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
29
- - @lynx-js/web-constants@0.16.0-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
30
- - @lynx-js/web-worker-runtime@0.16.0-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
31
- - @lynx-js/offscreen-document@0.1.4-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
32
- - @lynx-js/web-worker-rpc@0.16.0-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
28
+ - @lynx-js/web-mainthread-apis@0.16.0
29
+ - @lynx-js/web-constants@0.16.0
30
+ - @lynx-js/web-worker-runtime@0.16.0
31
+ - @lynx-js/offscreen-document@0.1.4
32
+ - @lynx-js/web-worker-rpc@0.16.0
33
33
 
34
34
  ## 0.15.7
35
35
 
@@ -247,25 +247,25 @@
247
247
  lynxView.initI18nResources = [
248
248
  {
249
249
  options: {
250
- locale: "en",
251
- channel: "1",
252
- fallback_url: "",
250
+ locale: 'en',
251
+ channel: '1',
252
+ fallback_url: '',
253
253
  },
254
254
  resource: {
255
- hello: "hello",
256
- lynx: "lynx web platform1",
255
+ hello: 'hello',
256
+ lynx: 'lynx web platform1',
257
257
  },
258
258
  },
259
259
  ];
260
- lynxView.addEventListener("i18nResourceMissed", (e) => {
260
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
261
261
  console.log(e);
262
262
  });
263
263
 
264
264
  // mts
265
265
  _I18nResourceTranslation({
266
- locale: "en",
267
- channel: "1",
268
- fallback_url: "",
266
+ locale: 'en',
267
+ channel: '1',
268
+ fallback_url: '',
269
269
  });
270
270
  ```
271
271
 
@@ -673,8 +673,8 @@
673
673
  }
674
674
  };`,
675
675
  ],
676
- { type: "text/javascript" }
677
- )
676
+ { type: 'text/javascript' },
677
+ ),
678
678
  ),
679
679
  };
680
680
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -789,8 +789,8 @@
789
789
  };
790
790
  };`,
791
791
  ],
792
- { type: "text/javascript" }
793
- )
792
+ { type: 'text/javascript' },
793
+ ),
794
794
  );
795
795
 
796
796
  const color_methods = URL.createObjectURL(
@@ -805,8 +805,8 @@
805
805
  };
806
806
  };`,
807
807
  ],
808
- { type: "text/javascript" }
809
- )
808
+ { type: 'text/javascript' },
809
+ ),
810
810
  );
811
811
 
812
812
  lynxView.napiModuleMap = {
@@ -823,7 +823,7 @@
823
823
 
824
824
  ```js
825
825
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
826
- if (name === "getColor" && moduleName === "color_methods") {
826
+ if (name === 'getColor' && moduleName === 'color_methods') {
827
827
  return data.color;
828
828
  }
829
829
  };
@@ -902,8 +902,8 @@
902
902
  }
903
903
  };`,
904
904
  ],
905
- { type: "text/javascript" }
906
- )
905
+ { type: 'text/javascript' },
906
+ ),
907
907
  );
908
908
  ```
909
909
 
@@ -915,7 +915,7 @@
915
915
 
916
916
  ```js
917
917
  lynxView.onNativeModulesCall = (name, data, callback) => {
918
- if (name === "getColor") {
918
+ if (name === 'getColor') {
919
919
  callback(data.color);
920
920
  }
921
921
  };
@@ -925,7 +925,7 @@
925
925
 
926
926
  ```js
927
927
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
928
- if (name === "getColor" && moduleName === "bridge") {
928
+ if (name === 'getColor' && moduleName === 'bridge') {
929
929
  return data.color;
930
930
  }
931
931
  };
@@ -1283,7 +1283,7 @@
1283
1283
  This flag changes the behaviour of cascading. It provide a way to do this
1284
1284
 
1285
1285
  ```jsx
1286
- <view class="class-a class-b" />
1286
+ <view class='class-a class-b' />;
1287
1287
  ```
1288
1288
 
1289
1289
  The class-b will override (cascading) styles of class-a.
@@ -1383,11 +1383,11 @@
1383
1383
  There is also a simple way to use this feature
1384
1384
 
1385
1385
  ```javascript
1386
- import { LynxCard } from "@lynx-js/web-core";
1387
- import { loadElement } from "@lynx-js/web-elements/lazy";
1388
- import "@lynx-js/web-elements/index.css";
1389
- import "@lynx-js/web-core/index.css";
1390
- import "./index.css";
1386
+ import { LynxCard } from '@lynx-js/web-core';
1387
+ import { loadElement } from '@lynx-js/web-elements/lazy';
1388
+ import '@lynx-js/web-elements/index.css';
1389
+ import '@lynx-js/web-core/index.css';
1390
+ import './index.css';
1391
1391
 
1392
1392
  const lynxcard = new LynxCard({
1393
1393
  ...beforeConfigs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.16.0-canary-20250830-d7d0b9b9",
3
+ "version": "0.16.0",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -24,11 +24,11 @@
24
24
  "**/*.css"
25
25
  ],
26
26
  "dependencies": {
27
- "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4-canary-20250830-d7d0b9b9",
28
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.16.0-canary-20250830-d7d0b9b9",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.16.0-canary-20250830-d7d0b9b9",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.16.0-canary-20250830-d7d0b9b9",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.16.0-canary-20250830-d7d0b9b9"
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.16.0",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.16.0",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.16.0",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.16.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@lynx-js/lynx-core": "0.1.3",