@forgebuild/hotal-ui 0.5.0 → 0.7.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/hotal-ui.js +8879 -2476
- package/dist/index.d.ts +48 -0
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -89,15 +89,63 @@ export interface MenuSectionElement extends HTMLElement {
|
|
|
89
89
|
headingAlign?: 'center' | 'left';
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
export interface EventInquiry {
|
|
93
|
+
id: string;
|
|
94
|
+
name: string;
|
|
95
|
+
email: string;
|
|
96
|
+
phone?: string | null;
|
|
97
|
+
event_date: string;
|
|
98
|
+
guests?: number | null;
|
|
99
|
+
event_type?: string | null;
|
|
100
|
+
format?: string | null;
|
|
101
|
+
message?: string | null;
|
|
102
|
+
status: string;
|
|
103
|
+
created_at: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface EventInquiriesFeedElement extends HTMLElement {
|
|
107
|
+
channelName?: string;
|
|
108
|
+
ablyAuthUrl?: string;
|
|
109
|
+
fetchInquiries?: () => Promise<EventInquiry[]>;
|
|
110
|
+
maxItems?: number;
|
|
111
|
+
emptyLabel?: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface EventInquiryPayload {
|
|
115
|
+
name: string;
|
|
116
|
+
email: string;
|
|
117
|
+
phone: string;
|
|
118
|
+
date: string;
|
|
119
|
+
guests: number;
|
|
120
|
+
eventType: string;
|
|
121
|
+
format: string;
|
|
122
|
+
message: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export type SubmitInquiryResult = { ok: true } | { ok: false; error?: string };
|
|
126
|
+
|
|
127
|
+
export interface EventContactFormElement extends HTMLElement {
|
|
128
|
+
heading?: string;
|
|
129
|
+
tagline?: string;
|
|
130
|
+
description?: string;
|
|
131
|
+
eventTypes?: string[];
|
|
132
|
+
minGuests?: number;
|
|
133
|
+
submitNote?: string;
|
|
134
|
+
submitInquiry?: (payload: EventInquiryPayload) => Promise<SubmitInquiryResult>;
|
|
135
|
+
}
|
|
136
|
+
|
|
92
137
|
declare global {
|
|
93
138
|
interface HTMLElementTagNameMap {
|
|
94
139
|
'reservation-bar': ReservationBarElement;
|
|
95
140
|
'booking-flow': BookingFlowElement;
|
|
96
141
|
'menu-section': MenuSectionElement;
|
|
142
|
+
'event-inquiries-feed': EventInquiriesFeedElement;
|
|
143
|
+
'event-contact-form': EventContactFormElement;
|
|
97
144
|
}
|
|
98
145
|
|
|
99
146
|
interface HTMLElementEventMap {
|
|
100
147
|
reservationchange: CustomEvent<{ date: string; guests: number; time: string }>;
|
|
101
148
|
'booking-confirmed': CustomEvent<{ date: string; time: string; guests: number }>;
|
|
149
|
+
'inquiry-submitted': CustomEvent<EventInquiryPayload>;
|
|
102
150
|
}
|
|
103
151
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forgebuild/hotal-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Reusable Svelte UI components for booking and reservation experiences.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@floating-ui/dom": "^1.8.0",
|
|
24
24
|
"@stripe/stripe-js": "^9.13.0",
|
|
25
|
+
"ably": "^2.27.0",
|
|
25
26
|
"gsap": "^3.15.0",
|
|
26
27
|
"svelte": "^5.56.8"
|
|
27
28
|
},
|