@qite/tide-booking-component 1.4.80 → 1.4.81

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 (37) hide show
  1. package/build/build-cjs/index.js +208 -138
  2. package/build/build-cjs/src/booking-wizard/features/booking/api.d.ts +4 -0
  3. package/build/build-cjs/src/booking-wizard/features/booking/booking-slice.d.ts +16 -0
  4. package/build/build-cjs/src/booking-wizard/features/booking/selectors.d.ts +1 -0
  5. package/build/build-cjs/src/booking-wizard/types.d.ts +1 -0
  6. package/build/build-cjs/src/qsm/store/qsm-slice.d.ts +2 -1
  7. package/build/build-cjs/src/qsm/types.d.ts +2 -2
  8. package/build/build-cjs/src/shared/components/flyin/flyin.d.ts +1 -1
  9. package/build/build-cjs/src/shared/types.d.ts +0 -13
  10. package/build/build-esm/index.js +209 -132
  11. package/build/build-esm/src/booking-wizard/features/booking/api.d.ts +4 -0
  12. package/build/build-esm/src/booking-wizard/features/booking/booking-slice.d.ts +16 -0
  13. package/build/build-esm/src/booking-wizard/features/booking/selectors.d.ts +1 -0
  14. package/build/build-esm/src/booking-wizard/types.d.ts +1 -0
  15. package/build/build-esm/src/qsm/store/qsm-slice.d.ts +2 -1
  16. package/build/build-esm/src/qsm/types.d.ts +2 -2
  17. package/build/build-esm/src/shared/components/flyin/flyin.d.ts +1 -1
  18. package/build/build-esm/src/shared/types.d.ts +0 -13
  19. package/package.json +1 -1
  20. package/src/booking-wizard/features/booking/api.ts +8 -2
  21. package/src/booking-wizard/features/booking/booking-slice.ts +15 -1
  22. package/src/booking-wizard/features/booking/selectors.ts +2 -0
  23. package/src/booking-wizard/features/travelers-form/travelers-form.tsx +46 -23
  24. package/src/booking-wizard/settings-context.ts +2 -1
  25. package/src/booking-wizard/types.ts +1 -0
  26. package/src/content/features/content-page/content-page-self-contained.tsx +2 -2
  27. package/src/qsm/components/QSMContainer/qsm-container.tsx +1 -2
  28. package/src/qsm/components/travel-input/index.tsx +1 -1
  29. package/src/qsm/components/travel-input-group/index.tsx +1 -1
  30. package/src/qsm/qsm-configuration-context.ts +1 -1
  31. package/src/qsm/store/qsm-slice.ts +2 -1
  32. package/src/qsm/types.ts +2 -2
  33. package/src/search-results/components/hotel/hotel-card.tsx +5 -1
  34. package/src/search-results/components/search-results-container/flight-search-results.tsx +1 -1
  35. package/src/search-results/components/search-results-container/search-results-container.tsx +9 -4
  36. package/src/shared/components/flyin/flyin.tsx +1 -1
  37. package/src/shared/types.ts +0 -14
@@ -22,5 +22,9 @@ declare const packageApi: {
22
22
  ) => Promise<{
23
23
  [key: string]: string;
24
24
  }>;
25
+ fetchCountries: (
26
+ signal: AbortSignal,
27
+ apiSettings?: ApiSettingsState
28
+ ) => Promise<import('@qite/tide-client').PageResult<import('@qite/tide-client').CountryItem>>;
25
29
  };
26
30
  export default packageApi;
@@ -10,6 +10,7 @@ import {
10
10
  BookingPackage,
11
11
  BookingPackageRoom,
12
12
  BookingTravelAgent,
13
+ CountryItem,
13
14
  PerBookingPackageOption
14
15
  } from '@qite/tide-client/build/types';
15
16
  import { BookingStep } from './constants';
@@ -46,6 +47,7 @@ export interface BookingState {
46
47
  travelersFirstStep: boolean;
47
48
  isFetching?: boolean;
48
49
  hasMounted: boolean;
50
+ countries?: CountryItem[];
49
51
  }
