@anker-in/ui 0.1.11 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -107,6 +107,10 @@ interface BookingSuccessPageData {
107
107
  interface BookingFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSubmit'> {
108
108
  layoutClassName?: string;
109
109
  handleBookingSuccess?: (token?: string) => void;
110
+ /**
111
+ * 问卷提交时的回调函数(可用于订阅操作等)
112
+ */
113
+ onQuestionnaireSubmit?: (responses: Record<string, any>) => void | Promise<void>;
110
114
  /**
111
115
  * API 配置
112
116
  */
@@ -140,7 +144,7 @@ type TimeslotStatus = 'available' | 'full' | 'disabled';
140
144
  type DemoRoomType = 'flagship' | 'standard' | 'popup';
141
145
  type DemoRoomStatus = 'enabled' | 'disabled';
142
146
  type BookingStatus = 'pending' | 'checked_in' | 'completed' | 'cancelled';
143
- type QuestionType = 'text' | 'email' | 'tel' | 'phone' | 'radio' | 'checkbox' | 'textarea' | 'select';
147
+ type QuestionType = 'text' | 'email' | 'tel' | 'phone' | 'radio' | 'radio_with_other' | 'checkbox' | 'textarea' | 'select';
144
148
  interface Timeslot {
145
149
  id: number;
146
150
  start_time: string;
package/dist/index.d.ts CHANGED
@@ -107,6 +107,10 @@ interface BookingSuccessPageData {
107
107
  interface BookingFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSubmit'> {
108
108
  layoutClassName?: string;
109
109
  handleBookingSuccess?: (token?: string) => void;
110
+ /**
111
+ * 问卷提交时的回调函数(可用于订阅操作等)
112
+ */
113
+ onQuestionnaireSubmit?: (responses: Record<string, any>) => void | Promise<void>;
110
114
  /**
111
115
  * API 配置
112
116
  */
@@ -140,7 +144,7 @@ type TimeslotStatus = 'available' | 'full' | 'disabled';
140
144
  type DemoRoomType = 'flagship' | 'standard' | 'popup';
141
145
  type DemoRoomStatus = 'enabled' | 'disabled';
142
146
  type BookingStatus = 'pending' | 'checked_in' | 'completed' | 'cancelled';
143
- type QuestionType = 'text' | 'email' | 'tel' | 'phone' | 'radio' | 'checkbox' | 'textarea' | 'select';
147
+ type QuestionType = 'text' | 'email' | 'tel' | 'phone' | 'radio' | 'radio_with_other' | 'checkbox' | 'textarea' | 'select';
144
148
  interface Timeslot {
145
149
  id: number;
146
150
  start_time: string;