@voyantjs/flights-ui 0.35.0 → 0.37.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.
Files changed (56) hide show
  1. package/dist/components/airport-combobox.d.ts.map +1 -1
  2. package/dist/components/airport-combobox.js +4 -2
  3. package/dist/components/flight-baggage-step.d.ts.map +1 -1
  4. package/dist/components/flight-baggage-step.js +29 -18
  5. package/dist/components/flight-billing-step.d.ts.map +1 -1
  6. package/dist/components/flight-billing-step.js +30 -24
  7. package/dist/components/flight-booking-journey.d.ts.map +1 -1
  8. package/dist/components/flight-booking-journey.js +15 -26
  9. package/dist/components/flight-booking-ledger.d.ts.map +1 -1
  10. package/dist/components/flight-booking-ledger.js +22 -12
  11. package/dist/components/flight-booking-page.js +12 -12
  12. package/dist/components/flight-booking-shell.d.ts.map +1 -1
  13. package/dist/components/flight-booking-shell.js +54 -29
  14. package/dist/components/flight-contact-form.d.ts.map +1 -1
  15. package/dist/components/flight-contact-form.js +7 -3
  16. package/dist/components/flight-fare-upsell-step.d.ts.map +1 -1
  17. package/dist/components/flight-fare-upsell-step.js +58 -30
  18. package/dist/components/flight-filters-bar.d.ts.map +1 -1
  19. package/dist/components/flight-filters-bar.js +21 -13
  20. package/dist/components/flight-itinerary.d.ts.map +1 -1
  21. package/dist/components/flight-itinerary.js +26 -6
  22. package/dist/components/flight-offer-detail.d.ts.map +1 -1
  23. package/dist/components/flight-offer-detail.js +23 -35
  24. package/dist/components/flight-offer-row.d.ts.map +1 -1
  25. package/dist/components/flight-offer-row.js +19 -15
  26. package/dist/components/flight-order-confirmation.d.ts.map +1 -1
  27. package/dist/components/flight-order-confirmation.js +20 -24
  28. package/dist/components/flight-passenger-form.d.ts.map +1 -1
  29. package/dist/components/flight-passenger-form.js +18 -14
  30. package/dist/components/flight-payment-selector.d.ts.map +1 -1
  31. package/dist/components/flight-payment-selector.js +4 -8
  32. package/dist/components/flight-payment-step.d.ts.map +1 -1
  33. package/dist/components/flight-payment-step.js +14 -15
  34. package/dist/components/flight-search-form.d.ts.map +1 -1
  35. package/dist/components/flight-search-form.js +4 -2
  36. package/dist/components/flight-seat-map.d.ts.map +1 -1
  37. package/dist/components/flight-seat-map.js +24 -19
  38. package/dist/components/flight-seats-step.js +26 -24
  39. package/dist/components/flight-services-step.d.ts.map +1 -1
  40. package/dist/components/flight-services-step.js +29 -16
  41. package/dist/components/pax-cabin-popover.d.ts.map +1 -1
  42. package/dist/components/pax-cabin-popover.js +8 -11
  43. package/dist/components/popular-routes.d.ts +0 -5
  44. package/dist/components/popular-routes.d.ts.map +1 -1
  45. package/dist/components/popular-routes.js +25 -43
  46. package/dist/i18n/en.d.ts +404 -0
  47. package/dist/i18n/en.d.ts.map +1 -1
  48. package/dist/i18n/en.js +460 -0
  49. package/dist/i18n/messages.d.ts +331 -0
  50. package/dist/i18n/messages.d.ts.map +1 -1
  51. package/dist/i18n/provider.d.ts +808 -0
  52. package/dist/i18n/provider.d.ts.map +1 -1
  53. package/dist/i18n/ro.d.ts +404 -0
  54. package/dist/i18n/ro.d.ts.map +1 -1
  55. package/dist/i18n/ro.js +460 -0
  56. package/package.json +15 -15
