@lynx-js/web-core-canary 0.18.1-canary-20251023-9fb4623f → 0.18.1

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 -33
  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.1-canary-20251023071457-9fb4623f0e4c98c97146840ffe529d95577fa628
3
+ ## 0.18.1
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -10,12 +10,11 @@
10
10
 
11
11
  We fixed it by waiting until the all-on-ui Javascript realm implementation, an iframe, to be fully loaded.
12
12
 
13
- - Updated dependencies [[`df5ebcf`](https://github.com/lynx-family/lynx-stack/commit/df5ebcf0408950d0380b6d53ad0b9d43eacf36b6), [`e500bc6`](https://github.com/lynx-family/lynx-stack/commit/e500bc6ee865fe1ab17c2ace77c3bcf8462f74c5), [`70a18fc`](https://github.com/lynx-family/lynx-stack/commit/70a18fce0083743e4516eefc91c0392d748b855f), [`e42b906`](https://github.com/lynx-family/lynx-stack/commit/e42b906ae0d771739e0e1897def646ad159274eb)]:
14
- - @lynx-js/web-elements@0.8.9-canary-20251023071457-9fb4623f0e4c98c97146840ffe529d95577fa628
15
- - @lynx-js/web-mainthread-apis@0.18.1-canary-20251023071457-9fb4623f0e4c98c97146840ffe529d95577fa628
16
- - @lynx-js/web-worker-runtime@0.18.1-canary-20251023071457-9fb4623f0e4c98c97146840ffe529d95577fa628
17
- - @lynx-js/web-constants@0.18.1-canary-20251023071457-9fb4623f0e4c98c97146840ffe529d95577fa628
18
- - @lynx-js/web-worker-rpc@0.18.1-canary-20251023071457-9fb4623f0e4c98c97146840ffe529d95577fa628
13
+ - Updated dependencies [[`70a18fc`](https://github.com/lynx-family/lynx-stack/commit/70a18fce0083743e4516eefc91c0392d748b855f)]:
14
+ - @lynx-js/web-mainthread-apis@0.18.1
15
+ - @lynx-js/web-worker-runtime@0.18.1
16
+ - @lynx-js/web-constants@0.18.1
17
+ - @lynx-js/web-worker-rpc@0.18.1
19
18
 
20
19
  ## 0.18.0
21
20
 
@@ -369,25 +368,25 @@
369
368
  lynxView.initI18nResources = [
370
369
  {
371
370
  options: {
372
- locale: "en",
373
- channel: "1",
374
- fallback_url: "",
371
+ locale: 'en',
372
+ channel: '1',
373
+ fallback_url: '',
375
374
  },
376
375
  resource: {
377
- hello: "hello",
378
- lynx: "lynx web platform1",
376
+ hello: 'hello',
377
+ lynx: 'lynx web platform1',
379
378
  },
380
379
  },
381
380
  ];
382
- lynxView.addEventListener("i18nResourceMissed", (e) => {
381
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
383
382
  console.log(e);
384
383
  });
385
384
 
386
385
  // mts
387
386
  _I18nResourceTranslation({
388
- locale: "en",
389
- channel: "1",
390
- fallback_url: "",
387
+ locale: 'en',
388
+ channel: '1',
389
+ fallback_url: '',
391
390
  });
392
391
  ```
393
392
 
@@ -795,8 +794,8 @@
795
794
  }
796
795
  };`,
797
796
  ],
798
- { type: "text/javascript" }
799
- )
797
+ { type: 'text/javascript' },
798
+ ),
800
799
  ),
801
800
  };
802
801
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -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
  const color_methods = URL.createObjectURL(
@@ -927,8 +926,8 @@
927
926
  };
928
927
  };`,
929
928
  ],
930
- { type: "text/javascript" }
931
- )
929
+ { type: 'text/javascript' },
930
+ ),
932
931
  );
933
932
 
934
933
  lynxView.napiModuleMap = {
@@ -945,7 +944,7 @@
945
944
 
946
945
  ```js
947
946
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
948
- if (name === "getColor" && moduleName === "color_methods") {
947
+ if (name === 'getColor' && moduleName === 'color_methods') {
949
948
  return data.color;
950
949
  }
951
950
  };
@@ -1024,8 +1023,8 @@
1024
1023
  }
1025
1024
  };`,
1026
1025
  ],
1027
- { type: "text/javascript" }
1028
- )
1026
+ { type: 'text/javascript' },
1027
+ ),
1029
1028
  );
1030
1029
  ```
1031
1030
 
@@ -1037,7 +1036,7 @@
1037
1036
 
1038
1037
  ```js
1039
1038
  lynxView.onNativeModulesCall = (name, data, callback) => {
1040
- if (name === "getColor") {
1039
+ if (name === 'getColor') {
1041
1040
  callback(data.color);
1042
1041
  }
1043
1042
  };
@@ -1047,7 +1046,7 @@
1047
1046
 
1048
1047
  ```js
1049
1048
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
1050
- if (name === "getColor" && moduleName === "bridge") {
1049
+ if (name === 'getColor' && moduleName === 'bridge') {
1051
1050
  return data.color;
1052
1051
  }
1053
1052
  };
@@ -1405,7 +1404,7 @@
1405
1404
  This flag changes the behaviour of cascading. It provide a way to do this
1406
1405
 
1407
1406
  ```jsx
1408
- <view class="class-a class-b" />
1407
+ <view class='class-a class-b' />;
1409
1408
  ```
1410
1409
 
1411
1410
  The class-b will override (cascading) styles of class-a.
@@ -1505,11 +1504,11 @@
1505
1504
  There is also a simple way to use this feature
1506
1505
 
1507
1506
  ```javascript
1508
- import { LynxCard } from "@lynx-js/web-core";
1509
- import { loadElement } from "@lynx-js/web-elements/lazy";
1510
- import "@lynx-js/web-elements/index.css";
1511
- import "@lynx-js/web-core/index.css";
1512
- import "./index.css";
1507
+ import { LynxCard } from '@lynx-js/web-core';
1508
+ import { loadElement } from '@lynx-js/web-elements/lazy';
1509
+ import '@lynx-js/web-elements/index.css';
1510
+ import '@lynx-js/web-core/index.css';
1511
+ import './index.css';
1513
1512
 
1514
1513
  const lynxcard = new LynxCard({
1515
1514
  ...beforeConfigs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.18.1-canary-20251023-9fb4623f",
3
+ "version": "0.18.1",
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.1-canary-20251023-9fb4623f",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.1-canary-20251023-9fb4623f",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.1-canary-20251023-9fb4623f",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.1-canary-20251023-9fb4623f"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.1",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.1",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.1",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.1"
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.9-canary-20251023-9fb4623f"
35
+ "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.9"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@lynx-js/lynx-core": "0.1.3",