bookito-widget 1.2.1-beta.1 → 1.3.0-beta.2

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.
@@ -24,6 +24,8 @@ export declare const widgetLocaleMessages: {
24
24
  description: string;
25
25
  roomNumberOptional: string;
26
26
  bookingReferenceOptional: string;
27
+ roomNumberRequired: string;
28
+ bookingReferenceRequired: string;
27
29
  dateOfBirth: string;
28
30
  dateOfBirthPlaceholder: string;
29
31
  name: string;
@@ -110,6 +112,8 @@ export declare const widgetLocaleMessages: {
110
112
  description: string;
111
113
  roomNumberOptional: string;
112
114
  bookingReferenceOptional: string;
115
+ roomNumberRequired: string;
116
+ bookingReferenceRequired: string;
113
117
  dateOfBirth: string;
114
118
  dateOfBirthPlaceholder: string;
115
119
  name: string;
@@ -196,6 +200,8 @@ export declare const widgetLocaleMessages: {
196
200
  description: string;
197
201
  roomNumberOptional: string;
198
202
  bookingReferenceOptional: string;
203
+ roomNumberRequired: string;
204
+ bookingReferenceRequired: string;
199
205
  dateOfBirth: string;
200
206
  dateOfBirthPlaceholder: string;
201
207
  name: string;
@@ -282,6 +288,8 @@ export declare const widgetLocaleMessages: {
282
288
  description: string;
283
289
  roomNumberOptional: string;
284
290
  bookingReferenceOptional: string;
291
+ roomNumberRequired: string;
292
+ bookingReferenceRequired: string;
285
293
  dateOfBirth: string;
286
294
  dateOfBirthPlaceholder: string;
287
295
  name: string;
@@ -368,6 +376,8 @@ export declare const widgetLocaleMessages: {
368
376
  description: string;
369
377
  roomNumberOptional: string;
370
378
  bookingReferenceOptional: string;
379
+ roomNumberRequired: string;
380
+ bookingReferenceRequired: string;
371
381
  dateOfBirth: string;
372
382
  dateOfBirthPlaceholder: string;
373
383
  name: string;
@@ -458,6 +468,8 @@ export declare function createWidgetI18n(locale?: string): import('vue-i18n').I1
458
468
  description: string;
459
469
  roomNumberOptional: string;
460
470
  bookingReferenceOptional: string;
471
+ roomNumberRequired: string;
472
+ bookingReferenceRequired: string;
461
473
  dateOfBirth: string;
462
474
  dateOfBirthPlaceholder: string;
463
475
  name: string;
@@ -544,6 +556,8 @@ export declare function createWidgetI18n(locale?: string): import('vue-i18n').I1
544
556
  description: string;
545
557
  roomNumberOptional: string;
546
558
  bookingReferenceOptional: string;
559
+ roomNumberRequired: string;
560
+ bookingReferenceRequired: string;
547
561
  dateOfBirth: string;
548
562
  dateOfBirthPlaceholder: string;
549
563
  name: string;
@@ -630,6 +644,8 @@ export declare function createWidgetI18n(locale?: string): import('vue-i18n').I1
630
644
  description: string;
631
645
  roomNumberOptional: string;
632
646
  bookingReferenceOptional: string;
647
+ roomNumberRequired: string;
648
+ bookingReferenceRequired: string;
633
649
  dateOfBirth: string;
634
650
  dateOfBirthPlaceholder: string;
635
651
  name: string;
@@ -716,6 +732,8 @@ export declare function createWidgetI18n(locale?: string): import('vue-i18n').I1
716
732
  description: string;
717
733
  roomNumberOptional: string;
718
734
  bookingReferenceOptional: string;
735
+ roomNumberRequired: string;
736
+ bookingReferenceRequired: string;
719
737
  dateOfBirth: string;
720
738
  dateOfBirthPlaceholder: string;
721
739
  name: string;
@@ -802,6 +820,8 @@ export declare function createWidgetI18n(locale?: string): import('vue-i18n').I1
802
820
  description: string;
803
821
  roomNumberOptional: string;
804
822
  bookingReferenceOptional: string;
823
+ roomNumberRequired: string;
824
+ bookingReferenceRequired: string;
805
825
  dateOfBirth: string;
806
826
  dateOfBirthPlaceholder: string;
807
827
  name: string;
@@ -22,6 +22,8 @@ export declare const de: {
22
22
  description: string;
23
23
  roomNumberOptional: string;
24
24
  bookingReferenceOptional: string;
25
+ roomNumberRequired: string;
26
+ bookingReferenceRequired: string;
25
27
  dateOfBirth: string;
26
28
  dateOfBirthPlaceholder: string;
27
29
  name: string;
@@ -22,6 +22,8 @@ export declare const en: {
22
22
  description: string;
23
23
  roomNumberOptional: string;
24
24
  bookingReferenceOptional: string;
25
+ roomNumberRequired: string;
26
+ bookingReferenceRequired: string;
25
27
  dateOfBirth: string;
26
28
  dateOfBirthPlaceholder: string;
27
29
  name: string;
@@ -22,6 +22,8 @@ export declare const fr: {
22
22
  description: string;
23
23
  roomNumberOptional: string;
24
24
  bookingReferenceOptional: string;
25
+ roomNumberRequired: string;
26
+ bookingReferenceRequired: string;
25
27
  dateOfBirth: string;
26
28
  dateOfBirthPlaceholder: string;
27
29
  name: string;
@@ -22,6 +22,8 @@ export declare const it: {
22
22
  description: string;
23
23
  roomNumberOptional: string;
24
24
  bookingReferenceOptional: string;
25
+ roomNumberRequired: string;
26
+ bookingReferenceRequired: string;
25
27
  dateOfBirth: string;
26
28
  dateOfBirthPlaceholder: string;
27
29
  name: string;
@@ -22,6 +22,8 @@ export declare const pl: {
22
22
  description: string;
23
23
  roomNumberOptional: string;
24
24
  bookingReferenceOptional: string;
25
+ roomNumberRequired: string;
26
+ bookingReferenceRequired: string;
25
27
  dateOfBirth: string;
26
28
  dateOfBirthPlaceholder: string;
27
29
  name: string;
@@ -7,20 +7,23 @@ export type BookingDetailsFormModeType = {
7
7
  showRoomField: boolean;
8
8
  };
9
9
  /**
10
- * PMS hotels (legacy BookitoGuestForm):
11
- * - Room/ref row (mutually exclusive) always visible.
12
- * - Room OR ref filled → date of birth (hotel guest login path).
13
- * - Neither filled → name, email, phone (external guest on PMS property).
10
+ * PMS hotels (legacy BookitoParticipantForm, CAR-702):
11
+ * - Room/ref row (mutually exclusive) always visible and required.
12
+ * - Date of birth always visible; guests log in with room OR ref + DOB.
13
+ * - No external guest path (name, email, phone): the backend rejects PMS bookings without a room.
14
14
  *
15
15
  * Non-PMS hotels:
16
16
  * - Always extended form: room (optional), booking ref (optional), name, email, phone, language.
17
17
  * - No date-of-birth swap (not in Web Widget doc for this case).
18
18
  */
19
19
  export declare function resolveBookingDetailsFormMode(hasPms: boolean, form: BookingFormStateType): BookingDetailsFormModeType;
20
+ export declare function resolveRoomAndReferenceLabelKeys(hasPms: boolean): {
21
+ bookingReference: string;
22
+ roomNumber: string;
23
+ };
20
24
  export declare function isValidGuestEmail(value: string): boolean;
21
- /** Fields marked “(Optional)” in copy are not required; all others are required when visible. */
22
25
  export declare function canContinueFromDetails(hasPms: boolean, form: BookingFormStateType): boolean;
23
26
  export declare function isDetailsStepValid(hasPms: boolean, form: BookingFormStateType): boolean;
24
27
  export declare function shouldAuthenticateGuestOnDetailsSubmit(hasPms: boolean, form: BookingFormStateType): boolean;
25
- /** Reservation guest chips apply only on the PMS hotel-guest path (room or booking ref + DOB). */
28
+ /** Reservation guest chips apply only once a PMS guest entered a room or booking ref. */
26
29
  export declare function shouldShowRoomGuestSelection(hasPms: boolean, form: BookingFormStateType): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bookito-widget",
3
- "version": "1.2.1-beta.1",
3
+ "version": "1.3.0-beta.2",
4
4
  "description": "Embeddable Bookito booking widget for hotel websites",
5
5
  "license": "MIT",
6
6
  "repository": {