@lynx-js/web-constants-canary 0.18.0-canary-20251011-820b3f9a → 0.18.0

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 +22 -22
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lynx-js/web-constants
2
2
 
3
- ## 0.18.0-canary-20251011144117-820b3f9ae7d0e016492a94c6d0769bec5e1a7e8b
3
+ ## 0.18.0
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -15,7 +15,7 @@
15
15
  ```
16
16
 
17
17
  - Updated dependencies []:
18
- - @lynx-js/web-worker-rpc@0.18.0-canary-20251011144117-820b3f9ae7d0e016492a94c6d0769bec5e1a7e8b
18
+ - @lynx-js/web-worker-rpc@0.18.0
19
19
 
20
20
  ## 0.17.2
21
21
 
@@ -236,25 +236,25 @@
236
236
  lynxView.initI18nResources = [
237
237
  {
238
238
  options: {
239
- locale: "en",
240
- channel: "1",
241
- fallback_url: "",
239
+ locale: 'en',
240
+ channel: '1',
241
+ fallback_url: '',
242
242
  },
243
243
  resource: {
244
- hello: "hello",
245
- lynx: "lynx web platform1",
244
+ hello: 'hello',
245
+ lynx: 'lynx web platform1',
246
246
  },
247
247
  },
248
248
  ];
249
- lynxView.addEventListener("i18nResourceMissed", (e) => {
249
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
250
250
  console.log(e);
251
251
  });
252
252
 
253
253
  // mts
254
254
  _I18nResourceTranslation({
255
- locale: "en",
256
- channel: "1",
257
- fallback_url: "",
255
+ locale: 'en',
256
+ channel: '1',
257
+ fallback_url: '',
258
258
  });
259
259
  ```
260
260
 
@@ -493,8 +493,8 @@
493
493
  }
494
494
  };`,
495
495
  ],
496
- { type: "text/javascript" }
497
- )
496
+ { type: 'text/javascript' },
497
+ ),
498
498
  ),
499
499
  };
500
500
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -580,8 +580,8 @@
580
580
  };
581
581
  };`,
582
582
  ],
583
- { type: "text/javascript" }
584
- )
583
+ { type: 'text/javascript' },
584
+ ),
585
585
  );
586
586
 
587
587
  const color_methods = URL.createObjectURL(
@@ -596,8 +596,8 @@
596
596
  };
597
597
  };`,
598
598
  ],
599
- { type: "text/javascript" }
600
- )
599
+ { type: 'text/javascript' },
600
+ ),
601
601
  );
602
602
 
603
603
  lynxView.napiModuleMap = {
@@ -614,7 +614,7 @@
614
614
 
615
615
  ```js
616
616
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
617
- if (name === "getColor" && moduleName === "color_methods") {
617
+ if (name === 'getColor' && moduleName === 'color_methods') {
618
618
  return data.color;
619
619
  }
620
620
  };
@@ -678,8 +678,8 @@
678
678
  }
679
679
  };`,
680
680
  ],
681
- { type: "text/javascript" }
682
- )
681
+ { type: 'text/javascript' },
682
+ ),
683
683
  );
684
684
  ```
685
685
 
@@ -691,7 +691,7 @@
691
691
 
692
692
  ```js
693
693
  lynxView.onNativeModulesCall = (name, data, callback) => {
694
- if (name === "getColor") {
694
+ if (name === 'getColor') {
695
695
  callback(data.color);
696
696
  }
697
697
  };
@@ -701,7 +701,7 @@
701
701
 
702
702
  ```js
703
703
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
704
- if (name === "getColor" && moduleName === "bridge") {
704
+ if (name === 'getColor' && moduleName === 'bridge') {
705
705
  return data.color;
706
706
  }
707
707
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-constants-canary",
3
- "version": "0.18.0-canary-20251011-820b3f9a",
3
+ "version": "0.18.0",
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-canary-20251011-820b3f9a"
26
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"