@duffel/components 3.13.2-canary.0 → 3.15.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.d.ts +0 -1
- package/index.js +23 -52
- package/index.js.map +4 -4
- package/package.json +11 -11
- package/stories/StaysRoomRateCard.stories.d.ts +3 -0
- package/stories/StaysSummary.stories.d.ts +65 -0
- package/tests/components/StaysSummary.test.d.ts +1 -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.15.0",
|
|
4
4
|
"description": "Component library to build your travel product with Duffel.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Duffel",
|
|
@@ -47,31 +47,31 @@
|
|
|
47
47
|
"create-local-ssl-certificate": "bash ./scripts/create-local-ssl-certificate.sh"
|
|
48
48
|
},
|
|
49
49
|
"resolutions": {
|
|
50
|
-
"@babel/traverse": "7.
|
|
50
|
+
"@babel/traverse": "7.29.0",
|
|
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",
|
|
58
58
|
"classnames": "2.3.2",
|
|
59
|
-
"date-fns": "
|
|
60
|
-
"date-fns-tz": "
|
|
59
|
+
"date-fns": "4.1.0",
|
|
60
|
+
"date-fns-tz": "3.2.0",
|
|
61
61
|
"duration-fns": "3.0.2",
|
|
62
62
|
"form-data": "4.0.5",
|
|
63
63
|
"fuse.js": "6.6.2",
|
|
64
|
-
"lodash": "4.
|
|
64
|
+
"lodash": "4.18.1",
|
|
65
65
|
"rc-slider": "10.6.2",
|
|
66
66
|
"react": "18.3.1",
|
|
67
67
|
"react-dom": "18.3.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@aashutoshrathi/word-wrap": "1.2.6",
|
|
71
|
-
"@babel/core": "7.
|
|
72
|
-
"@babel/preset-env": "7.
|
|
73
|
-
"@babel/preset-react": "7.
|
|
74
|
-
"@babel/preset-typescript": "7.
|
|
71
|
+
"@babel/core": "7.29.0",
|
|
72
|
+
"@babel/preset-env": "7.29.0",
|
|
73
|
+
"@babel/preset-react": "7.28.5",
|
|
74
|
+
"@babel/preset-typescript": "7.28.5",
|
|
75
75
|
"@chromatic-com/storybook": "1.9.0",
|
|
76
76
|
"@sentry/cli": "2.39.1",
|
|
77
77
|
"@sentry/esbuild-plugin": "0.7.2",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@storybook/types": "8.3.5",
|
|
87
87
|
"@testing-library/react": "14.3.1",
|
|
88
88
|
"@types/jest": "29.5.14",
|
|
89
|
-
"@types/lodash": "4.17.
|
|
89
|
+
"@types/lodash": "4.17.24",
|
|
90
90
|
"@types/node": "18.19.130",
|
|
91
91
|
"@types/prompts": "2.4.9",
|
|
92
92
|
"@types/react": "18.2.33",
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|