@lynx-js/web-constants-canary 0.17.0 → 0.17.1-canary-20250925-9ab108fc

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.17.1-canary-20250925040534-9ab108fc8b1323f8369eacad4b561725713f8ee1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @lynx-js/web-worker-rpc@0.17.1-canary-20250925040534-9ab108fc8b1323f8369eacad4b561725713f8ee1
9
+
3
10
  ## 0.17.0
4
11
 
5
12
  ### Patch Changes
@@ -198,25 +205,25 @@
198
205
  lynxView.initI18nResources = [
199
206
  {
200
207
  options: {
201
- locale: 'en',
202
- channel: '1',
203
- fallback_url: '',
208
+ locale: "en",
209
+ channel: "1",
210
+ fallback_url: "",
204
211
  },
205
212
  resource: {
206
- hello: 'hello',
207
- lynx: 'lynx web platform1',
213
+ hello: "hello",
214
+ lynx: "lynx web platform1",
208
215
  },
209
216
  },
210
217
  ];
211
- lynxView.addEventListener('i18nResourceMissed', (e) => {
218
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
212
219
  console.log(e);
213
220
  });
214
221
 
215
222
  // mts
216
223
  _I18nResourceTranslation({
217
- locale: 'en',
218
- channel: '1',
219
- fallback_url: '',
224
+ locale: "en",
225
+ channel: "1",
226
+ fallback_url: "",
220
227
  });
221
228
  ```
222
229
 
@@ -455,8 +462,8 @@
455
462
  }
456
463
  };`,
457
464
  ],
458
- { type: 'text/javascript' },
459
- ),
465
+ { type: "text/javascript" }
466
+ )
460
467
  ),
461
468
  };
462
469
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -542,8 +549,8 @@
542
549
  };
543
550
  };`,
544
551
  ],
545
- { type: 'text/javascript' },
546
- ),
552
+ { type: "text/javascript" }
553
+ )
547
554
  );
548
555
 
549
556
  const color_methods = URL.createObjectURL(
@@ -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.napiModuleMap = {
@@ -576,7 +583,7 @@
576
583
 
577
584
  ```js
578
585
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
579
- if (name === 'getColor' && moduleName === 'color_methods') {
586
+ if (name === "getColor" && moduleName === "color_methods") {
580
587
  return data.color;
581
588
  }
582
589
  };
@@ -640,8 +647,8 @@
640
647
  }
641
648
  };`,
642
649
  ],
643
- { type: 'text/javascript' },
644
- ),
650
+ { type: "text/javascript" }
651
+ )
645
652
  );
646
653
  ```
647
654
 
@@ -653,7 +660,7 @@
653
660
 
654
661
  ```js
655
662
  lynxView.onNativeModulesCall = (name, data, callback) => {
656
- if (name === 'getColor') {
663
+ if (name === "getColor") {
657
664
  callback(data.color);
658
665
  }
659
666
  };
@@ -663,7 +670,7 @@
663
670
 
664
671
  ```js
665
672
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
666
- if (name === 'getColor' && moduleName === 'bridge') {
673
+ if (name === "getColor" && moduleName === "bridge") {
667
674
  return data.color;
668
675
  }
669
676
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-constants-canary",
3
- "version": "0.17.0",
3
+ "version": "0.17.1-canary-20250925-9ab108fc",
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.17.0"
26
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.1-canary-20250925-9ab108fc"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"