@lynx-js/web-constants-canary 0.19.0-canary-20251205-6400f87b → 0.19.0
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.0
|
|
3
|
+
## 0.19.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies []:
|
|
8
|
-
- @lynx-js/web-worker-rpc@0.19.0
|
|
8
|
+
- @lynx-js/web-worker-rpc@0.19.0
|
|
9
9
|
|
|
10
10
|
## 0.18.4
|
|
11
11
|
|
|
@@ -273,25 +273,25 @@
|
|
|
273
273
|
lynxView.initI18nResources = [
|
|
274
274
|
{
|
|
275
275
|
options: {
|
|
276
|
-
locale:
|
|
277
|
-
channel:
|
|
278
|
-
fallback_url:
|
|
276
|
+
locale: 'en',
|
|
277
|
+
channel: '1',
|
|
278
|
+
fallback_url: '',
|
|
279
279
|
},
|
|
280
280
|
resource: {
|
|
281
|
-
hello:
|
|
282
|
-
lynx:
|
|
281
|
+
hello: 'hello',
|
|
282
|
+
lynx: 'lynx web platform1',
|
|
283
283
|
},
|
|
284
284
|
},
|
|
285
285
|
];
|
|
286
|
-
lynxView.addEventListener(
|
|
286
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
287
287
|
console.log(e);
|
|
288
288
|
});
|
|
289
289
|
|
|
290
290
|
// mts
|
|
291
291
|
_I18nResourceTranslation({
|
|
292
|
-
locale:
|
|
293
|
-
channel:
|
|
294
|
-
fallback_url:
|
|
292
|
+
locale: 'en',
|
|
293
|
+
channel: '1',
|
|
294
|
+
fallback_url: '',
|
|
295
295
|
});
|
|
296
296
|
```
|
|
297
297
|
|
|
@@ -530,8 +530,8 @@
|
|
|
530
530
|
}
|
|
531
531
|
};`,
|
|
532
532
|
],
|
|
533
|
-
{ type:
|
|
534
|
-
)
|
|
533
|
+
{ type: 'text/javascript' },
|
|
534
|
+
),
|
|
535
535
|
),
|
|
536
536
|
};
|
|
537
537
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -617,8 +617,8 @@
|
|
|
617
617
|
};
|
|
618
618
|
};`,
|
|
619
619
|
],
|
|
620
|
-
{ type:
|
|
621
|
-
)
|
|
620
|
+
{ type: 'text/javascript' },
|
|
621
|
+
),
|
|
622
622
|
);
|
|
623
623
|
|
|
624
624
|
const color_methods = URL.createObjectURL(
|
|
@@ -633,8 +633,8 @@
|
|
|
633
633
|
};
|
|
634
634
|
};`,
|
|
635
635
|
],
|
|
636
|
-
{ type:
|
|
637
|
-
)
|
|
636
|
+
{ type: 'text/javascript' },
|
|
637
|
+
),
|
|
638
638
|
);
|
|
639
639
|
|
|
640
640
|
lynxView.napiModuleMap = {
|
|
@@ -651,7 +651,7 @@
|
|
|
651
651
|
|
|
652
652
|
```js
|
|
653
653
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
654
|
-
if (name ===
|
|
654
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
655
655
|
return data.color;
|
|
656
656
|
}
|
|
657
657
|
};
|
|
@@ -715,8 +715,8 @@
|
|
|
715
715
|
}
|
|
716
716
|
};`,
|
|
717
717
|
],
|
|
718
|
-
{ type:
|
|
719
|
-
)
|
|
718
|
+
{ type: 'text/javascript' },
|
|
719
|
+
),
|
|
720
720
|
);
|
|
721
721
|
```
|
|
722
722
|
|
|
@@ -728,7 +728,7 @@
|
|
|
728
728
|
|
|
729
729
|
```js
|
|
730
730
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
731
|
-
if (name ===
|
|
731
|
+
if (name === 'getColor') {
|
|
732
732
|
callback(data.color);
|
|
733
733
|
}
|
|
734
734
|
};
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
|
|
739
739
|
```js
|
|
740
740
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
741
|
-
if (name ===
|
|
741
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
742
742
|
return data.color;
|
|
743
743
|
}
|
|
744
744
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants-canary",
|
|
3
|
-
"version": "0.19.0
|
|
3
|
+
"version": "0.19.0",
|
|
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.0
|
|
26
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
|