@pisell/private-materials 6.3.145 → 6.3.147

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/build/lowcode.zip +0 -0
  8. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Footer/index.js +12 -6
  12. package/es/components/appointmentBooking/components/Form/index.js +15 -2
  13. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/context.js +18 -11
  15. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  16. package/es/components/booking/forms/footer.d.ts +1 -0
  17. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  18. package/es/components/booking/info/date/index.d.ts +0 -1
  19. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  20. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  21. package/es/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
  22. package/es/components/ecocup/components/CupActionList/index.d.ts +1 -0
  23. package/es/components/ecocup/components/CupActionModal/index.d.ts +1 -0
  24. package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  25. package/es/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
  26. package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
  27. package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  28. package/es/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  29. package/es/components/ecocup/components/SearchBar/index.d.ts +1 -0
  30. package/es/components/ecocup/components/SettingModal/index.d.ts +1 -0
  31. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
  32. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  33. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  34. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  35. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  36. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  37. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  38. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  39. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  40. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  41. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  42. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  43. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  44. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  45. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  46. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  47. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  48. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  49. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  50. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  51. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  52. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  53. package/es/plus/orderList/components/HandleActions.d.ts +1 -0
  54. package/es/plus/orderList/components/QuickFilter.d.ts +1 -0
  55. package/es/plus/orderList/components/Reset.d.ts +1 -0
  56. package/es/plus/orderList/components/Toolbar.d.ts +1 -0
  57. package/es/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
  58. package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -0
  59. package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  60. package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +1 -0
  61. package/es/plus/pisellSalesManagement/config/booking.d.ts +1 -0
  62. package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
  63. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  64. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  65. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  66. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  67. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  68. package/es/pro/Login2.0/components/PhoneInput.js +1 -1
  69. package/es/pro/Login2.0/shared/registerFlow.d.ts +3 -2
  70. package/es/pro/Login2.0/steps/CodeInput.js +6 -1
  71. package/es/pro/Login2.0/steps/WaitEmailLink.js +2 -1
  72. package/es/pro/Selector/demo.d.ts +1 -0
  73. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  74. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  75. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  76. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  77. package/lib/components/appointmentBooking/components/Footer/index.js +5 -5
  78. package/lib/components/appointmentBooking/components/Form/index.js +9 -2
  79. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  80. package/lib/components/appointmentBooking/context.js +4 -1
  81. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  82. package/lib/components/booking/forms/footer.d.ts +1 -0
  83. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  84. package/lib/components/booking/info/date/index.d.ts +0 -1
  85. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  86. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  87. package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
  88. package/lib/components/ecocup/components/CupActionList/index.d.ts +1 -0
  89. package/lib/components/ecocup/components/CupActionModal/index.d.ts +1 -0
  90. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  91. package/lib/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
  92. package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
  93. package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  94. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  95. package/lib/components/ecocup/components/SearchBar/index.d.ts +1 -0
  96. package/lib/components/ecocup/components/SettingModal/index.d.ts +1 -0
  97. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
  98. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  99. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  100. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  101. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  102. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  103. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  104. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  105. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  106. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  107. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  108. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  109. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  110. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  111. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  112. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  113. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  114. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  115. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  116. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  117. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  118. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  119. package/lib/plus/orderList/components/HandleActions.d.ts +1 -0
  120. package/lib/plus/orderList/components/QuickFilter.d.ts +1 -0
  121. package/lib/plus/orderList/components/Reset.d.ts +1 -0
  122. package/lib/plus/orderList/components/Toolbar.d.ts +1 -0
  123. package/lib/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
  124. package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -0
  125. package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  126. package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +1 -0
  127. package/lib/plus/pisellSalesManagement/config/booking.d.ts +1 -0
  128. package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
  129. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  130. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  131. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  132. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
  133. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  134. package/lib/pro/Login2.0/components/PhoneInput.js +1 -0
  135. package/lib/pro/Login2.0/shared/registerFlow.d.ts +3 -2
  136. package/lib/pro/Login2.0/steps/CodeInput.js +6 -1
  137. package/lib/pro/Login2.0/steps/WaitEmailLink.js +2 -1
  138. package/lib/pro/Selector/demo.d.ts +1 -0
  139. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  140. package/package.json +1 -1
