@paypay/mini-app-js-sdk 1.22.0 → 1.23.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/dist/composition-api/useInpuAddress.d.ts +1 -1
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +438 -314
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/checkAccessToken.d.ts +1 -1
- package/dist/model/bridge/closeApp.d.ts +1 -1
- package/dist/model/bridge/copyToClipboard.d.ts +1 -1
- package/dist/model/bridge/debug.d.ts +1 -1
- package/dist/model/bridge/getDeviceInformation.d.ts +1 -1
- package/dist/model/bridge/getSessionData.d.ts +1 -1
- package/dist/model/bridge/getStorageData.d.ts +1 -1
- package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
- package/dist/model/bridge/getUAID.d.ts +1 -1
- package/dist/model/bridge/getUserAddress.d.ts +1 -1
- package/dist/model/bridge/inputAddress.d.ts +1 -1
- package/dist/model/bridge/logout.d.ts +1 -1
- package/dist/model/bridge/openApp.d.ts +1 -1
- package/dist/model/bridge/openMap.d.ts +1 -1
- package/dist/model/bridge/openWebview.d.ts +1 -1
- package/dist/model/bridge/registerEmail.d.ts +1 -1
- package/dist/package/charge-amount-list/index.vue.d.ts +27 -2
- package/dist/package/select-list/Components.d.ts +28 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +0 -2
- package/dist/views/input-address/hook/error-handle.d.ts +1 -2
- package/dist/views/make-payment/Main.vue.d.ts +4 -2
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +1 -1
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +8 -0
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +12 -4
- package/dist/views/make-payment/hooks/app-hooks.d.ts +3 -3
- package/dist/views/make-payment/hooks/ui-hooks.d.ts +2 -3
- package/dist/views/topup/App.vue.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, ComputedRef } from 'vue';
|
|
2
|
+
import { SelectType, ListType } from '../select-list/Components';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
isfullheight: {
|
|
4
5
|
type: BooleanConstructor;
|
|
@@ -21,28 +22,52 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
type: StringConstructor;
|
|
22
23
|
default: string;
|
|
23
24
|
};
|
|
25
|
+
topupAmountText: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: false;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
halfsheetAmount: {
|
|
31
|
+
type: PropType<number[]>;
|
|
32
|
+
default: () => number[];
|
|
33
|
+
required: false;
|
|
34
|
+
};
|
|
24
35
|
}, {
|
|
25
36
|
style: Record<string, string>;
|
|
26
37
|
select: (money: number) => void;
|
|
27
38
|
numberWithCommas: (x?: number) => string;
|
|
28
|
-
isSelectMoreVisible:
|
|
39
|
+
isSelectMoreVisible: ComputedRef<boolean>;
|
|
40
|
+
isDesktop: ComputedRef<boolean>;
|
|
41
|
+
handleSelectMoreClick: (e: MouseEvent) => void;
|
|
42
|
+
SelectType: typeof SelectType;
|
|
43
|
+
handleChange: (e: Event) => void;
|
|
44
|
+
toggleDropdown: ComputedRef<boolean>;
|
|
45
|
+
chargeHalfsheetAmount: ComputedRef<ListType>;
|
|
46
|
+
chargeAmountList: ComputedRef<number[]>;
|
|
47
|
+
topupAmount: ComputedRef<string>;
|
|
29
48
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "setmoney" | "switchinput" | "selectmoremoney", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
30
49
|
isfullheight?: unknown;
|
|
31
50
|
operator?: unknown;
|
|
32
51
|
small?: unknown;
|
|
33
52
|
amountList?: unknown;
|
|
34
53
|
itemClassName?: unknown;
|
|
54
|
+
topupAmountText?: unknown;
|
|
55
|
+
halfsheetAmount?: unknown;
|
|
35
56
|
} & {
|
|
36
57
|
small: boolean;
|
|
37
58
|
isfullheight: boolean;
|
|
38
59
|
operator: string;
|
|
39
60
|
amountList: number[];
|
|
40
61
|
itemClassName: string;
|
|
62
|
+
topupAmountText: string;
|
|
63
|
+
halfsheetAmount: number[];
|
|
41
64
|
} & {}>, {
|
|
42
65
|
small: boolean;
|
|
43
66
|
isfullheight: boolean;
|
|
44
67
|
operator: string;
|
|
45
68
|
amountList: number[];
|
|
46
69
|
itemClassName: string;
|
|
70
|
+
topupAmountText: string;
|
|
71
|
+
halfsheetAmount: number[];
|
|
47
72
|
}>;
|
|
48
73
|
export default _default;
|
|
@@ -4,6 +4,10 @@ export declare type ListItem = {
|
|
|
4
4
|
label: string;
|
|
5
5
|
};
|
|
6
6
|
export declare type ListType = ListItem[];
|
|
7
|
+
export declare enum SelectType {
|
|
8
|
+
SELECT = "SELECT",
|
|
9
|
+
DROPDOWN = "DROPDOWN"
|
|
10
|
+
}
|
|
7
11
|
export declare const Icon: import("vue").DefineComponent<{
|
|
8
12
|
class: {
|
|
9
13
|
type: StringConstructor;
|
|
@@ -44,6 +48,21 @@ export declare const Select: import("vue").DefineComponent<{
|
|
|
44
48
|
required: false;
|
|
45
49
|
default: boolean;
|
|
46
50
|
};
|
|
51
|
+
type: {
|
|
52
|
+
type: PropType<SelectType>;
|
|
53
|
+
required: false;
|
|
54
|
+
default: SelectType;
|
|
55
|
+
};
|
|
56
|
+
toggleDropdown: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
required: false;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
dropDownClass: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
required: false;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
47
66
|
}, unknown, {
|
|
48
67
|
isActive: boolean;
|
|
49
68
|
}, {
|
|
@@ -62,16 +81,25 @@ export declare const Select: import("vue").DefineComponent<{
|
|
|
62
81
|
placeholder?: unknown;
|
|
63
82
|
onChange?: unknown;
|
|
64
83
|
disabled?: unknown;
|
|
84
|
+
type?: unknown;
|
|
85
|
+
toggleDropdown?: unknown;
|
|
86
|
+
dropDownClass?: unknown;
|
|
65
87
|
} & {
|
|
66
88
|
value: string;
|
|
89
|
+
type: SelectType;
|
|
67
90
|
disabled: boolean;
|
|
68
91
|
onChange: (e: Event) => void;
|
|
69
92
|
placeholder: string;
|
|
70
93
|
list: ListType;
|
|
94
|
+
toggleDropdown: boolean;
|
|
95
|
+
dropDownClass: string;
|
|
71
96
|
} & {}>, {
|
|
72
97
|
value: string;
|
|
98
|
+
type: SelectType;
|
|
73
99
|
disabled: boolean;
|
|
74
100
|
onChange: (e: Event) => void;
|
|
75
101
|
placeholder: string;
|
|
76
102
|
list: ListType;
|
|
103
|
+
toggleDropdown: boolean;
|
|
104
|
+
dropDownClass: string;
|
|
77
105
|
}>;
|
|
@@ -24,12 +24,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
show: {
|
|
25
25
|
type: BooleanConstructor;
|
|
26
26
|
required: true;
|
|
27
|
-
default: boolean;
|
|
28
27
|
};
|
|
29
28
|
enableDelete: {
|
|
30
29
|
type: BooleanConstructor;
|
|
31
30
|
required: true;
|
|
32
|
-
default: boolean;
|
|
33
31
|
};
|
|
34
32
|
}, {
|
|
35
33
|
states: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { SetupContext } from 'vue';
|
|
2
1
|
import { ErrorResponse } from '../../../utils/fetch';
|
|
3
|
-
export declare function useErrorHandling(
|
|
2
|
+
export declare function useErrorHandling(): {
|
|
4
3
|
errorShow: import("vue").ComputedRef<boolean>;
|
|
5
4
|
errorTitle: import("vue").ComputedRef<string>;
|
|
6
5
|
errorIcon: import("vue").ComputedRef<string>;
|
|
@@ -175,7 +175,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
175
175
|
showCloseConfirmation: ComputedRef<boolean>;
|
|
176
176
|
confirmCloseConfirmation: () => void;
|
|
177
177
|
cancelCloseConfirmation: () => void;
|
|
178
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
178
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
179
179
|
show?: unknown;
|
|
180
180
|
paymentParams?: unknown;
|
|
181
181
|
orderItems?: unknown;
|
|
@@ -187,7 +187,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
187
187
|
addresses: Address[];
|
|
188
188
|
paymentParams: MakePaymentParams;
|
|
189
189
|
showUserAddress: boolean;
|
|
190
|
-
} & {}
|
|
190
|
+
} & {}> & {
|
|
191
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
192
|
+
}, {
|
|
191
193
|
orderItems: Record<string, any>;
|
|
192
194
|
show: boolean;
|
|
193
195
|
addresses: Address[];
|
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
openCampaignDetail: () => void;
|
|
28
28
|
showCampaignHome: import("vue").ComputedRef<boolean>;
|
|
29
29
|
openCampaignHome: () => void;
|
|
30
|
-
showShare: import("vue").ComputedRef<boolean
|
|
30
|
+
showShare: import("vue").ComputedRef<boolean>;
|
|
31
31
|
openShare: () => void;
|
|
32
32
|
post: (dateValue: string) => Promise<void>;
|
|
33
33
|
showAgeConfirmFail: import("vue").ComputedRef<boolean>;
|
|
@@ -70,6 +70,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
70
|
required: false;
|
|
71
71
|
default: () => void;
|
|
72
72
|
};
|
|
73
|
+
halfsheetAmount: {
|
|
74
|
+
type: PropType<number[]>;
|
|
75
|
+
default: () => number[];
|
|
76
|
+
required: false;
|
|
77
|
+
};
|
|
73
78
|
}, {
|
|
74
79
|
style: Record<string, string>;
|
|
75
80
|
setMoney: (price: number) => void;
|
|
@@ -376,6 +381,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
376
381
|
showUserAddress?: unknown;
|
|
377
382
|
addresses?: unknown;
|
|
378
383
|
selectedAddress?: unknown;
|
|
384
|
+
halfsheetAmount?: unknown;
|
|
379
385
|
} & {
|
|
380
386
|
containerClass: string;
|
|
381
387
|
done: boolean;
|
|
@@ -389,6 +395,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
389
395
|
showUserAddress: boolean;
|
|
390
396
|
isScrollable: boolean;
|
|
391
397
|
topupAmountText: string;
|
|
398
|
+
halfsheetAmount: number[];
|
|
392
399
|
amountButtons: number[];
|
|
393
400
|
available: boolean;
|
|
394
401
|
} & {}> & {
|
|
@@ -417,6 +424,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
417
424
|
showUserAddress: boolean;
|
|
418
425
|
isScrollable: boolean;
|
|
419
426
|
topupAmountText: string;
|
|
427
|
+
halfsheetAmount: number[];
|
|
420
428
|
amountButtons: number[];
|
|
421
429
|
}>;
|
|
422
430
|
export default _default;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { AppDetail } from '../../../../types';
|
|
3
2
|
declare const _default: import("vue").DefineComponent<{
|
|
4
3
|
appDetail: {
|
|
5
|
-
type: PropType<
|
|
4
|
+
type: PropType<{
|
|
5
|
+
appName: string;
|
|
6
|
+
appLogo: string;
|
|
7
|
+
}>;
|
|
6
8
|
required: true;
|
|
7
9
|
default: () => {};
|
|
8
10
|
};
|
|
@@ -296,12 +298,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
296
298
|
insufficientAmount?: unknown;
|
|
297
299
|
} & {
|
|
298
300
|
price: number;
|
|
299
|
-
appDetail:
|
|
301
|
+
appDetail: {
|
|
302
|
+
appName: string;
|
|
303
|
+
appLogo: string;
|
|
304
|
+
};
|
|
300
305
|
balance: number;
|
|
301
306
|
insufficientAmount: number;
|
|
302
307
|
} & {}>, {
|
|
303
308
|
price: number;
|
|
304
|
-
appDetail:
|
|
309
|
+
appDetail: {
|
|
310
|
+
appName: string;
|
|
311
|
+
appLogo: string;
|
|
312
|
+
};
|
|
305
313
|
balance: number;
|
|
306
314
|
insufficientAmount: number;
|
|
307
315
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { BannerInfo, CashBackDetail, ConsultResponse, getPaymentMethodsResponse, MakePaymentResponse, PaymentMethod, PaymentMethodType } from '../../../model/makePayment';
|
|
2
3
|
import { UIComponentsError } from '../../../model/uiComponents';
|
|
3
|
-
import { ComputedRef, SetupContext } from 'vue';
|
|
4
4
|
import { MakePaymentParams } from '../../../types';
|
|
5
5
|
import { ErrorResponse } from '../../../utils/fetch';
|
|
6
6
|
export interface Props {
|
|
@@ -20,7 +20,7 @@ export declare function usePaymentMethod(props: Props): {
|
|
|
20
20
|
bannerInfo: ComputedRef<BannerInfo>;
|
|
21
21
|
showPaymentMethodList: ComputedRef<boolean>;
|
|
22
22
|
};
|
|
23
|
-
export declare function useConsult(props: Props
|
|
23
|
+
export declare function useConsult(props: Props): {
|
|
24
24
|
showConsult: ComputedRef<boolean>;
|
|
25
25
|
consultInfo: ComputedRef<{
|
|
26
26
|
title: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { MakePaymentParams, Address, AddressUpdateEvent } from '../../../types';
|
|
2
1
|
import { MakePaymentResponse, PaymentResult } from '../../../model/makePayment';
|
|
3
|
-
import {
|
|
2
|
+
import { Address, AddressUpdateEvent, MakePaymentParams } from '../../../types';
|
|
4
3
|
export interface Props {
|
|
5
4
|
show: boolean;
|
|
6
5
|
paymentParams: MakePaymentParams;
|
|
@@ -41,7 +40,7 @@ export declare function useAddressControl(): {
|
|
|
41
40
|
street2?: string | undefined;
|
|
42
41
|
}[]>;
|
|
43
42
|
};
|
|
44
|
-
export declare function useUIControl(props: Props
|
|
43
|
+
export declare function useUIControl(props: Props): {
|
|
45
44
|
startPaying: () => boolean;
|
|
46
45
|
endPaying: () => boolean;
|
|
47
46
|
startLoading: () => boolean;
|
|
@@ -7,7 +7,7 @@ import { UIComponentsErrorButton } from '../../model/uiComponents';
|
|
|
7
7
|
declare const _default: import("vue").DefineComponent<{
|
|
8
8
|
show: BooleanConstructor;
|
|
9
9
|
topupParams: {
|
|
10
|
-
type: PropType<TopupParams>;
|
|
10
|
+
type: PropType<TopupParams | null>;
|
|
11
11
|
default: () => {};
|
|
12
12
|
};
|
|
13
13
|
}, unknown, {
|
|
@@ -368,11 +368,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
368
368
|
topupParams?: unknown;
|
|
369
369
|
} & {
|
|
370
370
|
show: boolean;
|
|
371
|
-
topupParams: TopupParams;
|
|
371
|
+
topupParams: TopupParams | null;
|
|
372
372
|
} & {}> & {
|
|
373
373
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
374
374
|
}, {
|
|
375
375
|
show: boolean;
|
|
376
|
-
topupParams: TopupParams;
|
|
376
|
+
topupParams: TopupParams | null;
|
|
377
377
|
}>;
|
|
378
378
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paypay/mini-app-js-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "vite build",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"js-cookie": "^3.0.1",
|
|
25
|
-
"lottie-web": "^5.
|
|
25
|
+
"lottie-web": "^5.8.1",
|
|
26
26
|
"uuid": "^8.3.2",
|
|
27
27
|
"vue": "^3.2.11"
|
|
28
28
|
},
|