@paypay/mini-app-js-sdk 2.41.0 → 2.48.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 (61) hide show
  1. package/dist/client/clientUtils.d.ts +2 -1
  2. package/dist/client/communicationWithCore.d.ts +16 -0
  3. package/dist/client/functions/copyToClipboard.d.ts +2 -0
  4. package/dist/client/functions/coreWindowBridgeFunctions.d.ts +12 -0
  5. package/dist/client/functions/getKycPassportInfo.d.ts +3 -0
  6. package/dist/client/functions/logout.d.ts +6 -0
  7. package/dist/client/functions/renderCoupons.d.ts +6 -0
  8. package/dist/client/functions/scanCode.d.ts +2 -0
  9. package/dist/client/functions/setTitle.d.ts +2 -0
  10. package/dist/client/functions/share.d.ts +2 -0
  11. package/dist/client/functions/storageFunctions.d.ts +6 -0
  12. package/dist/client/functions/verifyMultiFactorAuthResult.d.ts +3 -0
  13. package/dist/client/index.d.ts +4 -54
  14. package/dist/client/types.d.ts +37 -2
  15. package/dist/client/{clientFunctions → windowBridgeFunctions}/storageFunctions.d.ts +10 -0
  16. package/dist/client/{clientFunctions → windowBridgeFunctions}/urlFunctions.d.ts +1 -0
  17. package/dist/core/coreFunctions/fetchCoupons.d.ts +4 -0
  18. package/dist/core/coreFunctions/getLoginUrl.d.ts +5 -1
  19. package/dist/core/coreFunctions/index.d.ts +17 -7
  20. package/dist/core/coreFunctions/logEvent.d.ts +4 -0
  21. package/dist/core/coreFunctions/markAsReady.d.ts +4 -0
  22. package/dist/core/coreFunctions/middlewares/initRequired.d.ts +2 -0
  23. package/dist/core/coreFunctions/middlewares/loginRequired.d.ts +2 -0
  24. package/dist/core/coreUtils.d.ts +1 -1
  25. package/dist/core/index.d.ts +1 -1
  26. package/dist/environment-variables.d.ts +0 -1
  27. package/dist/jsbridge-core/jsbridge.d.ts +4 -5
  28. package/dist/mini-app-api.d.ts +4 -4
  29. package/dist/mini-app-js-sdk.browser.js +2 -2
  30. package/dist/mini-app-js-sdk.es.js +865 -1493
  31. package/dist/model/bridge/getPlatformInformation.d.ts +1 -1
  32. package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
  33. package/dist/model/bridge/renderPayButton.d.ts +0 -6
  34. package/dist/model/miniAppError.d.ts +2 -5
  35. package/dist/package/lottie/lottie.d.ts +6 -6
  36. package/dist/types/checkPaymentMethod.d.ts +1 -1
  37. package/dist/types/getKycInformation.d.ts +3 -3
  38. package/dist/types/getKycPassportInfo.d.ts +2 -2
  39. package/dist/types/getPlatformInformation.d.ts +0 -1
  40. package/dist/types/init.d.ts +2 -3
  41. package/dist/types/makePayment.d.ts +421 -1
  42. package/dist/types/topup.d.ts +1 -1
  43. package/dist/types.d.ts +8 -2
  44. package/dist/utils/analytics.d.ts +1 -0
  45. package/dist/utils/api.d.ts +0 -1
  46. package/dist/utils/getAppDetail.d.ts +1 -0
  47. package/dist/utils/helper.d.ts +7 -4
  48. package/dist/utils/minimumAppVersion.d.ts +0 -5
  49. package/dist/utils/minimumJSSDKVersion.d.ts +1 -0
  50. package/dist/utils/storage.d.ts +0 -2
  51. package/dist/utils/windowBridge.d.ts +24 -3
  52. package/dist/views/coupon/components/Arrow/index.d.ts +5 -5
  53. package/dist/views/coupon/components/CouponAction/index.d.ts +27 -7
  54. package/dist/views/coupon/components/CouponContainer/index.d.ts +3 -3
  55. package/dist/views/coupon/index.d.ts +27 -7
  56. package/dist/views/registerPaymentFeatures/types.d.ts +1 -1
  57. package/package.json +55 -67
  58. package/dist/composition-api/useShowUpdateWarningKycPassport.d.ts +0 -4
  59. package/dist/model/makePayment.d.ts +0 -430
  60. package/dist/types/getLoginUrl.d.ts +0 -8
  61. /package/dist/client/{clientFunctions → windowBridgeFunctions}/index.d.ts +0 -0
