@qite/tide-booking-component 1.3.4 → 1.3.5

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.
Files changed (33) hide show
  1. package/build/build-cjs/booking-wizard/features/sidebar/sidebar-util.d.ts +3 -3
  2. package/build/build-cjs/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +5 -5
  3. package/build/build-cjs/booking-wizard/types.d.ts +6 -0
  4. package/build/build-cjs/index.js +223 -147
  5. package/build/build-cjs/shared/utils/localization-util.d.ts +2 -0
  6. package/build/build-esm/booking-wizard/features/sidebar/sidebar-util.d.ts +3 -3
  7. package/build/build-esm/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +5 -5
  8. package/build/build-esm/booking-wizard/types.d.ts +6 -0
  9. package/build/build-esm/index.js +223 -147
  10. package/build/build-esm/shared/utils/localization-util.d.ts +2 -0
  11. package/package.json +75 -75
  12. package/src/booking-wizard/components/print-offer-button.tsx +63 -63
  13. package/src/booking-wizard/features/booking/booking-self-contained.tsx +389 -389
  14. package/src/booking-wizard/features/booking/booking-slice.ts +663 -663
  15. package/src/booking-wizard/features/booking/booking.tsx +361 -361
  16. package/src/booking-wizard/features/flight-options/flight-utils.ts +522 -522
  17. package/src/booking-wizard/features/product-options/options-form.tsx +481 -481
  18. package/src/booking-wizard/features/sidebar/sidebar-util.ts +177 -177
  19. package/src/booking-wizard/features/summary/summary-booking-option-pax.tsx +25 -25
  20. package/src/booking-wizard/features/summary/summary.tsx +674 -674
  21. package/src/booking-wizard/features/travelers-form/travelers-form-slice.ts +164 -164
  22. package/src/booking-wizard/features/travelers-form/travelers-form.tsx +888 -754
  23. package/src/booking-wizard/settings-context.ts +62 -62
  24. package/src/booking-wizard/types.ts +286 -279
  25. package/src/booking-wizard/use-offer-printer.ts +117 -117
  26. package/src/shared/translations/en-GB.json +239 -237
  27. package/src/shared/translations/fr-BE.json +239 -238
  28. package/src/shared/translations/nl-BE.json +239 -237
  29. package/src/shared/utils/tide-api-utils.ts +36 -36
  30. package/styles/booking-wizard-variables.scss +873 -873
  31. package/styles/components/_booking.scss +879 -879
  32. package/styles/components/_dropdown.scss +72 -72
  33. package/styles/components/_form.scss +1583 -1583
@@ -1,8 +1,8 @@
1
1
  import { BookingPackageFlightMetaData } from "@qite/tide-client/build/types";
2
- import { FlightLine } from "../../types";
2
+ import { FlightLine, RoomTraveler } from "../../types";
3
3
  export declare const getTravelersText: (rooms: {
4
- adults: number[];
5
- children: number[];
4
+ adults: RoomTraveler[];
5
+ children: RoomTraveler[];
6
6
  }[]) => string[];
7
7
  export declare const getDateText: (date: string | undefined, hideYear?: boolean) => string | undefined;
8
8
  export declare const getDatePeriodText: (from?: string, to?: string, nightsOnly?: boolean) => string | undefined;
@@ -1,5 +1,5 @@
1
1
  import { RootState } from "../../store";
2
- import { TravelersFormValues } from "../../types";
2
+ import { TravelersFormValues, RoomTraveler } from "../../types";
3
3
  export interface TravelersFormState {
4
4
  formValues?: TravelersFormValues;
5
5
  }
@@ -35,11 +35,11 @@ export declare const selectFormRooms: ((state: {
35
35
  summary: import("../summary/summary-slice").SummaryState;
36
36
  apiSettings: import("../../../shared/types").ApiSettingsState;
37
37
  }) => {
38
- adults: number[];
39
- children: number[];
38
+ adults: RoomTraveler[];
39
+ children: RoomTraveler[];
40
40
  }[]) & import("reselect").OutputSelectorFields<(args_0: import("@qite/tide-client/build/types").BookingPackageRequestRoom[] | undefined) => {
41
- adults: number[];
42
- children: number[];
41
+ adults: RoomTraveler[];
42
+ children: RoomTraveler[];
43
43
  }[], {
44
44
  clearCache: () => void;
45
45
  }> & {
@@ -20,6 +20,7 @@ export interface Settings {
20
20
  };
21
21
  travellers: {
22
22
  pathSuffix: string;
23
+ compactForm?: boolean;
23
24
  };
24
25
  summary: {
25
26
  pathSuffix: string;
@@ -84,6 +85,7 @@ export interface Traveler {
84
85
  firstName: string;
85
86
  lastName: string;
86
87
  birthDate: string;
88
+ age?: number;
87
89
  }
88
90
  export interface Room {
89
91
  adults: number;
@@ -251,3 +253,7 @@ export interface TimeRangeFilter {
251
253
  selectedMin: number;
252
254
  selectedMax: number;
253
255
  }
256
+ export interface RoomTraveler {
257
+ id: number;
258
+ age: number;
259
+ }