@pisell/private-materials 6.3.55 → 6.3.57
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/appointmentBooking/components/Services/index.js +27 -24
- package/es/components/appointmentBooking/components/Voucher/index.js +14 -0
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +29 -9
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +165 -145
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
- package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/es/components/pay/toC/index.js +65 -31
- package/es/components/pay/toC/model.d.ts +1 -0
- package/es/components/pay/toC/serve.d.ts +18 -0
- package/es/components/pay/toC/serve.js +29 -1
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +4 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/ticketBooking/components/timeBar/index.js +9 -12
- package/es/components/walletList/index.js +173 -39
- package/es/components/walletList/locales.js +12 -3
- package/es/components/walletList/serve.d.ts +19 -0
- package/es/components/walletList/serve.js +94 -5
- package/es/components/walletList/tempHolderSelector/index.d.ts +14 -0
- package/es/components/walletList/tempHolderSelector/index.js +196 -0
- package/es/components/walletList/tempHolderSelector/index.less +63 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +3 -2
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
- package/es/plus/selectHolder/components/ErrorTip/index.js +14 -0
- package/es/plus/selectHolder/components/ErrorTip/index.less +51 -0
- package/es/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
- package/es/plus/selectHolder/components/HolderItem/index.js +77 -0
- package/es/plus/selectHolder/components/HolderItem/index.less +105 -0
- package/es/plus/selectHolder/components/HolderList/index.d.ts +30 -0
- package/es/plus/selectHolder/components/HolderList/index.js +43 -0
- package/es/plus/selectHolder/index.d.ts +7 -0
- package/es/plus/selectHolder/index.js +236 -0
- package/es/plus/selectHolder/index.less +117 -0
- package/es/plus/selectHolder/locales.d.ts +21 -0
- package/es/plus/selectHolder/locales.js +20 -0
- package/es/plus/selectHolder/types.js +1 -0
- package/es/plus/selectHolder/utils.js +16 -0
- package/es/plus/walletEditor/WalletEditor.js +60 -2
- package/es/plus/walletEditor/locales.js +12 -3
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passList/index.js +17 -5
- package/es/plus/walletPassGallery/index.js +223 -41
- package/es/plus/walletPassGallery/locales.js +29 -5
- package/es/plus/walletPassGallery/serve.d.ts +15 -1
- package/es/plus/walletPassGallery/serve.js +59 -2
- package/es/plus/walletPassGallery/utils.js +342 -0
- package/lib/components/appointmentBooking/components/Services/index.js +5 -2
- package/lib/components/appointmentBooking/components/Voucher/index.js +12 -0
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +29 -6
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
- package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/lib/components/pay/toC/index.js +52 -19
- package/lib/components/pay/toC/model.d.ts +1 -0
- package/lib/components/pay/toC/serve.d.ts +18 -0
- package/lib/components/pay/toC/serve.js +6 -0
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +4 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/timeBar/index.js +2 -5
- package/lib/components/walletList/index.js +100 -4
- package/lib/components/walletList/locales.js +12 -3
- package/lib/components/walletList/serve.d.ts +19 -0
- package/lib/components/walletList/serve.js +26 -3
- package/lib/components/walletList/tempHolderSelector/index.d.ts +14 -0
- package/lib/components/walletList/tempHolderSelector/index.js +166 -0
- package/lib/components/walletList/tempHolderSelector/index.less +63 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -3
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
- package/lib/{components/wallet/PointCard/model.js → plus/selectHolder/components/ErrorTip/index.js} +10 -23
- package/lib/plus/selectHolder/components/ErrorTip/index.less +51 -0
- package/lib/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
- package/lib/plus/selectHolder/components/HolderItem/index.js +101 -0
- package/lib/plus/selectHolder/components/HolderItem/index.less +105 -0
- package/lib/plus/selectHolder/components/HolderList/index.d.ts +30 -0
- package/lib/{components/wallet/components/WalletBar → plus/selectHolder/components/HolderList}/index.js +29 -15
- package/lib/plus/selectHolder/index.d.ts +7 -0
- package/lib/plus/selectHolder/index.js +202 -0
- package/lib/plus/selectHolder/index.less +117 -0
- package/lib/plus/selectHolder/locales.d.ts +21 -0
- package/lib/{components/wallet/Voucher → plus/selectHolder}/locales.js +15 -15
- package/lib/plus/selectHolder/types.js +17 -0
- package/lib/{components/wallet/RechargeableCard/serve.js → plus/selectHolder/utils.js} +11 -10
- package/lib/plus/walletEditor/WalletEditor.js +53 -0
- package/lib/plus/walletEditor/locales.js +12 -3
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passList/index.js +16 -4
- package/lib/plus/walletPassGallery/index.js +154 -27
- package/lib/plus/walletPassGallery/locales.js +32 -5
- package/lib/plus/walletPassGallery/serve.d.ts +15 -1
- package/lib/plus/walletPassGallery/serve.js +17 -5
- package/lib/plus/walletPassGallery/utils.js +287 -0
- package/lowcode/event-select-holder/meta.ts +2 -2
- package/lowcode/select-holder/meta.ts +220 -0
- package/lowcode/select-holder/snippets.ts +41 -0
- package/package.json +2 -2
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/pay/toC/locales.d.ts +0 -301
- package/es/components/pay/toC/status.d.ts +0 -13
- package/es/components/systemSettings/registry/locales.d.ts +0 -272
- package/es/components/systemSettings/registry/services.d.ts +0 -77
- package/es/components/systemSettings/registry/types.d.ts +0 -126
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
- package/es/components/wallet/Detail/index.d.ts +0 -42
- package/es/components/wallet/Detail/index.js +0 -1182
- package/es/components/wallet/Detail/index.less +0 -386
- package/es/components/wallet/Detail/locales.d.ts +0 -153
- package/es/components/wallet/Detail/locales.js +0 -170
- package/es/components/wallet/Detail/model.d.ts +0 -13
- package/es/components/wallet/Detail/model.js +0 -22
- package/es/components/wallet/Detail/serve.d.ts +0 -39
- package/es/components/wallet/Detail/serve.js +0 -64
- package/es/components/wallet/DetailContext.d.ts +0 -25
- package/es/components/wallet/DetailContext.js +0 -162
- package/es/components/wallet/DiscountCard/index.d.ts +0 -3
- package/es/components/wallet/DiscountCard/index.js +0 -218
- package/es/components/wallet/DiscountCard/index.less +0 -9
- package/es/components/wallet/DiscountCard/model.d.ts +0 -14
- package/es/components/wallet/DiscountCard/model.js +0 -22
- package/es/components/wallet/PointCard/index.d.ts +0 -3
- package/es/components/wallet/PointCard/index.js +0 -169
- package/es/components/wallet/PointCard/index.less +0 -9
- package/es/components/wallet/PointCard/model.d.ts +0 -13
- package/es/components/wallet/PointCard/model.js +0 -22
- package/es/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/index.js +0 -463
- package/es/components/wallet/RechargeableCard/index.less +0 -108
- package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/es/components/wallet/RechargeableCard/model.js +0 -28
- package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/es/components/wallet/RechargeableCard/serve.js +0 -32
- package/es/components/wallet/Voucher/index.d.ts +0 -12
- package/es/components/wallet/Voucher/index.js +0 -131
- package/es/components/wallet/Voucher/index.less +0 -9
- package/es/components/wallet/Voucher/locales.d.ts +0 -21
- package/es/components/wallet/Voucher/locales.js +0 -20
- package/es/components/wallet/Voucher/model.d.ts +0 -13
- package/es/components/wallet/Voucher/model.js +0 -22
- package/es/components/wallet/carouselArrow.png +0 -0
- package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/es/components/wallet/components/FooterButtons/index.js +0 -81
- package/es/components/wallet/components/FooterButtons/index.less +0 -91
- package/es/components/wallet/components/UsageRules/index.d.ts +0 -23
- package/es/components/wallet/components/UsageRules/index.js +0 -147
- package/es/components/wallet/components/UsageRules/index.less +0 -157
- package/es/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/es/components/wallet/components/WalletBar/index.js +0 -19
- package/es/components/wallet/components/WalletBar/index.less +0 -36
- package/es/components/wallet/components/WalletCard.d.ts +0 -11
- package/es/components/wallet/components/WalletCard.js +0 -91
- package/es/components/wallet/components/index.d.ts +0 -3
- package/es/components/wallet/components/index.js +0 -4
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -33
- package/es/components/wallet/hooks/useWalletCard.js +0 -147
- package/es/components/wallet/index.d.ts +0 -10
- package/es/components/wallet/index.js +0 -807
- package/es/components/wallet/index.less +0 -151
- package/es/components/wallet/locales.d.ts +0 -132
- package/es/components/wallet/locales.js +0 -139
- package/es/components/wallet/model.d.ts +0 -37
- package/es/components/wallet/model.js +0 -86
- package/es/components/wallet/serve.d.ts +0 -150
- package/es/components/wallet/serve.js +0 -205
- package/es/components/wallet/utils/formatUtils.d.ts +0 -36
- package/es/components/wallet/utils/formatUtils.js +0 -73
- package/es/components/wallet/utils.d.ts +0 -48
- package/es/components/walletList/locales.d.ts +0 -18
- package/es/components/walletList/types/index.d.ts +0 -194
- package/es/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
- package/es/plus/walletEditor/locales.d.ts +0 -126
- package/es/plus/walletEditor/types.d.ts +0 -52
- package/es/plus/walletPassGallery/locales.d.ts +0 -270
- package/es/pro/Login2.0/hooks/index.d.ts +0 -2
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
- package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +0 -39
- package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +0 -9
- package/es/pro/Login2.0/locales.d.ts +0 -543
- package/es/pro/Login2.0/shared/Header.d.ts +0 -11
- package/es/pro/Login2.0/shared/registerFlow.d.ts +0 -116
- package/es/pro/Login2.0/shared/types.d.ts +0 -232
- package/es/pro/Login2.0/types.d.ts +0 -167
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/pay/toC/locales.d.ts +0 -301
- package/lib/components/pay/toC/status.d.ts +0 -13
- package/lib/components/systemSettings/registry/locales.d.ts +0 -272
- package/lib/components/systemSettings/registry/services.d.ts +0 -77
- package/lib/components/systemSettings/registry/types.d.ts +0 -126
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
- package/lib/components/wallet/Detail/index.d.ts +0 -42
- package/lib/components/wallet/Detail/index.js +0 -874
- package/lib/components/wallet/Detail/index.less +0 -386
- package/lib/components/wallet/Detail/locales.d.ts +0 -153
- package/lib/components/wallet/Detail/locales.js +0 -194
- package/lib/components/wallet/Detail/model.d.ts +0 -13
- package/lib/components/wallet/Detail/model.js +0 -43
- package/lib/components/wallet/Detail/serve.d.ts +0 -39
- package/lib/components/wallet/Detail/serve.js +0 -44
- package/lib/components/wallet/DetailContext.d.ts +0 -25
- package/lib/components/wallet/DetailContext.js +0 -118
- package/lib/components/wallet/DiscountCard/index.d.ts +0 -3
- package/lib/components/wallet/DiscountCard/index.js +0 -209
- package/lib/components/wallet/DiscountCard/index.less +0 -9
- package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
- package/lib/components/wallet/DiscountCard/model.js +0 -43
- package/lib/components/wallet/PointCard/index.d.ts +0 -3
- package/lib/components/wallet/PointCard/index.js +0 -190
- package/lib/components/wallet/PointCard/index.less +0 -9
- package/lib/components/wallet/PointCard/model.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/index.js +0 -380
- package/lib/components/wallet/RechargeableCard/index.less +0 -108
- package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/lib/components/wallet/RechargeableCard/model.js +0 -49
- package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/lib/components/wallet/Voucher/index.d.ts +0 -12
- package/lib/components/wallet/Voucher/index.js +0 -146
- package/lib/components/wallet/Voucher/index.less +0 -9
- package/lib/components/wallet/Voucher/locales.d.ts +0 -21
- package/lib/components/wallet/Voucher/model.d.ts +0 -13
- package/lib/components/wallet/Voucher/model.js +0 -43
- package/lib/components/wallet/carouselArrow.png +0 -0
- package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/lib/components/wallet/components/FooterButtons/index.js +0 -109
- package/lib/components/wallet/components/FooterButtons/index.less +0 -91
- package/lib/components/wallet/components/UsageRules/index.d.ts +0 -23
- package/lib/components/wallet/components/UsageRules/index.js +0 -113
- package/lib/components/wallet/components/UsageRules/index.less +0 -157
- package/lib/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/lib/components/wallet/components/WalletBar/index.less +0 -36
- package/lib/components/wallet/components/WalletCard.d.ts +0 -11
- package/lib/components/wallet/components/WalletCard.js +0 -97
- package/lib/components/wallet/components/index.d.ts +0 -3
- package/lib/components/wallet/components/index.js +0 -45
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -33
- package/lib/components/wallet/hooks/useWalletCard.js +0 -111
- package/lib/components/wallet/index.d.ts +0 -10
- package/lib/components/wallet/index.js +0 -580
- package/lib/components/wallet/index.less +0 -151
- package/lib/components/wallet/locales.d.ts +0 -132
- package/lib/components/wallet/locales.js +0 -163
- package/lib/components/wallet/model.d.ts +0 -37
- package/lib/components/wallet/model.js +0 -91
- package/lib/components/wallet/serve.d.ts +0 -150
- package/lib/components/wallet/serve.js +0 -85
- package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
- package/lib/components/wallet/utils/formatUtils.js +0 -73
- package/lib/components/wallet/utils.d.ts +0 -48
- package/lib/components/walletList/locales.d.ts +0 -18
- package/lib/components/walletList/types/index.d.ts +0 -194
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
- package/lib/plus/walletEditor/locales.d.ts +0 -126
- package/lib/plus/walletEditor/types.d.ts +0 -52
- package/lib/plus/walletPassGallery/locales.d.ts +0 -270
- package/lib/pro/Login2.0/hooks/index.d.ts +0 -2
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +0 -39
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +0 -9
- package/lib/pro/Login2.0/locales.d.ts +0 -543
- package/lib/pro/Login2.0/shared/Header.d.ts +0 -11
- package/lib/pro/Login2.0/shared/registerFlow.d.ts +0 -116
- package/lib/pro/Login2.0/shared/types.d.ts +0 -232
- package/lib/pro/Login2.0/types.d.ts +0 -167
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 登录注册 2.0 共享类型定义
|
|
3
|
-
*/
|
|
4
|
-
/** 验证方式枚举 */
|
|
5
|
-
export declare type VerificationMethod = 'verification_code' | 'password';
|
|
6
|
-
/** 邮箱注册验证方式 */
|
|
7
|
-
export declare type EmailRegistrationVerification = 'verification_link' | 'verification_code' | 'none';
|
|
8
|
-
/** 手机注册验证方式 */
|
|
9
|
-
export declare type PhoneRegistrationVerification = 'verification_code';
|
|
10
|
-
/** 认证方式类型 */
|
|
11
|
-
export declare type AuthMethodType = 'email' | 'phone' | 'google' | 'facebook' | 'apple' | 'guest';
|
|
12
|
-
/** 登录方式项类型 */
|
|
13
|
-
export declare type LoginMethodType = 'email' | 'phone' | 'google' | 'facebook' | 'apple' | 'guest';
|
|
14
|
-
export interface PhoneValueObject {
|
|
15
|
-
phone: string;
|
|
16
|
-
country_calling_code: string;
|
|
17
|
-
}
|
|
18
|
-
/** 邮箱登录方式项 */
|
|
19
|
-
export interface EmailLoginMethod {
|
|
20
|
-
type: 'email';
|
|
21
|
-
/** 启用的验证方式(按顺序),第一个为默认方式 */
|
|
22
|
-
verificationMethods: Array<'password' | 'verification_code'>;
|
|
23
|
-
/** 密码登录是否分步骤填写(先输入邮箱,再输入密码) */
|
|
24
|
-
stepByStep?: boolean;
|
|
25
|
-
}
|
|
26
|
-
/** 手机登录方式项 */
|
|
27
|
-
export interface PhoneLoginMethod {
|
|
28
|
-
type: 'phone';
|
|
29
|
-
/** 启用的验证方式(按顺序),第一个为默认方式 */
|
|
30
|
-
verificationMethods: Array<'password' | 'verification_code'>;
|
|
31
|
-
/** 密码登录是否分步骤填写(先输入手机号,再输入密码) */
|
|
32
|
-
stepByStep?: boolean;
|
|
33
|
-
}
|
|
34
|
-
/** Google 登录方式项 */
|
|
35
|
-
export interface GoogleLoginMethod {
|
|
36
|
-
type: 'google';
|
|
37
|
-
/** Google Client ID */
|
|
38
|
-
clientId?: string;
|
|
39
|
-
}
|
|
40
|
-
/** Facebook 登录方式项 */
|
|
41
|
-
export interface FacebookLoginMethod {
|
|
42
|
-
type: 'facebook';
|
|
43
|
-
/** Facebook App ID */
|
|
44
|
-
appId?: string;
|
|
45
|
-
}
|
|
46
|
-
/** Apple 登录方式项 */
|
|
47
|
-
export interface AppleLoginMethod {
|
|
48
|
-
type: 'apple';
|
|
49
|
-
/** Apple Client ID */
|
|
50
|
-
clientId?: string;
|
|
51
|
-
}
|
|
52
|
-
/** Guest 登录方式项 */
|
|
53
|
-
export interface GuestLoginMethod {
|
|
54
|
-
type: 'guest';
|
|
55
|
-
}
|
|
56
|
-
/** 注册方式类型 */
|
|
57
|
-
export declare type RegistrationMethodType = 'email' | 'phone' | 'google' | 'facebook' | 'apple';
|
|
58
|
-
/** 邮箱注册方式项 */
|
|
59
|
-
export interface EmailRegistrationMethod {
|
|
60
|
-
type: 'email';
|
|
61
|
-
/** 注册验证方式(邮箱支持验证链接/验证码/无需验证) */
|
|
62
|
-
verificationMethod: 'verification_link' | 'verification_code' | 'none';
|
|
63
|
-
}
|
|
64
|
-
/** 手机注册方式项 */
|
|
65
|
-
export interface PhoneRegistrationMethod {
|
|
66
|
-
type: 'phone';
|
|
67
|
-
/** 注册验证方式(手机仅支持验证码) */
|
|
68
|
-
verificationMethod: 'verification_code';
|
|
69
|
-
}
|
|
70
|
-
/** Google 注册方式项 */
|
|
71
|
-
export interface GoogleRegistrationMethod {
|
|
72
|
-
type: 'google';
|
|
73
|
-
/** Google Client ID */
|
|
74
|
-
clientId?: string;
|
|
75
|
-
}
|
|
76
|
-
/** Facebook 注册方式项 */
|
|
77
|
-
export interface FacebookRegistrationMethod {
|
|
78
|
-
type: 'facebook';
|
|
79
|
-
/** Facebook App ID */
|
|
80
|
-
appId?: string;
|
|
81
|
-
}
|
|
82
|
-
/** Apple 注册方式项 */
|
|
83
|
-
export interface AppleRegistrationMethod {
|
|
84
|
-
type: 'apple';
|
|
85
|
-
/** Apple Client ID */
|
|
86
|
-
clientId?: string;
|
|
87
|
-
}
|
|
88
|
-
/** 注册方式项联合类型 */
|
|
89
|
-
export declare type RegistrationMethodItem = EmailRegistrationMethod | PhoneRegistrationMethod | GoogleRegistrationMethod | FacebookRegistrationMethod | AppleRegistrationMethod;
|
|
90
|
-
/** 法律条款项 */
|
|
91
|
-
export interface LegalTermItem {
|
|
92
|
-
/** 条款名称 - 支持国际化对象或简单字符串 */
|
|
93
|
-
name: string | {
|
|
94
|
-
en?: string;
|
|
95
|
-
'zh-CN'?: string;
|
|
96
|
-
'zh-HK'?: string;
|
|
97
|
-
original?: string;
|
|
98
|
-
};
|
|
99
|
-
/** 条款链接 */
|
|
100
|
-
url: string;
|
|
101
|
-
}
|
|
102
|
-
/** 法律条款配置 */
|
|
103
|
-
export interface LegalTermsConfig {
|
|
104
|
-
/** 是否显示法律条款区域 */
|
|
105
|
-
enabled?: boolean;
|
|
106
|
-
/** 法律条款列表 */
|
|
107
|
-
terms?: LegalTermItem[];
|
|
108
|
-
/** 条款文本模板 */
|
|
109
|
-
textTemplate?: string;
|
|
110
|
-
/** 当前模式:login 或 register */
|
|
111
|
-
mode?: 'login' | 'register';
|
|
112
|
-
}
|
|
113
|
-
/** 登录方式项联合类型 */
|
|
114
|
-
export declare type LoginMethodItem = EmailLoginMethod | PhoneLoginMethod | GoogleLoginMethod | FacebookLoginMethod | AppleLoginMethod | GuestLoginMethod;
|
|
115
|
-
/** 邮箱认证配置 */
|
|
116
|
-
export interface EmailAuthConfig {
|
|
117
|
-
/** 是否启用邮箱认证 */
|
|
118
|
-
enable_email: boolean;
|
|
119
|
-
/** 注册验证方式 */
|
|
120
|
-
registration_verification?: EmailRegistrationVerification;
|
|
121
|
-
/** 登录验证方式列表 */
|
|
122
|
-
login_verification_methods?: VerificationMethod[];
|
|
123
|
-
}
|
|
124
|
-
/** 手机认证配置 */
|
|
125
|
-
export interface PhoneAuthConfig {
|
|
126
|
-
/** 是否启用手机认证 */
|
|
127
|
-
enable_phone_number: boolean;
|
|
128
|
-
/** 注册验证方式 */
|
|
129
|
-
registration_verification?: PhoneRegistrationVerification;
|
|
130
|
-
/** 登录验证方式列表 */
|
|
131
|
-
login_verification_methods?: VerificationMethod[];
|
|
132
|
-
}
|
|
133
|
-
/** 三方 OAuth 配置 */
|
|
134
|
-
export interface OAuthConfig {
|
|
135
|
-
/** Google 登录 */
|
|
136
|
-
google?: {
|
|
137
|
-
enabled: boolean;
|
|
138
|
-
client_id?: string;
|
|
139
|
-
};
|
|
140
|
-
/** Facebook 登录 */
|
|
141
|
-
facebook?: {
|
|
142
|
-
enabled: boolean;
|
|
143
|
-
app_id?: string;
|
|
144
|
-
};
|
|
145
|
-
/** Apple 登录 */
|
|
146
|
-
apple?: {
|
|
147
|
-
enabled: boolean;
|
|
148
|
-
client_id?: string;
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
/** UI 配置 */
|
|
152
|
-
export interface UIConfig {
|
|
153
|
-
/** Logo 配置 */
|
|
154
|
-
logo?: {
|
|
155
|
-
show: boolean;
|
|
156
|
-
url?: string;
|
|
157
|
-
position?: 'left' | 'center' | 'right';
|
|
158
|
-
size?: {
|
|
159
|
-
width: number;
|
|
160
|
-
height: number;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
/** 标题配置 */
|
|
164
|
-
title?: {
|
|
165
|
-
show: boolean;
|
|
166
|
-
text?: string;
|
|
167
|
-
align?: 'left' | 'center' | 'right';
|
|
168
|
-
};
|
|
169
|
-
/** 副标题配置 */
|
|
170
|
-
subtitle?: {
|
|
171
|
-
show: boolean;
|
|
172
|
-
text?: string;
|
|
173
|
-
align?: 'left' | 'center' | 'right';
|
|
174
|
-
};
|
|
175
|
-
/** 描述配置 */
|
|
176
|
-
desc?: {
|
|
177
|
-
show: boolean;
|
|
178
|
-
text?: string;
|
|
179
|
-
align?: 'left' | 'center' | 'right';
|
|
180
|
-
};
|
|
181
|
-
/** 表单标签配置 */
|
|
182
|
-
formLabels?: {
|
|
183
|
-
/** 邮箱标签配置 */
|
|
184
|
-
email?: {
|
|
185
|
-
show: boolean;
|
|
186
|
-
text?: string;
|
|
187
|
-
};
|
|
188
|
-
/** 手机标签配置 */
|
|
189
|
-
phone?: {
|
|
190
|
-
show: boolean;
|
|
191
|
-
text?: string;
|
|
192
|
-
};
|
|
193
|
-
/** 密码标签配置 */
|
|
194
|
-
password?: {
|
|
195
|
-
show: boolean;
|
|
196
|
-
text?: string;
|
|
197
|
-
};
|
|
198
|
-
/** 验证码标签配置 */
|
|
199
|
-
verificationCode?: {
|
|
200
|
-
show: boolean;
|
|
201
|
-
text?: string;
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
/** 密码规则 */
|
|
205
|
-
passwordRules?: any;
|
|
206
|
-
/** 主题色 */
|
|
207
|
-
themeColor?: string;
|
|
208
|
-
}
|
|
209
|
-
/** 登录表单数据 */
|
|
210
|
-
export interface LoginFormData {
|
|
211
|
-
/** 邮箱或手机号 */
|
|
212
|
-
account: string | PhoneValueObject;
|
|
213
|
-
/** 密码 */
|
|
214
|
-
password?: string;
|
|
215
|
-
/** 验证码 */
|
|
216
|
-
verification_code?: string;
|
|
217
|
-
/** 记住我 */
|
|
218
|
-
remember_me?: boolean;
|
|
219
|
-
}
|
|
220
|
-
/** 注册表单数据 */
|
|
221
|
-
export interface RegisterFormData {
|
|
222
|
-
/** 邮箱或手机号 */
|
|
223
|
-
account: string;
|
|
224
|
-
/** 密码 */
|
|
225
|
-
password?: string;
|
|
226
|
-
/** 确认密码 */
|
|
227
|
-
confirm_password?: string;
|
|
228
|
-
/** 验证码 */
|
|
229
|
-
verification_code?: string;
|
|
230
|
-
/** 验证链接 token */
|
|
231
|
-
verification_token?: string;
|
|
232
|
-
}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 登录注册 2.0 组件类型定义
|
|
3
|
-
*/
|
|
4
|
-
/// <reference types="react" />
|
|
5
|
-
/** 验证方式枚举 */
|
|
6
|
-
export declare type VerificationMethod = 'verification_code' | 'password';
|
|
7
|
-
/** 邮箱注册验证方式 */
|
|
8
|
-
export declare type EmailRegistrationVerification = 'verification_link' | 'verification_code';
|
|
9
|
-
/** 认证方式类型 */
|
|
10
|
-
export declare type AuthMethodType = 'email' | 'phone' | 'google' | 'facebook' | 'apple';
|
|
11
|
-
/** 当前状态:登录或注册 */
|
|
12
|
-
export declare type AuthState = 'login' | 'register';
|
|
13
|
-
/** 邮箱认证配置 */
|
|
14
|
-
export interface EmailAuthConfig {
|
|
15
|
-
/** 是否启用邮箱认证 */
|
|
16
|
-
enable_email: boolean;
|
|
17
|
-
/** 注册验证方式 */
|
|
18
|
-
registration_verification: EmailRegistrationVerification;
|
|
19
|
-
/** 登录验证方式列表 */
|
|
20
|
-
login_verification_methods: VerificationMethod[];
|
|
21
|
-
}
|
|
22
|
-
/** 手机认证配置 */
|
|
23
|
-
export interface PhoneAuthConfig {
|
|
24
|
-
/** 是否启用手机认证 */
|
|
25
|
-
enable_phone_number: boolean;
|
|
26
|
-
/** 注册验证方式(手机仅支持验证码) */
|
|
27
|
-
registration_verification: 'verification_code';
|
|
28
|
-
/** 登录验证方式列表 */
|
|
29
|
-
login_verification_methods: VerificationMethod[];
|
|
30
|
-
}
|
|
31
|
-
/** 三方 OAuth 配置 */
|
|
32
|
-
export interface OAuthConfig {
|
|
33
|
-
/** Google 登录 */
|
|
34
|
-
google?: {
|
|
35
|
-
enabled: boolean;
|
|
36
|
-
client_id?: string;
|
|
37
|
-
};
|
|
38
|
-
/** Facebook 登录 */
|
|
39
|
-
facebook?: {
|
|
40
|
-
enabled: boolean;
|
|
41
|
-
app_id?: string;
|
|
42
|
-
};
|
|
43
|
-
/** Apple 登录 */
|
|
44
|
-
apple?: {
|
|
45
|
-
enabled: boolean;
|
|
46
|
-
client_id?: string;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
/** UI 配置 */
|
|
50
|
-
export interface UIConfig {
|
|
51
|
-
/** Logo 配置 */
|
|
52
|
-
logo?: {
|
|
53
|
-
show: boolean;
|
|
54
|
-
url?: string;
|
|
55
|
-
position?: 'left' | 'center' | 'right';
|
|
56
|
-
size?: {
|
|
57
|
-
width: number;
|
|
58
|
-
height: number;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
/** 标题配置 */
|
|
62
|
-
title?: {
|
|
63
|
-
show: boolean;
|
|
64
|
-
text?: string;
|
|
65
|
-
align?: 'left' | 'center' | 'right';
|
|
66
|
-
};
|
|
67
|
-
/** 副标题配置 */
|
|
68
|
-
subtitle?: {
|
|
69
|
-
show: boolean;
|
|
70
|
-
text?: string;
|
|
71
|
-
align?: 'left' | 'center' | 'right';
|
|
72
|
-
};
|
|
73
|
-
/** 描述配置 */
|
|
74
|
-
desc?: {
|
|
75
|
-
show: boolean;
|
|
76
|
-
text?: string;
|
|
77
|
-
align?: 'left' | 'center' | 'right';
|
|
78
|
-
};
|
|
79
|
-
/** 标签页配置 */
|
|
80
|
-
tabs?: {
|
|
81
|
-
show: boolean;
|
|
82
|
-
loginText?: string;
|
|
83
|
-
registerText?: string;
|
|
84
|
-
};
|
|
85
|
-
/** 主题色 */
|
|
86
|
-
themeColor?: string;
|
|
87
|
-
}
|
|
88
|
-
/** 组件总配置 */
|
|
89
|
-
export interface Login2Config {
|
|
90
|
-
/** 邮箱认证配置 */
|
|
91
|
-
email?: EmailAuthConfig;
|
|
92
|
-
/** 手机认证配置 */
|
|
93
|
-
phone?: PhoneAuthConfig;
|
|
94
|
-
/** 三方 OAuth 配置 */
|
|
95
|
-
oauth?: OAuthConfig;
|
|
96
|
-
/** UI 配置 */
|
|
97
|
-
ui?: UIConfig;
|
|
98
|
-
/** 默认认证方式 */
|
|
99
|
-
defaultAuthMethod?: AuthMethodType;
|
|
100
|
-
/** 默认状态(登录或注册) */
|
|
101
|
-
defaultState?: AuthState;
|
|
102
|
-
}
|
|
103
|
-
/** 登录表单数据 */
|
|
104
|
-
export interface LoginFormData {
|
|
105
|
-
/** 邮箱或手机号 */
|
|
106
|
-
account: string;
|
|
107
|
-
/** 密码 */
|
|
108
|
-
password?: string;
|
|
109
|
-
/** 验证码 */
|
|
110
|
-
verification_code?: string;
|
|
111
|
-
/** 记住我 */
|
|
112
|
-
remember_me?: boolean;
|
|
113
|
-
}
|
|
114
|
-
/** 注册表单数据 */
|
|
115
|
-
export interface RegisterFormData {
|
|
116
|
-
/** 邮箱或手机号 */
|
|
117
|
-
account: string;
|
|
118
|
-
/** 密码 */
|
|
119
|
-
password?: string;
|
|
120
|
-
/** 确认密码 */
|
|
121
|
-
confirm_password?: string;
|
|
122
|
-
/** 验证码 */
|
|
123
|
-
verification_code?: string;
|
|
124
|
-
/** 验证链接 token */
|
|
125
|
-
verification_token?: string;
|
|
126
|
-
}
|
|
127
|
-
/** 组件事件回调 */
|
|
128
|
-
export interface Login2Events {
|
|
129
|
-
/** 登录回调 */
|
|
130
|
-
onLogin?: (data: LoginFormData, method: AuthMethodType) => Promise<void> | void;
|
|
131
|
-
/** 注册回调 */
|
|
132
|
-
onRegister?: (data: RegisterFormData, method: AuthMethodType) => Promise<void> | void;
|
|
133
|
-
/** 三方登录回调 */
|
|
134
|
-
onOAuthLogin?: (provider: 'google' | 'facebook' | 'apple') => Promise<void> | void;
|
|
135
|
-
/** 发送验证码回调 */
|
|
136
|
-
onSendVerificationCode?: (account: string, type: 'email' | 'phone') => Promise<void> | void;
|
|
137
|
-
/** 忘记密码回调 */
|
|
138
|
-
onForgotPassword?: (account: string) => Promise<void> | void;
|
|
139
|
-
}
|
|
140
|
-
/** 组件完整属性 */
|
|
141
|
-
export interface Login2Props extends Login2Events {
|
|
142
|
-
/** 配置对象 */
|
|
143
|
-
config: Login2Config;
|
|
144
|
-
/** 是否显示 */
|
|
145
|
-
visible?: boolean;
|
|
146
|
-
/** 关闭回调 */
|
|
147
|
-
onClose?: () => void;
|
|
148
|
-
/** 自定义类名 */
|
|
149
|
-
className?: string;
|
|
150
|
-
/** 自定义样式 */
|
|
151
|
-
style?: React.CSSProperties;
|
|
152
|
-
}
|
|
153
|
-
/** 组件内部状态 */
|
|
154
|
-
export interface Login2State {
|
|
155
|
-
/** 当前状态:登录或注册 */
|
|
156
|
-
authState: AuthState;
|
|
157
|
-
/** 当前认证方式 */
|
|
158
|
-
currentAuthMethod: AuthMethodType;
|
|
159
|
-
/** 当前使用的验证方式 */
|
|
160
|
-
currentVerificationMethod: VerificationMethod;
|
|
161
|
-
/** 加载状态 */
|
|
162
|
-
loading: boolean;
|
|
163
|
-
/** 验证码倒计时 */
|
|
164
|
-
countdown: number;
|
|
165
|
-
/** 表单数据 */
|
|
166
|
-
formData: Partial<LoginFormData | RegisterFormData>;
|
|
167
|
-
}
|