@lynx-js/web-constants-canary 0.19.3 → 0.19.4-canary-20251230-bba05e2e
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.19.4-canary-20251230100304-bba05e2ed06cca8009ad415fd9777e8334a0887a
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`bba05e2`](https://github.com/lynx-family/lynx-stack/commit/bba05e2ed06cca8009ad415fd9777e8334a0887a)]:
|
|
8
|
+
- @lynx-js/web-worker-rpc@0.19.4-canary-20251230100304-bba05e2ed06cca8009ad415fd9777e8334a0887a
|
|
9
|
+
|
|
3
10
|
## 0.19.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -294,25 +301,25 @@
|
|
|
294
301
|
lynxView.initI18nResources = [
|
|
295
302
|
{
|
|
296
303
|
options: {
|
|
297
|
-
locale:
|
|
298
|
-
channel:
|
|
299
|
-
fallback_url:
|
|
304
|
+
locale: "en",
|
|
305
|
+
channel: "1",
|
|
306
|
+
fallback_url: "",
|
|
300
307
|
},
|
|
301
308
|
resource: {
|
|
302
|
-
hello:
|
|
303
|
-
lynx:
|
|
309
|
+
hello: "hello",
|
|
310
|
+
lynx: "lynx web platform1",
|
|
304
311
|
},
|
|
305
312
|
},
|
|
306
313
|
];
|
|
307
|
-
lynxView.addEventListener(
|
|
314
|
+
lynxView.addEventListener("i18nResourceMissed", (e) => {
|
|
308
315
|
console.log(e);
|
|
309
316
|
});
|
|
310
317
|
|
|
311
318
|
// mts
|
|
312
319
|
_I18nResourceTranslation({
|
|
313
|
-
locale:
|
|
314
|
-
channel:
|
|
315
|
-
fallback_url:
|
|
320
|
+
locale: "en",
|
|
321
|
+
channel: "1",
|
|
322
|
+
fallback_url: "",
|
|
316
323
|
});
|
|
317
324
|
```
|
|
318
325
|
|
|
@@ -551,8 +558,8 @@
|
|
|
551
558
|
}
|
|
552
559
|
};`,
|
|
553
560
|
],
|
|
554
|
-
{ type:
|
|
555
|
-
)
|
|
561
|
+
{ type: "text/javascript" }
|
|
562
|
+
)
|
|
556
563
|
),
|
|
557
564
|
};
|
|
558
565
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -638,8 +645,8 @@
|
|
|
638
645
|
};
|
|
639
646
|
};`,
|
|
640
647
|
],
|
|
641
|
-
{ type:
|
|
642
|
-
)
|
|
648
|
+
{ type: "text/javascript" }
|
|
649
|
+
)
|
|
643
650
|
);
|
|
644
651
|
|
|
645
652
|
const color_methods = URL.createObjectURL(
|
|
@@ -654,8 +661,8 @@
|
|
|
654
661
|
};
|
|
655
662
|
};`,
|
|
656
663
|
],
|
|
657
|
-
{ type:
|
|
658
|
-
)
|
|
664
|
+
{ type: "text/javascript" }
|
|
665
|
+
)
|
|
659
666
|
);
|
|
660
667
|
|
|
661
668
|
lynxView.napiModuleMap = {
|
|
@@ -672,7 +679,7 @@
|
|
|
672
679
|
|
|
673
680
|
```js
|
|
674
681
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
675
|
-
if (name ===
|
|
682
|
+
if (name === "getColor" && moduleName === "color_methods") {
|
|
676
683
|
return data.color;
|
|
677
684
|
}
|
|
678
685
|
};
|
|
@@ -736,8 +743,8 @@
|
|
|
736
743
|
}
|
|
737
744
|
};`,
|
|
738
745
|
],
|
|
739
|
-
{ type:
|
|
740
|
-
)
|
|
746
|
+
{ type: "text/javascript" }
|
|
747
|
+
)
|
|
741
748
|
);
|
|
742
749
|
```
|
|
743
750
|
|
|
@@ -749,7 +756,7 @@
|
|
|
749
756
|
|
|
750
757
|
```js
|
|
751
758
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
752
|
-
if (name ===
|
|
759
|
+
if (name === "getColor") {
|
|
753
760
|
callback(data.color);
|
|
754
761
|
}
|
|
755
762
|
};
|
|
@@ -759,7 +766,7 @@
|
|
|
759
766
|
|
|
760
767
|
```js
|
|
761
768
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
762
|
-
if (name ===
|
|
769
|
+
if (name === "getColor" && moduleName === "bridge") {
|
|
763
770
|
return data.color;
|
|
764
771
|
}
|
|
765
772
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants-canary",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.4-canary-20251230-bba05e2e",
|
|
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.
|
|
26
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.4-canary-20251230-bba05e2e"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
|