@duffel/components 3.11.0 → 3.12.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/README.md +6 -3
- package/custom-elements.js +8 -8
- package/custom-elements.js.map +2 -2
- package/index.js +7 -7
- package/index.js.map +2 -2
- package/package.json +4 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/DuffelAncillariesProps.d.ts +12 -0
package/README.md
CHANGED
|
@@ -26,7 +26,8 @@ There are 3 different ways to integrate the components into your website. This w
|
|
|
26
26
|
|
|
27
27
|
```jsx
|
|
28
28
|
<DuffelAncillaries
|
|
29
|
-
|
|
29
|
+
offer={offerFromYourBackend} // The offer object from your backend
|
|
30
|
+
seat_maps={seatMapsFromYourBackend}
|
|
30
31
|
services={["bags", "seats"]}
|
|
31
32
|
passengers={[...]}
|
|
32
33
|
onPayloadReady={console.log}
|
|
@@ -64,7 +65,8 @@ If you are not using React but still in a node environment, you can:
|
|
|
64
65
|
|
|
65
66
|
```javascript
|
|
66
67
|
renderDuffelAncillariesCustomElement({
|
|
67
|
-
|
|
68
|
+
offer: offerFromYourBackend,
|
|
69
|
+
seat_maps: seatMapsFromYourBackend,
|
|
68
70
|
services: ["bags", "seats"],
|
|
69
71
|
passengers: [...],
|
|
70
72
|
});
|
|
@@ -112,7 +114,8 @@ If you are not in a node environment and can't rely on npm to install the packag
|
|
|
112
114
|
const duffelAncillariesElement = document.querySelector("duffel-ancillaries");
|
|
113
115
|
|
|
114
116
|
duffelAncillariesElement.render({
|
|
115
|
-
|
|
117
|
+
offer: offerFromYourBackend,
|
|
118
|
+
seat_maps: seatMapsFromYourBackend,
|
|
116
119
|
services: ["bags", "seats"],
|
|
117
120
|
passengers: [...],
|
|
118
121
|
});
|