@duffel/components 3.14.0 → 3.16.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/custom-elements.js +24 -24
- package/custom-elements.js.map +4 -4
- package/index.js +4 -4
- package/index.js.map +3 -3
- package/package.json +2 -2
- package/stories/StaysRoomRateCard.stories.d.ts +3 -0
- package/stories/StaysSummary.stories.d.ts +65 -0
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duffel/components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.0",
|
|
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.
|
|
54
|
+
"@duffel/api": "4.25.0",
|
|
55
55
|
"@sentry/browser": "7.119.2",
|
|
56
56
|
"@stripe/react-stripe-js": "2.1.0",
|
|
57
57
|
"@stripe/stripe-js": "1.54.2",
|
|
@@ -49,6 +49,7 @@ export declare const PayLaterRate: {
|
|
|
49
49
|
expires_at: string;
|
|
50
50
|
code: string | null;
|
|
51
51
|
description: string | null;
|
|
52
|
+
name: string | null;
|
|
52
53
|
};
|
|
53
54
|
numberOfNights: number;
|
|
54
55
|
searchNumberOfRooms: number;
|
|
@@ -106,6 +107,7 @@ export declare const RatesCrossComparison: {
|
|
|
106
107
|
expires_at: string;
|
|
107
108
|
code: string | null;
|
|
108
109
|
description: string | null;
|
|
110
|
+
name: string | null;
|
|
109
111
|
};
|
|
110
112
|
numberOfNights: number;
|
|
111
113
|
searchNumberOfRooms: number;
|
|
@@ -148,6 +150,7 @@ export declare const DepositRate: {
|
|
|
148
150
|
expires_at: string;
|
|
149
151
|
code: string | null;
|
|
150
152
|
description: string | null;
|
|
153
|
+
name: string | null;
|
|
151
154
|
};
|
|
152
155
|
numberOfNights: number;
|
|
153
156
|
searchNumberOfRooms: number;
|
|
@@ -77,6 +77,71 @@ export declare const BookingSummaryUseCase: {
|
|
|
77
77
|
estimated_commission_currency: string | null;
|
|
78
78
|
source: import("@duffel/api/types").StaysSource;
|
|
79
79
|
expires_at: string;
|
|
80
|
+
name: string | null;
|
|
81
|
+
}[];
|
|
82
|
+
name: string;
|
|
83
|
+
beds?: import("@duffel/api/types").StaysBed[] | undefined;
|
|
84
|
+
photos?: import("@duffel/api/types").StaysPhoto[] | undefined;
|
|
85
|
+
}[];
|
|
86
|
+
id: string;
|
|
87
|
+
amenities: import("@duffel/api/types").StaysAmenity[] | null;
|
|
88
|
+
chain: import("@duffel/api/types").StaysChain | null;
|
|
89
|
+
brand: import("@duffel/api/types").StaysAccommodationBrand | null;
|
|
90
|
+
check_in_information: {
|
|
91
|
+
check_out_before_time: string;
|
|
92
|
+
check_in_after_time: string;
|
|
93
|
+
} | null;
|
|
94
|
+
key_collection: import("@duffel/api/types").StaysBookingKeyCollection | null;
|
|
95
|
+
description?: string | undefined;
|
|
96
|
+
email: string | null;
|
|
97
|
+
location: import("@duffel/api/types").StaysLocation;
|
|
98
|
+
name: string;
|
|
99
|
+
phone_number: string | null;
|
|
100
|
+
photos?: import("@duffel/api/types").StaysPhoto[] | undefined;
|
|
101
|
+
ratings: import("@duffel/api/types").StaysRating[] | null;
|
|
102
|
+
rating: number | null;
|
|
103
|
+
review_count: number | null;
|
|
104
|
+
review_score: number | null;
|
|
105
|
+
supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
|
|
106
|
+
};
|
|
107
|
+
checkInDate: Date;
|
|
108
|
+
checkOutDate: Date;
|
|
109
|
+
numRooms: number;
|
|
110
|
+
isBookingSummary: boolean;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
export declare const BookingSummaryWithRateName: {
|
|
114
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysSummaryProps>;
|
|
115
|
+
args: {
|
|
116
|
+
accommodation: {
|
|
117
|
+
rooms: {
|
|
118
|
+
rates: {
|
|
119
|
+
name: string;
|
|
120
|
+
code: string;
|
|
121
|
+
description: string;
|
|
122
|
+
quantity_available: number | null;
|
|
123
|
+
base_amount: string | null;
|
|
124
|
+
base_currency: string;
|
|
125
|
+
board_type: "room_only" | "breakfast" | "half_board" | "full_board" | "all_inclusive";
|
|
126
|
+
cancellation_timeline: import("@duffel/api/types").StaysRateCancellationTimeline[];
|
|
127
|
+
conditions: import("@duffel/api/types").StaysRateCondition[];
|
|
128
|
+
due_at_accommodation_amount: string | null;
|
|
129
|
+
due_at_accommodation_currency: string;
|
|
130
|
+
id: string;
|
|
131
|
+
payment_type: import("@duffel/api/types").StaysPaymentType;
|
|
132
|
+
fee_amount: string | null;
|
|
133
|
+
fee_currency: string;
|
|
134
|
+
tax_amount: string | null;
|
|
135
|
+
tax_currency: string;
|
|
136
|
+
total_amount: string;
|
|
137
|
+
total_currency: string;
|
|
138
|
+
available_payment_methods: import("@duffel/api/types").StaysPaymentMethod[];
|
|
139
|
+
supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
|
|
140
|
+
loyalty_programme_required: boolean;
|
|
141
|
+
estimated_commission_amount: string | null;
|
|
142
|
+
estimated_commission_currency: string | null;
|
|
143
|
+
source: import("@duffel/api/types").StaysSource;
|
|
144
|
+
expires_at: string;
|
|
80
145
|
}[];
|
|
81
146
|
name: string;
|
|
82
147
|
beds?: import("@duffel/api/types").StaysBed[] | undefined;
|