@lynx-js/web-constants-canary 0.17.1-canary-20250925-6180e11d → 0.17.1
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.17.1
|
|
3
|
+
## 0.17.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies []:
|
|
8
|
-
- @lynx-js/web-worker-rpc@0.17.1
|
|
8
|
+
- @lynx-js/web-worker-rpc@0.17.1
|
|
9
9
|
|
|
10
10
|
## 0.17.0
|
|
11
11
|
|
|
@@ -205,25 +205,25 @@
|
|
|
205
205
|
lynxView.initI18nResources = [
|
|
206
206
|
{
|
|
207
207
|
options: {
|
|
208
|
-
locale:
|
|
209
|
-
channel:
|
|
210
|
-
fallback_url:
|
|
208
|
+
locale: 'en',
|
|
209
|
+
channel: '1',
|
|
210
|
+
fallback_url: '',
|
|
211
211
|
},
|
|
212
212
|
resource: {
|
|
213
|
-
hello:
|
|
214
|
-
lynx:
|
|
213
|
+
hello: 'hello',
|
|
214
|
+
lynx: 'lynx web platform1',
|
|
215
215
|
},
|
|
216
216
|
},
|
|
217
217
|
];
|
|
218
|
-
lynxView.addEventListener(
|
|
218
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
219
219
|
console.log(e);
|
|
220
220
|
});
|
|
221
221
|
|
|
222
222
|
// mts
|
|
223
223
|
_I18nResourceTranslation({
|
|
224
|
-
locale:
|
|
225
|
-
channel:
|
|
226
|
-
fallback_url:
|
|
224
|
+
locale: 'en',
|
|
225
|
+
channel: '1',
|
|
226
|
+
fallback_url: '',
|
|
227
227
|
});
|
|
228
228
|
```
|
|
229
229
|
|
|
@@ -462,8 +462,8 @@
|
|
|
462
462
|
}
|
|
463
463
|
};`,
|
|
464
464
|
],
|
|
465
|
-
{ type:
|
|
466
|
-
)
|
|
465
|
+
{ type: 'text/javascript' },
|
|
466
|
+
),
|
|
467
467
|
),
|
|
468
468
|
};
|
|
469
469
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -549,8 +549,8 @@
|
|
|
549
549
|
};
|
|
550
550
|
};`,
|
|
551
551
|
],
|
|
552
|
-
{ type:
|
|
553
|
-
)
|
|
552
|
+
{ type: 'text/javascript' },
|
|
553
|
+
),
|
|
554
554
|
);
|
|
555
555
|
|
|
556
556
|
const color_methods = URL.createObjectURL(
|
|
@@ -565,8 +565,8 @@
|
|
|
565
565
|
};
|
|
566
566
|
};`,
|
|
567
567
|
],
|
|
568
|
-
{ type:
|
|
569
|
-
)
|
|
568
|
+
{ type: 'text/javascript' },
|
|
569
|
+
),
|
|
570
570
|
);
|
|
571
571
|
|
|
572
572
|
lynxView.napiModuleMap = {
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
|
|
584
584
|
```js
|
|
585
585
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
586
|
-
if (name ===
|
|
586
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
587
587
|
return data.color;
|
|
588
588
|
}
|
|
589
589
|
};
|
|
@@ -647,8 +647,8 @@
|
|
|
647
647
|
}
|
|
648
648
|
};`,
|
|
649
649
|
],
|
|
650
|
-
{ type:
|
|
651
|
-
)
|
|
650
|
+
{ type: 'text/javascript' },
|
|
651
|
+
),
|
|
652
652
|
);
|
|
653
653
|
```
|
|
654
654
|
|
|
@@ -660,7 +660,7 @@
|
|
|
660
660
|
|
|
661
661
|
```js
|
|
662
662
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
663
|
-
if (name ===
|
|
663
|
+
if (name === 'getColor') {
|
|
664
664
|
callback(data.color);
|
|
665
665
|
}
|
|
666
666
|
};
|
|
@@ -670,7 +670,7 @@
|
|
|
670
670
|
|
|
671
671
|
```js
|
|
672
672
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
673
|
-
if (name ===
|
|
673
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
674
674
|
return data.color;
|
|
675
675
|
}
|
|
676
676
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants-canary",
|
|
3
|
-
"version": "0.17.1
|
|
3
|
+
"version": "0.17.1",
|
|
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.1
|
|
26
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
|