@paypay/mini-app-js-sdk 2.40.0 → 2.46.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 +0 -5
- package/dist/client/clientUtils.d.ts +1 -0
- package/dist/client/index.d.ts +11 -6
- package/dist/core/coreFunctions/fetchCoupons.d.ts +4 -0
- package/dist/core/coreFunctions/getLoginUrl.d.ts +4 -0
- package/dist/core/coreFunctions/index.d.ts +17 -7
- package/dist/core/coreFunctions/logEvent.d.ts +4 -0
- package/dist/core/coreFunctions/markAsReady.d.ts +4 -0
- package/dist/core/coreFunctions/middlewares/initRequired.d.ts +2 -0
- package/dist/core/coreFunctions/middlewares/loginRequired.d.ts +2 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/environment-variables.d.ts +0 -1
- package/dist/jsbridge-core/jsbridge.d.ts +4 -5
- package/dist/mini-app-api.d.ts +4 -4
- package/dist/mini-app-js-sdk.browser.js +2 -2
- package/dist/mini-app-js-sdk.es.js +555 -1069
- package/dist/model/bridge/getPlatformInformation.d.ts +1 -1
- package/dist/model/bridge/renderPayButton.d.ts +0 -6
- package/dist/model/miniAppError.d.ts +2 -5
- package/dist/resources/locales/topup/index.d.ts +2 -0
- package/dist/resources/locales/topup/ja.d.ts +1 -0
- package/dist/types/checkPaymentMethod.d.ts +1 -1
- package/dist/types/getKycInformation.d.ts +3 -3
- package/dist/types/getKycPassportInfo.d.ts +2 -2
- package/dist/types/getPlatformInformation.d.ts +0 -1
- package/dist/types/init.d.ts +2 -1
- package/dist/types/makePayment.d.ts +419 -0
- package/dist/types/topup.d.ts +1 -1
- package/dist/types.d.ts +8 -2
- package/dist/utils/analytics.d.ts +1 -0
- package/dist/utils/api.d.ts +0 -1
- package/dist/utils/helper.d.ts +2 -2
- package/dist/utils/minimumAppVersion.d.ts +0 -5
- package/dist/utils/minimumJSSDKVersion.d.ts +1 -0
- package/dist/utils/windowBridge.d.ts +24 -3
- package/dist/views/coupon/components/CouponAction/index.d.ts +25 -5
- package/dist/views/coupon/index.d.ts +25 -5
- package/dist/views/registerPaymentFeatures/types.d.ts +1 -1
- package/package.json +54 -66
- package/dist/composition-api/useShowUpdateWarningKycPassport.d.ts +0 -4
- package/dist/model/makePayment.d.ts +0 -428
|
@@ -11,7 +11,15 @@ declare const CouponAction: import("vue").DefineComponent<{
|
|
|
11
11
|
required: true;
|
|
12
12
|
};
|
|
13
13
|
core: {
|
|
14
|
-
type: PropType<import("../../../../utils/windowBridge").WindowBridgeFunctions<
|
|
14
|
+
type: PropType<import("../../../../utils/windowBridge").WindowBridgeFunctions<{
|
|
15
|
+
claimCoupon: typeof import("../../../../core/coreFunctions/claimCoupon").claimCoupon;
|
|
16
|
+
fetchCoupons: typeof import("../../../../core/coreFunctions/fetchCoupons").fetchCoupons;
|
|
17
|
+
getLoginUrl: typeof import("../../../../core/coreFunctions/getLoginUrl").getLoginUrl;
|
|
18
|
+
getPaymentSettings: typeof import("../../../../core/coreFunctions/getPaymentSettings").getPaymentSettings;
|
|
19
|
+
logEvent: typeof import("../../../../core/coreFunctions/logEvent").logEvent;
|
|
20
|
+
logout: typeof import("../../../../core/coreFunctions/logout").logout;
|
|
21
|
+
markAsReady: typeof import("../../../../core/coreFunctions/markAsReady").markAsReady;
|
|
22
|
+
}>>;
|
|
15
23
|
required: true;
|
|
16
24
|
};
|
|
17
25
|
translation: {
|
|
@@ -24,7 +32,8 @@ declare const CouponAction: import("vue").DefineComponent<{
|
|
|
24
32
|
};
|
|
25
33
|
postLoginRedirectType: {
|
|
26
34
|
type: PropType<RedirectType>;
|
|
27
|
-
required:
|
|
35
|
+
required: false;
|
|
36
|
+
default: undefined;
|
|
28
37
|
};
|
|
29
38
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
39
|
coupon: {
|
|
@@ -36,7 +45,15 @@ declare const CouponAction: import("vue").DefineComponent<{
|
|
|
36
45
|
required: true;
|
|
37
46
|
};
|
|
38
47
|
core: {
|
|
39
|
-
type: PropType<import("../../../../utils/windowBridge").WindowBridgeFunctions<
|
|
48
|
+
type: PropType<import("../../../../utils/windowBridge").WindowBridgeFunctions<{
|
|
49
|
+
claimCoupon: typeof import("../../../../core/coreFunctions/claimCoupon").claimCoupon;
|
|
50
|
+
fetchCoupons: typeof import("../../../../core/coreFunctions/fetchCoupons").fetchCoupons;
|
|
51
|
+
getLoginUrl: typeof import("../../../../core/coreFunctions/getLoginUrl").getLoginUrl;
|
|
52
|
+
getPaymentSettings: typeof import("../../../../core/coreFunctions/getPaymentSettings").getPaymentSettings;
|
|
53
|
+
logEvent: typeof import("../../../../core/coreFunctions/logEvent").logEvent;
|
|
54
|
+
logout: typeof import("../../../../core/coreFunctions/logout").logout;
|
|
55
|
+
markAsReady: typeof import("../../../../core/coreFunctions/markAsReady").markAsReady;
|
|
56
|
+
}>>;
|
|
40
57
|
required: true;
|
|
41
58
|
};
|
|
42
59
|
translation: {
|
|
@@ -49,7 +66,10 @@ declare const CouponAction: import("vue").DefineComponent<{
|
|
|
49
66
|
};
|
|
50
67
|
postLoginRedirectType: {
|
|
51
68
|
type: PropType<RedirectType>;
|
|
52
|
-
required:
|
|
69
|
+
required: false;
|
|
70
|
+
default: undefined;
|
|
53
71
|
};
|
|
54
|
-
}>>, {
|
|
72
|
+
}>>, {
|
|
73
|
+
postLoginRedirectType: RedirectType;
|
|
74
|
+
}>;
|
|
55
75
|
export default CouponAction;
|
|
@@ -11,7 +11,15 @@ export declare const CouponView: import("vue").DefineComponent<{
|
|
|
11
11
|
required: true;
|
|
12
12
|
};
|
|
13
13
|
core: {
|
|
14
|
-
type: PropType<import("../../utils/windowBridge").WindowBridgeFunctions<
|
|
14
|
+
type: PropType<import("../../utils/windowBridge").WindowBridgeFunctions<{
|
|
15
|
+
claimCoupon: typeof import("../../core/coreFunctions/claimCoupon").claimCoupon;
|
|
16
|
+
fetchCoupons: typeof import("../../core/coreFunctions/fetchCoupons").fetchCoupons;
|
|
17
|
+
getLoginUrl: typeof import("../../core/coreFunctions/getLoginUrl").getLoginUrl;
|
|
18
|
+
getPaymentSettings: typeof import("../../core/coreFunctions/getPaymentSettings").getPaymentSettings;
|
|
19
|
+
logEvent: typeof import("../../core/coreFunctions/logEvent").logEvent;
|
|
20
|
+
logout: typeof import("../../core/coreFunctions/logout").logout;
|
|
21
|
+
markAsReady: typeof import("../../core/coreFunctions/markAsReady").markAsReady;
|
|
22
|
+
}>>;
|
|
15
23
|
required: true;
|
|
16
24
|
};
|
|
17
25
|
locale: {
|
|
@@ -28,7 +36,8 @@ export declare const CouponView: import("vue").DefineComponent<{
|
|
|
28
36
|
};
|
|
29
37
|
postLoginRedirectType: {
|
|
30
38
|
type: PropType<RedirectType>;
|
|
31
|
-
required:
|
|
39
|
+
required: false;
|
|
40
|
+
default: undefined;
|
|
32
41
|
};
|
|
33
42
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
43
|
coupon: {
|
|
@@ -40,7 +49,15 @@ export declare const CouponView: import("vue").DefineComponent<{
|
|
|
40
49
|
required: true;
|
|
41
50
|
};
|
|
42
51
|
core: {
|
|
43
|
-
type: PropType<import("../../utils/windowBridge").WindowBridgeFunctions<
|
|
52
|
+
type: PropType<import("../../utils/windowBridge").WindowBridgeFunctions<{
|
|
53
|
+
claimCoupon: typeof import("../../core/coreFunctions/claimCoupon").claimCoupon;
|
|
54
|
+
fetchCoupons: typeof import("../../core/coreFunctions/fetchCoupons").fetchCoupons;
|
|
55
|
+
getLoginUrl: typeof import("../../core/coreFunctions/getLoginUrl").getLoginUrl;
|
|
56
|
+
getPaymentSettings: typeof import("../../core/coreFunctions/getPaymentSettings").getPaymentSettings;
|
|
57
|
+
logEvent: typeof import("../../core/coreFunctions/logEvent").logEvent;
|
|
58
|
+
logout: typeof import("../../core/coreFunctions/logout").logout;
|
|
59
|
+
markAsReady: typeof import("../../core/coreFunctions/markAsReady").markAsReady;
|
|
60
|
+
}>>;
|
|
44
61
|
required: true;
|
|
45
62
|
};
|
|
46
63
|
locale: {
|
|
@@ -57,6 +74,9 @@ export declare const CouponView: import("vue").DefineComponent<{
|
|
|
57
74
|
};
|
|
58
75
|
postLoginRedirectType: {
|
|
59
76
|
type: PropType<RedirectType>;
|
|
60
|
-
required:
|
|
77
|
+
required: false;
|
|
78
|
+
default: undefined;
|
|
61
79
|
};
|
|
62
|
-
}>>, {
|
|
80
|
+
}>>, {
|
|
81
|
+
postLoginRedirectType: RedirectType;
|
|
82
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaymentMethod, PaymentMethodNameType } from '../../
|
|
1
|
+
import { PaymentMethod, PaymentMethodNameType } from '../../types/makePayment';
|
|
2
2
|
import { ConsultPaymentFeatureType, PaymentFeatureType } from '../../types';
|
|
3
3
|
export declare const AutoTopupModeType: {
|
|
4
4
|
readonly POST_AUTO_TOPUP: "PostAutoTopup";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paypay/mini-app-js-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.46.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:client && yarn build:core",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"dev:client": "vite --host 0.0.0.0",
|
|
16
16
|
"dev:core": "vite --config vite.config.core.ts",
|
|
17
17
|
"lint": "yarn lint:script && yarn lint:style",
|
|
18
|
-
"lint:script": "eslint src test --ext .ts,.tsx,.vue",
|
|
18
|
+
"lint:script": "eslint src test --cache --ext .ts,.tsx,.vue",
|
|
19
19
|
"lint:style": "stylelint src/**/*.{css,less,vue}",
|
|
20
20
|
"format": "prettier --write '{src,test}/**/*.{ts,tsx,vue,less}'",
|
|
21
21
|
"upgrade": "yarn upgrade-interactive",
|
|
22
|
-
"test": "
|
|
23
|
-
"test:watch": "
|
|
22
|
+
"test": "vitest --config vite.config.core.ts --coverage --run --silent",
|
|
23
|
+
"test:watch": "vitest --config vite.config.core.ts --watch",
|
|
24
24
|
"e2e:sp": "SDK=SP playwright test",
|
|
25
25
|
"e2e:sp:update": "yarn e2e:sp --update-snapshots",
|
|
26
26
|
"e2e:ma": "SDK=MA playwright test",
|
|
@@ -35,81 +35,69 @@
|
|
|
35
35
|
"unpkg": "dist/mini-app-js-sdk.browser.js",
|
|
36
36
|
"types": "dist/client/types.d.ts",
|
|
37
37
|
"engines": {
|
|
38
|
-
"node": ">=
|
|
38
|
+
"node": ">=20.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"js-cookie": "^3.0.
|
|
41
|
+
"js-cookie": "^3.0.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@sentry/browser": "^7.80.1",
|
|
54
|
-
"@sentry/integrations": "^7.80.1",
|
|
55
|
-
"@sentry/vite-plugin": "^2.14.2",
|
|
56
|
-
"@testing-library/jest-dom": "^5.16.2",
|
|
44
|
+
"@braintree/browser-detection": "^2.0.1",
|
|
45
|
+
"@pinia/testing": "^0.1.7",
|
|
46
|
+
"@playwright/test": "^1.49.1",
|
|
47
|
+
"@rollup/plugin-html": "^1.1.0",
|
|
48
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
49
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
50
|
+
"@sentry/browser": "^8.45.1",
|
|
51
|
+
"@sentry/vite-plugin": "^2.22.7",
|
|
52
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
57
53
|
"@testing-library/vue": "^6.4.2",
|
|
58
|
-
"@types/
|
|
59
|
-
"@types/
|
|
60
|
-
"@types/
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@vitejs/plugin-vue": "^4.2.3",
|
|
69
|
-
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
|
70
|
-
"@vue/babel-plugin-jsx": "^1.0.7",
|
|
71
|
-
"@vue/compiler-sfc": "^3.2.11",
|
|
54
|
+
"@types/js-cookie": "^3.0.6",
|
|
55
|
+
"@types/lodash": "^4.17.13",
|
|
56
|
+
"@types/node": "^20.17.10",
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
58
|
+
"@typescript-eslint/parser": "^8.21.0",
|
|
59
|
+
"@vitejs/plugin-legacy": "^5.4.3",
|
|
60
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
61
|
+
"@vitejs/plugin-vue-jsx": "^4.1.1",
|
|
62
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
63
|
+
"@vue/compiler-sfc": "^3.5.13",
|
|
72
64
|
"@vue/test-utils": "^2.0.0-rc.21",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"eslint": "^
|
|
77
|
-
"eslint-
|
|
78
|
-
"eslint-plugin-
|
|
79
|
-
"
|
|
80
|
-
"husky": "^7.0.2",
|
|
65
|
+
"detectincognitojs": "^1.3.7",
|
|
66
|
+
"dotenv": "^16.4.7",
|
|
67
|
+
"eslint": "^8.57.1",
|
|
68
|
+
"eslint-config-prettier": "^10.0.1",
|
|
69
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
70
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
71
|
+
"husky": "^9.1.7",
|
|
81
72
|
"identity-obj-proxy": "^3.0.0",
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"jest-canvas-mock": "^2.3.1",
|
|
86
|
-
"jest-fetch-mock": "^3.0.3",
|
|
87
|
-
"jest-transform-stub": "^2.0.0",
|
|
88
|
-
"less": "^4.1.1",
|
|
89
|
-
"lint-staged": "^11.1.2",
|
|
73
|
+
"jsdom": "^26.0.0",
|
|
74
|
+
"less": "^4.2.1",
|
|
75
|
+
"lint-staged": "^15.4.1",
|
|
90
76
|
"lodash": "^4.17.21",
|
|
91
|
-
"lottie-web": "^5.
|
|
77
|
+
"lottie-web": "^5.12.2",
|
|
78
|
+
"neoip": "^3.0.1",
|
|
92
79
|
"npm-run-all": "^4.1.5",
|
|
93
80
|
"pinia": "^2.0.20",
|
|
94
|
-
"postcss
|
|
81
|
+
"postcss": "^8.4.49",
|
|
82
|
+
"postcss-html": "^1.7.0",
|
|
95
83
|
"postcss-less": "^6.0.0",
|
|
96
|
-
"prettier": "^
|
|
97
|
-
"rollup": "3.
|
|
98
|
-
"rollup-plugin-ts": "^3.4.
|
|
99
|
-
"rollup-plugin-visualizer": "^5.
|
|
100
|
-
"stylelint": "^
|
|
101
|
-
"terser": "^5.
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"vite": "^4.4.9",
|
|
107
|
-
"vite-plugin-css-injected-by-js": "^2.1.0",
|
|
84
|
+
"prettier": "^3.4.2",
|
|
85
|
+
"rollup": "3.29.5",
|
|
86
|
+
"rollup-plugin-ts": "^3.4.5",
|
|
87
|
+
"rollup-plugin-visualizer": "^5.12.0",
|
|
88
|
+
"stylelint": "^16.13.2",
|
|
89
|
+
"terser": "^5.37.0",
|
|
90
|
+
"typescript": "~5.7.3",
|
|
91
|
+
"uuid": "^11.0.3",
|
|
92
|
+
"vite": "^5.4.11",
|
|
93
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
108
94
|
"vite-plugin-dts": "^0.9.10",
|
|
95
|
+
"vitest": "^2.1.8",
|
|
96
|
+
"vitest-canvas-mock": "^0.3.3",
|
|
97
|
+
"vitest-fetch-mock": "^0.4.3",
|
|
109
98
|
"vue": "^3.2.39",
|
|
110
|
-
"vue-eslint-parser": "^9.
|
|
111
|
-
"vue-
|
|
112
|
-
"vue-tsc": "^1.8.27"
|
|
99
|
+
"vue-eslint-parser": "^9.4.3",
|
|
100
|
+
"vue-tsc": "^2.2.0"
|
|
113
101
|
},
|
|
114
102
|
"files": [
|
|
115
103
|
"dist"
|