@lynx-js/web-core-canary 0.17.0 → 0.17.1-canary-20250924-6411f84c

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.17.1-canary-20250924145428-6411f84c7ea9a2af9fa3744a0f9ed0075b679f6a
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @lynx-js/web-constants@0.17.1-canary-20250924145428-6411f84c7ea9a2af9fa3744a0f9ed0075b679f6a
9
+ - @lynx-js/web-mainthread-apis@0.17.1-canary-20250924145428-6411f84c7ea9a2af9fa3744a0f9ed0075b679f6a
10
+ - @lynx-js/web-worker-rpc@0.17.1-canary-20250924145428-6411f84c7ea9a2af9fa3744a0f9ed0075b679f6a
11
+ - @lynx-js/web-worker-runtime@0.17.1-canary-20250924145428-6411f84c7ea9a2af9fa3744a0f9ed0075b679f6a
12
+
3
13
  ## 0.17.0
4
14
 
5
15
  ### Minor Changes
@@ -303,25 +313,25 @@
303
313
  lynxView.initI18nResources = [
304
314
  {
305
315
  options: {
306
- locale: 'en',
307
- channel: '1',
308
- fallback_url: '',
316
+ locale: "en",
317
+ channel: "1",
318
+ fallback_url: "",
309
319
  },
310
320
  resource: {
311
- hello: 'hello',
312
- lynx: 'lynx web platform1',
321
+ hello: "hello",
322
+ lynx: "lynx web platform1",
313
323
  },
314
324
  },
315
325
  ];
316
- lynxView.addEventListener('i18nResourceMissed', (e) => {
326
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
317
327
  console.log(e);
318
328
  });
319
329
 
320
330
  // mts
321
331
  _I18nResourceTranslation({
322
- locale: 'en',
323
- channel: '1',
324
- fallback_url: '',
332
+ locale: "en",
333
+ channel: "1",
334
+ fallback_url: "",
325
335
  });
326
336
  ```
327
337
 
@@ -729,8 +739,8 @@
729
739
  }
730
740
  };`,
731
741
  ],
732
- { type: 'text/javascript' },
733
- ),
742
+ { type: "text/javascript" }
743
+ )
734
744
  ),
735
745
  };
736
746
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -845,8 +855,8 @@
845
855
  };
846
856
  };`,
847
857
  ],
848
- { type: 'text/javascript' },
849
- ),
858
+ { type: "text/javascript" }
859
+ )
850
860
  );
851
861
 
852
862
  const color_methods = URL.createObjectURL(
@@ -861,8 +871,8 @@
861
871
  };
862
872
  };`,
863
873
  ],
864
- { type: 'text/javascript' },
865
- ),
874
+ { type: "text/javascript" }
875
+ )
866
876
  );
867
877
 
868
878
  lynxView.napiModuleMap = {
@@ -879,7 +889,7 @@
879
889
 
880
890
  ```js
881
891
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
882
- if (name === 'getColor' && moduleName === 'color_methods') {
892
+ if (name === "getColor" && moduleName === "color_methods") {
883
893
  return data.color;
884
894
  }
885
895
  };
@@ -958,8 +968,8 @@
958
968
  }
959
969
  };`,
960
970
  ],
961
- { type: 'text/javascript' },
962
- ),
971
+ { type: "text/javascript" }
972
+ )
963
973
  );
964
974
  ```
965
975
 
@@ -971,7 +981,7 @@
971
981
 
972
982
  ```js
973
983
  lynxView.onNativeModulesCall = (name, data, callback) => {
974
- if (name === 'getColor') {
984
+ if (name === "getColor") {
975
985
  callback(data.color);
976
986
  }
977
987
  };
@@ -981,7 +991,7 @@
981
991
 
982
992
  ```js
983
993
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
984
- if (name === 'getColor' && moduleName === 'bridge') {
994
+ if (name === "getColor" && moduleName === "bridge") {
985
995
  return data.color;
986
996
  }
987
997
  };
@@ -1339,7 +1349,7 @@
1339
1349
  This flag changes the behaviour of cascading. It provide a way to do this
1340
1350
 
1341
1351
  ```jsx
1342
- <view class='class-a class-b' />;
1352
+ <view class="class-a class-b" />
1343
1353
  ```
1344
1354
 
1345
1355
  The class-b will override (cascading) styles of class-a.
@@ -1439,11 +1449,11 @@
1439
1449
  There is also a simple way to use this feature
1440
1450
 
1441
1451
  ```javascript
1442
- import { LynxCard } from '@lynx-js/web-core';
1443
- import { loadElement } from '@lynx-js/web-elements/lazy';
1444
- import '@lynx-js/web-elements/index.css';
1445
- import '@lynx-js/web-core/index.css';
1446
- import './index.css';
1452
+ import { LynxCard } from "@lynx-js/web-core";
1453
+ import { loadElement } from "@lynx-js/web-elements/lazy";
1454
+ import "@lynx-js/web-elements/index.css";
1455
+ import "@lynx-js/web-core/index.css";
1456
+ import "./index.css";
1447
1457
 
1448
1458
  const lynxcard = new LynxCard({
1449
1459
  ...beforeConfigs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.17.0",
3
+ "version": "0.17.1-canary-20250924-6411f84c",
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.4",
28
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.17.0",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.17.0",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.0",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.17.0"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.17.1-canary-20250924-6411f84c",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.17.1-canary-20250924-6411f84c",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.1-canary-20250924-6411f84c",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.17.1-canary-20250924-6411f84c"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@lynx-js/lynx-core": "0.1.3",