50
52
  export declare const fetchPackage: import('@reduxjs/toolkit').AsyncThunk<
51
53
  void,
@@ -61,6 +63,20 @@ export declare const fetchPackage: import('@reduxjs/toolkit').AsyncThunk<
61
63
  rejectedMeta?: unknown;
62
64
  }
63
65
  >;
66
+ export declare const fetchCountries: import('@reduxjs/toolkit').AsyncThunk<
67
+ import('@qite/tide-client/build/types').PageResult<CountryItem>,
68
+ void,
69
+ {
70
+ state?: unknown;
71
+ dispatch?: import('@reduxjs/toolkit').ThunkDispatch<unknown, unknown, import('@reduxjs/toolkit').UnknownAction>;
72
+ extra?: unknown;
73
+ rejectValue?: unknown;
74
+ serializedErrorType?: unknown;
75
+ pendingMeta?: unknown;
76
+ fulfilledMeta?: unknown;
77
+ rejectedMeta?: unknown;
78
+ }
79
+ >;
64
80
  export declare const setOfficeId: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, 'booking/setOfficeId'>,
65
81
  setLanguageCode: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, 'booking/setLanguageCode'>,
66
82
  setTranslations: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, 'booking/setTranslations'>,
@@ -336,6 +336,7 @@ export declare const selectCalculateDeposit: (state: RootState) => boolean;
336
336
  export declare const selectIsRetry: (state: RootState) => boolean;
337
337
  export declare const selectStartDate: (state: RootState) => string | undefined;
338
338
  export declare const selectAgents: (state: RootState) => import('@qite/tide-client').BookingTravelAgent[] | undefined;
339
+ export declare const selectCountries: (state: RootState) => import('@qite/tide-client').CountryItem[] | undefined;
339
340
  export declare const selectProductCode: (state: RootState) => string | undefined;
340
341
  export declare const selectAccommodationCodes: (state: RootState) => string[];
341
342
  export declare const selectAccommodationViews: (state: RootState) =>
@@ -26,6 +26,7 @@ export interface Settings {
26
26
  mainBookerFormFields?: FormField[];
27
27
  countries?: Country[];
28
28
  travelersFirstStep?: boolean;
29
+ showAllCountries?: boolean;
29
30
  };
30
31
  summary: {
31
32
  pathSuffix: string;
@@ -1,6 +1,7 @@
1
1
  import { MobileFilterType, Room, TravelerType, TypeaheadOption } from '../types';
2
2
  import { ReactNode } from 'react';
3
- import { TravelType, TravelClass, PortalQsmType } from '../../shared/types';
3
+ import { TravelType, TravelClass } from '../../shared/types';
4
+ import { PortalQsmType } from '@qite/tide-client';
4
5
  export interface QSMState {
5
6
  qsmType?: PortalQsmType;
6
7
  selectedOrigin?: string;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { PortalQsmType, TravelClass, TravelType } from '../shared/types';
3
- import { WebsiteConfigurationSearchConfiguration } from '@qite/tide-client';
2
+ import { TravelClass, TravelType } from '../shared/types';
3
+ import { WebsiteConfigurationSearchConfiguration, PortalQsmType } from '@qite/tide-client';
4
4
  export interface QSMConfiguration {
5
5
  type?: PortalQsmType;
6
6
  searchConfigurations: WebsiteConfigurationSearchConfiguration[];
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PortalQsmType } from '../../types';
2
+ import { PortalQsmType } from '@qite/tide-client';
3
3
  type FlyInProps = {
4
4
  title: string;
5
5
  srpType: PortalQsmType;
@@ -1,17 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
- export declare enum PortalQsmType {
3
- Multidestination = 0,
4
- Accommodation = 1,
5
- AccommodationAndFlight = 2,
6
- Flight = 3,
7
- RoundTrip = 4,
8
- GroupTour = 5,
9
- Package = 6,
10
- Ticket = 7,
11
- Car = 8,
12
- Transfer = 9,
13
- Cruise = 10
14
- }
15
2
  export interface ApiSettingsState {
16
3
  apiUrl: string;
17
4
  apiKey: string;