hylid-bridge 4.0.26 → 4.0.28-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 +170 -164
- package/canIUse.json +1 -1
- package/lib/bridges.d.ts +73 -13
- package/lib/bridges.js +80 -5
- package/lib/clients/mp/alipay/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp/alipay/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp/alipay/index.d.ts +14 -2
- package/lib/clients/mp/alipay/index.js +4 -2
- package/lib/clients/mp/alipayhk/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp/alipayhk/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp/alipayhk/index.d.ts +19 -2
- package/lib/clients/mp/alipayhk/index.js +7 -3
- package/lib/clients/mp/alipayhk/rpc.d.ts +2 -0
- package/lib/clients/mp/alipayhk/rpc.js +3 -0
- package/lib/clients/mp/dana/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp/dana/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp/dana/index.d.ts +14 -2
- package/lib/clients/mp/dana/index.js +5 -3
- package/lib/clients/mp/gcash/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp/gcash/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp/gcash/index.d.ts +14 -2
- package/lib/clients/mp/gcash/index.js +5 -3
- package/lib/clients/mp/tngd/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp/tngd/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp/tngd/index.d.ts +14 -2
- package/lib/clients/mp/tngd/index.js +5 -3
- package/lib/clients/mp_web/alipay/getBackgroundFetchData.d.ts +2 -0
- package/lib/clients/mp_web/alipay/getBackgroundFetchData.js +3 -0
- package/lib/clients/mp_web/alipay/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp_web/alipay/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp_web/alipay/index.d.ts +22 -2
- package/lib/clients/mp_web/alipay/index.js +6 -2
- package/lib/clients/mp_web/alipayhk/getBackgroundFetchData.d.ts +2 -0
- package/lib/clients/mp_web/alipayhk/getBackgroundFetchData.js +3 -0
- package/lib/clients/mp_web/alipayhk/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp_web/alipayhk/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp_web/alipayhk/index.d.ts +27 -2
- package/lib/clients/mp_web/alipayhk/index.js +8 -2
- package/lib/clients/mp_web/alipayhk/rpc.d.ts +2 -0
- package/lib/clients/mp_web/alipayhk/rpc.js +3 -0
- package/lib/clients/mp_web/dana/getBackgroundFetchData.d.ts +2 -0
- package/lib/clients/mp_web/dana/getBackgroundFetchData.js +3 -0
- package/lib/clients/mp_web/dana/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp_web/dana/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp_web/dana/index.d.ts +22 -2
- package/lib/clients/mp_web/dana/index.js +6 -2
- package/lib/clients/mp_web/gcash/getBackgroundFetchData.d.ts +2 -0
- package/lib/clients/mp_web/gcash/getBackgroundFetchData.js +3 -0
- package/lib/clients/mp_web/gcash/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp_web/gcash/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp_web/gcash/index.d.ts +22 -2
- package/lib/clients/mp_web/gcash/index.js +6 -2
- package/lib/clients/mp_web/mpay/getBackgroundFetchData.d.ts +2 -0
- package/lib/clients/mp_web/mpay/getBackgroundFetchData.js +3 -0
- package/lib/clients/mp_web/mpay/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp_web/mpay/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp_web/mpay/index.d.ts +22 -2
- package/lib/clients/mp_web/mpay/index.js +6 -2
- package/lib/clients/mp_web/tmn/getBackgroundFetchData.d.ts +2 -0
- package/lib/clients/mp_web/tmn/getBackgroundFetchData.js +3 -0
- package/lib/clients/mp_web/tmn/index.d.ts +10 -2
- package/lib/clients/mp_web/tmn/index.js +4 -2
- package/lib/clients/mp_web/tngd/getBackgroundFetchData.d.ts +2 -0
- package/lib/clients/mp_web/tngd/getBackgroundFetchData.js +3 -0
- package/lib/clients/mp_web/tngd/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp_web/tngd/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp_web/tngd/index.d.ts +22 -2
- package/lib/clients/mp_web/tngd/index.js +6 -2
- package/lib/clients/mp_web/toss/getBackgroundFetchData.d.ts +2 -0
- package/lib/clients/mp_web/toss/getBackgroundFetchData.js +3 -0
- package/lib/clients/mp_web/toss/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp_web/toss/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp_web/toss/index.d.ts +22 -2
- package/lib/clients/mp_web/toss/index.js +6 -2
- package/lib/common/apis/generated/mp/getEnterOptionsSync.d.ts +33 -0
- package/lib/common/apis/generated/mp/getEnterOptionsSync.js +8 -0
- package/lib/common/apis/generated/mp_web/getBackgroundFetchData.d.ts +21 -0
- package/lib/common/apis/generated/mp_web/getBackgroundFetchData.js +8 -0
- package/lib/common/apis/generated/mp_web/getEnterOptionsSync.d.ts +33 -0
- package/lib/common/apis/generated/mp_web/getEnterOptionsSync.js +8 -0
- package/lib/dsl.d.ts +42 -4
- package/lib/dsl.js +37 -5
- package/lib/umd/index.js +1 -1
- package/lib/umd/mp_web_alipay.js +1 -1
- package/lib/umd/mp_web_alipayhk.js +1 -1
- package/lib/umd/mp_web_dana.js +1 -1
- package/lib/umd/mp_web_gcash.js +1 -1
- package/lib/umd/mp_web_mpay.js +1 -1
- package/lib/umd/mp_web_tmn.js +1 -1
- package/lib/umd/mp_web_tngd.js +1 -1
- package/lib/umd/mp_web_toss.js +1 -1
- package/package.json +7 -7
package/lib/dsl.d.ts
CHANGED
|
@@ -1901,8 +1901,8 @@ export declare const requestAsync: (args?: ({
|
|
|
1901
1901
|
* @support
|
|
1902
1902
|
* | Platform | Apps |
|
|
1903
1903
|
* | ------------- | -------- |
|
|
1904
|
-
* | mp | alipay,demo |
|
|
1905
|
-
* | mp_web | alipay,demo,toss |
|
|
1904
|
+
* | mp | alipay,alipayhk,demo |
|
|
1905
|
+
* | mp_web | alipay,alipayhk,demo,toss |
|
|
1906
1906
|
* | web | alipay,demo,h5 |
|
|
1907
1907
|
*/
|
|
1908
1908
|
export declare const rpc: PickMPAttr<'rpc'>;
|
|
@@ -1910,8 +1910,8 @@ export declare const rpc: PickMPAttr<'rpc'>;
|
|
|
1910
1910
|
* @support
|
|
1911
1911
|
* | Platform | Apps |
|
|
1912
1912
|
* | ------------- | -------- |
|
|
1913
|
-
* | mp | alipay,demo |
|
|
1914
|
-
* | mp_web | alipay,demo,toss |
|
|
1913
|
+
* | mp | alipay,alipayhk,demo |
|
|
1914
|
+
* | mp_web | alipay,alipayhk,demo,toss |
|
|
1915
1915
|
* | web | alipay,demo,h5 |
|
|
1916
1916
|
*/
|
|
1917
1917
|
export declare const rpcAsync: (args?: (import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
|
|
@@ -2705,3 +2705,41 @@ export declare const hideOptionButton: PickMPAttr<'hideOptionButton'>;
|
|
|
2705
2705
|
* | mp_web | demo |
|
|
2706
2706
|
*/
|
|
2707
2707
|
export declare const hideOptionButtonAsync: (args?: any) => Promise<unknown>;
|
|
2708
|
+
/**
|
|
2709
|
+
* @support
|
|
2710
|
+
* | Platform | Apps |
|
|
2711
|
+
* | ------------- | -------- |
|
|
2712
|
+
* | mp | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
|
|
2713
|
+
* | mp_web | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
|
|
2714
|
+
* | web | |
|
|
2715
|
+
*/
|
|
2716
|
+
export declare const getEnterOptionsSync: PickMPAttr<'getEnterOptionsSync'>;
|
|
2717
|
+
/**
|
|
2718
|
+
* @support
|
|
2719
|
+
* | Platform | Apps |
|
|
2720
|
+
* | ------------- | -------- |
|
|
2721
|
+
* | mp | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
|
|
2722
|
+
* | mp_web | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
|
|
2723
|
+
* | web | |
|
|
2724
|
+
*/
|
|
2725
|
+
export declare const getEnterOptionsSyncAsync: (args?: import("@hylid/types").AsyncCallback<{
|
|
2726
|
+
path?: string | undefined;
|
|
2727
|
+
query?: Record<string, unknown> | undefined;
|
|
2728
|
+
referrerInfo?: {
|
|
2729
|
+
appId: string;
|
|
2730
|
+
sourceServiceId?: string | undefined;
|
|
2731
|
+
extraData: Record<string, unknown>;
|
|
2732
|
+
} | undefined;
|
|
2733
|
+
scene?: number | undefined;
|
|
2734
|
+
apiCategory?: "default" | "embedded" | undefined;
|
|
2735
|
+
}> | undefined) => Promise<{
|
|
2736
|
+
path?: string | undefined;
|
|
2737
|
+
query?: Record<string, unknown> | undefined;
|
|
2738
|
+
referrerInfo?: {
|
|
2739
|
+
appId: string;
|
|
2740
|
+
sourceServiceId?: string | undefined;
|
|
2741
|
+
extraData: Record<string, unknown>;
|
|
2742
|
+
} | undefined;
|
|
2743
|
+
scene?: number | undefined;
|
|
2744
|
+
apiCategory?: "default" | "embedded" | undefined;
|
|
2745
|
+
}>;
|
package/lib/dsl.js
CHANGED
|
@@ -135,6 +135,7 @@ import mpCreateSelectorQuery from './common/apis/generated/mp/createSelectorQuer
|
|
|
135
135
|
import mpCanIUse from './common/apis/generated/mp/canIUse';
|
|
136
136
|
import mpGetStorageInfoSync from './common/apis/generated/mp/getStorageInfoSync';
|
|
137
137
|
import mpShowSharePanel from './common/apis/generated/mp/showSharePanel';
|
|
138
|
+
import mpGetEnterOptionsSync from './common/apis/generated/mp/getEnterOptionsSync';
|
|
138
139
|
import mpTradePay from './common/apis/generated/mp/tradePay';
|
|
139
140
|
import mpAddFatigueAction from './common/apis/generated/mp/addFatigueAction';
|
|
140
141
|
import mpApDisableJSAPI from './common/apis/generated/mp/apDisableJSAPI';
|
|
@@ -3372,8 +3373,8 @@ export var requestAsync = /*#__PURE__*/promisify(request);
|
|
|
3372
3373
|
* @support
|
|
3373
3374
|
* | Platform | Apps |
|
|
3374
3375
|
* | ------------- | -------- |
|
|
3375
|
-
* | mp | alipay,demo |
|
|
3376
|
-
* | mp_web | alipay,demo,toss |
|
|
3376
|
+
* | mp | alipay,alipayhk,demo |
|
|
3377
|
+
* | mp_web | alipay,alipayhk,demo,toss |
|
|
3377
3378
|
* | web | alipay,demo,h5 |
|
|
3378
3379
|
*/
|
|
3379
3380
|
export var rpc = function rpc() {
|
|
@@ -3382,6 +3383,7 @@ export var rpc = function rpc() {
|
|
|
3382
3383
|
rest[_i] = arguments[_i];
|
|
3383
3384
|
}
|
|
3384
3385
|
if (appEnv.isMpAlipay) return mpRpc.apply(void 0, rest);
|
|
3386
|
+
if (appEnv.isMpAlipayhk) return mpRpc.apply(void 0, rest);
|
|
3385
3387
|
if (appEnv.isMpDemo) return mpRpc.apply(void 0, rest);
|
|
3386
3388
|
return notFound.apply(void 0, __spreadArray(['rpc'], rest, false));
|
|
3387
3389
|
};
|
|
@@ -3389,8 +3391,8 @@ export var rpc = function rpc() {
|
|
|
3389
3391
|
* @support
|
|
3390
3392
|
* | Platform | Apps |
|
|
3391
3393
|
* | ------------- | -------- |
|
|
3392
|
-
* | mp | alipay,demo |
|
|
3393
|
-
* | mp_web | alipay,demo,toss |
|
|
3394
|
+
* | mp | alipay,alipayhk,demo |
|
|
3395
|
+
* | mp_web | alipay,alipayhk,demo,toss |
|
|
3394
3396
|
* | web | alipay,demo,h5 |
|
|
3395
3397
|
*/
|
|
3396
3398
|
// @ts-ignore
|
|
@@ -4719,4 +4721,34 @@ export var hideOptionButton = function hideOptionButton() {
|
|
|
4719
4721
|
* | mp_web | demo |
|
|
4720
4722
|
*/
|
|
4721
4723
|
// @ts-ignore
|
|
4722
|
-
export var hideOptionButtonAsync = /*#__PURE__*/promisify(hideOptionButton);
|
|
4724
|
+
export var hideOptionButtonAsync = /*#__PURE__*/promisify(hideOptionButton);
|
|
4725
|
+
/**
|
|
4726
|
+
* @support
|
|
4727
|
+
* | Platform | Apps |
|
|
4728
|
+
* | ------------- | -------- |
|
|
4729
|
+
* | mp | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
|
|
4730
|
+
* | mp_web | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
|
|
4731
|
+
* | web | |
|
|
4732
|
+
*/
|
|
4733
|
+
export var getEnterOptionsSync = function getEnterOptionsSync() {
|
|
4734
|
+
var rest = [];
|
|
4735
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
4736
|
+
rest[_i] = arguments[_i];
|
|
4737
|
+
}
|
|
4738
|
+
if (appEnv.isMpAlipay) return mpGetEnterOptionsSync.apply(void 0, rest);
|
|
4739
|
+
if (appEnv.isMpAlipayhk) return mpGetEnterOptionsSync.apply(void 0, rest);
|
|
4740
|
+
if (appEnv.isMpDana) return mpGetEnterOptionsSync.apply(void 0, rest);
|
|
4741
|
+
if (appEnv.isMpGcash) return mpGetEnterOptionsSync.apply(void 0, rest);
|
|
4742
|
+
if (appEnv.isMpTngd) return mpGetEnterOptionsSync.apply(void 0, rest);
|
|
4743
|
+
return notFound.apply(void 0, __spreadArray(['getEnterOptionsSync'], rest, false));
|
|
4744
|
+
};
|
|
4745
|
+
/**
|
|
4746
|
+
* @support
|
|
4747
|
+
* | Platform | Apps |
|
|
4748
|
+
* | ------------- | -------- |
|
|
4749
|
+
* | mp | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
|
|
4750
|
+
* | mp_web | alipay,alipayhk,tngd,gcash,dana,mpay,toss |
|
|
4751
|
+
* | web | |
|
|
4752
|
+
*/
|
|
4753
|
+
// @ts-ignore
|
|
4754
|
+
export var getEnterOptionsSyncAsync = /*#__PURE__*/promisify(getEnterOptionsSync);
|