Releases: skedgo/tripkit-react
Releases · skedgo/tripkit-react
v1.0.0
v1.0.0-rc.7
- Bump up date-fns-tz version to 2.0.1, which specifies exact version (2.x) for date-fns (peer dependency), to avoid getting date-fns v3 installed which has breaking changes (that break date-fns-tz).
v1.0.0-rc.6
- Fix to the way to hit waypoint.json to update a trip to use a different vehicle.
v1.0.0-rc.5
What's changed
- The collect mode-by-mode card of a shared vehicle segment includes a book button that opens the vehicle availability view (TKUIVehicleAvailability), from which the user can change the vehicle and / or booking range, and just update the trip, or additionally open the deep link to provider's booking page, to actually book the vehicle for the picked range.
- Trigger tracking event to planned trips DB when clicking the 'Book' button from the availability view for a trip.
v1.0.0-rc.4
What's changed
- TripGo API and the SDK support tags
<start_time>
and<end_time>
on vehicle's booking URL (deep link to provider's page to book a vehicle for a specific time range), replacing them by the booking start and end times as picked by the user (using the TKUIVehicleAvailability component) or matching the start and end times of a trip segment that involves booking a vehicle. - The collect mode-by-mode card of a shared vehicle segment includes a book button that opens a deep link to provider's page to book the vehicle, including the time range of the trip segment if shared vehicle api integration supports availability info.
v1.0.0-rc.3
What's changed
- New SDK config property
apiHeaders
that allows to amend (add, change, remove) the default headers sent along TripGo api requests by specifying a map from headers to values. - New vehicle availability UI component (
TKUIVehicleAvailability
), displayed as part of the details UI of car pod locations, when the corresponding data is available from the TripGo api. It displays vehicles available on the pod location, and their availability, allowing the user to select a vehicle and booking range, and continue the booking on the provider's site. onBookClick
prop ofTKUIVehicleAvailability
, allowing to set a custom handler for the "Book" button click.