@lynx-js/web-constants-canary 0.18.3 → 0.18.4-canary-20251111-eee83b60

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.4-canary-20251111085403-eee83b601f4626c0576e376047356906886e5b59
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @lynx-js/web-worker-rpc@0.18.4-canary-20251111085403-eee83b601f4626c0576e376047356906886e5b59
9
+
3
10
  ## 0.18.3
4
11
 
5
12
  ### Patch Changes
@@ -259,25 +266,25 @@
259
266
  lynxView.initI18nResources = [
260
267
  {
261
268
  options: {
262
- locale: 'en',
263
- channel: '1',
264
- fallback_url: '',
269
+ locale: "en",
270
+ channel: "1",
271
+ fallback_url: "",
265
272
  },
266
273
  resource: {
267
- hello: 'hello',
268
- lynx: 'lynx web platform1',
274
+ hello: "hello",
275
+ lynx: "lynx web platform1",
269
276
  },
270
277
  },
271
278
  ];
272
- lynxView.addEventListener('i18nResourceMissed', (e) => {
279
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
273
280
  console.log(e);
274
281
  });
275
282
 
276
283
  // mts
277
284
  _I18nResourceTranslation({
278
- locale: 'en',
279
- channel: '1',
280
- fallback_url: '',
285
+ locale: "en",
286
+ channel: "1",
287
+ fallback_url: "",
281
288
  });
282
289
  ```
283
290
 
@@ -516,8 +523,8 @@
516
523
  }
517
524
  };`,
518
525
  ],
519
- { type: 'text/javascript' },
520
- ),
526
+ { type: "text/javascript" }
527
+ )
521
528
  ),
522
529
  };
523
530
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -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
  const color_methods = URL.createObjectURL(
@@ -619,8 +626,8 @@
619
626
  };
620
627
  };`,
621
628
  ],
622
- { type: 'text/javascript' },
623
- ),
629
+ { type: "text/javascript" }
630
+ )
624
631
  );
625
632
 
626
633
  lynxView.napiModuleMap = {
@@ -637,7 +644,7 @@
637
644
 
638
645
  ```js
639
646
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
640
- if (name === 'getColor' && moduleName === 'color_methods') {
647
+ if (name === "getColor" && moduleName === "color_methods") {
641
648
  return data.color;
642
649
  }
643
650
  };
@@ -701,8 +708,8 @@
701
708
  }
702
709
  };`,
703
710
  ],
704
- { type: 'text/javascript' },
705
- ),
711
+ { type: "text/javascript" }
712
+ )
706
713
  );
707
714
  ```
708
715
 
@@ -714,7 +721,7 @@
714
721
 
715
722
  ```js
716
723
  lynxView.onNativeModulesCall = (name, data, callback) => {
717
- if (name === 'getColor') {
724
+ if (name === "getColor") {
718
725
  callback(data.color);
719
726
  }
720
727
  };
@@ -724,7 +731,7 @@
724
731
 
725
732
  ```js
726
733
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
727
- if (name === 'getColor' && moduleName === 'bridge') {
734
+ if (name === "getColor" && moduleName === "bridge") {
728
735
  return data.color;
729
736
  }
730
737
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-constants-canary",
3
- "version": "0.18.3",
3
+ "version": "0.18.4-canary-20251111-eee83b60",
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.3"
26
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.4-canary-20251111-eee83b60"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"