@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.
Files changed (41) hide show
  1. package/README.md +0 -5
  2. package/dist/client/clientUtils.d.ts +1 -0
  3. package/dist/client/index.d.ts +11 -6
  4. package/dist/core/coreFunctions/fetchCoupons.d.ts +4 -0
  5. package/dist/core/coreFunctions/getLoginUrl.d.ts +4 -0
  6. package/dist/core/coreFunctions/index.d.ts +17 -7
  7. package/dist/core/coreFunctions/logEvent.d.ts +4 -0
  8. package/dist/core/coreFunctions/markAsReady.d.ts +4 -0
  9. package/dist/core/coreFunctions/middlewares/initRequired.d.ts +2 -0
  10. package/dist/core/coreFunctions/middlewares/loginRequired.d.ts +2 -0
  11. package/dist/core/index.d.ts +1 -1
  12. package/dist/environment-variables.d.ts +0 -1
  13. package/dist/jsbridge-core/jsbridge.d.ts +4 -5
  14. package/dist/mini-app-api.d.ts +4 -4
  15. package/dist/mini-app-js-sdk.browser.js +2 -2
  16. package/dist/mini-app-js-sdk.es.js +555 -1069
  17. package/dist/model/bridge/getPlatformInformation.d.ts +1 -1
  18. package/dist/model/bridge/renderPayButton.d.ts +0 -6
  19. package/dist/model/miniAppError.d.ts +2 -5
  20. package/dist/resources/locales/topup/index.d.ts +2 -0
  21. package/dist/resources/locales/topup/ja.d.ts +1 -0
  22. package/dist/types/checkPaymentMethod.d.ts +1 -1
  23. package/dist/types/getKycInformation.d.ts +3 -3
  24. package/dist/types/getKycPassportInfo.d.ts +2 -2
  25. package/dist/types/getPlatformInformation.d.ts +0 -1
  26. package/dist/types/init.d.ts +2 -1
  27. package/dist/types/makePayment.d.ts +419 -0
  28. package/dist/types/topup.d.ts +1 -1
  29. package/dist/types.d.ts +8 -2
  30. package/dist/utils/analytics.d.ts +1 -0
  31. package/dist/utils/api.d.ts +0 -1
  32. package/dist/utils/helper.d.ts +2 -2
  33. package/dist/utils/minimumAppVersion.d.ts +0 -5
  34. package/dist/utils/minimumJSSDKVersion.d.ts +1 -0
  35. package/dist/utils/windowBridge.d.ts +24 -3
  36. package/dist/views/coupon/components/CouponAction/index.d.ts +25 -5
  37. package/dist/views/coupon/index.d.ts +25 -5
  38. package/dist/views/registerPaymentFeatures/types.d.ts +1 -1
  39. package/package.json +54 -66
  40. package/dist/composition-api/useShowUpdateWarningKycPassport.d.ts +0 -4
  41. 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<typeof import("../../../../core/coreFunctions")>>;
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: true;
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<typeof import("../../../../core/coreFunctions")>>;
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: true;
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<typeof import("../../core/coreFunctions")>>;
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: true;
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<typeof import("../../core/coreFunctions")>>;
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: true;
77
+ required: false;
78
+ default: undefined;
61
79
  };
62
- }>>, {}>;
80
+ }>>, {
81
+ postLoginRedirectType: RedirectType;
82
+ }>;
@@ -1,4 +1,4 @@
1
- import { PaymentMethod, PaymentMethodNameType } from '../../model/makePayment';
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.40.0",
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": "jest --silent --coverage",
23
- "test:watch": "jest --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": ">=10.0.0"
38
+ "node": ">=20.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "js-cookie": "^3.0.1"
41
+ "js-cookie": "^3.0.5"
42
42
  },
43
43
  "devDependencies": {
44
- "@babel/core": "^7.15.5",
45
- "@babel/plugin-transform-typescript": "^7.15.4",
46
- "@babel/preset-env": "^7.15.4",
47
- "@braintree/browser-detection": "^1.16.0",
48
- "@pinia/testing": "^0.0.12",
49
- "@playwright/test": "^1.40.1",
50
- "@rollup/plugin-html": "^1.0.2",
51
- "@rollup/plugin-replace": "^3.0.0",
52
- "@rollup/plugin-terser": "^0.4.3",
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/ip": "^1.1.0",
59
- "@types/jest": "^26.0.24",
60
- "@types/js-cookie": "^2.2.7",
61
- "@types/lodash": "^4.14.195",
62
- "@types/node": "^20.10.3",
63
- "@types/ua-parser-js": "^0.7.36",
64
- "@types/uuid": "^8.3.1",
65
- "@typescript-eslint/eslint-plugin": "^5.58.0",
66
- "@typescript-eslint/parser": "^5.58.0",
67
- "@vitejs/plugin-legacy": "^4.1.1",
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
- "acorn-jsx": "^5.3.2",
74
- "babel-jest": "^26.6.3",
75
- "dotenv": "^16.3.2",
76
- "eslint": "^8.38.0",
77
- "eslint-config-prettier": "^8.8.0",
78
- "eslint-plugin-prettier": "^4.2.1",
79
- "eslint-plugin-vue": "^9.10.0",
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
- "ip": "^1.1.8",
83
- "isomorphic-fetch": "^3.0.0",
84
- "jest": "^26.6.3",
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.9.6",
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-html": "^1.4.1",
81
+ "postcss": "^8.4.49",
82
+ "postcss-html": "^1.7.0",
95
83
  "postcss-less": "^6.0.0",
96
- "prettier": "^2.8.7",
97
- "rollup": "3.28.0",
98
- "rollup-plugin-ts": "^3.4.4",
99
- "rollup-plugin-visualizer": "^5.9.2",
100
- "stylelint": "^14.9.1",
101
- "terser": "^5.18.1",
102
- "ts-jest": "^26.5.6",
103
- "typescript": "~4.9.5",
104
- "ua-parser-js": "^1.0.2",
105
- "uuid": "^8.3.2",
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.1.1",
111
- "vue-jest": "5.0.0-alpha.9",
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"
@@ -1,4 +0,0 @@
1
- import { NativeParams } from '../jsbridge-core/jsbridge';
2
- import { GetKycPassportInfoResult } from '../types/getKycPassportInfo';
3
- declare const initUpdateWarning: (params: NativeParams<GetKycPassportInfoResult>) => void;
4
- export { initUpdateWarning };