@lynx-js/web-constants-canary 0.19.0 → 0.19.1-canary-20251209-f7256d5b

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.19.1-canary-20251209082047-f7256d5bd920b2f6c0cadab44455585c35621b35
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @lynx-js/web-worker-rpc@0.19.1-canary-20251209082047-f7256d5bd920b2f6c0cadab44455585c35621b35
9
+
3
10
  ## 0.19.0
4
11
 
5
12
  ### Patch Changes
@@ -273,25 +280,25 @@
273
280
  lynxView.initI18nResources = [
274
281
  {
275
282
  options: {
276
- locale: 'en',
277
- channel: '1',
278
- fallback_url: '',
283
+ locale: "en",
284
+ channel: "1",
285
+ fallback_url: "",
279
286
  },
280
287
  resource: {
281
- hello: 'hello',
282
- lynx: 'lynx web platform1',
288
+ hello: "hello",
289
+ lynx: "lynx web platform1",
283
290
  },
284
291
  },
285
292
  ];
286
- lynxView.addEventListener('i18nResourceMissed', (e) => {
293
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
287
294
  console.log(e);
288
295
  });
289
296
 
290
297
  // mts
291
298
  _I18nResourceTranslation({
292
- locale: 'en',
293
- channel: '1',
294
- fallback_url: '',
299
+ locale: "en",
300
+ channel: "1",
301
+ fallback_url: "",
295
302
  });
296
303
  ```
297
304
 
@@ -530,8 +537,8 @@
530
537
  }
531
538
  };`,
532
539
  ],
533
- { type: 'text/javascript' },
534
- ),
540
+ { type: "text/javascript" }
541
+ )
535
542
  ),
536
543
  };
537
544
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -617,8 +624,8 @@
617
624
  };
618
625
  };`,
619
626
  ],
620
- { type: 'text/javascript' },
621
- ),
627
+ { type: "text/javascript" }
628
+ )
622
629
  );
623
630
 
624
631
  const color_methods = URL.createObjectURL(
@@ -633,8 +640,8 @@
633
640
  };
634
641
  };`,
635
642
  ],
636
- { type: 'text/javascript' },
637
- ),
643
+ { type: "text/javascript" }
644
+ )
638
645
  );
639
646
 
640
647
  lynxView.napiModuleMap = {
@@ -651,7 +658,7 @@
651
658
 
652
659
  ```js
653
660
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
654
- if (name === 'getColor' && moduleName === 'color_methods') {
661
+ if (name === "getColor" && moduleName === "color_methods") {
655
662
  return data.color;
656
663
  }
657
664
  };
@@ -715,8 +722,8 @@
715
722
  }
716
723
  };`,
717
724
  ],
718
- { type: 'text/javascript' },
719
- ),
725
+ { type: "text/javascript" }
726
+ )
720
727
  );
721
728
  ```
722
729
 
@@ -728,7 +735,7 @@
728
735
 
729
736
  ```js
730
737
  lynxView.onNativeModulesCall = (name, data, callback) => {
731
- if (name === 'getColor') {
738
+ if (name === "getColor") {
732
739
  callback(data.color);
733
740
  }
734
741
  };
@@ -738,7 +745,7 @@
738
745
 
739
746
  ```js
740
747
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
741
- if (name === 'getColor' && moduleName === 'bridge') {
748
+ if (name === "getColor" && moduleName === "bridge") {
742
749
  return data.color;
743
750
  }
744
751
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-constants-canary",
3
- "version": "0.19.0",
3
+ "version": "0.19.1-canary-20251209-f7256d5b",
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.19.0"
26
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.1-canary-20251209-f7256d5b"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"