hylid-bridge 4.0.26-alpha.1 → 4.0.27-alpha.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/README.md +1 -1
- package/lib/bridges.d.ts +6 -4
- package/lib/bridges.js +3 -2
- package/lib/clients/web/worldfirst/getSystemInfo.d.ts +2 -0
- package/lib/clients/web/worldfirst/getSystemInfo.js +3 -0
- package/lib/clients/web/worldfirst/index.d.ts +4 -1
- package/lib/clients/web/worldfirst/index.js +4 -1
- package/lib/clients/web/worldfirst/wfOpenDocument.d.ts +4 -2
- package/lib/dsl.d.ts +14 -4
- package/lib/dsl.js +2 -2
- package/lib/umd/index.js +1 -1
- package/lib/umd/web_worldfirst.js +1 -1
- package/lib/whichCanIUse/compatibilities.json +32709 -14512
- package/lib/whichCanIUse/index.d.ts +1 -1
- package/lib/whichCanIUse/index.js +180 -52
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -434,7 +434,7 @@ The following table lists the latest JSAPIs that are supported in JS bridge, and
|
|
|
434
434
|
|getSiteInfo|✅ | ✅ | ✅ | ❌ | ❌ |
|
|
435
435
|
|getStorage|✅ | ✅ | ✅ | ❌ | ❌ |
|
|
436
436
|
|getStorageSync|❌ | ❌ | ✅ | ❌ | ❌ |
|
|
437
|
-
|getSystemInfo|✅ | ✅ | ✅ | ✅ |
|
|
437
|
+
|getSystemInfo|✅ | ✅ | ✅ | ✅ | ✅ |
|
|
438
438
|
|getSystemInfoSync|❌ | ❌ | ✅ | ❌ | ❌ |
|
|
439
439
|
|hideBackHome|❌ | ✅ | ❌ | ❌ | ❌ |
|
|
440
440
|
|hideKeyboard|✅ | ✅ | ❌ | ❌ | ❌ |
|
package/lib/bridges.d.ts
CHANGED
|
@@ -986,7 +986,7 @@ export declare const getStorageSync: PickMPAttr<'getStorageSync'>;
|
|
|
986
986
|
* | ------------- | -------- |
|
|
987
987
|
* | mp | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn |
|
|
988
988
|
* | mp_web | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn,toss,mpay |
|
|
989
|
-
* | web | demo,alipay,h5,tngdh5ng |
|
|
989
|
+
* | web | demo,alipay,h5,tngdh5ng,worldfirst |
|
|
990
990
|
*/
|
|
991
991
|
export declare const getSystemInfo: PickMPAttr<'getSystemInfo'>;
|
|
992
992
|
/**
|
|
@@ -996,7 +996,7 @@ export declare const getSystemInfo: PickMPAttr<'getSystemInfo'>;
|
|
|
996
996
|
* | ------------- | -------- |
|
|
997
997
|
* | mp | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn |
|
|
998
998
|
* | mp_web | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn,toss,mpay |
|
|
999
|
-
* | web | demo,alipay,h5,tngdh5ng |
|
|
999
|
+
* | web | demo,alipay,h5,tngdh5ng,worldfirst |
|
|
1000
1000
|
*/
|
|
1001
1001
|
export declare const getSystemInfoAsync: (args?: GetSystemInfoArgs | undefined) => Promise<GetSystemInfoCallbackValue>;
|
|
1002
1002
|
/**
|
|
@@ -2970,11 +2970,13 @@ export interface WfOpenDocumentWorldfirstWebPayload {
|
|
|
2970
2970
|
*/
|
|
2971
2971
|
filePath: string;
|
|
2972
2972
|
/**
|
|
2973
|
-
* The type of the file to be opened.
|
|
2973
|
+
* The type of the file to be opened.
|
|
2974
|
+
* Currently only supports pdf and image
|
|
2974
2975
|
*/
|
|
2975
2976
|
fileType: string;
|
|
2976
2977
|
/**
|
|
2977
|
-
* The name of the file to be opened.
|
|
2978
|
+
* The name of the file to be opened.
|
|
2979
|
+
* Used to display on the titlebar.
|
|
2978
2980
|
*/
|
|
2979
2981
|
fileName: string;
|
|
2980
2982
|
}
|
package/lib/bridges.js
CHANGED
|
@@ -2461,7 +2461,7 @@ export var getStorageSync = function getStorageSync() {
|
|
|
2461
2461
|
* | ------------- | -------- |
|
|
2462
2462
|
* | mp | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn |
|
|
2463
2463
|
* | mp_web | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn,toss,mpay |
|
|
2464
|
-
* | web | demo,alipay,h5,tngdh5ng |
|
|
2464
|
+
* | web | demo,alipay,h5,tngdh5ng,worldfirst |
|
|
2465
2465
|
*/
|
|
2466
2466
|
export var getSystemInfo = function getSystemInfo() {
|
|
2467
2467
|
var rest = [];
|
|
@@ -2490,6 +2490,7 @@ export var getSystemInfo = function getSystemInfo() {
|
|
|
2490
2490
|
if (appEnv.isWebDemo) return webGetSystemInfo.apply(void 0, rest);
|
|
2491
2491
|
if (appEnv.isWebH5) return webH5GetSystemInfo.apply(void 0, rest);
|
|
2492
2492
|
if (appEnv.isWebTngdh5ng) return webGetSystemInfo.apply(void 0, rest);
|
|
2493
|
+
if (appEnv.isWebWorldfirst) return webGetSystemInfo.apply(void 0, rest);
|
|
2493
2494
|
return notFound.apply(void 0, __spreadArray(['getSystemInfo'], rest, false));
|
|
2494
2495
|
};
|
|
2495
2496
|
/**
|
|
@@ -2499,7 +2500,7 @@ export var getSystemInfo = function getSystemInfo() {
|
|
|
2499
2500
|
* | ------------- | -------- |
|
|
2500
2501
|
* | mp | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn |
|
|
2501
2502
|
* | mp_web | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn,toss,mpay |
|
|
2502
|
-
* | web | demo,alipay,h5,tngdh5ng |
|
|
2503
|
+
* | web | demo,alipay,h5,tngdh5ng,worldfirst |
|
|
2503
2504
|
*/
|
|
2504
2505
|
// @ts-ignore
|
|
2505
2506
|
export var getSystemInfoAsync = /*#__PURE__*/promisify(getSystemInfo);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { getSystemInfo, getSystemInfoAsync } from '../../../common/apis/generated/web/getSystemInfo';
|
|
1
2
|
import { wfOpenDocument, wfOpenDocumentAsync } from './wfOpenDocument';
|
|
2
3
|
declare const _default: {
|
|
4
|
+
getSystemInfo: (args: GetSystemInfoArgs) => void;
|
|
5
|
+
getSystemInfoAsync: (args?: GetSystemInfoArgs | undefined) => Promise<GetSystemInfoCallbackValue>;
|
|
3
6
|
wfOpenDocument: (args: import("./wfOpenDocument").Payload & import("@hylid/types").AsyncCallback<import("./wfOpenDocument").Result>) => void;
|
|
4
7
|
wfOpenDocumentAsync: (args?: (import("./wfOpenDocument").Payload & import("@hylid/types").AsyncCallback<import("./wfOpenDocument").Result>) | undefined) => Promise<import("./wfOpenDocument").Result>;
|
|
5
8
|
};
|
|
6
9
|
export default _default;
|
|
7
|
-
export { wfOpenDocument, wfOpenDocumentAsync };
|
|
10
|
+
export { getSystemInfo, getSystemInfoAsync, wfOpenDocument, wfOpenDocumentAsync };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// auto-generated
|
|
2
|
+
import { getSystemInfo, getSystemInfoAsync } from '../../../common/apis/generated/web/getSystemInfo';
|
|
2
3
|
import { wfOpenDocument, wfOpenDocumentAsync } from './wfOpenDocument';
|
|
3
4
|
export default {
|
|
5
|
+
getSystemInfo: getSystemInfo,
|
|
6
|
+
getSystemInfoAsync: getSystemInfoAsync,
|
|
4
7
|
wfOpenDocument: wfOpenDocument,
|
|
5
8
|
wfOpenDocumentAsync: wfOpenDocumentAsync
|
|
6
9
|
};
|
|
7
|
-
export { wfOpenDocument, wfOpenDocumentAsync };
|
|
10
|
+
export { getSystemInfo, getSystemInfoAsync, wfOpenDocument, wfOpenDocumentAsync };
|
|
@@ -5,11 +5,13 @@ export interface Payload {
|
|
|
5
5
|
*/
|
|
6
6
|
filePath: string;
|
|
7
7
|
/**
|
|
8
|
-
* The type of the file to be opened.
|
|
8
|
+
* The type of the file to be opened.
|
|
9
|
+
* Currently only supports pdf and image
|
|
9
10
|
*/
|
|
10
11
|
fileType: string;
|
|
11
12
|
/**
|
|
12
|
-
* The name of the file to be opened.
|
|
13
|
+
* The name of the file to be opened.
|
|
14
|
+
* Used to display on the titlebar.
|
|
13
15
|
*/
|
|
14
16
|
fileName: string;
|
|
15
17
|
}
|
package/lib/dsl.d.ts
CHANGED
|
@@ -540,7 +540,9 @@ export declare const getBLEDeviceServices: PickMPAttr<'getBLEDeviceServices'>;
|
|
|
540
540
|
* | web | |
|
|
541
541
|
*/
|
|
542
542
|
export declare const getBLEDeviceServicesAsync: (args?: ({
|
|
543
|
-
deviceId: string;
|
|
543
|
+
deviceId: string;
|
|
544
|
+
} & AsyncCallback<{
|
|
545
|
+
/**
|
|
544
546
|
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_UI_Feedback_hideToast
|
|
545
547
|
* @support
|
|
546
548
|
* | Platform | Apps |
|
|
@@ -549,12 +551,20 @@ export declare const getBLEDeviceServicesAsync: (args?: ({
|
|
|
549
551
|
* | mp_web | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn,toss,mpay |
|
|
550
552
|
* | web | demo,alipay,h5,tngdh5ng |
|
|
551
553
|
*/
|
|
552
|
-
} & AsyncCallback<{
|
|
553
554
|
services: {
|
|
554
555
|
isPrimary: boolean;
|
|
555
556
|
serviceId: string;
|
|
556
557
|
}[];
|
|
557
558
|
}>) | undefined) => Promise<{
|
|
559
|
+
/**
|
|
560
|
+
* @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_UI_Feedback_hideToast
|
|
561
|
+
* @support
|
|
562
|
+
* | Platform | Apps |
|
|
563
|
+
* | ------------- | -------- |
|
|
564
|
+
* | mp | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn |
|
|
565
|
+
* | mp_web | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn,toss,mpay |
|
|
566
|
+
* | web | demo,alipay,h5,tngdh5ng |
|
|
567
|
+
*/
|
|
558
568
|
services: {
|
|
559
569
|
isPrimary: boolean;
|
|
560
570
|
serviceId: string;
|
|
@@ -993,7 +1003,7 @@ export declare const getStorageSync: PickMPAttr<'getStorageSync'>;
|
|
|
993
1003
|
* | ------------- | -------- |
|
|
994
1004
|
* | mp | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn |
|
|
995
1005
|
* | mp_web | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn,toss,mpay |
|
|
996
|
-
* | web | demo,alipay,h5,tngdh5ng |
|
|
1006
|
+
* | web | demo,alipay,h5,tngdh5ng,worldfirst |
|
|
997
1007
|
*/
|
|
998
1008
|
export declare const getSystemInfo: PickMPAttr<'getSystemInfo'>;
|
|
999
1009
|
/**
|
|
@@ -1003,7 +1013,7 @@ export declare const getSystemInfo: PickMPAttr<'getSystemInfo'>;
|
|
|
1003
1013
|
* | ------------- | -------- |
|
|
1004
1014
|
* | mp | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn |
|
|
1005
1015
|
* | mp_web | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn,toss,mpay |
|
|
1006
|
-
* | web | demo,alipay,h5,tngdh5ng |
|
|
1016
|
+
* | web | demo,alipay,h5,tngdh5ng,worldfirst |
|
|
1007
1017
|
*/
|
|
1008
1018
|
export declare const getSystemInfoAsync: (args?: GetSystemInfoArgs | undefined) => Promise<GetSystemInfoCallbackValue>;
|
|
1009
1019
|
/**
|
package/lib/dsl.js
CHANGED
|
@@ -1696,7 +1696,7 @@ export var getStorageSync = function getStorageSync() {
|
|
|
1696
1696
|
* | ------------- | -------- |
|
|
1697
1697
|
* | mp | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn |
|
|
1698
1698
|
* | mp_web | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn,toss,mpay |
|
|
1699
|
-
* | web | demo,alipay,h5,tngdh5ng |
|
|
1699
|
+
* | web | demo,alipay,h5,tngdh5ng,worldfirst |
|
|
1700
1700
|
*/
|
|
1701
1701
|
export var getSystemInfo = function getSystemInfo() {
|
|
1702
1702
|
var rest = [];
|
|
@@ -1720,7 +1720,7 @@ export var getSystemInfo = function getSystemInfo() {
|
|
|
1720
1720
|
* | ------------- | -------- |
|
|
1721
1721
|
* | mp | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn |
|
|
1722
1722
|
* | mp_web | demo,gcash,tngd,alipay,chope,alipayhk,dana,tmn,toss,mpay |
|
|
1723
|
-
* | web | demo,alipay,h5,tngdh5ng |
|
|
1723
|
+
* | web | demo,alipay,h5,tngdh5ng,worldfirst |
|
|
1724
1724
|
*/
|
|
1725
1725
|
// @ts-ignore
|
|
1726
1726
|
export var getSystemInfoAsync = /*#__PURE__*/promisify(getSystemInfo);
|