package/dist/i18n/en.js CHANGED
@@ -1,4 +1,60 @@
1
1
  export const flightsUiEn = {
2
+ common: {
3
+ noValue: "-",
4
+ total: "total",
5
+ included: "Included",
6
+ free: "Free",
7
+ selected: "selected",
8
+ recommended: "Recommended",
9
+ passengerSingular: "passenger",
10
+ passengerPlural: "passengers",
11
+ pax: "pax",
12
+ adultPerPassenger: "/adult",
13
+ passengerTypeLabels: {
14
+ adult: "Adult",
15
+ child: "Child",
16
+ infant: "Infant",
17
+ senior: "Senior",
18
+ youth: "Youth",
19
+ },
20
+ cabinLabels: {
21
+ economy: "Economy",
22
+ premium_economy: "Premium economy",
23
+ business: "Business",
24
+ first: "First",
25
+ },
26
+ genderLabels: {
27
+ M: "Male",
28
+ F: "Female",
29
+ X: "Unspecified / X",
30
+ },
31
+ documentTypeLabels: {
32
+ passport: "Passport",
33
+ national_id: "National ID",
34
+ visa: "Visa",
35
+ },
36
+ orderStatusLabels: {
37
+ pending: "Pending",
38
+ confirmed: "Confirmed",
39
+ ticketed: "Ticketed",
40
+ cancelled: "Cancelled",
41
+ failed: "Failed",
42
+ },
43
+ legLabels: {
44
+ itinerary: "Itinerary",
45
+ outbound: "Outbound",
46
+ return: "Return",
47
+ leg: "Leg {number}",
48
+ },
49
+ stops: {
50
+ nonstop: "Nonstop",
51
+ oneStop: "1 stop",
52
+ manyStops: "{count} stops",
53
+ via: "{stops} via {airports}",
54
+ upToOne: "Up to 1 stop",
55
+ upToMany: "Up to {count} stops",
56
+ },
57
+ },
2
58
  flightsPage: {
3
59
  title: "Flights",
4
60
  description: "Search live flight offers across configured connectors.",
@@ -37,6 +93,15 @@ export const flightsUiEn = {
37
93
  offerNotInSessionDescription: "This booking link references an offer that is no longer in your browser session. Run the search again to pick a fresh offer.",
38
94
  backToFlightSearch: "Back to flight search",
39
95
  backToResults: "Back to results",
96
+ offerUnavailable: "This offer is no longer available.",
97
+ segmentNotFound: "Segment not found",
98
+ paymentBrandLabels: {
99
+ visa: "Visa",
100
+ mastercard: "Mastercard",
101
+ amex: "Amex",
102
+ revolut: "Revolut Pay",
103
+ bank_transfer: "Bank transfer",
104
+ },
40
105
  },
41
106
  passengerContactPicker: {
42
107
  trigger: "Pick from contacts",
@@ -57,4 +122,399 @@ export const flightsUiEn = {
57
122
  orgsEmpty: "No companies.",
58
123
  emptyName: "-",
59
124
  },
125
+ airportCombobox: {
126
+ placeholder: "Airport",
127
+ searchPlaceholder: "Type city or IATA code...",
128
+ searching: "Searching...",
129
+ empty: "No airports.",
130
+ },
131
+ flightBaggageStep: {
132
+ unavailable: "Bags couldn't be loaded for this offer.",
133
+ title: "Add checked baggage",
134
+ description: "Carry-on under the seat is included. Pick a checked bag tier per passenger or skip this step.",
135
+ sameForBothDirections: "Same for both directions",
136
+ bags: "{leg} bags",
137
+ noCheckedBag: "No checked bag",
138
+ },
139
+ flightBillingStep: {
140
+ title: "Billing",
141
+ description: "The receipt and tax documents will be issued in this name.",
142
+ tabs: {
143
+ personal: "Personal",
144
+ company: "Company",
145
+ },
146
+ fields: {
147
+ firstName: "First name",
148
+ lastName: "Last name",
149
+ companyName: "Company name",
150
+ vatNumber: "Tax id / VAT number",
151
+ email: "Email",
152
+ phone: "Phone",
153
+ workPhone: "Work phone",
154
+ streetAddress: "Street address",
155
+ addressLine2: "Address line 2",
156
+ city: "City",
157
+ postalCode: "Postal code",
158
+ country: "Country",
159
+ },
160
+ placeholders: {
161
+ vatNumber: "e.g. RO43917962",
162
+ streetAddress: "Street + number",
163
+ addressLine2: "Apartment, suite, etc.",
164
+ searchPassengers: "Search passengers...",
165
+ },
166
+ saveDefault: "Save these details as the default for this contact",
167
+ pickFromPassengers: "Pick from passengers",
168
+ noMatchingPassengers: "No matching passengers.",
169
+ validation: {
170
+ emailRequired: "Email is required",
171
+ emailInvalid: "Email looks invalid",
172
+ streetAddressRequired: "Street address is required",
173
+ cityRequired: "City is required",
174
+ countryRequired: "Country is required",
175
+ firstNameRequired: "First name is required",
176
+ lastNameRequired: "Last name is required",
177
+ companyNameRequired: "Company name is required",
178
+ vatNumberRequired: "VAT / tax number is required",
179
+ },
180
+ },
181
+ flightBookingJourney: {
182
+ steps: {
183
+ review: "Review offer",
184
+ passengers: "Passengers",
185
+ contact: "Contact & payment",
186
+ confirm: "Confirm",
187
+ },
188
+ reviewTitle: "Review your selected flight",
189
+ backToResults: "Back to results",
190
+ back: "Back",
191
+ booking: "Booking...",
192
+ confirmBooking: "Confirm booking",
193
+ continue: "Continue",
194
+ rows: {
195
+ total: "Total",
196
+ passengers: "Passengers",
197
+ contact: "Contact",
198
+ payment: "Payment",
199
+ offerExpires: "Offer expires",
200
+ },
201
+ confirmDescription: "Submitting will hold seats with the connector and, depending on the chosen payment intent, either issue tickets immediately or open a ticketing window. Once confirmed, the booking appears under the order id below.",
202
+ },
203
+ flightBookingLedger: {
204
+ flight: "Flight",
205
+ outbound: "Outbound",
206
+ return: "Return",
207
+ passengers: "Passengers",
208
+ working: "Working...",
209
+ billing: "Billing",
210
+ payment: "Payment",
211
+ },
212
+ flightBookingShell: {
213
+ steps: {
214
+ review: "Review",
215
+ fares: "Fare",
216
+ passengers: "Passengers",
217
+ bags: "Bags",
218
+ seats: "Seats",
219
+ services: "Services",
220
+ billing: "Billing",
221
+ payment: "Payment",
222
+ confirm: "Confirm",
223
+ },
224
+ seatMapsUnavailable: "Seat maps unavailable",
225
+ backToResults: "Back to results",
226
+ back: "Back",
227
+ booking: "Booking...",
228
+ confirmBooking: "Confirm booking",
229
+ continue: "Continue",
230
+ reviewTrip: "Review your trip",
231
+ reviewFlight: "Review your flight",
232
+ confirmTitle: "Confirm booking",
233
+ rows: {
234
+ passengers: "Passengers",
235
+ documents: "Documents",
236
+ contact: "Contact",
237
+ billedTo: "Billed to",
238
+ payment: "Payment",
239
+ },
240
+ documentsAllAdded: "All {count} added",
241
+ documentsSomeAdded: "{count} of {total} added",
242
+ documentsAddAtCheckIn: "Add at check-in",
243
+ confirmDescription: "Submitting will hold seats with the connector and, depending on the chosen payment intent, either issue tickets immediately or open a ticketing window. The booking will appear under the order id once confirmed.",
244
+ lineItems: {
245
+ fare: "{label} fare{suffix}",
246
+ seatsPicked: "{count} seat{plural} picked",
247
+ specialAssistance: "Special assistance ({count})",
248
+ },
249
+ segmentNotFound: "Segment not found",
250
+ },
251
+ flightContactForm: {
252
+ title: "Contact details",
253
+ description: "Used by the airline to send confirmation, schedule changes, and operational notices for this booking.",
254
+ email: "Email",
255
+ phone: "Phone",
256
+ emailPlaceholder: "traveler@example.com",
257
+ phonePlaceholder: "+1 555 123 4567",
258
+ validation: {
259
+ emailRequired: "Email is required",
260
+ emailInvalid: "Email looks invalid",
261
+ },
262
+ },
263
+ flightFareUpsellStep: {
264
+ unavailable: "This offer doesn't surface fare upgrade tiers.",
265
+ title: "Upgrade your fare",
266
+ description: "Add bag, seat picks, and flexibility per leg - or keep the base fare.",
267
+ sameForAllPassengers: "Same fare for all passengers",
268
+ resetToBasic: "Reset to Basic",
269
+ appliesToAllPassengers: "Applies to all {count} passengers",
270
+ cabinBag: "Cabin bag {weight}",
271
+ noCabinBag: "No cabin bag",
272
+ checkedBag: "Checked bag {weight}{pieces}",
273
+ noCheckedBag: "No checked bag",
274
+ freeSeatSelection: "Free seat selection",
275
+ standardSeatSelection: "Standard seat selection",
276
+ noSeatSelection: "No seat selection",
277
+ priorityBoarding: "Priority boarding",
278
+ loungeAccess: "Lounge access",
279
+ freeChanges: "Free changes",
280
+ changesForFee: "Changes for a fee",
281
+ refundable: "Refundable",
282
+ nonRefundable: "Non-refundable",
283
+ },
284
+ flightSearchForm: {
285
+ roundTrip: "Round-trip",
286
+ oneWay: "One-way",
287
+ fromPlaceholder: "From",
288
+ toPlaceholder: "To",
289
+ departPlaceholder: "Depart",
290
+ returnPlaceholder: "Return",
291
+ swapAriaLabel: "Swap origin and destination",
292
+ search: "Search",
293
+ searching: "Searching...",
294
+ },
295
+ flightFiltersBar: {
296
+ clearAll: "Clear all",
297
+ airlines: "Airlines",
298
+ filterAirlinesPlaceholder: "Filter airlines...",
299
+ noAirlines: "No airlines.",
300
+ clearFilter: "Clear filter",
301
+ stops: "Stops",
302
+ price: "Price",
303
+ maximumPrice: "Maximum price",
304
+ noCap: "No cap",
305
+ clear: "Clear",
306
+ },
307
+ flightItinerary: {
308
+ totalDuration: "Total {duration}",
309
+ layover: "Layover",
310
+ layoverIn: "{duration} in {airport}",
311
+ operatedBy: "Operated by {carrier}",
312
+ terminal: "Terminal {terminal}",
313
+ aircraft: "Aircraft:",
314
+ },
315
+ flightOfferDetail: {
316
+ fareBreakdown: "Fare breakdown",
317
+ validatingCarrier: "Validating carrier:",
318
+ expires: "Expires {date}",
319
+ lastTicketing: "Last ticketing {date}",
320
+ instantTicketing: "Instant ticketing",
321
+ base: "Base {amount}",
322
+ tax: "Tax {amount}",
323
+ },
324
+ flightOfferRow: {
325
+ select: "Select",
326
+ codeshare: "Codeshare",
327
+ interline: "Interline",
328
+ },
329
+ flightOrderConfirmation: {
330
+ bookingConfirmed: "Booking confirmed",
331
+ ticketDeadline: "Tickets must be issued before {date} or the seats will be released.",
332
+ passengers: "Passengers",
333
+ contact: "Contact",
334
+ itinerary: "Itinerary",
335
+ dob: "DOB {date}",
336
+ cancelBooking: "Cancel booking",
337
+ cancelling: "Cancelling...",
338
+ },
339
+ flightPassengerForm: {
340
+ documentsRequiredNotice: "This route looks international - adding travel documents now speeds up online check-in and avoids airport-counter fees. You can still skip and add them later.",
341
+ fields: {
342
+ firstName: "First name",
343
+ middleName: "Middle name",
344
+ lastName: "Last name",
345
+ dateOfBirth: "Date of birth",
346
+ gender: "Gender",
347
+ travelDocument: "Travel document",
348
+ documentType: "Document type",
349
+ documentNumber: "Document number",
350
+ countryOfIssue: "Country of issue",
351
+ countryOfNationality: "Country of nationality",
352
+ expiryDate: "Expiry date",
353
+ },
354
+ placeholders: {
355
+ asOnPassport: "As on passport",
356
+ optional: "Optional",
357
+ selectDate: "Select date",
358
+ select: "Select",
359
+ asPrintedOnDocument: "As printed on document",
360
+ },
361
+ addNow: "Add now",
362
+ skipDocuments: "Skip to add at check-in. Required up-front for most international travel.",
363
+ validation: {
364
+ firstNameRequired: "First name required",
365
+ lastNameRequired: "Last name required",
366
+ dateOfBirthRequired: "Date of birth required",
367
+ documentNumberRequired: "Document number required",
368
+ documentCountryRequired: "Document country required",
369
+ documentExpiryRequired: "Document expiry required",
370
+ },
371
+ },
372
+ flightPaymentSelector: {
373
+ title: "Payment intent",
374
+ description: "How the booking should be paid. Hold lets you confirm seats now and ticket later; card / on-credit issue tickets immediately.",
375
+ intents: {
376
+ hold: {
377
+ title: "Hold seats - pay later",
378
+ description: "Confirms the booking now and locks in the price for the connector's hold window. Tickets issue when payment lands.",
379
+ },
380
+ card: {
381
+ title: "Pay by card",
382
+ description: "Tickets issue immediately. Card details handled outside this form by the connector's tokenization flow.",
383
+ },
384
+ ticket_on_credit: {
385
+ title: "Ticket on agency credit",
386
+ description: "Issue against the operator's IATA office credit line. Settles via BSP in the next reporting cycle.",
387
+ },
388
+ },
389
+ },
390
+ flightPaymentStep: {
391
+ agencyCreditLabel: "Issue ticket on agency credit",
392
+ agencyCreditDescription: "Bill against the agency's IATA / consolidator credit line.",
393
+ },
394
+ flightSeatMap: {
395
+ cabin: "Cabin",
396
+ pickingSeatFor: "Picking seat for {passenger}",
397
+ window: "window",
398
+ aisle: "aisle",
399
+ noCharge: "No charge",
400
+ pickedBy: "Picked by {passenger}",
401
+ categories: {
402
+ exit_row: "Exit row - extra legroom",
403
+ extra_legroom: "Extra legroom",
404
+ preferred: "Preferred",
405
+ premium: "Premium",
406
+ bulkhead: "Bulkhead",
407
+ standard: "Standard",
408
+ },
409
+ legend: {
410
+ available: "Available",
411
+ preferred: "Preferred",
412
+ exitRow: "Exit row",
413
+ picked: "Picked",
414
+ taken: "Taken",
415
+ },
416
+ },
417
+ flightSeatsStep: {
418
+ title: "Choose your seats",
419
+ description: "Sit where you want, or let the airline assign seats at check-in.",
420
+ modes: {
421
+ skip: {
422
+ title: "Pick seats later",
423
+ body: "Seats will be assigned automatically at check-in. May not be next to each other.",
424
+ },
425
+ auto: {
426
+ title: "Auto-assign together",
427
+ body: "Airline picks seats trying to keep your party together. No fee.",
428
+ },
429
+ now: {
430
+ title: "Choose seats now",
431
+ body: "Pick exact seats per leg - windows, exit rows, extra legroom.",
432
+ },
433
+ },
434
+ seatMapUnavailable: "Seat map unavailable for this segment.",
435
+ },
436
+ flightServicesStep: {
437
+ title: "Services & extras",
438
+ description: "Optional - leave anything blank to skip.",
439
+ servicesUnavailable: "Services couldn't be loaded for this offer.",
440
+ specialAssistance: "Special assistance",
441
+ noAssistanceNeeded: "No assistance needed",
442
+ extras: "{leg} extras",
443
+ },
444
+ paxCabinPopover: {
445
+ adults: "Adults",
446
+ adultsSublabel: "12+",
447
+ children: "Children",
448
+ childrenSublabel: "2-11",
449
+ infants: "Infants",
450
+ infantsSublabel: "under 2",
451
+ cabin: "Cabin",
452
+ decrease: "Decrease {label}",
453
+ increase: "Increase {label}",
454
+ },
455
+ popularRoutes: {
456
+ title: "Popular routes",
457
+ defaults: [
458
+ {
459
+ originLabel: "London",
460
+ destinationLabel: "New York",
461
+ tag: "Transatlantic",
462
+ hint: "Premium cabins, daily",
463
+ },
464
+ {
465
+ originLabel: "Paris",
466
+ destinationLabel: "Dubai",
467
+ tag: "Connecting hub",
468
+ hint: "Wide carrier mix",
469
+ },
470
+ {
471
+ originLabel: "Amsterdam",
472
+ destinationLabel: "Singapore",
473
+ tag: "Long-haul",
474
+ hint: "Nonstop options",
475
+ },
476
+ {
477
+ originLabel: "Frankfurt",
478
+ destinationLabel: "Tokyo",
479
+ tag: "Long-haul",
480
+ hint: "12-13h nonstop",
481
+ },
482
+ {
483
+ originLabel: "Madrid",
484
+ destinationLabel: "Sao Paulo",
485
+ tag: "Latin America",
486
+ hint: "10h nonstop",
487
+ },
488
+ {
489
+ originLabel: "Barcelona",
490
+ destinationLabel: "Rome",
491
+ tag: "Short-haul",
492
+ hint: "From EUR 60",
493
+ },
494
+ {
495
+ originLabel: "London Gatwick",
496
+ destinationLabel: "Madrid",
497
+ tag: "Short-haul",
498
+ hint: "LCC dominant",
499
+ },
500
+ {
501
+ originLabel: "Dubai",
502
+ destinationLabel: "Bangkok",
503
+ tag: "Asia",
504
+ hint: "6h nonstop",
505
+ },
506
+ {
507
+ originLabel: "San Francisco",
508
+ destinationLabel: "Tokyo",
509
+ tag: "Trans-Pacific",
510
+ hint: "11h nonstop",
511
+ },
512
+ {
513
+ originLabel: "Zurich",
514
+ destinationLabel: "Johannesburg",
515
+ tag: "Africa",
516
+ hint: "11h overnight",
517
+ },
518
+ ],
519
+ },
60
520
  };