@qite/tide-booking-component 0.0.2-preview.44 → 0.0.2-preview.47
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/build/build-cjs/booking-wizard/features/booking/booking.d.ts +2 -0
- package/build/build-cjs/booking-wizard/features/product-options/option-room.d.ts +2 -1
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar-flight.d.ts +8 -0
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar-util.d.ts +6 -2
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar.d.ts +4 -4
- package/build/build-cjs/booking-wizard/features/summary/summary-flight.d.ts +7 -0
- package/build/build-cjs/booking-wizard/types.d.ts +4 -4
- package/build/build-cjs/booking-wizard/utils/query-string-util.d.ts +0 -2
- package/build/build-cjs/index.js +369 -108
- package/build/build-esm/booking-wizard/features/booking/booking.d.ts +2 -0
- package/build/build-esm/booking-wizard/features/product-options/option-room.d.ts +2 -1
- package/build/build-esm/booking-wizard/features/sidebar/sidebar-flight.d.ts +8 -0
- package/build/build-esm/booking-wizard/features/sidebar/sidebar-util.d.ts +6 -2
- package/build/build-esm/booking-wizard/features/sidebar/sidebar.d.ts +4 -4
- package/build/build-esm/booking-wizard/features/summary/summary-flight.d.ts +7 -0
- package/build/build-esm/booking-wizard/types.d.ts +4 -4
- package/build/build-esm/booking-wizard/utils/query-string-util.d.ts +0 -2
- package/build/build-esm/index.js +372 -111
- package/package.json +2 -2
- package/src/booking-wizard/features/booking/booking-slice.ts +1 -4
- package/src/booking-wizard/features/booking/booking.tsx +15 -9
- package/src/booking-wizard/features/product-options/none-option.tsx +15 -3
- package/src/booking-wizard/features/product-options/option-booking-group.tsx +3 -2
- package/src/booking-wizard/features/product-options/option-item.tsx +53 -6
- package/src/booking-wizard/features/product-options/option-pax-group.tsx +3 -2
- package/src/booking-wizard/features/product-options/option-room.tsx +79 -5
- package/src/booking-wizard/features/product-options/option-unit-group.tsx +3 -2
- package/src/booking-wizard/features/product-options/options-form.tsx +10 -0
- package/src/booking-wizard/features/sidebar/index.tsx +8 -10
- package/src/booking-wizard/features/sidebar/sidebar-flight.tsx +58 -0
- package/src/booking-wizard/features/sidebar/sidebar-util.ts +32 -22
- package/src/booking-wizard/features/sidebar/sidebar.tsx +40 -44
- package/src/booking-wizard/features/summary/summary-flight.tsx +34 -0
- package/src/booking-wizard/features/summary/summary.tsx +49 -0
- package/src/booking-wizard/settings-context.ts +0 -1
- package/src/booking-wizard/translations/translations.json +8 -2
- package/src/booking-wizard/types.ts +4 -4
- package/src/booking-wizard/utils/query-string-util.ts +0 -15
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BookingPackageRoom } from "@qite/tide-client/build/types";
|
|
1
|
+
import { BookingPackagePax, BookingPackageRoom } from "@qite/tide-client/build/types";
|
|
2
2
|
import React from "react";
|
|
3
3
|
interface OptionRoomProps {
|
|
4
4
|
packageRoom: BookingPackageRoom;
|
|
5
|
+
pax: BookingPackagePax[];
|
|
5
6
|
onRoomChange: (index: number, accommodationCode: string, regimeCode: string) => void;
|
|
6
7
|
}
|
|
7
8
|
declare const OptionRoom: React.FC<OptionRoomProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BookingPackageFlight } from "@qite/tide-client/build/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface SidebarFlightProps {
|
|
4
|
+
title: string;
|
|
5
|
+
flight: BookingPackageFlight;
|
|
6
|
+
}
|
|
7
|
+
declare const SidebarFlight: React.FC<SidebarFlightProps>;
|
|
8
|
+
export default SidebarFlight;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BookingPackageFlightMetaData } from "@qite/tide-client/build/types";
|
|
2
|
+
import { FlightLine } from "../../types";
|
|
2
3
|
export declare const getTravelersText: (adultIds: number[], childIds: number[]) => string | undefined;
|
|
3
4
|
export declare const getDateText: (date: string | undefined) => string | undefined;
|
|
4
5
|
export declare const getDatePeriodText: (from?: string | undefined, to?: string | undefined) => string | undefined;
|
|
5
|
-
export declare const getFlightText: (
|
|
6
|
+
export declare const getFlightText: (firstFlight: FlightLine | undefined, lastFlight: FlightLine | undefined) => string;
|
|
7
|
+
export declare const getAirlines: (flightLines: FlightLine[] | undefined) => string;
|
|
8
|
+
export declare const getFlightHours: (firstFlight: FlightLine | undefined, lastFlight: FlightLine | undefined) => string;
|
|
9
|
+
export declare const parseFlightLines: (metaDatas: BookingPackageFlightMetaData) => FlightLine[] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { BookingPriceDetail } from "@qite/tide-client/build/types";
|
|
2
|
+
import { BookingPackageFlight, BookingPackageRoom, BookingPriceDetail } from "@qite/tide-client/build/types";
|
|
3
3
|
interface SidebarProps {
|
|
4
4
|
productName: string;
|
|
5
5
|
thumbnailUrl?: string;
|
|
@@ -7,15 +7,15 @@ interface SidebarProps {
|
|
|
7
7
|
travelersText?: string;
|
|
8
8
|
startDateText?: string;
|
|
9
9
|
endDateText?: string;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
departureFlight?: BookingPackageFlight;
|
|
11
|
+
returnFlight?: BookingPackageFlight;
|
|
12
12
|
basePrice?: number;
|
|
13
13
|
totalPrice?: number;
|
|
14
14
|
remainingAmountText?: string;
|
|
15
15
|
includedCosts?: BookingPriceDetail[];
|
|
16
16
|
extraCosts?: BookingPriceDetail[];
|
|
17
17
|
deposit?: number;
|
|
18
|
-
|
|
18
|
+
accommodations?: BookingPackageRoom[];
|
|
19
19
|
headerComponent?: JSX.Element;
|
|
20
20
|
footerComponent?: JSX.Element;
|
|
21
21
|
loaderComponent?: JSX.Element;
|
|
@@ -25,7 +25,6 @@ export interface Settings {
|
|
|
25
25
|
companyContactEmail: string;
|
|
26
26
|
companyContactPhone: string;
|
|
27
27
|
showProductCardRating: boolean;
|
|
28
|
-
showSidebarAccommodationInfo: boolean;
|
|
29
28
|
showSidebarDeposit: boolean;
|
|
30
29
|
sidebarHeaderComponent?: JSX.Element | null;
|
|
31
30
|
sidebarFooterComponent?: JSX.Element | null;
|
|
@@ -75,18 +74,19 @@ export interface BookingAttributes {
|
|
|
75
74
|
endDate: string;
|
|
76
75
|
catalog: number;
|
|
77
76
|
rooms: Room[];
|
|
78
|
-
tourCode
|
|
79
|
-
allotmentName
|
|
80
|
-
allotmentIds: number[];
|
|
77
|
+
tourCode?: string;
|
|
78
|
+
allotmentName?: string;
|
|
81
79
|
includeFlights?: boolean;
|
|
82
80
|
}
|
|
83
81
|
export interface FlightLine {
|
|
84
82
|
departureAirportIata?: string;
|
|
85
83
|
departureAirportDescription?: string;
|
|
86
84
|
departureDate?: string;
|
|
85
|
+
departureTime?: string;
|
|
87
86
|
arrivalAirportIata?: string;
|
|
88
87
|
arrivalAirportDescription?: string;
|
|
89
88
|
arrivalDate?: string;
|
|
89
|
+
arrivalTime?: string;
|
|
90
90
|
airlineIata?: string;
|
|
91
91
|
airlineDescription?: string;
|
|
92
92
|
airlineNumber?: string;
|
|
@@ -2,5 +2,3 @@ import { Room } from "../types";
|
|
|
2
2
|
export declare const getDateFromParams: (params: URLSearchParams, name: string) => string | null;
|
|
3
3
|
export declare const getNumberFromParams: (params: URLSearchParams, name: string) => number | null;
|
|
4
4
|
export declare const getRoomsFromParams: (params: URLSearchParams, name: string) => Room[] | null;
|
|
5
|
-
export declare const getStringFromParams: (params: URLSearchParams, name: string) => string | null;
|
|
6
|
-
export declare const getNumbersFromParams: (params: URLSearchParams, name: string) => number[];
|