@forgebuild/hotal-ui 0.23.9 → 0.23.10

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
@@ -1,3 +1,16 @@
1
+ export interface ReservationBarStrings {
2
+ dateLabel: string;
3
+ guestsLabel: string;
4
+ timeLabel: string;
5
+ guestSingular: string;
6
+ guestPlural: string;
7
+ reserveLabel: string;
8
+ previousMonth: string;
9
+ nextMonth: string;
10
+ selectGuestsAriaLabel: string;
11
+ selectTimeAriaLabel: string;
12
+ }
13
+
1
14
  export interface ReservationBarElement extends HTMLElement {
2
15
  minGuests?: number;
3
16
  maxGuests?: number;
@@ -9,6 +22,7 @@ export interface ReservationBarElement extends HTMLElement {
9
22
  syncWithUrl?: boolean;
10
23
  closedWeekdays?: number[];
11
24
  locale?: string;
25
+ strings?: Partial<ReservationBarStrings>;
12
26
  fetchAvailableDates?: (partySize: number) => Promise<string[]>;
13
27
  }
14
28
 
@@ -135,6 +149,8 @@ export interface MenuSectionElement extends HTMLElement {
135
149
  headingAlign?: 'center' | 'left';
136
150
  layout?: 'stacked' | 'split';
137
151
  variant?: 'default' | 'panel';
152
+ openInNewTabLabel?: string;
153
+ closeAriaLabel?: string;
138
154
  }
139
155
 
140
156
  export interface EventInquiry {
@@ -202,6 +218,36 @@ export interface EventInquiryPayload {
202
218
 
203
219
  export type SubmitInquiryResult = { ok: true } | { ok: false; error?: string };
204
220
 
221
+ export interface EventContactFormStrings {
222
+ nameLabel: string;
223
+ namePlaceholder: string;
224
+ emailLabel: string;
225
+ emailPlaceholder: string;
226
+ emailInvalidTitle: string;
227
+ phoneLabel: string;
228
+ phonePlaceholder: string;
229
+ eventTypeLabel: string;
230
+ selectOption: string;
231
+ guestsLabel: string;
232
+ guestsMinimumHint: string;
233
+ decreaseGuestsAriaLabel: string;
234
+ increaseGuestsAriaLabel: string;
235
+ eventFormatLabel: string;
236
+ seatedDinner: string;
237
+ cocktailReception: string;
238
+ selectDateLabel: string;
239
+ previousMonth: string;
240
+ nextMonth: string;
241
+ selectDateError: string;
242
+ messageLabel: string;
243
+ messagePlaceholder: string;
244
+ sendingLabel: string;
245
+ sendLabel: string;
246
+ notWiredError: string;
247
+ genericSubmitError: string;
248
+ successMessage: string;
249
+ }
250
+
205
251
  export interface EventContactFormElement extends HTMLElement {
206
252
  heading?: string;
207
253
  tagline?: string;
@@ -209,6 +255,10 @@ export interface EventContactFormElement extends HTMLElement {
209
255
  eventTypes?: string[];
210
256
  minGuests?: number;
211
257
  submitNote?: string;
258
+ /** BCP 47 locale (e.g. "fr-FR") used to format month/weekday names in the
259
+ * calendar; defaults to the browser's own locale. */
260
+ locale?: string;
261
+ strings?: Partial<EventContactFormStrings>;
212
262
  submitInquiry?: (payload: EventInquiryPayload) => Promise<SubmitInquiryResult>;
213
263
  }
214
264
 
@@ -218,6 +268,25 @@ export interface ReservationCancelPayload {
218
268
  }
219
269
  export type CancelActionResult = { ok: true } | { ok: false; status?: number };
220
270
 
271
+ export interface ReservationCancelStrings {
272
+ cancelReservation: string;
273
+ requestSuccess: string;
274
+ noEmailOnFile: string;
275
+ requestError: string;
276
+ dialogEyebrow: string;
277
+ dialogBody: string;
278
+ nevermind: string;
279
+ continueLabel: string;
280
+ confirmSuccess: string;
281
+ expiresIn: string;
282
+ confirmButton: string;
283
+ confirmError: string;
284
+ resendSuccess: string;
285
+ linkExpired: string;
286
+ resendButton: string;
287
+ resendError: string;
288
+ }
289
+
221
290
  export interface ReservationCancelElement extends HTMLElement {
222
291
  mode?: 'request' | 'confirm';
223
292
  reservationId?: string;
@@ -225,6 +294,7 @@ export interface ReservationCancelElement extends HTMLElement {
225
294
  token?: string;
226
295
  expiresAt?: number;
227
296
  initiallyExpired?: boolean;
297
+ strings?: Partial<ReservationCancelStrings>;
228
298
  requestCancel?: (payload: ReservationCancelPayload) => Promise<CancelActionResult>;
229
299
  confirmCancel?: (payload: { token: string }) => Promise<CancelActionResult>;
230
300
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgebuild/hotal-ui",
3
- "version": "0.23.9",
3
+ "version": "0.23.10",
4
4
  "description": "Reusable Svelte UI components for booking and reservation experiences.",
5
5
  "type": "module",
6
6
  "license": "MIT",