@pisell/private-materials 6.8.28 → 6.8.30
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/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/locales.d.ts +363 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/footer/amount.d.ts +37 -0
- package/es/components/booking/components/footer/index.js +43 -44
- package/es/components/booking/components/footer/utils.js +2 -2
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/info/client/index.d.ts +4 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +0 -1
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/es/components/booking/info/service/serve.d.ts +34 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +219 -0
- package/es/components/booking/info2/cartClientCard/types.d.ts +18 -0
- package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +106 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/info2/service/editNormalService/index.js +4 -4
- package/es/components/booking/info2/service/editService/index.js +3 -3
- package/es/components/booking/info2/service/editService/utils.js +6 -1
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +36 -0
- package/es/components/booking/locales.d.ts +951 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/utils/confirmHolderModal.js +3 -4
- package/es/components/booking/utils.d.ts +182 -0
- package/es/components/booking/utils.js +7 -1
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/es/components/checkout/types.d.ts +130 -0
- package/es/components/checkout/utils.d.ts +3 -0
- package/es/components/eftposPay/app.d.ts +10 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/es/components/eftposPay/component/fail/index.d.ts +3 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +9 -0
- package/es/components/eftposPay/const.d.ts +190 -0
- package/es/components/eftposPay/device.d.ts +25 -0
- package/es/components/eftposPay/hooks.d.ts +35 -0
- package/es/components/eftposPay/index.d.ts +4 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/locales.d.ts +330 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/pay.d.ts +20 -0
- package/es/components/eftposPay/payo/config.d.ts +12 -0
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/windcave/helper.d.ts +23 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/list/hooks/index.d.ts +5 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/es/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/es/components/pay/toB/locales.d.ts +54 -0
- package/es/components/pay/toB/store/context.d.ts +3 -0
- package/es/components/pay/toB/store/hooks.d.ts +15 -0
- package/es/components/pay/toB/store/index.d.ts +3 -0
- package/es/components/pay/toB/store/provider.d.ts +4 -0
- package/es/components/pay/toB/store/utils.d.ts +13 -0
- package/es/components/pay/toB/types/index.d.ts +72 -0
- package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +32 -0
- package/es/components/pay/toC/utils.d.ts +57 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/locales.d.ts +48 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -2
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +6 -0
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
- package/es/components/ticketBooking/utils/index.d.ts +101 -0
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/clinetSearch/locales.d.ts +105 -0
- package/es/plus/clinetSearch/types.d.ts +61 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/index.d.ts +5 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/es/plus/webPosLogin/locales.d.ts +49 -0
- package/es/plus/webPosLogin/types.d.ts +286 -0
- package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/es/pro/Login2.0/hooks/index.d.ts +2 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/es/pro/Login2.0/shared/Header.d.ts +11 -0
- package/es/pro/Login2.0/shared/types.d.ts +232 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellPaymentList/example.d.ts +19 -0
- package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/es/pro/skuDetailModal/index.js +17 -2
- package/es/pro/skuDetailModal/index.less +1 -1
- package/es/test/setup.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/locales.d.ts +363 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.d.ts +37 -0
- package/lib/components/booking/components/footer/index.js +9 -12
- package/lib/components/booking/components/footer/utils.js +2 -2
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/info/client/index.d.ts +4 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +0 -1
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/lib/components/booking/info/service/serve.d.ts +34 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +219 -0
- package/lib/components/booking/info2/cartClientCard/types.d.ts +18 -0
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +106 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/info2/service/editNormalService/index.js +4 -4
- package/lib/components/booking/info2/service/editService/index.js +4 -4
- package/lib/components/booking/info2/service/editService/utils.js +4 -1
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +36 -0
- package/lib/components/booking/locales.d.ts +951 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/utils/confirmHolderModal.js +0 -1
- package/lib/components/booking/utils.d.ts +182 -0
- package/lib/components/booking/utils.js +5 -1
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/lib/components/checkout/types.d.ts +130 -0
- package/lib/components/checkout/utils.d.ts +3 -0
- package/lib/components/eftposPay/app.d.ts +10 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +9 -0
- package/lib/components/eftposPay/const.d.ts +190 -0
- package/lib/components/eftposPay/device.d.ts +25 -0
- package/lib/components/eftposPay/hooks.d.ts +35 -0
- package/lib/components/eftposPay/index.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/locales.d.ts +330 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/pay.d.ts +20 -0
- package/lib/components/eftposPay/payo/config.d.ts +12 -0
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/list/hooks/index.d.ts +5 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/lib/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/lib/components/pay/toB/locales.d.ts +54 -0
- package/lib/components/pay/toB/store/context.d.ts +3 -0
- package/lib/components/pay/toB/store/hooks.d.ts +15 -0
- package/lib/components/pay/toB/store/index.d.ts +3 -0
- package/lib/components/pay/toB/store/provider.d.ts +4 -0
- package/lib/components/pay/toB/store/utils.d.ts +13 -0
- package/lib/components/pay/toB/types/index.d.ts +72 -0
- package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +32 -0
- package/lib/components/pay/toC/utils.d.ts +57 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/ruleSetting/locales.d.ts +48 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -3
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +6 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +6 -0
- package/lib/components/ticketBooking/utils/index.d.ts +101 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/locales.d.ts +105 -0
- package/lib/plus/clinetSearch/types.d.ts +61 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/lib/plus/webPosLogin/locales.d.ts +49 -0
- package/lib/plus/webPosLogin/types.d.ts +286 -0
- package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellPaymentList/example.d.ts +19 -0
- package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/pro/skuDetailModal/index.js +13 -2
- package/lib/pro/skuDetailModal/index.less +1 -1
- package/lib/test/setup.d.ts +1 -0
- package/package.json +3 -3
- package/es/components/checkout/plugin.d.ts +0 -2
- package/lib/components/checkout/plugin.d.ts +0 -2
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebPosLogin 组件类型定义
|
|
3
|
+
* @description WebPOS 登录流程组件,包含登录、店铺选择、设备选择三个步骤
|
|
4
|
+
*/
|
|
5
|
+
/// <reference types="react" />
|
|
6
|
+
/**
|
|
7
|
+
* 店铺数据结构
|
|
8
|
+
* @description 从租户列表接口返回的店铺信息
|
|
9
|
+
*/
|
|
10
|
+
export interface StoreItem {
|
|
11
|
+
/** 店铺ID */
|
|
12
|
+
id: number;
|
|
13
|
+
/** 租户ID */
|
|
14
|
+
tenant_id: number;
|
|
15
|
+
/** 账户ID */
|
|
16
|
+
account_id: number;
|
|
17
|
+
/** 类型 */
|
|
18
|
+
type: string;
|
|
19
|
+
/** 昵称 */
|
|
20
|
+
nickname: string;
|
|
21
|
+
/** 状态 */
|
|
22
|
+
status: string;
|
|
23
|
+
/** 创建时间 */
|
|
24
|
+
created_at?: string;
|
|
25
|
+
/** 更新时间 */
|
|
26
|
+
updated_at?: string;
|
|
27
|
+
/** 租户详情 */
|
|
28
|
+
tenant: {
|
|
29
|
+
/** 租户ID */
|
|
30
|
+
id: number;
|
|
31
|
+
/** 父租户ID */
|
|
32
|
+
tenant_id?: number;
|
|
33
|
+
/** 账户ID */
|
|
34
|
+
account_id?: number;
|
|
35
|
+
/** 类型 */
|
|
36
|
+
type?: string;
|
|
37
|
+
/** 名称(多语言) */
|
|
38
|
+
name: {
|
|
39
|
+
en?: string | null;
|
|
40
|
+
'zh-CN'?: string | null;
|
|
41
|
+
'zh-HK'?: string | null;
|
|
42
|
+
original: string;
|
|
43
|
+
};
|
|
44
|
+
/** Logo图片 */
|
|
45
|
+
logo?: string;
|
|
46
|
+
/** 图标 */
|
|
47
|
+
icon?: string;
|
|
48
|
+
/** Favicon */
|
|
49
|
+
favicon?: string;
|
|
50
|
+
/** 默认域名 */
|
|
51
|
+
default_domain: string;
|
|
52
|
+
/** 私有域名 */
|
|
53
|
+
private_domain?: string | null;
|
|
54
|
+
/** 货币代码 */
|
|
55
|
+
currency_code?: string | null;
|
|
56
|
+
/** 国家代码 */
|
|
57
|
+
country_code?: string | null;
|
|
58
|
+
/** 语言 */
|
|
59
|
+
locale?: string;
|
|
60
|
+
/** 时区 */
|
|
61
|
+
timezone?: string;
|
|
62
|
+
/** 状态 */
|
|
63
|
+
status?: string;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 设备客户端信息
|
|
68
|
+
* @description 设备绑定的客户端详情
|
|
69
|
+
*/
|
|
70
|
+
export interface DeviceClient {
|
|
71
|
+
/** 客户端ID */
|
|
72
|
+
id: number;
|
|
73
|
+
/** 店铺ID */
|
|
74
|
+
shop_id: number;
|
|
75
|
+
/** 设备ID */
|
|
76
|
+
device_id: number;
|
|
77
|
+
/** 客户端编号 */
|
|
78
|
+
number: string;
|
|
79
|
+
/** 客户端名称 */
|
|
80
|
+
name: string;
|
|
81
|
+
/** 客户端类型 */
|
|
82
|
+
type: string;
|
|
83
|
+
/** 设备型号 */
|
|
84
|
+
model?: string;
|
|
85
|
+
/** 系统版本 */
|
|
86
|
+
version?: string;
|
|
87
|
+
/** 设备详细数据 */
|
|
88
|
+
data?: {
|
|
89
|
+
battery?: {
|
|
90
|
+
is_charging?: boolean;
|
|
91
|
+
visible_percent?: string;
|
|
92
|
+
};
|
|
93
|
+
hardware?: {
|
|
94
|
+
country?: string;
|
|
95
|
+
datetime?: string;
|
|
96
|
+
language?: string;
|
|
97
|
+
timezone?: string;
|
|
98
|
+
};
|
|
99
|
+
application?: {
|
|
100
|
+
name?: string;
|
|
101
|
+
type?: string;
|
|
102
|
+
version?: string;
|
|
103
|
+
language?: string;
|
|
104
|
+
bundle_id?: string;
|
|
105
|
+
};
|
|
106
|
+
connectivity?: {
|
|
107
|
+
ip?: string;
|
|
108
|
+
type?: string;
|
|
109
|
+
wifi_details?: any[];
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
/** 最后刷新时间 */
|
|
113
|
+
refreshed_at?: string;
|
|
114
|
+
/** 创建时间 */
|
|
115
|
+
created_at?: string;
|
|
116
|
+
/** 更新时间 */
|
|
117
|
+
updated_at?: string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* 设备数据结构
|
|
121
|
+
* @description 从设备列表接口返回的设备信息
|
|
122
|
+
*/
|
|
123
|
+
export interface DeviceItem {
|
|
124
|
+
/** 设备ID */
|
|
125
|
+
id: number;
|
|
126
|
+
/** 店铺ID */
|
|
127
|
+
shop_id: number;
|
|
128
|
+
/** 设备类型 */
|
|
129
|
+
type: string;
|
|
130
|
+
/** 设备编号 */
|
|
131
|
+
number: string;
|
|
132
|
+
/** 设备名称 */
|
|
133
|
+
name: string;
|
|
134
|
+
/** 设备描述 */
|
|
135
|
+
description?: string;
|
|
136
|
+
/** 设备设置 */
|
|
137
|
+
setting?: any[];
|
|
138
|
+
/** 创建时间 */
|
|
139
|
+
created_at?: string;
|
|
140
|
+
/** 更新时间 */
|
|
141
|
+
updated_at?: string;
|
|
142
|
+
/** 绑定的客户端信息(null 表示未被使用) */
|
|
143
|
+
client?: DeviceClient | null;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* 用户信息
|
|
147
|
+
* @description 当前登录用户的基本信息
|
|
148
|
+
*/
|
|
149
|
+
export interface UserInfo {
|
|
150
|
+
/** 用户名称 */
|
|
151
|
+
name: string;
|
|
152
|
+
/** 用户头像 */
|
|
153
|
+
avatar?: string;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* 品牌区轮播项
|
|
157
|
+
* @description 左侧品牌区的轮播内容配置
|
|
158
|
+
*/
|
|
159
|
+
export interface CarouselItem {
|
|
160
|
+
/** 内容类型:图片或视频 */
|
|
161
|
+
type: 'image' | 'video';
|
|
162
|
+
/** 资源URL */
|
|
163
|
+
url: string;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* 品牌区配置
|
|
167
|
+
* @description 左侧品牌展示区域的配置
|
|
168
|
+
*/
|
|
169
|
+
export interface BrandConfig {
|
|
170
|
+
/** 轮播内容列表(图片/视频) */
|
|
171
|
+
carouselItems?: CarouselItem[];
|
|
172
|
+
/** 默认Logo(当无轮播时显示) */
|
|
173
|
+
logo?: string;
|
|
174
|
+
/** 品牌标语 */
|
|
175
|
+
slogan?: string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* 登录流程步骤
|
|
179
|
+
*/
|
|
180
|
+
export declare type LoginStep = 'login' | 'store' | 'device';
|
|
181
|
+
/**
|
|
182
|
+
* 支持的语言类型
|
|
183
|
+
*/
|
|
184
|
+
export declare type LocaleType = 'en' | 'zh-CN' | 'zh-HK';
|
|
185
|
+
/**
|
|
186
|
+
* WebPosLogin 主组件 Props
|
|
187
|
+
* @description WebPOS 登录组件的所有配置项
|
|
188
|
+
*/
|
|
189
|
+
export interface WebPosLoginCptProps {
|
|
190
|
+
/** 自定义类名 */
|
|
191
|
+
className?: string;
|
|
192
|
+
/** 自定义样式 */
|
|
193
|
+
style?: React.CSSProperties;
|
|
194
|
+
/** 背景图片URL */
|
|
195
|
+
backgroundImage?: string;
|
|
196
|
+
/** 品牌区配置 */
|
|
197
|
+
brandConfig?: BrandConfig;
|
|
198
|
+
/** 当前步骤:login-登录 | store-店铺选择 | device-设备选择 */
|
|
199
|
+
step?: LoginStep;
|
|
200
|
+
/** 是否显示返回按钮(默认 true) */
|
|
201
|
+
showBackButton?: boolean;
|
|
202
|
+
/** 店铺列表数据 */
|
|
203
|
+
storeList?: StoreItem[];
|
|
204
|
+
/** 设备列表数据 */
|
|
205
|
+
deviceList?: DeviceItem[];
|
|
206
|
+
/** 当前用户信息 */
|
|
207
|
+
userInfo?: UserInfo;
|
|
208
|
+
/** 当前选中的店铺 */
|
|
209
|
+
selectedStore?: StoreItem;
|
|
210
|
+
/** 上次使用的店铺ID(用于显示 Last used 标签) */
|
|
211
|
+
lastUsedStoreId?: number;
|
|
212
|
+
/** 上次使用的设备ID(用于显示 Last used 标签) */
|
|
213
|
+
lastUsedDeviceId?: number;
|
|
214
|
+
/** 语言设置 */
|
|
215
|
+
locale?: LocaleType;
|
|
216
|
+
/** 加载状态 */
|
|
217
|
+
loading?: boolean;
|
|
218
|
+
/** 登录配置 */
|
|
219
|
+
loginConfig?: any;
|
|
220
|
+
/** 店铺选择回调 */
|
|
221
|
+
onStoreSelect?: (store: StoreItem) => void;
|
|
222
|
+
/** 设备选择回调 */
|
|
223
|
+
onDeviceSelect?: (device: DeviceItem) => void;
|
|
224
|
+
/** 切换账号回调 */
|
|
225
|
+
onChangeAccount?: () => void;
|
|
226
|
+
/** 切换店铺回调 */
|
|
227
|
+
onChangeStore?: () => void;
|
|
228
|
+
/** 返回上一步回调 */
|
|
229
|
+
onBack?: () => void;
|
|
230
|
+
/** 登录成功回调 */
|
|
231
|
+
onLoginSuccess?: (data: any) => void;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* BrandPanel 品牌区组件 Props
|
|
235
|
+
*/
|
|
236
|
+
export interface BrandPanelProps {
|
|
237
|
+
/** 品牌配置 */
|
|
238
|
+
config?: BrandConfig;
|
|
239
|
+
/** 自定义类名 */
|
|
240
|
+
className?: string;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* SelectStore 店铺选择组件 Props
|
|
244
|
+
*/
|
|
245
|
+
export interface SelectStoreProps {
|
|
246
|
+
/** 店铺列表 */
|
|
247
|
+
storeList?: StoreItem[];
|
|
248
|
+
/** 语言 */
|
|
249
|
+
locale?: LocaleType;
|
|
250
|
+
/** 加载状态 */
|
|
251
|
+
loading?: boolean;
|
|
252
|
+
/** 上次使用的店铺ID */
|
|
253
|
+
lastUsedStoreId?: number;
|
|
254
|
+
/** 选择店铺回调 */
|
|
255
|
+
onSelect?: (store: StoreItem) => void;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* SelectDevice 设备选择组件 Props
|
|
259
|
+
*/
|
|
260
|
+
export interface SelectDeviceProps {
|
|
261
|
+
/** 设备列表 */
|
|
262
|
+
deviceList?: DeviceItem[];
|
|
263
|
+
/** 语言 */
|
|
264
|
+
locale?: LocaleType;
|
|
265
|
+
/** 加载状态 */
|
|
266
|
+
loading?: boolean;
|
|
267
|
+
/** 选择设备回调 */
|
|
268
|
+
onSelect?: (device: DeviceItem) => void;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* UserFooter 底部用户信息组件 Props
|
|
272
|
+
*/
|
|
273
|
+
export interface UserFooterProps {
|
|
274
|
+
/** 用户信息 */
|
|
275
|
+
userInfo?: UserInfo;
|
|
276
|
+
/** 当前选中的店铺 */
|
|
277
|
+
selectedStore?: StoreItem;
|
|
278
|
+
/** 当前步骤 */
|
|
279
|
+
step?: LoginStep;
|
|
280
|
+
/** 语言 */
|
|
281
|
+
locale?: LocaleType;
|
|
282
|
+
/** 切换账号回调 */
|
|
283
|
+
onChangeAccount?: () => void;
|
|
284
|
+
/** 切换店铺回调 */
|
|
285
|
+
onChangeStore?: () => void;
|
|
286
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './PhoneInput.less';
|
|
3
|
+
/** 国家/地区配置(后端返回格式) */
|
|
4
|
+
export interface CountryOption {
|
|
5
|
+
/** 国家/地区名称 */
|
|
6
|
+
name: string;
|
|
7
|
+
/** 国家/地区代码 */
|
|
8
|
+
code: string;
|
|
9
|
+
/** 区号(不带+号) */
|
|
10
|
+
calling_code: string;
|
|
11
|
+
/** 货币代码 */
|
|
12
|
+
currency_code: string;
|
|
13
|
+
}
|
|
14
|
+
/** 手机号对象格式 */
|
|
15
|
+
export interface PhoneValueObject {
|
|
16
|
+
/** 手机号(不含区号) */
|
|
17
|
+
phone: string;
|
|
18
|
+
/** 国家区号(不带+号) */
|
|
19
|
+
country_calling_code: string;
|
|
20
|
+
}
|
|
21
|
+
/** 值格式类型 */
|
|
22
|
+
export declare type ValueFormat = 'string' | 'object';
|
|
23
|
+
/** 手机号输入组件属性 */
|
|
24
|
+
export interface PhoneInputProps {
|
|
25
|
+
/** 完整的手机号值(包含区号),格式:+86138****,或 +1555****(字符串模式) */
|
|
26
|
+
value?: string | PhoneValueObject;
|
|
27
|
+
/** 值变化回调 */
|
|
28
|
+
onChange?: (value: string | PhoneValueObject) => void;
|
|
29
|
+
/** Placeholder */
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
/** 大小 */
|
|
32
|
+
size?: 'large' | 'middle' | 'small';
|
|
33
|
+
/** 是否禁用 */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** 自定义类名 */
|
|
36
|
+
className?: string;
|
|
37
|
+
/** 可用的国家/地区列表 */
|
|
38
|
+
countries?: CountryOption[];
|
|
39
|
+
/** 默认国家/地区代码 */
|
|
40
|
+
defaultCountry?: string;
|
|
41
|
+
/** 值格式:'string' 返回 "+8613800138000",'object' 返回 { phone: "13800138000", country_calling_code: "86" } */
|
|
42
|
+
valueFormat?: ValueFormat;
|
|
43
|
+
/** 键盘按键事件回调 */
|
|
44
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 手机号输入组件
|
|
48
|
+
*
|
|
49
|
+
* 支持国际区号选择和手机号输入
|
|
50
|
+
* 值格式:+区号+手机号,例如:+8613800138000 或 +15551234567
|
|
51
|
+
*/
|
|
52
|
+
declare function PhoneInput({ value, onChange, placeholder, onKeyDown, size, disabled, className, countries, defaultCountry, valueFormat, }: PhoneInputProps): JSX.Element;
|
|
53
|
+
export default PhoneInput;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { RegisterStep, RegisterFlowData, RegisterFlowConfig, getStepDefinition } from '../shared/registerFlow';
|
|
2
|
+
import type { AuthMethodType } from '../shared/types';
|
|
3
|
+
export interface UseRegisterFlowOptions {
|
|
4
|
+
/** 账号类型 */
|
|
5
|
+
accountType: AuthMethodType;
|
|
6
|
+
/** 邮箱配置 */
|
|
7
|
+
emailConfig?: {
|
|
8
|
+
enable_email?: boolean;
|
|
9
|
+
require_email_verification?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/** 手机配置 */
|
|
12
|
+
phoneConfig?: {
|
|
13
|
+
enable_phone_number?: boolean;
|
|
14
|
+
require_phone_verification?: boolean;
|
|
15
|
+
};
|
|
16
|
+
/** 初始账号 */
|
|
17
|
+
initialAccount?: string;
|
|
18
|
+
/** 步骤变化回调 */
|
|
19
|
+
onStepChange?: (step: RegisterStep, data: RegisterFlowData) => void;
|
|
20
|
+
/** 完成回调 */
|
|
21
|
+
onComplete?: (data: RegisterFlowData) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface UseRegisterFlowReturn {
|
|
24
|
+
/** 当前流程数据 */
|
|
25
|
+
flowData: RegisterFlowData;
|
|
26
|
+
/** 当前步骤定义 */
|
|
27
|
+
currentStepDef: ReturnType<typeof getStepDefinition>;
|
|
28
|
+
/** 流程配置 */
|
|
29
|
+
flowConfig: RegisterFlowConfig;
|
|
30
|
+
/** 跳转到指定步骤 */
|
|
31
|
+
goToStep: (step: RegisterStep, updates?: Partial<RegisterFlowData>) => void;
|
|
32
|
+
/** 更新流程数据 */
|
|
33
|
+
updateFlowData: (updates: Partial<RegisterFlowData>) => void;
|
|
34
|
+
/** 重置流程 */
|
|
35
|
+
resetFlow: () => void;
|
|
36
|
+
/** 处理错误 */
|
|
37
|
+
handleError: (code: string, message: string, targetStep?: RegisterStep) => void;
|
|
38
|
+
}
|
|
39
|
+
export declare function useRegisterFlow(options: UseRegisterFlowOptions): UseRegisterFlowReturn;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AuthMethodType } from '../shared/types';
|
|
2
|
+
/**
|
|
3
|
+
* 注册方式相关的逻辑hook
|
|
4
|
+
*/
|
|
5
|
+
export declare function useRegistrationMethods(isRegistrationMethodEnabled: (type: AuthMethodType) => boolean): {
|
|
6
|
+
enabledMethods: AuthMethodType[];
|
|
7
|
+
shouldShowDivider: boolean;
|
|
8
|
+
hasEmailAndPhone: boolean;
|
|
9
|
+
};
|
|
@@ -0,0 +1,232 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.comprehensive-search.placeholder': string;
|
|
4
|
+
'pisell2.text.search': string;
|
|
5
|
+
};
|
|
6
|
+
'zh-CN': {
|
|
7
|
+
'pisell2.comprehensive-search.placeholder': string;
|
|
8
|
+
'pisell2.text.search': string;
|
|
9
|
+
};
|
|
10
|
+
'zh-HK': {
|
|
11
|
+
'pisell2.comprehensive-search.placeholder': string;
|
|
12
|
+
'pisell2.text.search': string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PisellPaymentList 使用示例
|
|
3
|
+
*
|
|
4
|
+
* 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
|
|
5
|
+
* 包括如何通过 Context 访问父组件配置
|
|
6
|
+
*/
|
|
7
|
+
export declare const BasicExample: () => JSX.Element;
|
|
8
|
+
export declare const ChildrenExample: () => JSX.Element;
|
|
9
|
+
export declare const CustomItemExample: () => JSX.Element;
|
|
10
|
+
export declare const MethodConfigExample: () => JSX.Element;
|
|
11
|
+
export declare const FullFeatureExample: () => JSX.Element;
|
|
12
|
+
declare const _default: {
|
|
13
|
+
BasicExample: () => JSX.Element;
|
|
14
|
+
ChildrenExample: () => JSX.Element;
|
|
15
|
+
CustomItemExample: () => JSX.Element;
|
|
16
|
+
MethodConfigExample: () => JSX.Element;
|
|
17
|
+
FullFeatureExample: () => JSX.Element;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './PisellPriceKeyboardPopover.less';
|
|
3
|
+
import { PisellPriceKeyboardPopoverProps, PisellPriceKeyboardPopoverRef } from './types';
|
|
4
|
+
declare const PisellPriceKeyboardPopover: React.ForwardRefExoticComponent<PisellPriceKeyboardPopoverProps & React.RefAttributes<PisellPriceKeyboardPopoverRef>>;
|
|
5
|
+
export default PisellPriceKeyboardPopover;
|