@lynx-js/web-constants-canary 0.18.0 → 0.18.1-canary-20251016-673b26f6

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.1-canary-20251016074856-673b26f6d72a6f99a95758e494ce1f6fbc71c178
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @lynx-js/web-worker-rpc@0.18.1-canary-20251016074856-673b26f6d72a6f99a95758e494ce1f6fbc71c178
9
+
3
10
  ## 0.18.0
4
11
 
5
12
  ### Patch Changes
@@ -236,25 +243,25 @@
236
243
  lynxView.initI18nResources = [
237
244
  {
238
245
  options: {
239
- locale: 'en',
240
- channel: '1',
241
- fallback_url: '',
246
+ locale: "en",
247
+ channel: "1",
248
+ fallback_url: "",
242
249
  },
243
250
  resource: {
244
- hello: 'hello',
245
- lynx: 'lynx web platform1',
251
+ hello: "hello",
252
+ lynx: "lynx web platform1",
246
253
  },
247
254
  },
248
255
  ];
249
- lynxView.addEventListener('i18nResourceMissed', (e) => {
256
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
250
257
  console.log(e);
251
258
  });
252
259
 
253
260
  // mts
254
261
  _I18nResourceTranslation({
255
- locale: 'en',
256
- channel: '1',
257
- fallback_url: '',
262
+ locale: "en",
263
+ channel: "1",
264
+ fallback_url: "",
258
265
  });
259
266
  ```
260
267
 
@@ -493,8 +500,8 @@
493
500
  }
494
501
  };`,
495
502
  ],
496
- { type: 'text/javascript' },
497
- ),
503
+ { type: "text/javascript" }
504
+ )
498
505
  ),
499
506
  };
500
507
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -580,8 +587,8 @@
580
587
  };
581
588
  };`,
582
589
  ],
583
- { type: 'text/javascript' },
584
- ),
590
+ { type: "text/javascript" }
591
+ )
585
592
  );
586
593
 
587
594
  const color_methods = URL.createObjectURL(
@@ -596,8 +603,8 @@
596
603
  };
597
604
  };`,
598
605
  ],
599
- { type: 'text/javascript' },
600
- ),
606
+ { type: "text/javascript" }
607
+ )
601
608
  );
602
609
 
603
610
  lynxView.napiModuleMap = {
@@ -614,7 +621,7 @@
614
621
 
615
622
  ```js
616
623
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
617
- if (name === 'getColor' && moduleName === 'color_methods') {
624
+ if (name === "getColor" && moduleName === "color_methods") {
618
625
  return data.color;
619
626
  }
620
627
  };
@@ -678,8 +685,8 @@
678
685
  }
679
686
  };`,
680
687
  ],
681
- { type: 'text/javascript' },
682
- ),
688
+ { type: "text/javascript" }
689
+ )
683
690
  );
684
691
  ```
685
692
 
@@ -691,7 +698,7 @@
691
698
 
692
699
  ```js
693
700
  lynxView.onNativeModulesCall = (name, data, callback) => {
694
- if (name === 'getColor') {
701
+ if (name === "getColor") {
695
702
  callback(data.color);
696
703
  }
697
704
  };
@@ -701,7 +708,7 @@
701
708
 
702
709
  ```js
703
710
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
704
- if (name === 'getColor' && moduleName === 'bridge') {
711
+ if (name === "getColor" && moduleName === "bridge") {
705
712
  return data.color;
706
713
  }
707
714
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-constants-canary",
3
- "version": "0.18.0",
3
+ "version": "0.18.1-canary-20251016-673b26f6",
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.0"
26
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.1-canary-20251016-673b26f6"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"