@@ -1,9 +1,4 @@
1
1
  export declare const MinVersion: {
2
- PRE_TRANSACTION_AUTO_CHARGE: string;
3
- FALLBACK_PAYMENT_METHOD: string;
4
- OS_HOME_SCREEN_ICON: string;
5
- START_MULTIFACTOR_AUTH_ANDROID_FIX: string;
6
- KYC_PASSPORT: string;
7
2
  PERFORMANCE_MEASUREMENT: string;
8
3
  START_MULTIFACTOR_AUTH_PIN_FALLBACK: string;
9
4
  };
@@ -2,4 +2,5 @@ export declare const MinJSSDKVersion: {
2
2
  ORDER_TYPE_REMITTANCE: string;
3
3
  CLIENT_STORAGE_FUNCTIONS: string;
4
4
  CLIENT_QUERY_PARAM_REMOVAL: string;
5
+ HANDLE_MARK_AS_READY_CORE: string;
5
6
  };
@@ -41,8 +41,6 @@ export declare function saveAppConfig(appConfig: string): void;
41
41
  export declare function getAppConfig(): string | null;
42
42
  export declare function getUserInfo(): string | null;
43
43
  export declare function saveUserInfo(userData: string): void;
44
- export declare function saveCodeVerifier(codeVerifier: string): void;
45
- export declare function getCodeVerifier(): string | null;
46
44
  export declare function removeCodeVerifier(): void;
47
45
  export declare function saveAuthorizedClientOrigin(clientId: string, origin: string): void;
48
46
  export declare function getAuthorizedClientOrigin(clientId: string): string | null;
@@ -1,6 +1,26 @@
1
+ declare enum MessageType {
2
+ request = "request",
3
+ response = "response"
4
+ }
1
5
  declare type GetTargetWindowFunctionType = () => Promise<Window | undefined | null> | Window | undefined | null;
2
- declare type FunctionType = (...args: Array<any>) => unknown;
3
- declare type FunctionsCollection = Record<string, FunctionType>;
6
+ interface MessageBaseType {
7
+ forWindowBridge: true;
8
+ key: string;
9
+ functionName: string;
10
+ }
11
+ interface PartialMessageRequestType {
12
+ type: MessageType.request;
13
+ params: Array<unknown>;
14
+ }
15
+ export declare type MessageRequestType = MessageBaseType & PartialMessageRequestType;
16
+ export declare type Params = Array<any>;
17
+ export interface FunctionType {
18
+ (...args: Params): unknown;
19
+ middlewares?: Array<Middleware>;
20
+ }
21
+ export declare type FunctionsCollection = Record<string, FunctionType>;
22
+ export declare type NextCallback = (args: Params) => Promise<unknown>;
23
+ export declare type Middleware = (message: MessageEvent<MessageRequestType>, params: Params, next: NextCallback) => unknown;
4
24
  export declare type WindowBridgeFunctions<T extends FunctionsCollection> = {
5
25
  [K in keyof T]: Parameters<T[K]>[0] extends undefined ? () => Promise<Awaited<ReturnType<T[K]>>> : (params: Parameters<T[K]>[0]) => Promise<Awaited<ReturnType<T[K]>>>;
6
26
  };
