@duffel/components 3.7.20 → 3.7.22
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/bags/BaggageSelectionCard.d.ts +0 -1
- package/components/DuffelAncillaries/bags/BaggageSelectionController.d.ts +0 -1
- package/components/DuffelAncillaries/bags/BaggageSelectionModal.d.ts +0 -1
- package/components/DuffelAncillaries/bags/BaggageSelectionModalBody.d.ts +0 -1
- package/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.d.ts +0 -1
- package/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.d.ts +0 -1
- package/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.d.ts +0 -1
- package/components/DuffelAncillaries/bags/IncludedBaggageBanner.d.ts +0 -1
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.d.ts +0 -1
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.d.ts +0 -1
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.d.ts +0 -1
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.d.ts +0 -1
- package/components/DuffelAncillaries/seats/Amenity.d.ts +0 -1
- package/components/DuffelAncillaries/seats/Element.d.ts +0 -1
- package/components/DuffelAncillaries/seats/Legend.d.ts +0 -1
- package/components/DuffelAncillaries/seats/Row.d.ts +0 -1
- package/components/DuffelAncillaries/seats/RowSection.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatElement.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatInfo.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatMap.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatSelectionCard.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatSelectionModal.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatSelectionModalFooter.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatSelectionModalHeader.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatUnavailable.d.ts +0 -1
- package/components/DuffelCardForm/DuffelCardForm.d.ts +1 -4
- package/components/DuffelNGSView/DuffelNGSView.d.ts +2 -3
- package/components/DuffelNGSView/NGSSliceFareCard.d.ts +0 -1
- package/components/DuffelNGSView/NGSTable.d.ts +0 -1
- package/components/DuffelNGSView/SliceSummary.d.ts +0 -1
- package/components/DuffelNGSView/lib/deduplicate-mapped-offers-by-fare-brand.d.ts +3 -4
- package/components/DuffelNGSView/lib/does-slice-have-mixed-cabins.d.ts +1 -2
- package/components/DuffelNGSView/lib/filter-results.d.ts +1 -2
- package/components/DuffelNGSView/lib/get-initial-filter-values.d.ts +0 -1
- package/components/DuffelNGSView/lib/get-max-baggages-for-offer-slice.d.ts +1 -2
- package/components/DuffelNGSView/lib/getAirlines.d.ts +0 -1
- package/components/DuffelNGSView/lib/group-offers-for-ngs-view.d.ts +1 -2
- package/components/DuffelNGSView/lib/index.d.ts +0 -1
- package/components/DuffelNGSView/lib/sort-ngs-rows-by-shelf-price.d.ts +1 -2
- package/components/DuffelNGSView/lib/useFilters.d.ts +7 -20
- package/components/OfferSlice/OfferSlice.d.ts +0 -1
- package/components/OfferSlice/lib/getHighlightStyles.d.ts +1 -1
- package/components/Stays/StaysAmenities.d.ts +2 -3
- package/components/Stays/StaysRoomRateCard.d.ts +0 -1
- package/components/Stays/lib/getRateLabel.d.ts +1 -2
- package/components/Stays/lib/types.d.ts +2 -3
- package/components/shared/ErrorBoundary.d.ts +1 -1
- package/components/shared/Icon.d.ts +80 -80
- package/components/shared/SliceCarriersTitle.d.ts +0 -1
- package/fixtures/passengers/mock_passengers.d.ts +0 -1
- package/functions/createThreeDSecureSession/client.d.ts +2 -2
- package/lib/captureErrorInSentry.d.ts +1 -1
- package/lib/compileCreateOrderPayload.d.ts +1 -2
- package/lib/formatAvailableServices.d.ts +0 -1
- package/lib/getAirlinesText.d.ts +0 -1
- package/lib/getBaggageServiceDescription.d.ts +0 -1
- package/lib/getCabinsForSegmentAndDeck.d.ts +1 -3
- package/lib/getCarriers.d.ts +2 -3
- package/lib/getCurrencyForServices.d.ts +0 -1
- package/lib/getFareBrandName.d.ts +1 -1
- package/lib/getFirstSeatElementMatchingCriteria.d.ts +1 -2
- package/lib/getPassengerBySegmentList.d.ts +1 -6
- package/lib/getPassengerMapById.d.ts +2 -3
- package/lib/getPassengerName.d.ts +1 -1
- package/lib/getRowNumber.d.ts +0 -1
- package/lib/getSegmentDates.d.ts +2 -2
- package/lib/getSegmentList.d.ts +1 -3
- package/lib/getServicePriceMapById.d.ts +0 -1
- package/lib/getTotalAmountForServices.d.ts +3 -3
- package/lib/getTotalQuantity.d.ts +1 -2
- package/lib/hasAvailableSeatService.d.ts +0 -1
- package/lib/hasBaggageServiceOfSameMetadataTypeAlreadyBeenSelected.d.ts +0 -1
- package/lib/hasService.d.ts +2 -2
- package/lib/hasWings.d.ts +0 -1
- package/lib/isBaggageService.d.ts +0 -2
- package/lib/isCancelForAnyReasonService.d.ts +0 -2
- package/lib/isFixtureOfferId.d.ts +1 -2
- package/lib/isPayloadComplete.d.ts +1 -3
- package/lib/isSeatElement.d.ts +0 -1
- package/lib/offerIsExpired.d.ts +1 -2
- package/lib/retrieveOffer.d.ts +0 -1
- package/lib/retrieveSeatMaps.d.ts +0 -1
- package/package.json +1 -1
- 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/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 +3 -4
- package/stories/StaysRating.stories.d.ts +3 -3
- package/stories/StaysRoomRateCard.stories.d.ts +11 -68
- package/stories/StaysSummary.stories.d.ts +4 -28
- package/tsconfig.tsbuildinfo +1 -1
- package/types/DuffelAncillariesProps.d.ts +0 -1
- package/types/TravelDetails.d.ts +0 -1
- package/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +0 -12
- package/components/DuffelCardForm/lib/postMessageToCreateCardForTemporaryUse.d.ts +0 -1
- package/components/DuffelCardForm/lib/postMessageToSaveCard.d.ts +0 -1
- package/components/DuffelCardForm/lib/postMessageWithStyles.d.ts +0 -2
- package/components/DuffelNGSView/FilterControls.d.ts +0 -13
- package/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +0 -13
- package/components/MapboxPlacesLookup/MapboxPlacesLookupCustomElement.d.ts +0 -13
- package/components/OfferSlice/OfferSliceConditions.d.ts +0 -7
- package/components/OfferSlice/OfferSliceDetailTravelItem.d.ts +0 -9
- package/components/OfferSliceModal/OfferSliceModal.d.ts +0 -7
- package/components/Stays/StaysAmenitiesCustomElement.d.ts +0 -12
- package/components/Stays/StaysRatingCustomElement.d.ts +0 -14
- package/components/Stays/StaysRoomRateCardCustomElement.d.ts +0 -14
- package/components/Stays/StaysSummary.d.ts +0 -12
- package/components/Stays/StaysSummaryCustomElement.d.ts +0 -12
- package/custom-elements.js +0 -69
- package/custom-elements.js.map +0 -7
- package/index.js +0 -60
- package/index.js.map +0 -7
- package/stories/NGSShelfInfoCard.stories.d.ts +0 -3
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { SeatMap } from "@duffel/api/types";
|
|
3
|
-
export declare const getCabinsForSegmentAndDeck: (forDeck: number, seatMap: SeatMap) => import("@duffel/api/types").SeatMapCabin[];
|
|
1
|
+
export declare const getCabinsForSegmentAndDeck: (forDeck: number, seatMap: SeatMap) => any;
|
package/lib/getCarriers.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { Airline, OfferSliceSegment, OrderSliceSegment } from "@duffel/api/types";
|
|
1
|
+
import { OfferSliceSegment, OrderSliceSegment } from "@duffel/api/types";
|
|
3
2
|
export declare const getCarriers: (forSegments: OfferSliceSegment[] | OrderSliceSegment[]) => {
|
|
4
|
-
marketingCarrier:
|
|
3
|
+
marketingCarrier: any;
|
|
5
4
|
operatingCarriers: Airline[];
|
|
6
5
|
};
|
|
@@ -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) => any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { SeatMap, SeatMapCabinRowSectionElement } from "@duffel/api/types";
|
|
3
|
-
declare const getFirstSeatElementMatchingCriteria: (seatMaps: SeatMap[], matcher: (element: SeatMapCabinRowSectionElement) => boolean) =>
|
|
2
|
+
declare const getFirstSeatElementMatchingCriteria: (seatMaps: SeatMap[], matcher: (element: SeatMapCabinRowSectionElement) => boolean) => any;
|
|
4
3
|
export { getFirstSeatElementMatchingCriteria };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { OfferSliceSegment } from "@duffel/api/types";
|
|
3
|
-
export declare const getPassengerBySegmentList: (segments: OfferSliceSegment[]) =>
|
|
4
|
-
passenger: import("@duffel/api/types").OfferSliceSegmentPassenger;
|
|
5
|
-
passengerIndex: number;
|
|
6
|
-
segment: OfferSliceSegment;
|
|
7
|
-
}[];
|
|
2
|
+
export declare const getPassengerBySegmentList: (segments: OfferSliceSegment[]) => any[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { CreateOrder, CreateOrderPassenger } from "@duffel/api/types";
|
|
1
|
+
import { CreateOrderPassenger } from "@duffel/api/types";
|
|
3
2
|
export type PassengerMapById = Record<CreateOrderPassenger["id"], CreateOrderPassenger>;
|
|
4
|
-
export declare const getPassengerMapById: (passengers: CreateOrder
|
|
3
|
+
export declare const getPassengerMapById: (passengers: CreateOrder) => PassengerMapById;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { 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,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { OfferAvailableService } from "@duffel/api/types";
|
|
3
2
|
export type ServicePriceMapById = Record<OfferAvailableService["id"], Pick<OfferAvailableService, "total_amount" | "total_currency">>;
|
|
4
3
|
export declare const getServicePriceMapById: (availableServices: OfferAvailableService[]) => ServicePriceMapById;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SeatMap } from "@duffel/api/types";
|
|
2
2
|
import { ServicePriceMapById } from "./getServicePriceMapById";
|
|
3
|
-
export declare const getTotalAmountForServices: (offer: Offer, selectedServices: CreateOrder
|
|
4
|
-
export declare const getTotalAmountForServicesWithPriceMap: (servicePriceMap: ServicePriceMapById, selectedServices: CreateOrder
|
|
3
|
+
export declare const getTotalAmountForServices: (offer: Offer, selectedServices: CreateOrder, seatMaps?: SeatMap[]) => number;
|
|
4
|
+
export declare const getTotalAmountForServicesWithPriceMap: (servicePriceMap: ServicePriceMapById, selectedServices: CreateOrder, seatMaps?: SeatMap[]) => any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getTotalQuantity: (fromSelectedServices: CreateOrder["services"]) => number;
|
|
1
|
+
export declare const getTotalQuantity: (fromSelectedServices: CreateOrder) => any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { CreateOrderService, OfferAvailableServiceBaggage } from "@duffel/api/types";
|
|
3
2
|
import { WithBaggageServiceInformation } from "src/types";
|
|
4
3
|
export declare function hasBaggageServiceOfSameMetadataTypeAlreadyBeenSelected(selectedServices: WithBaggageServiceInformation<CreateOrderService>[], availableService: OfferAvailableServiceBaggage): boolean;
|
package/lib/hasService.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Offer
|
|
2
|
-
export declare const hasService: (offer: Offer | undefined, type: OfferAvailableService
|
|
1
|
+
import { Offer } from "@duffel/api/types";
|
|
2
|
+
export declare const hasService: (offer: Offer | undefined, type: OfferAvailableService) => any;
|
package/lib/hasWings.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const isFixtureOfferId: (offerId: Offer["id"]) => boolean;
|
|
1
|
+
export declare const isFixtureOfferId: (offerId: Offer) => boolean;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { CreateOrder } from "@duffel/api/types";
|
|
3
|
-
export declare const isPayloadComplete: (payload: Partial<CreateOrder>) => payload is CreateOrder;
|
|
1
|
+
export declare const isPayloadComplete: (payload: CreateOrder) => payload is CreateOrder;
|
package/lib/isSeatElement.d.ts
CHANGED
package/lib/offerIsExpired.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const offerIsExpired: (offer: Offer) => boolean | "";
|
|
1
|
+
export declare const offerIsExpired: (offer: Offer) => any;
|
package/lib/retrieveOffer.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { Offer } from "@duffel/api/types";
|
|
3
2
|
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,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { SeatMap } from "@duffel/api/types";
|
|
3
2
|
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,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: Meta;
|
|
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: Meta;
|
|
2
2
|
export default _default;
|
|
3
|
-
export declare const Default: () =>
|
|
3
|
+
export declare const Default: () => any;
|
|
@@ -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: Meta;
|
|
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: Meta;
|
|
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: Meta;
|
|
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: Meta;
|
|
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: Meta;
|
|
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: Meta;
|
|
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: Meta;
|
|
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: Meta;
|
|
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: Meta;
|
|
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: Meta;
|
|
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: Meta;
|
|
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: Meta;
|
|
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: Meta;
|
|
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: Meta;
|
|
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: Meta;
|
|
3
3
|
export default _default;
|
|
4
4
|
export declare const Default: React.FC;
|
|
5
5
|
export declare const WithStop: React.FC;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { StaysAmenitiesProps } from "@components/Stays/StaysAmenities";
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: Meta;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare const Default: {
|
|
6
|
-
render:
|
|
5
|
+
render: StoryFn<StaysAmenitiesProps>;
|
|
7
6
|
args: {
|
|
8
|
-
amenities:
|
|
7
|
+
amenities: any;
|
|
9
8
|
};
|
|
10
9
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { StaysRatingProps } from "@components/Stays/StaysRating";
|
|
2
|
-
declare const _default:
|
|
2
|
+
declare const _default: Meta;
|
|
3
3
|
export default _default;
|
|
4
4
|
export declare const Default: {
|
|
5
|
-
render:
|
|
5
|
+
render: StoryFn<StaysRatingProps>;
|
|
6
6
|
args: {
|
|
7
7
|
rating: number;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export declare const Small: {
|
|
11
|
-
render:
|
|
11
|
+
render: StoryFn<StaysRatingProps>;
|
|
12
12
|
args: {
|
|
13
13
|
rating: number;
|
|
14
14
|
small: boolean;
|
|
@@ -1,106 +1,49 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { StaysRoomRateCardProps } from "@components/Stays/StaysRoomRateCard";
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: Meta;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare const RateWithMinimalInformation: {
|
|
6
|
-
render:
|
|
5
|
+
render: StoryFn<{
|
|
7
6
|
roomRates: StaysRoomRateCardProps[];
|
|
8
7
|
}>;
|
|
9
8
|
args: {
|
|
10
9
|
roomRates: {
|
|
11
|
-
rate:
|
|
10
|
+
rate: any;
|
|
12
11
|
numberOfNights: number;
|
|
13
12
|
}[];
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
export declare const PayLaterRate: {
|
|
17
|
-
render:
|
|
16
|
+
render: StoryFn<{
|
|
18
17
|
roomRates: StaysRoomRateCardProps[];
|
|
19
18
|
}>;
|
|
20
19
|
args: {
|
|
21
20
|
roomRates: {
|
|
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
|
-
};
|
|
21
|
+
rate: any;
|
|
49
22
|
numberOfNights: number;
|
|
50
23
|
searchNumberOfRooms: number;
|
|
51
24
|
}[];
|
|
52
25
|
};
|
|
53
26
|
};
|
|
54
27
|
export declare const RateWithCompleteInformation: {
|
|
55
|
-
render:
|
|
28
|
+
render: StoryFn<{
|
|
56
29
|
roomRates: StaysRoomRateCardProps[];
|
|
57
30
|
}>;
|
|
58
31
|
args: {
|
|
59
32
|
roomRates: {
|
|
60
|
-
rate:
|
|
33
|
+
rate: any;
|
|
61
34
|
numberOfNights: number;
|
|
62
35
|
searchNumberOfRooms: number;
|
|
63
36
|
}[];
|
|
64
37
|
};
|
|
65
38
|
};
|
|
66
39
|
export declare const RatesCrossComparison: {
|
|
67
|
-
render:
|
|
40
|
+
render: StoryFn<{
|
|
68
41
|
roomRates: StaysRoomRateCardProps[];
|
|
69
42
|
}>;
|
|
70
43
|
args: {
|
|
71
|
-
roomRates:
|
|
72
|
-
rate:
|
|
73
|
-
numberOfNights: number;
|
|
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
|
-
};
|
|
44
|
+
roomRates: {
|
|
45
|
+
rate: any;
|
|
102
46
|
numberOfNights: number;
|
|
103
|
-
|
|
104
|
-
})[];
|
|
47
|
+
}[];
|
|
105
48
|
};
|
|
106
49
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { StaysSummaryProps } from "@components/Stays/StaysSummary";
|
|
3
|
-
|
|
4
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
2
|
+
declare const _default: Meta;
|
|
5
3
|
export default _default;
|
|
6
4
|
export declare const Default: {
|
|
7
|
-
render:
|
|
5
|
+
render: StoryFn<StaysSummaryProps>;
|
|
8
6
|
args: {
|
|
9
7
|
accommodation: StaysAccommodation;
|
|
10
8
|
checkInDate: Date;
|
|
@@ -16,31 +14,9 @@ export declare const Default: {
|
|
|
16
14
|
};
|
|
17
15
|
};
|
|
18
16
|
export declare const WithNoPhoto: {
|
|
19
|
-
render:
|
|
17
|
+
render: StoryFn<StaysSummaryProps>;
|
|
20
18
|
args: {
|
|
21
|
-
accommodation:
|
|
22
|
-
photos: never[];
|
|
23
|
-
id: string;
|
|
24
|
-
amenities: import("@duffel/api/types").StaysAmenity[] | null;
|
|
25
|
-
chain: import("@duffel/api/types").StaysChain | null;
|
|
26
|
-
check_in_information: {
|
|
27
|
-
check_out_before_time: string;
|
|
28
|
-
check_in_after_time: string;
|
|
29
|
-
} | null;
|
|
30
|
-
key_collection: import("@duffel/api/types").StaysBookingKeyCollection | null;
|
|
31
|
-
cheapest_rate_currency: string;
|
|
32
|
-
cheapest_rate_total_amount: string;
|
|
33
|
-
description?: string | undefined;
|
|
34
|
-
email: string | null;
|
|
35
|
-
location: import("@duffel/api/types").StaysLocation;
|
|
36
|
-
name: string;
|
|
37
|
-
phone_number: string | null;
|
|
38
|
-
ratings: import("@duffel/api/types").StaysRating[] | null;
|
|
39
|
-
rating: number | null;
|
|
40
|
-
review_score: number | null;
|
|
41
|
-
rooms: import("@duffel/api/types").StaysRoom[];
|
|
42
|
-
supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
|
|
43
|
-
};
|
|
19
|
+
accommodation: any;
|
|
44
20
|
checkInDate: Date;
|
|
45
21
|
checkOutDate: Date;
|
|
46
22
|
numRooms: number;
|