@lynx-js/web-constants-canary 0.18.1 → 0.18.2-canary-20251030-53eed0a5

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.2-canary-20251030071334-53eed0a562fb32455214a94d198f1516cb4359eb
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @lynx-js/web-worker-rpc@0.18.2-canary-20251030071334-53eed0a562fb32455214a94d198f1516cb4359eb
9
+
3
10
  ## 0.18.1
4
11
 
5
12
  ### Patch Changes
@@ -243,25 +250,25 @@
243
250
  lynxView.initI18nResources = [
244
251
  {
245
252
  options: {
246
- locale: 'en',
247
- channel: '1',
248
- fallback_url: '',
253
+ locale: "en",
254
+ channel: "1",
255
+ fallback_url: "",
249
256
  },
250
257
  resource: {
251
- hello: 'hello',
252
- lynx: 'lynx web platform1',
258
+ hello: "hello",
259
+ lynx: "lynx web platform1",
253
260
  },
254
261
  },
255
262
  ];
256
- lynxView.addEventListener('i18nResourceMissed', (e) => {
263
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
257
264
  console.log(e);
258
265
  });
259
266
 
260
267
  // mts
261
268
  _I18nResourceTranslation({
262
- locale: 'en',
263
- channel: '1',
264
- fallback_url: '',
269
+ locale: "en",
270
+ channel: "1",
271
+ fallback_url: "",
265
272
  });
266
273
  ```
267
274
 
@@ -500,8 +507,8 @@
500
507
  }
501
508
  };`,
502
509
  ],
503
- { type: 'text/javascript' },
504
- ),
510
+ { type: "text/javascript" }
511
+ )
505
512
  ),
506
513
  };
507
514
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -587,8 +594,8 @@
587
594
  };
588
595
  };`,
589
596
  ],
590
- { type: 'text/javascript' },
591
- ),
597
+ { type: "text/javascript" }
598
+ )
592
599
  );
593
600
 
594
601
  const color_methods = URL.createObjectURL(
@@ -603,8 +610,8 @@
603
610
  };
604
611
  };`,
605
612
  ],
606
- { type: 'text/javascript' },
607
- ),
613
+ { type: "text/javascript" }
614
+ )
608
615
  );
609
616
 
610
617
  lynxView.napiModuleMap = {
@@ -621,7 +628,7 @@
621
628
 
622
629
  ```js
623
630
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
624
- if (name === 'getColor' && moduleName === 'color_methods') {
631
+ if (name === "getColor" && moduleName === "color_methods") {
625
632
  return data.color;
626
633
  }
627
634
  };
@@ -685,8 +692,8 @@
685
692
  }
686
693
  };`,
687
694
  ],
688
- { type: 'text/javascript' },
689
- ),
695
+ { type: "text/javascript" }
696
+ )
690
697
  );
691
698
  ```
692
699
 
@@ -698,7 +705,7 @@
698
705
 
699
706
  ```js
700
707
  lynxView.onNativeModulesCall = (name, data, callback) => {
701
- if (name === 'getColor') {
708
+ if (name === "getColor") {
702
709
  callback(data.color);
703
710
  }
704
711
  };
@@ -708,7 +715,7 @@
708
715
 
709
716
  ```js
710
717
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
711
- if (name === 'getColor' && moduleName === 'bridge') {
718
+ if (name === "getColor" && moduleName === "bridge") {
712
719
  return data.color;
713
720
  }
714
721
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-constants-canary",
3
- "version": "0.18.1",
3
+ "version": "0.18.2-canary-20251030-53eed0a5",
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.1"
26
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.2-canary-20251030-53eed0a5"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"