@lynx-js/web-constants-canary 0.17.0 → 0.17.1-canary-20250924-6411f84c
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.17.1-canary-20250924145428-6411f84c7ea9a2af9fa3744a0f9ed0075b679f6a
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @lynx-js/web-worker-rpc@0.17.1-canary-20250924145428-6411f84c7ea9a2af9fa3744a0f9ed0075b679f6a
|
|
9
|
+
|
|
3
10
|
## 0.17.0
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -198,25 +205,25 @@
|
|
|
198
205
|
lynxView.initI18nResources = [
|
|
199
206
|
{
|
|
200
207
|
options: {
|
|
201
|
-
locale:
|
|
202
|
-
channel:
|
|
203
|
-
fallback_url:
|
|
208
|
+
locale: "en",
|
|
209
|
+
channel: "1",
|
|
210
|
+
fallback_url: "",
|
|
204
211
|
},
|
|
205
212
|
resource: {
|
|
206
|
-
hello:
|
|
207
|
-
lynx:
|
|
213
|
+
hello: "hello",
|
|
214
|
+
lynx: "lynx web platform1",
|
|
208
215
|
},
|
|
209
216
|
},
|
|
210
217
|
];
|
|
211
|
-
lynxView.addEventListener(
|
|
218
|
+
lynxView.addEventListener("i18nResourceMissed", (e) => {
|
|
212
219
|
console.log(e);
|
|
213
220
|
});
|
|
214
221
|
|
|
215
222
|
// mts
|
|
216
223
|
_I18nResourceTranslation({
|
|
217
|
-
locale:
|
|
218
|
-
channel:
|
|
219
|
-
fallback_url:
|
|
224
|
+
locale: "en",
|
|
225
|
+
channel: "1",
|
|
226
|
+
fallback_url: "",
|
|
220
227
|
});
|
|
221
228
|
```
|
|
222
229
|
|
|
@@ -455,8 +462,8 @@
|
|
|
455
462
|
}
|
|
456
463
|
};`,
|
|
457
464
|
],
|
|
458
|
-
{ type:
|
|
459
|
-
)
|
|
465
|
+
{ type: "text/javascript" }
|
|
466
|
+
)
|
|
460
467
|
),
|
|
461
468
|
};
|
|
462
469
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -542,8 +549,8 @@
|
|
|
542
549
|
};
|
|
543
550
|
};`,
|
|
544
551
|
],
|
|
545
|
-
{ type:
|
|
546
|
-
)
|
|
552
|
+
{ type: "text/javascript" }
|
|
553
|
+
)
|
|
547
554
|
);
|
|
548
555
|
|
|
549
556
|
const color_methods = URL.createObjectURL(
|
|
@@ -558,8 +565,8 @@
|
|
|
558
565
|
};
|
|
559
566
|
};`,
|
|
560
567
|
],
|
|
561
|
-
{ type:
|
|
562
|
-
)
|
|
568
|
+
{ type: "text/javascript" }
|
|
569
|
+
)
|
|
563
570
|
);
|
|
564
571
|
|
|
565
572
|
lynxView.napiModuleMap = {
|
|
@@ -576,7 +583,7 @@
|
|
|
576
583
|
|
|
577
584
|
```js
|
|
578
585
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
579
|
-
if (name ===
|
|
586
|
+
if (name === "getColor" && moduleName === "color_methods") {
|
|
580
587
|
return data.color;
|
|
581
588
|
}
|
|
582
589
|
};
|
|
@@ -640,8 +647,8 @@
|
|
|
640
647
|
}
|
|
641
648
|
};`,
|
|
642
649
|
],
|
|
643
|
-
{ type:
|
|
644
|
-
)
|
|
650
|
+
{ type: "text/javascript" }
|
|
651
|
+
)
|
|
645
652
|
);
|
|
646
653
|
```
|
|
647
654
|
|
|
@@ -653,7 +660,7 @@
|
|
|
653
660
|
|
|
654
661
|
```js
|
|
655
662
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
656
|
-
if (name ===
|
|
663
|
+
if (name === "getColor") {
|
|
657
664
|
callback(data.color);
|
|
658
665
|
}
|
|
659
666
|
};
|
|
@@ -663,7 +670,7 @@
|
|
|
663
670
|
|
|
664
671
|
```js
|
|
665
672
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
666
|
-
if (name ===
|
|
673
|
+
if (name === "getColor" && moduleName === "bridge") {
|
|
667
674
|
return data.color;
|
|
668
675
|
}
|
|
669
676
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants-canary",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1-canary-20250924-6411f84c",
|
|
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.17.
|
|
26
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.1-canary-20250924-6411f84c"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
|