@lynx-js/web-constants-canary 0.18.3-canary-20251108-3bc8903d → 0.18.3
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,13 +1,13 @@
|
|
|
1
1
|
# @lynx-js/web-constants
|
|
2
2
|
|
|
3
|
-
## 0.18.3
|
|
3
|
+
## 0.18.3
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- feat: add \_\_GetSourceMapRelease API for nativeApp. ([#1923](https://github.com/lynx-family/lynx-stack/pull/1923))
|
|
8
8
|
|
|
9
9
|
- Updated dependencies []:
|
|
10
|
-
- @lynx-js/web-worker-rpc@0.18.3
|
|
10
|
+
- @lynx-js/web-worker-rpc@0.18.3
|
|
11
11
|
|
|
12
12
|
## 0.18.2
|
|
13
13
|
|
|
@@ -259,25 +259,25 @@
|
|
|
259
259
|
lynxView.initI18nResources = [
|
|
260
260
|
{
|
|
261
261
|
options: {
|
|
262
|
-
locale:
|
|
263
|
-
channel:
|
|
264
|
-
fallback_url:
|
|
262
|
+
locale: 'en',
|
|
263
|
+
channel: '1',
|
|
264
|
+
fallback_url: '',
|
|
265
265
|
},
|
|
266
266
|
resource: {
|
|
267
|
-
hello:
|
|
268
|
-
lynx:
|
|
267
|
+
hello: 'hello',
|
|
268
|
+
lynx: 'lynx web platform1',
|
|
269
269
|
},
|
|
270
270
|
},
|
|
271
271
|
];
|
|
272
|
-
lynxView.addEventListener(
|
|
272
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
273
273
|
console.log(e);
|
|
274
274
|
});
|
|
275
275
|
|
|
276
276
|
// mts
|
|
277
277
|
_I18nResourceTranslation({
|
|
278
|
-
locale:
|
|
279
|
-
channel:
|
|
280
|
-
fallback_url:
|
|
278
|
+
locale: 'en',
|
|
279
|
+
channel: '1',
|
|
280
|
+
fallback_url: '',
|
|
281
281
|
});
|
|
282
282
|
```
|
|
283
283
|
|
|
@@ -516,8 +516,8 @@
|
|
|
516
516
|
}
|
|
517
517
|
};`,
|
|
518
518
|
],
|
|
519
|
-
{ type:
|
|
520
|
-
)
|
|
519
|
+
{ type: 'text/javascript' },
|
|
520
|
+
),
|
|
521
521
|
),
|
|
522
522
|
};
|
|
523
523
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -603,8 +603,8 @@
|
|
|
603
603
|
};
|
|
604
604
|
};`,
|
|
605
605
|
],
|
|
606
|
-
{ type:
|
|
607
|
-
)
|
|
606
|
+
{ type: 'text/javascript' },
|
|
607
|
+
),
|
|
608
608
|
);
|
|
609
609
|
|
|
610
610
|
const color_methods = URL.createObjectURL(
|
|
@@ -619,8 +619,8 @@
|
|
|
619
619
|
};
|
|
620
620
|
};`,
|
|
621
621
|
],
|
|
622
|
-
{ type:
|
|
623
|
-
)
|
|
622
|
+
{ type: 'text/javascript' },
|
|
623
|
+
),
|
|
624
624
|
);
|
|
625
625
|
|
|
626
626
|
lynxView.napiModuleMap = {
|
|
@@ -637,7 +637,7 @@
|
|
|
637
637
|
|
|
638
638
|
```js
|
|
639
639
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
640
|
-
if (name ===
|
|
640
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
641
641
|
return data.color;
|
|
642
642
|
}
|
|
643
643
|
};
|
|
@@ -701,8 +701,8 @@
|
|
|
701
701
|
}
|
|
702
702
|
};`,
|
|
703
703
|
],
|
|
704
|
-
{ type:
|
|
705
|
-
)
|
|
704
|
+
{ type: 'text/javascript' },
|
|
705
|
+
),
|
|
706
706
|
);
|
|
707
707
|
```
|
|
708
708
|
|
|
@@ -714,7 +714,7 @@
|
|
|
714
714
|
|
|
715
715
|
```js
|
|
716
716
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
717
|
-
if (name ===
|
|
717
|
+
if (name === 'getColor') {
|
|
718
718
|
callback(data.color);
|
|
719
719
|
}
|
|
720
720
|
};
|
|
@@ -724,7 +724,7 @@
|
|
|
724
724
|
|
|
725
725
|
```js
|
|
726
726
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
727
|
-
if (name ===
|
|
727
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
728
728
|
return data.color;
|
|
729
729
|
}
|
|
730
730
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants-canary",
|
|
3
|
-
"version": "0.18.3
|
|
3
|
+
"version": "0.18.3",
|
|
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.3
|
|
26
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.18.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
|