@lynx-js/web-core-canary 0.15.5 → 0.15.6-canary-20250812-6639ee33

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.15.6-canary-20250812053253-6639ee338012ef975895b64615208705b8c54cb9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`214898b`](https://github.com/lynx-family/lynx-stack/commit/214898bb9c74fc9b44e68cb220a4c02485102ce2)]:
8
+ - @lynx-js/web-mainthread-apis@0.15.6-canary-20250812053253-6639ee338012ef975895b64615208705b8c54cb9
9
+ - @lynx-js/web-constants@0.15.6-canary-20250812053253-6639ee338012ef975895b64615208705b8c54cb9
10
+ - @lynx-js/web-worker-runtime@0.15.6-canary-20250812053253-6639ee338012ef975895b64615208705b8c54cb9
11
+ - @lynx-js/web-worker-rpc@0.15.6-canary-20250812053253-6639ee338012ef975895b64615208705b8c54cb9
12
+
3
13
  ## 0.15.5
4
14
 
5
15
  ### Patch Changes
@@ -188,25 +198,25 @@
188
198
  lynxView.initI18nResources = [
189
199
  {
190
200
  options: {
191
- locale: 'en',
192
- channel: '1',
193
- fallback_url: '',
201
+ locale: "en",
202
+ channel: "1",
203
+ fallback_url: "",
194
204
  },
195
205
  resource: {
196
- hello: 'hello',
197
- lynx: 'lynx web platform1',
206
+ hello: "hello",
207
+ lynx: "lynx web platform1",
198
208
  },
199
209
  },
200
210
  ];
201
- lynxView.addEventListener('i18nResourceMissed', (e) => {
211
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
202
212
  console.log(e);
203
213
  });
204
214
 
205
215
  // mts
206
216
  _I18nResourceTranslation({
207
- locale: 'en',
208
- channel: '1',
209
- fallback_url: '',
217
+ locale: "en",
218
+ channel: "1",
219
+ fallback_url: "",
210
220
  });
211
221
  ```
212
222
 
@@ -614,8 +624,8 @@
614
624
  }
615
625
  };`,
616
626
  ],
617
- { type: 'text/javascript' },
618
- ),
627
+ { type: "text/javascript" }
628
+ )
619
629
  ),
620
630
  };
621
631
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -730,8 +740,8 @@
730
740
  };
731
741
  };`,
732
742
  ],
733
- { type: 'text/javascript' },
734
- ),
743
+ { type: "text/javascript" }
744
+ )
735
745
  );
736
746
 
737
747
  const color_methods = URL.createObjectURL(
@@ -746,8 +756,8 @@
746
756
  };
747
757
  };`,
748
758
  ],
749
- { type: 'text/javascript' },
750
- ),
759
+ { type: "text/javascript" }
760
+ )
751
761
  );
752
762
 
753
763
  lynxView.napiModuleMap = {
@@ -764,7 +774,7 @@
764
774
 
765
775
  ```js
766
776
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
767
- if (name === 'getColor' && moduleName === 'color_methods') {
777
+ if (name === "getColor" && moduleName === "color_methods") {
768
778
  return data.color;
769
779
  }
770
780
  };
@@ -843,8 +853,8 @@
843
853
  }
844
854
  };`,
845
855
  ],
846
- { type: 'text/javascript' },
847
- ),
856
+ { type: "text/javascript" }
857
+ )
848
858
  );
849
859
  ```
850
860
 
@@ -856,7 +866,7 @@
856
866
 
857
867
  ```js
858
868
  lynxView.onNativeModulesCall = (name, data, callback) => {
859
- if (name === 'getColor') {
869
+ if (name === "getColor") {
860
870
  callback(data.color);
861
871
  }
862
872
  };
@@ -866,7 +876,7 @@
866
876
 
867
877
  ```js
868
878
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
869
- if (name === 'getColor' && moduleName === 'bridge') {
879
+ if (name === "getColor" && moduleName === "bridge") {
870
880
  return data.color;
871
881
  }
872
882
  };
@@ -1224,7 +1234,7 @@
1224
1234
  This flag changes the behaviour of cascading. It provide a way to do this
1225
1235
 
1226
1236
  ```jsx
1227
- <view class='class-a class-b' />;
1237
+ <view class="class-a class-b" />
1228
1238
  ```
1229
1239
 
1230
1240
  The class-b will override (cascading) styles of class-a.
@@ -1324,11 +1334,11 @@
1324
1334
  There is also a simple way to use this feature
1325
1335
 
1326
1336
  ```javascript
1327
- import { LynxCard } from '@lynx-js/web-core';
1328
- import { loadElement } from '@lynx-js/web-elements/lazy';
1329
- import '@lynx-js/web-elements/index.css';
1330
- import '@lynx-js/web-core/index.css';
1331
- import './index.css';
1337
+ import { LynxCard } from "@lynx-js/web-core";
1338
+ import { loadElement } from "@lynx-js/web-elements/lazy";
1339
+ import "@lynx-js/web-elements/index.css";
1340
+ import "@lynx-js/web-core/index.css";
1341
+ import "./index.css";
1332
1342
 
1333
1343
  const lynxcard = new LynxCard({
1334
1344
  ...beforeConfigs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.15.5",
3
+ "version": "0.15.6-canary-20250812-6639ee33",
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.3",
28
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.5",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.5",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.5",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.15.5"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.6-canary-20250812-6639ee33",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.6-canary-20250812-6639ee33",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.6-canary-20250812-6639ee33",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.15.6-canary-20250812-6639ee33"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@lynx-js/lynx-core": "0.1.2",