@lynx-js/web-constants-canary 0.19.1-canary-20251212-12a98f76 → 0.19.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.19.1
|
|
3
|
+
## 0.19.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies []:
|
|
8
|
-
- @lynx-js/web-worker-rpc@0.19.1
|
|
8
|
+
- @lynx-js/web-worker-rpc@0.19.1
|
|
9
9
|
|
|
10
10
|
## 0.19.0
|
|
11
11
|
|
|
@@ -280,25 +280,25 @@
|
|
|
280
280
|
lynxView.initI18nResources = [
|
|
281
281
|
{
|
|
282
282
|
options: {
|
|
283
|
-
locale:
|
|
284
|
-
channel:
|
|
285
|
-
fallback_url:
|
|
283
|
+
locale: 'en',
|
|
284
|
+
channel: '1',
|
|
285
|
+
fallback_url: '',
|
|
286
286
|
},
|
|
287
287
|
resource: {
|
|
288
|
-
hello:
|
|
289
|
-
lynx:
|
|
288
|
+
hello: 'hello',
|
|
289
|
+
lynx: 'lynx web platform1',
|
|
290
290
|
},
|
|
291
291
|
},
|
|
292
292
|
];
|
|
293
|
-
lynxView.addEventListener(
|
|
293
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
294
294
|
console.log(e);
|
|
295
295
|
});
|
|
296
296
|
|
|
297
297
|
// mts
|
|
298
298
|
_I18nResourceTranslation({
|
|
299
|
-
locale:
|
|
300
|
-
channel:
|
|
301
|
-
fallback_url:
|
|
299
|
+
locale: 'en',
|
|
300
|
+
channel: '1',
|
|
301
|
+
fallback_url: '',
|
|
302
302
|
});
|
|
303
303
|
```
|
|
304
304
|
|
|
@@ -537,8 +537,8 @@
|
|
|
537
537
|
}
|
|
538
538
|
};`,
|
|
539
539
|
],
|
|
540
|
-
{ type:
|
|
541
|
-
)
|
|
540
|
+
{ type: 'text/javascript' },
|
|
541
|
+
),
|
|
542
542
|
),
|
|
543
543
|
};
|
|
544
544
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -624,8 +624,8 @@
|
|
|
624
624
|
};
|
|
625
625
|
};`,
|
|
626
626
|
],
|
|
627
|
-
{ type:
|
|
628
|
-
)
|
|
627
|
+
{ type: 'text/javascript' },
|
|
628
|
+
),
|
|
629
629
|
);
|
|
630
630
|
|
|
631
631
|
const color_methods = URL.createObjectURL(
|
|
@@ -640,8 +640,8 @@
|
|
|
640
640
|
};
|
|
641
641
|
};`,
|
|
642
642
|
],
|
|
643
|
-
{ type:
|
|
644
|
-
)
|
|
643
|
+
{ type: 'text/javascript' },
|
|
644
|
+
),
|
|
645
645
|
);
|
|
646
646
|
|
|
647
647
|
lynxView.napiModuleMap = {
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
|
|
659
659
|
```js
|
|
660
660
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
661
|
-
if (name ===
|
|
661
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
662
662
|
return data.color;
|
|
663
663
|
}
|
|
664
664
|
};
|
|
@@ -722,8 +722,8 @@
|
|
|
722
722
|
}
|
|
723
723
|
};`,
|
|
724
724
|
],
|
|
725
|
-
{ type:
|
|
726
|
-
)
|
|
725
|
+
{ type: 'text/javascript' },
|
|
726
|
+
),
|
|
727
727
|
);
|
|
728
728
|
```
|
|
729
729
|
|
|
@@ -735,7 +735,7 @@
|
|
|
735
735
|
|
|
736
736
|
```js
|
|
737
737
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
738
|
-
if (name ===
|
|
738
|
+
if (name === 'getColor') {
|
|
739
739
|
callback(data.color);
|
|
740
740
|
}
|
|
741
741
|
};
|
|
@@ -745,7 +745,7 @@
|
|
|
745
745
|
|
|
746
746
|
```js
|
|
747
747
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
748
|
-
if (name ===
|
|
748
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
749
749
|
return data.color;
|
|
750
750
|
}
|
|
751
751
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants-canary",
|
|
3
|
-
"version": "0.19.1
|
|
3
|
+
"version": "0.19.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.19.1
|
|
26
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
|