@forgebuild/hotal-ui 0.9.0 → 0.10.0

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.ts CHANGED
@@ -31,17 +31,25 @@ export interface BookingDetails {
31
31
  contactEmail?: string;
32
32
  contactPhone?: string;
33
33
  notes?: string;
34
+ customFieldValues?: Record<string, string>;
34
35
  stripePaymentIntentId: string;
35
36
  clerkUserId?: string;
36
37
  }
37
38
 
38
39
  export type BookResult = { ok: true } | { ok: false; status: number; message: string };
39
40
 
41
+ export interface BookingFlowCustomField {
42
+ key: string;
43
+ label: string;
44
+ options: string[];
45
+ }
46
+
40
47
  export interface BookingFlowElement extends HTMLElement {
41
48
  date?: string;
42
49
  guests?: number;
43
50
  preferredTime?: string;
44
51
  closedWeekdays?: number[];
52
+ customFields?: BookingFlowCustomField[];
45
53
  fetchAvailableDates?: (partySize: number) => Promise<string[]>;
46
54
  searchSlots?: (date: string, guests: number) => Promise<BookingSlot[]>;
47
55
  createPaymentIntent?: (date: string, guests: number) => Promise<PaymentIntentResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgebuild/hotal-ui",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Reusable Svelte UI components for booking and reservation experiences.",
5
5
  "type": "module",
6
6
  "license": "MIT",