@paypay/mini-app-js-sdk 1.22.0 → 1.26.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 (104) hide show
  1. package/dist/composition-api/useInpuAddress.d.ts +1 -1
  2. package/dist/jsbridge-core/jsbridge.d.ts +1 -1
  3. package/dist/mini-app-js-sdk.browser.js +1 -1
  4. package/dist/mini-app-js-sdk.es.js +1617 -1349
  5. package/dist/mini-app-js-sdk.min.css +1 -1
  6. package/dist/model/bridge/checkAccessToken.d.ts +1 -1
  7. package/dist/model/bridge/closeApp.d.ts +1 -1
  8. package/dist/model/bridge/copyToClipboard.d.ts +1 -1
  9. package/dist/model/bridge/debug.d.ts +1 -1
  10. package/dist/model/bridge/getAppDetail.d.ts +1 -1
  11. package/dist/model/bridge/getConfigure.d.ts +2 -1
  12. package/dist/model/bridge/getDeviceInformation.d.ts +1 -1
  13. package/dist/model/bridge/getSessionData.d.ts +1 -1
  14. package/dist/model/bridge/getStorageData.d.ts +1 -1
  15. package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
  16. package/dist/model/bridge/getUAID.d.ts +1 -1
  17. package/dist/model/bridge/getUserAddress.d.ts +1 -1
  18. package/dist/model/bridge/inputAddress.d.ts +1 -1
  19. package/dist/model/bridge/logout.d.ts +1 -1
  20. package/dist/model/bridge/openApp.d.ts +1 -1
  21. package/dist/model/bridge/openMap.d.ts +1 -1
  22. package/dist/model/bridge/openWebview.d.ts +1 -1
  23. package/dist/model/bridge/registerEmail.d.ts +1 -1
  24. package/dist/model/bridge/registerKyc.d.ts +1 -1
  25. package/dist/model/bridge/removeStorageData.d.ts +1 -1
  26. package/dist/model/bridge/render.d.ts +1 -1
  27. package/dist/model/bridge/renderLoginButton.d.ts +1 -1
  28. package/dist/model/bridge/renderPayButton.d.ts +1 -1
  29. package/dist/model/bridge/scanCode.d.ts +1 -1
  30. package/dist/model/bridge/setSessionData.d.ts +1 -1
  31. package/dist/model/bridge/setStorageData.d.ts +1 -1
  32. package/dist/model/bridge/setTitle.d.ts +1 -1
  33. package/dist/model/bridge/showAlert.d.ts +1 -1
  34. package/dist/model/bridge/showErrorSheet.d.ts +1 -1
  35. package/dist/model/bridge/showUpdateWarning.d.ts +1 -1
  36. package/dist/model/makePayment.d.ts +21 -8
  37. package/dist/package/charge-amount-list/index.vue.d.ts +27 -2
  38. package/dist/package/desktop-header/index.d.ts +3 -3
  39. package/dist/package/input/index.d.ts +0 -16
  40. package/dist/package/input/utils.d.ts +0 -4
  41. package/dist/package/overlay/index.d.ts +4 -3
  42. package/dist/package/payment-method/Bank.vue.d.ts +1 -1
  43. package/dist/package/payment-method/CreditCard.vue.d.ts +1 -1
  44. package/dist/package/payment-method/SbidBank.vue.d.ts +10 -1
  45. package/dist/package/payment-method/Wallet.vue.d.ts +9 -0
  46. package/dist/package/payment-type/Sbid.vue.d.ts +9 -0
  47. package/dist/package/payment-type/Wallet.vue.d.ts +9 -0
  48. package/dist/package/select-list/Components.d.ts +28 -0
  49. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +9 -0
  50. package/dist/types.d.ts +4 -3
  51. package/dist/utils/api.d.ts +19 -9
  52. package/dist/utils/create/bem.d.ts +1 -1
  53. package/dist/utils/create/index.d.ts +1 -1
  54. package/dist/utils/fetch.d.ts +44 -3
  55. package/dist/utils/getLanguage.d.ts +9 -0
  56. package/dist/utils/helper.d.ts +7 -2
  57. package/dist/utils/miniAppRequest.d.ts +2 -1
  58. package/dist/utils/popstateHandler.d.ts +2 -1
  59. package/dist/views/email-registration/App.vue.d.ts +11 -2
  60. package/dist/views/error-sheet/Index.vue.d.ts +9 -0
  61. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +9 -2
  62. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +9 -0
  63. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +9 -0
  64. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +9 -0
  65. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +24 -9
  66. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +9 -0
  67. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +26 -3
  68. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +10 -1
  69. package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +9 -0
  70. package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +9 -0
  71. package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +9 -0
  72. package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +9 -0
  73. package/dist/views/input-address/App.vue.d.ts +1 -1
  74. package/dist/views/input-address/hook/app.d.ts +3 -2
  75. package/dist/views/input-address/hook/error-handle.d.ts +10 -3
  76. package/dist/views/make-payment/Main.vue.d.ts +4 -2
  77. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +9 -0
  78. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +9 -0
  79. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +9 -0
  80. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +9 -0
  81. package/dist/views/make-payment/Sheets/CashBackDetails/hooks.d.ts +1 -0
  82. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +10 -1
  83. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +9 -0
  84. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +17 -0
  85. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +17 -5
  86. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +32 -12
  87. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +9 -0
  88. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +9 -0
  89. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +9 -0
  90. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +9 -0
  91. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +10 -1
  92. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +9 -0
  93. package/dist/views/make-payment/hooks/app-hooks.d.ts +14 -10
  94. package/dist/views/make-payment/hooks/ui-hooks.d.ts +3 -4
  95. package/dist/views/make-payment/store/root.d.ts +1 -1
  96. package/dist/views/open-app/App.vue.d.ts +14 -3
  97. package/dist/views/open-map/App.vue.d.ts +15 -4
  98. package/dist/views/show-update-warning/App.vue.d.ts +14 -3
  99. package/dist/views/smart-button/App.vue.d.ts +1 -1
  100. package/dist/views/take-photo/App.vue.d.ts +14 -3
  101. package/dist/views/topup/App.vue.d.ts +17 -7
  102. package/dist/views/topup/CashbackInfo.vue.d.ts +9 -0
  103. package/dist/views/topup/TopupCompletion.vue.d.ts +17 -6
  104. package/package.json +4 -2
