@lynx-js/web-constants-canary 0.18.2-canary-20251030-53eed0a5 → 0.18.2
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.2
|
|
3
|
+
## 0.18.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies []:
|
|
8
|
-
- @lynx-js/web-worker-rpc@0.18.2
|
|
8
|
+
- @lynx-js/web-worker-rpc@0.18.2
|
|
9
9
|
|
|
10
10
|
## 0.18.1
|
|
11
11
|
|
|
@@ -250,25 +250,25 @@
|
|
|
250
250
|
lynxView.initI18nResources = [
|
|
251
251
|
{
|
|
252
252
|
options: {
|
|
253
|
-
locale:
|
|
254
|
-
channel:
|
|
255
|
-
fallback_url:
|
|
253
|
+
locale: 'en',
|
|
254
|
+
channel: '1',
|
|
255
|
+
fallback_url: '',
|
|
256
256
|
},
|
|
257
257
|
resource: {
|
|
258
|
-
hello:
|
|
259
|
-
lynx:
|
|
258
|
+
hello: 'hello',
|
|
259
|
+
lynx: 'lynx web platform1',
|
|
260
260
|
},
|
|
261
261
|
},
|
|
262
262
|
];
|
|
263
|
-
lynxView.addEventListener(
|
|
263
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
264
264
|
console.log(e);
|
|
265
265
|
});
|
|
266
266
|
|
|
267
267
|
// mts
|
|
268
268
|
_I18nResourceTranslation({
|
|
269
|
-
locale:
|
|
270
|
-
channel:
|
|
271
|
-
fallback_url:
|
|
269
|
+
locale: 'en',
|
|
270
|
+
channel: '1',
|
|
271
|
+
fallback_url: '',
|
|
272
272
|
});
|
|
273
273
|
```
|
|
274
274
|
|
|
@@ -507,8 +507,8 @@
|
|
|
507
507
|
}
|
|
508
508
|
};`,
|
|
509
509
|
],
|
|
510
|
-
{ type:
|
|
511
|
-
)
|
|
510
|
+
{ type: 'text/javascript' },
|
|
511
|
+
),
|
|
512
512
|
),
|
|
513
513
|
};
|
|
514
514
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -594,8 +594,8 @@
|
|
|
594
594
|
};
|
|
595
595
|
};`,
|
|
596
596
|
],
|
|
597
|
-
{ type:
|
|
598
|
-
)
|
|
597
|
+
{ type: 'text/javascript' },
|
|
598
|
+
),
|
|
599
599
|
);
|
|
600
600
|
|
|
601
601
|
const color_methods = URL.createObjectURL(
|
|
@@ -610,8 +610,8 @@
|
|
|
610
610
|
};
|
|
611
611
|
};`,
|
|
612
612
|
],
|
|
613
|
-
{ type:
|
|
614
|
-
)
|
|
613
|
+
{ type: 'text/javascript' },
|
|
614
|
+
),
|
|
615
615
|
);
|
|
616
616
|
|
|
617
617
|
lynxView.napiModuleMap = {
|
|
@@ -628,7 +628,7 @@
|
|
|
628
628
|
|
|
629
629
|
```js
|
|
630
630
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
631
|
-
if (name ===
|
|
631
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
632
632
|
return data.color;
|
|
633
633
|
}
|
|
634
634
|
};
|
|
@@ -692,8 +692,8 @@
|
|
|
692
692
|
}
|
|
693
693
|
};`,
|
|
694
694
|
],
|
|
695
|
-
{ type:
|
|
696
|
-
)
|
|
695
|
+
{ type: 'text/javascript' },
|
|
696
|
+
),
|
|
697
697
|
);
|
|
698
698
|
```
|
|
699
699
|
|
|
@@ -705,7 +705,7 @@
|
|
|
705
705
|
|
|
706
706
|
```js
|
|
707
707
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
708
|
-
if (name ===
|
|
708
|
+
if (name === 'getColor') {
|
|
709
709
|
callback(data.color);
|
|
710
710
|
}
|
|
711
711
|
};
|
|
@@ -715,7 +715,7 @@
|
|
|
715
715
|
|
|
716
716
|
```js
|
|
717
717
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
718
|
-
if (name ===
|
|
718
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
719
719
|
return data.color;
|
|
720
720
|
}
|
|
721
721
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants-canary",
|
|
3
|
-
"version": "0.18.2
|
|
3
|
+
"version": "0.18.2",
|
|
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.2
|
|
26
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
|