@qite/tide-booking-component 1.4.34 → 1.4.36

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 (64) hide show
  1. package/build/build-cjs/index.js +1628 -376
  2. package/build/build-cjs/qsm/types.d.ts +0 -1
  3. package/build/build-cjs/search-results/components/filters/filters.d.ts +2 -2
  4. package/build/build-cjs/search-results/components/flight/flight-results.d.ts +2 -0
  5. package/build/build-cjs/search-results/components/hotel/hotel-card.d.ts +1 -0
  6. package/build/build-cjs/search-results/components/itinerary/index.d.ts +2 -2
  7. package/build/build-cjs/search-results/store/search-results-slice.d.ts +11 -2
  8. package/build/build-cjs/search-results/types.d.ts +4 -14
  9. package/build/build-esm/index.js +1628 -376
  10. package/build/build-esm/qsm/types.d.ts +0 -1
  11. package/build/build-esm/search-results/components/filters/filters.d.ts +2 -2
  12. package/build/build-esm/search-results/components/flight/flight-results.d.ts +2 -0
  13. package/build/build-esm/search-results/components/hotel/hotel-card.d.ts +1 -0
  14. package/build/build-esm/search-results/components/itinerary/index.d.ts +2 -2
  15. package/build/build-esm/search-results/store/search-results-slice.d.ts +11 -2
  16. package/build/build-esm/search-results/types.d.ts +4 -14
  17. package/package.json +2 -2
  18. package/src/booking-wizard/features/booking/booking-self-contained.tsx +0 -1
  19. package/src/booking-wizard/features/travelers-form/controls/gender-control.tsx +5 -5
  20. package/src/booking-wizard/features/travelers-form/travelers-form.tsx +10 -10
  21. package/src/content/components/icon.tsx +1 -1
  22. package/src/content/features/content-page/content-page-self-contained.tsx +0 -1
  23. package/src/qsm/components/QSMContainer/qsm-container.tsx +15 -13
  24. package/src/qsm/components/mobile-filter-modal/index.tsx +12 -10
  25. package/src/qsm/components/travel-class-picker/index.tsx +5 -3
  26. package/src/qsm/components/travel-input/index.tsx +15 -12
  27. package/src/qsm/components/travel-input-group/index.tsx +14 -3
  28. package/src/qsm/components/travel-nationality-picker/index.tsx +5 -3
  29. package/src/qsm/components/travel-type-picker/index.tsx +5 -3
  30. package/src/qsm/qsm-configuration-context.ts +0 -1
  31. package/src/qsm/types.ts +0 -1
  32. package/src/search-results/components/filters/filters.tsx +15 -16
  33. package/src/search-results/components/flight/flight-results.tsx +168 -1099
  34. package/src/search-results/components/hotel/hotel-accommodation-results.tsx +21 -24
  35. package/src/search-results/components/hotel/hotel-card.tsx +4 -3
  36. package/src/search-results/components/icon.tsx +1 -1
  37. package/src/search-results/components/itinerary/index.tsx +233 -131
  38. package/src/search-results/components/round-trip/round-trip-results.tsx +1 -1
  39. package/src/search-results/components/search-results-container/search-results-container.tsx +45 -33
  40. package/src/search-results/components/spinner/spinner.tsx +3 -1
  41. package/src/search-results/components/tab-views/index.tsx +13 -7
  42. package/src/search-results/features/flights/flight-search-results-self-contained.tsx +4 -13
  43. package/src/search-results/features/hotels/hotel-flight-search-results-self-contained.tsx +5 -1
  44. package/src/search-results/features/hotels/hotel-search-results-self-contained.tsx +4 -13
  45. package/src/search-results/features/roundtrips/roundtrip-search-results-self-contained.tsx +5 -1
  46. package/src/search-results/store/search-results-slice.ts +37 -3
  47. package/src/search-results/types.ts +2 -15
  48. package/src/shared/translations/ar-SA.json +70 -0
  49. package/src/shared/translations/da-DK.json +70 -0
  50. package/src/shared/translations/de-DE.json +70 -0
  51. package/src/shared/translations/en-GB.json +71 -1
  52. package/src/shared/translations/es-ES.json +70 -0
  53. package/src/shared/translations/fr-BE.json +71 -1
  54. package/src/shared/translations/fr-FR.json +70 -0
  55. package/src/shared/translations/is-IS.json +72 -2
  56. package/src/shared/translations/it-IT.json +70 -0
  57. package/src/shared/translations/ja-JP.json +72 -2
  58. package/src/shared/translations/nl-BE.json +70 -0
  59. package/src/shared/translations/nl-NL.json +70 -0
  60. package/src/shared/translations/no-NO.json +72 -2
  61. package/src/shared/translations/pl-PL.json +70 -0
  62. package/src/shared/translations/pt-PT.json +70 -0
  63. package/src/shared/translations/sv-SE.json +72 -2
  64. package/styles/components/_search.scss +7 -1
