@lynx-js/web-constants-canary 0.18.4 → 0.18.5-canary-20251202-d2e290b6
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.
- package/CHANGELOG.md +27 -20
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @lynx-js/web-constants
|
|
2
2
|
|
|
3
|
+
## 0.18.5-canary-20251202114154-d2e290b67971ead5bedbcc1e34dd7f3bf4a6f5f3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @lynx-js/web-worker-rpc@0.18.5-canary-20251202114154-d2e290b67971ead5bedbcc1e34dd7f3bf4a6f5f3
|
|
9
|
+
|
|
3
10
|
## 0.18.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -266,25 +273,25 @@
|
|
|
266
273
|
lynxView.initI18nResources = [
|
|
267
274
|
{
|
|
268
275
|
options: {
|
|
269
|
-
locale:
|
|
270
|
-
channel:
|
|
271
|
-
fallback_url:
|
|
276
|
+
locale: "en",
|
|
277
|
+
channel: "1",
|
|
278
|
+
fallback_url: "",
|
|
272
279
|
},
|
|
273
280
|
resource: {
|
|
274
|
-
hello:
|
|
275
|
-
lynx:
|
|
281
|
+
hello: "hello",
|
|
282
|
+
lynx: "lynx web platform1",
|
|
276
283
|
},
|
|
277
284
|
},
|
|
278
285
|
];
|
|
279
|
-
lynxView.addEventListener(
|
|
286
|
+
lynxView.addEventListener("i18nResourceMissed", (e) => {
|
|
280
287
|
console.log(e);
|
|
281
288
|
});
|
|
282
289
|
|
|
283
290
|
// mts
|
|
284
291
|
_I18nResourceTranslation({
|
|
285
|
-
locale:
|
|
286
|
-
channel:
|
|
287
|
-
fallback_url:
|
|
292
|
+
locale: "en",
|
|
293
|
+
channel: "1",
|
|
294
|
+
fallback_url: "",
|
|
288
295
|
});
|
|
289
296
|
```
|
|
290
297
|
|
|
@@ -523,8 +530,8 @@
|
|
|
523
530
|
}
|
|
524
531
|
};`,
|
|
525
532
|
],
|
|
526
|
-
{ type:
|
|
527
|
-
)
|
|
533
|
+
{ type: "text/javascript" }
|
|
534
|
+
)
|
|
528
535
|
),
|
|
529
536
|
};
|
|
530
537
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -610,8 +617,8 @@
|
|
|
610
617
|
};
|
|
611
618
|
};`,
|
|
612
619
|
],
|
|
613
|
-
{ type:
|
|
614
|
-
)
|
|
620
|
+
{ type: "text/javascript" }
|
|
621
|
+
)
|
|
615
622
|
);
|
|
616
623
|
|
|
617
624
|
const color_methods = URL.createObjectURL(
|
|
@@ -626,8 +633,8 @@
|
|
|
626
633
|
};
|
|
627
634
|
};`,
|
|
628
635
|
],
|
|
629
|
-
{ type:
|
|
630
|
-
)
|
|
636
|
+
{ type: "text/javascript" }
|
|
637
|
+
)
|
|
631
638
|
);
|
|
632
639
|
|
|
633
640
|
lynxView.napiModuleMap = {
|
|
@@ -644,7 +651,7 @@
|
|
|
644
651
|
|
|
645
652
|
```js
|
|
646
653
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
647
|
-
if (name ===
|
|
654
|
+
if (name === "getColor" && moduleName === "color_methods") {
|
|
648
655
|
return data.color;
|
|
649
656
|
}
|
|
650
657
|
};
|
|
@@ -708,8 +715,8 @@
|
|
|
708
715
|
}
|
|
709
716
|
};`,
|
|
710
717
|
],
|
|
711
|
-
{ type:
|
|
712
|
-
)
|
|
718
|
+
{ type: "text/javascript" }
|
|
719
|
+
)
|
|
713
720
|
);
|
|
714
721
|
```
|
|
715
722
|
|
|
@@ -721,7 +728,7 @@
|
|
|
721
728
|
|
|
722
729
|
```js
|
|
723
730
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
724
|
-
if (name ===
|
|
731
|
+
if (name === "getColor") {
|
|
725
732
|
callback(data.color);
|
|
726
733
|
}
|
|
727
734
|
};
|
|
@@ -731,7 +738,7 @@
|
|
|
731
738
|
|
|
732
739
|
```js
|
|
733
740
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
734
|
-
if (name ===
|
|
741
|
+
if (name === "getColor" && moduleName === "bridge") {
|
|
735
742
|
return data.color;
|
|
736
743
|
}
|
|
737
744
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants-canary",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.5-canary-20251202-d2e290b6",
|
|
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.
|
|
26
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.5-canary-20251202-d2e290b6"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
|