@duffel/components 3.13.0 → 3.13.1
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/Stays/StaysSummary.d.ts +1 -0
- package/custom-elements.js +23 -23
- package/custom-elements.js.map +3 -3
- package/index.js +8 -8
- package/index.js.map +3 -3
- package/package.json +2 -2
- package/stories/StaysRoomRateCard.stories.d.ts +9 -0
- package/stories/StaysSummary.stories.d.ts +63 -0
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duffel/components",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.1",
|
|
4
4
|
"description": "Component library to build your travel product with Duffel.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Duffel",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"semver": "7.5.4"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@duffel/api": "4.21.
|
|
54
|
+
"@duffel/api": "4.21.2",
|
|
55
55
|
"@sentry/browser": "7.119.2",
|
|
56
56
|
"@stripe/react-stripe-js": "2.1.0",
|
|
57
57
|
"@stripe/stripe-js": "1.54.2",
|
|
@@ -46,6 +46,9 @@ export declare const PayLaterRate: {
|
|
|
46
46
|
loyalty_programme_required: boolean;
|
|
47
47
|
estimated_commission_amount: string | null;
|
|
48
48
|
estimated_commission_currency: string | null;
|
|
49
|
+
expires_at: string;
|
|
50
|
+
code: string | null;
|
|
51
|
+
description: string | null;
|
|
49
52
|
};
|
|
50
53
|
numberOfNights: number;
|
|
51
54
|
searchNumberOfRooms: number;
|
|
@@ -100,6 +103,9 @@ export declare const RatesCrossComparison: {
|
|
|
100
103
|
loyalty_programme_required: boolean;
|
|
101
104
|
estimated_commission_amount: string | null;
|
|
102
105
|
estimated_commission_currency: string | null;
|
|
106
|
+
expires_at: string;
|
|
107
|
+
code: string | null;
|
|
108
|
+
description: string | null;
|
|
103
109
|
};
|
|
104
110
|
numberOfNights: number;
|
|
105
111
|
searchNumberOfRooms: number;
|
|
@@ -139,6 +145,9 @@ export declare const DepositRate: {
|
|
|
139
145
|
loyalty_programme_required: boolean;
|
|
140
146
|
estimated_commission_amount: string | null;
|
|
141
147
|
estimated_commission_currency: string | null;
|
|
148
|
+
expires_at: string;
|
|
149
|
+
code: string | null;
|
|
150
|
+
description: string | null;
|
|
142
151
|
};
|
|
143
152
|
numberOfNights: number;
|
|
144
153
|
searchNumberOfRooms: number;
|
|
@@ -46,3 +46,66 @@ export declare const WithNoPhoto: {
|
|
|
46
46
|
numRooms: number;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
+
export declare const BookingSummaryUseCase: {
|
|
50
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysSummaryProps>;
|
|
51
|
+
args: {
|
|
52
|
+
accommodation: {
|
|
53
|
+
rooms: {
|
|
54
|
+
rates: {
|
|
55
|
+
code: string;
|
|
56
|
+
description: string;
|
|
57
|
+
quantity_available: number | null;
|
|
58
|
+
base_amount: string | null;
|
|
59
|
+
base_currency: string;
|
|
60
|
+
board_type: "room_only" | "breakfast" | "half_board" | "full_board" | "all_inclusive";
|
|
61
|
+
cancellation_timeline: import("@duffel/api/types").StaysRateCancellationTimeline[];
|
|
62
|
+
conditions: import("@duffel/api/types").StaysRateCondition[];
|
|
63
|
+
due_at_accommodation_amount: string | null;
|
|
64
|
+
due_at_accommodation_currency: string;
|
|
65
|
+
id: string;
|
|
66
|
+
payment_type: import("@duffel/api/types").StaysPaymentType;
|
|
67
|
+
fee_amount: string | null;
|
|
68
|
+
fee_currency: string;
|
|
69
|
+
tax_amount: string | null;
|
|
70
|
+
tax_currency: string;
|
|
71
|
+
total_amount: string;
|
|
72
|
+
total_currency: string;
|
|
73
|
+
available_payment_methods: import("@duffel/api/types").StaysPaymentMethod[];
|
|
74
|
+
supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
|
|
75
|
+
loyalty_programme_required: boolean;
|
|
76
|
+
estimated_commission_amount: string | null;
|
|
77
|
+
estimated_commission_currency: string | null;
|
|
78
|
+
source: import("@duffel/api/types").StaysSource;
|
|
79
|
+
expires_at: string;
|
|
80
|
+
}[];
|
|
81
|
+
name: string;
|
|
82
|
+
beds?: import("@duffel/api/types").StaysBed[] | undefined;
|
|
83
|
+
photos?: import("@duffel/api/types").StaysPhoto[] | undefined;
|
|
84
|
+
}[];
|
|
85
|
+
id: string;
|
|
86
|
+
amenities: import("@duffel/api/types").StaysAmenity[] | null;
|
|
87
|
+
chain: import("@duffel/api/types").StaysChain | null;
|
|
88
|
+
brand: import("@duffel/api/types").StaysAccommodationBrand | null;
|
|
89
|
+
check_in_information: {
|
|
90
|
+
check_out_before_time: string;
|
|
91
|
+
check_in_after_time: string;
|
|
92
|
+
} | null;
|
|
93
|
+
key_collection: import("@duffel/api/types").StaysBookingKeyCollection | null;
|
|
94
|
+
description?: string | undefined;
|
|
95
|
+
email: string | null;
|
|
96
|
+
location: import("@duffel/api/types").StaysLocation;
|
|
97
|
+
name: string;
|
|
98
|
+
phone_number: string | null;
|
|
99
|
+
photos?: import("@duffel/api/types").StaysPhoto[] | undefined;
|
|
100
|
+
ratings: import("@duffel/api/types").StaysRating[] | null;
|
|
101
|
+
rating: number | null;
|
|
102
|
+
review_count: number | null;
|
|
103
|
+
review_score: number | null;
|
|
104
|
+
supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
|
|
105
|
+
};
|
|
106
|
+
checkInDate: Date;
|
|
107
|
+
checkOutDate: Date;
|
|
108
|
+
numRooms: number;
|
|
109
|
+
isBookingSummary: boolean;
|
|
110
|
+
};
|
|
111
|
+
};
|