@voyant-travel/bookings-react 0.155.2 → 0.156.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/dist/admin/booking-contract-dialog.d.ts +0 -1
- package/dist/admin/booking-detail-host.d.ts +0 -1
- package/dist/admin/booking-detail-skeleton.d.ts +0 -1
- package/dist/admin/booking-documents-table.d.ts +0 -1
- package/dist/admin/booking-invoice-sheet.d.ts +0 -1
- package/dist/admin/booking-journey-host.d.ts +0 -1
- package/dist/admin/booking-journey-host.js +5 -5
- package/dist/admin/bookings-host.d.ts +0 -1
- package/dist/admin/bookings-list-skeleton.d.ts +0 -1
- package/dist/admin/index.d.ts +0 -1
- package/dist/admin/journey-billing-duplicate-warning.d.ts +0 -1
- package/dist/admin/journey-departure-picker.d.ts +0 -1
- package/dist/admin/journey-travel-credit-picker.d.ts +2 -0
- package/dist/admin/{journey-voucher-picker.js → journey-travel-credit-picker.js} +19 -19
- package/dist/admin/journey-units-picker.d.ts +0 -1
- package/dist/admin/pages/booking-compose-page.d.ts +0 -1
- package/dist/admin/pages/booking-detail-page.d.ts +0 -1
- package/dist/admin/pages/booking-journey-page.d.ts +0 -1
- package/dist/admin/pages/booking-new-page.d.ts +0 -1
- package/dist/admin/pages/bookings-index-page.d.ts +0 -1
- package/dist/admin/person-bookings-widget.d.ts +0 -1
- package/dist/admin/slots.d.ts +0 -1
- package/dist/admin/use-booking-action-ledger-events.d.ts +0 -1
- package/dist/booking-list-constants.d.ts +0 -1
- package/dist/client.d.ts +0 -1
- package/dist/components/booking-activity-timeline.d.ts +0 -1
- package/dist/components/booking-billing-dialog.d.ts +0 -1
- package/dist/components/booking-cancellation-dialog.d.ts +0 -1
- package/dist/components/booking-combobox.d.ts +0 -1
- package/dist/components/booking-create-form-utils.d.ts +0 -1
- package/dist/components/booking-create-page.d.ts +0 -1
- package/dist/components/booking-create-preview-card.d.ts +0 -1
- package/dist/components/booking-create-product-extras-picker.d.ts +0 -1
- package/dist/components/booking-create-sheet.d.ts +1 -2
- package/dist/components/booking-create-sheet.js +16 -16
- package/dist/components/booking-create-utils.d.ts +0 -1
- package/dist/components/booking-detail-page.d.ts +0 -1
- package/dist/components/booking-dialog.d.ts +0 -1
- package/dist/components/booking-document-dialog.d.ts +0 -1
- package/dist/components/booking-document-list.d.ts +0 -1
- package/dist/components/booking-group-link-dialog.d.ts +0 -1
- package/dist/components/booking-group-section.d.ts +0 -1
- package/dist/components/booking-guarantee-dialog.d.ts +0 -1
- package/dist/components/booking-guarantee-list.d.ts +0 -1
- package/dist/components/booking-item-dialog.d.ts +0 -1
- package/dist/components/booking-item-list.d.ts +0 -1
- package/dist/components/booking-item-travelers.d.ts +0 -1
- package/dist/components/booking-list-filters.d.ts +0 -1
- package/dist/components/booking-list.d.ts +0 -1
- package/dist/components/booking-note-dialog.d.ts +0 -1
- package/dist/components/booking-notes.d.ts +0 -1
- package/dist/components/booking-payment-reconciliation-banner.d.ts +0 -1
- package/dist/components/booking-payment-schedule-dialog.d.ts +0 -1
- package/dist/components/booking-payment-schedule-list.d.ts +0 -1
- package/dist/components/booking-payments-summary.d.ts +3 -4
- package/dist/components/booking-payments-summary.js +2 -2
- package/dist/components/booking-quick-view-sheet.d.ts +0 -1
- package/dist/components/bookings-page.d.ts +0 -1
- package/dist/components/file-dropzone.d.ts +0 -1
- package/dist/components/icon-action-button.d.ts +0 -1
- package/dist/components/option-units-stepper-section.d.ts +0 -1
- package/dist/components/payment-schedule-section.d.ts +0 -1
- package/dist/components/payment-schedule-section.js +1 -1
- package/dist/components/person-picker-section.d.ts +0 -1
- package/dist/components/price-breakdown-section.d.ts +0 -1
- package/dist/components/product-picker-section.d.ts +0 -1
- package/dist/components/shared-room-section.d.ts +0 -1
- package/dist/components/status-badge.d.ts +0 -1
- package/dist/components/status-change-dialog.d.ts +0 -1
- package/dist/components/supplier-status-dialog.d.ts +0 -1
- package/dist/components/supplier-status-list.d.ts +0 -1
- package/dist/components/{voucher-picker-section.d.ts → travel-credit-picker-section.d.ts} +13 -15
- package/dist/components/{voucher-picker-section.js → travel-credit-picker-section.js} +18 -19
- package/dist/components/traveler-category-buttons.d.ts +0 -1
- package/dist/components/traveler-dialog.d.ts +0 -1
- package/dist/components/traveler-list.d.ts +0 -1
- package/dist/components/travelers-section-controls.d.ts +0 -1
- package/dist/components/travelers-section.d.ts +0 -1
- package/dist/extras/client.d.ts +0 -1
- package/dist/extras/components/product-combobox.d.ts +0 -1
- package/dist/extras/components/slot-extras-manifest-panel.d.ts +0 -1
- package/dist/extras/hooks/index.d.ts +0 -1
- package/dist/extras/hooks/use-product-extra.d.ts +0 -1
- package/dist/extras/hooks/use-product-extras.d.ts +0 -1
- package/dist/extras/hooks/use-slot-extra-manifest-mutation.d.ts +0 -1
- package/dist/extras/hooks/use-slot-extra-manifest.d.ts +0 -1
- package/dist/extras/i18n/en.d.ts +0 -1
- package/dist/extras/i18n/index.d.ts +0 -1
- package/dist/extras/i18n/messages.d.ts +0 -1
- package/dist/extras/i18n/provider.d.ts +0 -1
- package/dist/extras/i18n/ro.d.ts +0 -1
- package/dist/extras/index.d.ts +0 -1
- package/dist/extras/provider.d.ts +0 -1
- package/dist/extras/query-keys.d.ts +0 -1
- package/dist/extras/query-options.d.ts +0 -1
- package/dist/extras/schemas.d.ts +0 -1
- package/dist/extras.d.ts +0 -1
- package/dist/hooks/index.d.ts +1 -2
- package/dist/hooks/use-booking-action-ledger.d.ts +0 -1
- package/dist/hooks/use-booking-activity.d.ts +0 -1
- package/dist/hooks/use-booking-cancel-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-contract-generation.d.ts +0 -1
- package/dist/hooks/use-booking-convert-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-create-mutation.d.ts +6 -7
- package/dist/hooks/use-booking-create-mutation.js +3 -3
- package/dist/hooks/use-booking-documents.d.ts +0 -1
- package/dist/hooks/use-booking-dual-create-mutation.d.ts +4 -5
- package/dist/hooks/use-booking-dual-create-mutation.js +2 -2
- package/dist/hooks/use-booking-group-for-booking.d.ts +0 -1
- package/dist/hooks/use-booking-group-member-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-group-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-group.d.ts +0 -1
- package/dist/hooks/use-booking-groups.d.ts +0 -1
- package/dist/hooks/use-booking-item-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-item-travelers.d.ts +0 -1
- package/dist/hooks/use-booking-items.d.ts +0 -1
- package/dist/hooks/use-booking-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-note-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-notes.d.ts +0 -1
- package/dist/hooks/use-booking-primary-product.d.ts +0 -1
- package/dist/hooks/use-booking-status-mutation.d.ts +0 -1
- package/dist/hooks/use-booking-tax-preview.d.ts +0 -1
- package/dist/hooks/use-booking.d.ts +0 -1
- package/dist/hooks/use-bookings.d.ts +0 -1
- package/dist/hooks/use-pricing-preview.d.ts +0 -1
- package/dist/hooks/use-public-booking-session-flow-mutation.d.ts +0 -1
- package/dist/hooks/use-public-booking-session-state.d.ts +0 -1
- package/dist/hooks/use-public-booking-session.d.ts +0 -1
- package/dist/hooks/use-reveal-traveler.d.ts +0 -1
- package/dist/hooks/use-sharing-groups.d.ts +0 -1
- package/dist/hooks/use-supplier-status-mutation.d.ts +0 -1
- package/dist/hooks/use-supplier-statuses.d.ts +0 -1
- package/dist/hooks/use-traveler-mutation.d.ts +0 -1
- package/dist/hooks/use-traveler-with-travel-details-mutation.d.ts +0 -1
- package/dist/hooks/use-travelers.d.ts +0 -1
- package/dist/i18n/en-base.d.ts +0 -1
- package/dist/i18n/en-create-list.d.ts +7 -8
- package/dist/i18n/en-create-list.js +8 -8
- package/dist/i18n/en-journey.d.ts +0 -1
- package/dist/i18n/en-operations.d.ts +0 -1
- package/dist/i18n/en-sections.d.ts +1 -2
- package/dist/i18n/en-sections.js +13 -13
- package/dist/i18n/en.d.ts +8 -9
- package/dist/i18n/index.d.ts +0 -1
- package/dist/i18n/messages-base.d.ts +0 -1
- package/dist/i18n/messages-create-list.d.ts +7 -8
- package/dist/i18n/messages-journey.d.ts +0 -1
- package/dist/i18n/messages-operations.d.ts +0 -1
- package/dist/i18n/messages-sections.d.ts +1 -2
- package/dist/i18n/messages.d.ts +0 -1
- package/dist/i18n/provider.d.ts +16 -17
- package/dist/i18n/ro-base.d.ts +0 -1
- package/dist/i18n/ro-create-list.d.ts +7 -8
- package/dist/i18n/ro-create-list.js +8 -8
- package/dist/i18n/ro-journey.d.ts +0 -1
- package/dist/i18n/ro-operations.d.ts +0 -1
- package/dist/i18n/ro-sections.d.ts +1 -2
- package/dist/i18n/ro-sections.js +13 -13
- package/dist/i18n/ro.d.ts +8 -9
- package/dist/index.d.ts +0 -1
- package/dist/journey/components/booking-journey-rules.d.ts +0 -1
- package/dist/journey/components/booking-journey.d.ts +0 -1
- package/dist/journey/components/booking-journey.js +2 -2
- package/dist/journey/components/configure-step-skeleton.d.ts +0 -1
- package/dist/journey/components/contract-preview-dialog.d.ts +0 -1
- package/dist/journey/components/journey-steps/accommodation-step.d.ts +0 -1
- package/dist/journey/components/journey-steps/addons-step.d.ts +0 -1
- package/dist/journey/components/journey-steps/billing-step.d.ts +0 -1
- package/dist/journey/components/journey-steps/configure-steps.d.ts +0 -1
- package/dist/journey/components/journey-steps/documents-step.d.ts +0 -1
- package/dist/journey/components/journey-steps/payment-step.d.ts +4 -5
- package/dist/journey/components/journey-steps/payment-step.js +25 -25
- package/dist/journey/components/journey-steps/review-step.d.ts +0 -1
- package/dist/journey/components/journey-steps/shared.d.ts +0 -1
- package/dist/journey/components/journey-steps/travelers-step.d.ts +0 -1
- package/dist/journey/components/journey-steps.d.ts +0 -1
- package/dist/journey/components/side-panel.d.ts +1 -2
- package/dist/journey/components/stacked-journey.d.ts +0 -1
- package/dist/journey/components/step-header.d.ts +0 -1
- package/dist/journey/index.d.ts +1 -2
- package/dist/journey/lib/draft-state.d.ts +0 -1
- package/dist/journey/lib/email-validation.d.ts +0 -1
- package/dist/journey/lib/pax-band-dependencies.d.ts +0 -1
- package/dist/journey/lib/payment-schedule.d.ts +0 -1
- package/dist/journey/types.d.ts +10 -11
- package/dist/provider.d.ts +0 -1
- package/dist/query-keys.d.ts +0 -1
- package/dist/query-options.d.ts +0 -1
- package/dist/requirements/client.d.ts +0 -1
- package/dist/requirements/components/booking-requirements-contact-tab.d.ts +0 -1
- package/dist/requirements/components/booking-requirements-questions-tab.d.ts +0 -1
- package/dist/requirements/constants.d.ts +0 -1
- package/dist/requirements/hooks/index.d.ts +0 -1
- package/dist/requirements/hooks/use-booking-questions.d.ts +0 -1
- package/dist/requirements/hooks/use-contact-requirements.d.ts +0 -1
- package/dist/requirements/hooks/use-products.d.ts +0 -1
- package/dist/requirements/hooks/use-question-options.d.ts +0 -1
- package/dist/requirements/hooks/use-transport-requirements.d.ts +0 -1
- package/dist/requirements/i18n/en.d.ts +0 -1
- package/dist/requirements/i18n/index.d.ts +0 -1
- package/dist/requirements/i18n/messages.d.ts +0 -1
- package/dist/requirements/i18n/provider.d.ts +0 -1
- package/dist/requirements/i18n/ro.d.ts +0 -1
- package/dist/requirements/index.d.ts +0 -1
- package/dist/requirements/provider.d.ts +0 -1
- package/dist/requirements/query-keys.d.ts +0 -1
- package/dist/requirements/query-options.d.ts +0 -1
- package/dist/requirements/schemas.d.ts +0 -1
- package/dist/requirements/ui.d.ts +0 -1
- package/dist/requirements/utils.d.ts +0 -1
- package/dist/schemas.d.ts +0 -1
- package/dist/status-presentation.d.ts +0 -1
- package/dist/storefront/index.d.ts +0 -1
- package/dist/storefront/resolve-contract-variables.d.ts +0 -1
- package/dist/storefront/storefront-booking-errors.d.ts +0 -1
- package/dist/storefront/storefront-booking-journey.d.ts +0 -1
- package/dist/storefront/storefront-booking-page.d.ts +0 -1
- package/dist/ui.d.ts +1 -2
- package/dist/ui.js +1 -1
- package/package.json +42 -42
- package/dist/admin/booking-contract-dialog.d.ts.map +0 -1
- package/dist/admin/booking-detail-host.d.ts.map +0 -1
- package/dist/admin/booking-detail-skeleton.d.ts.map +0 -1
- package/dist/admin/booking-documents-table.d.ts.map +0 -1
- package/dist/admin/booking-invoice-sheet.d.ts.map +0 -1
- package/dist/admin/booking-journey-host.d.ts.map +0 -1
- package/dist/admin/bookings-host.d.ts.map +0 -1
- package/dist/admin/bookings-list-skeleton.d.ts.map +0 -1
- package/dist/admin/index.d.ts.map +0 -1
- package/dist/admin/journey-billing-duplicate-warning.d.ts.map +0 -1
- package/dist/admin/journey-departure-picker.d.ts.map +0 -1
- package/dist/admin/journey-units-picker.d.ts.map +0 -1
- package/dist/admin/journey-voucher-picker.d.ts +0 -3
- package/dist/admin/journey-voucher-picker.d.ts.map +0 -1
- package/dist/admin/pages/booking-compose-page.d.ts.map +0 -1
- package/dist/admin/pages/booking-detail-page.d.ts.map +0 -1
- package/dist/admin/pages/booking-journey-page.d.ts.map +0 -1
- package/dist/admin/pages/booking-new-page.d.ts.map +0 -1
- package/dist/admin/pages/bookings-index-page.d.ts.map +0 -1
- package/dist/admin/person-bookings-widget.d.ts.map +0 -1
- package/dist/admin/slots.d.ts.map +0 -1
- package/dist/admin/use-booking-action-ledger-events.d.ts.map +0 -1
- package/dist/booking-list-constants.d.ts.map +0 -1
- package/dist/client.d.ts.map +0 -1
- package/dist/components/booking-activity-timeline.d.ts.map +0 -1
- package/dist/components/booking-billing-dialog.d.ts.map +0 -1
- package/dist/components/booking-cancellation-dialog.d.ts.map +0 -1
- package/dist/components/booking-combobox.d.ts.map +0 -1
- package/dist/components/booking-create-form-utils.d.ts.map +0 -1
- package/dist/components/booking-create-page.d.ts.map +0 -1
- package/dist/components/booking-create-preview-card.d.ts.map +0 -1
- package/dist/components/booking-create-product-extras-picker.d.ts.map +0 -1
- package/dist/components/booking-create-sheet.d.ts.map +0 -1
- package/dist/components/booking-create-utils.d.ts.map +0 -1
- package/dist/components/booking-detail-page.d.ts.map +0 -1
- package/dist/components/booking-dialog.d.ts.map +0 -1
- package/dist/components/booking-document-dialog.d.ts.map +0 -1
- package/dist/components/booking-document-list.d.ts.map +0 -1
- package/dist/components/booking-group-link-dialog.d.ts.map +0 -1
- package/dist/components/booking-group-section.d.ts.map +0 -1
- package/dist/components/booking-guarantee-dialog.d.ts.map +0 -1
- package/dist/components/booking-guarantee-list.d.ts.map +0 -1
- package/dist/components/booking-item-dialog.d.ts.map +0 -1
- package/dist/components/booking-item-list.d.ts.map +0 -1
- package/dist/components/booking-item-travelers.d.ts.map +0 -1
- package/dist/components/booking-list-filters.d.ts.map +0 -1
- package/dist/components/booking-list.d.ts.map +0 -1
- package/dist/components/booking-note-dialog.d.ts.map +0 -1
- package/dist/components/booking-notes.d.ts.map +0 -1
- package/dist/components/booking-payment-reconciliation-banner.d.ts.map +0 -1
- package/dist/components/booking-payment-schedule-dialog.d.ts.map +0 -1
- package/dist/components/booking-payment-schedule-list.d.ts.map +0 -1
- package/dist/components/booking-payments-summary.d.ts.map +0 -1
- package/dist/components/booking-quick-view-sheet.d.ts.map +0 -1
- package/dist/components/bookings-page.d.ts.map +0 -1
- package/dist/components/file-dropzone.d.ts.map +0 -1
- package/dist/components/icon-action-button.d.ts.map +0 -1
- package/dist/components/option-units-stepper-section.d.ts.map +0 -1
- package/dist/components/payment-schedule-section.d.ts.map +0 -1
- package/dist/components/person-picker-section.d.ts.map +0 -1
- package/dist/components/price-breakdown-section.d.ts.map +0 -1
- package/dist/components/product-picker-section.d.ts.map +0 -1
- package/dist/components/shared-room-section.d.ts.map +0 -1
- package/dist/components/status-badge.d.ts.map +0 -1
- package/dist/components/status-change-dialog.d.ts.map +0 -1
- package/dist/components/supplier-status-dialog.d.ts.map +0 -1
- package/dist/components/supplier-status-list.d.ts.map +0 -1
- package/dist/components/traveler-category-buttons.d.ts.map +0 -1
- package/dist/components/traveler-dialog.d.ts.map +0 -1
- package/dist/components/traveler-list.d.ts.map +0 -1
- package/dist/components/travelers-section-controls.d.ts.map +0 -1
- package/dist/components/travelers-section.d.ts.map +0 -1
- package/dist/components/voucher-picker-section.d.ts.map +0 -1
- package/dist/extras/client.d.ts.map +0 -1
- package/dist/extras/components/product-combobox.d.ts.map +0 -1
- package/dist/extras/components/slot-extras-manifest-panel.d.ts.map +0 -1
- package/dist/extras/hooks/index.d.ts.map +0 -1
- package/dist/extras/hooks/use-product-extra.d.ts.map +0 -1
- package/dist/extras/hooks/use-product-extras.d.ts.map +0 -1
- package/dist/extras/hooks/use-slot-extra-manifest-mutation.d.ts.map +0 -1
- package/dist/extras/hooks/use-slot-extra-manifest.d.ts.map +0 -1
- package/dist/extras/i18n/en.d.ts.map +0 -1
- package/dist/extras/i18n/index.d.ts.map +0 -1
- package/dist/extras/i18n/messages.d.ts.map +0 -1
- package/dist/extras/i18n/provider.d.ts.map +0 -1
- package/dist/extras/i18n/ro.d.ts.map +0 -1
- package/dist/extras/index.d.ts.map +0 -1
- package/dist/extras/provider.d.ts.map +0 -1
- package/dist/extras/query-keys.d.ts.map +0 -1
- package/dist/extras/query-options.d.ts.map +0 -1
- package/dist/extras/schemas.d.ts.map +0 -1
- package/dist/extras.d.ts.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/use-booking-action-ledger.d.ts.map +0 -1
- package/dist/hooks/use-booking-activity.d.ts.map +0 -1
- package/dist/hooks/use-booking-cancel-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-contract-generation.d.ts.map +0 -1
- package/dist/hooks/use-booking-convert-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-create-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-documents.d.ts.map +0 -1
- package/dist/hooks/use-booking-dual-create-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-group-for-booking.d.ts.map +0 -1
- package/dist/hooks/use-booking-group-member-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-group-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-group.d.ts.map +0 -1
- package/dist/hooks/use-booking-groups.d.ts.map +0 -1
- package/dist/hooks/use-booking-item-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-item-travelers.d.ts.map +0 -1
- package/dist/hooks/use-booking-items.d.ts.map +0 -1
- package/dist/hooks/use-booking-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-note-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-notes.d.ts.map +0 -1
- package/dist/hooks/use-booking-primary-product.d.ts.map +0 -1
- package/dist/hooks/use-booking-status-mutation.d.ts.map +0 -1
- package/dist/hooks/use-booking-tax-preview.d.ts.map +0 -1
- package/dist/hooks/use-booking.d.ts.map +0 -1
- package/dist/hooks/use-bookings.d.ts.map +0 -1
- package/dist/hooks/use-pricing-preview.d.ts.map +0 -1
- package/dist/hooks/use-public-booking-session-flow-mutation.d.ts.map +0 -1
- package/dist/hooks/use-public-booking-session-state.d.ts.map +0 -1
- package/dist/hooks/use-public-booking-session.d.ts.map +0 -1
- package/dist/hooks/use-reveal-traveler.d.ts.map +0 -1
- package/dist/hooks/use-sharing-groups.d.ts.map +0 -1
- package/dist/hooks/use-supplier-status-mutation.d.ts.map +0 -1
- package/dist/hooks/use-supplier-statuses.d.ts.map +0 -1
- package/dist/hooks/use-traveler-mutation.d.ts.map +0 -1
- package/dist/hooks/use-traveler-with-travel-details-mutation.d.ts.map +0 -1
- package/dist/hooks/use-travelers.d.ts.map +0 -1
- package/dist/i18n/en-base.d.ts.map +0 -1
- package/dist/i18n/en-create-list.d.ts.map +0 -1
- package/dist/i18n/en-journey.d.ts.map +0 -1
- package/dist/i18n/en-operations.d.ts.map +0 -1
- package/dist/i18n/en-sections.d.ts.map +0 -1
- package/dist/i18n/en.d.ts.map +0 -1
- package/dist/i18n/index.d.ts.map +0 -1
- package/dist/i18n/messages-base.d.ts.map +0 -1
- package/dist/i18n/messages-create-list.d.ts.map +0 -1
- package/dist/i18n/messages-journey.d.ts.map +0 -1
- package/dist/i18n/messages-operations.d.ts.map +0 -1
- package/dist/i18n/messages-sections.d.ts.map +0 -1
- package/dist/i18n/messages.d.ts.map +0 -1
- package/dist/i18n/provider.d.ts.map +0 -1
- package/dist/i18n/ro-base.d.ts.map +0 -1
- package/dist/i18n/ro-create-list.d.ts.map +0 -1
- package/dist/i18n/ro-journey.d.ts.map +0 -1
- package/dist/i18n/ro-operations.d.ts.map +0 -1
- package/dist/i18n/ro-sections.d.ts.map +0 -1
- package/dist/i18n/ro.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/journey/components/booking-journey-rules.d.ts.map +0 -1
- package/dist/journey/components/booking-journey.d.ts.map +0 -1
- package/dist/journey/components/configure-step-skeleton.d.ts.map +0 -1
- package/dist/journey/components/contract-preview-dialog.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/accommodation-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/addons-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/billing-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/configure-steps.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/documents-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/payment-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/review-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/shared.d.ts.map +0 -1
- package/dist/journey/components/journey-steps/travelers-step.d.ts.map +0 -1
- package/dist/journey/components/journey-steps.d.ts.map +0 -1
- package/dist/journey/components/side-panel.d.ts.map +0 -1
- package/dist/journey/components/stacked-journey.d.ts.map +0 -1
- package/dist/journey/components/step-header.d.ts.map +0 -1
- package/dist/journey/index.d.ts.map +0 -1
- package/dist/journey/lib/draft-state.d.ts.map +0 -1
- package/dist/journey/lib/email-validation.d.ts.map +0 -1
- package/dist/journey/lib/pax-band-dependencies.d.ts.map +0 -1
- package/dist/journey/lib/payment-schedule.d.ts.map +0 -1
- package/dist/journey/types.d.ts.map +0 -1
- package/dist/provider.d.ts.map +0 -1
- package/dist/query-keys.d.ts.map +0 -1
- package/dist/query-options.d.ts.map +0 -1
- package/dist/requirements/client.d.ts.map +0 -1
- package/dist/requirements/components/booking-requirements-contact-tab.d.ts.map +0 -1
- package/dist/requirements/components/booking-requirements-questions-tab.d.ts.map +0 -1
- package/dist/requirements/constants.d.ts.map +0 -1
- package/dist/requirements/hooks/index.d.ts.map +0 -1
- package/dist/requirements/hooks/use-booking-questions.d.ts.map +0 -1
- package/dist/requirements/hooks/use-contact-requirements.d.ts.map +0 -1
- package/dist/requirements/hooks/use-products.d.ts.map +0 -1
- package/dist/requirements/hooks/use-question-options.d.ts.map +0 -1
- package/dist/requirements/hooks/use-transport-requirements.d.ts.map +0 -1
- package/dist/requirements/i18n/en.d.ts.map +0 -1
- package/dist/requirements/i18n/index.d.ts.map +0 -1
- package/dist/requirements/i18n/messages.d.ts.map +0 -1
- package/dist/requirements/i18n/provider.d.ts.map +0 -1
- package/dist/requirements/i18n/ro.d.ts.map +0 -1
- package/dist/requirements/index.d.ts.map +0 -1
- package/dist/requirements/provider.d.ts.map +0 -1
- package/dist/requirements/query-keys.d.ts.map +0 -1
- package/dist/requirements/query-options.d.ts.map +0 -1
- package/dist/requirements/schemas.d.ts.map +0 -1
- package/dist/requirements/ui.d.ts.map +0 -1
- package/dist/requirements/utils.d.ts.map +0 -1
- package/dist/schemas.d.ts.map +0 -1
- package/dist/status-presentation.d.ts.map +0 -1
- package/dist/storefront/index.d.ts.map +0 -1
- package/dist/storefront/resolve-contract-variables.d.ts.map +0 -1
- package/dist/storefront/storefront-booking-errors.d.ts.map +0 -1
- package/dist/storefront/storefront-booking-journey.d.ts.map +0 -1
- package/dist/storefront/storefront-booking-page.d.ts.map +0 -1
- package/dist/ui.d.ts.map +0 -1
package/dist/i18n/ro.d.ts
CHANGED
|
@@ -108,12 +108,12 @@ export declare const bookingsUiRo: {
|
|
|
108
108
|
sharedRoomCreateHint: string;
|
|
109
109
|
sharedRoomRemove: string;
|
|
110
110
|
sharedRoomGeneratedLabelPrefix: string;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
travelCreditHeading: string;
|
|
112
|
+
travelCreditCodePlaceholder: string;
|
|
113
|
+
travelCreditApply: string;
|
|
114
|
+
travelCreditClear: string;
|
|
115
|
+
travelCreditRemainingLabel: string;
|
|
116
|
+
travelCreditInvalidLabel: string;
|
|
117
117
|
paymentHeading: string;
|
|
118
118
|
previewHeading: string;
|
|
119
119
|
previewEmpty: string;
|
|
@@ -237,7 +237,7 @@ export declare const bookingsUiRo: {
|
|
|
237
237
|
card: string;
|
|
238
238
|
bank_transfer: string;
|
|
239
239
|
cash: string;
|
|
240
|
-
|
|
240
|
+
travel_credit: string;
|
|
241
241
|
other: string;
|
|
242
242
|
};
|
|
243
243
|
paymentStatusLabels: {
|
|
@@ -1067,7 +1067,7 @@ export declare const bookingsUiRo: {
|
|
|
1067
1067
|
uploadFailed: string;
|
|
1068
1068
|
};
|
|
1069
1069
|
};
|
|
1070
|
-
|
|
1070
|
+
travelCreditPickerSection: {
|
|
1071
1071
|
labels: {
|
|
1072
1072
|
heading: string;
|
|
1073
1073
|
codePlaceholder: string;
|
|
@@ -1601,4 +1601,3 @@ export declare const bookingsUiRo: {
|
|
|
1601
1601
|
};
|
|
1602
1602
|
};
|
|
1603
1603
|
};
|
|
1604
|
-
//# sourceMappingURL=ro.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -6,4 +6,3 @@ export { getBookingActivityQueryOptions, getBookingGroupForBookingQueryOptions,
|
|
|
6
6
|
export { bookingRequirementsQueryKeys, getTransportRequirementsQueryOptions, publicTransportRequirementsSchema, transportRequirementFieldSchema, useTransportRequirements, } from "./requirements/index.js";
|
|
7
7
|
export * from "./schemas.js";
|
|
8
8
|
export { type BookingStatusBadgeVariant, bookingStatusBadgeVariant, bookingStatuses, bookingStatusOptions, formatBookingStatus, } from "./status-presentation.js";
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -55,4 +55,3 @@ export declare function warningsForStep(step: JourneyStep, draft: Draft, shape:
|
|
|
55
55
|
*/
|
|
56
56
|
export declare function makeHoldSignature(draft: Draft, entityModule: string, entityId: string): string | null;
|
|
57
57
|
export declare function defaultMinimalShape(): BookingDraftShape;
|
|
58
|
-
//# sourceMappingURL=booking-journey-rules.d.ts.map
|
|
@@ -428,8 +428,8 @@ export function BookingJourney(props) {
|
|
|
428
428
|
// Surface both the in-process commit error and the "no valid quote"
|
|
429
429
|
// Confirm block so a failed confirm is never silent.
|
|
430
430
|
commitError: commit.error ?? confirmError, onCancel: props.onCancelled, onConfirm: onConfirm, isCommitting: commit.isPending || isHandlingCheckout, canConfirm: canCommit, banner: quoteErrorBanner, sidePanel: _jsx(PriceSidePanel, { pricing: quote.data?.pricing ?? null, isQuoting: quote.isQuoting, invalidReason: quote.data?.invalidReason, entitySummary: props.entitySummary, currentStep: firstIncomplete, steps: stackedSteps, shape: shape, draft: draft, className: props.sidePanelClassName,
|
|
431
|
-
// Price override
|
|
432
|
-
pricingExtras: _jsx(FinalizeControls, { draft: draft, setDraft: setDraft, pricing: quote.data?.pricing ?? null,
|
|
431
|
+
// Price override and Travel Credit live with the pricing, not in Payment.
|
|
432
|
+
pricingExtras: _jsx(FinalizeControls, { draft: draft, setDraft: setDraft, pricing: quote.data?.pricing ?? null, renderTravelCreditPicker: props.renderTravelCreditPicker }) }), contractDialog: contractConfig ? (_jsx(ContractPreviewDialog, { open: contractDialogOpen, onOpenChange: setContractDialogOpen, previewUrl: contractConfig.previewUrl, acceptLanguage: contractConfig.acceptLanguage, variables: contractVariables, marketingLabel: contractConfig.marketingLabel, termsLabel: contractConfig.termsLabel, onAccept: onContractAccept })) : null }));
|
|
433
433
|
}
|
|
434
434
|
return (_jsxs("div", { className: props.className, children: [_jsxs("div", { className: "grid grid-cols-1 gap-6 md:grid-cols-8 md:items-start", children: [_jsxs("div", { className: "space-y-6 md:col-span-5", children: [_jsx(StepHeader, { current: currentStep, visited: [...visited], steps: steps, shape: shape, onJumpTo: jumpTo }), quoteErrorBanner, currentStep === "departure" ? (
|
|
435
435
|
// First load: the descriptor arrives with the first quote. Show a
|
|
@@ -44,4 +44,3 @@ export interface ContractAcceptance {
|
|
|
44
44
|
renderedHtml: string;
|
|
45
45
|
}
|
|
46
46
|
export declare function ContractPreviewDialog({ open, onOpenChange, variables, previewUrl, acceptLanguage, onAccept, marketingLabel, termsLabel, }: ContractPreviewDialogProps): React.ReactElement;
|
|
47
|
-
//# sourceMappingURL=contract-preview-dialog.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Draft } from "../../lib/draft-state.js";
|
|
2
|
-
import type { PaymentProviderCapabilities, PaymentProviderStepRenderProps,
|
|
2
|
+
import type { PaymentProviderCapabilities, PaymentProviderStepRenderProps, TravelCreditPickerProps } from "../../types.js";
|
|
3
3
|
import type { StepCommonProps } from "./shared.js";
|
|
4
4
|
export declare function PaymentStep({ draft, setDraft, shape, capabilities, renderProviderStep, surface, pricing, }: StepCommonProps & {
|
|
5
5
|
capabilities: PaymentProviderCapabilities;
|
|
@@ -13,17 +13,16 @@ export declare function PaymentStep({ draft, setDraft, shape, capabilities, rend
|
|
|
13
13
|
}): React.ReactElement;
|
|
14
14
|
/**
|
|
15
15
|
* Operator-only PAYMENT-RELATED finalize controls — manual price override and
|
|
16
|
-
*
|
|
16
|
+
* Travel Credit redemption (both change the amount due, so they live in the Payment
|
|
17
17
|
* block). Non-payment finalization (internal notes, document generation) lives
|
|
18
18
|
* in the separate Documents step.
|
|
19
19
|
*/
|
|
20
|
-
export declare function FinalizeControls({ draft, setDraft, pricing,
|
|
20
|
+
export declare function FinalizeControls({ draft, setDraft, pricing, renderTravelCreditPicker, }: {
|
|
21
21
|
draft: Draft;
|
|
22
22
|
setDraft: (next: Draft) => void;
|
|
23
23
|
pricing?: {
|
|
24
24
|
total: number;
|
|
25
25
|
currency: string;
|
|
26
26
|
} | null;
|
|
27
|
-
|
|
27
|
+
renderTravelCreditPicker?: (props: TravelCreditPickerProps) => React.ReactNode;
|
|
28
28
|
}): React.ReactElement;
|
|
29
|
-
//# sourceMappingURL=payment-step.d.ts.map
|
|
@@ -10,7 +10,7 @@ import { RadioGroup, RadioGroupItem } from "@voyant-travel/ui/components/radio-g
|
|
|
10
10
|
import { Textarea } from "@voyant-travel/ui/components/textarea";
|
|
11
11
|
import { useEffect, useRef, useState } from "react";
|
|
12
12
|
import { PaymentScheduleSection, } from "../../../components/payment-schedule-section.js";
|
|
13
|
-
import {
|
|
13
|
+
import { emptyTravelCreditPickerValue, TravelCreditPickerSection, } from "../../../components/travel-credit-picker-section.js";
|
|
14
14
|
import { useBookingsUiMessagesOrDefault } from "../../../i18n/index.js";
|
|
15
15
|
import { setPayment } from "../../lib/draft-state.js";
|
|
16
16
|
import { paymentScheduleValueToRows, rowsToPaymentScheduleValue, } from "../../lib/payment-schedule.js";
|
|
@@ -148,44 +148,44 @@ function PriceOverrideEditor({ draft, setDraft, pricing, }) {
|
|
|
148
148
|
}) }), reasonNeeded ? (_jsx("p", { className: "text-destructive text-xs", children: messages.priceOverrideReasonRequired })) : null] })] })) : null] }));
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
|
-
* Operator-only
|
|
152
|
-
* `
|
|
153
|
-
* `/v1/public/
|
|
154
|
-
* `draft.
|
|
151
|
+
* Operator-only Travel Credit editor for the review step. Wraps the shared
|
|
152
|
+
* `TravelCreditPickerSection` (which validates the code against
|
|
153
|
+
* `/v1/public/finance/travel-credits/validate`) and mirrors the picked credit into
|
|
154
|
+
* `draft.travelCreditRedemption` so the owned handler redeems it atomically at
|
|
155
155
|
* commit — matching the standalone create-sheet's behaviour. Redeems the
|
|
156
156
|
* full remaining balance, same as the create-sheet.
|
|
157
157
|
*/
|
|
158
|
-
function
|
|
158
|
+
function TravelCreditEditor({ draft, setDraft, pricing, renderTravelCreditPicker, }) {
|
|
159
159
|
const labels = useBookingsUiMessagesOrDefault().bookingCreateDialog.labels;
|
|
160
|
-
const [
|
|
160
|
+
const [travelCredit, setTravelCredit] = useState(emptyTravelCreditPickerValue);
|
|
161
161
|
// Operator surface: an async search combobox (no need to know the code).
|
|
162
|
-
if (
|
|
163
|
-
return (_jsx(_Fragment, { children:
|
|
162
|
+
if (renderTravelCreditPicker) {
|
|
163
|
+
return (_jsx(_Fragment, { children: renderTravelCreditPicker({
|
|
164
164
|
value: {
|
|
165
|
-
|
|
166
|
-
amountCents: draft.
|
|
165
|
+
travelCreditId: draft.travelCreditRedemption?.travelCreditId,
|
|
166
|
+
amountCents: draft.travelCreditRedemption?.amountCents,
|
|
167
167
|
},
|
|
168
|
-
onApply: (picked) => setDraft({ ...draft,
|
|
168
|
+
onApply: (picked) => setDraft({ ...draft, travelCreditRedemption: picked ?? undefined }),
|
|
169
169
|
currency: pricing?.currency,
|
|
170
170
|
amountCents: pricing?.total ?? undefined,
|
|
171
171
|
}) }));
|
|
172
172
|
}
|
|
173
|
-
return (_jsx(
|
|
174
|
-
|
|
173
|
+
return (_jsx(TravelCreditPickerSection, { value: travelCredit, onChange: (next) => {
|
|
174
|
+
setTravelCredit(next);
|
|
175
175
|
const redemption = next.picked && next.picked.remainingAmountCents != null
|
|
176
176
|
? {
|
|
177
|
-
|
|
177
|
+
travelCreditId: next.picked.id,
|
|
178
178
|
amountCents: next.picked.remainingAmountCents,
|
|
179
179
|
}
|
|
180
180
|
: undefined;
|
|
181
|
-
setDraft({ ...draft,
|
|
181
|
+
setDraft({ ...draft, travelCreditRedemption: redemption });
|
|
182
182
|
}, currency: pricing?.currency, amountCents: pricing?.total ?? undefined, labels: {
|
|
183
|
-
heading: labels.
|
|
184
|
-
codePlaceholder: labels.
|
|
185
|
-
apply: labels.
|
|
186
|
-
clear: labels.
|
|
187
|
-
remainingLabel: labels.
|
|
188
|
-
invalidLabel: labels.
|
|
183
|
+
heading: labels.travelCreditHeading,
|
|
184
|
+
codePlaceholder: labels.travelCreditCodePlaceholder,
|
|
185
|
+
apply: labels.travelCreditApply,
|
|
186
|
+
clear: labels.travelCreditClear,
|
|
187
|
+
remainingLabel: labels.travelCreditRemainingLabel,
|
|
188
|
+
invalidLabel: labels.travelCreditInvalidLabel,
|
|
189
189
|
} }));
|
|
190
190
|
}
|
|
191
191
|
function BankTransferDetails({ capabilities, }) {
|
|
@@ -227,10 +227,10 @@ function intentMeta(intent, messages, surface) {
|
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
229
|
* Operator-only PAYMENT-RELATED finalize controls — manual price override and
|
|
230
|
-
*
|
|
230
|
+
* Travel Credit redemption (both change the amount due, so they live in the Payment
|
|
231
231
|
* block). Non-payment finalization (internal notes, document generation) lives
|
|
232
232
|
* in the separate Documents step.
|
|
233
233
|
*/
|
|
234
|
-
export function FinalizeControls({ draft, setDraft, pricing,
|
|
235
|
-
return (_jsxs("div", { className: "space-y-4", children: [_jsx(PriceOverrideEditor, { draft: draft, setDraft: setDraft, pricing: pricing }), _jsx(
|
|
234
|
+
export function FinalizeControls({ draft, setDraft, pricing, renderTravelCreditPicker, }) {
|
|
235
|
+
return (_jsxs("div", { className: "space-y-4", children: [_jsx(PriceOverrideEditor, { draft: draft, setDraft: setDraft, pricing: pricing }), _jsx(TravelCreditEditor, { draft: draft, setDraft: setDraft, pricing: pricing, renderTravelCreditPicker: renderTravelCreditPicker })] }));
|
|
236
236
|
}
|
|
@@ -105,4 +105,3 @@ export declare function computeAge(dob: string): number | null;
|
|
|
105
105
|
export declare function ageHint(min: number | undefined, max: number | undefined, messages: ReturnType<typeof useBookingsUiMessagesOrDefault>): string;
|
|
106
106
|
export declare function bucketBy<T>(items: ReadonlyArray<T>, keyFn: (item: T) => string): Map<string, T[]>;
|
|
107
107
|
export declare function cryptoRowId(): string;
|
|
108
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -18,4 +18,3 @@ export { FinalizeControls, PaymentStep } from "./journey-steps/payment-step.js";
|
|
|
18
18
|
export { ReviewStep } from "./journey-steps/review-step.js";
|
|
19
19
|
export { deriveDefaultPhoneCountry, JourneyWarnings } from "./journey-steps/shared.js";
|
|
20
20
|
export { TravelersStep } from "./journey-steps/travelers-step.js";
|
|
21
|
-
//# sourceMappingURL=journey-steps.d.ts.map
|
|
@@ -9,9 +9,8 @@ import type { JourneyStep, SidePanelState } from "../types.js";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function PriceSidePanel({ pricing, isQuoting, invalidReason, entitySummary, currentStep, steps, shape, draft, className, pricingExtras, }: SidePanelState & {
|
|
11
11
|
className?: string;
|
|
12
|
-
/** Operator-only price controls (override +
|
|
12
|
+
/** Operator-only price controls (override + Travel Credit) rendered with the
|
|
13
13
|
* pricing, where they're most in context. */
|
|
14
14
|
pricingExtras?: React.ReactNode;
|
|
15
15
|
}): React.ReactElement;
|
|
16
16
|
export declare function stepHeadline(step: JourneyStep, draft: NonNullable<SidePanelState["draft"]>, messages: ReturnType<typeof useBookingsUiMessagesOrDefault>): string;
|
|
17
|
-
//# sourceMappingURL=side-panel.d.ts.map
|
package/dist/journey/index.d.ts
CHANGED
|
@@ -14,5 +14,4 @@ export { AccommodationStep, AddonsStep, BillingStep, DepartureStep, OptionsStep,
|
|
|
14
14
|
export { PriceSidePanel } from "./components/side-panel.js";
|
|
15
15
|
export { StepHeader } from "./components/step-header.js";
|
|
16
16
|
export { type Draft, emptyDraft, patchBilling, patchConfigure, patchPaxCount, setAccommodation, setAddons, setPayment, setTravelers, totalPax, } from "./lib/draft-state.js";
|
|
17
|
-
export { type BillingExtrasContext, type BookingEntitySummary, type BookingJourneyCheckoutContext, type BookingJourneyProps, type BookingJourneyTransitionGuard, type BookingJourneyTransitionGuardContext, type BookingJourneyTransitionGuardResult, type ContractAcceptanceEvent, type DeparturePickerProps, JOURNEY_STEP_ORDER, type JourneyHeaderState, type JourneyOptionSelection, type JourneyStep, type JourneySurface, type LeadContactPickerProps, type PaymentProviderCapabilities, type PaymentProviderStepRenderProps, type SidePanelState, type
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
17
|
+
export { type BillingExtrasContext, type BookingEntitySummary, type BookingJourneyCheckoutContext, type BookingJourneyProps, type BookingJourneyTransitionGuard, type BookingJourneyTransitionGuardContext, type BookingJourneyTransitionGuardResult, type ContractAcceptanceEvent, type DeparturePickerProps, JOURNEY_STEP_ORDER, type JourneyHeaderState, type JourneyOptionSelection, type JourneyStep, type JourneySurface, type LeadContactPickerProps, type PaymentProviderCapabilities, type PaymentProviderStepRenderProps, type SidePanelState, type TravelCreditPickerProps, type TravelerContactPickerProps, type UnitsPickerProps, } from "./types.js";
|
|
@@ -33,4 +33,3 @@ export declare function setAccommodation(draft: Draft, accommodation: Draft["acc
|
|
|
33
33
|
export declare function setAddons(draft: Draft, addons: Draft["addons"]): Draft;
|
|
34
34
|
export declare function setPayment(draft: Draft, payment: Draft["payment"]): Draft;
|
|
35
35
|
export declare function totalPax(draft: Draft): number;
|
|
36
|
-
//# sourceMappingURL=draft-state.d.ts.map
|
|
@@ -17,4 +17,3 @@ export declare function findPaidScheduleRowsMissingPaymentDate(rows: PaymentSche
|
|
|
17
17
|
/** Draft rows → editor value (re-init on step remount; preserves paid metadata). */
|
|
18
18
|
export declare function rowsToPaymentScheduleValue(rows: PaymentScheduleRow[] | undefined, departureDate: string | null): PaymentScheduleValue;
|
|
19
19
|
export {};
|
|
20
|
-
//# sourceMappingURL=payment-schedule.d.ts.map
|
package/dist/journey/types.d.ts
CHANGED
|
@@ -71,19 +71,19 @@ export interface BillingExtrasContext {
|
|
|
71
71
|
departureDate?: string;
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* Props for the injectable
|
|
75
|
-
* combobox (search the admin
|
|
74
|
+
* Props for the injectable Travel Credit picker. The operator surface wires an async
|
|
75
|
+
* combobox (search the admin Travel Credit list) so staff pick stored value without
|
|
76
76
|
* knowing the exact code; the storefront keeps the customer code-entry form.
|
|
77
77
|
*/
|
|
78
|
-
export interface
|
|
79
|
-
/** Currently
|
|
78
|
+
export interface TravelCreditPickerProps {
|
|
79
|
+
/** Currently linked Travel Credit redemption on the draft, if any. */
|
|
80
80
|
value: {
|
|
81
|
-
|
|
81
|
+
travelCreditId?: string;
|
|
82
82
|
amountCents?: number;
|
|
83
83
|
};
|
|
84
|
-
/** Apply a picked
|
|
84
|
+
/** Apply a picked Travel Credit's full remaining balance, or clear with `null`. */
|
|
85
85
|
onApply: (picked: {
|
|
86
|
-
|
|
86
|
+
travelCreditId: string;
|
|
87
87
|
amountCents: number;
|
|
88
88
|
} | null) => void;
|
|
89
89
|
/** Booking currency + payable total, to display/cap the redemption. */
|
|
@@ -273,9 +273,9 @@ export interface BookingJourneyProps {
|
|
|
273
273
|
/** Operator: pulls from CRM. Storefront: bare inline form. */
|
|
274
274
|
renderLeadContactPicker?: (props: LeadContactPickerProps) => ReactNode;
|
|
275
275
|
renderTravelerContactPicker?: (props: TravelerContactPickerProps) => ReactNode;
|
|
276
|
-
/** Operator-only
|
|
276
|
+
/** Operator-only Travel Credit picker (async search). When omitted, the
|
|
277
277
|
* control falls back to the customer code-entry form. */
|
|
278
|
-
|
|
278
|
+
renderTravelCreditPicker?: (props: TravelCreditPickerProps) => ReactNode;
|
|
279
279
|
/**
|
|
280
280
|
* Renders the Configure step's `"departure"` sub-step. Operator
|
|
281
281
|
* surfaces wire this to a scheduled-departure picker (availability);
|
|
@@ -300,7 +300,7 @@ export interface BookingJourneyProps {
|
|
|
300
300
|
*/
|
|
301
301
|
onBeforeStepAdvance?: BookingJourneyTransitionGuard;
|
|
302
302
|
/** Optional pre/post-step extension slots — useful when a
|
|
303
|
-
* template wants to inject a custom block (e.g.
|
|
303
|
+
* template wants to inject a custom block (e.g. Promotion Code
|
|
304
304
|
* banner, marketing opt-in). */
|
|
305
305
|
renderConfigureExtras?: () => ReactNode;
|
|
306
306
|
/** Billing extras — receives the picked lead + departure so a template can,
|
|
@@ -422,4 +422,3 @@ export interface SidePanelState {
|
|
|
422
422
|
shape?: BookingDraftShape;
|
|
423
423
|
draft?: BookingDraftV1;
|
|
424
424
|
}
|
|
425
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/provider.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
export { useVoyantReactContext as useVoyantBookingsContext, type VoyantReactContextValue as VoyantBookingsContextValue, VoyantReactProvider as VoyantBookingsProvider, type VoyantReactProviderProps as VoyantBookingsProviderProps, } from "@voyant-travel/react";
|
|
2
|
-
//# sourceMappingURL=provider.d.ts.map
|
package/dist/query-keys.d.ts
CHANGED
|
@@ -71,4 +71,3 @@ export declare const bookingsQueryKeys: {
|
|
|
71
71
|
readonly pricingPreview: (filters: PricingPreviewFilters) => readonly ["voyant", "bookings", "pricing-preview", PricingPreviewFilters];
|
|
72
72
|
readonly taxPreview: (filters: TaxPreviewFilters) => readonly ["voyant", "bookings", "tax-preview", TaxPreviewFilters];
|
|
73
73
|
};
|
|
74
|
-
//# sourceMappingURL=query-keys.d.ts.map
|
package/dist/query-options.d.ts
CHANGED
|
@@ -11,4 +11,3 @@ export interface FetchWithValidationOptions {
|
|
|
11
11
|
fetcher: VoyantFetcher;
|
|
12
12
|
}
|
|
13
13
|
export declare function fetchWithValidation<TOut>(path: string, schema: z.ZodType<TOut>, options: FetchWithValidationOptions, init?: RequestInit): Promise<TOut>;
|
|
14
|
-
//# sourceMappingURL=client.d.ts.map
|
|
@@ -11,4 +11,3 @@ export declare function BookingRequirementsQuestionsTab({ rows, expandedIds, que
|
|
|
11
11
|
onEditOption: (question: BookingQuestion, option: BookingQuestionOption) => void;
|
|
12
12
|
onDeleteOption: (option: BookingQuestionOption) => void;
|
|
13
13
|
}): import("react").JSX.Element;
|
|
14
|
-
//# sourceMappingURL=booking-requirements-questions-tab.d.ts.map
|
|
@@ -2,4 +2,3 @@ export { bookingRequirementsUiEn } from "./en.js";
|
|
|
2
2
|
export type { BookingRequirementsUiMessages, ContactFieldKey, ContactScope, QuestionFieldType, QuestionTarget, } from "./messages.js";
|
|
3
3
|
export { type BookingRequirementsUiMessageOverrides, BookingRequirementsUiMessagesProvider, bookingRequirementsUiMessageDefinitions, getBookingRequirementsUiI18n, resolveBookingRequirementsUiMessages, useBookingRequirementsUiI18n, useBookingRequirementsUiI18nOrDefault, useBookingRequirementsUiMessages, useBookingRequirementsUiMessagesOrDefault, } from "./provider.js";
|
|
4
4
|
export { bookingRequirementsUiRo } from "./ro.js";
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -207,4 +207,3 @@ export declare const useBookingRequirementsUiI18n: () => PackageI18nValue<Bookin
|
|
|
207
207
|
export declare const useBookingRequirementsUiMessages: () => BookingRequirementsUiMessages;
|
|
208
208
|
export declare function useBookingRequirementsUiI18nOrDefault(): PackageI18nValue<BookingRequirementsUiMessages>;
|
|
209
209
|
export declare function useBookingRequirementsUiMessagesOrDefault(): BookingRequirementsUiMessages;
|
|
210
|
-
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -6,4 +6,3 @@ export { bookingRequirementsQueryKeys } from "./query-keys.js";
|
|
|
6
6
|
export { getBookingQuestionsQueryOptions, getContactRequirementsQueryOptions, getProductsQueryOptions, getQuestionOptionsQueryOptions, getTransportRequirementsQueryOptions, } from "./query-options.js";
|
|
7
7
|
export * from "./schemas.js";
|
|
8
8
|
export * from "./utils.js";
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
export { useVoyantReactContext as useVoyantBookingRequirementsContext, type VoyantReactContextValue as VoyantBookingRequirementsContextValue, VoyantReactProvider as VoyantBookingRequirementsProvider, type VoyantReactProviderProps as VoyantBookingRequirementsProviderProps, } from "@voyant-travel/react";
|
|
2
|
-
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -30,4 +30,3 @@ export declare const bookingRequirementsQueryKeys: {
|
|
|
30
30
|
readonly transportRequirements: () => readonly ["voyant", "booking-requirements", "transport-requirements"];
|
|
31
31
|
readonly transportRequirementsDetail: (filters: TransportRequirementsFilters) => readonly ["voyant", "booking-requirements", "transport-requirements", "detail", TransportRequirementsFilters];
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=query-keys.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { BookingRequirementsContactTab } from "./components/booking-requirements-contact-tab.js";
|
|
2
2
|
export { BookingRequirementsQuestionsTab } from "./components/booking-requirements-questions-tab.js";
|
|
3
3
|
export { type BookingRequirementsUiMessageOverrides, type BookingRequirementsUiMessages, BookingRequirementsUiMessagesProvider, bookingRequirementsUiEn, bookingRequirementsUiMessageDefinitions, bookingRequirementsUiRo, getBookingRequirementsUiI18n, resolveBookingRequirementsUiMessages, useBookingRequirementsUiI18n, useBookingRequirementsUiI18nOrDefault, useBookingRequirementsUiMessages, useBookingRequirementsUiMessagesOrDefault, } from "./i18n/index.js";
|
|
4
|
-
//# sourceMappingURL=ui.d.ts.map
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { type ContractSourceContext, type OperatorInfoVariables, type ResolveContractVariablesContext, resolveContractVariables, } from "./resolve-contract-variables.js";
|
|
2
2
|
export { buildStorefrontCommitParty, StorefrontBookingJourney, type StorefrontBookingJourneyMessages, type StorefrontBookingJourneyProps, type StorefrontBookingJourneyScope, type StorefrontCheckoutConfirmationKind, } from "./storefront-booking-journey.js";
|
|
3
3
|
export { StorefrontBookingPage, type StorefrontBookingPageExtensions, type StorefrontBookingPageMessages, type StorefrontBookingPageProps, type StorefrontBookingSearch, storefrontBookingSearchSchema, } from "./storefront-booking-page.js";
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -128,4 +128,3 @@ export interface ResolveContractVariablesContext {
|
|
|
128
128
|
}
|
|
129
129
|
export declare function resolveContractVariables(draft: BookingDraftV1, ctx: ResolveContractVariablesContext): Record<string, unknown>;
|
|
130
130
|
export {};
|
|
131
|
-
//# sourceMappingURL=resolve-contract-variables.d.ts.map
|
|
@@ -10,4 +10,3 @@ export interface StorefrontBookErrorBody {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
export declare function buildStorefrontBookFailureMessage(body: StorefrontBookErrorBody, requestId: string | null, fallback: string, requestReferenceTemplate: string): string;
|
|
13
|
-
//# sourceMappingURL=storefront-booking-errors.d.ts.map
|
|
@@ -69,4 +69,3 @@ export interface StorefrontBookingJourneyProps {
|
|
|
69
69
|
}
|
|
70
70
|
export declare function StorefrontBookingJourney({ entityModule, entityId, sourceKind, sourceConnectionId, sourceRef, draftId, initialConfigure, initialAccommodation, entitySummary, entitySource, contractTemplateSlug, contractMarketingLabel, onContractAccepted, messages, scope, onNavigateToShop, onNavigateToConfirmation, onRedirectToPayment, className, }: StorefrontBookingJourneyProps): React.ReactElement;
|
|
71
71
|
export declare function buildStorefrontCommitParty(draft: Draft): Record<string, unknown>;
|
|
72
|
-
//# sourceMappingURL=storefront-booking-journey.d.ts.map
|
|
@@ -33,4 +33,3 @@ export interface StorefrontBookingPageProps {
|
|
|
33
33
|
}
|
|
34
34
|
/** Customer booking page shared by Node applications and dedicated storefronts. */
|
|
35
35
|
export declare function StorefrontBookingPage({ entityModule, entityId, search, messages, extensions, }: StorefrontBookingPageProps): React.ReactElement;
|
|
36
|
-
//# sourceMappingURL=storefront-booking-page.d.ts.map
|
package/dist/ui.d.ts
CHANGED
|
@@ -35,9 +35,8 @@ export { getStatusTone, StatusBadge, type StatusTone } from "./components/status
|
|
|
35
35
|
export { StatusChangeDialog, type StatusChangeDialogProps, } from "./components/status-change-dialog.js";
|
|
36
36
|
export { SupplierStatusDialog, type SupplierStatusDialogProps, } from "./components/supplier-status-dialog.js";
|
|
37
37
|
export { SupplierStatusList, type SupplierStatusListProps, } from "./components/supplier-status-list.js";
|
|
38
|
+
export { type PickedTravelCredit, TravelCreditPickerSection, type TravelCreditPickerSectionProps, type TravelCreditPickerValue, } from "./components/travel-credit-picker-section.js";
|
|
38
39
|
export { TravelerDialog, type TravelerDialogProps } from "./components/traveler-dialog.js";
|
|
39
40
|
export { TravelerList, type TravelerListProps } from "./components/traveler-list.js";
|
|
40
41
|
export { createBlankTraveler, emptyTravelerListValue, type RoomUnitOption, type TravelerEntry, type TravelerListValue, type TravelerRole, TravelersSection, type TravelersSectionProps, type TravelerUnitAssignmentSource, } from "./components/travelers-section.js";
|
|
41
|
-
export { type PickedVoucher, VoucherPickerSection, type VoucherPickerSectionProps, type VoucherPickerValue, } from "./components/voucher-picker-section.js";
|
|
42
42
|
export { type BookingsUiMessageOverrides, type BookingsUiMessages, BookingsUiMessagesProvider, bookingsUiEn, bookingsUiMessageDefinitions, bookingsUiRo, formatMessage, getBookingsUiI18n, resolveBookingsUiMessages, useBookingsUiI18n, useBookingsUiI18nOrDefault, useBookingsUiMessages, useBookingsUiMessagesOrDefault, } from "./i18n/index.js";
|
|
43
|
-
//# sourceMappingURL=ui.d.ts.map
|
package/dist/ui.js
CHANGED
|
@@ -35,8 +35,8 @@ export { getStatusTone, StatusBadge } from "./components/status-badge.js";
|
|
|
35
35
|
export { StatusChangeDialog, } from "./components/status-change-dialog.js";
|
|
36
36
|
export { SupplierStatusDialog, } from "./components/supplier-status-dialog.js";
|
|
37
37
|
export { SupplierStatusList, } from "./components/supplier-status-list.js";
|
|
38
|
+
export { TravelCreditPickerSection, } from "./components/travel-credit-picker-section.js";
|
|
38
39
|
export { TravelerDialog } from "./components/traveler-dialog.js";
|
|
39
40
|
export { TravelerList } from "./components/traveler-list.js";
|
|
40
41
|
export { createBlankTraveler, emptyTravelerListValue, TravelersSection, } from "./components/travelers-section.js";
|
|
41
|
-
export { VoucherPickerSection, } from "./components/voucher-picker-section.js";
|
|
42
42
|
export { BookingsUiMessagesProvider, bookingsUiEn, bookingsUiMessageDefinitions, bookingsUiRo, formatMessage, getBookingsUiI18n, resolveBookingsUiMessages, useBookingsUiI18n, useBookingsUiI18nOrDefault, useBookingsUiMessages, useBookingsUiMessagesOrDefault, } from "./i18n/index.js";
|