@@ -43,10 +43,10 @@ var import_Total = __toESM(require("../Cart/Item/Total"));
43
43
  var import_index = require("./index.less");
44
44
  var Footer = ({ onNext, isOpen }) => {
45
45
  var _a;
46
- const { carts, currentStep, isErrorHolder, setIsErrorHolder } = (0, import_context.useAppointmentBookingContext)();
46
+ const { carts, currentStep, isErrorHolder, setIsErrorHolder, cartDrawerOpen, setCartDrawerOpen } = (0, import_context.useAppointmentBookingContext)();
47
47
  const [open, setOpen] = (0, import_react2.useState)(false);
48
48
  (0, import_react.useEffect)(() => {
49
- setOpen(isErrorHolder || false);
49
+ setCartDrawerOpen(isErrorHolder || false);
50
50
  }, [(_a = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a.key, isErrorHolder]);
51
51
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
52
52
  import_materials.SectionFooters,
@@ -57,7 +57,7 @@ var Footer = ({ onNext, isOpen }) => {
57
57
  import_materials.Button,
58
58
  {
59
59
  size: "large",
60
- onClick: () => setOpen(true),
60
+ onClick: () => setCartDrawerOpen(true),
61
61
  className: "section-footer-btn"
62
62
  },
63
63
  /* @__PURE__ */ import_react.default.createElement(import_materials.Image, { src: import_shopping_cart.default, preview: false })
@@ -66,9 +66,9 @@ var Footer = ({ onNext, isOpen }) => {
66
66
  ), /* @__PURE__ */ import_react.default.createElement(
67
67
  import_Cart.default,
68
68
  {
69
- open,
69
+ open: cartDrawerOpen,
70
70
  onCancel: () => {
71
- setOpen(false);
71
+ setCartDrawerOpen(false);
72
72
  setIsErrorHolder(false);
73
73
  },
74
74
  onNext
@@ -42,7 +42,7 @@ var import_utils3 = require("../../utils");
42
42
  var import_index = require("./index.less");
43
43
  var Form = (0, import_react.forwardRef)((props, ref) => {
44
44
  const manualRef = (0, import_react.useRef)();
45
- const { appointmentBooking, setLoading, currentStepParams, carts } = (0, import_context.useAppointmentBookingContext)();
45
+ const { appointmentBooking, setLoading, currentStepParams, carts, cartDrawerOpen, setCartDrawerOpen } = (0, import_context.useAppointmentBookingContext)();
46
46
  const { getResourceList } = (0, import_hooks.useAppointmentBookingResource)();
47
47
  const { setOtherData, getOtherData, isFormSubject } = (0, import_hooks.useAppointmentBookingSetting)();
48
48
  const { nextStep } = (0, import_hooks.useAppointmentBookingStep)();
@@ -86,8 +86,15 @@ var Form = (0, import_react.forwardRef)((props, ref) => {
86
86
  }, [appointmentBoard == null ? void 0 : appointmentBoard.resource_form_id]);
87
87
  const updateFormStatus = (status) => {
88
88
  if (status === "error") {
89
- (0, import_utils3.nextStepLog)(utils, "表单内部错误");
90
89
  setLoading(false);
90
+ (0, import_utils3.nextStepLog)(utils, "表单内部错误, 请填写完整表单", [
91
+ { key: "isMobile", value: JSON.stringify(utils == null ? void 0 : utils.isMobile()) },
92
+ { key: "cartDrawerOpen", value: JSON.stringify(cartDrawerOpen) }
93
+ ]);
94
+ console.log("isErrorHolder11", utils, utils == null ? void 0 : utils.isMobile(), cartDrawerOpen);
95
+ if (cartDrawerOpen) {
96
+ setCartDrawerOpen(false);
97
+ }
91
98
  }
92
99
  };
93
100
  const setFormStorage = (values) => {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const GuestOptionsModal: (props: any) => JSX.Element;
3
4
  export default GuestOptionsModal;
@@ -56,6 +56,7 @@ var AppointmentBookingProvider = ({
56
56
  const [currentResource, setCurrentResource] = (0, import_react.useState)(null);
57
57
  const [loading, setLoading] = (0, import_react.useState)(false);
58
58
  const [isErrorHolder, setIsErrorHolder] = (0, import_react.useState)(false);
59
+ const [cartDrawerOpen, setCartDrawerOpen] = (0, import_react.useState)(false);
59
60
  const [tasksManager] = (0, import_react.useState)(() => new import_tasks.TasksManager());
60
61
  const [policyParams, setPolicyParams] = (0, import_react.useState)(null);
61
62
  const [currentSelectedResources, setCurrentSelectedResources] = (0, import_react.useState)();
@@ -168,7 +169,9 @@ var AppointmentBookingProvider = ({
168
169
  closePolicy,
169
170
  currentStepParams,
170
171
  currentSelectedResources,
171
- setCurrentSelectedResources
172
+ setCurrentSelectedResources,
173
+ cartDrawerOpen,
174
+ setCartDrawerOpen
172
175
  };
173
176
  return /* @__PURE__ */ import_react.default.createElement(AppointmentBookingContext.Provider, { value }, children);
174
177
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DepositModal: (props: any) => JSX.Element;
3
4
  export default DepositModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface FooterProps {
2
3
  state: any;
3
4
  reload: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SendModalValues } from './index';
2
3
  declare const useSendModal: (bookingId?: number) => {
3
4
  open: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
4
3
  declare const DateCom: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface InfoProps {
3
4
  title?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  visible: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ECupActionType, ICup, ICustomer } from '../../types';
2
3
  import './index.less';
3
4
  interface IProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ICustomer, ICup, ECupActionType } from '../../types';
3
4
  interface IProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  type: 'rentInfo' | 'markInfo' | 'belongInfo' | 'otherBelongInfo';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ECupScanStatus, ICup } from '../../types';
2
3
  import './index.less';
3
4
  interface IProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ICup, ICustomer } from '../../types';
3
4
  interface IProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ICustomer } from '../../types';
3
4
  interface IProps extends Partial<ICustomer> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface MoreDropdownProps {
2
3
  locales: any;
3
4
  onClick?: (key: string) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface SearchBarProps {
3
4
  scanListenerKey: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  visible: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  interface IProps {
3
4
  onClickAction: (type: string, record: any) => void;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  export declare const useSummary: (locales: any, staticsData: any, isPartner?: boolean) => () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface DepositProps {
2
3
  showTitle?: boolean;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: ({ open, onCancel }: any) => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EmptyHolderModal: (props: any) => JSX.Element;
3
4
  export default EmptyHolderModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Event: () => JSX.Element;
3
4
  export default Event;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: () => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Information: () => JSX.Element;
3
4
  export default Information;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const InformationOptionsModal: (props: any) => JSX.Element;
3
4
  export default InformationOptionsModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const OrderProductModal: (props: any) => JSX.Element;
3
4
  export default OrderProductModal;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const RemoveOptionConfirmModal: (props: any) => JSX.Element;
2
3
  export default RemoveOptionConfirmModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Resource: () => JSX.Element;
3
4
  export default Resource;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WeekItem: (props: any) => JSX.Element;
3
4
  export default WeekItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingOptions: (props: {
2
3
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ScheduleTimeItem: ({ timeList }: any) => JSX.Element;
3
4
  export default ScheduleTimeItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
3
4
  export default SetupForm;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface CustomerListProps {
3
4
  value: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useAddService: (id?: number, type?: string) => JSX.Element | null;
2
3
  export default useAddService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
2
3
  import './index.less';
3
4
  interface ModalProps extends AntModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const HandleActions: (props: {
2
3
  locales: any;
3
4
  __id?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const QuickFilter: (props: {
2
3
  locales: any;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Reset: (props: {
2
3
  locales: any;
3
4
  setValueType: (value: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Toolbar: (props: {
2
3
  locales: any;
3
4
  clearSelectedData: () => void;
@@ -6,8 +6,8 @@ export declare const RESERVATION_DEFAULT_FLOOR_PLAN_ID = 1;
6
6
  export type { PostShopFloorPlanBody, PutShopFloorPlanBody, ShopFloorPlanByCodeRequestOptions, ShopFloorPlanDetail, ShopFloorPlanLayoutItem, };
7
7
  export { buildFloorPlanPutBody, floorMapSavedConfigToRemotePatch, inferCanvasSizeFromScene, mergeFloorPlanViewRemote, parseLayoutFieldToViewConfigPatch, pickFloorPlanDetail, sceneElementsToShopLayout, viewConfigToLayoutPayload, isShopFloorPlanNotFoundResponse, isHttpNotFoundError, } from '@pisell/materials';
8
8
  export declare function isFloorPlanDuplicateCodeError(err: unknown): boolean;
9
- export declare const getShopFloorPlanByCode: (code: string, subscribe?: ShopFloorPlanByCodeRequestOptions | undefined) => Promise<ShopFloorPlanDetail | null>;
10
- export declare const postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<ShopFloorPlanDetail | null>;
9
+ export declare const getShopFloorPlanByCode: (code: string, subscribe?: any) => Promise<any>;
10
+ export declare const postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<any>;
11
11
  export declare const putShopFloorPlan: (id: number, body: PutShopFloorPlanBody) => Promise<unknown>;
12
12
  export declare const unsubscribeShopFloorPlanCodeQuery: (subscriberId: string) => Promise<void>;
13
13
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { FloorMapViewConfig } from '@pisell/materials';
2
3
  export declare function useReservationFloorPlan(options: {
3
4
  resolvedFloorPlanId: number | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const IconClock: () => JSX.Element;
2
3
  export declare const IconUsers: () => JSX.Element;
3
4
  export declare const IconWarn: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ReservationScheduleBandValue } from '@pisell/materials';
2
3
  /**
3
4
  * @returns `schedule` 绑定日程带 UI;`debouncedSchedule` 绑定 sales / patch / 外部 onSearch。
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const getBookingStatusMap: () => Record<string, string>;
2
3
  export declare const BOOKING_STATUS_COLOR_MAP: Record<string, string>;
3
4
  export declare const getBookingPlatformMap: () => Record<string, string>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const MembersField: (props: {
3
4
  id?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  declare const VertifyEmail: (props: {
3
4
  email: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * 单规格商品卡片,点击后需要拉起弹窗展示具体的规格信息
3
3
  */
4
+ /// <reference types="react" />
4
5
  import { RenderItemProps } from '../../../../pro/Selector/types';
5
6
  import './index.less';
6
7
  declare const OptionsCard: (props: RenderItemProps & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const TitleExtra: (props: any) => JSX.Element;
3
4
  export default TitleExtra;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface TimelineSectionProps {
3
4
  code: string;
@@ -137,6 +137,7 @@ function PhoneInput({
137
137
  const effectivePlaceholder = placeholder || import_utils.locales.getText("pisell-phone-input-placeholder");
138
138
  const normalizedValue = (0, import_react.useMemo)(() => {
139
139
  if (!value) return "";
140
+ console.log("value", value);
140
141
  if (typeof value === "object" && "phone" in value) {
141
142
  const { phone, country_calling_code } = value;
142
143
  return `+${country_calling_code}${phone}`;
@@ -2,6 +2,7 @@
2
2
  * 注册流程配置和状态管理
3
3
  * 支持多种验证方式的不同步骤流程
4
4
  */
5
+ import type { PhoneValueObject } from './types';
5
6
  /** 注册步骤类型 */
6
7
  export declare enum RegisterStep {
7
8
  /** 初始表单 - 输入账号密码 */
@@ -66,8 +67,8 @@ export interface RegisterStepDefinition {
66
67
  export interface RegisterFlowData {
67
68
  /** 当前步骤 */
68
69
  currentStep: RegisterStep;
69
- /** 账号(邮箱或手机号) */
70
- account: string;
70
+ /** 账号(邮箱字符串或手机号对象) */
71
+ account: string | PhoneValueObject;
71
72
  /** 账号类型 */
72
73
  accountType: 'email' | 'phone';
73
74
  /** 密码(如果在第一步就输入了) */
@@ -36,6 +36,11 @@ var import_react = __toESM(require("react"));
36
36
  var import_materials = require("@pisell/materials");
37
37
  var import_utils = require("@pisell/utils");
38
38
  var import_iconfont = __toESM(require("@pisell/materials/src/components/iconfont"));
39
+ function formatDisplayAccount(account) {
40
+ if (!account) return "";
41
+ if (typeof account === "string") return account;
42
+ return `+${account.country_calling_code}${account.phone}`;
43
+ }
39
44
  function CodeInput({
40
45
  flowData,
41
46
  codeLength = 4,
@@ -125,7 +130,7 @@ function CodeInput({
125
130
  };
126
131
  const title = flowData.accountType === "email" ? import_utils.locales.getText("pisell-register2-check-email-title") : import_utils.locales.getText("pisell-register2-check-phone-title");
127
132
  const description = flowData.accountType === "email" ? import_utils.locales.getText("pisell-register2-check-email-desc") : import_utils.locales.getText("pisell-register2-check-phone-desc");
128
- const displayAccount = flowData.account;
133
+ const displayAccount = formatDisplayAccount(flowData.account);
129
134
  const noReceiveText = flowData.accountType === "email" ? import_utils.locales.getText("pisell-register2-no-email-received") : import_utils.locales.getText("pisell-register2-no-message-received");
130
135
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-container code-input-page" }, /* @__PURE__ */ import_react.default.createElement("button", { className: "back-button-top", onClick: onBack, "aria-label": "Go back" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-arrow-left" })), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ import_react.default.createElement("h2", { className: "register-step-title" }, title), /* @__PURE__ */ import_react.default.createElement("p", { className: "register-step-desc" }, description, /* @__PURE__ */ import_react.default.createElement("br", null), displayAccount), /* @__PURE__ */ import_react.default.createElement("div", { className: "code-input-group", onPaste: handlePaste }, code.map((digit, index) => /* @__PURE__ */ import_react.default.createElement(
131
136
  "input",
@@ -44,7 +44,8 @@ function WaitEmailLink({
44
44
  verificationMethod
45
45
  }) {
46
46
  const canResend = countdown === 0;
47
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-container" }, onBack && /* @__PURE__ */ import_react.default.createElement("button", { className: "back-button-top", onClick: onBack, "aria-label": "Go back" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-arrow-left" })), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-title-verify-email" }, import_utils.locales.getText("pisell-register2-verify-email-title")), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-desc-verify-email" }, import_utils.locales.getText("pisell-register2-verify-email-desc")), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-email-display" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "email-text" }, flowData.account), onEditEmail && /* @__PURE__ */ import_react.default.createElement(
47
+ const displayEmail = typeof flowData.account === "string" ? flowData.account : "";
48
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-container" }, onBack && /* @__PURE__ */ import_react.default.createElement("button", { className: "back-button-top", onClick: onBack, "aria-label": "Go back" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-arrow-left" })), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-title-verify-email" }, import_utils.locales.getText("pisell-register2-verify-email-title")), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-desc-verify-email" }, import_utils.locales.getText("pisell-register2-verify-email-desc")), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-email-display" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "email-text" }, displayEmail), onEditEmail && /* @__PURE__ */ import_react.default.createElement(
48
49
  "button",
49
50
  {
50
51
  className: "edit-email-btn",
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectorDemo: () => JSX.Element;
2
3
  export default SelectorDemo;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PopoverProps } from 'antd';
2
3
  import './index.less';
3
4
  interface PisellPhoneKeyboardProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.3.145",
3
+ "version": "6.3.147",
4
4
  "scripts": {
5
5
  "dev": "father dev",
6
6
  "build": "father build",