@paypay/mini-app-js-sdk 1.19.0 → 1.23.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 (139) hide show
  1. package/dist/composition-api/dom/index.d.ts +1 -0
  2. package/dist/composition-api/dom/useCountDown.d.ts +20 -0
  3. package/dist/composition-api/useInpuAddress.d.ts +1 -1
  4. package/dist/composition-api/useRegisterEmail.d.ts +1 -1
  5. package/dist/composition-api/useRenderSmartButton.d.ts +1 -1
  6. package/dist/jsbridge-core/jsbridge.d.ts +2 -2
  7. package/dist/jsbridge-core/lib/logger.d.ts +5 -5
  8. package/dist/mini-app-api.d.ts +2 -2
  9. package/dist/mini-app-js-sdk.browser.js +1 -1
  10. package/dist/mini-app-js-sdk.es.js +8603 -5805
  11. package/dist/mini-app-js-sdk.min.css +1 -1
  12. package/dist/model/bridge/checkAccessToken.d.ts +1 -1
  13. package/dist/model/bridge/checkPaymentMethod.d.ts +1 -1
  14. package/dist/model/bridge/closeApp.d.ts +1 -1
  15. package/dist/model/bridge/copyToClipboard.d.ts +1 -1
  16. package/dist/model/bridge/debug.d.ts +1 -1
  17. package/dist/model/bridge/getAppDetail.d.ts +2 -16
  18. package/dist/model/bridge/getConfigure.d.ts +3 -3
  19. package/dist/model/bridge/getDeviceInformation.d.ts +1 -1
  20. package/dist/model/bridge/getSessionData.d.ts +1 -1
  21. package/dist/model/bridge/getStorageData.d.ts +1 -1
  22. package/dist/model/bridge/getTopBarHeight.d.ts +1 -1
  23. package/dist/model/bridge/getUAID.d.ts +1 -1
  24. package/dist/model/bridge/getUserAddress.d.ts +1 -1
  25. package/dist/model/bridge/inputAddress.d.ts +1 -1
  26. package/dist/model/bridge/logout.d.ts +1 -1
  27. package/dist/model/bridge/openApp.d.ts +1 -1
  28. package/dist/model/bridge/openMap.d.ts +1 -1
  29. package/dist/model/bridge/openWebview.d.ts +1 -1
  30. package/dist/model/bridge/registerEmail.d.ts +1 -1
  31. package/dist/model/bridge/registerKyc.d.ts +1 -1
  32. package/dist/model/bridge/renderLoginButton.d.ts +6 -2
  33. package/dist/model/bridge/renderPayButton.d.ts +5 -1
  34. package/dist/model/bridge/request.d.ts +1 -1
  35. package/dist/model/makePayment.d.ts +66 -56
  36. package/dist/model/uiComponents.d.ts +2 -1
  37. package/dist/package/action-sheet/index.d.ts +20 -13
  38. package/dist/package/banner-header/index.vue.d.ts +3 -3
  39. package/dist/package/button/index.d.ts +17 -9
  40. package/dist/package/charge-amount-list/index.vue.d.ts +27 -8
  41. package/dist/package/charge-amount-more-list/index.vue.d.ts +6 -2
  42. package/dist/package/date-button/index.vue.d.ts +1 -3
  43. package/dist/package/desktop-header/index.d.ts +21 -0
  44. package/dist/package/header/index.d.ts +7 -7
  45. package/dist/package/index.d.ts +1 -0
  46. package/dist/package/input/index.d.ts +57 -17
  47. package/dist/package/lottie/index.d.ts +5 -8
  48. package/dist/package/overlay/index.d.ts +1 -1
  49. package/dist/package/payment-method/Bank.vue.d.ts +7 -7
  50. package/dist/package/payment-method/CreditCard.vue.d.ts +5 -5
  51. package/dist/package/payment-method/SbidBank.vue.d.ts +262 -4
  52. package/dist/package/payment-method/Wallet.vue.d.ts +265 -7
  53. package/dist/package/payment-method-list/index.vue.d.ts +14 -2
  54. package/dist/package/payment-type/Bank.vue.d.ts +5 -5
  55. package/dist/package/payment-type/CreditCard.vue.d.ts +6 -6
  56. package/dist/package/payment-type/Sbid.vue.d.ts +260 -2
  57. package/dist/package/payment-type/Wallet.vue.d.ts +261 -2
  58. package/dist/package/payment-type/index.d.ts +4 -6
  59. package/dist/package/select-list/Components.d.ts +43 -3
  60. package/dist/package/select-list/index.d.ts +11 -2
  61. package/dist/package/switch/index.d.ts +1 -1
  62. package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +286 -0
  63. package/dist/types.d.ts +48 -16
  64. package/dist/utils/api.d.ts +38 -17
  65. package/dist/utils/create/bem.d.ts +2 -2
  66. package/dist/utils/create/index.d.ts +1 -1
  67. package/dist/utils/fetch.d.ts +2 -2
  68. package/dist/utils/getImages.d.ts +36 -5
  69. package/dist/utils/getLanguage.d.ts +224 -2
  70. package/dist/utils/helper.d.ts +10 -13
  71. package/dist/utils/popstateHandler.d.ts +1 -1
  72. package/dist/utils/storage.d.ts +12 -10
  73. package/dist/utils/uiConstants.d.ts +1 -0
  74. package/dist/utils/useBreakpoints.d.ts +5 -0
  75. package/dist/utils/utils.d.ts +2 -0
  76. package/dist/views/email-registration/App.vue.d.ts +231 -8
  77. package/dist/views/email-registration/components/EmailButton.vue.d.ts +3 -3
  78. package/dist/views/email-registration/hooks/callback.d.ts +2 -2
  79. package/dist/views/email-registration/hooks/ui.d.ts +2 -2
  80. package/dist/views/email-registration/parts/RegisterEmail/RegisterEmail.vue.d.ts +2 -2
  81. package/dist/views/email-registration/parts/RegisterEmail/ResendEmailSheet.vue.d.ts +1 -1
  82. package/dist/views/error-sheet/Index.vue.d.ts +271 -13
  83. package/dist/views/get-user-address/App.vue.d.ts +11 -3
  84. package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +243 -11
  85. package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +262 -4
  86. package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +246 -3
  87. package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +227 -4
  88. package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +246 -18
  89. package/dist/views/get-user-address/Sheet/App.vue.d.ts +29 -12
  90. package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +235 -3
  91. package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +227 -3
  92. package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +302 -11
  93. package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +240 -0
  94. package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +259 -0
  95. package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +254 -0
  96. package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +246 -0
  97. package/dist/views/get-user-address/hooks/ui-hooks.d.ts +45 -2
  98. package/dist/views/get-user-address/store/error-handle.d.ts +2 -1
  99. package/dist/views/get-user-address/store/root.d.ts +6 -2
  100. package/dist/views/input-address/App.vue.d.ts +6 -7
  101. package/dist/views/input-address/hook/app.d.ts +2 -2
  102. package/dist/views/input-address/hook/error-handle.d.ts +1 -2
  103. package/dist/views/make-payment/App.vue.d.ts +3 -3
  104. package/dist/views/make-payment/Main.vue.d.ts +80 -511
  105. package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +230 -8
  106. package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +229 -5
  107. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +260 -2
  108. package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +260 -2
  109. package/dist/views/make-payment/Sheets/CashBackDetails/hooks.d.ts +4 -4
  110. package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +267 -9
  111. package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +240 -3
  112. package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +363 -13
  113. package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +274 -7
  114. package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +537 -226
  115. package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +232 -6
  116. package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +265 -0
  117. package/dist/views/make-payment/Sheets/Consult.vue.d.ts +1 -1
  118. package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +233 -10
  119. package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +328 -0
  120. package/dist/views/make-payment/Sheets/Payment.vue.d.ts +338 -18
  121. package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +43 -9
  122. package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +293 -8
  123. package/dist/views/make-payment/hooks/app-hooks.d.ts +168 -355
  124. package/dist/views/make-payment/hooks/ui-hooks.d.ts +29 -15
  125. package/dist/views/make-payment/store/age-confirm.d.ts +1 -1
  126. package/dist/views/make-payment/store/handle-error.d.ts +2 -2
  127. package/dist/views/make-payment/store/root.d.ts +3 -3
  128. package/dist/views/make-payment/utils/paymentMethod.d.ts +3 -1
  129. package/dist/views/open-app/App.vue.d.ts +261 -3
  130. package/dist/views/open-map/App.vue.d.ts +225 -2
  131. package/dist/views/show-alert/App.vue.d.ts +5 -5
  132. package/dist/views/show-update-warning/App.vue.d.ts +261 -3
  133. package/dist/views/smart-button/App.vue.d.ts +10 -10
  134. package/dist/views/take-photo/App.vue.d.ts +225 -2
  135. package/dist/views/topup/App.vue.d.ts +298 -22
  136. package/dist/views/topup/BannerInfo.vue.d.ts +15 -11
  137. package/dist/views/topup/CashbackInfo.vue.d.ts +226 -3
  138. package/dist/views/topup/TopupCompletion.vue.d.ts +261 -1
  139. package/package.json +5 -4
