@lynx-js/web-constants-canary 0.18.4-canary-20251121-e1a9493a → 0.18.4
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 +22 -22
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @lynx-js/web-constants
|
|
2
2
|
|
|
3
|
-
## 0.18.4
|
|
3
|
+
## 0.18.4
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies []:
|
|
8
|
-
- @lynx-js/web-worker-rpc@0.18.4
|
|
8
|
+
- @lynx-js/web-worker-rpc@0.18.4
|
|
9
9
|
|
|
10
10
|
## 0.18.3
|
|
11
11
|
|
|
@@ -266,25 +266,25 @@
|
|
|
266
266
|
lynxView.initI18nResources = [
|
|
267
267
|
{
|
|
268
268
|
options: {
|
|
269
|
-
locale:
|
|
270
|
-
channel:
|
|
271
|
-
fallback_url:
|
|
269
|
+
locale: 'en',
|
|
270
|
+
channel: '1',
|
|
271
|
+
fallback_url: '',
|
|
272
272
|
},
|
|
273
273
|
resource: {
|
|
274
|
-
hello:
|
|
275
|
-
lynx:
|
|
274
|
+
hello: 'hello',
|
|
275
|
+
lynx: 'lynx web platform1',
|
|
276
276
|
},
|
|
277
277
|
},
|
|
278
278
|
];
|
|
279
|
-
lynxView.addEventListener(
|
|
279
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
280
280
|
console.log(e);
|
|
281
281
|
});
|
|
282
282
|
|
|
283
283
|
// mts
|
|
284
284
|
_I18nResourceTranslation({
|
|
285
|
-
locale:
|
|
286
|
-
channel:
|
|
287
|
-
fallback_url:
|
|
285
|
+
locale: 'en',
|
|
286
|
+
channel: '1',
|
|
287
|
+
fallback_url: '',
|
|
288
288
|
});
|
|
289
289
|
```
|
|
290
290
|
|
|
@@ -523,8 +523,8 @@
|
|
|
523
523
|
}
|
|
524
524
|
};`,
|
|
525
525
|
],
|
|
526
|
-
{ type:
|
|
527
|
-
)
|
|
526
|
+
{ type: 'text/javascript' },
|
|
527
|
+
),
|
|
528
528
|
),
|
|
529
529
|
};
|
|
530
530
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -610,8 +610,8 @@
|
|
|
610
610
|
};
|
|
611
611
|
};`,
|
|
612
612
|
],
|
|
613
|
-
{ type:
|
|
614
|
-
)
|
|
613
|
+
{ type: 'text/javascript' },
|
|
614
|
+
),
|
|
615
615
|
);
|
|
616
616
|
|
|
617
617
|
const color_methods = URL.createObjectURL(
|
|
@@ -626,8 +626,8 @@
|
|
|
626
626
|
};
|
|
627
627
|
};`,
|
|
628
628
|
],
|
|
629
|
-
{ type:
|
|
630
|
-
)
|
|
629
|
+
{ type: 'text/javascript' },
|
|
630
|
+
),
|
|
631
631
|
);
|
|
632
632
|
|
|
633
633
|
lynxView.napiModuleMap = {
|
|
@@ -644,7 +644,7 @@
|
|
|
644
644
|
|
|
645
645
|
```js
|
|
646
646
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
647
|
-
if (name ===
|
|
647
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
648
648
|
return data.color;
|
|
649
649
|
}
|
|
650
650
|
};
|
|
@@ -708,8 +708,8 @@
|
|
|
708
708
|
}
|
|
709
709
|
};`,
|
|
710
710
|
],
|
|
711
|
-
{ type:
|
|
712
|
-
)
|
|
711
|
+
{ type: 'text/javascript' },
|
|
712
|
+
),
|
|
713
713
|
);
|
|
714
714
|
```
|
|
715
715
|
|
|
@@ -721,7 +721,7 @@
|
|
|
721
721
|
|
|
722
722
|
```js
|
|
723
723
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
724
|
-
if (name ===
|
|
724
|
+
if (name === 'getColor') {
|
|
725
725
|
callback(data.color);
|
|
726
726
|
}
|
|
727
727
|
};
|
|
@@ -731,7 +731,7 @@
|
|
|
731
731
|
|
|
732
732
|
```js
|
|
733
733
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
734
|
-
if (name ===
|
|
734
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
735
735
|
return data.color;
|
|
736
736
|
}
|
|
737
737
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants-canary",
|
|
3
|
-
"version": "0.18.4
|
|
3
|
+
"version": "0.18.4",
|
|
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.4
|
|
26
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.4"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
|