@lynx-js/web-core-canary 0.18.3 → 0.18.4-canary-20251111-eee83b60

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lynx-js/web-core
2
2
 
3
+ ## 0.18.4-canary-20251111085403-eee83b601f4626c0576e376047356906886e5b59
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: builtinTagTransformMap add `'x-input-ng': 'x-input'` ([#1932](https://github.com/lynx-family/lynx-stack/pull/1932))
8
+
9
+ - Updated dependencies []:
10
+ - @lynx-js/web-constants@0.18.4-canary-20251111085403-eee83b601f4626c0576e376047356906886e5b59
11
+ - @lynx-js/web-mainthread-apis@0.18.4-canary-20251111085403-eee83b601f4626c0576e376047356906886e5b59
12
+ - @lynx-js/web-worker-rpc@0.18.4-canary-20251111085403-eee83b601f4626c0576e376047356906886e5b59
13
+ - @lynx-js/web-worker-runtime@0.18.4-canary-20251111085403-eee83b601f4626c0576e376047356906886e5b59
14
+
3
15
  ## 0.18.3
4
16
 
5
17
  ### Patch Changes
@@ -390,25 +402,25 @@
390
402
  lynxView.initI18nResources = [
391
403
  {
392
404
  options: {
393
- locale: 'en',
394
- channel: '1',
395
- fallback_url: '',
405
+ locale: "en",
406
+ channel: "1",
407
+ fallback_url: "",
396
408
  },
397
409
  resource: {
398
- hello: 'hello',
399
- lynx: 'lynx web platform1',
410
+ hello: "hello",
411
+ lynx: "lynx web platform1",
400
412
  },
401
413
  },
402
414
  ];
403
- lynxView.addEventListener('i18nResourceMissed', (e) => {
415
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
404
416
  console.log(e);
405
417
  });
406
418
 
407
419
  // mts
408
420
  _I18nResourceTranslation({
409
- locale: 'en',
410
- channel: '1',
411
- fallback_url: '',
421
+ locale: "en",
422
+ channel: "1",
423
+ fallback_url: "",
412
424
  });
413
425
  ```
414
426
 
@@ -816,8 +828,8 @@
816
828
  }
817
829
  };`,
818
830
  ],
819
- { type: 'text/javascript' },
820
- ),
831
+ { type: "text/javascript" }
832
+ )
821
833
  ),
822
834
  };
823
835
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -932,8 +944,8 @@
932
944
  };
933
945
  };`,
934
946
  ],
935
- { type: 'text/javascript' },
936
- ),
947
+ { type: "text/javascript" }
948
+ )
937
949
  );
938
950
 
939
951
  const color_methods = URL.createObjectURL(
@@ -948,8 +960,8 @@
948
960
  };
949
961
  };`,
950
962
  ],
951
- { type: 'text/javascript' },
952
- ),
963
+ { type: "text/javascript" }
964
+ )
953
965
  );
954
966
 
955
967
  lynxView.napiModuleMap = {
@@ -966,7 +978,7 @@
966
978
 
967
979
  ```js
968
980
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
969
- if (name === 'getColor' && moduleName === 'color_methods') {
981
+ if (name === "getColor" && moduleName === "color_methods") {
970
982
  return data.color;
971
983
  }
972
984
  };
@@ -1045,8 +1057,8 @@
1045
1057
  }
1046
1058
  };`,
1047
1059
  ],
1048
- { type: 'text/javascript' },
1049
- ),
1060
+ { type: "text/javascript" }
1061
+ )
1050
1062
  );
1051
1063
  ```
1052
1064
 
@@ -1058,7 +1070,7 @@
1058
1070
 
1059
1071
  ```js
1060
1072
  lynxView.onNativeModulesCall = (name, data, callback) => {
1061
- if (name === 'getColor') {
1073
+ if (name === "getColor") {
1062
1074
  callback(data.color);
1063
1075
  }
1064
1076
  };
@@ -1068,7 +1080,7 @@
1068
1080
 
1069
1081
  ```js
1070
1082
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
1071
- if (name === 'getColor' && moduleName === 'bridge') {
1083
+ if (name === "getColor" && moduleName === "bridge") {
1072
1084
  return data.color;
1073
1085
  }
1074
1086
  };
@@ -1426,7 +1438,7 @@
1426
1438
  This flag changes the behaviour of cascading. It provide a way to do this
1427
1439
 
1428
1440
  ```jsx
1429
- <view class='class-a class-b' />;
1441
+ <view class="class-a class-b" />
1430
1442
  ```
1431
1443
 
1432
1444
  The class-b will override (cascading) styles of class-a.
@@ -1526,11 +1538,11 @@
1526
1538
  There is also a simple way to use this feature
1527
1539
 
1528
1540
  ```javascript
1529
- import { LynxCard } from '@lynx-js/web-core';
1530
- import { loadElement } from '@lynx-js/web-elements/lazy';
1531
- import '@lynx-js/web-elements/index.css';
1532
- import '@lynx-js/web-core/index.css';
1533
- import './index.css';
1541
+ import { LynxCard } from "@lynx-js/web-core";
1542
+ import { loadElement } from "@lynx-js/web-elements/lazy";
1543
+ import "@lynx-js/web-elements/index.css";
1544
+ import "@lynx-js/web-core/index.css";
1545
+ import "./index.css";
1534
1546
 
1535
1547
  const lynxcard = new LynxCard({
1536
1548
  ...beforeConfigs,
@@ -354,6 +354,7 @@ export class LynxView extends HTMLElement {
354
354
  'list': 'x-list',
355
355
  'svg': 'x-svg',
356
356
  'input': 'x-input',
357
+ 'x-input-ng': 'x-input',
357
358
  ...this.overrideLynxTagToHTMLTagMap,
358
359
  };
359
360
  if (!this.shadowRoot) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.18.3",
3
+ "version": "0.18.4-canary-20251111-eee83b60",
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.18.3",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.3",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.3",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.3"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.18.4-canary-20251111-eee83b60",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.18.4-canary-20251111-eee83b60",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.4-canary-20251111-eee83b60",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.18.4-canary-20251111-eee83b60"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@lynx-js/lynx-core": "0.1.3",