@@ -4,12 +4,272 @@ declare const _default: import("vue").DefineComponent<{
4
4
  default: () => void;
5
5
  };
6
6
  }, {
7
+ images: {
8
+ iconBalanceError: string;
9
+ animationDone: string;
10
+ merchant: string;
11
+ cashback: string;
12
+ iconCopy: string;
13
+ iconError: string;
14
+ iconOpenApp: string;
15
+ iconAppUpdate: string;
16
+ iconBackArrow: string;
17
+ paypay: string;
18
+ copyIcon: string;
19
+ jcb: string;
20
+ visa: string;
21
+ master: string;
22
+ amex: string;
23
+ iconAlert: string;
24
+ checkGreen: string;
25
+ yahoo: string;
26
+ ppCard: string;
27
+ softbank: string;
28
+ iconBirthday: string;
29
+ iconMinorAge: string;
30
+ iconClose: string;
31
+ myOffer: string;
32
+ lightBlue: string;
33
+ iconBalanceIcon: string;
34
+ share: string;
35
+ rightArrow: string;
36
+ iconGrayError: string;
37
+ paypayRec: string;
38
+ paypayRecWhite: string;
39
+ downArrow: string;
40
+ bankIcon: string;
41
+ confetti: string;
42
+ };
7
43
  amount: import("vue").ComputedRef<string>;
8
44
  statusLabelColor: import("vue").ComputedRef<any>;
9
45
  topUpId: import("vue").ComputedRef<any>;
10
46
  statusLabel: import("vue").ComputedRef<any>;
11
47
  close: typeof close;
12
48
  style: Record<string, string>;
49
+ lg: {
50
+ showUpdateWarning: {
51
+ closeBtn: string;
52
+ notNow: string;
53
+ update: string;
54
+ title: string;
55
+ errorText: string;
56
+ desc1: string;
57
+ desc2: string;
58
+ };
59
+ openApp: {
60
+ title: string;
61
+ body: string;
62
+ errorText: string;
63
+ openApp: string;
64
+ cancel: string;
65
+ };
66
+ openMap: {
67
+ title: string;
68
+ errorText: string;
69
+ };
70
+ topup: {
71
+ title: string;
72
+ balMoney: string;
73
+ charge: string;
74
+ minAmount: string;
75
+ maxAmount: string;
76
+ moneyLabel: string;
77
+ noMethod: string;
78
+ loading: string;
79
+ payBtn: string;
80
+ availableBalance: string;
81
+ availableBalanceAfter: string;
82
+ allBalance: string;
83
+ };
84
+ takePhoto: {
85
+ camera: string;
86
+ photo: string;
87
+ };
88
+ payment: {
89
+ title: string;
90
+ payAmount: string;
91
+ payAmountTaxExempt: string;
92
+ method: string;
93
+ address: string;
94
+ insufficientAmount: string;
95
+ paying: string;
96
+ pay: string;
97
+ charge: string;
98
+ cancel: string;
99
+ noAddress: string;
100
+ change: string;
101
+ close: string;
102
+ };
103
+ duplicate: {
104
+ header: string;
105
+ text1: string;
106
+ text2: string;
107
+ cancel: string;
108
+ agreeButtonText: string;
109
+ topHeader: string;
110
+ topText1: string;
111
+ topText2: string;
112
+ topAgreeButtonText: string;
113
+ };
114
+ birthdayConfirm: {
115
+ title: string;
116
+ title2: string;
117
+ desc: string;
118
+ desc1: string;
119
+ desc2: string;
120
+ desc3: string;
121
+ date: string;
122
+ primaryBtn: string;
123
+ cancelBtn: string;
124
+ };
125
+ birthdayConfirmError: {
126
+ title: string;
127
+ title2: string;
128
+ desc: string;
129
+ desc2: string;
130
+ helpBtn: string;
131
+ closeBtn: string;
132
+ };
133
+ cashbackDet: {
134
+ button1: string;
135
+ button2: string;
136
+ button3: string;
137
+ };
138
+ topContent: {
139
+ title: string;
140
+ chargeTitle: string;
141
+ chargeLabel: string;
142
+ loading: string;
143
+ unavailable1: string;
144
+ unavailable2: string;
145
+ amount: string;
146
+ return: string;
147
+ };
148
+ topInfo: {
149
+ sufficientRow: string;
150
+ insufficientAmount: string;
151
+ insufficientAmountText: string;
152
+ paymentAmount: string;
153
+ };
154
+ choosePayment: {
155
+ title: string;
156
+ desc1: string;
157
+ desc2: string;
158
+ title2: string;
159
+ addMethod: string;
160
+ noMethod: string;
161
+ };
162
+ topupCompletion: {
163
+ title: string;
164
+ idInfo: string;
165
+ copied: string;
166
+ };
167
+ userAddress: {
168
+ title: string;
169
+ header: string;
170
+ tagForm: string;
171
+ home: string;
172
+ work: string;
173
+ billing: string;
174
+ footer: string;
175
+ titlePre: string;
176
+ titleApp: string;
177
+ titlePlace: string;
178
+ receiverPre: string;
179
+ receiverPlace: string;
180
+ inputPre: string;
181
+ statePre: string;
182
+ statePlace: string;
183
+ cityPre: string;
184
+ cityPlace: string;
185
+ street1Pre: string;
186
+ streetPlace: string;
187
+ street2Pre: string;
188
+ street2Place: string;
189
+ footerBtn1: string;
190
+ footerBtn2: string;
191
+ displayTitle: string;
192
+ deleteTitle: string;
193
+ delete: string;
194
+ close: string;
195
+ addAddress: string;
196
+ address: string;
197
+ return: string;
198
+ change: string;
199
+ noAddress: string;
200
+ registerAddress: string;
201
+ confirmAddress: string;
202
+ returnEdit: string;
203
+ selectAddress: string;
204
+ };
205
+ errorSheet: {
206
+ title: string;
207
+ title1: string;
208
+ desc: string;
209
+ topup: string;
210
+ topupDesc: string;
211
+ pay: string;
212
+ payDesc: string;
213
+ };
214
+ paymentMethod: {
215
+ expired: string;
216
+ ordinary: string;
217
+ current: string;
218
+ checkGreen: string;
219
+ authenticated: string;
220
+ yjTitle: string;
221
+ ppCardTitle: string;
222
+ brand: string;
223
+ };
224
+ wallet: {
225
+ title: string;
226
+ desc: string;
227
+ eMoney: string;
228
+ nonUsable: string;
229
+ cashBackUsable: string;
230
+ cashBackExpirable: string;
231
+ balance: string;
232
+ };
233
+ softbank: {
234
+ desc: string;
235
+ desc1: string;
236
+ isDisable: string;
237
+ };
238
+ registerEmail: {
239
+ title: string;
240
+ warning: string;
241
+ cancelTxt: string;
242
+ errorTitleAlreadyRegistered: string;
243
+ errorDescriptionAlreadyRegistered: string;
244
+ errorTitle: string;
245
+ errorDescription: string;
246
+ };
247
+ smartLogin: {
248
+ title: string;
249
+ signIn: string;
250
+ continueAs: string;
251
+ };
252
+ smartPay: {
253
+ pay: string;
254
+ paypay: string;
255
+ cashback: string;
256
+ };
257
+ cashbackList: {
258
+ close: string;
259
+ };
260
+ desktopTitle: {
261
+ Payment: string;
262
+ addNewAddress: string;
263
+ editAddress: string;
264
+ paymentCompletion: string;
265
+ getUserAddress: string;
266
+ };
267
+ closeConfirmation: {
268
+ title: string;
269
+ confirm: string;
270
+ cancel: string;
271
+ };
272
+ };
13
273
  }, {
14
274
  copied: boolean;
15
275
  }, {}, {
@@ -19,7 +279,7 @@ declare const _default: import("vue").DefineComponent<{
19
279
  } & {
20
280
  data: Record<string, any>;
21
281
  } & {}> & {
22
- onClose?: (...args: any[]) => any;
282
+ onClose?: ((...args: any[]) => any) | undefined;
23
283
  }, {
24
284
  data: Record<string, any>;
25
285
  }>;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@paypay/mini-app-js-sdk",
3
- "version": "1.19.0",
3
+ "version": "1.23.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vite build",
7
7
  "dev": "vite",
8
- "lint": "eslint --no-error-on-unmatched-pattern {src,test}/**/*.{ts,tsx,vue}",
8
+ "lint": "eslint src test --ext .ts,.tsx,.vue",
9
9
  "format": "prettier --write '{src,test}/**/*.{ts,tsx,vue,less}'",
10
10
  "upgrade": "yarn upgrade-interactive",
11
11
  "test": "jest --silent --coverage",
@@ -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
  },
@@ -34,6 +34,7 @@
34
34
  "@types/jest": "^26.0.24",
35
35
  "@types/js-cookie": "^2.2.7",
36
36
  "@types/uuid": "^8.3.1",
37
+ "@typescript-eslint/eslint-plugin": "^5.8.0",
37
38
  "@typescript-eslint/parser": "^4.31.0",
38
39
  "@vitejs/plugin-vue": "^1.9.4",
39
40
  "@vitejs/plugin-vue-jsx": "^1.2.0",
@@ -56,7 +57,7 @@
56
57
  "lint-staged": "^11.1.2",
57
58
  "prettier": "^2.3.2",
58
59
  "ts-jest": "^26.5.6",
59
- "typescript": "^4.4.2",
60
+ "typescript": "~4.4.2",
60
61
  "vite": "^2.6.14",
61
62
  "vite-plugin-dts": "^0.9.4",
62
63
  "vue-eslint-parser": "^7.11.0",