@forgebuild/hotal-ui 0.23.40 → 0.23.48
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 +16003 -8285
- package/dist/index.d.ts +21 -2
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -1188,16 +1188,35 @@ export interface GoogleReviewsStrings {
|
|
|
1188
1188
|
* `loaded` ({ rating, count }) when the payload arrives. Theme via --gr-*. */
|
|
1189
1189
|
export interface GoogleReviewsElement extends HTMLElement {
|
|
1190
1190
|
/** 'grid' (default) or 'slider' (scroll-snap track with prev/next arrows). */
|
|
1191
|
-
variant?: 'grid' | 'slider';
|
|
1192
|
-
/** Slider only: seconds between automatic advances; 0/unset = off. */
|
|
1191
|
+
variant?: 'grid' | 'slider';
|
|
1192
|
+
/** Slider only: seconds between automatic advances; 0/unset = off. */
|
|
1193
1193
|
autoAdvance?: number;
|
|
1194
1194
|
maxReviews?: number;
|
|
1195
1195
|
strings?: Partial<GoogleReviewsStrings>;
|
|
1196
1196
|
fetchReviews?: () => Promise<GoogleReviewsPayload>;
|
|
1197
1197
|
}
|
|
1198
1198
|
|
|
1199
|
+
/** <ai-chat-widget>: a floating chat launcher + panel that talks to a
|
|
1200
|
+
* host-provided chat API endpoint (any AI SDK v5+ UI-message-stream route).
|
|
1201
|
+
* Knows nothing about the model, tools, or business data behind `api` --
|
|
1202
|
+
* purely a chat UI. Dispatches `open-booking` ({ service: string | null })
|
|
1203
|
+
* when the model calls a client-side `openBooking` tool, and
|
|
1204
|
+
* `lead-captured` ({ name: string }) once a server-side `captureLead` tool
|
|
1205
|
+
* call completes. Theme via --acw-*. */
|
|
1206
|
+
export interface AiChatWidgetElement extends HTMLElement {
|
|
1207
|
+
/** The chat API endpoint (e.g. "/api/chat"). Required. */
|
|
1208
|
+
api: string;
|
|
1209
|
+
heading?: string;
|
|
1210
|
+
placeholder?: string;
|
|
1211
|
+
/** Shown as the first message in an empty conversation. Omit for none. */
|
|
1212
|
+
greeting?: string;
|
|
1213
|
+
/** Shown in the error message so a visitor can call instead. Omit to leave it out. */
|
|
1214
|
+
phone?: string;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1199
1217
|
declare global {
|
|
1200
1218
|
interface HTMLElementTagNameMap {
|
|
1219
|
+
'ai-chat-widget': AiChatWidgetElement;
|
|
1201
1220
|
'google-reviews': GoogleReviewsElement;
|
|
1202
1221
|
'service-booking-bar': ServiceBookingBarElement;
|
|
1203
1222
|
'reservation-bar': ReservationBarElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forgebuild/hotal-ui",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.48",
|
|
4
4
|
"description": "Reusable Svelte UI components for booking and reservation experiences.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,9 +20,11 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@ai-sdk/svelte": "^5.0.91",
|
|
23
24
|
"@floating-ui/dom": "^1.8.0",
|
|
24
25
|
"@stripe/stripe-js": "^9.13.0",
|
|
25
26
|
"ably": "^2.27.0",
|
|
27
|
+
"ai": "^7.0.91",
|
|
26
28
|
"gsap": "^3.15.0",
|
|
27
29
|
"libphonenumber-js": "^1.12.41",
|
|
28
30
|
"svelte": "^5.56.8"
|