@lynx-js/web-core-canary 0.18.0-canary-20251012-dd7c14a8 → 0.18.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 +31 -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.18.0-canary-20251012050336-dd7c14a838a10804949a953d0f5b54f34ba7cc67
3
+ ## 0.18.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -17,11 +17,10 @@
17
17
  ### Patch Changes
18
18
 
19
19
  - Updated dependencies [[`77397fd`](https://github.com/lynx-family/lynx-stack/commit/77397fd535cf60556f8f82f7ef8dae8a623d1625), [`7d90ed5`](https://github.com/lynx-family/lynx-stack/commit/7d90ed52a20fd7665a3517507800e7e29426f6f9)]:
20
- - @lynx-js/web-worker-runtime@0.18.0-canary-20251012050336-dd7c14a838a10804949a953d0f5b54f34ba7cc67
21
- - @lynx-js/web-constants@0.18.0-canary-20251012050336-dd7c14a838a10804949a953d0f5b54f34ba7cc67
22
- - @lynx-js/web-elements@0.8.8-canary-20251012050336-dd7c14a838a10804949a953d0f5b54f34ba7cc67
23
- - @lynx-js/web-mainthread-apis@0.18.0-canary-20251012050336-dd7c14a838a10804949a953d0f5b54f34ba7cc67
24
- - @lynx-js/web-worker-rpc@0.18.0-canary-20251012050336-dd7c14a838a10804949a953d0f5b54f34ba7cc67
20
+ - @lynx-js/web-worker-runtime@0.18.0
21
+ - @lynx-js/web-constants@0.18.0
22
+ - @lynx-js/web-mainthread-apis@0.18.0
23
+ - @lynx-js/web-worker-rpc@0.18.0
25
24
 
26
25
  ## 0.17.2
27
26
 
@@ -353,25 +352,25 @@
353
352
  lynxView.initI18nResources = [
354
353
  {
355
354
  options: {
356
- locale: "en",
357
- channel: "1",
358
- fallback_url: "",
355
+ locale: 'en',
356
+ channel: '1',
357
+ fallback_url: '',
359
358
  },
360
359
  resource: {
361
- hello: "hello",
362
- lynx: "lynx web platform1",
360
+ hello: 'hello',
361
+ lynx: 'lynx web platform1',
363
362
  },
364
363
  },
365
364
  ];
366
- lynxView.addEventListener("i18nResourceMissed", (e) => {
365
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
367
366
  console.log(e);
368
367
  });
369
368
 
370
369
  // mts
371
370
  _I18nResourceTranslation({
372
- locale: "en",
373
- channel: "1",
374
- fallback_url: "",
371
+ locale: 'en',
372
+ channel: '1',
373
+ fallback_url: '',
375
374
  });
376
375
  ```
377
376
 
@@ -779,8 +778,8 @@
779
778
  }
780
779
  };`,
781
780
  ],
782
- { type: "text/javascript" }
783
- )
781
+ { type: 'text/javascript' },
782
+ ),
784
783
  ),
785
784
  };
786
785
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -895,8 +894,8 @@
895
894
  };
896
895
  };`,
897
896
  ],
898
- { type: "text/javascript" }
899
- )
897
+ { type: 'text/javascript' },
898
+ ),
900
899
  );
901
900
 
902
901
  const color_methods = URL.createObjectURL(
@@ -911,8 +910,8 @@
911
910
  };
912
911
  };`,
913
912
  ],
914
- { type: "text/javascript" }
915
- )
913
+ { type: 'text/javascript' },
914
+ ),
916
915
  );
917
916
 
918
917
  lynxView.napiModuleMap = {
@@ -929,7 +928,7 @@
929
928
 
930
929
  ```js
931
930
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
932
- if (name === "getColor" && moduleName === "color_methods") {
931
+ if (name === 'getColor' && moduleName === 'color_methods') {
933
932
  return data.color;
934
933
  }
935
934
  };
@@ -1008,8 +1007,8 @@
1008
1007
  }
1009
1008
  };`,
1010
1009
  ],
1011
- { type: "text/javascript" }
1012
- )
1010
+ { type: 'text/javascript' },
1011
+ ),
1013
1012
  );
1014
1013
  ```
1015
1014
 
@@ -1021,7 +1020,7 @@
1021
1020
 
1022
1021
  ```js
1023
1022
  lynxView.onNativeModulesCall = (name, data, callback) => {
1024
- if (name === "getColor") {
1023
+ if (name === 'getColor') {
1025
1024
  callback(data.color);
1026
1025
  }
1027
1026
  };
@@ -1031,7 +1030,7 @@
1031
1030
 
1032
1031
  ```js
1033
1032
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
1034
- if (name === "getColor" && moduleName === "bridge") {
1033
+ if (name === 'getColor' && moduleName === 'bridge') {
1035
1034
  return data.color;
1036
1035
  }
1037
1036
  };
@@ -1389,7 +1388,7 @@
1389
1388
  This flag changes the behaviour of cascading. It provide a way to do this
1390
1389
 
1391
1390
  ```jsx
1392
- <view class="class-a class-b" />
1391
+ <view class='class-a class-b' />;
1393
1392
  ```
1394
1393
 
1395
1394
  The class-b will override (cascading) styles of class-a.
@@ -1489,11 +1488,11 @@
1489
1488
  There is also a simple way to use this feature
1490
1489
 
1491
1490
  ```javascript
1492
- import { LynxCard } from "@lynx-js/web-core";
1493
- import { loadElement } from "@lynx-js/web-elements/lazy";
1494
- import "@lynx-js/web-elements/index.css";
1495
- import "@lynx-js/web-core/index.css";
1496
- import "./index.css";
1491
+ import { LynxCard } from '@lynx-js/web-core';
1492
+ import { loadElement } from '@lynx-js/web-elements/lazy';
1493
+ import '@lynx-js/web-elements/index.css';
1494
+ import '@lynx-js/web-core/index.css';
1495
+ import './index.css';
1497
1496
 
1498
1497
  const lynxcard = new LynxCard({
1499
1498
  ...beforeConfigs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.18.0-canary-20251012-dd7c14a8",
3
+ "version": "0.18.0",
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.0-canary-20251012-dd7c14a8",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.0-canary-20251012-dd7c14a8",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.0-canary-20251012-dd7c14a8",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.0-canary-20251012-dd7c14a8"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.0",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.0",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.0",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.0"
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.8-canary-20251012-dd7c14a8"
35
+ "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.8"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@lynx-js/lynx-core": "0.1.3",