@duffel/components 3.5.0 → 3.5.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/DuffelNGSView/DuffelNGSView.d.ts +1 -0
- package/components/DuffelNGSView/NGSShelfInfoCard.d.ts +1 -0
- package/components/DuffelNGSView/NGSSliceFareCard.d.ts +1 -0
- package/components/DuffelNGSView/SliceSummary.d.ts +7 -0
- package/custom-elements.js +14 -14
- package/custom-elements.js.map +3 -3
- package/index.js +12 -12
- package/index.js.map +3 -3
- package/lib/colors.d.ts +1 -0
- package/package.json +2 -2
- package/stories/DuffelNGSView.stories.d.ts +3 -4
- package/stories/SliceSummary.stories.d.ts +6 -0
- package/stories/StaysRoomRateCard.stories.d.ts +28 -30
- package/tsconfig.tsbuildinfo +1 -1
package/lib/colors.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duffel/components",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "Component library to build your travel product with Duffel.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Duffel",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"semver": "7.5.3"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@duffel/api": "2.
|
|
52
|
+
"@duffel/api": "2.7.1",
|
|
53
53
|
"@sentry/browser": "7.77.0",
|
|
54
54
|
"@stripe/react-stripe-js": "2.1.0",
|
|
55
55
|
"@stripe/stripe-js": "1.54.0",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { StoryFn } from "@storybook/react";
|
|
2
|
+
import { DuffelNGSViewProps } from "../components/DuffelNGSView/DuffelNGSView";
|
|
3
3
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
|
-
|
|
6
|
-
export declare const Default: DuffelNGSViewStory;
|
|
5
|
+
export declare const Default: StoryFn<DuffelNGSViewProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: React.FC;
|
|
5
|
+
export declare const WithStop: React.FC;
|
|
6
|
+
export declare const WithStopAnd2Segments: React.FC;
|
|
@@ -2,39 +2,37 @@
|
|
|
2
2
|
import { StaysRoomRateCardProps } from "@components/Stays/StaysRoomRateCard";
|
|
3
3
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const
|
|
6
|
-
render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R,
|
|
5
|
+
export declare const RateWithMinimalInformation: {
|
|
6
|
+
render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
7
|
+
roomRates: StaysRoomRateCardProps[];
|
|
8
|
+
}>;
|
|
7
9
|
args: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
roomRates: {
|
|
11
|
+
rate: import("@duffel/api/types").StaysRoomRate;
|
|
12
|
+
numberOfNights: number;
|
|
13
|
+
}[];
|
|
10
14
|
};
|
|
11
15
|
};
|
|
12
|
-
export declare const
|
|
13
|
-
render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R,
|
|
16
|
+
export declare const RateWithCompleteInformation: {
|
|
17
|
+
render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
18
|
+
roomRates: StaysRoomRateCardProps[];
|
|
19
|
+
}>;
|
|
14
20
|
args: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
total_amount: string;
|
|
32
|
-
total_currency: string;
|
|
33
|
-
payment_method: "balance" | "card";
|
|
34
|
-
supported_loyalty_programme: import("@duffel/api/types").StaysLoyaltyProgramme | null;
|
|
35
|
-
};
|
|
36
|
-
numberOfNights: number;
|
|
37
|
-
searchNumberOfRooms: number;
|
|
38
|
-
selected: boolean;
|
|
21
|
+
roomRates: {
|
|
22
|
+
rate: import("@duffel/api/types").StaysRoomRate;
|
|
23
|
+
numberOfNights: number;
|
|
24
|
+
searchNumberOfRooms: number;
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const RatesCrossComparison: {
|
|
29
|
+
render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
30
|
+
roomRates: StaysRoomRateCardProps[];
|
|
31
|
+
}>;
|
|
32
|
+
args: {
|
|
33
|
+
roomRates: {
|
|
34
|
+
rate: import("@duffel/api/types").StaysRoomRate;
|
|
35
|
+
numberOfNights: number;
|
|
36
|
+
}[];
|
|
39
37
|
};
|
|
40
38
|
};
|