@coras-io/embed 0.5.1 → 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 +28 -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 +8 -145
- 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
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides a stable interface for payment-related API operations,
|
|
5
5
|
* decoupling controllers from the raw API query functions.
|
|
6
|
-
*
|
|
6
|
+
* Every method resolves with the response and throws an `APIError` (from the
|
|
7
|
+
* client's error middleware) on a non-ok response.
|
|
7
8
|
*/
|
|
8
|
-
import { apiGet, apiPost, apiPut, apiPatch,
|
|
9
|
+
import { apiGet, apiPost, apiPut, apiPatch, } from "../../../core/api/queries.js";
|
|
9
10
|
export class PaymentApiService {
|
|
10
11
|
constructor(config) {
|
|
11
12
|
this.config = config;
|
|
@@ -14,42 +15,42 @@ export class PaymentApiService {
|
|
|
14
15
|
Object.assign(this.config, config);
|
|
15
16
|
}
|
|
16
17
|
async fetchCountries(languageCode) {
|
|
17
|
-
return
|
|
18
|
+
return apiGet({
|
|
18
19
|
client: this.config.client,
|
|
19
20
|
distributorID: this.config.distributorID,
|
|
20
21
|
locale: this.config.locale,
|
|
21
22
|
endpoint: "/{api_version}/countries/{language_code}",
|
|
22
23
|
path: { language_code: languageCode },
|
|
23
|
-
})
|
|
24
|
+
});
|
|
24
25
|
}
|
|
25
26
|
async fetchGeolocation() {
|
|
26
|
-
return
|
|
27
|
+
return apiGet({
|
|
27
28
|
client: this.config.client,
|
|
28
29
|
distributorID: this.config.distributorID,
|
|
29
30
|
locale: this.config.locale,
|
|
30
31
|
endpoint: "/{api_version}/geolocation",
|
|
31
|
-
})
|
|
32
|
+
});
|
|
32
33
|
}
|
|
33
34
|
async checkReservations(bookingSession) {
|
|
34
|
-
return
|
|
35
|
+
return apiGet({
|
|
35
36
|
client: this.config.client,
|
|
36
37
|
distributorID: this.config.distributorID,
|
|
37
38
|
locale: this.config.locale,
|
|
38
39
|
endpoint: "/{api_version}/reservations/check",
|
|
39
40
|
bookingSession,
|
|
40
|
-
})
|
|
41
|
+
});
|
|
41
42
|
}
|
|
42
43
|
async fetchReservations(bookingSession) {
|
|
43
|
-
return
|
|
44
|
+
return apiGet({
|
|
44
45
|
client: this.config.client,
|
|
45
46
|
distributorID: this.config.distributorID,
|
|
46
47
|
locale: this.config.locale,
|
|
47
48
|
endpoint: "/{api_version}/reservations",
|
|
48
49
|
bookingSession,
|
|
49
|
-
})
|
|
50
|
+
});
|
|
50
51
|
}
|
|
51
52
|
async confirmReservation(body, bookingSession, headers) {
|
|
52
|
-
return
|
|
53
|
+
return apiPut({
|
|
53
54
|
client: this.config.client,
|
|
54
55
|
distributorID: this.config.distributorID,
|
|
55
56
|
locale: this.config.locale,
|
|
@@ -57,43 +58,34 @@ export class PaymentApiService {
|
|
|
57
58
|
endpoint: "/{api_version}/reservations",
|
|
58
59
|
body,
|
|
59
60
|
headers,
|
|
60
|
-
})
|
|
61
|
+
});
|
|
61
62
|
}
|
|
62
63
|
async patchReservation(reservationId, body) {
|
|
63
|
-
return
|
|
64
|
+
return apiPatch({
|
|
64
65
|
client: this.config.client,
|
|
65
66
|
distributorID: this.config.distributorID,
|
|
66
67
|
locale: this.config.locale,
|
|
67
68
|
endpoint: "/{api_version}/reservations/{reservation_id}",
|
|
68
69
|
path: { reservation_id: reservationId },
|
|
69
70
|
body,
|
|
70
|
-
})
|
|
71
|
-
}
|
|
72
|
-
async fetchTransactions(userId) {
|
|
73
|
-
return withErrorHandling(apiGet({
|
|
74
|
-
client: this.config.client,
|
|
75
|
-
distributorID: this.config.distributorID,
|
|
76
|
-
locale: this.config.locale,
|
|
77
|
-
endpoint: "/{api_version}/users/{customer_id}/transactions",
|
|
78
|
-
path: { customer_id: userId },
|
|
79
|
-
}));
|
|
71
|
+
});
|
|
80
72
|
}
|
|
81
73
|
async fetchConfig() {
|
|
82
|
-
return
|
|
74
|
+
return apiGet({
|
|
83
75
|
client: this.config.client,
|
|
84
76
|
distributorID: this.config.distributorID,
|
|
85
77
|
locale: this.config.locale,
|
|
86
78
|
endpoint: "/{api_version}/config",
|
|
87
|
-
})
|
|
79
|
+
});
|
|
88
80
|
}
|
|
89
81
|
async submitUserConsent(email, headers) {
|
|
90
|
-
return
|
|
82
|
+
return apiPost({
|
|
91
83
|
client: this.config.client,
|
|
92
84
|
distributorID: this.config.distributorID,
|
|
93
85
|
locale: this.config.locale,
|
|
94
86
|
endpoint: "/{api_version}/fida/user-consent",
|
|
95
87
|
body: { email },
|
|
96
88
|
headers,
|
|
97
|
-
})
|
|
89
|
+
});
|
|
98
90
|
}
|
|
99
91
|
}
|
|
@@ -18,6 +18,7 @@ declare const CorasSearchPage_base: import("../../contexts/utils.js").Constructo
|
|
|
18
18
|
locale: import("../../index.js").SupportedLocales;
|
|
19
19
|
locales: import("../../index.js").SupportedLocales[];
|
|
20
20
|
loyaltyPoints: boolean;
|
|
21
|
+
logger: import("../../core/logger.js").Logger;
|
|
21
22
|
client: Client<paths>;
|
|
22
23
|
getPageProperties(): SearchPageParamsEvent;
|
|
23
24
|
dispatchPageUpdate(params: import("../../contexts/events.context.js").PageDispatchInput): void;
|
|
@@ -52,6 +53,7 @@ export declare class CorasSearchPage extends CorasSearchPage_base {
|
|
|
52
53
|
private resetSearch;
|
|
53
54
|
connectedCallback(): void;
|
|
54
55
|
disconnectedCallback(): void;
|
|
56
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
|
55
57
|
updated(changedProperties: PropertyValues): void;
|
|
56
58
|
private renderSkeleton;
|
|
57
59
|
private renderAttractions;
|
|
@@ -25,7 +25,7 @@ import "../../components/layout/layout.js";
|
|
|
25
25
|
import "../../components/breadcrumbs/breadcrumbs.js";
|
|
26
26
|
import "../../components/breadcrumbs/breadcrumb-item/breadcrumb-item.js";
|
|
27
27
|
import { Task, TaskStatus } from "@lit/task";
|
|
28
|
-
import { apiGet
|
|
28
|
+
import { apiGet } from "../../core/api/queries.js";
|
|
29
29
|
import { adaptPresetImages } from "../../core/images/preset-adapter.js";
|
|
30
30
|
import { ErrorModalMixin } from "../../mixins/error-modal.mixin.js";
|
|
31
31
|
import { getLocale, setLocale } from "../../core/i18n/localization.js";
|
|
@@ -47,10 +47,17 @@ let CorasSearchPage = class CorasSearchPage extends ErrorModalMixin(LocationSear
|
|
|
47
47
|
this.hasMore = true;
|
|
48
48
|
this.attractions = [];
|
|
49
49
|
this._isFirstUpdate = true;
|
|
50
|
+
// Runs only from the debounced criteria handler, the next-page request and
|
|
51
|
+
// the error modal retry, never from reactive args, so a criteria change
|
|
52
|
+
// cannot fetch the old page alongside the reset one. The body returns the
|
|
53
|
+
// page and the list is accumulated in onComplete, which @lit/task only
|
|
54
|
+
// calls for the latest run, so a late response for a superseded page is
|
|
55
|
+
// dropped instead of appended.
|
|
50
56
|
this.attractionsSearchTask = new Task(this, {
|
|
57
|
+
autoRun: false,
|
|
51
58
|
task: async ([search, locale, currency, page, size, startDate]) => {
|
|
52
59
|
const dateStart = startDate || format(new Date(), "yyyy-MM-dd");
|
|
53
|
-
const { data } = await
|
|
60
|
+
const { data } = await apiGet({
|
|
54
61
|
client: this.client,
|
|
55
62
|
distributorID: this.distributorID,
|
|
56
63
|
locale,
|
|
@@ -63,21 +70,12 @@ let CorasSearchPage = class CorasSearchPage extends ErrorModalMixin(LocationSear
|
|
|
63
70
|
page,
|
|
64
71
|
size,
|
|
65
72
|
},
|
|
66
|
-
})
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
else {
|
|
73
|
-
this.attractions = [...this.attractions, ...(data.results || [])];
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
this.hasMore = false;
|
|
78
|
-
this.attractions = page === 0 ? [] : this.attractions;
|
|
79
|
-
}
|
|
80
|
-
return data;
|
|
73
|
+
});
|
|
74
|
+
return {
|
|
75
|
+
page,
|
|
76
|
+
results: data.results || [],
|
|
77
|
+
hasMore: (page + 1) * size < (data.total || 0),
|
|
78
|
+
};
|
|
81
79
|
},
|
|
82
80
|
args: () => [
|
|
83
81
|
this.search,
|
|
@@ -87,6 +85,18 @@ let CorasSearchPage = class CorasSearchPage extends ErrorModalMixin(LocationSear
|
|
|
87
85
|
this.pageSize,
|
|
88
86
|
this.startDate,
|
|
89
87
|
],
|
|
88
|
+
onComplete: ({ page, results, hasMore }) => {
|
|
89
|
+
this.attractions =
|
|
90
|
+
page === 0 ? results : [...this.attractions, ...results];
|
|
91
|
+
this.hasMore = hasMore;
|
|
92
|
+
},
|
|
93
|
+
onError: () => {
|
|
94
|
+
// Stop the infinite scroll from re-requesting a failing page; the first
|
|
95
|
+
// page's failure shows the error modal.
|
|
96
|
+
this.hasMore = false;
|
|
97
|
+
if (this.page === 0)
|
|
98
|
+
this.attractions = [];
|
|
99
|
+
},
|
|
90
100
|
});
|
|
91
101
|
}
|
|
92
102
|
static { this.styles = [
|
|
@@ -162,6 +172,7 @@ let CorasSearchPage = class CorasSearchPage extends ErrorModalMixin(LocationSear
|
|
|
162
172
|
if (this.hasMore &&
|
|
163
173
|
this.attractionsSearchTask.status !== TaskStatus.PENDING) {
|
|
164
174
|
this.page++;
|
|
175
|
+
void this.attractionsSearchTask.run();
|
|
165
176
|
}
|
|
166
177
|
}
|
|
167
178
|
setupIntersectionObserver() {
|
|
@@ -197,17 +208,25 @@ let CorasSearchPage = class CorasSearchPage extends ErrorModalMixin(LocationSear
|
|
|
197
208
|
// Debounced search handler to avoid multiple API calls when search criteria change rapidly
|
|
198
209
|
this.debouncedSearchHandler = debounce({ delay: 300 }, () => {
|
|
199
210
|
this.resetSearch();
|
|
200
|
-
this.attractionsSearchTask.run();
|
|
211
|
+
void this.attractionsSearchTask.run();
|
|
201
212
|
});
|
|
202
213
|
}
|
|
203
214
|
disconnectedCallback() {
|
|
204
215
|
super.disconnectedCallback();
|
|
205
216
|
this.cleanupIntersectionObserver();
|
|
206
217
|
}
|
|
218
|
+
willUpdate(changedProperties) {
|
|
219
|
+
super.willUpdate(changedProperties);
|
|
220
|
+
if (!this.hasUpdated) {
|
|
221
|
+
void this.attractionsSearchTask.run();
|
|
222
|
+
}
|
|
223
|
+
}
|
|
207
224
|
updated(changedProperties) {
|
|
208
225
|
super.updated(changedProperties);
|
|
209
226
|
if (getLocale() !== this.locale) {
|
|
210
|
-
|
|
227
|
+
// `loadLocale` falls back on its own (see core/i18n/localization.ts), so
|
|
228
|
+
// the returned promise does not reject; an unknown code throws synchronously.
|
|
229
|
+
void setLocale(this.locale);
|
|
211
230
|
}
|
|
212
231
|
this.setupIntersectionObserver();
|
|
213
232
|
if (!this.hasMore && this.observer) {
|
|
@@ -325,7 +344,7 @@ let CorasSearchPage = class CorasSearchPage extends ErrorModalMixin(LocationSear
|
|
|
325
344
|
buttonLabel: msg("Refresh the page"),
|
|
326
345
|
onRetry: () => {
|
|
327
346
|
this.resetSearch();
|
|
328
|
-
this.attractionsSearchTask.run();
|
|
347
|
+
void this.attractionsSearchTask.run();
|
|
329
348
|
},
|
|
330
349
|
onHelp: () => this.dispatchPageUpdate({ page: "help" }),
|
|
331
350
|
})}
|
|
@@ -13,6 +13,7 @@ declare const CorasSuggestionWidget_base: import("../../contexts/utils.js").Cons
|
|
|
13
13
|
locale: import("../../index.js").SupportedLocales;
|
|
14
14
|
locales: import("../../index.js").SupportedLocales[];
|
|
15
15
|
loyaltyPoints: boolean;
|
|
16
|
+
logger: import("../../core/logger.js").Logger;
|
|
16
17
|
client: import("openapi-fetch").Client<import("../../core/types/api-schema.js").paths>;
|
|
17
18
|
getPageProperties(): PageParamsEvent;
|
|
18
19
|
dispatchPageUpdate(params: import("../../contexts/events.context.js").PageDispatchInput): void;
|
|
@@ -18,7 +18,7 @@ import "../../components/attraction-card/short/attraction-short-card.js";
|
|
|
18
18
|
import { getLocationImageURL } from "../../core/images/helpers.js";
|
|
19
19
|
import { IMAGE_BASE_URL } from "../../core/images/constants.js";
|
|
20
20
|
import { BaseMixin } from "../../mixins/base.mixin.js";
|
|
21
|
-
import { apiGet
|
|
21
|
+
import { apiGet } from "../../core/api/queries.js";
|
|
22
22
|
import { convertToLocaleCurrency } from "../../core/currency/index.js";
|
|
23
23
|
let CorasSuggestionWidget = class CorasSuggestionWidget extends BaseMixin(LitElement) {
|
|
24
24
|
constructor() {
|
|
@@ -29,13 +29,14 @@ let CorasSuggestionWidget = class CorasSuggestionWidget extends BaseMixin(LitEle
|
|
|
29
29
|
this.city = "";
|
|
30
30
|
this.suggestionsTask = new Task(this, {
|
|
31
31
|
task: async ([locale, country, city, currency]) => {
|
|
32
|
-
|
|
32
|
+
const { data } = await apiGet({
|
|
33
33
|
client: this.client,
|
|
34
34
|
distributorID: this.distributorID,
|
|
35
35
|
locale,
|
|
36
36
|
endpoint: "/{api_version}/landing",
|
|
37
37
|
query: { country, city, currency },
|
|
38
|
-
})
|
|
38
|
+
});
|
|
39
|
+
return data;
|
|
39
40
|
},
|
|
40
41
|
args: () => [this.locale, this.country, this.city, this.currency],
|
|
41
42
|
});
|
|
@@ -131,8 +132,8 @@ let CorasSuggestionWidget = class CorasSuggestionWidget extends BaseMixin(LitEle
|
|
|
131
132
|
return this.suggestionsTask.render({
|
|
132
133
|
pending: () => this.renderSkeleton(),
|
|
133
134
|
error: () => nothing,
|
|
134
|
-
complete: (
|
|
135
|
-
const section =
|
|
135
|
+
complete: (sections) => {
|
|
136
|
+
const section = sections?.find((candidate) => candidate.type === "short-card");
|
|
136
137
|
const cards = (section?.items ?? []);
|
|
137
138
|
if (!cards.length) {
|
|
138
139
|
return nothing;
|
package/package.json
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=22"
|
|
22
22
|
},
|
|
23
|
-
"version": "0.
|
|
23
|
+
"version": "0.6.0",
|
|
24
24
|
"private": false,
|
|
25
|
-
"homepage": "https://
|
|
25
|
+
"homepage": "https://docs.coras.io",
|
|
26
26
|
"bugs": {
|
|
27
27
|
"url": "https://embed.coras.io"
|
|
28
28
|
},
|
|
@@ -45,19 +45,23 @@
|
|
|
45
45
|
"exports": {
|
|
46
46
|
".": {
|
|
47
47
|
"types": "./dist/index.d.ts",
|
|
48
|
-
"import": "./dist/index.js"
|
|
48
|
+
"import": "./dist/index.js",
|
|
49
|
+
"default": "./dist/index.js"
|
|
49
50
|
},
|
|
50
51
|
"./url": {
|
|
51
52
|
"types": "./dist/sdk/url.d.ts",
|
|
52
|
-
"import": "./dist/sdk/url.js"
|
|
53
|
+
"import": "./dist/sdk/url.js",
|
|
54
|
+
"default": "./dist/sdk/url.js"
|
|
53
55
|
},
|
|
54
56
|
"./helpers": {
|
|
55
57
|
"types": "./dist/helpers/helpers.d.ts",
|
|
56
|
-
"import": "./dist/helpers/helpers.js"
|
|
58
|
+
"import": "./dist/helpers/helpers.js",
|
|
59
|
+
"default": "./dist/helpers/helpers.js"
|
|
57
60
|
},
|
|
58
61
|
"./errors": {
|
|
59
62
|
"types": "./dist/errors.d.ts",
|
|
60
|
-
"import": "./dist/errors.js"
|
|
63
|
+
"import": "./dist/errors.js",
|
|
64
|
+
"default": "./dist/errors.js"
|
|
61
65
|
},
|
|
62
66
|
"./package.json": "./package.json"
|
|
63
67
|
},
|
|
@@ -69,7 +73,6 @@
|
|
|
69
73
|
"@eslint/js": "10.0.1",
|
|
70
74
|
"@lit/localize-tools": "0.8.2",
|
|
71
75
|
"@ljcl/storybook-addon-cssprops": "6.1.0",
|
|
72
|
-
"@seatsio/seatsio-types": "6.19.0",
|
|
73
76
|
"@storybook/addon-a11y": "10.5.10",
|
|
74
77
|
"@storybook/addon-designs": "11.1.4",
|
|
75
78
|
"@storybook/addon-docs": "10.5.10",
|
|
@@ -104,25 +107,25 @@
|
|
|
104
107
|
"typescript-eslint": "8.67.0",
|
|
105
108
|
"vite": "8.2.2",
|
|
106
109
|
"vitest": "4.1.11",
|
|
107
|
-
"@coras-io/static": "0.0.
|
|
110
|
+
"@coras-io/static": "0.0.6"
|
|
108
111
|
},
|
|
109
112
|
"dependencies": {
|
|
110
113
|
"@coinbase/cdp-core": "0.0.122",
|
|
111
|
-
"@floating-ui/dom": "1.8.0",
|
|
112
|
-
"@lit-labs/signals": "^0.3.0",
|
|
114
|
+
"@floating-ui/dom": "^1.8.0",
|
|
113
115
|
"@lit-labs/virtualizer": "^2.1.1",
|
|
114
116
|
"@lit/context": "^1.1.6",
|
|
115
117
|
"@lit/localize": "^0.12.2",
|
|
116
118
|
"@lit/task": "^1.0.3",
|
|
117
|
-
"@
|
|
118
|
-
"
|
|
119
|
-
"date-fns
|
|
120
|
-
"
|
|
121
|
-
"
|
|
119
|
+
"@seatsio/seatsio-types": "6.19.0",
|
|
120
|
+
"@stripe/stripe-js": "^9.14.0",
|
|
121
|
+
"date-fns": "^4.4.0",
|
|
122
|
+
"date-fns-tz": "^3.2.0",
|
|
123
|
+
"dompurify": "^3.4.14",
|
|
124
|
+
"libphonenumber-js": "^1.13.11",
|
|
122
125
|
"lit": "^3.3.3",
|
|
123
|
-
"openapi-fetch": "0.17.0",
|
|
124
|
-
"viem": "2.55.19",
|
|
125
|
-
"@coras-io/brand-tokens": "^0.
|
|
126
|
+
"openapi-fetch": "^0.17.0",
|
|
127
|
+
"viem": "^2.55.19",
|
|
128
|
+
"@coras-io/brand-tokens": "^0.6.0"
|
|
126
129
|
},
|
|
127
130
|
"scripts": {
|
|
128
131
|
"lint": "eslint \"src/**/*.ts*\"",
|
|
@@ -133,10 +136,11 @@
|
|
|
133
136
|
"clean": "rimraf dist && rimraf node_modules",
|
|
134
137
|
"prebuild": "rimraf dist node_modules/.cache/embed.tsbuildinfo && pnpm run generate:tokens",
|
|
135
138
|
"build": "tsc -p tsconfig.build.json",
|
|
136
|
-
"build:watch": "tsc
|
|
137
|
-
"postbuild": "pnpm run generate-manifest",
|
|
139
|
+
"build:watch": "tsc -p tsconfig.build.json --watch",
|
|
140
|
+
"postbuild": "cp src/core/types/api-schema.d.ts dist/core/types/api-schema.d.ts && pnpm run generate-manifest",
|
|
138
141
|
"generate-api-schema": "openapi-typescript openapi.schema.json -o ./src/core/types/api-schema.d.ts && eslint --fix src/core/types/api-schema.d.ts && prettier --write src/core/types/api-schema.d.ts",
|
|
139
142
|
"test": "vitest",
|
|
143
|
+
"pretest:sdk": "pnpm --filter @coras-io/brand-tokens run build",
|
|
140
144
|
"test:sdk": "vitest run --config vitest.sdk.config.ts",
|
|
141
145
|
"generate-manifest": "custom-elements-manifest analyze --config cem.config.mjs",
|
|
142
146
|
"generate:tokens": "node scripts/generate-tokens.mjs",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type CSSResultGroup, LitElement } from "lit";
|
|
2
|
-
import "../../image/image.js";
|
|
3
|
-
export declare class CorasAttractionDiscoveryImage extends LitElement {
|
|
4
|
-
static styles: CSSResultGroup;
|
|
5
|
-
imageUrl: string;
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
caption: string;
|
|
9
|
-
render(): import("lit").TemplateResult<1>;
|
|
10
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html } from "lit";
|
|
8
|
-
import { property } from "lit/decorators.js";
|
|
9
|
-
import "../../image/image.js";
|
|
10
|
-
import styles from "./attraction-discovery-image.styles.js";
|
|
11
|
-
export class CorasAttractionDiscoveryImage extends LitElement {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.imageUrl = "";
|
|
15
|
-
this.width = 0;
|
|
16
|
-
this.height = 0;
|
|
17
|
-
this.caption = "";
|
|
18
|
-
}
|
|
19
|
-
static { this.styles = styles; }
|
|
20
|
-
render() {
|
|
21
|
-
return html `
|
|
22
|
-
<coras-image
|
|
23
|
-
src=${this.imageUrl}
|
|
24
|
-
alt=${this.caption}
|
|
25
|
-
width=${this.width}
|
|
26
|
-
height=${this.height}
|
|
27
|
-
widths="280,375,480,640,768"
|
|
28
|
-
></coras-image>
|
|
29
|
-
`;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
__decorate([
|
|
33
|
-
property({ type: String, attribute: "image-url" })
|
|
34
|
-
], CorasAttractionDiscoveryImage.prototype, "imageUrl", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
property({ type: Number })
|
|
37
|
-
], CorasAttractionDiscoveryImage.prototype, "width", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
property({ type: Number })
|
|
40
|
-
], CorasAttractionDiscoveryImage.prototype, "height", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
property({ type: String })
|
|
43
|
-
], CorasAttractionDiscoveryImage.prototype, "caption", void 0);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CorasAttractionDiscoveryImage } from "./attraction-discovery-image.component.js";
|
|
2
|
-
export * from "./attraction-discovery-image.component.js";
|
|
3
|
-
export default CorasAttractionDiscoveryImage;
|
|
4
|
-
declare global {
|
|
5
|
-
interface HTMLElementTagNameMap {
|
|
6
|
-
"coras-attraction-discovery-image": CorasAttractionDiscoveryImage;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CorasAttractionDiscoveryImage } from "./attraction-discovery-image.component.js";
|
|
2
|
-
export * from "./attraction-discovery-image.component.js";
|
|
3
|
-
export default CorasAttractionDiscoveryImage;
|
|
4
|
-
if (!customElements.get("coras-attraction-discovery-image")) {
|
|
5
|
-
customElements.define("coras-attraction-discovery-image", CorasAttractionDiscoveryImage);
|
|
6
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { css } from "lit";
|
|
2
|
-
import component from "../../../styles/defaults/component.js";
|
|
3
|
-
export default css `
|
|
4
|
-
${component}
|
|
5
|
-
|
|
6
|
-
:host {
|
|
7
|
-
--attraction-discovery-image-border-radius: var(--coras-radius-sm);
|
|
8
|
-
--attraction-discovery-image-box-shadow: var(--coras-shadow-strong);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
coras-image {
|
|
12
|
-
border-radius: var(--attraction-discovery-image-border-radius);
|
|
13
|
-
box-shadow: var(--attraction-discovery-image-box-shadow);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
coras-image::part(image) {
|
|
17
|
-
border-radius: inherit;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:host(:hover) {
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
}
|
|
23
|
-
`;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type CSSResultGroup, LitElement } from "lit";
|
|
2
|
-
import "../button/button.js";
|
|
3
|
-
import { AttractionDiscoveryLayout } from "./attraction-discovery.constants.js";
|
|
4
|
-
export declare class CorasAttractionDiscovery extends LitElement {
|
|
5
|
-
static styles: CSSResultGroup;
|
|
6
|
-
header: string;
|
|
7
|
-
description: string;
|
|
8
|
-
layout: AttractionDiscoveryLayout;
|
|
9
|
-
render(): import("lit").TemplateResult<1>;
|
|
10
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html } from "lit";
|
|
8
|
-
import { property } from "lit/decorators.js";
|
|
9
|
-
import { classMap } from "lit/directives/class-map.js";
|
|
10
|
-
import "../button/button.js";
|
|
11
|
-
import { AttractionDiscoveryLayout } from "./attraction-discovery.constants.js";
|
|
12
|
-
import styles from "./attraction-discovery.styles.js";
|
|
13
|
-
export class CorasAttractionDiscovery extends LitElement {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.header = "";
|
|
17
|
-
this.description = "";
|
|
18
|
-
this.layout = AttractionDiscoveryLayout.IMAGES_ON_THE_LEFT;
|
|
19
|
-
}
|
|
20
|
-
static { this.styles = styles; }
|
|
21
|
-
render() {
|
|
22
|
-
const classes = {
|
|
23
|
-
inverted: this.layout === AttractionDiscoveryLayout.IMAGES_ON_THE_RIGHT,
|
|
24
|
-
["attraction-discovery"]: true,
|
|
25
|
-
};
|
|
26
|
-
return html `
|
|
27
|
-
<div class="attraction-discovery-container">
|
|
28
|
-
<div class=${classMap(classes)}>
|
|
29
|
-
<div class="images">
|
|
30
|
-
<slot name="images"></slot>
|
|
31
|
-
</div>
|
|
32
|
-
|
|
33
|
-
<div class="header">${this.header}</div>
|
|
34
|
-
<div class="description">${this.description}</div>
|
|
35
|
-
|
|
36
|
-
<div class="button">
|
|
37
|
-
<slot class="button" name="button"></slot>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
`;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
__decorate([
|
|
45
|
-
property({ type: String })
|
|
46
|
-
], CorasAttractionDiscovery.prototype, "header", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
property({ type: String })
|
|
49
|
-
], CorasAttractionDiscovery.prototype, "description", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
property({ type: String })
|
|
52
|
-
], CorasAttractionDiscovery.prototype, "layout", void 0);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export var AttractionDiscoveryLayout;
|
|
2
|
-
(function (AttractionDiscoveryLayout) {
|
|
3
|
-
AttractionDiscoveryLayout["IMAGES_ON_THE_RIGHT"] = "images-on-the-right";
|
|
4
|
-
AttractionDiscoveryLayout["IMAGES_ON_THE_LEFT"] = "images-on-the-left";
|
|
5
|
-
})(AttractionDiscoveryLayout || (AttractionDiscoveryLayout = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CorasAttractionDiscovery } from "./attraction-discovery.component.js";
|
|
2
|
-
export * from "./attraction-discovery.component.js";
|
|
3
|
-
export default CorasAttractionDiscovery;
|
|
4
|
-
declare global {
|
|
5
|
-
interface HTMLElementTagNameMap {
|
|
6
|
-
"coras-attraction-discovery": CorasAttractionDiscovery;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CorasAttractionDiscovery } from "./attraction-discovery.component.js";
|
|
2
|
-
export * from "./attraction-discovery.component.js";
|
|
3
|
-
export default CorasAttractionDiscovery;
|
|
4
|
-
if (!customElements.get("coras-attraction-discovery")) {
|
|
5
|
-
customElements.define("coras-attraction-discovery", CorasAttractionDiscovery);
|
|
6
|
-
}
|