@coras-io/embed 0.5.1 → 0.6.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/CHANGELOG.md +34 -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.d.ts +4 -4
- package/dist/components/location-image/location-image.component.js +6 -7
- 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/images/srcset.js +2 -2
- 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
package/dist/locales/zh-HK.js
CHANGED
|
@@ -6,7 +6,6 @@ import { str } from '@lit/localize';
|
|
|
6
6
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7
7
|
export const templates = {
|
|
8
8
|
'h0453a9c8ddf1e74c': html `如果您在訂單方面需要協助,請造訪我們的幫助中心。`,
|
|
9
|
-
'h0f22760eabebc0d2': html `基於${0}評論`,
|
|
10
9
|
'h41ee003df7011ba3': html `重新傳送程式碼(${0}s)`,
|
|
11
10
|
'h4653b4623e11cce8': html `重新發送(${0}s)`,
|
|
12
11
|
'h62aa06b7d898393a': html `${0} 活動`,
|
|
@@ -15,7 +14,6 @@ export const templates = {
|
|
|
15
14
|
's003d3f04ab3c63af': `出於安全原因,運營商要求這樣做`,
|
|
16
15
|
's01769b46d7a9bcbe': `請選擇導遊語言`,
|
|
17
16
|
's01ca6f3c6dcac61b': `請選擇相鄰的座位。`,
|
|
18
|
-
's0230dfb6b6c1e011': `您的信用卡被拒絕了。`,
|
|
19
17
|
's02cbd3b6873bf3cc': `我們已將您的訂單確認訊息發送至`,
|
|
20
18
|
's0379fc73608ab971': `完畢`,
|
|
21
19
|
's0487f33d9ddaabde': `關於`,
|
|
@@ -37,7 +35,6 @@ export const templates = {
|
|
|
37
35
|
's0fb0fc272e807ad1': `您的卡片安全碼不完整。`,
|
|
38
36
|
's11602ea206accf6e': `座位圖`,
|
|
39
37
|
's11cc9ffa7ddc8e94': `您的購物車是空的!`,
|
|
40
|
-
's13a66c3ef0b5bf5f': `整體評分`,
|
|
41
38
|
's14cc42e0b8fe4c84': `活動或景點名稱`,
|
|
42
39
|
's15194cf12eb014cd': `運動`,
|
|
43
40
|
's1726f691155bad09': `劇院門票`,
|
|
@@ -51,7 +48,6 @@ export const templates = {
|
|
|
51
48
|
's208665855189c10c': `體育門票`,
|
|
52
49
|
's214bac601e6d7da8': `每個`,
|
|
53
50
|
's2220ac9a490a6aad': `您此次FIDA餘額不足,無法以FIDA支付。`,
|
|
54
|
-
's22771f6bba73d648': `您的卡片已過有效期限。`,
|
|
55
51
|
's2468b69d10791c82': `城市`,
|
|
56
52
|
's24836d5e8de2ef53': `籃子`,
|
|
57
53
|
's255857544a9d5ec0': `重置`,
|
|
@@ -63,7 +59,6 @@ export const templates = {
|
|
|
63
59
|
's2af92d203c6533c4': `我們會盡快回覆您提供的信箱地址。請確認此處發送的訊息。`,
|
|
64
60
|
's2b62420bebf9e6e4': str `最少需要的字元數 ${0}`,
|
|
65
61
|
's2d1d27aa9a7ab857': `飯店接送`,
|
|
66
|
-
's2d6ceb2ed95d2aec': `您的卡片安全碼無效。`,
|
|
67
62
|
's302b8b3db5e19407': `如果您在我們的資訊欄中找不到所需內容,請告訴我們如何為您提供協助。`,
|
|
68
63
|
's30953bd831efad6c': `登入失敗,請重試。`,
|
|
69
64
|
's318aefcc44f6fbdc': `請刷新頁面後重試。`,
|
|
@@ -83,14 +78,12 @@ export const templates = {
|
|
|
83
78
|
's3bd9192a47014fac': `我們將透過電子郵件向您發送訂單確認資訊至此地址`,
|
|
84
79
|
's3d0bb0448ae28706': `郵遞區號`,
|
|
85
80
|
's3d1d2fdc677de804': `輸入或選擇國家/地區`,
|
|
86
|
-
's3d52d1be2d6d171d': `您的卡片的有效期限已失效。`,
|
|
87
81
|
's3dc9fd50cee69d30': `請輸入有效日期`,
|
|
88
82
|
's3e7884bf4f412c6f': `專案`,
|
|
89
83
|
's40d76f1f51639ec0': `人`,
|
|
90
84
|
's42211e5b076304b9': `不包含哪些內容`,
|
|
91
85
|
's42c3f76163444278': `繼續購物`,
|
|
92
86
|
's42cbc1ed3d490ba8': str `成人起價${0}`,
|
|
93
|
-
's4356163009e59310': `您的卡到期月份無效。`,
|
|
94
87
|
's43f528d2fff00362': str `預訂費(每張票${0})`,
|
|
95
88
|
's4543ff29118e088d': `確認中…`,
|
|
96
89
|
's463b8c4e92751ba5': `選項`,
|
|
@@ -109,7 +102,6 @@ export const templates = {
|
|
|
109
102
|
's56d9d499ce21aa71': `音樂門票`,
|
|
110
103
|
's589ade03e24b3dec': `劇院`,
|
|
111
104
|
's5921af1f9988e939': `搜尋事件`,
|
|
112
|
-
's5b0cdec697634a43': `您的卡片安全碼不完整。`,
|
|
113
105
|
's5baecf6a8b5e582f': `選擇您的貨幣`,
|
|
114
106
|
's5bd685b647375404': `正在確認您的付款…`,
|
|
115
107
|
's5c843d9e674e1c41': str `${0} ${1} 的票`,
|
|
@@ -125,7 +117,6 @@ export const templates = {
|
|
|
125
117
|
's63a8d5c967692fd8': str `預訂 ${0} 的熱門活動`,
|
|
126
118
|
's6434ccb2ab38de1e': `前往FIDA帳戶(在新分頁中開啟)`,
|
|
127
119
|
's64c725e7c35bfc44': `圖片載入失敗`,
|
|
128
|
-
's65d8b64cc2edc07f': `發生錯誤。`,
|
|
129
120
|
's66241ced41f02eaa': `座位圖僅供參考`,
|
|
130
121
|
's6765e69c04d66039': `驗證碼無效或已過期,請重試。`,
|
|
131
122
|
's67b559eeb2136588': `正在加載座位圖…`,
|
|
@@ -137,24 +128,20 @@ export const templates = {
|
|
|
137
128
|
's6d84c67f663fb24d': `嘗試次數過多,請稍後再試。`,
|
|
138
129
|
's6e8059179423bfa0': `姓`,
|
|
139
130
|
's6f932154a669cc49': `請輸入您的電話號碼`,
|
|
140
|
-
's709af33057592dd8': `您的銀行卡安全碼錯誤。`,
|
|
141
131
|
's70ab5bb776df5e7c': `請輸入您的電子郵件地址`,
|
|
142
132
|
's732385cbc938b7a1': `所有日期`,
|
|
143
133
|
's732d031b2be46181': `請輸入有效的電話號碼`,
|
|
144
134
|
's7571bffb300cd56a': `訂單參考編號`,
|
|
145
135
|
's7572f8d1e64214a9': `這是必填字段`,
|
|
146
136
|
's76e508e5ee58da2d': `您的卡片的有效期限資訊不完整。`,
|
|
147
|
-
's771897106728d3f6': `處理卡片時發生錯誤。`,
|
|
148
137
|
's77dde5ef6c52def6': `貨幣`,
|
|
149
138
|
's791ef75ce61f73be': `受歡迎的`,
|
|
150
139
|
's7aa03410a4afcc96': `選擇您的語言`,
|
|
151
140
|
's7ac23a5b8153fad5': `幫助中心`,
|
|
152
|
-
's7f3437809d931336': `評論`,
|
|
153
141
|
's8195430312d62be0': `您的卡片未被扣款。如果您想重試,請點擊按鈕返回同一活動頁面。`,
|
|
154
142
|
's8315ddc4161a498b': `如果問題仍然存在,請聯絡我們`,
|
|
155
143
|
's84a7ee7d2559f1e1': `我需要幫助…`,
|
|
156
144
|
's8654133f4227b6dc': `精彩片段`,
|
|
157
|
-
's86d7da761b5e390d': `我已閱讀並同意條款和條件。`,
|
|
158
145
|
's86e180b4d89f9bbe': `更改電話號碼`,
|
|
159
146
|
's871b1fe6d1846958': `電話號碼`,
|
|
160
147
|
's87bae2710b2492c3': `接觸`,
|
|
@@ -163,9 +150,7 @@ export const templates = {
|
|
|
163
150
|
's8dd38519f42fc289': `支付`,
|
|
164
151
|
's8f683174898a4afa': `瀏覽其他活動`,
|
|
165
152
|
's8f94436e63f36047': `立即付款`,
|
|
166
|
-
's90e83b2c18f39409': `您的卡片已過期。`,
|
|
167
153
|
's9145aa93cf917ae4': `請輸入有效的電子郵件地址`,
|
|
168
|
-
's9181c89c4a58402a': `您的銀行卡郵遞區號驗證失敗。`,
|
|
169
154
|
's92921878e886e36d': `期間`,
|
|
170
155
|
's93c046d8c5bb2047': `出生日期`,
|
|
171
156
|
's953fc82dcd20c9f8': `謝謝,您的預訂已確認! `,
|
|
@@ -183,14 +168,12 @@ export const templates = {
|
|
|
183
168
|
'sa61534a5c0c71f5e': `消除`,
|
|
184
169
|
'sa6ab5184d6315895': `從`,
|
|
185
170
|
'sa7d09574ece17145': `請告訴我們如何才能幫助您。`,
|
|
186
|
-
'sa8535600e6997bcf': `您的卡號不是有效的信用卡號。`,
|
|
187
171
|
'sa8beb6b1182241ac': `過濾器`,
|
|
188
172
|
'sa8e8cc2558962d51': `可以做的事情`,
|
|
189
173
|
'saaf58da3a384352a': str `我們有 ${0} 個可用選項`,
|
|
190
174
|
'sab459038e3c6bcb8': `名`,
|
|
191
175
|
'sac33f8b1ee0a8a70': str `${0} 已選擇座位`,
|
|
192
176
|
'sad4a0401aafaab57': `位置影像`,
|
|
193
|
-
'sb05eb16313ad5810': `錯誤!`,
|
|
194
177
|
'sb074169ce94feeb0': `FIDA餘額不足`,
|
|
195
178
|
'sb182f52b56175d8c': `未找到任何國家/地區`,
|
|
196
179
|
'sb26e53053d747113': `門票及旅遊`,
|
|
@@ -227,16 +210,13 @@ export const templates = {
|
|
|
227
210
|
'scbaa2a2ceb044c0a': `選擇您的座位`,
|
|
228
211
|
'scc1db59d292cbc4c': `部分`,
|
|
229
212
|
'scd0b9d7c6f9c597d': `您的代碼將在 5 分鐘後過期。`,
|
|
230
|
-
'scd1ca177bf7ddf98': `被收費的顧客並沒有綁定銀行卡。`,
|
|
231
213
|
'scd1dd6ff53d0d01a': `再試一次`,
|
|
232
214
|
'scd525a733e4c9110': `您的FIDA餘額為`,
|
|
233
215
|
'sce2300ea82130155': `賺取收入`,
|
|
234
|
-
'scf61ccc6056c17d2': `您的卡號錯誤。`,
|
|
235
216
|
'sd002a6411d593b33': `付款詳情`,
|
|
236
217
|
'sd0827f83a77da218': `你要去哪裡?`,
|
|
237
218
|
'sd15de0dcd2378a55': `聯絡我們`,
|
|
238
219
|
'sd1797c5a30652800': `總價`,
|
|
239
|
-
'sd20a2299b31382f0': `FIDA 獎勵(因本次交易)`,
|
|
240
220
|
'sd4d1e43525fd598a': `驗證碼發送失敗,請重試。`,
|
|
241
221
|
'sd574f2d5de170480': `應用篩選器`,
|
|
242
222
|
'sd715e3f32ad86586': `請輸入有效日期,格式為 YYYY-MM-DD`,
|
|
@@ -247,7 +227,6 @@ export const templates = {
|
|
|
247
227
|
'sdf566eeae04c0483': `請選擇時間`,
|
|
248
228
|
'se046d97f0d9dd903': `輸入名稱或選擇`,
|
|
249
229
|
'se256f991824c9ae0': `旗幟圖示`,
|
|
250
|
-
'se2b298fd65f45cc7': `您的卡片的有效期限資訊不完整。`,
|
|
251
230
|
'se374a10ee87f7f8c': `條款及細則`,
|
|
252
231
|
'se3d2b191408a6254': `確認後,FIDA 代幣將從您的錢包轉出以完成此付款。`,
|
|
253
232
|
'se46604e4550a957d': `回首頁`,
|
|
@@ -278,11 +257,49 @@ export const templates = {
|
|
|
278
257
|
'sfa28319e707cf5d5': `訂單詳情`,
|
|
279
258
|
'sfd25dcb1e3a468be': `搜尋事件`,
|
|
280
259
|
'sffdadf0a576fd802': `高度`,
|
|
260
|
+
's8ffdc67bd6500a2f': `Near me`,
|
|
261
|
+
'sb4f1dffbb6be6302': `Clear`,
|
|
262
|
+
'scd0ddab5a7a0f930': `Drawer`,
|
|
263
|
+
's5d929ff1619ac0c9': `Search`,
|
|
264
|
+
's7d628682e66e0d3a': `Search icon`,
|
|
265
|
+
's6d8c02aee480af7a': `Menu`,
|
|
266
|
+
'sc50d09edf9325339': `Dialog`,
|
|
267
|
+
's52ac41b0b9dd0a9f': `We could not use your location. Search for a place instead.`,
|
|
268
|
+
'sf3ff78cc329d3528': `Previous`,
|
|
269
|
+
's0fbf6dc6a1966408': `Next`,
|
|
270
|
+
'sea4f08110bb8f15d': `Remove`,
|
|
271
|
+
'sbb980b38227e171f': `Calendar`,
|
|
272
|
+
'sc97edc0c4bf27853': `Clear dates`,
|
|
273
|
+
'sde0f21c1e57481c9': `Open calendar`,
|
|
274
|
+
's2698862401bb7f50': str `Image ${0}`,
|
|
275
|
+
's1515b0f2c5188380': str `Other ${0} highlights`,
|
|
276
|
+
'sdc71496dfa9818bc': `Explore`,
|
|
277
|
+
'sfc405bfeccadb01f': str `See what ${0} has to offer`,
|
|
278
|
+
's61d8ba5db13903be': str `${0} Tickets (${1} each)`,
|
|
281
279
|
'h12f3bd3a64c46efe': html `Good news! You’ve collected ${0} on this
|
|
282
280
|
purchase.`,
|
|
283
281
|
'h82c989f2494613fa': html `A verification code has been sent to ${0}. Enter the
|
|
284
282
|
6-digit code below to confirm your payment.`,
|
|
285
283
|
'hb3090d5e6b53fe7c': html `We'll send a one-time code to your phone number ending in
|
|
286
284
|
${0} to verify it.`,
|
|
285
|
+
's3e006a806d3b4691': `Payment`,
|
|
286
|
+
'sc3b5f0655f7e750e': `Payment configuration error. Please try again.`,
|
|
287
|
+
'sd22efd1a56ff1273': `Payment validation error. Please try again.`,
|
|
288
|
+
's1a48fb64b48125fe': `Payment failed`,
|
|
289
|
+
's51fc854463fe00f2': `Payment authorization failed. Please try again.`,
|
|
290
|
+
'seae566f3b8648763': `An error occurred while processing your payment. Please try again.`,
|
|
291
|
+
's7c9e442fd5d7403d': `Invalid payment configuration. Please try again.`,
|
|
292
|
+
's3ea043a36287930c': `Failed to resend the verification code. Please try again.`,
|
|
293
|
+
's1e2b6f4c6cb2282b': `Verification failed`,
|
|
294
|
+
'sf562460f1ffdc5e1': `Failed to resend code`,
|
|
295
|
+
'see08734dfee6e873': `An unexpected error occurred. Please try again.`,
|
|
296
|
+
's6e95582c3d7ff15e': `At least one reservation is required`,
|
|
297
|
+
's008e64897466dd2a': `We could not save your pickup point. Please try again.`,
|
|
298
|
+
's028ef49bb8631312': `We are confirming your payment`,
|
|
299
|
+
's73d4afc47ac92ccf': `Your payment was received but we are still waiting for the confirmation. This can take a few minutes; you do not need to pay again.`,
|
|
300
|
+
'sfe88d270aa3e71da': `Reference`,
|
|
301
|
+
'sc0c8035281ee7caf': `Check again`,
|
|
302
|
+
's417d2615b024887d': `Your FIDA tokens were transferred but the order could not be completed. Please contact our help centre and quote your reference; do not pay again.`,
|
|
303
|
+
's628f46be0c3e83be': `We're sorry, we couldn't send your query. Please try again in a moment.`,
|
|
287
304
|
'hc94338efbdc293e0': html `Order reference ${0}`,
|
|
288
305
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { SupportedCurrencies, SupportedLocales } from "../core/types/index.js";
|
|
2
2
|
import type { LitElement } from "lit";
|
|
3
3
|
import type { paths } from "../core/types/api-schema.js";
|
|
4
|
-
import {
|
|
4
|
+
import type { Client } from "openapi-fetch";
|
|
5
5
|
import type { Constructor } from "../contexts/utils.js";
|
|
6
6
|
import { type PageDispatchInput } from "../contexts/events.context.js";
|
|
7
|
+
import { type Logger } from "../core/logger.js";
|
|
7
8
|
import type { PageParamsEvent } from "../core/pages.js";
|
|
8
9
|
type BaseMixinProperties<CustomPageContext extends PageParamsEvent> = {
|
|
9
10
|
apiHost: string;
|
|
@@ -14,6 +15,7 @@ type BaseMixinProperties<CustomPageContext extends PageParamsEvent> = {
|
|
|
14
15
|
locale: SupportedLocales;
|
|
15
16
|
locales: SupportedLocales[];
|
|
16
17
|
loyaltyPoints: boolean;
|
|
18
|
+
logger: Logger;
|
|
17
19
|
client: Client<paths>;
|
|
18
20
|
getPageProperties(): CustomPageContext;
|
|
19
21
|
dispatchPageUpdate(params: PageDispatchInput): void;
|
|
@@ -4,10 +4,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
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
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import createClient, {} from "openapi-fetch";
|
|
8
7
|
import { property } from "lit/decorators.js";
|
|
9
|
-
import {
|
|
10
|
-
import { errorHandlerMiddleware } from "../core/api/middlewares/error-handler/error-handler.js";
|
|
8
|
+
import { createApiClient } from "../core/api/client.js";
|
|
11
9
|
import { DEFAULT_CURRENCY, DEFAULT_LOCALE } from "../views/constants.js";
|
|
12
10
|
import { supportedCurrencies } from "../core/currency/constants.js";
|
|
13
11
|
import { allLocales } from "../core/i18n/locale-codes.js";
|
|
@@ -18,6 +16,7 @@ import { fireEvent } from "../core/events.js";
|
|
|
18
16
|
import { classifyPageUpdate } from "../sdk/navigation-intent.js";
|
|
19
17
|
import { apiHostContext, assetsURLContext, loyaltyPointsContext, currenciesContext, currencyContext, distributorIdContext, localeContext, localesContext, } from "../contexts/properties.context.js";
|
|
20
18
|
import { currentPageContext } from "../contexts/current-page.context.js";
|
|
19
|
+
import { NOOP_LOGGER, loggerContext } from "../core/logger.js";
|
|
21
20
|
export const BaseMixin = (superClass) => {
|
|
22
21
|
class BaseMixinElement extends superClass {
|
|
23
22
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -31,6 +30,9 @@ export const BaseMixin = (superClass) => {
|
|
|
31
30
|
this.locale = DEFAULT_LOCALE;
|
|
32
31
|
this.locales = [...allLocales];
|
|
33
32
|
this.loyaltyPoints = false;
|
|
33
|
+
// Set by the SDK mount, not an attribute: a host cannot pass a function
|
|
34
|
+
// through markup, so the default stays silent until `mount` wires one.
|
|
35
|
+
this.logger = NOOP_LOGGER;
|
|
34
36
|
this._pageDispatch = this.dispatchPageUpdate.bind(this);
|
|
35
37
|
}
|
|
36
38
|
getPageProperties() {
|
|
@@ -59,12 +61,10 @@ export const BaseMixin = (superClass) => {
|
|
|
59
61
|
}
|
|
60
62
|
willUpdate(_changedProperties) {
|
|
61
63
|
if (!this.client && this.apiHost && this.distributorID) {
|
|
62
|
-
this.client =
|
|
64
|
+
this.client = createApiClient({
|
|
63
65
|
baseUrl: this.apiHost,
|
|
64
|
-
|
|
66
|
+
distributorId: this.distributorID,
|
|
65
67
|
});
|
|
66
|
-
this.client.use(bookingSessionMiddleware);
|
|
67
|
-
this.client.use(errorHandlerMiddleware);
|
|
68
68
|
}
|
|
69
69
|
super.willUpdate(_changedProperties);
|
|
70
70
|
}
|
|
@@ -113,6 +113,9 @@ export const BaseMixin = (superClass) => {
|
|
|
113
113
|
provide({ context: loyaltyPointsContext }),
|
|
114
114
|
property({ type: Boolean, attribute: "loyalty-points" })
|
|
115
115
|
], BaseMixinElement.prototype, "loyaltyPoints", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
provide({ context: loggerContext })
|
|
118
|
+
], BaseMixinElement.prototype, "logger", void 0);
|
|
116
119
|
__decorate([
|
|
117
120
|
provide({ context: pageDispatchContext })
|
|
118
121
|
], BaseMixinElement.prototype, "_pageDispatch", void 0);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { LitElement } from "lit";
|
|
2
2
|
import type { Constructor } from "../contexts/utils.js";
|
|
3
3
|
import type { Hash } from "viem";
|
|
4
|
+
import type { Logger } from "../core/logger.js";
|
|
4
5
|
/**
|
|
5
6
|
* Coinbase user session data
|
|
6
7
|
*/
|
|
@@ -11,17 +12,22 @@ export interface CoinbaseSession {
|
|
|
11
12
|
isConnected: boolean;
|
|
12
13
|
userId?: string;
|
|
13
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Why a transfer did not produce a transaction hash. Codes, not messages,
|
|
17
|
+
* so raw SDK and RPC errors (which can carry URLs and request bodies)
|
|
18
|
+
* never reach the caller.
|
|
19
|
+
*/
|
|
20
|
+
export type TransferErrorCode = "in_progress" | "not_initialized" | "not_authenticated" | "invalid_address" | "invalid_amount" | "smart_account_unavailable" | "insufficient_balance" | "cancelled" | "mfa_failed" | "failed" | "timeout"
|
|
21
|
+
/** Aborted (disconnect or cleanup) after submission; the outcome is unknown. */
|
|
22
|
+
| "aborted" | "unknown";
|
|
14
23
|
/**
|
|
15
24
|
* Transfer result containing transaction details
|
|
16
25
|
*/
|
|
17
26
|
export interface TransferResult {
|
|
18
27
|
success: boolean;
|
|
19
28
|
transactionHash?: Hash;
|
|
20
|
-
error?:
|
|
21
|
-
/** Indicates MFA verification is required before transfer can proceed */
|
|
22
|
-
mfaRequired?: boolean;
|
|
29
|
+
error?: TransferErrorCode;
|
|
23
30
|
}
|
|
24
|
-
export { assertNonZeroAddress as _assertNonZeroAddress, ZERO_ADDRESS as _ZERO_ADDRESS, };
|
|
25
31
|
export interface CoinbaseMixinInterface {
|
|
26
32
|
initCoinbase(projectId: string): Promise<boolean>;
|
|
27
33
|
cleanupCoinbase(): void;
|
|
@@ -55,16 +61,6 @@ export interface CoinbaseMixinInterface {
|
|
|
55
61
|
resetMfaVerificationState(): void;
|
|
56
62
|
getCoinbaseAccessToken(): Promise<string | null>;
|
|
57
63
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
declare const ZERO_ADDRESS: "0x0000000000000000000000000000000000000000";
|
|
62
|
-
/**
|
|
63
|
-
* Validates that an address is both a valid Ethereum address and not the zero address.
|
|
64
|
-
* Zero address is technically valid by format but represents a burn address
|
|
65
|
-
* that would cause irreversible loss of funds.
|
|
66
|
-
*
|
|
67
|
-
* @throws Error if address is invalid or zero
|
|
68
|
-
*/
|
|
69
|
-
declare function assertNonZeroAddress(address: string, label: string): void;
|
|
70
|
-
export declare const CoinbaseMixin: <TBase extends Constructor<LitElement>>(Base: TBase) => Constructor<CoinbaseMixinInterface> & TBase;
|
|
64
|
+
export declare const CoinbaseMixin: <TBase extends Constructor<LitElement & {
|
|
65
|
+
logger: Logger;
|
|
66
|
+
}>>(Base: TBase) => Constructor<CoinbaseMixinInterface> & TBase;
|