@lynx-js/web-constants-canary 0.17.2-canary-20251001-4e011e08 → 0.17.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,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/web-constants
|
|
2
2
|
|
|
3
|
-
## 0.17.2
|
|
3
|
+
## 0.17.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
- support to add a breakpoint in chrome after reloading the web page
|
|
13
13
|
|
|
14
14
|
- Updated dependencies []:
|
|
15
|
-
- @lynx-js/web-worker-rpc@0.17.2
|
|
15
|
+
- @lynx-js/web-worker-rpc@0.17.2
|
|
16
16
|
|
|
17
17
|
## 0.17.1
|
|
18
18
|
|
|
@@ -219,25 +219,25 @@
|
|
|
219
219
|
lynxView.initI18nResources = [
|
|
220
220
|
{
|
|
221
221
|
options: {
|
|
222
|
-
locale:
|
|
223
|
-
channel:
|
|
224
|
-
fallback_url:
|
|
222
|
+
locale: 'en',
|
|
223
|
+
channel: '1',
|
|
224
|
+
fallback_url: '',
|
|
225
225
|
},
|
|
226
226
|
resource: {
|
|
227
|
-
hello:
|
|
228
|
-
lynx:
|
|
227
|
+
hello: 'hello',
|
|
228
|
+
lynx: 'lynx web platform1',
|
|
229
229
|
},
|
|
230
230
|
},
|
|
231
231
|
];
|
|
232
|
-
lynxView.addEventListener(
|
|
232
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
233
233
|
console.log(e);
|
|
234
234
|
});
|
|
235
235
|
|
|
236
236
|
// mts
|
|
237
237
|
_I18nResourceTranslation({
|
|
238
|
-
locale:
|
|
239
|
-
channel:
|
|
240
|
-
fallback_url:
|
|
238
|
+
locale: 'en',
|
|
239
|
+
channel: '1',
|
|
240
|
+
fallback_url: '',
|
|
241
241
|
});
|
|
242
242
|
```
|
|
243
243
|
|
|
@@ -476,8 +476,8 @@
|
|
|
476
476
|
}
|
|
477
477
|
};`,
|
|
478
478
|
],
|
|
479
|
-
{ type:
|
|
480
|
-
)
|
|
479
|
+
{ type: 'text/javascript' },
|
|
480
|
+
),
|
|
481
481
|
),
|
|
482
482
|
};
|
|
483
483
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -563,8 +563,8 @@
|
|
|
563
563
|
};
|
|
564
564
|
};`,
|
|
565
565
|
],
|
|
566
|
-
{ type:
|
|
567
|
-
)
|
|
566
|
+
{ type: 'text/javascript' },
|
|
567
|
+
),
|
|
568
568
|
);
|
|
569
569
|
|
|
570
570
|
const color_methods = URL.createObjectURL(
|
|
@@ -579,8 +579,8 @@
|
|
|
579
579
|
};
|
|
580
580
|
};`,
|
|
581
581
|
],
|
|
582
|
-
{ type:
|
|
583
|
-
)
|
|
582
|
+
{ type: 'text/javascript' },
|
|
583
|
+
),
|
|
584
584
|
);
|
|
585
585
|
|
|
586
586
|
lynxView.napiModuleMap = {
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
|
|
598
598
|
```js
|
|
599
599
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
600
|
-
if (name ===
|
|
600
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
601
601
|
return data.color;
|
|
602
602
|
}
|
|
603
603
|
};
|
|
@@ -661,8 +661,8 @@
|
|
|
661
661
|
}
|
|
662
662
|
};`,
|
|
663
663
|
],
|
|
664
|
-
{ type:
|
|
665
|
-
)
|
|
664
|
+
{ type: 'text/javascript' },
|
|
665
|
+
),
|
|
666
666
|
);
|
|
667
667
|
```
|
|
668
668
|
|
|
@@ -674,7 +674,7 @@
|
|
|
674
674
|
|
|
675
675
|
```js
|
|
676
676
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
677
|
-
if (name ===
|
|
677
|
+
if (name === 'getColor') {
|
|
678
678
|
callback(data.color);
|
|
679
679
|
}
|
|
680
680
|
};
|
|
@@ -684,7 +684,7 @@
|
|
|
684
684
|
|
|
685
685
|
```js
|
|
686
686
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
687
|
-
if (name ===
|
|
687
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
688
688
|
return data.color;
|
|
689
689
|
}
|
|
690
690
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants-canary",
|
|
3
|
-
"version": "0.17.2
|
|
3
|
+
"version": "0.17.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.17.2
|
|
26
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
|