@lynx-js/web-core-canary 0.19.5-canary-20260111-9646114b → 0.19.5

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,17 +1,16 @@
1
1
  # @lynx-js/web-core
2
2
 
3
- ## 0.19.5-canary-20260111163415-9646114ba965de25ef18230718c6df291f0ea479
3
+ ## 0.19.5
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - fix: pixelWidth and pixelHeight use client instead of screen ([#2055](https://github.com/lynx-family/lynx-stack/pull/2055))
8
8
 
9
- - Updated dependencies [[`7ade813`](https://github.com/lynx-family/lynx-stack/commit/7ade813d3d99a87f2d62072ec6e437b8dd5c9f5e), [`a91173c`](https://github.com/lynx-family/lynx-stack/commit/a91173c986ce3f358f1c11c788ca46a0529c701d), [`fc9e863`](https://github.com/lynx-family/lynx-stack/commit/fc9e86323bf6d0a67a841d128152c33f6f92cb4d)]:
10
- - @lynx-js/web-elements@0.11.0-canary-20260111163415-9646114ba965de25ef18230718c6df291f0ea479
11
- - @lynx-js/web-worker-rpc@0.19.5-canary-20260111163415-9646114ba965de25ef18230718c6df291f0ea479
12
- - @lynx-js/web-constants@0.19.5-canary-20260111163415-9646114ba965de25ef18230718c6df291f0ea479
13
- - @lynx-js/web-worker-runtime@0.19.5-canary-20260111163415-9646114ba965de25ef18230718c6df291f0ea479
14
- - @lynx-js/web-mainthread-apis@0.19.5-canary-20260111163415-9646114ba965de25ef18230718c6df291f0ea479
9
+ - Updated dependencies [[`a91173c`](https://github.com/lynx-family/lynx-stack/commit/a91173c986ce3f358f1c11c788ca46a0529c701d)]:
10
+ - @lynx-js/web-worker-rpc@0.19.5
11
+ - @lynx-js/web-constants@0.19.5
12
+ - @lynx-js/web-worker-runtime@0.19.5
13
+ - @lynx-js/web-mainthread-apis@0.19.5
15
14
 
16
15
  ## 0.19.4
17
16
 
@@ -483,25 +482,25 @@
483
482
  lynxView.initI18nResources = [
484
483
  {
485
484
  options: {
486
- locale: "en",
487
- channel: "1",
488
- fallback_url: "",
485
+ locale: 'en',
486
+ channel: '1',
487
+ fallback_url: '',
489
488
  },
490
489
  resource: {
491
- hello: "hello",
492
- lynx: "lynx web platform1",
490
+ hello: 'hello',
491
+ lynx: 'lynx web platform1',
493
492
  },
494
493
  },
495
494
  ];
496
- lynxView.addEventListener("i18nResourceMissed", (e) => {
495
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
497
496
  console.log(e);
498
497
  });
499
498
 
500
499
  // mts
501
500
  _I18nResourceTranslation({
502
- locale: "en",
503
- channel: "1",
504
- fallback_url: "",
501
+ locale: 'en',
502
+ channel: '1',
503
+ fallback_url: '',
505
504
  });
506
505
  ```
507
506
 
@@ -909,8 +908,8 @@
909
908
  }
910
909
  };`,
911
910
  ],
912
- { type: "text/javascript" }
913
- )
911
+ { type: 'text/javascript' },
912
+ ),
914
913
  ),
915
914
  };
916
915
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -1025,8 +1024,8 @@
1025
1024
  };
1026
1025
  };`,
1027
1026
  ],
1028
- { type: "text/javascript" }
1029
- )
1027
+ { type: 'text/javascript' },
1028
+ ),
1030
1029
  );
1031
1030
 
1032
1031
  const color_methods = URL.createObjectURL(
@@ -1041,8 +1040,8 @@
1041
1040
  };
1042
1041
  };`,
1043
1042
  ],
1044
- { type: "text/javascript" }
1045
- )
1043
+ { type: 'text/javascript' },
1044
+ ),
1046
1045
  );
1047
1046
 
1048
1047
  lynxView.napiModuleMap = {
@@ -1059,7 +1058,7 @@
1059
1058
 
1060
1059
  ```js
1061
1060
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
1062
- if (name === "getColor" && moduleName === "color_methods") {
1061
+ if (name === 'getColor' && moduleName === 'color_methods') {
1063
1062
  return data.color;
1064
1063
  }
1065
1064
  };
@@ -1138,8 +1137,8 @@
1138
1137
  }
1139
1138
  };`,
1140
1139
  ],
1141
- { type: "text/javascript" }
1142
- )
1140
+ { type: 'text/javascript' },
1141
+ ),
1143
1142
  );
1144
1143
  ```
1145
1144
 
@@ -1151,7 +1150,7 @@
1151
1150
 
1152
1151
  ```js
1153
1152
  lynxView.onNativeModulesCall = (name, data, callback) => {
1154
- if (name === "getColor") {
1153
+ if (name === 'getColor') {
1155
1154
  callback(data.color);
1156
1155
  }
1157
1156
  };
@@ -1161,7 +1160,7 @@
1161
1160
 
1162
1161
  ```js
1163
1162
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
1164
- if (name === "getColor" && moduleName === "bridge") {
1163
+ if (name === 'getColor' && moduleName === 'bridge') {
1165
1164
  return data.color;
1166
1165
  }
1167
1166
  };
@@ -1519,7 +1518,7 @@
1519
1518
  This flag changes the behaviour of cascading. It provide a way to do this
1520
1519
 
1521
1520
  ```jsx
1522
- <view class="class-a class-b" />
1521
+ <view class='class-a class-b' />;
1523
1522
  ```
1524
1523
 
1525
1524
  The class-b will override (cascading) styles of class-a.
@@ -1619,11 +1618,11 @@
1619
1618
  There is also a simple way to use this feature
1620
1619
 
1621
1620
  ```javascript
1622
- import { LynxCard } from "@lynx-js/web-core";
1623
- import { loadElement } from "@lynx-js/web-elements/lazy";
1624
- import "@lynx-js/web-elements/index.css";
1625
- import "@lynx-js/web-core/index.css";
1626
- import "./index.css";
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';
1627
1626
 
1628
1627
  const lynxcard = new LynxCard({
1629
1628
  ...beforeConfigs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.19.5-canary-20260111-9646114b",
3
+ "version": "0.19.5",
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.19.5-canary-20260111-9646114b",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.5-canary-20260111-9646114b",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.5-canary-20260111-9646114b",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.5-canary-20260111-9646114b"
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"
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.11.0-canary-20260111-9646114b"
35
+ "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.11.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@lynx-js/lynx-core": "0.1.3",