@lynx-js/web-constants-canary 0.19.4 → 0.19.5-canary-20260107-b41d54ae

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 +27 -20
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @lynx-js/web-constants
2
2
 
3
+ ## 0.19.5-canary-20260107110030-b41d54aead52f891fcd04b7dad57f7ddf400e5d9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @lynx-js/web-worker-rpc@0.19.5-canary-20260107110030-b41d54aead52f891fcd04b7dad57f7ddf400e5d9
9
+
3
10
  ## 0.19.4
4
11
 
5
12
  ### Patch Changes
@@ -301,25 +308,25 @@
301
308
  lynxView.initI18nResources = [
302
309
  {
303
310
  options: {
304
- locale: 'en',
305
- channel: '1',
306
- fallback_url: '',
311
+ locale: "en",
312
+ channel: "1",
313
+ fallback_url: "",
307
314
  },
308
315
  resource: {
309
- hello: 'hello',
310
- lynx: 'lynx web platform1',
316
+ hello: "hello",
317
+ lynx: "lynx web platform1",
311
318
  },
312
319
  },
313
320
  ];
314
- lynxView.addEventListener('i18nResourceMissed', (e) => {
321
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
315
322
  console.log(e);
316
323
  });
317
324
 
318
325
  // mts
319
326
  _I18nResourceTranslation({
320
- locale: 'en',
321
- channel: '1',
322
- fallback_url: '',
327
+ locale: "en",
328
+ channel: "1",
329
+ fallback_url: "",
323
330
  });
324
331
  ```
325
332
 
@@ -558,8 +565,8 @@
558
565
  }
559
566
  };`,
560
567
  ],
561
- { type: 'text/javascript' },
562
- ),
568
+ { type: "text/javascript" }
569
+ )
563
570
  ),
564
571
  };
565
572
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -645,8 +652,8 @@
645
652
  };
646
653
  };`,
647
654
  ],
648
- { type: 'text/javascript' },
649
- ),
655
+ { type: "text/javascript" }
656
+ )
650
657
  );
651
658
 
652
659
  const color_methods = URL.createObjectURL(
@@ -661,8 +668,8 @@
661
668
  };
662
669
  };`,
663
670
  ],
664
- { type: 'text/javascript' },
665
- ),
671
+ { type: "text/javascript" }
672
+ )
666
673
  );
667
674
 
668
675
  lynxView.napiModuleMap = {
@@ -679,7 +686,7 @@
679
686
 
680
687
  ```js
681
688
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
682
- if (name === 'getColor' && moduleName === 'color_methods') {
689
+ if (name === "getColor" && moduleName === "color_methods") {
683
690
  return data.color;
684
691
  }
685
692
  };
@@ -743,8 +750,8 @@
743
750
  }
744
751
  };`,
745
752
  ],
746
- { type: 'text/javascript' },
747
- ),
753
+ { type: "text/javascript" }
754
+ )
748
755
  );
749
756
  ```
750
757
 
@@ -756,7 +763,7 @@
756
763
 
757
764
  ```js
758
765
  lynxView.onNativeModulesCall = (name, data, callback) => {
759
- if (name === 'getColor') {
766
+ if (name === "getColor") {
760
767
  callback(data.color);
761
768
  }
762
769
  };
@@ -766,7 +773,7 @@
766
773
 
767
774
  ```js
768
775
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
769
- if (name === 'getColor' && moduleName === 'bridge') {
776
+ if (name === "getColor" && moduleName === "bridge") {
770
777
  return data.color;
771
778
  }
772
779
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-constants-canary",
3
- "version": "0.19.4",
3
+ "version": "0.19.5-canary-20260107-b41d54ae",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -23,7 +23,7 @@
23
23
  "**/*.css"
24
24
  ],
25
25
  "dependencies": {
26
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.4"
26
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.5-canary-20260107-b41d54ae"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"