@lynx-js/web-constants-canary 0.19.1 → 0.19.2-canary-20251216-e38e21a1
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.2-canary-20251216115050-e38e21a13bc43472da91f99f6cc60266d7e0de8b
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @lynx-js/web-worker-rpc@0.19.2-canary-20251216115050-e38e21a13bc43472da91f99f6cc60266d7e0de8b
|
|
9
|
+
|
|
3
10
|
## 0.19.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -280,25 +287,25 @@
|
|
|
280
287
|
lynxView.initI18nResources = [
|
|
281
288
|
{
|
|
282
289
|
options: {
|
|
283
|
-
locale:
|
|
284
|
-
channel:
|
|
285
|
-
fallback_url:
|
|
290
|
+
locale: "en",
|
|
291
|
+
channel: "1",
|
|
292
|
+
fallback_url: "",
|
|
286
293
|
},
|
|
287
294
|
resource: {
|
|
288
|
-
hello:
|
|
289
|
-
lynx:
|
|
295
|
+
hello: "hello",
|
|
296
|
+
lynx: "lynx web platform1",
|
|
290
297
|
},
|
|
291
298
|
},
|
|
292
299
|
];
|
|
293
|
-
lynxView.addEventListener(
|
|
300
|
+
lynxView.addEventListener("i18nResourceMissed", (e) => {
|
|
294
301
|
console.log(e);
|
|
295
302
|
});
|
|
296
303
|
|
|
297
304
|
// mts
|
|
298
305
|
_I18nResourceTranslation({
|
|
299
|
-
locale:
|
|
300
|
-
channel:
|
|
301
|
-
fallback_url:
|
|
306
|
+
locale: "en",
|
|
307
|
+
channel: "1",
|
|
308
|
+
fallback_url: "",
|
|
302
309
|
});
|
|
303
310
|
```
|
|
304
311
|
|
|
@@ -537,8 +544,8 @@
|
|
|
537
544
|
}
|
|
538
545
|
};`,
|
|
539
546
|
],
|
|
540
|
-
{ type:
|
|
541
|
-
)
|
|
547
|
+
{ type: "text/javascript" }
|
|
548
|
+
)
|
|
542
549
|
),
|
|
543
550
|
};
|
|
544
551
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -624,8 +631,8 @@
|
|
|
624
631
|
};
|
|
625
632
|
};`,
|
|
626
633
|
],
|
|
627
|
-
{ type:
|
|
628
|
-
)
|
|
634
|
+
{ type: "text/javascript" }
|
|
635
|
+
)
|
|
629
636
|
);
|
|
630
637
|
|
|
631
638
|
const color_methods = URL.createObjectURL(
|
|
@@ -640,8 +647,8 @@
|
|
|
640
647
|
};
|
|
641
648
|
};`,
|
|
642
649
|
],
|
|
643
|
-
{ type:
|
|
644
|
-
)
|
|
650
|
+
{ type: "text/javascript" }
|
|
651
|
+
)
|
|
645
652
|
);
|
|
646
653
|
|
|
647
654
|
lynxView.napiModuleMap = {
|
|
@@ -658,7 +665,7 @@
|
|
|
658
665
|
|
|
659
666
|
```js
|
|
660
667
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
661
|
-
if (name ===
|
|
668
|
+
if (name === "getColor" && moduleName === "color_methods") {
|
|
662
669
|
return data.color;
|
|
663
670
|
}
|
|
664
671
|
};
|
|
@@ -722,8 +729,8 @@
|
|
|
722
729
|
}
|
|
723
730
|
};`,
|
|
724
731
|
],
|
|
725
|
-
{ type:
|
|
726
|
-
)
|
|
732
|
+
{ type: "text/javascript" }
|
|
733
|
+
)
|
|
727
734
|
);
|
|
728
735
|
```
|
|
729
736
|
|
|
@@ -735,7 +742,7 @@
|
|
|
735
742
|
|
|
736
743
|
```js
|
|
737
744
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
738
|
-
if (name ===
|
|
745
|
+
if (name === "getColor") {
|
|
739
746
|
callback(data.color);
|
|
740
747
|
}
|
|
741
748
|
};
|
|
@@ -745,7 +752,7 @@
|
|
|
745
752
|
|
|
746
753
|
```js
|
|
747
754
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
748
|
-
if (name ===
|
|
755
|
+
if (name === "getColor" && moduleName === "bridge") {
|
|
749
756
|
return data.color;
|
|
750
757
|
}
|
|
751
758
|
};
|
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.2-canary-20251216-e38e21a1",
|
|
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.2-canary-20251216-e38e21a1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
|