@lynx-js/web-constants-canary 0.18.2 → 0.18.3-canary-20251104-e7d186a6

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.18.3-canary-20251104063141-e7d186a6fcf08fecf18b5ab82b004b955bb1a2b3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @lynx-js/web-worker-rpc@0.18.3-canary-20251104063141-e7d186a6fcf08fecf18b5ab82b004b955bb1a2b3
9
+
3
10
  ## 0.18.2
4
11
 
5
12
  ### Patch Changes
@@ -250,25 +257,25 @@
250
257
  lynxView.initI18nResources = [
251
258
  {
252
259
  options: {
253
- locale: 'en',
254
- channel: '1',
255
- fallback_url: '',
260
+ locale: "en",
261
+ channel: "1",
262
+ fallback_url: "",
256
263
  },
257
264
  resource: {
258
- hello: 'hello',
259
- lynx: 'lynx web platform1',
265
+ hello: "hello",
266
+ lynx: "lynx web platform1",
260
267
  },
261
268
  },
262
269
  ];
263
- lynxView.addEventListener('i18nResourceMissed', (e) => {
270
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
264
271
  console.log(e);
265
272
  });
266
273
 
267
274
  // mts
268
275
  _I18nResourceTranslation({
269
- locale: 'en',
270
- channel: '1',
271
- fallback_url: '',
276
+ locale: "en",
277
+ channel: "1",
278
+ fallback_url: "",
272
279
  });
273
280
  ```
274
281
 
@@ -507,8 +514,8 @@
507
514
  }
508
515
  };`,
509
516
  ],
510
- { type: 'text/javascript' },
511
- ),
517
+ { type: "text/javascript" }
518
+ )
512
519
  ),
513
520
  };
514
521
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -594,8 +601,8 @@
594
601
  };
595
602
  };`,
596
603
  ],
597
- { type: 'text/javascript' },
598
- ),
604
+ { type: "text/javascript" }
605
+ )
599
606
  );
600
607
 
601
608
  const color_methods = URL.createObjectURL(
@@ -610,8 +617,8 @@
610
617
  };
611
618
  };`,
612
619
  ],
613
- { type: 'text/javascript' },
614
- ),
620
+ { type: "text/javascript" }
621
+ )
615
622
  );
616
623
 
617
624
  lynxView.napiModuleMap = {
@@ -628,7 +635,7 @@
628
635
 
629
636
  ```js
630
637
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
631
- if (name === 'getColor' && moduleName === 'color_methods') {
638
+ if (name === "getColor" && moduleName === "color_methods") {
632
639
  return data.color;
633
640
  }
634
641
  };
@@ -692,8 +699,8 @@
692
699
  }
693
700
  };`,
694
701
  ],
695
- { type: 'text/javascript' },
696
- ),
702
+ { type: "text/javascript" }
703
+ )
697
704
  );
698
705
  ```
699
706
 
@@ -705,7 +712,7 @@
705
712
 
706
713
  ```js
707
714
  lynxView.onNativeModulesCall = (name, data, callback) => {
708
- if (name === 'getColor') {
715
+ if (name === "getColor") {
709
716
  callback(data.color);
710
717
  }
711
718
  };
@@ -715,7 +722,7 @@
715
722
 
716
723
  ```js
717
724
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
718
- if (name === 'getColor' && moduleName === 'bridge') {
725
+ if (name === "getColor" && moduleName === "bridge") {
719
726
  return data.color;
720
727
  }
721
728
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-constants-canary",
3
- "version": "0.18.2",
3
+ "version": "0.18.3-canary-20251104-e7d186a6",
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.18.2"
26
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.3-canary-20251104-e7d186a6"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"