@@ -9,6 +29,7 @@ export declare class WindowBridge {
9
29
  private deferredCallbacks;
10
30
  private functions;
11
31
  private allowedOrigins?;
32
+ private middlewares;
12
33
  private constructor();
13
34
  private subscribeToMessageEvent;
14
35
  private unsubscribeToMessageEvent;
@@ -18,7 +39,7 @@ export declare class WindowBridge {
18
39
  private sendErrorResponse;
19
40
  private sendSuccessResponse;
20
41
  private sendResponse;
21
- static init(functions: FunctionsCollection, allowedOrigins?: Array<string>): WindowBridge;
42
+ static init(functions: FunctionsCollection, allowedOrigins?: Array<string>, middlewares?: Array<Middleware>): WindowBridge;
22
43
  static destroy(): void;
23
44
  static getBridge(): WindowBridge;
24
45
  static getTargetWindowFunctionProxy<T extends FunctionsCollection = FunctionsCollection>(getTargetWindow: GetTargetWindowFunctionType, targetWindowOrigin: string): T;
@@ -1,17 +1,17 @@
1
1
  import { PropType } from 'vue';
2
- declare const Arrow: import("vue").DefineComponent<{
2
+ declare const Arrow: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  direction: {
4
4
  type: PropType<"up" | "down">;
5
5
  default: string;
6
6
  };
7
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
8
8
  direction: {
9
9
  type: PropType<"up" | "down">;
10
10
  default: string;
11
11
  };
12
- }>> & {
12
+ }>> & Readonly<{
13
13
  onClick?: ((...args: any[]) => any) | undefined;
14
- }, {
14
+ }>, {
15
15
  direction: "up" | "down";
16
- }>;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
17
17
  export default Arrow;
@@ -1,7 +1,7 @@
1
1
  import { PropType } from 'vue';
2
2
  import { RedirectType, Translation } from '../../../../types';
3
3
  import { FormattedCoupon } from '../../types';
4
- declare const CouponAction: import("vue").DefineComponent<{
4
+ declare const CouponAction: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
5
  coupon: {
6
6
  type: PropType<FormattedCoupon>;
7
7
  required: true;
@@ -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,9 +32,10 @@ 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
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
38
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
30
39
  coupon: {
31
40
  type: PropType<FormattedCoupon>;
32
41
  required: true;
@@ -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
+ }>> & Readonly<{}>, {
73
+ postLoginRedirectType: RedirectType;
74
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
55
75
  export default CouponAction;
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { Locale, Translation } from '../../../../types';
3
- declare const CouponContainer: import("vue").DefineComponent<{
3
+ declare const CouponContainer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  locale: {
5
5
  type: PropType<Locale>;
6
6
  required: true;
@@ -9,7 +9,7 @@ declare const CouponContainer: import("vue").DefineComponent<{
9
9
  type: PropType<Translation>;
10
10
  required: true;
11
11
  };
12
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
13
  locale: {
14
14
  type: PropType<Locale>;
15
15
  required: true;
@@ -18,5 +18,5 @@ declare const CouponContainer: import("vue").DefineComponent<{
18
18
  type: PropType<Translation>;
19
19
  required: true;
20
20
  };
21
- }>>, {}>;
21
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
22
  export default CouponContainer;
@@ -1,7 +1,7 @@
1
1
  import { PropType } from 'vue';
2
2
  import { Locale, RedirectType, Translation } from '../../types';
3
3
  import { FormattedCoupon } from './types';
4
- export declare const CouponView: import("vue").DefineComponent<{
4
+ export declare const CouponView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
5
  coupon: {
6
6
  type: PropType<FormattedCoupon>;
7
7
  required: true;
@@ -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,9 +36,10 @@ 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
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
42
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
43
  coupon: {
35
44
  type: PropType<FormattedCoupon>;
36
45
  required: true;
@@ -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
+ }>> & Readonly<{}>, {
81
+ postLoginRedirectType: RedirectType;
82
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -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.41.0",
3
+ "version": "2.48.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "yarn build:client && yarn build:core",
@@ -19,8 +19,8 @@
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 --coverage.enabled --coverage.include=src/** --coverage.reporter=lcov --run --silent",
23
+ "test:watch": "vitest --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": ">=22.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
+ "@rollup/plugin-typescript": "^12.1.2",
51
+ "@sentry/browser": "^8.45.1",
52
+ "@sentry/vite-plugin": "^2.22.7",
53
+ "@testing-library/jest-dom": "^6.6.3",
57
54
  "@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",
55
+ "@types/js-cookie": "^3.0.6",
56
+ "@types/lodash": "^4.17.13",
57
+ "@types/node": "^20.17.10",
58
+ "@typescript-eslint/eslint-plugin": "^8.21.0",
59
+ "@typescript-eslint/parser": "^8.21.0",
60
+ "@vitejs/plugin-legacy": "^5.4.3",
61
+ "@vitejs/plugin-vue": "^5.2.1",
62
+ "@vitejs/plugin-vue-jsx": "^4.1.1",
63
+ "@vitest/coverage-v8": "^2.1.8",
64
+ "@vue/compiler-sfc": "^3.5.13",
72
65
  "@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",
66
+ "detectincognitojs": "^1.3.7",
67
+ "dotenv": "^16.4.7",
68
+ "eslint": "^8.57.1",
69
+ "eslint-config-prettier": "^10.0.1",
70
+ "eslint-plugin-prettier": "^5.2.3",
71
+ "eslint-plugin-vue": "^9.32.0",
72
+ "husky": "^9.1.7",
81
73
  "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",
74
+ "jsdom": "^26.0.0",
75
+ "less": "^4.2.1",
76
+ "lint-staged": "^15.4.1",
90
77
  "lodash": "^4.17.21",
91
- "lottie-web": "^5.9.6",
78
+ "lottie-web": "^5.12.2",
79
+ "neoip": "^3.0.1",
92
80
  "npm-run-all": "^4.1.5",
93
- "pinia": "^2.0.20",
94
- "postcss-html": "^1.4.1",
81
+ "pinia": "2.3.1",
82
+ "postcss": "^8.4.49",
83
+ "postcss-html": "^1.7.0",
95
84
  "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",
85
+ "prettier": "^3.4.2",
86
+ "rollup": "3.29.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",
109
- "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"
95
+ "vitest": "^2.1.8",
96
+ "vitest-canvas-mock": "^0.3.3",
97
+ "vitest-fetch-mock": "^0.4.3",
98
+ "vue": "~3.5.13",
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 };