@paypay/mini-app-js-sdk 1.59.0 → 1.61.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/mini-app-api.d.ts +4 -1
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +601 -311
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/addShortcut.d.ts +2 -0
- package/dist/model/bridge/getUserPaymentFeatureSettings.d.ts +2 -0
- package/dist/model/bridge/shortcutExists.d.ts +17 -0
- package/dist/package/payment-method/Bank.vue.d.ts +11 -0
- package/dist/package/payment-method/index.d.ts +11 -0
- package/dist/package/payment-method-list/index.vue.d.ts +11 -0
- package/dist/types.d.ts +20 -0
- package/dist/utils/helper.d.ts +1 -0
- package/dist/utils/minimumAppVersion.d.ts +1 -0
- package/dist/views/error-sheet/Index.vue.d.ts +1 -0
- package/dist/views/input-address/hook/app.d.ts +1 -1
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +11 -0
- package/dist/views/smart-button/App.vue.d.ts +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ShortcutExistsParams } from '../../types';
|
|
2
|
+
export declare type GetFavoriteFolderResponse = {
|
|
3
|
+
unsigned: {
|
|
4
|
+
data: {
|
|
5
|
+
smartFunctionInfoList: [MiniappMetadata];
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare type MiniappMetadata = {
|
|
10
|
+
featureId: string;
|
|
11
|
+
imageUrl: string;
|
|
12
|
+
deeplink: string;
|
|
13
|
+
labelShort: string;
|
|
14
|
+
exists: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare function shortcutExists(params: ShortcutExistsParams): void;
|
|
17
|
+
export {};
|
|
@@ -10,6 +10,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
required: false;
|
|
11
11
|
default: boolean;
|
|
12
12
|
};
|
|
13
|
+
ignoreBankMaintenanceFlag: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
13
18
|
}, {
|
|
14
19
|
bankInfo: import("vue").ComputedRef<{
|
|
15
20
|
logo: string | undefined;
|
|
@@ -40,9 +45,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
45
|
required: false;
|
|
41
46
|
default: boolean;
|
|
42
47
|
};
|
|
48
|
+
ignoreBankMaintenanceFlag: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
required: false;
|
|
52
|
+
};
|
|
43
53
|
}>> & {
|
|
44
54
|
onSelect?: (() => any) | undefined;
|
|
45
55
|
}, {
|
|
46
56
|
round: boolean;
|
|
57
|
+
ignoreBankMaintenanceFlag: boolean;
|
|
47
58
|
}>;
|
|
48
59
|
export default _default;
|
|
@@ -6,6 +6,11 @@ export declare const PaymentMethod: import("vue").DefineComponent<{
|
|
|
6
6
|
required: true;
|
|
7
7
|
default: () => void;
|
|
8
8
|
};
|
|
9
|
+
ignoreBankMaintenanceFlag: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
9
14
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
15
|
select: () => true;
|
|
11
16
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -14,8 +19,14 @@ export declare const PaymentMethod: import("vue").DefineComponent<{
|
|
|
14
19
|
required: true;
|
|
15
20
|
default: () => void;
|
|
16
21
|
};
|
|
22
|
+
ignoreBankMaintenanceFlag: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
required: false;
|
|
26
|
+
};
|
|
17
27
|
}>> & {
|
|
18
28
|
onSelect?: (() => any) | undefined;
|
|
19
29
|
}, {
|
|
20
30
|
paymentMethod: TPaymentMethod;
|
|
31
|
+
ignoreBankMaintenanceFlag: boolean;
|
|
21
32
|
}>;
|
|
@@ -16,6 +16,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
required: false;
|
|
17
17
|
default: boolean;
|
|
18
18
|
};
|
|
19
|
+
ignoreBankMaintenanceFlag: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
required: false;
|
|
23
|
+
};
|
|
19
24
|
}, {
|
|
20
25
|
style: Record<string, string>;
|
|
21
26
|
select: (index: number) => void;
|
|
@@ -37,9 +42,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
42
|
required: false;
|
|
38
43
|
default: boolean;
|
|
39
44
|
};
|
|
45
|
+
ignoreBankMaintenanceFlag: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
required: false;
|
|
49
|
+
};
|
|
40
50
|
}>> & {
|
|
41
51
|
onSelect?: ((_index: number) => any) | undefined;
|
|
42
52
|
}, {
|
|
53
|
+
ignoreBankMaintenanceFlag: boolean;
|
|
43
54
|
paymentMethods: TPaymentMethod[];
|
|
44
55
|
selectPaymentIndex: number;
|
|
45
56
|
isTopup: boolean;
|
package/dist/types.d.ts
CHANGED
|
@@ -471,4 +471,24 @@ export declare type ErrorSheetButton = {
|
|
|
471
471
|
export interface ScanCodeParams extends NativeParams<MiniAppResult> {
|
|
472
472
|
redirectUrlOnCancel?: string;
|
|
473
473
|
}
|
|
474
|
+
export declare const AddShortcutTypes: {
|
|
475
|
+
readonly FAVORITE: "FAVORITE";
|
|
476
|
+
readonly OS_HOME_SCREEN_ICON: "OS_HOME_SCREEN_ICON";
|
|
477
|
+
};
|
|
478
|
+
export declare type AddShortcutType = typeof AddShortcutTypes[keyof typeof AddShortcutTypes];
|
|
479
|
+
export interface AddShortcutParams extends NativeParams<void> {
|
|
480
|
+
type: AddShortcutType;
|
|
481
|
+
}
|
|
482
|
+
export declare const ShortcutExistsTypes: {
|
|
483
|
+
readonly FAVORITE: "FAVORITE";
|
|
484
|
+
};
|
|
485
|
+
export declare type ShortcutExistsType = typeof ShortcutExistsTypes[keyof typeof ShortcutExistsTypes];
|
|
486
|
+
export interface ShortcutExistsParams extends NativeParams<MiniAppResult> {
|
|
487
|
+
type: ShortcutExistsType;
|
|
488
|
+
}
|
|
489
|
+
export interface GetUserPaymentFeatureSettingsParams extends NativeParams<MiniAppResult> {
|
|
490
|
+
type?: 'PRE_TRANSACTION_AUTO_CHARGE' | 'FALLBACK_PAYMENT_METHOD';
|
|
491
|
+
merchant?: string;
|
|
492
|
+
productType?: string;
|
|
493
|
+
}
|
|
474
494
|
export {};
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -57,4 +57,5 @@ export declare function generateCodeVerifier(length?: number): string;
|
|
|
57
57
|
export declare function generateCodeChallange(codeVerifier: string): Promise<string>;
|
|
58
58
|
export declare function openUrl(linkUrl: string): void;
|
|
59
59
|
export declare function getButtonType(button: UIComponentsErrorButton | ErrorSheetButton, onlyButton?: boolean): "success" | "default" | "primary" | "warning" | "danger" | "link" | "outLined";
|
|
60
|
+
export declare function isAlphabet(value: string): boolean;
|
|
60
61
|
export {};
|
|
@@ -451,6 +451,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
451
451
|
onlyButton(): boolean;
|
|
452
452
|
}, {
|
|
453
453
|
buttonClick(buttonInfo?: ErrorSheetButton | UIComponentsErrorButton | undefined): void;
|
|
454
|
+
openWebView(buttonInfo: UIComponentsErrorButton): void;
|
|
454
455
|
getButtonType: typeof getButtonType;
|
|
455
456
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
456
457
|
'close-click': () => true;
|
|
@@ -4,7 +4,7 @@ import { PPFetchResult } from '../../../utils/fetch';
|
|
|
4
4
|
export declare function useApp(params: {
|
|
5
5
|
handleError: () => boolean;
|
|
6
6
|
success: () => void;
|
|
7
|
-
address?: Address | null
|
|
7
|
+
address?: Address | null;
|
|
8
8
|
}): {
|
|
9
9
|
addAddress: (_address: NewAddress) => Promise<boolean | undefined>;
|
|
10
10
|
loading: import("vue").ComputedRef<boolean>;
|
|
@@ -30,6 +30,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
type: PropType<AppealDescription | null>;
|
|
31
31
|
default: null;
|
|
32
32
|
};
|
|
33
|
+
ignoreBankMaintenanceFlag: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
required: false;
|
|
37
|
+
};
|
|
33
38
|
}, {
|
|
34
39
|
back: () => void;
|
|
35
40
|
select: (index: number) => void;
|
|
@@ -431,6 +436,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
431
436
|
type: PropType<AppealDescription | null>;
|
|
432
437
|
default: null;
|
|
433
438
|
};
|
|
439
|
+
ignoreBankMaintenanceFlag: {
|
|
440
|
+
type: BooleanConstructor;
|
|
441
|
+
default: boolean;
|
|
442
|
+
required: false;
|
|
443
|
+
};
|
|
434
444
|
}>> & {
|
|
435
445
|
onBack?: ((...args: any[]) => any) | undefined;
|
|
436
446
|
onSelectPaymentMethod?: ((_index: number) => any) | undefined;
|
|
@@ -438,6 +448,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
438
448
|
header: boolean;
|
|
439
449
|
showIcon: boolean;
|
|
440
450
|
selectIndex: number;
|
|
451
|
+
ignoreBankMaintenanceFlag: boolean;
|
|
441
452
|
paymentMethods: PaymentMethod[];
|
|
442
453
|
isTopup: boolean;
|
|
443
454
|
appealDescription: AppealDescription | null;
|
|
@@ -42,6 +42,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
42
|
onError: (e: Event) => void;
|
|
43
43
|
iconUrl: string;
|
|
44
44
|
smallBtn: boolean;
|
|
45
|
+
redirectUrl: import("vue").ComputedRef<string | undefined>;
|
|
45
46
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
47
|
click: () => true;
|
|
47
48
|
mount: () => true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paypay/mini-app-js-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.61.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "vite build",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@babel/core": "^7.15.5",
|
|
34
34
|
"@babel/plugin-transform-typescript": "^7.15.4",
|
|
35
35
|
"@babel/preset-env": "^7.15.4",
|
|
36
|
+
"@braintree/sanitize-url": "^6.0.2",
|
|
36
37
|
"@pinia/testing": "^0.0.12",
|
|
37
38
|
"@rollup/plugin-replace": "^3.0.0",
|
|
38
39
|
"@testing-library/jest-dom": "^5.16.2",
|