@duffel/components 3.8.5 → 3.9.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/custom-elements.js +2 -2
- package/custom-elements.js.map +2 -2
- package/index.js +17 -17
- package/index.js.map +2 -2
- package/package.json +4 -4
- package/stories/StaysRoomRateCard.stories.d.ts +39 -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.9.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.
|
|
54
|
+
"@duffel/api": "4.13.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",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"@storybook/types": "8.3.5",
|
|
84
84
|
"@testing-library/react": "14.3.1",
|
|
85
85
|
"@types/jest": "29.5.14",
|
|
86
|
-
"@types/lodash": "4.17.
|
|
87
|
-
"@types/node": "18.19.
|
|
86
|
+
"@types/lodash": "4.17.17",
|
|
87
|
+
"@types/node": "18.19.110",
|
|
88
88
|
"@types/prompts": "2.4.9",
|
|
89
89
|
"@types/react": "18.2.33",
|
|
90
90
|
"@types/react-dom": "18.2.14",
|
|
@@ -43,6 +43,7 @@ export declare const PayLaterRate: {
|
|
|
43
43
|
total_amount: string;
|
|
44
44
|
total_currency: string;
|
|
45
45
|
supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
|
|
46
|
+
loyalty_programme_required: boolean;
|
|
46
47
|
};
|
|
47
48
|
numberOfNights: number;
|
|
48
49
|
searchNumberOfRooms: number;
|
|
@@ -94,9 +95,47 @@ export declare const RatesCrossComparison: {
|
|
|
94
95
|
total_amount: string;
|
|
95
96
|
total_currency: string;
|
|
96
97
|
supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
|
|
98
|
+
loyalty_programme_required: boolean;
|
|
97
99
|
};
|
|
98
100
|
numberOfNights: number;
|
|
99
101
|
searchNumberOfRooms: number;
|
|
100
102
|
})[];
|
|
101
103
|
};
|
|
102
104
|
};
|
|
105
|
+
export declare const DepositRate: {
|
|
106
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, {
|
|
107
|
+
roomRates: StaysRoomRateCardProps[];
|
|
108
|
+
}>;
|
|
109
|
+
args: {
|
|
110
|
+
roomRates: {
|
|
111
|
+
rate: {
|
|
112
|
+
available_payment_methods: string[];
|
|
113
|
+
payment_type: string;
|
|
114
|
+
source: string;
|
|
115
|
+
id: string;
|
|
116
|
+
cancellation_timeline: {
|
|
117
|
+
refund_amount: string;
|
|
118
|
+
currency: string;
|
|
119
|
+
before: string;
|
|
120
|
+
}[];
|
|
121
|
+
quantity_available: number | null;
|
|
122
|
+
base_amount: string | null;
|
|
123
|
+
base_currency: string;
|
|
124
|
+
board_type: "room_only" | "breakfast" | "half_board" | "full_board" | "all_inclusive";
|
|
125
|
+
conditions: import("@duffel/api/types").StaysRateCondition[];
|
|
126
|
+
due_at_accommodation_amount: string | null;
|
|
127
|
+
due_at_accommodation_currency: string;
|
|
128
|
+
fee_amount: string | null;
|
|
129
|
+
fee_currency: string;
|
|
130
|
+
tax_amount: string | null;
|
|
131
|
+
tax_currency: string;
|
|
132
|
+
total_amount: string;
|
|
133
|
+
total_currency: string;
|
|
134
|
+
supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgrammeReference | null;
|
|
135
|
+
loyalty_programme_required: boolean;
|
|
136
|
+
};
|
|
137
|
+
numberOfNights: number;
|
|
138
|
+
searchNumberOfRooms: number;
|
|
139
|
+
}[];
|
|
140
|
+
};
|
|
141
|
+
};
|