@duffel/components 3.7.22 → 3.7.23
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/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +12 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionCard.d.ts +1 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionController.d.ts +1 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionModal.d.ts +1 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionModalBody.d.ts +1 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.d.ts +1 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.d.ts +1 -0
- package/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.d.ts +1 -0
- package/components/DuffelAncillaries/bags/IncludedBaggageBanner.d.ts +1 -0
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.d.ts +1 -0
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.d.ts +1 -0
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.d.ts +1 -0
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.d.ts +1 -0
- package/components/DuffelAncillaries/seats/Amenity.d.ts +1 -0
- package/components/DuffelAncillaries/seats/Element.d.ts +1 -0
- package/components/DuffelAncillaries/seats/Legend.d.ts +1 -0
- package/components/DuffelAncillaries/seats/Row.d.ts +1 -0
- package/components/DuffelAncillaries/seats/RowSection.d.ts +1 -0
- package/components/DuffelAncillaries/seats/SeatElement.d.ts +1 -0
- package/components/DuffelAncillaries/seats/SeatInfo.d.ts +1 -0
- package/components/DuffelAncillaries/seats/SeatMap.d.ts +1 -0
- package/components/DuffelAncillaries/seats/SeatSelectionCard.d.ts +1 -0
- package/components/DuffelAncillaries/seats/SeatSelectionModal.d.ts +1 -0
- package/components/DuffelAncillaries/seats/SeatSelectionModalFooter.d.ts +1 -0
- package/components/DuffelAncillaries/seats/SeatSelectionModalHeader.d.ts +1 -0
- package/components/DuffelAncillaries/seats/SeatUnavailable.d.ts +1 -0
- package/components/DuffelCardForm/DuffelCardForm.d.ts +4 -1
- package/components/DuffelCardForm/lib/postMessageToCreateCardForTemporaryUse.d.ts +1 -0
- package/components/DuffelCardForm/lib/postMessageToSaveCard.d.ts +1 -0
- package/components/DuffelCardForm/lib/postMessageWithStyles.d.ts +2 -0
- package/components/DuffelNGSView/DuffelNGSView.d.ts +3 -2
- package/components/DuffelNGSView/FilterControls.d.ts +13 -0
- package/components/DuffelNGSView/NGSSliceFareCard.d.ts +1 -0
- package/components/DuffelNGSView/NGSTable.d.ts +1 -0
- package/components/DuffelNGSView/SliceSummary.d.ts +1 -0
- package/components/DuffelNGSView/lib/deduplicate-mapped-offers-by-fare-brand.d.ts +4 -3
- package/components/DuffelNGSView/lib/does-slice-have-mixed-cabins.d.ts +2 -1
- package/components/DuffelNGSView/lib/filter-results.d.ts +2 -1
- package/components/DuffelNGSView/lib/get-initial-filter-values.d.ts +1 -0
- package/components/DuffelNGSView/lib/get-max-baggages-for-offer-slice.d.ts +2 -1
- package/components/DuffelNGSView/lib/getAirlines.d.ts +1 -0
- package/components/DuffelNGSView/lib/group-offers-for-ngs-view.d.ts +2 -1
- package/components/DuffelNGSView/lib/index.d.ts +1 -0
- package/components/DuffelNGSView/lib/sort-ngs-rows-by-shelf-price.d.ts +2 -1
- package/components/DuffelNGSView/lib/useFilters.d.ts +20 -7
- package/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +13 -0
- package/components/MapboxPlacesLookup/MapboxPlacesLookupCustomElement.d.ts +13 -0
- package/components/OfferSlice/OfferSlice.d.ts +1 -0
- package/components/OfferSlice/OfferSliceConditions.d.ts +7 -0
- package/components/OfferSlice/OfferSliceDetailTravelItem.d.ts +9 -0
- package/components/OfferSlice/lib/getHighlightStyles.d.ts +1 -1
- package/components/OfferSliceModal/OfferSliceModal.d.ts +7 -0
- package/components/Stays/StaysAmenities.d.ts +3 -2
- package/components/Stays/StaysAmenitiesCustomElement.d.ts +12 -0
- package/components/Stays/StaysRatingCustomElement.d.ts +14 -0
- package/components/Stays/StaysRoomRateCard.d.ts +1 -0
- package/components/Stays/StaysRoomRateCardCustomElement.d.ts +14 -0
- package/components/Stays/StaysSummary.d.ts +12 -0
- package/components/Stays/StaysSummaryCustomElement.d.ts +12 -0
- package/components/Stays/lib/getRateLabel.d.ts +2 -1
- package/components/Stays/lib/types.d.ts +3 -2
- package/components/shared/ErrorBoundary.d.ts +1 -1
- package/components/shared/Icon.d.ts +80 -80
- package/components/shared/SliceCarriersTitle.d.ts +1 -0
- package/custom-elements.js +70 -0
- package/custom-elements.js.map +7 -0
- package/fixtures/passengers/mock_passengers.d.ts +1 -0
- package/index.js +61 -0
- package/index.js.map +7 -0
- package/lib/captureErrorInSentry.d.ts +1 -1
- package/lib/compileCreateOrderPayload.d.ts +2 -1
- package/lib/formatAvailableServices.d.ts +1 -0
- package/lib/getAirlinesText.d.ts +1 -0
- package/lib/getBaggageServiceDescription.d.ts +1 -0
- package/lib/getCabinsForSegmentAndDeck.d.ts +3 -1
- package/lib/getCarriers.d.ts +3 -2
- package/lib/getCurrencyForServices.d.ts +1 -0
- package/lib/getFareBrandName.d.ts +1 -1
- package/lib/getFirstSeatElementMatchingCriteria.d.ts +2 -1
- package/lib/getPassengerBySegmentList.d.ts +6 -1
- package/lib/getPassengerMapById.d.ts +3 -2
- package/lib/getPassengerName.d.ts +1 -1
- package/lib/getRowNumber.d.ts +1 -0
- package/lib/getSegmentDates.d.ts +2 -2
- package/lib/getSegmentList.d.ts +3 -1
- package/lib/getServicePriceMapById.d.ts +1 -0
- package/lib/getTotalAmountForServices.d.ts +3 -3
- package/lib/getTotalQuantity.d.ts +2 -1
- package/lib/hasAvailableSeatService.d.ts +1 -0
- package/lib/hasBaggageServiceOfSameMetadataTypeAlreadyBeenSelected.d.ts +1 -0
- package/lib/hasService.d.ts +2 -2
- package/lib/hasWings.d.ts +1 -0
- package/lib/isBaggageService.d.ts +2 -0
- package/lib/isCancelForAnyReasonService.d.ts +2 -0
- package/lib/isFixtureOfferId.d.ts +2 -1
- package/lib/isPayloadComplete.d.ts +3 -1
- package/lib/isSeatElement.d.ts +1 -0
- package/lib/offerIsExpired.d.ts +2 -1
- package/lib/retrieveOffer.d.ts +1 -0
- package/lib/retrieveSeatMaps.d.ts +1 -0
- package/package.json +25 -22
- package/stories/AirlineLogo.stories.d.ts +1 -1
- package/stories/AirlineSelector.stories.d.ts +2 -2
- package/stories/BaggageSelectionModalHeader.stories.d.ts +1 -1
- package/stories/Button.stories.d.ts +1 -1
- package/stories/DuffelAncillaries.stories.d.ts +1 -1
- package/stories/DuffelCardForm.stories.d.ts +1 -1
- package/stories/DuffelNGSView.stories.d.ts +1 -1
- package/stories/DuffelPayments.stories.d.ts +1 -1
- package/stories/Icon.stories.d.ts +1 -1
- package/stories/IconButton.stories.d.ts +1 -1
- package/stories/MapboxPlacesLookup.stories.d.ts +1 -1
- package/stories/NGSShelfInfoCard.stories.d.ts +3 -0
- package/stories/NGSSliceFareCard.stories.d.ts +1 -1
- package/stories/OfferSlice.stories.d.ts +1 -1
- package/stories/OfferSliceModal.stories.d.ts +1 -1
- package/stories/PlacesLookup.stories.d.ts +1 -1
- package/stories/SliceCarriersTitle.stories.d.ts +1 -1
- package/stories/SliceSummary.stories.d.ts +1 -1
- package/stories/StaysAmenities.stories.d.ts +4 -3
- package/stories/StaysRating.stories.d.ts +3 -3
- package/stories/StaysRoomRateCard.stories.d.ts +68 -11
- package/stories/StaysSummary.stories.d.ts +28 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/types/DuffelAncillariesProps.d.ts +1 -0
- package/types/TravelDetails.d.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const captureErrorInSentry: (error: Error) =>
|
|
1
|
+
export declare const captureErrorInSentry: (error: Error) => string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
1
2
|
import { CreateOrder, Offer, SeatMap } from "@duffel/api/types";
|
|
2
3
|
import { DuffelAncillariesProps } from "src/types";
|
|
3
4
|
interface CompileCreateOrderPayloadInput {
|
|
@@ -8,5 +9,5 @@ interface CompileCreateOrderPayloadInput {
|
|
|
8
9
|
cfarSelectedServices: CreateOrder["services"];
|
|
9
10
|
seatMaps?: SeatMap[];
|
|
10
11
|
}
|
|
11
|
-
export declare const compileCreateOrderPayload: ({ baggageSelectedServices, seatSelectedServices, cfarSelectedServices, offer, seatMaps, passengers, }: CompileCreateOrderPayloadInput) => CreateOrder
|
|
12
|
+
export declare const compileCreateOrderPayload: ({ baggageSelectedServices, seatSelectedServices, cfarSelectedServices, offer, seatMaps, passengers, }: CompileCreateOrderPayloadInput) => Partial<CreateOrder>;
|
|
12
13
|
export {};
|
package/lib/getAirlinesText.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
2
|
+
import { SeatMap } from "@duffel/api/types";
|
|
3
|
+
export declare const getCabinsForSegmentAndDeck: (forDeck: number, seatMap: SeatMap) => import("@duffel/api/types").SeatMapCabin[];
|
package/lib/getCarriers.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
2
|
+
import { Airline, OfferSliceSegment, OrderSliceSegment } from "@duffel/api/types";
|
|
2
3
|
export declare const getCarriers: (forSegments: OfferSliceSegment[] | OrderSliceSegment[]) => {
|
|
3
|
-
marketingCarrier:
|
|
4
|
+
marketingCarrier: Airline | null;
|
|
4
5
|
operatingCarriers: Airline[];
|
|
5
6
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { OfferSliceSegment, OrderSliceSegment } from "@duffel/api/types";
|
|
2
|
-
export declare const getFareBrandName: (fareBrandName: string | null, forSegment: OfferSliceSegment | OrderSliceSegment) =>
|
|
2
|
+
export declare const getFareBrandName: (fareBrandName: string | null, forSegment: OfferSliceSegment | OrderSliceSegment) => string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
1
2
|
import { SeatMap, SeatMapCabinRowSectionElement } from "@duffel/api/types";
|
|
2
|
-
declare const getFirstSeatElementMatchingCriteria: (seatMaps: SeatMap[], matcher: (element: SeatMapCabinRowSectionElement) => boolean) =>
|
|
3
|
+
declare const getFirstSeatElementMatchingCriteria: (seatMaps: SeatMap[], matcher: (element: SeatMapCabinRowSectionElement) => boolean) => SeatMapCabinRowSectionElement | undefined;
|
|
3
4
|
export { getFirstSeatElementMatchingCriteria };
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
1
2
|
import { OfferSliceSegment } from "@duffel/api/types";
|
|
2
|
-
export declare const getPassengerBySegmentList: (segments: OfferSliceSegment[]) =>
|
|
3
|
+
export declare const getPassengerBySegmentList: (segments: OfferSliceSegment[]) => {
|
|
4
|
+
passenger: import("@duffel/api/types").OfferSliceSegmentPassenger;
|
|
5
|
+
passengerIndex: number;
|
|
6
|
+
segment: OfferSliceSegment;
|
|
7
|
+
}[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
2
|
+
import { CreateOrder, CreateOrderPassenger } from "@duffel/api/types";
|
|
2
3
|
export type PassengerMapById = Record<CreateOrderPassenger["id"], CreateOrderPassenger>;
|
|
3
|
-
export declare const getPassengerMapById: (passengers: CreateOrder) => PassengerMapById;
|
|
4
|
+
export declare const getPassengerMapById: (passengers: CreateOrder["passengers"]) => PassengerMapById;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OfferPassenger } from "@duffel/api/types";
|
|
1
|
+
import { CreateOrderPassenger, OfferPassenger } from "@duffel/api/types";
|
|
2
2
|
export declare const getPassengerName: (createOrderPayloadPassenger: CreateOrderPassenger, offerPassenger: OfferPassenger | undefined, fallbackIndex: number) => string;
|
package/lib/getRowNumber.d.ts
CHANGED
package/lib/getSegmentDates.d.ts
CHANGED
package/lib/getSegmentList.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
1
2
|
import { OfferAvailableService } from "@duffel/api/types";
|
|
2
3
|
export type ServicePriceMapById = Record<OfferAvailableService["id"], Pick<OfferAvailableService, "total_amount" | "total_currency">>;
|
|
3
4
|
export declare const getServicePriceMapById: (availableServices: OfferAvailableService[]) => ServicePriceMapById;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SeatMap } from "@duffel/api/types";
|
|
1
|
+
import { CreateOrder, Offer, SeatMap } from "@duffel/api/types";
|
|
2
2
|
import { ServicePriceMapById } from "./getServicePriceMapById";
|
|
3
|
-
export declare const getTotalAmountForServices: (offer: Offer, selectedServices: CreateOrder, seatMaps?: SeatMap[]) => number;
|
|
4
|
-
export declare const getTotalAmountForServicesWithPriceMap: (servicePriceMap: ServicePriceMapById, selectedServices: CreateOrder, seatMaps?: SeatMap[]) =>
|
|
3
|
+
export declare const getTotalAmountForServices: (offer: Offer, selectedServices: CreateOrder["services"], seatMaps?: SeatMap[]) => number;
|
|
4
|
+
export declare const getTotalAmountForServicesWithPriceMap: (servicePriceMap: ServicePriceMapById, selectedServices: CreateOrder["services"], seatMaps?: SeatMap[]) => number;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { CreateOrder } from "@duffel/api/types";
|
|
2
|
+
export declare const getTotalQuantity: (fromSelectedServices: CreateOrder["services"]) => number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
1
2
|
import { CreateOrderService, OfferAvailableServiceBaggage } from "@duffel/api/types";
|
|
2
3
|
import { WithBaggageServiceInformation } from "src/types";
|
|
3
4
|
export declare function hasBaggageServiceOfSameMetadataTypeAlreadyBeenSelected(selectedServices: WithBaggageServiceInformation<CreateOrderService>[], availableService: OfferAvailableServiceBaggage): boolean;
|
package/lib/hasService.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Offer } from "@duffel/api/types";
|
|
2
|
-
export declare const hasService: (offer: Offer | undefined, type: OfferAvailableService) =>
|
|
1
|
+
import { Offer, OfferAvailableService } from "@duffel/api/types";
|
|
2
|
+
export declare const hasService: (offer: Offer | undefined, type: OfferAvailableService["type"]) => boolean | undefined;
|
package/lib/hasWings.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Offer } from "@duffel/api/types";
|
|
2
|
+
export declare const isFixtureOfferId: (offerId: Offer["id"]) => boolean;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
2
|
+
import { CreateOrder } from "@duffel/api/types";
|
|
3
|
+
export declare const isPayloadComplete: (payload: Partial<CreateOrder>) => payload is CreateOrder;
|
package/lib/isSeatElement.d.ts
CHANGED
package/lib/offerIsExpired.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Offer } from "@duffel/api/types";
|
|
2
|
+
export declare const offerIsExpired: (offer: Offer) => boolean | "";
|
package/lib/retrieveOffer.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
1
2
|
import { Offer } from "@duffel/api/types";
|
|
2
3
|
export declare function retrieveOffer(offer_id: string, client_key: string | null, onError: (error: string) => void, setIsLoading: (isLoading: boolean) => void, onOfferReady: (offer: Offer) => void): Promise<void>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
1
2
|
import { SeatMap } from "@duffel/api/types";
|
|
2
3
|
export declare function retrieveSeatMaps(offer_id: string, client_key: string | null, onError: () => void, setIsLoading: (isLoading: boolean) => void, onSeatMapReady: (seatMaps: SeatMap[]) => void): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duffel/components",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.23",
|
|
4
4
|
"description": "Component library to build your travel product with Duffel.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Duffel",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"create-local-ssl-certificate": "bash ./scripts/create-local-ssl-certificate.sh"
|
|
48
48
|
},
|
|
49
49
|
"resolutions": {
|
|
50
|
-
"@babel/traverse": "7.25.
|
|
50
|
+
"@babel/traverse": "7.25.7",
|
|
51
51
|
"semver": "7.5.4"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@duffel/api": "2.14.
|
|
55
|
-
"@sentry/browser": "7.
|
|
54
|
+
"@duffel/api": "2.14.4",
|
|
55
|
+
"@sentry/browser": "7.119.2",
|
|
56
56
|
"@stripe/react-stripe-js": "2.1.0",
|
|
57
57
|
"@stripe/stripe-js": "1.54.2",
|
|
58
58
|
"classnames": "2.3.2",
|
|
@@ -65,23 +65,26 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@aashutoshrathi/word-wrap": "1.2.6",
|
|
68
|
-
"@babel/core": "7.25.
|
|
69
|
-
"@babel/preset-env": "7.25.
|
|
70
|
-
"@babel/preset-react": "7.
|
|
71
|
-
"@babel/preset-typescript": "7.
|
|
72
|
-
"@
|
|
68
|
+
"@babel/core": "7.25.8",
|
|
69
|
+
"@babel/preset-env": "7.25.8",
|
|
70
|
+
"@babel/preset-react": "7.25.7",
|
|
71
|
+
"@babel/preset-typescript": "7.25.7",
|
|
72
|
+
"@chromatic-com/storybook": "1.9.0",
|
|
73
|
+
"@sentry/cli": "2.37.0",
|
|
73
74
|
"@sentry/esbuild-plugin": "0.7.2",
|
|
74
|
-
"@storybook/addon-essentials": "
|
|
75
|
-
"@storybook/addon-interactions": "
|
|
76
|
-
"@storybook/addon-links": "
|
|
77
|
-
"@storybook/
|
|
78
|
-
"@storybook/
|
|
79
|
-
"@storybook/react
|
|
80
|
-
"@storybook/
|
|
75
|
+
"@storybook/addon-essentials": "8.3.5",
|
|
76
|
+
"@storybook/addon-interactions": "8.3.5",
|
|
77
|
+
"@storybook/addon-links": "8.3.5",
|
|
78
|
+
"@storybook/addon-webpack5-compiler-swc": "1.0.5",
|
|
79
|
+
"@storybook/blocks": "8.3.5",
|
|
80
|
+
"@storybook/react": "8.3.5",
|
|
81
|
+
"@storybook/react-webpack5": "8.3.5",
|
|
82
|
+
"@storybook/test": "8.3.5",
|
|
83
|
+
"@storybook/types": "8.3.5",
|
|
81
84
|
"@testing-library/react": "14.3.1",
|
|
82
|
-
"@types/jest": "29.5.
|
|
83
|
-
"@types/lodash": "4.17.
|
|
84
|
-
"@types/node": "18.19.
|
|
85
|
+
"@types/jest": "29.5.13",
|
|
86
|
+
"@types/lodash": "4.17.10",
|
|
87
|
+
"@types/node": "18.19.55",
|
|
85
88
|
"@types/prompts": "2.4.9",
|
|
86
89
|
"@types/react": "18.2.33",
|
|
87
90
|
"@types/react-dom": "18.2.14",
|
|
@@ -98,7 +101,7 @@
|
|
|
98
101
|
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
99
102
|
"eslint-plugin-react": "7.33.2",
|
|
100
103
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
101
|
-
"eslint-plugin-storybook": "0.
|
|
104
|
+
"eslint-plugin-storybook": "0.9.0",
|
|
102
105
|
"http-server": "14.1.1",
|
|
103
106
|
"jest": "29.7.0",
|
|
104
107
|
"jest-environment-jsdom": "29.7.0",
|
|
@@ -107,12 +110,12 @@
|
|
|
107
110
|
"prompts": "2.4.2",
|
|
108
111
|
"prop-types": "15.8.1",
|
|
109
112
|
"puppeteer": "22.4.1",
|
|
110
|
-
"storybook": "
|
|
113
|
+
"storybook": "8.3.5",
|
|
111
114
|
"ts-node": "10.9.2",
|
|
112
115
|
"tsconfig-paths-webpack-plugin": "4.0.1",
|
|
113
116
|
"typescript": "5.2.2"
|
|
114
117
|
},
|
|
115
|
-
"packageManager": "yarn@4.0
|
|
118
|
+
"packageManager": "yarn@4.5.0",
|
|
116
119
|
"engines": {
|
|
117
120
|
"node": ">=18.*"
|
|
118
121
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
3
3
|
export default _default;
|
|
4
4
|
export declare const FullList: React.FC;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
2
2
|
export default _default;
|
|
3
|
-
export declare const Default: () =>
|
|
3
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from "@storybook/react";
|
|
2
2
|
import { BaggageSelectionModalHeader } from "../components/DuffelAncillaries/bags/BaggageSelectionModalHeader";
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
type Story = StoryObj<typeof BaggageSelectionModalHeader>;
|
|
6
6
|
export declare const FirstStory: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryFn, StoryObj } from "@storybook/react";
|
|
2
2
|
import { Button, ButtonProps } from "../components/shared/Button";
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
type ButtonStory = StoryObj<typeof Button>;
|
|
6
6
|
export declare const Default: ButtonStory;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StoryFn, StoryObj } from "@storybook/react";
|
|
2
2
|
import { DuffelAncillaries } from "../components/DuffelAncillaries/DuffelAncillaries";
|
|
3
3
|
import { DuffelAncillariesPropsWithOffersAndSeatMaps } from "../types/DuffelAncillariesProps";
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
5
5
|
export default _default;
|
|
6
6
|
type DuffelAncillariesStory = StoryObj<typeof DuffelAncillaries>;
|
|
7
7
|
export declare const AllServices: DuffelAncillariesStory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DuffelCardForm } from "@components/DuffelCardForm/DuffelCardForm";
|
|
2
2
|
import type { StoryObj } from "@storybook/react";
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
type DuffelCardFormStory = StoryObj<typeof DuffelCardForm>;
|
|
6
6
|
export declare const Default: DuffelCardFormStory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryFn } from "@storybook/react";
|
|
2
2
|
import { DuffelNGSViewProps } from "../components/DuffelNGSView/DuffelNGSView";
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: StoryFn<DuffelNGSViewProps>;
|
|
6
6
|
export declare const Deduplicated: StoryFn<DuffelNGSViewProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from "@storybook/react";
|
|
2
2
|
import { DuffelPayments } from "../components/DuffelPayments/DuffelPayments";
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
type DuffelPaymentsStory = StoryObj<typeof DuffelPayments>;
|
|
6
6
|
export declare const Default: DuffelPaymentsStory;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
3
3
|
export default _default;
|
|
4
4
|
export declare const FullList: React.FC;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoryObj } from "@storybook/react";
|
|
2
2
|
import { IconButton } from "../components/shared/IconButton";
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
type IconButtonStory = StoryObj<typeof IconButton>;
|
|
6
6
|
export declare const Default: IconButtonStory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "../styles/components/PlacesLookup.css";
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: React.FC;
|
|
6
6
|
export declare const WithStyles: React.FC;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
3
3
|
export default _default;
|
|
4
4
|
export declare const FullList: React.FC;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
3
3
|
export default _default;
|
|
4
4
|
export declare const Default: React.FC;
|
|
5
5
|
export declare const WithStop: React.FC;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
3
3
|
export default _default;
|
|
4
4
|
export declare const Default: React.FC;
|
|
5
5
|
export declare const WithStop: React.FC;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
3
3
|
export default _default;
|
|
4
4
|
export declare const Default: React.FC;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SliceCarriersTitle } from "@components/shared/SliceCarriersTitle";
|
|
2
2
|
import { StoryObj } from "@storybook/react";
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
type SliceCarriersTitleStory = StoryObj<typeof SliceCarriersTitle>;
|
|
6
6
|
export declare const OneSegmentWithSameOperatingCarrier: SliceCarriersTitleStory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
3
3
|
export default _default;
|
|
4
4
|
export declare const Default: React.FC;
|
|
5
5
|
export declare const WithStop: React.FC;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
1
2
|
import { StaysAmenitiesProps } from "@components/Stays/StaysAmenities";
|
|
2
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
3
4
|
export default _default;
|
|
4
5
|
export declare const Default: {
|
|
5
|
-
render:
|
|
6
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysAmenitiesProps>;
|
|
6
7
|
args: {
|
|
7
|
-
amenities:
|
|
8
|
+
amenities: import("@duffel/api/types").StaysAmenity[] | null;
|
|
8
9
|
};
|
|
9
10
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { StaysRatingProps } from "@components/Stays/StaysRating";
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
3
3
|
export default _default;
|
|
4
4
|
export declare const Default: {
|
|
5
|
-
render:
|
|
5
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysRatingProps>;
|
|
6
6
|
args: {
|
|
7
7
|
rating: number;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export declare const Small: {
|
|
11
|
-
render:
|
|
11
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysRatingProps>;
|
|
12
12
|
args: {
|
|
13
13
|
rating: number;
|
|
14
14
|
small: boolean;
|
|
@@ -1,49 +1,106 @@
|
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
1
2
|
import { StaysRoomRateCardProps } from "@components/Stays/StaysRoomRateCard";
|
|
2
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
|
|
3
4
|
export default _default;
|
|
4
5
|
export declare const RateWithMinimalInformation: {
|
|
5
|
-
render:
|
|
6
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, {
|
|
6
7
|
roomRates: StaysRoomRateCardProps[];
|
|
7
8
|
}>;
|
|
8
9
|
args: {
|
|
9
10
|
roomRates: {
|
|
10
|
-
rate:
|
|
11
|
+
rate: import("@duffel/api/types").StaysRoomRate;
|
|
11
12
|
numberOfNights: number;
|
|
12
13
|
}[];
|
|
13
14
|
};
|
|
14
15
|
};
|
|
15
16
|
export declare const PayLaterRate: {
|
|
16
|
-
render:
|
|
17
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, {
|
|
17
18
|
roomRates: StaysRoomRateCardProps[];
|
|
18
19
|
}>;
|
|
19
20
|
args: {
|
|
20
21
|
roomRates: {
|
|
21
|
-
rate:
|
|
22
|
+
rate: {
|
|
23
|
+
available_payment_methods: string[];
|
|
24
|
+
payment_type: string;
|
|
25
|
+
source: string;
|
|
26
|
+
id: string;
|
|
27
|
+
cancellation_timeline: {
|
|
28
|
+
refund_amount: string;
|
|
29
|
+
currency: string;
|
|
30
|
+
before: string;
|
|
31
|
+
}[];
|
|
32
|
+
quantity_available: number | null;
|
|
33
|
+
base_amount: string | null;
|
|
34
|
+
base_currency: string;
|
|
35
|
+
board_type: "room_only" | "breakfast" | "half_board" | "full_board" | "all_inclusive";
|
|
36
|
+
conditions: import("@duffel/api/types").StaysRateCondition[];
|
|
37
|
+
due_at_accommodation_amount: string | null;
|
|
38
|
+
due_at_accommodation_currency: string;
|
|
39
|
+
supplier: "priceline";
|
|
40
|
+
fee_amount: string | null;
|
|
41
|
+
fee_currency: string;
|
|
42
|
+
tax_amount: string | null;
|
|
43
|
+
tax_currency: string;
|
|
44
|
+
total_amount: string;
|
|
45
|
+
total_currency: string;
|
|
46
|
+
payment_method: import("@duffel/api/types").StaysPaymentType;
|
|
47
|
+
supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
|
|
48
|
+
};
|
|
22
49
|
numberOfNights: number;
|
|
23
50
|
searchNumberOfRooms: number;
|
|
24
51
|
}[];
|
|
25
52
|
};
|
|
26
53
|
};
|
|
27
54
|
export declare const RateWithCompleteInformation: {
|
|
28
|
-
render:
|
|
55
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, {
|
|
29
56
|
roomRates: StaysRoomRateCardProps[];
|
|
30
57
|
}>;
|
|
31
58
|
args: {
|
|
32
59
|
roomRates: {
|
|
33
|
-
rate:
|
|
60
|
+
rate: import("@duffel/api/types").StaysRoomRate;
|
|
34
61
|
numberOfNights: number;
|
|
35
62
|
searchNumberOfRooms: number;
|
|
36
63
|
}[];
|
|
37
64
|
};
|
|
38
65
|
};
|
|
39
66
|
export declare const RatesCrossComparison: {
|
|
40
|
-
render:
|
|
67
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, {
|
|
41
68
|
roomRates: StaysRoomRateCardProps[];
|
|
42
69
|
}>;
|
|
43
70
|
args: {
|
|
44
|
-
roomRates: {
|
|
45
|
-
rate:
|
|
71
|
+
roomRates: ({
|
|
72
|
+
rate: import("@duffel/api/types").StaysRoomRate;
|
|
46
73
|
numberOfNights: number;
|
|
47
|
-
}
|
|
74
|
+
} | {
|
|
75
|
+
rate: {
|
|
76
|
+
available_payment_methods: string[];
|
|
77
|
+
payment_type: string;
|
|
78
|
+
source: string;
|
|
79
|
+
id: string;
|
|
80
|
+
cancellation_timeline: {
|
|
81
|
+
refund_amount: string;
|
|
82
|
+
currency: string;
|
|
83
|
+
before: string;
|
|
84
|
+
}[];
|
|
85
|
+
quantity_available: number | null;
|
|
86
|
+
base_amount: string | null;
|
|
87
|
+
base_currency: string;
|
|
88
|
+
board_type: "room_only" | "breakfast" | "half_board" | "full_board" | "all_inclusive";
|
|
89
|
+
conditions: import("@duffel/api/types").StaysRateCondition[];
|
|
90
|
+
due_at_accommodation_amount: string | null;
|
|
91
|
+
due_at_accommodation_currency: string;
|
|
92
|
+
supplier: "priceline";
|
|
93
|
+
fee_amount: string | null;
|
|
94
|
+
fee_currency: string;
|
|
95
|
+
tax_amount: string | null;
|
|
96
|
+
tax_currency: string;
|
|
97
|
+
total_amount: string;
|
|
98
|
+
total_currency: string;
|
|
99
|
+
payment_method: import("@duffel/api/types").StaysPaymentType;
|
|
100
|
+
supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
|
|
101
|
+
};
|
|
102
|
+
numberOfNights: number;
|
|
103
|
+
searchNumberOfRooms: number;
|
|
104
|
+
})[];
|
|
48
105
|
};
|
|
49
106
|
};
|