@qite/tide-components 1.0.4 → 1.0.6

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.
@@ -8,6 +8,7 @@ interface TrajectNodeCardProps {
8
8
  languageCode?: string;
9
9
  translations: any;
10
10
  onSelect: () => void;
11
+ onEditOptions?: () => void;
11
12
  showNights?: boolean;
12
13
  }
13
14
  declare const TrajectNodeCard: React.FC<TrajectNodeCardProps>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface TrajectResultsFlyInProps {
3
+ isLoading?: boolean;
4
+ }
5
+ declare const TrajectResultsFlyIn: React.FC<TrajectResultsFlyInProps>;
6
+ export default TrajectResultsFlyIn;
@@ -42,6 +42,7 @@ export interface SearchResultsState {
42
42
  trajectNodeAvailability: Record<string, TrajectNodeAvailability>;
43
43
  /** Per-flight-node one-way search results, keyed by the entry line guid. */
44
44
  trajectFlightAvailability: Record<string, TrajectFlightAvailability>;
45
+ trajectEditLineGuid: string | null;
45
46
  }
46
47
  export type TrajectNodeStatus = 'idle' | 'loading' | 'resolved' | 'unavailable';
47
48
  export interface TrajectNodeAvailability {
@@ -85,6 +86,9 @@ export declare const setResults: import("@reduxjs/toolkit").ActionCreatorWithPay
85
86
  }, "searchResults/setTrajectFlightAvailability">, setTrajectFlightSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
86
87
  lineGuid: string;
87
88
  guid: string;
88
- }, "searchResults/setTrajectFlightSelection">, resetTrajectAvailability: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"searchResults/resetTrajectAvailability">, updateEditableEntryLine: import("@reduxjs/toolkit").ActionCreatorWithPayload<PackagingEntryLine, "searchResults/updateEditableEntryLine">, removeEditableEntryLines: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "searchResults/removeEditableEntryLines">;
89
+ }, "searchResults/setTrajectFlightSelection">, setTrajectEditLineGuid: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "searchResults/setTrajectEditLineGuid">, updateTrajectNodeResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
90
+ lineGuid: string;
91
+ result: PackagingAccommodationResponse;
92
+ }, "searchResults/updateTrajectNodeResult">, resetTrajectAvailability: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"searchResults/resetTrajectAvailability">, updateEditableEntryLine: import("@reduxjs/toolkit").ActionCreatorWithPayload<PackagingEntryLine, "searchResults/updateEditableEntryLine">, removeEditableEntryLines: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "searchResults/removeEditableEntryLines">;
89
93
  declare const _default: import("@reduxjs/toolkit").Reducer<SearchResultsState>;
90
94
  export default _default;
@@ -39,6 +39,7 @@ export interface SearchResultsConfiguration {
39
39
  onFlightBook?: (result: ExtendedFlightSearchResponseItem) => void;
40
40
  packagingEntry?: PackagingEntry | null;
41
41
  trajectEntry?: PackagingTrajectResponse | null;
42
+ showNonPreferredItems?: boolean;
42
43
  generatePaymentUrl?: boolean;
43
44
  entryStatus?: number;
44
45
  customEntryStatusId?: number;
@@ -4,6 +4,7 @@ export declare const CONNECTING_TRAJECT_NODE_TYPE = 1;
4
4
  export interface TrajectNodeWithLine {
5
5
  node: PackagingTrajectNode;
6
6
  line: PackagingEntryLine;
7
+ lines: PackagingEntryLine[];
7
8
  }
8
9
  export declare const isSearchableTrajectNode: (node: PackagingTrajectNode) => boolean;
9
10
  export declare const isTrajectFlightNode: (node: PackagingTrajectNode) => boolean;
@@ -24,7 +25,8 @@ export declare const findCandidateForResult: (node: PackagingTrajectNode, result
24
25
  export declare const matchesCode: (result: PackagingAccommodationResponse, code: string) => boolean;
25
26
  export declare const getPackagingRoomsFromEntry: (entry: PackagingEntry) => PackagingRoom[];
26
27
  export declare const pickCheapest: (results: PackagingAccommodationResponse[]) => PackagingAccommodationResponse | null;
27
- export declare const applyResultToLine: (line: PackagingEntryLine, result: PackagingAccommodationResponse) => PackagingEntryLine;
28
+ export declare const applyResultToLines: (lines: PackagingEntryLine[], result: PackagingAccommodationResponse) => PackagingEntryLine[];
29
+ export declare const applyResultToLine: (line: PackagingEntryLine, result: PackagingAccommodationResponse, roomIndex?: number) => PackagingEntryLine;
28
30
  export declare const buildTrajectFlightRequest: ({ node, line }: TrajectNodeWithLine, context: TrajectSearchContext, pax: FlightSearchRequest["pax"]) => FlightSearchRequest;
29
31
  export declare const pickCheapestFlight: (flights: PackagingFlightResponse[]) => PackagingFlightResponse | null;
30
32
  export declare const applyFlightToLine: (line: PackagingEntryLine, flight: PackagingFlightResponse) => PackagingEntryLine;
@@ -39,6 +39,7 @@ export interface SharedTravelersFormProps {
39
39
  onBookingTypeChange?: (bookingType: string) => void;
40
40
  }
41
41
  export declare function isBabyAge(age?: number | null, maxBabyAge?: number): boolean;
42
+ export declare function formatBirthDate(birthDate?: string): string;
42
43
  export declare function createTraveler(traveler: RoomTraveler, followNumber: {
43
44
  number: number;
44
45
  }, personTranslation?: string, isCompact?: boolean, maxBabyAge?: number): Traveler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-components",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "React components for Tide (booking, product availability, form, ...)",
5
5
  "main": "build/build-cjs/index.js",
6
6
  "types": "build/build-cjs/src/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  "devDependencies": {
37
37
  "@jsonurl/jsonurl": "^1.1.4",
38
38
  "@popperjs/core": "^2.10.2",
39
- "@qite/tide-client": "^2.0.13",
39
+ "@qite/tide-client": "^2.0.15",
40
40
  "@reduxjs/toolkit": "^2.8.2",
41
41
  "@rollup/plugin-commonjs": "^19.0.1",
42
42
  "@rollup/plugin-json": "^4.1.0",