@lynx-js/web-constants-canary 0.19.2-canary-20251222-4d689a71 → 0.19.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.19.2
|
|
3
|
+
## 0.19.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies []:
|
|
8
|
-
- @lynx-js/web-worker-rpc@0.19.2
|
|
8
|
+
- @lynx-js/web-worker-rpc@0.19.2
|
|
9
9
|
|
|
10
10
|
## 0.19.1
|
|
11
11
|
|
|
@@ -287,25 +287,25 @@
|
|
|
287
287
|
lynxView.initI18nResources = [
|
|
288
288
|
{
|
|
289
289
|
options: {
|
|
290
|
-
locale:
|
|
291
|
-
channel:
|
|
292
|
-
fallback_url:
|
|
290
|
+
locale: 'en',
|
|
291
|
+
channel: '1',
|
|
292
|
+
fallback_url: '',
|
|
293
293
|
},
|
|
294
294
|
resource: {
|
|
295
|
-
hello:
|
|
296
|
-
lynx:
|
|
295
|
+
hello: 'hello',
|
|
296
|
+
lynx: 'lynx web platform1',
|
|
297
297
|
},
|
|
298
298
|
},
|
|
299
299
|
];
|
|
300
|
-
lynxView.addEventListener(
|
|
300
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
301
301
|
console.log(e);
|
|
302
302
|
});
|
|
303
303
|
|
|
304
304
|
// mts
|
|
305
305
|
_I18nResourceTranslation({
|
|
306
|
-
locale:
|
|
307
|
-
channel:
|
|
308
|
-
fallback_url:
|
|
306
|
+
locale: 'en',
|
|
307
|
+
channel: '1',
|
|
308
|
+
fallback_url: '',
|
|
309
309
|
});
|
|
310
310
|
```
|
|
311
311
|
|
|
@@ -544,8 +544,8 @@
|
|
|
544
544
|
}
|
|
545
545
|
};`,
|
|
546
546
|
],
|
|
547
|
-
{ type:
|
|
548
|
-
)
|
|
547
|
+
{ type: 'text/javascript' },
|
|
548
|
+
),
|
|
549
549
|
),
|
|
550
550
|
};
|
|
551
551
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -631,8 +631,8 @@
|
|
|
631
631
|
};
|
|
632
632
|
};`,
|
|
633
633
|
],
|
|
634
|
-
{ type:
|
|
635
|
-
)
|
|
634
|
+
{ type: 'text/javascript' },
|
|
635
|
+
),
|
|
636
636
|
);
|
|
637
637
|
|
|
638
638
|
const color_methods = URL.createObjectURL(
|
|
@@ -647,8 +647,8 @@
|
|
|
647
647
|
};
|
|
648
648
|
};`,
|
|
649
649
|
],
|
|
650
|
-
{ type:
|
|
651
|
-
)
|
|
650
|
+
{ type: 'text/javascript' },
|
|
651
|
+
),
|
|
652
652
|
);
|
|
653
653
|
|
|
654
654
|
lynxView.napiModuleMap = {
|
|
@@ -665,7 +665,7 @@
|
|
|
665
665
|
|
|
666
666
|
```js
|
|
667
667
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
668
|
-
if (name ===
|
|
668
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
669
669
|
return data.color;
|
|
670
670
|
}
|
|
671
671
|
};
|
|
@@ -729,8 +729,8 @@
|
|
|
729
729
|
}
|
|
730
730
|
};`,
|
|
731
731
|
],
|
|
732
|
-
{ type:
|
|
733
|
-
)
|
|
732
|
+
{ type: 'text/javascript' },
|
|
733
|
+
),
|
|
734
734
|
);
|
|
735
735
|
```
|
|
736
736
|
|
|
@@ -742,7 +742,7 @@
|
|
|
742
742
|
|
|
743
743
|
```js
|
|
744
744
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
745
|
-
if (name ===
|
|
745
|
+
if (name === 'getColor') {
|
|
746
746
|
callback(data.color);
|
|
747
747
|
}
|
|
748
748
|
};
|
|
@@ -752,7 +752,7 @@
|
|
|
752
752
|
|
|
753
753
|
```js
|
|
754
754
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
755
|
-
if (name ===
|
|
755
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
756
756
|
return data.color;
|
|
757
757
|
}
|
|
758
758
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants-canary",
|
|
3
|
-
"version": "0.19.2
|
|
3
|
+
"version": "0.19.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.19.2
|
|
26
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
|