@duffel/components 3.12.3 → 3.13.0
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 +2 -2
- package/components/DuffelAncillaries/bags/BaggageSelectionController.d.ts +2 -1
- package/components/DuffelAncillaries/bags/BaggageSelectionModal.d.ts +2 -2
- package/components/DuffelAncillaries/bags/BaggageSelectionModalBody.d.ts +2 -2
- package/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.d.ts +2 -2
- package/custom-elements.js +16 -16
- package/custom-elements.js.map +3 -3
- package/index.js +12 -12
- package/index.js.map +3 -3
- package/lib/getBaggageServiceDescription.d.ts +2 -1
- package/package.json +3 -3
- package/stories/DuffelAncillaries.stories.d.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/types/DuffelAncillariesProps.d.ts +28 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="@duffel/api" />
|
|
2
2
|
import { CreateOrder, CreateOrderService, Offer } from "@duffel/api/types";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { WithBaggageServiceInformation } from "src/types";
|
|
5
|
-
export interface BaggageSelectionCardProps {
|
|
4
|
+
import { DuffelAncillariesCommonProps, WithBaggageServiceInformation } from "src/types";
|
|
5
|
+
export interface BaggageSelectionCardProps extends Pick<DuffelAncillariesCommonProps, "localisationStrings"> {
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
offer?: Offer;
|
|
8
8
|
passengers: CreateOrder["passengers"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="@duffel/api" />
|
|
2
2
|
import { CreateOrderService, OfferAvailableServiceBaggage } from "@duffel/api/types";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { WithBaggageServiceInformation } from "src/types";
|
|
4
|
+
import { DuffelAncillariesLocalisationStrings, WithBaggageServiceInformation } from "src/types";
|
|
5
5
|
interface BaggageSelectionControllerProps {
|
|
6
6
|
segmentId: string;
|
|
7
7
|
passengerId: string;
|
|
@@ -9,6 +9,7 @@ interface BaggageSelectionControllerProps {
|
|
|
9
9
|
selectedServices: WithBaggageServiceInformation<CreateOrderService>[];
|
|
10
10
|
quantity: number;
|
|
11
11
|
onQuantityChanged: (quantity: number) => void;
|
|
12
|
+
localisationStrings?: DuffelAncillariesLocalisationStrings;
|
|
12
13
|
}
|
|
13
14
|
export declare const BaggageSelectionController: React.FC<BaggageSelectionControllerProps>;
|
|
14
15
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="@duffel/api" />
|
|
2
2
|
import { CreateOrder, CreateOrderService, Offer } from "@duffel/api/types";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { WithBaggageServiceInformation } from "src/types";
|
|
5
|
-
export interface BaggageSelectionModalProps {
|
|
4
|
+
import { DuffelAncillariesCommonProps, WithBaggageServiceInformation } from "src/types";
|
|
5
|
+
export interface BaggageSelectionModalProps extends Pick<DuffelAncillariesCommonProps, "localisationStrings"> {
|
|
6
6
|
isOpen: boolean;
|
|
7
7
|
offer?: Offer;
|
|
8
8
|
passengers: CreateOrder["passengers"];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="@duffel/api" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { CreateOrderPassenger, CreateOrderService, Offer, OfferSliceSegment } from "@duffel/api/types";
|
|
4
|
-
import { WithBaggageServiceInformation } from "src/types";
|
|
5
|
-
export interface BaggageSelectionModalBodyProps {
|
|
4
|
+
import { DuffelAncillariesCommonProps, WithBaggageServiceInformation } from "src/types";
|
|
5
|
+
export interface BaggageSelectionModalBodyProps extends Pick<DuffelAncillariesCommonProps, "localisationStrings"> {
|
|
6
6
|
offer: Offer;
|
|
7
7
|
segment: OfferSliceSegment;
|
|
8
8
|
passengersById: Record<CreateOrderPassenger["id"], CreateOrderPassenger>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="@duffel/api" />
|
|
2
2
|
import { CreateOrderService, OfferAvailableServiceBaggage, OfferSliceSegmentPassengerBaggage } from "@duffel/api/types";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { WithBaggageServiceInformation } from "src/types";
|
|
5
|
-
export interface BaggageSelectionModalBodyPassengerProps {
|
|
4
|
+
import { DuffelAncillariesCommonProps, WithBaggageServiceInformation } from "src/types";
|
|
5
|
+
export interface BaggageSelectionModalBodyPassengerProps extends Pick<DuffelAncillariesCommonProps, "localisationStrings"> {
|
|
6
6
|
segmentId: string;
|
|
7
7
|
passengerId: string;
|
|
8
8
|
passengerName: string;
|