@coras-io/embed 0.5.0 → 0.6.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.
- package/CHANGELOG.md +36 -0
- package/README.md +15 -2
- package/dist/components/accordion/accordion-item/accordion-item.component.js +9 -3
- package/dist/components/accordion/accordion-item/accordion-item.styles.js +4 -0
- package/dist/components/accordion/accordion.component.js +8 -0
- package/dist/components/alert/alert.component.d.ts +1 -1
- package/dist/components/alert/alert.component.js +4 -3
- package/dist/components/attraction-card/base/attraction-card.mixin.d.ts +0 -2
- package/dist/components/attraction-card/base/attraction-card.mixin.js +0 -6
- package/dist/components/attraction-card/base/attraction-card.types.d.ts +0 -1
- package/dist/components/basket-mobile/basket-mobile.component.d.ts +14 -3
- package/dist/components/basket-mobile/basket-mobile.component.js +71 -15
- package/dist/components/better-carousel/better-carousel.component.d.ts +3 -5
- package/dist/components/better-carousel/better-carousel.component.js +13 -34
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.js +5 -12
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.styles.js +13 -5
- package/dist/components/breadcrumbs/breadcrumbs.component.d.ts +0 -1
- package/dist/components/breadcrumbs/breadcrumbs.component.js +5 -8
- package/dist/components/breadcrumbs/breadcrumbs.styles.js +8 -2
- package/dist/components/button/button.constants.d.ts +1 -2
- package/dist/components/button/button.constants.js +0 -1
- package/dist/components/calendar/base/calendar.mixin.js +5 -1
- package/dist/components/calendar/multi/multi.component.d.ts +2 -2
- package/dist/components/calendar/multi/multi.component.js +12 -19
- package/dist/components/carousel/carousel.component.js +9 -2
- package/dist/components/categories-tree/categories-tree.component.d.ts +5 -3
- package/dist/components/categories-tree/categories-tree.component.js +22 -21
- package/dist/components/checkbox/checkbox.component.js +5 -1
- package/dist/components/checkbox-group/checkbox-group.component.js +1 -1
- package/dist/components/checkbox-group/checkbox-group.styles.js +1 -1
- package/dist/components/chip/chip.component.js +8 -3
- package/dist/components/crypto-auth-modal/crypto-auth-modal.component.d.ts +6 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.component.js +15 -1
- package/dist/components/currencies-list/currencies-list.component.js +0 -1
- package/dist/components/dialog/dialog.component.js +52 -21
- package/dist/components/drawer/drawer.component.d.ts +3 -2
- package/dist/components/drawer/drawer.component.js +13 -18
- package/dist/components/drawer/drawer.styles.js +5 -2
- package/dist/components/dropdown/dropdown.component.js +6 -9
- package/dist/components/expiration-timer/expiration-timer.component.d.ts +2 -3
- package/dist/components/expiration-timer/expiration-timer.component.js +10 -8
- package/dist/components/explore-card/explore-card.component.js +3 -1
- package/dist/components/explore-card/explore-card.styles.js +31 -0
- package/dist/components/filters-drawer/filters-drawer.component.js +1 -1
- package/dist/components/flag-icon/flag-icon.component.d.ts +4 -2
- package/dist/components/flag-icon/flag-icon.component.js +16 -4
- package/dist/components/icon/icon.component.js +15 -2
- package/dist/components/image/image.component.js +4 -3
- package/dist/components/image-viewer/image-viewer.component.js +6 -4
- package/dist/components/input-field/input-field.component.js +10 -6
- package/dist/components/layout/layout.styles.js +1 -1
- package/dist/components/locales-list/locales-list.component.js +0 -1
- package/dist/components/location-image/location-image.component.js +0 -1
- package/dist/components/locations-results/locations-results.component.d.ts +10 -0
- package/dist/components/locations-results/locations-results.component.js +22 -15
- package/dist/components/locations-results/locations-results.styles.js +4 -1
- package/dist/components/message-card/message-card.component.d.ts +1 -1
- package/dist/components/message-card/message-card.component.js +4 -3
- package/dist/components/mobile-menu-item/mobile-menu-item.component.d.ts +0 -1
- package/dist/components/mobile-menu-item/mobile-menu-item.component.js +14 -16
- package/dist/components/mobile-menu-item/mobile-menu-item.styles.js +9 -5
- package/dist/components/option-group/option-chip/option-chip.component.d.ts +4 -1
- package/dist/components/option-group/option-chip/option-chip.component.js +23 -10
- package/dist/components/option-group/option-group.component.d.ts +3 -1
- package/dist/components/option-group/option-group.component.js +10 -3
- package/dist/components/overlay/overlay.component.d.ts +0 -5
- package/dist/components/overlay/overlay.component.js +3 -15
- package/dist/components/phone-country-code/phone-country-code.component.d.ts +4 -0
- package/dist/components/phone-country-code/phone-country-code.component.js +37 -0
- package/dist/components/phone-country-codes/phone-country-codes.component.js +1 -1
- package/dist/components/phone-field/phone-field.component.js +2 -2
- package/dist/components/search-button/search-button.component.d.ts +1 -1
- package/dist/components/search-button/search-button.component.js +13 -7
- package/dist/components/seated-selector/seated-selector.component.js +3 -3
- package/dist/components/seats-io/seats-io.component.d.ts +3 -2
- package/dist/components/seats-io/seats-io.component.js +31 -13
- package/dist/components/seats-io/seats-io.constants.d.ts +0 -2
- package/dist/components/seats-io/seats-io.constants.js +0 -3
- package/dist/components/seats-io/seats-io.transform.d.ts +1 -6
- package/dist/components/seats-io/seats-io.transform.js +1 -20
- package/dist/components/select-list/select-list.component.js +7 -2
- package/dist/components/select-list/select-option/select-option.component.d.ts +3 -1
- package/dist/components/select-list/select-option/select-option.component.js +10 -3
- package/dist/components/tabs/tabs.component.d.ts +2 -0
- package/dist/components/tabs/tabs.component.js +59 -5
- package/dist/components/time-tag/time-tag.component.js +1 -1
- package/dist/containers/basket/basket.component.d.ts +1 -1
- package/dist/containers/basket/basket.component.js +21 -20
- package/dist/containers/navbar/navbar.component.d.ts +12 -8
- package/dist/containers/navbar/navbar.component.js +108 -62
- package/dist/containers/navbar/navbar.styles.js +23 -5
- package/dist/containers/navbar/navbar.utils.js +4 -4
- package/dist/contexts/basket/basket.provider.d.ts +3 -4
- package/dist/contexts/basket/basket.provider.js +46 -61
- package/dist/contexts/basket/basket.types.d.ts +0 -2
- package/dist/controllers/time-expiration.d.ts +15 -2
- package/dist/controllers/time-expiration.js +47 -17
- package/dist/core/api/client.d.ts +9 -0
- package/dist/core/api/client.js +26 -0
- package/dist/core/api/middlewares/booking-session/booking-session.constants.d.ts +0 -2
- package/dist/core/api/middlewares/booking-session/booking-session.constants.js +0 -2
- package/dist/core/api/middlewares/booking-session/booking-session.js +3 -12
- package/dist/core/api/middlewares/booking-session/booking-session.utils.d.ts +0 -1
- package/dist/core/api/middlewares/booking-session/booking-session.utils.js +6 -28
- package/dist/core/api/middlewares/error-handler/error-handler.js +5 -1
- package/dist/core/api/middlewares/retry/retry.constants.d.ts +3 -0
- package/dist/core/api/middlewares/retry/retry.constants.js +7 -0
- package/dist/core/api/middlewares/retry/retry.d.ts +2 -0
- package/dist/core/api/middlewares/retry/retry.js +48 -0
- package/dist/core/api/queries.d.ts +13 -38
- package/dist/core/api/queries.js +16 -99
- package/dist/core/events.d.ts +2 -4
- package/dist/core/i18n/date.d.ts +14 -5
- package/dist/core/i18n/date.js +47 -20
- package/dist/core/i18n/localization.js +10 -3
- package/dist/core/images/helpers.js +6 -5
- package/dist/core/logger.d.ts +17 -0
- package/dist/core/logger.js +13 -0
- package/dist/core/types/api-schema.d.ts +7872 -0
- package/dist/core/types/seats-config.d.ts +5 -4
- package/dist/core/types/seats-config.js +10 -3
- package/dist/core/utils/crypto-address.d.ts +12 -0
- package/dist/core/utils/crypto-address.js +17 -0
- package/dist/core/utils/datetime.d.ts +13 -11
- package/dist/core/utils/datetime.js +41 -51
- package/dist/core/utils/loyalty.d.ts +8 -0
- package/dist/core/utils/loyalty.js +10 -0
- package/dist/core/utils/redaction.d.ts +9 -0
- package/dist/core/utils/redaction.js +58 -0
- package/dist/core/utils/time.js +2 -3
- package/dist/helpers/helpers.d.ts +6 -0
- package/dist/helpers/helpers.js +33 -16
- package/dist/locales/ar-SA.d.ts +38 -21
- package/dist/locales/ar-SA.js +38 -21
- package/dist/locales/da-DK.d.ts +38 -21
- package/dist/locales/da-DK.js +38 -21
- package/dist/locales/de-DE.d.ts +38 -21
- package/dist/locales/de-DE.js +38 -21
- package/dist/locales/en-IE.d.ts +38 -21
- package/dist/locales/en-IE.js +38 -21
- package/dist/locales/en-US.d.ts +38 -21
- package/dist/locales/en-US.js +38 -21
- package/dist/locales/es-ES.d.ts +38 -21
- package/dist/locales/es-ES.js +38 -21
- package/dist/locales/fr-FR.d.ts +38 -21
- package/dist/locales/fr-FR.js +38 -21
- package/dist/locales/fr-MA.d.ts +38 -21
- package/dist/locales/fr-MA.js +38 -21
- package/dist/locales/is-IS.d.ts +38 -21
- package/dist/locales/is-IS.js +38 -21
- package/dist/locales/it-IT.d.ts +38 -21
- package/dist/locales/it-IT.js +38 -21
- package/dist/locales/ms-MY.d.ts +38 -21
- package/dist/locales/ms-MY.js +38 -21
- package/dist/locales/nb-NO.d.ts +38 -21
- package/dist/locales/nb-NO.js +38 -21
- package/dist/locales/pl-PL.d.ts +38 -21
- package/dist/locales/pl-PL.js +38 -21
- package/dist/locales/pt-PT.d.ts +38 -21
- package/dist/locales/pt-PT.js +38 -21
- package/dist/locales/sv-SE.d.ts +38 -21
- package/dist/locales/sv-SE.js +38 -21
- package/dist/locales/th-TH.d.ts +38 -21
- package/dist/locales/th-TH.js +38 -21
- package/dist/locales/tr-TR.d.ts +38 -21
- package/dist/locales/tr-TR.js +38 -21
- package/dist/locales/zh-CN.d.ts +38 -21
- package/dist/locales/zh-CN.js +38 -21
- package/dist/locales/zh-HK.d.ts +38 -21
- package/dist/locales/zh-HK.js +38 -21
- package/dist/mixins/base.mixin.d.ts +3 -1
- package/dist/mixins/base.mixin.js +10 -7
- package/dist/mixins/coinbase.mixin.d.ts +13 -17
- package/dist/mixins/coinbase.mixin.js +251 -288
- package/dist/mixins/error-modal.mixin.js +8 -4
- package/dist/mixins/location-search/location-search.d.ts +13 -1
- package/dist/mixins/location-search/location-search.js +35 -27
- package/dist/mixins/overlay/overlay-mixin.js +39 -3
- package/dist/mixins/overlay/types.d.ts +1 -0
- package/dist/mixins/search-mixin/search-mixin.js +8 -5
- package/dist/sdk/diagnostics.js +2 -0
- package/dist/sdk/mount.d.ts +10 -0
- package/dist/sdk/mount.js +20 -1
- package/dist/sdk/page-registry.js +5 -0
- package/dist/sdk/params.d.ts +53 -0
- package/dist/sdk/params.js +180 -0
- package/dist/sdk/redaction.d.ts +1 -4
- package/dist/sdk/redaction.js +2 -41
- package/dist/sdk/types.d.ts +21 -7
- package/dist/sdk/url.d.ts +1 -1
- package/dist/sdk/url.js +12 -5
- package/dist/sdk/validation.d.ts +1 -26
- package/dist/sdk/validation.js +14 -152
- package/dist/styles/tokens.d.ts +1 -1
- package/dist/styles/tokens.generated.d.ts +1 -1
- package/dist/styles/tokens.generated.js +1 -1
- package/dist/views/chrome-only-page/chrome-only-page.component.d.ts +30 -0
- package/dist/views/chrome-only-page/chrome-only-page.component.js +24 -0
- package/dist/views/chrome-only-page/chrome-only-page.d.ts +8 -0
- package/dist/views/chrome-only-page/chrome-only-page.js +6 -0
- package/dist/views/chrome-only-page/chrome-only-page.styles.js +13 -0
- package/dist/views/details-page/details-page.component.d.ts +11 -4
- package/dist/views/details-page/details-page.component.js +263 -237
- package/dist/views/details-page/details-page.utilts.d.ts +63 -3
- package/dist/views/details-page/details-page.utilts.js +53 -5
- package/dist/views/details-page/partials/location-categories/location-categories.component.d.ts +29 -0
- package/dist/views/details-page/partials/location-categories/location-categories.component.js +149 -0
- package/dist/views/details-page/partials/location-categories/location-categories.d.ts +8 -0
- package/dist/views/details-page/partials/location-categories/location-categories.js +6 -0
- package/dist/views/details-page/partials/location-categories/location-categories.styles.js +35 -0
- package/dist/views/details-page/partials/location-highlights/location-highlights.component.d.ts +26 -0
- package/dist/views/details-page/partials/location-highlights/location-highlights.component.js +158 -0
- package/dist/views/details-page/partials/location-highlights/location-highlights.d.ts +8 -0
- package/dist/views/details-page/partials/location-highlights/location-highlights.js +6 -0
- package/dist/views/details-page/partials/location-highlights/location-highlights.styles.js +42 -0
- package/dist/views/details-page/partials/tour-description/tour-description.component.js +1 -4
- package/dist/views/help-page/help-page.component.d.ts +2 -0
- package/dist/views/help-page/help-page.component.js +37 -18
- package/dist/views/help-page/help-page.utils.js +6 -5
- package/dist/views/landing-page/landing-page.component.d.ts +5 -8
- package/dist/views/landing-page/landing-page.component.js +82 -97
- package/dist/views/payment-page/controllers/crypto-auth.controller.d.ts +10 -4
- package/dist/views/payment-page/controllers/crypto-auth.controller.js +53 -31
- package/dist/views/payment-page/controllers/crypto-transfer.controller.d.ts +9 -5
- package/dist/views/payment-page/controllers/crypto-transfer.controller.js +26 -39
- package/dist/views/payment-page/controllers/payment-flow.controller.d.ts +6 -1
- package/dist/views/payment-page/controllers/payment-flow.controller.js +1 -0
- package/dist/views/payment-page/controllers/stripe-payment.controller.d.ts +20 -2
- package/dist/views/payment-page/controllers/stripe-payment.controller.js +42 -19
- package/dist/views/payment-page/partials/activity-details/activity-details.component.d.ts +2 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.component.js +6 -3
- package/dist/views/payment-page/partials/billing-address/billing-address.component.d.ts +2 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.component.js +5 -1
- package/dist/views/payment-page/partials/confirmation/confirmation.component.js +2 -3
- package/dist/views/payment-page/partials/country-field/country-field.component.js +1 -1
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.component.js +3 -3
- package/dist/views/payment-page/partials/stripe/stripe.component.d.ts +2 -0
- package/dist/views/payment-page/partials/stripe/stripe.component.js +36 -7
- package/dist/views/payment-page/partials/stripe/stripe.utils.js +0 -3
- package/dist/views/payment-page/payment-page.component.d.ts +39 -6
- package/dist/views/payment-page/payment-page.component.js +302 -178
- package/dist/views/payment-page/payment-page.constants.d.ts +1 -27
- package/dist/views/payment-page/payment-page.constants.js +3 -30
- package/dist/views/payment-page/payment-page.types.d.ts +1 -19
- package/dist/views/payment-page/payment-page.utils.d.ts +22 -13
- package/dist/views/payment-page/payment-page.utils.js +57 -75
- package/dist/views/payment-page/services/payment-api.service.d.ts +16 -34
- package/dist/views/payment-page/services/payment-api.service.js +19 -27
- package/dist/views/search-page/search-page.component.d.ts +2 -0
- package/dist/views/search-page/search-page.component.js +39 -20
- package/dist/views/suggestion-widget/suggestion-widget.component.d.ts +1 -0
- package/dist/views/suggestion-widget/suggestion-widget.component.js +6 -5
- package/package.json +24 -20
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.d.ts +0 -10
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.js +0 -43
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.d.ts +0 -8
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.js +0 -6
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.js +0 -23
- package/dist/components/attraction-discovery/attraction-discovery.component.d.ts +0 -10
- package/dist/components/attraction-discovery/attraction-discovery.component.js +0 -52
- package/dist/components/attraction-discovery/attraction-discovery.constants.d.ts +0 -4
- package/dist/components/attraction-discovery/attraction-discovery.constants.js +0 -5
- package/dist/components/attraction-discovery/attraction-discovery.d.ts +0 -8
- package/dist/components/attraction-discovery/attraction-discovery.js +0 -6
- package/dist/components/attraction-discovery/attraction-discovery.styles.js +0 -193
- package/dist/components/basket-rewards/basket-rewards.component.d.ts +0 -10
- package/dist/components/basket-rewards/basket-rewards.component.js +0 -52
- package/dist/components/basket-rewards/basket-rewards.d.ts +0 -8
- package/dist/components/basket-rewards/basket-rewards.js +0 -6
- package/dist/components/basket-rewards/basket-rewards.styles.js +0 -18
- package/dist/components/filter-chip/filter-chip.component.d.ts +0 -12
- package/dist/components/filter-chip/filter-chip.component.js +0 -68
- package/dist/components/filter-chip/filter-chip.constants.d.ts +0 -2
- package/dist/components/filter-chip/filter-chip.constants.js +0 -2
- package/dist/components/filter-chip/filter-chip.d.ts +0 -8
- package/dist/components/filter-chip/filter-chip.js +0 -6
- package/dist/components/filter-chip/filter-chip.styles.d.ts +0 -2
- package/dist/components/filter-chip/filter-chip.styles.js +0 -162
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.d.ts +0 -10
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.js +0 -43
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.d.ts +0 -8
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.js +0 -6
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.d.ts +0 -2
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.js +0 -28
- package/dist/components/image-carousel/image-carousel.component.d.ts +0 -8
- package/dist/components/image-carousel/image-carousel.component.js +0 -36
- package/dist/components/image-carousel/image-carousel.d.ts +0 -8
- package/dist/components/image-carousel/image-carousel.js +0 -6
- package/dist/components/image-carousel/image-carousel.styles.d.ts +0 -2
- package/dist/components/image-carousel/image-carousel.styles.js +0 -72
- package/dist/components/itinerary/itinerary-item/itinerary-item.component.d.ts +0 -9
- package/dist/components/itinerary/itinerary-item/itinerary-item.component.js +0 -45
- package/dist/components/itinerary/itinerary-item/itinerary-item.d.ts +0 -8
- package/dist/components/itinerary/itinerary-item/itinerary-item.js +0 -6
- package/dist/components/itinerary/itinerary-item/itinerary-item.styles.d.ts +0 -2
- package/dist/components/itinerary/itinerary-item/itinerary-item.styles.js +0 -70
- package/dist/components/itinerary/itinerary.component.d.ts +0 -7
- package/dist/components/itinerary/itinerary.component.js +0 -23
- package/dist/components/itinerary/itinerary.d.ts +0 -8
- package/dist/components/itinerary/itinerary.js +0 -6
- package/dist/components/itinerary/itinerary.styles.d.ts +0 -2
- package/dist/components/itinerary/itinerary.styles.js +0 -15
- package/dist/components/marketing-tag/marketing-tag.component.d.ts +0 -5
- package/dist/components/marketing-tag/marketing-tag.component.js +0 -8
- package/dist/components/marketing-tag/marketing-tag.d.ts +0 -8
- package/dist/components/marketing-tag/marketing-tag.js +0 -6
- package/dist/components/marketing-tag/marketing-tag.styles.d.ts +0 -2
- package/dist/components/marketing-tag/marketing-tag.styles.js +0 -36
- package/dist/components/price/price.component.d.ts +0 -12
- package/dist/components/price/price.component.js +0 -38
- package/dist/components/price/price.d.ts +0 -8
- package/dist/components/price/price.js +0 -6
- package/dist/components/reviews/review/review.component.d.ts +0 -9
- package/dist/components/reviews/review/review.component.js +0 -41
- package/dist/components/reviews/review/review.d.ts +0 -8
- package/dist/components/reviews/review/review.js +0 -6
- package/dist/components/reviews/review/review.styles.d.ts +0 -2
- package/dist/components/reviews/review/review.styles.js +0 -45
- package/dist/components/reviews/reviews.component.d.ts +0 -9
- package/dist/components/reviews/reviews.component.js +0 -56
- package/dist/components/reviews/reviews.d.ts +0 -8
- package/dist/components/reviews/reviews.js +0 -6
- package/dist/components/reviews/reviews.styles.d.ts +0 -2
- package/dist/components/reviews/reviews.styles.js +0 -73
- package/dist/components/selected-tickets-preview/selected-tickets-preview.component.d.ts +0 -10
- package/dist/components/selected-tickets-preview/selected-tickets-preview.component.js +0 -51
- package/dist/components/selected-tickets-preview/selected-tickets-preview.d.ts +0 -8
- package/dist/components/selected-tickets-preview/selected-tickets-preview.js +0 -6
- package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.d.ts +0 -2
- package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.js +0 -89
- package/dist/components/tag/tag.component.d.ts +0 -8
- package/dist/components/tag/tag.component.js +0 -33
- package/dist/components/tag/tag.constants.d.ts +0 -1
- package/dist/components/tag/tag.constants.js +0 -1
- package/dist/components/tag/tag.d.ts +0 -8
- package/dist/components/tag/tag.js +0 -6
- package/dist/components/tag/tag.styles.d.ts +0 -2
- package/dist/components/tag/tag.styles.js +0 -56
- package/dist/components/tooltip/tooltip.component.d.ts +0 -19
- package/dist/components/tooltip/tooltip.component.js +0 -124
- package/dist/components/tooltip/tooltip.d.ts +0 -8
- package/dist/components/tooltip/tooltip.js +0 -6
- package/dist/components/tooltip/tooltip.styles.d.ts +0 -2
- package/dist/components/tooltip/tooltip.styles.js +0 -79
- package/dist/core/signals.d.ts +0 -2
- package/dist/core/signals.js +0 -3
- package/dist/core/storybook/argTypes.d.ts +0 -1
- package/dist/core/storybook/argTypes.js +0 -46
- package/dist/core/storybook/cssprops.d.ts +0 -30
- package/dist/core/storybook/cssprops.js +0 -46
- package/dist/core/storybook/demo.d.ts +0 -4
- package/dist/core/storybook/demo.js +0 -17
- package/dist/core/types/api-errors.d.ts +0 -8
- package/dist/core/types/api-errors.js +0 -1
- package/dist/styles/contrast-fixtures.d.ts +0 -5
- package/dist/styles/contrast-fixtures.js +0 -131
- package/dist/views/payment-page/domain/payment-mappers.d.ts +0 -7
- package/dist/views/payment-page/domain/payment-mappers.js +0 -7
- package/dist/views/payment-page/domain/payment-validators.d.ts +0 -6
- package/dist/views/payment-page/domain/payment-validators.js +0 -6
- package/dist/views/payment-page/domain/recovery-payload.d.ts +0 -8
- package/dist/views/payment-page/domain/recovery-payload.js +0 -7
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.d.ts +0 -22
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.js +0 -65
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.d.ts +0 -8
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.js +0 -6
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.d.ts +0 -2
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.js +0 -12
- package/dist/views/payment-page/payment-page.validation-schema.d.ts +0 -28
- package/dist/views/payment-page/payment-page.validation-schema.js +0 -42
- /package/dist/{components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.d.ts → views/chrome-only-page/chrome-only-page.styles.d.ts} +0 -0
- /package/dist/{components/attraction-discovery/attraction-discovery.styles.d.ts → views/details-page/partials/location-categories/location-categories.styles.d.ts} +0 -0
- /package/dist/{components/basket-rewards/basket-rewards.styles.d.ts → views/details-page/partials/location-highlights/location-highlights.styles.d.ts} +0 -0
|
@@ -49,7 +49,7 @@ let CorasTourDescription = class CorasTourDescription extends LitElement {
|
|
|
49
49
|
${sections.map((section) => !isNilOrEmpty(section.value)
|
|
50
50
|
? html `
|
|
51
51
|
<coras-text-section label=${section.label()}>
|
|
52
|
-
${section.items ? this.renderAboutItems() : nothing}
|
|
52
|
+
${section.items ? this.renderAboutItems(attraction) : nothing}
|
|
53
53
|
${unsafeHTML(sanitizeHtml(normalizeListItems(removeNewlinesAroundTags(section.value.trim()))))}
|
|
54
54
|
</coras-text-section>
|
|
55
55
|
`
|
|
@@ -57,9 +57,6 @@ let CorasTourDescription = class CorasTourDescription extends LitElement {
|
|
|
57
57
|
`;
|
|
58
58
|
}
|
|
59
59
|
renderAboutItems(attraction) {
|
|
60
|
-
if (!attraction) {
|
|
61
|
-
return nothing;
|
|
62
|
-
}
|
|
63
60
|
const aboutItems = [
|
|
64
61
|
{
|
|
65
62
|
icon: "clock",
|
|
@@ -23,6 +23,7 @@ declare const CorasHelpPage_base: import("../../contexts/utils.js").Constructor<
|
|
|
23
23
|
locale: import("../../index.js").SupportedLocales;
|
|
24
24
|
locales: import("../../index.js").SupportedLocales[];
|
|
25
25
|
loyaltyPoints: boolean;
|
|
26
|
+
logger: import("../../core/logger.js").Logger;
|
|
26
27
|
client: import("openapi-fetch").Client<import("../../core/types/api-schema.js").paths>;
|
|
27
28
|
getPageProperties(): HelpPageParamsEvent;
|
|
28
29
|
dispatchPageUpdate(params: import("../../contexts/events.context.js").PageDispatchInput): void;
|
|
@@ -46,6 +47,7 @@ export declare class CorasHelpPage extends CorasHelpPage_base {
|
|
|
46
47
|
private subjectSelectLabel;
|
|
47
48
|
private subjectDropdownOpen;
|
|
48
49
|
private showModal;
|
|
50
|
+
private submitFailed;
|
|
49
51
|
processing: boolean;
|
|
50
52
|
private formElement;
|
|
51
53
|
protected updated(changedProperties: PropertyValues<this>): void;
|
|
@@ -10,7 +10,7 @@ import { msg, localized } from "@lit/localize";
|
|
|
10
10
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
11
11
|
import styles from "./help-page.styles.js";
|
|
12
12
|
import { sanitizeHtml } from "../../core/utils/html.js";
|
|
13
|
-
import { apiGet, apiPost
|
|
13
|
+
import { apiGet, apiPost } from "../../core/api/queries.js";
|
|
14
14
|
import "../../components/tabs/tabs.js";
|
|
15
15
|
import "../../components/tab/tab.js";
|
|
16
16
|
import "../../components/tab-panel/tab-panel.js";
|
|
@@ -28,6 +28,7 @@ import "../../components/layout/layout.js";
|
|
|
28
28
|
import { BaseMixin } from "../../mixins/base.mixin.js";
|
|
29
29
|
import { FIELD_CONFIG } from "./help-page.fields.js";
|
|
30
30
|
import { renderNumberedTree } from "./help-page.utils.js";
|
|
31
|
+
import { getApiLanguageCode } from "../../core/utils/locale.js";
|
|
31
32
|
import { Task } from "@lit/task";
|
|
32
33
|
import { getLocale, setLocale } from "../../core/i18n/localization.js"; // used in renderFaqAccordion
|
|
33
34
|
const faqPages = ["faq-attractions", "faq-music", "faq-theatres", "faq-sports"];
|
|
@@ -65,11 +66,12 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
|
|
|
65
66
|
this.subjectSelectLabel = "";
|
|
66
67
|
this.subjectDropdownOpen = false;
|
|
67
68
|
this.showModal = false;
|
|
69
|
+
this.submitFailed = false;
|
|
68
70
|
this.processing = false;
|
|
69
71
|
this.helpTabTask = new Task(this, {
|
|
70
72
|
task: async ([locale, content]) => {
|
|
71
73
|
if (faqPages.includes(content) || infoPages.includes(content)) {
|
|
72
|
-
|
|
74
|
+
const { data } = await apiGet({
|
|
73
75
|
client: this.client,
|
|
74
76
|
distributorID: this.distributorID,
|
|
75
77
|
locale,
|
|
@@ -77,7 +79,8 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
|
|
|
77
79
|
path: {
|
|
78
80
|
page_slug: content,
|
|
79
81
|
},
|
|
80
|
-
})
|
|
82
|
+
});
|
|
83
|
+
return data;
|
|
81
84
|
}
|
|
82
85
|
},
|
|
83
86
|
args: () => [this.locale, this.content],
|
|
@@ -85,12 +88,13 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
|
|
|
85
88
|
this.subjectsTask = new Task(this, {
|
|
86
89
|
task: async ([locale, content]) => {
|
|
87
90
|
if (content === "contact") {
|
|
88
|
-
|
|
91
|
+
const { data } = await apiGet({
|
|
89
92
|
client: this.client,
|
|
90
93
|
distributorID: this.distributorID,
|
|
91
94
|
locale,
|
|
92
95
|
endpoint: "/{api_version}/customer-support/subjects",
|
|
93
|
-
})
|
|
96
|
+
});
|
|
97
|
+
return data;
|
|
94
98
|
}
|
|
95
99
|
},
|
|
96
100
|
args: () => [this.locale, this.content],
|
|
@@ -147,7 +151,9 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
|
|
|
147
151
|
updated(changedProperties) {
|
|
148
152
|
super.updated(changedProperties);
|
|
149
153
|
if (getLocale() !== this.locale) {
|
|
150
|
-
|
|
154
|
+
// `loadLocale` falls back on its own (see core/i18n/localization.ts), so
|
|
155
|
+
// the returned promise does not reject; an unknown code throws synchronously.
|
|
156
|
+
void setLocale(this.locale);
|
|
151
157
|
}
|
|
152
158
|
}
|
|
153
159
|
handleFormValueChange(fieldName, value) {
|
|
@@ -241,10 +247,10 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
|
|
|
241
247
|
return html ``;
|
|
242
248
|
},
|
|
243
249
|
pending: () => this.renderHelpSkeleton(),
|
|
244
|
-
complete: (
|
|
245
|
-
if (!
|
|
250
|
+
complete: (page) => {
|
|
251
|
+
if (!page)
|
|
246
252
|
return nothing;
|
|
247
|
-
const data =
|
|
253
|
+
const data = page;
|
|
248
254
|
return html `
|
|
249
255
|
<coras-accordion>
|
|
250
256
|
${data.content.sections.map((section) => html `
|
|
@@ -388,8 +394,7 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
|
|
|
388
394
|
error: () => html `
|
|
389
395
|
<coras-select-option></coras-select-option>
|
|
390
396
|
`,
|
|
391
|
-
complete: (
|
|
392
|
-
const subjects = response?.data ?? [];
|
|
397
|
+
complete: (subjects = []) => {
|
|
393
398
|
return subjects.map((opt) => html `
|
|
394
399
|
<coras-select-option
|
|
395
400
|
key=${opt.value}
|
|
@@ -417,11 +422,11 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
|
|
|
417
422
|
return this.helpTabTask.render({
|
|
418
423
|
error: () => html ``,
|
|
419
424
|
pending: () => this.renderHelpSkeleton(),
|
|
420
|
-
complete: (
|
|
421
|
-
if (!
|
|
425
|
+
complete: (page) => {
|
|
426
|
+
if (!page) {
|
|
422
427
|
return nothing;
|
|
423
428
|
}
|
|
424
|
-
const data =
|
|
429
|
+
const data = page;
|
|
425
430
|
const sections = data?.content?.sections ?? [];
|
|
426
431
|
return html `
|
|
427
432
|
<h1>${data?.title}</h1>
|
|
@@ -460,6 +465,7 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
|
|
|
460
465
|
const isValid = this.validateForm();
|
|
461
466
|
if (isValid) {
|
|
462
467
|
this.processing = true;
|
|
468
|
+
this.submitFailed = false;
|
|
463
469
|
try {
|
|
464
470
|
const fullName = (this.formValues.name || "").trim();
|
|
465
471
|
const [first, ...rest] = fullName.split(/\s+/).filter(Boolean);
|
|
@@ -467,13 +473,13 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
|
|
|
467
473
|
const last_name = rest.join(" ") || first || "";
|
|
468
474
|
const subject = this.formValues
|
|
469
475
|
.subject;
|
|
470
|
-
await
|
|
476
|
+
await apiPost({
|
|
471
477
|
client: this.client,
|
|
472
478
|
distributorID: this.distributorID,
|
|
473
479
|
locale: this.locale,
|
|
474
480
|
endpoint: "/{api_version}/customer-support",
|
|
475
481
|
body: {
|
|
476
|
-
language_code: this.locale
|
|
482
|
+
language_code: getApiLanguageCode(this.locale),
|
|
477
483
|
first_name,
|
|
478
484
|
last_name,
|
|
479
485
|
email: this.formValues.email,
|
|
@@ -484,11 +490,12 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
|
|
|
484
490
|
attraction_location: null,
|
|
485
491
|
attraction_date: null,
|
|
486
492
|
},
|
|
487
|
-
})
|
|
493
|
+
});
|
|
488
494
|
this.showModal = true;
|
|
489
495
|
}
|
|
490
496
|
catch {
|
|
491
|
-
//
|
|
497
|
+
// The form keeps its values so the user can simply resend.
|
|
498
|
+
this.submitFailed = true;
|
|
492
499
|
}
|
|
493
500
|
finally {
|
|
494
501
|
this.processing = false;
|
|
@@ -504,6 +511,15 @@ let CorasHelpPage = class CorasHelpPage extends BaseMixin(LitElement) {
|
|
|
504
511
|
${this.renderInputField("eventName")}
|
|
505
512
|
${this.renderInputField("orderReference")}
|
|
506
513
|
${this.renderSubjectField()} ${this.renderInputField("message")}
|
|
514
|
+
${this.submitFailed
|
|
515
|
+
? html `<coras-message-card
|
|
516
|
+
variant="error"
|
|
517
|
+
assets-url="${this.assetsURL}"
|
|
518
|
+
data-testid="submit-error"
|
|
519
|
+
>
|
|
520
|
+
${msg("We're sorry, we couldn't send your query. Please try again in a moment.")}
|
|
521
|
+
</coras-message-card>`
|
|
522
|
+
: nothing}
|
|
507
523
|
|
|
508
524
|
<div class="footer">
|
|
509
525
|
<coras-button
|
|
@@ -589,6 +605,9 @@ __decorate([
|
|
|
589
605
|
__decorate([
|
|
590
606
|
state()
|
|
591
607
|
], CorasHelpPage.prototype, "showModal", void 0);
|
|
608
|
+
__decorate([
|
|
609
|
+
state()
|
|
610
|
+
], CorasHelpPage.prototype, "submitFailed", void 0);
|
|
592
611
|
__decorate([
|
|
593
612
|
property({ type: Boolean })
|
|
594
613
|
], CorasHelpPage.prototype, "processing", void 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html } from "lit";
|
|
1
|
+
import { html, nothing } from "lit";
|
|
2
2
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
3
3
|
import { sanitizeHtml } from "../../core/utils/html.js";
|
|
4
4
|
function renderChildren(nodes = []) {
|
|
@@ -10,10 +10,11 @@ function renderChildren(nodes = []) {
|
|
|
10
10
|
return null;
|
|
11
11
|
return html `<li>
|
|
12
12
|
${unsafeHTML(sanitizeHtml(text))}
|
|
13
|
-
${node.items?.length
|
|
14
|
-
html `<ol>
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
${node.items?.length
|
|
14
|
+
? html `<ol>
|
|
15
|
+
${renderChildren(node.items)}
|
|
16
|
+
</ol>`
|
|
17
|
+
: nothing}
|
|
17
18
|
</li>`;
|
|
18
19
|
})
|
|
19
20
|
.filter(Boolean);
|
|
@@ -10,8 +10,6 @@ import "../../components/checkbox-group/checkbox-group.js";
|
|
|
10
10
|
import "../../components/checkbox/checkbox.js";
|
|
11
11
|
import "../../components/button/button.js";
|
|
12
12
|
import "../../components/attraction-card/short/attraction-short-card.js";
|
|
13
|
-
import "../../components/attraction-discovery/attraction-discovery.js";
|
|
14
|
-
import "../../components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.js";
|
|
15
13
|
import "../../components/carousel/carousel.js";
|
|
16
14
|
import "../../components/carousel/carousel-item/carousel-item.js";
|
|
17
15
|
import "../../components/drawer/drawer.js";
|
|
@@ -39,6 +37,7 @@ declare const CorasLandingPage_base: import("../../contexts/utils.js").Construct
|
|
|
39
37
|
locale: import("../../core/types/index.js").SupportedLocales;
|
|
40
38
|
locales: import("../../core/types/index.js").SupportedLocales[];
|
|
41
39
|
loyaltyPoints: boolean;
|
|
40
|
+
logger: import("../../core/logger.js").Logger;
|
|
42
41
|
client: import("openapi-fetch").Client<import("../../core/types/api-schema.js").paths>;
|
|
43
42
|
getPageProperties(): LandingPageParamsEvent;
|
|
44
43
|
dispatchPageUpdate(params: import("../../contexts/events.context.js").PageDispatchInput): void;
|
|
@@ -66,14 +65,14 @@ export declare class CorasLandingPage extends CorasLandingPage_base {
|
|
|
66
65
|
private selectedPriceOptions;
|
|
67
66
|
private selectedDurationOptions;
|
|
68
67
|
private _selectedCategories;
|
|
69
|
-
private activePriceOptions;
|
|
70
|
-
private activeDurationOptions;
|
|
71
|
-
private activeCategorySlugs;
|
|
72
68
|
private resizeObserver;
|
|
73
69
|
private lastSavedRecentValue;
|
|
74
|
-
protected firstUpdated(changed: PropertyValues):
|
|
70
|
+
protected firstUpdated(changed: PropertyValues): void;
|
|
71
|
+
private locateAndObserveResize;
|
|
75
72
|
disconnectedCallback(): void;
|
|
76
73
|
protected updated(changedProperties: PropertyValues<this>): void;
|
|
74
|
+
private get appliedDurationOptions();
|
|
75
|
+
private get appliedCategorySlugs();
|
|
77
76
|
private toggleDateFilter;
|
|
78
77
|
handleCalendarMonthChange(event: CustomEvent): void;
|
|
79
78
|
setSelectedDates(event: CustomEvent): void;
|
|
@@ -98,8 +97,6 @@ export declare class CorasLandingPage extends CorasLandingPage_base {
|
|
|
98
97
|
private getDurationOptionLabel;
|
|
99
98
|
private getCategoryName;
|
|
100
99
|
private removeCategorySlug;
|
|
101
|
-
private updateActiveFilters;
|
|
102
|
-
private afterFilterChipRemove;
|
|
103
100
|
private handleFiltersClearBtnClicked;
|
|
104
101
|
private handleFiltersApplyBtnClicked;
|
|
105
102
|
private updateSelectedDurationOptions;
|