@lynx-js/web-constants-canary 0.16.0-canary-20250829-00f64960 → 0.16.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 +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/web-constants
|
|
2
2
|
|
|
3
|
-
## 0.16.0
|
|
3
|
+
## 0.16.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
- fix: the SystemInfo in bts should be assigned to the globalThis ([#1599](https://github.com/lynx-family/lynx-stack/pull/1599))
|
|
22
22
|
|
|
23
23
|
- Updated dependencies [[`c1f8715`](https://github.com/lynx-family/lynx-stack/commit/c1f8715a81b2e69ff46fc363013626db4468c209)]:
|
|
24
|
-
- @lynx-js/web-worker-rpc@0.16.0
|
|
24
|
+
- @lynx-js/web-worker-rpc@0.16.0
|
|
25
25
|
|
|
26
26
|
## 0.15.7
|
|
27
27
|
|
|
@@ -178,25 +178,25 @@
|
|
|
178
178
|
lynxView.initI18nResources = [
|
|
179
179
|
{
|
|
180
180
|
options: {
|
|
181
|
-
locale:
|
|
182
|
-
channel:
|
|
183
|
-
fallback_url:
|
|
181
|
+
locale: 'en',
|
|
182
|
+
channel: '1',
|
|
183
|
+
fallback_url: '',
|
|
184
184
|
},
|
|
185
185
|
resource: {
|
|
186
|
-
hello:
|
|
187
|
-
lynx:
|
|
186
|
+
hello: 'hello',
|
|
187
|
+
lynx: 'lynx web platform1',
|
|
188
188
|
},
|
|
189
189
|
},
|
|
190
190
|
];
|
|
191
|
-
lynxView.addEventListener(
|
|
191
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
192
192
|
console.log(e);
|
|
193
193
|
});
|
|
194
194
|
|
|
195
195
|
// mts
|
|
196
196
|
_I18nResourceTranslation({
|
|
197
|
-
locale:
|
|
198
|
-
channel:
|
|
199
|
-
fallback_url:
|
|
197
|
+
locale: 'en',
|
|
198
|
+
channel: '1',
|
|
199
|
+
fallback_url: '',
|
|
200
200
|
});
|
|
201
201
|
```
|
|
202
202
|
|
|
@@ -435,8 +435,8 @@
|
|
|
435
435
|
}
|
|
436
436
|
};`,
|
|
437
437
|
],
|
|
438
|
-
{ type:
|
|
439
|
-
)
|
|
438
|
+
{ type: 'text/javascript' },
|
|
439
|
+
),
|
|
440
440
|
),
|
|
441
441
|
};
|
|
442
442
|
lynxView.nativeModulesMap = nativeModulesMap;
|
|
@@ -522,8 +522,8 @@
|
|
|
522
522
|
};
|
|
523
523
|
};`,
|
|
524
524
|
],
|
|
525
|
-
{ type:
|
|
526
|
-
)
|
|
525
|
+
{ type: 'text/javascript' },
|
|
526
|
+
),
|
|
527
527
|
);
|
|
528
528
|
|
|
529
529
|
const color_methods = URL.createObjectURL(
|
|
@@ -538,8 +538,8 @@
|
|
|
538
538
|
};
|
|
539
539
|
};`,
|
|
540
540
|
],
|
|
541
|
-
{ type:
|
|
542
|
-
)
|
|
541
|
+
{ type: 'text/javascript' },
|
|
542
|
+
),
|
|
543
543
|
);
|
|
544
544
|
|
|
545
545
|
lynxView.napiModuleMap = {
|
|
@@ -556,7 +556,7 @@
|
|
|
556
556
|
|
|
557
557
|
```js
|
|
558
558
|
lynxView.onNapiModulesCall = (name, data, moduleName) => {
|
|
559
|
-
if (name ===
|
|
559
|
+
if (name === 'getColor' && moduleName === 'color_methods') {
|
|
560
560
|
return data.color;
|
|
561
561
|
}
|
|
562
562
|
};
|
|
@@ -620,8 +620,8 @@
|
|
|
620
620
|
}
|
|
621
621
|
};`,
|
|
622
622
|
],
|
|
623
|
-
{ type:
|
|
624
|
-
)
|
|
623
|
+
{ type: 'text/javascript' },
|
|
624
|
+
),
|
|
625
625
|
);
|
|
626
626
|
```
|
|
627
627
|
|
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
|
|
634
634
|
```js
|
|
635
635
|
lynxView.onNativeModulesCall = (name, data, callback) => {
|
|
636
|
-
if (name ===
|
|
636
|
+
if (name === 'getColor') {
|
|
637
637
|
callback(data.color);
|
|
638
638
|
}
|
|
639
639
|
};
|
|
@@ -643,7 +643,7 @@
|
|
|
643
643
|
|
|
644
644
|
```js
|
|
645
645
|
lynxView.onNativeModulesCall = (name, data, moduleName) => {
|
|
646
|
-
if (name ===
|
|
646
|
+
if (name === 'getColor' && moduleName === 'bridge') {
|
|
647
647
|
return data.color;
|
|
648
648
|
}
|
|
649
649
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants-canary",
|
|
3
|
-
"version": "0.16.0
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"**/*.css"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.16.0
|
|
26
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.16.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4
|
|
29
|
+
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"
|
|
30
30
|
}
|
|
31
31
|
}
|