@paypay/mini-app-js-sdk 1.33.0 → 1.36.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/dist/composition-api/useRegisterEmail.d.ts +1 -1
- package/dist/mini-app-api.d.ts +3 -1
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +4753 -1989
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/OPAErrorCodes.d.ts +4 -0
- package/dist/model/bridge/getBankInfo.d.ts +3 -0
- package/dist/model/bridge/index.d.ts +2 -0
- package/dist/model/bridge/registerEmail.d.ts +1 -1
- package/dist/model/bridge/registerUserInfo.d.ts +2 -0
- package/dist/model/makePayment.d.ts +1 -1
- package/dist/model/miniAppError.d.ts +3 -1
- package/dist/model/permission.d.ts +1 -0
- package/dist/package/action-sheet/index.d.ts +2 -1
- package/dist/package/button/LoadingIndicator.vue.d.ts +4 -0
- package/dist/package/index.d.ts +1 -0
- package/dist/package/payment-method/PayLaterCC.vue.d.ts +54 -0
- package/dist/package/payment-method/SbidBank.vue.d.ts +54 -0
- package/dist/package/payment-method/Wallet.vue.d.ts +54 -0
- package/dist/package/payment-type/PayLaterCC.vue.d.ts +54 -0
- package/dist/package/payment-type/Sbid.vue.d.ts +54 -0
- package/dist/package/payment-type/Wallet.vue.d.ts +54 -0
- package/dist/package/skeleton-loader/SkeletonLoader.vue.d.ts +16 -0
- package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +54 -0
- package/dist/types.d.ts +5 -0
- package/dist/utils/api.d.ts +26 -7
- package/dist/utils/getImages.d.ts +6 -0
- package/dist/utils/getLanguage.d.ts +48 -0
- package/dist/views/email-registration/App.vue.d.ts +23 -282
- package/dist/views/email-registration/hooks/callback.d.ts +4 -2
- package/dist/views/email-registration/hooks/const.d.ts +1 -0
- package/dist/views/email-registration/hooks/ui.d.ts +7 -13
- package/dist/views/email-registration/parts/AuthMailNotFoundSheet.vue.d.ts +39 -0
- package/dist/views/email-registration/parts/RegisterEmail.vue.d.ts +70 -0
- package/dist/views/email-registration/parts/SentEmailAuthDoneSheet.vue.d.ts +23 -0
- package/dist/views/email-registration/parts/SentEmailSheet.vue.d.ts +51 -0
- package/dist/views/error-sheet/Index.vue.d.ts +79 -8
- package/dist/views/get-bank-info/GetBankInfoWrapper.vue.d.ts +40 -0
- package/dist/views/get-bank-info/components/GetBankInfoPopup.vue.d.ts +327 -0
- package/dist/views/get-bank-info/components/PayoutMethodList.vue.d.ts +74 -0
- package/dist/views/get-bank-info/components/PayoutMethodView.vue.d.ts +21 -0
- package/dist/views/get-bank-info/types.d.ts +29 -0
- package/dist/views/get-user-address/App.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +48 -0
- package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +54 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +48 -0
- package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +48 -0
- package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +51 -3
- package/dist/views/get-user-address/Sheet/App.vue.d.ts +2 -2
- package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +48 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +48 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +48 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +48 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +48 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +48 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +48 -0
- package/dist/views/get-user-address/store/error-handle.d.ts +2 -3
- package/dist/views/input-address/App.vue.d.ts +2 -2
- package/dist/views/input-address/hook/app.d.ts +4 -4
- package/dist/views/input-address/hook/error-handle.d.ts +1 -10
- package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +48 -0
- package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +48 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +54 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +54 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +54 -0
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +48 -0
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +54 -0
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +54 -0
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +48 -0
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +48 -0
- package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +54 -0
- package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +48 -0
- package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +54 -0
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +54 -0
- package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +6 -0
- package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +54 -0
- package/dist/views/open-app/App.vue.d.ts +54 -0
- package/dist/views/open-map/App.vue.d.ts +48 -0
- package/dist/views/register-user-info/RegisterUserInfoCancelConfirmationSheet.vue.d.ts +773 -0
- package/dist/views/register-user-info/RegisterUserInfoCategoryView.vue.d.ts +830 -0
- package/dist/views/register-user-info/RegisterUserInfoDataPointGroup.vue.d.ts +18 -0
- package/dist/views/register-user-info/RegisterUserInfoErrorSheet.vue.d.ts +7 -0
- package/dist/views/register-user-info/RegisterUserInfoFooterView.vue.d.ts +773 -0
- package/dist/views/register-user-info/RegisterUserInfoFormView.vue.d.ts +11 -0
- package/dist/views/register-user-info/RegisterUserInfoKycInfoSheet.vue.d.ts +778 -0
- package/dist/views/register-user-info/RegisterUserInfoMailInfoSheet.vue.d.ts +778 -0
- package/dist/views/register-user-info/RegisterUserInfoProgressView.vue.d.ts +6 -0
- package/dist/views/register-user-info/RegisterUserInfoRootView.vue.d.ts +501 -0
- package/dist/views/register-user-info/RegisterUserInfoUneditableDataView.vue.d.ts +15 -0
- package/dist/views/register-user-info/api.d.ts +23 -0
- package/dist/views/register-user-info/input/RegisterUserInfoEmailInput.vue.d.ts +349 -0
- package/dist/views/register-user-info/input/RegisterUserInfoSelectionButtonInput.vue.d.ts +17 -0
- package/dist/views/register-user-info/input/RegisterUserInfoSimpleInput.vue.d.ts +76 -0
- package/dist/views/register-user-info/store.d.ts +490 -0
- package/dist/views/register-user-info/types.d.ts +32 -0
- package/dist/views/register-user-info/utils.d.ts +4 -0
- package/dist/views/register-user-info/validators.d.ts +10 -0
- package/dist/views/show-update-warning/App.vue.d.ts +60 -2
- package/dist/views/take-photo/App.vue.d.ts +48 -0
- package/dist/views/topup/App.vue.d.ts +54 -0
- package/dist/views/topup/CashbackInfo.vue.d.ts +48 -0
- package/dist/views/topup/TopupCompletion.vue.d.ts +54 -0
- package/package.json +2 -1
- package/dist/views/email-registration/components/EmailButton.vue.d.ts +0 -45
- package/dist/views/email-registration/components/icons.d.ts +0 -2
- package/dist/views/email-registration/parts/RegisterEmail/RegisterEmail.vue.d.ts +0 -52
- package/dist/views/email-registration/parts/RegisterEmail/ResendEmailSheet.vue.d.ts +0 -24
|
@@ -3,314 +3,55 @@ import { NativeParams } from '../../jsbridge-core';
|
|
|
3
3
|
import { MiniAppStatusType } from '../../model/miniAppStatus';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
show: BooleanConstructor;
|
|
6
|
-
data: {
|
|
7
|
-
type: ObjectConstructor;
|
|
8
|
-
default: () => void;
|
|
9
|
-
};
|
|
10
6
|
params: {
|
|
11
7
|
type: PropType<NativeParams<unknown, import("../../types").MiniAppErrorResultType>>;
|
|
12
8
|
default: () => {};
|
|
13
9
|
};
|
|
14
|
-
|
|
15
|
-
type:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
required: false;
|
|
22
|
-
default: string;
|
|
10
|
+
resendOption: {
|
|
11
|
+
type: PropType<{
|
|
12
|
+
resend: boolean;
|
|
13
|
+
maskedEmail: string;
|
|
14
|
+
} | null>;
|
|
15
|
+
default: null;
|
|
23
16
|
};
|
|
24
17
|
}, {
|
|
25
|
-
style: Record<string, string>;
|
|
26
18
|
callback: {
|
|
27
19
|
cancel: () => void;
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
appLogo: import("vue").ComputedRef<string | undefined>;
|
|
31
|
-
appName: import("vue").ComputedRef<string | undefined>;
|
|
32
|
-
lg: {
|
|
33
|
-
showUpdateWarning: {
|
|
34
|
-
closeBtn: string;
|
|
35
|
-
notNow: string;
|
|
36
|
-
update: string;
|
|
37
|
-
title: string;
|
|
38
|
-
errorText: string;
|
|
39
|
-
desc1: string;
|
|
40
|
-
desc2: string;
|
|
41
|
-
};
|
|
42
|
-
openApp: {
|
|
43
|
-
title: string;
|
|
44
|
-
body: string;
|
|
45
|
-
errorText: string;
|
|
46
|
-
openApp: string;
|
|
47
|
-
cancel: string;
|
|
48
|
-
};
|
|
49
|
-
openMap: {
|
|
50
|
-
title: string;
|
|
51
|
-
errorText: string;
|
|
52
|
-
};
|
|
53
|
-
topup: {
|
|
54
|
-
title: string;
|
|
55
|
-
balMoney: string;
|
|
56
|
-
charge: string;
|
|
57
|
-
minAmount: string;
|
|
58
|
-
maxAmount: string;
|
|
59
|
-
moneyLabel: string;
|
|
60
|
-
noMethod: string;
|
|
61
|
-
loading: string;
|
|
62
|
-
payBtn: string;
|
|
63
|
-
availableBalance: string;
|
|
64
|
-
availableBalanceAfter: string;
|
|
65
|
-
allBalance: string;
|
|
66
|
-
};
|
|
67
|
-
takePhoto: {
|
|
68
|
-
camera: string;
|
|
69
|
-
photo: string;
|
|
70
|
-
};
|
|
71
|
-
payment: {
|
|
72
|
-
title: string;
|
|
73
|
-
payAmount: string;
|
|
74
|
-
payAmountTaxExempt: string;
|
|
75
|
-
method: string;
|
|
76
|
-
address: string;
|
|
77
|
-
insufficientAmount: string;
|
|
78
|
-
paying: string;
|
|
79
|
-
pay: string;
|
|
80
|
-
charge: string;
|
|
81
|
-
cancel: string;
|
|
82
|
-
noAddress: string;
|
|
83
|
-
change: string;
|
|
84
|
-
close: string;
|
|
85
|
-
};
|
|
86
|
-
duplicate: {
|
|
87
|
-
header: string;
|
|
88
|
-
text1: string;
|
|
89
|
-
text2: string;
|
|
90
|
-
cancel: string;
|
|
91
|
-
agreeButtonText: string;
|
|
92
|
-
topHeader: string;
|
|
93
|
-
topText1: string;
|
|
94
|
-
topText2: string;
|
|
95
|
-
topAgreeButtonText: string;
|
|
96
|
-
};
|
|
97
|
-
birthdayConfirm: {
|
|
98
|
-
title: string;
|
|
99
|
-
title2: string;
|
|
100
|
-
desc: string;
|
|
101
|
-
desc1: string;
|
|
102
|
-
desc2: string;
|
|
103
|
-
desc3: string;
|
|
104
|
-
date: string;
|
|
105
|
-
primaryBtn: string;
|
|
106
|
-
cancelBtn: string;
|
|
107
|
-
};
|
|
108
|
-
birthdayConfirmError: {
|
|
109
|
-
title: string;
|
|
110
|
-
title2: string;
|
|
111
|
-
desc: string;
|
|
112
|
-
desc2: string;
|
|
113
|
-
helpBtn: string;
|
|
114
|
-
closeBtn: string;
|
|
115
|
-
};
|
|
116
|
-
cashbackDet: {
|
|
117
|
-
button1: string;
|
|
118
|
-
button2: string;
|
|
119
|
-
button3: string;
|
|
120
|
-
};
|
|
121
|
-
topContent: {
|
|
122
|
-
title: string;
|
|
123
|
-
chargeTitle: string;
|
|
124
|
-
chargeLabel: string;
|
|
125
|
-
loading: string;
|
|
126
|
-
unavailable1: string;
|
|
127
|
-
unavailable2: string;
|
|
128
|
-
amount: string;
|
|
129
|
-
return: string;
|
|
130
|
-
};
|
|
131
|
-
topInfo: {
|
|
132
|
-
sufficientRow: string;
|
|
133
|
-
insufficientAmount: string;
|
|
134
|
-
insufficientAmountText: string;
|
|
135
|
-
paymentAmount: string;
|
|
136
|
-
};
|
|
137
|
-
choosePayment: {
|
|
138
|
-
title: string;
|
|
139
|
-
desc1: string;
|
|
140
|
-
desc2: string;
|
|
141
|
-
title2: string;
|
|
142
|
-
addMethod: string;
|
|
143
|
-
noMethod: string;
|
|
144
|
-
};
|
|
145
|
-
topupCompletion: {
|
|
146
|
-
title: string;
|
|
147
|
-
idInfo: string;
|
|
148
|
-
copied: string;
|
|
149
|
-
};
|
|
150
|
-
userAddress: {
|
|
151
|
-
title: string;
|
|
152
|
-
header: string;
|
|
153
|
-
tagForm: string;
|
|
154
|
-
home: string;
|
|
155
|
-
work: string;
|
|
156
|
-
billing: string;
|
|
157
|
-
footer: string;
|
|
158
|
-
titlePre: string;
|
|
159
|
-
titleApp: string;
|
|
160
|
-
titlePlace: string;
|
|
161
|
-
receiverPre: string;
|
|
162
|
-
receiverPlace: string;
|
|
163
|
-
inputPre: string;
|
|
164
|
-
statePre: string;
|
|
165
|
-
statePlace: string;
|
|
166
|
-
cityPre: string;
|
|
167
|
-
cityPlace: string;
|
|
168
|
-
street1Pre: string;
|
|
169
|
-
streetPlace: string;
|
|
170
|
-
street2Pre: string;
|
|
171
|
-
street2Place: string;
|
|
172
|
-
footerBtn1: string;
|
|
173
|
-
footerBtn2: string;
|
|
174
|
-
displayTitle: string;
|
|
175
|
-
deleteTitle: string;
|
|
176
|
-
delete: string;
|
|
177
|
-
close: string;
|
|
178
|
-
addAddress: string;
|
|
179
|
-
address: string;
|
|
180
|
-
return: string;
|
|
181
|
-
change: string;
|
|
182
|
-
noAddress: string;
|
|
183
|
-
registerAddress: string;
|
|
184
|
-
confirmAddress: string;
|
|
185
|
-
returnEdit: string;
|
|
186
|
-
selectAddress: string;
|
|
187
|
-
selectDeliveryAddress: string;
|
|
188
|
-
};
|
|
189
|
-
errorSheet: {
|
|
190
|
-
title: string;
|
|
191
|
-
title1: string;
|
|
192
|
-
desc: string;
|
|
193
|
-
topup: string;
|
|
194
|
-
topupDesc: string;
|
|
195
|
-
pay: string;
|
|
196
|
-
payDesc: string;
|
|
197
|
-
};
|
|
198
|
-
paymentMethod: {
|
|
199
|
-
expired: string;
|
|
200
|
-
ordinary: string;
|
|
201
|
-
current: string;
|
|
202
|
-
checkGreen: string;
|
|
203
|
-
authenticated: string;
|
|
204
|
-
yjTitle: string;
|
|
205
|
-
ppCardTitle: string;
|
|
206
|
-
brand: string;
|
|
207
|
-
};
|
|
208
|
-
paymentMethodStatus: {
|
|
209
|
-
ACTIVATED: string;
|
|
210
|
-
OFF: string;
|
|
211
|
-
APPLYING: string;
|
|
212
|
-
MAINTENANCE: string;
|
|
213
|
-
BUSY: string;
|
|
214
|
-
SUSPENDED: string;
|
|
215
|
-
};
|
|
216
|
-
wallet: {
|
|
217
|
-
title: string;
|
|
218
|
-
desc: string;
|
|
219
|
-
eMoney: string;
|
|
220
|
-
nonUsable: string;
|
|
221
|
-
cashBackUsable: string;
|
|
222
|
-
cashBackExpirable: string;
|
|
223
|
-
balance: string;
|
|
224
|
-
autoCharge: string;
|
|
225
|
-
};
|
|
226
|
-
payLater: {
|
|
227
|
-
title: string;
|
|
228
|
-
balance: string;
|
|
229
|
-
};
|
|
230
|
-
softbank: {
|
|
231
|
-
desc: string;
|
|
232
|
-
desc1: string;
|
|
233
|
-
isDisable: string;
|
|
234
|
-
};
|
|
235
|
-
registerEmail: {
|
|
236
|
-
title: string;
|
|
237
|
-
warning: string;
|
|
238
|
-
cancelTxt: string;
|
|
239
|
-
errorTitleAlreadyRegistered: string;
|
|
240
|
-
errorDescriptionAlreadyRegistered: string;
|
|
241
|
-
errorTitle: string;
|
|
242
|
-
errorDescription: string;
|
|
243
|
-
};
|
|
244
|
-
smartLogin: {
|
|
245
|
-
title: string;
|
|
246
|
-
signIn: string;
|
|
247
|
-
continueAs: string;
|
|
248
|
-
};
|
|
249
|
-
smartPay: {
|
|
250
|
-
pay: string;
|
|
251
|
-
paypay: string;
|
|
252
|
-
cashback: string;
|
|
253
|
-
};
|
|
254
|
-
cashbackList: {
|
|
255
|
-
close: string;
|
|
256
|
-
};
|
|
257
|
-
desktopTitle: {
|
|
258
|
-
Payment: string;
|
|
259
|
-
addNewAddress: string;
|
|
260
|
-
editAddress: string;
|
|
261
|
-
paymentCompletion: string;
|
|
262
|
-
getUserAddress: string;
|
|
263
|
-
};
|
|
264
|
-
closeConfirmation: {
|
|
265
|
-
title: string;
|
|
266
|
-
confirm: string;
|
|
267
|
-
cancel: string;
|
|
268
|
-
};
|
|
20
|
+
success: (statusCode: MiniAppStatusType, email?: string | undefined) => void;
|
|
269
21
|
};
|
|
270
22
|
actions: {
|
|
271
|
-
openRegisterSheet: () => void;
|
|
272
23
|
sendEmail: import("./hooks/ui").SendEmail;
|
|
273
|
-
resendEmail: import("./hooks/ui").ResendEmail;
|
|
274
24
|
closeRegisterSheet: () => void;
|
|
275
|
-
closeResendSheet: () => Promise<{
|
|
276
|
-
hasError: true;
|
|
277
|
-
} | {
|
|
278
|
-
hasError: false;
|
|
279
|
-
statusCode?: MiniAppStatusType | undefined;
|
|
280
|
-
email?: string | undefined;
|
|
281
|
-
}>;
|
|
282
25
|
closeErrorSheet: () => void;
|
|
283
26
|
};
|
|
284
27
|
errorSheetOpen: import("vue").ComputedRef<boolean>;
|
|
28
|
+
iconUrl: import("vue").ComputedRef<string>;
|
|
285
29
|
errorTitle: import("vue").ComputedRef<string>;
|
|
286
30
|
errorDescription: import("vue").ComputedRef<string>;
|
|
287
|
-
resendSheetOpen: import("vue").ComputedRef<boolean>;
|
|
288
31
|
registerSheetOpen: import("vue").ComputedRef<boolean>;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
emailRegisteredOnRecheck: (email: string) => void;
|
|
295
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
32
|
+
cancel: () => void;
|
|
33
|
+
success: (email: string) => void;
|
|
34
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
+
click: () => true;
|
|
36
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
296
37
|
show?: unknown;
|
|
297
|
-
data?: unknown;
|
|
298
38
|
params?: unknown;
|
|
299
|
-
|
|
300
|
-
email?: unknown;
|
|
39
|
+
resendOption?: unknown;
|
|
301
40
|
} & {
|
|
302
|
-
data: Record<string, any>;
|
|
303
41
|
show: boolean;
|
|
304
|
-
|
|
305
|
-
|
|
42
|
+
resendOption: {
|
|
43
|
+
resend: boolean;
|
|
44
|
+
maskedEmail: string;
|
|
45
|
+
} | null;
|
|
306
46
|
params: NativeParams<unknown, import("../../types").MiniAppErrorResultType>;
|
|
307
47
|
} & {}> & {
|
|
308
|
-
onClick?: ((
|
|
48
|
+
onClick?: (() => any) | undefined;
|
|
309
49
|
}, {
|
|
310
|
-
data: Record<string, any>;
|
|
311
50
|
show: boolean;
|
|
312
|
-
|
|
313
|
-
|
|
51
|
+
resendOption: {
|
|
52
|
+
resend: boolean;
|
|
53
|
+
maskedEmail: string;
|
|
54
|
+
} | null;
|
|
314
55
|
params: NativeParams<unknown, import("../../types").MiniAppErrorResultType>;
|
|
315
56
|
}>;
|
|
316
57
|
export default _default;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { SetupContext } from 'vue';
|
|
2
2
|
import { NativeParams } from '../../../jsbridge-core';
|
|
3
3
|
import { MiniAppStatusType } from '../../../model/miniAppStatus';
|
|
4
|
-
export declare function useCallBack(props: NativeParams<unknown>, ctx: SetupContext<
|
|
4
|
+
export declare function useCallBack(props: NativeParams<unknown>, ctx: SetupContext<{
|
|
5
|
+
click: () => true;
|
|
6
|
+
}>): {
|
|
5
7
|
cancel: () => void;
|
|
6
|
-
|
|
8
|
+
success: (statusCode: MiniAppStatusType, email?: string | undefined) => void;
|
|
7
9
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EmailRegx: RegExp;
|
|
@@ -1,29 +1,23 @@
|
|
|
1
|
-
import { MiniAppStatusType } from '../../../model/miniAppStatus';
|
|
2
1
|
export declare type ResendEmail = (email: string, recheckNeeded?: boolean) => Promise<{
|
|
3
2
|
hasError: boolean;
|
|
4
3
|
emailVerified: boolean;
|
|
5
4
|
email: string;
|
|
6
5
|
}>;
|
|
7
|
-
export declare type SendEmail = (email: string) => Promise<
|
|
6
|
+
export declare type SendEmail = (email: string) => Promise<boolean>;
|
|
8
7
|
export declare function useControlUI(): {
|
|
9
8
|
registerSheetOpen: import("vue").ComputedRef<boolean>;
|
|
10
|
-
resendSheetOpen: import("vue").ComputedRef<boolean>;
|
|
11
9
|
errorSheetOpen: import("vue").ComputedRef<boolean>;
|
|
10
|
+
iconUrl: import("vue").ComputedRef<string>;
|
|
12
11
|
errorTitle: import("vue").ComputedRef<string>;
|
|
13
12
|
errorDescription: import("vue").ComputedRef<string>;
|
|
14
|
-
resendEmailTo: import("vue").ComputedRef<string>;
|
|
15
13
|
actions: {
|
|
16
|
-
openRegisterSheet: () => void;
|
|
17
14
|
sendEmail: SendEmail;
|
|
18
|
-
resendEmail: ResendEmail;
|
|
19
15
|
closeRegisterSheet: () => void;
|
|
20
|
-
closeResendSheet: () => Promise<{
|
|
21
|
-
hasError: true;
|
|
22
|
-
} | {
|
|
23
|
-
hasError: false;
|
|
24
|
-
statusCode?: MiniAppStatusType | undefined;
|
|
25
|
-
email?: string | undefined;
|
|
26
|
-
}>;
|
|
27
16
|
closeErrorSheet: () => void;
|
|
28
17
|
};
|
|
29
18
|
};
|
|
19
|
+
export declare function calculateStyles(): {
|
|
20
|
+
containerStyle: {
|
|
21
|
+
paddingTop: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
isVisible: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
email: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
state: {
|
|
12
|
+
isSent: boolean;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
};
|
|
15
|
+
timer: {
|
|
16
|
+
start: () => void;
|
|
17
|
+
pause: () => void;
|
|
18
|
+
reset: (totalTime?: number) => void;
|
|
19
|
+
current: import("vue").ComputedRef<import("../../../composition-api/dom").CurrentTime>;
|
|
20
|
+
};
|
|
21
|
+
sendEmailAction: () => Promise<void>;
|
|
22
|
+
sentText: import("vue").ComputedRef<string>;
|
|
23
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
'close-not-found-email': () => true;
|
|
25
|
+
'resend-other-email': () => true;
|
|
26
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
27
|
+
isVisible?: unknown;
|
|
28
|
+
email?: unknown;
|
|
29
|
+
} & {
|
|
30
|
+
email: string;
|
|
31
|
+
isVisible: boolean;
|
|
32
|
+
} & {}> & {
|
|
33
|
+
"onClose-not-found-email"?: (() => any) | undefined;
|
|
34
|
+
"onResend-other-email"?: (() => any) | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
email: string;
|
|
37
|
+
isVisible: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
isVisible: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
sendEmail: {
|
|
8
|
+
type: PropType<(email: string) => Promise<boolean>>;
|
|
9
|
+
required: false;
|
|
10
|
+
default: () => () => void;
|
|
11
|
+
};
|
|
12
|
+
resendOption: {
|
|
13
|
+
type: PropType<{
|
|
14
|
+
resend: boolean;
|
|
15
|
+
maskedEmail: string;
|
|
16
|
+
} | null>;
|
|
17
|
+
default: null;
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
inputRef: import("vue").Ref<any>;
|
|
21
|
+
EmailRegx: RegExp;
|
|
22
|
+
state: {
|
|
23
|
+
isEmailValid: boolean;
|
|
24
|
+
loading: boolean;
|
|
25
|
+
email: string;
|
|
26
|
+
isSentEmailSheetVisible: boolean;
|
|
27
|
+
reenterEmail: boolean;
|
|
28
|
+
};
|
|
29
|
+
validateEmail: (v: boolean) => void;
|
|
30
|
+
registerEmailAction: () => Promise<void>;
|
|
31
|
+
cancel: () => void;
|
|
32
|
+
isEmailValid: import("vue").ComputedRef<boolean>;
|
|
33
|
+
loading: import("vue").ComputedRef<boolean>;
|
|
34
|
+
toggleIsSentEmailSheetVisible: (v: boolean) => void;
|
|
35
|
+
closeSentEmail: ({ isSuccess, reenterEmail, }: {
|
|
36
|
+
isSuccess: boolean;
|
|
37
|
+
reenterEmail: boolean;
|
|
38
|
+
}) => void;
|
|
39
|
+
inlineStyles: import("vue").ComputedRef<{
|
|
40
|
+
containerStyle: {
|
|
41
|
+
paddingTop: string;
|
|
42
|
+
};
|
|
43
|
+
}>;
|
|
44
|
+
isEmailInputVisible: import("vue").ComputedRef<boolean>;
|
|
45
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
+
cancel: () => true;
|
|
47
|
+
success: (_: string) => true;
|
|
48
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
49
|
+
isVisible?: unknown;
|
|
50
|
+
sendEmail?: unknown;
|
|
51
|
+
resendOption?: unknown;
|
|
52
|
+
} & {
|
|
53
|
+
isVisible: boolean;
|
|
54
|
+
sendEmail: (email: string) => Promise<boolean>;
|
|
55
|
+
resendOption: {
|
|
56
|
+
resend: boolean;
|
|
57
|
+
maskedEmail: string;
|
|
58
|
+
} | null;
|
|
59
|
+
} & {}> & {
|
|
60
|
+
onSuccess?: ((_: string) => any) | undefined;
|
|
61
|
+
onCancel?: (() => any) | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
isVisible: boolean;
|
|
64
|
+
sendEmail: (email: string) => Promise<boolean>;
|
|
65
|
+
resendOption: {
|
|
66
|
+
resend: boolean;
|
|
67
|
+
maskedEmail: string;
|
|
68
|
+
} | null;
|
|
69
|
+
}>;
|
|
70
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
isVisible: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
inlineStyles: import("vue").ComputedRef<{
|
|
8
|
+
containerStyle: {
|
|
9
|
+
paddingTop: string;
|
|
10
|
+
};
|
|
11
|
+
}>;
|
|
12
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
'close-auth-done': () => true;
|
|
14
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
15
|
+
isVisible?: unknown;
|
|
16
|
+
} & {
|
|
17
|
+
isVisible: boolean;
|
|
18
|
+
} & {}> & {
|
|
19
|
+
"onClose-auth-done"?: (() => any) | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
isVisible: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
isVisible: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
email: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
inlineStyles: import("vue").ComputedRef<{
|
|
12
|
+
containerStyle: {
|
|
13
|
+
paddingTop: string;
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
16
|
+
state: {
|
|
17
|
+
error: boolean;
|
|
18
|
+
isSentEmailDoneSheetVisible: boolean;
|
|
19
|
+
isNotFoundEmailSheetVisible: boolean;
|
|
20
|
+
};
|
|
21
|
+
closeError: () => void;
|
|
22
|
+
toggleIsSentEmailDoneSheetVisible: (v: boolean) => boolean;
|
|
23
|
+
errorMessages: {
|
|
24
|
+
title: string;
|
|
25
|
+
text: string;
|
|
26
|
+
};
|
|
27
|
+
toggleIsNotFoundEmailSheetVisible: (v: boolean) => boolean;
|
|
28
|
+
resendOtherEmail: () => void;
|
|
29
|
+
checkEmailAuth: () => Promise<void>;
|
|
30
|
+
closeAuthDone: () => void;
|
|
31
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
'close-sent-email': (_p: {
|
|
33
|
+
isSuccess: boolean;
|
|
34
|
+
reenterEmail: boolean;
|
|
35
|
+
}) => true;
|
|
36
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
37
|
+
isVisible?: unknown;
|
|
38
|
+
email?: unknown;
|
|
39
|
+
} & {
|
|
40
|
+
email: string;
|
|
41
|
+
isVisible: boolean;
|
|
42
|
+
} & {}> & {
|
|
43
|
+
"onClose-sent-email"?: ((_p: {
|
|
44
|
+
isSuccess: boolean;
|
|
45
|
+
reenterEmail: boolean;
|
|
46
|
+
}) => any) | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
email: string;
|
|
49
|
+
isVisible: boolean;
|
|
50
|
+
}>;
|
|
51
|
+
export default _default;
|