@@ -1,7 +1,9 @@
1
+ import { PropType } from 'vue';
2
+ import { OpenAppParams } from '../../types';
1
3
  declare const _default: import("vue").DefineComponent<{
2
4
  show: BooleanConstructor;
3
5
  appParams: {
4
- type: ObjectConstructor;
6
+ type: PropType<OpenAppParams>;
5
7
  default: () => void;
6
8
  };
7
9
  }, {
@@ -202,6 +204,7 @@ declare const _default: import("vue").DefineComponent<{
202
204
  confirmAddress: string;
203
205
  returnEdit: string;
204
206
  selectAddress: string;
207
+ selectDeliveryAddress: string;
205
208
  };
206
209
  errorSheet: {
207
210
  title: string;
@@ -222,6 +225,14 @@ declare const _default: import("vue").DefineComponent<{
222
225
  ppCardTitle: string;
223
226
  brand: string;
224
227
  };
228
+ paymentMethodStatus: {
229
+ ACTIVATED: string;
230
+ OFF: string;
231
+ APPLYING: string;
232
+ MAINTENANCE: string;
233
+ BUSY: string;
234
+ SUSPENDED: string;
235
+ };
225
236
  wallet: {
226
237
  title: string;
227
238
  desc: string;
@@ -276,11 +287,11 @@ declare const _default: import("vue").DefineComponent<{
276
287
  appParams?: unknown;
277
288
  } & {
278
289
  show: boolean;
279
- appParams: Record<string, any>;
290
+ appParams: OpenAppParams;
280
291
  } & {}> & {
281
292
  onClick?: ((...args: any[]) => any) | undefined;
282
293
  }, {
283
294
  show: boolean;
284
- appParams: Record<string, any>;
295
+ appParams: OpenAppParams;
285
296
  }>;
286
297
  export default _default;
@@ -1,12 +1,14 @@
1
+ import { PropType } from 'vue';
2
+ import { MapParams } from '../../types';
1
3
  declare const _default: import("vue").DefineComponent<{
2
4
  show: BooleanConstructor;
3
5
  mapParams: {
4
- type: ObjectConstructor;
6
+ type: PropType<MapParams>;
5
7
  default: () => void;
6
8
  };
7
9
  }, unknown, {
8
10
  errorShow: boolean;
9
- ios: any;
11
+ ios: import("../../types").IosMapParams[];
10
12
  iosLength: number;
11
13
  lg: {
12
14
  showUpdateWarning: {
@@ -163,6 +165,7 @@ declare const _default: import("vue").DefineComponent<{
163
165
  confirmAddress: string;
164
166
  returnEdit: string;
165
167
  selectAddress: string;
168
+ selectDeliveryAddress: string;
166
169
  };
167
170
  errorSheet: {
168
171
  title: string;
@@ -183,6 +186,14 @@ declare const _default: import("vue").DefineComponent<{
183
186
  ppCardTitle: string;
184
187
  brand: string;
185
188
  };
189
+ paymentMethodStatus: {
190
+ ACTIVATED: string;
191
+ OFF: string;
192
+ APPLYING: string;
193
+ MAINTENANCE: string;
194
+ BUSY: string;
195
+ SUSPENDED: string;
196
+ };
186
197
  wallet: {
187
198
  title: string;
188
199
  desc: string;
@@ -241,11 +252,11 @@ declare const _default: import("vue").DefineComponent<{
241
252
  mapParams?: unknown;
242
253
  } & {
243
254
  show: boolean;
244
- mapParams: Record<string, any>;
255
+ mapParams: MapParams;
245
256
  } & {}> & {
246
257
  onClick?: ((...args: any[]) => any) | undefined;
247
258
  }, {
248
259
  show: boolean;
249
- mapParams: Record<string, any>;
260
+ mapParams: MapParams;
250
261
  }>;
251
262
  export default _default;
@@ -1,7 +1,9 @@
1
+ import { PropType } from 'vue';
2
+ import { ShowUpdateWarningParams } from '../../types';
1
3
  declare const _default: import("vue").DefineComponent<{
2
4
  show: BooleanConstructor;
3
5
  warningParams: {
4
- type: ObjectConstructor;
6
+ type: PropType<ShowUpdateWarningParams>;
5
7
  default: () => void;
6
8
  };
7
9
  }, unknown, {
@@ -161,6 +163,7 @@ declare const _default: import("vue").DefineComponent<{
161
163
  confirmAddress: string;
162
164
  returnEdit: string;
163
165
  selectAddress: string;
166
+ selectDeliveryAddress: string;
164
167
  };
165
168
  errorSheet: {
166
169
  title: string;
@@ -181,6 +184,14 @@ declare const _default: import("vue").DefineComponent<{
181
184
  ppCardTitle: string;
182
185
  brand: string;
183
186
  };
187
+ paymentMethodStatus: {
188
+ ACTIVATED: string;
189
+ OFF: string;
190
+ APPLYING: string;
191
+ MAINTENANCE: string;
192
+ BUSY: string;
193
+ SUSPENDED: string;
194
+ };
184
195
  wallet: {
185
196
  title: string;
186
197
  desc: string;
@@ -276,11 +287,11 @@ declare const _default: import("vue").DefineComponent<{
276
287
  warningParams?: unknown;
277
288
  } & {
278
289
  show: boolean;
279
- warningParams: Record<string, any>;
290
+ warningParams: ShowUpdateWarningParams;
280
291
  } & {}> & {
281
292
  "onClose-click"?: ((...args: any[]) => any) | undefined;
282
293
  }, {
283
294
  show: boolean;
284
- warningParams: Record<string, any>;
295
+ warningParams: ShowUpdateWarningParams;
285
296
  }>;
286
297
  export default _default;
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
44
44
  };
45
45
  }, {
46
46
  onClick: () => void;
47
- onError: (e: any) => void;
47
+ onError: (e: Event) => void;
48
48
  iconUrl: string;
49
49
  smallBtn: boolean;
50
50
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
@@ -1,7 +1,9 @@
1
+ import { PropType } from 'vue';
2
+ import { TakePhotoParams } from '../../types';
1
3
  declare const _default: import("vue").DefineComponent<{
2
4
  show: BooleanConstructor;
3
5
  takePhotoParams: {
4
- type: ObjectConstructor;
6
+ type: PropType<TakePhotoParams>;
5
7
  default: () => void;
6
8
  };
7
9
  }, unknown, {
@@ -160,6 +162,7 @@ declare const _default: import("vue").DefineComponent<{
160
162
  confirmAddress: string;
161
163
  returnEdit: string;
162
164
  selectAddress: string;
165
+ selectDeliveryAddress: string;
163
166
  };
164
167
  errorSheet: {
165
168
  title: string;
@@ -180,6 +183,14 @@ declare const _default: import("vue").DefineComponent<{
180
183
  ppCardTitle: string;
181
184
  brand: string;
182
185
  };
186
+ paymentMethodStatus: {
187
+ ACTIVATED: string;
188
+ OFF: string;
189
+ APPLYING: string;
190
+ MAINTENANCE: string;
191
+ BUSY: string;
192
+ SUSPENDED: string;
193
+ };
183
194
  wallet: {
184
195
  title: string;
185
196
  desc: string;
@@ -238,11 +249,11 @@ declare const _default: import("vue").DefineComponent<{
238
249
  takePhotoParams?: unknown;
239
250
  } & {
240
251
  show: boolean;
241
- takePhotoParams: Record<string, any>;
252
+ takePhotoParams: TakePhotoParams;
242
253
  } & {}> & {
243
254
  onClick?: ((...args: any[]) => any) | undefined;
244
255
  }, {
245
256
  show: boolean;
246
- takePhotoParams: Record<string, any>;
257
+ takePhotoParams: TakePhotoParams;
247
258
  }>;
248
259
  export default _default;
@@ -1,13 +1,14 @@
1
- import { PropType } from 'vue';
2
- import { TopupParams } from '../../types';
3
- import { MiniAppErrorType } from '../../model/miniAppError';
4
1
  import { AnimationItem } from 'lottie-web';
2
+ import { PropType } from 'vue';
5
3
  import { PaymentMethod as TPaymentMethod } from '../../model/makePayment';
4
+ import { MiniAppErrorType } from '../../model/miniAppError';
6
5
  import { UIComponentsErrorButton } from '../../model/uiComponents';
6
+ import { TopupParams } from '../../types';
7
+ import { TopupResponseData } from '../../utils/api';
7
8
  declare const _default: import("vue").DefineComponent<{
8
9
  show: BooleanConstructor;
9
10
  topupParams: {
10
- type: PropType<TopupParams>;
11
+ type: PropType<TopupParams | null>;
11
12
  default: () => {};
12
13
  };
13
14
  }, unknown, {
@@ -28,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
28
29
  topupHalfSheetAmount: number[];
29
30
  topupButtonsAmount: number[];
30
31
  completionData: {
31
- unsignedData: {};
32
+ unsignedData: TopupResponseData | null;
32
33
  jws: string;
33
34
  };
34
35
  errorCode: MiniAppErrorType;
@@ -208,6 +209,7 @@ declare const _default: import("vue").DefineComponent<{
208
209
  confirmAddress: string;
209
210
  returnEdit: string;
210
211
  selectAddress: string;
212
+ selectDeliveryAddress: string;
211
213
  };
212
214
  errorSheet: {
213
215
  title: string;
@@ -228,6 +230,14 @@ declare const _default: import("vue").DefineComponent<{
228
230
  ppCardTitle: string;
229
231
  brand: string;
230
232
  };
233
+ paymentMethodStatus: {
234
+ ACTIVATED: string;
235
+ OFF: string;
236
+ APPLYING: string;
237
+ MAINTENANCE: string;
238
+ BUSY: string;
239
+ SUSPENDED: string;
240
+ };
231
241
  wallet: {
232
242
  title: string;
233
243
  desc: string;
@@ -368,11 +378,11 @@ declare const _default: import("vue").DefineComponent<{
368
378
  topupParams?: unknown;
369
379
  } & {
370
380
  show: boolean;
371
- topupParams: TopupParams;
381
+ topupParams: TopupParams | null;
372
382
  } & {}> & {
373
383
  onClick?: ((...args: any[]) => any) | undefined;
374
384
  }, {
375
385
  show: boolean;
376
- topupParams: TopupParams;
386
+ topupParams: TopupParams | null;
377
387
  }>;
378
388
  export default _default;
@@ -178,6 +178,7 @@ declare const _default: import("vue").DefineComponent<{
178
178
  confirmAddress: string;
179
179
  returnEdit: string;
180
180
  selectAddress: string;
181
+ selectDeliveryAddress: string;
181
182
  };
182
183
  errorSheet: {
183
184
  title: string;
@@ -198,6 +199,14 @@ declare const _default: import("vue").DefineComponent<{
198
199
  ppCardTitle: string;
199
200
  brand: string;
200
201
  };
202
+ paymentMethodStatus: {
203
+ ACTIVATED: string;
204
+ OFF: string;
205
+ APPLYING: string;
206
+ MAINTENANCE: string;
207
+ BUSY: string;
208
+ SUSPENDED: string;
209
+ };
201
210
  wallet: {
202
211
  title: string;
203
212
  desc: string;
@@ -1,6 +1,8 @@
1
+ import { PropType } from 'vue';
2
+ import { TopupResponseData } from '../../utils/api';
1
3
  declare const _default: import("vue").DefineComponent<{
2
4
  data: {
3
- type: ObjectConstructor;
5
+ type: PropType<TopupResponseData | null>;
4
6
  default: () => void;
5
7
  };
6
8
  }, {
@@ -41,9 +43,9 @@ declare const _default: import("vue").DefineComponent<{
41
43
  confetti: string;
42
44
  };
43
45
  amount: import("vue").ComputedRef<string>;
44
- statusLabelColor: import("vue").ComputedRef<any>;
45
- topUpId: import("vue").ComputedRef<any>;
46
- statusLabel: import("vue").ComputedRef<any>;
46
+ statusLabelColor: import("vue").ComputedRef<string | undefined>;
47
+ topUpId: import("vue").ComputedRef<string>;
48
+ statusLabel: import("vue").ComputedRef<string | undefined>;
47
49
  close: typeof close;
48
50
  style: Record<string, string>;
49
51
  lg: {
@@ -201,6 +203,7 @@ declare const _default: import("vue").DefineComponent<{
201
203
  confirmAddress: string;
202
204
  returnEdit: string;
203
205
  selectAddress: string;
206
+ selectDeliveryAddress: string;
204
207
  };
205
208
  errorSheet: {
206
209
  title: string;
@@ -221,6 +224,14 @@ declare const _default: import("vue").DefineComponent<{
221
224
  ppCardTitle: string;
222
225
  brand: string;
223
226
  };
227
+ paymentMethodStatus: {
228
+ ACTIVATED: string;
229
+ OFF: string;
230
+ APPLYING: string;
231
+ MAINTENANCE: string;
232
+ BUSY: string;
233
+ SUSPENDED: string;
234
+ };
224
235
  wallet: {
225
236
  title: string;
226
237
  desc: string;
@@ -277,10 +288,10 @@ declare const _default: import("vue").DefineComponent<{
277
288
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
278
289
  data?: unknown;
279
290
  } & {
280
- data: Record<string, any>;
291
+ data: TopupResponseData | null;
281
292
  } & {}> & {
282
293
  onClose?: ((...args: any[]) => any) | undefined;
283
294
  }, {
284
- data: Record<string, any>;
295
+ data: TopupResponseData | null;
285
296
  }>;
286
297
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypay/mini-app-js-sdk",
3
- "version": "1.22.0",
3
+ "version": "1.26.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.7.13",
25
+ "lottie-web": "^5.8.1",
26
26
  "uuid": "^8.3.2",
27
27
  "vue": "^3.2.11"
28
28
  },
@@ -31,6 +31,8 @@
31
31
  "@babel/plugin-transform-typescript": "^7.15.4",
32
32
  "@babel/preset-env": "^7.15.4",
33
33
  "@rollup/plugin-replace": "^3.0.0",
34
+ "@testing-library/jest-dom": "^5.16.2",
35
+ "@testing-library/vue": "^6.4.2",
34
36
  "@types/jest": "^26.0.24",
35
37
  "@types/js-cookie": "^2.2.7",
36
38
  "@types/uuid": "^8.3.1",