@@ -35,7 +35,6 @@ export interface QSMConfiguration {
35
35
  maxChildAge?: number;
36
36
  maxInfantAge?: number;
37
37
  onSubmit: (data: any) => void;
38
- submitLabel: string;
39
38
  submitIcon: ReactNode;
40
39
  nationalities: Nationality[];
41
40
  languageCode?: string;
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { Filter } from '../../types';
3
3
  interface FiltersProps {
4
4
  filters: Filter[];
5
- isMobileFiltersOpen: boolean;
6
- handleSetIsMobileFiltersOpen: () => void;
5
+ isOpen: boolean;
6
+ handleSetIsOpen: () => void;
7
7
  handleApplyFilters: () => void;
8
8
  isLoading?: boolean;
9
9
  }
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
+ import { BookingPackageFlight } from '@qite/tide-client';
2
3
  interface FlightResultsProps {
4
+ flights: BookingPackageFlight[];
3
5
  isDeparture?: boolean;
4
6
  }
5
7
  declare const FlightResults: React.FC<FlightResultsProps>;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { HotelResult } from '../../types';
3
3
  interface HotelCardProps {
4
4
  result: HotelResult;
5
+ translations?: any;
5
6
  }
6
7
  declare const HotelCard: React.FC<HotelCardProps>;
7
8
  export default HotelCard;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  interface ItineraryProps {
3
- isMobileFiltersOpen: boolean;
4
- handleSetIsMobileFiltersOpen: () => void;
3
+ isOpen: boolean;
4
+ handleSetIsOpen: () => void;
5
5
  isLoading?: boolean;
6
6
  }
7
7
  declare const Itinerary: React.FC<ItineraryProps>;
@@ -1,8 +1,10 @@
1
1
  import { Filter } from '../types';
2
- import { BookingPackageItem } from '@qite/tide-client/build/types';
2
+ import { BookingPackage, BookingPackageItem, EntryLight } from '@qite/tide-client/build/types';
3
3
  export interface SearchResultsState {
4
4
  results: BookingPackageItem[];
5
5
  selectedHotelId: number | null;
6
+ bookingPackageDetails: BookingPackage | null;
7
+ entry: EntryLight | null;
6
8
  isLoading: boolean;
7
9
  filters: Filter[];
8
10
  sortKey: string | null;
@@ -11,6 +13,13 @@ export interface SearchResultsState {
11
13
  }
12
14
  export declare const setResults: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
13
15
  results: BookingPackageItem[];
14
- }, "searchResults/setResults">, setSelectedHotel: import("@reduxjs/toolkit").ActionCreatorWithPayload<number | null, "searchResults/setSelectedHotel">, setIsLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "searchResults/setIsLoading">, setFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<Filter[], "searchResults/setFilters">, resetFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<Filter[], "searchResults/resetFilters">, setSortKey: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "searchResults/setSortKey">, setActiveTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "searchResults/setActiveTab">, setCurrentPage: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "searchResults/setCurrentPage">, resetSearchState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"searchResults/resetSearchState">;
16
+ }, "searchResults/setResults">, setSelectedHotel: import("@reduxjs/toolkit").ActionCreatorWithPayload<number | null, "searchResults/setSelectedHotel">, setBookingPackageDetails: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
17
+ details: BookingPackage;
18
+ }, "searchResults/setBookingPackageDetails">, setEntry: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
19
+ entry: EntryLight;
20
+ }, "searchResults/setEntry">, selectFlight: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
21
+ flightOptionId: string;
22
+ isDeparture: boolean;
23
+ }, "searchResults/selectFlight">, setIsLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "searchResults/setIsLoading">, setFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<Filter[], "searchResults/setFilters">, resetFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<Filter[], "searchResults/resetFilters">, setSortKey: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "searchResults/setSortKey">, setActiveTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "searchResults/setActiveTab">, setCurrentPage: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "searchResults/setCurrentPage">, resetSearchState: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"searchResults/resetSearchState">;
15
24
  declare const _default: import("redux").Reducer<SearchResultsState, import("redux").AnyAction>;
16
25
  export default _default;
@@ -19,24 +19,14 @@ export interface SearchResultsConfiguration {
19
19
  showCustomCards?: boolean;
20
20
  customCardRenderer?: (result: SearchResult) => ReactNode;
21
21
  showMapView?: boolean;
22
- noResultsLabel?: string;
23
22
  isLoading?: boolean;
24
23
  customSpinner?: ReactNode;
25
- translations?: {
26
- filters?: string;
27
- filterTitle?: string;
28
- resetButton?: string;
29
- sortBy?: string;
30
- noResults?: string;
31
- totalResultsLabel?: string;
32
- luggageIncluded?: string;
33
- cancel?: string;
34
- apply?: string;
35
- loading?: string;
36
- searchResultCTA?: string;
37
- };
38
24
  cmsHotelData?: any[];
39
25
  languageCode?: string;
26
+ destinationImage?: {
27
+ url: string;
28
+ alt: string;
29
+ };
40
30
  }
41
31
  export type FilterType = 'checkbox' | 'toggle' | 'slider' | 'star-rating';
42
32
  export type FilterProperty = 'regime' | 'max-duration' | 'price' | 'rating' | 'theme';