@anker-in/ui 0.1.10 → 0.1.12

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;
@@ -158,6 +162,7 @@ interface DemoRoom {
158
162
  code: string;
159
163
  name: string;
160
164
  description: string;
165
+ equipment?: string[];
161
166
  address: string;
162
167
  location?: DemoRoomLocation;
163
168
  type: DemoRoomType;
@@ -213,7 +218,7 @@ interface Booking {
213
218
  demoroom_code: string;
214
219
  demoroom_name?: string;
215
220
  address?: string;
216
- equipment?: string;
221
+ equipment?: string[];
217
222
  latitude?: number;
218
223
  longitude?: number;
219
224
  timezone?: string;
@@ -319,7 +324,7 @@ interface BookingSuccessProps {
319
324
  bookingData?: Booking;
320
325
  token?: string;
321
326
  apiConfig?: DemoRoomApiConfig;
322
- onScheduleAgain?: () => void;
327
+ onScheduleAgain?: (demoRoomCode: string) => void;
323
328
  onCancelSuccess?: (booking: Booking) => void;
324
329
  className?: string;
325
330
  /**
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;
@@ -158,6 +162,7 @@ interface DemoRoom {
158
162
  code: string;
159
163
  name: string;
160
164
  description: string;
165
+ equipment?: string[];
161
166
  address: string;
162
167
  location?: DemoRoomLocation;
163
168
  type: DemoRoomType;
@@ -213,7 +218,7 @@ interface Booking {
213
218
  demoroom_code: string;
214
219
  demoroom_name?: string;
215
220
  address?: string;
216
- equipment?: string;
221
+ equipment?: string[];
217
222
  latitude?: number;
218
223
  longitude?: number;
219
224
  timezone?: string;
@@ -319,7 +324,7 @@ interface BookingSuccessProps {
319
324
  bookingData?: Booking;
320
325
  token?: string;
321
326
  apiConfig?: DemoRoomApiConfig;
322
- onScheduleAgain?: () => void;
327
+ onScheduleAgain?: (demoRoomCode: string) => void;
323
328
  onCancelSuccess?: (booking: Booking) => void;
324
329
  className?: string;
325
330
  /**